保誠-保戶業務員媒合平台
HelenHuang
2022-06-09 9bdb95c9e34cef640534e5e5a1e2225a80442000
PAMapp/node_modules/prettier/parser-typescript.js
@@ -1,14 +1,280 @@
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e=e||self).prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.typescript={}))}(this,(function(e){"use strict";var t=function(e,t){var r=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return r.loc=t,r};var r=function(e,t){if(e.startsWith("#!")){var r=e.indexOf("\n"),n={type:"Line",value:e.slice(2,r),range:[0,r],loc:{source:null,start:{line:1,column:0},end:{line:1,column:r}}};t.comments=[n].concat(t.comments)}},n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function a(e,t){return e(t={exports:{}},t.exports),t.exports}function o(e){return e&&e.default||e}var s=Object.freeze({__proto__:null,default:{EOL:"\n"}}),c=a((function(e){e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");var t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return null;var r=t.filter((function(e){return"\r\n"===e})).length;return r>t.length-r?"\r\n":"\n"},e.exports.graceful=function(t){return e.exports(t)||"\n"}})),u=(c.graceful,o(s)),l=a((function(e,t){function r(){var e=u;return r=function(){return e},e}function n(){var e,t=(e=c)&&e.__esModule?e:{default:e};return n=function(){return t},t}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(e){var t=e.match(o);return t?t[0].trimLeft():""},t.strip=function(e){var t=e.match(o);return t&&t[0]?e.substring(t[0].length):e},t.parse=function(e){return f(e).pragmas},t.parseWithComments=f,t.print=function(e){var t=e.comments,i=void 0===t?"":t,a=e.pragmas,o=void 0===a?{}:a,s=(0,n().default)(i)||r().EOL,c=Object.keys(o),u=c.map((function(e){return m(e,o[e])})).reduce((function(e,t){return e.concat(t)}),[]).map((function(e){return" * "+e+s})).join("");if(!i){if(0===c.length)return"";if(1===c.length&&!Array.isArray(o[c[0]])){var l=o[c[0]];return"".concat("/**"," ").concat(m(c[0],l)[0]).concat(" */")}}var _=i.split(s).map((function(e){return"".concat(" *"," ").concat(e)})).join(s)+s;return"/**"+s+(i?_:"")+(i&&c.length?" *"+s:"")+u+" */"};var i=/\*\/$/,a=/^\/\*\*/,o=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,s=/(^|\s+)\/\/([^\r\n]*)/g,l=/^(\r?\n)+/,_=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,d=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,p=/(\r?\n|^) *\* ?/g;function f(e){var t=(0,n().default)(e)||r().EOL;e=e.replace(a,"").replace(i,"").replace(p,"$1");for(var o="";o!==e;)o=e,e=e.replace(_,"".concat(t,"$1 $2").concat(t));e=e.replace(l,"").trimRight();for(var c,u=Object.create(null),f=e.replace(d,"").replace(l,"").trimRight();c=d.exec(e);){var m=c[2].replace(s,"");"string"==typeof u[c[1]]||Array.isArray(u[c[1]])?u[c[1]]=[].concat(u[c[1]],m):u[c[1]]=m}return{comments:f,pragmas:u}}function m(e,t){return[].concat(t).map((function(t){return"@".concat(e," ").concat(t).trim()}))}}));i(l);l.extract,l.strip,l.parse,l.parseWithComments,l.print;var _=function(e){var t=Object.keys(l.parse(l.extract(e)));return-1!==t.indexOf("prettier")||-1!==t.indexOf("format")},d=function(e){return e.length>0?e[e.length-1]:null};var p={locStart:function e(t,r){return!(r=r||{}).ignoreDecorators&&t.declaration&&t.declaration.decorators&&t.declaration.decorators.length>0?e(t.declaration.decorators[0]):!r.ignoreDecorators&&t.decorators&&t.decorators.length>0?e(t.decorators[0]):t.__location?t.__location.startOffset:t.range?t.range[0]:"number"==typeof t.start?t.start:t.loc?t.loc.start:null},locEnd:function e(t){var r=t.nodes&&d(t.nodes);if(r&&t.source&&!t.source.end&&(t=r),t.__location)return t.__location.endOffset;var n=t.range?t.range[1]:"number"==typeof t.end?t.end:null;return t.typeAnnotation?Math.max(n,e(t.typeAnnotation)):t.loc&&!n?t.loc.end:n}};function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function y(e,t,r){return t&&g(e.prototype,t),r&&g(e,r),e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function D(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?D(e):t}function T(e,t,r){return(T="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(r):i.value}})(e,t,r||e)}function E(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var C=function(e){return"string"==typeof e?e.replace(function(e){e=Object.assign({onlyFirst:!1},e);var t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e.onlyFirst?void 0:"g")}(),""):e},k=C,N=C;k.default=N;var A=function(e){return!Number.isNaN(e)&&(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141))},F=A,P=A;F.default=P;var w=function(e){if("string"!=typeof(e=e.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g,"  "))||0===e.length)return 0;e=k(e);for(var t=0,r=0;r<e.length;r++){var n=e.codePointAt(r);n<=31||n>=127&&n<=159||(n>=768&&n<=879||(n>65535&&r++,t+=F(n)?2:1))}return t},I=w,O=w;I.default=O;var M=/[|\\{}()[\]^$+*?.]/g,L=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(M,"\\$&")},R=/[^\x20-\x7F]/;function B(e){if(e)switch(e.type){case"ExportDefaultDeclaration":case"ExportDefaultSpecifier":case"DeclareExportDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return!0}return!1}function j(e){return function(t,r,n){var i=n&&n.backwards;if(!1===r)return!1;for(var a=t.length,o=r;o>=0&&o<a;){var s=t.charAt(o);if(e instanceof RegExp){if(!e.test(s))return o}else if(-1===e.indexOf(s))return o;i?o--:o++}return(-1===o||o===a)&&o}}var K=j(/\s/),J=j(" \t"),z=j(",; \t"),U=j(/[^\r\n]/);function V(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(var r=t+2;r<e.length;++r)if("*"===e.charAt(r)&&"/"===e.charAt(r+1))return r+2;return t}function q(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?U(e,t):t)}function W(e,t,r){var n=r&&r.backwards;if(!1===t)return!1;var i=e.charAt(t);if(n){if("\r"===e.charAt(t-1)&&"\n"===i)return t-2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t-1}else{if("\r"===i&&"\n"===e.charAt(t+1))return t+2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t+1}return t}function G(e,t,r){var n=J(e,(r=r||{}).backwards?t-1:t,r);return n!==W(e,n,r)}function H(e,t){for(var r=null,n=t;n!==r;)r=n,n=V(e,n=z(e,n)),n=J(e,n);return!1!==(n=W(e,n=q(e,n)))&&G(e,n)}function Y(e,t){for(var r=null,n=t;n!==r;)r=n,n=W(e,n=q(e,n=V(e,n=J(e,n))));return n}function X(e,t,r){return Y(e,r(t))}var Q={};function $(e){return Q[e]}[["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach((function(e,t){e.forEach((function(e){Q[e]=t}))}));var Z={"==":!0,"!=":!0,"===":!0,"!==":!0},ee={"*":!0,"/":!0,"%":!0},te={">>":!0,">>>":!0,"<<":!0};function re(e,t,r){for(var n=0,i=r=r||0;i<e.length;++i)"\t"===e[i]?n=n+t-n%t:n++;return n}function ne(e,t){var r=e.slice(1,-1),n={quote:'"',regex:/"/g},i={quote:"'",regex:/'/g},a="'"===t?i:n,o=a===i?n:i,s=a.quote;(r.includes(a.quote)||r.includes(o.quote))&&(s=(r.match(a.regex)||[]).length>(r.match(o.regex)||[]).length?o.quote:a.quote);return s}function ie(e,t,r){var n='"'===t?"'":'"',i=e.replace(/\\([\s\S])|(['"])/g,(function(e,i,a){return i===n?i:a===t?"\\"+a:a||(r&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(i)?i:"\\"+i)}));return t+i+t}function ae(e){return e&&e.comments&&e.comments.length>0&&e.comments.some((function(e){return"prettier-ignore"===e.value.trim()}))}function oe(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,"JSXText"===e.type&&(t.printed=!0)}var se={replaceEndOfLineWith:function(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=e.split("\n")[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var c=o.value;0!==r.length&&r.push(t),r.push(c)}}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r},getStringWidth:function(e){return e?R.test(e)?I(e):e.length:0},getMaxContinuousCount:function(e,t){var r=e.match(new RegExp("(".concat(L(t),")+"),"g"));return null===r?0:r.reduce((function(e,r){return Math.max(e,r.length/t.length)}),0)},getMinNotPresentContinuousCount:function(e,t){var r=e.match(new RegExp("(".concat(L(t),")+"),"g"));if(null===r)return 0;var n=new Map,i=0,a=!0,o=!1,s=void 0;try{for(var c,u=r[Symbol.iterator]();!(a=(c=u.next()).done);a=!0){var l=c.value.length/t.length;n.set(l,!0),l>i&&(i=l)}}catch(e){o=!0,s=e}finally{try{a||null==u.return||u.return()}finally{if(o)throw s}}for(var _=1;_<i;_++)if(!n.get(_))return _;return i+1},getPrecedence:$,shouldFlatten:function(e,t){return $(t)===$(e)&&("**"!==e&&((!Z[e]||!Z[t])&&(!("%"===t&&ee[e]||"%"===e&&ee[t])&&((t===e||!ee[t]||!ee[e])&&(!te[e]||!te[t])))))},isBitwiseOperator:function(e){return!!te[e]||"|"===e||"^"===e||"&"===e},isExportDeclaration:B,getParentExportDeclaration:function(e){var t=e.getParentNode();return"declaration"===e.getName()&&B(t)?t:null},getPenultimate:function(e){return e.length>1?e[e.length-2]:null},getLast:d,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:Y,getNextNonSpaceNonCommentCharacterIndex:X,getNextNonSpaceNonCommentCharacter:function(e,t,r){return e.charAt(X(e,t,r))},skip:j,skipWhitespace:K,skipSpaces:J,skipToLineEnd:z,skipEverythingButNewLine:U,skipInlineComment:V,skipTrailingComment:q,skipNewline:W,isNextLineEmptyAfterIndex:H,isNextLineEmpty:function(e,t,r){return H(e,r(t))},isPreviousLineEmpty:function(e,t,r){var n=r(t)-1;return n=W(e,n=J(e,n,{backwards:!0}),{backwards:!0}),(n=J(e,n,{backwards:!0}))!==W(e,n,{backwards:!0})},hasNewline:G,hasNewlineInRange:function(e,t,r){for(var n=t;n<r;++n)if("\n"===e.charAt(n))return!0;return!1},hasSpaces:function(e,t,r){return J(e,(r=r||{}).backwards?t-1:t,r)!==t},setLocStart:function(e,t){e.range?e.range[0]=t:e.start=t},setLocEnd:function(e,t){e.range?e.range[1]=t:e.end=t},startsWithNoLookaheadToken:function e(t,r){switch((t=function e(t){if(t.left)return e(t.left);return t}(t)).type){case"FunctionExpression":case"ClassExpression":case"DoExpression":return r;case"ObjectExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return e(t.object,r);case"TaggedTemplateExpression":return"FunctionExpression"!==t.tag.type&&e(t.tag,r);case"CallExpression":case"OptionalCallExpression":return"FunctionExpression"!==t.callee.type&&e(t.callee,r);case"ConditionalExpression":return e(t.test,r);case"UpdateExpression":return!t.prefix&&e(t.argument,r);case"BindExpression":return t.object&&e(t.object,r);case"SequenceExpression":return e(t.expressions[0],r);case"TSAsExpression":return e(t.expression,r);default:return!1}},getAlignmentSize:re,getIndentSize:function(e,t){var r=e.lastIndexOf("\n");return-1===r?0:re(e.slice(r+1).match(/^[ \t]*/)[0],t)},getPreferredQuote:ne,printString:function(e,t,r){var n=e.slice(1,-1),i=!n.includes('"')&&!n.includes("'"),a="json"===t.parser?'"':t.__isInHtmlAttribute?"'":ne(e,t.singleQuote?"'":'"');return r?i?a+n+a:e:ie(n,a,!("css"===t.parser||"less"===t.parser||"scss"===t.parser||t.embeddedInHtml))},printNumber:function(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")},hasIgnoreComment:function(e){return ae(e.getValue())},hasNodeIgnoreComment:ae,makeString:ie,matchAncestorTypes:function(e,t,r){for(r=r||0,t=t.slice();t.length;){var n=e.getParentNode(r),i=t.shift();if(!n||n.type!==i)return!1;r++}return!0},addLeadingComment:function(e,t){t.leading=!0,t.trailing=!1,oe(e,t)},addDanglingComment:function(e,t){t.leading=!1,t.trailing=!1,oe(e,t)},addTrailingComment:function(e,t){t.leading=!1,t.trailing=!0,oe(e,t)},isWithinParentArrayProperty:function(e,t){var r=e.getValue(),n=e.getParentNode();if(null==n)return!1;if(!Array.isArray(n[t]))return!1;var i=e.getName();return n[t][i]===r}}.getLast;var ce=function(e,t){return function e(t,r,n,i){if(!t||"object"!==f(t))return;if(Array.isArray(t)){for(var a=0;a<t.length;a++)e(t[a],r,t,a);return}if("string"!=typeof t.type)return;for(var o=0,s=Object.keys(t);o<s.length;o++){var c=s[o];e(t[c],r,t,c)}var u=r(t);u&&(n[i]=u)}(e,(function(e){switch(e.type){case"VariableDeclaration":var r=se(e.declarations);r&&r.init&&function(e,r){if(";"===t.originalText[function(e){return"flow"===t.parser?e.range[1]:e.end}(r)])return;"flow"===t.parser?e.range=[e.range[0],r.range[1]]:e.end=r.end;e.loc=Object.assign({},e.loc,{end:e.loc.end})}(e,r);break;case"TSParenthesizedType":return e.typeAnnotation;case"TSUnionType":case"TSIntersectionType":if(1===e.types.length)return Object.assign({},e.types[0],{loc:e.loc,range:e.range});break;case"EnumDeclaration":"flow"===t.parser&&e.body.range[0]===e.range[0]&&e.body.range[1]===e.range[1]&&(e.body.range=[e.id.range[1],e.range[1]-1]),"babel-flow"===t.parser&&(e.body.start=e.id.end,e.body.end=e.end-1)}})),e},ue="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function le(){throw new Error("setTimeout has not been defined")}function _e(){throw new Error("clearTimeout has not been defined")}var de=le,pe=_e;function fe(e){if(de===setTimeout)return setTimeout(e,0);if((de===le||!de)&&setTimeout)return de=setTimeout,setTimeout(e,0);try{return de(e,0)}catch(t){try{return de.call(null,e,0)}catch(t){return de.call(this,e,0)}}}"function"==typeof ue.setTimeout&&(de=setTimeout),"function"==typeof ue.clearTimeout&&(pe=clearTimeout);var me,ge=[],ye=!1,he=-1;function ve(){ye&&me&&(ye=!1,me.length?ge=me.concat(ge):he=-1,ge.length&&be())}function be(){if(!ye){var e=fe(ve);ye=!0;for(var t=ge.length;t;){for(me=ge,ge=[];++he<t;)me&&me[he].run();he=-1,t=ge.length}me=null,ye=!1,function(e){if(pe===clearTimeout)return clearTimeout(e);if((pe===_e||!pe)&&clearTimeout)return pe=clearTimeout,clearTimeout(e);try{pe(e)}catch(t){try{return pe.call(null,e)}catch(t){return pe.call(this,e)}}}(e)}}function xe(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];ge.push(new De(e,t)),1!==ge.length||ye||fe(be)}function De(e,t){this.fun=e,this.array=t}De.prototype.run=function(){this.fun.apply(null,this.array)};function Se(){}var Te=Se,Ee=Se,Ce=Se,ke=Se,Ne=Se,Ae=Se,Fe=Se;var Pe=ue.performance||{},we=Pe.now||Pe.mozNow||Pe.msNow||Pe.oNow||Pe.webkitNow||function(){return(new Date).getTime()};var Ie=new Date;var Oe={nextTick:xe,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Te,addListener:Ee,once:Ce,off:ke,removeListener:Ne,removeAllListeners:Ae,emit:Fe,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*we.call(Pe),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Ie)/1e3}},Me=a((function(e,t){var r;t=e.exports=d,r="object"===f(Oe)&&Oe.env&&Oe.env.NODE_DEBUG&&/\bsemver\b/i.test(Oe.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var n=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,a=t.re=[],o=t.src=[],s=t.tokens={},c=0;function u(e){s[e]=c++}u("NUMERICIDENTIFIER"),o[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",u("NUMERICIDENTIFIERLOOSE"),o[s.NUMERICIDENTIFIERLOOSE]="[0-9]+",u("NONNUMERICIDENTIFIER"),o[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",u("MAINVERSION"),o[s.MAINVERSION]="("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")",u("MAINVERSIONLOOSE"),o[s.MAINVERSIONLOOSE]="("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")",u("PRERELEASEIDENTIFIER"),o[s.PRERELEASEIDENTIFIER]="(?:"+o[s.NUMERICIDENTIFIER]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASEIDENTIFIERLOOSE"),o[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+o[s.NUMERICIDENTIFIERLOOSE]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASE"),o[s.PRERELEASE]="(?:-("+o[s.PRERELEASEIDENTIFIER]+"(?:\\."+o[s.PRERELEASEIDENTIFIER]+")*))",u("PRERELEASELOOSE"),o[s.PRERELEASELOOSE]="(?:-?("+o[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+o[s.PRERELEASEIDENTIFIERLOOSE]+")*))",u("BUILDIDENTIFIER"),o[s.BUILDIDENTIFIER]="[0-9A-Za-z-]+",u("BUILD"),o[s.BUILD]="(?:\\+("+o[s.BUILDIDENTIFIER]+"(?:\\."+o[s.BUILDIDENTIFIER]+")*))",u("FULL"),u("FULLPLAIN"),o[s.FULLPLAIN]="v?"+o[s.MAINVERSION]+o[s.PRERELEASE]+"?"+o[s.BUILD]+"?",o[s.FULL]="^"+o[s.FULLPLAIN]+"$",u("LOOSEPLAIN"),o[s.LOOSEPLAIN]="[v=\\s]*"+o[s.MAINVERSIONLOOSE]+o[s.PRERELEASELOOSE]+"?"+o[s.BUILD]+"?",u("LOOSE"),o[s.LOOSE]="^"+o[s.LOOSEPLAIN]+"$",u("GTLT"),o[s.GTLT]="((?:<|>)?=?)",u("XRANGEIDENTIFIERLOOSE"),o[s.XRANGEIDENTIFIERLOOSE]=o[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",u("XRANGEIDENTIFIER"),o[s.XRANGEIDENTIFIER]=o[s.NUMERICIDENTIFIER]+"|x|X|\\*",u("XRANGEPLAIN"),o[s.XRANGEPLAIN]="[v=\\s]*("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:"+o[s.PRERELEASE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGEPLAINLOOSE"),o[s.XRANGEPLAINLOOSE]="[v=\\s]*("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:"+o[s.PRERELEASELOOSE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGE"),o[s.XRANGE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAIN]+"$",u("XRANGELOOSE"),o[s.XRANGELOOSE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAINLOOSE]+"$",u("COERCE"),o[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",u("COERCERTL"),a[s.COERCERTL]=new RegExp(o[s.COERCE],"g"),u("LONETILDE"),o[s.LONETILDE]="(?:~>?)",u("TILDETRIM"),o[s.TILDETRIM]="(\\s*)"+o[s.LONETILDE]+"\\s+",a[s.TILDETRIM]=new RegExp(o[s.TILDETRIM],"g");u("TILDE"),o[s.TILDE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAIN]+"$",u("TILDELOOSE"),o[s.TILDELOOSE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAINLOOSE]+"$",u("LONECARET"),o[s.LONECARET]="(?:\\^)",u("CARETTRIM"),o[s.CARETTRIM]="(\\s*)"+o[s.LONECARET]+"\\s+",a[s.CARETTRIM]=new RegExp(o[s.CARETTRIM],"g");u("CARET"),o[s.CARET]="^"+o[s.LONECARET]+o[s.XRANGEPLAIN]+"$",u("CARETLOOSE"),o[s.CARETLOOSE]="^"+o[s.LONECARET]+o[s.XRANGEPLAINLOOSE]+"$",u("COMPARATORLOOSE"),o[s.COMPARATORLOOSE]="^"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+")$|^$",u("COMPARATOR"),o[s.COMPARATOR]="^"+o[s.GTLT]+"\\s*("+o[s.FULLPLAIN]+")$|^$",u("COMPARATORTRIM"),o[s.COMPARATORTRIM]="(\\s*)"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+"|"+o[s.XRANGEPLAIN]+")",a[s.COMPARATORTRIM]=new RegExp(o[s.COMPARATORTRIM],"g");u("HYPHENRANGE"),o[s.HYPHENRANGE]="^\\s*("+o[s.XRANGEPLAIN]+")\\s+-\\s+("+o[s.XRANGEPLAIN]+")\\s*$",u("HYPHENRANGELOOSE"),o[s.HYPHENRANGELOOSE]="^\\s*("+o[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+o[s.XRANGEPLAINLOOSE]+")\\s*$",u("STAR"),o[s.STAR]="(<|>)?=?\\s*\\*";for(var l=0;l<c;l++)r(l,o[l]),a[l]||(a[l]=new RegExp(o[l]));function _(e,t){if(t&&"object"===f(t)||(t={loose:!!t,includePrerelease:!1}),e instanceof d)return e;if("string"!=typeof e)return null;if(e.length>n)return null;if(!(t.loose?a[s.LOOSE]:a[s.FULL]).test(e))return null;try{return new d(e,t)}catch(e){return null}}function d(e,t){if(t&&"object"===f(t)||(t={loose:!!t,includePrerelease:!1}),e instanceof d){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>n)throw new TypeError("version is longer than "+n+" characters");if(!(this instanceof d))return new d(e,t);r("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?a[s.LOOSE]:a[s.FULL]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=o[5]?o[5].split("."):[],this.format()}t.parse=_,t.valid=function(e,t){var r=_(e,t);return r?r.version:null},t.clean=function(e,t){var r=_(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null},t.SemVer=d,d.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},d.prototype.toString=function(){return this.version},d.prototype.compare=function(e){return r("SemVer.compare",this.version,this.options,e),e instanceof d||(e=new d(e,this.options)),this.compareMain(e)||this.comparePre(e)},d.prototype.compareMain=function(e){return e instanceof d||(e=new d(e,this.options)),m(this.major,e.major)||m(this.minor,e.minor)||m(this.patch,e.patch)},d.prototype.comparePre=function(e){if(e instanceof d||(e=new d(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return m(n,i)}while(++t)},d.prototype.compareBuild=function(e){e instanceof d||(e=new d(e,this.options));var t=0;do{var n=this.build[t],i=e.build[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return m(n,i)}while(++t)},d.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new d(e,r).inc(t,n).version}catch(e){return null}},t.diff=function(e,t){if(v(e,t))return null;var r=_(e),n=_(t),i="";if(r.prerelease.length||n.prerelease.length){i="pre";var a="prerelease"}for(var o in r)if(("major"===o||"minor"===o||"patch"===o)&&r[o]!==n[o])return i+o;return a},t.compareIdentifiers=m;var p=/^[0-9]+$/;function m(e,t){var r=p.test(e),n=p.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1}function g(e,t,r){return new d(e,r).compare(new d(t,r))}function y(e,t,r){return g(e,t,r)>0}function h(e,t,r){return g(e,t,r)<0}function v(e,t,r){return 0===g(e,t,r)}function b(e,t,r){return 0!==g(e,t,r)}function x(e,t,r){return g(e,t,r)>=0}function D(e,t,r){return g(e,t,r)<=0}function S(e,t,r,n){switch(t){case"===":return"object"===f(e)&&(e=e.version),"object"===f(r)&&(r=r.version),e===r;case"!==":return"object"===f(e)&&(e=e.version),"object"===f(r)&&(r=r.version),e!==r;case"":case"=":case"==":return v(e,r,n);case"!=":return b(e,r,n);case">":return y(e,r,n);case">=":return x(e,r,n);case"<":return h(e,r,n);case"<=":return D(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}function T(e,t){if(t&&"object"===f(t)||(t={loose:!!t,includePrerelease:!1}),e instanceof T){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof T))return new T(e,t);r("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===E?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return m(t,e)},t.major=function(e,t){return new d(e,t).major},t.minor=function(e,t){return new d(e,t).minor},t.patch=function(e,t){return new d(e,t).patch},t.compare=g,t.compareLoose=function(e,t){return g(e,t,!0)},t.compareBuild=function(e,t,r){var n=new d(e,r),i=new d(t,r);return n.compare(i)||n.compareBuild(i)},t.rcompare=function(e,t,r){return g(t,e,r)},t.sort=function(e,r){return e.sort((function(e,n){return t.compareBuild(e,n,r)}))},t.rsort=function(e,r){return e.sort((function(e,n){return t.compareBuild(n,e,r)}))},t.gt=y,t.lt=h,t.eq=v,t.neq=b,t.gte=x,t.lte=D,t.cmp=S,t.Comparator=T;var E={};function C(e,t){if(t&&"object"===f(t)||(t={loose:!!t,includePrerelease:!1}),e instanceof C)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new C(e.raw,t);if(e instanceof T)return new C(e.value,t);if(!(this instanceof C))return new C(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function k(e,t){for(var r=!0,n=e.slice(),i=n.pop();r&&n.length;)r=n.every((function(e){return i.intersects(e,t)})),i=n.pop();return r}function N(e){return!e||"x"===e.toLowerCase()||"*"===e}function A(e,t,r,n,i,a,o,s,c,u,l,_,d){return((t=N(r)?"":N(n)?">="+r+".0.0":N(i)?">="+r+"."+n+".0":">="+t)+" "+(s=N(c)?"":N(u)?"<"+(+c+1)+".0.0":N(l)?"<"+c+"."+(+u+1)+".0":_?"<="+c+"."+u+"."+l+"-"+_:"<="+s)).trim()}function F(e,t,n){for(var i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(i=0;i<e.length;i++)if(r(e[i].semver),e[i].semver!==E&&e[i].semver.prerelease.length>0){var a=e[i].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch)return!0}return!1}return!0}function P(e,t,r){try{t=new C(t,r)}catch(e){return!1}return t.test(e)}function w(e,t,r,n){var i,a,o,s,c;switch(e=new d(e,n),t=new C(t,n),r){case">":i=y,a=D,o=h,s=">",c=">=";break;case"<":i=h,a=x,o=y,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(P(e,t,n))return!1;for(var u=0;u<t.set.length;++u){var l=t.set[u],_=null,p=null;if(l.forEach((function(e){e.semver===E&&(e=new T(">=0.0.0")),_=_||e,p=p||e,i(e.semver,_.semver,n)?_=e:o(e.semver,p.semver,n)&&(p=e)})),_.operator===s||_.operator===c)return!1;if((!p.operator||p.operator===s)&&a(e,p.semver))return!1;if(p.operator===c&&o(e,p.semver))return!1}return!0}T.prototype.parse=function(e){var t=this.options.loose?a[s.COMPARATORLOOSE]:a[s.COMPARATOR],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new d(r[2],this.options.loose):this.semver=E},T.prototype.toString=function(){return this.value},T.prototype.test=function(e){if(r("Comparator.test",e,this.options.loose),this.semver===E||e===E)return!0;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}return S(e,this.operator,this.semver,this.options)},T.prototype.intersects=function(e,t){if(!(e instanceof T))throw new TypeError("a Comparator is required");var r;if(t&&"object"===f(t)||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(r=new C(e.value,t),P(this.value,r,t));if(""===e.operator)return""===e.value||(r=new C(this.value,t),P(e.semver,r,t));var n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=S(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=S(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||i||a&&o||s||c},t.Range=C,C.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},C.prototype.toString=function(){return this.range},C.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?a[s.HYPHENRANGELOOSE]:a[s.HYPHENRANGE];e=e.replace(n,A),r("hyphen replace",e),e=e.replace(a[s.COMPARATORTRIM],"$1$2$3"),r("comparator trim",e,a[s.COMPARATORTRIM]),e=(e=(e=e.replace(a[s.TILDETRIM],"$1~")).replace(a[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var i=t?a[s.COMPARATORLOOSE]:a[s.COMPARATOR],o=e.split(" ").map((function(e){return function(e,t){return r("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){r("caret",e,t);var n=t.loose?a[s.CARETLOOSE]:a[s.CARET];return e.replace(n,(function(t,n,i,a,o){var s;return r("caret",e,t,n,i,a,o),N(n)?s="":N(i)?s=">="+n+".0.0 <"+(+n+1)+".0.0":N(a)?s="0"===n?">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":">="+n+"."+i+".0 <"+(+n+1)+".0.0":o?(r("replaceCaret pr",o),s="0"===n?"0"===i?">="+n+"."+i+"."+a+"-"+o+" <"+n+"."+i+"."+(+a+1):">="+n+"."+i+"."+a+"-"+o+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+a+"-"+o+" <"+(+n+1)+".0.0"):(r("no pr"),s="0"===n?"0"===i?">="+n+"."+i+"."+a+" <"+n+"."+i+"."+(+a+1):">="+n+"."+i+"."+a+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+a+" <"+(+n+1)+".0.0"),r("caret return",s),s}))}(e,t)})).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var n=t.loose?a[s.TILDELOOSE]:a[s.TILDE];return e.replace(n,(function(t,n,i,a,o){var s;return r("tilde",e,t,n,i,a,o),N(n)?s="":N(i)?s=">="+n+".0.0 <"+(+n+1)+".0.0":N(a)?s=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":o?(r("replaceTilde pr",o),s=">="+n+"."+i+"."+a+"-"+o+" <"+n+"."+(+i+1)+".0"):s=">="+n+"."+i+"."+a+" <"+n+"."+(+i+1)+".0",r("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var n=t.loose?a[s.XRANGELOOSE]:a[s.XRANGE];return e.replace(n,(function(n,i,a,o,s,c){r("xRange",e,n,i,a,o,s,c);var u=N(a),l=u||N(o),_=l||N(s),d=_;return"="===i&&d&&(i=""),c=t.includePrerelease?"-0":"",u?n=">"===i||"<"===i?"<0.0.0-0":"*":i&&d?(l&&(o=0),s=0,">"===i?(i=">=",l?(a=+a+1,o=0,s=0):(o=+o+1,s=0)):"<="===i&&(i="<",l?a=+a+1:o=+o+1),n=i+a+"."+o+"."+s+c):l?n=">="+a+".0.0"+c+" <"+(+a+1)+".0.0"+c:_&&(n=">="+a+"."+o+".0"+c+" <"+a+"."+(+o+1)+".0"+c),r("xRange return",n),n}))}(e,t)})).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(a[s.STAR],"")}(e,t),r("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(o=o.filter((function(e){return!!e.match(i)}))),o=o.map((function(e){return new T(e,this.options)}),this)},C.prototype.intersects=function(e,t){if(!(e instanceof C))throw new TypeError("a Range is required");return this.set.some((function(r){return k(r,t)&&e.set.some((function(e){return k(e,t)&&r.every((function(r){return e.every((function(e){return r.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new C(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},C.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(F(this.set[t],e,this.options))return!0;return!1},t.satisfies=P,t.maxSatisfying=function(e,t,r){var n=null,i=null;try{var a=new C(t,r)}catch(e){return null}return e.forEach((function(e){a.test(e)&&(n&&-1!==i.compare(e)||(i=new d(n=e,r)))})),n},t.minSatisfying=function(e,t,r){var n=null,i=null;try{var a=new C(t,r)}catch(e){return null}return e.forEach((function(e){a.test(e)&&(n&&1!==i.compare(e)||(i=new d(n=e,r)))})),n},t.minVersion=function(e,t){e=new C(e,t);var r=new d("0.0.0");if(e.test(r))return r;if(r=new d("0.0.0-0"),e.test(r))return r;r=null;for(var n=0;n<e.set.length;++n){e.set[n].forEach((function(e){var t=new d(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":r&&!y(r,t)||(r=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(r&&e.test(r))return r;return null},t.validRange=function(e,t){try{return new C(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,r){return w(e,t,"<",r)},t.gtr=function(e,t,r){return w(e,t,">",r)},t.outside=w,t.prerelease=function(e,t){var r=_(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function(e,t,r){return e=new C(e,r),t=new C(t,r),e.intersects(t)},t.coerce=function(e,t){if(e instanceof d)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var r=null;if((t=t||{}).rtl){for(var n;(n=a[s.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&n.index+n[0].length===r.index+r[0].length||(r=n),a[s.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;a[s.COERCERTL].lastIndex=-1}else r=e.match(a[s.COERCE]);if(null===r)return null;return _(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}})),Le=(Me.SEMVER_SPEC_VERSION,Me.re,Me.src,Me.tokens,Me.parse,Me.valid,Me.clean,Me.SemVer,Me.inc,Me.diff,Me.compareIdentifiers,Me.rcompareIdentifiers,Me.major,Me.minor,Me.patch,Me.compare,Me.compareLoose,Me.compareBuild,Me.rcompare,Me.sort,Me.rsort,Me.gt,Me.lt,Me.eq,Me.neq,Me.gte,Me.lte,Me.cmp,Me.Comparator,Me.Range,Me.toComparators,Me.satisfies,Me.maxSatisfying,Me.minSatisfying,Me.minVersion,Me.validRange,Me.ltr,Me.gtr,Me.outside,Me.prerelease,Me.intersects,Me.coerce,"/Users/lydell/forks/prettier/node_modules/typescript/lib"),Re=Object.freeze({__proto__:null,default:{}});var Be=Object.freeze({__proto__:null,extname:function(e){var t=e.lastIndexOf(".");return-1===t?"":e.slice(t)}}),je=Object.freeze({__proto__:null,default:{}}),Ke=Object.freeze({__proto__:null,default:{}}),Je="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),ze=function(e){if(0<=e&&e<Je.length)return Je[e];throw new TypeError("Must be between 0 and 63: "+e)},Ue=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1};var Ve=function(e){var t,r="",n=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&n,(n>>>=5)>0&&(t|=32),r+=ze(t)}while(n>0);return r},qe=function(e,t,r){var n,i,a,o,s=e.length,c=0,u=0;do{if(t>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=Ue(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));n=!!(32&i),c+=(i&=31)<<u,u+=5}while(n);r.value=(o=(a=c)>>1,1==(1&a)?-o:o),r.rest=t},We=a((function(e,t){t.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function i(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function a(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function o(e){var r=e,n=i(e);if(n){if(!n.path)return e;r=n.path}for(var o,s=t.isAbsolute(r),c=r.split(/\/+/),u=0,l=c.length-1;l>=0;l--)"."===(o=c[l])?c.splice(l,1):".."===o?u++:u>0&&(""===o?(c.splice(l+1,u),u=0):(c.splice(l,2),u--));return""===(r=c.join("/"))&&(r=s?"/":"."),n?(n.path=r,a(n)):r}function s(e,t){""===e&&(e="."),""===t&&(t=".");var r=i(t),s=i(e);if(s&&(e=s.path||"/"),r&&!r.scheme)return s&&(r.scheme=s.scheme),a(r);if(r||t.match(n))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var c="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=c,a(s)):c}t.urlParse=i,t.urlGenerate=a,t.normalize=o,t.join=s,t.isAbsolute=function(e){return"/"===e.charAt(0)||r.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if((e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var c=!("__proto__"in Object.create(null));function u(e){return e}function l(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function _(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=c?u:function(e){return l(e)?"$"+e:e},t.fromSetString=c?u:function(e){return l(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,r){var n=_(e.source,t.source);return 0!==n?n:0!==(n=e.originalLine-t.originalLine)?n:0!==(n=e.originalColumn-t.originalColumn)||r?n:0!==(n=e.generatedColumn-t.generatedColumn)?n:0!==(n=e.generatedLine-t.generatedLine)?n:_(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!==(n=e.generatedColumn-t.generatedColumn)||r?n:0!==(n=_(e.source,t.source))?n:0!==(n=e.originalLine-t.originalLine)?n:0!==(n=e.originalColumn-t.originalColumn)?n:_(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r?r:0!==(r=e.generatedColumn-t.generatedColumn)?r:0!==(r=_(e.source,t.source))?r:0!==(r=e.originalLine-t.originalLine)?r:0!==(r=e.originalColumn-t.originalColumn)?r:_(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,r){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),r){var n=i(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var c=n.path.lastIndexOf("/");c>=0&&(n.path=n.path.substring(0,c+1))}t=s(a(n),t)}return o(t)}})),Ge=(We.getArg,We.urlParse,We.urlGenerate,We.normalize,We.join,We.isAbsolute,We.relative,We.toSetString,We.fromSetString,We.compareByOriginalPositions,We.compareByGeneratedPositionsDeflated,We.compareByGeneratedPositionsInflated,We.parseSourceMapInput,We.computeSourceURL,Object.prototype.hasOwnProperty),He="undefined"!=typeof Map;function Ye(){this._array=[],this._set=He?new Map:Object.create(null)}Ye.fromArray=function(e,t){for(var r=new Ye,n=0,i=e.length;n<i;n++)r.add(e[n],t);return r},Ye.prototype.size=function(){return He?this._set.size:Object.getOwnPropertyNames(this._set).length},Ye.prototype.add=function(e,t){var r=He?e:We.toSetString(e),n=He?this.has(e):Ge.call(this._set,r),i=this._array.length;n&&!t||this._array.push(e),n||(He?this._set.set(e,i):this._set[r]=i)},Ye.prototype.has=function(e){if(He)return this._set.has(e);var t=We.toSetString(e);return Ge.call(this._set,t)},Ye.prototype.indexOf=function(e){if(He){var t=this._set.get(e);if(t>=0)return t}else{var r=We.toSetString(e);if(Ge.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')},Ye.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},Ye.prototype.toArray=function(){return this._array.slice()};var Xe={ArraySet:Ye};function Qe(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Qe.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},Qe.prototype.add=function(e){var t,r,n,i,a,o;t=this._last,r=e,n=t.generatedLine,i=r.generatedLine,a=t.generatedColumn,o=r.generatedColumn,i>n||i==n&&o>=a||We.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},Qe.prototype.toArray=function(){return this._sorted||(this._array.sort(We.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};var $e=Xe.ArraySet,Ze={MappingList:Qe}.MappingList;function et(e){e||(e={}),this._file=We.getArg(e,"file",null),this._sourceRoot=We.getArg(e,"sourceRoot",null),this._skipValidation=We.getArg(e,"skipValidation",!1),this._sources=new $e,this._names=new $e,this._mappings=new Ze,this._sourcesContents=null}et.prototype._version=3,et.fromSourceMap=function(e){var t=e.sourceRoot,r=new et({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=t&&(n.source=We.relative(t,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),r.addMapping(n)})),e.sources.forEach((function(n){var i=n;null!==t&&(i=We.relative(t,n)),r._sources.has(i)||r._sources.add(i);var a=e.sourceContentFor(n);null!=a&&r.setSourceContent(n,a)})),r},et.prototype.addMapping=function(e){var t=We.getArg(e,"generated"),r=We.getArg(e,"original",null),n=We.getArg(e,"source",null),i=We.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,n,i),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:i})},et.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=We.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[We.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[We.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},et.prototype.applySourceMap=function(e,t,r){var n=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=e.file}var i=this._sourceRoot;null!=i&&(n=We.relative(i,n));var a=new $e,o=new $e;this._mappings.unsortedForEach((function(t){if(t.source===n&&null!=t.originalLine){var s=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=s.source&&(t.source=s.source,null!=r&&(t.source=We.join(r,t.source)),null!=i&&(t.source=We.relative(i,t.source)),t.originalLine=s.line,t.originalColumn=s.column,null!=s.name&&(t.name=s.name))}var c=t.source;null==c||a.has(c)||a.add(c);var u=t.name;null==u||o.has(u)||o.add(u)}),this),this._sources=a,this._names=o,e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=We.join(r,t)),null!=i&&(t=We.relative(i,t)),this.setSourceContent(t,n))}),this)},et.prototype._validateMapping=function(e,t,r,n){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||r||n)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},et.prototype._serializeMappings=function(){for(var e,t,r,n,i=0,a=1,o=0,s=0,c=0,u=0,l="",_=this._mappings.toArray(),d=0,p=_.length;d<p;d++){if(e="",(t=_[d]).generatedLine!==a)for(i=0;t.generatedLine!==a;)e+=";",a++;else if(d>0){if(!We.compareByGeneratedPositionsInflated(t,_[d-1]))continue;e+=","}e+=Ve(t.generatedColumn-i),i=t.generatedColumn,null!=t.source&&(n=this._sources.indexOf(t.source),e+=Ve(n-u),u=n,e+=Ve(t.originalLine-1-s),s=t.originalLine-1,e+=Ve(t.originalColumn-o),o=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=Ve(r-c),c=r)),l+=e}return l},et.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=We.relative(t,e));var r=We.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},et.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},et.prototype.toString=function(){return JSON.stringify(this.toJSON())};var tt={SourceMapGenerator:et},rt=a((function(e,t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,n,i){if(0===r.length)return-1;var a=function e(r,n,i,a,o,s){var c=Math.floor((n-r)/2)+r,u=o(i,a[c],!0);return 0===u?c:u>0?n-c>1?e(c,n,i,a,o,s):s==t.LEAST_UPPER_BOUND?n<a.length?n:-1:c:c-r>1?e(r,c,i,a,o,s):s==t.LEAST_UPPER_BOUND?c:r<0?-1:r}(-1,r.length,e,r,n,i||t.GREATEST_LOWER_BOUND);if(a<0)return-1;for(;a-1>=0&&0===n(r[a],r[a-1],!0);)--a;return a}}));rt.GREATEST_LOWER_BOUND,rt.LEAST_UPPER_BOUND,rt.search;function nt(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function it(e,t,r,n){if(r<n){var i=r-1;nt(e,(c=r,u=n,Math.round(c+Math.random()*(u-c))),n);for(var a=e[n],o=r;o<n;o++)t(e[o],a)<=0&&nt(e,i+=1,o);nt(e,i+1,o);var s=i+1;it(e,t,r,s-1),it(e,t,s+1,n)}var c,u}var at=Xe.ArraySet,ot=function(e,t){it(e,t,0,e.length-1)};function st(e,t){var r=e;return"string"==typeof e&&(r=We.parseSourceMapInput(e)),null!=r.sections?new lt(r,t):new ct(r,t)}st.fromSourceMap=function(e,t){return ct.fromSourceMap(e,t)},st.prototype._version=3,st.prototype.__generatedMappings=null,Object.defineProperty(st.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),st.prototype.__originalMappings=null,Object.defineProperty(st.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),st.prototype._charIsMappingSeparator=function(e,t){var r=e.charAt(t);return";"===r||","===r},st.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},st.GENERATED_ORDER=1,st.ORIGINAL_ORDER=2,st.GREATEST_LOWER_BOUND=1,st.LEAST_UPPER_BOUND=2,st.prototype.eachMapping=function(e,t,r){var n,i=t||null;switch(r||st.GENERATED_ORDER){case st.GENERATED_ORDER:n=this._generatedMappings;break;case st.ORIGINAL_ORDER:n=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;n.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return{source:t=We.computeSourceURL(a,t,this._sourceMapURL),generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,i)},st.prototype.allGeneratedPositionsFor=function(e){var t=We.getArg(e,"line"),r={source:We.getArg(e,"source"),originalLine:t,originalColumn:We.getArg(e,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var n=[],i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",We.compareByOriginalPositions,rt.LEAST_UPPER_BOUND);if(i>=0){var a=this._originalMappings[i];if(void 0===e.column)for(var o=a.originalLine;a&&a.originalLine===o;)n.push({line:We.getArg(a,"generatedLine",null),column:We.getArg(a,"generatedColumn",null),lastColumn:We.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];else for(var s=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==s;)n.push({line:We.getArg(a,"generatedLine",null),column:We.getArg(a,"generatedColumn",null),lastColumn:We.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i]}return n};function ct(e,t){var r=e;"string"==typeof e&&(r=We.parseSourceMapInput(e));var n=We.getArg(r,"version"),i=We.getArg(r,"sources"),a=We.getArg(r,"names",[]),o=We.getArg(r,"sourceRoot",null),s=We.getArg(r,"sourcesContent",null),c=We.getArg(r,"mappings"),u=We.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);o&&(o=We.normalize(o)),i=i.map(String).map(We.normalize).map((function(e){return o&&We.isAbsolute(o)&&We.isAbsolute(e)?We.relative(o,e):e})),this._names=at.fromArray(a.map(String),!0),this._sources=at.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map((function(e){return We.computeSourceURL(o,e,t)})),this.sourceRoot=o,this.sourcesContent=s,this._mappings=c,this._sourceMapURL=t,this.file=u}function ut(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}ct.prototype=Object.create(st.prototype),ct.prototype.consumer=st,ct.prototype._findSourceIndex=function(e){var t,r=e;if(null!=this.sourceRoot&&(r=We.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},ct.fromSourceMap=function(e,t){var r=Object.create(ct.prototype),n=r._names=at.fromArray(e._names.toArray(),!0),i=r._sources=at.fromArray(e._sources.toArray(),!0);r.sourceRoot=e._sourceRoot,r.sourcesContent=e._generateSourcesContent(r._sources.toArray(),r.sourceRoot),r.file=e._file,r._sourceMapURL=t,r._absoluteSources=r._sources.toArray().map((function(e){return We.computeSourceURL(r.sourceRoot,e,t)}));for(var a=e._mappings.toArray().slice(),o=r.__generatedMappings=[],s=r.__originalMappings=[],c=0,u=a.length;c<u;c++){var l=a[c],_=new ut;_.generatedLine=l.generatedLine,_.generatedColumn=l.generatedColumn,l.source&&(_.source=i.indexOf(l.source),_.originalLine=l.originalLine,_.originalColumn=l.originalColumn,l.name&&(_.name=n.indexOf(l.name)),s.push(_)),o.push(_)}return ot(r.__originalMappings,We.compareByOriginalPositions),r},ct.prototype._version=3,Object.defineProperty(ct.prototype,"sources",{get:function(){return this._absoluteSources.slice()}}),ct.prototype._parseMappings=function(e,t){for(var r,n,i,a,o,s=1,c=0,u=0,l=0,_=0,d=0,p=e.length,f=0,m={},g={},y=[],h=[];f<p;)if(";"===e.charAt(f))s++,f++,c=0;else if(","===e.charAt(f))f++;else{for((r=new ut).generatedLine=s,a=f;a<p&&!this._charIsMappingSeparator(e,a);a++);if(i=m[n=e.slice(f,a)])f+=n.length;else{for(i=[];f<a;)qe(e,f,g),o=g.value,f=g.rest,i.push(o);if(2===i.length)throw new Error("Found a source, but no line and column");if(3===i.length)throw new Error("Found a source and line, but no column");m[n]=i}r.generatedColumn=c+i[0],c=r.generatedColumn,i.length>1&&(r.source=_+i[1],_+=i[1],r.originalLine=u+i[2],u=r.originalLine,r.originalLine+=1,r.originalColumn=l+i[3],l=r.originalColumn,i.length>4&&(r.name=d+i[4],d+=i[4])),h.push(r),"number"==typeof r.originalLine&&y.push(r)}ot(h,We.compareByGeneratedPositionsDeflated),this.__generatedMappings=h,ot(y,We.compareByOriginalPositions),this.__originalMappings=y},ct.prototype._findMapping=function(e,t,r,n,i,a){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return rt.search(e,t,i,a)},ct.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(t.generatedLine===r.generatedLine){t.lastGeneratedColumn=r.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},ct.prototype.originalPositionFor=function(e){var t={generatedLine:We.getArg(e,"line"),generatedColumn:We.getArg(e,"column")},r=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",We.compareByGeneratedPositionsDeflated,We.getArg(e,"bias",st.GREATEST_LOWER_BOUND));if(r>=0){var n=this._generatedMappings[r];if(n.generatedLine===t.generatedLine){var i=We.getArg(n,"source",null);null!==i&&(i=this._sources.at(i),i=We.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var a=We.getArg(n,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:We.getArg(n,"originalLine",null),column:We.getArg(n,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},ct.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e})))},ct.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var n,i=e;if(null!=this.sourceRoot&&(i=We.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(n=We.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!n.path||"/"==n.path)&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(t)return null;throw new Error('"'+i+'" is not in the SourceMap.')},ct.prototype.generatedPositionFor=function(e){var t=We.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var r={source:t,originalLine:We.getArg(e,"line"),originalColumn:We.getArg(e,"column")},n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",We.compareByOriginalPositions,We.getArg(e,"bias",st.GREATEST_LOWER_BOUND));if(n>=0){var i=this._originalMappings[n];if(i.source===r.source)return{line:We.getArg(i,"generatedLine",null),column:We.getArg(i,"generatedColumn",null),lastColumn:We.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};function lt(e,t){var r=e;"string"==typeof e&&(r=We.parseSourceMapInput(e));var n=We.getArg(r,"version"),i=We.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new at,this._names=new at;var a={line:-1,column:0};this._sections=i.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var r=We.getArg(e,"offset"),n=We.getArg(r,"line"),i=We.getArg(r,"column");if(n<a.line||n===a.line&&i<a.column)throw new Error("Section offsets must be ordered and non-overlapping.");return a=r,{generatedOffset:{generatedLine:n+1,generatedColumn:i+1},consumer:new st(We.getArg(e,"map"),t)}}))}lt.prototype=Object.create(st.prototype),lt.prototype.constructor=st,lt.prototype._version=3,Object.defineProperty(lt.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}}),lt.prototype.originalPositionFor=function(e){var t={generatedLine:We.getArg(e,"line"),generatedColumn:We.getArg(e,"column")},r=rt.search(t,this._sections,(function(e,t){var r=e.generatedLine-t.generatedOffset.generatedLine;return r||e.generatedColumn-t.generatedOffset.generatedColumn})),n=this._sections[r];return n?n.consumer.originalPositionFor({line:t.generatedLine-(n.generatedOffset.generatedLine-1),column:t.generatedColumn-(n.generatedOffset.generatedLine===t.generatedLine?n.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},lt.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},lt.prototype.sourceContentFor=function(e,t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r].consumer.sourceContentFor(e,!0);if(n)return n}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},lt.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var r=this._sections[t];if(-1!==r.consumer._findSourceIndex(We.getArg(e,"source"))){var n=r.consumer.generatedPositionFor(e);if(n)return{line:n.line+(r.generatedOffset.generatedLine-1),column:n.column+(r.generatedOffset.generatedLine===n.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},lt.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var n=this._sections[r],i=n.consumer._generatedMappings,a=0;a<i.length;a++){var o=i[a],s=n.consumer._sources.at(o.source);s=We.computeSourceURL(n.consumer.sourceRoot,s,this._sourceMapURL),this._sources.add(s),s=this._sources.indexOf(s);var c=null;o.name&&(c=n.consumer._names.at(o.name),this._names.add(c),c=this._names.indexOf(c));var u={source:s,generatedLine:o.generatedLine+(n.generatedOffset.generatedLine-1),generatedColumn:o.generatedColumn+(n.generatedOffset.generatedLine===o.generatedLine?n.generatedOffset.generatedColumn-1:0),originalLine:o.originalLine,originalColumn:o.originalColumn,name:c};this.__generatedMappings.push(u),"number"==typeof u.originalLine&&this.__originalMappings.push(u)}ot(this.__generatedMappings,We.compareByGeneratedPositionsDeflated),ot(this.__originalMappings,We.compareByOriginalPositions)};var _t=tt.SourceMapGenerator,dt=/(\r?\n)/,pt="$$$isSourceNode$$$";function ft(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==i?null:i,this[pt]=!0,null!=n&&this.add(n)}ft.fromStringWithSourceMap=function(e,t,r){var n=new ft,i=e.split(dt),a=0,o=function(){return e()+(e()||"");function e(){return a<i.length?i[a++]:void 0}},s=1,c=0,u=null;return t.eachMapping((function(e){if(null!==u){if(!(s<e.generatedLine)){var t=(r=i[a]||"").substr(0,e.generatedColumn-c);return i[a]=r.substr(e.generatedColumn-c),c=e.generatedColumn,l(u,t),void(u=e)}l(u,o()),s++,c=0}for(;s<e.generatedLine;)n.add(o()),s++;if(c<e.generatedColumn){var r=i[a]||"";n.add(r.substr(0,e.generatedColumn)),i[a]=r.substr(e.generatedColumn),c=e.generatedColumn}u=e}),this),a<i.length&&(u&&l(u,o()),n.add(i.splice(a).join(""))),t.sources.forEach((function(e){var i=t.sourceContentFor(e);null!=i&&(null!=r&&(e=We.join(r,e)),n.setSourceContent(e,i))})),n;function l(e,t){if(null===e||void 0===e.source)n.add(t);else{var i=r?We.join(r,e.source):e.source;n.add(new ft(e.originalLine,e.originalColumn,i,t,e.name))}}},ft.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[pt]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},ft.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[pt]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},ft.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r<n;r++)(t=this.children[r])[pt]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},ft.prototype.join=function(e){var t,r,n=this.children.length;if(n>0){for(t=[],r=0;r<n-1;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this},ft.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[pt]?r.replaceRight(e,t):"string"==typeof r?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this},ft.prototype.setSourceContent=function(e,t){this.sourceContents[We.toSetString(e)]=t},ft.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][pt]&&this.children[t].walkSourceContents(e);var n=Object.keys(this.sourceContents);for(t=0,r=n.length;t<r;t++)e(We.fromSetString(n[t]),this.sourceContents[n[t]])},ft.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},ft.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},r=new _t(e),n=!1,i=null,a=null,o=null,s=null;return this.walk((function(e,c){t.code+=e,null!==c.source&&null!==c.line&&null!==c.column?(i===c.source&&a===c.line&&o===c.column&&s===c.name||r.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:t.line,column:t.column},name:c.name}),i=c.source,a=c.line,o=c.column,s=c.name,n=!0):n&&(r.addMapping({generated:{line:t.line,column:t.column}}),i=null,n=!1);for(var u=0,l=e.length;u<l;u++)10===e.charCodeAt(u)?(t.line++,t.column=0,u+1===l?(i=null,n=!1):n&&r.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:t.line,column:t.column},name:c.name})):t.column++})),this.walkSourceContents((function(e,t){r.setSourceContent(e,t)})),{code:t.code,map:r}};var mt=[],gt=[],yt="undefined"!=typeof Uint8Array?Uint8Array:Array,ht=!1;function vt(){ht=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)mt[t]=e[t],gt[e.charCodeAt(t)]=t;gt["-".charCodeAt(0)]=62,gt["_".charCodeAt(0)]=63}function bt(e,t,r){for(var n,i,a=[],o=t;o<r;o+=3)n=(e[o]<<16)+(e[o+1]<<8)+e[o+2],a.push(mt[(i=n)>>18&63]+mt[i>>12&63]+mt[i>>6&63]+mt[63&i]);return a.join("")}function xt(e){var t;ht||vt();for(var r=e.length,n=r%3,i="",a=[],o=0,s=r-n;o<s;o+=16383)a.push(bt(e,o,o+16383>s?s:o+16383));return 1===n?(t=e[r-1],i+=mt[t>>2],i+=mt[t<<4&63],i+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],i+=mt[t>>10],i+=mt[t>>4&63],i+=mt[t<<2&63],i+="="),a.push(i),a.join("")}function Dt(e,t,r,n,i){var a,o,s=8*i-n-1,c=(1<<s)-1,u=c>>1,l=-7,_=r?i-1:0,d=r?-1:1,p=e[t+_];for(_+=d,a=p&(1<<-l)-1,p>>=-l,l+=s;l>0;a=256*a+e[t+_],_+=d,l-=8);for(o=a&(1<<-l)-1,a>>=-l,l+=n;l>0;o=256*o+e[t+_],_+=d,l-=8);if(0===a)a=1-u;else{if(a===c)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=u}return(p?-1:1)*o*Math.pow(2,a-n)}function St(e,t,r,n,i,a){var o,s,c,u=8*a-i-1,l=(1<<u)-1,_=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,f=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+_>=1?d/c:d*Math.pow(2,1-_))*c>=2&&(o++,c/=2),o+_>=l?(s=0,o=l):o+_>=1?(s=(t*c-1)*Math.pow(2,i),o+=_):(s=t*Math.pow(2,_-1)*Math.pow(2,i),o=0));i>=8;e[r+p]=255&s,p+=f,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;e[r+p]=255&o,p+=f,o/=256,u-=8);e[r+p-f]|=128*m}var Tt={}.toString,Et=Array.isArray||function(e){return"[object Array]"==Tt.call(e)};function Ct(){return Nt.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function kt(e,t){if(Ct()<t)throw new RangeError("Invalid typed array length");return Nt.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=Nt.prototype:(null===e&&(e=new Nt(t)),e.length=t),e}function Nt(e,t,r){if(!(Nt.TYPED_ARRAY_SUPPORT||this instanceof Nt))return new Nt(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return Pt(this,e)}return At(this,e,t,r)}function At(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);Nt.TYPED_ARRAY_SUPPORT?(e=t).__proto__=Nt.prototype:e=wt(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!Nt.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|Mt(t,r),i=(e=kt(e,n)).write(t,r);i!==n&&(e=e.slice(0,i));return e}(e,t,r):function(e,t){if(Ot(t)){var r=0|It(t.length);return 0===(e=kt(e,r)).length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?kt(e,0):wt(e,t);if("Buffer"===t.type&&Et(t.data))return wt(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Ft(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function Pt(e,t){if(Ft(t),e=kt(e,t<0?0:0|It(t)),!Nt.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function wt(e,t){var r=t.length<0?0:0|It(t.length);e=kt(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function It(e){if(e>=Ct())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ct().toString(16)+" bytes");return 0|e}function Ot(e){return!(null==e||!e._isBuffer)}function Mt(e,t){if(Ot(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return cr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return ur(e).length;default:if(n)return cr(e).length;t=(""+t).toLowerCase(),n=!0}}function Lt(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Qt(this,t,r);case"utf8":case"utf-8":return Gt(this,t,r);case"ascii":return Yt(this,t,r);case"latin1":case"binary":return Xt(this,t,r);case"base64":return Wt(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $t(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function Rt(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function Bt(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=Nt.from(t,n)),Ot(t))return 0===t.length?-1:jt(e,t,r,n,i);if("number"==typeof t)return t&=255,Nt.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):jt(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function jt(e,t,r,n,i){var a,o=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var l=-1;for(a=r;a<s;a++)if(u(e,a)===u(t,-1===l?0:a-l)){if(-1===l&&(l=a),a-l+1===c)return l*o}else-1!==l&&(a-=a-l),l=-1}else for(r+c>s&&(r=s-c),a=r;a>=0;a--){for(var _=!0,d=0;d<c;d++)if(u(e,a+d)!==u(t,d)){_=!1;break}if(_)return a}return-1}function Kt(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[r+o]=s}return o}function Jt(e,t,r,n){return lr(cr(t,e.length-r),e,r,n)}function zt(e,t,r,n){return lr(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function Ut(e,t,r,n){return zt(e,t,r,n)}function Vt(e,t,r,n){return lr(ur(t),e,r,n)}function qt(e,t,r,n){return lr(function(e,t){for(var r,n,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)r=e.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}(t,e.length-r),e,r,n)}function Wt(e,t,r){return 0===t&&r===e.length?xt(e):xt(e.slice(t,r))}function Gt(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var a,o,s,c,u=e[i],l=null,_=u>239?4:u>223?3:u>191?2:1;if(i+_<=r)switch(_){case 1:u<128&&(l=u);break;case 2:128==(192&(a=e[i+1]))&&(c=(31&u)<<6|63&a)>127&&(l=c);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(c=(15&u)<<12|(63&a)<<6|63&o)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(c=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,_=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=_}return function(e){var t=e.length;if(t<=Ht)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=Ht));return r}(n)}Nt.TYPED_ARRAY_SUPPORT=void 0===ue.TYPED_ARRAY_SUPPORT||ue.TYPED_ARRAY_SUPPORT,Nt.poolSize=8192,Nt._augment=function(e){return e.__proto__=Nt.prototype,e},Nt.from=function(e,t,r){return At(null,e,t,r)},Nt.TYPED_ARRAY_SUPPORT&&(Nt.prototype.__proto__=Uint8Array.prototype,Nt.__proto__=Uint8Array),Nt.alloc=function(e,t,r){return function(e,t,r,n){return Ft(t),t<=0?kt(e,t):void 0!==r?"string"==typeof n?kt(e,t).fill(r,n):kt(e,t).fill(r):kt(e,t)}(null,e,t,r)},Nt.allocUnsafe=function(e){return Pt(null,e)},Nt.allocUnsafeSlow=function(e){return Pt(null,e)},Nt.isBuffer=function(e){return null!=e&&(!!e._isBuffer||_r(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&_r(e.slice(0,0))}(e))},Nt.compare=function(e,t){if(!Ot(e)||!Ot(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},Nt.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Nt.concat=function(e,t){if(!Et(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Nt.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=Nt.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(!Ot(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},Nt.byteLength=Mt,Nt.prototype._isBuffer=!0,Nt.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)Rt(this,t,t+1);return this},Nt.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)Rt(this,t,t+3),Rt(this,t+1,t+2);return this},Nt.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)Rt(this,t,t+7),Rt(this,t+1,t+6),Rt(this,t+2,t+5),Rt(this,t+3,t+4);return this},Nt.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?Gt(this,0,e):Lt.apply(this,arguments)},Nt.prototype.equals=function(e){if(!Ot(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Nt.compare(this,e)},Nt.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},Nt.prototype.compare=function(e,t,r,n,i){if(!Ot(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(t>>>=0),s=Math.min(a,o),c=this.slice(n,i),u=e.slice(t,r),l=0;l<s;++l)if(c[l]!==u[l]){a=c[l],o=u[l];break}return a<o?-1:o<a?1:0},Nt.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},Nt.prototype.indexOf=function(e,t,r){return Bt(this,e,t,r,!0)},Nt.prototype.lastIndexOf=function(e,t,r){return Bt(this,e,t,r,!1)},Nt.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return Kt(this,e,t,r);case"utf8":case"utf-8":return Jt(this,e,t,r);case"ascii":return zt(this,e,t,r);case"latin1":case"binary":return Ut(this,e,t,r);case"base64":return Vt(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qt(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},Nt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Ht=4096;function Yt(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function Xt(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function Qt(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=t;a<r;++a)i+=sr(e[a]);return i}function $t(e,t,r){for(var n=e.slice(t,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function Zt(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function er(e,t,r,n,i,a){if(!Ot(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function tr(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i<a;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function rr(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i<a;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function nr(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function ir(e,t,r,n,i){return i||nr(e,0,r,4),St(e,t,r,n,23,4),r+4}function ar(e,t,r,n,i){return i||nr(e,0,r,8),St(e,t,r,n,52,8),r+8}Nt.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),Nt.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=Nt.prototype;else{var i=t-e;r=new Nt(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+e]}return r},Nt.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||Zt(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n},Nt.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||Zt(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},Nt.prototype.readUInt8=function(e,t){return t||Zt(e,1,this.length),this[e]},Nt.prototype.readUInt16LE=function(e,t){return t||Zt(e,2,this.length),this[e]|this[e+1]<<8},Nt.prototype.readUInt16BE=function(e,t){return t||Zt(e,2,this.length),this[e]<<8|this[e+1]},Nt.prototype.readUInt32LE=function(e,t){return t||Zt(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Nt.prototype.readUInt32BE=function(e,t){return t||Zt(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Nt.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||Zt(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},Nt.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||Zt(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},Nt.prototype.readInt8=function(e,t){return t||Zt(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Nt.prototype.readInt16LE=function(e,t){t||Zt(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},Nt.prototype.readInt16BE=function(e,t){t||Zt(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},Nt.prototype.readInt32LE=function(e,t){return t||Zt(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Nt.prototype.readInt32BE=function(e,t){return t||Zt(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Nt.prototype.readFloatLE=function(e,t){return t||Zt(e,4,this.length),Dt(this,e,!0,23,4)},Nt.prototype.readFloatBE=function(e,t){return t||Zt(e,4,this.length),Dt(this,e,!1,23,4)},Nt.prototype.readDoubleLE=function(e,t){return t||Zt(e,8,this.length),Dt(this,e,!0,52,8)},Nt.prototype.readDoubleBE=function(e,t){return t||Zt(e,8,this.length),Dt(this,e,!1,52,8)},Nt.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||er(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[t]=255&e;++a<r&&(i*=256);)this[t+a]=e/i&255;return t+r},Nt.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||er(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},Nt.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||er(this,e,t,1,255,0),Nt.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Nt.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||er(this,e,t,2,65535,0),Nt.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):tr(this,e,t,!0),t+2},Nt.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||er(this,e,t,2,65535,0),Nt.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):tr(this,e,t,!1),t+2},Nt.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||er(this,e,t,4,4294967295,0),Nt.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):rr(this,e,t,!0),t+4},Nt.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||er(this,e,t,4,4294967295,0),Nt.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):rr(this,e,t,!1),t+4},Nt.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);er(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<r&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},Nt.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);er(this,e,t,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},Nt.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||er(this,e,t,1,127,-128),Nt.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Nt.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||er(this,e,t,2,32767,-32768),Nt.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):tr(this,e,t,!0),t+2},Nt.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||er(this,e,t,2,32767,-32768),Nt.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):tr(this,e,t,!1),t+2},Nt.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||er(this,e,t,4,2147483647,-2147483648),Nt.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):rr(this,e,t,!0),t+4},Nt.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||er(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Nt.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):rr(this,e,t,!1),t+4},Nt.prototype.writeFloatLE=function(e,t,r){return ir(this,e,t,!0,r)},Nt.prototype.writeFloatBE=function(e,t,r){return ir(this,e,t,!1,r)},Nt.prototype.writeDoubleLE=function(e,t,r){return ar(this,e,t,!0,r)},Nt.prototype.writeDoubleBE=function(e,t,r){return ar(this,e,t,!1,r)},Nt.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,a=n-r;if(this===e&&r<t&&t<n)for(i=a-1;i>=0;--i)e[i+t]=this[i+r];else if(a<1e3||!Nt.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+a),t);return a},Nt.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!Nt.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var a;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a<r;++a)this[a]=e;else{var o=Ot(e)?e:cr(new Nt(e,n).toString()),s=o.length;for(a=0;a<r-t;++a)this[a+t]=o[a%s]}return this};var or=/[^+\/0-9A-Za-z-_]/g;function sr(e){return e<16?"0"+e.toString(16):e.toString(16)}function cr(e,t){var r;t=t||1/0;for(var n=e.length,i=null,a=[],o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function ur(e){return function(e){var t,r,n,i,a,o;ht||vt();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a="="===e[s-2]?2:"="===e[s-1]?1:0,o=new yt(3*s/4-a),n=a>0?s-4:s;var c=0;for(t=0,r=0;t<n;t+=4,r+=3)i=gt[e.charCodeAt(t)]<<18|gt[e.charCodeAt(t+1)]<<12|gt[e.charCodeAt(t+2)]<<6|gt[e.charCodeAt(t+3)],o[c++]=i>>16&255,o[c++]=i>>8&255,o[c++]=255&i;return 2===a?(i=gt[e.charCodeAt(t)]<<2|gt[e.charCodeAt(t+1)]>>4,o[c++]=255&i):1===a&&(i=gt[e.charCodeAt(t)]<<10|gt[e.charCodeAt(t+1)]<<4|gt[e.charCodeAt(t+2)]>>2,o[c++]=i>>8&255,o[c++]=255&i),o}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(or,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function lr(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function _r(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var dr=Object.prototype.toString,pr="function"==typeof Nt.alloc&&"function"==typeof Nt.allocUnsafe&&"function"==typeof Nt.from;var fr,mr=function(e,t,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return n=e,"ArrayBuffer"===dr.call(n).slice(8,-1)?function(e,t,r){t>>>=0;var n=e.byteLength-t;if(n<0)throw new RangeError("'offset' is out of bounds");if(void 0===r)r=n;else if((r>>>=0)>n)throw new RangeError("'length' is out of bounds");return pr?Nt.from(e.slice(t,t+r)):new Nt(new Uint8Array(e.slice(t,t+r)))}(e,t,r):"string"==typeof e?function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!Nt.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return pr?Nt.from(e,t):new Nt(e,t)}(e,t):pr?Nt.from(e):new Nt(e);var n},gr=Object.freeze({__proto__:null,default:{}}),yr=o(Be),hr=o(Re),vr=(o(gr),yr);try{(fr=hr).existsSync&&fr.readFileSync||(fr=null)}catch(e){}var br="auto",xr={},Dr=/^data:application\/json[^,]+base64,/,Sr=[],Tr=[];function Er(){return"browser"===br||"node"!==br&&("undefined"!=typeof window&&"function"==typeof XMLHttpRequest&&!(window.require&&window.module&&window.process&&"renderer"===window.process.type))}function Cr(e){return function(t){for(var r=0;r<e.length;r++){var n=e[r](t);if(n)return n}return null}}var kr=Cr(Sr);function Nr(e,t){if(!e)return t;var r=vr.dirname(e),n=/^\w+:\/\/[^\/]*/.exec(r),i=n?n[0]:"",a=r.slice(i.length);return i&&/^\/\w\:/.test(a)?(i+="/")+vr.resolve(r.slice(i.length),t).replace(/\\/g,"/"):i+vr.resolve(r.slice(i.length),t)}Sr.push((function(e){if(e=e.trim(),/^file:/.test(e)&&(e=e.replace(/file:\/\/\/(\w:)?/,(function(e,t){return t?"":"/"}))),e in xr)return xr[e];var t="";try{if(fr)fr.existsSync(e)&&(t=fr.readFileSync(e,"utf8"));else{var r=new XMLHttpRequest;r.open("GET",e,!1),r.send(null),4===r.readyState&&200===r.status&&(t=r.responseText)}}catch(e){}return xr[e]=t}));Cr(Tr);Tr.push((function(e){var t,r=function(e){var t;if(Er())try{var r=new XMLHttpRequest;r.open("GET",e,!1),r.send(null),t=4===r.readyState?r.responseText:null;var n=r.getResponseHeader("SourceMap")||r.getResponseHeader("X-SourceMap");if(n)return n}catch(e){}t=kr(e);for(var i,a,o=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/gm;a=o.exec(t);)i=a;return i?i[1]:null}(e);if(!r)return null;if(Dr.test(r)){var n=r.slice(r.indexOf(",")+1);t=mr(n,"base64").toString(),r=e}else r=Nr(e,r),t=kr(r);return t?{url:r,map:t}:null}));Sr.slice(0),Tr.slice(0);var Ar=Object.freeze({__proto__:null,default:{}}),Fr=(o(je),o(Ke),o(Ar),a((function(e){var t=n&&n.__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},r=n&&n.__assign||function(){return(r=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)},i=n&&n.__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(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},a=n&&n.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=n&&n.__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}())}}(s||(s={})),function(e){e.versionMajorMinor="3.7",e.version=e.versionMajorMinor+".2"}(s||(s={})),function(e){!function(e){e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan"}(e.Comparison||(e.Comparison={}))}(s||(s={})),function(e){e.tryGetNativeMap=function(){return"undefined"!=typeof Map&&"entries"in Map.prototype?Map:void 0}}(s||(s={})),function(e){function r(){return new e.Map}function n(e,t,r){if(void 0===r&&(r=k),e)for(var n=0,i=e;n<i.length;n++){if(r(i[n],t))return!0}return!1}function i(e,t){if(e){if(!t)return e.length>0;for(var r=0,n=e;r<n.length;r++){if(t(n[r]))return!0}}return!1}function a(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)}function o(e,t){return t<0?e.length+t:t}function s(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:o(t,r),n=void 0===n?t.length:o(t,n);for(var i=r;i<n&&i<t.length;i++)void 0!==t[i]&&e.push(t[i]);return e}function c(e,t,r){return!n(e,t,r)&&(e.push(t),!0)}function u(e,t,r){t.sort((function(t,n){return r(e[t],e[n])||A(t,n)}))}function l(e,t){return 0===e.length?e:e.slice().sort(t)}function _(e){var t=0;return{next:function(){return t===e.length?{value:void 0,done:!0}:{value:e[++t-1],done:!1}}}}function d(e,t,r,n,i){return p(e,r(t),r,n,i)}function p(e,t,r,n,a){if(!i(e))return-1;for(var o=a||0,s=e.length-1;o<=s;){var c=o+(s-o>>1);switch(n(r(e[c]),t)){case-1:o=c+1;break;case 0:return c;case 1:s=c-1}}return~o}function m(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.Map=e.tryGetNativeMap()||function(){if("function"==typeof e.createMapShim)return e.createMapShim();throw new Error("TypeScript requires an environment that provides a compatible native Map implementation.")}(),e.createMap=r,e.createMapFromEntries=function(e){for(var t=r(),n=0,i=e;n<i.length;n++){var a=i[n],o=a[0],s=a[1];t.set(o,s)}return t},e.createMapFromTemplate=function(t){var r=new e.Map;for(var n in t)g.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}:{value:[t[++n-1],r[n-1]],done:!1}}}},e.zipToMap=function(t,n){e.Debug.assert(t.length===n.length);for(var i=r(),a=0;a<t.length;++a)i.set(t[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=n,e.arraysEqual=function(e,t,r){return void 0===r&&(r=k),e.length===t.length&&e.every((function(e,n){return r(e,t[n])}))},e.indexOfAnyCharCode=function(e,t,r){for(var i=r||0;i<e.length;i++)if(n(t,e.charCodeAt(i)))return i;return-1},e.countWhere=function(e,t){var r=0;if(e)for(var n=0;n<e.length;n++){t(e[n],n)&&r++}return r},e.filter=function(e,t){if(e){for(var r=e.length,n=0;n<r&&t(e[n]);)n++;if(n<r){var i=e.slice(0,n);for(n++;n<r;){var a=e[n];t(a)&&i.push(a),n++}return i}}return e},e.filterMutate=function(e,t){for(var r=0,n=0;n<e.length;n++)t(e[n],n,e)&&(e[r]=e[n],r++);e.length=r},e.clear=function(e){e.length=0},e.map=function(e,t){var r;if(e){r=[];for(var n=0;n<e.length;n++)r.push(t(e[n],n))}return r},e.mapIterator=function(e,t){return{next:function(){var r=e.next();return r.done?r:{value:t(r.value),done:!1}}}},e.sameMap=function(e,t){if(e)for(var r=0;r<e.length;r++){var n=e[r],i=t(n,r);if(n!==i){var a=e.slice(0,r);for(a.push(i),r++;r<e.length;r++)a.push(t(e[r],r));return a}}return e},e.flatten=function(e){for(var t=[],r=0,n=e;r<n.length;r++){var i=n[r];i&&(S(i)?s(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 o=r(t[i],i);o&&(n=S(o)?s(n,o):a(n,o))}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&&(S(i)?s(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:S(n)?_(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||S(a))&&(r||(r=e.slice(0,n)),S(a)?s(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.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,t){if(e){var n=r();return e.forEach((function(e,r){var i=t(r,e),a=i[0],o=i[1];n.set(a,o)})),n}},e.some=i,e.getRangesWhere=function(e,t,r){for(var n,i=0;i<e.length;i++)t(e[i])?n=void 0===n?i:n:void 0!==n&&(r(n,i),n=void 0);void 0!==n&&r(n,e.length)},e.concatenate=function(e,r){return i(r)?i(e)?t(e,r):r:e},e.deduplicate=function(e,t,r){return 0===e.length?[]:1===e.length?e.slice():r?function(e,t,r){var n=e.map((function(e,t){return t}));u(e,n,r);for(var i=e[n[0]],a=[n[0]],o=1;o<n.length;o++){var s=n[o],c=e[s];t(i,c)||(a.push(s),i=c)}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++){c(r,i[n],t)}return r}(e,t)},e.insertSorted=function(e,t,r){if(0!==e.length){var n=d(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}(l(t,r),n||r||P)},e.arrayIsEqualTo=function(e,t,r){if(void 0===r&&(r=k),!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=a,e.addRange=s,e.pushIfUnique=c,e.appendIfUnique=function(e,t,r){return e?(c(e,t,r),e):[t]},e.sort=l,e.arrayIterator=_,e.arrayReverseIterator=function(e){var t=e.length;return{next:function(){return 0===t?{value:void 0,done:!0}:{value:e[--t],done:!1}}}},e.stableSort=function(e,t){var r=e.map((function(e,t){return t}));return u(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=o(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=d,e.binarySearchKey=p,e.reduceLeft=m;var g=Object.prototype.hasOwnProperty;function y(e,t){return g.call(e,t)}function h(e,t){for(var r=[],n=e.next();!n.done;n=e.next())r.push(t?t(n.value):n.value);return r}function v(e,t,r){void 0===r&&(r=E);for(var n=b(),i=0,a=e;i<a.length;i++){var o=a[i];n.add(t(o),r(o))}return n}function b(){var e=r();return e.add=x,e.remove=D,e}function x(e,t){var r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}function D(e,t){var r=this.get(e);r&&(j(r,t),r.length||this.delete(e))}function S(e){return Array.isArray?Array.isArray(e):e instanceof Array}function T(e){}function E(e){return e}function C(e){return e.toLowerCase()}function k(e,t){return e===t}function N(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e<t?-1:1}function A(e,t){return N(e,t)}function F(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 P(e,t){return N(e,t)}e.hasProperty=y,e.getProperty=function(e,t){return g.call(e,t)?e[t]:void 0},e.getOwnKeys=function(e){var t=[];for(var r in e)g.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++){c(t,n[r])}}while(e=Object.getPrototypeOf(e));return t},e.getOwnValues=function(e){var t=[];for(var r in e)g.call(e,r)&&t.push(e[r]);return t},e.arrayFrom=h,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)y(a,o)&&(e[o]=a[o])}return e},e.equalOwnProperties=function(e,t,r){if(void 0===r&&(r=k),e===t)return!0;if(!e||!t)return!1;for(var n in e)if(g.call(e,n)){if(!g.call(t,n))return!1;if(!r(e[n],t[n]))return!1}for(var n in t)if(g.call(t,n)&&!g.call(e,n))return!1;return!0},e.arrayToMap=function(e,t,n){void 0===n&&(n=E);for(var i=r(),a=0,o=e;a<o.length;a++){var s=o[a],c=t(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=v,e.group=function(e,t){return h(v(e,t).values())},e.clone=function(e){var t={};for(var r in e)g.call(e,r)&&(t[r]=e[r]);return t},e.extend=function(e,t){var r={};for(var n in t)g.call(t,n)&&(r[n]=t[n]);for(var n in e)g.call(e,n)&&(r[n]=e[n]);return r},e.copyProperties=function(e,t){for(var r in t)g.call(t,r)&&(e[r]=t[r])},e.maybeBind=function(e,t){return t?t.bind(e):void 0},e.mapMap=function(e,t){var n=r();return e.forEach((function(e,r){return n.set.apply(n,t(e,r))})),n},e.createMultiMap=b,e.isArray=S,e.toArray=function(e){return S(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=T,e.returnFalse=function(){return!1},e.returnTrue=function(){return!0},e.returnUndefined=function(){},e.identity=E,e.toLowerCase=C,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 m(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=k,e.equateStringsCaseInsensitive=function(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()},e.equateStringsCaseSensitive=function(e,t){return k(e,t)},e.compareValues=A,e.min=function(e,t,r){return-1===r(e,t)?e:t},e.compareStringsCaseInsensitive=F,e.compareStringsCaseSensitive=P,e.getStringComparer=function(e){return e?F:P};var w,I,O=function(){var e,t,r=function(){if("object"===("undefined"==typeof Intl?"undefined":f(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 M(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 L(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function R(e,t){for(var r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function B(e,t){e[t]=e[e.length-1],e.pop()}function j(e,t){return function(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return B(e,r),!0;return!1}(e,(function(e){return e===t}))}function K(e,t){return 0===e.lastIndexOf(t,0)}function J(e,t){var r=e.prefix,n=e.suffix;return t.length>=r.length+n.length&&K(t,r)&&L(t,n)}e.getUILocale=function(){return I},e.setUILocale=function(e){I!==e&&(I=e,w=void 0)},e.compareStringsCaseSensitiveUI=function(e,t){return(w||(w=O(I)))(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 A(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=M(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=L,e.removeSuffix=function(e,t){return L(e,t)?e.slice(0,e.length-t.length):e},e.tryRemoveSuffix=function(e,t){return L(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 R(e,r),!0;return!1},e.orderedRemoveItemAt=R,e.unorderedRemoveItemAt=B,e.unorderedRemoveItem=j,e.createGetCanonicalFileName=function(e){return e?E:C},e.patternText=function(e){return e.prefix+"*"+e.suffix},e.matchedText=function(t,r){return e.Debug.assert(J(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);J(c,r)&&c.prefix.length>i&&(i=c.prefix.length,n=s)}return n},e.startsWith=K,e.removePrefix=function(e,t){return K(e,t)?e.substr(t.length):e},e.tryRemovePrefix=function(e,t,r){return void 0===r&&(r=E),K(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(t){for(var r=0,n=e;r<n.length;r++){if((0,n[r])(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||T;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}}(s||(s={})),function(e){!function(t){function r(e){return t.currentAssertionLevel>=e}function n(e,t,r,a){e||(r&&(t+="\r\nVerbose Debug Information: "+("string"==typeof r?r:r())),i(t?"False expression: "+t:"False expression.",a||n))}function i(e,t){var r=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(r,t||i),r}function a(e,t){return null==e?i(t):e}function o(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 s(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=i.length-1;s>=0&&0!==o;s--){var c=i[s],u=c[0],l=c[1];0!==u&&(o&u)===u&&(o&=~u,a=l+(a?"|":"")+a)}if(0===o)return a}else for(var _=0,d=i;_<d.length;_++){var p=d[_];u=p[0],l=p[1];if(u===t)return l}return t.toString()}function c(t){return s(t,e.SyntaxKind,!1)}function u(t){return s(t,e.NodeFlags,!0)}function l(t){return s(t,e.ModifierFlags,!0)}function _(t){return s(t,e.TransformFlags,!0)}function d(t){return s(t,e.EmitFlags,!0)}function p(t){return s(t,e.SymbolFlags,!0)}function m(t){return s(t,e.TypeFlags,!0)}function g(t){return s(t,e.ObjectFlags,!0)}t.currentAssertionLevel=0,t.isDebugging=!1,t.shouldAssert=r,t.assert=n,t.assertEqual=function(e,t,r,n){e!==t&&i("Expected "+e+" === "+t+". "+(r?n?r+" "+n:r:""))},t.assertLessThan=function(e,t,r){e>=t&&i("Expected "+e+" < "+t+". "+(r||""))},t.assertLessThanOrEqual=function(e,t){e>t&&i("Expected "+e+" <= "+t)},t.assertGreaterThanOrEqual=function(e,t){e<t&&i("Expected "+e+" >= "+t)},t.fail=i,t.assertDefined=a,t.assertEachDefined=function(e,t){for(var r=0,n=e;r<n.length;r++){a(n[r],t)}return e},t.assertNever=function t(r,n,a){return void 0===n&&(n="Illegal value:"),i(n+" "+("object"===f(r)&&e.hasProperty(r,"kind")&&e.hasProperty(r,"pos")&&c?"SyntaxKind: "+c(r.kind):JSON.stringify(r)),a||t)},t.getFunctionName=o,t.formatSymbol=function(t){return"{ name: "+e.unescapeLeadingUnderscores(t.escapedName)+"; flags: "+p(t.flags)+"; declarations: "+e.map(t.declarations,(function(e){return c(e.kind)}))+" }"},t.formatEnum=s,t.formatSyntaxKind=c,t.formatNodeFlags=u,t.formatModifierFlags=l,t.formatTransformFlags=_,t.formatEmitFlags=d,t.formatSymbolFlags=p,t.formatTypeFlags=m,t.formatObjectFlags=g,t.failBadSyntaxKind=function e(t,r){return i((r||"Unexpected node.")+"\r\nNode "+c(t.kind)+" was unexpected.",e)},t.assertEachNode=r(1)?function(r,i,a){return n(void 0===i||e.every(r,i),a||"Unexpected node.",(function(){return"Node array did not pass test '"+o(i)+"'."}),t.assertEachNode)}:e.noop,t.assertNode=r(1)?function(e,r,i){return n(void 0===r||r(e),i||"Unexpected node.",(function(){return"Node "+c(e.kind)+" did not pass test '"+o(r)+"'."}),t.assertNode)}:e.noop,t.assertNotNode=r(1)?function(e,r,i){return n(void 0===r||!r(e),i||"Unexpected node.",(function(){return"Node "+c(e.kind)+" should not have passed test '"+o(r)+"'."}),t.assertNode)}:e.noop,t.assertOptionalNode=r(1)?function(e,r,i){return n(void 0===r||void 0===e||r(e),i||"Unexpected node.",(function(){return"Node "+c(e.kind)+" did not pass test '"+o(r)+"'."}),t.assertOptionalNode)}:e.noop,t.assertOptionalToken=r(1)?function(e,r,i){return n(void 0===r||void 0===e||e.kind===r,i||"Unexpected node.",(function(){return"Node "+c(e.kind)+" was not a '"+c(r)+"' token."}),t.assertOptionalToken)}:e.noop,t.assertMissingNode=r(1)?function(e,r){return n(void 0===e,r||"Unexpected node.",(function(){return"Node "+c(e.kind)+" was unexpected'."}),t.assertMissingNode)}:e.noop;var y,h=!1;function v(e){return function(){if(b(),!y)throw new Error("Debugging helpers could not be loaded.");return y}().formatControlFlowGraph(e)}function b(){if(!h){Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__debugFlags:{get:function(){return p(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__debugFlags:{get:function(){return m(this.flags)}},__debugObjectFlags:{get:function(){return 524288&this.flags?g(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 c(this.kind)}},__debugNodeFlags:{get:function(){return u(this.flags)}},__debugModifierFlags:{get:function(){return l(e.getModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return _(this.transformFlags)}},__debugIsParseTreeNode:{get:function(){return e.isParseTreeNode(this)}},__debugEmitFlags:{get:function(){return d(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),y=a.module)}}catch(e){}h=!0}}t.printControlFlowGraph=function(e){return console.log(v(e))},t.formatControlFlowGraph=v,t.attachFlowNodeDebugInfo=function(t){h&&("__debugFlowFlags"in t||Object.defineProperties(t,{__debugFlowFlags:{get:function(){return s(this.flags,e.FlowFlags,!0)}},__debugToString:{value:function(){return v(this)}}}))},t.enableDebugInfo=b}(e.Debug||(e.Debug={}))}(s||(s={})),function(e){e.timestamp="undefined"!=typeof performance&&performance.now?function(){return performance.now()}:Date.now?Date.now:function(){return+new Date}}(s||(s={})),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={}))}(s||(s={})),function(e){var t,r={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{t=require("@microsoft/typescript-etw")}catch(e){t=void 0}e.perfLogger=t&&t.logEvent?t:r}(s||(s={})),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.assertDefined(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.assertDefined(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(v(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(!m(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||!g(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 m(e,t,r){var n=f(e);if(!n)return!1;var i=f(t);return!!i&&(y(n.major)||r.push(h(">=",n.version)),y(i.major)||r.push(y(i.minor)?h("<",i.version.increment("major")):y(i.patch)?h("<",i.version.increment("minor")):h("<=",i.version)),!0)}function g(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(h("<",a.zero));else switch(e){case"~":r.push(h(">=",i)),r.push(h("<",i.increment(y(s)?"major":"minor")));break;case"^":r.push(h(">=",i)),r.push(h("<",i.increment(i.major>0||y(s)?"major":i.minor>0||y(c)?"minor":"patch")));break;case"<":case">=":r.push(h(e,i));break;case"<=":case">":r.push(y(s)?h("<="===e?"<":">=",i.increment("major")):y(c)?h("<="===e?"<":">=",i.increment("minor")):h(e,i));break;case"=":case void 0:y(s)||y(c)?(r.push(h(">=",i)),r.push(h("<",i.increment(y(s)?"major":"minor")))):r.push(h("=",i));break;default:return!1}return!0}function y(e){return"*"===e||"x"===e||"X"===e}function h(e,t){return{operator:e,operand:t}}function v(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}}(s||(s={})),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.BreakKeyword=76]="BreakKeyword",e[e.CaseKeyword=77]="CaseKeyword",e[e.CatchKeyword=78]="CatchKeyword",e[e.ClassKeyword=79]="ClassKeyword",e[e.ConstKeyword=80]="ConstKeyword",e[e.ContinueKeyword=81]="ContinueKeyword",e[e.DebuggerKeyword=82]="DebuggerKeyword",e[e.DefaultKeyword=83]="DefaultKeyword",e[e.DeleteKeyword=84]="DeleteKeyword",e[e.DoKeyword=85]="DoKeyword",e[e.ElseKeyword=86]="ElseKeyword",e[e.EnumKeyword=87]="EnumKeyword",e[e.ExportKeyword=88]="ExportKeyword",e[e.ExtendsKeyword=89]="ExtendsKeyword",e[e.FalseKeyword=90]="FalseKeyword",e[e.FinallyKeyword=91]="FinallyKeyword",e[e.ForKeyword=92]="ForKeyword",e[e.FunctionKeyword=93]="FunctionKeyword",e[e.IfKeyword=94]="IfKeyword",e[e.ImportKeyword=95]="ImportKeyword",e[e.InKeyword=96]="InKeyword",e[e.InstanceOfKeyword=97]="InstanceOfKeyword",e[e.NewKeyword=98]="NewKeyword",e[e.NullKeyword=99]="NullKeyword",e[e.ReturnKeyword=100]="ReturnKeyword",e[e.SuperKeyword=101]="SuperKeyword",e[e.SwitchKeyword=102]="SwitchKeyword",e[e.ThisKeyword=103]="ThisKeyword",e[e.ThrowKeyword=104]="ThrowKeyword",e[e.TrueKeyword=105]="TrueKeyword",e[e.TryKeyword=106]="TryKeyword",e[e.TypeOfKeyword=107]="TypeOfKeyword",e[e.VarKeyword=108]="VarKeyword",e[e.VoidKeyword=109]="VoidKeyword",e[e.WhileKeyword=110]="WhileKeyword",e[e.WithKeyword=111]="WithKeyword",e[e.ImplementsKeyword=112]="ImplementsKeyword",e[e.InterfaceKeyword=113]="InterfaceKeyword",e[e.LetKeyword=114]="LetKeyword",e[e.PackageKeyword=115]="PackageKeyword",e[e.PrivateKeyword=116]="PrivateKeyword",e[e.ProtectedKeyword=117]="ProtectedKeyword",e[e.PublicKeyword=118]="PublicKeyword",e[e.StaticKeyword=119]="StaticKeyword",e[e.YieldKeyword=120]="YieldKeyword",e[e.AbstractKeyword=121]="AbstractKeyword",e[e.AsKeyword=122]="AsKeyword",e[e.AssertsKeyword=123]="AssertsKeyword",e[e.AnyKeyword=124]="AnyKeyword",e[e.AsyncKeyword=125]="AsyncKeyword",e[e.AwaitKeyword=126]="AwaitKeyword",e[e.BooleanKeyword=127]="BooleanKeyword",e[e.ConstructorKeyword=128]="ConstructorKeyword",e[e.DeclareKeyword=129]="DeclareKeyword",e[e.GetKeyword=130]="GetKeyword",e[e.InferKeyword=131]="InferKeyword",e[e.IsKeyword=132]="IsKeyword",e[e.KeyOfKeyword=133]="KeyOfKeyword",e[e.ModuleKeyword=134]="ModuleKeyword",e[e.NamespaceKeyword=135]="NamespaceKeyword",e[e.NeverKeyword=136]="NeverKeyword",e[e.ReadonlyKeyword=137]="ReadonlyKeyword",e[e.RequireKeyword=138]="RequireKeyword",e[e.NumberKeyword=139]="NumberKeyword",e[e.ObjectKeyword=140]="ObjectKeyword",e[e.SetKeyword=141]="SetKeyword",e[e.StringKeyword=142]="StringKeyword",e[e.SymbolKeyword=143]="SymbolKeyword",e[e.TypeKeyword=144]="TypeKeyword",e[e.UndefinedKeyword=145]="UndefinedKeyword",e[e.UniqueKeyword=146]="UniqueKeyword",e[e.UnknownKeyword=147]="UnknownKeyword",e[e.FromKeyword=148]="FromKeyword",e[e.GlobalKeyword=149]="GlobalKeyword",e[e.BigIntKeyword=150]="BigIntKeyword",e[e.OfKeyword=151]="OfKeyword",e[e.QualifiedName=152]="QualifiedName",e[e.ComputedPropertyName=153]="ComputedPropertyName",e[e.TypeParameter=154]="TypeParameter",e[e.Parameter=155]="Parameter",e[e.Decorator=156]="Decorator",e[e.PropertySignature=157]="PropertySignature",e[e.PropertyDeclaration=158]="PropertyDeclaration",e[e.MethodSignature=159]="MethodSignature",e[e.MethodDeclaration=160]="MethodDeclaration",e[e.Constructor=161]="Constructor",e[e.GetAccessor=162]="GetAccessor",e[e.SetAccessor=163]="SetAccessor",e[e.CallSignature=164]="CallSignature",e[e.ConstructSignature=165]="ConstructSignature",e[e.IndexSignature=166]="IndexSignature",e[e.TypePredicate=167]="TypePredicate",e[e.TypeReference=168]="TypeReference",e[e.FunctionType=169]="FunctionType",e[e.ConstructorType=170]="ConstructorType",e[e.TypeQuery=171]="TypeQuery",e[e.TypeLiteral=172]="TypeLiteral",e[e.ArrayType=173]="ArrayType",e[e.TupleType=174]="TupleType",e[e.OptionalType=175]="OptionalType",e[e.RestType=176]="RestType",e[e.UnionType=177]="UnionType",e[e.IntersectionType=178]="IntersectionType",e[e.ConditionalType=179]="ConditionalType",e[e.InferType=180]="InferType",e[e.ParenthesizedType=181]="ParenthesizedType",e[e.ThisType=182]="ThisType",e[e.TypeOperator=183]="TypeOperator",e[e.IndexedAccessType=184]="IndexedAccessType",e[e.MappedType=185]="MappedType",e[e.LiteralType=186]="LiteralType",e[e.ImportType=187]="ImportType",e[e.ObjectBindingPattern=188]="ObjectBindingPattern",e[e.ArrayBindingPattern=189]="ArrayBindingPattern",e[e.BindingElement=190]="BindingElement",e[e.ArrayLiteralExpression=191]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=192]="ObjectLiteralExpression",e[e.PropertyAccessExpression=193]="PropertyAccessExpression",e[e.ElementAccessExpression=194]="ElementAccessExpression",e[e.CallExpression=195]="CallExpression",e[e.NewExpression=196]="NewExpression",e[e.TaggedTemplateExpression=197]="TaggedTemplateExpression",e[e.TypeAssertionExpression=198]="TypeAssertionExpression",e[e.ParenthesizedExpression=199]="ParenthesizedExpression",e[e.FunctionExpression=200]="FunctionExpression",e[e.ArrowFunction=201]="ArrowFunction",e[e.DeleteExpression=202]="DeleteExpression",e[e.TypeOfExpression=203]="TypeOfExpression",e[e.VoidExpression=204]="VoidExpression",e[e.AwaitExpression=205]="AwaitExpression",e[e.PrefixUnaryExpression=206]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=207]="PostfixUnaryExpression",e[e.BinaryExpression=208]="BinaryExpression",e[e.ConditionalExpression=209]="ConditionalExpression",e[e.TemplateExpression=210]="TemplateExpression",e[e.YieldExpression=211]="YieldExpression",e[e.SpreadElement=212]="SpreadElement",e[e.ClassExpression=213]="ClassExpression",e[e.OmittedExpression=214]="OmittedExpression",e[e.ExpressionWithTypeArguments=215]="ExpressionWithTypeArguments",e[e.AsExpression=216]="AsExpression",e[e.NonNullExpression=217]="NonNullExpression",e[e.MetaProperty=218]="MetaProperty",e[e.SyntheticExpression=219]="SyntheticExpression",e[e.TemplateSpan=220]="TemplateSpan",e[e.SemicolonClassElement=221]="SemicolonClassElement",e[e.Block=222]="Block",e[e.EmptyStatement=223]="EmptyStatement",e[e.VariableStatement=224]="VariableStatement",e[e.ExpressionStatement=225]="ExpressionStatement",e[e.IfStatement=226]="IfStatement",e[e.DoStatement=227]="DoStatement",e[e.WhileStatement=228]="WhileStatement",e[e.ForStatement=229]="ForStatement",e[e.ForInStatement=230]="ForInStatement",e[e.ForOfStatement=231]="ForOfStatement",e[e.ContinueStatement=232]="ContinueStatement",e[e.BreakStatement=233]="BreakStatement",e[e.ReturnStatement=234]="ReturnStatement",e[e.WithStatement=235]="WithStatement",e[e.SwitchStatement=236]="SwitchStatement",e[e.LabeledStatement=237]="LabeledStatement",e[e.ThrowStatement=238]="ThrowStatement",e[e.TryStatement=239]="TryStatement",e[e.DebuggerStatement=240]="DebuggerStatement",e[e.VariableDeclaration=241]="VariableDeclaration",e[e.VariableDeclarationList=242]="VariableDeclarationList",e[e.FunctionDeclaration=243]="FunctionDeclaration",e[e.ClassDeclaration=244]="ClassDeclaration",e[e.InterfaceDeclaration=245]="InterfaceDeclaration",e[e.TypeAliasDeclaration=246]="TypeAliasDeclaration",e[e.EnumDeclaration=247]="EnumDeclaration",e[e.ModuleDeclaration=248]="ModuleDeclaration",e[e.ModuleBlock=249]="ModuleBlock",e[e.CaseBlock=250]="CaseBlock",e[e.NamespaceExportDeclaration=251]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=252]="ImportEqualsDeclaration",e[e.ImportDeclaration=253]="ImportDeclaration",e[e.ImportClause=254]="ImportClause",e[e.NamespaceImport=255]="NamespaceImport",e[e.NamedImports=256]="NamedImports",e[e.ImportSpecifier=257]="ImportSpecifier",e[e.ExportAssignment=258]="ExportAssignment",e[e.ExportDeclaration=259]="ExportDeclaration",e[e.NamedExports=260]="NamedExports",e[e.ExportSpecifier=261]="ExportSpecifier",e[e.MissingDeclaration=262]="MissingDeclaration",e[e.ExternalModuleReference=263]="ExternalModuleReference",e[e.JsxElement=264]="JsxElement",e[e.JsxSelfClosingElement=265]="JsxSelfClosingElement",e[e.JsxOpeningElement=266]="JsxOpeningElement",e[e.JsxClosingElement=267]="JsxClosingElement",e[e.JsxFragment=268]="JsxFragment",e[e.JsxOpeningFragment=269]="JsxOpeningFragment",e[e.JsxClosingFragment=270]="JsxClosingFragment",e[e.JsxAttribute=271]="JsxAttribute",e[e.JsxAttributes=272]="JsxAttributes",e[e.JsxSpreadAttribute=273]="JsxSpreadAttribute",e[e.JsxExpression=274]="JsxExpression",e[e.CaseClause=275]="CaseClause",e[e.DefaultClause=276]="DefaultClause",e[e.HeritageClause=277]="HeritageClause",e[e.CatchClause=278]="CatchClause",e[e.PropertyAssignment=279]="PropertyAssignment",e[e.ShorthandPropertyAssignment=280]="ShorthandPropertyAssignment",e[e.SpreadAssignment=281]="SpreadAssignment",e[e.EnumMember=282]="EnumMember",e[e.UnparsedPrologue=283]="UnparsedPrologue",e[e.UnparsedPrepend=284]="UnparsedPrepend",e[e.UnparsedText=285]="UnparsedText",e[e.UnparsedInternalText=286]="UnparsedInternalText",e[e.UnparsedSyntheticReference=287]="UnparsedSyntheticReference",e[e.SourceFile=288]="SourceFile",e[e.Bundle=289]="Bundle",e[e.UnparsedSource=290]="UnparsedSource",e[e.InputFiles=291]="InputFiles",e[e.JSDocTypeExpression=292]="JSDocTypeExpression",e[e.JSDocAllType=293]="JSDocAllType",e[e.JSDocUnknownType=294]="JSDocUnknownType",e[e.JSDocNullableType=295]="JSDocNullableType",e[e.JSDocNonNullableType=296]="JSDocNonNullableType",e[e.JSDocOptionalType=297]="JSDocOptionalType",e[e.JSDocFunctionType=298]="JSDocFunctionType",e[e.JSDocVariadicType=299]="JSDocVariadicType",e[e.JSDocNamepathType=300]="JSDocNamepathType",e[e.JSDocComment=301]="JSDocComment",e[e.JSDocTypeLiteral=302]="JSDocTypeLiteral",e[e.JSDocSignature=303]="JSDocSignature",e[e.JSDocTag=304]="JSDocTag",e[e.JSDocAugmentsTag=305]="JSDocAugmentsTag",e[e.JSDocAuthorTag=306]="JSDocAuthorTag",e[e.JSDocClassTag=307]="JSDocClassTag",e[e.JSDocCallbackTag=308]="JSDocCallbackTag",e[e.JSDocEnumTag=309]="JSDocEnumTag",e[e.JSDocParameterTag=310]="JSDocParameterTag",e[e.JSDocReturnTag=311]="JSDocReturnTag",e[e.JSDocThisTag=312]="JSDocThisTag",e[e.JSDocTypeTag=313]="JSDocTypeTag",e[e.JSDocTemplateTag=314]="JSDocTemplateTag",e[e.JSDocTypedefTag=315]="JSDocTypedefTag",e[e.JSDocPropertyTag=316]="JSDocPropertyTag",e[e.SyntaxList=317]="SyntaxList",e[e.NotEmittedStatement=318]="NotEmittedStatement",e[e.PartiallyEmittedExpression=319]="PartiallyEmittedExpression",e[e.CommaListExpression=320]="CommaListExpression",e[e.MergeDeclarationMarker=321]="MergeDeclarationMarker",e[e.EndOfDeclarationMarker=322]="EndOfDeclarationMarker",e[e.SyntheticReferenceExpression=323]="SyntheticReferenceExpression",e[e.Count=324]="Count",e[e.FirstAssignment=62]="FirstAssignment",e[e.LastAssignment=74]="LastAssignment",e[e.FirstCompoundAssignment=63]="FirstCompoundAssignment",e[e.LastCompoundAssignment=74]="LastCompoundAssignment",e[e.FirstReservedWord=76]="FirstReservedWord",e[e.LastReservedWord=111]="LastReservedWord",e[e.FirstKeyword=76]="FirstKeyword",e[e.LastKeyword=151]="LastKeyword",e[e.FirstFutureReservedWord=112]="FirstFutureReservedWord",e[e.LastFutureReservedWord=120]="LastFutureReservedWord",e[e.FirstTypeNode=167]="FirstTypeNode",e[e.LastTypeNode=187]="LastTypeNode",e[e.FirstPunctuation=18]="FirstPunctuation",e[e.LastPunctuation=74]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=151]="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=224]="FirstStatement",e[e.LastStatement=240]="LastStatement",e[e.FirstNode=152]="FirstNode",e[e.FirstJSDocNode=292]="FirstJSDocNode",e[e.LastJSDocNode=316]="LastJSDocNode",e[e.FirstJSDocTagNode=304]="FirstJSDocTagNode",e[e.LastJSDocTagNode=316]="LastJSDocTagNode",e[e.FirstContextualKeyword=121]="FirstContextualKeyword",e[e.LastContextualKeyword=151]="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.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.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.Referenced=1024]="Referenced",e[e.Shared=2048]="Shared",e[e.PreFinally=4096]="PreFinally",e[e.AfterFinally=8192]="AfterFinally",e[e.Cached=16384]="Cached",e[e.Label=12]="Label",e[e.Condition=96]="Condition"}(e.FlowFlags||(e.FlowFlags={}));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.Completion=4]="Completion"}(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.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.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=9469291]="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.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.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=3899392]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Narrowable=133970943]="Narrowable",e[e.NotUnionOrUnit=67637251]="NotUnionOrUnit",e[e.NotPrimitiveUnion=66994211]="NotPrimitiveUnion",e[e.IncludesMask=68943871]="IncludesMask",e[e.IncludesStructuredOrInstantiable=262144]="IncludesStructuredOrInstantiable",e[e.IncludesNonWideningType=2097152]="IncludesNonWideningType",e[e.IncludesWildcard=4194304]="IncludesWildcard",e[e.IncludesEmptyObject=8388608]="IncludesEmptyObject",e[e.GenericMappedType=131072]="GenericMappedType"}(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.PrimitiveUnion=131072]="PrimitiveUnion",e[e.ContainsWideningType=262144]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=524288]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=1048576]="NonInferrableType",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=786432]="RequiresWidening",e[e.PropagatingFlags=1835008]="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.IsOptionalCall=4]="IsOptionalCall",e[e.PropagatingFlags=3]="PropagatingFlags"}(e.SignatureFlags||(e.SignatureFlags={})),function(e){e[e.String=0]="String",e[e.Number=1]="Number"}(e.IndexKind||(e.IndexKind={})),function(e){e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.HomomorphicMappedType=2]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=4]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=8]="MappedTypeConstraint",e[e.ReturnType=16]="ReturnType",e[e.LiteralKeyof=32]="LiteralKeyof",e[e.NoConstraints=64]="NoConstraints",e[e.AlwaysStrict=128]="AlwaysStrict",e[e.MaxValue=256]="MaxValue",e[e.PriorityImpliesCombination=56]="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.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.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.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.ContainsES2019=8]="ContainsES2019",e[e.ContainsES2018=16]="ContainsES2018",e[e.ContainsES2017=32]="ContainsES2017",e[e.ContainsES2016=64]="ContainsES2016",e[e.ContainsES2015=128]="ContainsES2015",e[e.ContainsGenerator=256]="ContainsGenerator",e[e.ContainsDestructuringAssignment=512]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=1024]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=2048]="ContainsLexicalThis",e[e.ContainsRestOrSpread=4096]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=8192]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=16384]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=32768]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=65536]="ContainsBindingPattern",e[e.ContainsYield=131072]="ContainsYield",e[e.ContainsHoistedDeclarationOrCompletion=262144]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=524288]="ContainsDynamicImport",e[e.ContainsClassFields=1048576]="ContainsClassFields",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2019=8]="AssertES2019",e[e.AssertES2018=16]="AssertES2018",e[e.AssertES2017=32]="AssertES2017",e[e.AssertES2016=64]="AssertES2016",e[e.AssertES2015=128]="AssertES2015",e[e.AssertGenerator=256]="AssertGenerator",e[e.AssertDestructuringAssignment=512]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",e[e.NodeExcludes=536870912]="NodeExcludes",e[e.ArrowFunctionExcludes=537371648]="ArrowFunctionExcludes",e[e.FunctionExcludes=537373696]="FunctionExcludes",e[e.ConstructorExcludes=537372672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=537372672]="MethodOrAccessorExcludes",e[e.PropertyExcludes=536872960]="PropertyExcludes",e[e.ClassExcludes=536888320]="ClassExcludes",e[e.ModuleExcludes=537168896]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=536896512]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=536875008]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=536944640]="VariableDeclarationListExcludes",e[e.ParameterExcludes=536870912]="ParameterExcludes",e[e.CatchClauseExcludes=536879104]="CatchClauseExcludes",e[e.BindingPatternExcludes=536875008]="BindingPatternExcludes",e[e.PropertyNamePropagatingFlags=2048]="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.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.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=131072]="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.EmitHint||(e.EmitHint={})),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.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=49153]="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}}}(s||(s={})),function(e){function t(e){for(var t=5381,r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r);return t.toString()}var 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=t,e.setStackTraceLimit=function(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)},function(e){e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted"}(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,s,c={Low:32,Medium:64,High:256},u=a(c);function l(t){if(t.getEnvironmentVariable){var n=function(e,t){var r=o(e);if(r)return n("Low"),n("Medium"),n("High"),!0;return!1;function n(e){t[e]=r[e]||t[e]}}("TSC_WATCH_POLLINGINTERVAL",i);u=s("TSC_WATCH_POLLINGCHUNKSIZE",c)||u,e.unchangedPollThresholds=s("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",c)||e.unchangedPollThresholds}function o(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 s(e,t){var i=o(e);return(n||i)&&a(i?r(r({},t),i):t)}}function _(t){var r=[],n=[],a=c(i.Low),o=c(i.Medium),s=c(i.High);return function(t,n,i){var a={fileName:t,callback:n,unchangedPolls:0,mtime:v(t)};return r.push(a),m(a,i),{close:function(){a.isClosed=!0,e.unorderedRemoveItem(r,a)}}};function c(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,u[t.pollingInterval]),t.length?h(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&&h(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,v(l.fileName));l.isClosed?t[a]=void 0:_?(l.unchangedPolls=0,t!==n&&(t[a]=void 0,g(l))):l.unchangedPolls!==e.unchangedPollThresholds[r]?l.unchangedPolls++:t===n?(l.unchangedPolls=1,t[a]=void 0,m(l,i.Low)):r!==i.High&&(l.unchangedPolls++,t[a]=void 0,m(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 m(e,t){f(t).push(e),y(t)}function g(e){n.push(e),y(i.Low)}function y(e){f(e).pollScheduled||h(e)}function h(e){f(e).pollScheduled=t.setTimeout(e===i.Low?_:l,e,f(e))}function v(r){return t.getModifiedTime(r)||e.missingFileModifiedTime}}function d(t,r){var n=e.createMap(),i=e.createMultiMap(),a=e.createGetCanonicalFileName(r);return function(r,o,s){var c=a(r),u=n.get(c);return u?u.refCount++:n.set(c,{watcher:t(r,(function(t,r){return e.forEach(i.get(c),(function(e){return e(t,r)}))}),s),refCount:1}),i.add(c,o),{close:function(){var t=e.Debug.assertDefined(n.get(c));i.remove(c,o),t.refCount--,t.refCount||(n.delete(c),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 m(t){var r=e.createMap(),n=e.createMultiMap(),i=e.getStringComparer(!t.useCaseSensitiveFileNames),a=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames);return o;function o(i,o){var u=a(i),l=r.get(u);return l?l.refCount++:(l={watcher:t.watchDirectory(i,(function(t){c(t)||(n.forEach((function(r,n){(n===u||e.startsWith(u,n)&&u[n.length]===e.directorySeparator)&&r.forEach((function(e){return e(t)}))})),s(i,u))})),refCount:1,childWatches:e.emptyArray},r.set(u,l),s(i,u)),o&&n.add(u,o),{dirName:i,close:function(){var t=e.Debug.assertDefined(r.get(u));o&&n.remove(u,o),t.refCount--,t.refCount||(r.delete(u),e.closeFileWatcherOf(t),t.childWatches.forEach(e.closeFileWatcher))}}}function s(n,a){var s=r.get(a);s&&(s.childWatches=function(r,n){var a;return e.enumerateInsertsAndDeletes(t.directoryExists(r)?e.mapDefined(t.getAccessibleSortedChildDirectories(r),(function(n){var a=e.getNormalizedAbsolutePath(n,r);return c(a)||0!==i(a,e.normalizePath(t.realpath(a)))?void 0:a})):e.emptyArray,n,(function(e,t){return i(e,t.dirName)}),(function(e){s(o(e))}),e.closeFileWatcher,s),a||e.emptyArray;function s(e){(a||(a=[])).push(e)}}(n,s.childWatches))}function c(r){return e.some(e.ignoredPaths,(function(n){return function(r,n){return!!e.stringContains(r,n)||!t.useCaseSensitiveFileNames&&e.stringContains(a(r),n)}(r,n)}))}}function g(t){var r=t.writeFile;t.writeFile=function(n,i,a){var o=e.getDirectoryPath(e.normalizeSlashes(n));o&&!t.directoryExists(o)&&function t(r,n){var i=e.getDirectoryPath(r),a=""!==i&&r!==i&&!n.directoryExists(i);a&&t(i,n),!a&&n.directoryExists(r)||n.createDirectory(r)}(o,t),r.call(t,n,i,a)}}function y(){if(void 0!==Oe){var e=Oe.version;if(e){var t=e.indexOf(".");if(-1!==t)return parseInt(e.substring(1,t))}}}e.unchangedPollThresholds=a(c),e.setCustomPollingValues=l,e.createDynamicPriorityPollingWatchFile=_,e.createSingleFileWatcherPerName=d,e.onWatchedFileStat=p,e.getFileWatcherEventKind=f,e.ignoredPaths=["/node_modules/.","/.git","/.#"],e.sysLog=e.noop,e.createRecursiveDirectoryWatcher=m,e.patchWriteFileEnsuringDirectory=g,e.getNodeMajorVersion=y,e.sys=(s="\ufeff","undefined"!=typeof ChakraHost&&(o=function(){var t=ChakraHost.realpath&&function(e){return ChakraHost.realpath(e)};return{newLine:ChakraHost.newLine||"\r\n",args:ChakraHost.args,useCaseSensitiveFileNames:!!ChakraHost.useCaseSensitiveFileNames,write:ChakraHost.echo,readFile:function(e,t){return ChakraHost.readFile(e)},writeFile:function(e,t,r){r&&(t=s+t),ChakraHost.writeFile(e,t)},resolvePath:ChakraHost.resolvePath,fileExists:ChakraHost.fileExists,deleteFile:ChakraHost.deleteFile,getModifiedTime:ChakraHost.getModifiedTime,setModifiedTime:ChakraHost.setModifiedTime,directoryExists:ChakraHost.directoryExists,createDirectory:ChakraHost.createDirectory,getExecutingFilePath:function(){return ChakraHost.executingFile},getCurrentDirectory:function(){return ChakraHost.currentDirectory},getDirectories:ChakraHost.getDirectories,getEnvironmentVariable:ChakraHost.getEnvironmentVariable||function(){return""},readDirectory:function(t,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,!!ChakraHost.useCaseSensitiveFileNames,ChakraHost.currentDirectory);return ChakraHost.readDirectory(t,r,o.basePaths,o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern)},exit:ChakraHost.quit,realpath:t}}()),o&&g(o),o),e.sys&&e.sys.getEnvironmentVariable&&(l(e.sys),e.Debug.currentAssertionLevel=/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0)}(s||(s={})),function(e){e.directorySeparator="/";var r="\\",n="://",i=/\\/g;function a(e){return 47===e||92===e}function o(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&&a(e.charCodeAt(e.length-1))}function _(e){return e>=97&&e<=122||e>=65&&e<=90}function d(t){if(!t)return 0;var i=t.charCodeAt(0);if(47===i||92===i){if(t.charCodeAt(1)!==i)return 1;var a=t.indexOf(47===i?e.directorySeparator:r,2);return a<0?t.length:a+1}if(_(i)&&58===t.charCodeAt(1)){var o=t.charCodeAt(2);if(47===o||92===o)return 3;if(2===t.length)return 2}var s=t.indexOf(n);if(-1!==s){var c=s+n.length,u=t.indexOf(e.directorySeparator,c);if(-1!==u){var l=t.slice(0,s),d=t.slice(c,u);if("file"===l&&(""===d||"localhost"===d)&&_(t.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}(t,u+2);if(-1!==p){if(47===t.charCodeAt(p))return~(p+1);if(p===t.length)return~p}}return~(u+1)}return~t.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=k(t)).slice(0,Math.max(r,t.lastIndexOf(e.directorySeparator)))}function m(t,r,n){if(p(t=b(t))===t.length)return"";var i=(t=k(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 g(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 g(e,t,r)||"";for(var n=0,i=t;n<i.length;n++){var a=g(e,i[n],r);if(a)return a}return""}(k(t),r,n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive);var i=m(t),a=i.lastIndexOf(".");return a>=0?i.substring(a):""}function h(r,n){return void 0===n&&(n=""),function(r,n){var i=r.substring(0,n),a=r.substring(n).split(e.directorySeparator);return a.length&&!e.lastOrUndefined(a)&&a.pop(),t([i],a)}(r=D(n,r),p(r))}function v(t){return 0===t.length?"":(t[0]&&N(t[0]))+t.slice(1).join(e.directorySeparator)}function b(t){return t.replace(i,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(r){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return C(e.some(n)?D.apply(void 0,t([r],n)):b(r))}function T(e,t){return x(h(e,t))}function E(e,t){return v(T(e,t))}function C(e){var t=v(x(h(e=b(e))));return t&&l(e)?N(t):t}function k(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=a,e.isUrl=function(e){return d(e)<0},e.isRootedDiskPath=o,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(m(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=m,e.getAnyExtensionFromPath=y,e.getPathComponents=h,e.getPathFromPathComponents=v,e.normalizeSlashes=b,e.reducePathComponents=x,e.combinePaths=D,e.resolvePath=S,e.getNormalizedPathComponents=T,e.getNormalizedAbsolutePath=E,e.normalizePath=C,e.getNormalizedAbsolutePathWithoutRoot=function(t,r){return function(t){return 0===t.length?"":t.slice(1).join(e.directorySeparator)}(T(t,r))},e.toPath=function(e,t,r){return r(o(e)?C(e):E(e,t))},e.normalizePathAndParts=function(t){var r=x(h(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=k,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(h(t)),l=x(h(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(r,n,i,a){var o,s=x(h(r)),c=x(h(n));for(o=0;o<s.length&&o<c.length;o++){var u=a(s[o]),l=a(c[o]);if(!(0===o?e.equateStringsCaseInsensitive:i)(u,l))break}if(0===o)return c;for(var _=c.slice(o),d=[];o<s.length;o++)d.push("..");return t([""],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 v(w(t,r,"boolean"==typeof n&&n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,i))}function O(t,r,n,i,a){var s=w(S(n,t),S(n,r),e.equateStringsCaseSensitive,i),c=s[0];if(a&&o(c)){var u=c.charAt(0)===e.directorySeparator?"file://":"file:///";s[0]=u+c}return v(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(h(t)),o=x(h(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 o(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}}}(s||(s={})),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."),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."),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."),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."),Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided:t(1205,e.DiagnosticCategory.Error,"Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided_1205","Cannot re-export a type when the '--isolatedModules' flag is provided."),Decorators_are_not_valid_here: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."),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_expression_is_only_allowed_within_an_async_function:t(1308,e.DiagnosticCategory.Error,"await_expression_is_only_allowed_within_an_async_function_1308","'await' expression is only allowed within an async function."),can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment: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_esnext_commonjs_amd_system_or_umd:t(1323,e.DiagnosticCategory.Error,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_commonjs_amd_system_or_umd_1323","Dynamic imports are only supported when the '--module' flag is set to 'esnext', 'commonjs',  'amd', 'system', or 'umd'."),Dynamic_import_must_have_one_specifier_as_an_argument: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."),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:t(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_2307","Cannot find module '{0}'."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity: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_be_referenced_in_its_initializer:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_be_referenced_in_its_initializer_2372","Parameter '{0}' cannot be referenced in its initializer."),Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Initializer of parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_string_index_signature: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_or_has_parameter_properties: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 or has parameter properties."),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}'."),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."),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[]'."),Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1:t(2546,e.DiagnosticCategory.Error,"Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1_2546","Property '{0}' has conflicting declarations and is inaccessible in type '{1}'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property: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."),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."),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."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_property:t(2610,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_proper_2610","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member property."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_accessor:t(2611,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_access_2611","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration: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?"),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."),It_is_highly_likely_that_you_are_missing_a_semicolon:t(2734,e.DiagnosticCategory.Error,"It_is_highly_likely_that_you_are_missing_a_semicolon_2734","It is highly likely that you are missing a semicolon."),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1: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_ESNext:t(2737,e.DiagnosticCategory.Error,"BigInt_literals_are_not_available_when_targeting_lower_than_ESNext_2737","BigInt literals are not available when targeting lower than ESNext."),An_outer_value_of_this_is_shadowed_by_this_container: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:t(2749,e.DiagnosticCategory.Error,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_2749","'{0}' refers to a value, but is being used as a type here."),The_implementation_signature_is_declared_here: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."),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}."),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_in_can_have_at_most_one_Asterisk_character:t(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' in 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."),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_or_ESNEXT:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_or_ESNEXT_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'."),Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext_6016","Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'."),Print_this_message: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_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"File_0_has_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures: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:t(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_6064","Option '{0}' can only be specified in 'tsconfig.json' file."),Enables_experimental_support_for_ES7_decorators: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."),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"),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."),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_a_ts_file:t(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_a_ts_file_8002","'import ... =' can only be used in a .ts file."),export_can_only_be_used_in_a_ts_file:t(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_a_ts_file_8003","'export=' can only be used in a .ts file."),type_parameter_declarations_can_only_be_used_in_a_ts_file:t(8004,e.DiagnosticCategory.Error,"type_parameter_declarations_can_only_be_used_in_a_ts_file_8004","'type parameter declarations' can only be used in a .ts file."),implements_clauses_can_only_be_used_in_a_ts_file:t(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_a_ts_file_8005","'implements clauses' can only be used in a .ts file."),interface_declarations_can_only_be_used_in_a_ts_file:t(8006,e.DiagnosticCategory.Error,"interface_declarations_can_only_be_used_in_a_ts_file_8006","'interface declarations' can only be used in a .ts file."),module_declarations_can_only_be_used_in_a_ts_file:t(8007,e.DiagnosticCategory.Error,"module_declarations_can_only_be_used_in_a_ts_file_8007","'module declarations' can only be used in a .ts file."),type_aliases_can_only_be_used_in_a_ts_file:t(8008,e.DiagnosticCategory.Error,"type_aliases_can_only_be_used_in_a_ts_file_8008","'type aliases' can only be used in a .ts file."),_0_can_only_be_used_in_a_ts_file:t(8009,e.DiagnosticCategory.Error,"_0_can_only_be_used_in_a_ts_file_8009","'{0}' can only be used in a .ts file."),types_can_only_be_used_in_a_ts_file:t(8010,e.DiagnosticCategory.Error,"types_can_only_be_used_in_a_ts_file_8010","'types' can only be used in a .ts file."),type_arguments_can_only_be_used_in_a_ts_file:t(8011,e.DiagnosticCategory.Error,"type_arguments_can_only_be_used_in_a_ts_file_8011","'type arguments' can only be used in a .ts file."),parameter_modifiers_can_only_be_used_in_a_ts_file:t(8012,e.DiagnosticCategory.Error,"parameter_modifiers_can_only_be_used_in_a_ts_file_8012","'parameter modifiers' can only be used in a .ts file."),non_null_assertions_can_only_be_used_in_a_ts_file:t(8013,e.DiagnosticCategory.Error,"non_null_assertions_can_only_be_used_in_a_ts_file_8013","'non-null assertions' can only be used in a .ts file."),enum_declarations_can_only_be_used_in_a_ts_file:t(8015,e.DiagnosticCategory.Error,"enum_declarations_can_only_be_used_in_a_ts_file_8015","'enum declarations' can only be used in a .ts file."),type_assertion_expressions_can_only_be_used_in_a_ts_file:t(8016,e.DiagnosticCategory.Error,"type_assertion_expressions_can_only_be_used_in_a_ts_file_8016","'type assertion expressions' can only be used in a .ts file."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0: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"),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_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_declaration_for_Colon_0_90004","Remove 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"),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_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'"),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?")}}(s||(s={})),function(e){var t;function n(e){return e>=75}e.tokenIsIdentifierOrKeyword=n,e.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 31===e||n(e)};var i=((t={abstract:121,any:124,as:122,asserts:123,bigint:150,boolean:127,break:76,case:77,catch:78,class:79,continue:81,const:80}).constructor=128,t.debugger=82,t.declare=129,t.default=83,t.delete=84,t.do=85,t.else=86,t.enum=87,t.export=88,t.extends=89,t.false=90,t.finally=91,t.for=92,t.from=148,t.function=93,t.get=130,t.if=94,t.implements=112,t.import=95,t.in=96,t.infer=131,t.instanceof=97,t.interface=113,t.is=132,t.keyof=133,t.let=114,t.module=134,t.namespace=135,t.never=136,t.new=98,t.null=99,t.number=139,t.object=140,t.package=115,t.private=116,t.protected=117,t.public=118,t.readonly=137,t.require=138,t.global=149,t.return=100,t.set=141,t.static=119,t.string=142,t.super=101,t.switch=102,t.symbol=143,t.this=103,t.throw=104,t.true=105,t.try=106,t.type=144,t.typeof=107,t.undefined=145,t.unique=146,t.unknown=147,t.var=108,t.void=109,t.while=110,t.with=111,t.yield=120,t.async=125,t.await=126,t.of=151,t),a=e.createMapFromTemplate(i),o=e.createMapFromTemplate(r(r({},i),{"{":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})),s=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,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];function p(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 f(e,t){return p(e,t>=2?_:1===t?u:s)}e.isUnicodeIdentifierStart=f;var m,g=(m=[],o.forEach((function(e,t){m[e]=t})),m);function y(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&&S(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,y(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 v(e){return e.lineMap||(e.lineMap=y(e.text))}function b(t,r){var n=e.binarySearch(t,r,e.identity,e.compareValues);return n<0&&(n=~n-1,e.Debug.assert(-1!==n,"position cannot precede the beginning of the file")),{line:n,character:r-t[n]}}function x(e){return D(e)||S(e)}function D(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 S(e){return 10===e||13===e||8232===e||8233===e}function T(e){return e>=48&&e<=57}function E(e){return e>=48&&e<=55}e.tokenToString=function(e){return g[e]},e.stringToToken=function(e){return o.get(e)},e.computeLineStarts=y,e.getPositionOfLineAndCharacter=function(e,t,r,n){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,n):h(v(e),t,r,e.text,n)},e.computePositionOfLineAndCharacter=h,e.getLineStarts=v,e.computeLineAndCharacterOfPosition=b,e.getLineAndCharacterOfPosition=function(e,t){return b(v(e),t)},e.isWhiteSpaceLike=x,e.isWhiteSpaceSingleLine=D,e.isLineBreak=S,e.isOctalDigit=E,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&&!S(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(k(t,r)){r=N(t,r);continue}break;case 35:if(0===r&&F(t,r)){r=P(t,r);continue}break;default:if(a>127&&x(a)){r++;continue}}return r}};var C="<<<<<<<".length;function k(t,r){if(e.Debug.assert(r>=0),0===r||S(t.charCodeAt(r-1))){var n=t.charCodeAt(r);if(r+C<t.length){for(var i=0;i<C;i++)if(t.charCodeAt(r+i)!==n)return!1;return 61===n||32===t.charCodeAt(r+C)}}return!1}function N(t,r,n){n&&n(e.Diagnostics.Merge_conflict_marker_encountered,r,C);var i=t.charCodeAt(r),a=t.length;if(60===i||62===i)for(;r<a&&!S(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&&k(t,r))break;r++}return r}var A=/^#!.*/;function F(t,r){return e.Debug.assert(0===r),A.test(t)}function P(e,t){return t+=A.exec(e)[0].length}function w(e,t,r,n,i,a,o){var s,c,u,l,_=!1,d=n,p=o;if(0===r){d=!0;var f=L(t);f&&(r=f.length)}e:for(;r>=0&&r<t.length;){var m=t.charCodeAt(r);switch(m){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 g=t.charCodeAt(r+1),y=!1;if(47===g||42===g){var h=47===g?2:3,v=r;if(r+=2,47===g)for(;r<t.length;){if(S(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=v,c=r,u=h,l=y,_=!0}continue}break e;default:if(m>127&&x(m)){_&&S(m)&&(l=!0),r++;continue}break e}}return _&&(p=i(s,c,u,l,a,p)),p}function I(e,t,r,n,i){return w(!0,e,t,!1,r,n,i)}function O(e,t,r,n,i){return w(!0,e,t,!0,r,n,i)}function M(e,t,r,n,i,a){return a||(a=[]),a.push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),a}function L(e){var t=A.exec(e);if(t)return t[0]}function R(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&f(e,t)}function B(e,t){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||e>127&&function(e,t){return p(e,t>=2?d:1===t?l:c)}(e,t)}e.isShebangTrivia=F,e.scanShebangTrivia=P,e.forEachLeadingCommentRange=function(e,t,r,n){return w(!1,e,t,!1,r,n)},e.forEachTrailingCommentRange=function(e,t,r,n){return w(!1,e,t,!0,r,n)},e.reduceEachLeadingCommentRange=I,e.reduceEachTrailingCommentRange=O,e.getLeadingCommentRanges=function(e,t){return I(e,t,M,void 0,void 0)},e.getTrailingCommentRanges=function(e,t){return O(e,t,M,void 0,void 0)},e.getShebang=L,e.isIdentifierStart=R,e.isIdentifierPart=B,e.isIdentifierText=function(e,t){var r=j(e,0);if(!R(r,t))return!1;for(var n=K(r);n<e.length;n+=K(r))if(!B(r=j(e,n),t))return!1;return!0},e.createScanner=function(t,r,i,o,s,c,u){void 0===i&&(i=0);var l,_,d,p,f,m,g,y=o,h=0;re(y,c,u);var v={getStartPos:function(){return d},getTextPos:function(){return l},getToken:function(){return f},getTokenPos:function(){return p},getTokenText:function(){return y.substring(p,l)},getTokenValue:function(){return m},hasUnicodeEscape:function(){return 0!=(1024&g)},hasExtendedUnicodeEscape:function(){return 0!=(8&g)},hasPrecedingLineBreak:function(){return 0!=(1&g)},isIdentifier:function(){return 75===f||f>111},isReservedWord:function(){return f>=76&&f<=111},isUnterminated:function(){return 0!=(4&g)},getTokenFlags:function(){return g},reScanGreaterToken:function(){if(31===f){if(62===y.charCodeAt(l))return 62===y.charCodeAt(l+1)?61===y.charCodeAt(l+2)?(l+=3,f=71):(l+=2,f=49):61===y.charCodeAt(l+1)?(l+=2,f=70):(l++,f=48);if(61===y.charCodeAt(l))return l++,f=33}return f},reScanSlashToken:function(){if(43===f||67===f){for(var r=p+1,n=!1,i=!1;;){if(r>=_){g|=4,b(e.Diagnostics.Unterminated_regular_expression_literal);break}var a=y.charCodeAt(r);if(S(a)){g|=4,b(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<_&&B(y.charCodeAt(r),t);)r++;l=r,m=y.substring(p,l),f=13}return f},reScanTemplateToken:function(){return e.Debug.assert(19===f,"'reScanTemplateToken' should only be called on a '}'"),l=p,f=z()},scanJsxIdentifier:function(){if(n(f))for(;l<_;){if(45!==y.charCodeAt(l)){var e=l;if(m+=Y(),l===e)break}else m+="-",l++}return f},scanJsxAttributeValue:function(){switch(d=l,y.charCodeAt(l)){case 34:case 39:return m=J(!0),f=10;default:return Z()}},reScanJsxToken:function(){return l=p=d,f=ee()},reScanLessThanToken:function(){if(47===f)return l=p+1,f=29;return f},reScanQuestionToken:function(){return e.Debug.assert(60===f,"'reScanQuestionToken' should only be called on a '??'"),l=p+1,f=57},scanJsxToken:ee,scanJsDocToken:function(){if(d=p=l,g=0,l>=_)return f=1;var e=j(y,l);switch(l+=K(e),e){case 9:case 11:case 12:case 32:for(;l<_&&D(y.charCodeAt(l));)l++;return f=5;case 64:return f=59;case 10:case 13:return g|=1,f=4;case 42:return f=41;case 123:return f=18;case 125:return f=19;case 91:return f=22;case 93:return f=23;case 60:return f=29;case 62:return f=31;case 61:return f=62;case 44:return f=27;case 46:return f=24;case 96:return f=61;case 92:l--;var r=H();if(r>=0&&R(r,t))return l+=3,g|=8,m=q()+Y(),f=X();var n=G();return n>=0&&R(n,t)?(l+=6,g|=1024,m=String.fromCharCode(n)+Y(),f=X()):(l++,f=0)}if(R(e,t)){for(var i=e;l<_&&B(i=j(y,l),t)||45===y.charCodeAt(l);)l+=K(i);return m=y.substring(p,l),92===i&&(m+=Y()),f=X()}return f=0},scan:Z,getText:function(){return y},setText:re,setScriptTarget:function(e){t=e},setLanguageVariant:function(e){i=e},setOnError:function(e){s=e},setTextPos:ne,setInJSDocType:function(e){h+=e?1:-1},tryScan:function(e){return te(e,!1)},lookAhead:function(e){return te(e,!0)},scanRange:function(e,t,r){var n=_,i=l,a=d,o=p,s=f,c=m,u=g;re(y,e,t);var h=r();return _=n,l=i,d=a,p=o,f=s,m=c,g=u,h}};return e.Debug.isDebugging&&Object.defineProperty(v,"__debugShowCurrentPositionInText",{get:function(){var e=v.getText();return e.slice(0,v.getStartPos())+"║"+e.slice(v.getStartPos())}}),v;function b(e,t,r){if(void 0===t&&(t=l),s){var n=l;l=t,s(e,r||0),l=n}}function C(){for(var t=l,r=!1,n=!1,i="";;){var a=y.charCodeAt(l);if(95!==a){if(!T(a))break;r=!0,n=!1,l++}else g|=512,r?(r=!1,n=!0,i+=y.substring(t,l)):b(n?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),t=++l}return 95===y.charCodeAt(l-1)&&b(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),i+y.substring(t,l)}function A(){var t,r,n=l,i=C();46===y.charCodeAt(l)&&(l++,t=C());var a,o=l;if(69===y.charCodeAt(l)||101===y.charCodeAt(l)){l++,g|=16,43!==y.charCodeAt(l)&&45!==y.charCodeAt(l)||l++;var s=l,c=C();c?(r=y.substring(o,s)+c,o=l):b(e.Diagnostics.Digit_expected)}if(512&g?(a=i,t&&(a+="."+t),r&&(a+=r)):a=y.substring(n,o),void 0!==t||16&g)return w(n,void 0===t&&!!(16&g)),{type:8,value:""+ +a};m=a;var u=$();return w(n),{type:u,value:m}}function w(r,n){if(R(j(y,l),t)){var i=l,a=Y().length;1===a&&"n"===y[i]?b(n?e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:e.Diagnostics.A_bigint_literal_must_be_an_integer,r,i-r+1):(b(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,i,a),l=i)}}function I(){for(var e=l;E(y.charCodeAt(l));)l++;return+y.substring(e,l)}function O(e,t){var r=L(e,!1,t);return r?parseInt(r,16):-1}function M(e,t){return L(e,!0,t)}function L(t,r,n){for(var i=[],a=!1,o=!1;i.length<t||r;){var s=y.charCodeAt(l);if(n&&95===s)g|=512,a?(a=!1,o=!0):b(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===y.charCodeAt(l-1)&&b(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),String.fromCharCode.apply(String,i)}function J(t){void 0===t&&(t=!1);for(var r=y.charCodeAt(l),n="",i=++l;;){if(l>=_){n+=y.substring(i,l),g|=4,b(e.Diagnostics.Unterminated_string_literal);break}var a=y.charCodeAt(l);if(a===r){n+=y.substring(i,l),l++;break}if(92!==a||t){if(S(a)&&!t){n+=y.substring(i,l),g|=4,b(e.Diagnostics.Unterminated_string_literal);break}l++}else n+=y.substring(i,l),n+=U(),i=l}return n}function z(){for(var t,r=96===y.charCodeAt(l),n=++l,i="";;){if(l>=_){i+=y.substring(n,l),g|=4,b(e.Diagnostics.Unterminated_template_literal),t=r?14:17;break}var a=y.charCodeAt(l);if(96===a){i+=y.substring(n,l),l++,t=r?14:17;break}if(36===a&&l+1<_&&123===y.charCodeAt(l+1)){i+=y.substring(n,l),l+=2,t=r?15:16;break}92!==a?13!==a?l++:(i+=y.substring(n,l),++l<_&&10===y.charCodeAt(l)&&l++,i+="\n",n=l):(i+=y.substring(n,l),i+=U(),n=l)}return e.Debug.assert(void 0!==t),m=i,t}function U(){if(++l>=_)return b(e.Diagnostics.Unexpected_end_of_text),"";var t=y.charCodeAt(l);switch(l++,t){case 48:return"\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:return l<_&&123===y.charCodeAt(l)?(g|=8,l++,q()):(g|=1024,V(4));case 120:return V(2);case 13:l<_&&10===y.charCodeAt(l)&&l++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(t)}}function V(t){var r=O(t,!1);return r>=0?String.fromCharCode(r):(b(e.Diagnostics.Hexadecimal_digit_expected),"")}function q(){var t=M(1,!1),r=t?parseInt(t,16):-1,n=!1;return r<0?(b(e.Diagnostics.Hexadecimal_digit_expected),n=!0):r>1114111&&(b(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),l>=_?(b(e.Diagnostics.Unexpected_end_of_text),n=!0):125===y.charCodeAt(l)?l++:(b(e.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":W(r)}function W(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 G(){if(l+5<_&&117===y.charCodeAt(l+1)){var e=l;l+=2;var t=O(4,!1);return l=e,t}return-1}function H(){if(t>=2&&117===j(y,l+1)&&123===j(y,l+2)){var e=l;l+=3;var r=M(1,!1),n=r?parseInt(r,16):-1;return l=e,n}return-1}function Y(){for(var e="",r=l;l<_;){var n=j(y,l);if(B(n,t))l+=K(n);else{if(92!==n)break;if((n=H())>=0&&B(n,t)){l+=3,g|=8,e+=q(),r=l;continue}if(!((n=G())>=0&&B(n,t)))break;g|=1024,e+=y.substring(r,l),e+=W(n),r=l+=6}}return e+=y.substring(r,l)}function X(){var e=m.length;if(e>=2&&e<=11){var t=m.charCodeAt(0);if(t>=97&&t<=122){var r=a.get(m);if(void 0!==r)return f=r}}return f=75}function Q(t){for(var r="",n=!1,i=!1;;){var a=y.charCodeAt(l);if(95!==a){if(n=!0,!T(a)||a-48>=t)break;r+=y[l],l++,i=!1}else g|=512,n?(n=!1,i=!0):b(i?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),l++}return 95===y.charCodeAt(l-1)&&b(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),r}function $(){if(110===y.charCodeAt(l))return m+="n",384&g&&(m=e.parsePseudoBigInt(m)+"n"),l++,9;var t=128&g?parseInt(m.slice(2),2):256&g?parseInt(m.slice(2),8):+m;return m=""+t,8}function Z(){var n;d=l,g=0;for(var a=!1;;){if(p=l,l>=_)return f=1;var o=j(y,l);if(35===o&&0===l&&F(y,l)){if(l=P(y,l),r)continue;return f=6}switch(o){case 10:case 13:if(g|=1,r){l++;continue}return 13===o&&l+1<_&&10===y.charCodeAt(l+1)?l+=2:l++,f=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(r){l++;continue}for(;l<_&&D(y.charCodeAt(l));)l++;return f=5;case 33:return 61===y.charCodeAt(l+1)?61===y.charCodeAt(l+2)?(l+=3,f=37):(l+=2,f=35):(l++,f=53);case 34:case 39:return m=J(),f=10;case 96:return f=z();case 37:return 61===y.charCodeAt(l+1)?(l+=2,f=68):(l++,f=44);case 38:return 38===y.charCodeAt(l+1)?(l+=2,f=55):61===y.charCodeAt(l+1)?(l+=2,f=72):(l++,f=50);case 40:return l++,f=20;case 41:return l++,f=21;case 42:if(61===y.charCodeAt(l+1))return l+=2,f=65;if(42===y.charCodeAt(l+1))return 61===y.charCodeAt(l+2)?(l+=3,f=66):(l+=2,f=42);if(l++,h&&!a&&1&g){a=!0;continue}return f=41;case 43:return 43===y.charCodeAt(l+1)?(l+=2,f=45):61===y.charCodeAt(l+1)?(l+=2,f=63):(l++,f=39);case 44:return l++,f=27;case 45:return 45===y.charCodeAt(l+1)?(l+=2,f=46):61===y.charCodeAt(l+1)?(l+=2,f=64):(l++,f=40);case 46:return T(y.charCodeAt(l+1))?(m=A().value,f=8):46===y.charCodeAt(l+1)&&46===y.charCodeAt(l+2)?(l+=3,f=25):(l++,f=24);case 47:if(47===y.charCodeAt(l+1)){for(l+=2;l<_&&!S(y.charCodeAt(l));)l++;if(r)continue;return f=2}if(42===y.charCodeAt(l+1)){l+=2,42===y.charCodeAt(l)&&47!==y.charCodeAt(l+1)&&(g|=2);for(var s=!1;l<_;){var c=y.charCodeAt(l);if(42===c&&47===y.charCodeAt(l+1)){l+=2,s=!0;break}S(c)&&(g|=1),l++}if(s||b(e.Diagnostics.Asterisk_Slash_expected),r)continue;return s||(g|=4),f=3}return 61===y.charCodeAt(l+1)?(l+=2,f=67):(l++,f=43);case 48:if(l+2<_&&(88===y.charCodeAt(l+1)||120===y.charCodeAt(l+1)))return l+=2,(m=M(1,!0))||(b(e.Diagnostics.Hexadecimal_digit_expected),m="0"),m="0x"+m,g|=64,f=$();if(l+2<_&&(66===y.charCodeAt(l+1)||98===y.charCodeAt(l+1)))return l+=2,(m=Q(2))||(b(e.Diagnostics.Binary_digit_expected),m="0"),m="0b"+m,g|=128,f=$();if(l+2<_&&(79===y.charCodeAt(l+1)||111===y.charCodeAt(l+1)))return l+=2,(m=Q(8))||(b(e.Diagnostics.Octal_digit_expected),m="0"),m="0o"+m,g|=256,f=$();if(l+1<_&&E(y.charCodeAt(l+1)))return m=""+I(),g|=32,f=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n=A(),f=n.type,m=n.value,f;case 58:return l++,f=58;case 59:return l++,f=26;case 60:if(k(y,l)){if(l=N(y,l,b),r)continue;return f=7}return 60===y.charCodeAt(l+1)?61===y.charCodeAt(l+2)?(l+=3,f=69):(l+=2,f=47):61===y.charCodeAt(l+1)?(l+=2,f=32):1===i&&47===y.charCodeAt(l+1)&&42!==y.charCodeAt(l+2)?(l+=2,f=30):(l++,f=29);case 61:if(k(y,l)){if(l=N(y,l,b),r)continue;return f=7}return 61===y.charCodeAt(l+1)?61===y.charCodeAt(l+2)?(l+=3,f=36):(l+=2,f=34):62===y.charCodeAt(l+1)?(l+=2,f=38):(l++,f=62);case 62:if(k(y,l)){if(l=N(y,l,b),r)continue;return f=7}return l++,f=31;case 63:return l++,46!==y.charCodeAt(l)||T(y.charCodeAt(l+1))?63===y.charCodeAt(l)?(l++,f=60):f=57:(l++,f=28);case 91:return l++,f=22;case 93:return l++,f=23;case 94:return 61===y.charCodeAt(l+1)?(l+=2,f=74):(l++,f=52);case 123:return l++,f=18;case 124:if(k(y,l)){if(l=N(y,l,b),r)continue;return f=7}return 124===y.charCodeAt(l+1)?(l+=2,f=56):61===y.charCodeAt(l+1)?(l+=2,f=73):(l++,f=51);case 125:return l++,f=19;case 126:return l++,f=54;case 64:return l++,f=59;case 92:var u=H();if(u>=0&&R(u,t))return l+=3,g|=8,m=q()+Y(),f=X();var v=G();return v>=0&&R(v,t)?(l+=6,g|=1024,m=String.fromCharCode(v)+Y(),f=X()):(b(e.Diagnostics.Invalid_character),l++,f=0);default:if(R(o,t)){for(l+=K(o);l<_&&B(o=j(y,l),t);)l+=K(o);return m=y.substring(p,l),92===o&&(m+=Y()),f=X()}if(D(o)){l+=K(o);continue}if(S(o)){g|=1,l+=K(o);continue}return b(e.Diagnostics.Invalid_character),l+=K(o),f=0}}}function ee(){if(d=p=l,l>=_)return f=1;var e=y.charCodeAt(l);if(60===e)return 47===y.charCodeAt(l+1)?(l+=2,f=30):(l++,f=29);if(123===e)return l++,f=18;for(var t=0;l<_&&123!==(e=y.charCodeAt(l));){if(60===e){if(k(y,l))return l=N(y,l,b),f=7;break}S(e)&&0===t?t=-1:x(e)||(t=l),l++}return m=y.substring(d,l),-1===t?12:11}function te(e,t){var r=l,n=d,i=p,a=f,o=m,s=g,c=e();return c&&!t||(l=r,d=n,p=i,f=a,m=o,g=s),c}function re(e,t,r){y=e||"",_=void 0===r?y.length:t+r,ne(t||0)}function ne(t){e.Debug.assert(t>=0),l=t,d=t,p=t,f=0,m=void 0,g=0}};var j=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}}(s||(s={})),function(e){e.isExternalModuleNameRelative=function(t){return e.pathIsRelative(t)||e.isRootedDiskPath(t)},e.sortAndDeduplicateDiagnostics=function(t){return e.sortAndDeduplicate(t,e.compareDiagnostics)}}(s||(s={})),function(e){e.resolvingEmptyArray=[],e.emptyMap=e.createMap(),e.emptyUnderscoreEscapedMap=e.emptyMap,e.externalHelpersModuleNameText="tslib",e.defaultMaximumTruncationLength=160,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};var n,i,a=(n="",{getText:function(){return n},write:i=function(e){return n+=e},rawWrite:i,writeKeyword:i,writeOperator:i,writePunctuation:i,writeSpace:i,writeStringLiteral:i,writeLiteral:i,writeParameter:i,writeProperty:i,writeSymbol:function(e,t){return i(e)},writeTrailingSemicolon:i,writeComment:i,getTextPos:function(){return n.length},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingComment:function(){return!1},hasTrailingWhitespace:function(){return!!n.length&&e.isWhiteSpaceLike(n.charCodeAt(n.length-1))},writeLine:function(){return n+=" "},increaseIndent:e.noop,decreaseIndent:e.noop,clear:function(){return n=""},trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop});function o(t,r){return e.moduleResolutionOptionDeclarations.some((function(n){return!e.isJsonEqual(e.getCompilerOptionValue(t,n),e.getCompilerOptionValue(r,n))}))}function s(e,t){for(;e;){var r=t(e);if("quit"===r)return;if(r)return e;e=e.parent}}function c(e,t){e.forEach((function(e,r){t.set(r,e)}))}function u(e){return e.end-e.pos}function l(t){return function(t){if(!(524288&t.flags)){(0!=(65536&t.flags)||e.forEachChild(t,l))&&(t.flags|=262144),t.flags|=524288}}(t),0!=(262144&t.flags)}function _(e){for(;e&&288!==e.kind;)e=e.parent;return e}function d(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 p(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function m(e){return!p(e)}function g(e,r,n){if(void 0===r||0===r.length)return e;for(var i=0;i<e.length&&n(e[i]);++i);return e.splice.apply(e,t([i,0],r)),e}function y(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 h(e){return U(e)||!!(1048576&E(e))}function v(e,t){return 42===e.charCodeAt(t+1)&&33===e.charCodeAt(t+2)}function b(t,r,n){return p(t)?t.pos:e.isJSDocNode(t)?e.skipTrivia((r||_(t)).text,t.pos,!1,!0):n&&e.hasJSDocNodes(t)?b(t.jsDoc[0]):317===t.kind&&t._children.length>0?b(t._children[0],r,n):e.skipTrivia((r||_(t)).text,t.pos)}function x(e,t,r){return void 0===r&&(r=!1),D(e.text,t,r)}function D(t,r,n){if(void 0===n&&(n=!1),p(r))return"";var i=t.substring(n?r.pos:e.skipTrivia(t,r.pos),r.end);return function e(t){return 292===t.kind||t.parent&&e(t.parent)}(r)&&(i=i.replace(/(^|\r?\n|\r)\s*\*\s*/g,"$1")),i}function S(e,t){return void 0===t&&(t=!1),x(_(e),e,t)}function T(e){return e.pos}function E(e){var t=e.emitNode;return t&&t.flags||0}function C(e){var t=lt(e);return 241===t.kind&&278===t.parent.kind}function k(t){return e.isModuleDeclaration(t)&&(10===t.name.kind||N(t))}function N(e){return!!(1024&e.flags)}function A(e){return k(e)&&F(e)}function F(t){switch(t.parent.kind){case 288:return e.isExternalModule(t.parent);case 249:return k(t.parent.parent)&&e.isSourceFile(t.parent.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function P(t,r){switch(t.kind){case 288:case 250:case 278:case 248:case 229:case 230:case 231:case 161:case 160:case 162:case 163:case 243:case 200:case 201:return!0;case 222:return!e.isFunctionLike(r)}return!1}function w(t){switch(t.kind){case 164:case 165:case 159:case 166:case 169:case 170:case 298:case 244:case 213:case 245:case 246:case 314:case 243:case 160:case 161:case 162:case 163:case 200:case 201:return!0;default:return e.assertType(t),!1}}function I(e){switch(e.kind){case 253:case 252:return!0;default:return!1}}function O(e){return e&&0!==u(e)?S(e):"(Missing)"}function M(t){switch(t.kind){case 75:return t.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(t.text);case 153:return et(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 L(t,r,n,i,a,o,s){var c=B(t,r);return e.createFileDiagnostic(t,c.start,c.length,n,i,a,o,s)}function R(t,r){var n=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,r);n.scan();var i=n.getTokenPos();return e.createTextSpanFromBounds(i,n.getTextPos())}function B(t,r){var n=r;switch(r.kind){case 288:var i=e.skipTrivia(t.text,0,!1);return i===t.text.length?e.createTextSpan(0,0):R(t,i);case 241:case 190:case 244:case 213:case 245:case 248:case 247:case 282:case 243:case 200:case 160:case 162:case 163:case 246:case 158:case 157:n=r.name;break;case 201:return function(t,r){var n=e.skipTrivia(t.text,r.pos);if(r.body&&222===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,d(i,t)-n+1)}return e.createTextSpanFromBounds(n,r.end)}(t,r);case 275:case 276:var a=e.skipTrivia(t.text,r.pos),o=r.statements.length>0?r.statements[0].pos:r.end;return e.createTextSpanFromBounds(a,o)}if(void 0===n)return R(t,r.pos);e.Debug.assert(!e.isJSDoc(n));var s=p(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 j(e){return 6===e.scriptKind}function K(t){return!!(2&e.getCombinedNodeFlags(t))}function J(e){return 195===e.kind&&95===e.expression.kind}function z(t){return e.isImportTypeNode(t)&&e.isLiteralTypeNode(t.argument)&&e.isStringLiteral(t.argument.literal)}function U(e){return 225===e.kind&&10===e.expression.kind}e.changesAffectModuleResolution=function(e,t){return e.configFilePath!==t.configFilePath||o(e,t)},e.optionsHaveModuleResolutionChanges=o,e.findAncestor=s,e.forEachAncestor=function(t,r){for(;;){var n=r(t);if("quit"===n)return;if(void 0!==n)return n;if(e.isSourceFile(t))return;t=t.parent}},e.forEachEntry=function(e,t){for(var r=e.entries(),n=r.next();!n.done;n=r.next()){var i=n.value,a=i[0],o=t(i[1],a);if(o)return o}},e.forEachKey=function(e,t){for(var r=e.keys(),n=r.next();!n.done;n=r.next()){var i=t(n.value);if(i)return i}},e.copyEntries=c,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 c(t,r),r},e.usingSingleLineStringWriter=function(e){var t=a.getText();try{return e(a),a.getText()}finally{a.clear(),a.writeKeyword(t)}},e.getFullWidth=u,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=l,e.getSourceFileOfNode=_,e.isStatementWithLocals=function(e){switch(e.kind){case 222:case 250:case 229:case 230:case 231: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=_(t),n=e.getLineAndCharacterOfPosition(r,t.pos);return r.fileName+"("+(n.line+1)+","+(n.character+1)+")"},e.getEndLinePosition=d,e.isFileLevelUniqueName=function(e,t,r){return!(r&&r(t)||e.identifiers.has(t))},e.nodeIsMissing=p,e.nodeIsPresent=m,e.insertStatementsAfterStandardPrologue=function(e,t){return g(e,t,U)},e.insertStatementsAfterCustomPrologue=function(e,t){return g(e,t,h)},e.insertStatementAfterStandardPrologue=function(e,t){return y(e,t,U)},e.insertStatementAfterCustomPrologue=function(e,t){return y(e,t,h)},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(V)||i.match(q))}return!1},e.isPinnedComment=v,e.getTokenPosOfNode=b,e.getNonDecoratorTokenPosOfNode=function(t,r){return p(t)||!t.decorators?b(t,r):e.skipTrivia((r||_(t)).text,t.decorators.end)},e.getSourceTextOfNodeFromSourceFile=x,e.getTextOfNodeFromSourceText=D,e.getTextOfNode=S,e.indexOfNode=function(t,r){return e.binarySearch(t,r,T,e.compareValues)},e.getEmitFlags=E,e.getLiteralText=function(t,r,n){if(!_t(t)&&t.parent&&!(e.isNumericLiteral(t)&&512&t.numericLiteralFlags||e.isBigIntLiteral(t)))return x(r,t);var i=n||16777216&E(t)?xt:Et;switch(t.kind){case 10:return t.singleQuote?"'"+i(t.text,39)+"'":'"'+i(t.text,34)+'"';case 14:case 15:case 16:case 17:var a=t.rawText||function(e){return e.replace(gt,"\\${")}(i(t.text,96));switch(t.kind){case 14:return"`"+a+"`";case 15:return"`"+a+"${";case 16:return"}"+a+"${";case 17:return"}"+a+"`"}break;case 8:case 9:case 13:return t.text}return e.Debug.fail("Literal kind '"+t.kind+"' not accounted for.")},e.getTextOfConstantValue=function(t){return e.isString(t)?'"'+Et(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=k,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=function(t){return e.isModuleDeclaration(t)||e.isIdentifier(t)},e.isShorthandAmbientModuleSymbol=function(e){return function(e){return e&&248===e.kind&&!e.body}(e.valueDeclaration)},e.isBlockScopedContainerTopLevel=function(t){return 288===t.kind||248===t.kind||e.isFunctionLike(t)},e.isGlobalScopeAugmentation=N,e.isExternalModuleAugmentation=A,e.isModuleAugmentationExternal=F,e.getNonAugmentationDeclaration=function(t){return e.find(t.declarations,(function(t){return!(A(t)||e.isModuleDeclaration(t)&&N(t))}))},e.isEffectiveExternalModule=function(t,r){return e.isExternalModule(t)||r.isolatedModules||e.getEmitModuleKind(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&&(!!e.getStrictOptionValue(r,"alwaysStrict")||(!!e.startsWithUseStrict(t.statements)||!(!e.isExternalModule(t)&&!r.isolatedModules)&&(e.getEmitModuleKind(r)>=e.ModuleKind.ES2015||!r.noImplicitUseStrict)))},e.isBlockScope=P,e.isDeclarationWithTypeParameters=function(t){switch(t.kind){case 308:case 315:case 303:return!0;default:return e.assertType(t),w(t)}},e.isDeclarationWithTypeParameterChildren=w,e.isAnyImportSyntax=I,e.isLateVisibilityPaintedStatement=function(e){switch(e.kind){case 253:case 252:case 224:case 244:case 243:case 248:case 246:case 245:case 247:return!0;default:return!1}},e.isAnyImportOrReExport=function(t){return I(t)||e.isExportDeclaration(t)},e.getEnclosingBlockScopeContainer=function(e){return s(e.parent,(function(e){return P(e,e.parent)}))},e.declarationNameToString=O,e.getNameFromIndexInfo=function(e){return e.declaration?O(e.declaration.parameters[0].name):void 0},e.getTextOfPropertyName=M,e.entityNameToString=function t(r){switch(r.kind){case 75:return 0===u(r)?e.idText(r):S(r);case 152:return t(r.left)+"."+t(r.right);case 193:return t(r.expression)+"."+t(r.name);default:throw e.Debug.assertNever(r)}},e.createDiagnosticForNode=function(e,t,r,n,i,a){return 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 e.createFileDiagnostic(t,c,r.end-c,n,i,a,o,s)},e.createDiagnosticForNodeInSourceFile=L,e.createDiagnosticForNodeFromMessageChain=function(e,t,r){var n=_(e),i=B(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.getSpanOfTokenAtPosition=R,e.getErrorSpanForNode=B,e.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},e.isJsonSourceFile=j,e.isEnumConst=function(t){return!!(2048&e.getCombinedModifierFlags(t))},e.isDeclarationReadonly=function(t){return!(!(64&e.getCombinedModifierFlags(t))||e.isParameterPropertyDeclaration(t,t.parent))},e.isVarConst=K,e.isLet=function(t){return!!(1&e.getCombinedNodeFlags(t))},e.isSuperCall=function(e){return 195===e.kind&&101===e.expression.kind},e.isImportCall=J,e.isImportMeta=function(t){return e.isMetaProperty(t)&&95===t.keywordToken&&"meta"===t.name.escapedText},e.isLiteralImportTypeNode=z,e.isPrologueDirective=U,e.getLeadingCommentRangesOfNode=function(t,r){return 11!==t.kind?e.getLeadingCommentRanges(r.text,t.pos):void 0},e.getJSDocCommentRanges=function(t,r){var n=155===t.kind||154===t.kind||200===t.kind||201===t.kind||199===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 V=/^(\/\/\/\s*<reference\s+types\s*=\s*)('|")(.+?)\2.*?\/>/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var q=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)('|")(.+?)\2\s*\/>/;function W(t){if(167<=t.kind&&t.kind<=187)return!0;switch(t.kind){case 124:case 147:case 139:case 150:case 142:case 127:case 143:case 140:case 145:case 136:return!0;case 109:return 204!==t.parent.kind;case 215:return!ir(t);case 154:return 185===t.parent.kind||180===t.parent.kind;case 75:152===t.parent.kind&&t.parent.right===t?t=t.parent:193===t.parent.kind&&t.parent.name===t&&(t=t.parent),e.Debug.assert(75===t.kind||152===t.kind||193===t.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 152:case 193:case 103:var r=t.parent;if(171===r.kind)return!1;if(187===r.kind)return!r.isTypeOf;if(167<=r.kind&&r.kind<=187)return!0;switch(r.kind){case 215:return!ir(r);case 154:case 314:return t===r.constraint;case 158:case 157:case 155:case 241:return t===r.type;case 243:case 200:case 201:case 161:case 160:case 159:case 162:case 163:return t===r.type;case 164:case 165:case 166:case 198:return t===r.type;case 195:case 196:return e.contains(r.typeArguments,t);case 197:return!1}}return!1}function G(e){if(e)switch(e.kind){case 190:case 282:case 155:case 279:case 158:case 157:case 280:case 241:return!0}return!1}function H(e){return 242===e.parent.kind&&224===e.parent.parent.kind}function Y(e,t,r){return e.properties.filter((function(e){if(279===e.kind){var n=M(e.name);return t===n||!!r&&r===n}return!1}))}function X(t){if(t&&t.statements.length){var r=t.statements[0].expression;return e.tryCast(r,e.isObjectLiteralExpression)}}function Q(t,r){var n=X(t);return n?Y(n,r):e.emptyArray}function $(t,r){for(e.Debug.assert(288!==t.kind);;){if(!(t=t.parent))return e.Debug.fail();switch(t.kind){case 153:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 156:155===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 201:if(!r)continue;case 243:case 200:case 248:case 158:case 157:case 160:case 159:case 161:case 162:case 163:case 164:case 165:case 166:case 247:case 288:return t}}}function Z(e){var t=e.kind;return(193===t||194===t)&&101===e.expression.kind}function ee(e,t,r){switch(e.kind){case 244:return!0;case 158:return 244===t.kind;case 162:case 163:case 160:return void 0!==e.body&&244===t.kind;case 155:return void 0!==t.body&&(161===t.kind||160===t.kind||163===t.kind)&&244===r.kind}return!1}function te(e,t,r){return void 0!==e.decorators&&ee(e,t,r)}function re(e,t,r){return te(e,t,r)||ne(e,t)}function ne(t,r){switch(t.kind){case 244:return e.some(t.members,(function(e){return re(e,t,r)}));case 160:case 163:return e.some(t.parameters,(function(e){return te(e,t,r)}));default:return!1}}function ie(e){var t=e.parent;return(266===t.kind||265===t.kind||267===t.kind)&&t.tagName===e}function ae(e){switch(e.kind){case 101:case 99:case 105:case 90:case 13:case 191:case 192:case 193:case 194:case 195:case 196:case 197:case 216:case 198:case 217:case 199:case 200:case 213:case 201:case 204:case 202:case 203:case 206:case 207:case 208:case 209:case 212:case 210:case 214:case 264:case 265:case 268:case 211:case 205:case 218:return!0;case 152:for(;152===e.parent.kind;)e=e.parent;return 171===e.parent.kind||ie(e);case 75:if(171===e.parent.kind||ie(e))return!0;case 8:case 9:case 10:case 14:case 103:return oe(e);default:return!1}}function oe(e){var t=e.parent;switch(t.kind){case 241:case 155:case 158:case 157:case 282:case 279:case 190:return t.initializer===e;case 225:case 226:case 227:case 228:case 234:case 235:case 236:case 275:case 238:return t.expression===e;case 229:var r=t;return r.initializer===e&&242!==r.initializer.kind||r.condition===e||r.incrementor===e;case 230:case 231:var n=t;return n.initializer===e&&242!==n.initializer.kind||n.expression===e;case 198:case 216:case 220:case 153:return e===t.expression;case 156:case 274:case 273:case 281:return!0;case 215:return t.expression===e&&ir(t);case 280:return t.objectAssignmentInitializer===e;default:return ae(t)}}function se(e){return 252===e.kind&&263===e.moduleReference.kind}function ce(e){return ue(e)}function ue(e){return!!e&&!!(131072&e.flags)}function le(t,r){if(195!==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 _e(t){return ue(t)&&t.initializer&&e.isBinaryExpression(t.initializer)&&(56===t.initializer.operatorToken.kind||60===t.initializer.operatorToken.kind)&&t.name&&ar(t.name)&&pe(t.name,t.initializer.left)?t.initializer.right:t.initializer}function de(t,r){if(e.isCallExpression(t)){var n=ze(t.expression);return 200===n.kind||201===n.kind?t:void 0}return 200===t.kind||213===t.kind||201===t.kind?t:e.isObjectLiteralExpression(t)&&(0===t.properties.length||r)?t:void 0}function pe(t,r){return ot(t)&&ot(r)?st(t)==st(t):e.isIdentifier(t)&&he(r)?(103===r.expression.kind||e.isIdentifier(r.expression)&&("window"===r.expression.escapedText||"self"===r.expression.escapedText||"global"===r.expression.escapedText))&&pe(t,Se(r)):!(!he(t)||!he(r))&&(Ee(t)===Ee(r)&&pe(t.expression,r.expression))}function fe(t){return e.isIdentifier(t)&&"exports"===t.escapedText}function me(t){return(e.isPropertyAccessExpression(t)||ve(t))&&e.isIdentifier(t.expression)&&"module"===t.expression.escapedText&&"exports"===Ee(t)}function ge(t){var r=function(t){if(e.isCallExpression(t)){if(!ye(t))return 0;var r=t.arguments[0];return fe(r)||me(r)?8:be(r)&&"prototype"===Ee(r)?9:7}if(62!==t.operatorToken.kind||!Cr(t.left))return 0;if(De(t.left.expression,!0)&&"prototype"===Ee(t.left)&&e.isObjectLiteralExpression(ke(t)))return 6;return Ce(t.left)}(t);return 5===r||ue(t)?r:0}function ye(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)&&et(t.arguments[1])&&De(t.arguments[0],!0)}function he(t){return e.isPropertyAccessExpression(t)||ve(t)}function ve(t){return e.isElementAccessExpression(t)&&(et(t.argumentExpression)||it(t.argumentExpression))}function be(t,r){return e.isPropertyAccessExpression(t)&&(!r&&103===t.expression.kind||De(t.expression,!0))||xe(t,r)}function xe(e,t){return ve(e)&&(!t&&103===e.expression.kind||ar(e.expression)||be(e.expression,!0))}function De(e,t){return ar(e)||be(e,t)}function Se(t){return e.isPropertyAccessExpression(t)?t.name:t.argumentExpression}function Te(t){if(e.isPropertyAccessExpression(t))return t.name;var r=ze(t.argumentExpression);return e.isNumericLiteral(r)||e.isStringLiteralLike(r)?r:t}function Ee(t){var r=Te(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)&&it(t.argumentExpression))return ct(e.idText(t.argumentExpression.name))}function Ce(t){if(103===t.expression.kind)return 4;if(me(t))return 2;if(De(t.expression,!0)){if(sr(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"===Ee(r))&&be(t))return 1;if(De(t,!0)||e.isElementAccessExpression(t)&&nt(t)&&103!==t.expression.kind)return 5}return 0}function ke(t){for(;e.isBinaryExpression(t.right);)t=t.right;return t.right}function Ne(t){switch(t.parent.kind){case 253:case 259:return t.parent;case 263:return t.parent.parent;case 195:return J(t.parent)||le(t.parent,!1)?t.parent:void 0;case 186:return e.Debug.assert(e.isStringLiteral(t)),e.tryCast(t.parent.parent,e.isImportTypeNode);default:return}}function Ae(e){return 315===e.kind||308===e.kind||309===e.kind}function Fe(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&0!==ge(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 Pe(e){switch(e.kind){case 224:var t=we(e);return t&&t.initializer;case 158:case 279:return e.initializer}}function we(t){return e.isVariableStatement(t)?e.firstOrUndefined(t.declarationList.declarations):void 0}function Ie(t){return e.isModuleDeclaration(t)&&t.body&&248===t.body.kind?t.body:void 0}function Oe(t){var r=t.parent;return 279===r.kind||258===r.kind||158===r.kind||225===r.kind&&193===t.kind||Ie(r)||e.isBinaryExpression(t)&&62===t.operatorToken.kind?r:r.parent&&(we(r.parent)===t||e.isBinaryExpression(r)&&62===r.operatorToken.kind)?r.parent:r.parent&&r.parent.parent&&(we(r.parent.parent)||Pe(r.parent.parent)===t||Fe(r.parent.parent))?r.parent.parent:void 0}function Me(e){return Le(Re(e))}function Le(t){var r=Fe(t)||function(t){return e.isExpressionStatement(t)&&t.expression&&e.isBinaryExpression(t.expression)&&62===t.expression.operatorToken.kind?t.expression.right:void 0}(t)||Pe(t)||we(t)||Ie(t)||t;return r&&e.isFunctionLike(r)?r:void 0}function Re(t){return e.Debug.assertDefined(s(t.parent,e.isJSDoc)).parent}function Be(t){var r=e.isJSDocParameterTag(t)?t.typeExpression&&t.typeExpression.type:t.type;return void 0!==t.dotDotDotToken||!!r&&299===r.kind}function je(e){for(var t=e.parent;;){switch(t.kind){case 208:var r=t.operatorToken.kind;return er(r)&&t.left===e?62===r?1:2:0;case 206:case 207:var n=t.operator;return 45===n||46===n?2:0;case 230:case 231:return t.initializer===e?1:0;case 199:case 191:case 212:case 217:e=t;break;case 280:if(t.name!==e)return 0;e=t.parent;break;case 279:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function Ke(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function Je(e){return Ke(e,199)}function ze(e){for(;199===e.kind;)e=e.expression;return e}function Ue(t){return ar(t)||e.isClassExpression(t)}function Ve(e){return Ue(qe(e))}function qe(t){return e.isExportAssignment(t)?t.expression:t.right}function We(t){var r=Ge(t);if(r&&ue(t)){var n=e.getJSDocAugmentsTag(t);if(n)return n.class}return r}function Ge(e){var t=Xe(e.heritageClauses,89);return t&&t.types.length>0?t.types[0]:void 0}function He(e){var t=Xe(e.heritageClauses,112);return t?t.types:void 0}function Ye(e){var t=Xe(e.heritageClauses,89);return t?t.types:void 0}function Xe(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 Qe(e){return 76<=e&&e<=151}function $e(e){return 121<=e&&e<=151}function Ze(e){return Qe(e)&&!$e(e)}function et(t){return e.isStringLiteralLike(t)||e.isNumericLiteral(t)}function tt(t){return e.isPrefixUnaryExpression(t)&&(39===t.operator||40===t.operator)&&e.isNumericLiteral(t.operand)}function rt(t){var r=e.getNameOfDeclaration(t);return!!r&&nt(r)}function nt(t){if(153!==t.kind&&194!==t.kind)return!1;var r=e.isElementAccessExpression(t)?t.argumentExpression:t.expression;return!et(r)&&!tt(r)&&!it(r)}function it(t){return e.isPropertyAccessExpression(t)&&ut(t.expression)}function at(t){switch(t.kind){case 75:return t.escapedText;case 10:case 8:return e.escapeLeadingUnderscores(t.text);case 153:var r=t.expression;return it(r)?ct(e.idText(r.name)):et(r)?e.escapeLeadingUnderscores(r.text):void 0;default:return e.Debug.assertNever(t)}}function ot(e){switch(e.kind){case 75:case 10:case 14:case 8:return!0;default:return!1}}function st(t){return 75===t.kind?e.idText(t):t.text}function ct(e){return"__@"+e}function ut(e){return 75===e.kind&&"Symbol"===e.escapedText}function lt(e){for(;190===e.kind;)e=e.parent.parent;return e}function _t(t){return e.positionIsSynthesized(t.pos)||e.positionIsSynthesized(t.end)}function dt(e,t,r){switch(e){case 196:return r?0:1;case 206:case 203:case 204:case 202:case 205:case 209:case 211:return 1;case 208: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 pt(e){return 208===e.kind?e.operatorToken.kind:206===e.kind||207===e.kind?e.operator:e.kind}function ft(e,t,r){switch(e){case 320:return 0;case 212:return 1;case 211:return 2;case 209:return 4;case 208: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 mt(t)}case 206:case 203:case 204:case 202:case 205:return 16;case 207:return 17;case 195:return 18;case 196:return r?19:18;case 197:case 193:case 194:return 19;case 103:case 101:case 75:case 99:case 105:case 90:case 8:case 9:case 10:case 191:case 192:case 200:case 201:case 213:case 264:case 265:case 268:case 13:case 14:case 210:case 199:case 214:return 20;default:return-1}}function mt(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 97:case 96:case 122:return 11;case 47:case 48:case 49:return 12;case 39:case 40:return 13;case 41:case 43:case 44:return 14;case 42:return 15}return-1}e.isPartOfTypeNode=W,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 234:return r(n);case 250:case 222:case 226:case 227:case 228:case 229:case 230:case 231:case 235:case 236:case 275:case 276:case 237:case 239:case 278:return e.forEachChild(n,t)}}(t)},e.forEachYieldExpression=function(t,r){return function t(n){switch(n.kind){case 211:r(n);var i=n.expression;return void(i&&t(i));case 247:case 245:case 248:case 246:case 244:case 213:return;default:if(e.isFunctionLike(n)){if(n.name&&153===n.name.kind)return void t(n.name.expression)}else W(n)||e.forEachChild(n,t)}}(t)},e.getRestParameterElementType=function(t){return t&&173===t.kind?t.elementType:t&&168===t.kind?e.singleOrUndefined(t.typeArguments):void 0},e.getMembersOfDeclaration=function(e){switch(e.kind){case 245:case 244:case 213:case 172:return e.members;case 192:return e.properties}},e.isVariableLike=G,e.isVariableLikeOrAccessor=function(t){return G(t)||e.isAccessor(t)},e.isVariableDeclarationInVariableStatement=H,e.isValidESSymbolDeclaration=function(t){return e.isVariableDeclaration(t)?K(t)&&e.isIdentifier(t.name)&&H(t):e.isPropertyDeclaration(t)?Yt(t)&&Ht(t):e.isPropertySignature(t)&&Yt(t)},e.introducesArgumentsExoticObject=function(e){switch(e.kind){case 160:case 159:case 161:case 162:case 163:case 243:case 200:return!0}return!1},e.unwrapInnermostStatementOfLabel=function(e,t){for(;;){if(t&&t(e),237!==e.statement.kind)return e.statement;e=e.statement}},e.isFunctionBlock=function(t){return t&&222===t.kind&&e.isFunctionLike(t.parent)},e.isObjectLiteralMethod=function(e){return e&&160===e.kind&&192===e.parent.kind},e.isObjectLiteralOrClassExpressionMethod=function(e){return 160===e.kind&&(192===e.parent.kind||213===e.parent.kind)},e.isIdentifierTypePredicate=function(e){return e&&1===e.kind},e.isThisTypePredicate=function(e){return e&&0===e.kind},e.getPropertyAssignment=Y,e.getTsConfigObjectLiteralExpression=X,e.getTsConfigPropArrayElementValue=function(t,r,n){return e.firstDefined(Q(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=Q,e.getContainingFunction=function(t){return s(t.parent,e.isFunctionLike)},e.getContainingFunctionDeclaration=function(t){return s(t.parent,e.isFunctionLikeDeclaration)},e.getContainingClass=function(t){return s(t.parent,e.isClassLike)},e.getThisContainer=$,e.getNewTargetContainer=function(e){var t=$(e,!1);if(t)switch(t.kind){case 161:case 243:case 200:return t}},e.getSuperContainer=function(t,r){for(;;){if(!(t=t.parent))return t;switch(t.kind){case 153:t=t.parent;break;case 243:case 200:case 201:if(!r)continue;case 158:case 157:case 160:case 159:case 161:case 162:case 163:return t;case 156:155===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent)}}},e.getImmediatelyInvokedFunctionExpression=function(e){if(200===e.kind||201===e.kind){for(var t=e,r=e.parent;199===r.kind;)t=r,r=r.parent;if(195===r.kind&&r.expression===t)return r}},e.isSuperOrSuperProperty=function(e){return 101===e.kind||Z(e)},e.isSuperProperty=Z,e.isThisProperty=function(e){var t=e.kind;return(193===t||194===t)&&103===e.expression.kind},e.getEntityNameFromTypeNode=function(e){switch(e.kind){case 168:return e.typeName;case 215:return ar(e.expression)?e.expression:void 0;case 75:case 152:return e}},e.getInvokedExpression=function(e){switch(e.kind){case 197:return e.tag;case 266:case 265:return e.tagName;default:return e.expression}},e.nodeCanBeDecorated=ee,e.nodeIsDecorated=te,e.nodeOrChildIsDecorated=re,e.childIsDecorated=ne,e.isJSXTagName=ie,e.isExpressionNode=ae,e.isInExpressionContext=oe,e.isExternalModuleImportEqualsDeclaration=se,e.getExternalModuleImportEqualsDeclarationExpression=function(t){return e.Debug.assert(se(t)),t.moduleReference.expression},e.isInternalModuleImportEqualsDeclaration=function(e){return 252===e.kind&&263!==e.moduleReference.kind},e.isSourceFileJS=ce,e.isSourceFileNotJS=function(e){return!ue(e)},e.isInJSFile=ue,e.isInJsonFile=function(e){return!!e&&!!(33554432&e.flags)},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&&(142===t.typeArguments[0].kind||139===t.typeArguments[0].kind)},e.isRequireCall=le,e.isSingleOrDoubleQuote=function(e){return 39===e||34===e},e.isStringDoubleQuoted=function(e,t){return 34===x(t,e).charCodeAt(0)},e.getDeclarationOfExpando=function(t){if(t.parent){var r,n;if(e.isVariableDeclaration(t.parent)&&t.parent.initializer===t){if(!ue(t)&&!K(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&&De(r)&&pe(r,i.left))))return}if(r&&de(t,sr(r)))return n}},e.isAssignmentDeclaration=function(t){return e.isBinaryExpression(t)||Cr(t)||e.isIdentifier(t)||e.isCallExpression(t)},e.getEffectiveInitializer=_e,e.getDeclaredExpandoInitializer=function(e){var t=_e(e);return t&&de(t,sr(e.name))},e.getAssignedExpandoInitializer=function(t){if(t&&t.parent&&e.isBinaryExpression(t.parent)&&62===t.parent.operatorToken.kind){var r=sr(t.parent.left);return de(t.parent.right,r)||function(t,r,n){var i=e.isBinaryExpression(r)&&(56===r.operatorToken.kind||60===r.operatorToken.kind)&&de(r.right,n);if(i&&pe(t,r.left))return i}(t.parent.left,t.parent.right,r)}if(t&&e.isCallExpression(t)&&ye(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&&de(t.initializer,r)}))}(t.arguments[2],"prototype"===t.arguments[1].text);if(n)return n}},e.getExpandoInitializer=de,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&&de(t.right,sr(r))&&ar(r)&&pe(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=function(e){for(;nr(e,!0);)e=e.right;return e},e.isExportsIdentifier=fe,e.isModuleExportsAccessExpression=me,e.getAssignmentDeclarationKind=ge,e.isBindableObjectDefinePropertyCall=ye,e.isLiteralLikeAccess=he,e.isLiteralLikeElementAccess=ve,e.isBindableStaticAccessExpression=be,e.isBindableStaticElementAccessExpression=xe,e.isBindableStaticNameExpression=De,e.getNameOrArgument=Se,e.getElementOrPropertyAccessArgumentExpressionOrName=Te,e.getElementOrPropertyAccessName=Ee,e.getAssignmentDeclarationPropertyAccessKind=Ce,e.getInitializerOfBinaryExpression=ke,e.isPrototypePropertyAssignment=function(t){return e.isBinaryExpression(t)&&3===ge(t)},e.isSpecialPropertyDeclaration=function(t){return ue(t)&&t.parent&&225===t.parent.kind&&(!e.isElementAccessExpression(t)||ve(t))&&!!e.getJSDocTypeTag(t.parent)},e.isFunctionSymbol=function(t){if(!t||!t.valueDeclaration)return!1;var r=t.valueDeclaration;return 243===r.kind||e.isVariableDeclaration(r)&&r.initializer&&e.isFunctionLike(r.initializer)},e.importFromModuleSpecifier=function(t){return Ne(t)||e.Debug.failBadSyntaxKind(t.parent)},e.tryGetImportFromModuleSpecifier=Ne,e.getExternalModuleName=function(t){switch(t.kind){case 253:case 259:return t.moduleSpecifier;case 252:return 263===t.moduleReference.kind?t.moduleReference.expression:void 0;case 187:return z(t)?t.argument.literal:void 0;default:return e.Debug.assertNever(t)}},e.getNamespaceDeclarationNode=function(t){switch(t.kind){case 253:return t.importClause&&e.tryCast(t.importClause.namedBindings,e.isNamespaceImport);case 252:return t;case 259:return;default:return e.Debug.assertNever(t)}},e.isDefaultImport=function(e){return 253===e.kind&&!!e.importClause&&!!e.importClause.name},e.hasQuestionToken=function(e){if(e)switch(e.kind){case 155:case 160:case 159:case 280:case 279:case 158:case 157: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=Ae,e.isTypeAlias=function(t){return Ae(t)||e.isTypeAliasDeclaration(t)},e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Pe,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))),155===n.kind){r=e.addRange(r,e.getJSDocParameterTags(n));break}if(154===n.kind){r=e.addRange(r,e.getJSDocTypeParameterTags(n));break}n=Oe(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=Me(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=Me,e.getHostSignatureFromJSDocHost=Le,e.getJSDocHost=Re,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&&Be(r)},e.isRestParameter=Be,function(e){e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound"}(e.AssignmentKind||(e.AssignmentKind={})),e.getAssignmentTargetKind=je,e.isAssignmentTarget=function(e){return 0!==je(e)},e.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 222:case 224:case 235:case 226:case 236:case 250:case 275:case 276:case 237:case 229:case 230:case 231:case 227:case 228:case 239:case 278:return!0}return!1},e.isValueSignatureDeclaration=function(t){return e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isMethodOrAccessor(t)||e.isFunctionDeclaration(t)||e.isConstructorDeclaration(t)},e.walkUpParenthesizedTypes=function(e){return Ke(e,181)},e.walkUpParenthesizedExpressions=Je,e.skipParentheses=ze,e.isDeleteTarget=function(e){return(193===e.kind||194===e.kind)&&((e=Je(e.parent))&&202===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!==ge(i)&&(i.left.symbol||i.symbol)&&e.getNameOfDeclaration(i)===t?i:void 0;default:return}},e.isLiteralComputedPropertyDeclarationName=function(t){return et(t)&&153===t.parent.kind&&e.isDeclaration(t.parent.parent)},e.isIdentifierName=function(e){var t=e.parent;switch(t.kind){case 158:case 157:case 160:case 159:case 162:case 163:case 282:case 279:case 193:return t.name===e;case 152:if(t.right===e){for(;152===t.kind;)t=t.parent;return 171===t.kind||168===t.kind}return!1;case 190:case 257:return t.propertyName===e;case 261:case 271:return!0}return!1},e.isAliasSymbolDeclaration=function(t){return 252===t.kind||251===t.kind||254===t.kind&&!!t.name||255===t.kind||257===t.kind||261===t.kind||258===t.kind&&Ve(t)||e.isBinaryExpression(t)&&2===ge(t)&&Ve(t)||e.isPropertyAccessExpression(t)&&e.isBinaryExpression(t.parent)&&t.parent.left===t&&62===t.parent.operatorToken.kind&&Ue(t.parent.right)||280===t.kind||279===t.kind&&Ue(t.initializer)},e.exportAssignmentIsAlias=Ve,e.getExportAssignmentExpression=qe,e.getPropertyAssignmentAliasLikeExpression=function(e){return 280===e.kind?e.name:279===e.kind?e.initializer:e.parent.right},e.getEffectiveBaseTypeNode=We,e.getClassExtendsHeritageElement=Ge,e.getClassImplementsHeritageClauseElements=He,e.getAllSuperTypeNodes=function(t){return e.isInterfaceDeclaration(t)?Ye(t)||e.emptyArray:e.isClassLike(t)&&e.concatenate(e.singleElementArray(We(t)),He(t))||e.emptyArray},e.getInterfaceBaseTypeNodes=Ye,e.getHeritageClause=Xe,e.getAncestor=function(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}},e.isKeyword=Qe,e.isContextualKeyword=$e,e.isNonContextualKeyword=Ze,e.isFutureReservedKeyword=function(e){return 112<=e&&e<=120},e.isStringANonContextualKeyword=function(t){var r=e.stringToToken(t);return void 0!==r&&Ze(r)},e.isStringAKeyword=function(t){var r=e.stringToToken(t);return void 0!==r&&Qe(r)},e.isIdentifierANonContextualKeyword=function(e){var t=e.originalKeywordKind;return!!t&&!$e(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 243:case 200:case 160:e.asteriskToken&&(t|=1);case 201:Gt(e,256)&&(t|=2)}return e.body||(t|=4),t},e.isAsyncFunction=function(e){switch(e.kind){case 243:case 200:case 201:case 160:return void 0!==e.body&&void 0===e.asteriskToken&&Gt(e,256)}return!1},e.isStringOrNumericLiteralLike=et,e.isSignedNumericLiteral=tt,e.hasDynamicName=rt,e.isDynamicName=nt,e.isWellKnownSymbolSyntactically=it,e.getPropertyNameForPropertyNameNode=at,e.isPropertyNameLiteral=ot,e.getTextOfIdentifierOrLiteral=st,e.getEscapedTextOfIdentifierOrLiteral=function(t){return 75===t.kind?t.escapedText:e.escapeLeadingUnderscores(t.text)},e.getPropertyNameForKnownSymbolName=ct,e.isKnownSymbol=function(t){return e.startsWith(t.escapedName,"__@")},e.isESSymbolIdentifier=ut,e.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},e.isParameterDeclaration=function(e){return 155===lt(e).kind},e.getRootDeclaration=lt,e.nodeStartsNewLexicalEnvironment=function(e){var t=e.kind;return 161===t||200===t||243===t||201===t||160===t||162===t||163===t||248===t||288===t},e.nodeIsSynthesized=_t,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=pt(e),r=196===e.kind&&void 0!==e.arguments;return dt(e.kind,t,r)},e.getOperatorAssociativity=dt,e.getExpressionPrecedence=function(e){var t=pt(e),r=196===e.kind&&void 0!==e.arguments;return ft(e.kind,t,r)},e.getOperator=pt,e.getOperatorPrecedence=ft,e.getBinaryOperatorPrecedence=mt,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,e.compareDiagnostics)},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,e.compareDiagnosticsSkipRelatedInformation);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 gt=/\$\{/g;var yt=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,ht=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,vt=/[\\\`]/g,bt=e.createMapFromTemplate({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085"});function xt(e,t){var r=96===t?vt:39===t?ht:yt;return e.replace(r,Dt)}function Dt(e,t,r){if(0===e.charCodeAt(0)){var n=r.charCodeAt(t+e.length);return n>=48&&n<=57?"\\x00":"\\0"}return bt.get(e)||St(e.charCodeAt(0))}function St(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}e.escapeString=xt,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 Tt=/[^\u0000-\u007F]/g;function Et(e,t){return e=xt(e,t),Tt.test(e)?e.replace(Tt,(function(e){return St(e.charCodeAt(0))})):e}e.escapeNonAsciiString=Et;var Ct=["","    "];function kt(e){return void 0===Ct[e]&&(Ct[e]=kt(e-1)+Ct[1]),Ct[e]}function Nt(){return Ct[1].length}function At(e,t,r){return t.moduleName||Ft(e,t.fileName,r&&r.fileName)}function Ft(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=e.getRelativePathToDirectoryOrUrl(a,o,a,i,!1),c=e.removeFileExtension(s);return n?e.ensurePathIsNonModuleName(c):c}function Pt(t,r,n,i,a){var o=r.declarationDir||r.outDir,s=o?Ot(t,o,n,i,a):t;return e.removeFileExtension(s)+".d.ts"}function wt(e,t,r,n){return!(t.noEmitForJsFiles&&ce(e)||e.isDeclarationFile||r(e)||j(e)&&n(e.fileName))}function It(e,t,r){return Ot(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),(function(e){return t.getCanonicalFileName(e)}))}function Ot(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 Mt(t,r){return e.getLineAndCharacterOfPosition(t,r).line}function Lt(t,r){return e.computeLineAndCharacterOfPosition(t,r).line}function Rt(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&Bt(e.parameters[0]);return e.parameters[t?1:0]}}function Bt(e){return jt(e.name)}function jt(e){return!!e&&75===e.kind&&Kt(e)}function Kt(e){return 103===e.originalKeywordKind}function Jt(t){var r=t.type;return r||!ue(t)?r:e.isJSDocPropertyLikeTag(t)?t.typeExpression&&t.typeExpression.type:e.getJSDocType(t)}function zt(e,t,r,n){Ut(e,t,r.pos,n)}function Ut(e,t,r,n){n&&n.length&&r!==n[0].pos&&Lt(e,r)!==Lt(e,n[0].pos)&&t.writeLine()}function Vt(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 qt(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 Wt(t,r,n){for(var i=0;r<n&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));r++)9===t.charCodeAt(r)?i+=Nt()-i%Nt():i++;return i}function Gt(e,t){return!!Xt(e,t)}function Ht(e){return Gt(e,32)}function Yt(e){return Gt(e,64)}function Xt(e,t){return Qt(e)&t}function Qt(e){if(536870912&e.modifierFlagsCache)return-536870913&e.modifierFlagsCache;var t=$t(e);return e.modifierFlagsCache=536870912|t,t}function $t(e){var t=0;if(e.modifiers)for(var r=0,n=e.modifiers;r<n.length;r++){t|=Zt(n[r].kind)}return(4&e.flags||75===e.kind&&e.isInJSDocNamespace)&&(t|=1),t}function Zt(e){switch(e){case 119:return 32;case 118:return 4;case 117:return 16;case 116:return 8;case 121:return 128;case 88:return 1;case 129:return 2;case 80:return 2048;case 83:return 512;case 125:return 256;case 137:return 64}return 0}function er(e){return e>=62&&e<=74}function tr(e){var t=rr(e);return t&&!t.isImplements?t.class:void 0}function rr(t){return e.isExpressionWithTypeArguments(t)&&e.isHeritageClause(t.parent)&&e.isClassLike(t.parent.parent)?{class:t.parent.parent,isImplements:112===t.parent.token}:void 0}function nr(t,r){return e.isBinaryExpression(t)&&(r?62===t.operatorToken.kind:er(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function ir(e){return void 0!==tr(e)}function ar(e){return 75===e.kind||or(e)}function or(t){return e.isPropertyAccessExpression(t)&&ar(t.expression)}function sr(e){return be(e)&&"prototype"===Ee(e)}e.getIndentString=kt,e.getIndentSize=Nt,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=kt(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(){i||(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*Nt():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 n(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return r(r({},e),{writeTrailingSemicolon:function(){t=!0},writeLiteral:function(t){n(),e.writeLiteral(t)},writeStringLiteral:function(t){n(),e.writeStringLiteral(t)},writeSymbol:function(t,r){n(),e.writeSymbol(t,r)},writePunctuation:function(t){n(),e.writePunctuation(t)},writeKeyword:function(t){n(),e.writeKeyword(t)},writeOperator:function(t){n(),e.writeOperator(t)},writeParameter:function(t){n(),e.writeParameter(t)},writeSpace:function(t){n(),e.writeSpace(t)},writeProperty:function(t){n(),e.writeProperty(t)},writeComment:function(t){n(),e.writeComment(t)},writeLine:function(){n(),e.writeLine()},increaseIndent:function(){n(),e.increaseIndent()},decreaseIndent:function(){n(),e.decreaseIndent()}})},e.getResolvedExternalModuleName=At,e.getExternalModuleNameFromDeclaration=function(e,t,r){var n=t.getExternalModuleFileFromDeclaration(r);if(n&&!n.isDeclarationFile)return At(e,n)},e.getExternalModuleNameFromPath=Ft,e.getOwnEmitOutputFilePath=function(t,r,n){var i=r.getCompilerOptions();return(i.outDir?e.removeFileExtension(It(t,r,i.outDir)):e.removeFileExtension(t))+n},e.getDeclarationEmitOutputFilePath=function(e,t){return Pt(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),(function(e){return t.getCanonicalFileName(e)}))},e.getDeclarationEmitOutputFilePathWorker=Pt,e.getSourceFilesToEmit=function(t,r){var n=t.getCompilerOptions(),i=function(e){return t.isSourceFileFromExternalLibrary(e)},a=function(e){return t.getResolvedProjectReferenceToRedirect(e)};if(n.outFile||n.out){var o=e.getEmitModuleKind(n),s=n.emitDeclarationOnly||o===e.ModuleKind.AMD||o===e.ModuleKind.System;return e.filter(t.getSourceFiles(),(function(t){return(s||!e.isExternalModule(t))&&wt(t,n,i,a)}))}var c=void 0===r?t.getSourceFiles():[r];return e.filter(c,(function(e){return wt(e,n,i,a)}))},e.sourceFileMayBeEmitted=wt,e.getSourceFilePathInNewDir=It,e.getSourceFilePathInNewDirWorker=Ot,e.writeFile=function(t,r,n,i,a,o){t.writeFile(n,i,a,(function(t){r.add(e.createCompilerDiagnostic(e.Diagnostics.Could_not_write_file_0_Colon_1,n,t))}),o)},e.getLineOfLocalPosition=Mt,e.getLineOfLocalPositionFromLineMap=Lt,e.getFirstConstructorWithBody=function(t){return e.find(t.members,(function(t){return e.isConstructorDeclaration(t)&&m(t.body)}))},e.getSetAccessorValueParameter=Rt,e.getSetAccessorTypeAnnotationNode=function(e){var t=Rt(e);return t&&t.type},e.getThisParameter=function(t){if(t.parameters.length&&!e.isJSDocSignature(t)){var r=t.parameters[0];if(Bt(r))return r}},e.parameterIsThisKeyword=Bt,e.isThisIdentifier=jt,e.identifierIsThisKeyword=Kt,e.getAllAccessorDeclarations=function(t,r){var n,i,a,o;return rt(r)?(n=r,162===r.kind?a=r:163===r.kind?o=r:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,(function(t){e.isAccessor(t)&&Gt(t,32)===Gt(r,32)&&(at(t.name)===at(r.name)&&(n?i||(i=t):n=t,162!==t.kind||a||(a=t),163!==t.kind||o||(o=t)))})),{firstAccessor:n,secondAccessor:i,getAccessor:a,setAccessor:o}},e.getEffectiveTypeAnnotationNode=Jt,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||(ue(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)&&!(301===t.parent.kind&&t.parent.tags.some(Ae))}(t)?t.typeParameters:void 0}))},e.getEffectiveSetAccessorTypeAnnotationNode=function(e){var t=Rt(e);return t&&Jt(t)},e.emitNewLineBeforeLeadingComments=zt,e.emitNewLineBeforeLeadingCommentsOfPosition=Ut,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,t,r,n){r!==n&&Lt(e,r)!==Lt(e,n)&&t.writeLine()},e.emitComments=Vt,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 v(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 m=Lt(r,_.end);if(Lt(r,f.pos)>=m+2)break}l.push(f),_=f}if(l.length){m=Lt(r,e.last(l).end);Lt(r,e.skipTrivia(t,a.pos))>=m+2&&(zt(r,n,a,c),Vt(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=Wt(t,r[s.line],i));var p=n.getIndent()*Nt()-u+Wt(t,l,d);if(p>0){var f=p%Nt(),m=kt((p-f)/Nt());for(n.rawWrite(m);f;)n.rawWrite(" "),f--}else n.rawWrite("")}qt(t,a,n,o,l,d),l=d}else n.writeComment(t.substring(i,a))},e.hasModifiers=function(e){return 0!==Qt(e)},e.hasModifier=Gt,e.hasStaticModifier=Ht,e.hasReadonlyModifier=Yt,e.getSelectedModifierFlags=Xt,e.getModifierFlags=Qt,e.getModifierFlagsNoCache=$t,e.modifierToFlag=Zt,e.isLogicalOperator=function(e){return 56===e||55===e||53===e},e.isAssignmentOperator=er,e.tryGetClassExtendingExpressionWithTypeArguments=tr,e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=rr,e.isAssignmentExpression=nr,e.isDestructuringAssignment=function(e){if(nr(e,!0)){var t=e.left.kind;return 192===t||191===t}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=ir,e.isEntityNameExpression=ar,e.getFirstIdentifier=function(e){switch(e.kind){case 75:return e;case 152:do{e=e.left}while(75!==e.kind);return e;case 193:do{e=e.expression}while(75!==e.kind);return e}},e.isDottedName=function e(t){return 75===t.kind||103===t.kind||193===t.kind&&e(t.expression)||199===t.kind&&e(t.expression)},e.isPropertyAccessEntityNameExpression=or,e.tryGetPropertyAccessOrIdentifierToString=function t(r){return e.isPropertyAccessExpression(r)?t(r.expression)+"."+r.name:e.isIdentifier(r)?e.unescapeLeadingUnderscores(r.escapedText):void 0},e.isPrototypeAccess=sr,e.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 152===e.parent.kind&&e.parent.right===e||193===e.parent.kind&&e.parent.name===e},e.isEmptyObjectLiteral=function(e){return 192===e.kind&&0===e.properties.length},e.isEmptyArrayLiteral=function(e){return 191===e.kind&&0===e.elements.length},e.getLocalSymbolForExportDefault=function(t){return function(t){return t&&e.length(t.declarations)>0&&Gt(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 cr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function ur(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+=cr.charAt(r)+cr.charAt(n)+cr.charAt(i)+cr.charAt(a),c+=3;return o}e.convertToBase64=ur,e.base64encode=function(e,t){return e&&e.base64encode?e.base64encode(t):ur(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)!==cr.charCodeAt(64);){var a=cr.indexOf(t[i]),o=cr.indexOf(t[i+1]),s=cr.indexOf(t[i+2]),c=cr.indexOf(t[i+3]),u=(63&a)<<2|o>>4&3,l=(15&o)<<4|s>>2&15,_=(3&s)<<6|63&c;0===l&&0!==s?n.push(u):0===_&&0!==c?n.push(u,l):n.push(u,l,_),i+=4}return function(e){for(var t="",r=0,n=e.length;r<n;){var i=e[r];if(i<128)t+=String.fromCharCode(i),r++;else if(192==(192&i)){for(var a=63&i,o=e[++r];128==(192&o);)a=a<<6|63&o,o=e[++r];t+=String.fromCharCode(a)}else t+=String.fromCharCode(i),r++}return t}(n)},e.readJson=function(t,r){try{var n=r.readFile(t);if(!n)return{};var i=e.parseConfigFileTextToJson(t,n);return i.error?{}:i.config}catch(e){return{}}},e.directoryProbablyExists=function(e,t){return!t.directoryExists||t.directoryExists(e)};var lr,_r="\r\n",dr="\n";function pr(t,r){return void 0===r&&(r=t),e.Debug.assert(r>=t||-1===r),{pos:t,end:r}}function fr(e,t){return pr(t,e.end)}function mr(e){return e.decorators&&e.decorators.length>0?fr(e,e.decorators.end):e}function gr(e,t,r){return yr(hr(e,r),t.end,r)}function yr(e,t,r){return e===t||Mt(r,e)===Mt(r,t)}function hr(t,r){return e.positionIsSynthesized(t.pos)?-1:e.skipTrivia(r.text,t.pos)}function vr(e){return void 0!==e.initializer}function br(e){return 33554432&e.flags?e.checkFlags:0}function xr(t){var r=t.parent;if(!r)return 0;switch(r.kind){case 199:return xr(r);case 207:case 206:var n=r.operator;return 45===n||46===n?c():0;case 208:var i=r,a=i.left,o=i.operatorToken;return a===t&&er(o.kind)?62===o.kind?1:c():0;case 193:return r.name!==t?0:xr(r);case 279:var s=xr(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 280:return t===r.objectAssignmentInitializer?0:xr(r.parent);case 191:return xr(r);default:return 0}function c(){return r.parent&&225===function(e){for(;199===e.kind;)e=e.parent;return e}(r.parent).kind?1:2}}function Dr(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 Sr(e){if(32&e.flags){var t=Tr(e);return!!t&&Gt(t,128)}return!1}function Tr(t){return e.find(t.declarations,e.isClassLike)}function Er(e){return 3899392&e.flags?e.objectFlags:0}function Cr(e){return 193===e.kind||194===e.kind}e.getNewLineCharacter=function(t,r){switch(t.newLine){case 0:return _r;case 1:return dr}return r?r():e.sys?e.sys.newLine:_r},e.createRange=pr,e.moveRangeEnd=function(e,t){return pr(e.pos,t)},e.moveRangePos=fr,e.moveRangePastDecorators=mr,e.moveRangePastModifiers=function(e){return e.modifiers&&e.modifiers.length>0?fr(e,e.modifiers.end):mr(e)},e.isCollapsedRange=function(e){return e.pos===e.end},e.createTokenRange=function(t,r){return pr(t,t+e.tokenToString(r).length)},e.rangeIsOnSingleLine=function(e,t){return gr(e,e,t)},e.rangeStartPositionsAreOnSameLine=function(e,t,r){return yr(hr(e,r),hr(t,r),r)},e.rangeEndPositionsAreOnSameLine=function(e,t,r){return yr(e.end,t.end,r)},e.rangeStartIsOnSameLineAsRangeEnd=gr,e.rangeEndIsOnSameLineAsRangeStart=function(e,t,r){return yr(e.end,hr(t,r),r)},e.isNodeArrayMultiLine=function(e,t){return!yr(e.pos,e.end,t)},e.positionsAreOnSameLine=yr,e.getStartPositionOfRange=hr,e.isDeclarationNameOfEnumOrNamespace=function(t){var r=e.getParseTreeNode(t);if(r)switch(r.parent.kind){case 247:case 248:return r===r.parent.name}return!1},e.getInitializedVariables=function(t){return e.filter(t.declarations,vr)},e.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},e.closeFileWatcher=function(e){e.close()},e.getCheckFlags=br,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&br(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===xr(e)},e.isWriteAccess=function(e){return 0!==xr(e)},function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(lr||(lr={})),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"===f(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=Dr,e.mutateMap=function(e,t,r){Dr(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&Er(e))&&!!e.symbol&&Sr(e.symbol)},e.isAbstractConstructorSymbol=Sr,e.getClassLikeDeclarationOfSymbol=Tr,e.getObjectFlags=Er,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:S(r)},e.getLastChild=function(t){var r;return e.forEachChild(t,(function(e){m(e)&&(r=e)}),(function(e){for(var t=e.length-1;t>=0;t--)if(m(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>=167&&e<=187||124===e||147===e||139===e||150===e||140===e||127===e||142===e||143===e||103===e||109===e||145===e||99===e||136===e||215===e||293===e||294===e||295===e||296===e||297===e||298===e||299===e},e.isAccessExpression=Cr,e.isBundleFileTextLike=function(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}},e.getDotOrQuestionDotToken=function(t){return t.questionDotToken||e.createNode(24,t.expression.end,t.name.pos)}}(s||(s={})),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!!e.isBindingPattern(t)&&e.every(t.elements,l)}function l(t){return!!e.isOmittedExpression(t)||u(t.name)}function _(t){for(var r=t.parent;e.isBindingElement(r.parent);)r=r.parent.parent;return r.parent}function d(t,r){e.isBindingElement(t)&&(t=_(t));var n=r(t);return 241===t.kind&&(t=t.parent),t&&242===t.kind&&(n|=r(t),t=t.parent),t&&224===t.kind&&(n|=r(t)),n}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 m(e){var t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function g(e){return m(e.escapedText)}function y(t){var r=t.parent.parent;if(r){if(e.isDeclaration(r))return h(r);switch(r.kind){case 224:if(r.declarationList&&r.declarationList.declarations[0])return h(r.declarationList.declarations[0]);break;case 225:var n=r.expression;switch(208===n.kind&&62===n.operatorToken.kind&&(n=n.left),n.kind){case 193:return n.name;case 194:var i=n.argumentExpression;if(e.isIdentifier(i))return i}break;case 199:return h(r.expression);case 237:if(e.isDeclaration(r.statement)||e.isExpression(r.statement))return h(r.statement)}}}function h(t){var r=D(t);return r&&e.isIdentifier(r)?r:void 0}function v(e){return e.name||y(e)}function b(e){return!!e.name}function x(t){switch(t.kind){case 75:return t;case 316:case 310:var r=t.name;if(152===r.kind)return r.right;break;case 195:case 208: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 315:return v(t);case 309:return y(t);case 258:var i=t.expression;return e.isIdentifier(i)?i:void 0;case 194:var a=t;if(e.isBindableStaticElementAccessExpression(a))return a.argumentExpression}return t.name}function D(t){if(void 0!==t)return x(t)||(e.isFunctionExpression(t)||e.isClassExpression(t)?function(t){if(!t.parent)return;if(e.isPropertyAssignment(t.parent)||e.isBindingElement(t.parent))return t.parent.name;if(e.isBinaryExpression(t.parent)&&t===t.parent.right){if(e.isIdentifier(t.parent.left))return t.parent.left;if(e.isAccessExpression(t.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(t.parent.left)}else if(e.isVariableDeclaration(t.parent)&&e.isIdentifier(t.parent.name))return t.parent.name}(t):void 0)}function S(t){if(t.name){if(e.isIdentifier(t.name)){var r=t.name.escapedText;return k(t.parent).filter((function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.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=k(t.parent).filter(e.isJSDocParameterTag);if(n<i.length)return[i[n]]}return e.emptyArray}function T(t){return N(t,e.isJSDocReturnTag)}function E(t){var r=N(t,e.isJSDocTypeTag);if(r&&r.typeExpression&&r.typeExpression.type)return r}function C(t){var r=N(t,e.isJSDocTypeTag);return!r&&e.isParameter(t)&&(r=e.find(S(t),(function(e){return!!e.typeExpression}))),r&&r.typeExpression&&r.typeExpression.type}function k(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(t){return e.isJSDoc(t)?t.tags:t}))}return r}function N(t,r){return e.find(k(t),r)}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,m=t(l.span),g=f+l.newLength;i=Math.min(_,f),a=Math.max(d,d+(m-p)),o=Math.max(g,g+(p-m))}return c(s(i,a),o-i)},e.getTypeParameterOwner=function(t){if(t&&154===t.kind)for(var r=t;r;r=r.parent)if(e.isFunctionLike(r)||e.isClassLike(r)||245===r.kind)return r},e.isParameterPropertyDeclaration=function(t,r){return e.hasModifier(t,92)&&161===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(t){return i&&i.push(e.createCompilerDiagnostic(e.Diagnostics.Unable_to_open_file_0,s)),!1}try{e.localizedDiagnosticMessages=JSON.parse(c)}catch(t){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=m,e.idText=g,e.symbolName=function(e){return m(e.escapedName)},e.nodeHasName=function t(r,n){return!(!b(r)||!e.isIdentifier(r.name)||g(r.name)!==g(n))||!(!e.isVariableStatement(r)||!e.some(r.declarationList.declarations,(function(e){return t(e,n)})))},e.getNameOfJSDocTypedef=v,e.isNamedDeclaration=b,e.getNonAssignedNameOfDeclaration=x,e.getNameOfDeclaration=D,e.getJSDocParameterTags=S,e.getJSDocTypeParameterTags=function(t){var r=t.name.escapedText;return k(t.parent).filter((function(t){return e.isJSDocTemplateTag(t)&&t.typeParameters.some((function(e){return e.name.escapedText===r}))}))},e.hasJSDocParameterTags=function(t){return!!N(t,e.isJSDocParameterTag)},e.getJSDocAugmentsTag=function(t){return N(t,e.isJSDocAugmentsTag)},e.getJSDocClassTag=function(t){return N(t,e.isJSDocClassTag)},e.getJSDocEnumTag=function(t){return N(t,e.isJSDocEnumTag)},e.getJSDocThisTag=function(t){return N(t,e.isJSDocThisTag)},e.getJSDocReturnTag=T,e.getJSDocTemplateTag=function(t){return N(t,e.isJSDocTemplateTag)},e.getJSDocTypeTag=E,e.getJSDocType=C,e.getJSDocReturnType=function(t){var r=T(t);if(r&&r.typeExpression)return r.typeExpression.type;var n=E(t);if(n&&n.typeExpression){var i=n.typeExpression.type;if(e.isTypeLiteralNode(i)){var a=e.find(i.members,e.isCallSignatureDeclaration);return a&&a.type}if(e.isFunctionTypeNode(i))return i.type}},e.getJSDocTags=k,e.getAllJSDocTagsOfKind=function(e,t){return k(e).filter((function(e){return e.kind===t}))},e.getEffectiveTypeParameterDeclarations=function(t){if(e.isJSDocSignature(t))return e.emptyArray;if(e.isJSDocTypeAlias(t))return e.Debug.assert(301===t.parent.kind),e.flatMap(t.parent.tags,(function(t){return e.isJSDocTemplateTag(t)?t.typeParameters:void 0}));if(t.typeParameters)return t.typeParameters;if(e.isInJSFile(t)){var r=e.getJSDocTypeParameterDeclarations(t);if(r.length)return r;var n=C(t);if(n&&e.isFunctionTypeNode(n)&&n.typeParameters)return n.typeParameters}return e.emptyArray},e.getEffectiveConstraintOfTypeParameter=function(t){return t.constraint?t.constraint:e.isJSDocTemplateTag(t.parent)&&t===t.parent.typeParameters[0]?t.parent.constraint:void 0}}(s||(s={})),function(e){function t(e){return 75===e.kind}function r(e){return 168===e.kind}function n(e){return 193===e.kind}function i(e){return 194===e.kind}function a(e){return 195===e.kind}function o(e){switch(e.kind){case 285:case 286:return!0;default:return!1}}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=t,e.isQualifiedName=function(e){return 152===e.kind},e.isComputedPropertyName=function(e){return 153===e.kind},e.isTypeParameterDeclaration=function(e){return 154===e.kind},e.isParameter=function(e){return 155===e.kind},e.isDecorator=function(e){return 156===e.kind},e.isPropertySignature=function(e){return 157===e.kind},e.isPropertyDeclaration=function(e){return 158===e.kind},e.isMethodSignature=function(e){return 159===e.kind},e.isMethodDeclaration=function(e){return 160===e.kind},e.isConstructorDeclaration=function(e){return 161===e.kind},e.isGetAccessorDeclaration=function(e){return 162===e.kind},e.isSetAccessorDeclaration=function(e){return 163===e.kind},e.isCallSignatureDeclaration=function(e){return 164===e.kind},e.isConstructSignatureDeclaration=function(e){return 165===e.kind},e.isIndexSignatureDeclaration=function(e){return 166===e.kind},e.isGetOrSetAccessorDeclaration=function(e){return 163===e.kind||162===e.kind},e.isTypePredicateNode=function(e){return 167===e.kind},e.isTypeReferenceNode=r,e.isFunctionTypeNode=function(e){return 169===e.kind},e.isConstructorTypeNode=function(e){return 170===e.kind},e.isTypeQueryNode=function(e){return 171===e.kind},e.isTypeLiteralNode=function(e){return 172===e.kind},e.isArrayTypeNode=function(e){return 173===e.kind},e.isTupleTypeNode=function(e){return 174===e.kind},e.isUnionTypeNode=function(e){return 177===e.kind},e.isIntersectionTypeNode=function(e){return 178===e.kind},e.isConditionalTypeNode=function(e){return 179===e.kind},e.isInferTypeNode=function(e){return 180===e.kind},e.isParenthesizedTypeNode=function(e){return 181===e.kind},e.isThisTypeNode=function(e){return 182===e.kind},e.isTypeOperatorNode=function(e){return 183===e.kind},e.isIndexedAccessTypeNode=function(e){return 184===e.kind},e.isMappedTypeNode=function(e){return 185===e.kind},e.isLiteralTypeNode=function(e){return 186===e.kind},e.isImportTypeNode=function(e){return 187===e.kind},e.isObjectBindingPattern=function(e){return 188===e.kind},e.isArrayBindingPattern=function(e){return 189===e.kind},e.isBindingElement=function(e){return 190===e.kind},e.isArrayLiteralExpression=function(e){return 191===e.kind},e.isObjectLiteralExpression=function(e){return 192===e.kind},e.isPropertyAccessExpression=n,e.isPropertyAccessChain=function(e){return n(e)&&!!(32&e.flags)},e.isElementAccessExpression=i,e.isElementAccessChain=function(e){return i(e)&&!!(32&e.flags)},e.isCallExpression=a,e.isCallChain=function(e){return a(e)&&!!(32&e.flags)},e.isOptionalChain=function(e){var t=e.kind;return!!(32&e.flags)&&(193===t||194===t||195===t)},e.isExpressionOfOptionalChainRoot=function(t){return e.isOptionalChainRoot(t.parent)&&t.parent.expression===t},e.isNullishCoalesce=function(e){return 208===e.kind&&60===e.operatorToken.kind},e.isNewExpression=function(e){return 196===e.kind},e.isTaggedTemplateExpression=function(e){return 197===e.kind},e.isTypeAssertion=function(e){return 198===e.kind},e.isConstTypeReference=function(e){return r(e)&&t(e.typeName)&&"const"===e.typeName.escapedText&&!e.typeArguments},e.isParenthesizedExpression=function(e){return 199===e.kind},e.skipPartiallyEmittedExpressions=function(e){for(;319===e.kind;)e=e.expression;return e},e.isFunctionExpression=function(e){return 200===e.kind},e.isArrowFunction=function(e){return 201===e.kind},e.isDeleteExpression=function(e){return 202===e.kind},e.isTypeOfExpression=function(e){return 203===e.kind},e.isVoidExpression=function(e){return 204===e.kind},e.isAwaitExpression=function(e){return 205===e.kind},e.isPrefixUnaryExpression=function(e){return 206===e.kind},e.isPostfixUnaryExpression=function(e){return 207===e.kind},e.isBinaryExpression=function(e){return 208===e.kind},e.isConditionalExpression=function(e){return 209===e.kind},e.isTemplateExpression=function(e){return 210===e.kind},e.isYieldExpression=function(e){return 211===e.kind},e.isSpreadElement=function(e){return 212===e.kind},e.isClassExpression=function(e){return 213===e.kind},e.isOmittedExpression=function(e){return 214===e.kind},e.isExpressionWithTypeArguments=function(e){return 215===e.kind},e.isAsExpression=function(e){return 216===e.kind},e.isNonNullExpression=function(e){return 217===e.kind},e.isMetaProperty=function(e){return 218===e.kind},e.isTemplateSpan=function(e){return 220===e.kind},e.isSemicolonClassElement=function(e){return 221===e.kind},e.isBlock=function(e){return 222===e.kind},e.isVariableStatement=function(e){return 224===e.kind},e.isEmptyStatement=function(e){return 223===e.kind},e.isExpressionStatement=function(e){return 225===e.kind},e.isIfStatement=function(e){return 226===e.kind},e.isDoStatement=function(e){return 227===e.kind},e.isWhileStatement=function(e){return 228===e.kind},e.isForStatement=function(e){return 229===e.kind},e.isForInStatement=function(e){return 230===e.kind},e.isForOfStatement=function(e){return 231===e.kind},e.isContinueStatement=function(e){return 232===e.kind},e.isBreakStatement=function(e){return 233===e.kind},e.isBreakOrContinueStatement=function(e){return 233===e.kind||232===e.kind},e.isReturnStatement=function(e){return 234===e.kind},e.isWithStatement=function(e){return 235===e.kind},e.isSwitchStatement=function(e){return 236===e.kind},e.isLabeledStatement=function(e){return 237===e.kind},e.isThrowStatement=function(e){return 238===e.kind},e.isTryStatement=function(e){return 239===e.kind},e.isDebuggerStatement=function(e){return 240===e.kind},e.isVariableDeclaration=function(e){return 241===e.kind},e.isVariableDeclarationList=function(e){return 242===e.kind},e.isFunctionDeclaration=function(e){return 243===e.kind},e.isClassDeclaration=function(e){return 244===e.kind},e.isInterfaceDeclaration=function(e){return 245===e.kind},e.isTypeAliasDeclaration=function(e){return 246===e.kind},e.isEnumDeclaration=function(e){return 247===e.kind},e.isModuleDeclaration=function(e){return 248===e.kind},e.isModuleBlock=function(e){return 249===e.kind},e.isCaseBlock=function(e){return 250===e.kind},e.isNamespaceExportDeclaration=function(e){return 251===e.kind},e.isImportEqualsDeclaration=function(e){return 252===e.kind},e.isImportDeclaration=function(e){return 253===e.kind},e.isImportClause=function(e){return 254===e.kind},e.isNamespaceImport=function(e){return 255===e.kind},e.isNamedImports=function(e){return 256===e.kind},e.isImportSpecifier=function(e){return 257===e.kind},e.isExportAssignment=function(e){return 258===e.kind},e.isExportDeclaration=function(e){return 259===e.kind},e.isNamedExports=function(e){return 260===e.kind},e.isExportSpecifier=function(e){return 261===e.kind},e.isMissingDeclaration=function(e){return 262===e.kind},e.isExternalModuleReference=function(e){return 263===e.kind},e.isJsxElement=function(e){return 264===e.kind},e.isJsxSelfClosingElement=function(e){return 265===e.kind},e.isJsxOpeningElement=function(e){return 266===e.kind},e.isJsxClosingElement=function(e){return 267===e.kind},e.isJsxFragment=function(e){return 268===e.kind},e.isJsxOpeningFragment=function(e){return 269===e.kind},e.isJsxClosingFragment=function(e){return 270===e.kind},e.isJsxAttribute=function(e){return 271===e.kind},e.isJsxAttributes=function(e){return 272===e.kind},e.isJsxSpreadAttribute=function(e){return 273===e.kind},e.isJsxExpression=function(e){return 274===e.kind},e.isCaseClause=function(e){return 275===e.kind},e.isDefaultClause=function(e){return 276===e.kind},e.isHeritageClause=function(e){return 277===e.kind},e.isCatchClause=function(e){return 278===e.kind},e.isPropertyAssignment=function(e){return 279===e.kind},e.isShorthandPropertyAssignment=function(e){return 280===e.kind},e.isSpreadAssignment=function(e){return 281===e.kind},e.isEnumMember=function(e){return 282===e.kind},e.isSourceFile=function(e){return 288===e.kind},e.isBundle=function(e){return 289===e.kind},e.isUnparsedSource=function(e){return 290===e.kind},e.isUnparsedPrepend=function(e){return 284===e.kind},e.isUnparsedTextLike=o,e.isUnparsedNode=function(e){return o(e)||283===e.kind||287===e.kind},e.isJSDocTypeExpression=function(e){return 292===e.kind},e.isJSDocAllType=function(e){return 293===e.kind},e.isJSDocUnknownType=function(e){return 294===e.kind},e.isJSDocNullableType=function(e){return 295===e.kind},e.isJSDocNonNullableType=function(e){return 296===e.kind},e.isJSDocOptionalType=function(e){return 297===e.kind},e.isJSDocFunctionType=function(e){return 298===e.kind},e.isJSDocVariadicType=function(e){return 299===e.kind},e.isJSDoc=function(e){return 301===e.kind},e.isJSDocAuthorTag=function(e){return 306===e.kind},e.isJSDocAugmentsTag=function(e){return 305===e.kind},e.isJSDocClassTag=function(e){return 307===e.kind},e.isJSDocEnumTag=function(e){return 309===e.kind},e.isJSDocThisTag=function(e){return 312===e.kind},e.isJSDocParameterTag=function(e){return 310===e.kind},e.isJSDocReturnTag=function(e){return 311===e.kind},e.isJSDocTypeTag=function(e){return 313===e.kind},e.isJSDocTemplateTag=function(e){return 314===e.kind},e.isJSDocTypedefTag=function(e){return 315===e.kind},e.isJSDocPropertyTag=function(e){return 316===e.kind},e.isJSDocPropertyLikeTag=function(e){return 316===e.kind||310===e.kind},e.isJSDocTypeLiteral=function(e){return 302===e.kind},e.isJSDocCallbackTag=function(e){return 308===e.kind},e.isJSDocSignature=function(e){return 303===e.kind}}(s||(s={})),function(e){function t(e){return e>=152}function r(e){return 8<=e&&e<=14}function n(e){return 14<=e&&e<=17}function i(e){switch(e){case 121:case 125:case 80:case 129:case 83:case 88:case 118:case 116:case 117:case 137:case 119:return!0}return!1}function a(t){return!!(92&e.modifierToFlag(t))}function o(e){return e&&c(e.kind)}function s(e){switch(e){case 243:case 160:case 161:case 162:case 163:case 200:case 201:return!0;default:return!1}}function c(e){switch(e){case 159:case 164:case 303:case 165:case 166:case 169:case 298:case 170:return!0;default:return s(e)}}function u(e){var t=e.kind;return 161===t||158===t||160===t||162===t||163===t||166===t||221===t}function l(e){var t=e.kind;return 165===t||164===t||157===t||159===t||166===t}function _(e){var t=e.kind;return 279===t||280===t||281===t||160===t||162===t||163===t}function d(e){switch(e.kind){case 188:case 192:return!0}return!1}function p(e){switch(e.kind){case 189:case 191:return!0}return!1}function f(e){switch(e){case 193:case 194:case 196:case 195:case 264:case 265:case 268:case 197:case 191:case 199:case 192:case 213:case 200:case 75:case 13:case 8:case 9:case 10:case 14:case 210:case 90:case 99:case 103:case 105:case 101:case 217:case 218:case 95:return!0;default:return!1}}function m(e){switch(e){case 206:case 207:case 202:case 203:case 204:case 205:case 198:return!0;default:return f(e)}}function g(t){return function(e){switch(e){case 209:case 211:case 201:case 208:case 212:case 216:case 214:case 320:case 319:return!0;default:return m(e)}}(e.skipPartiallyEmittedExpressions(t).kind)}function y(e){return 319===e.kind}function h(e){return 318===e.kind}function v(t){return e.isExportAssignment(t)||e.isExportDeclaration(t)}function b(e){return 243===e||262===e||244===e||245===e||246===e||247===e||248===e||253===e||252===e||259===e||258===e||251===e}function x(e){return 233===e||232===e||240===e||227===e||225===e||223===e||230===e||231===e||229===e||226===e||237===e||234===e||236===e||238===e||239===e||224===e||228===e||235===e||318===e||322===e||321===e}function D(e){return e.kind>=304&&e.kind<=316}function S(e){return!!e.initializer}e.isSyntaxList=function(e){return 317===e.kind},e.isNode=function(e){return t(e.kind)},e.isNodeKind=t,e.isToken=function(e){return e.kind>=0&&e.kind<=151},e.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},e.isLiteralKind=r,e.isLiteralExpression=function(e){return r(e.kind)},e.isTemplateLiteralKind=n,e.isTemplateLiteralToken=function(e){return n(e.kind)},e.isTemplateMiddleOrTemplateTail=function(e){var t=e.kind;return 16===t||17===t},e.isImportOrExportSpecifier=function(t){return e.isImportSpecifier(t)||e.isExportSpecifier(t)},e.isStringTextContainingNode=function(e){return 10===e.kind||n(e.kind)},e.isGeneratedIdentifier=function(t){return e.isIdentifier(t)&&(7&t.autoGenerateFlags)>0},e.isModifierKind=i,e.isParameterPropertyModifier=a,e.isClassMemberModifier=function(e){return a(e)||119===e},e.isModifier=function(e){return i(e.kind)},e.isEntityName=function(e){var t=e.kind;return 152===t||75===t},e.isPropertyName=function(e){var t=e.kind;return 75===t||10===t||8===t||153===t},e.isBindingName=function(e){var t=e.kind;return 75===t||188===t||189===t},e.isFunctionLike=o,e.isFunctionLikeDeclaration=function(e){return e&&s(e.kind)},e.isFunctionLikeKind=c,e.isFunctionOrModuleBlock=function(t){return e.isSourceFile(t)||e.isModuleBlock(t)||e.isBlock(t)&&o(t.parent)},e.isClassElement=u,e.isClassLike=function(e){return e&&(244===e.kind||213===e.kind)},e.isAccessor=function(e){return e&&(162===e.kind||163===e.kind)},e.isMethodOrAccessor=function(e){switch(e.kind){case 160:case 162:case 163:return!0;default:return!1}},e.isTypeElement=l,e.isClassOrTypeElement=function(e){return l(e)||u(e)},e.isObjectLiteralElementLike=_,e.isTypeNode=function(t){return e.isTypeNodeKind(t.kind)},e.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 169:case 170:return!0}return!1},e.isBindingPattern=function(e){if(e){var t=e.kind;return 189===t||188===t}return!1},e.isAssignmentPattern=function(e){var t=e.kind;return 191===t||192===t},e.isArrayBindingElement=function(e){var t=e.kind;return 190===t||214===t},e.isDeclarationBindingElement=function(e){switch(e.kind){case 241:case 155:case 190:return!0}return!1},e.isBindingOrAssignmentPattern=function(e){return d(e)||p(e)},e.isObjectBindingOrAssignmentPattern=d,e.isArrayBindingOrAssignmentPattern=p,e.isPropertyAccessOrQualifiedNameOrImportTypeNode=function(e){var t=e.kind;return 193===t||152===t||187===t},e.isPropertyAccessOrQualifiedName=function(e){var t=e.kind;return 193===t||152===t},e.isCallLikeExpression=function(e){switch(e.kind){case 266:case 265:case 195:case 196:case 197:case 156:return!0;default:return!1}},e.isCallOrNewExpression=function(e){return 195===e.kind||196===e.kind},e.isTemplateLiteral=function(e){var t=e.kind;return 210===t||14===t},e.isLeftHandSideExpression=function(t){return f(e.skipPartiallyEmittedExpressions(t).kind)},e.isUnaryExpression=function(t){return m(e.skipPartiallyEmittedExpressions(t).kind)},e.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 207:return!0;case 206:return 45===e.operator||46===e.operator;default:return!1}},e.isExpression=g,e.isAssertionExpression=function(e){var t=e.kind;return 198===t||216===t},e.isPartiallyEmittedExpression=y,e.isNotEmittedStatement=h,e.isSyntheticReference=function(e){return 323===e.kind},e.isNotEmittedOrPartiallyEmittedNode=function(e){return h(e)||y(e)},e.isIterationStatement=function e(t,r){switch(t.kind){case 229:case 230:case 231:case 227:case 228:return!0;case 237:return r&&e(t.statement,r)}return!1},e.isScopeMarker=v,e.hasScopeMarker=function(t){return e.some(t,v)},e.needsScopeMarker=function(t){return!(e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasModifier(t,1)||e.isAmbientModule(t))},e.isExternalModuleIndicator=function(t){return e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasModifier(t,1)},e.isForInOrOfStatement=function(e){return 230===e.kind||231===e.kind},e.isConciseBody=function(t){return e.isBlock(t)||g(t)},e.isFunctionBody=function(t){return e.isBlock(t)},e.isForInitializer=function(t){return e.isVariableDeclarationList(t)||g(t)},e.isModuleBody=function(e){var t=e.kind;return 249===t||248===t||75===t},e.isNamespaceBody=function(e){var t=e.kind;return 249===t||248===t},e.isJSDocNamespaceBody=function(e){var t=e.kind;return 75===t||248===t},e.isNamedImportBindings=function(e){var t=e.kind;return 256===t||255===t},e.isModuleOrEnumDeclaration=function(e){return 248===e.kind||247===e.kind},e.isDeclaration=function(t){return 154===t.kind?t.parent&&314!==t.parent.kind||e.isInJSFile(t):201===(r=t.kind)||190===r||244===r||213===r||161===r||247===r||282===r||261===r||243===r||200===r||162===r||254===r||252===r||257===r||245===r||271===r||160===r||159===r||248===r||251===r||255===r||155===r||279===r||158===r||157===r||163===r||280===r||246===r||154===r||241===r||315===r||308===r||316===r;var r},e.isDeclarationStatement=function(e){return b(e.kind)},e.isStatementButNotDeclaration=function(e){return x(e.kind)},e.isStatement=function(t){var r=t.kind;return x(r)||b(r)||function(t){if(222!==t.kind)return!1;if(void 0!==t.parent&&(239===t.parent.kind||278===t.parent.kind))return!1;return!e.isFunctionBlock(t)}(t)},e.isModuleReference=function(e){var t=e.kind;return 263===t||152===t||75===t},e.isJsxTagNameExpression=function(e){var t=e.kind;return 103===t||75===t||193===t},e.isJsxChild=function(e){var t=e.kind;return 264===t||274===t||265===t||11===t||268===t},e.isJsxAttributeLike=function(e){var t=e.kind;return 271===t||273===t},e.isStringLiteralOrJsxExpression=function(e){var t=e.kind;return 10===t||274===t},e.isJsxOpeningLikeElement=function(e){var t=e.kind;return 266===t||265===t},e.isCaseOrDefaultClause=function(e){var t=e.kind;return 275===t||276===t},e.isJSDocNode=function(e){return e.kind>=292&&e.kind<=316},e.isJSDocCommentContainingNode=function(t){return 301===t.kind||D(t)||e.isJSDocTypeLiteral(t)||e.isJSDocSignature(t)},e.isJSDocTag=D,e.isSetAccessor=function(e){return 163===e.kind},e.isGetAccessor=function(e){return 162===e.kind},e.isOptionalChainRoot=function(t){return e.isOptionalChain(t)&&!!t.questionDotToken},e.hasJSDocNodes=function(e){var t=e.jsDoc;return!!t&&t.length>0},e.hasType=function(e){return!!e.type},e.hasInitializer=S,e.hasOnlyExpressionInitializer=function(t){return S(t)&&!e.isForStatement(t)&&!e.isForInStatement(t)&&!e.isForOfStatement(t)&&!e.isJsxAttribute(t)},e.isObjectLiteralElement=function(e){return 271===e.kind||273===e.kind||_(e)},e.isTypeReferenceType=function(e){return 168===e.kind||215===e.kind};var T=1073741823;e.guessIndentation=function(t){for(var r=T,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===T?void 0:r},e.isStringLiteralLike=function(e){return 10===e.kind||14===e.kind}}(s||(s={})),function(e){function t(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 r(t,r){this.flags=r,e.Debug.isDebugging&&(this.checker=t)}function n(t,r){this.flags=r,e.Debug.isDebugging&&(this.checker=t)}function i(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 a(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||function(e){return e}}function o(t,r,n){return void 0===n&&(n=0),t.replace(/{(\d+)}/g,(function(t,i){return""+e.Debug.assertDefined(r[+i+n])}))}function s(t){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[t.key]||t.message}function c(e){return e.file?e.file.path:void 0}function u(t,r){return l(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 u(e,r.relatedInformation[t])}))||0;return t.relatedInformation?-1:1}(t,r)||0}function l(t,r){return e.compareStringsCaseSensitive(c(t),c(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;var a=Math.min(r.next.length,n.next.length);for(var 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 _(e){return e.target||0}function d(t){return"number"==typeof t.module?t.module:_(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function p(e){return!(!e.declaration&&!e.composite)}function f(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function m(e,t){return t.strictFlag?f(e,t.name):e[t.name]}function g(t,r,n,i){for(var a=e.getPathComponents(e.toPath(t,n,i)),o=e.getPathComponents(e.toPath(r,n,i));!y(a[a.length-2],i)&&!y(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 y(t,r){return"node_modules"===r(t)||e.startsWith(t,"@")}e.isNamedImportsOrExports=function(e){return 256===e.kind||260===e.kind},e.objectAllocator={getNodeConstructor:function(){return i},getTokenConstructor:function(){return i},getIdentifierConstructor:function(){return i},getSourceFileConstructor:function(){return i},getSymbolConstructor:function(){return t},getTypeConstructor:function(){return r},getSignatureConstructor:function(){return n},getSourceMapSourceConstructor:function(){return a}},e.formatStringFromArgs=o,e.getLocaleSpecificMessage=s,e.createFileDiagnostic=function(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=s(i);return arguments.length>4&&(a=o(a,arguments,4)),{file:t,start:r,length:n,messageText:a,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary}},e.formatMessage=function(e,t){var r=s(t);return arguments.length>2&&(r=o(r,arguments,2)),r},e.createCompilerDiagnostic=function(e){var t=s(e);return arguments.length>1&&(t=o(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary}},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=s(t);return arguments.length>2&&(r=o(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=u,e.compareDiagnosticsSkipRelatedInformation=l,e.getEmitScriptTarget=_,e.getEmitModuleKind=d,e.getEmitModuleResolutionKind=function(t){var r=t.moduleResolution;return void 0===r&&(r=d(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),r},e.hasJsonModuleEmitEnabled=function(t){switch(d(t)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015: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!(!p(e)||!e.declarationMap)},e.getAllowSyntheticDefaultImports=function(t){var r=d(t);return void 0!==t.allowSyntheticDefaultImports?t.allowSyntheticDefaultImports:t.esModuleInterop||r===e.ModuleKind.System},e.getEmitDeclarations=p,e.isIncrementalCompilation=function(e){return!(!e.incremental&&!e.composite)},e.getStrictOptionValue=f,e.compilerOptionsAffectSemanticDiagnostics=function(t,r){return r!==t&&e.semanticDiagnosticsOptionDeclarations.some((function(n){return!e.isJsonEqual(m(r,n),m(t,n))}))},e.compilerOptionsAffectEmit=function(t,r){return r!==t&&e.affectsEmitOptionDeclarations.some((function(n){return!e.isJsonEqual(m(r,n),m(t,n))}))},e.getCompilerOptionValue=m,e.hasZeroOrOneAsteriskCharacter=function(e){for(var t=!1,r=0;r<e.length;r++)if(42===e.charCodeAt(r)){if(t)return!1;t=!0}return!0},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=g(s[0],s[1],n,r),u=c[0],l=c[1];i.set(l,u)}return i}}(s||(s={})),function(e){e.tryRemoveDirectoryPrefix=function(t,r,n){var i=e.tryRemovePrefix(t,r,n);return void 0===i?void 0:function(t){return e.isAnyDirectorySeparator(t.charCodeAt(0))?t.slice(1):void 0}(i)};var r=/[^\w\s\/]/g;function n(e){return"\\"+e}e.regExpEscape=function(e){return e.replace(r,n)};var i=[42,63];e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var a="(?!("+e.commonPackageFolders.join("|")+")(/|$))",o={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/"+a+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return p(e,o.singleAsteriskRegexFragment)}},s={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/"+a+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return p(e,s.singleAsteriskRegexFragment)}},c={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(e){return p(e,c.singleAsteriskRegexFragment)}},u={files:o,directories:s,exclude:c};function l(e,t,r){var n=_(e,t,r);if(n&&n.length)return"^("+n.map((function(e){return"("+e+")"})).join("|")+")"+("exclude"===r?"($|/)":"$")}function _(t,n,i){if(void 0!==t&&0!==t.length)return e.flatMap(t,(function(t){return t&&function(t,n,i,o){var s=o.singleAsteriskRegexFragment,c=o.doubleAsteriskRegexFragment,u=o.replaceWildcardCharacter,l="",_=!1,p=e.getNormalizedPathComponents(t,n),f=e.last(p);if("exclude"!==i&&"**"===f)return;p[0]=e.removeTrailingDirectorySeparator(p[0]),d(f)&&p.push("**","*");for(var m=0,g=0,y=p;g<y.length;g++){var h=y[g];if("**"===h)l+=c;else if("directories"===i&&(l+="(",m++),_&&(l+=e.directorySeparator),"exclude"!==i){var v="";42===h.charCodeAt(0)?(v+="([^./]"+s+")?",h=h.substr(1)):63===h.charCodeAt(0)&&(v+="[^./]",h=h.substr(1)),(v+=h.replace(r,u))!==h&&(l+=a),l+=v}else l+=h.replace(r,u);_=!0}for(;m>0;)l+=")?",m--;return l}(t,n,i,u[i])}))}function d(e){return!/[.*?]/.test(e)}function p(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function m(t,r,n,i,a){t=e.normalizePath(t),a=e.normalizePath(a);var o=e.combinePaths(a,t);return{includeFilePatterns:e.map(_(n,o,"files"),(function(e){return"^"+e+"$"})),includeFilePattern:l(n,o,"files"),includeDirectoryPattern:l(n,o,"directories"),excludePattern:l(r,o,"exclude"),basePaths:y(t,n,i)}}function g(e,t){return new RegExp(e,t?"":"i")}function y(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(h(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 h(t){var r=e.indexOfAnyCharCode(t,i);return r<0?e.hasExtension(t)?e.removeTrailingDirectorySeparator(e.getDirectoryPath(t)):t:t.substring(0,t.lastIndexOf(e.directorySeparator,r))}function v(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=l,e.getRegularExpressionsForWildcards=_,e.isImplicitGlob=d,e.getFileMatcherPatterns=m,e.getRegexFromPattern=g,e.matchFiles=function(t,r,n,i,a,o,s,c,u){t=e.normalizePath(t),o=e.normalizePath(o);for(var l=m(t,n,i,a,o),_=l.includeFilePatterns&&l.includeFilePatterns.map((function(e){return g(e,a)})),d=l.includeDirectoryPattern&&g(l.includeDirectoryPattern,a),p=l.excludePattern&&g(l.excludePattern,a),f=_?_.map((function(){return[]})):[[]],y=e.createMap(),h=e.createGetCanonicalFileName(a),v=0,b=l.basePaths;v<b.length;v++){var x=b[v];D(x,e.combinePaths(o,x),s)}return e.flatten(f);function D(t,n,i){var a=h(u(n));if(!y.has(a)){y.set(a,!0);for(var o=c(t),s=o.files,l=o.directories,m=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)},g=0,v=e.sort(s,e.compareStringsCaseSensitive);g<v.length;g++){m(S=v[g])}if(void 0===i||0!=--i)for(var b=0,x=e.sort(l,e.compareStringsCaseSensitive);b<x.length;b++){var S=x[b],T=e.combinePaths(t,S),E=e.combinePaths(n,S);d&&!d.test(E)||p&&p.test(E)||D(T,E,i)}}}},e.ensureScriptKind=function(e,t){return t||v(e)||3},e.getScriptKindFromFileName=v,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 b=t(e.supportedTSExtensions,e.supportedJSExtensions),x=t(e.supportedTSExtensions,e.supportedJSExtensions,[".json"]);function D(r,n){var i=r&&r.allowJs;if(!n||0===n.length)return i?b:e.supportedTSExtensions;var a=t(i?b:e.supportedTSExtensions,e.mapDefined(n,(function(e){return 7===e.scriptKind||i&&(1===(t=e.scriptKind)||2===t)?e.extension:void 0;var t})));return e.deduplicate(a,e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}function S(r,n){return r&&r.resolveJsonModule?n===b?x:n===e.supportedTSExtensions?e.supportedTSExtensionsWithJson:t(n,[".json"]):n}function T(e,t){return e<2?0:e<t.length?2:t.length}e.getSupportedExtensions=D,e.getSuppoertedExtensionsWithJsonIfResolveJsonModule=S,e.hasJSFileExtension=function(t){return e.some(e.supportedJSExtensions,(function(r){return e.fileExtensionIs(t,r)}))},e.hasJSOrJsonFileExtension=function(t){return e.supportedJSAndJsonExtensions.some((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=S(r,D(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 T(n,r);return 0},e.adjustExtensionPriority=T,e.getNextLowestExtensionPriority=function(e,t){return e<2?2:t.length};var E=[".d.ts",".ts",".js",".tsx",".jsx",".json"];function C(t,r){return e.fileExtensionIs(t,r)?k(t,r):void 0}function k(e,t){return e.substring(0,e.length-t.length)}function N(t){e.Debug.assert(e.hasZeroOrOneAsteriskCharacter(t));var r=t.indexOf("*");return-1===r?void 0:{prefix:t.substr(0,r),suffix:t.substr(r+1)}}function A(e){return".ts"===e||".tsx"===e||".d.ts"===e}function F(t){return e.find(E,(function(r){return e.fileExtensionIs(t,r)}))}e.removeFileExtension=function(e){for(var t=0,r=E;t<r.length;t++){var n=C(e,r[t]);if(void 0!==n)return n}return e},e.tryRemoveExtension=C,e.removeExtension=k,e.changeExtension=function(t,r){return e.changeAnyExtension(t,r,E,!1)},e.tryParsePattern=N,e.positionIsSynthesized=function(e){return!(e>=0)},e.extensionIsTS=A,e.resolutionExtensionIsTSOrJson=function(e){return A(e)||".json"===e},e.extensionFromPath=function(t){var r=F(t);return void 0!==r?r:e.Debug.fail("File "+t+" has unknown extension.")},e.isAnySupportedFileExtension=function(e){return void 0!==F(e)},e.tryGetExtensionFromPath=F,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],s=N(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 e.relatedInformation||(e.relatedInformation=[]),(t=e.relatedInformation).push.apply(t,r),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 P=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(t){return e.forEachEntry(this.map,t)||!1},t}();e.NodeSet=P;var w=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}();e.NodeMap=w,e.rangeOfNode=function(t){return{pos:e.getTokenPosOfNode(t),end:t.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=function t(r,n){return r===n||"object"===f(r)&&null!==r&&"object"===f(n)&&null!==n&&e.equalOwnProperties(r,n,t)},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,m=!0;m;){var g=0;m=!1;for(u=f;u>=0;u--){var y=g<<16|o[u],h=y/10|0;o[u]=h,g=y-10*h,h&&!m&&(f=u,m=!0)}p=g+p}return p},e.pseudoBigIntToString=function(e){var t=e.negative,r=e.base10Value;return(t&&"0"!==r?"-":"")+r}}(s||(s={})),function(e){var t,r,n,i,a,o,s;function c(e,t){return t&&e(t)}function u(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 l(e,t){return 42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&47!==e.charCodeAt(t+3)}function _(t,r,n){if(t&&!(t.kind<=151))switch(t.kind){case 152:return c(r,t.left)||c(r,t.right);case 154:return c(r,t.name)||c(r,t.constraint)||c(r,t.default)||c(r,t.expression);case 280:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.name)||c(r,t.questionToken)||c(r,t.exclamationToken)||c(r,t.equalsToken)||c(r,t.objectAssignmentInitializer);case 281:return c(r,t.expression);case 155:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.dotDotDotToken)||c(r,t.name)||c(r,t.questionToken)||c(r,t.type)||c(r,t.initializer);case 158:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.name)||c(r,t.questionToken)||c(r,t.exclamationToken)||c(r,t.type)||c(r,t.initializer);case 157:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.name)||c(r,t.questionToken)||c(r,t.type)||c(r,t.initializer);case 279:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.name)||c(r,t.questionToken)||c(r,t.initializer);case 241:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.name)||c(r,t.exclamationToken)||c(r,t.type)||c(r,t.initializer);case 190:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.dotDotDotToken)||c(r,t.propertyName)||c(r,t.name)||c(r,t.initializer);case 169:case 170:case 164:case 165:case 166:return u(r,n,t.decorators)||u(r,n,t.modifiers)||u(r,n,t.typeParameters)||u(r,n,t.parameters)||c(r,t.type);case 160:case 159:case 161:case 162:case 163:case 200:case 243:case 201:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.asteriskToken)||c(r,t.name)||c(r,t.questionToken)||c(r,t.exclamationToken)||u(r,n,t.typeParameters)||u(r,n,t.parameters)||c(r,t.type)||c(r,t.equalsGreaterThanToken)||c(r,t.body);case 168:return c(r,t.typeName)||u(r,n,t.typeArguments);case 167:return c(r,t.assertsModifier)||c(r,t.parameterName)||c(r,t.type);case 171:return c(r,t.exprName);case 172:return u(r,n,t.members);case 173:return c(r,t.elementType);case 174:return u(r,n,t.elementTypes);case 177:case 178:return u(r,n,t.types);case 179:return c(r,t.checkType)||c(r,t.extendsType)||c(r,t.trueType)||c(r,t.falseType);case 180:return c(r,t.typeParameter);case 187:return c(r,t.argument)||c(r,t.qualifier)||u(r,n,t.typeArguments);case 181:case 183:return c(r,t.type);case 184:return c(r,t.objectType)||c(r,t.indexType);case 185:return c(r,t.readonlyToken)||c(r,t.typeParameter)||c(r,t.questionToken)||c(r,t.type);case 186:return c(r,t.literal);case 188:case 189:case 191:return u(r,n,t.elements);case 192:return u(r,n,t.properties);case 193:return c(r,t.expression)||c(r,t.questionDotToken)||c(r,t.name);case 194:return c(r,t.expression)||c(r,t.questionDotToken)||c(r,t.argumentExpression);case 195:case 196:return c(r,t.expression)||c(r,t.questionDotToken)||u(r,n,t.typeArguments)||u(r,n,t.arguments);case 197:return c(r,t.tag)||c(r,t.questionDotToken)||u(r,n,t.typeArguments)||c(r,t.template);case 198:return c(r,t.type)||c(r,t.expression);case 199:case 202:case 203:case 204:return c(r,t.expression);case 206:return c(r,t.operand);case 211:return c(r,t.asteriskToken)||c(r,t.expression);case 205:return c(r,t.expression);case 207:return c(r,t.operand);case 208:return c(r,t.left)||c(r,t.operatorToken)||c(r,t.right);case 216:return c(r,t.expression)||c(r,t.type);case 217:return c(r,t.expression);case 218:return c(r,t.name);case 209:return c(r,t.condition)||c(r,t.questionToken)||c(r,t.whenTrue)||c(r,t.colonToken)||c(r,t.whenFalse);case 212:return c(r,t.expression);case 222:case 249:return u(r,n,t.statements);case 288:return u(r,n,t.statements)||c(r,t.endOfFileToken);case 224:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.declarationList);case 242:return u(r,n,t.declarations);case 225:return c(r,t.expression);case 226:return c(r,t.expression)||c(r,t.thenStatement)||c(r,t.elseStatement);case 227:return c(r,t.statement)||c(r,t.expression);case 228:return c(r,t.expression)||c(r,t.statement);case 229:return c(r,t.initializer)||c(r,t.condition)||c(r,t.incrementor)||c(r,t.statement);case 230:return c(r,t.initializer)||c(r,t.expression)||c(r,t.statement);case 231:return c(r,t.awaitModifier)||c(r,t.initializer)||c(r,t.expression)||c(r,t.statement);case 232:case 233:return c(r,t.label);case 234:return c(r,t.expression);case 235:return c(r,t.expression)||c(r,t.statement);case 236:return c(r,t.expression)||c(r,t.caseBlock);case 250:return u(r,n,t.clauses);case 275:return c(r,t.expression)||u(r,n,t.statements);case 276:return u(r,n,t.statements);case 237:return c(r,t.label)||c(r,t.statement);case 238:return c(r,t.expression);case 239:return c(r,t.tryBlock)||c(r,t.catchClause)||c(r,t.finallyBlock);case 278:return c(r,t.variableDeclaration)||c(r,t.block);case 156:return c(r,t.expression);case 244:case 213:case 245:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.name)||u(r,n,t.typeParameters)||u(r,n,t.heritageClauses)||u(r,n,t.members);case 246:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.name)||u(r,n,t.typeParameters)||c(r,t.type);case 247:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.name)||u(r,n,t.members);case 282:return c(r,t.name)||c(r,t.initializer);case 248:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.name)||c(r,t.body);case 252:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.name)||c(r,t.moduleReference);case 253:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.importClause)||c(r,t.moduleSpecifier);case 254:return c(r,t.name)||c(r,t.namedBindings);case 251:case 255:return c(r,t.name);case 256:case 260:return u(r,n,t.elements);case 259:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.exportClause)||c(r,t.moduleSpecifier);case 257:case 261:return c(r,t.propertyName)||c(r,t.name);case 258:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.expression);case 210:return c(r,t.head)||u(r,n,t.templateSpans);case 220:return c(r,t.expression)||c(r,t.literal);case 153:return c(r,t.expression);case 277:return u(r,n,t.types);case 215:return c(r,t.expression)||u(r,n,t.typeArguments);case 263:return c(r,t.expression);case 262:return u(r,n,t.decorators);case 320:return u(r,n,t.elements);case 264:return c(r,t.openingElement)||u(r,n,t.children)||c(r,t.closingElement);case 268:return c(r,t.openingFragment)||u(r,n,t.children)||c(r,t.closingFragment);case 265:case 266:return c(r,t.tagName)||u(r,n,t.typeArguments)||c(r,t.attributes);case 272:return u(r,n,t.properties);case 271:return c(r,t.name)||c(r,t.initializer);case 273:return c(r,t.expression);case 274:return c(r,t.dotDotDotToken)||c(r,t.expression);case 267:return c(r,t.tagName);case 175:case 176:case 292:case 296:case 295:case 297:case 299:return c(r,t.type);case 298:return u(r,n,t.parameters)||c(r,t.type);case 301:return u(r,n,t.tags);case 310:case 316:return c(r,t.tagName)||(t.isNameFirst?c(r,t.name)||c(r,t.typeExpression):c(r,t.typeExpression)||c(r,t.name));case 306:return c(r,t.tagName);case 305:return c(r,t.tagName)||c(r,t.class);case 314:return c(r,t.tagName)||c(r,t.constraint)||u(r,n,t.typeParameters);case 315:return c(r,t.tagName)||(t.typeExpression&&292===t.typeExpression.kind?c(r,t.typeExpression)||c(r,t.fullName):c(r,t.fullName)||c(r,t.typeExpression));case 308:return c(r,t.tagName)||c(r,t.fullName)||c(r,t.typeExpression);case 311:case 313:case 312:case 309:return c(r,t.tagName)||c(r,t.typeExpression);case 303:return e.forEach(t.typeParameters,r)||e.forEach(t.parameters,r)||c(r,t.type);case 302:return e.forEach(t.jsDocPropertyTags,r);case 304:case 307:return c(r,t.tagName);case 319:return c(r,t.expression)}}function d(t){return e.fileExtensionIs(t,".d.ts")}function p(t,r){for(var n=[],i=0,a=e.getLeadingCommentRanges(r,0)||e.emptyArray;i<a.length;i++){var o=a[i];v(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 f(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,o,s){return 288===t?new(a||(a=e.objectAllocator.getSourceFileConstructor()))(t,o,s):75===t?new(i||(i=e.objectAllocator.getIdentifierConstructor()))(t,o,s):e.isNodeKind(t)?new(r||(r=e.objectAllocator.getNodeConstructor()))(t,o,s):new(n||(n=e.objectAllocator.getTokenConstructor()))(t,o,s)},e.isJSDocLikeText=l,e.forEachChild=_,e.createSourceFile=function(t,r,n,i,a){var s;return void 0===i&&(i=!1),e.performance.mark("beforeParse"),e.perfLogger.logStartParseSourceFile(t),s=100===n?o.parseSourceFile(t,r,n,void 0,i,6):o.parseSourceFile(t,r,n,void 0,i,a),e.perfLogger.logStopParseSourceFile(),e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),s},e.parseIsolatedEntityName=function(e,t){return o.parseIsolatedEntityName(e,t)},e.parseJsonText=function(e,t){return o.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=s.updateSourceFile(e,t,r,n);return i.flags|=3145728&e.flags,i},e.parseIsolatedJSDocComment=function(e,t,r){var n=o.JSDocParser.parseIsolatedJSDocComment(e,t,r);return n&&n.jsDoc&&o.fixupParentReferences(n.jsDoc),n},e.parseJSDocTypeExpressionForTests=function(e,t,r){return o.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)},function(t){var r,n,i,a,o,s,c,u,m,g,y,h,v,b,D,S,T,E,C=e.createScanner(99,!0),k=20480,N=!1;function A(t,r,n,i,a){void 0===n&&(n=2),P(r,n,i,6),(o=L(t,2,6,!1)).flags=D,ae();var c=re();if(1===ne())o.statements=Ee([],c,c),o.endOfFileToken=be();else{var u=Se(225);switch(ne()){case 22:u.expression=jr();break;case 105:case 90:case 99:u.expression=be();break;case 40:de((function(){return 8===ae()&&58!==ae()}))?u.expression=gr():u.expression=Jr();break;case 8:case 10:if(de((function(){return 58!==ae()}))){u.expression=ut();break}default:u.expression=Jr()}Ce(u),o.statements=Ee([u],c),o.endOfFileToken=ve(1,e.Diagnostics.Unexpected_token)}a&&M(o),o.nodeCount=g,o.identifierCount=h,o.identifiers=y,o.parseDiagnostics=s;var l=o;return w(),l}function F(e){return 4===e||2===e||1===e||6===e?1:0}function P(t,o,u,l){switch(r=e.objectAllocator.getNodeConstructor(),n=e.objectAllocator.getTokenConstructor(),i=e.objectAllocator.getIdentifierConstructor(),a=e.objectAllocator.getSourceFileConstructor(),m=t,c=u,s=[],v=0,y=e.createMap(),h=0,g=0,l){case 1:case 2:D=131072;break;case 6:D=33685504;break;default:D=0}N=!1,C.setText(m),C.setOnError(te),C.setScriptTarget(o),C.setLanguageVariant(F(l))}function w(){C.setText(""),C.setOnError(void 0),s=void 0,o=void 0,y=void 0,c=void 0,m=void 0,b=void 0}function I(t,r,n,i){var a=d(t);return a&&(D|=8388608),(o=L(t,r,i,a)).flags=D,ae(),p(o,m),f(o,(function(t,r,n){s.push(e.createFileDiagnostic(o,t,r,n))})),o.statements=Ye(0,an),e.Debug.assert(1===ne()),o.endOfFileToken=O(be()),function(t){t.externalModuleIndicator=e.forEach(t.statements,Hn)||function(e){return 2097152&e.flags?Yn(e):void 0}(t)}(o),o.nodeCount=g,o.identifierCount=h,o.identifiers=y,o.parseDiagnostics=s,n&&M(o),o}function O(t){e.Debug.assert(!t.jsDoc);var r=e.mapDefined(e.getJSDocCommentRanges(t,o.text),(function(e){return E.parseJSDocComment(t,e.pos,e.end-e.pos)}));return r.length&&(t.jsDoc=r),t}function M(t){var r=t;return void _(t,(function t(n){if(n.parent!==r){n.parent=r;var i=r;if(r=n,_(n,t),e.hasJSDocNodes(n))for(var a=0,o=n.jsDoc;a<o.length;a++){var s=o[a];s.parent=n,r=s,_(s,t)}r=i}}))}function L(t,r,n,i){var o=new a(288,0,m.length);return g++,o.text=m,o.bindDiagnostics=[],o.bindSuggestionDiagnostics=void 0,o.languageVersion=r,o.fileName=e.normalizePath(t),o.languageVariant=F(n),o.isDeclarationFile=i,o.scriptKind=n,o}function R(e,t){e?D|=t:D&=~t}function B(e){R(e,4096)}function j(e){R(e,8192)}function K(e){R(e,16384)}function J(e){R(e,32768)}function z(e,t){var r=e&D;if(r){R(!1,r);var n=t();return R(!0,r),n}return t()}function U(e,t){var r=e&~D;if(r){R(!0,r);var n=t();return R(!1,r),n}return t()}function V(e){return z(4096,e)}function q(e){return U(32768,e)}function W(e){return 0!=(D&e)}function G(){return W(8192)}function H(){return W(4096)}function Y(){return W(16384)}function X(){return W(32768)}function Q(e,t){Z(C.getTokenPos(),C.getTextPos(),e,t)}function $(t,r,n,i){var a=e.lastOrUndefined(s);a&&t===a.start||s.push(e.createFileDiagnostic(o,t,r,n,i)),N=!0}function Z(e,t,r,n){$(e,t-e,r,n)}function ee(e,t,r){Z(e.pos,e.end,t,r)}function te(e,t){$(C.getTextPos(),t,e)}function re(){return C.getStartPos()}function ne(){return u}function ie(){return u=C.scan()}function ae(){return e.isKeyword(u)&&(C.hasUnicodeEscape()||C.hasExtendedUnicodeEscape())&&Z(C.getTokenPos(),C.getTextPos(),e.Diagnostics.Keywords_cannot_contain_escape_characters),ie()}function oe(){return u=C.scanJsDocToken()}function se(){return u=C.reScanGreaterToken()}function ce(){return u=C.reScanLessThanToken()}function ue(){return u=C.scanJsxIdentifier()}function le(){return u=C.scanJsxToken()}function _e(t,r){var n=u,i=s.length,a=N,o=D,c=r?C.lookAhead(t):C.tryScan(t);return e.Debug.assert(o===D),c&&!r||(u=n,s.length=i,N=a),c}function de(e){return _e(e,!0)}function pe(e){return _e(e,!1)}function fe(){return 75===ne()||(120!==ne()||!G())&&((126!==ne()||!X())&&ne()>111)}function me(t,r,n){return void 0===n&&(n=!0),ne()===t?(n&&ae(),!0):(r?Q(r):Q(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function ge(e){return ne()===e&&(ae(),!0)}function ye(e){if(ne()===e)return be()}function he(e){if(ne()===e)return function(){var e=Se(ne());return oe(),Ce(e)}()}function ve(t,r,n){return ye(t)||ke(t,!1,r||e.Diagnostics._0_expected,n||e.tokenToString(t))}function be(){var e=Se(ne());return ae(),Ce(e)}function xe(){return 26===ne()||(19===ne()||1===ne()||C.hasPrecedingLineBreak())}function De(){return xe()?(26===ne()&&ae(),!0):me(26)}function Se(t,a){g++;var o=a>=0?a:C.getStartPos();return e.isNodeKind(t)||0===t?new r(t,o,o):75===t?new i(t,o,o):new n(t,o,o)}function Te(e,t){var r=Se(e,t);return 2&C.getTokenFlags()&&O(r),r}function Ee(e,t,r){var n=e.length,i=n>=1&&n<=4?e.slice():e;return i.pos=t,i.end=void 0===r?C.getStartPos():r,i}function Ce(e,t){return e.end=void 0===t?C.getStartPos():t,D&&(e.flags|=D),N&&(N=!1,e.flags|=65536),e}function ke(t,r,n,i){r?$(C.getStartPos(),0,n,i):n&&Q(n,i);var a=Se(t);return 75===t?a.escapedText="":(e.isLiteralKind(t)||e.isTemplateLiteralKind(t))&&(a.text=""),Ce(a)}function Ne(e){var t=y.get(e);return void 0===t&&y.set(e,t=e),t}function Ae(t,r){if(h++,t){var n=Se(75);return 75!==ne()&&(n.originalKeywordKind=ne()),n.escapedText=e.escapeLeadingUnderscores(Ne(C.getTokenValue())),ie(),Ce(n)}var i=1===ne(),a=C.isReservedWord(),o=C.getTokenText(),s=a?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return ke(75,i,r||s,o)}function Fe(e){return Ae(fe(),e)}function Pe(t){return Ae(e.tokenIsIdentifierOrKeyword(ne()),t)}function we(){return e.tokenIsIdentifierOrKeyword(ne())||10===ne()||8===ne()}function Ie(e){if(10===ne()||8===ne()){var t=ut();return t.text=Ne(t.text),t}return e&&22===ne()?function(){var e=Se(153);return me(22),e.expression=V(rr),me(23),Ce(e)}():Pe()}function Oe(){return Ie(!0)}function Me(e){return ne()===e&&pe(Re)}function Le(){return ae(),!C.hasPrecedingLineBreak()&&Be()}function Re(){switch(ne()){case 80:return 87===ae();case 88:return ae(),83===ne()?de(je):41!==ne()&&122!==ne()&&18!==ne()&&Be();case 83:return je();case 119:case 130:case 141:return ae(),Be();default:return Le()}}function Be(){return 22===ne()||18===ne()||41===ne()||25===ne()||we()}function je(){return ae(),79===ne()||93===ne()||113===ne()||121===ne()&&de(Qr)||125===ne()&&de($r)}function Ke(t,r){if(Qe(t))return!0;switch(t){case 0:case 1:case 3:return!(26===ne()&&r)&&rn();case 2:return 77===ne()||83===ne();case 4:return de(kt);case 5:return de(Cn)||26===ne()&&!r;case 6:return 22===ne()||we();case 12:switch(ne()){case 22:case 41:case 25:case 24:return!0;default:return we()}case 18:return we();case 9:return 22===ne()||25===ne()||we();case 7:return 18===ne()?de(Je):r?fe()&&!qe():er()&&!qe();case 8:return pn();case 10:return 27===ne()||25===ne()||pn();case 19:return fe();case 15:switch(ne()){case 27:case 24:return!0}case 11:return 25===ne()||tr();case 16:return vt(!1);case 17:return vt(!0);case 20:case 21:return 27===ne()||zt();case 22:return Rn();case 23:return e.tokenIsIdentifierOrKeyword(ne());case 13:return e.tokenIsIdentifierOrKeyword(ne())||18===ne();case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function Je(){if(e.Debug.assert(18===ne()),19===ae()){var t=ae();return 27===t||18===t||89===t||112===t}return!0}function ze(){return ae(),fe()}function Ue(){return ae(),e.tokenIsIdentifierOrKeyword(ne())}function Ve(){return ae(),e.tokenIsIdentifierOrKeywordOrGreaterThan(ne())}function qe(){return(112===ne()||89===ne())&&de(We)}function We(){return ae(),tr()}function Ge(){return ae(),zt()}function He(e){if(1===ne())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:return 19===ne();case 3:return 19===ne()||77===ne()||83===ne();case 7:return 18===ne()||89===ne()||112===ne();case 8:return function(){if(xe())return!0;if(dr(ne()))return!0;if(38===ne())return!0;return!1}();case 19:return 31===ne()||20===ne()||18===ne()||89===ne()||112===ne();case 11:return 21===ne()||26===ne();case 15:case 21:case 10:return 23===ne();case 17:case 16:case 18:return 21===ne()||23===ne();case 20:return 27!==ne();case 22:return 18===ne()||19===ne();case 13:return 31===ne()||43===ne();case 14:return 29===ne()&&de(zn);default:return!1}}function Ye(e,t){var r=v;v|=1<<e;for(var n=[],i=re();!He(e);)if(Ke(e,!1)){var a=Xe(e,t);n.push(a)}else if(Ze(e))break;return v=r,Ee(n,i)}function Xe(e,t){var r=Qe(e);return r?$e(r):t()}function Qe(t){if(c&&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)&&!N){var r=c.currentNode(C.getStartPos());if(!(e.nodeIsMissing(r)||r.intersectsChange||e.containsParseError(r)))if((25358336&r.flags)===D&&function(e,t){switch(t){case 5:return function(e){if(e)switch(e.kind){case 161:case 166:case 162:case 163:case 158:case 221:return!0;case 160:var t=e;return!(75===t.name.kind&&128===t.name.originalKeywordKind)}return!1}(e);case 2:return function(e){if(e)switch(e.kind){case 275:case 276:return!0}return!1}(e);case 0:case 1:case 3:return function(e){if(e)switch(e.kind){case 243:case 224:case 222:case 226:case 225:case 238:case 234:case 236:case 233:case 232:case 230:case 231:case 229:case 228:case 235:case 223:case 239:case 237:case 227:case 240:case 253:case 252:case 259:case 258:case 248:case 244:case 245:case 247:case 246:return!0}return!1}(e);case 6:return function(e){return 282===e.kind}(e);case 4:return function(e){if(e)switch(e.kind){case 165:case 159:case 166:case 157:case 164:return!0}return!1}(e);case 8:return function(e){if(241!==e.kind)return!1;return void 0===e.initializer}(e);case 17:case 16:return function(e){if(155!==e.kind)return!1;return void 0===e.initializer}(e)}return!1}(r,t))return r.jsDocCache&&(r.jsDocCache=void 0),r}}function $e(e){return C.setTextPos(e.end),ae(),e}function Ze(t){return Q(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(v&1<<e&&(Ke(e,!0)||He(e)))return!0;return!1}()||(ae(),!1)}function et(e,t,r){var n=v;v|=1<<e;for(var i=[],a=re(),o=-1;;)if(Ke(e,!1)){var s=C.getStartPos();if(i.push(Xe(e,t)),o=C.getTokenPos(),ge(27))continue;if(o=-1,He(e))break;me(27,tt(e)),r&&26===ne()&&!C.hasPrecedingLineBreak()&&ae(),s===C.getStartPos()&&ae()}else{if(He(e))break;if(Ze(e))break}v=n;var c=Ee(i,a);return o>=0&&(c.hasTrailingComma=!0),c}function tt(t){return 6===t?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function rt(){var e=Ee([],re());return e.isMissingList=!0,e}function nt(e,t,r,n){if(me(r)){var i=et(e,t);return me(n),i}return rt()}function it(e,t){for(var r=e?Pe(t):Fe(t),n=C.getStartPos();ge(24);){if(29===ne()){r.jsdocDotPos=n;break}n=C.getStartPos(),r=at(r,ot(e))}return r}function at(e,t){var r=Se(152,e.pos);return r.left=e,r.right=t,Ce(r)}function ot(t){if(C.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(ne())&&de(Xr))return ke(75,!0,e.Diagnostics.Identifier_expected);return t?Pe():Fe()}function st(){var t,r=Se(210);r.head=(t=lt(ne()),e.Debug.assert(15===t.kind,"Template head has wrong token kind"),t),e.Debug.assert(15===r.head.kind,"Template head has wrong token kind");var n=[],i=re();do{n.push(ct())}while(16===e.last(n).literal.kind);return r.templateSpans=Ee(n,i),Ce(r)}function ct(){var t,r,n=Se(220);return n.expression=V(rr),19===ne()?(u=C.reScanTemplateToken(),r=lt(ne()),e.Debug.assert(16===r.kind||17===r.kind,"Template fragment has wrong token kind"),t=r):t=ve(17,e.Diagnostics._0_expected,e.tokenToString(19)),n.literal=t,Ce(n)}function ut(){return lt(ne())}function lt(e){var t=Se(e);switch(t.text=C.getTokenValue(),e){case 14:case 15:case 16:case 17:var r=14===e||17===e,n=C.getTokenText();t.rawText=n.substring(1,n.length-(C.isUnterminated()?0:r?1:2))}return C.hasExtendedUnicodeEscape()&&(t.hasExtendedUnicodeEscape=!0),C.isUnterminated()&&(t.isUnterminated=!0),8===t.kind&&(t.numericLiteralFlags=1008&C.getTokenFlags()),ae(),Ce(t),t}function _t(){var t=Se(168);return t.typeName=it(!0,e.Diagnostics.Type_expected),C.hasPrecedingLineBreak()||29!==ce()||(t.typeArguments=nt(20,Qt,29,31)),Ce(t)}function dt(){var e=Se(182);return ae(),Ce(e)}function pt(e){var t=Se(293);return e?Vt(297,t):(ae(),Ce(t))}function ft(){var e=Se(155);return 103!==ne()&&98!==ne()||(e.name=Pe(),me(58)),e.type=mt(),Ce(e)}function mt(){C.setInJSDocType(!0);var e=ye(134);if(e){var t=Se(300,e.pos);e:for(;;)switch(ne()){case 19:case 1:case 27:case 5:break e;default:oe()}return C.setInJSDocType(!1),Ce(t)}var r=ye(25),n=Yt();if(C.setInJSDocType(!1),r){var i=Se(299,r.pos);i.type=n,n=Ce(i)}return 62===ne()?Vt(297,n):n}function gt(){var e=Se(154);return e.name=Fe(),ge(89)&&(zt()||!tr()?e.constraint=Qt():e.expression=yr()),ge(62)&&(e.default=Qt()),Ce(e)}function yt(){if(29===ne())return nt(19,gt,29,31)}function ht(){if(ge(58))return Qt()}function vt(t){return 25===ne()||pn()||e.isModifierKind(ne())||59===ne()||zt(!t)}function bt(){var t=Te(155);return 103===ne()?(t.name=Ae(!0),t.type=ht(),Ce(t)):(t.decorators=kn(),t.modifiers=Nn(),t.dotDotDotToken=ye(25),t.name=fn(),0===e.getFullWidth(t.name)&&!e.hasModifiers(t)&&e.isModifierKind(ne())&&ae(),t.questionToken=ye(57),t.type=ht(),t.initializer=nr(),Ce(t))}function xt(t,r,n){32&r||(n.typeParameters=yt());var i=function(e,t){if(!me(20))return e.parameters=rt(),!1;var r=G(),n=X();return j(!!(1&t)),J(!!(2&t)),e.parameters=32&t?et(17,ft):et(16,bt),j(r),J(n),me(21)}(n,r);return(!function(t,r){if(38===t)return me(t),!0;if(ge(58))return!0;if(r&&38===ne())return Q(e.Diagnostics._0_expected,e.tokenToString(58)),ae(),!0;return!1}(t,!!(4&r))||(n.type=Yt(),!function t(r){switch(r.kind){case 168:return e.nodeIsMissing(r.typeName);case 169:case 170:var n=r,i=n.parameters,a=n.type;return!!i.isMissingList||t(a);case 181:return t(r.type);default:return!1}}(n.type)))&&i}function Dt(){ge(27)||De()}function St(e){var t=Te(e);return 165===e&&me(98),xt(58,4,t),Dt(),Ce(t)}function Tt(){return 22===ne()&&de(Et)}function Et(){if(ae(),25===ne()||23===ne())return!0;if(e.isModifierKind(ne())){if(ae(),fe())return!0}else{if(!fe())return!1;ae()}return 58===ne()||27===ne()||57===ne()&&(ae(),58===ne()||27===ne()||23===ne())}function Ct(e){return e.kind=166,e.parameters=nt(16,bt,22,23),e.type=Zt(),Dt(),Ce(e)}function kt(){if(20===ne()||29===ne())return!0;for(var t=!1;e.isModifierKind(ne());)t=!0,ae();return 22===ne()||(we()&&(t=!0,ae()),!!t&&(20===ne()||29===ne()||57===ne()||58===ne()||27===ne()||xe()))}function Nt(){if(20===ne()||29===ne())return St(164);if(98===ne()&&de(At))return St(165);var e=Te(0);return e.modifiers=Nn(),Tt()?Ct(e):function(e){return e.name=Oe(),e.questionToken=ye(57),20===ne()||29===ne()?(e.kind=159,xt(58,4,e)):(e.kind=157,e.type=Zt(),62===ne()&&(e.initializer=nr())),Dt(),Ce(e)}(e)}function At(){return ae(),20===ne()||29===ne()}function Ft(){return 24===ae()}function Pt(){switch(ae()){case 20:case 29:case 24:return!0}return!1}function wt(){var e;return me(18)?(e=Ye(4,Nt),me(19)):e=rt(),e}function It(){return ae(),39===ne()||40===ne()?137===ae():(137===ne()&&ae(),22===ne()&&ze()&&96===ae())}function Ot(){var e=Se(185);return me(18),137!==ne()&&39!==ne()&&40!==ne()||(e.readonlyToken=be(),137!==e.readonlyToken.kind&&ve(137)),me(22),e.typeParameter=function(){var e=Se(154);return e.name=Fe(),me(96),e.constraint=Qt(),Ce(e)}(),me(23),57!==ne()&&39!==ne()&&40!==ne()||(e.questionToken=be(),57!==e.questionToken.kind&&ve(57)),e.type=Zt(),De(),me(19),Ce(e)}function Mt(){var e=re();if(ge(25)){var t=Se(176,e);return t.type=Qt(),Ce(t)}var r=Qt();return 4194304&D||295!==r.kind||r.pos!==r.type.pos||(r.kind=175),r}function Lt(){var e=be();return 24===ne()?void 0:e}function Rt(e){var t,r=Se(186);e&&((t=Se(206)).operator=40,ae());var n=105===ne()||90===ne()?be():lt(ne());return e&&(t.operand=n,Ce(t),n=t),r.literal=n,Ce(r)}function Bt(){return ae(),95===ne()}function jt(){o.flags|=1048576;var t=Se(187);return ge(107)&&(t.isTypeOf=!0),me(95),me(20),t.argument=Qt(),me(21),ge(24)&&(t.qualifier=it(!0,e.Diagnostics.Type_expected)),C.hasPrecedingLineBreak()||29!==ce()||(t.typeArguments=nt(20,Qt,29,31)),Ce(t)}function Kt(){return ae(),8===ne()||9===ne()}function Jt(){switch(ne()){case 124:case 147:case 142:case 139:case 150:case 143:case 127:case 145:case 136:case 140:return pe(Lt)||_t();case 41:return pt(!1);case 65:return pt(!0);case 60:C.reScanQuestionToken();case 57:return r=C.getStartPos(),ae(),27===ne()||19===ne()||21===ne()||31===ne()||62===ne()||51===ne()?Ce(t=Se(294,r)):((t=Se(295,r)).type=Qt(),Ce(t));case 93:return function(){if(de(Jn)){var e=Te(298);return ae(),xt(58,36,e),Ce(e)}var t=Se(168);return t.typeName=Pe(),Ce(t)}();case 53:return function(){var e=Se(296);return ae(),e.type=Jt(),Ce(e)}();case 14:case 10:case 8:case 9:case 105:case 90:return Rt();case 40:return de(Kt)?Rt(!0):_t();case 109:case 99:return be();case 103:var e=dt();return 132!==ne()||C.hasPrecedingLineBreak()?e:function(e){ae();var t=Se(167,e.pos);return t.parameterName=e,t.type=Qt(),Ce(t)}(e);case 107:return de(Bt)?jt():function(){var e=Se(171);return me(107),e.exprName=it(!0),Ce(e)}();case 18:return de(It)?Ot():function(){var e=Se(172);return e.members=wt(),Ce(e)}();case 22:return function(){var e=Se(174);return e.elementTypes=nt(21,Mt,22,23),Ce(e)}();case 20:return function(){var e=Se(181);return me(20),e.type=Qt(),me(21),Ce(e)}();case 95:return jt();case 123:return de(Xr)?function(){var e=Se(167);return e.assertsModifier=ve(123),e.parameterName=103===ne()?dt():Fe(),e.type=ge(132)?Qt():void 0,Ce(e)}():_t();default:return _t()}var t,r}function zt(e){switch(ne()){case 124:case 147:case 142:case 139:case 150:case 127:case 137:case 143:case 146:case 109:case 145:case 99:case 103:case 107:case 136:case 18:case 22:case 29:case 51:case 50:case 98:case 10:case 8:case 9:case 105:case 90:case 140:case 41:case 57:case 53:case 25:case 131:case 95:case 123:return!0;case 93:return!e;case 40:return!e&&de(Kt);case 20:return!e&&de(Ut);default:return fe()}}function Ut(){return ae(),21===ne()||vt(!1)||zt()}function Vt(e,t){ae();var r=Se(e,t.pos);return r.type=t,Ce(r)}function qt(){var e=ne();switch(e){case 133:case 146:case 137:return function(e){var t=Se(183);return me(e),t.operator=e,t.type=qt(),Ce(t)}(e);case 131:return function(){var e=Se(180);me(131);var t=Se(154);return t.name=Fe(),e.typeParameter=Ce(t),Ce(e)}()}return function(){for(var e=Jt();!C.hasPrecedingLineBreak();)switch(ne()){case 53:e=Vt(296,e);break;case 57:if(!(4194304&D)&&de(Ge))return e;e=Vt(295,e);break;case 22:var t;if(me(22),zt())(t=Se(184,e.pos)).objectType=e,t.indexType=Qt(),me(23),e=Ce(t);else(t=Se(173,e.pos)).elementType=e,me(23),e=Ce(t);break;default:return e}return e}()}function Wt(e,t,r){var n=C.getStartPos(),i=ge(r),a=t();if(ne()===r||i){for(var o=[a];ge(r);)o.push(t());var s=Se(e,n);s.types=Ee(o,n),a=Ce(s)}return a}function Gt(){return Wt(178,qt,50)}function Ht(){if(ae(),21===ne()||25===ne())return!0;if(function(){if(e.isModifierKind(ne())&&Nn(),fe()||103===ne())return ae(),!0;if(22===ne()||18===ne()){var t=s.length;return fn(),t===s.length}return!1}()){if(58===ne()||27===ne()||57===ne()||62===ne())return!0;if(21===ne()&&(ae(),38===ne()))return!0}return!1}function Yt(){var e=fe()&&pe(Xt),t=Qt();if(e){var r=Se(167,e.pos);return r.assertsModifier=void 0,r.parameterName=e,r.type=t,Ce(r)}return t}function Xt(){var e=Fe();if(132===ne()&&!C.hasPrecedingLineBreak())return ae(),e}function Qt(){return z(40960,$t)}function $t(e){if(29===ne()||20===ne()&&de(Ht)||98===ne())return function(){var e=re(),t=Te(ge(98)?170:169,e);return xt(38,4,t),Ce(t)}();var t=Wt(177,Gt,51);if(!e&&!C.hasPrecedingLineBreak()&&ge(89)){var r=Se(179,t.pos);return r.checkType=t,r.extendsType=$t(!0),me(57),r.trueType=$t(),me(58),r.falseType=$t(),Ce(r)}return t}function Zt(){return ge(58)?Qt():void 0}function er(){switch(ne()){case 103:case 101:case 99:case 105:case 90:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 93:case 79:case 98:case 43:case 67:case 75:return!0;case 95:return de(Pt);default:return fe()}}function tr(){if(er())return!0;switch(ne()){case 39:case 40:case 54:case 53:case 84:case 107:case 109:case 45:case 46:case 29:case 126:case 120:return!0;default:return!!function(){if(H()&&96===ne())return!1;return e.getBinaryOperatorPrecedence(ne())>0}()||fe()}}function rr(){var e=Y();e&&K(!1);for(var t,r=ir();t=ye(27);)r=fr(r,t,ir());return e&&K(!0),r}function nr(){return ge(62)?ir():void 0}function ir(){if(function(){if(120===ne())return!!G()||de(Zr);return!1}())return function(){var e=Se(211);return ae(),C.hasPrecedingLineBreak()||41!==ne()&&!tr()?Ce(e):(e.asteriskToken=ye(41),e.expression=ir(),Ce(e))}();var t=function(){var t=function(){if(20===ne()||29===ne()||125===ne())return de(or);if(38===ne())return 1;return 0}();if(0===t)return;var r=1===t?ur(!0):pe(sr);if(!r)return;var n=e.hasModifier(r,256),i=ne();return r.equalsGreaterThanToken=ve(38),r.body=38===i||18===i?lr(n):Fe(),Ce(r)}()||function(){if(125===ne()&&1===de(cr)){var e=An();return ar(_r(0),e)}return}();if(t)return t;var r=_r(0);return 75===r.kind&&38===ne()?ar(r):e.isLeftHandSideExpression(r)&&e.isAssignmentOperator(se())?fr(r,be(),ir()):function(t){var r=ye(57);if(!r)return t;var n=Se(209,t.pos);return n.condition=t,n.questionToken=r,n.whenTrue=z(k,ir),n.colonToken=ve(58),n.whenFalse=e.nodeIsPresent(n.colonToken)?ir():ke(75,!1,e.Diagnostics._0_expected,e.tokenToString(58)),Ce(n)}(r)}function ar(t,r){var n;e.Debug.assert(38===ne(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>"),r?(n=Se(201,r.pos)).modifiers=r:n=Se(201,t.pos);var i=Se(155,t.pos);return i.name=t,Ce(i),n.parameters=Ee([i],i.pos,i.end),n.equalsGreaterThanToken=ve(38),n.body=lr(!!r),O(Ce(n))}function or(){if(125===ne()){if(ae(),C.hasPrecedingLineBreak())return 0;if(20!==ne()&&29!==ne())return 0}var t=ne(),r=ae();if(20===t){if(21===r)switch(ae()){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)&&125!==r&&de(ze))return 1;if(!fe()&&103!==r)return 0;switch(ae()){case 58:return 1;case 57:return ae(),58===ne()||27===ne()||62===ne()||21===ne()?1:0;case 27:case 62:case 21:return 2}return 0}return e.Debug.assert(29===t),fe()?1===o.languageVariant?de((function(){var e=ae();if(89===e)switch(ae()){case 62:case 31:return!1;default:return!0}else if(27===e)return!0;return!1}))?1:0:2:0}function sr(){var t=C.getTokenPos();if(!b||!b.has(t.toString())){var r=ur(!1);return r||(b||(b=e.createMap())).set(t.toString(),!0),r}}function cr(){if(125===ne()){if(ae(),C.hasPrecedingLineBreak()||38===ne())return 0;var e=_r(0);if(!C.hasPrecedingLineBreak()&&75===e.kind&&38===ne())return 1}return 0}function ur(t){var r=Te(201);if(r.modifiers=An(),xt(58,e.hasModifier(r,256)?2:0,r)||t){var n=r.type&&e.isJSDocFunctionType(r.type);if(t||38===ne()||!n&&18===ne())return r}}function lr(e){return 18===ne()?qr(e?2:0):26===ne()||93===ne()||79===ne()||!rn()||18!==ne()&&93!==ne()&&79!==ne()&&59!==ne()&&tr()?e?q(ir):z(32768,ir):qr(16|(e?2:0))}function _r(e){return pr(e,yr())}function dr(e){return 96===e||151===e}function pr(t,r){for(;;){se();var n=e.getBinaryOperatorPrecedence(ne());if(!(42===ne()?n>=t:n>t))break;if(96===ne()&&H())break;if(122===ne()){if(C.hasPrecedingLineBreak())break;ae(),r=mr(r,Qt())}else r=fr(r,be(),_r(n))}return r}function fr(e,t,r){var n=Se(208,e.pos);return n.left=e,n.operatorToken=t,n.right=r,Ce(n)}function mr(e,t){var r=Se(216,e.pos);return r.expression=e,r.type=t,Ce(r)}function gr(){var e=Se(206);return e.operator=ne(),ae(),e.operand=hr(),Ce(e)}function yr(){if(function(){switch(ne()){case 39:case 40:case 54:case 53:case 84:case 107:case 109:case 126:return!1;case 29:if(1!==o.languageVariant)return!1;default:return!0}}()){var t=vr();return 42===ne()?pr(e.getBinaryOperatorPrecedence(ne()),t):t}var r=ne(),n=hr();if(42===ne()){var i=e.skipTrivia(m,n.pos),a=n.end;198===n.kind?Z(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):Z(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 hr(){switch(ne()){case 39:case 40:case 54:case 53:return gr();case 84:return function(){var e=Se(202);return ae(),e.expression=hr(),Ce(e)}();case 107:return function(){var e=Se(203);return ae(),e.expression=hr(),Ce(e)}();case 109:return function(){var e=Se(204);return ae(),e.expression=hr(),Ce(e)}();case 29:return function(){var e=Se(198);return me(29),e.type=Qt(),me(31),e.expression=hr(),Ce(e)}();case 126:if(126===ne()&&(X()||de(Zr)))return function(){var e=Se(205);return ae(),e.expression=hr(),Ce(e)}();default:return vr()}}function vr(){if(45===ne()||46===ne())return(t=Se(206)).operator=ne(),ae(),t.operand=br(),Ce(t);if(1===o.languageVariant&&29===ne()&&de(Ve))return Dr(!0);var t,r=br();return e.Debug.assert(e.isLeftHandSideExpression(r)),45!==ne()&&46!==ne()||C.hasPrecedingLineBreak()?r:((t=Se(207,r.pos)).operand=r,t.operator=ne(),ae(),Ce(t))}function br(){var t;if(95===ne())if(de(At))o.flags|=1048576,t=be();else if(de(Ft)){var r=C.getStartPos();ae(),ae();var n=Se(218,r);n.keywordToken=95,n.name=Pe(),t=Ce(n),o.flags|=2097152}else t=xr();else t=101===ne()?function(){var t=be();if(29===ne()){var r=re();void 0!==pe(Mr)&&Z(r,re(),e.Diagnostics.super_may_not_use_type_arguments)}if(20===ne()||24===ne()||22===ne())return t;var n=Se(193,t.pos);return n.expression=t,ve(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),n.name=ot(!0),Ce(n)}():xr();return function(t){for(;;){t=Pr(t,!0);var r=ye(28);if(29===ne()||47===ne()){var n=pe(Mr);if(n){if(wr()){t=Ir(t,r,n);continue}(i=Se(195,t.pos)).expression=t,i.questionDotToken=r,i.typeArguments=n,i.arguments=Or(),(r||32&t.flags)&&(i.flags|=32),t=Ce(i);continue}}else if(20===ne()){var i;(i=Se(195,t.pos)).expression=t,i.questionDotToken=r,i.arguments=Or(),(r||32&t.flags)&&(i.flags|=32),t=Ce(i);continue}if(r){var a=Se(193,t.pos);a.expression=t,a.questionDotToken=r,a.name=ke(75,!1,e.Diagnostics.Identifier_expected),a.flags|=32,t=Ce(a)}break}return t}(t)}function xr(){return Pr(Lr(),!0)}function Dr(t){var r,n=function(e){var t=C.getStartPos();if(me(29),31===ne()){var r=Se(269,t);return le(),Ce(r)}var n,i=Er(),a=Ln(),o=(s=Se(272),s.properties=Ye(13,kr),Ce(s));var s;31===ne()?(n=Se(266,t),le()):(me(43),e?me(31):(me(31,void 0,!1),le()),n=Se(265,t));return n.tagName=i,n.typeArguments=a,n.attributes=o,Ce(n)}(t);if(266===n.kind)(i=Se(264,n.pos)).openingElement=n,i.children=Tr(i.openingElement),i.closingElement=function(e){var t=Se(267);me(30),t.tagName=Er(),e?me(31):(me(31,void 0,!1),le());return Ce(t)}(t),x(i.openingElement.tagName,i.closingElement.tagName)||ee(i.closingElement,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(m,i.openingElement.tagName)),r=Ce(i);else if(269===n.kind){var i;(i=Se(268,n.pos)).openingFragment=n,i.children=Tr(i.openingFragment),i.closingFragment=function(t){var r=Se(270);me(30),e.tokenIsIdentifierOrKeyword(ne())&&ee(Er(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment);t?me(31):(me(31,void 0,!1),le());return Ce(r)}(t),r=Ce(i)}else e.Debug.assert(265===n.kind),r=n;if(t&&29===ne()){var a=pe((function(){return Dr(!0)}));if(a){Q(e.Diagnostics.JSX_expressions_must_have_one_parent_element);var o=Se(208,r.pos);return o.end=a.end,o.left=r,o.right=a,o.operatorToken=ke(27,!1),o.operatorToken.pos=o.operatorToken.end=o.right.pos,o}}return r}function Sr(t,r){switch(r){case 1:return void(e.isJsxOpeningFragment(t)?ee(t,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag):ee(t.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(m,t.tagName)));case 30:case 7:return;case 11:case 12:return function(){var e=Se(11);return e.text=C.getTokenValue(),e.containsOnlyTriviaWhiteSpaces=12===u,u=C.scanJsxToken(),Ce(e)}();case 18:return Cr(!1);case 29:return Dr(!1);default:return e.Debug.assertNever(r)}}function Tr(e){var t=[],r=re(),n=v;for(v|=16384;;){var i=Sr(e,u=C.reScanJsxToken());if(!i)break;t.push(i)}return v=n,Ee(t,r)}function Er(){ue();for(var e=103===ne()?be():Pe();ge(24);){var t=Se(193,e.pos);t.expression=e,t.name=ot(!0),e=Ce(t)}return e}function Cr(e){var t=Se(274);if(me(18))return 19!==ne()&&(t.dotDotDotToken=ye(25),t.expression=rr()),e?me(19):me(19,void 0,!1)&&le(),Ce(t)}function kr(){if(18===ne())return function(){var e=Se(273);return me(18),me(25),e.expression=rr(),me(19),Ce(e)}();ue();var e=Se(271);if(e.name=Pe(),62===ne())switch(u=C.scanJsxAttributeValue()){case 10:e.initializer=ut();break;default:e.initializer=Cr(!0)}return Ce(e)}function Nr(){return ae(),e.tokenIsIdentifierOrKeyword(ne())||22===ne()||wr()}function Ar(e,t){var r=Se(193,e.pos);return r.expression=e,r.questionDotToken=t,r.name=ot(!0),(t||32&e.flags)&&(r.flags|=32),Ce(r)}function Fr(t,r){var n=Se(194,t.pos);if(n.expression=t,n.questionDotToken=r,23===ne())n.argumentExpression=ke(75,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var i=V(rr);e.isStringOrNumericLiteralLike(i)&&(i.text=Ne(i.text)),n.argumentExpression=i}return me(23),(r||32&t.flags)&&(n.flags|=32),Ce(n)}function Pr(t,r){for(;;){var n=void 0,i=!1;if(r&&28===ne()&&de(Nr)?(n=ve(28),i=e.tokenIsIdentifierOrKeyword(ne())):i=ge(24),i)t=Ar(t,n);else if(n||53!==ne()||C.hasPrecedingLineBreak())if(!n&&Y()||!ge(22)){if(!wr())return t;t=Ir(t,n,void 0)}else t=Fr(t,n);else{ae();var a=Se(217,t.pos);a.expression=t,t=Ce(a)}}}function wr(){return 14===ne()||15===ne()}function Ir(e,t,r){var n=Se(197,e.pos);return n.tag=e,n.questionDotToken=t,n.typeArguments=r,n.template=14===ne()?ut():st(),(t||32&e.flags)&&(n.flags|=32),Ce(n)}function Or(){me(20);var e=et(11,Br);return me(21),e}function Mr(){if(29===ce()){ae();var e=et(20,Qt);if(me(31))return e&&function(){switch(ne()){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 Lr(){switch(ne()){case 8:case 9:case 10:case 14:return ut();case 103:case 101:case 99:case 105:case 90:return be();case 20:return function(){var e=Te(199);return me(20),e.expression=V(rr),me(21),Ce(e)}();case 22:return jr();case 18:return Jr();case 125:if(!de($r))break;return zr();case 79:return wn(Te(0),213);case 93:return zr();case 98:return function(){var t=C.getStartPos();if(me(98),ge(24)){var r=Se(218,t);return r.keywordToken=98,r.name=Pe(),Ce(r)}var n,i=Lr();for(;;){i=Pr(i,!1),n=pe(Mr),wr()&&(e.Debug.assert(!!n,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),i=Ir(i,void 0,n),n=void 0);break}var a=Se(196,t);a.expression=i,a.typeArguments=n,(a.typeArguments||20===ne())&&(a.arguments=Or());return Ce(a)}();case 43:case 67:if(13===(u=C.reScanSlashToken()))return ut();break;case 15:return st()}return Fe(e.Diagnostics.Expression_expected)}function Rr(){return 25===ne()?function(){var e=Se(212);return me(25),e.expression=ir(),Ce(e)}():27===ne()?Se(214):ir()}function Br(){return z(k,Rr)}function jr(){var e=Se(191);return me(22),C.hasPrecedingLineBreak()&&(e.multiLine=!0),e.elements=et(15,Rr),me(23),Ce(e)}function Kr(){var e=Te(0);if(ye(25))return e.kind=281,e.expression=ir(),Ce(e);if(e.decorators=kn(),e.modifiers=Nn(),Me(130))return En(e,162);if(Me(141))return En(e,163);var t=ye(41),r=fe();if(e.name=Oe(),e.questionToken=ye(57),e.exclamationToken=ye(53),t||20===ne()||29===ne())return Dn(e,t);if(r&&58!==ne()){e.kind=280;var n=ye(62);n&&(e.equalsToken=n,e.objectAssignmentInitializer=V(ir))}else e.kind=279,me(58),e.initializer=V(ir);return Ce(e)}function Jr(){var e=Se(192);return me(18),C.hasPrecedingLineBreak()&&(e.multiLine=!0),e.properties=et(12,Kr,!0),me(19),Ce(e)}function zr(){var t=Y();t&&K(!1);var r=Te(200);r.modifiers=Nn(),me(93),r.asteriskToken=ye(41);var n=r.asteriskToken?1:0,i=e.hasModifier(r,256)?2:0;return r.name=n&&i?U(40960,Ur):n?function(e){return U(8192,e)}(Ur):i?q(Ur):Ur(),xt(58,n|i,r),r.body=qr(n|i),t&&K(!0),Ce(r)}function Ur(){return fe()?Fe():void 0}function Vr(e,t){var r=Se(222);return me(18,t)||e?(C.hasPrecedingLineBreak()&&(r.multiLine=!0),r.statements=Ye(1,an),me(19)):r.statements=rt(),Ce(r)}function qr(e,t){var r=G();j(!!(1&e));var n=X();J(!!(2&e));var i=Y();i&&K(!1);var a=Vr(!!(16&e),t);return i&&K(!0),j(r),J(n),a}function Wr(){var e=re();me(92);var t,r,n=ye(126);if(me(20),26!==ne()&&(t=108===ne()||114===ne()||80===ne()?yn(!0):U(4096,rr)),n?me(151):ge(151)){var i=Se(231,e);i.awaitModifier=n,i.initializer=t,i.expression=V(ir),me(21),r=i}else if(ge(96)){var a=Se(230,e);a.initializer=t,a.expression=V(rr),me(21),r=a}else{var o=Se(229,e);o.initializer=t,me(26),26!==ne()&&21!==ne()&&(o.condition=V(rr)),me(26),21!==ne()&&(o.incrementor=V(rr)),me(21),r=o}return r.statement=an(),Ce(r)}function Gr(e){var t=Se(e);return me(233===e?76:81),xe()||(t.label=Fe()),De(),Ce(t)}function Hr(){return 77===ne()?function(){var e=Se(275);return me(77),e.expression=V(rr),me(58),e.statements=Ye(3,an),Ce(e)}():function(){var e=Se(276);return me(83),me(58),e.statements=Ye(3,an),Ce(e)}()}function Yr(){var e=Se(239);return me(106),e.tryBlock=Vr(!1),e.catchClause=78===ne()?function(){var e=Se(278);me(78),ge(20)?(e.variableDeclaration=gn(),me(21)):e.variableDeclaration=void 0;return e.block=Vr(!1),Ce(e)}():void 0,e.catchClause&&91!==ne()||(me(91),e.finallyBlock=Vr(!1)),Ce(e)}function Xr(){return ae(),e.tokenIsIdentifierOrKeyword(ne())&&!C.hasPrecedingLineBreak()}function Qr(){return ae(),79===ne()&&!C.hasPrecedingLineBreak()}function $r(){return ae(),93===ne()&&!C.hasPrecedingLineBreak()}function Zr(){return ae(),(e.tokenIsIdentifierOrKeyword(ne())||8===ne()||9===ne()||10===ne())&&!C.hasPrecedingLineBreak()}function en(){for(;;)switch(ne()){case 108:case 114:case 80:case 93:case 79:case 87:return!0;case 113:case 144:return ae(),!C.hasPrecedingLineBreak()&&fe();case 134:case 135:return un();case 121:case 125:case 129:case 116:case 117:case 118:case 137:if(ae(),C.hasPrecedingLineBreak())return!1;continue;case 149:return ae(),18===ne()||75===ne()||88===ne();case 95:return ae(),10===ne()||41===ne()||18===ne()||e.tokenIsIdentifierOrKeyword(ne());case 88:if(ae(),62===ne()||41===ne()||18===ne()||83===ne()||122===ne())return!0;continue;case 119:ae();continue;default:return!1}}function tn(){return de(en)}function rn(){switch(ne()){case 59:case 26:case 18:case 108:case 114:case 93:case 79:case 87:case 94:case 85:case 110:case 92:case 81:case 76:case 100:case 111:case 102:case 104:case 106:case 82:case 78:case 91:return!0;case 95:return tn()||de(Pt);case 80:case 88:return tn();case 125:case 129:case 113:case 134:case 135:case 144:case 149:return!0;case 118:case 116:case 117:case 119:case 137:return tn()||!de(Xr);default:return tr()}}function nn(){return ae(),fe()||18===ne()||22===ne()}function an(){switch(ne()){case 26:return function(){var e=Se(223);return me(26),Ce(e)}();case 18:return Vr(!1);case 108:return vn(Te(241));case 114:if(de(nn))return vn(Te(241));break;case 93:return bn(Te(243));case 79:return Pn(Te(244));case 94:return function(){var e=Se(226);return me(94),me(20),e.expression=V(rr),me(21),e.thenStatement=an(),e.elseStatement=ge(86)?an():void 0,Ce(e)}();case 85:return function(){var e=Se(227);return me(85),e.statement=an(),me(110),me(20),e.expression=V(rr),me(21),ge(26),Ce(e)}();case 110:return function(){var e=Se(228);return me(110),me(20),e.expression=V(rr),me(21),e.statement=an(),Ce(e)}();case 92:return Wr();case 81:return Gr(232);case 76:return Gr(233);case 100:return function(){var e=Se(234);return me(100),xe()||(e.expression=V(rr)),De(),Ce(e)}();case 111:return function(){var e=Se(235);return me(111),me(20),e.expression=V(rr),me(21),e.statement=U(16777216,an),Ce(e)}();case 102:return function(){var e=Se(236);me(102),me(20),e.expression=V(rr),me(21);var t=Se(250);return me(18),t.clauses=Ye(2,Hr),me(19),e.caseBlock=Ce(t),Ce(e)}();case 104:return function(){var e=Se(238);return me(104),e.expression=C.hasPrecedingLineBreak()?void 0:V(rr),De(),Ce(e)}();case 106:case 78:case 91:return Yr();case 82:return function(){var e=Se(240);return me(82),De(),Ce(e)}();case 59:return sn();case 125:case 113:case 144:case 134:case 135:case 129:case 80:case 87:case 88:case 95:case 116:case 117:case 118:case 121:case 119:case 137:case 149:if(tn())return sn()}return function(){var e=Te(0),t=V(rr);return 75===t.kind&&ge(58)?(e.kind=237,e.label=t,e.statement=an()):(e.kind=225,e.expression=t,De()),Ce(e)}()}function on(e){return 129===e.kind}function sn(){var t=de((function(){return kn(),Nn()})),r=e.some(t,on);if(r){var n=U(8388608,(function(){var e=Qe(v);if(e)return $e(e)}));if(n)return n}var i=Te(0);if(i.decorators=kn(),i.modifiers=Nn(),r){for(var a=0,o=i.modifiers;a<o.length;a++){o[a].flags|=8388608}return U(8388608,(function(){return cn(i)}))}return cn(i)}function cn(t){switch(ne()){case 108:case 114:case 80:return vn(t);case 93:return bn(t);case 79:return Pn(t);case 113:return function(e){return e.kind=245,me(113),e.name=Fe(),e.typeParameters=yt(),e.heritageClauses=In(),e.members=wt(),Ce(e)}(t);case 144:return function(e){return e.kind=246,me(144),e.name=Fe(),e.typeParameters=yt(),me(62),e.type=Qt(),De(),Ce(e)}(t);case 87:return function(e){e.kind=247,me(87),e.name=Fe(),me(18)?(e.members=et(6,Bn),me(19)):e.members=rt();return Ce(e)}(t);case 149:case 134:case 135:return function(e){var t=0;if(149===ne())return Kn(e);if(ge(135))t|=16;else if(me(134),10===ne())return Kn(e);return function e(t,r){t.kind=248;var n=16&r;t.flags|=r;t.name=Fe();t.body=ge(24)?e(Se(0),4|n):jn();return Ce(t)}(e,t)}(t);case 95:return function(e){me(95);var t,r=C.getStartPos();if(fe()&&(t=Fe(),27!==ne()&&148!==ne()))return function(e,t){return e.kind=252,e.name=t,me(62),e.moduleReference=function(){return 138===ne()&&de(Jn)?function(){var e=Se(263);return me(138),me(20),e.expression=Un(),me(21),Ce(e)}():it(!1)}(),De(),Ce(e)}(e,t);e.kind=253,(t||41===ne()||18===ne())&&(e.importClause=function(e,t){var r=Se(254,t);e&&(r.name=e);r.name&&!ge(27)||(r.namedBindings=41===ne()?(n=Se(255),me(41),me(122),n.name=Fe(),Ce(n)):Vn(256));var n;return Ce(r)}(t,r),me(148));return e.moduleSpecifier=Un(),De(),Ce(e)}(t);case 88:switch(ae(),ne()){case 83:case 62:return function(e){e.kind=258,ge(62)?e.isExportEquals=!0:me(83);return e.expression=ir(),De(),Ce(e)}(t);case 122:return function(e){return e.kind=251,me(122),me(135),e.name=Fe(),De(),Ce(e)}(t);default:return function(e){e.kind=259,ge(41)?(me(148),e.moduleSpecifier=Un()):(e.exportClause=Vn(260),(148===ne()||10===ne()&&!C.hasPrecedingLineBreak())&&(me(148),e.moduleSpecifier=Un()));return De(),Ce(e)}(t)}default:if(t.decorators||t.modifiers){var r=ke(262,!0,e.Diagnostics.Declaration_expected);return r.pos=t.pos,r.decorators=t.decorators,r.modifiers=t.modifiers,Ce(r)}return}}function un(){return ae(),!C.hasPrecedingLineBreak()&&(fe()||10===ne())}function ln(e,t){if(18===ne()||!xe())return qr(e,t);De()}function _n(){if(27===ne())return Se(214);var e=Se(190);return e.dotDotDotToken=ye(25),e.name=fn(),e.initializer=nr(),Ce(e)}function dn(){var e=Se(190);e.dotDotDotToken=ye(25);var t=fe(),r=Oe();return t&&58!==ne()?e.name=r:(me(58),e.propertyName=r,e.name=fn()),e.initializer=nr(),Ce(e)}function pn(){return 18===ne()||22===ne()||fe()}function fn(){return 22===ne()?function(){var e=Se(189);return me(22),e.elements=et(10,_n),me(23),Ce(e)}():18===ne()?function(){var e=Se(188);return me(18),e.elements=et(9,dn),me(19),Ce(e)}():Fe()}function mn(){return gn(!0)}function gn(e){var t=Se(241);return t.name=fn(),e&&75===t.name.kind&&53===ne()&&!C.hasPrecedingLineBreak()&&(t.exclamationToken=be()),t.type=Zt(),dr(ne())||(t.initializer=nr()),Ce(t)}function yn(t){var r=Se(242);switch(ne()){case 108:break;case 114:r.flags|=1;break;case 80:r.flags|=2;break;default:e.Debug.fail()}if(ae(),151===ne()&&de(hn))r.declarations=rt();else{var n=H();B(t),r.declarations=et(8,t?gn:mn),B(n)}return Ce(r)}function hn(){return ze()&&21===ae()}function vn(e){return e.kind=224,e.declarationList=yn(!1),De(),Ce(e)}function bn(t){t.kind=243,me(93),t.asteriskToken=ye(41),t.name=e.hasModifier(t,512)?Ur():Fe();var r=t.asteriskToken?1:0,n=e.hasModifier(t,256)?2:0;return xt(58,r|n,t),t.body=ln(r|n,e.Diagnostics.or_expected),Ce(t)}function xn(t){return pe((function(){if(128===ne()?me(128):10===ne()&&20===de(ae)?pe((function(){var e=ut();return"constructor"===e.text?e:void 0})):void 0)return t.kind=161,xt(58,0,t),t.body=ln(0,e.Diagnostics.or_expected),Ce(t)}))}function Dn(t,r,n){t.kind=160,t.asteriskToken=r;var i=r?1:0,a=e.hasModifier(t,256)?2:0;return xt(58,i|a,t),t.body=ln(i|a,n),Ce(t)}function Sn(t){return t.kind=158,t.questionToken||53!==ne()||C.hasPrecedingLineBreak()||(t.exclamationToken=be()),t.type=Zt(),t.initializer=e.hasModifier(t,32)?V(nr):z(12288,nr),De(),Ce(t)}function Tn(t){var r=ye(41);return t.name=Oe(),t.questionToken=ye(57),r||20===ne()||29===ne()?Dn(t,r,e.Diagnostics.or_expected):Sn(t)}function En(e,t){return e.kind=t,e.name=Oe(),xt(58,0,e),e.body=ln(0),Ce(e)}function Cn(){var t;if(59===ne())return!0;for(;e.isModifierKind(ne());){if(t=ne(),e.isClassMemberModifier(t))return!0;ae()}if(41===ne())return!0;if(we()&&(t=ne(),ae()),22===ne())return!0;if(void 0!==t){if(!e.isKeyword(t)||141===t||130===t)return!0;switch(ne()){case 20:case 29:case 53:case 58:case 62:case 57:return!0;default:return xe()}}return!1}function kn(){for(var e,t=re();;){var r=re();if(!ge(59))break;var n=Se(156,r);n.expression=U(16384,br),Ce(n),(e||(e=[])).push(n)}return e&&Ee(e,t)}function Nn(t){for(var r,n=re();;){var i=C.getStartPos(),a=ne();if(80===ne()&&t){if(!pe(Le))break}else if(!e.isModifierKind(ne())||!pe(Re))break;var o=Ce(Se(a,i));(r||(r=[])).push(o)}return r&&Ee(r,n)}function An(){var e;if(125===ne()){var t=C.getStartPos(),r=ne();ae(),e=Ee([Ce(Se(r,t))],t)}return e}function Fn(){if(26===ne()){var t=Se(221);return ae(),Ce(t)}var r=Te(0);if(r.decorators=kn(),r.modifiers=Nn(!0),Me(130))return En(r,162);if(Me(141))return En(r,163);if(128===ne()||10===ne()){var n=xn(r);if(n)return n}if(Tt())return Ct(r);if(e.tokenIsIdentifierOrKeyword(ne())||10===ne()||8===ne()||41===ne()||22===ne()){if(r.modifiers&&e.some(r.modifiers,on)){for(var i=0,a=r.modifiers;i<a.length;i++){a[i].flags|=8388608}return U(8388608,(function(){return Tn(r)}))}return Tn(r)}return r.decorators||r.modifiers?(r.name=ke(75,!0,e.Diagnostics.Declaration_expected),Sn(r)):e.Debug.fail("Should not have attempted to parse class member declaration.")}function Pn(e){return wn(e,244)}function wn(e,t){return e.kind=t,me(79),e.name=!fe()||112===ne()&&de(Ue)?void 0:Fe(),e.typeParameters=yt(),e.heritageClauses=In(),me(18)?(e.members=Ye(5,Fn),me(19)):e.members=rt(),Ce(e)}function In(){if(Rn())return Ye(22,On)}function On(){var t=ne();e.Debug.assert(89===t||112===t);var r=Se(277);return r.token=t,ae(),r.types=et(7,Mn),Ce(r)}function Mn(){var e=Se(215);return e.expression=br(),e.typeArguments=Ln(),Ce(e)}function Ln(){return 29===ne()?nt(20,Qt,29,31):void 0}function Rn(){return 89===ne()||112===ne()}function Bn(){var e=Te(282);return e.name=Oe(),e.initializer=V(nr),Ce(e)}function jn(){var e=Se(249);return me(18)?(e.statements=Ye(1,an),me(19)):e.statements=rt(),Ce(e)}function Kn(e){return e.kind=248,149===ne()?(e.name=Fe(),e.flags|=1024):(e.name=ut(),e.name.text=Ne(e.name.text)),18===ne()?e.body=jn():De(),Ce(e)}function Jn(){return 20===ae()}function zn(){return 43===ae()}function Un(){if(10===ne()){var e=ut();return e.text=Ne(e.text),e}return rr()}function Vn(e){var t=Se(e);return t.elements=nt(23,256===e?Wn:qn,18,19),Ce(t)}function qn(){return Gn(261)}function Wn(){return Gn(257)}function Gn(t){var r=Se(t),n=e.isKeyword(ne())&&!fe(),i=C.getTokenPos(),a=C.getTextPos(),o=Pe();return 122===ne()?(r.propertyName=o,me(122),n=e.isKeyword(ne())&&!fe(),i=C.getTokenPos(),a=C.getTextPos(),r.name=Pe()):r.name=o,257===t&&n&&Z(i,a,e.Diagnostics.Identifier_expected),Ce(r)}function Hn(t){return e.hasModifier(t,1)||252===t.kind&&263===t.moduleReference.kind||253===t.kind||258===t.kind||259===t.kind?t:void 0}function Yn(t){return function(t){return e.isMetaProperty(t)&&95===t.keywordToken&&"meta"===t.name.escapedText}(t)?t:_(t,Yn)}t.parseSourceFile=function(t,r,n,i,a,o){if(void 0===a&&(a=!1),6===(o=e.ensureScriptKind(t,o))){var s=A(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}P(r,n,i,o);var c=I(t,n,a,o);return w(),c},t.parseIsolatedEntityName=function(e,t){P(e,t,void 0,1),ae();var r=it(!0),n=1===ne()&&!s.length;return w(),n?r:void 0},t.parseJsonText=A,t.fixupParentReferences=M,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"}(S||(S={})),function(e){e[e.False=0]="False",e[e.True=1]="True",e[e.Unknown=2]="Unknown"}(T||(T={})),function(t){function r(t){var r,n=Se(292),i=(t?ge:me)(18);return n.type=U(4194304,mt),t&&!i||(r=19,ne()===r?oe():Q(e.Diagnostics._0_expected,e.tokenToString(r))),M(n),Ce(n)}var n,i;function a(t,n){void 0===t&&(t=0);var i=m,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),l(i,t)){var o,s,c,u=[];return C.scanRange(t+3,n-5,(function(){var e,r,n=1,l=t-Math.max(i.lastIndexOf("\n",t),0)+4;function p(t){e||(e=l),u.push(t),l+=t.length}for(oe();I(5););I(4)&&(n=0,l=0);e:for(;;){switch(ne()){case 59:0===n||1===n?(d(u),b(y(l)),n=0,e=void 0):p(C.getTokenText());break;case 4:u.push(C.getTokenText()),n=0,l=0;break;case 41:var f=C.getTokenText();1===n||2===n?(n=2,p(f)):(n=1,l+=f.length);break;case 5:var m=C.getTokenText();2===n?u.push(m):void 0!==e&&l+m.length>e&&u.push(m.slice(e-l-1)),l+=m.length;break;case 1:break e;default:n=2,p(C.getTokenText())}oe()}return _(u),d(u),(r=Se(301,t)).tags=o&&Ee(o,s,c),r.comment=u.length?u.join(""):void 0,Ce(r,a)}))}function _(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(oe(),1===ne())return!0;if(5!==ne()&&4!==ne())return!1}}function f(){if(5!==ne()&&4!==ne()||!de(p))for(;5===ne()||4===ne();)oe()}function g(){if((5===ne()||4===ne())&&de(p))return"";for(var e=C.hasPrecedingLineBreak(),t=!1,r="";e&&41===ne()||5===ne()||4===ne();)r+=C.getTokenText(),4===ne()?(e=!0,t=!0,r=""):41===ne()&&(e=!1),oe();return t?r:""}function y(t){e.Debug.assert(59===ne());var n=C.getTokenPos();oe();var i,a=O(void 0),s=g();switch(a.escapedText){case"author":i=function(e,t,r){var n=Se(306,e);n.tagName=t;var i=pe((function(){return function(){var e=[],t=!1,r=!1,n=C.getToken();e:for(;;){switch(n){case 75:case 5:case 24:case 59:e.push(C.getTokenText());break;case 29:if(t||r)return;t=!0,e.push(C.getTokenText());break;case 31:if(!t||r)return;r=!0,e.push(C.getTokenText()),C.setTextPos(C.getTokenPos()+1);break e;case 4:case 1:break e}n=oe()}if(t&&r)return 0===e.length?void 0:e.join("")}()}));if(!i)return Ce(n);if(n.comment=i,de((function(){return 4!==ae()}))){var a=v(r);a&&(n.comment+=a)}return Ce(n)}(n,a,t);break;case"augments":case"extends":i=function(e,t){var r=Se(305,e);return r.tagName=t,r.class=function(){var e=ge(18),t=Se(215);t.expression=function(){var e=O();for(;ge(24);){var t=Se(193,e.pos);t.expression=e,t.name=O(),e=Ce(t)}return e}(),t.typeArguments=Ln();var r=Ce(t);e&&me(19);return r}(),Ce(r)}(n,a);break;case"class":case"constructor":i=function(e,t){var r=Se(307,e);return r.tagName=t,Ce(r)}(n,a);break;case"this":i=function(e,t){var n=Se(312,e);return n.tagName=t,n.typeExpression=r(!0),f(),Ce(n)}(n,a);break;case"enum":i=function(e,t){var n=Se(309,e);return n.tagName=t,n.typeExpression=r(!0),f(),Ce(n)}(n,a);break;case"arg":case"argument":case"param":return T(n,a,2,t);case"return":case"returns":i=function(t,r){e.some(o,e.isJSDocReturnTag)&&Z(r.pos,C.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var n=Se(311,t);return n.tagName=r,n.typeExpression=x(),Ce(n)}(n,a);break;case"template":i=function(t,n){var i;18===ne()&&(i=r());var a=[],o=re();do{f();var s=Se(154);s.name=O(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),Ce(s),f(),a.push(s)}while(I(27));var c=Se(314,t);return c.tagName=n,c.constraint=i,c.typeParameters=Ee(a,o),Ce(c),c}(n,a);break;case"type":i=E(n,a);break;case"typedef":i=function(t,r,n){var i=x();g();var a,o=Se(315,t);if(o.tagName=r,o.fullName=k(),o.name=N(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=pe((function(){return F(n)}));)if(c||(c=Se(302,t)),313===s.kind){if(u)break;u=s}else c.jsDocPropertyTags=e.append(c.jsDocPropertyTags,s);c&&(i&&173===i.type.kind&&(c.isArrayType=!0),o.typeExpression=u&&u.typeExpression&&!S(u.typeExpression.type)?u.typeExpression:Ce(c),a=o.typeExpression.end)}return Ce(o,a||void 0!==o.comment?C.getStartPos():(o.fullName||o.typeExpression||o.tagName).end)}(n,a,t);break;case"callback":i=function(t,r,n){var i,a=Se(308,t);a.tagName=r,a.fullName=k(),a.name=N(a.fullName),f(),a.comment=v(n);var o=Se(303,t);o.parameters=[];for(;i=pe((function(){return P(4,n)}));)o.parameters=e.append(o.parameters,i);var s=pe((function(){if(I(59)){var e=y(n);if(e&&311===e.kind)return e}}));s&&(o.type=s);return a.typeExpression=Ce(o),Ce(a)}(n,a,t);break;default:i=function(e,t){var r=Se(304,e);return r.tagName=t,Ce(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}r&&(o(r),a=2);var s=ne();e:for(;;){switch(s){case 4:a>=1&&(a=0,i.push(C.getTokenText())),t=0;break;case 59:if(3===a){i.push(C.getTokenText());break}C.setTextPos(C.getTextPos()-1);case 1:break e;case 5:if(2===a||3===a)o(C.getTokenText());else{var c=C.getTokenText();void 0!==n&&t+c.length>n&&i.push(c.slice(n-t)),t+=c.length}break;case 18:a=2,de((function(){return 59===oe()&&e.tokenIsIdentifierOrKeyword(oe())&&"link"===C.getTokenText()}))&&(o(C.getTokenText()),oe(),o(C.getTokenText()),oe()),o(C.getTokenText());break;case 61:a=3===a?2:3,o(C.getTokenText());break;case 41:if(0===a){a=1,t+=1;break}default:3!==a&&(a=2),o(C.getTokenText())}s=oe()}return _(i),d(i),0===i.length?void 0:i.join("")}function b(e){e&&(o?o.push(e):(o=[e],s=e.pos),c=e.end)}function x(){return g(),18===ne()?r():void 0}function D(){var t=I(22);t&&f();var r,n=I(61),i=function(){var e=O();ge(22)&&me(23);for(;ge(24);){var t=O();ge(22)&&me(23),e=at(e,t)}return e}();return n&&(he(r=61)||ke(r,!1,e.Diagnostics._0_expected,e.tokenToString(r))),t&&(f(),ye(62)&&rr(),me(23)),{name:i,isBracketed:t}}function S(t){switch(t.kind){case 140:return!0;case 173:return S(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText}}function T(t,r,n,i){var a=x(),o=!a;g();var s=D(),c=s.name,u=s.isBracketed;f(),o&&(a=x());var l=Se(1===n?316:310,t),_=v(i+C.getStartPos()-t),d=4!==n&&function(t,r,n,i){if(t&&S(t.type)){for(var a=Se(292,C.getTokenPos()),o=void 0,s=void 0,c=C.getStartPos(),u=void 0;o=pe((function(){return P(n,i,r)}));)310!==o.kind&&316!==o.kind||(u=e.append(u,o));if(u)return(s=Se(302,c)).jsDocPropertyTags=u,173===t.type.kind&&(s.isArrayType=!0),a.type=Ce(s),Ce(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=_,Ce(l)}function E(t,n){e.some(o,e.isJSDocTypeTag)&&Z(n.pos,C.getTokenPos(),e.Diagnostics._0_tag_already_specified,n.escapedText);var i=Se(313,t);return i.tagName=n,i.typeExpression=r(!0),Ce(i)}function k(t){var r=C.getTokenPos();if(e.tokenIsIdentifierOrKeyword(ne())){var n=O();if(ge(24)){var i=Se(248,r);return t&&(i.flags|=4),i.name=n,i.body=k(!0),Ce(i)}return t&&(n.isInJSDocNamespace=!0),n}}function N(t){if(t)for(var r=t;;){if(e.isIdentifier(r)||!r.body)return e.isIdentifier(r)?r:r.name;r=r.body}}function A(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 F(e){return P(1,e)}function P(t,r,n){for(var i=!0,a=!1;;)switch(oe()){case 59:if(i){var o=w(t,r);return!(o&&(310===o.kind||316===o.kind)&&4!==t&&n&&(e.isIdentifier(o.name)||!A(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 w(t,r){e.Debug.assert(59===ne());var n=C.getStartPos();oe();var i,a=O();switch(f(),a.escapedText){case"type":return 1===t&&E(n,a);case"prop":case"property":i=1;break;case"arg":case"argument":case"param":i=6;break;default:return!1}return!!(t&i)&&T(n,a,t,r)}function I(e){return ne()===e&&(oe(),!0)}function O(t){if(!e.tokenIsIdentifierOrKeyword(ne()))return ke(75,!t,t||e.Diagnostics.Identifier_expected);h++;var r=C.getTokenPos(),n=C.getTextPos(),i=Se(75,r);return 75!==ne()&&(i.originalKeywordKind=ne()),i.escapedText=e.escapeLeadingUnderscores(Ne(C.getTokenValue())),Ce(i,n),oe(),i}}t.parseJSDocTypeExpressionForTests=function(e,t,n){P(e,99,void 0,1),o=L("file.js",99,1,!1),C.setText(e,t,n),u=C.scan();var i=r(),a=s;return w(),i?{jsDocTypeExpression:i,diagnostics:a}:void 0},t.parseJSDocTypeExpression=r,t.parseIsolatedJSDocComment=function(e,t,r){P(e,99,void 0,1),o={languageVariant:0,text:e};var n=U(4194304,(function(){return a(t,r)})),i=s;return w(),n?{jsDoc:n,diagnostics:i}:void 0},t.parseJSDocComment=function(e,t,r){var n,i=u,c=s.length,l=N,_=U(4194304,(function(){return a(t,r)}));return _&&(_.parent=e),131072&D&&(o.jsDocDiagnostics||(o.jsDocDiagnostics=[]),(n=o.jsDocDiagnostics).push.apply(n,s)),u=i,s.length=c,N=l,_},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={}))}(E=t.JSDocParser||(t.JSDocParser={}))}(o||(o={})),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)),_(t,u,l),e.hasJSDocNodes(t))for(var d=0,p=t.jsDoc;d<p.length;d++){u(p[d])}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])}_(t,i),e.Debug.assert(n<=t.end)}}function s(t,r){var n,i=t;if(_(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 _(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 o.parseSourceFile(t.fileName,n,t.languageVersion,void 0,!0,t.scriptKind);var d=t;e.Debug.assert(!d.hasBeenIncrementallyParsed),d.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&&(i=r[++n]),i&&i.pos===o||function(e){return r=void 0,n=-1,i=void 0,void _(t,a,o);function a(t){return e>=t.pos&&e<t.end&&(_(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 _(c,a,o),!0}}return!1}}(o)),a=o,e.Debug.assert(!i||i.pos===o),i}}}(t),m=function(t,r){for(var n=r.span.start,i=0;n>0&&i<=1;i++){var a=s(t,n);e.Debug.assert(a.pos<=n);var o=a.pos;n=Math.max(0,o-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,m,l),e.Debug.assert(m.span.start<=u.span.start),e.Debug.assert(e.textSpanEnd(m.span)===e.textSpanEnd(u.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(m))===e.textSpanEnd(e.textChangeRangeNewSpan(u)));var g=e.textChangeRangeNewSpan(m).length-m.span.length;return function(t,n,o,s,c,u,l,d){return void p(t);function p(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)r(t,!1,c,u,l,d);else{var m=t.end;if(m>=n){if(t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c),_(t,p,f),e.hasJSDocNodes(t))for(var g=0,y=t.jsDoc;g<y.length;g++){p(y[g])}a(t,d)}else e.Debug.assert(m<n)}}function f(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)r(t,!0,c,u,l,d);else{var a=t.end;if(a>=n){t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c);for(var _=0,f=t;_<f.length;_++){p(f[_])}}else e.Debug.assert(a<n)}}}(d,m.span.start,e.textSpanEnd(m.span),e.textSpanEnd(e.textChangeRangeNewSpan(m)),g,p,n,l),o.parseSourceFile(t.fileName,n,t.languageVersion,f,!0,t.scriptKind)},function(e){e[e.Value=-1]="Value"}(u||(u={}))}(s||(s={})),e.isDeclarationFileName=d,e.processCommentPragmas=p,e.processPragmasIntoFields=f;var m=e.createMap();function g(e){if(m.has(e))return m.get(e);var t=new RegExp("(\\s"+e+"\\s*=\\s*)('|\")(.+?)\\2","im");return m.set(e,t),t}var y=/^\/\/\/\s*<(\S+)\s.*?\/>/im,h=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function v(t,r,n){var i=2===r.kind&&y.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],_=g(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&&h.exec(n);if(p)return b(t,r,2,p);if(3===r.kind)for(var f=/\s*@(\S+)\s*(.*)\s*$/gim,m=void 0;m=f.exec(n);)b(t,r,4,m)}}function b(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 x(e,t){return e.kind===t.kind&&(75===e.kind?e.escapedText===t.escapedText:103===e.kind||e.name.escapedText===t.name.escapedText&&x(e.expression,t.expression))}e.tagNamesAreEquivalent=x}(s||(s={})),function(e){e.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean"};var n,i,a=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["esnext.array","lib.es2019.array.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.bigint","lib.esnext.bigint.d.ts"]];function o(e){return e&&void 0!==e.enableAutoDiscovery&&void 0===e.enable?{enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]}:e}function s(){return n||(n=c(e.optionDeclarations))}function c(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)})),{optionNameMap:r,shortOptionNames:n}}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 G(e,H(t||""),r)}function d(t,r,n){if(void 0===r&&(r=""),r=H(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(t,r,n,i){var a=r[0],o=r[1],s={},c=[],u=[];return l(n),{options:s,fileNames:c,errors:u};function l(r){for(var n=0;n<r.length;){var i=r[n];if(n++,64===i.charCodeAt(0))p(i.slice(1));else if(45===i.charCodeAt(0)){var l=g(t,i.slice(45===i.charCodeAt(1)?2:1),!0);if(l)if(l.isTSConfigOnly)u.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file,l.name));else switch(r[n]||"boolean"===l.type||u.push(e.createCompilerDiagnostic(o,l.name)),l.type){case"number":s[l.name]=parseInt(r[n]),n++;break;case"boolean":var f=r[n];s[l.name]="false"!==f,"false"!==f&&"true"!==f||n++;break;case"string":s[l.name]=r[n]||"",n++;break;case"list":var m=d(l,r[n],u);s[l.name]=m||[],m&&n++;break;default:s[l.name]=_(l,r[n],u),n++}else u.push(e.createCompilerDiagnostic(a,i))}else c.push(i)}}function p(t){var r=i?i(t):e.sys.readFile(t);if(r){for(var n=[],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?(n.push(r.substring(o+1,a)),a++):u.push(e.createCompilerDiagnostic(e.Diagnostics.Unterminated_quoted_string_in_response_file_0,t))}else{for(;r.charCodeAt(a)>32;)a++;n.push(r.substring(o,a))}}l(n)}else u.push(e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t))}}function m(e,t){return g(s,e,t)}function g(e,t,r){void 0===r&&(r=!1),t=t.toLowerCase();var n=e(),i=n.optionNameMap,a=n.shortOptionNames;if(r){var o=a.get(t);void 0!==o&&(t=o)}return i.get(t)}function y(t,r){var n=e.parseJsonText(t,r);return{config:x(n,n.parseDiagnostics),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function h(t,r){var n=v(t,r);return e.isString(n)?e.parseJsonText(t,n):{parseDiagnostics:[n]}}function v(t,r){var n;try{n=r(t)}catch(r){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,r.message)}return void 0===n?e.createCompilerDiagnostic(e.Diagnostics.The_specified_path_does_not_exist_Colon_0,t):n}function b(t){return e.arrayToMap(t,(function(e){return e.name}))}function x(e,t){return D(e,t,!0,void 0,void 0)}function D(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=0,f=i.properties;p<f.length;p++){var m=f[p];if(279===m.kind){m.questionToken&&r.push(e.createDiagnosticForNodeInSourceFile(t,m.questionToken,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?")),u(m.name)||r.push(e.createDiagnosticForNodeInSourceFile(t,m.name,e.Diagnostics.String_literal_with_double_quotes_expected));var g=e.getTextOfPropertyName(m.name),y=g&&e.unescapeLeadingUnderscores(g),h=y&&s?s.get(y):void 0;y&&l&&!h&&r.push(e.createDiagnosticForNodeInSourceFile(t,m.name,l,y));var v=c(m.initializer,h);if(void 0!==y&&(n&&(d[y]=v),a&&(_||o(s)))){var b=T(h,v);_?b&&a.onSetValidOptionKeyValueInParent(_,h,v):o(s)&&(b?a.onSetValidOptionKeyValueInRoot(y,m.name,v,m.initializer):h||a.onSetUnknownOptionKeyValueInRoot(y,m.name,v,m.initializer))}}else r.push(e.createDiagnosticForNodeInSourceFile(t,m,e.Diagnostics.Property_assignment_expected))}return d}function c(i,a){switch(i.kind){case 105:return g(a&&"boolean"!==a.type),!0;case 90:return g(a&&"boolean"!==a.type),!1;case 99:return g(a&&"extends"===a.name),null;case 10:u(i)||r.push(e.createDiagnosticForNodeInSourceFile(t,i,e.Diagnostics.String_literal_with_double_quotes_expected)),g(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 g(a&&"number"!==a.type),Number(i.text);case 206:if(40!==i.operator||8!==i.operand.kind)break;return g(a&&"number"!==a.type),-Number(i.operand.text);case 192:g(a&&"object"!==a.type);var d=i;if(a){var p=a;return s(d,p.elementOptions,p.extraKeyDiagnosticMessage,p.name)}return s(d,void 0,void 0,void 0);case 191:return g(a&&"list"!==a.type),f=i.elements,m=a&&a.element,n?e.filter(f.map((function(e){return c(e,m)})),(function(e){return void 0!==e})):f.forEach((function(e){return c(e,m)}))}var f,m;return void(a?g(!0):r.push(e.createDiagnosticForNodeInSourceFile(t,i,e.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal)));function g(n){n&&r.push(e.createDiagnosticForNodeInSourceFile(t,i,e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,a.name,S(a)))}}function u(r){return e.isStringLiteral(r)&&e.isStringDoubleQuoted(r,t)}}function S(t){return"list"===t.type?"Array":e.isString(t.type)?t.type:"string"}function T(t,r){if(t){if(P(r))return!0;if("list"===t.type)return e.isArray(r);var n=e.isString(t.type)?t.type:"string";return f(r)===n}return!1}function E(t){if(e.length(t)){if(1!==e.length(t))return t;if("**/*"!==t[0])return t}}function C(t,r){return e.forEachEntry(r,(function(e,r){if(e===t)return r}))}function k(t,r){var n=e.createMap(),i=s().optionNameMap,a=r&&e.createGetCanonicalFileName(r.useCaseSensitiveFileNames),o=function(o){if(e.hasProperty(t,o)){if(i.has(o)&&i.get(o).category===e.Diagnostics.Command_line_Options)return"continue";var s=t[o],c=i.get(o.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?n.set(o,s.map((function(e){return C(e,u)}))):n.set(o,C(s,u)):r&&c.isFilePath?n.set(o,e.getRelativePathFromFile(r.configFilePath,e.getNormalizedAbsolutePath(s,e.getDirectoryPath(r.configFilePath)),a)):n.set(o,s)}}};for(var c in t)o(c);return n}function N(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 A(e,t,r,n,i,a,o,s){return I(void 0,e,t,r,n,i,a,o,s)}function F(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function P(e){return null==e}function w(t,r){return e.getDirectoryPath(e.getNormalizedAbsolutePath(t,r))}function I(t,r,n,i,a,o,s,c,u){void 0===a&&(a={}),void 0===s&&(s=[]),void 0===c&&(c=[]),e.Debug.assert(void 0===t&&void 0!==r||void 0!==t&&void 0===r);var l,_=[],d=B(t,r,n,i,o,s,_,u),p=d.raw,f=e.extend(a,d.options||{});f.configFilePath=o&&e.normalizeSlashes(o),F(f,r);var m=function(){var t,a,u;if(e.hasProperty(p,"files")&&!P(p.files))if(e.isArray(p.files)){t=p.files;var d=!(e.hasProperty(p,"references")&&!P(p.references))||0===p.references.length,m=e.hasProperty(p,"extends");if(0===t.length&&d&&!m)if(r){var g=o||"tsconfig.json",y=e.Diagnostics.The_files_list_in_config_file_0_is_empty,h=e.firstDefined(e.getTsConfigPropArray(r,"files"),(function(e){return e.initializer})),b=h?e.createDiagnosticForNodeInSourceFile(r,h,y,g):e.createCompilerDiagnostic(y,g);_.push(b)}else v(e.Diagnostics.The_files_list_in_config_file_0_is_empty,o||"tsconfig.json")}else v(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"files","Array");e.hasProperty(p,"include")&&!P(p.include)&&(e.isArray(p.include)?a=p.include:v(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"include","Array"));if(e.hasProperty(p,"exclude")&&!P(p.exclude))e.isArray(p.exclude)?u=p.exclude:v(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"exclude","Array");else if(p.compilerOptions){var x=p.compilerOptions.outDir,D=p.compilerOptions.declarationDir;(x||D)&&(u=[x,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=ee(r,s,!1,u,"include"));n&&(_=ee(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=te(d,i);if(p){var f=p.key,m=p.flags,g=s[f];(void 0===g||g<m)&&(s[f]=m,1===m&&c.push(f))}}}for(var f in s)if(e.hasProperty(s,f))for(var y=0,h=c;y<h.length;y++){var v=h[y];f!==v&&e.containsPath(v,f,n,!i)&&delete s[f]}}return s}(l,_,i,o.useCaseSensitiveFileNames);return Z({filesSpecs:t,includeSpecs:r,excludeSpecs:n,validatedIncludeSpecs:l,validatedExcludeSpecs:_,wildcardDirectories:d},i,a,o,c)}(t,a,u,o?w(o,i):i,f,n,_,c,r);M(S,L(p),s)&&_.push(O(S.spec,o));if(e.hasProperty(p,"references")&&!P(p.references))if(e.isArray(p.references))for(var T=0,E=p.references;T<E.length;T++){var C=E[T];"string"!=typeof C.path?v(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(l||(l=[])).push({path:e.getNormalizedAbsolutePath(C.path,i),originalPath:C.path,prepend:C.prepend,circular:C.circular})}else v(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"references","Array");return S}(),g=m.fileNames,y=m.wildcardDirectories,h=m.spec;return{options:f,fileNames:g,projectReferences:l,typeAcquisition:d.typeAcquisition||z(),raw:p,errors:_,wildcardDirectories:y,compileOnSave:!!p.compileOnSave,configFileSpecs:h};function v(t,n,i){r||_.push(e.createCompilerDiagnostic(t,n,i))}}function O(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 M(e,t,r){return 0===e.fileNames.length&&t&&(!r||0===r.length)}function L(t){return!e.hasProperty(t,"files")&&!e.hasProperty(t,"references")}function R(e){return!!e.options}function B(r,n,a,o,s,c,u,l){o=e.normalizeSlashes(o);var _=e.getNormalizedAbsolutePath(s||"",o);if(c.indexOf(_)>=0)return u.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,t(c,[_]).join(" -> "))),{raw:r||x(n,u)};var d=r?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=J(t.compilerOptions,n,a,i),c=U(t.typeAcquisition||t.typingOptions,n,a,i);if(t.compileOnSave=function(t,r,n){if(!e.hasProperty(t,e.compileOnSaveCommandLineOption.name))return!1;var i=q(e.compileOnSaveCommandLineOption,t.compileOnSave,r,n);return"boolean"==typeof i&&i}(t,n,a),t.extends)if(e.isString(t.extends)){var u=i?w(i,n):n;o=j(t.extends,r,u,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,typeAcquisition:c,extendedConfigPath:o}}(r,a,o,s,u):function(t,r,n,a,o){var s,c,u,l=K(a),_={onSetValidOptionKeyValueInParent:function(t,r,i){e.Debug.assert("compilerOptions"===t||"typeAcquisition"===t||"typingOptions"===t),("compilerOptions"===t?l:"typeAcquisition"===t?s||(s=z(a)):c||(c=z(a)))[r.name]=function t(r,n,i){if(P(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 W(r,n,i)}(r,n,i)},onSetValidOptionKeyValueInRoot:function(i,s,c,l){switch(i){case"extends":var _=a?w(a,n):n;return void(u=j(c,r,_,o,(function(r,n){return e.createDiagnosticForNodeInSourceFile(t,l,r,n)})))}},onSetUnknownOptionKeyValueInRoot:function(r,n,i,a){"excludes"===r&&o.push(e.createDiagnosticForNodeInSourceFile(t,n,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},d=D(t,o,!0,(void 0===i&&(i={name:void 0,type:"object",elementOptions:b([{name:"compilerOptions",type:"object",elementOptions:b(e.optionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_compiler_option_0},{name:"typingOptions",type:"object",elementOptions:b(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"typeAcquisition",type:"object",elementOptions:b(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"extends",type:"string"},{name:"references",type:"list",element:{name:"references",type:"object"}},{name:"files",type:"list",element:{name:"files",type:"string"}},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},e.compileOnSaveCommandLineOption])}),i),_);s||(s=c?void 0!==c.enableAutoDiscovery?{enable:c.enableAutoDiscovery,include:c.include,exclude:c.exclude}:c:z(a));return{raw:d,options:l,typeAcquisition:s,extendedConfigPath:u}}(n,a,o,s,u);if(d.extendedConfigPath){c=c.concat([_]);var p=function(t,r,n,i,a,o,s){var c,u,l,_,d=n.useCaseSensitiveFileNames?r:e.toLowerCase(r);if(s&&(u=s.get(d)))l=u.extendedResult,_=u.extendedConfig;else{if(!(l=h(r,(function(e){return n.readFile(e)}))).parseDiagnostics.length){var p=e.getDirectoryPath(r);if(R(_=B(void 0,l,n,p,e.getBaseFileName(r),a,o,s))){var f=e.convertToRelativePath(p,i,e.identity),m=function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(f,t)},g=function(t){y[t]&&(y[t]=e.map(y[t],m))},y=_.raw;g("include"),g("exclude"),g("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 _}(n,d.extendedConfigPath,a,o,c,u,l);if(p&&R(p)){var f=p.raw,m=d.raw,g=function(e){var t=m[e]||f[e];t&&(m[e]=t)};g("include"),g("exclude"),g("files"),void 0===m.compileOnSave&&(m.compileOnSave=f.compileOnSave),d.options=e.assign({},p.options,d.options)}}return d}function j(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 K(t){return t&&"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function J(t,r,n,i){var a=K(i);return V(e.optionDeclarations,t,r,a,e.Diagnostics.Unknown_compiler_option_0,n),i&&(a.configFilePath=e.normalizeSlashes(i)),a}function z(t){return{enable:!!t&&"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function U(t,r,n,i){var a=z(i),s=o(t);return V(e.typeAcquisitionDeclarations,s,r,a,e.Diagnostics.Unknown_type_acquisition_option_0,n),a}function V(t,r,n,i,a,o){if(r){var s=b(t);for(var c in r){var u=s.get(c);u?i[u.name]=q(u,r[c],n,o):o.push(e.createCompilerDiagnostic(a,c))}}}function q(t,r,n,i){if(T(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 q(t.element,e,n,i)})),(function(e){return!!e}))}(t,r,n,i):e.isString(a)?W(t,n,r):G(t,r,i)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,S(t)))}function W(t,r,n){return t.isFilePath&&""===(n=e.getNormalizedAbsolutePath(n,r))&&(n="."),n}function G(e,t,r){if(!P(t)){var n=t.toLowerCase(),i=e.type.get(n);if(void 0!==i)return i;r.push(u(e))}}function H(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}e.libs=a.map((function(e){return e[0]})),e.libMap=e.createMapFromEntries(a),e.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message},{name:"help",shortName:"?",type:"boolean"},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen},{name:"listFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_files_part_of_the_compilation},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_generated_files_part_of_the_compilation},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Stylize_errors_and_messages_using_color_and_context_experimental},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Enable_tracing_of_the_name_resolution_process},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_diagnostic_information},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_verbose_diagnostic_information},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE_OR_DIRECTORY,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Generates_a_CPU_profile},{name:"incremental",shortName:"i",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Enable_incremental_compilation,transpileOptionValue:void 0},{name:"locale",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_locale_used_when_displaying_messages_to_the_user_e_g_en_us}],e.optionDeclarations=t(e.commonOptionsWithBuild,[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_all_compiler_options},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_the_compiler_s_version},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,paramType:e.Diagnostics.FILE_OR_DIRECTORY,description:e.Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date},{name:"showConfig",type:"boolean",category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Print_the_final_configuration_instead_of_building},{name:"listFilesOnly",type:"boolean",category:e.Diagnostics.Command_line_Options,affectsSemanticDiagnostics:!0,affectsEmit:!0,isCommandLineOnly:!0,description:e.Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing},{name:"target",shortName:"t",type:e.createMapFromTemplate({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,esnext:99}),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_or_ESNEXT},{name:"module",shortName:"m",type:e.createMapFromTemplate({none:e.ModuleKind.None,commonjs:e.ModuleKind.CommonJS,amd:e.ModuleKind.AMD,system:e.ModuleKind.System,umd:e.ModuleKind.UMD,es6:e.ModuleKind.ES2015,es2015:e.ModuleKind.ES2015,esnext:e.ModuleKind.ESNext}),affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext},{name:"lib",type:"list",element:{name:"lib",type:e.libMap},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_library_files_to_be_included_in_the_compilation,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Allow_javascript_files_to_be_compiled},{name:"checkJs",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Report_errors_in_js_files},{name:"jsx",type:e.createMapFromTemplate({preserve:1,"react-native":3,react:2}),affectsSourceFile:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_JSX_code_generation_Colon_preserve_react_native_or_react},{name:"declaration",shortName:"d",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_d_ts_file,transpileOptionValue:void 0},{name:"declarationMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_a_sourcemap_for_each_corresponding_d_ts_file,transpileOptionValue:void 0},{name:"emitDeclarationOnly",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Only_emit_d_ts_declaration_files,transpileOptionValue:void 0},{name:"sourceMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_map_file},{name:"outFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Concatenate_and_emit_output_to_single_file,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Redirect_output_structure_to_the_directory},{name:"rootDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir},{name:"composite",type:"boolean",affectsEmit:!0,isTSConfigOnly:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Enable_project_compilation,transpileOptionValue:void 0},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_file_to_store_incremental_compilation_information,transpileOptionValue:void 0},{name:"removeComments",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_comments_to_output},{name:"noEmit",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_outputs,transpileOptionValue:void 0},{name:"importHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Import_emit_helpers_from_tslib},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule,transpileOptionValue:!0},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_all_strict_type_checking_options},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_expressions_and_declarations_with_an_implied_any_type},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_null_checks},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_function_types},{name:"strictBindCallApply",type:"boolean",strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_bind_call_and_apply_methods_on_functions},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_property_initialization_in_classes},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_this_expressions_with_an_implied_any_type},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Parse_in_strict_mode_and_emit_use_strict_for_each_source_file},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_locals},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_parameters},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_error_when_not_all_code_paths_in_function_return_a_value},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_for_fallthrough_cases_in_switch_statement},{name:"moduleResolution",type:e.createMapFromTemplate({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic}),affectsModuleResolution:!0,paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Base_directory_to_resolve_non_absolute_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime,transpileOptionValue:void 0},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_folders_to_include_type_definitions_from},{name:"types",type:"list",element:{name:"types",type:"string"},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Type_declaration_files_to_be_included_in_compilation,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Do_not_resolve_the_real_path_of_symlinks},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Allow_accessing_UMD_globals_from_modules},{name:"sourceRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations},{name:"mapRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file},{name:"inlineSources",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set},{name:"experimentalDecorators",type:"boolean",category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_ES7_decorators},{name:"emitDecoratorMetadata",type:"boolean",category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_emitting_type_metadata_for_decorators},{name:"jsxFactory",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h},{name:"resolveJsonModule",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Include_modules_imported_with_json_extension},{name:"out",type:"string",affectsEmit:!0,isFilePath:!1,category:e.Diagnostics.Advanced_Options,paramType:e.Diagnostics.FILE,description:e.Diagnostics.Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file,transpileOptionValue:void 0},{name:"reactNamespace",type:"string",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit},{name:"skipDefaultLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files},{name:"charset",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_character_set_of_the_input_files},{name:"emitBOM",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files},{name:"newLine",type:e.createMapFromTemplate({crlf:0,lf:1}),affectsEmit:!0,paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix},{name:"noErrorTruncation",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_truncate_error_messages},{name:"noLib",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_include_the_default_library_file_lib_d_ts,transpileOptionValue:!0},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files,transpileOptionValue:!0},{name:"stripInternal",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_declarations_for_code_that_has_an_internal_annotation},{name:"disableSizeLimit",type:"boolean",affectsSourceFile:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_size_limitations_on_JavaScript_projects},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_use_strict_directives_in_module_output},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_generate_custom_helper_functions_like_extends_in_compiled_output},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_outputs_if_any_errors_were_reported,transpileOptionValue:void 0},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_erase_const_enum_declarations_in_generated_code},{name:"declarationDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Output_directory_for_generated_declaration_files,transpileOptionValue:void 0},{name:"skipLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Skip_type_checking_of_declaration_files},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unused_labels},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unreachable_code},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_excess_property_checks_for_object_literals},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures},{name:"forceConsistentCasingInFileNames",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disallow_inconsistently_cased_references_to_the_same_file},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Emit_class_fields_with_Define_instead_of_Set},{name:"keyofStringsOnly",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:e.Diagnostics.List_of_language_service_plugins}]),e.semanticDiagnosticsOptionDeclarations=e.optionDeclarations.filter((function(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=t(e.commonOptionsWithBuild,[{name:"verbose",shortName:"v",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Enable_verbose_logging,type:"boolean"},{name:"dry",shortName:"d",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean"},{name:"force",shortName:"f",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean"},{name:"clean",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean"}]),e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean"},{name:"enable",type:"boolean"},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}}],e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:1,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0},e.convertEnableAutoDiscoveryToEnable=o,e.getOptionNameMap=s,e.createOptionNameMap=c,e.createCompilerDiagnosticForInvalidCustomType=u,e.parseCustomTypeOption=_,e.parseListTypeOption=d,e.parseCommandLine=function(t,r){return p(s,[e.Diagnostics.Unknown_compiler_option_0,e.Diagnostics.Compiler_option_0_expects_an_argument],t,r)},e.getOptionFromName=m,e.parseBuildCommand=function(t){var r,n=p((function(){return r||(r=c(e.buildOpts))}),[e.Diagnostics.Unknown_build_option_0,e.Diagnostics.Build_option_0_requires_a_value_of_type_1],t),i=n.options,a=n.fileNames,o=n.errors,s=i;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,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){var a;try{a=n.readFile(t)}catch(r){var o=e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,r.message);return void n.onUnRecoverableConfigFileDiagnostic(o)}if(a){var s=e.parseJsonText(t,a),c=n.getCurrentDirectory();return s.path=e.toPath(t,c,e.createGetCanonicalFileName(n.useCaseSensitiveFileNames)),s.resolvedPath=s.path,s.originalFileName=s.fileName,A(s,n,e.getNormalizedAbsolutePath(e.getDirectoryPath(t),c),r,e.getNormalizedAbsolutePath(t,c),void 0,void 0,i)}o=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t),n.onUnRecoverableConfigFileDiagnostic(o)},e.readConfigFile=function(t,r){var n=v(t,r);return e.isString(n)?y(t,n):{config:{},error:n}},e.parseConfigFileTextToJson=y,e.readJsonConfigFile=h,e.convertToObject=x,e.convertToObjectWorker=D,e.convertToTSConfig=function(t,n,i){var a=e.createGetCanonicalFileName(i.useCaseSensitiveFileNames),o=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}}(n,t.configFileSpecs.validatedIncludeSpecs,t.configFileSpecs.validatedExcludeSpecs,i):function(e){return!0}),(function(t){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(n,i.getCurrentDirectory()),e.getNormalizedAbsolutePath(t,i.getCurrentDirectory()),a)})),s=k(t.options,{configFilePath:e.getNormalizedAbsolutePath(n,i.getCurrentDirectory()),useCaseSensitiveFileNames:i.useCaseSensitiveFileNames});return r(r({compilerOptions:r(r({},e.arrayFrom(s.entries()).reduce((function(e,t){var n;return r(r({},e),((n={})[t[0]]=t[1],n))}),{})),{showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0}),references:e.map(t.projectReferences,(function(e){return r(r({},e),{path:e.originalPath?e.originalPath:"",originalPath:void 0})})),files:e.length(o)?o:void 0},t.configFileSpecs?{include:E(t.configFileSpecs.validatedIncludeSpecs),exclude:t.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:!!t.compileOnSave||void 0})},e.generateTSConfig=function(t,r,n){var i=k(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=[],m=[];t.forEach((function(t,r){0!==f.length&&(f.push(""),m.push("")),f.push("/* "+r+" */"),m.push("");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(c),m.push("/* "+(s.description&&e.getLocaleSpecificMessage(s.description)||s.name)+" */"),d=Math.max(c.length,d)}}));var g=o(2),y=[];y.push("{"),y.push(g+'"compilerOptions": {');for(var h=0;h<f.length;h++){var v=f[h],b=m[h];y.push(v&&""+g+g+v+(b&&o(d-v.length+2)+b))}if(r.length){y.push(g+"},"),y.push(g+'"files": [');for(h=0;h<r.length;h++)y.push(""+g+g+JSON.stringify(r[h])+(h===r.length-1?"":","));y.push(g+"]")}else y.push(g+"}");return y.push("}"),y.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=s().optionNameMap;for(var a in t)e.hasProperty(t,a)&&(n[a]=N(i.get(a.toLowerCase()),t[a],r));return n.configFilePath&&(n.configFilePath=r(n.configFilePath)),n},e.parseJsonConfigFileContent=function(e,t,r,n,i,a,o,s){return I(e,void 0,t,r,n,i,a,o,s)},e.parseJsonSourceFileConfigFileContent=A,e.setConfigFileInOptions=F,e.canJsonReportNoInutFiles=L,e.updateErrorForNoInputFiles=function(t,r,n,i,a){var o=i.length;return M(t,a)?i.push(O(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:J(e,t,n,r),errors:n}},e.convertTypeAcquisitionFromJson=function(e,t,r){var n=[];return{options:U(e,t,n,r),errors:n}};var Y=/(^|\/)\*\*\/?$/,X=/(^|\/)\*\*\/(.*\/)?\.\.($|\/)/,Q=/\/[^/]*?[*?][^/]*\//,$=/^[^*?]*(?=\/[^/]*[*?])/;function Z(t,r,n,i,a){void 0===a&&(a=[]),r=e.normalizePath(r);var o,s=i.useCaseSensitiveFileNames?e.identity:e.toLowerCase,c=e.createMap(),u=e.createMap(),l=e.createMap(),_=t.filesSpecs,d=t.validatedIncludeSpecs,p=t.validatedExcludeSpecs,f=t.wildcardDirectories,m=e.getSupportedExtensions(n,a),g=e.getSuppoertedExtensionsWithJsonIfResolveJsonModule(n,m);if(_)for(var y=0,h=_;y<h.length;y++){var v=h[y],b=e.getNormalizedAbsolutePath(v,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,m,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,m,s);var p=s(t);c.has(p)||u.has(p)||u.set(p,t)},D=0,S=i.readDirectory(r,g,p,d,void 0);D<S.length;D++){x(b=S[D])}var T=e.arrayFrom(c.values()),E=e.arrayFrom(u.values());return{fileNames:T.concat(E,e.arrayFrom(l.values())),wildcardDirectories:f,spec:t}}function ee(t,r,n,i,a){return t.filter((function(t){var o=function(t,r){if(!r&&Y.test(t))return e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0;if(X.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 te(t,r){var n=$.exec(t);return n?{key:r?n[0]:n[0].toLowerCase(),flags:Q.test(t)?1:0}:e.isImplicitGlob(t)?{key:t,flags:1}:void 0}function re(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 re(e,n)})):"";default:return e.forEachEntry(r.type,(function(e,r){if(e===t)return r}))}}e.getFileNamesFromConfigSpecs=Z,e.convertCompilerOptionsForTelemetry=function(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=m(r);void 0!==n&&(t[r]=re(e[r],n))}return t}}(s||(s={})),function(e){function n(t){t.trace(e.formatMessage.apply(void 0,arguments))}function i(e,t){return!!e.traceResolution&&void 0!==t.trace}function a(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 o(e){return a(void 0,e)}function s(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){return{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(t,r,i,a){if(e.hasProperty(t,r)){var o=t[r];if(f(o)===i&&null!==o)return o;a.traceEnabled&&n(a.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,r,i,null===o?"null":f(o))}else a.traceEnabled&&n(a.host,e.Diagnostics.package_json_does_not_have_a_0_field,r)}function p(t,r,i,a){var o=d(t,r,"string",a);if(void 0!==o){if(o){var s=e.normalizePath(e.combinePaths(i,o));return a.traceEnabled&&n(a.host,e.Diagnostics.package_json_has_0_field_1_that_references_2,r,o,s),s}a.traceEnabled&&n(a.host,e.Diagnostics.package_json_had_a_falsy_0_field,r)}}function m(e,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 y(t,r){var i=function(t,r){var i=d(t,"typesVersions","object",r);if(void 0!==i)return r.traceEnabled&&n(r.host,e.Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),i}(t,r);if(void 0!==i){if(r.traceEnabled)for(var a in i)e.hasProperty(i,a)&&!e.VersionRange.tryParse(a)&&n(r.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,a);var o=h(i);if(o){var s=o.version,c=o.paths;if("object"===f(c))return o;r.traceEnabled&&n(r.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,"typesVersions['"+s+"']","object",f(c))}else r.traceEnabled&&n(r.host,e.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,e.versionMajorMinor)}}function h(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,b)];var n;return e.forEachAncestorDirectory(e.normalizePath(t),(function(t){var i=e.combinePaths(t,b);r.directoryExists(i)&&(n||(n=[])).push(i)})),n}(n,r):void 0);var n}e.trace=n,e.isTraceEnabled=i,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=h,e.getEffectiveTypeRoots=v;var b=e.combinePaths("node_modules","@types");function x(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 D(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 S(t,r,i,a,o){var s=function(t,r,i,a){var o=a.compilerOptions,s=o.baseUrl,c=o.paths;if(s&&c&&!e.pathIsRelative(r))return a.traceEnabled&&(n(a.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,r),n(a.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,r)),G(t,r,s,c,i,!1,a)}(t,r,a,o);return s?s.value:e.isExternalModuleNameRelative(r)?function(t,r,i,a,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&n(o.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,r);for(var s,c,u=e.normalizePath(e.combinePaths(i,r)),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&&n(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&&n(o.host,e.Diagnostics.Longest_matching_prefix_for_0_is_1,u,c);var m=u.substr(c.length);o.traceEnabled&&n(o.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,m,c,u);var g=a(t,u,!e.directoryProbablyExists(i,o.host),o);if(g)return g;o.traceEnabled&&n(o.host,e.Diagnostics.Trying_other_entries_in_rootDirs);for(var y=0,h=o.compilerOptions.rootDirs;y<h.length;y++){if((d=h[y])!==s){var v=e.combinePaths(e.normalizePath(d),m);o.traceEnabled&&n(o.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,m,d,v);var b=e.getDirectoryPath(v),x=a(t,v,!e.directoryProbablyExists(b,o.host),o);if(x)return x}}o.traceEnabled&&n(o.host,e.Diagnostics.Module_resolution_using_rootDirs_has_failed)}return}(t,r,i,a,o):function(t,r,i,a){var o=a.compilerOptions.baseUrl;if(!o)return;a.traceEnabled&&n(a.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,r);var s=e.normalizePath(e.combinePaths(o,r));a.traceEnabled&&n(a.host,e.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,r,o,s);return i(t,s,!e.directoryProbablyExists(e.getDirectoryPath(s),a.host),a)}(t,r,a,o)}e.resolveTypeReferenceDirective=function(t,r,a,o,s){var u=i(a,o);s&&(a=s.commandLine.options);var _=[],d={compilerOptions:a,host:o,traceEnabled:u,failedLookupLocations:_},p=v(a,o);u&&(void 0===r?void 0===p?n(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,t):n(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,t,p):void 0===p?n(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,t,r):n(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,t,r,p),s&&n(o,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));var f,m=function(){if(p&&p.length)return u&&n(o,e.Diagnostics.Resolving_with_primary_search_path_0,p.join(", ")),e.firstDefined(p,(function(r){var i=e.combinePaths(r,t),a=e.getDirectoryPath(i),s=e.directoryProbablyExists(a,o);return!s&&u&&n(o,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,a),l(j(c.DtsOnly,i,!s,d))}));u&&n(o,e.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}(),g=!0;if(m||(m=function(){var i=r&&e.getDirectoryPath(r);if(void 0!==i){u&&n(o,e.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,i);var a=void 0;if(e.isExternalModuleNameRelative(t)){var s=e.normalizePathAndParts(e.combinePaths(i,t)).path;a=w(c.DtsOnly,s,!1,d,!0)}else{var _=U(c.DtsOnly,t,i,d,void 0,void 0);a=_&&_.value}var p=l(a);return!p&&u&&n(o,e.Diagnostics.Type_reference_directive_0_was_not_resolved,t),p}u&&n(o,e.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}(),g=!1),m){var y=m.fileName,h=m.packageId,b=a.preserveSymlinks?y:P(y,o,u);u&&(h?n(o,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,t,b,e.packageIdToString(h),g):n(o,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,t,b,g)),f={primary:g,resolvedFileName:b,packageId:h,isExternalLibraryImport:I(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 D(x(r),x(r),e,t)},e.createCacheWithRedirects=x,e.createModuleResolutionCacheWithMaps=D,e.resolveModuleNameFromCache=function(t,r,n){var i=e.getDirectoryPath(r),a=n&&n.getOrCreateCacheForDirectory(i);return a&&a.get(t)},e.resolveModuleName=function(t,r,a,o,s,c){var u=i(a,o);c&&(a=c.commandLine.options),u&&(n(o,e.Diagnostics.Resolving_module_0_from_1,t,r),c&&n(o,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,c.sourceFile.fileName));var l=e.getDirectoryPath(r),_=s&&s.getOrCreateCacheForDirectory(l,c),d=_&&_.get(t);if(d)u&&n(o,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,t,l);else{var p=a.moduleResolution;switch(void 0===p?(p=e.getEmitModuleKind(a)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic,u&&n(o,e.Diagnostics.Module_resolution_kind_is_not_specified_using_0,e.ModuleResolutionKind[p])):u&&n(o,e.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,e.ModuleResolutionKind[p]),e.perfLogger.logStartResolveModule(t),p){case e.ModuleResolutionKind.NodeJs:d=A(t,r,a,o,s,c);break;case e.ModuleResolutionKind.Classic:d=$(t,r,a,o,s,c);break;default:return e.Debug.fail("Unexpected moduleResolution: "+p)}d&&d.resolvedModule&&e.perfLogger.logInfoEvent('Module "'+t+'" resolved to "'+d.resolvedModule.resolvedFileName+'"'),e.perfLogger.logStopResolveModule(d&&d.resolvedModule?""+d.resolvedModule.resolvedFileName:"null"),_&&(_.set(t,d),e.isExternalModuleNameRelative(t)||s.getOrCreateCacheForModuleName(t,c).set(l,d))}return u&&(d.resolvedModule?d.resolvedModule.packageId?n(o,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,t,d.resolvedModule.resolvedFileName,e.packageIdToString(d.resolvedModule.packageId)):n(o,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1,t,d.resolvedModule.resolvedFileName):n(o,e.Diagnostics.Module_name_0_was_not_resolved,t)),d},e.resolveJSModule=function(e,t,r){var n=N(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=N(e,t,r).resolvedModule;return n&&n.resolvedFileName};var T=[c.JavaScript],E=[c.TypeScript,c.JavaScript],C=t(E,[c.Json]),k=[c.TSConfig];function N(t,r,n){return F(t,r,{moduleResolution:e.ModuleResolutionKind.NodeJs,allowJs:!0},n,void 0,T,void 0)}function A(t,r,n,i,a,o,s){return F(t,e.getDirectoryPath(r),n,i,a,s?k:n.resolveJsonModule?C:E,o)}function F(t,a,o,s,u,l,d){var p=i(o,s),f=[],m={compilerOptions:o,host:s,traceEnabled:p,failedLookupLocations:f},g=e.forEach(l,(function(i){return function(i){var l=S(i,t,a,(function(e,t,r,n){return w(e,t,r,n,!0)}),m);if(l)return Z({resolved:l,isExternalLibraryImport:I(l.path)});if(e.isExternalModuleNameRelative(t)){var _=e.normalizePathAndParts(e.combinePaths(a,t)),f=_.path,g=_.parts,y=w(i,f,!1,m,!0);return y&&Z({resolved:y,isExternalLibraryImport:e.contains(g,"node_modules")})}p&&n(s,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,t,c[i]);var h=U(i,t,a,m,u,d);if(!h)return;var v=h.value;if(!o.preserveSymlinks&&v&&!v.originalPath){var b=P(v.path,s,p),x=b===v.path?void 0:v.path;v=r(r({},v),{path:b,originalPath:x})}return{value:v&&{resolved:v,isExternalLibraryImport:!0}}}(i)}));if(g&&g.value){var y=g.value;return _(y.resolved,y.isExternalLibraryImport,f)}return{resolvedModule:void 0,failedLookupLocations:f}}function P(t,r,i){if(!r.realpath)return t;var a=e.normalizePath(r.realpath(t));return i&&n(r,e.Diagnostics.Resolving_real_path_for_0_result_1,t,a),e.Debug.assert(r.fileExists(a),t+" linked to nonexistent file "+a),a}function w(t,r,i,o,s){if(o.traceEnabled&&n(o.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,r,c[t]),!e.hasTrailingDirectorySeparator(r)){if(!i){var u=e.getDirectoryPath(r);e.directoryProbablyExists(u,o.host)||(o.traceEnabled&&n(o.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),i=!0)}var l=L(t,r,i,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=O(r,i);64===r.charCodeAt(i)&&(a=O(r,a));return r.slice(0,a)}(l):void 0;return a(_?K(_,!1,o):void 0,l)}}i||(e.directoryProbablyExists(r,o.host)||(o.traceEnabled&&n(o.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,r),i=!0));return j(t,r,i,o,s)}function I(t){return e.stringContains(t,e.nodeModulesPathPart)}function O(t,r){var n=t.indexOf(e.directorySeparator,r+1);return-1===n?r:n}function M(e,t,r,n){return o(L(e,t,r,n))}function L(t,r,i,a){if(t===c.Json||t===c.TSConfig){var o=e.tryRemoveExtension(r,".json");return void 0===o&&t===c.Json?void 0:R(o||r,t,i,a)}var s=R(r,t,i,a);if(s)return s;if(e.hasJSFileExtension(r)){var u=e.removeFileExtension(r);if(a.traceEnabled){var l=r.substring(u.length);n(a.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,r,l)}return R(u,t,i,a)}}function R(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=B(t+e,n,i);return void 0===r?void 0:{path:r,ext:e}}}function B(t,r,i){if(!r){if(i.host.fileExists(t))return i.traceEnabled&&n(i.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,t),t;i.traceEnabled&&n(i.host,e.Diagnostics.File_0_does_not_exist,t)}i.failedLookupLocations.push(t)}function j(e,t,r,n,i){void 0===i&&(i=!0);var o=i?K(t,r,n):void 0;return a(o,J(e,t,r,n,o&&o.packageJsonContent,o&&o.versionPaths))}function K(t,r,i){var a=i.host,o=i.traceEnabled,s=!r&&e.directoryProbablyExists(t,a),c=e.combinePaths(t,"package.json");if(s&&a.fileExists(c)){var u=e.readJson(c,a);return o&&n(a,e.Diagnostics.Found_package_json_at_0,c),{packageDirectory:t,packageJsonContent:u,versionPaths:y(u,i)}}s&&o&&n(a,e.Diagnostics.File_0_does_not_exist,c),i.failedLookupLocations.push(c)}function J(t,r,i,a,u,l){var _;if(u)switch(t){case c.JavaScript:case c.Json:_=g(u,r,a);break;case c.TypeScript:_=m(u,r,a)||g(u,r,a);break;case c.DtsOnly:_=m(u,r,a);break;case c.TSConfig:_=function(e,t,r){return p(e,"tsconfig",t,r)}(u,r,a);break;default:return e.Debug.assertNever(t)}var d=function(t,r,i,a){var s=B(r,i,a);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}(t,s);if(u)return o(u);a.traceEnabled&&n(a.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,s)}return w(t===c.DtsOnly?c.TypeScript:t,r,i,a,!1)},f=_?!e.directoryProbablyExists(e.getDirectoryPath(_),a.host):void 0,y=i||!e.directoryProbablyExists(r,a.host),h=e.combinePaths(r,t===c.TSConfig?"tsconfig":"index");if(l&&(!_||e.containsPath(r,_))){var v=e.getRelativePathFromDirectory(r,_||h,!1);a.traceEnabled&&n(a.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,l.version,e.version,v);var b=G(t,v,r,l.paths,d,f||y,a);if(b)return s(b.value)}var x=_&&s(d(t,_,f,a));return x||L(t,h,y,a)}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 V(e,t,r,n,!1,i,a)}function V(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=Q(c,r,n,i);return o||Z(q(t,r,n,i,a))}}))}function q(t,r,i,a,o){var s=e.combinePaths(i,"node_modules"),u=e.directoryProbablyExists(s,a.host);!u&&a.traceEnabled&&n(a.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,s);var l=o?void 0:W(t,r,s,u,a);if(l)return l;if(t===c.TypeScript||t===c.DtsOnly){var _=e.combinePaths(s,"@types"),d=u;return u&&!e.directoryProbablyExists(_,a.host)&&(a.traceEnabled&&n(a.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,_),d=!1),W(c.DtsOnly,function(t,r){var i=Y(t);r.traceEnabled&&i!==t&&n(r.host,e.Diagnostics.Scoped_package_detected_looking_in_0,i);return i}(r,a),_,d,a)}}function W(t,r,i,s,c){var u=e.normalizePath(e.combinePaths(i,r)),l=K(u,!s,c);if(l){var _=L(t,u,!s,c);if(_)return o(_);var d=J(t,u,!s,c,l.packageJsonContent,l.versionPaths);return a(l,d)}var p=function(e,t,r,n){var i=L(e,t,r,n)||J(e,t,r,n,l&&l.packageJsonContent,l&&l.versionPaths);return a(l,i)},f=z(r),m=f.packageName,g=f.rest;if(""!==g){var y=e.combinePaths(i,m);if((l=K(y,!s,c))&&l.versionPaths){c.traceEnabled&&n(c.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,l.versionPaths.version,e.version,g);var h=s&&e.directoryProbablyExists(y,c.host),v=G(t,g,y,l.versionPaths.paths,p,!h,c);if(v)return v.value}}return p(t,u,!s,c)}function G(t,r,i,a,s,c,u){var l=e.matchPatternOrExact(e.getOwnKeys(a),r);if(l){var _=e.isString(l)?void 0:e.matchedText(l,r),d=e.isString(l)?l:e.patternText(l);return u.traceEnabled&&n(u.host,e.Diagnostics.Module_name_0_matched_pattern_1,r,d),{value:e.forEach(a[d],(function(r){var a=_?r.replace("*",_):r,l=e.normalizePath(e.combinePaths(i,a));u.traceEnabled&&n(u.host,e.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,r,a);var d=e.tryGetExtensionFromPath(l);if(void 0!==d){var p=B(l,c,u);if(void 0!==p)return o({path:p,ext:d})}return s(t,l,c||!e.directoryProbablyExists(e.getDirectoryPath(l),u.host),u)}))}}}e.nodeModuleNameResolver=A,e.nodeModulesPathPart="/node_modules/",e.pathContainsNodeModules=I,e.parsePackageName=z;var H="__";function Y(t){if(e.startsWith(t,"@")){var r=t.replace(e.directorySeparator,H);if(r!==t)return r.slice(1)}return t}function X(t){return e.stringContains(t,H)?"@"+t.replace(H,e.directorySeparator):t}function Q(t,r,i,a){var o,s=t&&t.get(i);if(s)return a.traceEnabled&&n(a.host,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,r,i),(o=a.failedLookupLocations).push.apply(o,s.failedLookupLocations),{value:s.resolvedModule&&{path:s.resolvedModule.resolvedFileName,originalPath:s.resolvedModule.originalPath||!0,extension:s.resolvedModule.extension,packageId:s.resolvedModule.packageId}}}function $(t,r,n,a,o,s){var u=[],l={compilerOptions:n,host:a,traceEnabled:i(n,a),failedLookupLocations:u},d=e.getDirectoryPath(r),p=f(c.TypeScript)||f(c.JavaScript);return _(p&&p.value,!1,u);function f(r){var n=S(r,t,d,M,l);if(n)return{value:n};if(e.isExternalModuleNameRelative(t)){var i=e.normalizePath(e.combinePaths(d,t));return Z(M(r,i,!1,l))}var a=o&&o.getOrCreateCacheForModuleName(t,s),u=e.forEachAncestorDirectory(d,(function(n){var i=Q(a,t,n,l);if(i)return i;var o=e.normalizePath(e.combinePaths(n,t));return Z(M(r,o,!1,l))}));return u||(r===c.TypeScript?function(e,t,r){return V(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/"+Y(e)},e.mangleScopedPackageName=Y,e.getPackageNameFromTypesPackageName=function(t){var r=e.removePrefix(t,"@types/");return r!==t?X(r):t},e.unmangleScopedPackageName=X,e.classicNameResolver=$,e.loadModuleFromGlobalCache=function(t,r,a,o,s){var u=i(a,o);u&&n(o,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,r,t,s);var l=[],d={compilerOptions:a,host:o,traceEnabled:u,failedLookupLocations:l};return _(q(c.DtsOnly,t,s,d,!1),!0,l)}}(s||(s={})),function(e){var n;function i(e,t){return e.body&&!e.body.parent&&g(e,e.body),e.body?a(e.body,t):1}function a(t,r){void 0===r&&(r=e.createMap());var n=""+e.getNodeId(t);if(r.has(n))return r.get(n)||0;r.set(n,void 0);var s=function(t,r){switch(t.kind){case 245:case 246:return 0;case 247:if(e.isEnumConst(t))return 2;break;case 253:case 252:if(!e.hasModifier(t,1))return 0;break;case 259:if(!t.moduleSpecifier&&t.exportClause){for(var n=0,s=0,c=t.exportClause.elements;s<c.length;s++){var u=o(c[s],r);if(u>n&&(n=u),1===n)return n}return n}break;case 249:var l=0;return e.forEachChild(t,(function(t){var n=a(t,r);switch(n){case 0:return;case 2:return void(l=2);case 1:return l=1,!0;default:e.Debug.assertNever(n)}})),l;case 248:return i(t,r);case 75:if(t.isInJSDocNamespace)return 0}return 1}(t,r);return r.set(n,s),s}function o(t,r){for(var n=t.propertyName||t.name,i=t.parent;i;){if(e.isBlock(i)||e.isModuleBlock(i)||e.isSourceFile(i)){for(var o=void 0,s=0,c=i.statements;s<c.length;s++){var u=c[s];if(e.nodeHasName(u,n)){u.parent||g(i,u);var l=a(u,r);if((void 0===o||l>o)&&(o=l),1===o)return o}}if(void 0!==o)return o}i=i.parent}return 1}function s(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=i,function(e){e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethod=128]="IsObjectLiteralOrClassExpressionMethod"}(n||(n={}));var c=s,u=function(){var n,a,o,u,f,y,h,v,b,x,D,S,T,E,C,k,N,A,F,P,w,I,O,M,L=0,R={flags:1},B={flags:1},j=0;function K(t,r,i,a,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(t)||n,t,r,i,a,o)}return function(t,r){n=t,a=r,o=e.getEmitScriptTarget(a),w=function(t,r){return!(!e.getStrictOptionValue(r,"alwaysStrict")||t.isDeclarationFile)||!!t.externalModuleIndicator}(n,r),O=e.createUnderscoreEscapedMap(),L=0,M=n.isDeclarationFile,I=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(R),e.Debug.attachFlowNodeDebugInfo(B),n.locals||(Be(n),n.symbolCount=L,n.classifiableNames=O,function(){if(!b)return;for(var t=f,r=v,i=h,a=u,o=D,c=0,l=b;c<l.length;c++){var _=l[c],d=e.getJSDocHost(_);f=e.findAncestor(d.parent,(function(e){return!!(1&Ee(e))}))||n,h=e.getEnclosingBlockScopeContainer(d)||n,D=s({flags:2}),u=_,Be(_.typeExpression);var p=e.getNameOfDeclaration(_);if((e.isJSDocEnumTag(_)||!_.fullName)&&p&&e.isPropertyAccessEntityNameExpression(p.parent)){var m=$e(p.parent);if(m){Xe(n.symbol,p.parent,m,!!e.findAncestor(p,(function(t){return e.isPropertyAccessExpression(t)&&"prototype"===t.name.escapedText})),!1);var g=f;switch(e.getAssignmentDeclarationPropertyAccessKind(p.parent)){case 1:case 2:f=e.isExternalOrCommonJsModule(n)?n:void 0;break;case 4:f=p.parent.expression;break;case 3:f=p.parent.expression.name;break;case 5:f=e.isPropertyAccessExpression(p.parent.expression)?p.parent.expression.name:p.parent.expression;break;case 0:return e.Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}f&&G(_,524288,788968),f=g}}else e.isJSDocEnumTag(_)||!_.fullName||75===_.fullName.kind?(u=_.parent,Pe(_,524288,788968)):Be(_.fullName)}f=t,v=r,h=i,u=a,D=o}()),n=void 0,a=void 0,o=void 0,u=void 0,f=void 0,y=void 0,h=void 0,v=void 0,b=void 0,x=!1,D=void 0,S=void 0,T=void 0,E=void 0,C=void 0,k=void 0,A=void 0,F=!1,P=0,j=0};function J(e,t){return L++,new I(e,t)}function z(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&&U(t,r)}function U(t,r){var n=t.valueDeclaration;(!n||e.isAssignmentDeclaration(n)&&!e.isAssignmentDeclaration(r)||n.kind!==r.kind&&e.isEffectiveModuleDeclaration(n))&&(t.valueDeclaration=r)}function V(t){if(258===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(153===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)))}return e.isWellKnownSymbolSyntactically(r)?e.getPropertyNameForKnownSymbolName(e.idText(r.name)):e.isPropertyNameLiteral(r)?e.getEscapedTextOfIdentifierOrLiteral(r):void 0}switch(t.kind){case 161:return"__constructor";case 169:case 164:case 303:return"__call";case 170:case 165:return"__new";case 166:return"__index";case 259:return"__export";case 288:return"export=";case 208:if(2===e.getAssignmentDeclarationKind(t))return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 298:return e.isJSDocConstructSignature(t)?"__new":"__call";case 155:return e.Debug.assert(298===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 q(t){return e.isNamedDeclaration(t)?e.declarationNameToString(t.name):e.unescapeLeadingUnderscores(e.Debug.assertDefined(V(t)))}function W(r,i,a,o,s,c){e.Debug.assert(!e.hasDynamicName(a));var u,l=e.hasModifier(a,512),_=l&&i?"default":V(a);if(void 0===_)u=J(0,"__missing");else if(u=r.get(_),2885600&o&&O.set(_,!0),u){if(c&&!u.isReplaceableByMethod)return u;if(u.flags&s)if(u.isReplaceableByMethod)r.set(_,u=J(0,_));else if(!(3&o&&67108864&u.flags)){e.isNamedDeclaration(a)&&(a.name.parent=a);var d=2&u.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,p=!0;(384&u.flags||384&o)&&(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&&258===a.kind&&!a.isExportEquals&&(d=e.Diagnostics.A_module_cannot_have_multiple_default_exports,p=!1,f=!0));var m=e.getNameOfDeclaration(a)||a,g=[];e.forEach(u.declarations,(function(t,r){var i=e.getNameOfDeclaration(t)||t,a=K(i,d,p?q(t):void 0);n.bindDiagnostics.push(f?e.addRelatedInfo(a,K(m,0===r?e.Diagnostics.Another_export_default_is_here:e.Diagnostics.and_here)):a),f&&g.push(K(i,e.Diagnostics.The_first_export_default_is_here))}));var y=K(m,d,p?q(a):void 0);n.bindDiagnostics.push(f?e.addRelatedInfo.apply(void 0,t([y],g)):y),u=J(0,_)}}else r.set(_,u=J(0,_)),c&&(u.isReplaceableByMethod=!0);return z(u,a,o),u.parent?e.Debug.assert(u.parent===i,"Existing symbol parent should match new one"):u.parent=i,u}function G(t,r,n){var i=1&e.getCombinedModifierFlags(t);if(2097152&r)return 261===t.kind||252===t.kind&&i?W(f.symbol.exports,f.symbol,t,r,n):W(f.locals,void 0,t,r,n);if(e.isJSDocTypeAlias(t)&&e.Debug.assert(e.isInJSFile(t)),!e.isAmbientModule(t)&&(i||64&f.flags)||e.isJSDocTypeAlias(t)){if(!f.locals||e.hasModifier(t,512)&&!V(t))return W(f.symbol.exports,f.symbol,t,r,n);var a=111551&r?1048576:0,o=W(f.locals,void 0,t,a,n);return o.exportSymbol=W(f.symbol.exports,f.symbol,t,r,n),t.localSymbol=o,o}return W(f.locals,void 0,t,r,n)}function H(e){if(M)$(e);else if(536870912&e.transformFlags)M=!0,$(e),M=!1,j|=e.transformFlags&~m(e.kind);else{var t=j;j=0,$(e),j=t|p(e,j)}}function Y(e){X(e,(function(e){return 243===e.kind?Be(e):void 0})),X(e,(function(e){return 243!==e.kind?Be(e):void 0}))}function X(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 Q(t){e.forEachChild(t,Be,X)}function $(t){if(function(t){if(!(1&D.flags))return!1;if(D===R){if((e.isStatementButNotDeclaration(t)&&223!==t.kind||244===t.kind||248===t.kind&&function(e){var t=i(e);return 1===t||2===t&&!!a.preserveConstEnums}(t))&&(D=B,!a.allowUnreachableCode)){var r=e.unreachableCodeIsError(a)&&!(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)&&l(t)&&e.isBlock(t.parent)){var n=t.parent.statements,i=e.sliceAfter(n,t);e.getRangesWhere(i,l,(function(e,t){return r(i[e],i[t-1])}))}else r(t,t)}(t,(function(t,n){return Re(r,t,n,e.Diagnostics.Unreachable_code_detected)}))}}return!0}(t))return Q(t),void je(t);switch(t.kind>=224&&t.kind<=240&&!a.allowUnreachableCode&&(t.flowNode=D),t.kind){case 228:!function(e){var t=ie(),r=ne(),n=ne();oe(t,D),D=t,me(e.expression,r,n),D=_e(r),ge(e.statement,n,t),oe(t,D),D=_e(n)}(t);break;case 227:!function(t){var r=ie(),n=237===t.parent.kind?e.lastOrUndefined(A):void 0,i=n?n.continueTarget:ne(),a=n?n.breakTarget:ne();oe(r,D),D=r,ge(t.statement,a,i),oe(i,D),D=_e(i),me(t.expression,r,a),D=_e(a)}(t);break;case 229:!function(e){var t=ie(),r=ne(),n=ne();Be(e.initializer),oe(t,D),D=t,me(e.condition,r,n),D=_e(r),ge(e.statement,n,t),Be(e.incrementor),oe(t,D),D=_e(n)}(t);break;case 230:case 231:!function(e){var t=ie(),r=ne();Be(e.expression),oe(t,D),D=t,231===e.kind&&Be(e.awaitModifier);oe(r,D),Be(e.initializer),242!==e.initializer.kind&&ve(e.initializer);ge(e.statement,r,t),oe(t,D),D=_e(r)}(t);break;case 226:!function(e){var t=ne(),r=ne(),n=ne();me(e.expression,t,r),D=_e(t),Be(e.thenStatement),oe(n,D),D=_e(r),Be(e.elseStatement),oe(n,D),D=_e(n)}(t);break;case 234:case 238:!function(e){Be(e.expression),234===e.kind&&(F=!0,E&&oe(E,D));D=R}(t);break;case 233:case 232:!function(e){if(Be(e.label),e.label){var t=function(e){if(A)for(var t=0,r=A;t<r.length;t++){var n=r[t];if(n.name===e)return n}return}(e.label.escapedText);t&&(t.referenced=!0,ye(e,t.breakTarget,t.continueTarget))}else ye(e,S,T)}(t);break;case 239:!function(e){var t=ne(),r=D,n=[],i=c;(e.catchClause||e.finallyBlock)&&(c=function(e){return n.push(e),s(e)});Be(e.tryBlock),c=i,oe(t,D);var a=D,o=R;if(e.catchClause){if(D=r,n.length){var u=ne();oe(u,D);for(var l=0,_=n;l<_.length;l++){var d=_[l];oe(u,d)}D=_e(u)}Be(e.catchClause),oe(t,D),o=D}if(e.finallyBlock){var p=r;if(!e.catchClause&&n.length){var f=ne();oe(f,r);for(var m=0,g=n;m<g.length;m++){d=g[m];oe(f,d)}p=_e(f)}var y=s({flags:4096,antecedent:p,lock:{}});if(oe(t,y),D=_e(t),Be(e.finallyBlock),1&D.flags||1&a.flags&&1&o.flags&&(D=a===B||o===B?B:R),!(1&D.flags)){var h=c({flags:8192,antecedent:D});y.lock=h,D=h}}else D=_e(t)}(t);break;case 236:!function(t){var r=ne();Be(t.expression);var n=S,i=N;S=r,N=D,Be(t.caseBlock),oe(r,D);var a=e.forEach(t.caseBlock.clauses,(function(e){return 276===e.kind}));t.possiblyExhaustive=!a&&!r.antecedents,a||oe(r,ce(N,t,0,0));S=n,N=i,D=_e(r)}(t);break;case 250:!function(e){var t=j;j=0;for(var r=e.clauses,n=R,i=0;i<r.length;i++){for(var o=i;!r[i].statements.length&&i+1<r.length;)Be(r[i]),i++;var s=ne();oe(s,ce(N,e.parent,o,i+1)),oe(s,n),D=_e(s);var c=r[i];Be(c),n=D,1&D.flags||i===r.length-1||!a.noFallthroughCasesInSwitch||(c.fallthroughFlowNode=D)}r.transformFlags=536870912|j,j|=t}(t);break;case 275:!function(e){var t=D;D=N,Be(e.expression),D=t,X(e.statements)}(t);break;case 225:!function(t){if(Be(t.expression),195===t.expression.kind){var r=t.expression;e.isDottedName(r.expression)&&(D=function(e,t){return ae(e),c({flags:512,antecedent:e,node:t})}(D,r))}}(t);break;case 237:!function(t){var r=ie(),n=ne();Be(t.label),oe(r,D);var i=function(e,t,r){var n={name:e,breakTarget:t,continueTarget:r,referenced:!1};return(A||(A=[])).push(n),n}(t.label.escapedText,n,r);Be(t.statement),A.pop(),i.referenced||a.allowUnusedLabels||function(e,t,r){Re(e,t,t,r)}(e.unusedLabelIsError(a),t.label,e.Diagnostics.Unused_label);t.statement&&227===t.statement.kind||(oe(n,D),D=_e(n))}(t);break;case 206:!function(e){if(53===e.operator){var t=C;C=k,k=t,Q(e),k=C,C=t}else Q(e),45!==e.operator&&46!==e.operator||ve(e.operand)}(t);break;case 207:!function(e){Q(e),(45===e.operator||46===e.operator)&&ve(e.operand)}(t);break;case 208:!function(t){var r=t.operatorToken.kind;if(55===r||56===r||60===r)if(pe(t)){var n=ne();be(t,n,n),D=_e(n)}else be(t,C,k);else{if(Q(t),e.isAssignmentOperator(r)&&!e.isAssignmentTarget(t))if(ve(t.left),62===r&&194===t.left.kind)re(t.left.expression)&&(D=le(D,t))}}(t);break;case 202:!function(e){Q(e),193===e.expression.kind&&ve(e.expression)}(t);break;case 209:!function(e){var t=ne(),r=ne(),n=ne();me(e.condition,t,r),D=_e(t),Be(e.questionToken),Be(e.whenTrue),oe(n,D),D=_e(r),Be(e.colonToken),Be(e.whenFalse),oe(n,D),D=_e(n)}(t);break;case 241:!function(t){Q(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 D=ue(D,r)}(t)}(t);break;case 193:case 194:!function(t){e.isOptionalChain(t)?Te(t):Q(t)}(t);break;case 195:!function(t){if(e.isOptionalChain(t))Te(t);else{var r=e.skipParentheses(t.expression);200===r.kind||201===r.kind?(X(t.typeArguments),X(t.arguments),Be(t.expression)):Q(t)}if(193===t.expression.kind){var n=t.expression;re(n.expression)&&e.isPushOrUnshiftIdentifier(n.name)&&(D=le(D,t))}}(t);break;case 315:case 308:case 309:!function(e){e.tagName.parent=e,309!==e.kind&&e.fullName&&g(e,e.fullName)}(t);break;case 288:Y(t.statements),Be(t.endOfFileToken);break;case 222:case 249:Y(t.statements);break;default:Q(t)}je(t)}function Z(t){switch(t.kind){case 75:case 103:case 193:case 194:return ee(t);case 195:return function(e){if(e.arguments)for(var t=0,r=e.arguments;t<r.length;t++){if(ee(r[t]))return!0}if(193===e.expression.kind&&ee(e.expression.expression))return!0;return!1}(t);case 199:return Z(t.expression);case 208: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 97:return re(t.left);case 96: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 206:return 53===t.operator&&Z(t.operand);case 203:return Z(t.expression)}return!1}function ee(t){return 75===t.kind||103===t.kind||101===t.kind||(e.isPropertyAccessExpression(t)||e.isNonNullExpression(t)||e.isParenthesizedExpression(t))&&ee(t.expression)||e.isElementAccessExpression(t)&&e.isStringOrNumericLiteralLike(t.argumentExpression)&&ee(t.expression)||e.isOptionalChain(t)}function te(t,r){return e.isTypeOfExpression(t)&&re(t.expression)&&e.isStringLiteralLike(r)}function re(e){switch(e.kind){case 199:return re(e.expression);case 208:switch(e.operatorToken.kind){case 62:return re(e.left);case 27:return re(e.right)}}return ee(e)}function ne(){return s({flags:4,antecedents:void 0})}function ie(){return s({flags:8,antecedents:void 0})}function ae(e){e.flags|=1024&e.flags?2048:1024}function oe(t,r){1&r.flags||e.contains(t.antecedents,r)||((t.antecedents||(t.antecedents=[])).push(r),ae(r))}function se(t,r,n){return 1&r.flags?r:n?!(105===n.kind&&64&t||90===n.kind&&32&t)||e.isExpressionOfOptionalChainRoot(n)||e.isNullishCoalesce(n.parent)?Z(n)?(ae(r),c({flags:t,antecedent:r,node:n})):r:R:32&t?r:R}function ce(e,t,r,n){return Z(t.expression)?(ae(e),c({flags:128,antecedent:e,switchStatement:t,clauseStart:r,clauseEnd:n})):e}function ue(e,t){return ae(e),c({flags:16,antecedent:e,node:t})}function le(e,t){return ae(e),c({flags:256,antecedent:e,node:t})}function _e(e){var t=e.antecedents;return t?1===t.length?t[0]:e:R}function de(e){for(;;)if(199===e.kind)e=e.expression;else{if(206!==e.kind||53!==e.operator)return 208===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 226:case 228:case 227:return t.expression===e;case 229:case 209: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=C,a=k;C=r,k=n,e(t),C=i,k=a}function me(t,r,n){fe(Be,t,r,n),t&&(de(t)||e.isOptionalChain(t)&&xe(t))||(oe(r,se(32,D,t)),oe(n,se(64,D,t)))}function ge(e,t,r){var n=S,i=T;S=t,T=r,Be(e),S=n,T=i}function ye(e,t,r){var n=233===e.kind?t:r;n&&(oe(n,D),D=R)}function he(e){208===e.kind&&62===e.operatorToken.kind?ve(e.left):ve(e)}function ve(e){if(ee(e))D=ue(D,e);else if(191===e.kind)for(var t=0,r=e.elements;t<r.length;t++){var n=r[t];212===n.kind?ve(n.expression):he(n)}else if(192===e.kind)for(var i=0,a=e.properties;i<a.length;i++){var o=a[i];279===o.kind?he(o.initializer):280===o.kind?ve(o.name):281===o.kind&&ve(o.expression)}}function be(e,t,r){var n=ne();55===e.operatorToken.kind?me(e.left,n,r):me(e.left,t,n),D=_e(n),Be(e.operatorToken),me(e.right,t,r)}function xe(t){return!e.isOptionalChain(t.parent)||e.isOptionalChainRoot(t.parent)||t!==t.parent.expression}function De(e){switch(Be(e.questionDotToken),e.kind){case 193:Be(e.name);break;case 194:Be(e.argumentExpression);break;case 195:X(e.typeArguments),X(e.arguments)}}function Se(t,r,n){var i=t.questionDotToken?ne():void 0;!function(t,r,n){fe(Be,t,r,n),e.isOptionalChain(t)&&!xe(t)||(oe(r,se(32,D,t)),oe(n,se(64,D,t)))}(t.expression,i||r,n),i&&(D=_e(i)),fe(De,t,r,n),xe(t)&&(oe(r,se(32,D,t)),oe(n,se(64,D,t)))}function Te(e){if(pe(e)){var t=ne();Se(e,t,t),D=_e(t)}else Se(e,C,k)}function Ee(t){switch(t.kind){case 213:case 244:case 247:case 192:case 172:case 302:case 272:return 1;case 245:return 65;case 248:case 246:case 185:return 33;case 288:return 37;case 160:if(e.isObjectLiteralOrClassExpressionMethod(t))return 173;case 161:case 243:case 159:case 162:case 163:case 164:case 303:case 298:case 169:case 165:case 166:case 170:return 45;case 200:case 201:return 61;case 249:return 4;case 158:return t.initializer?4:0;case 278:case 229:case 230:case 231:case 250:return 2;case 222:return e.isFunctionLike(t.parent)?0:2}return 0}function Ce(e){v&&(v.nextContainer=e),v=e}function ke(t,r,i){switch(f.kind){case 248:return G(t,r,i);case 288:return function(t,r,i){return e.isExternalModule(n)?G(t,r,i):W(n.locals,void 0,t,r,i)}(t,r,i);case 213:case 244:return function(t,r,n){return e.hasModifier(t,32)?W(f.symbol.exports,f.symbol,t,r,n):W(f.symbol.members,f.symbol,t,r,n)}(t,r,i);case 247:return W(f.symbol.exports,f.symbol,t,r,i);case 172:case 302:case 192:case 245:case 272:return W(f.symbol.members,f.symbol,t,r,i);case 169:case 170:case 164:case 165:case 303:case 166:case 160:case 159:case 161:case 162:case 163:case 243:case 200:case 201:case 298:case 315:case 308:case 246:case 185:return W(f.locals,void 0,t,r,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=i(e),r=0!==t;return ke(e,r?512:1024,r?110735:0),t}function Fe(e,t,r){var n=J(t,r);return 106508&t&&(n.parent=f.symbol),z(n,e,t),n}function Pe(t,r,n){switch(h.kind){case 248:G(t,r,n);break;case 288:if(e.isExternalOrCommonJsModule(f)){G(t,r,n);break}default:h.locals||(h.locals=e.createSymbolTable(),Ce(h)),W(h.locals,void 0,t,r,n)}}function we(t){!(w&&t.originalKeywordKind>=112&&t.originalKeywordKind<=120)||e.isIdentifierName(t)||8388608&t.flags||4194304&t.flags||n.parseDiagnostics.length||n.bindDiagnostics.push(K(t,function(t){if(e.getContainingClass(t))return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;if(n.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}(t),e.declarationNameToString(t)))}function Ie(t,r){if(r&&75===r.kind){var i=r;if(function(t){return e.isIdentifier(t)&&("eval"===t.escapedText||"arguments"===t.escapedText)}(i)){var a=e.getErrorSpanForNode(n,r);n.bindDiagnostics.push(e.createFileDiagnostic(n,a.start,a.length,function(t){if(e.getContainingClass(t))return e.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode;if(n.externalModuleIndicator)return e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Invalid_use_of_0_in_strict_mode}(t),e.idText(i)))}}}function Oe(e){w&&Ie(e,e.name)}function Me(t){if(o<2&&288!==h.kind&&248!==h.kind&&!e.isFunctionLike(h)){var r=e.getErrorSpanForNode(n,t);n.bindDiagnostics.push(e.createFileDiagnostic(n,r.start,r.length,function(t){return e.getContainingClass(t)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:n.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}(t)))}}function Le(t,r,i,a,o){var s=e.getSpanOfTokenAtPosition(n,t.pos);n.bindDiagnostics.push(e.createFileDiagnostic(n,s.start,s.length,r,i,a,o))}function Re(t,i,a,o){!function(t,i,a){var o=e.createFileDiagnostic(n,i.pos,i.end-i.pos,a);t?n.bindDiagnostics.push(o):n.bindSuggestionDiagnostics=e.append(n.bindSuggestionDiagnostics,r(r({},o),{category:e.DiagnosticCategory.Suggestion}))}(t,{pos:e.getTokenPosOfNode(i,n),end:a.end},o)}function Be(t){if(t){t.parent=u;var r=w;if(function(t){switch(t.kind){case 75:if(t.isInJSDocNamespace){for(var r=t.parent;r&&!e.isJSDocTypeAlias(r);)r=r.parent;Pe(r,524288,788968);break}case 103:return D&&(e.isExpression(t)||280===u.kind)&&(t.flowNode=D),we(t);case 193:case 194:var i=t;D&&ee(i)&&(i.flowNode=D),e.isSpecialPropertyDeclaration(i)&&function(t){103===t.expression.kind?qe(t):e.isBindableStaticAccessExpression(t)&&288===t.parent.parent.kind&&(e.isPrototypeAccess(t.expression)?He(t,t.parent):Ye(t))}(i),e.isInJSFile(i)&&n.commonJsModuleIndicator&&e.isModuleExportsAccessExpression(i)&&!d(h,"module")&&W(n.locals,void 0,i.expression,134217729,111550);break;case 208:switch(e.getAssignmentDeclarationKind(t)){case 1:Ve(t);break;case 2:!function(t){if(!Ue(t))return;var r=e.getRightMostAssignedExpression(t.right);if(e.isEmptyObjectLiteral(r)||f===n&&_(n,r))return;var i=e.exportAssignmentIsAlias(t)?2097152:1049092;U(W(n.symbol.exports,n.symbol,t,67108864|i,0),t)}(t);break;case 3:He(t.left,t);break;case 6:!function(e){e.left.parent=e,e.right.parent=e,Ze(e.left.expression,e.left,!1,!0)}(t);break;case 4:qe(t);break;case 5:!function(t){var r=et(t.left.expression);if(!e.isInJSFile(t)&&!e.isFunctionSymbol(r))return;if(t.left.parent=t,t.right.parent=t,e.isIdentifier(t.left.expression)&&f===n&&_(n,t.left.expression))Ve(t);else if(e.hasDynamicName(t)){Fe(t,67108868,"__computed");var i=Xe(r,t.left.expression,$e(t.left),!1,!1);Ge(t,i)}else Ye(e.cast(t.left,e.isBindableStaticAccessExpression))}(t);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)}(t);case 278:return function(e){w&&e.variableDeclaration&&Ie(e,e.variableDeclaration.name)}(t);case 202:return function(t){if(w&&75===t.expression.kind){var r=e.getErrorSpanForNode(n,t.expression);n.bindDiagnostics.push(e.createFileDiagnostic(n,r.start,r.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(t);case 8:return function(t){w&&32&t.numericLiteralFlags&&n.bindDiagnostics.push(K(t,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}(t);case 207:return function(e){w&&Ie(e,e.operand)}(t);case 206:return function(e){w&&(45!==e.operator&&46!==e.operator||Ie(e,e.operand))}(t);case 235:return function(t){w&&Le(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}(t);case 237:return function(t){w&&a.target>=2&&(e.isDeclarationStatement(t.statement)||e.isVariableStatement(t.statement))&&Le(t.label,e.Diagnostics.A_label_is_not_allowed_here)}(t);case 182:return void(x=!0);case 167:break;case 154: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()),W(r.locals,void 0,t,262144,526824)):ke(t,262144,526824)}else if(180===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()),W(n.locals,void 0,t,262144,526824)):Fe(t,262144,V(t))}else ke(t,262144,526824)}(t);case 155:return nt(t);case 241:return rt(t);case 190:return t.flowNode=D,rt(t);case 158:case 157:return function(e){return it(e,4|(e.questionToken?16777216:0),0)}(t);case 279:case 280:return it(t,4,0);case 282:return it(t,8,900095);case 164:case 165:case 166:return ke(t,131072,0);case 160:case 159:return it(t,8192|(t.questionToken?16777216:0),e.isObjectLiteralMethod(t)?0:103359);case 243:return function(t){n.isDeclarationFile||8388608&t.flags||e.isAsyncFunction(t)&&(P|=2048);Oe(t),w?(Me(t),Pe(t,16,110991)):ke(t,16,110991)}(t);case 161:return ke(t,16384,0);case 162:return it(t,32768,46015);case 163:return it(t,65536,78783);case 169:case 298:case 303:case 170:return function(t){var r=J(131072,V(t));z(r,t,131072);var n=J(2048,"__type");z(n,t,2048),n.members=e.createSymbolTable(),n.members.set(r.escapedName,r)}(t);case 172:case 302:case 185:return function(e){return Fe(e,2048,"__type")}(t);case 307:return function(t){Q(t);var r=e.getHostSignatureFromJSDoc(t);r&&160!==r.kind&&z(r.symbol,r,32)}(t);case 192:return function(t){var r;if(function(e){e[e.Property=1]="Property",e[e.Accessor=2]="Accessor"}(r||(r={})),w)for(var i=e.createUnderscoreEscapedMap(),a=0,o=t.properties;a<o.length;a++){var s=o[a];if(281!==s.kind&&75===s.name.kind){var c=s.name,u=279===s.kind||280===s.kind||160===s.kind?1:2,l=i.get(c.escapedText);if(l){if(1===u&&1===l){var _=e.getErrorSpanForNode(n,c);n.bindDiagnostics.push(e.createFileDiagnostic(n,_.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(t,4096,"__object")}(t);case 200:case 201:return function(t){n.isDeclarationFile||8388608&t.flags||e.isAsyncFunction(t)&&(P|=2048);D&&(t.flowNode=D);Oe(t);var r=t.name?t.name.escapedText:"__function";return Fe(t,16,r)}(t);case 195:switch(e.getAssignmentDeclarationKind(t)){case 7:return function(e){var t=et(e.arguments[0]),r=288===e.parent.parent.kind;t=Xe(t,e.arguments[0],r,!1,!1),Qe(e,t,!1)}(t);case 8:return function(e){if(!Ue(e))return;var t=tt(e.arguments[0],void 0,(function(e,t){return t&&z(t,e,67110400),t}));if(t){W(t.exports,t,e,1048580,0)}}(t);case 9:return function(e){var t=et(e.arguments[0].expression);t&&z(t,t.valueDeclaration,32);Qe(e,t,!0)}(t);case 0:break;default:return e.Debug.fail("Unknown call expression assignment declaration kind")}e.isInJSFile(t)&&function(t){!n.commonJsModuleIndicator&&e.isRequireCall(t,!1)&&Ue(t)}(t);break;case 213:case 244:return w=!0,function(t){if(244===t.kind)Pe(t,32,899503);else{var r=t.name?t.name.escapedText:"__class";Fe(t,32,r),t.name&&O.set(t.name.escapedText,!0)}var i=t.symbol,a=J(4194308,"prototype"),o=i.exports.get(a.escapedName);o&&(t.name&&(t.name.parent=t),n.bindDiagnostics.push(K(o.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(a))));i.exports.set(a.escapedName,a),a.parent=i}(t);case 245:return Pe(t,64,788872);case 246:return Pe(t,524288,788968);case 247:return function(t){return e.isEnumConst(t)?Pe(t,128,899967):Pe(t,256,899327)}(t);case 248:return function(t){if(Ne(t),e.isAmbientModule(t))if(e.hasModifier(t,1)&&Le(t,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(t))Ae(t);else{var r=void 0;if(10===t.name.kind){var i=t.name.text;e.hasZeroOrOneAsteriskCharacter(i)?r=e.tryParsePattern(i):Le(t.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,i)}var a=ke(t,512,110735);n.patternAmbientModules=e.append(n.patternAmbientModules,r&&{pattern:r,symbol:a})}else{var o=Ae(t);if(0!==o)(a=t.symbol).constEnumOnlyModule=!(304&a.flags)&&2===o&&!1!==a.constEnumOnlyModule}}(t);case 272:return function(e){return Fe(e,4096,"__jsxAttributes")}(t);case 271:return function(e,t,r){return ke(e,t,r)}(t,4,0);case 252:case 255:case 257:case 261:return ke(t,2097152,2097152);case 251:return function(t){t.modifiers&&t.modifiers.length&&n.bindDiagnostics.push(K(t,e.Diagnostics.Modifiers_cannot_appear_here));var r=e.isSourceFile(t.parent)?e.isExternalModule(t.parent)?t.parent.isDeclarationFile?void 0:e.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files:e.Diagnostics.Global_module_exports_may_only_appear_in_module_files:e.Diagnostics.Global_module_exports_may_only_appear_at_top_level;r?n.bindDiagnostics.push(K(t,r)):(n.symbol.globalExports=n.symbol.globalExports||e.createSymbolTable(),W(n.symbol.globalExports,n.symbol,t,2097152,2097152))}(t);case 254:return function(e){e.name&&ke(e,2097152,2097152)}(t);case 259:return function(e){f.symbol&&f.symbol.exports?e.exportClause||W(f.symbol.exports,f.symbol,e,8388608,0):Fe(e,8388608,V(e))}(t);case 258:return function(t){if(f.symbol&&f.symbol.exports){var r=e.exportAssignmentIsAlias(t)?2097152:4,n=W(f.symbol.exports,f.symbol,t,r,67108863);t.isExportEquals&&U(n,t)}else Fe(t,2097152,V(t))}(t);case 288:return Ke(t.statements),function(){if(Ne(n),e.isExternalModule(n))ze();else if(e.isJsonSourceFile(n)){ze();var t=n.symbol;W(n.symbol.exports,n.symbol,n,4,67108863),n.symbol=t}}();case 222:if(!e.isFunctionLike(t.parent))return;case 249:return Ke(t.statements);case 310:if(303===t.parent.kind)return nt(t);if(302!==t.parent.kind)break;case 316:var o=t,s=o.isBracketed||o.typeExpression&&297===o.typeExpression.type.kind?16777220:4;return ke(o,s,0);case 315:case 308:case 309:(b||(b=[])).push(t)}}(t),t.kind>151){var i=u;u=t;var o=Ee(t);0===o?H(t):function(t,r){var n=f,i=y,a=h;if(1&r?(201!==t.kind&&(y=f),f=h=t,32&r&&(f.locals=e.createSymbolTable()),Ce(f)):2&r&&((h=t).locals=void 0),4&r){var o=c,u=D,l=S,_=T,d=E,p=A,m=F,g=16&r&&!e.hasModifier(t,256)&&!t.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(t);g||(D=s({flags:2}),144&r&&(D.node=t)),E=g||161===t.kind?ne():void 0,S=void 0,T=void 0,A=void 0,F=!1,c=s,H(t),t.flags&=-2817,!(1&D.flags)&&8&r&&e.nodeIsPresent(t.body)&&(t.flags|=256,F&&(t.flags|=512),t.endFlowNode=D),288===t.kind&&(t.flags|=P),E&&(oe(E,D),D=_e(E),161===t.kind&&(t.returnFlowNode=D)),g||(D=u),S=l,T=_,E=d,A=p,F=m,c=o}else 64&r?(x=!1,H(t),t.flags=x?128|t.flags:-129&t.flags):H(t);f=n,y=i,h=a}(t,o),u=i}else if(!M&&0==(536870912&t.transformFlags)){j|=p(t,0);i=u;1===t.kind&&(u=t),je(t),u=i}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 Ke(t){if(!w)for(var r=0,n=t;r<n.length;r++){var i=n[r];if(!e.isPrologueDirective(i))return;if(Je(i))return void(w=!0)}}function Je(t){var r=e.getSourceTextOfNodeFromSourceFile(n,t.expression);return'"use strict"'===r||"'use strict'"===r}function ze(){Fe(n,512,'"'+e.removeFileExtension(n.fileName)+'"')}function Ue(e){return!n.externalModuleIndicator&&(n.commonJsModuleIndicator||(n.commonJsModuleIndicator=e,ze()),!0)}function Ve(t){if(Ue(t)){var r=tt(t.left.expression,void 0,(function(e,t){return t&&z(t,e,67110400),t}));if(r){var n=e.isClassExpression(t.right)?1048612:1048580;W(r.exports,r,t.left,n,0)}}}function qe(t){e.Debug.assert(e.isInJSFile(t));var r=e.getThisContainer(t,!1);switch(r.kind){case 243:case 200: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=et(i.expression.expression,y))}n&&n.valueDeclaration&&(n.members=n.members||e.createSymbolTable(),e.hasDynamicName(t)?We(t,n):W(n.members,n,t,67108868,0),z(n,n.valueDeclaration,32));break;case 161:case 158:case 160:case 162:case 163:var a=r.parent,o=e.hasModifier(r,32)?a.symbol.exports:a.symbol.members;e.hasDynamicName(t)?We(t,a.symbol):W(o,a.symbol,t,67108868,0,!0);break;case 288:r.commonJsModuleIndicator?W(r.symbol.exports,r.symbol,t,1048580,0):ke(t,1,111550);break;default:e.Debug.failBadSyntaxKind(r)}}function We(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 He(e,t){var r=e.expression,n=r.expression;e.parent=t,n.parent=r,r.parent=e,Ze(n,e,!0,!0)}function Ye(e){e.expression.parent=e,Ze(e.expression,e,!1,!1)}function Xe(t,r,i,a,o){if(i&&!a){t=tt(r,t,(function(t,r,i){return r?(z(r,t,67110400),r):W(i?i.exports:n.jsGlobalAugmentations||(n.jsGlobalAugmentations=e.createSymbolTable()),i,t,67110400,110735)}))}return o&&t&&t.valueDeclaration&&z(t,t.valueDeclaration,32),t}function Qe(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),W(i,r,t,67108864|a,-67108865&o)}}function $e(t){return e.isBinaryExpression(t.parent)?288===function(t){for(;e.isBinaryExpression(t.parent);)t=t.parent;return t.parent}(t.parent).parent.kind:288===t.parent.parent.kind}function Ze(e,t,r,n){var i=et(e),a=$e(t);Qe(t,i=Xe(i,t.expression,a,r,n),r)}function et(t,r){if(void 0===r&&(r=f),e.isIdentifier(t))return d(r,t.escapedText);var n=et(t.expression);return n&&n.exports&&n.exports.get(e.getElementOrPropertyAccessName(t))}function tt(t,r,i){if(_(n,t))return n.symbol;if(e.isIdentifier(t))return i(t,et(t),r);var a=tt(t.expression,r,i);return i(e.getNameOrArgument(t),a&&a.exports&&a.exports.get(e.getElementOrPropertyAccessName(t)),a)}function rt(t){w&&Ie(t,t.name),e.isBindingPattern(t.name)||(e.isBlockOrCatchScoped(t)?Pe(t,2,111551):e.isParameterDeclaration(t)?ke(t,1,111551):ke(t,1,111550))}function nt(t){if((310!==t.kind||303===f.kind)&&(!w||8388608&t.flags||Ie(t,t.name),e.isBindingPattern(t.name)?Fe(t,1,"__"+t.parent.parameters.indexOf(t)):ke(t,1,111551),e.isParameterPropertyDeclaration(t,t.parent))){var r=t.parent.parent;W(r.symbol.members,r.symbol,t,4|(t.questionToken?16777216:0),0)}}function it(t,r,i){return n.isDeclarationFile||8388608&t.flags||!e.isAsyncFunction(t)||(P|=2048),D&&e.isObjectLiteralOrClassExpressionMethod(t)&&(t.flowNode=D),e.hasDynamicName(t)?Fe(t,r,"__computed"):ke(t,r,i)}}();function l(t){return!(e.isFunctionDeclaration(t)||function(t){switch(t.kind){case 245:case 246:return!0;case 248:return 1!==i(t);case 247: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 _(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=d(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 d(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 p(t,r){var n=t.kind;switch(n){case 195:return function(t,r){var n=r,i=e.skipOuterExpressions(t.expression),a=t.expression;32&t.flags&&(n|=4);t.typeArguments&&(n|=1);(4096&r||e.isSuperOrSuperProperty(i))&&(n|=128,e.isSuperProperty(i)&&(n|=2048));95===a.kind&&(n|=524288);return t.transformFlags=536870912|n,-536875009&n}(t,r);case 196:return function(e,t){var r=t;e.typeArguments&&(r|=1);4096&t&&(r|=128);return e.transformFlags=536870912|r,-536875009&r}(t,r);case 248:return function(t,r){var n=1;0==(2&e.getModifierFlags(t))&&(n|=r);return t.transformFlags=536870912|n,-537168897&n}(t,r);case 199:return function(e,t){var r=t,n=e.expression.kind;216!==n&&198!==n||(r|=1);return e.transformFlags=536870912|r,-536870913&r}(t,r);case 208:return function(e,t){var r=t,n=e.operatorToken.kind,i=e.left.kind;60===n?r|=4:62===n&&192===i?r|=656:62===n&&191===i?r|=640:42!==n&&66!==n||(r|=64);return e.transformFlags=536870912|r,-536870913&r}(t,r);case 225:return function(e,t){var r=t;return e.transformFlags=536870912|r,-536870913&r}(t,r);case 155:return function(t,r){var n=r,i=t.name,a=t.initializer,o=t.dotDotDotToken;(t.questionToken||t.type||1024&r&&e.some(t.decorators)||e.isThisIdentifier(i))&&(n|=1);e.hasModifier(t,92)&&(n|=1025);8192&r&&(n|=16);(65536&r||a||o)&&(n|=128);return t.transformFlags=536870912|n,-536870913&n}(t,r);case 201:return function(t,r){var n=128|r;(e.hasModifier(t,2270)||t.typeParameters||t.type)&&(n|=1);e.hasModifier(t,256)&&(n|=32);8192&r&&(n|=16);return t.transformFlags=536870912|n,-537371649&n}(t,r);case 200:return function(t,r){var n=r;(e.hasModifier(t,2270)||t.typeParameters||t.type)&&(n|=1);e.hasModifier(t,256)&&(n|=t.asteriskToken?16:32);8192&r&&(n|=16);t.asteriskToken&&(n|=256);return t.transformFlags=536870912|n,-537373697&n}(t,r);case 243:return function(t,r){var n,i=e.getModifierFlags(t);!t.body||2&i?n=1:(n=262144|r,(2270&i||t.typeParameters||t.type)&&(n|=1),256&i&&(n|=t.asteriskToken?16:32),8192&r&&(n|=16),t.asteriskToken&&(n|=256));return t.transformFlags=536870912|n,-537373697&n}(t,r);case 241:return function(e,t){var r=t;r|=65664,8192&t&&(r|=16);e.type&&(r|=1);return e.transformFlags=536870912|r,-536870913&r}(t,r);case 242:return function(e,t){var r=262144|t;65536&t&&(r|=128);3&e.flags&&(r|=32896);return e.transformFlags=536870912|r,-536944641&r}(t,r);case 224:return function(t,r){var n,i=t.declarationList.transformFlags;e.hasModifier(t,2)?n=1:(n=r,65536&i&&(n|=128));return t.transformFlags=536870912|n,-536870913&n}(t,r);case 237:return function(t,r){var n=r;32768&r&&e.isIterationStatement(t,!0)&&(n|=128);return t.transformFlags=536870912|n,-536870913&n}(t,r);case 244:return function(t,r){var n;e.hasModifier(t,2)?n=1:(n=128|r,(1024&r||t.typeParameters)&&(n|=1));return t.transformFlags=536870912|n,-536888321&n}(t,r);case 213:return function(e,t){var r=128|t;(1024&t||e.typeParameters)&&(r|=1);return e.transformFlags=536870912|r,-536888321&r}(t,r);case 277:return function(t,r){var n=r;switch(t.token){case 89:n|=128;break;case 112:n|=1;break;default:e.Debug.fail("Unexpected token for heritage clause")}return t.transformFlags=536870912|n,-536870913&n}(t,r);case 278:return function(t,r){var n=r;t.variableDeclaration?e.isBindingPattern(t.variableDeclaration.name)&&(n|=128):n|=8;return t.transformFlags=536870912|n,-536879105&n}(t,r);case 215:return function(e,t){var r=128|t;e.typeArguments&&(r|=1);return e.transformFlags=536870912|r,-536870913&r}(t,r);case 161:return function(t,r){var n=r;!e.hasModifier(t,2270)&&t.body||(n|=1);8192&r&&(n|=16);return t.transformFlags=536870912|n,-537372673&n}(t,r);case 158:return function(t,r){var n=1048576|r;(e.some(t.decorators)||e.hasModifier(t,2270)||t.type)&&(n|=1);(e.isComputedPropertyName(t.name)||e.hasStaticModifier(t)&&t.initializer)&&(n|=1024);return t.transformFlags=536870912|n,f(t.name,-536872961&n)}(t,r);case 160:return function(t,r){var n=128|r;(t.decorators||e.hasModifier(t,2270)||t.typeParameters||t.type||!t.body)&&(n|=1);8192&r&&(n|=16);e.hasModifier(t,256)&&(n|=t.asteriskToken?16:32);t.asteriskToken&&(n|=256);return t.transformFlags=536870912|n,f(t.name,-537372673&n)}(t,r);case 162:case 163:return function(t,r){var n=r;(t.decorators||e.hasModifier(t,2270)||t.type||!t.body)&&(n|=1);8192&r&&(n|=16);return t.transformFlags=536870912|n,f(t.name,-537372673&n)}(t,r);case 252:return function(t,r){var n=r;e.isExternalModuleImportEqualsDeclaration(t)||(n|=1);return t.transformFlags=536870912|n,-536870913&n}(t,r);case 193:case 194:return function(e,t){var r=t;32&e.flags&&(r|=4);101===e.expression.kind&&(r|=48);return e.transformFlags=536870912|r,-536870913&r}(t,r);default:return function(e,t,r){var n=r,i=536870912;switch(t){case 125:case 205:n|=48;break;case 198:case 216:case 319:n|=1,i=536870912;break;case 118:case 116:case 117:case 121:case 129:case 80:case 247:case 282:case 217:case 137:n|=1;break;case 264:case 265:case 266:case 11:case 267:case 268:case 269:case 270:case 271:case 272:case 273:case 274:n|=2;break;case 14:case 15:case 16:case 17:case 210:case 197:case 280:case 119:case 218:n|=128;break;case 10:e.hasExtendedUnicodeEscape&&(n|=128);break;case 8:384&e.numericLiteralFlags&&(n|=128);break;case 9:n|=4;break;case 231:e.awaitModifier&&(n|=16),n|=128;break;case 211:n|=131216;break;case 124:case 139:case 150:case 136:case 140:case 142:case 127:case 143:case 109:case 154:case 157:case 159:case 164:case 165:case 166:case 167:case 168:case 169:case 170:case 171:case 172:case 173:case 174:case 175:case 176:case 177:case 178:case 179:case 180:case 181:case 245:case 246:case 182:case 183:case 184:case 185:case 186:case 251:n=1,i=-2;break;case 153:n|=16384;break;case 212:n|=4224;break;case 281:n|=8208;break;case 101:n|=128,i=536870912;break;case 103:n|=2048;break;case 188:n|=65664,4096&r&&(n|=8208),i=536875008;break;case 189:n|=65664,i=536875008;break;case 190:n|=128,e.dotDotDotToken&&(n|=4096);break;case 156:n|=1025;break;case 192:i=536896512,16384&r&&(n|=128),8192&r&&(n|=16);break;case 191:i=536875008;break;case 227:case 228:case 229:case 230:32768&r&&(n|=128);break;case 288:break;case 234:n|=262160;break;case 232:case 233:n|=262144}return e.transformFlags=536870912|n,n&~i}(t,n,r)}}function f(e,t){return t|2048&e.transformFlags}function m(e){if(e>=167&&e<=187)return-2;switch(e){case 195:case 196:case 191:return 536875008;case 248:return 537168896;case 155:return 536870912;case 201:return 537371648;case 200:case 243:return 537373696;case 242:return 536944640;case 244:case 213:return 536888320;case 161:return 537372672;case 160:case 162:case 163:return 537372672;case 124:case 139:case 150:case 136:case 142:case 140:case 127:case 143:case 109:case 154:case 157:case 159:case 164:case 165:case 166:case 245:case 246:return-2;case 192:return 536896512;case 278:return 536879104;case 188:case 189:return 536875008;case 198:case 216:case 319:case 199:case 101:return 536870912;case 193:case 194: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),u(t,r),e.perfLogger.logStopBindFile(),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind")},e.isExportsOrModuleExportsOrAlias=_,e.computeTransformFlagsForNode=p,e.getTransformFlagsSubtreeExclusions=m}(s||(s={})),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 m(t),{visitedTypes:e.getOwnValues(p),visitedSymbols:e.getOwnValues(f)}}finally{e.clear(p),e.clear(f)}},walkSymbol:function(t){try{return h(t),{visitedTypes:e.getOwnValues(p),visitedSymbols:e.getOwnValues(f)}}finally{e.clear(p),e.clear(f)}}};function m(t){if(t&&(!p[t.id]&&(p[t.id]=t,!h(t.symbol)))){if(524288&t.flags){var r=t,n=r.objectFlags;4&n&&function(t){m(t.target),e.forEach(_(t),m)}(t),32&n&&function(e){m(e.typeParameter),m(e.constraintType),m(e.templateType),m(e.modifiersType)}(t),3&n&&(y(a=t),e.forEach(a.typeParameters,m),e.forEach(i(a),m),m(a.thisType)),24&n&&y(r)}var a;262144&t.flags&&function(e){m(u(e))}(t),3145728&t.flags&&function(t){e.forEach(t.types,m)}(t),4194304&t.flags&&function(e){m(e.type)}(t),8388608&t.flags&&function(e){m(e.objectType),m(e.indexType),m(e.constraint)}(t)}}function g(i){var a=r(i);a&&m(a.type),e.forEach(i.typeParameters,m);for(var o=0,s=i.parameters;o<s.length;o++){h(s[o])}m(t(i)),m(n(i))}function y(e){m(c(e,0)),m(c(e,1));for(var t=a(e),r=0,n=t.callSignatures;r<n.length;r++){g(n[r])}for(var i=0,o=t.constructSignatures;i<o.length;i++){g(o[i])}for(var s=0,u=t.properties;s<u.length;s++){h(u[s])}}function h(t){if(!t)return!1;var r=e.getSymbolId(t);return!f[r]&&(f[r]=t,!d(t)||(m(o(t)),t.exports&&t.exports.forEach(h),e.forEach(t.declarations,(function(e){if(e.type&&171===e.type.kind){var t=e.type;h(s(l(t.exprName)))}})),!1))}}}}(s||(s={})),function(e){var n,a,o,s,c=/^".+"$/,u=1,l=1,_=1,d=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"}(n||(n={})),function(e){e[e.Yield=0]="Yield",e[e.Return=1]="Return",e[e.Next=2]="Next"}(a||(a={})),function(e){e[e.Normal=0]="Normal",e[e.GeneratorYield=1]="GeneratorYield"}(o||(o={})),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"}(s||(s={}));var p,m,g,y,h,v,b,x,D=e.createMapFromTemplate({string:1,number:2,bigint:4,boolean:8,symbol:16,undefined:65536,object:32,function:64}),S=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.JSDocTypeReference=6]="JSDocTypeReference",e[e.ResolvedTypeArguments=7]="ResolvedTypeArguments"}(p||(p={})),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"}(m||(m={})),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"}(g||(g={})),function(e){e[e.None=0]="None",e[e.Bivariant=1]="Bivariant",e[e.Strict=2]="Strict"}(y||(y={})),function(e){e[e.IncludeReadonly=1]="IncludeReadonly",e[e.ExcludeReadonly=2]="ExcludeReadonly",e[e.IncludeOptional=4]="IncludeOptional",e[e.ExcludeOptional=8]="ExcludeOptional"}(h||(h={})),function(e){e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.Both=3]="Both"}(v||(v={})),function(e){e.resolvedExports="resolvedExports",e.resolvedMembers="resolvedMembers"}(b||(b={})),function(e){e[e.Local=0]="Local",e[e.Parameter=1]="Parameter"}(x||(x={}));var T,E,C,k=e.and(P,(function(t){return!e.isAccessor(t)}));function N(e){return e.id||(e.id=l,l++),e.id}function A(e){return e.id||(e.id=u,u++),e.id}function F(t,r){var n=e.getModuleInstanceState(t);return 1===n||r&&2===n}function P(e){return 243!==e.kind&&160!==e.kind||!!e.body}function w(t){switch(t.parent.kind){case 257:case 261:return e.isIdentifier(t);default:return e.isDeclarationName(t)}}function I(e){switch(e.kind){case 254:case 252:case 255:case 257:return!0;case 75:return 257===e.parent.kind;default:return!1}}function O(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function M(e){return!!(1&e.flags)}function L(e){return!!(2&e.flags)}function R(e){return!!(4&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"}(E||(E={})),e.getNodeId=N,e.getSymbolId=A,e.isInstantiatedModule=F,e.createTypeChecker=function(n,a){var o,s,u,l,p=e.memoize((function(){var t=e.createMap();return n.getSourceFiles().forEach((function(r){r.resolvedModules&&e.forEachEntry(r.resolvedModules,(function(e){e&&e.packageId&&t.set(e.packageId.name,!0)}))})),t})),m=e.objectAllocator.getSymbolConstructor(),g=e.objectAllocator.getTypeConstructor(),y=e.objectAllocator.getSignatureConstructor(),h=0,v=0,b=0,x=0,T=0,E=0,B=e.createSymbolTable(),j=e.identity,K=n.getCompilerOptions(),J=e.getEmitScriptTarget(K),z=e.getEmitModuleKind(K),U=e.getAllowSyntheticDefaultImports(K),V=e.getStrictOptionValue(K,"strictNullChecks"),q=e.getStrictOptionValue(K,"strictFunctionTypes"),W=e.getStrictOptionValue(K,"strictBindCallApply"),G=e.getStrictOptionValue(K,"strictPropertyInitialization"),H=e.getStrictOptionValue(K,"noImplicitAny"),Y=e.getStrictOptionValue(K,"noImplicitThis"),X=!!K.keyofStringsOnly,Q=K.suppressExcessPropertyErrors?0:32768,$=function(){var t,r=n.getResolvedTypeReferenceDirectives();r&&(t=e.createMap(),r.forEach((function(r,i){r&&r.resolvedFileName&&function r(i,a){if(t.has(i.path))return;t.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=n.getSourceFile(u);l&&r(l,a)}}(n.getSourceFile(r.resolvedFileName),i)})));return{getReferencedExportContainer:hb,getReferencedImportDeclaration:vb,getReferencedDeclarationWithCollidingName:xb,isDeclarationWithCollidingName:Db,isValueAliasDeclaration:function(t){return!(t=e.getParseTreeNode(t))||Sb(t)},hasGlobalName:Jb,isReferencedAliasDeclaration:function(t,r){return!(t=e.getParseTreeNode(t))||function t(r,n){if(e.isAliasSymbolDeclaration(r)){var i=ri(r);if(i&&_n(i).referenced)return!0;var a=_n(i).target;if(a&&1&e.getModifierFlags(r)&&111551&a.flags&&(K.preserveConstEnums||!Cb(a)))return!0}if(n)return!!e.forEachChild(r,(function(e){return t(e,n)}));return!1}(t,r)},getNodeCheckFlags:function(t){return(t=e.getParseTreeNode(t))?wb(t):0},isTopLevelValueImportEqualsWithEntityName:Tb,isDeclarationVisible:Ui,isImplementationOfOverload:kb,isRequiredInitializedParameter:Nb,isOptionalUninitializedParameterProperty:Ab,isExpandoFunctionDeclaration:Fb,getPropertiesOfContainerFunction:Pb,createTypeOfDeclaration:Bb,createReturnTypeOfSignatureDeclaration:jb,createTypeOfExpression:Kb,createLiteralConstValue:qb,isSymbolAccessible:Ei,isEntityNameVisible:Fi,getConstantValue:function(t){var r=e.getParseTreeNode(t,Ob);return r?Mb(r):void 0},collectLinkedAliases:Vi,getReferencedValueDeclaration:Ub,getTypeReferenceSerializationKind:Rb,isOptionalParameter:Ps,moduleExportsSomeValue:yb,isArgumentsLocalBinding:gb,getExternalModuleFileFromDeclaration:Wb,getTypeReferenceDirectivesForEntityName:function(e){if(!t)return;var r=790504;(75===e.kind&&Md(e)||193===e.kind&&!function(e){return e.parent&&215===e.parent.kind&&e.parent.parent&&277===e.parent.parent.kind}(e))&&(r=1160127);var n=Kn(e,r,!0);return n&&n!==ge?i(n,r):void 0},getTypeReferenceDirectivesForSymbol:i,isLiteralConstDeclaration:Vb,isLateBound:function(t){var r=e.getParseTreeNode(t,e.isDeclaration),n=r&&ri(r);return!!(n&&4096&e.getCheckFlags(n))},getJsxFactoryEntity:function(t){return t?(Yr(t),e.getSourceFileOfNode(t).localJsxFactory||Ht):Ht},getAllAccessorDeclarations:function(t){var r=163===(t=e.getParseTreeNode(t,e.isGetOrSetAccessorDeclaration)).kind?162:163,n=e.getDeclarationOfKind(ri(t),r);return{firstAccessor:n&&n.pos<t.pos?n:t,secondAccessor:n&&n.pos<t.pos?t:n,setAccessor:163===t.kind?t:n,getAccessor:162===t.kind?t:n}},getSymbolOfExternalModuleSpecifier:function(e){return Un(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=dn(t);return!!n&&e.contains(n.capturedBlockScopeBindings,ri(r))}(n,i)},getDeclarationStatementsForSourceFile:function(t,r,n,i){var a=e.getParseTreeNode(t);e.Debug.assert(a&&288===a.kind,"Non-sourcefile node passed into getDeclarationsForSourceFile");var o=ri(t);return o?o.exports?Z.symbolTableToDeclarationStatements(o.exports,t,r,n,i):[]:t.locals?Z.symbolTableToDeclarationStatements(t.locals,t,r,n,i):[]}};function i(r,n){if(t&&function(r){if(!r.declarations)return!1;var n=r;for(;;){var i=ni(n);if(!i)break;n=i}if(n.valueDeclaration&&288===n.valueDeclaration.kind&&512&n.flags)return!1;for(var a=0,o=r.declarations;a<o.length;a++){var s=o[a],c=e.getSourceFileOfNode(s);if(t.has(c.path))return!0}return!1}(r)){for(var i,a=0,o=r.declarations;a<o.length;a++){var s=o[a];if(s.symbol&&s.symbol.flags&n){var c=e.getSourceFileOfNode(s),u=t.get(c.path);if(!u)return;(i||(i=[])).push(u)}}return i}}}(),Z=function(){return{typeToTypeNode:function(e,t,r,n){return i(t,r,n,(function(t){return s(e,t)}))},indexInfoToIndexSignatureDeclaration:function(e,t,r,n,a){return i(r,n,a,(function(r){return d(e,t,r)}))},signatureToSignatureDeclaration:function(e,t,r,n,a){return i(r,n,a,(function(r){return p(e,t,r)}))},symbolToEntityName:function(e,t,r,n,a){return i(r,n,a,(function(r){return C(e,r,t,!1)}))},symbolToExpression:function(e,t,r,n,a){return i(r,n,a,(function(r){return k(e,r,t)}))},symbolToTypeParameterDeclarations:function(e,t,r,n){return i(t,r,n,(function(t){return b(e,t)}))},symbolToParameterDeclaration:function(e,t,r,n){return i(t,r,n,(function(t){return g(e,t)}))},typeParameterToDeclaration:function(e,t,r,n){return i(t,r,n,(function(t){return m(e,t)}))},symbolTableToDeclarationStatements:function(a,o,c,u,l){return i(o,c,u,(function(i){return function(i,a,o){var c,u=U(e.createProperty,160,!0),l=U((function(t,r,n,i,a,o){return e.createPropertySignature(r,n,i,a,o)}),159,!1),_=a.enclosingDeclaration,f=[],g=e.createMap(),y=a;a=r(r({},y),{usedSymbolNames:e.createMap(),remappedSymbolNames:e.createMap(),tracker:r(r({},y.tracker),{trackSymbol:function(e,t,r){if(0===Ei(e,t,r,!1).accessibility){var n=v(e,a,r);4&e.flags||w(n[0])}else y.tracker&&y.tracker.trackSymbol&&y.tracker.trackSymbol(e,t,r)}})}),y.usedSymbolNames&&y.usedSymbolNames.forEach((function(e,t){a.usedSymbolNames.set(t,!0)}));e.forEachEntry(i,(function(t,r){Q(t,e.unescapeLeadingUnderscores(r))}));var h=!o,b=i.get("export=");b&&i.size>1&&2097152&b.flags&&(i=e.createSymbolTable()).set("export=",b);return N(i),function(r){r=function(t){var r=e.find(t,(function(t){return e.isExportDeclaration(t)&&!t.moduleSpecifier&&!!t.exportClause}));if(r){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,S))return void e.forEach(n,T)}return r}));e.length(n)?r.exportClause.elements=e.createNodeArray(n):t=e.filter(t,(function(e){return e!==r}))}return t}(r=function(r){var n=e.filter(r,(function(t){return e.isExportDeclaration(t)&&!t.moduleSpecifier&&!!t.exportClause}));if(e.length(n)>1){var i=e.filter(r,(function(t){return!e.isExportDeclaration(t)||!!t.moduleSpecifier||!t.exportClause}));r=t(i,[e.createExportDeclaration(void 0,void 0,e.createNamedExports(e.flatMap(n,(function(e){return e.exportClause.elements}))),void 0)])}var a=e.filter(r,(function(t){return e.isExportDeclaration(t)&&!!t.moduleSpecifier&&!!t.exportClause}));if(e.length(a)>1){var o=e.group(a,(function(t){return e.isStringLiteral(t.moduleSpecifier)?">"+t.moduleSpecifier.text:">"}));if(o.length!==a.length)for(var s=function(n){n.length>1&&(r=t(e.filter(r,(function(e){return-1===n.indexOf(e)})),[e.createExportDeclaration(void 0,void 0,e.createNamedExports(e.flatMap(n,(function(e){return e.exportClause.elements}))),n[0].moduleSpecifier)]))},c=0,u=o;c<u.length;c++){var l=u[c];s(l)}}return r}(r=function(r){var n=e.find(r,e.isExportAssignment),i=e.find(r,e.isModuleDeclaration);if(i&&n&&n.isExportEquals&&e.isIdentifier(n.expression)&&e.isIdentifier(i.name)&&e.idText(i.name)===e.idText(n.expression)&&i.body&&e.isModuleBlock(i.body)){var a=e.filter(r,(function(t){return!!(1&e.getModifierFlags(t))}));e.length(a)&&(i.body.statements=e.createNodeArray(t(i.body.statements,[e.createExportDeclaration(void 0,void 0,e.createNamedExports(e.map(e.flatMap(a,(function(t){return function(t){if(e.isVariableStatement(t))return e.filter(e.map(t.declarationList.declarations,e.getNameOfDeclaration),x);return e.filter([e.getNameOfDeclaration(t)],x)}(t)})),(function(t){return e.createExportSpecifier(void 0,t)}))),void 0)]))),e.find(r,(function(t){return t!==i&&e.nodeHasName(t,i.name)}))||(f=[],e.forEach(i.body.statements,(function(e){I(e,0)})),r=t(e.filter(r,(function(e){return e!==i&&e!==n})),f))}return r}(r))),_&&(e.isSourceFile(_)&&e.isExternalOrCommonJsModule(_)||e.isModuleDeclaration(_))&&(!e.some(r,e.isExternalModuleIndicator)||!e.hasScopeMarker(r)&&e.some(r,e.needsScopeMarker))&&r.push(e.createEmptyExports());return r}(f);function x(e){return!!e&&75===e.kind}function S(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)||rb(t)}function T(t){var r=-3&(1|e.getModifierFlags(t));t.modifiers=e.createNodeArray(e.createModifiersFromModifierFlags(r)),t.modifierFlagsCache=0}function N(t,r,n){var i=c;r||(c=e.createMap()),t.forEach((function(e){P(e,!1,!!n)})),r||c.forEach((function(e){P(e,!0,!!n)})),c=i}function P(n,i,o){var c=ti(n);if(!g.has(""+A(c))&&(g.set(""+A(c),!0),!i||e.length(n.declarations)&&e.some(n.declarations,(function(t){return!!e.findAncestor(t,(function(e){return e===_}))})))){var d=a;a=function(t){var n=r({},t);n.typeParameterNames&&(n.typeParameterNames=e.cloneMap(n.typeParameterNames));n.typeParameterNamesByText&&(n.typeParameterNamesByText=e.cloneMap(n.typeParameterNamesByText));n.typeParameterSymbolList&&(n.typeParameterSymbolList=e.cloneMap(n.typeParameterSymbolList));return n}(a);var p=function(r,n,i){var o=e.unescapeLeadingUnderscores(r.escapedName),c="default"===r.escapedName;if(e.isStringANonContextualKeyword(o)&&!c)return void(a.encounteredError=!0);var _=c&&!!(-113&r.flags||16&r.flags&&e.length(ts(wa(r))))&&!(2097152&r.flags);_&&(n=!0);var d=(n?0:1)|(c&&!_?512:0),p=1536&r.flags&&7&r.flags&&"export="!==r.escapedName,f=p&&z(wa(r),r);(16&r.flags||f)&&M(wa(r),r,Q(r,o),d);524288&r.flags&&function(t,r,n){var i=Ya(t),o=_n(t).typeParameters,c=e.map(o,(function(e){return m(e,a)})),u=e.find(t.declarations,e.isJSDocTypeAlias),l=u?u.comment||u.parent.comment:void 0,_=a.flags;a.flags|=8388608,I(e.setSyntheticLeadingComments(e.createTypeAliasDeclaration(void 0,void 0,Q(t,r),c,s(i,a)),l?[{kind:3,text:"*\n * "+l.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),n),a.flags=_}(r,o,d);!(7&r.flags&&"export="!==r.escapedName)||4194304&r.flags||32&r.flags||f||function(t,r,n,i,a,o){if(a)j(t);else{var s=wa(t),c=Q(t,r);if(16&t.flags||!z(s,t)){var u=2&t.flags?Bp(t)?2:1:void 0,l=!i&&4&t.flags?Y(c,t):c,_=t.declarations&&e.find(t.declarations,(function(t){return e.isVariableDeclaration(t)}));_&&e.isVariableDeclarationList(_.parent)&&1===_.parent.declarations.length&&(_=_.parent.parent),I(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(l,q(s,t))],u)),_),l!==c?-2&o:o),l===c||n||I(e.createExportDeclaration(void 0,void 0,e.createNamedExports([e.createExportSpecifier(l,c)])),0)}else M(s,t,c,o)}}(r,o,n,_,i,d);384&r.flags&&function(t,r,n){I(e.createEnumDeclaration(void 0,e.createModifiersFromModifierFlags(hy(t)?2048:0),Q(t,r),e.map(e.filter(ts(wa(t)),(function(e){return!!(8&e.flags)})),(function(t){var r=t.declarations&&t.declarations[0]&&e.isEnumMember(t.declarations[0])&&Mb(t.declarations[0]);return e.createEnumMember(e.unescapeLeadingUnderscores(t.escapedName),void 0===r?void 0:e.createLiteral(r))}))),n)}(r,o,d);32&r.flags&&(4&r.flags?R(r,Q(r,o),d):function(r,n,i){for(var o=ja(r),c=e.map(o,(function(e){return m(e,a)})),l=Ha(r),_=Wa(l),d=wa(r),p=qa(d),f=e.length(_)?[e.createHeritageClause(89,e.map(_,(function(t){return function(t,r,n){var i=H(t);if(i)return i;var o=Y(n+"_base");return I(e.createVariableStatement(undefined,e.createVariableDeclarationList([e.createVariableDeclaration(o,s(r,a))],2)),0),e.createExpressionWithTypeArguments(void 0,e.createIdentifier(o))}(t,p,n)})))]:void 0,g=e.flatMap(ts(l),(function(e){return u(e,!1,_[0])})),y=528&r.flags?[]:e.flatMap(e.filter(ts(d),(function(e){return!(4194304&e.flags)&&"prototype"!==e.escapedName})),(function(e){return u(e,!0,p)})),h=W(1,d,_[0],161),v=0,b=h;v<b.length;v++){var x=b[v];x.type=void 0,x.typeParameters=void 0}var D=G(l,_[0]);I(e.setTextRange(e.createClassDeclaration(void 0,void 0,n,c,f,t(D,y,h,g)),r.declarations&&e.filter(r.declarations,(function(t){return e.isClassDeclaration(t)||e.isClassExpression(t)}))[0]),i)}(r,Q(r,o),d));(1536&r.flags&&(!p||function(t){return e.every(O(t),(function(e){return!(111551&On(e).flags)}))}(r))||f)&&function(t,r,n){var i=O(t),a=e.arrayToMultiMap(i,(function(e){return e.parent&&e.parent===t?"real":"merged"})),o=a.get("real")||e.emptyArray,s=a.get("merged")||e.emptyArray;if(e.length(o)){var c=Q(t,r);L(o,c,n,!!(67108880&t.flags))}if(e.length(s)){c=Q(t,r);var u=e.createModuleBlock([e.createExportDeclaration(void 0,void 0,e.createNamedExports(e.map(e.filter(s,(function(e){return"export="!==e.escapedName})),(function(t){var r=e.unescapeLeadingUnderscores(t.escapedName),n=Q(t,r),i=t.declarations&&En(t),a=i&&wn(i,!0);w(a||t);var o=a?Q(a,e.unescapeLeadingUnderscores(a.escapedName)):n;return e.createExportSpecifier(r===o?void 0:o,r)}))))]);I(e.createModuleDeclaration(void 0,void 0,e.createIdentifier(c),u,16),0)}}(r,o,d);64&r.flags&&function(r,n,i){var o=Ha(r),s=ja(r),c=e.map(s,(function(e){return m(e,a)})),u=Wa(o),_=e.length(u)?iu(u):void 0,d=e.flatMap(ts(o),(function(e){return function(e,t){return l(e,!1,t)}(e,_)})),p=W(0,o,_,164),f=W(1,o,_,165),g=G(o,_),y=e.length(u)?[e.createHeritageClause(89,e.mapDefined(u,(function(e){return H(e)})))]:void 0;I(e.createInterfaceDeclaration(void 0,void 0,Q(r,n),c,y,t(g,f,p,d)),i)}(r,o,d);2097152&r.flags&&R(r,Q(r,o),d);4&r.flags&&"export="===r.escapedName&&j(r);if(8388608&r.flags)for(var g=0,y=r.declarations;g<y.length;g++){var h=y[g],v=zn(h,h.moduleSpecifier);v&&I(e.createExportDeclaration(void 0,void 0,void 0,e.createLiteral(D(v,a))),0)}_&&I(e.createExportAssignment(void 0,void 0,!1,e.createIdentifier(Q(r,o))),0)}(n,i,o);return a=d,p}}function w(t){e.some(t.declarations,e.isParameterDeclaration)||(e.Debug.assertDefined(c),Y(e.unescapeLeadingUnderscores(t.escapedName),t),c.set(""+A(t),t))}function I(t,r){var n=0;1&r&&_&&function(t){return e.isSourceFile(t)&&(e.isExternalOrCommonJsModule(t)||e.isJsonSourceFile(t))||e.isAmbientModule(t)&&!e.isGlobalScopeAugmentation(t)}(_)&&S(t)&&(n|=1),!h||1&n||_&&8388608&_.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),f.push(t)}function O(t){return t.exports?e.filter(e.arrayFrom(t.exports.values()),(function(e){return!(4194304&e.flags||"prototype"===e.escapedName)})):[]}function M(t,r,n,i){for(var o=0,s=xs(t,0);o<s.length;o++){var c=s[o],u=p(c,243,a);u.name=e.createIdentifier(n),I(e.setTextRange(u,c.declaration),i)}1536&r.flags&&r.exports&&r.exports.size||L(e.filter(ts(t),(function(e){return!(4194304&e.flags||"prototype"===e.escapedName)})),n,i,!0)}function L(t,n,i,o){if(e.length(t)){var s=e.arrayToMultiMap(t,(function(t){return!e.length(t.declarations)||e.some(t.declarations,(function(t){return e.getSourceFileOfNode(t)===e.getSourceFileOfNode(a.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=_,c.locals=e.createSymbolTable(t),c.symbol=t[0].parent;var u=f;f=[];var l=h;h=!1;var d=r(r({},a),{enclosingDeclaration:c}),p=a;a=d,N(e.createSymbolTable(s),o,!0),a=p,h=l;var m=f;f=u,c.flags^=8,c.parent=void 0,c.locals=void 0,c.symbol=void 0,c.body=e.createModuleBlock(m),I(c,i)}}function R(t,r,n){var i=En(t);if(!i)return e.Debug.fail();var o=ti(wn(i,!0));if(o){var s=e.unescapeLeadingUnderscores(o.escapedName);"export="===s&&(K.esModuleInterop||K.allowSyntheticDefaultImports)&&(s="default");var c=Q(o,s);switch(w(o),i.kind){case 252:var u=!(512&o.flags);I(e.createImportEqualsDeclaration(void 0,void 0,e.createIdentifier(r),u?C(o,a,67108863,!1):e.createExternalModuleReference(e.createLiteral(D(t,a)))),u?n:0);break;case 251:I(e.createNamespaceExportDeclaration(e.idText(i.name)),0);break;case 254:I(e.createImportDeclaration(void 0,void 0,e.createImportClause(e.createIdentifier(r),void 0),e.createLiteral(D(o.parent||o,a))),0);break;case 255:I(e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamespaceImport(e.createIdentifier(r))),e.createLiteral(D(o,a))),0);break;case 257:I(e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamedImports([e.createImportSpecifier(r!==s?e.createIdentifier(s):void 0,e.createIdentifier(r))])),e.createLiteral(D(o.parent||o,a))),0);break;case 261:var l=i.parent.parent.moduleSpecifier;B(e.unescapeLeadingUnderscores(t.escapedName),l?s:c,l&&e.isStringLiteralLike(l)?e.createLiteral(l.text):void 0);break;case 258:j(t);break;case 208:case 193:"default"===t.escapedName||"export="===t.escapedName?j(t):B(r,c);break;default:return e.Debug.failBadSyntaxKind(i,"Unhandled alias declaration kind in symbol serializer!")}}}function B(t,r,n){I(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 r=e.unescapeLeadingUnderscores(t.escapedName),n="export="===r,i=n||"default"===r,o=t.declarations&&En(t),s=o&&wn(o,!0);if(s&&e.length(s.declarations)&&e.some(s.declarations,(function(t){return e.getSourceFileOfNode(t)===e.getSourceFileOfNode(_)}))){var c=i?e.getExportAssignmentExpression(o):e.getPropertyAssignmentAliasLikeExpression(o),u=e.isEntityNameExpression(c)?function(t){switch(t.kind){case 75:return t;case 152:do{t=t.left}while(75!==t.kind);return t;case 193:do{if(e.isModuleExportsAccessExpression(t.expression))return t.name;t=t.expression}while(75!==t.kind);return t}}(c):void 0,l=u&&Kn(u,67108863,!0,!0,_);(l||s)&&w(l||s);var d=a.tracker.trackSymbol;if(a.tracker.trackSymbol=e.noop,i)f.push(e.createExportAssignment(void 0,void 0,n,k(s,a,67108863)));else if(u===c)B(r,e.idText(u));else if(e.isClassExpression(c))B(r,Q(s,e.symbolName(s)));else{var p=Y(r,t);I(e.createImportEqualsDeclaration(void 0,void 0,e.createIdentifier(p),C(s,a,67108863,!1)),0),B(r,p)}a.tracker.trackSymbol=d}else{p=Y(r,t);var m=rd(wa(t));if(z(m,t))M(m,t,p,i?0:1);else I(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(p,q(m,t))],2)),r===p?1:0);i?f.push(e.createExportAssignment(void 0,void 0,n,e.createIdentifier(p))):r!==p&&B(r,p)}}}function z(t,r){var n=e.getSourceFileOfNode(a.enclosingDeclaration);return 48&e.getObjectFlags(t)&&!Ts(t,0)&&!Ts(t,1)&&!(!e.length(ts(t))&&!e.length(xs(t,0)))&&!e.length(xs(t,1))&&!V(r)&&!(t.symbol&&e.some(t.symbol.declarations,(function(t){return e.getSourceFileOfNode(t)!==n})))&&!e.some(ts(t),(function(e){return fo(e.escapedName)}))&&!e.some(ts(t),(function(t){return e.some(t.declarations,(function(t){return e.getSourceFileOfNode(t)!==n}))}))&&e.every(ts(t),(function(t){return e.isIdentifierText(e.symbolName(t),J)&&!e.isStringAKeyword(e.symbolName(t))}))}function U(t,r,n){return function(i,o,s){if(o&&2887656&i.flags)return[];if(4194304&i.flags||s&&vs(s,i.escapedName)&&uy(vs(s,i.escapedName))===uy(i)&&(16777216&i.flags)==(16777216&vs(s,i.escapedName).flags)&&El(wa(i),Xi(s,i.escapedName)))return[];var c=o?32:0,u=function(t,r){var n=function(t,r){var n=t.nameType;if(n){if(384&n.flags){var i=""+n.value;return e.isIdentifierText(i,K.target)||Mf(i)?Mf(i)&&e.startsWith(i,"-")?e.createComputedPropertyName(e.createLiteral(+i)):F(i):e.createLiteral(i)}if(8192&n.flags)return e.createComputedPropertyName(k(n.symbol,r,111551))}}(t,r);if(n)return n;return F(e.unescapeLeadingUnderscores(t.escapedName))}(i,a),l=e.find(i.declarations,e.or(e.isPropertyDeclaration,e.isAccessor,e.isVariableDeclaration,e.isPropertySignature,e.isBinaryExpression,e.isPropertyAccessExpression));if(98304&i.flags&&n){var _=[];return 65536&i.flags&&_.push(e.setTextRange(e.createSetAccessor(void 0,e.createModifiersFromModifierFlags(c),u,[e.createParameter(void 0,void 0,void 0,"arg",void 0,q(wa(i),i))],void 0),e.find(i.declarations,e.isSetAccessor)||l)),32768&i.flags&&_.push(e.setTextRange(e.createGetAccessor(void 0,e.createModifiersFromModifierFlags(c),u,[],q(wa(i),i),void 0),e.find(i.declarations,e.isGetAccessor)||l)),_}if(7&i.flags)return e.setTextRange(t(void 0,e.createModifiersFromModifierFlags((uy(i)?64:0)|c),u,16777216&i.flags?e.createToken(57):void 0,q(wa(i),i),void 0),e.find(i.declarations,e.or(e.isPropertyDeclaration,e.isVariableDeclaration))||l);if(8208&i.flags){for(var d=[],f=0,m=xs(wa(i),0);f<m.length;f++){var g=m[f],y=p(g,r,a);y.name=u,c&&(y.modifiers=e.createNodeArray(e.createModifiersFromModifierFlags(c))),16777216&i.flags&&(y.questionToken=e.createToken(57)),d.push(e.setTextRange(y,g.declaration))}return d}return e.Debug.fail("Unhandled class member kind! "+(i.__debugFlags||i.flags))}}function V(t){return e.find(t.declarations,(function(t){return!!e.getEffectiveTypeAnnotationNode(t)&&!!e.findAncestor(t,(function(e){return e===_}))}))}function q(t,r){var i=V(r);if(i&&!e.isFunctionLikeDeclaration(i)){var c=e.getEffectiveTypeAnnotationNode(i),u=e.visitNode(c,(function t(r){if(e.isJSDocAllType(r))return e.createKeywordTypeNode(124);if(e.isJSDocUnknownType(r))return e.createKeywordTypeNode(147);if(e.isJSDocNullableType(r))return e.createUnionTypeNode([e.visitNode(r.type,t),e.createKeywordTypeNode(99)]);if(e.isJSDocOptionalType(r))return e.createUnionTypeNode([e.visitNode(r.type,t),e.createKeywordTypeNode(145)]);if(e.isJSDocNonNullableType(r))return e.visitNode(r.type,t);if((e.isExpressionWithTypeArguments(r)||e.isTypeReferenceNode(r))&&e.isJSDocIndexSignature(r))return e.createTypeLiteralNode([e.createIndexSignature(void 0,void 0,[e.createParameter(void 0,void 0,void 0,"x",void 0,e.visitNode(r.typeArguments[0],t))],e.visitNode(r.typeArguments[1],t))]);if(e.isJSDocFunctionType(r)){var i;return e.isJSDocConstructSignature(r)?e.createConstructorTypeNode(e.visitNodes(r.typeParameters,t),e.mapDefined(r.parameters,(function(r,n){return r.name&&e.isIdentifier(r.name)&&"new"===r.name.escapedText?void(i=r.type):e.createParameter(void 0,void 0,r.dotDotDotToken,r.name||r.dotDotDotToken?"args":"arg"+n,r.questionToken,e.visitNode(r.type,t),void 0)})),e.visitNode(i||r.type,t)):e.createFunctionTypeNode(e.visitNodes(r.typeParameters,t),e.map(r.parameters,(function(r,n){return e.createParameter(void 0,void 0,r.dotDotDotToken,r.name||r.dotDotDotToken?"args":"arg"+n,r.questionToken,e.visitNode(r.type,t),void 0)})),e.visitNode(r.type,t))}if(e.isLiteralImportTypeNode(r))return e.updateImportTypeNode(r,e.updateLiteralTypeNode(r.argument,function(t,r){if(o){if(a.tracker&&a.tracker.moduleResolverHost){var i=Wb(t);if(i){var s={getCanonicalFileName:e.createGetCanonicalFileName(!!n.useCaseSensitiveFileNames),getCurrentDirectory:a.tracker.moduleResolverHost.getCurrentDirectory?function(){return a.tracker.moduleResolverHost.getCurrentDirectory()}:function(){return""},getCommonSourceDirectory:function(){return a.tracker.moduleResolverHost.getCommonSourceDirectory()}},c=e.getResolvedExternalModuleName(s,i);return e.createLiteral(c)}}}else if(a.tracker&&a.tracker.trackExternalModuleSymbolOfImportTypeNode){var u=Un(r,r,void 0);u&&a.tracker.trackExternalModuleSymbolOfImportTypeNode(u)}return r}(r,r.argument.literal)),r.qualifier,e.visitNodes(r.typeArguments,t,e.isTypeNode),r.isTypeOf);if(e.isEntityName(r)||e.isEntityNameExpression(r)){var s=Kn(e.getFirstIdentifier(r),67108863,!0,!0);if(s&&(w(s),e.isIdentifier(r)&&262144&s.flags)){var c=E(ro(s),a);return e.idText(c)!==e.idText(r)?c:r}}return e.visitEachChild(r,t,e.nullTransformationContext)}));return u===c?e.getMutableClone(c):u}var l=a.flags;8192&t.flags&&t.symbol===r&&(a.flags|=1048576);var _=s(t,a);return a.flags=l,_}function W(t,r,n,i){var o=xs(r,t);if(1===t){if(!n&&e.every(o,(function(t){return 0===e.length(t.parameters)})))return[];if(n){var s=xs(n,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(!m_(o[u],s[u],!1,!1,!0,Cl)){c=!0;break}if(!c)return[]}}}for(var l=[],_=0,d=o;_<d.length;_++){var f=d[_],m=p(f,i,a);l.push(e.setTextRange(m,f.declaration))}return l}function G(e,t){for(var r=[],n=0,i=[0,1];n<i.length;n++){var o=i[n],s=Ts(e,o);if(s){if(t){var c=Ts(t,o);if(c&&El(s.type,c.type))continue}r.push(d(s,o,a))}}return r}function H(t){var r,n;if(t.target&&xi(t.target.symbol,_,111551,!1)?(r=e.map(_c(t),(function(e){return s(e,a)})),n=k(t.target.symbol,a,788968)):t.symbol&&xi(t.symbol,_,111551,!1)&&(n=k(t.symbol,a,788968)),n)return e.createExpressionWithTypeArguments(r,n)}function Y(e,t){if(t&&a.remappedSymbolNames.has(""+A(t)))return a.remappedSymbolNames.get(""+A(t));t&&(e=X(t,e));for(var r=0,n=e;a.usedSymbolNames.has(e);)e=n+"_"+ ++r;return a.usedSymbolNames.set(e,!0),t&&a.remappedSymbolNames.set(""+A(t),e),e}function X(t,r){if("default"===r||"__class"===r||"__function"===r){var n=a.flags;a.flags|=16777216;var i=zi(t,a);a.flags=n,r=i.length>0&&e.isSingleOrDoubleQuote(i.charCodeAt(0))?e.stripQuotes(i):i}return"default"===r?r="_default":"export="===r&&(r="_exports"),r=e.isIdentifierText(r,J)&&!e.isStringANonContextualKeyword(r)?r:"_"+r.replace(/[^a-zA-Z0-9]/g,"_")}function Q(e,t){return a.remappedSymbolNames.has(""+A(e))?a.remappedSymbolNames.get(""+A(e)):(t=X(e,t),a.remappedSymbolNames.set(""+A(e),t),t)}}(a,i,l)}))}};function i(t,r,i,a){e.Debug.assert(void 0===t||0==(8&t.flags));var o={enclosingDeclaration:t,flags:r||0,tracker:i&&i.trackSymbol?i:{trackSymbol:e.noop,moduleResolverHost:134217728&r?{getCommonSourceDirectory:n.getCommonSourceDirectory?function(){return n.getCommonSourceDirectory()}:function(){return""},getSourceFiles:function(){return n.getSourceFiles()},getCurrentDirectory:e.maybeBind(n,n.getCurrentDirectory),getProbableSymlinks:e.maybeBind(n,n.getProbableSymlinks)}: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 a(t){return t.truncating?t.truncating:t.truncating=!(1&t.flags)&&t.approximateLength>e.defaultMaximumTruncationLength}function s(t,r){o&&o.throwIfCancellationRequested&&o.throwIfCancellationRequested();var n=8388608&r.flags;if(r.flags&=-8388609,t){if(1&t.flags)return r.approximateLength+=3,e.createKeywordTypeNode(124);if(2&t.flags)return e.createKeywordTypeNode(147);if(4&t.flags)return r.approximateLength+=6,e.createKeywordTypeNode(142);if(8&t.flags)return r.approximateLength+=6,e.createKeywordTypeNode(139);if(64&t.flags)return r.approximateLength+=6,e.createKeywordTypeNode(150);if(16&t.flags)return r.approximateLength+=7,e.createKeywordTypeNode(127);if(1024&t.flags&&!(1048576&t.flags)){var i=ni(t.symbol),c=S(i,r,788968);return ro(i)===t?c:R(c,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),16777216));if(256&t.flags){var m=t.value;return r.approximateLength+=(""+m).length,e.createLiteralTypeNode(m<0?e.createPrefix(40,e.createLiteral(-m)):e.createLiteral(m))}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(Ti(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(146,e.createKeywordTypeNode(143))}if(16384&t.flags)return r.approximateLength+=4,e.createKeywordTypeNode(109);if(32768&t.flags)return r.approximateLength+=9,e.createKeywordTypeNode(145);if(65536&t.flags)return r.approximateLength+=4,e.createKeywordTypeNode(99);if(131072&t.flags)return r.approximateLength+=5,e.createKeywordTypeNode(136);if(4096&t.flags)return r.approximateLength+=6,e.createKeywordTypeNode(143);if(67108864&t.flags)return r.approximateLength+=6,e.createKeywordTypeNode(140);if(hu(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(!n&&t.aliasSymbol&&(16384&r.flags||Si(t.aliasSymbol,r.enclosingDeclaration))){var g=_(t.aliasTypeArguments,r);return!mi(t.aliasSymbol.escapedName)||32&t.aliasSymbol.flags?S(t.aliasSymbol,r,788968,g):e.createTypeReferenceNode(e.createIdentifier(""),g)}var y=e.getObjectFlags(t);if(4&y)return e.Debug.assert(!!(524288&t.flags)),t.node?O(t,L):L(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&&!Si(t.symbol,r.enclosingDeclaration)){var h=E(t,r);return r.approximateLength+=e.idText(h).length,e.createTypeReferenceNode(e.createIdentifier(e.idText(h)),void 0)}return t.symbol?S(t.symbol,r,788968):e.createTypeReferenceNode(e.createIdentifier("?"),void 0)}if(3145728&t.flags){var v=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?Me:$a(i);if(1048576&a.flags){var o=a.types.length;if(n+o<=e.length&&Vu(e[n+o-1])===Vu(a.types[o-1])){t.push(a),n+=o-1;continue}}}t.push(i)}}65536&r&&t.push(Ce);32768&r&&t.push(Se);return t||e}(t.types):t.types;if(1===e.length(v))return s(v[0],r);var b=_(v,r,!0);return b&&b.length>0?e.createUnionOrIntersectionTypeNode(1048576&t.flags?177:178,b):void(r.encounteredError||262144&r.flags||(r.encounteredError=!0))}if(48&y)return e.Debug.assert(!!(524288&t.flags)),I(t);if(4194304&t.flags){var x=t.type;r.approximateLength+=6;var D=s(x,r);return e.createTypeOperatorNode(D)}if(8388608&t.flags){var T=s(t.objectType,r);D=s(t.indexType,r);return r.approximateLength+=2,e.createIndexedAccessTypeNode(T,D)}if(16777216&t.flags){var C=s(t.checkType,r),k=r.inferTypeParameters;r.inferTypeParameters=t.root.inferTypeParameters;var F=s(t.extendsType,r);r.inferTypeParameters=k;var P=s(Au(t),r),w=s(Fu(t),r);return r.approximateLength+=15,e.createConditionalTypeNode(C,F,P,w)}return 33554432&t.flags?s(t.typeVariable,r):e.Debug.fail("Should be unreachable.")}function I(t){var n=""+t.id,i=t.symbol;if(i){if(Sg(i.valueDeclaration)){var a=t===Ha(i)?788968:111551;return S(i,r,a)}if(32&i.flags&&!Na(i)&&!(213===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 288===e.parent.kind||249===e.parent.kind})));if(t||a)return(!!(4096&r.flags)||r.visitedTypes&&r.visitedTypes.has(n))&&(!(8&r.flags)||Ti(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 181!==e.kind}));if(246===r.kind)return ri(r)}return}(t);return o?S(o,r,788968):u(r)}return O(t,M)}return M(t)}function O(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"+N(t.node):t.symbol?(o?"+":"")+A(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 M(t){if(Xo(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=qo(t)?e.createTypeOperatorNode(s(Wo(t),r)):s(zo(t),r);var o=f(Jo(t),r,n),c=s(Uo(t),r),u=e.createMappedTypeNode(i,o,a,c);return r.approximateLength+=10,e.setEmitFlags(u,1)}(t);var n=Qo(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],169,r);if(1===n.constructSignatures.length&&!n.callSignatures.length)return p(n.constructSignatures[0],170,r)}var i=r.flags;r.flags|=4194304;var o=function(t){if(a(r))return[e.createPropertySignature(void 0,"...",void 0,void 0,void 0)];for(var n=[],i=0,o=t.callSignatures;i<o.length;i++){var s=o[i];n.push(p(s,164,r))}for(var c=0,_=t.constructSignatures;c<_.length;c++){s=_[c];n.push(p(s,165,r))}if(t.stringIndexInfo){var f=void 0;2048&t.objectFlags?(f=d(tc(he,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 m=t.properties;if(!m)return n;for(var g=0,y=0,h=m;y<h.length;y++){var v=h[y];if(g++,2048&r.flags){if(4194304&v.flags)continue;24&e.getDeclarationModifierFlagsFromSymbol(v)&&r.tracker.reportPrivateInBaseOfClassExpression&&r.tracker.reportPrivateInBaseOfClassExpression(e.unescapeLeadingUnderscores(v.escapedName))}if(a(r)&&g+2<m.length-1){n.push(e.createPropertySignature(void 0,"... "+(m.length-g)+" more ...",void 0,void 0,void 0)),l(m[m.length-1],r,n);break}l(v,r,n)}return n.length?n:void 0}(n);r.flags=i;var c=e.createTypeLiteralNode(o);return r.approximateLength+=2,e.setEmitFlags(c,1024&r.flags?0:1)}function L(t){var n=_c(t);if(t.target===dt||t.target===pt){if(2&r.flags){var i=s(n[0],r);return e.createTypeReferenceNode(t.target===dt?"Array":"ReadonlyArray",[i])}var a=s(n[0],r),o=e.createArrayTypeNode(a);return t.target===dt?o:e.createTypeOperatorNode(137,o)}if(!(8&t.target.objectFlags)){if(2048&r.flags&&t.symbol.valueDeclaration&&e.isClassLike(t.symbol.valueDeclaration)&&!Ti(t.symbol,r.enclosingDeclaration))return I(t);var c=t.target.outerTypeParameters,u=(E=0,void 0);if(c)for(var l=c.length;E<l;){var d=E,p=ac(c[E]);do{E++}while(E<l&&ac(c[E])===p);if(!e.rangeEquals(c,n,d,E)){var f=_(n.slice(d,E),r),m=r.flags;r.flags|=16;var g=S(p,r,788968,f);r.flags=m,u=u?R(u,g):g}}var y=void 0;if(n.length>0){var h=(t.target.typeParameters||e.emptyArray).length;y=_(n.slice(E,h),r)}var v=r.flags;r.flags|=16;var b=S(t.symbol,r,788968,y);return r.flags=v,u?R(u,b):b}if(n.length>0){var x=dc(t),D=_(n.slice(0,x),r),T=t.target.hasRestElement;if(D){for(var E=t.target.minLength;E<Math.min(x,D.length);E++)D[E]=T&&E===x-1?e.createRestTypeNode(e.createArrayTypeNode(D[E])):e.createOptionalTypeNode(D[E]);var C=e.createTupleTypeNode(D);return t.target.readonly?e.createTypeOperatorNode(137,C):C}}if(r.encounteredError||524288&r.flags){C=e.createTupleTypeNode([]);return t.target.readonly?e.createTypeOperatorNode(137,C):C}r.encounteredError=!0}function R(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=B(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=B(r);s<c.length;s++){o=c[s];t.typeName=e.createQualifiedName(t.typeName,o)}return t}function B(t){for(var r=t.typeName,n=[];!e.isIdentifier(r);)n.unshift(r.right),r=r.left;return n.unshift(r),n}r.encounteredError=!0}function u(t){return t.approximateLength+=3,1&t.flags?e.createKeywordTypeNode(124):e.createTypeReferenceNode(e.createIdentifier("..."),void 0)}function l(t,r,n){var i=!!(8192&e.getCheckFlags(t)),a=i&&33554432&r.flags?he:wa(t),o=r.enclosingDeclaration;if(r.enclosingDeclaration=void 0,r.tracker.trackSymbol&&4096&e.getCheckFlags(t)){var c=e.first(t.declarations);if(mo(c))if(e.isBinaryExpression(c)){var l=e.getNameOfDeclaration(c);l&&e.isElementAccessExpression(l)&&e.isPropertyAccessEntityNameExpression(l.argumentExpression)&&y(l.argumentExpression,o,r)}else y(c.name.expression,o,r)}var _=C(t,r,111551,!0);r.approximateLength+=e.symbolName(t).length+1,r.enclosingDeclaration=o;var d=16777216&t.flags?e.createToken(57):void 0;if(8208&t.flags&&!$o(a).length&&!uy(t))for(var f=0,m=xs(_p(a,(function(e){return!(32768&e.flags)})),0);f<m.length;f++){var g=p(m[f],159,r);g.name=_,g.questionToken=d,n.push(D(g))}else{var h=r.flags;r.flags|=i?33554432:0;var v=void 0;v=i&&33554432&h?u(r):a?s(a,r):e.createKeywordTypeNode(124),r.flags=h;var b=uy(t)?[e.createToken(137)]:void 0;b&&(r.approximateLength+=9);var x=e.createPropertySignature(b,_,d,v,void 0);n.push(D(x))}function D(r){if(e.some(t.declarations,(function(e){return 316===e.kind}))){var n=e.find(t.declarations,(function(e){return 316===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(a(r)){if(!n)return[e.createTypeReferenceNode("...",void 0)];if(t.length>2)return[s(t[0],r),e.createTypeReferenceNode("... "+(t.length-2)+" more ...",void 0),s(t[t.length-1],r)]}for(var i=[],o=0,c=0,u=t;c<u.length;c++){var l=u[c];if(o++,a(r)&&o+2<t.length-1){i.push(e.createTypeReferenceNode("... "+(t.length-o)+" more ...",void 0));var _=s(t[t.length-1],r);_&&i.push(_);break}r.approximateLength+=2;var d=s(l,r);d&&i.push(d)}return i}}function d(t,r,n){var i=e.getNameFromIndexInfo(t)||"x",a=e.createKeywordTypeNode(0===r?142:139),o=e.createParameter(void 0,void 0,void 0,i,void 0,a,void 0),c=s(t.type||he,n);return t.type||2097152&n.flags||(n.encounteredError=!0),n.approximateLength+=i.length+4,e.createIndexSignature(void 0,t.isReadonly?[e.createToken(137)]:void 0,[o],c)}function p(t,r,n){var i,a;32&n.flags&&t.target&&t.mapper&&t.target.typeParameters?a=t.target.typeParameters.map((function(e){return s(gl(e,t.mapper),n)})):i=t.typeParameters&&t.typeParameters.map((function(e){return m(e,n)}));var o,c=No(t).map((function(e){return g(e,n,161===r)}));if(t.thisParameter){var u=g(t.thisParameter,n);c.unshift(u)}var l=Js(t);if(l){var _=2===l.kind||3===l.kind?e.createToken(123):void 0,d=1===l.kind||3===l.kind?e.setEmitFlags(e.createIdentifier(l.parameterName),16777216):e.createThisTypeNode(),p=l.type&&s(l.type,n);o=e.createTypePredicateNodeWithModifier(_,d,p)}else{var f=zs(t);o=f&&s(f,n)}return 256&n.flags?o&&124===o.kind&&(o=void 0):o||(o=e.createKeywordTypeNode(124)),n.approximateLength+=3,e.createSignatureDeclaration(r,i,c,o,a)}function f(t,r,n){var i=r.flags;r.flags&=-513;var a=E(t,r),o=ps(t),c=o&&s(o,r);return r.flags=i,e.createTypeParameterDeclaration(a,n,c)}function m(e,t,r){return void 0===r&&(r=ns(e)),f(e,t,r&&s(r,t))}function g(t,r,n){var i=e.getDeclarationOfKind(t,155);i||tn(t)||(i=e.getDeclarationOfKind(t,310));var a=wa(t);i&&Nb(i)&&(a=z_(a));var o=s(a,r),c=!(8192&r.flags)&&n&&i&&i.modifiers?i.modifiers.map(e.getSynthesizedClone):void 0,u=i&&e.isRestParameter(i)||32768&e.getCheckFlags(t)?e.createToken(25):void 0,l=i&&i.name?75===i.name.kind?e.setEmitFlags(e.getSynthesizedClone(i.name),16777216):152===i.name.kind?e.setEmitFlags(e.getSynthesizedClone(i.name.right),16777216):function(t){return function t(n){r.tracker.trackSymbol&&e.isComputedPropertyName(n)&&po(n)&&y(n.expression,r.enclosingDeclaration,r);var i=e.visitEachChild(n,t,e.nullTransformationContext,void 0,t);var a=e.nodeIsSynthesized(i)?i:e.getSynthesizedClone(i);190===a.kind&&(a.initializer=void 0);return e.setEmitFlags(a,16777217)}(t)}(i.name):e.symbolName(t),_=i&&Ps(i)||16384&e.getCheckFlags(t)?e.createToken(57):void 0,d=e.createParameter(void 0,c,u,l,_,o,void 0);return r.approximateLength+=e.symbolName(t).length+3,d}function y(t,r,n){if(n.tracker.trackSymbol){var i=e.getFirstIdentifier(t),a=gn(i,i.escapedText,1160127,void 0,void 0,!0);a&&n.tracker.trackSymbol(a,r,111551)}}function h(e,t,r,n){return t.tracker.trackSymbol(e,t.enclosingDeclaration,r),v(e,t,r,n)}function v(t,r,n,i){var a;return 262144&t.flags||!(r.enclosingDeclaration||64&r.flags)||134217728&r.flags?a=[t]:(a=e.Debug.assertDefined(function t(n,a,o){var s=xi(n,r.enclosingDeclaration,a,!!(128&r.flags));var c;if(!s||Di(s[0],r.enclosingDeclaration,1===s.length?a:bi(a))){var u=ii(s?s[0]:n,r.enclosingDeclaration);if(e.length(u)){c=u.map((function(t){return e.some(t.declarations,Ni)?D(t,r):void 0}));var l=u.map((function(e,t){return t}));l.sort((function(t,r){var n=c[t],i=c[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],m=t(f,bi(a),!1);if(m){if(f.exports&&f.exports.get("export=")&&oi(f.exports.get("export="),n)){s=m;break}s=m.concat(s||[ai(f,n)||n]);break}}}}if(s)return s;if(o||!(6144&n.flags)){if(!o&&!i&&e.forEach(n.declarations,Ni))return;return[n]}}(t,n,!0)),e.Debug.assert(a&&a.length>0)),a}function b(t,r){var n;return 524384&Iv(t).flags&&(n=e.createNodeArray(e.map(ja(t),(function(e){return m(e,r)})))),n}function x(t,r,n){e.Debug.assert(t&&0<=r&&r<t.length);var i=t[r],a=""+A(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(Ba(t),ja(t))}(2097152&s.flags?Mn(s):s);o=_(e.map(u,c.mapper),n)}else o=b(i,n)}return o}}function D(t,i){var a=e.getDeclarationOfKind(t,288);if(a&&void 0!==a.moduleName)return a.moduleName;if(!a){if(i.tracker.trackReferencedAmbientModule){var o=e.filter(t.declarations,e.isAmbientModule);if(e.length(o))for(var s=0,u=o;s<u.length;s++){var l=u[s];i.tracker.trackReferencedAmbientModule(l,t)}}if(c.test(t.escapedName))return t.escapedName.substring(1,t.escapedName.length-1)}if(!i.enclosingDeclaration||!i.tracker.moduleResolverHost)return c.test(t.escapedName)?t.escapedName.substring(1,t.escapedName.length-1):e.getSourceFileOfNode(e.getNonAugmentationDeclaration(t)).fileName;var _=e.getSourceFileOfNode(e.getOriginalNode(i.enclosingDeclaration)),d=_n(t),p=d.specifierCache&&d.specifierCache.get(_.path);if(!p){var f=K.out||K.outFile,m=i.tracker.moduleResolverHost,g=f?r(r({},K),{baseUrl:m.getCommonSourceDirectory()}):K;p=e.first(e.moduleSpecifiers.getModuleSpecifiers(t,g,_,m,n.getSourceFiles(),{importModuleSpecifierPreference:f?"non-relative":"relative"},n.redirectTargetsMap)),d.specifierCache=d.specifierCache||e.createMap(),d.specifierCache.set(_.path,p)}return p}function S(t,r,n,i){var a=h(t,r,n,!(16384&r.flags)),o=111551===n;if(e.some(a[0].declarations,Ni)){var s=a.length>1?g(a,a.length-1,1):void 0,c=i||x(a,0,r),u=D(a[0],r);!(67108864&r.flags)&&e.getEmitModuleResolutionKind(K)===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=g(a,a.length-1,0);if(e.isIndexedAccessTypeNode(p))return p;if(o)return e.createTypeQueryNode(p);var f,m=(f=e.isIdentifier(p)?p:p.right).typeArguments;return f.typeArguments=void 0,e.createTypeReferenceNode(p,m);function g(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=zi(c,r),r.approximateLength+=(o?o.length:0)+1,r.flags^=16777216;else if(u&&Qn(u)){var l=Qn(u);e.forEachEntry(l,(function(t,r){if(oi(t,c)&&!fo(r)&&"export="!==r)return o=e.unescapeLeadingUnderscores(r),!0}))}if(o||(o=zi(c,r)),r.approximateLength+=o.length+1,!(16&r.flags)&&u&&bo(u)&&bo(u).get(c.escapedName)&&oi(bo(u).get(c.escapedName),c)){var _=g(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){_=g(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 T(e,t){return!!gn(t.enclosingDeclaration,e,788968,void 0,e,!1)}function E(t,r){if(4&r.flags&&r.typeParameterNames){var n=r.typeParameterNames.get(""+qc(t));if(n)return n}var i=C(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)||T(s,r);)s=a+"_"+ ++o;s!==a&&(i=e.createIdentifier(s,i.typeArguments)),(r.typeParameterNames||(r.typeParameterNames=e.createMap())).set(""+qc(t),i),(r.typeParameterNamesByText||(r.typeParameterNamesByText=e.createMap())).set(i.escapedText,!0)}return i}function C(t,r,n,i){var a=h(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);var o=n[i];0===i&&(r.flags|=16777216);var s=zi(o,r);0===i&&(r.flags^=16777216);var c=e.setEmitFlags(e.createIdentifier(s,a),16777216);c.symbol=o;return i>0?e.createQualifiedName(t(n,i-1),c):c}(a,a.length-1)}function k(t,r,n){var i=h(t,r,n);return function t(n,i){var a=x(n,i,r);var o=n[i];0===i&&(r.flags|=16777216);var s=zi(o,r);0===i&&(r.flags^=16777216);var c=s.charCodeAt(0);if(e.isSingleOrDoubleQuote(c)&&e.some(o.declarations,Ni))return e.createLiteral(D(o,r));var u=e.isIdentifierStart(c,J);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 F(t){return e.isIdentifierText(t,K.target)?e.createIdentifier(t):e.createLiteral(Mf(t)?+t:t)}}(),ee=e.createSymbolTable(),te=en(4,"undefined");te.declarations=[];var re=en(1536,"globalThis",8);re.exports=ee,ee.set(re.escapedName,re);var ne,ie=en(4,"arguments"),ae=en(4,"require"),oe={getNodeCount:function(){return e.sum(n.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(n.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(n.getSourceFiles(),"symbolCount")+v},getTypeCount:function(){return h},getRelationCacheSizes:function(){return{assignable:Vr.size,identity:Wr.size,subtype:Ur.size}},isUndefinedSymbol:function(e){return e===te},isArgumentsSymbol:function(e){return e===ie},isUnknownSymbol:function(e){return e===ge},getMergedSymbol:ti,getDiagnostics:eb,getGlobalDiagnostics:function(){return tb(),jr.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=Ky(r);if(si(dn(r).resolvedSymbol)===t)return n}return wa(t)}(t,r):xe},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=fn(n.locals,r,111551),o=fn(bo(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:ro,getPropertiesOfType:ts,getPropertyOfType:function(t,r){return vs(t,e.escapeLeadingUnderscores(r))},getTypeOfPropertyOfType:function(t,r){return Xi(t,e.escapeLeadingUnderscores(r))},getIndexInfoOfType:Ts,getSignaturesOfType:xs,getIndexTypeOfType:Es,getBaseTypes:Wa,getBaseTypeOfLiteralType:k_,getWidenedType:rd,getTypeFromTypeNode:function(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r?Yu(r):xe},getParameterType:Mg,getPromisedTypeOfPromise:lh,getReturnTypeOfSignature:zs,isNullableType:_m,getNullableType:J_,getNonNullableType:U_,getNonOptionalType:W_,getTypeArguments:_c,typeToTypeNode:Z.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Z.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Z.signatureToSignatureDeclaration,symbolToEntityName:Z.symbolToEntityName,symbolToExpression:Z.symbolToExpression,symbolToTypeParameterDeclarations:Z.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Z.symbolToParameterDeclaration,typeParameterToDeclaration:Z.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&&!pn(t)&&o(t.locals,r),t.kind){case 288:if(!e.isExternalOrCommonJsModule(t))break;case 248:o(ri(t).exports,2623475&r);break;case 247:o(ri(t).exports,8&r);break;case 213:t.name&&a(t.symbol,r);case 244:case 245:i||o(bo(ri(t)),788968&r);break;case 200:t.name&&a(t.symbol,r)}e.introducesArgumentsExoticObject(t)&&a(ie,r),i=e.hasModifier(t,32),t=t.parent}o(ee,r)}(),n.delete("this"),Ns(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))?cb(t):void 0},getShorthandAssignmentValueSymbol:function(t){return(t=e.getParseTreeNode(t))?function(e){if(e&&280===e.kind)return Kn(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?An(e.parent.parent,e):Kn(e.propertyName||e.name,2998271)}(r):void 0},getExportSymbolOfSymbol:function(e){return ti(e.exportSymbol||e)},getTypeAtLocation:function(t){return(t=e.getParseTreeNode(t))?ub(t):xe},getTypeOfAssignmentPattern:function(t){var r=e.getParseTreeNode(t,e.isAssignmentPattern);return r&&lb(r)||xe},getPropertySymbolOfDestructuringAssignment:function(t){var r=e.getParseTreeNode(t,e.isIdentifier);return r?function(t){var r=lb(e.cast(t.parent.parent,e.isAssignmentPattern));return r&&vs(r,t.escapedText)}(r):void 0},signatureToString:function(t,r,n,i){return wi(t,e.getParseTreeNode(r),n,i)},typeToString:function(t,r,n){return Ii(t,e.getParseTreeNode(r),n)},symbolToString:function(t,r,n,i){return Pi(t,e.getParseTreeNode(r),n,i)},typePredicateToString:function(t,r,n){return Ri(t,e.getParseTreeNode(r),n)},writeSignature:function(t,r,n,i,a){return wi(t,e.getParseTreeNode(r),n,i,a)},writeType:function(t,r,n,i){return Ii(t,e.getParseTreeNode(r),n,i)},writeSymbol:function(t,r,n,i,a){return Pi(t,e.getParseTreeNode(r),n,i,a)},writeTypePredicate:function(t,r,n,i){return Ri(t,e.getParseTreeNode(r),n,i)},getAugmentedPropertiesOfType:fb,getRootSymbols:function t(r){var n=function(t){if(6&e.getCheckFlags(t))return e.mapDefined(_n(t).containingType.types,(function(e){return vs(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=_n(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);return n?xf(n,r):void 0},getContextualTypeForObjectLiteralElement:function(t){var r=e.getParseTreeNode(t,e.isObjectLiteralElementLike);return r?pf(r):void 0},getContextualTypeForArgumentAtIndex:function(t,r){var n=e.getParseTreeNode(t,e.isCallLikeExpression);return n&&uf(n,r)},getContextualTypeForJsxAttribute:function(t){var r=e.getParseTreeNode(t,e.isJsxAttributeLike);return r&&gf(r)},isContextSensitive:bl,getFullyQualifiedName:jn,getResolvedSignature:function(e,t,r){return se(e,t,r,0)},getResolvedSignatureForSignatureHelp:function(e,t,r){return se(e,t,r,16)},getExpandedParameters:No,hasEffectiveRestParameter:Kg,getConstantValue:function(t){var r=e.getParseTreeNode(t,Ob);return r?Mb(r):void 0},isValidPropertyAccess:function(t,r){var n=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!n&&function(e,t){switch(e.kind){case 193:return Pm(e,101===e.expression.kind,t,rd(zy(e.expression)));case 152:return Pm(e,!1,t,rd(zy(e.left)));case 187:return Pm(e,!1,t,Yu(e))}}(n,e.escapeLeadingUnderscores(r))},isValidPropertyAccessForCompletions:function(t,r,n){var i=e.getParseTreeNode(t,e.isPropertyAccessExpression);return!!i&&function(e,t,r){return Pm(e,193===e.kind&&101===e.expression.kind,r.escapedName,t)}(i,r,n)},getSignatureFromDeclaration:function(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?Ls(r):void 0},isImplementationOfOverload:function(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?kb(r):void 0},getImmediateAliasedSymbol:Bf,getAliasedSymbol:Mn,getEmitResolver:function(e,t){return eb(e,t),$},getExportsOfModule:Yn,getExportsAndPropertiesOfModule:function(t){var r=Yn(t),n=Wn(t);n!==t&&e.addRange(r,ts(wa(n)));return r},getSymbolWalker:e.createGetSymbolWalker((function(e){return qs(e)||he}),Js,zs,Wa,Qo,wa,Od,Ss,ns,e.getFirstIdentifier,_c),getAmbientModules:function(){at||(at=[],ee.forEach((function(e,t){c.test(t)&&at.push(e)})));return at},getJsxIntrinsicTagNamesAt:function(t){var r=Wf(C.IntrinsicElements,t);return r?ts(r):e.emptyArray},isOptionalParameter:function(t){var r=e.getParseTreeNode(t,e.isParameter);return!!r&&Ps(r)},tryGetMemberInModuleExports:function(t,r){return Xn(e.escapeLeadingUnderscores(t),r)},tryGetMemberInModuleExportsAndProperties:function(t,r){return function(e,t){var r=Xn(e,t);if(r)return r;var n=Wn(t);if(n===t)return;var i=wa(n);return 131068&i.flags?void 0:vs(i,e)}(e.escapeLeadingUnderscores(t),r)},tryFindAmbientModuleWithoutAugmentations:function(e){return Fs(e,!1)},getApparentType:ms,getUnionType:Qc,isTypeAssignableTo:function(e,t){return Fl(e,t)},createAnonymousType:hi,createSignature:To,createSymbol:en,createIndexInfo:tc,getAnyType:function(){return he},getStringType:function(){return Ne},getNumberType:function(){return Ae},createPromiseType:Gg,createArrayType:jc,getElementTypeOfArrayType:v_,getBooleanType:function(){return Me},getFalseType:function(e){return e?Pe:we},getTrueType:function(e){return e?Ie:Oe},getVoidType:function(){return Re},getUndefinedType:function(){return Se},getNullType:function(){return Ce},getESSymbolType:function(){return Le},getNeverType:function(){return Be},getOptionalType:function(){return Ee},isSymbolAccessible:Ei,getObjectFlags:e.getObjectFlags,isArrayType:y_,isTupleType:w_,isArrayLikeType:b_,isTypeInvalidDueToUnionDiscriminant:function(e,t){return t.properties.some((function(t){var r=t.name&&ou(t.name),n=r&&_o(r)?yo(r):void 0,i=void 0===n?void 0:Xi(e,n);return!!i&&C_(i)&&!Fl(ub(t),i)}))},getAllPossiblePropertiesOfTypes:function(t){var r=Qc(t);if(!(1048576&r.flags))return fb(r);for(var n=e.createSymbolTable(),i=0,a=t;i<a.length;i++)for(var o=a[i],s=0,c=fb(o);s<c.length;s++){var u=c[s].escapedName;if(!n.has(u)){var l=gs(r,u);l&&n.set(u,l)}}return e.arrayFrom(n.values())},getSuggestionForNonexistentProperty:function(e,t){return Cm(e,t)},getSuggestionForNonexistentSymbol:function(t,r,n){return function(t,r,n){var i=km(t,r,n);return i&&e.symbolName(i)}(t,e.escapeLeadingUnderscores(r),n)},getSuggestionForNonexistentExport:function(t,r){return function(t,r){var n=Nm(t,r);return n&&e.symbolName(n)}(t,r)},getBaseConstraintOfType:cs,getDefaultFromTypeParameter:function(e){return e&&262144&e.flags?ps(e):void 0},resolveName:function(t,r,n,i){return gn(r,e.escapeLeadingUnderscores(t),n,void 0,void 0,!1,i)},getJsxNamespace:function(t){return e.unescapeLeadingUnderscores(Yr(t))},getAccessibleSymbolChain:xi,getTypePredicateOfSignature:Js,resolveExternalModuleSymbol:Wn,tryGetThisTypeAt:function(t,r){return(t=e.getParseTreeNode(t))&&Xp(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=th(r),i=ns(n[r.typeArguments.indexOf(t)]);return i&&gl(i,el(n,Zy(r,n)))}(r)},getSuggestionDiagnostics:function(t,i){if(e.skipTypeChecking(t,K,n))return e.emptyArray;var a;try{return o=i,Qv(t),e.Debug.assert(!!(1&dn(t).flags)),a=e.addRange(a,Kr.getDiagnostics(t.fileName)),t.isDeclarationFile||$v(0)&&$v(1)||Sh(Zv(t),(function(t,n,i){e.containsParseError(t)||$v(n)||(a||(a=[])).push(r(r({},i),{category:e.DiagnosticCategory.Suggestion}))})),a||e.emptyArray}finally{o=void 0}},runWithCancellationToken:function(e,t){try{return o=e,t(oe)}finally{o=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:ja};function se(t,r,n,i){var a=e.getParseTreeNode(t,e.isCallLikeExpression);ne=n;var o=a?Dg(a,r,i):void 0;return ne=void 0,o}var ce=e.createMap(),ue=e.createMap(),le=e.createMap(),_e=e.createMap(),de=e.createMap(),pe=e.createMap(),fe=[],me=e.createMap(),ge=en(4,"unknown"),ye=en(0,"__resolving__"),he=_i(1,"any"),ve=_i(1,"any"),be=_i(1,"any"),xe=_i(1,"error"),De=_i(2,"unknown"),Se=_i(32768,"undefined"),Te=V?Se:_i(32768,"undefined",262144),Ee=_i(32768,"undefined"),Ce=_i(65536,"null"),ke=V?Ce:_i(65536,"null",262144),Ne=_i(4,"string"),Ae=_i(8,"number"),Fe=_i(64,"bigint"),Pe=_i(512,"false"),we=_i(512,"false"),Ie=_i(512,"true"),Oe=_i(512,"true");Ie.regularType=Oe,Ie.freshType=Ie,Oe.regularType=Oe,Oe.freshType=Ie,Pe.regularType=we,Pe.freshType=Pe,we.regularType=we,we.freshType=Pe;var Me=di([we,Oe]);di([we,Ie]),di([Pe,Oe]),di([Pe,Ie]);var Le=_i(4096,"symbol"),Re=_i(16384,"void"),Be=_i(131072,"never"),je=_i(131072,"never"),Ke=_i(131072,"never",1048576),Je=_i(131072,"never"),ze=_i(131072,"never"),Ue=_i(67108864,"object"),Ve=Qc([Ne,Ae,Le]),qe=X?Ne:Ve,We=Qc([Ae,Fe]),Ge=hi(void 0,B,e.emptyArray,e.emptyArray,void 0,void 0),He=hi(void 0,B,e.emptyArray,e.emptyArray,void 0,void 0);He.objectFlags|=4096;var Ye=en(2048,"__type");Ye.members=e.createSymbolTable();var Xe=hi(Ye,B,e.emptyArray,e.emptyArray,void 0,void 0),Qe=hi(void 0,B,e.emptyArray,e.emptyArray,void 0,void 0);Qe.instantiations=e.createMap();var $e=hi(void 0,B,e.emptyArray,e.emptyArray,void 0,void 0);$e.objectFlags|=1048576;var Ze=hi(void 0,B,e.emptyArray,e.emptyArray,void 0,void 0),et=hi(void 0,B,e.emptyArray,e.emptyArray,void 0,void 0),tt=hi(void 0,B,e.emptyArray,e.emptyArray,void 0,void 0),rt=fi(),nt=fi();nt.constraint=rt;var it,at,ot,st,ct,ut,lt,_t,dt,pt,ft,mt,gt,yt,ht,vt,bt,xt,Dt,St,Tt,Et,Ct,kt,Nt,At,Ft,Pt,wt,It,Ot,Mt,Lt,Rt,Bt,jt,Kt,Jt,zt,Ut,Vt,qt,Wt,Gt,Ht,Yt,Xt=fi(),Qt=Is(1,"<<unresolved>>",0,he),$t=To(void 0,void 0,void 0,e.emptyArray,he,void 0,0,0),Zt=To(void 0,void 0,void 0,e.emptyArray,xe,void 0,0,0),er=To(void 0,void 0,void 0,e.emptyArray,he,void 0,0,0),tr=To(void 0,void 0,void 0,e.emptyArray,je,void 0,0,0),rr=tc(Ne,!0),nr=e.createMap(),ir={get yieldType(){throw new Error("Not supported")},get returnType(){throw new Error("Not supported")},get nextType(){throw new Error("Not supported")}},ar=rv(he,he,he),or=rv(he,he,De),sr=rv(Be,he,Se),cr={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return Rt||(Rt=Fc("AsyncIterator",3,e))||Qe},getGlobalIterableType:function(e){return Lt||(Lt=Fc("AsyncIterable",1,e))||Qe},getGlobalIterableIteratorType:function(e){return Bt||(Bt=Fc("AsyncIterableIterator",1,e))||Qe},getGlobalGeneratorType:function(e){return jt||(jt=Fc("AsyncGenerator",3,e))||Qe},resolveIterationType:dh,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},ur={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return Pt||(Pt=Fc("Iterator",3,e))||Qe},getGlobalIterableType:Mc,getGlobalIterableIteratorType:function(e){return wt||(wt=Fc("IterableIterator",1,e))||Qe},getGlobalGeneratorType:function(e){return It||(It=Fc("Generator",3,e))||Qe},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},lr=e.createMap(),_r=e.createMap(),dr=0,pr=0,fr=0,mr=!1,gr=0,yr=Wu(""),hr=Wu(0),vr=Wu({negative:!1,base10Value:"0"}),br=[],xr=[],Dr=[],Sr=0,Tr=10,Er=[],Cr=[],kr=[],Nr=[],Ar=[],Fr=[],Pr=[],wr=[],Ir=[],Or=[],Mr=[],Lr=[],Rr=[],Br=[],jr=e.createDiagnosticCollection(),Kr=e.createDiagnosticCollection(),Jr=e.createMapFromTemplate({string:Ne,number:Ae,bigint:Fe,boolean:Me,symbol:Le,undefined:Se}),zr=Qc(e.arrayFrom(D.keys(),Wu)),Ur=e.createMap(),Vr=e.createMap(),qr=e.createMap(),Wr=e.createMap(),Gr=e.createMap(),Hr=e.createSymbolTable();return Hr.set(te.escapedName,te),function(){for(var t=0,r=n.getSourceFiles();t<r.length;t++){var i=r[t];e.bindSourceFile(i,K)}var a;it=e.createMap();for(var o=0,s=n.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];jr.add(e.createDiagnosticForNode(_,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"))}un(ee,i.locals)}if(i.jsGlobalAugmentations&&un(ee,i.jsGlobalAugmentations),i.patternAmbientModules&&i.patternAmbientModules.length&&(ot=e.concatenate(ot,i.patternAmbientModules)),i.moduleAugmentations.length&&(a||(a=[])).push(i.moduleAugmentations),i.symbol&&i.symbol.globalExports)i.symbol.globalExports.forEach((function(e,t){ee.has(t)||ee.set(t,e)}))}}if(a)for(var d=0,p=a;d<p.length;d++)for(var f=p[d],m=0,g=f;m<g.length;m++){var y=g[m];e.isGlobalScopeAugmentation(y.parent)&&ln(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 jr.add(e.createDiagnosticForNode(n,r,t))}}(e.unescapeLeadingUnderscores(i),n)):t.set(i,r)}))})(ee,Hr,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0),_n(te).type=Te,_n(ie).type=Fc("IArguments",0,!0),_n(ge).type=xe,_n(re).type=pi(16,re),dt=Fc("Array",1,!0),ct=Fc("Object",0,!0),ut=Fc("Function",0,!0),lt=W&&Fc("CallableFunction",0,!0)||ut,_t=W&&Fc("NewableFunction",0,!0)||ut,ft=Fc("String",0,!0),mt=Fc("Number",0,!0),gt=Fc("Boolean",0,!0),yt=Fc("RegExp",0,!0),vt=jc(he),(bt=jc(ve))===Ge&&(bt=hi(void 0,B,e.emptyArray,e.emptyArray,void 0,void 0));if(pt=Lc("ReadonlyArray",1)||dt,xt=pt?Rc(pt,[he]):vt,ht=Lc("ThisType",1),a)for(var h=0,v=a;h<v.length;h++){f=v[h];for(var b=0,x=f;b<x.length;b++){y=x[b];e.isGlobalScopeAugmentation(y.parent)||ln(y)}}it.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++){cn(c[s],o,r,a)}for(var u=0,l=a;u<l.length;u++){cn(l[u],o,r,i)}}));else{var a=e.arrayFrom(i.keys()).join(", ");jr.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))),jr.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)))}})),it=void 0}(),oe;function Yr(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,J),r.localJsxFactory)return r.localJsxNamespace=e.getFirstIdentifier(r.localJsxFactory).escapedText}}}return Gt||(Gt="React",K.jsxFactory?(Ht=e.parseIsolatedEntityName(K.jsxFactory,J))&&(Gt=e.getFirstIdentifier(Ht).escapedText):K.reactNamespace&&(Gt=e.escapeLeadingUnderscores(K.reactNamespace))),Gt}function Xr(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 jr.add(s),s}function Qr(t,n){t?jr.add(n):Kr.add(r(r({},n),{category:e.DiagnosticCategory.Suggestion}))}function $r(t,r,n,i,a,o,s){Qr(t,"message"in n?e.createDiagnosticForNode(r,n,i,a,o,s):e.createDiagnosticForNodeFromMessageChain(r,n))}function Zr(t,r,n,i,a,o,s){var c=Xr(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 en(e,t,r){v++;var n=new m(33554432|e,t);return n.checkFlags=r||0,n}function tn(e){return 0!=(33554432&e.flags)}function rn(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 nn(e,t){t.mergeId||(t.mergeId=_,_++),Er[t.mergeId]=e}function an(t){var r=en(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)),nn(r,t),r}function on(t,r,n){if(void 0===n&&(n=!1),!(t.flags&rn(r.flags))||67108864&(r.flags|t.flags)){if(r===t)return t;if(!(33554432&t.flags)){var i=On(t);if(i===ge)return r;t=an(i)}512&r.flags&&512&t.flags&&t.constEnumOnlyModule&&!r.constEnumOnlyModule&&(t.constEnumOnlyModule=!1),t.flags|=r.flags,r.valueDeclaration&&(!t.valueDeclaration||e.isAssignmentDeclaration(t.valueDeclaration)&&!e.isAssignmentDeclaration(r.valueDeclaration)||e.isEffectiveModuleDeclaration(t.valueDeclaration)&&!e.isEffectiveModuleDeclaration(r.valueDeclaration))&&(t.valueDeclaration=r.valueDeclaration),e.addRange(t.declarations,r.declarations),r.members&&(t.members||(t.members=e.createSymbolTable()),un(t.members,r.members,n)),r.exports&&(t.exports||(t.exports=e.createSymbolTable()),un(t.exports,r.exports,n)),n||nn(t,r)}else if(1024&t.flags)t!==re&&Xr(e.getNameOfDeclaration(r.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Pi(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=Pi(r);if(c&&u&&it&&!a&&c!==u){var _=-1===e.comparePaths(c.path,u.path)?c:u,d=_===c?u:c,p=e.getOrUpdate(it,_.path+"|"+d.path,(function(){return{firstFile:_,secondFile:d,conflictingSymbols:e.createMap()}})),f=e.getOrUpdate(p.conflictingSymbols,l,(function(){return{isBlockScoped:o,firstFileLocations:[],secondFileLocations:[]}}));m(f.firstFileLocations,r),m(f.secondFileLocations,t)}else sn(r,s,l,t),sn(t,s,l,r)}return t;function m(t,r){for(var n=0,i=r.declarations;n<i.length;n++){var a=i[n];e.pushIfUnique(t,(e.getExpandoInitializer(a,!1)?e.getNameOfExpando(a):e.getNameOfDeclaration(a))||a)}}}function sn(t,r,n,i){e.forEach(t.declarations,(function(t){cn((e.getExpandoInitializer(t,!1)?e.getNameOfExpando(t):e.getNameOfDeclaration(t))||t,r,n,i.declarations)}))}function cn(t,r,n,i){for(var a=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=jr.lookup(s);return c||(jr.add(s),s)}(t,r,n),o=0,s=i||e.emptyArray;o<s.length;o++){var c=s[o];a.relatedInformation=a.relatedInformation||[],e.length(a.relatedInformation)>=5||e.addRelatedInfo(a,e.length(a.relatedInformation)?e.createDiagnosticForNode(c,e.Diagnostics.and_here):e.createDiagnosticForNode(c,e.Diagnostics._0_was_also_declared_here,n))}}function un(e,t,r){void 0===r&&(r=!1),t.forEach((function(t,n){var i=e.get(n);e.set(n,i?on(i,t,r):t)}))}function ln(t){var r=t.parent;if(r.symbol.declarations[0]===r)if(e.isGlobalScopeAugmentation(r))un(ee,r.symbol.exports);else{var n=Un(t,t,8388608&t.parent.parent.flags?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!0);if(!n)return;if(1920&(n=Wn(n)).flags)if(e.some(ot,(function(e){return n===e.symbol}))){var i=on(r.symbol,n,!0);st||(st=e.createMap()),st.set(t.text,i)}else on(n,r.symbol);else Xr(t,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,t.text)}else e.Debug.assert(r.symbol.declarations.length>1)}function _n(e){if(33554432&e.flags)return e;var t=A(e);return Cr[t]||(Cr[t]={})}function dn(e){var t=N(e);return kr[t]||(kr[t]={flags:0})}function pn(t){return 288===t.kind&&!e.isExternalOrCommonJsModule(t)}function fn(t,r,n){if(n){var i=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=Mn(i);if(a===ge||a.flags&n)return i}}}}function mn(t,r){var i=e.getSourceFileOfNode(t),a=e.getSourceFileOfNode(r);if(i!==a){if(z&&(i.externalModuleIndicator||a.externalModuleIndicator)||!K.outFile&&!K.out||Md(r)||8388608&t.flags)return!0;if(u(r,t))return!0;var o=n.getSourceFiles();return o.indexOf(i)<=o.indexOf(a)}if(t.pos<=r.pos){if(190===t.kind){var s=e.getAncestor(r,190);return s?e.findAncestor(s,e.isBindingElement)!==e.findAncestor(t,e.isBindingElement)||t.pos<s.pos:mn(e.getAncestor(t,241),r)}return 241===t.kind?!function(t,r){var n=e.getEnclosingBlockScopeContainer(t);switch(t.parent.parent.kind){case 224:case 229:case 231:if(Sn(r,t,n))return!0}var i=t.parent.parent;return e.isForInOrOfStatement(i)&&Sn(r,i.expression,n)}(t,r):e.isClassDeclaration(t)?!e.findAncestor(r,(function(r){return e.isComputedPropertyName(r)&&r.parent.parent===t})):!e.isPropertyDeclaration(t)||!function(t,r){if(r.end>t.end)return!1;return void 0===e.findAncestor(r,(function(e){if(e===t)return"quit";switch(e.kind){case 201:case 158:return!0;case 222:switch(e.parent.kind){case 162:case 160:case 163:return!0;default:return!1}default:return!1}}))}(t,r)}if(261===r.parent.kind||258===r.parent.kind&&r.parent.isExportEquals)return!0;if(258===r.kind&&r.isExportEquals)return!0;var c=e.getEnclosingBlockScopeContainer(t);return!!(4194304&r.flags)||Md(r)||u(r,t,c);function u(t,r,n){return!!e.findAncestor(t,(function(i){if(i===n)return"quit";if(e.isFunctionLike(i))return!0;if(i.parent&&158===i.parent.kind&&i.parent.initializer===i)if(e.hasModifier(i.parent,32)){if(160===r.kind)return!0}else if(!(158===r.kind&&!e.hasModifier(r,32))||e.getContainingClass(t)!==e.getContainingClass(r))return!0;return!1}))}}function gn(e,t,r,n,i,a,o,s){return void 0===o&&(o=!1),yn(e,t,r,n,i,a,o,fn,s)}function yn(t,r,n,i,a,o,s,c,u){var l,_,d,p,f,m,g=t,y=!1,h=t,v=!1;e:for(;t;){if(t.locals&&!pn(t)&&(l=c(t.locals,r,n))){var b=!0;if(e.isFunctionLike(t)&&_&&_!==t.body){if(n&l.flags&788968&&301!==_.kind&&(b=!!(262144&l.flags)&&(_===t.type||155===_.kind||154===_.kind)),n&l.flags&3){var x=t;K.target&&K.target>=2&&e.isParameter(_)&&x.body&&l.valueDeclaration.pos>=x.body.pos&&l.valueDeclaration.end<=x.body.end?b=!1:1&l.flags&&(b=155===_.kind||_===t.type&&!!e.findAncestor(l.valueDeclaration,e.isParameter))}}else 179===t.kind&&(b=_===t.trueType);if(b)break e;l=void 0}switch(y=y||hn(t,_),t.kind){case 288:if(!e.isExternalOrCommonJsModule(t))break;v=!0;case 248:var D=ri(t).exports||B;if(288===t.kind||e.isModuleDeclaration(t)&&8388608&t.flags&&!e.isGlobalScopeAugmentation(t)){if(l=D.get("default")){var S=e.getLocalSymbolForExportDefault(l);if(S&&l.flags&n&&S.escapedName===r)break e;l=void 0}var T=D.get(r);if(T&&2097152===T.flags&&e.getDeclarationOfKind(T,261))break}if("default"!==r&&(l=c(D,r,2623475&n))){if(!e.isSourceFile(t)||!t.commonJsModuleIndicator||l.declarations.some(e.isJSDocTypeAlias))break e;l=void 0}break;case 247:if(l=c(ri(t).exports,r,8&n))break e;break;case 158:if(!e.hasModifier(t,32)){var E=ui(t.parent);E&&E.locals&&c(E.locals,r,111551&n)&&(p=t)}break;case 244:case 213:case 245:if(l=c(ri(t).members||B,r,788968&n)){if(!xn(l,t)){l=void 0;break}if(_&&e.hasModifier(_,32))return void Xr(h,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(213===t.kind&&32&n){var C=t.name;if(C&&r===C.escapedText){l=t.symbol;break e}}break;case 215:if(_===t.expression&&89===t.parent.token){var k=t.parent.parent;if(e.isClassLike(k)&&(l=c(ri(k).members,r,788968&n)))return void(i&&Xr(h,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 153:if(m=t.parent.parent,(e.isClassLike(m)||245===m.kind)&&(l=c(ri(m).members,r,788968&n)))return void Xr(h,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 201:if(K.target>=2)break;case 160:case 161:case 162:case 163:case 243:if(3&n&&"arguments"===r){l=ie;break e}break;case 200:if(3&n&&"arguments"===r){l=ie;break e}if(16&n){var N=t.name;if(N&&r===N.escapedText){l=t.symbol;break e}}break;case 156:t.parent&&155===t.parent.kind&&(t=t.parent),t.parent&&(e.isClassElement(t.parent)||244===t.parent.kind)&&(t=t.parent);break;case 315:case 308:case 309:t=e.getJSDocHost(t);break;case 155:_&&_===t.initializer&&(f=t);break;case 190:if(_&&_===t.initializer)155===(I=e.getRootDeclaration(t)).kind&&(f=t)}vn(t)&&(d=t),_=t,t=t.parent}if(!o||!l||d&&l===d.symbol||(l.isReferenced|=n),!l){if(_&&(e.Debug.assert(288===_.kind),_.commonJsModuleIndicator&&"exports"===r&&n&_.symbol.flags))return _.symbol;s||(l=c(ee,r,n))}if(!l&&g&&e.isInJSFile(g)&&g.parent&&e.isRequireCall(g.parent,!1))return ae;if(l){if(i){if(p){var A=p.name;return void Xr(h,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(A),bn(a))}if(h&&(2&n||(32&n||384&n)&&111551==(111551&n))){var F=si(l);(2&F.flags||32&F.flags||384&F.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)||247===t.kind}));if(void 0===n)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(8388608&n.flags||mn(n,r))){var i=void 0,a=e.declarationNameToString(e.getNameOfDeclaration(n));2&t.flags?i=Xr(r,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,a):32&t.flags?i=Xr(r,e.Diagnostics.Class_0_used_before_its_declaration,a):256&t.flags?i=Xr(r,e.Diagnostics.Enum_0_used_before_its_declaration,a):(e.Debug.assert(!!(128&t.flags)),K.preserveConstEnums&&(i=Xr(r,e.Diagnostics.Class_0_used_before_its_declaration,a))),i&&e.addRelatedInfo(i,e.createDiagnosticForNode(n,e.Diagnostics._0_is_declared_here,a))}}(F,h)}if(l&&v&&111551==(111551&n)&&!(4194304&g.flags)){var P=ti(l);e.length(P.declarations)&&e.every(P.declarations,(function(t){return e.isNamespaceExportDeclaration(t)||e.isSourceFile(t)&&!!t.symbol.globalExports}))&&$r(!K.allowUmdGlobalAccess,h,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 w=ti(xo(l)),I=e.getRootDeclaration(f);w===ri(f)?Xr(h,e.Diagnostics.Parameter_0_cannot_be_referenced_in_its_initializer,e.declarationNameToString(f.name)):w.valueDeclaration&&w.valueDeclaration.pos>f.pos&&I.parent.locals&&c(I.parent.locals,w.escapedName,n)===w&&Xr(h,e.Diagnostics.Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(f.name),e.declarationNameToString(h))}}return l}if(i&&!(h&&(function(t,r,n){if(!e.isIdentifier(t)||t.escapedText!==r||nb(t)||Md(t))return!1;var i=e.getThisContainer(t,!1),a=i;for(;a;){if(e.isClassLike(a.parent)){var o=ri(a.parent);if(!o)break;if(vs(wa(o),r))return Xr(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,bn(n),Pi(o)),!0;if(a===i&&!e.hasModifier(a,32))if(vs(ro(o).thisType,r))return Xr(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,bn(n)),!0}a=a.parent}return!1}(h,r,a)||Dn(h)||function(t,r,n){var i=1920|(e.isInJSFile(t)?111551:0);if(n===i){var a=On(gn(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(vs(ro(a),s))return Xr(o,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,e.unescapeLeadingUnderscores(r),e.unescapeLeadingUnderscores(s)),!0}return Xr(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(r)),!0}}return!1}(h,r,n)||function(t,r,n){if(111551&n){if("any"===r||"string"===r||"number"===r||"boolean"===r||"never"===r)return Xr(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(r)),!0;var i=On(gn(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 Xr(t,a,e.unescapeLeadingUnderscores(r)),!0}}return!1}(h,r,n)||function(t,r,n){if(111127&n){if(On(gn(t,r,1024,void 0,void 0,!1)))return Xr(t,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(r)),!0}else if(788544&n){if(On(gn(t,r,1536,void 0,void 0,!1)))return Xr(t,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(r)),!0}return!1}(h,r,n)||function(t,r,n){if(788584&n){var i=On(gn(t,r,111127,void 0,void 0,!1));if(i&&!(1920&i.flags))return Xr(t,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here,e.unescapeLeadingUnderscores(r)),!0}return!1}(h,r,n)))){var O=void 0;if(u&&Sr<Tr&&(O=km(g,r,n))){var M=Pi(O),L=Xr(h,u,bn(a),M);O.valueDeclaration&&e.addRelatedInfo(L,e.createDiagnosticForNode(O.valueDeclaration,e.Diagnostics._0_is_declared_here,M))}O||Xr(h,i,bn(a)),Sr++}}function hn(t,r){return 201!==t.kind&&200!==t.kind?e.isTypeQueryNode(t)||(e.isFunctionLikeDeclaration(t)||158===t.kind&&!e.hasModifier(t,32))&&(!r||r!==t.name):(!r||r!==t.name)&&(!(!t.asteriskToken&&!e.hasModifier(t,256))||!e.getImmediatelyInvokedFunctionExpression(t))}function vn(e){switch(e.kind){case 243:case 244:case 245:case 247:case 246:case 248:return!0;default:return!1}}function bn(t){return e.isString(t)?e.unescapeLeadingUnderscores(t):e.declarationNameToString(t)}function xn(t,r){for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(154===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 Dn(t){var r=function t(r){switch(r.kind){case 75:case 193:return r.parent?t(r.parent):void 0;case 215:if(e.isEntityNameExpression(r.expression))return r.expression;default:return}}(t);return!(!r||!Kn(r,64,!0))&&(Xr(t,e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,e.getTextOfNode(r)),!0)}function Sn(t,r,n){return!!r&&!!e.findAncestor(t,(function(t){return t===n||e.isFunctionLike(t)?"quit":t===r}))}function Tn(e){switch(e.kind){case 252:return e;case 254:return e.parent;case 255:return e.parent.parent;case 257:return e.parent.parent.parent;default:return}}function En(t){return e.find(t.declarations,e.isAliasSymbolDeclaration)}function Cn(e,t,r){var n=e.exports.get("export=");return n?vs(wa(n),t):On(e.exports.get(t),r)}function kn(t){return e.isExportAssignment(t)&&!t.isExportEquals||e.hasModifier(t,512)||e.isExportSpecifier(t)}function Nn(t,r,n){if(!U)return!1;if(!t||t.isDeclarationFile){var i=Cn(r,"default",!0);return(!i||!e.some(i.declarations,kn))&&!Cn(r,e.escapeLeadingUnderscores("__esModule"),n)}return e.isSourceFileJS(t)?!t.externalModuleIndicator&&!Cn(r,e.escapeLeadingUnderscores("__esModule"),n):Hn(r)}function An(t,r,n){void 0===n&&(n=!1);var i=zn(t,t.moduleSpecifier),a=r.propertyName||r.name,o="default"===a.escapedText&&!(!K.allowSyntheticDefaultImports&&!K.esModuleInterop),s=Gn(i,t.moduleSpecifier,n,o);if(s&&a.escapedText){if(e.isShorthandAmbientModuleSymbol(i))return i;var c=void 0;c=i&&i.exports&&i.exports.get("export=")?vs(wa(s),a.escapedText):function(e,t){if(3&e.flags){var r=e.valueDeclaration.type;if(r)return On(vs(Yu(r),t))}}(s,a.escapedText),c=On(c,n);var u=function(e,t,r){if(1536&e.flags)return On(Qn(e).get(t),r)}(s,a.escapedText,n);!u&&U&&"default"===a.escapedText&&(u=Wn(i,n)||On(i,n));var l=u&&c&&u!==c?function(t,r){if(t===ge&&r===ge)return ge;if(790504&t.flags)return t;var n=en(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=r.members),t.exports&&(n.exports=t.exports),n}(c,u):u||c;if(!l){var _=jn(i,t),d=e.declarationNameToString(a),p=Nm(a,s);if(void 0!==p){var f=Pi(p),m=Xr(a,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_2,_,d,f);p.valueDeclaration&&e.addRelatedInfo(m,e.createDiagnosticForNode(p.valueDeclaration,e.Diagnostics._0_is_declared_here,f))}else i.exports&&i.exports.has("default")?Xr(a,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,_,d):Xr(a,e.Diagnostics.Module_0_has_no_exported_member_1,_,d)}return l}}function Fn(e,t,r){return e.parent.parent.moduleSpecifier?An(e.parent.parent,e,r):Kn(e.propertyName||e.name,t,!1,r)}function Pn(t,r){if(e.isClassExpression(t))return ky(t).symbol;if(e.isEntityName(t)||e.isEntityNameExpression(t)){var n=Kn(t,901119,!0,r);return n||(ky(t),dn(t).resolvedSymbol)}}function wn(t,r){switch(void 0===r&&(r=!1),t.kind){case 252:return function(t,r){return 263===t.moduleReference.kind?Wn(zn(t,e.getExternalModuleImportEqualsDeclarationExpression(t))):Bn(t.moduleReference,r)}(t,r);case 254:return function(t,r){var n=zn(t,t.parent.moduleSpecifier);if(n){var i=void 0;i=e.isShorthandAmbientModuleSymbol(n)?n:Cn(n,"default",r);var a=Nn(e.find(n.declarations,e.isSourceFile),n,r);if(i||a){if(a)return Wn(n,r)||On(n,r)}else if(Hn(n)){var o=z>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",s=n.exports.get("export=").valueDeclaration,c=Xr(t.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,Pi(n),o);e.addRelatedInfo(c,e.createDiagnosticForNode(s,e.Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,o))}else n.exports&&n.exports.has(t.symbol.escapedName)?Xr(t.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Pi(n),Pi(t.symbol)):Xr(t.name,e.Diagnostics.Module_0_has_no_default_export,Pi(n));return i}}(t,r);case 255:return function(e,t){var r=e.parent.parent.moduleSpecifier;return Gn(zn(e,r),r,t,!1)}(t,r);case 257:return function(e,t){return An(e.parent.parent.parent,e,t)}(t,r);case 261:return Fn(t,901119,r);case 258:case 208:return function(t,r){return Pn(e.isExportAssignment(t)?t.expression:t.right,r)}(t,r);case 251:return function(e,t){return Wn(e.parent.symbol,t)}(t,r);case 280:return Kn(t.name,901119,!0,r);case 279:return function(e,t){return Pn(e.initializer,t)}(t,r);case 193:return function(t,r){if(e.isBinaryExpression(t.parent)&&t.parent.left===t&&62===t.parent.operatorToken.kind)return Pn(t.parent.right,r)}(t,r);default:return e.Debug.fail()}}function In(e,t){return void 0===t&&(t=901119),!!e&&(2097152==(e.flags&(2097152|t))||!!(2097152&e.flags&&67108864&e.flags))}function On(e,t){return!t&&In(e)?Mn(e):e}function Mn(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var r=_n(t);if(r.target)r.target===ye&&(r.target=ge);else{r.target=ye;var n=En(t);if(!n)return e.Debug.fail();var i=wn(n);r.target===ye?r.target=i||ge:Xr(n,e.Diagnostics.Circular_definition_of_import_alias_0,Pi(t))}return r.target}function Ln(e){var t=ri(e),r=Mn(t);r&&((r===ge||111551&r.flags&&!Cb(r))&&Rn(t))}function Rn(t){var r=_n(t);if(!r.referenced){r.referenced=!0;var n=En(t);if(!n)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(n)){var i=On(t);(i===ge||111551&i.flags)&&ky(n.moduleReference)}}}function Bn(t,r){return 75===t.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),75===t.kind||152===t.parent.kind?Kn(t,1920,!1,r):(e.Debug.assert(252===t.parent.kind),Kn(t,901119,!1,r))}function jn(e,t){return e.parent?jn(e.parent,t)+"."+Pi(e):Pi(e,t,void 0,20)}function Kn(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.Diagnostics.Cannot_find_namespace_0:Id(e.getFirstIdentifier(t)),u=e.isInJSFile(t)?function(t,r){if(Dc(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=ri(r.expression.left))return Jn(i)}if((e.isObjectLiteralMethod(r)||e.isPropertyAssignment(r))&&e.isBinaryExpression(r.parent.parent)&&6===e.getAssignmentDeclarationKind(r.parent.parent)){if(i=ri(r.parent.parent.left))return Jn(i)}var n=e.getHostSignatureFromJSDocHost(r);if(n){var i;return(i=ri(n))&&i.valueDeclaration}}(t.parent);if(n)return gn(n,t.escapedText,r,void 0,t,!0)}}(t,r):void 0;if(!(o=gn(a||t,t.escapedText,r,n||u?void 0:c,t,!0)))return u}else{if(152!==t.kind&&193!==t.kind)throw e.Debug.assertNever(t,"Unknown entity name kind.");var l=152===t.kind?t.left:t.expression,_=152===t.kind?t.right:t.name,d=Kn(l,s,n,!1,a);if(!d||e.nodeIsMissing(_))return;if(d===ge)return d;if(e.isInJSFile(t)&&d.valueDeclaration&&e.isVariableDeclaration(d.valueDeclaration)&&d.valueDeclaration.initializer&&Ag(d.valueDeclaration.initializer)){var p=d.valueDeclaration.initializer.arguments[0],f=zn(p,p);if(f){var m=Wn(f);m&&(d=m)}}if(!(o=fn(Qn(d),_.escapedText,r)))return void(n||Xr(_,e.Diagnostics.Namespace_0_has_no_exported_member_1,jn(d),e.declarationNameToString(_)))}return e.Debug.assert(0==(1&e.getCheckFlags(o)),"Should never get an instantiated symbol here."),o.flags&r||i?o:Mn(o)}}function Jn(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 zn(t,r,n){return Un(t,r,n?void 0:e.Diagnostics.Cannot_find_module_0)}function Un(t,r,n,i){return void 0===i&&(i=!1),e.isStringLiteralLike(r)?Vn(t,r.text,n,r,i):void 0}function Vn(t,r,i,a,o){(void 0===o&&(o=!1),e.startsWith(r,"@types/"))&&Xr(a,e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,e.removePrefix(r,"@types/"),r);var s=Fs(r,!0);if(s)return s;var c=e.getSourceFileOfNode(t),u=e.getResolvedModule(c,r),l=u&&e.getResolutionDiagnostic(K,u),_=u&&!l&&n.getSourceFile(u.resolvedFileName);if(_)return _.symbol?(u.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(u.extension)&&qn(!1,a,u,r),ti(_.symbol)):void(i&&Xr(a,e.Diagnostics.File_0_is_not_a_module,_.fileName));if(ot){var d=e.findBestPatternMatch(ot,(function(e){return e.pattern}),r);if(d){var p=st&&st.get(r);return ti(p?p:d.symbol)}}if(u&&!e.resolutionExtensionIsTSOrJson(u.extension)&&void 0===l||l===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)o?Xr(a,e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,r,u.resolvedFileName):qn(H&&!!i,a,u,r);else if(i){if(u){var f=n.getProjectReferenceRedirect(u.resolvedFileName);if(f)return void Xr(a,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,f,u.resolvedFileName)}if(l)Xr(a,l,r,u.resolvedFileName);else{var m=e.tryExtractTSExtension(r);if(m)Xr(a,e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,m,e.removeExtension(r,m));else!K.resolveJsonModule&&e.fileExtensionIs(r,".json")&&e.getEmitModuleResolutionKind(K)===e.ModuleResolutionKind.NodeJs&&e.hasJsonModuleEmitEnabled(K)?Xr(a,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,r):Xr(a,i,r)}}}function qn(t,r,n,i){var a,o=n.packageId,s=n.resolvedFileName,c=!e.isExternalModuleNameRelative(i)&&o?(a=o.name,p().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;$r(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 Wn(t,r){if(t){var n=function(t,r){if(!t||t===ge||t===r||1===r.exports.size||2097152&t.flags)return t;var n=_n(t);if(n.cjsExportMerged)return n.cjsExportMerged;var i=33554432&t.flags?t:an(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)?on(i.exports.get(t),e):e)})),_n(i).cjsExportMerged=i,n.cjsExportMerged=i}(ti(On(t.exports.get("export="),r)),ti(t));return ti(n)||t}}function Gn(t,r,n,i){var a=Wn(t,n);if(!n&&a){if(!(i||1539&a.flags||e.getDeclarationOfKind(a,288))){var o=z>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return Xr(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(K.esModuleInterop){var s=r.parent;if(e.isImportDeclaration(s)&&e.getNamespaceDeclarationNode(s)||e.isImportCall(s)){var c=wa(a),u=bs(c,0);if(u&&u.length||(u=bs(c,1)),u&&u.length){var l=Ng(c,a,t),_=en(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=Qo(l);return _.type=hi(_,d.members,e.emptyArray,e.emptyArray,d.stringIndexInfo,d.numberIndexInfo),_}}}}return a}function Hn(e){return void 0!==e.exports.get("export=")}function Yn(e){return Ns($n(e))}function Xn(e,t){var r=$n(t);if(r)return r.get(e)}function Qn(e){return 6256&e.flags?vo(e,"resolvedExports"):1536&e.flags?$n(e):e.exports||B}function $n(e){var t=_n(e);return t.resolvedExports||(t.resolvedExports=ei(e))}function Zn(t,r,n,i){r&&r.forEach((function(r,a){if("default"!==a){var o=t.get(a);if(o){if(n&&i&&o&&On(o)!==On(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 ei(t){var r=[];return function t(n){if(!(n&&n.exports&&e.pushIfUnique(r,n)))return;var i=e.cloneMap(n.exports);var 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],_=zn(l,l.moduleSpecifier),d=t(_);Zn(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];jr.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)))}})),Zn(i,o)}return i}(t=Wn(t))||B}function ti(e){var t;return e&&e.mergeId&&(t=Er[e.mergeId])?t:e}function ri(e){return ti(e.symbol&&xo(e.symbol))}function ni(e){return ti(e.parent&&xo(e.parent))}function ii(t,r){var i=ni(t);if(i&&!(262144&t.flags)){var a=e.mapDefined(i.declarations,(function(e){var t=Ci(e),r=t&&t.exports&&t.exports.get("export=");return r&&i&&oi(r,i)?t:void 0})),o=r&&function(t,r){var i,a=e.getSourceFileOfNode(r),o=""+N(a),s=_n(t);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 _=zn(r,l,!0);if(_)ai(_,t)&&(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=n.getSourceFiles();d<p.length;d++){var f=p[d];if(e.isExternalModule(f)){var m=ri(f);ai(m,t)&&(i=e.append(i,m))}}return s.extendedContainers=i||e.emptyArray}(t,r);if(r&&xi(i,r,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(t.declarations,(function(t){return!e.isAmbientModule(t)&&t.parent&&Ni(t.parent)?ri(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)?ri(e.getSourceFileOfNode(t)):(ky(t.parent.left.expression),dn(t.parent.left.expression).resolvedSymbol):void 0}));if(e.length(c))return e.mapDefined(c,(function(e){return ai(e,t)?e:void 0}))}function ai(t,r){if(t===ni(r))return r;var n=t.exports&&t.exports.get("export=");if(n&&oi(n,r))return t;var i=Qn(t),a=i.get(r.escapedName);return a&&oi(a,r)?a:e.forEachEntry(i,(function(e){if(oi(e,r))return e}))}function oi(e,t){if(ti(On(ti(e)))===ti(On(ti(t))))return e}function si(e){return ti(e&&0!=(1048576&e.flags)?e.exportSymbol:e)}function ci(e){return!!(111551&e.flags||2097152&e.flags&&111551&Mn(e).flags)}function ui(t){for(var r=0,n=t.members;r<n.length;r++){var i=n[r];if(161===i.kind&&e.nodeIsPresent(i.body))return i}}function li(e){var t=new g(oe,e);return h++,t.id=h,t}function _i(e,t,r){void 0===r&&(r=0);var n=li(e);return n.intrinsicName=t,n.objectFlags=r,n}function di(e){var t=Qc(e);return t.flags|=16,t.intrinsicName="boolean",t}function pi(e,t){var r=li(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=li(262144);return e&&(t.symbol=e),t}function mi(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)}function gi(t){var r;return t.forEach((function(e,t){!mi(t)&&ci(e)&&(r||(r=[])).push(e)})),r||e.emptyArray}function yi(t,r,n,i,a,o){return t.members=r,t.properties=r===B?e.emptyArray:gi(r),t.callSignatures=n,t.constructSignatures=i,t.stringIndexInfo=a,t.numberIndexInfo=o,t}function hi(e,t,r,n,i,a){return yi(pi(16,e),t,r,n,i,a)}function vi(t,r){for(var n,i=function(t){if(t.locals&&!pn(t)&&(n=r(t.locals)))return{value:n};switch(t.kind){case 288:if(!e.isExternalOrCommonJsModule(t))break;case 248:var i=ri(t);if(n=r(i.exports||B))return{value:n};break;case 244:case 213:case 245:var a;if((ri(t).members||B).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"===f(o))return o.value}return r(ee)}function bi(e){return 111551===e?111551:1920}function xi(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 158:case 160:case 162:case 163:continue;default:return!1}}return!0}return!1}(t)){var o=""+A(t),s=a.get(o);return s||a.set(o,s=[]),vi(r,c)}function c(a,o){if(e.pushIfUnique(s,a)){var _=function(a,o){if(l(a.get(t.escapedName),void 0,o))return[t];return e.forEachEntry(a,(function(a){if(2097152&a.flags&&"export="!==a.escapedName&&"default"!==a.escapedName&&!(e.isUMDExportSymbol(a)&&r&&e.isExternalModule(e.getSourceFileOfNode(r)))&&(!i||e.some(a.declarations,e.isExternalModuleImportEqualsDeclaration))&&(o||!e.getDeclarationOfKind(a,261))){var s=Mn(a);if(l(a,s,o))return[a];var _=Qn(s),d=_&&c(_,!0);if(d&&u(a,bi(n)))return[a].concat(d)}if(a.escapedName===t.escapedName&&a.exportSymbol&&l(ti(a.exportSymbol),void 0,o))return[t]}))}(a,o);return s.pop(),_}}function u(e,t){return!Di(e,r,t)||!!xi(e.parent,r,bi(t),i,a)}function l(r,i,a){return(t===(i||r)||ti(t)===ti(i||r))&&!e.some(r.declarations,Ni)&&(a||u(ti(r),n))}}function Di(t,r,n){var i=!1;return vi(r,(function(r){var a=ti(r.get(t.escapedName));return!!a&&(a===t||!!((a=2097152&a.flags&&!e.getDeclarationOfKind(a,261)?Mn(a):a).flags&n)&&(i=!0,!0))})),i}function Si(e,t){return 0===Ei(e,t,788968,!1).accessibility}function Ti(e,t){return 0===Ei(e,t,111551,!1).accessibility}function Ei(t,r,n,i){if(t&&r){var a=function t(r,n,i,a,o){if(e.length(r)){for(var s,c=0,u=r;c<u.length;c++){var l=u[c],_=xi(l,n,a,!1);if(_){s=l;var d=Ai(_[0],o);if(d)return d}else if(e.some(l.declarations,Ni))return{accessibility:0};var p=ii(l,n),f=e.first(l.declarations);!e.length(p)&&111551&a&&f&&e.isObjectLiteralExpression(f)&&f.parent&&e.isVariableDeclaration(f.parent)&&f===f.parent.initializer&&(p=[ri(f.parent)]);var m=t(p,n,i,i===l?bi(a):a,o);if(m)return m}return s?{accessibility:1,errorSymbolName:Pi(i,n,a),errorModuleName:s!==i?Pi(s,n,1920):void 0}:void 0}}([t],r,t,n,i);if(a)return a;var o=e.forEach(t.declarations,Ci);if(o)if(o!==Ci(r))return{accessibility:2,errorSymbolName:Pi(t,r,n),errorModuleName:Pi(o)};return{accessibility:1,errorSymbolName:Pi(t,r,n)}}return{accessibility:0}}function Ci(t){var r=e.findAncestor(t,ki);return r&&ri(r)}function ki(t){return e.isAmbientModule(t)||288===t.kind&&e.isExternalOrCommonJsModule(t)}function Ni(t){return e.isModuleWithStringLiteralName(t)||288===t.kind&&e.isExternalOrCommonJsModule(t)}function Ai(t,r){var n;if(e.every(e.filter(t.declarations,(function(e){return 75!==e.kind})),(function(t){if(!Ui(t)){var r=Tn(t);return r&&!e.hasModifier(r,1)&&Ui(r.parent)?i(t,r):e.isVariableDeclaration(t)&&e.isVariableStatement(t.parent.parent)&&!e.hasModifier(t.parent.parent,1)&&Ui(t.parent.parent.parent)?i(t,t.parent.parent):!(!e.isLateVisibilityPaintedStatement(t)||e.hasModifier(t,1)||!Ui(t.parent))&&i(t,t)}return!0})))return{accessibility:0,aliasesToMakeVisible:n};function i(t,i){return r&&(dn(t).isVisible=!0,n=e.appendIfUnique(n,i)),!0}}function Fi(t,r){var n;n=171===t.parent.kind||e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)||153===t.parent.kind?1160127:152===t.kind||193===t.kind||252===t.parent.kind?1920:788968;var i=e.getFirstIdentifier(t),a=gn(r,i.escapedText,n,void 0,void 0,!1);return a&&Ai(a,!0)||{accessibility:1,errorSymbolName:e.getTextOfNode(i),errorNode:i}}function Pi(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?Z.symbolToExpression:Z.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 wi(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?170:169:1===i?165:164;var s=Z.signatureToSignatureDeclaration(t,o,r,70222336|Li(n)),c=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),u=r&&e.getSourceFileOfNode(r);return c.writeNode(4,s,u,e.getTrailingSemicolonDeferringWriter(a)),a}}function Ii(t,r,n,i){void 0===n&&(n=1064960),void 0===i&&(i=e.createTextWriter(""));var a=K.noErrorTruncation||1&n,o=Z.typeToTypeNode(t,r,70221824|Li(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?void 0:2*e.defaultMaximumTruncationLength;return l&&u&&u.length>=l?u.substr(0,l-"...".length)+"...":u}function Oi(e,t){var r=Mi(e.symbol)?Ii(e,e.symbol.valueDeclaration):Ii(e),n=Mi(t.symbol)?Ii(t,t.symbol.valueDeclaration):Ii(t);return r===n&&(r=Ii(e,void 0,64),n=Ii(t,void 0,64)),[r,n]}function Mi(t){return t&&t.valueDeclaration&&e.isExpression(t.valueDeclaration)&&!bl(t.valueDeclaration)}function Li(e){return void 0===e&&(e=0),9469291&e}function Ri(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(123):void 0,1===t.kind||3===t.kind?e.createIdentifier(t.parameterName):e.createThisTypeNode(),t.type&&Z.typeToTypeNode(t.type,r,70222336|Li(n))),o=e.createPrinter({removeComments:!0}),s=r&&e.getSourceFileOfNode(r);return o.writeNode(4,a,s,i),i}}function Bi(e){return 8===e?"private":16===e?"protected":"public"}function ji(t){return t&&t.parent&&249===t.parent.kind&&e.isExternalModuleAugmentation(t.parent.parent)}function Ki(t){return 288===t.kind||e.isAmbientModule(t)}function Ji(t,r){var n=t.nameType;if(n){if(384&n.flags){var i=""+n.value;return e.isIdentifierText(i,K.target)||Mf(i)?Mf(i)&&e.startsWith(i,"-")?"["+i+"]":i:'"'+e.escapeString(i,34)+'"'}if(8192&n.flags)return"["+zi(n.symbol,r)+"]"}}function zi(t,r){if(r&&"default"===t.escapedName&&!(16384&r.flags)&&(!(16777216&r.flags)||!t.declarations||r.enclosingDeclaration&&e.findAncestor(t.declarations[0],Ki)!==e.findAncestor(r.enclosingDeclaration,Ki)))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))&&t.nameType&&384&t.nameType.flags){var a=Ji(t,r);if(void 0!==a)return a}return e.declarationNameToString(i)}if(n||(n=t.declarations[0]),n.parent&&241===n.parent.kind)return e.declarationNameToString(n.parent.name);switch(n.kind){case 213:case 200:case 201:return!r||r.encounteredError||131072&r.flags||(r.encounteredError=!0),213===n.kind?"(Anonymous class)":"(Anonymous function)"}}var o=Ji(t,r);return void 0!==o?o:e.symbolName(t)}function Ui(t){if(t){var r=dn(t);return void 0===r.isVisible&&(r.isVisible=!!function(){switch(t.kind){case 308:case 315:case 309:return!!(t.parent&&t.parent.parent&&t.parent.parent.parent&&e.isSourceFile(t.parent.parent.parent));case 190:return Ui(t.parent.parent);case 241:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 248:case 244:case 245:case 246:case 243:case 247:case 252:if(e.isExternalModuleAugmentation(t))return!0;var r=Yi(t);return 1&e.getCombinedModifierFlags(t)||252!==t.kind&&288!==r.kind&&8388608&r.flags?Ui(r):pn(r);case 158:case 157:case 162:case 163:case 160:case 159:if(e.hasModifier(t,24))return!1;case 161:case 165:case 164:case 166:case 155:case 249:case 169:case 170:case 172:case 168:case 173:case 174:case 177:case 178:case 181:return Ui(t.parent);case 254:case 255:case 257:return!1;case 154:case 288:case 251:return!0;case 258:default:return!1}}()),r.isVisible}return!1}function Vi(t,r){var n,i,a;return t.parent&&258===t.parent.kind?n=gn(t,t.escapedText,2998271,void 0,t,!1):261===t.parent.kind&&(n=Fn(t.parent,2998271)),n&&((a=e.createMap()).set(""+A(n),!0),function t(n){e.forEach(n,(function(n){var o=Tn(n)||n;if(r?dn(n).isVisible=!0:(i=i||[],e.pushIfUnique(i,o)),e.isInternalModuleImportEqualsDeclaration(n)){var s=n.moduleReference,c=gn(n,e.getFirstIdentifier(s).escapedText,901119,void 0,void 0,!1),u=c&&""+A(c);c&&!a.has(u)&&(a.set(u,!0),t(c.declarations))}}))}(n.declarations)),i}function qi(e,t){var r=Wi(e,t);if(r>=0){for(var n=br.length,i=r;i<n;i++)xr[i]=!1;return!1}return br.push(e),xr.push(!0),Dr.push(t),!0}function Wi(e,t){for(var r=br.length-1;r>=0;r--){if(Gi(br[r],Dr[r]))return-1;if(br[r]===e&&Dr[r]===t)return r}return-1}function Gi(t,r){switch(r){case 0:return!!_n(t).type;case 5:return!!dn(t).resolvedEnumType;case 2:return!!_n(t).declaredType;case 1:return!!t.resolvedBaseConstructorType;case 3:return!!t.resolvedReturnType;case 4:return!!t.immediateBaseConstraint;case 6:return!!_n(t).resolvedJSDocType;case 7:return!!t.resolvedTypeArguments}return e.Debug.assertNever(r)}function Hi(){return br.pop(),Dr.pop(),xr.pop()}function Yi(t){return e.findAncestor(e.getRootDeclaration(t),(function(e){switch(e.kind){case 241:case 242:case 257:case 256:case 255:case 254:return!1;default:return!0}})).parent}function Xi(e,t){var r=vs(e,t);return r?wa(r):void 0}function Qi(e){return e&&0!=(1&e.flags)}function $i(e){var t=ri(e);return t&&_n(t).type||ua(e,!1)}function Zi(t){return 153===t.kind&&!e.isStringOrNumericLiteralLike(t.expression)}function ea(t,r,n){if(131072&(t=_p(t,(function(e){return!(98304&e.flags)}))).flags)return Ge;if(1048576&t.flags)return pp(t,(function(e){return ea(e,r,n)}));var i=Qc(e.map(r,ou));if(gu(t)||yu(i)){if(131072&i.flags)return t;var a=Ut||(Ut=Ac("Omit",524288,e.Diagnostics.Cannot_find_global_type_0));return a?fc(a,[t,i]):xe}for(var o=e.createSymbolTable(),s=0,c=ts(t);s<c.length;s++){var u=c[s];Fl(su(u,8576),i)||24&e.getDeclarationModifierFlagsFromSymbol(u)||!ju(u)||o.set(u.escapedName,Ku(u,!1))}var l=Ts(t,0),_=Ts(t,1);return hi(n,o,e.emptyArray,e.emptyArray,l,_)}function ta(e,t){var r=ra(e);return r?Op(r,t):t}function ra(t){var r=function(e){var t=e.parent.parent;switch(t.kind){case 190:case 279:return ra(t);case 191:return ra(e.parent);case 241:return t.initializer;case 208:return t.right}}(t);if(r&&r.flowNode){var n=function(e){var t=e.parent;if(190===e.kind&&188===t.kind)return na(e.propertyName||e.name);if(279===e.kind||280===e.kind)return na(e.name);return""+t.elements.indexOf(e)}(t);if(n){var i=e.createNode(194,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 na(e){var t=ou(e);return 384&t.flags?""+t.value:void 0}function ia(t){var r,n=t.parent,i=$i(n.parent);if(!i||Qi(i))return i;if(V&&8388608&t.flags&&e.isParameterDeclaration(t)&&(i=U_(i)),188===n.kind)if(t.dotDotDotToken){if(2&i.flags||!Kf(i))return Xr(t,e.Diagnostics.Rest_types_may_only_be_created_from_object_types),xe;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=ea(i,a,t.symbol)}else{var u=t.propertyName||t.name;r=ta(t,Jp(Su(i,d=ou(u),u),t.name))}else{var l=Zh(65,i,Se,n),_=n.elements.indexOf(t);if(t.dotDotDotToken)r=lp(i,w_)?pp(i,(function(e){return Vc(e,_)})):jc(l);else if(b_(i)){var d=Wu(_),p=Af(t)?8:0;r=ta(t,Jp(Tu(i,d,t.name,p)||xe,t.name))}else r=l}return t.initializer?e.getEffectiveTypeAnnotationNode(e.walkUpBindingElementsAndPatterns(t))?!V||32768&R_(Ay(t))?r:Hd(r,524288):Qc([Hd(r,524288),Ay(t)],2):r}function aa(t){var r=e.getJSDocType(t);if(r)return Yu(r)}function oa(t){var r=e.skipParentheses(t);return 191===r.kind&&0===r.elements.length}function sa(e,t){return void 0===t&&(t=!0),V&&t?z_(e):e}function ca(e){return 155===e.kind&&(200===e.parent.kind||201===e.parent.kind)&&!!xf(e.parent)}function ua(t,r){if(e.isVariableDeclaration(t)&&230===t.parent.parent.kind){var n=lu(dm(zy(t.parent.parent.expression)));return 4456448&n.flags?_u(n):Ne}if(e.isVariableDeclaration(t)&&231===t.parent.parent.kind){var i=t.parent.parent;return $h(i.expression,i.awaitModifier)||he}if(e.isBindingPattern(t.parent))return ia(t);var a=r&&(e.isParameter(t)&&As(t)||!e.isBindingElement(t)&&!e.isVariableDeclaration(t)&&!!t.questionToken),o=xa(t);if(o)return sa(o,a);if((H||e.isInJSFile(t))&&241===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 99===r.kind||75===r.kind&&Od(r)===te}(t.initializer)))return ve;if(t.initializer&&oa(t.initializer))return bt}if(155===t.kind){var s,c=t.parent;if(163===c.kind&&!go(c)){var u=e.getDeclarationOfKind(ri(t.parent),162);if(u){var l=Ls(u),_=lx(c);return _&&t===_?(e.Debug.assert(!_.type),wa(l.thisParameter)):zs(l)}}if(e.isInJSFile(t)){var d=e.getJSDocType(c);if(d&&e.isFunctionTypeNode(d))return Mg(Ls(d),c.parameters.indexOf(t))}if(s="this"===t.symbol.escapedName?tf(c):rf(t,!0))return sa(s,a)}else if(e.isInJSFile(t)){var p=_a(t,ri(t),e.getDeclaredExpandoInitializer(t));if(p)return p}return t.initializer&&!ca(t)?sa(s=Ay(t),a):e.isJsxAttribute(t)?Ie:e.isBindingPattern(t.name)&&!ca(t)?ya(t.name,!1,!0):void 0}function la(t,r){var n=e.getAssignedExpandoInitializer(t.valueDeclaration);if(n){var i=e.getJSDocTypeTag(n);return i&&i.typeExpression?Yu(i.typeExpression):_a(t.valueDeclaration,t,n)||N_(ky(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&&(fa(d)?s=!0:c=!0),e.isCallExpression(d)||(a=da(a,d,t,_)),a||(o||(o=[])).push(e.isBinaryExpression(d)||e.isCallExpression(d)?pa(t,r,d,p):Be)}}var f=a;if(!f){if(!e.length(o))return xe;var m=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&&fa(a)}))}(o,t.declarations):void 0;if(c){var g=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=ro(ri(r)),i=n&&Wa(n)[0];if(i)return Xi(i,t.escapedName)}}(t);g&&((m||(m=[])).push(g),s=!0)}f=Qc(e.some(m,(function(e){return!!(-98305&e.flags)}))?m:o,2)}var y=rd(sa(f,c&&!s));return _p(y,(function(e){return!!(-98305&e.flags)}))===Be?(id(t.valueDeclaration,he),he):y}function _a(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=ri(t);a&&e.hasEntries(a.exports)&&un(i,a.exports),t=e.isBinaryExpression(t)?t.parent:t.parent.parent}var o=ri(t);o&&e.hasEntries(o.exports)&&un(i,o.exports);var s=hi(r,i,e.emptyArray,e.emptyArray,void 0,void 0);return s.objectFlags|=16384,s}}function da(t,r,n,i){var a=e.getEffectiveTypeAnnotationNode(r.parent);if(a){var o=rd(Yu(a));if(!t)return o;t===xe||o===xe||El(t,o)||Uh(void 0,t,i,o)}if(n.parent){var s=e.getEffectiveTypeAnnotationNode(n.parent.valueDeclaration);if(s)return Xi(Yu(s),n.escapedName)}return t}function pa(t,r,n,i){if(e.isCallExpression(n)){if(r)return wa(r);var a=ky(n.arguments[2]),o=Xi(a,"value");if(o)return o;var s=Xi(a,"get");if(s){var c=qm(s);if(c)return zs(c)}var u=Xi(a,"set");if(u){var l=qm(u);if(l)return Ug(l)}return he}var _=r?wa(r):N_(ky(n.right));if(524288&_.flags&&2===i&&"export="===t.escapedName){var d=Qo(_),p=e.createSymbolTable();e.copyEntries(d.members,p),r&&!r.exports&&(r.exports=e.createSymbolTable()),(r||t).exports.forEach((function(e,t){if(p.has(t)){var r=d.members.get(t),n=en(e.flags|r.flags,t);n.type=Qc([wa(e),wa(r)]),p.set(t,n)}else p.set(t,e)}));var f=hi(d.symbol,p,d.callSignatures,d.constructSignatures,d.stringIndexInfo,d.numberIndexInfo);return f.objectFlags|=16384&e.getObjectFlags(_),f}return x_(_)?(id(n,vt),vt):_}function fa(t){var r=e.getThisContainer(t,!1);return 161===r.kind||243===r.kind||200===r.kind&&!e.isPrototypePropertyAssignment(r.parent)}function ma(t,r,n){return t.initializer?sa(Ay(t)):e.isBindingPattern(t.name)?ya(t.name,r,n):(n&&!ba(t)&&id(t,he),he)}function ga(t,r,n){var i,a=t.elements,o=e.lastOrUndefined(a),s=!(!o||190!==o.kind||!o.dotDotDotToken);if(0===a.length||1===a.length&&s)return J>=2?(i=he,Rc(Mc(!0),[i])):vt;var c=Uc(e.map(a,(function(t){return e.isOmittedExpression(t)?he:ma(t,r,n)})),e.findLastIndex(a,(function(t){return!e.isOmittedExpression(t)&&!Af(t)}),a.length-(s?2:1))+1,s);return r&&((c=uc(c)).pattern=t),c}function ya(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),188===t.kind?function(t,r,n){var i,a=e.createSymbolTable(),o=524416;e.forEach(t.elements,(function(e){var t=e.propertyName||e.name;if(e.dotDotDotToken)i=tc(he,!1);else{var s=ou(t);if(_o(s)){var c=yo(s),u=en(4|(e.initializer?16777216:0),c);u.type=ma(e,r,n),u.bindingElement=e,a.set(u.escapedName,u)}else o|=512}}));var s=hi(void 0,a,e.emptyArray,e.emptyArray,i,void 0);return s.objectFlags|=o,r&&(s.pattern=t),s}(t,r,n):ga(t,r,n)}function ha(e,t){return va(ua(e,!0),e,t)}function va(t,r,n){return t?(n&&ad(r,t),8192&t.flags&&(e.isBindingElement(r)||!r.type)&&t.symbol!==ri(r)&&(t=Le),rd(t)):(t=e.isParameter(r)&&r.dotDotDotToken?vt:he,n&&(ba(r)||id(r,t)),t)}function ba(t){var r=e.getRootDeclaration(t);return ah(155===r.kind?r.parent:r)}function xa(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return Yu(r)}function Da(t){var r=_n(t);if(!r.type){var n=function(t){if(4194304&t.flags)return(r=ro(ni(t))).typeParameters?cc(r,e.map(r.typeParameters,(function(e){return he}))):r;var r;if(t===ae)return he;if(134217728&t.flags){var n=ri(e.getSourceFileOfNode(t.valueDeclaration)),i=e.createSymbolTable();return i.set("exports",n),hi(t,i,e.emptyArray,e.emptyArray,void 0,void 0)}var a,o=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(o))return he;if(e.isSourceFile(o)&&e.isJsonSourceFile(o)){if(!o.statements.length)return Ge;var s=N_(zy(o.statements[0].expression));return 524288&s.flags?Q_(s):s}if(!qi(t,0))return 512&t.flags&&!(67108864&t.flags)?Aa(t):Pa(t);if(258===o.kind)a=va(ky(o.expression),o);else if(e.isBinaryExpression(o)||e.isInJSFile(o)&&(e.isCallExpression(o)||(e.isPropertyAccessExpression(o)||e.isBindableStaticElementAccessExpression(o))&&e.isBinaryExpression(o.parent)))a=la(t);else if(e.isJSDocPropertyLikeTag(o)||e.isPropertyAccessExpression(o)||e.isElementAccessExpression(o)||e.isIdentifier(o)||e.isStringLiteralLike(o)||e.isNumericLiteral(o)||e.isClassDeclaration(o)||e.isFunctionDeclaration(o)||e.isMethodDeclaration(o)&&!e.isObjectLiteralMethod(o)||e.isMethodSignature(o)||e.isSourceFile(o)){if(9136&t.flags)return Aa(t);a=e.isBinaryExpression(o.parent)?la(t):xa(o)||he}else if(e.isPropertyAssignment(o))a=xa(o)||Iy(o);else if(e.isJsxAttribute(o))a=xa(o)||Uf(o);else if(e.isShorthandPropertyAssignment(o))a=xa(o)||wy(o.name,0);else if(e.isObjectLiteralMethod(o))a=xa(o)||Oy(o,0);else if(e.isParameter(o)||e.isPropertyDeclaration(o)||e.isPropertySignature(o)||e.isVariableDeclaration(o)||e.isBindingElement(o))a=ha(o,!0);else if(e.isEnumDeclaration(o))a=Aa(t);else if(e.isEnumMember(o))a=Fa(t);else{if(!e.isAccessor(o))return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(o.kind)+" for "+e.Debug.formatSymbol(t));a=ka(t)}if(!Hi())return 512&t.flags&&!(67108864&t.flags)?Aa(t):Pa(t);return a}(t);r.type||(r.type=n)}return r.type}function Sa(t){if(t)return 162===t.kind?e.getEffectiveReturnTypeNode(t):e.getEffectiveSetAccessorTypeAnnotationNode(t)}function Ta(e){var t=Sa(e);return t&&Yu(t)}function Ea(e){return Ks(Ls(e))}function Ca(t){var r=_n(t);return r.type||(r.type=function(t){if(!qi(t,0))return xe;var r=ka(t);if(!Hi()){if(r=he,H)Xr(e.getDeclarationOfKind(t,162),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,Pi(t))}return r}(t))}function ka(t){var r=e.getDeclarationOfKind(t,162),n=e.getDeclarationOfKind(t,163);if(r&&e.isInJSFile(r)){var i=aa(r);if(i)return i}var a=Ta(r);if(a)return a;var o=Ta(n);return o||(r&&r.body?Xg(r):(n?ah(n)||$r(H,n,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Pi(t)):(e.Debug.assert(!!r,"there must exist a getter as we are current checking either setter or getter in this function"),ah(r)||$r(H,r,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Pi(t))),he))}function Na(t){var r=qa(Ha(t));return 8650752&r.flags?r:2097152&r.flags?e.find(r.types,(function(e){return!!(8650752&e.flags)})):void 0}function Aa(t){var r=_n(t),n=r;if(!r.type){var i=e.getDeclarationOfExpando(t.valueDeclaration);if(i){var a=Tg(t,ri(i));a&&(t=r=a)}n.type=r.type=function(t){var r=t.valueDeclaration;if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))return he;if(208===r.kind||(193===r.kind||194===r.kind)&&208===r.parent.kind)return la(t);if(512&t.flags&&r&&e.isSourceFile(r)&&r.commonJsModuleIndicator){var n=Wn(t);if(n!==t){if(!qi(t,0))return xe;var i=ti(t.exports.get("export=")),a=la(i,i===n?void 0:n);return Hi()?a:Pa(t)}}var o=pi(16,t);if(32&t.flags){var s=Na(t);return s?iu([o,s]):o}return V&&16777216&t.flags?z_(o):o}(t)}return r.type}function Fa(e){var t=_n(e);return t.type||(t.type=eo(e))}function Pa(t){var r=t.valueDeclaration;return e.getEffectiveTypeAnnotationNode(r)?(Xr(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Pi(t)),xe):(H&&(155!==r.kind||r.initializer)&&Xr(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,Pi(t)),he)}function wa(t){return 65536&e.getCheckFlags(t)?function(t){var r=_n(t);return r.type||(e.Debug.assertDefined(r.deferralParent),e.Debug.assertDefined(r.deferralConstituents),r.type=1048576&r.deferralParent.flags?Qc(r.deferralConstituents):iu(r.deferralConstituents)),r.type}(t):1&e.getCheckFlags(t)?function(e){var t=_n(e);if(!t.type){if(!qi(e,0))return t.type=xe;var r=gl(wa(t.target),t.mapper);Hi()||(r=Pa(e)),t.type=r}return t.type}(t):8192&e.getCheckFlags(t)?function(e){return hd(e.propertyType,e.mappedType,e.constraintType)}(t):7&t.flags?Da(t):9136&t.flags?Aa(t):8&t.flags?Fa(t):98304&t.flags?Ca(t):2097152&t.flags?function(e){var t=_n(e);if(!t.type){var r=Mn(e);t.type=111551&r.flags?wa(r):xe}return t.type}(t):xe}function Ia(t,r){return void 0!==t&&void 0!==r&&0!=(4&e.getObjectFlags(t))&&t.target===r}function Oa(t){return 4&e.getObjectFlags(t)?t.target:t}function Ma(t,r){return function t(n){if(7&e.getObjectFlags(n)){var i=Oa(n);return i===r||e.some(Wa(i),t)}if(2097152&n.flags)return e.some(n.types,t);return!1}(t)}function La(t,r){for(var n=0,i=r;n<i.length;n++){var a=i[n];t=e.appendIfUnique(t,to(ri(a)))}return t}function Ra(t,r){for(;;){if((t=t.parent)&&e.isBinaryExpression(t)){var n=e.getAssignmentDeclarationKind(t);if(6===n||3===n){var i=ri(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 244:case 213:case 245:case 164:case 165:case 159:case 169:case 170:case 298:case 243:case 160:case 200:case 201:case 246:case 314:case 315:case 309:case 308:case 185:case 179:var a=Ra(t,r);if(185===t.kind)return e.append(a,to(ri(t.typeParameter)));if(179===t.kind)return e.concatenate(a,Pu(t));var o=La(a,e.getEffectiveTypeParameterDeclarations(t)),s=r&&(244===t.kind||213===t.kind||245===t.kind||Sg(t))&&Ha(ri(t)).thisType;return s?e.append(o,s):o}}}function Ba(t){var r=32&t.flags?t.valueDeclaration:e.getDeclarationOfKind(t,245);return e.Debug.assert(!!r,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Ra(r)}function ja(t){for(var r,n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(245===a.kind||244===a.kind||213===a.kind||Sg(a)||e.isTypeAlias(a)){var o=a;r=La(r,e.getEffectiveTypeParameterDeclarations(o))}}return r}function Ka(e){var t=xs(e,1);if(1===t.length){var r=t[0];return!r.typeParameters&&1===r.parameters.length&&M(r)&&v_(Ig(r.parameters[0]))===he}return!1}function Ja(e){if(xs(e,1).length>0)return!0;if(8650752&e.flags){var t=cs(e);return!!t&&Ka(t)}return!1}function za(t){return e.getEffectiveBaseTypeNode(t.symbol.valueDeclaration)}function Ua(t,r,n){var i=e.length(r),a=e.isInJSFile(n);return e.filter(xs(t,1),(function(t){return(a||i>=Os(t.typeParameters))&&i<=e.length(t.typeParameters)}))}function Va(t,r,n){var i=Ua(t,r,n),a=e.map(r,Yu);return e.sameMap(i,(function(t){return e.some(t.typeParameters)?Ws(t,a,e.isInJSFile(n)):t}))}function qa(t){if(!t.resolvedBaseConstructorType){var r=t.symbol.valueDeclaration,n=e.getEffectiveBaseTypeNode(r),i=za(t);if(!i)return t.resolvedBaseConstructorType=Se;if(!qi(t,1))return xe;var a=zy(i.expression);if(n&&i!==n&&(e.Debug.assert(!n.typeArguments),zy(n.expression)),2621440&a.flags&&Qo(a),!Hi())return Xr(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Pi(t.symbol)),t.resolvedBaseConstructorType=xe;if(!(1&a.flags||a===ke||Ja(a))){var o=Xr(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,Ii(a));if(262144&a.flags){var s=ic(a),c=De;if(s){var u=xs(s,1);u[0]&&(c=zs(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,Pi(a.symbol),Ii(c)))}return t.resolvedBaseConstructorType=xe}t.resolvedBaseConstructorType=a}return t.resolvedBaseConstructorType}function Wa(t){return t.resolvedBaseTypes||(8&t.objectFlags?t.resolvedBaseTypes=[jc(Qc(t.typeParameters||e.emptyArray),t.readonly)]:96&t.symbol.flags?(32&t.symbol.flags&&function(t){t.resolvedBaseTypes=e.resolvingEmptyArray;var r=ms(qa(t));if(!(2621441&r.flags))return t.resolvedBaseTypes=e.emptyArray;var n,i=za(t),a=r.symbol?ro(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=_c(e);return t[r].symbol!==n[r].symbol}return!0}(a))n=pc(i,r.symbol);else if(1&r.flags)n=r;else{var o=Va(r,i.typeArguments,i);if(!o.length)return Xr(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),t.resolvedBaseTypes=e.emptyArray;n=zs(o[0])}if(n===xe)return t.resolvedBaseTypes=e.emptyArray;if(!Ga(n))return Xr(i.expression,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Ii(n)),t.resolvedBaseTypes=e.emptyArray;if(t===n||Ma(n,t))return Xr(t.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Ii(t,void 0,2)),t.resolvedBaseTypes=e.emptyArray;t.resolvedBaseTypes===e.resolvingEmptyArray&&(t.members=void 0);t.resolvedBaseTypes=[n]}(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(245===i.kind&&e.getInterfaceBaseTypeNodes(i))for(var a=0,o=e.getInterfaceBaseTypeNodes(i);a<o.length;a++){var s=o[a],c=Yu(s);c!==xe&&(Ga(c)?t===c||Ma(c,t)?Xr(i,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Ii(t,void 0,2)):t.resolvedBaseTypes===e.emptyArray?t.resolvedBaseTypes=[c]:t.resolvedBaseTypes.push(c):Xr(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 Ga(t){if(262144&t.flags){var r=cs(t);if(r)return Ga(r)}return!!(67633153&t.flags)&&!Xo(t)||!!(2097152&t.flags)&&e.every(t.types,Ga)}function Ha(t){var r=_n(t),n=r;if(!r.declaredType){var i=32&t.flags?1:2,a=Tg(t,function(t){var r=t&&t.parent&&(e.isFunctionDeclaration(t)&&ri(t)||e.isBinaryExpression(t.parent)&&ri(t.parent.left)||e.isVariableDeclaration(t.parent)&&ri(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&&193===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?ri(i):void 0}(t.valueDeclaration));a&&(t=r=a);var o=n.declaredType=r.declaredType=pi(i,t),s=Ba(t),c=ja(t);(s||c||1===i||!function(t){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];if(245===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=Kn(c.expression,788968,!0);if(!u||!(64&u.flags)||Ha(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(oc(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 Ya(t){var r=_n(t);if(!r.declaredType){if(!qi(t,2))return xe;var n=e.find(t.declarations,e.isTypeAlias);if(!n)return e.Debug.fail("Type alias symbol with no valid declaration found");var i=e.isJSDocTypeAlias(n)?n.typeExpression:n.type,a=i?Yu(i):xe;if(Hi()){var o=ja(t);o&&(r.typeParameters=o,r.instantiations=e.createMap(),r.instantiations.set(oc(o),a))}else a=xe,Xr(e.isJSDocEnumTag(n)?n:n.name||n,e.Diagnostics.Type_alias_0_circularly_references_itself,Pi(t));r.declaredType=a}return r.declaredType}function Xa(t){var r=t.initializer;if(!r)return!(8388608&t.flags);switch(r.kind){case 10:case 8:case 14:return!0;case 206:return 40===r.operator&&8===r.operand.kind;case 75:return e.nodeIsMissing(r)||!!ri(t.parent).exports.get(r.escapedText);case 208:return function t(r){return!!e.isStringLiteralLike(r)||208===r.kind&&(t(r.left)&&t(r.right))}(r);default:return!1}}function Qa(t){var r=_n(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(247===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;Xa(u)||(n=!0)}}return r.enumKind=n?0:1}function $a(e){return 1024&e.flags&&!(1048576&e.flags)?ro(ni(e.symbol)):e}function Za(e){var t=_n(e);if(t.declaredType)return t.declaredType;if(1===Qa(e)){b++;for(var r=[],n=0,i=e.declarations;n<i.length;n++){var a=i[n];if(247===a.kind)for(var o=0,s=a.members;o<s.length;o++){var c=s[o],u=Ib(c),l=Uu(Wu(void 0!==u?u:0,b,ri(c)));_n(ri(c)).declaredType=l,r.push(Vu(l))}}if(r.length){var _=Qc(r,1,e,void 0);return 1048576&_.flags&&(_.flags|=1024,_.symbol=e),t.declaredType=_}}var d=li(32);return d.symbol=e,t.declaredType=d}function eo(e){var t=_n(e);if(!t.declaredType){var r=Za(ni(e));t.declaredType||(t.declaredType=r)}return t.declaredType}function to(e){var t=_n(e);return t.declaredType||(t.declaredType=fi(e))}function ro(e){return no(e)||xe}function no(e){return 96&e.flags?Ha(e):524288&e.flags?Ya(e):262144&e.flags?to(e):384&e.flags?Za(e):8&e.flags?eo(e):2097152&e.flags?function(e){var t=_n(e);return t.declaredType||(t.declaredType=ro(Mn(e)))}(e):void 0}function io(e){switch(e.kind){case 124:case 147:case 142:case 139:case 150:case 127:case 143:case 140:case 109:case 145:case 99:case 136:case 186:return!0;case 173:return io(e.elementType);case 168:return!e.typeArguments||e.typeArguments.every(io)}return!1}function ao(t){var r=e.getEffectiveConstraintOfTypeParameter(t);return!r||io(r)}function oo(t){var r=e.getEffectiveTypeAnnotationNode(t);return r?io(r):!e.hasInitializer(t)}function so(t){if(t.declarations&&1===t.declarations.length){var r=t.declarations[0];if(r)switch(r.kind){case 158:case 157:return oo(r);case 160:case 159:case 161:case 162:case 163:return function(t){var r=e.getEffectiveReturnTypeNode(t),n=e.getEffectiveTypeParameterDeclarations(t);return(161===t.kind||!!r&&io(r))&&t.parameters.every(oo)&&n.every(ao)}(r)}}return!1}function co(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&&so(s)?s:cl(s,r))}return i}function uo(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];e.has(i.escapedName)||e.set(i.escapedName,i)}}function lo(t){if(!t.declaredProperties){var r=t.symbol,n=bo(r);t.declaredProperties=gi(n),t.declaredCallSignatures=e.emptyArray,t.declaredConstructSignatures=e.emptyArray,t.declaredCallSignatures=js(n.get("__call")),t.declaredConstructSignatures=js(n.get("__new")),t.declaredStringIndexInfo=rc(r,0),t.declaredNumberIndexInfo=rc(r,1)}return t}function _o(e){return!!(8576&e.flags)}function po(t){if(!e.isComputedPropertyName(t)&&!e.isElementAccessExpression(t))return!1;var r=e.isComputedPropertyName(t)?t.expression:t.argumentExpression;return e.isEntityNameExpression(r)&&_o(e.isComputedPropertyName(t)?Lf(t):ky(r))}function fo(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function mo(t){var r=e.getNameOfDeclaration(t);return!!r&&po(r)}function go(t){return e.hasDynamicName(t)&&!mo(t)}function yo(t){return 8192&t.flags?t.escapedName:384&t.flags?e.escapeLeadingUnderscores(""+t.value):e.Debug.fail()}function ho(t,r,n,i){e.Debug.assert(!!i.symbol,"The member is expected to have a symbol.");var a=dn(i);if(!a.resolvedSymbol){a.resolvedSymbol=i.symbol;var o=e.isBinaryExpression(i)?i.left:i.name,s=e.isElementAccessExpression(o)?ky(o.argumentExpression):Lf(o);if(_o(s)){var c=yo(s),u=i.symbol.flags,l=n.get(c);l||n.set(c,l=en(0,c,4096));var _=r&&r.get(c);if(l.flags&rn(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 Xr(e.getNameOfDeclaration(t)||t,e.Diagnostics.Property_0_was_also_declared_here,p)})),Xr(o||i,e.Diagnostics.Duplicate_property_0,p),l=en(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,_n(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 vo(t,r){var n=_n(t);if(!n[r]){var i="resolvedExports"===r,a=i?1536&t.flags?ei(t):t.exports:t.members;n[r]=a||B;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)&&mo(p)&&ho(t,a,o,p)}}var f=t.assignmentDeclarationMembers;if(f)for(var m=0,g=e.arrayFrom(f.values());m<g.length;m++){p=g[m];var y=e.getAssignmentDeclarationKind(p);i===!(3===y||4===y||9===y||6===y)&&mo(p)&&ho(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 un(n,t),un(n,r),n}(a,o)||B}return n[r]}function bo(e){return 6256&e.flags?vo(e,"resolvedMembers"):e.members||B}function xo(t){if(106500&t.flags&&"__computed"===t.escapedName){var r=_n(t);if(!r.lateSymbol&&e.some(t.declarations,mo)){var n=ti(t.parent);e.some(t.declarations,e.hasStaticModifier)?Qn(n):bo(n)}return r.lateSymbol||(r.lateSymbol=t)}return t}function Do(t,r,n){if(4&e.getObjectFlags(t)){var i=t.target,a=_c(t);if(e.length(i.typeParameters)===e.length(a)){var o=cc(i,e.concatenate(a,[r||i.thisType]));return n?ms(o):o}}else if(2097152&t.flags)return iu(e.map(t.types,(function(e){return Do(e,r,n)})));return n?ms(t):t}function So(t,r,n,i){var a,o,s,c,u,l;e.rangeEquals(n,i,0,n.length)?(a=j,o=r.symbol?bo(r.symbol):e.createSymbolTable(r.declaredProperties),s=r.declaredCallSignatures,c=r.declaredConstructSignatures,u=r.declaredStringIndexInfo,l=r.declaredNumberIndexInfo):(a=el(n,i),o=co(r.declaredProperties,a,1===n.length),s=$u(r.declaredCallSignatures,a),c=$u(r.declaredConstructSignatures,a),u=vl(r.declaredStringIndexInfo,a),l=vl(r.declaredNumberIndexInfo,a));var _=Wa(r);if(_.length){r.symbol&&o===bo(r.symbol)&&(o=e.createSymbolTable(r.declaredProperties)),yi(t,o,s,c,u,l);for(var d=e.lastOrUndefined(i),p=0,f=_;p<f.length;p++){var m=f[p],g=d?Do(gl(m,a),d):m;uo(o,ts(g)),s=e.concatenate(s,xs(g,0)),c=e.concatenate(c,xs(g,1)),u||(u=g===he?tc(he,!1):Ts(g,0)),l=l||Ts(g,1)}}yi(t,o,s,c,u,l)}function To(e,t,r,n,i,a,o,s){var c=new y(oe,s);return c.declaration=e,c.typeParameters=t,c.parameters=n,c.thisParameter=r,c.resolvedReturnType=i,c.resolvedTypePredicate=a,c.minArgumentCount=o,c.target=void 0,c.mapper=void 0,c}function Eo(e){var t=To(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}function Co(e,t){var r=Eo(e);return r.unionSignatures=t,r.target=void 0,r.mapper=void 0,r}function ko(e){return R(e)?e:e.optionalCallSignatureCache||(e.optionalCallSignatureCache=function(e){var t=Eo(e);return t.flags|=4,t}(e))}function No(t){if(M(t)){var r=t.parameters.length-1,n=wa(t.parameters[r]);if(w_(n)){var i=_c(n),a=n.target.minLength,o=n.target.hasRestElement?i.length-1:-1,s=e.map(i,(function(e,n){var i=en(1,Og(t,r+n),n===o?32768:n>=a?16384:0);return i.type=n===o?jc(e):e,i}));return e.concatenate(t.parameters.slice(0,r),s)}}return t.parameters}function Ao(e,t,r,n,i){for(var a=0,o=e;a<o.length;a++){var s=o[a];if(m_(s,t,r,n,i,r?Nl:Cl))return s}}function Fo(t,r,n){if(r.typeParameters){if(n>0)return;for(var i=1;i<t.length;i++)if(!Ao(t[i],r,!1,!1,!1))return;return[r]}var a;for(i=0;i<t.length;i++){var o=i===n?r:Ao(t[i],r,!0,!1,!0);if(!o)return;a=e.appendIfUnique(a,o)}return a}function Po(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||!Ao(r,s,!1,!1,!0)){var c=Fo(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=X_(_,iu(e.mapDefined(c,(function(e){return e.thisParameter&&wa(e.thisParameter)}))));(u=Co(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=Bg(e),n=Bg(t),i=r>=n?e:t,a=i===e?t:e,o=i===e?r:n,s=Kg(e)||Kg(t),c=s&&!Kg(i),u=new Array(o+(c?1:0)),l=0;l<o;l++){var _=Lg(i,l),d=Lg(a,l)||De,p=iu([_,d]),f=s&&!c&&l===o-1,m=l>=jg(i)&&l>=jg(a),g=l>=r?void 0:Og(e,l),y=l>=n?void 0:Og(t,l),h=en(1|(m&&!f?16777216:0),(g===y?g:g?y?void 0:g:y)||"arg"+l);h.type=f?jc(p):p,u[l]=h}if(c){var v=en(1,"args");v.type=jc(Mg(a,o)),u[o]=v}return u}(t,r),a=function(e,t){if(!e||!t)return e||t;var r=iu([wa(e),wa(t)]);return X_(e,r)}(t.thisParameter,r.thisParameter),o=Math.max(t.minArgumentCount,r.minArgumentCount),s=To(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"}},m=0,g=t;m<g.length;m++){if("break"===f(g[m]))break}r=p}return r||e.emptyArray}function wo(e,t){for(var r=[],n=!1,i=0,a=e;i<a.length;i++){var o=Ts(a[i],t);if(!o)return;r.push(o.type),n=n||o.isReadonly}return tc(Qc(r,2),n)}function Io(e,t){return e?t?iu([e,t]):e:t}function Oo(e,t){return e?t?tc(iu([e.type,t.type]),e.isReadonly&&t.isReadonly):e:t}function Mo(e,t){return e&&t&&tc(Qc([e.type,t.type]),e.isReadonly||t.isReadonly)}function Lo(t){var r=e.countWhere(t,(function(e){return xs(e,1).length>0})),n=e.map(t,Ka);if(r>0&&r===e.countWhere(n,(function(e){return e}))){var i=n.indexOf(!0);n[i]=!1}return n}function Ro(t){for(var r,n,i,a,o=t.types,s=Lo(o),c=e.countWhere(s,(function(e){return e})),u=function(u){var l=t.types[u];if(!s[u]){var _=xs(l,1);_.length&&c>0&&(_=e.map(_,(function(e){var t=Eo(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(zs(xs(t[a],1)[0]));return iu(i)}(zs(e),o,s,u),t}))),n=Bo(n,_)}r=Bo(r,xs(l,0)),i=Oo(i,Ts(l,0)),a=Oo(a,Ts(l,1))},l=0;l<o.length;l++)u(l);yi(t,B,r||e.emptyArray,n||e.emptyArray,i,a)}function Bo(t,r){for(var n=function(r){t&&!e.every(t,(function(e){return!m_(e,r,!1,!1,!1,Cl)}))||(t=e.append(t,r))},i=0,a=r;i<a.length;i++){n(a[i])}return t}function jo(t){var r=ti(t.symbol);if(t.target)yi(t,B,e.emptyArray,e.emptyArray,void 0,void 0),yi(t,a=co($o(t.target),t.mapper,!1),n=$u(xs(t.target,0),t.mapper),i=$u(xs(t.target,1),t.mapper),o=vl(Ts(t.target,0),t.mapper),u=vl(Ts(t.target,1),t.mapper));else if(2048&r.flags){yi(t,B,e.emptyArray,e.emptyArray,void 0,void 0);var n=js((a=bo(r)).get("__call")),i=js(a.get("__new"));yi(t,a,n,i,o=rc(r,0),u=rc(r,1))}else{var a=B,o=void 0;if(r.exports&&(a=Qn(r),r===re)){var s=e.createMap();a.forEach((function(e){418&e.flags||s.set(e.escapedName,e)})),a=s}if(yi(t,a,e.emptyArray,e.emptyArray,void 0,void 0),32&r.flags){var c=qa(Ha(r));11272192&c.flags?uo(a=e.createSymbolTable(gi(a)),ts(c)):c===he&&(o=tc(he,!1))}var u=384&r.flags&&(32&ro(r).flags||e.some(t.properties,(function(e){return!!(296&wa(e).flags)})))?rr:void 0;if(yi(t,a,e.emptyArray,e.emptyArray,o,u),8208&r.flags&&(t.callSignatures=js(r)),32&r.flags){var l=Ha(r);i=r.members?js(r.members.get("__constructor")):e.emptyArray;16&r.flags&&(i=e.addRange(i.slice(),e.mapDefined(t.callSignatures,(function(e){return Sg(e.declaration)?To(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=xs(qa(t),1);if(0===r.length)return[To(void 0,t.localTypeParameters,void 0,e.emptyArray,t,void 0,0,0)];for(var n=za(t),i=e.isInJSFile(n),a=Ec(n),o=e.length(a),s=[],c=0,u=r;c<u.length;c++){var l=u[c],_=Os(l.typeParameters),d=e.length(l.typeParameters);if(i||o>=_&&o<=d){var p=d?Hs(l,Ms(a,l.typeParameters,_,i)):Eo(l);p.typeParameters=t.localTypeParameters,p.resolvedReturnType=t,s.push(p)}}return s}(l)),t.constructSignatures=i}}}function Ko(t){if(131069&t.flags)return t;if(4194304&t.flags)return lu(ms(t.type));if(16777216&t.flags){if(t.root.isDistributive){var r=t.checkType,n=Ko(r);if(n!==r)return ml(t,rl(Zu(t.root.checkType,n),t.mapper))}return t}return 1048576&t.flags?Qc(e.sameMap(t.types,Ko)):2097152&t.flags?iu(e.sameMap(t.types,Ko)):Be}function Jo(e){return e.typeParameter||(e.typeParameter=to(ri(e.declaration.typeParameter)))}function zo(e){return e.constraintType||(e.constraintType=ns(Jo(e))||xe)}function Uo(e){return e.templateType||(e.templateType=e.declaration.type?gl(sa(Yu(e.declaration.type),!!(4&Go(e))),e.mapper||j):xe)}function Vo(t){return e.getEffectiveConstraintOfTypeParameter(t.declaration.typeParameter)}function qo(e){var t=Vo(e);return 183===t.kind&&133===t.operator}function Wo(e){if(!e.modifiersType)if(qo(e))e.modifiersType=gl(Yu(Vo(e).type),e.mapper||j);else{var t=zo(Cu(e.declaration)),r=t&&262144&t.flags?ns(t):t;e.modifiersType=r&&4194304&r.flags?gl(r.type,e.mapper||j):De}return e.modifiersType}function Go(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 Ho(e){var t=Go(e);return 8&t?-1:4&t?1:0}function Yo(e){var t=Ho(e),r=Wo(e);return t||(Xo(r)?Ho(r):0)}function Xo(t){return!!(32&e.getObjectFlags(t))&&yu(zo(t))}function Qo(t){return t.members||(524288&t.flags?4&t.objectFlags?function(t){var r=lo(t.target),n=e.concatenate(r.typeParameters,[r.thisType]),i=_c(t);So(t,r,n,i.length===n.length?i:e.concatenate(i,[t]))}(t):3&t.objectFlags?function(t){So(t,lo(t),e.emptyArray,e.emptyArray)}(t):2048&t.objectFlags?function(t){for(var r=Ts(t.source,0),n=Go(t.mappedType),i=!(1&n),a=4&n?0:16777216,o=r&&tc(hd(r.type,t.mappedType,t.constraintType),i&&r.isReadonly),s=e.createSymbolTable(),c=0,u=ts(t.source);c<u.length;c++){var l=u[c],_=8192|(i&&uy(l)?8:0),d=en(4|l.flags&a,l.escapedName,_);d.declarations=l.declarations,d.nameType=l.nameType,d.propertyType=wa(l),d.mappedType=t.mappedType,d.constraintType=t.constraintType,s.set(l.escapedName,d)}yi(t,s,e.emptyArray,e.emptyArray,o,void 0)}(t):16&t.objectFlags?jo(t):32&t.objectFlags&&function(t){var r,n,i=e.createSymbolTable();yi(t,B,e.emptyArray,e.emptyArray,void 0,void 0);var a=Jo(t),o=zo(t),s=Uo(t.target||t),c=ms(Wo(t)),u=Go(t),l=X?128:8576;if(qo(t)){for(var _=0,d=ts(c);_<d.length;_++){p(su(d[_],l))}(1&c.flags||Ts(c,0))&&p(Ne),!X&&Ts(c,1)&&p(Ae)}else up(Ko(o),p);function p(e){var o=rl(t.mapper,el([a],[e])),l=gl(s,o);if(_o(e)){var _=yo(e),d=vs(c,_),p=!!(4&u||!(8&u)&&d&&16777216&d.flags),f=en(4|(p?16777216:0),_,!!(1&u||!(2&u)&&d&&uy(d))?8:0);f.type=V&&p&&!Fl(Se,l)?z_(l):V&&!p&&d&&16777216&d.flags?Hd(l,524288):l,d&&(f.syntheticOrigin=d,f.declarations=d.declarations),f.nameType=e,i.set(_,f)}else 5&e.flags?r=tc(l,!!(1&u)):40&e.flags&&(n=tc(n?Qc([n.type,l]):l,!!(1&u)))}yi(t,i,e.emptyArray,e.emptyArray,r,n)}(t):1048576&t.flags?function(t){var r=Po(e.map(t.types,(function(e){return e===ut?[Zt]:xs(e,0)}))),n=Po(e.map(t.types,(function(e){return xs(e,1)}))),i=wo(t.types,0),a=wo(t.types,1);yi(t,B,r,n,i,a)}(t):2097152&t.flags&&Ro(t)),t}function $o(t){return 524288&t.flags?Qo(t).properties:e.emptyArray}function Zo(e,t){if(524288&e.flags){var r=Qo(e).members.get(t);if(r&&ci(r))return r}}function es(t){if(t.possiblePropertyCache)return t.possiblePropertyCache.size?e.arrayFrom(t.possiblePropertyCache.values()):e.emptyArray;t.possiblePropertyCache=e.createSymbolTable();for(var r=0,n=t.types;r<n.length;r++)for(var i=0,a=ts(n[r]);i<a.length;i++){var o=a[i];if(!t.possiblePropertyCache.has(o.escapedName)){var s=ys(t,o.escapedName);s&&t.possiblePropertyCache.set(o.escapedName,s)}}return t.possiblePropertyCache.size?e.arrayFrom(t.possiblePropertyCache.values()):e.emptyArray}function ts(t){return 3145728&(t=ms(t)).flags?function(t){if(!t.resolvedProperties){for(var r=e.createSymbolTable(),n=0,i=t.types;n<i.length;n++){for(var a=0,o=ts(i[n]);a<o.length;a++){var s=o[a];if(!r.has(s.escapedName)){var c=hs(t,s.escapedName);c&&r.set(s.escapedName,c)}}if(1048576&t.flags)break}t.resolvedProperties=gi(r)}return t.resolvedProperties}(t):$o(t)}function rs(e){return 262144&e.flags?ns(e):8388608&e.flags?function(e){return ls(e)?function(e){var t=is(e.indexType);if(t&&t!==e.indexType){var r=Tu(e.objectType,t);if(r)return r}var n=is(e.objectType);if(n&&n!==e.objectType)return Tu(n,e.indexType);return}(e):void 0}(e):16777216&e.flags?function(e){return ls(e)?ss(e):void 0}(e):cs(e)}function ns(e){return ls(e)?ic(e):void 0}function is(e){var t=vu(e,!1);return t!==e?t:rs(e)}function as(e){if(!e.resolvedDefaultConstraint){var t=function(e){return e.resolvedInferredTrueType||(e.resolvedInferredTrueType=e.combinedMapper?gl(e.root.trueType,e.combinedMapper):Au(e))}(e),r=Fu(e);e.resolvedDefaultConstraint=Qi(t)?r:Qi(r)?t:Qc([t,r])}return e.resolvedDefaultConstraint}function os(e){if(e.root.isDistributive&&e.restrictiveInstantiation!==e){var t=vu(e.checkType,!1),r=t===e.checkType?rs(t):t;if(r&&r!==e.checkType){var n=ml(e,rl(Zu(e.root.checkType,r),e.mapper));if(!(131072&n.flags))return n}}}function ss(e){return os(e)||as(e)}function cs(e){if(62128128&e.flags){var t=_s(e);return t!==Ze&&t!==et?t:void 0}return 4194304&e.flags?qe:void 0}function us(e){return cs(e)||e}function ls(e){return _s(e)!==et}function _s(t){var r=!1;return t.resolvedBaseConstraint||(t.resolvedBaseConstraint=Do(n(t),t));function n(t){if(!t.immediateBaseConstraint){if(!qi(t,4))return et;if(E>=50)return Xr(l,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),r=!0,t.immediateBaseConstraint=Ze;E++;var n=function(e){if(262144&e.flags){var t=ic(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?Qc(n):2097152&e.flags&&n.length?iu(n):void 0}if(4194304&e.flags)return qe;if(8388608&e.flags){var c=i(e.objectType),u=i(e.indexType),l=c&&u&&Tu(c,u);return l&&i(l)}if(16777216&e.flags){t=ss(e);E++;var _=t&&i(t);return E--,_}if(33554432&e.flags)return i(e.substitute);return e}(vu(t,!1));if(E--,!Hi()){if(262144&t.flags){var a=nc(t);if(a){var o=Xr(a,e.Diagnostics.Type_parameter_0_has_a_circular_constraint,Ii(t));!l||e.isNodeDescendantOf(a,l)||e.isNodeDescendantOf(l,a)||e.addRelatedInfo(o,e.createDiagnosticForNode(l,e.Diagnostics.Circularity_originates_in_type_at_this_location))}}n=et}r&&(n=et),t.immediateBaseConstraint=n||Ze}return t.immediateBaseConstraint}function i(e){var t=n(e);return t!==Ze&&t!==et?t:void 0}}function ds(t){if(t.default)t.default===tt&&(t.default=et);else if(t.target){var r=ds(t.target);t.default=r?gl(r,t.mapper):Ze}else{t.default=tt;var n=t.symbol&&e.forEach(t.symbol.declarations,(function(t){return e.isTypeParameterDeclaration(t)&&t.default})),i=n?Yu(n):Ze;t.default===tt&&(t.default=i)}return t.default}function ps(e){var t=ds(e);return t!==Ze&&t!==et?t:void 0}function fs(e){return e.resolvedApparentType||(e.resolvedApparentType=function(e){var t=_l(e);if(t){var r=ns(t);if(r&&(y_(r)||w_(r))){var n=Zu(t,r);return gl(e,rl(n,e.mapper))}}return e}(e))}function ms(t){var r,n=63176704&t.flags?cs(t)||De:t;return 32&e.getObjectFlags(n)?fs(n):2097152&n.flags?function(e){return e.resolvedApparentType||(e.resolvedApparentType=Do(e,e,!0))}(n):132&n.flags?ft:296&n.flags?mt:2112&n.flags?(r=J>=99,Vt||(Vt=Fc("BigInt",0,r))||Ge):528&n.flags?gt:12288&n.flags?wc(J>=2):67108864&n.flags?Ge:4194304&n.flags?qe:2&n.flags&&!V?Ge:n}function gs(t,r){for(var n,i=e.createMap(),a=1048576&t.flags,o=a?24:0,s=a?0:16777216,c=4,u=0,l=0,_=t.types;l<_.length;l++){if((E=ms(_[l]))!==xe){var d=(T=vs(E,r))?e.getDeclarationModifierFlagsFromSymbol(T):0;if(!T||d&o){if(a){var p=!fo(r)&&(Mf(r)&&Ts(E,1)||Ts(E,0));p?(u|=32|(p.isReadonly?8:0),n=e.append(n,w_(E)?I_(E)||Se:p.type)):Cd(E)?(u|=32,n=e.append(n,Se)):u|=16}}else{a?s|=16777216&T.flags:s&=T.flags;var f=""+A(T);i.has(f)||i.set(f,T),u|=(uy(T)?8:0)|(24&d?0:256)|(16&d?512:0)|(8&d?1024:0)|(32&d?2048:0),sm(T)||(c=2)}}}if(i.size){var m,g,y,h=e.arrayFrom(i.values());if(!(1!==h.length||16&u||n))return h[0];for(var v,b=[],x=!1,D=0,S=h;D<S.length;D++){var T=S[D];v?T.valueDeclaration!==v&&(x=!0):v=T.valueDeclaration,m=e.addRange(m,T.declarations);var E=wa(T);g?E!==g&&(u|=64):(g=E,y=T.nameType),C_(E)&&(u|=128),b.push(E)}e.addRange(b,n);var C=en(4|s,r,c|u);return C.containingType=t,!x&&v&&(C.valueDeclaration=v,v.symbol.parent&&(C.parent=v.symbol.parent)),C.declarations=m,C.nameType=y,b.length>2?(C.checkFlags|=65536,C.deferralParent=t,C.deferralConstituents=b):C.type=a?Qc(b):iu(b),C}}function ys(t,r){var n=t.propertyCache||(t.propertyCache=e.createSymbolTable()),i=n.get(r);return i||(i=gs(t,r))&&n.set(r,i),i}function hs(t,r){var n=ys(t,r);return!n||16&e.getCheckFlags(n)?void 0:n}function vs(e,t){if(524288&(e=ms(e)).flags){var r=Qo(e),n=r.members.get(t);if(n&&ci(n))return n;var i=r===$e?ut:r.callSignatures.length?lt:r.constructSignatures.length?_t:void 0;if(i){var a=Zo(i,t);if(a)return a}return Zo(ct,t)}if(3145728&e.flags)return hs(e,t)}function bs(t,r){if(3670016&t.flags){var n=Qo(t);return 0===r?n.callSignatures:n.constructSignatures}return e.emptyArray}function xs(e,t){return bs(ms(e),t)}function Ds(e,t){if(3670016&e.flags){var r=Qo(e);return 0===t?r.stringIndexInfo:r.numberIndexInfo}}function Ss(e,t){var r=Ds(e,t);return r&&r.type}function Ts(e,t){return Ds(ms(e),t)}function Es(e,t){return Ss(ms(e),t)}function Cs(t,r){if(Y_(t)){for(var n=[],i=0,a=ts(t);i<a.length;i++){var o=a[i];(0===r||Mf(o.escapedName))&&n.push(wa(o))}if(0===r&&e.append(n,Es(t,1)),n.length)return Qc(n,2)}}function ks(t){for(var r,n=0,i=e.getEffectiveTypeParameterDeclarations(t);n<i.length;n++){var a=i[n];r=e.appendIfUnique(r,to(a.symbol))}return r}function Ns(e){var t=[];return e.forEach((function(e,r){mi(r)||t.push(e)})),t}function As(t){return e.isInJSFile(t)&&(t.type&&297===t.type.kind||e.getJSDocParameterTags(t).some((function(e){var t=e.isBracketed,r=e.typeExpression;return t||!!r&&297===r.type.kind})))}function Fs(t,r){if(!e.isExternalModuleNameRelative(t)){var n=fn(ee,'"'+t+'"',512);return n&&r?ti(n):n}}function Ps(t){if(e.hasQuestionToken(t)||ws(t)||As(t))return!0;if(t.initializer){var r=Ls(t.parent),n=t.parent.parameters.indexOf(t);return e.Debug.assert(n>=0),n>=jg(r)}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&(!t.type&&!t.dotDotDotToken&&t.parent.parameters.indexOf(t)>=i.arguments.length)}function ws(t){if(!e.isJSDocParameterTag(t))return!1;var r=t.isBracketed,n=t.typeExpression;return r||!!n&&297===n.type.kind}function Is(e,t,r,n){return{kind:e,parameterName:t,parameterIndex:r,type:n}}function Os(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 Ms(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]=xe;var u=Pd(i);for(c=o;c<a;c++){var l=ps(r[c]);i&&l&&(El(l,De)||El(l,Ge))&&(l=he),s[c]=l?gl(l,el(r,s)):u}return s.length=r.length,s}return t&&t.slice()}function Ls(t){var r,n=dn(t);if(!n.resolvedSignature){for(var i=[],a=0,o=0,s=void 0,c=!1,u=e.getImmediatelyInvokedFunctionExpression(t),l=e.isJSDocConstructSignature(t),_=!u&&e.isInJSFile(t)&&e.isValueSignatureDeclaration(t)&&!e.hasJSDocParameterTags(t)&&!e.getJSDocType(t),d=l?1:0;d<t.parameters.length;d++){var p=t.parameters[d],f=p.symbol,m=e.isJSDocParameterTag(p)?p.typeExpression&&p.typeExpression.type:p.type;if(f&&4&f.flags&&!e.isBindingPattern(p.name))f=gn(p,f.escapedName,111551,void 0,void 0,!1);0===d&&"this"===f.escapedName?(c=!0,s=p.symbol):i.push(f),m&&186===m.kind&&(a|=2),ws(p)||p.initializer||p.questionToken||p.dotDotDotToken||u&&i.length>u.arguments.length&&!m||_||As(p)||(o=i.length)}if(!(162!==t.kind&&163!==t.kind||go(t)||c&&s)){var g=162===t.kind?163:162,y=e.getDeclarationOfKind(ri(t),g);y&&(s=(r=lx(y))&&r.symbol)}var h=161===t.kind?Ha(ti(t.parent.symbol)):void 0,v=h?h.localTypeParameters:ks(t);(e.hasRestParameter(t)||e.isInJSFile(t)&&function(t,r){if(e.isJSDocSignature(t)||!Bs(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=en(3,"args",32768);o.type=a?jc(Yu(a.type)):vt,a&&r.pop();return r.push(o),!0}(t,i))&&(a|=1),n.resolvedSignature=To(t,v,s,i,void 0,void 0,o,a)}return n.resolvedSignature}function Rs(t){var r=e.isInJSFile(t)?e.getJSDocTypeTag(t):void 0,n=r&&r.typeExpression&&qm(Yu(r.typeExpression));return n&&Ys(n)}function Bs(t){var r=dn(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 158:case 160:case 162:case 163:return 153===r.name.kind&&t(r.name);default:return!e.nodeStartsNewLexicalEnvironment(r)&&!e.isPartOfTypeNode(r)&&!!e.forEachChild(r,t)}}(t.body)),r.containsArgumentsReference}function js(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(Ls(i))}}return r}function Ks(e){if(e.thisParameter)return wa(e.thisParameter)}function Js(t){if(!t.resolvedTypePredicate){if(t.target){var r=Js(t.target);t.resolvedTypePredicate=r?(o=r,s=t.mapper,Is(o.kind,o.parameterName,o.parameterIndex,gl(o.type,s))):Qt}else if(t.unionSignatures)t.resolvedTypePredicate=function(e){for(var t,r=[],n=0,i=e;n<i.length;n++){var a=Js(i[n]);if(a&&2!==a.kind&&3!==a.kind){if(t){if(!$c(t,a))return}else t=a;r.push(a.type)}}if(!t)return;var o=Qc(r);return Is(t.kind,t.parameterName,t.parameterIndex,o)}(t.unionSignatures)||Qt;else{var n=t.declaration&&e.getEffectiveReturnTypeNode(t.declaration),i=void 0;if(!n&&e.isInJSFile(t.declaration)){var a=Rs(t.declaration);a&&t!==a&&(i=Js(a))}t.resolvedTypePredicate=n&&e.isTypePredicateNode(n)?function(t,r){var n=t.parameterName,i=t.type&&Yu(t.type);return 182===n.kind?Is(t.assertsModifier?2:0,void 0,void 0,i):Is(t.assertsModifier?3:1,n.escapedText,e.findIndex(r.parameters,(function(e){return e.escapedName===n.escapedText})),i)}(n,t):i||Qt}e.Debug.assert(!!t.resolvedTypePredicate)}var o,s;return t.resolvedTypePredicate===Qt?void 0:t.resolvedTypePredicate}function zs(t){if(!t.resolvedReturnType){if(!qi(t,3))return xe;var r=t.target?gl(zs(t.target),t.mapper):t.unionSignatures?Qc(e.map(t.unionSignatures,zs),2):Us(t.declaration)||(e.nodeIsMissing(t.declaration.body)?he:Xg(t.declaration));if(R(t)&&(r=V_(r)),!Hi()){if(t.declaration){var n=e.getEffectiveReturnTypeNode(t.declaration);if(n)Xr(n,e.Diagnostics.Return_type_annotation_circularly_references_itself);else if(H){var i=t.declaration,a=e.getNameOfDeclaration(i);a?Xr(a,e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,e.declarationNameToString(a)):Xr(i,e.Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}r=he}t.resolvedReturnType=r}return t.resolvedReturnType}function Us(t){if(161===t.kind)return Ha(ti(t.parent.symbol));if(e.isJSDocConstructSignature(t))return Yu(t.parameters[0].type);var r=e.getEffectiveReturnTypeNode(t);if(r)return Yu(r);if(162===t.kind&&!go(t)){var n=e.isInJSFile(t)&&aa(t);if(n)return n;var i=Ta(e.getDeclarationOfKind(ri(t),163));if(i)return i}return function(e){var t=Rs(e);return t&&zs(t)}(t)}function Vs(e){return!e.resolvedReturnType&&Wi(e,3)>=0}function qs(e){if(M(e)){var t=wa(e.parameters[e.parameters.length-1]),r=w_(t)?I_(t):t;return r&&Es(r,1)}}function Ws(e,t,r,n){var i=Gs(e,Ms(t,e.typeParameters,Os(e.typeParameters),r));if(n){var a=Wm(zs(i));if(a){var o=Eo(a);o.typeParameters=n;var s=Eo(i);return s.resolvedReturnType=$s(o),s}}return i}function Gs(t,r){var n=t.instantiations||(t.instantiations=e.createMap()),i=oc(r),a=n.get(i);return a||n.set(i,a=Hs(t,r)),a}function Hs(e,t){return sl(e,function(e,t){return el(e.typeParameters,t)}(e,t),!0)}function Ys(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return sl(e,tl(e.typeParameters),!0)}(e)):e}function Xs(t){return t.typeParameters?t.canonicalSignatureCache||(t.canonicalSignatureCache=function(t){return Ws(t,e.map(t.typeParameters,(function(e){return e.target&&!ns(e.target)?e.target:e})),e.isInJSFile(t.declaration))}(t)):t}function Qs(t){var r=t.typeParameters;if(r){var n=tl(r);return sl(t,el(r,e.map(r,(function(e){return gl(cs(e),n)||De}))),!0)}return t}function $s(t){if(!t.isolatedSignatureType){var r=t.declaration?t.declaration.kind:0,n=161===r||165===r||170===r,i=pi(16);i.members=B,i.properties=e.emptyArray,i.callSignatures=n?e.emptyArray:[t],i.constructSignatures=n?[t]:e.emptyArray,t.isolatedSignatureType=i}return t.isolatedSignatureType}function Zs(e){return e.members.get("__index")}function ec(t,r){var n=1===r?139:142,i=Zs(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 tc(e,t,r){return{type:e,isReadonly:t,declaration:r}}function rc(t,r){var n=ec(t,r);if(n)return tc(n.type?Yu(n.type):he,e.hasModifier(n,64),n)}function nc(t){return e.mapDefined(e.filter(t.symbol&&t.symbol.declarations,e.isTypeParameterDeclaration),e.getEffectiveConstraintOfTypeParameter)[0]}function ic(t){if(!t.constraint)if(t.target){var r=ns(t.target);t.constraint=r?gl(r,t.mapper):Ze}else{var n=nc(t);t.constraint=n?Yu(n):function(t){var r;if(t.symbol)for(var n=0,i=t.symbol.declarations;n<i.length;n++){var a=i[n];if(180===a.parent.kind){var o=a.parent.parent;if(168===o.kind){var s=o,c=th(s);if(c){var u=s.typeArguments.indexOf(a.parent);if(u<c.length){var l=ns(c[u]);if(l){var _=gl(l,el(c,Zy(s,c)));_!==t&&(r=e.append(r,_))}}}}else 155===o.kind&&o.dotDotDotToken&&(r=e.append(r,jc(De)))}}return r&&iu(r)}(t)||Ze}return t.constraint===Ze?void 0:t.constraint}function ac(t){var r=e.getDeclarationOfKind(t.symbol,154),n=e.isJSDocTemplateTag(r.parent)?e.getHostSignatureFromJSDoc(r.parent):r.parent;return n&&ri(n)}function oc(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 sc(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 1835008&n}function cc(e,t){var r=oc(t),n=e.instantiations.get(r);return n||(n=pi(4,e.symbol),e.instantiations.set(r,n),n.objectFlags|=t?sc(t,0):0,n.target=e,n.resolvedTypeArguments=t),n}function uc(e){var t=li(e.flags);return t.symbol=e.symbol,t.objectFlags=e.objectFlags,t.target=e.target,t.resolvedTypeArguments=e.resolvedTypeArguments,t}function lc(e,t,r){var n=Mu(t),i=Lu(n),a=pi(4,e.symbol);return a.target=e,a.node=t,a.mapper=r,a.aliasSymbol=n,a.aliasTypeArguments=r?Qu(i,r):i,a}function _c(t){var r,n;if(!t.resolvedTypeArguments){if(!qi(t,7))return(null===(r=t.target.localTypeParameters)||void 0===r?void 0:r.map((function(){return xe})))||e.emptyArray;var i=t.node,a=i?168===i.kind?e.concatenate(t.target.outerTypeParameters,Zy(i,t.target.localTypeParameters)):173===i.kind?[Yu(i.elementType)]:e.map(i.elementTypes,Yu):e.emptyArray;Hi()?t.resolvedTypeArguments=t.mapper?Qu(a,t.mapper):a:(t.resolvedTypeArguments=(null===(n=t.target.localTypeParameters)||void 0===n?void 0:n.map((function(){return xe})))||e.emptyArray,Xr(t.node||l,t.target.symbol?e.Diagnostics.Type_arguments_for_0_circularly_reference_themselves:e.Diagnostics.Tuple_type_arguments_circularly_reference_themselves,t.target.symbol&&Pi(t.target.symbol)))}return t.resolvedTypeArguments}function dc(t){return e.length(t.target.typeParameters)}function pc(t,r){var n=ro(ti(r)),i=n.localTypeParameters;if(i){var a=e.length(t.typeArguments),o=Os(i),s=e.isInJSFile(t);if(!(!H&&s)&&(a<o||a>i.length)){var c=s&&e.isExpressionWithTypeArguments(t)&&!e.isJSDocAugmentsTag(t.parent);if(Xr(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,Ii(n,void 0,2),o,i.length),!s)return xe}return 168===t.kind&&Jc(t)?lc(n,t,void 0):cc(n,e.concatenate(n.outerTypeParameters,Ms(Ec(t),i,o,s)))}return Sc(t,r)?n:xe}function fc(t,r){var n=ro(t),i=_n(t),a=i.typeParameters,o=oc(r),s=i.instantiations.get(o);return s||i.instantiations.set(o,s=gl(n,el(a,Ms(r,a,Os(a),e.isInJSFile(t.valueDeclaration))))),s}function mc(t){switch(t.kind){case 168:return t.typeName;case 215:var r=t.expression;if(e.isEntityNameExpression(r))return r}}function gc(e,t,r){return e&&Kn(e,t,r)||ge}function yc(t,r){if(r===ge)return xe;if(96&(r=function(t){var r=t.valueDeclaration;if(r&&e.isInJSFile(r)&&!(524288&t.flags)){var n=e.isVariableDeclaration(r)?e.getDeclaredExpandoInitializer(r):e.getAssignedExpandoInitializer(r);return n&&ri(n)||void 0}}(r)||r).flags)return pc(t,r);if(524288&r.flags)return function(t,r){var n=ro(r),i=_n(r).typeParameters;if(i){var a=e.length(t.typeArguments),o=Os(i);return a<o||a>i.length?(Xr(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,Pi(r),o,i.length),xe):fc(r,Ec(t))}return Sc(t,r)?n:xe}(t,r);var n=no(r);if(n)return Sc(t,r)?262144&n.flags?xc(n,t):Vu(n):xe;if(111551&r.flags&&Dc(t)){var i=function(t,r){var n=wa(r),i=n;if(r.valueDeclaration){var a=e.getRootDeclaration(r.valueDeclaration),o=!1;if(e.isVariableDeclaration(a)&&a.initializer){for(var s=a.initializer;e.isPropertyAccessExpression(s);)s=s.expression;o=e.isCallExpression(s)&&e.isRequireCall(s,!0)&&!!n.symbol}var c=r!==n.symbol&&ti(r)===n.symbol;(o||187===t.kind||c)&&(i=yc(t,n.symbol))}return _n(r).resolvedJSDocType=i}(t,r);return i||(gc(mc(t),788968),wa(r))}return xe}function hc(e,t){if(3&t.flags||t===e)return e;var r=qc(e)+">"+qc(t),n=pe.get(r);if(n)return n;var i=li(33554432);return i.typeVariable=e,i.substitute=t,pe.set(r,i),i}function vc(e){return 174===e.kind&&1===e.elementTypes.length}function bc(e,t,r){return vc(t)&&vc(r)?bc(e,t.elementTypes[0],r.elementTypes[0]):ku(Yu(t))===e?Yu(r):void 0}function xc(t,r){for(var n;r&&!e.isStatement(r)&&301!==r.kind;){var i=r.parent;if(179===i.kind&&r===i.trueType){var a=bc(t,i.checkType,i.extendsType);a&&(n=e.append(n,a))}r=i}return n?hc(t,iu(e.append(n,t))):t}function Dc(e){return!!(4194304&e.flags)&&(168===e.kind||187===e.kind)}function Sc(t,r){return!t.typeArguments||(Xr(t,e.Diagnostics.Type_0_is_not_generic,r?Pi(r):t.typeName?e.declarationNameToString(t.typeName):"(anonymous)"),!1)}function Tc(t){var r=dn(t);if(!r.resolvedType){var n=void 0,i=void 0;Dc(t)&&((i=function(t){if(e.isIdentifier(t.typeName)){var r=t.typeArguments;switch(t.typeName.escapedText){case"String":return Sc(t),Ne;case"Number":return Sc(t),Ae;case"Boolean":return Sc(t),Me;case"Void":return Sc(t),Re;case"Undefined":return Sc(t),Se;case"Null":return Sc(t),Ce;case"Function":case"function":return Sc(t),ut;case"Array":case"array":return r&&r.length||H?void 0:vt;case"Promise":case"promise":return r&&r.length||H?void 0:Gg(he);case"Object":if(r&&2===r.length){if(e.isJSDocIndexSignature(t)){var n=Yu(r[0]),i=tc(Yu(r[1]),!1);return hi(void 0,B,e.emptyArray,e.emptyArray,n===Ne?i:void 0,n===Ae?i:void 0)}return he}return Sc(t),H?void 0:he}}}(t))||((n=gc(mc(t),788968,!0))===ge?n=gc(mc(t),900095):gc(mc(t),788968),i=yc(t,n))),i||(i=yc(t,n=gc(mc(t),788968))),r.resolvedSymbol=n,r.resolvedType=i}return r.resolvedType}function Ec(t){return e.map(t.typeArguments,Yu)}function Cc(e){var t=dn(e);return t.resolvedType||(t.resolvedType=Vu(rd(zy(e.exprName)))),t.resolvedType}function kc(t,r){function n(e){for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t];switch(n.kind){case 244:case 245:case 247:return n}}}if(!t)return r?Qe:Ge;var i=ro(t);return 524288&i.flags?e.length(i.typeParameters)!==r?(Xr(n(t),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(t),r),r?Qe:Ge):i:(Xr(n(t),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,e.symbolName(t)),r?Qe:Ge)}function Nc(t,r){return Ac(t,111551,r?e.Diagnostics.Cannot_find_global_value_0:void 0)}function Ac(e,t,r){return gn(void 0,e,t,r,e,!1)}function Fc(t,r,n){var i=function(t,r){return Ac(t,788968,r?e.Diagnostics.Cannot_find_global_type_0:void 0)}(t,n);return i||n?kc(i,r):void 0}function Pc(e){return St||(St=Nc("Symbol",e))}function wc(e){return Tt||(Tt=Fc("Symbol",0,e))||Ge}function Ic(e){return Ct||(Ct=Fc("Promise",1,e))||Qe}function Oc(e){return Nt||(Nt=Nc("Promise",e))}function Mc(e){return Ft||(Ft=Fc("Iterable",1,e))||Qe}function Lc(e,t){void 0===t&&(t=0);var r=Ac(e,788968,void 0);return r&&kc(r,t)}function Rc(e,t){return e!==Qe?cc(e,t):Ge}function Bc(e){return Rc(Et||(Et=Fc("TypedPropertyDescriptor",1,!0))||Qe,[e])}function jc(e,t){return Rc(t?pt:dt,[e])}function Kc(t){var r=function(t){return e.isTypeOperatorNode(t)&&137===t.operator}(t.parent);if(173===t.kind||1===t.elementTypes.length&&176===t.elementTypes[0].kind)return r?pt:dt;var n=e.lastOrUndefined(t.elementTypes),i=n&&176===n.kind?n:void 0,a=e.findLastIndex(t.elementTypes,(function(e){return 175!==e.kind&&e!==i}))+1;return zc(t.elementTypes.length,a,!!i,r,void 0)}function Jc(e){var t=e.parent;switch(t.kind){case 181:case 168:case 177:case 178:case 184:case 179:case 183:return Jc(t);case 246:return!0}return!1}function zc(t,r,n,i,a){var o=t+(n?"+":",")+r+(i?"R":"")+(a&&a.length?","+a.join(","):""),s=ce.get(o);return s||ce.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 _=en(4|(u>=r?16777216:0),""+u,i?8:0);_.type=l,s.push(_)}}}var d=[];for(u=r;u<=c;u++)d.push(Wu(u));var p=en(4,"length");p.type=n?Ae:Qc(d),s.push(p);var f=pi(12);return f.typeParameters=o,f.outerTypeParameters=void 0,f.localTypeParameters=o,f.instantiations=e.createMap(),f.instantiations.set(oc(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 Uc(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 jc(e[0],n);var o=zc(a,t,a>0&&r,n,i);return e.length?cc(o,e):o}function Vc(e,t){var r=e.target;return r.hasRestElement&&(t=Math.min(t,dc(e)-1)),Uc(_c(e).slice(t),Math.max(0,r.minLength-t),r.hasRestElement,r.readonly,r.associatedNames&&r.associatedNames.slice(t))}function qc(e){return e.id}function Wc(t,r){return e.binarySearch(t,r,qc,e.compareValues)>=0}function Gc(t,r){var n=e.binarySearch(t,r,qc,e.compareValues);return n<0&&(t.splice(~n,0,r),!0)}function Hc(t,r,n){var i=n.flags;if(1048576&i)return Yc(t,r,n.types);if(!(131072&i))if(r|=68943871&i,66846720&i&&(r|=262144),n===be&&(r|=4194304),!V&&98304&i)262144&e.getObjectFlags(n)||(r|=2097152);else{var a=t.length,o=a&&n.id>t[a-1].id?~a:e.binarySearch(t,n,qc,e.compareValues);o<0&&t.splice(~o,0,n)}return r}function Yc(e,t,r){for(var n=0,i=r;n<i.length;n++){t=Hc(e,t,i[n])}return t}function Xc(t,r){var n=t.length;if(0===n||function(e){var t=e[0];if(1024&t.flags){for(var r=ni(t.symbol),n=1;n<e.length;n++){var i=e[n];if(!(1024&i.flags)||r!==ni(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 Xr(l,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1;if(a++,Al(o,u)&&(!(1&e.getObjectFlags(Oa(o)))||!(1&e.getObjectFlags(Oa(u)))||Pl(o,u))){e.orderedRemoveItemAt(t,i);break}}}return!0}function Qc(t,r,n,i){if(void 0===r&&(r=1),0===t.length)return Be;if(1===t.length)return t[0];var a=[],o=Yc(a,0,t);if(0!==r){if(3&o)return 1&o?4194304&o?be:he:De;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||qu(i)&&Wc(t,i.regularType))&&e.orderedRemoveItemAt(t,n)}}(a,o);break;case 2:if(!Xc(a,!(262144&o)))return xe}if(0===a.length)return 65536&o?2097152&o?Ce:ke:32768&o?2097152&o?Se:Te:Be}return Zc(a,66994211&o?0:131072,n,i)}function $c(e,t){return e.kind===t.kind&&e.parameterIndex===t.parameterIndex}function Zc(e,t,r,n){if(0===e.length)return Be;if(1===e.length)return e[0];var i=oc(e),a=ue.get(i);return a||(a=li(1048576),ue.set(i,a),a.objectFlags=t|sc(e,98304),a.types=e,a.aliasSymbol=r,a.aliasTypeArguments=n),a}function eu(e,t,r){var n=r.flags;return 2097152&n?tu(e,t,r.types):(Gl(r)?8388608&t||(t|=8388608,e.set(r.id.toString(),r)):(3&n?r===be&&(t|=4194304):!V&&98304&n||e.has(r.id.toString())||(109440&r.flags&&109440&t&&(t|=67108864),e.set(r.id.toString(),r)),t|=68943871&n),t)}function tu(e,t,r){for(var n=0,i=r;n<i.length;n++){t=eu(e,t,Vu(i[n]))}return t}function ru(e,t){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!Wc(i.types,t)){var a=128&t.flags?Ne:256&t.flags?Ae:2048&t.flags?Fe:8192&t.flags?Le:void 0;if(!a||!Wc(i.types,a))return!1}}return!0}function nu(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]=_p(t[n],(function(e){return!(e.flags&r)}));return!0}return!1}function iu(t,r,n){var i=e.createMap(),a=tu(i,0,t),o=e.arrayFrom(i.values());if(131072&a||V&&98304&a&&76021760&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 Be;if(1&a)return 4194304&a?be:he;if(!V&&98304&a)return 32768&a?Se:Ce;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),8388608&a&&524288&a&&e.orderedRemoveItemAt(o,e.findIndex(o,Gl)),0===o.length)return De;if(1===o.length)return o[0];var s=oc(o),c=le.get(s);if(!c){if(1048576&a)if(function(t){var r,n=e.findIndex(t,(function(t){return!!(131072&e.getObjectFlags(t))}));if(n<0)return!1;for(var i=n+1;i<t.length;){var a=t[i];131072&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++){Gc(o,a=_[l])&&ru(r,a)&&Gc(s,a)}return t[n]=Zc(s,131072),!0}(o))c=iu(o,r,n);else if(nu(o,32768))c=Qc([iu(o),Se],1,r,n);else if(nu(o,65536))c=Qc([iu(o),Ce],1,r,n);else{if(e.reduceLeft(o,(function(e,t){return e*(1048576&t.flags?t.types.length:1)}),1)>=1e5)return Xr(l,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),xe;var u=e.findIndex(o,(function(e){return 0!=(1048576&e.flags)})),_=o[u];c=Qc(e.map(_.types,(function(t){return iu(e.replaceElement(o,u,t))})),1,r,n)}else c=function(e,t,r){var n=li(2097152);return n.objectFlags=sc(e,98304),n.types=e,n.aliasSymbol=t,n.aliasTypeArguments=r,n}(o,r,n);le.set(s,c)}return c}function au(e,t){var r=li(4194304);return r.type=e,r.stringsOnly=t,r}function ou(t){return e.isIdentifier(t)?Wu(e.unescapeLeadingUnderscores(t.escapedText)):Vu(e.isComputedPropertyName(t)?Lf(t):zy(t))}function su(t,r){if(!(24&e.getDeclarationModifierFlagsFromSymbol(t))){var n=xo(t).nameType;if(!n&&!e.isKnownSymbol(t))if("default"===t.escapedName)n=Wu("default");else{var i=t.valueDeclaration&&e.getNameOfDeclaration(t.valueDeclaration);n=i&&ou(i)||Wu(e.symbolName(t))}if(n&&n.flags&r)return n}return Be}function cu(t,r){return Qc(e.map(ts(t),(function(e){return su(e,r)})))}function uu(e){var t=Ts(e,1);return t!==rr?t:void 0}function lu(t,r,n){return void 0===r&&(r=X),1048576&t.flags?iu(e.map(t.types,(function(e){return lu(e,r,n)}))):2097152&t.flags?Qc(e.map(t.types,(function(e){return lu(e,r,n)}))):fy(t,58982400)?function(e,t){return t?e.resolvedStringIndexType||(e.resolvedStringIndexType=au(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=au(e,!1))}(t,r):32&e.getObjectFlags(t)?_p(zo(t),(function(e){return!(n&&5&e.flags)})):t===be?be:2&t.flags?Be:131073&t.flags?qe:r?!n&&Ts(t,0)?Ne:cu(t,128):!n&&Ts(t,0)?Qc([Ne,Ae,cu(t,8192)]):uu(t)?Qc([Ae,cu(t,8320)]):cu(t,8576)}function _u(t){if(X)return t;var r=zt||(zt=Ac("Extract",524288,e.Diagnostics.Cannot_find_global_type_0));return r?fc(r,[t,Ne]):Ne}function du(t){return!H&&(!!(16384&e.getObjectFlags(t))||(1048576&t.flags?e.every(t.types,du):2097152&t.flags?e.some(t.types,du):!!(63176704&t.flags)&&du(_s(t))))}function pu(t,r){var n=r&&194===r.kind?r:void 0;return _o(t)?yo(t):n&&Lm(n.argumentExpression,t,!1)?e.getPropertyNameForKnownSymbolName(e.idText(n.argumentExpression.name)):r&&e.isPropertyName(r)?e.getPropertyNameForPropertyNameNode(r):void 0}function fu(t,r,n,i,a,o,s){var c=o&&194===o.kind?o:void 0,u=pu(n,o);if(void 0!==u){var l=vs(r,u);if(l){if(c){if(Fm(l,c,103===c.expression.kind),e.isAssignmentTarget(c)&&(ly(c,l)||_y(c)))return void Xr(c.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Pi(l));4&s&&(dn(o).resolvedSymbol=l)}var _=wa(l);return c&&1!==e.getAssignmentTargetKind(c)?Op(c,_):_}if(lp(r,w_)&&Mf(u)&&+u>=0){if(o&&lp(r,(function(e){return!e.target.hasRestElement}))&&!(8&s)){var d=mu(o);w_(r)?Xr(d,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,Ii(r),dc(r),e.unescapeLeadingUnderscores(u)):Xr(d,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(u),Ii(r))}return v(Ts(r,1)),pp(r,(function(e){return I_(e)||Se}))}}if(!(98304&n.flags)&&my(n,12716)){if(131073&r.flags)return r;var p=Ts(r,0),f=my(n,296)&&Ts(r,1)||p;if(f)return 1&s&&f===p?void(c&&Xr(c,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Ii(n),Ii(t))):o&&!my(n,12)?(Xr(d=mu(o),e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Ii(n)),f.type):(v(f),f.type);if(131072&n.flags)return Be;if(du(r))return he;if(c&&!yy(r)){if(r.symbol===re&&void 0!==u&&re.exports.has(u)&&418&re.exports.get(u).flags)Xr(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(u),Ii(r));else if(H&&!K.suppressImplicitAnyIndexErrors&&!a)if(void 0!==u&&Tm(u,r))Xr(c,e.Diagnostics.Property_0_is_a_static_member_of_type_1,u,Ii(r));else if(Es(r,1))Xr(c.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var m=void 0;if(void 0!==u&&(m=Cm(u,r)))void 0!==m&&Xr(c.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,u,Ii(r),m);else{var g=function(t,r){var n=e.isAssignmentTarget(r)?"set":"get";if(!function(e,r){void 0===r&&(r=1);var n=Zo(t,e);if(n){var i=qm(wa(n));if(i&&jg(i)===r&&"string"===Ii(Mg(i,0)))return!0}return!1}(n))return;var i=e.tryGetPropertyAccessOrIdentifierToString(r);void 0===i?i=n:i+="."+n;return i}(r,c);if(void 0!==g)Xr(c,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Ii(r),g);else{var y=void 0;if(1024&n.flags)y=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+Ii(n)+"]",Ii(r));else if(8192&n.flags){var h=jn(n.symbol,c);y=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+h+"]",Ii(r))}else 128&n.flags?y=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,Ii(r)):256&n.flags?y=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,Ii(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,Ii(n),Ii(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,Ii(i),Ii(r)),jr.add(e.createDiagnosticForNodeFromMessageChain(c,y))}}}return}}if(du(r))return he;if(o){d=mu(o);384&n.flags?Xr(d,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+n.value,Ii(r)):12&n.flags?Xr(d,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,Ii(r),Ii(n)):Xr(d,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Ii(n))}return Qi(n)?n:void 0;function v(t){t&&t.isReadonly&&c&&(e.isAssignmentTarget(c)||e.isDeleteTarget(c))&&Xr(c,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Ii(r))}}function mu(e){return 194===e.kind?e.argumentExpression:184===e.kind?e.indexType:153===e.kind?e.expression:e}function gu(e){return fy(e,59113472)}function yu(e){return fy(e,63176704)}function hu(e){return!!(262144&e.flags&&e.isThisType)}function vu(t,r){return 8388608&t.flags?function(t,r){var n=r?"simplifiedForWriting":"simplifiedForReading";if(t[n])return t[n]===et?t:t[n];t[n]=et;var i=vu(t.objectType,r),a=vu(t.indexType,r),o=function(t,r,n){if(1048576&r.flags){var i=e.map(r.types,(function(e){return vu(Su(t,e),n)}));return n?iu(i):Qc(i)}}(i,a,r);if(o)return t[n]=o;if(!(63176704&a.flags)){var s=bu(i,a,r);if(s)return t[n]=s}if(Xo(i))return t[n]=pp(Du(i,t.indexType),(function(e){return vu(e,r)}));return t[n]=t}(t,r):16777216&t.flags?function(e,t){var r=e.checkType,n=e.extendsType,i=Au(e),a=Fu(e);if(131072&a.flags&&ku(i)===ku(r)){if(1&r.flags||Fl(hl(r),hl(n)))return vu(i,t);if(xu(r,n))return Be}else if(131072&i.flags&&ku(a)===ku(r)){if(!(1&r.flags)&&Fl(hl(r),hl(n)))return Be;if(1&r.flags||xu(r,n))return vu(a,t)}return e}(t,r):t}function bu(t,r,n){if(3145728&t.flags){var i=e.map(t.types,(function(e){return vu(Su(e,r),n)}));return 2097152&t.flags||n?iu(i):Qc(i)}}function xu(e,t){return!!(131072&Qc([Io(e,t),Be]).flags)}function Du(e,t){var r=el([Jo(e)],[t]),n=rl(e.mapper,r);return gl(Uo(e),n)}function Su(e,t,r){return Tu(e,t,r,0)||(r?xe:De)}function Tu(e,t,r,n){if(void 0===n&&(n=0),e===be||t===be)return be;if(!Hl(e)||98304&t.flags||!my(t,12)||(t=Ne),yu(t)||(!r||184===r.kind)&&gu(e)){if(3&e.flags)return e;var i=e.id+","+t.id,a=de.get(i);return a||de.set(i,a=function(e,t){var r=li(8388608);return r.objectType=e,r.indexType=t,r}(e,t)),a}var o=ms(e);if(1048576&t.flags&&!(16&t.flags)){for(var s=[],c=!1,u=0,l=t.types;u<l.length;u++){var _=fu(e,o,l[u],t,c,r,n);if(_)s.push(_);else{if(!r)return;c=!0}}if(c)return;return 2&n?iu(s):Qc(s)}return fu(e,o,t,t,!1,r,4|n)}function Eu(e){var t=dn(e);if(!t.resolvedType){var r=Yu(e.objectType),n=Yu(e.indexType),i=Su(r,n,e);t.resolvedType=8388608&i.flags&&i.objectType===r&&i.indexType===n?xc(i,e):i}return t.resolvedType}function Cu(e){var t=dn(e);if(!t.resolvedType){var r=pi(32,e.symbol);r.declaration=e,r.aliasSymbol=Mu(e),r.aliasTypeArguments=Lu(r.aliasSymbol),t.resolvedType=r,zo(r)}return t.resolvedType}function ku(e){return 33554432&e.flags?e.typeVariable:8388608&e.flags&&(33554432&e.objectType.flags||33554432&e.indexType.flags)?Su(ku(e.objectType),ku(e.indexType)):e}function Nu(e,t){var r=gl(e.checkType,t),n=gl(e.extendsType,t);if(r===be||n===be)return be;var i,a=fy(r,63307776);if(e.inferTypeParameters){var o=cd(e.inferTypeParameters,void 0,0);a||Sd(o.inferences,r,n,192),i=rl(t,o.mapper)}var s=i?gl(e.extendsType,i):n;if(!a&&!fy(s,63307776)){if(3&s.flags)return gl(e.trueType,i||t);if(1&r.flags)return Qc([gl(e.trueType,i||t),gl(e.falseType,t)]);if(!Fl(yl(r),yl(s)))return gl(e.falseType,t);if(Fl(hl(r),hl(s)))return gl(e.trueType,i||t)}var c=ku(r),u=li(16777216);return u.root=e,u.checkType=c,u.extendsType=n,u.mapper=t,u.combinedMapper=i,u.aliasSymbol=e.aliasSymbol,u.aliasTypeArguments=Qu(e.aliasTypeArguments,t),u}function Au(e){return e.resolvedTrueType||(e.resolvedTrueType=gl(e.root.trueType,e.mapper))}function Fu(e){return e.resolvedFalseType||(e.resolvedFalseType=gl(e.root.falseType,e.mapper))}function Pu(t){var r;return t.locals&&t.locals.forEach((function(t){262144&t.flags&&(r=e.append(r,ro(t)))})),r}function wu(t){var r=dn(t);if(!r.resolvedType){if(t.isTypeOf&&t.typeArguments)return Xr(t,e.Diagnostics.Type_arguments_cannot_be_used_here),r.resolvedSymbol=ge,r.resolvedType=xe;if(!e.isLiteralImportTypeNode(t))return Xr(t.argument,e.Diagnostics.String_literal_expected),r.resolvedSymbol=ge,r.resolvedType=xe;var n=t.isTypeOf?111551:4194304&t.flags?900095:788968,i=zn(t,t.argument.literal);if(!i)return r.resolvedSymbol=ge,r.resolvedType=xe;var a=Wn(i,!1);if(e.nodeIsMissing(t.qualifier)){if(a.flags&n)r.resolvedType=Iu(t,r,a,n);else Xr(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=ge,r.resolvedType=xe}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=fn(Qn(ti(On(s))),c.escapedText,u);if(!l)return Xr(c,e.Diagnostics.Namespace_0_has_no_exported_member_1,jn(s),e.declarationNameToString(c)),r.resolvedType=xe;dn(c).resolvedSymbol=l,dn(c.parent).resolvedSymbol=l,s=l}r.resolvedType=Iu(t,r,s,n)}}return r.resolvedType}function Iu(e,t,r,n){var i=On(r);return t.resolvedSymbol=i,111551===n?wa(r):yc(e,i)}function Ou(t){var r=dn(t);if(!r.resolvedType){var n=Mu(t);if(0!==bo(t.symbol).size||n){var i=pi(16,t.symbol);i.aliasSymbol=n,i.aliasTypeArguments=Lu(n),e.isJSDocTypeLiteral(t)&&t.isArrayType&&(i=jc(i)),r.resolvedType=i}else r.resolvedType=Xe}return r.resolvedType}function Mu(t){for(var r=t.parent;e.isParenthesizedTypeNode(r)||e.isTypeOperatorNode(r)&&137===r.operator;)r=r.parent;return e.isTypeAlias(r)?ri(r):void 0}function Lu(e){return e?ja(e):void 0}function Ru(e){return!!(524288&e.flags)&&!Xo(e)}function Bu(t,r,n,i,a){if(1&t.flags||1&r.flags)return he;if(2&t.flags||2&r.flags)return De;if(131072&t.flags)return r;if(131072&r.flags)return t;if(1048576&t.flags)return pp(t,(function(e){return Bu(e,r,n,i,a)}));if(1048576&r.flags)return pp(r,(function(e){return Bu(t,e,n,i,a)}));if(71307260&r.flags)return t;if(gu(t)||gu(r)){if(Wl(t))return r;if(2097152&t.flags){var o=t.types,s=o[o.length-1];if(Ru(s)&&Ru(r))return iu(e.concatenate(o.slice(0,o.length-1),[Bu(s,r,n,i,a)]))}return iu([t,r])}var c,u,l=e.createSymbolTable(),_=e.createUnderscoreEscapedMap();t===Ge?(c=Ts(r,0),u=Ts(r,1)):(c=Mo(Ts(t,0),Ts(r,0)),u=Mo(Ts(t,1),Ts(r,1)));for(var d=0,p=ts(r);d<p.length;d++){var f=p[d];24&e.getDeclarationModifierFlagsFromSymbol(f)?_.set(f.escapedName,!0):ju(f)&&l.set(f.escapedName,Ku(f,a))}for(var m=0,g=ts(t);m<g.length;m++){var y=g[m];if(!_.has(y.escapedName)&&ju(y))if(l.has(y.escapedName)){var h=wa(f=l.get(y.escapedName));if(16777216&f.flags){var v=e.concatenate(y.declarations,f.declarations),b=en(4|16777216&y.flags,y.escapedName);b.type=Qc([wa(y),Hd(h,524288)]),b.leftSpread=y,b.rightSpread=f,b.declarations=v,b.nameType=y.nameType,l.set(y.escapedName,b)}}else l.set(y.escapedName,Ku(y,a))}var x=hi(n,l,e.emptyArray,e.emptyArray,Ju(c,a),Ju(u,a));return x.objectFlags|=525440|i,x}function ju(t){return!(106496&t.flags&&t.declarations.some((function(t){return e.isClassLike(t.parent)})))}function Ku(e,t){var r=65536&e.flags&&!(32768&e.flags);if(!r&&t===uy(e))return e;var n=en(4|16777216&e.flags,e.escapedName,t?8:0);return n.type=r?Se:wa(e),n.declarations=e.declarations,n.nameType=e.nameType,n.syntheticOrigin=e,n}function Ju(e,t){return e&&e.isReadonly!==t?tc(e.type,t,e.declaration):e}function zu(e,t,r){var n=li(e);return n.symbol=r,n.value=t,n}function Uu(e){if(2944&e.flags){if(!e.freshType){var t=zu(e.flags,e.value,e.symbol);t.regularType=e,t.freshType=t,e.freshType=t}return e.freshType}return e}function Vu(t){return 2944&t.flags?t.regularType:1048576&t.flags?Qc(e.sameMap(t.types,Vu)):t}function qu(e){return!!(2944&e.flags)&&e.freshType===e}function Wu(t,r,n){var i=(r||"")+("number"==typeof t?"#":"string"==typeof t?"@":"n")+("object"===f(t)?e.pseudoBigIntToString(t):t),a=_e.get(i);if(!a){var o=("number"==typeof t?256:"string"==typeof t?128:2048)|(r?1024:0);_e.set(i,a=zu(o,t,n)),a.regularType=a}return a}function Gu(t){if(e.isValidESSymbolDeclaration(t)){var r=ri(t),n=_n(r);return n.uniqueESSymbolType||(n.uniqueESSymbolType=function(e){var t=li(8192);return t.symbol=e,t.escapedName="__@"+t.symbol.escapedName+"@"+A(t.symbol),t}(r))}return Le}function Hu(t){var r=dn(t);return r.resolvedType||(r.resolvedType=function(t){var r=e.getThisContainer(t,!1),n=r&&r.parent;if(n&&(e.isClassLike(n)||245===n.kind)&&!e.hasModifier(r,32)&&(!e.isConstructorDeclaration(r)||e.isNodeDescendantOf(t,r.body)))return Ha(ri(n)).thisType;if(n&&e.isObjectLiteralExpression(n)&&e.isBinaryExpression(n.parent)&&6===e.getAssignmentDeclarationKind(n.parent))return Ha(ri(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)?Ha(ri(i.parent.left).parent).thisType:Sg(r)&&e.isNodeDescendantOf(t,r.body)?Ha(ri(r)).thisType:(Xr(t,e.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),xe)}(t)),r.resolvedType}function Yu(t){switch(t.kind){case 124:case 293:case 294:return he;case 147:return De;case 142:return Ne;case 139:return Ae;case 150:return Fe;case 127:return Me;case 143:return Le;case 109:return Re;case 145:return Se;case 99:return Ce;case 136:return Be;case 140:return 131072&t.flags?he:Ue;case 182:case 103:return Hu(t);case 186:return function(e){var t=dn(e);return t.resolvedType||(t.resolvedType=Vu(zy(e.literal))),t.resolvedType}(t);case 168:return Tc(t);case 167:return t.assertsModifier?Re:Me;case 215:return Tc(t);case 171:return Cc(t);case 173:case 174:return function(t){var r=dn(t);if(!r.resolvedType){var n=Kc(t);if(n===Qe)r.resolvedType=Ge;else if(Jc(t))r.resolvedType=174===t.kind&&0===t.elementTypes.length?n:lc(n,t,void 0);else{var i=173===t.kind?[Yu(t.elementType)]:e.map(t.elementTypes,Yu);r.resolvedType=cc(n,i)}}return r.resolvedType}(t);case 175:return function(e){var t=Yu(e.type);return V?z_(t):t}(t);case 177:return function(t){var r=dn(t);if(!r.resolvedType){var n=Mu(t);r.resolvedType=Qc(e.map(t.types,Yu),1,n,Lu(n))}return r.resolvedType}(t);case 178:return function(t){var r=dn(t);if(!r.resolvedType){var n=Mu(t);r.resolvedType=iu(e.map(t.types,Yu),n,Lu(n))}return r.resolvedType}(t);case 295:return function(e){var t=Yu(e.type);return V?J_(t,65536):t}(t);case 297:return sa(Yu(t.type));case 181:case 296:case 292:return Yu(t.type);case 176:return v_(Yu(t.type))||xe;case 299:return function(t){var r=Yu(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 jc(r)}}if(e.isParameter(n)&&e.isJSDocFunctionType(n.parent))return jc(r);return sa(r)}(t);case 169:case 170:case 172:case 302:case 298:case 303:return Ou(t);case 183:return function(t){var r=dn(t);if(!r.resolvedType)switch(t.operator){case 133:r.resolvedType=lu(Yu(t.type));break;case 146:r.resolvedType=143===t.type.kind?Gu(e.walkUpParenthesizedTypes(t.parent)):xe;break;case 137:r.resolvedType=Yu(t.type);break;default:throw e.Debug.assertNever(t.operator)}return r.resolvedType}(t);case 184:return Eu(t);case 185:return Cu(t);case 179:return function(t){var r=dn(t);if(!r.resolvedType){var n=Yu(t.checkType),i=Mu(t),a=Lu(i),o=Ra(t,!0),s=a?o:e.filter(o,(function(e){return ll(e,t)})),c={node:t,checkType:n,extendsType:Yu(t.extendsType),trueType:Yu(t.trueType),falseType:Yu(t.falseType),isDistributive:!!(262144&n.flags),inferTypeParameters:Pu(t),outerTypeParameters:s,instantiations:void 0,aliasSymbol:i,aliasTypeArguments:a};r.resolvedType=Nu(c,void 0),s&&(c.instantiations=e.createMap(),c.instantiations.set(oc(s),r.resolvedType))}return r.resolvedType}(t);case 180:return function(e){var t=dn(e);return t.resolvedType||(t.resolvedType=to(ri(e.typeParameter))),t.resolvedType}(t);case 187:return wu(t);case 75:case 152:var r=cb(t);return r?ro(r):xe;default:return xe}}function Xu(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 Qu(e,t){return Xu(e,t,gl)}function $u(e,t){return Xu(e,t,sl)}function Zu(e,t){return function(r){return r===e?t:r}}function el(t,r){return e.Debug.assert(void 0===r||t.length===r.length),1===t.length?Zu(t[0],r?r[0]:he):2===t.length?(n=t[0],i=r?r[0]:he,a=t[1],o=r?r[1]:he,function(e){return e===n?i:e===a?o:e}):function(e,t){return function(r){for(var n=0;n<e.length;n++)if(r===e[n])return t?t[n]:he;return r}}(t,r);var n,i,a,o}function tl(e){return el(e,void 0)}function rl(e,t){return e?t?function(r){return gl(e(r),t)}:e:t}function nl(e,t,r){return function(n){return n===e?t:r(n)}}function il(e){return 262144&e.flags?be:e}function al(e){return 262144&e.flags?(t=e).constraint===De?t:t.restrictiveInstantiation||(t.restrictiveInstantiation=fi(t.symbol),t.restrictiveInstantiation.constraint=De,t.restrictiveInstantiation):e;var t}function ol(e){var t=fi(e.symbol);return t.target=e,t}function sl(t,r,n){var i;if(t.typeParameters&&!n){i=e.map(t.typeParameters,ol),r=rl(el(t.typeParameters,i),r);for(var a=0,o=i;a<o.length;a++){o[a].mapper=r}}var s=To(t.declaration,i,t.thisParameter&&cl(t.thisParameter,r),Xu(t.parameters,r,cl),void 0,void 0,t.minArgumentCount,3&t.flags);return s.target=t,s.mapper=r,s}function cl(t,r){var n=_n(t);if(n.type&&!fy(n.type,63700992))return t;1&e.getCheckFlags(t)&&(t=n.target,r=rl(n.mapper,r));var i=en(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),t.nameType&&(i.nameType=t.nameType),i}function ul(t,r){var n=64&t.objectFlags?t.target:t,i=4&t.objectFlags?t.node:t.symbol.declarations[0],a=dn(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=Ra(s,!0);if(Sg(s)){var _=ks(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 ll(e,s)})):o,a.outerTypeParameters=o,o.length&&(a.instantiations=e.createMap(),a.instantiations.set(oc(o),n))}if(o.length){var d=e.map(o,rl(t.mapper,r)),p=oc(d),f=a.instantiations.get(p);if(!f){var m=el(o,d);f=4&n.objectFlags?lc(t.target,t.node,m):32&n.objectFlags?function(t,r){var n=_l(t);if(n){var i=gl(n,r);if(n!==i)return pp(i,(function(i){if(61603843&i.flags&&i!==be&&i!==xe){var a=nl(n,i,r);return y_(i)?function(e,t,r){var n=pl(t,Ae,!0,r);return n===xe?xe:jc(n,dl(h_(e),Go(t)))}(i,t,a):w_(i)?function(t,r,n){var i=t.target.minLength,a=e.map(_c(t),(function(e,t){return pl(r,Wu(""+t),t>=i,n)})),o=Go(r),s=4&o?0:8&o?dc(t)-(t.target.hasRestElement?1:0):i,c=dl(t.target.readonly,o);return e.contains(a,xe)?xe:Uc(a,s,t.target.hasRestElement,c,t.target.associatedNames)}(i,t,a):fl(t,a)}return i}))}return fl(t,r)}(n,m):fl(n,m),a.instantiations.set(p,f)}return f}return t}function ll(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||222===i.kind||179===i.kind&&e.forEachChild(i.extendsType,a))return!0;return!!e.forEachChild(r,a)}return!0;function a(r){switch(r.kind){case 182:return!!t.isThisType;case 75:return!t.isThisType&&e.isPartOfTypeNode(r)&&function(e){return!(152===e.kind||168===e.parent.kind&&e.parent.typeArguments&&e===e.parent.typeName||187===e.parent.kind&&e.parent.typeArguments&&e===e.parent.qualifier)}(r)&&Yu(r)===t;case 171:return!0}return!!e.forEachChild(r,a)}}function _l(e){var t=zo(e);if(4194304&t.flags){var r=ku(t.type);if(262144&r.flags)return r}}function dl(e,t){return!!(1&t)||!(2&t)&&e}function pl(e,t,r,n){var i=rl(n,el([Jo(e)],[t])),a=gl(Uo(e.target||e),i),o=Go(e);return V&&4&o&&!Fl(Se,a)?z_(a):V&&8&o&&r?Hd(a,524288):a}function fl(e,t){var r=pi(64|e.objectFlags,e.symbol);if(32&e.objectFlags){r.declaration=e.declaration;var n=Jo(e),i=ol(n);r.typeParameter=i,t=rl(Zu(n,i),t),i.mapper=t}return r.target=e,r.mapper=t,r.aliasSymbol=e.aliasSymbol,r.aliasTypeArguments=Qu(e.aliasTypeArguments,t),r}function ml(t,r){var n=t.root;if(n.outerTypeParameters){var i=e.map(n.outerTypeParameters,r),a=oc(i),o=n.instantiations.get(a);if(!o)o=function(e,t){if(e.isDistributive){var r=e.checkType,n=t(r);if(r!==n&&1179648&n.flags)return pp(n,(function(n){return Nu(e,nl(r,n,t))}))}return Nu(e,t)}(n,el(n.outerTypeParameters,i)),n.instantiations.set(a,o);return o}return t}function gl(t,r){if(!t||!r||r===j)return t;if(50===T||x>=5e6)return Xr(l,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),xe;x++,T++;var n=function(e,t){var r=e.flags;if(262144&r)return t(e);if(524288&r){var n=e.objectFlags;if(16&n)return md(e)?ul(e,t):e;if(32&n)return ul(e,t);if(4&n){if(e.node)return ul(e,t);var i=e.resolvedTypeArguments,a=Qu(i,t);return a!==i?cc(e.target,a):e}return e}if(1048576&r&&!(131068&r)){var o=e.types;return(s=Qu(o,t))!==o?Qc(s,1,e.aliasSymbol,Qu(e.aliasTypeArguments,t)):e}if(2097152&r){var s;o=e.types;return(s=Qu(o,t))!==o?iu(s,e.aliasSymbol,Qu(e.aliasTypeArguments,t)):e}if(4194304&r)return lu(gl(e.type,t));if(8388608&r)return Su(gl(e.objectType,t),gl(e.indexType,t));if(16777216&r)return ml(e,rl(e.mapper,t));if(33554432&r){var c=gl(e.typeVariable,t);if(8650752&c.flags)return hc(c,gl(e.substitute,t));var u=gl(e.substitute,t);return 3&u.flags||Fl(hl(c),hl(u))?c:u}return e}(t,r);return T--,n}function yl(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=gl(e,il))}function hl(e){return 262143&e.flags?e:e.restrictiveInstantiation?e.restrictiveInstantiation:(e.restrictiveInstantiation=gl(e,al),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation,e.restrictiveInstantiation)}function vl(e,t){return e&&tc(gl(e.type,t),e.isReadonly,e.declaration)}function bl(t){switch(e.Debug.assert(160!==t.kind||e.isObjectLiteralMethod(t)),t.kind){case 200:case 201:case 160:case 243:return xl(t);case 192:return e.some(t.properties,bl);case 191:return e.some(t.elements,bl);case 209:return bl(t.whenTrue)||bl(t.whenFalse);case 208:return(56===t.operatorToken.kind||60===t.operatorToken.kind)&&(bl(t.left)||bl(t.right));case 279:return bl(t.initializer);case 199:return bl(t.expression);case 272:return e.some(t.properties,bl)||e.isJsxOpeningElement(t.parent)&&e.some(t.parent.parent.children,bl);case 271:var r=t.initializer;return!!r&&bl(r);case 274:var n=t.expression;return!!n&&bl(n)}return!1}function xl(t){if(e.isFunctionDeclaration(t)&&(!e.isInJSFile(t)||!aa(t)))return!1;if(t.typeParameters)return!1;if(e.some(t.parameters,(function(t){return!e.getEffectiveTypeAnnotationNode(t)})))return!0;if(201!==t.kind){var r=e.firstOrUndefined(t.parameters);if(!r||!e.parameterIsThisKeyword(r))return!0}return Dl(t)}function Dl(e){return!!e.body&&222!==e.body.kind&&bl(e.body)}function Sl(t){return(e.isInJSFile(t)&&e.isFunctionDeclaration(t)||Cf(t)||e.isObjectLiteralMethod(t))&&xl(t)}function Tl(t){if(524288&t.flags){var r=Qo(t);if(r.constructSignatures.length||r.callSignatures.length){var n=pi(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 iu(e.map(t.types,Tl));return t}function El(e,t){return Ql(e,t,Wr)}function Cl(e,t){return Ql(e,t,Wr)?-1:0}function kl(e,t){return Ql(e,t,Vr)?-1:0}function Nl(e,t){return Ql(e,t,Ur)?-1:0}function Al(e,t){return Ql(e,t,Ur)}function Fl(e,t){return Ql(e,t,Vr)}function Pl(t,r){return 1048576&t.flags?e.every(t.types,(function(e){return Pl(e,r)})):1048576&r.flags?e.some(r.types,(function(e){return Pl(t,e)})):58982400&t.flags?Pl(cs(t)||De,r):r===ct?!!(67633152&t.flags):r===ut?!!(524288&t.flags)&&Wd(t):Ma(t,Oa(r))}function wl(e,t){return Ql(e,t,qr)}function Il(e,t){return wl(e,t)||wl(t,e)}function Ol(e,t,r,n,i,a){return Zl(e,t,Vr,r,n,i,a)}function Ml(e,t,r,n,i,a){return Ll(e,t,Vr,r,n,i,a,void 0)}function Ll(e,t,r,n,i,a,o,s){return!!Ql(e,t,r)||(!n||!Bl(i,e,t,r,a,o,s))&&Zl(e,t,r,n,a,o,s)}function Rl(t){return!!(16777216&t.flags||2097152&t.flags&&e.some(t.types,Rl))}function Bl(t,n,a,o,s,c,u){if(!t||Rl(a))return!1;if(!Zl(n,a,o,void 0)&&function(t,r,n,i,a,o,s){for(var c=xs(r,0),u=xs(r,1),l=0,_=[u,c];l<_.length;l++){var d=_[l];if(e.some(d,(function(e){var t=zs(e);return!(131073&t.flags)&&Zl(t,n,i,void 0)}))){var p=s||{};Ol(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,n,a,o,s,c,u))return!0;switch(t.kind){case 274:case 199:return Bl(t.expression,n,a,o,s,c,u);case 208:switch(t.operatorToken.kind){case 62:case 27:return Bl(t.right,n,a,o,s,c,u)}break;case 192:return function(t,r,n,a,o,s){return!(131068&n.flags)&&jl(function(t){var r,n,a,o;return i(this,(function(i){switch(i.label){case 0:if(!e.length(t.properties))return[2];r=0,n=t.properties,i.label=1;case 1:if(!(r<n.length))return[3,8];if(a=n[r],e.isSpreadAssignment(a))return[3,7];if(!(o=su(ri(a),8576))||131072&o.flags)return[3,7];switch(a.kind){case 163:case 162:case 160:case 280:return[3,2];case 279:return[3,4]}return[3,6];case 2:return[4,{errorNode:a.name,innerExpression:void 0,nameType:o}];case 3:return i.sent(),[3,7];case 4:return[4,{errorNode:a.name,innerExpression:a.initializer,nameType:o,errorMessage:Zi(a.name)?e.Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0}];case 5:return i.sent(),[3,7];case 6:e.Debug.assertNever(a),i.label=7;case 7:return r++,[3,1];case 8:return[2]}}))}(t),r,n,a,o,s)}(t,n,a,o,c,u);case 191:return function(e,t,r,n,i,a){if(131068&r.flags)return!1;if(D_(t))return jl(zl(e,r),t,r,n,i,a);var o=Ff(e,1,!0);if(D_(o))return jl(zl(e,r),o,r,n,i,a);return!1}(t,n,a,o,c,u);case 272:return function(t,n,a,o,s,c){var u,l=jl(function(t){var r,n,a;return i(this,(function(i){switch(i.label){case 0:if(!e.length(t.properties))return[2];r=0,n=t.properties,i.label=1;case 1:return r<n.length?(a=n[r],e.isJsxSpreadAttribute(a)?[3,3]:[4,{errorNode:a.name,innerExpression:a.initializer,nameType:Wu(e.idText(a.name))}]):[3,4];case 2:i.sent(),i.label=3;case 3:return r++,[3,1];case 4:return[2]}}))}(t),n,a,o,s,c);if(e.isJsxOpeningElement(t.parent)&&e.isJsxElement(t.parent.parent)){var _=t.parent.parent,d=Xf(Hf(t)),p=void 0===d?"children":e.unescapeLeadingUnderscores(d),f=Wu(p),m=Su(a,f),g=Jl(_.children);if(!e.length(g))return l;var y=e.length(g)>1,h=_p(m,S_),v=_p(m,(function(e){return!S_(e)}));if(y){if(h!==Be){var b=Uc(Vf(_,0)),x=function(t,r){var n,a,o,s,c;return i(this,(function(i){switch(i.label){case 0:if(!e.length(t.children))return[2];n=0,a=0,i.label=1;case 1:return a<t.children.length?(o=t.children[a],s=Wu(a-n),(c=Kl(o,s,r))?[4,c]:[3,3]):[3,5];case 2:return i.sent(),[3,4];case 3:n++,i.label=4;case 4:return a++,[3,1];case 5:return[2]}}))}(_,T);l=jl(x,b,h,o,s,c)||l}else if(!Ql(Su(n,f),m,o)){l=!0;var D=Xr(_.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,p,Ii(m));c&&c.skipLogging&&(c.errors||(c.errors=[])).push(D)}}else if(v!==Be){var S=Kl(g[0],f,T);S&&(l=jl(function(){return i(this,(function(e){switch(e.label){case 0:return[4,S];case 1:return e.sent(),[2]}}))}(),n,a,o,s,c)||l)}else if(!Ql(Su(n,f),m,o)){l=!0;D=Xr(_.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,Ii(m));c&&c.skipLogging&&(c.errors||(c.errors=[])).push(D)}}return l;function T(){if(!u){var n=e.getTextOfNode(t.parent.tagName),i=Xf(Hf(t)),o=void 0===i?"children":e.unescapeLeadingUnderscores(i),s=Su(a,Wu(o)),c=e.Diagnostics._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;u=r(r({},c),{key:"!!ALREADY FORMATTED!!",message:e.formatMessage(void 0,c,n,o,Ii(s))})}return u}}(t,n,a,o,c,u);case 201: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=qm(r);if(!s)return!1;var c=xs(n,0);if(!e.length(c))return!1;var u=t.body,l=zs(s),_=Qc(e.map(c,zs));if(!Zl(l,_,i,void 0)){var d=u&&Bl(u,l,_,i,void 0,a,o);if(d)return d;var p=o||{};if(Zl(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}return!1}(t,n,a,o,c,u)}return!1}function jl(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=Tu(n,d);if(f&&!(8388608&f.flags)){var m=Tu(r,d);if(m&&!Zl(m,f,i,void 0))if(_&&Bl(_,m,f,i,void 0,a,o))s=!0;else{var g=o||{},y=_?wy(_,0,m):m;if(Zl(y,f,i,l,p,a,g)&&y!==m&&Zl(m,f,i,l,p,a,g),g.errors){var h=g.errors[g.errors.length-1],v=_o(d)?yo(d):void 0,b=void 0!==v?vs(n,v):void 0,x=!1;if(!b){var D=my(d,296)&&Ts(n,1)||Ts(n,0)||void 0;D&&D.declaration&&!e.getSourceFileOfNode(D.declaration).hasNoDefaultLib&&(x=!0,e.addRelatedInfo(h,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(h,e.createDiagnosticForNode(S,e.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!v||8192&d.flags?Ii(d):e.unescapeLeadingUnderscores(v),Ii(n)))}}s=!0}}}return s}function Kl(t,r,n){switch(t.kind){case 274: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 264:case 265:case 268:return{errorNode:t,innerExpression:t,nameType:r};default:return e.Debug.assertNever(t,"Found invalid jsx child")}}function Jl(t){return e.filter(t,(function(t){return!e.isJsxText(t)||!t.containsOnlyTriviaWhiteSpaces}))}function zl(t,r){var n,a,o,s;return i(this,(function(i){switch(i.label){case 0:if(!(n=e.length(t.elements)))return[2];a=0,i.label=1;case 1:return a<n?D_(r)&&!vs(r,""+a)?[3,3]:(o=t.elements[a],e.isOmittedExpression(o)?[3,3]:(s=Wu(a),[4,{errorNode:o,innerExpression:o,nameType:s}])):[3,4];case 2:i.sent(),i.label=3;case 3:return a++,[3,1];case 4:return[2]}}))}function Ul(e,t,r,n,i){return Zl(e,t,qr,r,n,i)}function Vl(t,r,n,i,a,o,s,c){if(t===r)return-1;if(function(e){return!e.typeParameters&&(!e.thisParameter||Qi(Ig(e.thisParameter)))&&1===e.parameters.length&&M(e)&&(Ig(e.parameters[0])===vt||Qi(Ig(e.parameters[0])))&&Qi(zs(e))}(r))return-1;var u=Bg(r);if(!Kg(r)&&jg(t)>u)return 0;t.typeParameters&&t.typeParameters!==r.typeParameters&&(t=Hm(t,r=Xs(r),void 0,c));var l=Bg(t),_=zg(t),d=zg(r);if(_&&d&&l!==u)return 0;var p=r.declaration?r.declaration.kind:0,f=!n&&q&&160!==p&&159!==p&&161!==p,m=-1,g=Ks(t);if(g&&g!==Re){var y=Ks(r);if(y){if(!(x=!f&&c(g,y,!1)||c(y,g,a)))return a&&o(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;m&=x}}for(var h=_||d?Math.min(l,u):Math.max(l,u),v=_||d?h-1:-1,b=0;b<h;b++){var x,D=b===v?Rg(t,b):Mg(t,b),S=b===v?Rg(r,b):Mg(r,b),T=n?void 0:qm(U_(D)),E=n?void 0:qm(U_(S));if(!(x=T&&E&&!Js(T)&&!Js(E)&&(98304&R_(D))==(98304&R_(S))?Vl(E,T,f?2:1,!1,a,o,s,c):!n&&!f&&c(D,S,!1)||c(S,D,a)))return a&&o(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,e.unescapeLeadingUnderscores(Og(t,b)),e.unescapeLeadingUnderscores(Og(r,b))),0;m&=x}if(!i){var C=Vs(r)?he:r.declaration&&Sg(r.declaration)?Ha(ti(r.declaration.symbol)):zs(r);if(C===Re)return m;var k=Vs(t)?he:t.declaration&&Sg(t.declaration)?Ha(ti(t.declaration.symbol)):zs(t),N=Js(r);if(N){var A=Js(t);if(A)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,Ri(t),Ri(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,Ri(t),Ri(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,Ri(t),Ri(r));return o}(A,N,a,o,c);else if(e.isIdentifierTypePredicate(N))return a&&o(e.Diagnostics.Signature_0_must_be_a_type_predicate,wi(t)),0}else!(m&=1===n&&c(C,k,!1)||c(k,C,a))&&a&&s&&s(k,C)}return m}function ql(e,t){var r=Ys(e),n=Ys(t),i=zs(r),a=zs(n);return!(a!==Re&&!Ql(a,i,Vr)&&!Ql(i,a,Vr))&&0!==Vl(r,n,0,!0,!1,void 0,void 0,kl)}function Wl(t){return 524288&t.flags?!Xo(t)&&(0===(r=Qo(t)).properties.length&&0===r.callSignatures.length&&0===r.constructSignatures.length&&!r.stringIndexInfo&&!r.numberIndexInfo):!!(67108864&t.flags)||(1048576&t.flags?e.some(t.types,Wl):!!(2097152&t.flags)&&e.every(t.types,Wl));var r}function Gl(t){return!!(16&e.getObjectFlags(t))&&Wl(t)}function Hl(t){return 524288&t.flags&&!Xo(t)&&0===ts(t).length&&Ts(t,0)&&!Ts(t,1)||3145728&t.flags&&e.every(t.types,Hl)||!1}function Yl(t,r,n){if(t===r)return!0;var i=A(t)+","+A(r),a=Gr.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 Gr.set(i,6),!1;for(var o=wa(r),s=0,c=ts(wa(t));s<c.length;s++){var u=c[s];if(8&u.flags){var l=vs(o,u.escapedName);if(!(l&&8&l.flags))return n?(n(e.Diagnostics.Property_0_is_missing_in_type_1,e.symbolName(u),Ii(ro(r),void 0,64)),Gr.set(i,6)):Gr.set(i,2),!1}}return Gr.set(i,1),!0}function Xl(e,t,r,n){var i=e.flags,a=t.flags;if(3&a||131072&i||e===be)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&&Yl(e.symbol,t.symbol,n))return!0;if(1024&i&&1024&a){if(1048576&i&&1048576&a&&Yl(e.symbol,t.symbol,n))return!0;if(2944&i&&2944&a&&e.value===t.value&&Yl(ni(e.symbol),ni(t.symbol),n))return!0}if(32768&i&&(!V||49152&a))return!0;if(65536&i&&(!V||65536&a))return!0;if(524288&i&&67108864&a)return!0;if(r===Vr||r===qr){if(1&i)return!0;if(264&i&&!(1024&i)&&(32&a||256&a&&1024&a))return!0}return!1}function Ql(e,t,r){if(qu(e)&&(e=e.regularType),qu(t)&&(t=t.regularType),e===t||r===qr&&!(131072&t.flags)&&Xl(t,e,r)||r!==Wr&&Xl(e,t,r))return!0;if(524288&e.flags&&524288&t.flags){var n=r.get(u_(e,t,!1,r));if(void 0!==n)return!!(1&n)}return!!(66846720&e.flags||66846720&t.flags)&&Zl(e,t,r,void 0)}function $l(t,r){return 4096&e.getObjectFlags(t)&&!Jf(r.escapedName)}function Zl(r,n,i,a,o,s,c){var u,l,_,d,p,m,g=0,y=0,h=0,v=!1,b=0,x=[];e.Debug.assert(i!==Wr||!a,"no error reporting in identity checking");var D=L(r,n,!!a,o);if(x.length&&w(),v){var S=Xr(a,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,Ii(r),Ii(n));c&&(c.errors||(c.errors=[])).push(S)}else if(u){if(s){var T=s();T&&(e.concatenateDiagnosticMessageChains(T,u),u=T)}var E=void 0;if(o&&a&&!D&&r.symbol){var k=_n(r.symbol);if(k.originatingImport&&!e.isImportCall(k.originatingImport))if(Zl(wa(k.target),n,i,void 0)){var N=e.createDiagnosticForNode(k.originatingImport,e.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);E=e.append(E,N)}}S=e.createDiagnosticForNodeFromMessageChain(a,u,E);l&&e.addRelatedInfo.apply(void 0,t([S],l)),c&&(c.errors||(c.errors=[])).push(S),c&&c.skipLogging||jr.add(S)}return a&&c&&c.skipLogging&&0===D&&e.Debug.assert(!!c.errors,"missed opportunity to interact with error."),0!==D;function A(e){u=e.errorInfo,m=e.lastSkippedInfo,x=e.incompatibleStack,b=e.overrideNextErrorInfo,l=e.relatedInfo}function F(){return{errorInfo:u,lastSkippedInfo:m,incompatibleStack:x.slice(),overrideNextErrorInfo:b,relatedInfo:l?l.slice():void 0}}function P(e,t,r,n,i){b++,m=void 0,x.push([e,t,r,n,i])}function w(){var r=x;x=[];var n=m;if(m=void 0,1===r.length)return I.apply(void 0,r[0]),void(n&&O.apply(void 0,t([void 0],n)));for(var i="",a=[];r.length;){var o=r.pop(),s=o[0],c=o.slice(1);switch(s.code){case e.Diagnostics.Types_of_property_0_are_incompatible.code:0===i.indexOf("new ")&&(i="("+i+")");var u=""+c[0];i=0===i.length?""+u:e.isIdentifierText(u,K.target)?i+"."+u:"["===u[0]&&"]"===u[u.length-1]?""+i+u:i+"["+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===i.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),a.unshift([l,c[0],c[1]])}else{i=""+(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 ":"")+i+"("+(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)}}i?I(")"===i[i.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,i):a.shift();for(var _=0,d=a;_<d.length;_++){var p=d[_],f=(s=p[0],c=p.slice(1),s.elidedInCompatabilityPyramid);s.elidedInCompatabilityPyramid=!1,I.apply(void 0,t([s],c)),s.elidedInCompatabilityPyramid=f}n&&O.apply(void 0,t([void 0],n))}function I(t,r,n,i,o){e.Debug.assert(!!a),x.length&&w(),t.elidedInCompatabilityPyramid||(u=e.chainDiagnosticMessages(u,t,r,n,i,o))}function O(t,r,n){x.length&&w();var a=Oi(r,n),o=a[0],s=a[1];262144&n.flags&&void 0!==n.immediateBaseConstraint&&Fl(r,n.immediateBaseConstraint)&&I(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,Ii(n.immediateBaseConstraint)),t||(t=i===qr?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),I(t,o,s)}function M(t,r,n){if(D_(t)){var i=t.target;return i&&i.readonly&&S_(r)&&(!h_(r)||w_(r)&&!r.target.readonly)?(n&&I(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Ii(t),Ii(r)),!1):b_(r)}return D_(r)?b_(t):!(h_(t)&&y_(r)&&!h_(r))||(n&&I(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Ii(t),Ii(r)),!1)}function L(t,r,n,o,s){if(void 0===n&&(n=!1),qu(t)&&(t=t.regularType),qu(r)&&(r=r.regularType),33554432&t.flags&&(t=t.substitute),33554432&r.flags&&(r=r.typeVariable),25165824&t.flags&&(t=vu(t,!1)),25165824&r.flags&&(r=vu(r,!0)),1048576&r.flags&&524288&t.flags&&r.types.length<=3&&fy(r,98304)){var c=fp(r,-98305);1179648&c.flags||(r=c)}if(t===r)return-1;if(i===Wr)return function(e,t){var r,n=e.flags&t.flags;if(524288&n||8388608&n||16777216&n||4194304&n||33554432&n)return z(e,t,!1,!1);if(3145728&n&&(r=R(e,t))&&(r&=R(t,e)))return r;return 0}(t,r);if(i===qr&&!(131072&r.flags)&&Xl(r,t,i)||Xl(t,r,i,n?I:void 0))return-1;var l=!!(4096&e.getObjectFlags(t)),_=!s&&Cd(t)&&32768&e.getObjectFlags(t);if(_){var d=1048576&r.flags?j(t,r):void 0;if(function t(r,n,o,s){if(!H&&16384&e.getObjectFlags(n))return!1;if(im(n)){var c=!!(4096&e.getObjectFlags(r));if((i===Vr||i===qr)&&(cp(ct,n)||!c&&Wl(n)))return!1;if(o)return t(r,o,void 0,s);for(var u=function(t){if(function(e,t){return e.valueDeclaration&&t.valueDeclaration&&e.valueDeclaration.parent===t.valueDeclaration}(t,r.symbol)&&!nm(n,t.escapedName,c)){if(s){var i=_p(n,im);if(!a)return{value:e.Debug.fail()};if(e.isJsxAttributes(a)||e.isJsxOpeningLikeElement(a)||e.isJsxOpeningLikeElement(a.parent))t.valueDeclaration&&e.isJsxAttribute(t.valueDeclaration)&&(a=t.valueDeclaration.name),I(e.Diagnostics.Property_0_does_not_exist_on_type_1,Pi(t),Ii(i));else{var o=r.symbol&&e.firstOrUndefined(r.symbol.declarations),u=void 0;if(t.valueDeclaration&&e.findAncestor(t.valueDeclaration,(function(e){return e===o}))){var l=t.valueDeclaration;e.Debug.assertNode(l,e.isObjectLiteralElementLike),a=l;var _=l.name;e.isIdentifier(_)&&(u=Cm(_,i))}void 0!==u?I(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Pi(t),Ii(i),u):I(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Pi(t),Ii(i))}}return{value:!0}}},l=0,_=ts(r);l<_.length;l++){var d=_[l],p=u(d);if("object"===f(p))return p.value}}return!1}(t,r,d,n))return n&&O(o,t,r),0}var p=i!==qr&&!s&&2752508&t.flags&&t!==ct&&2621440&r.flags&&t_(r)&&(ts(t).length>0||mb(t));if(p&&!function(e,t,r){for(var n=0,i=ts(e);n<i.length;n++){var a=i[n];if(nm(t,a.escapedName,r))return!0}return!1}(t,r,l)){if(n){var g=xs(t,0),y=xs(t,1);g.length>0&&L(zs(g[0]),r,!1)||y.length>0&&L(zs(y[0]),r,!1)?I(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Ii(t),Ii(r)):I(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,Ii(t),Ii(r))}return 0}var h=0,v=F(),x=!!s;if(1048576&t.flags)h=i===qr?J(t,r,n&&!(131068&t.flags)):function(e,t,r){for(var n=-1,i=e.types,a=0,o=i;a<o.length;a++){var s=L(o[a],t,r);if(!s)return 0;n&=s}return n}(t,r,n&&!(131068&t.flags));else{if(1048576&r.flags){if((h=B(Q_(t),r,n&&!(131068&t.flags)&&!(131068&r.flags)))&&(_||p)){d=j(t,r)||function(e){if(fy(e,67108864)){var t=_p(e,(function(e){return!(131068&e.flags)}));if(!(131072&t.flags))return t}return e}(r);if(!Y(t,d,n,void 0,x))return 0}}else if(2097152&r.flags){if(x=!0,(h=function(e,t,r){for(var n=-1,i=t.types,a=0,o=i;a<o.length;a++){var s=o[a],c=L(e,s,r,void 0,!0);if(!c)return 0;n&=c}return n}(Q_(t),r,n))&&(_||p)&&!Y(t,r,n,void 0,!1))return 0}else 2097152&t.flags&&(h=J(t,r,!1));!h&&(66846720&t.flags||66846720&r.flags)&&(h=z(t,r,n,x))&&A(v)}if(!h&&2359296&t.flags){var D=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=rs(l);s&&21233664&s.flags;)s=rs(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 iu(n)}}(2097152&t.flags?t.types:[t],!!(1048576&r.flags));D&&(2097152&t.flags||1048576&r.flags)&&lp(D,(function(e){return e!==t}))&&(h=L(D,r,!1,void 0,x))&&A(v)}if(!h&&n){var S=b>0;if(S&&b--,524288&t.flags&&524288&r.flags){var T=u;M(t,r,n),u!==T&&(S=!!u)}if(524288&t.flags&&131068&r.flags)!function(t,r){var n=Mi(t.symbol)?Ii(t,t.symbol.valueDeclaration):Ii(t),i=Mi(r.symbol)?Ii(r,r.symbol.valueDeclaration):Ii(r);(ft===t&&Ne===r||mt===t&&Ae===r||gt===t&&Me===r||wc(!1)===t&&Le===r)&&I(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,i,n)}(t,r);else if(t.symbol&&524288&t.flags&&ct===t)I(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(l&&2097152&r.flags){var E=r.types,k=Wf(C.IntrinsicAttributes,a),N=Wf(C.IntrinsicClassAttributes,a);if(k!==xe&&N!==xe&&(e.contains(E,k)||e.contains(E,N)))return h}if(!o&&S)return m=[t,r],h;O(o,t,r)}return h}function R(e,t){for(var r=-1,n=0,i=e.types;n<i.length;n++){var a=B(i[n],t,!1);if(!a)return 0;r&=a}return r}function B(t,r,n){var i=r.types;if(1048576&r.flags&&Wc(i,t))return-1;for(var a=0,o=i;a<o.length;a++){var s=L(t,o[a],!1);if(s)return s}n&&L(t,j(t,r)||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)&&up(r,b_))return e.find(r.types,(function(e){return!b_(e)}))}(t,r)||function(t,r){var n=0;if(xs(t,n).length>0||xs(t,n=1).length>0)return e.find(r.types,(function(e){return xs(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=iu([lu(t),lu(s)]);if(4194304&c.flags)n=s,i=1/0;else if(1048576&c.flags){var u=e.length(e.filter(c.types,E_));u>=i&&(n=s,i=u)}else E_(c)&&1>=i&&(n=s,i=1)}return n}(t,r)||i[i.length-1],!0);return 0}function j(t,r){if(1048576&r.flags&&2621440&t.flags){var n=ts(t);if(n){var i=zd(n,r);if(i)return e_(r,e.map(i,(function(e){return[function(){return wa(e)},e.escapedName]})),L)}}}function J(e,t,r){var n=e.types;if(1048576&e.flags&&Wc(n,t))return-1;for(var i=n.length,a=0;a<i;a++){var o=L(n[a],t,r&&a===i-1);if(o)return o}return 0}function z(t,r,n,a){if(v)return 0;var o=u_(t,r,a,i),s=i.get(o);if(void 0!==s&&(!(n&&2&s)||4&s)){if(Yt){var c=24&s;8&c&&gl(t,U),16&c&&gl(t,q)}return 1&s?-1:0}if(_){for(var l=0;l<g;l++)if(o===_[l])return 1;if(100===y)return v=!0,0}else _=[],d=[],p=[];var m=g;_[g]=o,g++,d[y]=t,p[y]=r,y++;var b,x=h;1&h||!d_(t,d,y)||(h|=1),2&h||!d_(r,p,y)||(h|=2);var D=0;Yt&&(b=Yt,Yt=function(e){return D|=e?16:8,b(e)});var S=3!==h?function(t,r,n,a){var o,s,c=t.flags&r.flags;if(i===Wr&&!(524288&c)){if(4194304&c)return L(t.type,r.type,!1);var l=0;return 8388608&c&&(l=L(t.objectType,r.objectType,!1))&&(l&=L(t.indexType,r.indexType,!1))?l:16777216&c&&t.root.isDistributive===r.root.isDistributive&&(l=L(t.checkType,r.checkType,!1))&&(l&=L(t.extendsType,r.extendsType,!1))&&(l&=L(Au(t),Au(r),!1))&&(l&=L(Fu(t),Fu(r),!1))?l:33554432&c?L(t.substitute,r.substitute,!1):0}var _=!1,d=F();if(17301504&t.flags&&t.aliasSymbol&&t.aliasTypeArguments&&t.aliasSymbol===r.aliasSymbol&&!t.aliasTypeArgumentsContainsMarker&&!r.aliasTypeArgumentsContainsMarker){var p=n_(t.aliasSymbol);if(void 0!==(K=W(t.aliasTypeArguments,r.aliasTypeArguments,p,a)))return K}if(262144&r.flags){if(32&e.getObjectFlags(t)&&L(lu(r),zo(t))&&!(4&Go(t))){var m=Uo(t),g=Su(r,Jo(t));if(o=L(m,g,n))return o}}else if(4194304&r.flags){if(4194304&t.flags&&(o=L(r.type,t.type,!1)))return o;if((P=is(r.type))&&-1===L(t,lu(P,r.stringsOnly),n))return-1}else if(8388608&r.flags){if(i!==Wr){var y=r.objectType,h=r.indexType,v=cs(y)||y,b=cs(h)||h;if(!gu(v)&&!yu(b))if((P=Tu(v,b,void 0,2|(v!==y?1:0)))&&(o=L(t,P,n)))return o}}else if(Xo(r)){var x=Uo(r),D=Go(r);if(!(8&D)){if(8388608&x.flags&&x.objectType===t&&x.indexType===Jo(r))return-1;if(!Xo(t)){var S=zo(r),T=lu(t,void 0,!0),E=4&D,C=E?Io(S,T):void 0;if(E?!(131072&C.flags):L(S,T)){var k=Jo(r),N=C?iu([C,k]):k;g=Su(t,N),m=Uo(r);if(o=L(g,m,n))return o}s=u,A(d)}}}if(8650752&t.flags){var P;if(8388608&t.flags&&8388608&r.flags){if((o=L(t.objectType,r.objectType,n))&&(o&=L(t.indexType,r.indexType,n)),o)return A(d),o}else if(!(P=rs(t))||262144&t.flags&&1&P.flags){if(o=L(Ge,fp(r,-67108865)))return A(d),o}else{if(o=L(P,r,!1,void 0,a))return A(d),o;if(o=L(Do(P,t),r,n,void 0,a))return A(d),o}}else if(4194304&t.flags){if(o=L(qe,r,n))return A(d),o}else if(16777216&t.flags)if(16777216&r.flags){var w=t.root.inferTypeParameters,I=t.extendsType,O=void 0;if(w){var M=cd(w,void 0,0,L);Sd(M.inferences,r.extendsType,I,192),I=gl(I,M.mapper),O=M.mapper}if(El(I,r.extendsType)&&(L(t.checkType,r.checkType)||L(r.checkType,t.checkType))&&((o=L(gl(Au(t),O),Au(r),n))&&(o&=L(Fu(t),Fu(r),n)),o))return A(d),o}else{var R=os(t);if(R&&(o=L(R,r,n)))return A(d),o;var B=as(t);if(B&&(o=L(B,r,n)))return A(d),o}else{if(i!==Ur&&function(t){return!!(32&e.getObjectFlags(t)&&4&Go(t))}(r)&&Wl(t))return-1;if(Xo(r))return Xo(t)&&(o=function(e,t,r){if(i===qr||(i===Wr?Go(e)===Go(t):Yo(e)<=Yo(t))){var n,a=zo(t),o=gl(zo(e),Yo(e)<0?U:q);if(n=L(a,o,r)){var s=el([Jo(e)],[Jo(t)]);return n&L(gl(Uo(e),s),Uo(t),r)}}return 0}(t,r,n))?(A(d),o):0;var j=!!(131068&t.flags);if(i!==Wr)t=ms(t);else if(Xo(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 K;p=a_(t.target);if(void 0!==(K=W(_c(t),_c(r),p,a)))return K}else{if(h_(r)?y_(t)||w_(t):y_(r)&&w_(t)&&!t.target.readonly)return i!==Wr?L(Es(t,1)||he,Es(r,1)||he,n):0;if(i===Ur&&Wl(r)&&32768&e.getObjectFlags(r)&&!Wl(t))return 0}if(2621440&t.flags&&524288&r.flags){var J=n&&u===d.errorInfo&&!j;if((o=Y(t,r,J,void 0,a))&&(o&=X(t,r,0,J))&&(o&=X(t,r,1,J))&&(o&=te(t,r,0,j,J))&&(o&=te(t,r,1,j,J)),_&&o)u=s||u||d.errorInfo;else if(o)return o}if(2621440&t.flags&&1048576&r.flags){var z=fp(r,524288);if(1048576&z.flags){var V=function(t,r){var n=zd($o(t),r);if(!n)return 0;for(var i=1,a=0,o=n;a<o.length;a++){var s=o[a];if((i*=dp(wa(s)))>25)return 0}for(var c=new Array(n.length),u=e.createUnderscoreEscapedMap(),l=0;l<n.length;l++){var _=wa(s=n[l]);c[l]=1048576&_.flags?_.types:[_],u.set(s.escapedName,!0)}for(var d=e.cartesianProduct(c),p=[],m=function(i){var a=!1;e:for(var o=0,s=r.types;o<s.length;o++){for(var c=s[o],u=function(e){var a=n[e],o=Zo(c,a.escapedName);return o?a===o?"continue":G(t,r,a,o,(function(t){return i[e]}),!1,!1)?void 0:"continue-outer":"continue-outer"},l=0;l<n.length;l++){switch(u(l)){case"continue-outer":continue e}}e.pushIfUnique(p,c,e.equateValues),a=!0}if(!a)return{value:0}},g=0,y=d;g<y.length;g++){var h=y[g],v=m(h);if("object"===f(v))return v.value}for(var b=-1,x=0,D=p;x<D.length;x++){var S=D[x];if((b&=Y(t,S,!1,u,!1))&&(b&=X(t,S,0,!1))&&(b&=X(t,S,1,!1))&&(b&=te(t,S,0,!1,!1))&&(b&=te(t,S,1,!1,!1)),!b)return b}return b}(t,z);if(V)return V}}}return 0;function W(t,r,a,c){if(o=function(t,r,n,a,o){if(void 0===t&&(t=e.emptyArray),void 0===r&&(r=e.emptyArray),void 0===n&&(n=e.emptyArray),t.length!==r.length&&i===Wr)return 0;for(var s=t.length<=r.length?t.length:r.length,c=-1,u=0;u<s;u++){var l=u<n.length?n[u]:1,_=7&l;if(4!==_){var d=t[u],p=r[u],f=-1;if(8&l?f=i===Wr?L(d,p,!1):Cl(d,p):1===_?f=L(d,p,a,void 0,o):2===_?f=L(p,d,a,void 0,o):3===_?(f=L(p,d,!1))||(f=L(d,p,a,void 0,o)):(f=L(d,p,a,void 0,o))&&(f&=L(p,d,a,void 0,o)),!f)return 0;c&=f}}return c}(t,r,a,n,c))return o;if(e.some(a,(function(e){return!!(24&e)})))return s=void 0,void A(d);var l=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(_=!l,a!==e.emptyArray&&!l){if(_&&(!n||!e.some(a,(function(e){return 0==(7&e)}))))return 0;s=u,A(d)}}}(t,r,n,a):1;if(Yt&&(Yt=b),h=x,y--,S){if(-1===S||0===y){for(l=m;l<g;l++)i.set(_[l],1|D);g=m}}else i.set(o,2|(n?4:0)|D),g=m;return S}function U(e){return!Yt||e!==rt&&e!==nt&&e!==Xt||Yt(!1),e}function q(e){return!Yt||e!==rt&&e!==nt&&e!==Xt||Yt(!0),e}function W(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,a,o,s,c){var u=e.getDeclarationModifierFlagsFromSymbol(n),l=e.getDeclarationModifierFlagsFromSymbol(a);if(8&u||8&l){var _=n.valueDeclaration!==a.valueDeclaration;if(1024&e.getCheckFlags(n)&&_)return s&&I(e.Diagnostics.Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1,Pi(n),Ii(t)),0;if(_)return s&&(8&u&&8&l?I(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,Pi(a)):I(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,Pi(a),Ii(8&u?t:r),Ii(8&u?r:t))),0}else if(16&l){if(!function(t,r){return!l_(r,(function(r){return!!(16&e.getDeclarationModifierFlagsFromSymbol(r))&&(n=t,i=__(r),!l_(n,(function(e){var t=__(e);return!!t&&Ma(t,i)})));var n,i}))}(n,a))return s&&I(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,Pi(a),Ii(__(n)||t),Ii(__(a)||r)),0}else if(16&u)return s&&I(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,Pi(a),Ii(t),Ii(r)),0;var d=function(t,r,n,i,a){var o=V&&!!(48&e.getCheckFlags(r)),s=n(t);if(65536&e.getCheckFlags(r)&&!_n(r).type){var c=_n(r);e.Debug.assertDefined(c.deferralParent),e.Debug.assertDefined(c.deferralConstituents);for(var u=!!(1048576&c.deferralParent.flags),l=u?0:-1,_=0,d=c.deferralConstituents;_<d.length;_++){var p=L(s,d[_],!1,void 0,!u);if(u){if(p)return p}else{if(!p)return L(s,sa(wa(r),o),i);l&=p}}return u&&!l&&o&&(l=L(s,Se)),u&&!l&&i?L(s,sa(wa(r),o),i):l}return L(s,sa(wa(r),o),i,void 0,a)}(n,a,o,s,c);return d?i!==qr&&16777216&n.flags&&!(16777216&a.flags)?(s&&I(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,Pi(a),Ii(t),Ii(r)),0):d:(s&&P(e.Diagnostics.Types_of_property_0_are_incompatible,Pi(a)),0)}function Y(r,n,a,s,c){if(i===Wr)return function(e,t,r){if(!(524288&e.flags&&524288&t.flags))return 0;var n=W($o(e),r),i=W($o(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=Zo(t,c.escapedName);if(!u)return 0;var l=f_(c,u,L);if(!l)return 0;a&=l}return a}(r,n,s);var _,d=i===Ur&&!Cd(r)&&!x_(r)&&!w_(r),p=bd(r,n,d,!1);if(p){if(a){var f=e.arrayFrom(vd(r,n,d,!1)),m=!1;if((!o||o.code!==e.Diagnostics.Class_0_incorrectly_implements_interface_1.code&&o.code!==e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(m=!0),1===f.length){var g=Pi(p);I.apply(void 0,t([e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,g],Oi(r,n))),e.length(p.declarations)&&(_=e.createDiagnosticForNode(p.declarations[0],e.Diagnostics._0_is_declared_here,g),e.Debug.assert(!!u),l?l.push(_):l=[_]),m&&u&&b++}else M(r,n,!1)&&(f.length>5?I(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Ii(r),Ii(n),e.map(f.slice(0,4),(function(e){return Pi(e)})).join(", "),f.length-4):I(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Ii(r),Ii(n),e.map(f,(function(e){return Pi(e)})).join(", ")),m&&u&&b++)}return 0}if(Cd(n))for(var y=0,h=W(ts(r),s);y<h.length;y++){if(!Zo(n,(w=h[y]).escapedName)){var v=wa(w);if(v!==Se&&v!==Te&&v!==Ee)return a&&I(e.Diagnostics.Property_0_does_not_exist_on_type_1,Pi(w),Ii(n)),0}}var x=-1;if(w_(n)){var D=I_(n);if(D){if(!w_(r))return 0;var S=I_(r);if(S&&!L(S,D,a))return a&&I(e.Diagnostics.Rest_signatures_are_incompatible),0;for(var T=dc(n)-1,E=dc(r)-(S?1:0),C=_c(r),k=T;k<E;k++){if(!(B=L(C[k],D,a)))return a&&I(e.Diagnostics.Property_0_is_incompatible_with_rest_element_type,""+k),0;x&=B}}}for(var N=1048576&n.flags?es(n):ts(n),A=w_(r)&&w_(n),F=0,P=W(N,s);F<P.length;F++){var w,O=P[F],R=O.escapedName;if(!(4194304&O.flags)&&(!A||Mf(R)||"length"===R))if((w=vs(r,R))&&w!==O){var B;if(!(B=G(r,n,w,O,wa,a,c)))return 0;x&=B}}return x}function X(t,r,n,a){if(i===Wr)return function(e,t,r){var n=xs(e,r),i=xs(t,r);if(n.length!==i.length)return 0;for(var a=-1,o=0;o<n.length;o++){var s=m_(n[o],i[o],!1,!1,!1,L);if(!s)return 0;a&=s}return a}(t,r,n);if(r===$e||t===$e)return-1;var o=t.symbol&&Sg(t.symbol.valueDeclaration),s=r.symbol&&Sg(r.symbol.valueDeclaration),c=xs(t,o&&1===n?0:n),u=xs(r,s&&1===n?0:n);if(1===n&&c.length&&u.length){if(e.isAbstractConstructorType(t)&&!e.isAbstractConstructorType(r))return a&&I(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&&I(e.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,Bi(i),Bi(a));return!1}(c[0],u[0],a))return 0}var l=-1,_=F(),d=1===n?$:Q;if(64&e.getObjectFlags(t)&&64&e.getObjectFlags(r)&&t.symbol===r.symbol)for(var p=0;p<u.length;p++){if(!(x=Z(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=i===qr||!!K.noStrictGenericChecks;l=Z(c[0],u[0],f,a,d(c[0],u[0]))}else e:for(var m=0,g=u;m<g.length;m++){for(var y=g[m],h=a,v=0,b=c;v<b.length;v++){var x,D=b[v];if(x=Z(D,y,!0,h,d(D,y))){l&=x,A(_);continue e}h=!1}return h&&I(e.Diagnostics.Type_0_provides_no_match_for_the_signature_1,Ii(t),wi(y,void 0,void 0,n)),0}return l}function Q(t,r){return 0===t.parameters.length&&0===r.parameters.length?function(t,r){return P(e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Ii(t),Ii(r))}:function(t,r){return P(e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible,Ii(t),Ii(r))}}function $(t,r){return 0===t.parameters.length&&0===r.parameters.length?function(t,r){return P(e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Ii(t),Ii(r))}:function(t,r){return P(e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible,Ii(t),Ii(r))}}function Z(e,t,r,n,i){return Vl(r?Ys(e):e,r?Ys(t):t,0,!1,n,I,i,L)}function ee(t,r,n){var i=L(t.type,r.type,n);return!i&&n&&I(e.Diagnostics.Index_signatures_are_incompatible),i}function te(t,r,n,a,o){if(i===Wr)return function(e,t,r){var n=Ts(t,r),i=Ts(e,r);if(!i&&!n)return-1;if(i&&n&&i.isReadonly===n.isReadonly)return L(i.type,n.type);return 0}(t,r,n);var s=Ts(r,n);if(!s||1&s.type.flags&&!a)return-1;var c=Ts(t,n)||1===n&&Ts(t,0);if(c)return ee(c,s,o);if(Xo(t))return 0===n?L(Uo(t),s.type,o):0;if(Y_(t)){var u=-1;if(0===n){var l=Ts(t,1);l&&(u=ee(l,s,o))}return u&&(u&=function(t,r,n,i){for(var a=-1,o=0,s=$o(t);o<s.length;o++){var c=s[o];if(!$l(t,c)&&(!(c.nameType&&8192&c.nameType.flags)&&(0===n||Mf(c.escapedName)))){var u=L(wa(c),r,i);if(!u)return i&&I(e.Diagnostics.Property_0_is_incompatible_with_index_signature,Pi(c)),0;a&=u}}return a}(t,s.type,n,o)),u}return o&&I(e.Diagnostics.Index_signature_is_missing_in_type_0,Ii(t)),0}}function e_(e,t,r,n){for(var i=e.types.map((function(e){})),a=0,o=t;a<o.length;a++)for(var s=o[a],c=s[0],u=s[1],l=0,_=0,d=e.types;_<d.length;_++){var p=Xi(d[_],u);p&&r(c(),p)?i[l]=void 0===i[l]||i[l]:i[l]=!1,l++}var f=i.indexOf(!0);return-1===f||-1!==i.indexOf(!0,f+1)?n:e.types[f]}function t_(t){if(524288&t.flags){var r=Qo(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,t_)}function r_(t,r,n){var i=cc(t,e.map(t.typeParameters,(function(e){return e===r?n:e})));return i.objectFlags|=8192,i}function n_(e){var t=_n(e);return i_(t.typeParameters,t,(function(r,n,i){var a=fc(e,Qu(t.typeParameters,Zu(n,i)));return a.aliasTypeArgumentsContainsMarker=!0,a}))}function i_(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=Yt;Yt=function(e){return e?a=!0:t=!0};var s=n(r,e,rt),c=n(r,e,nt),u=(Fl(c,s)?1:0)|(Fl(s,c)?2:0);3===u&&Fl(n(r,e,Xt),s)&&(u=4),Yt=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 a_(t){return t===dt||t===pt||8&t.objectFlags?e.emptyArray:i_(t.typeParameters,t,r_)}function o_(e){return 262144&e.flags&&!ns(e)}function s_(t){return function(t){return!!(4&e.getObjectFlags(t))&&!t.node}(t)&&e.some(_c(t),(function(e){return o_(e)||s_(e)}))}function c_(e,t,r){void 0===r&&(r=0);for(var n=""+e.target.id,i=0,a=_c(e);i<a.length;i++){var o=a[i];if(o_(o)){var s=t.indexOf(o);s<0&&(s=t.length,t.push(o)),n+="="+s}else r<4&&s_(o)?n+="<"+c_(o,t,r+1)+">":n+="-"+o.id}return n}function u_(e,t,r,n){if(n===Wr&&e.id>t.id){var i=e;e=t,t=i}var a=r?"&":"";if(s_(e)&&s_(t)){var o=[];return c_(e,o)+","+c_(t,o)+a}return e.id+","+t.id+a}function l_(t,r){if(!(6&e.getCheckFlags(t)))return r(t);for(var n=0,i=t.containingType.types;n<i.length;n++){var a=vs(i[n],t.escapedName),o=a&&l_(a,r);if(o)return o}}function __(e){return e.parent&&32&e.parent.flags?ro(ni(e)):void 0}function d_(e,t,r){if(r>=5&&524288&e.flags){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=p_(e);for(i=0,a=0;a<r;a++){var s;if(p_(s=t[a])===o&&++i>=5)return!0}}return!1}function p_(e){for(var t=e;8388608&t.flags;)t=t.objectType;return t}function f_(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(Iv(t)!==Iv(r))return 0}else if((16777216&t.flags)!=(16777216&r.flags))return 0;return uy(t)!==uy(r)?0:n(wa(t),wa(r))}function m_(t,r,n,i,a,o){if(t===r)return-1;if(!function(e,t,r){var n=Bg(e),i=Bg(t),a=jg(e),o=jg(t),s=Kg(e),c=Kg(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=el(t.typeParameters,r.typeParameters),c=0;c<r.typeParameters.length;c++){if(!((m=t.typeParameters[c])===(p=r.typeParameters[c])||o(gl(ic(m),s)||De,ic(p)||De)&&o(gl(ps(m),s)||De,ps(p)||De)))return 0}t=sl(t,s,!0)}var u=-1;if(!i){var l=Ks(t);if(l){var _=Ks(r);if(_){if(!(f=o(l,_)))return 0;u&=f}}}var d=Bg(r);for(c=0;c<d;c++){var p,f,m=Mg(t,c);if(!(f=o(p=Mg(r,c),m)))return 0;u&=f}if(!a){var g=Js(t),y=Js(r);u&=g||y?function(e,t,r){return e&&t&&$c(e,t)?e.type===t.type?-1:e.type&&t.type?r(e.type,t.type):0:0}(g,y,o):o(zs(t),zs(r))}return u}function g_(t){return function(e){for(var t,r=0,n=e;r<n.length;r++){var i=n[r],a=k_(i);if(t||(t=a),a===i||a!==t)return!1}return!0}(t)?Qc(t):e.reduceLeft(t,(function(e,t){return Al(e,t)?t:e}))}function y_(t){return!!(4&e.getObjectFlags(t))&&(t.target===dt||t.target===pt)}function h_(t){return!!(4&e.getObjectFlags(t))&&t.target===pt}function v_(e){return y_(e)?_c(e)[0]:void 0}function b_(e){return y_(e)||!(98304&e.flags)&&Fl(e,xt)}function x_(e){var t=y_(e)?_c(e)[0]:void 0;return t===Te||t===Je}function D_(e){return w_(e)||!!vs(e,"0")}function S_(e){return b_(e)||D_(e)}function T_(e){return!(240512&e.flags)}function E_(e){return!!(109440&e.flags)}function C_(t){return!!(16&t.flags)||(1048576&t.flags?!!(1024&t.flags)||e.every(t.types,E_):E_(t))}function k_(t){return 1024&t.flags?$a(t):128&t.flags?Ne:256&t.flags?Ae:2048&t.flags?Fe:512&t.flags?Me:1048576&t.flags?Qc(e.sameMap(t.types,k_)):t}function N_(t){return 1024&t.flags&&qu(t)?$a(t):128&t.flags&&qu(t)?Ne:256&t.flags&&qu(t)?Ae:2048&t.flags&&qu(t)?Fe:512&t.flags&&qu(t)?Me:1048576&t.flags?Qc(e.sameMap(t.types,N_)):t}function A_(t){return 8192&t.flags?Le:1048576&t.flags?Qc(e.sameMap(t.types,A_)):t}function F_(e,t){return Fy(e,t)||(e=A_(N_(e))),e}function P_(e,t,r,n){e&&E_(e)&&(e=F_(e,t?bv(r,t,n):void 0));return e}function w_(t){return!!(4&e.getObjectFlags(t)&&8&t.target.objectFlags)}function I_(e){return e.target.hasRestElement?_c(e)[e.target.typeParameters.length-1]:void 0}function O_(e){return dc(e)-(e.target.hasRestElement?1:0)}function M_(e){return"0"===e.value.base10Value}function L_(e){for(var t=0,r=0,n=e;r<n.length;r++){t|=R_(n[r])}return t}function R_(e){return 1048576&e.flags?L_(e.types):128&e.flags?""===e.value?128:0:256&e.flags?0===e.value?256:0:2048&e.flags?M_(e)?2048:0:512&e.flags?e===Pe||e===we?512:0:117724&e.flags}function B_(e){return 117632&R_(e)?_p(e,(function(e){return!(117632&R_(e))})):e}function j_(e){return pp(e,K_)}function K_(e){return 4&e.flags?yr:8&e.flags?hr:64&e.flags?vr:e===we||e===Pe||114688&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&M_(e)?e:Be}function J_(e,t){var r=t&~e.flags&98304;return 0===r?e:Qc(32768===r?[e,Se]:65536===r?[e,Ce]:[e,Se,Ce])}function z_(t){return e.Debug.assert(V),32768&t.flags?t:Qc([t,Se])}function U_(e){return V?function(e){return Dt||(Dt=Ac("NonNullable",524288,void 0)||ge),Dt!==ge?fc(Dt,[e]):Hd(e,2097152)}(e):e}function V_(e){return V?Qc([e,Ee]):e}function q_(e){return e!==Ee}function W_(e){return V?_p(e,q_):e}function G_(e,t){return t?V_(e):e}function H_(t,r){return e.isExpressionOfOptionalChainRoot(r)?U_(t):e.isOptionalChain(r)?W_(t):t}function Y_(t){return!(!t.symbol||0==(7040&t.symbol.flags)||mb(t))||!!(2048&e.getObjectFlags(t)&&Y_(t.source))}function X_(t,r){var n=en(t.flags,t.escapedName,8&e.getCheckFlags(t));return n.declarations=t.declarations,n.parent=t.parent,n.type=r,n.target=t,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration),t.nameType&&(n.nameType=t.nameType),n}function Q_(t){if(!(Cd(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=$o(t);i<a.length;i++){var o=a[i],s=wa(o),c=r(s);n.set(o.escapedName,c===s?o:X_(o,c))}return n}(t,Q_),a=hi(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 $_(e,t,r){return{parent:e,propertyName:t,siblings:r,resolvedProperties:void 0}}function Z_(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(Cd(a)){var o=Zo(a,t.propertyName);o&&up(wa(o),(function(e){r.push(e)}))}}t.siblings=r}return t.siblings}(t);n<i.length;n++){var a=i[n];if(Cd(a)&&!(1024&e.getObjectFlags(a)))for(var o=0,s=ts(a);o<s.length;o++){var c=s[o];r.set(c.escapedName,c)}}t.resolvedProperties=e.arrayFrom(r.values())}return t.resolvedProperties}function ed(e,t){if(!(4&e.flags))return e;var r=wa(e),n=nd(r,t&&$_(t,e.escapedName,void 0));return n===r?e:X_(e,n)}function td(e){var t=me.get(e.escapedName);if(t)return t;var r=X_(e,Se);return r.flags|=16777216,me.set(e.escapedName,r),r}function rd(e){return nd(e,void 0)}function nd(t,r){if(786432&e.getObjectFlags(t)){if(void 0===r&&t.widened)return t.widened;var n=void 0;if(98304&t.flags)n=he;else if(Cd(t))n=function(t,r){for(var n=e.createSymbolTable(),i=0,a=$o(t);i<a.length;i++){var o=a[i];n.set(o.escapedName,ed(o,r))}if(r)for(var s=0,c=Z_(r);s<c.length;s++){o=c[s];n.has(o.escapedName)||n.set(o.escapedName,td(o))}var u=Ts(t,0),l=Ts(t,1),_=hi(t.symbol,n,e.emptyArray,e.emptyArray,u&&tc(rd(u.type),u.isReadonly),l&&tc(rd(l.type),l.isReadonly));return _.objectFlags|=1064960&e.getObjectFlags(t),_}(t,r);else if(1048576&t.flags){var i=r||$_(void 0,void 0,t.types),a=e.sameMap(t.types,(function(e){return 98304&e.flags?e:nd(e,i)}));n=Qc(a,e.some(a,Wl)?2:1)}else 2097152&t.flags?n=iu(e.sameMap(t.types,rd)):(y_(t)||w_(t))&&(n=cc(t.target,e.sameMap(_c(t),rd)));return n&&void 0===r&&(t.widened=n),n||t}return t}function id(t,r,n){var i=Ii(rd(r));if(!e.isInJSFile(t)||e.isCheckJsEnabledForFile(e.getSourceFileOfNode(t),K)){var a;switch(t.kind){case 208:case 158:case 157:a=H?e.Diagnostics.Member_0_implicitly_has_an_1_type:e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 155:var 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&&(gn(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 $r(H,t,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,s,e.declarationNameToString(o.name))}a=t.dotDotDotToken?H?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:H?e.Diagnostics.Parameter_0_implicitly_has_an_1_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 190:if(a=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!H)return;break;case 298:return void Xr(t,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);case 243:case 160:case 159:case 162:case 163:case 200:case 201:if(H&&!t.name)return void Xr(t,1===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=H?1===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 185:return void(H&&Xr(t,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:a=H?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}$r(H,t,a,e.declarationNameToString(e.getNameOfDeclaration(t)),i)}}function ad(t,r,n){a&&H&&262144&e.getObjectFlags(r)&&(function t(r){var n=!1;if(262144&e.getObjectFlags(r)){if(1048576&r.flags)if(e.some(r.types,Wl))n=!0;else for(var i=0,a=r.types;i<a.length;i++){t(_=a[i])&&(n=!0)}if(y_(r)||w_(r))for(var o=0,s=_c(r);o<s.length;o++){t(_=s[o])&&(n=!0)}if(Cd(r))for(var c=0,u=$o(r);c<u.length;c++){var l=u[c],_=wa(l);262144&e.getObjectFlags(_)&&(t(_)||Xr(l.valueDeclaration,e.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,Pi(l),Ii(rd(_))),n=!0)}}return n}(r)||id(t,r,n))}function od(e,t,r){var n=Bg(e),i=Bg(t),a=Jg(e),o=Jg(t),s=o?i-1:i,c=a?s:Math.min(n,s),u=Ks(e);if(u){var l=Ks(t);l&&r(u,l)}for(var _=0;_<c;_++)r(Mg(e,_),Mg(t,_));o&&r(Rg(e,c),o)}function sd(e,t,r){var n=Js(e),i=Js(t);n&&i&&$c(n,i)&&n.type&&i.type?r(n.type,i.type):r(zs(e),zs(t))}function cd(e,t,r,n){return ud(e.map(dd),t,r,n||kl)}function ud(e,t,r,n){var i={inferences:e,signature:t,flags:r,compareTypes:n,mapper:function(e){return ld(i,e,!0)},nonFixingMapper:function(e){return ld(i,e,!1)}};return i}function ld(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&&(_d(n),a.isFixed=!0),Fd(e,i)}return t}function _d(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];n.isFixed||(n.inferredType=void 0)}}function dd(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1}}function pd(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 fd(e){return e&&e.mapper}function md(t){var r=e.getObjectFlags(t);return!!(63176704&t.flags||4&r&&(t.node||e.forEach(_c(t),md))||16&r&&t.symbol&&14384&t.symbol.flags&&t.symbol.declarations||32&r||3145728&t.flags&&!(1024&t.flags)&&function(t){void 0===t.couldContainTypeVariables&&(t.couldContainTypeVariables=e.some(t.types,md));return t.couldContainTypeVariables}(t))}function gd(t,r){return!!(t===r||3145728&t.flags&&e.some(t.types,(function(e){return gd(e,r)}))||16777216&t.flags&&(gd(Au(t),r)||gd(Fu(t),r)))}function yd(t,r,n){var i=t.id+","+r.id+","+n.id;if(lr.has(i))return lr.get(i);lr.set(i,void 0);var a=function(t,r,n){if(!(Ts(t,0)||0!==ts(t).length&&function t(r){return!(1048576&e.getObjectFlags(r))||Cd(r)&&e.some(ts(r),(function(e){return t(wa(e))}))}(t)))return;if(y_(t))return jc(hd(_c(t)[0],r,n),h_(t));if(w_(t)){var i=e.map(_c(t),(function(e){return hd(e,r,n)})),a=4&Go(r)?dc(t)-(t.target.hasRestElement?1:0):t.target.minLength;return Uc(i,a,t.target.hasRestElement,t.target.readonly,t.target.associatedNames)}var o=pi(2064,void 0);return o.source=t,o.mappedType=r,o.constraintType=n,o}(t,r,n);return lr.set(i,a),a}function hd(e,t,r){var n=Su(r.type,Jo(t)),i=Uo(t),a=dd(n);return Sd([a],e,i),Dd(a)||De}function vd(t,r,n,a){var o,s,c,u,l,_,d;return i(this,(function(i){switch(i.label){case 0:o=1048576&r.flags?es(r):ts(r),s=0,c=o,i.label=1;case 1:return s<c.length?(u=c[s],!n&&(16777216&u.flags||48&e.getCheckFlags(u))?[3,5]:(l=vs(t,u.escapedName))?[3,3]:[4,u]):[3,6];case 2:return i.sent(),[3,5];case 3:return a&&109440&(_=wa(u)).flags?1&(d=wa(l)).flags||Vu(d)===Vu(_)?[3,5]:[4,u]:[3,5];case 4:i.sent(),i.label=5;case 5:return s++,[3,1];case 6:return[2]}}))}function bd(e,t,r,n){var i=vd(e,t,r,n).next();if(!i.done)return i.value}function xd(e,t){return w_(e)&&w_(t)&&function(e,t){return t.target.minLength>e.target.minLength||!I_(t)&&(!!I_(e)||O_(t)<O_(e))}(e,t)||!!bd(e,t,!1,!0)&&!!bd(t,e,!1,!0)}function Dd(e){return e.candidates?Qc(e.candidates,2):e.contraCandidates?iu(e.contraCandidates):void 0}function Sd(t,r,n,i,a){var o,s;void 0===i&&(i=0),void 0===a&&(a=!1);var c,u=!1,l=256,_=!0;function d(r,o){if(md(o)){if(r===be){var s=c;return c=r,d(o,o),void(c=s)}if(r.aliasSymbol&&r.aliasTypeArguments&&r.aliasSymbol===o.aliasSymbol)g(r.aliasTypeArguments,o.aliasTypeArguments,n_(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=m(1048576&r.flags?r.types:[r],o.types,Td),T=m(S[0],S[1],Ed),E=T[0];if(0===(k=T[1]).length)return;if(o=Qc(k),0===E.length)return void p(r,o,1);r=Qc(E)}else if(2097152&o.flags&&e.some(o.types,(function(e){return!!h(e)||Xo(e)&&!!h(_l(e)||Be)}))){if(!(1048576&r.flags)){var C=m(2097152&r.flags?r.types:[r],o.types,El),k=(E=C[0],C[1]);if(0===E.length||0===k.length)return;r=iu(E),o=iu(k)}}else 41943040&o.flags&&(o=ku(o));if(8650752&o.flags){if(1048576&e.getObjectFlags(r)||r===je||16&i&&(r===ve||r===bt))return;var N=h(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),_d(t)):e.contains(N.candidates,A)||(N.candidates=e.append(N.candidates,A),_d(t))}!(16&i)&&262144&o.flags&&N.topLevel&&!gd(n,o)&&(N.topLevel=!1,_d(t))}return void(l=Math.min(l,i))}var F=vu(o,!1);if(F!==o)f(r,F,d);else if(8388608&o.flags){var P=vu(o.indexType,!1);if(63176704&P.flags){var w=bu(vu(o.objectType,!1),P,!1);w&&w!==o&&f(r,w,d)}}}if(!(4&e.getObjectFlags(r)&&4&e.getObjectFlags(o)&&(r.target===o.target||y_(r)&&y_(o)))||r.node&&o.node)if(4194304&r.flags&&4194304&o.flags)a=!a,d(r.type,o.type),a=!a;else if((C_(r)||4&r.flags)&&4194304&o.flags){var I=function(t){var r=e.createSymbolTable();up(t,(function(t){if(128&t.flags){var n=e.escapeLeadingUnderscores(t.value),i=en(4,n);i.type=he,t.symbol&&(i.declarations=t.symbol.declarations,i.valueDeclaration=t.symbol.valueDeclaration),r.set(n,i)}}));var n=4&t.flags?tc(Ge,!1):void 0;return hi(void 0,r,e.emptyArray,e.emptyArray,n,void 0)}(r);a=!a,p(I,o.type,32),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(Au(r),Au(o)),d(Fu(r),Fu(o));else if(16777216&o.flags&&!a){v(r,[Au(o),Fu(o)],o.flags)}else if(3145728&o.flags)v(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(!(64&i&&65273856&r.flags)){var L=ms(r);if(L!==r&&_&&!(2621440&L.flags))return _=!1,d(L,o);r=L}2621440&r.flags&&f(r,o,b)}else g(_c(r),_c(o),a_(r.target))}}}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=256,n(t,r),s.set(i,l),l=Math.min(l,o)}else l=Math.min(l,a)}function m(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 g(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){q||128&i?(a=!a,d(e,t),a=!a):d(e,t)}function h(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 v(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(h(T=f[_]))o=T,a++;else for(var m=0;m<s.length;m++){var g=l;l=256,d(s[m],T),l===i&&(c[m]=!0),u=u||-1===l,l=Math.min(l,g)}}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!!h(e)}));if(!o||r&&o!==r)return;r=o}return r}(r);return void(y&&p(t,y,1))}if(1===a&&!u){var v=e.flatMap(s,(function(e,t){return c[t]?void 0:e}));if(v.length)return void d(Qc(v),o)}}else for(var b=0,x=r;b<x.length;b++){h(T=x[b])?a++:d(t,T)}if(2097152&n?1===a:a>0)for(var D=0,S=r;D<S.length;D++){var T;h(T=S[D])&&p(t,T,1)}}function b(t,r){var n=524288&r.flags&&!(16&e.getObjectFlags(r)&&r.symbol&&32&r.symbol.flags)?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||y_(t)&&y_(r)))g(_c(t),_c(r),a_(t.target));else{if(Xo(t)&&Xo(r)&&(d(zo(t),zo(r)),d(Uo(t),Uo(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=h(i.type);if(c&&!c.isFixed){var u=yd(r,n,i);u&&p(u,c.typeParameter,1048576&e.getObjectFlags(r)?4:2)}return!0}if(262144&i.flags){p(lu(r),i,8);var l=rs(i);if(l&&t(r,n,l))return!0;var _=e.map(ts(r),wa),f=Es(r,0),m=uu(r),g=m&&m.type;return d(Qc(e.append(e.append(_,f),g)),Uo(n)),!0}return!1}(t,r,zo(r)))return;xd(t,r)||(!function(e,t){if(y_(e)||w_(e)){if(w_(t)){for(var r=w_(e)?O_(e):0,n=O_(t),i=w_(e)?I_(e):v_(e),a=I_(t),o=n<r||i?n:r,s=0;s<o;s++)d(s<r?_c(e)[s]:i,_c(t)[s]);if(a){var c=o<r?_c(e).slice(o,r):[];i&&c.push(i),c.length&&d(Qc(c),a)}return}if(y_(t))return void T(e,t)}for(var u=$o(t),l=0,_=u;l<_.length;l++){var p=_[l],f=vs(e,p.escapedName);f&&d(wa(f),wa(p))}}(t,r),D(t,r,0),D(t,r,1),T(t,r))}}function D(t,r,n){for(var i=xs(t,n),a=xs(r,n),o=i.length,s=a.length,c=o<s?o:s,u=!!(1048576&e.getObjectFlags(t)),l=0;l<c;l++)S(Qs(i[o-c+l]),Qs(a[s-c+l]),u)}function S(e,t,r){if(!r){var n=u,i=t.declaration?t.declaration.kind:0;u=u||160===i||159===i||161===i,od(e,t,y),u=n}sd(e,t,d)}function T(e,t){var r=Es(t,0);r&&((n=Es(e,0)||Cs(e,0))&&d(n,r));var n,i=Es(t,1);i&&((n=Es(e,1)||Es(e,0)||Cs(e,1))&&d(n,i))}d(r,n)}function Td(e,t){return El(e,t)||!!(384&e.flags)&&El(k_(e),t)}function Ed(e,t){return!!(524288&e.flags&&524288&t.flags&&e.symbol&&e.symbol===t.symbol||e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol)}function Cd(t){return!!(128&e.getObjectFlags(t))}function kd(t){return!!(65664&e.getObjectFlags(t))}function Nd(t){return 56&t.priority?iu(t.contraCandidates):function(t){return e.reduceLeft(t,(function(e,t){return Al(t,e)?t:e}))}(t.contraCandidates)}function Ad(t,r){var n=function(t){if(t.length>1){var r=e.filter(t,kd);if(r.length){var n=Qc(r,2);return e.concatenate(e.filter(t,(function(e){return!kd(e)})),[n])}}return t}(t.candidates),i=function(e){var t=ns(e);return!!t&&fy(16777216&t.flags?as(t):t,4325372)}(t.typeParameter),a=!i&&t.topLevel&&(t.isFixed||!gd(zs(r),t.typeParameter)),o=i?e.sameMap(n,Vu):a?e.sameMap(n,N_):n;return rd(56&t.priority?Qc(o,2):function(t){if(!V)return g_(t);var r=e.filter(t,(function(e){return!(98304&e.flags)}));return r.length?J_(g_(r),98304&L_(t)):Qc(t,2)}(o))}function Fd(t,r){var n=t.inferences[r];if(!n.inferredType){var i=void 0,a=t.signature;if(a){var o=n.candidates?Ad(n,a):void 0;if(n.contraCandidates){var s=Nd(n);i=!o||131072&o.flags||!Al(o,s)?s:o}else if(o)i=o;else if(1&t.flags)i=je;else{var c=ps(n.typeParameter);c&&(i=gl(c,rl(function(t,r){return function(n){return e.findIndex(t.inferences,(function(e){return e.typeParameter===n}))>=r?De:n}}(t,r),t.nonFixingMapper)))}}else i=Dd(n);n.inferredType=i||Pd(!!(2&t.flags));var u=ns(n.typeParameter);if(u){var l=gl(u,t.nonFixingMapper);i&&t.compareTypes(i,Do(l,i))||(n.inferredType=i=l)}}return n.inferredType}function Pd(e){return e?he:De}function wd(e){for(var t=[],r=0;r<e.inferences.length;r++)t.push(Fd(e,r));return t}function Id(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 K.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 K.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 K.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 280===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 Od(t){var r=dn(t);return r.resolvedSymbol||(r.resolvedSymbol=!e.nodeIsMissing(t)&&gn(t,t.escapedText,1160127,Id(t),t,!e.isWriteOnlyAccess(t),!1,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1)||ge),r.resolvedSymbol}function Md(t){return!!e.findAncestor(t,(function(e){return 171===e.kind||75!==e.kind&&152!==e.kind&&"quit"}))}function Ld(t,r){switch(r.kind){case 199:case 217:return Ld(t,r.expression)}switch(t.kind){case 75:return 75===r.kind&&Od(t)===Od(r)||(241===r.kind||190===r.kind)&&si(Od(t))===ri(r);case 103:return 103===r.kind;case 101:return 101===r.kind;case 217:case 199:return Ld(t.expression,r);case 193:case 194:return e.isAccessExpression(r)&&Rd(t)===Rd(r)&&Ld(t.expression,r.expression)}return!1}function Rd(t){return 193===t.kind?t.name.escapedText:e.isStringOrNumericLiteralLike(t.argumentExpression)?e.escapeLeadingUnderscores(t.argumentExpression.text):void 0}function Bd(t,r){for(;e.isAccessExpression(t);)if(Ld(t=t.expression,r))return!0;return!1}function jd(t,r){for(;e.isOptionalChain(t);)if(Ld(t=t.expression,r))return!0;return!1}function Kd(t,r){var n;return e.isAccessExpression(r)&&Bd(t,r.expression)&&void 0!==(n=Rd(r))&&Jd(function t(r){if(75===r.kind)return wa(Od(r));if(e.isAccessExpression(r)){var n=t(r.expression);if(n){var i=Rd(r);return void 0!==i?Xi(n,i):void 0}}return}(r.expression),n)}function Jd(t,r){if(t&&1048576&t.flags){var n=ys(t,r);if(n&&2&e.getCheckFlags(n))return void 0===n.isDiscriminantProperty&&(n.isDiscriminantProperty=192==(192&n.checkFlags)&&function(e){return!!(1048576&e.flags&&(1040&e.flags||!yu(e)))}(wa(n))),!!n.isDiscriminantProperty}return!1}function zd(e,t){for(var r,n=0,i=e;n<i.length;n++){var a=i[n];if(Jd(t,a.escapedName)){if(r){r.push(a);continue}r=[a]}}return r}function Ud(e,t){return Ld(e,t)||Bd(e,t)}function Vd(e){return(!e.id||e.id<0)&&(e.id=d,d++),e.id}function qd(e,t){if(e!==t){if(131072&t.flags)return t;var r=_p(e,(function(e){return function(e,t){if(!(1048576&e.flags))return Fl(e,t);for(var r=0,n=e.types;r<n.length;r++){if(Fl(n[r],t))return!0}return!1}(t,e)}));if(512&t.flags&&qu(t)&&(r=pp(r,Uu)),Fl(t,r))return r}return e}function Wd(e){var t=Qo(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&Al(e,ut))}function Gd(t){var r=t.flags;if(4&r)return V?16317953:16776705;if(128&r){var n=""===t.value;return V?n?12123649:7929345:n?12582401:16776705}if(40&r)return V?16317698:16776450;if(256&r){var i=0===t.value;return V?i?12123394:7929090:i?12582146:16776450}if(64&r)return V?16317188:16775940;if(2048&r){i=M_(t);return V?i?12122884:7928580:i?12581636:16775940}return 16&r?V?16316168:16774920:528&r?V?t===Pe||t===we?12121864:7927560:t===Pe||t===we?12580616:16774920:524288&r?16&e.getObjectFlags(t)&&Wl(t)?V?16318463:16777215:Wd(t)?V?7880640:16728e3:V?7888800:16736160:49152&r?9830144:65536&r?9363232:12288&r?V?7925520:16772880:67108864&r?V?7888800:16736160:63176704&r?Gd(cs(t)||De):3145728&r?function(e){for(var t=0,r=0,n=e;r<n.length;r++){t|=Gd(n[r])}return t}(t.types):16777215}function Hd(e,t){return _p(e,(function(e){return 0!=(Gd(e)&t)}))}function Yd(e,t){if(t){var r=Ky(t);return Qc([Hd(e,524288),r])}return e}function Xd(e,t){var r=ou(t);if(!_o(r))return xe;var n=yo(r);return Jp(Xi(e,n),t)||Mf(n)&&Es(e,1)||Es(e,0)||xe}function Qd(e,t){return lp(e,D_)&&function(e,t){var r=Xi(e,""+t);return r||(lp(e,w_)?pp(e,(function(e){return I_(e)||Se})):void 0)}(e,t)||Zh(65,e,Se,void 0)||xe}function $d(e){return jc(Zh(65,e,Se,void 0)||xe)}function Zd(e){return 208===e.parent.kind&&e.parent.left===e||231===e.parent.kind&&e.parent.initializer===e}function ep(e){return Xd(tp(e.parent),e.name)}function tp(e){var t=e.parent;switch(t.kind){case 230:return Ne;case 231:return $h(t.expression,t.awaitModifier)||xe;case 208:return function(e){return 191===e.parent.kind&&Zd(e.parent)||279===e.parent.kind&&Zd(e.parent.parent)?Yd(tp(e),e.right):Ky(e.right)}(t);case 202:return Se;case 191:return function(e,t){return Qd(tp(e),e.elements.indexOf(t))}(t,e);case 212:return function(e){return $d(tp(e.parent))}(t);case 279:return ep(t);case 280:return function(e){return Yd(ep(e),e.objectAssignmentInitializer)}(t)}return xe}function rp(e){return e.initializer?function(e){return dn(e).resolvedType||Ky(e)}(e.initializer):230===e.parent.parent.kind?Ne:231===e.parent.parent.kind&&$h(e.parent.parent.expression,e.parent.parent.awaitModifier)||xe}function np(e){return 241===e.kind?rp(e):function(e){var t=e.parent,r=np(t.parent);return Yd(188===t.kind?Xd(r,e.propertyName||e.name):e.dotDotDotToken?$d(r):Qd(r,t.elements.indexOf(e)),e.initializer)}(e)}function ip(e){switch(e.kind){case 199:return ip(e.expression);case 208:switch(e.operatorToken.kind){case 62:return ip(e.left);case 27:return ip(e.right)}}return e}function ap(e){return 275===e.kind?Vu(Ky(e.expression)):Be}function op(e){var t=dn(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(ap(i))}}return t.switchTypes}function sp(t){for(var r=[],n=0,i=t.caseBlock.clauses;n<i.length;n++){var a=i[n];if(275===a.kind){if(e.isStringLiteralLike(a.expression)){r.push(a.expression.text);continue}return e.emptyArray}r.push(void 0)}return r}function cp(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(!Wc(t.types,i))return!1}return!0}if(1024&e.flags&&$a(e)===t)return!0;return Wc(t.types,e)}(e,t)}function up(t,r){return 1048576&t.flags?e.forEach(t.types,r):r(t)}function lp(t,r){return 1048576&t.flags?e.every(t.types,r):r(t)}function _p(t,r){if(1048576&t.flags){var n=t.types,i=e.filter(n,r);return i===n?t:Zc(i,t.objectFlags)}return r(t)?t:Be}function dp(e){return 1048576&e.flags?e.types.length:1}function pp(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&&Qc(n,r?0:1)}function fp(e,t){return _p(e,(function(e){return 0!=(e.flags&t)}))}function mp(e,t){return cp(Ne,e)&&fy(t,128)||cp(Ae,e)&&fy(t,256)||cp(Fe,e)&&fy(t,2048)?pp(e,(function(e){return 4&e.flags?fp(t,132):8&e.flags?fp(t,264):64&e.flags?fp(t,2112):e})):e}function gp(e){return 0===e.flags}function yp(e){return 0===e.flags?e.type:e}function hp(e,t){return t?{flags:0,type:e}:e}function vp(e){return fe[e.id]||(fe[e.id]=function(e){var t=pi(256);return t.elementType=e,t}(e))}function bp(e,t){var r=k_(Jy(t));return cp(r,e.elementType)?e:vp(Qc([e.elementType,r]))}function xp(e){return e.finalArrayType||(e.finalArrayType=131072&(t=e.elementType).flags?bt:jc(1048576&t.flags?Qc(t.types,2):t));var t}function Dp(t){return 256&e.getObjectFlags(t)?xp(t):t}function Sp(t){return 256&e.getObjectFlags(t)?t.elementType:Be}function Tp(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)?vp(Qc(e.map(t,Sp))):Qc(e.sameMap(t,Dp),r)}function Ep(t){var r=function e(t){var r=t.parent;return 199===r.kind||208===r.kind&&62===r.operatorToken.kind&&r.left===t||208===r.kind&&27===r.operatorToken.kind&&r.right===t?e(r):t}(t),n=r.parent,i=193===n.kind&&("length"===n.name.escapedText||195===n.parent.kind&&e.isPushOrUnshiftIdentifier(n.name)),a=194===n.kind&&n.expression===r&&208===n.parent.kind&&62===n.parent.operatorToken.kind&&n.parent.left===n&&!e.isAssignmentTarget(n.parent)&&my(Ky(n.argumentExpression),296);return i||a}function Cp(t,r){if(8752&t.flags)return wa(t);if(7&t.flags){if((n=t.valueDeclaration)&&(241===n.kind||155===n.kind||158===n.kind||157===n.kind)&&e.getEffectiveTypeAnnotationNode(n))return wa(t);r&&t.valueDeclaration&&e.addRelatedInfo(r,e.createDiagnosticForNode(t.valueDeclaration,e.Diagnostics._0_is_declared_here,Pi(t)))}var n}function kp(t,r){if(!(16777216&t.flags))switch(t.kind){case 75:var n=si(Od(t));return Cp(2097152&n.flags?Mn(n):n,r);case 103:return function(t){var r=e.getThisContainer(t,!1);if(e.isFunctionLike(r)){var n=Ls(r);if(n.thisParameter)return Cp(n.thisParameter)}if(e.isClassLike(r.parent)){var i=ri(r.parent);return e.hasModifier(r,32)?wa(i):ro(i).thisType}}(t);case 193:var i=kp(t.expression,r),a=i&&vs(i,t.name.escapedText);return a&&Cp(a,r);case 199:return kp(t.expression,r)}}function Np(t){var r=dn(t),n=r.effectsSignature;if(void 0===n){var i=void 0;225===t.parent.kind?i=kp(t.expression,void 0):101!==t.expression.kind&&(i=e.isOptionalChain(t)?gm(H_(zy(t.expression),t.expression),t.expression):lm(t.expression));var a=xs(i&&ms(i)||De,0),o=1!==a.length||a[0].typeParameters?e.some(a,Ap)?Dg(t):void 0:a[0];n=r.effectsSignature=o&&Ap(o)?o:Zt}return n===Zt?void 0:n}function Ap(e){return!!(Js(e)||e.declaration&&131072&(Us(e.declaration)||De).flags)}function Fp(e){var t=Ip(e,!1);return qt=e,Wt=t,t}function Pp(e){return!(4096&e.flags&&e.lock.locked)&&Ip(e,!1)}function wp(t){var r=e.skipParentheses(t);return 90===r.kind||208===r.kind&&(55===r.operatorToken.kind&&(wp(r.left)||wp(r.right))||56===r.operatorToken.kind&&wp(r.left)&&wp(r.right))}function Ip(t,r){for(;;){if(t===qt)return Wt;var n=t.flags;if(2048&n){if(!r){var i=Vd(t),a=Mr[i];return void 0!==a?a:Mr[i]=Ip(t,!0)}r=!1}if(4464&n)t=t.antecedent;else if(512&n){var o=Np(t.node);if(o){var s=Js(o);if(s&&3===s.kind){var c=t.node.arguments[s.parameterIndex];if(c&&wp(c))return!1}if(131072&zs(o).flags)return!1}t=t.antecedent}else{if(4&n)return e.some(t.antecedents,Pp);if(8&n)t=t.antecedents[0];else{if(!(128&n)){if(8192&n){qt=void 0,t.locked=!0;var u=Ip(t.antecedent,!1);return t.locked=!1,u}return!(1&n)}if(t.clauseStart===t.clauseEnd&&ey(t.switchStatement))return!1;t=t.antecedent}}}}function Op(t,r,n,i,a){var o;void 0===n&&(n=r);var s=!1,c=0;if(mr)return xe;if(!t.flowNode||!a&&!(133970943&r.flags))return r;gr++;var u=fr,l=yp(p(t.flowNode));fr=u;var _=256&e.getObjectFlags(l)&&Ep(t)?bt:Dp(l);return _===ze||t.parent&&217===t.parent.kind&&131072&Hd(_,2097152).flags?r:_;function d(){return s?o:(s=!0,o=function e(t,r,n,i){switch(t.kind){case 75:var a=Od(t);return a!==ge?(i?N(i):"-1")+"|"+qc(r)+"|"+qc(n)+"|"+(jp(t)?"@":"")+A(a):void 0;case 103:return"0";case 217:case 199:return e(t.expression,r,n,i);case 193:case 194:var o=Rd(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 mr=!0,function(t){var r=e.findAncestor(t,e.isFunctionOrModuleBlock),n=e.getSourceFileOfNode(t),i=e.getSpanOfTokenAtPosition(n,r.statements.pos);jr.add(e.createFileDiagnostic(n,i.start,i.length,e.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}(t),xe;for(c++;;){var o=a.flags;if(2048&o)for(var s=u;s<fr;s++)if(Ir[s]===a)return c--,Or[s];var l=void 0;if(8192&o)a.locked=!0,l=p(a.antecedent),a.locked=!1;else{if(4096&o){a=a.antecedent;continue}if(16&o){if(!(l=m(a))){a=a.antecedent;continue}}else if(512&o){if(!(l=g(a))){a=a.antecedent;continue}}else if(96&o)l=h(a);else if(128&o)l=v(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(2&o){var _=a.node;if(_&&_!==i&&193!==t.kind&&194!==t.kind&&103!==t.kind){a=_.flowNode;continue}l=n}else l=Jh(r)}return 2048&o&&(Ir[fr]=a,Or[fr]=l,fr++),c--,l}}function f(e){var r=e.node;if(16384&e.flags){var n=Ar[N(r)];if(n)return n}var i=gr,a=Jp(241===r.kind||190===r.kind?np(r):tp(r),t);return gr!==i&&pr===dr&&(e.flags|=16384,Ar[N(r)]=a),a}function m(n){var i=n.node;if(Ld(t,i)){if(!Fp(n))return ze;if(2===e.getAssignmentTargetKind(i)){var a=p(n.antecedent);return hp(k_(yp(a)),gp(a))}if(r===ve||r===bt){if(function(e){return 241===e.kind&&e.initializer&&oa(e.initializer)||190!==e.kind&&208===e.parent.kind&&oa(e.parent.right)}(i))return vp(Be);var o=k_(f(n));return Fl(o,r)?o:vt}return 1048576&r.flags?qd(r,f(n)):r}if(Bd(t,i)){if(!Fp(n))return ze;if(e.isVariableDeclaration(i)&&(e.isInJSFile(i)||e.isVarConst(i))){var s=e.getDeclaredExpandoInitializer(i);if(s&&(200===s.kind||201===s.kind))return p(n.antecedent)}return r}if(e.isVariableDeclaration(i)&&230===i.parent.parent.kind&&Ld(t,i.parent.parent.expression))return dm(yp(p(n.antecedent)))}function g(t){var r=Np(t.node);if(r){var n=Js(r);if(n&&(2===n.kind||3===n.kind)){var i=p(t.antecedent),a=yp(i),o=n.type?B(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(90===i.kind)return ze;if(208===i.kind){if(55===i.operatorToken.kind)return t(t(r,i.left),i.right);if(56===i.operatorToken.kind)return Qc([t(r,i.left),t(r,i.right)])}return j(r,i,!0)}(a,t.node.arguments[n.parameterIndex]):a;return o===a?i:hp(o,gp(i))}if(131072&zs(r).flags)return ze}}function y(n){if(r===ve||r===bt){var i=n.node,a=195===i.kind?i.expression.expression:i.left.expression;if(Ld(t,ip(a))){var o=p(n.antecedent),s=yp(o);if(256&e.getObjectFlags(s)){var c=s;if(195===i.kind)for(var u=0,l=i.arguments;u<l.length;u++){c=bp(c,l[u])}else my(Jy(i.left.argumentExpression),296)&&(c=bp(c,i.right));return c===s?o:hp(c,gp(o))}return o}}}function h(e){var t=p(e.antecedent),r=yp(t);if(131072&r.flags)return t;var n=0!=(32&e.flags),i=Dp(r),a=j(i,e.node,n);if(a===i)return t;var o=gp(t);return hp(o&&131072&a.flags?je:a,o)}function v(n){var i=n.switchStatement.expression,a=p(n.antecedent),o=yp(a);if(Ld(t,i))o=M(o,n.switchStatement,n.clauseStart,n.clauseEnd);else if(203===i.kind&&Ld(t,i.expression))o=function(t,r,n,i){var a=sp(r);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=Zg(_,d,l,u)}else o=a.slice(n,i),s=Zg(n,i,a,u);if(u)return _p(t,(function(e){return(Gd(e)&s)===s}));var p=Hd(Qc(o.map((function(e){return function(e,t){switch(t){case"function":return 1&e.flags?e:ut;case"object":return 2&e.flags?Qc([Ue,Ce]):e;default:return Jr.get(t)||e}}(t,e)}))),s);1048576&p.flags&&(p=qd(p,us(t)));return Hd(pp(t,(f=p,function(e){if(Al(f,e))return f;if(63176704&e.flags){var t=cs(e)||he;if(Al(f,t))return iu([e,f])}return e})),s);var f}(o,n.switchStatement,n.clauseStart,n.clauseEnd);else if(V&&(jd(i,t)?o=O(o,n.switchStatement,n.clauseStart,n.clauseEnd,(function(e){return!(163840&e.flags)})):203===i.kind&&jd(i.expression,t)&&(o=O(o,n.switchStatement,n.clauseStart,n.clauseEnd,(function(e){return!(131072&e.flags||128&e.flags&&"undefined"===e.value)})))),T(i,o))o=E(o,i,(function(e){return M(e,n.switchStatement,n.clauseStart,n.clauseEnd)}));else if(Kd(t,i))o=r;else if(n.clauseStart===n.clauseEnd&&ey(n.switchStatement))return ze;return hp(o,gp(a))}function b(t){for(var i=[],a=!1,o=!1,s=0,c=t.antecedents;s<c.length;s++){var u=c[s];if(!(4096&u.flags&&u.lock.locked)){var l=p(u),_=yp(l);if(_===r&&r===n)return _;e.pushIfUnique(i,_),cp(_,r)||(a=!0),gp(l)&&(o=!0)}}return hp(Tp(i,a?2:1),o)}function x(t){var n=Vd(t),i=Nr[n]||(Nr[n]=e.createMap()),a=d();if(!a)return r;var o=i.get(a);if(o)return o;for(var s=dr;s<pr;s++)if(Fr[s]===t&&Pr[s]===a&&wr[s].length)return hp(Tp(wr[s],1),!0);for(var c,u=[],l=!1,_=0,f=t.antecedents;_<f.length;_++){var m=f[_],g=void 0;if(c){Fr[pr]=t,Pr[pr]=a,wr[pr]=u,pr++,g=p(m),pr--;var y=i.get(a);if(y)return y}else g=c=p(m);var h=yp(g);if(e.pushIfUnique(u,h),cp(h,r)||(l=!0),h===r)break}var v=Tp(u,l?2:1);return gp(c)?hp(v,!0):(i.set(a,v),v)}function T(r,n){if(!(1048576&n.flags&&e.isAccessExpression(r)))return!1;var i=Rd(r);return void 0!==i&&(Ld(t,r.expression)&&Jd(n,i))}function E(e,t,r){var n=Rd(t);if(void 0===n)return e;var i=Xi(e,n),a=i&&r(i);return i===a?e:_p(e,(function(e){return wl(function(e,t){return Xi(e,t)||Mf(t)&&Es(e,1)||Es(e,0)||De}(e,n),a)}))}function C(e,n,i){return Ld(t,n)?Hd(e,i?4194304:8388608):(V&&i&&jd(n,t)&&(e=Hd(e,2097152)),T(n,r)?E(e,n,(function(e){return Hd(e,i?4194304:8388608)})):Kd(t,n)?r:e)}function k(t,r,n){if(1572864&t.flags||hu(t)){var i=e.escapeLeadingUnderscores(r.text);return _p(t,(function(e){return function(e,t,r){if(Ts(e,0))return!0;var n=vs(e,t);return n?!!(16777216&n.flags)||r:!r}(e,i,n)}))}return t}function F(n,i,a){switch(i.operatorToken.kind){case 62:return C(j(n,i.right,a),i.left,a);case 34:case 35:case 36:case 37:var o=i.operatorToken.kind,s=ip(i.left),c=ip(i.right);if(203===s.kind&&e.isStringLiteralLike(c))return I(n,s,o,c,a);if(203===c.kind&&e.isStringLiteralLike(s))return I(n,c,o,s,a);if(Ld(t,s))return w(n,o,c,a);if(Ld(t,c))return w(n,o,s,a);if(V&&(jd(s,t)?n=P(n,o,c,a):jd(c,t)&&(n=P(n,o,s,a))),T(s,r))return E(n,s,(function(e){return w(e,o,c,a)}));if(T(c,r))return E(n,c,(function(e){return w(e,o,s,a)}));if(Kd(t,s)||Kd(t,c))return r;break;case 97:return function(n,i,a){var o=ip(i.left);if(!Ld(t,o))return a&&V&&jd(o,t)?Hd(n,2097152):Bd(t,o)&&!function(t){return e.isAccessExpression(t)&&103===t.expression.kind&&!!(8&t.expression.flags)}(t)?r:n;var s,c=Ky(i.right);if(!Pl(c,ut))return n;var u=vs(c,"prototype");if(u){var l=wa(u);Qi(l)||(s=l)}if(Qi(n)&&(s===ct||s===ut))return n;if(!s){var _=xs(c,1);s=_.length?Qc(e.map(_,(function(e){return zs(Ys(e))}))):Ge}return L(n,s,a,Pl)}(n,i,a);case 96:var u=ip(i.right);if(e.isStringLiteralLike(i.left)&&Ld(t,u))return k(n,i.left,a);break;case 27:return j(n,i.right,a)}return n}function P(e,t,r,n){var i=34===t||35===t;return(34===t||36===t?n:!n)===!(Gd(Ky(r))&(i?262144:65536))?Hd(e,2097152):e}function w(e,t,r,n){if(1&e.flags)return e;35!==t&&37!==t||(n=!n);var i=Ky(r);if(2&e.flags&&n&&(36===t||37===t))return 67239932&i.flags?i:524288&i.flags?Ue:e;if(98304&i.flags)return V?Hd(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=_p(e,34===t?function(e){return Il(e,i)||(t=i,0!=(524&e.flags)&&0!=(28&t.flags));var t}:function(e){return Il(e,i)});return 131072&a.flags?e:mp(a,i)}if(E_(i)){var o=Vu(i);return _p(e,(function(e){return Vu(e)!==o}))}return e}function I(e,n,i,a,o){35!==i&&37!==i||(o=!o);var s=ip(n.expression);if(!Ld(t,s))return V&&jd(s,t)&&o===("undefined"!==a.text)?Hd(e,2097152):Bd(t,s)?r:e;if(1&e.flags&&"function"===a.text)return e;var c=o?D.get(a.text)||128:S.get(a.text)||32768;return Hd(o?pp(e,(function(e){if(2&e.flags&&"object"===a.text)return Qc([Ue,Ce]);var t="function"===a.text?ut:Jr.get(a.text);if(t){if(Al(e,t))return e;if(Al(t,e))return t;if(63176704&e.flags){var r=cs(e)||he;if(Al(t,r))return iu([e,t])}}return e})):e,c)}function O(t,r,n,i,a){return n!==i&&e.every(op(r).slice(n,i),a)?Hd(t,2097152):t}function M(t,r,n,i){var a=op(r);if(!a.length)return t;var o=a.slice(n,i),s=n===i||e.contains(o,Be);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(Ue)}}return Qc(void 0===c?o:c)}var _=Qc(o),d=131072&_.flags?Be:mp(_p(t,(function(e){return Il(_,e)})),_);if(!s)return d;var p=_p(t,(function(t){return!(E_(t)&&e.contains(a,Vu(t)))}));return 131072&d.flags?p:Qc([d,p])}function L(e,t,r,n){if(!r)return _p(e,(function(e){return!n(e,t)}));if(1048576&e.flags){var i=_p(e,(function(e){return n(e,t)}));if(!(131072&i.flags))return i}return Al(t,e)?t:Fl(e,t)?e:Fl(t,e)?t:iu([e,t])}function R(r,n,i){if(function(e,t){if(e.arguments)for(var r=0,n=e.arguments;r<n.length;r++){if(Ud(t,n[r]))return!0}return!(193!==e.expression.kind||!Ud(t,e.expression.expression))}(n,t)){var a=i||!e.isCallChain(n)?Np(n):void 0,o=a&&Js(a);if(o&&(0===o.kind||1===o.kind))return B(r,o,n,i)}return r}function B(n,i,a,o){if(i.type&&(!Qi(n)||i.type!==ct&&i.type!==ut)){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(Ld(t,s))return L(n,i.type,o,Al);if(V&&o&&jd(s,t)&&!(65536&Gd(i.type)))return Hd(n,2097152);if(Bd(t,s))return r}}return n}function j(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(Ld(t,n))return Hd(e,i?2097152:262144);if(T(n,r))return E(e,n,(function(e){return Hd(e,i?2097152:262144)}));if(Kd(t,n))return r;return e}(n,i,a);switch(i.kind){case 75:case 103:case 101:case 193:case 194:return C(n,i,a);case 195:return R(n,i,a);case 199:return j(n,i.expression,a);case 208:return F(n,i,a);case 206:if(53===i.operator)return j(n,i.operand,!a)}return n}}function Mp(t){return e.findAncestor(t.parent,(function(t){return e.isFunctionLike(t)&&!e.getImmediatelyInvokedFunctionExpression(t)||249===t.kind||288===t.kind||158===t.kind}))}function Lp(t){var r=e.getRootDeclaration(t.valueDeclaration).parent,n=dn(r);return 8388608&n.flags||(n.flags|=8388608,function(t){return!!e.findAncestor(t.parent,(function(t){return e.isFunctionLike(t)&&!!(8388608&dn(t).flags)}))}(r)||Rp(r)),t.isAssigned||!1}function Rp(t){if(75===t.kind){if(e.isAssignmentTarget(t)){var r=Od(t);r.valueDeclaration&&155===e.getRootDeclaration(r.valueDeclaration).kind&&(r.isAssigned=!0)}}else e.forEachChild(t,Rp)}function Bp(e){return 3&e.flags&&0!=(2&om(e))&&wa(e)!==bt}function jp(e){var t=e.parent;return 193===t.kind||195===t.kind&&t.expression===e||194===t.kind&&t.expression===e||190===t.kind&&t.name===e&&!!t.initializer}function Kp(e){return 58982400&e.flags&&fy(cs(e)||De,98304)}function Jp(e,t){return e&&jp(t)&&up(e,Kp)?pp(rd(e),us):e}function zp(t,r){In(t,111551)&&!Md(r)&&(K.preserveConstEnums&&function(t){return!!e.findAncestor(t,(function(t){return t.parent&&e.isExportAssignment(t.parent)&&t.parent.expression===t&&e.isEntityNameExpression(t)}))}(r)||!Cb(Mn(t)))&&Rn(t)}function Up(t){var r=Od(t);if(r===ge)return xe;if(r===ie){var n=e.getContainingFunction(t);return J<2&&(201===n.kind?Xr(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)&&Xr(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)),dn(n).flags|=8192,wa(r)}t.parent&&e.isPropertyAccessExpression(t.parent)&&t.parent.expression===t||zp(r,t);var i=si(r),a=i.valueDeclaration;if(32&i.flags)if(244===a.kind&&e.nodeIsDecorated(a))for(n=e.getContainingClass(t);void 0!==n;){if(n===a&&n.name!==t){dn(a).flags|=16777216,dn(t).flags|=33554432;break}n=e.getContainingClass(n)}else if(213===a.kind)for(n=e.getThisContainer(t,!1);288!==n.kind;){if(n.parent===a){158===n.kind&&e.hasModifier(n,32)&&(dn(a).flags|=16777216,dn(t).flags|=33554432);break}n=e.getThisContainer(n,!1)}!function(t,r){if(J>=2||0==(34&r.flags)||e.isSourceFile(r.valueDeclaration)||278===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)&&e.getAncestor(r.valueDeclaration,242).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=dn(c);u.flags|=131072;var l=u.capturedBlockScopeBindings||(u.capturedBlockScopeBindings=[]);e.pushIfUnique(l,r),c===n.initializer&&(s=!1)}}s&&(dn(a).flags|=65536)}229===n.kind&&e.getAncestor(r.valueDeclaration,242).parent===n&&function(t,r){var n=t;for(;199===n.parent.kind;)n=n.parent;var i=!1;if(e.isAssignmentTarget(n))i=!0;else if(206===n.parent.kind||207===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)&&(dn(r.valueDeclaration).flags|=4194304),dn(r.valueDeclaration).flags|=524288}i&&(dn(r.valueDeclaration).flags|=262144)}(t,r);var o=Jp(wa(i),t),s=e.getAssignmentTargetKind(t);if(s){if(!(3&i.flags||e.isInJSFile(t)&&512&i.flags))return Xr(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,Pi(r)),xe;if(uy(i))return 3&i.flags?Xr(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,Pi(r)):Xr(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Pi(r)),xe}var c=2097152&i.flags;if(3&i.flags){if(1===s)return o}else{if(!c)return o;a=e.find(r.declarations,I)}if(!a)return o;for(var u=155===e.getRootDeclaration(a).kind,l=Mp(a),_=Mp(t),d=_!==l,p=t.parent&&t.parent.parent&&e.isSpreadAssignment(t.parent)&&Zd(t.parent.parent),f=134217728&r.flags;_!==l&&(200===_.kind||201===_.kind||e.isObjectLiteralOrClassExpressionMethod(_))&&(Bp(i)||u&&!Lp(i));)_=Mp(_);var m=u||c||d||p||f||e.isBindingElement(a)||o!==ve&&o!==bt&&(!V||0!=(16387&o.flags)||Md(t)||261===t.parent.kind)||217===t.parent.kind||241===a.kind&&a.exclamationToken||8388608&a.flags,g=Op(t,o,m?u?function(e,t){return V&&155===t.kind&&t.initializer&&32768&R_(e)&&!(32768&R_(zy(t.initializer)))?Hd(e,524288):e}(o,a):o:o===ve||o===bt?Se:z_(o),_,!m);if(Ep(t)||o!==ve&&o!==bt){if(!m&&!(32768&R_(o))&&32768&R_(g))return Xr(t,e.Diagnostics.Variable_0_is_used_before_being_assigned,Pi(r)),o}else if(g===ve||g===bt)return H&&(Xr(e.getNameOfDeclaration(a),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Pi(r),Ii(g)),Xr(t,e.Diagnostics.Variable_0_implicitly_has_an_1_type,Pi(r),Ii(g))),Jh(g);return s?k_(g):g}function Vp(e,t){(dn(e).flags|=2,158===t.kind||161===t.kind)?dn(t.parent).flags|=4:dn(t).flags|=4}function qp(t){return e.isSuperCall(t)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,qp)}function Wp(e){var t=dn(e);return void 0===t.hasSuperCall&&(t.superCall=qp(e.body),t.hasSuperCall=!!t.superCall),t.superCall}function Gp(e){return qa(ro(ri(e)))===ke}function Hp(t,r,n){var i=r.parent;if(e.getClassExtendsHeritageElement(i)&&!Gp(i)){var a=Wp(r);(!a||a.end>t.pos)&&Xr(t,n)}}function Yp(t){var r=e.getThisContainer(t,!0),n=!1;switch(161===r.kind&&Hp(t,r,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),201===r.kind&&(r=e.getThisContainer(r,!1),n=!0),r.kind){case 248:Xr(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 247:Xr(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 161:Qp(t,r)&&Xr(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 158:case 157:e.hasModifier(r,32)&&Xr(t,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 153:Xr(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}n&&J<2&&Vp(t,r);var i=Xp(t,!0,r);if(Y){var a=wa(re);if(i===a&&n)Xr(t,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!i){var o=Xr(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(r)){var s=Xp(r);s&&s!==a&&e.addRelatedInfo(o,e.createDiagnosticForNode(r,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return i||he}function Xp(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)&&(!af(t)||e.getThisParameter(n))){var a=function(t){if(200===t.kind&&e.isBinaryExpression(t.parent)&&3===e.getAssignmentDeclarationKind(t.parent))return t.parent.left.expression.expression;if(160===t.kind&&192===t.parent.kind&&e.isBinaryExpression(t.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent))return t.parent.parent.left.expression;if(200===t.kind&&279===t.parent.kind&&192===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(200===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=zy(a).symbol;if(o&&o.members&&16&o.flags)return Op(t,ro(o).thisType)}else if(i&&(200===n.kind||243===n.kind)&&e.getJSDocClassTag(n)){return Op(t,ro(ti(n.symbol)).thisType)}var s=Ea(n)||tf(n);if(s)return Op(t,s)}if(e.isClassLike(n.parent)){var c,u=ri(n.parent);return Op(t,c=e.hasModifier(n,32)?wa(u):ro(u).thisType)}if(i&&((c=function(t){var r=e.getJSDocType(t);if(r&&298===r.kind){var n=r;if(n.parameters.length>0&&n.parameters[0].name&&"this"===n.parameters[0].name.escapedText)return Yu(n.parameters[0].type)}var i=e.getJSDocThisTag(t);if(i&&i.typeExpression)return Yu(i.typeExpression)}(n))&&c!==xe))return Op(t,c);if(e.isSourceFile(n)){if(n.commonJsModuleIndicator){var l=ri(n);return l&&wa(l)}if(r)return wa(re)}}function Qp(t,r){return!!e.findAncestor(t,(function(t){return e.isFunctionLikeDeclaration(t)?"quit":155===t.kind&&t.parent===r}))}function $p(t){var r=195===t.parent.kind&&t.parent.expression===t,n=e.getSuperContainer(t,!0),i=!1;if(!r)for(;n&&201===n.kind;)n=e.getSuperContainer(n,!0),i=J<2;var a=0;if(!function(t){if(!t)return!1;if(r)return 161===t.kind;if(e.isClassLike(t.parent)||192===t.parent.kind)return e.hasModifier(t,32)?160===t.kind||159===t.kind||162===t.kind||163===t.kind:160===t.kind||159===t.kind||162===t.kind||163===t.kind||158===t.kind||157===t.kind||161===t.kind;return!1}(n)){var o=e.findAncestor(t,(function(e){return e===n?"quit":153===e.kind}));return o&&153===o.kind?Xr(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):r?Xr(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):n&&n.parent&&(e.isClassLike(n.parent)||192===n.parent.kind)?Xr(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):Xr(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),xe}if(r||161!==n.kind||Hp(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,dn(t).flags|=a,160===n.kind&&e.hasModifier(n,256)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?dn(n).flags|=4096:dn(n).flags|=2048),i&&Vp(t.parent,n),192===n.parent.kind)return J<2?(Xr(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),xe):he;var s=n.parent;if(!e.getClassExtendsHeritageElement(s))return Xr(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),xe;var c=ro(ri(s)),u=c&&Wa(c)[0];return u?161===n.kind&&Qp(t,n)?(Xr(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),xe):512===a?qa(c):Do(u,c.thisType):xe}function Zp(t){return 4&e.getObjectFlags(t)&&t.target===ht?_c(t)[0]:void 0}function ef(t){return pp(t,(function(t){return 2097152&t.flags?e.forEach(t.types,Zp):Zp(t)}))}function tf(t){if(201!==t.kind){if(Sl(t)){var r=Nf(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 160!==e.kind&&162!==e.kind&&163!==e.kind||192!==e.parent.kind?200===e.kind&&279===e.parent.kind?e.parent.parent:void 0:e.parent}(t);if(a){for(var o=hf(a),s=a,c=o;c;){var u=ef(c);if(u)return gl(u,fd(Df(a)));if(279!==s.parent.kind)break;c=hf(s=s.parent.parent)}return rd(o?U_(o):ky(a))}var l=t.parent;if(208===l.kind&&62===l.operatorToken.kind){var _=l.left;if(193===_.kind||194===_.kind){var d=_.expression;if(i&&e.isIdentifier(d)){var p=e.getSourceFileOfNode(l);if(p.commonJsModuleIndicator&&Od(d)===p.symbol)return}return rd(ky(d))}}}}}function rf(t,r){var n=t.parent;if(Sl(n)){var i=e.getImmediatelyInvokedFunctionExpression(n);if(i&&i.arguments){var a=rg(i),o=n.parameters.indexOf(t);if(t.dotDotDotToken)return Xm(a,o,a.length,he,void 0);var s=dn(i),c=s.resolvedSignature;s.resolvedSignature=$t;var u=o<a.length?N_(zy(a[o])):t.initializer?void 0:Te;return s.resolvedSignature=c,u}var l=Nf(n);if(l){if(r){if(ay(n),Qi(u=wa(ti(n.symbol))))return u;l=xs(u,0)[0]}var _=n.parameters.indexOf(t)-(e.getThisParameter(n)?1:0);return t.dotDotDotToken&&e.lastOrUndefined(n.parameters)===t?Rg(l,_):Lg(l,_)}}}function nf(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return Yu(r);switch(t.kind){case 155:return rf(t,!1);case 190:return function(t){var r=t.parent.parent,n=t.propertyName||t.name,i=nf(r);if(i&&!e.isBindingPattern(n)&&!Zi(n)){var a=ou(n);if(_o(a)){var o=yo(a);return Xi(i,o)}}}(t)}}function af(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 of(t,r){var n=!!(2&e.getFunctionFlags(r)),i=sf(r);if(i)return bv(t,i,n)||void 0}function sf(e){var t=Us(e);if(t)return t;var r=kf(e);return r&&!Vs(r)?zs(r):void 0}function cf(e,t,r){var n=rg(e).indexOf(t);return-1===n?void 0:uf(e,n,r)}function uf(t,r,n){var i=dn(t).resolvedSignature===er?er:Dg(t);if(e.isJsxOpeningLikeElement(t)&&0===r)return Sf(i,t);if(n&&4&n&&i.target){var a=Qs(i.target);return Io(Mg(i,r),Mg(a,r))}return Mg(i,r)}function lf(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 Yu(a);if(e.isIdentifier(i.expression)){var o=i.expression,s=gn(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=_f(Yu(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=Yu(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=Yp(_.expression),p=e.getElementOrPropertyAccessName(_);return void 0!==p&&d&&_f(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?Ky(i):s;case 56:case 60:var c=xf(n,r);return t===o&&(c&&c.pattern||!c&&!e.isDefaultedExpandoInitializer(n))?Ky(i):c;case 55:case 27:return t===o?xf(n,r):void 0;default:return}}function _f(t,r){return pp(t,(function(t){if(Xo(t)){var n=zo(t),i=cs(n)||n,a=Wu(e.unescapeLeadingUnderscores(r));if(Fl(a,i))return Du(t,a)}else if(3670016&t.flags){var o=vs(t,r);if(o)return wa(o);if(w_(t)){var s=I_(t);if(s&&Mf(r)&&+r>=0)return s}return Mf(r)&&df(t,1)||df(t,0)}}),!0)}function df(e,t){return pp(e,(function(e){return Ss(e,t)}),!0)}function pf(e,t){var r=hf(e.parent,t);if(r){if(!go(e)){var n=_f(r,ri(e).escapedName);if(n)return n}return If(e.name)&&df(r,1)||df(r,0)}}function ff(e,t){return e&&(_f(e,""+t)||ev(1,e,Se,void 0,!1))}function mf(t){var r=t.parent;return e.isJsxAttributeLike(r)?xf(t):e.isJsxElement(r)?function(e,t){var r=hf(e.openingElement.tagName),n=Xf(Hf(e));if(r&&!Qi(r)&&n&&""!==n){var i=Jl(e.children),a=i.indexOf(t),o=_f(r,n);return o&&(1===i.length?o:pp(o,(function(e){return b_(e)?Su(e,Wu(a)):e}),!0))}}(r,t):void 0}function gf(t){if(e.isJsxAttribute(t)){var r=hf(t.parent);if(!r||Qi(r))return;return _f(r,t.name.escapedText)}return xf(t.parent)}function yf(e){switch(e.kind){case 10:case 8:case 9:case 14:case 105:case 90:case 99:case 75:case 145:return!0;case 193:case 199:return yf(e.expression);case 274:return!e.expression||yf(e.expression)}return!1}function hf(t,r){var n=vf(e.isObjectLiteralMethod(t)?function(t,r){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!(16777216&t.flags))return pf(t,r)}(t,r):xf(t,r),t,r);if(n&&!(r&&2&r&&8650752&n.flags)){var i=pp(n,ms,!0);if(1048576&i.flags){if(e.isObjectLiteralExpression(t))return function(t,r){return e_(r,e.map(e.filter(t.properties,(function(e){return!!e.symbol&&279===e.kind&&yf(e.initializer)&&Jd(r,e.symbol.escapedName)})),(function(e){return[function(){return zy(e.initializer)},e.symbol.escapedName]})),Fl,r)}(t,i);if(e.isJsxAttributes(t))return function(t,r){return e_(r,e.map(e.filter(t.properties,(function(e){return!!e.symbol&&271===e.kind&&Jd(r,e.symbol.escapedName)&&(!e.initializer||yf(e.initializer))})),(function(e){return[e.initializer?function(){return zy(e.initializer)}:function(){return Ie},e.symbol.escapedName]})),Fl,r)}(t,i)}return i}}function vf(t,r,n){if(t&&fy(t,63176704)){var i=Df(r);if(i&&e.some(i.inferences,Ry)){if(n&&1&n)return bf(t,i.nonFixingMapper);if(i.returnMapper)return bf(t,i.returnMapper)}}return t}function bf(t,r){return 63176704&t.flags?gl(t,r):1048576&t.flags?Qc(e.map(t.types,(function(e){return bf(e,r)})),0):2097152&t.flags?iu(e.map(t.types,(function(e){return bf(e,r)}))):t}function xf(t,r){if(!(16777216&t.flags)){if(t.contextualType)return t.contextualType;var n=t.parent;switch(n.kind){case 241:case 155:case 158:case 157:case 190:return function(t){var r=t.parent;if(e.hasInitializer(r)&&t===r.initializer){var n=nf(r);if(n)return n;if(e.isBindingPattern(r.name))return ya(r.name,!0,!1)}}(t);case 201:case 234:return function(t){var r=e.getContainingFunction(t);if(r){var n=e.getFunctionFlags(r);if(1&n)return;var i=sf(r);if(i){if(2&n){var a=uh(i);return a&&Qc([a,Hg(a)])}return i}}}(t);case 211:return function(t){var r=e.getContainingFunction(t);if(r){var n=e.getFunctionFlags(r),i=sf(r);if(i)return t.asteriskToken?i:bv(0,i,0!=(2&n))}}(n);case 205:return function(e){var t=xf(e);if(t){var r=dh(t);return r&&Qc([r,Hg(r)])}}(n);case 195:if(95===n.expression.kind)return Ne;case 196:return cf(n,t,r);case 198:case 216:return e.isConstTypeReference(n.type)?void 0:Yu(n.type);case 208:return lf(t,r);case 279:case 280:return pf(n,r);case 281:return hf(n.parent,r);case 191:var i=n;return ff(hf(i,r),e.indexOfNode(i.elements,t));case 209:return function(e,t){var r=e.parent;return e===r.whenTrue||e===r.whenFalse?xf(r,t):void 0}(t,r);case 220:return e.Debug.assert(210===n.parent.kind),function(e,t){if(197===e.parent.kind)return cf(e.parent,t)}(n.parent,t);case 199:var a=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0;return a?Yu(a.typeExpression.type):xf(n,r);case 274:return mf(n);case 271:case 273:return gf(n);case 266:case 265:return function(t){if(e.isJsxOpeningElement(t)&&t.parent.contextualType)return t.parent.contextualType;return uf(t,0)}(n)}}}function Df(t){var r=e.findAncestor(t,(function(e){return!!e.inferenceContext}));return r&&r.inferenceContext}function Sf(t,r){return 0!==$m(r)?function(e,t){var r=Vg(e,De);r=Tf(t,Hf(t),r);var n=Wf(C.IntrinsicAttributes,t);n!==xe&&(r=Io(n,r));return r}(t,r):function(t,r){var n=Hf(r),i=(o=n,Yf(C.ElementAttributesPropertyNameContainer,o)),a=void 0===i?Vg(t,De):""===i?zs(t):function(e,t){if(e.unionSignatures){for(var r=[],n=0,i=e.unionSignatures;n<i.length;n++){var a=zs(i[n]);if(Qi(a))return a;var o=Xi(a,t);if(!o)return;r.push(o)}return iu(r)}var s=zs(e);return Qi(s)?s:Xi(s,t)}(t,i);var o;if(!a)return i&&e.length(r.attributes.properties)&&Xr(r,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(i)),De;if(Qi(a=Tf(r,n,a)))return a;var s=a,c=Wf(C.IntrinsicClassAttributes,r);if(c!==xe){var u=ja(c.symbol),l=zs(t);s=Io(u?cc(c,Ms([l],u,Os(u),e.isInJSFile(r))):c,s)}var _=Wf(C.IntrinsicAttributes,r);return _!==xe&&(s=Io(_,s)),s}(t,r)}function Tf(t,r,n){var i,a=(i=r)&&fn(i.exports,C.LibraryManagedAttributes,788968);if(a){var o=ro(a),s=function(e){if(zf(e.tagName))return $s(vg(e,t=$f(e)));var t,r=ky(e.tagName);return 128&r.flags?(t=Qf(r,e))?$s(vg(e,t)):xe:r}(t);if(e.length(o.typeParameters)>=2)return cc(o,c=Ms([s,n],o.typeParameters,2,e.isInJSFile(t)));if(e.length(o.aliasTypeArguments)>=2){var c=Ms([s,n],o.aliasTypeArguments,2,e.isInJSFile(t));return fc(o.aliasSymbol,c)}}return n}function Ef(t,r){var n=xs(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||As(i))break}r.parameters.length&&e.parameterIsThisKeyword(r.parameters[0])&&n--;return!Kg(t)&&Bg(t)<n}(i,r))return i}}function Cf(e){return 200===e.kind||201===e.kind}function kf(t){return Cf(t)||e.isObjectLiteralMethod(t)?Nf(t):void 0}function Nf(t){e.Debug.assert(160!==t.kind||e.isObjectLiteralMethod(t));var r=Rs(t);if(r)return r;var n=hf(t,1);if(n){if(!(1048576&n.flags))return Ef(n,t);for(var i,a=0,o=n.types;a<o.length;a++){var s=Ef(o[a],t);if(s)if(i){if(!m_(i[0],s,!1,!0,!0,Cl))return;i.push(s)}else i=[s]}return i?1===i.length?i[0]:Co(i[0],i):void 0}}function Af(e){return 190===e.kind&&!!e.initializer||208===e.kind&&62===e.operatorToken.kind}function Ff(t,r,n){for(var i=t.elements,a=i.length,o=!1,s=[],c=e.isAssignmentTarget(t),u=hf(t),l=Py(t),_=0;_<a;_++){var d=i[_];if(c&&212===d.kind){var p=zy(d.expression,r,n),f=Es(p,1)||ev(65,p,Se,void 0,!1);f&&s.push(f)}else{var m=wy(d,r,ff(u,_),n);s.push(m)}_<a-1&&212===d.kind&&(o=!0)}if(!o){var g=a>0&&212===i[a-1].kind,y=a-(g?1:0),h=void 0;if(c&&y>0)return(m=uc(Uc(s,y,g))).pattern=t,m;if(h=wf(s,u,g,a,l))return Pf(h);if(n)return Pf(Uc(s,y,g))}return Pf(jc(s.length?Qc(s,2):V?Je:Te,l))}function Pf(t){if(!(4&e.getObjectFlags(t)))return t;var r=t.literalType;return r||((r=t.literalType=uc(t)).objectFlags|=589824),r}function wf(e,t,r,n,i){if(void 0===n&&(n=e.length),void 0===i&&(i=!1),i||t&&up(t,D_))return Uc(e,n-(r?1:0),r,i)}function If(e){switch(e.kind){case 153:return function(e){return my(Lf(e),296)}(e);case 75:return Mf(e.escapedText);case 8:case 10:return Mf(e.text);default:return!1}}function Of(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function Mf(e){return(+e).toString()===e}function Lf(t){var r=dn(t.expression);return r.resolvedType||(r.resolvedType=zy(t.expression),98304&r.resolvedType.flags||!my(r.resolvedType,12716)&&!Fl(r.resolvedType,Ve)?Xr(t,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any):Lm(t.expression,r.resolvedType,!0)),r.resolvedType}function Rf(e,t,r,n){for(var i=[],a=0;a<r.length;a++)(0===n||If(e.properties[a+t].name))&&i.push(wa(r[a]));return tc(i.length?Qc(i,2):Se,Py(e))}function Bf(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var r=_n(t);if(!r.immediateTarget){var n=En(t);if(!n)return e.Debug.fail();r.immediateTarget=wn(n,!0)}return r.immediateTarget}function jf(t,r){var n,i=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(281!==o.kind){var s=o.name;if(153===s.kind&&ax(s),280===o.kind&&!r&&o.objectAssignmentInitializer)return vx(o.equalsToken,e.Diagnostics.can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment);if(o.modifiers)for(var c=0,u=o.modifiers;c<u.length;c++){var l=u[c];125===l.kind&&160===o.kind||vx(l,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(l))}var _=void 0;switch(o.kind){case 280:cx(o.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);case 279:sx(o.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional),8===s.kind&&Dx(s),_=4;break;case 160:_=8;break;case 162:_=1;break;case 163:_=2;break;default:throw e.Debug.assertNever(o,"Unexpected syntax kind:"+o.kind)}var d=e.getPropertyNameForPropertyNameNode(s);if(void 0!==d){var p=n.get(d);if(p)if(12&_&&12&p)vx(s,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(s));else{if(!(3&_&&3&p))return vx(s,e.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(3===p||_===p)return vx(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 vx(o.expression,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern)}}}(t,i);var a=[],o=Ge,s=hf(t),c=s&&s.pattern&&(188===s.pattern.kind||192===s.pattern.kind),u=Py(t),l=u?8:0,_=e.isInJSFile(t)&&!e.isInJsonFile(t),d=e.getJSDocEnumTag(t),p=!s&&_&&!d,f=Q,m=!1,g=!1,y=!1;n=e.createSymbolTable();for(var h=0,v=0;v<t.properties.length;v++){var b=t.properties[v],x=ri(b),D=b.name&&153===b.name.kind&&!e.isWellKnownSymbolSyntactically(b.name.expression)?Lf(b.name):void 0;if(279===b.kind||280===b.kind||e.isObjectLiteralMethod(b)){var S=279===b.kind?Iy(b,r):280===b.kind?wy(b.name,r):Oy(b,r);if(_){var T=aa(b);T?(Ol(S,T,b),S=T):d&&d.typeExpression&&Ol(S,Yu(d.typeExpression),b)}f|=1835008&e.getObjectFlags(S);var E=D&&_o(D)?D:void 0,C=E?en(4|x.flags,yo(E),4096|l):en(4|x.flags,x.escapedName,l);if(E&&(C.nameType=E),i)(279===b.kind&&Af(b.initializer)||280===b.kind&&b.objectAssignmentInitializer)&&(C.flags|=16777216);else if(c&&!(512&e.getObjectFlags(s))){var k=vs(s,x.escapedName);k?C.flags|=16777216&k.flags:K.suppressExcessPropertyErrors||Ts(s,0)||Xr(b.name,e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Pi(x),Ii(s))}C.declarations=x.declarations,C.parent=x.parent,x.valueDeclaration&&(C.valueDeclaration=x.valueDeclaration),C.type=S,C.target=x,x=C}else{if(281===b.kind){if(J<2&&Gb(b,2),a.length>0&&(o=Bu(o,F(),t.symbol,f,u),a=[],n=e.createSymbolTable(),g=!1,y=!1),!Kf(S=zy(b.expression)))return Xr(b,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),xe;o=Bu(o,S,t.symbol,f,u),h=v+1;continue}e.Debug.assert(162===b.kind||163===b.kind),Yv(b)}!D||8576&D.flags?n.set(x.escapedName,x):Fl(D,Ve)&&(Fl(D,Ae)?y=!0:g=!0,i&&(m=!0)),a.push(x)}if(c)for(var N=0,A=ts(s);N<A.length;N++){C=A[N];n.get(C.escapedName)||o&&vs(o,C.escapedName)||(16777216&C.flags||Xr(C.valueDeclaration||C.bindingElement,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),n.set(C.escapedName,C),a.push(C))}return o!==Ge?(a.length>0&&(o=Bu(o,F(),t.symbol,f,u)),o):F();function F(){var r=g?Rf(t,h,a,0):void 0,o=y?Rf(t,h,a,1):void 0,s=hi(t.symbol,n,e.emptyArray,e.emptyArray,r,o);return s.objectFlags|=524416|f,p&&(s.objectFlags|=16384),m&&(s.objectFlags|=512),i&&(s.pattern=t),s}}function Kf(t){if(63176704&t.flags){var r=cs(t);if(void 0!==r)return Kf(r)}return!!(126615553&t.flags||117632&R_(t)&&Kf(B_(t))||3145728&t.flags&&e.every(t.types,Kf))}function Jf(t){return!e.stringContains(t,"-")}function zf(t){return 75===t.kind&&e.isIntrinsicJsxName(t.escapedText)}function Uf(e,t){return e.initializer?wy(e.initializer,t):Ie}function Vf(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(Ne):r.push(wy(a,t))}return r}function qf(t,r){return function(t,r){for(var n,i=t.attributes,a=e.createSymbolTable(),o=He,s=!1,c=!1,u=4096,l=Xf(Hf(t)),_=0,d=i.properties;_<d.length;_++){var p=d[_],f=p.symbol;if(e.isJsxAttribute(p)){var m=Uf(p,r);u|=1835008&e.getObjectFlags(m);var g=en(33554436|f.flags,f.escapedName);g.declarations=f.declarations,g.parent=f.parent,f.valueDeclaration&&(g.valueDeclaration=f.valueDeclaration),g.type=m,g.target=f,a.set(g.escapedName,g),p.name.escapedText===l&&(c=!0)}else{e.Debug.assert(273===p.kind),a.size>0&&(o=Bu(o,S(),i.symbol,u,!1),a=e.createSymbolTable()),Qi(m=ky(p.expression,r))&&(s=!0),Kf(m)?o=Bu(o,m,i.symbol,u,!1):n=n?iu([n,m]):m}}s||a.size>0&&(o=Bu(o,S(),i.symbol,u,!1));var y=264===t.parent.kind?t.parent:void 0;if(y&&y.openingElement===t&&y.children.length>0){var h=Vf(y,r);if(!s&&l&&""!==l){c&&Xr(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(l));var v=hf(t.attributes),b=v&&_f(v,l),x=en(33554436,l);x.type=1===h.length?h[0]:wf(h,b,!1)||jc(Qc(h)),x.valueDeclaration=e.createPropertySignature(void 0,e.unescapeLeadingUnderscores(l),void 0,void 0,void 0),x.valueDeclaration.parent=i,x.valueDeclaration.symbol=x;var D=e.createSymbolTable();D.set(l,x),o=Bu(o,hi(i.symbol,D,e.emptyArray,e.emptyArray,void 0,void 0),i.symbol,u,!1)}}return s?he:n&&o!==He?iu([n,o]):n||(o===He?S():o);function S(){u|=Q;var t=hi(i.symbol,a,e.emptyArray,e.emptyArray,void 0,void 0);return t.objectFlags|=524416|u,t}}(t.parent,r)}function Wf(e,t){var r=Hf(t),n=r&&Qn(r),i=n&&fn(n,e,788968);return i?ro(i):xe}function Gf(t){var r=dn(t);if(!r.resolvedSymbol){var n=Wf(C.IntrinsicElements,t);if(n!==xe){if(!e.isIdentifier(t.tagName))return e.Debug.fail();var i=vs(n,t.tagName.escapedText);return i?(r.jsxFlags|=1,r.resolvedSymbol=i):Es(n,0)?(r.jsxFlags|=2,r.resolvedSymbol=n.symbol):(Xr(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(t.tagName),"JSX."+C.IntrinsicElements),r.resolvedSymbol=ge)}return H&&Xr(t,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(C.IntrinsicElements)),r.resolvedSymbol=ge}return r.resolvedSymbol}function Hf(e){var t=e&&dn(e);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||!1!==t.jsxNamespace){var r=Yr(e),n=gn(e,r,1920,void 0,r,!1);if(n){var i=On(fn(Qn(On(n)),C.JSX,1920));if(i)return t&&(t.jsxNamespace=i),i;t&&(t.jsxNamespace=!1)}}return Ac(C.JSX,1920,void 0)}function Yf(t,r){var n=r&&fn(r.exports,t,788968),i=n&&ro(n),a=i&&ts(i);if(a){if(0===a.length)return"";if(1===a.length)return a[0].escapedName;a.length>1&&Xr(n.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}function Xf(e){return Yf(C.ElementChildrenAttributeNameContainer,e)}function Qf(t,r){var n=Wf(C.IntrinsicElements,r);if(n!==xe){var i=t.value,a=vs(n,e.escapeLeadingUnderscores(i));if(a)return wa(a);var o=Es(n,0);return o||void 0}return he}function $f(t){e.Debug.assert(zf(t.tagName));var r=dn(t);if(!r.resolvedJsxElementAttributesType){var n=Gf(t);return 1&r.jsxFlags?r.resolvedJsxElementAttributesType=wa(n):2&r.jsxFlags?r.resolvedJsxElementAttributesType=rc(n,0).type:r.resolvedJsxElementAttributesType=xe}return r.resolvedJsxElementAttributesType}function Zf(e){var t=Wf(C.ElementClass,e);if(t!==xe)return t}function em(e){return Wf(C.Element,e)}function tm(e){var t=em(e);if(t)return Qc([t,Ce])}function rm(t){var r,n=e.isJsxOpeningLikeElement(t);n&&function(t){tx(t,t.typeArguments);for(var r=e.createUnderscoreEscapedMap(),n=0,i=t.attributes.properties;n<i.length;n++){var a=i[n];if(273!==a.kind){var o=a.name,s=a.initializer;if(r.get(o.escapedText))return vx(o,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(r.set(o.escapedText,!0),s&&274===s.kind&&!s.expression)return vx(s,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}}(t),r=t,0===(K.jsx||0)&&Xr(r,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===em(r)&&H&&Xr(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist);var i=jr&&2===K.jsx?e.Diagnostics.Cannot_find_name_0:void 0,a=Yr(t),o=gn(n?t.tagName:t,a,111551,i,a,!0);if(o&&(o.isReferenced=67108863,2097152&o.flags&&Rn(o)),n){var s=Dg(t);!function(t,r,n){if(1===t)(i=tm(n))&&Zl(r,i,Vr,n,e.Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements);else if(0===t){(a=Zf(n))&&Zl(r,a,Vr,n,e.Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements)}else{var i=tm(n),a=Zf(n);if(!i||!a)return;Zl(r,Qc([i,a]),Vr,n,e.Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements)}}($m(t),zs(s),t)}}function nm(e,t,r){if(524288&e.flags){var n=Qo(e);if(n.stringIndexInfo||n.numberIndexInfo&&Mf(t)||Zo(e,t)||r&&!Jf(t))return!0}else if(3145728&e.flags&&im(e))for(var i=0,a=e.types;i<a.length;i++){if(nm(a[i],t,r))return!0}return!1}function im(t){return!!(524288&t.flags&&!(512&e.getObjectFlags(t))||67108864&t.flags||1048576&t.flags&&e.some(t.types,im)||2097152&t.flags&&e.every(t.types,im))}function am(t,r){if(function(t){if(t.expression&&e.isCommaSequence(t.expression))vx(t.expression,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}(t),t.expression){var n=zy(t.expression,r);return t.dotDotDotToken&&n!==he&&!y_(n)&&Xr(t,e.Diagnostics.JSX_spread_child_must_be_an_array_type),n}return xe}function om(t){return t.valueDeclaration?e.getCombinedNodeFlags(t.valueDeclaration):0}function sm(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 cm(t,r,n,i){var a,o=e.getDeclarationModifierFlagsFromSymbol(i),s=152===t.kind?t.right:187===t.kind?t:t.name;if(1024&e.getCheckFlags(i))return Xr(s,e.Diagnostics.Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1,Pi(i),Ii(n)),!1;if(r){if(J<2&&um(i))return Xr(s,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(128&o)return Xr(s,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Pi(i),Ii(__(i))),!1}if(128&o&&e.isThisProperty(t)&&um(i)&&((a=e.getClassLikeDeclarationOfSymbol(ni(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 Xr(s,e.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Pi(i),e.getTextOfIdentifierOrLiteral(a.name)),!1;if(!(24&o))return!0;if(8&o)return!!ab(t,a=e.getClassLikeDeclarationOfSymbol(ni(i)))||(Xr(s,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,Pi(i),Ii(__(i))),!1);if(r)return!0;var c=ib(t,(function(t){var r=ro(ri(t));return function(t,r){return l_(r,(function(r){return!!(16&e.getDeclarationModifierFlagsFromSymbol(r))&&!Ma(t,__(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 Xr(s,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Pi(i),Ii(__(i)||n)),!1;var l=Yu(u.type);c=262144&l.flags?ns(l):l}return!!(32&o)||(262144&n.flags&&(n=n.isThisType?ns(n):cs(n)),!(!n||!Ma(n,c))||(Xr(s,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1,Pi(i),Ii(c)),!1))}function um(e){return!!l_(e,(function(e){return!(8192&e.flags)}))}function lm(e){return gm(zy(e),e)}function _m(e){return!!(98304&(V?R_(e):e.flags))}function dm(e){return _m(e)?U_(e):e}function pm(t,r){Xr(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 fm(t,r){Xr(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 mm(t,r,n){if(V&&2&t.flags)return Xr(r,e.Diagnostics.Object_is_of_type_unknown),xe;var i=98304&(V?R_(t):t.flags);if(i){n(r,i);var a=U_(t);return 229376&a.flags?xe:a}return t}function gm(e,t){return mm(e,t,pm)}function ym(t,r){var n=gm(t,r);return n!==xe&&16384&n.flags&&Xr(r,e.Diagnostics.Object_is_possibly_undefined),n}function hm(e){return 32&e.flags?function(e){var t=zy(e.expression),r=H_(t,e.expression);return G_(xm(e,e.expression,gm(r,e.expression),e.name),r!==t)}(e):xm(e,e.expression,lm(e.expression),e.name)}function vm(e){return xm(e,e.left,lm(e.left),e.right)}function bm(t){for(;199===t.parent.kind;)t=t.parent;return e.isCallOrNewExpression(t.parent)&&t.parent.expression===t}function xm(t,r,n,i){var a=dn(r).resolvedSymbol,o=e.getAssignmentTargetKind(t),s=ms(0!==o||bm(t)?rd(n):n);if(Qi(s)||s===je)return e.isIdentifier(r)&&a&&zp(a,t),s;var c,u=vs(s,i.escapedText);if(!e.isIdentifier(r)||!a||u&&Cb(u)||zp(a,t),u){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 158:return!0;case 279:case 160:case 162:case 163:case 281:case 153:case 220:case 274:case 271:case 272:case 273:case 266:case 215:case 277:return!1;default:return!e.isExpressionNode(t)&&"quit"}}))}(r)||mn(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=vs(t,e.escapedName);if(r&&r.valueDeclaration)return!0}}(t)?244!==a.kind||168===r.parent.kind||8388608&a.flags||mn(a,n)||(i=Xr(n,e.Diagnostics.Class_0_used_before_its_declaration,o)):i=Xr(n,e.Diagnostics.Property_0_is_used_before_its_initialization,o);i&&e.addRelatedInfo(i,e.createDiagnosticForNode(a,e.Diagnostics._0_is_declared_here,o))}(u,t,i),Fm(u,t,103===r.kind),dn(t).resolvedSymbol=u,cm(t,101===r.kind,s,u),o&&(ly(t,u)||_y(t)))return Xr(i,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,e.idText(i)),xe;c=Jp(wa(u),t)}else{var l=0===o||!gu(n)||hu(n)?Ts(s,0):void 0;if(!l||!l.type)return du(n)?he:n.symbol===re?(re.exports.has(i.escapedText)&&418&re.exports.get(i.escapedText).flags?Xr(i,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(i.escapedText),Ii(n)):H&&Xr(i,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Ii(n)),he):(i.escapedText&&!Dn(t)&&function(t,r){var n,i;if(1048576&r.flags&&!(131068&r.flags))for(var a=0,o=r.types;a<o.length;a++){var s=o[a];if(!vs(s,t.escapedText)&&!Ts(s,0)){n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),Ii(s));break}}if(Tm(t.escapedText,r))n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_is_a_static_member_of_type_1,e.declarationNameToString(t),Ii(r));else{var c=lh(r);if(c&&vs(c,t.escapedText))n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),Ii(r)),i=e.createDiagnosticForNode(t,e.Diagnostics.Did_you_forget_to_use_await);else{var u=Em(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),Ii(r),l),i=u.valueDeclaration&&e.createDiagnosticForNode(u.valueDeclaration,e.Diagnostics._0_is_declared_here,l)}else n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),Ii(r))}}var _=e.createDiagnosticForNodeFromMessageChain(t,n);i&&e.addRelatedInfo(_,i);jr.add(_)}(i,hu(n)?s:n),xe);l.isReadonly&&(e.isAssignmentTarget(t)||e.isDeleteTarget(t))&&Xr(t,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Ii(s)),c=l.type}return Dm(t,u,c,i)}function Dm(t,r,n,i){var a=e.getAssignmentTargetKind(t);if(194!==t.kind&&193!==t.kind||1===a||r&&!(98311&r.flags)&&!(8192&r.flags&&1048576&n.flags))return n;var o=!1;if(V&&G&&103===t.expression.kind){var s=r&&r.valueDeclaration;if(s&&Ov(s)){var c=Mp(t);161===c.kind&&c.parent===s.parent&&(o=!0)}}else V&&r&&r.valueDeclaration&&e.isPropertyAccessExpression(r.valueDeclaration)&&e.getAssignmentDeclarationPropertyAccessKind(r.valueDeclaration)&&Mp(t)===Mp(r.valueDeclaration)&&(o=!0);var u=Op(t,n,o?z_(n):n);return o&&!(32768&R_(n))&&32768&R_(u)?(Xr(i,e.Diagnostics.Property_0_is_used_before_being_assigned,Pi(r)),n):a?k_(u):u}function Sm(e){var t=Wa(e);if(0!==t.length)return iu(t)}function Tm(t,r){var n=r.symbol&&vs(wa(r.symbol),t);return void 0!==n&&n.valueDeclaration&&e.hasModifier(n.valueDeclaration,32)}function Em(t,r){return Am(e.isString(t)?t:e.idText(t),ts(r),111551)}function Cm(t,r){var n=Em(t,r);return n&&e.symbolName(n)}function km(t,r,n){return e.Debug.assert(void 0!==r,"outername should always be defined"),yn(t,r,n,void 0,r,!1,!1,(function(t,n,i){return e.Debug.assertEqual(r,n,"name should equal outerName"),fn(t,n,i)||Am(e.unescapeLeadingUnderscores(n),e.arrayFrom(t.values()),i)}))}function Nm(t,r){return r.exports&&Am(e.idText(t),Yn(r),2623475)}function Am(t,r,n){return e.getSpellingSuggestion(t,r,(function(t){var r=e.symbolName(t);return!e.startsWith(r,'"')&&t.flags&n?r:void 0}))}function Fm(t,r,n){if(t&&106500&t.flags&&t.valueDeclaration&&e.hasModifier(t.valueDeclaration,8)&&(!r||!e.isWriteOnlyAccess(r)||65536&t.flags&&!(32768&t.flags))){if(n){var i=e.findAncestor(r,e.isFunctionLikeDeclaration);if(i&&i.symbol===t)return}(1&e.getCheckFlags(t)?_n(t).target:t).isReferenced=67108863}}function Pm(t,r,n,i){if(i===xe||Qi(i))return!0;var a=vs(i,n);return a?cm(t,r,i,a):e.isInJSFile(t)&&0!=(1048576&i.flags)&&i.types.some((function(e){return Pm(t,r,n,e)}))}function wm(t){var r=t.initializer;if(242===r.kind){var n=r.declarations[0];if(n&&!e.isBindingPattern(n.name))return ri(n)}else if(75===r.kind)return Od(r)}function Im(e){return Es(e,1)&&!Es(e,0)}function Om(e){return 32&e.flags?function(e){var t=zy(e.expression),r=H_(t,e.expression);return G_(Mm(e,gm(r,e.expression)),r!==t)}(e):Mm(e,lm(e.expression))}function Mm(t,r){var n=0!==e.getAssignmentTargetKind(t)||bm(t)?rd(r):r,i=t.argumentExpression,a=zy(i);if(n===xe||n===je)return n;if(yy(n)&&!e.isStringLiteralLike(i))return Xr(i,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),xe;var o=Tu(n,function(t){var r=e.skipParentheses(t);if(75===r.kind){var n=Od(r);if(3&n.flags)for(var i=t,a=t.parent;a;){if(230===a.kind&&i===a.statement&&wm(a)===n&&Im(Ky(a.expression)))return!0;i=a,a=a.parent}}return!1}(i)?Ae:a,t,e.isAssignmentTarget(t)?2|(gu(n)&&!hu(n)?1:0):0)||xe;return nh(Dm(t,o.symbol,o,i),t)}function Lm(t,r,n){if(r===xe)return!1;if(!e.isWellKnownSymbolSyntactically(t))return!1;if(0==(12288&r.flags))return n&&Xr(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=Od(i);if(!a)return!1;var o=Pc(!0);return!!o&&(a===o||(n&&Xr(i,e.Diagnostics.Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object),!1))}function Rm(t){return e.isCallOrNewExpression(t)||e.isTaggedTemplateExpression(t)||e.isJsxOpeningLikeElement(t)}function Bm(t){return Rm(t)&&e.forEach(t.typeArguments,Gv),197===t.kind?zy(t.template):e.isJsxOpeningLikeElement(t)?zy(t.attributes):156!==t.kind&&e.forEach(t.arguments,(function(e){zy(e)})),$t}function jm(e){return Bm(e),Zt}function Km(e){return!!e&&(212===e.kind||219===e.kind&&e.isSpread)}function Jm(t){return e.findIndex(t,Km)}function zm(e){return!!(16384&e.flags)}function Um(t,r,n,i){var a;void 0===i&&(i=!1);var o=!1,s=Bg(n),c=jg(n);if(197===t.kind)if(a=r.length,210===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(156===t.kind)a=ng(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(196===t.kind),0===jg(n);a=i?r.length+1:r.length,o=t.arguments.end===t.end;var _=Jm(r);if(_>=0)return _>=jg(n)&&(Kg(n)||_<Bg(n))}if(!Kg(n)&&a>s)return!1;if(o||a>=c)return!0;for(var d=a;d<c;d++){if(131072&_p(Mg(n,d),zm).flags)return!1}return!0}function Vm(t,r){var n=e.length(t.typeParameters),i=Os(t.typeParameters);return!r||r.length>=i&&r.length<=n}function qm(e){return Gm(e,0,!1)}function Wm(e){return Gm(e,0,!1)||Gm(e,1,!1)}function Gm(e,t,r){if(524288&e.flags){var n=Qo(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 Hm(t,r,n,i){var a=cd(t.typeParameters,t,0,i),o=Jg(r),s=n&&(o&&262144&o.flags?n.nonFixingMapper:n.mapper);return od(s?sl(r,s):r,t,(function(e,t){Sd(a.inferences,e,t)})),n||sd(r,t,(function(e,t){Sd(a.inferences,e,t,16)})),Ws(t,wd(a),e.isInJSFile(r.declaration))}function Ym(t,r,n,i,a){if(e.isJsxOpeningLikeElement(t))return function(e,t,r,n){var i=Sf(t,e),a=Cy(e.attributes,i,n,r);return Sd(n.inferences,a,i),wd(n)}(t,r,i,a);if(156!==t.kind){var o=xf(t);if(o){var s=Df(t),c=gl(o,fd(function(t,r){return void 0===r&&(r=0),t&&ud(e.map(t.inferences,pd),t.signature,t.flags|r,t.compareTypes)}(s,1))),u=qm(c),l=u&&u.typeParameters?$s(Gs(u,u.typeParameters)):c,_=zs(r);Sd(a.inferences,l,_,16);var d=cd(r.typeParameters,r,a.flags),p=gl(o,s&&s.returnMapper);Sd(d.inferences,p,_),a.returnMapper=e.some(d.inferences,Ry)?fd(function(t){var r=e.filter(t.inferences,Ry);return r.length?ud(e.map(r,pd),t.signature,t.flags,t.compareTypes):void 0}(d)):void 0}}var f=Ks(r);if(f){var m=eg(t),g=m?zy(m):Re;Sd(a.inferences,g,f)}for(var y=zg(r),h=y?Math.min(Bg(r)-1,n.length):n.length,v=0;v<h;v++){var b=n[v];if(214!==b.kind){var x=Mg(r,v),D=Cy(b,x,a,i);Sd(a.inferences,D,x)}}if(y){var S=Xm(n,h,n.length,y,a);Sd(a.inferences,S,y)}return wd(a)}function Xm(t,r,n,i,a){if(r>=n-1){var o=t[n-1];if(Km(o))return 219===o.kind?jc(o.type):function(e){return up(e,(function(e){return!(63176705&e.flags||y_(e)||w_(e))}))?jc(Su(e,Ae)):e}(Cy(o.expression,i,a,0))}for(var s=[],c=-1,u=r;u<n;u++){var l=Su(i,Wu(u-r)),_=Cy(t[u],l,a,0);c<0&&Km(t[u])&&(c=u-r);var d=fy(l,4325372);s.push(d?Vu(_):N_(_))}return c<0?Uc(s):Uc(e.append(s.slice(0,c),Qc(s.slice(c))),c,!0)}function Qm(t,r,n,i){for(var a,o=e.isInJSFile(t.declaration),s=t.typeParameters,c=Ms(e.map(r,Yu),s,Os(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=ns(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=el(s,c));var p=c[u];if(!Ol(p,Do(gl(l,a),p),n?r[u]:void 0,d,_))return}}return c}function $m(t){if(zf(t.tagName))return 2;var r=ms(zy(t.tagName));return e.length(xs(r,1))?0:e.length(xs(r,0))?1:2}function Zm(t,r,n,i,a,o,s){var c={errors:void 0,skipLogging:!0};if(e.isJsxOpeningLikeElement(t))return function(e,t,r,n,i,a,o){var s=Sf(t,e);return Ll(Cy(e.attributes,s,void 0,n),s,r,i?e.tagName:void 0,e.attributes,void 0,a,o)}(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=Ks(n);if(u&&u!==Re&&196!==t.kind){var l=eg(t),_=void 0;l?(_=zy(l),e.isOptionalChainRoot(l.parent)?_=U_(_):e.isOptionalChain(l.parent)&&(_=W_(_))):_=Re;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(!Zl(_,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,m=zg(n),g=m?Math.min(Bg(n)-1,r.length):r.length,y=0;y<g;y++){var h=r[y];if(214!==h.kind){var v=Mg(n,y),b=Cy(h,v,void 0,a),x=4&a?Q_(b):b;if(!Ll(x,v,i,o?h:void 0,h,f,s,c))return e.Debug.assert(!o||!!c.errors,"parameter should have errors when reporting errors"),S(h,x,v),c.errors||e.emptyArray}}if(m){var D=Xm(r,g,r.length,m,void 0);d=o?g<r.length?r[g]:t:void 0;if(!Zl(D,m,i,d,f,void 0,c))return e.Debug.assert(!o||!!c.errors,"rest parameter should have errors when reporting errors"),S(d,D,m),c.errors||e.emptyArray}return;function S(t,r,n){if(t&&o&&c.errors&&c.errors.length){if(uh(n))return;var a=uh(r);a&&Ql(a,n,i)&&e.addRelatedInfo(c.errors[0],e.createDiagnosticForNode(t,e.Diagnostics.Did_you_forget_to_use_await))}}}function eg(t){if(195===t.kind){var r=e.skipOuterExpressions(t.expression);if(193===r.kind||194===r.kind)return r.expression}}function tg(t,r,n){var i=e.createNode(219,t.pos,t.end);return i.parent=t,i.type=r,i.isSpread=n||!1,i}function rg(t){if(197===t.kind){var r=t.template,n=[tg(r,Kt||(Kt=Fc("TemplateStringsArray",0,!0))||Ge)];return 210===r.kind&&e.forEach(r.templateSpans,(function(e){n.push(e.expression)})),n}if(156===t.kind)return function(t){var r=t.parent,n=t.expression;switch(r.kind){case 244:case 213:return[tg(n,wa(ri(r)))];case 155:var i=r.parent;return[tg(n,161===r.parent.kind?wa(ri(i)):xe),tg(n,he),tg(n,Ae)];case 158:case 160:case 162:case 163:var a=158!==r.kind&&0!==J;return[tg(n,db(r)),tg(n,pb(r)),tg(n,a?Bc(ub(r)):he)]}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&&Km(i[a-1])&&Jm(i)===a-1){var o=i[a-1],s=pr?zy(o.expression):ky(o.expression);if(w_(s)){var c=_c(s),u=s.target.hasRestElement?c.length-1:-1,l=e.map(c,(function(e,t){return tg(o,e,t===u)}));return e.concatenate(i.slice(0,a-1),l)}}return i}function ng(t,r){switch(t.parent.kind){case 244:case 213:return 1;case 158:return 2;case 160:case 162:case 163:return 0===J||r.parameters.length<=2?2:3;case 155:return 3;default:return e.Debug.fail()}}function ig(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 ag(t,r,n,i,a,o){if(e.isCallExpression(t)){var s=ig(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 og(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=jg(d),f=Bg(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 m,g,y=e.some(r,Kg),h=y?a:a<o?a+"-"+o:a,v=Jm(n)>-1;u<=o&&v&&u--;var b=y||v?y&&v?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&&jg(i)>u&&i.declaration){var x=i.declaration.parameters[i.thisParameter?u+1:u];x&&(g=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 ag(t,e.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,u,s,c);if(!v&&u<a){var D=ag(t,b,h,u);return g?e.addRelatedInfo(D,g):D}if(y||v){if(m=e.createNodeArray(n),v&&u){var S=e.elementAt(n,Jm(n)+1)||void 0;m=e.createNodeArray(n.slice(o>u&&S?n.indexOf(S):Math.min(o,n.length-1)))}}else m=e.createNodeArray(n.slice(o));m.pos=e.first(m).pos,m.end=e.last(m).end,m.end===m.pos&&m.end++;var T=e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),m,b,h,u);return g?e.addRelatedInfo(T,g):T}function sg(t,r,n,i,o,s){var c,u=197===t.kind,l=156===t.kind,_=e.isJsxOpeningLikeElement(t),d=!n;l||(c=t.typeArguments,(u||_||101!==t.expression.kind)&&e.forEach(c,Gv));var p=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&&ri(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,L(d)?(s=++u,c++):s=o,r.splice(s,0,n?ko(d):d)}}(r,p,o),!p.length)return d&&jr.add(ag(t,e.Diagnostics.Call_target_does_not_contain_any_signatures)),jm(t);var f,m,g,y,h=rg(t),v=1===p.length&&!p[0].typeParameters,b=l||v||!e.some(h,bl)?0:4,x=!!(16&i)&&195===t.kind&&t.arguments.hasTrailingComma;if(p.length>1&&(y=W(p,Ur,x)),y||(y=W(p,Vr,x)),y)return y;if(d)if(f)if(1===f.length||f.length>3){var D,S=f[f.length-1];f.length>3&&(D=e.chainDiagnosticMessages(D,e.Diagnostics.The_last_overload_gave_the_following_error),D=e.chainDiagnosticMessages(D,e.Diagnostics.No_overload_matches_this_call));var T=Zm(t,h,S,Vr,0,!0,(function(){return D}));if(T)for(var E=0,C=T;E<C.length;E++){var k=C[E];S.declaration&&f.length>3&&e.addRelatedInfo(k,e.createDiagnosticForNode(S.declaration,e.Diagnostics.The_last_overload_is_declared_here)),jr.add(k)}else e.Debug.fail("No error for last overload signature")}else{for(var N=[],A=0,F=Number.MAX_VALUE,P=0,w=0,I=function(r){var n=Zm(t,h,r,Vr,0,!0,(function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,w+1,p.length,wi(r))}));n?(n.length<=F&&(F=n.length,P=w),A=Math.max(A,n.length),N.push(n)):e.Debug.fail("No error for 3 or fewer overload signatures"),w++},O=0,R=f;O<R.length;O++){I(R[O])}var B=A>1?N[P]:e.flatten(N);e.Debug.assert(B.length>0,"No errors reported for 3 or fewer overload signatures");var j=e.chainDiagnosticMessages(e.map(B,(function(e){return"string"==typeof e.messageText?e:e.messageText})),e.Diagnostics.No_overload_matches_this_call),K=e.flatMap(B,(function(e){return e.relatedInformation}));if(e.every(B,(function(e){return e.start===B[0].start&&e.length===B[0].length&&e.file===B[0].file}))){var J=B[0],z=J.file,U=J.start,V=J.length;jr.add({file:z,start:U,length:V,code:j.code,category:j.category,messageText:j,relatedInformation:K})}else jr.add(e.createDiagnosticForNodeFromMessageChain(t,j,K))}else if(m)jr.add(og(t,[m],h));else if(g)Qm(g,t.typeArguments,!0,s);else{var q=e.filter(r,(function(e){return Vm(e,c)}));0===q.length?jr.add(function(t,r,n){var i=n.length;if(1===r.length){var a=Os((_=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=Os((_=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,c)):l?s&&jr.add(ag(t,s)):jr.add(og(t,q,h))}return a||!h?jm(t):function(t,r,n,i){return e.Debug.assert(r.length>0),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=Bg(a);if(Kg(a)||o>=t)return i;o>n&&(n=o,r=i)}return r}(r,void 0===ne?n.length:ne),a=r[i],o=a.typeParameters;if(!o)return a;var s=Rm(t)?t.typeArguments:void 0,c=s?Hs(a,function(e,t,r){var n=e.map(ub);for(;n.length>t.length;)n.pop();for(;n.length<t.length;)n.push(ns(t[n.length])||Pd(r));return n}(s,o,e.isInJSFile(t))):function(t,r,n,i){var a=cd(r,n,e.isInJSFile(t)?2:0),o=Ym(t,n,i,12,a);return Hs(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=ug(n,n.map(Ig)));for(var i=e.minAndMax(t,cg),a=i.min,o=i.max,s=[],c=function(r){var n=e.mapDefined(t,(function(t){return M(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(ug(n,e.mapDefined(t,(function(e){return Lg(e,r)}))))},u=0;u<o;u++)c(u);var l=e.mapDefined(t,(function(t){return M(t)?e.last(t.parameters):void 0})),_=0;if(0!==l.length){var d=jc(Qc(e.mapDefined(t,qs),2));s.push(lg(l,d)),_|=1}t.some(L)&&(_|=2);return To(t[0].declaration,void 0,r,s,iu(t.map(zs)),void 0,a,_)}(r)}(t,p,h,!!n);function W(r,n,i){if(void 0===i&&(i=!1),f=void 0,m=void 0,g=void 0,v){var a=r[0];if(c||!Um(t,h,a,i))return;return Zm(t,h,a,n,0,!1,void 0)?void(f=[a]):a}for(var o=0;o<r.length;o++){if(Vm(a=r[o],c)&&Um(t,h,a,i)){var s=void 0,u=void 0;if(a.typeParameters){var l=void 0;if(c){if(!(l=Qm(a,c,!1))){g=a;continue}}else u=cd(a.typeParameters,a,e.isInJSFile(t)?2:0),l=Ym(t,a,h,8|b,u),b|=4&u.flags?8:0;if(s=Ws(a,l,e.isInJSFile(a.declaration),u&&u.inferredTypeParameters),zg(a)&&!Um(t,h,s,i)){m=s;continue}}else s=a;if(!Zm(t,h,s,n,b,!1,void 0)){if(b){if(b=0,u)if(s=Ws(a,l=Ym(t,a,h,b,u),e.isInJSFile(a.declaration),u&&u.inferredTypeParameters),zg(a)&&!Um(t,h,s,i)){m=s;continue}if(Zm(t,h,s,n,b,!1,void 0)){(f||(f=[])).push(s);continue}}return r[o]=s,s}(f||(f=[])).push(s)}}}}function cg(e){var t=e.parameters.length;return M(e)?t-1:t}function ug(e,t){return lg(e,Qc(t,2))}function lg(t,r){return X_(e.first(t),r)}function _g(e){return!(!e.typeParameters||!Lb(zs(e)))}function dg(e,t,r,n){return Qi(e)||Qi(t)&&!!(262144&e.flags)||!r&&!n&&!(1179648&t.flags)&&Fl(e,ut)}function pg(t,r,n){if(t.arguments&&J<1){var i=Jm(t.arguments);i>=0&&Xr(t.arguments[i],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var a=lm(t.expression);if(a===je)return tr;if((a=ms(a))===xe)return jm(t);if(Qi(a))return t.typeArguments&&Xr(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Bm(t);var o=xs(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)return!0;var a=e.getClassLikeDeclarationOfSymbol(n.parent.symbol),o=ro(n.parent.symbol);if(!ab(t,a)){var s=e.getContainingClass(t);if(s&&16&i){var c=ub(s);if(function t(r,n){var i=Wa(n);if(!e.length(i))return!1;var a=i[0];if(2097152&a.flags){for(var o=Lo(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&&Xr(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Ii(o)),16&i&&Xr(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Ii(o)),!1}return!0}(t,o[0]))return jm(t);var s=a.symbol&&e.getClassLikeDeclarationOfSymbol(a.symbol);return s&&e.hasModifier(s,128)?(Xr(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),jm(t)):sg(t,o,r,n,!1)}var c=xs(a,0);if(c.length){var u=sg(t,c,r,n,!1);return H||(u.declaration&&!Sg(u.declaration)&&zs(u)!==Re&&Xr(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),Ks(u)===Re&&Xr(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),u}return mg(t.expression,a,1),jm(t)}function fg(t,r){var n,i=0===r,a=dh(t),o=a&&xs(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!==xs(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,Ii(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,Ii(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,Ii(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,Ii(t)))}else n=e.chainDiagnosticMessages(n,i?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,Ii(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 mg(t,r,n,i){var a=fg(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=ig(t.parent,!0),l=u.start,_=u.length;c.start=l,c.length=_}jr.add(c),gg(r,n,i?e.addRelatedInfo(c,i):c)}function gg(t,r,n){if(t.symbol){var i=_n(t.symbol).originatingImport;if(i&&!e.isImportCall(i)){var a=xs(wa(_n(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 yg(t){switch(t.parent.kind){case 244:case 213:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 155:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 158:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 160:case 162:case 163:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return e.Debug.fail()}}function hg(t,r,n){var i=zy(t.expression),a=ms(i);if(a===xe)return jm(t);var o,s,c=xs(a,0),u=xs(a,1).length;if(dg(i,a,c.length,u))return Bm(t);if(o=t,(s=c).length&&e.every(s,(function(e){return 0===e.minArgumentCount&&!M(e)&&e.parameters.length<ng(o,e)}))){var l=e.getTextOfNode(t.expression,!1);return Xr(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),jm(t)}var _=yg(t);if(!c.length){var d=fg(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)),jr.add(f),gg(a,0,f),jm(t)}return sg(t,c,r,n,!1,_)}function vg(t,r){var n=Hf(t),i=n&&Qn(n),a=i&&fn(i,C.Element,788968),o=a&&Z.symbolToEntityName(a,788968,t),s=e.createFunctionTypeNode(void 0,[e.createParameter(void 0,void 0,void 0,"props",void 0,Z.typeToTypeNode(r,t))],o?e.createTypeReferenceNode(o,void 0):e.createKeywordTypeNode(124)),c=en(1,"props");return c.type=r,To(s,void 0,void 0,[c],a?ro(a):xe,void 0,1,0)}function bg(t,r,n){if(zf(t.tagName)){var i=$f(t),a=vg(t,i);return Ml(Cy(t.attributes,Sf(a,t),void 0,0),i,t.tagName,t.attributes),a}var o=zy(t.tagName),s=ms(o);if(s===xe)return jm(t);var c=function t(r,n){if(4&r.flags)return[$t];if(128&r.flags){var i=Qf(r,n);return i?[vg(n,i)]:(Xr(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,"JSX."+C.IntrinsicElements),e.emptyArray)}var a=ms(r),o=xs(a,1);return 0===o.length&&(o=xs(a,0)),0===o.length&&1048576&a.flags&&(o=Po(e.map(a.types,(function(e){return t(e,n)})))),o}(o,t);return dg(o,s,c.length,0)?Bm(t):0===c.length?(Xr(t.tagName,e.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,e.getTextOfNode(t.tagName)),jm(t)):sg(t,c,r,n,!1)}function xg(t,r,n){switch(t.kind){case 195:return function(t,r,n){if(101===t.expression.kind){var i=$p(t.expression);if(Qi(i)){for(var a=0,o=t.arguments;a<o.length;a++){zy(o[a])}return $t}if(i!==xe){var s=e.getEffectiveBaseTypeNode(e.getContainingClass(t));if(s)return sg(t,Va(i,s.typeArguments,s),r,n,!1)}return Bm(t)}var c,u=zy(t.expression);if(e.isCallChain(t)){var l=H_(u,t.expression);c=l!==u,u=l}else c=!1;if((u=mm(u,t.expression,fm))===je)return tr;var _=ms(u);if(_===xe)return jm(t);var d=xs(_,0),p=xs(_,1).length;if(dg(u,_,d.length,p))return u!==xe&&t.typeArguments&&Xr(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Bm(t);if(!d.length){if(p)Xr(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Ii(u));else{var f=void 0;if(1===t.arguments.length){var m=e.getSourceFileOfNode(t).text;e.isLineBreak(m.charCodeAt(e.skipTrivia(m,t.expression.end,!0)-1))&&(f=e.createDiagnosticForNode(t.expression,e.Diagnostics.It_is_highly_likely_that_you_are_missing_a_semicolon))}mg(t.expression,_,0,f)}return jm(t)}return 8&n&&!t.typeArguments&&d.some(_g)?(Ly(t,n),er):d.some((function(t){return e.isInJSFile(t.declaration)&&!!e.getJSDocClassTag(t.declaration)}))?(Xr(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Ii(u)),jm(t)):sg(t,d,r,n,c)}(t,r,n);case 196:return pg(t,r,n);case 197:return function(e,t,r){var n=zy(e.tag),i=ms(n);if(i===xe)return jm(e);var a=xs(i,0),o=xs(i,1).length;return dg(n,i,a.length,o)?Bm(e):a.length?sg(e,a,t,r,!1):(mg(e.tag,i,0),jm(e))}(t,r,n);case 156:return hg(t,r,n);case 266:case 265:return bg(t,r,n)}throw e.Debug.assertNever(t,"Branch in 'resolveSignature' should be unreachable.")}function Dg(e,t,r){var n=dn(e),i=n.resolvedSignature;if(i&&i!==er&&!t)return i;n.resolvedSignature=er;var a=xg(e,t,r||0);return a!==er&&(n.resolvedSignature=dr===pr?a:i),a}function Sg(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=ri(r);return!!n&&e.hasEntries(n.members)}return!1}function Tg(t,r){if(r&&(e.hasEntries(r.exports)||e.hasEntries(r.members))){var n=_n(r);if(!n.inferredClassSymbol||!n.inferredClassSymbol.has(""+A(t))){var i=tn(t)?t:an(t);return i.exports=i.exports||e.createSymbolTable(),i.members=i.members||e.createSymbolTable(),i.flags|=32&r.flags,e.hasEntries(r.exports)&&un(i.exports,r.exports),e.hasEntries(r.members)&&un(i.members,r.members),(n.inferredClassSymbol||(n.inferredClassSymbol=e.createMap())).set(""+A(i),i),i}return n.inferredClassSymbol.get(""+A(t))}}function Eg(t,r){tx(t,t.typeArguments)||rx(t.arguments);var n=Dg(t,void 0,r);if(n===er)return Ke;if(101===t.expression.kind)return Re;if(196===t.kind){var i=n.declaration;if(i&&161!==i.kind&&165!==i.kind&&170!==i.kind&&!e.isJSDocConstructSignature(i)&&!Sg(i))return H&&Xr(t,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),he}if(e.isInJSFile(t)&&Ag(t))return function(e){var t=zn(e,e);if(t){var r=Wn(t);if(r)return wa(r)}return he}(t.arguments[0]);var a=zs(n);if(12288&a.flags&&Cg(t))return Gu(e.walkUpParenthesizedExpressions(t.parent));if(195===t.kind&&225===t.parent.kind&&16384&a.flags&&Js(n))if(e.isDottedName(t.expression)){if(!Np(t)){var o=Xr(t.expression,e.Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);kp(t.expression,o)}}else Xr(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=ri(s);if(c&&e.hasEntries(c.exports)){var u=hi(c,c.exports,e.emptyArray,e.emptyArray,void 0,void 0);return u.objectFlags|=16384,iu([a,u])}}}return a}function Cg(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=Pc(!1);return!!n&&n===gn(r,"Symbol",111551,void 0,void 0,!1)}function kg(t){if(rx(t.arguments)||function(t){if(z===e.ModuleKind.ES2015)return vx(t,e.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_commonjs_amd_system_or_umd);if(t.typeArguments)return vx(t,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var r=t.arguments;if(1!==r.length)return vx(t,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument);if(Qb(r),e.isSpreadElement(r[0]))return vx(r[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element)}(t),0===t.arguments.length)return Yg(t,he);for(var r=t.arguments[0],n=ky(r),i=1;i<t.arguments.length;++i)ky(t.arguments[i]);(32768&n.flags||65536&n.flags||!Fl(n,Ne))&&Xr(r,e.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,Ii(n));var a=zn(t,r);if(a){var o=Gn(a,r,!0,!1);if(o)return Yg(t,Ng(wa(o),o,a))}return Yg(t,he)}function Ng(t,r,n){if(U&&t&&t!==xe){var i=t;if(!i.syntheticType)if(Nn(e.find(n.declarations,e.isSourceFile),n,!1)){var a=e.createSymbolTable(),o=en(2097152,"default");o.nameType=Wu("default"),o.target=On(r),a.set("default",o);var s=en(2048,"__type"),c=hi(s,a,e.emptyArray,e.emptyArray,void 0,void 0);s.type=c,i.syntheticType=Kf(t)?Bu(t,c,s,0,!1):c}else i.syntheticType=t;return i.syntheticType}return t}function Ag(t){if(!e.isRequireCall(t,!0))return!1;if(!e.isIdentifier(t.expression))return e.Debug.fail();var r=gn(t.expression,t.expression.escapedText,111551,void 0,void 0,!0);if(r===ae)return!0;if(2097152&r.flags)return!1;var n=16&r.flags?243:3&r.flags?241:0;if(0!==n){var i=e.getDeclarationOfKind(r,n);return!!i&&!!(8388608&i.flags)}return!1}function Fg(t){return function(t){if(t.questionDotToken||32&t.flags)return vx(t.template,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain);return!1}(t)||tx(t,t.typeArguments),J<2&&Gb(t,131072),zs(Dg(t))}function Pg(t,r,n,i){var o=zy(n,i);if(e.isConstTypeReference(r))return function t(r){switch(r.kind){case 10:case 14:case 8:case 9:case 105:case 90:case 191:case 192:return!0;case 199:return t(r.expression);case 206:var n=r.operator,i=r.operand;return 40===n&&(8===i.kind||9===i.kind)||39===n&&8===i.kind;case 193:case 194:var a=r.expression;if(e.isIdentifier(a)){var o=cb(a);return o&&2097152&o.flags&&(o=Mn(o)),!!(o&&384&o.flags&&1===Qa(o))}}return!1}(n)||Xr(n,e.Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),Vu(o);Gv(r),o=Q_(k_(o));var s=Yu(r);a&&s!==xe&&(wl(s,rd(o))||Ul(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 wg(t){return function(t){var r=t.name.escapedText;switch(t.keywordToken){case 98:if("target"!==r)return vx(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 95:if("meta"!==r)vx(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),98===t.keywordToken?function(t){var r=e.getNewTargetContainer(t);return r?161===r.kind?wa(ri(r.parent)):wa(ri(r)):(Xr(t,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),xe)}(t):95===t.keywordToken?function(t){z!==e.ModuleKind.ESNext&&z!==e.ModuleKind.System&&Xr(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 Jt||(Jt=Fc("ImportMeta",0,!0))||Ge}():xe}(t):e.Debug.assertNever(t.keywordToken)}function Ig(t){var r=wa(t);if(V){var n=t.valueDeclaration;if(n&&e.hasInitializer(n))return z_(r)}return r}function Og(e,t){var r=e.parameters.length-(M(e)?1:0);if(t<r)return e.parameters[t].escapedName;var n=e.parameters[r]||ge,i=wa(n);if(w_(i)){var a=i.target.associatedNames,o=t-r;return a&&a[o]||n.escapedName+"_"+o}return n.escapedName}function Mg(e,t){return Lg(e,t)||he}function Lg(e,t){var r=e.parameters.length-(M(e)?1:0);if(t<r)return Ig(e.parameters[t]);if(M(e)){var n=wa(e.parameters[r]),i=t-r;if(!w_(n)||n.target.hasRestElement||i<_c(n).length)return Su(n,Wu(i))}}function Rg(e,t){var r=Bg(e),n=Jg(e),i=r-(n?1:0);if(n&&t===i)return n;for(var a=[],o=[],s=t;s<i;s++)a.push(Mg(e,s)),o.push(Og(e,s));n&&(a.push(Su(n,Ae)),o.push(Og(e,i)));var c=jg(e);return Uc(a,c<t?0:c-t,!!n,!1,o)}function Bg(e){var t=e.parameters.length;if(M(e)){var r=wa(e.parameters[t-1]);if(w_(r))return t+_c(r).length-1}return t}function jg(e){if(M(e)){var t=wa(e.parameters[e.parameters.length-1]);if(w_(t)){var r=t.target.minLength;if(r>0)return e.parameters.length-1+r}}return e.minArgumentCount}function Kg(e){if(M(e)){var t=wa(e.parameters[e.parameters.length-1]);return!w_(t)||t.target.hasRestElement}return!1}function Jg(e){if(M(e)){var t=wa(e.parameters[e.parameters.length-1]);return w_(t)?function(e){var t=I_(e);return t&&jc(t)}(t):t}}function zg(e){var t=Jg(e);return!t||y_(t)||Qi(t)?void 0:t}function Ug(e){return Vg(e,Be)}function Vg(e,t){return e.parameters.length>0?Mg(e,0):t}function qg(t,r){(t.typeParameters=r.typeParameters,r.thisParameter)&&((!(a=t.thisParameter)||a.valueDeclaration&&!a.valueDeclaration.type)&&(a||(t.thisParameter=X_(r.thisParameter,void 0)),Wg(t.thisParameter,wa(r.thisParameter))));for(var n=t.parameters.length-(M(t)?1:0),i=0;i<n;i++){var a=t.parameters[i];if(!e.getEffectiveTypeAnnotationNode(a.valueDeclaration))Wg(a,Mg(r,i))}M(t)&&(!tn(a=e.last(t.parameters))&&e.getEffectiveTypeAnnotationNode(a.valueDeclaration)||Wg(a,Rg(r,n)))}function Wg(t,r){var n=_n(t);if(!n.type){n.type=r;var i=t.valueDeclaration;75!==i.name.kind&&(n.type===De&&(n.type=ya(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?_n(ri(a)).type=ia(a):t(a.name))}}(i.name))}}function Gg(e){var t=Ic(!0);return t!==Qe?cc(t,[e=dh(e)||De]):De}function Hg(e){var t,r=(t=!0,kt||(kt=Fc("PromiseLike",1,t))||Qe);return r!==Qe?cc(r,[e=dh(e)||De]):De}function Yg(t,r){var n=Gg(r);return n===De?(Xr(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),xe):(Oc(!0)||Xr(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 Xg(t,r){if(!t.body)return xe;var n,i,a,o=e.getFunctionFlags(t),s=0!=(2&o),c=0!=(1&o),u=Re;if(222!==t.body.kind)n=ky(t.body,r&&-9&r),s&&(n=_h(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=ry(t,r);l?l.length>0&&(n=Qc(l,2)):u=Be;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?zy(t.expression,r):Te;if(e.pushIfUnique(n,$g(t,s,he,a)),t.asteriskToken){var c=iv(s,a?19:17,t.expression);o=c&&c.nextType}else o=xf(t);o&&e.pushIfUnique(i,o)})),{yieldTypes:n,nextTypes:i}}(t,r),d=_.yieldTypes,p=_.nextTypes;i=e.some(d)?Qc(d,2):void 0,a=e.some(p)?iu(p):void 0}else{var f=ry(t,r);if(!f)return 2&o?Yg(t,Be):Be;if(0===f.length)return 2&o?Yg(t,Re):Re;n=Qc(f,2)}if(n||i||a){var m=kf(t);if(m||(i&&ad(t,i,1),n&&ad(t,n),a&&ad(t,a)),n&&E_(n)||i&&E_(i)||a&&E_(a)){var g=m?m===Ls(t)?c?void 0:n:vf(zs(m),t):void 0;c?(i=P_(i,g,0,s),n=P_(n,g,1,s),a=P_(a,g,2,s)):n=function(e,t,r){return e&&E_(e)&&(e=F_(e,t?r?lh(t):t:void 0)),e}(n,g,s)}i&&(i=rd(i)),n&&(n=rd(n)),a&&(a=rd(a))}return c?Qg(i||Be,n||u,a||of(2,t)||De,s):s?Gg(n||u):n||u}function Qg(e,t,r,n){var i=n?cr:ur,a=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||De,t=i.resolveIterationType(t,void 0)||De,r=i.resolveIterationType(r,void 0)||De,a===Qe){var o=i.getGlobalIterableIteratorType(!1),s=o!==Qe?cv(o,i):void 0,c=s?s.returnType:he,u=s?s.nextType:Se;return Fl(t,c)&&Fl(u,r)?o!==Qe?Rc(o,[e]):(i.getGlobalIterableIteratorType(!0),Ge):(i.getGlobalGeneratorType(!0),Ge)}return Rc(a,[e,t,r])}function $g(t,r,n,i){var a=t.expression||t,o=t.asteriskToken?Zh(i?19:17,r,n,a):r;return i?dh(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 Zg(e,t,r,n){var i=0;if(n){for(var a=t;a<r.length;a++)i|=S.get(r[a])||32768;for(a=e;a<t;a++)i&=~(S.get(r[a])||0);for(a=0;a<e;a++)i|=S.get(r[a])||32768}else{for(a=e;a<t;a++)i|=D.get(r[a])||128;for(a=0;a<e;a++)i&=~(D.get(r[a])||0)}return i}function ey(t){var r=dn(t);return void 0!==r.isExhaustive?r.isExhaustive:r.isExhaustive=function(t){if(203===t.expression.kind){var r=Ky(t.expression.expression),n=Zg(0,0,sp(t),!0);return!!(131072&_p(cs(r)||r,(function(e){return(Gd(e)&n)===n})).flags)}var i=Ky(t.expression);if(!C_(i))return!1;var a=op(t);if(!a.length||e.some(a,T_))return!1;return function(t,r){return 1048576&t.flags?!e.forEach(t.types,(function(t){return!e.contains(r,t)})):e.contains(r,t)}(pp(i,Vu),a)}(t)}function ty(e){return e.endFlowNode&&Fp(e.endFlowNode)}function ry(t,r){var n=e.getFunctionFlags(t),i=[],a=ty(t),o=!1;if(e.forEachReturnStatement(t.body,(function(s){var c=s.expression;if(c){var u=ky(c,r&&-9&r);2&n&&(u=_h(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 200:case 201:return!0;case 160:return 192===e.parent.kind;default:return!1}}(t))return!(V&&i.length&&a)||Sg(t)&&i.some((function(e){return e.symbol===t.symbol}))||e.pushIfUnique(i,Se),i}function ny(t,r){if(a){var n=e.getFunctionFlags(t),i=r&&oy(r,n);if((!i||!fy(i,16385))&&159!==t.kind&&!e.nodeIsMissing(t.body)&&222===t.body.kind&&ty(t)){var o=512&t.flags;if(i&&131072&i.flags)Xr(e.getEffectiveReturnTypeNode(t),e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(i&&!o)Xr(e.getEffectiveReturnTypeNode(t),e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(i&&V&&!Fl(Se,i))Xr(e.getEffectiveReturnTypeNode(t),e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(K.noImplicitReturns){if(!i){if(!o)return;if(Tv(t,zs(Ls(t))))return}Xr(e.getEffectiveReturnTypeNode(t)||t,e.Diagnostics.Not_all_code_paths_return_a_value)}}}}function iy(t,r){if(e.Debug.assert(160!==t.kind||e.isObjectLiteralMethod(t)),Yv(t),r&&4&r&&bl(t)){if(!e.getEffectiveReturnTypeNode(t)&&Dl(t)){var n=dn(t);if(n.contextFreeType)return n.contextFreeType;var i=Xg(t,r),a=To(void 0,void 0,void 0,e.emptyArray,i,void 0,0,0),o=hi(t.symbol,B,[a],e.emptyArray,void 0,void 0);return o.objectFlags|=1048576,n.contextFreeType=o}return $e}ex(t)||200!==t.kind||ox(t);var s=wa(ti(t.symbol));return Qi(s)?s:(ay(t,r),s)}function ay(t,r){var n=dn(t);if(!(1024&n.flags)){var i=Nf(t);if(!(1024&n.flags)){if(n.flags|=1024,i){var a=wa(ti(t.symbol));if(Qi(a))return;var o=xs(a,0)[0];if(bl(t)){var s=Df(t);r&&2&r&&function(t,r,n){for(var i=t.parameters.length-(M(t)?1:0),a=0;a<i;a++){var o=t.parameters[a].valueDeclaration;if(o.type){var s=e.getEffectiveTypeAnnotationNode(o);s&&Sd(n.inferences,Yu(s),Mg(r,a))}}var c=Jg(r);if(c&&262144&c.flags){qg(t,sl(r,n.nonFixingMapper));var u=Bg(r)-1;Sd(n.inferences,Rg(t,u),c)}}(o,i,s),qg(o,s?sl(i,s.mapper):i)}if(!Us(t)&&!o.resolvedReturnType){var c=Xg(t,r);o.resolvedReturnType||(o.resolvedReturnType=c)}}Wy(t)}}}function oy(e,t){var r=!!(2&t);return e&&!!(1&t)?bv(1,e,r)||xe:e&&r?dh(e)||xe:e}function sy(e,t,r,n){if(void 0===n&&(n=!1),!Fl(t,We)){var i=n&&uh(t);return Zr(e,!!i&&Fl(i,We),r),!1}return!0}function cy(t){if(!e.isCallExpression(t))return!1;if(!e.isBindableObjectDefinePropertyCall(t))return!1;var r=ky(t.arguments[2]);if(Xi(r,"value")){var n=vs(r,"writable"),i=n&&wa(n);if(!i||i===Pe||i===we)return!0;if(n&&n.valueDeclaration&&e.isPropertyAssignment(n.valueDeclaration)){var a=zy(n.valueDeclaration.initializer);if(a===Pe||a===we)return!0}return!1}return!vs(r,"set")}function uy(t){return!!(8&e.getCheckFlags(t)||4&t.flags&&64&e.getDeclarationModifierFlagsFromSymbol(t)||3&t.flags&&2&om(t)||98304&t.flags&&!(65536&t.flags)||8&t.flags||e.some(t.declarations,cy))}function ly(t,r){if(uy(r)){if(4&r.flags&&(193===t.kind||194===t.kind)&&103===t.expression.kind){var n=e.getContainingFunction(t);return!n||161!==n.kind||(!r.valueDeclaration||!(n.parent===r.valueDeclaration.parent||n===r.valueDeclaration.parent))}return!0}return!1}function _y(t){if(193===t.kind||194===t.kind){var r=e.skipParentheses(t.expression);if(75===r.kind){var n=dn(r).resolvedSymbol;if(2097152&n.flags){var i=En(n);return!!i&&255===i.kind}}}return!1}function dy(t,r,n){var i=e.skipOuterExpressions(t,3);return 75!==i.kind&&193!==i.kind&&194!==i.kind?(Xr(t,r),!1):!(32&i.flags)||(Xr(t,n),!1)}function py(e){return fy(e,2112)?my(e,3)||fy(e,296)?We:Fe:Ae}function fy(e,t){if(e.flags&t&-131073||131072&t&&Xo(e))return!0;if(3145728&e.flags)for(var r=0,n=e.types;r<n.length;r++){if(fy(n[r],t))return!0}return!1}function my(e,t,r){return!!(e.flags&t)||!(r&&114691&e.flags)&&(!!(296&t)&&Fl(e,Ae)||!!(2112&t)&&Fl(e,Fe)||!!(132&t)&&Fl(e,Ne)||!!(528&t)&&Fl(e,Me)||!!(16384&t)&&Fl(e,Re)||!!(131072&t)&&Fl(e,Be)||!!(65536&t)&&Fl(e,Ce)||!!(32768&t)&&Fl(e,Se)||!!(4096&t)&&Fl(e,Le)||!!(67108864&t)&&Fl(e,Ue))}function gy(t,r,n){return 1048576&t.flags?e.every(t.types,(function(e){return gy(e,r,n)})):my(t,r,n)}function yy(t){return!!(16&e.getObjectFlags(t))&&!!t.symbol&&hy(t.symbol)}function hy(e){return 0!=(128&e.flags)}function vy(t,r,n,i,a){void 0===a&&(a=!1);var o=t.properties,s=o[n];if(279===s.kind||280===s.kind){var c=s.name,u=ou(c);if(_o(u)){var l=vs(r,yo(u));l&&(Fm(l,s,a),cm(s,!1,r,l))}var _=ta(s,Su(r,u,c));return xy(280===s.kind?s:s.initializer,_)}if(281===s.kind){if(!(n<o.length-1)){J<99&&Gb(s,4);var d=[];if(i)for(var p=0,f=i;p<f.length;p++){var m=f[p];e.isSpreadAssignment(m)||d.push(m.name)}_=ea(r,d,r.symbol);return Qb(i,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),xy(s.expression,_)}Xr(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern)}else Xr(s,e.Diagnostics.Property_assignment_expected)}function by(t,r,n,i,a){var o=t.elements,s=o[n];if(214!==s.kind){if(212!==s.kind){var c=Wu(n);if(b_(r)){var u=Af(s)?8:0,l=Tu(r,c,tg(s,c),u)||xe;return xy(s,ta(s,Af(s)?Hd(l,524288):l),a)}return xy(s,i,a)}if(n<o.length-1)Xr(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var _=s.expression;if(208!==_.kind||62!==_.operatorToken.kind)return Qb(t.elements,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),xy(_,lp(r,w_)?pp(r,(function(e){return Vc(e,n)})):jc(i),a);Xr(_.operatorToken,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}}function xy(t,r,n,i){var a;if(280===t.kind){var o=t;o.objectAssignmentInitializer&&(!V||32768&R_(zy(o.objectAssignmentInitializer))||(r=Hd(r,524288)),Ty(o.name,o.equalsToken,o.objectAssignmentInitializer,n)),a=t.name}else a=t;return 208===a.kind&&62===a.operatorToken.kind&&(Sy(a,n),a=a.left),192===a.kind?function(e,t,r){var n=e.properties;if(V&&0===n.length)return gm(t,e);for(var i=0;i<n.length;i++)vy(e,t,i,n,r);return t}(a,r,i):191===a.kind?function(e,t,r){var n=e.elements;J<2&&K.downlevelIteration&&Gb(e,512);for(var i=Zh(65,t,Se,e)||xe,a=0;a<n.length;a++)by(e,t,a,i,r);return t}(a,r,n):function(t,r,n){var i=zy(t,n),a=281===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=281===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;dy(t,a,o)&&Ml(r,i,t,t);return r}(a,r,n)}function Dy(e,t){return 0!=(98304&t.flags)||wl(e,t)}function Sy(t,r){return e.isInJSFile(t)&&e.getAssignedExpandoInitializer(t)?zy(t.right,r):(function(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||vx(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||vx(i,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(i.operatorToken.kind),e.tokenToString(n.kind)))}(t),Ty(t.left,t.operatorToken,t.right,r,t))}function Ty(t,r,n,i,o){var s,c=r.kind;if(62===c&&(192===t.kind||191===t.kind))return xy(t,zy(n,i),i,103===n.kind);s=55===c||56===c||60===c?Yh(t,i):zy(t,i);var u=zy(n,i);switch(c){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(s===je||u===je)return je;s=gm(s,t),u=gm(u,n);var l=void 0;if(528&s.flags&&528&u.flags&&void 0!==(l=function(e){switch(e){case 51:case 73:return 56;case 52:case 74:return 37;case 50:case 72:return 55;default:return}}(r.kind)))return Xr(o||r,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(r.kind),e.tokenToString(l)),Ae;var _,d=sy(t,s,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),p=sy(n,u,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);if(my(s,3)&&my(u,3)||!fy(s,2112)&&!fy(u,2112))_=Ae;else if(g(s,u)){switch(c){case 49:case 71:b()}_=Fe}else b(g),_=xe;return d&&p&&h(_),_;case 39:case 63:if(s===je||u===je)return je;my(s,132)||my(u,132)||(s=gm(s,t),u=gm(u,n));var f=void 0;if(my(s,296,!0)&&my(u,296,!0)?f=Ae:my(s,2112,!0)&&my(u,2112,!0)?f=Fe:my(s,132,!0)||my(u,132,!0)?f=Ne:(Qi(s)||Qi(u))&&(f=s===xe||u===xe?xe:he),f&&!y(c))return f;if(!f){return b((function(e,t){return my(e,2543)&&my(t,2543)})),he}return 63===c&&h(f),f;case 29:case 31:case 32:case 33:return y(c)&&(s=k_(gm(s,t)),u=k_(gm(u,n)),v((function(e,t){return wl(e,t)||wl(t,e)||Fl(e,We)&&Fl(t,We)}))),Me;case 34:case 35:case 36:case 37:return v((function(e,t){return Dy(e,t)||Dy(t,e)})),Me;case 97:return function(t,r,n,i){return n===je||i===je?je:(!Qi(n)&&gy(n,131068)&&Xr(t,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Qi(i)||mb(i)||Al(i,ut)||Xr(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),Me)}(t,n,s,u);case 96:return function(t,r,n,i){return n===je||i===je?je:(n=gm(n,t),i=gm(i,r),wl(n,Ne)||my(n,12584)||Xr(t,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol),gy(i,126091264)||Xr(r,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Me)}(t,n,s,u);case 55:return 4194304&Gd(s)?Qc([j_(V?s:k_(u)),u]):s;case 56:return 8388608&Gd(s)?Qc([B_(s),u],2):s;case 60:return 262144&Gd(s)?Qc([U_(s),u],2):s;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=$o(r);n<i.length;n++){var a=i[n],o=wa(a);if(o.symbol&&32&o.symbol.flags){var s=a.escapedName,c=gn(a.valueDeclaration,s,788968,void 0,s,!1);if(c&&c.declarations.some(e.isJSDocTypedefTag))return vx(c.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(s)),vx(a.valueDeclaration,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(s))}}}(m,u),function(r){switch(r){case 2:return!0;case 1:case 5:case 6:case 3:case 4:var i=ri(t),a=e.getAssignedExpandoInitializer(n);return a&&e.isObjectLiteralExpression(a)&&i&&e.hasEntries(i.exports);default:return!1}}(m)?(524288&u.flags&&(2===m||6===m||Wl(u)||Wd(u)||1&e.getObjectFlags(u))||h(u),s):(h(u),Q_(u));case 27:return K.allowUnreachableCode||!function t(r){switch((r=e.skipParentheses(r)).kind){case 75:case 10:case 13:case 197:case 210:case 14:case 8:case 9:case 105:case 90:case 99:case 145:case 200:case 213:case 201:case 191:case 192:case 203:case 217:case 265:case 264:return!0;case 209:return t(r.whenTrue)&&t(r.whenFalse);case 208:return!e.isAssignmentOperator(r.operatorToken.kind)&&(t(r.left)&&t(r.right));case 206:case 207:switch(r.operator){case 53:case 39:case 40:case 54:return!0}return!1;case 204:case 198:case 216:default:return!1}}(t)||function(e){return 75===e.kind&&"eval"===e.escapedText}(n)||Xr(t,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects),u;default:return e.Debug.fail()}function g(e,t){return my(e,2112)&&my(t,2112)}function y(r){var i=fy(s,12288)?t:fy(u,12288)?n:void 0;return!i||(Xr(i,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(r)),!1)}function h(r){a&&e.isAssignmentOperator(c)&&(!dy(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)||Ml(r,s,t,n))}function v(e){return!e(s,u)&&(b(e),!0)}function b(t){var n,i=!1,a=o||r;if(t){var c=dh(s),l=dh(u);i=!(c===s&&l===u)&&!(!c||!l)&&t(c,l)}var _=s,d=u;!i&&t&&(n=function(e,t,r){var n=e,i=t,a=k_(e),o=k_(t);r(a,o)||(n=a,i=o);return[n,i]}(s,u,t),_=n[0],d=n[1]);var p=Oi(_,d),f=p[0],m=p[1];(function(t,n,i,a){var o;switch(r.kind){case 36:case 34:o="false";break;case 37:case 35:o="true"}if(o)return Zr(t,n,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,o,i,a);return})(a,i,f,m)||Zr(a,i,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(r.kind),f,m)}}function Ey(t){a&&(8192&t.flags&&!function(t){for(var r=t,n=t.parent;n;){if(e.isFunctionLike(n)&&r===n.body)return!1;if(e.isClassLike(r))return!0;r=n,n=n.parent}return!1}(t)||yx(t,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),af(t)&&Xr(t,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer));var r=e.getContainingFunction(t);if(!r)return he;var n=e.getFunctionFlags(r);if(!(1&n))return he;var i=0!=(2&n);t.asteriskToken&&(i&&J<99&&Gb(t,53248),!i&&J<2&&K.downlevelIteration&&Gb(t,256));var o=Us(r),s=o&&xv(o,i),c=s&&s.yieldType||he,u=s&&s.nextType||he,l=i?dh(u)||he:u,_=t.expression?zy(t.expression):Te,d=$g(t,_,l,i);return o&&d&&Ml(d,c,t.expression||t,t.expression),t.asteriskToken?tv(i?19:17,1,_,t.expression)||he:o?bv(2,o,i)||he:of(2,r)||he}function Cy(t,r,n,i){var a=function(t){return 272!==t.kind||e.isJsxSelfClosingElement(t.parent)?t:t.parent.parent}(t),o=a.contextualType,s=a.inferenceContext;a.contextualType=r,a.inferenceContext=n;var c=zy(t,1|i|(n?2:0)),u=fy(c,2944)&&Fy(c,vf(r,t))?Vu(c):c;return a.contextualType=o,a.inferenceContext=s,u}function ky(e,t){var r=dn(e);if(!r.resolvedType){if(t&&0!==t)return zy(e,t);var n=dr;dr=pr,r.resolvedType=zy(e,t),dr=n}return r.resolvedType}function Ny(t){return 198===(t=e.skipParentheses(t)).kind||216===t.kind}function Ay(t){var r=e.getEffectiveInitializer(t),n=Ky(r,!0),i=e.isParameter(t)&&189===t.name.kind&&w_(n)&&!n.target.hasRestElement&&dc(n)<t.name.elements.length?function(t,r){for(var n=r.elements,i=dc(t),a=i?_c(t).slice():[],o=i;o<n.length;o++){var s=n[o];(o<n.length-1||190!==s.kind||!s.dotDotDotToken)&&(a.push(!e.isOmittedExpression(s)&&Af(s)?ma(s,!1,!1):he),e.isOmittedExpression(s)||Af(s)||id(s,he))}return Uc(a,t.target.minLength,!1,t.target.readonly)}(n,t.name):n,a=2&e.getCombinedNodeFlags(t)||e.isDeclarationReadonly(t)||Ny(r)||Fy(i,xf(r))?i:N_(i);if(e.isInJSFile(t)){if(98304&a.flags)return id(t,he),he;if(x_(a))return id(t,vt),vt}return a}function Fy(t,r){if(r){if(3145728&r.flags){var n=r.types;return e.some(n,(function(e){return Fy(t,e)}))}if(58982400&r.flags){var i=cs(r)||De;return fy(i,4)&&fy(t,128)||fy(i,8)&&fy(t,256)||fy(i,64)&&fy(t,2048)||fy(i,4096)&&fy(t,8192)||Fy(t,i)}return!!(4194432&r.flags&&fy(t,128)||256&r.flags&&fy(t,256)||2048&r.flags&&fy(t,2048)||512&r.flags&&fy(t,512)||8192&r.flags&&fy(t,8192))}return!1}function Py(t){var r=t.parent;return e.isAssertionExpression(r)&&e.isConstTypeReference(r.type)||(e.isParenthesizedExpression(r)||e.isArrayLiteralExpression(r)||e.isSpreadElement(r))&&Py(r)||(e.isPropertyAssignment(r)||e.isShorthandPropertyAssignment(r))&&Py(r.parent)}function wy(e,t,r,n){var i=zy(e,t,n);return Py(e)?Vu(i):Ny(e)?i:F_(i,vf(2===arguments.length?xf(e):r,e))}function Iy(e,t){return 153===e.name.kind&&Lf(e.name),wy(e.initializer,t)}function Oy(e,t){return dx(e),153===e.name.kind&&Lf(e.name),My(e,iy(e,t),t)}function My(t,r,n){if(n&&10&n){var i=Gm(r,0,!0),a=Gm(r,1,!0),o=i||a;if(o&&o.typeParameters){var s=hf(t,2);if(s){var c=Gm(U_(s),i?0:1,!1);if(c&&!c.typeParameters){if(8&n)return Ly(t,n),$e;var u=Df(t),l=u.signature&&zs(u.signature),_=l&&Wm(l);if(_&&!_.typeParameters&&!e.every(u.inferences,Ry)){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(By(t.inferredTypeParameters,c)||By(a,c)){var u=fi(en(262144,jy(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=el(n,i),_=0,d=i;_<d.length;_++){var p;(p=d[_]).mapper=l}return a}(u,o.typeParameters),p=Gs(o,d),f=e.map(u.inferences,(function(e){return dd(e.typeParameter)}));if(od(p,c,(function(e,t){Sd(f,e,t,0,!0)})),e.some(f,Ry)&&(sd(p,c,(function(e,t){Sd(f,e,t)})),!function(e,t){for(var r=0;r<e.length;r++)if(Ry(e[r])&&Ry(t[r]))return!0;return!1}(u.inferences,f)))return function(e,t){for(var r=0;r<e.length;r++)!Ry(e[r])&&Ry(t[r])&&(e[r]=t[r])}(u.inferences,f),u.inferredTypeParameters=e.concatenate(u.inferredTypeParameters,d),$s(p)}return $s(Hm(o,c,u))}}}}return r}function Ly(e,t){2&t&&(Df(e).flags|=4)}function Ry(e){return!(!e.candidates&&!e.contraCandidates)}function By(t,r){return e.some(t,(function(e){return e.symbol.escapedName===r}))}function jy(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(!By(e,a))return a}}function Ky(t,r){var n=e.skipParentheses(t);if(!e.isCallExpression(n)||101===n.expression.kind||e.isRequireCall(n,!0)||Cg(n)){if(e.isAssertionExpression(n)&&!e.isConstTypeReference(n.type))return Yu(n.type)}else{var i=void 0,a=void 0;if(e.isCallChain(n)){var o=H_(a=zy(n.expression),n.expression);i=a!==o,a=gm(o,n.expression)}else i=!1,a=lm(n.expression);var s=qm(a);if(s&&!s.typeParameters)return G_(zs(s),i)}return r?ky(t):zy(t)}function Jy(e){var t=dn(e);if(t.contextFreeType)return t.contextFreeType;var r=e.contextualType;e.contextualType=he;var n=t.contextFreeType=zy(e,4);return e.contextualType=r,n}function zy(t,r,n){var i=l;l=t,x=0;var s=My(t,function(t,r,n){var i=t.kind;if(o)switch(i){case 213:case 200:case 201:o.throwIfCancellationRequested()}switch(i){case 75:return Up(t);case 103:return Yp(t);case 101:return $p(t);case 99:return ke;case 14:case 10:return Uu(Wu(t.text));case 8:return Dx(t),Uu(Wu(+t.text));case 9:return function(t){if(!(e.isLiteralTypeNode(t.parent)||e.isPrefixUnaryExpression(t.parent)&&e.isLiteralTypeNode(t.parent.parent))&&J<99&&vx(t,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ESNext))return!0}(t),Uu(function(t){return Wu({negative:!1,base10Value:e.parsePseudoBigInt(t.text)})}(t));case 105:return Ie;case 90:return Pe;case 210:return function(t){return e.forEach(t.templateSpans,(function(t){fy(zy(t.expression),12288)&&Xr(t.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String)})),Ne}(t);case 13:return yt;case 191:return Ff(t,r,n);case 192:return jf(t,r);case 193:return hm(t);case 152:return vm(t);case 194:return Om(t);case 195:if(95===t.expression.kind)return kg(t);case 196:return Eg(t,r);case 197:return Fg(t);case 199:return function(t,r){var n=e.isInJSFile(t)?e.getJSDocTypeTag(t):void 0;if(n)return Pg(n,n.typeExpression.type,t.expression,r);return zy(t.expression,r)}(t,r);case 213:return function(e){return Pv(e),Yv(e),wa(ri(e))}(t);case 200:case 201:return iy(t,r);case 203:return function(e){return zy(e.expression),zr}(t);case 198:case 216:return function(e){return Pg(e,e.type,e.expression)}(t);case 217:return function(e){return U_(zy(e.expression))}(t);case 218:return wg(t);case 202:return function(t){zy(t.expression);var r=e.skipParentheses(t.expression);if(193!==r.kind&&194!==r.kind)return Xr(r,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),Me;var n=si(dn(r).resolvedSymbol);return n&&uy(n)&&Xr(r,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),Me}(t);case 204:return function(e){return zy(e.expression),Te}(t);case 205:return function(t){if(a){if(!(32768&t.flags)){var r=e.getSourceFileOfNode(t);if(!gx(r)){var n=e.getSpanOfTokenAtPosition(r,t.pos),i=e.createFileDiagnostic(r,n.start,n.length,e.Diagnostics.await_expression_is_only_allowed_within_an_async_function),o=e.getContainingFunction(t);if(o&&161!==o.kind){e.Debug.assert(0==(2&e.getFunctionFlags(o)),"Enclosing function should never be an async function.");var s=e.createDiagnosticForNode(o,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(i,s)}jr.add(i)}}af(t)&&Xr(t,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)}var c=zy(t.expression),u=_h(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===xe||3&c.flags||Qr(!1,e.createDiagnosticForNode(t,e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),u}(t);case 206:return function(t){var r=zy(t.operand);if(r===je)return je;switch(t.operand.kind){case 8:switch(t.operator){case 40:return Uu(Wu(-t.operand.text));case 39:return Uu(Wu(+t.operand.text))}break;case 9:if(40===t.operator)return Uu(Wu({negative:!0,base10Value:e.parsePseudoBigInt(t.operand.text)}))}switch(t.operator){case 39:case 40:case 54:return gm(r,t.operand),fy(r,12288)&&Xr(t.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(t.operator)),39===t.operator?(fy(r,2112)&&Xr(t.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(t.operator),Ii(k_(r))),Ae):py(r);case 53:Yh(t.operand);var n=12582912&Gd(r);return 4194304===n?Pe:8388608===n?Ie:Me;case 45:case 46:return sy(t.operand,gm(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&dy(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),py(r)}return xe}(t);case 207:return function(t){var r=zy(t.operand);return r===je?je:(sy(t.operand,gm(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&dy(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),py(r))}(t);case 208:return Sy(t,r);case 209:return function(e,t){return Yh(e.condition),Qc([zy(e.whenTrue,t),zy(e.whenFalse,t)],2)}(t,r);case 212:return function(e,t){return J<2&&Gb(e,K.downlevelIteration?1536:2048),Zh(33,zy(e.expression,t),Se,e.expression)}(t,r);case 214:return Te;case 211:return Ey(t);case 219:return t.type;case 274:return am(t,r);case 264:case 265:return function(e,t){return Yv(e),em(e)||he}(t);case 268:return function(t){return rm(t.openingFragment),2===K.jsx&&(K.jsxFactory||e.getSourceFileOfNode(t).pragmas.has("jsx"))&&Xr(t,K.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),Vf(t),em(t)||he}(t);case 272:return qf(t,r);case 266:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return xe}(t,r,n),r);return yy(s)&&function(t,r){193===t.parent.kind&&t.parent.expression===t||194===t.parent.kind&&t.parent.expression===t||(75===t.kind||152===t.kind)&&ob(t)||171===t.parent.kind&&t.parent.exprName===t||261===t.parent.kind||Xr(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(K.isolatedModules){e.Debug.assert(!!(128&r.symbol.flags)),8388608&r.symbol.valueDeclaration.flags&&Xr(t,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided)}}(t,s),l=i,s}function Uy(t){t.expression&&yx(t.expression,e.Diagnostics.Type_expected),Gv(t.constraint),Gv(t.default);var r=to(ri(t));cs(r),function(e){return ds(e)!==et}(r)||Xr(t.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,Ii(r));var n=ns(r),i=ps(r);n&&i&&Ol(i,Do(gl(n,Zu(r,i)),i),t.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),a&&kv(t.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function Vy(t){Yb(t),zh(t);var r=e.getContainingFunction(t);e.hasModifier(t,92)&&(161===r.kind&&e.nodeIsPresent(r.body)||Xr(t,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation)),t.questionToken&&e.isBindingPattern(t.name)&&r.body&&Xr(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)&&Xr(t,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,t.name.escapedText),161!==r.kind&&165!==r.kind&&170!==r.kind||Xr(t,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),201===r.kind&&Xr(t,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter)),!t.dotDotDotToken||e.isBindingPattern(t.name)||Fl(wa(t.symbol),xt)||Xr(t,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function qy(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 Xr(r,e.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((189===s.kind||188===s.kind)&&qy(s,r,n))return!0}}}function Wy(t){166===t.kind?function(t){Yb(t)||function(t){var r=t.parameters[0];if(1!==t.parameters.length)return vx(r?r.name:t,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(r.dotDotDotToken)return vx(r.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(e.hasModifiers(r))return vx(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(r.questionToken)return vx(r.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(r.initializer)return vx(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!r.type)return vx(r.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);if(142!==r.type.kind&&139!==r.type.kind){var n=Yu(r.type);return 4&n.flags||8&n.flags?vx(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),Ii(n),Ii(t.type?Yu(t.type):he)):1048576&n.flags&&gy(n,384,!0)?vx(r.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead):vx(r.name,e.Diagnostics.An_index_signature_parameter_type_must_be_either_string_or_number)}if(!t.type)return vx(t,e.Diagnostics.An_index_signature_must_have_a_type_annotation)}(t)}(t):169!==t.kind&&243!==t.kind&&170!==t.kind&&164!==t.kind&&161!==t.kind&&165!==t.kind||ex(t);var r=e.getFunctionFlags(t);if(4&r||(3==(3&r)&&J<99&&Gb(t,12288),2==(3&r)&&J<4&&Gb(t,64),0!=(3&r)&&J<2&&Gb(t,128)),Nv(t.typeParameters),e.forEach(t.parameters,Vy),t.type&&Gv(t.type),a){!function(t){if(J>=2||K.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===ie.escapedName&&Xr(t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))}(t);var n=e.getEffectiveReturnTypeNode(t);if(H&&!n)switch(t.kind){case 165:Xr(t,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 164:Xr(t,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(n){var i=e.getFunctionFlags(t);if(1==(5&i)){var o=Yu(n);if(o===Re)Xr(n,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var s=bv(0,o,0!=(2&i))||he;Ol(Qg(s,bv(1,o,0!=(2&i))||s,bv(2,o,0!=(2&i))||De,!!(2&i)),o,n)}}else 2==(3&i)&&function(t,r){var n=Yu(r);if(J>=2){if(n===xe)return;var i=Ic(!0);if(i!==Qe&&!Ia(n,i))return void Xr(r,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)}else{if(function(t){fh(t&&e.getEntityNameFromTypeNode(t))}(r),n===xe)return;var a=e.getEntityNameFromTypeNode(r);if(void 0===a)return void Xr(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,Ii(n));var o=Kn(a,111551,!0),s=o?wa(o):xe;if(s===xe)return void(75===a.kind&&"Promise"===a.escapedText&&Oa(n)===Ic(!1)?Xr(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):Xr(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,At||(At=Fc("PromiseConstructorLike",0,_))||Ge);if(c===Ge)return void Xr(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(!Ol(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=fn(t.locals,u.escapedText,111551);if(l)return void Xr(l.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(u),e.entityNameToString(a))}var _;_h(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,n)}166!==t.kind&&298!==t.kind&&Dh(t)}}function Gy(t){for(var r=e.createMap(),n=0,i=t.members;n<i.length;n++){var a=i[n];if(157===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)?(Xr(e.getNameOfDeclaration(a.symbol.valueDeclaration),e.Diagnostics.Duplicate_identifier_0,o),Xr(a.name,e.Diagnostics.Duplicate_identifier_0,o)):r.set(o,!0)}}}function Hy(t){if(245===t.kind){var r=ri(t);if(r.declarations.length>0&&r.declarations[0]!==t)return}var n=Zs(ri(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 142:a?Xr(c,e.Diagnostics.Duplicate_string_index_signature):a=!0;break;case 139:i?Xr(c,e.Diagnostics.Duplicate_number_index_signature):i=!0}}}function Yy(t){Yb(t)||function(t){if(e.isClassLike(t.parent)){if(e.isStringLiteral(t.name)&&"constructor"===t.name.text)return vx(t.name,e.Diagnostics.Classes_may_not_have_a_field_named_constructor);if(_x(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}else if(245===t.parent.kind){if(_x(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 vx(t.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(172===t.parent.kind){if(_x(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 vx(t.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}8388608&t.flags&&fx(t);if(e.isPropertyDeclaration(t)&&t.exclamationToken&&(!e.isClassLike(t.parent)||!t.type||t.initializer||8388608&t.flags||e.hasModifier(t,160)))return vx(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context)}(t)||ax(t.name),zh(t)}function Xy(t){Wy(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 hx(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)vx(r,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}(t),Gv(t.body);var r=ri(t);if(t===e.getDeclarationOfKind(r,t.kind)&&sh(r),!e.nodeIsMissing(t.body)&&a){var n=t.parent;if(e.getClassExtendsHeritageElement(n)){Vp(t.parent,n);var i=Gp(n),o=Wp(t);if(o){if(i&&Xr(o,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),e.some(t.parent.members,(function(t){return 158===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(225===l.kind&&e.isSuperCall(l.expression)){s=l;break}if(!e.isPrologueDirective(l))break}s||Xr(t,e.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties)}}else i||Xr(t,e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}}function Qy(t){if(a){if(ex(t)||function(t){if(!(8388608&t.flags)){if(J<1)return vx(t.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(void 0===t.body&&!e.hasModifier(t,128))return hx(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(t.body&&e.hasModifier(t,128))return vx(t,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(t.typeParameters)return vx(t.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!function(e){return lx(e)||e.parameters.length===(162===e.kind?0:1)}(t))return vx(t.name,162===t.kind?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(163===t.kind){if(t.type)return vx(t.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var r=e.Debug.assertDefined(e.getSetAccessorValueParameter(t),"Return value does not match parameter count assertion.");if(r.dotDotDotToken)return vx(r.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(r.questionToken)return vx(r.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(r.initializer)return vx(t.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}(t)||ax(t.name),vh(t),Wy(t),162===t.kind&&!(8388608&t.flags)&&e.nodeIsPresent(t.body)&&256&t.flags&&(512&t.flags||Xr(t.name,e.Diagnostics.A_get_accessor_must_return_a_value)),153===t.name.kind&&Lf(t.name),!go(t)){var r=162===t.kind?163:162,n=e.getDeclarationOfKind(ri(t),r);if(n){var i=e.getModifierFlags(t),o=e.getModifierFlags(n);(28&i)!=(28&o)&&Xr(t.name,e.Diagnostics.Getter_and_setter_accessors_do_not_agree_in_visibility),(128&i)!=(128&o)&&Xr(t.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),$y(t,n,Ta,e.Diagnostics.get_and_set_accessor_must_have_the_same_type),$y(t,n,Ea,e.Diagnostics.get_and_set_accessor_must_have_the_same_this_type)}}var s=Ca(ri(t));162===t.kind&&ny(t,s)}Gv(t.body)}function $y(e,t,r,n){var i=r(e),a=r(t);i&&a&&!El(i,a)&&Xr(e,n)}function Zy(t,r){return Ms(e.map(t.typeArguments,Yu),r,Os(r),e.isInJSFile(t))}function eh(t,r){for(var n,i,a=!0,o=0;o<r.length;o++){var s=ns(r[o]);s&&(n||(i=el(r,n=Zy(t,r))),a=a&&Ol(n[o],gl(s,i),t.typeArguments[o],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return a}function th(t){var r=Tc(t);if(r!==xe){var n=dn(t).resolvedSymbol;if(n)return 524288&n.flags&&_n(n).typeParameters||(4&e.getObjectFlags(r)?r.target.localTypeParameters:void 0)}}function rh(t){tx(t,t.typeArguments),168!==t.kind||void 0===t.typeName.jsdocDotPos||e.isInJSFile(t)||e.isInJSDoc(t)||hx(t,t.typeName.jsdocDotPos,1,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments),e.forEach(t.typeArguments,Gv);var r=Tc(t);if(r!==xe){if(t.typeArguments&&a){var n=th(t);n&&eh(t,n)}32&r.flags&&8&dn(t).resolvedSymbol.flags&&Xr(t,e.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,Ii(r))}}function nh(t,r){if(!(8388608&t.flags))return t;var n=t.objectType,i=t.indexType;if(Fl(i,lu(n,!1)))return 194===r.kind&&e.isAssignmentTarget(r)&&32&e.getObjectFlags(n)&&1&Go(n)&&Xr(r,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Ii(n)),t;var a=ms(n);if(Ts(a,1)&&my(i,296))return t;if(gu(n)){var o=pu(i,r);if(o){var s=up(a,(function(e){return vs(e,o)}));if(s&&24&e.getDeclarationModifierFlagsFromSymbol(s))return Xr(r,e.Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,e.unescapeLeadingUnderscores(o)),xe}}return Xr(r,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Ii(i),Ii(n)),xe}function ih(t){!function(t){if(146===t.operator){if(143!==t.type.kind)return vx(t.type,e.Diagnostics._0_expected,e.tokenToString(143));var r=e.walkUpParenthesizedTypes(t.parent);switch(r.kind){case 241:var n=r;if(75!==n.name.kind)return vx(t,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(n))return vx(t,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&n.parent.flags))return vx(r.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 158:if(!e.hasModifier(r,32)||!e.hasModifier(r,64))return vx(r.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 157:if(!e.hasModifier(r,64))return vx(r.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:vx(t,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}else if(137===t.operator&&173!==t.type.kind&&174!==t.type.kind)yx(t,e.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,e.tokenToString(143))}(t),Gv(t.type)}function ah(t){return e.hasModifier(t,8)&&!!(8388608&t.flags)}function oh(t,r){var n=e.getCombinedModifierFlags(t);return 245!==t.parent.kind&&244!==t.parent.kind&&213!==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 sh(t){if(a){for(var r,n,i,o=0,s=155,c=!1,u=!0,l=!1,_=t.declarations,d=0!=(16384&t.flags),p=!1,f=!1,m=!1,g=0,y=_;g<y.length;g++){var h=y[g],v=8388608&h.flags,b=245===h.parent.kind||172===h.parent.kind||v;if(b&&(i=void 0),244!==h.kind&&213!==h.kind||v||(m=!0),243===h.kind||160===h.kind||159===h.kind||161===h.kind){var x=oh(h,155);o|=x,s&=x,c=c||e.hasQuestionToken(h),u=u&&e.hasQuestionToken(h),e.nodeIsPresent(h.body)&&r?d?f=!0:p=!0:i&&i.parent===h.parent&&i.end!==h.pos&&N(i),e.nodeIsPresent(h.body)?r||(r=h):l=!0,i=h,b||(n=h)}}if(f&&e.forEach(_,(function(t){Xr(t,e.Diagnostics.Multiple_constructor_implementations_are_not_allowed)})),p&&e.forEach(_,(function(t){Xr(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_function_implementation)})),m&&!d&&16&t.flags&&e.forEach(_,(function(r){cn(e.getNameOfDeclaration(r)||r,e.Diagnostics.Duplicate_identifier_0,e.symbolName(t),e.filter(_,(function(e){return e!==r})))})),!n||n.body||e.hasModifier(n,128)||n.questionToken||N(n),l&&(function(t,r,n,i,a){if(0!==(i^a)){var o=oh(k(t,r),n);e.forEach(t,(function(t){var r=oh(t,n)^o;1&r?Xr(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):2&r?Xr(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):24&r?Xr(e.getNameOfDeclaration(t)||t,e.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):128&r&&Xr(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)}))}}(_,r,155,o,s),function(t,r,n,i){if(n!==i){var a=e.hasQuestionToken(k(t,r));e.forEach(t,(function(t){e.hasQuestionToken(t)!==a&&Xr(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_optional_or_required)}))}}(_,r,c,u),r))for(var D=js(t),S=Ls(r),T=0,E=D;T<E.length;T++){var C=E[T];if(!ql(S,C)){e.addRelatedInfo(Xr(C.declaration,e.Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature),e.createDiagnosticForNode(r,e.Diagnostics.The_implementation_signature_is_declared_here));break}}}function k(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.isComputedPropertyName(t.name)&&e.isComputedPropertyName(a)||!e.isComputedPropertyName(t.name)&&!e.isComputedPropertyName(a)&&e.getEscapedTextOfIdentifierOrLiteral(t.name)===e.getEscapedTextOfIdentifierOrLiteral(a))){if((160===t.kind||159===t.kind)&&e.hasModifier(t,32)!==e.hasModifier(n,32))Xr(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 Xr(i,e.Diagnostics.Function_implementation_name_must_be_0,e.declarationNameToString(t.name))}var o=t.name||t;d?Xr(o,e.Diagnostics.Constructor_implementation_is_missing):e.hasModifier(t,128)?Xr(o,e.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):Xr(o,e.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}}function ch(t){if(a){var r=t.localSymbol;if((r||(r=ri(t)).exportSymbol)&&e.getDeclarationOfKind(r,t.kind)===t){for(var n=0,i=0,o=0,s=0,c=r.declarations;s<c.length;s++){var u=y(m=c[s]),l=oh(m,513);1&l?512&l?o|=u:n|=u:i|=u}var _=n&i,d=o&(n|i);if(_||d)for(var p=0,f=r.declarations;p<f.length;p++){u=y(m=f[p]);var m,g=e.getNameOfDeclaration(m);u&d?Xr(g,e.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,e.declarationNameToString(g)):u&_&&Xr(g,e.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,e.declarationNameToString(g))}}}function y(t){var r=t;switch(r.kind){case 245:case 246:case 315:case 308:case 309:return 2;case 248:return e.isAmbientModule(r)||0!==e.getModuleInstanceState(r)?5:4;case 244:case 247:return 3;case 288:return 7;case 258:if(!e.isEntityNameExpression(r.expression))return 1;r=r.expression;case 252:case 255:case 254:var n=0,i=Mn(ri(r));return e.forEach(i.declarations,(function(e){n|=y(e)})),n;case 241:case 190:case 243:case 257:return 1;default:return e.Debug.failBadSyntaxKind(r)}}}function uh(e,t,r,n){var i=lh(e,t);return i&&dh(i,t,r,n)}function lh(t,r){if(!Qi(t)){var n=t;if(n.promisedTypeOfPromise)return n.promisedTypeOfPromise;if(Ia(t,Ic(!1)))return n.promisedTypeOfPromise=_c(t)[0];var i=Xi(t,"then");if(!Qi(i)){var a=i?xs(i,0):e.emptyArray;if(0!==a.length){var o=Hd(Qc(e.map(a,Ug)),2097152);if(!Qi(o)){var s=xs(o,0);if(0!==s.length)return n.promisedTypeOfPromise=Qc(e.map(s,Ug),2);r&&Xr(r,e.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}}else r&&Xr(r,e.Diagnostics.A_promise_must_have_a_then_method)}}}function _h(e,t,r,n){return dh(e,t,r,n)||xe}function dh(t,r,n,i){var a=t;if(a.awaitedTypeOfType)return a.awaitedTypeOfType;if(Qi(t))return a.awaitedTypeOfType=t;if(1048576&t.flags){for(var o=void 0,s=0,c=t.types;s<c.length;s++){var u=c[s];o=e.append(o,dh(u,r,n,i))}if(!o)return;return a.awaitedTypeOfType=Qc(o)}var l=lh(t);if(l){if(t.id===l.id||Br.indexOf(l.id)>=0)return void(r&&Xr(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));Br.push(t.id);var _=dh(l,r,n,i);if(Br.pop(),!_)return;return a.awaitedTypeOfType=_}var d=Xi(t,"then");if(!(d&&xs(d,0).length>0))return a.awaitedTypeOfType=t;if(r){if(!n)return e.Debug.fail();Xr(r,n,i)}}function ph(t){var r=zs(Dg(t));if(!(1&r.flags)){var n,i,a=yg(t);switch(t.parent.kind){case 244:n=Qc([wa(ri(t.parent)),Re]);break;case 155:n=Re,i=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 158:n=Re,i=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 160:case 162:case 163:n=Qc([Bc(ub(t.parent)),Re]);break;default:return e.Debug.fail()}Ol(r,n,t,a,(function(){return i}))}}function fh(t){if(t){var r=e.getFirstIdentifier(t),n=2097152|(75===t.kind?788968:1920),i=gn(r,r.escapedText,n,void 0,void 0,!0);i&&2097152&i.flags&&ci(i)&&!Cb(Mn(i))&&Rn(i)}}function mh(t){var r=gh(t);r&&e.isEntityName(r)&&fh(r)}function gh(e){if(e)switch(e.kind){case 178:case 177:return yh(e.types);case 179:return yh([e.trueType,e.falseType]);case 181:return gh(e.type);case 168:return e.typeName}}function yh(t){for(var r,n=0,i=t;n<i.length;n++){for(var a=i[n];181===a.kind;)a=a.type;if(136!==a.kind&&(V||99!==a.kind&&145!==a.kind)){var o=gh(a);if(!o)return;if(r){if(!e.isIdentifier(r)||!e.isIdentifier(o)||r.escapedText!==o.escapedText)return}else r=o}}return r}function hh(t){var r=e.getEffectiveTypeAnnotationNode(t);return e.isRestParameter(t)?e.getRestParameterElementType(r):r}function vh(t){if(t.decorators&&e.nodeCanBeDecorated(t,t.parent,t.parent.parent)){K.experimentalDecorators||Xr(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(Gb(r,8),155===t.kind&&Gb(r,32),K.emitDecoratorMetadata)switch(Gb(r,16),t.kind){case 244:var n=e.getFirstConstructorWithBody(t);if(n)for(var i=0,a=n.parameters;i<a.length;i++){mh(hh(a[i]))}break;case 162:case 163:var o=162===t.kind?163:162,s=e.getDeclarationOfKind(ri(t),o);mh(Sa(t)||s&&Sa(s));break;case 160:for(var c=0,u=t.parameters;c<u.length;c++){mh(hh(u[c]))}mh(e.getEffectiveReturnTypeNode(t));break;case 158:mh(e.getEffectiveTypeAnnotationNode(t));break;case 155:mh(hh(t));for(var l=0,_=t.parent.parameters;l<_.length;l++){mh(hh(_[l]))}}e.forEach(t.decorators,ph)}}function bh(e){switch(e.kind){case 75:return e;case 193:return e.name;default:return}}function xh(t){vh(t),Wy(t);var r=e.getFunctionFlags(t);if(t.name&&153===t.name.kind&&Lf(t.name),!go(t)){var n=ri(t),i=t.localSymbol||n,o=e.find(i.declarations,(function(e){return e.kind===t.kind&&!(131072&e.flags)}));t===o&&sh(i),n.parent&&e.getDeclarationOfKind(n,t.kind)===t&&sh(n)}var s=159===t.kind?void 0:t.body;if(Gv(s),ny(t,Us(t)),a&&!e.getEffectiveReturnTypeNode(t)&&(e.nodeIsMissing(s)&&!ah(t)&&id(t,he),1&r&&e.nodeIsPresent(s)&&zs(Ls(t))),e.isInJSFile(t)){var c=e.getJSDocTypeTag(t);c&&c.typeExpression&&!Ef(Yu(c.typeExpression),t)&&Xr(c,e.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function Dh(t){if(a&&!(8388608&t.flags)){var r=e.getSourceFileOfNode(t),n=_r.get(r.path);n||(n=[],_r.set(r.path,n)),n.push(t)}}function Sh(t,r){for(var n=0,i=t;n<i.length;n++){var a=i[n];switch(a.kind){case 244:case 213:Ch(a,r),Nh(a,r);break;case 288:case 248:case 222:case 250:case 229:case 230:case 231:wh(a,r);break;case 161:case 200:case 243:case 201:case 160:case 162:case 163:a.body&&wh(a,r),Nh(a,r);break;case 159:case 164:case 165:case 169:case 170:case 246:case 245:Nh(a,r);break;case 180:kh(a,r);break;default:e.Debug.assertNever(a,"Node should not have been registered for unused identifiers check")}}}function Th(t,r,n){var i=e.getNameOfDeclaration(t)||t,a=rb(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 Eh(t){return e.isIdentifier(t)&&95===e.idText(t).charCodeAt(0)}function Ch(t,r){for(var n=0,i=t.members;n<i.length;n++){var a=i[n];switch(a.kind){case 160:case 158:case 162:case 163:if(163===a.kind&&32768&a.symbol.flags)break;var o=ri(a);!o.isReferenced&&e.hasModifier(a,8)&&r(a,0,e.createDiagnosticForNode(a.name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Pi(o)));break;case 161: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 166:case 221:break;default:e.Debug.fail()}}}function kh(t,r){var n=t.typeParameter;Ah(n)&&r(t,1,e.createDiagnosticForNode(t,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(n.name)))}function Nh(t,r){if(e.last(ri(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(Ah(s)){var c=e.idText(s.name),u=s.parent;if(180!==u.kind&&u.typeParameters.every(Ah)){if(i.tryAdd(u)){var l=e.isJSDocTemplateTag(u)?e.rangeOfNode(u):e.rangeOfTypeParameters(u.typeParameters),_=1===n.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 Ah(e){return!(262144&ti(e.symbol).isReferenced||Eh(e.name))}function Fh(e,t,r,n){var i=String(n(t)),a=e.get(i);a?a[1].push(r):e.set(i,[t,[r]])}function Ph(t){return e.tryCast(e.getRootDeclaration(t),e.isParameter)}function wh(t,r){if(!(8388608&t.flags)){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(!(e.isAmbientModule(u)||(e.isVariableDeclaration(u)&&e.isForInOrOfStatement(u.parent.parent)||Oh(u))&&Eh(u.name)))if(Oh(u))Fh(n,254===(o=u).kind?o:255===o.kind?o.parent:o.parent.parent,u,N);else if(e.isBindingElement(u)&&e.isObjectBindingPattern(u.parent)){u!==e.last(u.parent.elements)&&e.last(u.parent.elements).dotDotDotToken||Fh(i,u.parent,u,N)}else if(e.isVariableDeclaration(u))Fh(a,u.parent,u,N);else{var l=t.valueDeclaration&&Ph(t.valueDeclaration),_=t.valueDeclaration&&e.getNameOfDeclaration(t.valueDeclaration);l&&_?e.isParameterPropertyDeclaration(l,l.parent)||e.parameterIsThisKeyword(l)||Eh(_)||r(l,1,e.createDiagnosticForNode(_,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(t))):Th(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?255===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];Th(c,e.idText(c.name),r)}})),i.forEach((function(t){var n=t[0],i=t[1],o=Ph(n.parent)?1:0;if(n.elements.length===i.length)1===i.length&&241===n.parent.kind&&242===n.parent.parent.kind?Fh(a,n.parent.parent,n.parent,N):r(n,o,1===i.length?e.createDiagnosticForNode(n,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Ih(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,Ih(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,Ih(e.first(i).name)):e.createDiagnosticForNode(224===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,Ih(s.name)))}}))}}function Ih(t){switch(t.kind){case 75:return e.idText(t);case 189:case 188:return Ih(e.cast(e.first(t.elements),e.isBindingElement).name);default:return e.Debug.assertNever(t)}}function Oh(e){return 254===e.kind||257===e.kind||255===e.kind}function Mh(t){if(222===t.kind&&xx(t),e.isFunctionOrModuleBlock(t)){var r=mr;e.forEach(t.statements,Gv),mr=r}else e.forEach(t.statements,Gv);t.locals&&Dh(t)}function Lh(t,r,n){if(!r||r.escapedText!==n)return!1;if(158===t.kind||157===t.kind||160===t.kind||159===t.kind||162===t.kind||163===t.kind)return!1;if(8388608&t.flags)return!1;var i=e.getRootDeclaration(t);return 155!==i.kind||!e.nodeIsMissing(i.parent.body)}function Rh(t){e.findAncestor(t,(function(r){return!!(4&wb(r))&&(75!==t.kind?Xr(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Xr(t,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0)}))}function Bh(t){e.findAncestor(t,(function(r){return!!(8&wb(r))&&(75!==t.kind?Xr(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Xr(t,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0)}))}function jh(t,r){if(!(z>=e.ModuleKind.ES2015||K.noEmit)&&(Lh(t,r,"require")||Lh(t,r,"exports"))&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=Yi(t);288===n.kind&&e.isExternalOrCommonJsModule(n)&&Xr(r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(r),e.declarationNameToString(r))}}function Kh(t,r){if(!(J>=4||K.noEmit)&&Lh(t,r,"Promise")&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=Yi(t);288===n.kind&&e.isExternalOrCommonJsModule(n)&&2048&n.flags&&Xr(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 Jh(e){return e===ve?he:e===bt?vt:e}function zh(t){if(vh(t),e.isBindingElement(t)||Gv(t.type),t.name){if(153===t.name.kind&&(Lf(t.name),t.initializer&&ky(t.initializer)),190===t.kind){188===t.parent.kind&&J<99&&Gb(t,4),t.propertyName&&153===t.propertyName.kind&&Lf(t.propertyName);var r=t.parent.parent,n=$i(r),i=t.propertyName||t.name;if(n&&!e.isBindingPattern(i)){var a=ou(i);if(_o(a)){var o=vs(n,yo(a));o&&(Fm(o,void 0,!1),cm(r,!!r.initializer&&101===r.initializer.kind,n,o))}}}if(e.isBindingPattern(t.name)&&(189===t.name.kind&&J<2&&K.downlevelIteration&&Gb(t,512),e.forEach(t.name.elements,Gv)),t.initializer&&155===e.getRootDeclaration(t).kind&&e.nodeIsMissing(e.getContainingFunction(t).body))Xr(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&&230!==t.parent.parent.kind,c=0===t.name.elements.length;if(s||c){var u=ha(t);if(s){var l=ky(t.initializer);V&&c?ym(l,t):Ml(l,ha(t),t,t.initializer)}c&&(e.isArrayBindingPattern(t.name)?Zh(65,u,Se,t):V&&ym(u,t))}}else{var _=ri(t),d=Jh(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)||230===t.parent.parent.kind||Ml(ky(p),d,t,p,void 0);_.declarations.length>1&&e.some(_.declarations,(function(r){return r!==t&&e.isVariableLike(r)&&!Vh(r,t)}))&&Xr(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}else{var f=Jh(ha(t));d===xe||f===xe||El(d,f)||67108864&_.flags||Uh(_.valueDeclaration,d,t,f),t.initializer&&Ml(ky(t.initializer),f,t,t.initializer,void 0),Vh(t,_.valueDeclaration)||Xr(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}158!==t.kind&&157!==t.kind&&(ch(t),241!==t.kind&&190!==t.kind||function(t){if(0==(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(241!==t.kind||t.initializer)){var r=ri(t);if(1&r.flags){if(!e.isIdentifier(t.name))return e.Debug.fail();var n=gn(t,t.name.escapedText,3,void 0,void 0,!1);if(n&&n!==r&&2&n.flags&&3&om(n)){var i=e.getAncestor(n.valueDeclaration,242),a=224===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!(a&&(222===a.kind&&e.isFunctionLike(a.parent)||249===a.kind||248===a.kind||288===a.kind))){var o=Pi(n);Xr(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}}(t),jh(t,t.name),Kh(t,t.name))}}}function Uh(t,r,n,i){var a=e.getNameOfDeclaration(n),o=158===n.kind||157===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=Xr(a,o,s,Ii(r),Ii(i));t&&e.addRelatedInfo(c,e.createDiagnosticForNode(t,e.Diagnostics._0_was_also_declared_here,s))}function Vh(t,r){if(155===t.kind&&241===r.kind||241===t.kind&&155===r.kind)return!0;if(e.hasQuestionToken(t)!==e.hasQuestionToken(r))return!1;return e.getSelectedModifierFlags(t,504)===e.getSelectedModifierFlags(r,504)}function qh(t){return function(t){if(230!==t.parent.parent.kind&&231!==t.parent.parent.kind)if(8388608&t.flags)fx(t);else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return vx(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(t))return vx(t,e.Diagnostics.const_declarations_must_be_initialized)}if(t.exclamationToken&&(224!==t.parent.parent.kind||!t.type||t.initializer||8388608&t.flags))return vx(t.exclamationToken,e.Diagnostics.Definite_assignment_assertions_can_only_be_used_along_with_a_type_annotation);K.module===e.ModuleKind.ES2015||K.module===e.ModuleKind.ESNext||K.module===e.ModuleKind.System||K.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 vx(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(114===r.originalKeywordKind)return vx(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),zh(t)}function Wh(t){return function(t){if(t.dotDotDotToken){var r=t.parent.elements;if(t!==e.last(r))return vx(t,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(Qb(r,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),t.propertyName)return vx(t.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name);if(t.initializer)hx(t,t.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}(t),zh(t)}function Gh(t){Yb(t)||mx(t.declarationList)||function(t){if(!function e(t){switch(t.kind){case 226:case 227:case 228:case 235:case 229:case 230:case 231:return!1;case 237:return e(t.parent)}return!0}(t.parent)){if(e.isLet(t.declarationList))return vx(t,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);if(e.isVarConst(t.declarationList))vx(t,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}(t),e.forEach(t.declarationList.declarations,Gv)}function Hh(t){xx(t),function(t,r){if(!V)return;var n=e.isIdentifier(t.expression)?t.expression:e.isPropertyAccessExpression(t.expression)?t.expression.name:void 0;if(!n)return;if(R_(r))return;if(0===xs(r,0).length)return;var i=cb(n);if(!i)return;e.forEachChild(t.thenStatement,(function t(r){if(e.isIdentifier(r)){var n=cb(r);if(n&&n.id===i.id)return!0}return e.forEachChild(r,t)}))||Xr(t.expression,e.Diagnostics.This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it_instead)}(t,Yh(t.expression)),Gv(t.thenStatement),223===t.thenStatement.kind&&Xr(t.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),Gv(t.elseStatement)}function Yh(t,r){var n=zy(t,r);return 16384&n.flags&&Xr(t,e.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function Xh(t){ux(t);var r=dm(zy(t.expression));if(242===t.initializer.kind){var n=t.initializer.declarations[0];n&&e.isBindingPattern(n.name)&&Xr(n.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),Qh(t)}else{var i=t.initializer,a=zy(i);191===i.kind||192===i.kind?Xr(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Fl(function(e){var t=_u(lu(e));return 131072&t.flags?Ne:t}(r),a)?dy(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):Xr(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}r!==Be&&my(r,126091264)||Xr(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,Ii(r)),Gv(t.statement),t.locals&&Dh(t)}function Qh(e){var t=e.initializer;t.declarations.length>=1&&qh(t.declarations[0])}function $h(e,t){return Zh(t?15:13,lm(e),Se,e)}function Zh(e,t,r,n){return Qi(t)?t:ev(e,t,r,n,!0)||he}function ev(t,r,n,i,a){var o=0!=(2&t);if(r!==Be){var s=J>=2,c=!s&&K.downlevelIteration;if(s||c||o){var u=iv(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&&Ol(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,m=e.filter(f,(function(e){return!(132&e.flags)}));m!==f&&(_=Qc(m,2))}else 132&_.flags&&(_=Be);if((p=_!==r)&&(J<1&&i&&(Xr(i,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),d=!0),131072&_.flags))return Ne}if(!b_(_)){if(i&&!d){var g=tv(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]:g?[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]:g?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:[e.Diagnostics.Type_0_is_not_an_array_type,!0],h=y[0];Zr(i,y[1]&&!!uh(_),h,Ii(_))}return p?Ne:void 0}var v=Es(_,1);return p&&v?132&v.flags?Ne:Qc([v,Ne],2):v}_v(i,r,o)}function tv(e,t,r,n){if(!Qi(r)){var i=iv(r,e,n);return i&&i[O(t)]}}function rv(e,t,r){if(void 0===e&&(e=Be),void 0===t&&(t=Be),void 0===r&&(r=De),67359327&e.flags&&180227&t.flags&&180227&r.flags){var n=oc([e,t,r]),i=nr.get(n);return i||(i={yieldType:e,returnType:t,nextType:r},nr.set(n,i)),i}return{yieldType:e,returnType:t,nextType:r}}function nv(t){for(var r,n,i,a=0,o=t;a<o.length;a++){var s=o[a];if(void 0!==s&&s!==ir){if(s===ar)return ar;r=e.append(r,s.yieldType),n=e.append(n,s.returnType),i=e.append(i,s.nextType)}}return r||n||i?rv(r&&Qc(r),n&&Qc(n),i&&iu(i)):ir}function iv(t,r,n){if(Qi(t))return ar;if(!(1048576&t.flags)){var i=ov(t,r,n);return i===ir?void(n&&_v(n,t,!!(2&r))):i}var a,o=2&r?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",s=t[o];if(s)return s===ir?void 0:s;for(var c=0,u=t.types;c<u.length;c++){var l=ov(u[c],r,n);l===ir?n&&(_v(n,t,!!(2&r)),n=void 0):a=e.append(a,l)}var _=a?nv(a):ir;return t[o]=_,_===ir?void 0:_}function av(e,t){if(e===ir)return ir;if(e===ar)return ar;var r=e.yieldType,n=e.returnType,i=e.nextType;return rv(dh(r,t)||he,dh(n,t)||he,i)}function ov(e,t,r){if(Qi(e))return ar;var n;if(2&t&&(n=sv(e,cr)||uv(e,cr)))return n;if(1&t&&(n=sv(e,ur)||uv(e,ur))){if(!(2&t))return n;if(n!==ir)return e.iterationTypesOfAsyncIterable=av(n,r)}if(2&t&&(n=lv(e,cr,r))!==ir)return n;if(1&t&&(n=lv(e,ur,r))!==ir)return 2&t?e.iterationTypesOfAsyncIterable=n?av(n,r):ir:n;return ir}function sv(e,t){return e[t.iterableCacheKey]}function cv(e,t){var r=sv(e,t)||lv(e,t,void 0);return r===ir?sr:r}function uv(e,t){var r;if(Ia(e,r=t.getGlobalIterableType(!1))||Ia(e,r=t.getGlobalIterableIteratorType(!1))){var n=_c(e)[0],i=cv(r,t),a=i.returnType,o=i.nextType;return e[t.iterableCacheKey]=rv(n,a,o)}if(Ia(e,t.getGlobalGeneratorType(!1))){var s=_c(e);n=s[0],a=s[1],o=s[2];return e[t.iterableCacheKey]=rv(n,a,o)}}function lv(t,r,n){var i=vs(t,e.getPropertyNameForKnownSymbolName(r.iteratorSymbolName)),a=!i||16777216&i.flags?void 0:wa(i);if(Qi(a))return t[r.iterableCacheKey]=ar;var o=a?xs(a,0):void 0;if(!e.some(o))return t[r.iterableCacheKey]=ir;var s=dv(Qc(e.map(o,zs),2),r,n)||ir;return t[r.iterableCacheKey]=s}function _v(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;Zr(t,!!uh(r),i,Ii(r))}function dv(e,t,r){if(Qi(e))return ar;var n=pv(e,t)||function(e,t){var r=t.getGlobalIterableIteratorType(!1);if(Ia(e,r)){var n=_c(e)[0],i=pv(r,t)||vv(r,t,void 0),a=i===ir?sr:i,o=a.returnType,s=a.nextType;return e[t.iteratorCacheKey]=rv(n,o,s)}if(Ia(e,t.getGlobalIteratorType(!1))||Ia(e,t.getGlobalGeneratorType(!1))){var c=_c(e);n=c[0],o=c[1],s=c[2];return e[t.iteratorCacheKey]=rv(n,o,s)}}(e,t)||vv(e,t,r);return n===ir?void 0:n}function pv(e,t){return e[t.iteratorCacheKey]}function fv(e,t){var r=Xi(e,"done")||Pe;return Fl(0===t?Pe:Ie,r)}function mv(e){return fv(e,0)}function gv(e){return fv(e,1)}function yv(e){if(Qi(e))return ar;var t,r=e.iterationTypesOfIteratorResult;if(r)return r;if(Ia(e,(t=!1,Ot||(Ot=Fc("IteratorYieldResult",1,t))||Qe))){var n=_c(e)[0];return e.iterationTypesOfIteratorResult=rv(n,void 0,void 0)}if(Ia(e,function(e){return Mt||(Mt=Fc("IteratorReturnResult",1,e))||Qe}(!1))){var i=_c(e)[0];return e.iterationTypesOfIteratorResult=rv(void 0,i,void 0)}var a=_p(e,mv),o=a!==Be?Xi(a,"value"):void 0,s=_p(e,gv),c=s!==Be?Xi(s,"value"):void 0;return e.iterationTypesOfIteratorResult=o||c?rv(o,c||Re,void 0):ir}function hv(t,r,n,i){var a=vs(t,n);if(a||"next"===n){var o=!a||"next"===n&&16777216&a.flags?void 0:"next"===n?wa(a):Hd(wa(a),2097152);if(Qi(o))return"next"===n?ar:or;var s,c,u,l,_,d=o?xs(o,0):e.emptyArray;if(0===d.length){if(i)Xr(i,"next"===n?r.mustHaveANextMethodDiagnostic:r.mustBeAMethodDiagnostic,n);return"next"===n?ar:void 0}for(var p=0,f=d;p<f.length;p++){var m=f[p];"throw"!==n&&e.some(m.parameters)&&(s=e.append(s,Mg(m,0))),c=e.append(c,zs(m))}if("throw"!==n){var g=s?Qc(s):De;if("next"===n)l=g;else if("return"===n){var y=r.resolveIterationType(g,i)||he;u=e.append(u,y)}}var h=c?Qc(c,2):Be,v=yv(r.resolveIterationType(h,i)||he);return v===ir?(i&&Xr(i,r.mustHaveAValueDiagnostic,n),_=he,u=e.append(u,he)):(_=v.yieldType,u=e.append(u,v.returnType)),rv(_,Qc(u),l)}}function vv(e,t,r){var n=nv([hv(e,t,"next",r),hv(e,t,"return",r),hv(e,t,"throw",r)]);return e[t.iteratorCacheKey]=n}function bv(e,t,r){if(!Qi(t)){var n=xv(t,r);return n&&n[O(e)]}}function xv(e,t){if(Qi(e))return ar;var r=t?cr:ur;return iv(e,t?2:1,void 0)||dv(e,r,void 0)}function Dv(t){xx(t)||function(t){var r=t;for(;r;){if(e.isFunctionLike(r))return vx(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(r.kind){case 237:if(t.label&&r.label.escapedText===t.label.escapedText)return!!(232===t.kind&&!e.isIterationStatement(r.statement,!0))&&vx(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);break;case 236:if(233===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=233===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 vx(t,n)}n=233===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;vx(t,n)}(t)}function Sv(e,t){var r=!!(2&t);return!!(1&t)?bv(1,e,r)||xe:r?lh(e)||xe:e}function Tv(t,r){var n=Sv(r,e.getFunctionFlags(t));return!!n&&fy(n,16387)}function Ev(t){xx(t)||void 0===t.expression&&function(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!gx(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return jr.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,r,n,i,a)),!0}}(t,e.Diagnostics.Line_break_not_permitted_here),t.expression&&zy(t.expression)}function Cv(t){var r,n=ec(t.symbol,1),i=ec(t.symbol,0),a=Es(t,0),o=Es(t,1);if(a||o){e.forEach($o(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)&&go(l)){var _=ri(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(Wa(t),(function(e){return Es(e,0)&&Es(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(1!==o||(c?If(c):Mf(t.escapedName))){var u;if(s&&c&&(208===s.kind||153===c.kind||t.parent===n.symbol))u=s;else if(i)u=i;else if(2&e.getObjectFlags(n)){u=e.forEach(Wa(n),(function(e){return Zo(e,t.escapedName)&&Es(e,o)}))?void 0:n.symbol.declarations[0]}if(u&&!Fl(r,a))Xr(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,Pi(t),Ii(r),Ii(a))}}}r&&!Fl(o,a)&&Xr(r,e.Diagnostics.Numeric_index_type_0_is_not_assignable_to_string_index_type_1,Ii(o),Ii(a))}function kv(e,t){switch(e.escapedText){case"any":case"unknown":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":Xr(e,t,e.escapedText)}}function Nv(t){if(t)for(var r=!1,n=0;n<t.length;n++){var i=t[n];if(Uy(i),a){i.default?(r=!0,Av(i.default,t,n)):r&&Xr(i,e.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var o=0;o<n;o++)t[o].symbol===i.symbol&&Xr(i.name,e.Diagnostics.Duplicate_identifier_0,e.declarationNameToString(i.name))}}}function Av(t,r,n){!function t(i){if(168===i.kind){var a=Tc(i);if(262144&a.flags)for(var o=n;o<r.length;o++)a.symbol===ri(r[o])&&Xr(i,e.Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}e.forEachChild(i,t)}(t)}function Fv(t){if(1!==t.declarations.length){var r=_n(t);if(!r.typeParametersChecked){r.typeParametersChecked=!0;var n=function(t){return e.filter(t.declarations,(function(e){return 244===e.kind||245===e.kind}))}(t);if(n.length<=1)return;if(!function(t,r){for(var n=e.length(r),i=Os(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&&Yu(p),m=ns(d);if(f&&m&&!El(f,m))return!1;var g=_.default&&Yu(_.default),y=ps(d);if(g&&y&&!El(g,y))return!1}}return!0}(n,ro(t).localTypeParameters))for(var i=Pi(t),a=0,o=n;a<o.length;a++){Xr(o[a].name,e.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,i)}}}}function Pv(t){!function(t){var r=e.getSourceFileOfNode(t);(function(t){var r=!1,n=!1;if(!Yb(t)&&t.heritageClauses)for(var i=0,a=t.heritageClauses;i<a.length;i++){var o=a[i];if(89===o.token){if(r)return yx(o,e.Diagnostics.extends_clause_already_seen);if(n)return yx(o,e.Diagnostics.extends_clause_must_precede_implements_clause);if(o.types.length>1)return yx(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);r=!0}else{if(e.Debug.assert(112===o.token),n)return yx(o,e.Diagnostics.implements_clause_already_seen);n=!0}nx(o)}})(t)||$b(t.typeParameters,r)}(t),vh(t),t.name&&(kv(t.name,e.Diagnostics.Class_name_cannot_be_0),jh(t,t.name),Kh(t,t.name),8388608&t.flags||function(t){1===J&&"Object"===t.escapedText&&z!==e.ModuleKind.ES2015&&z!==e.ModuleKind.ESNext&&Xr(t,e.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,e.ModuleKind[z])}(t.name)),Nv(e.getEffectiveTypeParameterDeclarations(t)),ch(t);var r=ri(t),n=ro(r),i=Do(n),o=wa(r);Fv(r),function(t){for(var r=e.createUnderscoreEscapedMap(),n=e.createUnderscoreEscapedMap(),i=0,a=t.members;i<a.length;i++){var o=a[i];if(161===o.kind)for(var s=0,c=o.parameters;s<c.length;s++){var u=c[s];e.isParameterPropertyDeclaration(u,o)&&!e.isBindingPattern(u.name)&&p(r,u.name,u.name.escapedText,3)}else{var l=e.hasModifier(o,32)?n:r,_=o.name,d=_&&e.getPropertyNameForPropertyNameNode(_);if(_&&d)switch(o.kind){case 162:p(l,_,d,1);break;case 163:p(l,_,d,2);break;case 158:p(l,_,d,3);break;case 160:p(l,_,d,8)}}}function p(t,r,n,i){var a=t.get(n);a?8&a?8!==i&&Xr(r,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(r)):a&i?Xr(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":Xr(a,e.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,o,zi(ri(t)))}}}}(t);var s=e.getEffectiveBaseTypeNode(t);if(s){e.forEach(s.typeArguments,Gv),J<2&&Gb(s.parent,1);var c=e.getClassExtendsHeritageElement(t);c&&c!==s&&zy(c.expression);var u=Wa(n);if(u.length&&a){var l=u[0],_=qa(n),d=ms(_);if(function(t,r){var n=xs(t,1);if(n.length){var i=n[0].declaration;if(i&&e.hasModifier(i,8)){var a=e.getClassLikeDeclarationOfSymbol(t.symbol);ab(r,a)||Xr(r,e.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,jn(t.symbol))}}}(d,s),Gv(s.expression),e.some(s.typeArguments)){e.forEach(s.typeArguments,Gv);for(var p=0,f=Ua(d,s.typeArguments,s);p<f.length;p++){if(!eh(s,f[p].typeParameters))break}}if(Ol(i,x=Do(l,n.thisType),void 0)?Ol(o,Tl(d),t.name||t,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1):wv(t,i,x,e.Diagnostics.Class_0_incorrectly_extends_base_class_1),8650752&_.flags&&!Ka(o)&&Xr(t.name||t,e.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any),!(d.symbol&&32&d.symbol.flags||8650752&_.flags)){var m=Va(d,s.typeArguments,s);e.forEach(m,(function(e){return!Sg(e.declaration)&&!El(zs(e),l)}))&&Xr(s.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}!function(t,r){var n=ts(r);e:for(var i=0,a=n;i<a.length;i++){var o=a[i],s=Iv(o);if(!(4194304&s.flags)){var c=Iv(Zo(t,s.escapedName)),u=e.getDeclarationModifierFlagsFromSymbol(s);if(e.Debug.assert(!!c,"derived should point to something, even if it is the base class' declaration."),c===s){var l=e.getClassLikeDeclarationOfSymbol(t.symbol);if(128&u&&(!l||!e.hasModifier(l,128))){for(var _=0,d=Wa(t);_<d.length;_++){var p=d[_];if(p!==r){var f=Zo(p,s.escapedName),m=f&&Iv(f);if(m&&m!==s)continue e}}213===l.kind?Xr(l,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Pi(o),Ii(r)):Xr(l,e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Ii(t),Pi(o),Ii(r))}}else{var g=e.getDeclarationModifierFlagsFromSymbol(c);if(8&u||8&g)continue;var y=void 0,h=98308&s.flags,v=98308&c.flags;if(h&&v){if(!K.useDefineForClassFields||128&u&&!(s.valueDeclaration&&e.isPropertyDeclaration(s.valueDeclaration)&&s.valueDeclaration.initializer)||s.valueDeclaration&&245===s.valueDeclaration.parent.kind||c.valueDeclaration&&e.isBinaryExpression(c.valueDeclaration))continue;if(4!==h&&4===v)y=e.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_property;else{if(4!==h||4===v){var b=e.find(c.declarations,(function(e){return 158===e.kind&&!e.initializer}));if(b&&!(33554432&c.flags)&&!(128&u)&&!(128&g)&&!c.declarations.some((function(e){return 8388608&e.flags}))){var x=ui(e.getClassLikeDeclarationOfSymbol(t.symbol)),D=b.name;if(b.exclamationToken||!x||!e.isIdentifier(D)||!V||!Mv(D,t,x)){var S=e.Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;Xr(e.getNameOfDeclaration(c.valueDeclaration)||c.valueDeclaration,S,Pi(s),Ii(r))}}continue}y=e.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_accessor}}else if(sm(s)){if(sm(c)||4&c.flags)continue;e.Debug.assert(!!(98304&c.flags)),y=e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else y=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;Xr(e.getNameOfDeclaration(c.valueDeclaration)||c.valueDeclaration,y,Ii(r),Pi(s),Ii(t))}}}}(n,l)}}var g=e.getClassImplementsHeritageClauseElements(t);if(g)for(var y=0,h=g;y<h.length;y++){var v=h[y];if(e.isEntityNameExpression(v.expression)||Xr(v.expression,e.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),rh(v),a){var b=Yu(v);if(b!==xe)if(Ga(b)){var x,D=b.symbol&&32&b.symbol.flags?e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:e.Diagnostics.Class_0_incorrectly_implements_interface_1;Ol(i,x=Do(b,n.thisType),void 0)||wv(t,i,x,D)}else Xr(v,e.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}a&&(Cv(n),Hy(t),function(t){if(!V||!G||8388608&t.flags)return;for(var r=ui(t),n=0,i=t.members;n<i.length;n++){var a=i[n];if(!(2&e.getModifierFlags(a))&&Ov(a)){var o=a.name;if(e.isIdentifier(o)){var s=wa(ri(a));3&s.flags||32768&R_(s)||r&&Mv(o,s,r)||Xr(a.name,e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,e.declarationNameToString(o))}}}}(t))}function wv(t,r,n,i){for(var a=!1,o=function(t){if(e.hasStaticModifier(t))return"continue";var i=t.name&&cb(t.name)||cb(t);if(i){var o=vs(r,i.escapedName),s=vs(n,i.escapedName);if(o&&s){Ol(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,Pi(i),Ii(r),Ii(n))}))||(a=!0)}}},s=0,c=t.members;s<c.length;s++){o(c[s])}a||Ol(r,n,t.name||t,i)}function Iv(t){return 1&e.getCheckFlags(t)?t.target:t}function Ov(t){return 158===t.kind&&!e.hasModifier(t,160)&&!t.exclamationToken&&!t.initializer}function Mv(t,r,n){var i=e.createPropertyAccess(e.createThis(),t);return i.expression.parent=i,i.parent=n,i.flowNode=n.returnFlowNode,!(32768&R_(Op(i,r,z_(r))))}function Lv(t){if(Yb(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(89!==a.token)return e.Debug.assert(112===a.token),yx(a,e.Diagnostics.Interface_declaration_cannot_have_implements_clause);if(r)return yx(a,e.Diagnostics.extends_clause_already_seen);r=!0,nx(a)}}(t),Nv(t.typeParameters),a){kv(t.name,e.Diagnostics.Interface_name_cannot_be_0),ch(t);var r=ri(t);if(Fv(r),t===e.getDeclarationOfKind(r,245)){var n=ro(r),i=Do(n);if(function(t,r){var n=Wa(t);if(n.length<2)return!0;var i=e.createUnderscoreEscapedMap();e.forEach(lo(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=ts(Do(c,t.thisType));u<l.length;u++){var _=l[u],d=i.get(_.escapedName);if(d){if(d.containingType!==t&&0===f_(d.prop,_,Cl)){a=!1;var p=Ii(d.containingType),f=Ii(c),m=e.chainDiagnosticMessages(void 0,e.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,Pi(_),p,f);m=e.chainDiagnosticMessages(m,e.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,Ii(t),p,f),jr.add(e.createDiagnosticForNodeFromMessageChain(r,m))}}else i.set(_.escapedName,{prop:_,containingType:c})}return a}(n,t.name)){for(var o=0,s=Wa(n);o<s.length;o++){Ol(i,Do(s[o],n.thisType),t.name,e.Diagnostics.Interface_0_incorrectly_extends_interface_1)}Cv(n)}}Gy(t)}e.forEach(e.getInterfaceBaseTypeNodes(t),(function(t){e.isEntityNameExpression(t.expression)||Xr(t.expression,e.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),rh(t)})),e.forEach(t.members,Gv),a&&(Hy(t),Dh(t))}function Rv(e){var t=dn(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=Bv(a,r);dn(a).enumMemberValue=o,r="number"==typeof o?o+1:void 0}}}function Bv(t,r){if(Zi(t.name))Xr(t.name,e.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var n=e.getTextOfPropertyName(t.name);Mf(n)&&!Of(n)&&Xr(t.name,e.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}return t.initializer?function(t){var r=Qa(ri(t.parent)),n=e.isEnumConst(t.parent),i=t.initializer,a=1!==r||Xa(t)?function r(n){switch(n.kind){case 206: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 208:var a=r(n.left),s=r(n.right);if("number"==typeof a&&"number"==typeof s)switch(n.operatorToken.kind){case 51:return a|s;case 50:return a&s;case 48:return a>>s;case 49:return a>>>s;case 47:return a<<s;case 52:return a^s;case 41:return a*s;case 43:return a/s;case 39:return a+s;case 40:return a-s;case 44:return a%s;case 42:return Math.pow(a,s)}else if("string"==typeof a&&"string"==typeof s&&39===n.operatorToken.kind)return a+s;break;case 10:case 14:return n.text;case 8:return Dx(n),+n.text;case 199:return r(n.expression);case 75:var c=n;return Of(c.escapedText)?+c.escapedText:e.nodeIsMissing(n)?0:o(n,ri(t.parent),c.escapedText);case 194:case 193:var u=n;if(function t(r){return 75===r.kind||193===r.kind&&t(r.expression)||194===r.kind&&t(r.expression)&&e.isStringLiteralLike(r.argumentExpression)}(u)){var l=Ky(u.expression);if(l.symbol&&384&l.symbol.flags){var _=void 0;return _=193===u.kind?u.name.escapedText:e.escapeLeadingUnderscores(e.cast(u.argumentExpression,e.isLiteralExpression).text),o(n,l.symbol,_)}}}return}(i):void 0;if(void 0!==a)n&&"number"==typeof a&&!isFinite(a)&&Xr(i,isNaN(a)?e.Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:e.Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value);else{if(1===r)return Xr(i,e.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;n?Xr(i,e.Diagnostics.const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values):8388608&t.parent.flags?Xr(i,e.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):Ol(zy(i),ro(ri(t.parent)),i,void 0)}return a;function o(r,n,i){var a=n.exports.get(i);if(a){var o=a.valueDeclaration;if(o!==t)return mn(o,t)?Ib(o):(Xr(r,e.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0)}}}(t):8388608&t.parent.flags&&!e.isEnumConst(t.parent)&&0===Qa(ri(t.parent))?void 0:void 0!==r?r:void Xr(t.name,e.Diagnostics.Enum_member_must_have_initializer)}function jv(t){if(a){var r=e.isGlobalScopeAugmentation(t),n=8388608&t.flags;r&&!n&&Xr(t.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var i=e.isAmbientModule(t);if(Vv(t,i?e.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:e.Diagnostics.A_namespace_declaration_is_only_allowed_in_a_namespace_or_module))return;Yb(t)||n||10!==t.name.kind||vx(t.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(t.name)&&(jh(t,t.name),Kh(t,t.name)),ch(t);var o=ri(t);if(512&o.flags&&!n&&o.declarations.length>1&&F(t,!!K.preserveConstEnums||!!K.isolatedModules)){var s=function(t){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];if((244===i.kind||243===i.kind&&e.nodeIsPresent(i.body))&&!(8388608&i.flags))return i}}(o);s&&(e.getSourceFileOfNode(t)!==e.getSourceFileOfNode(s)?Xr(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&&Xr(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,244);c&&(_=t,d=c,p=e.getEnclosingBlockScopeContainer(_),f=e.getEnclosingBlockScopeContainer(d),pn(p)?pn(f):!pn(f)&&p===f)&&(dn(t).flags|=32768)}if(i)if(e.isExternalModuleAugmentation(t)){if((r||33554432&ri(t).flags)&&t.body)for(var u=0,l=t.body.statements;u<l.length;u++){Kv(l[u],r)}}else pn(t.parent)?r?Xr(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))&&Xr(t.name,e.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):Xr(t.name,r?e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:e.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}var _,d,p,f;t.body&&(Gv(t.body),e.isGlobalScopeAugmentation(t)||Dh(t))}function Kv(t,r){switch(t.kind){case 224:for(var n=0,i=t.declarationList.declarations;n<i.length;n++){Kv(i[n],r)}break;case 258:case 259:yx(t,e.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 252:case 253:yx(t,e.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 190:case 241:var a=t.name;if(e.isBindingPattern(a)){for(var o=0,s=a.elements;o<s.length;o++){Kv(s[o],r)}break}case 244:case 247:case 243:case 245:case 248:case 246:if(r)return;var c=ri(t);if(c){var u=!(33554432&c.flags);u||(u=!!c.parent&&e.isExternalModuleAugmentation(c.parent.declarations[0]))}}}function Jv(t){var r=e.getExternalModuleName(t);if(!r||e.nodeIsMissing(r))return!1;if(!e.isStringLiteral(r))return Xr(r,e.Diagnostics.String_literal_expected),!1;var n=249===t.parent.kind&&e.isAmbientModule(t.parent.parent);return 288===t.parent.kind||n?!(n&&e.isExternalModuleNameRelative(r.text)&&!ji(t))||(Xr(t,e.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1):(Xr(r,259===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 zv(t){var r=ri(t),n=Mn(r);if(!(67108864&r.flags)&&n!==ge){var i=(1160127&(r=ti(r.exportSymbol||r)).flags?111551:0)|(788968&r.flags?788968:0)|(1920&r.flags?1920:0);if(n.flags&i)Xr(t,261===t.kind?e.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:e.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0,Pi(r));!K.isolatedModules||261!==t.kind||111551&n.flags||8388608&t.flags||Xr(t,e.Diagnostics.Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided)}}function Uv(e){jh(e,e.name),Kh(e,e.name),zv(e)}function Vv(e,t){var r=288===e.parent.kind||249===e.parent.kind||248===e.parent.kind;return r||yx(e,t),!r}function qv(t){if(zv(t),e.getEmitDeclarations(K)&&Vi(t.propertyName||t.name,!0),!t.parent.parent.moduleSpecifier){var r=t.propertyName||t.name,n=gn(r,r.escapedText,2998271,void 0,void 0,!0);if(n&&(n===te||n===re||pn(Yi(n.declarations[0]))))Xr(r,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(r));else{Ln(t);var i=n&&(2097152&n.flags?Mn(n):n);(!i||i===ge||111551&i.flags)&&ky(t.propertyName||t.name)}}}function Wv(t){var r=ri(t),n=_n(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=En(i)||i.valueDeclaration;ji(a)||e.isInJSFile(a)||Xr(a,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var o=$n(r);o&&o.forEach((function(t,r){var n=t.declarations,i=t.flags;if("__export"!==r&&!(1984&i)){var a=e.countWhere(n,k);if(!(524288&i&&a<=2)&&a>1)for(var o=0,s=n;o<s.length;o++){var c=s[o];P(c)&&jr.add(e.createDiagnosticForNode(c,e.Diagnostics.Cannot_redeclare_exported_variable_0,e.unescapeLeadingUnderscores(r)))}}})),n.exportsChecked=!0}}function Gv(t){if(t){var r=l;l=t,x=0,function(t){e.isInJSFile(t)&&e.forEach(t.jsDoc,(function(t){var r=t.tags;return e.forEach(r,Gv)}));var r=t.kind;if(o)switch(r){case 248:case 244:case 245:case 243:o.throwIfCancellationRequested()}r>=224&&r<=240&&t.flowNode&&!Fp(t.flowNode)&&$r(!1===K.allowUnreachableCode,t,e.Diagnostics.Unreachable_code_detected);switch(r){case 154:return Uy(t);case 155:return Vy(t);case 158:case 157:return Yy(t);case 169:case 170:case 164:case 165:case 166:return Wy(t);case 160:case 159:return function(t){dx(t)||ax(t.name),xh(t),e.hasModifier(t,128)&&160===t.kind&&t.body&&Xr(t,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(t.name))}(t);case 161:return Xy(t);case 162:case 163:return Qy(t);case 168:return rh(t);case 167:return function(t){var r=function(e){switch(e.parent.kind){case 201:case 164:case 243:case 200:case 169:case 160:case 159:var t=e.parent;if(e===t.type)return t}}(t);if(r){var n=Ls(r),i=Js(n);if(i){Gv(t.type);var a=t.parameterName;if(0===i.kind||2===i.kind)Hu(a);else if(i.parameterIndex>=0){if(M(n)&&i.parameterIndex===n.parameters.length-1)Xr(a,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter);else if(i.type){Ol(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)&&qy(u,a,i.parameterName)){o=!0;break}}o||Xr(t.parameterName,e.Diagnostics.Cannot_find_parameter_0,i.parameterName)}}}else Xr(t,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods)}(t);case 171:return function(e){Cc(e)}(t);case 172:return function(t){e.forEach(t.members,Gv),a&&(Cv(Ou(t)),Hy(t),Gy(t))}(t);case 173:return function(e){Gv(e.elementType)}(t);case 174:return function(t){for(var r=t.elementTypes,n=!1,i=0;i<r.length;i++){var a=r[i];if(176===a.kind){if(i!==r.length-1){vx(a,e.Diagnostics.A_rest_element_must_be_last_in_a_tuple_type);break}y_(Yu(a.type))||Xr(a,e.Diagnostics.A_rest_element_type_must_be_an_array_type)}else if(175===a.kind)n=!0;else if(n){vx(a,e.Diagnostics.A_required_element_cannot_follow_an_optional_element);break}}e.forEach(t.elementTypes,Gv)}(t);case 177:case 178:return function(t){e.forEach(t.types,Gv)}(t);case 181:case 175:case 176:return Gv(t.type);case 182:return function(e){Hu(e)}(t);case 183:return ih(t);case 179:return function(t){e.forEachChild(t,Gv)}(t);case 180:return function(t){e.findAncestor(t,(function(e){return e.parent&&179===e.parent.kind&&e.parent.extendsType===e}))||vx(t,e.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),Gv(t.typeParameter),Dh(t)}(t);case 187:return function(e){Gv(e.argument),Yu(e)}(t);case 305:return function(t){var r=e.getJSDocHost(t);if(e.isClassDeclaration(r)||e.isClassExpression(r)){var n=e.getJSDocTags(r).filter(e.isJSDocAugmentsTag);e.Debug.assert(n.length>0),n.length>1&&Xr(n[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=bh(t.class.expression),a=e.getClassExtendsHeritageElement(r);if(a){var o=bh(a.expression);o&&i.escapedText!==o.escapedText&&Xr(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(t.tagName),e.idText(i),e.idText(o))}}else Xr(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 315:case 308:case 309:return function(t){t.typeExpression||Xr(t.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),t.name&&kv(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),Gv(t.typeExpression)}(t);case 314:return function(e){Gv(e.constraint);for(var t=0,r=e.typeParameters;t<r.length;t++){Gv(r[t])}}(t);case 313:return function(e){Gv(e.typeExpression)}(t);case 310:return function(t){if(Gv(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;Bs(r)?e.findLast(e.getJSDocTags(r),e.isJSDocParameterTag)===t&&t.typeExpression&&t.typeExpression.type&&!y_(Yu(t.typeExpression.type))&&Xr(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(152===t.name.kind?t.name.right:t.name)):e.isQualifiedName(t.name)?Xr(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)):Xr(t.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,e.idText(t.name))}}}(t);case 298:!function(t){!a||t.type||e.isJSDocConstructSignature(t)||id(t,he),Wy(t)}(t);case 296:case 295:case 293:case 294:case 302:return Hv(t),void e.forEachChild(t,Gv);case 299:return void function(t){Hv(t),Gv(t.type);var r=t.parent;if(e.isParameter(r)&&e.isJSDocFunctionType(r.parent))return void(e.last(r.parent.parameters)!==r&&Xr(t,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list));e.isJSDocTypeExpression(r)||Xr(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 Xr(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||Xr(t,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}(t);case 292:return Gv(t.type);case 184:return function(e){Gv(e.objectType),Gv(e.indexType),nh(Eu(e),e)}(t);case 185:return function(t){Gv(t.typeParameter),Gv(t.type),t.type||id(t,he),Ol(zo(Cu(t)),qe,e.getEffectiveConstraintOfTypeParameter(t.typeParameter))}(t);case 243:return function(e){a&&(xh(e),ox(e),jh(e,e.name),Kh(e,e.name))}(t);case 222:case 249:return Mh(t);case 224:return Gh(t);case 225:return function(e){xx(e),zy(e.expression)}(t);case 226:return Hh(t);case 227:return function(e){xx(e),Gv(e.statement),Yh(e.expression)}(t);case 228:return function(e){xx(e),Yh(e.expression),Gv(e.statement)}(t);case 229:return function(t){xx(t)||t.initializer&&242===t.initializer.kind&&mx(t.initializer),t.initializer&&(242===t.initializer.kind?e.forEach(t.initializer.declarations,qh):zy(t.initializer)),t.condition&&Yh(t.condition),t.incrementor&&zy(t.incrementor),Gv(t.statement),t.locals&&Dh(t)}(t);case 230:return Xh(t);case 231:return function(t){if(ux(t),t.awaitModifier?2==(6&e.getFunctionFlags(e.getContainingFunction(t)))&&J<99&&Gb(t,32768):K.downlevelIteration&&J<2&&Gb(t,256),242===t.initializer.kind)Qh(t);else{var r=t.initializer,n=$h(t.expression,t.awaitModifier);if(191===r.kind||192===r.kind)xy(r,n||xe);else{var i=zy(r);dy(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&&Ml(n,i,r,t.expression)}}Gv(t.statement),t.locals&&Dh(t)}(t);case 232:case 233:return Dv(t);case 234:return function(t){if(!xx(t)){var r=e.getContainingFunction(t);if(r){var n=zs(Ls(r)),i=e.getFunctionFlags(r);if(V||t.expression||131072&n.flags){var a=t.expression?ky(t.expression):Se;if(163===r.kind)t.expression&&Xr(t,e.Diagnostics.Setters_cannot_return_a_value);else if(161===r.kind)t.expression&&!Ml(a,n,t,t.expression)&&Xr(t,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(Us(r)){var o=Sv(n,i),s=2&i?_h(a,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):a;o&&Ml(s,o,t,t.expression)}}else 161!==r.kind&&K.noImplicitReturns&&!Tv(r,n)&&Xr(t,e.Diagnostics.Not_all_code_paths_return_a_value)}else yx(t,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body)}}(t);case 235:return function(t){xx(t)||32768&t.flags&&yx(t,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),zy(t.expression);var r=e.getSourceFileOfNode(t);if(!gx(r)){var n=e.getSpanOfTokenAtPosition(r,t.pos).start;hx(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 236:return function(t){var r;xx(t);var n=!1,i=zy(t.expression),o=C_(i);e.forEach(t.caseBlock.clauses,(function(t){if(276!==t.kind||n||(void 0===r?r=t:(vx(t,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),n=!0)),a&&275===t.kind){var s=zy(t.expression),c=C_(s),u=i;c&&o||(s=c?k_(s):s,u=k_(i)),Dy(u,s)||Ul(s,u,t.expression,void 0)}e.forEach(t.statements,Gv),K.noFallthroughCasesInSwitch&&t.fallthroughFlowNode&&Fp(t.fallthroughFlowNode)&&Xr(t,e.Diagnostics.Fallthrough_case_in_switch)})),t.caseBlock.locals&&Dh(t.caseBlock)}(t);case 237:return function(t){xx(t)||e.findAncestor(t.parent,(function(r){return e.isFunctionLike(r)?"quit":237===r.kind&&r.label.escapedText===t.label.escapedText&&(vx(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(t.label)),!0)})),Gv(t.statement)}(t);case 238:return Ev(t);case 239:return function(t){xx(t),Mh(t.tryBlock);var r=t.catchClause;if(r){if(r.variableDeclaration)if(r.variableDeclaration.type)yx(r.variableDeclaration.type,e.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation);else if(r.variableDeclaration.initializer)yx(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)&&vx(r.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,t)}))}Mh(r.block)}t.finallyBlock&&Mh(t.finallyBlock)}(t);case 241:return qh(t);case 190:return Wh(t);case 244:return function(t){t.name||e.hasModifier(t,512)||yx(t,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),Pv(t),e.forEach(t.members,Gv),Dh(t)}(t);case 245:return Lv(t);case 246:return function(t){Yb(t),kv(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),Nv(t.typeParameters),Gv(t.type),Dh(t)}(t);case 247:return function(t){if(a){Yb(t),kv(t.name,e.Diagnostics.Enum_name_cannot_be_0),jh(t,t.name),Kh(t,t.name),ch(t),Rv(t);var r=ri(t);if(t===e.getDeclarationOfKind(r,t.kind)){if(r.declarations.length>1){var n=e.isEnumConst(t);e.forEach(r.declarations,(function(t){e.isEnumDeclaration(t)&&e.isEnumConst(t)!==n&&Xr(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)}))}var i=!1;e.forEach(r.declarations,(function(t){if(247!==t.kind)return!1;var r=t;if(!r.members.length)return!1;var n=r.members[0];n.initializer||(i?Xr(n.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):i=!0)}))}}}(t);case 248:return jv(t);case 253:return function(t){if(!Vv(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(!Yb(t)&&e.hasModifiers(t)&&yx(t,e.Diagnostics.An_import_declaration_cannot_have_modifiers),Jv(t))){var r=t.importClause;if(r)if(r.name&&Uv(r),r.namedBindings)if(255===r.namedBindings.kind)Uv(r.namedBindings);else zn(t,t.moduleSpecifier)&&e.forEach(r.namedBindings.elements,Uv)}}(t);case 252:return function(t){if(!Vv(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(Yb(t),e.isInternalModuleImportEqualsDeclaration(t)||Jv(t)))if(Uv(t),e.hasModifier(t,1)&&Ln(t),263!==t.moduleReference.kind){var r=Mn(ri(t));if(r!==ge){if(111551&r.flags){var n=e.getFirstIdentifier(t.moduleReference);1920&Kn(n,112575).flags||Xr(n,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(n))}788968&r.flags&&kv(t.name,e.Diagnostics.Import_name_cannot_be_0)}}else z>=e.ModuleKind.ES2015&&!(8388608&t.flags)&&vx(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 259:return function(t){if(!Vv(t,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)&&(!Yb(t)&&e.hasModifiers(t)&&yx(t,e.Diagnostics.An_export_declaration_cannot_have_modifiers),!t.moduleSpecifier||Jv(t)))if(t.exportClause){e.forEach(t.exportClause.elements,qv);var r=249===t.parent.kind&&e.isAmbientModule(t.parent.parent),n=!r&&249===t.parent.kind&&!t.moduleSpecifier&&8388608&t.flags;288===t.parent.kind||r||n||Xr(t,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var i=zn(t,t.moduleSpecifier);i&&Hn(i)&&Xr(t.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Pi(i)),z!==e.ModuleKind.System&&z!==e.ModuleKind.ES2015&&z!==e.ModuleKind.ESNext&&Gb(t,65536)}}(t);case 258:return function(t){if(!Vv(t,e.Diagnostics.An_export_assignment_can_only_be_used_in_a_module)){var r=288===t.parent.kind?t.parent:t.parent.parent;if(248!==r.kind||e.isAmbientModule(r)){if(!Yb(t)&&e.hasModifiers(t)&&yx(t,e.Diagnostics.An_export_assignment_cannot_have_modifiers),75===t.expression.kind){var n=t.expression,i=Kn(n,67108863,!0,!0,t);if(i){zp(i,n);var a=2097152&i.flags?Mn(i):i;(a===ge||111551&a.flags)&&ky(t.expression)}e.getEmitDeclarations(K)&&Vi(t.expression,!0)}else ky(t.expression);Wv(r),8388608&t.flags&&!e.isEntityNameExpression(t.expression)&&vx(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||(z>=e.ModuleKind.ES2015?vx(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):z===e.ModuleKind.System&&vx(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}else t.isExportEquals?Xr(t,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):Xr(t,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(t);case 223:case 240:return void xx(t);case 262:(function(e){vh(e)})(t)}}(t),l=r}}function Hv(t){e.isInJSFile(t)||vx(t,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Yv(t){var r=dn(e.getSourceFileOfNode(t));if(!(1&r.flags)){r.deferredNodes=r.deferredNodes||e.createMap();var n=""+N(t);r.deferredNodes.set(n,t)}}function Xv(t){var r=l;switch(l=t,x=0,t.kind){case 200:case 201:case 160:case 159:!function(t){e.Debug.assert(160!==t.kind||e.isObjectLiteralMethod(t));var r=e.getFunctionFlags(t),n=Us(t);if(ny(t,n),t.body)if(e.getEffectiveReturnTypeNode(t)||zs(Ls(t)),222===t.body.kind)Gv(t.body);else{var i=zy(t.body),a=oy(n,r);if(a)if(2==(3&r))Ml(_h(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 Ml(i,a,t.body,t.body)}}(t);break;case 162:case 163:Qy(t);break;case 213:!function(t){e.forEach(t.members,Gv),Dh(t)}(t);break;case 265:!function(e){rm(e)}(t);break;case 264:!function(e){rm(e.openingElement),zf(e.closingElement.tagName)?Gf(e.closingElement):zy(e.closingElement.tagName),Vf(e)}(t)}l=r}function Qv(t){e.performance.mark("beforeCheck"),function(t){var r=dn(t);if(!(1&r.flags)){if(e.skipTypeChecking(t,K,n))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)||224===i.kind)&&bx(i))return!0}}(t)}(t),e.clear(Lr),e.clear(Rr),e.forEach(t.statements,Gv),Gv(t.endOfFileToken),function(e){var t=dn(e);t.deferredNodes&&t.deferredNodes.forEach(Xv)}(t),e.isExternalOrCommonJsModule(t)&&Dh(t),t.isDeclarationFile||!K.noUnusedLocals&&!K.noUnusedParameters||Sh(Zv(t),(function(t,r,n){!e.containsParseError(t)&&$v(r)&&jr.add(n)})),e.isExternalOrCommonJsModule(t)&&Wv(t),Lr.length&&(e.forEach(Lr,Rh),e.clear(Lr)),Rr.length&&(e.forEach(Rr,Bh),e.clear(Rr)),r.flags|=1}}(t),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck")}function $v(t){switch(t){case 0:return!!K.noUnusedLocals;case 1:return!!K.noUnusedParameters;default:return e.Debug.assertNever(t)}}function Zv(t){return _r.get(t.path)||e.emptyArray}function eb(t,r){try{return o=r,function(t){if(tb(),t){var r=jr.getGlobalDiagnostics(),i=r.length;Qv(t);var a=jr.getDiagnostics(t.fileName),o=jr.getGlobalDiagnostics();if(o!==r){var s=e.relativeComplement(r,o,e.compareDiagnostics);return e.concatenate(s,a)}return 0===i&&o.length>0?e.concatenate(o,a):a}return e.forEach(n.getSourceFiles(),Qv),jr.getDiagnostics()}(t)}finally{o=void 0}}function tb(){if(!a)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function rb(e){switch(e.kind){case 154:case 244:case 245:case 246:case 247:return!0;default:return!1}}function nb(e){for(;152===e.parent.kind;)e=e.parent;return 168===e.parent.kind}function ib(t,r){for(var n;(t=e.getContainingClass(t))&&!(n=r(t)););return n}function ab(e,t){return!!ib(e,(function(e){return e===t}))}function ob(e){return void 0!==function(e){for(;152===e.parent.kind;)e=e.parent;return 252===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:258===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function sb(t){if(e.isDeclarationName(t))return ri(t.parent);if(e.isInJSFile(t)&&193===t.parent.kind&&t.parent===t.parent.parent.left){var r=function(t){switch(e.getAssignmentDeclarationKind(t.parent.parent)){case 1:case 3:return ri(t.parent);case 4:case 2:case 5:return ri(t.parent.parent)}}(t);if(r)return r}if(258===t.parent.kind&&e.isEntityNameExpression(t)){var n=Kn(t,2998271,!0);if(n&&n!==ge)return n}else if(!e.isPropertyAccessExpression(t)&&ob(t)){var i=e.getAncestor(t,252);return e.Debug.assert(void 0!==i),Bn(t,!0)}if(!e.isPropertyAccessExpression(t)){var a=function(t){for(var r=t.parent;e.isQualifiedName(r);)t=r,r=r.parent;if(r&&187===r.kind&&r.qualifier===t)return r}(t);if(a){Yu(a);var o=dn(t).resolvedSymbol;return o===ge?void 0:o}}for(;e.isRightSideOfQualifiedNameOrPropertyAccess(t);)t=t.parent;if(function(e){for(;193===e.parent.kind;)e=e.parent;return 215===e.parent.kind}(t)){var s=0;215===t.parent.kind?(s=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(s|=111551)):s=1920,s|=2097152;var c=e.isEntityNameExpression(t)?Kn(t,s):void 0;if(c)return c}if(310===t.parent.kind)return e.getParameterSymbolFromJSDoc(t.parent);if(154===t.parent.kind&&314===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)&&zf(t)){var l=Gf(t.parent);return l===ge?void 0:l}return Kn(t,111551,!1,!0)}if(193===t.kind||152===t.kind){var _=dn(t);return _.resolvedSymbol?_.resolvedSymbol:(193===t.kind?hm(t):vm(t),_.resolvedSymbol)}}else if(nb(t)){return Kn(t,s=168===t.parent.kind?788968:1920,!1,!0)}return 167===t.parent.kind?Kn(t,1):void 0}function cb(t){if(288===t.kind)return e.isExternalModule(t)?ti(t.symbol):void 0;var r=t.parent,n=r.parent;if(!(16777216&t.flags)){if(w(t)){var i=ri(r);return e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t?Bf(i):i}if(e.isLiteralComputedPropertyDeclarationName(t))return ri(r.parent);if(75===t.kind){if(ob(t))return sb(t);if(190===r.kind&&188===n.kind&&t===r.propertyName){var a=vs(ub(n),t.escapedText);if(a)return a}}switch(t.kind){case 75:case 193:case 152:return sb(t);case 103:var o=e.getThisContainer(t,!1);if(e.isFunctionLike(o)){var s=Ls(o);if(s.thisParameter)return s.thisParameter}if(e.isInExpressionContext(t))return zy(t).symbol;case 182:return Hu(t).symbol;case 101:return zy(t).symbol;case 128:var c=t.parent;return c&&161===c.kind?c.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(253===t.parent.kind||259===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 zn(t,t);if(e.isCallExpression(r)&&e.isBindableObjectDefinePropertyCall(r)&&r.arguments[1]===t)return ri(r);case 8:var u=e.isElementAccessExpression(r)?r.argumentExpression===t?Ky(r.expression):void 0:e.isLiteralTypeNode(r)&&e.isIndexedAccessTypeNode(n)?Yu(n.objectType):void 0;return u&&vs(u,e.escapeLeadingUnderscores(t.text));case 83:case 93:case 38:case 79:return ri(t.parent);case 187:return e.isLiteralImportTypeNode(t)?cb(t.argument.literal):void 0;case 88:return e.isExportAssignment(t.parent)?e.Debug.assertDefined(t.parent.symbol):void 0;default:return}}}function ub(t){if(16777216&t.flags)return xe;var r,n=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(t),i=n&&Ha(ri(n.class));if(e.isPartOfTypeNode(t)){var a=Yu(t);return i?Do(a,i.thisType):a}if(e.isExpressionNode(t))return _b(t);if(i&&!n.isImplements){var o=e.firstOrUndefined(Wa(i));return o?Do(o,i.thisType):xe}if(rb(t))return ro(r=ri(t));if(function(e){return 75===e.kind&&rb(e.parent)&&e.parent.name===e}(t))return(r=cb(t))?ro(r):xe;if(e.isDeclaration(t))return wa(r=ri(t));if(w(t))return(r=cb(t))?wa(r):xe;if(e.isBindingPattern(t))return ua(t.parent,!0)||xe;if(ob(t)&&(r=cb(t))){var s=ro(r);return s!==xe?s:wa(r)}return xe}function lb(t){if(e.Debug.assert(192===t.kind||191===t.kind),231===t.parent.kind)return xy(t,$h(t.parent.expression,t.parent.awaitModifier)||xe);if(208===t.parent.kind)return xy(t,Ky(t.parent.right)||xe);if(279===t.parent.kind){var r=e.cast(t.parent.parent,e.isObjectLiteralExpression);return vy(r,lb(r)||xe,e.indexOfNode(r.properties,t.parent))}var n=e.cast(t.parent,e.isArrayLiteralExpression),i=lb(n)||xe,a=Zh(65,i,Se,t.parent)||xe;return by(n,i,n.elements.indexOf(t),a)}function _b(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),Vu(Ky(t))}function db(t){var r=ri(t.parent);return e.hasModifier(t,32)?wa(r):ro(r)}function pb(t){var r=t.name;switch(r.kind){case 75:return Wu(e.idText(r));case 8:case 10:return Wu(r.text);case 153:var n=Lf(r);return my(n,12288)?n:Ne;default:return e.Debug.fail("Unsupported property name.")}}function fb(t){t=ms(t);var r=e.createSymbolTable(ts(t)),n=xs(t,0).length?lt:xs(t,1).length?_t:void 0;return n&&e.forEach(ts(n),(function(e){r.has(e.escapedName)||r.set(e.escapedName,e)})),gi(r)}function mb(t){return e.typeHasCallOrConstructSignatures(t,oe)}function gb(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r)return!(193===r.parent.kind&&r.parent.name===r)&&zb(r)===ie}return!1}function yb(t){var r=zn(t.parent,t);if(!r||e.isShorthandAmbientModuleSymbol(r))return!0;var n=Hn(r),i=_n(r=Wn(r));return void 0===i.exportsSomeValue&&(i.exportsSomeValue=n?!!(111551&r.flags):e.forEachEntry($n(r),(function(e){return(e=On(e))&&!!(111551&e.flags)}))),i.exportsSomeValue}function hb(t,r){var n=e.getParseTreeNode(t,e.isIdentifier);if(n){var i=zb(n,function(t){return e.isModuleOrEnumDeclaration(t.parent)&&t===t.parent.name}(n));if(i){if(1048576&i.flags){var a=ti(i.exportSymbol);if(!r&&944&a.flags&&!(3&a.flags))return;i=a}var o=ni(i);if(o){if(512&o.flags&&288===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)&&ri(t)===o}))}}}}function vb(t){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=zb(r);if(In(n,111551))return En(n)}}function bb(t){if(418&t.flags&&!e.isSourceFile(t.valueDeclaration)){var r=_n(t);if(void 0===r.isDeclarationWithCollidingName){var n=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(n)||function(t){return e.isBindingElement(t.valueDeclaration)&&278===e.walkUpBindingElementsAndPatterns(t.valueDeclaration).parent.kind}(t)){var i=dn(t.valueDeclaration);if(gn(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=222===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 xb(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=zb(r);if(n&&bb(n))return n.valueDeclaration}}}function Db(t){var r=e.getParseTreeNode(t,e.isDeclaration);if(r){var n=ri(r);if(n)return bb(n)}return!1}function Sb(t){switch(t.kind){case 252:case 254:case 255:case 257:case 261:return Eb(ri(t)||ge);case 259:var r=t.exportClause;return!!r&&e.some(r.elements,Sb);case 258:return!t.expression||75!==t.expression.kind||Eb(ri(t)||ge)}return!1}function Tb(t){var r=e.getParseTreeNode(t,e.isImportEqualsDeclaration);return!(void 0===r||288!==r.parent.kind||!e.isInternalModuleImportEqualsDeclaration(r))&&(Eb(ri(r))&&r.moduleReference&&!e.nodeIsMissing(r.moduleReference))}function Eb(e){var t=Mn(e);return t===ge||!!(111551&t.flags)&&(K.preserveConstEnums||!Cb(t))}function Cb(e){return hy(e)||!!e.constEnumOnlyModule}function kb(t){if(e.nodeIsPresent(t.body)){if(e.isGetAccessor(t)||e.isSetAccessor(t))return!1;var r=js(ri(t));return r.length>1||1===r.length&&r[0].declaration!==t}return!1}function Nb(t){return!(!V||Ps(t)||e.isJSDocParameterTag(t)||!t.initializer||e.hasModifier(t,92))}function Ab(t){return V&&Ps(t)&&!t.initializer&&e.hasModifier(t,92)}function Fb(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return!1;var n=ri(r);return!!(n&&16&n.flags)&&!!e.forEachEntry(Qn(n),(function(t){return 111551&t.flags&&t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)}))}function Pb(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return e.emptyArray;var n=ri(r);return n&&ts(wa(n))||e.emptyArray}function wb(e){return dn(e).flags||0}function Ib(e){return Rv(e.parent),dn(e).enumMemberValue}function Ob(e){switch(e.kind){case 282:case 193:case 194:return!0}return!1}function Mb(t){if(282===t.kind)return Ib(t);var r=dn(t).resolvedSymbol;if(r&&8&r.flags){var n=r.valueDeclaration;if(e.isEnumConst(n.parent))return Ib(n)}}function Lb(e){return!!(524288&e.flags)&&xs(e,0).length>0}function Rb(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=Kn(n,111551,!0,!1,r),a=Kn(n,788968,!0,!1,r);if(i&&i===a){var o=Oc(!1);if(o&&i===o)return e.TypeReferenceSerializationKind.Promise;var s=wa(i);if(s&&Ja(s))return e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!a)return e.TypeReferenceSerializationKind.Unknown;var c=ro(a);return c===xe?e.TypeReferenceSerializationKind.Unknown:3&c.flags?e.TypeReferenceSerializationKind.ObjectType:my(c,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:my(c,528)?e.TypeReferenceSerializationKind.BooleanType:my(c,296)?e.TypeReferenceSerializationKind.NumberLikeType:my(c,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:my(c,132)?e.TypeReferenceSerializationKind.StringLikeType:w_(c)?e.TypeReferenceSerializationKind.ArrayLikeType:my(c,12288)?e.TypeReferenceSerializationKind.ESSymbolType:Lb(c)?e.TypeReferenceSerializationKind.TypeWithCallSignature:y_(c)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function Bb(t,r,n,i,a){var o=e.getParseTreeNode(t,e.isVariableLikeOrAccessor);if(!o)return e.createToken(124);var s=ri(o),c=!s||133120&s.flags?xe:N_(wa(s));return 8192&c.flags&&c.symbol===s&&(n|=1048576),a&&(c=z_(c)),Z.typeToTypeNode(c,r,1024|n,i)}function jb(t,r,n,i){var a=e.getParseTreeNode(t,e.isFunctionLike);if(!a)return e.createToken(124);var o=Ls(a);return Z.typeToTypeNode(zs(o),r,1024|n,i)}function Kb(t,r,n,i){var a=e.getParseTreeNode(t,e.isExpression);if(!a)return e.createToken(124);var o=rd(_b(a));return Z.typeToTypeNode(o,r,1024|n,i)}function Jb(t){return ee.has(e.escapeLeadingUnderscores(t))}function zb(t,r){var n=dn(t).resolvedSymbol;if(n)return n;var i=t;if(r){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=Yi(a))}return gn(i,t.escapedText,3257279,void 0,void 0,!0)}function Ub(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=zb(r);if(n)return si(n).valueDeclaration}}}function Vb(t){return!!(e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))&&qu(wa(ri(t)))}function qb(t,r){return function(t,r,n){return(1024&t.flags?Z.symbolToExpression(t.symbol,111551,r,void 0,n):t===Ie?e.createTrue():t===Pe&&e.createFalse())||e.createLiteral(t.value)}(wa(ri(t)),t,r)}function Wb(t){var r=248===t.kind?e.tryCast(t.name,e.isStringLiteral):e.getExternalModuleName(t),n=Un(r,r,void 0);if(n)return e.getDeclarationOfKind(n,288)}function Gb(t,r){if((s&r)!==r&&K.importHelpers){var n=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(n,K)&&!(8388608&t.flags)){var i=function(t,r){u||(u=Vn(t,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,r)||ge);return u}(n,t);if(i!==ge)for(var a=r&~s,o=1;o<=131072;o<<=1)if(a&o){var c=Hb(o);fn(i.exports,e.escapeLeadingUnderscores(c),111551)||Xr(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)}s|=r}}}function Hb(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";default:return e.Debug.fail("Unrecognized helper")}}function Yb(t){return function(t){if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t,t.parent,t.parent.parent))return 160!==t.kind||e.nodeIsPresent(t.body)?yx(t,e.Diagnostics.Decorators_are_not_valid_here):yx(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(162===t.kind||163===t.kind){var r=e.getAllAccessorDeclarations(t.parent.members,t);if(r.firstAccessor.decorators&&t===r.secondAccessor)return yx(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 162:case 163:case 161:case 158:case 157:case 160:case 159:case 166:case 248:case 253:case 252:case 259:case 258:case 200:case 201:case 155:return!1;default:if(249===t.parent.kind||288===t.parent.kind)return!1;switch(t.kind){case 243:return Xb(t,125);case 244:return Xb(t,121);case 245:case 224:case 246:return!0;case 247:return Xb(t,80);default:return e.Debug.fail(),!1}}}(t)?yx(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(137!==l.kind){if(157===t.kind||159===t.kind)return vx(l,e.Diagnostics._0_modifier_cannot_appear_on_a_type_member,e.tokenToString(l.kind));if(166===t.kind)return vx(l,e.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,e.tokenToString(l.kind))}switch(l.kind){case 80:if(247!==t.kind)return vx(t,e.Diagnostics.A_class_member_cannot_have_the_0_keyword,e.tokenToString(80));break;case 118:case 117:case 116:var _=Bi(e.modifierToFlag(l.kind));if(28&s)return vx(l,e.Diagnostics.Accessibility_modifier_already_seen);if(32&s)return vx(l,e.Diagnostics._0_modifier_must_precede_1_modifier,_,"static");if(64&s)return vx(l,e.Diagnostics._0_modifier_must_precede_1_modifier,_,"readonly");if(256&s)return vx(l,e.Diagnostics._0_modifier_must_precede_1_modifier,_,"async");if(249===t.parent.kind||288===t.parent.kind)return vx(l,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,_);if(128&s)return 116===l.kind?vx(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,_,"abstract"):vx(l,e.Diagnostics._0_modifier_must_precede_1_modifier,_,"abstract");s|=e.modifierToFlag(l.kind);break;case 119:if(32&s)return vx(l,e.Diagnostics._0_modifier_already_seen,"static");if(64&s)return vx(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(256&s)return vx(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(249===t.parent.kind||288===t.parent.kind)return vx(l,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(155===t.kind)return vx(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(128&s)return vx(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");s|=32,r=l;break;case 137:if(64&s)return vx(l,e.Diagnostics._0_modifier_already_seen,"readonly");if(158!==t.kind&&157!==t.kind&&166!==t.kind&&155!==t.kind)return vx(l,e.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);s|=64,a=l;break;case 88:if(1&s)return vx(l,e.Diagnostics._0_modifier_already_seen,"export");if(2&s)return vx(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(128&s)return vx(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(256&s)return vx(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(e.isClassLike(t.parent))return vx(l,e.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"export");if(155===t.kind)return vx(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");s|=1;break;case 83:var d=288===t.parent.kind?t.parent:t.parent.parent;if(248===d.kind&&!e.isAmbientModule(d))return vx(l,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);s|=512;break;case 129:if(2&s)return vx(l,e.Diagnostics._0_modifier_already_seen,"declare");if(256&s)return vx(l,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(e.isClassLike(t.parent)&&!e.isPropertyDeclaration(t))return vx(l,e.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"declare");if(155===t.kind)return vx(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(8388608&t.parent.flags&&249===t.parent.kind)return vx(l,e.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);s|=2,n=l;break;case 121:if(128&s)return vx(l,e.Diagnostics._0_modifier_already_seen,"abstract");if(244!==t.kind){if(160!==t.kind&&158!==t.kind&&162!==t.kind&&163!==t.kind)return vx(l,e.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(244!==t.parent.kind||!e.hasModifier(t.parent,128))return vx(l,e.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(32&s)return vx(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(8&s)return vx(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract")}s|=128;break;case 125:if(256&s)return vx(l,e.Diagnostics._0_modifier_already_seen,"async");if(2&s||8388608&t.parent.flags)return vx(l,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(155===t.kind)return vx(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");s|=256,i=l}}if(161===t.kind)return 32&s?vx(r,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):128&s?vx(r,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"abstract"):256&s?vx(i,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!!(64&s)&&vx(a,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"readonly");if((253===t.kind||252===t.kind)&&2&s)return vx(n,e.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare");if(155===t.kind&&92&s&&e.isBindingPattern(t.name))return vx(t,e.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern);if(155===t.kind&&92&s&&t.dotDotDotToken)return vx(t,e.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter);if(256&s)return function(t,r){switch(t.kind){case 160:case 243:case 200:case 201:return!1}return vx(r,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}(t,i);return!1}(t)}function Xb(e,t){return e.modifiers.length>1||e.modifiers[0].kind!==t}function Qb(t,r){return void 0===r&&(r=e.Diagnostics.Trailing_comma_not_allowed),!(!t||!t.hasTrailingComma)&&hx(t[0],t.end-",".length,",".length,r)}function $b(t,r){if(t&&0===t.length){var n=t.pos-"<".length;return hx(r,n,e.skipTrivia(r.text,t.end)+">".length-n,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function Zb(r){if(J>=3){var n=r.body&&e.isBlock(r.body)&&e.findUseStrictPrologue(r.body.statements);if(n){var i=(o=r.parameters,e.filter(o,(function(t){return!!t.initializer||e.isBindingPattern(t.name)||e.isRestParameter(t)})));if(e.length(i)){e.forEach(i,(function(t){e.addRelatedInfo(Xr(t,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(n,e.Diagnostics.use_strict_directive_used_here))}));var a=i.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,t([Xr(n,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],a)),!0}}}var o;return!1}function ex(t){var r=e.getSourceFileOfNode(t);return Yb(t)||$b(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 vx(a.dotDotDotToken,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(8388608&a.flags||Qb(t,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),a.questionToken)return vx(a.questionToken,e.Diagnostics.A_rest_parameter_cannot_be_optional);if(a.initializer)return vx(a.name,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(a.questionToken){if(r=!0,a.initializer)return vx(a.name,e.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(r&&!a.initializer)return vx(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&&vx(n,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}(t,r)||e.isFunctionLikeDeclaration(t)&&Zb(t)}function tx(t,r){return Qb(r)||function(t,r){if(r&&0===r.length){var n=e.getSourceFileOfNode(t),i=r.pos-"<".length;return hx(n,i,e.skipTrivia(n.text,r.end)+">".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}(t,r)}function rx(t){return function(t){if(t)for(var r=0,n=t;r<n.length;r++){var i=n[r];if(214===i.kind)return hx(i,i.pos,0,e.Diagnostics.Argument_expression_expected)}return!1}(t)}function nx(t){var r=t.types;if(Qb(r))return!0;if(r&&0===r.length){var n=e.tokenToString(t.token);return hx(t,r.pos,0,e.Diagnostics._0_list_cannot_be_empty,n)}return e.some(r,ix)}function ix(e){return tx(e,e.typeArguments)}function ax(t){if(153!==t.kind)return!1;var r=t;return 208===r.expression.kind&&27===r.expression.operatorToken.kind&&vx(r.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function ox(t){if(t.asteriskToken){if(e.Debug.assert(243===t.kind||200===t.kind||160===t.kind),8388608&t.flags)return vx(t.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!t.body)return vx(t.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function sx(e,t){return!!e&&vx(e,t)}function cx(e,t){return!!e&&vx(e,t)}function ux(t){if(xx(t))return!0;if(231===t.kind&&t.awaitModifier&&0==(32768&t.flags)){if(!gx(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&&161!==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 jr.add(r),!0}return!1}if(242===t.initializer.kind){var a=t.initializer;if(!mx(a)){var o=a.declarations;if(!o.length)return!1;if(o.length>1){r=230===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 yx(a.declarations[1],r)}var s=o[0];if(s.initializer){var r=230===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 vx(s.name,r)}if(s.type)return vx(s,r=230===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 lx(t){if(t.parameters.length===(162===t.kind?1:2))return e.getThisParameter(t)}function _x(t,r){if(function(t){return e.isDynamicName(t)&&!po(t)}(t))return vx(t,r)}function dx(t){if(ex(t))return!0;if(160===t.kind){if(192===t.parent.kind){if(t.modifiers&&(1!==t.modifiers.length||125!==e.first(t.modifiers).kind))return yx(t,e.Diagnostics.Modifiers_cannot_appear_here);if(sx(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(cx(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===t.body)return hx(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(ox(t))return!0}if(e.isClassLike(t.parent)){if(8388608&t.flags)return _x(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(160===t.kind&&!t.body)return _x(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(245===t.parent.kind)return _x(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(172===t.parent.kind)return _x(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 px(t){return e.isStringOrNumericLiteralLike(t)||206===t.kind&&40===t.operator&&8===t.operand.kind}function fx(t){var r,n=t.initializer;if(n){var i=!(px(n)||function(t){if((e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)&&px(t.argumentExpression))&&e.isEntityNameExpression(t.expression))return!!(1024&ky(t).flags)}(n)||105===n.kind||90===n.kind||(r=n,9===r.kind||206===r.kind&&40===r.operator&&9===r.operand.kind)),a=e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t);if(!a||t.type)return vx(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(i)return vx(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 vx(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function mx(t){var r=t.declarations;return!!Qb(t.declarations)||!t.declarations.length&&hx(t,r.pos,r.end-r.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty)}function gx(e){return e.parseDiagnostics.length>0}function yx(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!gx(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return jr.add(e.createFileDiagnostic(o,s.start,s.length,r,n,i,a)),!0}return!1}function hx(t,r,n,i,a,o,s){var c=e.getSourceFileOfNode(t);return!gx(c)&&(jr.add(e.createFileDiagnostic(c,r,n,i,a,o,s)),!0)}function vx(t,r,n,i,a){return!gx(e.getSourceFileOfNode(t))&&(jr.add(e.createDiagnosticForNode(t,r,n,i,a)),!0)}function bx(t){return 245!==t.kind&&246!==t.kind&&253!==t.kind&&252!==t.kind&&259!==t.kind&&258!==t.kind&&251!==t.kind&&!e.hasModifier(t,515)&&yx(t,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function xx(t){if(8388608&t.flags){if(!dn(t).hasReportedStatementInAmbientContext&&(e.isFunctionLike(t.parent)||e.isAccessor(t.parent)))return dn(t).hasReportedStatementInAmbientContext=yx(t,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(222===t.parent.kind||249===t.parent.kind||288===t.parent.kind){var r=dn(t.parent);if(!r.hasReportedStatementInAmbientContext)return r.hasReportedStatementInAmbientContext=yx(t,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function Dx(t){if(32&t.numericLiteralFlags){var r=void 0;if(J>=1?r=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,186)?r=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,282)&&(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 vx(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;Qr(!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(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"}(C||(C={})),e.signatureHasRestParameter=M,e.signatureHasLiteralTypes=L,e.signatureIsOptionalCall=R}(s||(s={})),function(e){function t(t){var r=e.createNode(t,-1,-1);return r.flags|=8,r}function r(t,r){return t!==r&&(dr(t,r),or(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,dr(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"===f(t)&&"base10Value"in t)return s(e.pseudoBigIntToString(t)+"n");if("boolean"==typeof t)return t?m():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 m(){return t(105)}function g(){return t(90)}function y(e){return p(e)}function h(e,r){var n=t(152);return n.left=e,n.right=tr(r),n}function v(r){var n=t(153);return n.expression=function(t){return e.isCommaSequence(t)?ye(t):t}(r),n}function b(e,r,n){var i=t(154);return i.name=tr(e),i.constraint=r,i.default=n,i}function x(r,n,i,a,o,s,c){var u=t(155);return u.decorators=nr(r),u.modifiers=nr(n),u.dotDotDotToken=i,u.name=tr(a),u.questionToken=o,u.type=s,u.initializer=c?e.parenthesizeExpressionForList(c):void 0,u}function D(r){var n=t(156);return n.expression=e.parenthesizeForAccess(r),n}function S(e,r,n,i,a){var o=t(157);return o.modifiers=nr(e),o.name=tr(r),o.questionToken=n,o.type=i,o.initializer=a,o}function T(e,r,n,i,a,o){var s=t(158);return s.decorators=nr(e),s.modifiers=nr(r),s.name=tr(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 E(e,t,r,n,i){var a=I(159,e,t,r);return a.name=tr(n),a.questionToken=i,a}function C(e,r,i,a,o,s,c,u,l){var _=t(160);return _.decorators=nr(e),_.modifiers=nr(r),_.asteriskToken=i,_.name=tr(a),_.questionToken=o,_.typeParameters=nr(s),_.parameters=n(c),_.type=u,_.body=l,_}function k(e,t,r){return function(e,t,r){return _e(ae(e,tr(t)),void 0,r)}(u(e),t,r)}function N(e,t,r){return!!r&&(e.push(Ut(t,r)),!0)}function A(e,r,i,a){var o=t(161);return o.decorators=nr(e),o.modifiers=nr(r),o.typeParameters=void 0,o.parameters=n(i),o.type=void 0,o.body=a,o}function F(e,r,i,a,o,s){var c=t(162);return c.decorators=nr(e),c.modifiers=nr(r),c.name=tr(i),c.typeParameters=void 0,c.parameters=n(a),c.type=o,c.body=s,c}function P(e,r,i,a,o){var s=t(163);return s.decorators=nr(e),s.modifiers=nr(r),s.name=tr(i),s.typeParameters=void 0,s.parameters=n(a),s.body=o,s}function w(e,r,i,a){var o=t(166);return o.decorators=nr(e),o.modifiers=nr(r),o.parameters=n(i),o.type=a,o}function I(e,r,n,i,a){var o=t(e);return o.typeParameters=nr(r),o.parameters=nr(n),o.type=i,o.typeArguments=nr(a),o}function O(e,t,n,i){return e.typeParameters!==t||e.parameters!==n||e.type!==i?r(I(e.kind,t,n,i),e):e}function M(e,r,n){var i=t(167);return i.assertsModifier=e,i.parameterName=tr(r),i.type=n,i}function L(e,t,n,i){return e.assertsModifier!==t||e.parameterName!==n||e.type!==i?r(M(t,n,i),e):e}function R(r,n){var i=t(168);return i.typeName=tr(r),i.typeArguments=n&&e.parenthesizeTypeParameters(n),i}function B(e){var r=t(171);return r.exprName=e,r}function j(e){var r=t(172);return r.members=n(e),r}function K(r){var n=t(173);return n.elementType=e.parenthesizeArrayTypeMember(r),n}function J(e){var r=t(174);return r.elementTypes=n(e),r}function z(r){var n=t(175);return n.type=e.parenthesizeArrayTypeMember(r),n}function U(e){var r=t(176);return r.type=e,r}function V(r,n){var i=t(r);return i.types=e.parenthesizeElementTypeMembers(n),i}function q(e,t){return e.types!==t?r(V(e.kind,t),e):e}function W(r,n,i,a){var o=t(179);return o.checkType=e.parenthesizeConditionalTypeMember(r),o.extendsType=e.parenthesizeConditionalTypeMember(n),o.trueType=i,o.falseType=a,o}function G(e){var r=t(180);return r.typeParameter=e,r}function H(r,n,i,a){var o=t(187);return o.argument=r,o.qualifier=n,o.typeArguments=e.parenthesizeTypeParameters(i),o.isTypeOf=a,o}function Y(e){var r=t(181);return r.type=e,r}function X(r,n){var i=t(183);return i.operator="number"==typeof r?r:133,i.type=e.parenthesizeElementTypeMember("number"==typeof r?n:r),i}function Q(r,n){var i=t(184);return i.objectType=e.parenthesizeElementTypeMember(r),i.indexType=n,i}function $(e,r,n,i){var a=t(185);return a.readonlyToken=e,a.typeParameter=r,a.questionToken=n,a.type=i,a}function Z(e){var r=t(186);return r.literal=e,r}function ee(e){var r=t(188);return r.elements=n(e),r}function te(e){var r=t(189);return r.elements=n(e),r}function re(e,r,n,i){var a=t(190);return a.dotDotDotToken=e,a.propertyName=tr(r),a.name=tr(n),a.initializer=i,a}function ne(r,i){var a=t(191);return a.elements=e.parenthesizeListElements(n(r)),i&&(a.multiLine=!0),a}function ie(e,r){var i=t(192);return i.properties=n(e),r&&(i.multiLine=!0),i}function ae(r,n){var i=t(193);return i.expression=e.parenthesizeForAccess(r),i.name=tr(n),sr(i,131072),i}function oe(r,n,i){var a=t(193);return a.flags|=32,a.expression=e.parenthesizeForAccess(r),a.questionDotToken=n,a.name=tr(i),sr(a,131072),a}function se(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(sr(oe(n,i,a),e.getEmitFlags(t)),t):t}function ce(r,n){var i=t(194);return i.expression=e.parenthesizeForAccess(r),i.argumentExpression=rr(n),i}function ue(r,n,i){var a=t(194);return a.flags|=32,a.expression=e.parenthesizeForAccess(r),a.questionDotToken=n,a.argumentExpression=rr(i),a}function le(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(ue(n,i,a),t):t}function _e(r,i,a){var o=t(195);return o.expression=e.parenthesizeForAccess(r),o.typeArguments=nr(i),o.arguments=e.parenthesizeListElements(n(a)),o}function de(r,i,a,o){var s=t(195);return s.flags|=32,s.expression=e.parenthesizeForAccess(r),s.questionDotToken=i,s.typeArguments=nr(a),s.arguments=e.parenthesizeListElements(n(o)),s}function pe(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(de(n,i,a,o),t):t}function fe(r,i,a){var o=t(196);return o.expression=e.parenthesizeForNew(r),o.typeArguments=nr(i),o.arguments=a?e.parenthesizeListElements(n(a)):void 0,o}function me(r,n,i){var a=t(197);return a.tag=e.parenthesizeForAccess(r),i?(a.typeArguments=nr(n),a.template=i):(a.typeArguments=void 0,a.template=n),a}function ge(r,n){var i=t(198);return i.type=r,i.expression=e.parenthesizePrefixOperand(n),i}function ye(e){var r=t(199);return r.expression=e,r}function he(e,r,i,a,o,s,c){var u=t(200);return u.modifiers=nr(e),u.asteriskToken=r,u.name=tr(i),u.typeParameters=nr(a),u.parameters=n(o),u.type=s,u.body=c,u}function ve(r,i,a,o,s,c){var u=t(201);return u.modifiers=nr(r),u.typeParameters=nr(i),u.parameters=n(a),u.type=o,u.equalsGreaterThanToken=s||p(38),u.body=e.parenthesizeConciseBody(c),u}function be(r){var n=t(202);return n.expression=e.parenthesizePrefixOperand(r),n}function xe(r){var n=t(203);return n.expression=e.parenthesizePrefixOperand(r),n}function De(r){var n=t(204);return n.expression=e.parenthesizePrefixOperand(r),n}function Se(r){var n=t(205);return n.expression=e.parenthesizePrefixOperand(r),n}function Te(r,n){var i=t(206);return i.operator=r,i.operand=e.parenthesizePrefixOperand(n),i}function Ee(r,n){var i=t(207);return i.operand=e.parenthesizePostfixOperand(r),i.operator=n,i}function Ce(r,n,i){var a,o=t(208),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(209);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 Ne(e,r){var i=t(210);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.createToken=p,e.createSuper=function(){return t(101)},e.createThis=function(){return t(103)},e.createNull=function(){return t(99)},e.createTrue=m,e.createFalse=g,e.createModifier=y,e.createModifiersFromModifierFlags=function(e){var t=[];return 1&e&&t.push(y(88)),2&e&&t.push(y(129)),512&e&&t.push(y(83)),2048&e&&t.push(y(80)),4&e&&t.push(y(118)),8&e&&t.push(y(116)),16&e&&t.push(y(117)),128&e&&t.push(y(121)),32&e&&t.push(y(119)),64&e&&t.push(y(137)),256&e&&t.push(y(125)),t},e.createQualifiedName=h,e.updateQualifiedName=function(e,t,n){return e.left!==t||e.right!==n?r(h(t,n),e):e},e.createComputedPropertyName=v,e.updateComputedPropertyName=function(e,t){return e.expression!==t?r(v(t),e):e},e.createTypeParameterDeclaration=b,e.updateTypeParameterDeclaration=function(e,t,n,i){return e.name!==t||e.constraint!==n||e.default!==i?r(b(t,n,i),e):e},e.createParameter=x,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(x(t,n,i,a,o,s,c),e):e},e.createDecorator=D,e.updateDecorator=function(e,t){return e.expression!==t?r(D(t),e):e},e.createPropertySignature=S,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(S(t,n,i,a,o),e):e},e.createProperty=T,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(T(t,n,i,a,o,s),e):e},e.createMethodSignature=E,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(E(t,n,i,a,o),e):e},e.createMethod=C,e.createObjectDefinePropertyCall=function(e,t,r){return k("Object","defineProperty",[e,rr(t),r])},e.createPropertyDescriptor=function(t,r){var n=[];N(n,"enumerable",rr(t.enumerable)),N(n,"configurable",rr(t.configurable));var i=N(n,"writable",rr(t.writable));i=N(n,"value",t.value)||i;var a=N(n,"get",t.get);return a=N(n,"set",t.set)||a,e.Debug.assert(!(i&&a),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),ie(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(C(t,n,i,a,o,s,c,u,l),e):e},e.createConstructor=A,e.updateConstructor=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.parameters!==i||e.body!==a?r(A(t,n,i,a),e):e},e.createGetAccessor=F,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(F(t,n,i,a,o,s),e):e},e.createSetAccessor=P,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(P(t,n,i,a,o),e):e},e.createCallSignature=function(e,t,r){return I(164,e,t,r)},e.updateCallSignature=function(e,t,r,n){return O(e,t,r,n)},e.createConstructSignature=function(e,t,r){return I(165,e,t,r)},e.updateConstructSignature=function(e,t,r,n){return O(e,t,r,n)},e.createIndexSignature=w,e.updateIndexSignature=function(e,t,n,i,a){return e.parameters!==i||e.type!==a||e.decorators!==t||e.modifiers!==n?r(w(t,n,i,a),e):e},e.createSignatureDeclaration=I,e.createKeywordTypeNode=function(e){return t(e)},e.createTypePredicateNode=function(e,t){return M(void 0,e,t)},e.createTypePredicateNodeWithModifier=M,e.updateTypePredicateNode=function(e,t,r){return L(e,e.assertsModifier,t,r)},e.updateTypePredicateNodeWithModifier=L,e.createTypeReferenceNode=R,e.updateTypeReferenceNode=function(e,t,n){return e.typeName!==t||e.typeArguments!==n?r(R(t,n),e):e},e.createFunctionTypeNode=function(e,t,r){return I(169,e,t,r)},e.updateFunctionTypeNode=function(e,t,r,n){return O(e,t,r,n)},e.createConstructorTypeNode=function(e,t,r){return I(170,e,t,r)},e.updateConstructorTypeNode=function(e,t,r,n){return O(e,t,r,n)},e.createTypeQueryNode=B,e.updateTypeQueryNode=function(e,t){return e.exprName!==t?r(B(t),e):e},e.createTypeLiteralNode=j,e.updateTypeLiteralNode=function(e,t){return e.members!==t?r(j(t),e):e},e.createArrayTypeNode=K,e.updateArrayTypeNode=function(e,t){return e.elementType!==t?r(K(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 V(177,e)},e.updateUnionTypeNode=function(e,t){return q(e,t)},e.createIntersectionTypeNode=function(e){return V(178,e)},e.updateIntersectionTypeNode=function(e,t){return q(e,t)},e.createUnionOrIntersectionTypeNode=V,e.createConditionalTypeNode=W,e.updateConditionalTypeNode=function(e,t,n,i,a){return e.checkType!==t||e.extendsType!==n||e.trueType!==i||e.falseType!==a?r(W(t,n,i,a),e):e},e.createInferTypeNode=G,e.updateInferTypeNode=function(e,t){return e.typeParameter!==t?r(G(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=Y,e.updateParenthesizedType=function(e,t){return e.type!==t?r(Y(t),e):e},e.createThisTypeNode=function(){return t(182)},e.createTypeOperatorNode=X,e.updateTypeOperatorNode=function(e,t){return e.type!==t?r(X(e.operator,t),e):e},e.createIndexedAccessTypeNode=Q,e.updateIndexedAccessTypeNode=function(e,t,n){return e.objectType!==t||e.indexType!==n?r(Q(t,n),e):e},e.createMappedTypeNode=$,e.updateMappedTypeNode=function(e,t,n,i,a){return e.readonlyToken!==t||e.typeParameter!==n||e.questionToken!==i||e.type!==a?r($(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=ee,e.updateObjectBindingPattern=function(e,t){return e.elements!==t?r(ee(t),e):e},e.createArrayBindingPattern=te,e.updateArrayBindingPattern=function(e,t){return e.elements!==t?r(te(t),e):e},e.createBindingElement=re,e.updateBindingElement=function(e,t,n,i,a){return e.propertyName!==n||e.dotDotDotToken!==t||e.name!==i||e.initializer!==a?r(re(t,n,i,a),e):e},e.createArrayLiteral=ne,e.updateArrayLiteral=function(e,t){return e.elements!==t?r(ne(t,e.multiLine),e):e},e.createObjectLiteral=ie,e.updateObjectLiteral=function(e,t){return e.properties!==t?r(ie(t,e.multiLine),e):e},e.createPropertyAccess=ae,e.updatePropertyAccess=function(t,n,i){return e.isOptionalChain(t)?se(t,n,t.questionDotToken,i):t.expression!==n||t.name!==i?r(sr(ae(n,i),e.getEmitFlags(t)),t):t},e.createPropertyAccessChain=oe,e.updatePropertyAccessChain=se,e.createElementAccess=ce,e.updateElementAccess=function(t,n,i){return e.isOptionalChain(t)?le(t,n,t.questionDotToken,i):t.expression!==n||t.argumentExpression!==i?r(ce(n,i),t):t},e.createElementAccessChain=ue,e.updateElementAccessChain=le,e.createCall=_e,e.updateCall=function(t,n,i,a){return e.isOptionalChain(t)?pe(t,n,t.questionDotToken,i,a):t.expression!==n||t.typeArguments!==i||t.arguments!==a?r(_e(n,i,a),t):t},e.createCallChain=de,e.updateCallChain=pe,e.createNew=fe,e.updateNew=function(e,t,n,i){return e.expression!==t||e.typeArguments!==n||e.arguments!==i?r(fe(t,n,i),e):e},e.createTaggedTemplate=me,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(me(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=ye,e.updateParen=function(e,t){return e.expression!==t?r(ye(t),e):e},e.createFunctionExpression=he,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(he(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=be,e.updateDelete=function(e,t){return e.expression!==t?r(be(t),e):e},e.createTypeOf=xe,e.updateTypeOf=function(e,t){return e.expression!==t?r(xe(t),e):e},e.createVoid=De,e.updateVoid=function(e,t){return e.expression!==t?r(De(t),e):e},e.createAwait=Se,e.updateAwait=function(e,t){return e.expression!==t?r(Se(t),e):e},e.createPrefix=Te,e.updatePrefix=function(e,t){return e.operand!==t?r(Te(e.operator,t),e):e},e.createPostfix=Ee,e.updatePostfix=function(e,t){return e.operand!==t?r(Ee(t,e.operator),e):e},e.createBinary=Ce,e.updateBinary=function(e,t,n,i){return e.left!==t||e.right!==n?r(Ce(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=Ne,e.updateTemplateExpression=function(e,t,n){return e.head!==t||e.templateSpans!==n?r(Ne(t,n),e):e};var Ae,Fe,Pe={};function we(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()),l.isUnterminated())return l.setText(void 0),Pe;switch(i){case 14:case 15:case 16:case 17:n=l.getTokenValue()}return 1!==l.scan()?(l.setText(void 0),Pe):(l.setText(void 0),n)}(r,i);if("object"===f(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 Ie(e,r){var n=t(211);return n.asteriskToken=e&&41===e.kind?e:void 0,n.expression=e&&41!==e.kind?e:r,n}function Oe(r){var n=t(212);return n.expression=e.parenthesizeExpressionForList(r),n}function Me(e,r,i,a,o){var s=t(213);return s.decorators=void 0,s.modifiers=nr(e),s.name=tr(r),s.typeParameters=nr(i),s.heritageClauses=nr(a),s.members=n(o),s}function Le(r,n){var i=t(215);return i.expression=e.parenthesizeForAccess(n),i.typeArguments=nr(r),i}function Re(e,r){var n=t(216);return n.expression=e,n.type=r,n}function Be(r){var n=t(217);return n.expression=e.parenthesizeForAccess(r),n}function je(e,r){var n=t(218);return n.keywordToken=e,n.name=r,n}function Ke(e,r){var n=t(220);return n.expression=e,n.literal=r,n}function Je(e,r){var i=t(222);return i.statements=n(e),r&&(i.multiLine=r),i}function ze(r,n){var i=t(224);return i.decorators=void 0,i.modifiers=nr(r),i.declarationList=e.isArray(n)?st(n):n,i}function Ue(){return t(223)}function Ve(r){var n=t(225);return n.expression=e.parenthesizeExpressionForExpressionStatement(r),n}function qe(e,t){return e.expression!==t?r(Ve(t),e):e}function We(e,r,n){var i=t(226);return i.expression=e,i.thenStatement=ir(r),i.elseStatement=ir(n),i}function Ge(e,r){var n=t(227);return n.statement=ir(e),n.expression=r,n}function He(e,r){var n=t(228);return n.expression=e,n.statement=ir(r),n}function Ye(e,r,n,i){var a=t(229);return a.initializer=e,a.condition=r,a.incrementor=n,a.statement=ir(i),a}function Xe(e,r,n){var i=t(230);return i.initializer=e,i.expression=r,i.statement=ir(n),i}function Qe(r,n,i,a){var o=t(231);return o.awaitModifier=r,o.initializer=n,o.expression=e.isCommaSequence(i)?ye(i):i,o.statement=ir(a),o}function $e(e){var r=t(232);return r.label=tr(e),r}function Ze(e){var r=t(233);return r.label=tr(e),r}function et(e){var r=t(234);return r.expression=e,r}function tt(e,r){var n=t(235);return n.expression=e,n.statement=ir(r),n}function rt(r,n){var i=t(236);return i.expression=e.parenthesizeExpressionForList(r),i.caseBlock=n,i}function nt(e,r){var n=t(237);return n.label=tr(e),n.statement=ir(r),n}function it(e){var r=t(238);return r.expression=e,r}function at(e,r,n){var i=t(239);return i.tryBlock=e,i.catchClause=r,i.finallyBlock=n,i}function ot(r,n,i){var a=t(241);return a.name=tr(r),a.type=n,a.initializer=void 0!==i?e.parenthesizeExpressionForList(i):void 0,a}function st(e,r){void 0===r&&(r=0);var i=t(242);return i.flags|=3&r,i.declarations=n(e),i}function ct(e,r,i,a,o,s,c,u){var l=t(243);return l.decorators=nr(e),l.modifiers=nr(r),l.asteriskToken=i,l.name=tr(a),l.typeParameters=nr(o),l.parameters=n(s),l.type=c,l.body=u,l}function ut(e,r,i,a,o,s){var c=t(244);return c.decorators=nr(e),c.modifiers=nr(r),c.name=tr(i),c.typeParameters=nr(a),c.heritageClauses=nr(o),c.members=n(s),c}function lt(e,r,i,a,o,s){var c=t(245);return c.decorators=nr(e),c.modifiers=nr(r),c.name=tr(i),c.typeParameters=nr(a),c.heritageClauses=nr(o),c.members=n(s),c}function _t(e,r,n,i,a){var o=t(246);return o.decorators=nr(e),o.modifiers=nr(r),o.name=tr(n),o.typeParameters=nr(i),o.type=a,o}function dt(e,r,i,a){var o=t(247);return o.decorators=nr(e),o.modifiers=nr(r),o.name=tr(i),o.members=n(a),o}function pt(e,r,n,i,a){void 0===a&&(a=0);var o=t(248);return o.flags|=1044&a,o.decorators=nr(e),o.modifiers=nr(r),o.name=n,o.body=i,o}function ft(e){var r=t(249);return r.statements=n(e),r}function mt(e){var r=t(250);return r.clauses=n(e),r}function gt(e){var r=t(251);return r.name=tr(e),r}function yt(e,r,n,i){var a=t(252);return a.decorators=nr(e),a.modifiers=nr(r),a.name=tr(n),a.moduleReference=i,a}function ht(e,r,n,i){var a=t(253);return a.decorators=nr(e),a.modifiers=nr(r),a.importClause=n,a.moduleSpecifier=i,a}function vt(e,r){var n=t(254);return n.name=e,n.namedBindings=r,n}function bt(e){var r=t(255);return r.name=e,r}function xt(e){var r=t(256);return r.elements=n(e),r}function Dt(e,r){var n=t(257);return n.propertyName=e,n.name=r,n}function St(r,n,i,a){var o=t(258);return o.decorators=nr(r),o.modifiers=nr(n),o.isExportEquals=i,o.expression=i?e.parenthesizeBinaryOperand(62,a,!1,void 0):e.parenthesizeDefaultExpression(a),o}function Tt(e,r,n,i){var a=t(259);return a.decorators=nr(e),a.modifiers=nr(r),a.exportClause=n,a.moduleSpecifier=i,a}function Et(e){var r=t(260);return r.elements=n(e),r}function Ct(e,r){var n=t(261);return n.propertyName=tr(e),n.name=tr(r),n}function kt(e){var r=t(263);return r.expression=e,r}function Nt(e,r){var n=t(e);return n.tagName=u(r),n}function At(e,r,i){var a=t(264);return a.openingElement=e,a.children=n(r),a.closingElement=i,a}function Ft(e,r,n){var i=t(265);return i.tagName=e,i.typeArguments=nr(r),i.attributes=n,i}function Pt(e,r,n){var i=t(266);return i.tagName=e,i.typeArguments=nr(r),i.attributes=n,i}function wt(e){var r=t(267);return r.tagName=e,r}function It(e,r,i){var a=t(268);return a.openingFragment=e,a.children=n(r),a.closingFragment=i,a}function Ot(e,r){var n=t(11);return n.text=e,n.containsOnlyTriviaWhiteSpaces=!!r,n}function Mt(e,r){var n=t(271);return n.name=e,n.initializer=r,n}function Lt(e){var r=t(272);return r.properties=n(e),r}function Rt(e){var r=t(273);return r.expression=e,r}function Bt(e,r){var n=t(274);return n.dotDotDotToken=e,n.expression=r,n}function jt(r,i){var a=t(275);return a.expression=e.parenthesizeExpressionForList(r),a.statements=n(i),a}function Kt(e){var r=t(276);return r.statements=n(e),r}function Jt(e,r){var i=t(277);return i.token=e,i.types=n(r),i}function zt(r,n){var i=t(278);return i.variableDeclaration=e.isString(r)?ot(r):r,i.block=n,i}function Ut(r,n){var i=t(279);return i.name=tr(r),i.questionToken=void 0,i.initializer=e.parenthesizeExpressionForList(n),i}function Vt(r,n){var i=t(280);return i.name=tr(r),i.objectAssignmentInitializer=void 0!==n?e.parenthesizeExpressionForList(n):void 0,i}function qt(r){var n=t(281);return n.expression=e.parenthesizeExpressionForList(r),n}function Wt(r,n){var i=t(282);return i.name=tr(r),i.initializer=n&&e.parenthesizeExpressionForList(n),i}function Gt(e,r){var n=t(319);return n.expression=e,n.original=r,or(n,r),n}function Ht(t){if(e.nodeIsSynthesized(t)&&!e.isParseTreeNode(t)&&!t.original&&!t.emitNode&&!t.id){if(320===t.kind)return t.elements;if(e.isBinaryExpression(t)&&27===t.operatorToken.kind)return[t.left,t.right]}return t}function Yt(r){var i=t(320);return i.elements=n(e.sameFlatMap(r,Ht)),i}function Xt(e,r){var n=t(323);return n.expression=e,n.thisArg=r,n}function Qt(t,r){void 0===r&&(r=e.emptyArray);var n=e.createNode(289);return n.prepends=r,n.sourceFiles=t,n}function $t(){return Ae||(Ae=e.arrayToMap([e.valuesHelper,e.readHelper,e.spreadHelper,e.spreadArraysHelper,e.restHelper,e.decorateHelper,e.metadataHelper,e.paramHelper,e.awaiterHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.extendsHelper,e.templateObjectHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper],(function(e){return e.name})))}function Zt(t,r){var n=e.createNode(function(t){switch(t){case"prologue":return 283;case"prepend":return 284;case"internal":return 286;case"text":return 285;case"emitHelpers":case"no-default-lib":case"reference":case"type":case"lib":return e.Debug.fail("BundleFileSectionKind: "+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 er(t,r){var n=e.createNode(287,t.pos,t.end);return n.parent=r,n.data=t.data,n.section=t,n}function tr(t){return e.isString(t)?u(t):t}function rr(e){return"string"==typeof e?c(e):"number"==typeof e?o(""+e):"boolean"==typeof e?e?m():g():e}function nr(e){return e?n(e):void 0}function ir(t){return t&&e.isNotEmittedStatement(t)?or(dr(Ue(),t),t):t}function ar(t){if(!t.emitNode){if(e.isParseTreeNode(t)){if(288===t.kind)return t.emitNode={annotatedNodes:[t]};ar(e.getSourceFileOfNode(e.getParseTreeNode(e.getSourceFileOfNode(t)))).annotatedNodes.push(t)}t.emitNode={}}return t.emitNode}function or(e,t){return t&&(e.pos=t.pos,e.end=t.end),e}function sr(e,t){return ar(e).flags=t,e}function cr(e){var t=e.emitNode;return t&&t.leadingComments}function ur(e,t){return ar(e).leadingComments=t,e}function lr(e){var t=e.emitNode;return t&&t.trailingComments}function _r(e,t){return ar(e).trailingComments=t,e}function dr(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=we(15,e,t);return r.text=e,r},e.createTemplateMiddle=function(e,t){var r=we(16,e,t);return r.text=e,r},e.createTemplateTail=function(e,t){var r=we(17,e,t);return r.text=e,r},e.createNoSubstitutionTemplateLiteral=function(e,t){return we(14,e,t)},e.createYield=Ie,e.updateYield=function(e,t,n){return e.expression!==n||e.asteriskToken!==t?r(Ie(t,n),e):e},e.createSpread=Oe,e.updateSpread=function(e,t){return e.expression!==t?r(Oe(t),e):e},e.createClassExpression=Me,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(Me(t,n,i,a,o),e):e},e.createOmittedExpression=function(){return t(214)},e.createExpressionWithTypeArguments=Le,e.updateExpressionWithTypeArguments=function(e,t,n){return e.typeArguments!==t||e.expression!==n?r(Le(t,n),e):e},e.createAsExpression=Re,e.updateAsExpression=function(e,t,n){return e.expression!==t||e.type!==n?r(Re(t,n),e):e},e.createNonNullExpression=Be,e.updateNonNullExpression=function(e,t){return e.expression!==t?r(Be(t),e):e},e.createMetaProperty=je,e.updateMetaProperty=function(e,t){return e.name!==t?r(je(e.keywordToken,t),e):e},e.createTemplateSpan=Ke,e.updateTemplateSpan=function(e,t,n){return e.expression!==t||e.literal!==n?r(Ke(t,n),e):e},e.createSemicolonClassElement=function(){return t(221)},e.createBlock=Je,e.updateBlock=function(e,t){return e.statements!==t?r(Je(t,e.multiLine),e):e},e.createVariableStatement=ze,e.updateVariableStatement=function(e,t,n){return e.modifiers!==t||e.declarationList!==n?r(ze(t,n),e):e},e.createEmptyStatement=Ue,e.createExpressionStatement=Ve,e.updateExpressionStatement=qe,e.createStatement=Ve,e.updateStatement=qe,e.createIf=We,e.updateIf=function(e,t,n,i){return e.expression!==t||e.thenStatement!==n||e.elseStatement!==i?r(We(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=He,e.updateWhile=function(e,t,n){return e.expression!==t||e.statement!==n?r(He(t,n),e):e},e.createFor=Ye,e.updateFor=function(e,t,n,i,a){return e.initializer!==t||e.condition!==n||e.incrementor!==i||e.statement!==a?r(Ye(t,n,i,a),e):e},e.createForIn=Xe,e.updateForIn=function(e,t,n,i){return e.initializer!==t||e.expression!==n||e.statement!==i?r(Xe(t,n,i),e):e},e.createForOf=Qe,e.updateForOf=function(e,t,n,i,a){return e.awaitModifier!==t||e.initializer!==n||e.expression!==i||e.statement!==a?r(Qe(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=Ze,e.updateBreak=function(e,t){return e.label!==t?r(Ze(t),e):e},e.createReturn=et,e.updateReturn=function(e,t){return e.expression!==t?r(et(t),e):e},e.createWith=tt,e.updateWith=function(e,t,n){return e.expression!==t||e.statement!==n?r(tt(t,n),e):e},e.createSwitch=rt,e.updateSwitch=function(e,t,n){return e.expression!==t||e.caseBlock!==n?r(rt(t,n),e):e},e.createLabel=nt,e.updateLabel=function(e,t,n){return e.label!==t||e.statement!==n?r(nt(t,n),e):e},e.createThrow=it,e.updateThrow=function(e,t){return e.expression!==t?r(it(t),e):e},e.createTry=at,e.updateTry=function(e,t,n,i){return e.tryBlock!==t||e.catchClause!==n||e.finallyBlock!==i?r(at(t,n,i),e):e},e.createDebuggerStatement=function(){return t(240)},e.createVariableDeclaration=ot,e.updateVariableDeclaration=function(e,t,n,i){return e.name!==t||e.type!==n||e.initializer!==i?r(ot(t,n,i),e):e},e.createVariableDeclarationList=st,e.updateVariableDeclarationList=function(e,t){return e.declarations!==t?r(st(t,e.flags),e):e},e.createFunctionDeclaration=ct,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(ct(t,n,i,a,o,s,c,u),e):e},e.createClassDeclaration=ut,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(ut(t,n,i,a,o,s),e):e},e.createInterfaceDeclaration=lt,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(lt(t,n,i,a,o,s),e):e},e.createTypeAliasDeclaration=_t,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(_t(t,n,i,a,o),e):e},e.createEnumDeclaration=dt,e.updateEnumDeclaration=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.members!==a?r(dt(t,n,i,a),e):e},e.createModuleDeclaration=pt,e.updateModuleDeclaration=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.body!==a?r(pt(t,n,i,a,e.flags),e):e},e.createModuleBlock=ft,e.updateModuleBlock=function(e,t){return e.statements!==t?r(ft(t),e):e},e.createCaseBlock=mt,e.updateCaseBlock=function(e,t){return e.clauses!==t?r(mt(t),e):e},e.createNamespaceExportDeclaration=gt,e.updateNamespaceExportDeclaration=function(e,t){return e.name!==t?r(gt(t),e):e},e.createImportEqualsDeclaration=yt,e.updateImportEqualsDeclaration=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.moduleReference!==a?r(yt(t,n,i,a),e):e},e.createImportDeclaration=ht,e.updateImportDeclaration=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.importClause!==i||e.moduleSpecifier!==a?r(ht(t,n,i,a),e):e},e.createImportClause=vt,e.updateImportClause=function(e,t,n){return e.name!==t||e.namedBindings!==n?r(vt(t,n),e):e},e.createNamespaceImport=bt,e.updateNamespaceImport=function(e,t){return e.name!==t?r(bt(t),e):e},e.createNamedImports=xt,e.updateNamedImports=function(e,t){return e.elements!==t?r(xt(t),e):e},e.createImportSpecifier=Dt,e.updateImportSpecifier=function(e,t,n){return e.propertyName!==t||e.name!==n?r(Dt(t,n),e):e},e.createExportAssignment=St,e.updateExportAssignment=function(e,t,n,i){return e.decorators!==t||e.modifiers!==n||e.expression!==i?r(St(t,n,e.isExportEquals,i),e):e},e.createExportDeclaration=Tt,e.updateExportDeclaration=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.exportClause!==i||e.moduleSpecifier!==a?r(Tt(t,n,i,a),e):e},e.createEmptyExports=function(){return Tt(void 0,void 0,Et([]),void 0)},e.createNamedExports=Et,e.updateNamedExports=function(e,t){return e.elements!==t?r(Et(t),e):e},e.createExportSpecifier=Ct,e.updateExportSpecifier=function(e,t,n){return e.propertyName!==t||e.name!==n?r(Ct(t,n),e):e},e.createExternalModuleReference=kt,e.updateExternalModuleReference=function(e,t){return e.expression!==t?r(kt(t),e):e},e.createJSDocTypeExpression=function(e){var r=t(292);return r.type=e,r},e.createJSDocTypeTag=function(e,t){var r=Nt(313,"type");return r.typeExpression=e,r.comment=t,r},e.createJSDocReturnTag=function(e,t){var r=Nt(311,"returns");return r.typeExpression=e,r.comment=t,r},e.createJSDocThisTag=function(e){var t=Nt(312,"this");return t.typeExpression=e,t},e.createJSDocParamTag=function(e,t,r,n){var i=Nt(310,"param");return i.typeExpression=r,i.name=e,i.isBracketed=t,i.comment=n,i},e.createJSDocComment=function(e,r){var n=t(301);return n.comment=e,n.tags=r,n},e.createJsxElement=At,e.updateJsxElement=function(e,t,n,i){return e.openingElement!==t||e.children!==n||e.closingElement!==i?r(At(t,n,i),e):e},e.createJsxSelfClosingElement=Ft,e.updateJsxSelfClosingElement=function(e,t,n,i){return e.tagName!==t||e.typeArguments!==n||e.attributes!==i?r(Ft(t,n,i),e):e},e.createJsxOpeningElement=Pt,e.updateJsxOpeningElement=function(e,t,n,i){return e.tagName!==t||e.typeArguments!==n||e.attributes!==i?r(Pt(t,n,i),e):e},e.createJsxClosingElement=wt,e.updateJsxClosingElement=function(e,t){return e.tagName!==t?r(wt(t),e):e},e.createJsxFragment=It,e.createJsxText=Ot,e.updateJsxText=function(e,t,n){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==n?r(Ot(t,n),e):e},e.createJsxOpeningFragment=function(){return t(269)},e.createJsxJsxClosingFragment=function(){return t(270)},e.updateJsxFragment=function(e,t,n,i){return e.openingFragment!==t||e.children!==n||e.closingFragment!==i?r(It(t,n,i),e):e},e.createJsxAttribute=Mt,e.updateJsxAttribute=function(e,t,n){return e.name!==t||e.initializer!==n?r(Mt(t,n),e):e},e.createJsxAttributes=Lt,e.updateJsxAttributes=function(e,t){return e.properties!==t?r(Lt(t),e):e},e.createJsxSpreadAttribute=Rt,e.updateJsxSpreadAttribute=function(e,t){return e.expression!==t?r(Rt(t),e):e},e.createJsxExpression=Bt,e.updateJsxExpression=function(e,t){return e.expression!==t?r(Bt(e.dotDotDotToken,t),e):e},e.createCaseClause=jt,e.updateCaseClause=function(e,t,n){return e.expression!==t||e.statements!==n?r(jt(t,n),e):e},e.createDefaultClause=Kt,e.updateDefaultClause=function(e,t){return e.statements!==t?r(Kt(t),e):e},e.createHeritageClause=Jt,e.updateHeritageClause=function(e,t){return e.types!==t?r(Jt(e.token,t),e):e},e.createCatchClause=zt,e.updateCatchClause=function(e,t,n){return e.variableDeclaration!==t||e.block!==n?r(zt(t,n),e):e},e.createPropertyAssignment=Ut,e.updatePropertyAssignment=function(e,t,n){return e.name!==t||e.initializer!==n?r(Ut(t,n),e):e},e.createShorthandPropertyAssignment=Vt,e.updateShorthandPropertyAssignment=function(e,t,n){return e.name!==t||e.objectAssignmentInitializer!==n?r(Vt(t,n),e):e},e.createSpreadAssignment=qt,e.updateSpreadAssignment=function(e,t){return e.expression!==t?r(qt(t),e):e},e.createEnumMember=Wt,e.updateEnumMember=function(e,t,n){return e.name!==t||e.initializer!==n?r(Wt(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(288);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(318);return r.original=e,or(r,e),r},e.createEndOfDeclarationMarker=function(e){var r=t(322);return r.emitNode={},r.original=e,r},e.createMergeDeclarationMarker=function(e){var r=t(321);return r.emitNode={},r.original=e,r},e.createPartiallyEmittedExpression=Gt,e.updatePartiallyEmittedExpression=function(e,t){return e.expression!==t?r(Gt(t,e.original),e):e},e.createCommaList=Yt,e.updateCommaList=function(e,t){return e.elements!==t?r(Yt(t),e):e},e.createSyntheticReferenceExpression=Xt,e.updateSyntheticReferenceExpression=function(e,t,n){return e.expression!==t||e.thisArg!==n?r(Xt(t,n),e):e},e.createBundle=Qt,e.createUnparsedSourceFile=function(t,r,n){var i,a,o=function(){var t=e.createNode(290);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(Zt(s,t));break;case"no-default-lib":case"reference":case"type":case"lib":(i||(i=[])).push(er(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 $t().get(e)})),t.syntheticReferences=i}(o,e.Debug.assertDefined(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(Zt(d,t));break;case"emitHelpers":(a||(a=[])).push($t().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=Zt(d,t),f=void 0,m=0,g=d.texts;m<g.length;m++){var y=g[m];n&&"internal"===y.kind||(f||(f=[])).push(Zt(y,t))}p.texts=f||e.emptyArray,(u||(u=[])).push(p);break;case"internal":if(n){u||(u=[]);break}case"text":(u||(u=[])).push(Zt(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||[Zt({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(291);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(),m=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}},g=function(e){var t=m(e);return void 0!==t?t:"/* Input file "+e+" was missing */\r\n"};d.javascriptPath=r,d.javascriptMapPath=n,d.declarationPath=e.Debug.assertDefined(i),d.declarationMapPath=a,d.buildInfoPath=o,Object.defineProperties(d,{javascriptText:{get:function(){return g(r)}},javascriptMapText:{get:function(){return m(n)}},declarationText:{get:function(){return g(e.Debug.assertDefined(i))}},declarationMapText:{get:function(){return m(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 m(o)}))}}})}return d},e.updateBundle=function(t,r,n){return void 0===n&&(n=e.emptyArray),t.sourceFiles!==r||t.prepends!==n?Qt(r,n):t},e.createImmediatelyInvokedFunctionExpression=function(e,t,r){return _e(he(void 0,void 0,void 0,void 0,t?[t]:[],void 0,Je(e,!0)),void 0,r?[r]:[])},e.createImmediatelyInvokedArrowFunction=function(e,t,r){return _e(ve(void 0,void 0,t?[t]:[],void 0,void 0,Je(e,!0)),void 0,r?[r]:[])},e.createComma=function(e,t){return Ce(e,27,t)},e.createLessThan=function(e,t){return Ce(e,29,t)},e.createAssignment=function(e,t){return Ce(e,62,t)},e.createStrictEquality=function(e,t){return Ce(e,36,t)},e.createStrictInequality=function(e,t){return Ce(e,37,t)},e.createAdd=function(e,t){return Ce(e,39,t)},e.createSubtract=function(e,t){return Ce(e,40,t)},e.createPostfixIncrement=function(e){return Ee(e,45)},e.createLogicalAnd=function(e,t){return Ce(e,55,t)},e.createLogicalOr=function(e,t){return Ce(e,56,t)},e.createNullishCoalesce=function(e,t){return Ce(e,60,t)},e.createLogicalNot=function(e){return Te(53,e)},e.createVoidZero=function(){return De(a(0))},e.createExportDefault=function(e){return St(void 0,void 0,!1,e)},e.createExternalModuleExport=function(e){return Tt(void 0,void 0,Et([Ct(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=ar,e.removeAllComments=function(e){var t=ar(e);return t.flags|=1536,t.leadingComments=void 0,t.trailingComments=void 0,e},e.setTextRange=or,e.setEmitFlags=sr,e.addEmitFlags=function(e,t){var r=ar(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 ar(e).sourceMapRange=t,e},e.createSourceMapSource=function(t,r,n){return new(Fe||(Fe=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=ar(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 ar(e).startsOnNewLine=t,e},e.getCommentRange=function(e){var t=e.emitNode;return t&&t.commentRange||e},e.setCommentRange=function(e,t){return ar(e).commentRange=t,e},e.getSyntheticLeadingComments=cr,e.setSyntheticLeadingComments=ur,e.addSyntheticLeadingComment=function(t,r,n,i){return ur(t,e.append(cr(t),{kind:r,pos:-1,end:-1,hasTrailingNewLine:i,text:n}))},e.getSyntheticTrailingComments=lr,e.setSyntheticTrailingComments=_r,e.addSyntheticTrailingComment=function(t,r,n,i){return _r(t,e.append(lr(t),{kind:r,pos:-1,end:-1,hasTrailingNewLine:i,text:n}))},e.moveSyntheticComments=function(e,t){ur(e,cr(t)),_r(e,lr(t));var r=ar(t);return r.leadingComments=void 0,r.trailingComments=void 0,e},e.getConstantValue=function(e){var t=e.emitNode;return t&&t.constantValue},e.setConstantValue=function(e,t){return ar(e).constantValue=t,e},e.addEmitHelper=function(t,r){var n=ar(t);return n.helpers=e.append(n.helpers,r),t},e.addEmitHelpers=function(t,r){if(e.some(r))for(var n=ar(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=ar(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=dr}(s||(s={})),function(e){function r(t,r,n){if(e.isComputedPropertyName(r))return e.setTextRange(e.createElementAccess(t,r.expression),n);var i=e.setTextRange(e.isIdentifier(r)?e.createPropertyAccess(t,r):e.createElementAccess(t,r),r);return e.getOrCreateEmitNode(i).flags|=64,i}function n(t,r){var n=e.createIdentifier(t||"React");return n.flags&=-9,n.parent=e.getParseTreeNode(r),n}function i(t,r,i){return t?function t(r,i){if(e.isQualifiedName(r)){var a=t(r.left,i),o=e.createIdentifier(e.idText(r.right));return o.escapedText=r.right.escapedText,e.createPropertyAccess(a,o)}return n(e.idText(r),i)}(t,i):e.createPropertyAccess(n(r,i),"createElement")}function a(t){return e.setEmitFlags(e.createIdentifier(t),4098)}function o(t,r){var n=e.skipParentheses(t);switch(n.kind){case 75:return r;case 103:case 8:case 9:case 10:return!1;case 191:return 0!==n.elements.length;case 192: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(C(e.createStatement(e.createLiteral("use strict")))),a}function p(t,r,n,i){for(var a=r.length;void 0!==n&&n<a;){var o=r[n];if(!(1048576&e.getEmitFlags(o)))break;e.append(t,i?e.visitNode(o,i,e.isStatement):o),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 m(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isLiteralKind(t.kind))return t.kind;if(208===t.kind&&39===t.operatorToken.kind){if(void 0!==t.cachedLiteralKind)return t.cachedLiteralKind;var r=m(t.left),n=e.isLiteralKind(r)&&r===m(t.right)?r:0;return t.cachedLiteralKind=n,n}return 0}function g(t){var r=e.skipPartiallyEmittedExpressions(t);return e.isLeftHandSideExpression(r)&&(196!==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(208,27)?t:e.setTextRange(e.createParen(t),t)}function h(t){return 179===t.kind?e.createParenthesizedType(t):t}function v(t){switch(t.kind){case 177:case 178:case 169:case 170:return e.createParenthesizedType(t)}return h(t)}function b(e,t){for(;;){switch(e.kind){case 207:e=e.operand;continue;case 208:e=e.left;continue;case 209:e=e.condition;continue;case 197:e=e.tag;continue;case 195:if(t)return e;case 216:case 194:case 193:case 217:case 319:e=e.expression;continue}return e}}function x(e){return 208===e.kind&&27===e.operatorToken.kind||320===e.kind}function D(e,t){switch(void 0===t&&(t=7),e.kind){case 199:return 0!=(1&t);case 198:case 216:case 217:return 0!=(2&t);case 319:return 0!=(4&t)}return!1}function S(t,r){var n;void 0===r&&(r=7);do{n=t,1&r&&(t=e.skipParentheses(t)),2&r&&(t=T(t)),4&r&&(t=e.skipPartiallyEmittedExpressions(t))}while(n!==t);return t}function T(t){for(;e.isAssertionExpression(t)||217===t.kind;)t=t.expression;return t}function E(t,r,n){return void 0===n&&(n=7),t&&D(t,n)&&!function(t){return 199===t.kind&&e.nodeIsSynthesized(t)&&e.nodeIsSynthesized(e.getSourceMapRange(t))&&e.nodeIsSynthesized(e.getCommentRange(t))&&!e.some(e.getSyntheticLeadingComments(t))&&!e.some(e.getSyntheticTrailingComments(t))}(t)?function(t,r){switch(t.kind){case 199:return e.updateParen(t,r);case 198:return e.updateTypeAssertion(t,t.type,r);case 216:return e.updateAsExpression(t,r,t.type);case 217:return e.updateNonNullExpression(t,r);case 319:return e.updatePartiallyEmittedExpression(t,r)}}(t,E(t.expression,r)):r}function C(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 N(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&&o!==e.ModuleKind.ESNext;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 A(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 F(t){if(e.isDeclarationBindingElement(t))return t.name;if(!e.isObjectLiteralElementLike(t))return e.isAssignmentExpression(t,!0)?F(t.left):e.isSpreadElement(t)?F(t.expression):t;switch(t.kind){case 279:return F(t.initializer);case 280:return t.name;case 281:return F(t.expression)}}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 189:case 191:return L(e);case 188:case 192: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:e.notImplemented,getEmitHost:e.notImplemented,getEmitResolver:e.notImplemented,hoistFunctionDeclaration:e.noop,hoistVariableDeclaration:e.noop,isEmitNotificationEnabled:e.notImplemented,isSubstitutionEnabled:e.notImplemented,onEmitNode:e.noop,onSubstituteNode:e.notImplemented,readEmitHelpers:e.notImplemented,requestEmitHelper:e.noop,resumeLexicalEnvironment:e.noop,startLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop,addDiagnostic:e.noop},e.createTypeCheck=function(t,r){return"undefined"===r?e.createStrictEquality(t,e.createVoidZero()):e.createStrictEquality(e.createTypeOf(t),e.createLiteral(r))},e.createMemberAccessForPropertyName=r,e.createFunctionCall=function(r,n,i,a){return e.setTextRange(e.createCall(e.createPropertyAccess(r,"call"),void 0,t([n],i)),a)},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,n,a,o,s,c){var u=[n];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];C(d),u.push(d)}else u.push(o[0]);return e.setTextRange(e.createCall(i(t,r,s),void 0,u),c)},e.createExpressionForJsxFragment=function(t,r,a,o,s){var c=[e.createPropertyAccess(n(r,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];C(_),c.push(_)}else c.push(a[0]);return e.setTextRange(e.createCall(i(t,r,o),void 0,c),s)},e.getUnscopedHelperName=a,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(a("__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,i){return t.requestEmitHelper(e.readHelper),e.setTextRange(e.createCall(a("__read"),void 0,void 0!==n?[r,e.createLiteral(n)]:[r]),i)},e.spreadHelper={name:"typescript:spread",importName:"__spread",scoped:!1,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.readHelper),t.requestEmitHelper(e.spreadHelper),e.setTextRange(e.createCall(a("__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(a("__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(r,n){return e.isBlock(r)?e.updateBlock(r,e.setTextRange(e.createNodeArray(t([n],r.statements)),r.statements)):e.createBlock(e.createNodeArray([r,n]),!0)},e.restoreEnclosingLabel=function t(r,n,i){if(!n)return r;var a=e.updateLabel(n,n.label,237===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 a,s,c=S(t,7);if(e.isSuperProperty(c))a=e.createThis(),s=c;else if(101===c.kind)a=e.createThis(),s=n<2?e.setTextRange(e.createIdentifier("_super"),c):c;else if(4096&e.getEmitFlags(c))a=e.createVoidZero(),s=g(c);else switch(c.kind){case 193:o(c.expression,i)?(a=e.createTempVariable(r),s=e.createPropertyAccess(e.setTextRange(e.createAssignment(a,c.expression),c.expression),c.name),e.setTextRange(s,c)):(a=c.expression,s=c);break;case 194:o(c.expression,i)?(a=e.createTempVariable(r),s=e.createElementAccess(e.setTextRange(e.createAssignment(a,c.expression),c.expression),c.argumentExpression),e.setTextRange(s,c)):(a=c.expression,s=c);break;default:a=e.createVoidZero(),s=g(t)}return{target:s,thisArg:a}},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(t,n,i){switch(n.kind){case 162:case 163: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",e.createTrue())),l.push(e.createPropertyAssignment("configurable",e.createTrue()));var m=e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[n,s(r.name),e.createObjectLiteral(l,i)]),o);return e.aggregateTransformFlags(m)}return}(t.properties,n,i,!!t.multiLine);case 279:return function(t,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(r(n,t.name,t.name),t.initializer),t),t))}(n,i);case 280:return function(t,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(r(n,t.name,t.name),e.getSynthesizedClone(t.name)),t),t))}(n,i);case 160:return function(t,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(r(n,t.name,t.name),e.setOriginalNode(e.setTextRange(e.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t))}(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(r){return f(r)?r:e.setTextRange(e.createNodeArray(t([C(e.createStatement(e.createLiteral("use strict")))],r)),r)},e.parenthesizeBinaryOperand=function(t,r,n,i){return 199===e.skipPartiallyEmittedExpressions(r).kind?r:function(t,r,n,i){var a=e.getOperatorPrecedence(208,t),o=e.getOperatorAssociativity(208,t),s=e.skipPartiallyEmittedExpressions(r);if(!n&&201===r.kind&&a>3)return!0;var c=e.getExpressionPrecedence(s);switch(e.compareValues(c,a)){case-1:return!(!n&&1===o&&211===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?m(i):0;if(e.isLiteralKind(u)&&u===m(s))return!1}}return 0===e.getExpressionAssociativity(s)}}(t,r,n,i)?e.createParen(r):r},e.parenthesizeForConditionalHead=function(t){var r=e.getOperatorPrecedence(209,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 213:case 200:n=!0}return n?e.createParen(t):t},e.parenthesizeForNew=function(t){var r=b(t,!0);switch(r.kind){case 195:return e.createParen(t);case 196:return r.arguments?t:e.createParen(t)}return g(t)},e.parenthesizeForAccess=g,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(200===i||201===i){var a=e.getMutableClone(r);return a.expression=e.setTextRange(e.createParen(n),n),E(t,a,4)}}var o=b(r,!1).kind;return 192===o||200===o?e.setTextRange(e.createParen(t),t):t},e.parenthesizeConditionalTypeMember=h,e.parenthesizeElementTypeMember=v,e.parenthesizeArrayTypeMember=function(t){switch(t.kind){case 171:case 183:case 180:return e.createParenthesizedType(t)}return v(t)},e.parenthesizeElementTypeMembers=function(t){return e.createNodeArray(e.sameMap(t,v))},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)&&192!==b(t,!1).kind?t:e.setTextRange(e.createParen(t),t)},e.isCommaSequence=x,function(e){e[e.Parentheses=1]="Parentheses",e[e.Assertions=2]="Assertions",e[e.PartiallyEmittedExpressions=4]="PartiallyEmittedExpressions",e[e.All=7]="All"}(e.OuterExpressionKinds||(e.OuterExpressionKinds={})),e.isOuterExpression=D,e.skipOuterExpressions=S,e.skipAssertions=T,e.recreateOuterExpressions=E,e.startOnNewLine=C,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,i,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),a(r))})));var m=e.getOriginalNode(t,e.isSourceFile);e.getOrCreateEmitNode(m).externalHelpers=!0}}}else{var g=N(t,r,n,i||o);g&&(s=e.createNamespaceImport(g))}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=N,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 253===t.kind&&t.importClause?e.getGeneratedNameForNode(t):259===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 A(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=A,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=F,e.getRestIndicatorOfBindingOrAssignmentElement=function(e){switch(e.kind){case 155:case 190:return e.dotDotDotToken;case 212:case 281:return e}},e.getPropertyNameOfBindingOrAssignmentElement=function(t){switch(t.kind){case 190:if(t.propertyName){var r=t.propertyName;return e.isComputedPropertyName(r)&&P(r.expression)?r.expression:r}break;case 279:if(t.name){r=t.name;return e.isComputedPropertyName(r)&&P(r.expression)?r.expression:r}break;case 281:return t.name}var n=F(t);if(n&&e.isPropertyName(n))return e.isComputedPropertyName(n)&&P(n.expression)?n.expression:n;e.Debug.fail("Invalid property name for binding element.")},e.getElementsOfBindingOrAssignmentPattern=function(e){switch(e.kind){case 188:case 189:case 191:return e.elements;case 192:return e.properties}},e.convertToArrayAssignmentElement=w,e.convertToObjectAssignmentElement=I,e.convertToAssignmentPattern=O,e.convertToObjectAssignmentPattern=M,e.convertToArrayAssignmentPattern=L,e.convertToAssignmentElementTarget=R}(s||(s={})),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||s)(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){void 0===a&&(a=n),i.startLexicalEnvironment();var o=a(t,r,e.isParameterDeclaration);return i.suspendLexicalEnvironment(),o}function o(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 s(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=o,e.visitEachChild=function(s,c,u,l,_){if(void 0===l&&(l=n),void 0!==s){var d=s.kind;if(d>0&&d<=151||182===d)return s;switch(d){case 75:return e.updateIdentifier(s,l(s.typeArguments,c,t));case 152:return e.updateQualifiedName(s,r(s.left,c,e.isEntityName),r(s.right,c,e.isIdentifier));case 153:return e.updateComputedPropertyName(s,r(s.expression,c,e.isExpression));case 154:return e.updateTypeParameterDeclaration(s,r(s.name,c,e.isIdentifier),r(s.constraint,c,e.isTypeNode),r(s.default,c,e.isTypeNode));case 155:return e.updateParameter(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.dotDotDotToken,_,e.isToken),r(s.name,c,e.isBindingName),r(s.questionToken,_,e.isToken),r(s.type,c,e.isTypeNode),r(s.initializer,c,e.isExpression));case 156:return e.updateDecorator(s,r(s.expression,c,e.isExpression));case 157:return e.updatePropertySignature(s,l(s.modifiers,c,e.isToken),r(s.name,c,e.isPropertyName),r(s.questionToken,_,e.isToken),r(s.type,c,e.isTypeNode),r(s.initializer,c,e.isExpression));case 158:return e.updateProperty(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isPropertyName),r(s.questionToken||s.exclamationToken,_,e.isToken),r(s.type,c,e.isTypeNode),r(s.initializer,c,e.isExpression));case 159:return e.updateMethodSignature(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode),r(s.name,c,e.isPropertyName),r(s.questionToken,_,e.isToken));case 160:return e.updateMethod(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.asteriskToken,_,e.isToken),r(s.name,c,e.isPropertyName),r(s.questionToken,_,e.isToken),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),r(s.type,c,e.isTypeNode),o(s.body,c,u));case 161:return e.updateConstructor(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),a(s.parameters,c,u,l),o(s.body,c,u));case 162:return e.updateGetAccessor(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isPropertyName),a(s.parameters,c,u,l),r(s.type,c,e.isTypeNode),o(s.body,c,u));case 163:return e.updateSetAccessor(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isPropertyName),a(s.parameters,c,u,l),o(s.body,c,u));case 164:return e.updateCallSignature(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode));case 165:return e.updateConstructSignature(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode));case 166:return e.updateIndexSignature(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode));case 167:return e.updateTypePredicateNodeWithModifier(s,r(s.assertsModifier,c),r(s.parameterName,c),r(s.type,c,e.isTypeNode));case 168:return e.updateTypeReferenceNode(s,r(s.typeName,c,e.isEntityName),l(s.typeArguments,c,e.isTypeNode));case 169:return e.updateFunctionTypeNode(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode));case 170:return e.updateConstructorTypeNode(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode));case 171:return e.updateTypeQueryNode(s,r(s.exprName,c,e.isEntityName));case 172:return e.updateTypeLiteralNode(s,l(s.members,c,e.isTypeElement));case 173:return e.updateArrayTypeNode(s,r(s.elementType,c,e.isTypeNode));case 174:return e.updateTupleTypeNode(s,l(s.elementTypes,c,e.isTypeNode));case 175:return e.updateOptionalTypeNode(s,r(s.type,c,e.isTypeNode));case 176:return e.updateRestTypeNode(s,r(s.type,c,e.isTypeNode));case 177:return e.updateUnionTypeNode(s,l(s.types,c,e.isTypeNode));case 178:return e.updateIntersectionTypeNode(s,l(s.types,c,e.isTypeNode));case 179:return e.updateConditionalTypeNode(s,r(s.checkType,c,e.isTypeNode),r(s.extendsType,c,e.isTypeNode),r(s.trueType,c,e.isTypeNode),r(s.falseType,c,e.isTypeNode));case 180:return e.updateInferTypeNode(s,r(s.typeParameter,c,e.isTypeParameterDeclaration));case 187:return e.updateImportTypeNode(s,r(s.argument,c,e.isTypeNode),r(s.qualifier,c,e.isEntityName),n(s.typeArguments,c,e.isTypeNode),s.isTypeOf);case 181:return e.updateParenthesizedType(s,r(s.type,c,e.isTypeNode));case 183:return e.updateTypeOperatorNode(s,r(s.type,c,e.isTypeNode));case 184:return e.updateIndexedAccessTypeNode(s,r(s.objectType,c,e.isTypeNode),r(s.indexType,c,e.isTypeNode));case 185:return e.updateMappedTypeNode(s,r(s.readonlyToken,_,e.isToken),r(s.typeParameter,c,e.isTypeParameterDeclaration),r(s.questionToken,_,e.isToken),r(s.type,c,e.isTypeNode));case 186:return e.updateLiteralTypeNode(s,r(s.literal,c,e.isExpression));case 188:return e.updateObjectBindingPattern(s,l(s.elements,c,e.isBindingElement));case 189:return e.updateArrayBindingPattern(s,l(s.elements,c,e.isArrayBindingElement));case 190:return e.updateBindingElement(s,r(s.dotDotDotToken,_,e.isToken),r(s.propertyName,c,e.isPropertyName),r(s.name,c,e.isBindingName),r(s.initializer,c,e.isExpression));case 191:return e.updateArrayLiteral(s,l(s.elements,c,e.isExpression));case 192:return e.updateObjectLiteral(s,l(s.properties,c,e.isObjectLiteralElementLike));case 193:return 32&s.flags?e.updatePropertyAccessChain(s,r(s.expression,c,e.isExpression),r(s.questionDotToken,c,e.isToken),r(s.name,c,e.isIdentifier)):e.updatePropertyAccess(s,r(s.expression,c,e.isExpression),r(s.name,c,e.isIdentifier));case 194:return 32&s.flags?e.updateElementAccessChain(s,r(s.expression,c,e.isExpression),r(s.questionDotToken,c,e.isToken),r(s.argumentExpression,c,e.isExpression)):e.updateElementAccess(s,r(s.expression,c,e.isExpression),r(s.argumentExpression,c,e.isExpression));case 195:return 32&s.flags?e.updateCallChain(s,r(s.expression,c,e.isExpression),r(s.questionDotToken,c,e.isToken),l(s.typeArguments,c,e.isTypeNode),l(s.arguments,c,e.isExpression)):e.updateCall(s,r(s.expression,c,e.isExpression),l(s.typeArguments,c,e.isTypeNode),l(s.arguments,c,e.isExpression));case 196:return e.updateNew(s,r(s.expression,c,e.isExpression),l(s.typeArguments,c,e.isTypeNode),l(s.arguments,c,e.isExpression));case 197:return e.updateTaggedTemplate(s,r(s.tag,c,e.isExpression),n(s.typeArguments,c,e.isExpression),r(s.template,c,e.isTemplateLiteral));case 198:return e.updateTypeAssertion(s,r(s.type,c,e.isTypeNode),r(s.expression,c,e.isExpression));case 199:return e.updateParen(s,r(s.expression,c,e.isExpression));case 200:return e.updateFunctionExpression(s,l(s.modifiers,c,e.isModifier),r(s.asteriskToken,_,e.isToken),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),r(s.type,c,e.isTypeNode),o(s.body,c,u));case 201:return e.updateArrowFunction(s,l(s.modifiers,c,e.isModifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),r(s.type,c,e.isTypeNode),r(s.equalsGreaterThanToken,c,e.isToken),o(s.body,c,u));case 202:return e.updateDelete(s,r(s.expression,c,e.isExpression));case 203:return e.updateTypeOf(s,r(s.expression,c,e.isExpression));case 204:return e.updateVoid(s,r(s.expression,c,e.isExpression));case 205:return e.updateAwait(s,r(s.expression,c,e.isExpression));case 206:return e.updatePrefix(s,r(s.operand,c,e.isExpression));case 207:return e.updatePostfix(s,r(s.operand,c,e.isExpression));case 208:return e.updateBinary(s,r(s.left,c,e.isExpression),r(s.right,c,e.isExpression),r(s.operatorToken,c,e.isToken));case 209:return e.updateConditional(s,r(s.condition,c,e.isExpression),r(s.questionToken,c,e.isToken),r(s.whenTrue,c,e.isExpression),r(s.colonToken,c,e.isToken),r(s.whenFalse,c,e.isExpression));case 210:return e.updateTemplateExpression(s,r(s.head,c,e.isTemplateHead),l(s.templateSpans,c,e.isTemplateSpan));case 211:return e.updateYield(s,r(s.asteriskToken,_,e.isToken),r(s.expression,c,e.isExpression));case 212:return e.updateSpread(s,r(s.expression,c,e.isExpression));case 213:return e.updateClassExpression(s,l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.heritageClauses,c,e.isHeritageClause),l(s.members,c,e.isClassElement));case 215:return e.updateExpressionWithTypeArguments(s,l(s.typeArguments,c,e.isTypeNode),r(s.expression,c,e.isExpression));case 216:return e.updateAsExpression(s,r(s.expression,c,e.isExpression),r(s.type,c,e.isTypeNode));case 217:return e.updateNonNullExpression(s,r(s.expression,c,e.isExpression));case 218:return e.updateMetaProperty(s,r(s.name,c,e.isIdentifier));case 220:return e.updateTemplateSpan(s,r(s.expression,c,e.isExpression),r(s.literal,c,e.isTemplateMiddleOrTemplateTail));case 222:return e.updateBlock(s,l(s.statements,c,e.isStatement));case 224:return e.updateVariableStatement(s,l(s.modifiers,c,e.isModifier),r(s.declarationList,c,e.isVariableDeclarationList));case 225:return e.updateExpressionStatement(s,r(s.expression,c,e.isExpression));case 226:return e.updateIf(s,r(s.expression,c,e.isExpression),r(s.thenStatement,c,e.isStatement,e.liftToBlock),r(s.elseStatement,c,e.isStatement,e.liftToBlock));case 227:return e.updateDo(s,r(s.statement,c,e.isStatement,e.liftToBlock),r(s.expression,c,e.isExpression));case 228:return e.updateWhile(s,r(s.expression,c,e.isExpression),r(s.statement,c,e.isStatement,e.liftToBlock));case 229:return e.updateFor(s,r(s.initializer,c,e.isForInitializer),r(s.condition,c,e.isExpression),r(s.incrementor,c,e.isExpression),r(s.statement,c,e.isStatement,e.liftToBlock));case 230:return e.updateForIn(s,r(s.initializer,c,e.isForInitializer),r(s.expression,c,e.isExpression),r(s.statement,c,e.isStatement,e.liftToBlock));case 231:return e.updateForOf(s,r(s.awaitModifier,c,e.isToken),r(s.initializer,c,e.isForInitializer),r(s.expression,c,e.isExpression),r(s.statement,c,e.isStatement,e.liftToBlock));case 232:return e.updateContinue(s,r(s.label,c,e.isIdentifier));case 233:return e.updateBreak(s,r(s.label,c,e.isIdentifier));case 234:return e.updateReturn(s,r(s.expression,c,e.isExpression));case 235:return e.updateWith(s,r(s.expression,c,e.isExpression),r(s.statement,c,e.isStatement,e.liftToBlock));case 236:return e.updateSwitch(s,r(s.expression,c,e.isExpression),r(s.caseBlock,c,e.isCaseBlock));case 237:return e.updateLabel(s,r(s.label,c,e.isIdentifier),r(s.statement,c,e.isStatement,e.liftToBlock));case 238:return e.updateThrow(s,r(s.expression,c,e.isExpression));case 239:return e.updateTry(s,r(s.tryBlock,c,e.isBlock),r(s.catchClause,c,e.isCatchClause),r(s.finallyBlock,c,e.isBlock));case 241:return e.updateVariableDeclaration(s,r(s.name,c,e.isBindingName),r(s.type,c,e.isTypeNode),r(s.initializer,c,e.isExpression));case 242:return e.updateVariableDeclarationList(s,l(s.declarations,c,e.isVariableDeclaration));case 243:return e.updateFunctionDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.asteriskToken,_,e.isToken),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),r(s.type,c,e.isTypeNode),o(s.body,c,u));case 244:return e.updateClassDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.heritageClauses,c,e.isHeritageClause),l(s.members,c,e.isClassElement));case 245:return e.updateInterfaceDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.heritageClauses,c,e.isHeritageClause),l(s.members,c,e.isTypeElement));case 246:return e.updateTypeAliasDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),r(s.type,c,e.isTypeNode));case 247:return e.updateEnumDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),l(s.members,c,e.isEnumMember));case 248:return e.updateModuleDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),r(s.body,c,e.isModuleBody));case 249:return e.updateModuleBlock(s,l(s.statements,c,e.isStatement));case 250:return e.updateCaseBlock(s,l(s.clauses,c,e.isCaseOrDefaultClause));case 251:return e.updateNamespaceExportDeclaration(s,r(s.name,c,e.isIdentifier));case 252:return e.updateImportEqualsDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),r(s.moduleReference,c,e.isModuleReference));case 253:return e.updateImportDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.importClause,c,e.isImportClause),r(s.moduleSpecifier,c,e.isExpression));case 254:return e.updateImportClause(s,r(s.name,c,e.isIdentifier),r(s.namedBindings,c,e.isNamedImportBindings));case 255:return e.updateNamespaceImport(s,r(s.name,c,e.isIdentifier));case 256:return e.updateNamedImports(s,l(s.elements,c,e.isImportSpecifier));case 257:return e.updateImportSpecifier(s,r(s.propertyName,c,e.isIdentifier),r(s.name,c,e.isIdentifier));case 258:return e.updateExportAssignment(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.expression,c,e.isExpression));case 259:return e.updateExportDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.exportClause,c,e.isNamedExports),r(s.moduleSpecifier,c,e.isExpression));case 260:return e.updateNamedExports(s,l(s.elements,c,e.isExportSpecifier));case 261:return e.updateExportSpecifier(s,r(s.propertyName,c,e.isIdentifier),r(s.name,c,e.isIdentifier));case 263:return e.updateExternalModuleReference(s,r(s.expression,c,e.isExpression));case 264:return e.updateJsxElement(s,r(s.openingElement,c,e.isJsxOpeningElement),l(s.children,c,e.isJsxChild),r(s.closingElement,c,e.isJsxClosingElement));case 265:return e.updateJsxSelfClosingElement(s,r(s.tagName,c,e.isJsxTagNameExpression),l(s.typeArguments,c,e.isTypeNode),r(s.attributes,c,e.isJsxAttributes));case 266:return e.updateJsxOpeningElement(s,r(s.tagName,c,e.isJsxTagNameExpression),l(s.typeArguments,c,e.isTypeNode),r(s.attributes,c,e.isJsxAttributes));case 267:return e.updateJsxClosingElement(s,r(s.tagName,c,e.isJsxTagNameExpression));case 268:return e.updateJsxFragment(s,r(s.openingFragment,c,e.isJsxOpeningFragment),l(s.children,c,e.isJsxChild),r(s.closingFragment,c,e.isJsxClosingFragment));case 271:return e.updateJsxAttribute(s,r(s.name,c,e.isIdentifier),r(s.initializer,c,e.isStringLiteralOrJsxExpression));case 272:return e.updateJsxAttributes(s,l(s.properties,c,e.isJsxAttributeLike));case 273:return e.updateJsxSpreadAttribute(s,r(s.expression,c,e.isExpression));case 274:return e.updateJsxExpression(s,r(s.expression,c,e.isExpression));case 275:return e.updateCaseClause(s,r(s.expression,c,e.isExpression),l(s.statements,c,e.isStatement));case 276:return e.updateDefaultClause(s,l(s.statements,c,e.isStatement));case 277:return e.updateHeritageClause(s,l(s.types,c,e.isExpressionWithTypeArguments));case 278:return e.updateCatchClause(s,r(s.variableDeclaration,c,e.isVariableDeclaration),r(s.block,c,e.isBlock));case 279:return e.updatePropertyAssignment(s,r(s.name,c,e.isPropertyName),r(s.initializer,c,e.isExpression));case 280:return e.updateShorthandPropertyAssignment(s,r(s.name,c,e.isIdentifier),r(s.objectAssignmentInitializer,c,e.isExpression));case 281:return e.updateSpreadAssignment(s,r(s.expression,c,e.isExpression));case 282:return e.updateEnumMember(s,r(s.name,c,e.isPropertyName),r(s.initializer,c,e.isExpression));case 288:return e.updateSourceFileNode(s,i(s.statements,c,u));case 319:return e.updatePartiallyEmittedExpression(s,r(s.expression,c,e.isExpression));case 320:return e.updateCommaList(s,l(s.elements,c,e.isExpression));default:return s}}}}(s||(s={})),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<=151)return i;if(u>=167&&u<=186)return i;var l=i;switch(n.kind){case 221:case 223:case 214:case 240:case 318:break;case 152:l=t(n.left,a,l),l=t(n.right,a,l);break;case 153:l=t(n.expression,a,l);break;case 155: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 156:l=t(n.expression,a,l);break;case 157: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 158: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 160: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 161:l=s(n.modifiers,c,l),l=s(n.parameters,c,l),l=t(n.body,a,l);break;case 162: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 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.body,a,l);break;case 188:case 189:l=s(n.elements,c,l);break;case 190:l=t(n.propertyName,a,l),l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 191:l=s(n.elements,c,l);break;case 192:l=s(n.properties,c,l);break;case 193:l=t(n.expression,a,l),l=t(n.name,a,l);break;case 194:l=t(n.expression,a,l),l=t(n.argumentExpression,a,l);break;case 195:case 196:l=t(n.expression,a,l),l=s(n.typeArguments,c,l),l=s(n.arguments,c,l);break;case 197:l=t(n.tag,a,l),l=s(n.typeArguments,c,l),l=t(n.template,a,l);break;case 198:l=t(n.type,a,l),l=t(n.expression,a,l);break;case 200: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 201: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 199:case 202:case 203:case 204:case 205:case 211:case 212:case 217:l=t(n.expression,a,l);break;case 206:case 207:l=t(n.operand,a,l);break;case 208:l=t(n.left,a,l),l=t(n.right,a,l);break;case 209:l=t(n.condition,a,l),l=t(n.whenTrue,a,l),l=t(n.whenFalse,a,l);break;case 210:l=t(n.head,a,l),l=s(n.templateSpans,c,l);break;case 213: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 215:l=t(n.expression,a,l),l=s(n.typeArguments,c,l);break;case 216:l=t(n.expression,a,l),l=t(n.type,a,l);break;case 220:l=t(n.expression,a,l),l=t(n.literal,a,l);break;case 222:l=s(n.statements,c,l);break;case 224:l=s(n.modifiers,c,l),l=t(n.declarationList,a,l);break;case 225:l=t(n.expression,a,l);break;case 226:l=t(n.expression,a,l),l=t(n.thenStatement,a,l),l=t(n.elseStatement,a,l);break;case 227:l=t(n.statement,a,l),l=t(n.expression,a,l);break;case 228:case 235:l=t(n.expression,a,l),l=t(n.statement,a,l);break;case 229: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 230:case 231:l=t(n.initializer,a,l),l=t(n.expression,a,l),l=t(n.statement,a,l);break;case 234:case 238:l=t(n.expression,a,l);break;case 236:l=t(n.expression,a,l),l=t(n.caseBlock,a,l);break;case 237:l=t(n.label,a,l),l=t(n.statement,a,l);break;case 239:l=t(n.tryBlock,a,l),l=t(n.catchClause,a,l),l=t(n.finallyBlock,a,l);break;case 241:l=t(n.name,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 242:l=s(n.declarations,c,l);break;case 243: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 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.heritageClauses,c,l),l=s(n.members,c,l);break;case 247: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 248: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 249:l=s(n.statements,c,l);break;case 250:l=s(n.clauses,c,l);break;case 252: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 253: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 254:l=t(n.name,a,l),l=t(n.namedBindings,a,l);break;case 255:l=t(n.name,a,l);break;case 256:case 260:l=s(n.elements,c,l);break;case 257:case 261:l=t(n.propertyName,a,l),l=t(n.name,a,l);break;case 258:l=e.reduceLeft(n.decorators,a,l),l=e.reduceLeft(n.modifiers,a,l),l=t(n.expression,a,l);break;case 259: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 263:l=t(n.expression,a,l);break;case 264:l=t(n.openingElement,a,l),l=e.reduceLeft(n.children,a,l),l=t(n.closingElement,a,l);break;case 268:l=t(n.openingFragment,a,l),l=e.reduceLeft(n.children,a,l),l=t(n.closingFragment,a,l);break;case 265:case 266:l=t(n.tagName,a,l),l=s(n.typeArguments,a,l),l=t(n.attributes,a,l);break;case 272:l=s(n.properties,c,l);break;case 267:l=t(n.tagName,a,l);break;case 271:l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 273:case 274:l=t(n.expression,a,l);break;case 275:l=t(n.expression,a,l);case 276:l=s(n.statements,c,l);break;case 277:l=s(n.types,c,l);break;case 278:l=t(n.variableDeclaration,a,l),l=t(n.block,a,l);break;case 279:l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 280:l=t(n.name,a,l),l=t(n.objectAssignmentInitializer,a,l);break;case 281:l=t(n.expression,a,l);break;case 282:l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 288:l=s(n.statements,c,l);break;case 319:l=t(n.expression,a,l);break;case 320:l=s(n.elements,c,l)}return l}function i(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)&&215!==t.kind)return 0;return n(t,0,a,o)}(t);return e.computeTransformFlagsForNode(t,r)}function a(e,t){return e|i(t)}function o(e,t){return e|function(e){if(void 0===e)return 0;for(var t=0,r=0,n=0,a=e;n<a.length;n++){var o=a[n];t|=i(o),r|=-536870913&o.transformFlags}return e.transformFlags=536870912|r,t}(t)}e.reduceEachChild=n,e.mergeLexicalEnvironment=function(t,r){return e.some(r)?e.isNodeArray(t)?e.setTextRange(e.createNodeArray(e.insertStatementsAfterStandardPrologue(t.slice(),r)),t):e.insertStatementsAfterStandardPrologue(t,r):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 i(e),e}}(s||(s={})),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=[],m=e.createMap(),g=[],y="",h=0,v=0,b=0,x=0,D=0,S=0,T=!1,E=0,C=0,k=0,N=0,A=0,F=0,P=!1,w=!1,I=!1;return{getSources:function(){return p},addSource:O,setSourceContent:M,addName:L,addMapping:R,appendSourceMap:function(t,r,n,i,o,s){e.Debug.assert(t>=E,"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 m=void 0,g=void 0,y=void 0,h=void 0;if(void 0!==f.sourceIndex){if(void 0===(m=u[f.sourceIndex])){var v=n.sources[f.sourceIndex],b=n.sourceRoot?e.combinePaths(n.sourceRoot,v):v,x=e.combinePaths(e.getDirectoryPath(i),b);u[f.sourceIndex]=m=O(x),n.sourcesContent&&"string"==typeof n.sourcesContent[f.sourceIndex]&&M(m,n.sourcesContent[f.sourceIndex])}g=f.sourceLine,y=f.sourceCharacter,n.names&&void 0!==f.nameIndex&&(c||(c=[]),void 0===(h=c[f.nameIndex])&&(c[f.nameIndex]=h=L(n.names[f.nameIndex])))}var D=f.generatedLine-(o?o.line:0),S=D+t,T=o&&o.line===f.generatedLine?f.generatedCharacter-o.character:f.generatedCharacter;R(S,0===D?T+r:T,m,g,y,h)}}d()},toJSON:j,toString:function(){return JSON.stringify(j())}};function O(r){_();var n=e.getRelativePathToDirectoryOrUrl(i,r,t.getCurrentDirectory(),t.getCanonicalFileName,!0),a=m.get(n);return void 0===a&&(a=f.length,f.push(n),p.push(r),m.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=g.length,g.push(t),u.set(t,r)),d(),r}function R(t,r,n,i,a,o){e.Debug.assert(t>=E,"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||E!==e||C!==t}(t,r)||function(e,t,r){return void 0!==e&&void 0!==t&&void 0!==r&&k===e&&(N>t||N===t&&A>r)}(n,i,a))&&(B(),E=t,C=r,w=!1,I=!1,P=!0),void 0!==n&&void 0!==i&&void 0!==a&&(k=n,N=i,A=a,w=!0,void 0!==o&&(F=o,I=!0)),d()}function B(){if(P&&(!T||h!==E||v!==C||b!==k||x!==N||D!==A||S!==F)){if(_(),h<E)do{y+=";",h++,v=0}while(h<E);else e.Debug.assertEqual(h,E,"generatedLine cannot backtrack"),T&&(y+=",");y+=s(C-v),v=C,w&&(y+=s(k-b),b=k,y+=s(N-x),x=N,y+=s(A-D),D=A,I&&(y+=s(F-S),S=F)),T=!0,d()}}function j(){return B(),{version:3,file:r,sourceRoot:n,sources:f,names:g,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"===f(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+=g(),f())return _();if(a<0)return p("Invalid generatedCharacter found");if(!m()){if(d=!0,o+=g(),f())return _();if(o<0)return p("Invalid sourceIndex found");if(m())return p("Unsupported Format: No entries after sourceIndex");if(s+=g(),f())return _();if(s<0)return p("Invalid sourceLine found");if(m())return p("Unsupported Format: No entries after sourceLine");if(c+=g(),f())return _();if(c<0)return p("Invalid sourceCharacter found");if(!m()){if(y=!0,u+=g(),f())return _();if(u<0)return p("Invalid nameIndex found");if(!m())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 m(){return n===e.length||44===e.charCodeAt(n)||59===e.charCodeAt(n)}function g(){for(var t,r=!0,i=0,a=0;r;n++){if(n>=e.length)return d("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var o=(t=e.charCodeAt(n))>=65&&t<=90?t-65:t>=97&&t<=122?t-97+26:t>=48&&t<=57?t-48+52:43===t?62:47===t?63:-1;if(-1===o)return d("Invalid character in VLQ"),-1;r=0!=(32&o),a|=(31&o)<<i,i+=5}return 0==(1&a)?a>>=1:a=-(a>>=1),a}}function o(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function s(t){t<0?t=1+(-t<<1):t<<=1;var r,n="";do{var i=31&t;(t>>=5)>0&&(i|=32),n+=String.fromCharCode((r=i)>=0&&r<26?65+r:r>=26&&r<52?97+r-26:r>=52&&r<62?48+r-52:62===r?43:63===r?47:e.Debug.fail(r+": not a base64 value"))}while(t>0);return n}function c(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function u(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function l(t,r){return e.Debug.assert(t.sourceIndex===r.sourceIndex),e.compareValues(t.sourcePosition,r.sourcePosition)}function _(t,r){return e.compareValues(t.generatedPosition,r.generatedPosition)}function d(e){return e.sourcePosition}function p(e){return e.generatedPosition}e.getLineInfo=function(e,t){return{getLineCount:function(){return t.length},getLineText:function(r){return e.substring(t[r],t[r+1])}}},e.tryGetSourceMappingURL=function(e){for(var n=e.getLineCount()-1;n>=0;n--){var i=e.getLineText(n),a=t.exec(i);if(a)return a[1];if(!i.match(r))break}},e.isRawSourceMap=i,e.tryParseRawSourceMap=function(e){try{var t=JSON.parse(e);if(i(t))return t}catch(e){}},e.decodeMappings=a,e.sameMapping=function(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex},e.isSourceMapping=o,e.createDocumentPositionMapper=function(t,r,n){var i,s,f,m=e.getDirectoryPath(n),g=r.sourceRoot?e.getNormalizedAbsolutePath(r.sourceRoot,m):m,y=e.getNormalizedAbsolutePath(r.file,m),h=t.getSourceFileLike(y),v=r.sources.map((function(t){return e.getNormalizedAbsolutePath(t,g)})),b=e.createMapFromEntries(v.map((function(e,r){return[t.getCanonicalFileName(e),r]})));return{getSourcePosition:function(t){var r=T();if(!e.some(r))return t;var n=e.binarySearchKey(r,t.pos,p,e.compareValues);n<0&&(n=~n);var i=r[n];if(void 0===i||!c(i))return t;return{fileName:v[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!==h?e.getPositionOfLineAndCharacter(h,n.generatedLine,n.generatedCharacter,!0):-1;if(o(n)){var c=t.getSourceFileLike(v[n.sourceIndex]);i=r.sources[n.sourceIndex],a=void 0!==c?e.getPositionOfLineAndCharacter(c,n.sourceLine,n.sourceCharacter,!0):-1}return{generatedPosition:s,source:i,sourceIndex:n.sourceIndex,sourcePosition:a,nameIndex:n.nameIndex}}function D(){if(void 0===i){var n=a(r.mappings),o=e.arrayFrom(n,x);void 0!==n.error?(t.log&&t.log("Encountered error while decoding sourcemap: "+n.error),i=e.emptyArray):i=o}return i}function S(t){if(void 0===f){for(var r=[],n=0,i=D();n<i.length;n++){var a=i[n];if(c(a)){var o=r[a.sourceIndex];o||(r[a.sourceIndex]=o=[]),o.push(a)}}f=r.map((function(t){return e.sortAndDeduplicate(t,l,u)}))}return f[t]}function T(){if(void 0===s){for(var t=[],r=0,n=D();r<n.length;r++){var i=n[r];t.push(i)}s=e.sortAndDeduplicate(t,_,u)}return s}},e.identitySourceMapConsumer={getSourcePosition:e.identity,getGeneratedPosition:e.identity}}(s||(s={})),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 288===r.kind?t(r):function(r){return e.createBundle(e.map(r.sourceFiles,t),r.prepends)}(r)}},e.getImportNeedsImportStarHelper=n,e.getImportNeedsImportDefaultHelper=i,e.collectExternalModuleInfo=function(r,s,c){for(var u,l,_=[],d=e.createMultiMap(),p=[],f=e.createMap(),m=!1,g=!1,y=!1,h=!1,v=0,b=r.statements;v<b.length;v++){var x=b[v];switch(x.kind){case 253:_.push(x),!y&&n(x)&&(y=!0),!h&&i(x)&&(h=!0);break;case 252:263===x.moduleReference.kind&&_.push(x);break;case 259:if(x.moduleSpecifier)x.exportClause?_.push(x):(_.push(x),g=!0);else for(var D=0,S=x.exportClause.elements;D<S.length;D++){var T=S[D];if(!f.get(e.idText(T.name))){var E=T.propertyName||T.name;d.add(e.idText(E),T),(N=s.getReferencedImportDeclaration(E)||s.getReferencedValueDeclaration(E))&&o(p,t(N),T.name),f.set(e.idText(T.name),!0),u=e.append(u,T.name)}}break;case 258:x.isExportEquals&&!l&&(l=x);break;case 224:if(e.hasModifier(x,1))for(var C=0,k=x.declarationList.declarations;C<k.length;C++){var N;u=a(N=k[C],f,u)}break;case 243:if(e.hasModifier(x,1))if(e.hasModifier(x,512))m||(o(p,t(x),e.getDeclarationName(x)),m=!0);else{E=x.name;f.get(e.idText(E))||(o(p,t(x),E),f.set(e.idText(E),!0),u=e.append(u,E))}break;case 244:if(e.hasModifier(x,1))if(e.hasModifier(x,512))m||(o(p,t(x),e.getDeclarationName(x)),m=!0);else(E=x.name)&&!f.get(e.idText(E))&&(o(p,t(x),E),f.set(e.idText(E),!0),u=e.append(u,E))}}var A=e.createExternalHelpersImportDeclarationIfNeeded(r,c,g,y,h);return A&&_.unshift(A),{externalImports:_,exportSpecifiers:d,exportEquals:l,hasExportStarsToExportValues:g,exportedBindings:p,exportedNames:u,externalHelpersImportDeclaration:A}},e.isSimpleCopiableExpression=s,e.isSimpleInlineableExpression=function(t){return!e.isIdentifier(t)&&s(t)||e.isWellKnownSymbolSyntactically(t)},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=i[a];return 225===o.kind&&e.isSuperCall(o.expression)?(r.push(e.visitNode(o,n,e.isStatement)),a+1):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(t,r){return e.isPropertyDeclaration(t)&&(!!t.initializer||!r)}}(s||(s={})),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,a,o,s,c){if(!c){var u=e.visitNode(e.getInitializerOfBindingOrAssignmentElement(a),t.visitor,e.isExpression);u?o=o?function(t,r,n,a){return r=i(t,r,!0,a),e.createConditional(e.createTypeCheck(r,"undefined"),n,r)}(t,o,u,s):u:o||(o=e.createVoidZero())}var l=e.getTargetOfBindingOrAssignmentElement(a);e.isObjectBindingOrAssignmentPattern(l)?function(t,a,o,s,c){var u,l,d=e.getElementsOfBindingOrAssignmentPattern(o),p=d.length;if(1!==p){var f=!e.isDeclarationBindingElement(a)||0!==p;s=i(t,s,f,c)}for(var m=0;m<p;m++){var g=d[m];if(e.getRestIndicatorOfBindingOrAssignmentElement(g)){if(m===p-1){u&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,o),u=void 0);h=_(t.context,s,d,l,o);r(t,g,h,g)}}else{var y=e.getPropertyNameOfBindingOrAssignmentElement(g);if(!(t.level>=1)||12288&g.transformFlags||12288&e.getTargetOfBindingOrAssignmentElement(g).transformFlags||e.isComputedPropertyName(y)){u&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,o),u=void 0);var h=n(t,s,y);e.isComputedPropertyName(y)&&(l=e.append(l,h.argumentExpression)),r(t,g,h,g)}else u=e.append(u,g)}}u&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,o)}(t,a,l,o,s):e.isArrayBindingOrAssignmentPattern(l)?function(t,n,a,o,s){var c,u,l=e.getElementsOfBindingOrAssignmentPattern(a),_=l.length;if(t.level<1&&t.downlevelIteration)o=i(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(n)||0!==_;o=i(t,o,d,s)}for(var p=0;p<_;p++){var f=l[p];if(t.level>=1)if(8192&f.transformFlags){var m=e.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(m),u=e.append(u,[m,f]),c=e.append(c,t.createArrayBindingOrAssignmentElement(m))}else c=e.append(c,f);else{if(e.isOmittedExpression(f))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(f)){if(p===_-1){g=e.createArraySlice(o,p);r(t,f,g,f)}}else{var g=e.createElementAccess(o,p);r(t,f,g,f)}}}c&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(c),o,s,a);if(u)for(var y=0,h=u;y<h.length;y++){var v=h[y],b=v[0];f=v[1];r(t,f,b,f)}}(t,a,l,o,s):t.emitBindingOrAssignment(l,o,s,a)}function n(t,r,n){if(e.isComputedPropertyName(n)){var a=i(t,e.visitNode(n.expression,t.visitor),!1,n);return e.createElementAccess(r,a)}if(e.isStringOrNumericLiteralLike(n))return(a=e.getSynthesizedClone(n)).text=a.text,e.createElementAccess(r,a);var o=e.createIdentifier(e.idText(n));return e.createPropertyAccess(r,o)}function i(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 a(t){return e.Debug.assertEachNode(t,e.isArrayBindingElement),e.createArrayBindingPattern(t)}function o(t){return e.createArrayLiteral(e.map(t,e.convertToArrayAssignmentElement))}function s(t){return e.Debug.assertEachNode(t,e.isBindingElement),e.createObjectBindingPattern(t)}function c(t){return e.createObjectLiteral(e.map(t,e.convertToObjectAssignmentElement))}function u(t){return e.createBindingElement(void 0,void 0,t)}function l(e){return e}function _(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(n,a,s,u,_,d){var p,f,m=n;if(e.isDestructuringAssignment(n))for(p=n.right;e.isEmptyArrayLiteral(n.left)||e.isEmptyObjectLiteral(n.left);){if(!e.isDestructuringAssignment(p))return e.visitNode(p,a,e.isExpression);m=n=p,p=n.right}var g={context:s,level:u,downlevelIteration:!!s.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:y,emitBindingOrAssignment:function(t,r,n,i){e.Debug.assertNode(t,d?e.isIdentifier:e.isExpression);var o=d?d(t,r,n):e.setTextRange(e.createAssignment(e.visitNode(t,a,e.isExpression),r),n);o.original=i,y(o)},createArrayBindingOrAssignmentPattern:o,createObjectBindingOrAssignmentPattern:c,createArrayBindingOrAssignmentElement:l,visitor:a};if(p&&(p=e.visitNode(p,a,e.isExpression),e.isIdentifier(p)&&t(n,p.escapedText)?p=i(g,p,!1,m):_?p=i(g,p,!0,m):e.nodeIsSynthesized(n)&&(m=p)),r(g,n,p,m,e.isDestructuringAssignment(n)),p&&_){if(!e.some(f))return p;f.push(p)}return e.aggregateTransformFlags(e.inlineExpressions(f))||e.createOmittedExpression();function y(t){e.setEmitFlags(t,64),e.aggregateTransformFlags(t),f=e.append(f,t)}},e.flattenDestructuringBinding=function(n,o,c,l,_,d,p){var f;void 0===d&&(d=!1);var m=[],g=[],y={context:c,level:l,downlevelIteration:!!c.getCompilerOptions().downlevelIteration,hoistTempVariables:d,emitExpression:function(t){f=e.append(f,t)},emitBindingOrAssignment:F,createArrayBindingOrAssignmentPattern:a,createObjectBindingOrAssignmentPattern:s,createArrayBindingOrAssignmentElement:u,visitor:o};if(e.isVariableDeclaration(n)){var h=e.getInitializerOfBindingOrAssignmentElement(n);h&&e.isIdentifier(h)&&t(n,h.escapedText)&&(h=i(y,h,!1,h),n=e.updateVariableDeclaration(n,n.name,n.type,h))}if(r(y,n,_,n,p),f){var v=e.createTempVariable(void 0);if(d){var b=e.inlineExpressions(f);f=void 0,F(v,b,void 0,void 0)}else{c.hoistVariableDeclaration(v);var x=e.last(m);x.pendingExpressions=e.append(x.pendingExpressions,e.createAssignment(v,x.value)),e.addRange(x.pendingExpressions,f),x.value=v}}for(var D=0,S=m;D<S.length;D++){var T=S[D],E=T.pendingExpressions,C=T.name,k=(b=T.value,T.location),N=T.original,A=e.createVariableDeclaration(C,void 0,E?e.inlineExpressions(e.append(E,b)):b);A.original=N,e.setTextRange(A,k),e.isIdentifier(C)&&e.setEmitFlags(A,64),e.aggregateTransformFlags(A),g.push(A)}return g;function F(t,r,n,i){e.Debug.assertNode(t,e.isBindingName),f&&(r=e.inlineExpressions(e.append(f,r)),f=void 0),m.push({pendingExpressions:f,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            };'}}(s||(s={})),function(e){var t,r;function n(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 i(t,r,n){return t.requestEmitHelper(e.metadataHelper),e.createCall(e.getUnscopedHelperName("__metadata"),void 0,[e.createLiteral(r),n])}function a(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,o,s,c,u,l,_,d,p,f,m=t.startLexicalEnvironment,g=t.resumeLexicalEnvironment,y=t.endLexicalEnvironment,h=t.hoistVariableDeclaration,v=t.getEmitResolver(),b=t.getCompilerOptions(),x=e.getStrictOptionValue(b,"strictNullChecks"),D=e.getEmitScriptTarget(b),S=e.getEmitModuleKind(b),T=t.onEmitNode,E=t.onSubstituteNode;return t.onEmitNode=function(t,n,i){var a=f,o=r;e.isSourceFile(n)&&(r=n);2&d&&function(t){return 248===e.getOriginalNode(t).kind}(n)&&(f|=2);8&d&&function(t){return 247===e.getOriginalNode(t).kind}(n)&&(f|=8);T(t,n,i),f=a,r=o},t.onSubstituteNode=function(t,r){if(r=E(t,r),1===t)return function(t){switch(t.kind){case 75:return function(t){return function(t){if(1&d&&33554432&v.getNodeCheckFlags(t)){var r=v.getReferencedValueDeclaration(t);if(r){var n=p[r.id];if(n){var i=e.getSynthesizedClone(n);return e.setSourceMapRange(i,t),e.setCommentRange(i,t),i}}}return}(t)||Oe(t)||t}(t);case 193:case 194:return function(e){return Me(e)}(t)}return t}(r);if(e.isShorthandPropertyAssignment(r))return function(t){if(2&d){var r=t.name,n=Oe(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(193),t.enableSubstitution(194),function(t){if(289===t.kind)return function(t){return e.createBundle(t.sourceFiles.map(C),e.mapDefined(t.prepends,(function(t){return 291===t.kind?e.createUnparsedSourceFile(t,"js"):t})))}(t);return C(t)};function C(n){if(n.isDeclarationFile)return n;r=n;var i=k(n,B);return e.addEmitHelpers(i,t.readEmitHelpers()),r=void 0,i}function k(t,r){var n=c,i=u,a=l,o=_;!function(t){switch(t.kind){case 288:case 250:case 249:case 222:c=t,u=void 0,l=void 0;break;case 244:case 243:if(e.hasModifier(t,2))break;t.name?me(t):e.Debug.assert(244===t.kind||e.hasModifier(t,512)),e.isClassDeclaration(t)&&(u=t)}}(t);var s=r(t);return c!==n&&(l=a),c=n,u=i,_=o,s}function N(e){return k(e,A)}function A(e){return 1&e.transformFlags?R(e):e}function F(e){return k(e,P)}function P(r){switch(r.kind){case 253:case 252:case 258:case 259:return function(r){if(e.getParseTreeNode(r)!==r)return 1&r.transformFlags?e.visitEachChild(r,N,t):r;switch(r.kind){case 253:return function(t){if(!t.importClause)return t;var r=e.visitNode(t.importClause,ve,e.isImportClause);return r?e.updateImportDeclaration(t,void 0,void 0,r,t.moduleSpecifier):void 0}(r);case 252:return Te(r);case 258:return function(r){return v.isValueAliasDeclaration(r)?e.visitEachChild(r,N,t):void 0}(r);case 259:return function(t){if(!t.exportClause)return b.isolatedModules||v.moduleExportsSomeValue(t.moduleSpecifier)?t:void 0;if(!v.isValueAliasDeclaration(t))return;var r=e.visitNode(t.exportClause,De,e.isNamedExports);return r?e.updateExportDeclaration(t,void 0,void 0,r,t.moduleSpecifier):void 0}(r);default:e.Debug.fail("Unhandled ellided statement")}}(r);default:return A(r)}}function w(e){return k(e,I)}function I(t){if(259!==t.kind&&253!==t.kind&&254!==t.kind&&(252!==t.kind||263!==t.moduleReference.kind))return 1&t.transformFlags||e.hasModifier(t,1)?R(t):t}function O(e){return k(e,M)}function M(t){switch(t.kind){case 161:return ue(t);case 158:return ce(t);case 166:case 162:case 163:case 160:return A(t);case 221:return t;default:return e.Debug.failBadSyntaxKind(t)}}function L(t){if(!(2270&e.modifierToFlag(t.kind)||o&&88===t.kind))return t}function R(i){if(e.isStatement(i)&&e.hasModifier(i,2))return e.createNotEmittedStatement(i);switch(i.kind){case 88:case 83:return o?void 0:i;case 118:case 116:case 117:case 121:case 80:case 129:case 137:case 173:case 174:case 175:case 176:case 172:case 167:case 154:case 124:case 147:case 127:case 142:case 139:case 136:case 109:case 143:case 170:case 169:case 171:case 168:case 177:case 178:case 179:case 181:case 182:case 183:case 184:case 185:case 186:case 166:case 156:case 246:return;case 158:return ce(i);case 251:return;case 161:return ue(i);case 245:return e.createNotEmittedStatement(i);case 244:return function(i){if(!(J(i)||o&&e.hasModifier(i,1)))return e.visitEachChild(i,N,t);var a=e.getProperties(i,!0,!0),s=function(t,r){var n=0;e.some(r)&&(n|=1);var i=e.getEffectiveBaseTypeNode(t);i&&99!==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);Ee(t)?n|=8:!function(t){return Ce(t)&&e.hasModifier(t,512)}(t)?ke(t)&&(n|=16):n|=32;D<=1&&7&n&&(n|=128);return n}(i,a);128&s&&t.startLexicalEnvironment();var c=i.name||(5&s?e.getGeneratedNameForNode(i):void 0),u=2&s?function(r,n){var i=e.moveRangePastDecorators(r),a=function(r){if(16777216&v.getNodeCheckFlags(r)){0==(1&d)&&(d|=1,t.enableSubstitution(75),p=[]);var n=e.createUniqueName(r.name&&!e.isGeneratedIdentifier(r.name)?e.idText(r.name):"default");return p[e.getOriginalNodeId(r)]=n,h(n),n}}(r),o=e.getLocalName(r,!1,!0),s=e.visitNodes(r.heritageClauses,N,e.isHeritageClause),c=z(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}(i,c):function(t,r,n){var i=128&n?void 0:e.visitNodes(t.modifiers,L,e.isModifier),a=e.createClassDeclaration(void 0,i,r,void 0,e.visitNodes(t.heritageClauses,N,e.isHeritageClause),z(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}(i,c,s),l=[u];if(H(l,i,!1),H(l,i,!0),function(r,i){var a=function(r){var i=function(t){var r=t.decorators,n=q(e.getFirstConstructorWithBody(t));if(!r&&!n)return;return{decorators:r,parameters:n}}(r),a=G(r,r,i);if(!a)return;var o=p&&p[e.getOriginalNodeId(r)],s=e.getLocalName(r,!1,!0),c=n(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}(i);a&&r.push(e.setOriginalNode(e.createExpressionStatement(a),i))}(l,i),128&s){var _=e.createTokenRange(e.skipTrivia(r.text,i.members.end),19),f=e.getInternalName(i),m=e.createPartiallyEmittedExpression(f);m.end=_.end,e.setEmitFlags(m,1536);var g=e.createReturn(m);g.pos=_.pos,e.setEmitFlags(g,1920),l.push(g),e.insertStatementsAfterStandardPrologue(l,t.endLexicalEnvironment());var y=e.createImmediatelyInvokedArrowFunction(l);e.setEmitFlags(y,33554432);var b=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(i,!1,!1),void 0,y)]));e.setOriginalNode(b,i),e.setCommentRange(b,i),e.setSourceMapRange(b,e.moveRangePastDecorators(i)),e.startOnNewLine(b),l=[b]}8&s?Ae(l,i):(128&s||2&s)&&(32&s?l.push(e.createExportDefault(e.getLocalName(i,!1,!0))):16&s&&l.push(e.createExternalModuleExport(e.getLocalName(i,!1,!0))));l.length>1&&(l.push(e.createEndOfDeclarationMarker(i)),e.setEmitFlags(u,4194304|e.getEmitFlags(u)));return e.singleOrMany(l)}(i);case 213:return function(r){if(!J(r))return e.visitEachChild(r,N,t);var n=e.createClassExpression(void 0,r.name,void 0,e.visitNodes(r.heritageClauses,N,e.isHeritageClause),z(r));return e.aggregateTransformFlags(n),e.setOriginalNode(n,r),e.setTextRange(n,r),n}(i);case 277:return function(r){if(112===r.token)return;return e.visitEachChild(r,N,t)}(i);case 215:return function(t){return e.updateExpressionWithTypeArguments(t,void 0,e.visitNode(t.expression,N,e.isLeftHandSideExpression))}(i);case 160:return function(r){if(!se(r))return;var n=e.updateMethod(r,void 0,e.visitNodes(r.modifiers,L,e.isModifier),r.asteriskToken,oe(r),void 0,void 0,e.visitParameterList(r.parameters,N,t),void 0,e.visitFunctionBody(r.body,N,t));n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r)));return n}(i);case 162:return function(r){if(!_e(r))return;var n=e.updateGetAccessor(r,void 0,e.visitNodes(r.modifiers,L,e.isModifier),oe(r),e.visitParameterList(r.parameters,N,t),void 0,e.visitFunctionBody(r.body,N,t)||e.createBlock([]));n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r)));return n}(i);case 163:return function(r){if(!_e(r))return;var n=e.updateSetAccessor(r,void 0,e.visitNodes(r.modifiers,L,e.isModifier),oe(r),e.visitParameterList(r.parameters,N,t),e.visitFunctionBody(r.body,N,t)||e.createBlock([]));n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r)));return n}(i);case 243:return function(r){if(!se(r))return e.createNotEmittedStatement(r);var n=e.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,L,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,N,t),void 0,e.visitFunctionBody(r.body,N,t)||e.createBlock([]));if(Ee(r)){var i=[n];return Ae(i,r),i}return n}(i);case 200:return function(r){if(!se(r))return e.createOmittedExpression();return e.updateFunctionExpression(r,e.visitNodes(r.modifiers,L,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,N,t),void 0,e.visitFunctionBody(r.body,N,t)||e.createBlock([]))}(i);case 201:return function(r){return e.updateArrowFunction(r,e.visitNodes(r.modifiers,L,e.isModifier),void 0,e.visitParameterList(r.parameters,N,t),void 0,r.equalsGreaterThanToken,e.visitFunctionBody(r.body,N,t))}(i);case 155:return function(t){if(e.parameterIsThisKeyword(t))return;var r=e.updateParameter(t,void 0,void 0,t.dotDotDotToken,e.visitNode(t.name,N,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,N,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}(i);case 199:return function(n){var i=e.skipOuterExpressions(n.expression,-3);if(e.isAssertionExpression(i)){var a=e.visitNode(n.expression,N,e.isExpression);return e.length(e.getLeadingCommentRangesOfNode(a,r))?e.updateParen(n,a):e.createPartiallyEmittedExpression(a,n)}return e.visitEachChild(n,N,t)}(i);case 198:case 216:return function(t){var r=e.visitNode(t.expression,N,e.isExpression);return e.createPartiallyEmittedExpression(r,t)}(i);case 195:return function(t){return e.updateCall(t,e.visitNode(t.expression,N,e.isExpression),void 0,e.visitNodes(t.arguments,N,e.isExpression))}(i);case 196:return function(t){return e.updateNew(t,e.visitNode(t.expression,N,e.isExpression),void 0,e.visitNodes(t.arguments,N,e.isExpression))}(i);case 197:return function(t){return e.updateTaggedTemplate(t,e.visitNode(t.tag,N,e.isExpression),void 0,e.visitNode(t.template,N,e.isExpression))}(i);case 217:return function(t){var r=e.visitNode(t.expression,N,e.isLeftHandSideExpression);return e.createPartiallyEmittedExpression(r,t)}(i);case 247:return function(t){if(!function(t){return!e.isEnumConst(t)||b.preserveConstEnums||b.isolatedModules}(t))return e.createNotEmittedStatement(t);var n=[],i=2,a=ye(n,t);a&&(S===e.ModuleKind.System&&c===r||(i|=512));var o=we(t),u=Ie(t),l=e.hasModifier(t,1)?e.getExternalModuleOrNamespaceExportName(s,t,!1,!0):e.getLocalName(t,!1,!0),_=e.createLogicalOr(l,e.createAssignment(l,e.createObjectLiteral()));if(fe(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=s;s=r;var i=[];m();var a=e.map(t.members,pe);return e.insertStatementsAfterStandardPrologue(i,y()),e.addRange(i,a),s=n,e.createBlock(e.setTextRange(e.createNodeArray(i),t.members),!0)}(t,u)),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}(i);case 224:return function(r){if(Ee(r)){var n=e.getInitializedVariables(r.declarationList);if(0===n.length)return;return e.setTextRange(e.createExpressionStatement(e.inlineExpressions(e.map(n,de))),r)}return e.visitEachChild(r,N,t)}(i);case 241:return function(t){return e.updateVariableDeclaration(t,e.visitNode(t.name,N,e.isBindingName),void 0,e.visitNode(t.initializer,N,e.isExpression))}(i);case 248:return he(i);case 252:return Te(i);default:return e.visitEachChild(i,N,t)}}function B(r){var n=e.getStrictOptionValue(b,"alwaysStrict")&&!(e.isExternalModule(r)&&S>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(r);return e.updateSourceFileNode(r,e.visitLexicalEnvironment(r.statements,F,t,0,n))}function j(e){return void 0!==e.decorators&&e.decorators.length>0}function K(e){return!!(1024&e.transformFlags)}function J(t){return e.some(t.decorators)||e.some(t.typeParameters)||e.some(t.heritageClauses,K)||e.some(t.members,K)}function z(t){var r=[],n=e.getFirstConstructorWithBody(t),i=n&&e.filter(n.parameters,(function(t){return e.isParameterPropertyDeclaration(t,n)}));if(i)for(var a=0,o=i;a<o.length;a++){var s=o[a];e.isIdentifier(s.name)&&r.push(e.aggregateTransformFlags(e.createProperty(void 0,void 0,s.name,void 0,void 0,void 0)))}return e.addRange(r,e.visitNodes(t.members,O,e.isClassElement)),e.setTextRange(e.createNodeArray(r),t.members)}function U(t,r){return e.filter(t.members,r?function(e){return V(e,!0,t)}:function(e){return V(e,!1,t)})}function V(t,r,n){return e.nodeOrChildIsDecorated(t,n)&&r===e.hasModifier(t,32)}function q(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 W(t,r){switch(r.kind){case 162:case 163: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=q(o);if(!c&&!u)return;return{decorators:c,parameters:u}}(t,r);case 160:return function(e){if(!e.body)return;var t=e.decorators,r=q(e);if(!t&&!r)return;return{decorators:t,parameters:r}}(r);case 158:return function(e){var t=e.decorators;if(!t)return;return{decorators:t}}(r);default:return}}function G(r,n,a){if(a){var o=[];return e.addRange(o,e.map(a.decorators,X)),e.addRange(o,e.flatMap(a.parameters,Q)),function(r,n,a){!function(r,n,a){b.emitDecoratorMetadata&&(function(e){var t=e.kind;return 160===t||162===t||163===t||158===t}(r)&&a.push(i(t,"design:type",$(r))),function(t){switch(t.kind){case 244:case 213:return void 0!==e.getFirstConstructorWithBody(t);case 160:case 162:case 163:return!0}return!1}(r)&&a.push(i(t,"design:paramtypes",function(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&&162===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(Z(e.getRestParameterElementType(c.type))):i.push($(c)))}return e.createArrayLiteral(i)}(r,n))),function(e){return 160===e.kind}(r)&&a.push(i(t,"design:returntype",function(t){if(e.isFunctionLike(t)&&t.type)return Z(t.type);if(e.isAsyncFunction(t))return e.createIdentifier("Promise");return e.createVoidZero()}(r))))}(r,n,a)}(r,n,o),o}}function H(t,r,n){e.addRange(t,e.map(function(e,t){for(var r,n=U(e,t),i=0,a=n;i<a.length;i++){var o=a[i],s=Y(e,o);s&&(r?r.push(s):r=[s])}return r}(r,n),Ne))}function Y(r,i){var a=G(i,r,W(r,i));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,i),s=ae(i,!0),c=D>0?158===i.kind?e.createVoidZero():e.createNull():void 0,u=n(t,a,o,s,c,e.moveRangePastDecorators(i));return e.setEmitFlags(u,1536),u}}function X(t){return e.visitNode(t.expression,N,e.isExpression)}function Q(r,n){var i;if(r){i=[];for(var o=0,s=r;o<s.length;o++){var c=s[o],u=a(t,X(c),n,c.expression);e.setEmitFlags(u,1536),i.push(u)}}return i}function $(t){switch(t.kind){case 158:case 155:return Z(t.type);case 163:case 162:return Z(function(t){var r=v.getAllAccessorDeclarations(t);return r.setAccessor&&e.getSetAccessorTypeAnnotationNode(r.setAccessor)||r.getAccessor&&e.getEffectiveReturnTypeNode(r.getAccessor)}(t));case 244:case 213:case 160:return e.createIdentifier("Function");default:return e.createVoidZero()}}function Z(t){if(void 0===t)return e.createIdentifier("Object");switch(t.kind){case 109:case 145:case 99:case 136:return e.createVoidZero();case 181:return Z(t.type);case 169:case 170:return e.createIdentifier("Function");case 173:case 174:return e.createIdentifier("Array");case 167:case 127:return e.createIdentifier("Boolean");case 142:return e.createIdentifier("String");case 140:return e.createIdentifier("Object");case 186:switch(t.literal.kind){case 10:return e.createIdentifier("String");case 206:case 8:return e.createIdentifier("Number");case 9:return ie();case 105:case 90:return e.createIdentifier("Boolean");default:return e.Debug.failBadSyntaxKind(t.literal)}case 139:return e.createIdentifier("Number");case 150:return ie();case 143:return D<2?ne():e.createIdentifier("Symbol");case 168:return function(t){var r=v.getTypeReferenceSerializationKind(t.typeName,u||c);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=re(r);return te(n,n)}if(75===r.left.kind)return te(re(r.left),re(r));var i=t(r.left);var 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 re(t.typeName);case e.TypeReferenceSerializationKind.VoidNullableOrNeverType:return e.createVoidZero();case e.TypeReferenceSerializationKind.BigIntLikeType:return ie();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 D<2?ne():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 178:case 177:return ee(t.types);case 179:return ee([t.trueType,t.falseType]);case 183:if(137===t.operator)return Z(t.type);break;case 171:case 184:case 185:case 172:case 124:case 147:case 182:case 187:break;default:return e.Debug.failBadSyntaxKind(t)}return e.createIdentifier("Object")}function ee(t){for(var r,n=0,i=t;n<i.length;n++){for(var a=i[n];181===a.kind;)a=a.type;if(136!==a.kind&&(x||99!==a.kind&&145!==a.kind)){var o=Z(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 te(t,r){return e.createLogicalAnd(e.createStrictInequality(e.createTypeOf(t),e.createLiteral("undefined")),r)}function re(t){switch(t.kind){case 75:var r=e.getMutableClone(t);return r.flags&=-9,r.original=void 0,r.parent=e.getParseTreeNode(c),r;case 152:return function(t){return e.createPropertyAccess(re(t.left),t.right)}(t)}}function ne(){return e.createConditional(e.createTypeCheck(e.createIdentifier("Symbol"),"function"),e.createIdentifier("Symbol"),e.createIdentifier("Object"))}function ie(){return D<99?e.createConditional(e.createTypeCheck(e.createIdentifier("BigInt"),"function"),e.createIdentifier("BigInt"),e.createIdentifier("Object")):e.createIdentifier("BigInt")}function ae(t,r){var n=t.name;return 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 oe(t){var r=t.name;if(e.isComputedPropertyName(r)&&(!e.hasStaticModifier(t)&&_||e.some(t.decorators))){var n=e.visitNode(r.expression,N,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,N,e.isPropertyName)}function se(t){return!e.nodeIsMissing(t.body)}function ce(t){var r=e.updateProperty(t,void 0,e.visitNodes(t.modifiers,N,e.isModifier),oe(t),void 0,void 0,e.visitNode(t.initializer,N));return r!==t&&(e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastDecorators(t))),r}function ue(r){if(se(r))return e.updateConstructor(r,void 0,void 0,e.visitParameterList(r.parameters,N,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,N,t);var a,o=[];g(),a=e.addPrologueDirectivesAndInitialSuperCall(n,o,N),e.addRange(o,e.map(i,le)),e.addRange(o,e.visitNodes(r.statements,N,e.isStatement,a)),o=e.mergeLexicalEnvironment(o,y());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 le(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 _e(t){return!(e.nodeIsMissing(t.body)&&e.hasModifier(t,128))}function de(r){var n=r.name;return e.isBindingPattern(n)?e.flattenDestructuringAssignment(r,N,t,0,!1,Fe):e.setTextRange(e.createAssignment(Pe(n),e.visitNode(r.initializer,N,e.isExpression)),r)}function pe(r){var n=ae(r,!1),i=function(r){var n=v.getConstantValue(r);return void 0!==n?e.createLiteral(n):(0==(8&d)&&(d|=8,t.enableSubstitution(75)),r.initializer?e.visitNode(r.initializer,N,e.isExpression):e.createVoidZero())}(r),a=e.createAssignment(e.createElementAccess(s,n),i),o=10===i.kind?a:e.createAssignment(e.createElementAccess(s,a),n);return e.setTextRange(e.createExpressionStatement(e.setTextRange(o,r)),r)}function fe(t){return Ee(t)||Ce(t)&&S!==e.ModuleKind.ES2015&&S!==e.ModuleKind.ESNext&&S!==e.ModuleKind.System}function me(t){l||(l=e.createUnderscoreEscapedMap());var r=ge(t);l.has(r)||l.set(r,t)}function ge(t){return e.Debug.assertNode(t.name,e.isIdentifier),t.name.escapedText}function ye(t,r){var n=e.createVariableStatement(e.visitNodes(r.modifiers,L,e.isModifier),e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(r,!1,!0))],288===c.kind?0:1));if(e.setOriginalNode(n,r),me(r),function(e){if(l){var t=ge(e);return l.get(t)===e}return!0}(r))return 247===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 he(n){if(!function(t){return e.isInstantiatedModule(t,!!b.preserveConstEnums||!!b.isolatedModules)}(n))return e.createNotEmittedStatement(n);e.Debug.assertNode(n.name,e.isIdentifier,"A TypeScript namespace should have an Identifier name."),0==(2&d)&&(d|=2,t.enableSubstitution(75),t.enableSubstitution(280),t.enableEmitNotification(248));var i=[],a=2,u=ye(i,n);u&&(S===e.ModuleKind.System&&c===r||(a|=512));var _=we(n),p=Ie(n),f=e.hasModifier(n,1)?e.getExternalModuleOrNamespaceExportName(s,n,!1,!0):e.getLocalName(n,!1,!0),g=e.createLogicalOr(f,e.createAssignment(f,e.createObjectLiteral()));if(fe(n)){var h=e.getLocalName(n,!1,!0);g=e.createAssignment(h,g)}var v=e.createExpressionStatement(e.createCall(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,_)],void 0,function(t,r){var n=s,i=o,a=l;s=r,o=t,l=void 0;var c,u,_=[];m();var d=t.body;if(249===d.kind)k(d,(function(t){return e.addRange(_,e.visitNodes(t.statements,w,e.isStatement))})),c=d.statements,u=d;else{var p=he(d);p&&(e.isArray(p)?e.addRange(_,p):_.push(p));var f=function e(t){if(248===t.body.kind){return e(t.body)||t.body}}(t).body;c=e.moveRangePos(f.statements,-1)}e.insertStatementsAfterStandardPrologue(_,y()),s=n,o=i,l=a;var g=e.createBlock(e.setTextRange(e.createNodeArray(_),c),!0);e.setTextRange(g,u),249!==d.kind&&e.setEmitFlags(g,1536|e.getEmitFlags(g));return g}(n,p)),void 0,[g]));return e.setOriginalNode(v,n),u&&(e.setSyntheticLeadingComments(v,void 0),e.setSyntheticTrailingComments(v,void 0)),e.setTextRange(v,n),e.addEmitFlags(v,a),i.push(v),i.push(e.createEndOfDeclarationMarker(n)),i}function ve(t){var r=v.isReferencedAliasDeclaration(t)?t.name:void 0,n=e.visitNode(t.namedBindings,be,e.isNamedImportBindings);return r||n?e.updateImportClause(t,r,n):void 0}function be(t){if(255===t.kind)return v.isReferencedAliasDeclaration(t)?t:void 0;var r=e.visitNodes(t.elements,xe,e.isImportSpecifier);return e.some(r)?e.updateNamedImports(t,r):void 0}function xe(e){return v.isReferencedAliasDeclaration(e)?e:void 0}function De(t){var r=e.visitNodes(t.elements,Se,e.isExportSpecifier);return e.some(r)?e.updateNamedExports(t,r):void 0}function Se(e){return v.isValueAliasDeclaration(e)?e:void 0}function Te(n){if(e.isExternalModuleImportEqualsDeclaration(n))return v.isReferencedAliasDeclaration(n)?e.visitEachChild(n,N,t):void 0;if(function(t){return v.isReferencedAliasDeclaration(t)||!e.isExternalModule(r)&&v.isTopLevelValueImportEqualsWithEntityName(t)}(n)){var i,a,o,c=e.createExpressionFromEntityName(n.moduleReference);return e.setEmitFlags(c,3584),ke(n)||!Ee(n)?e.setOriginalNode(e.setTextRange(e.createVariableStatement(e.visitNodes(n.modifiers,L,e.isModifier),e.createVariableDeclarationList([e.setOriginalNode(e.createVariableDeclaration(n.name,void 0,c),n)])),n),n):e.setOriginalNode((i=n.name,a=c,o=n,e.setTextRange(e.createExpressionStatement(e.createAssignment(e.getNamespaceMemberName(s,i,!1,!0),a)),o)),n)}}function Ee(t){return void 0!==o&&e.hasModifier(t,1)}function Ce(t){return void 0===o&&e.hasModifier(t,1)}function ke(t){return Ce(t)&&!e.hasModifier(t,512)}function Ne(t){return e.createExpressionStatement(t)}function Ae(t,r){var n=e.createAssignment(e.getExternalModuleOrNamespaceExportName(s,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 Fe(t,r,n){return e.setTextRange(e.createAssignment(Pe(t),r),n)}function Pe(t){return e.getNamespaceMemberName(s,t,!1,!0)}function we(t){var r=e.getGeneratedNameForNode(t);return e.setSourceMapRange(r,t.name),r}function Ie(t){return e.getGeneratedNameForNode(t)}function Oe(t){if(d&f&&!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var r=v.getReferencedExportContainer(t,!1);if(r&&288!==r.kind)if(2&f&&248===r.kind||8&f&&247===r.kind)return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(r),t),t)}}function Me(t){var r=function(t){if(b.isolatedModules)return;return e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)?v.getConstantValue(t):void 0}(t);if(void 0!==r){e.setConstantValue(t,r);var n=e.createLiteral(r);if(!b.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            };"}}(s||(s={})),function(e){var r;!function(e){e[e.ClassAliases=1]="ClassAliases"}(r||(r={})),e.transformClassFields=function(r){var n,i,a,o,s=r.hoistVariableDeclaration,c=r.endLexicalEnvironment,u=r.resumeLexicalEnvironment,l=r.getEmitResolver(),_=r.onSubstituteNode;return r.onSubstituteNode=function(t,r){if(r=_(t,r),1===t)return function(t){switch(t.kind){case 75:return function(t){return function(t){if(1&n&&33554432&l.getNodeCheckFlags(t)){var r=l.getReferencedValueDeclaration(t);if(r){var a=i[r.id];if(a){var o=e.getSynthesizedClone(a);return e.setSourceMapRange(o,t),e.setCommentRange(o,t),o}}}return}(t)||t}(t)}return t}(r);return r},e.chainBundle((function(t){var n=r.getCompilerOptions();if(t.isDeclarationFile||n.useDefineForClassFields&&99===n.target)return t;var i=e.visitEachChild(t,d,r);return e.addEmitHelpers(i,r.readEmitHelpers()),i}));function d(c){if(!(1048576&c.transformFlags))return c;switch(c.kind){case 213:return function(t){if(!e.forEach(t.members,e.isPropertyDeclaration))return e.visitEachChild(t,d,r);var c=a;a=void 0;var u=e.isClassDeclaration(e.getOriginalNode(t)),_=e.getProperties(t,!0,!0),p=e.getEffectiveBaseTypeNode(t),y=!(!p||99===e.skipOuterExpressions(p.expression).kind),h=e.updateClassExpression(t,t.modifiers,t.name,void 0,e.visitNodes(t.heritageClauses,d,e.isHeritageClause),f(t,y));if(e.some(_)||e.some(a)){if(u)return e.Debug.assertDefined(o,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),o&&a&&e.some(a)&&o.push(e.createExpressionStatement(e.inlineExpressions(a))),a=c,o&&e.some(_)&&m(o,_,e.getInternalName(t)),h;var v=[],b=16777216&l.getNodeCheckFlags(t),x=e.createTempVariable(s,!!b);if(b){0==(1&n)&&(n|=1,r.enableSubstitution(75),i=[]);var D=e.getSynthesizedClone(x);D.autoGenerateFlags&=-9,i[e.getOriginalNodeId(t)]=D}return e.setEmitFlags(h,65536|e.getEmitFlags(h)),v.push(e.startOnNewLine(e.createAssignment(x,h))),e.addRange(v,e.map(a,e.startOnNewLine)),e.addRange(v,function(t,r){for(var n=[],i=0,a=t;i<a.length;i++){var o=a[i],s=g(o,r);e.startOnNewLine(s),e.setSourceMapRange(s,e.moveRangePastModifiers(o)),e.setCommentRange(s,o),e.setOriginalNode(s,o),n.push(s)}return n}(_,x)),v.push(e.startOnNewLine(x)),a=c,e.inlineExpressions(v)}return a=c,h}(c);case 244:return function(t){if(!e.forEach(t.members,e.isPropertyDeclaration))return e.visitEachChild(t,d,r);var n=a;a=void 0;var i=e.getEffectiveBaseTypeNode(t),o=!(!i||99===e.skipOuterExpressions(i.expression).kind),s=[e.updateClassDeclaration(t,void 0,t.modifiers,t.name,void 0,e.visitNodes(t.heritageClauses,d,e.isHeritageClause),f(t,o))];e.some(a)&&s.push(e.createExpressionStatement(e.inlineExpressions(a)));a=n;var c=e.getProperties(t,!0,!0);e.some(c)&&m(s,c,e.getInternalName(t));return s}(c);case 224:return function(n){var i=o;o=[];var a=e.visitEachChild(n,d,r),s=e.some(o)?t([a],o):a;return o=i,s}(c)}return e.visitEachChild(c,d,r)}function p(t){switch(t.kind){case 161:return;case 162:case 163:case 160:return e.visitEachChild(t,p,r);case 158:return function(t){e.Debug.assert(!e.some(t.decorators));var n=function(t,r){if(e.isComputedPropertyName(t)){var n=e.visitNode(t.expression,d,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 s(o),e.createAssignment(o,n)}return a||e.isIdentifier(i)?void 0:n}}(t.name,!!t.initializer||!!r.getCompilerOptions().useDefineForClassFields);n&&!e.isSimpleInlineableExpression(n)&&(a||(a=[])).push(n);return}(t);case 153:return function(t){var n=e.visitEachChild(t,d,r);if(e.some(a)){var i=a;i.push(t.expression),a=[],n=e.updateComputedPropertyName(n,e.inlineExpressions(i))}return n}(t);case 221:return t;default:return d(t)}}function f(t,n){var i=[],a=function(t,n){var i=e.visitNode(e.getFirstConstructorWithBody(t),d,e.isConstructorDeclaration);if(!e.forEach(t.members,(function(t){return e.isInitializedProperty(t,!r.getCompilerOptions().useDefineForClassFields)})))return i;var a=e.visitParameterList(i?i.parameters:void 0,d,r),o=function(t,n,i){var a=e.getProperties(t,!r.getCompilerOptions().useDefineForClassFields,!1);if(!n&&!e.some(a))return e.visitFunctionBody(void 0,d,r);u();var o=0,s=[];!n&&i&&s.push(e.createExpressionStatement(e.createCall(e.createSuper(),void 0,[e.createSpread(e.createIdentifier("arguments"))])));n&&(o=e.addPrologueDirectivesAndInitialSuperCall(n,s,d));if(n&&n.body){for(var l=0,_=o;_<n.body.statements.length&&e.isParameterPropertyDeclaration(e.getOriginalNode(n.body.statements[_]),n);_++)l++;l>0&&(e.addRange(s,e.visitNodes(n.body.statements,d,e.isStatement,o,l)),o+=l)}m(s,a,e.createThis()),n&&e.addRange(s,e.visitNodes(n.body.statements,d,e.isStatement,o));return s=e.mergeLexicalEnvironment(s,c()),e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(s),n?n.body.statements:t.members),!0),n?n.body:void 0)}(t,i,n);if(!o)return;return e.startOnNewLine(e.setOriginalNode(e.setTextRange(e.createConstructor(void 0,void 0,a,o),i||t),i))}(t,n);return a&&i.push(a),e.addRange(i,e.visitNodes(t.members,p,e.isClassElement)),e.setTextRange(e.createNodeArray(i),t.members)}function m(t,r,n){for(var i=0,a=r;i<a.length;i++){var o=a[i],s=e.createExpressionStatement(g(o,n));e.setSourceMapRange(s,e.moveRangePastModifiers(o)),e.setCommentRange(s,o),e.setOriginalNode(s,o),t.push(s)}}function g(t,n){var i=!r.getCompilerOptions().useDefineForClassFields,a=e.isComputedPropertyName(t.name)&&!e.isSimpleInlineableExpression(t.name.expression)?e.updateComputedPropertyName(t.name,e.getGeneratedNameForNode(t.name)):t.name,o=t.initializer||i?e.visitNode(t.initializer,d,e.isExpression):e.createVoidZero();if(i){var s=e.createMemberAccessForPropertyName(n,a,a);return e.createAssignment(s,o)}var c=e.isComputedPropertyName(a)?a.expression:e.isIdentifier(a)?e.createStringLiteral(e.unescapeLeadingUnderscores(a.escapedText)):a,u=e.createPropertyDescriptor({value:o,configurable:!0,writable:!0,enumerable:!0});return e.createObjectDefinePropertyCall(n,c,u)}}}(s||(s={})),function(e){var 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"}(r||(r={})),e.transformES2017=function(r){var a,o,s,c,u,l=r.resumeLexicalEnvironment,_=r.endLexicalEnvironment,d=r.hoistVariableDeclaration,p=r.getEmitResolver(),f=r.getCompilerOptions(),m=e.getEmitScriptTarget(f),g=0,y=[],h=r.onEmitNode,v=r.onSubstituteNode;return r.onEmitNode=function(t,r,n){if(1&a&&function(e){var t=e.kind;return 244===t||161===t||160===t||162===t||163===t}(r)){var i=6144&p.getNodeCheckFlags(r);if(i!==g){var o=g;return g=i,h(t,r,n),void(g=o)}}else if(a&&y[e.getNodeId(r)]){o=g;return g=0,h(t,r,n),void(g=o)}h(t,r,n)},r.onSubstituteNode=function(r,n){if(n=v(r,n),1===r&&g)return function(r){switch(r.kind){case 193:return M(r);case 194:return L(r);case 195:return function(r){var n=r.expression;if(e.isSuperProperty(n)){var i=e.isPropertyAccessExpression(n)?M(n):L(n);return e.createCall(e.createPropertyAccess(i,"call"),void 0,t([e.createThis()],r.arguments))}return r}(r)}return r}(n);return n},e.chainBundle((function(t){if(t.isDeclarationFile)return t;u=e.isEffectiveStrictModeSourceFile(t,f);var n=e.visitEachChild(t,D,r);return e.addEmitHelpers(n,r.readEmitHelpers()),n}));function b(e,t){if(u){u=!1;var r=e(t);return u=!0,r}return e(t)}function x(t){return e.visitEachChild(t,D,r)}function D(t){if(0==(32&t.transformFlags))return t;switch(t.kind){case 125:return;case 205:return function(t){return e.setOriginalNode(e.setTextRange(e.createYield(void 0,e.visitNode(t.expression,D,e.isExpression)),t),t)}(t);case 160:return b(T,t);case 243:return b(E,t);case 200:return b(C,t);case 201:return function(t){return e.updateArrowFunction(t,e.visitNodes(t.modifiers,D,e.isModifier),void 0,e.visitParameterList(t.parameters,D,r),void 0,t.equalsGreaterThanToken,2&e.getFunctionFlags(t)?I(t):e.visitFunctionBody(t.body,D,r))}(t);case 193:return s&&e.isPropertyAccessExpression(t)&&101===t.expression.kind&&s.set(t.name.escapedText,!0),e.visitEachChild(t,D,r);case 194:return s&&101===t.expression.kind&&(c=!0),e.visitEachChild(t,D,r);case 162:case 163:case 161:case 244:case 213:return b(x,t);default:return e.visitEachChild(t,D,r)}}function S(t){if(e.isNodeWithPossibleHoistedDeclaration(t))switch(t.kind){case 224:return function(t){if(N(t.declarationList)){var n=A(t.declarationList,!1);return n?e.createExpressionStatement(n):void 0}return e.visitEachChild(t,D,r)}(t);case 229:return function(t){var r=t.initializer;return e.updateFor(t,N(r)?A(r,!1):e.visitNode(t.initializer,D,e.isForInitializer),e.visitNode(t.condition,D,e.isExpression),e.visitNode(t.incrementor,D,e.isExpression),e.visitNode(t.statement,S,e.isStatement,e.liftToBlock))}(t);case 230:return function(t){return e.updateForIn(t,N(t.initializer)?A(t.initializer,!0):e.visitNode(t.initializer,D,e.isForInitializer),e.visitNode(t.expression,D,e.isExpression),e.visitNode(t.statement,S,e.isStatement,e.liftToBlock))}(t);case 231:return function(t){return e.updateForOf(t,e.visitNode(t.awaitModifier,D,e.isToken),N(t.initializer)?A(t.initializer,!0):e.visitNode(t.initializer,D,e.isForInitializer),e.visitNode(t.expression,D,e.isExpression),e.visitNode(t.statement,S,e.isStatement,e.liftToBlock))}(t);case 278:return function(t){var n,i=e.createUnderscoreEscapedMap();if(k(t.variableDeclaration,i),i.forEach((function(t,r){o.has(r)&&(n||(n=e.cloneMap(o)),n.delete(r))})),n){var a=o;o=n;var s=e.visitEachChild(t,S,r);return o=a,s}return e.visitEachChild(t,S,r)}(t);case 222:case 236:case 250:case 275:case 276:case 239:case 227:case 228:case 226:case 235:case 237:return e.visitEachChild(t,S,r);default:return e.Debug.assertNever(t,"Unhandled node.")}return D(t)}function T(t){return e.updateMethod(t,void 0,e.visitNodes(t.modifiers,D,e.isModifier),t.asteriskToken,t.name,void 0,void 0,e.visitParameterList(t.parameters,D,r),void 0,2&e.getFunctionFlags(t)?I(t):e.visitFunctionBody(t.body,D,r))}function E(t){return e.updateFunctionDeclaration(t,void 0,e.visitNodes(t.modifiers,D,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,D,r),void 0,2&e.getFunctionFlags(t)?I(t):e.visitFunctionBody(t.body,D,r))}function C(t){return e.updateFunctionExpression(t,e.visitNodes(t.modifiers,D,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,D,r),void 0,2&e.getFunctionFlags(t)?I(t):e.visitFunctionBody(t.body,D,r))}function k(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)||k(o,r)}}function N(t){return!!t&&e.isVariableDeclarationList(t)&&!(3&t.flags)&&t.declarations.some(w)}function A(t,r){!function(t){e.forEach(t.declarations,F)}(t);var n=e.getInitializedVariables(t);return 0===n.length?r?e.visitNode(e.convertToAssignmentElementTarget(t.declarations[0].name),D,e.isExpression):void 0:e.inlineExpressions(e.map(n,P))}function F(t){var r=t.name;if(e.isIdentifier(r))d(r);else for(var n=0,i=r.elements;n<i.length;n++){var a=i[n];e.isOmittedExpression(a)||F(a)}}function P(t){var r=e.setSourceMapRange(e.createAssignment(e.convertToAssignmentElementTarget(t.name),t.initializer),t);return e.visitNode(r,D,e.isExpression)}function w(t){var r=t.name;if(e.isIdentifier(r))return o.has(r.escapedText);for(var n=0,i=r.elements;n<i.length;n++){var a=i[n];if(!e.isOmittedExpression(a)&&w(a))return!0}return!1}function I(t){l();var d=e.getOriginalNode(t,e.isFunctionLike).type,f=m<2?function(t){var r=t&&e.getEntityNameFromTypeNode(t);if(r&&e.isEntityName(r)){var n=p.getTypeReferenceSerializationKind(r);if(n===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||n===e.TypeReferenceSerializationKind.Unknown)return r}return}(d):void 0,g=201===t.kind,h=0!=(8192&p.getNodeCheckFlags(t)),v=o;o=e.createUnderscoreEscapedMap();for(var b=0,x=t.parameters;b<x.length;b++){k(x[b],o)}var S,T=s,E=c;if(g||(s=e.createUnderscoreEscapedMap(),c=!1),g){var C=i(r,!u,h,f,O(t.body)),N=_();if(e.some(N)){I=e.convertToFunctionBody(C);S=e.updateBlock(I,e.setTextRange(e.createNodeArray(e.concatenate(N,I.statements)),I.statements))}else S=C}else{var A=[],F=e.addPrologue(A,t.body.statements,!1,D);A.push(e.createReturn(i(r,!u,h,f,O(t.body,F)))),e.insertStatementsAfterStandardPrologue(A,_());var P=m>=2&&6144&p.getNodeCheckFlags(t);if(P&&(0==(1&a)&&(a|=1,r.enableSubstitution(195),r.enableSubstitution(193),r.enableSubstitution(194),r.enableEmitNotification(244),r.enableEmitNotification(160),r.enableEmitNotification(162),r.enableEmitNotification(163),r.enableEmitNotification(161),r.enableEmitNotification(224)),e.hasEntries(s))){var w=n(p,t,s);y[e.getNodeId(w)]=!0,e.insertStatementsAfterStandardPrologue(A,[w])}var I=e.createBlock(A,!0);e.setTextRange(I,t.body),P&&c&&(4096&p.getNodeCheckFlags(t)?e.addEmitHelper(I,e.advancedAsyncSuperHelper):2048&p.getNodeCheckFlags(t)&&e.addEmitHelper(I,e.asyncSuperHelper)),S=I}return o=v,g||(s=T,c=E),S}function O(t,r){return e.isBlock(t)?e.updateBlock(t,e.visitNodes(t.statements,S,e.isStatement,r)):e.convertToFunctionBody(e.visitNode(t,S,e.isConciseBody))}function M(t){return 101===t.expression.kind?e.setTextRange(e.createPropertyAccess(e.createFileLevelUniqueName("_super"),t.name),t):t}function L(t){return 101===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(a(["\n            const "," = name => super[name];"],["\n            const "," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:e.helperString(a(["\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")}}(s||(s={})),function(e){var 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"}(r||(r={})),e.transformES2018=function(r){var o=r.resumeLexicalEnvironment,s=r.endLexicalEnvironment,c=r.hoistVariableDeclaration,u=r.getEmitResolver(),l=r.getCompilerOptions(),_=e.getEmitScriptTarget(l),d=r.onEmitNode;r.onEmitNode=function(t,r,n){if(1&f&&function(e){var t=e.kind;return 244===t||161===t||160===t||162===t||163===t}(r)){var i=6144&u.getNodeCheckFlags(r);if(i!==b){var a=b;return b=i,d(t,r,n),void(b=a)}}else if(f&&x[e.getNodeId(r)]){a=b;return b=0,d(t,r,n),void(b=a)}d(t,r,n)};var p=r.onSubstituteNode;r.onSubstituteNode=function(r,n){if(n=p(r,n),1===r&&b)return function(r){switch(r.kind){case 193:return K(r);case 194:return J(r);case 195:return function(r){var n=r.expression;if(e.isSuperProperty(n)){var i=e.isPropertyAccessExpression(n)?K(n):J(n);return e.createCall(e.createPropertyAccess(i,"call"),void 0,t([e.createThis()],r.arguments))}return r}(r)}return r}(n);return n};var f,m,g,y,h,v=!1,b=0,x=[];return e.chainBundle((function(t){if(t.isDeclarationFile)return t;v=!1,g=e.isEffectiveStrictModeSourceFile(t,l);var n=e.visitEachChild(t,D,r);return e.addEmitHelpers(n,r.readEmitHelpers()),n}));function D(e){return k(e,!1)}function S(e){return k(e,!0)}function T(e){if(125!==e.kind)return e}function E(e,t){if(g){g=!1;var r=e(t);return g=!0,r}return e(t)}function C(t){return e.visitEachChild(t,D,r)}function k(o,s){if(0==(16&o.transformFlags))return o;switch(o.kind){case 205:return function(t){if(2&m&&1&m)return e.setOriginalNode(e.setTextRange(e.createYield(i(r,e.visitNode(t.expression,D,e.isExpression))),t),t);return e.visitEachChild(t,D,r)}(o);case 211:return function(t){if(2&m&&1&m){if(t.asteriskToken){var n=e.visitNode(t.expression,D,e.isExpression);return e.setOriginalNode(e.setTextRange(e.createYield(i(r,e.updateYield(t,t.asteriskToken,function(t,r,n){return t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncDelegator),e.setTextRange(e.createCall(e.getUnscopedHelperName("__asyncDelegator"),void 0,[r]),n)}(r,a(r,n,n),n)))),t),t)}return e.setOriginalNode(e.setTextRange(e.createYield(F(t.expression?e.visitNode(t.expression,D,e.isExpression):e.createVoidZero())),t),t)}return e.visitEachChild(t,D,r)}(o);case 234:return function(t){if(2&m&&1&m)return e.updateReturn(t,F(t.expression?e.visitNode(t.expression,D,e.isExpression):e.createVoidZero()));return e.visitEachChild(t,D,r)}(o);case 237:return function(t){if(2&m){var n=e.unwrapInnermostStatementOfLabel(t);return 231===n.kind&&n.awaitModifier?A(n,t):e.restoreEnclosingLabel(e.visitEachChild(n,D,r),t)}return e.visitEachChild(t,D,r)}(o);case 192:return function(t){if(8192&t.transformFlags){var i=function(t){for(var r,n=[],i=0,a=t;i<a.length;i++){var o=a[i];if(281===o.kind){r&&(n.push(e.createObjectLiteral(r)),r=void 0);var s=o.expression;n.push(e.visitNode(s,D,e.isExpression))}else r=e.append(r,279===o.kind?e.createPropertyAssignment(o.name,e.visitNode(o.initializer,D,e.isExpression)):e.visitNode(o,D,e.isObjectLiteralElementLike))}r&&n.push(e.createObjectLiteral(r));return n}(t.properties);i.length&&192!==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(r,[a,i[o]]);return a}return n(r,i)}return e.visitEachChild(t,D,r)}(o);case 208:return function(t,n){if(e.isDestructuringAssignment(t)&&8192&t.left.transformFlags)return e.flattenDestructuringAssignment(t,D,r,1,!n);if(27===t.operatorToken.kind)return e.updateBinary(t,e.visitNode(t.left,S,e.isExpression),e.visitNode(t.right,n?S:D,e.isExpression));return e.visitEachChild(t,D,r)}(o,s);case 278:return function(n){if(n.variableDeclaration&&e.isBindingPattern(n.variableDeclaration.name)&&8192&n.variableDeclaration.name.transformFlags){var i=e.getGeneratedNameForNode(n.variableDeclaration.name),a=e.updateVariableDeclaration(n.variableDeclaration,n.variableDeclaration.name,void 0,i),o=e.flattenDestructuringBinding(a,D,r,1),s=e.visitNode(n.block,D,e.isBlock);return e.some(o)&&(s=e.updateBlock(s,t([e.createVariableStatement(void 0,o)],s.statements))),e.updateCatchClause(n,e.updateVariableDeclaration(n.variableDeclaration,i,void 0,void 0),s)}return e.visitEachChild(n,D,r)}(o);case 224:return function(t){if(e.hasModifier(t,1)){var n=v;v=!0;var i=e.visitEachChild(t,D,r);return v=n,i}return e.visitEachChild(t,D,r)}(o);case 241:return function(e){if(v){var t=v;v=!1;var r=N(e,!0);return v=t,r}return N(e,!1)}(o);case 231:return A(o,void 0);case 229:return function(t){return e.updateFor(t,e.visitNode(t.initializer,S,e.isForInitializer),e.visitNode(t.condition,D,e.isExpression),e.visitNode(t.incrementor,D,e.isExpression),e.visitNode(t.statement,D,e.isStatement))}(o);case 204:return function(t){return e.visitEachChild(t,S,r)}(o);case 161:return E(P,o);case 160:return E(O,o);case 162:return E(w,o);case 163:return E(I,o);case 243:return E(M,o);case 200:return E(L,o);case 201:return function(t){var n=m;m=e.getFunctionFlags(t);var i=e.updateArrowFunction(t,t.modifiers,void 0,e.visitParameterList(t.parameters,D,r),void 0,t.equalsGreaterThanToken,B(t));return m=n,i}(o);case 155:return function(t){if(8192&t.transformFlags)return e.updateParameter(t,void 0,void 0,t.dotDotDotToken,e.getGeneratedNameForNode(t),void 0,void 0,e.visitNode(t.initializer,D,e.isExpression));return e.visitEachChild(t,D,r)}(o);case 225:return function(t){return e.visitEachChild(t,S,r)}(o);case 199:return function(t,n){return e.visitEachChild(t,n?S:D,r)}(o,s);case 193:return y&&e.isPropertyAccessExpression(o)&&101===o.expression.kind&&y.set(o.name.escapedText,!0),e.visitEachChild(o,D,r);case 194:return y&&101===o.expression.kind&&(h=!0),e.visitEachChild(o,D,r);case 244:case 213:return E(C,o);default:return e.visitEachChild(o,D,r)}}function N(t,n){return e.isBindingPattern(t.name)&&8192&t.name.transformFlags?e.flattenDestructuringBinding(t,D,r,1,void 0,n):e.visitEachChild(t,D,r)}function A(t,n){return 8192&t.initializer.transformFlags&&(t=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}(t)),t.awaitModifier?function(t,n){var i=e.visitNode(t.expression,D,e.isExpression),o=e.isIdentifier(i)?e.getGeneratedNameForNode(i):e.createTempVariable(void 0),s=e.isIdentifier(i)?e.getGeneratedNameForNode(o):e.createTempVariable(void 0),u=e.createUniqueName("e"),l=e.getGeneratedNameForNode(u),_=e.createTempVariable(void 0),d=a(r,i,t.expression),p=e.createCall(e.createPropertyAccess(o,"next"),void 0,[]),f=e.createPropertyAccess(s,"done"),m=e.createPropertyAccess(s,"value"),g=e.createFunctionCall(_,o,[]);c(u),c(_);var y=e.setEmitFlags(e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(o,void 0,d),t.expression),e.createVariableDeclaration(s)]),t.expression),2097152),e.createComma(e.createAssignment(s,F(p)),e.createLogicalNot(f)),void 0,function(t,r){var n,i,a=e.createForOfBindingStatement(t.initializer,r),o=[e.visitNode(a,D,e.isStatement)],s=e.visitNode(t.statement,D,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)}(t,m)),t),256);return e.createTry(e.createBlock([e.restoreEnclosingLabel(y,n)]),e.createCatchClause(e.createVariableDeclaration(l),e.setEmitFlags(e.createBlock([e.createExpressionStatement(e.createAssignment(u,e.createObjectLiteral([e.createPropertyAssignment("error",l)])))]),1)),e.createBlock([e.createTry(e.createBlock([e.setEmitFlags(e.createIf(e.createLogicalAnd(e.createLogicalAnd(s,e.createLogicalNot(f)),e.createAssignment(_,e.createPropertyAccess(o,"return"))),e.createExpressionStatement(F(g))),1)]),void 0,e.setEmitFlags(e.createBlock([e.setEmitFlags(e.createIf(u,e.createThrow(e.createPropertyAccess(u,"error"))),1)]),1))]))}(t,n):e.restoreEnclosingLabel(e.visitEachChild(t,D,r),n)}function F(t){return 1&m?e.createYield(void 0,i(r,t)):e.createAwait(t)}function P(t){var n=m;m=0;var i=e.updateConstructor(t,void 0,t.modifiers,e.visitParameterList(t.parameters,D,r),B(t));return m=n,i}function w(t){var n=m;m=0;var i=e.updateGetAccessor(t,void 0,t.modifiers,e.visitNode(t.name,D,e.isPropertyName),e.visitParameterList(t.parameters,D,r),void 0,B(t));return m=n,i}function I(t){var n=m;m=0;var i=e.updateSetAccessor(t,void 0,t.modifiers,e.visitNode(t.name,D,e.isPropertyName),e.visitParameterList(t.parameters,D,r),B(t));return m=n,i}function O(t){var n=m;m=e.getFunctionFlags(t);var i=e.updateMethod(t,void 0,1&m?e.visitNodes(t.modifiers,T,e.isModifier):t.modifiers,2&m?void 0:t.asteriskToken,e.visitNode(t.name,D,e.isPropertyName),e.visitNode(void 0,D,e.isToken),void 0,e.visitParameterList(t.parameters,D,r),void 0,2&m&&1&m?R(t):B(t));return m=n,i}function M(t){var n=m;m=e.getFunctionFlags(t);var i=e.updateFunctionDeclaration(t,void 0,1&m?e.visitNodes(t.modifiers,T,e.isModifier):t.modifiers,2&m?void 0:t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,D,r),void 0,2&m&&1&m?R(t):B(t));return m=n,i}function L(t){var n=m;m=e.getFunctionFlags(t);var i=e.updateFunctionExpression(t,1&m?e.visitNodes(t.modifiers,T,e.isModifier):t.modifiers,2&m?void 0:t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,D,r),void 0,2&m&&1&m?R(t):B(t));return m=n,i}function R(t){o();var n=[],i=e.addPrologue(n,t.body.statements,!1,D);j(n,t);var a=y,c=h;y=e.createUnderscoreEscapedMap(),h=!1;var l=e.createReturn(function(t,r,n){return t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncGeneratorHelper),(r.emitNode||(r.emitNode={})).flags|=262144,e.createCall(e.getUnscopedHelperName("__asyncGenerator"),void 0,[n?e.createThis():e.createVoidZero(),e.createIdentifier("arguments"),r])}(r,e.createFunctionExpression(void 0,e.createToken(41),t.name&&e.getGeneratedNameForNode(t.name),void 0,[],void 0,e.updateBlock(t.body,e.visitLexicalEnvironment(t.body.statements,D,r,i))),!g)),d=_>=2&&6144&u.getNodeCheckFlags(t);if(d){0==(1&f)&&(f|=1,r.enableSubstitution(195),r.enableSubstitution(193),r.enableSubstitution(194),r.enableEmitNotification(244),r.enableEmitNotification(160),r.enableEmitNotification(162),r.enableEmitNotification(163),r.enableEmitNotification(161),r.enableEmitNotification(224));var p=e.createSuperAccessVariableStatement(u,t,y);x[e.getNodeId(p)]=!0,e.insertStatementsAfterStandardPrologue(n,[p])}n.push(l),e.insertStatementsAfterStandardPrologue(n,s());var m=e.updateBlock(t.body,n);return d&&h&&(4096&u.getNodeCheckFlags(t)?e.addEmitHelper(m,e.advancedAsyncSuperHelper):2048&u.getNodeCheckFlags(t)&&e.addEmitHelper(m,e.asyncSuperHelper)),y=a,h=c,m}function B(t){o();var r=0,n=[],i=e.visitNode(t.body,D,e.isConciseBody);e.isBlock(i)&&(r=e.addPrologue(n,i.statements,!1,D)),e.addRange(n,j(void 0,t));var a=s();if(r>0||e.some(n)||e.some(a)){var c=e.convertToFunctionBody(i,!0);return e.insertStatementsAfterStandardPrologue(n,a),e.addRange(n,c.statements.slice(r)),e.updateBlock(c,e.setTextRange(e.createNodeArray(n),c.statements))}return i}function j(t,n){for(var i=0,a=n.parameters;i<a.length;i++){var o=a[i];if(8192&o.transformFlags){var s=e.getGeneratedNameForNode(o),c=e.flattenDestructuringBinding(o,D,r,1,s,!1,!0);if(e.some(c)){var u=e.createVariableStatement(void 0,e.createVariableDeclarationList(c));e.setEmitFlags(u,1048576),t=e.append(t,u)}}}return t}function K(t){return 101===t.expression.kind?e.setTextRange(e.createPropertyAccess(e.createFileLevelUniqueName("_super"),t.name),t):t}function J(t){return 101===t.expression.kind?(r=t.argumentExpression,n=t,4096&b?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,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,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            };'}}(s||(s={})),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==(8&n.transformFlags))return n;switch(n.kind){case 278: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)}}}}(s||(s={})),function(e){e.transformESNext=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==(4&i.transformFlags))return i;switch(i.kind){case 193:case 194:case 195:if(32&i.flags){var o=a(i,!1);return e.Debug.assertNotNode(o,e.isSyntheticReference),o}return e.visitEachChild(i,n,t);case 208:return 60===i.operatorToken.kind?function(t){var i=[],a=e.visitNode(t.left,n,e.isExpression);if(!e.isIdentifier(a)){var o=e.createTempVariable(r);i.push(e.createAssignment(o,a)),a=o}return i.push(e.createParen(e.createConditional(function(t){return e.createBinary(e.createBinary(t,e.createToken(37),e.createNull()),e.createToken(55),e.createBinary(t,e.createToken(37),e.createVoidZero()))}(a),a,e.visitNode(t.right,n,e.isExpression)))),e.inlineExpressions(i)}(i):e.visitEachChild(i,n,t);default:return e.visitEachChild(i,n,t)}}function i(o,s){switch(o.kind){case 199:return function(t,r){var n=i(t.expression,r);return e.isSyntheticReference(n)?e.createSyntheticReferenceExpression(e.updateParen(t,n.expression),n.thisArg):e.updateParen(t,n)}(o,s);case 193:return function(t,i){if(e.isOptionalChain(t))return a(t,i);var o,s=e.visitNode(t.expression,n,e.isExpression);return e.Debug.assertNotNode(s,e.isSyntheticReference),i&&(o=e.createTempVariable(r),s=e.createParen(e.createAssignment(o,s))),s=e.updatePropertyAccess(t,s,e.visitNode(t.name,n,e.isIdentifier)),o?e.createSyntheticReferenceExpression(s,o):s}(o,s);case 194:return function(t,i){if(e.isOptionalChain(t))return a(t,i);var o,s=e.visitNode(t.expression,n,e.isExpression);return e.Debug.assertNotNode(s,e.isSyntheticReference),i&&(o=e.createTempVariable(r),s=e.createParen(e.createAssignment(o,s))),s=e.updateElementAccess(t,s,e.visitNode(t.argumentExpression,n,e.isExpression)),o?e.createSyntheticReferenceExpression(s,o):s}(o,s);case 195:return function(r,i){return e.isOptionalChain(r)?a(r,i):e.visitEachChild(r,n,t)}(o,s);default:return e.visitNode(o,n,e.isExpression)}}function a(t,a){for(var o,s=function(t){for(var r=[t];!t.questionDotToken&&!e.isTaggedTemplateExpression(t);)t=e.cast(t.expression,e.isOptionalChain),r.unshift(t);return{expression:t.expression,chain:r}}(t),c=s.expression,u=s.chain,l=i(c,e.isCallChain(u[0])),_=e.createTempVariable(r),d=e.isSyntheticReference(l)?l.thisArg:void 0,p=e.isSyntheticReference(l)?l.expression:l,f=_,m=0;m<u.length;m++){var g=u[m];switch(g.kind){case 193:m===u.length-1&&a&&(o=e.createTempVariable(r),f=e.createParen(e.createAssignment(o,f))),f=e.createPropertyAccess(f,e.visitNode(g.name,n,e.isIdentifier));break;case 194:m===u.length-1&&a&&(o=e.createTempVariable(r),f=e.createParen(e.createAssignment(o,f))),f=e.createElementAccess(f,e.visitNode(g.argumentExpression,n,e.isExpression));break;case 195:f=0===m&&d?e.createFunctionCall(f,d,e.visitNodes(g.arguments,n,e.isExpression)):e.createCall(f,void 0,e.visitNodes(g.arguments,n,e.isExpression))}e.setOriginalNode(f,g)}var y=e.createConditional(e.createLogicalOr(e.createStrictEquality(e.createAssignment(_,p),e.createNull()),e.createStrictEquality(_,e.createVoidZero())),e.createVoidZero(),f);return o?e.createSyntheticReferenceExpression(y,o):y}}}(s||(s={})),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 264:return s(t,!1);case 265:return c(t,!1);case 268:return u(t,!1);case 274:return m(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 274:return m(t);case 264:return s(t,!0);case 265:return c(t,!0);case 268: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(264===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 m=e.createExpressionForJsxElement(r.getEmitResolver().getJsxFactoryEntity(n),i.reactNamespace,l,u,e.mapDefined(a,o),t,c);return s&&e.startOnNewLine(m),m}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((i=t.text,((a=f(i))===i?void 0:a)||t.text));return r.singleQuote=void 0!==t.singleQuote?t.singleQuote:!e.isStringDoubleQuoted(t,n),e.setTextRange(r,t)}return 274===t.kind?void 0===t.expression?e.createTrue():m(t):e.Debug.failBadSyntaxKind(t);var i,a}(t.initializer);return e.createPropertyAssignment(r,i)}function p(e,t){var r=f(t);return void 0===e?r:e+" "+r}function f(e){return e.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(function(e,r,n,i,a,o,s){if(a)return String.fromCharCode(parseInt(a,10));if(o)return String.fromCharCode(parseInt(o,16));var c=t.get(s);return c?String.fromCharCode(c):e}))}function m(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})}(s||(s={})),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==(64&i.transformFlags))return i;switch(i.kind){case 208: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)}}}}(s||(s={})),function(e){var r,n,i,a,o;!function(e){e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings"}(r||(r={})),function(e){e[e.Body=1]="Body",e[e.Initializer=2]="Initializer"}(n||(n={})),function(e){e[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter"}(i||(i={})),function(e){e[e.Break=2]="Break",e[e.Continue=4]="Continue",e[e.Return=8]="Return"}(a||(a={})),function(e){e[e.None=0]="None",e[e.Function=1]="Function",e[e.ArrowFunction=2]="ArrowFunction",e[e.AsyncFunctionBody=4]="AsyncFunctionBody",e[e.NonStaticClassElement=8]="NonStaticClassElement",e[e.CapturesThis=16]="CapturesThis",e[e.ExportedVariableStatement=32]="ExportedVariableStatement",e[e.TopLevel=64]="TopLevel",e[e.Block=128]="Block",e[e.IterationStatement=256]="IterationStatement",e[e.IterationStatementBlock=512]="IterationStatementBlock",e[e.IterationContainer=1024]="IterationContainer",e[e.ForStatement=2048]="ForStatement",e[e.ForInOrForOfStatement=4096]="ForInOrForOfStatement",e[e.ConstructorWithCapturedSuper=8192]="ConstructorWithCapturedSuper",e[e.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"}(o||(o={})),e.transformES2015=function(r){var n,i,a,o,s,c,u=r.startLexicalEnvironment,l=r.resumeLexicalEnvironment,_=r.endLexicalEnvironment,d=r.hoistVariableDeclaration,p=r.getCompilerOptions(),f=r.getEmitResolver(),m=r.onSubstituteNode,g=r.onEmitNode;return r.onEmitNode=function(t,r,n){if(1&c&&e.isFunctionLike(r)){var i=y(16286,8&e.getEmitFlags(r)?81:65);return g(t,r,n),void h(i,0,0)}g(t,r,n)},r.onSubstituteNode=function(t,r){if(r=m(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 103:return function(t){if(1&c&&16&a)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 190:case 244:case 247:case 241: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(t){if(t.isDeclarationFile)return t;n=t,i=t.text;var s=function(t){var r=y(8064,64),n=[],i=[];u();var a=e.addStandardPrologue(n,t.statements,!1);a=e.addCustomPrologue(n,t.statements,a,b),e.addRange(i,e.visitNodes(t.statements,b,e.isStatement,a)),o&&i.push(e.createVariableStatement(void 0,e.createVariableDeclarationList(o)));return e.mergeLexicalEnvironment(n,_()),P(n,t),h(r,0,0),e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray(e.concatenate(n,i)),t.statements))}(t);return e.addEmitHelpers(s,r.readEmitHelpers()),n=void 0,i=void 0,o=void 0,a=0,s}));function y(e,t){var r=a;return a=16383&(a&~e|t),r}function h(e,t,r){a=-16384&(a&~t|r)|e}function v(e){return 0!=(8192&a)&&234===e.kind&&!e.expression}function b(i){return function(t){return 0!=(128&t.transformFlags)||void 0!==s||8192&a&&(e.isStatement(t)||222===t.kind)||e.isIterationStatement(t,!1)&&ie(t)||0!=(33554432&e.getEmitFlags(t))}(i)?function(i){switch(i.kind){case 119:return;case 244:return function(t){var r=e.createVariableDeclaration(e.getLocalName(t,!0),void 0,S(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)}(i);case 213:return function(e){return S(e)}(i);case 155: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}(i);case 243:return function(t){var n=s;s=void 0;var i=y(16286,65),o=e.visitParameterList(t.parameters,b,r),c=j(t),u=16384&a?e.getLocalName(t):t.name;return h(i,49152,0),s=n,e.updateFunctionDeclaration(t,void 0,e.visitNodes(t.modifiers,b,e.isModifier),t.asteriskToken,u,void 0,o,void 0,c)}(i);case 201:return function(t){2048&t.transformFlags&&(a|=32768);var n=s;s=void 0;var i=y(15232,66),o=e.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(t.parameters,b,r),void 0,j(t));e.setTextRange(o,t),e.setOriginalNode(o,t),e.setEmitFlags(o,8),32768&a&&Ne();return h(i,0,0),s=n,o}(i);case 200:return function(t){var n=262144&e.getEmitFlags(t)?y(16278,69):y(16286,65),i=s;s=void 0;var o=e.visitParameterList(t.parameters,b,r),c=j(t),u=16384&a?e.getLocalName(t):t.name;return h(n,49152,0),s=i,e.updateFunctionExpression(t,void 0,t.asteriskToken,u,void 0,o,void 0,c)}(i);case 241:return U(i);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"))}(i);case 242:return function(t){if(3&t.flags||65536&t.transformFlags){3&t.flags&&ke();var n=e.flatMap(t.declarations,1&t.flags?z:U),i=e.createVariableDeclarationList(n);return e.setOriginalNode(i,t),e.setTextRange(i,t),e.setCommentRange(i,t),65536&t.transformFlags&&(e.isBindingPattern(t.declarations[0].name)||e.isBindingPattern(e.last(t.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(t,b,r)}(i);case 236:return function(t){if(void 0!==s){var n=s.allowedNonLabeledJumps;s.allowedNonLabeledJumps|=2;var i=e.visitEachChild(t,b,r);return s.allowedNonLabeledJumps=n,i}return e.visitEachChild(t,b,r)}(i);case 250:return function(t){var n=y(7104,0),i=e.visitEachChild(t,b,r);return h(n,0,0),i}(i);case 222:return function(t,n){if(n)return e.visitEachChild(t,b,r);var i=256&a?y(7104,512):y(6976,128),o=e.visitEachChild(t,b,r);return h(i,0,0),o}(i,!1);case 233:case 232:return function(t){if(s){var n=233===t.kind?2:4;if(!(t.label&&s.labels&&s.labels.get(e.idText(t.label))||!t.label&&s.allowedNonLabeledJumps&n)){var i=void 0,a=t.label;a?233===t.kind?(i="break-"+a.escapedText,_e(s,!0,e.idText(a),i)):(i="continue-"+a.escapedText,_e(s,!1,e.idText(a),i)):233===t.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 _=ue(c[l],1);u=0===l?_:e.createBinary(u,27,_)}o=e.createBinary(u,27,o)}return e.createReturn(o)}}return e.visitEachChild(t,b,r)}(i);case 237:return function(t){s&&!s.labels&&(s.labels=e.createMap());var r=e.unwrapInnermostStatementOfLabel(t,s&&V);return e.isIterationStatement(r,!1)?function(e,t){switch(e.kind){case 227:case 228:return G(e,t);case 229:return H(e,t);case 230:return Y(e,t);case 231:return X(e,t)}}(r,t):e.restoreEnclosingLabel(e.visitNode(r,b,e.isStatement,e.liftToBlock),t,s&&q)}(i);case 227:case 228:return G(i,void 0);case 229:return H(i,void 0);case 230:return Y(i,void 0);case 231:return X(i,void 0);case 225:return function(t){switch(t.expression.kind){case 199:return e.updateExpressionStatement(t,K(t.expression,!1));case 208:return e.updateExpressionStatement(t,J(t.expression,!1))}return e.visitEachChild(t,b,r)}(i);case 192:return function(t){for(var n=t.properties,i=n.length,o=i,s=i,c=0;c<i;c++){var u=n[c];if(131072&u.transformFlags&&4&a&&c<s&&(s=c),153===u.name.kind){o=c;break}}if(o!==i){s<o&&(o=s);var l=e.createTempVariable(d),_=[],p=e.createAssignment(l,e.setEmitFlags(e.createObjectLiteral(e.visitNodes(n,b,e.isObjectLiteralElementLike,0,o),t.multiLine),65536));return t.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 162:case 163:var u=e.getAllAccessorDeclarations(r.properties,c);c===u.firstAccessor&&t.push(R(n,u,r,!!r.multiLine));break;case 160:t.push(ge(c,n,r,r.multiLine));break;case 279:t.push(fe(c,n,r.multiLine));break;case 280:t.push(me(c,n,r.multiLine));break;default:e.Debug.failBadSyntaxKind(r)}}}(_,t,l,o),_.push(t.multiLine?e.startOnNewLine(e.getMutableClone(l)):l),e.inlineExpressions(_)}return e.visitEachChild(t,b,r)}(i);case 278:return function(n){var i,a=y(7104,0);if(e.Debug.assert(!!n.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),e.isBindingPattern(n.variableDeclaration.name)){var o=e.createTempVariable(void 0),s=e.createVariableDeclaration(o);e.setTextRange(s,n.variableDeclaration);var c=e.flattenDestructuringBinding(n.variableDeclaration,b,r,0,o),u=e.createVariableDeclarationList(c);e.setTextRange(u,n.variableDeclaration);var l=e.createVariableStatement(void 0,u);i=e.updateCatchClause(n,s,(_=n.block,d=l,p=e.visitNodes(_.statements,b,e.isStatement),e.updateBlock(_,t([d],p))))}else i=e.visitEachChild(n,b,r);var _,d,p;return h(a,0,0),i}(i);case 280:return function(t){return e.setTextRange(e.createPropertyAssignment(t.name,e.getSynthesizedClone(t.name)),t)}(i);case 153:return function(t){return e.visitEachChild(t,b,r)}(i);case 191:return function(t){if(e.some(t.elements,e.isSpreadElement))return he(t.elements,!0,!!t.multiLine,!!t.elements.hasTrailingComma);return e.visitEachChild(t,b,r)}(i);case 195: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=e.visitNodes(r.statements,b,e.isStatement),a=e.filter(i,n),o=e.filter(i,(function(e){return!n(e)})),s=e.cast(e.first(a),e.isVariableStatement).declarationList.declarations[0],c=e.skipOuterExpressions(s.initializer),u=e.tryCast(c,e.isAssignmentExpression),l=e.cast(u?e.skipOuterExpressions(u.right):c,e.isCallExpression),_=e.cast(e.skipOuterExpressions(l.expression),e.isFunctionExpression),d=_.body.statements,p=0,f=-1,m=[];if(u){var g=e.tryCast(d[p],e.isExpressionStatement);g&&(m.push(g),p++),m.push(d[p]),p++,m.push(e.createExpressionStatement(e.createAssignment(u.left,e.cast(s.name,e.isIdentifier))))}for(;!e.isReturnStatement(e.elementAt(d,f));)f--;e.addRange(m,d,p,f),f<-1&&e.addRange(m,d,f+1);return e.addRange(m,o),e.addRange(m,a,1),e.recreateOuterExpressions(t.expression,e.recreateOuterExpressions(s.initializer,e.recreateOuterExpressions(u&&u.right,e.updateCall(l,e.recreateOuterExpressions(l.expression,e.updateFunctionExpression(_,void 0,void 0,void 0,void 0,_.parameters,void 0,e.updateBlock(_.body,m))),void 0,l.arguments))))}(t);var r=e.skipOuterExpressions(t.expression);if(101===r.kind||e.isSuperProperty(r)||e.some(t.arguments,e.isSpreadElement))return ye(t,!0);return e.updateCall(t,e.visitNode(t.expression,x,e.isExpression),void 0,e.visitNodes(t.arguments,b,e.isExpression))}(i);case 196:return function(n){if(e.some(n.arguments,e.isSpreadElement)){var i=e.createCallBinding(e.createPropertyAccess(n.expression,"bind"),d),a=i.target,o=i.thisArg;return e.createNew(e.createFunctionApply(e.visitNode(a,b,e.isExpression),o,he(e.createNodeArray(t([e.createVoidZero()],n.arguments)),!1,!1,!1)),void 0,[])}return e.visitEachChild(n,b,r)}(i);case 199:return K(i,!0);case 208:return J(i,!0);case 14:case 15:case 16:case 17:return function(t){return e.setTextRange(e.createLiteral(t.text),t)}(i);case 10:return function(t){if(t.hasExtendedUnicodeEscape)return e.setTextRange(e.createLiteral(t.text),t);return t}(i);case 8:return function(t){if(384&t.numericLiteralFlags)return e.setTextRange(e.createNumericLiteral(t.text),t);return t}(i);case 197:return function(t){var i=e.visitNode(t.tag,b,e.isExpression),a=[void 0],s=[],c=[],u=t.template;if(e.isNoSubstitutionTemplateLiteral(u))s.push(e.createLiteral(u.text)),c.push(Ee(u));else{s.push(e.createLiteral(u.head.text)),c.push(Ee(u.head));for(var l=0,_=u.templateSpans;l<_.length;l++){var d=_[l];s.push(e.createLiteral(d.literal.text)),c.push(Ee(d.literal)),a.push(e.visitNode(d.expression,b,e.isExpression))}}var p=function(t,r,n){return t.requestEmitHelper(e.templateObjectHelper),e.createCall(e.getUnscopedHelperName("__makeTemplateObject"),void 0,[r,n])}(r,e.createArrayLiteral(s),e.createArrayLiteral(c));if(e.isExternalModule(n)){var f=e.createUniqueName("templateObject");m=f,o=e.append(o,e.createVariableDeclaration(m)),a[0]=e.createLogicalOr(f,e.createAssignment(f,p))}else a[0]=p;var m;return e.createCall(i,void 0,a)}(i);case 210: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,b,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}(i);case 211:return function(t){return e.visitEachChild(t,b,r)}(i);case 212:return function(t){return e.visitNode(t.expression,b,e.isExpression)}(i);case 101:return Ce(!1);case 103:return function(t){2&a&&(a|=32768);if(s)return 2&a?(s.containsLexicalThis=!0,t):s.thisName||(s.thisName=e.createUniqueName("this"));return t}(i);case 218:return function(t){if(98===t.keywordToken&&"target"===t.name.escapedText)return a|=16384,e.createFileLevelUniqueName("_newTarget");return t}(i);case 160:return function(t){e.Debug.assert(!e.isComputedPropertyName(t.name));var r=B(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)}(i);case 162:case 163:return function(t){e.Debug.assert(!e.isComputedPropertyName(t.name));var n=s;s=void 0;var i,a=y(16286,65),o=e.visitParameterList(t.parameters,b,r),c=j(t);i=162===t.kind?e.updateGetAccessor(t,t.decorators,t.modifiers,t.name,o,t.type,c):e.updateSetAccessor(t,t.decorators,t.modifiers,t.name,o,c);return h(a,49152,0),s=n,i}(i);case 224:return function(t){var n,i=y(0,e.hasModifier(t,1)?32:0);if(s&&0==(3&t.declarationList.flags)){for(var a=void 0,o=0,c=t.declarationList.declarations;o<c.length;o++){var u=c[o];if(oe(s,u),u.initializer){var l=void 0;e.isBindingPattern(u.name)?l=e.flattenDestructuringAssignment(u,b,r,0):(l=e.createBinary(u.name,62,e.visitNode(u.initializer,b,e.isExpression)),e.setTextRange(l,u)),a=e.append(a,l)}}n=a?e.setTextRange(e.createExpressionStatement(e.inlineExpressions(a)),t):void 0}else n=e.visitEachChild(t,b,r);return h(i,0,0),n}(i);case 234:return function(t){if(s)return s.nonLocalJumps|=8,v(t)&&(t=D(t)),e.createReturn(e.createObjectLiteral([e.createPropertyAssignment(e.createIdentifier("value"),t.expression?e.visitNode(t.expression,b,e.isExpression):e.createVoidZero())]));if(v(t))return D(t);return e.visitEachChild(t,b,r)}(i);default:return e.visitEachChild(i,b,r)}}(i):i}function x(e){return 101===e.kind?Ce(!0):b(e)}function D(t){return e.setOriginalNode(e.createReturn(e.createFileLevelUniqueName("_this")),t)}function S(t){t.name&&ke();var o=e.getClassExtendsHeritageElement(t),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(t,o){var c=[];u(),function(t,n,i){i&&t.push(e.setTextRange(e.createExpressionStatement(function(t,r){return t.requestEmitHelper(e.extendsHelper),e.createCall(e.getUnscopedHelperName("__extends"),void 0,[r,e.createFileLevelUniqueName("_super")])}(r,e.getInternalName(n))),i))}(c,t,o),function(t,n,i){var o=s;s=void 0;var c=y(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)||225!==n.kind)return!1;var i=n.expression;if(!e.nodeIsSynthesized(i)||195!==i.kind)return!1;var a=i.expression;if(!e.nodeIsSynthesized(a)||101!==a.kind)return!1;var o=e.singleOrUndefined(i.arguments);if(!o||!e.nodeIsSynthesized(o)||212!==o.kind)return!1;var s=o.expression;return e.isIdentifier(s)&&"arguments"===s.escapedText}(u,void 0!==i),p=e.createFunctionDeclaration(void 0,void 0,void 0,e.getInternalName(n),void 0,function(t,n){return e.visitParameterList(t&&!n?t.parameters:void 0,b,r)||[]}(u,d),void 0,function(t,r,n,i){var o=!!n&&99!==e.skipOuterExpressions(n.expression).kind;if(!t)return function(t,r){var n=[];l(),e.mergeLexicalEnvironment(n,_()),r&&n.push(e.createReturn(E()));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;i||(d=e.addStandardPrologue(s,t.body.statements,!1));k(c,t),F(c,t,i),i||(d=e.addCustomPrologue(c,t.body.statements,d,b));if(i)u=E();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 ye(e,!1)}(p.expression))}u&&(a|=8192,d++);if(e.addRange(c,e.visitNodes(t.body.statements,b,e.isStatement,d)),e.mergeLexicalEnvironment(s,_()),I(s,t,!1),o)if(!u||d!==t.body.statements.length||2048&t.body.transformFlags)w(c,t,u||T()),function t(r){if(234===r.kind)return!0;if(226===r.kind){var n=r;if(n.elseStatement)return t(n.thenStatement)&&t(n.elseStatement)}else if(222===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),m=e.createReturn(u);e.setCommentRange(m,e.getCommentRange(f)),e.setEmitFlags(f,1536),c.push(m)}else P(s,t);var g=e.createBlock(e.setTextRange(e.createNodeArray(e.concatenate(s,c)),t.body.statements),!0);return e.setTextRange(g,t.body),g}(u,n,i,d));e.setTextRange(p,u||n),i&&e.setEmitFlags(p,8);t.push(p),h(c,49152,0),s=o}(c,t,o),function(t,r){for(var i=0,a=r.members;i<a.length;i++){var o=a[i];switch(o.kind){case 221:t.push(O(o));break;case 160:t.push(M(Ae(r,o),o,r));break;case 162:case 163:var s=e.getAllAccessorDeclarations(r.members,o);o===s.firstAccessor&&t.push(L(Ae(r,o),s,r));break;case 161:break;default:e.Debug.failBadSyntaxKind(o,n&&n.fileName)}}}(c,t);var d=e.createTokenRange(e.skipTrivia(i,t.members.end),19),p=e.getInternalName(t),f=e.createPartiallyEmittedExpression(p);f.end=d.end,e.setEmitFlags(f,1536);var m=e.createReturn(f);m.pos=d.pos,e.setEmitFlags(m,1920),c.push(m),e.insertStatementsAfterStandardPrologue(c,_());var g=e.createBlock(e.setTextRange(e.createNodeArray(c),t.members),!0);return e.setEmitFlags(g,1536),g}(t,o));e.setEmitFlags(c,65536&e.getEmitFlags(t)|524288);var d=e.createPartiallyEmittedExpression(c);d.end=t.end,e.setEmitFlags(d,1536);var p=e.createPartiallyEmittedExpression(d);p.end=e.skipTrivia(i,t.pos),e.setEmitFlags(p,1536);var f=e.createParen(e.createCall(p,void 0,o?[e.visitNode(o.expression,b,e.isExpression)]:[]));return e.addSyntheticLeadingComment(f,3,"* @class "),f}function T(){return e.setEmitFlags(e.createThis(),4)}function E(){return e.createLogicalOr(e.createLogicalAnd(e.createStrictInequality(e.createFileLevelUniqueName("_super"),e.createNull()),e.createFunctionApply(e.createFileLevelUniqueName("_super"),T(),e.createIdentifier("arguments"))),T())}function C(t){return void 0!==t.initializer||e.isBindingPattern(t.name)}function k(t,r){if(!e.some(r.parameters,C))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=N(t,o,s,c)||n:c&&(A(t,o,s,c),n=!0))}return n}function N(t,n,i,a){return i.elements.length>0?(e.insertStatementAfterCustomPrologue(t,e.setEmitFlags(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(n,b,r,0,e.getGeneratedNameForNode(n)))),1048576)),!0):!!a&&(e.insertStatementAfterCustomPrologue(t,e.setEmitFlags(e.createExpressionStatement(e.createAssignment(e.getGeneratedNameForNode(n),e.visitNode(a,b,e.isExpression))),1048576)),!0)}function A(t,r,n,i){i=e.visitNode(i,b,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 F(t,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,b,r,0,c))),o),1048576)),e.insertStatementsAfterCustomPrologue(t,a),!0}function P(t,r){return!!(32768&a&&201!==r.kind)&&(w(t,r,e.createThis()),!0)}function w(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 I(t,r,n){if(16384&a){var i=void 0;switch(r.kind){case 201:return t;case 160:case 162:case 163:i=e.createVoidZero();break;case 161:i=e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor");break;case 243:case 200:i=e.createConditional(e.createLogicalAnd(e.setEmitFlags(e.createThis(),4),e.createBinary(e.setEmitFlags(e.createThis(),4),97,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,i)]));e.setEmitFlags(o,1050112),n&&(t=t.slice()),e.insertStatementAfterCustomPrologue(t,o)}return t}function O(t){return e.setTextRange(e.createEmptyStatement(),t)}function M(t,n,i){var a,o=e.getCommentRange(n),s=e.getSourceMapRange(n),c=B(n,n,void 0,i);if(r.getCompilerOptions().useDefineForClassFields){var u=e.visitNode(n.name,b,e.isPropertyName),l=e.isComputedPropertyName(u)?u.expression:e.isIdentifier(u)?e.createStringLiteral(e.unescapeLeadingUnderscores(u.escapedText)):u;a=e.createObjectDefinePropertyCall(t,l,e.createPropertyDescriptor({value:c,enumerable:!1,writable:!0,configurable:!0}))}else{var _=e.createMemberAccessForPropertyName(t,e.visitNode(n.name,b,e.isPropertyName),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 L(t,r,n){var i=e.createExpressionStatement(R(t,r,n,!1));return e.setEmitFlags(i,1536),e.setSourceMapRange(i,e.getSourceMapRange(r.firstAccessor)),i}function R(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.createExpressionForPropertyName(e.visitNode(a.name,b,e.isPropertyName));e.setEmitFlags(u,1552),e.setSourceMapRange(u,a.name);var l=[];if(o){var _=B(o,void 0,void 0,n);e.setSourceMapRange(_,e.getSourceMapRange(o)),e.setEmitFlags(_,512);var d=e.createPropertyAssignment("get",_);e.setCommentRange(d,e.getCommentRange(o)),l.push(d)}if(s){var p=B(s,void 0,void 0,n);e.setSourceMapRange(p,e.getSourceMapRange(s)),e.setEmitFlags(p,512);var f=e.createPropertyAssignment("set",p);e.setCommentRange(f,e.getCommentRange(s)),l.push(f)}l.push(e.createPropertyAssignment("enumerable",e.createTrue()),e.createPropertyAssignment("configurable",e.createTrue()));var m=e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[c,u,e.createObjectLiteral(l,!0)]);return i&&e.startOnNewLine(m),m}function B(t,n,i,o){var c=s;s=void 0;var u=o&&e.isClassLike(o)&&!e.hasModifier(t,32)?y(16286,73):y(16286,65),l=e.visitParameterList(t.parameters,b,r),_=j(t);return 16384&a&&!i&&(243===t.kind||200===t.kind)&&(i=e.getGeneratedNameForNode(t)),h(u,49152,0),s=c,e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,t.asteriskToken,i,void 0,l,void 0,_),n),t)}function j(t){var r,i,a,o=!1,s=!1,c=[],u=[],d=t.body;if(l(),e.isBlock(d)&&(a=e.addStandardPrologue(c,d.statements,!1)),o=k(u,t)||o,o=F(u,t,!1)||o,e.isBlock(d))a=e.addCustomPrologue(u,d.statements,a,b),r=d.statements,e.addRange(u,e.visitNodes(d.statements,b,e.isStatement,a)),!o&&d.multiLine&&(o=!0);else{e.Debug.assert(201===t.kind),r=e.moveRangeEnd(d,-1);var p=t.equalsGreaterThanToken;e.nodeIsSynthesized(p)||e.nodeIsSynthesized(d)||(e.rangeEndIsOnSameLineAsRangeStart(p,d,n)?s=!0:o=!0);var f=e.visitNode(d,b,e.isExpression),m=e.createReturn(f);e.setTextRange(m,d),e.moveSyntheticComments(m,d),e.setEmitFlags(m,1440),u.push(m),i=d}if(e.mergeLexicalEnvironment(c,_()),I(c,t,!1),P(c,t),e.some(c)&&(o=!0),u.unshift.apply(u,c),e.isBlock(d)&&e.arrayIsEqualTo(u,d.statements))return d;var g=e.createBlock(e.setTextRange(e.createNodeArray(u),r),o);return e.setTextRange(g,t.body),!o&&s&&e.setEmitFlags(g,1),i&&e.setTokenSourceMapRange(g,19,i),e.setOriginalNode(g,t.body),g}function K(t,n){if(!n)switch(t.expression.kind){case 199:return e.updateParen(t,K(t.expression,!1));case 208:return e.updateParen(t,J(t.expression,!1))}return e.visitEachChild(t,b,r)}function J(t,n){return e.isDestructuringAssignment(t)?e.flattenDestructuringAssignment(t,b,r,0,n):e.visitEachChild(t,b,r)}function z(t){var n=t.name;if(e.isBindingPattern(n))return U(t);if(!t.initializer&&function(e){var t=f.getNodeCheckFlags(e),r=262144&t,n=524288&t;return!(0!=(64&a)||r&&n&&0!=(512&a))&&0==(4096&a)&&(!f.isDeclarationWithCollidingName(e)||n&&!r&&0==(6144&a))}(t)){var i=e.getMutableClone(t);return i.initializer=e.createVoidZero(),i}return e.visitEachChild(t,b,r)}function U(t){var n,i=y(32,0);return n=e.isBindingPattern(t.name)?e.flattenDestructuringBinding(t,b,r,0,void 0,0!=(32&i)):e.visitEachChild(t,b,r),h(i,0,0),n}function V(t){s.labels.set(e.idText(t.label),!0)}function q(t){s.labels.set(e.idText(t.label),!1)}function W(t,n,i,o,c){var l=y(t,n),d=function(t,n,i,o){if(!ie(t)){var c=void 0;s&&(c=s.allowedNonLabeledJumps,s.allowedNonLabeledJumps=6);var l=o?o(t,n,void 0,i):e.restoreEnclosingLabel(e.visitEachChild(t,b,r),n,s&&q);return s&&(s.allowedNonLabeledJumps=c),l}var d=function(t){var r;switch(t.kind){case 229:case 230:case 231:var n=t.initializer;n&&242===n.kind&&(r=n)}var i=[],a=[];if(r&&3&e.getCombinedNodeFlags(r))for(var o=re(t),c=0,u=r.declarations;c<u.length;c++){var l=u[c];pe(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 _}(t),p=[],f=s;s=d;var m,g=re(t)?function(t,r){var n=e.createUniqueName("_loop_init"),i=0!=(131072&t.initializer.transformFlags),o=0;r.containsLexicalThis&&(o|=8);i&&4&a&&(o|=262144);var s=[];s.push(e.createVariableStatement(void 0,t.initializer)),le(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,i?e.createToken(41):void 0,void 0,void 0,void 0,void 0,e.visitNode(e.createBlock(s,!0),b,e.isBlock)),o))]),2097152)),u=e.createVariableDeclarationList(e.map(r.loopOutParameters,ce));return{functionName:n,containsYield:i,functionDeclaration:c,part:u}}(t,d):void 0,y=ae(t)?function(t,r,n){var i=e.createUniqueName("_loop");u();var o=e.visitNode(t.statement,b,e.isStatement,e.liftToBlock),s=_(),c=[];(ne(t)||function(t){return e.isForStatement(t)&&!!t.incrementor&&te(t.incrementor)}(t))&&(r.conditionVariable=e.createUniqueName("inc"),c.push(e.createIf(r.conditionVariable,e.createStatement(e.visitNode(t.incrementor,b,e.isExpression)),e.createStatement(e.createAssignment(r.conditionVariable,e.createTrue())))),ne(t)&&c.push(e.createIf(e.createPrefix(53,e.visitNode(t.condition,b,e.isExpression)),e.visitNode(e.createBreak(),b,e.isStatement))));e.isBlock(o)?e.addRange(c,o.statements):c.push(o);le(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!=(131072&t.statement.transformFlags),p=0;r.containsLexicalThis&&(p|=8);d&&0!=(4&a)&&(p|=262144);var f=e.createVariableStatement(void 0,e.setEmitFlags(e.createVariableDeclarationList([e.createVariableDeclaration(i,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)),m=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)),le(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),le(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=[];de(r.labeledNonLocalBreaks,!0,u,n,d),de(r.labeledNonLocalContinues,!1,u,n,d),a.push(e.createSwitch(u,e.createCaseBlock(d)))}}return a}(i,r,n,d);return{functionName:i,containsYield:d,functionDeclaration:f,part:m}}(t,d,f):void 0;s=f,g&&p.push(g.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),g&&p.push((h=g.functionName,v=g.containsYield,x=e.createCall(h,void 0,[]),D=v?e.createYield(e.createToken(41),e.setEmitFlags(x,8388608)):x,e.createStatement(D)));var h,v,x,D;if(y)if(o)m=o(t,n,y.part,i);else{var S=se(t,g,e.createBlock(y.part,!0));e.aggregateTransformFlags(S),m=e.restoreEnclosingLabel(S,n,s&&q)}else{var T=se(t,g,e.visitNode(t.statement,b,e.isStatement,e.liftToBlock));e.aggregateTransformFlags(T),m=e.restoreEnclosingLabel(T,n,s&&q)}return p.push(m),p}(i,o,l,c);return h(l,0,0),d}function G(e,t){return W(0,1280,e,t)}function H(e,t){return W(5056,3328,e,t)}function Y(e,t){return W(3008,5376,e,t)}function X(e,t){return W(3008,5376,e,t,p.downlevelIteration?ee:Z)}function Q(t,n,i){var a=[],o=t.initializer;if(e.isVariableDeclarationList(o)){3&t.initializer.flags&&ke();var s=e.firstOrUndefined(o.declarations);if(s&&e.isBindingPattern(s.name)){var c=e.flattenDestructuringBinding(s,b,r,0,n),u=e.setTextRange(e.createVariableDeclarationList(c),t.initializer);e.setOriginalNode(u,t.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(J(l,!1)))):(l.end=o.end,a.push(e.setTextRange(e.createExpressionStatement(e.visitNode(l,b,e.isExpression)),e.moveRangeEnd(o,-1))))}if(i)return $(e.addRange(a,i));var _=e.visitNode(t.statement,b,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 Z(t,r,n){var i=e.visitNode(t.expression,b,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),Q(t,e.createElementAccess(o,a),n)),t);return e.setEmitFlags(c,256),e.setTextRange(c,t),e.restoreEnclosingLabel(c,r,s&&q)}function ee(t,n,i,a){var o=e.visitNode(t.expression,b,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(r,o,t.expression),m=e.createCall(e.createPropertyAccess(c,"next"),void 0,[]);d(l),d(p);var g=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,g),t.expression),e.createVariableDeclaration(u,void 0,m)]),t.expression),2097152),e.createLogicalNot(e.createPropertyAccess(u,"done")),e.createAssignment(u,m),Q(t,e.createPropertyAccess(u,"value"),i)),t),256);return e.createTry(e.createBlock([e.restoreEnclosingLabel(y,n,s&&q)]),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 te(e){return 0!=(131072&f.getNodeCheckFlags(e))}function re(t){return e.isForStatement(t)&&!!t.initializer&&te(t.initializer)}function ne(t){return e.isForStatement(t)&&!!t.condition&&te(t.condition)}function ie(e){return ae(e)||re(e)}function ae(e){return 0!=(65536&f.getNodeCheckFlags(e))}function oe(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 se(t,r,n){switch(t.kind){case 229:return function(t,r,n){var i=t.condition&&te(t.condition),a=i||t.incrementor&&te(t.incrementor);return e.updateFor(t,e.visitNode(r?r.part:t.initializer,b,e.isForInitializer),e.visitNode(i?void 0:t.condition,b,e.isExpression),e.visitNode(a?void 0:t.incrementor,b,e.isExpression),n)}(t,r,n);case 230:return function(t,r){return e.updateForIn(t,e.visitNode(t.initializer,b,e.isForInitializer),e.visitNode(t.expression,b,e.isExpression),r)}(t,n);case 231:return function(t,r){return e.updateForOf(t,void 0,e.visitNode(t.initializer,b,e.isForInitializer),e.visitNode(t.expression,b,e.isExpression),r)}(t,n);case 227:return function(t,r){return e.updateDo(t,r,e.visitNode(t.expression,b,e.isExpression))}(t,n);case 228:return function(t,r){return e.updateWhile(t,e.visitNode(t.expression,b,e.isExpression),r)}(t,n);default:return e.Debug.failBadSyntaxKind(t,"IterationStatement expected")}}function ce(t){return e.createVariableDeclaration(t.originalName,void 0,t.outParamName)}function ue(t,r){var n=0===r?t.outParamName:t.originalName,i=0===r?t.originalName:t.outParamName;return e.createBinary(i,62,n)}function le(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(ue(s,n)))}}function _e(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 de(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 _e(i,r,o,t),s.push(e.createReturn(n));a.push(e.createCaseClause(e.createLiteral(t),s))}))}function pe(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)||pe(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 fe(t,r,n){var i=e.createAssignment(e.createMemberAccessForPropertyName(r,e.visitNode(t.name,b,e.isPropertyName)),e.visitNode(t.initializer,b,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,b,e.isPropertyName)),e.getSynthesizedClone(t.name));return e.setTextRange(i,t),n&&e.startOnNewLine(i),i}function ge(t,r,n,i){var a=e.createAssignment(e.createMemberAccessForPropertyName(r,e.visitNode(t.name,b,e.isPropertyName)),B(t,t,void 0,n));return e.setTextRange(a,t),i&&e.startOnNewLine(a),a}function ye(t,n){if(4096&t.transformFlags||101===t.expression.kind||e.isSuperProperty(e.skipOuterExpressions(t.expression))){var i=e.createCallBinding(t.expression,d),a=i.target,o=i.thisArg;101===t.expression.kind&&e.setEmitFlags(o,4);var s=void 0;if(s=4096&t.transformFlags?e.createFunctionApply(e.visitNode(a,x,e.isExpression),101===t.expression.kind?o:e.visitNode(o,b,e.isExpression),he(t.arguments,!1,!1,!1)):e.createFunctionCall(e.visitNode(a,x,e.isExpression),101===t.expression.kind?o:e.visitNode(o,b,e.isExpression),e.visitNodes(t.arguments,b,e.isExpression),t),101===t.expression.kind){var c=e.createLogicalOr(s,T());s=n?e.createAssignment(e.createFileLevelUniqueName("_this"),c):c}return e.setOriginalNode(s,t)}return e.visitEachChild(t,b,r)}function he(t,n,i,a){var o=t.length,s=e.flatten(e.spanMap(t,xe,(function(e,t,r,n){return t(e,i,a&&n===o)})));if(p.downlevelIteration){if(1===s.length)if(be(c=s[0],"___spread"))return s[0];return e.createSpreadHelper(r,s)}if(1===s.length){var c=s[0];if(!n||function(t){return e.isArrayLiteralExpression(t)&&e.every(t.elements,ve)}(c)||be(c,"___spreadArrays"))return s[0]}return e.createSpreadArraysHelper(r,s)}function ve(t){return!e.isOmittedExpression(t)}function be(t,r){return e.isCallExpression(t)&&e.isIdentifier(t.expression)&&4096&e.getEmitFlags(t.expression)&&t.expression.escapedText===r}function xe(t){return e.isSpreadElement(t)?De:Se}function De(t){return e.map(t,Te)}function Se(t,r,n){return e.createArrayLiteral(e.visitNodes(e.createNodeArray(t,n),b,e.isExpression),r)}function Te(t){return e.visitNode(t.expression,b,e.isExpression)}function Ee(t){var r=t.rawText;if(void 0===r){r=e.getSourceTextOfNodeFromSourceFile(n,t);var i=14===t.kind||17===t.kind;r=r.substring(1,r.length-(i?1:2))}return r=r.replace(/\r\n?/g,"\n"),e.setTextRange(e.createLiteral(r),t)}function Ce(t){return 8&a&&!t?e.createPropertyAccess(e.createFileLevelUniqueName("_super"),"prototype"):e.createFileLevelUniqueName("_super")}function ke(){0==(2&c)&&(c|=2,r.enableSubstitution(75))}function Ne(){0==(1&c)&&(c|=1,r.enableSubstitution(103),r.enableEmitNotification(161),r.enableEmitNotification(160),r.enableEmitNotification(162),r.enableEmitNotification(163),r.enableEmitNotification(201),r.enableEmitNotification(200),r.enableEmitNotification(243))}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            })();"},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            };'}}(s||(s={})),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 266:case 267:case 265:var o=i.tagName;n[e.getOriginalNodeId(o)]=!0}r(t,i,a)},t.enableEmitNotification(266),t.enableEmitNotification(267),t.enableEmitNotification(265),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){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(193),t.enableSubstitution(279),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>=76&&r<=111)return e.setTextRange(e.createLiteral(t),t)}}}(s||(s={})),function(e){var r,n,i,a,o;!function(e){e[e.Nop=0]="Nop",e[e.Statement=1]="Statement",e[e.Assign=2]="Assign",e[e.Break=3]="Break",e[e.BreakWhenTrue=4]="BreakWhenTrue",e[e.BreakWhenFalse=5]="BreakWhenFalse",e[e.Yield=6]="Yield",e[e.YieldStar=7]="YieldStar",e[e.Return=8]="Return",e[e.Throw=9]="Throw",e[e.Endfinally=10]="Endfinally"}(r||(r={})),function(e){e[e.Open=0]="Open",e[e.Close=1]="Close"}(n||(n={})),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"}(i||(i={})),function(e){e[e.Try=0]="Try",e[e.Catch=1]="Catch",e[e.Finally=2]="Finally",e[e.Done=3]="Done"}(a||(a={})),function(e){e[e.Next=0]="Next",e[e.Throw=1]="Throw",e[e.Return=2]="Return",e[e.Break=3]="Break",e[e.Yield=4]="Yield",e[e.YieldStar=5]="YieldStar",e[e.Catch=6]="Catch",e[e.Endfinally=7]="Endfinally"}(o||(o={})),e.transformGenerators=function(r){var n,i,a,o,s,c,u,l,_,d,p=r.resumeLexicalEnvironment,f=r.endLexicalEnvironment,m=r.hoistFunctionDeclaration,g=r.hoistVariableDeclaration,y=r.getCompilerOptions(),h=e.getEmitScriptTarget(y),v=r.getEmitResolver(),b=r.onSubstituteNode;r.onSubstituteNode=function(t,r){if(r=b(t,r),1===t)return function(t){if(e.isIdentifier(t))return function(t){if(!e.isGeneratedIdentifier(t)&&n&&n.has(e.idText(t))){var r=e.getOriginalNode(t);if(e.isIdentifier(r)&&r.parent){var a=v.getReferencedValueDeclaration(r);if(a){var o=i[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}(r);return r};var x,D,S,T,E,C,k,N,A,F,P,w,I=1,O=0,M=0;return e.chainBundle((function(t){if(t.isDeclarationFile||0==(256&t.transformFlags))return t;var n=e.visitEachChild(t,L,r);return e.addEmitHelpers(n,r.readEmitHelpers()),n}));function L(t){var n=t.transformFlags;return o?function(t){switch(t.kind){case 227:case 228:return function(t){return o?(ne(),t=e.visitEachChild(t,L,r),ae(),t):e.visitEachChild(t,L,r)}(t);case 236:return function(t){o&&Z({kind:2,isScript:!0,breakLabel:-1});t=e.visitEachChild(t,L,r),o&&oe();return t}(t);case 237:return function(t){o&&Z({kind:4,isScript:!0,labelText:e.idText(t.label),breakLabel:-1});t=e.visitEachChild(t,L,r),o&&se();return t}(t);default:return R(t)}}(t):a?R(t):e.isFunctionLikeDeclaration(t)&&t.asteriskToken?function(t){switch(t.kind){case 243:return B(t);case 200:return j(t);default:return e.Debug.failBadSyntaxKind(t)}}(t):256&n?e.visitEachChild(t,L,r):t}function R(t){switch(t.kind){case 243:return B(t);case 200:return j(t);case 162:case 163:return function(t){var n=a,i=o;return a=!1,o=!1,t=e.visitEachChild(t,L,r),a=n,o=i,t}(t);case 224:return function(t){if(131072&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];g(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)}(t);case 229:return function(t){o&&ne();var n=t.initializer;if(n&&e.isVariableDeclarationList(n)){for(var i=0,a=n.declarations;i<a.length;i++){var s=a[i];g(s.name)}var c=e.getInitializedVariables(n);t=e.updateFor(t,c.length>0?e.inlineExpressions(e.map(c,W)):void 0,e.visitNode(t.condition,L,e.isExpression),e.visitNode(t.incrementor,L,e.isExpression),e.visitNode(t.statement,L,e.isStatement,e.liftToBlock))}else t=e.visitEachChild(t,L,r);o&&ae();return t}(t);case 230:return function(t){o&&ne();var n=t.initializer;if(e.isVariableDeclarationList(n)){for(var i=0,a=n.declarations;i<a.length;i++){var s=a[i];g(s.name)}t=e.updateForIn(t,n.declarations[0].name,e.visitNode(t.expression,L,e.isExpression),e.visitNode(t.statement,L,e.isStatement,e.liftToBlock))}else t=e.visitEachChild(t,L,r);o&&ae();return t}(t);case 233:return function(t){if(o){var n=de(t.label&&e.idText(t.label));if(n>0)return ge(n,t)}return e.visitEachChild(t,L,r)}(t);case 232:return function(t){if(o){var n=pe(t.label&&e.idText(t.label));if(n>0)return ge(n,t)}return e.visitEachChild(t,L,r)}(t);case 234:return function(t){return r=e.visitNode(t.expression,L,e.isExpression),n=t,e.setTextRange(e.createReturn(e.createArrayLiteral(r?[me(2),r]:[me(2)])),n);var r,n}(t);default:return 131072&t.transformFlags?function(t){switch(t.kind){case 208:return function(t){var n=e.getExpressionAssociativity(t);switch(n){case 0:return function(t){if(G(t.right)){if(e.isLogicalOperator(t.operatorToken.kind))return function(t){var r=Q(),n=X();ve(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 ve(n,e.visitNode(t.right,L,e.isExpression),t.right),$(r),n}(t);if(27===t.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)):(G(t)&&r.length>0&&(Se(1,[e.createExpressionStatement(e.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,L,e.isExpression)))}}(t);var n=e.getMutableClone(t);return n.left=Y(e.visitNode(t.left,L,e.isExpression)),n.right=e.visitNode(t.right,L,e.isExpression),n}return e.visitEachChild(t,L,r)}(t);case 1:return function(t){var n=t.left,i=t.right;if(G(i)){var a=void 0;switch(n.kind){case 193:a=e.updatePropertyAccess(n,Y(e.visitNode(n.expression,L,e.isLeftHandSideExpression)),n.name);break;case 194:a=e.updateElementAccess(n,Y(e.visitNode(n.expression,L,e.isLeftHandSideExpression)),Y(e.visitNode(n.argumentExpression,L,e.isExpression)));break;default:a=e.visitNode(n,L,e.isExpression)}var o=t.operatorToken.kind;return(s=o)>=63&&s<=74?e.setTextRange(e.createAssignment(a,e.setTextRange(e.createBinary(Y(a),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}}(o),e.visitNode(i,L,e.isExpression)),t)),t):e.updateBinary(t,a,e.visitNode(i,L,e.isExpression))}var s;return e.visitEachChild(t,L,r)}(t);default:return e.Debug.assertNever(n)}}(t);case 209:return function(t){if(G(t.whenTrue)||G(t.whenFalse)){var n=Q(),i=Q(),a=X();return De(n,e.visitNode(t.condition,L,e.isExpression),t.condition),ve(a,e.visitNode(t.whenTrue,L,e.isExpression),t.whenTrue),be(i),$(n),ve(a,e.visitNode(t.whenFalse,L,e.isExpression),t.whenFalse),$(i),a}return e.visitEachChild(t,L,r)}(t);case 211:return function(t){var n=Q(),i=e.visitNode(t.expression,L,e.isExpression);if(t.asteriskToken){!function(e,t){Se(7,[e],t)}(0==(8388608&e.getEmitFlags(t.expression))?e.createValuesHelper(r,i,t):i,t)}else!function(e,t){Se(6,[e],t)}(i,t);return $(n),function(t){return e.setTextRange(e.createCall(e.createPropertyAccess(T,"sent"),void 0,[]),t)}(t)}(t);case 191:return function(e){return J(e.elements,void 0,void 0,e.multiLine)}(t);case 192:return function(t){var r=t.properties,n=t.multiLine,i=H(r),a=X();ve(a,e.createObjectLiteral(e.visitNodes(r,L,e.isObjectLiteralElementLike,0,i),n));var o=e.reduceLeft(r,(function(r,i){G(i)&&r.length>0&&(he(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)}(t);case 194:return function(t){if(G(t.argumentExpression)){var n=e.getMutableClone(t);return n.expression=Y(e.visitNode(t.expression,L,e.isLeftHandSideExpression)),n.argumentExpression=e.visitNode(t.argumentExpression,L,e.isExpression),n}return e.visitEachChild(t,L,r)}(t);case 195:return function(t){if(!e.isImportCall(t)&&e.forEach(t.arguments,G)){var n=e.createCallBinding(t.expression,g,h,!0),i=n.target,a=n.thisArg;return e.setOriginalNode(e.createFunctionApply(Y(e.visitNode(i,L,e.isLeftHandSideExpression)),a,J(t.arguments),t),t)}return e.visitEachChild(t,L,r)}(t);case 196:return function(t){if(e.forEach(t.arguments,G)){var n=e.createCallBinding(e.createPropertyAccess(t.expression,"bind"),g),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(e.createNew(e.createFunctionApply(Y(e.visitNode(i,L,e.isExpression)),a,J(t.arguments,e.createVoidZero())),void 0,[]),t),t)}return e.visitEachChild(t,L,r)}(t);default:return e.visitEachChild(t,L,r)}}(t):262400&t.transformFlags?e.visitEachChild(t,L,r):t}}function B(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,t.modifiers,void 0,t.name,void 0,e.visitParameterList(t.parameters,L,r),void 0,K(t.body)),t),t);else{var n=a,i=o;a=!1,o=!1,t=e.visitEachChild(t,L,r),a=n,o=i}return a?void m(t):t}function j(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,void 0,t.name,void 0,e.visitParameterList(t.parameters,L,r),void 0,K(t.body)),t),t);else{var n=a,i=o;a=!1,o=!1,t=e.visitEachChild(t,L,r),a=n,o=i}return t}function K(t){var r=[],n=a,i=o,m=s,g=c,y=u,h=l,v=_,b=d,E=I,C=x,k=D,N=S,A=T;a=!0,o=!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,T=e.createTempVariable(void 0),p();var F=e.addPrologue(r,t.statements,!1,L);z(t.statements,F);var P=Te();return e.insertStatementsAfterStandardPrologue(r,f()),r.push(e.createReturn(P)),a=n,o=i,s=m,c=g,u=y,l=h,_=v,d=b,I=E,x=C,D=k,S=N,T=A,e.setTextRange(e.createBlock(r,t.multiLine),t)}function J(r,n,i,a){var o,s=H(r);if(s>0){o=X();var c=e.visitNodes(r,L,e.isExpression,0,s);ve(o,e.createArrayLiteral(n?t([n],c):c)),n=void 0}var u=e.reduceLeft(r,(function(r,i){if(G(i)&&r.length>0){var s=void 0!==o;o||(o=X()),ve(o,s?e.createArrayConcat(o,[e.createArrayLiteral(r,a)]):e.createArrayLiteral(n?t([n],r):r,a)),n=void 0,r=[]}return r.push(e.visitNode(i,L,e.isExpression)),r}),[],s);return o?e.createArrayConcat(o,[e.createArrayLiteral(u,a)]):e.setTextRange(e.createArrayLiteral(n?t([n],u):u,a),i)}function z(e,t){void 0===t&&(t=0);for(var r=e.length,n=t;n<r;n++)V(e[n])}function U(t){e.isBlock(t)?z(t.statements):V(t)}function V(t){var a=o;o||(o=G(t)),function(t){switch(t.kind){case 222:return function(t){G(t)?z(t.statements):he(e.visitNode(t,L,e.isStatement))}(t);case 225:return function(t){he(e.visitNode(t,L,e.isStatement))}(t);case 226:return function(t){if(G(t))if(G(t.thenStatement)||G(t.elseStatement)){var r=Q(),n=t.elseStatement?Q():void 0;De(t.elseStatement?n:r,e.visitNode(t.expression,L,e.isExpression),t.expression),U(t.thenStatement),t.elseStatement&&(be(r),$(n),U(t.elseStatement)),$(r)}else he(e.visitNode(t,L,e.isStatement));else he(e.visitNode(t,L,e.isStatement))}(t);case 227:return function(t){if(G(t)){var r=Q(),n=Q();ie(r),$(n),U(t.statement),$(r),xe(n,e.visitNode(t.expression,L,e.isExpression)),ae()}else he(e.visitNode(t,L,e.isStatement))}(t);case 228:return function(t){if(G(t)){var r=Q(),n=ie(r);$(r),De(n,e.visitNode(t.expression,L,e.isExpression)),U(t.statement),be(r),ae()}else he(e.visitNode(t,L,e.isStatement))}(t);case 229:return function(t){if(G(t)){var r=Q(),n=Q(),i=ie(n);if(t.initializer){var a=t.initializer;e.isVariableDeclarationList(a)?q(a):he(e.setTextRange(e.createExpressionStatement(e.visitNode(a,L,e.isExpression)),a))}$(r),t.condition&&De(i,e.visitNode(t.condition,L,e.isExpression)),U(t.statement),$(n),t.incrementor&&he(e.setTextRange(e.createExpressionStatement(e.visitNode(t.incrementor,L,e.isExpression)),t.incrementor)),be(r),ae()}else he(e.visitNode(t,L,e.isStatement))}(t);case 230:return function(t){if(G(t)){var r=X(),n=X(),i=e.createLoopVariable(),a=t.initializer;g(i),ve(r,e.createArrayLiteral()),he(e.createForIn(n,e.visitNode(t.expression,L,e.isExpression),e.createExpressionStatement(e.createCall(e.createPropertyAccess(r,"push"),void 0,[n])))),ve(i,e.createLiteral(0));var o=Q(),s=Q(),c=ie(s);$(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];g(d.name)}u=e.getSynthesizedClone(a.declarations[0].name)}else u=e.visitNode(a,L,e.isExpression),e.Debug.assert(e.isLeftHandSideExpression(u));ve(u,e.createElementAccess(r,i)),U(t.statement),$(s),he(e.createExpressionStatement(e.createPostfixIncrement(i))),be(o),ae()}else he(e.visitNode(t,L,e.isStatement))}(t);case 232:return function(t){var r=pe(t.label?e.idText(t.label):void 0);r>0?be(r,t):he(t)}(t);case 233:return function(t){var r=de(t.label?e.idText(t.label):void 0);r>0?be(r,t):he(t)}(t);case 234:return function(t){r=e.visitNode(t.expression,L,e.isExpression),n=t,Se(8,[r],n);var r,n}(t);case 235:return function(t){G(t)?(r=Y(e.visitNode(t.expression,L,e.isExpression)),n=Q(),i=Q(),$(n),Z({kind:1,expression:r,startLabel:n,endLabel:i}),U(t.statement),e.Debug.assert(1===re()),$(ee().endLabel)):he(e.visitNode(t,L,e.isStatement));var r,n,i}(t);case 236:return function(t){if(G(t.caseBlock)){for(var r=t.caseBlock,n=r.clauses.length,i=(Z({kind:2,isScript:!1,breakLabel:p=Q()}),p),a=Y(e.visitNode(t.expression,L,e.isExpression)),o=[],s=-1,c=0;c<n;c++){var u=r.clauses[c];o.push(Q()),276===u.kind&&-1===s&&(s=c)}for(var l=0,_=[];l<n;){var d=0;for(c=l;c<n;c++){if(275===(u=r.clauses[c]).kind){if(G(u.expression)&&_.length>0)break;_.push(e.createCaseClause(e.visitNode(u.expression,L,e.isExpression),[ge(o[c],u.expression)]))}else d++}_.length&&(he(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++)$(o[c]),z(r.clauses[c].statements);oe()}else he(e.visitNode(t,L,e.isStatement));var p}(t);case 237:return function(t){G(t)?(r=e.idText(t.label),n=Q(),Z({kind:4,isScript:!1,labelText:r,breakLabel:n}),U(t.statement),se()):he(e.visitNode(t,L,e.isStatement));var r,n}(t);case 238:return function(t){r=e.visitNode(t.expression,L,e.isExpression),n=t,Se(9,[r],n);var r,n}(t);case 239:return function(t){G(t)?(a=Q(),o=Q(),$(a),Z({kind:0,state:0,startLabel:a,endLabel:o}),ye(),U(t.tryBlock),t.catchClause&&(!function(t){var a;if(e.Debug.assert(0===re()),e.isGeneratedIdentifier(t.name))a=t.name,g(t.name);else{var o=e.idText(t.name);a=X(o),n||(n=e.createMap(),i=[],r.enableSubstitution(75)),n.set(o,!0),i[e.getOriginalNodeId(t)]=a}var s=te();e.Debug.assert(s.state<1),be(s.endLabel);var c=Q();$(c),s.state=1,s.catchVariable=a,s.catchLabel=c,ve(a,e.createCall(e.createPropertyAccess(T,"sent"),void 0,[])),ye()}(t.catchClause.variableDeclaration),U(t.catchClause.block)),t.finallyBlock&&(!function(){e.Debug.assert(0===re());var t=te();e.Debug.assert(t.state<2),be(t.endLabel);var r=Q();$(r),t.state=2,t.finallyLabel=r}(),U(t.finallyBlock)),function(){e.Debug.assert(0===re());var t=ee();t.state<2?be(t.endLabel):Se(10);$(t.endLabel),ye(),t.state=3}()):he(e.visitEachChild(t,L,r));var a,o}(t);default:he(e.visitNode(t,L,e.isStatement))}}(t),o=a}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),g(a)}for(var o=e.getInitializedVariables(t),s=o.length,c=0,u=[];c<s;){for(var l=c;l<s;l++){if(G((i=o[l]).initializer)&&u.length>0)break;u.push(W(i))}u.length&&(he(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 G(e){return!!e&&0!=(131072&e.transformFlags)}function H(e){for(var t=e.length,r=0;r<t;r++)if(G(e[r]))return r;return-1}function Y(t){if(e.isGeneratedIdentifier(t)||4096&e.getEmitFlags(t))return t;var r=e.createTempVariable(g);return ve(r,t,t),r}function X(t){var r=t?e.createUniqueName(t):e.createTempVariable(void 0);return g(r),r}function Q(){_||(_=[]);var e=I;return I++,_[e]=-1,e}function $(t){e.Debug.assert(void 0!==_,"No labels were defined."),_[t]=x?x.length:0}function Z(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(){Z({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function ie(e){var t=Q();return Z({kind:3,isScript:!1,breakLabel:t,continueLabel:e}),t}function ae(){e.Debug.assert(3===re());var t=ee(),r=t.breakLabel;t.isScript||$(r)}function oe(){e.Debug.assert(2===re());var t=ee(),r=t.breakLabel;t.isScript||$(r)}function se(){e.Debug.assert(4===re());var t=ee();t.isScript||$(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 me(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 ge(t,r){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(e.createReturn(e.createArrayLiteral([me(3),fe(t)])),r)}function ye(){Se(0)}function he(e){e?Se(1,[e]):ye()}function ve(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===_&&$(Q());var n=x.length;x[n]=e,D[n]=t,S[n]=r}function Te(){O=0,M=0,E=void 0,C=!1,k=!1,N=void 0,A=void 0,F=void 0,P=void 0,w=void 0;var t=function(){if(x){for(var t=0;t<x.length;t++)Ne(t);Ee(x.length)}else Ee(0);if(N){var r=e.createPropertyAccess(T,"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])}(r,e.setEmitFlags(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,T)],void 0,e.createBlock(t,t.length>0)),524288))}function Ee(e){(function(e){if(!k)return!0;if(!_||!d)return!1;for(var t=0;t<_.length;t++)if(_[t]===e&&d[t])return!0;return!1})(e)&&(ke(e),w=void 0,Fe(void 0,void 0)),A&&N&&Ce(!1),function(){if(void 0!==d&&void 0!==E)for(var e=0;e<E.length;e++){var t=E[e];if(void 0!==t)for(var r=0,n=t;r<n.length;r++){var i=n[r],a=d[i];if(void 0!==a)for(var o=0,s=a;o<s.length;o++){s[o].text=String(e)}}}}()}function Ce(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(T,"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(T,"label"),e.createLiteral(M+1))))}N.push(e.createCaseClause(e.createLiteral(M),A||[])),A=void 0}function ke(e){if(_)for(var t=0;t<_.length;t++)_[t]===e&&(A&&(Ce(!C),C=!1,k=!1,M++),void 0===E&&(E=[]),void 0===E[M]?E[M]=[t]:E[M].push(t))}function Ne(t){if(ke(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),!C){C=!1,k=!1;var r=x[t];if(0!==r){if(10===r)return C=!0,void Ae(e.createReturn(e.createArrayLiteral([me(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){C=!0,Ae(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([me(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([me(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([me(3),fe(t)])),n),384)),1))}(n[0],n[1],l);case 6:return function(t,r){C=!0,Ae(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral(t?[me(4),t]:[me(4)])),r),384))}(n[0],l);case 7:return function(t,r){C=!0,Ae(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([me(5),t])),r),384))}(n[0],l);case 8:return Fe(n[0],l);case 9:return function(t,r){C=!0,k=!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){C=!0,k=!0,Ae(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral(t?[me(2),t]:[me(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            };'}}(s||(s={})),function(e){e.transformModule=function(i){var a=i.startLexicalEnvironment,o=i.endLexicalEnvironment,s=i.hoistVariableDeclaration,c=i.getCompilerOptions(),u=i.getEmitResolver(),l=i.getEmitHost(),_=e.getEmitScriptTarget(c),d=e.getEmitModuleKind(c),p=i.onSubstituteNode,f=i.onEmitNode;i.onSubstituteNode=function(t,r){if((r=p(t,r)).id&&y[r.id])return r;if(1===t)return function(t){switch(t.kind){case 75:return H(t);case 208: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=Y(t.left);if(r){for(var n=t,i=0,a=r;i<a.length;i++){var o=a[i];y[e.getNodeId(n)]=!0,n=W(o,n,t)}return n}}return t}(t);case 207:case 206: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=Y(t.operand);if(r){for(var n=207===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];y[e.getNodeId(n)]=!0,n=W(o,n)}return n}}return t}(t)}return t}(r);if(e.isShorthandPropertyAssignment(r))return function(t){var r=t.name,n=H(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){288===r.kind?(m=r,g=v[e.getOriginalNodeId(m)],y=[],f(t,r,n),m=void 0,g=void 0,y=void 0):f(t,r,n)},i.enableSubstitution(75),i.enableSubstitution(208),i.enableSubstitution(206),i.enableSubstitution(207),i.enableSubstitution(280),i.enableEmitNotification(288);var m,g,y,h,v=[],b=[];return e.chainBundle((function(t){if(t.isDeclarationFile||!(e.isEffectiveExternalModule(t,c)||524288&t.transformFlags||e.isJsonSourceFile(t)&&e.hasJsonModuleEmitEnabled(c)&&(c.out||c.outFile)))return t;m=t,g=e.collectExternalModuleInfo(t,u,c),v[e.getOriginalNodeId(t)]=g;var r=function(t){switch(t){case e.ModuleKind.AMD:return S;case e.ModuleKind.UMD:return T;default:return D}}(d)(t);return m=void 0,g=void 0,h=!1,e.aggregateTransformFlags(r)}));function x(){return!(g.exportEquals||!e.isExternalModule(m))}function D(t){a();var n=[],s=e.getStrictOptionValue(c,"alwaysStrict")||!c.noImplicitUseStrict&&e.isExternalModule(m),u=e.addPrologue(n,t.statements,s,A);x()&&e.append(n,q()),e.append(n,e.visitNode(g.externalHelpersImportDeclaration,A,e.isStatement)),e.addRange(n,e.visitNodes(t.statements,A,e.isStatement,u)),N(n,!1),e.insertStatementsAfterStandardPrologue(n,o());var l=e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray(n),t.statements));return g.hasExportStarsToExportValues&&!c.importHelpers&&e.addEmitHelper(l,r),e.addEmitHelpers(l,i.readEmitHelpers()),l}function S(r){var n=e.createIdentifier("define"),a=e.tryGetModuleNameFromFile(r,l,c),o=e.isJsonSourceFile(r)&&r,s=E(r,!0),u=s.aliasedModuleNames,_=s.unaliasedModuleNames,d=s.importAliasNames,p=e.updateSourceFileNode(r,e.setTextRange(e.createNodeArray([e.createExpressionStatement(e.createCall(n,void 0,t(a?[a]:[],[e.createArrayLiteral(o?e.emptyArray:t([e.createLiteral("require"),e.createLiteral("exports")],u,_)),o?o.statements.length?o.statements[0].expression:e.createObjectLiteral():e.createFunctionExpression(void 0,void 0,void 0,void 0,t([e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")],d),void 0,k(r))])))]),r.statements));return e.addEmitHelpers(p,i.readEmitHelpers()),p}function T(r){var n=E(r,!1),a=n.aliasedModuleNames,o=n.unaliasedModuleNames,s=n.importAliasNames,u=e.tryGetModuleNameFromFile(r,l,c),_=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,t(u?[u]:[],[e.createArrayLiteral(t([e.createLiteral("require"),e.createLiteral("exports")],a,o)),e.createIdentifier("factory")])))])))],!0),void 0)),d=e.updateSourceFileNode(r,e.setTextRange(e.createNodeArray([e.createExpressionStatement(e.createCall(_,void 0,[e.createFunctionExpression(void 0,void 0,void 0,void 0,t([e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")],s),void 0,k(r))]))]),r.statements));return e.addEmitHelpers(d,i.readEmitHelpers()),d}function E(t,r){for(var n=[],i=[],a=[],o=0,s=t.amdDependencies;o<s.length;o++){var _=s[o];_.name?(n.push(e.createLiteral(_.path)),a.push(e.createParameter(void 0,void 0,void 0,_.name))):i.push(e.createLiteral(_.path))}for(var d=0,p=g.externalImports;d<p.length;d++){var f=p[d],y=e.getExternalModuleNameLiteral(f,m,l,u,c),h=e.getLocalNameForExternalImport(f,m);y&&(r&&h?(e.setEmitFlags(h,4),n.push(y),a.push(e.createParameter(void 0,void 0,void 0,h))):i.push(y))}return{aliasedModuleNames:n,unaliasedModuleNames:i,importAliasNames:a}}function C(t){if(!e.isImportEqualsDeclaration(t)&&!e.isExportDeclaration(t)&&e.getExternalModuleNameLiteral(t,m,l,u,c)){var r=e.getLocalNameForExternalImport(t,m),n=I(t,r);if(n!==r)return e.createExpressionStatement(e.createAssignment(r,n))}}function k(t){a();var i=[],s=e.addPrologue(i,t.statements,!c.noImplicitUseStrict,A);x()&&e.append(i,q()),e.append(i,e.visitNode(g.externalHelpersImportDeclaration,A,e.isStatement)),d===e.ModuleKind.AMD&&e.addRange(i,e.mapDefined(g.externalImports,C)),e.addRange(i,e.visitNodes(t.statements,A,e.isStatement,s)),N(i,!0),e.insertStatementsAfterStandardPrologue(i,o());var u=e.createBlock(i,!0);return g.hasExportStarsToExportValues&&!c.importHelpers&&e.addEmitHelper(u,r),h&&e.addEmitHelper(u,n),u}function N(t,r){if(g.exportEquals){var n=e.visitNode(g.exportEquals.expression,F);if(n)if(r){var i=e.createReturn(n);e.setTextRange(i,g.exportEquals),e.setEmitFlags(i,1920),t.push(i)}else{i=e.createExpressionStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier("module"),"exports"),n));e.setTextRange(i,g.exportEquals),e.setEmitFlags(i,1536),t.push(i)}}}function A(t){switch(t.kind){case 253:return function(t){var r,n=e.getNamespaceDeclarationNode(t);if(d!==e.ModuleKind.AMD){if(!t.importClause)return e.setOriginalNode(e.setTextRange(e.createExpressionStatement(O(t)),t),t);var i=[];n&&!e.isDefaultImport(t)?i.push(e.createVariableDeclaration(e.getSynthesizedClone(n.name),void 0,I(t,O(t)))):(i.push(e.createVariableDeclaration(e.getGeneratedNameForNode(t),void 0,I(t,O(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,_>=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)],_>=2?2:0))));if(R(t)){var a=e.getOriginalNodeId(t);b[a]=B(b[a],t)}else r=B(r,t);return e.singleOrMany(r)}(t);case 252:return function(t){var r;e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),d!==e.ModuleKind.AMD?r=e.hasModifier(t,1)?e.append(r,e.setOriginalNode(e.setTextRange(e.createExpressionStatement(W(t.name,O(t))),t),t)):e.append(r,e.setOriginalNode(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(t.name),void 0,O(t))],_>=2?2:0)),t),t)):e.hasModifier(t,1)&&(r=e.append(r,e.setOriginalNode(e.setTextRange(e.createExpressionStatement(W(e.getExportName(t),e.getLocalName(t))),t),t)));if(R(t)){var n=e.getOriginalNodeId(t);b[n]=j(b[n],t)}else r=j(r,t);return e.singleOrMany(r)}(t);case 259:return function(t){if(!t.moduleSpecifier)return;var r=e.getGeneratedNameForNode(t);if(t.exportClause){var n=[];d!==e.ModuleKind.AMD&&n.push(e.setOriginalNode(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(r,void 0,O(t))])),t),t));for(var a=0,o=t.exportClause.elements;a<o.length;a++){var s=o[a],c=e.createPropertyAccess(r,s.propertyName||s.name);n.push(e.setOriginalNode(e.setTextRange(e.createExpressionStatement(W(e.getExportName(s),c)),s),s))}return e.singleOrMany(n)}return e.setOriginalNode(e.setTextRange(e.createExpressionStatement(function(t,r){return t.getCompilerOptions().importHelpers?e.createCall(e.getUnscopedHelperName("__exportStar"),void 0,[r,e.createIdentifier("exports")]):e.createCall(e.createIdentifier("__export"),void 0,[r])}(i,d!==e.ModuleKind.AMD?O(t):r)),t),t)}(t);case 258:return function(t){if(t.isExportEquals)return;var r,n=t.original;if(n&&R(n)){var i=e.getOriginalNodeId(t);b[i]=V(b[i],e.createIdentifier("default"),e.visitNode(t.expression,F),t,!0)}else r=V(r,e.createIdentifier("default"),e.visitNode(t.expression,F),t,!0);return e.singleOrMany(r)}(t);case 224: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,L(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,F,i));if(R(t)){var l=e.getOriginalNodeId(t);b[l]=K(b[l],t)}else r=K(r,t);return e.singleOrMany(r)}(t);case 243: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,F),void 0,e.visitEachChild(t.body,F,i)),t),t)):e.append(r,e.visitEachChild(t,F,i));if(R(t)){var n=e.getOriginalNodeId(t);b[n]=z(b[n],t)}else r=z(r,t);return e.singleOrMany(r)}(t);case 244: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,F),e.visitNodes(t.members,F)),t),t)):e.append(r,e.visitEachChild(t,F,i));if(R(t)){var n=e.getOriginalNodeId(t);b[n]=z(b[n],t)}else r=z(r,t);return e.singleOrMany(r)}(t);case 321:return function(t){if(R(t)&&224===t.original.kind){var r=e.getOriginalNodeId(t);b[r]=K(b[r],t.original)}return t}(t);case 322:return function(t){var r=e.getOriginalNodeId(t),n=b[r];if(n)return delete b[r],e.append(n,t);return t}(t);default:return e.visitEachChild(t,F,i)}}function F(t){return 524288&t.transformFlags||512&t.transformFlags?e.isImportCall(t)?function(t){var r=e.visitNode(e.firstOrUndefined(t.arguments),F),n=!!(2048&t.transformFlags);switch(c.module){case e.ModuleKind.AMD:return P(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"),w(t,r),P(n,r))}var i=e.createTempVariable(s);return e.createComma(e.createAssignment(i,t),e.createConditional(e.createIdentifier("__syncRequire"),w(i,r),P(i,r)))}(r,n);case e.ModuleKind.CommonJS:default:return w(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 279:if(t(s.initializer))return!0;break;case 280:if(t(s.name))return!0;break;case 281:if(t(s.expression))return!0;break;case 160:case 162:case 163: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(Y(r))>(e.isExportName(r)?1:0);return!1}(t.left))return e.flattenDestructuringAssignment(t,F,i,0,!1,M);return e.visitEachChild(t,F,i)}(t):e.visitEachChild(t,F,i):t}function P(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)],u=e.createBlock([e.createExpressionStatement(e.createCall(e.createIdentifier("require"),void 0,[e.createArrayLiteral([t||e.createOmittedExpression()]),a,o]))]);_>=2?n=e.createArrowFunction(void 0,void 0,s,void 0,void 0,u):(n=e.createFunctionExpression(void 0,void 0,void 0,void 0,s,void 0,u),r&&e.setEmitFlags(n,8));var l=e.createNew(e.createIdentifier("Promise"),void 0,[n]);return c.esModuleInterop?(i.requestEmitHelper(e.importStarHelper),e.createCall(e.createPropertyAccess(l,e.createIdentifier("then")),void 0,[e.getUnscopedHelperName("__importStar")])):l}function w(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 c.esModuleInterop&&(i.requestEmitHelper(e.importStarHelper),o=e.createCall(e.getUnscopedHelperName("__importStar"),void 0,[o])),_>=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 I(t,r){return!c.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 O(t){var r=e.getExternalModuleNameLiteral(t,m,l,u,c),n=[];return r&&n.push(r),e.createCall(e.createIdentifier("require"),void 0,n)}function M(t,r,n){var i=Y(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=W(c,a,n)}return a}return e.createAssignment(t,r)}function L(t){return e.isBindingPattern(t.name)?e.flattenDestructuringAssignment(e.visitNode(t,F),void 0,i,0,!1,M):e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createIdentifier("exports"),t.name),t.name),e.visitNode(t.initializer,F))}function R(t){return 0!=(4194304&e.getEmitFlags(t))}function B(e,t){if(g.exportEquals)return e;var r=t.importClause;if(!r)return e;r.name&&(e=U(e,r));var n=r.namedBindings;if(n)switch(n.kind){case 255:e=U(e,n);break;case 256:for(var i=0,a=n.elements;i<a.length;i++){e=U(e,a[i])}}return e}function j(e,t){return g.exportEquals?e:U(e,t)}function K(e,t){if(g.exportEquals)return e;for(var r=0,n=t.declarationList.declarations;r<n.length;r++){e=J(e,n[r])}return e}function J(t,r){if(g.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=J(t,a))}else e.isGeneratedIdentifier(r.name)||(t=U(t,r));return t}function z(t,r){if(g.exportEquals)return t;e.hasModifier(r,1)&&(t=V(t,e.hasModifier(r,512)?e.createIdentifier("default"):e.getDeclarationName(r),e.getLocalName(r),r));return r.name&&(t=U(t,r)),t}function U(t,r){var n=e.getDeclarationName(r),i=g.exportSpecifiers.get(e.idText(n));if(i)for(var a=0,o=i;a<o.length;a++){var s=o[a];t=V(t,s.name,n,s.name)}return t}function V(t,r,n,i,a){return t=e.append(t,function(t,r,n,i){var a=e.setTextRange(e.createExpressionStatement(W(t,r)),n);e.startOnNewLine(a),i||e.setEmitFlags(a,1536);return a}(r,n,i,a))}function q(){var t;return t=0===_?e.createExpressionStatement(W(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 W(t,r,n){return e.setTextRange(e.createAssignment(e.createPropertyAccess(e.createIdentifier("exports"),e.getSynthesizedClone(t)),r),n)}function G(e){switch(e.kind){case 88:case 83:return}return e}function H(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=u.getReferencedExportContainer(t,e.isExportName(t));if(n&&288===n.kind)return e.setTextRange(e.createPropertyAccess(e.createIdentifier("exports"),e.getSynthesizedClone(t)),t);var i=u.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 Y(t){if(!e.isGeneratedIdentifier(t)){var r=u.getReferencedImportDeclaration(t)||u.getReferencedValueDeclaration(t);if(r)return g&&g.exportedBindings[e.getOriginalNodeId(r)]}}};var r={name:"typescript:export-star",scoped:!0,text:"\n            function __export(m) {\n                for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = 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,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 (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n    result["default"] = 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};'}}(s||(s={})),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 g&&e.id&&g[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 208: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=K(o,G(n))}return n}}return t}(t);case 206: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=W(t.operand);if(r){for(var n=207===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=K(o,G(n))}return 207===t.kind&&(n=45===t.operator?e.createSubtract(G(n),e.createLiteral(1)):e.createAdd(G(n),e.createLiteral(1))),n}}return t}(t);case 218: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 280: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(288===r.kind){var i=e.getOriginalNodeId(r);l=r,_=y[i],d=v[i],g=b[i],p=x[i],g&&delete b[i],u(t,r,n),l=void 0,_=void 0,d=void 0,p=void 0,g=void 0}else u(t,r,n)},t.enableSubstitution(75),t.enableSubstitution(280),t.enableSubstitution(208),t.enableSubstitution(206),t.enableSubstitution(207),t.enableSubstitution(218),t.enableEmitNotification(288);var l,_,d,p,f,m,g,y=[],h=[],v=[],b=[],x=[];return e.chainBundle((function(t){if(t.isDeclarationFile||!(e.isEffectiveExternalModule(t,a)||524288&t.transformFlags))return t;var i=e.getOriginalNodeId(t);l=t,m=t,_=y[i]=e.collectExternalModuleInfo(t,o,a),d=e.createUniqueName("exports"),v[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,T);o.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("__moduleName",void 0,e.createLogicalAnd(p,e.createPropertyAccess(p,"id")))]))),e.visitNode(_.externalHelpersImportDeclaration,T,e.isStatement);var u=e.visitNodes(t.statements,T,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(259===(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(259===(p=d[l]).kind&&p.exportClause)for(var f=0,m=p.exportClause.elements;f<m.length;f++){var g=m[f];o.push(e.createPropertyAssignment(e.createLiteral(e.idText(g.name||g.propertyName)),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 h=D(y);return t.push(h),h.name}(o),m=e.createObjectLiteral([e.createPropertyAssignment("setters",S(d,i)),e.createPropertyAssignment("execute",e.createFunctionExpression(void 0,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),h=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),E=e.tryGetModuleNameFromFile(t,s,a),C=e.createArrayLiteral(e.map(c,(function(e){return e.name}))),k=e.setEmitFlags(e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createExpressionStatement(e.createCall(e.createPropertyAccess(e.createIdentifier("System"),"register"),void 0,E?[E,C,h]:[C,h]))]),t.statements)),1024);a.outFile||a.out||e.moveEmitHelpers(k,u,(function(e){return!e.scoped}));g&&(b[i]=g,g=void 0);return l=void 0,_=void 0,d=void 0,p=void 0,f=void 0,m=void 0,e.aggregateTransformFlags(k)}));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[_],m=e.getLocalNameForExternalImport(f,l);switch(f.kind){case 253:if(!f.importClause)break;case 252:e.Debug.assert(void 0!==m),u.push(e.createExpressionStatement(e.createAssignment(m,c)));break;case 259:if(e.Debug.assert(void 0!==m),f.exportClause){for(var g=[],y=0,h=f.exportClause.elements;y<h.length;y++){var v=h[y];g.push(e.createPropertyAssignment(e.createLiteral(e.idText(v.name)),e.createElementAccess(c,e.createLiteral(e.idText(v.propertyName||v.name)))))}u.push(e.createExpressionStatement(e.createCall(d,void 0,[e.createObjectLiteral(g,!0)])))}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 T(t){switch(t.kind){case 253:return function(t){var r;t.importClause&&i(e.getLocalNameForExternalImport(t,l));if(P(t)){var n=e.getOriginalNodeId(t);h[n]=w(h[n],t)}else r=w(r,t);return e.singleOrMany(r)}(t);case 252: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);h[n]=I(h[n],t)}else r=I(r,t);return e.singleOrMany(r)}(t);case 259:return;case 258:return function(t){if(t.isExportEquals)return;var r=e.visitNode(t.expression,U,e.isExpression),n=t.original;if(!n||!P(n))return j(e.createIdentifier("default"),r,!0);var i=e.getOriginalNodeId(t);h[i]=B(h[i],e.createIdentifier("default"),r,!0)}(t);default:return J(t)}}function E(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)||E(a)}else i(e.getSynthesizedClone(t.name))}function C(t){return 0==(2097152&e.getEmitFlags(t))&&(288===m.kind||0==(3&e.getOriginalNode(t).flags))}function k(r,n){var i=n?N:A;return e.isBindingPattern(r.name)?e.flattenDestructuringAssignment(r,U,t,0,!1,i):r.initializer?i(r.name,e.visitNode(r.initializer,U,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?K(t,G(e.setTextRange(e.createAssignment(t,r),n))):G(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 255:e=R(e,n);break;case 256: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(K(t,r));return e.startOnNewLine(i),n||e.setEmitFlags(i,1536),i}function K(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 J(r){switch(r.kind){case 224:return function(t){if(!C(t.declarationList))return e.visitNode(t,U,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,k(c,i&&!a)):E(c)}if(r&&(n=e.append(n,e.setTextRange(e.createExpressionStatement(e.inlineExpressions(r)),t))),a){var u=e.getOriginalNodeId(t);h[u]=O(h[u],t,i)}else n=O(n,t,!1);return e.singleOrMany(n)}(r);case 243: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,U,e.isParameterDeclaration),void 0,e.visitNode(r.body,U,e.isBlock))):e.append(f,e.visitEachChild(r,U,t)),P(r)){var n=e.getOriginalNodeId(r);h[n]=L(h[n],r)}else f=L(f,r)}(r);case 244: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,U,e.isHeritageClause),e.visitNodes(t.members,U,e.isClassElement)),t))),t)),P(t)){var a=e.getOriginalNodeId(t);h[a]=L(h[a],t)}else r=L(r,t);return e.singleOrMany(r)}(r);case 229:return function(t){var r=m;return m=t,t=e.updateFor(t,t.initializer&&z(t.initializer),e.visitNode(t.condition,U,e.isExpression),e.visitNode(t.incrementor,U,e.isExpression),e.visitNode(t.statement,J,e.isStatement)),m=r,t}(r);case 230:return function(t){var r=m;return m=t,t=e.updateForIn(t,z(t.initializer),e.visitNode(t.expression,U,e.isExpression),e.visitNode(t.statement,J,e.isStatement,e.liftToBlock)),m=r,t}(r);case 231:return function(t){var r=m;return m=t,t=e.updateForOf(t,t.awaitModifier,z(t.initializer),e.visitNode(t.expression,U,e.isExpression),e.visitNode(t.statement,J,e.isStatement,e.liftToBlock)),m=r,t}(r);case 227:return function(t){return e.updateDo(t,e.visitNode(t.statement,J,e.isStatement,e.liftToBlock),e.visitNode(t.expression,U,e.isExpression))}(r);case 228:return function(t){return e.updateWhile(t,e.visitNode(t.expression,U,e.isExpression),e.visitNode(t.statement,J,e.isStatement,e.liftToBlock))}(r);case 237:return function(t){return e.updateLabel(t,t.label,e.visitNode(t.statement,J,e.isStatement,e.liftToBlock))}(r);case 235:return function(t){return e.updateWith(t,e.visitNode(t.expression,U,e.isExpression),e.visitNode(t.statement,J,e.isStatement,e.liftToBlock))}(r);case 236:return function(t){return e.updateSwitch(t,e.visitNode(t.expression,U,e.isExpression),e.visitNode(t.caseBlock,J,e.isCaseBlock))}(r);case 250:return function(t){var r=m;return m=t,t=e.updateCaseBlock(t,e.visitNodes(t.clauses,J,e.isCaseOrDefaultClause)),m=r,t}(r);case 275:return function(t){return e.updateCaseClause(t,e.visitNode(t.expression,U,e.isExpression),e.visitNodes(t.statements,J,e.isStatement))}(r);case 276:case 239:return function(r){return e.visitEachChild(r,J,t)}(r);case 278:return function(t){var r=m;return m=t,t=e.updateCatchClause(t,t.variableDeclaration,e.visitNode(t.block,J,e.isBlock)),m=r,t}(r);case 222:return function(r){var n=m;return m=r,r=e.visitEachChild(r,J,t),m=n,r}(r);case 321:return function(t){if(P(t)&&224===t.original.kind){var r=e.getOriginalNodeId(t),n=e.hasModifier(t.original,1);h[r]=O(h[r],t.original,n)}return t}(r);case 322:return function(t){var r=e.getOriginalNodeId(t),n=h[r];if(n)return delete h[r],e.append(n,t);var i=e.getOriginalNode(t);return e.isModuleOrEnumDeclaration(i)?e.append(R(n,i),t):t}(r);default:return U(r)}}function z(r){if(function(t){return e.isVariableDeclarationList(t)&&C(t)}(r)){for(var n=void 0,i=0,a=r.declarations;i<a.length;i++){var o=a[i];n=e.append(n,k(o,!1)),o.initializer||E(o)}return n?e.inlineExpressions(n):e.createOmittedExpression()}return e.visitEachChild(r,J,t)}function U(r){return e.isDestructuringAssignment(r)?function(r){if(V(r.left))return e.flattenDestructuringAssignment(r,U,t,0,!0);return e.visitEachChild(r,U,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],U)]:[])}(r):512&r.transformFlags||524288&r.transformFlags?e.visitEachChild(r,U,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&&288===r.kind}return!1}function q(e){switch(e.kind){case 88:case 83: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&&288===i.kind&&(r=e.append(r,e.getDeclarationName(n))),r=e.addRange(r,_&&_.exportedBindings[e.getOriginalNodeId(n)])}}return r}function G(t){return void 0===g&&(g=[]),g[e.getNodeId(t)]=!0,t}}}(s||(s={})),function(e){e.transformES2015Module=function(t){var r,n=t.getCompilerOptions(),i=t.onEmitNode,a=t.onSubstituteNode;return t.onEmitNode=function(t,n,a){e.isSourceFile(n)?(r=e.createMap(),i(t,n,a),r=void 0):i(t,n,a)},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(288),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(e){switch(e.kind){case 252:return;case 258:return function(e){return e.isExportEquals?void 0:e}(e)}return e}}}(s||(s={})),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=163===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 165: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 164: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 166: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 160:case 159: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:244===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 243: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 161: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 165:case 170: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 164: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 166: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 160:case 159: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:244===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 243:case 169: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 163:case 162: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 244:r=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 245:r=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 185:r=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 170:case 165:r=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 164:r=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 160:case 159: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:244===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 169:case 243:r=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 246: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=244===t.parent.parent.kind?e.isHeritageClause(t.parent)&&112===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 241===t.kind||190===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:158===t.kind||193===t.kind||157===t.kind||155===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:244===t.parent.kind||155===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:244===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:244===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}(s||(s={})),function(e){function n(t,r){var n=r.text.substring(t.pos,t.end);return e.stringContains(n,"@internal")}function i(t,r){var i=e.getParseTreeNode(t);if(i&&155===i.kind){var a=i.parent.parameters.indexOf(i),o=a>0?i.parent.parameters[a-1]:void 0,s=r.text,c=o?e.concatenate(e.getTrailingCommentRanges(s,e.skipTrivia(s,o.end+1,!1,!0)),e.getLeadingCommentRanges(s,t.pos)):e.getTrailingCommentRanges(s,e.skipTrivia(s,t.pos,!1,!0));return c&&c.length&&n(e.last(c),r)}var u=i&&e.getLeadingCommentRangesOfNode(i,r);return!!e.forEach(u,(function(e){return n(e,r)}))}e.getDeclarationDiagnostics=function(t,r,n){var i=t.getCompilerOptions();return e.transformNodes(r,t,i,n?[n]:t.getSourceFiles(),[o],!1).diagnostics},e.isInternalDeclaration=i;var a=531469;function o(n){var o,u,l,_,d,p,f,m,g,y,h,v=function(){return e.Debug.fail("Diagnostic emitted without context")},b=v,x=!0,D=!1,S=!1,T=!1,E=!1,C=n.getEmitHost(),k={trackSymbol:function(e,t,r){if(262144&e.flags)return;I(N.isSymbolAccessible(e,t,r,!0)),w(N.getTypeReferenceDirectivesForSymbol(e,r))},reportInaccessibleThisError:function(){f&&n.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&&n.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"))},reportPrivateInBaseOfClassExpression:function(t){f&&n.addDiagnostic(e.createDiagnosticForNode(f,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,t))},reportLikelyUnsafeImportRequiredError:function(t){f&&n.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),t))},moduleResolverHost:C,trackReferencedAmbientModule:function(t,r){var n=N.getTypeReferenceDirectivesForSymbol(r,67108863);if(e.length(n))return w(n);var i=e.getSourceFileOfNode(t);g.set(""+e.getOriginalNodeId(i),i)},trackExternalModuleSymbolOfImportTypeNode:function(e){D||(p||(p=[])).push(e)}},N=n.getEmitResolver(),A=n.getCompilerOptions(),F=A.noResolve,P=A.stripInternal;return function(i){if(288===i.kind&&i.isDeclarationFile)return i;if(289===i.kind){D=!0,g=e.createMap(),y=e.createMap();var a=!1,s=e.createBundle(e.map(i.sourceFiles,(function(t){if(!t.isDeclarationFile){if(a=a||t.hasNoDefaultLib,m=t,o=t,l=void 0,d=!1,_=e.createMap(),b=v,T=!1,E=!1,M(t,g),L(t,y),e.isExternalOrCommonJsModule(t)||e.isJsonSourceFile(t)){S=!1,x=!1;var r=e.isSourceFileJS(t)?e.createNodeArray(O(t,!0)):e.visitNodes(t.statements,$);return e.updateSourceFileNode(t,[e.createModuleDeclaration([],[e.createModifier(129)],e.createLiteral(e.getResolvedExternalModuleName(n.getEmitHost(),t)),e.createModuleBlock(e.setTextRange(e.createNodeArray(X(r)),t.statements)))],!0,[],[],!1,[])}x=!0;var i=e.isSourceFileJS(t)?e.createNodeArray(O(t)):e.visitNodes(t.statements,$);return e.updateSourceFileNode(t,X(i),!0,[],[],!1,[])}})),e.mapDefined(i.prepends,(function(t){if(291===t.kind){var r=e.createUnparsedSourceFile(t,"dts",P);return a=a||!!r.hasNoDefaultLib,M(r,g),w(r.typeReferenceDirectives),L(r,y),r}return t})));s.syntheticFileReferences=[],s.syntheticTypeReferences=K(),s.syntheticLibReferences=j(),s.hasNoDefaultLib=a;var c=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(i,C,!0).declarationFilePath)),f=z(s.syntheticFileReferences,c);return g.forEach(f),s}x=!0,T=!1,E=!1,o=i,m=i,b=v,D=!1,S=!1,d=!1,l=void 0,_=e.createMap(),u=void 0,g=M(m,e.createMap()),y=L(m,e.createMap());var k,N=[],F=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(i,C,!0).declarationFilePath)),I=z(N,F);if(e.isSourceFileJS(m))k=e.createNodeArray(O(i)),g.forEach(I),h=e.filter(k,e.isAnyImportSyntax);else{var R=e.visitNodes(i.statements,$);k=e.setTextRange(e.createNodeArray(X(R)),i.statements),g.forEach(I),h=e.filter(k,e.isAnyImportSyntax),e.isExternalModule(i)&&(!S||T&&!E)&&(k=e.setTextRange(e.createNodeArray(t(k,[e.createEmptyExports()])),k))}var B=e.updateSourceFileNode(i,k,!0,N,K(),i.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 K(){return u?e.mapDefined(e.arrayFrom(u.keys()),J):[]}function J(t){if(h)for(var r=0,n=h;r<n.length;r++){var i=n[r];if(e.isImportEqualsDeclaration(i)&&e.isExternalModuleReference(i.moduleReference)){var a=i.moduleReference.expression;if(e.isStringLiteralLike(a)&&a.text===t)return}else if(e.isImportDeclaration(i)&&e.isStringLiteral(i.moduleSpecifier)&&i.moduleSpecifier.text===t)return}return{fileName:t,pos:-1,end:-1}}function z(t,n){return function(a){var o;if(a.isDeclarationFile)o=a.fileName;else{if(D&&e.contains(i.sourceFiles,a))return;var s=e.getOutputPathsFor(a,C,!0);o=s.declarationFilePath||s.jsFilePath||a.fileName}if(o){var c=e.moduleSpecifiers.getModuleSpecifier(r(r({},A),{baseUrl:A.baseUrl&&e.toPath(A.baseUrl,C.getCurrentDirectory(),C.getCanonicalFileName)}),m,e.toPath(n,C.getCurrentDirectory(),C.getCanonicalFileName),e.toPath(o,C.getCurrentDirectory(),C.getCanonicalFileName),C,C.getSourceFiles(),void 0,C.redirectTargetsMap);if(!e.pathIsRelative(c))return void w([c]);var u=e.getRelativePathToDirectoryOrUrl(n,o,C.getCurrentDirectory(),C.getCanonicalFileName,!1);if(e.startsWith(u,"./")&&e.hasExtension(u)&&(u=u.substring(2)),e.startsWith(u,"node_modules/")||-1!==u.indexOf("/node_modules/"))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(t){if(0===t.accessibility){if(t&&t.aliasesToMakeVisible)if(l)for(var r=0,i=t.aliasesToMakeVisible;r<i.length;r++){var a=i[r];e.pushIfUnique(l,a)}else l=t.aliasesToMakeVisible}else{var o=b(t);o&&(o.typeName?n.addDiagnostic(e.createDiagnosticForNode(t.errorNode||o.errorNode,o.diagnosticMessage,e.getTextOfNode(o.typeName),t.errorSymbolName,t.errorModuleName)):n.addDiagnostic(e.createDiagnosticForNode(t.errorNode||o.errorNode,o.diagnosticMessage,t.errorSymbolName,t.errorModuleName)))}}function O(t,r){var n=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 i=N.getDeclarationStatementsForSourceFile(t,a,k,r);return b=n,i}function M(t,r){return F||!e.isUnparsedSource(t)&&e.isSourceFileJS(t)?r:(e.forEach(t.referencedFiles,(function(n){var i=C.getSourceFileFromReference(t,n);i&&r.set(""+e.getOriginalNodeId(i),i)})),r)}function L(t,r){return e.forEach(t.libReferenceDirectives,(function(e){C.getLibFileFromReference(e)&&r.set(e.fileName.toLocaleLowerCase(),!0)})),r}function R(t,r,n){var i;d||(i=b,b=e.createGetSymbolAccessibilityDiagnosticForNode(t));var a=e.updateParameter(t,void 0,function(t,r,n){return e.createModifiersFromModifierFlags(s(t,r,n))}(t,r),t.dotDotDotToken,function t(r){return 75===r.kind?r:189===r.kind?e.updateArrayBindingPattern(r,e.visitNodes(r.elements,n)):e.updateObjectBindingPattern(r,e.visitNodes(r.elements,n));function n(r){return 214===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,K(t,n||t.type,!0),j(t));return d||(b=i),a}function B(t){return function(t){switch(t.kind){case 158:case 157:return!e.hasModifier(t,8);case 155:case 241:return!0}return!1}(t)&&N.isLiteralConstDeclaration(e.getParseTreeNode(t))}function j(t){if(B(t))return N.createLiteralConstValue(e.getParseTreeNode(t),k)}function K(t,r,n){if((n||!e.hasModifier(t,8))&&!B(t)){var i,s=155===t.kind&&(N.isRequiredInitializedParameter(t)||N.isOptionalUninitializedParameterProperty(t));return r&&!s?e.visitNode(r,Q):e.getParseTreeNode(t)?163===t.kind?e.createKeywordTypeNode(124):(f=t.name,d||(i=b,b=e.createGetSymbolAccessibilityDiagnosticForNode(t)),241===t.kind||190===t.kind?c(N.createTypeOfDeclaration(t,o,a,k)):155===t.kind||158===t.kind||157===t.kind?t.initializer?c(N.createTypeOfDeclaration(t,o,a,k,s)||N.createTypeOfExpression(t.initializer,o,a,k)):c(N.createTypeOfDeclaration(t,o,a,k,s)):c(N.createReturnTypeOfSignatureDeclaration(t,o,a,k))):r?e.visitNode(r,Q):e.createKeywordTypeNode(124)}function c(t){return f=void 0,d||(b=i),t||e.createKeywordTypeNode(124)}}function J(t){switch((t=e.getParseTreeNode(t)).kind){case 243:case 248:case 245:case 244:case 246:case 247:return!N.isDeclarationVisible(t);case 241:return!z(t);case 252:case 253:case 259:case 258:return!1}return!1}function z(t){return!e.isOmittedExpression(t)&&(e.isBindingPattern(t.name)?e.some(t.name.elements,z):N.isDeclarationVisible(t))}function U(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,Q)}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 G(e,t){I(N.isEntityNameVisible(e,t)),w(N.getTypeReferenceDirectivesForEntityName(e))}function H(t,r){return e.hasJSDocNodes(t)&&e.hasJSDocNodes(r)&&(t.jsDoc=r.jsDoc),e.setCommentRange(t,e.getCommentRange(r))}function Y(t,r){if(r){if(S=S||248!==t.kind&&187!==t.kind,e.isStringLiteralLike(r))if(D){var i=e.getExternalModuleNameFromDeclaration(n.getEmitHost(),N,t);if(i)return e.createLiteral(i)}else{var a=N.getSymbolOfExternalModuleSpecifier(r);a&&(p||(p=[])).push(a)}return r}}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))&&(T=!0),e.isSourceFile(t.parent)&&(e.isArray(n)?e.some(n,e.isExternalModuleIndicator):e.isExternalModuleIndicator(n))&&(S=!0)),n}}return t}))}function Q(t){if(!re(t)){if(e.isDeclaration(t)){if(J(t))return;if(e.hasDynamicName(t)&&!N.isLateBound(e.getParseTreeNode(t)))return}if(!(e.isFunctionLike(t)&&N.isImplementationOfOverload(t)||e.isSemicolonClassElement(t))){var r;W(t)&&(r=o,o=t);var i=b,a=e.canProduceDiagnostics(t),s=d,c=(172===t.kind||185===t.kind)&&246!==t.parent.kind;if((e.isMethodDeclaration(t)||e.isMethodSignature(t))&&e.hasModifier(t,8)){if(t.symbol&&t.symbol.declarations&&t.symbol.declarations[0]!==t)return;return D(e.createProperty(void 0,ie(t),t.name,void 0,void 0,void 0))}if(a&&!d&&(b=e.createGetSymbolAccessibilityDiagnosticForNode(t)),e.isTypeQueryNode(t)&&G(t.exprName,o),c&&(d=!0),function(e){switch(e.kind){case 165:case 161:case 160:case 162:case 163:case 158:case 157:case 159:case 164:case 166:case 241:case 154:case 215:case 168:case 179:case 169:case 170:case 187:return!0}return!1}(t))switch(t.kind){case 215:(e.isEntityName(t.expression)||e.isEntityNameExpression(t.expression))&&G(t.expression,o);var u=e.visitEachChild(t,Q,n);return D(e.updateExpressionWithTypeArguments(u,e.parenthesizeTypeParameters(u.typeArguments),u.expression));case 168:G(t.typeName,o);u=e.visitEachChild(t,Q,n);return D(e.updateTypeReferenceNode(u,u.typeName,e.parenthesizeTypeParameters(u.typeArguments)));case 165:return D(e.updateConstructSignature(t,q(t,t.typeParameters),U(t,t.parameters),K(t,t.type)));case 161:var l=e.hasModifier(t,8),_=e.createSignatureDeclaration(161,l?void 0:q(t,t.typeParameters),l?void 0:U(t,t.parameters,0),void 0);return _.modifiers=e.createNodeArray(ie(t)),D(_);case 160:var p=e.createSignatureDeclaration(159,q(t,t.typeParameters),U(t,t.parameters),K(t,t.type));return p.name=t.name,p.modifiers=e.createNodeArray(ie(t)),p.questionToken=t.questionToken,D(p);case 162:l=e.hasModifier(t,8);var m=ae(t,N.getAllAccessorDeclarations(t));return D(e.updateGetAccessor(t,void 0,ie(t),t.name,V(t,l),l?void 0:K(t,m),void 0));case 163:return D(e.updateSetAccessor(t,void 0,ie(t),t.name,V(t,e.hasModifier(t,8)),void 0));case 158:return D(e.updateProperty(t,void 0,ie(t),t.name,t.questionToken,e.hasModifier(t,8)?void 0:K(t,t.type),j(t)));case 157:return D(e.updatePropertySignature(t,ie(t),t.name,t.questionToken,e.hasModifier(t,8)?void 0:K(t,t.type),j(t)));case 159:return D(e.updateMethodSignature(t,q(t,t.typeParameters),U(t,t.parameters),K(t,t.type),t.name,t.questionToken));case 164:return D(e.updateCallSignature(t,q(t,t.typeParameters),U(t,t.parameters),K(t,t.type)));case 166:return D(e.updateIndexSignature(t,void 0,ie(t),U(t,t.parameters),e.visitNode(t.type,Q)||e.createKeywordTypeNode(124)));case 241:return e.isBindingPattern(t.name)?te(t.name):(c=!0,d=!0,D(e.updateVariableDeclaration(t,t.name,K(t,t.type),j(t))));case 154:return function(t){return 160===t.parent.kind&&e.hasModifier(t.parent,8)}(t)&&(t.default||t.constraint)?D(e.updateTypeParameterDeclaration(t,t.name,void 0,void 0)):D(e.visitEachChild(t,Q,n));case 179:var g=e.visitNode(t.checkType,Q),y=e.visitNode(t.extendsType,Q),h=o;o=t.trueType;var v=e.visitNode(t.trueType,Q);o=h;var x=e.visitNode(t.falseType,Q);return D(e.updateConditionalTypeNode(t,g,y,v,x));case 169:return D(e.updateFunctionTypeNode(t,e.visitNodes(t.typeParameters,Q),U(t,t.parameters),e.visitNode(t.type,Q)));case 170:return D(e.updateConstructorTypeNode(t,e.visitNodes(t.typeParameters,Q),U(t,t.parameters),e.visitNode(t.type,Q)));case 187:return e.isLiteralImportTypeNode(t)?D(e.updateImportTypeNode(t,e.updateLiteralTypeNode(t.argument,Y(t,t.argument.literal)),t.qualifier,e.visitNodes(t.typeArguments,Q,e.isTypeNode),t.isTypeOf)):D(t);default:e.Debug.assertNever(t,"Attempted to process unhandled node kind: "+e.SyntaxKind[t.kind])}return D(e.visitEachChild(t,Q,n))}}function D(n){return n&&a&&e.hasDynamicName(t)&&function(t){var r;d||(r=b,b=e.createGetSymbolAccessibilityDiagnosticForNodeName(t));f=t.name,e.Debug.assert(N.isLateBound(e.getParseTreeNode(t))),G(t.name.expression,o),d||(b=r);f=void 0}(t),W(t)&&(o=r),a&&!d&&(b=i),c&&(d=s),n===t?n:n&&e.setOriginalNode(H(n,t),t)}}function $(t){if(function(e){switch(e.kind){case 243:case 248:case 252:case 245:case 244:case 246:case 247:case 224:case 253:case 259:case 258:return!0}return!1}(t)&&!re(t)){switch(t.kind){case 259:return e.isSourceFile(t.parent)&&(S=!0),E=!0,e.updateExportDeclaration(t,void 0,t.modifiers,t.exportClause,Y(t,t.moduleSpecifier));case 258:if(e.isSourceFile(t.parent)&&(S=!0),E=!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 n=e.createVariableDeclaration(r,N.createTypeOfExpression(t.expression,t,a,k),void 0);return[e.createVariableStatement(x?[e.createModifier(129)]:[],e.createVariableDeclarationList([n],2)),e.updateExportAssignment(t,t.decorators,t.modifiers,r)]}var i=ee(t);return _.set(""+e.getOriginalNodeId(t),i),t}}function Z(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(r){if(!re(r)){switch(r.kind){case 252:return function(t){if(N.isDeclarationVisible(t)){if(263===t.moduleReference.kind){var r=e.getExternalModuleImportEqualsDeclarationExpression(t);return e.updateImportEqualsDeclaration(t,void 0,t.modifiers,t.name,e.updateExternalModuleReference(t.moduleReference,Y(t,r)))}var n=b;return b=e.createGetSymbolAccessibilityDiagnosticForNode(t),G(t.moduleReference,o),b=n,t}}(r);case 253:return function(t){if(!t.importClause)return e.updateImportDeclaration(t,void 0,t.modifiers,t.importClause,Y(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),Y(t,t.moduleSpecifier));if(255===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),Y(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),Y(t,t.moduleSpecifier)):void 0}(r)}if(!(e.isDeclaration(r)&&J(r)||e.isFunctionLike(r)&&N.isImplementationOfOverload(r))){var n;W(r)&&(n=o,o=r);var i=e.canProduceDiagnostics(r),s=b;i&&(b=e.createGetSymbolAccessibilityDiagnosticForNode(r));var c=x;switch(r.kind){case 246:return ce(e.updateTypeAliasDeclaration(r,void 0,ie(r),r.name,e.visitNodes(r.typeParameters,Q,e.isTypeParameterDeclaration),e.visitNode(r.type,Q,e.isTypeNode)));case 245:return ce(e.updateInterfaceDeclaration(r,void 0,ie(r),r.name,q(r,r.typeParameters),oe(r.heritageClauses),e.visitNodes(r.members,Q)));case 243:var u=ce(e.updateFunctionDeclaration(r,void 0,ie(r),void 0,r.name,q(r,r.typeParameters),U(r,r.parameters),K(r,r.type),void 0));if(u&&N.isExpandoFunctionDeclaration(r)){var l=N.getPropertiesOfContainerFunction(r),d=e.createModuleDeclaration(void 0,void 0,u.name||e.createIdentifier("_default"),e.createModuleBlock([]),16);d.flags^=8,d.parent=o,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,a,k);b=s;var n=e.createVariableDeclaration(e.unescapeLeadingUnderscores(t.escapedName),r,void 0);return e.createVariableStatement(void 0,e.createVariableDeclarationList([n]))}})),f=e.createModuleDeclaration(void 0,ie(r),r.name,e.createModuleBlock(p),16);if(!e.hasModifier(u,512))return[u,f];var m=e.createModifiersFromModifierFlags(-514&e.getModifierFlags(u)|2),g=e.updateFunctionDeclaration(u,void 0,m,void 0,u.name,u.typeParameters,u.parameters,u.type,void 0),y=e.updateModuleDeclaration(f,void 0,m,f.name,f.body),h=e.createExportAssignment(void 0,void 0,!1,f.name);return e.isSourceFile(r.parent)&&(S=!0),E=!0,[g,y,h]}return u;case 248:x=!1;var v=r.body;if(v&&249===v.kind){var D=T,C=E;E=!1,T=!1;var A=X(e.visitNodes(v.statements,$));8388608&r.flags&&(T=!1),e.isGlobalScopeAugmentation(r)||function(t){return e.some(t,ne)}(A)||E||(A=T?e.createNodeArray(t(A,[e.createEmptyExports()])):e.visitNodes(A,Z));var F=e.updateModuleBlock(v,A);x=c,T=D,E=C;var P=ie(r);return ce(e.updateModuleDeclaration(r,void 0,P,e.isExternalModuleAugmentation(r)?Y(r,r.name):r.name,F))}x=c;P=ie(r);x=!1,e.visitNode(v,$);var w=""+e.getOriginalNodeId(v);F=_.get(w);return _.delete(w),ce(e.updateModuleDeclaration(r,void 0,P,r.name,F));case 244:m=e.createNodeArray(ie(r));var I=q(r,r.typeParameters),O=e.getFirstConstructorWithBody(r),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?H(e.createProperty(void 0,ie(t),t.name,t.questionToken,K(t,t.type),j(t)),t):function r(n){var i;for(var 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,K(s,void 0),void 0)))}return i}(t.name)}))),b=L}var R=e.createNodeArray(e.concatenate(M,e.visitNodes(r.members,Q))),B=e.getEffectiveBaseTypeNode(r);if(B&&!e.isEntityNameExpression(B.expression)&&99!==B.expression.kind){var V=r.name?e.unescapeLeadingUnderscores(r.name.escapedText):"default",ee=e.createOptimisticUniqueName(V+"_base");b=function(){return{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:B,typeName:r.name}};var te=e.createVariableDeclaration(ee,N.createTypeOfExpression(B.expression,r,a,k),void 0),ae=e.createVariableStatement(x?[e.createModifier(129)]:[],e.createVariableDeclarationList([te],2)),se=e.createNodeArray(e.map(r.heritageClauses,(function(t){if(89===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,Q),ee)})));return b=r,n}return e.updateHeritageClause(t,e.visitNodes(e.createNodeArray(e.filter(t.types,(function(t){return e.isEntityNameExpression(t.expression)||99===t.expression.kind}))),Q))})));return[ae,ce(e.updateClassDeclaration(r,void 0,m,r.name,I,se,R))]}se=oe(r.heritageClauses);return ce(e.updateClassDeclaration(r,void 0,m,r.name,I,se,R));case 224:return ce(function(t){if(!e.forEach(t.declarationList.declarations,z))return;var r=e.visitNodes(t.declarationList.declarations,Q);if(!e.length(r))return;return e.updateVariableStatement(t,e.createNodeArray(ie(t)),e.updateVariableDeclarationList(t.declarationList,r))}(r));case 247:return ce(e.updateEnumDeclaration(r,void 0,e.createNodeArray(ie(r)),r.name,e.createNodeArray(e.mapDefined(r.members,(function(t){if(!re(t)){var r=N.getConstantValue(t);return H(e.updateEnumMember(t,t.name,void 0!==r?e.createLiteral(r):void 0),t)}})))))}return e.Debug.assertNever(r,"Unhandled top-level node in declaration emit: "+e.SyntaxKind[r.kind])}}function ce(t){return W(r)&&(o=n),i&&(b=s),248===r.kind&&(x=c),t===r?t:t&&e.setOriginalNode(H(t,r),r)}}function te(t){return e.flatten(e.mapDefined(t.elements,(function(t){return function(t){if(214===t.kind)return;if(t.name){if(!z(t))return;return e.isBindingPattern(t.name)?te(t.name):e.createVariableDeclaration(t.name,K(t,void 0),void 0)}}(t)})))}function re(e){return!!P&&!!e&&i(e,m)}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(245===e.kind)return!0;return!1}(t)?2:0,i=288===t.parent.kind;(!i||D&&i&&e.isExternalModule(t.parent))&&(r^=2,n=0);return s(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)||89===t.token&&99===r.expression.kind}))),Q))})),(function(e){return e.types&&!!e.types.length})))}}function s(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 162===e.kind?e.type:e.parameters.length>0?e.parameters[0].type:void 0}e.transformDeclarations=o}(s||(s={})),function(e){var r,n;function i(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<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.ES2015:return e.transformES2015Module;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 a(t){var r=[];return r.push(e.transformDeclarations),e.addRange(r,t&&e.map(t.afterDeclarations,c)),r}function o(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 o(t,e.chainBundle)}function c(t){return o(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"}(r||(r={})),function(e){e[e.Substitution=1]="Substitution",e[e.EmitNotifications=2]="EmitNotifications"}(n||(n={})),e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray},e.getTransformers=function(e,t,r){return{scriptTransformers:i(e,t,r),declarationTransformers:a(t)}},e.noEmitSubstitution=u,e.noEmitNotification=l,e.transformNodes=function(r,n,i,a,o,s){for(var c,_,d,p=new Array(324),f=[],m=[],g=0,y=!1,h=u,v=l,b=0,x=[],D={getCompilerOptions:function(){return i},getEmitResolver:function(){return r},getEmitHost:function(){return n},startLexicalEnvironment:function(){e.Debug.assert(b>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(b<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!y,"Lexical environment is suspended."),f[g]=c,m[g]=_,g++,c=void 0,_=void 0},suspendLexicalEnvironment:function(){e.Debug.assert(b>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(b<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!y,"Lexical environment is already suspended."),y=!0},resumeLexicalEnvironment:function(){e.Debug.assert(b>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(b<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(y,"Lexical environment is not suspended."),y=!1},endLexicalEnvironment:function(){var r;if(e.Debug.assert(b>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(b<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!y,"Lexical environment is suspended."),(c||_)&&(_&&(r=t(_)),c)){var n=e.createVariableStatement(void 0,e.createVariableDeclarationList(c));e.setEmitFlags(n,1048576),r?r.push(n):r=[n]}c=f[--g],_=m[g],0===g&&(f=[],m=[]);return r},hoistVariableDeclaration:function(t){e.Debug.assert(b>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(b<2,"Cannot modify the lexical environment after transformation has completed.");var r=e.setEmitFlags(e.createVariableDeclaration(t),64);c?c.push(r):c=[r]},hoistFunctionDeclaration:function(t){e.Debug.assert(b>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(b<2,"Cannot modify the lexical environment after transformation has completed."),_?_.push(t):_=[t]},requestEmitHelper:function(t){e.Debug.assert(b>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(b<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!t.scoped,"Cannot request a scoped emit helper."),d=e.append(d,t)},readEmitHelpers:function(){e.Debug.assert(b>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(b<2,"Cannot modify the transformation context after transformation has completed.");var t=d;return d=void 0,t},enableSubstitution:function(t){e.Debug.assert(b<2,"Cannot modify the transformation context after transformation has completed."),p[t]|=1},enableEmitNotification:function(t){e.Debug.assert(b<2,"Cannot modify the transformation context after transformation has completed."),p[t]|=2},isSubstitutionEnabled:A,isEmitNotificationEnabled:F,get onSubstituteNode(){return h},set onSubstituteNode(t){e.Debug.assert(b<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),h=t},get onEmitNode(){return v},set onEmitNode(t){e.Debug.assert(b<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),v=t},addDiagnostic:function(e){x.push(e)}},S=0,T=a;S<T.length;S++){var E=T[S];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(E)))}e.performance.mark("beforeTransform");var C=o.map((function(e){return e(D)})),k=function(e){for(var t=0,r=C;t<r.length;t++){e=(0,r[t])(e)}return e};b=1;var N=e.map(a,s?k:function(t){return!t||e.isSourceFile(t)&&t.isDeclarationFile?t:k(t)});return b=2,e.performance.mark("afterTransform"),e.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:N,substituteNode:function(t,r){return e.Debug.assert(b<3,"Cannot substitute a node after the result is disposed."),r&&A(r)&&h(t,r)||r},emitNodeWithNotification:function(t,r,n){e.Debug.assert(b<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),r&&(F(r)?v(t,r,n):n(t,r))},dispose:function(){if(b<3){for(var t=0,r=a;t<r.length;t++){var n=r[t];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(n)))}c=void 0,f=void 0,_=void 0,m=void 0,h=void 0,v=void 0,d=void 0,b=3}},diagnostics:x};function A(t){return 0!=(1&p[t.kind])&&0==(4&e.getEmitFlags(t))}function F(t){return 0!=(2&p[t.kind])||0!=(2&e.getEmitFlags(t))}}}(s||(s={})),function(e){var r,n,i=function(){var e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}(),a={pos:-1,end:-1};function o(t,r,n,i,a,o){void 0===i&&(i=!1);var c=e.isArray(n)?n:e.getSourceFilesToEmit(t,n),l=t.getCompilerOptions();if(l.outFile||l.out){var _=t.getPrependNodes();if(c.length||_.length){var d=e.createBundle(c,_);if(m=r(u(d,t,i),d))return m}}else{if(!a)for(var p=0,f=c;p<f.length;p++){var m,g=f[p];if(m=r(u(g,t,i),g))return m}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(289===t.kind)return c(i,n);var a=e.getOwnEmitOutputFilePath(t.fileName,r,_(t,i)),o=e.isJsonSourceFile(t)&&0===e.comparePaths(t.fileName,a,r.getCurrentDirectory(),!r.useCaseSensitiveFileNames()),s=i.emitDeclarationOnly||o?void 0:a,u=!s||e.isJsonSourceFile(t)?void 0:l(s,i),d=n||e.getEmitDeclarations(i)?e.getDeclarationEmitOutputFilePath(t.fileName,r):void 0;return{jsFilePath:s,sourceMapFilePath:u,declarationFilePath:d,declarationMapPath:d&&e.getAreDeclarationMapsEnabled(i)?d+".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.assertDefined(t.options.configFilePath))}(r),t,n)):t}function p(t,r,n){return e.Debug.assert(!e.fileExtensionIs(t,".d.ts")),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.assertDefined(r.options.configFilePath),n)?void 0:a}}function m(){var t;return{addOutput:function(e){e&&(t||(t=[])).push(e)},getOutputs:function(){return t||e.emptyArray}}}function g(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 h(t,r,n,i,a,s,c){var u,l,_=i.scriptTransformers,d=i.declarationTransformers,p=r.getCompilerOptions(),f=p.sourceMap||p.inlineSourceMap||e.getAreDeclarationMapsEnabled(p)?[]:void 0,m=p.listEmittedFiles?[]:void 0,g=e.createDiagnosticCollection(),y=e.getNewLineCharacter(p,(function(){return r.getNewLine()})),h=e.createTextWriter(y),b=e.performance.createTimer("printTime","beforePrint","afterPrint"),D=b.enter,S=b.exit,T=!1;return D(),o(r,(function(i,o){var s,f=i.jsFilePath,y=i.sourceMapFilePath,h=i.declarationFilePath,b=i.declarationMapPath,D=i.buildInfoPath;D&&o&&e.isBundle(o)&&(s=e.getDirectoryPath(e.getNormalizedAbsolutePath(D,r.getCurrentDirectory())),u={commonSourceDirectory:S(r.getCommonSourceDirectory()),sourceFiles:o.sourceFiles.map((function(t){return S(e.getNormalizedAbsolutePath(t.fileName,r.getCurrentDirectory()))}))});(function(n,i,o,s){if(!n||a||!i)return;if(i&&r.isEmitBlocked(i)||p.noEmit)return void(T=!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,substituteNode:c.substituteNode});e.Debug.assert(1===c.transformed.length,"Should only see one output from the transform"),C(i,o,c.transformed[0],l,p),c.dispose(),u&&(u.js=l.bundleFileInfo)})(o,f,y,S),function(n,i,o,s){if(!n)return;if(!i)return void((a||p.emitDeclarationOnly)&&(T=!0));var _=e.isSourceFile(n)?[n]:n.sourceFiles,f=p.outFile||p.out?[e.createBundle(_,e.isSourceFile(n)?void 0:n.prepends)]:_;a&&!e.getEmitDeclarations(p)&&_.forEach(E);var m=e.transformNodes(t,r,p,f,d,!1);if(e.length(m.diagnostics))for(var y=0,h=m.diagnostics;y<h.length;y++){var v=h[y];g.add(v)}var b=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:m.emitNodeWithNotification,substituteNode:m.substituteNode}),D=!!m.diagnostics&&!!m.diagnostics.length||!!r.isEmitBlocked(i)||!!p.noEmit;if(T=T||D,(!D||c)&&(e.Debug.assert(1===m.transformed.length,"Should only see one output from the decl transform"),C(i,o,m.transformed[0],b,{sourceMap:p.declarationMap,sourceRoot:p.sourceRoot,mapRoot:p.mapRoot,extendedDiagnostics:p.extendedDiagnostics}),c&&288===m.transformed[0].kind)){var S=m.transformed[0];l=S.exportedModulesFromDeclarationEmit}m.dispose(),u&&(u.dts=b.bundleFileInfo)}(o,h,b,S),function(t,i){if(!i||n||T)return;var a=r.getProgramBuildInfo();if(r.isEmitBlocked(i)||p.noEmit)return void(T=!0);e.writeFile(r,g,i,v({bundle:t,program:a,version:e.version}),!1)}(u,D),!T&&m&&(a||(f&&m.push(f),y&&m.push(y),D&&m.push(D)),h&&m.push(h),b&&m.push(b));function S(t){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(s,t,r.getCanonicalFileName))}}),e.getSourceFilesToEmit(r,n),c,s,!n),S(),{emitSkipped:T,diagnostics:g.getDiagnostics(),emittedFiles:m,sourceMaps:f,exportedModulesFromDeclarationEmit:l};function E(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,E)}function C(t,n,i,a,o){var s,c=289===i.kind?i:void 0,u=288===i.kind?i:void 0,l=c?c.sourceFiles:[u];if(function(t,r){return(t.sourceMap||t.inlineSourceMap)&&(288!==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,h,s):a.writeFile(u,h,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.assertDefined(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(_&&(h.isAtStartOfLine()||h.rawWrite(y),h.writeComment("//# sourceMappingURL="+_)),n){var d=s.toString();e.writeFile(r,g,n,d,!1,l)}}else h.writeLine();e.writeFile(r,g,t,h.getText(),!!p.emitBOM,l),h.clear()}}function v(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 n,o,s,c,u,l,_,d,p,f,m,g,y,h,v,b,x,D=r.hasGlobalName,S=r.onEmitNode,T=void 0===S?e.noEmitNotification:S,E=r.substituteNode,C=void 0===E?e.noEmitSubstitution:E,k=r.onBeforeEmitNodeArray,N=r.onAfterEmitNodeArray,A=r.onBeforeEmitToken,F=r.onAfterEmitToken,P=!!t.extendedDiagnostics,w=e.getNewLineCharacter(t),I=e.getEmitModuleKind(t),O=e.createMap(),M=function(e){p.write(e)},L=t.writeBundleFileInfo?{sections:[]}:void 0,R=L?e.Debug.assertDefined(t.relativeToBuildInfo):void 0,B=t.recordInternalSection,j=0,K="text",J=!0,z=-1,U=-1,V=-1,q=-1,W=!1,G=!!t.removeComments,H=e.performance.createTimerIf(P,"commentTime","beforeComment","afterComment"),Y=H.enter,X=H.exit;return pe(),{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 288:return $(r);case 289:return Q(r);case 290:return function(e,t){var r=p;de(t,void 0),le(4,e,void 0),pe(),p=r}(r,ce()),ue()}return Z(t,r,n,ce()),ue()},printList:function(e,t,r){return ee(e,t,r,ce()),ue()},printFile:$,printBundle:Q,writeNode:Z,writeList:ee,writeFile:se,writeBundle:oe,bundleFileInfo:L};function Q(e){return oe(e,ce(),void 0),ue()}function $(e){return se(e,ce(),void 0),ue()}function Z(e,t,r,n){var i=p;de(n,void 0),le(e,t,r),pe(),p=i}function ee(e,t,r,n){var i=p;de(n,void 0),r&&_e(r),gt(a,t,e),pe(),p=i}function te(){return p.getTextPosWithWriteLine?p.getTextPosWithWriteLine():p.getTextPos()}function re(t,r,n){var i=e.lastOrUndefined(L.sections);i&&i.kind===n?i.end=r:L.sections.push({pos:t,end:r,kind:n})}function ne(t){if(B&&L&&n&&(e.isDeclaration(t)||e.isVariableStatement(t))&&e.isInternalDeclaration(t,n)&&"internal"!==K){var r=K;return ae(p.getTextPos()),j=te(),K="internal",r}}function ie(e){e&&(ae(p.getTextPos()),j=te(),K=e)}function ae(e){return j<e&&(re(j,e,K),!0)}function oe(r,n,i){var a;m=!1;var o=p;de(n,i),nt(r),rt(r),Te(r),function(t){$e(!!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++){me(o[a]),At()}}}(r);for(var s=0,c=r.prepends;s<c.length;s++){var u=c[s];At();var l=p.getTextPos(),_=L&&L.sections;if(_&&(L.sections=[]),le(4,u,void 0),L){var d=L.sections;L.sections=_,u.oldFileOfCurrentEmit?(a=L.sections).push.apply(a,d):(d.forEach((function(t){return e.Debug.assert(e.isBundleFileTextLike(t))})),L.sections.push({pos:l,end:p.getTextPos(),kind:"prepend",data:R(u.fileName),texts:d}))}}j=te();for(var f=0,g=r.sourceFiles;f<g.length;f++){var y=g[f];le(0,y,y)}if(L&&r.sourceFiles.length&&ae(p.getTextPos())){var h=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);h&&(L.sources||(L.sources={}),L.sources.prologues=h);var v=function(r){var n;if(I===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=Ee(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);v&&(L.sources||(L.sources={}),L.sources.helpers=v)}pe(),p=o}function se(e,t,r){m=!0;var n=p;de(t,r),nt(e),rt(e),le(0,e,e),pe(),p=n}function ce(){return f||(f=e.createTextWriter(w))}function ue(){var e=f.getText();return f.clear(),e}function le(e,t,r){r&&_e(r),he(e,t)}function _e(e){n=e,h=void 0,v=void 0,e&&kr(e)}function de(r,n){r&&t.omitTrailingSemicolon&&(r=e.getTrailingSemicolonDeferringWriter(r)),g=n,J=!(p=r)||!g}function pe(){o=[],s=[],c=e.createMap(),u=[],l=0,_=[],n=void 0,h=void 0,v=void 0,b=void 0,x=void 0,de(void 0,void 0)}function fe(){return h||(h=e.getLineStarts(n))}function me(e){if(void 0!==e){var t=ne(e),r=he(4,e);return ie(t),r}}function ge(e){if(void 0!==e)return he(2,e)}function ye(e){if(void 0!==e)return he(1,e)}function he(t,r){var n=b,i=x;b=r,x=void 0,ve(0,r)(t,r),e.Debug.assert(b===r);var a=x;return b=n,x=i,a||r}function ve(t,r){switch(t){case 0:if(T!==e.noEmitNotification)return xe;case 1:if(C!==e.noEmitSubstitution)return Se;case 2:if(!G&&288!==r.kind)return sr;case 3:if(!J&&288!==r.kind&&!e.isInJsonFile(r))return Sr;case 4:return De;default:return e.Debug.assertNever(t)}}function be(e,t){return ve(e+1,t)}function xe(t,r){e.Debug.assert(b===r);var n=be(0,r);T(t,r,n),e.Debug.assert(b===r)}function De(t,r){if(e.Debug.assert(b===r||x===r),0===t)return function(t){At();var r=t.statements;if(_r){if(0===r.length||!e.isPrologueDirective(r[0])||e.nodeIsSynthesized(r[0]))return void _r(t,r,Ze)}Ze(t)}(e.cast(r,e.isSourceFile));if(2===t)return Ne(e.cast(r,e.isIdentifier));if(3===t)return function(e){me(e.name),kt(),St("in"),kt(),me(e.constraint)}(e.cast(r,e.isTypeParameterDeclaration));if(5===t)return e.Debug.assertNode(r,e.isEmptyStatement),Pe(!0);if(4===t){if(e.isKeyword(r.kind))return It(r,St);switch(r.kind){case 15:case 16:case 17:return Ce(r);case 290:case 284:return function(e){for(var t=0,r=e.texts;t<r.length;t++){var n=r[t];At(),me(n)}}(r);case 283:return ke(r);case 285:case 286:return o=r,s=te(),ke(o),void(L&&re(s,p.getTextPos(),285===o.kind?"text":"internal"));case 287:return function(t){var r=te();if(ke(t),L){var n=e.clone(t.section);n.pos=r,n.end=p.getTextPos(),L.sections.push(n)}}(r);case 75:return Ne(r);case 152:return function(e){(function(e){75===e.kind?ye(e):me(e)})(e.left),xt("."),me(e.right)}(r);case 153:return function(e){xt("["),ye(e.expression),xt("]")}(r);case 154:return function(e){me(e.name),e.constraint&&(kt(),St("extends"),kt(),me(e.constraint));e.default&&(kt(),Tt("="),kt(),me(e.default))}(r);case 155:return function(e){_t(e,e.decorators),at(e,e.modifiers),me(e.dotDotDotToken),it(e.name,Et),me(e.questionToken),e.parent&&298===e.parent.kind&&!e.name?me(e.type):ot(e.type);st(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 156:return a=r,xt("@"),void ye(a.expression);case 157:return function(e){_t(e,e.decorators),at(e,e.modifiers),it(e.name,Nt),me(e.questionToken),ot(e.type),Dt()}(r);case 158:return function(e){_t(e,e.decorators),at(e,e.modifiers),me(e.name),me(e.questionToken),me(e.exclamationToken),ot(e.type),st(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name.end,e),Dt()}(r);case 159:return function(e){Ht(e),_t(e,e.decorators),at(e,e.modifiers),me(e.name),me(e.questionToken),pt(e,e.typeParameters),ft(e,e.parameters),ot(e.type),Dt(),Yt(e)}(r);case 160:return function(e){_t(e,e.decorators),at(e,e.modifiers),me(e.asteriskToken),me(e.name),me(e.questionToken),Re(e,Be)}(r);case 161:return function(e){at(e,e.modifiers),St("constructor"),Re(e,Be)}(r);case 162:case 163:return function(e){_t(e,e.decorators),at(e,e.modifiers),St(162===e.kind?"get":"set"),kt(),me(e.name),Re(e,Be)}(r);case 164:return function(e){Ht(e),_t(e,e.decorators),at(e,e.modifiers),pt(e,e.typeParameters),ft(e,e.parameters),ot(e.type),Dt(),Yt(e)}(r);case 165:return function(e){Ht(e),_t(e,e.decorators),at(e,e.modifiers),St("new"),kt(),pt(e,e.typeParameters),ft(e,e.parameters),ot(e.type),Dt(),Yt(e)}(r);case 166:return function(e){_t(e,e.decorators),at(e,e.modifiers),t=e,r=e.parameters,gt(t,r,8848),ot(e.type),Dt();var t,r}(r);case 167:return function(e){e.assertsModifier&&(me(e.assertsModifier),kt());me(e.parameterName),e.type&&(kt(),St("is"),kt(),me(e.type))}(r);case 168:return function(e){me(e.typeName),dt(e,e.typeArguments)}(r);case 169:return function(e){Ht(e),pt(e,e.typeParameters),mt(e,e.parameters),kt(),xt("=>"),kt(),me(e.type),Yt(e)}(r);case 298:return function(e){St("function"),ft(e,e.parameters),xt(":"),me(e.type)}(r);case 170:return function(e){Ht(e),St("new"),kt(),pt(e,e.typeParameters),ft(e,e.parameters),kt(),xt("=>"),kt(),me(e.type),Yt(e)}(r);case 171:return function(e){St("typeof"),kt(),me(e.exprName)}(r);case 172:return function(t){xt("{");var r=1&e.getEmitFlags(t)?768:32897;gt(t,t.members,524288|r),xt("}")}(r);case 173:return function(e){me(e.elementType),xt("["),xt("]")}(r);case 174:return function(e){xt("["),gt(e,e.elementTypes,528),xt("]")}(r);case 175:return function(e){me(e.type),xt("?")}(r);case 177:return function(e){gt(e,e.types,516)}(r);case 178:return function(e){gt(e,e.types,520)}(r);case 179:return function(e){me(e.checkType),kt(),St("extends"),kt(),me(e.extendsType),kt(),xt("?"),kt(),me(e.trueType),kt(),xt(":"),kt(),me(e.falseType)}(r);case 180:return function(e){St("infer"),kt(),me(e.typeParameter)}(r);case 181:return function(e){xt("("),me(e.type),xt(")")}(r);case 215:return function(e){ye(e.expression),dt(e,e.typeArguments)}(r);case 182:return void St("this");case 183:return function(e){Ot(e.operator,St),kt(),me(e.type)}(r);case 184:return function(e){me(e.objectType),xt("["),me(e.indexType),xt("]")}(r);case 185:return function(t){var r=e.getEmitFlags(t);xt("{"),1&r?kt():(At(),Ft());t.readonlyToken&&(me(t.readonlyToken),137!==t.readonlyToken.kind&&St("readonly"),kt());xt("["),he(3,t.typeParameter),xt("]"),t.questionToken&&(me(t.questionToken),57!==t.questionToken.kind&&xt("?"));xt(":"),kt(),me(t.type),Dt(),1&r?kt():(At(),Pt());xt("}")}(r);case 186:return function(e){ye(e.literal)}(r);case 187:return function(e){e.isTypeOf&&(St("typeof"),kt());St("import"),xt("("),me(e.argument),xt(")"),e.qualifier&&(xt("."),me(e.qualifier));dt(e,e.typeArguments)}(r);case 293:return void xt("*");case 294:return void xt("?");case 295:return function(e){xt("?"),me(e.type)}(r);case 296:return function(e){xt("!"),me(e.type)}(r);case 297:return function(e){me(e.type),xt("=")}(r);case 176:case 299:return function(e){xt("..."),me(e.type)}(r);case 188:return function(e){xt("{"),gt(e,e.elements,525136),xt("}")}(r);case 189:return function(e){xt("["),gt(e,e.elements,524880),xt("]")}(r);case 190:return function(e){me(e.dotDotDotToken),e.propertyName&&(me(e.propertyName),xt(":"),kt());me(e.name),st(e.initializer,e.name.end,e)}(r);case 220:return function(e){ye(e.expression),me(e.literal)}(r);case 221:return void Dt();case 222:return function(e){Fe(e,!e.multiLine&&Vt(e))}(r);case 224:return function(e){at(e,e.modifiers),me(e.declarationList),Dt()}(r);case 223:return Pe(!1);case 225:return function(t){ye(t.expression),(!e.isJsonSourceFile(n)||e.nodeIsSynthesized(t.expression))&&Dt()}(r);case 226:return function(e){var t=Oe(94,e.pos,St,e);kt(),Oe(20,t,xt,e),ye(e.expression),Oe(21,e.expression.end,xt,e),lt(e,e.thenStatement),e.elseStatement&&(Mt(e),Oe(86,e.thenStatement.end,St,e),226===e.elseStatement.kind?(kt(),me(e.elseStatement)):lt(e,e.elseStatement))}(r);case 227:return function(t){Oe(85,t.pos,St,t),lt(t,t.statement),e.isBlock(t.statement)?kt():Mt(t);we(t,t.statement.end),Dt()}(r);case 228:return function(e){we(e,e.pos),lt(e,e.statement)}(r);case 229:return function(e){var t=Oe(92,e.pos,St,e);kt();var r=Oe(20,t,xt,e);Ie(e.initializer),r=Oe(26,e.initializer?e.initializer.end:r,xt,e),ut(e.condition),r=Oe(26,e.condition?e.condition.end:r,xt,e),ut(e.incrementor),Oe(21,e.incrementor?e.incrementor.end:r,xt,e),lt(e,e.statement)}(r);case 230:return function(e){var t=Oe(92,e.pos,St,e);kt(),Oe(20,t,xt,e),Ie(e.initializer),kt(),Oe(96,e.initializer.end,St,e),kt(),ye(e.expression),Oe(21,e.expression.end,xt,e),lt(e,e.statement)}(r);case 231:return function(e){var t=Oe(92,e.pos,St,e);kt(),function(e){e&&(me(e),kt())}(e.awaitModifier),Oe(20,t,xt,e),Ie(e.initializer),kt(),Oe(151,e.initializer.end,St,e),kt(),ye(e.expression),Oe(21,e.expression.end,xt,e),lt(e,e.statement)}(r);case 232:return function(e){Oe(81,e.pos,St,e),ct(e.label),Dt()}(r);case 233:return function(e){Oe(76,e.pos,St,e),ct(e.label),Dt()}(r);case 234:return function(e){Oe(100,e.pos,St,e),ut(e.expression),Dt()}(r);case 235:return function(e){var t=Oe(111,e.pos,St,e);kt(),Oe(20,t,xt,e),ye(e.expression),Oe(21,e.expression.end,xt,e),lt(e,e.statement)}(r);case 236:return function(e){var t=Oe(102,e.pos,St,e);kt(),Oe(20,t,xt,e),ye(e.expression),Oe(21,e.expression.end,xt,e),kt(),me(e.caseBlock)}(r);case 237:return function(e){me(e.label),Oe(58,e.label.end,xt,e),kt(),me(e.statement)}(r);case 238:return function(e){Oe(104,e.pos,St,e),ut(e.expression),Dt()}(r);case 239:return function(e){Oe(106,e.pos,St,e),kt(),me(e.tryBlock),e.catchClause&&(Mt(e),me(e.catchClause));e.finallyBlock&&(Mt(e),Oe(91,(e.catchClause||e.tryBlock).end,St,e),kt(),me(e.finallyBlock))}(r);case 240:return function(e){wt(82,e.pos,St),Dt()}(r);case 241:return function(e){me(e.name),ot(e.type),st(e.initializer,e.type?e.type.end:e.name.end,e)}(r);case 242:return function(t){St(e.isLet(t)?"let":e.isVarConst(t)?"const":"var"),kt(),gt(t,t.declarations,528)}(r);case 243:return function(e){Me(e)}(r);case 244:return function(e){ze(e)}(r);case 245:return function(e){_t(e,e.decorators),at(e,e.modifiers),St("interface"),kt(),me(e.name),pt(e,e.typeParameters),gt(e,e.heritageClauses,512),kt(),xt("{"),gt(e,e.members,129),xt("}")}(r);case 246:return function(e){_t(e,e.decorators),at(e,e.modifiers),St("type"),kt(),me(e.name),pt(e,e.typeParameters),kt(),xt("="),kt(),me(e.type),Dt()}(r);case 247:return function(e){at(e,e.modifiers),St("enum"),kt(),me(e.name),kt(),xt("{"),gt(e,e.members,145),xt("}")}(r);case 248:return function(e){at(e,e.modifiers),1024&~e.flags&&(St(16&e.flags?"namespace":"module"),kt());me(e.name);var t=e.body;if(!t)return Dt();for(;248===t.kind;)xt("."),me(t.name),t=t.body;kt(),me(t)}(r);case 249:return function(t){Ht(t),e.forEach(t.statements,Qt),Fe(t,Vt(t)),Yt(t)}(r);case 250:return function(e){Oe(18,e.pos,xt,e),gt(e,e.clauses,129),Oe(19,e.clauses.end,xt,e,!0)}(r);case 251:return function(e){var t=Oe(88,e.pos,St,e);kt(),t=Oe(122,t,St,e),kt(),t=Oe(135,t,St,e),kt(),me(e.name),Dt()}(r);case 252:return function(e){at(e,e.modifiers),Oe(95,e.modifiers?e.modifiers.end:e.pos,St,e),kt(),me(e.name),kt(),Oe(62,e.name.end,xt,e),kt(),function(e){75===e.kind?ye(e):me(e)}(e.moduleReference),Dt()}(r);case 253:return function(e){at(e,e.modifiers),Oe(95,e.modifiers?e.modifiers.end:e.pos,St,e),kt(),e.importClause&&(me(e.importClause),kt(),Oe(148,e.importClause.end,St,e),kt());ye(e.moduleSpecifier),Dt()}(r);case 254:return function(e){me(e.name),e.name&&e.namedBindings&&(Oe(27,e.name.end,xt,e),kt());me(e.namedBindings)}(r);case 255:return function(e){var t=Oe(41,e.pos,xt,e);kt(),Oe(122,t,St,e),kt(),me(e.name)}(r);case 256:return function(e){Ue(e)}(r);case 257:return function(e){Ve(e)}(r);case 258:return function(e){var t=Oe(88,e.pos,St,e);kt(),e.isExportEquals?Oe(62,t,Tt,e):Oe(83,t,St,e);kt(),ye(e.expression),Dt()}(r);case 259:return function(e){var t=Oe(88,e.pos,St,e);kt(),e.exportClause?me(e.exportClause):t=Oe(41,t,xt,e);if(e.moduleSpecifier){kt(),Oe(148,e.exportClause?e.exportClause.end:t,St,e),kt(),ye(e.moduleSpecifier)}Dt()}(r);case 260:return function(e){Ue(e)}(r);case 261:return function(e){Ve(e)}(r);case 262:return;case 263:return function(e){St("require"),xt("("),ye(e.expression),xt(")")}(r);case 11:return function(e){p.writeLiteral(e.text)}(r);case 266:case 269:return function(t){xt("<"),e.isJsxOpeningElement(t)&&(qe(t.tagName),dt(t,t.typeArguments),t.attributes.properties&&t.attributes.properties.length>0&&kt(),me(t.attributes));xt(">")}(r);case 267:case 270:return function(t){xt("</"),e.isJsxClosingElement(t)&&qe(t.tagName);xt(">")}(r);case 271:return function(e){me(e.name),function(e,t,r,n){r&&(t(e),n(r))}("=",xt,e.initializer,me)}(r);case 272:return function(e){gt(e,e.properties,262656)}(r);case 273:return function(e){xt("{..."),ye(e.expression),xt("}")}(r);case 274:return function(e){e.expression&&(xt("{"),me(e.dotDotDotToken),ye(e.expression),xt("}"))}(r);case 275:return function(e){Oe(77,e.pos,St,e),kt(),ye(e.expression),We(e,e.statements,e.expression.end)}(r);case 276:return function(e){var t=Oe(83,e.pos,St,e);We(e,e.statements,t)}(r);case 277:return function(e){kt(),Ot(e.token,St),kt(),gt(e,e.types,528)}(r);case 278:return function(e){var t=Oe(78,e.pos,St,e);kt(),e.variableDeclaration&&(Oe(20,t,xt,e),me(e.variableDeclaration),Oe(21,e.variableDeclaration.end,xt,e),kt());me(e.block)}(r);case 279:return function(t){me(t.name),xt(":"),kt();var r=t.initializer;if(hr&&0==(512&e.getEmitFlags(r))){hr(e.getCommentRange(r).pos)}ye(r)}(r);case 280:return function(e){me(e.name),e.objectAssignmentInitializer&&(kt(),xt("="),kt(),ye(e.objectAssignmentInitializer))}(r);case 281:return function(e){e.expression&&(Oe(25,e.pos,xt,e),ye(e.expression))}(r);case 282:return function(e){me(e.name),st(e.initializer,e.name.end,e)}(r);case 310:case 316:return function(e){Ye(e.tagName),Qe(e.typeExpression),kt(),e.isBracketed&&xt("[");me(e.name),e.isBracketed&&xt("]");Xe(e.comment)}(r);case 311:case 313:case 312:case 309:return Ye((i=r).tagName),Qe(i.typeExpression),void Xe(i.comment);case 305:return function(e){Ye(e.tagName),kt(),xt("{"),me(e.class),xt("}"),Xe(e.comment)}(r);case 314:return function(e){Ye(e.tagName),Qe(e.constraint),kt(),gt(e,e.typeParameters,528),Xe(e.comment)}(r);case 315:return function(e){Ye(e.tagName),e.typeExpression&&(292===e.typeExpression.kind?Qe(e.typeExpression):(kt(),xt("{"),M("Object"),e.typeExpression.isArrayType&&(xt("["),xt("]")),xt("}")));e.fullName&&(kt(),me(e.fullName));Xe(e.comment),e.typeExpression&&302===e.typeExpression.kind&&Ge(e.typeExpression)}(r);case 308:return function(e){Ye(e.tagName),e.name&&(kt(),me(e.name));Xe(e.comment),He(e.typeExpression)}(r);case 303:return He(r);case 302:return Ge(r);case 307:case 304:return function(e){Ye(e.tagName),Xe(e.comment)}(r);case 301:return function(e){if(M("/**"),e.comment)for(var t=e.comment.split(/\r\n?|\n/g),r=0,n=t;r<n.length;r++){var i=n[r];At(),kt(),xt("*"),kt(),M(i)}e.tags&&(1!==e.tags.length||313!==e.tags[0].kind||e.comment?gt(e,e.tags,33):(kt(),me(e.tags[0])));kt(),M("*/")}(r)}if(e.isExpression(r))t=1,C!==e.noEmitSubstitution&&(x=r=C(t,r));else if(e.isToken(r))return It(r,xt)}var i,a,o,s;if(1===t)switch(r.kind){case 8:case 9:return function(e){Ce(e)}(r);case 10:case 13:case 14:return Ce(r);case 75:return Ne(r);case 90:case 99:case 101:case 105:case 103:case 95:return void It(r,St);case 191:return function(e){var t=e.elements,r=e.multiLine?65536:0;yt(e,t,8914|r)}(r);case 192:return function(t){e.forEach(t.properties,$t);var r=65536&e.getEmitFlags(t);r&&Ft();var i=t.multiLine?65536:0,a=n.languageVersion>=1&&!e.isJsonSourceFile(n)?64:0;gt(t,t.properties,526226|a|i),r&&Pt()}(r);case 193:return function(t){var r=e.cast(ye(t.expression),e.isExpression),n=e.getDotOrQuestionDotToken(t),i=Ut(t,t.expression,n),a=Ut(t,n,t.name);Rt(i,!1),28===n.kind||!function(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isNumericLiteral(t)){var r=Gt(t,!0);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()||xt(".");Oe(n.kind,t.expression.end,xt,t),Rt(a,!1),me(t.name),Bt(i,a)}(r);case 194:return function(e){ye(e.expression),me(e.questionDotToken),Oe(22,e.expression.end,xt,e),ye(e.argumentExpression),Oe(23,e.argumentExpression.end,xt,e)}(r);case 195:return function(e){ye(e.expression),me(e.questionDotToken),dt(e,e.typeArguments),yt(e,e.arguments,2576)}(r);case 196:return function(e){Oe(98,e.pos,St,e),kt(),ye(e.expression),dt(e,e.typeArguments),yt(e,e.arguments,18960)}(r);case 197:return function(e){ye(e.tag),dt(e,e.typeArguments),kt(),ye(e.template)}(r);case 198:return function(e){xt("<"),me(e.type),xt(">"),ye(e.expression)}(r);case 199:return function(e){var t=Oe(20,e.pos,xt,e);ye(e.expression),Oe(21,e.expression?e.expression.end:t,xt,e)}(r);case 200:return function(e){Zt(e.name),Me(e)}(r);case 201:return function(e){_t(e,e.decorators),at(e,e.modifiers),Re(e,Ae)}(r);case 202:return function(e){Oe(84,e.pos,St,e),kt(),ye(e.expression)}(r);case 203:return function(e){Oe(107,e.pos,St,e),kt(),ye(e.expression)}(r);case 204:return function(e){Oe(109,e.pos,St,e),kt(),ye(e.expression)}(r);case 205:return function(e){Oe(126,e.pos,St,e),kt(),ye(e.expression)}(r);case 206:return function(e){Ot(e.operator,Tt),function(e){var t=e.operand;return 206===t.kind&&(39===e.operator&&(39===t.operator||45===t.operator)||40===e.operator&&(40===t.operator||46===t.operator))}(e)&&kt();ye(e.operand)}(r);case 207:return function(e){ye(e.operand),Ot(e.operator,Tt)}(r);case 208:return function(e){var t=27!==e.operatorToken.kind,r=Ut(e,e.left,e.operatorToken),n=Ut(e,e.operatorToken,e.right);ye(e.left),Rt(r,t),gr(e.operatorToken.pos),It(e.operatorToken,96===e.operatorToken.kind?St:Tt),hr(e.operatorToken.end,!0),Rt(n,!0),ye(e.right),Bt(r,n)}(r);case 209:return function(e){var t=Ut(e,e.condition,e.questionToken),r=Ut(e,e.questionToken,e.whenTrue),n=Ut(e,e.whenTrue,e.colonToken),i=Ut(e,e.colonToken,e.whenFalse);ye(e.condition),Rt(t,!0),me(e.questionToken),Rt(r,!0),ye(e.whenTrue),Bt(t,r),Rt(n,!0),me(e.colonToken),Rt(i,!0),ye(e.whenFalse),Bt(n,i)}(r);case 210:return function(e){me(e.head),gt(e,e.templateSpans,262144)}(r);case 211:return function(e){Oe(120,e.pos,St,e),me(e.asteriskToken),ut(e.expression)}(r);case 212:return function(e){Oe(25,e.pos,xt,e),ye(e.expression)}(r);case 213:return function(e){Zt(e.name),ze(e)}(r);case 214:return;case 216:return function(e){ye(e.expression),e.type&&(kt(),St("as"),kt(),me(e.type))}(r);case 217:return function(e){ye(e.expression),Tt("!")}(r);case 218:return function(e){wt(e.keywordToken,e.pos,xt),xt("."),me(e.name)}(r);case 264:return function(e){me(e.openingElement),gt(e,e.children,262144),me(e.closingElement)}(r);case 265:return function(e){xt("<"),qe(e.tagName),dt(e,e.typeArguments),kt(),me(e.attributes),xt("/>")}(r);case 268:return function(e){me(e.openingFragment),gt(e,e.children,262144),me(e.closingFragment)}(r);case 319:return function(e){ye(e.expression)}(r);case 320:return function(e){yt(e,e.elements,528)}(r)}}function Se(t,r){e.Debug.assert(b===r||x===r),be(1,r)(t,x=C(t,r)),e.Debug.assert(b===r||x===r)}function Te(r){var i=!1,a=289===r.kind?r:void 0;if(!a||I!==e.ModuleKind.None){for(var o=a?a.prepends.length:0,s=a?a.sourceFiles.length+o:1,c=0;c<s;c++){var u=a?c<o?a.prepends[c]:a.sourceFiles[c-o]:r,l=e.isSourceFile(u)?u:e.isUnparsedSource(u)?void 0:n,_=t.noEmitHelpers||!!l&&e.hasRecordedExternalHelpers(l),d=(e.isSourceFile(u)||e.isUnparsedSource(u))&&!m,f=e.isUnparsedSource(u)?u.helpers:Ee(u);if(f)for(var g=0,y=f;g<y.length;g++){var h=y[g];if(h.scoped){if(a)continue}else{if(_)continue;if(d){if(O.get(h.name))continue;O.set(h.name,!0)}}var v=te();"string"==typeof h.text?Lt(h.text):Lt(h.text(or)),L&&L.sections.push({pos:v,end:p.getTextPos(),kind:"emitHelpers",data:h.name}),i=!0}}return i}}function Ee(t){var r=e.getEmitHelpers(t);return r&&e.stableSort(r,e.compareEmitHelpers)}function Ce(r){var n=Gt(r,t.neverAsciiEscape);!t.sourceMap&&!t.inlineSourceMap||10!==r.kind&&!e.isTemplateLiteralKind(r.kind)?function(e){p.writeStringLiteral(e)}(n):function(e){p.writeLiteral(e)}(n)}function ke(e){p.rawWrite(e.parent.text.substring(e.pos,e.end))}function Ne(e){(e.symbol?bt:M)(Wt(e,!1),e.symbol),gt(e,e.typeArguments,53776)}function Ae(e){pt(e,e.typeParameters),mt(e,e.parameters),ot(e.type),kt(),me(e.equalsGreaterThanToken)}function Fe(t,r){Oe(18,t.pos,xt,t);var n=r||1&e.getEmitFlags(t)?768:129;gt(t,t.statements,n),Oe(19,t.statements.end,xt,t,!!(1&n))}function Pe(e){e?xt(";"):Dt()}function we(e,t){var r=Oe(110,t,St,e);kt(),Oe(20,r,xt,e),ye(e.expression),Oe(21,e.expression.end,xt,e)}function Ie(e){void 0!==e&&(242===e.kind?me(e):ye(e))}function Oe(t,r,i,a,o){var s=e.getParseTreeNode(a),c=s&&s.kind===a.kind,u=r;if(c&&(r=e.skipTrivia(n.text,r)),gr&&c&&a.pos!==u){var l=o&&!e.positionsAreOnSameLine(u,r,n);l&&Ft(),gr(u),l&&Pt()}return r=Ot(t,i,r),hr&&c&&a.end!==r&&hr(r,!0),r}function Me(e){_t(e,e.decorators),at(e,e.modifiers),St("function"),me(e.asteriskToken),kt(),ge(e.name),Re(e,Be)}function Le(e,t){je(t)}function Re(t,r){var n=t.body;if(n)if(e.isBlock(n)){var i=65536&e.getEmitFlags(t);i&&Ft(),Ht(t),e.forEach(t.parameters,Qt),Qt(t.body),r(t),T?T(4,n,Le):je(n),Yt(t),i&&Pt()}else r(t),kt(),ye(n);else r(t),Dt()}function Be(e){pt(e,e.typeParameters),ft(e,e.parameters),ot(e.type)}function je(t){kt(),xt("{"),Ft();var r=function(t){if(1&e.getEmitFlags(t))return!0;if(t.multiLine)return!1;if(!e.nodeIsSynthesized(t)&&!e.rangeIsOnSingleLine(t,n))return!1;if(jt(t,t.statements,2)||Jt(t,t.statements,2))return!1;for(var r,i=0,a=t.statements;i<a.length;i++){var o=a[i];if(Kt(r,o,2))return!1;r=o}return!0}(t)?Ke:Je;_r?_r(t,t.statements,r):r(t),Pt(),wt(19,t.statements.end,xt,t)}function Ke(e){Je(e,!0)}function Je(e,t){var r=et(e.statements),n=p.getTextPos();Te(e),0===r&&n===p.getTextPos()&&t?(Pt(),gt(e,e.statements,768),Ft()):gt(e,e.statements,1,r)}function ze(t){e.forEach(t.members,$t),_t(t,t.decorators),at(t,t.modifiers),St("class"),t.name&&(kt(),ge(t.name));var r=65536&e.getEmitFlags(t);r&&Ft(),pt(t,t.typeParameters),gt(t,t.heritageClauses,0),kt(),xt("{"),gt(t,t.members,129),xt("}"),r&&Pt()}function Ue(e){xt("{"),gt(e,e.elements,525136),xt("}")}function Ve(e){e.propertyName&&(me(e.propertyName),kt(),Oe(122,e.propertyName.end,St,e),kt()),me(e.name)}function qe(e){75===e.kind?ye(e):me(e)}function We(t,r,i){var a=163969;1===r.length&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r[0])||e.rangeStartPositionsAreOnSameLine(t,r[0],n))?(wt(58,i,xt,t),kt(),a&=-130):Oe(58,i,xt,t),gt(t,r,a)}function Ge(t){gt(t,e.createNodeArray(t.jsDocPropertyTags),33)}function He(t){t.typeParameters&&gt(t,e.createNodeArray(t.typeParameters),33),t.parameters&&gt(t,e.createNodeArray(t.parameters),33),t.type&&(At(),kt(),xt("*"),kt(),me(t.type))}function Ye(e){xt("@"),me(e)}function Xe(e){e&&(kt(),M(e))}function Qe(e){e&&(kt(),xt("{"),me(e.type),xt("}"))}function $e(e,t,r,i){if(e){var a=p.getTextPos();Ct('/// <reference no-default-lib="true"/>'),L&&L.sections.push({pos:a,end:p.getTextPos(),kind:"no-default-lib"}),At()}if(n&&n.moduleName&&(Ct('/// <amd-module name="'+n.moduleName+'" />'),At()),n&&n.amdDependencies)for(var o=0,s=n.amdDependencies;o<s.length;o++){var c=s[o];c.name?Ct('/// <amd-dependency name="'+c.name+'" path="'+c.path+'" />'):Ct('/// <amd-dependency path="'+c.path+'" />'),At()}for(var u=0,l=t;u<l.length;u++){var _=l[u];a=p.getTextPos();Ct('/// <reference path="'+_.fileName+'" />'),L&&L.sections.push({pos:a,end:p.getTextPos(),kind:"reference",data:_.fileName}),At()}for(var d=0,f=r;d<f.length;d++){_=f[d],a=p.getTextPos();Ct('/// <reference types="'+_.fileName+'" />'),L&&L.sections.push({pos:a,end:p.getTextPos(),kind:"type",data:_.fileName}),At()}for(var m=0,g=i;m<g.length;m++){_=g[m],a=p.getTextPos();Ct('/// <reference lib="'+_.fileName+'" />'),L&&L.sections.push({pos:a,end:p.getTextPos(),kind:"lib",data:_.fileName}),At()}}function Ze(t){var r=t.statements;Ht(t),e.forEach(t.statements,Qt),Te(t);var n=e.findIndex(r,(function(t){return!e.isPrologueDirective(t)}));!function(e){e.isDeclarationFile&&$e(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(t),gt(t,r,1,-1===n?r.length:n),Yt(t)}function et(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,_e(r)),At();var c=p.getTextPos();me(s),i&&L&&L.sections.push({pos:c,end:p.getTextPos(),kind:"prologue",data:s.expression.text}),n&&n.set(s.expression.text,!0)}}return t.length}function tt(e,t){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!t.has(i.data)){At();var a=p.getTextPos();me(i),L&&L.sections.push({pos:a,end:p.getTextPos(),kind:"prologue",data:i.data}),t&&t.set(i.data,!0)}}}function rt(t){if(e.isSourceFile(t))et(t.statements,t);else{for(var r=e.createMap(),n=0,i=t.prepends;n<i.length;n++){tt(i[n].prologues,r)}for(var a=0,o=t.sourceFiles;a<o.length;a++){var s=o[a];et(s.statements,s,r,!0)}_e(void 0)}}function nt(t){if(e.isSourceFile(t)||e.isUnparsedSource(t)){var r=e.getShebang(t.text);if(r)return Ct(r),At(),!0}else{for(var n=0,i=t.prepends;n<i.length;n++){var a=i[n];if(e.Debug.assertNode(a,e.isUnparsedSource),nt(a))return!0}for(var o=0,s=t.sourceFiles;o<s.length;o++){if(nt(s[o]))return!0}}}function it(e,t){if(e){var r=M;M=t,me(e),M=r}}function at(e,t){t&&t.length&&(gt(e,t,262656),kt())}function ot(e){e&&(xt(":"),kt(),me(e))}function st(e,t,r){e&&(kt(),Oe(62,t,Tt,r),kt(),ye(e))}function ct(e){e&&(kt(),me(e))}function ut(e){e&&(kt(),ye(e))}function lt(t,r){e.isBlock(r)||1&e.getEmitFlags(t)?(kt(),me(r)):(At(),Ft(),e.isEmptyStatement(r)?he(5,r):me(r),Pt())}function _t(e,t){gt(e,t,49153)}function dt(e,t){gt(e,t,53776)}function pt(t,r){if(e.isFunctionLike(t)&&t.typeArguments)return dt(t,t.typeArguments);gt(t,r,53776)}function ft(e,t){gt(e,t,2576)}function mt(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)?ft(t,r):gt(t,r,528)}function gt(e,t,r,n,i){vt(me,e,t,r,n,i)}function yt(e,t,r,n,i){vt(ye,e,t,r,n,i)}function ht(e){switch(60&e){case 0:break;case 16:xt(",");break;case 4:kt(),xt("|");break;case 32:kt(),xt("*"),kt();break;case 8:kt(),xt("&")}}function vt(t,r,n,a,o,s){void 0===o&&(o=0),void 0===s&&(s=n?n.length-o:0);var c=void 0===n;if(!(c&&16384&a)){var u=void 0===n||o>=n.length||0===s;if(u&&32768&a)return k&&k(n),void(N&&N(n));if(15360&a&&(xt(function(e){return i[15360&e][0]}(a)),u&&!c&&hr(n.pos,!0)),k&&k(n),u)1&a?At():256&a&&!(524288&a)&&kt();else{var l=0==(262144&a),_=l;jt(r,n,a)?(At(),_=!1):256&a&&kt(),128&a&&Ft();for(var d=void 0,p=void 0,f=!1,m=0;m<s;m++){var g=n[o+m];if(32&a?(At(),ht(a)):d&&(60&a&&d.end!==r.end&&gr(d.end),ht(a),ie(p),Kt(d,g,a)?(0==(131&a)&&(Ft(),f=!0),At(),_=!1):d&&512&a&&kt()),p=ne(g),_){if(hr)hr(e.getCommentRange(g).pos)}else _=l;t(g),f&&(Pt(),f=!1),d=g}var y=64&a&&n.hasTrailingComma;16&a&&y&&xt(","),d&&60&a&&d.end!==r.end&&!(1024&e.getEmitFlags(d))&&gr(d.end),128&a&&Pt(),ie(p),Jt(r,n,a)?At():256&a&&kt()}N&&N(n),15360&a&&(u&&!c&&gr(n.end),xt(function(e){return i[15360&e][1]}(a)))}}function bt(e,t){p.writeSymbol(e,t)}function xt(e){p.writePunctuation(e)}function Dt(){p.writeTrailingSemicolon(";")}function St(e){p.writeKeyword(e)}function Tt(e){p.writeOperator(e)}function Et(e){p.writeParameter(e)}function Ct(e){p.writeComment(e)}function kt(){p.writeSpace(" ")}function Nt(e){p.writeProperty(e)}function At(){p.writeLine()}function Ft(){p.increaseIndent()}function Pt(){p.decreaseIndent()}function wt(t,r,n,i){return J?Ot(t,n,r):function(t,r,n,i,a){if(J||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=Tr(u,c?c.pos:i),0==(128&s)&&i>=0&&Cr(u,i);i=a(r,n,i),c&&(i=c.end);0==(256&s)&&i>=0&&Cr(u,i);return i}(i,t,n,r,Ot)}function It(t,r){A&&A(t),r(e.tokenToString(t.kind)),F&&F(t)}function Ot(t,r,n){var i=e.tokenToString(t);return r(i),n<0?n:n+i.length}function Mt(t){1&e.getEmitFlags(t)?kt():At()}function Lt(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&&(At(),M(s))}}function Rt(e,t){e?(Ft(),At()):t&&kt()}function Bt(e,t){e&&Pt(),t&&Pt()}function jt(t,r,i){if(1&i)return!0;if(2&i){if(65536&i)return!0;var a=r[0];return void 0===a?!e.rangeIsOnSingleLine(t,n):e.positionIsSynthesized(t.pos)||e.nodeIsSynthesized(a)?zt(a,i):!e.rangeStartPositionsAreOnSameLine(t,a,n)}return!1}function Kt(t,r,i){return!!(1&i)||(2&i?void 0!==t&&void 0!==r&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r)?zt(t,i)||zt(r,i):!e.rangeEndIsOnSameLineAsRangeStart(t,r,n)):e.getStartsOnNewLine(r))}function Jt(t,r,i){if(1&i)return 0==(131072&i);if(2&i){if(65536&i)return!0;var a=e.lastOrUndefined(r);return void 0===a?!e.rangeIsOnSingleLine(t,n):e.positionIsSynthesized(t.pos)||e.nodeIsSynthesized(a)?zt(a,i):!e.rangeEndPositionsAreOnSameLine(t,a,n)}return!1}function zt(t,r){if(e.nodeIsSynthesized(t)){var n=e.getStartsOnNewLine(t);return void 0===n?0!=(65536&r):n}return 0!=(65536&r)}function Ut(t,r,i){return!(131072&e.getEmitFlags(t))&&(t=qt(t),r=qt(r),i=qt(i),!!e.getStartsOnNewLine(i)||!(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r)||e.nodeIsSynthesized(i)||e.rangeEndIsOnSameLineAsRangeStart(r,i,n)))}function Vt(t){return 0===t.statements.length&&e.rangeEndIsOnSameLineAsRangeStart(t,t,n)}function qt(t){for(;199===t.kind&&e.nodeIsSynthesized(t);)t=t.expression;return t}function Wt(t,r){return e.isGeneratedIdentifier(t)?er(t):e.isIdentifier(t)&&(e.nodeIsSynthesized(t)||!t.parent||!n||t.parent&&n&&e.getSourceFileOfNode(t)!==e.getOriginalNode(n))?e.idText(t):10===t.kind&&t.textSourceNode?Wt(t.textSourceNode,r):!e.isLiteralExpression(t)||!e.nodeIsSynthesized(t)&&t.parent?e.getSourceTextOfNodeFromSourceFile(n,t,r):t.text}function Gt(t,r){if(10===t.kind&&t.textSourceNode){var i=t.textSourceNode;return e.isIdentifier(i)?r||16777216&e.getEmitFlags(t)?'"'+e.escapeString(Wt(i))+'"':'"'+e.escapeNonAsciiString(Wt(i))+'"':Gt(i,r)}return e.getLiteralText(t,n,r)}function Ht(t){t&&524288&e.getEmitFlags(t)||(u.push(l),l=0,_.push(d))}function Yt(t){t&&524288&e.getEmitFlags(t)||(l=u.pop(),d=_.pop())}function Xt(t){d&&d!==e.lastOrUndefined(_)||(d=e.createMap()),d.set(t,!0)}function Qt(t){if(t)switch(t.kind){case 222:e.forEach(t.statements,Qt);break;case 237:case 235:case 227:case 228:Qt(t.statement);break;case 226:Qt(t.thenStatement),Qt(t.elseStatement);break;case 229:case 231:case 230:Qt(t.initializer),Qt(t.statement);break;case 236:Qt(t.caseBlock);break;case 250:e.forEach(t.clauses,Qt);break;case 275:case 276:e.forEach(t.statements,Qt);break;case 239:Qt(t.tryBlock),Qt(t.catchClause),Qt(t.finallyBlock);break;case 278:Qt(t.variableDeclaration),Qt(t.block);break;case 224:Qt(t.declarationList);break;case 242:e.forEach(t.declarations,Qt);break;case 241:case 155:case 190:case 244:Zt(t.name);break;case 243:Zt(t.name),524288&e.getEmitFlags(t)&&(e.forEach(t.parameters,Qt),Qt(t.body));break;case 188:case 189:e.forEach(t.elements,Qt);break;case 253:Qt(t.importClause);break;case 254:Zt(t.name),Qt(t.namedBindings);break;case 255:Zt(t.name);break;case 256:e.forEach(t.elements,Qt);break;case 257:Zt(t.propertyName||t.name)}}function $t(e){if(e)switch(e.kind){case 279:case 280:case 158:case 160:case 162:case 163:Zt(e.name)}}function Zt(t){t&&(e.isGeneratedIdentifier(t)?er(t):e.isBindingPattern(t)&&Qt(t))}function er(t){if(4==(7&t.autoGenerateFlags))return tr(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 ir(0,!!(8&t.autoGenerateFlags));case 2:return ir(268435456,!!(8&t.autoGenerateFlags));case 3:return ar(e.idText(t),32&t.autoGenerateFlags?nr:rr,!!(16&t.autoGenerateFlags),!!(8&t.autoGenerateFlags))}return e.Debug.fail("Unsupported GeneratedIdentifierKind.")}(t))}function tr(t,r){var n=e.getNodeId(t);return o[n]||(o[n]=function(t,r){switch(t.kind){case 75:return ar(Wt(t),rr,!!(16&r),!!(8&r));case 248:case 247:return function(t){var r=Wt(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:ar(r)}(t);case 253:case 259:return function(t){var r=e.getExternalModuleName(t);return ar(e.isStringLiteral(r)?e.makeIdentifierFromModuleName(r.text):"module")}(t);case 243:case 244:case 258:return ar("default");case 213:return ar("class");case 160:case 162:case 163:return function(t){if(e.isIdentifier(t.name))return tr(t.name);return ir(0)}(t);case 153:return ir(0,!0);default:return ir(0)}}(t,r))}function rr(e){return nr(e)&&!c.has(e)&&!(d&&d.has(e))}function nr(t){return!n||e.isFileLevelUniqueName(n,t,D)}function ir(e,t){if(e&&!(l&e)&&rr(r=268435456===e?"_i":"_n"))return l|=e,t&&Xt(r),r;for(;;){var r,n=268435455&l;if(l++,8!==n&&13!==n)if(rr(r=n<26?"_"+String.fromCharCode(97+n):"_"+(n-26)))return t&&Xt(r),r}}function ar(e,t,r,n){if(void 0===t&&(t=rr),r&&t(e))return n?Xt(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?Xt(a):c.set(a,!0),a;i++}}function or(e){return ar(e,nr,!0)}function sr(t,r){e.Debug.assert(b===r||x===r),Y(),W=!1;var n=e.getEmitFlags(r),i=e.getCommentRange(r),a=i.pos,o=i.end,s=318!==r.kind,c=a<0||0!=(512&n)||11===r.kind,u=o<0||0!=(1024&n)||11===r.kind,l=U,_=V,d=q;(a>0||o>0)&&a!==o&&(c||dr(a,s),(!c||a>=0&&0!=(512&n))&&(U=a),(!u||o>=0&&0!=(1024&n))&&(V=o,242===r.kind&&(q=o))),e.forEach(e.getSyntheticLeadingComments(r),cr),X();var p=be(2,r);2048&n?(G=!0,p(t,r),G=!1):p(t,r),Y(),e.forEach(e.getSyntheticTrailingComments(r),ur),(a>0||o>0)&&a!==o&&(U=l,V=_,q=d,!u&&s&&function(e){xr(e,yr)}(o)),X(),e.Debug.assert(b===r||x===r)}function cr(e){2===e.kind&&p.writeLine(),lr(e),e.hasTrailingNewLine||2===e.kind?p.writeLine():p.writeSpace(" ")}function ur(e){p.isAtStartOfLine()||p.writeSpace(" "),lr(e),e.hasTrailingNewLine&&p.writeLine()}function lr(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,w)}function _r(t,r,i){Y();var a=r.pos,o=r.end,s=e.getEmitFlags(t),c=G||o<0||0!=(1024&s);a<0||0!=(512&s)||function(t){var r=e.emitDetachedComments(n.text,fe(),p,Dr,t,w,G);r&&(v?v.push(r):v=[r])}(r),X(),2048&s&&!G?(G=!0,i(t),G=!1):i(t),Y(),c||(dr(r.end,!0),W&&!p.isAtStartOfLine()&&p.writeLine()),X()}function dr(e,t){W=!1,t?br(e,mr):0===e&&br(e,pr)}function pr(t,r,i,a,o){(function(t,r){return e.isRecognizedTripleSlashComment(n.text,t,r)})(t,r)&&mr(t,r,i,a,o)}function fr(r,n){return!t.onlyPrintJsDocStyle||(e.isJSDocLikeText(r,n)||e.isPinnedComment(r,n))}function mr(t,r,i,a,o){fr(n.text,t)&&(W||(e.emitNewLineBeforeLeadingCommentOfPosition(fe(),p,o,t),W=!0),Er(t),e.writeCommentRange(n.text,fe(),p,t,r,w),Er(r),a?p.writeLine():3===i&&p.writeSpace(" "))}function gr(e){G||-1===e||dr(e,!0)}function yr(t,r,i,a){fr(n.text,t)&&(p.isAtStartOfLine()||p.writeSpace(" "),Er(t),e.writeCommentRange(n.text,fe(),p,t,r,w),Er(r),a&&p.writeLine())}function hr(e,t){G||(Y(),xr(e,t?yr:vr),X())}function vr(t,r,i,a){Er(t),e.writeCommentRange(n.text,fe(),p,t,r,w),Er(r),a?p.writeLine():p.writeSpace(" ")}function br(t,r){!n||-1!==U&&t===U||(function(t){return void 0!==v&&e.last(v).nodePos===t}(t)?function(t){var r=e.last(v).detachedCommentEndPos;v.length-1?v.pop():v=void 0;e.forEachLeadingCommentRange(n.text,r,t,r)}(r):e.forEachLeadingCommentRange(n.text,t,r,t))}function xr(t,r){n&&(-1===V||t!==V&&t!==q)&&e.forEachTrailingCommentRange(n.text,t,r)}function Dr(t,r,i,a,o,s){fr(n.text,a)&&(Er(a),e.writeCommentRange(t,r,i,a,o,s),Er(o))}function Sr(t,r){e.Debug.assert(b===r||x===r);var n=be(3,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&&g&&g.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);318!==r.kind&&0==(16&l)&&o>=0&&Cr(u,Tr(u,o)),64&l?(J=!0,n(t,r),J=!1):n(t,r),318!==r.kind&&0==(32&l)&&s>=0&&Cr(u,s)}e.Debug.assert(b===r||x===r)}function Tr(t,r){return t.skipTrivia?t.skipTrivia(r):e.skipTrivia(t.text,r)}function Er(t){if(!(J||e.positionIsSynthesized(t)||Nr(y))){var r=e.getLineAndCharacterOfPosition(y,t),n=r.line,i=r.character;g.addMapping(p.getLine(),p.getColumn(),z,n,i,void 0)}}function Cr(e,t){if(e!==y){var r=y;kr(e),Er(t),kr(r)}else Er(t)}function kr(e){J||(y=e,Nr(e)||(z=g.addSource(e.fileName),t.inlineSources&&g.setSourceContent(z,e.text)))}function Nr(t){return e.fileExtensionIs(t.fileName,".json")}}e.isBuildInfoFile=function(t){return e.fileExtensionIs(t,".tsbuildinfo")},e.forEachEmittedFile=o,e.getTsBuildInfoEmitOutputFilePath=s,e.getOutputPathsForBundle=c,e.getOutputPathsFor=u,e.getOutputExtension=_,e.getOutputDeclarationFileName=p,e.getAllProjectOutputs=function(e,t){var r=m(),n=r.addOutput,i=r.getOutputs;if(e.options.outFile||e.options.out)g(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=m(),a=i.addOutput,o=i.getOutputs;return t.options.outFile||t.options.out?g(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.assertDefined(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=h,e.getBuildInfoText=v,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},e.emitUsingBuildInfo=function(r,n,i,a){var o=c(r.options,!1),s=o.buildInfoPath,u=o.jsFilePath,l=o.sourceMapFilePath,_=o.declarationFilePath,d=o.declarationMapPath,p=n.readFile(e.Debug.assertDefined(s));if(!p)return s;var f=n.readFile(e.Debug.assertDefined(u));if(!f)return u;var m=l&&n.readFile(l);if(l&&!m||r.options.inlineSourceMap)return l||"inline sourcemap decoding";var g=_&&n.readFile(_);if(_&&!g)return _;var y=d&&n.readFile(d);if(d&&!y||r.options.inlineSourceMap)return d||"inline sourcemap decoding";var x=b(p);if(!x.bundle||!x.bundle.js||g&&!x.bundle.dts)return s;var D=e.getDirectoryPath(e.getNormalizedAbsolutePath(s,n.getCurrentDirectory())),S=e.createInputFiles(f,g,l,m,d,y,u,_,s,x,!0),T=[],E=e.createPrependNodes(r.projectReferences,i,(function(e){return n.readFile(e)})),C=function(t,r,n){var i=t.sourceFiles.map((function(t){var i=e.createNode(288,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.assertDefined(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(225,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,n),k={getPrependNodes:e.memoize((function(){return t(E,[S])})),getCanonicalFileName:n.getCanonicalFileName,getCommonSourceDirectory:function(){return e.getNormalizedAbsolutePath(x.bundle.commonSourceDirectory,D)},getCompilerOptions:function(){return r.options},getCurrentDirectory:function(){return n.getCurrentDirectory()},getNewLine:function(){return n.getNewLine()},getSourceFile:e.returnUndefined,getSourceFileByPath:e.returnUndefined,getSourceFiles:function(){return C},getLibFileFromReference:e.notImplemented,isSourceFileFromExternalLibrary:e.returnFalse,getResolvedProjectReferenceToRedirect:e.returnUndefined,writeFile:function(t,r,n){switch(t){case u:if(f===r)return;break;case l:if(m===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 T.push({name:t,text:v(i),writeByteOrderMark:n});case _:if(g===r)return;break;case d:if(y===r)return;break;default:e.Debug.fail("Unexpected path: "+t)}T.push({name:t,text:r,writeByteOrderMark:n})},isEmitBlocked:e.returnFalse,readFile:function(e){return n.readFile(e)},fileExists:function(e){return n.fileExists(e)},directoryExists:n.directoryExists&&function(e){return n.directoryExists(e)},useCaseSensitiveFileNames:function(){return n.useCaseSensitiveFileNames()},getProgramBuildInfo:e.returnUndefined,getSourceFileFromReference:e.returnUndefined,redirectTargetsMap:e.createMultiMap()};return h(e.notImplementedResolver,k,void 0,e.getTransformers(r.options,a)),T},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"}(r||(r={})),e.createPrinter=x,function(e){e[e.Auto=0]="Auto",e[e.CountMask=268435455]="CountMask",e[e._i=268435456]="_i"}(n||(n={}))}(s||(s={})),function(e){var t;function r(e,t,r,n){return e.watchFile(t,r,n)}function n(e,t,r,n){return e.watchDirectory(t,r,0!=(1&n))}function i(e,r){switch(e){case t.None:return r;case t.TriggerOnly:return s;case t.Verbose:return r===n?o:a}}function a(e,t,r,n,i,a,o,u,l,_,d){l(_+":: Added:: "+c(t,n,a,o,d));var p=s(e,t,r,n,i,a,o,u,l,_,d);return{close:function(){l(_+":: Close:: "+c(t,n,a,o,d)),p.close()}}}function o(t,r,n,i,a,o,u,l,_,d,p){var f=d+":: Added:: "+c(r,i,o,u,p);_(f);var m=e.timestamp(),g=s(t,r,n,i,a,o,u,l,_,d,p),y=e.timestamp()-m;return _("Elapsed:: "+y+"ms "+f),{close:function(){var t=d+":: Close:: "+c(r,i,o,u,p);_(t);var n=e.timestamp();g.close();var a=e.timestamp()-n;_("Elapsed:: "+a+"ms "+t)}}}function s(t,r,n,i,a,o,s,u,l,_,d){return u(t,r,(function(t,u){var p=_+":: Triggered with "+t+" "+(void 0!==u?u:"")+":: "+c(r,i,o,s,d);l(p);var f=e.timestamp();n(t,u,a);var m=e.timestamp()-f;l("Elapsed:: "+m+"ms "+p)}),i)}function c(e,t,r,n,i){return"WatchInfo: "+e+" "+t+" "+(i?i(r,n):void 0===n?r:r+" "+n)}function u(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&&m(i,u(e),!0);return t.writeFile(e,r,n)},addOrDeleteFileOrDirectory:function(e,r){if(s(r))return void g();var n=c(r);if(!n)return;if(!t.directoryExists)return void g();var i=u(e),a={fileExists:t.fileExists(r),directoryExists:t.directoryExists(r)};a.directoryExists||d(n.directories,i)?g():m(n,i,a.fileExists);return a},addOrDeleteFile:function(t,r,n){if(n===e.FileWatcherEventKind.Changed)return;var i=c(r);i&&m(i,u(t),n===e.FileWatcherEventKind.Created)},clearCache:g,realpath:t.realpath&&f}}function o(t){return e.toPath(t,r,a)}function s(t){return i.get(e.ensureTrailingDirectorySeparator(t))}function c(t){return s(e.getDirectoryPath(t))}function u(t){return e.getBaseFileName(e.normalizePath(t))}function l(r,n){var a=s(n=e.ensureTrailingDirectorySeparator(n));if(a)return a;try{return function(r,n){var a={files:e.map(t.readDirectory(r,void 0,void 0,["*.*"]),u)||[],directories:t.getDirectories(r)||[]};return i.set(e.ensureTrailingDirectorySeparator(n),a),a}(r,n)}catch(t){return void e.Debug.assert(!i.has(e.ensureTrailingDirectorySeparator(n)))}}function _(e,t){return a(e)===a(t)}function d(t,r){return e.some(t,(function(e){return _(e,r)}))}function p(t,r,n){if(d(t,r)){if(!n)return e.filterMutate(t,(function(e){return!_(e,r)}))}else if(n)return t.push(r)}function f(e){return t.realpath?t.realpath(e):e}function m(e,t,r){p(e.files,t,r)}function g(){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:u,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(a,o,s){return function(r,n,a,o,s){var c=i(r,o),u=r===t.None?function(e,t,r,n,i){return o(e,t,(function(e,t){return r(e,t,i)}),n)}:c,l=i(r,s);r===t.Verbose&&e.sysLog===e.noop&&(e.sysLog=function(e){return n(e)});return{watchFile:function(e,t,r,i,s,u){return c(e,t,r,i,void 0,s,u,o,n,"FileWatcher",a)},watchFilePath:function(e,t,r,i,s,c,l){return u(e,t,r,i,s,c,l,o,n,"FileWatcher",a)},watchDirectory:function(e,t,r,i,o,c){return l(e,t,r,i,void 0,o,c,s,n,"DirectoryWatcher",a)}}}(a,o,s,r,n)},e.closeFileWatcherOf=u}(s||(s={})),function(e){var n,i=/(^\s*$)|(^\s*\/\/\/?\s*(@ts-ignore)?)/;function a(t,r){var n=e.getDirectoryPath(r),i=e.isRootedDiskPath(t)?t:e.combinePaths(n,t);return e.normalizePath(i)}function o(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 s(e,t){return c(e,t)}function c(t,r,n){void 0===n&&(n=e.sys);var i,a=e.createMap(),o=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames);function s(t){t.length>e.getRootLength(t)&&!function(e){return!!a.has(e)||!!n.directoryExists(e)&&(a.set(e,!0),!0)}(t)&&(s(e.getDirectoryPath(t)),_.createDirectory?_.createDirectory(t):n.createDirectory(t))}function c(){return e.getDirectoryPath(e.normalizePath(n.getExecutingFilePath()))}var u=e.getNewLineCharacter(t,(function(){return n.newLine})),l=n.realpath&&function(e){return n.realpath(e)},_={getSourceFile:function(t,n,i){var a;try{e.performance.mark("beforeIORead"),a=_.readFile(t),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){i&&i(e.message),a=""}return void 0!==a?e.createSourceFile(t,a,n,r):void 0},getDefaultLibLocation:c,getDefaultLibFileName:function(t){return e.combinePaths(c(),e.getDefaultLibFileName(t))},writeFile:function(r,a,o,c){try{e.performance.mark("beforeIOWrite"),s(e.getDirectoryPath(e.normalizePath(r))),e.isWatchSet(t)&&n.createHash&&n.getModifiedTime?function(t,r,a){i||(i=e.createMap());var o=n.createHash(r),s=n.getModifiedTime(t);if(s){var c=i.get(t);if(c&&c.byteOrderMark===a&&c.hash===o&&c.mtime.getTime()===s.getTime())return}n.writeFile(t,r,a);var u=n.getModifiedTime(t)||e.missingFileModifiedTime;i.set(t,{hash:o,byteOrderMark:a,mtime:u})}(r,a,o):n.writeFile(r,a,o),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){c&&c(e.message)}},getCurrentDirectory:e.memoize((function(){return n.getCurrentDirectory()})),useCaseSensitiveFileNames:function(){return n.useCaseSensitiveFileNames},getCanonicalFileName:o,getNewLine:function(){return u},fileExists:function(e){return n.fileExists(e)},readFile:function(e){return n.readFile(e)},trace:function(e){return n.write(e+u)},directoryExists:function(e){return n.directoryExists(e)},getEnvironmentVariable:function(e){return n.getEnvironmentVariable?n.getEnvironmentVariable(e):""},getDirectories:function(e){return n.getDirectories(e)},realpath:l,readDirectory:function(e,t,r,i,a){return n.readDirectory(e,t,r,i,a)},createDirectory:function(e){return n.createDirectory(e)},createHash:e.maybeBind(n,n.createHash)};return _}function u(t,r){var n=e.diagnosticCategoryName(t)+" TS"+t.code+": "+D(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}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=a,e.computeCommonSourceDirectoryOfFilenames=o,e.createCompilerHost=s,e.createCompilerHostWorker=c,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(r,n,i){var a=t(r.getConfigFileParsingDiagnostics(),r.getOptionsDiagnostics(i),r.getSyntacticDiagnostics(n,i),r.getGlobalDiagnostics(i),r.getSemanticDiagnostics(n,i));return e.getEmitDeclarations(r.getCompilerOptions())&&e.addRange(a,r.getDeclarationDiagnostics(n,i)),e.sortAndDeduplicateDiagnostics(a)},e.formatDiagnostics=function(e,t){for(var r="",n=0,i=e;n<i.length;n++){r+=u(i[n],t)}return r},e.formatDiagnostic=u,function(e){e.Grey="",e.Red="",e.Yellow="",e.Blue="",e.Cyan=""}(n=e.ForegroundColorEscapeSequences||(e.ForegroundColorEscapeSequences={}));var l="",_=" ",d="",p="...",m="  ",g="    ";function y(t){switch(t){case e.DiagnosticCategory.Error:return n.Red;case e.DiagnosticCategory.Warning:return n.Yellow;case e.DiagnosticCategory.Suggestion:return e.Debug.fail("Should never get an Info diagnostic on the command line.");case e.DiagnosticCategory.Message:return n.Blue}}function h(e,t){return t+e+d}function v(e,t){for(;e.length<t;)e=" "+e;return e}function b(t,r,n,i,a,o){var s=e.getLineAndCharacterOfPosition(t,r),c=s.line,u=s.character,f=e.getLineAndCharacterOfPosition(t,r+n),m=f.line,g=f.character,y=e.getLineAndCharacterOfPosition(t,t.text.length).line,b=m-c>=4,x=(m+1+"").length;b&&(x=Math.max(p.length,x));for(var D="",S=c;S<=m;S++){D+=o.getNewLine(),b&&c+1<S&&S<m-1&&(D+=i+h(v(p,x),l)+_+o.getNewLine(),S=m-1);var T=e.getPositionOfLineAndCharacter(t,S,0),E=S<y?e.getPositionOfLineAndCharacter(t,S+1,0):t.text.length,C=t.text.slice(T,E);if(C=(C=C.replace(/\s+$/g,"")).replace("\t"," "),D+=i+h(v(S+1+"",x),l)+_,D+=C+o.getNewLine(),D+=i+h(v("",x),l)+_,D+=a,S===c){var k=S===m?g:void 0;D+=C.slice(0,u).replace(/\S/g," "),D+=C.slice(u,k).replace(/./g,"~")}else D+=S===m?C.slice(0,g).replace(/./g,"~"):C.replace(/./g,"~");D+=d}return D}function x(t,r,i,a){void 0===a&&(a=h);var o=e.getLineAndCharacterOfPosition(t,r),s=o.line,c=o.character,u="";return u+=a(i?e.convertToRelativePath(t.fileName,i.getCurrentDirectory(),(function(e){return i.getCanonicalFileName(e)})):t.fileName,n.Cyan),u+=":",u+=a(""+(s+1),n.Yellow),u+=":",u+=a(""+(c+1),n.Yellow)}function D(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+=D(s[o],r,n)}return i}function S(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 T(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.assertDefined(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 E(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 C(t,r){var n=r||t;return e.resolveConfigFileProjectName(n.path)}function k(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 N(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=h,e.formatLocation=x,e.formatDiagnosticsWithColorAndContext=function(t,r){for(var i="",a=0,o=t;a<o.length;a++){var s=o[a];if(s.file)i+=x(_=s.file,d=s.start,r),i+=" - ";if(i+=h(e.diagnosticCategoryName(s),y(s.category)),i+=h(" TS"+s.code+": ",n.Grey),i+=D(s.messageText,r.getNewLine()),s.file&&(i+=r.getNewLine(),i+=b(s.file,s.start,s.length,"",y(s.category),r),s.relatedInformation)){i+=r.getNewLine();for(var c=0,u=s.relatedInformation;c<u.length;c++){var l=u[c],_=l.file,d=l.start,p=l.length,f=l.messageText;_&&(i+=r.getNewLine(),i+=m+x(_,d,r),i+=b(_,d,p,g,n.Cyan,r)),i+=r.getNewLine(),i+=g+D(f,r.getNewLine())}}i+=r.getNewLine()}return i},e.flattenDiagnosticMessageText=D,e.loadWithLocalCache=S,e.inferredTypesContainingFile="__inferred type names__.ts",e.isProgramUptoDate=function(t,r,n,i,a,o,s,c){if(!t||s)return!1;if(t.getRootFileNames().length!==r.length)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(C(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.getConfigFileParsingDiagnostics=function(e){return e.options.configFile?t(e.options.configFile.parseDiagnostics,e.errors):e.errors},e.createProgram=function(n,c,u,l,_){var d,p,m,g,y,h,v,b,x,D=e.isArray(n)?function(e,t,r,n,i){return{rootNames:e,options:t,host:r,oldProgram:n,configFileParsingDiagnostics:i}}(n,c,u,l,_):n,A=D.rootNames,F=D.options,P=D.configFileParsingDiagnostics,w=D.projectReferences,I=D.oldProgram,O=e.createMap(),M={},L={},R=e.createMap(),B=e.createDiagnosticCollection(),j="number"==typeof F.maxNodeModuleJsDepth?F.maxNodeModuleJsDepth:0,K=0,J=e.createMap(),z=e.createMap();e.performance.mark("beforeProgram");var U,V,q,W,G=D.host||s(F),H=T(G),Y=F.noLib,X=e.memoize((function(){return G.getDefaultLibFileName(F)})),Q=G.getDefaultLibLocation?G.getDefaultLibLocation():e.getDirectoryPath(X()),$=e.createDiagnosticCollection(),Z=G.getCurrentDirectory(),ee=e.getSupportedExtensions(F),te=e.getSuppoertedExtensionsWithJsonIfResolveJsonModule(F,ee),re=e.createMap(),ne=G.hasInvalidatedResolution||e.returnFalse;if(G.resolveModuleNames)q=function(t,r,n,i){return G.resolveModuleNames(e.Debug.assertEachDefined(t),r,n,i,F).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{V=e.createModuleResolutionCache(Z,(function(e){return G.getCanonicalFileName(e)}),F);var ie=function(t,r,n){return e.resolveModuleName(t,r,F,G,V,n).resolvedModule};q=function(t,r,n,i){return S(e.Debug.assertEachDefined(t),r,i,ie)}}if(G.resolveTypeReferenceDirectives)W=function(t,r,n){return G.resolveTypeReferenceDirectives(e.Debug.assertEachDefined(t),r,n,F)};else{var ae=function(t,r,n){return e.resolveTypeReferenceDirective(t,r,F,G,n).resolvedTypeReferenceDirective};W=function(t,r,n){return S(e.Debug.assertEachDefined(t),r,n,ae)}}var oe,se,ce,ue,le,_e,de=e.createMap(),pe=e.createMap(),fe=e.createMultiMap(),me=e.createMap(),ge=G.useCaseSensitiveFileNames()?e.createMap():void 0,ye=!!G.useSourceOfProjectReferenceRedirect&&G.useSourceOfProjectReferenceRedirect(),he=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))}))}(I,F);if(2!==(_e=function(){if(!I)return 0;var t=I.getCompilerOptions();if(e.changesAffectModuleResolution(t,F))return I.structureIsReused=0;e.Debug.assert(!(3&I.structureIsReused));var r=I.getRootFileNames();if(!e.arrayIsEqualTo(r,A))return I.structureIsReused=0;if(!e.arrayIsEqualTo(F.types,t.types))return I.structureIsReused=0;if(Et(I.getProjectReferences(),I.getResolvedProjectReferences(),(function(e,t,r){var n=Mt((r?r.commandLine.projectReferences:w)[t]);return e?!n||n.sourceFile!==e.sourceFile:void 0!==n}),(function(t,r){var n=r?Ct(r.sourceFile.path).commandLine.projectReferences:w;return!e.arrayIsEqualTo(t,n,e.projectReferenceIsEqualTo)})))return I.structureIsReused=0;w&&(se=w.map(Mt),G.setResolvedProjectReferenceCallbacks&&G.setResolvedProjectReferenceCallbacks({getSourceOfProjectReferenceRedirect:St,forEachResolvedProjectReference:Dt}));var n=[],i=[];if(I.structureIsReused=2,I.getMissingFilePaths().some((function(e){return G.fileExists(e)})))return I.structureIsReused=0;var a,o=I.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(!(k=G.getSourceFileByPath?G.getSourceFileByPath(l.fileName,l.resolvedPath,F.target,void 0,he):G.getSourceFile(l.fileName,F.target,void 0,he)))return I.structureIsReused=0;e.Debug.assert(!k.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var _=void 0;if(l.redirectInfo){if(k!==l.redirectInfo.unredirected)return I.structureIsReused=0;_=!1,k=l}else if(I.redirectTargetsMap.has(l.path)){if(k!==l)return I.structureIsReused=0;_=!1}else _=k!==l;k.path=l.path,k.originalFileName=l.originalFileName,k.resolvedPath=l.resolvedPath,k.fileName=l.fileName;var d=I.sourceFileToPackageName.get(l.path);if(void 0!==d){var p=s.get(d),f=_?1:0;if(void 0!==p&&1===f||1===p)return I.structureIsReused=0;s.set(d,f)}if(_){if(!e.arrayIsEqualTo(l.libReferenceDirectives,k.libReferenceDirectives,ut))return I.structureIsReused=0;l.hasNoDefaultLib!==k.hasNoDefaultLib&&(I.structureIsReused=1),e.arrayIsEqualTo(l.referencedFiles,k.referencedFiles,ut)||(I.structureIsReused=1),_t(k),e.arrayIsEqualTo(l.imports,k.imports,lt)||(I.structureIsReused=1),e.arrayIsEqualTo(l.moduleAugmentations,k.moduleAugmentations,lt)||(I.structureIsReused=1),(3145728&l.flags)!=(3145728&k.flags)&&(I.structureIsReused=1),e.arrayIsEqualTo(l.typeReferenceDirectives,k.typeReferenceDirectives,ut)||(I.structureIsReused=1),i.push({oldFile:l,newFile:k})}else ne(l.path)&&(I.structureIsReused=1,i.push({oldFile:l,newFile:k}));n.push(k)}if(2!==I.structureIsReused)return I.structureIsReused;for(var g=i.map((function(e){return e.oldFile})),y=0,h=o;y<h.length;y++){var v=h[y];if(!e.contains(g,v))for(var b=0,D=v.ambientModuleNames;b<D.length;b++){var S=D[b];O.set(S,v.fileName)}}for(var T=0,E=i;T<E.length;T++){var C=E[T],k=(l=C.oldFile,C.newFile),P=e.getNormalizedAbsolutePath(k.originalFileName,Z),M=N(k),L=Ue(M,P,k);if(e.hasChangesInResolutions(M,L,l.resolvedModules,e.moduleResolutionIsEqualTo)?(I.structureIsReused=1,k.resolvedModules=e.zipToMap(M,L)):k.resolvedModules=l.resolvedModules,W){var j=e.map(k.typeReferenceDirectives,(function(e){return e.fileName.toLocaleLowerCase()})),K=W(j,P,xt(k.originalFileName));e.hasChangesInResolutions(j,K,l.resolvedTypeReferenceDirectiveNames,e.typeDirectiveIsEqualTo)?(I.structureIsReused=1,k.resolvedTypeReferenceDirectiveNames=e.zipToMap(j,K)):k.resolvedTypeReferenceDirectiveNames=l.resolvedTypeReferenceDirectiveNames}}if(2!==I.structureIsReused)return I.structureIsReused;if(G.hasChangedAutomaticTypeDirectiveNames)return I.structureIsReused=1;oe=I.getMissingFilePaths(),x=I.getRefFileMap();for(var J=0,U=n;J<U.length;J++){var V=(k=U[J]).path;if(yt(k,V,k.resolvedPath),ye){var q=vt(k.fileName);if(q&&!q.commandLine.options.outFile&&!q.commandLine.options.out){var H=bt(q,k.fileName);yt(k,Ke(H),void 0)}}I.isSourceFileFromExternalLibrary(I.getSourceFileByPath(k.resolvedPath))&&z.set(V,!0)}m=n,B=I.getFileProcessingDiagnostics();for(var Y=0,X=i;Y<X.length;Y++){var Q=X[Y];B.reattachFileDiagnostics(Q.newFile)}return R=I.getResolvedTypeReferenceDirectives(),pe=I.sourceFileToPackageName,fe=I.redirectTargetsMap,I.structureIsReused=2}())){if(d=[],p=[],w&&(se||(se=w.map(Mt)),G.setResolvedProjectReferenceCallbacks&&G.setResolvedProjectReferenceCallbacks({getSourceOfProjectReferenceRedirect:St,forEachResolvedProjectReference:Dt}),A.length))for(var ve=0,be=se;ve<be.length;ve++){var xe=be[ve];if(xe){var De=xe.commandLine.options.outFile||xe.commandLine.options.out;if(ye){if(De||e.getEmitModuleKind(xe.commandLine.options)===e.ModuleKind.None)for(var Se=0,Te=xe.commandLine.fileNames;Se<Te.length;Se++){pt(ke=Te[Se],!1,!1,void 0)}}else if(De)pt(e.changeExtension(De,".d.ts"),!1,!1,void 0);else if(e.getEmitModuleKind(xe.commandLine.options)===e.ModuleKind.None)for(var Ee=0,Ce=xe.commandLine.fileNames;Ee<Ce.length;Ee++){var ke=Ce[Ee];e.fileExtensionIs(ke,".d.ts")||pt(e.getOutputDeclarationFileName(ke,xe.commandLine,!G.useCaseSensitiveFileNames()),!1,!1,void 0)}}}e.forEach(A,(function(e){return ct(e,!1,!1)}));var Ne=A.length?e.getAutomaticTypeDirectiveNames(F,G):e.emptyArray;if(Ne.length)for(var Ae=F.configFilePath?e.getDirectoryPath(F.configFilePath):G.getCurrentDirectory(),Fe=e.combinePaths(Ae,e.inferredTypesContainingFile),Pe=W(Ne,Fe),we=0;we<Ne.length;we++)At(Ne[we],Pe[we]);if(A.length&&!Y){var Ie=X();!F.lib&&Ie?ct(Ie,!0,!1):e.forEach(F.lib,(function(t){ct(e.combinePaths(Q,t),!0,!1)}))}oe=e.arrayFrom(e.mapDefinedIterator(me.entries(),(function(e){var t=e[0];return void 0===e[1]?t:void 0}))),m=e.stableSort(d,(function(t,r){return e.compareValues(je(t),je(r))})).concat(p),d=void 0,p=void 0}if(e.Debug.assert(!!oe),I&&G.onReleaseOldSourceFile){for(var Oe=0,Me=I.getSourceFiles();Oe<Me.length;Oe++){var Le=Me[Oe],Re=Qe(Le.resolvedPath);(he||!Re||Le.resolvedPath===Le.path&&Re.resolvedPath!==Le.path)&&G.onReleaseOldSourceFile(Le,I.getCompilerOptions(),!!Qe(Le.path))}I.forEachResolvedProjectReference((function(e,t){e&&!Ct(t)&&G.onReleaseOldSourceFile(e.sourceFile,I.getCompilerOptions(),!1)}))}I=void 0;var Be={getRootFileNames:function(){return A},getSourceFile:Xe,getSourceFileByPath:Qe,getSourceFiles:function(){return m},getMissingFilePaths:function(){return oe},getRefFileMap:function(){return x},getCompilerOptions:function(){return F},getSyntacticDiagnostics:function(e,t){return $e(e,Ze,t)},getOptionsDiagnostics:function(){return e.sortAndDeduplicateDiagnostics(e.concatenate(B.getGlobalDiagnostics(),e.concatenate($.getGlobalDiagnostics(),function(){if(!F.configFile)return e.emptyArray;var t=$.getDiagnostics(F.configFile.fileName);return Dt((function(r){r&&(t=e.concatenate(t,$.getDiagnostics(r.sourceFile.fileName)))})),t}())))},getGlobalDiagnostics:function(){return A.length?e.sortAndDeduplicateDiagnostics(Ge().getGlobalDiagnostics().slice()):e.emptyArray},getSemanticDiagnostics:function(e,t){return $e(e,tt,t)},getSuggestionDiagnostics:function(e,t){return et((function(){return Ge().getSuggestionDiagnostics(e,t)}))},getDeclarationDiagnostics:function(e,t){var r=Be.getCompilerOptions();return!e||r.out||r.outFile?it(e,t):$e(e,st,t)},getTypeChecker:He,getClassifiableNames:function(){if(!b){He(),b=e.createUnderscoreEscapedMap();for(var t=0,r=m;t<r.length;t++){var n=r[t];e.copyEntries(n.classifiableNames,b)}}return b},getDiagnosticsProducingTypeChecker:Ge,getCommonSourceDirectory:ze,emit:function(r,n,i,a,o,s){return et((function(){return function(r,n,i,a,o,s,c){var u=[];if(!c){if(F.noEmit)return{diagnostics:u,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};if(F.noEmitOnError){var l=t(r.getOptionsDiagnostics(a),r.getSyntacticDiagnostics(n,a),r.getGlobalDiagnostics(a),r.getSemanticDiagnostics(n,a));if(0===l.length&&e.getEmitDeclarations(r.getCompilerOptions())&&(u=r.getDeclarationDiagnostics(void 0,a)),l.length>0||u.length>0)return{diagnostics:e.concatenate(l,u),sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}var _=Ge().getEmitResolver(F.outFile||F.out?void 0:n,a);e.performance.mark("beforeEmit");var d=e.emitFiles(_,Ve(i),n,e.getTransformers(F,s,o),o,!1,c);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),d}(Be,r,n,i,a,o,s)}))},getCurrentDirectory:function(){return Z},getNodeCount:function(){return Ge().getNodeCount()},getIdentifierCount:function(){return Ge().getIdentifierCount()},getSymbolCount:function(){return Ge().getSymbolCount()},getTypeCount:function(){return Ge().getTypeCount()},getRelationCacheSizes:function(){return Ge().getRelationCacheSizes()},getFileProcessingDiagnostics:function(){return B},getResolvedTypeReferenceDirectives:function(){return R},isSourceFileFromExternalLibrary:We,isSourceFileDefaultLibrary:function(t){if(t.hasNoDefaultLib)return!0;if(!F.noLib)return!1;var r=G.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return F.lib?e.some(F.lib,(function(n){return r(t.fileName,e.combinePaths(Q,n))})):r(t.fileName,X())},dropDiagnosticsProducingTypeChecker:function(){h=void 0},getSourceFileFromReference:function(e,t){return dt(a(t.fileName,e.fileName),(function(e){return me.get(Ke(e))||void 0}))},getLibFileFromReference:function(t){var r=t.fileName.toLocaleLowerCase(),n=e.libMap.get(r);if(n)return Xe(e.combinePaths(Q,n))},sourceFileToPackageName:pe,redirectTargetsMap:fe,isEmittedFile:function(t){if(F.noEmit)return!1;var r=Ke(t);if(Qe(r))return!1;var n=F.outFile||F.out;if(n)return Gt(r,n)||Gt(r,e.removeFileExtension(n)+".d.ts");if(F.declarationDir&&e.containsPath(F.declarationDir,r,Z,!G.useCaseSensitiveFileNames()))return!0;if(F.outDir)return e.containsPath(F.outDir,r,Z,!G.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf(r,e.supportedJSExtensions)||e.fileExtensionIs(r,".d.ts")){var i=e.removeFileExtension(r);return!!Qe(i+".ts")||!!Qe(i+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return P||e.emptyArray},getResolvedModuleWithFailedLookupLocationsFromCache:function(t,r){return V&&e.resolveModuleNameFromCache(t,r,V)},getProjectReferences:function(){return w},getResolvedProjectReferences:function(){return se},getProjectReferenceRedirect:ht,getResolvedProjectReferenceToRedirect:xt,getResolvedProjectReferenceByPath:Ct,forEachResolvedProjectReference:Dt,isSourceOfProjectReferenceRedirect:Tt,emitBuildInfo:function(t){e.Debug.assert(!F.out&&!F.outFile),e.performance.mark("beforeEmit");var r=e.emitFiles(e.notImplementedResolver,Ve(t),void 0,e.noTransformers,!1,!0);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),r},getProbableSymlinks:Ht};return function(){F.strictPropertyInitialization&&!e.getStrictOptionValue(F,"strictNullChecks")&&Kt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks");F.isolatedModules&&(F.out&&Kt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),F.outFile&&Kt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules"));F.inlineSourceMap&&(F.sourceMap&&Kt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),F.mapRoot&&Kt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap"));F.paths&&void 0===F.baseUrl&&Kt(e.Diagnostics.Option_paths_cannot_be_used_without_specifying_baseUrl_option,"paths");F.composite&&(!1===F.declaration&&Kt(e.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===F.incremental&&Kt(e.Diagnostics.Composite_projects_may_not_disable_incremental_compilation,"declaration"));F.tsBuildInfoFile?e.isIncrementalCompilation(F)||Kt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):!F.incremental||F.outFile||F.out||F.configFilePath||$.add(e.createCompilerDiagnostic(e.Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));if(function(){var t=F.noEmit||F.suppressOutputPathCheck?void 0:e.getTsBuildInfoEmitOutputFilePath(F);Et(w,se,(function(r,n,i){var a=(i?i.commandLine.projectReferences:w)[n],o=i&&i.sourceFile;if(r){var s=r.commandLine.options;if(!s.composite)(i?i.commandLine.fileNames:A).length&&zt(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?G.fileExists(c)||zt(o,n,e.Diagnostics.Output_file_0_from_project_1_does_not_exist,c,a.path):zt(o,n,e.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,a.path)}!i&&t&&t===e.getTsBuildInfoEmitOutputFilePath(s)&&(zt(o,n,e.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,t,a.path),re.set(Ke(t),!0))}else zt(o,n,e.Diagnostics.File_0_not_found,a.path)}))}(),F.composite)for(var t=e.arrayToSet(A,Ke),r=0,n=m;r<n.length;r++){var i=n[r];Je(i)&&!t.has(i.path)&&Lt(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,F.configFilePath||"")}if(F.paths)for(var a in F.paths)if(e.hasProperty(F.paths,a))if(e.hasZeroOrOneAsteriskCharacter(a)||Bt(!0,a,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,a),e.isArray(F.paths[a])){var o=F.paths[a].length;0===o&&Bt(!1,a,e.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,a);for(var s=0;s<o;s++){var c=F.paths[a][s],u=f(c);"string"===u?e.hasZeroOrOneAsteriskCharacter(c)||Rt(a,s,e.Diagnostics.Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character,c,a):Rt(a,s,e.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,c,a,u)}}else Bt(!1,a,e.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,a);F.sourceMap||F.inlineSourceMap||(F.inlineSources&&Kt(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),F.sourceRoot&&Kt(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot"));F.out&&F.outFile&&Kt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile");!F.mapRoot||F.sourceMap||F.declarationMap||Kt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap");F.declarationDir&&(e.getEmitDeclarations(F)||Kt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),(F.out||F.outFile)&&Kt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",F.out?"out":"outFile"));F.declarationMap&&!e.getEmitDeclarations(F)&&Kt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite");F.lib&&F.noLib&&Kt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib");F.noImplicitUseStrict&&e.getStrictOptionValue(F,"alwaysStrict")&&Kt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var l=F.target||0,_=F.outFile||F.out,d=e.find(m,(function(t){return e.isExternalModule(t)&&!t.isDeclarationFile}));if(F.isolatedModules){F.module===e.ModuleKind.None&&l<2&&Kt(e.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target");var p=e.find(m,(function(t){return!e.isExternalModule(t)&&!e.isSourceFileJS(t)&&!t.isDeclarationFile&&6!==t.scriptKind}));if(p){var g=e.getErrorSpanForNode(p,p);$.add(e.createFileDiagnostic(p,g.start,g.length,e.Diagnostics.All_files_must_be_modules_when_the_isolatedModules_flag_is_provided))}}else if(d&&l<2&&F.module===e.ModuleKind.None){g=e.getErrorSpanForNode(d,d.externalModuleIndicator);$.add(e.createFileDiagnostic(d,g.start,g.length,e.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(_&&!F.emitDeclarationOnly)if(F.module&&F.module!==e.ModuleKind.AMD&&F.module!==e.ModuleKind.System)Kt(e.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,F.out?"out":"outFile","module");else if(void 0===F.module&&d){g=e.getErrorSpanForNode(d,d.externalModuleIndicator);$.add(e.createFileDiagnostic(d,g.start,g.length,e.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,F.out?"out":"outFile"))}F.resolveJsonModule&&(e.getEmitModuleResolutionKind(F)!==e.ModuleResolutionKind.NodeJs?Kt(e.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy,"resolveJsonModule"):e.hasJsonModuleEmitEnabled(F)||Kt(e.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module"));if(F.outDir||F.sourceRoot||F.mapRoot){var y=ze();F.outDir&&""===y&&m.some((function(t){return e.getRootLength(t.fileName)>1}))&&Kt(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}F.useDefineForClassFields&&0===l&&Kt(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields");F.checkJs&&!F.allowJs&&$.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"));F.emitDeclarationOnly&&(e.getEmitDeclarations(F)||Kt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),F.noEmit&&Kt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit"));F.emitDecoratorMetadata&&!F.experimentalDecorators&&Kt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators");F.jsxFactory?(F.reactNamespace&&Kt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),e.parseIsolatedEntityName(F.jsxFactory,l)||Jt("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,F.jsxFactory)):F.reactNamespace&&!e.isIdentifierText(F.reactNamespace,l)&&Jt("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,F.reactNamespace);if(!F.noEmit&&!F.suppressOutputPathCheck){var h=Ve(),v=e.createMap();e.forEachEmittedFile(h,(function(e){F.emitDeclarationOnly||b(e.jsFilePath,v),b(e.declarationFilePath,v)}))}function b(t,r){if(t){var n=Ke(t);if(me.has(n)){var i=void 0;F.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),Wt(t,e.createCompilerDiagnosticFromMessageChain(i))}var a=G.useCaseSensitiveFileNames()?n:n.toLocaleLowerCase();r.has(a)?Wt(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"),Be;function je(t){if(e.containsPath(Q,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,wt)}function Je(t){return e.sourceFileMayBeEmitted(t,F,We,xt)&&!Tt(t.fileName)}function ze(){if(void 0===y){var t=e.filter(m,(function(e){return Je(e)}));F.rootDir&&Ot(t,F.rootDir)?y=e.getNormalizedAbsolutePath(F.rootDir,Z):F.composite&&F.configFilePath?Ot(t,y=e.getDirectoryPath(e.normalizeSlashes(F.configFilePath))):(r=t,y=o(e.mapDefined(r,(function(e){return e.isDeclarationFile?void 0:e.fileName})),Z,wt)),y&&y[y.length-1]!==e.directorySeparator&&(y+=e.directorySeparator)}var r;return y}function Ue(t,r,n){if(0===_e&&!n.ambientModuleNames.length)return q(t,r,void 0,xt(n.originalFileName));var i,a,o,s=I&&I.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&&!ne(s.path)){var m=s&&s.resolvedModules.get(_);if(m){e.isTraceEnabled(F,G)&&e.trace(G,e.Diagnostics.Reusing_resolution_of_module_0_to_file_1_from_old_program,_,r),(a||(a=new Array(t.length)))[f]=m,(o||(o=[])).push(_);continue}}var g=!1;e.contains(n.ambientModuleNames,_)?(g=!0,e.isTraceEnabled(F,G)&&e.trace(G,e.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,_,r)):g=v(_),g?(a||(a=new Array(t.length)))[f]=p:(i||(i=[])).push(_)}var y=i&&i.length?q(i,r,o,xt(n.originalFileName)):e.emptyArray;if(!a)return e.Debug.assert(y.length===t.length),y;var h=0;for(f=0;f<a.length;f++)a[f]?a[f]===p&&(a[f]=void 0):(a[f]=y[h],h++);return e.Debug.assert(h===y.length),a;function v(t){var r=e.getResolvedModule(s,t),n=r&&I.getSourceFile(r.resolvedFileName);if(r&&n)return!1;var i=O.get(t);return!!i&&(e.isTraceEnabled(F,G)&&e.trace(G,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,t,i),!0)}}function Ve(t){return r(r({getPrependNodes:qe,getCanonicalFileName:wt,getCommonSourceDirectory:Be.getCommonSourceDirectory,getCompilerOptions:Be.getCompilerOptions,getCurrentDirectory:function(){return Z},getNewLine:function(){return G.getNewLine()},getSourceFile:Be.getSourceFile,getSourceFileByPath:Be.getSourceFileByPath,getSourceFiles:Be.getSourceFiles,getLibFileFromReference:Be.getLibFileFromReference,isSourceFileFromExternalLibrary:We,getResolvedProjectReferenceToRedirect:xt,getProbableSymlinks:Ht,writeFile:t||function(e,t,r,n,i){return G.writeFile(e,t,r,n,i)},isEmitBlocked:Ye,readFile:function(e){return G.readFile(e)},fileExists:function(t){var r=Ke(t);return!!Qe(r)||!e.contains(oe,r)&&G.fileExists(t)}},G.directoryExists?{directoryExists:function(e){return G.directoryExists(e)}}:{}),{useCaseSensitiveFileNames:function(){return G.useCaseSensitiveFileNames()},getProgramBuildInfo:function(){return Be.getProgramBuildInfo&&Be.getProgramBuildInfo()},getSourceFileFromReference:function(e,t){return Be.getSourceFileFromReference(e,t)},redirectTargetsMap:fe})}function qe(){return E(w,(function(e,t){return se[t].commandLine}),(function(e){var t=Ke(e),r=Qe(t);return r?r.text:me.has(t)?void 0:G.readFile(t)}))}function We(e){return!!z.get(e.path)}function Ge(){return h||(h=e.createTypeChecker(Be,!0))}function He(){return v||(v=e.createTypeChecker(Be,!1))}function Ye(e){return re.has(Ke(e))}function Xe(e){return Qe(Ke(e))}function Qe(e){return me.get(e)||void 0}function $e(t,r,n){return t?r(t,n):e.sortAndDeduplicateDiagnostics(e.flatMap(Be.getSourceFiles(),(function(e){return n&&n.throwIfCancellationRequested(),r(e,n)})))}function Ze(t){return e.isSourceFileJS(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=function(t){return et((function(){var r=[],n=t;return i(t),r;function i(t){switch(n.kind){case 155:case 158:case 160:if(n.questionToken===t)return void r.push(s(t,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?"));case 159:case 161:case 162:case 163:case 200:case 243:case 201:case 241:if(n.type===t)return void r.push(s(t,e.Diagnostics.types_can_only_be_used_in_a_ts_file))}switch(t.kind){case 252:return void r.push(s(t,e.Diagnostics.import_can_only_be_used_in_a_ts_file));case 258:if(t.isExportEquals)return void r.push(s(t,e.Diagnostics.export_can_only_be_used_in_a_ts_file));break;case 277:if(112===t.token)return void r.push(s(t,e.Diagnostics.implements_clauses_can_only_be_used_in_a_ts_file));break;case 245:return void r.push(s(t,e.Diagnostics.interface_declarations_can_only_be_used_in_a_ts_file));case 248:return void r.push(s(t,e.Diagnostics.module_declarations_can_only_be_used_in_a_ts_file));case 246:return void r.push(s(t,e.Diagnostics.type_aliases_can_only_be_used_in_a_ts_file));case 247:return void r.push(s(t,e.Diagnostics.enum_declarations_can_only_be_used_in_a_ts_file));case 217:return void r.push(s(t,e.Diagnostics.non_null_assertions_can_only_be_used_in_a_ts_file));case 216:return void r.push(s(t.type,e.Diagnostics.type_assertion_expressions_can_only_be_used_in_a_ts_file));case 198:e.Debug.fail()}var o=n;n=t,e.forEachChild(t,i,a),n=o}function a(t){switch(n.decorators!==t||F.experimentalDecorators||r.push(s(n,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning)),n.kind){case 244:case 213:case 160:case 161:case 162:case 163:case 200:case 243:case 201:if(t===n.typeParameters)return void r.push(o(t,e.Diagnostics.type_parameter_declarations_can_only_be_used_in_a_ts_file));case 224:if(t===n.modifiers)return function(t,n){for(var i=0,a=t;i<a.length;i++){var o=a[i];switch(o.kind){case 80:if(n)continue;case 118:case 116:case 117:case 137:case 129:case 121:r.push(s(o,e.Diagnostics._0_can_only_be_used_in_a_ts_file,e.tokenToString(o.kind)))}}}(n.modifiers,224===n.kind);break;case 158:if(t===n.modifiers){for(var a=0,c=t;a<c.length;a++){var u=c[a];119!==u.kind&&r.push(s(u,e.Diagnostics._0_can_only_be_used_in_a_ts_file,e.tokenToString(u.kind)))}return}break;case 155:if(t===n.modifiers)return void r.push(o(t,e.Diagnostics.parameter_modifiers_can_only_be_used_in_a_ts_file));break;case 195:case 196:case 215:case 265:case 266:case 197:if(t===n.typeArguments)return void r.push(o(t,e.Diagnostics.type_arguments_can_only_be_used_in_a_ts_file))}for(var l=0,_=t;l<_.length;l++){i(_[l])}}function o(r,n,i,a,o){var s=r.pos;return e.createFileDiagnostic(t,s,r.end-s,n,i,a,o)}function s(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(t,r,n,i,a,o)}}))}(t)),e.concatenate(t.additionalSyntacticDiagnostics,t.parseDiagnostics)):t.parseDiagnostics}function et(t){try{return t()}catch(t){throw t instanceof e.OperationCanceledException&&(v=void 0,h=void 0),t}}function tt(e,t){return ot(e,t,M,rt)}function rt(t,r){return et((function(){if(e.skipTypeChecking(t,F,Be))return e.emptyArray;var n=Ge();e.Debug.assert(!!t.bindDiagnostics);for(var i,a=e.isCheckJsEnabledForFile(t,F),o=!(!!t.checkJsDirective&&!1===t.checkJsDirective.enabled)&&(3===t.scriptKind||4===t.scriptKind||5===t.scriptKind||a||7===t.scriptKind),s=0,c=[o?t.bindDiagnostics:e.emptyArray,o?n.getDiagnostics(t,r):e.emptyArray,B.getDiagnostics(t.fileName),$.getDiagnostics(t.fileName),a?t.jsDocDiagnostics:void 0];s<c.length;s++){var u=c[s];if(u)for(var l=0,_=u;l<_.length;l++){var d=_[l];nt(d)&&(i=e.append(i,d))}}return i}))}function nt(t){var r=t.file,n=t.start;if(r)for(var a=e.getLineStarts(r),o=e.computeLineAndCharacterOfPosition(a,n).line;o>0;){var s=r.text.slice(a[o-1],a[o]),c=i.exec(s);if(!c)return!0;if(c[3])return!1;o--}return!0}function it(e,t){return ot(e,t,L,at)}function at(t,r){return et((function(){var n=Ge().getEmitResolver(t,r);return e.getDeclarationDiagnostics(Ve(e.noop),n,t)}))}function ot(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)||e.emptyArray;return t?(n.perFile||(n.perFile=e.createMap()),n.perFile.set(t.path,o)):n.allDiagnostics=o,o}function st(e,t){return e.isDeclarationFile?[]:it(e,t)}function ct(t,r,n){pt(e.normalizePath(t),r,n,void 0)}function ut(e,t){return e.fileName===t.fileName}function lt(e,t){return 75===e.kind?75===t.kind&&e.escapedText===t.escapedText:10===t.kind&&e.text===t.text}function _t(t){if(!t.imports){var r,n,i,a=e.isSourceFileJS(t),o=e.isExternalModule(t);if(F.importHelpers&&(F.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 dt(t,r,n,i){if(e.hasExtension(t)){if(!F.allowNonTsExtensions&&!e.forEach(te,(function(r){return e.fileExtensionIs(G.getCanonicalFileName(t),r)})))return void(n&&n(e.Diagnostics.File_0_has_unsupported_extension_The_only_supported_extensions_are_1,t,"'"+ee.join("', '")+"'"));var a=r(t);if(n)if(a)i&&G.getCanonicalFileName(t)===G.getCanonicalFileName(i.fileName)&&n(e.Diagnostics.A_file_cannot_have_a_reference_to_itself);else{var o=ht(t);o?n(e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,o,t):n(e.Diagnostics.File_0_not_found,t)}return a}var s=F.allowNonTsExtensions&&r(t);if(s)return s;if(!n||!F.allowNonTsExtensions){var c=e.forEach(ee,(function(e){return r(t+e)}));return n&&!c&&n(e.Diagnostics.File_0_not_found,t+".ts"),c}n(e.Diagnostics.File_0_not_found,t)}function pt(e,r,n,i,a){dt(e,(function(e){return mt(e,Ke(e),r,n,a,i)}),(function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return B.add(Pt.apply(void 0,t([a,e],r)))}),a&&a.file)}function ft(t,r,n){B.add(Pt(n,e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,t,r))}function mt(t,r,n,i,a,o){if(ye){var s=St(t);if(!s&&G.realpath&&F.preserveSymlinks&&e.isDeclarationFileName(t)&&e.stringContains(t,e.nodeModulesPathPart)){var c=G.realpath(t);c!==t&&(s=St(c))}if(s){var u=e.isString(s)?mt(s,Ke(s),n,i,a,o):void 0;return u&&yt(u,r,void 0),u}}var l,_=t;if(me.has(r)){var f=me.get(r);if(f&&F.forceConsistentCasingInFileNames){var m=t,g=f.fileName;Ke(g)!==Ke(m)&&(m=ht(t)||t),e.getNormalizedAbsolutePathWithoutRoot(g,Z)!==e.getNormalizedAbsolutePathWithoutRoot(m,Z)&&ft(m,g,a)}return f&&z.get(f.path)&&0===K?(z.set(f.path,!1),F.noResolve||(kt(f,n),Nt(f)),F.noLib||Ft(f),J.set(f.path,!1),It(f)):f&&J.get(f.path)&&K<j&&(J.set(f.path,!1),It(f)),gt(f||void 0,a),f||void 0}if(a&&!ye){var y=vt(t);if(y){if(y.commandLine.options.outFile||y.commandLine.options.out)return;var h=bt(y,t);t=h,l=Ke(h)}}var v=G.getSourceFile(t,F.target,(function(r){return B.add(Pt(a,e.Diagnostics.Cannot_read_file_0_Colon_1,t,r))}),he);if(o){var b=e.packageIdToString(o),x=de.get(b);if(x){var D=function(e,t,r,n,i,a){var o=Object.create(e);return o.fileName=r,o.path=n,o.resolvedPath=i,o.originalFileName=a,o.redirectInfo={redirectTarget:e,unredirected:t},z.set(n,K>0),Object.defineProperties(o,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(e){this.redirectInfo.redirectTarget.symbol=e}}}),o}(x,v,t,r,Ke(t),_);return fe.add(x.path,t),yt(D,r,l),pe.set(r,o.name),p.push(D),D}v&&(de.set(b,v),pe.set(r,o.name))}if(yt(v,r,l),v){if(z.set(r,K>0),v.path=r,v.resolvedPath=Ke(t),v.originalFileName=_,G.useCaseSensitiveFileNames()){var S=r.toLowerCase(),T=ge.get(S);T?ft(t,T.fileName,a):ge.set(S,v)}Y=Y||v.hasNoDefaultLib&&!i,F.noResolve||(kt(v,n),Nt(v)),F.noLib||Ft(v),It(v),n?d.push(v):p.push(v)}return gt(v,a),v}function gt(t,r){r&&t&&(x||(x=e.createMultiMap())).add(t.path,{kind:r.kind,index:r.index,file:r.file.path})}function yt(e,t,r){r?(me.set(r,e),me.set(t,e||!1)):me.set(t,e)}function ht(e){var t=vt(e);return t&&bt(t,e)}function vt(t){if(se&&se.length&&!e.fileExtensionIs(t,".d.ts"))return xt(t)}function bt(t,r){var n=t.commandLine.options.outFile||t.commandLine.options.out;return n?e.changeExtension(n,".d.ts"):e.getOutputDeclarationFileName(r,t.commandLine,!G.useCaseSensitiveFileNames())}function xt(t){void 0===ue&&(ue=e.createMap(),Dt((function(e,t){e&&Ke(F.configFilePath)!==t&&e.commandLine.fileNames.forEach((function(e){return ue.set(Ke(e),t)}))})));var r=ue.get(Ke(t));return r&&Ct(r)}function Dt(e){return Et(w,se,(function(t,r,n){var i=Ke(C((n?n.commandLine.projectReferences:w)[r]));return e(t,i)}))}function St(t){if(e.isDeclarationFileName(t))return void 0===le&&(le=e.createMap(),Dt((function(t){if(t){var r=t.commandLine.options.outFile||t.commandLine.options.out;if(r){var n=e.changeExtension(r,".d.ts");le.set(Ke(n),!0)}else e.forEach(t.commandLine.fileNames,(function(r){if(!e.fileExtensionIs(r,".d.ts")){var n=e.getOutputDeclarationFileName(r,t.commandLine,G.useCaseSensitiveFileNames());le.set(Ke(n),r)}}))}}))),le.get(Ke(t))}function Tt(e){return ye&&!!xt(e)}function Et(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 Ct(e){if(ce)return ce.get(e)||void 0}function kt(t,r){e.forEach(t.referencedFiles,(function(n,i){pt(a(n.fileName,t.originalFileName),r,!1,void 0,{kind:e.RefFileKind.ReferenceFile,index:i,file:t,pos:n.pos,end:n.end})}))}function Nt(t){var r=e.map(t.typeReferenceDirectives,(function(e){return e.fileName.toLocaleLowerCase()}));if(r)for(var n=W(r,t.originalFileName,xt(t.originalFileName)),i=0;i<r.length;i++){var a=t.typeReferenceDirectives[i],o=n[i],s=a.fileName.toLocaleLowerCase();e.setResolvedTypeReferenceDirective(t,s,o),At(s,o,{kind:e.RefFileKind.TypeReferenceDirective,index:i,file:t,pos:a.pos,end:a.end})}}function At(t,r,n){var i=R.get(t);if(!i||!i.primary){var a=!0;if(r){if(r.isExternalLibraryImport&&K++,r.primary)pt(r.resolvedFileName,!1,!1,r.packageId,n);else if(i){if(r.resolvedFileName!==i.resolvedFileName)G.readFile(r.resolvedFileName)!==Xe(i.resolvedFileName).text&&B.add(Pt(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 pt(r.resolvedFileName,!1,!1,r.packageId,n);r.isExternalLibraryImport&&K--}else B.add(Pt(n,e.Diagnostics.Cannot_find_type_definition_file_for_0,t));a&&R.set(t,r)}}function Ft(t){e.forEach(t.libReferenceDirectives,(function(r){var n=r.fileName.toLocaleLowerCase(),i=e.libMap.get(n);if(i)ct(e.combinePaths(Q,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;B.add(e.createFileDiagnostic(t,r.pos,r.end-r.pos,s,n,o))}}))}function Pt(r,n){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];return r?e.createFileDiagnostic.apply(void 0,t([r.file,r.pos,r.end-r.pos,n],i)):e.createCompilerDiagnostic.apply(void 0,t([n],i))}function wt(e){return G.getCanonicalFileName(e)}function It(t){if(_t(t),t.imports.length||t.moduleAugmentations.length){var r=N(t),n=Ue(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&&K++;var l=c&&K>j,_=u&&!k(F,a)&&!F.noResolve&&i<t.imports.length&&!l&&!(s&&!F.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);mt(u,d,!1,!1,{kind:e.RefFileKind.Import,index:i,file:t,pos:p,end:t.imports[i].end},a.packageId)}o&&K--}}}else t.resolvedModules=void 0}function Ot(t,r){for(var n,i=!0,a=G.getCanonicalFileName(e.getNormalizedAbsolutePath(r,Z)),o=0,s=t;o<s.length;o++){var c=s[o];if(!c.isDeclarationFile)0!==G.getCanonicalFileName(e.getNormalizedAbsolutePath(c.fileName,Z)).indexOf(a)&&(n||(n=e.arrayToSet(A,Ke)),Lt(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 Mt(t){ce||(ce=e.createMap());var r,n,i=C(t),a=Ke(i),o=ce.get(a);if(void 0!==o)return o||void 0;if(G.getParsedCommandLine){if(!(r=G.getParsedCommandLine(i)))return yt(void 0,a,void 0),void ce.set(a,!1);n=e.Debug.assertDefined(r.options.configFile),e.Debug.assert(!n.path||n.path===a),yt(n,a,void 0)}else{var s=e.getNormalizedAbsolutePath(e.getDirectoryPath(i),G.getCurrentDirectory());if(yt(n=G.getSourceFile(i,100),a,void 0),void 0===n)return void ce.set(a,!1);r=e.parseJsonSourceFileConfigFileContent(n,H,s,void 0,i)}n.path=a,n.resolvedPath=a,n.originalFileName=i;var c={commandLine:r,sourceFile:n};return ce.set(a,c),r.projectReferences&&(c.references=r.projectReferences.map(Mt)),c}function Lt(r,n,i){for(var a,o,s=[],c=3;c<arguments.length;c++)s[c-3]=arguments[c];var u=x&&x.get(r.path),l=e.forEach(u,(function(e){return n.has(e.file)?e:void 0}))||e.elementAt(u,0);if(l){var _=e.Debug.assertDefined(Qe(l.file)),d=l.kind,p=l.index,f=void 0,m=void 0;switch(d){case e.RefFileKind.Import:f=e.skipTrivia(_.text,_.imports[p].pos),m=_.imports[p].end;break;case e.RefFileKind.ReferenceFile:f=(a=_.referencedFiles[p]).pos,m=a.end;break;case e.RefFileKind.TypeReferenceDirective:f=(o=_.typeReferenceDirectives[p]).pos,m=o.end;break;default:return e.Debug.assertNever(d)}$.add(e.createFileDiagnostic.apply(void 0,t([_,f,m-f,i],s)))}else $.add(e.createCompilerDiagnostic.apply(void 0,t([i],s)))}function Rt(t,r,n,i,a,o){for(var s=!0,c=0,u=jt();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&&($.add(e.createDiagnosticForNodeInSourceFile(F.configFile,p.elements[r],n,i,a,o)),s=!1)}}s&&$.add(e.createCompilerDiagnostic(n,i,a,o))}function Bt(t,r,n,i){for(var a=!0,o=0,s=jt();o<s.length;o++){var c=s[o];e.isObjectLiteralExpression(c.initializer)&&qt(c.initializer,t,r,void 0,n,i)&&(a=!1)}a&&$.add(e.createCompilerDiagnostic(n,i))}function jt(){return function(t){var r=Vt();if(r)return e.getPropertyAssignment(r,t)}("paths")||e.emptyArray}function Kt(e,t,r,n){Ut(!0,t,r,e,t,r,n)}function Jt(e,t,r){Ut(!1,e,void 0,t,r)}function zt(t,r,n,i,a){var o=e.firstDefined(e.getTsConfigPropArray(t||F.configFile,"references"),(function(t){return e.isArrayLiteralExpression(t.initializer)?t.initializer:void 0}));o&&o.elements.length>r?$.add(e.createDiagnosticForNodeInSourceFile(t||F.configFile,o.elements[r],n,i,a)):$.add(e.createCompilerDiagnostic(n,i,a))}function Ut(t,r,n,i,a,o,s){var c=Vt();(!c||!qt(c,t,r,n,i,a,o,s))&&$.add(e.createCompilerDiagnostic(i,a,o,s))}function Vt(){if(void 0===U){U=null;var t=e.getTsConfigObjectLiteralExpression(F.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 qt(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];$.add(e.createDiagnosticForNodeInSourceFile(F.configFile,r?d.name:d.initializer,a,o,s,c))}return!!u.length}function Wt(e,t){re.set(Ke(e),!0),$.add(t)}function Gt(t,r){return 0===e.comparePaths(t,r,Z,!G.useCaseSensitiveFileNames())}function Ht(){return G.getSymlinks?G.getSymlinks():g||(g=e.discoverProbableSymlinks(m,wt,G.getCurrentDirectory()))}},e.parseConfigHostFromCompilerHostLike=T,e.createPrependNodes=E,e.resolveProjectReferencePath=C,e.getResolutionDiagnostic=k}(s||(s={})),function(e){e.getFileEmitOutput=function(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);return{outputFiles:o,emitSkipped:s.emitSkipped,exportedModulesFromDeclarationEmit:s.exportedModulesFromDeclarationEmit}},e.cloneMapOrUndefined=function(t){return t?e.cloneMap(t):void 0}}(s||(s={})),function(e){!function(t){function n(t){if(t.declarations&&t.declarations[0]){var r=e.getSourceFileOfNode(t.declarations[0]);return r&&r.resolvedPath}}function i(e,t){var r=e.getSymbolAtLocation(t);return r&&n(r)}function a(t,r,n,i){return e.toPath(t.getProjectReferenceRedirect(r)||r,n,i)}function o(t,r,n){var o;if(r.imports&&r.imports.length>0)for(var s=t.getTypeChecker(),c=0,u=r.imports;c<u.length;c++){var l=i(s,u[c]);l&&S(l)}var _=e.getDirectoryPath(r.path);if(r.referencedFiles&&r.referencedFiles.length>0)for(var d=0,p=r.referencedFiles;d<p.length;d++){var f=p[d];S(a(t,f.fileName,_,n))}if(r.resolvedTypeReferenceDirectiveNames&&r.resolvedTypeReferenceDirectiveNames.forEach((function(e){if(e){var r=e.resolvedFileName;S(a(t,r,_,n))}})),r.moduleAugmentations.length){s=t.getTypeChecker();for(var m=0,g=r.moduleAugmentations;m<g.length;m++){var y=g[m];if(e.isStringLiteral(y)){var h=s.getSymbolAtLocation(y);h&&D(h)}}}for(var v=0,b=t.getTypeChecker().getAmbientModules();v<b.length;v++){var x=b[v];x.declarations.length>1&&D(x)}return o;function D(t){for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n],o=e.getSourceFileOfNode(a);o&&o!==r&&S(o.resolvedPath)}}function S(t){o||(o=e.createMap()),o.set(t,!0)}}function s(e,t){return t&&!t.referencedMap==!e}function c(e,t){t.forEach((function(t,r){e.fileInfos.get(r).signature=t,e.hasCalledUpdateShapeSignature.set(r,!0)}))}function u(t,r,i,a,o,s,c){if(e.Debug.assert(!!i),e.Debug.assert(!c||!!t.exportedModulesMap,"Compute visible to outside map only if visibleToOutsideReferencedMap present in the state"),t.hasCalledUpdateShapeSignature.has(i.path)||a.has(i.path))return!1;var u=t.fileInfos.get(i.path);if(!u)return e.Debug.fail();var l,_=u.signature;if(i.isDeclarationFile){if(l=i.version,c&&l!==_){var d=t.referencedMap?t.referencedMap.get(i.path):void 0;c.set(i.path,d||!1)}}else{var p=e.getFileEmitOutput(r,i,!0,o,void 0,!0),f=p.outputFiles&&r.getCompilerOptions().declarationMap?p.outputFiles.length>1?p.outputFiles[1]:void 0:p.outputFiles.length>0?p.outputFiles[0]:void 0;f?(e.Debug.assert(e.fileExtensionIs(f.name,".d.ts"),"File extension for signature expected to be dts",(function(){return"Found: "+e.getAnyExtensionFromPath(f.name)+" for "+f.name+":: All output files: "+JSON.stringify(p.outputFiles.map((function(e){return e.name})))})),l=s(f.text),c&&l!==_&&function(t,r,i){if(!r)return void i.set(t.path,!1);var a;r.forEach((function(t){var r;(r=n(t))&&(a||(a=e.createMap()),a.set(r,!0))})),i.set(t.path,a||!1)}(i,p.exportedModulesFromDeclarationEmit,c)):l=_}return a.set(i.path,l),!_||l!==_}function l(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 _(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 d(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 p(t,r,n){if(t.allFilesExcludingDefaultLibraryFile)return t.allFilesExcludingDefaultLibraryFile;var i;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 f(e,t,r){var n=t.getCompilerOptions();return n&&(n.out||n.outFile)?[r]:p(e,t,r)}function m(t,r,n,i,a,o,s){if(d(n))return p(t,r,n);var c=r.getCompilerOptions();if(c&&(c.isolatedModules||c.out||c.outFile))return[n];var l=e.createMap();l.set(n.path,n);for(var f=_(t,n.resolvedPath);f.length>0;){var m=f.pop();if(!l.has(m)){var g=r.getSourceFileByPath(m);l.set(m,g),g&&u(t,r,g,i,a,o,s)&&f.push.apply(f,_(t,g.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(l.values(),(function(e){return e})))}t.canReuseOldState=s,t.create=function(t,r,n){for(var i=e.createMap(),a=t.getCompilerOptions().module!==e.ModuleKind.None?e.createMap():void 0,c=a?e.createMap():void 0,u=e.createMap(),l=s(a,n),_=0,d=t.getSourceFiles();_<d.length;_++){var p=d[_],f=e.Debug.assertDefined(p.version,"Program intended to be used with Builder should have source files with versions set"),m=l?n.fileInfos.get(p.path):void 0;if(a){var g=o(t,p,r);if(g&&a.set(p.path,g),l){var y=n.exportedModulesMap.get(p.path);y&&c.set(p.path,y)}}i.set(p.path,{version:f,signature:m&&m.signature})}return{fileInfos:i,referencedMap:a,exportedModulesMap:c,hasCalledUpdateShapeSignature:u}},t.releaseCache=function(e){e.allFilesExcludingDefaultLibraryFile=void 0,e.allFileNames=void 0},t.clone=function(t){var n=e.createMap();return t.fileInfos.forEach((function(e,t){n.set(t,r({},e))})),{fileInfos:n,referencedMap:e.cloneMapOrUndefined(t.referencedMap),exportedModulesMap:e.cloneMapOrUndefined(t.exportedModulesMap),hasCalledUpdateShapeSignature:e.cloneMap(t.hasCalledUpdateShapeSignature)}},t.getFilesAffectedBy=function(t,r,n,i,a,o,s){var l=o||e.createMap(),_=r.getSourceFileByPath(n);if(!_)return e.emptyArray;if(!u(t,r,_,l,i,a,s))return[_];var d=(t.referencedMap?m:f)(t,r,_,l,i,a,s);return o||c(t,l),d},t.updateSignaturesFromCache=c,t.updateShapeSignature=u,t.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)})))},t.getAllDependencies=function(t,r,n){var i=r.getCompilerOptions();if(i.outFile||i.out)return l(t,r);if(!t.referencedMap||d(n))return l(t,r);for(var a=e.createMap(),o=[n.path];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(),_=u.next();!_.done;_=u.next())o.push(_.value)}}return e.arrayFrom(e.mapDefinedIterator(a.keys(),(function(e){var t=r.getSourceFileByPath(e);return t?t.fileName:e})))},t.getReferencedByPaths=_}(e.BuilderState||(e.BuilderState={}))}(s||(s={})),function(e){var t;function n(t,r,n){var a=e.BuilderState.create(t,r,n);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,n),c=s?n.compilerOptions:void 0,u=s&&n.semanticDiagnosticsPerFile&&!!a.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(o,c);if(s){if(!n.currentChangedFilePath){var l=n.currentAffectedFilesSignatures;e.Debug.assert(!(n.affectedFiles||l&&l.size),"Cannot reuse if only few affected files of currentChangedFile were iterated")}var _=n.changedFilesSet;u&&e.Debug.assert(!_||!e.forEachKey(_,(function(e){return n.semanticDiagnosticsPerFile.has(e)})),"Semantic diagnostics shouldnt be available for changed files"),_&&e.copyEntries(_,a.changedFilesSet),o.outFile||o.out||!n.affectedFilesPendingEmit||(a.affectedFilesPendingEmit=n.affectedFilesPendingEmit.slice(),a.affectedFilesPendingEmitKind=e.cloneMapOrUndefined(n.affectedFilesPendingEmitKind),a.affectedFilesPendingEmitIndex=n.affectedFilesPendingEmitIndex)}var d=a.referencedMap,p=s?n.referencedMap:void 0,f=u&&!o.skipLibCheck==!c.skipLibCheck,m=f&&!o.skipDefaultLibCheck==!c.skipDefaultLibCheck;return a.fileInfos.forEach((function(o,c){var l,_,g,y;if(!s||!(l=n.fileInfos.get(c))||l.version!==o.version||(g=_=d&&d.get(c),y=p&&p.get(c),g!==y&&(void 0===g||void 0===y||g.size!==y.size||e.forEachKey(g,(function(e){return!y.has(e)}))))||_&&e.forEachKey(_,(function(e){return!a.fileInfos.has(e)&&n.fileInfos.has(e)})))a.changedFilesSet.set(c,!0);else if(u){var h=t.getSourceFileByPath(c);if(h.isDeclarationFile&&!f)return;if(h.hasNoDefaultLib&&!m)return;var v=n.semanticDiagnosticsPerFile.get(c);v&&(a.semanticDiagnosticsPerFile.set(c,n.hasReusableDiagnostic?function(t,r,n){if(!t.length)return e.emptyArray;var a=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(r.getCompilerOptions()),r.getCurrentDirectory()));return t.map((function(t){var n=i(t,r,o);n.reportsUnnecessary=t.reportsUnnecessary,n.source=t.source;var a=t.relatedInformation;return n.relatedInformation=a?a.length?a.map((function(e){return i(e,r,o)})):e.emptyArray:void 0,n}));function o(t){return e.toPath(t,a,n)}}(v,t,r):v),a.semanticDiagnosticsFromOldState||(a.semanticDiagnosticsFromOldState=e.createMap()),a.semanticDiagnosticsFromOldState.set(c,!0))}})),c&&e.compilerOptionsAffectEmit(o,c)&&(t.getSourceFiles().forEach((function(e){return v(a,e.path,1)})),e.Debug.assert(void 0===a.seenAffectedFiles),a.seenAffectedFiles=e.createMap()),a.emittedBuildInfo=!a.changedFilesSet.size&&!a.affectedFilesPendingEmit,a}function i(e,t,n){var i=e.file;return r(r({},e),{file:i?t.getSourceFileByPath(n(i)):void 0})}function a(t,r){e.Debug.assert(!r||!t.affectedFiles||t.affectedFiles[t.affectedFilesIndex-1]!==r||!t.semanticDiagnosticsPerFile.has(r.path))}function o(t,r,n){for(;;){var i=t.affectedFiles;if(i){for(var a=t.seenAffectedFiles,o=t.affectedFilesIndex;o<i.length;){var c=i[o];if(!a.has(c.path))return t.affectedFilesIndex=o,s(t,c,r,n),c;o++}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.assertDefined(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 s(t,r,n,i){if(c(t,r.path),t.allFilesExcludingDefaultLibraryFile!==t.affectedFiles)!function(t,r,n){if(!t.exportedModulesMap||!t.changedFilesSet.has(r.path))return;if(!u(t,r.path))return;if(t.compilerOptions.isolatedModules){var i=e.createMap();i.set(r.path,!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.assertDefined(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.path)&&l(t,i,c,n)})))return;e.forEachEntry(t.exportedModulesMap,(function(e,i){return!t.currentAffectedFilesExportedModulesMap.has(i)&&e.has(r.path)&&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.assertDefined(t.program),o=a.getSourceFileByPath(r);o&&(e.BuilderState.updateShapeSignature(t,a,o,e.Debug.assertDefined(t.currentAffectedFilesSignatures),n,i,t.currentAffectedFilesExportedModulesMap),e.getEmitDeclarations(t.compilerOptions)&&v(t,r,0))}return!1}(t,r,n,i)}));else if(!t.cleanedDiagnosticsOfLibFiles){t.cleanedDiagnosticsOfLibFiles=!0;var a=e.Debug.assertDefined(t.program),o=a.getCompilerOptions();e.forEach(a.getSourceFiles(),(function(r){return a.isSourceFileDefaultLibrary(r)&&!e.skipTypeChecking(r,o,a)&&c(t,r.path)}))}}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.assertDefined(t.currentAffectedFilesSignatures).get(r)!==e.Debug.assertDefined(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;e.Debug.assert(!!r.currentAffectedFilesExportedModulesMap);if(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.path,!0),void 0!==n&&(t.seenEmittedFiles||(t.seenEmittedFiles=e.createMap())).set(r.path,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){var i=r.path;if(t.semanticDiagnosticsPerFile){var a=t.semanticDiagnosticsPerFile.get(i);if(a)return a}var o=e.Debug.assertDefined(t.program).getSemanticDiagnostics(r,n);return t.semanticDiagnosticsPerFile&&t.semanticDiagnosticsPerFile.set(i,o),o}function m(t,r){var n={},i=e.getOptionNameMap().optionNameMap;for(var a in t)e.hasProperty(t,a)&&(n[a]=g(i.get(a.toLowerCase()),t[a],r));return n.configFilePath&&(n.configFilePath=r(n.configFilePath)),n}function g(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=h(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 h(e,r)})):e.emptyArray:void 0,n}))}function h(e,t){var n=e.file;return r(r({},e),{file:n?t(n.path):void 0})}function v(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()}};function n(){return e.Debug.assertDefined(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(r,i){var s=i.newProgram,c=i.host,u=i.oldProgram,l=i.configFileParsingDiagnostics,g=u&&u.getState();if(g&&s===g.program&&l===s.getConfigFileParsingDiagnostics())return s=void 0,g=void 0,u;var h,b=e.createGetCanonicalFileName(c.useCaseSensitiveFileNames()),D=c.createHash||e.generateDjb2Hash,S=n(s,b,g);s.getProgramBuildInfo=function(){return function(t,r){if(!t.compilerOptions.outFile&&!t.compilerOptions.out){var n=e.Debug.assertDefined(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[l(r)]=void 0===n?e:{version:e.version,signature:n}}));var o={fileInfos:a,options:m(t.compilerOptions,(function(t){return l(e.getNormalizedAbsolutePath(t,n))}))};if(t.referencedMap){var s={};t.referencedMap.forEach((function(t,r){s[l(r)]=e.arrayFrom(t.keys(),l)})),o.referencedMap=s}if(t.exportedModulesMap){var c={};t.exportedModulesMap.forEach((function(r,n){var i=t.currentAffectedFilesExportedModulesMap&&t.currentAffectedFilesExportedModulesMap.get(n);void 0===i?c[l(n)]=e.arrayFrom(r.keys(),l):i&&(c[l(n)]=e.arrayFrom(i.keys(),l))})),o.exportedModulesMap=c}if(t.semanticDiagnosticsPerFile){var u=[];t.semanticDiagnosticsPerFile.forEach((function(e,r){return u.push(e.length?[l(r),t.hasReusableDiagnostic?e:y(e,l)]:l(r))})),o.semanticDiagnosticsPerFile=u}return o}function l(t){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(i,t,r))}}(S,b)},s=void 0,u=void 0,g=void 0;var T=x(S,l);return T.getState=function(){return S},T.backupState=function(){e.Debug.assert(void 0===h),h=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)},T.restoreState=function(){S=e.Debug.assertDefined(h),h=void 0},T.getAllDependencies=function(t){return e.BuilderState.getAllDependencies(S,e.Debug.assertDefined(S.program),t)},T.getSemanticDiagnostics=function(t,r){a(S,t);var n,i=e.Debug.assertDefined(S.program).getCompilerOptions();if(i.outFile||i.out)return e.Debug.assert(!S.semanticDiagnosticsPerFile),e.Debug.assertDefined(S.program).getSemanticDiagnostics(t,r);if(t)return f(S,t,r);for(;C(r););for(var o=0,s=e.Debug.assertDefined(S.program).getSourceFiles();o<s.length;o++){var c=s[o];n=e.addRange(n,f(S,c,r))}return n||e.emptyArray},T.emit=function(n,i,o,s,u){if(r===t.EmitAndSemanticDiagnosticsBuilderProgram&&(a(S,n),!n)){for(var l=[],_=!1,d=void 0,p=[],f=void 0;f=E(i,o,s,u);)_=_||f.result.emitSkipped,d=e.addRange(d,f.result.diagnostics),p=e.addRange(p,f.result.emittedFiles),l=e.addRange(l,f.result.sourceMaps);return{emitSkipped:_,diagnostics:d||e.emptyArray,emittedFiles:p,sourceMaps:l}}return e.Debug.assertDefined(S.program).emit(n,i||e.maybeBind(c,c.writeFile),o,s,u)},T.releaseProgram=function(){!function(t){e.BuilderState.releaseCache(t),t.program=void 0}(S),h=void 0},r===t.SemanticDiagnosticsBuilderProgram?T.getSemanticDiagnosticsOfNextAffectedFile=C:r===t.EmitAndSemanticDiagnosticsBuilderProgram?(T.getSemanticDiagnosticsOfNextAffectedFile=C,T.emitNextAffectedFile=E):e.notImplemented(),T;function E(t,r,n,i){var a=o(S,r,D),s=1,u=!1;if(!a)if(S.compilerOptions.out||S.compilerOptions.outFile){var l=e.Debug.assertDefined(S.program);if(S.programEmitComplete||!e.some(l.getProjectReferences(),(function(e){return!!e.prepend})))return void(S.programEmitComplete=!0);a=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.assertDefined(t.program).getSourceFileByPath(r[i]);if(a){var o=n.get(a.path),s=e.Debug.assertDefined(e.Debug.assertDefined(t.affectedFilesPendingEmitKind).get(a.path));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.assertDefined(S.program);return p(S,d.emitBuildInfo(t||e.maybeBind(c,c.writeFile),r),d,1,!1,!0)}a=_.affectedFile,s=_.emitKind,u=!0}return p(S,e.Debug.assertDefined(S.program).emit(a===S.program?void 0:a,t||e.maybeBind(c,c.writeFile),r,n||0===s,i),a,s,u)}function C(e,n){for(;;){var i=o(S,e,D);if(!i)return;if(i===S.program)return d(S,S.program.getSemanticDiagnostics(void 0,e),i);if(r===t.EmitAndSemanticDiagnosticsBuilderProgram&&v(S,i.path,1),!n||!n(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};function u(t){return e.toPath(t,i,a)}},e.createRedirectedBuilderProgram=x}(s||(s={})),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)}}(s||(s={})),function(e){function t(t){return e.some(e.ignoredPaths,(function(r){return e.stringContains(t,r)}))}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.isPathIgnored=t,e.canWatchDirectory=r,e.maxNumberOfFilesToIterateForInvalidation=256,e.createResolutionCache=function(n,i,a){var o,s,c,u=!1,l=e.createMultiMap(),_=e.memoize((function(){return n.getCurrentDirectory()})),d=n.getCachedDirectoryStructureHost(),p=e.createMap(),f=e.createCacheWithRedirects(),m=e.createCacheWithRedirects(),g=e.createModuleResolutionCacheWithMaps(f,m,_(),n.getCanonicalFileName),y=e.createMap(),h=e.createCacheWithRedirects(),v=[".ts",".tsx",".js",".jsx",".json"],b=e.createMap(),x=e.createMap(),D=i&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(i,_())),S=D&&n.toPath(D),T=e.createMap();return{startRecordingFilesWithChangedResolutions:function(){o=[]},finishRecordingFilesWithChangedResolutions:function(){var e=o;return o=void 0,e},startCachingPerDirectoryResolution:A,finishCachingPerDirectoryResolution:function(){u=!1,c=void 0,A(),x.forEach((function(e,t){0===e.refCount&&(x.delete(t),e.watcher.close())}))},resolveModuleNames:function(t,r,n,i){return P(t,r,i,p,f,F,E,(function(t){return!t.resolvedModule||!e.resolutionExtensionIsTSOrJson(t.resolvedModule.extension)}),n,a)},getResolvedModuleWithFailedLookupLocationsFromCache:function(e,t){var r=p.get(n.toPath(t));return r&&r.get(e)},resolveTypeReferenceDirectives:function(t,r,n){return P(t,r,n,y,h,e.resolveTypeReferenceDirective,C,(function(e){return void 0===e.resolvedTypeReferenceDirective}),void 0,!1)},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(e){W(e),H((function(t,r){var i=r(t);return!!i&&n.toPath(i.resolvedFileName)===e}))},setFilesWithInvalidatedNonRelativeUnresolvedImports:function(t){e.Debug.assert(c===t||void 0===c),c=t},createHasInvalidatedResolution:function(t){if(u||t)return s=void 0,e.returnTrue;var r=s;return s=void 0,function(e){return!!r&&r.has(e)||N(e)}},updateTypeRootsWatch:function(){var t=n.getCompilationSettings();if(t.types)return void X();var r=e.getEffectiveTypeRoots(t,{directoryExists:$,getCurrentDirectory:_});r?e.mutateMap(T,e.arrayToMap(r,(function(e){return n.toPath(e)})),{createNewValue:Q,onDeleteValue:e.closeFileWatcher}):X()},closeTypeRootsWatch:X,clear:function(){e.clearMap(x,e.closeFileWatcherOf),b.clear(),l.clear(),X(),p.clear(),y.clear(),u=!1,A()}};function E(e){return e.resolvedModule}function C(e){return e.resolvedTypeReferenceDirective}function k(t,r){return!(void 0===t||r.length<=t.length)&&(e.startsWith(r,t)&&r[t.length]===e.directorySeparator)}function N(e){if(!c)return!1;var t=c.get(e);return!!t&&!!t.length}function A(){f.clear(),m.clear(),h.clear(),l.forEach(K),l.clear()}function F(t,r,i,a,o){var s=e.resolveModuleName(t,r,i,a,g,o);if(!n.getGlobalCache)return s;var c=n.getGlobalCache();if(!(void 0===c||e.isExternalModuleNameRelative(t)||s.resolvedModule&&e.extensionIsTS(s.resolvedModule.extension))){var u=e.loadModuleFromGlobalCache(e.Debug.assertDefined(n.globalCacheResolutionModuleName)(t),n.projectName,i,a,c),l=u.resolvedModule,_=u.failedLookupLocations;if(l)return{resolvedModule:l,failedLookupLocations:e.addRange(s.failedLookupLocations,_)}}return s}function P(t,r,i,a,s,c,l,_,d,p){var f=n.toPath(r),m=a.get(f)||a.set(f,e.createMap()).get(f),g=e.getDirectoryPath(f),y=s.getOrCreateMapOfCacheRedirects(i),h=y.get(g);h||(h=e.createMap(),y.set(g,h));for(var v=[],b=n.getCompilationSettings(),x=p&&N(f),D=n.getCurrentProgram(),S=D&&D.getResolvedProjectReferenceToRedirect(r),T=S?!i||i.sourceFile.path!==S.sourceFile.path:!!i,E=e.createMap(),C=0,k=t;C<k.length;C++){var A=k[C],F=m.get(A);if(!E.has(A)&&u||T||!F||F.isInvalidated||x&&!e.isExternalModuleNameRelative(A)&&_(F)){var P=F,w=h.get(A);w?F=w:(F=c(A,r,b,n,i),h.set(A,F)),m.set(A,F),R(A,F),P&&z(P),p&&o&&!I(P,F)&&(o.push(f),p=!1)}e.Debug.assert(void 0!==F&&!F.isInvalidated),E.set(A,!0),v.push(l(F))}return m.forEach((function(t,r){E.has(r)||e.contains(d,r)||(z(t),m.delete(r))})),v;function I(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=l(e),n=l(t);return r===n||!(!r||!n)&&r.resolvedFileName===n.resolvedFileName}}function w(t){return e.endsWith(t,"/node_modules")}function I(t){return e.endsWith(t,"/node_modules/@types")}function O(t,r){if(k(S,r)){t=e.isRootedDiskPath(t)?e.normalizePath(t):e.getNormalizedAbsolutePath(t,_()),e.Debug.assert(t.length===r.length,"FailedLookup: "+t+" failedLookupLocationPath: "+r);var n=r.indexOf(e.directorySeparator,S.length+1);return-1!==n?{dir:t.substr(0,n),dirPath:r.substr(0,n)}:{dir:D,dirPath:S,nonRecursive:!1}}return M(e.getDirectoryPath(e.getNormalizedAbsolutePath(t,_())),e.getDirectoryPath(r))}function M(t,n){for(;e.pathContainsNodeModules(n);)t=e.getDirectoryPath(t),n=e.getDirectoryPath(n);if(w(n))return r(e.getDirectoryPath(n))?{dir:t,dirPath:n}:void 0;var i,a,o=!0;if(void 0!==S)for(;!k(n,S);){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 L(t){return e.fileExtensionIsOneOf(t,v)}function R(t,r){r.failedLookupLocations&&r.failedLookupLocations.length&&(r.refCount?r.refCount++:(r.refCount=1,e.isExternalModuleNameRelative(t)?B(r):l.add(t,r)))}function B(t){e.Debug.assert(!!t.refCount);for(var r=!1,i=0,a=t.failedLookupLocations;i<a.length;i++){var o=a[i],s=n.toPath(o),c=O(o,s);if(c){var u=c.dir,l=c.dirPath,_=c.nonRecursive;if(!L(s)){var d=b.get(s)||0;b.set(s,d+1)}l===S?(e.Debug.assert(!_),r=!0):J(u,l,_)}}r&&J(D,S,!0)}function j(e){e.refCount=void 0}function K(e,t){var r=n.getCurrentProgram(),i=r&&r.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(t)?j:B;e.forEach(i)}function J(t,r,n){var i=x.get(r);i?(e.Debug.assert(!!n==!!i.nonRecursive),i.refCount++):x.set(r,{watcher:V(t,r,n),refCount:1,nonRecursive:n})}function z(t){if(t.refCount&&(t.refCount--,!t.refCount)){for(var r=!1,i=0,a=t.failedLookupLocations;i<a.length;i++){var o=a[i],s=n.toPath(o),c=O(o,s);if(c){var u=c.dirPath,l=b.get(s);l&&(1===l?b.delete(s):(e.Debug.assert(l>1),b.set(s,l-1))),u===S?r=!0:U(u)}}r&&U(S)}}function U(e){x.get(e).refCount--}function V(e,t,r){return n.watchDirectoryOfFailedLookupLocation(e,(function(e){var r=n.toPath(e);d&&d.addOrDeleteFileOrDirectory(e,r),!u&&Y(r,t===r)&&n.onInvalidatedResolution()}),r?0:1)}function q(e,t){var r=e.get(t);r&&(r.forEach(z),e.delete(t))}function W(e){q(p,e),q(y,e)}function G(t,r,i){var a=e.createMap();t.forEach((function(t,o){var c=e.getDirectoryPath(o),u=a.get(c);u||(u=e.createMap(),a.set(c,u)),t.forEach((function(t,a){u.has(a)||(u.set(a,!0),!t.isInvalidated&&r(t,i)&&(t.isInvalidated=!0,(s||(s=e.createMap())).set(o,!0),o.endsWith(e.inferredTypesContainingFile)&&n.onChangedAutomaticTypeDirectiveNames()))}))}))}function H(t){var r;(r=n.maxNumberOfFilesToIterateForInvalidation||e.maxNumberOfFilesToIterateForInvalidation,p.size>r||y.size>r)?u=!0:(G(p,t,E),G(y,t,C))}function Y(r,i){var a;if(i)a=function(e){return k(r,n.toPath(e))};else{if(t(r))return!1;if(n.fileIsOpen(r))return!1;var o=e.getDirectoryPath(r);if(I(r)||w(r)||I(o)||w(o))a=function(t){return n.toPath(t)===r||e.startsWith(n.toPath(t),r)};else{if(!L(r)&&!b.has(r))return!1;if(e.isEmittedFileOfProgram(n.getCurrentProgram(),r))return!1;a=function(e){return n.toPath(e)===r}}}var c=s&&s.size;return H((function(t){return e.some(t.failedLookupLocations,a)})),u||s&&s.size!==c}function X(){e.clearMap(T,e.closeFileWatcher)}function Q(e,t){return n.watchTypeRootsDirectory(t,(function(r){var i=n.toPath(r);d&&d.addOrDeleteFileOrDirectory(r,i),n.onChangedAutomaticTypeDirectiveNames();var a=function(e,t){if(!u){if(k(S,t))return S;var r=M(e,t);return r&&x.has(r.dirPath)?r.dirPath:void 0}}(t,e);a&&Y(i,a===i)&&n.onInvalidatedResolution()}),1)}function $(t){var i=e.getDirectoryPath(e.getDirectoryPath(t)),a=n.toPath(i);return a===S||r(a)}}}(s||(s={})),function(e){!function(r){var n,i;function a(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.hasJSOrJsonFileExtension(r):void 0}))||!1}(n)?2:e.getEmitModuleResolutionKind(r)!==e.ModuleResolutionKind.NodeJs?1:0}}()}}function o(t,r,n,i,a,o,u){var l=s(r,i),_=d(a,r,n,l.getCanonicalFileName,i,o);return e.firstDefined(_,(function(e){return f(e,l,i,t)}))||c(n,l,t,u)}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,f=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?g(u,a,o):e.removeFileExtension(u)}(d,t,o,a,s,n)||g(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(o,t,a)),s,n);if(!l||0===c)return f;var v=y(t,l,a);if(!v)return f;var b=g(v,s,n),x=_&&p(e.removeFileExtension(v),b,_),D=void 0===x?b:x;return 1===c?D:(2!==c&&e.Debug.assertNever(c),h(D)||u(f)<u(D)?f: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(r,n,i,a,o,s){var c=s.get(i),u=c?t(c,[i]):[i],l=o.getCurrentDirectory?o.getCurrentDirectory():"",d=u.map((function(t){return e.getNormalizedAbsolutePath(t,l)})),p=o.getProbableSymlinks?o.getProbableSymlinks(r):e.discoverProbableSymlinks(r,a,l),f=[],m=!o.useCaseSensitiveFileNames||o.useCaseSensitiveFileNames()?e.compareStringsCaseSensitive:e.compareStringsCaseInsensitive;if(p.forEach((function(t,r){if(!e.startsWithDirectory(n,t,a)){var i=e.find(d,(function(e){return 0===m(e.slice(0,t.length+1),t+"/")}));if(void 0!==i){var s=e.getRelativePathFromDirectory(t,i,a),c=e.resolvePath(r,s);o.fileExists&&!o.fileExists(c)||f.push(c)}}})),f.push.apply(f,d),f.length<2)return f;for(var g=e.arrayToMap(f,e.identity,a),y=[],h=function(t){var r,n=e.ensureTrailingDirectorySeparator(t);g.forEach((function(t,i){e.startsWith(t,n)&&((r||(r=[])).push(i),g.delete(i))})),r&&(r.length>1&&r.sort(_),y.push.apply(y,r))},v=e.getDirectoryPath(e.toPath(n,l,a));0!==g.size;v=e.getDirectoryPath(v))h(v);return y}function p(t,r,n){for(var i in n)for(var a=0,o=n[i];a<o.length;a++){var s=o[a],c=e.removeFileExtension(e.normalizePath(s)),u=c.indexOf("*");if(-1!==u){var l=c.substr(0,u),_=c.substr(u+1);if(r.length>=l.length+_.length&&e.startsWith(r,l)&&e.endsWith(r,_)||!_&&r===e.removeTrailingDirectorySeparator(l)){var d=r.substr(l.length,r.length-_.length);return i.replace("*",d)}}else if(c===r||c===t)return i}}function f(t,r,n,i,a){var o=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,l=t.substring(0,c.packageRootIndex);if(!a){var _=e.combinePaths(l,"package.json"),d=(u=n.fileExists(_)?JSON.parse(n.readFile(_)):void 0)&&u.typesVersions?e.getPackageJsonTypesVersionsPaths(u.typesVersions):void 0;if(d){var f=t.slice(c.packageRootIndex+1),m=p(e.removeFileExtension(f),g(f,0,i),d.paths);void 0!==m&&(t=e.combinePaths(t.slice(0,c.packageRootIndex),m))}}var y=a?t:function(t){if(u){var r=u.typings||u.types||u.main;if(r){var i=e.toPath(r,l,o);if(e.removeFileExtension(i)===e.removeFileExtension(o(t)))return l}}var a=e.removeFileExtension(t);if("/index"===o(a.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,a.substring(0,c.fileNameIndex)))return a.substring(0,c.fileNameIndex);return a}(t),h=n.getGlobalTypingsCacheLocation&&n.getGlobalTypingsCacheLocation(),v=o(y.substring(0,c.topLevelNodeModulesIndex));if(e.startsWith(s,v)||h&&e.startsWith(o(h),v)){var b=y.substring(c.topLevelPackageNameIndex+1),x=e.getPackageNameFromTypesPackageName(b);return e.getEmitModuleResolutionKind(i)!==e.ModuleResolutionKind.NodeJs&&x===b?void 0:x}}}}function m(t,r,n){return e.firstDefined(r,(function(e){var r=y(t,e,n);return h(r)?void 0:r}))}function g(t,r,n){if(e.fileExtensionIs(t,".json"))return t;var i=e.removeFileExtension(t);switch(r){case 0:return e.removeSuffix(i,"/index");case 1:return i;case 2:return i+function(t,r){var n=e.extensionFromPath(t);switch(n){case".ts":case".d.ts":return".js";case".tsx":return 1===r.jsx?".jsx":".js";case".js":case".jsx":case".json":return n;case".tsbuildinfo":return e.Debug.fail("Extension .tsbuildinfo is unsupported:: FileName:: "+t);default:return e.Debug.assertNever(n)}}(t,n);default:return e.Debug.assertNever(r)}}function y(t,r,n){var i=e.getRelativePathToDirectoryOrUrl(r,t,r,n,!1);return e.isRootedDiskPath(i)?void 0:i}function h(t){return e.startsWith(t,"..")}!function(e){e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Auto=2]="Auto"}(n||(n={})),function(e){e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension"}(i||(i={})),r.updateModuleSpecifier=function(t,r,n,i,a,s,c){var u=o(t,r,n,i,a,s,function(t,r){return{relativePreference:e.isExternalModuleNameRelative(r)?0:1,ending:e.hasJSOrJsonFileExtension(r)?2:e.getEmitModuleResolutionKind(t)!==e.ModuleResolutionKind.NodeJs||e.endsWith(r,"index")?1:0}}(t,c));if(u!==c)return u},r.getModuleSpecifier=function(e,t,r,n,i,s,c,u){return void 0===c&&(c={}),o(e,r,n,i,s,u,a(c,e,t))},r.getNodeModulesPackageName=function(t,r,n,i,a,o){var c=s(r,i),u=d(a,r,n,c.getCanonicalFileName,i,o);return e.firstDefined(u,(function(e){return f(e,c,i,t,!0)}))},r.getModuleSpecifiers=function(t,r,n,i,o,u,l){var _=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(_)return[_];var p=s(n.path,i),m=e.getSourceFileOfNode(t.valueDeclaration||e.getNonAugmentationDeclaration(t)),g=d(o,n.path,m.originalFileName,p.getCanonicalFileName,i,l),y=a(u,r,n),h=e.mapDefined(g,(function(e){return f(e,p,i,r)}));return h.length?h:g.map((function(e){return c(e,p,r,y)}))},r.countPathComponents=u}(e.moduleSpecifiers||(e.moduleSpecifiers={}))}(s||(s={})),function(e){var r=e.sys?{getCurrentDirectory:function(){return e.sys.getCurrentDirectory()},getNewLine:function(){return e.sys.newLine},getCanonicalFileName:e.createGetCanonicalFileName(e.sys.useCaseSensitiveFileNames)}:void 0;function n(t,n){var i=t===e.sys?r:{getCurrentDirectory:function(){return t.getCurrentDirectory()},getNewLine:function(){return t.newLine},getCanonicalFileName:e.createGetCanonicalFileName(t.useCaseSensitiveFileNames)};if(!n)return function(r){return t.write(e.formatDiagnostic(r,i))};var a=new Array(1);return function(r){a[0]=r,t.write(e.formatDiagnosticsWithColorAndContext(a,i)+i.getNewLine()),a[0]=void 0}}function i(t,r,n){return!(!t.clearScreen||n.preserveWatchOutput||n.extendedDiagnostics||n.diagnostics||!e.contains(e.screenStartingMessageCodes,r.code))&&(t.clearScreen(),!0)}function a(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}):(new Date).toLocaleTimeString()}function o(t,r){return r?function(r,n,o){i(t,r,o);var s="["+e.formatColorAndReset(a(t),e.ForegroundColorEscapeSequences.Grey)+"] ";s+=""+e.flattenDiagnosticMessageText(r.messageText,t.newLine)+(n+n),t.write(s)}:function(r,n,o){var s="";i(t,r,o)||(s+=n),s+=a(t)+" - ",s+=""+e.flattenDiagnosticMessageText(r.messageText,t.newLine)+function(t,r){return e.contains(e.screenStartingMessageCodes,t.code)?r+r:r}(r,n),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),m=f.emittedFiles,g=f.diagnostics;if(e.addRange(d,g),e.sortAndDeduplicateDiagnostics(d).forEach(r),n){var y=t.getCurrentDirectory();e.forEach(m,(function(t){var r=e.getNormalizedAbsolutePath(t,y);n("TSFILE: "+r)})),l(t,n)}return i&&i(s(d)),{emitResult:f,diagnostics:d}}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||o(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)},onCachedDirectoryStructureHostCreate:function(e){return e||t},createHash:e.maybeBind(t,t.createHash),createProgram:r||e.createEmitAndSemanticDiagnosticsBuilderProgram}}function m(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 g(t,r,n){r(n),t.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}e.createDiagnosticReporter=n,e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code],e.getLocaleTimeString=a,e.createWatchStatusReporter=o,e.parseConfigFileWithSystem=function(t,r,n,i){var a=n;a.onUnRecoverableConfigFileDiagnostic=function(e){return g(n,i,e)};var o=e.getParsedCommandLineOfConfigFile(t,r,a);return a.onUnRecoverableConfigFileDiagnostic=void 0,o},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,function(e){e.ConfigFile="Config file",e.SourceFile="Source file",e.MissingFile="Missing file",e.WildcardDirectory="Wild card directory",e.FailedLookupLocations="Failed Lookup Locations",e.TypeRoots="Type roots"}(e.WatchType||(e.WatchType={})),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(e){a&&a(e.message),o=""}return void 0!==o?e.createSourceFile(n,o,i):void 0},getDefaultLibLocation:e.maybeBind(t,t.getDefaultLibLocation),getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:function(r,n,i,a){try{e.performance.mark("beforeIOWrite"),function r(n){if(n.length>e.getRootLength(n)&&!t.directoryExists(n)){var i=e.getDirectoryPath(n);r(i),t.createDirectory&&t.createDirectory(n)}}(e.getDirectoryPath(e.normalizePath(r))),t.writeFile(r,n,i),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}},getCurrentDirectory:e.memoize((function(){return t.getCurrentDirectory()})),useCaseSensitiveFileNames:function(){return i},getCanonicalFileName:e.createGetCanonicalFileName(i),getNewLine:function(){return e.getNewLineCharacter(r(),a)},fileExists:function(e){return t.fileExists(e)},readFile:function(e){return t.readFile(e)},trace:e.maybeBind(t,t.trace),directoryExists:e.maybeBind(n,n.directoryExists),getDirectories:e.maybeBind(n,n.getDirectories),realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(t,t.createHash),readDirectory:e.maybeBind(t,t.readDirectory)}},e.setGetSourceFileAsHashVersioned=function(r,n){var i=r.getSourceFile,a=n.createHash||e.generateDjb2Hash;r.getSourceFile=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var s=i.call.apply(i,t([r],e));return s&&(s.version=a.call(n,s.text)),s}},e.createProgramHost=f,e.createWatchCompilerHostOfConfigFile=function(e,t,r,i,a,o){var s=a||n(r),c=m(r,i,s,o);return c.onUnRecoverableConfigFileDiagnostic=function(e){return g(r,s,e)},c.configFileName=e,c.optionsToExtend=t,c},e.createWatchCompilerHostOfFilesAndCompilerOptions=function(e,t,r,i,a,o,s){var c=m(r,i,a||n(r),o);return c.rootFiles=e,c.options=t,c.projectReferences=s,c},e.performIncrementalCompilation=function(t){var r=t.system||e.sys,i=t.host||(t.host=e.createIncrementalCompilerHost(t.options,r)),a=e.createIncrementalProgram(t),o=d(a,t.reportDiagnostic||n(r),(function(e){return i.trace&&i.trace(e)}),t.reportErrorSummary||t.options.pretty?function(e){return r.write(u(e,r.newLine))}:void 0);return t.afterProgramEmitAndDiagnostics&&t.afterProgramEmitAndDiagnostics(a),o}}(s||(s={})),function(e){function r(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 n(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=r,e.createIncrementalCompilerHost=n,e.createIncrementalProgram=function(t){var i=t.rootNames,a=t.options,o=t.configFileParsingDiagnostics,s=t.projectReferences,c=t.host,u=t.createProgram;return c=c||n(a),(u=u||e.createEmitAndSemanticDiagnosticsBuilderProgram)(i,a,c,r(a,c),o,s)},e.createWatchCompilerHost=function(t,r,n,i,a,o,s){return e.isArray(t)?e.createWatchCompilerHostOfFilesAndCompilerOptions(t,r,n,i,a,o,s):e.createWatchCompilerHostOfConfigFile(t,r,n,i,a,o)},e.createWatchProgram=function(n){var i,a,o,s,c,u,l,_,d=e.createMap(),p=!1,f=!1,m=n.useCaseSensitiveFileNames(),g=n.getCurrentDirectory(),y=n.configFileName,h=n.optionsToExtend,v=void 0===h?{}:h,b=n.createProgram,x=n.rootFiles,D=n.options,S=n.projectReferences,T=!1,E=!1,C=void 0===y?void 0:e.createCachedDirectoryStructureHost(n,g,m);C&&n.onCachedDirectoryStructureHostCreate&&n.onCachedDirectoryStructureHostCreate(C);var k=C||n,N=e.parseConfigHostFromCompilerHostLike(n,k),A=q();y&&n.configFileParsingResult&&(re(n.configFileParsingResult),A=q()),$(e.Diagnostics.Starting_compilation_in_watch_mode),y&&!n.configFileParsingResult&&(A=e.getNewLineCharacter(v,(function(){return n.getNewLine()})),e.Debug.assert(!x),te(),A=q());var F,P=e.createWatchFactory(n,D),w=P.watchFile,I=P.watchFilePath,O=P.watchDirectory,M=P.writeLog,L=e.createGetCanonicalFileName(m);M("Current directory: "+g+" CaseSensitiveFileNames: "+m),y&&(F=w(n,y,(function(){e.Debug.assert(!!y),a=e.ConfigFileProgramReloadLevel.Full,Z()}),e.PollingInterval.High,"Config file"));var R=e.createCompilerHostFromProgramHost(n,(function(){return D}),k);e.setGetSourceFileAsHashVersioned(R,n);var B=R.getSourceFile;R.getSourceFile=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return Y.apply(void 0,t([e,W(e)],r))},R.getSourceFileByPath=Y,R.getNewLine=function(){return A},R.fileExists=H,R.onReleaseOldSourceFile=function(e,t,r){var n=d.get(e.resolvedPath);void 0!==n&&(G(n)?(u||(u=[])).push(e.path):n.sourceFile===e&&(n.fileWatcher&&n.fileWatcher.close(),d.delete(e.resolvedPath),r||j.removeResolutionsOfFile(e.path)))},R.toPath=W,R.getCompilationSettings=function(){return D},R.watchDirectoryOfFailedLookupLocation=function(e,t,r){return O(n,e,t,r,"Failed Lookup Locations")},R.watchTypeRootsDirectory=function(e,t,r){return O(n,e,t,r,"Type roots")},R.getCachedDirectoryStructureHost=function(){return C},R.onInvalidatedResolution=Z,R.onChangedAutomaticTypeDirectiveNames=function(){f=!0,Z()},R.fileIsOpen=e.returnFalse,R.maxNumberOfFilesToIterateForInvalidation=n.maxNumberOfFilesToIterateForInvalidation,R.getCurrentProgram=U,R.writeLog=M;var j=e.createResolutionCache(R,y?e.getDirectoryPath(e.getNormalizedAbsolutePath(y,g)):g,!1);R.resolveModuleNames=n.resolveModuleNames?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.resolveModuleNames.apply(n,e)}:function(e,t,r,n){return j.resolveModuleNames(e,t,r,n)},R.resolveTypeReferenceDirectives=n.resolveTypeReferenceDirectives?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.resolveTypeReferenceDirectives.apply(n,e)}:function(e,t,r){return j.resolveTypeReferenceDirectives(e,t,r)};var K=!!n.resolveModuleNames||!!n.resolveTypeReferenceDirectives;return i=r(D,R),V(),se(),y?{getCurrentProgram:z,getProgram:V,close:J}:{getCurrentProgram:z,getProgram:V,updateRootFileNames:function(t){e.Debug.assert(!y,"Cannot update root file names with config file watch mode"),x=t,Z()},close:J};function J(){j.clear(),e.clearMap(d,(function(e){e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)})),F&&(F.close(),F=void 0),s&&(e.clearMap(s,e.closeFileWatcherOf),s=void 0),o&&(e.clearMap(o,e.closeFileWatcher),o=void 0)}function z(){return i}function U(){return i&&i.getProgramOrUndefined()}function V(){M("Synchronizing program");var t=z();p&&(A=q(),t&&e.changesAffectModuleResolution(t.getCompilerOptions(),D)&&j.clear());var r=j.createHasInvalidatedResolution(K);return e.isProgramUptoDate(U(),x,D,Q,H,r,f,S)?E&&(i=b(void 0,void 0,R,i,_,S),E=!1):function(t){M("CreatingProgramWith::"),M("  roots: "+JSON.stringify(x)),M("  options: "+JSON.stringify(D));var r=p||!U();p=!1,E=!1,j.startCachingPerDirectoryResolution(),R.hasInvalidatedResolution=t,R.hasChangedAutomaticTypeDirectiveNames=f,i=b(x,D,R,i,_,S),j.finishCachingPerDirectoryResolution(),e.updateMissingFilePathsWatch(i.getProgram(),o||(o=e.createMap()),ae),r&&j.updateTypeRootsWatch();if(u){for(var n=0,a=u;n<a.length;n++){var s=a[n];o.has(s)||d.delete(s)}u=void 0}}(r),n.afterProgramCreate&&n.afterProgramCreate(i),i}function q(){return e.getNewLineCharacter(D||v,(function(){return n.getNewLine()}))}function W(t){return e.toPath(t,g,L)}function G(e){return"boolean"==typeof e}function H(e){var t=W(e);return!!G(d.get(t))||k.fileExists(e)}function Y(t,r,i,a,o){var s=d.get(r);if(!G(s)){if(void 0===s||o||function(e){return"boolean"==typeof e.version}(s)){var c=B(t,i,a);if(s)c?(s.sourceFile=c,s.version=c.version,s.fileWatcher||(s.fileWatcher=I(n,t,ne,e.PollingInterval.Low,r,"Source file"))):(s.fileWatcher&&s.fileWatcher.close(),d.set(r,!1));else if(c){var u=I(n,t,ne,e.PollingInterval.Low,r,"Source file");d.set(r,{sourceFile:c,version:c.version,fileWatcher:u})}else d.set(r,!1);return c}return s.sourceFile}}function X(e){var t=d.get(e);void 0!==t&&(G(t)?d.set(e,{version:!1}):t.version=!1)}function Q(e){var t=d.get(e);return t&&t.version?t.version:void 0}function $(t){n.onWatchStatusChange&&n.onWatchStatusChange(e.createCompilerDiagnostic(t),A,D||v)}function Z(){n.setTimeout&&n.clearTimeout&&(c&&n.clearTimeout(c),M("Scheduling update"),c=n.setTimeout(ee,250))}function ee(){switch(c=void 0,$(e.Diagnostics.File_change_detected_Starting_incremental_compilation),a){case e.ConfigFileProgramReloadLevel.Partial:e.perfLogger.logStartUpdateProgram("PartialConfigReload"),function(){M("Reloading new file names and options");var t=e.getFileNamesFromConfigSpecs(l,e.getDirectoryPath(y),D,N);e.updateErrorForNoInputFiles(t,y,l,_,T)&&(E=!0);x=t.fileNames,V()}();break;case e.ConfigFileProgramReloadLevel.Full:e.perfLogger.logStartUpdateProgram("FullConfigReload"),function(){M("Reloading config file: "+y),a=e.ConfigFileProgramReloadLevel.None,C&&C.clearCache();te(),p=!0,V(),se()}();break;default:e.perfLogger.logStartUpdateProgram("SynchronizeProgram"),V()}e.perfLogger.logStopUpdateProgram("Done")}function te(){re(e.getParsedCommandLineOfConfigFile(y,v,N))}function re(t){x=t.fileNames,D=t.options,l=t.configFileSpecs,S=t.projectReferences,_=e.getConfigFileParsingDiagnostics(t).slice(),T=e.canJsonReportNoInutFiles(t.raw),E=!0}function ne(t,r,n){ie(t,n,r),r===e.FileWatcherEventKind.Deleted&&d.has(n)&&j.invalidateResolutionOfFile(n),j.removeResolutionsFromProjectReferenceRedirects(n),X(n),Z()}function ie(e,t,r){C&&C.addOrDeleteFile(e,t,r)}function ae(t){return I(n,t,oe,e.PollingInterval.Medium,t,"Missing file")}function oe(t,r,n){ie(t,n,r),r===e.FileWatcherEventKind.Created&&o.has(n)&&(o.get(n).close(),o.delete(n),X(n),Z())}function se(){l?e.updateWatchingWildcardDirectories(s||(s=e.createMap()),e.createMapFromTemplate(l.wildcardDirectories),ce):s&&e.clearMap(s,e.closeFileWatcherOf)}function ce(t,r){return O(n,t,(function(r){e.Debug.assert(!!y);var n=W(r);C&&C.addOrDeleteFileOrDirectory(r,n),X(n),e.isPathIgnored(n)||(n===t||!e.hasExtension(n)||e.isSupportedSourceFileName(r,D)?a!==e.ConfigFileProgramReloadLevel.Full&&(a=e.ConfigFileProgramReloadLevel.Partial,Z()):M("Project: "+y+" Detected file add/remove of non supported extension: "+r))}),r,"Wild card directory")}}}(s||(s={})),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")}}(s||(s={})),function(e){var r,n,i=new Date(-864e13),a=new Date(864e13);function o(){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}function f(t,r,n,i){var a,s,c=r,u=r,l=c.getCurrentDirectory(),_=e.createGetCanonicalFileName(c.useCaseSensitiveFileNames()),d=(a=i,s={},e.commonOptionsWithBuild.forEach((function(t){e.hasProperty(a,t.name)&&(s[t.name]=a[t.name])})),s),p=e.createCompilerHostFromProgramHost(c,(function(){return S.projectCompilerOptions}));e.setGetSourceFileAsHashVersioned(p,c),p.getParsedCommandLine=function(e){return h(S,e,g(S,e))},p.resolveModuleNames=e.maybeBind(c,c.resolveModuleNames),p.resolveTypeReferenceDirectives=e.maybeBind(c,c.resolveTypeReferenceDirectives);var f=p.resolveModuleNames?void 0:e.createModuleResolutionCache(l,_);if(!p.resolveModuleNames){var m=function(t,r,n){return e.resolveModuleName(t,r,S.projectCompilerOptions,p,f,n).resolvedModule};p.resolveModuleNames=function(t,r,n,i){return e.loadWithLocalCache(e.Debug.assertEachDefined(t),r,i,m)}}var y=e.createWatchFactory(u,i),v=y.watchFile,b=y.watchFilePath,x=y.watchDirectory,D=y.writeLog,S={host:c,hostWithWatch:u,currentDirectory:l,getCanonicalFileName:_,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(c),writeFileName:c.trace?function(e){return c.trace(e)}:void 0,options:i,baseCompilerOptions:d,rootNames:n,resolvedConfigFilePaths:e.createMap(),configFileCache:o(),projectStatus:o(),buildInfoChecked:o(),extendedConfigCache:e.createMap(),builderPrograms:o(),diagnostics:o(),projectPendingBuild:o(),projectErrorsReported:o(),compilerHost:p,moduleResolutionCache:f,buildOrder:void 0,readFileWithCache:function(e){return c.readFile(e)},projectCompilerOptions:d,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:t,currentInvalidatedProject:void 0,watch:t,allWatchedWildcardDirectories:o(),allWatchedInputFiles:o(),allWatchedConfigFiles:o(),timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:v,watchFilePath:b,watchDirectory:x,writeLog:D};return S}function m(t,r){return e.toPath(r,t.currentDirectory,t.getCanonicalFileName)}function g(e,t){var r=e.resolvedConfigFilePaths,n=r.get(t);if(void 0!==n)return n;var i=m(e,t);return r.set(t,i),i}function y(e){return!!e.options}function h(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.extendedConfigCache,_=t.host;return _.getParsedCommandLine?(s=_.getParsedCommandLine(r))||(i=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,r)):(c.onUnRecoverableConfigFileDiagnostic=function(e){return i=e},s=e.getParsedCommandLineOfConfigFile(r,u,c,l),c.onUnRecoverableConfigFileDiagnostic=e.noop),a.set(n,s||i),s}function v(t,r){return e.resolveConfigFileProjectName(e.resolvePath(t.currentDirectory,r))}function 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=g(t,r);if(!o.has(u))if(a.has(u))c||(i||(i=[])).push(e.createCompilerDiagnostic(e.Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,s.join("\r\n")));else{a.set(u,!0),s.push(r);var _=h(t,r,u);if(_&&_.projectReferences)for(var d=0,p=_.projectReferences;d<p.length;d++){var f=p[d];l(v(t,f.path),c||f.circular)}s.pop(),o.set(u,!0),(n||(n=[])).push(r)}}}function x(t){return t.buildOrder||function(t){var r=b(t,t.rootNames.map((function(e){return v(t,e)})));t.resolvedConfigFilePaths.clear();var n=e.arrayToSet(_(r),(function(e){return g(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&&v(t,r),a=x(t);if(l(a))return a;if(i){var o=g(t,i);if(-1===e.findIndex(a,(function(e){return g(t,e)===o})))return}var s=i?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(r){r.cache&&T(r);var n=r.compilerHost,i=r.host,a=r.readFileWithCache,o=n.getSourceFile,s=e.changeCompilerHostLikeToUseCache(i,(function(e){return m(r,e)}),(function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return o.call.apply(o,t([n],e))})),c=s.originalReadFile,u=s.originalFileExists,l=s.originalDirectoryExists,_=s.originalCreateDirectory,d=s.originalWriteFile,p=s.getSourceFileWithCache,f=s.readFileWithCache;r.readFileWithCache=f,n.getSourceFile=p,r.cache={originalReadFile:c,originalFileExists:u,originalDirectoryExists:l,originalCreateDirectory:_,originalWriteFile:d,originalReadFileWithCache:a,originalGetSourceFile:o}}function T(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 E(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function C(e,t,r){var n=e.projectPendingBuild,i=n.get(t);void 0===i?n.set(t,r):i<r&&n.set(t,r)}function k(t,r){t.allProjectBuildPending&&(t.allProjectBuildPending=!1,t.options.watch&&ee(t,e.Diagnostics.Starting_compilation_in_watch_mode),S(t),_(x(t)).forEach((function(r){return t.projectPendingBuild.set(g(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,r,i,a){var o=!0;return{kind:n.UpdateOutputFileStamps,project:t,projectPath:r,buildOrder:a,getCompilerOptions:function(){return i.options},getCurrentDirectory:function(){return e.currentDirectory},updateOutputFileStatmps:function(){j(e,i,r),o=!1},done:function(){return o&&j(e,i,r),N(e,r)}}}function F(o,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=o===n.Build?y.CreateProgram:y.EmitBundle;return o===n.Build?{kind:o,project:l,projectPath:_,buildOrder:f,getCompilerOptions:function(){return p.options},getCurrentDirectory:function(){return s.currentDirectory},getBuilderProgram:function(){return E(e.identity)},getProgram:function(){return E((function(e){return e.getProgramOrUndefined()}))},getSourceFile:function(e){return E((function(t){return t.getSourceFile(e)}))},getSourceFiles:function(){return C((function(e){return e.getSourceFiles()}))},getOptionsDiagnostics:function(e){return C((function(t){return t.getOptionsDiagnostics(e)}))},getGlobalDiagnostics:function(e){return C((function(t){return t.getGlobalDiagnostics(e)}))},getConfigFileParsingDiagnostics:function(){return C((function(e){return e.getConfigFileParsingDiagnostics()}))},getSyntacticDiagnostics:function(e,t){return C((function(r){return r.getSyntacticDiagnostics(e,t)}))},getAllDependencies:function(e){return C((function(t){return t.getAllDependencies(e)}))},getSemanticDiagnostics:function(e,t){return C((function(r){return r.getSemanticDiagnostics(e,t)}))},getSemanticDiagnosticsOfNextAffectedFile:function(e,t){return E((function(r){return r.getSemanticDiagnosticsOfNextAffectedFile&&r.getSemanticDiagnosticsOfNextAffectedFile(e,t)}))},emit:function(e,t,r,n,i){return e||n?E((function(a){return a.emit(e,t,r,n,i)})):(J(y.SemanticDiagnostics,r),S===y.Emit?L(t,r,i):void 0)},done:T}:{kind:o,project:l,projectPath:_,buildOrder:f,getCompilerOptions:function(){return p.options},getCurrentDirectory:function(){return s.currentDirectory},emit:function(e,t){return S!==y.EmitBundle?D:j(e,t)},done:T};function T(e,t,r){return J(y.Done,e,t,r),N(s,_)}function E(e){return J(y.CreateProgram),b&&e(b)}function C(t){return E(t)||e.emptyArray}function k(){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=r.Success,void(S=y.QueueReferencingProjects);if(s.options.verbose&&Z(s,e.Diagnostics.Building_project_0,l),0===p.fileNames.length)return re(s,_,p.errors),x=r.None,void(S=y.QueueReferencingProjects);var t=s.host,n=s.compilerHost;s.projectCompilerOptions=p.options,function(t,r,n){if(!t.moduleResolutionCache)return;var i=t.moduleResolutionCache,a=m(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=t.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),p.errors,p.projectReferences),S++}function A(e,t,r){e.length?(x=M(s,_,b,e,t,r),S=y.QueueReferencingProjects):S++}function P(n){e.Debug.assertDefined(b),A(t(b.getConfigFileParsingDiagnostics(),b.getOptionsDiagnostics(n),b.getGlobalDiagnostics(n),b.getSyntacticDiagnostics(void 0,n)),r.SyntaxErrors,"Syntactic")}function w(t){A(e.Debug.assertDefined(b).getSemanticDiagnostics(void 0,t),r.TypeErrors,"Semantic")}function L(t,n,a){var o;e.Debug.assertDefined(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})}),n,!1,a).emitResult;if(o)return b.restoreState(),x=M(s,_,b,o,r.DeclarationEmitErrors,"Declaration file"),S=y.QueueReferencingProjects,{emitSkipped:!0,diagnostics:d.diagnostics};var f=s.host,g=s.compilerHost,h=r.DeclarationOutputUnchanged,v=i,D=!1,T=e.createDiagnosticCollection(),E=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):(h&=~r.DeclarationOutputUnchanged,D=!0)),E.set(m(s,a),a),e.writeFile(t?{writeFile:t}:g,T,a,o,l),void 0!==i&&(v=c(i,v))})),R(T,E,v,D,l.length?l[0].name:e.getFirstProjectOutput(p,!f.useCaseSensitiveFileNames()),h),d}function R(t,n,i,o,c,u){var l=t.getDiagnostics();if(l.length)return x=M(s,_,b,l,r.EmitErrors,"Emit"),S=y.QueueReferencingProjects,l;s.writeFileName&&(n.forEach((function(e){return I(s,p,e)})),b&&e.listFiles(b,s.writeFileName));var d=B(s,p,i,e.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,n);return s.diagnostics.delete(_),s.projectStatus.set(_,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:o?a:d,oldestOutputFileName:c}),b&&O(s,_,b),s.projectCompilerOptions=s.baseCompilerOptions,S=y.QueueReferencingProjects,x=u,l}function j(t,a){if(e.Debug.assert(o===n.UpdateBundle),s.options.dry)return Z(s,e.Diagnostics.A_non_dry_build_would_update_output_of_project_0,l),x=r.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=v(s,e.path);return h(s,t,g(s,t))}),a);if(e.isString(u))return Z(s,e.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,l,$(s,u)),S=y.BuildInvalidatedProjectOfBundle,D=F(n.Build,s,l,_,d,p,f);e.Debug.assert(!!u.length);var b=e.createDiagnosticCollection(),T=e.createMap();return u.forEach((function(r){var n=r.name,i=r.text,a=r.writeByteOrderMark;T.set(m(s,n),n),e.writeFile(t?{writeFile:t}:c,b,n,i,a)})),{emitSkipped:!1,diagnostics:R(b,T,i,!1,u[0].name,r.DeclarationOutputUnchanged)}}function J(t,r,n,i){for(;S<=t&&S<y.Done;){var a=S;switch(S){case y.CreateProgram:k();break;case y.SyntaxDiagnostics:P(r);break;case y.SemanticDiagnostics:w(r);break;case y.Emit:L(n,r,i);break;case y.EmitBundle:j(n,i);break;case y.BuildInvalidatedProjectOfBundle:e.Debug.assertDefined(D).done(r),S=y.Done;break;case y.QueueReferencingProjects:K(s,l,_,d,p,f,e.Debug.assertDefined(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||!!n.errors.length||!e.isIncrementalCompilation(n.options))}function w(t,r,i){if(t.projectPendingBuild.size&&!l(r)){if(t.currentInvalidatedProject)return e.arrayIsEqualTo(t.currentInvalidatedProject.buildOrder,r)?t.currentInvalidatedProject:void 0;for(var a=t.options,o=t.projectPendingBuild,s=0;s<r.length;s++){var c=r[s],u=g(t,c),_=t.projectPendingBuild.get(u);if(void 0!==_){i&&(i=!1,ae(t,r));var d=h(t,c,u);if(d){if(_===e.ConfigFileProgramReloadLevel.Full)G(t,c,u),Y(t,c,u,d),X(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,X(t,c,u,d)}var f=R(t,d,u);if(oe(t,c,f),!a.force){if(f.type===e.UpToDateStatusType.UpToDate){re(t,u,d.errors),o.delete(u),a.dry&&Z(t,e.Diagnostics.Project_0_is_up_to_date,c);continue}if(f.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes)return re(t,u,d.errors),A(t,c,u,d,r)}if(f.type!==e.UpToDateStatusType.UpstreamBlocked){if(f.type!==e.UpToDateStatusType.ContainerOnly)return F(P(t,f,d)?n.Build:n.UpdateBundle,t,c,u,s,d,r);re(t,u,d.errors),o.delete(u)}else re(t,u,d.errors),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 ne(t,u),o.delete(u)}}}}function I(e,t,r){var n=e.writeFileName;n&&t.options.listEmittedFiles&&n("TSFILE: "+r)}function O(e,t,r){var n=e.host,i=e.watch,a=e.builderPrograms;n.afterProgramEmitAndDiagnostics&&n.afterProgramEmitAndDiagnostics(r),i&&(r.releaseProgram(),a.set(t,r))}function M(t,r,n,i,a,o){return re(t,r,i),n&&t.writeFileName&&e.listFiles(n,t.writeFileName),t.projectStatus.set(r,{type:e.UpToDateStatusType.Unbuildable,reason:o+" errors"}),n&&O(t,r,n),t.projectCompilerOptions=t.baseCompilerOptions,a}function L(t,r,n,i){if(n<(t.host.getModifiedTime(r)||e.missingFileModifiedTime))return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:i,newerInputFileName:r}}function R(t,r,n){if(void 0===r)return{type:e.UpToDateStatusType.Unbuildable,reason:"File deleted mid-build"};var o=t.projectStatus.get(n);if(void 0!==o)return o;var s=function(t,r,n){for(var o=void 0,s=i,l=t.host,_=0,d=r.fileNames;_<d.length;_++){var p=d[_];if(!l.fileExists(p))return{type:e.UpToDateStatusType.Unbuildable,reason:p+" does not exist"};var f=l.getModifiedTime(p)||e.missingFileModifiedTime;f>s&&(o=p,s=f)}if(!r.fileNames.length&&!e.canJsonReportNoInutFiles(r.raw))return{type:e.UpToDateStatusType.ContainerOnly};for(var m,y=e.getAllProjectOutputs(r,!l.useCaseSensitiveFileNames()),v="(none)",b=a,x="(none)",D=i,S=i,T=!1,E=0,C=y;E<C.length;E++){var k=C[E];if(!l.fileExists(k)){m=k;break}var N=l.getModifiedTime(k)||e.missingFileModifiedTime;if(N<b&&(b=N,v=k),N<s){T=!0;break}if(N>D&&(D=N,x=k),u(k))S=c(S,l.getModifiedTime(k)||e.missingFileModifiedTime)}var A,F=!1,P=!1;if(r.projectReferences){t.projectStatus.set(n,{type:e.UpToDateStatusType.ComputingUpstream});for(var w=0,I=r.projectReferences;w<I.length;w++){var O=I[w];P=P||!!O.prepend;var M=e.resolveProjectReferencePath(O),B=g(t,M),j=R(t,h(t,M,B),B);if(j.type!==e.UpToDateStatusType.ComputingUpstream&&j.type!==e.UpToDateStatusType.ContainerOnly){if(j.type===e.UpToDateStatusType.Unbuildable||j.type===e.UpToDateStatusType.UpstreamBlocked)return{type:e.UpToDateStatusType.UpstreamBlocked,upstreamProjectName:O.path,upstreamProjectBlocked:j.type===e.UpToDateStatusType.UpstreamBlocked};if(j.type!==e.UpToDateStatusType.UpToDate)return{type:e.UpToDateStatusType.UpstreamOutOfDate,upstreamProjectName:O.path};if(!m){if(j.newestInputFileTime&&j.newestInputFileTime<=b)continue;if(j.newestDeclarationFileContentChangedTime&&j.newestDeclarationFileContentChangedTime<=b){F=!0,A=O.path;continue}return e.Debug.assert(void 0!==v,"Should have an oldest output filename here"),{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:v,newerProjectName:O.path}}}}}if(void 0!==m)return{type:e.UpToDateStatusType.OutputMissing,missingOutputFileName:m};if(T)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:v,newerInputFileName:o};var K=L(t,r.options.configFilePath,b,v);if(K)return K;var J=e.forEach(r.options.configFile.extendedSourceFiles||e.emptyArray,(function(e){return L(t,e,b,v)}));if(J)return J;if(!t.buildInfoChecked.has(n)){t.buildInfoChecked.set(n,!0);var z=e.getTsBuildInfoEmitOutputFilePath(r.options);if(z){var U=t.readFileWithCache(z),V=U&&e.getBuildInfo(U);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:v,newerProjectName:A}:{type:F?e.UpToDateStatusType.UpToDateWithUpstreamTypes:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:S,newestInputFileTime:s,newestOutputFileTime:D,newestInputFileName:o,newestOutputFileName:x,oldestOutputFileName:v}}(t,r,n);return t.projectStatus.set(n,s),s}function B(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(m(t,f))||(l&&(l=!1,Z(t,i,r.options.configFilePath)),u(f)&&(n=c(n,o.getModifiedTime(f)||e.missingFileModifiedTime)),o.setModifiedTime(f,_),I(t,r,f))}return n}function j(t,r,n){if(t.options.dry)return Z(t,e.Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0,r.options.configFilePath);var a=B(t,r,i,e.Diagnostics.Updating_output_timestamps_of_project_0);t.projectStatus.set(n,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:a,oldestOutputFileName:e.getFirstProjectOutput(r,!t.host.useCaseSensitiveFileNames())})}function K(t,n,i,a,o,s,c){if(!(c&r.AnyErrors)&&o.options.composite)for(var u=a+1;u<s.length;u++){var l=s[u],_=g(t,l);if(!t.projectPendingBuild.has(_)){var d=h(t,l,_);if(d&&d.projectReferences)for(var p=0,f=d.projectReferences;p<f.length;p++){var m=f[p];if(g(t,v(t,m.path))===i){var y=t.projectStatus.get(_);if(y)switch(y.type){case e.UpToDateStatusType.UpToDate:if(c&r.DeclarationOutputUnchanged){m.prepend?t.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&r.DeclarationOutputUnchanged||t.projectStatus.set(_,{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:y.type===e.UpToDateStatusType.OutOfDateWithPrepend?y.outOfDateOutputFileName:y.oldestOutputFileName,newerProjectName:n});break;case e.UpToDateStatusType.UpstreamBlocked:g(t,v(t,y.upstreamProjectName))===i&&E(t,_)}C(t,_,e.ConfigFileProgramReloadLevel.None);break}}}}}function J(t,r,n,i){var a=D(t,r,i);if(!a)return e.ExitStatus.InvalidProject_OutputsSkipped;k(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 T(t),ie(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=g(e,i);G(e,i,a);var o=h(e,i,a);o&&(Y(e,i,a,o),X(e,i,a,o))}}(t,a),l(a)?e.ExitStatus.ProjectReferenceCycle_OutputsSkipped:a.some((function(e){return t.diagnostics.has(g(t,e))}))?s?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function z(t,r,n){var i=D(t,r,n);if(!i)return e.ExitStatus.InvalidProject_OutputsSkipped;if(l(i))return te(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=g(t,_),p=h(t,_,d);if(void 0!==p)for(var f=0,m=e.getAllProjectOutputs(p,!o.useCaseSensitiveFileNames());f<m.length;f++){var y=m[f];o.fileExists(y)&&(s?s.push(y):(o.deleteFile(y),U(t,d,e.ConfigFileProgramReloadLevel.None)))}else ne(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,E(t,r),C(t,r,n),S(t)}function V(e,t,r){e.reportFileChangeDetected=!0,U(e,t,r),q(e)}function q(e){var t=e.hostWithWatch;t.setTimeout&&t.clearTimeout&&(e.timerToBuildInvalidatedProject&&t.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=t.setTimeout(W,250,e))}function W(t){t.timerToBuildInvalidatedProject=void 0,t.reportFileChangeDetected&&(t.reportFileChangeDetected=!1,t.projectErrorsReported.clear(),ee(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&&q(t):(T(t),ie(t,r))}function G(t,r,n){t.watch&&!t.allWatchedConfigFiles.has(n)&&t.allWatchedConfigFiles.set(n,t.watchFile(t.hostWithWatch,r,(function(){V(t,n,e.ConfigFileProgramReloadLevel.Full)}),e.PollingInterval.High,"Config file",r))}function H(t,r,n){return 0===e.comparePaths(r,n,t.currentDirectory,!t.host.useCaseSensitiveFileNames())}function Y(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=m(t,o);s===m(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)?V(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,"Wild card directory",r)}))}function X(t,r,n,i){t.watch&&e.mutateMap(s(t.allWatchedInputFiles,n),e.arrayToMap(i.fileNames,(function(e){return m(t,e)})),{createNewValue:function(i,a){return t.watchFilePath(t.hostWithWatch,a,(function(){return V(t,n,e.ConfigFileProgramReloadLevel.None)}),e.PollingInterval.Low,i,"Source file",r)},onDeleteValue:e.closeFileWatcher})}function Q(t,r,n,i){var a=f(t,r,n,i);return{build:function(e,t){return J(a,e,t)},clean:function(e){return z(a,e)},buildReferences:function(e,t){return J(a,e,t,!0)},cleanReferences:function(e){return z(a,e,!0)},getNextInvalidatedProject:function(e){return k(a,e),w(a,x(a),!1)},getBuildOrder:function(){return x(a)},getUpToDateStatusOfProject:function(e){var t=v(a,e),r=g(a,t);return R(a,h(a,t,r),r)},invalidateProject:function(t,r){return U(a,t,r||e.ConfigFileProgramReloadLevel.None)},buildNextInvalidatedProject:function(){return W(a)},getAllParsedConfigs:function(){return e.arrayFrom(e.mapDefinedIterator(a.configFileCache.values(),(function(e){return y(e)?e:void 0})))}}}function $(t,r){return e.convertToRelativePath(r,t.currentDirectory,(function(e){return t.getCanonicalFileName(e)}))}function Z(r,n){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];r.host.reportSolutionBuilderStatus(e.createCompilerDiagnostic.apply(void 0,t([n],i)))}function ee(r,n){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];r.hostWithWatch.onWatchStatusChange&&r.hostWithWatch.onWatchStatusChange(e.createCompilerDiagnostic.apply(void 0,t([n],i)),r.host.getNewLine(),r.baseCompilerOptions)}function te(e,t){var r=e.host;t.forEach((function(e){return r.reportDiagnostic(e)}))}function re(e,t,r){te(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function ne(e,t){re(e,t,[e.configFileCache.get(t)])}function ie(t,r){if(t.needsSummary){t.needsSummary=!1;var n=t.watch||!!t.host.reportErrorSummary,i=t.diagnostics,a=0;l(r)?(ae(t,r.buildOrder),te(t,r.circularDiagnostics),n&&(a+=e.getErrorCountForSummary(r.circularDiagnostics))):(r.forEach((function(r){var n=g(t,r);t.projectErrorsReported.has(n)||te(t,i.get(n)||e.emptyArray)})),n&&i.forEach((function(t){return a+=e.getErrorCountForSummary(t)}))),t.watch?ee(t,e.getWatchErrorSummaryDiagnosticMessage(a),a):t.host.reportErrorSummary&&t.host.reportErrorSummary(a)}}function ae(t,r){t.options.verbose&&Z(t,e.Diagnostics.Projects_in_this_build_Colon_0,r.map((function(e){return"\r\n    * "+$(t,e)})).join(""))}function oe(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,$(t,r),$(t,n.outOfDateOutputFileName),$(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,$(t,r),$(t,n.outOfDateOutputFileName),$(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,$(t,r),$(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,$(t,r),$(t,n.newestInputFileName||""),$(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,$(t,r),$(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,$(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,$(t,r),$(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,$(t,r),$(t,n.upstreamProjectName));case e.UpToDateStatusType.Unbuildable:return Z(t,e.Diagnostics.Failed_to_parse_file_0_Colon_1,$(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,$(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"}(r||(r={})),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 Q(!1,e,t,r)},e.createSolutionBuilderWithWatch=function(e,t,r){return Q(!0,e,t,r)},function(e){e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps"}(n=e.InvalidatedProjectKind||(e.InvalidatedProjectKind={}))}(s||(s={})),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={}))}(s||(s={})),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||[],m=e.arrayToSet(a,e.getDirectoryPath);m.set(o,!0),m.forEach((function(t,r){T(e.combinePaths(r,"package.json"),p),T(e.combinePaths(r,"bower.json"),p),E(e.combinePaths(r,"bower_components"),p),E(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 g=0,y=f;g<y.length;g++){var h=y[g];d.delete(h)&&i&&i("Typing for "+h+" is in exclude list, will be ignored.")}var v=[],b=[];d.forEach((function(e,t){void 0!==e?b.push(e):v.push(t)}));var x={cachedTypingPaths:b,newTypingNames:v,filesToWatch:p};return i&&i("Result: "+JSON.stringify(x)),x;function D(e){d.has(e)||d.set(e,void 0)}function S(t,r){i&&i(r+": "+JSON.stringify(t)),e.forEach(t,D)}function T(r,n){if(t.fileExists(r)){n.push(r);var i=e.readConfigFile(r,(function(e){return t.readFile(e)})).config;S(e.flatMap([i.dependencies,i.devDependencies,i.optionalDependencies,i.peerDependencies],e.getOwnKeys),"Typing names in '"+r+"' dependencies")}}function E(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 m=e.getNormalizedAbsolutePath(f,e.getDirectoryPath(l));i&&i("    Package '"+p.name+"' provides its own types."),d.set(p.name,m)}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"===f(e)?a(t,e.result,e.name,e.isScopeName):a(t,e,t,!1)}}(e.JsTyping||(e.JsTyping={}))}(s||(s={})),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}}!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={}))}(s||(s={})),function(e){function t(t){switch(t.kind){case 241:return e.isInJSFile(t)&&e.getJSDocEnumTag(t)?7:1;case 155:case 190:case 158:case 157:case 279:case 280:case 160:case 159:case 161:case 162:case 163:case 243:case 200:case 201:case 278:case 271:return 1;case 154:case 245:case 246:case 172:return 2;case 315:return void 0===t.name?3:2;case 282:case 244:return 3;case 248:return e.isAmbientModule(t)?5:1===e.getModuleInstanceState(t)?5:4;case 247:case 256:case 257:case 252:case 253:case 258:case 259:return 7;case 288:return 5}return 7}function r(t){for(;152===t.parent.kind;)t=t.parent;return e.isInternalModuleImportEqualsDeclaration(t.parent)&&t.parent.moduleReference===t}function n(e,t){var r=i(e);return!!r&&!!r.parent&&t(r.parent)&&r.parent.expression===r}function i(e){return s(e)?e.parent:e}function a(t){return 75===t.kind&&e.isBreakOrContinueStatement(t.parent)&&t.parent.label===t}function o(t){return 75===t.kind&&e.isLabeledStatement(t.parent)&&t.parent.label===t}function s(e){return e&&e.parent&&193===e.parent.kind&&e.parent.name===e}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 288===n.kind?1:258===n.parent.kind||263===n.parent.kind?7:r(n)?function(t){var r=152===t.kind?t:e.isQualifiedName(t.parent)&&t.parent.right===t?t.parent:void 0;return r&&252===r.parent.kind?7:4}(n):e.isDeclarationName(n)?t(n.parent):function(t){e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent);switch(t.kind){case 103:return!e.isExpressionNode(t);case 182:return!0}switch(t.parent.kind){case 168:return!0;case 187:return!t.parent.isTypeOf;case 215:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)}return!1}(n)?2:function(e){return function(e){var t=e,r=!0;if(152===t.parent.kind){for(;t.parent&&152===t.parent.kind;)t=t.parent;r=t.right===e}return 168===t.parent.kind&&!r}(e)||function(e){var t=e,r=!0;if(193===t.parent.kind){for(;t.parent&&193===t.parent.kind;)t=t.parent;r=t.name===e}if(!r&&215===t.parent.kind&&277===t.parent.parent.kind){var n=t.parent.parent.parent;return 244===n.kind&&112===t.parent.parent.token||245===n.kind&&89===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){return n(t,e.isCallExpression)},e.isNewExpressionTarget=function(t){return n(t,e.isNewExpression)},e.isCallOrNewExpressionTarget=function(t){return n(t,e.isCallOrNewExpression)},e.climbPastPropertyAccess=i,e.getTargetLabel=function(e,t){for(;e;){if(237===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=a,e.isLabelOfLabeledStatement=o,e.isLabelName=function(e){return o(e)||a(e)},e.isTagName=function(t){return e.isJSDocTag(t.parent)&&t.parent.tagName===t},e.isRightSideOfQualifiedName=function(e){return 152===e.parent.kind&&e.parent.right===e},e.isRightSideOfPropertyAccess=s,e.isNameOfModuleDeclaration=function(e){return 248===e.parent.kind&&e.parent.name===e},e.isNameOfFunctionDeclaration=function(t){return 75===t.kind&&e.isFunctionLike(t.parent)&&t.parent.name===t},e.isLiteralNameOfPropertyDeclarationOrIndexAccess=function(t){switch(t.parent.kind){case 158:case 157:case 279:case 282:case 160:case 159:case 162:case 163:case 248:return e.getNameOfDeclaration(t.parent)===t;case 194:return t.parent.argumentExpression===t;case 153:return!0;case 186:return 184===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 288:case 160:case 159:case 243:case 200:case 162:case 163:case 244:case 245:case 247:case 248:return t}}},e.getNodeKind=function t(r){switch(r.kind){case 288:return e.isExternalModule(r)?"module":"script";case 248:return"module";case 244:case 213:return"class";case 245:return"interface";case 246:case 308:case 315:return"type";case 247:return"enum";case 241:return s(r);case 190:return s(e.getRootDeclaration(r));case 201:case 243:case 200:return"function";case 162:return"getter";case 163:return"setter";case 160:case 159:return"method";case 279:var n=r.initializer;return e.isFunctionLike(n)?"method":"property";case 158:case 157:case 280:case 281:return"property";case 166:return"index";case 165:return"construct";case 164:return"call";case 161:return"constructor";case 154:return"type parameter";case 282:return"enum member";case 155:return e.hasModifier(r,92)?"property":"parameter";case 252:case 257:case 261:case 255:return"alias";case 208: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":"";default:return""}function s(t){return e.isVarConst(t)?"const":e.isLet(t)?"let":"var"}},e.isThis=function(t){switch(t.kind){case 103:return!0;case 75:return e.identifierIsThisKeyword(t)&&155===t.parent.kind;default:return!1}};var c=/^\/\/\/\s*</;function u(e,t){return _(e.pos,e.end,t)}function l(e,t){return e.pos<t&&t<e.end}function _(e,t,r){return e<=r.pos&&t>=r.end}function d(e,t,r,n){return Math.max(e,r)<Math.min(t,n)}function p(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 f(e,t,r){return!!m(e,t,r)}function m(t,r,n){return e.find(t.getChildren(n),(function(e){return e.kind===r}))}function g(t){var r=e.find(t.parent.getChildren(),(function(r){return e.isSyntaxList(r)&&u(r,t)}));return e.Debug.assert(!r||e.contains(r.getChildren(),t)),r}function y(e,t,r){return v(e,t,!1,r,!1)}function h(e,t){return v(e,t,!0,void 0,!1)}function v(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=b(t,e,c);if(l&&n(l))return l}}return a}}function b(t,r,n,i){var a=function a(o){if(x(o)&&1!==o.kind)return o;var s=o.getChildren(r);for(var c=0;c<s.length;c++){var u=s[c];if(t<u.end){if(u.getStart(r,!i)>=t||!F(u,r)||T(u)){var l=S(s,c,r);return l&&D(l,r)}return a(u)}}e.Debug.assert(void 0!==n||288===o.kind||1===o.kind||e.isJSDocCommentContainingNode(o));var _=S(s,s.length,r);return _&&D(_,r)}(n||r);return e.Debug.assert(!(a&&T(a))),a}function x(t){return e.isToken(t)&&!T(t)}function D(e,t){if(x(e))return e;var r=e.getChildren(t),n=S(r,r.length,t);return n&&D(n,t)}function S(t,r,n){for(var i=r-1;i>=0;i--){if(T(t[i]))e.Debug.assert(i>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(F(t[i],n))return t[i]}}function T(t){return e.isJsxText(t)&&t.containsOnlyTriviaWhiteSpaces}function E(e,t,r){for(var n=e.kind,i=0;;){var a=b(e.getFullStart(),r);if(!a)return;if((e=a).kind===t){if(0===i)return e;i--}else e.kind===n&&i++}}function C(e,t,r){return t?e.getNonNullableType():r?e.getNonOptionalType():e}function k(t,r,n){var i=n.getTypeAtLocation(t);return e.isOptionalChain(t.parent)&&(i=C(i,!!t.parent.questionDotToken,!0)),(e.isNewExpression(t.parent)?i.getConstructSignatures():i.getCallSignatures()).filter((function(e){return!!e.typeParameters&&e.typeParameters.length>=r}))}function N(t,r){for(var n=t,i=0,a=0;n;){switch(n.kind){case 29:if((n=b(n.getFullStart(),r))&&28===n.kind&&(n=b(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=E(n,18,r)))return;break;case 21:if(!(n=E(n,20,r)))return;break;case 23:if(!(n=E(n,22,r)))return;break;case 27:a++;break;case 38:case 75:case 10:case 8:case 9:case 105:case 90:case 107:case 89:case 133:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(n))break;return}n=b(n.getFullStart(),r)}}function A(t,r,n){return e.formatting.getRangeOfEnclosingComment(t,r,void 0,n)}function F(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function P(e,t,r){var n=A(e,t,void 0);return!!n&&r===c.test(e.text.substring(n.pos,n.end))}function w(e,t){return{span:e,newText:t}}function I(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function O(t,r,n,i){return e.createImportDeclaration(void 0,void 0,t||r?e.createImportClause(t,r&&r.length?e.createNamedImports(r):void 0):void 0,"string"==typeof n?M(n,i):n)}function M(t,r){return e.createLiteral(t,0===r)}function L(t,r){return e.isStringDoubleQuoted(t,r)?1:0}function R(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 B(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 j(t,r,n){return e.textSpanContainsPosition(t,r.getStart(n))&&r.getEnd()<=e.textSpanEnd(t)}function K(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}e.getLineStartPositionForPosition=function(t,r){return e.getLineStarts(r)[r.getLineAndCharacterOfPosition(t).line]},e.rangeContainsRange=u,e.rangeContainsRangeExclusive=function(e,t){return l(e,t.pos)&&l(e,t.end)},e.rangeContainsPosition=function(e,t){return e.pos<=t&&t<=e.end},e.rangeContainsPositionExclusive=l,e.startEndContainsRange=_,e.rangeContainsStartEnd=function(e,t,r){return e.pos<=t&&e.end>=r},e.rangeOverlapsWithStartEnd=function(e,t,r){return d(e.pos,e.end,t,r)},e.nodeOverlapsWithStartEnd=function(e,t,r,n){return d(e.getStart(t),e.end,r,n)},e.startEndOverlapsWithStartEnd=d,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 244:case 245:case 247:case 192:case 188:case 172:case 222:case 249:case 250:case 256:case 260:return p(r,19,n);case 278:return t(r.block,n);case 196:if(!r.arguments)return!0;case 195:case 199:case 181:return p(r,21,n);case 169:case 170:return t(r.type,n);case 161:case 162:case 163:case 243:case 200:case 160:case 159:case 165:case 164:case 201:return r.body?t(r.body,n):r.type?t(r.type,n):f(r,21,n);case 248:return!!r.body&&t(r.body,n);case 226:return r.elseStatement?t(r.elseStatement,n):t(r.thenStatement,n);case 225:return t(r.expression,n)||f(r,26,n);case 191:case 189:case 194:case 153:case 174:return p(r,23,n);case 166:return r.type?t(r.type,n):f(r,23,n);case 275:case 276:return!1;case 229:case 230:case 231:case 228:return t(r.statement,n);case 227:return f(r,110,n)?p(r,21,n):t(r.statement,n);case 171:return t(r.exprName,n);case 203:case 202:case 204:case 211:case 212:return t(r.expression,n);case 197:return t(r.template,n);case 210:var i=e.lastOrUndefined(r.templateSpans);return t(i,n);case 220:return e.nodeIsPresent(r.literal);case 259:case 253:return e.nodeIsPresent(r.moduleSpecifier);case 206:return t(r.operand,n);case 208:return t(r.right,n);case 209:return t(r.whenFalse,n);default:return!0}}(t,n)},e.findListItemInfo=function(t){var r=g(t);if(r){var n=r.getChildren();return{listItemIndex:e.indexOfNode(n,t),list:r}}},e.hasChildOfKind=f,e.findChildOfKind=m,e.findContainingList=g,e.getTouchingPropertyName=function(t,r){return y(t,r,(function(t){return e.isPropertyNameLiteral(t)||e.isKeyword(t.kind)}))},e.getTouchingToken=y,e.getTokenAtPosition=h,e.findTokenOnLeftOfPosition=function(t,r){var n=h(t,r);return e.isToken(n)&&r>n.getStart(t)&&r<n.getEnd()?n:b(r,t)},e.findNextToken=function(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)&&F(e,n)?r(e):void 0}))}(r)},e.findPrecedingToken=b,e.isInString=function(t,r,n){if(void 0===n&&(n=b(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=h(e,t);return!!r&&(11===r.kind||(29===r.kind&&11===r.parent.kind||(29===r.kind&&274===r.parent.kind||(!(!r||19!==r.kind||274!==r.parent.kind)||29===r.kind&&267===r.parent.kind))))},e.isInTemplateString=function(t,r){var n=h(t,r);return e.isTemplateLiteralKind(n.kind)&&r>n.getStart(t)},e.isInJSXText=function(t,r){var n=h(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=E,e.removeOptionality=C,e.isPossiblyTypeArgumentPosition=function t(r,n,i){var a=N(r,n);return void 0!==a&&(e.isPartOfTypeNode(a.called)||0!==k(a.called,a.nTypeArguments,i).length||t(a.called,n,i))},e.getPossibleGenericSignatures=k,e.getPossibleTypeArgumentsInfo=N,e.isInComment=A,e.hasDocComment=function(t,r){var n=h(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"),n.length>0?n.join(","):""},e.getTypeArgumentOrTypeParameterList=function(t){return 168===t.kind||195===t.kind?t.typeArguments:e.isFunctionLike(t)||244===t.kind||245===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 118:case 116:case 117: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(191===t.kind||192===t.kind){if(208===t.parent.kind&&t.parent.left===t&&62===t.parent.operatorToken.kind)return!0;if(231===t.parent.kind&&t.parent.initializer===t)return!0;if(e(279===t.parent.kind?t.parent.parent:t.parent))return!0}return!1},e.isInReferenceComment=function(e,t){return P(e,t,!0)},e.isInNonReferenceComment=function(e,t){return P(e,t,!1)},e.createTextSpanFromNode=function(t,r,n){return e.createTextSpanFromBounds(t.getStart(r),(n||t).getEnd())},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 w(e.createTextSpan(t,r),n)},e.createTextChange=w,e.typeKeywords=[124,150,127,90,133,136,99,139,140,137,142,143,105,109,145,146,147],e.isTypeKeyword=function(t){return e.contains(e.typeKeywords,t)},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 153===t.kind?e.isStringOrNumericLiteralLike(t.expression)?t.expression.text:void 0:e.getTextOfIdentifierOrLiteral(t)},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.hostUsesCaseSensitiveFileNames=I,e.hostGetCanonicalFileName=function(t){return e.createGetCanonicalFileName(I(t))},e.makeImportIfNecessary=function(e,t,r,n){return e||t&&t.length?O(e,t,r,n):void 0},e.makeImport=O,e.makeStringLiteral=M,function(e){e[e.Single=0]="Single",e[e.Double=1]="Double"}(e.QuotePreference||(e.QuotePreference={})),e.quotePreferenceFromString=L,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?L(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=R(t);return void 0===r?void 0:e.unescapeLeadingUnderscores(r)},e.symbolEscapedNameNoDefault=R,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=B,e.isMemberSymbolInBaseType=function(e,t){return B(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)||!j(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.insertImport=function(t,r,n){var i=e.findLast(r.statements,e.isAnyImportSyntax);i?t.insertNodeAfter(r,i,n):t.insertNodeAtTopOfFile(r,n,!0)},e.textSpansEqual=K,e.documentSpansEqual=function(e,t){return e.fileName===t.fileName&&K(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}}}(s||(s={})),function(e){function t(e){return e.declarations&&e.declarations.length>0&&155===e.declarations[0].kind}e.isFirstDeclarationOfSymbolParameter=t;var n=function(){var t,r,n,o,s=10*e.defaultMaximumTruncationLength;d();var c=function(t){return _(t,e.SymbolDisplayPartKind.text)};return{displayParts:function(){var r=t.length&&t[t.length-1].text;return o>s&&r&&"..."!==r&&(e.isWhiteSpaceLike(r.charCodeAt(r.length-1))||t.push(a(" ",e.SymbolDisplayPartKind.space)),t.push(a("...",e.SymbolDisplayPartKind.punctuation))),t},writeKeyword:function(t){return _(t,e.SymbolDisplayPartKind.keyword)},writeOperator:function(t){return _(t,e.SymbolDisplayPartKind.operator)},writePunctuation:function(t){return _(t,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(t){return _(t,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(t){return _(t,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(t){return _(t,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(t){return _(t,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(t){return _(t,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(t){return _(t,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:function(e,r){if(o>s)return;l(),o+=e.length,t.push(i(e,r))},writeLine:function(){if(o>s)return;o+=1,t.push(u()),r=!0},write:c,writeComment:c,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:d,trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function l(){if(!(o>s)&&r){var i=e.getIndentString(n);i&&(o+=i.length,t.push(a(i,e.SymbolDisplayPartKind.space))),r=!1}}function _(e,r){o>s||(l(),o+=e.length,t.push(a(e,r)))}function d(){t=[],r=!0,n=0,o=0}}();function i(r,n){return a(r,function(r){var n=r.flags;if(3&n)return t(r)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName;if(4&n)return e.SymbolDisplayPartKind.propertyName;if(32768&n)return e.SymbolDisplayPartKind.propertyName;if(65536&n)return e.SymbolDisplayPartKind.propertyName;if(8&n)return e.SymbolDisplayPartKind.enumMemberName;if(16&n)return e.SymbolDisplayPartKind.functionName;if(32&n)return e.SymbolDisplayPartKind.className;if(64&n)return e.SymbolDisplayPartKind.interfaceName;if(384&n)return e.SymbolDisplayPartKind.enumName;if(1536&n)return e.SymbolDisplayPartKind.moduleName;if(8192&n)return e.SymbolDisplayPartKind.methodName;if(262144&n)return e.SymbolDisplayPartKind.typeParameterName;if(524288&n)return e.SymbolDisplayPartKind.aliasName;if(2097152&n)return e.SymbolDisplayPartKind.aliasName;return e.SymbolDisplayPartKind.text}(n))}function a(t,r){return{text:t,kind:e.SymbolDisplayPartKind[r]}}function o(t){return a(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function s(t){return a(t,e.SymbolDisplayPartKind.text)}e.symbolPart=i,e.displayPart=a,e.spacePart=function(){return a(" ",e.SymbolDisplayPartKind.space)},e.keywordPart=o,e.punctuationPart=function(t){return a(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)},e.operatorPart=function(t){return a(e.tokenToString(t),e.SymbolDisplayPartKind.operator)},e.textOrKeywordPart=function(t){var r=e.stringToToken(t);return void 0===r?s(t):o(r)},e.textPart=s;var c="\r\n";function u(){return a("\n",e.SymbolDisplayPartKind.lineBreak)}function l(e){try{return e(n),n.displayParts()}finally{n.clear()}}function _(t,r){return e.ensureScriptKind(t,r&&r.getScriptKind&&r.getScriptKind(t))}function d(e){return 0!=(33554432&e.flags)}function p(e){return 0!=(2097152&e.flags)}function f(e,t){void 0===t&&(t=!0);var r=e&&g(e);return r&&!t&&y(r),r}function m(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.createBindingElement(t.dotDotDotToken,t.propertyName||t.name,c,t.initializer));else if(n&&i&&e.isIdentifier(t)){var s,c;(c=(s=i.getSymbolAtLocation(t))&&n.get(String(e.getSymbolId(s))))&&(o=e.createIdentifier(c.text))}return o||(o=g(t,n,i,a)),o&&!r&&y(o),a&&o&&a(t,o),o}function g(t,r,n,i){var a=r||n||i?e.visitEachChild(t,(function(e){return m(e,!0,r,n,i)}),e.nullTransformationContext):e.visitEachChild(t,f,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 y(e){h(e),v(e)}function h(e){b(e,512,x)}function v(t){b(t,1024,e.getLastChild)}function b(t,r,n){e.addEmitFlags(t,r);var i=n(t);i&&b(i,r,n)}function x(e){return e.forEachChild((function(e){return e}))}function D(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 S(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 T(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function E(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function C(e){return 164===e||165===e||166===e||157===e||159===e}function k(e){return 243===e||161===e||160===e||162===e||163===e}function N(e){return 248===e}function A(e){return 224===e||225===e||227===e||232===e||233===e||234===e||238===e||240===e||158===e||246===e||253===e||252===e||259===e||251===e||258===e}function F(e,t){return w(e,e.fileExists,t)}function P(e){try{return e()}catch(e){return}}function w(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return P((function(){return t&&t.apply(e,r)}))}function I(t,n){if(n.readFile){var i=n.readFile(t),a=i&&function(e){try{return JSON.parse(e)}catch(e){return}}(i);if(a){for(var o={},s=0,c=["dependencies","devDependencies","optionalDependencies","peerDependencies"];s<c.length;s++){var u=c[s],l=a[u];if(l){var _=e.createMap();for(var d in l)_.set(d,l[d]);o[u]=_}}var p=[[1,o.dependencies],[2,o.devDependencies],[8,o.optionalDependencies],[4,o.peerDependencies]];return r(r({},o),{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}}}}e.getNewLineOrDefaultFromHost=function(e,t){return t&&t.newLineCharacter||e.getNewLine&&e.getNewLine()||c},e.lineBreakPart=u,e.mapToDisplayParts=l,e.typeToDisplayParts=function(e,t,r,n){return void 0===n&&(n=0),l((function(i){e.writeType(t,r,17408|n,i)}))},e.symbolToDisplayParts=function(e,t,r,n,i){return void 0===i&&(i=0),l((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,l((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=_(t,r);return e.some(n,(function(e){return e===a}))},e.getScriptKind=_,e.getSymbolTarget=function(t,r){for(var n=t;p(n)||d(n)&&n.target;)n=d(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=f,e.getSynthesizedDeepCloneWithRenames=m,e.getSynthesizedDeepClones=function(t,r){return void 0===r&&(r=!0),t&&e.createNodeArray(t.map((function(e){return f(e,r)})),t.hasTrailingComma)},e.suppressLeadingAndTrailingTrivia=y,e.suppressLeadingTrivia=h,e.suppressTrailingTrivia=v,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],m=f.span,g=f.newText,y=S(g,n);if(-1!==y&&(o=m.start+a+y,!i))return o;a+=g.length-m.length}}return e.Debug.assert(i),e.Debug.assert(o>=0),o},e.copyLeadingComments=function(t,r,n,i,a){e.forEachLeadingCommentRange(n.text,t.pos,D(r,n,i,a,e.addSyntheticLeadingComment))},e.copyTrailingComments=function(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.end,D(r,n,i,a,e.addSyntheticTrailingComment))},e.copyTrailingAsLeadingComments=function(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.pos,D(r,n,i,a,e.addSyntheticLeadingComment))},e.getContextualTypeFromParent=function(e,t){var r=e.parent;switch(r.kind){case 196:return t.getContextualType(r);case 208:var n=r,i=n.left,a=n.operatorToken,o=n.right;return T(a.kind)?t.getTypeAtLocation(e===o?i:o):t.getContextualType(e);case 275:return r.expression===e?E(r,t):void 0;default:return t.getContextualType(e)}},e.quote=function(t,r){if(/^\d+$/.test(t))return t;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=T,e.isStringLiteralOrTemplate=function(e){switch(e.kind){case 10:case 14:case 210:case 197:return!0;default:return!1}},e.hasIndexSignature=function(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()},e.getSwitchedType=E,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:{readFile:n.readFile,fileExists:n.fileExists,directoryExists:n.directoryExists,getSourceFiles:r.getSourceFiles,getCurrentDirectory:r.getCurrentDirectory,getCommonSourceDirectory:r.getCommonSourceDirectory}});return a?s:void 0},e.syntaxRequiresTrailingCommaOrSemicolonOrASI=C,e.syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI=k,e.syntaxRequiresTrailingModuleBlockOrSemicolonOrASI=N,e.syntaxRequiresTrailingSemicolonOrASI=A,e.syntaxMayBeASICandidate=e.or(C,k,N,A),e.isASICandidate=function(t,r){var n=t.getLastToken(r);if(n&&26===n.kind)return!1;if(C(t.kind)){if(n&&27===n.kind)return!1}else if(N(t.kind)){if((i=e.last(t.getChildren(r)))&&e.isModuleBlock(i))return!1}else if(k(t.kind)){var i;if((i=e.last(t.getChildren(r)))&&e.isFunctionBlock(i))return!1}else if(!A(t.kind))return!1;if(227===t.kind)return!0;var a=e.findAncestor(t,(function(e){return!e.parent})),o=e.findNextToken(t,a,r);return!o||19===o.kind||r.getLineAndCharacterOfPosition(t.getEnd()).line!==r.getLineAndCharacterOfPosition(o.getStart(r)).line},e.probablyUsesSemicolons=function(t){var r=0,n=0;return e.forEachChild(t,(function i(a){if(A(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 w(e,e.getDirectories,t)||[]},e.tryReadDirectory=function(t,r,n,i,a){return w(t,t.readDirectory,r,n,i,a)||e.emptyArray},e.tryFileExists=F,e.tryDirectoryExists=function(t,r){return P((function(){return e.directoryProbablyExists(r,t)}))||!1},e.tryAndIgnoreErrors=P,e.tryIOAndConsumeErrors=w,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");F(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 F(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=I(i,r);a&&n.push(a)}})),n},e.createPackageJsonInfo=I,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")}}(s||(s={})),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 m=p.length;f&&_.push(15),o.setText(i);var g=0,y=[],h=0;do{u=o.scan(),e.isTrivia(u)||(x(),l=u);var v=o.getTextPos();if(n(o.getTokenPos(),v,m,a(u),y),v>=i.length){var b=r(o,u,e.lastOrUndefined(_));void 0!==b&&(g=b)}}while(1!==u);function x(){switch(u){case 43:case 67:t[l]||13!==o.reScanSlashToken()||(u=13);break;case 29:75===l&&h++;break;case 31:h>0&&h--;break;case 124:case 142:case 139:case 127:case 143:h>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())?_.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 130:case 141:case 128:case 119:return!0;default:return!1}}(l,u)&&(u=75)}}return{endOfLineState:g,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,103,45,46,21,23,19,105,90],(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 97:case 96:case 122:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 73:case 72:case 74:case 69:case 70:case 71:case 63:case 64:case 65:case 67:case 68:case 62:case 27:case 60:return!0;default:return!1}}(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 248:case 244:case 245:case 243: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 h(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 310:a(i);break;case 314:p(i),t=i.end;break;case 313:case 311:h(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),h(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++){h(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;)m()}function m(){var e=c.getTextPos(),t=c.scan(),r=c.getTextPos(),n=y(t);n&&l(e,r-e,n)}function g(t){if(e.isJSDoc(t))return!0;if(e.nodeIsMissing(t))return!0;var n=function(e){switch(e.parent&&e.parent.kind){case 266:if(e.parent.tagName===e)return 19;break;case 267:if(e.parent.tagName===e)return 20;break;case 265:if(e.parent.tagName===e)return 21;break;case 271: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&&(241===n.kind||158===n.kind||155===n.kind||271===n.kind))return 5;if(208===n.kind||206===n.kind||207===n.kind||209===n.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 25;if(10===t)return r&&271===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 244:return r.parent.name===r?11:void 0;case 154:return r.parent.name===r?15:void 0;case 245:return r.parent.name===r?13:void 0;case 247:return r.parent.name===r?12:void 0;case 248:return r.parent.name===r?14:void 0;case 155:return r.parent.name===r?e.isThisIdentifier(r)?3:17:void 0}return 2}}function h(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];g(u)||h(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}(s||(s={})),function(e){!function(r){!function(n){function i(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map((function(e){var t=e.name,n=e.kind,i=e.span;return{name:t,kind:n,kindModifiers:a(e.extension),sortText:r.SortText.LocationPriority,replacementSpan:i}}))}}function a(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 o;function s(t,r,n,i,a,o){var s,l,_=r.parent;switch(_.kind){case 186:switch(_.parent.kind){case 168:return{kind:2,types:u(i.getTypeArgumentConstraint(_)),isNewIdentifier:!1};case 184:return c(i.getTypeFromTypeNode(_.parent.objectType));case 187:return{kind:0,paths:p(t,r,a,o,i)};case 177: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 279:return e.isObjectLiteralExpression(_.parent)&&_.name===r?c(i.getContextualType(_.parent)):h();case 194:var f=_,m=f.expression,g=f.argumentExpression;return r===g?c(i.getTypeAtLocation(m)):void 0;case 195:case 196: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):h()}case 253:case 259:case 263:return{kind:0,paths:p(t,r,a,o,i)};default:return h()}function h(){return{kind:2,types:u(e.getContextualTypeFromParent(r,i)),isNewIdentifier:!1}}}function c(t){return t&&{kind:1,symbols:t.getApparentProperties(),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(r,n,i,a,o){return d(n.text,n.getStart(r)+1,function(r,n,i,a,o){var s=e.normalizeSlashes(n.text),c=r.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)||!i.baseUrl&&(e.isRootedDiskPath(s)||e.isUrl(s))?function(r,n,i,a,o){var s=m(i);return i.rootDirs?function(r,n,i,a,o,s,c){var u=o.project||s.getCurrentDirectory(),l=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),_=function(r,n,i,a){r=r.map((function(t){return e.normalizePath(e.isRootedDiskPath(t)?t:e.combinePaths(n,t))}));var o=e.firstDefined(r,(function(t){return e.containsPath(t,i,n,a)?i.substr(t.length):void 0}));return e.deduplicate(t(r.map((function(t){return e.combinePaths(t,o)})),[i]),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}(r,u,i,l);return e.flatMap(_,(function(e){return y(n,e,a,s,c)}))}(i.rootDirs,r,n,s,i,a,o):y(r,n,s,a,o)}(s,u,i,a,c):function(t,r,n,i,a){var o=n.baseUrl,s=n.paths,c=[],u=m(n);if(o){var _=n.project||i.getCurrentDirectory(),d=e.normalizePath(e.combinePaths(_,o));y(t,d,u,i,void 0,c),s&&h(c,t,d,u.extensions,s,i)}for(var p=v(t),f=0,g=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);f<g.length;f++){var b=g[f];c.push(l(b,"external module name",void 0))}if(x(i,n,r,p,u,c),e.getEmitModuleResolutionKind(n)===e.ModuleResolutionKind.NodeJs){var D=!1;if(void 0===p)for(var T=function(e){c.some((function(t){return t.name===e}))||(D=!0,c.push(l(e,"external module name",void 0)))},E=0,C=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=S;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);E<C.length;E++){var k=C[E];T(k)}D||e.forEachAncestorDirectory(r,(function(r){var n=e.combinePaths(r,"node_modules");e.tryDirectoryExists(i,n)&&y(t,n,u,i,void 0,c)}))}return c}(s,u,i,a,o)}(r,n,i,a,o))}function m(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 y(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 m=e.tryReadDirectory(i,d,s,void 0,["./*"]);if(m){for(var g=e.createMap(),y=0,v=m;y<v.length;y++){var b=v[y];if(b=e.normalizePath(b),!a||0!==e.comparePaths(b,a,r,p)){var x=c||e.fileExtensionIs(b,".json")?e.getBaseFileName(b):e.removeFileExtension(e.getBaseFileName(b));g.set(x,e.tryGetExtensionFromPath(b))}}g.forEach((function(e,t){o.push(l(t,"script",e))}))}var D=e.tryGetDirectories(i,d);if(D)for(var S=0,T=D;S<T.length;S++){var E=T[S],C=e.getBaseFileName(e.normalizePath(E));"@types"!==C&&o.push(_(C))}var k=e.findPackageJson(d,i);if(k){var N=e.readJson(k,i).typesVersions;if("object"===f(N)){var A=e.getPackageJsonTypesVersionsPaths(N),F=A&&A.paths,P=u.slice(e.ensureTrailingDirectorySeparator(d).length);F&&h(o,P,d,s,F,i)}}return o}function h(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=b(s,c,r,n,i,o);_<d.length;_++){var p=d[_];u(p.name,p.kind,p.extension)}}}function v(t){return T(t)?e.hasTrailingDirectorySeparator(t)?t:e.getDirectoryPath(t):void 0}function b(r,n,i,a,o,s){if(!e.endsWith(r,"*"))return e.stringContains(r,"*")?e.emptyArray:d(r);var c=r.slice(0,r.length-1),u=e.tryRemovePrefix(i,c);return void 0===u?d(c):e.flatMap(n,(function(r){return function(r,n,i,a,o){if(!o.readDirectory)return;var s=e.hasZeroOrOneAsteriskCharacter(i)?e.tryParsePattern(i):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=T(r),f=p?e.hasTrailingDirectorySeparator(r)?r:e.getDirectoryPath(r):void 0,m=p?e.combinePaths(u,d+f):u,g=e.normalizePath(s.suffix),y=e.normalizePath(e.combinePaths(n,m)),h=p?y:e.ensureTrailingDirectorySeparator(y)+d,v=g?"**/*":"./*",b=e.mapDefined(e.tryReadDirectory(o,y,a,void 0,[v]),(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(o,y).map((function(t){return e.combinePaths(y,t)})),(function(e){var t=D(e);return void 0===t?void 0:_(t)}));return t(b,x);function D(t){var r=function(t,r,n){return e.startsWith(t,r)&&e.endsWith(t,n)?t.slice(r.length,t.length-n.length):void 0}(e.normalizePath(t),h,g);return void 0===r?void 0:function(t){return t[0]===e.directorySeparator?t.slice(1):t}(r)}}(u,a,r,o,s)}));function d(t){return e.startsWith(t,i)?[_(t)]:e.emptyArray}}function x(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&&y(f,p,a,t,void 0,o)}}}}n.getStringLiteralCompletions=function(t,n,a,o,c,u,l,_){if(e.isInReferenceComment(t,n)){var 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=D.exec(c);if(!u)return;var l=u[1],_=u[2],p=u[3],f=e.getDirectoryPath(t.path),g="path"===_?y(p,f,m(n,!0),i,t.path):"types"===_?x(i,n,f,v(p),m(n)):e.Debug.fail();return d(p,s.pos+l.length,g)}(t,n,c,u);return p&&i(p)}if(e.isInString(t,n,a))return a&&e.isStringLiteralLike(a)?function(t,n,a,o,s){if(void 0===t)return;switch(t.kind){case 0:return i(t.paths);case 1:var c=[];return r.getCompletionEntriesFromSymbols(t.symbols,c,n,n,a,99,o,4,s),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:t.hasIndexSignature,entries:c};case 2:c=t.types.map((function(e){return{name:e.value,kindModifiers:"",kind:"string",sortText:"0"}}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t.isNewIdentifier,entries:c};default:return e.Debug.assertNever(t)}}(s(t,a,n,o,c,u),t,o,l,_):void 0},n.getStringLiteralCompletionDetails=function(t,n,i,o,c,u,l,_){if(o&&e.isStringLiteralLike(o)){var d=s(n,o,i,c,u,l);return d&&function(t,n,i,o,s,c){switch(i.kind){case 0:return(u=e.find(i.paths,(function(e){return e.name===t})))&&r.createCompletionDetails(t,a(u.extension),u.kind,[e.textPart(t)]);case 1:var u;return(u=e.find(i.symbols,(function(e){return e.name===t})))&&r.createCompletionDetailsForSymbol(u,s,o,n,c);case 2:return e.find(i.types,(function(e){return e.value===t}))?r.createCompletionDetails(t,"","type",[e.textPart(t)]):void 0;default:return e.Debug.assertNever(i)}}(t,o,d,n,c,_)}},function(e){e[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types"}(o||(o={}));var D=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,S=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function T(t){return e.stringContains(t,e.directorySeparator)}}(r.StringCompletions||(r.StringCompletions={}))}(e.Completions||(e.Completions={}))}(s||(s={})),function(e){!function(t){var r,n,i,a;function o(e){return!!(4&e.kind)}function s(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function c(t,r){return e.isSourceFileJS(t)&&!e.isCheckJsEnabledForFile(t,r)}function u(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}!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[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"}(n||(n={})),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"}(i||(i={})),function(e){e[e.Continue=0]="Continue",e[e.Success=1]="Success",e[e.Fail=2]="Fail"}(a||(a={})),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){e.symbol.declarations&&(e.symbol=a.getMergedSymbol(e.origin.isDefaultExport&&e.symbol.declarations[0].localSymbol||e.symbol.declarations[0].symbol)),e.origin.moduleSymbol.declarations&&(e.origin.moduleSymbol=a.getMergedSymbol(e.origin.moduleSymbol.declarations[0].symbol))})),t)}}},t.getCompletionsAtPosition=function(n,i,a,o,l,_,p){var f=i.getTypeChecker(),m=i.getCompilerOptions(),g=e.findPrecedingToken(l,o);if(!p||e.isInString(o,l,g)||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&&29===n.kind&&(!e.isBinaryExpression(n.parent)||R(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,p,g,l)){var y=t.StringCompletions.getStringLiteralCompletions(o,l,g,f,m,n,a,_);if(y)return y;if(g&&e.isBreakOrContinueStatement(g.parent)&&(76===g.kind||81===g.kind||75===g.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}}(g.parent);var v=E(i,a,o,c(o,m),l,_,void 0,n);if(v)switch(v.kind){case 0:return function(t,n,i,a,o,s){var l=o.symbols,_=o.completionKind,p=o.isInSnippetScope,f=o.isNewIdentifierLocation,m=o.location,g=o.propertyAccessToConvert,y=o.keywordFilters,v=o.literals,b=o.symbolToOriginInfoMap,x=o.recommendedCompletion,D=o.isJsxInitializer,S=o.insideJsDocTagTypeExpression,T=o.symbolToSortTextMap;if(m&&m.parent&&e.isJsxClosingElement(m.parent)){var E=m.parent.parent.openingElement.tagName,C=!!e.findChildOfKind(m.parent,31,t);return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,entries:[{name:E.getFullText(t)+(C?"":">"),kind:"class",kindModifiers:void 0,sortText:r.LocationPriority}]}}var N=[];if(c(t,i)){var F=h(l,N,m,t,n,i.target,a,_,s,g,D,x,b,T);!function(t,n,i,a,o){e.getNameTable(t).forEach((function(t,s){if(t!==n){var c=e.unescapeLeadingUnderscores(s);e.addToSeen(i,c)&&e.isIdentifierText(c,a)&&o.push({name:c,kind:"warning",kindModifiers:"",sortText:r.JavascriptIdentifiers})}}))}(t,m.pos,F,i.target,N)}else{if(!(f||l&&0!==l.length||0!==y))return;h(l,N,m,t,n,i.target,a,_,s,g,D,x,b,T)}if(0!==y)for(var P=e.arrayToSet(N,(function(e){return e.name})),w=0,I=function(t,r){if(!r)return A(t);var n=t+7+1;return k[n]||(k[n]=A(t).filter((function(t){return!function(e){switch(e){case 121:case 124:case 150:case 127:case 129:case 87:case 149:case 112:case 131:case 113:case 132:case 133:case 134:case 135:case 136:case 139:case 140:case 116:case 117:case 118:case 137:case 142:case 143:case 144:case 146:case 147:return!0;default:return!1}}(e.stringToToken(t.name))})))}(y,!S&&e.isSourceFileJS(t));w<I.length;w++){var O=I[w];P.has(O.name)||N.push(O)}for(var M=0,L=v;M<L.length;M++){var R=L[M];N.push(d(R))}return{isGlobalCompletion:p,isMemberCompletion:u(_),isNewIdentifierLocation:f,entries:N}}(o,f,m,a,v,_);case 1:return s(e.JsDoc.getJSDocTagNameCompletions());case 2:return s(e.JsDoc.getJSDocTagCompletions());case 3:return s(e.JsDoc.getJSDocParameterNameCompletions(v.tag));default:return e.Debug.assertNever(v)}}};var l,_=function(t){return"object"===f(t)?e.pseudoBigIntToString(t)+"n":JSON.stringify(t)};function d(e){return{name:_(e),kind:"string",kindModifiers:"",sortText:r.LocationPriority}}function p(t,r,n,i,a,s,c,u,l,_,d,p){var f,h,v=u&&function(e){return!!(16&e.kind)}(u),b=u&&function(e){return!!(2&e.kind)}(u)||c;if(u&&function(e){return!!(1&e.kind)}(u))f=c?"this"+(v?"?.":"")+"["+e.quote(s,p)+"]":"this"+(v?"?.":".")+s;else if((b||v)&&_){f=b?c?"["+e.quote(s,p)+"]":"["+s+"]":s,(v||_.questionDotToken)&&(f="?."+f);var x=e.findChildOfKind(_,24,i)||e.findChildOfKind(_,28,i);if(!x)return;var D=e.startsWith(s,_.name.text)?_.name.end:x.end;h=e.createTextSpanFromBounds(x.getStart(i),D)}if(d&&(void 0===f&&(f=s),f="{"+f+"}","boolean"!=typeof d&&(h=e.createTextSpanFromNode(d,i))),u&&function(e){return!!(8&e.kind)}(u)&&_){void 0===f&&(f=s);var S="(await "+_.expression.getText()+")";f=c?""+S+f:S+(v?"?.":".")+f,h=e.createTextSpanFromBounds(_.getStart(i),_.end)}if(void 0===f||p.includeCompletionsWithInsertText)return{name:s,kind:e.SymbolDisplay.getSymbolKind(a,t,n),kindModifiers:e.SymbolDisplay.getSymbolModifiers(t),sortText:r,source:y(u),hasAction:g(!!u&&o(u)),isRecommended:g(m(t,l,a)),insertText:f,replacementSpan:h}}function m(e,t,r){return e===t||!!(1048576&e.flags)&&r.getExportSymbolOfSymbol(e)===t}function g(e){return!!e||void 0}function y(t){return t&&o(t)?e.stripQuotes(t.moduleSymbol.name):void 0}function h(t,n,i,a,o,s,c,u,l,_,d,f,m,g){for(var y=e.timestamp(),h=e.createMap(),v=0,b=t;v<b.length;v++){var x=b[v],D=m?m[e.getSymbolId(x)]:void 0,S=C(x,s,D,u);if(S){var T=S.name,E=S.needsConvertPropertyAccess;if(!h.has(T)){var k=p(x,g&&g[e.getSymbolId(x)]||r.LocationPriority,i,a,o,T,E,D,f,_,d,l);k&&(D||void 0===x.parent&&!e.some(x.declarations,(function(e){return e.getSourceFile()===i.getSourceFile()}))||h.set(T,!0),n.push(k))}}}return c("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(e.timestamp()-y)),h}function v(t,r,n,i,a,o){var s=t.getCompilerOptions(),u=E(t,r,n,c(n,s),i,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},a,o);if(!u)return{type:"none"};if(0!==u.kind)return{type:"request",request:u};var l=u.symbols,d=u.literals,p=u.location,f=u.completionKind,m=u.symbolToOriginInfoMap,g=u.previousToken,h=u.isJsxInitializer,v=e.find(d,(function(e){return _(e)===a.name}));return void 0!==v?{type:"literal",literal:v}:e.firstDefined(l,(function(t){var r=m[e.getSymbolId(t)],n=C(t,s.target,r,f);return n&&n.name===a.name&&y(r)===a.source?{type:"symbol",symbol:t,location:p,symbolToOriginInfoMap:m,previousToken:g,isJsxInitializer:h}:void 0}))||{type:"none"}}function b(t,r,n){return r&&o(r)&&(r.isDefaultExport&&"default"===t.escapedName||"export="===t.escapedName)?e.firstDefined(t.declarations,(function(t){return e.isExportAssignment(t)&&e.isIdentifier(t.expression)?t.expression.text:void 0}))||e.codefix.moduleSymbolToValidIdentifier(r.moduleSymbol,n):t.name}function x(t,r,n){return S(t,"",r,[e.displayPart(t,n)])}function D(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 S(t.name,e.SymbolDisplay.getSymbolModifiers(t),_,u,l,d,o,s)}function S(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 T(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 288===e.kind}))}(t.parent)?t:T(t.parent,r,n))}function E(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,m=!1;if(p){if(e.hasDocComment(i,o)){if(64===i.text.charCodeAt(o-1))return{kind:1};var g=e.getLineStartPositionForPosition(o,i);if(!i.text.substring(g,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 310:case 316:case 311:case 313:case 315:return!0;default:return!1}}(y)&&y.typeExpression&&292===y.typeExpression.kind&&((d=e.getTokenAtPosition(i,o))&&(e.isDeclarationName(d)||316===d.parent.kind&&d.parent.name===d)||(f=ue(y.typeExpression))),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 h=e.findPrecedingToken(o,i,void 0);n("getCompletionData: Get previous token 1: "+(e.timestamp()-_));var v=h;if(v&&o<=v.end&&(e.isIdentifier(v)||e.isKeyword(v.kind))){var x=e.timestamp();v=e.findPrecedingToken(v.getFullStart(),i,void 0),n("getCompletionData: Get previous token 2: "+(e.timestamp()-x))}var D,S=d,E=!1,C=!1,k=!1,N=!1,A=!1,w=e.getTouchingPropertyName(i,o);if(v){if(function(t){var r=e.timestamp(),i=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 241===n||242===n||224===n||247===n||ae(n)||245===n||189===n||246===n||e.isClassLike(r)&&!!r.typeParameters&&r.typeParameters.end>=t.pos;case 24:return 189===n;case 58:return 190===n;case 22:return 189===n;case 20:return 278===n||ae(n);case 18:return 247===n;case 29:return 244===n||213===n||245===n||246===n||e.isFunctionLikeKind(n);case 119:return 158===n&&!e.isClassLike(r.parent);case 25:return 155===n||!!r.parent&&189===r.parent.kind;case 118:case 116:case 117:return 155===n&&!e.isConstructorDeclaration(r.parent);case 122:return 257===n||261===n||255===n;case 130:case 141:return!L(t);case 79:case 87:case 113:case 93:case 108:case 95:case 114:case 80:case 120:case 144:return!0;case 41:return e.isFunctionLike(t.parent)&&!e.isMethodDeclaration(t.parent)}if(P(I(t))&&L(t))return!1;if(ie(t)&&(!e.isIdentifier(t)||e.isParameterPropertyModifier(I(t))||ue(t)))return!1;switch(I(t)){case 121:case 79:case 80:case 129:case 87:case 93:case 113:case 114:case 116:case 117:case 118:case 119:case 108:case 120:return!0;case 125:return e.isPropertyDeclaration(t.parent)}return e.isDeclarationName(t)&&!e.isJsxAttribute(t.parent)&&!(e.isClassLike(t.parent)&&(t!==h||o>h.end))}(t)||function(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(t)||function(e){if(11===e.kind)return!0;if(31===e.kind&&e.parent){if(266===e.parent.kind)return!0;if(267===e.parent.kind||265===e.parent.kind)return!!e.parent.parent&&264===e.parent.parent.kind}return!1}(t);return n("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-r)),i}(v))return void n("Returning an empty list because completion was requested in an invalid position.");var B=v.parent;if(24===v.kind||28===v.kind)switch(E=24===v.kind,C=28===v.kind,B.kind){case 193:if((S=(D=B).expression).end===v.pos&&e.isCallExpression(S)&&S.getChildCount(i)&&21!==e.last(S.getChildren(i)).kind)return;break;case 152:S=B.left;break;case 248:S=B.name;break;case 187:case 218:S=B;break;default:return}else if(1===i.languageVariant){if(B&&193===B.kind&&(v=B,B=B.parent),d.parent===w)switch(d.kind){case 31:264!==d.parent.kind&&266!==d.parent.kind||(w=d);break;case 43:265===d.parent.kind&&(w=d)}switch(B.kind){case 267:43===v.kind&&(N=!0,w=v);break;case 208:if(!R(B))break;case 265:case 264:case 266:29===v.kind&&(k=!0,w=v);break;case 271:switch(h.kind){case 62:A=!0;break;case 75:B!==h.parent&&!B.initializer&&e.findChildOfKind(B,62,i)&&(A=h)}}}}var j=e.timestamp(),K=5,J=!1,z=0,U=[],V=[],q=[],W=u.getImportSuggestionsCache&&u.getImportSuggestionsCache();if(E||C)!function(){K=2;var t=e.isLiteralImportTypeNode(S),r=f||t&&!S.isTypeOf||e.isPartOfTypeNode(S.parent)||e.isPossiblyTypeArgumentPosition(v,i,l),n=e.isInRightSideOfInternalImportEqualsDeclaration(S);if(e.isEntityName(S)||t){var a=e.isModuleDeclaration(S.parent);a&&(J=!0);var o=l.getSymbolAtLocation(S);if(o&&1920&(o=e.skipAlias(o,l)).flags){for(var c=e.Debug.assertEachDefined(l.getExportsOfModule(o),"getExportsOfModule() should all be defined"),u=function(e){return l.isValidPropertyAccess(t?S:S.parent,e.name)},_=function(e){return ne(e)},d=a?function(e){return!!(1920&e.flags)&&!e.declarations.every((function(e){return e.parent===S.parent}))}:n?function(e){return _(e)||u(e)}:r?_:u,p=0,m=c;p<m.length;p++){var g=m[p];d(g)&&U.push(g)}if(!r&&o.declarations&&o.declarations.some((function(e){return 288!==e.kind&&248!==e.kind&&247!==e.kind}))){var y=l.getTypeOfSymbolAtLocation(o,S).getNonOptionalType(),h=!1;if(y.isNullableType())((x=E&&!C&&!1!==s.includeAutomaticOptionalChainCompletions)||C)&&(y=y.getNonNullableType(),x&&(h=!0));Z(y,!!(32768&S.flags),h)}return}}if(e.isMetaProperty(S)&&(98===S.keywordToken||95===S.keywordToken)){var b=98===S.keywordToken?"target":"meta";return void U.push(l.createSymbol(4,e.escapeLeadingUnderscores(b)))}if(!r){var x;y=l.getTypeAtLocation(S).getNonOptionalType(),h=!1;if(y.isNullableType())((x=E&&!C&&!1!==s.includeAutomaticOptionalChainCompletions)||C)&&(y=y.getNonNullableType(),x&&(h=!0));Z(y,!!(32768&S.flags),h)}}();else if(k){var G=e.Debug.assertEachDefined(l.getJsxIntrinsicTagNamesAt(w),"getJsxIntrinsicTagNames() should all be defined");te(),U=G.concat(U),K=3,z=0}else if(N){var H=v.parent.parent.openingElement.tagName,Y=l.getSymbolAtLocation(H);Y&&(U=[Y]),K=3,z=0}else if(!te())return;n("getCompletionData: Semantic work: "+(e.timestamp()-j));var X=h&&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 241:return i.getContextualType(a.initializer);case 208:return i.getTypeAtLocation(a.left);case 271:return i.getContextualTypeForJsxAttribute(a);default:return}case 98:return i.getContextualType(a);case 77:return e.getSwitchedType(e.cast(a,e.isCaseClause),i);case 18:return e.isJsxExpression(a)&&264!==a.parent.kind?i.getContextualTypeForJsxAttribute(a.parent):void 0;default:var o=e.SignatureHelp.getArgumentInfoForCompletions(t,r,n);return o?i.getContextualTypeForArgumentAtIndex(o.invocation,o.argumentIndex+(27===t.kind?1:0)):e.isEqualityOperatorKind(t.kind)&&e.isBinaryExpression(a)&&e.isEqualityOperatorKind(a.operatorToken.kind)?i.getTypeAtLocation(a.left):i.getContextualType(t)}}(h,o,i,l),Q=e.mapDefined(X&&(X.isUnion()?X.types:[X]),(function(e){return e.isLiteral()?e.value:void 0})),$=h&&X&&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)?T(i,t,n):void 0}))}(h,X,l);return{kind:0,symbols:U,completionKind:K,isInSnippetScope:m,propertyAccessToConvert:D,isNewIdentifierLocation:J,location:w,keywordFilters:z,literals:Q,symbolToOriginInfoMap:V,recommendedCompletion:$,previousToken:h,isJsxInitializer:A,insideJsDocTagTypeExpression:f,symbolToSortTextMap:q};function Z(t,r,n){J=!!t.getStringIndexType(),C&&e.some(t.getCallSignatures())&&(J=!0);var i=187===S.kind?S:S.parent;if(a)U.push.apply(U,M(t,l));else for(var o=0,c=t.getApparentProperties();o<c.length;o++){var u=c[o];l.isValidPropertyAccessForCompletions(i,t,u)&&ee(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)&&ee(u,!0,n)}}}function ee(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&&T(o,v,l);if(c&&!V[e.getSymbolId(c)]){U.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),U.push(t))}else _(t),U.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 te(){var a,_;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}(v);if(!n)return 0;if(K=0,192===n.kind){if(!(o=l.getContextualType(n,4)))return 2;J=e.hasIndexSignature(o),t=O(o,n,l),r=n.properties}else{e.Debug.assert(188===n.kind),J=!1;var i=e.getRootDeclaration(n.parent);if(!e.isVariableLike(i))return e.Debug.fail("Root declaration is not variable-like.");var a=e.hasInitializer(i)||e.hasType(i)||231===i.parent.parent.kind;if(a||155!==i.kind||(e.isExpression(i.parent)?a=!!l.getContextualType(i.parent):160!==i.parent.kind&&163!==i.parent.kind||(a=e.isExpression(i.parent.parent)&&!!l.getContextualType(i.parent.parent))),a){var o;if(!(o=l.getTypeAtLocation(n)))return 2;t=l.getPropertiesOfType(o).filter((function(t){return!(24&e.getDeclarationModifierFlagsFromSymbol(t))})),r=n.elements}}t&&t.length>0&&(U=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((279===s.kind||280===s.kind||190===s.kind||160===s.kind||162===s.kind||163===s.kind||281===s.kind)&&!ue(s)){var c=void 0;if(e.isSpreadAssignment(s))oe(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 ce(n,l),l}(t,e.Debug.assertDefined(r)));return se(),1}()||function(){var t=!v||18!==v.kind&&27!==v.kind?void 0:e.tryCast(v.parent,e.isNamedImportsOrExports);if(!t)return 0;var r=(256===t.kind?t.parent.parent:t.parent).moduleSpecifier,n=l.getSymbolAtLocation(r);if(!n)return 2;K=3,J=!1;var i=l.getExportsAndPropertiesOfModule(n),a=e.arrayToSet(t.elements,(function(e){return ue(e)?void 0:(e.propertyName||e.name).escapedText}));return U=i.filter((function(e){return"default"!==e.escapedName&&!a.get(e.escapedName)})),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(ie(t))return r.parent}}}(v)?(K=5,J=!0,z=4,1):0)||function(){var t=function(t,r,n,i){switch(n.kind){case 317: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(L(n))return e.findAncestor(n,e.isObjectTypeDeclaration)}if(!r)return;switch(r.kind){case 26:case 19:return L(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(!L(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)?P:F;return o(r.kind)||41===r.kind||e.isIdentifier(r)&&o(e.stringToToken(r.text))?r.parent.parent:void 0}}(i,v,w,o);if(!t)return 0;if(K=3,J=!0,z=41===v.kind?0:e.isClassLike(t)?2:3,!e.isClassLike(t))return 1;var r=26===v.kind?v.parent.parent:v.parent,n=e.isClassElement(r)?e.getModifierFlags(r):0;if(75===v.kind&&!ue(v))switch(v.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)}));U=function(t,r,n){for(var i=e.createUnderscoreEscapedMap(),a=0,o=r;a<o.length;a++){var s=o[a];if((158===s.kind||160===s.kind||162===s.kind||163===s.kind)&&(!ue(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))}))}(a,t.members,n)}return 1}()||(a=function(t){if(t){var r=t.parent;switch(t.kind){case 31:case 30:case 43:case 75:case 193:case 272:case 271:case 273:if(r&&(265===r.kind||266===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(271===r.kind)return r.parent.parent;break;case 10:if(r&&(271===r.kind||273===r.kind))return r.parent.parent;break;case 19:if(r&&274===r.kind&&r.parent&&271===r.parent.kind)return r.parent.parent.parent;if(r&&273===r.kind)return r.parent.parent}}}(v),(_=a&&l.getContextualType(a.attributes))?(U=function(t,r){for(var n=e.createUnderscoreEscapedMap(),i=e.createMap(),a=0,o=r;a<o.length;a++){var s=o[a];ue(s)||(271===s.kind?n.set(s.name.escapedText,!0):e.isJsxSpreadAttribute(s)&&oe(s,i))}var c=t.filter((function(e){return!n.get(e.escapedName)}));return ce(i,c),c}(O(_,a.attributes,l),a.attributes.properties),se(),K=3,J=!1,1):0)||(function(){z=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}}(v)?5:1,K=1,J=function(e){if(e){var t=e.parent.kind;switch(I(e)){case 27:return 195===t||161===t||196===t||191===t||208===t||169===t;case 20:return 195===t||161===t||196===t||199===t||181===t;case 22:return 191===t||166===t||153===t;case 134:case 135:return!0;case 24:return 248===t;case 18:return 244===t;case 62:return 241===t||208===t;case 15:return 210===t;case 16:return 220===t;case 118:case 116:case 117:return 158===t}}return!1}(v),h!==v&&e.Debug.assert(!!h,"Expected 'contextToken' to be defined when different from 'previousToken'.");var a=h!==v?h.getStart():o,_=function(t,r,n){var i=t;for(;i&&!e.positionBelongsToNode(i,r,n);)i=i.parent;return i}(v,a,i)||i;m=function(t){switch(t.kind){case 288:case 210:case 274:case 222:return!0;default:return e.isStatement(t)}}(_);var d=2887656|(re()?0:111551);U=e.Debug.assertEachDefined(l.getSymbolsInScope(_,d),"getSymbolsInScope() should all be defined");for(var p=0,f=U;p<f.length;p++){var g=f[p];l.isArgumentsSymbol(g)||e.some(g.declarations,(function(e){return e.getSourceFile()===i}))||(q[e.getSymbolId(g)]=r.GlobalsOrKeywords)}if(s.includeCompletionsWithInsertText&&288!==_.kind){var y=l.tryGetThisTypeAt(_,!1);if(y)for(var x=0,D=M(y,l);x<D.length;x++){g=D[x];V[e.getSymbolId(g)]={kind:1},U.push(g),q[e.getSymbolId(g)]=r.SuggestedClassMembers}}if(s.includeCompletionsForModuleExports&&(i.externalModuleIndicator||!i.commonJsModuleIndicator&&(e.compilerOptionsIndicateEs6Modules(t.getCompilerOptions())||e.programContainsEs6Modules(t)))){var S=h&&e.isIdentifier(h)?h.text.toLowerCase():"",T=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=[],f=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,(function(t){return!!t.getSourceFile().externalModuleIndicator&&!e.findAncestor(t,e.isGlobalScopeAugmentation)}))&&m(r,t,!0);for(var n=0,i=l.getExportsOfModule(t);n<i.length;n++){var a=i[n];if(!e.some(a.declarations,(function(t){return e.isExportSpecifier(t)&&!!t.propertyName&&e.isIdentifierANonContextualKeyword(t.name)}))){var o=e.getSymbolId(a).toString(),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 p=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(!p)continue;var g=e.getSymbolId(p).toString();f.has(g)||_.has(g)?e.addToSeen(_,o):(d.set(g,{alias:a,moduleSymbol:t}),_.set(o,!0))}else d.delete(o),m(a,t)}}}}})),d.forEach((function(e){return m(e.alias,e.moduleSymbol)})),n("getSymbolsFromOtherSourceFileExports: "+(e.timestamp()-s)),p;function m(t,n,i){void 0===i&&(i=!1);var a="default"===t.escapedName;a&&(t=e.getLocalSymbolForExportDefault(t)||t),e.addToSeen(f,e.getSymbolId(t));var o={kind:4,moduleSymbol:n,isDefaultExport:a};p.push({symbol:t,symbolName:b(t,o,r),origin:o,skipFilter:i})}}(t.getCompilerOptions().target,u);!c&&W&&W.set(i.fileName,T,u.getProjectVersion&&u.getProjectVersion()),T.forEach((function(t){var n=t.symbol,i=t.symbolName,a=t.skipFilter,o=t.origin;if(c){if(c.source&&e.stripQuotes(o.moduleSymbol.name)!==c.source)return}else if(!a&&!function(e,t){if(0===t.length)return!0;for(var r=0,n=0;n<e.length;n++)if(e.charCodeAt(n)===t.charCodeAt(r)&&++r===t.length)return!0;return!1}(i.toLowerCase(),S))return;var s=e.getSymbolId(n);U.push(n),V[s]=o,q[s]=r.AutoImportSuggestions}))}!function(t){var r=re();r&&(z=e.isAssertionExpression(v.parent)?6:7);e.filterMutate(t,(function(t){if(!e.isSourceFile(w)){if(e.isExportAssignment(w.parent))return!0;if(t=e.skipAlias(t,l),e.isInRightSideOfInternalImportEqualsDeclaration(w))return!!(1920&t.flags);if(r)return ne(t)}return!!(111551&e.getCombinedLocalAndExportSymbolFlags(t))}))}(U)}(),1))}function re(){return f||!function(t){return t&&107===t.kind&&(171===t.parent.kind||e.isTypeOfExpression(t.parent))}(v)&&(e.isPossiblyTypeArgumentPosition(v,i,l)||e.isPartOfTypeNode(w)||function(t){if(t){var r=t.parent.kind;switch(t.kind){case 58:return 158===r||157===r||155===r||241===r||e.isFunctionLikeKind(r);case 62:return 246===r;case 122:return 216===r;case 29:return 168===r||198===r;case 89:return 154===r}}return!1}(v))}function ne(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 ne(e,r)}))}function ie(t){return!!t.parent&&e.isParameter(t.parent)&&e.isConstructorDeclaration(t.parent.parent)&&(e.isParameterPropertyModifier(t.kind)||e.isDeclarationName(t))}function ae(t){return e.isFunctionLikeKind(t)&&161!==t}function oe(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 se(){U.forEach((function(t){16777216&t.flags&&(q[e.getSymbolId(t)]=q[e.getSymbolId(t)]||r.OptionalMember)}))}function ce(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 ue(e){return e.getStart(i)<=o&&o<=e.getEnd()}}function C(t,r,n,i){var a=b(t,n,r);if(!(void 0===a||1536&t.flags&&e.isSingleOrDoubleQuote(a.charCodeAt(0))||e.isKnownSymbol(t))){var o={name:a,needsConvertPropertyAccess:!1};if(e.isIdentifierText(a,r))return o;switch(i){case 3:return;case 0:return{name:JSON.stringify(a),needsConvertPropertyAccess:!1};case 2:case 1:return 32===a.charCodeAt(0)?void 0:{name:a,needsConvertPropertyAccess:!0};case 5:case 4:return o;default:e.Debug.assertNever(i)}}}t.getCompletionEntriesFromSymbols=h,t.getCompletionEntryDetails=function(r,n,i,a,s,c,u,l,d){var p=r.getTypeChecker(),f=r.getCompilerOptions(),m=s.name,g=e.findPrecedingToken(a,i);if(e.isInString(i,a,g))return t.StringCompletions.getStringLiteralCompletionDetails(m,i,a,g,p,f,c,d);var y=v(r,n,i,a,s,c);switch(y.type){case"request":var h=y.request;switch(h.kind){case 1:return e.JsDoc.getJSDocTagNameCompletionDetails(m);case 2:return e.JsDoc.getJSDocTagCompletionDetails(m);case 3:return e.JsDoc.getJSDocParameterNameCompletionDetails(m);default:return e.Debug.assertNever(h)}case"symbol":var S=y.symbol,T=y.location,E=function(t,r,n,i,a,s,c,u,l,_,d){var p=t[e.getSymbolId(r)];if(!p||!o(p))return{codeActions:void 0,sourceDisplay:void 0};var f=p.moduleSymbol,m=i.getMergedSymbol(e.skipAlias(r.exportSymbol||r,i)),g=e.codefix.getImportCompletionAction(m,f,c,b(r,p,s.target),a,n,_,l&&e.isIdentifier(l)?l.getStart(c):u,d),y=g.moduleSpecifier,h=g.codeAction;return{sourceDisplay:[e.textPart(y)],codeActions:[h]}}(y.symbolToOriginInfoMap,S,r,p,c,f,i,a,y.previousToken,u,l);return D(S,p,i,T,d,E.codeActions,E.sourceDisplay);case"literal":var C=y.literal;return x(_(C),"string","string"==typeof C?e.SymbolDisplayPartKind.stringLiteral:e.SymbolDisplayPartKind.numericLiteral);case"none":return N().some((function(e){return e.name===m}))?x(m,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:e.Debug.assertNever(y)}},t.createCompletionDetailsForSymbol=D,t.createCompletionDetails=S,t.getCompletionEntrySymbol=function(e,t,r,n,i,a){var o=v(e,t,r,n,i,a);return"symbol"===o.type?o.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"}(l||(l={})),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=[],N=e.memoize((function(){for(var t=[],n=76;n<=151;n++)t.push({name:e.tokenToString(n),kind:"keyword",kindModifiers:"",sortText:r.GlobalsOrKeywords});return t}));function A(t){return k[t]||(k[t]=N().filter((function(r){var n=e.stringToToken(r.name);switch(t){case 0:return!1;case 1:return w(n)||129===n||134===n||144===n||135===n||e.isTypeKeyword(n)&&145!==n;case 5:return w(n);case 2:return P(n);case 3:return F(n);case 4:return e.isParameterPropertyModifier(n);case 6:return e.isTypeKeyword(n)||80===n;case 7:return e.isTypeKeyword(n);default:return e.Debug.assertNever(t)}})))}function F(e){return 137===e}function P(t){switch(t){case 121:case 128:case 130:case 141:case 125:return!0;default:return e.isClassMemberModifier(t)}}function w(t){return 125===t||126===t||!e.isContextualKeyword(t)&&!P(t)}function I(t){return e.isIdentifier(t)?t.originalKeywordKind||0:t.kind}function O(t,r,n){return t.isUnion()?n.getAllPossiblePropertiesOfTypes(t.types.filter((function(t){return!(131068&t.flags||n.isArrayLikeType(t)||e.typeHasCallOrConstructSignatures(t,n)||n.isTypeInvalidDueToUnionDiscriminant(t,r))}))):t.getApparentProperties()}function M(t,r){return t.isUnion()?e.Debug.assertEachDefined(r.getAllPossiblePropertiesOfTypes(t.types),"getAllPossiblePropertiesOfTypes() should all be defined"):e.Debug.assertEachDefined(t.getApparentProperties(),"getApparentProperties() should all be defined")}function L(t){return t.parent&&e.isClassOrTypeElement(t.parent)&&e.isObjectTypeDeclaration(t.parent.parent)}function R(t){var r=t.left;return e.nodeIsMissing(r)}}(e.Completions||(e.Completions={}))}(s||(s={})),function(e){!function(r){function n(t,r){return{fileName:r.fileName,textSpan:e.createTextSpanFromNode(t,r),kind:"none"}}function i(t){return e.isThrowStatement(t)?[t]:e.isTryStatement(t)?e.concatenate(t.catchClause?i(t.catchClause):t.tryBlock&&i(t.tryBlock),t.finallyBlock&&i(t.finallyBlock)):e.isFunctionLike(t)?void 0:o(t,i)}function a(t){return e.isBreakOrContinueStatement(t)?[t]:e.isFunctionLike(t)?void 0:o(t,a)}function o(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 236:if(232===t.kind)return!1;case 229:case 230:case 231:case 228:case 227: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(),92,110,85)&&227===t.kind)for(var n=t.getChildren(),i=n.length-1;i>=0&&!u(r,n[i],110);i--);return e.forEach(a(t.statement),(function(e){s(t,e)&&u(r,e.getFirstToken(),76,81)})),r}function _(e){var t=c(e);if(t)switch(t.kind){case 229:case 230:case 231:case 227:case 228:return l(t);case 236:return d(t)}}function d(t){var r=[];return u(r,t.getFirstToken(),102),e.forEach(t.caseBlock.clauses,(function(n){u(r,n.getFirstToken(),77,83),e.forEach(a(n),(function(e){s(t,e)&&u(r,e.getFirstToken(),76)}))})),r}function p(t,r){var n=[];(u(n,t.getFirstToken(),106),t.catchClause&&u(n,t.catchClause.getFirstToken(),78),t.finallyBlock)&&u(n,e.findChildOfKind(t,91,r),91);return n}function f(t,r){var n=function(t){for(var r=t;r.parent;){var n=r.parent;if(e.isFunctionBlock(n)||288===n.kind)return n;if(e.isTryStatement(n)&&n.tryBlock===r&&n.catchClause)return r;r=n}}(t);if(n){var a=[];return e.forEach(i(n),(function(t){a.push(e.findChildOfKind(t,104,r))})),e.isFunctionBlock(n)&&e.forEachReturnStatement(n,(function(t){a.push(e.findChildOfKind(t,100,r))})),a}}function m(t,r){var n=e.getContainingFunction(t);if(n){var a=[];return e.forEachReturnStatement(e.cast(n.body,e.isBlock),(function(t){a.push(e.findChildOfKind(t,100,r))})),e.forEach(i(n.body),(function(t){a.push(e.findChildOfKind(t,104,r))})),a}}function g(t){var r=e.getContainingFunction(t);if(r){var n=[];return r.modifiers&&r.modifiers.forEach((function(e){u(n,e,125)})),e.forEachChild(r,(function(t){y(t,(function(t){e.isAwaitExpression(t)&&u(n,t.getFirstToken(),126)}))})),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)}))}r.getDocumentHighlights=function(r,i,a,o,s){var c=e.getTouchingPropertyName(a,o);if(c.parent&&(e.isJsxOpeningElement(c.parent)&&c.parent.tagName===c||e.isJsxClosingElement(c.parent))){var h=c.parent.parent,v=[h.openingElement,h.closingElement].map((function(e){return n(e.tagName,a)}));return[{fileName:a.fileName,highlightSpans:v}]}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}}))}(o,c,r,i,s)||function(r,i){var a=function(r,i){switch(r.kind){case 94:case 86:return e.isIfStatement(r.parent)?function(t,r){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],94);for(var a=i.length-1;a>=0&&!u(n,i[a],86);a--);if(!t.elseStatement||!e.isIfStatement(t.elseStatement))break;t=t.elseStatement}return n}(t,r),a=[],o=0;o<i.length;o++){if(86===i[o].kind&&o<i.length-1){for(var s=i[o],c=i[o+1],l=!0,_=c.getStart(r)-1;_>=s.end;_--)if(!e.isWhiteSpaceSingleLine(r.text.charCodeAt(_))){l=!1;break}if(l){a.push({fileName:r.fileName,textSpan:e.createTextSpanFromBounds(s.getStart(),c.end),kind:"reference"}),o++;continue}}a.push(n(i[o],r))}return a}(r.parent,i):void 0;case 100:return c(r.parent,e.isReturnStatement,m);case 104:return c(r.parent,e.isThrowStatement,f);case 106:case 78:case 91:return c(78===r.kind?r.parent.parent:r.parent,e.isTryStatement,p);case 102:return c(r.parent,e.isSwitchStatement,d);case 77:case 83:return c(r.parent.parent.parent,e.isSwitchStatement,d);case 76:case 81:return c(r.parent,e.isBreakOrContinueStatement,_);case 92:case 110:case 85:return c(r.parent,(function(t){return e.isIterationStatement(t,!0)}),l);case 128:return s(e.isConstructorDeclaration,[128]);case 130:case 141:return s(e.isAccessor,[130,141]);case 126:return c(r.parent,e.isAwaitExpression,g);case 125:return h(g(r));case 120:return h(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(),120)}))})),n}(r));default:return e.isModifierKind(r.kind)&&(e.isDeclaration(r.parent)||e.isVariableStatement(r.parent))?h((a=r.kind,o=r.parent,e.mapDefined(function(r,n){var i=r.parent;switch(i.kind){case 249:case 288:case 222:case 275:case 276:return 128&n&&e.isClassDeclaration(r)?t(r.members,[r]):i.statements;case 161:case 160:case 243:return t(i.parameters,e.isClassLike(i.parent)?i.parent.members:[]);case 244:case 213:case 245:case 172:var a=i.members;if(92&n){var o=e.find(i.members,e.isConstructorDeclaration);if(o)return t(a,o.parameters)}else if(128&n)return t(a,[i]);return a;default:e.Debug.assertNever(i,"Invalid container kind.")}}(o,e.modifierToFlag(a)),(function(t){return e.findModifier(t,a)})))):void 0}var a,o;function s(t,n){return c(r.parent,t,(function(r){return e.mapDefined(r.symbol.declarations,(function(r){return t(r)?e.find(r.getChildren(i),(function(t){return e.contains(n,t.kind)})):void 0}))}))}function c(e,t,r){return t(e)?h(r(e,i)):void 0}function h(e){return e&&e.map((function(e){return n(e,i)}))}}(r,i);return a&&[{fileName:i.fileName,highlightSpans:a}]}(c,a)}}(e.DocumentHighlights||(e.DocumentHighlights={}))}(s||(s={})),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.assertDefined(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}(s||(s={})),function(e){!function(t){function n(t,r){return e.forEach(288===t.kind?t.statements:t.body.statements,(function(t){return r(t)||c(t)&&e.forEach(t.body&&t.body.statements,r)}))}function i(t,r){if(t.externalModuleIndicator||void 0!==t.imports)for(var i=0,a=t.imports;i<a.length;i++){var o=a[i];r(e.importFromModuleSpecifier(o),o)}else n(t,(function(t){switch(t.kind){case 259:case 253:(n=t).moduleSpecifier&&e.isStringLiteral(n.moduleSpecifier)&&r(n,n.moduleSpecifier);break;case 252:var n;u(n=t)&&r(n,n.moduleReference.expression)}}))}function a(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 o(e,t){return t.getMergedSymbol(s(e).symbol)}function s(t){if(195===t.kind)return t.getSourceFile();var r=t.parent;return 288===r.kind?r:(e.Debug.assert(249===r.kind),e.cast(r.parent,c))}function c(e){return 248===e.kind&&10===e.name.kind}function u(e){return 263===e.moduleReference.kind&&10===e.moduleReference.expression.kind}t.createImportTracker=function(t,a,c,l){var _=function(t,r,n){for(var a=e.createMap(),o=0,s=t;o<s.length;o++){var c=s[o];n&&n.throwIfCancellationRequested(),i(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(i,d,p){var f=function(t,r,i,a,c,u){var l=a.exportingModuleSymbol,_=a.exportKind,d=e.nodeSeenTracker(),p=e.nodeSeenTracker(),f=[],m=!!l.globalExports,g=m?void 0:[];return function t(r){var n=v(r);if(n)for(var i=0,a=n;i<a.length;i++){var l=a[i];if(d(l))switch(u&&u.throwIfCancellationRequested(),l.kind){case 195:if(!m){var p=l.parent;if(2===_&&241===p.kind){var g=p.name;if(75===g.kind){f.push(g);break}}h(l.getSourceFile())}break;case 75:break;case 252:y(l,l.name,e.hasModifier(l,1),!1);break;case 253:f.push(l);var b=l.importClause&&l.importClause.namedBindings;b&&255===b.kind?y(l,b.name,!1,!0):!m&&e.isDefaultImport(l)&&h(s(l));break;case 259:l.exportClause?f.push(l):t(o(l,c));break;case 187:f.push(l);break;default:e.Debug.failBadSyntaxKind(l,"Unexpected import kind.")}}}(l),{directImports:f,indirectUsers:function(){if(m)return t;for(var n=0,i=l.declarations;n<i.length;n++){var a=i[n];e.isExternalModuleAugmentation(a)&&r.has(a.getSourceFile().fileName)&&h(a)}return g.map(e.getSourceFileOfNode)}()};function y(t,r,i,a){if(2===_)a||f.push(t);else if(!m){var o=s(t);e.Debug.assert(288===o.kind||248===o.kind),i||function(t,r,i){var a=i.getSymbolAtLocation(r);return!!n(t,(function(t){if(e.isExportDeclaration(t)){var r=t.exportClause;return!t.moduleSpecifier&&r&&r.elements.some((function(e){return i.getExportSpecifierLocalTargetSymbol(e)===a}))}}))}(o,r,c)?function t(r){if(!h(r))return;var n=c.getMergedSymbol(r.symbol);e.Debug.assert(!!(1536&n.flags));var i=v(n);if(i)for(var a=0,o=i;a<o.length;a++){var u=o[a];t(s(u))}}(o):h(o)}}function h(t){e.Debug.assert(!m);var r=p(t);return r&&g.push(t),r}function v(t){return i.get(e.getSymbolId(t).toString())}}(t,a,_,d,c,l),m=f.directImports,g=f.indirectUsers;return r({indirectUsers:g},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(252!==t.kind)if(75!==t.kind)if(187!==t.kind){if(10===t.moduleSpecifier.kind)if(259!==t.kind){var o=t.importClause||{name:void 0,namedBindings:void 0},l=o.name,_=o.namedBindings;if(_)switch(_.kind){case 255:p(_.name);break;case 256: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 f(t.exportClause)}else t.qualifier?e.isIdentifier(t.qualifier)&&t.qualifier.escapedText===e.symbolName(r)&&s.push(t.qualifier):2===n&&s.push(t.argument.literal);else p(t);else u(t)&&p(t.name)}function p(e){2!==n||a&&!m(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(m((l||u).escapedText))if(l)s.push(l),a&&u.escapedText!==r.escapedName||c(u,i.getSymbolAtLocation(u));else c(u,261===o.kind&&o.propertyName?i.getExportSpecifierLocalTargetSymbol(o):i.getSymbolAtLocation(u))}}function m(e){return e===r.escapedName||0!==n&&"default"===e}}(m,i,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 n=[],a=e.getTypeChecker(),o=0,s=t;o<s.length;o++){var c=s[o],u=r.valueDeclaration;if(288===u.kind){for(var l=0,_=c.referencedFiles;l<_.length;l++){var d=_[l];e.getSourceFileFromReference(c,d)===u&&n.push({kind:"reference",referencingFile:c,ref:d})}for(var p=0,f=c.typeReferenceDirectives;p<f.length;p++){d=f[p];var m=e.getResolvedTypeReferenceDirectives().get(d.fileName);void 0!==m&&m.resolvedFileName===u.fileName&&n.push({kind:"reference",referencingFile:c,ref:d})}}i(c,(function(e,t){a.getSymbolAtLocation(t)===r&&n.push({kind:"import",literal:t})}))}return n},t.getImportOrExportSymbol=function(t,r,n,i){return i?o():o()||function(){if(!function(t){var r=t.parent;switch(r.kind){case 252:return r.name===t&&u(r);case 257:return!r.propertyName;case 254:case 255: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.assertDefined(r.getImmediateAliasedSymbol(t));var n=t.valueDeclaration;if(e.isExportAssignment(n))return e.Debug.assertDefined(n.expression.symbol);if(e.isBinaryExpression(n))return e.Debug.assertDefined(n.right.symbol);if(e.isSourceFile(n))return e.Debug.assertDefined(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 a=t.parent,o=a.parent;if(r.exportSymbol)return 193===a.kind?r.declarations.some((function(e){return e===a}))&&e.isBinaryExpression(o)?_(o,!1):void 0:s(r.exportSymbol,c(a));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}(a,t);if(u&&e.hasModifier(u,1)){if(e.isImportEqualsDeclaration(u)&&u.moduleReference===t){if(i)return;return{kind:0,symbol:n.getSymbolAtLocation(u.name)}}return s(r,c(u))}if(e.isExportAssignment(a))return l(a);if(e.isExportAssignment(o))return l(o);if(e.isBinaryExpression(a))return _(a,!0);if(e.isBinaryExpression(o))return _(o,!0);if(e.isJSDocTypedefTag(a))return s(r,0);function l(t){var n=e.Debug.assertDefined(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.cast(t.left,e.isPropertyAccessExpression).name):r;return!o||1536&n.getMergedSymbol(o.parent).flags||e.Debug.fail("Special property assignment kind does not have a module as its parent. Assignment is "+e.Debug.formatSymbol(o)+", parent is "+e.Debug.formatSymbol(o.parent)),o&&s(o,a)}}function s(e,t){var r=a(e,t,n);return r&&{kind:1,symbol:e,exportInfo:r}}function c(t){return e.hasModifier(t,512)?1:0}},t.getExportInfo=a}(e.FindAllReferences||(e.FindAllReferences={}))}(s||(s={})),function(e){!function(t){function n(e,t){return void 0===t&&(t=1),{kind:t,node:e.name||e,context:a(e)}}function i(e){return e&&void 0===e.kind}function a(t){if(e.isDeclaration(t))return o(t);if(t.parent){if(!e.isDeclaration(t.parent)&&!e.isExportAssignment(t.parent)){if(e.isInJSFile(t)){var r=e.isBinaryExpression(t.parent)?t.parent:e.isAccessExpression(t.parent)&&e.isBinaryExpression(t.parent.parent)&&t.parent.parent.left===t.parent?t.parent.parent:void 0;if(r&&0!==e.getAssignmentDeclarationKind(r))return o(r)}if(e.isJsxOpeningElement(t.parent)||e.isJsxClosingElement(t.parent))return t.parent.parent;if(e.isJsxSelfClosingElement(t.parent)||e.isLabeledStatement(t.parent)||e.isBreakOrContinueStatement(t.parent))return t.parent;if(e.isStringLiteralLike(t)){var n=e.tryGetImportFromModuleSpecifier(t);if(n){var i=e.findAncestor(n,(function(t){return e.isDeclaration(t)||e.isStatement(t)||e.isJSDocTag(t)}));return e.isDeclaration(i)?o(i):i}}var a=e.findAncestor(t,e.isComputedPropertyName);return a?o(a.parent):void 0}return t.parent.name===t||e.isConstructorDeclaration(t.parent)||e.isExportAssignment(t.parent)||(e.isImportOrExportSpecifier(t.parent)||e.isBindingElement(t.parent))&&t.parent.propertyName===t||83===t.kind&&e.hasModifier(t.parent,513)?o(t.parent):void 0}}function o(t){if(t)switch(t.kind){case 241:return e.isVariableDeclarationList(t.parent)&&1===t.parent.declarations.length?e.isVariableStatement(t.parent.parent)?t.parent.parent:e.isForInOrOfStatement(t.parent.parent)?o(t.parent.parent):t.parent:t;case 190:return o(t.parent.parent);case 257:return t.parent.parent.parent;case 261:case 255:return t.parent.parent;case 254:return t.parent;case 208:return e.isExpressionStatement(t.parent)?t.parent:t;case 231:case 230:return{start:t.initializer,end:t.expression};case 279:case 280:return e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)?o(e.findAncestor(t.parent,(function(t){return e.isBinaryExpression(t)||e.isForInOrOfStatement(t)}))):t;default:return t}}function s(e,t,r){if(r){var n=i(r)?p(r.start,t,r.end):p(r,t);return n.start!==e.start||n.length!==e.length?{contextSpan:n}:void 0}}function c(r,n,i,a,o,s,c){return void 0===s&&(s={}),void 0===c&&(c=e.arrayToSet(a,(function(e){return e.fileName}))),u(t.Core.getReferencedSymbolsForNode(r,n,i,a,o,s,c))}function u(t){return t&&e.flatMap(t,(function(e){return e.references}))}function l(r,n,i){var a=t.Core.getIntersectingMeaningFromDeclarations(i,r),o=r.declarations&&e.firstOrUndefined(r.declarations)||i,s=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(n,r,o.getSourceFile(),o,o,a);return{displayParts:s.displayParts,kind:s.symbolKind}}function _(t){var n=d(t);if(0===t.kind)return r(r({},n),{isWriteAccess:!1,isDefinition:!1});var i=t.kind,a=t.node;return r(r({},n),{isWriteAccess:f(a),isDefinition:83===a.kind||!!e.getDeclarationFromName(a)||e.isLiteralComputedPropertyDeclarationName(a),isInString:2===i||void 0})}function d(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};var t=e.node.getSourceFile(),n=p(e.node,t);return r({textSpan:n,fileName:t.fileName},s(n,t,e.context))}function p(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 f(t){var r=e.getDeclarationFromName(t);return!!r&&function(t){if(8388608&t.flags)return!0;switch(t.kind){case 208:case 190:case 244:case 213:case 83:case 247:case 282:case 261:case 254:case 252:case 257:case 245:case 308:case 315:case 271:case 248:case 251:case 255:case 155:case 280:case 246:case 154:return!0;case 279:return!e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent);case 243:case 200:case 161:case 160:case 162:case 163:return!!t.body;case 241:case 158:return!!t.initializer||e.isCatchClause(t.parent);case 159:case 157:case 316:case 310:return!1;default:return e.Debug.failBadSyntaxKind(t)}}(r)||83===t.kind||e.isWriteAccess(t)}!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=o,t.toContextSpan=s,t.findReferencedSymbols=function(n,i,a,c,u){var d=e.getTouchingPropertyName(c,u),f=t.Core.getReferencedSymbolsForNode(u,d,n,a,i),m=n.getTypeChecker();return f&&f.length?e.mapDefined(f,(function(t){var n=t.definition,a=t.references;return n&&{definition:m.runWithCancellationToken(i,(function(t){return function(t,n,i){var a=function(){switch(t.type){case 0:var r=l(f=t.symbol,n,i),a=r.displayParts,s=r.kind,c=a.map((function(e){return e.text})).join(""),u=f.declarations?e.first(f.declarations):void 0;return{node:u?e.getNameOfDeclaration(u)||u:i,name:c,kind:s,displayParts:a,context:o(u)};case 1:var _=t.node;return{node:_,name:_.text,kind:"label",displayParts:[e.displayPart(_.text,e.SymbolDisplayPartKind.text)]};case 2:var d=t.node,p=e.tokenToString(d.kind);return{node:d,name:p,kind:"keyword",displayParts:[{text:p,kind:"keyword"}]};case 3:var f,m=t.node,g=(f=n.getSymbolAtLocation(m))&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(n,f,m.getSourceFile(),e.getContainerNode(m),m).displayParts||[e.textPart("this")];return{node:m,name:"this",kind:"var",displayParts:g};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)}}(),c=a.node,u=a.name,_=a.kind,d=a.displayParts,f=a.context,m=c.getSourceFile(),g=p(e.isComputedPropertyName(c)?c.expression:c,m);return r({containerKind:"",containerName:"",fileName:m.fileName,kind:_,name:u,textSpan:g,displayParts:d},s(g,m,f))}(n,t,d)})),references:a.map(_)}})):void 0},t.getImplementationsAtPosition=function(i,a,o,s,u){var _=function(r,i,a,o,s){if(288===o.kind)return;var u=r.getTypeChecker();if(280===o.parent.kind){var l=[];return t.Core.getReferenceEntriesForShorthandPropertyAssignment(o,u,(function(e){return l.push(n(e))})),l}if(101===o.kind||e.isSuperProperty(o.parent)){var _=u.getSymbolAtLocation(o);return _.valueDeclaration&&[n(_.valueDeclaration)]}return c(s,o,r,a,i,{implementations:!0})}(i,a,o,e.getTouchingPropertyName(s,u),u),p=i.getTypeChecker();return e.map(_,(function(t){return function(t,n){var i=d(t);if(0!==t.kind){var a=t.node;return r(r({},i),function(t,r){var n=r.getSymbolAtLocation(e.isDeclaration(t)&&t.name?t.name:t);return n?l(n,r,t):192===t.kind?{kind:"interface",displayParts:[e.punctuationPart(20),e.textPart("object literal"),e.punctuationPart(21)]}:213===t.kind?{kind:"local class",displayParts:[e.punctuationPart(20),e.textPart("anonymous local class"),e.punctuationPart(21)]}:{kind:e.getNodeKind(t),displayParts:[]}}(a,n))}return r(r({},i),{kind:"",displayParts:[]})}(t,p)}))},t.findReferenceOrRenameEntries=function(r,n,i,a,o,s,c){return e.map(u(t.Core.getReferencedSymbolsForNode(o,a,r,i,n,s)),(function(e){return c(e,a,r.getTypeChecker())}))},t.getReferenceEntriesForNode=c,t.toRenameLocation=function(t,n,i,a){return r(r({},d(t)),a&&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)){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?{prefixText:o+" as "}:{suffixText:" as "+o}}return e.emptyOptions}(t,n,i))},t.toReferenceEntry=_,t.toHighlightSpan=function(e){var t=d(e);if(0===e.kind)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};var n=f(e.node),i=r({textSpan:t.textSpan,kind:n?"writtenReference":"reference",isInString:2===e.kind||void 0},t.contextSpan&&{contextSpan:t.contextSpan});return{fileName:t.fileName,span:i}},t.getTextSpanOfEntry=function(e){return 0===e.kind?e.textSpan:p(e.node,e.node.getSourceFile())}}(e.FindAllReferences||(e.FindAllReferences={}))}(s||(s={})),function(e){!function(t){!function(r){function n(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 i(t,r,n,i,o,c){var l=1536&t.flags?e.find(t.declarations,e.isSourceFile):void 0;if(l){var _=t.exports.get("export="),d=s(r,t,!!_,n,c);if(!_||!c.has(l.fileName))return d;var p=r.getTypeChecker();return a(r,d,u(t=e.skipAlias(_,p),void 0,n,c,p,i,o))}}function a(r){for(var n,i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];for(var s=0,c=i;s<c.length;s++){var u=c[s];if(u&&u.length)if(n)for(var l=function(i){if(!i.definition||0!==i.definition.type)return n.push(i),"continue";var a=i.definition.symbol,s=e.findIndex(n,(function(e){return!!e.definition&&0===e.definition.type&&e.definition.symbol===a}));if(-1===s)return n.push(i),"continue";var c=n[s];n[s]={definition:c.definition,references:c.references.concat(i.references).sort((function(n,i){var a=o(r,n),s=o(r,i);if(a!==s)return e.compareValues(a,s);var c=t.getTextSpanOfEntry(n),u=t.getTextSpanOfEntry(i);return c.start!==u.start?e.compareValues(c.start,u.start):e.compareValues(c.length,u.length)}))}},_=0,d=u;_<d.length;_++){l(d[_])}else n=u}return n}function o(e,t){var r=0===t.kind?e.getSourceFile(t.fileName):t.node.getSourceFile();return e.getSourceFiles().indexOf(r)}function s(r,n,i,a,o){e.Debug.assert(!!n.valueDeclaration);for(var s=e.mapDefined(t.findModuleReferences(r,a,n),(function(r){if("import"===r.kind){var n=r.literal.parent;if(e.isLiteralTypeNode(n)){var a=e.cast(n.parent,e.isImportTypeNode);if(i&&!a.qualifier)return}return t.nodeEntry(r.literal)}return{kind:0,fileName:r.referencingFile.fileName,textSpan:e.createTextSpanFromRange(r.ref)}})),c=0,u=n.declarations;c<u.length;c++){switch((p=u[c]).kind){case 288:break;case 248:o.has(p.getSourceFile().fileName)&&s.push(t.nodeEntry(p.name));break;default:e.Debug.assert(!!(33554432&n.flags),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}}var l=n.exports.get("export=");if(l)for(var _=0,d=l.declarations;_<d.length;_++){var p,f=(p=d[_]).getSourceFile();if(o.has(f.fileName)){var m=e.isBinaryExpression(p)&&e.isPropertyAccessExpression(p.left)?p.left.expression:e.isExportAssignment(p)?e.Debug.assertDefined(e.findChildOfKind(p,88,f)):e.getNameOfDeclaration(p)||p;s.push(t.nodeEntry(m))}}return s.length?[{definition:{type:0,symbol:n},references:s}]:e.emptyArray}function c(t){return 137===t.kind&&e.isTypeOperatorNode(t.parent)&&137===t.parent.operator}function u(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 C(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,!M(s))||t,u=r?w(r,c):7,_=[],f=new d(n,i,r?function(t){switch(t.kind){case 128: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,_),m=M(s)?e.find(c.declarations,e.isExportSpecifier):void 0;if(m)E(m.name,c,m,f.createSearch(r,t,void 0),f,!0,!0);else if(r&&83===r.kind)k(r,c,f),p(r,c,{exportingModuleSymbol:e.Debug.assertDefined(c.parent,"Expected export symbol to have a parent"),exportKind:1},f);else{var g=f.createSearch(r,c,void 0,{allSearchSymbols:r?F(c,r,a,!!s.isForRename,!!s.providePrefixAndSuffixTextForRename,!!s.implementations):[c]});l(c,f,g)}return _}function l(t,r,n){var i=function(t){var r=t.declarations,n=t.flags,i=t.parent,a=t.valueDeclaration;if(a&&(200===a.kind||213===a.kind))return a;if(!r)return;if(8196&n){var o=e.find(r,(function(t){return e.hasModifier(t,8)}));return o?e.getAncestor(o,244):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||288===d.kind&&!e.isExternalOrCommonJsModule(d))return;s=d}return c?s.getSourceFile():s}(t);if(i)D(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(),g(s,n,r)}}var _;r.getReferencedSymbolsForNode=function(r,o,l,_,d,p,f){if(void 0===p&&(p={}),void 0===f&&(f=e.arrayToSet(_,(function(e){return e.fileName}))),e.isSourceFile(o)){var m=e.GoToDefinition.getReferenceAtPosition(o,r,l),g=m&&l.getTypeChecker().getMergedSymbol(m.file.symbol);return g&&s(l,g,!1,_,f)}if(!p.implementations){var y=function(r,n,i){if(e.isTypeKeyword(r.kind)){if(137===r.kind&&!c(r))return;return function(r,n,i,a){var o=e.flatMap(r,(function(r){return i.throwIfCancellationRequested(),e.mapDefined(h(r,e.tokenToString(n),r),(function(e){if(e.kind===n&&(!a||a(e)))return t.nodeEntry(e)}))}));return o.length?[{definition:{type:2,node:o[0].node},references:o}]:void 0}(n,r.kind,i,137===r.kind?c:void 0)}if(e.isJumpStatementTarget(r)){var a=e.getTargetLabel(r.parent,r.text);return a&&b(a.parent,a)}if(e.isLabelOfLabeledStatement(r))return b(r.parent,r);if(e.isThis(r))return function(r,n,i){var a=e.getThisContainer(r,!1),o=32;switch(a.kind){case 160:case 159:if(e.isObjectLiteralMethod(a))break;case 158:case 157:case 161:case 162:case 163:o&=e.getModifierFlags(a),a=a.parent;break;case 288:if(e.isExternalModule(a)||A(r))return;case 243:case 200:break;default:return}var s=e.flatMap(288===a.kind?n:[a.getSourceFile()],(function(t){return i.throwIfCancellationRequested(),h(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 200:case 243:return a.symbol===r.symbol;case 160:case 159:return e.isObjectLiteralMethod(a)&&a.symbol===r.symbol;case 213:case 244:return r.parent&&a.symbol===r.parent.symbol&&(32&e.getModifierFlags(r))===o;case 288:return 288===r.kind&&!e.isExternalModule(r)&&!A(t)}}))})).map((function(e){return t.nodeEntry(e)}));return[{definition:{type:3,node:e.firstDefined(s,(function(t){return e.isParameter(t.node.parent)?t.node:void 0}))||r},references:s}]}(r,n,i);if(101===r.kind)return function(r){var n=e.getSuperContainer(r,!1);if(!n)return;var i=32;switch(n.kind){case 158:case 157:case 160:case 159:case 161:case 162:case 163:i&=e.getModifierFlags(n),n=n.parent;break;default:return}var a=n.getSourceFile(),o=e.mapDefined(h(a,"super",n),(function(r){if(101===r.kind){var a=e.getSuperContainer(r,!1);return a&&(32&e.getModifierFlags(a))===i&&a.parent.symbol===n.symbol?t.nodeEntry(r):void 0}}));return[{definition:{type:0,symbol:n.symbol},references:o}]}(r);return}(o,_,d);if(y)return y}var v=l.getTypeChecker(),x=v.getSymbolAtLocation(o);if(!x)return!p.implementations&&e.isStringLiteral(o)?function(r,n,i){var a=e.flatMap(n,(function(n){return i.throwIfCancellationRequested(),e.mapDefined(h(n,r.text),(function(n){return e.isStringLiteral(n)&&n.text===r.text?t.nodeEntry(n,2):void 0}))}));return[{definition:{type:4,node:r},references:a}]}(o,_,d):void 0;if("export="===x.escapedName)return s(l,x.parent,!1,_,f);var D=i(x,l,_,d,p,f);if(D&&!(33554432&x.flags))return D;var S=n(o,x,v),T=S&&i(S,l,_,d,p,f);return a(l,D,u(x,o,_,f,v,d,p),T)},function(e){e[e.None=0]="None",e[e.Constructor=1]="Constructor",e[e.Class=2]="Class"}(_||(_={}));var d=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,!!this.options.isForRename)},r.prototype.createSearch=function(t,r,n,i){void 0===i&&(i={});var a=i.text,o=void 0===a?e.stripQuotes(e.unescapeLeadingUnderscores((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).escapedName)):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(r){var n=e.getSymbolId(r),i=this.symbolIdToReferences[n];return i||(i=this.symbolIdToReferences[n]=[],this.result.push({definition:{type:0,symbol:r},references:i})),function(e,r){return i.push(t.nodeEntry(e,r))}},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 p(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];f(_,n)&&c(_)}for(var d=0,p=a;d<p.length;d++){var m=p[d],y=m[0],h=m[1];x(y.getSourceFile(),n.createSearch(y,h,1),n)}if(s.length){var v=void 0;switch(r.exportKind){case 0:v=n.createSearch(e,t,1);break;case 1:v=n.options.isForRename?void 0:n.createSearch(e,t,1,{text:"default"})}if(v)for(var b=0,D=s;b<D.length;b++){g(D[b],v,n)}}}function f(t,r){return!!S(t,r)&&(!r.options.isForRename||!!e.isIdentifier(t)&&!(e.isImportOrExportSpecifier(t.parent)&&"default"===t.escapedText))}function m(e,t){for(var r=0,n=e.declarations;r<n.length;r++){var i=n[r],a=i.getSourceFile();x(a,t.createSearch(i,e,0),t,t.includesSourceFile(a))}}function g(t,r,n){void 0!==e.getNameTable(t).get(r.escapedText)&&x(t,r,n)}function y(t,r,n,i){var a=e.isParameterPropertyDeclaration(t.parent,t.parent.parent)?e.first(r.getSymbolsOfParameterPropertyDeclaration(t.parent,t.text)):r.getSymbolAtLocation(t);if(a)for(var o=0,s=h(n,a.name);o<s.length;o++){var c=s[o];if(e.isIdentifier(c)&&c!==t&&c.escapedText===t.escapedText){var u=r.getSymbolAtLocation(c);if(u===a||r.getShorthandAssignmentValueSymbol(c.parent)===a||e.isExportSpecifier(c.parent)&&C(c,u,c.parent,r)===a){var l=i(c);if(l)return l}}}}function h(t,r,n){return void 0===n&&(n=t),v(t,r,n).map((function(r){return e.getTouchingPropertyName(t,r)}))}function v(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 b(r,n){var i=r.getSourceFile(),a=n.text,o=e.mapDefined(h(i,a,r),(function(r){return r===n||e.isJumpStatementTarget(r)&&e.getTargetLabel(r,a)===n?t.nodeEntry(r):void 0}));return[{definition:{type:1,node:n},references:o}]}function x(e,t,r,n){return void 0===n&&(n=!0),r.cancellationToken.throwIfCancellationRequested(),D(e,e,t,r,n)}function D(e,t,r,n,i){if(n.markSearchedSymbols(t,r.allSearchSymbols))for(var a=0,o=v(t,r.text,e);a<o.length;a++){T(t,o[a],r,n,i)}}function S(t,r){return!!(e.getMeaningFromLocation(t)&r.searchMeaning)}function T(r,n,i,a,o){var s=e.getTouchingPropertyName(r,n);if(function(t,r){switch(t.kind){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 83:return"default".length===r.length;default:return!1}}(s,i.text)){if(S(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 _=function(t,r,n,i){var a=i.checker;return P(r,n,a,!1,!i.options.isForRename||!!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);var s=i.get(o);if(void 0!==s)return s;i.set(o,!1);var c=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)}))}));i.set(o,c);return c}(r.parent,t,i.inheritsFromCache,a)})))}))}(i,c,s,a);if(_){switch(a.specialSearchKind){case 0:o&&k(s,_,a);break;case 1:!function(t,r,n,i){e.isNewExpressionTarget(t)&&k(t,n.symbol,i);var a=function(){return i.referenceAdder(n.symbol)};if(e.isClassLike(t.parent))e.Debug.assert(83===t.kind||t.parent.name===t),function(t,r,n){var i=N(t);if(i)for(var a=0,o=i.declarations;a<o.length;a++){var s=o[a],c=e.findChildOfKind(s,128,r);e.Debug.assert(161===s.kind&&!!c),n(c)}t.exports&&t.exports.forEach((function(t){var r=t.valueDeclaration;if(r&&160===r.kind){var i=r.body;i&&O(i,103,(function(t){e.isNewExpressionTarget(t)&&n(t)}))}}))}(n.symbol,r,a());else{var o=function(t){return e.tryGetClassExtendingExpressionWithTypeArguments(e.climbPastPropertyAccess(t).parent)}(t);o&&(function(t,r){var n=N(t.symbol);if(!n)return;for(var i=0,a=n.declarations;i<a.length;i++){var o=a[i];e.Debug.assert(161===o.kind);var s=o.body;s&&O(s,101,(function(t){e.isCallExpressionTarget(t)&&r(t)}))}}(o,a()),function(e,t){if(function(e){return!!N(e.symbol)}(e))return;var r=e.symbol,n=t.createSearch(void 0,r,void 0);l(r,t,n)}(o,i))}}(s,r,i,a);break;case 2:!function(t,r,n){k(t,r.symbol,n);var i=t.parent;if(n.options.isForRename||!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){103===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?M(i.options)||m(o,i):p(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)||k(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,f=C(r,n,i,o.checker);if(c||a.includes(f)){if(l?r===l?(d.moduleSpecifier||b(),s&&!o.options.isForRename&&o.markSeenReExportRHS(_)&&k(_,e.Debug.assertDefined(i.symbol),o)):o.markSeenReExportRHS(r)&&b():o.options.isForRename&&"default"===_.escapedText||b(),!M(o.options)||c){var g=83===r.originalKeywordKind||83===i.name.originalKeywordKind?1:0,y=e.Debug.assertDefined(i.symbol),h=t.getExportInfo(y,g,o.checker);h&&p(r,y,h,o)}if(1!==a.comingFrom&&d.moduleSpecifier&&!l&&!M(o.options)){var v=o.checker.getExportSpecifierLocalTargetSymbol(i);v&&m(v,o)}}function b(){s&&k(r,f,o)}}function C(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 k(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)&&function(t){return 8388608&t.flags?!(e.isInterfaceDeclaration(t)||e.isTypeAliasDeclaration(t)):e.isVariableLike(t)?e.hasInitializer(t):e.isFunctionLikeDeclaration(t)?!!t.body:e.isClassLike(t)||e.isModuleOrEnumDeclaration(t)}(t.parent))return void r(t);if(75!==t.kind)return;280===t.parent.kind&&I(t,n.checker,r);var i=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(i)return void r(i);var a=e.findAncestor(t,(function(t){return!e.isQualifiedName(t.parent)&&!e.isTypeNode(t.parent)&&!e.isTypeElement(t.parent)})),o=a.parent;if(e.hasType(o)&&o.type===a&&n.markSeenContainingTypeReference(o))if(e.hasInitializer(o))c(o.initializer);else if(e.isFunctionLike(o)&&o.body){var s=o.body;222===s.kind?e.forEachReturnStatement(s,(function(e){e.expression&&c(e.expression)})):c(s)}else e.isAssertionExpression(o)&&c(o.expression);function c(e){(function e(t){switch(t.kind){case 199:return e(t.expression);case 201:case 200:case 192:case 213:case 191:return!0;default:return!1}})(e)&&r(e)}}(t,s,n):s(t,a)}function N(e){return e.members&&e.members.get("__constructor")}function A(e){return 75===e.kind&&155===e.parent.kind&&e.parent.name===e}function F(e,t,r,n,i,a){var o=[];return P(e,t,r,n,!(n&&i),(function(e,t,r){o.push(r||t||e)}),(function(){return!a})),o}function P(t,r,i,a,o,s,c){var u=e.getContainingObjectLiteralElement(r);if(u){var l=i.getShorthandAssignmentValueSymbol(r.parent);if(l&&a)return s(l,void 0,void 0,3);var _=i.getContextualType(u.parent),d=_&&e.firstDefined(e.getPropertySymbolsFromContextualType(u,i,_,!0),(function(e){return x(e,4)}));if(d)return d;var p=function(t,r){return e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent.parent)?r.getPropertySymbolOfDestructuringAssignment(t):void 0}(r,i),f=p&&s(p,void 0,void 0,4);if(f)return f;var m=l&&s(l,void 0,void 0,3);if(m)return m}var g=n(r,t,i);if(g){var y=s(g,void 0,void 0,1);if(y)return y}var h=x(t);if(h)return h;if(t.valueDeclaration&&e.isParameterPropertyDeclaration(t.valueDeclaration,t.valueDeclaration.parent)){var v=i.getSymbolsOfParameterPropertyDeclaration(e.cast(t.valueDeclaration,e.isParameter),t.name);return e.Debug.assert(2===v.length&&!!(1&v[0].flags)&&!!(4&v[1].flags)),x(1&t.flags?v[1]:v[0])}if(!a){var b=void 0;return(b=o?e.isObjectBindingElementWithoutPropertyName(r.parent)?e.getPropertySymbolFromBindingElement(i,r.parent):void 0:D(t,i))&&x(b,4)}if(e.Debug.assert(a),o)return(b=D(t,i))&&x(b,4);function x(t,r){return e.firstDefined(i.getRootSymbols(t),(function(n){return s(t,n,void 0,r)||(n.parent&&96&n.parent.flags&&c(n)?e.getPropertySymbolsFromBaseTypes(n.parent,n.name,i,(function(e){return s(t,n,e,r)})):void 0)}))}function D(t,r){var n=e.getDeclarationOfKind(t,190);if(n&&e.isObjectBindingElementWithoutPropertyName(n))return e.getPropertySymbolFromBindingElement(r,n)}}function w(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 I(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 O(t,r,n){e.forEachChild(t,(function(e){e.kind===r&&n(e),O(e,r,n)}))}function M(e){return e.isForRename&&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 m=0,g=d;m<g.length;m++)for(var y=0,v=h(g[m],c?"default":s);y<v.length;y++){var b=v[y];e.isIdentifier(b)&&!e.isImportOrExportSpecifier(b.parent)&&n.getSymbolAtLocation(b)===a&&u(b)}},r.isSymbolReferencedInFile=function(e,t,r){return y(e,t,r,(function(){return!0}))||!1},r.eachSymbolReferenceInFile=y,r.eachSignatureCall=function(t,r,n,i){if(t.name&&e.isIdentifier(t.name))for(var a=e.Debug.assertDefined(n.getSymbolAtLocation(t.name)),o=0,s=r;o<s.length;o++)for(var c=0,u=h(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=w,r.getReferenceEntriesForShorthandPropertyAssignment=I}(t.Core||(t.Core={}))}(e.FindAllReferences||(e.FindAllReferences={}))}(s||(s={})),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){if(t){if(t.resolvedModule){var n=a(t.resolvedModule.resolvedFileName);if(n)return n}var i=e.forEach(t.failedLookupLocations,(function(t){return e.endsWith(t,"/package.json")?void 0:a(t)}));return i||t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1}}function a(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),m=t(s,c,f,d),g=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=m(i[n])||r}return r}function m(t){if(!e.isStringLiteral(t))return!1;var a=r(d,t.text),s=o(a);return void 0!==s&&(n.replaceRangeWithText(_,i(t,_),g(s)),!0)}function g(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.assertDefined(o.includeFilePattern),l).test(s)&&!e.getRegexFromPattern(e.Debug.assertDefined(o.includeFilePattern),l).test(c)&&n.insertNodeAfter(_,e.last(t.initializer.elements),e.createStringLiteral(g(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++){m(n[r])}}))}))}}))}(o,t,m,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),m=s(_.fileName),g=m||_.fileName,y=e.getDirectoryPath(g),h=void 0!==d||void 0!==m;!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!==m?n(e.resolveModuleName(r.text,g,t.getCompilerOptions(),c),o):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)}(i,r,_,t,c,o);return void 0!==a&&(a.updated||h&&e.pathIsRelative(r.text))?e.moduleSpecifiers.updateModuleSpecifier(t.getCompilerOptions(),p,a.newFileName,c,l,t.redirectTargetsMap,r.text):void 0}}))},d=0,p=l;d<p.length;d++){var f=p[d];_(f)}}(o,t,m,g,u,f)}))},e.getPathUpdater=t}(s||(s={})),function(e){!function(n){function i(r,n,i){var o=a(n,i,r);if(o)return[d(o.fileName,o.file.fileName)];var _=e.getTouchingPropertyName(n,i);if(_!==n){var p=_.parent;if(e.isJumpStatementTarget(_)){var f=e.getTargetLabel(_.parent,_.text);return f?[u(f,"label",_.text,void 0)]:void 0}var m=r.getTypeChecker(),g=function(e,t){var r=t.getSymbolAtLocation(e);if(r&&2097152&r.flags&&function(e,t){if(75!==e.kind)return!1;if(e.parent===t)return!0;switch(t.kind){case 254:case 252:return!0;case 257:return 256===t.parent.kind;default:return!1}}(e,r.declarations[0])){var n=t.getAliasedSymbol(r);if(n.declarations)return n}return r}(_,m);if(!g)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)}))}(_,m);var y=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)}))}(m,_);if(y&&(!e.isJsxOpeningLikeElement(_.parent)||!function(e){switch(e.kind){case 161:case 170:case 165:return!0;default:return!1}}(y))){var h=l(m,y);if(m.getRootSymbols(g).some((function(t){return function(t,r){return t===r.symbol||t===r.symbol.parent||!e.isCallLikeExpression(r.parent)&&t===r.parent.symbol}(t,y)}))||g.declarations&&g.declarations.some((function(t){return e.isVariableDeclaration(t)&&!!t.initializer&&e.isRequireCall(t.initializer,!1)})))return[h];var v=s(m,g,_,y)||e.emptyArray;return 101===_.kind?t([h],v):t(v,[h])}if(280===_.parent.kind){var b=m.getShorthandAssignmentValueSymbol(g.valueDeclaration);return b?b.declarations.map((function(e){return c(e,m,b,_)})):[]}if(e.isPropertyName(_)&&e.isBindingElement(p)&&e.isObjectBindingPattern(p.parent)&&_===(p.propertyName||p.name)){var x=e.getNameFromPropertyName(_),D=m.getTypeAtLocation(p.parent);return void 0===x?e.emptyArray:e.flatMap(D.isUnion()?D.types:[D],(function(e){var t=e.getProperty(x);return t&&s(m,t,_)}))}var S=e.getContainingObjectLiteralElement(_);if(S){var T=S&&m.getContextualType(S.parent);if(T)return e.flatMap(e.getPropertySymbolsFromContextualType(S,m,T,!1),(function(e){return s(m,e,_)}))}return s(m,g,_)}}function a(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 o(t,r,n){return e.flatMap(!t.isUnion()||32&t.flags?[t]:t.types,(function(e){return e.symbol&&s(r,e.symbol,n)}))}function s(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&&!(16&r.flags)&&(e.isNewExpressionTarget(n)||128===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);return u(t,e.SymbolDisplay.getSymbolKind(r,n,i),a,n.parent?r.symbolToString(n.parent,i):"")}function u(t,n,i,a){var o=e.getNameOfDeclaration(t)||t,s=o.getSourceFile(),c=e.createTextSpanFromNode(o,s);return r({fileName:s.fileName,textSpan:c,kind:n,name:i,containerKind:void 0,containerName:a},e.FindAllReferences.toContextSpan(c,s,e.FindAllReferences.getContextNode(t)))}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)}))}function d(t,r){return{fileName:r,textSpan:e.createTextSpanFromBounds(0,0),kind:"script",name:t,containerName:void 0,containerKind:void 0}}n.getDefinitionAtPosition=i,n.getReferenceAtPosition=a,n.getTypeDefinitionAtPosition=function(t,r,n){var i=e.getTouchingPropertyName(r,n);if(i!==r){var a=t.getSymbolAtLocation(i);if(a){var s=t.getTypeOfSymbolAtLocation(a,i),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}(a,s,t),u=c&&o(c,t,i);return u&&0!==u.length?u:o(s,t,i)}}},n.getDefinitionAndBoundSpan=function(t,r,n){var a=i(t,r,n);if(a&&0!==a.length){var o=_(r.referencedFiles,n)||_(r.typeReferenceDirectives,n)||_(r.libReferenceDirectives,n);if(o)return{definitions:a,textSpan:e.createTextSpanFromRange(o)};var s=e.getTouchingPropertyName(r,n);return{definitions:a,textSpan:e.createTextSpan(s.getStart(),s.getWidth())}}},n.findReferenceInPosition=_}(e.GoToDefinition||(e.GoToDefinition={}))}(s||(s={})),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 305:return n(e.class);case 314:return i(e.typeParameters.map((function(e){return e.getText()})).join(", "));case 313:return n(e.typeExpression);case 315:case 308:case 316:case 310: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 243:case 200:case 160:case 161:case 159:return{commentOwner:t,parameters:t.parameters};case 279:return s(t.initializer);case 244:case 245:case 157:case 247:case 282:case 246:return{commentOwner:t};case 224:var r=t.declarationList.declarations;return{commentOwner:t,parameters:1===r.length&&r[0].initializer?function(t){for(;199===t.kind;)t=t.expression;switch(t.kind){case 200:case 201:return t.parameters;case 213:var r=e.find(t.members,e.isConstructorDeclaration);return r?r.parameters:e.emptyArray}return e.emptyArray}(r[0].initializer):void 0};case 288:return"quit";case 248:return 248===t.parent.kind?void 0:{commentOwner:t};case 208:var n=t;return 0===e.getAssignmentDeclarationKind(n)?"quit":{commentOwner:t,parameters:e.isFunctionLike(n.right)?n.right.parameters:e.emptyArray}}}t.getJsDocCommentsFromDeclarations=function(t){var r=[];return e.forEachUnique(t,(function(t){for(var n=0,i=function(t){switch(t.kind){case 310:case 316:return[t];case 308:case 315: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={}))}(s||(s={})),function(e){!function(t){function r(e,t){switch(e.kind){case 254:case 257:case 252: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)||153===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&&153===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,m=t;f<m.length;f++){p(m[f])}return d.sort(s),(void 0===u?d:d.slice(0,u)).map(c)}}(e.NavigateTo||(e.NavigateTo={}))}(s||(s={})),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 z(e.getText(i))}function f(e){return e.node.kind}function m(e,t){e.children?e.children.push(t):e.children=[t]}function g(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++){E(i[n])}return S(),e.Debug.assert(!a&&!u.length),r}function y(e,t){m(a,h(e,t))}function h(t,r){return{node:t,name:r||(e.isDeclaration(t)||e.isExpression(t)?e.getNameOfDeclaration(t):void 0),additionalNodes:void 0,parent:a,children:void 0,indent:a.indent+1}}function v(t){o||(o=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&&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=h(e,t);m(a,r),u.push(a),l.push(o),a=r}function S(){a.children&&(C(a.children,a),F(a.children)),a=u.pop(),o=l.pop()}function T(e,t,r){D(e,r),E(t),S()}function E(t){var r;if(n.throwIfCancellationRequested(),t&&!e.isToken(t))switch(t.kind){case 161:var i=t;T(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 160:case 162:case 163:case 159:e.hasDynamicName(t)||T(t,t.body);break;case 158:case 157:e.hasDynamicName(t)||y(t);break;case 254:var u=t;u.name&&y(u.name);var l=u.namedBindings;if(l)if(255===l.kind)y(l);else for(var _=0,d=l.elements;_<d.length;_++){y(d[_])}break;case 280:T(t,t.name);break;case 281:var p=t.expression;e.isIdentifier(p)?y(t,p):y(t);break;case 190:case 279:case 241:var f=t,m=f.name,g=f.initializer;e.isBindingPattern(m)?E(m):g&&function(e){switch(e.kind){case 201:case 200:case 213:return!0;default:return!1}}(g)?(D(t),e.forEachChild(g,E),S()):T(t,g);break;case 243:var h=t.name;h&&e.isIdentifier(h)&&v(h.text),T(t,t.body);break;case 201:case 200:T(t,t.body);break;case 247:D(t);for(var C=0,k=t.members;C<k.length;C++){B(F=k[C])||y(F)}S();break;case 244:case 213:case 245:D(t);for(var N=0,A=t.members;N<A.length;N++){var F;E(F=A[N])}S();break;case 248:T(t,function t(r){return r.body&&e.isModuleDeclaration(r.body)?t(r.body):r}(t).body);break;case 261:case 252:case 166:case 164:case 165:case 246:y(t);break;case 195:case 208:var P=e.getAssignmentDeclarationKind(t);switch(P){case 1:case 2:return void T(t,t.right);case 6:case 3:var w=(K=t).left,I=3===P?w.expression:w,O=0,M=void 0;return e.isIdentifier(I.expression)?(v(I.expression.text),M=I.expression):(O=(r=x(K,I.expression))[0],M=r[1]),6===P?e.isObjectLiteralExpression(K.right)&&K.right.properties.length>0&&(D(K,M),e.forEachChild(K.right,E),S()):e.isFunctionExpression(K.right)||e.isArrowFunction(K.right)?T(t,K.right,M):(D(K,M),T(t,K.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)),E(t.arguments[2]),S(),S(),void b(O);case 5:var K,J=(w=(K=t).left).expression;if(e.isIdentifier(J)&&"prototype"!==e.getElementOrPropertyAccessName(w)&&o&&o.has(J.text))return void(e.isFunctionExpression(K.right)||e.isArrowFunction(K.right)?T(t,K.right,J):e.isBindableStaticAccessExpression(w)&&(D(K,J),T(K.left,K.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,E)}}function C(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 244:case 213:case 247:case 245:case 248:case 288:case 246:case 315:case 308:return!0;case 201:case 243:case 200:return function(e){if(!e.node.body)return!1;switch(f(e.parent)){case 249:case 288:case 160:case 161: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}(g(t)),M)}finally{d()}},t.getNavigationTree=function(e,t){n=t,i=e;try{return O(g(e))}finally{d()}};var k=((r={})[5]=!0,r[3]=!0,r[7]=!0,r[9]=!0,r[0]=!1,r[1]=!1,r[2]=!1,r[8]=!1,r[6]=!0,r[4]=!1,r);function N(t,r,n,i){return!!function(t,r,n,i){function a(t){return e.isFunctionExpression(t)||e.isFunctionDeclaration(t)||e.isVariableDeclaration(t)}var o=e.isBinaryExpression(r.node)||e.isCallExpression(r.node)?e.getAssignmentDeclarationKind(r.node):0,s=e.isBinaryExpression(t.node)||e.isCallExpression(t.node)?e.getAssignmentDeclarationKind(t.node):0;if(k[o]&&k[s]||a(t.node)&&k[o]||a(r.node)&&k[s]||e.isClassDeclaration(t.node)&&k[o]||e.isClassDeclaration(r.node)&&k[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=h(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&&(C(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&&C(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 158:case 160:case 162:case 163:return e.hasModifier(t,32)===e.hasModifier(r,32);case 248:return function e(t,r){return t.body.kind===r.body.kind&&(248!==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&&(C(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(248===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 200:case 201:case 213:return J(t);default:return}}function I(t,r){if(248===t.kind)return z(R(t));if(r){var n=e.isIdentifier(r)?r.text:e.isElementAccessExpression(r)?"["+p(r.argumentExpression)+"]":p(r);if(n.length>0)return z(n)}switch(t.kind){case 288:var i=t;return e.isExternalModule(i)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName))))+'"':"<global>";case 201:case 243:case 200:case 244:case 213:return 512&e.getModifierFlags(t)?"default":J(t);case 161:return"constructor";case 165:return"new()";case 164:return"()";case 166:return"[]";default:return"<unknown>"}}function O(t){return{text:I(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:K(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:K(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&&248===t.body.kind;)t=t.body,r.push(e.getTextOfIdentifierOrLiteral(t.name));return r.join(".")}function B(e){return!e.name||153===e.name.kind}function j(t){return 288===t.kind?e.createTextSpanFromRange(t):e.createTextSpanFromNode(t,i)}function K(t){return t.parent&&241===t.parent.kind&&(t=t.parent),e.getNodeModifiers(t)}function J(t){var r=t.parent;if(t.name&&e.getFullWidth(t.name)>0)return z(e.declarationNameToString(t.name));if(e.isVariableDeclaration(r))return z(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=z(n)).length>c?n+" callback":n+"("+z(e.mapDefined(r.arguments,(function(t){return e.isStringLiteralLike(t)?t.getText(i):void 0})).join(", "))+") callback"}return"<function>"}function z(e){return(e=e.length>c?e.substring(0,c)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}}(e.NavigationBar||(e.NavigationBar={}))}(s||(s={})),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){if(0===t.length)return t;var r=function(t){for(var r,n=[],i=[],a=[],o=0,s=t;o<s.length;o++){var c=s[o];if(void 0!==c.importClause){var u=c.importClause,l=u.name,_=u.namedBindings;l&&n.push(c),_&&(e.isNamespaceImport(_)?i.push(c):a.push(c))}else r=r||c}return{importWithoutClause:r,defaultImports:n,namespaceImports:i,namedImports:a}}(t),n=r.importWithoutClause,i=r.defaultImports,a=r.namespaceImports,c=r.namedImports,l=[];if(n&&l.push(n),1===i.length&&1===a.length&&0===c.length){var _=i[0];return l.push(o(_,_.importClause.name,a[0].importClause.namedBindings)),l}for(var d,p=0,f=e.stableSort(a,(function(e,t){return u(e.importClause.namedBindings.name,t.importClause.namedBindings.name)}));p<f.length;p++){var m=f[p];l.push(o(m,void 0,m.importClause.namedBindings))}if(0===i.length&&0===c.length)return l;var g=[];if(1===i.length)d=i[0].importClause.name;else for(var y=0,h=i;y<h.length;y++){_=h[y];g.push(e.createImportSpecifier(e.createIdentifier("default"),_.importClause.name))}g.push.apply(g,e.flatMap(c,(function(e){return e.importClause.namedBindings.elements})));var v=s(g),b=i.length>0?i[0]:c[0],x=0===v.length?d?void 0:e.createNamedImports(e.emptyArray):0===c.length?e.createNamedImports(v):e.updateNamedImports(c[0].importClause.namedBindings,v);return l.push(o(b,d,x)),l}function a(t){if(0===t.length)return t;var r=function(e){for(var t,r=[],n=0,i=e;n<i.length;n++){var a=i[n];void 0===a.exportClause?t=t||a:r.push(a)}return{exportWithoutClause:t,namedExports:r}}(t),n=r.exportWithoutClause,i=r.namedExports,a=[];if(n&&a.push(n),0===i.length)return a;var o=[];o.push.apply(o,e.flatMap(i,(function(e){return e.exportClause.elements})));var c=s(o),u=i[0];return a.push(e.updateExportDeclaration(u,u.decorators,u.modifiers,e.updateNamedExports(u.exportClause,c),u.moduleSpecifier)),a}function o(t,r,n){return e.updateImportDeclaration(t,t.decorators,t.modifiers,e.updateImportClause(t.importClause,r,n),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 m=p.name,g=p.namedBindings;if(m&&!h(m)&&(m=void 0),g)if(e.isNamespaceImport(g))h(g.name)||(g=void 0);else{var y=g.elements.filter((function(e){return h(e.name)}));y.length<g.elements.length&&(g=y.length?e.updateNamedImports(g,y):void 0)}m||g?u.push(o(d,m,g)):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 h(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,m=t.statements.filter(e.isAmbientModule);f<m.length;f++){var g=m[f];if(g.body)y(g.body.statements.filter(e.isImportDeclaration),p),y(g.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.delete(t,r[_])}}},t.coalesceImports=i,t.coalesceExports=a,t.compareModuleSpecifiers=c}(e.OrganizeImports||(e.OrganizeImports={}))}(s||(s={})),function(e){!function(t){t.collectElements=function(t,r){var c=[];return function(t,r,n){var c=40,u=0,l=t.statements,_=l.length;for(;u<_;){for(;u<_&&!e.isAnyImportSyntax(l[u]);)f(l[u]),u++;if(u===_)break;for(var d=u;u<_&&e.isAnyImportSyntax(l[u]);)i(l[u],t,r,n),u++;var p=u-1;p!==d&&n.push(a(e.findChildOfKind(l[d],95,t).getStart(t),l[p].getEnd(),"imports"))}function f(u){if(0!==c){r.throwIfCancellationRequested(),e.isDeclaration(u)&&i(u,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}(u)&&i(u.parent.parent.parent,t,r,n);var l=function(t,r){switch(t.kind){case 222: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&&o(i,a,t,n,201!==t.kind)}(t.parent,t,r);switch(t.parent.kind){case 227:case 230:case 231:case 229:case 226:case 228:case 235:case 278:return c(t.parent);case 239:var n=t.parent;if(n.tryBlock===t)return c(t.parent);if(n.finallyBlock===t)return c(e.findChildOfKind(n,91,r));default:return s(e.createTextSpanFromNode(t,r),"code")}case 249:return c(t.parent);case 244:case 213:case 245:case 247:case 250:return c(t);case 192:return i(t);case 191:return i(t,22);case 264:return function(t){var n=e.createTextSpanFromBounds(t.openingElement.getStart(r),t.closingElement.getEnd()),i=t.openingElement.tagName.getText(r);return s(n,"code",n,!1,"<"+i+">...</"+i+">")}(t);case 268:return function(t){var n=e.createTextSpanFromBounds(t.openingFragment.getStart(r),t.closingFragment.getEnd());return s(n,"code",n,!1,"<>...</>")}(t);case 265:case 266:return function(e){if(0===e.properties.length)return;return a(e.getStart(r),e.getEnd(),"code")}(t.attributes)}function i(t,r){return void 0===r&&(r=18),c(t,!1,!e.isArrayLiteralExpression(t.parent)&&!e.isCallExpression(t.parent),r)}function c(n,i,a,s,c){void 0===i&&(i=!1),void 0===a&&(a=!0),void 0===s&&(s=18),void 0===c&&(c=18===s?19:23);var u=e.findChildOfKind(t,s,r),l=e.findChildOfKind(t,c,r);return u&&l&&o(u,l,n,r,i,a)}}(u,t);l&&n.push(l),c--,e.isIfStatement(u)&&u.elseStatement&&e.isIfStatement(u.elseStatement)?(f(u.expression),f(u.thenStatement),c++,f(u.elseStatement),c--):u.forEachChild(f),c++}}}(t,r,c),function(t,r){for(var i=[],a=t.getLineStarts(),o=0,c=a;o<c.length;o++){var u=c[o],l=t.getLineEndOfPosition(u),_=n(t.text.substring(u,l));if(_&&!e.isInComment(t,u))if(_[1]){var d=i.pop();d&&(d.textSpan.length=l-d.textSpan.start,d.hintSpan.length=l-d.textSpan.start,r.push(d))}else{var p=e.createTextSpanFromBounds(t.text.indexOf("//",u),l);i.push(s(p,"region",p,!1,_[2]||"#region"))}}}(t,c),c.sort((function(e,t){return e.textSpan.start-t.textSpan.start}))};var r=/^\s*\/\/\s*#(end)?region(?:\s+(.*))?(?:\r)?$/;function n(e){return r.exec(e)}function i(t,r,i,o){var s=e.getLeadingCommentRangesOfNode(t,r);if(s){for(var c=-1,u=-1,l=0,_=r.getFullText(),d=0,p=s;d<p.length;d++){var f=p[d],m=f.kind,g=f.pos,y=f.end;switch(i.throwIfCancellationRequested(),m){case 2:if(n(_.slice(g,y))){h(),l=0;break}0===l&&(c=g),u=y,l++;break;case 3:h(),o.push(a(g,y,"comment")),l=0;break;default:e.Debug.assertNever(m)}}h()}function h(){l>1&&o.push(a(c,u,"comment"))}}function a(t,r,n){return s(e.createTextSpanFromBounds(t,r),n)}function o(t,r,n,i,a,o){return void 0===a&&(a=!1),void 0===o&&(o=!0),s(e.createTextSpanFromBounds(o?t.getFullStart():t.getStart(i),r.getEnd()),"code",e.createTextSpanFromNode(n,i),a)}function s(e,t,r,n,i){return void 0===r&&(r=e),void 0===n&&(n=!1),void 0===i&&(i="..."),{textSpan:e,kind:t,hintSpan:r,bannerText:i,autoCollapse:n}}}(e.OutliningElementsCollector||(e.OutliningElementsCollector={}))}(s||(s={})),function(e){var t;function r(e,t){return{kind:e,isCaseSensitive:t}}function n(e,t){var r=t.get(e);return r||t.set(e,r=v(e)),r}function i(i,a,o){var s=function(e,t){for(var r=e.length-t.length,n=function(r){if(C(t,(function(t,n){return d(e.charCodeAt(n+r))===t})))return{value:r}},i=0;i<=r;i++){var a=n(i);if("object"===f(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 m=p[_];if(c(i,m,a.text,!0))return r(t.substring,c(i,m,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),y=!!u(i,g,a,!1)||!u(i,g,a,!0)&&void 0;if(void 0!==y)return r(t.camelCase,y)}}}function a(e,t,r){if(C(t.totalTextChunk.text,(function(e){return 32!==e&&42!==e}))){var n=i(e,t.totalTextChunk,r);if(n)return n}for(var a,s=0,c=t.subWordTextChunks;s<c.length;s++){a=o(a,i(e,c[s],r))}return a}function o(t,r){return e.min(t,r,s)}function s(t,r){return void 0===t?1:void 0===r?-1:e.compareValues(t.kind,r.kind)||e.compareBooleans(!t.isCaseSensitive,!r.isCaseSensitive)}function c(e,t,r,n,i){return void 0===i&&(i={start:0,length:r.length}),i.length<=t.length&&E(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=n.characterSpans,o=0,s=0;;){if(s===a.length)return!0;if(o===r.length)return!1;for(var u=r[o],_=!1;s<a.length;s++){var d=a[s];if(_&&(!l(n.text.charCodeAt(a[s-1].start))||!l(n.text.charCodeAt(a[s].start))))break;if(!c(t,u,n.text,i,d))break;_=!0,u=e.createTextSpan(u.start+d.length,u.length-d.length)}o++}}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 m(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++){m(e.charCodeAt(i))?(0===n&&(r=i),n++):n>0&&(t.push(y(e.substr(r,n))),n=0)}return n>0&&t.push(y(e.substr(r,n))),t}function y(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:h(e)}}function h(e){return b(e,!1)}function v(e){return b(e,!0)}function b(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=T(t,r,a),u=r&&S(t,a,i);(x(t.charCodeAt(a-1))||x(t.charCodeAt(a))||o!==s||c||u)&&(D(t,i,a)||n.push(e.createTextSpan(i,a-i)),i=a)}return D(t,i,t.length)||n.push(e.createTextSpan(i,t.length-i)),n}function x(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 D(e,t,r){return C(e,(function(e){return x(e)&&95!==e}),t,r)}function S(e,t,r){return t!==r&&t+1<e.length&&l(e.charCodeAt(t))&&_(e.charCodeAt(t+1))&&C(e,l,r,t)}function T(e,t,r){var n=l(e.charCodeAt(r-1));return l(e.charCodeAt(r))&&(!t||!n)}function E(e,t,r){for(var n=e;n<t;n++)if(!r(n))return!1;return!0}function C(e,t,r,n){return void 0===r&&(r=0),void 0===n&&(n=e.length),E(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:y(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=h,e.breakIntoWordSpans=v}(s||(s={})),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 m(){var t=e.scanner.getToken();return 129===t&&(134===(t=_())&&10===(t=_())&&(i||(i=[]),i.push({ref:d(),depth:u})),!0)}function g(){if(24===a)return!1;var t=e.scanner.getToken();if(95===t){if(20===(t=_())){if(10===(t=_()))return p(),!0}else{if(10===t)return p(),!0;if(75===t||e.isKeyword(t))if(148===(t=_())){if(10===(t=_()))return p(),!0}else if(62===t){if(h(!0))return!0}else{if(27!==t)return!0;t=_()}if(18===t){for(t=_();19!==t&&1!==t;)t=_();19===t&&148===(t=_())&&10===(t=_())&&p()}else 41===t&&122===(t=_())&&(75===(t=_())||e.isKeyword(t))&&148===(t=_())&&10===(t=_())&&p()}return!0}return!1}function y(){var t=e.scanner.getToken();if(88===t){if(f(),18===(t=_())){for(t=_();19!==t&&1!==t;)t=_();19===t&&148===(t=_())&&10===(t=_())&&p()}else if(41===t)148===(t=_())&&10===(t=_())&&p();else if(95===t&&(75===(t=_())||e.isKeyword(t))&&62===(t=_())&&h(!0))return!0;return!0}return!1}function h(t){var r=t?_():e.scanner.getToken();return 138===r&&(20===(r=_())&&10===(r=_())&&p(),!0)}function v(){var t=e.scanner.getToken();if(75===t&&"define"===e.scanner.getTokenValue()){if(20!==(t=_()))return!0;if(10===(t=_())){if(27!==(t=_()))return!0;t=_()}if(22!==t)return!0;for(t=_();23!==t&&1!==t;)10===t&&p(),t=_();return!0}return!1}if(r&&function(){for(e.scanner.setText(t),_();1!==e.scanner.getToken();)m()||g()||y()||n&&(h(!1)||v())||_();e.scanner.setText(void 0)}(),e.processCommentPragmas(s,t),e.processPragmasIntoFields(s,e.noop),l){if(i)for(var b=0,x=i;b<x.length;b++){var D=x[b];c.push(D.ref)}return{referencedFiles:s.referencedFiles,typeReferenceDirectives:s.typeReferenceDirectives,libReferenceDirectives:s.libReferenceDirectives,importedFiles:c,isLibFile:!!s.hasNoDefaultLib,ambientExternalModules:void 0}}var S=void 0;if(i)for(var T=0,E=i;T<E.length;T++){0===(D=E[T]).depth?(S||(S=[]),S.push(D.ref.fileName)):c.push(D.ref)}return{referencedFiles:s.referencedFiles,typeReferenceDirectives:s.typeReferenceDirectives,libReferenceDirectives:s.libReferenceDirectives,importedFiles:c,isLibFile:!!s.hasNoDefaultLib,ambientExternalModules:S}}}(s||(s={})),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.getTouchingPropertyName(i,a);return(s&&function(t){switch(t.kind){case 75:case 10:case 14:case 103:return!0;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t);default:return!1}}(s)?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)&&83===t.originalKeywordKind&&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)&&153===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):void 0)||r(e.Diagnostics.You_cannot_rename_this_element)}}(e.Rename||(e.Rename={}))}(s||(s={})),function(e){!function(t){function n(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,i){var o,s,c={textSpan:e.createTextSpanFromBounds(i.getFullStart(),i.getEnd())},l=i;e:for(;;){var _=a(l);if(!_.length)break;for(var d=0;d<_.length;d++){var p=_[d-1],f=_[d],m=_[d+1];if(f.getStart(i)>t)break e;if(n(i,t,f)){if(e.isBlock(f)||e.isTemplateSpan(f)||e.isTemplateHead(f)||e.isTemplateTail(f)||p&&e.isTemplateHead(p)||e.isVariableDeclarationList(f)&&e.isVariableStatement(l)||e.isSyntaxList(f)&&e.isVariableDeclarationList(l)||e.isVariableDeclaration(f)&&e.isSyntaxList(l)&&1===_.length){l=f;break}if(e.isTemplateSpan(l)&&m&&e.isTemplateMiddleOrTemplateTail(m))b(f.getFullStart()-"${".length,m.getStart()+"}".length);var g=e.isSyntaxList(f)&&(s=void 0,18===(s=(o=p)&&o.kind)||22===s||20===s||266===s)&&u(m)&&!e.positionsAreOnSameLine(p.getStart(),m.getStart(),i),y=e.hasJSDocNodes(f)&&f.jsDoc[0].getStart(),h=g?p.getEnd():f.getStart(),v=g?m.getStart():f.getEnd();e.isNumber(y)&&b(y,v),b(h,v),(e.isStringLiteral(f)||e.isTemplateLiteral(f))&&b(h+1,v-1),l=f;break}if(d===_.length-1)break e}}return c;function b(n,i){if(n!==i){var a=e.createTextSpanFromBounds(n,i);(!c||!e.textSpansEqual(a,c.textSpan)&&e.textSpanIntersectsWithPosition(a,t))&&(c=r({textSpan:a},c&&{parent:c}))}}};var i=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function a(t){if(e.isSourceFile(t))return o(t.getChildAt(0).getChildren(),i);if(e.isMappedTypeNode(t)){var r=t.getChildren(),n=r[0],a=r.slice(1),u=e.Debug.assertDefined(a.pop());e.Debug.assertEqual(n.kind,18),e.Debug.assertEqual(u.kind,19);var l=o(a,(function(e){return e===t.readonlyToken||137===e.kind||e===t.questionToken||57===e.kind}));return[n,c(s(o(l,(function(e){var t=e.kind;return 22===t||154===t||23===t})),(function(e){return 58===e.kind}))),u]}if(e.isPropertySignature(t))return s(a=o(t.getChildren(),(function(r){return r===t.name||e.contains(t.modifiers,r)})),(function(e){return 58===e.kind}));if(e.isParameter(t)){var _=o(t.getChildren(),(function(e){return e===t.dotDotDotToken||e===t.name}));return s(o(_,(function(e){return e===_[0]||e===t.questionToken})),(function(e){return 62===e.kind}))}return e.isBindingElement(t)?s(t.getChildren(),(function(e){return 62===e.kind})):t.getChildren()}function o(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 s(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(317,t[0].pos,e.last(t).end);return r._children=t,r}function u(e){var t=e&&e.kind;return 19===t||23===t||21===t||267===t}}(e.SmartSelectionRange||(e.SmartSelectionRange={}))}(s||(s={})),function(e){!function(r){var n,i;function a(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 o(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 a=i,s=o(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:a},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)&&197===i.parent.kind){var p=i,f=p.parent;return e.Debug.assert(210===p.kind),_(f,u=e.isInsideTemplateLiteral(t,r,n)?0:1,n)}if(e.isTemplateSpan(i)&&e.isTaggedTemplateExpression(i.parent.parent)){var m=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}(m.parent.templateSpans.indexOf(m),t,r,n),n)}if(e.isJsxOpeningLikeElement(i)){var g=i.attributes.pos,y=e.skipTrivia(n.text,i.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:e.createTextSpan(g,y-g),argumentIndex:0,argumentCount:1}}var h=e.getPossibleTypeArgumentsInfo(t,n);if(h){var v=h.called,b=h.nTypeArguments;return{isTypeParameterList:!0,invocation:a={kind:1,called:v},argumentsSpan:d=e.createTextSpanFromBounds(v.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();210===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 m(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"}(n||(n={})),r.getSignatureHelpItems=function(t,r,n,i,l){var _=t.getTypeChecker(),d=e.findTokenOnLeftOfPosition(r,n);if(d){var p=!!i&&"characterTyped"===i.kind;if(!p||!e.isInString(r,n,d)&&!e.isInComment(r,n)){var y=!!i&&"invoked"===i.kind,b=function(t,r,n,i,a){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 a=function(t,r,n,i){return function(t,r,n,i){var a=function(t,r,n){if(20!==t.kind&&27!==t.kind)return;var i=t.parent;switch(i.kind){case 199:case 160:case 200:case 201:var a=o(t,r);if(!a)return;var s=a.argumentIndex,u=a.argumentCount,l=a.argumentsSpan,_=e.isMethodDeclaration(i)?n.getContextualTypeForObjectLiteralElement(i):n.getContextualType(i);return _&&{contextualType:_,argumentIndex:s,argumentCount:u,argumentsSpan:l};case 208: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,m=c(d);return p&&{contextualType:p,argumentIndex:f,argumentCount:m,argumentsSpan:e.createTextSpanFromNode(i)};default:return}}(t,n,i);if(!a)return;var s=a.contextualType,l=a.argumentIndex,_=a.argumentCount,d=a.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(a)return{value:a}},_=t;!e.isSourceFile(_)&&(a||!e.isBlock(_));_=_.parent){var d=l(_);if("object"===f(d))return d.value}return}(d,n,r,_,y);if(b){l.throwIfCancellationRequested();var x=function(t,r,n,i,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 i=r.getChildren(n);switch(t.kind){case 20:return e.contains(i,t);case 27:var o=e.findContainingList(t);return!!o&&e.contains(i,o);case 29:return a(t,n,r.expression);default:return!1}}(i,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&&!a(i,n,e.isIdentifier(_)?_.parent:_))return;if(0!==(u=e.getPossibleGenericSignatures(_,c,r)).length)return{kind:0,candidates:u,resolvedSignature:e.first(u)};var d=r.getSymbolAtLocation(_);return d&&{kind:1,symbol:d};case 2:return{kind:0,candidates:[s.signature],resolvedSignature:s.signature};default:return e.Debug.assertNever(s)}}(b,_,r,d,p);return l.throwIfCancellationRequested(),x?_.runWithCancellationToken(l,(function(e){return 0===x.kind?h(x.candidates,x.resolvedSignature,b,r,e):function(e,t,r,n){var i=t.argumentCount,a=t.argumentsSpan,o=t.invocation,s=t.argumentIndex,c=n.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);return c?{items:[v(e,c,n,g(o),r)],applicableSpan:a,selectedItemIndex:0,argumentIndex:s,argumentCount:i}:void 0}(x.symbol,b,r,e)})):e.isSourceFileJS(r)?function(t,r,n){if(2===t.invocation.kind)return;var i=m(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 h(a,a[0],t,r,e)}))}))}))}(b,t,l):void 0}}}},function(e){e[e.Candidate=0]="Candidate",e[e.Type=1]="Type"}(i||(i={})),r.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 y=70246400;function h(r,n,i,a,o){var s=i.isTypeParameterList,c=i.argumentCount,u=i.argumentsSpan,l=i.invocation,_=i.argumentIndex,d=g(l),p=2===l.kind?l.symbol:o.getSymbolAtLocation(m(l)),f=p?e.symbolToDisplayParts(o,p,void 0,void 0):e.emptyArray,y=r.map((function(r){return function(r,n,i,a,o,s){var c=(i?x:D)(r,a,o,s),u=c.isVariadic,l=c.parameters,_=c.prefix,d=c.suffix,p=t(n,_),f=t(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)}))}(r,o,a)),m=r.getDocumentationComment(a),g=r.getJsDocTags();return{isVariadic:u,prefixDisplayParts:p,suffixDisplayParts:f,separatorDisplayParts:b,parameters:l,documentation:m,tags:g}}(r,f,s,o,d,a)}));0!==_&&e.Debug.assertLessThan(_,c);var h=r.indexOf(n);return e.Debug.assert(-1!==h),{items:y,applicableSpan:u,selectedItemIndex:h,argumentIndex:_,argumentCount:c}}function v(r,n,i,a,o){var s=e.symbolToDisplayParts(i,r),c=e.createPrinter({removeComments:!0}),u=n.map((function(e){return S(e,i,a,o,c)})),l=r.getDocumentationComment(i),_=r.getJsDocTags();return{isVariadic:!1,prefixDisplayParts:t(s,[e.punctuationPart(29)]),suffixDisplayParts:[e.punctuationPart(31)],separatorDisplayParts:b,parameters:u,documentation:l,tags:_}}var b=[e.punctuationPart(27),e.spacePart()];function x(r,n,i,a){var o=(r.target||r).typeParameters,s=e.createPrinter({removeComments:!0}),c=(o||e.emptyArray).map((function(e){return S(e,n,i,a,s)})),u=e.mapToDisplayParts((function(o){var c=r.thisParameter?[n.symbolToParameterDeclaration(r.thisParameter,i,y)]:[],u=e.createNodeArray(t(c,n.getExpandedParameters(r).map((function(e){return n.symbolToParameterDeclaration(e,i,y)}))));s.writeList(2576,u,a,o)}));return{isVariadic:!1,parameters:c,prefix:[e.punctuationPart(29)],suffix:t([e.punctuationPart(31)],u)}}function D(r,n,i,a){var o=n.hasEffectiveRestParameter(r),s=e.createPrinter({removeComments:!0}),c=e.mapToDisplayParts((function(t){if(r.typeParameters&&r.typeParameters.length){var o=e.createNodeArray(r.typeParameters.map((function(e){return n.typeParameterToDeclaration(e,i)})));s.writeList(53776,o,a,t)}}));return{isVariadic:o,parameters:n.getExpandedParameters(r).map((function(t){return function(t,r,n,i,a){var o=e.mapToDisplayParts((function(e){var o=r.symbolToParameterDeclaration(t,n,y);a.writeNode(4,o,i,e)})),s=r.isOptionalParameter(t.valueDeclaration);return{name:t.name,documentation:t.getDocumentationComment(r),displayParts:o,isOptional:s}}(t,n,i,a,s)})),prefix:t(c,[e.punctuationPart(20)]),suffix:[e.punctuationPart(21)]}}function S(t,r,n,i,a){var o=e.mapToDisplayParts((function(e){var o=r.typeParameterToDeclaration(t,n);a.writeNode(4,o,i,e)}));return{name:t.symbol.name,documentation:t.symbol.getDocumentationComment(r),displayParts:o,isOptional:!1}}}(e.SignatureHelp||(e.SignatureHelp={}))}(s||(s={})),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)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;var n=c(r.fileName);if(!n)return;var i=s(r.fileName).getSourcePosition(r);return i&&i!==r?t(i)||i: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],m=e.getNormalizedAbsolutePath(f,e.getDirectoryPath(i)),g=o(m,_);if(e.isString(g))return r(n,g,m);if(void 0!==g)return g||void 0}}}(s||(s={})),function(e){var t=e.createMap();function r(t){switch(t.kind){case 253:var r=t.importClause,n=t.moduleSpecifier;return r&&!r.name&&r.namedBindings&&255===r.namedBindings.kind&&e.isStringLiteral(n)?r.namedBindings.name:void 0;case 252: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")||e.hasPropertyAccessExpressionWithName(t,"catch"))}function o(e){switch(e.kind){case 243:case 200:case 201:t.set(s(e),!0);case 99: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 224: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 225: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(_)switch(a.kind){case 200:var o=e.getDeclarationOfExpando(a);if(o){var c=o.symbol;if(c&&(c.exports&&c.exports.size||c.members&&c.members.size)){u.push(e.createDiagnosticForNode(e.isVariableDeclaration(a.parent)?a.parent.name:a,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));break}}case 243:var d=a.symbol;d.members&&d.members.size>0&&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 p=a.declarationList.declarations[0].initializer;p&&e.isRequireCall(p,!0)&&u.push(e.createDiagnosticForNode(p,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],m=r(e.importFromModuleSpecifier(f));if(m){var g=e.getResolvedModule(i,f.text),y=g&&a.getSourceFile(g.resolvedFileName);y&&y.externalModuleIndicator&&e.isExportAssignment(y.externalModuleIndicator)&&y.externalModuleIndicator.isExportEquals&&u.push(e.createDiagnosticForNode(m,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}(s||(s={})),function(e){!function(t){function r(t,r,i){var a=n(t,r,i);if(""!==a)return a;var o=e.getCombinedLocalAndExportSymbolFlags(r);return 32&o?e.getDeclarationOfKind(r,213)?"local class":"class":384&o?"enum":524288&o?"type":64&o?"interface":262144&o?"type parameter":262144&o?"type parameter":8&o?"enum member":2097152&o?"alias":1536&o?"module":a}function n(t,r,n){var a=t.getRootSymbols(r);if(1===a.length&&8192&e.first(a).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(103===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":i(r)?"local var":"var";if(16&o)return i(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 266:case 264:case 265:return 75===n.kind?"property":"JSX attribute";case 271:return"JSX attribute";default:return"property"}}return""}function i(t){return!t.parent&&e.forEach(t.declarations,(function(t){if(200===t.kind)return!0;if(241!==t.kind&&243!==t.kind)return!1;for(var r=t.parent;!e.isFunctionBlock(r);r=r.parent)if(288===r.kind||249===r.kind)return!1;return!0}))}t.getSymbolKind=r,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(i,a,o,s,c,u,l){void 0===u&&(u=e.getMeaningFromLocation(c));var _,d,p,f,m,g,y=[],h=e.getCombinedLocalAndExportSymbolFlags(a),v=1&u?n(i,a,c):"",b=!1,x=103===c.kind&&e.isInExpressionContext(c);if(103===c.kind&&!x)return{displayParts:[e.keywordPart(103)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==v||32&h||2097152&h){"getter"!==v&&"setter"!==v||(v="property");var D=void 0;if(p=x?i.getTypeAtLocation(c):i.getTypeOfSymbolAtLocation(a.exportSymbol||a,c),c.parent&&193===c.parent.kind){var S=c.parent.name;(S===c||S&&0===S.getFullWidth())&&(c=c.parent)}var T=void 0;if(e.isCallOrNewExpression(c)?T=c:e.isCallExpressionTarget(c)||e.isNewExpressionTarget(c)?T=c.parent:c.parent&&e.isJsxOpeningLikeElement(c.parent)&&e.isFunctionLike(a.valueDeclaration)&&(T=c.parent),T){D=i.getResolvedSignature(T);var E=196===T.kind||e.isCallExpression(T)&&101===T.expression.kind,C=E?p.getConstructSignatures():p.getCallSignatures();if(e.contains(C,D.target)||e.contains(C,D)||(D=C.length?C[0]:void 0),D){switch(E&&32&h?(v="constructor",G(p.symbol,v)):2097152&h?(H(v="alias"),y.push(e.spacePart()),E&&(y.push(e.keywordPart(98)),y.push(e.spacePart())),W(a)):G(a,v),v){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":y.push(e.punctuationPart(58)),y.push(e.spacePart()),16&e.getObjectFlags(p)||!p.symbol||(e.addRange(y,e.symbolToDisplayParts(i,p.symbol,s,void 0,5)),y.push(e.lineBreakPart())),E&&(y.push(e.keywordPart(98)),y.push(e.spacePart())),Y(D,C,262144);break;default:Y(D,C)}b=!0}}else if(e.isNameOfFunctionDeclaration(c)&&!(98304&h)||128===c.kind&&161===c.parent.kind){var k=c.parent;if(a.declarations&&e.find(a.declarations,(function(e){return e===(128===c.kind?k.parent:k)}))){C=161===k.kind?p.getNonNullableType().getConstructSignatures():p.getNonNullableType().getCallSignatures();D=i.isImplementationOfOverload(k)?C[0]:i.getSignatureFromDeclaration(k),161===k.kind?(v="constructor",G(p.symbol,v)):G(164!==k.kind||2048&p.symbol.flags||4096&p.symbol.flags?a:p.symbol,v),Y(D,C),b=!0}}}if(32&h&&!b&&!x&&(V(),e.getDeclarationOfKind(a,213)?H("local class"):y.push(e.keywordPart(79)),y.push(e.spacePart()),W(a),X(a,o)),64&h&&2&u&&(U(),y.push(e.keywordPart(113)),y.push(e.spacePart()),W(a),X(a,o)),524288&h&&2&u&&(U(),y.push(e.keywordPart(144)),y.push(e.spacePart()),W(a),X(a,o),y.push(e.spacePart()),y.push(e.operatorPart(62)),y.push(e.spacePart()),e.addRange(y,e.typeToDisplayParts(i,i.getDeclaredTypeOfSymbol(a),s,8388608))),384&h&&(U(),e.some(a.declarations,(function(t){return e.isEnumDeclaration(t)&&e.isEnumConst(t)}))&&(y.push(e.keywordPart(80)),y.push(e.spacePart())),y.push(e.keywordPart(87)),y.push(e.spacePart()),W(a)),1536&h&&!x){U();var N=(K=e.getDeclarationOfKind(a,248))&&K.name&&75===K.name.kind;y.push(e.keywordPart(N?135:134)),y.push(e.spacePart()),W(a)}if(262144&h&&2&u)if(U(),y.push(e.punctuationPart(20)),y.push(e.textPart("type parameter")),y.push(e.punctuationPart(21)),y.push(e.spacePart()),W(a),a.parent)q(),W(a.parent,s),X(a.parent,s);else{var A=e.getDeclarationOfKind(a,154);if(void 0===A)return e.Debug.fail();if(K=A.parent)if(e.isFunctionLikeKind(K.kind)){q();D=i.getSignatureFromDeclaration(K);165===K.kind?(y.push(e.keywordPart(98)),y.push(e.spacePart())):164!==K.kind&&K.name&&W(K.symbol),e.addRange(y,e.signatureToDisplayParts(i,D,o,32))}else 246===K.kind&&(q(),y.push(e.keywordPart(144)),y.push(e.spacePart()),W(K.symbol),X(K.symbol,o))}if(8&h&&(v="enum member",G(a,"enum member"),282===(K=a.declarations[0]).kind)){var F=i.getConstantValue(K);void 0!==F&&(y.push(e.spacePart()),y.push(e.operatorPart(62)),y.push(e.spacePart()),y.push(e.displayPart(e.getTextOfConstantValue(F),"number"==typeof F?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&h){if(U(),!b){var P=i.getAliasedSymbol(a);if(P!==a&&P.declarations&&P.declarations.length>0){var w=P.declarations[0],I=e.getNameOfDeclaration(w);if(I){var O=e.isModuleWithStringLiteralName(w)&&e.hasModifier(w,2),M="default"!==a.name&&!O,L=t(i,P,e.getSourceFileOfNode(w),w,I,u,M?a:P);y.push.apply(y,L.displayParts),y.push(e.lineBreakPart()),m=L.documentation,g=L.tags}}}switch(a.declarations[0].kind){case 251:y.push(e.keywordPart(88)),y.push(e.spacePart()),y.push(e.keywordPart(135));break;case 258:y.push(e.keywordPart(88)),y.push(e.spacePart()),y.push(e.keywordPart(a.declarations[0].isExportEquals?62:83));break;case 261:y.push(e.keywordPart(88));break;default:y.push(e.keywordPart(95))}y.push(e.spacePart()),W(a),e.forEach(a.declarations,(function(t){if(252===t.kind){var r=t;if(e.isExternalModuleImportEqualsDeclaration(r))y.push(e.spacePart()),y.push(e.operatorPart(62)),y.push(e.spacePart()),y.push(e.keywordPart(138)),y.push(e.punctuationPart(20)),y.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(r)),e.SymbolDisplayPartKind.stringLiteral)),y.push(e.punctuationPart(21));else{var n=i.getSymbolAtLocation(r.moduleReference);n&&(y.push(e.spacePart()),y.push(e.operatorPart(62)),y.push(e.spacePart()),W(n,s))}return!0}}))}if(!b)if(""!==v){if(p)if(x?(U(),y.push(e.keywordPart(103))):G(a,v),"property"===v||"JSX attribute"===v||3&h||"local var"===v||x)if(y.push(e.punctuationPart(58)),y.push(e.spacePart()),p.symbol&&262144&p.symbol.flags){var R=e.mapToDisplayParts((function(t){var r=i.typeParameterToDeclaration(p,s);z().writeNode(4,r,e.getSourceFileOfNode(e.getParseTreeNode(s)),t)}));e.addRange(y,R)}else e.addRange(y,e.typeToDisplayParts(i,p,s));else if(16&h||8192&h||16384&h||131072&h||98304&h||"method"===v){(C=p.getNonNullableType().getCallSignatures()).length&&Y(C[0],C)}}else v=r(i,a,c);if(!_&&(_=a.getDocumentationComment(i),d=a.getJsDocTags(),0===_.length&&4&h&&a.parent&&e.forEach(a.parent.declarations,(function(e){return 288===e.kind}))))for(var B=0,j=a.declarations;B<j.length;B++){var K;if((K=j[B]).parent&&208===K.parent.kind){var J=i.getSymbolAtLocation(K.parent.right);if(J&&(_=J.getDocumentationComment(i),d=J.getJsDocTags(),_.length>0))break}}return 0===_.length&&m&&(_=m),0===d.length&&g&&(d=g),{displayParts:y,documentation:_,symbolKind:v,tags:0===d.length?void 0:d};function z(){return f||(f=e.createPrinter({removeComments:!0})),f}function U(){y.length&&y.push(e.lineBreakPart()),V()}function V(){l&&(H("alias"),y.push(e.spacePart()))}function q(){y.push(e.spacePart()),y.push(e.keywordPart(96)),y.push(e.spacePart())}function W(t,r){l&&t===a&&(t=l);var n=e.symbolToDisplayParts(i,t,r||o,void 0,7);e.addRange(y,n),16777216&a.flags&&y.push(e.punctuationPart(57))}function G(t,r){U(),r&&(H(r),t&&!e.some(t.declarations,(function(t){return e.isArrowFunction(t)||(e.isFunctionExpression(t)||e.isClassExpression(t))&&!t.name}))&&(y.push(e.spacePart()),W(t)))}function H(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":return void y.push(e.textOrKeywordPart(t));default:return y.push(e.punctuationPart(20)),y.push(e.textOrKeywordPart(t)),void y.push(e.punctuationPart(21))}}function Y(t,r,n){void 0===n&&(n=0),e.addRange(y,e.signatureToDisplayParts(i,t,s,32|n)),r.length>1&&(y.push(e.spacePart()),y.push(e.punctuationPart(20)),y.push(e.operatorPart(39)),y.push(e.displayPart((r.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),y.push(e.spacePart()),y.push(e.textPart(2===r.length?"overload":"overloads")),y.push(e.punctuationPart(21)));var a=t.getDocumentationComment(i);_=0===a.length?void 0:a,d=t.getJsDocTags()}function X(t,r){var n=e.mapToDisplayParts((function(n){var a=i.symbolToTypeParameterDeclarations(t,r);z().writeList(53776,a,e.getSourceFileOfNode(e.getParseTreeNode(r)),n)}));e.addRange(y,n)}}}(e.SymbolDisplay||(e.SymbolDisplay={}))}(s||(s={})),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,m=e.getNewLineCharacter(a),g={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 m},fileExists:function(e){return e===_},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},y=e.createProgram([_],a,g);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"===f(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}(s||(s={})),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.assertDefined(t),this.currentTokenParent=e.Debug.assertDefined(r),this.nextTokenSpan=e.Debug.assertDefined(n),this.nextTokenParent=e.Debug.assertDefined(i),this.contextNode=e.Debug.assertDefined(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={}))}(s||(s={})),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"}(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,m=!0,g=c({advance:function(){f=void 0,u.getStartPos()!==o?m=!!_&&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:(i=r,13===i.kind?2:function(e){return 16===e.kind||17===e.kind}(r)?3:function(t){if(t.parent)switch(t.parent.kind){case 271:case 266:case 267:case 265:return e.isKeyword(t.kind)||75===t.kind}return!1}(r)?4:function(e){return 11===e.kind}(r)?5:0);var i;if(f&&n===p)return v(f,r);u.getStartPos()!==d&&(e.Debug.assert(void 0!==f),u.setTextPos(d),u.scan());var a=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();break;case 4:return p=4,u.scanJsxIdentifier();case 5:return p=5,u.reScanJsxToken();case 0:break;default:e.Debug.assertNever(r)}var a;return n}(r,n),o=t.createTextRangeWithKind(u.getStartPos(),u.getTextPos(),a);_&&(_=void 0);for(;u.getStartPos()<s&&(a=u.scan(),e.isTrivia(a));){var c=t.createTextRangeWithKind(u.getStartPos(),u.getTextPos(),a);if(_||(_=[]),_.push(c),4===a){u.scan();break}}return v(f={leadingTrivia:l,trailingTrivia:_,token:o},r)},readEOFTokenRange:function(){return e.Debug.assert(h()),t.createTextRangeWithKind(u.getStartPos(),u.getTextPos(),1)},isOnToken:y,isOnEOF:h,getCurrentLeadingTrivia:function(){return l},lastTrailingTriviaWasNewLine:function(){return m},skipToEndOf:function(e){u.setTextPos(e.end),d=u.getStartPos(),p=void 0,f=void 0,m=!1,l=void 0,_=void 0}});return f=void 0,u.setText(void 0),g;function y(){var t=f?f.token.kind:u.getToken();return(f?f.token.pos:u.getStartPos())<s&&1!==t&&!e.isTrivia(t)}function h(){return 1===(f?f.token.kind:u.getToken())}function v(t,r){return e.isToken(r)&&t.token.kind!==r.kind&&(t.token.kind=r.kind),t}}}(e.formatting||(e.formatting={}))}(s||(s={})),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={}))}(s||(s={})),function(e){!function(r){function n(e,t,r,n,i,o){return void 0===o&&(o=0),{leftTokenRange:a(t),rightTokenRange:a(r),rule:{debugName:e,context:n,action:i,flags:o}}}function i(e){return{tokens:e,isSpecific:!0}}function a(t){return"number"==typeof t?i([t]):e.isArray(t)?i(t):t}function o(t,r,n){void 0===n&&(n=[]);for(var a=[],o=t;o<=r;o++)e.contains(n,o)||a.push(o);return i(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 229===e.contextNode.kind}function f(e){return!p(e)}function m(e){switch(e.contextNode.kind){case 208:case 209:case 179:case 216:case 261:case 257:case 167:case 177:case 178:return!0;case 190:case 246:case 252:case 241:case 155:case 282:case 158:case 157:return 62===e.currentTokenSpan.kind||62===e.nextTokenSpan.kind;case 230:case 154:return 96===e.currentTokenSpan.kind||96===e.nextTokenSpan.kind||62===e.currentTokenSpan.kind||62===e.nextTokenSpan.kind;case 231:return 151===e.currentTokenSpan.kind||151===e.nextTokenSpan.kind}return!1}function g(e){return!m(e)}function y(e){return!h(e)}function h(t){var r=t.contextNode.kind;return 158===r||157===r||155===r||241===r||e.isFunctionLikeKind(r)}function v(e){return 209===e.contextNode.kind||179===e.contextNode.kind}function b(e){return e.TokensAreOnSameLine()||E(e)}function x(e){return 188===e.contextNode.kind||185===e.contextNode.kind||function(e){return T(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}(e)}function D(e){return E(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function S(e){return T(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function T(e){return C(e.contextNode)}function E(e){return C(e.nextTokenParent)}function C(e){if(P(e))return!0;switch(e.kind){case 222:case 250:case 192:case 249:return!0}return!1}function k(e){switch(e.contextNode.kind){case 243:case 160:case 159:case 162:case 163:case 164:case 200:case 161:case 201:case 245:return!0}return!1}function N(e){return!k(e)}function A(e){return 243===e.contextNode.kind||200===e.contextNode.kind}function F(e){return P(e.contextNode)}function P(e){switch(e.kind){case 244:case 213:case 245:case 247:case 172:case 248:case 259:case 260:case 253:case 256:return!0}return!1}function w(e){switch(e.currentTokenParent.kind){case 244:case 248:case 247:case 278:case 249:case 236:return!0;case 222:var t=e.currentTokenParent.parent;if(!t||201!==t.kind&&200!==t.kind)return!0}return!1}function I(e){switch(e.contextNode.kind){case 226:case 236:case 229:case 230:case 231:case 228:case 239:case 227:case 235:case 278:return!0;default:return!1}}function O(e){return 192===e.contextNode.kind}function M(e){return function(e){return 195===e.contextNode.kind}(e)||function(e){return 196===e.contextNode.kind}(e)}function L(e){return 27!==e.currentTokenSpan.kind}function R(e){return 23!==e.nextTokenSpan.kind}function B(e){return 201===e.contextNode.kind}function j(e){return 187===e.contextNode.kind}function K(e){return e.TokensAreOnSameLine()&&11!==e.contextNode.kind}function J(e){return 264!==e.contextNode.kind&&268!==e.contextNode.kind}function z(e){return 274===e.contextNode.kind||273===e.contextNode.kind}function U(e){return 271===e.nextTokenParent.kind}function V(e){return 271===e.contextNode.kind}function q(e){return 265===e.contextNode.kind}function W(e){return!k(e)&&!E(e)}function G(e){return e.TokensAreOnSameLine()&&!!e.contextNode.decorators&&H(e.currentTokenParent)&&!H(e.nextTokenParent)}function H(t){for(;e.isExpressionNode(t);)t=t.parent;return 156===t.kind}function Y(e){return 242===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function X(e){return 2!==e.formattingRequestKind}function Q(e){return 248===e.contextNode.kind}function $(e){return 172===e.contextNode.kind}function Z(e){return 165===e.contextNode.kind}function ee(e,t){if(29!==e.kind&&31!==e.kind)return!1;switch(t.kind){case 168:case 198:case 246:case 244:case 213:case 245:case 243:case 200:case 201:case 160:case 159:case 164:case 165:case 195:case 196:case 215:return!0;default:return!1}}function te(e){return ee(e.currentTokenSpan,e.currentTokenParent)||ee(e.nextTokenSpan,e.nextTokenParent)}function re(e){return 198===e.contextNode.kind}function ne(e){return 109===e.currentTokenSpan.kind&&204===e.currentTokenParent.kind}function ie(e){return 211===e.contextNode.kind&&void 0!==e.contextNode.expression}function ae(e){return 217===e.contextNode.kind}function oe(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:221!==r&&26!==r&&(245===t.contextNode.kind||246===t.contextNode.kind?!e.isPropertySignature(t.currentTokenParent)||!!t.currentTokenParent.type||20!==r:e.isPropertyDeclaration(t.currentTokenParent)?!t.currentTokenParent.initializer:229!==t.currentTokenParent.kind&&223!==t.currentTokenParent.kind&&221!==t.currentTokenParent.kind&&22!==r&&20!==r&&39!==r&&40!==r&&43!==r&&13!==r&&27!==r&&210!==r&&15!==r&&14!==r&&24!==r)}function se(t){var r=e.findAncestor(t.currentTokenParent,(function(r){return r.end!==t.currentTokenSpan.end?"quit":e.syntaxMayBeASICandidate(r.kind)}));return!!r&&e.isASICandidate(r,t.sourceFile)}r.getAllRules=function(){for(var a=[],T=0;T<=151;T++)1!==T&&a.push(T);function C(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{tokens:a.filter((function(t){return!e.some((function(e){return e===t}))})),isSpecific:!1}}var P={tokens:a,isSpecific:!1},H=i(t(a,[3])),ee=i(t(a,[1])),ce=o(76,151),ue=o(29,74),le=[96,97,151,122,132],_e=t([75],e.typeKeywords),de=H,pe=i([75,3,79,88,95]),fe=i([21,3,85,106,91,86]),me=[n("IgnoreBeforeComment",P,[2,3],r.anyContext,1),n("IgnoreAfterLineComment",2,P,r.anyContext,1),n("NotSpaceBeforeColon",P,58,[K,g,y],16),n("SpaceAfterColon",58,P,[K,g],4),n("NoSpaceBeforeQuestionMark",P,57,[K,g],16),n("SpaceAfterQuestionMarkInConditionalOperator",57,P,[K,v],4),n("NoSpaceAfterQuestionMark",57,P,[K],16),n("NoSpaceBeforeDot",P,[24,28],[K],16),n("NoSpaceAfterDot",[24,28],P,[K],16),n("NoSpaceBetweenImportParenInImportType",95,20,[K,j],16),n("NoSpaceAfterUnaryPrefixOperator",[45,46,54,53],[8,9,75,20,22,18,103,98],[K,g],16),n("NoSpaceAfterUnaryPreincrementOperator",45,[75,20,103,98],[K],16),n("NoSpaceAfterUnaryPredecrementOperator",46,[75,20,103,98],[K],16),n("NoSpaceBeforeUnaryPostincrementOperator",[75,21,23,98],45,[K],16),n("NoSpaceBeforeUnaryPostdecrementOperator",[75,21,23,98],46,[K],16),n("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[K,m],4),n("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[K,m],4),n("SpaceAfterAddWhenFollowedByPreincrement",39,45,[K,m],4),n("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[K,m],4),n("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[K,m],4),n("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[K,m],4),n("NoSpaceAfterCloseBrace",19,[27,26],[K],16),n("NewLineBeforeCloseBraceInBlockContext",H,19,[S],8),n("SpaceAfterCloseBrace",19,C(21),[K,w],4),n("SpaceBetweenCloseBraceAndElse",19,86,[K],4),n("SpaceBetweenCloseBraceAndWhile",19,110,[K],4),n("NoSpaceBetweenEmptyBraceBrackets",18,19,[K,O],16),n("SpaceAfterConditionalClosingParen",21,22,[I],4),n("NoSpaceBetweenFunctionKeywordAndStar",93,41,[A],16),n("SpaceAfterStarInGeneratorDeclaration",41,75,[A],4),n("SpaceAfterFunctionInFuncDecl",93,P,[k],4),n("NewLineAfterOpenBraceInBlockContext",18,P,[S],8),n("SpaceAfterGetSetInMember",[130,141],75,[k],4),n("NoSpaceBetweenYieldKeywordAndStar",120,41,[K,ie],16),n("SpaceBetweenYieldOrYieldStarAndOperand",[120,41],P,[K,ie],4),n("NoSpaceBetweenReturnAndSemicolon",100,26,[K],16),n("SpaceAfterCertainKeywords",[108,104,98,84,100,107,126],P,[K],4),n("SpaceAfterLetConstInVariableDeclaration",[114,80],P,[K,Y],4),n("NoSpaceBeforeOpenParenInFuncCall",P,20,[K,M,L],16),n("SpaceBeforeBinaryKeywordOperator",P,le,[K,m],4),n("SpaceAfterBinaryKeywordOperator",le,P,[K,m],4),n("SpaceAfterVoidOperator",109,P,[K,ne],4),n("SpaceBetweenAsyncAndOpenParen",125,20,[B,K],4),n("SpaceBetweenAsyncAndFunctionKeyword",125,93,[K],4),n("NoSpaceBetweenTagAndTemplateString",[75,21],[14,15],[K],16),n("SpaceBeforeJsxAttribute",P,75,[U,K],4),n("SpaceBeforeSlashInJsxOpeningElement",P,43,[q,K],4),n("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[q,K],16),n("NoSpaceBeforeEqualInJsxAttribute",P,62,[V,K],16),n("NoSpaceAfterEqualInJsxAttribute",62,P,[V,K],16),n("NoSpaceAfterModuleImport",[134,138],20,[K],16),n("SpaceAfterCertainTypeScriptKeywords",[121,79,129,83,87,88,89,130,112,95,113,134,135,116,118,117,137,141,119,144,148,133,131],P,[K],4),n("SpaceBeforeCertainTypeScriptKeywords",P,[89,112,148],[K],4),n("SpaceAfterModuleName",10,18,[Q],4),n("SpaceBeforeArrow",P,38,[K],4),n("SpaceAfterArrow",38,P,[K],4),n("NoSpaceAfterEllipsis",25,75,[K],16),n("NoSpaceAfterOptionalParameters",57,[21,27],[K,g],16),n("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[K,$],16),n("NoSpaceBeforeOpenAngularBracket",_e,29,[K,te],16),n("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[K,te],16),n("NoSpaceAfterOpenAngularBracket",29,P,[K,te],16),n("NoSpaceBeforeCloseAngularBracket",P,31,[K,te],16),n("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[K,te,N],16),n("SpaceBeforeAt",[21,75],59,[K],4),n("NoSpaceAfterAt",59,P,[K],16),n("SpaceAfterDecorator",P,[121,75,88,83,79,119,118,116,117,130,141,22,41],[G],4),n("NoSpaceBeforeNonNullAssertionOperator",P,53,[K,ae],16),n("NoSpaceAfterNewKeywordOnConstructorSignature",98,20,[K,Z],16),n("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[K],4)],ge=[n("SpaceAfterConstructor",128,20,[c("insertSpaceAfterConstructor"),K],4),n("NoSpaceAfterConstructor",128,20,[l("insertSpaceAfterConstructor"),K],16),n("SpaceAfterComma",27,P,[c("insertSpaceAfterCommaDelimiter"),K,J,R],4),n("NoSpaceAfterComma",27,P,[l("insertSpaceAfterCommaDelimiter"),K,J],16),n("SpaceAfterAnonymousFunctionKeyword",[93,41],20,[c("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),k],4),n("NoSpaceAfterAnonymousFunctionKeyword",[93,41],20,[l("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),k],16),n("SpaceAfterKeywordInControl",ce,20,[c("insertSpaceAfterKeywordsInControlFlowStatements"),I],4),n("NoSpaceAfterKeywordInControl",ce,20,[l("insertSpaceAfterKeywordsInControlFlowStatements"),I],16),n("SpaceAfterOpenParen",20,P,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),K],4),n("SpaceBeforeCloseParen",P,21,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),K],4),n("SpaceBetweenOpenParens",20,20,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),K],4),n("NoSpaceBetweenParens",20,21,[K],16),n("NoSpaceAfterOpenParen",20,P,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),K],16),n("NoSpaceBeforeCloseParen",P,21,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),K],16),n("SpaceAfterOpenBracket",22,P,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),K],4),n("SpaceBeforeCloseBracket",P,23,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),K],4),n("NoSpaceBetweenBrackets",22,23,[K],16),n("NoSpaceAfterOpenBracket",22,P,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),K],16),n("NoSpaceBeforeCloseBracket",P,23,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),K],16),n("SpaceAfterOpenBrace",18,P,[d("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),x],4),n("SpaceBeforeCloseBrace",P,19,[d("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),x],4),n("NoSpaceBetweenEmptyBraceBrackets",18,19,[K,O],16),n("NoSpaceAfterOpenBrace",18,P,[u("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),K],16),n("NoSpaceBeforeCloseBrace",P,19,[u("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),K],16),n("SpaceAfterTemplateHeadAndMiddle",[15,16],P,[c("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),K],4),n("SpaceBeforeTemplateMiddleAndTail",P,[16,17],[c("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),K],4),n("NoSpaceAfterTemplateHeadAndMiddle",[15,16],P,[l("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),K],16),n("NoSpaceBeforeTemplateMiddleAndTail",P,[16,17],[l("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),K],16),n("SpaceAfterOpenBraceInJsxExpression",18,P,[c("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),K,z],4),n("SpaceBeforeCloseBraceInJsxExpression",P,19,[c("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),K,z],4),n("NoSpaceAfterOpenBraceInJsxExpression",18,P,[l("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),K,z],16),n("NoSpaceBeforeCloseBraceInJsxExpression",P,19,[l("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),K,z],16),n("SpaceAfterSemicolonInFor",26,P,[c("insertSpaceAfterSemicolonInForStatements"),K,p],4),n("NoSpaceAfterSemicolonInFor",26,P,[l("insertSpaceAfterSemicolonInForStatements"),K,p],16),n("SpaceBeforeBinaryOperator",P,ue,[c("insertSpaceBeforeAndAfterBinaryOperators"),K,m],4),n("SpaceAfterBinaryOperator",ue,P,[c("insertSpaceBeforeAndAfterBinaryOperators"),K,m],4),n("NoSpaceBeforeBinaryOperator",P,ue,[l("insertSpaceBeforeAndAfterBinaryOperators"),K,m],16),n("NoSpaceAfterBinaryOperator",ue,P,[l("insertSpaceBeforeAndAfterBinaryOperators"),K,m],16),n("SpaceBeforeOpenParenInFuncDecl",P,20,[c("insertSpaceBeforeFunctionParenthesis"),K,k],4),n("NoSpaceBeforeOpenParenInFuncDecl",P,20,[l("insertSpaceBeforeFunctionParenthesis"),K,k],16),n("NewLineBeforeOpenBraceInControl",fe,18,[c("placeOpenBraceOnNewLineForControlBlocks"),I,D],8,1),n("NewLineBeforeOpenBraceInFunction",de,18,[c("placeOpenBraceOnNewLineForFunctions"),k,D],8,1),n("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",pe,18,[c("placeOpenBraceOnNewLineForFunctions"),F,D],8,1),n("SpaceAfterTypeAssertion",31,P,[c("insertSpaceAfterTypeAssertion"),K,re],4),n("NoSpaceAfterTypeAssertion",31,P,[l("insertSpaceAfterTypeAssertion"),K,re],16),n("SpaceBeforeTypeAnnotation",P,58,[c("insertSpaceBeforeTypeAnnotation"),K,h],4),n("NoSpaceBeforeTypeAnnotation",P,58,[l("insertSpaceBeforeTypeAnnotation"),K,h],16),n("NoOptionalSemicolon",26,ee,[s("semicolons",e.SemicolonPreference.Remove),oe],32),n("OptionalSemicolon",P,ee,[s("semicolons",e.SemicolonPreference.Insert),se],64)],ye=[n("NoSpaceBeforeSemicolon",P,26,[K],16),n("SpaceBeforeOpenBraceInControl",fe,18,[_("placeOpenBraceOnNewLineForControlBlocks"),I,X,b],4,1),n("SpaceBeforeOpenBraceInFunction",de,18,[_("placeOpenBraceOnNewLineForFunctions"),k,E,X,b],4,1),n("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",pe,18,[_("placeOpenBraceOnNewLineForFunctions"),F,X,b],4,1),n("NoSpaceBeforeComma",P,27,[K],16),n("NoSpaceBeforeOpenBracket",C(125,77),22,[K],16),n("NoSpaceAfterCloseBracket",23,P,[K,W],16),n("SpaceAfterSemicolon",26,P,[K],4),n("SpaceBetweenForAndAwaitKeyword",92,126,[K],4),n("SpaceBetweenStatements",[21,85,86,77],P,[K,J,f],4),n("SpaceAfterTryFinally",[106,91],18,[K],4)];return t(me,ge,ye)}}(e.formatting||(e.formatting={}))}(s||(s={})),function(e){!function(t){var r;function n(){var n,o;return void 0===r&&(n=t.getAllRules(),o=function(e){for(var t=new Array(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 m=f[p],g=a(d,m),y=t[g];void 0===y&&(y=t[g]=[]),l(y,o.rule,s,r,g)}return t}(n),r=function(t){var r=o[a(t.currentTokenSpan.kind,t.nextTokenSpan.kind)];if(r){for(var n=[],s=0,c=0,u=r;c<u.length;c++){var l=u[c],_=~i(s);l.action&_&&e.every(l.context,(function(e){return e(t)}))&&(n.push(l),s|=l.action)}if(n.length)return n}}),r}function i(e){var t=0;return 1&e&&(t|=28),2&e&&(t|=96),28&e&&(t|=28),96&e&&(t|=96),t}function a(t,r){return e.Debug.assert(t<=151&&r<=151,"Must compute formatting context from tokens"),t*u+r}t.getFormatContext=function(e){return{options:e,getRules:n()}};var o,s=5,c=31,u=152;function l(r,n,i,a,u){var l,_,d,p=3&n.action?i?o.StopRulesSpecific:o.StopRulesAny:n.context!==t.anyContext?i?o.ContextRulesSpecific:o.ContextRulesAny:i?o.NoContextRulesSpecific:o.NoContextRulesAny,f=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}(f,p),0,n),a[u]=(d=1+((l=f)>>(_=p)&c),e.Debug.assert((d&c)===d,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),l&~(c<<_)|d<<_)}!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={}))}(s||(s={})),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 244:case 245:return e.rangeContainsRange(t.members,r);case 248:var n=t.body;return!!n&&249===n.kind&&e.rangeContainsRange(n.statements,r);case 288:case 222:case 249:return e.rangeContainsRange(t.statements,r);case 278: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,m,g=s.options,y=s.getRules,h=new t.FormattingContext(l,c,g),v=-1,b=[];if(o.advance(),o.isOnToken()){var x=l.getLineAndCharacterOfPosition(n.getStart(l)).line,D=x;n.decorators&&(D=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 h=T(i,s,p,y);var b=a;e.forEachChild(i,(function(e){S(e,-1,i,h,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 161:case 243:case 200:case 160:case 159:case 201:if(e.typeParameters===t)return 29;if(e.parameters===t)return 20;break;case 195:case 196:if(e.typeArguments===t)return 29;if(e.arguments===t)return 20;break;case 168:if(e.typeArguments===t)return 29;break;case 172:return 18}return 0}(n,r),u=s,_=a;if(0!==c)for(;o.isOnToken();){if((b=o.readTokenInfo(n)).token.end>r.pos)break;if(b.token.kind===c){_=l.getLineAndCharacterOfPosition(b.token.pos).line,P(b,n,s,n);var d=void 0;if(-1!==v)d=v;else{var p=e.getLineStartPositionForPosition(b.token.pos,l);d=t.SmartIndenter.findFirstNonWhitespaceColumn(p,b.token.pos,l,g)}u=T(n,a,d,g.indentSize)}else P(b,n,s,n)}for(var f=-1,m=0;m<r.length;m++){var y=r[m];f=S(y,f,i,u,_,_,!0,0===m)}var h=function(e){switch(e){case 20:return 21;case 29:return 31;case 18:return 19}return 0}(c);if(0!==h&&o.isOnToken()){var b;27===(b=o.readTokenInfo(n)).token.kind&&e.isCallLikeExpression(n)&&(o.advance(),b=o.isOnToken()?o.readTokenInfo(n):void 0),b&&b.token.kind===h&&e.rangeContainsRange(n,b.token)&&P(b,n,u,n,!0)}}(r,i,s,h)}));for(;o.isOnToken();){var x=o.readTokenInfo(i);if(x.token.end>i.end)break;P(x,i,h,i)}if(!i.parent&&o.isOnEOF()){var D=o.readEOFTokenRange();D.end<=i.end&&_&&N(D,l.getLineAndCharacterOfPosition(D.pos).line,i,_,f,d,a,h)}function S(a,s,c,u,_,d,p,f){var y=a.getStart(l),h=l.getLineAndCharacterOfPosition(y).line,x=h;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,g);if(s!==i||r===u){var _=t.SmartIndenter.getBaseIndentation(g);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;P(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"),P(S,i,u,a),s}var T=156===a.kind?h:d,E=function(e,r,n,i,a,o){var s=t.SmartIndenter.shouldIndentChildNode(g,e)?g.indentSize:0;return o===r?{indentation:r===m?v:a.getIndentation(),delta:Math.min(g.indentSize,a.getDelta(e)+s)}:-1===n?20===e.kind&&r===m?{indentation:v,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,h,D,i,u,T);(n(a,b,h,x,E.indentation,E.delta),11===a.kind)&&F({pos:a.getStart(),end:a.getEnd()},E.indentation,!0,!1);return b=i,f&&191===c.kind&&-1===s&&(s=E.indentation),s}function P(t,n,i,a,s){e.Debug.assert(e.rangeContainsRange(n,t.token));var c=o.lastTrailingTriviaWasNewLine(),d=!1;t.leadingTrivia&&C(t.leadingTrivia,n,b,i);var p=0,f=e.rangeContainsRange(r,t.token),g=l.getLineAndCharacterOfPosition(t.token.pos);if(f){var y=u(t.token),h=_;if(p=k(t.token,g,n,b,i),!y)if(0===p){var x=h&&l.getLineAndCharacterOfPosition(h.end).line;d=c&&g.line!==x}else d=1===p}if(t.trailingTrivia&&C(t.trailingTrivia,n,b,i),d){var D=f&&!u(t.token)?i.getIndentationForToken(g.line,t.token.kind,a,!!s):-1,S=!0;if(t.leadingTrivia){var T=i.getIndentationForComment(t.token.kind,D,a);S=E(t.leadingTrivia,T,S,(function(e){return A(e.pos,T,!1)}))}-1!==D&&S&&(A(t.token.pos,D,1===p),m=g.line,v=D)}o.advance(),b=n}}(n,n,x,D,i,a)}if(!o.isOnToken()){var S=o.getCurrentLeadingTrivia();S&&(E(S,i,!1,(function(e){return k(e,l.getLineAndCharacterOfPosition(e.pos),n,n,void 0)})),function(){var e=_?_.end:r.pos,t=l.getLineAndCharacterOfPosition(e).line,n=l.getLineAndCharacterOfPosition(r.end).line;P(t,n+1,_)}())}return b;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 86:case 110:case 59:return!1;case 43:case 31:switch(a.kind){case 266:case 267:case 265:return!1}break;case 22:case 23:if(185!==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 244:return 79;case 245:return 113;case 243:return 93;case 247:return 247;case 162:return 130;case 163:return 141;case 160:if(t.asteriskToken)return 41;case 158:case 155: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){r.parent&&t.SmartIndenter.shouldIndentChildNode(g,r.parent,r,l)&&(i+=e?g.indentSize:-g.indentSize,a=t.SmartIndenter.shouldIndentChildNode(g,r)?g.indentSize:0)}};function o(e){return t.SmartIndenter.nodeWillIndentChild(g,r,e,l,!0)?a:0}}function E(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&&F(c,n,!i),i=!1;break;case 2:i&&u&&a(c),i=!1;break;case 4:i=!0}}return i}function C(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))k(c,l.getLineAndCharacterOfPosition(c.pos),n,i,a)}}function k(e,t,n,i,a){var o=0;u(e)||(_?o=N(e,t.line,n,_,f,d,i,a):P(l.getLineAndCharacterOfPosition(r.pos).line,t.line));return _=e,d=n,f=t.line,o}function N(t,r,n,i,a,o,s,c){h.updateContext(i,o,t,n,s);var u=y(h),_=!1,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 I(r.end,i.pos-r.end),o?2:0;break;case 32:I(r.pos,r.end-r.pos);break;case 8:if(1!==t.flags&&n!==a)return 0;if(1!==a-n)return O(r.end,i.pos-r.end,g.newLineCharacter),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 O(r.end,i.pos-r.end," "),o?2:0;break;case 64:s=r.end,(c=";")&&b.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);break;case 1:n.getStart(l)===t.pos&&c.recomputeIndentation(!0);break;default:e.Debug.assert(0===d)}_=!(16&o.action)&&1!==o.flags})):_=1!==t.kind,r!==a&&_&&P(a,r,i),d}function A(t,r,n){var i=p(r,g);if(n)O(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+=g.tabSize-r%g.tabSize:r++;return r}(o,a.character)||function(e,t){return e!==l.text.substr(t,e.length)}(i,o))&&O(o,a.character,i)}}function F(r,n,i,a){void 0===a&&(a=!0);var o=l.getLineAndCharacterOfPosition(r.pos).line,s=l.getLineAndCharacterOfPosition(r.end).line;if(o!==s){for(var c=[],u=r.pos,_=o;_<s;_++){var d=e.getEndLinePosition(_,l);c.push({pos:u,end:d}),u=e.getStartPositionOfLine(_+1,l)}if(a&&c.push({pos:u,end:r.end}),0!==c.length){var f=e.getStartPositionOfLine(o,l),m=t.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(f,c[0].pos,l,g);if(n!==m.column){var y=0;i&&(y=1,o++);for(var h=n-m.column,v=y;v<c.length;v++,o++){var b=e.getStartPositionOfLine(o,l),x=0===v?m:t.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(c[v].pos,c[v].end,l,g),D=x.column+h;if(D>0){var S=p(D,g);O(b,x.character,S)}else I(b,x.character)}}}}else i||A(r.pos,n,!1)}function P(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=w(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(l.text.charCodeAt(s-1))),I(s,o+1-s))}}}function w(t,r){for(var n=r;n>=t&&e.isWhiteSpaceSingleLine(l.text.charCodeAt(n));)n--;return n!==r?n+1:-1}function I(t,r){r&&b.push(e.createTextChangeFromStartLength(t,r,""))}function O(t,r,n){(r||n)&&b.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={}))}(s||(s={})),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 m=s(l,e,i),y=m.line===t.line||d(l,e,t.line,i);if(p){var h=g(e,i,u,!y);if(-1!==h)return h+n;if(-1!==(h=c(e,l,t,y,i,u)))return h+n}D(u,l,e,i,o)&&!y&&(n+=u.indentSize);var v=_(l,e,t.line,i);l=(e=l).parent,t=v?i.getLineAndCharacterOfPosition(e.getStart(i)):m}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))&&(288===r.kind||!i)?h(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(226===t.kind&&t.elseStatement===r){var a=e.findChildOfKind(t,86,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 168:return a(n.typeArguments);case 192:return a(n.properties);case 191:return a(n.elements);case 172:return a(n.members);case 243:case 200:case 201:case 160:case 159:case 164:case 161:case 170:case 165:return a(n.typeParameters)||a(n.parameters);case 244:case 213:case 245:case 246:case 314:return a(n.typeParameters);case 196:case 195:return a(n.typeArguments)||a(n.arguments);case 242:return a(n.declarations);case 256:case 260:return a(n.elements);case 188:case 189: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 m(e,t,r){return e?h(t.getLineAndCharacterOfPosition(e.pos),t,r):-1}function g(e,t,r,n){if(e.parent&&242===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 m(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 h(a,n,i);a=l(t[o],n)}return-1}function h(e,t,r){var n=t.getPositionOfLineAndCharacter(e.line,0);return b(n,n+e.character,t,r)}function v(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 v(e,t,r,n).column}function x(t,r,n,i,a){var o=n?n.kind:0;switch(r.kind){case 225:case 244:case 213:case 245:case 247:case 246:case 191:case 222:case 249:case 192:case 172:case 185:case 174:case 250:case 276:case 275:case 199:case 193:case 195:case 196:case 224:case 258:case 234:case 209:case 189:case 188:case 266:case 269:case 265:case 274:case 159:case 164:case 165:case 155:case 169:case 170:case 181:case 197:case 205:case 260:case 256:case 261:case 257:case 158:return!0;case 241:case 279:case 208:if(!t.indentMultiLineObjectLiteralBeginningOnBlankLine&&i&&192===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(208!==r.kind)return!0;break;case 227:case 228:case 230:case 231:case 229:case 226:case 243:case 200:case 160:case 201:case 161:case 162:case 163:return 222!==o;case 259:return 260!==o;case 253:return 254!==o||!!n.namedBindings&&256!==n.namedBindings.kind;case 264:return 267!==o;case 268:return 270!==o;case 178:case 177:if(172===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 234:case 238:case 232:case 233:return 222!==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=v(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&&208!==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 h=function(e,t,r){return t&&f(e,e,t,r)}(r,c.parent,n);return h&&!e.rangeContainsRange(h,c)?m(h,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),m=0!==f?s&&2===f?c.indentSize:0:i!==p.line?c.indentSize:0;return o(d,p,void 0,m,t,!0,c)}var y=g(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=v,r.findFirstNonWhitespaceColumn=b,r.nodeWillIndentChild=x,r.shouldIndentChildNode=D}(t.SmartIndenter||(t.SmartIndenter={}))}(e.formatting||(e.formatting={}))}(s||(s={})),function(e){!function(n){function i(t){var r=t.__pos;return e.Debug.assert("number"==typeof r),r}function a(t,r){e.Debug.assert("number"==typeof r),t.__pos=r}function o(t){var r=t.__end;return e.Debug.assert("number"==typeof r),r}function s(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"}(c=n.LeadingTriviaOption||(n.LeadingTriviaOption={})),function(e){e[e.Exclude=0]="Exclude",e[e.Include=1]="Include"}(u=n.TrailingTriviaOption||(n.TrailingTriviaOption={}));var _,d={leadingTriviaOption:c.Exclude,trailingTriviaOption:u.Exclude};function p(e,t,r,n){return{pos:f(e,t,n),end:m(e,r,n)}}function f(t,r,n){var i=n.leadingTriviaOption;if(i===c.Exclude)return r.getStart(t);var a=r.getFullStart(),o=r.getStart(t);if(a===o)return o;var s=e.getLineStartPositionForPosition(a,t);if(e.getLineStartPositionForPosition(o,t)===s)return i===c.IncludeAll?a:o;var u=a>0?1:0,_=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,s)+u,t);return _=l(t.text,_),e.getStartPositionOfLine(e.getLineOfLocalPosition(t,_),t)}function m(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 g(e,t){return!!t&&!!e.parent&&(27===t.kind||26===t.kind&&192===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"}(_||(_={})),n.isThisTypeAnnotatable=function(t){return e.isFunctionExpression(t)||e.isFunctionDeclaration(t)};var y,h,v=function(){function n(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=e.createMap(),this.deletedNodes=[]}return n.fromContext=function(t){return new n(e.getNewLineOrDefaultFromHost(t.host,t.formatContext.options),t.formatContext)},n.with=function(e,t){var r=n.fromContext(e);return t(r),r.getChanges()},n.prototype.pushRaw=function(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)})}},n.prototype.deleteRange=function(e,t){this.changes.push({kind:_.Remove,sourceFile:e,range:t})},n.prototype.delete=function(e,t){this.deletedNodes.push({sourceFile:e,node:t})},n.prototype.deleteModifier=function(t,r){this.deleteRange(t,{pos:r.getStart(t),end:e.skipTrivia(t.text,r.end,!0)})},n.prototype.deleteNodeRange=function(e,t,r,n){void 0===n&&(n={leadingTriviaOption:c.IncludeAll});var i=f(e,t,n),a=m(e,r,n);this.deleteRange(e,{pos:i,end:a})},n.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})},n.prototype.replaceRange=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:_.ReplaceWithSingleNode,sourceFile:e,range:t,options:n,node:r})},n.prototype.replaceNode=function(e,t,r,n){void 0===n&&(n=d),this.replaceRange(e,p(e,t,t,n),r,n)},n.prototype.replaceNodeRange=function(e,t,r,n,i){void 0===i&&(i=d),this.replaceRange(e,p(e,t,r,i),n,i)},n.prototype.replaceRangeWithNodes=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:_.ReplaceWithMultipleNodes,sourceFile:e,range:t,options:n,nodes:r})},n.prototype.replaceNodeWithNodes=function(e,t,r,n){void 0===n&&(n=d),this.replaceRangeWithNodes(e,p(e,t,t,n),r,n)},n.prototype.replaceNodeWithText=function(e,t,r){this.replaceRangeWithText(e,p(e,t,t,d),r)},n.prototype.replaceNodeRangeWithNodes=function(e,t,r,n,i){void 0===i&&(i=d),this.replaceRangeWithNodes(e,p(e,t,r,i),n,i)},n.prototype.nextCommaToken=function(t,r){var n=e.findNextToken(r,r.parent,t);return n&&27===n.kind?n:void 0},n.prototype.replacePropertyAssignment=function(e,t,r){var n=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,r,{suffix:n})},n.prototype.insertNodeAt=function(t,r,n,i){void 0===i&&(i={}),this.replaceRange(t,e.createRange(r),n,i)},n.prototype.insertNodesAt=function(t,r,n,i){void 0===i&&(i={}),this.replaceRangeWithNodes(t,e.createRange(r),n,i)},n.prototype.insertNodeAtTopOfFile=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,p(),o;var c=e.getShebang(s);void 0!==c&&(o=c.length,p());var u=e.getLeadingCommentRanges(s,o);if(!u)return o;u.length&&3===u[0].kind&&e.isPinnedComment(s,u[0].pos)&&(o=u[0].end,p(),u=u.slice(1));for(var l=0,_=u;l<_.length;l++){var d=_[l];if(2!==d.kind||!e.isRecognizedTripleSlashComment(s,d.pos,d.end))break;o=d.end,p()}return o;function p(){if(o<s.length){var t=s.charCodeAt(o);e.isLineBreak(t)&&++o<s.length&&13===t&&10===s.charCodeAt(o)&&o++}}}(t);this.insertNodeAt(t,i,r,{prefix:0===i?void 0:this.newLineCharacter,suffix:(e.isLineBreak(t.text.charCodeAt(i))?"":this.newLineCharacter)+(n?this.newLineCharacter:"")})},n.prototype.insertNodeBefore=function(e,t,r,n){void 0===n&&(n=!1),this.insertNodeAt(e,f(e,t,{}),r,this.getOptionsForInsertNodeBefore(t,n))},n.prototype.insertModifierBefore=function(t,r,n){var i=n.getStart(t);this.insertNodeAt(t,i,e.createToken(r),{suffix:" "})},n.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)},n.prototype.insertCommentBeforeLine=function(t,r,n,i){var a=e.getStartPositionOfLine(r,t),o=e.getFirstNonSpaceCharacterPosition(t.text,a),s=C(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)},n.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:m(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})},n.prototype.replaceRangeWithText=function(e,t,r){this.changes.push({kind:_.Text,sourceFile:e,range:t,text:r})},n.prototype.insertText=function(t,r,n){this.replaceRangeWithText(t,e.createRange(r),n)},n.prototype.tryInsertTypeAnnotation=function(t,r,n){var i;if(e.isFunctionLike(r)){if(!(i=e.findChildOfKind(r,21,t))){if(!e.isArrowFunction(r))return!1;i=e.first(r.parameters)}}else i=241!==r.kind&&r.questionToken?r.questionToken:r.name;return this.insertNodeAt(t,i.end,n,{prefix:": "}),!0},n.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})},n.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:">"})},n.prototype.getOptionsForInsertNodeBefore=function(t,r){return e.isStatement(t)||e.isClassElement(t)?{suffix:r?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(t)?{suffix:", "}:e.isParameter(t)?{}:e.isStringLiteral(t)&&e.isImportDeclaration(t.parent)||e.isNamedImports(t)?{suffix:", "}:e.Debug.failBadSyntaxKind(t)},n.prototype.insertNodeAtConstructorStart=function(r,n,i){var a=e.firstOrUndefined(n.body.statements);a&&n.body.multiLine?this.insertNodeBefore(r,a,i):this.replaceConstructorBody(r,n,t([i],n.body.statements))},n.prototype.insertNodeAtConstructorEnd=function(r,n,i){var a=e.lastOrUndefined(n.body.statements);a&&n.body.multiLine?this.insertNodeAfter(r,a,i):this.replaceConstructorBody(r,n,t(n.body.statements,[i]))},n.prototype.replaceConstructorBody=function(t,r,n){this.replaceNode(t,r.body,e.createBlock(n,!0))},n.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})},n.prototype.insertNodeAtClassStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},n.prototype.insertNodeAtObjectStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},n.prototype.insertNodeAtStartWorker=function(t,n,i){var a=n.getStart(t),o=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(a,t),a,t,this.formatContext.options)+this.formatContext.options.indentSize;this.insertNodeAt(t,D(n).pos,i,r({indentation:o},this.getInsertNodeAtStartPrefixSuffix(t,n)))},n.prototype.getInsertNodeAtStartPrefixSuffix=function(r,n){var i=e.isObjectLiteralExpression(n)?",":"";if(0===D(n).length){if(e.addToSeen(this.classesWithNodesInsertedAtStart,e.getNodeId(n),{node:n,sourceFile:r})){var a=e.positionsAreOnSameLine.apply(void 0,t(x(n,r),[r]));return{prefix:this.newLineCharacter,suffix:i+(a?this.newLineCharacter:"")}}return{prefix:"",suffix:i+this.newLineCharacter}}return{prefix:this.newLineCharacter,suffix:i}},n.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))},n.prototype.insertNodeAfter=function(e,t,r){var n=this.insertNodeAfterWorker(e,t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},n.prototype.insertNodeAtEndOfList=function(e,t,r){this.insertNodeAt(e,t.end,r,{prefix:", "})},n.prototype.insertNodesAfter=function(t,r,n){var i=this.insertNodeAfterWorker(t,r,e.first(n));this.insertNodesAt(t,i,n,this.getInsertNodeAfterOptions(t,r))},n.prototype.insertNodeAfterWorker=function(t,r,n){var i,a;return i=r,a=n,((e.isPropertySignature(i)||e.isPropertyDeclaration(i))&&e.isClassOrTypeElement(a)&&153===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)),m(t,r,{})},n.prototype.getInsertNodeAfterOptions=function(t,n){var i=this.getInsertNodeAfterOptionsWorker(n);return r(r({},i),{prefix:n.end===t.end&&e.isStatement(n)?i.prefix?"\n"+i.prefix:"\n":i.prefix})},n.prototype.getInsertNodeAfterOptionsWorker=function(t){switch(t.kind){case 244:case 248:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 241:case 10:case 75:return{prefix:", "};case 279:return{suffix:","+this.newLineCharacter};case 88:return{prefix:" "};case 155:return{};default:return e.Debug.assert(e.isStatement(t)||e.isClassOrTypeElement(t)),{suffix:this.newLineCharacter}}},n.prototype.insertName=function(t,r,n){if(e.Debug.assert(!r.name),201===r.kind){var i=e.findChildOfKind(r,38,t),a=e.findChildOfKind(r,20,t);a?(this.insertNodesAt(t,a.getStart(t),[e.createToken(93),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))),222!==r.body.kind&&(this.insertNodesAt(t,r.body.getStart(t),[e.createToken(18),e.createToken(100)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[e.createToken(26),e.createToken(19)],{joiner:" "}))}else{var o=e.findChildOfKind(r,200===r.kind?93:79,t).end;this.insertNodeAt(t,o,e.createIdentifier(n),{prefix:" "})}},n.prototype.insertExportModifier=function(e,t){this.insertText(e,t.getStart(e),"export ")},n.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&&g(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),m=e.getLineStartPositionForPosition(f,t),y=void 0,h=!1;if(1===i.length)y=27;else{var v=e.findPrecedingToken(r.pos,t);y=g(r,v)?v.kind:27,h=e.getLineStartPositionForPosition(i[a-1].getStart(t),t)!==m}if(function(t,r){for(var n=r;n<t.length;){var i=t.charCodeAt(n);if(!e.isWhiteSpaceSingleLine(i))return 47===i;n++}return!1}(t.text,r.end)&&(h=!0),h){this.replaceRange(t,e.createRange(o),e.createToken(y));var b=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(m,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")},n.prototype.parenthesizeExpression=function(t,r){this.replaceRange(t,e.rangeOfNode(r),e.createParen(r))},n.prototype.finishClassesWithNodesInsertedAtStart=function(){var t=this;this.classesWithNodesInsertedAtStart.forEach((function(r){var n=r.node,i=r.sourceFile,a=x(n,i),o=a[0],s=a[1];e.positionsAreOnSameLine(o,s,i)&&o!==s-1&&t.deleteRange(i,e.createRange(o,s-1))}))},n.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)):h.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])})}}))},n.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},n.prototype.createNewFile=function(e,t,r){this.newFiles.push({oldFile:e,fileName:t,statements:r})},n}();function b(t,r){return e.skipTrivia(t.text,f(t,r,{leadingTriviaOption:c.IncludeAll}),!1,!0)}function x(t,r){return[e.findChildOfKind(t,18,r).end,e.findChildOfKind(t,19,r).end]}function D(t){return e.isObjectLiteralExpression(t)?t.properties:t.members}function S(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 T(t){var r=e.visitEachChild(t,T,e.nullTransformationContext,E,T),n=e.nodeIsSynthesized(r)?r:Object.create(r);return n.pos=i(t),n.end=o(t),n}function E(t,r,n,a,s){var c=e.visitNodes(t,r,n,a,s);if(!c)return c;var u=c===t?e.createNodeArray(c.slice(0)):c;return u.pos=i(t),u.end=o(t),u}function C(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=m(t,r,n);e.deleteRange(t,{pos:i,end:a})}function N(t,r,n,i){var a=e.Debug.assertDefined(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?m(n,i,{}):b(n,a[o+1])})):k(t,n,i)}n.ChangeTracker=v,n.getNewFileText=function(e,t,r,n){return y.newFileChangesWorker(void 0,t,e,r,n)},function(t){function n(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 S(s,e.formatting.formatDocument(c,o))+a}function i(t,r,n){var i=function(t){var r=0,n=e.createTextWriter(t);function i(t,i){if(i||!function(t){return e.skipTrivia(t,0)===t.length}(t)){r=n.getTextPos();for(var a=0;e.isWhiteSpaceLike(t.charCodeAt(t.length-a-1));)a++;r-=a}}return{onEmitNode:function(e,t,n){t&&a(t,r),n(e,t),t&&s(t,r)},onBeforeEmitNodeArray:function(e){e&&a(e,r)},onAfterEmitNodeArray:function(e){e&&s(e,r)},onBeforeEmitToken:function(e){e&&a(e,r)},onAfterEmitToken:function(e){e&&s(e,r)},write:function(e){n.write(e),i(e,!1)},writeComment:function(e){n.writeComment(e)},writeKeyword:function(e){n.writeKeyword(e),i(e,!1)},writeOperator:function(e){n.writeOperator(e),i(e,!1)},writePunctuation:function(e){n.writePunctuation(e),i(e,!1)},writeTrailingSemicolon:function(e){n.writeTrailingSemicolon(e),i(e,!1)},writeParameter:function(e){n.writeParameter(e),i(e,!1)},writeProperty:function(e){n.writeProperty(e),i(e,!1)},writeSpace:function(e){n.writeSpace(e),i(e,!1)},writeStringLiteral:function(e){n.writeStringLiteral(e),i(e,!1)},writeSymbol:function(e,t){n.writeSymbol(e,t),i(e,!1)},writeLine:function(){n.writeLine()},increaseIndent:function(){n.increaseIndent()},decreaseIndent:function(){n.decreaseIndent()},getText:function(){return n.getText()},rawWrite:function(e){n.rawWrite(e),i(e,!1)},writeLiteral:function(e){n.writeLiteral(e),i(e,!0)},getTextPos:function(){return n.getTextPos()},getLine:function(){return n.getLine()},getColumn:function(){return n.getColumn()},getIndent:function(){return n.getIndent()},isAtStartOfLine:function(){return n.isAtStartOfLine()},hasTrailingComment:function(){return n.hasTrailingComment()},hasTrailingWhitespace:function(){return n.hasTrailingWhitespace()},clear:function(){n.clear(),r=0}}}(n),o="\n"===n?1:0;return e.createPrinter({newLine:o,neverAsciiEscape:!0},i).writeNode(4,t,r,i),{text:i.getText(),node:T(t)}}t.getTextChangesFromChanges=function(t,n,a,o){return e.group(t,(function(e){return e.sourceFile.path})).map((function(t){for(var s=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=c.map((function(t){return e.createTextChange(e.createTextSpanFromRange(t.range),function(t,n,a,o,s){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,n,a,o,s,c,u){var l=o.indentation,_=o.prefix,d=o.delta,p=i(t,n,s),f=p.node,m=p.text;u&&u(f,m);var g=function(t,n){var i=t.options,a=!i.semicolons||i.semicolons===e.SemicolonPreference.Ignore,o=i.semicolons===e.SemicolonPreference.Remove||a&&!e.probablyUsesSemicolons(n);return r(r({},i),{semicolons:o?e.SemicolonPreference.Remove:e.SemicolonPreference.Ignore})}(c,n),y=void 0!==l?l:e.formatting.SmartIndenter.getIndentation(a,n,g,_===s||e.getLineStartPositionForPosition(a,n)===a);void 0===d&&(d=e.formatting.SmartIndenter.shouldIndentChildNode(g,t)&&g.indentSize||0);var h={text:m,getLineAndCharacterOfPosition:function(t){return e.getLineAndCharacterOfPosition(this,t)}},v=e.formatting.formatNodeGivenIndentation(f,h,n.languageVariant,y,d,r(r({},c),{options:g}));return S(m,v)}(t,n,l,u,a,o,s)},p=t.kind===_.ReplaceWithMultipleNodes?t.nodes.map((function(t){return e.removeSuffix(d(t),a)})).join(t.options.joiner||a):d(t.node),f=u.preserveLeadingWhitespace||void 0!==u.indentation||e.getLineStartPositionForPosition(l,n)===l?p:p.replace(/^\s+/,"");return(u.prefix||"")+f+(u.suffix||"")}(t,s,n,a,o))}));return{fileName:s.fileName,textChanges:d}}))},t.newFileChanges=function(t,r,i,a,o){var s=n(t,e.getScriptKindFromFileName(r),i,a,o);return{fileName:r,textChanges:[e.createTextChange(e.createTextSpan(0,0),s)],isNewFile:!0}},t.newFileChangesWorker=n,t.getNonformattedText=i}(y||(y={})),n.applyChanges=S,n.isValidLocationToAddComment=C,function(t){function r(t,r,n){if(n.parent.name){var i=e.Debug.assertDefined(e.getTokenAtPosition(r,n.pos-1));t.deleteRange(r,{pos:i.getStart(r),end:n.end})}else{k(t,r,e.getAncestor(n,253))}}t.deleteDeclaration=function(t,n,i,a){switch(a.kind){case 155:var o=a.parent;e.isArrowFunction(o)&&1===o.parameters.length&&!e.findChildOfKind(o,20,i)?t.replaceNodeWithText(i,a,"()"):N(t,n,i,a);break;case 253:k(t,i,a,a===i.imports[0].parent?{leadingTriviaOption:c.Exclude}:void 0);break;case 190:var s=a.parent;189===s.kind&&a!==e.last(s.elements)?k(t,i,a):N(t,n,i,a);break;case 241:!function(t,r,n,i){var a=i.parent;if(278===a.kind)return void t.deleteNodeRange(n,e.findChildOfKind(a,20,n),e.findChildOfKind(a,21,n));if(1!==a.declarations.length)return void N(t,r,n,i);var o=a.parent;switch(o.kind){case 231:case 230:t.replaceNode(n,i,e.createObjectLiteral());break;case 229:k(t,n,a);break;case 224:k(t,n,o);break;default:e.Debug.assertNever(o)}}(t,n,i,a);break;case 154:N(t,n,i,a);break;case 257:var l=a.parent;1===l.elements.length?r(t,i,l):N(t,n,i,a);break;case 255:r(t,i,a);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.isCallLikeExpression(a.parent)?N(t,n,i,a):k(t,i,a,26===a.kind?{trailingTriviaOption:u.Exclude}:void 0)}}}(h||(h={})),n.deleteNode=k}(e.textChanges||(e.textChanges={}))}(s||(s={})),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 o(e,t){return{changes:e,commands:t}}function s(t,r,n){for(var i=t.program,a=t.sourceFile,o=t.cancellationToken,s=0,c=i.getSemanticDiagnostics(a,o).concat(e.computeSuggestionDiagnostics(a,i,o));s<c.length;s++){var u=c[s];e.contains(r,u.code)&&n(u)}}t.createCodeFixActionNoFixId=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){return e.flatMap(r.get(String(t.errorCode))||e.emptyArray,(function(e){return e.getCodeActions(t)}))},t.getAllFixes=function(t){return n.get(e.cast(t.fixId,e.isString)).getAllCodeActions(t)},t.createCombinedCodeActions=o,t.createFileTextChanges=function(e,t){return{fileName:e,textChanges:t}},t.codeFixAll=function(t,r,n){var i=[];return o(e.textChanges.ChangeTracker.with(t,(function(e){return s(t,r,(function(t){return n(e,t,i)}))})),0===i.length?void 0:i)},t.eachDiagnostic=s}(e.codefix||(e.codefix={}))}(s||(s={})),function(e){var t,r;t=e.refactor||(e.refactor={}),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.getRefactorContextSpan=function(t){var r=t.startPosition,n=t.endPosition;return e.createTextSpanFromBounds(r,void 0===n?r:n)}}(s||(s={})),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.assertDefined(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(147)):e.createTypeAssertion(e.createKeywordTypeNode(147),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={}))}(s||(s={})),function(e){!function(r){var n="addMissingAwait",i=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,a=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],o=t([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,i],a);function s(t,n,i,a,s,c){var u=t.sourceFile,d=t.program,p=t.cancellationToken,f=function(t,r,n,i,a){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,a);if(!s)return;for(var c,u=s.isCompleteFix,_=function(t){var s=a.getSymbolAtLocation(t);if(!s)return"continue";var _=e.tryCast(s.valueDeclaration,e.isVariableDeclaration),d=_&&e.tryCast(_.name,e.isIdentifier),p=e.getAncestor(_,224);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,a,r,(function(n){return t!==n&&!function(t,r,n,i){var a=e.isPropertyAccessExpression(t.parent)?t.parent.name:e.isBinaryExpression(t.parent)?t.parent:t,s=e.find(r,(function(e){return e.start===a.getStart(n)&&e.start+e.length===a.getEnd()}));return s&&e.contains(o,s.code)||1&i.getTypeAtLocation(a).flags}(n,f,r,a)})))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,a);if(f){var m=s((function(t){e.forEach(f.initializers,(function(e){var r=e.expression;return _(t,i,u,a,r,c)})),c&&f.needsSecondPassForFixAll&&_(t,i,u,a,n,c)}));return r.createCodeFixActionNoFixId("addMissingAwaitToInitializer",m,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(t,i,a,o,s,c){var u=s((function(e){return _(e,a,t.sourceFile,o,i,c)}));return r.createCodeFixAction(n,u,e.Diagnostics.Add_await,n,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)&&(243===t.parent.kind||200===t.parent.kind||201===t.parent.kind||160===t.parent.kind)}))}function _(t,r,n,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((f=o.getSymbolAtLocation(_))&&c.has(e.getSymbolId(f).toString()))continue;var d=o.getTypeAtLocation(_),p=o.getPromisedTypeOfPromise(d)?e.createAwait(_):_;t.replaceNode(n,_,p)}else if(r===i&&e.isPropertyAccessExpression(s.parent)){if(c&&e.isIdentifier(s.parent.expression))if((f=o.getSymbolAtLocation(s.parent.expression))&&c.has(e.getSymbolId(f).toString()))return;t.replaceNode(n,s.parent.expression,e.createParen(e.createAwait(s.parent.expression)))}else if(e.contains(a,r)&&e.isCallOrNewExpression(s.parent)){if(c&&e.isIdentifier(s))if((f=o.getSymbolAtLocation(s))&&c.has(e.getSymbolId(f).toString()))return;t.replaceNode(n,s,e.createParen(e.createAwait(s)))}else{var f;if(c&&e.isVariableDeclaration(s.parent)&&e.isIdentifier(s.parent.name))if((f=o.getSymbolAtLocation(s.parent.name))&&!e.addToSeen(c,e.getSymbolId(f)))return;t.replaceNode(n,s,e.createAwait(s))}}r.registerCodeFix({fixIds:[n],errorCodes:o,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(t){var n=t.sourceFile,i=t.program,a=t.cancellationToken,l=t.program.getTypeChecker(),_=e.createMap();return r.codeFixAll(t,o,(function(e,r){var o=u(n,r.code,r,a,i);if(o){var d=function(t){return t(e),[]};return s(t,o,r.code,l,d,_)||c(t,o,r.code,l,d,_)}}))}})}(e.codefix||(e.codefix={}))}(s||(s={})),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 191:case 192:case 279:case 280:return!0;default:return!1}}(t)&&"quit"}));if(c)return a(t,c,r,o);var u=s.parent;if(e.isBinaryExpression(u)&&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 208: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 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,80,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={}))}(s||(s={})),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;158!==o.kind||i&&!i.tryAdd(o)||t.insertModifierBefore(r,129,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={}))}(s||(s={})),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={}))}(s||(s={})),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={}))}(s||(s={})),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)||241===t.kind||157===t.kind||158===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.assertDefined(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 293:case 294:return e.createTypeReferenceNode("any",e.emptyArray);case 297:return function(t){return e.createUnionTypeNode([e.visitNode(t.type,c),e.createTypeReferenceNode("undefined",e.emptyArray)])}(t);case 296:return c(t.type);case 295:return function(t){return e.createUnionTypeNode([e.visitNode(t.type,c),e.createTypeReferenceNode("null",e.emptyArray)])}(t);case 299:return function(t){return e.createArrayTypeNode(e.visitNode(t.type,c))}(t);case 298:return function(t){return e.createFunctionTypeNode(e.emptyArray,t.parameters.map(u),t.type)}(t);case 168: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,139===t.typeArguments[0].kind?"n":"s",void 0,e.createTypeReferenceNode(139===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=299===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={}))}(s||(s={})),function(e){!function(r){var n="inferFromUsage",i=[e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,e.Diagnostics.Member_0_implicitly_has_an_1_type.code,e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function a(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 o(t,r,n,i,a,o,d,g,y,h){if(e.isParameterPropertyModifier(n.kind)||75===n.kind||25===n.kind||103===n.kind){var v=n.parent;switch(i=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}(i)){case e.Diagnostics.Member_0_implicitly_has_an_1_type.code:case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(e.isVariableDeclaration(v)&&d(v)||e.isPropertyDeclaration(v)||e.isPropertySignature(v))return s(t,r,v,a,g,o,y,h),v;if(e.isPropertyAccessExpression(v)){var b=p(v.name,a,o),x=e.getTypeNodeIfAccessible(b,v,a,g);if(x){var D=e.createJSDocTypeTag(e.createJSDocTypeExpression(x),"");_(t,r,e.cast(v.parent.parent,e.isExpressionStatement),[D])}return v}return;case e.Diagnostics.Variable_0_implicitly_has_an_1_type.code:var S=a.getTypeChecker().getSymbolAtLocation(n);return S&&S.valueDeclaration&&e.isVariableDeclaration(S.valueDeclaration)&&d(S.valueDeclaration)?(s(t,r,S.valueDeclaration,a,g,o,y,h),S.valueDeclaration):void 0}var T=e.getContainingFunction(n);if(void 0!==T)switch(i){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(e.isSetAccessorDeclaration(T))return c(t,r,T,a,g,o,y,h),T;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(d(T)){var E=e.cast(v,e.isParameter);return function(t,r,n,i,a,o,s,c,_){if(!e.isIdentifier(n.name))return;var d=function(t,r,n,i){var a=f(t,r,n,i);return a&&m(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()}}))}(i,r,a,s);if(e.Debug.assert(i.parameters.length===d.length,"Parameter count and inference count should match"),e.isInJSFile(i))l(t,r,d,a,o);else{var g=e.isArrowFunction(i)&&!e.findChildOfKind(i,20,r);g&&t.insertNodeBefore(r,e.first(i.parameters),e.createToken(20));for(var y=0,h=d;y<h.length;y++){var v=h[y],b=v.declaration,x=v.type;!b||b.type||b.initializer||u(t,r,b,x,a,o,c,_)}g&&t.insertNodeAfter(r,e.last(i.parameters),e.createToken(21))}}(t,r,E,T,a,g,o,y,h),E}return;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:return e.isGetAccessorDeclaration(T)&&e.isIdentifier(T.name)?(u(t,r,T,p(T.name,a,o),a,g,y,h),T):void 0;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:return e.isSetAccessorDeclaration(T)?(c(t,r,T,a,g,o,y,h),T):void 0;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return e.textChanges.isThisTypeAnnotatable(T)&&d(T)?(function(t,r,n,i,a,o){var s=f(n,r,i,o);if(!s||!s.length)return;var c=m(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)}(t,r,T,a,g,o),T):void 0;default:return e.Debug.fail(String(i))}}}function s(t,r,n,i,a,o,s,c){e.isIdentifier(n.name)&&u(t,r,n,p(n.name,i,o),i,a,s,c)}function c(t,r,n,i,a,o,s,c){var _=e.firstOrUndefined(n.parameters);if(_&&e.isIdentifier(n.name)&&e.isIdentifier(_.name)){var d=p(n.name,i,o);d===i.getTypeChecker().getAnyType()&&(d=p(_.name,i,o)),e.isInJSFile(n)?l(t,r,[{declaration:_,type:d}],i,a):u(t,r,_,d,i,a,s,c)}}function u(t,n,i,a,o,s,c,u){var l=e.getTypeNodeIfAccessible(a,i,o,s);if(l)if(e.isInJSFile(n)&&157!==i.kind){var d=e.isVariableDeclaration(i)?e.tryCast(i.parent.parent,e.isVariableStatement):i;if(!d)return;var p=e.createJSDocTypeExpression(l);_(t,n,d,[e.isGetAccessorDeclaration(i)?e.createJSDocReturnTag(p,""):e.createJSDocTypeTag(p,"")])}else(function(t,n,i,a,o,s,c,u,l){var _;if(e.isLiteralImportTypeNode(t)&&t.qualifier&&o.symbol){var d=null===(_=e.find(o.symbol.declarations,(function(e){return!!e.getSourceFile().externalModuleIndicator})))||void 0===_?void 0:_.getSourceFile().symbol;if(d){var p=e.getFirstIdentifier(t.qualifier).symbol,f=r.getImportCompletionAction(p,d,i,p.name,c,s,u,a.pos,l);if(f.codeAction.changes.length&&n.tryInsertTypeAnnotation(i,a,e.createTypeReferenceNode(t.qualifier,t.typeArguments))){for(var m=0,g=f.codeAction.changes;m<g.length;m++){var y=g[m],h=i.fileName===y.fileName?i:e.Debug.assertDefined(s.getSourceFile(y.fileName));n.pushRaw(h,y)}return!0}}}return!1})(l,t,n,i,a,o,s,c,u)||t.tryInsertTypeAnnotation(n,i,l)}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 _(r,n,i,a){var o=e.mapDefined(i.jsDoc,(function(e){return e.comment})),s=e.flatMapToMutable(i.jsDoc,(function(e){return e.tags})),c=a.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 310: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 311:return e.createJSDocReturnTag(r.typeExpression,t.comment)}}(r,t);return i&&(s[n]=i),!!i}))})),u=e.createJSDocComment(o.join("\n"),e.createNodeArray(t(s||e.emptyArray,c))),l=201===i.kind?function(e){if(158===e.parent.kind)return e.parent;return e.parent.parent}(i):i;l.jsDoc=i.jsDoc,l.jsDocCache=i.jsDocCache,r.insertJsdocCommentBefore(n,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 m(t,d(e,t,r),r).single()}function f(t,r,n,i){var a;switch(t.kind){case 161:a=e.findChildOfKind(t,128,r);break;case 201:case 200:var o=t.parent;a=e.isVariableDeclaration(o)&&e.isIdentifier(o.name)?o.name:t.name;break;case 243:case 160:a=t.name}if(a)return d(a,n,i)}function m(r,n,i){var a=r.getTypeChecker(),o={string:function(){return a.getStringType()},number:function(){return a.getNumberType()},Array:function(e){return a.createArrayType(e)},Promise:function(e){return a.createPromiseType(e)}},s=[a.getStringType(),a.getNumberType(),a.createArrayType(a.getAnyType()),a.createPromiseType(a.getAnyType())];return{single:function(){return f(u(n))},parameters:function(o){if(0===n.length||!o.parameters)return;for(var s=c(),_=0,p=n;_<p.length;_++){var m=p[_];i.throwIfCancellationRequested(),l(m,s)}var g=t(s.constructs||[],s.calls||[]);return o.parameters.map((function(t,n){for(var s=[],c=e.isRestParameter(t),l=!1,_=0,p=g;_<p.length;_++){var m=p[_];if(m.argumentTypes.length<=n)l=e.isInJSFile(o),s.push(a.getUndefinedType());else if(c)for(var y=n;y<m.argumentTypes.length;y++)s.push(a.getBaseTypeOfLiteralType(m.argumentTypes[y]));else s.push(a.getBaseTypeOfLiteralType(m.argumentTypes[n]))}if(e.isIdentifier(t.name)){var h=u(d(t.name,r,i));s.push.apply(s,c?e.mapDefined(h,a.getElementTypeOfArrayType):h)}var v=f(s);return{type:c?a.createArrayType(v):v,isOptional:l&&!c,declaration:t}}))},thisParameter:function(){for(var t=c(),r=0,a=n;r<a.length;r++){var o=a[r];i.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,n=e;r<n.length;r++){var a=n[r];i.throwIfCancellationRequested(),l(a,t)}return m(t)}function l(t,r){for(;e.isRightSideOfQualifiedNameOrPropertyAccess(t);)t=t.parent;switch(t.parent.kind){case 225:h(r,a.getVoidType());break;case 207:r.isNumber=!0;break;case 206:!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 208:!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 i=a.getTypeAtLocation(r.left===t?r.right:r.left);1056&i.flags?h(n,i):n.isNumber=!0;break;case 63:case 39:var o=a.getTypeAtLocation(r.left===t?r.right:r.left);1056&o.flags?h(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:h(n,a.getTypeAtLocation(r.left===t?r.right:r.left));break;case 96:t===r.left&&(n.isString=!0);break;case 56:case 60:t!==r.left||241!==t.parent.parent.kind&&!e.isAssignmentExpression(t.parent.parent,!0)||h(n,a.getTypeAtLocation(r.right))}}(t,t.parent,r);break;case 275:case 276:!function(e,t){h(t,a.getTypeAtLocation(e.parent.parent.expression))}(t.parent,r);break;case 195:case 196: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,i=e.arguments;n<i.length;n++){var o=i[n];r.argumentTypes.push(a.getTypeAtLocation(o))}l(e,r.return_),195===e.kind?(t.calls||(t.calls=[])).push(r):(t.constructs||(t.constructs=[])).push(r)}(t.parent,r):_(t,r);break;case 193:!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 194:!function(e,t,r){if(t===e.argumentExpression)return void(r.isNumberOrString=!0);var n=a.getTypeAtLocation(e.argumentExpression),i={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};l(e,i),296&n.flags?r.numberIndex=i:r.stringIndex=i}(t.parent,t,r);break;case 279:case 280:!function(t,r){var n=e.isVariableDeclaration(t.parent.parent)?t.parent.parent:t.parent;v(r,a.getTypeAtLocation(n))}(t.parent,r);break;case 158:!function(e,t){v(t,a.getTypeAtLocation(e.parent))}(t.parent,r);break;case 241:var n=t.parent,i=n.name,o=n.initializer;if(t===i){o&&h(r,a.getTypeAtLocation(o));break}default:return _(t,r)}}function _(t,r){e.isExpressionNode(t)&&h(r,a.getContextualType(t))}function p(e){return f(m(e))}function f(t){if(!t.length)return a.getAnyType();var r=a.getUnionType([a.getStringType(),a.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===a.getStringType()||e===a.getNumberType()},low:function(e){return e===r}},{high:function(e){return!(16385&e.flags)},low:function(e){return!!(16385&e.flags)}},{high:function(e){return!(114689&e.flags||16&a.getObjectFlags(e))},low:function(e){return!!(16&a.getObjectFlags(e))}}]),i=n.filter((function(e){return 16&a.getObjectFlags(e)}));return i.length&&(n=n.filter((function(e){return!(16&a.getObjectFlags(e))}))).push(function(t){if(1===t.length)return t[0];for(var r=[],n=[],i=[],o=[],s=!1,c=!1,u=e.createMultiMap(),l=0,_=t;l<_.length;l++){for(var d=_[l],p=0,f=a.getPropertiesOfType(d);p<f.length;p++){var m=f[p];u.add(m.name,a.getTypeOfSymbolAtLocation(m,m.valueDeclaration))}r.push.apply(r,a.getSignaturesOfType(d,0)),n.push.apply(n,a.getSignaturesOfType(d,1)),d.stringIndexInfo&&(i.push(d.stringIndexInfo.type),s=s||d.stringIndexInfo.isReadonly),d.numberIndexInfo&&(o.push(d.numberIndexInfo.type),c=c||d.numberIndexInfo.isReadonly)}var g=e.mapEntries(u,(function(e,r){var n=r.length<t.length?16777216:0,i=a.createSymbol(4|n,e);return i.type=a.getUnionType(r),[e,i]}));return a.createAnonymousType(t[0].symbol,g,r,n,i.length?a.createIndexInfo(a.getUnionType(i),s):void 0,o.length?a.createIndexInfo(a.getUnionType(o),c):void 0)}(i)),a.getWidenedType(a.getUnionType(n.map(a.getBaseTypeOfLiteralType),2))}function m(t){var r=[];return t.isNumber&&r.push(a.getNumberType()),t.isString&&r.push(a.getStringType()),t.isNumberOrString&&r.push(a.getUnionType([a.getStringType(),a.getNumberType()])),t.numberIndex&&r.push(a.createArrayType(p(t.numberIndex))),(t.properties&&t.properties.size||t.calls&&t.calls.length||t.constructs&&t.constructs.length||t.stringIndex)&&r.push(function(t){var r=e.createUnderscoreEscapedMap();t.properties&&t.properties.forEach((function(e,t){var n=a.createSymbol(4,t);n.type=p(e),r.set(t,n)}));var n=t.calls?[y(t.calls)]:[],i=t.constructs?[y(t.constructs)]:[],o=t.stringIndex&&a.createIndexInfo(p(t.stringIndex),!1);return a.createAnonymousType(void 0,r,n,i,o,void 0)}(t)),r.push.apply(r,(t.candidateTypes||[]).map((function(e){return a.getBaseTypeOfLiteralType(e)}))),r.push.apply(r,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 i,o=a.getTypeOfPropertyOfType(t,n);return!o||(r.calls?!a.getSignaturesOfType(o,0).length||!a.isTypeAssignableTo(o,(i=r.calls,a.createAnonymousType(void 0,e.createSymbolTable(),[y(i)],e.emptyArray,void 0,void 0))):!a.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,i=e.singleOrUndefined(n.typeParameters);if(!i)return t;var s=[];return r.properties.forEach((function(t,r){var o=a.getTypeOfPropertyOfType(n,r);e.Debug.assert(!!o,"generic should have all the properties of its reference."),s.push.apply(s,g(o,p(t),i))})),o[t.symbol.escapedName](f(s))}(r,t)}));return[]}(t)),r}function g(t,r,n){if(t===n)return[r];if(3145728&t.flags)return e.flatMap(t.types,(function(e){return g(e,r,n)}));if(4&e.getObjectFlags(t)&&4&e.getObjectFlags(r)){var i=a.getTypeArguments(t),o=a.getTypeArguments(r),s=[];if(i&&o)for(var c=0;c<i.length;c++)o[c]&&s.push.apply(s,g(i[c],o[c],n));return s}var u=a.getSignaturesOfType(t,0),l=a.getSignaturesOfType(r,0);return 1===u.length&&1===l.length?function(t,r,n){for(var i=[],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=a.getTypeOfSymbolAtLocation(s,s.valueDeclaration),_=u&&a.getElementTypeOfArrayType(l);_&&(l=_);var d=c.type||a.getTypeOfSymbolAtLocation(c,c.valueDeclaration);i.push.apply(i,g(l,d,n))}var p=a.getReturnTypeOfSignature(t),f=a.getReturnTypeOfSignature(r);return i.push.apply(i,g(p,f,n)),i}(u[0],l[0],n):[]}function y(t){for(var r=[],n=Math.max.apply(Math,t.map((function(e){return e.argumentTypes.length}))),i=function(n){var i=a.createSymbol(1,e.escapeLeadingUnderscores("arg"+n));i.type=f(t.map((function(e){return e.argumentTypes[n]||a.getUndefinedType()}))),t.some((function(e){return void 0===e.argumentTypes[n]}))&&(i.flags|=16777216),r.push(i)},o=0;o<n;o++)i(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 a.createSignature(void 0,void 0,void 0,r,s,void 0,n,0)}function h(e,t){!t||1&t.flags||131072&t.flags||(e.candidateTypes||(e.candidateTypes=[])).push(t)}function v(e,t){!t||1&t.flags||131072&t.flags||(e.candidateThisTypes||(e.candidateThisTypes=[])).push(t)}}r.registerCodeFix({errorCodes:i,getCodeActions:function(t){var i,s=t.sourceFile,c=t.program,u=t.span.start,l=t.errorCode,_=t.cancellationToken,d=t.host,p=t.formatContext,f=t.preferences,m=e.getTokenAtPosition(s,u),g=e.textChanges.ChangeTracker.with(t,(function(t){i=o(t,s,m,l,c,_,e.returnTrue,d,p,f)})),y=i&&e.getNameOfDeclaration(i);return y&&0!==g.length?[r.createCodeFixAction(n,g,[a(l,m),y.getText(s)],n,e.Diagnostics.Infer_all_types_from_usage)]:void 0},fixIds:[n],getAllCodeActions:function(t){var n=t.sourceFile,a=t.program,s=t.cancellationToken,c=t.host,u=t.formatContext,l=t.preferences,_=e.nodeSeenTracker();return r.codeFixAll(t,i,(function(t,r){o(t,n,e.getTokenAtPosition(r.file,r.start),r.code,a,s,_,c,u,l)}))}})}(e.codefix||(e.codefix={}))}(s||(s={})),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 243: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,88);return e.createClassDeclaration(void 0,n,t.name,void 0,void 0,r)}(u);break;case 241:s=u.parent.parent,c=function(t){var r=t.initializer;if(!r||200!==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,88);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.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(119)]);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&&225===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 200:var l=s.right,_=e.concatenate(i,a(l,125)),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 201:var p=s.right,f=p.body,m=void 0;m=222===f.kind?f:e.createBlock([e.createReturn(f)]);_=e.concatenate(i,a(p,125)),d=e.createMethod(void 0,_,void 0,o.name,void 0,void 0,p.parameters,void 0,m);return e.copyLeadingComments(s,d,r),d;default:if(e.isSourceFileJS(r))return;var g=e.createProperty(void 0,i,o.name,void 0,void 0,s.right);return e.copyLeadingComments(s.parent,g,r),g}}}}}}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={}))}(s||(s={})),function(e){!function(t){var r,n="convertToAsyncFunction",i=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],a=!0;function o(t,r,n,i,a){var o,_=e.getTokenAtPosition(r,n);if(o=e.isIdentifier(_)&&e.isVariableDeclaration(_.parent)&&_.parent.initializer&&e.isFunctionLikeDeclaration(_.parent.initializer)?_.parent.initializer:e.tryCast(e.getContainingFunction(e.getTokenAtPosition(r,n)),e.isFunctionLikeDeclaration)){var d,p,f=e.createMap(),g=e.createMap(),y=[],h=e.isInJSFile(o),v=function(t,r){if(!t.body)return e.createMap();var n=e.createMap();return e.forEachChild(t.body,(function t(i){s(i,r,"then")?(n.set(e.getNodeId(i).toString(),!0),e.forEach(i.arguments,t)):s(i,r,"catch")?(n.set(e.getNodeId(i).toString(),!0),e.forEachChild(i,t)):s(i,r)?n.set(e.getNodeId(i).toString(),!0):e.forEachChild(i,t)})),n}(o,i),x=function(t,r,n,i,a,o,s){var l=e.createMap(),_=e.createMap();return e.forEachChild(t,(function t(o){if(e.isIdentifier(o)){var d=r.getSymbolAtLocation(o),p=d&&function(e,t){return e.valueDeclaration&&e.valueDeclaration.getSourceFile()===t}(d,i.sourceFile);if(d&&p){var f=m(r.getTypeAtLocation(o),r),g=e.getSymbolId(d).toString();if(!f||e.isFunctionLikeDeclaration(o.parent)||n.has(g)){if(o.parent&&(e.isParameter(o.parent)||e.isVariableDeclaration(o.parent)||e.isBindingElement(o.parent))){var y=o.text,h=_.get(y);if(h&&h.some((function(e){return e!==d}))){var v=u(o,_);l.set(g,v.identifier),n.set(g,v),s.push({identifier:v.identifier,symbol:d}),c(_,y,d)}else{var x=e.getSynthesizedDeepClone(o);l.set(g,x),n.set(g,b(x,[],s.filter((function(e){return e.identifier.text===o.text})).length)),(e.isParameter(o.parent)&&function(t){var n=t.parent;if(e.isCallExpression(n)||e.isIdentifier(n)&&!a.get(e.getNodeId(n).toString())){var i=r.getTypeAtLocation(n);return!!(i&&r.getPromisedTypeOfPromise(i))}return!1}(o.parent.parent)||e.isVariableDeclaration(o.parent))&&(s.push({identifier:x,symbol:d}),c(_,y,d))}}}else{var D=e.firstOrUndefined(f.parameters),S=D&&e.isParameter(D.valueDeclaration)&&e.tryCast(D.valueDeclaration.name,e.isIdentifier)||e.createOptimisticUniqueName("result"),T=u(S,_);n.set(g,T),s.push({identifier:T.identifier,symbol:d}),c(_,S.text,d)}}}else e.forEachChild(o,t)})),e.getSynthesizedDeepCloneWithRenames(t,!0,l,r,(function(t,i){if(e.isIdentifier(t)){var s=r.getSymbolAtLocation(t),c=s&&e.getSymbolId(s).toString();if(s&&n.get(c)){var u=r.getTypeAtLocation(t);o.set(e.getNodeId(i).toString(),u)}}var l=a.get(e.getNodeId(t).toString());void 0!==l&&(a.delete(e.getNodeId(t).toString()),a.set(e.getNodeId(i).toString(),l))}))}(o,i,f,a,v,g,y),D=function(e){var t=[];return e.forEach((function(e){0===e.numberOfAssignmentsOriginal&&t.push(e.identifier)})),t}(f),S=x.body&&e.isBlock(x.body)?(d=x.body,p=[],e.forEachReturnStatement(d,(function(t){e.isReturnStatementWithFixablePromiseHandler(t)&&p.push(t)})),p):e.emptyArray,T={checker:i,synthNamesMap:f,allVarNames:y,setOfExpressionsToReturn:v,constIdentifiers:D,originalTypeMap:g,isInJSFile:h};if(S.length){t.insertLastModifierBefore(r,125,o);for(var E=function(n){e.forEachChild(n,(function i(a){e.isCallExpression(a)?function(e,n){var i=l(e,T,e);t.replaceNodeWithNodes(r,n,i)}(a,n):e.isFunctionLike(a)||e.forEachChild(a,i)}))},C=0,k=S;C<k.length;C++){E(k[C])}}}}function s(t,r,n){var i=(n?e.isCallExpression(t):e.isExpression(t))&&(!n||e.hasPropertyAccessExpressionWithName(t,n))&&r.getTypeAtLocation(t);return!(!i||!r.getPromisedTypeOfPromise(i))}function c(e,t,r){e.has(t)?e.get(t).push(r):e.set(t,[r])}function u(t,r){var n=(r.get(t.text)||e.emptyArray).length;return b(0===n?t:e.createIdentifier(t.text+"_"+n),[],0)}function l(t,r,n,i){if(!t)return e.emptyArray;var o=e.isIdentifier(t)&&r.originalTypeMap.get(e.getNodeId(t).toString())||r.checker.getTypeAtLocation(t);return e.isCallExpression(t)&&e.hasPropertyAccessExpressionWithName(t,"then")&&o&&r.checker.getPromisedTypeOfPromise(o)?function(t,r,n,i){var a=t.arguments,o=a[0],s=a[1];if(!o)return l(t.expression,r,n);var c=y(o,r),u=f(o,i,c,t,r);if(s){var _=y(s,r),d=e.createBlock(l(t.expression,r,t,c).concat(u)),p=f(s,i,_,t,r),m=_?x(_)?_.identifier.text:_.bindingPattern:"e",g=e.createVariableDeclaration(m),h=e.createCatchClause(g,e.createBlock(p));return[e.createTry(d,h,void 0)]}return l(t.expression,r,t,c).concat(u)}(t,r,n,i):e.isCallExpression(t)&&e.hasPropertyAccessExpressionWithName(t,"catch")&&o&&r.checker.getPromisedTypeOfPromise(o)?function(t,r,n){var i,a=t.arguments[0],o=y(a,r),s=r.setOfExpressionsToReturn.get(e.getNodeId(t).toString());n&&!s&&(x(n)?(i=n,r.synthNamesMap.forEach((function(e,t){if(e.identifier.text===n.identifier.text){var i=_(n);r.synthNamesMap.set(t,i)}}))):i=b(e.createOptimisticUniqueName("result"),n.types),i.numberOfAssignmentsOriginal=2,r.constIdentifiers.some((function(e){return e.text===i.identifier.text}))&&r.constIdentifiers.push(_(i).identifier));var c,u,d=e.createBlock(l(t.expression,r,t,i)),p=f(a,i,o,t,r),m=o?x(o)?o.identifier.text:o.bindingPattern:"e",g=e.createVariableDeclaration(m),h=e.createCatchClause(g,e.createBlock(p));if(i&&!s){u=e.getSynthesizedDeepClone(i.identifier);var v=i.types,D=r.checker.getUnionType(v,2),S=r.isInJSFile?void 0:r.checker.typeToTypeNode(D),T=[e.createVariableDeclaration(u,S)];c=e.createVariableStatement(void 0,e.createVariableDeclarationList(T,1))}var E=e.createTry(d,h,void 0),C=n&&u&&(k=n,1===k.kind)&&e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedDeepCloneWithRenames(n.bindingPattern),void 0,u)],2));var k;return e.compact([c,E,C])}(t,r,i):e.isPropertyAccessExpression(t)?l(t.expression,r,n,i):o&&r.checker.getPromisedTypeOfPromise(o)?function(t,r,n){var i=r.setOfExpressionsToReturn.get(e.getNodeId(t).toString()),a=t.original?t.original.parent:t.parent;if(n&&!i&&(!a||e.isPropertyAccessExpression(a)))return p(n,e.createAwait(t),r);if(!n&&!i&&(!a||e.isPropertyAccessExpression(a)))return[e.createStatement(e.createAwait(t))];return[e.createReturn(e.getSynthesizedDeepClone(t))]}(t,r,i):(a=!1,e.emptyArray)}function _(t){return b(e.createOptimisticUniqueName(t.identifier.text))}function d(t,r){var n=function t(r){return e.isIdentifier(r)?[r.text]:e.flatMap(r.elements,(function(r){return e.isOmittedExpression(r)?[]:t(r.name)}))}(v(t));return r.some((function(t){return e.contains(n,t.text)}))?2:1}function p(t,r,n){return!t||h(t)?[e.createStatement(r)]:x(t)&&t.types.length<t.numberOfAssignmentsOriginal?[e.createStatement(e.createAssignment(e.getSynthesizedDeepClone(t.identifier),r))]:[e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedDeepClone(v(t)),void 0,r)],d(t,n.constIdentifiers)))]}function f(t,r,n,i,o){var c=o.setOfExpressionsToReturn.get(e.getNodeId(i).toString());switch(t.kind){case 99:break;case 75:if(!n)break;var u=e.createCall(e.getSynthesizedDeepClone(t),void 0,x(n)?[n.identifier]:[]);if(c)return[e.createReturn(u)];var l=o.originalTypeMap.get(e.getNodeId(t).toString())||o.checker.getTypeAtLocation(t),_=o.checker.getSignaturesOfType(l,0);if(!_.length){a=!1;break}var f=_[0].getReturnType(),y=p(r,e.createAwait(u),o);return r&&r.types.push(f),y;case 200:case 201:var h=t.body;if(e.isBlock(h)){for(var b=[],D=!1,S=0,T=h.statements;S<T.length;S++){var E=T[S];e.isReturnStatement(E)&&(D=!0),e.isReturnStatementWithFixablePromiseHandler(E)?b=b.concat(g(o,[E],r)):b.push(E)}return c?b.map((function(t){return e.getSynthesizedDeepClone(t)})):function(t,r,n,i){for(var a=[],o=0,c=t;o<c.length;o++){var u=c[o];if(e.isReturnStatement(u)){if(u.expression){var l=s(u.expression,n.checker)?e.createAwait(u.expression):u.expression;void 0===r?a.push(e.createExpressionStatement(l)):a.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(v(r),void 0,l)],d(r,n.constIdentifiers))))}}else a.push(e.getSynthesizedDeepClone(u))}i||void 0===r||a.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(v(r),void 0,e.createIdentifier("undefined"))],d(r,n.constIdentifiers))));return a}(b,r,o,D)}var C=g(o,e.isFixablePromiseHandler(h)?[e.createReturn(h)]:e.emptyArray,r);if(C.length>0)return C;var k=m(o.checker.getTypeAtLocation(t),o.checker).getReturnType(),N=e.getSynthesizedDeepClone(h),A=o.checker.getPromisedTypeOfPromise(k)?e.createAwait(N):N;if(c)return[e.createReturn(A)];var F=p(r,A,o);return r&&r.types.push(k),F;default:a=!1}return e.emptyArray}function m(t,r){var n=r.getSignaturesOfType(t,0);return e.lastOrUndefined(n)}function g(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=l(a,t,a,n);if((i=i.concat(o)).length>0)return}else e.isFunctionLike(a)||e.forEachChild(a,r)}))}return i}function y(t,r){var n,i=0,a=[];e.isFunctionLikeDeclaration(t)?t.parameters.length>0&&(n=function t(r){if(e.isIdentifier(r))return o(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=o(t));if(n&&!("identifier"in n&&"undefined"===n.identifier.text))return n;function o(t){var n=function(e){return e.symbol?e.symbol:r.checker.getSymbolAtLocation(e)}(function(e){return e.original?e.original:e}(t));return n&&r.synthNamesMap.get(e.getSymbolId(n).toString())||b(t,a,i)}}function h(t){return!t||(x(t)?!t.identifier.text:e.every(t.elements,h))}function v(e){return x(e)?e.identifier:e.bindingPattern}function b(e,t,r){return void 0===t&&(t=[]),void 0===r&&(r=0),{kind:0,identifier:e,types:t,numberOfAssignmentsOriginal:r}}function x(e){return 0===e.kind}t.registerCodeFix({errorCodes:i,getCodeActions:function(r){a=!0;var i=e.textChanges.ChangeTracker.with(r,(function(e){return o(e,r.sourceFile,r.span.start,r.program.getTypeChecker(),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 o(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={}))}(s||(s={})),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 252:n.replaceNode(t,u,e.makeImport(u.name,void 0,s,i));break;case 195: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)){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,m,g,y){switch(n.kind){case 224:return function(r,n,i,a,o,c,u){var p=n.declarationList,f=!1,m=e.flatMap(p.declarations,(function(n){var m=n.name,g=n.initializer;if(g){if(e.isExportsOrModuleExportsOrAlias(r,g))return f=!0,[];if(e.isRequireCall(g,!0))return f=!0,function(r,n,i,a,o,c,u,l){switch(n.kind){case 188: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 189: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 m=f.parent;if(e.isPropertyAccessExpression(m)){var g=m.expression,y=m.name.text;e.Debug.assert(g===f,"Didn't expect expression === use");var h=l.get(y);void 0===h&&(h=s(y,o),l.set(y,h)),i.replaceNode(t,m,e.createIdentifier(h))}else _=!0}}var v=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))})));v||(_=!0);return[e.makeImport(_?e.getSynthesizedDeepClone(r):void 0,v,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,m,g.arguments[0],i,a,o,c,u);if(e.isPropertyAccessExpression(g)&&e.isRequireCall(g.expression,!0))return f=!0,function(t,r,n,i,a){switch(t.kind){case 188:case 189: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)}}(m,g.name.text,g.expression.arguments[0],o,u)}return e.createVariableStatement(void 0,e.createVariableDeclarationList([n],p.flags))}));f&&i.replaceNodeWithNodes(r,n,m)}(r,n,c,i,f,m,y),!1;case 225:var h=n.expression;switch(h.kind){case 195:return e.isRequireCall(h,!0)&&c.replaceNode(r,n,e.makeImport(void 0,void 0,h.arguments[0],y)),!1;case 208:return 62===h.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)?(f=l,(m=e.mapAllOrFail(f.properties,(function(t){switch(t.kind){case 162:case 163:case 280:case 281:return;case 279:return e.isIdentifier(t.name)?function(t,r){var n=[e.createToken(88)];switch(r.kind){case 200:var i=r.name;if(i&&i.text!==t)return a();case 201:return u(t,n,r);case 213: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 160:return e.isIdentifier(t.name)?u(t.name.text,[e.createToken(88)],t):void 0;default:e.Debug.assertNever(t,"Convert to ES6 got invalid prop kind "+t.kind)}})))&&[m,!1]):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(88),e.createToken(80)],{joiner:" ",suffix:" "});else{n.replaceRange(r,{pos:i.getStart(r),end:a.getStart(r)},e.createToken(88),{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);var f,m;return!1}(r,i,h,c,g)}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 193:return t.name!==e;case 190:case 257: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(t.name.text,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 m=f[p],g=i(t,m,r,a,l,o,_,u);d=d||g}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.createCodeFixActionNoFixId("convertToEs6Module",_,e.Diagnostics.Convert_to_ES6_module)]}})}(e.codefix||(e.codefix={}))}(s||(s={})),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={}))}(s||(s={})),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.assertDefined(e.getContainingClass(e.getTokenAtPosition(t,r)),"There should be a containing class")}function a(t){return!(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);function f(e,n){var a=u.getIndexInfoOfType(e,n);a&&s.insertNodeAtClassStart(i,o,u.indexInfoToIndexSignatureDeclaration(a,n,o,void 0,t.getNoopSymbolTrackerWithResolver(r)))}p.getNumberIndexType()||f(_,1),p.getStringIndexType()||f(_,0),t.createMissingMemberNodes(o,d,r,c,(function(e){return s.insertNodeAtClassStart(i,o,e)}))}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=r.sourceFile,s=r.span,c=i(a,s.start);return e.mapDefined(e.getClassImplementsHeritageClauseElements(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.getClassImplementsHeritageClauseElements(s);c<u.length;c++){var l=u[c];o(n,l,r.file,s,t,n.preferences)}}))}})}(e.codefix||(e.codefix={}))}(s||(s={})),function(e){!function(n){n.importFixId="fixMissingImport";var i,a,o=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics.Cannot_find_namespace_0.code,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code];function s(e){return{description:e.description,changes:e.changes,commands:e.commands}}function c(t,r){return!(111551&e.skipAlias(t,r).flags)}function u(r,n,i,a,o,s,c){var u=a.getTypeChecker(),d=e.flatMap(r,(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 253!==n.kind&&252!==n.kind||r.getSymbolAtLocation(t)!==i?void 0:{declaration:n,importKind:a}}))}(t,u,o)})),p=void 0===i?void 0:function(t,r,n,i){return e.firstDefined(t,(function(t){var a=function(t){if(253===t.kind){var r=t.importClause&&e.isImportClause(t.importClause)&&t.importClause.namedBindings;return r&&255===r.kind?r.name:void 0}return t.name}(t.declaration);if(a){var o=i.getAliasedSymbol(i.getSymbolAtLocation(a));if(o&&o.exports.has(e.escapeLeadingUnderscores(r)))return{kind:0,namespacePrefix:a.text,position:n}}}))}(d,n,i,u),f=function(t){return e.firstDefined(t,(function(e){var t=e.declaration,r=e.importKind;if(253===t.kind){var n=t.importClause;if(n){var i=n.name,a=n.namedBindings;return 1===r&&!i||0===r&&(!a||256===a.kind)?{kind:2,importClause:n,importKind:r}:void 0}}}))}(d),m=f?[f]:function(t,r,n,i,a,o,s){var c=e.firstDefined(r,_);return c?[c]:l(n,i,a,t,o,s)}(r,d,a,o,i,s,c);return t(p?[p]:e.emptyArray,m)}function l(t,r,n,i,a,o){var s=e.isSourceFileJS(r),c=k(r,t,a).allowsImportingSpecifier,u=e.flatMap(i,(function(i){var c=i.moduleSymbol,u=i.importKind,l=i.exportedSymbolIsTypeOnly;return e.moduleSpecifiers.getModuleSpecifiers(c,t.getCompilerOptions(),r,a,t.getSourceFiles(),o,t.redirectTargetsMap).map((function(t){return l&&s?{kind:1,moduleSpecifier:t,position:e.Debug.assertDefined(n,"position should be defined")}:{kind:3,moduleSpecifier:t,importKind:u}}))}));return e.sort(u,(function(e,t){var r=c(e.moduleSpecifier),n=c(t.moduleSpecifier);return r&&!n?-1:n&&!r?1:e.moduleSpecifier.length-t.moduleSpecifier.length}))}function _(t){var r=t.declaration,n=t.importKind,i=253===r.kind?r.moduleSpecifier:263===r.moduleReference.kind?r.moduleReference.expression:void 0;return i&&e.isStringLiteral(i)?{kind:3,moduleSpecifier:i.text,importKind:n}:void 0}function d(t,n,i){var a=e.getTokenAtPosition(t.sourceFile,i),o=n===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 l=s.getAliasedSymbol(c),_=c.name;return{fixes:u([{moduleSymbol:l,importKind:p(n,i.getCompilerOptions()),exportedSymbolIsTypeOnly:!1}],_,e.isIdentifier(r)?r.getStart(n):void 0,i,n,a,o),symbolName:_}}(t,a):e.isIdentifier(a)?function(t,r){var n=t.sourceFile,i=t.program,a=t.cancellationToken,o=t.host,s=t.preferences,l=i.getTypeChecker(),_=e.isJsxOpeningLikeElement(r.parent)&&r.parent.tagName===r&&(e.isIntrinsicJsxName(r.text)||l.resolveName(r.text,r,67108863,!1))?l.getJsxNamespace(n):r.text;e.Debug.assert("default"!==_,"'default' isn't a legal identifier and couldn't occur here");var d=function(t,r,n,i,a,o,s){var u=e.createMultiMap();function l(t,r,n){u.add(e.getUniqueSymbolId(r,a).toString(),{moduleSymbol:t,importKind:n,exportedSymbolIsTypeOnly:c(r,a)})}return S(o,s,i,!0,(function(e){n.throwIfCancellationRequested();var s=f(i,e,a,o.getCompilerOptions());s&&s.name===t&&D(s.symbolForMeaning,r)&&l(e,s.symbol,s.kind);var c=a.tryGetMemberInModuleExportsAndProperties(t,e);c&&D(c,r)&&l(e,c,0)})),u}(_,e.getMeaningFromLocation(r),a,n,l,i,o);return{fixes:e.arrayFrom(e.flatMapIterator(d.entries(),(function(e){e[0];return u(e[1],_,r.getStart(n),i,n,o,s)}))),symbolName:_}}(t,a):void 0;return o&&r(r({},o),{fixes:e.sort(o.fixes,(function(e,t){return e.kind-t.kind}))})}function p(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:4:3;case e.ModuleKind.System:case e.ModuleKind.ES2015:case e.ModuleKind.ESNext:case e.ModuleKind.None:return 2;default:return e.Debug.assertNever(n,"Unexpected moduleKind "+n)}}function f(t,n,i,a){var o=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:m(e,n,r)}}(t,n,i,a);if(o){var s=o.symbol,c=o.kind,u=function t(r,n,i,a){var o=e.getLocalSymbolForExportDefault(r);if(o)return{symbolForMeaning:o,name:o.name};var s=(c=r,c.declarations&&e.firstDefined(c.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})));var c;if(void 0!==s)return{symbolForMeaning:r,name:s};if(2097152&r.flags){var u=i.getImmediateAliasedSymbol(r);return u&&t(u,e.Debug.assertDefined(u.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:E(n,a.target)}}(s,n,i,a);return u&&r({symbol:s,kind:c},u)}}function m(t,r,n){if(e.getAllowSyntheticDefaultImports(r)&&e.getEmitModuleKind(r)>=e.ModuleKind.ES2015)return 1;if(e.isInJSFile(t))return e.isExternalModule(t)?1:4;for(var i=0,a=t.statements;i<a.length;i++){var o=a[i];if(e.isImportEqualsDeclaration(o))return 3;if(e.isImportDeclaration(o)&&o.importClause&&o.importClause.name){var s=n.getImmediateAliasedSymbol(o.importClause.symbol);if(s&&"default"!==s.name)return 1}}return 3}function g(t,r,i,a,o){var s,c=e.textChanges.ChangeTracker.with(t,(function(t){s=function(t,r,n,i,a){switch(i.kind){case 0:return h(t,r,i),[e.Diagnostics.Change_0_to_1,n,i.namespacePrefix+"."+n];case 1:return v(t,r,i,a),[e.Diagnostics.Change_0_to_1,n,b(i.moduleSpecifier,a)+n];case 2:var o=i.importClause,s=i.importKind;y(t,r,o,1===s?n:void 0,0===s?[n]:e.emptyArray);var c=e.stripQuotes(o.parent.moduleSpecifier.getText());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,c];case 3:s=i.importKind;var u=i.moduleSpecifier;return x(t,r,u,a,1===s?{defaultImport:n,namedImports:e.emptyArray,namespaceLikeImport:void 0}:0===s?{defaultImport:void 0,namedImports:[n],namespaceLikeImport:void 0}:{defaultImport:void 0,namedImports:e.emptyArray,namespaceLikeImport:{importKind:s,name:n}}),[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,r,i,a,o)}));return n.createCodeFixAction("import",c,s,n.importFixId,e.Diagnostics.Add_all_missing_imports)}function y(t,r,n,i,a){if(i&&(e.Debug.assert(!n.name,"Default imports can't have names"),t.insertNodeAt(r,n.getStart(r),e.createIdentifier(i),{suffix:", "})),a.length){var o=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 s=0,c=o;s<c.length;s++){var u=c[s];t.insertNodeInListAfter(r,e.last(e.cast(n.namedBindings,e.isNamedImports).elements),u)}else if(o.length){var l=e.createNamedImports(o);n.namedBindings?t.replaceNode(r,n.namedBindings,l):t.insertNodeAfter(r,e.Debug.assertDefined(n.name,"Named import specifiers must have names"),l)}}}function h(e,t,r){var n=r.namespacePrefix,i=r.position;e.insertText(t,i,n+".")}function v(e,t,r,n){var i=r.moduleSpecifier,a=r.position;e.insertText(t,a,b(i,n))}function b(t,r){var n=e.getQuoteFromPreference(r);return"import("+n+t+n+")."}function x(t,r,n,i,a){var o=a.defaultImport,s=a.namedImports,c=a.namespaceLikeImport,u=e.makeStringLiteral(n,i);(void 0!==o||s.length)&&e.insertImport(t,r,e.makeImport(void 0===o?void 0:e.createIdentifier(o),s.map((function(t){return e.createImportSpecifier(void 0,e.createIdentifier(t))})),n,i)),c&&e.insertImport(t,r,3===c.importKind?e.createImportEqualsDeclaration(void 0,void 0,e.createIdentifier(c.name),e.createExternalModuleReference(u)):4===c.importKind?function(t,r){return e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createIdentifier(t),void 0,e.createCall(e.createIdentifier("require"),void 0,[r]))],2))}(c.name,u):e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamespaceImport(e.createIdentifier(c.name))),u))}function D(t,r){var n=t.declarations;return e.some(n,(function(t){return!!(e.getMeaningFromDeclaration(t)&r)}))}function S(t,r,n,i,a){var o=0,s=i&&k(n,t,r),c=t.getSourceFiles(),u=r.getGlobalTypingsCacheLocation&&r.getGlobalTypingsCacheLocation();T(t.getTypeChecker(),c,(function(t,i){var l,_,d,p,f,m;void 0===i?!s||s.allowsImportingAmbientModule(t,c)?a(t):s&&o++:i&&i!==n&&(l=n.fileName,_=i.fileName,d=e.hostGetCanonicalFileName(r),p=u,f=e.forEachAncestorDirectory(_,(function(t){return"node_modules"===e.getBaseFileName(t)?t:void 0})),void 0===(m=f&&e.getDirectoryPath(d(f)))||e.startsWith(d(l),m)||p&&e.startsWith(d(p),m))&&(!s||s.allowsImportingSourceFile(i,c)?a(t):s&&o++)})),r.log&&r.log("forEachExternalModuleToImportFrom: filtered out "+o+" modules by package.json contents")}function T(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 E(t,r){return C(e.removeFileExtension(e.stripQuotes(t.name)),r)}function C(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 k(t,r,n){var i,a=n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(t.fileName)||e.getPackageJsonsVisibleToFile(t.fileName,n),o=11,s={directoryExists:e.maybeBind(n,n.directoryExists),fileExists:e.maybeBind(n,n.fileExists),getCurrentDirectory:e.maybeBind(n,n.getCurrentDirectory),readFile:e.maybeBind(n,n.readFile),useCaseSensitiveFileNames:e.maybeBind(n,n.useCaseSensitiveFileNames),getProbableSymlinks:e.maybeBind(n,n.getProbableSymlinks)||r.getProbableSymlinks,getGlobalTypingsCacheLocation:e.maybeBind(n,n.getGlobalTypingsCacheLocation)};return{allowsImportingAmbientModule:function(t,r){if(!a.length)return!0;var n=l(t.valueDeclaration.getSourceFile().fileName,r);if(void 0===n)return!0;var i=e.stripQuotes(t.getName());if(u(i))return!0;return c(n)||c(i)},allowsImportingSourceFile:function(e,t){if(!a.length)return!0;var r=l(e.fileName,t);if(!r)return!0;return c(r)},allowsImportingSpecifier:function(t){if(!a.length||u(t))return!0;if(e.pathIsRelative(t)||e.isRootedDiskPath(t))return!0;return c(t)}};function c(t){for(var r=_(t),n=0,i=a;n<i.length;n++){var s=i[n];if(s.has(r,o)||s.has(e.getTypesPackageName(r),o))return!0}return!1}function u(r){return!!(e.isSourceFileJS(t)&&e.JsTyping.nodeCoreModules.has(r)&&(void 0===i&&(i=e.consumesNodeCoreModules(t)),i))}function l(i,a){if(e.stringContains(i,"node_modules")){var o=e.moduleSpecifiers.getNodeModulesPackageName(n.getCompilationSettings(),t.path,i,s,a,r.redirectTargetsMap);if(o)return e.pathIsRelative(o)||e.isRootedDiskPath(o)?void 0:_(o)}}function _(t){var r=e.getPathComponents(e.getPackageNameFromTypesPackageName(t)).slice(1);return e.startsWith(r[0],"@")?r[0]+"/"+r[1]:r[0]}}n.registerCodeFix({errorCodes:o,getCodeActions:function(t){var r=t.errorCode,n=t.preferences,i=t.sourceFile,a=t.span,o=d(t,r,a.start);if(o){var s=o.fixes,c=o.symbolName,u=e.getQuotePreference(i,n);return s.map((function(e){return g(t,i,c,e,u)}))}},fixIds:[n.importFixId],getAllCodeActions:function(t){var r=t.sourceFile,i=t.preferences,a=[],s=[],c=e.createMap(),u=e.createMap();return n.eachDiagnostic(t,o,(function(r){var n=d(t,r.code,r.start);if(n&&n.fixes.length){var i=n.fixes,o=n.symbolName,l=e.first(i);switch(l.kind){case 0:a.push(l);break;case 1:s.push(l);break;case 2:var _=l.importClause,p=l.importKind,f=String(e.getNodeId(_));(m=c.get(f))||c.set(f,m={importClause:_,defaultImport:void 0,namedImports:[]}),0===p?e.pushIfUnique(m.namedImports,o):(e.Debug.assert(void 0===m.defaultImport||m.defaultImport===o,"(Add to Existing) Default import should be missing or match symbolName"),m.defaultImport=o);break;case 3:var m,g=l.moduleSpecifier;p=l.importKind;switch((m=u.get(g))||u.set(g,m={defaultImport:void 0,namedImports:[],namespaceLikeImport:void 0}),p){case 1:e.Debug.assert(void 0===m.defaultImport||m.defaultImport===o,"(Add new) Default import should be missing or match symbolName"),m.defaultImport=o;break;case 0:e.pushIfUnique(m.namedImports,o);break;case 3:case 2:e.Debug.assert(void 0===m.namespaceLikeImport||m.namespaceLikeImport.name===o,"Namespacelike import shoudl be missing or match symbolName"),m.namespaceLikeImport={importKind:p,name:o}}break;default:e.Debug.assertNever(l,"fix wasn't never - got kind "+l.kind)}}})),n.createCombinedCodeActions(e.textChanges.ChangeTracker.with(t,(function(t){for(var n=e.getQuotePreference(r,i),o=0,l=a;o<l.length;o++){var _=l[o];h(t,r,_)}for(var d=0,p=s;d<p.length;d++){_=p[d];v(t,r,_,n)}c.forEach((function(e){var n=e.importClause,i=e.defaultImport,a=e.namedImports;y(t,r,n,i,a)})),u.forEach((function(e,i){x(t,r,i,n,e)}))})))}}),function(e){e[e.UseNamespace=0]="UseNamespace",e[e.ImportType=1]="ImportType",e[e.AddToExisting=2]="AddToExisting",e[e.AddNew=3]="AddNew"}(i||(i={})),function(e){e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.Equals=3]="Equals",e[e.ConstEquals=4]="ConstEquals"}(a||(a={})),n.getImportCompletionAction=function(t,r,n,i,a,o,_,d,p){var m=function(t,r,n,i,a,o,s,u){var l=[];return T(s,u,(function(u,_){if(!_||u===n||!e.startsWith(a.fileName,e.getDirectoryPath(_.fileName))){var d=f(t,u,s,o);d&&d.name===i&&e.skipAlias(d.symbol,s)===r&&l.push({moduleSymbol:u,importKind:d.kind,exportedSymbolIsTypeOnly:c(d.symbol,s)});for(var p=0,m=s.getExportsOfModule(u);p<m.length;p++){var g=m[p];g.name===i&&e.skipAlias(g,s)===r&&l.push({moduleSymbol:u,importKind:0,exportedSymbolIsTypeOnly:c(g,s)})}}})),l}(n,t,r,i,n,o.getCompilerOptions(),o.getTypeChecker(),o.getSourceFiles());return e.Debug.assert(m.some((function(e){return e.moduleSymbol===r})),"Some exportInfo should match the specified moduleSymbol"),{moduleSpecifier:e.first(l(o,n,d,m,a,p)).moduleSpecifier,codeAction:s(g({host:a,formatContext:_,preferences:p},n,i,e.first(u(m,i,d,o,n,a,p)),e.getQuotePreference(n,p)))}},n.forEachExternalModuleToImportFrom=S,n.moduleSymbolToValidIdentifier=E,n.moduleSpecifierToValidIdentifier=C}(e.codefix||(e.codefix={}))}(s||(s={})),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=n.program.getTypeChecker();if(e.isPropertyAccessExpression(a.parent)&&a.parent.name===a){e.Debug.assert(75===a.kind,"Expected an identifier for spelling (property access)");var s=o.getTypeAtLocation(a.parent.expression);i=o.getSuggestionForNonexistentProperty(a,s)}else if(e.isImportSpecifier(a.parent)&&a.parent.name===a){e.Debug.assert(75===a.kind,"Expected an identifier for spelling (import)");var c=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));c&&c.symbol&&(i=o.getSuggestionForNonexistentExport(a,c.symbol))}else{var u=e.getMeaningFromLocation(a),l=e.getTextOfNode(a);e.Debug.assert(void 0!==l,"name should be defined"),i=o.getSuggestionForNonexistentSymbol(a,l,function(e){var t=0;4&e&&(t|=1920);2&e&&(t|=788968);1&e&&(t|=111551);return t}(u))}return void 0===i?void 0:{node:a,suggestion:i}}function i(t,r,n,i,a){!e.isIdentifierText(i,a)&&e.isPropertyAccessExpression(n.parent)?t.replaceNode(r,n.parent,e.createElementAccess(n.parent.expression,e.createLiteral(i))):t.replaceNode(r,n,e.createIdentifier(i))}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.suggestion,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,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.suggestion,o)}))}})}(e.codefix||(e.codefix={}))}(s||(s={})),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)){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)||e.find(c.declarations,e.isInterfaceDeclaration);if(u&&!i.isSourceFileFromExternalLibrary(u.getSourceFile())){var l=(s.target||s)!==n.getDeclaredTypeOfSymbol(c),_=u.getSourceFile();return{kind:1,token:a,parentDeclaration:u,makeStatic:l,declSourceFile:_,inJs:e.isSourceFileJS(_),call:e.tryCast(o.parent,e.isCallExpression)}}var d=e.find(c.declarations,e.isEnumDeclaration);return d&&!i.isSourceFileFromExternalLibrary(d.getSourceFile())?{kind:0,token:a,parentDeclaration:d}:void 0}}}}function s(t,r,n,i,a){if(a){if(213===n.kind)return;var o=n.name.getText(),s=c(e.createIdentifier(o),i);t.insertNodeAfter(r,n,s)}else{var u=e.getFirstConstructorWithBody(n);if(!u)return;var l=c(e.createThis(),i);t.insertNodeAtConstructorEnd(r,u,l)}}function c(t,r){return e.createStatement(e.createAssignment(e.createPropertyAccess(t,r),e.createIdentifier("undefined")))}function u(t,r,n){var i;if(208===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)}else{var c=t.getContextualType(n.parent);i=c?t.typeToTypeNode(c):void 0}return i||e.createKeywordTypeNode(124)}function l(t,r,n,i,a,o){var s=e.createProperty(void 0,o?[e.createToken(119)]:void 0,i,void 0,a,void 0),c=function(t){for(var r,n=0,i=t.members;n<i.length;n++){var a=i[n];if(!e.isPropertyDeclaration(a))break;r=a}return r}(n);c?t.insertNodeAfter(r,c,s):t.insertNodeAtClassStart(r,n,s)}function _(r,i,a,o,s){var c=e.createKeywordTypeNode(142),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.createCodeFixActionNoFixId(n,_,[e.Diagnostics.Add_index_signature_for_property_0,o])}function d(r,n,i,a,o,s,c,u,l){var _=t.createMethodFromCallExpression(r,s,o.text,u,c,l,a),d=e.getAncestor(s,160);d&&d.parent===a?n.insertNodeAfter(i,d,_):n.insertNodeAtClassStart(i,a,_)}function p(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))))}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,f=i.parentDeclaration,m=e.textChanges.ChangeTracker.with(r,(function(e){return p(e,r.program.getTypeChecker(),c,f)}));return[t.createCodeFixAction(n,m,[e.Diagnostics.Add_missing_enum_member_0,c.text],a,e.Diagnostics.Add_all_missing_members)]}var g=i.parentDeclaration,y=i.declSourceFile,h=i.inJs,v=i.makeStatic,b=i.token,x=i.call,D=x&&function(r,i,o,s,c,u,l,_){var p=e.textChanges.ChangeTracker.with(r,(function(e){return d(r,e,i,o,s,c,u,l,_)}));return t.createCodeFixAction(n,p,[u?e.Diagnostics.Declare_static_method_0:e.Diagnostics.Declare_method_0,s.text],a,e.Diagnostics.Add_all_missing_members)}(r,y,g,b,x,v,h,r.preferences),S=h&&!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)}));return 0===l.length?void 0:t.createCodeFixAction(n,l,[u?e.Diagnostics.Initialize_static_property_0:e.Diagnostics.Initialize_property_0_in_the_constructor,c],a,e.Diagnostics.Add_all_missing_members)}(r,y,g,b.text,v)):function(r,i,o,s,c){var d=u(r.program.getTypeChecker(),o,s),p=function(r,i,o,s,c,u){var _=e.textChanges.ChangeTracker.with(r,(function(e){return l(e,i,o,c,u,s)}));return t.createCodeFixAction(n,_,[s?e.Diagnostics.Declare_static_property_0:e.Diagnostics.Declare_property_0,c],a,e.Diagnostics.Add_all_missing_members)}(r,i,o,c,s.text,d);return c?[p]:[p,_(r,i,o,s.text,d)]}(r,y,g,b,v);return e.concatenate(e.singleElementArray(D),S)}},fixIds:[a],getAllCodeActions:function(r){var n=r.program,a=r.preferences,c=n.getTypeChecker(),_=e.createMap(),f=new e.NodeMap;return t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(r,(function(m){t.eachDiagnostic(r,i,(function(t){var n=o(t.file,t.start,c,r.program);if(n&&e.addToSeen(_,e.getNodeId(n.parentDeclaration)+"#"+n.token.text))if(0===n.kind){var i=n.token,a=n.parentDeclaration;p(m,c,i,a)}else{a=n.parentDeclaration;var s=n.token,u=f.getOrUpdate(a,(function(){return[]}));u.some((function(e){return e.token.text===s.text}))||u.push(n)}})),f.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,c),_=function(t){if(o.some((function(e){var r=f.get(e);return!!r&&r.some((function(e){return e.token.text===t.token.text}))})))return"continue";var i=t.parentDeclaration,c=t.declSourceFile,_=t.inJs,p=t.makeStatic,g=t.token,y=t.call;if(y)d(r,m,c,i,g,y,p,_,a);else if(_&&!e.isInterfaceDeclaration(i))s(m,c,i,g.text,p);else{var h=u(n.getTypeChecker(),i,g);l(m,c,i,g.text,h,p)}},p=0,g=t;p<g.length;p++){_(g[p])}}))})))}}),function(e){e[e.Enum=0]="Enum",e[e.ClassOrInterface=1]="ClassOrInterface"}(r||(r={}))}(e.codefix||(e.codefix={}))}(s||(s={})),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={}))}(s||(s={})),function(e){!function(t){var r=e.Diagnostics.Cannot_find_module_0.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={}))}(s||(s={})),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);t.createMissingMemberNodes(r,_,i,s,(function(e){return a.insertNodeAtClassStart(n,r,e)}))}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={}))}(s||(s={})),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(103===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={}))}(s||(s={})),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(128===n.kind,"token should be at the constructor keyword"),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={}))}(s||(s={})),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.createCodeFixActionNoFixId(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={}))}(s||(s={})),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.createCodeFixActionNoFixId(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={}))}(s||(s={})),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 89===a.kind?{extendsToken:a,heritageClauses:i}:void 0}function a(t,r,n,i){if(t.replaceNode(r,n,e.createToken(112)),2===i.length&&89===i[0].token&&112===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={}))}(s||(s={})),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,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={}))}(s||(s={})),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(147))}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.assertDefined(e.cast(n.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function l(t){return 95===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 155===s.kind?m(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,224===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&&(131===i.kind&&(i=e.cast(i.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(i)&&function(e){switch(e.parent.kind){case 155:case 154:return!0;case 241:switch(e.parent.parent.parent.kind){case 231:case 230:return!0}}return!1}(i)&&t.replaceNode(n,i,e.createIdentifier("_"+i.text)))}function f(t,r,n,i,a,o){!function(t,r,n,i,a,o){var s=t.parent;e.isParameter(s)?m(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 m(t,r,n,i,a,o){(function(t,r,n){var i=t.parent;switch(i.kind){case 160:var a=r.getSymbolAtLocation(i.name);if(e.isMemberSymbolInBaseType(a,r))return!1;case 161:case 243:return!0;case 200:case 201: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 163: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,m=i.sourceFile,g=i.program,y=g.getTypeChecker(),h=g.getSourceFiles(),v=e.getTokenAtPosition(m,i.span.start);if(e.isJSDocTemplateTag(v))return[c(e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(m,v)})),e.Diagnostics.Remove_template_tag)];if(29===v.kind)return[c(T=e.textChanges.ChangeTracker.with(i,(function(e){return u(e,m,v)})),e.Diagnostics.Remove_type_parameters)];var b=l(v);if(b)return[c(T=e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(m,b)})),[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(b)])];var x=e.textChanges.ChangeTracker.with(i,(function(e){return _(v,e,m,y,h,!1)}));if(x.length)return[c(x,e.Diagnostics.Remove_destructuring)];var D=e.textChanges.ChangeTracker.with(i,(function(e){return d(m,v,e)}));if(D.length)return[c(D,e.Diagnostics.Remove_variable_statement)];var S=[];if(131===v.kind){var T=e.textChanges.ChangeTracker.with(i,(function(e){return s(e,m,v)})),E=e.cast(v.parent,e.isInferTypeNode).typeParameter.name.text;S.push(t.createCodeFixAction(r,T,[e.Diagnostics.Replace_infer_0_with_unknown,E],a,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var C=e.textChanges.ChangeTracker.with(i,(function(e){return f(m,v,e,y,h,!1)}));if(C.length){E=e.isComputedPropertyName(v.parent)?v.parent:v;S.push(c(C,[e.Diagnostics.Remove_declaration_for_Colon_0,E.getText(m)]))}}var k=e.textChanges.ChangeTracker.with(i,(function(e){return p(e,o,m,v)}));return k.length&&S.push(t.createCodeFixAction(r,k,[e.Diagnostics.Prefix_0_with_an_underscore,v.getText(m)],n,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),S},fixIds:[n,i,a],getAllCodeActions:function(r){var c=r.sourceFile,m=r.program,g=m.getTypeChecker(),y=m.getSourceFiles();return t.codeFixAll(r,o,(function(t,o){var m=e.getTokenAtPosition(c,o.start);switch(r.fixId){case n:p(t,o.code,c,m);break;case i:if(131===m.kind)break;var h=l(m);h?t.delete(c,h):e.isJSDocTemplateTag(m)?t.delete(c,m):29===m.kind?u(t,c,m):_(m,t,c,g,y,!0)||d(c,m,t)||f(c,m,t,g,y,!0);break;case a:131===m.kind&&s(t,c,m);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))}})}(e.codefix||(e.codefix={}))}(s||(s={})),function(e){!function(t){var r="fixUnreachableCode",n=[e.Diagnostics.Unreachable_code_detected.code];function i(t,r,n,i){var a=e.getTokenAtPosition(r,n),o=e.findAncestor(a,e.isStatement);e.Debug.assert(o.getStart(r)===a.getStart(r),"token and statement should start at the same point");var s=(e.isBlock(o.parent)?o.parent:o).parent;if(!e.isBlock(o.parent)||o===e.first(o.parent.statements))switch(s.kind){case 226:if(s.elseStatement){if(e.isBlock(o.parent))break;return void t.replaceNode(r,o,e.createBlock(e.emptyArray))}case 228:case 229:return void t.delete(r,s)}if(e.isBlock(o.parent)){var c=n+i,u=e.Debug.assertDefined(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(o.parent.statements,o),(function(e){return e.pos<c})),"Some statement should be last");t.deleteNodeRange(r,o,u)}else t.delete(r,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,n.span.length)}));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)}))}})}(e.codefix||(e.codefix={}))}(s||(s={})),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={}))}(s||(s={})),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))}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 216:case 164:case 165:case 243:case 162:case 166:case 185:case 160:case 159:case 155:case 158:case 157:case 163:case 246:case 198:case 241:return!0;default:return!1}}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 295===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=295===o.kind&&"fixJSDocTypes_nullable"===a?c.getNullableType(u,32768):u;n(e,s,o,l,c)}}))}})}(e.codefix||(e.codefix={}))}(s||(s={})),function(e){!function(t){var r="fixAwaitInSyncFunction",n=[e.Diagnostics.await_expression_is_only_allowed_within_an_async_function.code,e.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator.code];function i(t,r){var n=e.getTokenAtPosition(t,r),i=e.getContainingFunction(n);if(i){var a,o;switch(i.kind){case 160:a=i.name;break;case 243:case 200:a=e.findChildOfKind(i,93,t);break;case 201: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,125,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={}))}(s||(s={})),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=[t.createCodeFixActionNoFixId("disableJsDiagnostics",[t.createFileTextChanges(a.fileName,[e.createTextChange(a.checkJsDirective?e.createTextSpanFromBounds(a.checkJsDirective.pos,a.checkJsDirective.end):e.createTextSpan(0,0),"// @ts-nocheck"+e.getNewLineOrDefaultFromHost(c,u.options))])],e.Diagnostics.Disable_checking_for_this_file)];return e.textChanges.isValidLocationToAddComment(a,s.start)&&l.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)),l}},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={}))}(s||(s={})),function(e){!function(t){function r(e){return{directoryExists:e.host.directoryExists?function(t){return e.host.directoryExists(t)}:void 0,fileExists:e.host.fileExists?function(t){return e.host.fileExists(t)}:void 0,getCurrentDirectory:e.host.getCurrentDirectory?function(){return e.host.getCurrentDirectory()}:void 0,readFile:e.host.readFile?function(t){return e.host.readFile(t)}:void 0,useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames?function(){return e.host.useCaseSensitiveFileNames()}:void 0,getSourceFiles:function(){return e.program.getSourceFiles()},getCommonSourceDirectory:function(){return e.program.getCommonSourceDirectory()}}}function n(t){return{trackSymbol:e.noop,moduleResolverHost:r(t)}}function i(t,r,i,s,c){var u=t.getDeclarations();if(u&&u.length){var l=i.program.getTypeChecker(),_=u[0],d=e.getSynthesizedDeepClone(e.getNameOfDeclaration(_),!1),p=function(t){if(4&t)return e.createToken(118);if(16&t)return e.createToken(117);return}(e.getModifierFlags(_)),f=p?e.createNodeArray([p]):void 0,m=l.getWidenedType(l.getTypeOfSymbolAtLocation(t,r)),g=!!(16777216&t.flags),y=!!(8388608&r.flags);switch(_.kind){case 157:case 158:var h=l.typeToTypeNode(m,r,void 0,n(i));c(e.createProperty(void 0,f,d,g?e.createToken(57):void 0,h,void 0));break;case 162:case 163:for(var v=e.getAllAccessorDeclarations(u,_),b=l.typeToTypeNode(m,r,void 0,n(i)),x=0,D=v.secondAccessor?[v.firstAccessor,v.secondAccessor]:[v.firstAccessor];x<D.length;x++){var S=D[x];if(e.isGetAccessorDeclaration(S))c(e.createGetAccessor(void 0,f,d,e.emptyArray,b,y?void 0:o(s)));else{e.Debug.assertNode(S,e.isSetAccessorDeclaration,"The counterpart to a getter should be a setter");var T=e.getSetAccessorValueParameter(S),E=T&&e.isIdentifier(T.name)?e.idText(T.name):void 0;c(e.createSetAccessor(void 0,f,d,a(1,[E],[b],1,!1),y?void 0:o(s)))}}break;case 159:case 160:var C=l.getSignaturesOfType(m,0);if(!e.some(C))break;if(1===u.length){e.Debug.assert(1===C.length,"One declaration implies one signature"),A(C[0],f,d,y?void 0:o(s));break}for(var k=0,N=C;k<N.length;k++){A(N[k],e.getSynthesizedDeepClones(f,!1),e.getSynthesizedDeepClone(d,!1))}if(!y)if(u.length>C.length)A(l.getSignatureFromDeclaration(u[u.length-1]),f,d,o(s));else e.Debug.assert(u.length===C.length,"Declarations and signatures should match count"),c(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),m=c.parameters.map((function(e){return e.name})),g=a(f,m,void 0,u,!1);if(l){var y=e.createArrayTypeNode(e.createKeywordTypeNode(124)),h=e.createParameter(void 0,void 0,e.createToken(25),m[f]||"rest",f>=u?e.createToken(57):void 0,y,void 0);g.push(h)}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,g,void 0,s)}(C,d,g,f,s))}}function A(t,a,o,s){var u=function(t,r,i,a,o,s,c){var u=t.program.getTypeChecker().signatureToSignatureDeclaration(r,160,i,257,n(t));if(!u)return;return u.decorators=void 0,u.modifiers=a,u.name=o,u.questionToken=s?e.createToken(57):void 0,u.body=c,u}(i,t,r,a,o,g,s);u&&c(u)}}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(124),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){return e.createPropertyAssignment(e.createStringLiteral(t),r)}function c(t,r){return e.find(t.properties,(function(t){return e.isPropertyAssignment(t)&&!!t.name&&e.isStringLiteral(t.name)&&t.name.text===r}))}t.createMissingMemberNodes=function(e,t,r,n,a){for(var o=e.symbol.members,s=0,c=t;s<c.length;s++){var u=c[s];o.has(u.escapedName)||i(u,e,r,n,a)}},t.getNoopSymbolTrackerWithResolver=n,t.createMethodFromCallExpression=function(t,r,i,s,c,u,l){var _=!e.isInterfaceDeclaration(l),d=r.typeArguments,p=r.arguments,f=r.parent,m=t.program.getTypeChecker(),g=n(t),y=e.map(p,(function(e){return m.typeToTypeNode(m.getBaseTypeOfLiteralType(m.getTypeAtLocation(e)),l,void 0,g)})),h=e.map(p,(function(t){return e.isIdentifier(t)?t.text:e.isPropertyAccessExpression(t)?t.name.text:void 0})),v=m.getContextualType(r),b=s||!v?void 0:m.typeToTypeNode(v,l,void 0,g);return e.createMethod(void 0,c?[e.createToken(119)]:void 0,e.isYieldExpression(f)?e.createToken(41):void 0,i,void 0,s?void 0:e.map(d,(function(t,r){return e.createTypeParameterDeclaration(84+d.length-1<=90?String.fromCharCode(84+r):"T"+r)})),a(p.length,h,y,void 0,s),b,_?o(u):void 0)},t.setJsonCompilerOptionValue=function(t,r,n,i){var a=e.getTsConfigObjectLiteralExpression(r);if(a){var o=c(a,"compilerOptions");if(void 0!==o){var u=o.initializer;if(e.isObjectLiteralExpression(u)){var l=c(u,n);void 0===l?t.insertNodeAtObjectStart(r,u,s(n,i)):t.replaceNode(r,l.initializer,i)}}else t.insertNodeAtObjectStart(r,a,s("compilerOptions",e.createObjectLiteral([s(n,i)])))}},t.createJsonPropertyAssignment=s,t.findJsonProperty=c}(e.codefix||(e.codefix={}))}(s||(s={})),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.createCodeFixActionNoFixId(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.createCodeFixActionNoFixId(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?195:196,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={}))}(s||(s={})),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(145),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={}))}(s||(s={})),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={}))}(s||(s={})),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={}))}(s||(s={})),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={}))}(s||(s={})),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(95===n.kind,"This token should be an ImportKeyword"),e.Debug.assert(187===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={}))}(s||(s={})),function(e){!function(r){var n="fixConvertToMappedObjectType",i=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead.code];function a(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 o(r,n,i){var a=i.indexSignature,o=i.container,s=(e.isInterfaceDeclaration(o)?o.members:o.type.members).filter((function(t){return!e.isIndexSignatureDeclaration(t)})),c=e.first(a.parameters),u=e.createTypeParameterDeclaration(e.cast(c.name,e.isIdentifier),c.type),l=e.createMappedTypeNode(e.hasReadonlyModifier(a)?e.createModifier(137):void 0,u,a.questionToken,a.type),_=e.createIntersectionTypeNode(t(e.getAllSuperTypeNodes(o),[l],s.length?[e.createTypeLiteralNode(s)]:e.emptyArray));r.replaceNode(n,o,function(t,r){return e.createTypeAliasDeclaration(t.decorators,t.modifiers,t.name,t.typeParameters,r)}(o,_))}r.registerCodeFix({errorCodes:i,getCodeActions:function(t){var i=t.sourceFile,s=t.span,c=a(i,s.start);if(c){var u=e.textChanges.ChangeTracker.with(t,(function(e){return o(e,i,c)})),l=e.idText(c.container.name);return[r.createCodeFixAction(n,u,[e.Diagnostics.Convert_0_to_mapped_object_type,l],n,[e.Diagnostics.Convert_0_to_mapped_object_type,l])]}},fixIds:[n],getAllCodeActions:function(e){return r.codeFixAll(e,i,(function(e,t){var r=a(t.file,t.start);r&&o(e,t.file,r)}))}})}(e.codefix||(e.codefix={}))}(s||(s={})),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 126===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&&98!==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={}))}(s||(s={})),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={}))}(s||(s={})),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 243:case 244:case 245:case 247:case 246:case 248:var u=a;return u.name&&e.isIdentifier(u.name)?{exportNode:u,exportName:u.name,wasDefault:c,exportingModuleSymbol:o}:void 0;case 224: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.assertDefined(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.assertDefined(e.findModifier(o,83),"Should find a default keyword in modifier list"));else{var c=e.Debug.assertDefined(e.findModifier(o,88),"Should find an export keyword in modifier list");switch(o.kind){case 243:case 244:case 245:n.insertNodeAfter(t,c,e.createToken(83));break;case 224:if(!e.FindAllReferences.Core.isSymbolReferencedInFile(s,i,t)){n.replaceNode(t,o,e.createExportDefault(e.Debug.assertDefined(e.first(o.declarationList.declarations).initializer,"Initializer was previously known to be present")));break}case 247:case 246:case 248: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.assertDefined(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 193:i.replaceNode(t,r,e.createIdentifier(a));break;case 257:case 261:var s=o;i.replaceNode(t,s,n(a,s.name.text));break;case 254: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(255===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=r.parent;switch(i.kind){case 193:n.replaceNode(t,r,e.createIdentifier("default"));break;case 257:var a=e.createIdentifier(i.name.text);1===i.parent.elements.length?n.replaceNode(t,i.parent,a):(n.delete(t,i),n.insertNodeBefore(t,i.parent,a));break;case 261:n.replaceNode(t,i,function(t,r){return e.createExportSpecifier(t===r?void 0:e.createIdentifier(t),e.createIdentifier(r))}("default",i.name.text));break;default:e.Debug.assertNever(i,"Unexpected parent kind "+i.kind)}}(r,t,i)}))}(o,s,c,u);var a,o,s,c,u})),renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(s||(s={})),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=255===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:255===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 a=t.file,o=t.program,s=i,c=e.Debug.assertDefined(r(t),"Context must provide an import to convert"),u=o.getTypeChecker(),void(255===c.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,m=l.get(f);void 0===m&&l.set(f,m=u.has(f)?e.getUniqueName(f,t):f),i.replaceNode(t,p,e.createIdentifier(m))}var g=[];l.forEach((function(t,r){g.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,g)):i.replaceNode(t,y,n(y,s?e.createIdentifier(a.name.text):void 0,g))}(a,u,s,c,e.getAllowSyntheticDefaultImports(o.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))}(a,u,s,c));var a,o,s,c,u})),renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(s||(s={})),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 161:return"constructor";case 200:case 243:return t.name?"function '"+t.name.text+"'":"anonymous function";case 201:return"arrow function";case 160:return"method '"+t.name.getText()+"'";case 162:return"'get "+t.name.getText()+"'";case 163:return"'set "+t.name.getText()+"'";default:throw e.Debug.assertNever(t,"Unexpected scope kind "+t.kind)}}(t):e.isClassLike(t)?function(e){return 244===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 249===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[_],m=f.functionExtraction,g=f.constantExtraction;if(0===m.errors.length){var y=m.description;a.has(y)||(a.set(y,!0),i.push({description:y,name:"function_scope_"+u}))}if(0===g.errors.length){y=g.description;c.has(y)||(c.set(y,!0),o.push({description:y,name:"constant_scope_"+u}))}u++}var h=[];return i.length&&h.push({name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:i}),o.length&&h.push({name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:o}),h.length?h: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(),h=r.getSourceFile(),v=e.getUniqueName(e.isClassLike(r)?"newMethod":"newFunction",h),b=e.isInJSFile(r),x=e.createIdentifier(v),D=[],S=[];l.forEach((function(t,n){var i;if(!b){var a=p.getTypeOfSymbolAtLocation(t.symbol,t.node);a=p.getBaseTypeOfLiteralType(a),i=p.typeToTypeNode(a,r,1)}var o=e.createParameter(void 0,void 0,void 0,n,void 0,i);D.push(o),2===t.usage&&(u||(u=[])).push(t),S.push(e.createIdentifier(n))}));var T=e.arrayFrom(_.values()).map((function(e){return{type:e,declaration:f(e)}})).sort(m),E=0===T.length?void 0:T.map((function(e){return e.declaration})),C=void 0!==E?E.map((function(t){return e.createTypeReferenceNode(t.name,void 0)})):void 0;if(e.isExpression(t)&&!b){var k=p.getContextualType(t);c=p.typeToTypeNode(k,r,1)}var N,A=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&&234===a.kind&&s){var u=g(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 _=g(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)),F=A.body,P=A.returnValueProperty;if(e.suppressLeadingAndTrailingTrivia(F),e.isClassLike(r)){var w=b?[]:[e.createToken(116)];o.facts&i.InStaticRegion&&w.push(e.createToken(119)),o.facts&i.IsAsyncFunction&&w.push(e.createToken(125)),N=e.createMethod(void 0,w.length?w:void 0,o.facts&i.IsGenerator?e.createToken(41):void 0,x,void 0,E,D,c,F)}else N=e.createFunctionDeclaration(void 0,o.facts&i.IsAsyncFunction?[e.createToken(125)]:void 0,o.facts&i.IsGenerator?e.createToken(41):void 0,x,E,D,c,F);var I=e.textChanges.ChangeTracker.fromContext(s),O=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);O?I.insertNodeBefore(s.file,O,N,!0):I.insertNodeAtEndOfScope(s.file,r,N);var M=[],L=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,v),R=e.createCall(L,C,S);o.facts&i.IsGenerator&&(R=e.createYield(e.createToken(41),R));o.facts&i.IsAsyncFunction&&(R=e.createAwait(R));if(a.length&&!u)if(e.Debug.assert(!P,"Expected no returnValueProperty"),e.Debug.assert(!(o.facts&i.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),1===a.length){var B=a[0];M.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedDeepClone(B.name),e.getSynthesizedDeepClone(B.type),R)],B.parent.flags)))}else{for(var j=[],K=[],J=a[0].parent.flags,z=!1,U=0,V=a;U<V.length;U++){B=V[U];j.push(e.createBindingElement(void 0,void 0,e.getSynthesizedDeepClone(B.name)));var q=p.typeToTypeNode(p.getBaseTypeOfLiteralType(p.getTypeAtLocation(B)),r,1);K.push(e.createPropertySignature(void 0,B.symbol.name,void 0,q,void 0)),z=z||void 0!==B.type,J&=B.parent.flags}var W=z?e.createTypeLiteralNode(K):void 0;W&&e.setEmitFlags(W,1),M.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createObjectBindingPattern(j),W,R)],J)))}else if(a.length||u){if(a.length)for(var G=0,H=a;G<H.length;G++){var Y=(B=H[G]).parent.flags;2&Y&&(Y=-3&Y|1),M.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(B.symbol.name,ee(B.type))],Y)))}P&&M.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(P,ee(c))],1)));var X=g(a,u);P&&X.unshift(e.createShorthandPropertyAssignment(P)),1===X.length?(e.Debug.assert(!P,"Shouldn't have returnValueProperty here"),M.push(e.createStatement(e.createAssignment(X[0].name,R))),o.facts&i.HasReturn&&M.push(e.createReturn())):(M.push(e.createStatement(e.createAssignment(e.createObjectLiteral(X),R))),P&&M.push(e.createReturn(e.createIdentifier(P))))}else o.facts&i.HasReturn?M.push(e.createReturn(R)):y(o.range)?M.push(e.createStatement(R)):M.push(R);y(o.range)?I.replaceNodeRangeWithNodes(s.file,e.first(o.range),e.last(o.range),M):I.replaceNodeWithNodes(s.file,o.range,M);var Q=I.getChanges(),$=(y(o.range)?e.first(o.range):o.range).getSourceFile().fileName,Z=e.getRenameLocation(Q,$,v,!1);return{renameFilename:$,renameLocation:Z,edits:Q};function ee(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 145===e.kind}))?r:e.createUnionTypeNode([r,e.createKeywordTypeNode(145)])}}}(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),m=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 m=u.getTypeOfSymbolAtLocation(o.thisParameter,t);s.splice(0,0,e.createParameter(void 0,void 0,void 0,"this",void 0,u.typeToTypeNode(m,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,m),f=s.variableType,m=s.initializer,e.suppressLeadingAndTrailingTrivia(m);var g=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(116)),a&i.InStaticRegion&&y.push(e.createToken(119)),y.push(e.createToken(137));var v=e.createProperty(void 0,y,_,void 0,f,m),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);g.insertNodeBefore(o.file,x,v,!0),g.replaceNode(o.file,t,b)}else{var D=e.createVariableDeclaration(_,f,m),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){g.insertNodeBefore(o.file,S,D);b=e.createIdentifier(_);g.replaceNode(o.file,t,b)}else if(225===t.parent.kind&&r===e.findAncestor(t,d)){var T=e.createVariableStatement(void 0,e.createVariableDeclarationList([D],2));g.replaceNode(o.file,t.parent,T)}else{T=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(h(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.assertDefined(a,"prevStatement failed to get set")}e.Debug.assert(i!==r,"Didn't encounter a block-like before encountering scope")}}(t,r)).pos?g.insertNodeAtTopOfFile(o.file,T,!1):g.insertNodeBefore(o.file,x,T,!1),225===t.parent.kind)g.delete(o.file,t.parent);else{b=e.createIdentifier(_);g.replaceNode(o.file,t,b)}}}var E=g.getChanges(),C=t.getSourceFile().fileName,k=e.getRenameLocation(E,C,_,!0);return{renameFilename:C,renameLocation:k,edits:E}}(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(!h(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 m=v(f);if(m)return{errors:m};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 g=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}(g)||v(g);return y?{errors:y}:{targetRange:{range:_(g),facts:u,declarations:c}};function v(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 282:return!1}switch(e.kind){case 10:return 253!==t.kind&&257!==t.kind;case 212:case 188:case 190:return!1;case 75:return 190!==t.kind&&257!==t.kind&&261!==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(158===n.kind){e.hasModifier(n,32)&&(u|=i.InStaticRegion);break}if(155===n.kind){161===e.getContainingFunction(n).kind&&(u|=i.InStaticRegion);break}160===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=241===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 253:return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractImport)),!0;case 101:if(195===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 243:case 244: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 226:case 239:_=0;break;case 222:a.parent&&239===a.parent.kind&&a.parent.finallyBlock===a&&(_=4);break;case 275:_|=1;break;default:e.isIterationStatement(a,!1)&&(_|=3)}switch(a.kind){case 182:case 103:u|=i.UsesThis;break;case 237:var f=a.label;(l||(l=[])).push(f.escapedText),e.forEachChild(a,t),l.pop();break;case 233:case 232:(f=a.label)?e.contains(l,f.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):_&(233===a.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 205:u|=i.IsAsyncFunction;break;case 211:u|=i.IsGenerator;break;case 234: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(155===(r=r.parent).kind&&(r=e.findAncestor(r,(function(t){return e.isFunctionLikeDeclaration(t)})).parent),d(r)&&(o.push(r),288===r.kind))return o}(t);return{scopes:o,readsAndWrites:function(t,r,a,o,s,c){var u,l,_=e.createMap(),d=[],p=[],f=[],m=[],g=[],h=e.createMap(),v=[],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 T=0,E=r;T<E.length;T++){var C=E[T];d.push({usages:e.createMap(),typeParameterUsages:e.createMap(),substitutions:e.createMap()}),p.push(e.createMap()),f.push(e.isFunctionLikeDeclaration(C)&&243!==C.kind?[e.createDiagnosticForNode(C,n.cannotExtractToOtherFunctionLike)]:[]);var k=[];l&&k.push(l),e.isClassLike(C)&&e.isInJSFile(C)&&k.push(e.createDiagnosticForNode(C,n.cannotExtractToJSClass)),e.isArrowFunction(C)&&!e.isBlock(C.body)&&k.push(e.createDiagnosticForNode(C,n.cannotExtractToExpressionArrowFunction)),m.push(k)}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=function(t){return!!e.findAncestor(t,(function(t){return e.isDeclarationWithTypeParameters(t)&&0!==e.getEffectiveTypeParameterDeclarations(t).length}))}(F);if(function c(u,l){void 0===l&&(l=1);if(P){z(s.getTypeAtLocation(u))}e.isDeclaration(u)&&u.symbol&&g.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 _=U(c);if(!_)return;var g=e.getSymbolId(_).toString(),y=N.get(g);if(y&&y>=u)return g;if(N.set(g,u),y){for(var h=0,v=d;h<v.length;h++){var b=v[h];b.usages.get(c.text)&&b.usages.set(c.text,{usage:u,symbol:_,node:c})}return g}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),T=0,E=f;T<E.length;T++){E[T].push(S)}for(var C=0,k=m;C<k.length;C++){k[C].push(S)}}for(var A=0;A<r.length;A++){var F=r[A];if(s.resolveName(_.name,F,_.flags,!1)!==_&&!p[A].has(g)){var P=V(_.exportSymbol||_,F,l);if(P)p[A].set(g,P);else if(l){if(!(262144&_.flags)){S=e.createDiagnosticForNode(c,n.typeWillNotBeVisibleInTheNewScope);f[A].push(S),m[A].push(S)}}else d[A].usages.set(c.text,{usage:u,symbol:_,node:c})}}return g}(c,u,l);if(_)for(var g=0;g<r.length;g++){var y=p[g].get(_);y&&d[g].substitutions.set(e.getNodeId(c).toString(),y)}}(u,l,e.isPartOfTypeNode(u))}else e.forEachChild(u,c)}(A),P&&!y(t.range)){z(s.getContextualType(t.range))}if(_.size>0){for(var w=e.createMap(),I=0,O=F;void 0!==O&&I<r.length;O=O.parent)if(O===r[I]&&(w.forEach((function(e,t){d[I].typeParameterUsages.set(t,e)})),I++),e.isDeclarationWithTypeParameters(O))for(var M=0,L=e.getEffectiveTypeParameterDeclarations(O);M<L.length;M++){var R=L[M],B=s.getTypeAtLocation(R);_.has(B.id.toString())&&w.set(B.id.toString(),B)}e.Debug.assert(I===r.length,"Should have iterated all scopes")}if(g.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)?U(n):s.getSymbolAtLocation(n);if(i){var a=e.find(g,(function(e){return e.symbol===i}));if(a)if(e.isVariableDeclaration(a)){var o=a.symbol.id.toString();h.has(o)||(v.push(a),h.set(o,!0))}else u=u||a}e.forEachChild(n,r)}))}for(var K=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;m[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===v.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),m[r].push(c)}else if(o&&r>0){c=e.createDiagnosticForNode(o,n.cannotExtractReadonlyPropertyInitializerOutsideConstructor);f[r].push(c),m[r].push(c)}else if(u){c=e.createDiagnosticForNode(u,n.cannotExtractExportedEntity);f[r].push(c),m[r].push(c)}},J=0;J<r.length;J++)K(J);return{target:A,usagesPerScope:d,functionErrorsPerScope:f,constantErrorsPerScope:m,exposedVariableDeclarations:v};function z(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 U(t){return t.parent&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t?s.getShorthandAssignmentValueSymbol(t.parent):s.getSymbolAtLocation(t)}function V(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=V(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 m(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 g(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 h(e){switch(e.kind){case 222:case 288:case 249:case 275: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={}))}(s||(s={})),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.assertDefined(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.assertDefined(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,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(315);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(314);n.tagName=e.createIdentifier("template"),n.constraint=r&&e.cast(r,e.isJSDocTypeExpression);var i=e.createNode(154);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,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={}))}(s||(s={})),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(119):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=function(e){return 95===e.charCodeAt(0)}(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:155===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,m=i.originalName,g=i.type,y=i.container,h=i.declaration,v=i.renameAccessor;e.suppressLeadingAndTrailingTrivia(p),e.suppressLeadingAndTrailingTrivia(h),e.suppressLeadingAndTrailingTrivia(y);var b=e.isClassLike(y),x=-65&e.getModifierFlags(h),D=b?!x||8&x?c(a,_,118):e.createNodeArray(e.createModifiersFromModifierFlags(x)):void 0,S=b?c(a,_,116):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,h,p,S);var T=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,g,D,_,y);if(e.suppressLeadingAndTrailingTrivia(T),l(o,n,T,h,y),d){var E=e.getFirstConstructorWithBody(y);E&&function(t,r,n,i,a){if(!n.body)return;n.body.forEachChild((function n(o){e.isElementAccessExpression(o)&&103===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)&&103===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,E,p.text,m)}else{var C=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,g,D,_,y);e.suppressLeadingAndTrailingTrivia(C),l(o,n,C,h,y)}var k=o.getChanges(),N=n.fileName,A=v?f:p,F=(e.isIdentifier(A)?0:-1)+e.getRenameLocation(k,N,A.text,e.isParameter(h));return{renameFilename:N,renameLocation:F,edits:k}},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={}))}(s||(s={})),function(e){!function(r){function n(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 253:return!0;case 252:return!e.hasModifier(t,1);case 224: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 i(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 a(e){return 253===e.kind?e.moduleSpecifier:252===e.kind?e.moduleReference.expression:e.initializer.arguments[0]}function o(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 253:!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||(255===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));else if(256===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 252:i(r.name)&&n.delete(t,r);break;case 241:!function(t,r,n,i){var a=r.name;switch(a.kind){case 75:i(a)&&n.delete(t,a);break;case 189:break;case 188: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 252:case 257:case 254:return!0;case 241:return d(t);case 190: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 253: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(255===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 252:return n(t.name)?t:void 0;case 241:var s=function(t,r){switch(t.kind){case 75:return r(t)?t:void 0;case 189:return t;case 188: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)}))}r.registerRefactor("Move to a new file",{getAvailableActions:function(t){if(!t.preferences.allowTextChangesInNewFiles||void 0===n(t))return e.emptyArray;var r=e.getLocaleSpecificMessage(e.Diagnostics.Move_to_a_new_file);return[{name:"Move to a new file",description:r,actions:[{name:"Move to a new file",description:r}]}]},getEditsForAction:function(r,c){e.Debug.assert("Move to a new file"===c,"Wrong refactor invoked");var d=e.Debug.assertDefined(n(r));return{edits:e.textChanges.ChangeTracker.with(r,(function(n){return function(r,n,c,d,k,N){var A=n.getTypeChecker(),F=function(t,r,n){var i=new m,a=new m,o=new m,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(D=u[c],(function(t){i.add(e.Debug.assertDefined(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(D=d[l],n,(function(e){if(e.declarations)for(var r=0,n=e.declarations;r<n.length;r++){var s=n[r];_(s)?a.add(e):g(s)&&y(s)===t&&!i.has(e)&&o.add(e)}}))}for(var p=a.clone(),h=new m,b=0,x=t.statements;b<x.length;b++){var D=x[b];e.contains(r,D)||(s&&2&D.transformFlags&&p.delete(s),f(D,n,(function(e){i.has(e)&&h.add(e),p.delete(e)})))}return{movedSymbols:i,newFileImportsFromOldFile:o,oldFileImportsFromNewFile:h,oldImportsNeededByNewFile:a,unusedImportsFromOldFile:p}}(r,c.all,A),P=e.getDirectoryPath(r.fileName),w=e.extensionFromPath(r.fileName),I=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}}((M=F.movedSymbols,M.forEachEntry(e.symbolNameNoDefault)||"newFile"),w,P,k),O=I+w;var M;d.createNewFile(r,e.combinePaths(P,O),function(r,n,c,_,d,f,m){var y=d.getTypeChecker();if(!r.externalModuleIndicator&&!r.commonJsModuleIndicator)return i(r,_.ranges,c),_.all;var k=!!r.externalModuleIndicator,N=e.getQuotePreference(r,m),A=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)}(n.oldFileImportsFromNewFile,f,k,N);A&&e.insertImport(c,r,A);return function(t,r,n,i,a){for(var s=0,c=t.statements;s<c.length;s++){var u=c[s];e.contains(r,u)||o(u,(function(e){return l(t,e,n,(function(e){return i.has(a.getSymbolAtLocation(e))}))}))}}(r,_.all,c,n.unusedImportsFromOldFile,y),i(r,_.ranges,c),function(t,r,n,i,s){for(var c=r.getTypeChecker(),_=function(r){if(r===n)return"continue";for(var _=function(_){o(_,(function(o){if(c.getSymbolAtLocation(a(o))===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&&i.has(r)};l(r,o,t,d);var f=e.combinePaths(e.getDirectoryPath(a(o).text),s),m=p(o,e.createLiteral(f),d);m&&t.insertNodeAfter(r,_,m);var g=function(t){switch(t.kind){case 253:return t.importClause&&t.importClause.namedBindings&&255===t.importClause.namedBindings.kind?t.importClause.namedBindings.name:void 0;case 252:return t.name;case 241:return e.tryCast(t.name,e.isIdentifier);default:return e.Debug.assertNever(t,"Unexpected node kind "+t.kind)}}(o);g&&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,m=d;f<m.length;f++){var g=m[f];t.replaceNode(r,g,e.createIdentifier(p))}t.insertNodeAfter(r,c,function(t,r,n){var i=e.createIdentifier(r),a=e.createLiteral(n);switch(t.kind){case 253:return e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamespaceImport(i)),a);case 252:return e.createImportEqualsDeclaration(void 0,void 0,i,e.createExternalModuleReference(a));case 241: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,i,s,f,g,o)}}))},d=0,f=r.statements;d<f.length;d++){_(f[d])}},d=0,f=r.getSourceFiles();d<f.length;d++){var m=f[d];_(m)}}(c,d,r,n.movedSymbols,f),t(function(t,r,n,i,c,u,l){for(var _,d=[],f=0,m=t.statements;f<m.length;f++){o(m[f],(function(t){e.append(d,p(t,a(t),(function(e){return r.has(c.getSymbolAtLocation(e))})))}))}var y=[],h=e.nodeSeenTracker();return n.forEach((function(r){for(var n=0,a=r.declarations;n<a.length;n++){var o=a[n];if(g(o)){var s=b(o);if(s){var c=x(o);h(c)&&D(t,c,i,u),e.hasModifier(o,512)?_=s:y.push(s.text)}}}})),e.append(d,s(_,y,e.removeFileExtension(e.getBaseFileName(t.fileName)),u,l)),d}(r,n.oldImportsNeededByNewFile,n.newFileImportsFromOldFile,c,y,k,N),function(r,n,i,a){return e.flatMap(n,(function(n){if(function(t){return e.Debug.assert(e.isSourceFile(t.parent),"Node parent should be a SourceFile"),h(t)||e.isVariableStatement(t)}(n)&&!S(r,n,a)&&v(n,(function(t){return i.has(e.Debug.assertDefined(t.symbol))}))){var o=function(e,r){return r?[T(e)]:function(e){return t([e],E(e).map(C))}(e)}(n,a);if(o)return o}return n}))}(r,_.all,n.oldFileImportsFromNewFile,k))}(r,F,d,c,n,I,N)),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)}(n,d,r.fileName,O,e.hostGetCanonicalFileName(k))}(r.file,r.program,d,n,r.host,r.preferences)})),renameFilename:void 0,renameLocation:void 0}}});var m=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 g(t){return h(t)&&e.isSourceFile(t.parent)||e.isVariableDeclaration(t)&&e.isSourceFile(t.parent.parent.parent)}function y(t){return e.isVariableDeclaration(t)?t.parent.parent.parent:t.parent}function h(e){switch(e.kind){case 243:case 244:case 248:case 247:case 246:case 245:case 252:return!0;default:return!1}}function v(t,r){switch(t.kind){case 243:case 244:case 248:case 247:case 246:case 245:case 252:return r(t);case 224: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 189:case 188: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 225:var n=t.expression;return e.isBinaryExpression(n)&&1===e.getAssignmentDeclarationKind(n)?r(t):void 0}}function b(t){return e.isExpressionStatement(t)?t.expression.left.name:e.tryCast(t.name,e.isIdentifier)}function x(t){switch(t.kind){case 241:return t.parent.parent;case 190:return x(e.cast(t.parent.parent,(function(t){return e.isVariableDeclaration(t)||e.isBindingElement(t)})));default:return t}}function D(t,r,n,i){if(!S(t,r,i))if(i)e.isExpressionStatement(r)||n.insertExportModifier(t,r);else{var a=E(r);0!==a.length&&n.insertNodesAfter(t,r,a.map(C))}}function S(t,r,n){return n?!e.isExpressionStatement(r)&&e.hasModifier(r,1):E(r).some((function(r){return t.symbol.exports.has(e.escapeLeadingUnderscores(r))}))}function T(t){var r=e.concatenate([e.createModifier(88)],t.modifiers);switch(t.kind){case 243:return e.updateFunctionDeclaration(t,t.decorators,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);case 244:return e.updateClassDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members);case 224:return e.updateVariableStatement(t,r,t.declarationList);case 248:return e.updateModuleDeclaration(t,t.decorators,r,t.name,t.body);case 247:return e.updateEnumDeclaration(t,t.decorators,r,t.name,t.members);case 246:return e.updateTypeAliasDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.type);case 245:return e.updateInterfaceDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members);case 252:return e.updateImportEqualsDeclaration(t,t.decorators,r,t.name,t.moduleReference);case 225:return e.Debug.fail();default:return e.Debug.assertNever(t,"Unexpected declaration kind "+t.kind)}}function E(t){switch(t.kind){case 243:case 244:return[t.name.text];case 224:return e.mapDefined(t.declarationList.declarations,(function(t){return e.isIdentifier(t.name)?t.name.text:void 0}));case 248:case 247:case 246:case 245:case 252:return e.emptyArray;case 225:return e.Debug.fail("Can't export an ExpressionStatement");default:return e.Debug.assertNever(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={}))}(s||(s={})),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=function(t){return e.isBinaryExpression(t)&&27===t.operatorToken.kind||e.isObjectLiteralExpression(t)}(f)?e.createParen(f):f,e.suppressLeadingAndTrailingTrivia(c),e.copyLeadingComments(_,c,n,3,!1)}else e.Debug.fail("invalid action");var m=e.textChanges.ChangeTracker.with(t,(function(e){return e.replaceNode(n,d.body,c)}));return{renameFilename:void 0,renameLocation:void 0,edits:m}},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={}))}(s||(s={})),function(e){!function(r){!function(n){var i="Convert parameters to destructured object",a=2;function o(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 195:case 196:var i=e.tryCast(n,e.isCallOrNewExpression);if(i&&i.expression===r)return i;break;case 193: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 194: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 193:var i=e.tryCast(n,e.isPropertyAccessExpression);if(i&&i.expression===r)return i;break;case 194: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 i=e.getTouchingToken(t,r),o=e.getContainingFunctionDeclaration(i);if(!function(t){var r=e.findAncestor(t,e.isJSDocNode);if(r){var n=e.findAncestor(r,(function(t){return!e.isJSDocNode(t)}));return!!n&&e.isFunctionLikeDeclaration(n)}return!1}(i))return!(o&&function(t,r){if(!function(t,r){return function(e){if(m(e))return e.length-1;return e.length}(t)>=a&&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 243:return p(t)&&d(t,r);case 160:return d(t,r);case 161:return e.isClassDeclaration(t.parent)?p(t.parent)&&d(t,r):f(t.parent.parent)&&d(t,r);case 200:case 201:return f(t.parent)}return!1}(o,n)&&e.rangeContainsRange(o,i))||o.body&&e.rangeContainsRange(o.body,i)?void 0:o}function d(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function p(t){return!!t.name||!!e.findModifier(t,83)}function f(t){return e.isVariableDeclaration(t)&&e.isVarConst(t)&&e.isIdentifier(t.name)&&!t.type}function m(t){return t.length>0&&e.isThis(t[0].name)}function g(t){return m(t)&&(t=e.createNodeArray(t.slice(1),t.hasTrailingComma)),t}function y(t,r){var n=g(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=function(t,r){return e.isIdentifier(r)&&e.getTextOfIdentifierOrLiteral(r)===t?e.createShorthandPropertyAssignment(t):e.createPropertyAssignment(t,r)}(v(n[r]),t);return e.suppressLeadingAndTrailingTrivia(i.name),e.isPropertyAssignment(i)&&e.suppressLeadingAndTrailingTrivia(i.initializer),h(t,i),i}));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 h(t,r){var n=t.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}(t,n.text)?e.copyTrailingAsLeadingComments(t,r,n):e.copyLeadingComments(t,r,n),e.copyTrailingComments(t,r,n)}function v(t){return e.getTextOfIdentifierOrLiteral(t.name)}r.registerRefactor(i,{getEditsForAction:function(r,n){e.Debug.assert(n===i,"Unexpected action name");var a=r.file,d=r.startPosition,p=r.program,f=r.cancellationToken,b=r.host,x=_(a,d,p.getTypeChecker());if(!x||!f)return;var D=function(r,n,i){var a=function(t){switch(t.kind){case 243:return t.name?[t.name]:[e.Debug.assertDefined(e.findModifier(t,83),"Nameless function declaration should be a default export")];case 160:return[t.name];case 161:var r=e.Debug.assertDefined(e.findChildOfKind(t,128,t.getSourceFile()),"Constructor declaration should have constructor keyword");return 213===t.parent.kind?[t.parent.parent.name,r]:[r];case 201:return[t.parent.name];case 200:return t.name?[t.name,t.parent.name]:[t.parent.name];default:return e.Debug.assertNever(t,"Unexpected function declaration kind "+t.kind)}}(r),_=e.isConstructorDeclaration(r)?function(t){switch(t.parent.kind){case 244:var r=t.parent;return r.name?[r.name]:[e.Debug.assertDefined(e.findModifier(r,83),"Nameless class declaration should be a default export")];case 213:var n=t.parent,i=t.parent.parent,a=n.name;return a?[a,i.name]:[i.name]}}(r):[],d=e.deduplicate(t(a,_),e.equateValues),p=n.getTypeChecker(),f=function(t){for(var n={accessExpressions:[],typeUsages:[]},i={functionCalls:[],declarations:[],classReferences:n,valid:!0},d=e.map(a,m),p=e.map(_,m),f=e.isConstructorDeclaration(r),g=0,y=t;g<y.length;g++){var h=y[g];if(1===h.kind){if(e.contains(d,m(h.node))||e.isNewExpressionTarget(h.node)){if(o(h))continue;if(b=s(h)){i.declarations.push(b);continue}var v=c(h);if(v){i.functionCalls.push(v);continue}}if(f&&e.contains(p,m(h.node))){var b;if(o(h))continue;if(b=s(h)){i.declarations.push(b);continue}var x=u(h);if(x){n.accessExpressions.push(x);continue}if(e.isClassDeclaration(r.parent)){var D=l(h);if(D){n.typeUsages.push(D);continue}}}i.valid=!1}else i.valid=!1}return i}(e.flatMap(d,(function(t){return e.FindAllReferences.getReferenceEntriesForNode(-1,t,n,n.getSourceFiles(),i)})));e.every(f.declarations,(function(t){return e.contains(d,t)}))||(f.valid=!1);return f;function m(t){var r=p.getSymbolAtLocation(t);return r&&e.getSymbolTarget(r,p)}}(x,p,f);if(D.valid){return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(r,(function(t){return function(t,r,n,i,a,o){var s=e.map(function(t,r,n){var i,a=r.getTypeChecker(),o=g(t.parameters),s=e.map(o,(function(t){var r=e.createBindingElement(void 0,void 0,v(t),e.isRestParameter(t)&&b(t)?e.createArrayLiteral():t.initializer);e.suppressLeadingAndTrailingTrivia(r),t.initializer&&r.initializer&&h(t.initializer,r.initializer);return r})),c=e.createObjectBindingPattern(s),u=(l=o,_=e.map(l,y),e.addEmitFlags(e.createTypeLiteralNode(_),1));var l,_;e.every(o,b)&&(i=e.createObjectLiteral());var d=e.createParameter(void 0,void 0,void 0,c,void 0,u,i);if(m(t.parameters)){var p=t.parameters[0],f=e.createParameter(void 0,void 0,void 0,p.name,void 0,p.type);return e.suppressLeadingAndTrailingTrivia(f.name),h(p.name,f.name),p.type&&(e.suppressLeadingAndTrailingTrivia(f.type),h(p.type,f.type)),e.createNodeArray([f,d])}return e.createNodeArray([d]);function y(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),b(t)?e.createToken(57):t.questionToken,i,void 0);return e.suppressLeadingAndTrailingTrivia(o),h(t.name,o.name),t.type&&o.type&&h(t.type,o.type),o}function b(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})}}}(a,p,b,t,x,D)}))}}return{edits:[]}},getAvailableActions:function(t){var r=t.file,n=t.startPosition;if(e.isSourceFileJS(r))return e.emptyArray;if(!_(r,n,t.program.getTypeChecker()))return e.emptyArray;var a=e.getLocaleSpecificMessage(e.Diagnostics.Convert_parameters_to_destructured_object);return[{name:i,description:a,actions:[{name:i,description:a}]}]}})}(r.convertParamsToDestructuredObject||(r.convertParamsToDestructuredObject={}))}(e.refactor||(e.refactor={}))}(s||(s={})),function(e){function n(t,r,n,a){var o=e.isNodeKind(t)?new i(t,r,n):75===t?new l(75,r,n):new u(t,r,n);return o.parent=a,o.flags=25358336&a.flags,o}e.servicesVersion="0.8";var i=function(){function t(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 t.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")},t.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},t.prototype.getStart=function(t,r){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,t,r)},t.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},t.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},t.prototype.getWidth=function(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)},t.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},t.prototype.getLeadingTriviaWidth=function(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos},t.prototype.getFullText=function(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)},t.prototype.getText=function(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},t.prototype.getChildCount=function(e){return this.getChildren(e).length},t.prototype.getChildAt=function(e,t){return this.getChildren(t)[e]},t.prototype.getChildren=function(t){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=function(t,r){if(!e.isNodeKind(t.kind))return e.emptyArray;var i=[];if(e.isJSDocCommentContainingNode(t))return t.forEachChild((function(e){i.push(e)})),i;e.scanner.setText((r||t.getSourceFile()).text);var o=t.pos,s=function(e){a(i,o,e.pos,t),i.push(e),o=e.end};return e.forEach(t.jsDoc,s),o=t.pos,t.forEachChild(s,(function(e){a(i,o,e.pos,t),i.push(function(e,t){var r=n(317,e.pos,e.end,t);r._children=[];for(var i=e.pos,o=0,s=e;o<s.length;o++){var c=s[o];a(r._children,i,c.pos,t),r._children.push(c),i=c.end}return a(r._children,i,e.end,t),r}(e,t)),o=e.end})),a(i,o,t.end,t),e.scanner.setText(void 0),i}(this,t))},t.prototype.getFirstToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t);if(r.length){var n=e.find(r,(function(e){return e.kind<292||e.kind>316}));return n.kind<152?n:n.getFirstToken(t)}},t.prototype.getLastToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t),n=e.lastOrUndefined(r);if(n)return n.kind<152?n:n.getLastToken(t)},t.prototype.forEachChild=function(t,r){return e.forEachChild(this,t,r)},t}();function a(t,r,i,a){for(e.scanner.setTextPos(r);r<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"),t.push(n(o,r,s,a))),r=s,1===o)break}}var s=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:!0,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=f(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 o(t,e),t}(s),l=function(t){function r(e,r,n){var i=t.call(this,r,n)||this;return i.kind=75,i}return o(r,t),Object.defineProperty(r.prototype,"text",{get:function(){return e.idText(this)},enumerable:!0,configurable:!0}),r}(s);l.prototype.kind=75;var _=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:!0,configurable:!0}),t}(),d=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=f(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 p(t){return e.getJSDocTags(t).some((function(e){return"inheritDoc"===e.tagName.text}))}function f(t,r){if(!t)return e.emptyArray;var n=e.JsDoc.getJsDocCommentsFromDeclarations(t);return(0===n.length||t.some(p))&&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 m=function(t){function r(e,r,n){var i=t.call(this,e,r,n)||this;return i.kind=288,i}return o(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 243:case 200:case 160:case 159: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 244:case 213:case 245:case 246:case 247:case 248:case 252:case 261:case 257:case 254:case 255:case 162:case 163:case 172:r(a),e.forEachChild(a,i);break;case 155:if(!e.hasModifier(a,92))break;case 241:case 190:var l=a;if(e.isBindingPattern(l.name)){e.forEachChild(l.name,i);break}l.initializer&&i(l.initializer);case 282:case 158:case 157:r(a);break;case 259:a.exportClause&&e.forEach(a.exportClause.elements,i);break;case 253:var _=a.importClause;_&&(_.name&&r(_.name),_.namedBindings&&(255===_.namedBindings.kind?r(_.namedBindings):e.forEach(_.namedBindings.elements,i)));break;case 208: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}(i),g=function(){function t(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}return t.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},t}();function y(t){var r=!0;for(var n in t)if(e.hasProperty(t,n)&&!h(n)){r=!1;break}if(r)return t;var i={};for(var n in t){if(e.hasProperty(t,n))i[h(n)?n:n.charAt(0).toLowerCase()+n.substr(1)]=t[n]}return i}function h(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function v(){return{target:1,jsx:1}}e.toEditorSettings=y,e.displayPartsToString=function(t){return t?e.map(t,(function(e){return e.text})).join(""):""},e.getDefaultCompilerOptions=v,e.getSupportedCodeFixes=function(){return e.codefix.getSupportedErrorCodes()};var b=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):6!==r.scriptKind&&t.push(r.hostFileName)})),t},t.prototype.getVersion=function(e){var t=this.getHostFileInformation(e);return t&&t.version},t.prototype.getScriptSnapshot=function(e){var t=this.getHostFileInformation(e);return t&&t.scriptSnapshot},t}(),x=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=S(t,r,99,a,!0,i);else if(this.currentFileVersion!==a){var o=r.getChangeRange(this.currentFileScriptSnapshot);n=T(this.currentSourceFile,r,a,o)}return n&&(this.currentFileVersion=a,this.currentFileName=t,this.currentFileScriptSnapshot=r,this.currentSourceFile=n),this.currentSourceFile},t}();function D(e,t,r){e.version=r,e.scriptSnapshot=t}function S(t,r,n,i,a,o){var s=e.createSourceFile(t,e.getSnapshotText(r),n,a,o);return D(s,r,i),s}function T(t,r,n,i,a){if(i&&n!==t.version&&!e.disableIncrementalParsing){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 D(l,r,n),l.nameTable=void 0,t!==l&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),l}return S(t.fileName,r,t.languageVersion,n,!0,t.scriptKind)}e.createLanguageServiceSourceFile=S,e.disableIncrementalParsing=!1,e.updateLanguageServiceSourceFile=T;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}(),C=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 k(t){var r=function(t){switch(t.kind){case 10:case 14:case 8:if(153===t.parent.kind)return e.isObjectLiteralElement(t.parent.parent)?t.parent.parent:void 0;case 75:return!e.isObjectLiteralElement(t.parent)||192!==t.parent.parent.kind&&272!==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 N(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=C,e.createLanguageService=function(n,i,a){var o;void 0===i&&(i=e.createDocumentRegistry(n.useCaseSensitiveFileNames&&n.useCaseSensitiveFileNames(),n.getCurrentDirectory())),void 0===a&&(a=!1);var s,c,u=new x(n),l=0,_=new E(n.getCancellationToken&&n.getCancellationToken()),d=n.getCurrentDirectory();function p(e){n.log&&n.log(e)}!e.localizedDiagnosticMessages&&n.getLocalizedDiagnosticMessages&&(e.localizedDiagnosticMessages=n.getLocalizedDiagnosticMessages());var f=e.hostUsesCaseSensitiveFileNames(n),m=e.createGetCanonicalFileName(f),g=e.getSourceMapper({useCaseSensitiveFileNames:function(){return f},getCurrentDirectory:function(){return d},getProgram:D,fileExists:e.maybeBind(n,n.fileExists),readFile:e.maybeBind(n,n.readFile),getDocumentPositionMapper:e.maybeBind(n,n.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(n,n.getSourceFileLike),log:p});function h(e){var t=s.getSourceFile(e);if(!t){var r=new Error("Could not find source file: '"+e+"'.");throw r.ProgramFiles=s.getSourceFiles().map((function(e){return e.fileName})),r}return t}function v(){if(e.Debug.assert(!a),n.getProjectVersion){var t=n.getProjectVersion();if(t){if(c===t&&!n.hasChangedAutomaticTypeDirectiveNames)return;c=t}}var r=n.getTypeRootsVersion?n.getTypeRootsVersion():0;l!==r&&(p("TypeRoots version has changed; provide new program"),s=void 0,l=r);var o=new b(n,m),u=o.getRootFileNames(),y=n.hasInvalidatedResolution||e.returnFalse,h=o.getProjectReferences();if(!e.isProgramUptoDate(s,u,o.compilationSettings(),(function(e){return o.getVersion(e)}),T,y,!!n.hasChangedAutomaticTypeDirectiveNames,h)){var v=o.compilationSettings(),x={getSourceFile:function(t,r,n,i){return E(t,e.toPath(t,d,m),r,n,i)},getSourceFileByPath:E,getCancellationToken:function(){return _},getCanonicalFileName:m,useCaseSensitiveFileNames:function(){return f},getNewLine:function(){return e.getNewLineCharacter(v,(function(){return e.getNewLineOrDefaultFromHost(n)}))},getDefaultLibFileName:function(e){return n.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return d},fileExists:T,readFile:function(t){var r=e.toPath(t,d,m),i=o&&o.getEntryByPath(r);if(i)return e.isString(i)?void 0:e.getSnapshotText(i.scriptSnapshot);return n.readFile&&n.readFile(t)},realpath:n.realpath&&function(e){return n.realpath(e)},directoryExists:function(t){return e.directoryProbablyExists(t,n)},getDirectories:function(e){return n.getDirectories?n.getDirectories(e):[]},readDirectory:function(t,r,i,a,o){return e.Debug.assertDefined(n.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),n.readDirectory(t,r,i,a,o)},onReleaseOldSourceFile:function(e,t){var r=i.getKeyForCompilationSettings(t);i.releaseDocumentWithKey(e.resolvedPath,r)},hasInvalidatedResolution:y,hasChangedAutomaticTypeDirectiveNames:n.hasChangedAutomaticTypeDirectiveNames};n.trace&&(x.trace=function(e){return n.trace(e)}),n.resolveModuleNames&&(x.resolveModuleNames=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.resolveModuleNames.apply(n,e)}),n.resolveTypeReferenceDirectives&&(x.resolveTypeReferenceDirectives=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.resolveTypeReferenceDirectives.apply(n,e)}),n.setResolvedProjectReferenceCallbacks&&(x.setResolvedProjectReferenceCallbacks=function(e){return n.setResolvedProjectReferenceCallbacks(e)}),n.useSourceOfProjectReferenceRedirect&&(x.useSourceOfProjectReferenceRedirect=function(){return n.useSourceOfProjectReferenceRedirect()});var D=i.getKeyForCompilationSettings(v),S={rootNames:u,options:v,host:x,oldProgram:s,projectReferences:h};return s=e.createProgram(S),o=void 0,g.clearCache(),void s.getTypeChecker()}function T(t){var r=e.toPath(t,d,m),i=o&&o.getEntryByPath(r);return i?!e.isString(i):!!n.fileExists&&n.fileExists(t)}function E(t,r,n,a,c){e.Debug.assert(void 0!==o,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var u=o&&o.getOrCreateEntryByPath(t,r);if(u){if(!c){var l=s&&s.getSourceFileByPath(r);if(l)return e.Debug.assertEqual(u.scriptKind,l.scriptKind,"Registered script kind should match new script kind.",r),i.updateDocumentWithKey(t,r,v,D,u.scriptSnapshot,u.version,u.scriptKind)}return i.acquireDocumentWithKey(t,r,v,D,u.scriptSnapshot,u.version,u.scriptKind)}}}function D(){if(!a)return v(),s;e.Debug.assert(void 0===s)}function S(t,r,n){var i=e.normalizePath(t);e.Debug.assert(n.some((function(t){return e.normalizePath(t)===i}))),v();var a=e.mapDefined(n,(function(e){return s.getSourceFile(e)})),o=h(t);return e.DocumentHighlights.getDocumentHighlights(s,_,o,r,a)}function T(t,r,n,i){v();var a=n&&n.isForRename?s.getSourceFiles().filter((function(e){return!s.isSourceFileDefaultLibrary(e)})):s.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(s,_,a,t,r,n,i)}function C(t){var r=e.getScriptKind(t,n);return 3===r||4===r}var A=e.createMapFromTemplate(((o={})[18]=19,o[20]=21,o[22]=23,o[31]=29,o));function F(t){return e.Debug.assertEqual(t.type,"install package"),n.installPackage?n.installPackage({fileName:function(t){return e.toPath(t,d,m)}(t.file),packageName:t.packageName}):Promise.reject("Host does not implement `installPackage`")}function P(t,r,i,a){var o="number"==typeof r?[r,void 0]:[r.pos,r.end];return{file:t,startPosition:o[0],endPosition:o[1],program:D(),host:n,formatContext:e.formatting.getFormatContext(a),cancellationToken:_,preferences:i}}return A.forEach((function(e,t){return A.set(e.toString(),Number(t))})),{dispose:function(){s&&(e.forEach(s.getSourceFiles(),(function(e){return i.releaseDocument(e.fileName,s.getCompilerOptions())})),s=void 0),n=void 0},cleanupSemanticCache:function(){s=void 0},getSyntacticDiagnostics:function(e){return v(),s.getSyntacticDiagnostics(h(e),_).slice()},getSemanticDiagnostics:function(r){v();var n=h(r),i=s.getSemanticDiagnostics(n,_);if(!e.getEmitDeclarations(s.getCompilerOptions()))return i.slice();var a=s.getDeclarationDiagnostics(n,_);return t(i,a)},getSuggestionDiagnostics:function(t){return v(),e.computeSuggestionDiagnostics(h(t),s,_)},getCompilerOptionsDiagnostics:function(){return v(),t(s.getOptionsDiagnostics(_),s.getGlobalDiagnostics(_))},getSyntacticClassifications:function(t,r){return e.getSyntacticClassifications(_,u.getCurrentSourceFile(t),r)},getSemanticClassifications:function(t,r){return C(t)?(v(),e.getSemanticClassifications(s.getTypeChecker(),_,h(t),s.getClassifiableNames(),r)):[]},getEncodedSyntacticClassifications:function(t,r){return e.getEncodedSyntacticClassifications(_,u.getCurrentSourceFile(t),r)},getEncodedSemanticClassifications:function(t,r){return C(t)?(v(),e.getEncodedSemanticClassifications(s.getTypeChecker(),_,h(t),s.getClassifiableNames(),r)):{spans:[],endOfLineState:0}},getCompletionsAtPosition:function(t,i,a){void 0===a&&(a=e.emptyOptions);var o=r(r({},e.identity(a)),{includeCompletionsForModuleExports:a.includeCompletionsForModuleExports||a.includeExternalModuleExports,includeCompletionsWithInsertText:a.includeCompletionsWithInsertText||a.includeInsertTextCompletions});return v(),e.Completions.getCompletionsAtPosition(n,s,p,h(t),i,o,a.triggerCharacter)},getCompletionEntryDetails:function(t,r,i,a,o,c){return void 0===c&&(c=e.emptyOptions),v(),e.Completions.getCompletionEntryDetails(s,p,h(t),r,{name:i,source:o},n,a&&e.formatting.getFormatContext(a),c,_)},getCompletionEntrySymbol:function(t,r,i,a){return v(),e.Completions.getCompletionEntrySymbol(s,p,h(t),r,{name:i,source:a},n)},getSignatureHelpItems:function(t,r,n){var i=(void 0===n?e.emptyOptions:n).triggerReason;v();var a=h(t);return e.SignatureHelp.getSignatureHelpItems(s,a,r,i,_)},getQuickInfoAtPosition:function(t,r){v();var n=h(t),i=e.getTouchingPropertyName(n,r);if(i!==n){var a=s.getTypeChecker(),o=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=k(t);if(n){var i=r.getContextualType(n.parent),a=i&&N(n,r,i,!1);if(a&&1===a.length)return e.first(a)}return r.getSymbolAtLocation(t)}(o,a);if(!c||a.isUnknownSymbol(c)){var u=function(t,r,n){switch(r.kind){case 75:return!e.isLabelName(r)&&!e.isTagName(r);case 193:case 152:return!e.isInComment(t,n);case 103:case 182:case 101:return!0;default:return!1}}(n,o,r)?a.getTypeAtLocation(o):void 0;return u&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(o,n),displayParts:a.runWithCancellationToken(_,(function(t){return e.typeToDisplayParts(t,u,e.getContainerNode(o))})),documentation:u.symbol?u.symbol.getDocumentationComment(a):void 0,tags:u.symbol?u.symbol.getJsDocTags():void 0}}var l=a.runWithCancellationToken(_,(function(t){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,c,n,e.getContainerNode(o),o)})),d=l.symbolKind,p=l.displayParts,f=l.documentation,m=l.tags;return{kind:d,kindModifiers:e.SymbolDisplay.getSymbolModifiers(c),textSpan:e.createTextSpanFromNode(o,n),displayParts:p,documentation:f,tags:m}}},getDefinitionAtPosition:function(t,r){return v(),e.GoToDefinition.getDefinitionAtPosition(s,h(t),r)},getDefinitionAndBoundSpan:function(t,r){return v(),e.GoToDefinition.getDefinitionAndBoundSpan(s,h(t),r)},getImplementationAtPosition:function(t,r){return v(),e.FindAllReferences.getImplementationsAtPosition(s,_,s.getSourceFiles(),h(t),r)},getTypeDefinitionAtPosition:function(t,r){return v(),e.GoToDefinition.getTypeDefinitionAtPosition(s.getTypeChecker(),h(t),r)},getReferencesAtPosition:function(t,r){return v(),T(e.getTouchingPropertyName(h(t),r),r,{},e.FindAllReferences.toReferenceEntry)},findReferences:function(t,r){return v(),e.FindAllReferences.findReferencedSymbols(s,_,s.getSourceFiles(),h(t),r)},getOccurrencesAtPosition:function(t,n){return e.flatMap(S(t,n,[t]),(function(e){return e.highlightSpans.map((function(t){return r(r({fileName:e.fileName,textSpan:t.textSpan,isWriteAccess:"writtenReference"===t.kind,isDefinition:!1},t.isInString&&{isInString:!0}),t.contextSpan&&{contextSpan:t.contextSpan})}))}))},getDocumentHighlights:S,getNameOrDottedNameSpan:function(t,r,n){var i=u.getCurrentSourceFile(t),a=e.getTouchingPropertyName(i,r);if(a!==i){switch(a.kind){case 193:case 152:case 10:case 90:case 105:case 99:case 101:case 103:case 182:case 75:break;default:return}for(var o=a;;)if(e.isRightSideOfPropertyAccess(o)||e.isRightSideOfQualifiedName(o))o=o.parent;else{if(!e.isNameOfModuleDeclaration(o))break;if(248!==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 a=n?[h(n)]:s.getSourceFiles();return e.NavigateTo.getNavigateToItems(a,s.getTypeChecker(),_,t,r,i)},getRenameInfo:function(t,r,n){return v(),e.Rename.getRenameInfo(s,h(t),r,n)},getSmartSelectionRange:function(t,r){return e.SmartSelectionRange.getSmartSelectionRange(r,u.getCurrentSourceFile(t))},findRenameLocations:function(t,n,i,a,o){v();var s=h(t),c=e.getTouchingPropertyName(s,n);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 n=e.createTextSpanFromNode(t.tagName,s);return r({fileName:s.fileName,textSpan:n},e.FindAllReferences.toContextSpan(n,s,t.parent))}))}return T(c,n,{findInStrings:i,findInComments:a,providePrefixAndSuffixTextForRename:o,isForRename:!0},(function(t,r,n){return e.FindAllReferences.toRenameLocation(t,r,n,o||!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=h(t);_.throwIfCancellationRequested();var i,a=n.text,o=[];if(r.length>0&&!function(t){return e.stringContains(t,"/node_modules/")}(n.fileName))for(var s=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")}(),c=void 0;c=s.exec(a);){_.throwIfCancellationRequested();e.Debug.assert(c.length===r.length+3);var u=c[1],l=c.index+u.length;if(e.isInComment(n,l)){for(var d=void 0,p=0;p<r.length;p++)c[p+3]&&(d=r[p]);if(void 0===d)return e.Debug.fail();if(!((i=a.charCodeAt(l+d.text.length))>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57)){var f=c[2];o.push({descriptor:d,message:f,position:l})}}}return o},getBraceMatchingAtPosition:function(t,r){var n=u.getCurrentSourceFile(t),i=e.getTouchingToken(n,r),a=i.getStart(n)===r?A.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=y(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(t,r,n,i){var a=u.getCurrentSourceFile(t);return e.formatting.formatSelection(r,n,a,e.formatting.getFormatContext(y(i)))},getFormattingEditsForDocument:function(t,r){return e.formatting.formatDocument(u.getCurrentSourceFile(t),e.formatting.getFormatContext(y(r)))},getFormattingEditsAfterKeystroke:function(t,r,n,i){var a=u.getCurrentSourceFile(t),o=e.formatting.getFormatContext(y(i));if(!e.isInComment(a,r))switch(n){case"{":return e.formatting.formatOnOpeningCurly(r,a,o);case"}":return e.formatting.formatOnClosingCurly(r,a,o);case";":return e.formatting.formatOnSemicolon(r,a,o);case"\n":return e.formatting.formatOnEnter(r,a,o)}return[]},getDocCommentTemplateAtPosition:function(t,r){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(n),u.getCurrentSourceFile(t),r)},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(t,r,i,a,o,c){void 0===c&&(c=e.emptyOptions),v();var u=h(t),l=e.createTextSpanFromBounds(r,i),d=e.formatting.getFormatContext(o);return e.flatMap(e.deduplicate(a,e.equateValues,e.compareValues),(function(t){return _.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:t,sourceFile:u,span:l,program:s,host:n,cancellationToken:_,formatContext:d,preferences:c})}))},getCombinedCodeFix:function(t,r,i,a){void 0===a&&(a=e.emptyOptions),v(),e.Debug.assert("file"===t.type);var o=h(t.fileName),c=e.formatting.getFormatContext(i);return e.codefix.getAllFixes({fixId:r,sourceFile:o,program:s,host:n,cancellationToken:_,formatContext:c,preferences:a})},applyCodeActionCommand:function(t,r){var n="string"==typeof t?r:t;return e.isArray(n)?Promise.all(n.map((function(e){return F(e)}))):F(n)},organizeImports:function(t,r,i){void 0===i&&(i=e.emptyOptions),v(),e.Debug.assert("file"===t.type);var a=h(t.fileName),o=e.formatting.getFormatContext(r);return e.OrganizeImports.organizeImports(a,o,n,s,i)},getEditsForFileRename:function(t,r,i,a){return void 0===a&&(a=e.emptyOptions),e.getEditsForFileRename(D(),t,r,n,e.formatting.getFormatContext(i),a,g)},getEmitOutput:function(t,r,i){v();var a=h(t),o=n.getCustomTransformers&&n.getCustomTransformers();return e.getFileEmitOutput(s,a,!!r,_,o,i)},getNonBoundSourceFile:function(e){return u.getCurrentSourceFile(e)},getProgram:D,getApplicableRefactors:function(t,r,n){void 0===n&&(n=e.emptyOptions),v();var i=h(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=h(t);return e.refactor.getEditsForRefactor(P(s,n,o,r),i,a)},toLineColumnOffset:g.toLineColumnOffset,getSourceMapper:function(){return g}}},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)||263===t.parent.kind||function(e){return e&&e.parent&&194===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)}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=k,e.getPropertySymbolsFromContextualType=N,e.getDefaultLibFilePath=function(t){return Le+e.directorySeparator+e.getDefaultLibFileName(t)},e.objectAllocator={getNodeConstructor:function(){return i},getTokenConstructor:function(){return u},getIdentifierConstructor:function(){return l},getSourceFileConstructor:function(){return m},getSymbolConstructor:function(){return c},getTypeConstructor:function(){return _},getSignatureConstructor:function(){return d},getSourceMapSourceConstructor:function(){return g}}}(s||(s={})),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 224:return h(r.declarationList.declarations[0]);case 241:case 158:case 157:return h(r);case 155: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 243:case 160:case 159:case 162:case 163:case 161:case 200:case 201:return function(e){if(!e.body)return;if(v(e))return o(e);return _(e.body)}(r);case 222:if(e.isFunctionBlock(r))return function(e){var t=e.statements.length?e.statements[0]:e.getLastToken();if(v(e.parent))return c(e.parent,t);return _(t)}(r);case 249:return b(r);case 278:return b(r.block);case 225:return o(r.expression);case 234:return o(r.getChildAt(0),r.expression);case 228:return s(r,r.expression);case 227:return _(r.statement);case 240:return o(r.getChildAt(0));case 226:return s(r,r.expression);case 237:return _(r.statement);case 233:case 232:return o(r.getChildAt(0),r.label);case 229: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 230:return s(r,r.expression);case 231:return x(r);case 236:return s(r,r.expression);case 275:case 276:return _(r.statements[0]);case 239:return b(r.tryBlock);case 238:case 258:return o(r,r.expression);case 252:return o(r,r.moduleReference);case 253:case 259:return o(r,r.moduleSpecifier);case 248:if(1!==e.getModuleInstanceState(r))return;case 244:case 247:case 282:case 190:return o(r);case 235:return _(r.statement);case 156:return g=n.decorators,e.createTextSpanFromBounds(e.skipTrivia(t.text,g.pos),g.end);case 188:case 189:return D(r);case 245:case 246: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 247:var n=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),n.members.length?n.members[0]:n.getLastToken(t));case 244:var i=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),i.members.length?i.members[0]:i.getLastToken(t));case 250:return c(r.parent.parent,r.parent.clauses[0])}return _(r.parent)}(r);case 19:return function(t){switch(t.parent.kind){case 249:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 247:case 244:return o(t);case 222:if(e.isFunctionBlock(t.parent))return o(t);case 278:return _(e.lastOrUndefined(t.parent.statements));case 250:var r=t.parent,n=e.lastOrUndefined(r.clauses);return n?_(e.lastOrUndefined(n.statements)):void 0;case 188: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 189: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(227===e.parent.kind||195===e.parent.kind||196===e.parent.kind)return u(e);if(199===e.parent.kind)return l(e);return _(e.parent)}(r);case 21:return function(e){switch(e.parent.kind){case 200:case 243:case 201:case 160:case 159:case 162:case 163:case 161:case 228:case 227:case 229:case 231:case 195:case 196:case 199:return u(e);default:return _(e.parent)}}(r);case 58:return function(t){if(e.isFunctionLike(t.parent)||279===t.parent.kind||155===t.parent.kind)return u(t);return _(t.parent)}(r);case 31:case 29:return function(e){if(198===e.parent.kind)return l(e);return _(e.parent)}(r);case 110:return function(e){if(227===e.parent.kind)return s(e,e.parent.expression);return _(e.parent)}(r);case 86:case 78:case 91:return l(r);case 151:return function(e){if(231===e.parent.kind)return l(e);return _(e.parent)}(r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return S(r);if((75===r.kind||212===r.kind||279===r.kind||280===r.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return o(r);if(208===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 227:return u(r);case 156:return _(r.parent);case 229:case 231:return o(r);case 208:if(27===r.parent.operatorToken.kind)return o(r);break;case 201:if(r.parent.body===r)return o(r)}switch(r.parent.kind){case 279:if(r.parent.name===r&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent.parent))return _(r.parent.initializer);break;case 198:if(r.parent.type===r)return l(r.parent.type);break;case 241:case 155:var p=r.parent,f=p.initializer,m=p.type;if(f===r||m===r||e.isAssignmentOperator(r.kind))return u(r);break;case 208: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 g;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 h(r){if(230===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)||231===n.parent.kind?y(r):e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]!==r?_(e.findPrecedingToken(r.pos,t,r.parent)):void 0}function v(t){return e.hasModifier(t,1)||244===t.parent.kind&&161!==t.kind}function b(r){switch(r.parent.kind){case 248:if(1!==e.getModuleInstanceState(r.parent))return;case 228:case 226:case 230:return c(r.parent,r.statements[0]);case 229:case 231:return c(e.findPrecedingToken(r.pos,t,r.parent),r.statements[0])}return _(r.statements[0])}function x(e){if(242!==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 214!==e.kind?e:void 0}));return r?_(r):190===t.parent.kind?o(t.parent):y(t.parent)}function S(t){e.Debug.assert(189!==t.kind&&188!==t.kind);var r=191===t.kind?t.elements:t.properties,n=e.forEach(r,(function(e){return 214!==e.kind?e:void 0}));return n?_(n):o(208===t.parent.kind?t.parent:t)}}}}(e.BreakpointResolver||(e.BreakpointResolver={}))}(s||(s={})),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}}(s||(s={}));var s,c,u=function(){return this}();!function(r){function n(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}var i=function(){function e(e){this.scriptSnapshotShim=e}return e.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},e.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},e.prototype.getChangeRange=function(e){var t=e,n=this.scriptSnapshotShim.getChangeRange(t.scriptSnapshotShim);if(null===n)return null;var i=JSON.parse(n);return r.createTextChangeRange(r.createTextSpan(i.span.start,i.span.length),i.newLength)},e.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},e}(),a=function(){function e(e){var t=this;this.shimHost=e,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(e,n){var i=JSON.parse(t.shimHost.getModuleResolutionsForFile(n));return r.map(e,(function(e){var t=r.getProperty(i,e);return t?{resolvedFileName:t,extension:r.extensionFromPath(t),isExternalLibraryImport:!1}:void 0}))}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return t.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(e,n){var i=JSON.parse(t.shimHost.getTypeReferenceDirectiveResolutionsForFile(n));return r.map(e,(function(e){return r.getProperty(i,e)}))})}return e.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e)},e.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e)},e.prototype.error=function(e){this.shimHost.error(e)},e.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},e.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},e.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},e.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},e.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return JSON.parse(e)},e.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new i(t)},e.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},e.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},e.prototype.getLocalizedDiagnosticMessages=function(){var e=this.shimHost.getLocalizedDiagnosticMessages();if(null===e||""===e)return null;try{return JSON.parse(e)}catch(e){return this.log(e.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},e.prototype.getCancellationToken=function(){var e=this.shimHost.getCancellationToken();return new r.ThrottledCancellationToken(e)},e.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},e.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},e.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},e.prototype.readDirectory=function(e,t,n,i,a){var o=r.getFileMatcherPatterns(e,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(t),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},e.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},e.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},e}();r.LanguageServiceShimHostAdapter=a;var s=function(){function e(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 e.prototype.readDirectory=function(e,t,n,i,a){var o=r.getFileMatcherPatterns(e,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(t),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},e.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},e.prototype.readFile=function(e){return this.shimHost.readFile(e)},e.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},e}();function c(e,t,r,n){return l(e,t,!0,r,n)}function l(e,t,i,a,o){try{var s=function(e,t,n,i){var a;i&&(e.log(t),a=r.timestamp());var o=n();if(i){var s=r.timestamp();if(e.log(t+" completed in "+(s-a)+" msec"),r.isString(o)){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),e.log("  result.length="+c.length+", result='"+JSON.stringify(c)+"'")}}return o}(e,t,a,o);return i?JSON.stringify({result:s}):s}catch(i){return i instanceof r.OperationCanceledException?JSON.stringify({canceled:!0}):(n(e,i),i.description=t,JSON.stringify({error:i}))}}r.CoreServicesShimHostAdapter=s;var _=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function d(e,t){return e.map((function(e){return function(e,t){return{message:r.flattenDiagnosticMessageText(e.messageText,t),start:e.start,length:e.length,category:r.diagnosticCategoryName(e),code:e.code,reportsUnnecessary:e.reportsUnnecessary}}(e,t)}))}r.realizeDiagnostics=d;var p=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.host=r,i.languageService=n,i.logPerformance=!1,i.logger=i.host,i}return o(t,e),t.prototype.forwardJSONCall=function(e,t){return c(this.logger,e,t,this.logPerformance)},t.prototype.dispose=function(t){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,u&&u.CollectGarbage&&(u.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,e.prototype.dispose.call(this,t)},t.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",(function(){return null}))},t.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",(function(){return e.languageService.cleanupSemanticCache(),null}))},t.prototype.realizeDiagnostics=function(e){return d(e,r.getNewLineOrDefaultFromHost(this.host))},t.prototype.getSyntacticClassifications=function(e,t,n){var i=this;return this.forwardJSONCall("getSyntacticClassifications('"+e+"', "+t+", "+n+")",(function(){return i.languageService.getSyntacticClassifications(e,r.createTextSpan(t,n))}))},t.prototype.getSemanticClassifications=function(e,t,n){var i=this;return this.forwardJSONCall("getSemanticClassifications('"+e+"', "+t+", "+n+")",(function(){return i.languageService.getSemanticClassifications(e,r.createTextSpan(t,n))}))},t.prototype.getEncodedSyntacticClassifications=function(e,t,n){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+e+"', "+t+", "+n+")",(function(){return f(i.languageService.getEncodedSyntacticClassifications(e,r.createTextSpan(t,n)))}))},t.prototype.getEncodedSemanticClassifications=function(e,t,n){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+e+"', "+t+", "+n+")",(function(){return f(i.languageService.getEncodedSemanticClassifications(e,r.createTextSpan(t,n)))}))},t.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+e+"')",(function(){var r=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(r)}))},t.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('"+e+"')",(function(){var r=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(r)}))},t.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+e+"')",(function(){return t.realizeDiagnostics(t.languageService.getSuggestionDiagnostics(e))}))},t.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",(function(){var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)}))},t.prototype.getQuickInfoAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getQuickInfoAtPosition(e,t)}))},t.prototype.getNameOrDottedNameSpan=function(e,t,r){var n=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+t+", "+r+")",(function(){return n.languageService.getNameOrDottedNameSpan(e,t,r)}))},t.prototype.getBreakpointStatementAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getBreakpointStatementAtPosition(e,t)}))},t.prototype.getSignatureHelpItems=function(e,t,r){var n=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+t+")",(function(){return n.languageService.getSignatureHelpItems(e,t,r)}))},t.prototype.getDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getDefinitionAtPosition(e,t)}))},t.prototype.getDefinitionAndBoundSpan=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+e+"', "+t+")",(function(){return r.languageService.getDefinitionAndBoundSpan(e,t)}))},t.prototype.getTypeDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getTypeDefinitionAtPosition(e,t)}))},t.prototype.getImplementationAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getImplementationAtPosition(e,t)}))},t.prototype.getRenameInfo=function(e,t,r){var n=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+t+")",(function(){return n.languageService.getRenameInfo(e,t,r)}))},t.prototype.getSmartSelectionRange=function(e,t){var r=this;return this.forwardJSONCall("getSmartSelectionRange('"+e+"', "+t+")",(function(){return r.languageService.getSmartSelectionRange(e,t)}))},t.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)}))},t.prototype.getBraceMatchingAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getBraceMatchingAtPosition(e,t)}))},t.prototype.isValidBraceCompletionAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+t+", "+r+")",(function(){return n.languageService.isValidBraceCompletionAtPosition(e,t,r)}))},t.prototype.getSpanOfEnclosingComment=function(e,t,r){var n=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+e+"', "+t+")",(function(){return n.languageService.getSpanOfEnclosingComment(e,t,r)}))},t.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)}))},t.prototype.getReferencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getReferencesAtPosition(e,t)}))},t.prototype.findReferences=function(e,t){var r=this;return this.forwardJSONCall("findReferences('"+e+"', "+t+")",(function(){return r.languageService.findReferences(e,t)}))},t.prototype.getOccurrencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getOccurrencesAtPosition(e,t)}))},t.prototype.getDocumentHighlights=function(e,t,n){var i=this;return this.forwardJSONCall("getDocumentHighlights('"+e+"', "+t+")",(function(){var a=i.languageService.getDocumentHighlights(e,t,JSON.parse(n)),o=r.normalizeSlashes(e).toLowerCase();return r.filter(a,(function(e){return r.normalizeSlashes(e.fileName).toLowerCase()===o}))}))},t.prototype.getCompletionsAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+t+", "+r+")",(function(){return n.languageService.getCompletionsAtPosition(e,t,r)}))},t.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)}))},t.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)}))},t.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)}))},t.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)}))},t.prototype.getDocCommentTemplateAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getDocCommentTemplateAtPosition(e,t)}))},t.prototype.getNavigateToItems=function(e,t,r){var n=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+t+", "+r+")",(function(){return n.languageService.getNavigateToItems(e,t,r)}))},t.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",(function(){return t.languageService.getNavigationBarItems(e)}))},t.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",(function(){return t.languageService.getNavigationTree(e)}))},t.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",(function(){return t.languageService.getOutliningSpans(e)}))},t.prototype.getTodoComments=function(e,t){var r=this;return this.forwardJSONCall("getTodoComments('"+e+"')",(function(){return r.languageService.getTodoComments(e,JSON.parse(t))}))},t.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",(function(){return t.languageService.getEmitOutput(e)}))},t.prototype.getEmitOutputObject=function(e){var t=this;return l(this.logger,"getEmitOutput('"+e+"')",!1,(function(){return t.languageService.getEmitOutput(e)}),this.logPerformance)},t}(_);function f(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var m=function(e){function t(t,n){var i=e.call(this,t)||this;return i.logger=n,i.logPerformance=!1,i.classifier=r.createClassifier(),i}return o(t,e),t.prototype.getEncodedLexicalClassifications=function(e,t,r){var n=this;return void 0===r&&(r=!1),c(this.logger,"getEncodedLexicalClassifications",(function(){return f(n.classifier.getEncodedLexicalClassifications(e,t,r))}),this.logPerformance)},t.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},t}(_),g=function(e){function n(t,r,n){var i=e.call(this,t)||this;return i.logger=r,i.host=n,i.logPerformance=!1,i}return o(n,e),n.prototype.forwardJSONCall=function(e,t){return c(this.logger,e,t,this.logPerformance)},n.prototype.resolveModuleName=function(e,t,n){var i=this;return this.forwardJSONCall("resolveModuleName('"+e+"')",(function(){var a=JSON.parse(n),o=r.resolveModuleName(t,r.normalizeSlashes(e),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}}))},n.prototype.resolveTypeReferenceDirective=function(e,t,n){var i=this;return this.forwardJSONCall("resolveTypeReferenceDirective("+e+")",(function(){var a=JSON.parse(n),o=r.resolveTypeReferenceDirective(t,r.normalizeSlashes(e),a,i.host);return{resolvedFileName:o.resolvedTypeReferenceDirective?o.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:!o.resolvedTypeReferenceDirective||o.resolvedTypeReferenceDirective.primary,failedLookupLocations:o.failedLookupLocations}}))},n.prototype.getPreProcessedFileInfo=function(e,t){var n=this;return this.forwardJSONCall("getPreProcessedFileInfo('"+e+"')",(function(){var e=r.preProcessFile(r.getSnapshotText(t),!0,!0);return{referencedFiles:n.convertFileReferences(e.referencedFiles),importedFiles:n.convertFileReferences(e.importedFiles),ambientExternalModules:e.ambientExternalModules,isLibFile:e.isLibFile,typeReferenceDirectives:n.convertFileReferences(e.typeReferenceDirectives),libReferenceDirectives:n.convertFileReferences(e.libReferenceDirectives)}}))},n.prototype.getAutomaticTypeDirectiveNames=function(e){var t=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('"+e+"')",(function(){var n=JSON.parse(e);return r.getAutomaticTypeDirectiveNames(n,t.host)}))},n.prototype.convertFileReferences=function(e){if(e){for(var t=[],n=0,i=e;n<i.length;n++){var a=i[n];t.push({path:r.normalizeSlashes(a.fileName),position:a.pos,length:a.end-a.pos})}return t}},n.prototype.getTSConfigFileInfo=function(e,n){var i=this;return this.forwardJSONCall("getTSConfigFileInfo('"+e+"')",(function(){var a=r.parseJsonText(e,r.getSnapshotText(n)),o=r.normalizeSlashes(e),s=r.parseJsonSourceFileConfigFileContent(a,i.host,r.getDirectoryPath(o),{},o);return{options:s.options,typeAcquisition:s.typeAcquisition,files:s.fileNames,raw:s.raw,errors:d(t(a.parseDiagnostics,s.errors),"\r\n")}}))},n.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",(function(){return r.getDefaultCompilerOptions()}))},n.prototype.discoverTypings=function(e){var t=this,n=r.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",(function(){var i=JSON.parse(e);return void 0===t.safeList&&(t.safeList=r.JsTyping.loadSafeList(t.host,r.toPath(i.safeListPath,i.safeListPath,n))),r.JsTyping.discoverTypings(t.host,(function(e){return t.logger.log(e)}),i.fileNames,r.toPath(i.projectRootPath,i.projectRootPath,n),t.safeList,i.packageNameToTypingLocation,i.typeAcquisition,i.unresolvedImports,i.typesRegistry)}))},n}(_),y=function(){function e(){this._shims=[]}return e.prototype.getServicesVersion=function(){return r.servicesVersion},e.prototype.createLanguageServiceShim=function(e){try{void 0===this.documentRegistry&&(this.documentRegistry=r.createDocumentRegistry(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()));var t=new a(e),i=r.createLanguageService(t,this.documentRegistry,!1);return new p(this,e,i)}catch(t){throw n(e,t),t}},e.prototype.createClassifierShim=function(e){try{return new m(this,e)}catch(t){throw n(e,t),t}},e.prototype.createCoreServicesShim=function(e){try{var t=new s(e);return new g(this,e,t)}catch(t){throw n(e,t),t}},e.prototype.close=function(){r.clear(this._shims),this.documentRegistry=void 0},e.prototype.registerShim=function(e){this._shims.push(e)},e.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")},e}();r.TypeScriptServicesFactory=y,e.exports&&(e.exports=r)}(s||(s={})),function(e){!function(e){e.TypeScriptServicesFactory=s.TypeScriptServicesFactory}(e.Services||(e.Services={}))}(c||(c={}));s.versionMajorMinor})));i(Fr);var Pr="win32"===Oe.platform,wr=Oe.env.NODE_DEBUG&&/fs/.test(Oe.env.NODE_DEBUG);function Ir(e){return"function"==typeof e?e:function(){var e;if(wr){var t=new Error;e=function(e){e&&(t.message=e.message,r(e=t))}}else e=r;return e;function r(e){if(e){if(Oe.throwDeprecation)throw e;if(!Oe.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);Oe.traceDeprecation?console.trace(t):console.error(t)}}}}()}yr.normalize;if(Pr)var Or=/(.*?)(?:[\/\\]+|$)/g;else Or=/(.*?)(?:[\/]+|$)/g;if(Pr)var Mr=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else Mr=/^[\/]*/;var Lr={realpathSync:function(e,t){if(e=yr.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var r,n,i,a,o=e,s={},c={};function u(){var t=Mr.exec(e);r=t[0].length,n=t[0],i=t[0],a="",Pr&&!c[i]&&(hr.lstatSync(i),c[i]=!0)}for(u();r<e.length;){Or.lastIndex=r;var l=Or.exec(e);if(a=n,n+=l[0],i=a+l[1],r=Or.lastIndex,!(c[i]||t&&t[i]===i)){var _;if(t&&Object.prototype.hasOwnProperty.call(t,i))_=t[i];else{var d=hr.lstatSync(i);if(!d.isSymbolicLink()){c[i]=!0,t&&(t[i]=i);continue}var p=null;if(!Pr){var f=d.dev.toString(32)+":"+d.ino.toString(32);s.hasOwnProperty(f)&&(p=s[f])}null===p&&(hr.statSync(i),p=hr.readlinkSync(i)),_=yr.resolve(a,p),t&&(t[i]=_),Pr||(s[f]=p)}e=yr.resolve(_,e.slice(r)),u()}}return t&&(t[o]=e),e},realpath:function(e,t,r){if("function"!=typeof r&&(r=Ir(t),t=null),e=yr.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return xe(r.bind(null,null,t[e]));var n,i,a,o,s=e,c={},u={};function l(){var t=Mr.exec(e);n=t[0].length,i=t[0],a=t[0],o="",Pr&&!u[a]?hr.lstat(a,(function(e){if(e)return r(e);u[a]=!0,_()})):xe(_)}function _(){if(n>=e.length)return t&&(t[s]=e),r(null,e);Or.lastIndex=n;var c=Or.exec(e);return o=i,i+=c[0],a=o+c[1],n=Or.lastIndex,u[a]||t&&t[a]===a?xe(_):t&&Object.prototype.hasOwnProperty.call(t,a)?f(t[a]):hr.lstat(a,d)}function d(e,n){if(e)return r(e);if(!n.isSymbolicLink())return u[a]=!0,t&&(t[a]=a),xe(_);if(!Pr){var i=n.dev.toString(32)+":"+n.ino.toString(32);if(c.hasOwnProperty(i))return p(null,c[i],a)}hr.stat(a,(function(e){if(e)return r(e);hr.readlink(a,(function(e,t){Pr||(c[i]=t),p(e,t)}))}))}function p(e,n,i){if(e)return r(e);var a=yr.resolve(o,n);t&&(t[i]=a),f(a)}function f(t){e=yr.resolve(t,e.slice(n)),l()}l()}},Rr=Ur;Ur.realpath=Ur,Ur.sync=Vr,Ur.realpathSync=Vr,Ur.monkeypatch=function(){hr.realpath=Ur,hr.realpathSync=Vr},Ur.unmonkeypatch=function(){hr.realpath=Br,hr.realpathSync=jr};var Br=hr.realpath,jr=hr.realpathSync,Kr=Oe.version,Jr=/^v[0-5]\./.test(Kr);function zr(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function Ur(e,t,r){if(Jr)return Br(e,t,r);"function"==typeof t&&(r=t,t=null),Br(e,t,(function(n,i){zr(n)?Lr.realpath(e,t,r):r(n,i)}))}function Vr(e,t){if(Jr)return jr(e,t);try{return jr(e,t)}catch(r){if(zr(r))return Lr.realpathSync(e,t);throw r}}var qr=function(e,t){for(var r=[],n=0;n<e.length;n++){var i=t(e[n],n);Wr(i)?r.push.apply(r,i):r.push(i)}return r},Wr=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},Gr=Hr;function Hr(e,t,r){e instanceof RegExp&&(e=Yr(e,r)),t instanceof RegExp&&(t=Yr(t,r));var n=Xr(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function Yr(e,t){var r=t.match(e);return r?r[0]:null}function Xr(e,t,r){var n,i,a,o,s,c=r.indexOf(e),u=r.indexOf(t,c+1),l=c;if(c>=0&&u>0){for(n=[],a=r.length;l>=0&&!s;)l==c?(n.push(l),c=r.indexOf(e,l+1)):1==n.length?s=[n.pop(),u]:((i=n.pop())<a&&(a=i,o=u),u=r.indexOf(t,l+1)),l=c<u&&c>=0?c:u;n.length&&(s=[a,o])}return s}Hr.range=Xr;var Qr=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return function e(t,r){var n=[];var i=Gr("{","}",t);if(!i||/\$$/.test(i.pre))return[t];var a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body);var o=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body);var s=a||o;var c=i.body.indexOf(",")>=0;if(!s&&!c)return i.post.match(/,.*\}/)?(t=i.pre+"{"+i.body+en+i.post,e(t)):[t];var u;if(s)u=i.body.split(/\.\./);else{if(1===(u=function e(t){if(!t)return[""];var r=[];var n=Gr("{","}",t);if(!n)return t.split(",");var i=n.pre;var a=n.body;var o=n.post;var s=i.split(",");s[s.length-1]+="{"+a+"}";var c=e(o);o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c));r.push.apply(r,s);return r}(i.body)).length)if(1===(u=e(u[0],!1).map(on)).length)return(_=i.post.length?e(i.post,!1):[""]).map((function(e){return i.pre+u[0]+e}))}var l=i.pre;var _=i.post.length?e(i.post,!1):[""];var d;if(s){var p=nn(u[0]),f=nn(u[1]),m=Math.max(u[0].length,u[1].length),g=3==u.length?Math.abs(nn(u[2])):1,y=cn;f<p&&(g*=-1,y=un);var h=u.some(sn);d=[];for(var v=p;y(v,f);v+=g){var b;if(o)"\\"===(b=String.fromCharCode(v))&&(b="");else if(b=String(v),h){var x=m-b.length;if(x>0){var D=new Array(x+1).join("0");b=v<0?"-"+D+b.slice(1):D+b}}d.push(b)}}else d=qr(u,(function(t){return e(t,!1)}));for(var S=0;S<d.length;S++)for(var T=0;T<_.length;T++){var E=l+d[S]+_[T];(!r||s||E)&&n.push(E)}return n}(function(e){return e.split("\\\\").join($r).split("\\{").join(Zr).split("\\}").join(en).split("\\,").join(tn).split("\\.").join(rn)}(e),!0).map(an)},$r="\0SLASH"+Math.random()+"\0",Zr="\0OPEN"+Math.random()+"\0",en="\0CLOSE"+Math.random()+"\0",tn="\0COMMA"+Math.random()+"\0",rn="\0PERIOD"+Math.random()+"\0";function nn(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function an(e){return e.split($r).join("\\").split(Zr).join("{").split(en).join("}").split(tn).join(",").split(rn).join(".")}function on(e){return"{"+e+"}"}function sn(e){return/^-?0\d/.test(e)}function cn(e,t){return e<=t}function un(e,t){return e>=t}var ln=xn;xn.Minimatch=Dn;var _n={sep:"/"};try{_n=yr}catch(e){}var dn=xn.GLOBSTAR=Dn.GLOBSTAR={},pn={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},fn="[^/]",mn=fn+"*?",gn="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",yn="(?:(?!(?:\\/|^)\\.).)*?",hn=function(e){return e.split("").reduce((function(e,t){return e[t]=!0,e}),{})}("().*{}+?[]^$\\!");var vn=/\/+/;function bn(e,t){e=e||{},t=t||{};var r={};return Object.keys(t).forEach((function(e){r[e]=t[e]})),Object.keys(e).forEach((function(t){r[t]=e[t]})),r}function xn(e,t,r){if("string"!=typeof t)throw new TypeError("glob pattern string required");return r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new Dn(t,r).match(e))}function Dn(e,t){if(!(this instanceof Dn))return new Dn(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==_n.sep&&(e=e.split(_n.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function Sn(e,t){if(t||(t=this instanceof Dn?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:Qr(e)}xn.filter=function(e,t){return t=t||{},function(r,n,i){return xn(r,e,t)}},xn.defaults=function(e){if(!e||!Object.keys(e).length)return xn;var t=xn,r=function(r,n,i){return t.minimatch(r,n,bn(e,i))};return r.Minimatch=function(r,n){return new t.Minimatch(r,bn(e,n))},r},Dn.defaults=function(e){return e&&Object.keys(e).length?xn.defaults(e).Minimatch:Dn},Dn.prototype.debug=function(){},Dn.prototype.make=function(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var r=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,r),r=this.globParts=r.map((function(e){return e.split(vn)})),this.debug(this.pattern,r),r=r.map((function(e,t,r){return e.map(this.parse,this)}),this),this.debug(this.pattern,r),r=r.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,r),this.set=r},Dn.prototype.parseNegate=function(){var e=this.pattern,t=!1,r=this.options,n=0;if(r.nonegate)return;for(var i=0,a=e.length;i<a&&"!"===e.charAt(i);i++)t=!t,n++;n&&(this.pattern=e.substr(n));this.negate=t},xn.braceExpand=function(e,t){return Sn(e,t)},Dn.prototype.braceExpand=Sn,Dn.prototype.parse=function(e,t){if(e.length>65536)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&"**"===e)return dn;if(""===e)return"";var n,i="",a=!!r.nocase,o=!1,s=[],c=[],u=!1,l=-1,_=-1,d="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",p=this;function f(){if(n){switch(n){case"*":i+=mn,a=!0;break;case"?":i+=fn,a=!0;break;default:i+="\\"+n}p.debug("clearStateChar %j %j",n,i),n=!1}}for(var m,g=0,y=e.length;g<y&&(m=e.charAt(g));g++)if(this.debug("%s\t%s %s %j",e,g,i,m),o&&hn[m])i+="\\"+m,o=!1;else switch(m){case"/":return!1;case"\\":f(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,g,i,m),u){this.debug("  in class"),"!"===m&&g===_+1&&(m="^"),i+=m;continue}p.debug("call clearStateChar %j",n),f(),n=m,r.noext&&f();continue;case"(":if(u){i+="(";continue}if(!n){i+="\\(";continue}s.push({type:n,start:g-1,reStart:i.length,open:pn[n].open,close:pn[n].close}),i+="!"===n?"(?:(?!(?:":"(?:",this.debug("plType %j %j",n,i),n=!1;continue;case")":if(u||!s.length){i+="\\)";continue}f(),a=!0;var h=s.pop();i+=h.close,"!"===h.type&&c.push(h),h.reEnd=i.length;continue;case"|":if(u||!s.length||o){i+="\\|",o=!1;continue}f(),i+="|";continue;case"[":if(f(),u){i+="\\"+m;continue}u=!0,_=g,l=i.length,i+=m;continue;case"]":if(g===_+1||!u){i+="\\"+m,o=!1;continue}if(u){var v=e.substring(_+1,g);try{RegExp("["+v+"]")}catch(e){var b=this.parse(v,Tn);i=i.substr(0,l)+"\\["+b[0]+"\\]",a=a||b[1],u=!1;continue}}a=!0,u=!1,i+=m;continue;default:f(),o?o=!1:!hn[m]||"^"===m&&u||(i+="\\"),i+=m}u&&(v=e.substr(_+1),b=this.parse(v,Tn),i=i.substr(0,l)+"\\["+b[0],a=a||b[1]);for(h=s.pop();h;h=s.pop()){var x=i.slice(h.reStart+h.open.length);this.debug("setting tail",i,h),x=x.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,r){return r||(r="\\"),t+t+r+"|"})),this.debug("tail=%j\n   %s",x,x,h,i);var D="*"===h.type?mn:"?"===h.type?fn:"\\"+h.type;a=!0,i=i.slice(0,h.reStart)+D+"\\("+x}f(),o&&(i+="\\\\");var S=!1;switch(i.charAt(0)){case".":case"[":case"(":S=!0}for(var T=c.length-1;T>-1;T--){var E=c[T],C=i.slice(0,E.reStart),k=i.slice(E.reStart,E.reEnd-8),N=i.slice(E.reEnd-8,E.reEnd),A=i.slice(E.reEnd);N+=A;var F=C.split("(").length-1,P=A;for(g=0;g<F;g++)P=P.replace(/\)[+*?]?/,"");var w="";""===(A=P)&&t!==Tn&&(w="$"),i=C+k+A+w+N}""!==i&&a&&(i="(?=.)"+i);S&&(i=d+i);if(t===Tn)return[i,a];if(!a)return function(e){return e.replace(/\\(.)/g,"$1")}(e);var I=r.nocase?"i":"";try{var O=new RegExp("^"+i+"$",I)}catch(e){return new RegExp("$.")}return O._glob=e,O._src=i,O};var Tn={};xn.makeRe=function(e,t){return new Dn(e,t||{}).makeRe()},Dn.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,r=t.noglobstar?mn:t.dot?gn:yn,n=t.nocase?"i":"",i=e.map((function(e){return e.map((function(e){return e===dn?r:"string"==typeof e?function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(e):e._src})).join("\\/")})).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch(e){this.regexp=!1}return this.regexp},xn.match=function(e,t,r){var n=new Dn(t,r=r||{});return e=e.filter((function(e){return n.match(e)})),n.options.nonull&&!e.length&&e.push(t),e},Dn.prototype.match=function(e,t){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;var r=this.options;"/"!==_n.sep&&(e=e.split(_n.sep).join("/"));e=e.split(vn),this.debug(this.pattern,"split",e);var n,i,a=this.set;for(this.debug(this.pattern,"set",a),i=e.length-1;i>=0&&!(n=e[i]);i--);for(i=0;i<a.length;i++){var o=a[i],s=e;if(r.matchBase&&1===o.length&&(s=[n]),this.matchOne(s,o,t))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate},Dn.prototype.matchOne=function(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var i=0,a=0,o=e.length,s=t.length;i<o&&a<s;i++,a++){this.debug("matchOne loop");var c,u=t[a],l=e[i];if(this.debug(t,u,l),!1===u)return!1;if(u===dn){this.debug("GLOBSTAR",[t,u,l]);var _=i,d=a+1;if(d===s){for(this.debug("** at the end");i<o;i++)if("."===e[i]||".."===e[i]||!n.dot&&"."===e[i].charAt(0))return!1;return!0}for(;_<o;){var p=e[_];if(this.debug("\nglobstar while",e,_,t,d,p),this.matchOne(e.slice(_),t.slice(d),r))return this.debug("globstar found match!",_,o,p),!0;if("."===p||".."===p||!n.dot&&"."===p.charAt(0)){this.debug("dot detected!",e,_,t,d);break}this.debug("globstar swallow a segment, and continue"),_++}return!(!r||(this.debug("\n>>> no match, partial?",e,_,t,d),_!==o))}if("string"==typeof u?(c=n.nocase?l.toLowerCase()===u.toLowerCase():l===u,this.debug("string match",u,l,c)):(c=l.match(u),this.debug("pattern match",u,l,c)),!c)return!1}if(i===o&&a===s)return!0;if(i===o)return r;if(a===s)return i===o-1&&""===e[i];throw new Error("wtf?")};var En=Object.freeze({__proto__:null,default:{}}),Cn=a((function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}})),kn=o(En),Nn=a((function(e){try{var t=kn;if("function"!=typeof t.inherits)throw"";e.exports=t.inherits}catch(t){e.exports=Cn}})),An=Object.freeze({__proto__:null,EventEmitter:function e(){m(this,e)}});function Fn(){}Fn.ok=function(){},Fn.strictEqual=function(){};var Pn=Object.freeze({__proto__:null,default:Fn});function wn(e){return"/"===e.charAt(0)}function In(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),r=t[1]||"",n=Boolean(r&&":"!==r.charAt(1));return Boolean(t[2]||n)}var On="win32"===Oe.platform?In:wn,Mn=wn,Ln=In;On.posix=Mn,On.win32=Ln;var Rn=Yn,Bn=Hn,jn=function(e,t,r){r||(r={});if(r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.silent=!!r.silent,e.pattern=t,e.strict=!1!==r.strict,e.realpath=!!r.realpath,e.realpathCache=r.realpathCache||Object.create(null),e.follow=!!r.follow,e.dot=!!r.dot,e.mark=!!r.mark,e.nodir=!!r.nodir,e.nodir&&(e.mark=!0);e.sync=!!r.sync,e.nounique=!!r.nounique,e.nonull=!!r.nonull,e.nosort=!!r.nosort,e.nocase=!!r.nocase,e.stat=!!r.stat,e.noprocess=!!r.noprocess,e.absolute=!!r.absolute,e.maxLength=r.maxLength||1/0,e.cache=r.cache||Object.create(null),e.statCache=r.statCache||Object.create(null),e.symlinks=r.symlinks||Object.create(null),function(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]);e.ignore.length&&(e.ignore=e.ignore.map(Xn))}(e,r),e.changedCwd=!1;var n=Oe.cwd();Wn(r,"cwd")?(e.cwd=yr.resolve(r.cwd),e.changedCwd=e.cwd!==n):e.cwd=n;e.root=r.root||yr.resolve(e.cwd,"/"),e.root=yr.resolve(e.root),"win32"===Oe.platform&&(e.root=e.root.replace(/\\/g,"/"));e.cwdAbs=On(e.cwd)?e.cwd:Qn(e,e.cwd),"win32"===Oe.platform&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/"));e.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,e.minimatch=new Gn(t,r),e.options=e.minimatch.options},Kn=Wn,Jn=Qn,zn=function(e){for(var t=e.nounique,r=t?[]:Object.create(null),n=0,i=e.matches.length;n<i;n++){var a=e.matches[n];if(a&&0!==Object.keys(a).length){var o=Object.keys(a);t?r.push.apply(r,o):o.forEach((function(e){r[e]=!0}))}else if(e.nonull){var s=e.minimatch.globSet[n];t?r.push(s):r[s]=!0}}t||(r=Object.keys(r));e.nosort||(r=r.sort(e.nocase?Hn:Yn));if(e.mark){for(n=0;n<r.length;n++)r[n]=e._mark(r[n]);e.nodir&&(r=r.filter((function(t){var r=!/\/$/.test(t),n=e.cache[t]||e.cache[Qn(e,t)];return r&&n&&(r="DIR"!==n&&!Array.isArray(n)),r})))}e.ignore.length&&(r=r.filter((function(t){return!$n(e,t)})));e.found=r},Un=function(e,t){var r=Qn(e,t),n=e.cache[r],i=t;if(n){var a="DIR"===n||Array.isArray(n),o="/"===t.slice(-1);if(a&&!o?i+="/":!a&&o&&(i=i.slice(0,-1)),i!==t){var s=Qn(e,i);e.statCache[s]=e.statCache[r],e.cache[s]=e.cache[r]}}return i},Vn=$n,qn=function(e,t){return!!e.ignore.length&&e.ignore.some((function(e){return!(!e.gmatcher||!e.gmatcher.match(t))}))};function Wn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Gn=ln.Minimatch;function Hn(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}function Yn(e,t){return e.localeCompare(t)}function Xn(e){var t=null;if("/**"===e.slice(-3)){var r=e.replace(/(\/\*\*)+$/,"");t=new Gn(r,{dot:!0})}return{matcher:new Gn(e,{dot:!0}),gmatcher:t}}function Qn(e,t){var r=t;return r="/"===t.charAt(0)?yr.join(e.root,t):On(t)||""===t?t:e.changedCwd?yr.resolve(e.cwd,t):yr.resolve(t),"win32"===Oe.platform&&(r=r.replace(/\\/g,"/")),r}function $n(e,t){return!!e.ignore.length&&e.ignore.some((function(e){return e.matcher.match(t)||!(!e.gmatcher||!e.gmatcher.match(t))}))}var Zn={alphasort:Rn,alphasorti:Bn,setopts:jn,ownProp:Kn,makeAbs:Jn,finish:zn,mark:Un,isIgnored:Vn,childrenIgnored:qn},ei=o(Pn),ti=oi;oi.GlobSync=si;var ri=Zn.setopts,ni=Zn.ownProp,ii=Zn.childrenIgnored,ai=Zn.isIgnored;function oi(e,t){if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new si(e,t).found}function si(e,t){if(!e)throw new Error("must provide pattern");if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof si))return new si(e,t);if(ri(this,e,t),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;n<r;n++)this._process(this.minimatch.set[n],n,!1);this._finish()}si.prototype._finish=function(){if(ei(this instanceof si),this.realpath){var e=this;this.matches.forEach((function(t,r){var n=e.matches[r]=Object.create(null);for(var i in t)try{i=e._makeAbs(i),n[Rr.realpathSync(i,e.realpathCache)]=!0}catch(t){if("stat"!==t.syscall)throw t;n[e._makeAbs(i)]=!0}}))}Zn.finish(this)},si.prototype._process=function(e,t,r){ei(this instanceof si);for(var n,i=0;"string"==typeof e[i];)i++;switch(i){case e.length:return void this._processSimple(e.join("/"),t);case 0:n=null;break;default:n=e.slice(0,i).join("/")}var a,o=e.slice(i);null===n?a=".":On(n)||On(e.join("/"))?(n&&On(n)||(n="/"+n),a=n):a=n;var s=this._makeAbs(a);ii(this,a)||(o[0]===ln.GLOBSTAR?this._processGlobStar(n,a,s,o,t,r):this._processReaddir(n,a,s,o,t,r))},si.prototype._processReaddir=function(e,t,r,n,i,a){var o=this._readdir(r,a);if(o){for(var s=n[0],c=!!this.minimatch.negate,u=s._glob,l=this.dot||"."===u.charAt(0),_=[],d=0;d<o.length;d++){if("."!==(m=o[d]).charAt(0)||l)(c&&!e?!m.match(s):m.match(s))&&_.push(m)}var p=_.length;if(0!==p)if(1!==n.length||this.mark||this.stat){n.shift();for(d=0;d<p;d++){var f;m=_[d];f=e?[e,m]:[m],this._process(f.concat(n),i,a)}}else{this.matches[i]||(this.matches[i]=Object.create(null));for(var d=0;d<p;d++){var m=_[d];e&&(m="/"!==e.slice(-1)?e+"/"+m:e+m),"/"!==m.charAt(0)||this.nomount||(m=yr.join(this.root,m)),this._emitMatch(i,m)}}}},si.prototype._emitMatch=function(e,t){if(!ai(this,t)){var r=this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[e][t]=!0,this.stat&&this._stat(t)}}},si.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,r;try{r=hr.lstatSync(e)}catch(e){if("ENOENT"===e.code)return null}var n=r&&r.isSymbolicLink();return this.symlinks[e]=n,n||!r||r.isDirectory()?t=this._readdir(e,!1):this.cache[e]="FILE",t},si.prototype._readdir=function(e,t){if(t&&!ni(this.symlinks,e))return this._readdirInGlobStar(e);if(ni(this.cache,e)){var r=this.cache[e];if(!r||"FILE"===r)return null;if(Array.isArray(r))return r}try{return this._readdirEntries(e,hr.readdirSync(e))}catch(t){return this._readdirError(e,t),null}},si.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat)for(var r=0;r<t.length;r++){var n=t[r];n="/"===e?e+n:e+"/"+n,this.cache[n]=!0}return this.cache[e]=t,t},si.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);if(this.cache[r]="FILE",r===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);throw n.path=this.cwd,n.code=t.code,n}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:if(this.cache[this._makeAbs(e)]=!1,this.strict)throw t;this.silent||console.error("glob error",t)}},si.prototype._processGlobStar=function(e,t,r,n,i,a){var o=this._readdir(r,a);if(o){var s=n.slice(1),c=e?[e]:[],u=c.concat(s);this._process(u,i,!1);var l=o.length;if(!this.symlinks[r]||!a)for(var _=0;_<l;_++){if("."!==o[_].charAt(0)||this.dot){var d=c.concat(o[_],s);this._process(d,i,!0);var p=c.concat(o[_],n);this._process(p,i,!0)}}}},si.prototype._processSimple=function(e,t){var r=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),r){if(e&&On(e)&&!this.nomount){var n=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=yr.join(this.root,e):(e=yr.resolve(this.root,e),n&&(e+="/"))}"win32"===Oe.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e)}},si.prototype._stat=function(e){var t=this._makeAbs(e),r="/"===e.slice(-1);if(e.length>this.maxLength)return!1;if(!this.stat&&ni(this.cache,t)){var n=this.cache[t];if(Array.isArray(n)&&(n="DIR"),!r||"DIR"===n)return n;if(r&&"FILE"===n)return!1}var i=this.statCache[t];if(!i){var a;try{a=hr.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(a&&a.isSymbolicLink())try{i=hr.statSync(t)}catch(e){i=a}else i=a}this.statCache[t]=i;n=!0;return i&&(n=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||n,(!r||"FILE"!==n)&&n},si.prototype._mark=function(e){return Zn.mark(this,e)},si.prototype._makeAbs=function(e){return Zn.makeAbs(this,e)};var ci=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");Object.keys(t).forEach((function(e){n[e]=t[e]}));return n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),i=e[e.length-1];return"function"==typeof n&&n!==i&&Object.keys(i).forEach((function(e){n[e]=i[e]})),n}};var ui=ci(_i),li=ci(di);function _i(e){var t=function t(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function di(e){var t=function t(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}_i.proto=_i((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return _i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return di(this)},configurable:!0})})),ui.strict=li;var pi=Object.create(null),fi=ci((function(e,t){return pi[e]?(pi[e].push(t),null):(pi[e]=[t],function(e){return ui((function t(){var r=pi[e],n=r.length,i=mi(arguments);try{for(var a=0;a<n;a++)r[a].apply(null,i)}finally{r.length>n?(r.splice(0,n),xe((function(){t.apply(null,i)}))):delete pi[e]}}))}(e))}));function mi(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n]=e[n];return r}var gi=Di,yi=An.EventEmitter,hi=Zn.setopts,vi=Zn.ownProp,bi=Zn.childrenIgnored,xi=Zn.isIgnored;function Di(e,t,r){if("function"==typeof t&&(r=t,t={}),t||(t={}),t.sync){if(r)throw new TypeError("callback provided to sync glob");return ti(e,t)}return new Ti(e,t,r)}Di.sync=ti;var Si=Di.GlobSync=ti.GlobSync;function Ti(e,t,r){if("function"==typeof t&&(r=t,t=null),t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new Si(e,t)}if(!(this instanceof Ti))return new Ti(e,t,r);hi(this,e,t),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),"function"==typeof r&&(r=ui(r),this.on("error",r),this.on("end",(function(e){r(null,e)})));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===n)return s();for(var a=!0,o=0;o<n;o++)this._process(this.minimatch.set[o],o,!1,s);function s(){--i._processing,i._processing<=0&&(a?xe((function(){i._finish()})):i._finish())}a=!1}Di.glob=Di,Di.hasMagic=function(e,t){var r=function(e,t){if(null===t||"object"!==f(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}({},t);r.noprocess=!0;var n=new Ti(e,r).minimatch.set;if(!e)return!1;if(n.length>1)return!0;for(var i=0;i<n[0].length;i++)if("string"!=typeof n[0][i])return!0;return!1},Di.Glob=Ti,Nn(Ti,yi),Ti.prototype._finish=function(){if(ei(this instanceof Ti),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();Zn.finish(this),this.emit("end",this.found)}},Ti.prototype._realpath=function(){if(!this._didRealpath){this._didRealpath=!0;var e=this.matches.length;if(0===e)return this._finish();for(var t=this,r=0;r<this.matches.length;r++)this._realpathSet(r,n)}function n(){0==--e&&t._finish()}},Ti.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var n=Object.keys(r),i=this,a=n.length;if(0===a)return t();var o=this.matches[e]=Object.create(null);n.forEach((function(r,n){r=i._makeAbs(r),Rr.realpath(r,i.realpathCache,(function(n,s){n?"stat"===n.syscall?o[r]=!0:i.emit("error",n):o[s]=!0,0==--a&&(i.matches[e]=o,t())}))}))},Ti.prototype._mark=function(e){return Zn.mark(this,e)},Ti.prototype._makeAbs=function(e){return Zn.makeAbs(this,e)},Ti.prototype.abort=function(){this.aborted=!0,this.emit("abort")},Ti.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},Ti.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(t=0;t<n.length;t++){var i=n[t];this._processing--,this._process(i[0],i[1],i[2],i[3])}}}},Ti.prototype._process=function(e,t,r,n){if(ei(this instanceof Ti),ei("function"==typeof n),!this.aborted)if(this._processing++,this.paused)this._processQueue.push([e,t,r,n]);else{for(var i,a=0;"string"==typeof e[a];)a++;switch(a){case e.length:return void this._processSimple(e.join("/"),t,n);case 0:i=null;break;default:i=e.slice(0,a).join("/")}var o,s=e.slice(a);null===i?o=".":On(i)||On(e.join("/"))?(i&&On(i)||(i="/"+i),o=i):o=i;var c=this._makeAbs(o);if(bi(this,o))return n();s[0]===ln.GLOBSTAR?this._processGlobStar(i,o,c,s,t,r,n):this._processReaddir(i,o,c,s,t,r,n)}},Ti.prototype._processReaddir=function(e,t,r,n,i,a,o){var s=this;this._readdir(r,a,(function(c,u){return s._processReaddir2(e,t,r,n,i,a,u,o)}))},Ti.prototype._processReaddir2=function(e,t,r,n,i,a,o,s){if(!o)return s();for(var c=n[0],u=!!this.minimatch.negate,l=c._glob,_=this.dot||"."===l.charAt(0),d=[],p=0;p<o.length;p++){if("."!==(m=o[p]).charAt(0)||_)(u&&!e?!m.match(c):m.match(c))&&d.push(m)}var f=d.length;if(0===f)return s();if(1===n.length&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(p=0;p<f;p++){var m=d[p];e&&(m="/"!==e?e+"/"+m:e+m),"/"!==m.charAt(0)||this.nomount||(m=yr.join(this.root,m)),this._emitMatch(i,m)}return s()}n.shift();for(p=0;p<f;p++){m=d[p];e&&(m="/"!==e?e+"/"+m:e+m),this._process([m].concat(n),i,a,s)}s()},Ti.prototype._emitMatch=function(e,t){if(!this.aborted&&!xi(this,t))if(this.paused)this._emitQueue.push([e,t]);else{var r=On(t)?t:this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[e][t]=!0;var i=this.statCache[r];i&&this.emit("stat",t,i),this.emit("match",t)}}},Ti.prototype._readdirInGlobStar=function(e,t){if(!this.aborted){if(this.follow)return this._readdir(e,!1,t);var r=this,n=fi("lstat\0"+e,(function(n,i){if(n&&"ENOENT"===n.code)return t();var a=i&&i.isSymbolicLink();r.symlinks[e]=a,a||!i||i.isDirectory()?r._readdir(e,!1,t):(r.cache[e]="FILE",t())}));n&&hr.lstat(e,n)}},Ti.prototype._readdir=function(e,t,r){if(!this.aborted&&(r=fi("readdir\0"+e+"\0"+t,r))){if(t&&!vi(this.symlinks,e))return this._readdirInGlobStar(e,r);if(vi(this.cache,e)){var n=this.cache[e];if(!n||"FILE"===n)return r();if(Array.isArray(n))return r(null,n)}hr.readdir(e,function(e,t,r){return function(n,i){n?e._readdirError(t,n,r):e._readdirEntries(t,i,r)}}(this,e,r))}},Ti.prototype._readdirEntries=function(e,t,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var n=0;n<t.length;n++){var i=t[n];i="/"===e?e+i:e+"/"+i,this.cache[i]=!0}return this.cache[e]=t,r(null,t)}},Ti.prototype._readdirError=function(e,t,r){if(!this.aborted){switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);if(this.cache[n]="FILE",n===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd,i.code=t.code,this.emit("error",i),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:this.cache[this._makeAbs(e)]=!1,this.strict&&(this.emit("error",t),this.abort()),this.silent||console.error("glob error",t)}return r()}},Ti.prototype._processGlobStar=function(e,t,r,n,i,a,o){var s=this;this._readdir(r,a,(function(c,u){s._processGlobStar2(e,t,r,n,i,a,u,o)}))},Ti.prototype._processGlobStar2=function(e,t,r,n,i,a,o,s){if(!o)return s();var c=n.slice(1),u=e?[e]:[],l=u.concat(c);this._process(l,i,!1,s);var _=this.symlinks[r],d=o.length;if(_&&a)return s();for(var p=0;p<d;p++){if("."!==o[p].charAt(0)||this.dot){var f=u.concat(o[p],c);this._process(f,i,!0,s);var m=u.concat(o[p],n);this._process(m,i,!0,s)}}s()},Ti.prototype._processSimple=function(e,t,r){var n=this;this._stat(e,(function(i,a){n._processSimple2(e,t,i,a,r)}))},Ti.prototype._processSimple2=function(e,t,r,n,i){if(this.matches[t]||(this.matches[t]=Object.create(null)),!n)return i();if(e&&On(e)&&!this.nomount){var a=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=yr.join(this.root,e):(e=yr.resolve(this.root,e),a&&(e+="/"))}"win32"===Oe.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e),i()},Ti.prototype._stat=function(e,t){var r=this._makeAbs(e),n="/"===e.slice(-1);if(e.length>this.maxLength)return t();if(!this.stat&&vi(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!n||"DIR"===i)return t(null,i);if(n&&"FILE"===i)return t()}var a=this.statCache[r];if(void 0!==a){if(!1===a)return t(null,a);var o=a.isDirectory()?"DIR":"FILE";return n&&"FILE"===o?t():t(null,o,a)}var s=this,c=fi("stat\0"+r,(function(n,i){if(i&&i.isSymbolicLink())return hr.stat(r,(function(n,a){n?s._stat2(e,r,null,i,t):s._stat2(e,r,n,a,t)}));s._stat2(e,r,n,i,t)}));c&&hr.lstat(r,c)},Ti.prototype._stat2=function(e,t,r,n,i){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[t]=!1,i();var a="/"===e.slice(-1);if(this.statCache[t]=n,"/"===t.slice(-1)&&n&&!n.isDirectory())return i(null,!1,n);var o=!0;return n&&(o=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||o,a&&"FILE"===o?i():i(null,o,n)};
/*!
   * is-extglob <https://github.com/jonschlinkert/is-extglob>
   *
   * Copyright (c) 2014-2016, Jon Schlinkert.
   * Licensed under the MIT License.
   */
var Ei={"{":"}","(":")","[":"]"},Ci=/\\(.)|(^!|\*|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/,ki=/\\(.)|(^!|[*?{}()[\]]|\(\?)/,Ni=function(e,t){if("string"!=typeof e||""===e)return!1;if(function(e){if("string"!=typeof e||""===e)return!1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(t[2])return!0;e=e.slice(t.index+t[0].length)}return!1}(e))return!0;var r,n=Ci;for(t&&!1===t.strict&&(n=ki);r=n.exec(e);){if(r[2])return!0;var i=r.index+r[0].length,a=r[1],o=a?Ei[a]:null;if(a&&o){var s=e.indexOf(o,i);-1!==s&&(i=s+1)}e=e.slice(i)}return!1},Ai=1/0,Fi="[object Symbol]",Pi=/&(?:amp|lt|gt|quot|#39|#96);/g,wi=RegExp(Pi.source),Ii="object"==f(n)&&n&&n.Object===Object&&n,Oi="object"==("undefined"==typeof self?"undefined":f(self))&&self&&self.Object===Object&&self,Mi=Ii||Oi||Function("return this")();
/*!
   * is-glob <https://github.com/jonschlinkert/is-glob>
   *
   * Copyright (c) 2014-2017, Jon Schlinkert.
   * Released under the MIT License.
   */var Li,Ri=(Li={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},function(e){return null==Li?void 0:Li[e]}),Bi=Object.prototype.toString,ji=Mi.Symbol,Ki=ji?ji.prototype:void 0,Ji=Ki?Ki.toString:void 0;function zi(e){if("string"==typeof e)return e;if(function(e){return"symbol"==f(e)||function(e){return!!e&&"object"==f(e)}(e)&&Bi.call(e)==Fi}(e))return Ji?Ji.call(e):"";var t=e+"";return"0"==t&&1/e==-Ai?"-0":t}var Ui=function(e){var t;return(e=null==(t=e)?"":zi(t))&&wi.test(e)?e.replace(Pi,Ri):e},Vi=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0})}));i(Vi);var qi=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.ArrayExpression="ArrayExpression",e.ArrayPattern="ArrayPattern",e.ArrowFunctionExpression="ArrowFunctionExpression",e.AssignmentExpression="AssignmentExpression",e.AssignmentPattern="AssignmentPattern",e.AwaitExpression="AwaitExpression",e.BigIntLiteral="BigIntLiteral",e.BinaryExpression="BinaryExpression",e.BlockStatement="BlockStatement",e.BreakStatement="BreakStatement",e.CallExpression="CallExpression",e.CatchClause="CatchClause",e.ClassBody="ClassBody",e.ClassDeclaration="ClassDeclaration",e.ClassExpression="ClassExpression",e.ClassProperty="ClassProperty",e.ConditionalExpression="ConditionalExpression",e.ContinueStatement="ContinueStatement",e.DebuggerStatement="DebuggerStatement",e.Decorator="Decorator",e.DoWhileStatement="DoWhileStatement",e.EmptyStatement="EmptyStatement",e.ExportAllDeclaration="ExportAllDeclaration",e.ExportDefaultDeclaration="ExportDefaultDeclaration",e.ExportNamedDeclaration="ExportNamedDeclaration",e.ExportSpecifier="ExportSpecifier",e.ExpressionStatement="ExpressionStatement",e.ForInStatement="ForInStatement",e.ForOfStatement="ForOfStatement",e.ForStatement="ForStatement",e.FunctionDeclaration="FunctionDeclaration",e.FunctionExpression="FunctionExpression",e.Identifier="Identifier",e.IfStatement="IfStatement",e.Import="Import",e.ImportDeclaration="ImportDeclaration",e.ImportDefaultSpecifier="ImportDefaultSpecifier",e.ImportNamespaceSpecifier="ImportNamespaceSpecifier",e.ImportSpecifier="ImportSpecifier",e.JSXAttribute="JSXAttribute",e.JSXClosingElement="JSXClosingElement",e.JSXClosingFragment="JSXClosingFragment",e.JSXElement="JSXElement",e.JSXEmptyExpression="JSXEmptyExpression",e.JSXExpressionContainer="JSXExpressionContainer",e.JSXFragment="JSXFragment",e.JSXIdentifier="JSXIdentifier",e.JSXMemberExpression="JSXMemberExpression",e.JSXOpeningElement="JSXOpeningElement",e.JSXOpeningFragment="JSXOpeningFragment",e.JSXSpreadAttribute="JSXSpreadAttribute",e.JSXSpreadChild="JSXSpreadChild",e.JSXText="JSXText",e.LabeledStatement="LabeledStatement",e.Literal="Literal",e.LogicalExpression="LogicalExpression",e.MemberExpression="MemberExpression",e.MetaProperty="MetaProperty",e.MethodDefinition="MethodDefinition",e.NewExpression="NewExpression",e.ObjectExpression="ObjectExpression",e.ObjectPattern="ObjectPattern",e.OptionalCallExpression="OptionalCallExpression",e.OptionalMemberExpression="OptionalMemberExpression",e.Program="Program",e.Property="Property",e.RestElement="RestElement",e.ReturnStatement="ReturnStatement",e.SequenceExpression="SequenceExpression",e.SpreadElement="SpreadElement",e.Super="Super",e.SwitchCase="SwitchCase",e.SwitchStatement="SwitchStatement",e.TaggedTemplateExpression="TaggedTemplateExpression",e.TemplateElement="TemplateElement",e.TemplateLiteral="TemplateLiteral",e.ThisExpression="ThisExpression",e.ThrowStatement="ThrowStatement",e.TryStatement="TryStatement",e.UnaryExpression="UnaryExpression",e.UpdateExpression="UpdateExpression",e.VariableDeclaration="VariableDeclaration",e.VariableDeclarator="VariableDeclarator",e.WhileStatement="WhileStatement",e.WithStatement="WithStatement",e.YieldExpression="YieldExpression",e.TSAbstractClassProperty="TSAbstractClassProperty",e.TSAbstractKeyword="TSAbstractKeyword",e.TSAbstractMethodDefinition="TSAbstractMethodDefinition",e.TSAnyKeyword="TSAnyKeyword",e.TSArrayType="TSArrayType",e.TSAsExpression="TSAsExpression",e.TSAsyncKeyword="TSAsyncKeyword",e.TSBooleanKeyword="TSBooleanKeyword",e.TSBigIntKeyword="TSBigIntKeyword",e.TSConditionalType="TSConditionalType",e.TSConstructorType="TSConstructorType",e.TSCallSignatureDeclaration="TSCallSignatureDeclaration",e.TSClassImplements="TSClassImplements",e.TSConstructSignatureDeclaration="TSConstructSignatureDeclaration",e.TSDeclareKeyword="TSDeclareKeyword",e.TSDeclareFunction="TSDeclareFunction",e.TSEmptyBodyFunctionExpression="TSEmptyBodyFunctionExpression",e.TSEnumDeclaration="TSEnumDeclaration",e.TSEnumMember="TSEnumMember",e.TSExportAssignment="TSExportAssignment",e.TSExportKeyword="TSExportKeyword",e.TSExternalModuleReference="TSExternalModuleReference",e.TSImportType="TSImportType",e.TSInferType="TSInferType",e.TSLiteralType="TSLiteralType",e.TSIndexedAccessType="TSIndexedAccessType",e.TSIndexSignature="TSIndexSignature",e.TSInterfaceBody="TSInterfaceBody",e.TSInterfaceDeclaration="TSInterfaceDeclaration",e.TSInterfaceHeritage="TSInterfaceHeritage",e.TSImportEqualsDeclaration="TSImportEqualsDeclaration",e.TSFunctionType="TSFunctionType",e.TSMethodSignature="TSMethodSignature",e.TSModuleBlock="TSModuleBlock",e.TSModuleDeclaration="TSModuleDeclaration",e.TSNamespaceExportDeclaration="TSNamespaceExportDeclaration",e.TSNonNullExpression="TSNonNullExpression",e.TSNeverKeyword="TSNeverKeyword",e.TSNullKeyword="TSNullKeyword",e.TSNumberKeyword="TSNumberKeyword",e.TSMappedType="TSMappedType",e.TSObjectKeyword="TSObjectKeyword",e.TSParameterProperty="TSParameterProperty",e.TSPrivateKeyword="TSPrivateKeyword",e.TSPropertySignature="TSPropertySignature",e.TSProtectedKeyword="TSProtectedKeyword",e.TSPublicKeyword="TSPublicKeyword",e.TSQualifiedName="TSQualifiedName",e.TSReadonlyKeyword="TSReadonlyKeyword",e.TSRestType="TSRestType",e.TSStaticKeyword="TSStaticKeyword",e.TSStringKeyword="TSStringKeyword",e.TSSymbolKeyword="TSSymbolKeyword",e.TSThisType="TSThisType",e.TSTypeAnnotation="TSTypeAnnotation",e.TSTypeAliasDeclaration="TSTypeAliasDeclaration",e.TSTypeAssertion="TSTypeAssertion",e.TSTypeLiteral="TSTypeLiteral",e.TSTypeOperator="TSTypeOperator",e.TSTypeParameter="TSTypeParameter",e.TSTypeParameterDeclaration="TSTypeParameterDeclaration",e.TSTypeParameterInstantiation="TSTypeParameterInstantiation",e.TSTypePredicate="TSTypePredicate",e.TSTypeReference="TSTypeReference",e.TSTypeQuery="TSTypeQuery",e.TSIntersectionType="TSIntersectionType",e.TSTupleType="TSTupleType",e.TSOptionalType="TSOptionalType",e.TSParenthesizedType="TSParenthesizedType",e.TSUnionType="TSUnionType",e.TSUndefinedKeyword="TSUndefinedKeyword",e.TSUnknownKeyword="TSUnknownKeyword",e.TSVoidKeyword="TSVoidKeyword"}(t.AST_NODE_TYPES||(t.AST_NODE_TYPES={})),function(e){e.Boolean="Boolean",e.Identifier="Identifier",e.JSXIdentifier="JSXIdentifier",e.JSXText="JSXText",e.Keyword="Keyword",e.Null="Null",e.Numeric="Numeric",e.Punctuator="Punctuator",e.RegularExpression="RegularExpression",e.String="String",e.Template="Template",e.Block="Block",e.Line="Line"}(t.AST_TOKEN_TYPES||(t.AST_TOKEN_TYPES={}))}));i(qi);qi.AST_NODE_TYPES,qi.AST_TOKEN_TYPES;var Wi=a((function(e,t){var r=n&&n.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(Vi);t.TSESTree=i,function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(qi)}));i(Wi);Wi.TSESTree;var Gi=a((function(e,t){var r,i=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},a=n&&n.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var o=i(Ui),s=a(Fr),c=s.SyntaxKind,u=[c.EqualsToken,c.PlusEqualsToken,c.MinusEqualsToken,c.AsteriskEqualsToken,c.AsteriskAsteriskEqualsToken,c.SlashEqualsToken,c.PercentEqualsToken,c.LessThanLessThanEqualsToken,c.GreaterThanGreaterThanEqualsToken,c.GreaterThanGreaterThanGreaterThanEqualsToken,c.AmpersandEqualsToken,c.BarEqualsToken,c.CaretEqualsToken],l=[c.BarBarToken,c.AmpersandAmpersandToken,c.QuestionQuestionToken],_=(h(r={},c.OpenBraceToken,"{"),h(r,c.CloseBraceToken,"}"),h(r,c.OpenParenToken,"("),h(r,c.CloseParenToken,")"),h(r,c.OpenBracketToken,"["),h(r,c.CloseBracketToken,"]"),h(r,c.DotToken,"."),h(r,c.DotDotDotToken,"..."),h(r,c.SemicolonToken,","),h(r,c.CommaToken,","),h(r,c.LessThanToken,"<"),h(r,c.GreaterThanToken,">"),h(r,c.LessThanEqualsToken,"<="),h(r,c.GreaterThanEqualsToken,">="),h(r,c.EqualsEqualsToken,"=="),h(r,c.ExclamationEqualsToken,"!="),h(r,c.EqualsEqualsEqualsToken,"==="),h(r,c.InstanceOfKeyword,"instanceof"),h(r,c.ExclamationEqualsEqualsToken,"!=="),h(r,c.EqualsGreaterThanToken,"=>"),h(r,c.PlusToken,"+"),h(r,c.MinusToken,"-"),h(r,c.AsteriskToken,"*"),h(r,c.AsteriskAsteriskToken,"**"),h(r,c.SlashToken,"/"),h(r,c.PercentToken,"%"),h(r,c.PlusPlusToken,"++"),h(r,c.MinusMinusToken,"--"),h(r,c.LessThanLessThanToken,"<<"),h(r,c.LessThanSlashToken,"</"),h(r,c.GreaterThanGreaterThanToken,">>"),h(r,c.GreaterThanGreaterThanGreaterThanToken,">>>"),h(r,c.AmpersandToken,"&"),h(r,c.BarToken,"|"),h(r,c.CaretToken,"^"),h(r,c.ExclamationToken,"!"),h(r,c.TildeToken,"~"),h(r,c.AmpersandAmpersandToken,"&&"),h(r,c.BarBarToken,"||"),h(r,c.QuestionToken,"?"),h(r,c.ColonToken,":"),h(r,c.EqualsToken,"="),h(r,c.PlusEqualsToken,"+="),h(r,c.MinusEqualsToken,"-="),h(r,c.AsteriskEqualsToken,"*="),h(r,c.AsteriskAsteriskEqualsToken,"**="),h(r,c.SlashEqualsToken,"/="),h(r,c.PercentEqualsToken,"%="),h(r,c.LessThanLessThanEqualsToken,"<<="),h(r,c.GreaterThanGreaterThanEqualsToken,">>="),h(r,c.GreaterThanGreaterThanGreaterThanEqualsToken,">>>="),h(r,c.AmpersandEqualsToken,"&="),h(r,c.BarEqualsToken,"|="),h(r,c.CaretEqualsToken,"^="),h(r,c.AtToken,"@"),h(r,c.InKeyword,"in"),h(r,c.UniqueKeyword,"unique"),h(r,c.KeyOfKeyword,"keyof"),h(r,c.NewKeyword,"new"),h(r,c.ImportKeyword,"import"),h(r,c.ReadonlyKeyword,"readonly"),h(r,c.QuestionQuestionToken,"??"),h(r,c.QuestionDotToken,"?."),r);function d(e){return-1!==u.indexOf(e.kind)}function p(e){return-1!==l.indexOf(e.kind)}function f(e){return e.kind===c.SingleLineCommentTrivia||e.kind===c.MultiLineCommentTrivia}function m(e){return e.kind===c.JSDocComment}function g(e,t){var r=t.getLineAndCharacterOfPosition(e);return{line:r.line+1,column:r.character}}function y(e,t,r){return{start:g(e,r),end:g(t,r)}}function v(e){return e.kind>=c.FirstToken&&e.kind<=c.LastToken}function b(e){return e.kind>=c.JsxElement&&e.kind<=c.JsxAttribute}function x(e,t){for(;e;){if(t(e))return e;e=e.parent}}function D(e){return!!x(e,b)}function S(e){if(e.originalKeywordKind)switch(e.originalKeywordKind){case c.NullKeyword:return Wi.AST_TOKEN_TYPES.Null;case c.GetKeyword:case c.SetKeyword:case c.TypeKeyword:case c.ModuleKeyword:case c.AsyncKeyword:case c.IsKeyword:return Wi.AST_TOKEN_TYPES.Identifier;default:return Wi.AST_TOKEN_TYPES.Keyword}if(e.kind>=c.FirstKeyword&&e.kind<=c.LastFutureReservedWord)return e.kind===c.FalseKeyword||e.kind===c.TrueKeyword?Wi.AST_TOKEN_TYPES.Boolean:Wi.AST_TOKEN_TYPES.Keyword;if(e.kind>=c.FirstPunctuation&&e.kind<=c.LastBinaryOperator)return Wi.AST_TOKEN_TYPES.Punctuator;if(e.kind>=c.NoSubstitutionTemplateLiteral&&e.kind<=c.TemplateTail)return Wi.AST_TOKEN_TYPES.Template;switch(e.kind){case c.NumericLiteral:return Wi.AST_TOKEN_TYPES.Numeric;case c.JsxText:return Wi.AST_TOKEN_TYPES.JSXText;case c.StringLiteral:return!e.parent||e.parent.kind!==c.JsxAttribute&&e.parent.kind!==c.JsxElement?Wi.AST_TOKEN_TYPES.String:Wi.AST_TOKEN_TYPES.JSXText;case c.RegularExpressionLiteral:return Wi.AST_TOKEN_TYPES.RegularExpression;case c.Identifier:case c.ConstructorKeyword:case c.GetKeyword:case c.SetKeyword:}if(e.parent&&e.kind===c.Identifier){if(b(e.parent))return Wi.AST_TOKEN_TYPES.JSXIdentifier;if(e.parent.kind===c.PropertyAccessExpression&&D(e))return Wi.AST_TOKEN_TYPES.JSXIdentifier}return Wi.AST_TOKEN_TYPES.Identifier}function T(e,t){var r=e.kind===c.JsxText?e.getFullStart():e.getStart(t),n=e.getEnd(),i=t.text.slice(r,n),a={type:S(e),value:i,range:[r,n],loc:y(r,n,t)};return"RegularExpression"===a.type&&(a.regex={pattern:i.slice(1,i.lastIndexOf("/")),flags:i.slice(i.lastIndexOf("/")+1)}),a}function E(e,t){return e.kind===c.EndOfFileToken?!!e.jsDoc:0!==e.getWidth(t)}function C(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}}t.isAssignmentOperator=d,t.isLogicalOperator=p,t.getTextForTokenKind=function(e){return _[e]},t.isESTreeClassMember=function(e){return e.kind!==c.SemicolonClassElement},t.hasModifier=function(e,t){return!!t.modifiers&&!!t.modifiers.length&&t.modifiers.some((function(t){return t.kind===e}))},t.getLastModifier=function(e){return!!e.modifiers&&!!e.modifiers.length&&e.modifiers[e.modifiers.length-1]||null},t.isComma=function(e){return e.kind===c.CommaToken},t.isComment=f,t.isJSDocComment=m,t.getBinaryExpressionType=function(e){return d(e)?Wi.AST_NODE_TYPES.AssignmentExpression:p(e)?Wi.AST_NODE_TYPES.LogicalExpression:Wi.AST_NODE_TYPES.BinaryExpression},t.getLineAndCharacterFor=g,t.getLocFor=y,t.canContainDirective=function(e){if(e.kind===s.SyntaxKind.Block)switch(e.parent.kind){case s.SyntaxKind.Constructor:case s.SyntaxKind.GetAccessor:case s.SyntaxKind.SetAccessor:case s.SyntaxKind.ArrowFunction:case s.SyntaxKind.FunctionExpression:case s.SyntaxKind.FunctionDeclaration:case s.SyntaxKind.MethodDeclaration:return!0;default:return!1}return!0},t.getRange=function(e,t){return[e.getStart(t),e.getEnd()]},t.isToken=v,t.isJSXToken=b,t.getDeclarationKind=function(e){return e.flags&s.NodeFlags.Let?"let":e.flags&s.NodeFlags.Const?"const":"var"},t.getTSNodeAccessibility=function(e){var t=e.modifiers;if(!t)return null;for(var r=0;r<t.length;r++){switch(t[r].kind){case c.PublicKeyword:return"public";case c.ProtectedKeyword:return"protected";case c.PrivateKeyword:return"private"}}return null},t.findNextToken=function(e,t,r){return function t(n){if(s.isToken(n)&&n.pos===e.end)return n;return C(n.getChildren(r),(function(n){return(n.pos<=e.pos&&n.end>e.end||n.pos===e.end)&&E(n,r)?t(n):void 0}))}(t)},t.findFirstMatchingAncestor=x,t.hasJSXAncestor=D,t.unescapeStringLiteralText=function(e){return o.default(e)},t.isComputedProperty=function(e){return e.kind===c.ComputedPropertyName},t.isOptional=function(e){return!!e.questionToken&&e.questionToken.kind===c.QuestionToken},t.getTokenType=S,t.convertToken=T,t.convertTokens=function(e){var t=[];return function r(n){if(!f(n)&&!m(n))if(v(n)&&n.kind!==c.EndOfFileToken){var i=T(n,e);i&&t.push(i)}else n.getChildren(e).forEach(r)}(e),t},t.createError=function(e,t,r){var n=e.getLineAndCharacterOfPosition(t);return{index:t,lineNumber:n.line+1,column:n.character,message:r}},t.nodeHasTokens=E,t.firstDefined=C}));i(Gi);Gi.isAssignmentOperator,Gi.isLogicalOperator,Gi.getTextForTokenKind,Gi.isESTreeClassMember,Gi.hasModifier,Gi.getLastModifier,Gi.isComma,Gi.isComment,Gi.isJSDocComment,Gi.getBinaryExpressionType,Gi.getLineAndCharacterFor,Gi.getLocFor,Gi.canContainDirective,Gi.getRange,Gi.isToken,Gi.isJSXToken,Gi.getDeclarationKind,Gi.getTSNodeAccessibility,Gi.findNextToken,Gi.findFirstMatchingAncestor,Gi.hasJSXAncestor,Gi.unescapeStringLiteralText,Gi.isComputedProperty,Gi.isOptional,Gi.getTokenType,Gi.convertToken,Gi.convertTokens,Gi.createError,Gi.nodeHasTokens,Gi.firstDefined;var Hi=a((function(e,t){var r=n&&n.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(Fr),a=i.SyntaxKind;t.convertError=function(e){return Gi.createError(e.file,e.start,e.message||e.messageText)};var o=function(){function e(t,r){m(this,e),this.esTreeNodeToTSNodeMap=new WeakMap,this.tsNodeToESTreeNodeMap=new WeakMap,this.allowPattern=!1,this.inTypeMode=!1,this.ast=t,this.options=Object.assign({},r)}return y(e,[{key:"getASTMaps",value:function(){return{esTreeNodeToTSNodeMap:this.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:this.tsNodeToESTreeNodeMap}}},{key:"convertProgram",value:function(){return this.converter(this.ast)}},{key:"converter",value:function(e,t,r,n){if(!e)return null;var i=this.inTypeMode,a=this.allowPattern;void 0!==r&&(this.inTypeMode=r),void 0!==n&&(this.allowPattern=n);var o=this.convertNode(e,t||e.parent);return this.registerTSNodeInNodeMap(e,o),this.inTypeMode=i,this.allowPattern=a,o}},{key:"fixExports",value:function(e,t){if(e.modifiers&&e.modifiers[0].kind===a.ExportKeyword){this.registerTSNodeInNodeMap(e,t);var r=e.modifiers[0],n=e.modifiers[1],i=n&&n.kind===a.DefaultKeyword,o=i?Gi.findNextToken(n,this.ast,this.ast):Gi.findNextToken(r,this.ast,this.ast);return t.range[0]=o.getStart(this.ast),t.loc=Gi.getLocFor(t.range[0],t.range[1],this.ast),i?this.createNode(e,{type:Wi.AST_NODE_TYPES.ExportDefaultDeclaration,declaration:t,range:[r.getStart(this.ast),t.range[1]]}):this.createNode(e,{type:Wi.AST_NODE_TYPES.ExportNamedDeclaration,declaration:t,specifiers:[],source:null,range:[r.getStart(this.ast),t.range[1]]})}return t}},{key:"registerTSNodeInNodeMap",value:function(e,t){t&&this.options.shouldPreserveNodeMaps&&(this.tsNodeToESTreeNodeMap.has(e)||this.tsNodeToESTreeNodeMap.set(e,t))}},{key:"convertPattern",value:function(e,t){return this.converter(e,t,this.inTypeMode,!0)}},{key:"convertChild",value:function(e,t){return this.converter(e,t,this.inTypeMode,!1)}},{key:"convertType",value:function(e,t){return this.converter(e,t,!0,!1)}},{key:"createNode",value:function(e,t){var r=t;return r.range||(r.range=Gi.getRange(e,this.ast)),r.loc||(r.loc=Gi.getLocFor(r.range[0],r.range[1],this.ast)),r&&this.options.shouldPreserveNodeMaps&&this.esTreeNodeToTSNodeMap.set(r,e),r}},{key:"convertTypeAnnotation",value:function(e,t){var r=t.kind===a.FunctionType||t.kind===a.ConstructorType?2:1,n=e.getFullStart()-r,i=Gi.getLocFor(n,e.end,this.ast);return{type:Wi.AST_NODE_TYPES.TSTypeAnnotation,loc:i,range:[n,e.end],typeAnnotation:this.convertType(e)}}},{key:"convertBodyExpressions",value:function(e,t){var r=this,n=Gi.canContainDirective(t);return e.map((function(e){var t=r.convertChild(e);if(n){if(t&&t.expression&&i.isExpressionStatement(e)&&i.isStringLiteral(e.expression)){var a=t.expression.raw;return t.directive=a.slice(1,-1),t}n=!1}return t})).filter((function(e){return e}))}},{key:"convertTypeArgumentsToTypeParameters",value:function(e){var t=this,r=Gi.findNextToken(e,this.ast,this.ast);return{type:Wi.AST_NODE_TYPES.TSTypeParameterInstantiation,range:[e.pos-1,r.end],loc:Gi.getLocFor(e.pos-1,r.end,this.ast),params:e.map((function(e){return t.convertType(e)}))}}},{key:"convertTSTypeParametersToTypeParametersDeclaration",value:function(e){var t=this,r=Gi.findNextToken(e,this.ast,this.ast);return{type:Wi.AST_NODE_TYPES.TSTypeParameterDeclaration,range:[e.pos-1,r.end],loc:Gi.getLocFor(e.pos-1,r.end,this.ast),params:e.map((function(e){return t.convertType(e)}))}}},{key:"convertParameters",value:function(e){var t=this;return e&&e.length?e.map((function(e){var r=t.convertChild(e);return e.decorators&&e.decorators.length&&(r.decorators=e.decorators.map((function(e){return t.convertChild(e)}))),r})):[]}},{key:"deeplyCopy",value:function(e){var t=this,r="TS".concat(a[e.kind]);if(this.options.errorOnUnknownASTType&&!Wi.AST_NODE_TYPES[r])throw new Error('Unknown AST_NODE_TYPE: "'.concat(r,'"'));var n=this.createNode(e,{type:r});return Object.keys(e).filter((function(e){return!/^(?:_children|kind|parent|pos|end|flags|modifierFlagsCache|jsDoc)$/.test(e)})).forEach((function(r){"type"===r?n.typeAnnotation=e.type?t.convertTypeAnnotation(e.type,e):null:"typeArguments"===r?n.typeParameters=e.typeArguments?t.convertTypeArgumentsToTypeParameters(e.typeArguments):null:"typeParameters"===r?n.typeParameters=e.typeParameters?t.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters):null:"decorators"===r?e.decorators&&e.decorators.length&&(n.decorators=e.decorators.map((function(e){return t.convertChild(e)}))):Array.isArray(e[r])?n[r]=e[r].map((function(e){return t.convertChild(e)})):e[r]&&"object"===f(e[r])&&e[r].kind?n[r]=t.convertChild(e[r]):n[r]=e[r]})),n}},{key:"convertJSXTagName",value:function(e,t){var r;switch(e.kind){case a.PropertyAccessExpression:r=this.createNode(e,{type:Wi.AST_NODE_TYPES.JSXMemberExpression,object:this.convertJSXTagName(e.expression,t),property:this.convertJSXTagName(e.name,t)});break;case a.ThisKeyword:r=this.createNode(e,{type:Wi.AST_NODE_TYPES.JSXIdentifier,name:"this"});break;case a.Identifier:default:r=this.createNode(e,{type:Wi.AST_NODE_TYPES.JSXIdentifier,name:e.text})}return this.registerTSNodeInNodeMap(e,r),r}},{key:"applyModifiersToResult",value:function(e,t){var r=this;if(t&&t.length){for(var n={},i=0;i<t.length;i++){switch(t[i].kind){case a.ExportKeyword:case a.DefaultKeyword:n[i]=!0;break;case a.ConstKeyword:e.const=!0,n[i]=!0;break;case a.DeclareKeyword:e.declare=!0,n[i]=!0}}var o=t.filter((function(e,t){return!n[t]}));o&&o.length&&(e.modifiers=o.map((function(e){return r.convertChild(e)})))}}},{key:"fixParentLocation",value:function(e,t){t[0]<e.range[0]&&(e.range[0]=t[0],e.loc.start=Gi.getLineAndCharacterFor(e.range[0],this.ast)),t[1]>e.range[1]&&(e.range[1]=t[1],e.loc.end=Gi.getLineAndCharacterFor(e.range[1],this.ast))}},{key:"convertNode",value:function(e,t){var r=this;switch(e.kind){case a.SourceFile:return this.createNode(e,{type:Wi.AST_NODE_TYPES.Program,body:this.convertBodyExpressions(e.statements,e),sourceType:e.externalModuleIndicator?"module":"script",range:[e.getStart(this.ast),e.endOfFileToken.end]});case a.Block:return this.createNode(e,{type:Wi.AST_NODE_TYPES.BlockStatement,body:this.convertBodyExpressions(e.statements,e)});case a.Identifier:return this.createNode(e,{type:Wi.AST_NODE_TYPES.Identifier,name:e.text});case a.WithStatement:return this.createNode(e,{type:Wi.AST_NODE_TYPES.WithStatement,object:this.convertChild(e.expression),body:this.convertChild(e.statement)});case a.ReturnStatement:return this.createNode(e,{type:Wi.AST_NODE_TYPES.ReturnStatement,argument:this.convertChild(e.expression)});case a.LabeledStatement:return this.createNode(e,{type:Wi.AST_NODE_TYPES.LabeledStatement,label:this.convertChild(e.label),body:this.convertChild(e.statement)});case a.ContinueStatement:return this.createNode(e,{type:Wi.AST_NODE_TYPES.ContinueStatement,label:this.convertChild(e.label)});case a.BreakStatement:return this.createNode(e,{type:Wi.AST_NODE_TYPES.BreakStatement,label:this.convertChild(e.label)});case a.IfStatement:return this.createNode(e,{type:Wi.AST_NODE_TYPES.IfStatement,test:this.convertChild(e.expression),consequent:this.convertChild(e.thenStatement),alternate:this.convertChild(e.elseStatement)});case a.SwitchStatement:return this.createNode(e,{type:Wi.AST_NODE_TYPES.SwitchStatement,discriminant:this.convertChild(e.expression),cases:e.caseBlock.clauses.map((function(e){return r.convertChild(e)}))});case a.CaseClause:case a.DefaultClause:return this.createNode(e,{type:Wi.AST_NODE_TYPES.SwitchCase,test:e.kind===a.CaseClause?this.convertChild(e.expression):null,consequent:e.statements.map((function(e){return r.convertChild(e)}))});case a.ThrowStatement:return this.createNode(e,{type:Wi.AST_NODE_TYPES.ThrowStatement,argument:this.convertChild(e.expression)});case a.TryStatement:return this.createNode(e,{type:Wi.AST_NODE_TYPES.TryStatement,block:this.convertChild(e.tryBlock),handler:this.convertChild(e.catchClause),finalizer:this.convertChild(e.finallyBlock)});case a.CatchClause:return this.createNode(e,{type:Wi.AST_NODE_TYPES.CatchClause,param:e.variableDeclaration?this.convertChild(e.variableDeclaration.name):null,body:this.convertChild(e.block)});case a.WhileStatement:return this.createNode(e,{type:Wi.AST_NODE_TYPES.WhileStatement,test:this.convertChild(e.expression),body:this.convertChild(e.statement)});case a.DoStatement:return this.createNode(e,{type:Wi.AST_NODE_TYPES.DoWhileStatement,test:this.convertChild(e.expression),body:this.convertChild(e.statement)});case a.ForStatement:return this.createNode(e,{type:Wi.AST_NODE_TYPES.ForStatement,init:this.convertChild(e.initializer),test:this.convertChild(e.condition),update:this.convertChild(e.incrementor),body:this.convertChild(e.statement)});case a.ForInStatement:return this.createNode(e,{type:Wi.AST_NODE_TYPES.ForInStatement,left:this.convertPattern(e.initializer),right:this.convertChild(e.expression),body:this.convertChild(e.statement)});case a.ForOfStatement:return this.createNode(e,{type:Wi.AST_NODE_TYPES.ForOfStatement,left:this.convertPattern(e.initializer),right:this.convertChild(e.expression),body:this.convertChild(e.statement),await:Boolean(e.awaitModifier&&e.awaitModifier.kind===a.AwaitKeyword)});case a.FunctionDeclaration:var n=Gi.hasModifier(a.DeclareKeyword,e),o=this.createNode(e,{type:n||!e.body?Wi.AST_NODE_TYPES.TSDeclareFunction:Wi.AST_NODE_TYPES.FunctionDeclaration,id:this.convertChild(e.name),generator:!!e.asteriskToken,expression:!1,async:Gi.hasModifier(a.AsyncKeyword,e),params:this.convertParameters(e.parameters),body:this.convertChild(e.body)||void 0});return e.type&&(o.returnType=this.convertTypeAnnotation(e.type,e)),n&&(o.declare=!0),e.typeParameters&&(o.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),e.decorators&&(o.decorators=e.decorators.map((function(e){return r.convertChild(e)}))),this.fixExports(e,o);case a.VariableDeclaration:var s=this.createNode(e,{type:Wi.AST_NODE_TYPES.VariableDeclarator,id:this.convertPattern(e.name),init:this.convertChild(e.initializer)});return e.exclamationToken&&(s.definite=!0),e.type&&(s.id.typeAnnotation=this.convertTypeAnnotation(e.type,e),this.fixParentLocation(s.id,s.id.typeAnnotation.range)),s;case a.VariableStatement:var c=this.createNode(e,{type:Wi.AST_NODE_TYPES.VariableDeclaration,declarations:e.declarationList.declarations.map((function(e){return r.convertChild(e)})),kind:Gi.getDeclarationKind(e.declarationList)});return e.decorators&&(c.decorators=e.decorators.map((function(e){return r.convertChild(e)}))),Gi.hasModifier(a.DeclareKeyword,e)&&(c.declare=!0),this.fixExports(e,c);case a.VariableDeclarationList:return this.createNode(e,{type:Wi.AST_NODE_TYPES.VariableDeclaration,declarations:e.declarations.map((function(e){return r.convertChild(e)})),kind:Gi.getDeclarationKind(e)});case a.ExpressionStatement:return this.createNode(e,{type:Wi.AST_NODE_TYPES.ExpressionStatement,expression:this.convertChild(e.expression)});case a.ThisKeyword:return this.createNode(e,{type:Wi.AST_NODE_TYPES.ThisExpression});case a.ArrayLiteralExpression:return this.allowPattern?this.createNode(e,{type:Wi.AST_NODE_TYPES.ArrayPattern,elements:e.elements.map((function(e){return r.convertPattern(e)}))}):this.createNode(e,{type:Wi.AST_NODE_TYPES.ArrayExpression,elements:e.elements.map((function(e){return r.convertChild(e)}))});case a.ObjectLiteralExpression:return this.allowPattern?this.createNode(e,{type:Wi.AST_NODE_TYPES.ObjectPattern,properties:e.properties.map((function(e){return r.convertPattern(e)}))}):this.createNode(e,{type:Wi.AST_NODE_TYPES.ObjectExpression,properties:e.properties.map((function(e){return r.convertChild(e)}))});case a.PropertyAssignment:return this.createNode(e,{type:Wi.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:this.converter(e.initializer,e,this.inTypeMode,this.allowPattern),computed:Gi.isComputedProperty(e.name),method:!1,shorthand:!1,kind:"init"});case a.ShorthandPropertyAssignment:return e.objectAssignmentInitializer?this.createNode(e,{type:Wi.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:this.createNode(e,{type:Wi.AST_NODE_TYPES.AssignmentPattern,left:this.convertPattern(e.name),right:this.convertChild(e.objectAssignmentInitializer)}),computed:!1,method:!1,shorthand:!0,kind:"init"}):this.createNode(e,{type:Wi.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:this.convertChild(e.name),computed:!1,method:!1,shorthand:!0,kind:"init"});case a.ComputedPropertyName:return this.convertChild(e.expression);case a.PropertyDeclaration:var u=Gi.hasModifier(a.AbstractKeyword,e),l=this.createNode(e,{type:u?Wi.AST_NODE_TYPES.TSAbstractClassProperty:Wi.AST_NODE_TYPES.ClassProperty,key:this.convertChild(e.name),value:this.convertChild(e.initializer),computed:Gi.isComputedProperty(e.name),static:Gi.hasModifier(a.StaticKeyword,e),readonly:Gi.hasModifier(a.ReadonlyKeyword,e)||void 0,declare:Gi.hasModifier(a.DeclareKeyword,e)});e.type&&(l.typeAnnotation=this.convertTypeAnnotation(e.type,e)),e.decorators&&(l.decorators=e.decorators.map((function(e){return r.convertChild(e)})));var _=Gi.getTSNodeAccessibility(e);return _&&(l.accessibility=_),e.name.kind!==a.Identifier&&e.name.kind!==a.ComputedPropertyName||!e.questionToken||(l.optional=!0),e.exclamationToken&&(l.definite=!0),l.key.type===Wi.AST_NODE_TYPES.Literal&&e.questionToken&&(l.optional=!0),l;case a.GetAccessor:case a.SetAccessor:case a.MethodDeclaration:var d,p=this.createNode(e,{type:Wi.AST_NODE_TYPES.FunctionExpression,id:null,generator:!!e.asteriskToken,expression:!1,async:Gi.hasModifier(a.AsyncKeyword,e),body:this.convertChild(e.body),range:[e.parameters.pos-1,e.end],params:[]});if(e.type&&(p.returnType=this.convertTypeAnnotation(e.type,e)),e.typeParameters&&(p.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters),this.fixParentLocation(p,p.typeParameters.range)),t.kind===a.ObjectLiteralExpression)p.params=e.parameters.map((function(e){return r.convertChild(e)})),d=this.createNode(e,{type:Wi.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:p,computed:Gi.isComputedProperty(e.name),method:e.kind===a.MethodDeclaration,shorthand:!1,kind:"init"});else{p.params=this.convertParameters(e.parameters);var f=Gi.hasModifier(a.AbstractKeyword,e)?Wi.AST_NODE_TYPES.TSAbstractMethodDefinition:Wi.AST_NODE_TYPES.MethodDefinition;d=this.createNode(e,{type:f,key:this.convertChild(e.name),value:p,computed:Gi.isComputedProperty(e.name),static:Gi.hasModifier(a.StaticKeyword,e),kind:"method"}),e.decorators&&(d.decorators=e.decorators.map((function(e){return r.convertChild(e)})));var m=Gi.getTSNodeAccessibility(e);m&&(d.accessibility=m)}return d.key.type===Wi.AST_NODE_TYPES.Identifier&&e.questionToken&&(d.key.optional=!0),e.kind===a.GetAccessor?d.kind="get":e.kind===a.SetAccessor?d.kind="set":d.static||e.name.kind!==a.StringLiteral||"constructor"!==e.name.text||d.type===Wi.AST_NODE_TYPES.Property||(d.kind="constructor"),d;case a.Constructor:var g=Gi.getLastModifier(e),y=g&&Gi.findNextToken(g,e,this.ast)||e.getFirstToken(),h=this.createNode(e,{type:Wi.AST_NODE_TYPES.FunctionExpression,id:null,params:this.convertParameters(e.parameters),generator:!1,expression:!1,async:!1,body:this.convertChild(e.body),range:[e.parameters.pos-1,e.end]});e.typeParameters&&(h.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters),this.fixParentLocation(h,h.typeParameters.range)),e.type&&(h.returnType=this.convertTypeAnnotation(e.type,e));var v=this.createNode(e,{type:Wi.AST_NODE_TYPES.Identifier,name:"constructor",range:[y.getStart(this.ast),y.end]}),b=Gi.hasModifier(a.StaticKeyword,e),x=this.createNode(e,{type:Gi.hasModifier(a.AbstractKeyword,e)?Wi.AST_NODE_TYPES.TSAbstractMethodDefinition:Wi.AST_NODE_TYPES.MethodDefinition,key:v,value:h,computed:!1,static:b,kind:b?"method":"constructor"}),D=Gi.getTSNodeAccessibility(e);return D&&(x.accessibility=D),x;case a.FunctionExpression:var S=this.createNode(e,{type:Wi.AST_NODE_TYPES.FunctionExpression,id:this.convertChild(e.name),generator:!!e.asteriskToken,params:this.convertParameters(e.parameters),body:this.convertChild(e.body),async:Gi.hasModifier(a.AsyncKeyword,e),expression:!1});return e.type&&(S.returnType=this.convertTypeAnnotation(e.type,e)),e.typeParameters&&(S.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),S;case a.SuperKeyword:return this.createNode(e,{type:Wi.AST_NODE_TYPES.Super});case a.ArrayBindingPattern:return this.createNode(e,{type:Wi.AST_NODE_TYPES.ArrayPattern,elements:e.elements.map((function(e){return r.convertPattern(e)}))});case a.OmittedExpression:return null;case a.ObjectBindingPattern:return this.createNode(e,{type:Wi.AST_NODE_TYPES.ObjectPattern,properties:e.elements.map((function(e){return r.convertPattern(e)}))});case a.BindingElement:if(t.kind===a.ArrayBindingPattern){var T=this.convertChild(e.name,t);return e.initializer?this.createNode(e,{type:Wi.AST_NODE_TYPES.AssignmentPattern,left:T,right:this.convertChild(e.initializer)}):e.dotDotDotToken?this.createNode(e,{type:Wi.AST_NODE_TYPES.RestElement,argument:T}):T}var E;return E=e.dotDotDotToken?this.createNode(e,{type:Wi.AST_NODE_TYPES.RestElement,argument:this.convertChild(e.propertyName||e.name)}):this.createNode(e,{type:Wi.AST_NODE_TYPES.Property,key:this.convertChild(e.propertyName||e.name),value:this.convertChild(e.name),computed:Boolean(e.propertyName&&e.propertyName.kind===a.ComputedPropertyName),method:!1,shorthand:!e.propertyName,kind:"init"}),e.initializer&&(E.value=this.createNode(e,{type:Wi.AST_NODE_TYPES.AssignmentPattern,left:this.convertChild(e.name),right:this.convertChild(e.initializer),range:[e.name.getStart(this.ast),e.initializer.end]})),E;case a.ArrowFunction:var C=this.createNode(e,{type:Wi.AST_NODE_TYPES.ArrowFunctionExpression,generator:!1,id:null,params:this.convertParameters(e.parameters),body:this.convertChild(e.body),async:Gi.hasModifier(a.AsyncKeyword,e),expression:e.body.kind!==a.Block});return e.type&&(C.returnType=this.convertTypeAnnotation(e.type,e)),e.typeParameters&&(C.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),C;case a.YieldExpression:return this.createNode(e,{type:Wi.AST_NODE_TYPES.YieldExpression,delegate:!!e.asteriskToken,argument:this.convertChild(e.expression)});case a.AwaitExpression:return this.createNode(e,{type:Wi.AST_NODE_TYPES.AwaitExpression,argument:this.convertChild(e.expression)});case a.NoSubstitutionTemplateLiteral:return this.createNode(e,{type:Wi.AST_NODE_TYPES.TemplateLiteral,quasis:[this.createNode(e,{type:Wi.AST_NODE_TYPES.TemplateElement,value:{raw:this.ast.text.slice(e.getStart(this.ast)+1,e.end-1),cooked:e.text},tail:!0})],expressions:[]});case a.TemplateExpression:var k=this.createNode(e,{type:Wi.AST_NODE_TYPES.TemplateLiteral,quasis:[this.convertChild(e.head)],expressions:[]});return e.templateSpans.forEach((function(e){k.expressions.push(r.convertChild(e.expression)),k.quasis.push(r.convertChild(e.literal))})),k;case a.TaggedTemplateExpression:return this.createNode(e,{type:Wi.AST_NODE_TYPES.TaggedTemplateExpression,typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments):void 0,tag:this.convertChild(e.tag),quasi:this.convertChild(e.template)});case a.TemplateHead:case a.TemplateMiddle:case a.TemplateTail:var N=e.kind===a.TemplateTail;return this.createNode(e,{type:Wi.AST_NODE_TYPES.TemplateElement,value:{raw:this.ast.text.slice(e.getStart(this.ast)+1,e.end-(N?1:2)),cooked:e.text},tail:N});case a.SpreadAssignment:case a.SpreadElement:return this.allowPattern?this.createNode(e,{type:Wi.AST_NODE_TYPES.RestElement,argument:this.convertPattern(e.expression)}):this.createNode(e,{type:Wi.AST_NODE_TYPES.SpreadElement,argument:this.convertChild(e.expression)});case a.Parameter:var A,F;return e.dotDotDotToken?A=F=this.createNode(e,{type:Wi.AST_NODE_TYPES.RestElement,argument:this.convertChild(e.name)}):e.initializer?(A=this.convertChild(e.name),F=this.createNode(e,{type:Wi.AST_NODE_TYPES.AssignmentPattern,left:A,right:this.convertChild(e.initializer)}),e.modifiers&&(F.range[0]=A.range[0],F.loc=Gi.getLocFor(F.range[0],F.range[1],this.ast))):A=F=this.convertChild(e.name,t),e.type&&(A.typeAnnotation=this.convertTypeAnnotation(e.type,e),this.fixParentLocation(A,A.typeAnnotation.range)),e.questionToken&&(e.questionToken.end>A.range[1]&&(A.range[1]=e.questionToken.end,A.loc.end=Gi.getLineAndCharacterFor(A.range[1],this.ast)),A.optional=!0),e.modifiers?this.createNode(e,{type:Wi.AST_NODE_TYPES.TSParameterProperty,accessibility:Gi.getTSNodeAccessibility(e)||void 0,readonly:Gi.hasModifier(a.ReadonlyKeyword,e)||void 0,static:Gi.hasModifier(a.StaticKeyword,e)||void 0,export:Gi.hasModifier(a.ExportKeyword,e)||void 0,parameter:F}):F;case a.ClassDeclaration:case a.ClassExpression:var P=e.heritageClauses||[],w=e.kind===a.ClassDeclaration?Wi.AST_NODE_TYPES.ClassDeclaration:Wi.AST_NODE_TYPES.ClassExpression,I=P.find((function(e){return e.token===a.ExtendsKeyword})),O=P.find((function(e){return e.token===a.ImplementsKeyword})),M=this.createNode(e,{type:w,id:this.convertChild(e.name),body:this.createNode(e,{type:Wi.AST_NODE_TYPES.ClassBody,body:[],range:[e.members.pos-1,e.end]}),superClass:I&&I.types[0]?this.convertChild(I.types[0].expression):null});if(I){if(I.types.length>1)throw Gi.createError(this.ast,I.types[1].pos,"Classes can only extend a single class.");I.types[0]&&I.types[0].typeArguments&&(M.superTypeParameters=this.convertTypeArgumentsToTypeParameters(I.types[0].typeArguments))}e.typeParameters&&(M.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),O&&(M.implements=O.types.map((function(e){return r.convertChild(e)}))),Gi.hasModifier(a.AbstractKeyword,e)&&(M.abstract=!0),Gi.hasModifier(a.DeclareKeyword,e)&&(M.declare=!0),e.decorators&&(M.decorators=e.decorators.map((function(e){return r.convertChild(e)})));var L=e.members.filter(Gi.isESTreeClassMember);return L.length&&(M.body.body=L.map((function(e){return r.convertChild(e)}))),this.fixExports(e,M);case a.ModuleBlock:return this.createNode(e,{type:Wi.AST_NODE_TYPES.TSModuleBlock,body:this.convertBodyExpressions(e.statements,e)});case a.ImportDeclaration:var R=this.createNode(e,{type:Wi.AST_NODE_TYPES.ImportDeclaration,source:this.convertChild(e.moduleSpecifier),specifiers:[]});if(e.importClause&&(e.importClause.name&&R.specifiers.push(this.convertChild(e.importClause)),e.importClause.namedBindings))switch(e.importClause.namedBindings.kind){case a.NamespaceImport:R.specifiers.push(this.convertChild(e.importClause.namedBindings));break;case a.NamedImports:R.specifiers=R.specifiers.concat(e.importClause.namedBindings.elements.map((function(e){return r.convertChild(e)})))}return R;case a.NamespaceImport:return this.createNode(e,{type:Wi.AST_NODE_TYPES.ImportNamespaceSpecifier,local:this.convertChild(e.name)});case a.ImportSpecifier:return this.createNode(e,{type:Wi.AST_NODE_TYPES.ImportSpecifier,local:this.convertChild(e.name),imported:this.convertChild(e.propertyName||e.name)});case a.ImportClause:return this.createNode(e,{type:Wi.AST_NODE_TYPES.ImportDefaultSpecifier,local:this.convertChild(e.name),range:[e.getStart(this.ast),e.name.end]});case a.ExportDeclaration:return e.exportClause?this.createNode(e,{type:Wi.AST_NODE_TYPES.ExportNamedDeclaration,source:this.convertChild(e.moduleSpecifier),specifiers:e.exportClause.elements.map((function(e){return r.convertChild(e)})),declaration:null}):this.createNode(e,{type:Wi.AST_NODE_TYPES.ExportAllDeclaration,source:this.convertChild(e.moduleSpecifier)});case a.ExportSpecifier:return this.createNode(e,{type:Wi.AST_NODE_TYPES.ExportSpecifier,local:this.convertChild(e.propertyName||e.name),exported:this.convertChild(e.name)});case a.ExportAssignment:return e.isExportEquals?this.createNode(e,{type:Wi.AST_NODE_TYPES.TSExportAssignment,expression:this.convertChild(e.expression)}):this.createNode(e,{type:Wi.AST_NODE_TYPES.ExportDefaultDeclaration,declaration:this.convertChild(e.expression)});case a.PrefixUnaryExpression:case a.PostfixUnaryExpression:var B=Gi.getTextForTokenKind(e.operator)||"";return/^(?:\+\+|--)$/.test(B)?this.createNode(e,{type:Wi.AST_NODE_TYPES.UpdateExpression,operator:B,prefix:e.kind===a.PrefixUnaryExpression,argument:this.convertChild(e.operand)}):this.createNode(e,{type:Wi.AST_NODE_TYPES.UnaryExpression,operator:B,prefix:e.kind===a.PrefixUnaryExpression,argument:this.convertChild(e.operand)});case a.DeleteExpression:return this.createNode(e,{type:Wi.AST_NODE_TYPES.UnaryExpression,operator:"delete",prefix:!0,argument:this.convertChild(e.expression)});case a.VoidExpression:return this.createNode(e,{type:Wi.AST_NODE_TYPES.UnaryExpression,operator:"void",prefix:!0,argument:this.convertChild(e.expression)});case a.TypeOfExpression:return this.createNode(e,{type:Wi.AST_NODE_TYPES.UnaryExpression,operator:"typeof",prefix:!0,argument:this.convertChild(e.expression)});case a.TypeOperator:return this.createNode(e,{type:Wi.AST_NODE_TYPES.TSTypeOperator,operator:Gi.getTextForTokenKind(e.operator),typeAnnotation:this.convertChild(e.type)});case a.BinaryExpression:if(Gi.isComma(e.operatorToken)){var j=this.createNode(e,{type:Wi.AST_NODE_TYPES.SequenceExpression,expressions:[]}),K=this.convertChild(e.left);return K.type===Wi.AST_NODE_TYPES.SequenceExpression&&e.left.kind!==a.ParenthesizedExpression?j.expressions=j.expressions.concat(K.expressions):j.expressions.push(K),j.expressions.push(this.convertChild(e.right)),j}var J=Gi.getBinaryExpressionType(e.operatorToken);return this.allowPattern&&J===Wi.AST_NODE_TYPES.AssignmentExpression?this.createNode(e,{type:Wi.AST_NODE_TYPES.AssignmentPattern,left:this.convertPattern(e.left,e),right:this.convertChild(e.right)}):this.createNode(e,{type:J,operator:Gi.getTextForTokenKind(e.operatorToken.kind),left:this.converter(e.left,e,this.inTypeMode,J===Wi.AST_NODE_TYPES.AssignmentExpression),right:this.convertChild(e.right)});case a.PropertyAccessExpression:var z=this.convertChild(e.expression),U=this.convertChild(e.name),V=void 0!==e.questionDotToken,q=(z.type===Wi.AST_NODE_TYPES.OptionalMemberExpression||z.type===Wi.AST_NODE_TYPES.OptionalCallExpression)&&e.expression.kind!==i.SyntaxKind.ParenthesizedExpression;return V||q?this.createNode(e,{type:Wi.AST_NODE_TYPES.OptionalMemberExpression,object:z,property:U,computed:!1,optional:V}):this.createNode(e,{type:Wi.AST_NODE_TYPES.MemberExpression,object:z,property:U,computed:!1,optional:!1});case a.ElementAccessExpression:var W=this.convertChild(e.expression),G=this.convertChild(e.argumentExpression),H=void 0!==e.questionDotToken,Y=(W.type===Wi.AST_NODE_TYPES.OptionalMemberExpression||W.type===Wi.AST_NODE_TYPES.OptionalCallExpression)&&e.expression.kind!==i.SyntaxKind.ParenthesizedExpression;return H||Y?this.createNode(e,{type:Wi.AST_NODE_TYPES.OptionalMemberExpression,object:W,property:G,computed:!0,optional:H}):this.createNode(e,{type:Wi.AST_NODE_TYPES.MemberExpression,object:W,property:G,computed:!0,optional:!1});case a.CallExpression:var X,Q=this.convertChild(e.expression),$=e.arguments.map((function(e){return r.convertChild(e)})),Z=void 0!==e.questionDotToken,ee=(Q.type===Wi.AST_NODE_TYPES.OptionalMemberExpression||Q.type===Wi.AST_NODE_TYPES.OptionalCallExpression)&&e.expression.kind!==i.SyntaxKind.ParenthesizedExpression;return X=Z||ee?this.createNode(e,{type:Wi.AST_NODE_TYPES.OptionalCallExpression,callee:Q,arguments:$,optional:Z}):this.createNode(e,{type:Wi.AST_NODE_TYPES.CallExpression,callee:Q,arguments:$,optional:!1}),e.typeArguments&&(X.typeParameters=this.convertTypeArgumentsToTypeParameters(e.typeArguments)),X;case a.NewExpression:var te=this.createNode(e,{type:Wi.AST_NODE_TYPES.NewExpression,callee:this.convertChild(e.expression),arguments:e.arguments?e.arguments.map((function(e){return r.convertChild(e)})):[]});return e.typeArguments&&(te.typeParameters=this.convertTypeArgumentsToTypeParameters(e.typeArguments)),te;case a.ConditionalExpression:return this.createNode(e,{type:Wi.AST_NODE_TYPES.ConditionalExpression,test:this.convertChild(e.condition),consequent:this.convertChild(e.whenTrue),alternate:this.convertChild(e.whenFalse)});case a.MetaProperty:return this.createNode(e,{type:Wi.AST_NODE_TYPES.MetaProperty,meta:this.createNode(e.getFirstToken(),{type:Wi.AST_NODE_TYPES.Identifier,name:Gi.getTextForTokenKind(e.keywordToken)}),property:this.convertChild(e.name)});case a.Decorator:return this.createNode(e,{type:Wi.AST_NODE_TYPES.Decorator,expression:this.convertChild(e.expression)});case a.StringLiteral:var re=this.createNode(e,{type:Wi.AST_NODE_TYPES.Literal,raw:"",value:""});return re.raw=this.ast.text.slice(re.range[0],re.range[1]),t.name&&t.name===e?re.value=e.text:re.value=Gi.unescapeStringLiteralText(e.text),re;case a.NumericLiteral:return this.createNode(e,{type:Wi.AST_NODE_TYPES.Literal,value:Number(e.text),raw:e.getText()});case a.BigIntLiteral:var ne=this.createNode(e,{type:Wi.AST_NODE_TYPES.BigIntLiteral,raw:"",value:""});return ne.raw=this.ast.text.slice(ne.range[0],ne.range[1]),ne.value=ne.raw.slice(0,-1),ne;case a.RegularExpressionLiteral:var ie=e.text.slice(1,e.text.lastIndexOf("/")),ae=e.text.slice(e.text.lastIndexOf("/")+1),oe=null;try{oe=new RegExp(ie,ae)}catch(e){oe=null}return this.createNode(e,{type:Wi.AST_NODE_TYPES.Literal,value:oe,raw:e.text,regex:{pattern:ie,flags:ae}});case a.TrueKeyword:return this.createNode(e,{type:Wi.AST_NODE_TYPES.Literal,value:!0,raw:"true"});case a.FalseKeyword:return this.createNode(e,{type:Wi.AST_NODE_TYPES.Literal,value:!1,raw:"false"});case a.NullKeyword:return this.inTypeMode?this.createNode(e,{type:Wi.AST_NODE_TYPES.TSNullKeyword}):this.createNode(e,{type:Wi.AST_NODE_TYPES.Literal,value:null,raw:"null"});case a.ImportKeyword:return this.createNode(e,{type:Wi.AST_NODE_TYPES.Import});case a.EmptyStatement:return this.createNode(e,{type:Wi.AST_NODE_TYPES.EmptyStatement});case a.DebuggerStatement:return this.createNode(e,{type:Wi.AST_NODE_TYPES.DebuggerStatement});case a.JsxElement:return this.createNode(e,{type:Wi.AST_NODE_TYPES.JSXElement,openingElement:this.convertChild(e.openingElement),closingElement:this.convertChild(e.closingElement),children:e.children.map((function(e){return r.convertChild(e)}))});case a.JsxFragment:return this.createNode(e,{type:Wi.AST_NODE_TYPES.JSXFragment,openingFragment:this.convertChild(e.openingFragment),closingFragment:this.convertChild(e.closingFragment),children:e.children.map((function(e){return r.convertChild(e)}))});case a.JsxSelfClosingElement:return this.createNode(e,{type:Wi.AST_NODE_TYPES.JSXElement,openingElement:this.createNode(e,{type:Wi.AST_NODE_TYPES.JSXOpeningElement,typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments):void 0,selfClosing:!0,name:this.convertJSXTagName(e.tagName,e),attributes:e.attributes.properties.map((function(e){return r.convertChild(e)})),range:Gi.getRange(e,this.ast)}),closingElement:null,children:[]});case a.JsxOpeningElement:return this.createNode(e,{type:Wi.AST_NODE_TYPES.JSXOpeningElement,typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments):void 0,selfClosing:!1,name:this.convertJSXTagName(e.tagName,e),attributes:e.attributes.properties.map((function(e){return r.convertChild(e)}))});case a.JsxClosingElement:return this.createNode(e,{type:Wi.AST_NODE_TYPES.JSXClosingElement,name:this.convertJSXTagName(e.tagName,e)});case a.JsxOpeningFragment:return this.createNode(e,{type:Wi.AST_NODE_TYPES.JSXOpeningFragment});case a.JsxClosingFragment:return this.createNode(e,{type:Wi.AST_NODE_TYPES.JSXClosingFragment});case a.JsxExpression:var se=e.expression?this.convertChild(e.expression):this.createNode(e,{type:Wi.AST_NODE_TYPES.JSXEmptyExpression,range:[e.getStart(this.ast)+1,e.getEnd()-1]});return e.dotDotDotToken?this.createNode(e,{type:Wi.AST_NODE_TYPES.JSXSpreadChild,expression:se}):this.createNode(e,{type:Wi.AST_NODE_TYPES.JSXExpressionContainer,expression:se});case a.JsxAttribute:var ce=this.convertChild(e.name);return ce.type=Wi.AST_NODE_TYPES.JSXIdentifier,this.createNode(e,{type:Wi.AST_NODE_TYPES.JSXAttribute,name:ce,value:this.convertChild(e.initializer)});case a.JsxText:var ue=e.getFullStart(),le=e.getEnd();return this.options.useJSXTextNode?this.createNode(e,{type:Wi.AST_NODE_TYPES.JSXText,value:this.ast.text.slice(ue,le),raw:this.ast.text.slice(ue,le),range:[ue,le]}):this.createNode(e,{type:Wi.AST_NODE_TYPES.Literal,value:this.ast.text.slice(ue,le),raw:this.ast.text.slice(ue,le),range:[ue,le]});case a.JsxSpreadAttribute:return this.createNode(e,{type:Wi.AST_NODE_TYPES.JSXSpreadAttribute,argument:this.convertChild(e.expression)});case a.QualifiedName:return this.createNode(e,{type:Wi.AST_NODE_TYPES.TSQualifiedName,left:this.convertChild(e.left),right:this.convertChild(e.right)});case a.TypeReference:return this.createNode(e,{type:Wi.AST_NODE_TYPES.TSTypeReference,typeName:this.convertType(e.typeName),typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments):void 0});case a.TypeParameter:return this.createNode(e,{type:Wi.AST_NODE_TYPES.TSTypeParameter,name:this.convertType(e.name),constraint:e.constraint?this.convertType(e.constraint):void 0,default:e.default?this.convertType(e.default):void 0});case a.ThisType:case a.AnyKeyword:case a.BigIntKeyword:case a.BooleanKeyword:case a.NeverKeyword:case a.NumberKeyword:case a.ObjectKeyword:case a.StringKeyword:case a.SymbolKeyword:case a.UnknownKeyword:case a.VoidKeyword:case a.UndefinedKeyword:return this.createNode(e,{type:Wi.AST_NODE_TYPES["TS".concat(a[e.kind])]});case a.NonNullExpression:return this.createNode(e,{type:Wi.AST_NODE_TYPES.TSNonNullExpression,expression:this.convertChild(e.expression)});case a.TypeLiteral:return this.createNode(e,{type:Wi.AST_NODE_TYPES.TSTypeLiteral,members:e.members.map((function(e){return r.convertChild(e)}))});case a.ArrayType:return this.createNode(e,{type:Wi.AST_NODE_TYPES.TSArrayType,elementType:this.convertType(e.elementType)});case a.IndexedAccessType:return this.createNode(e,{type:Wi.AST_NODE_TYPES.TSIndexedAccessType,objectType:this.convertType(e.objectType),indexType:this.convertType(e.indexType)});case a.ConditionalType:return this.createNode(e,{type:Wi.AST_NODE_TYPES.TSConditionalType,checkType:this.convertType(e.checkType),extendsType:this.convertType(e.extendsType),trueType:this.convertType(e.trueType),falseType:this.convertType(e.falseType)});case a.TypeQuery:return this.createNode(e,{type:Wi.AST_NODE_TYPES.TSTypeQuery,exprName:this.convertType(e.exprName)});case a.MappedType:var _e=this.createNode(e,{type:Wi.AST_NODE_TYPES.TSMappedType,typeParameter:this.convertType(e.typeParameter)});return e.readonlyToken&&(e.readonlyToken.kind===a.ReadonlyKeyword?_e.readonly=!0:_e.readonly=Gi.getTextForTokenKind(e.readonlyToken.kind)),e.questionToken&&(e.questionToken.kind===a.QuestionToken?_e.optional=!0:_e.optional=Gi.getTextForTokenKind(e.questionToken.kind)),e.type&&(_e.typeAnnotation=this.convertType(e.type)),_e;case a.ParenthesizedExpression:return this.convertChild(e.expression,t);case a.TypeAliasDeclaration:var de=this.createNode(e,{type:Wi.AST_NODE_TYPES.TSTypeAliasDeclaration,id:this.convertChild(e.name),typeAnnotation:this.convertType(e.type)});return Gi.hasModifier(a.DeclareKeyword,e)&&(de.declare=!0),e.typeParameters&&(de.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),this.fixExports(e,de);case a.MethodSignature:var pe=this.createNode(e,{type:Wi.AST_NODE_TYPES.TSMethodSignature,computed:Gi.isComputedProperty(e.name),key:this.convertChild(e.name),params:this.convertParameters(e.parameters)});Gi.isOptional(e)&&(pe.optional=!0),e.type&&(pe.returnType=this.convertTypeAnnotation(e.type,e)),Gi.hasModifier(a.ReadonlyKeyword,e)&&(pe.readonly=!0),e.typeParameters&&(pe.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters));var fe=Gi.getTSNodeAccessibility(e);return fe&&(pe.accessibility=fe),Gi.hasModifier(a.ExportKeyword,e)&&(pe.export=!0),Gi.hasModifier(a.StaticKeyword,e)&&(pe.static=!0),pe;case a.PropertySignature:var me=this.createNode(e,{type:Wi.AST_NODE_TYPES.TSPropertySignature,optional:Gi.isOptional(e)||void 0,computed:Gi.isComputedProperty(e.name),key:this.convertChild(e.name),typeAnnotation:e.type?this.convertTypeAnnotation(e.type,e):void 0,initializer:this.convertChild(e.initializer)||void 0,readonly:Gi.hasModifier(a.ReadonlyKeyword,e)||void 0,static:Gi.hasModifier(a.StaticKeyword,e)||void 0,export:Gi.hasModifier(a.ExportKeyword,e)||void 0}),ge=Gi.getTSNodeAccessibility(e);return ge&&(me.accessibility=ge),me;case a.IndexSignature:var ye=this.createNode(e,{type:Wi.AST_NODE_TYPES.TSIndexSignature,parameters:e.parameters.map((function(e){return r.convertChild(e)}))});e.type&&(ye.typeAnnotation=this.convertTypeAnnotation(e.type,e)),Gi.hasModifier(a.ReadonlyKeyword,e)&&(ye.readonly=!0);var he=Gi.getTSNodeAccessibility(e);return he&&(ye.accessibility=he),Gi.hasModifier(a.ExportKeyword,e)&&(ye.export=!0),Gi.hasModifier(a.StaticKeyword,e)&&(ye.static=!0),ye;case a.ConstructorType:case a.FunctionType:case a.ConstructSignature:case a.CallSignature:var ve;switch(e.kind){case a.ConstructSignature:ve=Wi.AST_NODE_TYPES.TSConstructSignatureDeclaration;break;case a.CallSignature:ve=Wi.AST_NODE_TYPES.TSCallSignatureDeclaration;break;case a.FunctionType:ve=Wi.AST_NODE_TYPES.TSFunctionType;break;case a.ConstructorType:default:ve=Wi.AST_NODE_TYPES.TSConstructorType}var be=this.createNode(e,{type:ve,params:this.convertParameters(e.parameters)});return e.type&&(be.returnType=this.convertTypeAnnotation(e.type,e)),e.typeParameters&&(be.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),be;case a.ExpressionWithTypeArguments:var xe=this.createNode(e,{type:t&&t.kind===a.InterfaceDeclaration?Wi.AST_NODE_TYPES.TSInterfaceHeritage:Wi.AST_NODE_TYPES.TSClassImplements,expression:this.convertChild(e.expression)});return e.typeArguments&&(xe.typeParameters=this.convertTypeArgumentsToTypeParameters(e.typeArguments)),xe;case a.InterfaceDeclaration:var De=e.heritageClauses||[],Se=this.createNode(e,{type:Wi.AST_NODE_TYPES.TSInterfaceDeclaration,body:this.createNode(e,{type:Wi.AST_NODE_TYPES.TSInterfaceBody,body:e.members.map((function(e){return r.convertChild(e)})),range:[e.members.pos-1,e.end]}),id:this.convertChild(e.name)});if(e.typeParameters&&(Se.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),De.length>0){var Te=[],Ee=[],Ce=!0,ke=!1,Ne=void 0;try{for(var Ae,Fe=De[Symbol.iterator]();!(Ce=(Ae=Fe.next()).done);Ce=!0){var Pe=Ae.value;if(Pe.token===a.ExtendsKeyword){var we=!0,Ie=!1,Oe=void 0;try{for(var Me,Le=Pe.types[Symbol.iterator]();!(we=(Me=Le.next()).done);we=!0){var Re=Me.value;Te.push(this.convertChild(Re,e))}}catch(e){Ie=!0,Oe=e}finally{try{we||null==Le.return||Le.return()}finally{if(Ie)throw Oe}}}else if(Pe.token===a.ImplementsKeyword){var Be=!0,je=!1,Ke=void 0;try{for(var Je,ze=Pe.types[Symbol.iterator]();!(Be=(Je=ze.next()).done);Be=!0){var Ue=Je.value;Ee.push(this.convertChild(Ue,e))}}catch(e){je=!0,Ke=e}finally{try{Be||null==ze.return||ze.return()}finally{if(je)throw Ke}}}}}catch(e){ke=!0,Ne=e}finally{try{Ce||null==Fe.return||Fe.return()}finally{if(ke)throw Ne}}Te.length&&(Se.extends=Te),Ee.length&&(Se.implements=Ee)}return e.decorators&&(Se.decorators=e.decorators.map((function(e){return r.convertChild(e)}))),Gi.hasModifier(a.AbstractKeyword,e)&&(Se.abstract=!0),Gi.hasModifier(a.DeclareKeyword,e)&&(Se.declare=!0),this.fixExports(e,Se);case a.TypePredicate:var Ve=this.createNode(e,{type:Wi.AST_NODE_TYPES.TSTypePredicate,asserts:void 0!==e.assertsModifier,parameterName:this.convertChild(e.parameterName),typeAnnotation:null});return e.type&&(Ve.typeAnnotation=this.convertTypeAnnotation(e.type,e),Ve.typeAnnotation.loc=Ve.typeAnnotation.typeAnnotation.loc,Ve.typeAnnotation.range=Ve.typeAnnotation.typeAnnotation.range),Ve;case a.ImportType:return this.createNode(e,{type:Wi.AST_NODE_TYPES.TSImportType,isTypeOf:!!e.isTypeOf,parameter:this.convertChild(e.argument),qualifier:this.convertChild(e.qualifier),typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments):null});case a.EnumDeclaration:var qe=this.createNode(e,{type:Wi.AST_NODE_TYPES.TSEnumDeclaration,id:this.convertChild(e.name),members:e.members.map((function(e){return r.convertChild(e)}))});return this.applyModifiersToResult(qe,e.modifiers),e.decorators&&(qe.decorators=e.decorators.map((function(e){return r.convertChild(e)}))),this.fixExports(e,qe);case a.EnumMember:var We=this.createNode(e,{type:Wi.AST_NODE_TYPES.TSEnumMember,id:this.convertChild(e.name)});return e.initializer&&(We.initializer=this.convertChild(e.initializer)),We;case a.ModuleDeclaration:var Ge=this.createNode(e,{type:Wi.AST_NODE_TYPES.TSModuleDeclaration,id:this.convertChild(e.name)});return e.body&&(Ge.body=this.convertChild(e.body)),this.applyModifiersToResult(Ge,e.modifiers),e.flags&i.NodeFlags.GlobalAugmentation&&(Ge.global=!0),this.fixExports(e,Ge);case a.OptionalType:return this.createNode(e,{type:Wi.AST_NODE_TYPES.TSOptionalType,typeAnnotation:this.convertType(e.type)});case a.ParenthesizedType:return this.createNode(e,{type:Wi.AST_NODE_TYPES.TSParenthesizedType,typeAnnotation:this.convertType(e.type)});case a.TupleType:return this.createNode(e,{type:Wi.AST_NODE_TYPES.TSTupleType,elementTypes:e.elementTypes.map((function(e){return r.convertType(e)}))});case a.UnionType:return this.createNode(e,{type:Wi.AST_NODE_TYPES.TSUnionType,types:e.types.map((function(e){return r.convertType(e)}))});case a.IntersectionType:return this.createNode(e,{type:Wi.AST_NODE_TYPES.TSIntersectionType,types:e.types.map((function(e){return r.convertType(e)}))});case a.RestType:return this.createNode(e,{type:Wi.AST_NODE_TYPES.TSRestType,typeAnnotation:this.convertType(e.type)});case a.AsExpression:return this.createNode(e,{type:Wi.AST_NODE_TYPES.TSAsExpression,expression:this.convertChild(e.expression),typeAnnotation:this.convertType(e.type)});case a.InferType:return this.createNode(e,{type:Wi.AST_NODE_TYPES.TSInferType,typeParameter:this.convertType(e.typeParameter)});case a.LiteralType:return this.createNode(e,{type:Wi.AST_NODE_TYPES.TSLiteralType,literal:this.convertType(e.literal)});case a.TypeAssertionExpression:return this.createNode(e,{type:Wi.AST_NODE_TYPES.TSTypeAssertion,typeAnnotation:this.convertType(e.type),expression:this.convertChild(e.expression)});case a.ImportEqualsDeclaration:return this.createNode(e,{type:Wi.AST_NODE_TYPES.TSImportEqualsDeclaration,id:this.convertChild(e.name),moduleReference:this.convertChild(e.moduleReference),isExport:Gi.hasModifier(a.ExportKeyword,e)});case a.ExternalModuleReference:return this.createNode(e,{type:Wi.AST_NODE_TYPES.TSExternalModuleReference,expression:this.convertChild(e.expression)});case a.NamespaceExportDeclaration:return this.createNode(e,{type:Wi.AST_NODE_TYPES.TSNamespaceExportDeclaration,id:this.convertChild(e.name)});case a.AbstractKeyword:return this.createNode(e,{type:Wi.AST_NODE_TYPES.TSAbstractKeyword});default:return this.deeplyCopy(e)}}}]),e}();t.Converter=o}));i(Hi);Hi.convertError,Hi.Converter;var Yi=function(e,t){return(Yi=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])})(e,t)};var Xi=function(){return(Xi=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)};function Qi(e){var t="function"==typeof Symbol&&e[Symbol.iterator],r=0;return t?t.call(e):{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}function $i(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o}function Zi(e){return this instanceof Zi?(this.v=e,this):new Zi(e)}var ea=Object.freeze({__proto__:null,__extends:function(e,t){function r(){this.constructor=e}Yi(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},get __assign(){return Xi},__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},__decorate:function(e,t,r,n){var i,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":f(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,r,o):i(t,r))||o);return a>3&&o&&Object.defineProperty(t,r,o),o},__param:function(e,t){return function(r,n){t(r,n,e)}},__metadata:function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":f(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){e.done?i(e.value):new r((function(t){t(e.value)})).then(o,s)}c((n=n.apply(e,t||[])).next())}))},__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(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},__exportStar:function(e,t){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])},__values:Qi,__read:$i,__spread:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat($i(arguments[t]));return e},__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},__await:Zi,__asyncGenerator:function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),a=[];return n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n;function o(e){i[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||s(e,t)}))})}function s(e,t){try{(r=i[e](t)).value instanceof Zi?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){s("next",e)}function u(e){s("throw",e)}function l(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}},__asyncDelegator:function(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:Zi(e[n](t)),done:"return"===n}:i?i(t):t}:i}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=Qi(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}}}),ta=a((function(e,t){function r(e){return e.kind===Fr.SyntaxKind.ModuleDeclaration}function n(e){return e.kind===Fr.SyntaxKind.PropertyAccessExpression}function i(e){return e.kind===Fr.SyntaxKind.QualifiedName}Object.defineProperty(t,"__esModule",{value:!0}),t.isAccessorDeclaration=function(e){return e.kind===Fr.SyntaxKind.GetAccessor||e.kind===Fr.SyntaxKind.SetAccessor},t.isArrayBindingPattern=function(e){return e.kind===Fr.SyntaxKind.ArrayBindingPattern},t.isArrayLiteralExpression=function(e){return e.kind===Fr.SyntaxKind.ArrayLiteralExpression},t.isArrayTypeNode=function(e){return e.kind===Fr.SyntaxKind.ArrayType},t.isArrowFunction=function(e){return e.kind===Fr.SyntaxKind.ArrowFunction},t.isAsExpression=function(e){return e.kind===Fr.SyntaxKind.AsExpression},t.isAssertionExpression=function(e){return e.kind===Fr.SyntaxKind.AsExpression||e.kind===Fr.SyntaxKind.TypeAssertionExpression},t.isAwaitExpression=function(e){return e.kind===Fr.SyntaxKind.AwaitExpression},t.isBinaryExpression=function(e){return e.kind===Fr.SyntaxKind.BinaryExpression},t.isBindingElement=function(e){return e.kind===Fr.SyntaxKind.BindingElement},t.isBindingPattern=function(e){return e.kind===Fr.SyntaxKind.ArrayBindingPattern||e.kind===Fr.SyntaxKind.ObjectBindingPattern},t.isBlock=function(e){return e.kind===Fr.SyntaxKind.Block},t.isBlockLike=function(e){return void 0!==e.statements},t.isBooleanLiteral=function(e){return e.kind===Fr.SyntaxKind.TrueKeyword||e.kind===Fr.SyntaxKind.FalseKeyword},t.isBreakOrContinueStatement=function(e){return e.kind===Fr.SyntaxKind.BreakStatement||e.kind===Fr.SyntaxKind.ContinueStatement},t.isBreakStatement=function(e){return e.kind===Fr.SyntaxKind.BreakStatement},t.isCallExpression=function(e){return e.kind===Fr.SyntaxKind.CallExpression},t.isCallLikeExpression=function(e){switch(e.kind){case Fr.SyntaxKind.CallExpression:case Fr.SyntaxKind.Decorator:case Fr.SyntaxKind.JsxOpeningElement:case Fr.SyntaxKind.JsxSelfClosingElement:case Fr.SyntaxKind.NewExpression:case Fr.SyntaxKind.TaggedTemplateExpression:return!0;default:return!1}},t.isCallSignatureDeclaration=function(e){return e.kind===Fr.SyntaxKind.CallSignature},t.isCaseBlock=function(e){return e.kind===Fr.SyntaxKind.CaseBlock},t.isCaseClause=function(e){return e.kind===Fr.SyntaxKind.CaseClause},t.isCaseOrDefaultClause=function(e){return e.kind===Fr.SyntaxKind.CaseClause||e.kind===Fr.SyntaxKind.DefaultClause},t.isCatchClause=function(e){return e.kind===Fr.SyntaxKind.CatchClause},t.isClassDeclaration=function(e){return e.kind===Fr.SyntaxKind.ClassDeclaration},t.isClassExpression=function(e){return e.kind===Fr.SyntaxKind.ClassExpression},t.isClassLikeDeclaration=function(e){return e.kind===Fr.SyntaxKind.ClassDeclaration||e.kind===Fr.SyntaxKind.ClassExpression},t.isCommaListExpression=function(e){return e.kind===Fr.SyntaxKind.CommaListExpression},t.isConditionalExpression=function(e){return e.kind===Fr.SyntaxKind.ConditionalExpression},t.isConditionalTypeNode=function(e){return e.kind===Fr.SyntaxKind.ConditionalType},t.isConstructorDeclaration=function(e){return e.kind===Fr.SyntaxKind.Constructor},t.isConstructorTypeNode=function(e){return e.kind===Fr.SyntaxKind.ConstructorType},t.isConstructSignatureDeclaration=function(e){return e.kind===Fr.SyntaxKind.ConstructSignature},t.isContinueStatement=function(e){return e.kind===Fr.SyntaxKind.ContinueStatement},t.isComputedPropertyName=function(e){return e.kind===Fr.SyntaxKind.ComputedPropertyName},t.isDebuggerStatement=function(e){return e.kind===Fr.SyntaxKind.DebuggerStatement},t.isDecorator=function(e){return e.kind===Fr.SyntaxKind.Decorator},t.isDefaultClause=function(e){return e.kind===Fr.SyntaxKind.DefaultClause},t.isDeleteExpression=function(e){return e.kind===Fr.SyntaxKind.DeleteExpression},t.isDoStatement=function(e){return e.kind===Fr.SyntaxKind.DoStatement},t.isElementAccessExpression=function(e){return e.kind===Fr.SyntaxKind.ElementAccessExpression},t.isEmptyStatement=function(e){return e.kind===Fr.SyntaxKind.EmptyStatement},t.isEntityName=function(e){return e.kind===Fr.SyntaxKind.Identifier||i(e)},t.isEntityNameExpression=function e(t){return t.kind===Fr.SyntaxKind.Identifier||n(t)&&e(t.expression)},t.isEnumDeclaration=function(e){return e.kind===Fr.SyntaxKind.EnumDeclaration},t.isEnumMember=function(e){return e.kind===Fr.SyntaxKind.EnumMember},t.isExportAssignment=function(e){return e.kind===Fr.SyntaxKind.ExportAssignment},t.isExportDeclaration=function(e){return e.kind===Fr.SyntaxKind.ExportDeclaration},t.isExportSpecifier=function(e){return e.kind===Fr.SyntaxKind.ExportSpecifier},t.isExpression=function(e){switch(e.kind){case Fr.SyntaxKind.ArrayLiteralExpression:case Fr.SyntaxKind.ArrowFunction:case Fr.SyntaxKind.AsExpression:case Fr.SyntaxKind.AwaitExpression:case Fr.SyntaxKind.BinaryExpression:case Fr.SyntaxKind.CallExpression:case Fr.SyntaxKind.ClassExpression:case Fr.SyntaxKind.CommaListExpression:case Fr.SyntaxKind.ConditionalExpression:case Fr.SyntaxKind.DeleteExpression:case Fr.SyntaxKind.ElementAccessExpression:case Fr.SyntaxKind.FalseKeyword:case Fr.SyntaxKind.FunctionExpression:case Fr.SyntaxKind.Identifier:case Fr.SyntaxKind.JsxElement:case Fr.SyntaxKind.JsxFragment:case Fr.SyntaxKind.JsxExpression:case Fr.SyntaxKind.JsxOpeningElement:case Fr.SyntaxKind.JsxOpeningFragment:case Fr.SyntaxKind.JsxSelfClosingElement:case Fr.SyntaxKind.MetaProperty:case Fr.SyntaxKind.NewExpression:case Fr.SyntaxKind.NonNullExpression:case Fr.SyntaxKind.NoSubstitutionTemplateLiteral:case Fr.SyntaxKind.NullKeyword:case Fr.SyntaxKind.NumericLiteral:case Fr.SyntaxKind.ObjectLiteralExpression:case Fr.SyntaxKind.OmittedExpression:case Fr.SyntaxKind.ParenthesizedExpression:case Fr.SyntaxKind.PostfixUnaryExpression:case Fr.SyntaxKind.PrefixUnaryExpression:case Fr.SyntaxKind.PropertyAccessExpression:case Fr.SyntaxKind.RegularExpressionLiteral:case Fr.SyntaxKind.SpreadElement:case Fr.SyntaxKind.StringLiteral:case Fr.SyntaxKind.SuperKeyword:case Fr.SyntaxKind.TaggedTemplateExpression:case Fr.SyntaxKind.TemplateExpression:case Fr.SyntaxKind.ThisKeyword:case Fr.SyntaxKind.TrueKeyword:case Fr.SyntaxKind.TypeAssertionExpression:case Fr.SyntaxKind.TypeOfExpression:case Fr.SyntaxKind.VoidExpression:case Fr.SyntaxKind.YieldExpression:return!0;default:return!1}},t.isExpressionStatement=function(e){return e.kind===Fr.SyntaxKind.ExpressionStatement},t.isExpressionWithTypeArguments=function(e){return e.kind===Fr.SyntaxKind.ExpressionWithTypeArguments},t.isExternalModuleReference=function(e){return e.kind===Fr.SyntaxKind.ExternalModuleReference},t.isForInStatement=function(e){return e.kind===Fr.SyntaxKind.ForInStatement},t.isForInOrOfStatement=function(e){return e.kind===Fr.SyntaxKind.ForOfStatement||e.kind===Fr.SyntaxKind.ForInStatement},t.isForOfStatement=function(e){return e.kind===Fr.SyntaxKind.ForOfStatement},t.isForStatement=function(e){return e.kind===Fr.SyntaxKind.ForStatement},t.isFunctionDeclaration=function(e){return e.kind===Fr.SyntaxKind.FunctionDeclaration},t.isFunctionExpression=function(e){return e.kind===Fr.SyntaxKind.FunctionExpression},t.isFunctionTypeNode=function(e){return e.kind===Fr.SyntaxKind.FunctionType},t.isGetAccessorDeclaration=function(e){return e.kind===Fr.SyntaxKind.GetAccessor},t.isIdentifier=function(e){return e.kind===Fr.SyntaxKind.Identifier},t.isIfStatement=function(e){return e.kind===Fr.SyntaxKind.IfStatement},t.isImportClause=function(e){return e.kind===Fr.SyntaxKind.ImportClause},t.isImportDeclaration=function(e){return e.kind===Fr.SyntaxKind.ImportDeclaration},t.isImportEqualsDeclaration=function(e){return e.kind===Fr.SyntaxKind.ImportEqualsDeclaration},t.isImportSpecifier=function(e){return e.kind===Fr.SyntaxKind.ImportSpecifier},t.isIndexedAccessTypeNode=function(e){return e.kind===Fr.SyntaxKind.IndexedAccessType},t.isIndexSignatureDeclaration=function(e){return e.kind===Fr.SyntaxKind.IndexSignature},t.isInferTypeNode=function(e){return e.kind===Fr.SyntaxKind.InferType},t.isInterfaceDeclaration=function(e){return e.kind===Fr.SyntaxKind.InterfaceDeclaration},t.isIntersectionTypeNode=function(e){return e.kind===Fr.SyntaxKind.IntersectionType},t.isIterationStatement=function(e){switch(e.kind){case Fr.SyntaxKind.ForStatement:case Fr.SyntaxKind.ForOfStatement:case Fr.SyntaxKind.ForInStatement:case Fr.SyntaxKind.WhileStatement:case Fr.SyntaxKind.DoStatement:return!0;default:return!1}},t.isJsDoc=function(e){return e.kind===Fr.SyntaxKind.JSDocComment},t.isJsxAttribute=function(e){return e.kind===Fr.SyntaxKind.JsxAttribute},t.isJsxAttributeLike=function(e){return e.kind===Fr.SyntaxKind.JsxAttribute||e.kind===Fr.SyntaxKind.JsxSpreadAttribute},t.isJsxAttributes=function(e){return e.kind===Fr.SyntaxKind.JsxAttributes},t.isJsxClosingElement=function(e){return e.kind===Fr.SyntaxKind.JsxClosingElement},t.isJsxClosingFragment=function(e){return e.kind===Fr.SyntaxKind.JsxClosingFragment},t.isJsxElement=function(e){return e.kind===Fr.SyntaxKind.JsxElement},t.isJsxExpression=function(e){return e.kind===Fr.SyntaxKind.JsxExpression},t.isJsxFragment=function(e){return e.kind===Fr.SyntaxKind.JsxFragment},t.isJsxOpeningElement=function(e){return e.kind===Fr.SyntaxKind.JsxOpeningElement},t.isJsxOpeningFragment=function(e){return e.kind===Fr.SyntaxKind.JsxOpeningFragment},t.isJsxOpeningLikeElement=function(e){return e.kind===Fr.SyntaxKind.JsxOpeningElement||e.kind===Fr.SyntaxKind.JsxSelfClosingElement},t.isJsxSelfClosingElement=function(e){return e.kind===Fr.SyntaxKind.JsxSelfClosingElement},t.isJsxSpreadAttribute=function(e){return e.kind===Fr.SyntaxKind.JsxSpreadAttribute},t.isJsxText=function(e){return e.kind===Fr.SyntaxKind.JsxText},t.isLabeledStatement=function(e){return e.kind===Fr.SyntaxKind.LabeledStatement},t.isLiteralExpression=function(e){return e.kind>=Fr.SyntaxKind.FirstLiteralToken&&e.kind<=Fr.SyntaxKind.LastLiteralToken},t.isLiteralTypeNode=function(e){return e.kind===Fr.SyntaxKind.LiteralType},t.isMappedTypeNode=function(e){return e.kind===Fr.SyntaxKind.MappedType},t.isMetaProperty=function(e){return e.kind===Fr.SyntaxKind.MetaProperty},t.isMethodDeclaration=function(e){return e.kind===Fr.SyntaxKind.MethodDeclaration},t.isMethodSignature=function(e){return e.kind===Fr.SyntaxKind.MethodSignature},t.isModuleBlock=function(e){return e.kind===Fr.SyntaxKind.ModuleBlock},t.isModuleDeclaration=r,t.isNamedExports=function(e){return e.kind===Fr.SyntaxKind.NamedExports},t.isNamedImports=function(e){return e.kind===Fr.SyntaxKind.NamedImports},t.isNamespaceDeclaration=function e(t){return r(t)&&t.name.kind===Fr.SyntaxKind.Identifier&&void 0!==t.body&&(t.body.kind===Fr.SyntaxKind.ModuleBlock||e(t.body))},t.isNamespaceImport=function(e){return e.kind===Fr.SyntaxKind.NamespaceImport},t.isNamespaceExportDeclaration=function(e){return e.kind===Fr.SyntaxKind.NamespaceExportDeclaration},t.isNewExpression=function(e){return e.kind===Fr.SyntaxKind.NewExpression},t.isNonNullExpression=function(e){return e.kind===Fr.SyntaxKind.NonNullExpression},t.isNoSubstitutionTemplateLiteral=function(e){return e.kind===Fr.SyntaxKind.NoSubstitutionTemplateLiteral},t.isNullLiteral=function(e){return e.kind===Fr.SyntaxKind.NullKeyword},t.isNumericLiteral=function(e){return e.kind===Fr.SyntaxKind.NumericLiteral},t.isNumericOrStringLikeLiteral=function(e){switch(e.kind){case Fr.SyntaxKind.StringLiteral:case Fr.SyntaxKind.NumericLiteral:case Fr.SyntaxKind.NoSubstitutionTemplateLiteral:return!0;default:return!1}},t.isObjectBindingPattern=function(e){return e.kind===Fr.SyntaxKind.ObjectBindingPattern},t.isObjectLiteralExpression=function(e){return e.kind===Fr.SyntaxKind.ObjectLiteralExpression},t.isOmittedExpression=function(e){return e.kind===Fr.SyntaxKind.OmittedExpression},t.isParameterDeclaration=function(e){return e.kind===Fr.SyntaxKind.Parameter},t.isParenthesizedExpression=function(e){return e.kind===Fr.SyntaxKind.ParenthesizedExpression},t.isParenthesizedTypeNode=function(e){return e.kind===Fr.SyntaxKind.ParenthesizedType},t.isPostfixUnaryExpression=function(e){return e.kind===Fr.SyntaxKind.PostfixUnaryExpression},t.isPrefixUnaryExpression=function(e){return e.kind===Fr.SyntaxKind.PrefixUnaryExpression},t.isPropertyAccessExpression=n,t.isPropertyAssignment=function(e){return e.kind===Fr.SyntaxKind.PropertyAssignment},t.isPropertyDeclaration=function(e){return e.kind===Fr.SyntaxKind.PropertyDeclaration},t.isPropertySignature=function(e){return e.kind===Fr.SyntaxKind.PropertySignature},t.isQualifiedName=i,t.isRegularExpressionLiteral=function(e){return e.kind===Fr.SyntaxKind.RegularExpressionLiteral},t.isReturnStatement=function(e){return e.kind===Fr.SyntaxKind.ReturnStatement},t.isSetAccessorDeclaration=function(e){return e.kind===Fr.SyntaxKind.SetAccessor},t.isShorthandPropertyAssignment=function(e){return e.kind===Fr.SyntaxKind.ShorthandPropertyAssignment},t.isSignatureDeclaration=function(e){return void 0!==e.parameters},t.isSourceFile=function(e){return e.kind===Fr.SyntaxKind.SourceFile},t.isSpreadAssignment=function(e){return e.kind===Fr.SyntaxKind.SpreadAssignment},t.isSpreadElement=function(e){return e.kind===Fr.SyntaxKind.SpreadElement},t.isStringLiteral=function(e){return e.kind===Fr.SyntaxKind.StringLiteral},t.isSwitchStatement=function(e){return e.kind===Fr.SyntaxKind.SwitchStatement},t.isSyntaxList=function(e){return e.kind===Fr.SyntaxKind.SyntaxList},t.isTaggedTemplateExpression=function(e){return e.kind===Fr.SyntaxKind.TaggedTemplateExpression},t.isTemplateExpression=function(e){return e.kind===Fr.SyntaxKind.TemplateExpression},t.isTemplateLiteral=function(e){return e.kind===Fr.SyntaxKind.TemplateExpression||e.kind===Fr.SyntaxKind.NoSubstitutionTemplateLiteral},t.isTextualLiteral=function(e){return e.kind===Fr.SyntaxKind.StringLiteral||e.kind===Fr.SyntaxKind.NoSubstitutionTemplateLiteral},t.isThrowStatement=function(e){return e.kind===Fr.SyntaxKind.ThrowStatement},t.isTryStatement=function(e){return e.kind===Fr.SyntaxKind.TryStatement},t.isTupleTypeNode=function(e){return e.kind===Fr.SyntaxKind.TupleType},t.isTypeAliasDeclaration=function(e){return e.kind===Fr.SyntaxKind.TypeAliasDeclaration},t.isTypeAssertion=function(e){return e.kind===Fr.SyntaxKind.TypeAssertionExpression},t.isTypeLiteralNode=function(e){return e.kind===Fr.SyntaxKind.TypeLiteral},t.isTypeOfExpression=function(e){return e.kind===Fr.SyntaxKind.TypeOfExpression},t.isTypeOperatorNode=function(e){return e.kind===Fr.SyntaxKind.TypeOperator},t.isTypeParameterDeclaration=function(e){return e.kind===Fr.SyntaxKind.TypeParameter},t.isTypePredicateNode=function(e){return e.kind===Fr.SyntaxKind.TypePredicate},t.isTypeReferenceNode=function(e){return e.kind===Fr.SyntaxKind.TypeReference},t.isTypeQueryNode=function(e){return e.kind===Fr.SyntaxKind.TypeQuery},t.isUnionTypeNode=function(e){return e.kind===Fr.SyntaxKind.UnionType},t.isVariableDeclaration=function(e){return e.kind===Fr.SyntaxKind.VariableDeclaration},t.isVariableStatement=function(e){return e.kind===Fr.SyntaxKind.VariableStatement},t.isVariableDeclarationList=function(e){return e.kind===Fr.SyntaxKind.VariableDeclarationList},t.isVoidExpression=function(e){return e.kind===Fr.SyntaxKind.VoidExpression},t.isWhileStatement=function(e){return e.kind===Fr.SyntaxKind.WhileStatement},t.isWithStatement=function(e){return e.kind===Fr.SyntaxKind.WithStatement}}));i(ta);ta.isAccessorDeclaration,ta.isArrayBindingPattern,ta.isArrayLiteralExpression,ta.isArrayTypeNode,ta.isArrowFunction,ta.isAsExpression,ta.isAssertionExpression,ta.isAwaitExpression,ta.isBinaryExpression,ta.isBindingElement,ta.isBindingPattern,ta.isBlock,ta.isBlockLike,ta.isBooleanLiteral,ta.isBreakOrContinueStatement,ta.isBreakStatement,ta.isCallExpression,ta.isCallLikeExpression,ta.isCallSignatureDeclaration,ta.isCaseBlock,ta.isCaseClause,ta.isCaseOrDefaultClause,ta.isCatchClause,ta.isClassDeclaration,ta.isClassExpression,ta.isClassLikeDeclaration,ta.isCommaListExpression,ta.isConditionalExpression,ta.isConditionalTypeNode,ta.isConstructorDeclaration,ta.isConstructorTypeNode,ta.isConstructSignatureDeclaration,ta.isContinueStatement,ta.isComputedPropertyName,ta.isDebuggerStatement,ta.isDecorator,ta.isDefaultClause,ta.isDeleteExpression,ta.isDoStatement,ta.isElementAccessExpression,ta.isEmptyStatement,ta.isEntityName,ta.isEntityNameExpression,ta.isEnumDeclaration,ta.isEnumMember,ta.isExportAssignment,ta.isExportDeclaration,ta.isExportSpecifier,ta.isExpression,ta.isExpressionStatement,ta.isExpressionWithTypeArguments,ta.isExternalModuleReference,ta.isForInStatement,ta.isForInOrOfStatement,ta.isForOfStatement,ta.isForStatement,ta.isFunctionDeclaration,ta.isFunctionExpression,ta.isFunctionTypeNode,ta.isGetAccessorDeclaration,ta.isIdentifier,ta.isIfStatement,ta.isImportClause,ta.isImportDeclaration,ta.isImportEqualsDeclaration,ta.isImportSpecifier,ta.isIndexedAccessTypeNode,ta.isIndexSignatureDeclaration,ta.isInferTypeNode,ta.isInterfaceDeclaration,ta.isIntersectionTypeNode,ta.isIterationStatement,ta.isJsDoc,ta.isJsxAttribute,ta.isJsxAttributeLike,ta.isJsxAttributes,ta.isJsxClosingElement,ta.isJsxClosingFragment,ta.isJsxElement,ta.isJsxExpression,ta.isJsxFragment,ta.isJsxOpeningElement,ta.isJsxOpeningFragment,ta.isJsxOpeningLikeElement,ta.isJsxSelfClosingElement,ta.isJsxSpreadAttribute,ta.isJsxText,ta.isLabeledStatement,ta.isLiteralExpression,ta.isLiteralTypeNode,ta.isMappedTypeNode,ta.isMetaProperty,ta.isMethodDeclaration,ta.isMethodSignature,ta.isModuleBlock,ta.isModuleDeclaration,ta.isNamedExports,ta.isNamedImports,ta.isNamespaceDeclaration,ta.isNamespaceImport,ta.isNamespaceExportDeclaration,ta.isNewExpression,ta.isNonNullExpression,ta.isNoSubstitutionTemplateLiteral,ta.isNullLiteral,ta.isNumericLiteral,ta.isNumericOrStringLikeLiteral,ta.isObjectBindingPattern,ta.isObjectLiteralExpression,ta.isOmittedExpression,ta.isParameterDeclaration,ta.isParenthesizedExpression,ta.isParenthesizedTypeNode,ta.isPostfixUnaryExpression,ta.isPrefixUnaryExpression,ta.isPropertyAccessExpression,ta.isPropertyAssignment,ta.isPropertyDeclaration,ta.isPropertySignature,ta.isQualifiedName,ta.isRegularExpressionLiteral,ta.isReturnStatement,ta.isSetAccessorDeclaration,ta.isShorthandPropertyAssignment,ta.isSignatureDeclaration,ta.isSourceFile,ta.isSpreadAssignment,ta.isSpreadElement,ta.isStringLiteral,ta.isSwitchStatement,ta.isSyntaxList,ta.isTaggedTemplateExpression,ta.isTemplateExpression,ta.isTemplateLiteral,ta.isTextualLiteral,ta.isThrowStatement,ta.isTryStatement,ta.isTupleTypeNode,ta.isTypeAliasDeclaration,ta.isTypeAssertion,ta.isTypeLiteralNode,ta.isTypeOfExpression,ta.isTypeOperatorNode,ta.isTypeParameterDeclaration,ta.isTypePredicateNode,ta.isTypeReferenceNode,ta.isTypeQueryNode,ta.isUnionTypeNode,ta.isVariableDeclaration,ta.isVariableStatement,ta.isVariableDeclarationList,ta.isVoidExpression,ta.isWhileStatement,ta.isWithStatement;var ra=o(ea),na=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ra.__exportStar(ta,t),t.isImportTypeNode=function(e){return e.kind===Fr.SyntaxKind.ImportType}}));i(na);na.isImportTypeNode;var ia=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ra.__exportStar(na,t),t.isOptionalTypeNode=function(e){return e.kind===Fr.SyntaxKind.OptionalType},t.isRestTypeNode=function(e){return e.kind===Fr.SyntaxKind.RestType},t.isSyntheticExpression=function(e){return e.kind===Fr.SyntaxKind.SyntheticExpression}}));i(ia);ia.isOptionalTypeNode,ia.isRestTypeNode,ia.isSyntheticExpression;var aa=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ra.__exportStar(ia,t),t.isBigIntLiteral=function(e){return e.kind===Fr.SyntaxKind.BigIntLiteral}}));i(aa);aa.isBigIntLiteral;var oa=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ra.__exportStar(aa,t)}));i(oa);var sa=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isConditionalType=function(e){return 0!=(e.flags&Fr.TypeFlags.Conditional)},t.isEnumType=function(e){return 0!=(e.flags&Fr.TypeFlags.Enum)},t.isGenericType=function(e){return 0!=(e.flags&Fr.TypeFlags.Object)&&0!=(e.objectFlags&Fr.ObjectFlags.ClassOrInterface)&&0!=(e.objectFlags&Fr.ObjectFlags.Reference)},t.isIndexedAccessType=function(e){return 0!=(e.flags&Fr.TypeFlags.IndexedAccess)},t.isIndexedAccessype=function(e){return 0!=(e.flags&Fr.TypeFlags.Index)},t.isInstantiableType=function(e){return 0!=(e.flags&Fr.TypeFlags.Instantiable)},t.isInterfaceType=function(e){return 0!=(e.flags&Fr.TypeFlags.Object)&&0!=(e.objectFlags&Fr.ObjectFlags.ClassOrInterface)},t.isIntersectionType=function(e){return 0!=(e.flags&Fr.TypeFlags.Intersection)},t.isLiteralType=function(e){return 0!=(e.flags&(Fr.TypeFlags.StringOrNumberLiteral|Fr.TypeFlags.BigIntLiteral))},t.isObjectType=function(e){return 0!=(e.flags&Fr.TypeFlags.Object)},t.isSubstitutionType=function(e){return 0!=(e.flags&Fr.TypeFlags.Substitution)},t.isTypeParameter=function(e){return 0!=(e.flags&Fr.TypeFlags.TypeParameter)},t.isTypeReference=function(e){return 0!=(e.flags&Fr.TypeFlags.Object)&&0!=(e.objectFlags&Fr.ObjectFlags.Reference)},t.isTypeVariable=function(e){return 0!=(e.flags&Fr.TypeFlags.TypeVariable)},t.isUnionOrIntersectionType=function(e){return 0!=(e.flags&Fr.TypeFlags.UnionOrIntersection)},t.isUnionType=function(e){return 0!=(e.flags&Fr.TypeFlags.Union)},t.isUniqueESSymbolType=function(e){return 0!=(e.flags&Fr.TypeFlags.UniqueESSymbol)}}));i(sa);sa.isConditionalType,sa.isEnumType,sa.isGenericType,sa.isIndexedAccessType,sa.isIndexedAccessype,sa.isInstantiableType,sa.isInterfaceType,sa.isIntersectionType,sa.isLiteralType,sa.isObjectType,sa.isSubstitutionType,sa.isTypeParameter,sa.isTypeReference,sa.isTypeVariable,sa.isUnionOrIntersectionType,sa.isUnionType,sa.isUniqueESSymbolType;var ca=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ra.__exportStar(sa,t)}));i(ca);var ua=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ra.__exportStar(ca,t);var r=ca;function n(e){return 0!==(e.flags&Fr.TypeFlags.Object&&e.objectFlags&Fr.ObjectFlags.Tuple)}t.isTupleType=n,t.isTupleTypeReference=function(e){return r.isTypeReference(e)&&n(e.target)}}));i(ua);ua.isTupleType,ua.isTupleTypeReference;var la=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ra.__exportStar(ua,t)}));i(la);var _a=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ra.__exportStar(la,t)}));i(_a);var da=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ra.__exportStar(oa,t),ra.__exportStar(_a,t)}));i(da);var pa=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ra.__exportStar(aa,t),ra.__exportStar(la,t)}));i(pa);var fa=a((function(e,t){function r(e,t){if(!n(t,Fr.TypeFlags.Undefined))return t;var r=n(t,Fr.TypeFlags.Null);return t=e.getNonNullableType(t),r?e.getNullableType(t,Fr.TypeFlags.Null):t}function n(e,t){var r=!0,n=!1,i=void 0;try{for(var o,s=a(e)[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var c=o.value;if(ma.isTypeFlagSet(c,t))return!0}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}return!1}function i(e,t,r){var n;return r|=Fr.TypeFlags.Any,function t(i){if(_a.isTypeParameter(i)&&void 0!==i.symbol&&void 0!==i.symbol.declarations){if(void 0===n)n=new Set([i]);else{if(n.has(i))return!1;n.add(i)}var a=i.symbol.declarations[0];return void 0===a.constraint||t(e.getTypeFromTypeNode(a.constraint))}return _a.isUnionType(i)?i.types.every(t):_a.isIntersectionType(i)?i.types.some(t):ma.isTypeFlagSet(i,r)}(t)}function a(e){return _a.isUnionType(e)?e.types:[e]}function o(e,t,r){return t(e)?e.types.some(r):r(e)}function s(e,t,r){var n=e.getApparentType(e.getTypeOfSymbolAtLocation(t,r));if(t.valueDeclaration.dotDotDotToken&&void 0===(n=n.getNumberIndexType()))return!1;var i=!0,o=!1,s=void 0;try{for(var c,u=a(n)[Symbol.iterator]();!(i=(c=u.next()).done);i=!0){if(0!==c.value.getCallSignatures().length)return!0}}catch(e){o=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw s}}return!1}function c(e,t){return ma.isTypeFlagSet(e,Fr.TypeFlags.BooleanLiteral)&&e.intrinsicName===(t?"true":"false")}function u(e,t){return t.startsWith("__")?e.getProperties().find((function(e){return e.escapedName===t})):e.getProperty(t)}function l(e,t,r){var n=!1,i=!1,o=!0,s=!1,c=void 0;try{for(var l,d=a(e)[Symbol.iterator]();!(o=(l=d.next()).done);o=!0){var p=l.value;if(void 0===u(p,t)){var f=(ma.isNumericPropertyName(t)?r.getIndexInfoOfType(p,Fr.IndexKind.Number):void 0)||r.getIndexInfoOfType(p,Fr.IndexKind.String);if(void 0!==f&&f.isReadonly){if(n)return!0;i=!0}}else{if(i||_(p,t,r))return!0;n=!0}}}catch(e){s=!0,c=e}finally{try{o||null==d.return||d.return()}finally{if(s)throw c}}return!1}function _(e,t,r){return o(e,_a.isIntersectionType,(function(e){var n=u(e,t);if(void 0===n)return!1;if(n.flags&Fr.SymbolFlags.Transient){if(/^(?:[1-9]\d*|0)$/.test(t)&&_a.isTupleTypeReference(e))return e.target.readonly;switch(function(e,t,r){if(!_a.isObjectType(e)||!ma.isObjectFlagSet(e,Fr.ObjectFlags.Mapped))return;var n=e.symbol.declarations[0];return void 0===n.readonlyToken||/^__@[^@]+$/.test(t)?l(e.modifiersType,t,r):n.readonlyToken.kind!==Fr.SyntaxKind.MinusToken}(e,t,r)){case!0:return!0;case!1:return!1}}return ma.isSymbolFlagSet(n,Fr.SymbolFlags.ValueModule)||d(n,r)}))}function d(e,t){return(e.flags&Fr.SymbolFlags.Accessor)===Fr.SymbolFlags.GetAccessor||void 0!==e.declarations&&e.declarations.some((function(e){return ma.isModifierFlagSet(e,Fr.ModifierFlags.Readonly)||oa.isVariableDeclaration(e)&&ma.isNodeFlagSet(e.parent,Fr.NodeFlags.Const)||oa.isCallExpression(e)&&ma.isReadonlyAssignmentDeclaration(e,t)||oa.isEnumMember(e)||(oa.isPropertyAssignment(e)||oa.isShorthandPropertyAssignment(e))&&ma.isInConstContext(e.parent)}))}Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyObjectType=function e(t){if(_a.isObjectType(t)&&t.objectFlags&Fr.ObjectFlags.Anonymous&&0===t.getProperties().length&&0===t.getCallSignatures().length&&0===t.getConstructSignatures().length&&void 0===t.getStringIndexType()&&void 0===t.getNumberIndexType()){var r=t.getBaseTypes();return void 0===r||r.every(e)}return!1},t.removeOptionalityFromType=r,t.isTypeAssignableToNumber=function(e,t){return i(e,t,Fr.TypeFlags.NumberLike)},t.isTypeAssignableToString=function(e,t){return i(e,t,Fr.TypeFlags.StringLike)},t.getCallSignaturesOfType=function e(t){if(_a.isUnionType(t)){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t.types[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var c=o.value;r.push.apply(r,E(e(c)))}}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r}if(_a.isIntersectionType(t)){var u,l=!0,_=!1,d=void 0;try{for(var p,f=t.types[Symbol.iterator]();!(l=(p=f.next()).done);l=!0){var m=e(p.value);if(0!==m.length){if(void 0!==u)return[];u=m}}}catch(e){_=!0,d=e}finally{try{l||null==f.return||f.return()}finally{if(_)throw d}}return void 0===u?[]:u}return t.getCallSignatures()},t.unionTypeParts=a,t.intersectionTypeParts=function(e){return _a.isIntersectionType(e)?e.types:[e]},t.someTypePart=o,t.isThenableType=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.getTypeAtLocation(t),n=!0,i=!1,o=void 0;try{for(var c,u=a(e.getApparentType(r))[Symbol.iterator]();!(n=(c=u.next()).done);n=!0){var l=c.value.getProperty("then");if(void 0!==l){var _=e.getTypeOfSymbolAtLocation(l,t),d=!0,p=!1,f=void 0;try{for(var m,g=a(_)[Symbol.iterator]();!(d=(m=g.next()).done);d=!0){var y=m.value,h=!0,v=!1,b=void 0;try{for(var x,D=y.getCallSignatures()[Symbol.iterator]();!(h=(x=D.next()).done);h=!0){var S=x.value;if(0!==S.parameters.length&&s(e,S.parameters[0],t))return!0}}catch(e){v=!0,b=e}finally{try{h||null==D.return||D.return()}finally{if(v)throw b}}}}catch(e){p=!0,f=e}finally{try{d||null==g.return||g.return()}finally{if(p)throw f}}}}}catch(e){i=!0,o=e}finally{try{n||null==u.return||u.return()}finally{if(i)throw o}}return!1},t.isFalsyType=function(e){return!!(e.flags&(Fr.TypeFlags.Undefined|Fr.TypeFlags.Null|Fr.TypeFlags.Void))||(_a.isLiteralType(e)?!e.value:c(e,!1))},t.isBooleanLiteralType=c,t.getPropertyOfType=u,t.isPropertyReadonlyInType=l,t.symbolHasReadonlyDeclaration=d,t.getPropertyNameFromType=function(e){if(e.flags&(Fr.TypeFlags.StringLiteral|Fr.TypeFlags.NumberLiteral)){var t=String(e.value);return{displayName:t,symbolName:Fr.escapeLeadingUnderscores(t)}}if(_a.isUniqueESSymbolType(e))return{displayName:"[".concat(e.symbol?e.symbol.name:e.escapedName.replace(/^__@|@\d+$/g,""),"]"),symbolName:e.escapedName}},t.getConstructorTypeOfClassLikeDeclaration=function(e,t){return t.getDeclaredTypeOfSymbol(void 0!==e.name?t.getSymbolAtLocation(e.name):t.getTypeAtLocation(e).symbol)},t.getInstanceTypeOfClassLikeDeclaration=function(e,t){return e.kind===Fr.SyntaxKind.ClassDeclaration?t.getTypeAtLocation(e):t.getTypeOfSymbolAtLocation(t.getTypeAtLocation(e).getProperty("prototype"),e)},t.getIteratorYieldResultFromIteratorResult=function(e,t,n){return _a.isUnionType(e)&&e.types.find((function(e){var i=e.getProperty("done");return void 0!==i&&c(r(n,n.getTypeOfSymbolAtLocation(i,t)),!1)}))||e}}));i(fa);fa.isEmptyObjectType,fa.removeOptionalityFromType,fa.isTypeAssignableToNumber,fa.isTypeAssignableToString,fa.getCallSignaturesOfType,fa.unionTypeParts,fa.intersectionTypeParts,fa.someTypePart,fa.isThenableType,fa.isFalsyType,fa.isBooleanLiteralType,fa.getPropertyOfType,fa.isPropertyReadonlyInType,fa.symbolHasReadonlyDeclaration,fa.getPropertyNameFromType,fa.getConstructorTypeOfClassLikeDeclaration,fa.getInstanceTypeOfClassLikeDeclaration,fa.getIteratorYieldResultFromIteratorResult;var ma=a((function(e,t){function r(e){return e>=Fr.SyntaxKind.FirstToken&&e<=Fr.SyntaxKind.LastToken}function n(e){return e>=Fr.SyntaxKind.FirstAssignment&&e<=Fr.SyntaxKind.LastAssignment}function i(e){if(void 0===e)return!1;for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=!0,a=!1,o=void 0;try{for(var s,c=e[Symbol.iterator]();!(i=(s=c.next()).done);i=!0){var u=s.value;if(r.includes(u.kind))return!0}}catch(e){a=!0,o=e}finally{try{i||null==c.return||c.return()}finally{if(a)throw o}}return!1}function a(e,t){return 0!=(e.flags&t)}function o(e,t,n,i){if(!(t<e.pos||t>=e.end))return r(e.kind)?e:(void 0===n&&(n=e.getSourceFile()),s(e,t,n,!0===i))}function s(e,t,n,i){e:for(;;){var a=!0,o=!1,s=void 0;try{for(var c,u=e.getChildren(n)[Symbol.iterator]();!(a=(c=u.next()).done);a=!0){var l=c.value;if(l.end>t&&(i||l.kind!==Fr.SyntaxKind.JSDocComment)){if(r(l.kind))return l;e=l;continue e}}}catch(e){o=!0,s=e}finally{try{a||null==u.return||u.return()}finally{if(o)throw s}}return}}function c(e,t){var r=o(arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,t,e);if(!(void 0===r||r.kind===Fr.SyntaxKind.JsxText||t>=r.end-(Fr.tokenToString(r.kind)||"").length)){var n=0===r.pos?(Fr.getShebang(e.text)||"").length:r.pos;return 0!==n&&Fr.forEachTrailingCommentRange(e.text,n,u,t)||Fr.forEachLeadingCommentRange(e.text,n,u,t)}}function u(e,t,r,n,i){return i>=e&&i<t?{pos:e,end:t,kind:r}:void 0}function l(e){if(e.kind===Fr.SyntaxKind.ComputedPropertyName){if(!oa.isLiteralExpression(e.expression))return;return pa.isBigIntLiteral(e.expression)?e.expression.text.slice(0,-1):e.expression.text}return e.text}function _(e,t){var r=!0,n=!1,i=void 0;try{for(var a,o=e.elements[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var s=a.value;if(s.kind===Fr.SyntaxKind.BindingElement){var c=void 0;if(c=s.name.kind===Fr.SyntaxKind.Identifier?t(s):_(s.name,t))return c}}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}}var d;function p(e){return 0!=(e.flags&Fr.NodeFlags.BlockScoped)}function f(e){switch(e.kind){case Fr.SyntaxKind.InterfaceDeclaration:case Fr.SyntaxKind.TypeAliasDeclaration:case Fr.SyntaxKind.MappedType:return 4;case Fr.SyntaxKind.ConditionalType:return 8;default:return 0}}function g(e){switch(e.kind){case Fr.SyntaxKind.FunctionExpression:case Fr.SyntaxKind.ArrowFunction:case Fr.SyntaxKind.Constructor:case Fr.SyntaxKind.ModuleDeclaration:case Fr.SyntaxKind.ClassDeclaration:case Fr.SyntaxKind.ClassExpression:case Fr.SyntaxKind.EnumDeclaration:case Fr.SyntaxKind.MethodDeclaration:case Fr.SyntaxKind.FunctionDeclaration:case Fr.SyntaxKind.GetAccessor:case Fr.SyntaxKind.SetAccessor:case Fr.SyntaxKind.MethodSignature:case Fr.SyntaxKind.CallSignature:case Fr.SyntaxKind.ConstructSignature:case Fr.SyntaxKind.ConstructorType:case Fr.SyntaxKind.FunctionType:return 1;case Fr.SyntaxKind.SourceFile:return Fr.isExternalModule(e)?1:0;default:return 0}}function h(e){switch(e.kind){case Fr.SyntaxKind.Block:var t=e.parent;return t.kind===Fr.SyntaxKind.CatchClause||t.kind!==Fr.SyntaxKind.SourceFile&&g(t)?0:2;case Fr.SyntaxKind.ForStatement:case Fr.SyntaxKind.ForInStatement:case Fr.SyntaxKind.ForOfStatement:case Fr.SyntaxKind.CaseBlock:case Fr.SyntaxKind.CatchClause:case Fr.SyntaxKind.WithStatement:return 2;default:return 0}}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.getSourceFile();return function e(i){return r(i.kind)?t(i):i.kind!==Fr.SyntaxKind.JSDocComment?i.getChildren(n).forEach(e):void 0}(e)}function b(e){return e.kind===Fr.SyntaxKind.JsxElement||e.kind===Fr.SyntaxKind.JsxFragment}function x(e,t){return void 0===d?d=Fr.createScanner(t,!1,void 0,e):(d.setScriptTarget(t),d.setText(e)),d.scan(),d}function D(e){return e>=65536?2:1}function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fr.ScriptTarget.Latest;if(0===e.length)return!1;var r=e.codePointAt(0);if(!Fr.isIdentifierStart(r,t))return!1;for(var n=D(r);n<e.length;n+=D(r))if(r=e.codePointAt(n),!Fr.isIdentifierPart(r,t))return!1;return!0}function T(e,t,r){return Fr.getLineAndCharacterOfPosition(e,t).line===Fr.getLineAndCharacterOfPosition(e,r).line}function E(e,t){switch(e.kind){case Fr.SyntaxKind.CallExpression:case Fr.SyntaxKind.PostfixUnaryExpression:case Fr.SyntaxKind.AwaitExpression:case Fr.SyntaxKind.YieldExpression:case Fr.SyntaxKind.DeleteExpression:return!0;case Fr.SyntaxKind.TypeAssertionExpression:case Fr.SyntaxKind.AsExpression:case Fr.SyntaxKind.ParenthesizedExpression:case Fr.SyntaxKind.NonNullExpression:case Fr.SyntaxKind.VoidExpression:case Fr.SyntaxKind.TypeOfExpression:case Fr.SyntaxKind.PropertyAccessExpression:case Fr.SyntaxKind.SpreadElement:case Fr.SyntaxKind.PartiallyEmittedExpression:return E(e.expression,t);case Fr.SyntaxKind.BinaryExpression:return n(e.operatorToken.kind)||E(e.left,t)||E(e.right,t);case Fr.SyntaxKind.PrefixUnaryExpression:switch(e.operator){case Fr.SyntaxKind.PlusPlusToken:case Fr.SyntaxKind.MinusMinusToken:return!0;default:return E(e.operand,t)}case Fr.SyntaxKind.ElementAccessExpression:return E(e.expression,t)||void 0!==e.argumentExpression&&E(e.argumentExpression,t);case Fr.SyntaxKind.ConditionalExpression:return E(e.condition,t)||E(e.whenTrue,t)||E(e.whenFalse,t);case Fr.SyntaxKind.NewExpression:if(2&t||E(e.expression,t))return!0;if(void 0!==e.arguments){var r=!0,i=!1,a=void 0;try{for(var o,s=e.arguments[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){if(E(o.value,t))return!0}}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}}return!1;case Fr.SyntaxKind.TaggedTemplateExpression:if(1&t||E(e.tag,t))return!0;if(e.template.kind===Fr.SyntaxKind.NoSubstitutionTemplateLiteral)return!1;e=e.template;case Fr.SyntaxKind.TemplateExpression:var c=!0,u=!1,l=void 0;try{for(var _,d=e.templateSpans[Symbol.iterator]();!(c=(_=d.next()).done);c=!0){if(E(_.value.expression,t))return!0}}catch(e){u=!0,l=e}finally{try{c||null==d.return||d.return()}finally{if(u)throw l}}return!1;case Fr.SyntaxKind.ClassExpression:return function(e,t){if(void 0!==e.heritageClauses&&e.heritageClauses[0].token===Fr.SyntaxKind.ExtendsKeyword){var r=!0,n=!1,i=void 0;try{for(var a,o=e.heritageClauses[0].types[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){if(E(a.value.expression,t))return!0}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}}var s=!0,c=!1,u=void 0;try{for(var l,_=e.members[Symbol.iterator]();!(s=(l=_.next()).done);s=!0){var d=l.value;if(void 0!==d.name&&d.name.kind===Fr.SyntaxKind.ComputedPropertyName&&E(d.name.expression,t)||oa.isPropertyDeclaration(d)&&void 0!==d.initializer&&E(d.initializer,t))return!0}}catch(e){c=!0,u=e}finally{try{s||null==_.return||_.return()}finally{if(c)throw u}}return!1}(e,t);case Fr.SyntaxKind.ArrayLiteralExpression:var p=!0,f=!1,m=void 0;try{for(var g,y=e.elements[Symbol.iterator]();!(p=(g=y.next()).done);p=!0){if(E(g.value,t))return!0}}catch(e){f=!0,m=e}finally{try{p||null==y.return||y.return()}finally{if(f)throw m}}return!1;case Fr.SyntaxKind.ObjectLiteralExpression:var h=!0,v=!1,b=void 0;try{for(var x,D=e.properties[Symbol.iterator]();!(h=(x=D.next()).done);h=!0){var S=x.value;if(void 0!==S.name&&S.name.kind===Fr.SyntaxKind.ComputedPropertyName&&E(S.name.expression,t))return!0;switch(S.kind){case Fr.SyntaxKind.PropertyAssignment:if(E(S.initializer,t))return!0;break;case Fr.SyntaxKind.SpreadAssignment:if(E(S.expression,t))return!0}}}catch(e){v=!0,b=e}finally{try{h||null==D.return||D.return()}finally{if(v)throw b}}return!1;case Fr.SyntaxKind.JsxExpression:return void 0!==e.expression&&E(e.expression,t);case Fr.SyntaxKind.JsxElement:case Fr.SyntaxKind.JsxFragment:var T=!0,C=!1,k=void 0;try{for(var N,A=e.children[Symbol.iterator]();!(T=(N=A.next()).done);T=!0){var F=N.value;if(F.kind!==Fr.SyntaxKind.JsxText&&E(F,t))return!0}}catch(e){C=!0,k=e}finally{try{T||null==A.return||A.return()}finally{if(C)throw k}}if(e.kind===Fr.SyntaxKind.JsxFragment)return!1;e=e.openingElement;case Fr.SyntaxKind.JsxSelfClosingElement:case Fr.SyntaxKind.JsxOpeningElement:if(4&t)return!0;var P=!0,w=!1,I=void 0;try{for(var O,M=e.attributes.properties[Symbol.iterator]();!(P=(O=M.next()).done);P=!0){var L=O.value;if(L.kind===Fr.SyntaxKind.JsxSpreadAttribute){if(E(L.expression,t))return!0}else if(void 0!==L.initializer&&E(L.initializer,t))return!0}}catch(e){w=!0,I=e}finally{try{P||null==M.return||M.return()}finally{if(w)throw I}}return!1;case Fr.SyntaxKind.CommaListExpression:var R=!0,B=!1,j=void 0;try{for(var K,J=e.elements[Symbol.iterator]();!(R=(K=J.next()).done);R=!0){if(E(K.value,t))return!0}}catch(e){B=!0,j=e}finally{try{R||null==J.return||J.return()}finally{if(B)throw j}}return!1;default:return!1}}function C(e){switch(e.kind){case Fr.SyntaxKind.ShorthandPropertyAssignment:if(void 0!==e.objectAssignmentInitializer)return!0;case Fr.SyntaxKind.PropertyAssignment:case Fr.SyntaxKind.SpreadAssignment:e=e.parent;break;case Fr.SyntaxKind.SpreadElement:if(e.parent.kind!==Fr.SyntaxKind.ArrayLiteralExpression)return!1;e=e.parent}for(;;)switch(e.parent.kind){case Fr.SyntaxKind.BinaryExpression:return e.parent.left===e&&e.parent.operatorToken.kind===Fr.SyntaxKind.EqualsToken;case Fr.SyntaxKind.ForOfStatement:return e.parent.initializer===e;case Fr.SyntaxKind.ArrayLiteralExpression:case Fr.SyntaxKind.ObjectLiteralExpression:e=e.parent;break;case Fr.SyntaxKind.SpreadAssignment:case Fr.SyntaxKind.PropertyAssignment:e=e.parent.parent;break;case Fr.SyntaxKind.SpreadElement:if(e.parent.parent.kind!==Fr.SyntaxKind.ArrayLiteralExpression)return!1;e=e.parent.parent;break;default:return!1}}function k(e){var t=e.parent;switch(t.kind){case Fr.SyntaxKind.DeleteExpression:return 4;case Fr.SyntaxKind.PostfixUnaryExpression:return 3;case Fr.SyntaxKind.PrefixUnaryExpression:return t.operator===Fr.SyntaxKind.PlusPlusToken||t.operator===Fr.SyntaxKind.MinusMinusToken?3:1;case Fr.SyntaxKind.BinaryExpression:return t.right===e?1:n(t.operatorToken.kind)?t.operatorToken.kind===Fr.SyntaxKind.EqualsToken?2:3:1;case Fr.SyntaxKind.ShorthandPropertyAssignment:return t.objectAssignmentInitializer===e?1:C(t)?2:1;case Fr.SyntaxKind.PropertyAssignment:return t.name===e?0:C(t)?2:1;case Fr.SyntaxKind.ArrayLiteralExpression:case Fr.SyntaxKind.SpreadElement:case Fr.SyntaxKind.SpreadAssignment:return C(t)?2:1;case Fr.SyntaxKind.ParenthesizedExpression:case Fr.SyntaxKind.NonNullExpression:case Fr.SyntaxKind.TypeAssertionExpression:case Fr.SyntaxKind.AsExpression:return k(t);case Fr.SyntaxKind.ForOfStatement:case Fr.SyntaxKind.ForInStatement:return t.initializer===e?2:1;case Fr.SyntaxKind.ExpressionWithTypeArguments:return t.parent.token===Fr.SyntaxKind.ExtendsKeyword&&t.parent.parent.kind!==Fr.SyntaxKind.InterfaceDeclaration?1:0;case Fr.SyntaxKind.ComputedPropertyName:case Fr.SyntaxKind.ExpressionStatement:case Fr.SyntaxKind.TypeOfExpression:case Fr.SyntaxKind.ElementAccessExpression:case Fr.SyntaxKind.ForStatement:case Fr.SyntaxKind.IfStatement:case Fr.SyntaxKind.DoStatement:case Fr.SyntaxKind.WhileStatement:case Fr.SyntaxKind.SwitchStatement:case Fr.SyntaxKind.WithStatement:case Fr.SyntaxKind.ThrowStatement:case Fr.SyntaxKind.CallExpression:case Fr.SyntaxKind.NewExpression:case Fr.SyntaxKind.TaggedTemplateExpression:case Fr.SyntaxKind.JsxExpression:case Fr.SyntaxKind.Decorator:case Fr.SyntaxKind.TemplateSpan:case Fr.SyntaxKind.JsxOpeningElement:case Fr.SyntaxKind.JsxSelfClosingElement:case Fr.SyntaxKind.JsxSpreadAttribute:case Fr.SyntaxKind.VoidExpression:case Fr.SyntaxKind.ReturnStatement:case Fr.SyntaxKind.AwaitExpression:case Fr.SyntaxKind.YieldExpression:case Fr.SyntaxKind.ConditionalExpression:case Fr.SyntaxKind.CaseClause:case Fr.SyntaxKind.JsxElement:return 1;case Fr.SyntaxKind.ArrowFunction:return t.body===e?1:2;case Fr.SyntaxKind.PropertyDeclaration:case Fr.SyntaxKind.VariableDeclaration:case Fr.SyntaxKind.Parameter:case Fr.SyntaxKind.EnumMember:case Fr.SyntaxKind.BindingElement:case Fr.SyntaxKind.JsxAttribute:return t.initializer===e?1:0;case Fr.SyntaxKind.PropertyAccessExpression:return t.expression===e?1:0;case Fr.SyntaxKind.ExportAssignment:return t.isExportEquals?1:0}return 0}function N(e){switch(e.kind){case Fr.SyntaxKind.Parameter:case Fr.SyntaxKind.CallSignature:case Fr.SyntaxKind.ConstructSignature:case Fr.SyntaxKind.MethodSignature:case Fr.SyntaxKind.PropertySignature:case Fr.SyntaxKind.ArrowFunction:case Fr.SyntaxKind.ParenthesizedExpression:case Fr.SyntaxKind.SpreadAssignment:case Fr.SyntaxKind.ShorthandPropertyAssignment:case Fr.SyntaxKind.PropertyAssignment:case Fr.SyntaxKind.FunctionExpression:case Fr.SyntaxKind.FunctionDeclaration:case Fr.SyntaxKind.LabeledStatement:case Fr.SyntaxKind.ExpressionStatement:case Fr.SyntaxKind.VariableStatement:case Fr.SyntaxKind.Constructor:case Fr.SyntaxKind.MethodDeclaration:case Fr.SyntaxKind.PropertyDeclaration:case Fr.SyntaxKind.GetAccessor:case Fr.SyntaxKind.SetAccessor:case Fr.SyntaxKind.ClassDeclaration:case Fr.SyntaxKind.ClassExpression:case Fr.SyntaxKind.InterfaceDeclaration:case Fr.SyntaxKind.TypeAliasDeclaration:case Fr.SyntaxKind.EnumMember:case Fr.SyntaxKind.EnumDeclaration:case Fr.SyntaxKind.ModuleDeclaration:case Fr.SyntaxKind.ImportEqualsDeclaration:case Fr.SyntaxKind.IndexSignature:case Fr.SyntaxKind.FunctionType:case Fr.SyntaxKind.ConstructorType:case Fr.SyntaxKind.JSDocFunctionType:case Fr.SyntaxKind.EndOfFileToken:case Fr.SyntaxKind.ExportDeclaration:return!0;default:return!1}}function A(e,t){if(e.kind===Fr.SyntaxKind.EndOfFileToken)return F(e,t||e.parent);var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=e.getChildren(t)[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var c=o.value;if(!oa.isJsDoc(c))break;r.push(c)}}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r}function F(e,t,r){var n=e.getStart(t),i=Fr[r&&T(t,e.pos,n)?"forEachTrailingCommentRange":"forEachLeadingCommentRange"](t.text,e.pos,(function(e,r,n){return n===Fr.SyntaxKind.MultiLineCommentTrivia&&"*"===t.text[e+2]?{pos:e}:void 0}));if(void 0===i)return[];var a=i.pos,o=t.text.slice(a,n),s=Fr.createSourceFile("jsdoc.ts","".concat(o,"var a;"),t.languageVersion),c=A(s.statements[0],s),u=!0,l=!1,_=void 0;try{for(var d,p=c[Symbol.iterator]();!(u=(d=p.next()).done);u=!0){f(d.value,e)}}catch(e){l=!0,_=e}finally{try{u||null==p.return||p.return()}finally{if(l)throw _}}return c;function f(e,t){return e.pos+=a,e.end+=a,e.parent=t,Fr.forEachChild(e,(function(t){return f(t,e)}),(function(t){t.pos+=a,t.end+=a;var r=!0,n=!1,i=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){f(o.value,e)}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}}))}}function P(e,t){return new w(e,t).find()}Object.defineProperty(t,"__esModule",{value:!0}),t.getChildOfKind=function(e,t,r){var n=!0,i=!1,a=void 0;try{for(var o,s=e.getChildren(r)[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var c=o.value;if(c.kind===t)return c}}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}},t.isTokenKind=r,t.isNodeKind=function(e){return e>=Fr.SyntaxKind.FirstNode},t.isAssignmentKind=n,t.isTypeNodeKind=function(e){return e>=Fr.SyntaxKind.FirstTypeNode&&e<=Fr.SyntaxKind.LastTypeNode},t.isJsDocKind=function(e){return e>=Fr.SyntaxKind.FirstJSDocNode&&e<=Fr.SyntaxKind.LastJSDocNode},t.isKeywordKind=function(e){return e>=Fr.SyntaxKind.FirstKeyword&&e<=Fr.SyntaxKind.LastKeyword},t.isThisParameter=function(e){return e.name.kind===Fr.SyntaxKind.Identifier&&e.name.originalKeywordKind===Fr.SyntaxKind.ThisKeyword},t.getModifier=function(e,t){if(void 0!==e.modifiers){var r=!0,n=!1,i=void 0;try{for(var a,o=e.modifiers[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var s=a.value;if(s.kind===t)return s}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}}},t.hasModifier=i,t.isParameterProperty=function(e){return i(e.modifiers,Fr.SyntaxKind.PublicKeyword,Fr.SyntaxKind.ProtectedKeyword,Fr.SyntaxKind.PrivateKeyword,Fr.SyntaxKind.ReadonlyKeyword)},t.hasAccessModifier=function(e){return i(e.modifiers,Fr.SyntaxKind.PublicKeyword,Fr.SyntaxKind.ProtectedKeyword,Fr.SyntaxKind.PrivateKeyword)},t.isNodeFlagSet=a,t.isTypeFlagSet=a,t.isSymbolFlagSet=a,t.isObjectFlagSet=function(e,t){return 0!=(e.objectFlags&t)},t.isModifierFlagSet=function(e,t){return 0!=(Fr.getCombinedModifierFlags(e)&t)},t.getPreviousStatement=function(e){var t=e.parent;if(oa.isBlockLike(t)){var r=t.statements.indexOf(e);if(r>0)return t.statements[r-1]}},t.getNextStatement=function(e){var t=e.parent;if(oa.isBlockLike(t)){var r=t.statements.indexOf(e);if(r<t.statements.length)return t.statements[r+1]}},t.getPreviousToken=function(e,t){for(var n=e.parent;void 0!==n&&n.pos===e.pos;)n=n.parent;if(void 0!==n)e:for(;;){for(var i=n.getChildren(t),a=i.length-1;a>=0;--a){var o=i[a];if(o.pos<e.pos&&o.kind!==Fr.SyntaxKind.JSDocComment){if(r(o.kind))return o;n=o;continue e}}return}},t.getNextToken=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.getSourceFile();if(e.kind!==Fr.SyntaxKind.SourceFile&&e.kind!==Fr.SyntaxKind.EndOfFileToken){var r=e.end;for(e=e.parent;e.end===r;){if(void 0===e.parent)return e.endOfFileToken;e=e.parent}return s(e,r,t,!1)}},t.getTokenAtPosition=o,t.getCommentAtPosition=c,t.isPositionInComment=function(e,t,r){return void 0!==c(e,t,r)},t.commentText=function(e,t){return e.substring(t.pos+2,t.kind===Fr.SyntaxKind.SingleLineCommentTrivia?t.end:t.end-2)},t.getWrappedNodeAtPosition=function(e,t){if(!(e.node.pos>t||e.node.end<=t))e:for(;;){var r=!0,n=!1,i=void 0;try{for(var a,o=e.children[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var s=a.value;if(s.node.pos>t)return e;if(s.node.end>t){e=s;continue e}}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}return e}},t.getPropertyName=l,t.forEachDestructuringIdentifier=_,t.forEachDeclaredVariable=function(e,t){var r=!0,n=!1,i=void 0;try{for(var a,o=e.declarations[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var s=a.value,c=void 0;if(c=s.name.kind===Fr.SyntaxKind.Identifier?t(s):_(s.name,t))return c}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}},function(e){e[e.Var=0]="Var",e[e.Let=1]="Let",e[e.Const=2]="Const"}(t.VariableDeclarationKind||(t.VariableDeclarationKind={})),t.getVariableDeclarationKind=function(e){return e.flags&Fr.NodeFlags.Let?1:e.flags&Fr.NodeFlags.Const?2:0},t.isBlockScopedVariableDeclarationList=p,t.isBlockScopedVariableDeclaration=function(e){var t=e.parent;return t.kind===Fr.SyntaxKind.CatchClause||p(t)},t.isBlockScopedDeclarationStatement=function(e){switch(e.kind){case Fr.SyntaxKind.VariableStatement:return p(e.declarationList);case Fr.SyntaxKind.ClassDeclaration:case Fr.SyntaxKind.EnumDeclaration:case Fr.SyntaxKind.InterfaceDeclaration:case Fr.SyntaxKind.TypeAliasDeclaration:return!0;default:return!1}},t.isInSingleStatementContext=function(e){switch(e.parent.kind){case Fr.SyntaxKind.ForStatement:case Fr.SyntaxKind.ForInStatement:case Fr.SyntaxKind.ForOfStatement:case Fr.SyntaxKind.WhileStatement:case Fr.SyntaxKind.DoStatement:case Fr.SyntaxKind.IfStatement:case Fr.SyntaxKind.WithStatement:case Fr.SyntaxKind.LabeledStatement:return!0;default:return!1}},function(e){e[e.None=0]="None",e[e.Function=1]="Function",e[e.Block=2]="Block",e[e.Type=4]="Type",e[e.ConditionalType=8]="ConditionalType"}(t.ScopeBoundary||(t.ScopeBoundary={})),function(e){e[e.Function=1]="Function",e[e.Block=3]="Block",e[e.Type=7]="Type",e[e.InferType=8]="InferType"}(t.ScopeBoundarySelector||(t.ScopeBoundarySelector={})),t.isScopeBoundary=function(e){return g(e)||h(e)||f(e)},t.isTypeScopeBoundary=f,t.isFunctionScopeBoundary=g,t.isBlockScopeBoundary=h,t.hasOwnThisReference=function(e){switch(e.kind){case Fr.SyntaxKind.ClassDeclaration:case Fr.SyntaxKind.ClassExpression:case Fr.SyntaxKind.FunctionExpression:return!0;case Fr.SyntaxKind.FunctionDeclaration:return void 0!==e.body;case Fr.SyntaxKind.MethodDeclaration:case Fr.SyntaxKind.GetAccessor:case Fr.SyntaxKind.SetAccessor:return e.parent.kind===Fr.SyntaxKind.ObjectLiteralExpression;default:return!1}},t.isFunctionWithBody=function(e){switch(e.kind){case Fr.SyntaxKind.GetAccessor:case Fr.SyntaxKind.SetAccessor:case Fr.SyntaxKind.FunctionDeclaration:case Fr.SyntaxKind.MethodDeclaration:case Fr.SyntaxKind.Constructor:return void 0!==e.body;case Fr.SyntaxKind.FunctionExpression:case Fr.SyntaxKind.ArrowFunction:return!0;default:return!1}},t.forEachToken=v,t.forEachTokenWithTrivia=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.getSourceFile(),n=r.text,i=Fr.createScanner(r.languageVersion,!1,r.languageVariant,n);return v(e,(function(e){var a=e.kind===Fr.SyntaxKind.JsxText||e.pos===e.end?e.pos:e.getStart(r);if(a!==e.pos){i.setTextPos(e.pos);for(var o=i.scan(),s=i.getTokenPos();s<a;){var c=i.getTextPos();if(t(n,o,{pos:s,end:c},e.parent),c===a)break;o=i.scan(),s=i.getTokenPos()}}return t(n,e.kind,{end:e.end,pos:a},e.parent)}),r)},t.forEachComment=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.getSourceFile(),n=r.text,i=r.languageVariant!==Fr.LanguageVariant.JSX;return v(e,(function(e){if(e.pos!==e.end)return e.kind!==Fr.SyntaxKind.JsxText&&Fr.forEachLeadingCommentRange(n,0===e.pos?(Fr.getShebang(n)||"").length:e.pos,a),i||function(e){switch(e.kind){case Fr.SyntaxKind.CloseBraceToken:return e.parent.kind!==Fr.SyntaxKind.JsxExpression||!b(e.parent.parent);case Fr.SyntaxKind.GreaterThanToken:switch(e.parent.kind){case Fr.SyntaxKind.JsxOpeningElement:return e.end!==e.parent.end;case Fr.SyntaxKind.JsxOpeningFragment:return!1;case Fr.SyntaxKind.JsxSelfClosingElement:return e.end!==e.parent.end||!b(e.parent.parent);case Fr.SyntaxKind.JsxClosingElement:case Fr.SyntaxKind.JsxClosingFragment:return!b(e.parent.parent.parent)}}return!0}(e)?Fr.forEachTrailingCommentRange(n,e.end,a):void 0}),r);function a(e,r,i){t(n,{pos:e,end:r,kind:i})}},t.getLineRanges=function(e){for(var t=e.getLineStarts(),r=[],n=t.length,i=e.text,a=0,o=1;o<n;++o){for(var s=t[o],c=s;c>a&&Fr.isLineBreak(i.charCodeAt(c-1));--c);r.push({pos:a,end:s,contentLength:c-a}),a=s}return r.push({pos:a,end:e.end,contentLength:e.end-a}),r},t.getLineBreakStyle=function(e){var t=e.getLineStarts();return 1===t.length||t[1]<2||"\r"!==e.text[t[1]-2]?"\n":"\r\n"},t.isValidIdentifier=function(e){var t=x(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fr.ScriptTarget.Latest);return t.isIdentifier()&&t.getTextPos()===e.length&&0===t.getTokenPos()},t.isValidPropertyAccess=S,t.isValidPropertyName=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fr.ScriptTarget.Latest;if(S(e,t))return!0;var r=x(e,t);return r.getTextPos()===e.length&&r.getToken()===Fr.SyntaxKind.NumericLiteral&&r.getTokenValue()===e},t.isValidNumericLiteral=function(e){var t=x(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fr.ScriptTarget.Latest);return t.getToken()===Fr.SyntaxKind.NumericLiteral&&t.getTextPos()===e.length&&0===t.getTokenPos()},t.isValidJsxIdentifier=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fr.ScriptTarget.Latest;if(0===e.length)return!1;var r=e.codePointAt(0);if(!Fr.isIdentifierStart(r,t))return!1;for(var n=D(r);n<e.length;n+=D(r))if(r=e.codePointAt(n),!Fr.isIdentifierPart(r,t)&&45!==r)return!1;return!0},t.isNumericPropertyName=function(e){return String(+e)===e},t.isSameLine=T,function(e){e[e.None=0]="None",e[e.TaggedTemplate=1]="TaggedTemplate",e[e.Constructor=2]="Constructor",e[e.JsxElement=4]="JsxElement"}(t.SideEffectOptions||(t.SideEffectOptions={})),t.hasSideEffects=E,t.getDeclarationOfBindingElement=function(e){for(var t=e.parent.parent;t.kind===Fr.SyntaxKind.BindingElement;)t=t.parent.parent;return t},t.isExpressionValueUsed=function(e){for(;;){var t=e.parent;switch(t.kind){case Fr.SyntaxKind.CallExpression:case Fr.SyntaxKind.NewExpression:case Fr.SyntaxKind.ElementAccessExpression:case Fr.SyntaxKind.WhileStatement:case Fr.SyntaxKind.DoStatement:case Fr.SyntaxKind.WithStatement:case Fr.SyntaxKind.ThrowStatement:case Fr.SyntaxKind.ReturnStatement:case Fr.SyntaxKind.JsxExpression:case Fr.SyntaxKind.JsxSpreadAttribute:case Fr.SyntaxKind.JsxElement:case Fr.SyntaxKind.JsxFragment:case Fr.SyntaxKind.JsxSelfClosingElement:case Fr.SyntaxKind.ComputedPropertyName:case Fr.SyntaxKind.ArrowFunction:case Fr.SyntaxKind.ExportSpecifier:case Fr.SyntaxKind.ExportAssignment:case Fr.SyntaxKind.ImportDeclaration:case Fr.SyntaxKind.ExternalModuleReference:case Fr.SyntaxKind.Decorator:case Fr.SyntaxKind.TaggedTemplateExpression:case Fr.SyntaxKind.TemplateSpan:case Fr.SyntaxKind.ExpressionWithTypeArguments:case Fr.SyntaxKind.TypeOfExpression:case Fr.SyntaxKind.AwaitExpression:case Fr.SyntaxKind.YieldExpression:case Fr.SyntaxKind.LiteralType:case Fr.SyntaxKind.JsxAttributes:case Fr.SyntaxKind.JsxOpeningElement:case Fr.SyntaxKind.JsxClosingElement:case Fr.SyntaxKind.IfStatement:case Fr.SyntaxKind.CaseClause:case Fr.SyntaxKind.SwitchStatement:return!0;case Fr.SyntaxKind.PropertyAccessExpression:return t.expression===e;case Fr.SyntaxKind.QualifiedName:return t.left===e;case Fr.SyntaxKind.ShorthandPropertyAssignment:return t.objectAssignmentInitializer===e||!C(t);case Fr.SyntaxKind.PropertyAssignment:return t.initializer===e&&!C(t);case Fr.SyntaxKind.SpreadAssignment:case Fr.SyntaxKind.SpreadElement:case Fr.SyntaxKind.ArrayLiteralExpression:return!C(t);case Fr.SyntaxKind.ParenthesizedExpression:case Fr.SyntaxKind.AsExpression:case Fr.SyntaxKind.TypeAssertionExpression:case Fr.SyntaxKind.PostfixUnaryExpression:case Fr.SyntaxKind.PrefixUnaryExpression:case Fr.SyntaxKind.NonNullExpression:e=t;break;case Fr.SyntaxKind.ForStatement:return t.condition===e;case Fr.SyntaxKind.ForInStatement:case Fr.SyntaxKind.ForOfStatement:return t.expression===e;case Fr.SyntaxKind.ConditionalExpression:if(t.condition===e)return!0;e=t;break;case Fr.SyntaxKind.PropertyDeclaration:case Fr.SyntaxKind.BindingElement:case Fr.SyntaxKind.VariableDeclaration:case Fr.SyntaxKind.Parameter:case Fr.SyntaxKind.EnumMember:return t.initializer===e;case Fr.SyntaxKind.ImportEqualsDeclaration:return t.moduleReference===e;case Fr.SyntaxKind.CommaListExpression:if(t.elements[t.elements.length-1]!==e)return!1;e=t;break;case Fr.SyntaxKind.BinaryExpression:if(t.right===e){if(t.operatorToken.kind===Fr.SyntaxKind.CommaToken){e=t;break}return!0}switch(t.operatorToken.kind){case Fr.SyntaxKind.CommaToken:case Fr.SyntaxKind.EqualsToken:return!1;case Fr.SyntaxKind.EqualsEqualsEqualsToken:case Fr.SyntaxKind.EqualsEqualsToken:case Fr.SyntaxKind.ExclamationEqualsEqualsToken:case Fr.SyntaxKind.ExclamationEqualsToken:case Fr.SyntaxKind.InstanceOfKeyword:case Fr.SyntaxKind.PlusToken:case Fr.SyntaxKind.MinusToken:case Fr.SyntaxKind.AsteriskToken:case Fr.SyntaxKind.SlashToken:case Fr.SyntaxKind.PercentToken:case Fr.SyntaxKind.AsteriskAsteriskToken:case Fr.SyntaxKind.GreaterThanToken:case Fr.SyntaxKind.GreaterThanGreaterThanToken:case Fr.SyntaxKind.GreaterThanGreaterThanGreaterThanToken:case Fr.SyntaxKind.GreaterThanEqualsToken:case Fr.SyntaxKind.LessThanToken:case Fr.SyntaxKind.LessThanLessThanToken:case Fr.SyntaxKind.LessThanEqualsToken:case Fr.SyntaxKind.AmpersandToken:case Fr.SyntaxKind.BarToken:case Fr.SyntaxKind.CaretToken:case Fr.SyntaxKind.BarBarToken:case Fr.SyntaxKind.AmpersandAmpersandToken:case Fr.SyntaxKind.InKeyword:return!0;default:e=t}break;default:return!1}}},function(e){e[e.None=0]="None",e[e.Read=1]="Read",e[e.Write=2]="Write",e[e.Delete=4]="Delete",e[e.ReadWrite=3]="ReadWrite",e[e.Modification=6]="Modification"}(t.AccessKind||(t.AccessKind={})),t.getAccessKind=k,t.isReassignmentTarget=function(e){return 0!=(2&k(e))},t.canHaveJsDoc=N,t.getJsDoc=A,t.parseJsDocOfNode=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.getSourceFile();if(N(e)&&e.kind!==Fr.SyntaxKind.EndOfFileToken){var n=A(e,r);if(0!==n.length||!t)return n}return F(e,r,t)},function(e){e[e.ImportDeclaration=1]="ImportDeclaration",e[e.ImportEquals=2]="ImportEquals",e[e.ExportFrom=4]="ExportFrom",e[e.DynamicImport=8]="DynamicImport",e[e.Require=16]="Require",e[e.ImportType=32]="ImportType",e[e.All=63]="All",e[e.AllImports=59]="AllImports",e[e.AllStaticImports=3]="AllStaticImports",e[e.AllImportExpressions=24]="AllImportExpressions",e[e.AllRequireLike=18]="AllRequireLike",e[e.AllNestedImports=56]="AllNestedImports",e[e.AllTopLevelImports=7]="AllTopLevelImports"}(t.ImportKind||(t.ImportKind={})),t.findImports=function(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=P(e,t)[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var c=o.value;switch(c.kind){case Fr.SyntaxKind.ImportDeclaration:u(c.moduleSpecifier);break;case Fr.SyntaxKind.ImportEqualsDeclaration:u(c.moduleReference.expression);break;case Fr.SyntaxKind.ExportDeclaration:u(c.moduleSpecifier);break;case Fr.SyntaxKind.CallExpression:u(c.arguments[0]);break;case Fr.SyntaxKind.ImportType:oa.isLiteralTypeNode(c.argument)&&u(c.argument.literal);break;default:throw new Error("unexpected node")}}}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r;function u(e){oa.isTextualLiteral(e)&&r.push(e)}},t.findImportLikeNodes=P;var w=function(){function e(t,r){m(this,e),this._sourceFile=t,this._options=r,this._result=[]}return y(e,[{key:"find",value:function(){return this._sourceFile.isDeclarationFile&&(this._options&=-25),7&this._options&&this._findImports(this._sourceFile.statements),56&this._options&&this._findNestedImports(),this._result}},{key:"_findImports",value:function(e){var t=!0,r=!1,n=void 0;try{for(var i,a=e[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var o=i.value;oa.isImportDeclaration(o)?1&this._options&&this._result.push(o):oa.isImportEqualsDeclaration(o)?2&this._options&&o.moduleReference.kind===Fr.SyntaxKind.ExternalModuleReference&&this._result.push(o):oa.isExportDeclaration(o)?void 0!==o.moduleSpecifier&&4&this._options&&this._result.push(o):oa.isModuleDeclaration(o)&&this._findImportsInModule(o)}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}}},{key:"_findImportsInModule",value:function(e){if(void 0!==e.body)return e.body.kind===Fr.SyntaxKind.ModuleDeclaration?this._findImportsInModule(e.body):void this._findImports(e.body.statements)}},{key:"_findNestedImports",value:function(){var e;e=16==(56&this._options)?/\brequire\s*[</(]/g:16&this._options?/\b(?:import|require)\s*[</(]/g:/\bimport\s*[</(]/g;for(var t=0!=(this._sourceFile.flags&Fr.NodeFlags.JavaScriptFile),r=e.exec(this._sourceFile.text);null!==r;r=e.exec(this._sourceFile.text)){var n=s(this._sourceFile,r.index,this._sourceFile,"i"===r[0][0]&&t);if(n.kind===Fr.SyntaxKind.ImportKeyword){if(n.end-"import".length!==r.index)continue;switch(n.parent.kind){case Fr.SyntaxKind.ImportType:this._result.push(n.parent);break;case Fr.SyntaxKind.CallExpression:1===n.parent.arguments.length&&this._result.push(n.parent)}}else n.kind===Fr.SyntaxKind.Identifier&&n.end-"require".length===r.index&&n.parent.kind===Fr.SyntaxKind.CallExpression&&n.parent.expression===n&&1===n.parent.arguments.length&&this._result.push(n.parent)}}}]),e}();function I(e){for(;e.kind===Fr.SyntaxKind.ModuleBlock;){do{e=e.parent}while(e.flags&Fr.NodeFlags.NestedNamespace);if(i(e.modifiers,Fr.SyntaxKind.DeclareKeyword))return!0;e=e.parent}return!1}function O(e,t){return(e.strict?!1!==e[t]:!0===e[t])&&("strictPropertyInitialization"!==t||O(e,"strictNullChecks"))}function M(e){return oa.isTypeReferenceNode(e.type)&&e.type.typeName.kind===Fr.SyntaxKind.Identifier&&"const"===e.type.typeName.escapedText}function L(e){return 3===e.arguments.length&&oa.isEntityNameExpression(e.arguments[0])&&oa.isNumericOrStringLikeLiteral(e.arguments[1])&&oa.isPropertyAccessExpression(e.expression)&&"defineProperty"===e.expression.name.escapedText&&oa.isIdentifier(e.expression.expression)&&"Object"===e.expression.expression.escapedText}function R(e){return Fr.isPropertyAccessExpression(e)&&Fr.isIdentifier(e.expression)&&"Symbol"===e.expression.escapedText}function B(e){return{displayName:"[Symbol.".concat(e.name.text,"]"),symbolName:"__@"+e.name.text}}function j(e,t){var r={known:!0,names:[]};if(R(e=K(e)))r.names.push(B(e));else{var n=t.getTypeAtLocation(e),i=!0,a=!1,o=void 0;try{for(var s,c=fa.unionTypeParts(t.getBaseConstraintOfType(n)||n)[Symbol.iterator]();!(i=(s=c.next()).done);i=!0){var u=s.value,l=fa.getPropertyNameFromType(u);l?r.names.push(l):r.known=!1}}catch(e){a=!0,o=e}finally{try{i||null==c.return||c.return()}finally{if(a)throw o}}}return r}function K(e){for(;e.kind===Fr.SyntaxKind.ParenthesizedExpression;)e=e.expression;return e}t.isStatementInAmbientContext=function(e){for(;e.flags&Fr.NodeFlags.NestedNamespace;)e=e.parent;return i(e.modifiers,Fr.SyntaxKind.DeclareKeyword)||I(e.parent)},t.isAmbientModuleBlock=I,t.getIIFE=function(e){for(var t=e.parent;t.kind===Fr.SyntaxKind.ParenthesizedExpression;)t=t.parent;return oa.isCallExpression(t)&&e.end<=t.expression.end?t:void 0},t.isStrictCompilerOptionEnabled=O,t.isCompilerOptionEnabled=function e(t,r){switch(r){case"stripInternal":return!0===t.stripInternal&&e(t,"declaration");case"declaration":return t.declaration||e(t,"composite");case"incremental":return void 0===t.incremental?e(t,"composite"):t.incremental;case"skipDefaultLibCheck":return t.skipDefaultLibCheck||e(t,"skipLibCheck");case"suppressImplicitAnyIndexErrors":return!0===t.suppressImplicitAnyIndexErrors&&e(t,"noImplicitAny");case"allowSyntheticDefaultImports":return void 0!==t.allowSyntheticDefaultImports?t.allowSyntheticDefaultImports:e(t,"esModuleInterop")||t.module===Fr.ModuleKind.System;case"noImplicitAny":case"noImplicitThis":case"strictNullChecks":case"strictFunctionTypes":case"strictPropertyInitialization":case"alwaysStrict":case"strictBindCallApply":return O(t,r)}return!0===t[r]},t.isAmbientModule=function(e){return e.name.kind===Fr.SyntaxKind.StringLiteral||0!=(e.flags&Fr.NodeFlags.GlobalAugmentation)},t.getCheckJsDirective=function(e){var t;return Fr.forEachLeadingCommentRange(e,(Fr.getShebang(e)||"").length,(function(r,n,i){if(i===Fr.SyntaxKind.SingleLineCommentTrivia){var a=e.slice(r,n),o=/^\/{2,3}\s*@ts-(no)?check(?:\s|$)/i.exec(a);null!==o&&(t={pos:r,end:n,enabled:void 0===o[1]})}})),t},t.isConstAssertion=M,t.isInConstContext=function(e){for(var t=e;;){var r=t.parent;e:switch(r.kind){case Fr.SyntaxKind.TypeAssertionExpression:case Fr.SyntaxKind.AsExpression:return M(r);case Fr.SyntaxKind.PrefixUnaryExpression:if(t.kind!==Fr.SyntaxKind.NumericLiteral)return!1;switch(r.operator){case Fr.SyntaxKind.PlusToken:case Fr.SyntaxKind.MinusToken:t=r;break e;default:return!1}case Fr.SyntaxKind.PropertyAssignment:if(r.initializer!==t)return!1;t=r.parent;break;case Fr.SyntaxKind.ShorthandPropertyAssignment:t=r.parent;break;case Fr.SyntaxKind.ParenthesizedExpression:case Fr.SyntaxKind.ArrayLiteralExpression:case Fr.SyntaxKind.ObjectLiteralExpression:t=r;break;default:return!1}}},t.isReadonlyAssignmentDeclaration=function(e,t){if(!L(e))return!1;var r=t.getTypeAtLocation(e.arguments[2]);if(void 0===r.getProperty("value"))return void 0===r.getProperty("set");var n=r.getProperty("writable");if(void 0===n)return!1;var i=void 0!==n.valueDeclaration&&oa.isPropertyAssignment(n.valueDeclaration)?t.getTypeAtLocation(n.valueDeclaration.initializer):t.getTypeOfSymbolAtLocation(n,e.arguments[2]);return fa.isBooleanLiteralType(i,!1)},t.isBindableObjectDefinePropertyCall=L,t.isWellKnownSymbolLiterally=R,t.getPropertyNameOfWellKnownSymbol=B,t.getLateBoundPropertyNames=j,t.getLateBoundPropertyNamesOfPropertyName=function(e,t){var r=l(e);return void 0!==r?{known:!0,names:[{displayName:r,symbolName:Fr.escapeLeadingUnderscores(r)}]}:j(e.expression,t)},t.getSingleLateBoundPropertyNameOfPropertyName=function(e,t){var r=l(e);if(void 0!==r)return{displayName:r,symbolName:Fr.escapeLeadingUnderscores(r)};var n=e.expression;return R(n)?B(n):fa.getPropertyNameFromType(t.getTypeAtLocation(n))},t.unwrapParentheses=K}));i(ma);ma.getChildOfKind,ma.isTokenKind,ma.isNodeKind,ma.isAssignmentKind,ma.isTypeNodeKind,ma.isJsDocKind,ma.isKeywordKind,ma.isThisParameter,ma.getModifier,ma.hasModifier,ma.isParameterProperty,ma.hasAccessModifier,ma.isNodeFlagSet,ma.isTypeFlagSet,ma.isSymbolFlagSet,ma.isObjectFlagSet,ma.isModifierFlagSet,ma.getPreviousStatement,ma.getNextStatement,ma.getPreviousToken,ma.getNextToken,ma.getTokenAtPosition,ma.getCommentAtPosition,ma.isPositionInComment,ma.commentText,ma.getWrappedNodeAtPosition,ma.getPropertyName,ma.forEachDestructuringIdentifier,ma.forEachDeclaredVariable,ma.VariableDeclarationKind,ma.getVariableDeclarationKind,ma.isBlockScopedVariableDeclarationList,ma.isBlockScopedVariableDeclaration,ma.isBlockScopedDeclarationStatement,ma.isInSingleStatementContext,ma.ScopeBoundary,ma.ScopeBoundarySelector,ma.isScopeBoundary,ma.isTypeScopeBoundary,ma.isFunctionScopeBoundary,ma.isBlockScopeBoundary,ma.hasOwnThisReference,ma.isFunctionWithBody,ma.forEachToken,ma.forEachTokenWithTrivia,ma.forEachComment,ma.getLineRanges,ma.getLineBreakStyle,ma.isValidIdentifier,ma.isValidPropertyAccess,ma.isValidPropertyName,ma.isValidNumericLiteral,ma.isValidJsxIdentifier,ma.isNumericPropertyName,ma.isSameLine,ma.SideEffectOptions,ma.hasSideEffects,ma.getDeclarationOfBindingElement,ma.isExpressionValueUsed,ma.AccessKind,ma.getAccessKind,ma.isReassignmentTarget,ma.canHaveJsDoc,ma.getJsDoc,ma.parseJsDocOfNode,ma.ImportKind,ma.findImports,ma.findImportLikeNodes,ma.isStatementInAmbientContext,ma.isAmbientModuleBlock,ma.getIIFE,ma.isStrictCompilerOptionEnabled,ma.isCompilerOptionEnabled,ma.isAmbientModule,ma.getCheckJsDirective,ma.isConstAssertion,ma.isInConstContext,ma.isReadonlyAssignmentDeclaration,ma.isBindableObjectDefinePropertyCall,ma.isWellKnownSymbolLiterally,ma.getPropertyNameOfWellKnownSymbol,ma.getLateBoundPropertyNames,ma.getLateBoundPropertyNamesOfPropertyName,ma.getSingleLateBoundPropertyNameOfPropertyName,ma.unwrapParentheses;var ga=a((function(e,t){function r(e){var t=e.parent;switch(t.kind){case Fr.SyntaxKind.TypeReference:return e.originalKeywordKind!==Fr.SyntaxKind.ConstKeyword?2:void 0;case Fr.SyntaxKind.ExpressionWithTypeArguments:return t.parent.token===Fr.SyntaxKind.ImplementsKeyword||t.parent.parent.kind===Fr.SyntaxKind.InterfaceDeclaration?2:4;case Fr.SyntaxKind.TypeQuery:return 13;case Fr.SyntaxKind.QualifiedName:if(t.left===e)return function(e){var t=e.parent;for(;t.kind===Fr.SyntaxKind.QualifiedName;)t=t.parent;return t}(t).kind===Fr.SyntaxKind.TypeQuery?9:1;break;case Fr.SyntaxKind.ExportSpecifier:if(void 0===t.propertyName||t.propertyName===e)return 7;break;case Fr.SyntaxKind.ExportAssignment:return 7;case Fr.SyntaxKind.BindingElement:if(t.initializer===e)return 5;break;case Fr.SyntaxKind.Parameter:case Fr.SyntaxKind.EnumMember:case Fr.SyntaxKind.PropertyDeclaration:case Fr.SyntaxKind.VariableDeclaration:case Fr.SyntaxKind.PropertyAssignment:case Fr.SyntaxKind.PropertyAccessExpression:case Fr.SyntaxKind.ImportEqualsDeclaration:if(t.name!==e)return 5;break;case Fr.SyntaxKind.JsxAttribute:case Fr.SyntaxKind.FunctionDeclaration:case Fr.SyntaxKind.FunctionExpression:case Fr.SyntaxKind.NamespaceImport:case Fr.SyntaxKind.ClassDeclaration:case Fr.SyntaxKind.ClassExpression:case Fr.SyntaxKind.ModuleDeclaration:case Fr.SyntaxKind.MethodDeclaration:case Fr.SyntaxKind.EnumDeclaration:case Fr.SyntaxKind.GetAccessor:case Fr.SyntaxKind.SetAccessor:case Fr.SyntaxKind.LabeledStatement:case Fr.SyntaxKind.BreakStatement:case Fr.SyntaxKind.ContinueStatement:case Fr.SyntaxKind.ImportClause:case Fr.SyntaxKind.ImportSpecifier:case Fr.SyntaxKind.TypePredicate:case Fr.SyntaxKind.MethodSignature:case Fr.SyntaxKind.PropertySignature:case Fr.SyntaxKind.NamespaceExportDeclaration:case Fr.SyntaxKind.InterfaceDeclaration:case Fr.SyntaxKind.TypeAliasDeclaration:case Fr.SyntaxKind.TypeParameter:break;default:return 5}}function n(e){switch(e.parent.kind){case Fr.SyntaxKind.TypeParameter:case Fr.SyntaxKind.InterfaceDeclaration:case Fr.SyntaxKind.TypeAliasDeclaration:return 2;case Fr.SyntaxKind.ClassDeclaration:case Fr.SyntaxKind.ClassExpression:return 6;case Fr.SyntaxKind.EnumDeclaration:return 7;case Fr.SyntaxKind.NamespaceImport:case Fr.SyntaxKind.ImportClause:return 15;case Fr.SyntaxKind.ImportEqualsDeclaration:case Fr.SyntaxKind.ImportSpecifier:return e.parent.name===e?15:void 0;case Fr.SyntaxKind.ModuleDeclaration:return 1;case Fr.SyntaxKind.Parameter:if(e.parent.parent.kind===Fr.SyntaxKind.IndexSignature||e.originalKeywordKind===Fr.SyntaxKind.ThisKeyword)return;case Fr.SyntaxKind.BindingElement:case Fr.SyntaxKind.VariableDeclaration:return e.parent.name===e?4:void 0;case Fr.SyntaxKind.FunctionDeclaration:case Fr.SyntaxKind.FunctionExpression:return 4}}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Namespace=1]="Namespace",e[e.Type=2]="Type",e[e.Value=4]="Value",e[e.Import=8]="Import",e[e.Any=7]="Any"}(t.DeclarationDomain||(t.DeclarationDomain={})),function(e){e[e.Namespace=1]="Namespace",e[e.Type=2]="Type",e[e.Value=4]="Value",e[e.ValueOrNamespace=5]="ValueOrNamespace",e[e.Any=7]="Any",e[e.TypeQuery=8]="TypeQuery"}(t.UsageDomain||(t.UsageDomain={})),t.getUsageDomain=r,t.getDeclarationDomain=n,t.collectVariableUsage=function(e){return(new h).getUsage(e)};var i=function(){function e(t){m(this,e),this._global=t,this._variables=new Map,this._uses=[],this._namespaceScopes=void 0,this._enumScopes=void 0}return y(e,[{key:"addVariable",value:function(e,t,r,n,i){var a=this.getDestinationScope(r).getVariables(),o={domain:i,exported:n,declaration:t},s=a.get(e);void 0===s?a.set(e,{domain:i,declarations:[o],uses:[]}):(s.domain|=i,s.declarations.push(o))}},{key:"addUse",value:function(e){this._uses.push(e)}},{key:"getVariables",value:function(){return this._variables}},{key:"getFunctionScope",value:function(){return this}},{key:"end",value:function(e){var t=this;void 0!==this._namespaceScopes&&this._namespaceScopes.forEach((function(t){return t.finish(e)})),this._namespaceScopes=this._enumScopes=void 0,this._applyUses(),this._variables.forEach((function(r){var n=!0,i=!1,a=void 0;try{for(var o,s=r.declarations[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var c=o.value,u={declarations:[],domain:c.domain,exported:c.exported,inGlobalScope:t._global,uses:[]},l=!0,_=!1,d=void 0;try{for(var p,f=r.declarations[Symbol.iterator]();!(l=(p=f.next()).done);l=!0){var m=p.value;m.domain&c.domain&&u.declarations.push(m.declaration)}}catch(e){_=!0,d=e}finally{try{l||null==f.return||f.return()}finally{if(_)throw d}}var g=!0,y=!1,h=void 0;try{for(var v,b=r.uses[Symbol.iterator]();!(g=(v=b.next()).done);g=!0){var x=v.value;x.domain&c.domain&&u.uses.push(x)}}catch(e){y=!0,h=e}finally{try{g||null==b.return||b.return()}finally{if(y)throw h}}e(u,c.declaration,t)}}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}}))}},{key:"markExported",value:function(e){}},{key:"createOrReuseNamespaceScope",value:function(e,t,r,n){var i;return void 0===this._namespaceScopes?this._namespaceScopes=new Map:i=this._namespaceScopes.get(e),void 0===i?(i=new g(r,n,this),this._namespaceScopes.set(e,i)):i.refresh(r,n),i}},{key:"createOrReuseEnumScope",value:function(e,t){var r;return void 0===this._enumScopes?this._enumScopes=new Map:r=this._enumScopes.get(e),void 0===r&&(r=new s(this),this._enumScopes.set(e,r)),r}},{key:"_applyUses",value:function(){var e=!0,t=!1,r=void 0;try{for(var n,i=this._uses[Symbol.iterator]();!(e=(n=i.next()).done);e=!0){var a=n.value;this._applyUse(a)||this._addUseToParent(a)}}catch(e){t=!0,r=e}finally{try{e||null==i.return||i.return()}finally{if(t)throw r}}this._uses=[]}},{key:"_applyUse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._variables,r=t.get(e.location.text);return void 0!==r&&0!=(r.domain&e.domain)&&(r.uses.push(e),!0)}},{key:"_addUseToParent",value:function(e){}}]),e}(),a=function(e){function t(e,r){var n;return m(this,t),(n=S(this,b(t).call(this,r)))._exportAll=e,n._exports=void 0,n._innerScope=new o(D(n),1),n}return v(t,e),y(t,[{key:"addVariable",value:function(e,r,n,i,a){return 8&a?T(b(t.prototype),"addVariable",this).call(this,e,r,n,i,a):this._innerScope.addVariable(e,r,n,i,a)}},{key:"addUse",value:function(e,r){return r===this._innerScope?T(b(t.prototype),"addUse",this).call(this,e):this._innerScope.addUse(e)}},{key:"markExported",value:function(e){void 0===this._exports?this._exports=[e.text]:this._exports.push(e.text)}},{key:"end",value:function(e){var r=this;return this._innerScope.end((function(t,n){return t.exported=t.exported||r._exportAll||void 0!==r._exports&&r._exports.includes(n.text),t.inGlobalScope=r._global,e(t,n,r)})),T(b(t.prototype),"end",this).call(this,(function(t,n,i){return t.exported=t.exported||i===r&&void 0!==r._exports&&r._exports.includes(n.text),e(t,n,i)}))}},{key:"getDestinationScope",value:function(){return this}}]),t}(i),o=function(e){function t(e,r){var n;return m(this,t),(n=S(this,b(t).call(this,!1)))._parent=e,n._boundary=r,n}return v(t,e),y(t,[{key:"_addUseToParent",value:function(e){return this._parent.addUse(e,this)}},{key:"getDestinationScope",value:function(e){return this._boundary&e?this:this._parent.getDestinationScope(e)}}]),t}(i),s=function(e){function t(e){return m(this,t),S(this,b(t).call(this,e,1))}return v(t,e),y(t,[{key:"end",value:function(){this._applyUses()}}]),t}(o),c=function(e){function t(e){var r;return m(this,t),(r=S(this,b(t).call(this,e,8)))._state=0,r}return v(t,e),y(t,[{key:"updateState",value:function(e){this._state=e}},{key:"addUse",value:function(e){if(2!==this._state)return this._parent.addUse(e,this);this._uses.push(e)}}]),t}(o),u=function(e){function t(e){return m(this,t),S(this,b(t).call(this,e,1))}return v(t,e),y(t,[{key:"beginBody",value:function(){this._applyUses()}}]),t}(o),l=function(e){function t(e,r,n){var i;return m(this,t),(i=S(this,b(t).call(this,n,1)))._name=e,i._domain=r,i}return v(t,e),y(t,[{key:"end",value:function(e){return this._innerScope.end(e),e({declarations:[this._name],domain:this._domain,exported:!1,uses:this._uses,inGlobalScope:!1},this._name,this)}},{key:"addUse",value:function(e,t){return t!==this._innerScope?this._innerScope.addUse(e):e.domain&this._domain&&e.location.text===this._name.text?void this._uses.push(e):this._parent.addUse(e,this)}},{key:"getFunctionScope",value:function(){return this._innerScope}},{key:"getDestinationScope",value:function(){return this._innerScope}}]),t}(o),_=function(e){function t(e,r){var n;return m(this,t),(n=S(this,b(t).call(this,e,4,r)))._innerScope=new u(D(n)),n}return v(t,e),y(t,[{key:"beginBody",value:function(){return this._innerScope.beginBody()}}]),t}(l),d=function(e){function t(e,r){var n;return m(this,t),(n=S(this,b(t).call(this,e,6,r)))._innerScope=new o(D(n),1),n}return v(t,e),t}(l),p=function(e){function t(e,r){var n;return m(this,t),(n=S(this,b(t).call(this,r,2)))._functionScope=e,n}return v(t,e),y(t,[{key:"getFunctionScope",value:function(){return this._functionScope}}]),t}(o);function f(e){return{declaration:e,exported:!0,domain:n(e)}}var g=function(e){function t(e,r,n){var i;return m(this,t),(i=S(this,b(t).call(this,n,1)))._ambient=e,i._hasExport=r,i._innerScope=new o(D(i),1),i._exports=void 0,i}return v(t,e),y(t,[{key:"finish",value:function(e){return T(b(t.prototype),"end",this).call(this,e)}},{key:"end",value:function(e){var t=this;this._innerScope.end((function(r,n,i){if(i!==t._innerScope||!r.exported&&(!t._ambient||void 0!==t._exports&&!t._exports.has(n.text)))return e(r,n,i);var a=t._variables.get(n.text);if(void 0===a)t._variables.set(n.text,{declarations:r.declarations.map(f),domain:r.domain,uses:E(r.uses)});else{var o=!0,s=!1,c=void 0;try{e:for(var u,l=r.declarations[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){var _=u.value,d=!0,p=!1,m=void 0;try{for(var g,y=a.declarations[Symbol.iterator]();!(d=(g=y.next()).done);d=!0){if(g.value.declaration===_)continue e}}catch(e){p=!0,m=e}finally{try{d||null==y.return||y.return()}finally{if(p)throw m}}a.declarations.push(f(_))}}catch(e){s=!0,c=e}finally{try{o||null==l.return||l.return()}finally{if(s)throw c}}a.domain|=r.domain;var h=!0,v=!1,b=void 0;try{for(var x,D=r.uses[Symbol.iterator]();!(h=(x=D.next()).done);h=!0){var S=x.value;a.uses.includes(S)||a.uses.push(S)}}catch(e){v=!0,b=e}finally{try{h||null==D.return||D.return()}finally{if(v)throw b}}}})),this._applyUses(),this._innerScope=new o(this,1)}},{key:"createOrReuseNamespaceScope",value:function(e,r,n,i){return r||this._ambient&&!this._hasExport?T(b(t.prototype),"createOrReuseNamespaceScope",this).call(this,e,r,n||this._ambient,i):this._innerScope.createOrReuseNamespaceScope(e,r,n||this._ambient,i)}},{key:"createOrReuseEnumScope",value:function(e,r){return r||this._ambient&&!this._hasExport?T(b(t.prototype),"createOrReuseEnumScope",this).call(this,e,r):this._innerScope.createOrReuseEnumScope(e,r)}},{key:"addUse",value:function(e,t){if(t!==this._innerScope)return this._innerScope.addUse(e);this._uses.push(e)}},{key:"refresh",value:function(e,t){this._ambient=e,this._hasExport=t}},{key:"markExported",value:function(e,t){void 0===this._exports&&(this._exports=new Set),this._exports.add(e.text)}},{key:"getDestinationScope",value:function(){return this._innerScope}}]),t}(o);var h=function(){function e(){m(this,e),this._result=new Map}return y(e,[{key:"getUsage",value:function(e){var t=this,n=function(e,r){t._result.set(r,e)},i=Fr.isExternalModule(e);this._scope=new a(e.isDeclarationFile&&i&&!C(e),!i);var s=function e(i){if(ma.isBlockScopeBoundary(i))return c(i,new p(t._scope.getFunctionScope(),t._scope),u);switch(i.kind){case Fr.SyntaxKind.ClassExpression:return c(i,void 0!==i.name?new d(i.name,t._scope):new o(t._scope,1));case Fr.SyntaxKind.ClassDeclaration:return t._handleDeclaration(i,!0,6),c(i,new o(t._scope,1));case Fr.SyntaxKind.InterfaceDeclaration:case Fr.SyntaxKind.TypeAliasDeclaration:return t._handleDeclaration(i,!0,2),c(i,new o(t._scope,4));case Fr.SyntaxKind.EnumDeclaration:return t._handleDeclaration(i,!0,7),c(i,t._scope.createOrReuseEnumScope(i.name.text,ma.hasModifier(i.modifiers,Fr.SyntaxKind.ExportKeyword)));case Fr.SyntaxKind.ModuleDeclaration:return t._handleModule(i,c);case Fr.SyntaxKind.MappedType:return c(i,new o(t._scope,4));case Fr.SyntaxKind.FunctionExpression:case Fr.SyntaxKind.ArrowFunction:case Fr.SyntaxKind.Constructor:case Fr.SyntaxKind.MethodDeclaration:case Fr.SyntaxKind.FunctionDeclaration:case Fr.SyntaxKind.GetAccessor:case Fr.SyntaxKind.SetAccessor:case Fr.SyntaxKind.MethodSignature:case Fr.SyntaxKind.CallSignature:case Fr.SyntaxKind.ConstructSignature:case Fr.SyntaxKind.ConstructorType:case Fr.SyntaxKind.FunctionType:return t._handleFunctionLikeDeclaration(i,e,n);case Fr.SyntaxKind.ConditionalType:return t._handleConditionalType(i,e,n);case Fr.SyntaxKind.VariableDeclarationList:t._handleVariableDeclaration(i);break;case Fr.SyntaxKind.Parameter:i.parent.kind===Fr.SyntaxKind.IndexSignature||i.name.kind===Fr.SyntaxKind.Identifier&&i.name.originalKeywordKind===Fr.SyntaxKind.ThisKeyword||t._handleBindingName(i.name,!1,!1);break;case Fr.SyntaxKind.EnumMember:t._scope.addVariable(ma.getPropertyName(i.name),i.name,1,!0,4);break;case Fr.SyntaxKind.ImportClause:case Fr.SyntaxKind.ImportSpecifier:case Fr.SyntaxKind.NamespaceImport:case Fr.SyntaxKind.ImportEqualsDeclaration:t._handleDeclaration(i,!1,15);break;case Fr.SyntaxKind.TypeParameter:t._scope.addVariable(i.name.text,i.name,i.parent.kind===Fr.SyntaxKind.InferType?8:7,!1,2);break;case Fr.SyntaxKind.ExportSpecifier:return void 0!==i.propertyName?t._scope.markExported(i.propertyName,i.name):t._scope.markExported(i.name);case Fr.SyntaxKind.ExportAssignment:if(i.expression.kind===Fr.SyntaxKind.Identifier)return t._scope.markExported(i.expression);break;case Fr.SyntaxKind.Identifier:var a=r(i);return void(void 0!==a&&t._scope.addUse({domain:a,location:i}))}return Fr.forEachChild(i,e)},c=function(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l,a=t._scope;t._scope=r,i(e),t._scope.end(n),t._scope=a},u=function(e){return e.kind===Fr.SyntaxKind.CatchClause&&void 0!==e.variableDeclaration&&t._handleBindingName(e.variableDeclaration.name,!0,!1),Fr.forEachChild(e,s)};return Fr.forEachChild(e,s),this._scope.end(n),this._result;function l(e){return Fr.forEachChild(e,s)}}},{key:"_handleConditionalType",value:function(e,t,r){var n=this._scope,i=this._scope=new c(n);t(e.checkType),i.updateState(1),t(e.extendsType),i.updateState(2),t(e.trueType),i.updateState(3),t(e.falseType),i.end(r),this._scope=n}},{key:"_handleFunctionLikeDeclaration",value:function(e,t,r){void 0!==e.decorators&&e.decorators.forEach(t);var n=this._scope;e.kind===Fr.SyntaxKind.FunctionDeclaration&&this._handleDeclaration(e,!1,4);var i=this._scope=e.kind===Fr.SyntaxKind.FunctionExpression&&void 0!==e.name?new _(e.name,n):new u(n);void 0!==e.name&&t(e.name),void 0!==e.typeParameters&&e.typeParameters.forEach(t),e.parameters.forEach(t),void 0!==e.type&&t(e.type),void 0!==e.body&&(i.beginBody(),t(e.body)),i.end(r),this._scope=n}},{key:"_handleModule",value:function(e,t){if(e.flags&Fr.NodeFlags.GlobalAugmentation)return t(e,this._scope.createOrReuseNamespaceScope("-global",!1,!0,!1));if(e.name.kind===Fr.SyntaxKind.Identifier){var r=function(e){return e.parent.kind===Fr.SyntaxKind.ModuleDeclaration||ma.hasModifier(e.modifiers,Fr.SyntaxKind.ExportKeyword)}(e);this._scope.addVariable(e.name.text,e.name,1,r,5);var n=ma.hasModifier(e.modifiers,Fr.SyntaxKind.DeclareKeyword);return t(e,this._scope.createOrReuseNamespaceScope(e.name.text,r,n,n&&x(e)))}return t(e,this._scope.createOrReuseNamespaceScope('"'.concat(e.name.text,'"'),!1,!0,x(e)))}},{key:"_handleDeclaration",value:function(e,t,r){void 0!==e.name&&this._scope.addVariable(e.name.text,e.name,t?3:1,ma.hasModifier(e.modifiers,Fr.SyntaxKind.ExportKeyword),r)}},{key:"_handleBindingName",value:function(e,t,r){var n=this;if(e.kind===Fr.SyntaxKind.Identifier)return this._scope.addVariable(e.text,e,t?3:1,r,4);ma.forEachDestructuringIdentifier(e,(function(e){n._scope.addVariable(e.name.text,e.name,t?3:1,r,4)}))}},{key:"_handleVariableDeclaration",value:function(e){var t=ma.isBlockScopedVariableDeclarationList(e),r=e.parent.kind===Fr.SyntaxKind.VariableStatement&&ma.hasModifier(e.parent.modifiers,Fr.SyntaxKind.ExportKeyword),n=!0,i=!1,a=void 0;try{for(var o,s=e.declarations[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var c=o.value;this._handleBindingName(c.name,t,r)}}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}}}]),e}();function x(e){return void 0!==e.body&&e.body.kind===Fr.SyntaxKind.ModuleBlock&&C(e.body)}function C(e){var t=!0,r=!1,n=void 0;try{for(var i,a=e.statements[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var o=i.value;if(o.kind===Fr.SyntaxKind.ExportDeclaration||o.kind===Fr.SyntaxKind.ExportAssignment)return!0}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}return!1}}));i(ga);ga.DeclarationDomain,ga.UsageDomain,ga.getUsageDomain,ga.getDeclarationDomain,ga.collectVariableUsage;var ya=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.endsControlFlow=function(e){return n(e).end};var r={statements:[],end:!1};function n(e){return oa.isBlockLike(e)?a(e):i(e)}function i(e){switch(e.kind){case Fr.SyntaxKind.ReturnStatement:case Fr.SyntaxKind.ThrowStatement:case Fr.SyntaxKind.ContinueStatement:case Fr.SyntaxKind.BreakStatement:return{statements:[e],end:!0};case Fr.SyntaxKind.Block:return a(e);case Fr.SyntaxKind.ForStatement:case Fr.SyntaxKind.WhileStatement:return function(e){var t=e.kind===Fr.SyntaxKind.WhileStatement?o(e.expression):void 0===e.condition||o(e.condition);if(!1===t)return r;var n=s(i(e.statement),oa.isBreakOrContinueStatement);void 0===t&&(n.end=!1);return n}(e);case Fr.SyntaxKind.ForOfStatement:case Fr.SyntaxKind.ForInStatement:return function(e){var t=s(i(e.statement),oa.isBreakOrContinueStatement);return t.end=!1,t}(e);case Fr.SyntaxKind.DoStatement:return s(i(e.statement),oa.isBreakOrContinueStatement);case Fr.SyntaxKind.IfStatement:return function(e){switch(o(e.expression)){case!0:return i(e.thenStatement);case!1:return void 0===e.elseStatement?r:i(e.elseStatement)}var t=i(e.thenStatement);if(void 0===e.elseStatement)return{statements:t.statements,end:!1};var n=i(e.elseStatement);return{statements:[].concat(E(t.statements),E(n.statements)),end:t.end&&n.end}}(e);case Fr.SyntaxKind.SwitchStatement:return s(function(e){var t=!1,r={statements:[],end:!1},n=!0,i=!1,o=void 0;try{for(var s,c=e.caseBlock.clauses[Symbol.iterator]();!(n=(s=c.next()).done);n=!0){var u,l=s.value;l.kind===Fr.SyntaxKind.DefaultClause&&(t=!0);var _=a(l);r.end=_.end,(u=r.statements).push.apply(u,E(_.statements))}}catch(e){i=!0,o=e}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}t||(r.end=!1);return r}(e),oa.isBreakStatement);case Fr.SyntaxKind.TryStatement:return function(e){var t;if(void 0!==e.finallyBlock&&(t=a(e.finallyBlock)).end)return t;var r=a(e.tryBlock);if(void 0===e.catchClause)return{statements:t.statements.concat(r.statements),end:r.end};var n=a(e.catchClause.block);return{statements:r.statements.filter((function(e){return e.kind!==Fr.SyntaxKind.ThrowStatement})).concat(n.statements,void 0===t?[]:t.statements),end:r.end&&n.end}}(e);case Fr.SyntaxKind.LabeledStatement:return function(e,t){var r={statements:[],end:e.end},n=t.text,i=!0,a=!1,o=void 0;try{for(var s,c=e.statements[Symbol.iterator]();!(i=(s=c.next()).done);i=!0){var u=s.value;switch(u.kind){case Fr.SyntaxKind.BreakStatement:case Fr.SyntaxKind.ContinueStatement:if(void 0!==u.label&&u.label.text===n){r.end=!1;continue}}r.statements.push(u)}}catch(e){a=!0,o=e}finally{try{i||null==c.return||c.return()}finally{if(a)throw o}}return r}(i(e.statement),e.label);case Fr.SyntaxKind.WithStatement:return i(e.statement);default:return r}}function a(e){var t={statements:[],end:!1},r=!0,n=!1,a=void 0;try{for(var o,s=e.statements[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var c,u=i(o.value);if((c=t.statements).push.apply(c,E(u.statements)),u.end){t.end=!0;break}}}catch(e){n=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw a}}return t}function o(e){switch(e.kind){case Fr.SyntaxKind.TrueKeyword:return!0;case Fr.SyntaxKind.FalseKeyword:return!1;default:return}}function s(e,t){var r={statements:[],end:e.end},n=!0,i=!1,a=void 0;try{for(var o,s=e.statements[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var c=o.value;t(c)&&void 0===c.label?r.end=!1:r.statements.push(c)}}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r}t.getControlFlowEnd=n}));i(ya);ya.endsControlFlow,ya.getControlFlowEnd;var ha=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.convertAst=function(e){var t={node:e,parent:void 0,kind:Fr.SyntaxKind.SourceFile,children:[],next:void 0,skip:void 0},r=[],n=t,i=n;return Fr.forEachChild(e,(function e(t){r.push(t);var a=n;i.next=n={node:t,parent:a,kind:t.kind,children:[],next:void 0,skip:void 0},i!==a&&function(e,t){do{e.skip=t,e=e.parent}while(e!==t.parent)}(i,n),i=n,a.children.push(n),ma.isNodeKind(t.kind)&&Fr.forEachChild(t,e),n=a})),{wrapped:t,flat:r}}}));i(ha);ha.convertAst;var va=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ra.__exportStar(ma,t),ra.__exportStar(ga,t),ra.__exportStar(ya,t),ra.__exportStar(fa,t),ra.__exportStar(ha,t)}));i(va);var ba=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ra.__exportStar(da,t),ra.__exportStar(va,t)}));i(ba);var xa=a((function(e,t){var r=n&&n.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(Fr);t.convertComments=function(e,t){var r=[];return ba.forEachComment(e,(function(n,a){var o=a.kind==i.SyntaxKind.SingleLineCommentTrivia?"Line":"Block",s=[a.pos,a.end],c=Gi.getLocFor(s[0],s[1],e),u=s[0]+2,l=a.kind===i.SyntaxKind.SingleLineCommentTrivia?s[1]-u:s[1]-u-2;r.push({type:o,value:t.substr(u,l),range:s,loc:c})}),e),r}}));i(xa);xa.convertComments;var Da=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.astConverter=function(e,t,r){var n=e.parseDiagnostics;if(n.length)throw Hi.convertError(n[0]);var i=new Hi.Converter(e,{errorOnUnknownASTType:t.errorOnUnknownASTType||!1,useJSXTextNode:t.useJSXTextNode||!1,shouldPreserveNodeMaps:r}),a=i.convertProgram();return t.tokens&&(a.tokens=Gi.convertTokens(e)),t.comment&&(a.comments=xa.convertComments(e,t.code)),{estree:a,astMaps:r?i.getASTMaps():void 0}}}));i(Da);Da.astConverter;var Sa=1e3,Ta=60*Sa,Ea=60*Ta,Ca=24*Ea,ka=7*Ca,Na=365.25*Ca,Aa=function(e,t){t=t||{};var r=f(e);if("string"===r&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\-?\d?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return r*Na;case"weeks":case"week":case"w":return r*ka;case"days":case"day":case"d":return r*Ca;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ea;case"minutes":case"minute":case"mins":case"min":case"m":return r*Ta;case"seconds":case"second":case"secs":case"sec":case"s":return r*Sa;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}(e);if("number"===r&&!1===isNaN(e))return t.long?function(e){var t=Math.abs(e);if(t>=Ca)return Fa(e,t,Ca,"day");if(t>=Ea)return Fa(e,t,Ea,"hour");if(t>=Ta)return Fa(e,t,Ta,"minute");if(t>=Sa)return Fa(e,t,Sa,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=Ca)return Math.round(e/Ca)+"d";if(t>=Ea)return Math.round(e/Ea)+"h";if(t>=Ta)return Math.round(e/Ta)+"m";if(t>=Sa)return Math.round(e/Sa)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Fa(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}var Pa=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return r.colors[Math.abs(t)%r.colors.length]}function r(e){var a;function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(o.enabled){var i=o,s=Number(new Date),c=s-(a||s);i.diff=c,i.prev=a,i.curr=s,a=s,t[0]=r.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var u=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;u++;var a=r.formatters[n];if("function"==typeof a){var o=t[u];e=a.call(i,o),t.splice(u,1),u--}return e})),r.formatArgs.call(i,t),(i.log||r.log).apply(i,t)}}return o.namespace=e,o.enabled=r.enabled(e),o.useColors=r.useColors(),o.color=t(e),o.destroy=n,o.extend=i,"function"==typeof r.init&&r.init(o),r.instances.push(o),o}function n(){var e=r.instances.indexOf(this);return-1!==e&&(r.instances.splice(e,1),!0)}function i(e,t){var n=r(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return r.debug=r,r.default=r,r.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},r.disable=function(){var e=[].concat(E(r.names.map(a)),E(r.skips.map(a).map((function(e){return"-"+e})))).join(",");return r.enable(""),e},r.enable=function(e){var t;r.save(e),r.names=[],r.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(t=0;t<i;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$")));for(t=0;t<r.instances.length;t++){var a=r.instances[t];a.enabled=r.enabled(a.namespace)}},r.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1},r.humanize=Aa,Object.keys(e).forEach((function(t){r[t]=e[t]})),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=t,r.enable(r.load()),r},wa=a((function(e,t){t.log=function(){var e;return"object"===("undefined"==typeof console?"undefined":f(console))&&console.log&&(e=console).log.apply(e,arguments)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(n++,"%c"===e&&(i=n))})),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==Oe&&"env"in Oe&&(e=Oe.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=Pa(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}})),Ia=(wa.log,wa.formatArgs,wa.save,wa.load,wa.useColors,wa.storage,wa.colors,Object.freeze({__proto__:null,default:{}})),Oa=function(e,t){var r=(t=t||Oe.argv).indexOf("--"),n=/^--/.test(e)?"":"--",i=t.indexOf(n+e);return-1!==i&&(-1===r||i<r)},Ma=Oa("no-color")||Oa("no-colors")||Oa("color=false")?0:Oa("color=16m")||Oa("color=full")||Oa("color=truecolor")?3:Oa("color=256")?2:Oa("color")||Oa("colors")||Oa("color=true")||Oa("color=always")?1:Oe.stdout&&!Oe.stdout.isTTY?0:"win32"===Oe.platform?1:"CI"in Oe.env?"TRAVIS"in Oe.env||"Travis"===Oe.env.CI?1:0:"TEAMCITY_VERSION"in Oe.env?null===Oe.env.TEAMCITY_VERSION.match(/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/)?0:1:/^(screen|xterm)-256(?:color)?/.test(Oe.env.TERM)?2:/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(Oe.env.TERM)?1:"COLORTERM"in Oe.env?1:(Oe.env.TERM,0);0===Ma&&"FORCE_COLOR"in Oe.env&&(Ma=1);var La,Ra=Oe&&(0!==(La=Ma)&&{level:La,hasBasic:!0,has256:La>=2,has16m:La>=3}),Ba=o(Ia),ja=a((function(e,t){t.init=function(e){e.inspectOpts={};for(var r=Object.keys(t.inspectOpts),n=0;n<r.length;n++)e.inspectOpts[r[n]]=t.inspectOpts[r[n]]},t.log=function(){return Oe.stderr.write(kn.format.apply(kn,arguments)+"\n")},t.formatArgs=function(r){var n=this.namespace;if(this.useColors){var i=this.color,a="[3"+(i<8?i:"8;5;"+i),o="  ".concat(a,";1m").concat(n," ");r[0]=o+r[0].split("\n").join("\n"+o),r.push(a+"m+"+e.exports.humanize(this.diff)+"")}else r[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+n+" "+r[0]},t.save=function(e){e?Oe.env.DEBUG=e:delete Oe.env.DEBUG},t.load=function(){return Oe.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):Ba.isatty(Oe.stderr.fd)},t.colors=[6,2,3,4,5,1];try{var r=Ra;r&&(r.stderr||r).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(Oe.env).filter((function(e){return/^debug_/i.test(e)})).reduce((function(e,t){var r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(function(e,t){return t.toUpperCase()})),n=Oe.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e}),{}),e.exports=Pa(t);var n=e.exports.formatters;n.o=function(e){return this.inspectOpts.colors=this.useColors,kn.inspect(e,this.inspectOpts).replace(/\s*\n\s*/g," ")},n.O=function(e){return this.inspectOpts.colors=this.useColors,kn.inspect(e,this.inspectOpts)}})),Ka=(ja.init,ja.log,ja.formatArgs,ja.save,ja.load,ja.useColors,ja.colors,ja.inspectOpts,a((function(e){void 0===Oe||Oe.type,e.exports=wa}))),Ja=a((function(e,t){var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},i=n&&n.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a=r(yr),o=i(Fr);t.DEFAULT_COMPILER_OPTIONS={allowNonTsExtensions:!0,allowJs:!0,checkJs:!0,noEmit:!0};var s=void 0===o.sys||o.sys.useCaseSensitiveFileNames?function(e){return a.default.normalize(e)}:function(e){return a.default.normalize(e).toLowerCase()};t.getCanonicalFileName=s,t.getTsconfigPath=function(e,t){return s(a.default.isAbsolute(e)?e:a.default.join(t.tsconfigRootDir||Oe.cwd(),e))},t.canonicalDirname=function(e){return a.default.dirname(e)},t.getScriptKind=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.filePath;switch(a.default.extname(t).toLowerCase()){case".ts":return o.ScriptKind.TS;case".tsx":return o.ScriptKind.TSX;case".js":return o.ScriptKind.JS;case".jsx":return o.ScriptKind.JSX;case".json":return o.ScriptKind.JSON;default:return e.jsx?o.ScriptKind.TSX:o.ScriptKind.TS}}}));i(Ja);Ja.DEFAULT_COMPILER_OPTIONS,Ja.getCanonicalFileName,Ja.getTsconfigPath,Ja.canonicalDirname,Ja.getScriptKind;var za=a((function(e,t){var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},i=n&&n.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a=r(Ka),o=r(yr),s=i(Fr),c=a.default("typescript-eslint:typescript-estree:createDefaultProgram");t.createDefaultProgram=function(e,t){if(c("Getting default program for: %s",t.filePath||"unnamed file"),t.projects&&1===t.projects.length){var r=Ja.getTsconfigPath(t.projects[0],t),n=s.getParsedCommandLineOfConfigFile(r,Ja.DEFAULT_COMPILER_OPTIONS,Object.assign(Object.assign({},s.sys),{onUnRecoverableConfigFileDiagnostic:function(){}}));if(n){var i=s.createCompilerHost(n.options,!0),a=i.readFile;i.readFile=function(r){return o.default.normalize(r)===o.default.normalize(t.filePath)?e:a(r)};var u=s.createProgram([t.filePath],n.options,i),l=u.getSourceFile(t.filePath);return l&&{ast:l,program:u}}}}}));i(za);za.createDefaultProgram;var Ua=a((function(e,t){var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},i=n&&n.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a=r(Ka),o=i(Fr),s=a.default("typescript-eslint:typescript-estree:createIsolatedProgram");t.createIsolatedProgram=function(e,t){s("Getting isolated program in %s mode for: %s",t.jsx?"TSX":"TS",t.filePath);var r={fileExists:function(){return!0},getCanonicalFileName:function(){return t.filePath},getCurrentDirectory:function(){return""},getDirectories:function(){return[]},getDefaultLibFileName:function(){return"lib.d.ts"},getNewLine:function(){return"\n"},getSourceFile:function(r){return o.createSourceFile(r,e,o.ScriptTarget.Latest,!0,Ja.getScriptKind(t,r))},readFile:function(){},useCaseSensitiveFileNames:function(){return!0},writeFile:function(){return null}},n=o.createProgram([t.filePath],Object.assign({noResolve:!0,target:o.ScriptTarget.Latest,jsx:t.jsx?o.JsxEmit.Preserve:void 0},Ja.DEFAULT_COMPILER_OPTIONS),r),i=n.getSourceFile(t.filePath);if(!i)throw new Error("Expected an ast to be returned for the single-file isolated program.");return{ast:i,program:n}}}));i(Ua);Ua.createIsolatedProgram;var Va=a((function(e,t){var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},i=n&&n.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a=r(Ka),o=r(hr),s=r(yr),c=i(Fr),u=a.default("typescript-eslint:typescript-estree:createWatchProgram"),l=new Map,_=new Map,d=new Map,p=new Map,f=new Map,m=new Set;function g(e){return function(t,r){var n=Ja.getCanonicalFileName(s.default.normalize(t)),i=function(){var t=e.get(n);return t||(t=new Set,e.set(n,t)),t}();return i.add(r),{close:function(){i.delete(r)}}}}t.clearCaches=function(){l.clear(),_.clear(),d.clear(),m.clear(),p.clear(),f.clear()};var y={code:"",filePath:""};function h(e){throw new Error(c.flattenDiagnosticMessageText(e.messageText,c.sys.newLine))}function v(e,t){u("Creating watch program for %s.",e);var r=c.createWatchCompilerHost(e,Ja.DEFAULT_COMPILER_OPTIONS,c.sys,c.createSemanticDiagnosticsBuilderProgram,h,(function(){})),n=r.readFile;r.readFile=function(e,t){var r=Ja.getCanonicalFileName(e);return m.add(r),s.default.normalize(r)===s.default.normalize(y.filePath)?y.code:n(r,t)},r.onUnRecoverableConfigFileDiagnostic=h,r.afterProgramCreate=function(e){var t=e.getConfigFileParsingDiagnostics().filter((function(e){return e.category===c.DiagnosticCategory.Error&&18003!==e.code}));t.length>0&&h(t[0])},r.watchFile=g(_),r.watchDirectory=g(d);var i=r.onCachedDirectoryStructureHostCreate;r.onCachedDirectoryStructureHostCreate=function(e){var r=e.readDirectory;e.readDirectory=function(e,n,i,a,o){return r(e,n?n.concat(t.extraFileExtensions):void 0,i,a,o)},i(e)};var a=r.setTimeout;return r.setTimeout=function(e,t){if(250===t)return e(),null;for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return a&&a.apply(void 0,[e,t].concat(n))},c.createWatchProgram(r)}function b(e,t,r){var n=e.getProgram().getProgram();if("true"===Oe.env.TSESTREE_NO_INVALIDATION)return n;(function(e){var t=o.default.statSync(e).mtimeMs,r=f.get(e);return f.set(e,t),void 0!==r&&Math.abs(r-t)>Number.EPSILON})(r)&&(u("tsconfig has changed - triggering program update. %s",r),_.get(r).forEach((function(e){return e(r,c.FileWatcherEventKind.Changed)})),p.delete(r));var i=n.getSourceFile(t);if(i)return n;u("File was not found in program - triggering folder update. %s",t);for(var a=Ja.canonicalDirname(t),s=null,l=a,m=!1;s!==l;){s=l;var g=d.get(s);if(g){g.forEach((function(e){return e(a,c.FileWatcherEventKind.Changed)})),m=!0;break}l=Ja.canonicalDirname(s)}if(!m)return u("No callback found for file, not part of this program. %s",t),null;if(p.delete(r),i=(n=e.getProgram().getProgram()).getSourceFile(t))return n;u("File was still not found in program after directory update - checking file deletions. %s",t);var y=n.getRootFileNames().find((function(e){return!o.default.existsSync(e)}));if(!y)return null;var h=_.get(Ja.getCanonicalFileName(y));return h?(u("Marking file as deleted. %s",y),h.forEach((function(e){return e(y,c.FileWatcherEventKind.Deleted)})),p.delete(r),(i=(n=e.getProgram().getProgram()).getSourceFile(t))?n:(u("File was still not found in program after deletion check, assuming it is not part of this program. %s",t),null)):(u("Could not find watch callbacks for root file. %s",y),n)}t.getProgramsForProjects=function(e,t,r){var n=Ja.getCanonicalFileName(t),i=[];y.code=e,y.filePath=n;var a=_.get(n);m.has(n)&&a&&a.size>0&&a.forEach((function(e){return e(n,c.FileWatcherEventKind.Changed)}));var o=!0,s=!1,d=void 0;try{for(var f,g=r.projects[Symbol.iterator]();!(o=(f=g.next()).done);o=!0){var h=f.value,x=Ja.getTsconfigPath(h,r),D=l.get(x);if(D){var S=p.get(x),T=null;if(S||(T=D.getProgram().getProgram(),S=new Set(T.getRootFileNames().map((function(e){return Ja.getCanonicalFileName(e)}))),p.set(x,S)),S.has(n))return u("Found existing program for file. %s",n),(T=T||D.getProgram().getProgram()).getTypeChecker(),[T]}}}catch(e){s=!0,d=e}finally{try{o||null==g.return||g.return()}finally{if(s)throw d}}u("File did not belong to any existing programs, moving to create/update. %s",n);var E=!0,C=!1,k=void 0;try{for(var N,A=r.projects[Symbol.iterator]();!(E=(N=A.next()).done);E=!0){var F=N.value,P=Ja.getTsconfigPath(F,r),w=l.get(P);if(w){var I=b(w,n,P);if(!I)continue;I.getTypeChecker(),i.push(I)}else{var O=v(P,r),M=O.getProgram().getProgram();l.set(P,O),i.push(M)}}}catch(e){C=!0,k=e}finally{try{E||null==A.return||A.return()}finally{if(C)throw k}}return i},t.createWatchProgram=v}));i(Va);Va.clearCaches,Va.getProgramsForProjects,Va.createWatchProgram;var qa=a((function(e,t){var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(Ka),a=r(yr),o=i.default("typescript-eslint:typescript-estree:createProjectProgram");t.createProjectProgram=function(e,t,r){o("Creating project program for: %s",r.filePath);var n=Gi.firstDefined(Va.getProgramsForProjects(e,r.filePath,r),(function(e){var t=e.getSourceFile(r.filePath);return t&&{ast:t,program:e}}));if(!n&&!t){var i=['"parserOptions.project" has been set for @typescript-eslint/parser.',"The file does not match your project config: ".concat(a.default.relative(Oe.cwd(),r.filePath),".")],s=!1,c=a.default.extname(r.filePath);if(-1===[".ts",".tsx",".js",".jsx"].indexOf(c)){var u="The extension for the file (".concat(c,") is non-standard");r.extraFileExtensions&&r.extraFileExtensions.length>0?r.extraFileExtensions.includes(c)||(i.push("".concat(u,'. It should be added to your existing "parserOptions.extraFileExtensions".')),s=!0):(i.push("".concat(u,'. You should add "parserOptions.extraFileExtensions" to your config.')),s=!0)}throw s||(i.push("The file must be included in at least one of the projects provided."),s=!0),new Error(i.join("\n"))}return n}}));i(qa);qa.createProjectProgram;var Wa=a((function(e,t){var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},i=n&&n.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a=r(Ka),o=i(Fr),s=a.default("typescript-eslint:typescript-estree:createSourceFile");t.createSourceFile=function(e,t){return s("Getting AST without type information in %s mode for: %s",t.jsx?"TSX":"TS",t.filePath),o.createSourceFile(t.filePath,e,o.ScriptTarget.Latest,!0,Ja.getScriptKind(t))}}));i(Wa);Wa.createSourceFile;var Ga=a((function(e,t){var r=n&&n.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(Fr);function a(e){return e.filter((function(e){switch(e.code){case 1013:case 1014:case 1044:case 1045:case 1048:case 1049:case 1070:case 1071:case 1085:case 1090:case 1096:case 1097:case 1098:case 1099:case 1117:case 1121:case 1123:case 1141:case 1162:case 1172:case 1173:case 1175:case 1176:case 1190:case 1200:case 1206:case 1211:case 1242:case 1246:case 1255:case 1308:case 2364:case 2369:case 2462:case 8017:case 17012:case 17013:return!0}return!1}))}function o(e){return Object.assign(Object.assign({},e),{message:i.flattenDiagnosticMessageText(e.messageText,i.sys.newLine)})}t.getFirstSemanticOrSyntacticError=function(e,t){try{var r=a(e.getSyntacticDiagnostics(t));if(r.length)return o(r[0]);var n=a(e.getSemanticDiagnostics(t));return n.length?o(n[0]):void 0}catch(e){return void console.warn('Warning From TSC: "'.concat(e.message))}}}));i(Ga);Ga.getFirstSemanticOrSyntacticError;var Ha="@typescript-eslint/typescript-estree",Ya="A parser that converts TypeScript source code into an ESTree compatible form",Xa="dist/parser.js",Qa="dist/parser.d.ts",$a=["dist","README.md","LICENSE"],Za={node:"^8.10.0 || ^10.13.0 || >=11.10.1"},eo={type:"git",url:"https://github.com/typescript-eslint/typescript-eslint.git",directory:"packages/typescript-estree"},to={url:"https://github.com/typescript-eslint/typescript-eslint/issues"},ro=["ast","estree","ecmascript","javascript","typescript","parser","syntax"],no={build:"tsc -b tsconfig.build.json",clean:"tsc -b tsconfig.build.json --clean",format:'prettier --write "./**/*.{ts,js,json,md}" --ignore-path ../../.prettierignore',lint:"eslint . --ext .js,.ts --ignore-path='../../.eslintignore'",test:"jest --coverage",typecheck:"tsc -p tsconfig.json --noEmit"},io={debug:"^4.1.1",glob:"^7.1.4","is-glob":"^4.0.1","lodash.unescape":"4.0.1",semver:"^6.3.0",tsutils:"^3.17.1"},ao={"@babel/code-frame":"7.5.5","@babel/parser":"7.5.5","@babel/types":"^7.3.2","@types/babel-code-frame":"^6.20.1","@types/debug":"^4.1.5","@types/glob":"^7.1.1","@types/is-glob":"^4.0.1","@types/lodash.isplainobject":"^4.0.4","@types/lodash.unescape":"^4.0.4","@types/semver":"^6.0.1","@types/tmp":"^0.1.0","@typescript-eslint/shared-fixtures":"2.6.1","babel-code-frame":"^6.26.0",glob:"^7.1.4","lodash.isplainobject":"4.0.6",tmp:"^0.1.0",typescript:"*"},oo={typescript:{optional:!0}},so="643d6d62630a16d189f0673a4bcf34202c7a3fde",co={name:Ha,version:"2.6.1",description:Ya,main:Xa,types:Qa,files:$a,engines:Za,repository:eo,bugs:to,license:"BSD-2-Clause",keywords:ro,scripts:no,dependencies:io,devDependencies:ao,peerDependenciesMeta:oo,gitHead:so},uo=o(Object.freeze({__proto__:null,name:Ha,version:"2.6.1",description:Ya,main:Xa,types:Qa,files:$a,engines:Za,repository:eo,bugs:to,license:"BSD-2-Clause",keywords:ro,scripts:no,dependencies:io,devDependencies:ao,peerDependenciesMeta:oo,gitHead:so,default:co})),lo=a((function(e,t){var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},i=n&&n.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,o=r(Me),s=i(Fr),c=r(Ni),u=">=3.2.1 <3.8.0",l=s.version,_=o.default.satisfies(l,[u].concat([">3.7.0-dev.0","3.7.1-rc"]).join(" || ")),d=!1;function p(e){return"string"!=typeof e?String(e):e}function m(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).jsx?"estree.tsx":"estree.ts"}function g(){a={code:"",comment:!1,comments:[],createDefaultProgram:!1,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:!1,extraFileExtensions:[],filePath:m(),jsx:!1,loc:!1,log:console.log,preserveNodeMaps:void 0,projects:[],range:!1,strict:!1,tokens:null,tsconfigRootDir:Oe.cwd(),useJSXTextNode:!1}}function y(e){a.range="boolean"==typeof e.range&&e.range,a.loc="boolean"==typeof e.loc&&e.loc,"boolean"==typeof e.tokens&&e.tokens&&(a.tokens=[]),"boolean"==typeof e.comment&&e.comment&&(a.comment=!0,a.comments=[]),"boolean"==typeof e.jsx&&e.jsx&&(a.jsx=!0),"string"==typeof e.filePath&&"<input>"!==e.filePath?a.filePath=e.filePath:a.filePath=m(a),"boolean"==typeof e.useJSXTextNode&&e.useJSXTextNode&&(a.useJSXTextNode=!0),"boolean"==typeof e.errorOnUnknownASTType&&e.errorOnUnknownASTType&&(a.errorOnUnknownASTType=!0),"function"==typeof e.loggerFn?a.log=e.loggerFn:!1===e.loggerFn&&(a.log=Function.prototype),"string"==typeof e.project?a.projects=[e.project]:Array.isArray(e.project)&&e.project.every((function(e){return"string"==typeof e}))&&(a.projects=e.project),"string"==typeof e.tsconfigRootDir&&(a.tsconfigRootDir=e.tsconfigRootDir),a.projects&&(a.projects=a.projects.reduce((function(e,t){return e.concat(c.default(t)?gi.sync(t,{cwd:a.tsconfigRootDir||Oe.cwd()}):t)}),[])),Array.isArray(e.extraFileExtensions)&&e.extraFileExtensions.every((function(e){return"string"==typeof e}))&&(a.extraFileExtensions=e.extraFileExtensions),a.preserveNodeMaps="boolean"==typeof e.preserveNodeMaps&&e.preserveNodeMaps,void 0===e.preserveNodeMaps&&a.projects.length>0&&(a.preserveNodeMaps=!0),a.createDefaultProgram="boolean"==typeof e.createDefaultProgram&&e.createDefaultProgram}function h(){if(!_&&!d){if(void 0!==f(Oe)&&Oe.stdout.isTTY){var e=["=============","WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.","You may find that it works just fine, or you may not.","SUPPORTED TYPESCRIPT VERSIONS: ".concat(u),"YOUR TYPESCRIPT VERSION: ".concat(l),"Please only submit bug reports when using the officially supported version.","============="];a.log(e.join("\n\n"))}d=!0}}var v=uo.version;t.version=v,t.parse=function(e,t){if(g(),t&&t.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');e=p(e),a.code=e,void 0!==t&&y(t),h();var r=Wa.createSourceFile(e,a);return Da.astConverter(r,a,!1).estree},t.parseAndGenerateServices=function(e,t){g(),e=p(e),a.code=e,void 0!==t&&(y(t),"boolean"==typeof t.errorOnTypeScriptSyntacticAndSemanticIssues&&t.errorOnTypeScriptSyntacticAndSemanticIssues&&(a.errorOnTypeScriptSyntacticAndSemanticIssues=!0)),h();var r=a.projects&&a.projects.length>0,n=function(e,t,r){return t&&qa.createProjectProgram(e,r,a)||t&&r&&za.createDefaultProgram(e,a)||Ua.createIsolatedProgram(e,a)}(e,r,a.createDefaultProgram),i=n.ast,o=n.program,s=void 0!==a.preserveNodeMaps?a.preserveNodeMaps:r,c=Da.astConverter(i,a,s),u=c.estree,l=c.astMaps;if(o&&a.errorOnTypeScriptSyntacticAndSemanticIssues){var _=Ga.getFirstSemanticOrSyntacticError(o,i);if(_)throw Hi.convertError(_)}return{ast:u,services:{program:r?o:void 0,esTreeNodeToTSNodeMap:s&&l?l.esTreeNodeToTSNodeMap:void 0,tsNodeToESTreeNodeMap:s&&l?l.tsNodeToESTreeNodeMap:void 0}}},function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(Wi),t.clearCaches=Va.clearCaches}));i(lo);lo.version,lo.parse,lo.parseAndGenerateServices,lo.clearCaches;var _o=_;function po(e,t){return lo.parse(e,{loc:!0,range:!0,tokens:!0,comment:!0,useJSXTextNode:!0,jsx:t})}var fo={parsers:{typescript:Object.assign({parse:function(e,n,i){var a,o=function(e){return new RegExp(["(^[^\"'`]*</)","|","(^[^/]{2}.*/>)"].join(""),"m").test(e)}(e);try{a=po(e,o)}catch(r){try{a=po(e,!o)}catch(e){var s=r;if(void 0===s.lineNumber)throw s;throw t(s.message,{start:{line:s.lineNumber,column:s.column+1}})}}return delete a.tokens,r(e,a),ce(a,Object.assign({},i,{originalText:e}))},astFormat:"estree",hasPragma:_o},p)}},mo=fo.parsers;e.default=fo,e.parsers=mo,Object.defineProperty(e,"__esModule",{value:!0})}));
(function(e){if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var i=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};i.prettierPlugins=i.prettierPlugins||{},i.prettierPlugins.typescript=e()}})(function(){"use strict";var Un=(R,te)=>()=>(te||R((te={exports:{}}).exports,te),te.exports);var Rc=Un((KU,eA)=>{var L0=function(R){return R&&R.Math==Math&&R};eA.exports=L0(typeof globalThis=="object"&&globalThis)||L0(typeof window=="object"&&window)||L0(typeof self=="object"&&self)||L0(typeof global=="object"&&global)||function(){return this}()||Function("return this")()});var Vd=Un((GU,rA)=>{rA.exports=function(R){try{return!!R()}catch{return!0}}});var hm=Un((HU,iA)=>{var nL=Vd();iA.exports=!nL(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var R0=Un((XU,tA)=>{var oL=Vd();tA.exports=!oL(function(){var R=function(){}.bind();return typeof R!="function"||R.hasOwnProperty("prototype")})});var J0=Un((QU,aA)=>{var sL=R0(),B0=Function.prototype.call;aA.exports=sL?B0.bind(B0):function(){return B0.apply(B0,arguments)}});var cA=Un(sA=>{"use strict";var nA={}.propertyIsEnumerable,oA=Object.getOwnPropertyDescriptor,cL=oA&&!nA.call({1:2},1);sA.f=cL?function(te){var qe=oA(this,te);return!!qe&&qe.enumerable}:nA});var AS=Un(($U,uA)=>{uA.exports=function(R,te){return{enumerable:!(R&1),configurable:!(R&2),writable:!(R&4),value:te}}});var sp=Un((ZU,_A)=>{var lA=R0(),fA=Function.prototype,uL=fA.bind,PS=fA.call,lL=lA&&uL.bind(PS,PS);_A.exports=lA?function(R){return R&&lL(R)}:function(R){return R&&function(){return PS.apply(R,arguments)}}});var j0=Un((ez,dA)=>{var pA=sp(),fL=pA({}.toString),_L=pA("".slice);dA.exports=function(R){return _L(fL(R),8,-1)}});var mA=Un((rz,gA)=>{var pL=Rc(),dL=sp(),gL=Vd(),mL=j0(),NS=pL.Object,vL=dL("".split);gA.exports=gL(function(){return!NS("z").propertyIsEnumerable(0)})?function(R){return mL(R)=="String"?vL(R,""):NS(R)}:NS});var IS=Un((iz,vA)=>{var yL=Rc(),hL=yL.TypeError;vA.exports=function(R){if(R==null)throw hL("Can't call method on "+R);return R}});var U0=Un((tz,yA)=>{var DL=mA(),bL=IS();yA.exports=function(R){return DL(bL(R))}});var cp=Un((az,hA)=>{hA.exports=function(R){return typeof R=="function"}});var Dm=Un((nz,DA)=>{var SL=cp();DA.exports=function(R){return typeof R=="object"?R!==null:SL(R)}});var Py=Un((oz,bA)=>{var wS=Rc(),TL=cp(),xL=function(R){return TL(R)?R:void 0};bA.exports=function(R,te){return arguments.length<2?xL(wS[R]):wS[R]&&wS[R][te]}});var TA=Un((sz,SA)=>{var EL=sp();SA.exports=EL({}.isPrototypeOf)});var EA=Un((cz,xA)=>{var CL=Py();xA.exports=CL("navigator","userAgent")||""});var wA=Un((uz,IA)=>{var NA=Rc(),OS=EA(),CA=NA.process,kA=NA.Deno,AA=CA&&CA.versions||kA&&kA.version,PA=AA&&AA.v8,Kp,z0;PA&&(Kp=PA.split("."),z0=Kp[0]>0&&Kp[0]<4?1:+(Kp[0]+Kp[1]));!z0&&OS&&(Kp=OS.match(/Edge\/(\d+)/),(!Kp||Kp[1]>=74)&&(Kp=OS.match(/Chrome\/(\d+)/),Kp&&(z0=+Kp[1])));IA.exports=z0});var FS=Un((lz,FA)=>{var OA=wA(),kL=Vd();FA.exports=!!Object.getOwnPropertySymbols&&!kL(function(){var R=Symbol();return!String(R)||!(Object(R)instanceof Symbol)||!Symbol.sham&&OA&&OA<41})});var MS=Un((fz,MA)=>{var AL=FS();MA.exports=AL&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var LS=Un((_z,LA)=>{var PL=Rc(),NL=Py(),IL=cp(),wL=TA(),OL=MS(),FL=PL.Object;LA.exports=OL?function(R){return typeof R=="symbol"}:function(R){var te=NL("Symbol");return IL(te)&&wL(te.prototype,FL(R))}});var BA=Un((pz,RA)=>{var ML=Rc(),LL=ML.String;RA.exports=function(R){try{return LL(R)}catch{return"Object"}}});var W0=Un((dz,JA)=>{var RL=Rc(),BL=cp(),JL=BA(),jL=RL.TypeError;JA.exports=function(R){if(BL(R))return R;throw jL(JL(R)+" is not a function")}});var UA=Un((gz,jA)=>{var UL=W0();jA.exports=function(R,te){var qe=R[te];return qe==null?void 0:UL(qe)}});var WA=Un((mz,zA)=>{var zL=Rc(),RS=J0(),BS=cp(),JS=Dm(),WL=zL.TypeError;zA.exports=function(R,te){var qe,Ve;if(te==="string"&&BS(qe=R.toString)&&!JS(Ve=RS(qe,R))||BS(qe=R.valueOf)&&!JS(Ve=RS(qe,R))||te!=="string"&&BS(qe=R.toString)&&!JS(Ve=RS(qe,R)))return Ve;throw WL("Can't convert object to primitive value")}});var VA=Un((vz,qA)=>{qA.exports=!1});var q0=Un((yz,GA)=>{var KA=Rc(),qL=Object.defineProperty;GA.exports=function(R,te){try{qL(KA,R,{value:te,configurable:!0,writable:!0})}catch{KA[R]=te}return te}});var V0=Un((hz,XA)=>{var VL=Rc(),KL=q0(),HA="__core-js_shared__",GL=VL[HA]||KL(HA,{});XA.exports=GL});var jS=Un((Dz,YA)=>{var HL=VA(),QA=V0();(YA.exports=function(R,te){return QA[R]||(QA[R]=te!==void 0?te:{})})("versions",[]).push({version:"3.21.1",mode:HL?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})});var US=Un((bz,$A)=>{var XL=Rc(),QL=IS(),YL=XL.Object;$A.exports=function(R){return YL(QL(R))}});var Cg=Un((Sz,ZA)=>{var $L=sp(),ZL=US(),eR=$L({}.hasOwnProperty);ZA.exports=Object.hasOwn||function(te,qe){return eR(ZL(te),qe)}});var zS=Un((Tz,e4)=>{var rR=sp(),iR=0,tR=Math.random(),aR=rR(1 .toString);e4.exports=function(R){return"Symbol("+(R===void 0?"":R)+")_"+aR(++iR+tR,36)}});var Ny=Un((xz,n4)=>{var nR=Rc(),oR=jS(),r4=Cg(),sR=zS(),i4=FS(),a4=MS(),mv=oR("wks"),bm=nR.Symbol,t4=bm&&bm.for,cR=a4?bm:bm&&bm.withoutSetter||sR;n4.exports=function(R){if(!r4(mv,R)||!(i4||typeof mv[R]=="string")){var te="Symbol."+R;i4&&r4(bm,R)?mv[R]=bm[R]:a4&&t4?mv[R]=t4(te):mv[R]=cR(te)}return mv[R]}});var u4=Un((Ez,c4)=>{var uR=Rc(),lR=J0(),o4=Dm(),s4=LS(),fR=UA(),_R=WA(),pR=Ny(),dR=uR.TypeError,gR=pR("toPrimitive");c4.exports=function(R,te){if(!o4(R)||s4(R))return R;var qe=fR(R,gR),Ve;if(qe){if(te===void 0&&(te="default"),Ve=lR(qe,R,te),!o4(Ve)||s4(Ve))return Ve;throw dR("Can't convert object to primitive value")}return te===void 0&&(te="number"),_R(R,te)}});var WS=Un((Cz,l4)=>{var mR=u4(),vR=LS();l4.exports=function(R){var te=mR(R,"string");return vR(te)?te:te+""}});var p4=Un((kz,_4)=>{var yR=Rc(),f4=Dm(),qS=yR.document,hR=f4(qS)&&f4(qS.createElement);_4.exports=function(R){return hR?qS.createElement(R):{}}});var VS=Un((Az,d4)=>{var DR=hm(),bR=Vd(),SR=p4();d4.exports=!DR&&!bR(function(){return Object.defineProperty(SR("div"),"a",{get:function(){return 7}}).a!=7})});var KS=Un(m4=>{var TR=hm(),xR=J0(),ER=cA(),CR=AS(),kR=U0(),AR=WS(),PR=Cg(),NR=VS(),g4=Object.getOwnPropertyDescriptor;m4.f=TR?g4:function(te,qe){if(te=kR(te),qe=AR(qe),NR)try{return g4(te,qe)}catch{}if(PR(te,qe))return CR(!xR(ER.f,te,qe),te[qe])}});var y4=Un((Nz,v4)=>{var IR=hm(),wR=Vd();v4.exports=IR&&wR(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})});var GS=Un((Iz,D4)=>{var h4=Rc(),OR=Dm(),FR=h4.String,MR=h4.TypeError;D4.exports=function(R){if(OR(R))return R;throw MR(FR(R)+" is not an object")}});var $S=Un(S4=>{var LR=Rc(),RR=hm(),BR=VS(),JR=y4(),K0=GS(),b4=WS(),jR=LR.TypeError,HS=Object.defineProperty,UR=Object.getOwnPropertyDescriptor,XS="enumerable",QS="configurable",YS="writable";S4.f=RR?JR?function(te,qe,Ve){if(K0(te),qe=b4(qe),K0(Ve),typeof te=="function"&&qe==="prototype"&&"value"in Ve&&YS in Ve&&!Ve[YS]){var ni=UR(te,qe);ni&&ni[YS]&&(te[qe]=Ve.value,Ve={configurable:QS in Ve?Ve[QS]:ni[QS],enumerable:XS in Ve?Ve[XS]:ni[XS],writable:!1})}return HS(te,qe,Ve)}:HS:function(te,qe,Ve){if(K0(te),qe=b4(qe),K0(Ve),BR)try{return HS(te,qe,Ve)}catch{}if("get"in Ve||"set"in Ve)throw jR("Accessors not supported");return"value"in Ve&&(te[qe]=Ve.value),te}});var G0=Un((Oz,T4)=>{var zR=hm(),WR=$S(),qR=AS();T4.exports=zR?function(R,te,qe){return WR.f(R,te,qR(1,qe))}:function(R,te,qe){return R[te]=qe,R}});var H0=Un((Fz,x4)=>{var VR=sp(),KR=cp(),ZS=V0(),GR=VR(Function.toString);KR(ZS.inspectSource)||(ZS.inspectSource=function(R){return GR(R)});x4.exports=ZS.inspectSource});var k4=Un((Mz,C4)=>{var HR=Rc(),XR=cp(),QR=H0(),E4=HR.WeakMap;C4.exports=XR(E4)&&/native code/.test(QR(E4))});var N4=Un((Lz,P4)=>{var YR=jS(),$R=zS(),A4=YR("keys");P4.exports=function(R){return A4[R]||(A4[R]=$R(R))}});var eT=Un((Rz,I4)=>{I4.exports={}});var R4=Un((Bz,L4)=>{var ZR=k4(),M4=Rc(),rT=sp(),eB=Dm(),rB=G0(),iT=Cg(),tT=V0(),iB=N4(),tB=eT(),w4="Object already initialized",nT=M4.TypeError,aB=M4.WeakMap,X0,Iy,Q0,nB=function(R){return Q0(R)?Iy(R):X0(R,{})},oB=function(R){return function(te){var qe;if(!eB(te)||(qe=Iy(te)).type!==R)throw nT("Incompatible receiver, "+R+" required");return qe}};ZR||tT.state?(kg=tT.state||(tT.state=new aB),O4=rT(kg.get),aT=rT(kg.has),F4=rT(kg.set),X0=function(R,te){if(aT(kg,R))throw new nT(w4);return te.facade=R,F4(kg,R,te),te},Iy=function(R){return O4(kg,R)||{}},Q0=function(R){return aT(kg,R)}):(Sm=iB("state"),tB[Sm]=!0,X0=function(R,te){if(iT(R,Sm))throw new nT(w4);return te.facade=R,rB(R,Sm,te),te},Iy=function(R){return iT(R,Sm)?R[Sm]:{}},Q0=function(R){return iT(R,Sm)});var kg,O4,aT,F4,Sm;L4.exports={set:X0,get:Iy,has:Q0,enforce:nB,getterFor:oB}});var j4=Un((Jz,J4)=>{var oT=hm(),sB=Cg(),B4=Function.prototype,cB=oT&&Object.getOwnPropertyDescriptor,sT=sB(B4,"name"),uB=sT&&function(){}.name==="something",lB=sT&&(!oT||oT&&cB(B4,"name").configurable);J4.exports={EXISTS:sT,PROPER:uB,CONFIGURABLE:lB}});var V4=Un((jz,q4)=>{var fB=Rc(),U4=cp(),_B=Cg(),z4=G0(),pB=q0(),dB=H0(),W4=R4(),gB=j4().CONFIGURABLE,mB=W4.get,vB=W4.enforce,yB=String(String).split("String");(q4.exports=function(R,te,qe,Ve){var ni=Ve?!!Ve.unsafe:!1,wr=Ve?!!Ve.enumerable:!1,fr=Ve?!!Ve.noTargetGet:!1,Mr=Ve&&Ve.name!==void 0?Ve.name:te,ir;if(U4(qe)&&(String(Mr).slice(0,7)==="Symbol("&&(Mr="["+String(Mr).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!_B(qe,"name")||gB&&qe.name!==Mr)&&z4(qe,"name",Mr),ir=vB(qe),ir.source||(ir.source=yB.join(typeof Mr=="string"?Mr:""))),R===fB){wr?R[te]=qe:pB(te,qe);return}else ni?!fr&&R[te]&&(wr=!0):delete R[te];wr?R[te]=qe:z4(R,te,qe)})(Function.prototype,"toString",function(){return U4(this)&&mB(this).source||dB(this)})});var cT=Un((Uz,K4)=>{var hB=Math.ceil,DB=Math.floor;K4.exports=function(R){var te=+R;return te!==te||te===0?0:(te>0?DB:hB)(te)}});var H4=Un((zz,G4)=>{var bB=cT(),SB=Math.max,TB=Math.min;G4.exports=function(R,te){var qe=bB(R);return qe<0?SB(qe+te,0):TB(qe,te)}});var Q4=Un((Wz,X4)=>{var xB=cT(),EB=Math.min;X4.exports=function(R){return R>0?EB(xB(R),9007199254740991):0}});var Y0=Un((qz,Y4)=>{var CB=Q4();Y4.exports=function(R){return CB(R.length)}});var eP=Un((Vz,Z4)=>{var kB=U0(),AB=H4(),PB=Y0(),$4=function(R){return function(te,qe,Ve){var ni=kB(te),wr=PB(ni),fr=AB(Ve,wr),Mr;if(R&&qe!=qe){for(;wr>fr;)if(Mr=ni[fr++],Mr!=Mr)return!0}else for(;wr>fr;fr++)if((R||fr in ni)&&ni[fr]===qe)return R||fr||0;return!R&&-1}};Z4.exports={includes:$4(!0),indexOf:$4(!1)}});var tP=Un((Kz,iP)=>{var NB=sp(),uT=Cg(),IB=U0(),wB=eP().indexOf,OB=eT(),rP=NB([].push);iP.exports=function(R,te){var qe=IB(R),Ve=0,ni=[],wr;for(wr in qe)!uT(OB,wr)&&uT(qe,wr)&&rP(ni,wr);for(;te.length>Ve;)uT(qe,wr=te[Ve++])&&(~wB(ni,wr)||rP(ni,wr));return ni}});var nP=Un((Gz,aP)=>{aP.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var sP=Un(oP=>{var FB=tP(),MB=nP(),LB=MB.concat("length","prototype");oP.f=Object.getOwnPropertyNames||function(te){return FB(te,LB)}});var uP=Un(cP=>{cP.f=Object.getOwnPropertySymbols});var fP=Un((Qz,lP)=>{var RB=Py(),BB=sp(),JB=sP(),jB=uP(),UB=GS(),zB=BB([].concat);lP.exports=RB("Reflect","ownKeys")||function(te){var qe=JB.f(UB(te)),Ve=jB.f;return Ve?zB(qe,Ve(te)):qe}});var dP=Un((Yz,pP)=>{var _P=Cg(),WB=fP(),qB=KS(),VB=$S();pP.exports=function(R,te,qe){for(var Ve=WB(te),ni=VB.f,wr=qB.f,fr=0;fr<Ve.length;fr++){var Mr=Ve[fr];!_P(R,Mr)&&!(qe&&_P(qe,Mr))&&ni(R,Mr,wr(te,Mr))}}});var mP=Un(($z,gP)=>{var KB=Vd(),GB=cp(),HB=/#|\.prototype\./,wy=function(R,te){var qe=QB[XB(R)];return qe==$B?!0:qe==YB?!1:GB(te)?KB(te):!!te},XB=wy.normalize=function(R){return String(R).replace(HB,".").toLowerCase()},QB=wy.data={},YB=wy.NATIVE="N",$B=wy.POLYFILL="P";gP.exports=wy});var fT=Un((Zz,vP)=>{var lT=Rc(),ZB=KS().f,eJ=G0(),rJ=V4(),iJ=q0(),tJ=dP(),aJ=mP();vP.exports=function(R,te){var qe=R.target,Ve=R.global,ni=R.stat,wr,fr,Mr,ir,Pe,e;if(Ve?fr=lT:ni?fr=lT[qe]||iJ(qe,{}):fr=(lT[qe]||{}).prototype,fr)for(Mr in te){if(Pe=te[Mr],R.noTargetGet?(e=ZB(fr,Mr),ir=e&&e.value):ir=fr[Mr],wr=aJ(Ve?Mr:qe+(ni?".":"#")+Mr,R.forced),!wr&&ir!==void 0){if(typeof Pe==typeof ir)continue;tJ(Pe,ir)}(R.sham||ir&&ir.sham)&&eJ(Pe,"sham",!0),rJ(fr,Mr,Pe,R)}}});var yP=Un(()=>{var nJ=fT(),oJ=Rc();nJ({global:!0},{globalThis:oJ})});var hP=Un(()=>{yP()});var _T=Un((aW,DP)=>{var sJ=j0();DP.exports=Array.isArray||function(te){return sJ(te)=="Array"}});var TP=Un((nW,SP)=>{var bP=sp(),cJ=W0(),uJ=R0(),lJ=bP(bP.bind);SP.exports=function(R,te){return cJ(R),te===void 0?R:uJ?lJ(R,te):function(){return R.apply(te,arguments)}}});var CP=Un((oW,EP)=>{"use strict";var fJ=Rc(),_J=_T(),pJ=Y0(),dJ=TP(),gJ=fJ.TypeError,xP=function(R,te,qe,Ve,ni,wr,fr,Mr){for(var ir=ni,Pe=0,e=fr?dJ(fr,Mr):!1,a,O;Pe<Ve;){if(Pe in qe){if(a=e?e(qe[Pe],Pe,te):qe[Pe],wr>0&&_J(a))O=pJ(a),ir=xP(R,te,a,O,ir,wr-1)-1;else{if(ir>=9007199254740991)throw gJ("Exceed the acceptable array length");R[ir]=a}ir++}Pe++}return ir};EP.exports=xP});var PP=Un((sW,AP)=>{var mJ=Ny(),vJ=mJ("toStringTag"),kP={};kP[vJ]="z";AP.exports=String(kP)==="[object z]"});var IP=Un((cW,NP)=>{var yJ=Rc(),hJ=PP(),DJ=cp(),$0=j0(),bJ=Ny(),SJ=bJ("toStringTag"),TJ=yJ.Object,xJ=$0(function(){return arguments}())=="Arguments",EJ=function(R,te){try{return R[te]}catch{}};NP.exports=hJ?$0:function(R){var te,qe,Ve;return R===void 0?"Undefined":R===null?"Null":typeof(qe=EJ(te=TJ(R),SJ))=="string"?qe:xJ?$0(te):(Ve=$0(te))=="Object"&&DJ(te.callee)?"Arguments":Ve}});var RP=Un((uW,LP)=>{var CJ=sp(),kJ=Vd(),wP=cp(),AJ=IP(),PJ=Py(),NJ=H0(),OP=function(){},IJ=[],FP=PJ("Reflect","construct"),pT=/^\s*(?:class|function)\b/,wJ=CJ(pT.exec),OJ=!pT.exec(OP),Oy=function(te){if(!wP(te))return!1;try{return FP(OP,IJ,te),!0}catch{return!1}},MP=function(te){if(!wP(te))return!1;switch(AJ(te)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return OJ||!!wJ(pT,NJ(te))}catch{return!0}};MP.sham=!0;LP.exports=!FP||kJ(function(){var R;return Oy(Oy.call)||!Oy(Object)||!Oy(function(){R=!0})||R})?MP:Oy});var UP=Un((lW,jP)=>{var FJ=Rc(),BP=_T(),MJ=RP(),LJ=Dm(),RJ=Ny(),BJ=RJ("species"),JP=FJ.Array;jP.exports=function(R){var te;return BP(R)&&(te=R.constructor,MJ(te)&&(te===JP||BP(te.prototype))?te=void 0:LJ(te)&&(te=te[BJ],te===null&&(te=void 0))),te===void 0?JP:te}});var WP=Un((fW,zP)=>{var JJ=UP();zP.exports=function(R,te){return new(JJ(R))(te===0?0:te)}});var qP=Un(()=>{"use strict";var jJ=fT(),UJ=CP(),zJ=W0(),WJ=US(),qJ=Y0(),VJ=WP();jJ({target:"Array",proto:!0},{flatMap:function(te){var qe=WJ(this),Ve=qJ(qe),ni;return zJ(te),ni=VJ(qe,0),ni.length=UJ(ni,qe,qe,Ve,0,1,te,arguments.length>1?arguments[1]:void 0),ni}})});var qU=Un((dW,BN)=>{hP();qP();var bT=Object.defineProperty,KJ=Object.getOwnPropertyDescriptor,ST=Object.getOwnPropertyNames,GJ=Object.prototype.hasOwnProperty,My=(R,te)=>function(){return R&&(te=(0,R[ST(R)[0]])(R=0)),te},Aa=(R,te)=>function(){return te||(0,R[ST(R)[0]])((te={exports:{}}).exports,te),te.exports},t1=(R,te)=>{for(var qe in te)bT(R,qe,{get:te[qe],enumerable:!0})},HJ=(R,te,qe,Ve)=>{if(te&&typeof te=="object"||typeof te=="function")for(let ni of ST(te))!GJ.call(R,ni)&&ni!==qe&&bT(R,ni,{get:()=>te[ni],enumerable:!(Ve=KJ(te,ni))||Ve.enumerable});return R},up=R=>HJ(bT({},"__esModule",{value:!0}),R),VP,KP,yl,Sa=My({"<define:process>"(){VP={},KP=[],yl={env:VP,argv:KP}}}),QP=Aa({"src/common/parser-create-error.js"(R,te){"use strict";Sa();function qe(Ve,ni){let wr=new SyntaxError(Ve+" ("+ni.start.line+":"+ni.start.column+")");return wr.loc=ni,wr}te.exports=qe}}),XJ=Aa({"src/utils/try-combinations.js"(R,te){"use strict";Sa();function qe(){let Ve;for(var ni=arguments.length,wr=new Array(ni),fr=0;fr<ni;fr++)wr[fr]=arguments[fr];for(let[Mr,ir]of wr.entries())try{return{result:ir()}}catch(Pe){Mr===0&&(Ve=Pe)}return{error:Ve}}te.exports=qe}}),YP={};t1(YP,{EOL:()=>mT,arch:()=>QJ,cpus:()=>aN,default:()=>uN,endianness:()=>$P,freemem:()=>iN,getNetworkInterfaces:()=>cN,hostname:()=>ZP,loadavg:()=>eN,networkInterfaces:()=>sN,platform:()=>YJ,release:()=>oN,tmpDir:()=>dT,tmpdir:()=>gT,totalmem:()=>tN,type:()=>nN,uptime:()=>rN});function $P(){if(typeof Z0>"u"){var R=new ArrayBuffer(2),te=new Uint8Array(R),qe=new Uint16Array(R);if(te[0]=1,te[1]=2,qe[0]===258)Z0="BE";else if(qe[0]===513)Z0="LE";else throw new Error("unable to figure out endianess")}return Z0}function ZP(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function eN(){return[]}function rN(){return 0}function iN(){return Number.MAX_VALUE}function tN(){return Number.MAX_VALUE}function aN(){return[]}function nN(){return"Browser"}function oN(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function sN(){}function cN(){}function QJ(){return"javascript"}function YJ(){return"browser"}function dT(){return"/tmp"}var Z0,gT,mT,uN,$J=My({"node-modules-polyfills:os"(){Sa(),gT=dT,mT=`
`,uN={EOL:mT,tmpdir:gT,tmpDir:dT,networkInterfaces:sN,getNetworkInterfaces:cN,release:oN,type:nN,cpus:aN,totalmem:tN,freemem:iN,uptime:rN,loadavg:eN,hostname:ZP,endianness:$P}}}),ZJ=Aa({"node-modules-polyfills-commonjs:os"(R,te){Sa();var qe=($J(),up(YP));if(qe&&qe.default){te.exports=qe.default;for(let Ve in qe)te.exports[Ve]=qe[Ve]}else qe&&(te.exports=qe)}}),ej=Aa({"node_modules/detect-newline/index.js"(R,te){"use strict";Sa();var qe=Ve=>{if(typeof Ve!="string")throw new TypeError("Expected a string");let ni=Ve.match(/(?:\r?\n)/g)||[];if(ni.length===0)return;let wr=ni.filter(Mr=>Mr===`\r
`).length,fr=ni.length-wr;return wr>fr?`\r
`:`
`};te.exports=qe,te.exports.graceful=Ve=>typeof Ve=="string"&&qe(Ve)||`
`}}),rj=Aa({"node_modules/jest-docblock/build/index.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.extract=L,R.parse=N,R.parseWithComments=Q,R.print=pe,R.strip=W;function te(){let g=ZJ();return te=function(){return g},g}function qe(){let g=Ve(ej());return qe=function(){return g},g}function Ve(g){return g&&g.__esModule?g:{default:g}}var ni=/\*\/$/,wr=/^\/\*\*/,fr=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Mr=/(^|\s+)\/\/([^\r\n]*)/g,ir=/^(\r?\n)+/,Pe=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,e=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,a=/(\r?\n|^) *\* ?/g,O=[];function L(g){let S=g.match(fr);return S?S[0].trimLeft():""}function W(g){let S=g.match(fr);return S&&S[0]?g.substring(S[0].length):g}function N(g){return Q(g).pragmas}function Q(g){let S=(0,qe().default)(g)||te().EOL;g=g.replace(wr,"").replace(ni,"").replace(a,"$1");let H="";for(;H!==g;)H=g,g=g.replace(Pe,"".concat(S,"$1 $2").concat(S));g=g.replace(ir,"").trimRight();let se=Object.create(null),p=g.replace(e,"").replace(ir,"").trimRight(),C;for(;C=e.exec(g);){let G=C[2].replace(Mr,"");typeof se[C[1]]=="string"||Array.isArray(se[C[1]])?se[C[1]]=O.concat(se[C[1]],G):se[C[1]]=G}return{comments:p,pragmas:se}}function pe(g){let{comments:S="",pragmas:H={}}=g,se=(0,qe().default)(S)||te().EOL,p="/**",C=" *",G=" */",E=Object.keys(H),ue=E.map(re=>F(re,H[re])).reduce((re,M)=>re.concat(M),[]).map(re=>C+" "+re+se).join("");if(!S){if(E.length===0)return"";if(E.length===1&&!Array.isArray(H[E[0]])){let re=H[E[0]];return"".concat(p," ").concat(F(E[0],re)[0]).concat(G)}}let B=S.split(se).map(re=>"".concat(C," ").concat(re)).join(se)+se;return p+se+(S?B:"")+(S&&E.length?C+se:"")+ue+G}function F(g,S){return O.concat(S).map(H=>"@".concat(g," ").concat(H).trim())}}}),ij=Aa({"src/common/end-of-line.js"(R,te){"use strict";Sa();function qe(fr){let Mr=fr.indexOf("\r");return Mr>=0?fr.charAt(Mr+1)===`
`?"crlf":"cr":"lf"}function Ve(fr){switch(fr){case"cr":return"\r";case"crlf":return`\r
`;default:return`
`}}function ni(fr,Mr){let ir;switch(Mr){case`
`:ir=/\n/g;break;case"\r":ir=/\r/g;break;case`\r
`:ir=/\r\n/g;break;default:throw new Error('Unexpected "eol" '.concat(JSON.stringify(Mr),"."))}let Pe=fr.match(ir);return Pe?Pe.length:0}function wr(fr){return fr.replace(/\r\n?/g,`
`)}te.exports={guessEndOfLine:qe,convertEndOfLineToChars:Ve,countEndOfLineChars:ni,normalizeEndOfLine:wr}}}),tj=Aa({"src/language-js/utils/get-shebang.js"(R,te){"use strict";Sa();function qe(Ve){if(!Ve.startsWith("#!"))return"";let ni=Ve.indexOf(`
`);return ni===-1?Ve:Ve.slice(0,ni)}te.exports=qe}}),aj=Aa({"src/language-js/pragma.js"(R,te){"use strict";Sa();var{parseWithComments:qe,strip:Ve,extract:ni,print:wr}=rj(),{normalizeEndOfLine:fr}=ij(),Mr=tj();function ir(a){let O=Mr(a);O&&(a=a.slice(O.length+1));let L=ni(a),{pragmas:W,comments:N}=qe(L);return{shebang:O,text:a,pragmas:W,comments:N}}function Pe(a){let O=Object.keys(ir(a).pragmas);return O.includes("prettier")||O.includes("format")}function e(a){let{shebang:O,text:L,pragmas:W,comments:N}=ir(a),Q=Ve(L),pe=wr({pragmas:Object.assign({format:""},W),comments:N.trimStart()});return(O?"".concat(O,`
`):"")+fr(pe)+(Q.startsWith(`
`)?`
`:`
`)+Q}te.exports={hasPragma:Pe,insertPragma:e}}}),nj=Aa({"src/utils/is-non-empty-array.js"(R,te){"use strict";Sa();function qe(Ve){return Array.isArray(Ve)&&Ve.length>0}te.exports=qe}}),lN=Aa({"src/language-js/loc.js"(R,te){"use strict";Sa();var qe=nj();function Ve(ir,Pe){let{ignoreDecorators:e}=Pe||{};if(!e){let a=ir.declaration&&ir.declaration.decorators||ir.decorators;if(qe(a))return Ve(a[0])}return ir.range?ir.range[0]:ir.start}function ni(ir){return ir.range?ir.range[1]:ir.end}function wr(ir,Pe){let e=Ve(ir);return Number.isInteger(e)&&e===Ve(Pe)}function fr(ir,Pe){let e=ni(ir);return Number.isInteger(e)&&e===ni(Pe)}function Mr(ir,Pe){return wr(ir,Pe)&&fr(ir,Pe)}te.exports={locStart:Ve,locEnd:ni,hasSameLocStart:wr,hasSameLoc:Mr}}}),oj=Aa({"src/language-js/parse/utils/create-parser.js"(R,te){"use strict";Sa();var{hasPragma:qe}=aj(),{locStart:Ve,locEnd:ni}=lN();function wr(fr){return fr=typeof fr=="function"?{parse:fr}:fr,Object.assign({astFormat:"estree",hasPragma:qe,locStart:Ve,locEnd:ni},fr)}te.exports=wr}}),sj=Aa({"src/language-js/parse/utils/replace-hashbang.js"(R,te){"use strict";Sa();function qe(Ve){return Ve.charAt(0)==="#"&&Ve.charAt(1)==="!"?"//"+Ve.slice(2):Ve}te.exports=qe}}),cj=Aa({"src/language-js/utils/is-ts-keyword-type.js"(R,te){"use strict";Sa();function qe(Ve){let{type:ni}=Ve;return ni.startsWith("TS")&&ni.endsWith("Keyword")}te.exports=qe}}),uj=Aa({"src/language-js/utils/is-block-comment.js"(R,te){"use strict";Sa();function qe(Ve){return Ve.type==="Block"||Ve.type==="CommentBlock"||Ve.type==="MultiLine"}te.exports=qe}}),lj=Aa({"src/language-js/utils/is-type-cast-comment.js"(R,te){"use strict";Sa();var qe=uj();function Ve(ni){return qe(ni)&&ni.value[0]==="*"&&/@type\b/.test(ni.value)}te.exports=Ve}}),fj=Aa({"src/utils/get-last.js"(R,te){"use strict";Sa();var qe=Ve=>Ve[Ve.length-1];te.exports=qe}}),fN=Aa({"src/language-js/parse/postprocess/visit-node.js"(R,te){"use strict";Sa();function qe(Ve,ni){if(Array.isArray(Ve)){for(let wr=0;wr<Ve.length;wr++)Ve[wr]=qe(Ve[wr],ni);return Ve}if(Ve&&typeof Ve=="object"&&typeof Ve.type=="string"){let wr=Object.keys(Ve);for(let fr=0;fr<wr.length;fr++)Ve[wr[fr]]=qe(Ve[wr[fr]],ni);return ni(Ve)||Ve}return Ve}te.exports=qe}}),_j=Aa({"src/language-js/parse/postprocess/typescript.js"(R,te){"use strict";Sa();var qe=QP(),Ve=fN();function ni(ir,Pe){let{start:e,end:a}=ir.loc;throw qe(Pe,{start:{line:e.line,column:e.column+1},end:{line:a.line,column:a.column+1}})}function wr(ir,Pe,e){let a=ir.decorators;if(!Array.isArray(a))return;let O=Pe.decorators;(!Array.isArray(O)||O.length!==a.length||a.some(L=>{let W=e.get(L);return!W||!O.includes(W)}))&&ni(Pe,"Leading decorators must be attached to a class declaration")}function fr(ir,Pe){ir.kind!==166||ir.modifiers&&!ir.modifiers.some(O=>O.kind===126)||ir.initializer&&Pe.value===null&&ni(Pe,"Abstract property cannot have an initializer")}function Mr(ir,Pe){let{esTreeNodeToTSNodeMap:e,tsNodeToESTreeNodeMap:a}=Pe.tsParseResult;Ve(ir,O=>{let L=e.get(O);if(!L)return;let W=a.get(L);W===O&&(wr(L,W,a),fr(L,W))})}te.exports={throwErrorForInvalidNodes:Mr}}}),pj=Aa({"src/language-js/parse/postprocess/index.js"(R,te){"use strict";Sa();var{locStart:qe,locEnd:Ve}=lN(),ni=cj(),wr=lj(),fr=fj(),Mr=fN(),{throwErrorForInvalidNodes:ir}=_j();function Pe(L,W){if(W.parser==="typescript"&&/@|abstract/.test(W.originalText)&&ir(L,W),W.parser!=="typescript"&&W.parser!=="flow"&&W.parser!=="acorn"&&W.parser!=="espree"&&W.parser!=="meriyah"){let Q=new Set;L=Mr(L,pe=>{pe.leadingComments&&pe.leadingComments.some(wr)&&Q.add(qe(pe))}),L=Mr(L,pe=>{if(pe.type==="ParenthesizedExpression"){let{expression:F}=pe;if(F.type==="TypeCastExpression")return F.range=pe.range,F;let g=qe(pe);if(!Q.has(g))return F.extra=Object.assign(Object.assign({},F.extra),{},{parenthesized:!0}),F}})}return L=Mr(L,Q=>{switch(Q.type){case"ChainExpression":return e(Q.expression);case"LogicalExpression":{if(a(Q))return O(Q);break}case"VariableDeclaration":{let pe=fr(Q.declarations);pe&&pe.init&&N(Q,pe);break}case"TSParenthesizedType":return ni(Q.typeAnnotation)||Q.typeAnnotation.type==="TSThisType"||(Q.typeAnnotation.range=[qe(Q),Ve(Q)]),Q.typeAnnotation;case"TSTypeParameter":if(typeof Q.name=="string"){let pe=qe(Q);Q.name={type:"Identifier",name:Q.name,range:[pe,pe+Q.name.length]}}break;case"SequenceExpression":{let pe=fr(Q.expressions);Q.range=[qe(Q),Math.min(Ve(pe),Ve(Q))];break}case"TopicReference":W.__isUsingHackPipeline=!0;break;case"ExportAllDeclaration":{let{exported:pe}=Q;if(W.parser==="meriyah"&&pe&&pe.type==="Identifier"){let F=W.originalText.slice(qe(pe),Ve(pe));(F.startsWith('"')||F.startsWith("'"))&&(Q.exported=Object.assign(Object.assign({},Q.exported),{},{type:"Literal",value:Q.exported.name,raw:F}))}break}}}),L;function N(Q,pe){W.originalText[Ve(pe)]!==";"&&(Q.range=[qe(Q),Ve(pe)])}}function e(L){switch(L.type){case"CallExpression":L.type="OptionalCallExpression",L.callee=e(L.callee);break;case"MemberExpression":L.type="OptionalMemberExpression",L.object=e(L.object);break;case"TSNonNullExpression":L.expression=e(L.expression);break}return L}function a(L){return L.type==="LogicalExpression"&&L.right.type==="LogicalExpression"&&L.operator===L.right.operator}function O(L){return a(L)?O({type:"LogicalExpression",operator:L.operator,left:O({type:"LogicalExpression",operator:L.operator,left:L.left,right:L.right.left,range:[qe(L.left),Ve(L.right.left)]}),right:L.right.right,range:[qe(L),Ve(L)]}):L}te.exports=Pe}}),Tm=Aa({"scripts/build/shims/debug.cjs"(R,te){"use strict";Sa(),te.exports=()=>()=>{}}}),dj=Aa({"node_modules/is-extglob/index.js"(R,te){Sa(),te.exports=function(Ve){if(typeof Ve!="string"||Ve==="")return!1;for(var ni;ni=/(\\).|([@?!+*]\(.*\))/g.exec(Ve);){if(ni[2])return!0;Ve=Ve.slice(ni.index+ni[0].length)}return!1}}}),gj=Aa({"node_modules/is-glob/index.js"(R,te){Sa();var qe=dj(),Ve={"{":"}","(":")","[":"]"},ni=function(fr){if(fr[0]==="!")return!0;for(var Mr=0,ir=-2,Pe=-2,e=-2,a=-2,O=-2;Mr<fr.length;){if(fr[Mr]==="*"||fr[Mr+1]==="?"&&/[\].+)]/.test(fr[Mr])||Pe!==-1&&fr[Mr]==="["&&fr[Mr+1]!=="]"&&(Pe<Mr&&(Pe=fr.indexOf("]",Mr)),Pe>Mr&&(O===-1||O>Pe||(O=fr.indexOf("\\",Mr),O===-1||O>Pe)))||e!==-1&&fr[Mr]==="{"&&fr[Mr+1]!=="}"&&(e=fr.indexOf("}",Mr),e>Mr&&(O=fr.indexOf("\\",Mr),O===-1||O>e))||a!==-1&&fr[Mr]==="("&&fr[Mr+1]==="?"&&/[:!=]/.test(fr[Mr+2])&&fr[Mr+3]!==")"&&(a=fr.indexOf(")",Mr),a>Mr&&(O=fr.indexOf("\\",Mr),O===-1||O>a))||ir!==-1&&fr[Mr]==="("&&fr[Mr+1]!=="|"&&(ir<Mr&&(ir=fr.indexOf("|",Mr)),ir!==-1&&fr[ir+1]!==")"&&(a=fr.indexOf(")",ir),a>ir&&(O=fr.indexOf("\\",ir),O===-1||O>a))))return!0;if(fr[Mr]==="\\"){var L=fr[Mr+1];Mr+=2;var W=Ve[L];if(W){var N=fr.indexOf(W,Mr);N!==-1&&(Mr=N+1)}if(fr[Mr]==="!")return!0}else Mr++}return!1},wr=function(fr){if(fr[0]==="!")return!0;for(var Mr=0;Mr<fr.length;){if(/[*?{}()[\]]/.test(fr[Mr]))return!0;if(fr[Mr]==="\\"){var ir=fr[Mr+1];Mr+=2;var Pe=Ve[ir];if(Pe){var e=fr.indexOf(Pe,Mr);e!==-1&&(Mr=e+1)}if(fr[Mr]==="!")return!0}else Mr++}return!1};te.exports=function(Mr,ir){if(typeof Mr!="string"||Mr==="")return!1;if(qe(Mr))return!0;var Pe=ni;return ir&&ir.strict===!1&&(Pe=wr),Pe(Mr)}}}),a1=Aa({"node_modules/semver/internal/constants.js"(R,te){Sa();var qe="2.0.0",Ve=256,ni=Number.MAX_SAFE_INTEGER||9007199254740991,wr=16;te.exports={SEMVER_SPEC_VERSION:qe,MAX_LENGTH:Ve,MAX_SAFE_INTEGER:ni,MAX_SAFE_COMPONENT_LENGTH:wr}}}),n1=Aa({"node_modules/semver/internal/debug.js"(R,te){Sa();var qe=typeof yl=="object"&&yl.env&&yl.env.NODE_DEBUG&&/\bsemver\b/i.test(yl.env.NODE_DEBUG)?function(){for(var Ve=arguments.length,ni=new Array(Ve),wr=0;wr<Ve;wr++)ni[wr]=arguments[wr];return console.error("SEMVER",...ni)}:()=>{};te.exports=qe}}),vv=Aa({"node_modules/semver/internal/re.js"(R,te){Sa();var{MAX_SAFE_COMPONENT_LENGTH:qe}=a1(),Ve=n1();R=te.exports={};var ni=R.re=[],wr=R.src=[],fr=R.t={},Mr=0,ir=(Pe,e,a)=>{let O=Mr++;Ve(O,e),fr[Pe]=O,wr[O]=e,ni[O]=new RegExp(e,a?"g":void 0)};ir("NUMERICIDENTIFIER","0|[1-9]\\d*"),ir("NUMERICIDENTIFIERLOOSE","[0-9]+"),ir("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),ir("MAINVERSION","(".concat(wr[fr.NUMERICIDENTIFIER],")\\.(").concat(wr[fr.NUMERICIDENTIFIER],")\\.(").concat(wr[fr.NUMERICIDENTIFIER],")")),ir("MAINVERSIONLOOSE","(".concat(wr[fr.NUMERICIDENTIFIERLOOSE],")\\.(").concat(wr[fr.NUMERICIDENTIFIERLOOSE],")\\.(").concat(wr[fr.NUMERICIDENTIFIERLOOSE],")")),ir("PRERELEASEIDENTIFIER","(?:".concat(wr[fr.NUMERICIDENTIFIER],"|").concat(wr[fr.NONNUMERICIDENTIFIER],")")),ir("PRERELEASEIDENTIFIERLOOSE","(?:".concat(wr[fr.NUMERICIDENTIFIERLOOSE],"|").concat(wr[fr.NONNUMERICIDENTIFIER],")")),ir("PRERELEASE","(?:-(".concat(wr[fr.PRERELEASEIDENTIFIER],"(?:\\.").concat(wr[fr.PRERELEASEIDENTIFIER],")*))")),ir("PRERELEASELOOSE","(?:-?(".concat(wr[fr.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(wr[fr.PRERELEASEIDENTIFIERLOOSE],")*))")),ir("BUILDIDENTIFIER","[0-9A-Za-z-]+"),ir("BUILD","(?:\\+(".concat(wr[fr.BUILDIDENTIFIER],"(?:\\.").concat(wr[fr.BUILDIDENTIFIER],")*))")),ir("FULLPLAIN","v?".concat(wr[fr.MAINVERSION]).concat(wr[fr.PRERELEASE],"?").concat(wr[fr.BUILD],"?")),ir("FULL","^".concat(wr[fr.FULLPLAIN],"$")),ir("LOOSEPLAIN","[v=\\s]*".concat(wr[fr.MAINVERSIONLOOSE]).concat(wr[fr.PRERELEASELOOSE],"?").concat(wr[fr.BUILD],"?")),ir("LOOSE","^".concat(wr[fr.LOOSEPLAIN],"$")),ir("GTLT","((?:<|>)?=?)"),ir("XRANGEIDENTIFIERLOOSE","".concat(wr[fr.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),ir("XRANGEIDENTIFIER","".concat(wr[fr.NUMERICIDENTIFIER],"|x|X|\\*")),ir("XRANGEPLAIN","[v=\\s]*(".concat(wr[fr.XRANGEIDENTIFIER],")(?:\\.(").concat(wr[fr.XRANGEIDENTIFIER],")(?:\\.(").concat(wr[fr.XRANGEIDENTIFIER],")(?:").concat(wr[fr.PRERELEASE],")?").concat(wr[fr.BUILD],"?)?)?")),ir("XRANGEPLAINLOOSE","[v=\\s]*(".concat(wr[fr.XRANGEIDENTIFIERLOOSE],")(?:\\.(").concat(wr[fr.XRANGEIDENTIFIERLOOSE],")(?:\\.(").concat(wr[fr.XRANGEIDENTIFIERLOOSE],")(?:").concat(wr[fr.PRERELEASELOOSE],")?").concat(wr[fr.BUILD],"?)?)?")),ir("XRANGE","^".concat(wr[fr.GTLT],"\\s*").concat(wr[fr.XRANGEPLAIN],"$")),ir("XRANGELOOSE","^".concat(wr[fr.GTLT],"\\s*").concat(wr[fr.XRANGEPLAINLOOSE],"$")),ir("COERCE","(^|[^\\d])(\\d{1,".concat(qe,"})(?:\\.(\\d{1,").concat(qe,"}))?(?:\\.(\\d{1,").concat(qe,"}))?(?:$|[^\\d])")),ir("COERCERTL",wr[fr.COERCE],!0),ir("LONETILDE","(?:~>?)"),ir("TILDETRIM","(\\s*)".concat(wr[fr.LONETILDE],"\\s+"),!0),R.tildeTrimReplace="$1~",ir("TILDE","^".concat(wr[fr.LONETILDE]).concat(wr[fr.XRANGEPLAIN],"$")),ir("TILDELOOSE","^".concat(wr[fr.LONETILDE]).concat(wr[fr.XRANGEPLAINLOOSE],"$")),ir("LONECARET","(?:\\^)"),ir("CARETTRIM","(\\s*)".concat(wr[fr.LONECARET],"\\s+"),!0),R.caretTrimReplace="$1^",ir("CARET","^".concat(wr[fr.LONECARET]).concat(wr[fr.XRANGEPLAIN],"$")),ir("CARETLOOSE","^".concat(wr[fr.LONECARET]).concat(wr[fr.XRANGEPLAINLOOSE],"$")),ir("COMPARATORLOOSE","^".concat(wr[fr.GTLT],"\\s*(").concat(wr[fr.LOOSEPLAIN],")$|^$")),ir("COMPARATOR","^".concat(wr[fr.GTLT],"\\s*(").concat(wr[fr.FULLPLAIN],")$|^$")),ir("COMPARATORTRIM","(\\s*)".concat(wr[fr.GTLT],"\\s*(").concat(wr[fr.LOOSEPLAIN],"|").concat(wr[fr.XRANGEPLAIN],")"),!0),R.comparatorTrimReplace="$1$2$3",ir("HYPHENRANGE","^\\s*(".concat(wr[fr.XRANGEPLAIN],")\\s+-\\s+(").concat(wr[fr.XRANGEPLAIN],")\\s*$")),ir("HYPHENRANGELOOSE","^\\s*(".concat(wr[fr.XRANGEPLAINLOOSE],")\\s+-\\s+(").concat(wr[fr.XRANGEPLAINLOOSE],")\\s*$")),ir("STAR","(<|>)?=?\\s*\\*"),ir("GTE0","^\\s*>=\\s*0.0.0\\s*$"),ir("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}}),o1=Aa({"node_modules/semver/internal/parse-options.js"(R,te){Sa();var qe=["includePrerelease","loose","rtl"],Ve=ni=>ni?typeof ni!="object"?{loose:!0}:qe.filter(wr=>ni[wr]).reduce((wr,fr)=>(wr[fr]=!0,wr),{}):{};te.exports=Ve}}),vT=Aa({"node_modules/semver/internal/identifiers.js"(R,te){Sa();var qe=/^[0-9]+$/,Ve=(wr,fr)=>{let Mr=qe.test(wr),ir=qe.test(fr);return Mr&&ir&&(wr=+wr,fr=+fr),wr===fr?0:Mr&&!ir?-1:ir&&!Mr?1:wr<fr?-1:1},ni=(wr,fr)=>Ve(fr,wr);te.exports={compareIdentifiers:Ve,rcompareIdentifiers:ni}}}),Nf=Aa({"node_modules/semver/classes/semver.js"(R,te){Sa();var qe=n1(),{MAX_LENGTH:Ve,MAX_SAFE_INTEGER:ni}=a1(),{re:wr,t:fr}=vv(),Mr=o1(),{compareIdentifiers:ir}=vT(),Pe=class{constructor(e,a){if(a=Mr(a),e instanceof Pe){if(e.loose===!!a.loose&&e.includePrerelease===!!a.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError("Invalid Version: ".concat(e));if(e.length>Ve)throw new TypeError("version is longer than ".concat(Ve," characters"));qe("SemVer",e,a),this.options=a,this.loose=!!a.loose,this.includePrerelease=!!a.includePrerelease;let O=e.trim().match(a.loose?wr[fr.LOOSE]:wr[fr.FULL]);if(!O)throw new TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+O[1],this.minor=+O[2],this.patch=+O[3],this.major>ni||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ni||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ni||this.patch<0)throw new TypeError("Invalid patch version");O[4]?this.prerelease=O[4].split(".").map(L=>{if(/^[0-9]+$/.test(L)){let W=+L;if(W>=0&&W<ni)return W}return L}):this.prerelease=[],this.build=O[5]?O[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(e){if(qe("SemVer.compare",this.version,this.options,e),!(e instanceof Pe)){if(typeof e=="string"&&e===this.version)return 0;e=new Pe(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof Pe||(e=new Pe(e,this.options)),ir(this.major,e.major)||ir(this.minor,e.minor)||ir(this.patch,e.patch)}comparePre(e){if(e instanceof Pe||(e=new Pe(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let a=0;do{let O=this.prerelease[a],L=e.prerelease[a];if(qe("prerelease compare",a,O,L),O===void 0&&L===void 0)return 0;if(L===void 0)return 1;if(O===void 0)return-1;if(O===L)continue;return ir(O,L)}while(++a)}compareBuild(e){e instanceof Pe||(e=new Pe(e,this.options));let a=0;do{let O=this.build[a],L=e.build[a];if(qe("prerelease compare",a,O,L),O===void 0&&L===void 0)return 0;if(L===void 0)return 1;if(O===void 0)return-1;if(O===L)continue;return ir(O,L)}while(++a)}inc(e,a){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",a);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",a);break;case"prepatch":this.prerelease.length=0,this.inc("patch",a),this.inc("pre",a);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",a),this.inc("pre",a);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let O=this.prerelease.length;for(;--O>=0;)typeof this.prerelease[O]=="number"&&(this.prerelease[O]++,O=-2);O===-1&&this.prerelease.push(0)}a&&(this.prerelease[0]===a?isNaN(this.prerelease[1])&&(this.prerelease=[a,0]):this.prerelease=[a,0]);break;default:throw new Error("invalid increment argument: ".concat(e))}return this.format(),this.raw=this.version,this}};te.exports=Pe}}),yv=Aa({"node_modules/semver/functions/parse.js"(R,te){Sa();var{MAX_LENGTH:qe}=a1(),{re:Ve,t:ni}=vv(),wr=Nf(),fr=o1(),Mr=(ir,Pe)=>{if(Pe=fr(Pe),ir instanceof wr)return ir;if(typeof ir!="string"||ir.length>qe||!(Pe.loose?Ve[ni.LOOSE]:Ve[ni.FULL]).test(ir))return null;try{return new wr(ir,Pe)}catch{return null}};te.exports=Mr}}),mj=Aa({"node_modules/semver/functions/valid.js"(R,te){Sa();var qe=yv(),Ve=(ni,wr)=>{let fr=qe(ni,wr);return fr?fr.version:null};te.exports=Ve}}),vj=Aa({"node_modules/semver/functions/clean.js"(R,te){Sa();var qe=yv(),Ve=(ni,wr)=>{let fr=qe(ni.trim().replace(/^[=v]+/,""),wr);return fr?fr.version:null};te.exports=Ve}}),yj=Aa({"node_modules/semver/functions/inc.js"(R,te){Sa();var qe=Nf(),Ve=(ni,wr,fr,Mr)=>{typeof fr=="string"&&(Mr=fr,fr=void 0);try{return new qe(ni,fr).inc(wr,Mr).version}catch{return null}};te.exports=Ve}}),Gp=Aa({"node_modules/semver/functions/compare.js"(R,te){Sa();var qe=Nf(),Ve=(ni,wr,fr)=>new qe(ni,fr).compare(new qe(wr,fr));te.exports=Ve}}),TT=Aa({"node_modules/semver/functions/eq.js"(R,te){Sa();var qe=Gp(),Ve=(ni,wr,fr)=>qe(ni,wr,fr)===0;te.exports=Ve}}),hj=Aa({"node_modules/semver/functions/diff.js"(R,te){Sa();var qe=yv(),Ve=TT(),ni=(wr,fr)=>{if(Ve(wr,fr))return null;{let Mr=qe(wr),ir=qe(fr),Pe=Mr.prerelease.length||ir.prerelease.length,e=Pe?"pre":"",a=Pe?"prerelease":"";for(let O in Mr)if((O==="major"||O==="minor"||O==="patch")&&Mr[O]!==ir[O])return e+O;return a}};te.exports=ni}}),Dj=Aa({"node_modules/semver/functions/major.js"(R,te){Sa();var qe=Nf(),Ve=(ni,wr)=>new qe(ni,wr).major;te.exports=Ve}}),bj=Aa({"node_modules/semver/functions/minor.js"(R,te){Sa();var qe=Nf(),Ve=(ni,wr)=>new qe(ni,wr).minor;te.exports=Ve}}),Sj=Aa({"node_modules/semver/functions/patch.js"(R,te){Sa();var qe=Nf(),Ve=(ni,wr)=>new qe(ni,wr).patch;te.exports=Ve}}),Tj=Aa({"node_modules/semver/functions/prerelease.js"(R,te){Sa();var qe=yv(),Ve=(ni,wr)=>{let fr=qe(ni,wr);return fr&&fr.prerelease.length?fr.prerelease:null};te.exports=Ve}}),xj=Aa({"node_modules/semver/functions/rcompare.js"(R,te){Sa();var qe=Gp(),Ve=(ni,wr,fr)=>qe(wr,ni,fr);te.exports=Ve}}),Ej=Aa({"node_modules/semver/functions/compare-loose.js"(R,te){Sa();var qe=Gp(),Ve=(ni,wr)=>qe(ni,wr,!0);te.exports=Ve}}),xT=Aa({"node_modules/semver/functions/compare-build.js"(R,te){Sa();var qe=Nf(),Ve=(ni,wr,fr)=>{let Mr=new qe(ni,fr),ir=new qe(wr,fr);return Mr.compare(ir)||Mr.compareBuild(ir)};te.exports=Ve}}),Cj=Aa({"node_modules/semver/functions/sort.js"(R,te){Sa();var qe=xT(),Ve=(ni,wr)=>ni.sort((fr,Mr)=>qe(fr,Mr,wr));te.exports=Ve}}),kj=Aa({"node_modules/semver/functions/rsort.js"(R,te){Sa();var qe=xT(),Ve=(ni,wr)=>ni.sort((fr,Mr)=>qe(Mr,fr,wr));te.exports=Ve}}),s1=Aa({"node_modules/semver/functions/gt.js"(R,te){Sa();var qe=Gp(),Ve=(ni,wr,fr)=>qe(ni,wr,fr)>0;te.exports=Ve}}),ET=Aa({"node_modules/semver/functions/lt.js"(R,te){Sa();var qe=Gp(),Ve=(ni,wr,fr)=>qe(ni,wr,fr)<0;te.exports=Ve}}),_N=Aa({"node_modules/semver/functions/neq.js"(R,te){Sa();var qe=Gp(),Ve=(ni,wr,fr)=>qe(ni,wr,fr)!==0;te.exports=Ve}}),CT=Aa({"node_modules/semver/functions/gte.js"(R,te){Sa();var qe=Gp(),Ve=(ni,wr,fr)=>qe(ni,wr,fr)>=0;te.exports=Ve}}),kT=Aa({"node_modules/semver/functions/lte.js"(R,te){Sa();var qe=Gp(),Ve=(ni,wr,fr)=>qe(ni,wr,fr)<=0;te.exports=Ve}}),pN=Aa({"node_modules/semver/functions/cmp.js"(R,te){Sa();var qe=TT(),Ve=_N(),ni=s1(),wr=CT(),fr=ET(),Mr=kT(),ir=(Pe,e,a,O)=>{switch(e){case"===":return typeof Pe=="object"&&(Pe=Pe.version),typeof a=="object"&&(a=a.version),Pe===a;case"!==":return typeof Pe=="object"&&(Pe=Pe.version),typeof a=="object"&&(a=a.version),Pe!==a;case"":case"=":case"==":return qe(Pe,a,O);case"!=":return Ve(Pe,a,O);case">":return ni(Pe,a,O);case">=":return wr(Pe,a,O);case"<":return fr(Pe,a,O);case"<=":return Mr(Pe,a,O);default:throw new TypeError("Invalid operator: ".concat(e))}};te.exports=ir}}),Aj=Aa({"node_modules/semver/functions/coerce.js"(R,te){Sa();var qe=Nf(),Ve=yv(),{re:ni,t:wr}=vv(),fr=(Mr,ir)=>{if(Mr instanceof qe)return Mr;if(typeof Mr=="number"&&(Mr=String(Mr)),typeof Mr!="string")return null;ir=ir||{};let Pe=null;if(!ir.rtl)Pe=Mr.match(ni[wr.COERCE]);else{let e;for(;(e=ni[wr.COERCERTL].exec(Mr))&&(!Pe||Pe.index+Pe[0].length!==Mr.length);)(!Pe||e.index+e[0].length!==Pe.index+Pe[0].length)&&(Pe=e),ni[wr.COERCERTL].lastIndex=e.index+e[1].length+e[2].length;ni[wr.COERCERTL].lastIndex=-1}return Pe===null?null:Ve("".concat(Pe[2],".").concat(Pe[3]||"0",".").concat(Pe[4]||"0"),ir)};te.exports=fr}}),Pj=Aa({"node_modules/semver/node_modules/yallist/iterator.js"(R,te){"use strict";Sa(),te.exports=function(qe){qe.prototype[Symbol.iterator]=function*(){for(let Ve=this.head;Ve;Ve=Ve.next)yield Ve.value}}}}),Nj=Aa({"node_modules/semver/node_modules/yallist/yallist.js"(R,te){"use strict";Sa(),te.exports=qe,qe.Node=fr,qe.create=qe;function qe(Mr){var ir=this;if(ir instanceof qe||(ir=new qe),ir.tail=null,ir.head=null,ir.length=0,Mr&&typeof Mr.forEach=="function")Mr.forEach(function(a){ir.push(a)});else if(arguments.length>0)for(var Pe=0,e=arguments.length;Pe<e;Pe++)ir.push(arguments[Pe]);return ir}qe.prototype.removeNode=function(Mr){if(Mr.list!==this)throw new Error("removing node which does not belong to this list");var ir=Mr.next,Pe=Mr.prev;return ir&&(ir.prev=Pe),Pe&&(Pe.next=ir),Mr===this.head&&(this.head=ir),Mr===this.tail&&(this.tail=Pe),Mr.list.length--,Mr.next=null,Mr.prev=null,Mr.list=null,ir},qe.prototype.unshiftNode=function(Mr){if(Mr!==this.head){Mr.list&&Mr.list.removeNode(Mr);var ir=this.head;Mr.list=this,Mr.next=ir,ir&&(ir.prev=Mr),this.head=Mr,this.tail||(this.tail=Mr),this.length++}},qe.prototype.pushNode=function(Mr){if(Mr!==this.tail){Mr.list&&Mr.list.removeNode(Mr);var ir=this.tail;Mr.list=this,Mr.prev=ir,ir&&(ir.next=Mr),this.tail=Mr,this.head||(this.head=Mr),this.length++}},qe.prototype.push=function(){for(var Mr=0,ir=arguments.length;Mr<ir;Mr++)ni(this,arguments[Mr]);return this.length},qe.prototype.unshift=function(){for(var Mr=0,ir=arguments.length;Mr<ir;Mr++)wr(this,arguments[Mr]);return this.length},qe.prototype.pop=function(){if(!!this.tail){var Mr=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,Mr}},qe.prototype.shift=function(){if(!!this.head){var Mr=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,Mr}},qe.prototype.forEach=function(Mr,ir){ir=ir||this;for(var Pe=this.head,e=0;Pe!==null;e++)Mr.call(ir,Pe.value,e,this),Pe=Pe.next},qe.prototype.forEachReverse=function(Mr,ir){ir=ir||this;for(var Pe=this.tail,e=this.length-1;Pe!==null;e--)Mr.call(ir,Pe.value,e,this),Pe=Pe.prev},qe.prototype.get=function(Mr){for(var ir=0,Pe=this.head;Pe!==null&&ir<Mr;ir++)Pe=Pe.next;if(ir===Mr&&Pe!==null)return Pe.value},qe.prototype.getReverse=function(Mr){for(var ir=0,Pe=this.tail;Pe!==null&&ir<Mr;ir++)Pe=Pe.prev;if(ir===Mr&&Pe!==null)return Pe.value},qe.prototype.map=function(Mr,ir){ir=ir||this;for(var Pe=new qe,e=this.head;e!==null;)Pe.push(Mr.call(ir,e.value,this)),e=e.next;return Pe},qe.prototype.mapReverse=function(Mr,ir){ir=ir||this;for(var Pe=new qe,e=this.tail;e!==null;)Pe.push(Mr.call(ir,e.value,this)),e=e.prev;return Pe},qe.prototype.reduce=function(Mr,ir){var Pe,e=this.head;if(arguments.length>1)Pe=ir;else if(this.head)e=this.head.next,Pe=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=0;e!==null;a++)Pe=Mr(Pe,e.value,a),e=e.next;return Pe},qe.prototype.reduceReverse=function(Mr,ir){var Pe,e=this.tail;if(arguments.length>1)Pe=ir;else if(this.tail)e=this.tail.prev,Pe=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=this.length-1;e!==null;a--)Pe=Mr(Pe,e.value,a),e=e.prev;return Pe},qe.prototype.toArray=function(){for(var Mr=new Array(this.length),ir=0,Pe=this.head;Pe!==null;ir++)Mr[ir]=Pe.value,Pe=Pe.next;return Mr},qe.prototype.toArrayReverse=function(){for(var Mr=new Array(this.length),ir=0,Pe=this.tail;Pe!==null;ir++)Mr[ir]=Pe.value,Pe=Pe.prev;return Mr},qe.prototype.slice=function(Mr,ir){ir=ir||this.length,ir<0&&(ir+=this.length),Mr=Mr||0,Mr<0&&(Mr+=this.length);var Pe=new qe;if(ir<Mr||ir<0)return Pe;Mr<0&&(Mr=0),ir>this.length&&(ir=this.length);for(var e=0,a=this.head;a!==null&&e<Mr;e++)a=a.next;for(;a!==null&&e<ir;e++,a=a.next)Pe.push(a.value);return Pe},qe.prototype.sliceReverse=function(Mr,ir){ir=ir||this.length,ir<0&&(ir+=this.length),Mr=Mr||0,Mr<0&&(Mr+=this.length);var Pe=new qe;if(ir<Mr||ir<0)return Pe;Mr<0&&(Mr=0),ir>this.length&&(ir=this.length);for(var e=this.length,a=this.tail;a!==null&&e>ir;e--)a=a.prev;for(;a!==null&&e>Mr;e--,a=a.prev)Pe.push(a.value);return Pe},qe.prototype.splice=function(Mr,ir){Mr>this.length&&(Mr=this.length-1),Mr<0&&(Mr=this.length+Mr);for(var Pe=0,e=this.head;e!==null&&Pe<Mr;Pe++)e=e.next;for(var a=[],Pe=0;e&&Pe<ir;Pe++)a.push(e.value),e=this.removeNode(e);e===null&&(e=this.tail),e!==this.head&&e!==this.tail&&(e=e.prev);for(var Pe=0;Pe<(arguments.length<=2?0:arguments.length-2);Pe++)e=Ve(this,e,Pe+2<2||arguments.length<=Pe+2?void 0:arguments[Pe+2]);return a},qe.prototype.reverse=function(){for(var Mr=this.head,ir=this.tail,Pe=Mr;Pe!==null;Pe=Pe.prev){var e=Pe.prev;Pe.prev=Pe.next,Pe.next=e}return this.head=ir,this.tail=Mr,this};function Ve(Mr,ir,Pe){var e=ir===Mr.head?new fr(Pe,null,ir,Mr):new fr(Pe,ir,ir.next,Mr);return e.next===null&&(Mr.tail=e),e.prev===null&&(Mr.head=e),Mr.length++,e}function ni(Mr,ir){Mr.tail=new fr(ir,Mr.tail,null,Mr),Mr.head||(Mr.head=Mr.tail),Mr.length++}function wr(Mr,ir){Mr.head=new fr(ir,null,Mr.head,Mr),Mr.tail||(Mr.tail=Mr.head),Mr.length++}function fr(Mr,ir,Pe,e){if(!(this instanceof fr))return new fr(Mr,ir,Pe,e);this.list=e,this.value=Mr,ir?(ir.next=this,this.prev=ir):this.prev=null,Pe?(Pe.prev=this,this.next=Pe):this.next=null}try{Pj()(qe)}catch{}}}),Ij=Aa({"node_modules/semver/node_modules/lru-cache/index.js"(R,te){"use strict";Sa();var qe=Nj(),Ve=Symbol("max"),ni=Symbol("length"),wr=Symbol("lengthCalculator"),fr=Symbol("allowStale"),Mr=Symbol("maxAge"),ir=Symbol("dispose"),Pe=Symbol("noDisposeOnSet"),e=Symbol("lruList"),a=Symbol("cache"),O=Symbol("updateAgeOnGet"),L=()=>1,W=class{constructor(H){if(typeof H=="number"&&(H={max:H}),H||(H={}),H.max&&(typeof H.max!="number"||H.max<0))throw new TypeError("max must be a non-negative number");let se=this[Ve]=H.max||1/0,p=H.length||L;if(this[wr]=typeof p!="function"?L:p,this[fr]=H.stale||!1,H.maxAge&&typeof H.maxAge!="number")throw new TypeError("maxAge must be a number");this[Mr]=H.maxAge||0,this[ir]=H.dispose,this[Pe]=H.noDisposeOnSet||!1,this[O]=H.updateAgeOnGet||!1,this.reset()}set max(H){if(typeof H!="number"||H<0)throw new TypeError("max must be a non-negative number");this[Ve]=H||1/0,pe(this)}get max(){return this[Ve]}set allowStale(H){this[fr]=!!H}get allowStale(){return this[fr]}set maxAge(H){if(typeof H!="number")throw new TypeError("maxAge must be a non-negative number");this[Mr]=H,pe(this)}get maxAge(){return this[Mr]}set lengthCalculator(H){typeof H!="function"&&(H=L),H!==this[wr]&&(this[wr]=H,this[ni]=0,this[e].forEach(se=>{se.length=this[wr](se.value,se.key),this[ni]+=se.length})),pe(this)}get lengthCalculator(){return this[wr]}get length(){return this[ni]}get itemCount(){return this[e].length}rforEach(H,se){se=se||this;for(let p=this[e].tail;p!==null;){let C=p.prev;S(this,H,p,se),p=C}}forEach(H,se){se=se||this;for(let p=this[e].head;p!==null;){let C=p.next;S(this,H,p,se),p=C}}keys(){return this[e].toArray().map(H=>H.key)}values(){return this[e].toArray().map(H=>H.value)}reset(){this[ir]&&this[e]&&this[e].length&&this[e].forEach(H=>this[ir](H.key,H.value)),this[a]=new Map,this[e]=new qe,this[ni]=0}dump(){return this[e].map(H=>Q(this,H)?!1:{k:H.key,v:H.value,e:H.now+(H.maxAge||0)}).toArray().filter(H=>H)}dumpLru(){return this[e]}set(H,se,p){if(p=p||this[Mr],p&&typeof p!="number")throw new TypeError("maxAge must be a number");let C=p?Date.now():0,G=this[wr](se,H);if(this[a].has(H)){if(G>this[Ve])return F(this,this[a].get(H)),!1;let B=this[a].get(H).value;return this[ir]&&(this[Pe]||this[ir](H,B.value)),B.now=C,B.maxAge=p,B.value=se,this[ni]+=G-B.length,B.length=G,this.get(H),pe(this),!0}let E=new g(H,se,G,C,p);return E.length>this[Ve]?(this[ir]&&this[ir](H,se),!1):(this[ni]+=E.length,this[e].unshift(E),this[a].set(H,this[e].head),pe(this),!0)}has(H){if(!this[a].has(H))return!1;let se=this[a].get(H).value;return!Q(this,se)}get(H){return N(this,H,!0)}peek(H){return N(this,H,!1)}pop(){let H=this[e].tail;return H?(F(this,H),H.value):null}del(H){F(this,this[a].get(H))}load(H){this.reset();let se=Date.now();for(let p=H.length-1;p>=0;p--){let C=H[p],G=C.e||0;if(G===0)this.set(C.k,C.v);else{let E=G-se;E>0&&this.set(C.k,C.v,E)}}}prune(){this[a].forEach((H,se)=>N(this,se,!1))}},N=(H,se,p)=>{let C=H[a].get(se);if(C){let G=C.value;if(Q(H,G)){if(F(H,C),!H[fr])return}else p&&(H[O]&&(C.value.now=Date.now()),H[e].unshiftNode(C));return G.value}},Q=(H,se)=>{if(!se||!se.maxAge&&!H[Mr])return!1;let p=Date.now()-se.now;return se.maxAge?p>se.maxAge:H[Mr]&&p>H[Mr]},pe=H=>{if(H[ni]>H[Ve])for(let se=H[e].tail;H[ni]>H[Ve]&&se!==null;){let p=se.prev;F(H,se),se=p}},F=(H,se)=>{if(se){let p=se.value;H[ir]&&H[ir](p.key,p.value),H[ni]-=p.length,H[a].delete(p.key),H[e].removeNode(se)}},g=class{constructor(H,se,p,C,G){this.key=H,this.value=se,this.length=p,this.now=C,this.maxAge=G||0}},S=(H,se,p,C)=>{let G=p.value;Q(H,G)&&(F(H,p),H[fr]||(G=void 0)),G&&se.call(C,G.value,G.key,H)};te.exports=W}}),Hp=Aa({"node_modules/semver/classes/range.js"(R,te){Sa();var qe=class{constructor(re,M){if(M=wr(M),re instanceof qe)return re.loose===!!M.loose&&re.includePrerelease===!!M.includePrerelease?re:new qe(re.raw,M);if(re instanceof fr)return this.raw=re.value,this.set=[[re]],this.format(),this;if(this.options=M,this.loose=!!M.loose,this.includePrerelease=!!M.includePrerelease,this.raw=re,this.set=re.split(/\s*\|\|\s*/).map(x=>this.parseRange(x.trim())).filter(x=>x.length),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(re));if(this.set.length>1){let x=this.set[0];if(this.set=this.set.filter(ie=>!W(ie[0])),this.set.length===0)this.set=[x];else if(this.set.length>1){for(let ie of this.set)if(ie.length===1&&N(ie[0])){this.set=[ie];break}}}this.format()}format(){return this.range=this.set.map(re=>re.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(re){re=re.trim();let M=Object.keys(this.options).join(","),x="parseRange:".concat(M,":").concat(re),ie=ni.get(x);if(ie)return ie;let _e=this.options.loose,Y=_e?Pe[e.HYPHENRANGELOOSE]:Pe[e.HYPHENRANGE];re=re.replace(Y,ue(this.options.includePrerelease)),Mr("hyphen replace",re),re=re.replace(Pe[e.COMPARATORTRIM],a),Mr("comparator trim",re,Pe[e.COMPARATORTRIM]),re=re.replace(Pe[e.TILDETRIM],O),re=re.replace(Pe[e.CARETTRIM],L),re=re.split(/\s+/).join(" ");let Z=_e?Pe[e.COMPARATORLOOSE]:Pe[e.COMPARATOR],k=re.split(" ").map(A=>pe(A,this.options)).join(" ").split(/\s+/).map(A=>E(A,this.options)).filter(this.options.loose?A=>!!A.match(Z):()=>!0).map(A=>new fr(A,this.options)),I=k.length,ne=new Map;for(let A of k){if(W(A))return[A];ne.set(A.value,A)}ne.size>1&&ne.has("")&&ne.delete("");let ee=[...ne.values()];return ni.set(x,ee),ee}intersects(re,M){if(!(re instanceof qe))throw new TypeError("a Range is required");return this.set.some(x=>Q(x,M)&&re.set.some(ie=>Q(ie,M)&&x.every(_e=>ie.every(Y=>_e.intersects(Y,M)))))}test(re){if(!re)return!1;if(typeof re=="string")try{re=new ir(re,this.options)}catch{return!1}for(let M=0;M<this.set.length;M++)if(B(this.set[M],re,this.options))return!0;return!1}};te.exports=qe;var Ve=Ij(),ni=new Ve({max:1e3}),wr=o1(),fr=c1(),Mr=n1(),ir=Nf(),{re:Pe,t:e,comparatorTrimReplace:a,tildeTrimReplace:O,caretTrimReplace:L}=vv(),W=re=>re.value==="<0.0.0-0",N=re=>re.value==="",Q=(re,M)=>{let x=!0,ie=re.slice(),_e=ie.pop();for(;x&&ie.length;)x=ie.every(Y=>_e.intersects(Y,M)),_e=ie.pop();return x},pe=(re,M)=>(Mr("comp",re,M),re=H(re,M),Mr("caret",re),re=g(re,M),Mr("tildes",re),re=p(re,M),Mr("xrange",re),re=G(re,M),Mr("stars",re),re),F=re=>!re||re.toLowerCase()==="x"||re==="*",g=(re,M)=>re.trim().split(/\s+/).map(x=>S(x,M)).join(" "),S=(re,M)=>{let x=M.loose?Pe[e.TILDELOOSE]:Pe[e.TILDE];return re.replace(x,(ie,_e,Y,Z,k)=>{Mr("tilde",re,ie,_e,Y,Z,k);let I;return F(_e)?I="":F(Y)?I=">=".concat(_e,".0.0 <").concat(+_e+1,".0.0-0"):F(Z)?I=">=".concat(_e,".").concat(Y,".0 <").concat(_e,".").concat(+Y+1,".0-0"):k?(Mr("replaceTilde pr",k),I=">=".concat(_e,".").concat(Y,".").concat(Z,"-").concat(k," <").concat(_e,".").concat(+Y+1,".0-0")):I=">=".concat(_e,".").concat(Y,".").concat(Z," <").concat(_e,".").concat(+Y+1,".0-0"),Mr("tilde return",I),I})},H=(re,M)=>re.trim().split(/\s+/).map(x=>se(x,M)).join(" "),se=(re,M)=>{Mr("caret",re,M);let x=M.loose?Pe[e.CARETLOOSE]:Pe[e.CARET],ie=M.includePrerelease?"-0":"";return re.replace(x,(_e,Y,Z,k,I)=>{Mr("caret",re,_e,Y,Z,k,I);let ne;return F(Y)?ne="":F(Z)?ne=">=".concat(Y,".0.0").concat(ie," <").concat(+Y+1,".0.0-0"):F(k)?Y==="0"?ne=">=".concat(Y,".").concat(Z,".0").concat(ie," <").concat(Y,".").concat(+Z+1,".0-0"):ne=">=".concat(Y,".").concat(Z,".0").concat(ie," <").concat(+Y+1,".0.0-0"):I?(Mr("replaceCaret pr",I),Y==="0"?Z==="0"?ne=">=".concat(Y,".").concat(Z,".").concat(k,"-").concat(I," <").concat(Y,".").concat(Z,".").concat(+k+1,"-0"):ne=">=".concat(Y,".").concat(Z,".").concat(k,"-").concat(I," <").concat(Y,".").concat(+Z+1,".0-0"):ne=">=".concat(Y,".").concat(Z,".").concat(k,"-").concat(I," <").concat(+Y+1,".0.0-0")):(Mr("no pr"),Y==="0"?Z==="0"?ne=">=".concat(Y,".").concat(Z,".").concat(k).concat(ie," <").concat(Y,".").concat(Z,".").concat(+k+1,"-0"):ne=">=".concat(Y,".").concat(Z,".").concat(k).concat(ie," <").concat(Y,".").concat(+Z+1,".0-0"):ne=">=".concat(Y,".").concat(Z,".").concat(k," <").concat(+Y+1,".0.0-0")),Mr("caret return",ne),ne})},p=(re,M)=>(Mr("replaceXRanges",re,M),re.split(/\s+/).map(x=>C(x,M)).join(" ")),C=(re,M)=>{re=re.trim();let x=M.loose?Pe[e.XRANGELOOSE]:Pe[e.XRANGE];return re.replace(x,(ie,_e,Y,Z,k,I)=>{Mr("xRange",re,ie,_e,Y,Z,k,I);let ne=F(Y),ee=ne||F(Z),A=ee||F(k),f=A;return _e==="="&&f&&(_e=""),I=M.includePrerelease?"-0":"",ne?_e===">"||_e==="<"?ie="<0.0.0-0":ie="*":_e&&f?(ee&&(Z=0),k=0,_e===">"?(_e=">=",ee?(Y=+Y+1,Z=0,k=0):(Z=+Z+1,k=0)):_e==="<="&&(_e="<",ee?Y=+Y+1:Z=+Z+1),_e==="<"&&(I="-0"),ie="".concat(_e+Y,".").concat(Z,".").concat(k).concat(I)):ee?ie=">=".concat(Y,".0.0").concat(I," <").concat(+Y+1,".0.0-0"):A&&(ie=">=".concat(Y,".").concat(Z,".0").concat(I," <").concat(Y,".").concat(+Z+1,".0-0")),Mr("xRange return",ie),ie})},G=(re,M)=>(Mr("replaceStars",re,M),re.trim().replace(Pe[e.STAR],"")),E=(re,M)=>(Mr("replaceGTE0",re,M),re.trim().replace(Pe[M.includePrerelease?e.GTE0PRE:e.GTE0],"")),ue=re=>(M,x,ie,_e,Y,Z,k,I,ne,ee,A,f,P)=>(F(ie)?x="":F(_e)?x=">=".concat(ie,".0.0").concat(re?"-0":""):F(Y)?x=">=".concat(ie,".").concat(_e,".0").concat(re?"-0":""):Z?x=">=".concat(x):x=">=".concat(x).concat(re?"-0":""),F(ne)?I="":F(ee)?I="<".concat(+ne+1,".0.0-0"):F(A)?I="<".concat(ne,".").concat(+ee+1,".0-0"):f?I="<=".concat(ne,".").concat(ee,".").concat(A,"-").concat(f):re?I="<".concat(ne,".").concat(ee,".").concat(+A+1,"-0"):I="<=".concat(I),"".concat(x," ").concat(I).trim()),B=(re,M,x)=>{for(let ie=0;ie<re.length;ie++)if(!re[ie].test(M))return!1;if(M.prerelease.length&&!x.includePrerelease){for(let ie=0;ie<re.length;ie++)if(Mr(re[ie].semver),re[ie].semver!==fr.ANY&&re[ie].semver.prerelease.length>0){let _e=re[ie].semver;if(_e.major===M.major&&_e.minor===M.minor&&_e.patch===M.patch)return!0}return!1}return!0}}}),c1=Aa({"node_modules/semver/classes/comparator.js"(R,te){Sa();var qe=Symbol("SemVer ANY"),Ve=class{static get ANY(){return qe}constructor(a,O){if(O=ni(O),a instanceof Ve){if(a.loose===!!O.loose)return a;a=a.value}ir("comparator",a,O),this.options=O,this.loose=!!O.loose,this.parse(a),this.semver===qe?this.value="":this.value=this.operator+this.semver.version,ir("comp",this)}parse(a){let O=this.options.loose?wr[fr.COMPARATORLOOSE]:wr[fr.COMPARATOR],L=a.match(O);if(!L)throw new TypeError("Invalid comparator: ".concat(a));this.operator=L[1]!==void 0?L[1]:"",this.operator==="="&&(this.operator=""),L[2]?this.semver=new Pe(L[2],this.options.loose):this.semver=qe}toString(){return this.value}test(a){if(ir("Comparator.test",a,this.options.loose),this.semver===qe||a===qe)return!0;if(typeof a=="string")try{a=new Pe(a,this.options)}catch{return!1}return Mr(a,this.operator,this.semver,this.options)}intersects(a,O){if(!(a instanceof Ve))throw new TypeError("a Comparator is required");if((!O||typeof O!="object")&&(O={loose:!!O,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new e(a.value,O).test(this.value);if(a.operator==="")return a.value===""?!0:new e(this.value,O).test(a.semver);let L=(this.operator===">="||this.operator===">")&&(a.operator===">="||a.operator===">"),W=(this.operator==="<="||this.operator==="<")&&(a.operator==="<="||a.operator==="<"),N=this.semver.version===a.semver.version,Q=(this.operator===">="||this.operator==="<=")&&(a.operator===">="||a.operator==="<="),pe=Mr(this.semver,"<",a.semver,O)&&(this.operator===">="||this.operator===">")&&(a.operator==="<="||a.operator==="<"),F=Mr(this.semver,">",a.semver,O)&&(this.operator==="<="||this.operator==="<")&&(a.operator===">="||a.operator===">");return L||W||N&&Q||pe||F}};te.exports=Ve;var ni=o1(),{re:wr,t:fr}=vv(),Mr=pN(),ir=n1(),Pe=Nf(),e=Hp()}}),u1=Aa({"node_modules/semver/functions/satisfies.js"(R,te){Sa();var qe=Hp(),Ve=(ni,wr,fr)=>{try{wr=new qe(wr,fr)}catch{return!1}return wr.test(ni)};te.exports=Ve}}),wj=Aa({"node_modules/semver/ranges/to-comparators.js"(R,te){Sa();var qe=Hp(),Ve=(ni,wr)=>new qe(ni,wr).set.map(fr=>fr.map(Mr=>Mr.value).join(" ").trim().split(" "));te.exports=Ve}}),Oj=Aa({"node_modules/semver/ranges/max-satisfying.js"(R,te){Sa();var qe=Nf(),Ve=Hp(),ni=(wr,fr,Mr)=>{let ir=null,Pe=null,e=null;try{e=new Ve(fr,Mr)}catch{return null}return wr.forEach(a=>{e.test(a)&&(!ir||Pe.compare(a)===-1)&&(ir=a,Pe=new qe(ir,Mr))}),ir};te.exports=ni}}),Fj=Aa({"node_modules/semver/ranges/min-satisfying.js"(R,te){Sa();var qe=Nf(),Ve=Hp(),ni=(wr,fr,Mr)=>{let ir=null,Pe=null,e=null;try{e=new Ve(fr,Mr)}catch{return null}return wr.forEach(a=>{e.test(a)&&(!ir||Pe.compare(a)===1)&&(ir=a,Pe=new qe(ir,Mr))}),ir};te.exports=ni}}),Mj=Aa({"node_modules/semver/ranges/min-version.js"(R,te){Sa();var qe=Nf(),Ve=Hp(),ni=s1(),wr=(fr,Mr)=>{fr=new Ve(fr,Mr);let ir=new qe("0.0.0");if(fr.test(ir)||(ir=new qe("0.0.0-0"),fr.test(ir)))return ir;ir=null;for(let Pe=0;Pe<fr.set.length;++Pe){let e=fr.set[Pe],a=null;e.forEach(O=>{let L=new qe(O.semver.version);switch(O.operator){case">":L.prerelease.length===0?L.patch++:L.prerelease.push(0),L.raw=L.format();case"":case">=":(!a||ni(L,a))&&(a=L);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: ".concat(O.operator))}}),a&&(!ir||ni(ir,a))&&(ir=a)}return ir&&fr.test(ir)?ir:null};te.exports=wr}}),Lj=Aa({"node_modules/semver/ranges/valid.js"(R,te){Sa();var qe=Hp(),Ve=(ni,wr)=>{try{return new qe(ni,wr).range||"*"}catch{return null}};te.exports=Ve}}),AT=Aa({"node_modules/semver/ranges/outside.js"(R,te){Sa();var qe=Nf(),Ve=c1(),{ANY:ni}=Ve,wr=Hp(),fr=u1(),Mr=s1(),ir=ET(),Pe=kT(),e=CT(),a=(O,L,W,N)=>{O=new qe(O,N),L=new wr(L,N);let Q,pe,F,g,S;switch(W){case">":Q=Mr,pe=Pe,F=ir,g=">",S=">=";break;case"<":Q=ir,pe=e,F=Mr,g="<",S="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(fr(O,L,N))return!1;for(let H=0;H<L.set.length;++H){let se=L.set[H],p=null,C=null;if(se.forEach(G=>{G.semver===ni&&(G=new Ve(">=0.0.0")),p=p||G,C=C||G,Q(G.semver,p.semver,N)?p=G:F(G.semver,C.semver,N)&&(C=G)}),p.operator===g||p.operator===S||(!C.operator||C.operator===g)&&pe(O,C.semver))return!1;if(C.operator===S&&F(O,C.semver))return!1}return!0};te.exports=a}}),Rj=Aa({"node_modules/semver/ranges/gtr.js"(R,te){Sa();var qe=AT(),Ve=(ni,wr,fr)=>qe(ni,wr,">",fr);te.exports=Ve}}),Bj=Aa({"node_modules/semver/ranges/ltr.js"(R,te){Sa();var qe=AT(),Ve=(ni,wr,fr)=>qe(ni,wr,"<",fr);te.exports=Ve}}),Jj=Aa({"node_modules/semver/ranges/intersects.js"(R,te){Sa();var qe=Hp(),Ve=(ni,wr,fr)=>(ni=new qe(ni,fr),wr=new qe(wr,fr),ni.intersects(wr));te.exports=Ve}}),jj=Aa({"node_modules/semver/ranges/simplify.js"(R,te){Sa();var qe=u1(),Ve=Gp();te.exports=(ni,wr,fr)=>{let Mr=[],ir=null,Pe=null,e=ni.sort((W,N)=>Ve(W,N,fr));for(let W of e)qe(W,wr,fr)?(Pe=W,ir||(ir=W)):(Pe&&Mr.push([ir,Pe]),Pe=null,ir=null);ir&&Mr.push([ir,null]);let a=[];for(let[W,N]of Mr)W===N?a.push(W):!N&&W===e[0]?a.push("*"):N?W===e[0]?a.push("<=".concat(N)):a.push("".concat(W," - ").concat(N)):a.push(">=".concat(W));let O=a.join(" || "),L=typeof wr.raw=="string"?wr.raw:String(wr);return O.length<L.length?O:wr}}}),Uj=Aa({"node_modules/semver/ranges/subset.js"(R,te){Sa();var qe=Hp(),Ve=c1(),{ANY:ni}=Ve,wr=u1(),fr=Gp(),Mr=function(a,O){let L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(a===O)return!0;a=new qe(a,L),O=new qe(O,L);let W=!1;e:for(let N of a.set){for(let Q of O.set){let pe=ir(N,Q,L);if(W=W||pe!==null,pe)continue e}if(W)return!1}return!0},ir=(a,O,L)=>{if(a===O)return!0;if(a.length===1&&a[0].semver===ni){if(O.length===1&&O[0].semver===ni)return!0;L.includePrerelease?a=[new Ve(">=0.0.0-0")]:a=[new Ve(">=0.0.0")]}if(O.length===1&&O[0].semver===ni){if(L.includePrerelease)return!0;O=[new Ve(">=0.0.0")]}let W=new Set,N,Q;for(let C of a)C.operator===">"||C.operator===">="?N=Pe(N,C,L):C.operator==="<"||C.operator==="<="?Q=e(Q,C,L):W.add(C.semver);if(W.size>1)return null;let pe;if(N&&Q){if(pe=fr(N.semver,Q.semver,L),pe>0)return null;if(pe===0&&(N.operator!==">="||Q.operator!=="<="))return null}for(let C of W){if(N&&!wr(C,String(N),L)||Q&&!wr(C,String(Q),L))return null;for(let G of O)if(!wr(C,String(G),L))return!1;return!0}let F,g,S,H,se=Q&&!L.includePrerelease&&Q.semver.prerelease.length?Q.semver:!1,p=N&&!L.includePrerelease&&N.semver.prerelease.length?N.semver:!1;se&&se.prerelease.length===1&&Q.operator==="<"&&se.prerelease[0]===0&&(se=!1);for(let C of O){if(H=H||C.operator===">"||C.operator===">=",S=S||C.operator==="<"||C.operator==="<=",N){if(p&&C.semver.prerelease&&C.semver.prerelease.length&&C.semver.major===p.major&&C.semver.minor===p.minor&&C.semver.patch===p.patch&&(p=!1),C.operator===">"||C.operator===">="){if(F=Pe(N,C,L),F===C&&F!==N)return!1}else if(N.operator===">="&&!wr(N.semver,String(C),L))return!1}if(Q){if(se&&C.semver.prerelease&&C.semver.prerelease.length&&C.semver.major===se.major&&C.semver.minor===se.minor&&C.semver.patch===se.patch&&(se=!1),C.operator==="<"||C.operator==="<="){if(g=e(Q,C,L),g===C&&g!==Q)return!1}else if(Q.operator==="<="&&!wr(Q.semver,String(C),L))return!1}if(!C.operator&&(Q||N)&&pe!==0)return!1}return!(N&&S&&!Q&&pe!==0||Q&&H&&!N&&pe!==0||p||se)},Pe=(a,O,L)=>{if(!a)return O;let W=fr(a.semver,O.semver,L);return W>0?a:W<0||O.operator===">"&&a.operator===">="?O:a},e=(a,O,L)=>{if(!a)return O;let W=fr(a.semver,O.semver,L);return W<0?a:W>0||O.operator==="<"&&a.operator==="<="?O:a};te.exports=Mr}}),PT=Aa({"node_modules/semver/index.js"(R,te){Sa();var qe=vv();te.exports={re:qe.re,src:qe.src,tokens:qe.t,SEMVER_SPEC_VERSION:a1().SEMVER_SPEC_VERSION,SemVer:Nf(),compareIdentifiers:vT().compareIdentifiers,rcompareIdentifiers:vT().rcompareIdentifiers,parse:yv(),valid:mj(),clean:vj(),inc:yj(),diff:hj(),major:Dj(),minor:bj(),patch:Sj(),prerelease:Tj(),compare:Gp(),rcompare:xj(),compareLoose:Ej(),compareBuild:xT(),sort:Cj(),rsort:kj(),gt:s1(),lt:ET(),eq:TT(),neq:_N(),gte:CT(),lte:kT(),cmp:pN(),coerce:Aj(),Comparator:c1(),Range:Hp(),satisfies:u1(),toComparators:wj(),maxSatisfying:Oj(),minSatisfying:Fj(),minVersion:Mj(),validRange:Lj(),outside:AT(),gtr:Rj(),ltr:Bj(),intersects:Jj(),simplifyRange:jj(),subset:Uj()}}}),dN={};t1(dN,{basename:()=>hN,default:()=>bN,delimiter:()=>hT,dirname:()=>yN,extname:()=>DN,isAbsolute:()=>IT,join:()=>mN,normalize:()=>NT,relative:()=>vN,resolve:()=>i1,sep:()=>yT});function gN(R,te){for(var qe=0,Ve=R.length-1;Ve>=0;Ve--){var ni=R[Ve];ni==="."?R.splice(Ve,1):ni===".."?(R.splice(Ve,1),qe++):qe&&(R.splice(Ve,1),qe--)}if(te)for(;qe--;qe)R.unshift("..");return R}function i1(){for(var R="",te=!1,qe=arguments.length-1;qe>=-1&&!te;qe--){var Ve=qe>=0?arguments[qe]:"/";if(typeof Ve!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!Ve)continue;R=Ve+"/"+R,te=Ve.charAt(0)==="/"}return R=gN(wT(R.split("/"),function(ni){return!!ni}),!te).join("/"),(te?"/":"")+R||"."}function NT(R){var te=IT(R),qe=SN(R,-1)==="/";return R=gN(wT(R.split("/"),function(Ve){return!!Ve}),!te).join("/"),!R&&!te&&(R="."),R&&qe&&(R+="/"),(te?"/":"")+R}function IT(R){return R.charAt(0)==="/"}function mN(){var R=Array.prototype.slice.call(arguments,0);return NT(wT(R,function(te,qe){if(typeof te!="string")throw new TypeError("Arguments to path.join must be strings");return te}).join("/"))}function vN(R,te){R=i1(R).substr(1),te=i1(te).substr(1);function qe(Pe){for(var e=0;e<Pe.length&&Pe[e]==="";e++);for(var a=Pe.length-1;a>=0&&Pe[a]==="";a--);return e>a?[]:Pe.slice(e,a-e+1)}for(var Ve=qe(R.split("/")),ni=qe(te.split("/")),wr=Math.min(Ve.length,ni.length),fr=wr,Mr=0;Mr<wr;Mr++)if(Ve[Mr]!==ni[Mr]){fr=Mr;break}for(var ir=[],Mr=fr;Mr<Ve.length;Mr++)ir.push("..");return ir=ir.concat(ni.slice(fr)),ir.join("/")}function yN(R){var te=l1(R),qe=te[0],Ve=te[1];return!qe&&!Ve?".":(Ve&&(Ve=Ve.substr(0,Ve.length-1)),qe+Ve)}function hN(R,te){var qe=l1(R)[2];return te&&qe.substr(-1*te.length)===te&&(qe=qe.substr(0,qe.length-te.length)),qe}function DN(R){return l1(R)[3]}function wT(R,te){if(R.filter)return R.filter(te);for(var qe=[],Ve=0;Ve<R.length;Ve++)te(R[Ve],Ve,R)&&qe.push(R[Ve]);return qe}var GP,l1,yT,hT,bN,SN,zj=My({"node-modules-polyfills:path"(){Sa(),GP=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,l1=function(R){return GP.exec(R).slice(1)},yT="/",hT=":",bN={extname:DN,basename:hN,dirname:yN,sep:yT,delimiter:hT,relative:vN,join:mN,isAbsolute:IT,normalize:NT,resolve:i1},SN="ab".substr(-1)==="b"?function(R,te,qe){return R.substr(te,qe)}:function(R,te,qe){return te<0&&(te=R.length+te),R.substr(te,qe)}}}),Ly=Aa({"node-modules-polyfills-commonjs:path"(R,te){Sa();var qe=(zj(),up(dN));if(qe&&qe.default){te.exports=qe.default;for(let Ve in qe)te.exports[Ve]=qe[Ve]}else qe&&(te.exports=qe)}}),TN={};t1(TN,{default:()=>xN});var xN,Wj=My({"node-modules-polyfills:fs"(){Sa(),xN={}}}),OT=Aa({"node-modules-polyfills-commonjs:fs"(R,te){Sa();var qe=(Wj(),up(TN));if(qe&&qe.default){te.exports=qe.default;for(let Ve in qe)te.exports[Ve]=qe[Ve]}else qe&&(te.exports=qe)}}),Lu=Aa({"node_modules/typescript/lib/typescript.js"(R,te){"use strict";Sa();var qe=R&&R.__spreadArray||function(e,a,O){if(O||arguments.length===2)for(var L=0,W=a.length,N;L<W;L++)(N||!(L in a))&&(N||(N=Array.prototype.slice.call(a,0,L)),N[L]=a[L]);return e.concat(N||Array.prototype.slice.call(a))},Ve=R&&R.__assign||function(){return Ve=Object.assign||function(e){for(var a,O=1,L=arguments.length;O<L;O++){a=arguments[O];for(var W in a)Object.prototype.hasOwnProperty.call(a,W)&&(e[W]=a[W])}return e},Ve.apply(this,arguments)},ni=R&&R.__makeTemplateObject||function(e,a){return Object.defineProperty?Object.defineProperty(e,"raw",{value:a}):e.raw=a,e},wr=R&&R.__generator||function(e,a){var O={label:0,sent:function(){if(N[0]&1)throw N[1];return N[1]},trys:[],ops:[]},L,W,N,Q;return Q={next:pe(0),throw:pe(1),return:pe(2)},typeof Symbol=="function"&&(Q[Symbol.iterator]=function(){return this}),Q;function pe(g){return function(S){return F([g,S])}}function F(g){if(L)throw new TypeError("Generator is already executing.");for(;O;)try{if(L=1,W&&(N=g[0]&2?W.return:g[0]?W.throw||((N=W.return)&&N.call(W),0):W.next)&&!(N=N.call(W,g[1])).done)return N;switch(W=0,N&&(g=[g[0]&2,N.value]),g[0]){case 0:case 1:N=g;break;case 4:return O.label++,{value:g[1],done:!1};case 5:O.label++,W=g[1],g=[0];continue;case 7:g=O.ops.pop(),O.trys.pop();continue;default:if(N=O.trys,!(N=N.length>0&&N[N.length-1])&&(g[0]===6||g[0]===2)){O=0;continue}if(g[0]===3&&(!N||g[1]>N[0]&&g[1]<N[3])){O.label=g[1];break}if(g[0]===6&&O.label<N[1]){O.label=N[1],N=g;break}if(N&&O.label<N[2]){O.label=N[2],O.ops.push(g);break}N[2]&&O.ops.pop(),O.trys.pop();continue}g=a.call(e,O)}catch(S){g=[6,S],W=0}finally{L=N=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}},fr=R&&R.__rest||function(e,a){var O={};for(var L in e)Object.prototype.hasOwnProperty.call(e,L)&&a.indexOf(L)<0&&(O[L]=e[L]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,L=Object.getOwnPropertySymbols(e);W<L.length;W++)a.indexOf(L[W])<0&&Object.prototype.propertyIsEnumerable.call(e,L[W])&&(O[L[W]]=e[L[W]]);return O},Mr=R&&R.__extends||function(){var e=function(a,O){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,W){L.__proto__=W}||function(L,W){for(var N in W)Object.prototype.hasOwnProperty.call(W,N)&&(L[N]=W[N])},e(a,O)};return function(a,O){if(typeof O!="function"&&O!==null)throw new TypeError("Class extends value "+String(O)+" is not a constructor or null");e(a,O);function L(){this.constructor=a}a.prototype=O===null?Object.create(O):(L.prototype=O.prototype,new L)}}(),Pe;(function(e){function a(){var G={};return G.prev=G,{head:G,tail:G,size:0}}function O(G,E){return{key:G,value:E,next:void 0,prev:void 0}}function L(G,E){return G===E||G!==G&&E!==E}function W(G){var E=G.prev;if(!E||E===G)throw new Error("Illegal state");return E}function N(G){for(;G;){var E=!G.prev;if(G=G.next,!E)return G}}function Q(G,E){for(var ue=G.tail;ue!==G.head;ue=W(ue))if(L(ue.key,E))return ue}function pe(G,E,ue){var B=Q(G,E);if(B){B.value=ue;return}var re=O(E,ue);return re.prev=G.tail,G.tail.next=re,G.tail=re,G.size++,re}function F(G,E){for(var ue=G.tail;ue!==G.head;ue=W(ue)){if(ue.prev===void 0)throw new Error("Illegal state");if(L(ue.key,E)){if(ue.next)ue.next.prev=ue.prev;else{if(G.tail!==ue)throw new Error("Illegal state");G.tail=ue.prev}return ue.prev.next=ue.next,ue.next=ue.prev,ue.prev=void 0,G.size--,ue}}}function g(G){for(var E=G.tail;E!==G.head;){var ue=W(E);E.next=G.head,E.prev=void 0,E=ue}G.head.next=void 0,G.tail=G.head,G.size=0}function S(G,E){for(var ue=G.head;ue;)ue=N(ue),ue&&E(ue.value,ue.key)}function H(G,E){if(G)for(var ue=G.next();!ue.done;ue=G.next())E(ue.value)}function se(G,E){return{current:G.head,selector:E}}function p(G){return G.current=N(G.current),G.current?{value:G.selector(G.current.key,G.current.value),done:!1}:{value:void 0,done:!0}}var C;(function(G){function E(B){var re=function(){function M(x,ie){this._data=se(x,ie)}return M.prototype.next=function(){return p(this._data)},M}();return function(){function M(x){var ie=this;this._mapData=a(),H(B(x),function(_e){var Y=_e[0],Z=_e[1];return ie.set(Y,Z)})}return Object.defineProperty(M.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),M.prototype.get=function(x){var ie;return(ie=Q(this._mapData,x))===null||ie===void 0?void 0:ie.value},M.prototype.set=function(x,ie){return pe(this._mapData,x,ie),this},M.prototype.has=function(x){return!!Q(this._mapData,x)},M.prototype.delete=function(x){return!!F(this._mapData,x)},M.prototype.clear=function(){g(this._mapData)},M.prototype.keys=function(){return new re(this._mapData,function(x,ie){return x})},M.prototype.values=function(){return new re(this._mapData,function(x,ie){return ie})},M.prototype.entries=function(){return new re(this._mapData,function(x,ie){return[x,ie]})},M.prototype.forEach=function(x){S(this._mapData,x)},M}()}G.createMapShim=E;function ue(B){var re=function(){function M(x,ie){this._data=se(x,ie)}return M.prototype.next=function(){return p(this._data)},M}();return function(){function M(x){var ie=this;this._mapData=a(),H(B(x),function(_e){return ie.add(_e)})}return Object.defineProperty(M.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),M.prototype.add=function(x){return pe(this._mapData,x,x),this},M.prototype.has=function(x){return!!Q(this._mapData,x)},M.prototype.delete=function(x){return!!F(this._mapData,x)},M.prototype.clear=function(){g(this._mapData)},M.prototype.keys=function(){return new re(this._mapData,function(x,ie){return x})},M.prototype.values=function(){return new re(this._mapData,function(x,ie){return ie})},M.prototype.entries=function(){return new re(this._mapData,function(x,ie){return[x,ie]})},M.prototype.forEach=function(x){S(this._mapData,x)},M}()}G.createSetShim=ue})(C=e.ShimCollections||(e.ShimCollections={}))})(Pe||(Pe={}));var Pe;(function(e){e.versionMajorMinor="4.6",e.version="4.6.3";var a;(function(W){W[W.LessThan=-1]="LessThan",W[W.EqualTo=0]="EqualTo",W[W.GreaterThan=1]="GreaterThan"})(a=e.Comparison||(e.Comparison={}));var O;(function(W){var N=typeof globalThis<"u"||typeof globalThis<"u"?globalThis:typeof self<"u"?self:void 0;function Q(){var F=N==null?void 0:N.Map;return typeof F<"u"&&"entries"in F.prototype&&new F([[0,0]]).size===1?F:void 0}W.tryGetNativeMap=Q;function pe(){var F=N==null?void 0:N.Set;return typeof F<"u"&&"entries"in F.prototype&&new F([0]).size===1?F:void 0}W.tryGetNativeSet=pe})(O||(O={})),e.Map=L("Map","tryGetNativeMap","createMapShim"),e.Set=L("Set","tryGetNativeSet","createSetShim");function L(W,N,Q){var pe,F=(pe=O[N]())!==null&&pe!==void 0?pe:e.ShimCollections===null||e.ShimCollections===void 0?void 0:e.ShimCollections[Q](e.getIterator);if(F)return F;throw new Error("TypeScript requires an environment that provides a compatible native ".concat(W," implementation."))}})(Pe||(Pe={}));var Pe;(function(e){function a(h){if(h){if(Oe(h))return Br(h);if(h instanceof e.Map)return h.entries();if(h instanceof e.Set)return h.values();throw new Error("Iteration not supported.")}}e.getIterator=a,e.emptyArray=[],e.emptyMap=new e.Map,e.emptySet=new e.Set;function O(h){return h?h.length:0}e.length=O;function L(h,Ee){if(h)for(var Re=0;Re<h.length;Re++){var nr=Ee(h[Re],Re);if(nr)return nr}}e.forEach=L;function W(h,Ee){if(h)for(var Re=h.length-1;Re>=0;Re--){var nr=Ee(h[Re],Re);if(nr)return nr}}e.forEachRight=W;function N(h,Ee){if(h!==void 0)for(var Re=0;Re<h.length;Re++){var nr=Ee(h[Re],Re);if(nr!==void 0)return nr}}e.firstDefined=N;function Q(h,Ee){for(;;){var Re=h.next();if(Re.done)return;var nr=Ee(Re.value);if(nr!==void 0)return nr}}e.firstDefinedIterator=Q;function pe(h,Ee,Re){var nr=Re;if(h)for(var Gr=h.next(),_i=0;!Gr.done;Gr=h.next(),_i++)nr=Ee(nr,Gr.value,_i);return nr}e.reduceLeftIterator=pe;function F(h,Ee,Re){var nr=[];e.Debug.assertEqual(h.length,Ee.length);for(var Gr=0;Gr<h.length;Gr++)nr.push(Re(h[Gr],Ee[Gr],Gr));return nr}e.zipWith=F;function g(h,Ee){e.Debug.assertEqual(h.length,Ee.length);var Re=0;return{next:function(){return Re===h.length?{value:void 0,done:!0}:(Re++,{value:[h[Re-1],Ee[Re-1]],done:!1})}}}e.zipToIterator=g;function S(h,Ee){e.Debug.assert(h.length===Ee.length);for(var Re=new e.Map,nr=0;nr<h.length;++nr)Re.set(h[nr],Ee[nr]);return Re}e.zipToMap=S;function H(h,Ee){if(h.length<=1)return h;for(var Re=[],nr=0,Gr=h.length;nr<Gr;nr++)nr&&Re.push(Ee),Re.push(h[nr]);return Re}e.intersperse=H;function se(h,Ee){if(h){for(var Re=0;Re<h.length;Re++)if(!Ee(h[Re],Re))return!1}return!0}e.every=se;function p(h,Ee){for(var Re=0;Re<h.length;Re++){var nr=h[Re];if(Ee(nr,Re))return nr}}e.find=p;function C(h,Ee){for(var Re=h.length-1;Re>=0;Re--){var nr=h[Re];if(Ee(nr,Re))return nr}}e.findLast=C;function G(h,Ee,Re){for(var nr=Re||0;nr<h.length;nr++)if(Ee(h[nr],nr))return nr;return-1}e.findIndex=G;function E(h,Ee,Re){for(var nr=Re===void 0?h.length-1:Re;nr>=0;nr--)if(Ee(h[nr],nr))return nr;return-1}e.findLastIndex=E;function ue(h,Ee){for(var Re=0;Re<h.length;Re++){var nr=Ee(h[Re],Re);if(nr)return nr}return e.Debug.fail()}e.findMap=ue;function B(h,Ee,Re){if(Re===void 0&&(Re=xt),h)for(var nr=0,Gr=h;nr<Gr.length;nr++){var _i=Gr[nr];if(Re(_i,Ee))return!0}return!1}e.contains=B;function re(h,Ee,Re){return Re===void 0&&(Re=xt),h.length===Ee.length&&h.every(function(nr,Gr){return Re(nr,Ee[Gr])})}e.arraysEqual=re;function M(h,Ee,Re){for(var nr=Re||0;nr<h.length;nr++)if(B(Ee,h.charCodeAt(nr)))return nr;return-1}e.indexOfAnyCharCode=M;function x(h,Ee){var Re=0;if(h)for(var nr=0;nr<h.length;nr++){var Gr=h[nr];Ee(Gr,nr)&&Re++}return Re}e.countWhere=x;function ie(h,Ee){if(h){for(var Re=h.length,nr=0;nr<Re&&Ee(h[nr]);)nr++;if(nr<Re){var Gr=h.slice(0,nr);for(nr++;nr<Re;){var _i=h[nr];Ee(_i)&&Gr.push(_i),nr++}return Gr}}return h}e.filter=ie;function _e(h,Ee){for(var Re=0,nr=0;nr<h.length;nr++)Ee(h[nr],nr,h)&&(h[Re]=h[nr],Re++);h.length=Re}e.filterMutate=_e;function Y(h){h.length=0}e.clear=Y;function Z(h,Ee){var Re;if(h){Re=[];for(var nr=0;nr<h.length;nr++)Re.push(Ee(h[nr],nr))}return Re}e.map=Z;function k(h,Ee){return{next:function(){var Re=h.next();return Re.done?Re:{value:Ee(Re.value),done:!1}}}}e.mapIterator=k;function I(h,Ee){if(h)for(var Re=0;Re<h.length;Re++){var nr=h[Re],Gr=Ee(nr,Re);if(nr!==Gr){var _i=h.slice(0,Re);for(_i.push(Gr),Re++;Re<h.length;Re++)_i.push(Ee(h[Re],Re));return _i}}return h}e.sameMap=I;function ne(h){for(var Ee=[],Re=0,nr=h;Re<nr.length;Re++){var Gr=nr[Re];Gr&&(Oe(Gr)?Fe(Ee,Gr):Ee.push(Gr))}return Ee}e.flatten=ne;function ee(h,Ee){var Re;if(h)for(var nr=0;nr<h.length;nr++){var Gr=Ee(h[nr],nr);Gr&&(Oe(Gr)?Re=Fe(Re,Gr):Re=ye(Re,Gr))}return Re||e.emptyArray}e.flatMap=ee;function A(h,Ee){var Re=[];if(h)for(var nr=0;nr<h.length;nr++){var Gr=Ee(h[nr],nr);Gr&&(Oe(Gr)?Fe(Re,Gr):Re.push(Gr))}return Re}e.flatMapToMutable=A;function f(h,Ee){var Re=h.next();if(Re.done)return e.emptyIterator;var nr=Gr(Re.value);return{next:function(){for(;;){var _i=nr.next();if(!_i.done)return _i;var Ei=h.next();if(Ei.done)return Ei;nr=Gr(Ei.value)}}};function Gr(_i){var Ei=Ee(_i);return Ei===void 0?e.emptyIterator:Oe(Ei)?Br(Ei):Ei}}e.flatMapIterator=f;function P(h,Ee){var Re;if(h)for(var nr=0;nr<h.length;nr++){var Gr=h[nr],_i=Ee(Gr,nr);(Re||Gr!==_i||Oe(_i))&&(Re||(Re=h.slice(0,nr)),Oe(_i)?Fe(Re,_i):Re.push(_i))}return Re||h}e.sameFlatMap=P;function D(h,Ee){for(var Re=[],nr=0;nr<h.length;nr++){var Gr=Ee(h[nr],nr);if(Gr===void 0)return;Re.push(Gr)}return Re}e.mapAllOrFail=D;function l(h,Ee){var Re=[];if(h)for(var nr=0;nr<h.length;nr++){var Gr=Ee(h[nr],nr);Gr!==void 0&&Re.push(Gr)}return Re}e.mapDefined=l;function _(h,Ee){return{next:function(){for(;;){var Re=h.next();if(Re.done)return Re;var nr=Ee(Re.value);if(nr!==void 0)return{value:nr,done:!1}}}}}e.mapDefinedIterator=_;function J(h,Ee){if(!!h){var Re=new e.Map;return h.forEach(function(nr,Gr){var _i=Ee(Gr,nr);if(_i!==void 0){var Ei=_i[0],Ki=_i[1];Ei!==void 0&&Ki!==void 0&&Re.set(Ei,Ki)}}),Re}}e.mapDefinedEntries=J;function w(h,Ee){if(h){var Re=new e.Set;return h.forEach(function(nr){var Gr=Ee(nr);Gr!==void 0&&Re.add(Gr)}),Re}}e.mapDefinedValues=w;function j(h,Ee,Re){if(h.has(Ee))return h.get(Ee);var nr=Re();return h.set(Ee,nr),nr}e.getOrUpdate=j;function U(h,Ee){return h.has(Ee)?!1:(h.add(Ee),!0)}e.tryAddToSet=U,e.emptyIterator={next:function(){return{value:void 0,done:!0}}};function z(h){var Ee=!1;return{next:function(){var Re=Ee;return Ee=!0,Re?{value:void 0,done:!0}:{value:h,done:!1}}}}e.singleIterator=z;function y(h,Ee,Re){var nr;if(h){nr=[];for(var Gr=h.length,_i=void 0,Ei=void 0,Ki=0,Nt=0;Ki<Gr;){for(;Nt<Gr;){var ca=h[Nt];if(Ei=Ee(ca,Nt),Nt===0)_i=Ei;else if(Ei!==_i)break;Nt++}if(Ki<Nt){var Fa=Re(h.slice(Ki,Nt),_i,Ki,Nt);Fa&&nr.push(Fa),Ki=Nt}_i=Ei,Nt++}}return nr}e.spanMap=y;function oe(h,Ee){if(!!h){var Re=new e.Map;return h.forEach(function(nr,Gr){var _i=Ee(Gr,nr),Ei=_i[0],Ki=_i[1];Re.set(Ei,Ki)}),Re}}e.mapEntries=oe;function ve(h,Ee){if(h)if(Ee)for(var Re=0,nr=h;Re<nr.length;Re++){var Gr=nr[Re];if(Ee(Gr))return!0}else return h.length>0;return!1}e.some=ve;function ce(h,Ee,Re){for(var nr,Gr=0;Gr<h.length;Gr++)Ee(h[Gr])?nr=nr===void 0?Gr:nr:nr!==void 0&&(Re(nr,Gr),nr=void 0);nr!==void 0&&Re(nr,h.length)}e.getRangesWhere=ce;function m(h,Ee){return ve(Ee)?ve(h)?qe(qe([],h,!0),Ee,!0):Ee:h}e.concatenate=m;function de(h,Ee){return Ee}function ae(h){return h.map(de)}e.indicesOf=ae;function V(h,Ee,Re){var nr=ae(h);Ir(h,nr,Re);for(var Gr=h[nr[0]],_i=[nr[0]],Ei=1;Ei<nr.length;Ei++){var Ki=nr[Ei],Nt=h[Ki];Ee(Gr,Nt)||(_i.push(Ki),Gr=Nt)}return _i.sort(),_i.map(function(ca){return h[ca]})}function le(h,Ee){for(var Re=[],nr=0,Gr=h;nr<Gr.length;nr++){var _i=Gr[nr];cr(Re,_i,Ee)}return Re}function ke(h,Ee,Re){return h.length===0?[]:h.length===1?h.slice():Re?V(h,Ee,Re):le(h,Ee)}e.deduplicate=ke;function Ue(h,Ee){if(h.length===0)return e.emptyArray;for(var Re=h[0],nr=[Re],Gr=1;Gr<h.length;Gr++){var _i=h[Gr];switch(Ee(_i,Re)){case!0:case 0:continue;case-1:return e.Debug.fail("Array is unsorted.")}nr.push(Re=_i)}return nr}function He(){return[]}e.createSortedArray=He;function ar(h,Ee,Re,nr){if(h.length===0){h.push(Ee);return}var Gr=Rr(h,Ee,Ti,Re);Gr<0?h.splice(~Gr,0,Ee):nr&&h.splice(Gr,0,Ee)}e.insertSorted=ar;function gr(h,Ee,Re){return Ue(dr(h,Ee),Re||Ee||gt)}e.sortAndDeduplicate=gr;function me(h,Ee){if(h.length<2)return!0;for(var Re=h[0],nr=0,Gr=h.slice(1);nr<Gr.length;nr++){var _i=Gr[nr];if(Ee(Re,_i)===1)return!1;Re=_i}return!0}e.arrayIsSorted=me;function Ge(h,Ee,Re){if(Re===void 0&&(Re=xt),!h||!Ee)return h===Ee;if(h.length!==Ee.length)return!1;for(var nr=0;nr<h.length;nr++)if(!Re(h[nr],Ee[nr],nr))return!1;return!0}e.arrayIsEqualTo=Ge;function er(h){var Ee;if(h)for(var Re=0;Re<h.length;Re++){var nr=h[Re];(Ee||!nr)&&(Ee||(Ee=h.slice(0,Re)),nr&&Ee.push(nr))}return Ee||h}e.compact=er;function he(h,Ee,Re){if(!Ee||!h||Ee.length===0||h.length===0)return Ee;var nr=[];e:for(var Gr=0,_i=0;_i<Ee.length;_i++){_i>0&&e.Debug.assertGreaterThanOrEqual(Re(Ee[_i],Ee[_i-1]),0);r:for(var Ei=Gr;Gr<h.length;Gr++)switch(Gr>Ei&&e.Debug.assertGreaterThanOrEqual(Re(h[Gr],h[Gr-1]),0),Re(Ee[_i],h[Gr])){case-1:nr.push(Ee[_i]);continue e;case 0:continue e;case 1:continue r}}return nr}e.relativeComplement=he;function we(h,Ee){for(var Re=0,nr=0,Gr=h;nr<Gr.length;nr++){var _i=Gr[nr];Re+=_i[Ee]}return Re}e.sum=we;function ye(h,Ee){return Ee===void 0?h:h===void 0?[Ee]:(h.push(Ee),h)}e.append=ye;function Se(h,Ee){return h===void 0?Ee:Ee===void 0?h:Oe(h)?Oe(Ee)?m(h,Ee):ye(h,Ee):Oe(Ee)?ye(Ee,h):[h,Ee]}e.combine=Se;function ge(h,Ee){return Ee<0?h.length+Ee:Ee}function Fe(h,Ee,Re,nr){if(Ee===void 0||Ee.length===0)return h;if(h===void 0)return Ee.slice(Re,nr);Re=Re===void 0?0:ge(Ee,Re),nr=nr===void 0?Ee.length:ge(Ee,nr);for(var Gr=Re;Gr<nr&&Gr<Ee.length;Gr++)Ee[Gr]!==void 0&&h.push(Ee[Gr]);return h}e.addRange=Fe;function cr(h,Ee,Re){return B(h,Ee,Re)?!1:(h.push(Ee),!0)}e.pushIfUnique=cr;function ur(h,Ee,Re){return h?(cr(h,Ee,Re),h):[Ee]}e.appendIfUnique=ur;function Ir(h,Ee,Re){Ee.sort(function(nr,Gr){return Re(h[nr],h[Gr])||Ci(nr,Gr)})}function dr(h,Ee){return h.length===0?h:h.slice().sort(Ee)}e.sort=dr;function Br(h){var Ee=0;return{next:function(){return Ee===h.length?{value:void 0,done:!0}:(Ee++,{value:h[Ee-1],done:!1})}}}e.arrayIterator=Br;function Tr(h){var Ee=h.length;return{next:function(){return Ee===0?{value:void 0,done:!0}:(Ee--,{value:h[Ee],done:!1})}}}e.arrayReverseIterator=Tr;function n(h,Ee){var Re=ae(h);return Ir(h,Re,Ee),Re.map(function(nr){return h[nr]})}e.stableSort=n;function Er(h,Ee,Re,nr){for(;Re<nr;){if(h[Re]!==Ee[Re])return!1;Re++}return!0}e.rangeEquals=Er;function br(h,Ee){if(h&&(Ee=ge(h,Ee),Ee<h.length))return h[Ee]}e.elementAt=br;function Pr(h){return h.length===0?void 0:h[0]}e.firstOrUndefined=Pr;function Ce(h){return e.Debug.assert(h.length!==0),h[0]}e.first=Ce;function Le(h){return h.length===0?void 0:h[h.length-1]}e.lastOrUndefined=Le;function Xe(h){return e.Debug.assert(h.length!==0),h[h.length-1]}e.last=Xe;function Cr(h){return h&&h.length===1?h[0]:void 0}e.singleOrUndefined=Cr;function Lr(h){return h&&h.length===1?h[0]:h}e.singleOrMany=Lr;function Jr(h,Ee,Re){var nr=h.slice(0);return nr[Ee]=Re,nr}e.replaceElement=Jr;function Rr(h,Ee,Re,nr,Gr){return ci(h,Re(Ee),Re,nr,Gr)}e.binarySearch=Rr;function ci(h,Ee,Re,nr,Gr){if(!ve(h))return-1;for(var _i=Gr||0,Ei=h.length-1;_i<=Ei;){var Ki=_i+(Ei-_i>>1),Nt=Re(h[Ki],Ki);switch(nr(Nt,Ee)){case-1:_i=Ki+1;break;case 0:return Ki;case 1:Ei=Ki-1;break}}return~_i}e.binarySearchKey=ci;function be(h,Ee,Re,nr,Gr){if(h&&h.length>0){var _i=h.length;if(_i>0){var Ei=nr===void 0||nr<0?0:nr,Ki=Gr===void 0||Ei+Gr>_i-1?_i-1:Ei+Gr,Nt=void 0;for(arguments.length<=2?(Nt=h[Ei],Ei++):Nt=Re;Ei<=Ki;)Nt=Ee(Nt,h[Ei],Ei),Ei++;return Nt}}return Re}e.reduceLeft=be;var or=Object.prototype.hasOwnProperty;function Kr(h,Ee){return or.call(h,Ee)}e.hasProperty=Kr;function ei(h,Ee){return or.call(h,Ee)?h[Ee]:void 0}e.getProperty=ei;function li(h){var Ee=[];for(var Re in h)or.call(h,Re)&&Ee.push(Re);return Ee}e.getOwnKeys=li;function Si(h){var Ee=[];do for(var Re=Object.getOwnPropertyNames(h),nr=0,Gr=Re;nr<Gr.length;nr++){var _i=Gr[nr];cr(Ee,_i)}while(h=Object.getPrototypeOf(h));return Ee}e.getAllKeys=Si;function qi(h){var Ee=[];for(var Re in h)or.call(h,Re)&&Ee.push(h[Re]);return Ee}e.getOwnValues=qi;var ft=Object.entries||function(h){for(var Ee=li(h),Re=Array(Ee.length),nr=0;nr<Ee.length;nr++)Re[nr]=[Ee[nr],h[Ee[nr]]];return Re};function bt(h){return h?ft(h):[]}e.getEntries=bt;function aa(h,Ee){for(var Re=new Array(h),nr=0;nr<h;nr++)Re[nr]=Ee(nr);return Re}e.arrayOf=aa;function sr(h,Ee){for(var Re=[],nr=h.next();!nr.done;nr=h.next())Re.push(Ee?Ee(nr.value):nr.value);return Re}e.arrayFrom=sr;function Ji(h){for(var Ee=[],Re=1;Re<arguments.length;Re++)Ee[Re-1]=arguments[Re];for(var nr=0,Gr=Ee;nr<Gr.length;nr++){var _i=Gr[nr];if(_i!==void 0)for(var Ei in _i)Kr(_i,Ei)&&(h[Ei]=_i[Ei])}return h}e.assign=Ji;function di(h,Ee,Re){if(Re===void 0&&(Re=xt),h===Ee)return!0;if(!h||!Ee)return!1;for(var nr in h)if(or.call(h,nr)&&(!or.call(Ee,nr)||!Re(h[nr],Ee[nr])))return!1;for(var nr in Ee)if(or.call(Ee,nr)&&!or.call(h,nr))return!1;return!0}e.equalOwnProperties=di;function X(h,Ee,Re){Re===void 0&&(Re=Ti);for(var nr=new e.Map,Gr=0,_i=h;Gr<_i.length;Gr++){var Ei=_i[Gr],Ki=Ee(Ei);Ki!==void 0&&nr.set(Ki,Re(Ei))}return nr}e.arrayToMap=X;function Ye(h,Ee,Re){Re===void 0&&(Re=Ti);for(var nr=[],Gr=0,_i=h;Gr<_i.length;Gr++){var Ei=_i[Gr];nr[Ee(Ei)]=Re(Ei)}return nr}e.arrayToNumericMap=Ye;function Be(h,Ee,Re){Re===void 0&&(Re=Ti);for(var nr=v(),Gr=0,_i=h;Gr<_i.length;Gr++){var Ei=_i[Gr];nr.add(Ee(Ei),Re(Ei))}return nr}e.arrayToMultiMap=Be;function Qe(h,Ee,Re){return Re===void 0&&(Re=Ti),sr(Be(h,Ee).values(),Re)}e.group=Qe;function _r(h){var Ee={};for(var Re in h)or.call(h,Re)&&(Ee[Re]=h[Re]);return Ee}e.clone=_r;function hr(h,Ee){var Re={};for(var nr in Ee)or.call(Ee,nr)&&(Re[nr]=Ee[nr]);for(var nr in h)or.call(h,nr)&&(Re[nr]=h[nr]);return Re}e.extend=hr;function Dr(h,Ee){for(var Re in Ee)or.call(Ee,Re)&&(h[Re]=Ee[Re])}e.copyProperties=Dr;function Me(h,Ee){return Ee?Ee.bind(h):void 0}e.maybeBind=Me;function v(){var h=new e.Map;return h.add=xe,h.remove=ze,h}e.createMultiMap=v;function xe(h,Ee){var Re=this.get(h);return Re?Re.push(Ee):this.set(h,Re=[Ee]),Re}function ze(h,Ee){var Re=this.get(h);Re&&(Cn(Re,Ee),Re.length||this.delete(h))}function Je(){return v()}e.createUnderscoreEscapedMultiMap=Je;function Oe(h){return Array.isArray?Array.isArray(h):h instanceof Array}e.isArray=Oe;function Fr(h){return Oe(h)?h:[h]}e.toArray=Fr;function Xr(h){return typeof h=="string"}e.isString=Xr;function Or(h){return typeof h=="number"}e.isNumber=Or;function We(h,Ee){return h!==void 0&&Ee(h)?h:void 0}e.tryCast=We;function mr(h,Ee){return h!==void 0&&Ee(h)?h:e.Debug.fail("Invalid cast. The supplied value ".concat(h," did not pass the test '").concat(e.Debug.getFunctionName(Ee),"'."))}e.cast=mr;function Nr(h){}e.noop=Nr;function Ur(){return!1}e.returnFalse=Ur;function si(){return!0}e.returnTrue=si;function mi(){}e.returnUndefined=mi;function Ti(h){return h}e.identity=Ti;function hi(h){return h.toLowerCase()}e.toLowerCase=hi;var ki=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g;function Ui(h){return ki.test(h)?h.replace(ki,hi):h}e.toFileNameLowerCase=Ui;function zi(){throw new Error("Not implemented")}e.notImplemented=zi;function ri(h){var Ee;return function(){return h&&(Ee=h(),h=void 0),Ee}}e.memoize=ri;function Gi(h){var Ee=new e.Map;return function(Re){var nr="".concat(typeof Re,":").concat(Re),Gr=Ee.get(nr);return Gr===void 0&&!Ee.has(nr)&&(Gr=h(Re),Ee.set(nr,Gr)),Gr}}e.memoizeOne=Gi;function Rt(h,Ee,Re,nr,Gr){if(Gr){for(var _i=[],Ei=0;Ei<arguments.length;Ei++)_i[Ei]=arguments[Ei];return function(Ki){return be(_i,function(Nt,ca){return ca(Nt)},Ki)}}else return nr?function(Ki){return nr(Re(Ee(h(Ki))))}:Re?function(Ki){return Re(Ee(h(Ki)))}:Ee?function(Ki){return Ee(h(Ki))}:h?function(Ki){return h(Ki)}:function(Ki){return Ki}}e.compose=Rt;var pa;(function(h){h[h.None=0]="None",h[h.Normal=1]="Normal",h[h.Aggressive=2]="Aggressive",h[h.VeryAggressive=3]="VeryAggressive"})(pa=e.AssertionLevel||(e.AssertionLevel={}));function xt(h,Ee){return h===Ee}e.equateValues=xt;function ua(h,Ee){return h===Ee||h!==void 0&&Ee!==void 0&&h.toUpperCase()===Ee.toUpperCase()}e.equateStringsCaseInsensitive=ua;function Vt(h,Ee){return xt(h,Ee)}e.equateStringsCaseSensitive=Vt;function St(h,Ee){return h===Ee?0:h===void 0?-1:Ee===void 0?1:h<Ee?-1:1}function Ci(h,Ee){return St(h,Ee)}e.compareValues=Ci;function Hi(h,Ee){return Ci(h==null?void 0:h.start,Ee==null?void 0:Ee.start)||Ci(h==null?void 0:h.length,Ee==null?void 0:Ee.length)}e.compareTextSpans=Hi;function Yi(h,Ee,Re){return Re(h,Ee)===-1?h:Ee}e.min=Yi;function yt(h,Ee){return h===Ee?0:h===void 0?-1:Ee===void 0?1:(h=h.toUpperCase(),Ee=Ee.toUpperCase(),h<Ee?-1:h>Ee?1:0)}e.compareStringsCaseInsensitive=yt;function gt(h,Ee){return St(h,Ee)}e.compareStringsCaseSensitive=gt;function oa(h){return h?yt:gt}e.getStringComparer=oa;var Bt=function(){var h,Ee,Re=Ki();return Nt;function nr(ca,Fa,Ta){if(ca===Fa)return 0;if(ca===void 0)return-1;if(Fa===void 0)return 1;var In=Ta(ca,Fa);return In<0?-1:In>0?1:0}function Gr(ca){var Fa=new Intl.Collator(ca,{usage:"sort",sensitivity:"variant"}).compare;return function(Ta,In){return nr(Ta,In,Fa)}}function _i(ca){if(ca!==void 0)return Ei();return function(Ta,In){return nr(Ta,In,Fa)};function Fa(Ta,In){return Ta.localeCompare(In)}}function Ei(){return function(Ta,In){return nr(Ta,In,ca)};function ca(Ta,In){return Fa(Ta.toUpperCase(),In.toUpperCase())||Fa(Ta,In)}function Fa(Ta,In){return Ta<In?-1:Ta>In?1:0}}function Ki(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?Gr:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?_i:Ei}function Nt(ca){return ca===void 0?h||(h=Re(ca)):ca==="en-US"?Ee||(Ee=Re(ca)):Re(ca)}}(),Pi,Oi;function wi(){return Oi}e.getUILocale=wi;function Qr(h){Oi!==h&&(Oi=h,Pi=void 0)}e.setUILocale=Qr;function Ct(h,Ee){var Re=Pi||(Pi=Bt(Oi));return Re(h,Ee)}e.compareStringsCaseSensitiveUI=Ct;function tt(h,Ee,Re,nr){return h===Ee?0:h===void 0?-1:Ee===void 0?1:nr(h[Re],Ee[Re])}e.compareProperties=tt;function ta(h,Ee){return Ci(h?1:0,Ee?1:0)}e.compareBooleans=ta;function Xa(h,Ee,Re){for(var nr=Math.min(2,Math.floor(h.length*.34)),Gr=Math.floor(h.length*.4)+1,_i,Ei=0,Ki=Ee;Ei<Ki.length;Ei++){var Nt=Ki[Ei],ca=Re(Nt);if(ca!==void 0&&Math.abs(ca.length-h.length)<=nr){if(ca===h||ca.length<3&&ca.toLowerCase()!==h.toLowerCase())continue;var Fa=on(h,ca,Gr-.1);if(Fa===void 0)continue;e.Debug.assert(Fa<Gr),Gr=Fa,_i=Nt}}return _i}e.getSpellingSuggestion=Xa;function on(h,Ee,Re){for(var nr=new Array(Ee.length+1),Gr=new Array(Ee.length+1),_i=Re+.01,Ei=0;Ei<=Ee.length;Ei++)nr[Ei]=Ei;for(var Ei=1;Ei<=h.length;Ei++){var Ki=h.charCodeAt(Ei-1),Nt=Math.ceil(Ei>Re?Ei-Re:1),ca=Math.floor(Ee.length>Re+Ei?Re+Ei:Ee.length);Gr[0]=Ei;for(var Fa=Ei,Ta=1;Ta<Nt;Ta++)Gr[Ta]=_i;for(var Ta=Nt;Ta<=ca;Ta++){var In=h[Ei-1].toLowerCase()===Ee[Ta-1].toLowerCase()?nr[Ta-1]+.1:nr[Ta-1]+2,so=Ki===Ee.charCodeAt(Ta-1)?nr[Ta-1]:Math.min(nr[Ta]+1,Gr[Ta-1]+1,In);Gr[Ta]=so,Fa=Math.min(Fa,so)}for(var Ta=ca+1;Ta<=Ee.length;Ta++)Gr[Ta]=_i;if(Fa>Re)return;var as=nr;nr=Gr,Gr=as}var Ho=nr[Ee.length];return Ho>Re?void 0:Ho}function qr(h,Ee){var Re=h.length-Ee.length;return Re>=0&&h.indexOf(Ee,Re)===Re}e.endsWith=qr;function bn(h,Ee){return qr(h,Ee)?h.slice(0,h.length-Ee.length):h}e.removeSuffix=bn;function Rn(h,Ee){return qr(h,Ee)?h.slice(0,h.length-Ee.length):void 0}e.tryRemoveSuffix=Rn;function Sn(h,Ee){return h.indexOf(Ee)!==-1}e.stringContains=Sn;function zn(h){for(var Ee=h.length,Re=Ee-1;Re>0;Re--){var nr=h.charCodeAt(Re);if(nr>=48&&nr<=57)do--Re,nr=h.charCodeAt(Re);while(Re>0&&nr>=48&&nr<=57);else if(Re>4&&(nr===110||nr===78)){if(--Re,nr=h.charCodeAt(Re),nr!==105&&nr!==73||(--Re,nr=h.charCodeAt(Re),nr!==109&&nr!==77))break;--Re,nr=h.charCodeAt(Re)}else break;if(nr!==45&&nr!==46)break;Ee=Re}return Ee===h.length?h:h.slice(0,Ee)}e.removeMinAndVersionNumbers=zn;function Zn(h,Ee){for(var Re=0;Re<h.length;Re++)if(h[Re]===Ee)return ho(h,Re),!0;return!1}e.orderedRemoveItem=Zn;function ho(h,Ee){for(var Re=Ee;Re<h.length-1;Re++)h[Re]=h[Re+1];h.pop()}e.orderedRemoveItemAt=ho;function Vo(h,Ee){h[Ee]=h[h.length-1],h.pop()}e.unorderedRemoveItemAt=Vo;function Cn(h,Ee){return go(h,function(Re){return Re===Ee})}e.unorderedRemoveItem=Cn;function go(h,Ee){for(var Re=0;Re<h.length;Re++)if(Ee(h[Re]))return Vo(h,Re),!0;return!1}function ro(h){return h?Ti:Ui}e.createGetCanonicalFileName=ro;function Ko(h){var Ee=h.prefix,Re=h.suffix;return"".concat(Ee,"*").concat(Re)}e.patternText=Ko;function rs(h,Ee){return e.Debug.assert(Qn(h,Ee)),Ee.substring(h.prefix.length,Ee.length-h.suffix.length)}e.matchedText=rs;function rn(h,Ee,Re){for(var nr,Gr=-1,_i=0,Ei=h;_i<Ei.length;_i++){var Ki=Ei[_i],Nt=Ee(Ki);Qn(Nt,Re)&&Nt.prefix.length>Gr&&(Gr=Nt.prefix.length,nr=Ki)}return nr}e.findBestPatternMatch=rn;function Do(h,Ee){return h.lastIndexOf(Ee,0)===0}e.startsWith=Do;function io(h,Ee){return Do(h,Ee)?h.substr(Ee.length):h}e.removePrefix=io;function pn(h,Ee,Re){return Re===void 0&&(Re=Ti),Do(Re(h),Re(Ee))?h.substring(Ee.length):void 0}e.tryRemovePrefix=pn;function Qn(h,Ee){var Re=h.prefix,nr=h.suffix;return Ee.length>=Re.length+nr.length&&Do(Ee,Re)&&qr(Ee,nr)}function wo(h,Ee){return function(Re){return h(Re)&&Ee(Re)}}e.and=wo;function xo(){for(var h=[],Ee=0;Ee<arguments.length;Ee++)h[Ee]=arguments[Ee];return function(){for(var Re=[],nr=0;nr<arguments.length;nr++)Re[nr]=arguments[nr];for(var Gr=0,_i=h;Gr<_i.length;Gr++){var Ei=_i[Gr];if(Ei.apply(void 0,Re))return!0}return!1}}e.or=xo;function ds(h){return function(){for(var Ee=[],Re=0;Re<arguments.length;Re++)Ee[Re]=arguments[Re];return!h.apply(void 0,Ee)}}e.not=ds;function No(h){}e.assertType=No;function Ts(h){return h===void 0?void 0:[h]}e.singleElementArray=Ts;function Ms(h,Ee,Re,nr,Gr,_i){_i=_i||Nr;for(var Ei=0,Ki=0,Nt=h.length,ca=Ee.length,Fa=!1;Ei<Nt&&Ki<ca;){var Ta=h[Ei],In=Ee[Ki],so=Re(Ta,In);so===-1?(nr(Ta),Ei++,Fa=!0):so===1?(Gr(In),Ki++,Fa=!0):(_i(In,Ta),Ei++,Ki++)}for(;Ei<Nt;)nr(h[Ei++]),Fa=!0;for(;Ki<ca;)Gr(Ee[Ki++]),Fa=!0;return Fa}e.enumerateInsertsAndDeletes=Ms;function xr(h,Ee){for(var Re=Array(h),nr=0;nr<h;nr++)Re[nr]=Ee(nr);return Re}e.fill=xr;function bi(h){var Ee=[];return ut(h,Ee,void 0,0),Ee}e.cartesianProduct=bi;function ut(h,Ee,Re,nr){for(var Gr=0,_i=h[nr];Gr<_i.length;Gr++){var Ei=_i[Gr],Ki=void 0;Re?(Ki=Re.slice(),Ki.push(Ei)):Ki=[Ei],nr===h.length-1?Ee.push(Ki):ut(h,Ee,Ki,nr+1)}}function Ht(h,Ee,Re){return Re===void 0&&(Re=" "),Ee<=h.length?h:Re.repeat(Ee-h.length)+h}e.padLeft=Ht;function Ka(h,Ee,Re){return Re===void 0&&(Re=" "),Ee<=h.length?h:h+Re.repeat(Ee-h.length)}e.padRight=Ka;function an(h,Ee){for(var Re=h.length,nr=0;nr<Re&&Ee(h[nr]);)nr++;return h.slice(0,nr)}e.takeWhile=an,e.trimString=String.prototype.trim?function(h){return h.trim()}:function(h){return e.trimStringEnd(e.trimStringStart(h))},e.trimStringEnd=String.prototype.trimEnd?function(h){return h.trimEnd()}:Ke,e.trimStringStart=String.prototype.trimStart?function(h){return h.trimStart()}:function(h){return h.replace(/^\s+/g,"")};function Ke(h){for(var Ee=h.length-1;Ee>=0&&e.isWhiteSpaceLike(h.charCodeAt(Ee));)Ee--;return h.slice(0,Ee+1)}})(Pe||(Pe={}));var Pe;(function(e){var a;(function(L){L[L.Off=0]="Off",L[L.Error=1]="Error",L[L.Warning=2]="Warning",L[L.Info=3]="Info",L[L.Verbose=4]="Verbose"})(a=e.LogLevel||(e.LogLevel={}));var O;(function(L){var W,N=0;L.currentLogLevel=a.Warning,L.isDebugging=!1;function Q(){return W!=null?W:W=new e.Version(e.version)}L.getTypeScriptVersion=Q;function pe(dr){return L.currentLogLevel<=dr}L.shouldLog=pe;function F(dr,Br){L.loggingHost&&pe(dr)&&L.loggingHost.log(dr,Br)}function g(dr){F(a.Info,dr)}L.log=g,function(dr){function Br(br){F(a.Error,br)}dr.error=Br;function Tr(br){F(a.Warning,br)}dr.warn=Tr;function n(br){F(a.Info,br)}dr.log=n;function Er(br){F(a.Verbose,br)}dr.trace=Er}(g=L.log||(L.log={}));var S={};function H(){return N}L.getAssertionLevel=H;function se(dr){var Br=N;if(N=dr,dr>Br)for(var Tr=0,n=e.getOwnKeys(S);Tr<n.length;Tr++){var Er=n[Tr],br=S[Er];br!==void 0&&L[Er]!==br.assertion&&dr>=br.level&&(L[Er]=br,S[Er]=void 0)}}L.setAssertionLevel=se;function p(dr){return N>=dr}L.shouldAssert=p;function C(dr,Br){return p(dr)?!0:(S[Br]={level:dr,assertion:L[Br]},L[Br]=e.noop,!1)}function G(dr,Br){debugger;var Tr=new Error(dr?"Debug Failure. ".concat(dr):"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Tr,Br||G),Tr}L.fail=G;function E(dr,Br,Tr){return G("".concat(Br||"Unexpected node.",`\r
Node `).concat(j(dr.kind)," was unexpected."),Tr||E)}L.failBadSyntaxKind=E;function ue(dr,Br,Tr,n){dr||(Br=Br?"False expression: ".concat(Br):"False expression.",Tr&&(Br+=`\r
Verbose Debug Information: `+(typeof Tr=="string"?Tr:Tr())),G(Br,n||ue))}L.assert=ue;function B(dr,Br,Tr,n,Er){if(dr!==Br){var br=Tr?n?"".concat(Tr," ").concat(n):Tr:"";G("Expected ".concat(dr," === ").concat(Br,". ").concat(br),Er||B)}}L.assertEqual=B;function re(dr,Br,Tr,n){dr>=Br&&G("Expected ".concat(dr," < ").concat(Br,". ").concat(Tr||""),n||re)}L.assertLessThan=re;function M(dr,Br,Tr){dr>Br&&G("Expected ".concat(dr," <= ").concat(Br),Tr||M)}L.assertLessThanOrEqual=M;function x(dr,Br,Tr){dr<Br&&G("Expected ".concat(dr," >= ").concat(Br),Tr||x)}L.assertGreaterThanOrEqual=x;function ie(dr,Br,Tr){dr==null&&G(Br,Tr||ie)}L.assertIsDefined=ie;function _e(dr,Br,Tr){return ie(dr,Br,Tr||_e),dr}L.checkDefined=_e;function Y(dr,Br,Tr){for(var n=0,Er=dr;n<Er.length;n++){var br=Er[n];ie(br,Br,Tr||Y)}}L.assertEachIsDefined=Y;function Z(dr,Br,Tr){return Y(dr,Br,Tr||Z),dr}L.checkEachDefined=Z;function k(dr,Br,Tr){Br===void 0&&(Br="Illegal value:");var n=typeof dr=="object"&&e.hasProperty(dr,"kind")&&e.hasProperty(dr,"pos")&&j?"SyntaxKind: "+j(dr.kind):JSON.stringify(dr);return G("".concat(Br," ").concat(n),Tr||k)}L.assertNever=k;function I(dr,Br,Tr,n){C(1,"assertEachNode")&&ue(Br===void 0||e.every(dr,Br),Tr||"Unexpected node.",function(){return"Node array did not pass test '".concat(l(Br),"'.")},n||I)}L.assertEachNode=I;function ne(dr,Br,Tr,n){C(1,"assertNode")&&ue(dr!==void 0&&(Br===void 0||Br(dr)),Tr||"Unexpected node.",function(){return"Node ".concat(j(dr==null?void 0:dr.kind)," did not pass test '").concat(l(Br),"'.")},n||ne)}L.assertNode=ne;function ee(dr,Br,Tr,n){C(1,"assertNotNode")&&ue(dr===void 0||Br===void 0||!Br(dr),Tr||"Unexpected node.",function(){return"Node ".concat(j(dr.kind)," should not have passed test '").concat(l(Br),"'.")},n||ee)}L.assertNotNode=ee;function A(dr,Br,Tr,n){C(1,"assertOptionalNode")&&ue(Br===void 0||dr===void 0||Br(dr),Tr||"Unexpected node.",function(){return"Node ".concat(j(dr==null?void 0:dr.kind)," did not pass test '").concat(l(Br),"'.")},n||A)}L.assertOptionalNode=A;function f(dr,Br,Tr,n){C(1,"assertOptionalToken")&&ue(Br===void 0||dr===void 0||dr.kind===Br,Tr||"Unexpected node.",function(){return"Node ".concat(j(dr==null?void 0:dr.kind)," was not a '").concat(j(Br),"' token.")},n||f)}L.assertOptionalToken=f;function P(dr,Br,Tr){C(1,"assertMissingNode")&&ue(dr===void 0,Br||"Unexpected node.",function(){return"Node ".concat(j(dr.kind)," was unexpected'.")},Tr||P)}L.assertMissingNode=P;function D(dr){}L.type=D;function l(dr){if(typeof dr!="function")return"";if(dr.hasOwnProperty("name"))return dr.name;var Br=Function.prototype.toString.call(dr),Tr=/^function\s+([\w\$]+)\s*\(/.exec(Br);return Tr?Tr[1]:""}L.getFunctionName=l;function _(dr){return"{ name: ".concat(e.unescapeLeadingUnderscores(dr.escapedName),"; flags: ").concat(ce(dr.flags),"; declarations: ").concat(e.map(dr.declarations,function(Br){return j(Br.kind)})," }")}L.formatSymbol=_;function J(dr,Br,Tr){dr===void 0&&(dr=0);var n=w(Br);if(dr===0)return n.length>0&&n[0][0]===0?n[0][1]:"0";if(Tr){for(var Er="",br=dr,Pr=0,Ce=n;Pr<Ce.length;Pr++){var Le=Ce[Pr],Xe=Le[0],Cr=Le[1];if(Xe>dr)break;Xe!==0&&Xe&dr&&(Er="".concat(Er).concat(Er?"|":"").concat(Cr),br&=~Xe)}if(br===0)return Er}else for(var Lr=0,Jr=n;Lr<Jr.length;Lr++){var Rr=Jr[Lr],Xe=Rr[0],Cr=Rr[1];if(Xe===dr)return Cr}return dr.toString()}L.formatEnum=J;function w(dr){var Br=[];for(var Tr in dr){var n=dr[Tr];typeof n=="number"&&Br.push([n,Tr])}return e.stableSort(Br,function(Er,br){return e.compareValues(Er[0],br[0])})}function j(dr){return J(dr,e.SyntaxKind,!1)}L.formatSyntaxKind=j;function U(dr){return J(dr,e.SnippetKind,!1)}L.formatSnippetKind=U;function z(dr){return J(dr,e.NodeFlags,!0)}L.formatNodeFlags=z;function y(dr){return J(dr,e.ModifierFlags,!0)}L.formatModifierFlags=y;function oe(dr){return J(dr,e.TransformFlags,!0)}L.formatTransformFlags=oe;function ve(dr){return J(dr,e.EmitFlags,!0)}L.formatEmitFlags=ve;function ce(dr){return J(dr,e.SymbolFlags,!0)}L.formatSymbolFlags=ce;function m(dr){return J(dr,e.TypeFlags,!0)}L.formatTypeFlags=m;function de(dr){return J(dr,e.SignatureFlags,!0)}L.formatSignatureFlags=de;function ae(dr){return J(dr,e.ObjectFlags,!0)}L.formatObjectFlags=ae;function V(dr){return J(dr,e.FlowFlags,!0)}L.formatFlowFlags=V;var le=!1,ke;function Ue(){if(ye(),!ke)throw new Error("Debugging helpers could not be loaded.");return ke}function He(dr){return console.log(ar(dr))}L.printControlFlowGraph=He;function ar(dr){return Ue().formatControlFlowGraph(dr)}L.formatControlFlowGraph=ar;var gr;function me(dr){"__debugFlowFlags"in dr||Object.defineProperties(dr,{__tsDebuggerDisplay:{value:function(){var Br=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",Tr=this.flags&~(2048-1);return"".concat(Br).concat(Tr?" (".concat(V(Tr),")"):"")}},__debugFlowFlags:{get:function(){return J(this.flags,e.FlowFlags,!0)}},__debugToString:{value:function(){return ar(this)}}})}function Ge(dr){le&&(typeof Object.setPrototypeOf=="function"?(gr||(gr=Object.create(Object.prototype),me(gr)),Object.setPrototypeOf(dr,gr)):me(dr))}L.attachFlowNodeDebugInfo=Ge;var er;function he(dr){"__tsDebuggerDisplay"in dr||Object.defineProperties(dr,{__tsDebuggerDisplay:{value:function(Br){return Br=String(Br).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),"NodeArray ".concat(Br)}}})}function we(dr){le&&(typeof Object.setPrototypeOf=="function"?(er||(er=Object.create(Array.prototype),he(er)),Object.setPrototypeOf(dr,er)):he(dr))}L.attachNodeArrayDebugInfo=we;function ye(){if(le)return;var dr,Br;function Tr(){return dr===void 0&&typeof WeakMap=="function"&&(dr=new WeakMap),dr}function n(){return Br===void 0&&typeof WeakMap=="function"&&(Br=new WeakMap),Br}Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var Cr=this.flags&33554432?"TransientSymbol":"Symbol",Lr=this.flags&-33554433;return"".concat(Cr," '").concat(e.symbolName(this),"'").concat(Lr?" (".concat(ce(Lr),")"):"")}},__debugFlags:{get:function(){return ce(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var Cr=this.flags&98304?"NullableType":this.flags&384?"LiteralType ".concat(JSON.stringify(this.value)):this.flags&2048?"LiteralType ".concat(this.value.negative?"-":"").concat(this.value.base10Value,"n"):this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&67359327?"IntrinsicType ".concat(this.intrinsicName):this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Lr=this.flags&524288?this.objectFlags&-1344:0;return"".concat(Cr).concat(this.symbol?" '".concat(e.symbolName(this.symbol),"'"):"").concat(Lr?" (".concat(ae(Lr),")"):"")}},__debugFlags:{get:function(){return m(this.flags)}},__debugObjectFlags:{get:function(){return this.flags&524288?ae(this.objectFlags):""}},__debugTypeToString:{value:function(){var Cr=Tr(),Lr=Cr==null?void 0:Cr.get(this);return Lr===void 0&&(Lr=this.checker.typeToString(this),Cr==null||Cr.set(this,Lr)),Lr}}}),Object.defineProperties(e.objectAllocator.getSignatureConstructor().prototype,{__debugFlags:{get:function(){return de(this.flags)}},__debugSignatureToString:{value:function(){var Cr;return(Cr=this.checker)===null||Cr===void 0?void 0:Cr.signatureToString(this)}}});for(var Er=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()],br=0,Pr=Er;br<Pr.length;br++){var Ce=Pr[br];Ce.prototype.hasOwnProperty("__debugKind")||Object.defineProperties(Ce.prototype,{__tsDebuggerDisplay:{value:function(){var Cr=e.isGeneratedIdentifier(this)?"GeneratedIdentifier":e.isIdentifier(this)?"Identifier '".concat(e.idText(this),"'"):e.isPrivateIdentifier(this)?"PrivateIdentifier '".concat(e.idText(this),"'"):e.isStringLiteral(this)?"StringLiteral ".concat(JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")):e.isNumericLiteral(this)?"NumericLiteral ".concat(this.text):e.isBigIntLiteral(this)?"BigIntLiteral ".concat(this.text,"n"):e.isTypeParameterDeclaration(this)?"TypeParameterDeclaration":e.isParameter(this)?"ParameterDeclaration":e.isConstructorDeclaration(this)?"ConstructorDeclaration":e.isGetAccessorDeclaration(this)?"GetAccessorDeclaration":e.isSetAccessorDeclaration(this)?"SetAccessorDeclaration":e.isCallSignatureDeclaration(this)?"CallSignatureDeclaration":e.isConstructSignatureDeclaration(this)?"ConstructSignatureDeclaration":e.isIndexSignatureDeclaration(this)?"IndexSignatureDeclaration":e.isTypePredicateNode(this)?"TypePredicateNode":e.isTypeReferenceNode(this)?"TypeReferenceNode":e.isFunctionTypeNode(this)?"FunctionTypeNode":e.isConstructorTypeNode(this)?"ConstructorTypeNode":e.isTypeQueryNode(this)?"TypeQueryNode":e.isTypeLiteralNode(this)?"TypeLiteralNode":e.isArrayTypeNode(this)?"ArrayTypeNode":e.isTupleTypeNode(this)?"TupleTypeNode":e.isOptionalTypeNode(this)?"OptionalTypeNode":e.isRestTypeNode(this)?"RestTypeNode":e.isUnionTypeNode(this)?"UnionTypeNode":e.isIntersectionTypeNode(this)?"IntersectionTypeNode":e.isConditionalTypeNode(this)?"ConditionalTypeNode":e.isInferTypeNode(this)?"InferTypeNode":e.isParenthesizedTypeNode(this)?"ParenthesizedTypeNode":e.isThisTypeNode(this)?"ThisTypeNode":e.isTypeOperatorNode(this)?"TypeOperatorNode":e.isIndexedAccessTypeNode(this)?"IndexedAccessTypeNode":e.isMappedTypeNode(this)?"MappedTypeNode":e.isLiteralTypeNode(this)?"LiteralTypeNode":e.isNamedTupleMember(this)?"NamedTupleMember":e.isImportTypeNode(this)?"ImportTypeNode":j(this.kind);return"".concat(Cr).concat(this.flags?" (".concat(z(this.flags),")"):"")}},__debugKind:{get:function(){return j(this.kind)}},__debugNodeFlags:{get:function(){return z(this.flags)}},__debugModifierFlags:{get:function(){return y(e.getEffectiveModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return oe(this.transformFlags)}},__debugIsParseTreeNode:{get:function(){return e.isParseTreeNode(this)}},__debugEmitFlags:{get:function(){return ve(e.getEmitFlags(this))}},__debugGetText:{value:function(Cr){if(e.nodeIsSynthesized(this))return"";var Lr=n(),Jr=Lr==null?void 0:Lr.get(this);if(Jr===void 0){var Rr=e.getParseTreeNode(this),ci=Rr&&e.getSourceFileOfNode(Rr);Jr=ci?e.getSourceTextOfNodeFromSourceFile(ci,Rr,Cr):"",Lr==null||Lr.set(this,Jr)}return Jr}}})}try{if(!1)var Le,Xe}catch{}le=!0}L.enableDebugInfo=ye;function Se(dr,Br,Tr,n,Er){var br=Br?"DeprecationError: ":"DeprecationWarning: ";return br+="'".concat(dr,"' "),br+=n?"has been deprecated since v".concat(n):"is deprecated",br+=Br?" and can no longer be used.":Tr?" and will no longer be usable after v".concat(Tr,"."):".",br+=Er?" ".concat(e.formatStringFromArgs(Er,[dr],0)):"",br}function ge(dr,Br,Tr,n){var Er=Se(dr,!0,Br,Tr,n);return function(){throw new TypeError(Er)}}function Fe(dr,Br,Tr,n){var Er=!1;return function(){Er||(g.warn(Se(dr,!1,Br,Tr,n)),Er=!0)}}function cr(dr,Br){var Tr,n;Br===void 0&&(Br={});var Er=typeof Br.typeScriptVersion=="string"?new e.Version(Br.typeScriptVersion):(Tr=Br.typeScriptVersion)!==null&&Tr!==void 0?Tr:Q(),br=typeof Br.errorAfter=="string"?new e.Version(Br.errorAfter):Br.errorAfter,Pr=typeof Br.warnAfter=="string"?new e.Version(Br.warnAfter):Br.warnAfter,Ce=typeof Br.since=="string"?new e.Version(Br.since):(n=Br.since)!==null&&n!==void 0?n:Pr,Le=Br.error||br&&Er.compareTo(br)<=0,Xe=!Pr||Er.compareTo(Pr)>=0;return Le?ge(dr,br,Ce,Br.message):Xe?Fe(dr,br,Ce,Br.message):e.noop}function ur(dr,Br){return function(){return dr(),Br.apply(this,arguments)}}function Ir(dr,Br){var Tr=cr(l(dr),Br);return ur(Tr,dr)}L.deprecate=Ir})(O=e.Debug||(e.Debug={}))})(Pe||(Pe={}));var Pe;(function(e){var a=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,O=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,L=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,W=/^(0|[1-9]\d*)$/,N=function(){function k(I,ne,ee,A,f){if(ne===void 0&&(ne=0),ee===void 0&&(ee=0),A===void 0&&(A=""),f===void 0&&(f=""),typeof I=="string"){var P=e.Debug.checkDefined(Q(I),"Invalid version");I=P.major,ne=P.minor,ee=P.patch,A=P.prerelease,f=P.build}e.Debug.assert(I>=0,"Invalid argument: major"),e.Debug.assert(ne>=0,"Invalid argument: minor"),e.Debug.assert(ee>=0,"Invalid argument: patch"),e.Debug.assert(!A||O.test(A),"Invalid argument: prerelease"),e.Debug.assert(!f||L.test(f),"Invalid argument: build"),this.major=I,this.minor=ne,this.patch=ee,this.prerelease=A?A.split("."):e.emptyArray,this.build=f?f.split("."):e.emptyArray}return k.tryParse=function(I){var ne=Q(I);if(!!ne){var ee=ne.major,A=ne.minor,f=ne.patch,P=ne.prerelease,D=ne.build;return new k(ee,A,f,P,D)}},k.prototype.compareTo=function(I){return this===I?0:I===void 0?1:e.compareValues(this.major,I.major)||e.compareValues(this.minor,I.minor)||e.compareValues(this.patch,I.patch)||pe(this.prerelease,I.prerelease)},k.prototype.increment=function(I){switch(I){case"major":return new k(this.major+1,0,0);case"minor":return new k(this.major,this.minor+1,0);case"patch":return new k(this.major,this.minor,this.patch+1);default:return e.Debug.assertNever(I)}},k.prototype.toString=function(){var I="".concat(this.major,".").concat(this.minor,".").concat(this.patch);return e.some(this.prerelease)&&(I+="-".concat(this.prerelease.join("."))),e.some(this.build)&&(I+="+".concat(this.build.join("."))),I},k.zero=new k(0,0,0),k}();e.Version=N;function Q(k){var I=a.exec(k);if(!!I){var ne=I[1],ee=I[2],A=ee===void 0?"0":ee,f=I[3],P=f===void 0?"0":f,D=I[4],l=D===void 0?"":D,_=I[5],J=_===void 0?"":_;if(!(l&&!O.test(l))&&!(J&&!L.test(J)))return{major:parseInt(ne,10),minor:parseInt(A,10),patch:parseInt(P,10),prerelease:l,build:J}}}function pe(k,I){if(k===I)return 0;if(k.length===0)return I.length===0?0:1;if(I.length===0)return-1;for(var ne=Math.min(k.length,I.length),ee=0;ee<ne;ee++){var A=k[ee],f=I[ee];if(A!==f){var P=W.test(A),D=W.test(f);if(P||D){if(P!==D)return P?-1:1;var l=e.compareValues(+A,+f);if(l)return l}else{var l=e.compareStringsCaseSensitive(A,f);if(l)return l}}}return e.compareValues(k.length,I.length)}var F=function(){function k(I){this._alternatives=I?e.Debug.checkDefined(C(I),"Invalid range spec."):e.emptyArray}return k.tryParse=function(I){var ne=C(I);if(ne){var ee=new k("");return ee._alternatives=ne,ee}},k.prototype.test=function(I){return typeof I=="string"&&(I=new N(I)),M(I,this._alternatives)},k.prototype.toString=function(){return _e(this._alternatives)},k}();e.VersionRange=F;var g=/\|\|/g,S=/\s+/g,H=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,se=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,p=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function C(k){for(var I=[],ne=0,ee=e.trimString(k).split(g);ne<ee.length;ne++){var A=ee[ne];if(!!A){var f=[];A=e.trimString(A);var P=se.exec(A);if(P){if(!E(P[1],P[2],f))return}else for(var D=0,l=A.split(S);D<l.length;D++){var _=l[D],J=p.exec(e.trimString(_));if(!J||!ue(J[1],J[2],f))return}I.push(f)}}return I}function G(k){var I=H.exec(k);if(!!I){var ne=I[1],ee=I[2],A=ee===void 0?"*":ee,f=I[3],P=f===void 0?"*":f,D=I[4],l=I[5],_=new N(B(ne)?0:parseInt(ne,10),B(ne)||B(A)?0:parseInt(A,10),B(ne)||B(A)||B(P)?0:parseInt(P,10),D,l);return{version:_,major:ne,minor:A,patch:P}}}function E(k,I,ne){var ee=G(k);if(!ee)return!1;var A=G(I);return A?(B(ee.major)||ne.push(re(">=",ee.version)),B(A.major)||ne.push(B(A.minor)?re("<",A.version.increment("major")):B(A.patch)?re("<",A.version.increment("minor")):re("<=",A.version)),!0):!1}function ue(k,I,ne){var ee=G(I);if(!ee)return!1;var A=ee.version,f=ee.major,P=ee.minor,D=ee.patch;if(B(f))(k==="<"||k===">")&&ne.push(re("<",N.zero));else switch(k){case"~":ne.push(re(">=",A)),ne.push(re("<",A.increment(B(P)?"major":"minor")));break;case"^":ne.push(re(">=",A)),ne.push(re("<",A.increment(A.major>0||B(P)?"major":A.minor>0||B(D)?"minor":"patch")));break;case"<":case">=":ne.push(re(k,A));break;case"<=":case">":ne.push(B(P)?re(k==="<="?"<":">=",A.increment("major")):B(D)?re(k==="<="?"<":">=",A.increment("minor")):re(k,A));break;case"=":case void 0:B(P)||B(D)?(ne.push(re(">=",A)),ne.push(re("<",A.increment(B(P)?"major":"minor")))):ne.push(re("=",A));break;default:return!1}return!0}function B(k){return k==="*"||k==="x"||k==="X"}function re(k,I){return{operator:k,operand:I}}function M(k,I){if(I.length===0)return!0;for(var ne=0,ee=I;ne<ee.length;ne++){var A=ee[ne];if(x(k,A))return!0}return!1}function x(k,I){for(var ne=0,ee=I;ne<ee.length;ne++){var A=ee[ne];if(!ie(k,A.operator,A.operand))return!1}return!0}function ie(k,I,ne){var ee=k.compareTo(ne);switch(I){case"<":return ee<0;case"<=":return ee<=0;case">":return ee>0;case">=":return ee>=0;case"=":return ee===0;default:return e.Debug.assertNever(I)}}function _e(k){return e.map(k,Y).join(" || ")||"*"}function Y(k){return e.map(k,Z).join(" ")}function Z(k){return"".concat(k.operator).concat(k.operand)}})(Pe||(Pe={}));var Pe;(function(e){function a(pe,F){return typeof pe=="object"&&typeof pe.timeOrigin=="number"&&typeof pe.mark=="function"&&typeof pe.measure=="function"&&typeof pe.now=="function"&&typeof F=="function"}function O(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&a(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function L(){}var W=O()||void 0,N=W==null?void 0:W.performance;function Q(){return W}e.tryGetNativePerformanceHooks=Q,e.timestamp=N?function(){return N.now()}:Date.now?Date.now:function(){return+new Date}})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L,W;function N(M,x,ie,_e){return M?Q(x,ie,_e):O.nullTimer}O.createTimerIf=N;function Q(M,x,ie){var _e=0;return{enter:Y,exit:Z};function Y(){++_e===1&&se(x)}function Z(){--_e===0?(se(ie),p(M,x,ie)):_e<0&&e.Debug.fail("enter/exit count does not match.")}}O.createTimer=Q,O.nullTimer={enter:e.noop,exit:e.noop};var pe=!1,F=e.timestamp(),g=new e.Map,S=new e.Map,H=new e.Map;function se(M){var x;if(pe){var ie=(x=S.get(M))!==null&&x!==void 0?x:0;S.set(M,ie+1),g.set(M,e.timestamp()),W==null||W.mark(M)}}O.mark=se;function p(M,x,ie){var _e,Y;if(pe){var Z=(_e=ie!==void 0?g.get(ie):void 0)!==null&&_e!==void 0?_e:e.timestamp(),k=(Y=x!==void 0?g.get(x):void 0)!==null&&Y!==void 0?Y:F,I=H.get(M)||0;H.set(M,I+(Z-k)),W==null||W.measure(M,x,ie)}}O.measure=p;function C(M){return S.get(M)||0}O.getCount=C;function G(M){return H.get(M)||0}O.getDuration=G;function E(M){H.forEach(function(x,ie){return M(ie,x)})}O.forEachMeasure=E;function ue(){return pe}O.isEnabled=ue;function B(M){var x;return M===void 0&&(M=e.sys),pe||(pe=!0,L||(L=e.tryGetNativePerformanceHooks()),L&&(F=L.performance.timeOrigin,(L.shouldWriteNativeEvents||((x=M==null?void 0:M.cpuProfilingEnabled)===null||x===void 0?void 0:x.call(M))||(M==null?void 0:M.debugMode))&&(W=L.performance))),!0}O.enable=B;function re(){pe&&(g.clear(),S.clear(),H.clear(),W=void 0,pe=!1)}O.disable=re})(a=e.performance||(e.performance={}))})(Pe||(Pe={}));var Pe;(function(e){var a,O={logEvent:e.noop,logErrEvent:e.noop,logPerfEvent:e.noop,logInfoEvent:e.noop,logStartCommand:e.noop,logStopCommand:e.noop,logStartUpdateProgram:e.noop,logStopUpdateProgram:e.noop,logStartUpdateGraph:e.noop,logStopUpdateGraph:e.noop,logStartResolveModule:e.noop,logStopResolveModule:e.noop,logStartParseSourceFile:e.noop,logStopParseSourceFile:e.noop,logStartReadFile:e.noop,logStopReadFile:e.noop,logStartBindFile:e.noop,logStopBindFile:e.noop,logStartScheduledOperation:e.noop,logStopScheduledOperation:e.noop},L;try{var W=(a=yl.env.TS_ETW_MODULE_PATH)!==null&&a!==void 0?a:"./node_modules/@microsoft/typescript-etw";L=void 0}catch{L=void 0}e.perfLogger=L&&L.logEvent?L:O})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L,W=0,N=0,Q,pe=[],F,g=[];function S(Z,k,I){if(e.Debug.assert(!e.tracing,"Tracing already started"),L===void 0)try{L=OT()}catch(P){throw new Error(`tracing requires having fs
(original error: `.concat(P.message||P,")"))}Q=Z,pe.length=0,F===void 0&&(F=e.combinePaths(k,"legend.json")),L.existsSync(k)||L.mkdirSync(k,{recursive:!0});var ne=Q==="build"?".".concat(yl.pid,"-").concat(++W):Q==="server"?".".concat(yl.pid):"",ee=e.combinePaths(k,"trace".concat(ne,".json")),A=e.combinePaths(k,"types".concat(ne,".json"));g.push({configFilePath:I,tracePath:ee,typesPath:A}),N=L.openSync(ee,"w"),e.tracing=O;var f={cat:"__metadata",ph:"M",ts:1e3*e.timestamp(),pid:1,tid:1};L.writeSync(N,`[
`+[Ve({name:"process_name",args:{name:"tsc"}},f),Ve({name:"thread_name",args:{name:"Main"}},f),Ve(Ve({name:"TracingStartedInBrowser"},f),{cat:"disabled-by-default-devtools.timeline"})].map(function(P){return JSON.stringify(P)}).join(`,
`))}O.startTracing=S;function H(){e.Debug.assert(e.tracing,"Tracing is not in progress"),e.Debug.assert(!!pe.length==(Q!=="server")),L.writeSync(N,`
]
`),L.closeSync(N),e.tracing=void 0,pe.length?_e(pe):g[g.length-1].typesPath=void 0}O.stopTracing=H;function se(Z){Q!=="server"&&pe.push(Z)}O.recordType=se;var p;(function(Z){Z.Parse="parse",Z.Program="program",Z.Bind="bind",Z.Check="check",Z.CheckTypes="checkTypes",Z.Emit="emit",Z.Session="session"})(p=O.Phase||(O.Phase={}));function C(Z,k,I){x("I",Z,k,I,'"s":"g"')}O.instant=C;var G=[];function E(Z,k,I,ne){ne===void 0&&(ne=!1),ne&&x("B",Z,k,I),G.push({phase:Z,name:k,args:I,time:1e3*e.timestamp(),separateBeginAndEnd:ne})}O.push=E;function ue(){e.Debug.assert(G.length>0),M(G.length-1,1e3*e.timestamp()),G.length--}O.pop=ue;function B(){for(var Z=1e3*e.timestamp(),k=G.length-1;k>=0;k--)M(k,Z);G.length=0}O.popAll=B;var re=1e3*10;function M(Z,k){var I=G[Z],ne=I.phase,ee=I.name,A=I.args,f=I.time,P=I.separateBeginAndEnd;P?x("E",ne,ee,A,void 0,k):re-f%re<=k-f&&x("X",ne,ee,A,'"dur":'.concat(k-f),f)}function x(Z,k,I,ne,ee,A){A===void 0&&(A=1e3*e.timestamp()),!(Q==="server"&&k==="checkTypes")&&(e.performance.mark("beginTracing"),L.writeSync(N,`,
{"pid":1,"tid":1,"ph":"`.concat(Z,'","cat":"').concat(k,'","ts":').concat(A,',"name":"').concat(I,'"')),ee&&L.writeSync(N,",".concat(ee)),ne&&L.writeSync(N,',"args":'.concat(JSON.stringify(ne))),L.writeSync(N,"}"),e.performance.mark("endTracing"),e.performance.measure("Tracing","beginTracing","endTracing"))}function ie(Z){var k=e.getSourceFileOfNode(Z);return k?{path:k.path,start:I(e.getLineAndCharacterOfPosition(k,Z.pos)),end:I(e.getLineAndCharacterOfPosition(k,Z.end))}:void 0;function I(ne){return{line:ne.line+1,character:ne.character+1}}}function _e(Z){var k,I,ne,ee,A,f,P,D,l,_,J,w,j,U,z,y,oe,ve,ce,m,de,ae;e.performance.mark("beginDumpTypes");var V=g[g.length-1].typesPath,le=L.openSync(V,"w"),ke=new e.Map;L.writeSync(le,"[");for(var Ue=Z.length,He=0;He<Ue;He++){var ar=Z[He],gr=ar.objectFlags,me=(k=ar.aliasSymbol)!==null&&k!==void 0?k:ar.symbol,Ge=void 0;if(gr&16|ar.flags&2944)try{Ge=(I=ar.checker)===null||I===void 0?void 0:I.typeToString(ar)}catch{Ge=void 0}var er={};if(ar.flags&8388608){var he=ar;er={indexedAccessObjectType:(ne=he.objectType)===null||ne===void 0?void 0:ne.id,indexedAccessIndexType:(ee=he.indexType)===null||ee===void 0?void 0:ee.id}}var we={};if(gr&4){var ye=ar;we={instantiatedType:(A=ye.target)===null||A===void 0?void 0:A.id,typeArguments:(f=ye.resolvedTypeArguments)===null||f===void 0?void 0:f.map(function(br){return br.id}),referenceLocation:ie(ye.node)}}var Se={};if(ar.flags&16777216){var ge=ar;Se={conditionalCheckType:(P=ge.checkType)===null||P===void 0?void 0:P.id,conditionalExtendsType:(D=ge.extendsType)===null||D===void 0?void 0:D.id,conditionalTrueType:(_=(l=ge.resolvedTrueType)===null||l===void 0?void 0:l.id)!==null&&_!==void 0?_:-1,conditionalFalseType:(w=(J=ge.resolvedFalseType)===null||J===void 0?void 0:J.id)!==null&&w!==void 0?w:-1}}var Fe={};if(ar.flags&33554432){var cr=ar;Fe={substitutionBaseType:(j=cr.baseType)===null||j===void 0?void 0:j.id,substituteType:(U=cr.substitute)===null||U===void 0?void 0:U.id}}var ur={};if(gr&1024){var Ir=ar;ur={reverseMappedSourceType:(z=Ir.source)===null||z===void 0?void 0:z.id,reverseMappedMappedType:(y=Ir.mappedType)===null||y===void 0?void 0:y.id,reverseMappedConstraintType:(oe=Ir.constraintType)===null||oe===void 0?void 0:oe.id}}var dr={};if(gr&256){var Br=ar;dr={evolvingArrayElementType:Br.elementType.id,evolvingArrayFinalType:(ve=Br.finalArrayType)===null||ve===void 0?void 0:ve.id}}var Tr=void 0,n=ar.checker.getRecursionIdentity(ar);n&&(Tr=ke.get(n),Tr||(Tr=ke.size,ke.set(n,Tr)));var Er=Ve(Ve(Ve(Ve(Ve(Ve(Ve({id:ar.id,intrinsicName:ar.intrinsicName,symbolName:(me==null?void 0:me.escapedName)&&e.unescapeLeadingUnderscores(me.escapedName),recursionId:Tr,isTuple:gr&8?!0:void 0,unionTypes:ar.flags&1048576?(ce=ar.types)===null||ce===void 0?void 0:ce.map(function(br){return br.id}):void 0,intersectionTypes:ar.flags&2097152?ar.types.map(function(br){return br.id}):void 0,aliasTypeArguments:(m=ar.aliasTypeArguments)===null||m===void 0?void 0:m.map(function(br){return br.id}),keyofType:ar.flags&4194304?(de=ar.type)===null||de===void 0?void 0:de.id:void 0},er),we),Se),Fe),ur),dr),{destructuringPattern:ie(ar.pattern),firstDeclaration:ie((ae=me==null?void 0:me.declarations)===null||ae===void 0?void 0:ae[0]),flags:e.Debug.formatTypeFlags(ar.flags).split("|"),display:Ge});L.writeSync(le,JSON.stringify(Er)),He<Ue-1&&L.writeSync(le,`,
`)}L.writeSync(le,`]
`),L.closeSync(le),e.performance.mark("endDumpTypes"),e.performance.measure("Dump types","beginDumpTypes","endDumpTypes")}function Y(){!F||L.writeFileSync(F,JSON.stringify(g))}O.dumpLegend=Y})(a||(a={})),e.startTracing=a.startTracing,e.dumpTracingLegend=a.dumpLegend})(Pe||(Pe={}));var Pe;(function(e){var a;(function(n){n[n.Unknown=0]="Unknown",n[n.EndOfFileToken=1]="EndOfFileToken",n[n.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",n[n.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",n[n.NewLineTrivia=4]="NewLineTrivia",n[n.WhitespaceTrivia=5]="WhitespaceTrivia",n[n.ShebangTrivia=6]="ShebangTrivia",n[n.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",n[n.NumericLiteral=8]="NumericLiteral",n[n.BigIntLiteral=9]="BigIntLiteral",n[n.StringLiteral=10]="StringLiteral",n[n.JsxText=11]="JsxText",n[n.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",n[n.RegularExpressionLiteral=13]="RegularExpressionLiteral",n[n.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",n[n.TemplateHead=15]="TemplateHead",n[n.TemplateMiddle=16]="TemplateMiddle",n[n.TemplateTail=17]="TemplateTail",n[n.OpenBraceToken=18]="OpenBraceToken",n[n.CloseBraceToken=19]="CloseBraceToken",n[n.OpenParenToken=20]="OpenParenToken",n[n.CloseParenToken=21]="CloseParenToken",n[n.OpenBracketToken=22]="OpenBracketToken",n[n.CloseBracketToken=23]="CloseBracketToken",n[n.DotToken=24]="DotToken",n[n.DotDotDotToken=25]="DotDotDotToken",n[n.SemicolonToken=26]="SemicolonToken",n[n.CommaToken=27]="CommaToken",n[n.QuestionDotToken=28]="QuestionDotToken",n[n.LessThanToken=29]="LessThanToken",n[n.LessThanSlashToken=30]="LessThanSlashToken",n[n.GreaterThanToken=31]="GreaterThanToken",n[n.LessThanEqualsToken=32]="LessThanEqualsToken",n[n.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",n[n.EqualsEqualsToken=34]="EqualsEqualsToken",n[n.ExclamationEqualsToken=35]="ExclamationEqualsToken",n[n.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",n[n.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",n[n.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",n[n.PlusToken=39]="PlusToken",n[n.MinusToken=40]="MinusToken",n[n.AsteriskToken=41]="AsteriskToken",n[n.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",n[n.SlashToken=43]="SlashToken",n[n.PercentToken=44]="PercentToken",n[n.PlusPlusToken=45]="PlusPlusToken",n[n.MinusMinusToken=46]="MinusMinusToken",n[n.LessThanLessThanToken=47]="LessThanLessThanToken",n[n.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",n[n.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",n[n.AmpersandToken=50]="AmpersandToken",n[n.BarToken=51]="BarToken",n[n.CaretToken=52]="CaretToken",n[n.ExclamationToken=53]="ExclamationToken",n[n.TildeToken=54]="TildeToken",n[n.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",n[n.BarBarToken=56]="BarBarToken",n[n.QuestionToken=57]="QuestionToken",n[n.ColonToken=58]="ColonToken",n[n.AtToken=59]="AtToken",n[n.QuestionQuestionToken=60]="QuestionQuestionToken",n[n.BacktickToken=61]="BacktickToken",n[n.HashToken=62]="HashToken",n[n.EqualsToken=63]="EqualsToken",n[n.PlusEqualsToken=64]="PlusEqualsToken",n[n.MinusEqualsToken=65]="MinusEqualsToken",n[n.AsteriskEqualsToken=66]="AsteriskEqualsToken",n[n.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",n[n.SlashEqualsToken=68]="SlashEqualsToken",n[n.PercentEqualsToken=69]="PercentEqualsToken",n[n.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",n[n.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",n[n.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",n[n.AmpersandEqualsToken=73]="AmpersandEqualsToken",n[n.BarEqualsToken=74]="BarEqualsToken",n[n.BarBarEqualsToken=75]="BarBarEqualsToken",n[n.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",n[n.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",n[n.CaretEqualsToken=78]="CaretEqualsToken",n[n.Identifier=79]="Identifier",n[n.PrivateIdentifier=80]="PrivateIdentifier",n[n.BreakKeyword=81]="BreakKeyword",n[n.CaseKeyword=82]="CaseKeyword",n[n.CatchKeyword=83]="CatchKeyword",n[n.ClassKeyword=84]="ClassKeyword",n[n.ConstKeyword=85]="ConstKeyword",n[n.ContinueKeyword=86]="ContinueKeyword",n[n.DebuggerKeyword=87]="DebuggerKeyword",n[n.DefaultKeyword=88]="DefaultKeyword",n[n.DeleteKeyword=89]="DeleteKeyword",n[n.DoKeyword=90]="DoKeyword",n[n.ElseKeyword=91]="ElseKeyword",n[n.EnumKeyword=92]="EnumKeyword",n[n.ExportKeyword=93]="ExportKeyword",n[n.ExtendsKeyword=94]="ExtendsKeyword",n[n.FalseKeyword=95]="FalseKeyword",n[n.FinallyKeyword=96]="FinallyKeyword",n[n.ForKeyword=97]="ForKeyword",n[n.FunctionKeyword=98]="FunctionKeyword",n[n.IfKeyword=99]="IfKeyword",n[n.ImportKeyword=100]="ImportKeyword",n[n.InKeyword=101]="InKeyword",n[n.InstanceOfKeyword=102]="InstanceOfKeyword",n[n.NewKeyword=103]="NewKeyword",n[n.NullKeyword=104]="NullKeyword",n[n.ReturnKeyword=105]="ReturnKeyword",n[n.SuperKeyword=106]="SuperKeyword",n[n.SwitchKeyword=107]="SwitchKeyword",n[n.ThisKeyword=108]="ThisKeyword",n[n.ThrowKeyword=109]="ThrowKeyword",n[n.TrueKeyword=110]="TrueKeyword",n[n.TryKeyword=111]="TryKeyword",n[n.TypeOfKeyword=112]="TypeOfKeyword",n[n.VarKeyword=113]="VarKeyword",n[n.VoidKeyword=114]="VoidKeyword",n[n.WhileKeyword=115]="WhileKeyword",n[n.WithKeyword=116]="WithKeyword",n[n.ImplementsKeyword=117]="ImplementsKeyword",n[n.InterfaceKeyword=118]="InterfaceKeyword",n[n.LetKeyword=119]="LetKeyword",n[n.PackageKeyword=120]="PackageKeyword",n[n.PrivateKeyword=121]="PrivateKeyword",n[n.ProtectedKeyword=122]="ProtectedKeyword",n[n.PublicKeyword=123]="PublicKeyword",n[n.StaticKeyword=124]="StaticKeyword",n[n.YieldKeyword=125]="YieldKeyword",n[n.AbstractKeyword=126]="AbstractKeyword",n[n.AsKeyword=127]="AsKeyword",n[n.AssertsKeyword=128]="AssertsKeyword",n[n.AssertKeyword=129]="AssertKeyword",n[n.AnyKeyword=130]="AnyKeyword",n[n.AsyncKeyword=131]="AsyncKeyword",n[n.AwaitKeyword=132]="AwaitKeyword",n[n.BooleanKeyword=133]="BooleanKeyword",n[n.ConstructorKeyword=134]="ConstructorKeyword",n[n.DeclareKeyword=135]="DeclareKeyword",n[n.GetKeyword=136]="GetKeyword",n[n.InferKeyword=137]="InferKeyword",n[n.IntrinsicKeyword=138]="IntrinsicKeyword",n[n.IsKeyword=139]="IsKeyword",n[n.KeyOfKeyword=140]="KeyOfKeyword",n[n.ModuleKeyword=141]="ModuleKeyword",n[n.NamespaceKeyword=142]="NamespaceKeyword",n[n.NeverKeyword=143]="NeverKeyword",n[n.ReadonlyKeyword=144]="ReadonlyKeyword",n[n.RequireKeyword=145]="RequireKeyword",n[n.NumberKeyword=146]="NumberKeyword",n[n.ObjectKeyword=147]="ObjectKeyword",n[n.SetKeyword=148]="SetKeyword",n[n.StringKeyword=149]="StringKeyword",n[n.SymbolKeyword=150]="SymbolKeyword",n[n.TypeKeyword=151]="TypeKeyword",n[n.UndefinedKeyword=152]="UndefinedKeyword",n[n.UniqueKeyword=153]="UniqueKeyword",n[n.UnknownKeyword=154]="UnknownKeyword",n[n.FromKeyword=155]="FromKeyword",n[n.GlobalKeyword=156]="GlobalKeyword",n[n.BigIntKeyword=157]="BigIntKeyword",n[n.OverrideKeyword=158]="OverrideKeyword",n[n.OfKeyword=159]="OfKeyword",n[n.QualifiedName=160]="QualifiedName",n[n.ComputedPropertyName=161]="ComputedPropertyName",n[n.TypeParameter=162]="TypeParameter",n[n.Parameter=163]="Parameter",n[n.Decorator=164]="Decorator",n[n.PropertySignature=165]="PropertySignature",n[n.PropertyDeclaration=166]="PropertyDeclaration",n[n.MethodSignature=167]="MethodSignature",n[n.MethodDeclaration=168]="MethodDeclaration",n[n.ClassStaticBlockDeclaration=169]="ClassStaticBlockDeclaration",n[n.Constructor=170]="Constructor",n[n.GetAccessor=171]="GetAccessor",n[n.SetAccessor=172]="SetAccessor",n[n.CallSignature=173]="CallSignature",n[n.ConstructSignature=174]="ConstructSignature",n[n.IndexSignature=175]="IndexSignature",n[n.TypePredicate=176]="TypePredicate",n[n.TypeReference=177]="TypeReference",n[n.FunctionType=178]="FunctionType",n[n.ConstructorType=179]="ConstructorType",n[n.TypeQuery=180]="TypeQuery",n[n.TypeLiteral=181]="TypeLiteral",n[n.ArrayType=182]="ArrayType",n[n.TupleType=183]="TupleType",n[n.OptionalType=184]="OptionalType",n[n.RestType=185]="RestType",n[n.UnionType=186]="UnionType",n[n.IntersectionType=187]="IntersectionType",n[n.ConditionalType=188]="ConditionalType",n[n.InferType=189]="InferType",n[n.ParenthesizedType=190]="ParenthesizedType",n[n.ThisType=191]="ThisType",n[n.TypeOperator=192]="TypeOperator",n[n.IndexedAccessType=193]="IndexedAccessType",n[n.MappedType=194]="MappedType",n[n.LiteralType=195]="LiteralType",n[n.NamedTupleMember=196]="NamedTupleMember",n[n.TemplateLiteralType=197]="TemplateLiteralType",n[n.TemplateLiteralTypeSpan=198]="TemplateLiteralTypeSpan",n[n.ImportType=199]="ImportType",n[n.ObjectBindingPattern=200]="ObjectBindingPattern",n[n.ArrayBindingPattern=201]="ArrayBindingPattern",n[n.BindingElement=202]="BindingElement",n[n.ArrayLiteralExpression=203]="ArrayLiteralExpression",n[n.ObjectLiteralExpression=204]="ObjectLiteralExpression",n[n.PropertyAccessExpression=205]="PropertyAccessExpression",n[n.ElementAccessExpression=206]="ElementAccessExpression",n[n.CallExpression=207]="CallExpression",n[n.NewExpression=208]="NewExpression",n[n.TaggedTemplateExpression=209]="TaggedTemplateExpression",n[n.TypeAssertionExpression=210]="TypeAssertionExpression",n[n.ParenthesizedExpression=211]="ParenthesizedExpression",n[n.FunctionExpression=212]="FunctionExpression",n[n.ArrowFunction=213]="ArrowFunction",n[n.DeleteExpression=214]="DeleteExpression",n[n.TypeOfExpression=215]="TypeOfExpression",n[n.VoidExpression=216]="VoidExpression",n[n.AwaitExpression=217]="AwaitExpression",n[n.PrefixUnaryExpression=218]="PrefixUnaryExpression",n[n.PostfixUnaryExpression=219]="PostfixUnaryExpression",n[n.BinaryExpression=220]="BinaryExpression",n[n.ConditionalExpression=221]="ConditionalExpression",n[n.TemplateExpression=222]="TemplateExpression",n[n.YieldExpression=223]="YieldExpression",n[n.SpreadElement=224]="SpreadElement",n[n.ClassExpression=225]="ClassExpression",n[n.OmittedExpression=226]="OmittedExpression",n[n.ExpressionWithTypeArguments=227]="ExpressionWithTypeArguments",n[n.AsExpression=228]="AsExpression",n[n.NonNullExpression=229]="NonNullExpression",n[n.MetaProperty=230]="MetaProperty",n[n.SyntheticExpression=231]="SyntheticExpression",n[n.TemplateSpan=232]="TemplateSpan",n[n.SemicolonClassElement=233]="SemicolonClassElement",n[n.Block=234]="Block",n[n.EmptyStatement=235]="EmptyStatement",n[n.VariableStatement=236]="VariableStatement",n[n.ExpressionStatement=237]="ExpressionStatement",n[n.IfStatement=238]="IfStatement",n[n.DoStatement=239]="DoStatement",n[n.WhileStatement=240]="WhileStatement",n[n.ForStatement=241]="ForStatement",n[n.ForInStatement=242]="ForInStatement",n[n.ForOfStatement=243]="ForOfStatement",n[n.ContinueStatement=244]="ContinueStatement",n[n.BreakStatement=245]="BreakStatement",n[n.ReturnStatement=246]="ReturnStatement",n[n.WithStatement=247]="WithStatement",n[n.SwitchStatement=248]="SwitchStatement",n[n.LabeledStatement=249]="LabeledStatement",n[n.ThrowStatement=250]="ThrowStatement",n[n.TryStatement=251]="TryStatement",n[n.DebuggerStatement=252]="DebuggerStatement",n[n.VariableDeclaration=253]="VariableDeclaration",n[n.VariableDeclarationList=254]="VariableDeclarationList",n[n.FunctionDeclaration=255]="FunctionDeclaration",n[n.ClassDeclaration=256]="ClassDeclaration",n[n.InterfaceDeclaration=257]="InterfaceDeclaration",n[n.TypeAliasDeclaration=258]="TypeAliasDeclaration",n[n.EnumDeclaration=259]="EnumDeclaration",n[n.ModuleDeclaration=260]="ModuleDeclaration",n[n.ModuleBlock=261]="ModuleBlock",n[n.CaseBlock=262]="CaseBlock",n[n.NamespaceExportDeclaration=263]="NamespaceExportDeclaration",n[n.ImportEqualsDeclaration=264]="ImportEqualsDeclaration",n[n.ImportDeclaration=265]="ImportDeclaration",n[n.ImportClause=266]="ImportClause",n[n.NamespaceImport=267]="NamespaceImport",n[n.NamedImports=268]="NamedImports",n[n.ImportSpecifier=269]="ImportSpecifier",n[n.ExportAssignment=270]="ExportAssignment",n[n.ExportDeclaration=271]="ExportDeclaration",n[n.NamedExports=272]="NamedExports",n[n.NamespaceExport=273]="NamespaceExport",n[n.ExportSpecifier=274]="ExportSpecifier",n[n.MissingDeclaration=275]="MissingDeclaration",n[n.ExternalModuleReference=276]="ExternalModuleReference",n[n.JsxElement=277]="JsxElement",n[n.JsxSelfClosingElement=278]="JsxSelfClosingElement",n[n.JsxOpeningElement=279]="JsxOpeningElement",n[n.JsxClosingElement=280]="JsxClosingElement",n[n.JsxFragment=281]="JsxFragment",n[n.JsxOpeningFragment=282]="JsxOpeningFragment",n[n.JsxClosingFragment=283]="JsxClosingFragment",n[n.JsxAttribute=284]="JsxAttribute",n[n.JsxAttributes=285]="JsxAttributes",n[n.JsxSpreadAttribute=286]="JsxSpreadAttribute",n[n.JsxExpression=287]="JsxExpression",n[n.CaseClause=288]="CaseClause",n[n.DefaultClause=289]="DefaultClause",n[n.HeritageClause=290]="HeritageClause",n[n.CatchClause=291]="CatchClause",n[n.AssertClause=292]="AssertClause",n[n.AssertEntry=293]="AssertEntry",n[n.PropertyAssignment=294]="PropertyAssignment",n[n.ShorthandPropertyAssignment=295]="ShorthandPropertyAssignment",n[n.SpreadAssignment=296]="SpreadAssignment",n[n.EnumMember=297]="EnumMember",n[n.UnparsedPrologue=298]="UnparsedPrologue",n[n.UnparsedPrepend=299]="UnparsedPrepend",n[n.UnparsedText=300]="UnparsedText",n[n.UnparsedInternalText=301]="UnparsedInternalText",n[n.UnparsedSyntheticReference=302]="UnparsedSyntheticReference",n[n.SourceFile=303]="SourceFile",n[n.Bundle=304]="Bundle",n[n.UnparsedSource=305]="UnparsedSource",n[n.InputFiles=306]="InputFiles",n[n.JSDocTypeExpression=307]="JSDocTypeExpression",n[n.JSDocNameReference=308]="JSDocNameReference",n[n.JSDocMemberName=309]="JSDocMemberName",n[n.JSDocAllType=310]="JSDocAllType",n[n.JSDocUnknownType=311]="JSDocUnknownType",n[n.JSDocNullableType=312]="JSDocNullableType",n[n.JSDocNonNullableType=313]="JSDocNonNullableType",n[n.JSDocOptionalType=314]="JSDocOptionalType",n[n.JSDocFunctionType=315]="JSDocFunctionType",n[n.JSDocVariadicType=316]="JSDocVariadicType",n[n.JSDocNamepathType=317]="JSDocNamepathType",n[n.JSDocComment=318]="JSDocComment",n[n.JSDocText=319]="JSDocText",n[n.JSDocTypeLiteral=320]="JSDocTypeLiteral",n[n.JSDocSignature=321]="JSDocSignature",n[n.JSDocLink=322]="JSDocLink",n[n.JSDocLinkCode=323]="JSDocLinkCode",n[n.JSDocLinkPlain=324]="JSDocLinkPlain",n[n.JSDocTag=325]="JSDocTag",n[n.JSDocAugmentsTag=326]="JSDocAugmentsTag",n[n.JSDocImplementsTag=327]="JSDocImplementsTag",n[n.JSDocAuthorTag=328]="JSDocAuthorTag",n[n.JSDocDeprecatedTag=329]="JSDocDeprecatedTag",n[n.JSDocClassTag=330]="JSDocClassTag",n[n.JSDocPublicTag=331]="JSDocPublicTag",n[n.JSDocPrivateTag=332]="JSDocPrivateTag",n[n.JSDocProtectedTag=333]="JSDocProtectedTag",n[n.JSDocReadonlyTag=334]="JSDocReadonlyTag",n[n.JSDocOverrideTag=335]="JSDocOverrideTag",n[n.JSDocCallbackTag=336]="JSDocCallbackTag",n[n.JSDocEnumTag=337]="JSDocEnumTag",n[n.JSDocParameterTag=338]="JSDocParameterTag",n[n.JSDocReturnTag=339]="JSDocReturnTag",n[n.JSDocThisTag=340]="JSDocThisTag",n[n.JSDocTypeTag=341]="JSDocTypeTag",n[n.JSDocTemplateTag=342]="JSDocTemplateTag",n[n.JSDocTypedefTag=343]="JSDocTypedefTag",n[n.JSDocSeeTag=344]="JSDocSeeTag",n[n.JSDocPropertyTag=345]="JSDocPropertyTag",n[n.SyntaxList=346]="SyntaxList",n[n.NotEmittedStatement=347]="NotEmittedStatement",n[n.PartiallyEmittedExpression=348]="PartiallyEmittedExpression",n[n.CommaListExpression=349]="CommaListExpression",n[n.MergeDeclarationMarker=350]="MergeDeclarationMarker",n[n.EndOfDeclarationMarker=351]="EndOfDeclarationMarker",n[n.SyntheticReferenceExpression=352]="SyntheticReferenceExpression",n[n.Count=353]="Count",n[n.FirstAssignment=63]="FirstAssignment",n[n.LastAssignment=78]="LastAssignment",n[n.FirstCompoundAssignment=64]="FirstCompoundAssignment",n[n.LastCompoundAssignment=78]="LastCompoundAssignment",n[n.FirstReservedWord=81]="FirstReservedWord",n[n.LastReservedWord=116]="LastReservedWord",n[n.FirstKeyword=81]="FirstKeyword",n[n.LastKeyword=159]="LastKeyword",n[n.FirstFutureReservedWord=117]="FirstFutureReservedWord",n[n.LastFutureReservedWord=125]="LastFutureReservedWord",n[n.FirstTypeNode=176]="FirstTypeNode",n[n.LastTypeNode=199]="LastTypeNode",n[n.FirstPunctuation=18]="FirstPunctuation",n[n.LastPunctuation=78]="LastPunctuation",n[n.FirstToken=0]="FirstToken",n[n.LastToken=159]="LastToken",n[n.FirstTriviaToken=2]="FirstTriviaToken",n[n.LastTriviaToken=7]="LastTriviaToken",n[n.FirstLiteralToken=8]="FirstLiteralToken",n[n.LastLiteralToken=14]="LastLiteralToken",n[n.FirstTemplateToken=14]="FirstTemplateToken",n[n.LastTemplateToken=17]="LastTemplateToken",n[n.FirstBinaryOperator=29]="FirstBinaryOperator",n[n.LastBinaryOperator=78]="LastBinaryOperator",n[n.FirstStatement=236]="FirstStatement",n[n.LastStatement=252]="LastStatement",n[n.FirstNode=160]="FirstNode",n[n.FirstJSDocNode=307]="FirstJSDocNode",n[n.LastJSDocNode=345]="LastJSDocNode",n[n.FirstJSDocTagNode=325]="FirstJSDocTagNode",n[n.LastJSDocTagNode=345]="LastJSDocTagNode",n[n.FirstContextualKeyword=126]="FirstContextualKeyword",n[n.LastContextualKeyword=159]="LastContextualKeyword"})(a=e.SyntaxKind||(e.SyntaxKind={}));var O;(function(n){n[n.None=0]="None",n[n.Let=1]="Let",n[n.Const=2]="Const",n[n.NestedNamespace=4]="NestedNamespace",n[n.Synthesized=8]="Synthesized",n[n.Namespace=16]="Namespace",n[n.OptionalChain=32]="OptionalChain",n[n.ExportContext=64]="ExportContext",n[n.ContainsThis=128]="ContainsThis",n[n.HasImplicitReturn=256]="HasImplicitReturn",n[n.HasExplicitReturn=512]="HasExplicitReturn",n[n.GlobalAugmentation=1024]="GlobalAugmentation",n[n.HasAsyncFunctions=2048]="HasAsyncFunctions",n[n.DisallowInContext=4096]="DisallowInContext",n[n.YieldContext=8192]="YieldContext",n[n.DecoratorContext=16384]="DecoratorContext",n[n.AwaitContext=32768]="AwaitContext",n[n.ThisNodeHasError=65536]="ThisNodeHasError",n[n.JavaScriptFile=131072]="JavaScriptFile",n[n.ThisNodeOrAnySubNodesHasError=262144]="ThisNodeOrAnySubNodesHasError",n[n.HasAggregatedChildData=524288]="HasAggregatedChildData",n[n.PossiblyContainsDynamicImport=1048576]="PossiblyContainsDynamicImport",n[n.PossiblyContainsImportMeta=2097152]="PossiblyContainsImportMeta",n[n.JSDoc=4194304]="JSDoc",n[n.Ambient=8388608]="Ambient",n[n.InWithStatement=16777216]="InWithStatement",n[n.JsonFile=33554432]="JsonFile",n[n.TypeCached=67108864]="TypeCached",n[n.Deprecated=134217728]="Deprecated",n[n.BlockScoped=3]="BlockScoped",n[n.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",n[n.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",n[n.ContextFlags=25358336]="ContextFlags",n[n.TypeExcludesFlags=40960]="TypeExcludesFlags",n[n.PermanentlySetIncrementalFlags=3145728]="PermanentlySetIncrementalFlags"})(O=e.NodeFlags||(e.NodeFlags={}));var L;(function(n){n[n.None=0]="None",n[n.Export=1]="Export",n[n.Ambient=2]="Ambient",n[n.Public=4]="Public",n[n.Private=8]="Private",n[n.Protected=16]="Protected",n[n.Static=32]="Static",n[n.Readonly=64]="Readonly",n[n.Abstract=128]="Abstract",n[n.Async=256]="Async",n[n.Default=512]="Default",n[n.Const=2048]="Const",n[n.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",n[n.Deprecated=8192]="Deprecated",n[n.Override=16384]="Override",n[n.HasComputedFlags=536870912]="HasComputedFlags",n[n.AccessibilityModifier=28]="AccessibilityModifier",n[n.ParameterPropertyModifier=16476]="ParameterPropertyModifier",n[n.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",n[n.TypeScriptModifier=18654]="TypeScriptModifier",n[n.ExportDefault=513]="ExportDefault",n[n.All=27647]="All"})(L=e.ModifierFlags||(e.ModifierFlags={}));var W;(function(n){n[n.None=0]="None",n[n.IntrinsicNamedElement=1]="IntrinsicNamedElement",n[n.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",n[n.IntrinsicElement=3]="IntrinsicElement"})(W=e.JsxFlags||(e.JsxFlags={}));var N;(function(n){n[n.Succeeded=1]="Succeeded",n[n.Failed=2]="Failed",n[n.Reported=4]="Reported",n[n.ReportsUnmeasurable=8]="ReportsUnmeasurable",n[n.ReportsUnreliable=16]="ReportsUnreliable",n[n.ReportsMask=24]="ReportsMask"})(N=e.RelationComparisonResult||(e.RelationComparisonResult={}));var Q;(function(n){n[n.None=0]="None",n[n.Auto=1]="Auto",n[n.Loop=2]="Loop",n[n.Unique=3]="Unique",n[n.Node=4]="Node",n[n.KindMask=7]="KindMask",n[n.ReservedInNestedScopes=8]="ReservedInNestedScopes",n[n.Optimistic=16]="Optimistic",n[n.FileLevel=32]="FileLevel",n[n.AllowNameSubstitution=64]="AllowNameSubstitution"})(Q=e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={}));var pe;(function(n){n[n.None=0]="None",n[n.PrecedingLineBreak=1]="PrecedingLineBreak",n[n.PrecedingJSDocComment=2]="PrecedingJSDocComment",n[n.Unterminated=4]="Unterminated",n[n.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",n[n.Scientific=16]="Scientific",n[n.Octal=32]="Octal",n[n.HexSpecifier=64]="HexSpecifier",n[n.BinarySpecifier=128]="BinarySpecifier",n[n.OctalSpecifier=256]="OctalSpecifier",n[n.ContainsSeparator=512]="ContainsSeparator",n[n.UnicodeEscape=1024]="UnicodeEscape",n[n.ContainsInvalidEscape=2048]="ContainsInvalidEscape",n[n.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",n[n.NumericLiteralFlags=1008]="NumericLiteralFlags",n[n.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags"})(pe=e.TokenFlags||(e.TokenFlags={}));var F;(function(n){n[n.Unreachable=1]="Unreachable",n[n.Start=2]="Start",n[n.BranchLabel=4]="BranchLabel",n[n.LoopLabel=8]="LoopLabel",n[n.Assignment=16]="Assignment",n[n.TrueCondition=32]="TrueCondition",n[n.FalseCondition=64]="FalseCondition",n[n.SwitchClause=128]="SwitchClause",n[n.ArrayMutation=256]="ArrayMutation",n[n.Call=512]="Call",n[n.ReduceLabel=1024]="ReduceLabel",n[n.Referenced=2048]="Referenced",n[n.Shared=4096]="Shared",n[n.Label=12]="Label",n[n.Condition=96]="Condition"})(F=e.FlowFlags||(e.FlowFlags={}));var g;(function(n){n[n.ExpectError=0]="ExpectError",n[n.Ignore=1]="Ignore"})(g=e.CommentDirectiveType||(e.CommentDirectiveType={}));var S=function(){function n(){}return n}();e.OperationCanceledException=S;var H;(function(n){n[n.RootFile=0]="RootFile",n[n.SourceFromProjectReference=1]="SourceFromProjectReference",n[n.OutputFromProjectReference=2]="OutputFromProjectReference",n[n.Import=3]="Import",n[n.ReferenceFile=4]="ReferenceFile",n[n.TypeReferenceDirective=5]="TypeReferenceDirective",n[n.LibFile=6]="LibFile",n[n.LibReferenceDirective=7]="LibReferenceDirective",n[n.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile"})(H=e.FileIncludeKind||(e.FileIncludeKind={}));var se;(function(n){n[n.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",n[n.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic"})(se=e.FilePreprocessingDiagnosticsKind||(e.FilePreprocessingDiagnosticsKind={}));var p;(function(n){n[n.Not=0]="Not",n[n.SafeModules=1]="SafeModules",n[n.Completely=2]="Completely"})(p=e.StructureIsReused||(e.StructureIsReused={}));var C;(function(n){n[n.Success=0]="Success",n[n.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",n[n.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",n[n.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",n[n.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",n[n.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped"})(C=e.ExitStatus||(e.ExitStatus={}));var G;(function(n){n[n.Ok=0]="Ok",n[n.NeedsOverride=1]="NeedsOverride",n[n.HasInvalidOverride=2]="HasInvalidOverride"})(G=e.MemberOverrideStatus||(e.MemberOverrideStatus={}));var E;(function(n){n[n.None=0]="None",n[n.Literal=1]="Literal",n[n.Subtype=2]="Subtype"})(E=e.UnionReduction||(e.UnionReduction={}));var ue;(function(n){n[n.None=0]="None",n[n.Signature=1]="Signature",n[n.NoConstraints=2]="NoConstraints",n[n.Completions=4]="Completions",n[n.SkipBindingPatterns=8]="SkipBindingPatterns"})(ue=e.ContextFlags||(e.ContextFlags={}));var B;(function(n){n[n.None=0]="None",n[n.NoTruncation=1]="NoTruncation",n[n.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",n[n.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",n[n.UseStructuralFallback=8]="UseStructuralFallback",n[n.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",n[n.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",n[n.UseFullyQualifiedType=64]="UseFullyQualifiedType",n[n.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",n[n.SuppressAnyReturnType=256]="SuppressAnyReturnType",n[n.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",n[n.MultilineObjectLiterals=1024]="MultilineObjectLiterals",n[n.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",n[n.UseTypeOfFunction=4096]="UseTypeOfFunction",n[n.OmitParameterModifiers=8192]="OmitParameterModifiers",n[n.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",n[n.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",n[n.NoTypeReduction=536870912]="NoTypeReduction",n[n.NoUndefinedOptionalParameterType=1073741824]="NoUndefinedOptionalParameterType",n[n.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",n[n.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",n[n.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",n[n.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",n[n.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",n[n.AllowEmptyTuple=524288]="AllowEmptyTuple",n[n.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",n[n.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",n[n.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",n[n.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",n[n.IgnoreErrors=70221824]="IgnoreErrors",n[n.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",n[n.InTypeAlias=8388608]="InTypeAlias",n[n.InInitialEntityName=16777216]="InInitialEntityName"})(B=e.NodeBuilderFlags||(e.NodeBuilderFlags={}));var re;(function(n){n[n.None=0]="None",n[n.NoTruncation=1]="NoTruncation",n[n.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",n[n.UseStructuralFallback=8]="UseStructuralFallback",n[n.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",n[n.UseFullyQualifiedType=64]="UseFullyQualifiedType",n[n.SuppressAnyReturnType=256]="SuppressAnyReturnType",n[n.MultilineObjectLiterals=1024]="MultilineObjectLiterals",n[n.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",n[n.UseTypeOfFunction=4096]="UseTypeOfFunction",n[n.OmitParameterModifiers=8192]="OmitParameterModifiers",n[n.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",n[n.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",n[n.NoTypeReduction=536870912]="NoTypeReduction",n[n.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",n[n.AddUndefined=131072]="AddUndefined",n[n.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",n[n.InArrayType=524288]="InArrayType",n[n.InElementType=2097152]="InElementType",n[n.InFirstTypeArgument=4194304]="InFirstTypeArgument",n[n.InTypeAlias=8388608]="InTypeAlias",n[n.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",n[n.NodeBuilderFlagsMask=814775659]="NodeBuilderFlagsMask"})(re=e.TypeFormatFlags||(e.TypeFormatFlags={}));var M;(function(n){n[n.None=0]="None",n[n.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",n[n.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",n[n.AllowAnyNodeKind=4]="AllowAnyNodeKind",n[n.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",n[n.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain"})(M=e.SymbolFormatFlags||(e.SymbolFormatFlags={}));var x;(function(n){n[n.Accessible=0]="Accessible",n[n.NotAccessible=1]="NotAccessible",n[n.CannotBeNamed=2]="CannotBeNamed"})(x=e.SymbolAccessibility||(e.SymbolAccessibility={}));var ie;(function(n){n[n.UnionOrIntersection=0]="UnionOrIntersection",n[n.Spread=1]="Spread"})(ie=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}));var _e;(function(n){n[n.This=0]="This",n[n.Identifier=1]="Identifier",n[n.AssertsThis=2]="AssertsThis",n[n.AssertsIdentifier=3]="AssertsIdentifier"})(_e=e.TypePredicateKind||(e.TypePredicateKind={}));var Y;(function(n){n[n.Unknown=0]="Unknown",n[n.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",n[n.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",n[n.NumberLikeType=3]="NumberLikeType",n[n.BigIntLikeType=4]="BigIntLikeType",n[n.StringLikeType=5]="StringLikeType",n[n.BooleanType=6]="BooleanType",n[n.ArrayLikeType=7]="ArrayLikeType",n[n.ESSymbolType=8]="ESSymbolType",n[n.Promise=9]="Promise",n[n.TypeWithCallSignature=10]="TypeWithCallSignature",n[n.ObjectType=11]="ObjectType"})(Y=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}));var Z;(function(n){n[n.None=0]="None",n[n.FunctionScopedVariable=1]="FunctionScopedVariable",n[n.BlockScopedVariable=2]="BlockScopedVariable",n[n.Property=4]="Property",n[n.EnumMember=8]="EnumMember",n[n.Function=16]="Function",n[n.Class=32]="Class",n[n.Interface=64]="Interface",n[n.ConstEnum=128]="ConstEnum",n[n.RegularEnum=256]="RegularEnum",n[n.ValueModule=512]="ValueModule",n[n.NamespaceModule=1024]="NamespaceModule",n[n.TypeLiteral=2048]="TypeLiteral",n[n.ObjectLiteral=4096]="ObjectLiteral",n[n.Method=8192]="Method",n[n.Constructor=16384]="Constructor",n[n.GetAccessor=32768]="GetAccessor",n[n.SetAccessor=65536]="SetAccessor",n[n.Signature=131072]="Signature",n[n.TypeParameter=262144]="TypeParameter",n[n.TypeAlias=524288]="TypeAlias",n[n.ExportValue=1048576]="ExportValue",n[n.Alias=2097152]="Alias",n[n.Prototype=4194304]="Prototype",n[n.ExportStar=8388608]="ExportStar",n[n.Optional=16777216]="Optional",n[n.Transient=33554432]="Transient",n[n.Assignment=67108864]="Assignment",n[n.ModuleExports=134217728]="ModuleExports",n[n.All=67108863]="All",n[n.Enum=384]="Enum",n[n.Variable=3]="Variable",n[n.Value=111551]="Value",n[n.Type=788968]="Type",n[n.Namespace=1920]="Namespace",n[n.Module=1536]="Module",n[n.Accessor=98304]="Accessor",n[n.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",n[n.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",n[n.ParameterExcludes=111551]="ParameterExcludes",n[n.PropertyExcludes=0]="PropertyExcludes",n[n.EnumMemberExcludes=900095]="EnumMemberExcludes",n[n.FunctionExcludes=110991]="FunctionExcludes",n[n.ClassExcludes=899503]="ClassExcludes",n[n.InterfaceExcludes=788872]="InterfaceExcludes",n[n.RegularEnumExcludes=899327]="RegularEnumExcludes",n[n.ConstEnumExcludes=899967]="ConstEnumExcludes",n[n.ValueModuleExcludes=110735]="ValueModuleExcludes",n[n.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",n[n.MethodExcludes=103359]="MethodExcludes",n[n.GetAccessorExcludes=46015]="GetAccessorExcludes",n[n.SetAccessorExcludes=78783]="SetAccessorExcludes",n[n.TypeParameterExcludes=526824]="TypeParameterExcludes",n[n.TypeAliasExcludes=788968]="TypeAliasExcludes",n[n.AliasExcludes=2097152]="AliasExcludes",n[n.ModuleMember=2623475]="ModuleMember",n[n.ExportHasLocal=944]="ExportHasLocal",n[n.BlockScoped=418]="BlockScoped",n[n.PropertyOrAccessor=98308]="PropertyOrAccessor",n[n.ClassMember=106500]="ClassMember",n[n.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",n[n.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",n[n.Classifiable=2885600]="Classifiable",n[n.LateBindingContainer=6256]="LateBindingContainer"})(Z=e.SymbolFlags||(e.SymbolFlags={}));var k;(function(n){n[n.Numeric=0]="Numeric",n[n.Literal=1]="Literal"})(k=e.EnumKind||(e.EnumKind={}));var I;(function(n){n[n.Instantiated=1]="Instantiated",n[n.SyntheticProperty=2]="SyntheticProperty",n[n.SyntheticMethod=4]="SyntheticMethod",n[n.Readonly=8]="Readonly",n[n.ReadPartial=16]="ReadPartial",n[n.WritePartial=32]="WritePartial",n[n.HasNonUniformType=64]="HasNonUniformType",n[n.HasLiteralType=128]="HasLiteralType",n[n.ContainsPublic=256]="ContainsPublic",n[n.ContainsProtected=512]="ContainsProtected",n[n.ContainsPrivate=1024]="ContainsPrivate",n[n.ContainsStatic=2048]="ContainsStatic",n[n.Late=4096]="Late",n[n.ReverseMapped=8192]="ReverseMapped",n[n.OptionalParameter=16384]="OptionalParameter",n[n.RestParameter=32768]="RestParameter",n[n.DeferredType=65536]="DeferredType",n[n.HasNeverType=131072]="HasNeverType",n[n.Mapped=262144]="Mapped",n[n.StripOptional=524288]="StripOptional",n[n.Unresolved=1048576]="Unresolved",n[n.Synthetic=6]="Synthetic",n[n.Discriminant=192]="Discriminant",n[n.Partial=48]="Partial"})(I=e.CheckFlags||(e.CheckFlags={}));var ne;(function(n){n.Call="__call",n.Constructor="__constructor",n.New="__new",n.Index="__index",n.ExportStar="__export",n.Global="__global",n.Missing="__missing",n.Type="__type",n.Object="__object",n.JSXAttributes="__jsxAttributes",n.Class="__class",n.Function="__function",n.Computed="__computed",n.Resolving="__resolving__",n.ExportEquals="export=",n.Default="default",n.This="this"})(ne=e.InternalSymbolName||(e.InternalSymbolName={}));var ee;(function(n){n[n.TypeChecked=1]="TypeChecked",n[n.LexicalThis=2]="LexicalThis",n[n.CaptureThis=4]="CaptureThis",n[n.CaptureNewTarget=8]="CaptureNewTarget",n[n.SuperInstance=256]="SuperInstance",n[n.SuperStatic=512]="SuperStatic",n[n.ContextChecked=1024]="ContextChecked",n[n.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",n[n.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",n[n.CaptureArguments=8192]="CaptureArguments",n[n.EnumValuesComputed=16384]="EnumValuesComputed",n[n.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",n[n.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",n[n.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",n[n.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",n[n.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",n[n.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",n[n.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",n[n.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",n[n.AssignmentsMarked=8388608]="AssignmentsMarked",n[n.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",n[n.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",n[n.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers",n[n.ContainsSuperPropertyInStaticInitializer=134217728]="ContainsSuperPropertyInStaticInitializer",n[n.InCheckIdentifier=268435456]="InCheckIdentifier"})(ee=e.NodeCheckFlags||(e.NodeCheckFlags={}));var A;(function(n){n[n.Any=1]="Any",n[n.Unknown=2]="Unknown",n[n.String=4]="String",n[n.Number=8]="Number",n[n.Boolean=16]="Boolean",n[n.Enum=32]="Enum",n[n.BigInt=64]="BigInt",n[n.StringLiteral=128]="StringLiteral",n[n.NumberLiteral=256]="NumberLiteral",n[n.BooleanLiteral=512]="BooleanLiteral",n[n.EnumLiteral=1024]="EnumLiteral",n[n.BigIntLiteral=2048]="BigIntLiteral",n[n.ESSymbol=4096]="ESSymbol",n[n.UniqueESSymbol=8192]="UniqueESSymbol",n[n.Void=16384]="Void",n[n.Undefined=32768]="Undefined",n[n.Null=65536]="Null",n[n.Never=131072]="Never",n[n.TypeParameter=262144]="TypeParameter",n[n.Object=524288]="Object",n[n.Union=1048576]="Union",n[n.Intersection=2097152]="Intersection",n[n.Index=4194304]="Index",n[n.IndexedAccess=8388608]="IndexedAccess",n[n.Conditional=16777216]="Conditional",n[n.Substitution=33554432]="Substitution",n[n.NonPrimitive=67108864]="NonPrimitive",n[n.TemplateLiteral=134217728]="TemplateLiteral",n[n.StringMapping=268435456]="StringMapping",n[n.AnyOrUnknown=3]="AnyOrUnknown",n[n.Nullable=98304]="Nullable",n[n.Literal=2944]="Literal",n[n.Unit=109440]="Unit",n[n.StringOrNumberLiteral=384]="StringOrNumberLiteral",n[n.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",n[n.DefinitelyFalsy=117632]="DefinitelyFalsy",n[n.PossiblyFalsy=117724]="PossiblyFalsy",n[n.Intrinsic=67359327]="Intrinsic",n[n.Primitive=131068]="Primitive",n[n.StringLike=402653316]="StringLike",n[n.NumberLike=296]="NumberLike",n[n.BigIntLike=2112]="BigIntLike",n[n.BooleanLike=528]="BooleanLike",n[n.EnumLike=1056]="EnumLike",n[n.ESSymbolLike=12288]="ESSymbolLike",n[n.VoidLike=49152]="VoidLike",n[n.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",n[n.DisjointDomains=469892092]="DisjointDomains",n[n.UnionOrIntersection=3145728]="UnionOrIntersection",n[n.StructuredType=3670016]="StructuredType",n[n.TypeVariable=8650752]="TypeVariable",n[n.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",n[n.InstantiablePrimitive=406847488]="InstantiablePrimitive",n[n.Instantiable=465829888]="Instantiable",n[n.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",n[n.ObjectFlagsType=3899393]="ObjectFlagsType",n[n.Simplifiable=25165824]="Simplifiable",n[n.Singleton=67358815]="Singleton",n[n.Narrowable=536624127]="Narrowable",n[n.IncludesMask=205258751]="IncludesMask",n[n.IncludesMissingType=262144]="IncludesMissingType",n[n.IncludesNonWideningType=4194304]="IncludesNonWideningType",n[n.IncludesWildcard=8388608]="IncludesWildcard",n[n.IncludesEmptyObject=16777216]="IncludesEmptyObject",n[n.IncludesInstantiable=33554432]="IncludesInstantiable",n[n.NotPrimitiveUnion=36323363]="NotPrimitiveUnion"})(A=e.TypeFlags||(e.TypeFlags={}));var f;(function(n){n[n.Class=1]="Class",n[n.Interface=2]="Interface",n[n.Reference=4]="Reference",n[n.Tuple=8]="Tuple",n[n.Anonymous=16]="Anonymous",n[n.Mapped=32]="Mapped",n[n.Instantiated=64]="Instantiated",n[n.ObjectLiteral=128]="ObjectLiteral",n[n.EvolvingArray=256]="EvolvingArray",n[n.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",n[n.ReverseMapped=1024]="ReverseMapped",n[n.JsxAttributes=2048]="JsxAttributes",n[n.MarkerType=4096]="MarkerType",n[n.JSLiteral=8192]="JSLiteral",n[n.FreshLiteral=16384]="FreshLiteral",n[n.ArrayLiteral=32768]="ArrayLiteral",n[n.PrimitiveUnion=65536]="PrimitiveUnion",n[n.ContainsWideningType=131072]="ContainsWideningType",n[n.ContainsObjectOrArrayLiteral=262144]="ContainsObjectOrArrayLiteral",n[n.NonInferrableType=524288]="NonInferrableType",n[n.CouldContainTypeVariablesComputed=1048576]="CouldContainTypeVariablesComputed",n[n.CouldContainTypeVariables=2097152]="CouldContainTypeVariables",n[n.ClassOrInterface=3]="ClassOrInterface",n[n.RequiresWidening=393216]="RequiresWidening",n[n.PropagatingFlags=917504]="PropagatingFlags",n[n.ObjectTypeKindMask=1343]="ObjectTypeKindMask",n[n.ContainsSpread=4194304]="ContainsSpread",n[n.ObjectRestType=8388608]="ObjectRestType",n[n.IsClassInstanceClone=16777216]="IsClassInstanceClone",n[n.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",n[n.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",n[n.IsGenericTypeComputed=4194304]="IsGenericTypeComputed",n[n.IsGenericObjectType=8388608]="IsGenericObjectType",n[n.IsGenericIndexType=16777216]="IsGenericIndexType",n[n.IsGenericType=25165824]="IsGenericType",n[n.ContainsIntersections=33554432]="ContainsIntersections",n[n.IsNeverIntersectionComputed=33554432]="IsNeverIntersectionComputed",n[n.IsNeverIntersection=67108864]="IsNeverIntersection"})(f=e.ObjectFlags||(e.ObjectFlags={}));var P;(function(n){n[n.Invariant=0]="Invariant",n[n.Covariant=1]="Covariant",n[n.Contravariant=2]="Contravariant",n[n.Bivariant=3]="Bivariant",n[n.Independent=4]="Independent",n[n.VarianceMask=7]="VarianceMask",n[n.Unmeasurable=8]="Unmeasurable",n[n.Unreliable=16]="Unreliable",n[n.AllowsStructuralFallback=24]="AllowsStructuralFallback"})(P=e.VarianceFlags||(e.VarianceFlags={}));var D;(function(n){n[n.Required=1]="Required",n[n.Optional=2]="Optional",n[n.Rest=4]="Rest",n[n.Variadic=8]="Variadic",n[n.Fixed=3]="Fixed",n[n.Variable=12]="Variable",n[n.NonRequired=14]="NonRequired",n[n.NonRest=11]="NonRest"})(D=e.ElementFlags||(e.ElementFlags={}));var l;(function(n){n[n.None=0]="None",n[n.IncludeUndefined=1]="IncludeUndefined",n[n.NoIndexSignatures=2]="NoIndexSignatures",n[n.Writing=4]="Writing",n[n.CacheSymbol=8]="CacheSymbol",n[n.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",n[n.ExpressionPosition=32]="ExpressionPosition",n[n.ReportDeprecated=64]="ReportDeprecated",n[n.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",n[n.Contextual=256]="Contextual",n[n.Persistent=1]="Persistent"})(l=e.AccessFlags||(e.AccessFlags={}));var _;(function(n){n[n.Component=0]="Component",n[n.Function=1]="Function",n[n.Mixed=2]="Mixed"})(_=e.JsxReferenceKind||(e.JsxReferenceKind={}));var J;(function(n){n[n.Call=0]="Call",n[n.Construct=1]="Construct"})(J=e.SignatureKind||(e.SignatureKind={}));var w;(function(n){n[n.None=0]="None",n[n.HasRestParameter=1]="HasRestParameter",n[n.HasLiteralTypes=2]="HasLiteralTypes",n[n.Abstract=4]="Abstract",n[n.IsInnerCallChain=8]="IsInnerCallChain",n[n.IsOuterCallChain=16]="IsOuterCallChain",n[n.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",n[n.PropagatingFlags=39]="PropagatingFlags",n[n.CallChainFlags=24]="CallChainFlags"})(w=e.SignatureFlags||(e.SignatureFlags={}));var j;(function(n){n[n.String=0]="String",n[n.Number=1]="Number"})(j=e.IndexKind||(e.IndexKind={}));var U;(function(n){n[n.Simple=0]="Simple",n[n.Array=1]="Array",n[n.Function=2]="Function",n[n.Composite=3]="Composite",n[n.Merged=4]="Merged"})(U=e.TypeMapKind||(e.TypeMapKind={}));var z;(function(n){n[n.NakedTypeVariable=1]="NakedTypeVariable",n[n.SpeculativeTuple=2]="SpeculativeTuple",n[n.SubstituteSource=4]="SubstituteSource",n[n.HomomorphicMappedType=8]="HomomorphicMappedType",n[n.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",n[n.MappedTypeConstraint=32]="MappedTypeConstraint",n[n.ContravariantConditional=64]="ContravariantConditional",n[n.ReturnType=128]="ReturnType",n[n.LiteralKeyof=256]="LiteralKeyof",n[n.NoConstraints=512]="NoConstraints",n[n.AlwaysStrict=1024]="AlwaysStrict",n[n.MaxValue=2048]="MaxValue",n[n.PriorityImpliesCombination=416]="PriorityImpliesCombination",n[n.Circularity=-1]="Circularity"})(z=e.InferencePriority||(e.InferencePriority={}));var y;(function(n){n[n.None=0]="None",n[n.NoDefault=1]="NoDefault",n[n.AnyDefault=2]="AnyDefault",n[n.SkippedGenericFunction=4]="SkippedGenericFunction"})(y=e.InferenceFlags||(e.InferenceFlags={}));var oe;(function(n){n[n.False=0]="False",n[n.Unknown=1]="Unknown",n[n.Maybe=3]="Maybe",n[n.True=-1]="True"})(oe=e.Ternary||(e.Ternary={}));var ve;(function(n){n[n.None=0]="None",n[n.ExportsProperty=1]="ExportsProperty",n[n.ModuleExports=2]="ModuleExports",n[n.PrototypeProperty=3]="PrototypeProperty",n[n.ThisProperty=4]="ThisProperty",n[n.Property=5]="Property",n[n.Prototype=6]="Prototype",n[n.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",n[n.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",n[n.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty"})(ve=e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}));var ce;(function(n){n[n.Warning=0]="Warning",n[n.Error=1]="Error",n[n.Suggestion=2]="Suggestion",n[n.Message=3]="Message"})(ce=e.DiagnosticCategory||(e.DiagnosticCategory={}));function m(n,Er){Er===void 0&&(Er=!0);var br=ce[n.category];return Er?br.toLowerCase():br}e.diagnosticCategoryName=m;var de;(function(n){n[n.Classic=1]="Classic",n[n.NodeJs=2]="NodeJs",n[n.Node12=3]="Node12",n[n.NodeNext=99]="NodeNext"})(de=e.ModuleResolutionKind||(e.ModuleResolutionKind={}));var ae;(function(n){n[n.FixedPollingInterval=0]="FixedPollingInterval",n[n.PriorityPollingInterval=1]="PriorityPollingInterval",n[n.DynamicPriorityPolling=2]="DynamicPriorityPolling",n[n.FixedChunkSizePolling=3]="FixedChunkSizePolling",n[n.UseFsEvents=4]="UseFsEvents",n[n.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory"})(ae=e.WatchFileKind||(e.WatchFileKind={}));var V;(function(n){n[n.UseFsEvents=0]="UseFsEvents",n[n.FixedPollingInterval=1]="FixedPollingInterval",n[n.DynamicPriorityPolling=2]="DynamicPriorityPolling",n[n.FixedChunkSizePolling=3]="FixedChunkSizePolling"})(V=e.WatchDirectoryKind||(e.WatchDirectoryKind={}));var le;(function(n){n[n.FixedInterval=0]="FixedInterval",n[n.PriorityInterval=1]="PriorityInterval",n[n.DynamicPriority=2]="DynamicPriority",n[n.FixedChunkSize=3]="FixedChunkSize"})(le=e.PollingWatchKind||(e.PollingWatchKind={}));var ke;(function(n){n[n.None=0]="None",n[n.CommonJS=1]="CommonJS",n[n.AMD=2]="AMD",n[n.UMD=3]="UMD",n[n.System=4]="System",n[n.ES2015=5]="ES2015",n[n.ES2020=6]="ES2020",n[n.ES2022=7]="ES2022",n[n.ESNext=99]="ESNext",n[n.Node12=100]="Node12",n[n.NodeNext=199]="NodeNext"})(ke=e.ModuleKind||(e.ModuleKind={}));var Ue;(function(n){n[n.None=0]="None",n[n.Preserve=1]="Preserve",n[n.React=2]="React",n[n.ReactNative=3]="ReactNative",n[n.ReactJSX=4]="ReactJSX",n[n.ReactJSXDev=5]="ReactJSXDev"})(Ue=e.JsxEmit||(e.JsxEmit={}));var He;(function(n){n[n.Remove=0]="Remove",n[n.Preserve=1]="Preserve",n[n.Error=2]="Error"})(He=e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={}));var ar;(function(n){n[n.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",n[n.LineFeed=1]="LineFeed"})(ar=e.NewLineKind||(e.NewLineKind={}));var gr;(function(n){n[n.Unknown=0]="Unknown",n[n.JS=1]="JS",n[n.JSX=2]="JSX",n[n.TS=3]="TS",n[n.TSX=4]="TSX",n[n.External=5]="External",n[n.JSON=6]="JSON",n[n.Deferred=7]="Deferred"})(gr=e.ScriptKind||(e.ScriptKind={}));var me;(function(n){n[n.ES3=0]="ES3",n[n.ES5=1]="ES5",n[n.ES2015=2]="ES2015",n[n.ES2016=3]="ES2016",n[n.ES2017=4]="ES2017",n[n.ES2018=5]="ES2018",n[n.ES2019=6]="ES2019",n[n.ES2020=7]="ES2020",n[n.ES2021=8]="ES2021",n[n.ES2022=9]="ES2022",n[n.ESNext=99]="ESNext",n[n.JSON=100]="JSON",n[n.Latest=99]="Latest"})(me=e.ScriptTarget||(e.ScriptTarget={}));var Ge;(function(n){n[n.Standard=0]="Standard",n[n.JSX=1]="JSX"})(Ge=e.LanguageVariant||(e.LanguageVariant={}));var er;(function(n){n[n.None=0]="None",n[n.Recursive=1]="Recursive"})(er=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}));var he;(function(n){n[n.nullCharacter=0]="nullCharacter",n[n.maxAsciiCharacter=127]="maxAsciiCharacter",n[n.lineFeed=10]="lineFeed",n[n.carriageReturn=13]="carriageReturn",n[n.lineSeparator=8232]="lineSeparator",n[n.paragraphSeparator=8233]="paragraphSeparator",n[n.nextLine=133]="nextLine",n[n.space=32]="space",n[n.nonBreakingSpace=160]="nonBreakingSpace",n[n.enQuad=8192]="enQuad",n[n.emQuad=8193]="emQuad",n[n.enSpace=8194]="enSpace",n[n.emSpace=8195]="emSpace",n[n.threePerEmSpace=8196]="threePerEmSpace",n[n.fourPerEmSpace=8197]="fourPerEmSpace",n[n.sixPerEmSpace=8198]="sixPerEmSpace",n[n.figureSpace=8199]="figureSpace",n[n.punctuationSpace=8200]="punctuationSpace",n[n.thinSpace=8201]="thinSpace",n[n.hairSpace=8202]="hairSpace",n[n.zeroWidthSpace=8203]="zeroWidthSpace",n[n.narrowNoBreakSpace=8239]="narrowNoBreakSpace",n[n.ideographicSpace=12288]="ideographicSpace",n[n.mathematicalSpace=8287]="mathematicalSpace",n[n.ogham=5760]="ogham",n[n._=95]="_",n[n.$=36]="$",n[n._0=48]="_0",n[n._1=49]="_1",n[n._2=50]="_2",n[n._3=51]="_3",n[n._4=52]="_4",n[n._5=53]="_5",n[n._6=54]="_6",n[n._7=55]="_7",n[n._8=56]="_8",n[n._9=57]="_9",n[n.a=97]="a",n[n.b=98]="b",n[n.c=99]="c",n[n.d=100]="d",n[n.e=101]="e",n[n.f=102]="f",n[n.g=103]="g",n[n.h=104]="h",n[n.i=105]="i",n[n.j=106]="j",n[n.k=107]="k",n[n.l=108]="l",n[n.m=109]="m",n[n.n=110]="n",n[n.o=111]="o",n[n.p=112]="p",n[n.q=113]="q",n[n.r=114]="r",n[n.s=115]="s",n[n.t=116]="t",n[n.u=117]="u",n[n.v=118]="v",n[n.w=119]="w",n[n.x=120]="x",n[n.y=121]="y",n[n.z=122]="z",n[n.A=65]="A",n[n.B=66]="B",n[n.C=67]="C",n[n.D=68]="D",n[n.E=69]="E",n[n.F=70]="F",n[n.G=71]="G",n[n.H=72]="H",n[n.I=73]="I",n[n.J=74]="J",n[n.K=75]="K",n[n.L=76]="L",n[n.M=77]="M",n[n.N=78]="N",n[n.O=79]="O",n[n.P=80]="P",n[n.Q=81]="Q",n[n.R=82]="R",n[n.S=83]="S",n[n.T=84]="T",n[n.U=85]="U",n[n.V=86]="V",n[n.W=87]="W",n[n.X=88]="X",n[n.Y=89]="Y",n[n.Z=90]="Z",n[n.ampersand=38]="ampersand",n[n.asterisk=42]="asterisk",n[n.at=64]="at",n[n.backslash=92]="backslash",n[n.backtick=96]="backtick",n[n.bar=124]="bar",n[n.caret=94]="caret",n[n.closeBrace=125]="closeBrace",n[n.closeBracket=93]="closeBracket",n[n.closeParen=41]="closeParen",n[n.colon=58]="colon",n[n.comma=44]="comma",n[n.dot=46]="dot",n[n.doubleQuote=34]="doubleQuote",n[n.equals=61]="equals",n[n.exclamation=33]="exclamation",n[n.greaterThan=62]="greaterThan",n[n.hash=35]="hash",n[n.lessThan=60]="lessThan",n[n.minus=45]="minus",n[n.openBrace=123]="openBrace",n[n.openBracket=91]="openBracket",n[n.openParen=40]="openParen",n[n.percent=37]="percent",n[n.plus=43]="plus",n[n.question=63]="question",n[n.semicolon=59]="semicolon",n[n.singleQuote=39]="singleQuote",n[n.slash=47]="slash",n[n.tilde=126]="tilde",n[n.backspace=8]="backspace",n[n.formFeed=12]="formFeed",n[n.byteOrderMark=65279]="byteOrderMark",n[n.tab=9]="tab",n[n.verticalTab=11]="verticalTab"})(he=e.CharacterCodes||(e.CharacterCodes={}));var we;(function(n){n.Ts=".ts",n.Tsx=".tsx",n.Dts=".d.ts",n.Js=".js",n.Jsx=".jsx",n.Json=".json",n.TsBuildInfo=".tsbuildinfo",n.Mjs=".mjs",n.Mts=".mts",n.Dmts=".d.mts",n.Cjs=".cjs",n.Cts=".cts",n.Dcts=".d.cts"})(we=e.Extension||(e.Extension={}));var ye;(function(n){n[n.None=0]="None",n[n.ContainsTypeScript=1]="ContainsTypeScript",n[n.ContainsJsx=2]="ContainsJsx",n[n.ContainsESNext=4]="ContainsESNext",n[n.ContainsES2022=8]="ContainsES2022",n[n.ContainsES2021=16]="ContainsES2021",n[n.ContainsES2020=32]="ContainsES2020",n[n.ContainsES2019=64]="ContainsES2019",n[n.ContainsES2018=128]="ContainsES2018",n[n.ContainsES2017=256]="ContainsES2017",n[n.ContainsES2016=512]="ContainsES2016",n[n.ContainsES2015=1024]="ContainsES2015",n[n.ContainsGenerator=2048]="ContainsGenerator",n[n.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",n[n.ContainsTypeScriptClassSyntax=4096]="ContainsTypeScriptClassSyntax",n[n.ContainsLexicalThis=8192]="ContainsLexicalThis",n[n.ContainsRestOrSpread=16384]="ContainsRestOrSpread",n[n.ContainsObjectRestOrSpread=32768]="ContainsObjectRestOrSpread",n[n.ContainsComputedPropertyName=65536]="ContainsComputedPropertyName",n[n.ContainsBlockScopedBinding=131072]="ContainsBlockScopedBinding",n[n.ContainsBindingPattern=262144]="ContainsBindingPattern",n[n.ContainsYield=524288]="ContainsYield",n[n.ContainsAwait=1048576]="ContainsAwait",n[n.ContainsHoistedDeclarationOrCompletion=2097152]="ContainsHoistedDeclarationOrCompletion",n[n.ContainsDynamicImport=4194304]="ContainsDynamicImport",n[n.ContainsClassFields=8388608]="ContainsClassFields",n[n.ContainsPossibleTopLevelAwait=16777216]="ContainsPossibleTopLevelAwait",n[n.ContainsLexicalSuper=33554432]="ContainsLexicalSuper",n[n.ContainsUpdateExpressionForIdentifier=67108864]="ContainsUpdateExpressionForIdentifier",n[n.HasComputedFlags=536870912]="HasComputedFlags",n[n.AssertTypeScript=1]="AssertTypeScript",n[n.AssertJsx=2]="AssertJsx",n[n.AssertESNext=4]="AssertESNext",n[n.AssertES2022=8]="AssertES2022",n[n.AssertES2021=16]="AssertES2021",n[n.AssertES2020=32]="AssertES2020",n[n.AssertES2019=64]="AssertES2019",n[n.AssertES2018=128]="AssertES2018",n[n.AssertES2017=256]="AssertES2017",n[n.AssertES2016=512]="AssertES2016",n[n.AssertES2015=1024]="AssertES2015",n[n.AssertGenerator=2048]="AssertGenerator",n[n.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",n[n.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",n[n.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",n[n.NodeExcludes=536870912]="NodeExcludes",n[n.ArrowFunctionExcludes=557748224]="ArrowFunctionExcludes",n[n.FunctionExcludes=591310848]="FunctionExcludes",n[n.ConstructorExcludes=591306752]="ConstructorExcludes",n[n.MethodOrAccessorExcludes=574529536]="MethodOrAccessorExcludes",n[n.PropertyExcludes=570433536]="PropertyExcludes",n[n.ClassExcludes=536940544]="ClassExcludes",n[n.ModuleExcludes=589443072]="ModuleExcludes",n[n.TypeExcludes=-2]="TypeExcludes",n[n.ObjectLiteralExcludes=536973312]="ObjectLiteralExcludes",n[n.ArrayLiteralOrCallOrNewExcludes=536887296]="ArrayLiteralOrCallOrNewExcludes",n[n.VariableDeclarationListExcludes=537165824]="VariableDeclarationListExcludes",n[n.ParameterExcludes=536870912]="ParameterExcludes",n[n.CatchClauseExcludes=536903680]="CatchClauseExcludes",n[n.BindingPatternExcludes=536887296]="BindingPatternExcludes",n[n.ContainsLexicalThisOrSuper=33562624]="ContainsLexicalThisOrSuper",n[n.PropertyNamePropagatingFlags=33562624]="PropertyNamePropagatingFlags"})(ye=e.TransformFlags||(e.TransformFlags={}));var Se;(function(n){n[n.TabStop=0]="TabStop",n[n.Placeholder=1]="Placeholder",n[n.Choice=2]="Choice",n[n.Variable=3]="Variable"})(Se=e.SnippetKind||(e.SnippetKind={}));var ge;(function(n){n[n.None=0]="None",n[n.SingleLine=1]="SingleLine",n[n.AdviseOnEmitNode=2]="AdviseOnEmitNode",n[n.NoSubstitution=4]="NoSubstitution",n[n.CapturesThis=8]="CapturesThis",n[n.NoLeadingSourceMap=16]="NoLeadingSourceMap",n[n.NoTrailingSourceMap=32]="NoTrailingSourceMap",n[n.NoSourceMap=48]="NoSourceMap",n[n.NoNestedSourceMaps=64]="NoNestedSourceMaps",n[n.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",n[n.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",n[n.NoTokenSourceMaps=384]="NoTokenSourceMaps",n[n.NoLeadingComments=512]="NoLeadingComments",n[n.NoTrailingComments=1024]="NoTrailingComments",n[n.NoComments=1536]="NoComments",n[n.NoNestedComments=2048]="NoNestedComments",n[n.HelperName=4096]="HelperName",n[n.ExportName=8192]="ExportName",n[n.LocalName=16384]="LocalName",n[n.InternalName=32768]="InternalName",n[n.Indented=65536]="Indented",n[n.NoIndentation=131072]="NoIndentation",n[n.AsyncFunctionBody=262144]="AsyncFunctionBody",n[n.ReuseTempVariableScope=524288]="ReuseTempVariableScope",n[n.CustomPrologue=1048576]="CustomPrologue",n[n.NoHoisting=2097152]="NoHoisting",n[n.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",n[n.Iterator=8388608]="Iterator",n[n.NoAsciiEscaping=16777216]="NoAsciiEscaping",n[n.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",n[n.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",n[n.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines",n[n.Immutable=268435456]="Immutable",n[n.IndirectCall=536870912]="IndirectCall"})(ge=e.EmitFlags||(e.EmitFlags={}));var Fe;(function(n){n[n.Extends=1]="Extends",n[n.Assign=2]="Assign",n[n.Rest=4]="Rest",n[n.Decorate=8]="Decorate",n[n.Metadata=16]="Metadata",n[n.Param=32]="Param",n[n.Awaiter=64]="Awaiter",n[n.Generator=128]="Generator",n[n.Values=256]="Values",n[n.Read=512]="Read",n[n.SpreadArray=1024]="SpreadArray",n[n.Await=2048]="Await",n[n.AsyncGenerator=4096]="AsyncGenerator",n[n.AsyncDelegator=8192]="AsyncDelegator",n[n.AsyncValues=16384]="AsyncValues",n[n.ExportStar=32768]="ExportStar",n[n.ImportStar=65536]="ImportStar",n[n.ImportDefault=131072]="ImportDefault",n[n.MakeTemplateObject=262144]="MakeTemplateObject",n[n.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",n[n.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",n[n.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",n[n.CreateBinding=4194304]="CreateBinding",n[n.FirstEmitHelper=1]="FirstEmitHelper",n[n.LastEmitHelper=4194304]="LastEmitHelper",n[n.ForOfIncludes=256]="ForOfIncludes",n[n.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",n[n.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",n[n.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",n[n.SpreadIncludes=1536]="SpreadIncludes"})(Fe=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}));var cr;(function(n){n[n.SourceFile=0]="SourceFile",n[n.Expression=1]="Expression",n[n.IdentifierName=2]="IdentifierName",n[n.MappedTypeParameter=3]="MappedTypeParameter",n[n.Unspecified=4]="Unspecified",n[n.EmbeddedStatement=5]="EmbeddedStatement",n[n.JsxAttributeValue=6]="JsxAttributeValue"})(cr=e.EmitHint||(e.EmitHint={}));var ur;(function(n){n[n.Parentheses=1]="Parentheses",n[n.TypeAssertions=2]="TypeAssertions",n[n.NonNullAssertions=4]="NonNullAssertions",n[n.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",n[n.Assertions=6]="Assertions",n[n.All=15]="All",n[n.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion"})(ur=e.OuterExpressionKinds||(e.OuterExpressionKinds={}));var Ir;(function(n){n[n.None=0]="None",n[n.InParameters=1]="InParameters",n[n.VariablesHoistedInParameters=2]="VariablesHoistedInParameters"})(Ir=e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={}));var dr;(function(n){n.Prologue="prologue",n.EmitHelpers="emitHelpers",n.NoDefaultLib="no-default-lib",n.Reference="reference",n.Type="type",n.Lib="lib",n.Prepend="prepend",n.Text="text",n.Internal="internal"})(dr=e.BundleFileSectionKind||(e.BundleFileSectionKind={}));var Br;(function(n){n[n.None=0]="None",n[n.SingleLine=0]="SingleLine",n[n.MultiLine=1]="MultiLine",n[n.PreserveLines=2]="PreserveLines",n[n.LinesMask=3]="LinesMask",n[n.NotDelimited=0]="NotDelimited",n[n.BarDelimited=4]="BarDelimited",n[n.AmpersandDelimited=8]="AmpersandDelimited",n[n.CommaDelimited=16]="CommaDelimited",n[n.AsteriskDelimited=32]="AsteriskDelimited",n[n.DelimitersMask=60]="DelimitersMask",n[n.AllowTrailingComma=64]="AllowTrailingComma",n[n.Indented=128]="Indented",n[n.SpaceBetweenBraces=256]="SpaceBetweenBraces",n[n.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",n[n.Braces=1024]="Braces",n[n.Parenthesis=2048]="Parenthesis",n[n.AngleBrackets=4096]="AngleBrackets",n[n.SquareBrackets=8192]="SquareBrackets",n[n.BracketsMask=15360]="BracketsMask",n[n.OptionalIfUndefined=16384]="OptionalIfUndefined",n[n.OptionalIfEmpty=32768]="OptionalIfEmpty",n[n.Optional=49152]="Optional",n[n.PreferNewLine=65536]="PreferNewLine",n[n.NoTrailingNewLine=131072]="NoTrailingNewLine",n[n.NoInterveningComments=262144]="NoInterveningComments",n[n.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",n[n.SingleElement=1048576]="SingleElement",n[n.SpaceAfterList=2097152]="SpaceAfterList",n[n.Modifiers=262656]="Modifiers",n[n.HeritageClauses=512]="HeritageClauses",n[n.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",n[n.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",n[n.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",n[n.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",n[n.UnionTypeConstituents=516]="UnionTypeConstituents",n[n.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",n[n.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",n[n.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",n[n.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",n[n.ImportClauseEntries=526226]="ImportClauseEntries",n[n.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",n[n.CommaListElements=528]="CommaListElements",n[n.CallExpressionArguments=2576]="CallExpressionArguments",n[n.NewExpressionArguments=18960]="NewExpressionArguments",n[n.TemplateExpressionSpans=262144]="TemplateExpressionSpans",n[n.SingleLineBlockStatements=768]="SingleLineBlockStatements",n[n.MultiLineBlockStatements=129]="MultiLineBlockStatements",n[n.VariableDeclarationList=528]="VariableDeclarationList",n[n.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",n[n.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",n[n.ClassHeritageClauses=0]="ClassHeritageClauses",n[n.ClassMembers=129]="ClassMembers",n[n.InterfaceMembers=129]="InterfaceMembers",n[n.EnumMembers=145]="EnumMembers",n[n.CaseBlockClauses=129]="CaseBlockClauses",n[n.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",n[n.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",n[n.JsxElementAttributes=262656]="JsxElementAttributes",n[n.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",n[n.HeritageClauseTypes=528]="HeritageClauseTypes",n[n.SourceFileStatements=131073]="SourceFileStatements",n[n.Decorators=2146305]="Decorators",n[n.TypeArguments=53776]="TypeArguments",n[n.TypeParameters=53776]="TypeParameters",n[n.Parameters=2576]="Parameters",n[n.IndexSignatureParameters=8848]="IndexSignatureParameters",n[n.JSDocComment=33]="JSDocComment"})(Br=e.ListFormat||(e.ListFormat={}));var Tr;(function(n){n[n.None=0]="None",n[n.TripleSlashXML=1]="TripleSlashXML",n[n.SingleLine=2]="SingleLine",n[n.MultiLine=4]="MultiLine",n[n.All=7]="All",n[n.Default=7]="Default"})(Tr=e.PragmaKindFlags||(e.PragmaKindFlags={})),e.commentPragmas={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}}})(Pe||(Pe={}));var Pe;(function(e){function a(A){for(var f=5381,P=0;P<A.length;P++)f=(f<<5)+f+A.charCodeAt(P);return f.toString()}e.generateDjb2Hash=a;function O(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}e.setStackTraceLimit=O;var L;(function(A){A[A.Created=0]="Created",A[A.Changed=1]="Changed",A[A.Deleted=2]="Deleted"})(L=e.FileWatcherEventKind||(e.FileWatcherEventKind={}));var W;(function(A){A[A.High=2e3]="High",A[A.Medium=500]="Medium",A[A.Low=250]="Low"})(W=e.PollingInterval||(e.PollingInterval={})),e.missingFileModifiedTime=new Date(0);function N(A,f){return A.getModifiedTime(f)||e.missingFileModifiedTime}e.getModifiedTime=N;function Q(A){var f;return f={},f[W.Low]=A.Low,f[W.Medium]=A.Medium,f[W.High]=A.High,f}var pe={Low:32,Medium:64,High:256},F=Q(pe);e.unchangedPollThresholds=Q(pe);function g(A){if(!A.getEnvironmentVariable)return;var f=l("TSC_WATCH_POLLINGINTERVAL",W);F=_("TSC_WATCH_POLLINGCHUNKSIZE",pe)||F,e.unchangedPollThresholds=_("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",pe)||e.unchangedPollThresholds;function P(J,w){return A.getEnvironmentVariable("".concat(J,"_").concat(w.toUpperCase()))}function D(J){var w;return j("Low"),j("Medium"),j("High"),w;function j(U){var z=P(J,U);z&&((w||(w={}))[U]=Number(z))}}function l(J,w){var j=D(J);if(j)return U("Low"),U("Medium"),U("High"),!0;return!1;function U(z){w[z]=j[z]||w[z]}}function _(J,w){var j=D(J);return(f||j)&&Q(j?Ve(Ve({},w),j):w)}}e.setCustomPollingValues=g;function S(A,f,P,D,l){for(var _=P,J=f.length;D&&J;U(),J--){var w=f[P];if(w){if(w.isClosed){f[P]=void 0;continue}}else continue;D--;var j=G(w,N(A,w.fileName));if(w.isClosed){f[P]=void 0;continue}l==null||l(w,P,j),f[P]&&(_<P&&(f[_]=w,f[P]=void 0),_++)}return P;function U(){P++,P===f.length&&(_<P&&(f.length=_),P=0,_=0)}}function H(A){var f=[],P=[],D=w(W.Low),l=w(W.Medium),_=w(W.High);return J;function J(de,ae,V){var le={fileName:de,callback:ae,unchangedPolls:0,mtime:N(A,de)};return f.push(le),oe(le,V),{close:function(){le.isClosed=!0,e.unorderedRemoveItem(f,le)}}}function w(de){var ae=[];return ae.pollingInterval=de,ae.pollIndex=0,ae.pollScheduled=!1,ae}function j(de){de.pollIndex=z(de,de.pollingInterval,de.pollIndex,F[de.pollingInterval]),de.length?m(de.pollingInterval):(e.Debug.assert(de.pollIndex===0),de.pollScheduled=!1)}function U(de){z(P,W.Low,0,P.length),j(de),!de.pollScheduled&&P.length&&m(W.Low)}function z(de,ae,V,le){return S(A,de,V,le,ke);function ke(Ue,He,ar){ar?(Ue.unchangedPolls=0,de!==P&&(de[He]=void 0,ve(Ue))):Ue.unchangedPolls!==e.unchangedPollThresholds[ae]?Ue.unchangedPolls++:de===P?(Ue.unchangedPolls=1,de[He]=void 0,oe(Ue,W.Low)):ae!==W.High&&(Ue.unchangedPolls++,de[He]=void 0,oe(Ue,ae===W.Low?W.Medium:W.High))}}function y(de){switch(de){case W.Low:return D;case W.Medium:return l;case W.High:return _}}function oe(de,ae){y(ae).push(de),ce(ae)}function ve(de){P.push(de),ce(W.Low)}function ce(de){y(de).pollScheduled||m(de)}function m(de){y(de).pollScheduled=A.setTimeout(de===W.Low?U:j,de,y(de))}}e.createDynamicPriorityPollingWatchFile=H;function se(A,f){var P=e.createMultiMap(),D=new e.Map,l=e.createGetCanonicalFileName(f);return _;function _(w,j,U,z){var y=l(w);P.add(y,j);var oe=e.getDirectoryPath(y)||".",ve=D.get(oe)||J(e.getDirectoryPath(w)||".",oe,z);return ve.referenceCount++,{close:function(){ve.referenceCount===1?(ve.close(),D.delete(oe)):ve.referenceCount--,P.remove(y,j)}}}function J(w,j,U){var z=A(w,1,function(y,oe){if(!!e.isString(oe)){var ve=e.getNormalizedAbsolutePath(oe,w),ce=ve&&P.get(l(ve));if(ce)for(var m=0,de=ce;m<de.length;m++){var ae=de[m];ae(ve,L.Changed)}}},!1,W.Medium,U);return z.referenceCount=0,D.set(j,z),z}}function p(A){var f=[],P=0,D;return l;function l(w,j){var U={fileName:w,callback:j,mtime:N(A,w)};return f.push(U),J(),{close:function(){U.isClosed=!0,e.unorderedRemoveItem(f,U)}}}function _(){D=void 0,P=S(A,f,P,F[W.Low]),J()}function J(){!f.length||D||(D=A.setTimeout(_,W.High))}}function C(A,f){var P=new e.Map,D=e.createMultiMap(),l=e.createGetCanonicalFileName(f);return function(_,J,w,j){var U=l(_),z=P.get(U);return z?z.refCount++:P.set(U,{watcher:A(_,function(y,oe){return e.forEach(D.get(U),function(ve){return ve(y,oe)})},w,j),refCount:1}),D.add(U,J),{close:function(){var y=e.Debug.checkDefined(P.get(U));D.remove(U,J),y.refCount--,!y.refCount&&(P.delete(U),e.closeFileWatcherOf(y))}}}}e.createSingleFileWatcherPerName=C;function G(A,f){var P=A.mtime.getTime(),D=f.getTime();return P!==D?(A.mtime=f,A.callback(A.fileName,E(P,D)),!0):!1}e.onWatchedFileStat=G;function E(A,f){return A===0?L.Created:f===0?L.Deleted:L.Changed}e.getFileWatcherEventKind=E,e.ignoredPaths=["/node_modules/.","/.git","/.#"];var ue=e.noop;function B(A){return ue(A)}e.sysLog=B;function re(A){ue=A}e.setSysLog=re;function M(A){var f=A.watchDirectory,P=A.useCaseSensitiveFileNames,D=A.getCurrentDirectory,l=A.getAccessibleSortedChildDirectories,_=A.directoryExists,J=A.realpath,w=A.setTimeout,j=A.clearTimeout,U=new e.Map,z=e.createMultiMap(),y=new e.Map,oe,ve=e.getStringComparer(!P),ce=e.createGetCanonicalFileName(P);return function(gr,me,Ge,er){return Ge?m(gr,er,me):f(gr,me,Ge,er)};function m(gr,me,Ge){var er=ce(gr),he=U.get(er);he?he.refCount++:(he={watcher:f(gr,function(ye){He(ye,me)||(me!=null&&me.synchronousWatchDirectory?(de(er,ye),Ue(gr,er,me)):ae(gr,er,ye,me))},!1,me),refCount:1,childWatches:e.emptyArray},U.set(er,he),Ue(gr,er,me));var we=Ge&&{dirName:gr,callback:Ge};return we&&z.add(er,we),{dirName:gr,close:function(){var ye=e.Debug.checkDefined(U.get(er));we&&z.remove(er,we),ye.refCount--,!ye.refCount&&(U.delete(er),e.closeFileWatcherOf(ye),ye.childWatches.forEach(e.closeFileWatcher))}}}function de(gr,me,Ge){var er,he;e.isString(me)?er=me:he=me,z.forEach(function(we,ye){var Se;if(!(he&&he.get(ye)===!0)&&(ye===gr||e.startsWith(gr,ye)&&gr[ye.length]===e.directorySeparator))if(he)if(Ge){var ge=he.get(ye);ge?(Se=ge).push.apply(Se,Ge):he.set(ye,Ge.slice())}else he.set(ye,!0);else we.forEach(function(Fe){var cr=Fe.callback;return cr(er)})})}function ae(gr,me,Ge,er){var he=U.get(me);if(he&&_(gr)){V(gr,me,Ge,er);return}de(me,Ge),ke(he)}function V(gr,me,Ge,er){var he=y.get(me);he?he.fileNames.push(Ge):y.set(me,{dirName:gr,options:er,fileNames:[Ge]}),oe&&(j(oe),oe=void 0),oe=w(le,1e3)}function le(){oe=void 0,B("sysLog:: onTimerToUpdateChildWatches:: ".concat(y.size));for(var gr=e.timestamp(),me=new e.Map;!oe&&y.size;){var Ge=y.entries().next();e.Debug.assert(!Ge.done);var er=Ge.value,he=er[0],we=er[1],ye=we.dirName,Se=we.options,ge=we.fileNames;y.delete(he);var Fe=Ue(ye,he,Se);de(he,me,Fe?void 0:ge)}B("sysLog:: invokingWatchers:: Elapsed:: ".concat(e.timestamp()-gr,"ms:: ").concat(y.size)),z.forEach(function(ur,Ir){var dr=me.get(Ir);dr&&ur.forEach(function(Br){var Tr=Br.callback,n=Br.dirName;e.isArray(dr)?dr.forEach(Tr):Tr(n)})});var cr=e.timestamp()-gr;B("sysLog:: Elapsed:: ".concat(cr,"ms:: onTimerToUpdateChildWatches:: ").concat(y.size," ").concat(oe))}function ke(gr){if(!!gr){var me=gr.childWatches;gr.childWatches=e.emptyArray;for(var Ge=0,er=me;Ge<er.length;Ge++){var he=er[Ge];he.close(),ke(U.get(ce(he.dirName)))}}}function Ue(gr,me,Ge){var er=U.get(me);if(!er)return!1;var he,we=e.enumerateInsertsAndDeletes(_(gr)?e.mapDefined(l(gr),function(ge){var Fe=e.getNormalizedAbsolutePath(ge,gr);return!He(Fe,Ge)&&ve(Fe,e.normalizePath(J(Fe)))===0?Fe:void 0}):e.emptyArray,er.childWatches,function(ge,Fe){return ve(ge,Fe.dirName)},ye,e.closeFileWatcher,Se);return er.childWatches=he||e.emptyArray,we;function ye(ge){var Fe=m(ge,Ge);Se(Fe)}function Se(ge){(he||(he=[])).push(ge)}}function He(gr,me){return e.some(e.ignoredPaths,function(Ge){return ar(gr,Ge)})||Y(gr,me,P,D)}function ar(gr,me){return e.stringContains(gr,me)?!0:P?!1:e.stringContains(ce(gr),me)}}e.createDirectoryWatcherSupportingRecursive=M;var x;(function(A){A[A.File=0]="File",A[A.Directory=1]="Directory"})(x=e.FileSystemEntryKind||(e.FileSystemEntryKind={}));function ie(A){return function(f,P){return A(P===L.Changed?"change":"rename","")}}e.createFileWatcherCallback=ie;function _e(A,f,P){return function(D){D==="rename"?f(A,P(A)?L.Created:L.Deleted):f(A,L.Changed)}}function Y(A,f,P,D){return((f==null?void 0:f.excludeDirectories)||(f==null?void 0:f.excludeFiles))&&(e.matchesExclude(A,f==null?void 0:f.excludeFiles,P,D())||e.matchesExclude(A,f==null?void 0:f.excludeDirectories,P,D()))}function Z(A,f,P,D,l){return function(_,J){if(_==="rename"){var w=J?e.normalizePath(e.combinePaths(A,J)):A;(!J||!Y(w,P,D,l))&&f(w)}}}function k(A){var f=A.pollingWatchFile,P=A.getModifiedTime,D=A.setTimeout,l=A.clearTimeout,_=A.fsWatch,J=A.fileExists,w=A.useCaseSensitiveFileNames,j=A.getCurrentDirectory,U=A.fsSupportsRecursiveFsWatch,z=A.directoryExists,y=A.getAccessibleSortedChildDirectories,oe=A.realpath,ve=A.tscWatchFile,ce=A.useNonPollingWatchers,m=A.tscWatchDirectory,de=A.defaultWatchFileKind,ae,V,le,ke;return{watchFile:Ue,watchDirectory:Ge};function Ue(we,ye,Se,ge){ge=gr(ge,ce);var Fe=e.Debug.checkDefined(ge.watchFile);switch(Fe){case e.WatchFileKind.FixedPollingInterval:return f(we,ye,W.Low,void 0);case e.WatchFileKind.PriorityPollingInterval:return f(we,ye,Se,void 0);case e.WatchFileKind.DynamicPriorityPolling:return He()(we,ye,Se,void 0);case e.WatchFileKind.FixedChunkSizePolling:return ar()(we,ye,void 0,void 0);case e.WatchFileKind.UseFsEvents:return _(we,0,_e(we,ye,J),!1,Se,e.getFallbackOptions(ge));case e.WatchFileKind.UseFsEventsOnParentDirectory:return le||(le=se(_,w)),le(we,ye,Se,e.getFallbackOptions(ge));default:e.Debug.assertNever(Fe)}}function He(){return ae||(ae=H({getModifiedTime:P,setTimeout:D}))}function ar(){return V||(V=p({getModifiedTime:P,setTimeout:D}))}function gr(we,ye){if(we&&we.watchFile!==void 0)return we;switch(ve){case"PriorityPollingInterval":return{watchFile:e.WatchFileKind.PriorityPollingInterval};case"DynamicPriorityPolling":return{watchFile:e.WatchFileKind.DynamicPriorityPolling};case"UseFsEvents":return me(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.PriorityInterval,we);case"UseFsEventsWithFallbackDynamicPolling":return me(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.DynamicPriority,we);case"UseFsEventsOnParentDirectory":ye=!0;default:return ye?me(e.WatchFileKind.UseFsEventsOnParentDirectory,e.PollingWatchKind.PriorityInterval,we):{watchFile:(de==null?void 0:de())||e.WatchFileKind.FixedPollingInterval}}}function me(we,ye,Se){var ge=Se==null?void 0:Se.fallbackPolling;return{watchFile:we,fallbackPolling:ge===void 0?ye:ge}}function Ge(we,ye,Se,ge){return U?_(we,1,Z(we,ye,ge,w,j),Se,W.Medium,e.getFallbackOptions(ge)):(ke||(ke=M({useCaseSensitiveFileNames:w,getCurrentDirectory:j,directoryExists:z,getAccessibleSortedChildDirectories:y,watchDirectory:er,realpath:oe,setTimeout:D,clearTimeout:l})),ke(we,ye,Se,ge))}function er(we,ye,Se,ge){e.Debug.assert(!Se);var Fe=he(ge),cr=e.Debug.checkDefined(Fe.watchDirectory);switch(cr){case e.WatchDirectoryKind.FixedPollingInterval:return f(we,function(){return ye(we)},W.Medium,void 0);case e.WatchDirectoryKind.DynamicPriorityPolling:return He()(we,function(){return ye(we)},W.Medium,void 0);case e.WatchDirectoryKind.FixedChunkSizePolling:return ar()(we,function(){return ye(we)},void 0,void 0);case e.WatchDirectoryKind.UseFsEvents:return _(we,1,Z(we,ye,ge,w,j),Se,W.Medium,e.getFallbackOptions(Fe));default:e.Debug.assertNever(cr)}}function he(we){if(we&&we.watchDirectory!==void 0)return we;switch(m){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:e.WatchDirectoryKind.FixedPollingInterval};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:e.WatchDirectoryKind.DynamicPriorityPolling};default:var ye=we==null?void 0:we.fallbackPolling;return{watchDirectory:e.WatchDirectoryKind.UseFsEvents,fallbackPolling:ye!==void 0?ye:void 0}}}}e.createSystemWatchFunctions=k;function I(A){var f=A.writeFile;A.writeFile=function(P,D,l){return e.writeFileEnsuringDirectories(P,D,!!l,function(_,J,w){return f.call(A,_,J,w)},function(_){return A.createDirectory(_)},function(_){return A.directoryExists(_)})}}e.patchWriteFileEnsuringDirectory=I;function ne(){if(!(typeof yl>"u")){var A=yl.version;if(!!A){var f=A.indexOf(".");if(f!==-1)return parseInt(A.substring(1,f))}}}e.getNodeMajorVersion=ne,e.sys=void 0;function ee(A){e.sys=void 0}e.setSys=ee,e.sys&&e.sys.getEnvironmentVariable&&(g(e.sys),e.Debug.setAssertionLevel(/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0)),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0)})(Pe||(Pe={}));var Pe;(function(e){e.directorySeparator="/",e.altDirectorySeparator="\\";var a="://",O=/\\/g;function L(me){return me===47||me===92}e.isAnyDirectorySeparator=L;function W(me){return E(me)<0}e.isUrl=W;function N(me){return E(me)>0}e.isRootedDiskPath=N;function Q(me){var Ge=E(me);return Ge>0&&Ge===me.length}e.isDiskPathRoot=Q;function pe(me){return E(me)!==0}e.pathIsAbsolute=pe;function F(me){return/^\.\.?($|[\\/])/.test(me)}e.pathIsRelative=F;function g(me){return!pe(me)&&!F(me)}e.pathIsBareSpecifier=g;function S(me){return e.stringContains(re(me),".")}e.hasExtension=S;function H(me,Ge){return me.length>Ge.length&&e.endsWith(me,Ge)}e.fileExtensionIs=H;function se(me,Ge){for(var er=0,he=Ge;er<he.length;er++){var we=he[er];if(H(me,we))return!0}return!1}e.fileExtensionIsOneOf=se;function p(me){return me.length>0&&L(me.charCodeAt(me.length-1))}e.hasTrailingDirectorySeparator=p;function C(me){return me>=97&&me<=122||me>=65&&me<=90}function G(me,Ge){var er=me.charCodeAt(Ge);if(er===58)return Ge+1;if(er===37&&me.charCodeAt(Ge+1)===51){var he=me.charCodeAt(Ge+2);if(he===97||he===65)return Ge+3}return-1}function E(me){if(!me)return 0;var Ge=me.charCodeAt(0);if(Ge===47||Ge===92){if(me.charCodeAt(1)!==Ge)return 1;var er=me.indexOf(Ge===47?e.directorySeparator:e.altDirectorySeparator,2);return er<0?me.length:er+1}if(C(Ge)&&me.charCodeAt(1)===58){var he=me.charCodeAt(2);if(he===47||he===92)return 3;if(me.length===2)return 2}var we=me.indexOf(a);if(we!==-1){var ye=we+a.length,Se=me.indexOf(e.directorySeparator,ye);if(Se!==-1){var ge=me.slice(0,we),Fe=me.slice(ye,Se);if(ge==="file"&&(Fe===""||Fe==="localhost")&&C(me.charCodeAt(Se+1))){var cr=G(me,Se+2);if(cr!==-1){if(me.charCodeAt(cr)===47)return~(cr+1);if(cr===me.length)return~cr}}return~(Se+1)}return~me.length}return 0}function ue(me){var Ge=E(me);return Ge<0?~Ge:Ge}e.getRootLength=ue;function B(me){me=k(me);var Ge=ue(me);return Ge===me.length?me:(me=w(me),me.slice(0,Math.max(Ge,me.lastIndexOf(e.directorySeparator))))}e.getDirectoryPath=B;function re(me,Ge,er){me=k(me);var he=ue(me);if(he===me.length)return"";me=w(me);var we=me.slice(Math.max(ue(me),me.lastIndexOf(e.directorySeparator)+1)),ye=Ge!==void 0&&er!==void 0?ie(we,Ge,er):void 0;return ye?we.slice(0,we.length-ye.length):we}e.getBaseFileName=re;function M(me,Ge,er){if(e.startsWith(Ge,".")||(Ge="."+Ge),me.length>=Ge.length&&me.charCodeAt(me.length-Ge.length)===46){var he=me.slice(me.length-Ge.length);if(er(he,Ge))return he}}function x(me,Ge,er){if(typeof Ge=="string")return M(me,Ge,er)||"";for(var he=0,we=Ge;he<we.length;he++){var ye=we[he],Se=M(me,ye,er);if(Se)return Se}return""}function ie(me,Ge,er){if(Ge)return x(w(me),Ge,er?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive);var he=re(me),we=he.lastIndexOf(".");return we>=0?he.substring(we):""}e.getAnyExtensionFromPath=ie;function _e(me,Ge){var er=me.substring(0,Ge),he=me.substring(Ge).split(e.directorySeparator);return he.length&&!e.lastOrUndefined(he)&&he.pop(),qe([er],he,!0)}function Y(me,Ge){return Ge===void 0&&(Ge=""),me=ne(Ge,me),_e(me,ue(me))}e.getPathComponents=Y;function Z(me){if(me.length===0)return"";var Ge=me[0]&&j(me[0]);return Ge+me.slice(1).join(e.directorySeparator)}e.getPathFromPathComponents=Z;function k(me){var Ge=me.indexOf("\\");return Ge===-1?me:(O.lastIndex=Ge,me.replace(O,e.directorySeparator))}e.normalizeSlashes=k;function I(me){if(!e.some(me))return[];for(var Ge=[me[0]],er=1;er<me.length;er++){var he=me[er];if(!!he&&he!=="."){if(he===".."){if(Ge.length>1){if(Ge[Ge.length-1]!==".."){Ge.pop();continue}}else if(Ge[0])continue}Ge.push(he)}}return Ge}e.reducePathComponents=I;function ne(me){for(var Ge=[],er=1;er<arguments.length;er++)Ge[er-1]=arguments[er];me&&(me=k(me));for(var he=0,we=Ge;he<we.length;he++){var ye=we[he];!ye||(ye=k(ye),!me||ue(ye)!==0?me=ye:me=j(me)+ye)}return me}e.combinePaths=ne;function ee(me){for(var Ge=[],er=1;er<arguments.length;er++)Ge[er-1]=arguments[er];return P(e.some(Ge)?ne.apply(void 0,qe([me],Ge,!1)):k(me))}e.resolvePath=ee;function A(me,Ge){return I(Y(me,Ge))}e.getNormalizedPathComponents=A;function f(me,Ge){return Z(A(me,Ge))}e.getNormalizedAbsolutePath=f;function P(me){if(me=k(me),!y.test(me))return me;var Ge=me.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(Ge!==me&&(me=Ge,!y.test(me)))return me;var er=Z(I(Y(me)));return er&&p(me)?j(er):er}e.normalizePath=P;function D(me){return me.length===0?"":me.slice(1).join(e.directorySeparator)}function l(me,Ge){return D(A(me,Ge))}e.getNormalizedAbsolutePathWithoutRoot=l;function _(me,Ge,er){var he=N(me)?P(me):f(me,Ge);return er(he)}e.toPath=_;function J(me){me=k(me);var Ge=I(Y(me)),er=Ge[0],he=Ge.slice(1);if(he.length){var we=er+he.join(e.directorySeparator);return{path:p(me)?j(we):we,parts:he}}else return{path:er,parts:he}}e.normalizePathAndParts=J;function w(me){return p(me)?me.substr(0,me.length-1):me}e.removeTrailingDirectorySeparator=w;function j(me){return p(me)?me:me+e.directorySeparator}e.ensureTrailingDirectorySeparator=j;function U(me){return!pe(me)&&!F(me)?"./"+me:me}e.ensurePathIsNonModuleName=U;function z(me,Ge,er,he){var we=er!==void 0&&he!==void 0?ie(me,er,he):ie(me);return we?me.slice(0,me.length-we.length)+(e.startsWith(Ge,".")?Ge:"."+Ge):me}e.changeAnyExtension=z;var y=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/;function oe(me,Ge,er){if(me===Ge)return 0;if(me===void 0)return-1;if(Ge===void 0)return 1;var he=me.substring(0,ue(me)),we=Ge.substring(0,ue(Ge)),ye=e.compareStringsCaseInsensitive(he,we);if(ye!==0)return ye;var Se=me.substring(he.length),ge=Ge.substring(we.length);if(!y.test(Se)&&!y.test(ge))return er(Se,ge);for(var Fe=I(Y(me)),cr=I(Y(Ge)),ur=Math.min(Fe.length,cr.length),Ir=1;Ir<ur;Ir++){var dr=er(Fe[Ir],cr[Ir]);if(dr!==0)return dr}return e.compareValues(Fe.length,cr.length)}function ve(me,Ge){return oe(me,Ge,e.compareStringsCaseSensitive)}e.comparePathsCaseSensitive=ve;function ce(me,Ge){return oe(me,Ge,e.compareStringsCaseInsensitive)}e.comparePathsCaseInsensitive=ce;function m(me,Ge,er,he){return typeof er=="string"?(me=ne(er,me),Ge=ne(er,Ge)):typeof er=="boolean"&&(he=er),oe(me,Ge,e.getStringComparer(he))}e.comparePaths=m;function de(me,Ge,er,he){if(typeof er=="string"?(me=ne(er,me),Ge=ne(er,Ge)):typeof er=="boolean"&&(he=er),me===void 0||Ge===void 0)return!1;if(me===Ge)return!0;var we=I(Y(me)),ye=I(Y(Ge));if(ye.length<we.length)return!1;for(var Se=he?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,ge=0;ge<we.length;ge++){var Fe=ge===0?e.equateStringsCaseInsensitive:Se;if(!Fe(we[ge],ye[ge]))return!1}return!0}e.containsPath=de;function ae(me,Ge,er){var he=er(me),we=er(Ge);return e.startsWith(he,we+"/")||e.startsWith(he,we+"\\")}e.startsWithDirectory=ae;function V(me,Ge,er,he){var we=I(Y(me)),ye=I(Y(Ge)),Se;for(Se=0;Se<we.length&&Se<ye.length;Se++){var ge=he(we[Se]),Fe=he(ye[Se]),cr=Se===0?e.equateStringsCaseInsensitive:er;if(!cr(ge,Fe))break}if(Se===0)return ye;for(var ur=ye.slice(Se),Ir=[];Se<we.length;Se++)Ir.push("..");return qe(qe([""],Ir,!0),ur,!0)}e.getPathComponentsRelativeTo=V;function le(me,Ge,er){e.Debug.assert(ue(me)>0==ue(Ge)>0,"Paths must either both be absolute or both be relative");var he=typeof er=="function"?er:e.identity,we=typeof er=="boolean"?er:!1,ye=V(me,Ge,we?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,he);return Z(ye)}e.getRelativePathFromDirectory=le;function ke(me,Ge,er){return N(me)?He(Ge,me,Ge,er,!1):me}e.convertToRelativePath=ke;function Ue(me,Ge,er){return U(le(B(me),Ge,er))}e.getRelativePathFromFile=Ue;function He(me,Ge,er,he,we){var ye=V(ee(er,me),ee(er,Ge),e.equateStringsCaseSensitive,he),Se=ye[0];if(we&&N(Se)){var ge=Se.charAt(0)===e.directorySeparator?"file://":"file:///";ye[0]=ge+Se}return Z(ye)}e.getRelativePathToDirectoryOrUrl=He;function ar(me,Ge){for(;;){var er=Ge(me);if(er!==void 0)return er;var he=B(me);if(he===me)return;me=he}}e.forEachAncestorDirectory=ar;function gr(me){return e.endsWith(me,"/node_modules")}e.isNodeModulesDirectory=gr})(Pe||(Pe={}));var Pe;(function(e){function a(O,L,W,N,Q,pe,F){return{code:O,category:L,key:W,message:N,reportsUnnecessary:Q,elidedInCompatabilityPyramid:pe,reportsDeprecated:F}}e.Diagnostics={Unterminated_string_literal:a(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:a(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:a(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:a(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:a(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:a(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:a(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:a(1011,e.DiagnosticCategory.Error,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:a(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(1022,e.DiagnosticCategory.Error,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:a(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:a(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:a(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:a(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:a(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:a(1031,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:a(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:a(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:a(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:a(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:a(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:a(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_here:a(1042,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:a(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."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:a(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:a(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:a(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:a(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:a(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:a(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:a(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:a(1063,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:a(1064,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:a(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:a(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:a(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:a(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:a(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:a(1103,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:a(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:a(1105,e.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:a(1106,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:a(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:a(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:a(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:a(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:a(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:a(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:a(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:a(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:a(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:a(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:a(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:a(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:a(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:a(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:a(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:a(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:a(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:a(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:a(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:a(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:a(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:a(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:a(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:a(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:a(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:a(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:a(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:a(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:a(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:a(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:a(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:a(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:a(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:a(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:a(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:a(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:a(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:a(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:a(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:a(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:a(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:a(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:a(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:a(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:a(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:a(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:a(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:a(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:a(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:a(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:a(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:a(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:a(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:a(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:a(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:a(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:a(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:a(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:a(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:a(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:a(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:a(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:a(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:a(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:a(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:a(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:a(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:a(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:a(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:a(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:a(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:a(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:a(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:a(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:a(1195,e.DiagnosticCategory.Error,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:a(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:a(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:a(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:a(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:a(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:a(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:a(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:a(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:a(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:a(1207,e.DiagnosticCategory.Error,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module:a(1208,e.DiagnosticCategory.Error,"_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208","'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module."),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:a(1210,e.DiagnosticCategory.Error,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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_not_allowed_in_an_ambient_context:a(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:a(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:a(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:a(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:a(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:a(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:a(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:a(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:a(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:a(1230,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:a(1231,e.DiagnosticCategory.Error,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:a(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:a(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:a(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_at_the_top_level_of_a_namespace_or_module:a(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:a(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:a(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:a(1257,e.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:a(1258,e.DiagnosticCategory.Error,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:a(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:a(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:a(1261,e.DiagnosticCategory.Error,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:a(1262,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:a(1263,e.DiagnosticCategory.Error,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:a(1264,e.DiagnosticCategory.Error,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:a(1265,e.DiagnosticCategory.Error,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:a(1266,e.DiagnosticCategory.Error,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:a(1267,e.DiagnosticCategory.Error,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:a(1268,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided:a(1269,e.DiagnosticCategory.Error,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269","Cannot use 'export import' on a type or type-only namespace when the '--isolatedModules' flag is provided."),Decorator_function_return_type_0_is_not_assignable_to_type_1:a(1270,e.DiagnosticCategory.Error,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:a(1271,e.DiagnosticCategory.Error,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),with_statements_are_not_allowed_in_an_async_function_block:a(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:a(1308,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:a(1312,e.DiagnosticCategory.Error,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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_es2022_esnext_commonjs_amd_system_umd_node12_or_nodenext:a(1323,e.DiagnosticCategory.Error,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node12', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_or_nodenext:a(1324,e.DiagnosticCategory.Error,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_or_nodenext_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext' or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:a(1325,e.DiagnosticCategory.Error,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:a(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments."),String_literal_with_double_quotes_expected:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(1335,e.DiagnosticCategory.Error,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:a(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:a(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:a(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:a(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:a(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node12_or_nodenext:a(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node12', or 'nodenext'."),A_label_is_not_allowed_here:a(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:a(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:a(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:a(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:a(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:a(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:a(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:a(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:a(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:a(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:a(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:a(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:a(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Did_you_mean_0:a(1369,e.DiagnosticCategory.Message,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:a(1371,e.DiagnosticCategory.Error,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:a(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:a(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:a(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:a(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:a(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_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:a(1378,e.DiagnosticCategory.Error,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_o_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:a(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:a(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:a(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `&rbrace;`?"),Unexpected_token_Did_you_mean_or_gt:a(1382,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `&gt;`?"),Only_named_exports_may_use_export_type:a(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:a(1384,e.DiagnosticCategory.Error,"A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list_1384","A 'new' expression with type arguments must always be followed by a parenthesized argument list."),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:a(1385,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:a(1386,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:a(1387,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:a(1388,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:a(1389,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:a(1390,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:a(1392,e.DiagnosticCategory.Error,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:a(1393,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:a(1394,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:a(1395,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:a(1396,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:a(1397,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:a(1398,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:a(1399,e.DiagnosticCategory.Message,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:a(1400,e.DiagnosticCategory.Message,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:a(1401,e.DiagnosticCategory.Message,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:a(1402,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:a(1403,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:a(1404,e.DiagnosticCategory.Message,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:a(1405,e.DiagnosticCategory.Message,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:a(1406,e.DiagnosticCategory.Message,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:a(1407,e.DiagnosticCategory.Message,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:a(1408,e.DiagnosticCategory.Message,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:a(1409,e.DiagnosticCategory.Message,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:a(1410,e.DiagnosticCategory.Message,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:a(1411,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:a(1412,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:a(1413,e.DiagnosticCategory.Message,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:a(1414,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:a(1415,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:a(1416,e.DiagnosticCategory.Message,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:a(1417,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:a(1418,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:a(1419,e.DiagnosticCategory.Message,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:a(1420,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:a(1421,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:a(1422,e.DiagnosticCategory.Message,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:a(1423,e.DiagnosticCategory.Message,"File_is_library_specified_here_1423","File is library specified here."),Default_library:a(1424,e.DiagnosticCategory.Message,"Default_library_1424","Default library"),Default_library_for_target_0:a(1425,e.DiagnosticCategory.Message,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:a(1426,e.DiagnosticCategory.Message,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:a(1427,e.DiagnosticCategory.Message,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:a(1428,e.DiagnosticCategory.Message,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:a(1429,e.DiagnosticCategory.Message,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:a(1430,e.DiagnosticCategory.Message,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:a(1431,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:a(1432,e.DiagnosticCategory.Error,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or__1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Decorators_may_not_be_applied_to_this_parameters:a(1433,e.DiagnosticCategory.Error,"Decorators_may_not_be_applied_to_this_parameters_1433","Decorators may not be applied to 'this' parameters."),Unexpected_keyword_or_identifier:a(1434,e.DiagnosticCategory.Error,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:a(1435,e.DiagnosticCategory.Error,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:a(1436,e.DiagnosticCategory.Error,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:a(1437,e.DiagnosticCategory.Error,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:a(1438,e.DiagnosticCategory.Error,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:a(1439,e.DiagnosticCategory.Error,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:a(1440,e.DiagnosticCategory.Error,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:a(1441,e.DiagnosticCategory.Error,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:a(1442,e.DiagnosticCategory.Error,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:a(1443,e.DiagnosticCategory.Error,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:a(1444,e.DiagnosticCategory.Error,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:a(1446,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled:a(1448,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when 'isolatedModules' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:a(1449,e.DiagnosticCategory.Message,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments:a(1450,e.DiagnosticCategory.Message,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:a(1451,e.DiagnosticCategory.Error,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:a(1470,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_synchronously_Use_dynamic_import_instead:a(1471,e.DiagnosticCategory.Error,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead."),catch_or_finally_expected:a(1472,e.DiagnosticCategory.Error,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:a(1473,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:a(1474,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),The_types_of_0_are_incompatible_between_these_types:a(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:a(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:a(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:a(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:a(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:a(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),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:a(2206,e.DiagnosticCategory.Error,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:a(2207,e.DiagnosticCategory.Error,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),Duplicate_identifier_0:a(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:a(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:a(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:a(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:a(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:a(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:a(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:a(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:a(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:a(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:a(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:a(2311,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:a(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:a(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:a(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:a(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:a(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:a(2329,e.DiagnosticCategory.Error,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:a(2330,e.DiagnosticCategory.Error,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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_a_private_identifier_or_of_type_any_string_number_or_symbol:a(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or__2360","The left-hand side of an 'in' expression must be a private identifier or of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_not_be_a_primitive:a(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_not_be_a_primitive_2361","The right-hand side of an 'in' expression must not be a primitive."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:a(2373,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:a(2374,e.DiagnosticCategory.Error,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:a(2375,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:a(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:a(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:a(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:a(2379,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:a(2380,e.DiagnosticCategory.Error,"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380","The return type of a 'get' accessor must be assignable to its 'set' accessor type"),Overload_signatures_must_all_be_exported_or_non_exported:a(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:a(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:a(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:a(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:a(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:a(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:a(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:a(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:a(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:a(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:a(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:a(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:a(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:a(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:a(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:a(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:a(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:a(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."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:a(2401,e.DiagnosticCategory.Error,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:a(2412,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:a(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:a(2413,e.DiagnosticCategory.Error,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:a(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:a(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:a(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:a(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:a(2418,e.DiagnosticCategory.Error,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:a(2419,e.DiagnosticCategory.Error,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:a(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:a(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:a(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:a(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:a(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:a(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:a(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:a(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(2445,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:a(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:a(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:a(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:a(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:a(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:a(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:a(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:a(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:a(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:a(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:a(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:a(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:a(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:a(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:a(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:a(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:a(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'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:a(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:a(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:a(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:a(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:a(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:a(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."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:a(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:a(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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."),Index_signature_in_type_0_only_permits_reading:a(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:a(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:a(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:a(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:a(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:a(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:a(2549,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:a(2550,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:a(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:a(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:a(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:a(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:a(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:a(2556,e.DiagnosticCategory.Error,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(2567,e.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:a(2568,e.DiagnosticCategory.Error,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:a(2569,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterati_2569","Type '{0}' is not an array type or a string type. Use compiler option '--downlevelIteration' to allow iterating of iterators."),Could_not_find_name_0_Did_you_mean_1:a(2570,e.DiagnosticCategory.Error,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:a(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:a(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:a(2575,e.DiagnosticCategory.Error,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:a(2576,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:a(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:a(2578,e.DiagnosticCategory.Error,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:a(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:a(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:a(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:a(2583,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:a(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:a(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."),Cannot_assign_to_0_because_it_is_a_constant:a(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:a(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:a(2590,e.DiagnosticCategory.Error,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:a(2591,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:a(2592,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:a(2593,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:a(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:a(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:a(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:a(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:a(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_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:a(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:a(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:a(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."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(2617,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:a(2618,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:a(2619,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:a(2620,e.DiagnosticCategory.Error,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:a(2621,e.DiagnosticCategory.Error,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:a(2623,e.DiagnosticCategory.Error,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:a(2624,e.DiagnosticCategory.Error,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:a(2625,e.DiagnosticCategory.Error,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:a(2626,e.DiagnosticCategory.Error,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:a(2627,e.DiagnosticCategory.Error,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:a(2628,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:a(2629,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:a(2630,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:a(2631,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:a(2632,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:a(2633,e.DiagnosticCategory.Error,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:a(2634,e.DiagnosticCategory.Error,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:a(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:a(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:a(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:a(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}'."),JSX_expressions_must_have_one_parent_element:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:a(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:a(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:a(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:a(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:a(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:a(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:a(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:a(2690,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(2723,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:a(2724,e.DiagnosticCategory.Error,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:a(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:a(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:a(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:a(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:a(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:a(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:a(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:a(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:a(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:a(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:a(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:a(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:a(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:a(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:a(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:a(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:a(2773,e.DiagnosticCategory.Error,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:a(2774,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(2789,e.DiagnosticCategory.Error,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:a(2790,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:a(2791,e.DiagnosticCategory.Error,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:a(2792,e.DiagnosticCategory.Error,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:a(2793,e.DiagnosticCategory.Error,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:a(2794,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:a(2795,e.DiagnosticCategory.Error,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:a(2796,e.DiagnosticCategory.Error,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:a(2797,e.DiagnosticCategory.Error,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:a(2798,e.DiagnosticCategory.Error,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:a(2799,e.DiagnosticCategory.Error,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:a(2800,e.DiagnosticCategory.Error,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:a(2801,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:a(2802,e.DiagnosticCategory.Error,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:a(2803,e.DiagnosticCategory.Error,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:a(2804,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:a(2806,e.DiagnosticCategory.Error,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:a(2807,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:a(2808,e.DiagnosticCategory.Error,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses:a(2809,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses."),Initializer_for_property_0:a(2811,e.DiagnosticCategory.Error,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:a(2812,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:a(2813,e.DiagnosticCategory.Error,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:a(2814,e.DiagnosticCategory.Error,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:a(2815,e.DiagnosticCategory.Error,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:a(2816,e.DiagnosticCategory.Error,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:a(2817,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:a(2818,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:a(2819,e.DiagnosticCategory.Error,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:a(2820,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:a(2821,e.DiagnosticCategory.Error,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:a(2822,e.DiagnosticCategory.Error,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Cannot_find_namespace_0_Did_you_mean_1:a(2833,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node12_or_nodenext_Consider_adding_an_extension_to_the_import_path:a(2834,e.DiagnosticCategory.Error,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node12_or_nodenext_Did_you_mean_0:a(2835,e.DiagnosticCategory.Error,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:a(2836,e.DiagnosticCategory.Error,"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836","Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:a(2837,e.DiagnosticCategory.Error,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),Import_declaration_0_is_using_private_name_1:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(4020,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:a(4021,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(4083,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:a(4084,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(4110,e.DiagnosticCategory.Error,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:a(4111,e.DiagnosticCategory.Error,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:a(4112,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:a(4113,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:a(4114,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:a(4115,e.DiagnosticCategory.Error,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:a(4116,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:a(4117,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:a(4118,e.DiagnosticCategory.Error,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:a(4119,e.DiagnosticCategory.Error,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:a(4120,e.DiagnosticCategory.Error,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:a(4121,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:a(4122,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:a(4123,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:a(4124,e.DiagnosticCategory.Error,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),The_current_host_does_not_support_the_0_option:a(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:a(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:a(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:a(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:a(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:a(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:a(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:a(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:a(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:a(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:a(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:a(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:a(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:a(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:a(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:a(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:a(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:a(5084,e.DiagnosticCategory.Error,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:a(5085,e.DiagnosticCategory.Error,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:a(5086,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:a(5087,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:a(5088,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:a(5089,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:a(5090,e.DiagnosticCategory.Error,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled:a(5091,e.DiagnosticCategory.Error,"Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when 'isolatedModules' is enabled."),The_root_value_of_a_0_file_must_be_an_object:a(5092,e.DiagnosticCategory.Error,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:a(5093,e.DiagnosticCategory.Error,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:a(5094,e.DiagnosticCategory.Error,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later:a(5095,e.DiagnosticCategory.Error,"Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option 'preserveValueImports' can only be used when 'module' is set to 'es2015' or later."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:a(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:a(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:a(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:a(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:a(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:a(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:a(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:a(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:a(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:a(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:a(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:a(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:a(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:a(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:a(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:a(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:a(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:a(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:a(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:a(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:a(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:a(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:a(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:a(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:a(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:a(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:a(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:a(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:a(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:a(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:a(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:a(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:a(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:a(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:a(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:a(6041,e.DiagnosticCategory.Message,"Errors_Files_6041","Errors  Files"),Generates_corresponding_map_file:a(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:a(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:a(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:a(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:a(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}'."),Unable_to_open_file_0:a(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:a(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:a(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:a(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:a(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:a(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:a(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:a(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:a(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:a(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:a(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:a(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:a(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:a(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:a(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:a(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:a(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:a(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:a(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:a(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:a(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:a(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:a(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:a(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:a(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:a(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:a(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:a(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:a(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:a(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}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:a(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Do_not_truncate_error_messages:a(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:a(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:a(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:a(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:a(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:a(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:a(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:a(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:a(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:a(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:a(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:a(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:a(6184,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:a(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:a(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:a(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:a(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:a(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:a(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:a(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:a(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:a(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:a(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:a(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:a(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:a(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:a(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:a(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:a(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:a(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:a(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:a(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:a(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:a(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:a(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:a(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:a(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:a(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:a(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:a(6224,e.DiagnosticCategory.Message,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:a(6225,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:a(6226,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:a(6227,e.DiagnosticCategory.Message,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:a(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:a(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:a(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:a(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:a(6233,e.DiagnosticCategory.Error,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:a(6234,e.DiagnosticCategory.Error,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:a(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:a(6236,e.DiagnosticCategory.Error,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:a(6237,e.DiagnosticCategory.Message,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:a(6238,e.DiagnosticCategory.Error,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:a(6239,e.DiagnosticCategory.Message,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:a(6240,e.DiagnosticCategory.Message,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:a(6241,e.DiagnosticCategory.Message,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:a(6242,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:a(6243,e.DiagnosticCategory.Message,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:a(6244,e.DiagnosticCategory.Message,"Modules_6244","Modules"),File_Management:a(6245,e.DiagnosticCategory.Message,"File_Management_6245","File Management"),Emit:a(6246,e.DiagnosticCategory.Message,"Emit_6246","Emit"),JavaScript_Support:a(6247,e.DiagnosticCategory.Message,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:a(6248,e.DiagnosticCategory.Message,"Type_Checking_6248","Type Checking"),Editor_Support:a(6249,e.DiagnosticCategory.Message,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:a(6250,e.DiagnosticCategory.Message,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:a(6251,e.DiagnosticCategory.Message,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:a(6252,e.DiagnosticCategory.Message,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:a(6253,e.DiagnosticCategory.Message,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:a(6254,e.DiagnosticCategory.Message,"Language_and_Environment_6254","Language and Environment"),Projects:a(6255,e.DiagnosticCategory.Message,"Projects_6255","Projects"),Output_Formatting:a(6256,e.DiagnosticCategory.Message,"Output_Formatting_6256","Output Formatting"),Completeness:a(6257,e.DiagnosticCategory.Message,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:a(6258,e.DiagnosticCategory.Error,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_1:a(6259,e.DiagnosticCategory.Message,"Found_1_error_in_1_6259","Found 1 error in {1}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:a(6260,e.DiagnosticCategory.Message,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:a(6261,e.DiagnosticCategory.Message,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:a(6270,e.DiagnosticCategory.Message,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:a(6271,e.DiagnosticCategory.Message,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:a(6272,e.DiagnosticCategory.Message,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:a(6273,e.DiagnosticCategory.Message,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:a(6274,e.DiagnosticCategory.Message,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:a(6275,e.DiagnosticCategory.Message,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:a(6276,e.DiagnosticCategory.Message,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Enable_project_compilation:a(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:a(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:a(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:a(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:a(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:a(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:a(6309,e.DiagnosticCategory.Error,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:a(6310,e.DiagnosticCategory.Error,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:a(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:a(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:a(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:a(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:a(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:a(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:a(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects"),Show_what_would_be_built_or_deleted_if_specified_with_clean:a(6367,e.DiagnosticCategory.Message,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(6378,e.DiagnosticCategory.Message,"Enable_incremental_compilation_6378","Enable incremental compilation"),Composite_projects_may_not_disable_incremental_compilation:a(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:a(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:a(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:a(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:a(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:a(6384,e.DiagnosticCategory.Message,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:a(6385,e.DiagnosticCategory.Suggestion,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:a(6386,e.DiagnosticCategory.Message,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:a(6387,e.DiagnosticCategory.Suggestion,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:a(6388,e.DiagnosticCategory.Message,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:a(6389,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:a(6390,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:a(6391,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:a(6392,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:a(6393,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:a(6394,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:a(6395,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:a(6396,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:a(6397,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:a(6398,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:a(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:a(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:a(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:a(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:a(6504,e.DiagnosticCategory.Error,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:a(6505,e.DiagnosticCategory.Message,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:a(6506,e.DiagnosticCategory.Message,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:a(6600,e.DiagnosticCategory.Message,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:a(6601,e.DiagnosticCategory.Message,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:a(6602,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:a(6603,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:a(6604,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:a(6605,e.DiagnosticCategory.Message,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:a(6606,e.DiagnosticCategory.Message,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use `incremental` and `watch` mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:a(6607,e.DiagnosticCategory.Message,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:a(6608,e.DiagnosticCategory.Message,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:a(6609,e.DiagnosticCategory.Message,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:a(6611,e.DiagnosticCategory.Message,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:a(6612,e.DiagnosticCategory.Message,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:a(6613,e.DiagnosticCategory.Message,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:a(6614,e.DiagnosticCategory.Message,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:a(6615,e.DiagnosticCategory.Message,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:a(6616,e.DiagnosticCategory.Message,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:a(6617,e.DiagnosticCategory.Message,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:a(6618,e.DiagnosticCategory.Message,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:a(6619,e.DiagnosticCategory.Message,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:a(6620,e.DiagnosticCategory.Message,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects"),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:a(6621,e.DiagnosticCategory.Message,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:a(6622,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:a(6623,e.DiagnosticCategory.Message,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:a(6624,e.DiagnosticCategory.Message,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:a(6625,e.DiagnosticCategory.Message,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:a(6626,e.DiagnosticCategory.Message,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility."),Filters_results_from_the_include_option:a(6627,e.DiagnosticCategory.Message,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:a(6628,e.DiagnosticCategory.Message,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:a(6629,e.DiagnosticCategory.Message,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_TC39_stage_2_draft_decorators:a(6630,e.DiagnosticCategory.Message,"Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630","Enable experimental support for TC39 stage 2 draft decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:a(6631,e.DiagnosticCategory.Message,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:a(6632,e.DiagnosticCategory.Message,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:a(6633,e.DiagnosticCategory.Message,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:a(6634,e.DiagnosticCategory.Message,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:a(6635,e.DiagnosticCategory.Message,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:a(6636,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date"),Ensure_that_casing_is_correct_in_imports:a(6637,e.DiagnosticCategory.Message,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:a(6638,e.DiagnosticCategory.Message,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:a(6639,e.DiagnosticCategory.Message,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:a(6641,e.DiagnosticCategory.Message,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:a(6642,e.DiagnosticCategory.Message,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:a(6643,e.DiagnosticCategory.Message,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:a(6644,e.DiagnosticCategory.Message,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:a(6645,e.DiagnosticCategory.Message,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:a(6646,e.DiagnosticCategory.Message,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:a(6647,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'"),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:a(6648,e.DiagnosticCategory.Message,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:a(6649,e.DiagnosticCategory.Message,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.`"),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:a(6650,e.DiagnosticCategory.Message,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:a(6651,e.DiagnosticCategory.Message,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:a(6652,e.DiagnosticCategory.Message,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:a(6653,e.DiagnosticCategory.Message,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:a(6654,e.DiagnosticCategory.Message,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:a(6655,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:a(6656,e.DiagnosticCategory.Message,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`."),Specify_what_module_code_is_generated:a(6657,e.DiagnosticCategory.Message,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:a(6658,e.DiagnosticCategory.Message,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:a(6659,e.DiagnosticCategory.Message,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:a(6660,e.DiagnosticCategory.Message,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:a(6661,e.DiagnosticCategory.Message,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like `__extends` in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:a(6662,e.DiagnosticCategory.Message,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:a(6663,e.DiagnosticCategory.Message,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:a(6664,e.DiagnosticCategory.Message,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:a(6665,e.DiagnosticCategory.Message,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied `any` type.."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:a(6666,e.DiagnosticCategory.Message,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:a(6667,e.DiagnosticCategory.Message,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:a(6668,e.DiagnosticCategory.Message,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when `this` is given the type `any`."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:a(6669,e.DiagnosticCategory.Message,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:a(6670,e.DiagnosticCategory.Message,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:a(6671,e.DiagnosticCategory.Message,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type"),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:a(6672,e.DiagnosticCategory.Message,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:a(6673,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:a(6674,e.DiagnosticCategory.Message,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add `undefined` to a type when accessed using an index."),Enable_error_reporting_when_a_local_variables_aren_t_read:a(6675,e.DiagnosticCategory.Message,"Enable_error_reporting_when_a_local_variables_aren_t_read_6675","Enable error reporting when a local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:a(6676,e.DiagnosticCategory.Message,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read"),Deprecated_setting_Use_outFile_instead:a(6677,e.DiagnosticCategory.Message,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use `outFile` instead."),Specify_an_output_folder_for_all_emitted_files:a(6678,e.DiagnosticCategory.Message,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:a(6679,e.DiagnosticCategory.Message,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:a(6680,e.DiagnosticCategory.Message,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:a(6681,e.DiagnosticCategory.Message,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:a(6682,e.DiagnosticCategory.Message,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing `const enum` declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:a(6683,e.DiagnosticCategory.Message,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:a(6684,e.DiagnosticCategory.Message,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode"),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:a(6685,e.DiagnosticCategory.Message,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read"),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:a(6686,e.DiagnosticCategory.Message,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:a(6687,e.DiagnosticCategory.Message,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:a(6688,e.DiagnosticCategory.Message,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:a(6689,e.DiagnosticCategory.Message,"Enable_importing_json_files_6689","Enable importing .json files"),Specify_the_root_folder_within_your_source_files:a(6690,e.DiagnosticCategory.Message,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:a(6691,e.DiagnosticCategory.Message,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:a(6692,e.DiagnosticCategory.Message,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:a(6693,e.DiagnosticCategory.Message,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:a(6694,e.DiagnosticCategory.Message,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:a(6695,e.DiagnosticCategory.Message,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:a(6697,e.DiagnosticCategory.Message,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for `bind`, `call`, and `apply` methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:a(6698,e.DiagnosticCategory.Message,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:a(6699,e.DiagnosticCategory.Message,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account `null` and `undefined`."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:a(6700,e.DiagnosticCategory.Message,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:a(6701,e.DiagnosticCategory.Message,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have `@internal` in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:a(6702,e.DiagnosticCategory.Message,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:a(6703,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress `noImplicitAny` errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:a(6704,e.DiagnosticCategory.Message,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:a(6705,e.DiagnosticCategory.Message,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:a(6706,e.DiagnosticCategory.Message,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the `moduleResolution` process."),Specify_the_folder_for_tsbuildinfo_incremental_compilation_files:a(6707,e.DiagnosticCategory.Message,"Specify_the_folder_for_tsbuildinfo_incremental_compilation_files_6707","Specify the folder for .tsbuildinfo incremental compilation files."),Specify_options_for_automatic_acquisition_of_declaration_files:a(6709,e.DiagnosticCategory.Message,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:a(6710,e.DiagnosticCategory.Message,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like `./node_modules/@types`."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:a(6711,e.DiagnosticCategory.Message,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:a(6712,e.DiagnosticCategory.Message,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:a(6713,e.DiagnosticCategory.Message,"Enable_verbose_logging_6713","Enable verbose logging"),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:a(6714,e.DiagnosticCategory.Message,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:a(6715,e.DiagnosticCategory.Message,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Include_undefined_in_index_signature_results:a(6716,e.DiagnosticCategory.Message,"Include_undefined_in_index_signature_results_6716","Include 'undefined' in index signature results"),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:a(6717,e.DiagnosticCategory.Message,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:a(6718,e.DiagnosticCategory.Message,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types"),Type_catch_clause_variables_as_unknown_instead_of_any:a(6803,e.DiagnosticCategory.Message,"Type_catch_clause_variables_as_unknown_instead_of_any_6803","Type catch clause variables as 'unknown' instead of 'any'."),one_of_Colon:a(6900,e.DiagnosticCategory.Message,"one_of_Colon_6900","one of:"),one_or_more_Colon:a(6901,e.DiagnosticCategory.Message,"one_or_more_Colon_6901","one or more:"),type_Colon:a(6902,e.DiagnosticCategory.Message,"type_Colon_6902","type:"),default_Colon:a(6903,e.DiagnosticCategory.Message,"default_Colon_6903","default:"),module_system_or_esModuleInterop:a(6904,e.DiagnosticCategory.Message,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:a(6905,e.DiagnosticCategory.Message,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:a(6906,e.DiagnosticCategory.Message,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:a(6907,e.DiagnosticCategory.Message,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:a(6908,e.DiagnosticCategory.Message,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:a(6909,e.DiagnosticCategory.Message,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:a(69010,e.DiagnosticCategory.Message,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:a(6911,e.DiagnosticCategory.Message,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:a(6912,e.DiagnosticCategory.Message,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:a(6913,e.DiagnosticCategory.Message,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:a(6914,e.DiagnosticCategory.Message,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:a(6915,e.DiagnosticCategory.Message,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:a(6916,e.DiagnosticCategory.Message,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:a(6917,e.DiagnosticCategory.Message,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:a(6918,e.DiagnosticCategory.Message,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:a(6919,e.DiagnosticCategory.Message,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:a(6920,e.DiagnosticCategory.Message,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:a(6921,e.DiagnosticCategory.Message,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:a(6922,e.DiagnosticCategory.Message,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:a(6923,e.DiagnosticCategory.Message,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:a(6924,e.DiagnosticCategory.Message,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:a(6925,e.DiagnosticCategory.Message,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:a(6926,e.DiagnosticCategory.Message,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:a(6927,e.DiagnosticCategory.Message,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:a(6928,e.DiagnosticCategory.Message,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:a(6929,e.DiagnosticCategory.Message,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:a(6930,e.DiagnosticCategory.Message,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),Variable_0_implicitly_has_an_1_type:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:a(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:a(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:a(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:a(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:a(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:a(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:a(7034,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:a(7035,e.DiagnosticCategory.Error,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(7055,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:a(7056,e.DiagnosticCategory.Error,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:a(7057,e.DiagnosticCategory.Error,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:a(7058,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:a(7059,e.DiagnosticCategory.Error,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:a(7060,e.DiagnosticCategory.Error,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:a(7061,e.DiagnosticCategory.Error,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),JSON_imports_are_experimental_in_ES_module_mode_imports:a(7062,e.DiagnosticCategory.Error,"JSON_imports_are_experimental_in_ES_module_mode_imports_7062","JSON imports are experimental in ES module mode imports."),You_cannot_rename_this_element:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(8032,e.DiagnosticCategory.Error,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:a(8033,e.DiagnosticCategory.Error,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:a(8034,e.DiagnosticCategory.Error,"The_tag_was_first_specified_here_8034","The tag was first specified here."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:a(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:a(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:a(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:a(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:a(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(17015,e.DiagnosticCategory.Error,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:a(17016,e.DiagnosticCategory.Error,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:a(17017,e.DiagnosticCategory.Error,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:a(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:a(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:a(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:a(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_ES_module:a(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:a(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:a(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:a(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:a(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:a(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:a(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:a(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:a(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:a(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:a(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:a(90013,e.DiagnosticCategory.Message,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:a(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:a(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:a(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:a(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:a(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:a(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:a(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:a(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:a(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:a(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:a(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:a(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:a(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:a(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:a(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:a(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:a(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:a(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:a(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:a(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:a(90037,e.DiagnosticCategory.Message,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:a(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:a(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:a(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:a(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:a(90054,e.DiagnosticCategory.Message,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:a(90055,e.DiagnosticCategory.Message,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:a(90056,e.DiagnosticCategory.Message,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:a(90057,e.DiagnosticCategory.Message,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:a(90058,e.DiagnosticCategory.Message,"Update_import_from_0_90058",'Update import from "{0}"'),Convert_function_to_an_ES2015_class:a(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:a(95003,e.DiagnosticCategory.Message,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:a(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:a(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:a(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:a(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:a(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:a(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:a(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:a(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:a(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:a(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:a(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:a(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:a(95017,e.DiagnosticCategory.Message,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:a(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:a(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:a(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:a(95021,e.DiagnosticCategory.Message,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:a(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:a(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:a(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:a(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:a(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:a(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:a(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:a(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:a(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:a(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:a(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:a(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:a(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:a(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:a(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:a(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:a(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:a(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:a(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:a(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:a(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:a(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:a(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:a(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:a(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:a(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:a(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:a(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:a(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:a(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:a(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:a(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:a(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:a(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:a(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:a(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:a(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:a(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:a(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:a(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:a(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:a(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:a(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:a(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:a(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:a(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:a(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:a(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:a(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:a(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:a(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:a(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:a(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:a(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:a(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:a(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:a(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:a(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:a(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:a(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:a(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:a(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:a(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:a(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:a(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:a(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:a(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:a(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:a(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:a(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:a(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:a(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:a(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:a(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:a(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:a(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:a(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:a(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:a(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_function_expression_0_to_arrow_function:a(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:a(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:a(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:a(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:a(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:a(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:a(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:a(95112,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:a(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:a(95114,e.DiagnosticCategory.Message,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:a(95115,e.DiagnosticCategory.Message,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:a(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:a(95117,e.DiagnosticCategory.Message,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:a(95118,e.DiagnosticCategory.Message,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:a(95119,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:a(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:a(95121,e.DiagnosticCategory.Message,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:a(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:a(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:a(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:a(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:a(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:a(95127,e.DiagnosticCategory.Message,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:a(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:a(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:a(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:a(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:a(95132,e.DiagnosticCategory.Message,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:a(95133,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:a(95134,e.DiagnosticCategory.Message,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:a(95135,e.DiagnosticCategory.Message,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:a(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:a(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:a(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:a(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:a(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:a(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:a(95142,e.DiagnosticCategory.Message,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:a(95143,e.DiagnosticCategory.Message,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:a(95144,e.DiagnosticCategory.Message,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:a(95145,e.DiagnosticCategory.Message,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:a(95146,e.DiagnosticCategory.Message,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:a(95147,e.DiagnosticCategory.Message,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:a(95148,e.DiagnosticCategory.Message,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:a(95149,e.DiagnosticCategory.Message,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:a(95150,e.DiagnosticCategory.Message,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:a(95151,e.DiagnosticCategory.Message,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:a(95152,e.DiagnosticCategory.Message,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:a(95153,e.DiagnosticCategory.Message,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:a(95154,e.DiagnosticCategory.Message,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:a(95155,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:a(95156,e.DiagnosticCategory.Message,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:a(95157,e.DiagnosticCategory.Message,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:a(95158,e.DiagnosticCategory.Message,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:a(95159,e.DiagnosticCategory.Message,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:a(95160,e.DiagnosticCategory.Message,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:a(95161,e.DiagnosticCategory.Message,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:a(95162,e.DiagnosticCategory.Message,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:a(95163,e.DiagnosticCategory.Message,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:a(95164,e.DiagnosticCategory.Message,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:a(95165,e.DiagnosticCategory.Message,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:a(95166,e.DiagnosticCategory.Message,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:a(95167,e.DiagnosticCategory.Message,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:a(95168,e.DiagnosticCategory.Message,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:a(95169,e.DiagnosticCategory.Message,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:a(95170,e.DiagnosticCategory.Message,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:a(95171,e.DiagnosticCategory.Message,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:a(95172,e.DiagnosticCategory.Message,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:a(95173,e.DiagnosticCategory.Message,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(18019,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(18033,e.DiagnosticCategory.Error,"Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033","Only numeric enums can have computed members, but this expression has type '{0}'. If you do not need exhaustiveness checks, consider using an object literal instead."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:a(18034,e.DiagnosticCategory.Message,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:a(18035,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:a(18036,e.DiagnosticCategory.Error,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),Await_expression_cannot_be_used_inside_a_class_static_block:a(18037,e.DiagnosticCategory.Error,"Await_expression_cannot_be_used_inside_a_class_static_block_18037","Await expression cannot be used inside a class static block."),For_await_loops_cannot_be_used_inside_a_class_static_block:a(18038,e.DiagnosticCategory.Error,"For_await_loops_cannot_be_used_inside_a_class_static_block_18038","'For await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:a(18039,e.DiagnosticCategory.Error,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:a(18041,e.DiagnosticCategory.Error,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block.")}})(Pe||(Pe={}));var Pe;(function(e){var a;function O(ge){return ge>=79}e.tokenIsIdentifierOrKeyword=O;function L(ge){return ge===31||O(ge)}e.tokenIsIdentifierOrKeywordOrGreaterThan=L,e.textToKeywordObj=(a={abstract:126,any:130,as:127,asserts:128,assert:129,bigint:157,boolean:133,break:81,case:82,catch:83,class:84,continue:86,const:85},a.constructor=134,a.debugger=87,a.declare=135,a.default=88,a.delete=89,a.do=90,a.else=91,a.enum=92,a.export=93,a.extends=94,a.false=95,a.finally=96,a.for=97,a.from=155,a.function=98,a.get=136,a.if=99,a.implements=117,a.import=100,a.in=101,a.infer=137,a.instanceof=102,a.interface=118,a.intrinsic=138,a.is=139,a.keyof=140,a.let=119,a.module=141,a.namespace=142,a.never=143,a.new=103,a.null=104,a.number=146,a.object=147,a.package=120,a.private=121,a.protected=122,a.public=123,a.override=158,a.readonly=144,a.require=145,a.global=156,a.return=105,a.set=148,a.static=124,a.string=149,a.super=106,a.switch=107,a.symbol=150,a.this=108,a.throw=109,a.true=110,a.try=111,a.type=151,a.typeof=112,a.undefined=152,a.unique=153,a.unknown=154,a.var=113,a.void=114,a.while=115,a.with=116,a.yield=125,a.async=131,a.await=132,a.of=159,a);var W=new e.Map(e.getEntries(e.textToKeywordObj)),N=new e.Map(e.getEntries(Ve(Ve({},e.textToKeywordObj),{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,"</":30,">>":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":63,"+=":64,"-=":65,"*=":66,"**=":67,"/=":68,"%=":69,"<<=":70,">>=":71,">>>=":72,"&=":73,"|=":74,"^=":78,"||=":75,"&&=":76,"??=":77,"@":59,"#":62,"`":61}))),Q=[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],pe=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],F=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],g=[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],S=[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],H=[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],se=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,p=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function C(ge,Fe){if(ge<Fe[0])return!1;for(var cr=0,ur=Fe.length,Ir;cr+1<ur;){if(Ir=cr+(ur-cr)/2,Ir-=Ir%2,Fe[Ir]<=ge&&ge<=Fe[Ir+1])return!0;ge<Fe[Ir]?ur=Ir:cr=Ir+2}return!1}function G(ge,Fe){return Fe>=2?C(ge,S):Fe===1?C(ge,F):C(ge,Q)}e.isUnicodeIdentifierStart=G;function E(ge,Fe){return Fe>=2?C(ge,H):Fe===1?C(ge,g):C(ge,pe)}function ue(ge){var Fe=[];return ge.forEach(function(cr,ur){Fe[cr]=ur}),Fe}var B=ue(N);function re(ge){return B[ge]}e.tokenToString=re;function M(ge){return N.get(ge)}e.stringToToken=M;function x(ge){for(var Fe=new Array,cr=0,ur=0;cr<ge.length;){var Ir=ge.charCodeAt(cr);switch(cr++,Ir){case 13:ge.charCodeAt(cr)===10&&cr++;case 10:Fe.push(ur),ur=cr;break;default:Ir>127&&f(Ir)&&(Fe.push(ur),ur=cr);break}}return Fe.push(ur),Fe}e.computeLineStarts=x;function ie(ge,Fe,cr,ur){return ge.getPositionOfLineAndCharacter?ge.getPositionOfLineAndCharacter(Fe,cr,ur):_e(Y(ge),Fe,cr,ge.text,ur)}e.getPositionOfLineAndCharacter=ie;function _e(ge,Fe,cr,ur,Ir){(Fe<0||Fe>=ge.length)&&(Ir?Fe=Fe<0?0:Fe>=ge.length?ge.length-1:Fe:e.Debug.fail("Bad line number. Line: ".concat(Fe,", lineStarts.length: ").concat(ge.length," , line map is correct? ").concat(ur!==void 0?e.arraysEqual(ge,x(ur)):"unknown")));var dr=ge[Fe]+cr;return Ir?dr>ge[Fe+1]?ge[Fe+1]:typeof ur=="string"&&dr>ur.length?ur.length:dr:(Fe<ge.length-1?e.Debug.assert(dr<ge[Fe+1]):ur!==void 0&&e.Debug.assert(dr<=ur.length),dr)}e.computePositionOfLineAndCharacter=_e;function Y(ge){return ge.lineMap||(ge.lineMap=x(ge.text))}e.getLineStarts=Y;function Z(ge,Fe){var cr=k(ge,Fe);return{line:cr,character:Fe-ge[cr]}}e.computeLineAndCharacterOfPosition=Z;function k(ge,Fe,cr){var ur=e.binarySearch(ge,Fe,e.identity,e.compareValues,cr);return ur<0&&(ur=~ur-1,e.Debug.assert(ur!==-1,"position cannot precede the beginning of the file")),ur}e.computeLineOfPosition=k;function I(ge,Fe,cr){if(Fe===cr)return 0;var ur=Y(ge),Ir=Math.min(Fe,cr),dr=Ir===cr,Br=dr?Fe:cr,Tr=k(ur,Ir),n=k(ur,Br,Tr);return dr?Tr-n:n-Tr}e.getLinesBetweenPositions=I;function ne(ge,Fe){return Z(Y(ge),Fe)}e.getLineAndCharacterOfPosition=ne;function ee(ge){return A(ge)||f(ge)}e.isWhiteSpaceLike=ee;function A(ge){return ge===32||ge===9||ge===11||ge===12||ge===160||ge===133||ge===5760||ge>=8192&&ge<=8203||ge===8239||ge===8287||ge===12288||ge===65279}e.isWhiteSpaceSingleLine=A;function f(ge){return ge===10||ge===13||ge===8232||ge===8233}e.isLineBreak=f;function P(ge){return ge>=48&&ge<=57}function D(ge){return P(ge)||ge>=65&&ge<=70||ge>=97&&ge<=102}function l(ge){return ge<=1114111}function _(ge){return ge>=48&&ge<=55}e.isOctalDigit=_;function J(ge,Fe){var cr=ge.charCodeAt(Fe);switch(cr){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 Fe===0;default:return cr>127}}e.couldStartTrivia=J;function w(ge,Fe,cr,ur,Ir){if(e.positionIsSynthesized(Fe))return Fe;for(var dr=!1;;){var Br=ge.charCodeAt(Fe);switch(Br){case 13:ge.charCodeAt(Fe+1)===10&&Fe++;case 10:if(Fe++,cr)return Fe;dr=!!Ir;continue;case 9:case 11:case 12:case 32:Fe++;continue;case 47:if(ur)break;if(ge.charCodeAt(Fe+1)===47){for(Fe+=2;Fe<ge.length&&!f(ge.charCodeAt(Fe));)Fe++;dr=!1;continue}if(ge.charCodeAt(Fe+1)===42){for(Fe+=2;Fe<ge.length;){if(ge.charCodeAt(Fe)===42&&ge.charCodeAt(Fe+1)===47){Fe+=2;break}Fe++}dr=!1;continue}break;case 60:case 124:case 61:case 62:if(U(ge,Fe)){Fe=z(ge,Fe),dr=!1;continue}break;case 35:if(Fe===0&&oe(ge,Fe)){Fe=ve(ge,Fe),dr=!1;continue}break;case 42:if(dr){Fe++,dr=!1;continue}break;default:if(Br>127&&ee(Br)){Fe++;continue}break}return Fe}}e.skipTrivia=w;var j=7;function U(ge,Fe){if(e.Debug.assert(Fe>=0),Fe===0||f(ge.charCodeAt(Fe-1))){var cr=ge.charCodeAt(Fe);if(Fe+j<ge.length){for(var ur=0;ur<j;ur++)if(ge.charCodeAt(Fe+ur)!==cr)return!1;return cr===61||ge.charCodeAt(Fe+j)===32}}return!1}function z(ge,Fe,cr){cr&&cr(e.Diagnostics.Merge_conflict_marker_encountered,Fe,j);var ur=ge.charCodeAt(Fe),Ir=ge.length;if(ur===60||ur===62)for(;Fe<Ir&&!f(ge.charCodeAt(Fe));)Fe++;else for(e.Debug.assert(ur===124||ur===61);Fe<Ir;){var dr=ge.charCodeAt(Fe);if((dr===61||dr===62)&&dr!==ur&&U(ge,Fe))break;Fe++}return Fe}var y=/^#!.*/;function oe(ge,Fe){return e.Debug.assert(Fe===0),y.test(ge)}e.isShebangTrivia=oe;function ve(ge,Fe){var cr=y.exec(ge)[0];return Fe=Fe+cr.length,Fe}e.scanShebangTrivia=ve;function ce(ge,Fe,cr,ur,Ir,dr,Br){var Tr,n,Er,br,Pr=!1,Ce=ur,Le=Br;if(cr===0){Ce=!0;var Xe=He(Fe);Xe&&(cr=Xe.length)}e:for(;cr>=0&&cr<Fe.length;){var Cr=Fe.charCodeAt(cr);switch(Cr){case 13:Fe.charCodeAt(cr+1)===10&&cr++;case 10:if(cr++,ur)break e;Ce=!0,Pr&&(br=!0);continue;case 9:case 11:case 12:case 32:cr++;continue;case 47:var Lr=Fe.charCodeAt(cr+1),Jr=!1;if(Lr===47||Lr===42){var Rr=Lr===47?2:3,ci=cr;if(cr+=2,Lr===47)for(;cr<Fe.length;){if(f(Fe.charCodeAt(cr))){Jr=!0;break}cr++}else for(;cr<Fe.length;){if(Fe.charCodeAt(cr)===42&&Fe.charCodeAt(cr+1)===47){cr+=2;break}cr++}if(Ce){if(Pr&&(Le=Ir(Tr,n,Er,br,dr,Le),!ge&&Le))return Le;Tr=ci,n=cr,Er=Rr,br=Jr,Pr=!0}continue}break e;default:if(Cr>127&&ee(Cr)){Pr&&f(Cr)&&(br=!0),cr++;continue}break e}}return Pr&&(Le=Ir(Tr,n,Er,br,dr,Le)),Le}function m(ge,Fe,cr,ur){return ce(!1,ge,Fe,!1,cr,ur)}e.forEachLeadingCommentRange=m;function de(ge,Fe,cr,ur){return ce(!1,ge,Fe,!0,cr,ur)}e.forEachTrailingCommentRange=de;function ae(ge,Fe,cr,ur,Ir){return ce(!0,ge,Fe,!1,cr,ur,Ir)}e.reduceEachLeadingCommentRange=ae;function V(ge,Fe,cr,ur,Ir){return ce(!0,ge,Fe,!0,cr,ur,Ir)}e.reduceEachTrailingCommentRange=V;function le(ge,Fe,cr,ur,Ir,dr){return dr||(dr=[]),dr.push({kind:cr,pos:ge,end:Fe,hasTrailingNewLine:ur}),dr}function ke(ge,Fe){return ae(ge,Fe,le,void 0,void 0)}e.getLeadingCommentRanges=ke;function Ue(ge,Fe){return V(ge,Fe,le,void 0,void 0)}e.getTrailingCommentRanges=Ue;function He(ge){var Fe=y.exec(ge);if(Fe)return Fe[0]}e.getShebang=He;function ar(ge,Fe){return ge>=65&&ge<=90||ge>=97&&ge<=122||ge===36||ge===95||ge>127&&G(ge,Fe)}e.isIdentifierStart=ar;function gr(ge,Fe,cr){return ge>=65&&ge<=90||ge>=97&&ge<=122||ge>=48&&ge<=57||ge===36||ge===95||(cr===1?ge===45||ge===58:!1)||ge>127&&E(ge,Fe)}e.isIdentifierPart=gr;function me(ge,Fe,cr){var ur=er(ge,0);if(!ar(ur,Fe))return!1;for(var Ir=he(ur);Ir<ge.length;Ir+=he(ur))if(!gr(ur=er(ge,Ir),Fe,cr))return!1;return!0}e.isIdentifierText=me;function Ge(ge,Fe,cr,ur,Ir,dr,Br){cr===void 0&&(cr=0);var Tr=ur,n,Er,br,Pr,Ce,Le,Xe,Cr,Lr=0;Rt(Tr,dr,Br);var Jr={getStartPos:function(){return br},getTextPos:function(){return n},getToken:function(){return Ce},getTokenPos:function(){return Pr},getTokenText:function(){return Tr.substring(Pr,n)},getTokenValue:function(){return Le},hasUnicodeEscape:function(){return(Xe&1024)!==0},hasExtendedUnicodeEscape:function(){return(Xe&8)!==0},hasPrecedingLineBreak:function(){return(Xe&1)!==0},hasPrecedingJSDocComment:function(){return(Xe&2)!==0},isIdentifier:function(){return Ce===79||Ce>116},isReservedWord:function(){return Ce>=81&&Ce<=116},isUnterminated:function(){return(Xe&4)!==0},getCommentDirectives:function(){return Cr},getNumericLiteralFlags:function(){return Xe&1008},getTokenFlags:function(){return Xe},reScanGreaterToken:Me,reScanAsteriskEqualsToken:v,reScanSlashToken:xe,reScanTemplateToken:Oe,reScanTemplateHeadOrNoSubstitutionTemplate:Fr,scanJsxIdentifier:Ur,scanJsxAttributeValue:si,reScanJsxAttributeValue:mi,reScanJsxToken:Xr,reScanLessThanToken:Or,reScanHashToken:We,reScanQuestionToken:mr,reScanInvalidIdentifier:hr,scanJsxToken:Nr,scanJsDocToken:Ti,scan:_r,getText:ri,clearCommentDirectives:Gi,setText:Rt,setScriptTarget:xt,setLanguageVariant:ua,setOnError:pa,setTextPos:Vt,setInJSDocType:St,tryScan:zi,lookAhead:Ui,scanRange:ki};return e.Debug.isDebugging&&Object.defineProperty(Jr,"__debugShowCurrentPositionInText",{get:function(){var Ci=Jr.getText();return Ci.slice(0,Jr.getStartPos())+"\u2551"+Ci.slice(Jr.getStartPos())}}),Jr;function Rr(Ci,Hi,Yi){if(Hi===void 0&&(Hi=n),Ir){var yt=n;n=Hi,Ir(Ci,Yi||0),n=yt}}function ci(){for(var Ci=n,Hi=!1,Yi=!1,yt="";;){var gt=Tr.charCodeAt(n);if(gt===95){Xe|=512,Hi?(Hi=!1,Yi=!0,yt+=Tr.substring(Ci,n)):Rr(Yi?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,n,1),n++,Ci=n;continue}if(P(gt)){Hi=!0,Yi=!1,n++;continue}break}return Tr.charCodeAt(n-1)===95&&Rr(e.Diagnostics.Numeric_separators_are_not_allowed_here,n-1,1),yt+Tr.substring(Ci,n)}function be(){var Ci=n,Hi=ci(),Yi,yt;Tr.charCodeAt(n)===46&&(n++,Yi=ci());var gt=n;if(Tr.charCodeAt(n)===69||Tr.charCodeAt(n)===101){n++,Xe|=16,(Tr.charCodeAt(n)===43||Tr.charCodeAt(n)===45)&&n++;var oa=n,Bt=ci();Bt?(yt=Tr.substring(gt,oa)+Bt,gt=n):Rr(e.Diagnostics.Digit_expected)}var Pi;if(Xe&512?(Pi=Hi,Yi&&(Pi+="."+Yi),yt&&(Pi+=yt)):Pi=Tr.substring(Ci,gt),Yi!==void 0||Xe&16)return or(Ci,Yi===void 0&&!!(Xe&16)),{type:8,value:""+ +Pi};Le=Pi;var Oi=Qe();return or(Ci),{type:Oi,value:Le}}function or(Ci,Hi){if(!!ar(er(Tr,n),ge)){var Yi=n,yt=X().length;yt===1&&Tr[Yi]==="n"?Rr(Hi?e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:e.Diagnostics.A_bigint_literal_must_be_an_integer,Ci,Yi-Ci+1):(Rr(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,Yi,yt),n=Yi)}}function Kr(){for(var Ci=n;_(Tr.charCodeAt(n));)n++;return+Tr.substring(Ci,n)}function ei(Ci,Hi){var Yi=Si(Ci,!1,Hi);return Yi?parseInt(Yi,16):-1}function li(Ci,Hi){return Si(Ci,!0,Hi)}function Si(Ci,Hi,Yi){for(var yt=[],gt=!1,oa=!1;yt.length<Ci||Hi;){var Bt=Tr.charCodeAt(n);if(Yi&&Bt===95){Xe|=512,gt?(gt=!1,oa=!0):Rr(oa?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,n,1),n++;continue}if(gt=Yi,Bt>=65&&Bt<=70)Bt+=97-65;else if(!(Bt>=48&&Bt<=57||Bt>=97&&Bt<=102))break;yt.push(Bt),n++,oa=!1}return yt.length<Ci&&(yt=[]),Tr.charCodeAt(n-1)===95&&Rr(e.Diagnostics.Numeric_separators_are_not_allowed_here,n-1,1),String.fromCharCode.apply(String,yt)}function qi(Ci){Ci===void 0&&(Ci=!1);var Hi=Tr.charCodeAt(n);n++;for(var Yi="",yt=n;;){if(n>=Er){Yi+=Tr.substring(yt,n),Xe|=4,Rr(e.Diagnostics.Unterminated_string_literal);break}var gt=Tr.charCodeAt(n);if(gt===Hi){Yi+=Tr.substring(yt,n),n++;break}if(gt===92&&!Ci){Yi+=Tr.substring(yt,n),Yi+=bt(),yt=n;continue}if(f(gt)&&!Ci){Yi+=Tr.substring(yt,n),Xe|=4,Rr(e.Diagnostics.Unterminated_string_literal);break}n++}return Yi}function ft(Ci){var Hi=Tr.charCodeAt(n)===96;n++;for(var Yi=n,yt="",gt;;){if(n>=Er){yt+=Tr.substring(Yi,n),Xe|=4,Rr(e.Diagnostics.Unterminated_template_literal),gt=Hi?14:17;break}var oa=Tr.charCodeAt(n);if(oa===96){yt+=Tr.substring(Yi,n),n++,gt=Hi?14:17;break}if(oa===36&&n+1<Er&&Tr.charCodeAt(n+1)===123){yt+=Tr.substring(Yi,n),n+=2,gt=Hi?15:16;break}if(oa===92){yt+=Tr.substring(Yi,n),yt+=bt(Ci),Yi=n;continue}if(oa===13){yt+=Tr.substring(Yi,n),n++,n<Er&&Tr.charCodeAt(n)===10&&n++,yt+=`
`,Yi=n;continue}n++}return e.Debug.assert(gt!==void 0),Le=yt,gt}function bt(Ci){var Hi=n;if(n++,n>=Er)return Rr(e.Diagnostics.Unexpected_end_of_text),"";var Yi=Tr.charCodeAt(n);switch(n++,Yi){case 48:return Ci&&n<Er&&P(Tr.charCodeAt(n))?(n++,Xe|=2048,Tr.substring(Hi,n)):"\0";case 98:return"\b";case 116:return"   ";case 110:return`
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(Ci){for(var yt=n;yt<n+4;yt++)if(yt<Er&&!D(Tr.charCodeAt(yt))&&Tr.charCodeAt(yt)!==123)return n=yt,Xe|=2048,Tr.substring(Hi,n)}if(n<Er&&Tr.charCodeAt(n)===123){if(n++,Ci&&!D(Tr.charCodeAt(n)))return Xe|=2048,Tr.substring(Hi,n);if(Ci){var gt=n,oa=li(1,!1),Bt=oa?parseInt(oa,16):-1;if(!l(Bt)||Tr.charCodeAt(n)!==125)return Xe|=2048,Tr.substring(Hi,n);n=gt}return Xe|=8,sr()}return Xe|=1024,aa(4);case 120:if(Ci)if(D(Tr.charCodeAt(n))){if(!D(Tr.charCodeAt(n+1)))return n++,Xe|=2048,Tr.substring(Hi,n)}else return Xe|=2048,Tr.substring(Hi,n);return aa(2);case 13:n<Er&&Tr.charCodeAt(n)===10&&n++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(Yi)}}function aa(Ci){var Hi=ei(Ci,!1);return Hi>=0?String.fromCharCode(Hi):(Rr(e.Diagnostics.Hexadecimal_digit_expected),"")}function sr(){var Ci=li(1,!1),Hi=Ci?parseInt(Ci,16):-1,Yi=!1;return Hi<0?(Rr(e.Diagnostics.Hexadecimal_digit_expected),Yi=!0):Hi>1114111&&(Rr(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),Yi=!0),n>=Er?(Rr(e.Diagnostics.Unexpected_end_of_text),Yi=!0):Tr.charCodeAt(n)===125?n++:(Rr(e.Diagnostics.Unterminated_Unicode_escape_sequence),Yi=!0),Yi?"":Se(Hi)}function Ji(){if(n+5<Er&&Tr.charCodeAt(n+1)===117){var Ci=n;n+=2;var Hi=ei(4,!1);return n=Ci,Hi}return-1}function di(){if(ge>=2&&er(Tr,n+1)===117&&er(Tr,n+2)===123){var Ci=n;n+=3;var Hi=li(1,!1),Yi=Hi?parseInt(Hi,16):-1;return n=Ci,Yi}return-1}function X(){for(var Ci="",Hi=n;n<Er;){var Yi=er(Tr,n);if(gr(Yi,ge))n+=he(Yi);else if(Yi===92){if(Yi=di(),Yi>=0&&gr(Yi,ge)){n+=3,Xe|=8,Ci+=sr(),Hi=n;continue}if(Yi=Ji(),!(Yi>=0&&gr(Yi,ge)))break;Xe|=1024,Ci+=Tr.substring(Hi,n),Ci+=Se(Yi),n+=6,Hi=n}else break}return Ci+=Tr.substring(Hi,n),Ci}function Ye(){var Ci=Le.length;if(Ci>=2&&Ci<=12){var Hi=Le.charCodeAt(0);if(Hi>=97&&Hi<=122){var Yi=W.get(Le);if(Yi!==void 0)return Ce=Yi}}return Ce=79}function Be(Ci){for(var Hi="",Yi=!1,yt=!1;;){var gt=Tr.charCodeAt(n);if(gt===95){Xe|=512,Yi?(Yi=!1,yt=!0):Rr(yt?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,n,1),n++;continue}if(Yi=!0,!P(gt)||gt-48>=Ci)break;Hi+=Tr[n],n++,yt=!1}return Tr.charCodeAt(n-1)===95&&Rr(e.Diagnostics.Numeric_separators_are_not_allowed_here,n-1,1),Hi}function Qe(){if(Tr.charCodeAt(n)===110)return Le+="n",Xe&384&&(Le=e.parsePseudoBigInt(Le)+"n"),n++,9;var Ci=Xe&128?parseInt(Le.slice(2),2):Xe&256?parseInt(Le.slice(2),8):+Le;return Le=""+Ci,8}function _r(){var Ci;br=n,Xe=0;for(var Hi=!1;;){if(Pr=n,n>=Er)return Ce=1;var Yi=er(Tr,n);if(Yi===35&&n===0&&oe(Tr,n)){if(n=ve(Tr,n),Fe)continue;return Ce=6}switch(Yi){case 10:case 13:if(Xe|=1,Fe){n++;continue}else return Yi===13&&n+1<Er&&Tr.charCodeAt(n+1)===10?n+=2:n++,Ce=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(Fe){n++;continue}else{for(;n<Er&&A(Tr.charCodeAt(n));)n++;return Ce=5}case 33:return Tr.charCodeAt(n+1)===61?Tr.charCodeAt(n+2)===61?(n+=3,Ce=37):(n+=2,Ce=35):(n++,Ce=53);case 34:case 39:return Le=qi(),Ce=10;case 96:return Ce=ft(!1);case 37:return Tr.charCodeAt(n+1)===61?(n+=2,Ce=69):(n++,Ce=44);case 38:return Tr.charCodeAt(n+1)===38?Tr.charCodeAt(n+2)===61?(n+=3,Ce=76):(n+=2,Ce=55):Tr.charCodeAt(n+1)===61?(n+=2,Ce=73):(n++,Ce=50);case 40:return n++,Ce=20;case 41:return n++,Ce=21;case 42:if(Tr.charCodeAt(n+1)===61)return n+=2,Ce=66;if(Tr.charCodeAt(n+1)===42)return Tr.charCodeAt(n+2)===61?(n+=3,Ce=67):(n+=2,Ce=42);if(n++,Lr&&!Hi&&Xe&1){Hi=!0;continue}return Ce=41;case 43:return Tr.charCodeAt(n+1)===43?(n+=2,Ce=45):Tr.charCodeAt(n+1)===61?(n+=2,Ce=64):(n++,Ce=39);case 44:return n++,Ce=27;case 45:return Tr.charCodeAt(n+1)===45?(n+=2,Ce=46):Tr.charCodeAt(n+1)===61?(n+=2,Ce=65):(n++,Ce=40);case 46:return P(Tr.charCodeAt(n+1))?(Le=be().value,Ce=8):Tr.charCodeAt(n+1)===46&&Tr.charCodeAt(n+2)===46?(n+=3,Ce=25):(n++,Ce=24);case 47:if(Tr.charCodeAt(n+1)===47){for(n+=2;n<Er&&!f(Tr.charCodeAt(n));)n++;if(Cr=ze(Cr,Tr.slice(Pr,n),se,Pr),Fe)continue;return Ce=2}if(Tr.charCodeAt(n+1)===42){n+=2,Tr.charCodeAt(n)===42&&Tr.charCodeAt(n+1)!==47&&(Xe|=2);for(var yt=!1,gt=Pr;n<Er;){var oa=Tr.charCodeAt(n);if(oa===42&&Tr.charCodeAt(n+1)===47){n+=2,yt=!0;break}n++,f(oa)&&(gt=n,Xe|=1)}if(Cr=ze(Cr,Tr.slice(gt,n),p,gt),yt||Rr(e.Diagnostics.Asterisk_Slash_expected),Fe)continue;return yt||(Xe|=4),Ce=3}return Tr.charCodeAt(n+1)===61?(n+=2,Ce=68):(n++,Ce=43);case 48:if(n+2<Er&&(Tr.charCodeAt(n+1)===88||Tr.charCodeAt(n+1)===120))return n+=2,Le=li(1,!0),Le||(Rr(e.Diagnostics.Hexadecimal_digit_expected),Le="0"),Le="0x"+Le,Xe|=64,Ce=Qe();if(n+2<Er&&(Tr.charCodeAt(n+1)===66||Tr.charCodeAt(n+1)===98))return n+=2,Le=Be(2),Le||(Rr(e.Diagnostics.Binary_digit_expected),Le="0"),Le="0b"+Le,Xe|=128,Ce=Qe();if(n+2<Er&&(Tr.charCodeAt(n+1)===79||Tr.charCodeAt(n+1)===111))return n+=2,Le=Be(8),Le||(Rr(e.Diagnostics.Octal_digit_expected),Le="0"),Le="0o"+Le,Xe|=256,Ce=Qe();if(n+1<Er&&_(Tr.charCodeAt(n+1)))return Le=""+Kr(),Xe|=32,Ce=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Ci=be(),Ce=Ci.type,Le=Ci.value,Ce;case 58:return n++,Ce=58;case 59:return n++,Ce=26;case 60:if(U(Tr,n)){if(n=z(Tr,n,Rr),Fe)continue;return Ce=7}return Tr.charCodeAt(n+1)===60?Tr.charCodeAt(n+2)===61?(n+=3,Ce=70):(n+=2,Ce=47):Tr.charCodeAt(n+1)===61?(n+=2,Ce=32):cr===1&&Tr.charCodeAt(n+1)===47&&Tr.charCodeAt(n+2)!==42?(n+=2,Ce=30):(n++,Ce=29);case 61:if(U(Tr,n)){if(n=z(Tr,n,Rr),Fe)continue;return Ce=7}return Tr.charCodeAt(n+1)===61?Tr.charCodeAt(n+2)===61?(n+=3,Ce=36):(n+=2,Ce=34):Tr.charCodeAt(n+1)===62?(n+=2,Ce=38):(n++,Ce=63);case 62:if(U(Tr,n)){if(n=z(Tr,n,Rr),Fe)continue;return Ce=7}return n++,Ce=31;case 63:return Tr.charCodeAt(n+1)===46&&!P(Tr.charCodeAt(n+2))?(n+=2,Ce=28):Tr.charCodeAt(n+1)===63?Tr.charCodeAt(n+2)===61?(n+=3,Ce=77):(n+=2,Ce=60):(n++,Ce=57);case 91:return n++,Ce=22;case 93:return n++,Ce=23;case 94:return Tr.charCodeAt(n+1)===61?(n+=2,Ce=78):(n++,Ce=52);case 123:return n++,Ce=18;case 124:if(U(Tr,n)){if(n=z(Tr,n,Rr),Fe)continue;return Ce=7}return Tr.charCodeAt(n+1)===124?Tr.charCodeAt(n+2)===61?(n+=3,Ce=75):(n+=2,Ce=56):Tr.charCodeAt(n+1)===61?(n+=2,Ce=74):(n++,Ce=51);case 125:return n++,Ce=19;case 126:return n++,Ce=54;case 64:return n++,Ce=59;case 92:var Bt=di();if(Bt>=0&&ar(Bt,ge))return n+=3,Xe|=8,Le=sr()+X(),Ce=Ye();var Pi=Ji();return Pi>=0&&ar(Pi,ge)?(n+=6,Xe|=1024,Le=String.fromCharCode(Pi)+X(),Ce=Ye()):(Rr(e.Diagnostics.Invalid_character),n++,Ce=0);case 35:return n!==0&&Tr[n+1]==="!"?(Rr(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),n++,Ce=0):(ar(er(Tr,n+1),ge)?(n++,Dr(er(Tr,n),ge)):(Le=String.fromCharCode(er(Tr,n)),Rr(e.Diagnostics.Invalid_character,n++,he(Yi))),Ce=80);default:var Oi=Dr(Yi,ge);if(Oi)return Ce=Oi;if(A(Yi)){n+=he(Yi);continue}else if(f(Yi)){Xe|=1,n+=he(Yi);continue}var wi=he(Yi);return Rr(e.Diagnostics.Invalid_character,n,wi),n+=wi,Ce=0}}}function hr(){e.Debug.assert(Ce===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),n=Pr=br,Xe=0;var Ci=er(Tr,n),Hi=Dr(Ci,99);return Hi?Ce=Hi:(n+=he(Ci),Ce)}function Dr(Ci,Hi){var Yi=Ci;if(ar(Yi,Hi)){for(n+=he(Yi);n<Er&&gr(Yi=er(Tr,n),Hi);)n+=he(Yi);return Le=Tr.substring(Pr,n),Yi===92&&(Le+=X()),Ye()}}function Me(){if(Ce===31){if(Tr.charCodeAt(n)===62)return Tr.charCodeAt(n+1)===62?Tr.charCodeAt(n+2)===61?(n+=3,Ce=72):(n+=2,Ce=49):Tr.charCodeAt(n+1)===61?(n+=2,Ce=71):(n++,Ce=48);if(Tr.charCodeAt(n)===61)return n++,Ce=33}return Ce}function v(){return e.Debug.assert(Ce===66,"'reScanAsteriskEqualsToken' should only be called on a '*='"),n=Pr+1,Ce=63}function xe(){if(Ce===43||Ce===68){for(var Ci=Pr+1,Hi=!1,Yi=!1;;){if(Ci>=Er){Xe|=4,Rr(e.Diagnostics.Unterminated_regular_expression_literal);break}var yt=Tr.charCodeAt(Ci);if(f(yt)){Xe|=4,Rr(e.Diagnostics.Unterminated_regular_expression_literal);break}if(Hi)Hi=!1;else if(yt===47&&!Yi){Ci++;break}else yt===91?Yi=!0:yt===92?Hi=!0:yt===93&&(Yi=!1);Ci++}for(;Ci<Er&&gr(Tr.charCodeAt(Ci),ge);)Ci++;n=Ci,Le=Tr.substring(Pr,n),Ce=13}return Ce}function ze(Ci,Hi,Yi,yt){var gt=Je(e.trimStringStart(Hi),Yi);return gt===void 0?Ci:e.append(Ci,{range:{pos:yt,end:n},type:gt})}function Je(Ci,Hi){var Yi=Hi.exec(Ci);if(!!Yi)switch(Yi[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}function Oe(Ci){return e.Debug.assert(Ce===19,"'reScanTemplateToken' should only be called on a '}'"),n=Pr,Ce=ft(Ci)}function Fr(){return n=Pr,Ce=ft(!0)}function Xr(Ci){return Ci===void 0&&(Ci=!0),n=Pr=br,Ce=Nr(Ci)}function Or(){return Ce===47?(n=Pr+1,Ce=29):Ce}function We(){return Ce===80?(n=Pr+1,Ce=62):Ce}function mr(){return e.Debug.assert(Ce===60,"'reScanQuestionToken' should only be called on a '??'"),n=Pr+1,Ce=57}function Nr(Ci){if(Ci===void 0&&(Ci=!0),br=Pr=n,n>=Er)return Ce=1;var Hi=Tr.charCodeAt(n);if(Hi===60)return Tr.charCodeAt(n+1)===47?(n+=2,Ce=30):(n++,Ce=29);if(Hi===123)return n++,Ce=18;for(var Yi=0;n<Er&&(Hi=Tr.charCodeAt(n),Hi!==123);){if(Hi===60){if(U(Tr,n))return n=z(Tr,n,Rr),Ce=7;break}if(Hi===62&&Rr(e.Diagnostics.Unexpected_token_Did_you_mean_or_gt,n,1),Hi===125&&Rr(e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace,n,1),f(Hi)&&Yi===0)Yi=-1;else{if(!Ci&&f(Hi)&&Yi>0)break;ee(Hi)||(Yi=n)}n++}return Le=Tr.substring(br,n),Yi===-1?12:11}function Ur(){if(O(Ce)){for(var Ci=!1;n<Er;){var Hi=Tr.charCodeAt(n);if(Hi===45){Le+="-",n++;continue}else if(Hi===58&&!Ci){Le+=":",n++,Ci=!0,Ce=79;continue}var Yi=n;if(Le+=X(),n===Yi)break}return Le.slice(-1)===":"&&(Le=Le.slice(0,-1),n--),Ye()}return Ce}function si(){switch(br=n,Tr.charCodeAt(n)){case 34:case 39:return Le=qi(!0),Ce=10;default:return _r()}}function mi(){return n=Pr=br,si()}function Ti(){if(br=Pr=n,Xe=0,n>=Er)return Ce=1;var Ci=er(Tr,n);switch(n+=he(Ci),Ci){case 9:case 11:case 12:case 32:for(;n<Er&&A(Tr.charCodeAt(n));)n++;return Ce=5;case 64:return Ce=59;case 13:Tr.charCodeAt(n)===10&&n++;case 10:return Xe|=1,Ce=4;case 42:return Ce=41;case 123:return Ce=18;case 125:return Ce=19;case 91:return Ce=22;case 93:return Ce=23;case 60:return Ce=29;case 62:return Ce=31;case 61:return Ce=63;case 44:return Ce=27;case 46:return Ce=24;case 96:return Ce=61;case 35:return Ce=62;case 92:n--;var Hi=di();if(Hi>=0&&ar(Hi,ge))return n+=3,Xe|=8,Le=sr()+X(),Ce=Ye();var Yi=Ji();return Yi>=0&&ar(Yi,ge)?(n+=6,Xe|=1024,Le=String.fromCharCode(Yi)+X(),Ce=Ye()):(n++,Ce=0)}if(ar(Ci,ge)){for(var yt=Ci;n<Er&&gr(yt=er(Tr,n),ge)||Tr.charCodeAt(n)===45;)n+=he(yt);return Le=Tr.substring(Pr,n),yt===92&&(Le+=X()),Ce=Ye()}else return Ce=0}function hi(Ci,Hi){var Yi=n,yt=br,gt=Pr,oa=Ce,Bt=Le,Pi=Xe,Oi=Ci();return(!Oi||Hi)&&(n=Yi,br=yt,Pr=gt,Ce=oa,Le=Bt,Xe=Pi),Oi}function ki(Ci,Hi,Yi){var yt=Er,gt=n,oa=br,Bt=Pr,Pi=Ce,Oi=Le,wi=Xe,Qr=Cr;Rt(Tr,Ci,Hi);var Ct=Yi();return Er=yt,n=gt,br=oa,Pr=Bt,Ce=Pi,Le=Oi,Xe=wi,Cr=Qr,Ct}function Ui(Ci){return hi(Ci,!0)}function zi(Ci){return hi(Ci,!1)}function ri(){return Tr}function Gi(){Cr=void 0}function Rt(Ci,Hi,Yi){Tr=Ci||"",Er=Yi===void 0?Tr.length:Hi+Yi,Vt(Hi||0)}function pa(Ci){Ir=Ci}function xt(Ci){ge=Ci}function ua(Ci){cr=Ci}function Vt(Ci){e.Debug.assert(Ci>=0),n=Ci,br=Ci,Pr=Ci,Ce=0,Le=void 0,Xe=0}function St(Ci){Lr+=Ci?1:-1}}e.createScanner=Ge;var er=String.prototype.codePointAt?function(ge,Fe){return ge.codePointAt(Fe)}:function(Fe,cr){var ur=Fe.length;if(!(cr<0||cr>=ur)){var Ir=Fe.charCodeAt(cr);if(Ir>=55296&&Ir<=56319&&ur>cr+1){var dr=Fe.charCodeAt(cr+1);if(dr>=56320&&dr<=57343)return(Ir-55296)*1024+dr-56320+65536}return Ir}};function he(ge){return ge>=65536?2:1}function we(ge){if(e.Debug.assert(0<=ge&&ge<=1114111),ge<=65535)return String.fromCharCode(ge);var Fe=Math.floor((ge-65536)/1024)+55296,cr=(ge-65536)%1024+56320;return String.fromCharCode(Fe,cr)}var ye=String.fromCodePoint?function(ge){return String.fromCodePoint(ge)}:we;function Se(ge){return ye(ge)}e.utf16EncodeAsString=Se})(Pe||(Pe={}));var Pe;(function(e){function a(je){return e.pathIsRelative(je)||e.isRootedDiskPath(je)}e.isExternalModuleNameRelative=a;function O(je){return e.sortAndDeduplicate(je,e.compareDiagnostics)}e.sortAndDeduplicateDiagnostics=O;function L(je){switch(e.getEmitScriptTarget(je)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}e.getDefaultLibFileName=L;function W(je){return je.start+je.length}e.textSpanEnd=W;function N(je){return je.length===0}e.textSpanIsEmpty=N;function Q(je,ti){return ti>=je.start&&ti<W(je)}e.textSpanContainsPosition=Q;function pe(je,ti){return ti>=je.pos&&ti<=je.end}e.textRangeContainsPositionInclusive=pe;function F(je,ti){return ti.start>=je.start&&W(ti)<=W(je)}e.textSpanContainsTextSpan=F;function g(je,ti){return S(je,ti)!==void 0}e.textSpanOverlapsWith=g;function S(je,ti){var mt=G(je,ti);return mt&&mt.length===0?void 0:mt}e.textSpanOverlap=S;function H(je,ti){return p(je.start,je.length,ti.start,ti.length)}e.textSpanIntersectsWithTextSpan=H;function se(je,ti,mt){return p(je.start,je.length,ti,mt)}e.textSpanIntersectsWith=se;function p(je,ti,mt,Zt){var ln=je+ti,Ba=mt+Zt;return mt<=ln&&Ba>=je}e.decodedTextSpanIntersectsWith=p;function C(je,ti){return ti<=W(je)&&ti>=je.start}e.textSpanIntersectsWithPosition=C;function G(je,ti){var mt=Math.max(je.start,ti.start),Zt=Math.min(W(je),W(ti));return mt<=Zt?ue(mt,Zt):void 0}e.textSpanIntersection=G;function E(je,ti){if(je<0)throw new Error("start < 0");if(ti<0)throw new Error("length < 0");return{start:je,length:ti}}e.createTextSpan=E;function ue(je,ti){return E(je,ti-je)}e.createTextSpanFromBounds=ue;function B(je){return E(je.span.start,je.newLength)}e.textChangeRangeNewSpan=B;function re(je){return N(je.span)&&je.newLength===0}e.textChangeRangeIsUnchanged=re;function M(je,ti){if(ti<0)throw new Error("newLength < 0");return{span:je,newLength:ti}}e.createTextChangeRange=M,e.unchangedTextChangeRange=M(E(0,0),0);function x(je){if(je.length===0)return e.unchangedTextChangeRange;if(je.length===1)return je[0];for(var ti=je[0],mt=ti.span.start,Zt=W(ti.span),ln=mt+ti.newLength,Ba=1;Ba<je.length;Ba++){var Oo=je[Ba],jr=mt,is=Zt,hc=ln,nc=Oo.span.start,ns=W(Oo.span),Xs=nc+Oo.newLength;mt=Math.min(jr,nc),Zt=Math.max(is,is+(ns-hc)),ln=Math.max(Xs,Xs+(hc-ns))}return M(ue(mt,Zt),ln-mt)}e.collapseTextChangeRangesAcrossMultipleVersions=x;function ie(je){if(je&&je.kind===162){for(var ti=je;ti;ti=ti.parent)if(Vt(ti)||Bt(ti)||ti.kind===257)return ti}}e.getTypeParameterOwner=ie;function _e(je,ti){return e.hasSyntacticModifier(je,16476)&&ti.kind===170}e.isParameterPropertyDeclaration=_e;function Y(je){return Xa(je)?e.every(je.elements,Z):!1}e.isEmptyBindingPattern=Y;function Z(je){return e.isOmittedExpression(je)?!0:Y(je.name)}e.isEmptyBindingElement=Z;function k(je){for(var ti=je.parent;e.isBindingElement(ti.parent);)ti=ti.parent.parent;return ti.parent}e.walkUpBindingElementsAndPatterns=k;function I(je,ti){e.isBindingElement(je)&&(je=k(je));var mt=ti(je);return je.kind===253&&(je=je.parent),je&&je.kind===254&&(mt|=ti(je),je=je.parent),je&&je.kind===236&&(mt|=ti(je)),mt}function ne(je){return I(je,e.getEffectiveModifierFlags)}e.getCombinedModifierFlags=ne;function ee(je){return I(je,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc)}e.getCombinedNodeFlagsAlwaysIncludeJSDoc=ee;function A(je){return I(je,function(ti){return ti.flags})}e.getCombinedNodeFlags=A,e.supportedLocaleDirectories=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"];function f(je,ti,mt){var Zt=je.toLowerCase(),ln=/^([a-z]+)([_\-]([a-z]+))?$/.exec(Zt);if(!ln){mt&&mt.push(e.createCompilerDiagnostic(e.Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));return}var Ba=ln[1],Oo=ln[3];e.contains(e.supportedLocaleDirectories,Zt)&&!jr(Ba,Oo,mt)&&jr(Ba,void 0,mt),e.setUILocale(je);function jr(is,hc,nc){var ns=e.normalizePath(ti.getExecutingFilePath()),Xs=e.getDirectoryPath(ns),rc=e.combinePaths(Xs,is);if(hc&&(rc=rc+"-"+hc),rc=ti.resolvePath(e.combinePaths(rc,"diagnosticMessages.generated.json")),!ti.fileExists(rc))return!1;var uu="";try{uu=ti.readFile(rc)}catch{return nc&&nc.push(e.createCompilerDiagnostic(e.Diagnostics.Unable_to_open_file_0,rc)),!1}try{e.setLocalizedDiagnosticMessages(JSON.parse(uu))}catch{return nc&&nc.push(e.createCompilerDiagnostic(e.Diagnostics.Corrupted_locale_file_0,rc)),!1}return!0}}e.validateLocaleAndSetLanguage=f;function P(je,ti){if(je)for(;je.original!==void 0;)je=je.original;return!ti||ti(je)?je:void 0}e.getOriginalNode=P;function D(je,ti){for(;je;){var mt=ti(je);if(mt==="quit")return;if(mt)return je;je=je.parent}}e.findAncestor=D;function l(je){return(je.flags&8)===0}e.isParseTreeNode=l;function _(je,ti){if(je===void 0||l(je))return je;for(je=je.original;je;){if(l(je))return!ti||ti(je)?je:void 0;je=je.original}}e.getParseTreeNode=_;function J(je){return je.length>=2&&je.charCodeAt(0)===95&&je.charCodeAt(1)===95?"_"+je:je}e.escapeLeadingUnderscores=J;function w(je){var ti=je;return ti.length>=3&&ti.charCodeAt(0)===95&&ti.charCodeAt(1)===95&&ti.charCodeAt(2)===95?ti.substr(1):ti}e.unescapeLeadingUnderscores=w;function j(je){return w(je.escapedText)}e.idText=j;function U(je){return je.valueDeclaration&&ki(je.valueDeclaration)?j(je.valueDeclaration.name):w(je.escapedName)}e.symbolName=U;function z(je){var ti=je.parent.parent;if(!!ti){if(Ei(ti))return y(ti);switch(ti.kind){case 236:if(ti.declarationList&&ti.declarationList.declarations[0])return y(ti.declarationList.declarations[0]);break;case 237:var mt=ti.expression;switch(mt.kind===220&&mt.operatorToken.kind===63&&(mt=mt.left),mt.kind){case 205:return mt.name;case 206:var Zt=mt.argumentExpression;if(e.isIdentifier(Zt))return Zt}break;case 211:return y(ti.expression);case 249:{if(Ei(ti.statement)||pn(ti.statement))return y(ti.statement);break}}}}function y(je){var ti=de(je);return ti&&e.isIdentifier(ti)?ti:void 0}function oe(je,ti){return!!(ce(je)&&e.isIdentifier(je.name)&&j(je.name)===j(ti)||e.isVariableStatement(je)&&e.some(je.declarationList.declarations,function(mt){return oe(mt,ti)}))}e.nodeHasName=oe;function ve(je){return je.name||z(je)}e.getNameOfJSDocTypedef=ve;function ce(je){return!!je.name}e.isNamedDeclaration=ce;function m(je){switch(je.kind){case 79:return je;case 345:case 338:{var ti=je.name;if(ti.kind===160)return ti.right;break}case 207:case 220:{var mt=je;switch(e.getAssignmentDeclarationKind(mt)){case 1:case 4:case 5:case 3:return e.getElementOrPropertyAccessArgumentExpressionOrName(mt.left);case 7:case 8:case 9:return mt.arguments[1];default:return}}case 343:return ve(je);case 337:return z(je);case 270:{var Zt=je.expression;return e.isIdentifier(Zt)?Zt:void 0}case 206:var ln=je;if(e.isBindableStaticElementAccessExpression(ln))return ln.argumentExpression}return je.name}e.getNonAssignedNameOfDeclaration=m;function de(je){if(je!==void 0)return m(je)||(e.isFunctionExpression(je)||e.isArrowFunction(je)||e.isClassExpression(je)?ae(je):void 0)}e.getNameOfDeclaration=de;function ae(je){if(je.parent){if(e.isPropertyAssignment(je.parent)||e.isBindingElement(je.parent))return je.parent.name;if(e.isBinaryExpression(je.parent)&&je===je.parent.right){if(e.isIdentifier(je.parent.left))return je.parent.left;if(e.isAccessExpression(je.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(je.parent.left)}else if(e.isVariableDeclaration(je.parent)&&e.isIdentifier(je.parent.name))return je.parent.name}else return}e.getAssignedName=ae;function V(je,ti){if(je.name)if(e.isIdentifier(je.name)){var mt=je.name.escapedText;return Xe(je.parent,ti).filter(function(Ba){return e.isJSDocParameterTag(Ba)&&e.isIdentifier(Ba.name)&&Ba.name.escapedText===mt})}else{var Zt=je.parent.parameters.indexOf(je);e.Debug.assert(Zt>-1,"Parameters should always be in their parents' parameter list");var ln=Xe(je.parent,ti).filter(e.isJSDocParameterTag);if(Zt<ln.length)return[ln[Zt]]}return e.emptyArray}function le(je){return V(je,!1)}e.getJSDocParameterTags=le;function ke(je){return V(je,!0)}e.getJSDocParameterTagsNoCache=ke;function Ue(je,ti){var mt=je.name.escapedText;return Xe(je.parent,ti).filter(function(Zt){return e.isJSDocTemplateTag(Zt)&&Zt.typeParameters.some(function(ln){return ln.name.escapedText===mt})})}function He(je){return Ue(je,!1)}e.getJSDocTypeParameterTags=He;function ar(je){return Ue(je,!0)}e.getJSDocTypeParameterTagsNoCache=ar;function gr(je){return!!Jr(je,e.isJSDocParameterTag)}e.hasJSDocParameterTags=gr;function me(je){return Jr(je,e.isJSDocAugmentsTag)}e.getJSDocAugmentsTag=me;function Ge(je){return Rr(je,e.isJSDocImplementsTag)}e.getJSDocImplementsTags=Ge;function er(je){return Jr(je,e.isJSDocClassTag)}e.getJSDocClassTag=er;function he(je){return Jr(je,e.isJSDocPublicTag)}e.getJSDocPublicTag=he;function we(je){return Jr(je,e.isJSDocPublicTag,!0)}e.getJSDocPublicTagNoCache=we;function ye(je){return Jr(je,e.isJSDocPrivateTag)}e.getJSDocPrivateTag=ye;function Se(je){return Jr(je,e.isJSDocPrivateTag,!0)}e.getJSDocPrivateTagNoCache=Se;function ge(je){return Jr(je,e.isJSDocProtectedTag)}e.getJSDocProtectedTag=ge;function Fe(je){return Jr(je,e.isJSDocProtectedTag,!0)}e.getJSDocProtectedTagNoCache=Fe;function cr(je){return Jr(je,e.isJSDocReadonlyTag)}e.getJSDocReadonlyTag=cr;function ur(je){return Jr(je,e.isJSDocReadonlyTag,!0)}e.getJSDocReadonlyTagNoCache=ur;function Ir(je){return Jr(je,e.isJSDocOverrideTag,!0)}e.getJSDocOverrideTagNoCache=Ir;function dr(je){return Jr(je,e.isJSDocDeprecatedTag)}e.getJSDocDeprecatedTag=dr;function Br(je){return Jr(je,e.isJSDocDeprecatedTag,!0)}e.getJSDocDeprecatedTagNoCache=Br;function Tr(je){return Jr(je,e.isJSDocEnumTag)}e.getJSDocEnumTag=Tr;function n(je){return Jr(je,e.isJSDocThisTag)}e.getJSDocThisTag=n;function Er(je){return Jr(je,e.isJSDocReturnTag)}e.getJSDocReturnTag=Er;function br(je){return Jr(je,e.isJSDocTemplateTag)}e.getJSDocTemplateTag=br;function Pr(je){var ti=Jr(je,e.isJSDocTypeTag);if(ti&&ti.typeExpression&&ti.typeExpression.type)return ti}e.getJSDocTypeTag=Pr;function Ce(je){var ti=Jr(je,e.isJSDocTypeTag);return!ti&&e.isParameter(je)&&(ti=e.find(le(je),function(mt){return!!mt.typeExpression})),ti&&ti.typeExpression&&ti.typeExpression.type}e.getJSDocType=Ce;function Le(je){var ti=Er(je);if(ti&&ti.typeExpression)return ti.typeExpression.type;var mt=Pr(je);if(mt&&mt.typeExpression){var Zt=mt.typeExpression.type;if(e.isTypeLiteralNode(Zt)){var ln=e.find(Zt.members,e.isCallSignatureDeclaration);return ln&&ln.type}if(e.isFunctionTypeNode(Zt)||e.isJSDocFunctionType(Zt))return Zt.type}}e.getJSDocReturnType=Le;function Xe(je,ti){var mt=je.jsDocCache;if(mt===void 0||ti){var Zt=e.getJSDocCommentsAndTags(je,ti);e.Debug.assert(Zt.length<2||Zt[0]!==Zt[1]),mt=e.flatMap(Zt,function(ln){return e.isJSDoc(ln)?ln.tags:ln}),ti||(je.jsDocCache=mt)}return mt}function Cr(je){return Xe(je,!1)}e.getJSDocTags=Cr;function Lr(je){return Xe(je,!0)}e.getJSDocTagsNoCache=Lr;function Jr(je,ti,mt){return e.find(Xe(je,mt),ti)}function Rr(je,ti){return Cr(je).filter(ti)}e.getAllJSDocTags=Rr;function ci(je,ti){return Cr(je).filter(function(mt){return mt.kind===ti})}e.getAllJSDocTagsOfKind=ci;function be(je){return typeof je=="string"?je:je==null?void 0:je.map(function(ti){return ti.kind===319?ti.text:or(ti)}).join("")}e.getTextOfJSDocComment=be;function or(je){var ti=je.kind===322?"link":je.kind===323?"linkcode":"linkplain",mt=je.name?e.entityNameToString(je.name):"",Zt=je.name&&je.text.startsWith("://")?"":" ";return"{@".concat(ti," ").concat(mt).concat(Zt).concat(je.text,"}")}function Kr(je){if(e.isJSDocSignature(je))return e.emptyArray;if(e.isJSDocTypeAlias(je))return e.Debug.assert(je.parent.kind===318),e.flatMap(je.parent.tags,function(Zt){return e.isJSDocTemplateTag(Zt)?Zt.typeParameters:void 0});if(je.typeParameters)return je.typeParameters;if(e.isInJSFile(je)){var ti=e.getJSDocTypeParameterDeclarations(je);if(ti.length)return ti;var mt=Ce(je);if(mt&&e.isFunctionTypeNode(mt)&&mt.typeParameters)return mt.typeParameters}return e.emptyArray}e.getEffectiveTypeParameterDeclarations=Kr;function ei(je){return je.constraint?je.constraint:e.isJSDocTemplateTag(je.parent)&&je===je.parent.typeParameters[0]?je.parent.constraint:void 0}e.getEffectiveConstraintOfTypeParameter=ei;function li(je){return je.kind===79||je.kind===80}e.isMemberName=li;function Si(je){return je.kind===172||je.kind===171}e.isGetOrSetAccessorDeclaration=Si;function qi(je){return e.isPropertyAccessExpression(je)&&!!(je.flags&32)}e.isPropertyAccessChain=qi;function ft(je){return e.isElementAccessExpression(je)&&!!(je.flags&32)}e.isElementAccessChain=ft;function bt(je){return e.isCallExpression(je)&&!!(je.flags&32)}e.isCallChain=bt;function aa(je){var ti=je.kind;return!!(je.flags&32)&&(ti===205||ti===206||ti===207||ti===229)}e.isOptionalChain=aa;function sr(je){return aa(je)&&!e.isNonNullExpression(je)&&!!je.questionDotToken}e.isOptionalChainRoot=sr;function Ji(je){return sr(je.parent)&&je.parent.expression===je}e.isExpressionOfOptionalChainRoot=Ji;function di(je){return!aa(je.parent)||sr(je.parent)||je!==je.parent.expression}e.isOutermostOptionalChain=di;function X(je){return je.kind===220&&je.operatorToken.kind===60}e.isNullishCoalesce=X;function Ye(je){return e.isTypeReferenceNode(je)&&e.isIdentifier(je.typeName)&&je.typeName.escapedText==="const"&&!je.typeArguments}e.isConstTypeReference=Ye;function Be(je){return e.skipOuterExpressions(je,8)}e.skipPartiallyEmittedExpressions=Be;function Qe(je){return e.isNonNullExpression(je)&&!!(je.flags&32)}e.isNonNullChain=Qe;function _r(je){return je.kind===245||je.kind===244}e.isBreakOrContinueStatement=_r;function hr(je){return je.kind===273||je.kind===272}e.isNamedExportBindings=hr;function Dr(je){switch(je.kind){case 300:case 301:return!0;default:return!1}}e.isUnparsedTextLike=Dr;function Me(je){return Dr(je)||je.kind===298||je.kind===302}e.isUnparsedNode=Me;function v(je){return je.kind===345||je.kind===338}e.isJSDocPropertyLikeTag=v;function xe(je){return ze(je.kind)}e.isNode=xe;function ze(je){return je>=160}e.isNodeKind=ze;function Je(je){return je>=0&&je<=159}e.isTokenKind=Je;function Oe(je){return Je(je.kind)}e.isToken=Oe;function Fr(je){return je.hasOwnProperty("pos")&&je.hasOwnProperty("end")}e.isNodeArray=Fr;function Xr(je){return 8<=je&&je<=14}e.isLiteralKind=Xr;function Or(je){return Xr(je.kind)}e.isLiteralExpression=Or;function We(je){return 14<=je&&je<=17}e.isTemplateLiteralKind=We;function mr(je){return We(je.kind)}e.isTemplateLiteralToken=mr;function Nr(je){var ti=je.kind;return ti===16||ti===17}e.isTemplateMiddleOrTemplateTail=Nr;function Ur(je){return e.isImportSpecifier(je)||e.isExportSpecifier(je)}e.isImportOrExportSpecifier=Ur;function si(je){switch(je.kind){case 269:case 274:return je.isTypeOnly||je.parent.parent.isTypeOnly;case 267:return je.parent.isTypeOnly;case 266:case 264:return je.isTypeOnly;default:return!1}}e.isTypeOnlyImportOrExportDeclaration=si;function mi(je){return e.isStringLiteral(je)||e.isIdentifier(je)}e.isAssertionKey=mi;function Ti(je){return je.kind===10||We(je.kind)}e.isStringTextContainingNode=Ti;function hi(je){return e.isIdentifier(je)&&(je.autoGenerateFlags&7)>0}e.isGeneratedIdentifier=hi;function ki(je){return(e.isPropertyDeclaration(je)||Oi(je))&&e.isPrivateIdentifier(je.name)}e.isPrivateIdentifierClassElementDeclaration=ki;function Ui(je){return e.isPropertyAccessExpression(je)&&e.isPrivateIdentifier(je.name)}e.isPrivateIdentifierPropertyAccessExpression=Ui;function zi(je){switch(je){case 126:case 131:case 85:case 135:case 88:case 93:case 123:case 121:case 122:case 144:case 124:case 158:return!0}return!1}e.isModifierKind=zi;function ri(je){return!!(e.modifierToFlag(je)&16476)}e.isParameterPropertyModifier=ri;function Gi(je){return ri(je)||je===124||je===158}e.isClassMemberModifier=Gi;function Rt(je){return zi(je.kind)}e.isModifier=Rt;function pa(je){var ti=je.kind;return ti===160||ti===79}e.isEntityName=pa;function xt(je){var ti=je.kind;return ti===79||ti===80||ti===10||ti===8||ti===161}e.isPropertyName=xt;function ua(je){var ti=je.kind;return ti===79||ti===200||ti===201}e.isBindingName=ua;function Vt(je){return!!je&&yt(je.kind)}e.isFunctionLike=Vt;function St(je){return!!je&&(yt(je.kind)||e.isClassStaticBlockDeclaration(je))}e.isFunctionLikeOrClassStaticBlockDeclaration=St;function Ci(je){return je&&Yi(je.kind)}e.isFunctionLikeDeclaration=Ci;function Hi(je){return je.kind===110||je.kind===95}e.isBooleanLiteral=Hi;function Yi(je){switch(je){case 255:case 168:case 170:case 171:case 172:case 212:case 213:return!0;default:return!1}}function yt(je){switch(je){case 167:case 173:case 321:case 174:case 175:case 178:case 315:case 179:return!0;default:return Yi(je)}}e.isFunctionLikeKind=yt;function gt(je){return e.isSourceFile(je)||e.isModuleBlock(je)||e.isBlock(je)&&Vt(je.parent)}e.isFunctionOrModuleBlock=gt;function oa(je){var ti=je.kind;return ti===170||ti===166||ti===168||ti===171||ti===172||ti===175||ti===169||ti===233}e.isClassElement=oa;function Bt(je){return je&&(je.kind===256||je.kind===225)}e.isClassLike=Bt;function Pi(je){return je&&(je.kind===171||je.kind===172)}e.isAccessor=Pi;function Oi(je){switch(je.kind){case 168:case 171:case 172:return!0;default:return!1}}e.isMethodOrAccessor=Oi;function wi(je){var ti=je.kind;return ti===174||ti===173||ti===165||ti===167||ti===175}e.isTypeElement=wi;function Qr(je){return wi(je)||oa(je)}e.isClassOrTypeElement=Qr;function Ct(je){var ti=je.kind;return ti===294||ti===295||ti===296||ti===168||ti===171||ti===172}e.isObjectLiteralElementLike=Ct;function tt(je){return e.isTypeNodeKind(je.kind)}e.isTypeNode=tt;function ta(je){switch(je.kind){case 178:case 179:return!0}return!1}e.isFunctionOrConstructorTypeNode=ta;function Xa(je){if(je){var ti=je.kind;return ti===201||ti===200}return!1}e.isBindingPattern=Xa;function on(je){var ti=je.kind;return ti===203||ti===204}e.isAssignmentPattern=on;function qr(je){var ti=je.kind;return ti===202||ti===226}e.isArrayBindingElement=qr;function bn(je){switch(je.kind){case 253:case 163:case 202:return!0}return!1}e.isDeclarationBindingElement=bn;function Rn(je){return Sn(je)||Zn(je)}e.isBindingOrAssignmentPattern=Rn;function Sn(je){switch(je.kind){case 200:case 204:return!0}return!1}e.isObjectBindingOrAssignmentPattern=Sn;function zn(je){switch(je.kind){case 202:case 294:case 295:case 296:return!0}return!1}e.isObjectBindingOrAssignmentElement=zn;function Zn(je){switch(je.kind){case 201:case 203:return!0}return!1}e.isArrayBindingOrAssignmentPattern=Zn;function ho(je){var ti=je.kind;return ti===205||ti===160||ti===199}e.isPropertyAccessOrQualifiedNameOrImportTypeNode=ho;function Vo(je){var ti=je.kind;return ti===205||ti===160}e.isPropertyAccessOrQualifiedName=Vo;function Cn(je){switch(je.kind){case 279:case 278:case 207:case 208:case 209:case 164:return!0;default:return!1}}e.isCallLikeExpression=Cn;function go(je){return je.kind===207||je.kind===208}e.isCallOrNewExpression=go;function ro(je){var ti=je.kind;return ti===222||ti===14}e.isTemplateLiteral=ro;function Ko(je){return rs(Be(je).kind)}e.isLeftHandSideExpression=Ko;function rs(je){switch(je){case 205:case 206:case 208:case 207:case 277:case 278:case 281:case 209:case 203:case 211:case 204:case 225:case 212:case 79:case 80:case 13:case 8:case 9:case 10:case 14:case 222:case 95:case 104:case 108:case 110:case 106:case 229:case 230:case 100:return!0;default:return!1}}function rn(je){return Do(Be(je).kind)}e.isUnaryExpression=rn;function Do(je){switch(je){case 218:case 219:case 214:case 215:case 216:case 217:case 210:return!0;default:return rs(je)}}function io(je){switch(je.kind){case 219:return!0;case 218:return je.operator===45||je.operator===46;default:return!1}}e.isUnaryExpressionWithWrite=io;function pn(je){return Qn(Be(je).kind)}e.isExpression=pn;function Qn(je){switch(je){case 221:case 223:case 213:case 220:case 224:case 228:case 226:case 349:case 348:return!0;default:return Do(je)}}function wo(je){var ti=je.kind;return ti===210||ti===228}e.isAssertionExpression=wo;function xo(je){return e.isNotEmittedStatement(je)||e.isPartiallyEmittedExpression(je)}e.isNotEmittedOrPartiallyEmittedNode=xo;function ds(je,ti){switch(je.kind){case 241:case 242:case 243:case 239:case 240:return!0;case 249:return ti&&ds(je.statement,ti)}return!1}e.isIterationStatement=ds;function No(je){return e.isExportAssignment(je)||e.isExportDeclaration(je)}e.isScopeMarker=No;function Ts(je){return e.some(je,No)}e.hasScopeMarker=Ts;function Ms(je){return!e.isAnyImportOrReExport(je)&&!e.isExportAssignment(je)&&!e.hasSyntacticModifier(je,1)&&!e.isAmbientModule(je)}e.needsScopeMarker=Ms;function xr(je){return e.isAnyImportOrReExport(je)||e.isExportAssignment(je)||e.hasSyntacticModifier(je,1)}e.isExternalModuleIndicator=xr;function bi(je){return je.kind===242||je.kind===243}e.isForInOrOfStatement=bi;function ut(je){return e.isBlock(je)||pn(je)}e.isConciseBody=ut;function Ht(je){return e.isBlock(je)}e.isFunctionBody=Ht;function Ka(je){return e.isVariableDeclarationList(je)||pn(je)}e.isForInitializer=Ka;function an(je){var ti=je.kind;return ti===261||ti===260||ti===79}e.isModuleBody=an;function Ke(je){var ti=je.kind;return ti===261||ti===260}e.isNamespaceBody=Ke;function h(je){var ti=je.kind;return ti===79||ti===260}e.isJSDocNamespaceBody=h;function Ee(je){var ti=je.kind;return ti===268||ti===267}e.isNamedImportBindings=Ee;function Re(je){return je.kind===260||je.kind===259}e.isModuleOrEnumDeclaration=Re;function nr(je){return je===213||je===202||je===256||je===225||je===169||je===170||je===259||je===297||je===274||je===255||je===212||je===171||je===266||je===264||je===269||je===257||je===284||je===168||je===167||je===260||je===263||je===267||je===273||je===163||je===294||je===166||je===165||je===172||je===295||je===258||je===162||je===253||je===343||je===336||je===345}function Gr(je){return je===255||je===275||je===256||je===257||je===258||je===259||je===260||je===265||je===264||je===271||je===270||je===263}function _i(je){return je===245||je===244||je===252||je===239||je===237||je===235||je===242||je===243||je===241||je===238||je===249||je===246||je===248||je===250||je===251||je===236||je===240||je===247||je===347||je===351||je===350}function Ei(je){return je.kind===162?je.parent&&je.parent.kind!==342||e.isInJSFile(je):nr(je.kind)}e.isDeclaration=Ei;function Ki(je){return Gr(je.kind)}e.isDeclarationStatement=Ki;function Nt(je){return _i(je.kind)}e.isStatementButNotDeclaration=Nt;function ca(je){var ti=je.kind;return _i(ti)||Gr(ti)||Fa(je)}e.isStatement=ca;function Fa(je){return je.kind!==234||je.parent!==void 0&&(je.parent.kind===251||je.parent.kind===291)?!1:!e.isFunctionBlock(je)}function Ta(je){var ti=je.kind;return _i(ti)||Gr(ti)||ti===234}e.isStatementOrBlock=Ta;function In(je){var ti=je.kind;return ti===276||ti===160||ti===79}e.isModuleReference=In;function so(je){var ti=je.kind;return ti===108||ti===79||ti===205}e.isJsxTagNameExpression=so;function as(je){var ti=je.kind;return ti===277||ti===287||ti===278||ti===11||ti===281}e.isJsxChild=as;function Ho(je){var ti=je.kind;return ti===284||ti===286}e.isJsxAttributeLike=Ho;function Ds(je){var ti=je.kind;return ti===10||ti===287}e.isStringLiteralOrJsxExpression=Ds;function Os(je){var ti=je.kind;return ti===279||ti===278}e.isJsxOpeningLikeElement=Os;function mc(je){var ti=je.kind;return ti===288||ti===289}e.isCaseOrDefaultClause=mc;function Hs(je){return je.kind>=307&&je.kind<=345}e.isJSDocNode=Hs;function Mi(je){return je.kind===318||je.kind===317||je.kind===319||et(je)||$t(je)||e.isJSDocTypeLiteral(je)||e.isJSDocSignature(je)}e.isJSDocCommentContainingNode=Mi;function $t(je){return je.kind>=325&&je.kind<=345}e.isJSDocTag=$t;function ga(je){return je.kind===172}e.isSetAccessor=ga;function xn(je){return je.kind===171}e.isGetAccessor=xn;function yn(je){var ti=je.jsDoc;return!!ti&&ti.length>0}e.hasJSDocNodes=yn;function An(je){return!!je.type}e.hasType=An;function Pa(je){return!!je.initializer}e.hasInitializer=Pa;function Mn(je){switch(je.kind){case 253:case 163:case 202:case 165:case 166:case 294:case 297:return!0;default:return!1}}e.hasOnlyExpressionInitializer=Mn;function ao(je){return je.kind===284||je.kind===286||Ct(je)}e.isObjectLiteralElement=ao;function co(je){return je.kind===177||je.kind===227}e.isTypeReferenceType=co;var De=1073741823;function zr(je){for(var ti=De,mt=0,Zt=je;mt<Zt.length;mt++){var ln=Zt[mt];if(!!ln.length){for(var Ba=0;Ba<ln.length&&Ba<ti&&e.isWhiteSpaceLike(ln.charCodeAt(Ba));Ba++);if(Ba<ti&&(ti=Ba),ti===0)return 0}}return ti===De?void 0:ti}e.guessIndentation=zr;function xi(je){return je.kind===10||je.kind===14}e.isStringLiteralLike=xi;function et(je){return je.kind===322||je.kind===323||je.kind===324}e.isJSDocLinkLike=et})(Pe||(Pe={}));var Pe;(function(e){e.resolvingEmptyArray=[],e.externalHelpersModuleNameText="tslib",e.defaultMaximumTruncationLength=160,e.noTruncationMaximumTruncationLength=1e6;function a(c,$){var pr=c.declarations;if(pr)for(var Yr=0,ji=pr;Yr<ji.length;Yr++){var wt=ji[Yr];if(wt.kind===$)return wt}}e.getDeclarationOfKind=a;function O(c,$){return e.filter(c.declarations||e.emptyArray,function(pr){return pr.kind===$})}e.getDeclarationsOfKind=O;function L(c){var $=new e.Map;if(c)for(var pr=0,Yr=c;pr<Yr.length;pr++){var ji=Yr[pr];$.set(ji.escapedName,ji)}return $}e.createSymbolTable=L;function W(c){return(c.flags&33554432)!==0}e.isTransientSymbol=W;var N=Q();function Q(){var c="",$=function(pr){return c+=pr};return{getText:function(){return c},write:$,rawWrite:$,writeKeyword:$,writeOperator:$,writePunctuation:$,writeSpace:$,writeStringLiteral:$,writeLiteral:$,writeParameter:$,writeProperty:$,writeSymbol:function(pr,Yr){return $(pr)},writeTrailingSemicolon:$,writeComment:$,getTextPos:function(){return c.length},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingComment:function(){return!1},hasTrailingWhitespace:function(){return!!c.length&&e.isWhiteSpaceLike(c.charCodeAt(c.length-1))},writeLine:function(){return c+=" "},increaseIndent:e.noop,decreaseIndent:e.noop,clear:function(){return c=""},trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop}}function pe(c,$){return c.configFilePath!==$.configFilePath||F(c,$)}e.changesAffectModuleResolution=pe;function F(c,$){return S(c,$,e.moduleResolutionOptionDeclarations)}e.optionsHaveModuleResolutionChanges=F;function g(c,$){return S(c,$,e.optionsAffectingProgramStructure)}e.changesAffectingProgramStructure=g;function S(c,$,pr){return c!==$&&pr.some(function(Yr){return!Rg(Qd(c,Yr),Qd($,Yr))})}e.optionsHaveChanges=S;function H(c,$){for(;;){var pr=$(c);if(pr==="quit")return;if(pr!==void 0)return pr;if(e.isSourceFile(c))return;c=c.parent}}e.forEachAncestor=H;function se(c,$){for(var pr=c.entries(),Yr=pr.next();!Yr.done;Yr=pr.next()){var ji=Yr.value,wt=ji[0],Lt=ji[1],Ea=$(Lt,wt);if(Ea)return Ea}}e.forEachEntry=se;function p(c,$){for(var pr=c.keys(),Yr=pr.next();!Yr.done;Yr=pr.next()){var ji=$(Yr.value);if(ji)return ji}}e.forEachKey=p;function C(c,$){c.forEach(function(pr,Yr){$.set(Yr,pr)})}e.copyEntries=C;function G(c){var $=N.getText();try{return c(N),N.getText()}finally{N.clear(),N.writeKeyword($)}}e.usingSingleLineStringWriter=G;function E(c){return c.end-c.pos}e.getFullWidth=E;function ue(c,$,pr){return c&&c.resolvedModules&&c.resolvedModules.get($,pr)}e.getResolvedModule=ue;function B(c,$,pr,Yr){c.resolvedModules||(c.resolvedModules=e.createModeAwareCache()),c.resolvedModules.set($,Yr,pr)}e.setResolvedModule=B;function re(c,$,pr){c.resolvedTypeReferenceDirectiveNames||(c.resolvedTypeReferenceDirectiveNames=e.createModeAwareCache()),c.resolvedTypeReferenceDirectiveNames.set($,void 0,pr)}e.setResolvedTypeReferenceDirective=re;function M(c,$){return c.path===$.path&&!c.prepend==!$.prepend&&!c.circular==!$.circular}e.projectReferenceIsEqualTo=M;function x(c,$){return c.isExternalLibraryImport===$.isExternalLibraryImport&&c.extension===$.extension&&c.resolvedFileName===$.resolvedFileName&&c.originalPath===$.originalPath&&ie(c.packageId,$.packageId)}e.moduleResolutionIsEqualTo=x;function ie(c,$){return c===$||!!c&&!!$&&c.name===$.name&&c.subModuleName===$.subModuleName&&c.version===$.version}function _e(c){var $=c.name,pr=c.subModuleName;return pr?"".concat($,"/").concat(pr):$}e.packageIdToPackageName=_e;function Y(c){return"".concat(_e(c),"@").concat(c.version)}e.packageIdToString=Y;function Z(c,$){return c.resolvedFileName===$.resolvedFileName&&c.primary===$.primary&&c.originalPath===$.originalPath}e.typeDirectiveIsEqualTo=Z;function k(c,$,pr,Yr,ji){e.Debug.assert(c.length===$.length);for(var wt=0;wt<c.length;wt++){var Lt=$[wt],Ea=pr&&pr.get(c[wt],Yr&&e.getModeForResolutionAtIndex(Yr,wt)),vn=Ea?!Lt||!ji(Ea,Lt):Lt;if(vn)return!0}return!1}e.hasChangesInResolutions=k;function I(c){return ne(c),(c.flags&262144)!==0}e.containsParseError=I;function ne(c){if(!(c.flags&524288)){var $=(c.flags&65536)!==0||e.forEachChild(c,I);$&&(c.flags|=262144),c.flags|=524288}}function ee(c){for(;c&&c.kind!==303;)c=c.parent;return c}e.getSourceFileOfNode=ee;function A(c){return ee(c.valueDeclaration||Cr(c))}e.getSourceFileOfModule=A;function f(c,$){return!!c&&(c.scriptKind===1||c.scriptKind===2)&&!c.checkJsDirective&&$===void 0}e.isPlainJsFile=f;function P(c){switch(c.kind){case 234:case 262:case 241:case 242:case 243:return!0}return!1}e.isStatementWithLocals=P;function D(c,$){return e.Debug.assert(c>=0),e.getLineStarts($)[c]}e.getStartPositionOfLine=D;function l(c){var $=ee(c),pr=e.getLineAndCharacterOfPosition($,c.pos);return"".concat($.fileName,"(").concat(pr.line+1,",").concat(pr.character+1,")")}e.nodePosToString=l;function _(c,$){e.Debug.assert(c>=0);var pr=e.getLineStarts($),Yr=c,ji=$.text;if(Yr+1===pr.length)return ji.length-1;var wt=pr[Yr],Lt=pr[Yr+1]-1;for(e.Debug.assert(e.isLineBreak(ji.charCodeAt(Lt)));wt<=Lt&&e.isLineBreak(ji.charCodeAt(Lt));)Lt--;return Lt}e.getEndLinePosition=_;function J(c,$,pr){return!(pr&&pr($))&&!c.identifiers.has($)}e.isFileLevelUniqueName=J;function w(c){return c===void 0?!0:c.pos===c.end&&c.pos>=0&&c.kind!==1}e.nodeIsMissing=w;function j(c){return!w(c)}e.nodeIsPresent=j;function U(c,$,pr){if($===void 0||$.length===0)return c;for(var Yr=0;Yr<c.length&&pr(c[Yr]);++Yr);return c.splice.apply(c,qe([Yr,0],$,!1)),c}function z(c,$,pr){if($===void 0)return c;for(var Yr=0;Yr<c.length&&pr(c[Yr]);++Yr);return c.splice(Yr,0,$),c}function y(c){return Ti(c)||!!(he(c)&1048576)}function oe(c,$){return U(c,$,Ti)}e.insertStatementsAfterStandardPrologue=oe;function ve(c,$){return U(c,$,y)}e.insertStatementsAfterCustomPrologue=ve;function ce(c,$){return z(c,$,Ti)}e.insertStatementAfterStandardPrologue=ce;function m(c,$){return z(c,$,y)}e.insertStatementAfterCustomPrologue=m;function de(c,$,pr){if(c.charCodeAt($+1)===47&&$+2<pr&&c.charCodeAt($+2)===47){var Yr=c.substring($,pr);return!!(e.fullTripleSlashReferencePathRegEx.test(Yr)||e.fullTripleSlashAMDReferencePathRegEx.test(Yr)||Rt.test(Yr)||pa.test(Yr))}return!1}e.isRecognizedTripleSlashComment=de;function ae(c,$){return c.charCodeAt($+1)===42&&c.charCodeAt($+2)===33}e.isPinnedComment=ae;function V(c,$){var pr=new e.Map($.map(function(Lt){return["".concat(e.getLineAndCharacterOfPosition(c,Lt.range.end).line),Lt]})),Yr=new e.Map;return{getUnusedExpectations:ji,markUsed:wt};function ji(){return e.arrayFrom(pr.entries()).filter(function(Lt){var Ea=Lt[0],vn=Lt[1];return vn.type===0&&!Yr.get(Ea)}).map(function(Lt){var Ea=Lt[0],vn=Lt[1];return vn})}function wt(Lt){return pr.has("".concat(Lt))?(Yr.set("".concat(Lt),!0),!0):!1}}e.createCommentDirectivesMap=V;function le(c,$,pr){return w(c)?c.pos:e.isJSDocNode(c)||c.kind===11?e.skipTrivia(($||ee(c)).text,c.pos,!1,!0):pr&&e.hasJSDocNodes(c)?le(c.jsDoc[0],$):c.kind===346&&c._children.length>0?le(c._children[0],$,pr):e.skipTrivia(($||ee(c)).text,c.pos,!1,!1,Nt(c))}e.getTokenPosOfNode=le;function ke(c,$){return w(c)||!c.decorators?le(c,$):e.skipTrivia(($||ee(c)).text,c.decorators.end)}e.getNonDecoratorTokenPosOfNode=ke;function Ue(c,$,pr){return pr===void 0&&(pr=!1),gr(c.text,$,pr)}e.getSourceTextOfNodeFromSourceFile=Ue;function He(c){return!!e.findAncestor(c,e.isJSDocTypeExpression)}function ar(c){return!!(e.isExportDeclaration(c)&&c.exportClause&&e.isNamespaceExport(c.exportClause)&&c.exportClause.name.escapedText==="default")}e.isExportNamespaceAsDefaultDeclaration=ar;function gr(c,$,pr){if(pr===void 0&&(pr=!1),w($))return"";var Yr=c.substring(pr?$.pos:e.skipTrivia(c,$.pos),$.end);return He($)&&(Yr=Yr.split(/\r\n|\n|\r/).map(function(ji){return e.trimStringStart(ji.replace(/^\s*\*/,""))}).join(`
`)),Yr}e.getTextOfNodeFromSourceText=gr;function me(c,$){return $===void 0&&($=!1),Ue(ee(c),c,$)}e.getTextOfNode=me;function Ge(c){return c.pos}function er(c,$){return e.binarySearch(c,$,Ge,e.compareValues)}e.indexOfNode=er;function he(c){var $=c.emitNode;return $&&$.flags||0}e.getEmitFlags=he;function we(){return{es2015:{Array:["find","findIndex","fill","copyWithin","entries","keys","values"],RegExp:["flags","sticky","unicode"],Reflect:["apply","construct","defineProperty","deleteProperty","get"," getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"],ArrayConstructor:["from","of"],ObjectConstructor:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],NumberConstructor:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"],Math:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"],Map:["entries","keys","values"],Set:["entries","keys","values"],Promise:e.emptyArray,PromiseConstructor:["all","race","reject","resolve"],Symbol:["for","keyFor"],WeakMap:["entries","keys","values"],WeakSet:["entries","keys","values"],Iterator:e.emptyArray,AsyncIterator:e.emptyArray,String:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],StringConstructor:["fromCodePoint","raw"]},es2016:{Array:["includes"]},es2017:{Atomics:e.emptyArray,SharedArrayBuffer:e.emptyArray,String:["padStart","padEnd"],ObjectConstructor:["values","entries","getOwnPropertyDescriptors"],DateTimeFormat:["formatToParts"]},es2018:{Promise:["finally"],RegExpMatchArray:["groups"],RegExpExecArray:["groups"],RegExp:["dotAll"],Intl:["PluralRules"],AsyncIterable:e.emptyArray,AsyncIterableIterator:e.emptyArray,AsyncGenerator:e.emptyArray,AsyncGeneratorFunction:e.emptyArray,NumberFormat:["formatToParts"]},es2019:{Array:["flat","flatMap"],ObjectConstructor:["fromEntries"],String:["trimStart","trimEnd","trimLeft","trimRight"],Symbol:["description"]},es2020:{BigInt:e.emptyArray,BigInt64Array:e.emptyArray,BigUint64Array:e.emptyArray,PromiseConstructor:["allSettled"],SymbolConstructor:["matchAll"],String:["matchAll"],DataView:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"],RelativeTimeFormat:["format","formatToParts","resolvedOptions"]},es2021:{PromiseConstructor:["any"],String:["replaceAll"]},es2022:{Array:["at"],String:["at"],Int8Array:["at"],Uint8Array:["at"],Uint8ClampedArray:["at"],Int16Array:["at"],Uint16Array:["at"],Int32Array:["at"],Uint32Array:["at"],Float32Array:["at"],Float64Array:["at"],BigInt64Array:["at"],BigUint64Array:["at"],ObjectConstructor:["hasOwn"],Error:["cause"]}}}e.getScriptTargetFeatures=we;var ye;(function(c){c[c.None=0]="None",c[c.NeverAsciiEscape=1]="NeverAsciiEscape",c[c.JsxAttributeEscape=2]="JsxAttributeEscape",c[c.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",c[c.AllowNumericSeparator=8]="AllowNumericSeparator"})(ye=e.GetLiteralTextFlags||(e.GetLiteralTextFlags={}));function Se(c,$,pr){var Yr;if(ge(c,pr))return Ue($,c);switch(c.kind){case 10:{var ji=pr&2?pu:pr&1||he(c)&16777216?Jc:nf;return c.singleQuote?"'"+ji(c.text,39)+"'":'"'+ji(c.text,34)+'"'}case 14:case 15:case 16:case 17:{var ji=pr&1||he(c)&16777216?Jc:nf,wt=(Yr=c.rawText)!==null&&Yr!==void 0?Yr:R_(ji(c.text,96));switch(c.kind){case 14:return"`"+wt+"`";case 15:return"`"+wt+"${";case 16:return"}"+wt+"${";case 17:return"}"+wt+"`"}break}case 8:case 9:return c.text;case 13:return pr&4&&c.isUnterminated?c.text+(c.text.charCodeAt(c.text.length-1)===92?" /":"/"):c.text}return e.Debug.fail("Literal kind '".concat(c.kind,"' not accounted for."))}e.getLiteralText=Se;function ge(c,$){return mp(c)||!c.parent||$&4&&c.isUnterminated?!1:e.isNumericLiteral(c)&&c.numericLiteralFlags&512?!!($&8):!e.isBigIntLiteral(c)}function Fe(c){return e.isString(c)?'"'+nf(c)+'"':""+c}e.getTextOfConstantValue=Fe;function cr(c){return e.getBaseFileName(c).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}e.makeIdentifierFromModuleName=cr;function ur(c){return(e.getCombinedNodeFlags(c)&3)!==0||Ir(c)}e.isBlockOrCatchScoped=ur;function Ir(c){var $=a_(c);return $.kind===253&&$.parent.kind===291}e.isCatchClauseVariableDeclarationOrBindingElement=Ir;function dr(c){return e.isModuleDeclaration(c)&&(c.name.kind===10||Ce(c))}e.isAmbientModule=dr;function Br(c){return e.isModuleDeclaration(c)&&c.name.kind===10}e.isModuleWithStringLiteralName=Br;function Tr(c){return e.isModuleDeclaration(c)&&e.isStringLiteral(c.name)}e.isNonGlobalAmbientModule=Tr;function n(c){return e.isModuleDeclaration(c)||e.isIdentifier(c)}e.isEffectiveModuleDeclaration=n;function Er(c){return br(c.valueDeclaration)}e.isShorthandAmbientModuleSymbol=Er;function br(c){return!!c&&c.kind===260&&!c.body}function Pr(c){return c.kind===303||c.kind===260||e.isFunctionLikeOrClassStaticBlockDeclaration(c)}e.isBlockScopedContainerTopLevel=Pr;function Ce(c){return!!(c.flags&1024)}e.isGlobalScopeAugmentation=Ce;function Le(c){return dr(c)&&Xe(c)}e.isExternalModuleAugmentation=Le;function Xe(c){switch(c.parent.kind){case 303:return e.isExternalModule(c.parent);case 261:return dr(c.parent.parent)&&e.isSourceFile(c.parent.parent.parent)&&!e.isExternalModule(c.parent.parent.parent)}return!1}e.isModuleAugmentationExternal=Xe;function Cr(c){var $;return($=c.declarations)===null||$===void 0?void 0:$.find(function(pr){return!Le(pr)&&!(e.isModuleDeclaration(pr)&&Ce(pr))})}e.getNonAugmentationDeclaration=Cr;function Lr(c){return c===e.ModuleKind.CommonJS||c===e.ModuleKind.Node12||c===e.ModuleKind.NodeNext}function Jr(c,$){return e.isExternalModule(c)||$.isolatedModules||Lr(_t($))&&!!c.commonJsModuleIndicator}e.isEffectiveExternalModule=Jr;function Rr(c,$){switch(c.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return c.isDeclarationFile?!1:Pl($,"alwaysStrict")||e.startsWithUseStrict(c.statements)?!0:e.isExternalModule(c)||$.isolatedModules?_t($)>=e.ModuleKind.ES2015?!0:!$.noImplicitUseStrict:!1}e.isEffectiveStrictModeSourceFile=Rr;function ci(c,$){switch(c.kind){case 303:case 262:case 291:case 260:case 241:case 242:case 243:case 170:case 168:case 171:case 172:case 255:case 212:case 213:case 166:case 169:return!0;case 234:return!e.isFunctionLikeOrClassStaticBlockDeclaration($)}return!1}e.isBlockScope=ci;function be(c){switch(c.kind){case 336:case 343:case 321:return!0;default:return e.assertType(c),or(c)}}e.isDeclarationWithTypeParameters=be;function or(c){switch(c.kind){case 173:case 174:case 167:case 175:case 178:case 179:case 315:case 256:case 225:case 257:case 258:case 342:case 255:case 168:case 170:case 171:case 172:case 212:case 213:return!0;default:return e.assertType(c),!1}}e.isDeclarationWithTypeParameterChildren=or;function Kr(c){switch(c.kind){case 265:case 264:return!0;default:return!1}}e.isAnyImportSyntax=Kr;function ei(c){switch(c.kind){case 265:case 264:case 236:case 256:case 255:case 260:case 258:case 257:case 259:return!0;default:return!1}}e.isLateVisibilityPaintedStatement=ei;function li(c){return Si(c)||e.isModuleDeclaration(c)||e.isImportTypeNode(c)||Ur(c)}e.hasPossibleExternalModuleReference=li;function Si(c){return Kr(c)||e.isExportDeclaration(c)}e.isAnyImportOrReExport=Si;function qi(c){return e.findAncestor(c.parent,function($){return ci($,$.parent)})}e.getEnclosingBlockScopeContainer=qi;function ft(c,$){for(var pr=qi(c);pr;)$(pr),pr=qi(pr)}e.forEachEnclosingBlockScopeContainer=ft;function bt(c){return!c||E(c)===0?"(Missing)":me(c)}e.declarationNameToString=bt;function aa(c){return c.declaration?bt(c.declaration.parameters[0].name):void 0}e.getNameFromIndexInfo=aa;function sr(c){return c.kind===161&&!el(c.expression)}e.isComputedNonLiteralName=sr;function Ji(c){switch(c.kind){case 79:case 80:return c.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(c.text);case 161:return el(c.expression)?e.escapeLeadingUnderscores(c.expression.text):e.Debug.fail("Text of property name cannot be read from non-literal-valued ComputedPropertyNames");default:return e.Debug.assertNever(c)}}e.getTextOfPropertyName=Ji;function di(c){switch(c.kind){case 108:return"this";case 80:case 79:return E(c)===0?e.idText(c):me(c);case 160:return di(c.left)+"."+di(c.right);case 205:return e.isIdentifier(c.name)||e.isPrivateIdentifier(c.name)?di(c.expression)+"."+di(c.name):e.Debug.assertNever(c.name);case 309:return di(c.left)+di(c.right);default:return e.Debug.assertNever(c)}}e.entityNameToString=di;function X(c,$,pr,Yr,ji,wt){var Lt=ee(c);return Be(Lt,c,$,pr,Yr,ji,wt)}e.createDiagnosticForNode=X;function Ye(c,$,pr,Yr,ji,wt,Lt){var Ea=e.skipTrivia(c.text,$.pos);return od(c,Ea,$.end-Ea,pr,Yr,ji,wt,Lt)}e.createDiagnosticForNodeArray=Ye;function Be(c,$,pr,Yr,ji,wt,Lt){var Ea=Je(c,$);return od(c,Ea.start,Ea.length,pr,Yr,ji,wt,Lt)}e.createDiagnosticForNodeInSourceFile=Be;function Qe(c,$,pr){var Yr=ee(c),ji=Je(Yr,c);return hr(Yr,ji.start,ji.length,$,pr)}e.createDiagnosticForNodeFromMessageChain=Qe;function _r(c,$,pr){e.Debug.assertGreaterThanOrEqual($,0),e.Debug.assertGreaterThanOrEqual(pr,0),c&&(e.Debug.assertLessThanOrEqual($,c.text.length),e.Debug.assertLessThanOrEqual($+pr,c.text.length))}function hr(c,$,pr,Yr,ji){return _r(c,$,pr),{file:c,start:$,length:pr,code:Yr.code,category:Yr.category,messageText:Yr.next?Yr:Yr.messageText,relatedInformation:ji}}e.createFileDiagnosticFromMessageChain=hr;function Dr(c,$,pr){return{file:c,start:0,length:0,code:$.code,category:$.category,messageText:$.next?$:$.messageText,relatedInformation:pr}}e.createDiagnosticForFileFromMessageChain=Dr;function Me(c){return typeof c.messageText=="string"?{code:c.code,category:c.category,messageText:c.messageText,next:c.next}:c.messageText}e.createDiagnosticMessageChainFromDiagnostic=Me;function v(c,$,pr){return{file:c,start:$.pos,length:$.end-$.pos,code:pr.code,category:pr.category,messageText:pr.message}}e.createDiagnosticForRange=v;function xe(c,$){var pr=e.createScanner(c.languageVersion,!0,c.languageVariant,c.text,void 0,$);pr.scan();var Yr=pr.getTokenPos();return e.createTextSpanFromBounds(Yr,pr.getTextPos())}e.getSpanOfTokenAtPosition=xe;function ze(c,$){var pr=e.skipTrivia(c.text,$.pos);if($.body&&$.body.kind===234){var Yr=e.getLineAndCharacterOfPosition(c,$.body.pos).line,ji=e.getLineAndCharacterOfPosition(c,$.body.end).line;if(Yr<ji)return e.createTextSpan(pr,_(Yr,c)-pr+1)}return e.createTextSpanFromBounds(pr,$.end)}function Je(c,$){var pr=$;switch($.kind){case 303:var Yr=e.skipTrivia(c.text,0,!1);return Yr===c.text.length?e.createTextSpan(0,0):xe(c,Yr);case 253:case 202:case 256:case 225:case 257:case 260:case 259:case 297:case 255:case 212:case 168:case 171:case 172:case 258:case 166:case 165:case 267:pr=$.name;break;case 213:return ze(c,$);case 288:case 289:var ji=e.skipTrivia(c.text,$.pos),wt=$.statements.length>0?$.statements[0].pos:$.end;return e.createTextSpanFromBounds(ji,wt)}if(pr===void 0)return xe(c,$.pos);e.Debug.assert(!e.isJSDoc(pr));var Lt=w(pr),Ea=Lt||e.isJsxText($)?pr.pos:e.skipTrivia(c.text,pr.pos);return Lt?(e.Debug.assert(Ea===pr.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(Ea===pr.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(Ea>=pr.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(Ea<=pr.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(Ea,pr.end)}e.getErrorSpanForNode=Je;function Oe(c){return(c.externalModuleIndicator||c.commonJsModuleIndicator)!==void 0}e.isExternalOrCommonJsModule=Oe;function Fr(c){return c.scriptKind===6}e.isJsonSourceFile=Fr;function Xr(c){return!!(e.getCombinedModifierFlags(c)&2048)}e.isEnumConst=Xr;function Or(c){return!!(e.getCombinedModifierFlags(c)&64&&!e.isParameterPropertyDeclaration(c,c.parent))}e.isDeclarationReadonly=Or;function We(c){return!!(e.getCombinedNodeFlags(c)&2)}e.isVarConst=We;function mr(c){return!!(e.getCombinedNodeFlags(c)&1)}e.isLet=mr;function Nr(c){return c.kind===207&&c.expression.kind===106}e.isSuperCall=Nr;function Ur(c){return c.kind===207&&c.expression.kind===100}e.isImportCall=Ur;function si(c){return e.isMetaProperty(c)&&c.keywordToken===100&&c.name.escapedText==="meta"}e.isImportMeta=si;function mi(c){return e.isImportTypeNode(c)&&e.isLiteralTypeNode(c.argument)&&e.isStringLiteral(c.argument.literal)}e.isLiteralImportTypeNode=mi;function Ti(c){return c.kind===237&&c.expression.kind===10}e.isPrologueDirective=Ti;function hi(c){return!!(he(c)&1048576)}e.isCustomPrologue=hi;function ki(c){return hi(c)&&e.isFunctionDeclaration(c)}e.isHoistedFunction=ki;function Ui(c){return e.isIdentifier(c.name)&&!c.initializer}function zi(c){return hi(c)&&e.isVariableStatement(c)&&e.every(c.declarationList.declarations,Ui)}e.isHoistedVariableStatement=zi;function ri(c,$){return c.kind!==11?e.getLeadingCommentRanges($.text,c.pos):void 0}e.getLeadingCommentRangesOfNode=ri;function Gi(c,$){var pr=c.kind===163||c.kind===162||c.kind===212||c.kind===213||c.kind===211||c.kind===253||c.kind===274?e.concatenate(e.getTrailingCommentRanges($,c.pos),e.getLeadingCommentRanges($,c.pos)):e.getLeadingCommentRanges($,c.pos);return e.filter(pr,function(Yr){return $.charCodeAt(Yr.pos+1)===42&&$.charCodeAt(Yr.pos+2)===42&&$.charCodeAt(Yr.pos+3)!==47})}e.getJSDocCommentRanges=Gi,e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var Rt=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var pa=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/;function xt(c){if(176<=c.kind&&c.kind<=199)return!0;switch(c.kind){case 130:case 154:case 146:case 157:case 149:case 133:case 150:case 147:case 152:case 143:return!0;case 114:return c.parent.kind!==216;case 227:return!nl(c);case 162:return c.parent.kind===194||c.parent.kind===189;case 79:(c.parent.kind===160&&c.parent.right===c||c.parent.kind===205&&c.parent.name===c)&&(c=c.parent),e.Debug.assert(c.kind===79||c.kind===160||c.kind===205,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 160:case 205:case 108:{var $=c.parent;if($.kind===180)return!1;if($.kind===199)return!$.isTypeOf;if(176<=$.kind&&$.kind<=199)return!0;switch($.kind){case 227:return!nl($);case 162:return c===$.constraint;case 342:return c===$.constraint;case 166:case 165:case 163:case 253:return c===$.type;case 255:case 212:case 213:case 170:case 168:case 167:case 171:case 172:return c===$.type;case 173:case 174:case 175:return c===$.type;case 210:return c===$.type;case 207:case 208:return e.contains($.typeArguments,c);case 209:return!1}}}return!1}e.isPartOfTypeNode=xt;function ua(c,$){for(;c;){if(c.kind===$)return!0;c=c.parent}return!1}e.isChildOfNodeWithKind=ua;function Vt(c,$){return pr(c);function pr(Yr){switch(Yr.kind){case 246:return $(Yr);case 262:case 234:case 238:case 239:case 240:case 241:case 242:case 243:case 247:case 248:case 288:case 289:case 249:case 251:case 291:return e.forEachChild(Yr,pr)}}}e.forEachReturnStatement=Vt;function St(c,$){return pr(c);function pr(Yr){switch(Yr.kind){case 223:$(Yr);var ji=Yr.expression;ji&&pr(ji);return;case 259:case 257:case 260:case 258:return;default:if(e.isFunctionLike(Yr)){if(Yr.name&&Yr.name.kind===161){pr(Yr.name.expression);return}}else xt(Yr)||e.forEachChild(Yr,pr)}}}e.forEachYieldExpression=St;function Ci(c){return c&&c.kind===182?c.elementType:c&&c.kind===177?e.singleOrUndefined(c.typeArguments):void 0}e.getRestParameterElementType=Ci;function Hi(c){switch(c.kind){case 257:case 256:case 225:case 181:return c.members;case 204:return c.properties}}e.getMembersOfDeclaration=Hi;function Yi(c){if(c)switch(c.kind){case 202:case 297:case 163:case 294:case 166:case 165:case 295:case 253:return!0}return!1}e.isVariableLike=Yi;function yt(c){return Yi(c)||e.isAccessor(c)}e.isVariableLikeOrAccessor=yt;function gt(c){return c.parent.kind===254&&c.parent.parent.kind===236}e.isVariableDeclarationInVariableStatement=gt;function oa(c){return e.isVariableDeclaration(c)?We(c)&&e.isIdentifier(c.name)&&gt(c):e.isPropertyDeclaration(c)?pf(c)&&ss(c):e.isPropertySignature(c)&&pf(c)}e.isValidESSymbolDeclaration=oa;function Bt(c){switch(c.kind){case 168:case 167:case 170:case 171:case 172:case 255:case 212:return!0}return!1}e.introducesArgumentsExoticObject=Bt;function Pi(c,$){for(;;){if($&&$(c),c.statement.kind!==249)return c.statement;c=c.statement}}e.unwrapInnermostStatementOfLabel=Pi;function Oi(c){return c&&c.kind===234&&e.isFunctionLike(c.parent)}e.isFunctionBlock=Oi;function wi(c){return c&&c.kind===168&&c.parent.kind===204}e.isObjectLiteralMethod=wi;function Qr(c){return(c.kind===168||c.kind===171||c.kind===172)&&(c.parent.kind===204||c.parent.kind===225)}e.isObjectLiteralOrClassExpressionMethodOrAccessor=Qr;function Ct(c){return c&&c.kind===1}e.isIdentifierTypePredicate=Ct;function tt(c){return c&&c.kind===0}e.isThisTypePredicate=tt;function ta(c,$,pr){return c.properties.filter(function(Yr){if(Yr.kind===294){var ji=Ji(Yr.name);return $===ji||!!pr&&pr===ji}return!1})}e.getPropertyAssignment=ta;function Xa(c,$,pr){return e.firstDefined(ta(c,$),function(Yr){return e.isArrayLiteralExpression(Yr.initializer)?e.find(Yr.initializer.elements,function(ji){return e.isStringLiteral(ji)&&ji.text===pr}):void 0})}e.getPropertyArrayElementValue=Xa;function on(c){if(c&&c.statements.length){var $=c.statements[0].expression;return e.tryCast($,e.isObjectLiteralExpression)}}e.getTsConfigObjectLiteralExpression=on;function qr(c,$,pr){return e.firstDefined(bn(c,$),function(Yr){return e.isArrayLiteralExpression(Yr.initializer)?e.find(Yr.initializer.elements,function(ji){return e.isStringLiteral(ji)&&ji.text===pr}):void 0})}e.getTsConfigPropArrayElementValue=qr;function bn(c,$){var pr=on(c);return pr?ta(pr,$):e.emptyArray}e.getTsConfigPropArray=bn;function Rn(c){return e.findAncestor(c.parent,e.isFunctionLike)}e.getContainingFunction=Rn;function Sn(c){return e.findAncestor(c.parent,e.isFunctionLikeDeclaration)}e.getContainingFunctionDeclaration=Sn;function zn(c){return e.findAncestor(c.parent,e.isClassLike)}e.getContainingClass=zn;function Zn(c){return e.findAncestor(c.parent,function($){return e.isClassLike($)||e.isFunctionLike($)?"quit":e.isClassStaticBlockDeclaration($)})}e.getContainingClassStaticBlock=Zn;function ho(c){return e.findAncestor(c.parent,e.isFunctionLikeOrClassStaticBlockDeclaration)}e.getContainingFunctionOrClassStaticBlock=ho;function Vo(c,$){for(e.Debug.assert(c.kind!==303);;){if(c=c.parent,!c)return e.Debug.fail();switch(c.kind){case 161:if(e.isClassLike(c.parent.parent))return c;c=c.parent;break;case 164:c.parent.kind===163&&e.isClassElement(c.parent.parent)?c=c.parent.parent:e.isClassElement(c.parent)&&(c=c.parent);break;case 213:if(!$)continue;case 255:case 212:case 260:case 169:case 166:case 165:case 168:case 167:case 170:case 171:case 172:case 173:case 174:case 175:case 259:case 303:return c}}}e.getThisContainer=Vo;function Cn(c){switch(c.kind){case 213:case 255:case 212:case 166:return!0;case 234:switch(c.parent.kind){case 170:case 168:case 171:case 172:return!0;default:return!1}default:return!1}}e.isThisContainerOrFunctionBlock=Cn;function go(c){e.isIdentifier(c)&&(e.isClassDeclaration(c.parent)||e.isFunctionDeclaration(c.parent))&&c.parent.name===c&&(c=c.parent);var $=Vo(c,!0);return e.isSourceFile($)}e.isInTopLevelContext=go;function ro(c){var $=Vo(c,!1);if($)switch($.kind){case 170:case 255:case 212:return $}}e.getNewTargetContainer=ro;function Ko(c,$){for(;;){if(c=c.parent,!c)return c;switch(c.kind){case 161:c=c.parent;break;case 255:case 212:case 213:if(!$)continue;case 166:case 165:case 168:case 167:case 170:case 171:case 172:case 169:return c;case 164:c.parent.kind===163&&e.isClassElement(c.parent.parent)?c=c.parent.parent:e.isClassElement(c.parent)&&(c=c.parent);break}}}e.getSuperContainer=Ko;function rs(c){if(c.kind===212||c.kind===213){for(var $=c,pr=c.parent;pr.kind===211;)$=pr,pr=pr.parent;if(pr.kind===207&&pr.expression===$)return pr}}e.getImmediatelyInvokedFunctionExpression=rs;function rn(c){return c.kind===106||Do(c)}e.isSuperOrSuperProperty=rn;function Do(c){var $=c.kind;return($===205||$===206)&&c.expression.kind===106}e.isSuperProperty=Do;function io(c){var $=c.kind;return($===205||$===206)&&c.expression.kind===108}e.isThisProperty=io;function pn(c){var $;return!!c&&e.isVariableDeclaration(c)&&(($=c.initializer)===null||$===void 0?void 0:$.kind)===108}e.isThisInitializedDeclaration=pn;function Qn(c){return!!c&&(e.isShorthandPropertyAssignment(c)||e.isPropertyAssignment(c))&&e.isBinaryExpression(c.parent.parent)&&c.parent.parent.operatorToken.kind===63&&c.parent.parent.right.kind===108}e.isThisInitializedObjectBindingExpression=Qn;function wo(c){switch(c.kind){case 177:return c.typeName;case 227:return Ga(c.expression)?c.expression:void 0;case 79:case 160:return c}}e.getEntityNameFromTypeNode=wo;function xo(c){switch(c.kind){case 209:return c.tag;case 279:case 278:return c.tagName;default:return c.expression}}e.getInvokedExpression=xo;function ds(c,$,pr){if(e.isNamedDeclaration(c)&&e.isPrivateIdentifier(c.name))return!1;switch(c.kind){case 256:return!0;case 166:return $.kind===256;case 171:case 172:case 168:return c.body!==void 0&&$.kind===256;case 163:return $.body!==void 0&&($.kind===170||$.kind===168||$.kind===172)&&pr.kind===256}return!1}e.nodeCanBeDecorated=ds;function No(c,$,pr){return c.decorators!==void 0&&ds(c,$,pr)}e.nodeIsDecorated=No;function Ts(c,$,pr){return No(c,$,pr)||Ms(c,$)}e.nodeOrChildIsDecorated=Ts;function Ms(c,$){switch(c.kind){case 256:return e.some(c.members,function(pr){return Ts(pr,c,$)});case 168:case 172:case 170:return e.some(c.parameters,function(pr){return No(pr,c,$)});default:return!1}}e.childIsDecorated=Ms;function xr(c){if(No(c))return!0;var $=J_(c);return!!$&&Ms($,c)}e.classOrConstructorParameterIsDecorated=xr;function bi(c){var $=c.parent;return $.kind===279||$.kind===278||$.kind===280?$.tagName===c:!1}e.isJSXTagName=bi;function ut(c){switch(c.kind){case 106:case 104:case 110:case 95:case 13:case 203:case 204:case 205:case 206:case 207:case 208:case 209:case 228:case 210:case 229:case 211:case 212:case 225:case 213:case 216:case 214:case 215:case 218:case 219:case 220:case 221:case 224:case 222:case 226:case 277:case 278:case 281:case 223:case 217:case 230:return!0;case 160:for(;c.parent.kind===160;)c=c.parent;return c.parent.kind===180||e.isJSDocLinkLike(c.parent)||e.isJSDocNameReference(c.parent)||e.isJSDocMemberName(c.parent)||bi(c);case 309:for(;e.isJSDocMemberName(c.parent);)c=c.parent;return c.parent.kind===180||e.isJSDocLinkLike(c.parent)||e.isJSDocNameReference(c.parent)||e.isJSDocMemberName(c.parent)||bi(c);case 80:return e.isBinaryExpression(c.parent)&&c.parent.left===c&&c.parent.operatorToken.kind===101;case 79:if(c.parent.kind===180||e.isJSDocLinkLike(c.parent)||e.isJSDocNameReference(c.parent)||e.isJSDocMemberName(c.parent)||bi(c))return!0;case 8:case 9:case 10:case 14:case 108:return Ht(c);default:return!1}}e.isExpressionNode=ut;function Ht(c){var $=c.parent;switch($.kind){case 253:case 163:case 166:case 165:case 297:case 294:case 202:return $.initializer===c;case 237:case 238:case 239:case 240:case 246:case 247:case 248:case 288:case 250:return $.expression===c;case 241:var pr=$;return pr.initializer===c&&pr.initializer.kind!==254||pr.condition===c||pr.incrementor===c;case 242:case 243:var Yr=$;return Yr.initializer===c&&Yr.initializer.kind!==254||Yr.expression===c;case 210:case 228:return c===$.expression;case 232:return c===$.expression;case 161:return c===$.expression;case 164:case 287:case 286:case 296:return!0;case 227:return $.expression===c&&nl($);case 295:return $.objectAssignmentInitializer===c;default:return ut($)}}e.isInExpressionContext=Ht;function Ka(c){for(;c.kind===160||c.kind===79;)c=c.parent;return c.kind===180}e.isPartOfTypeQuery=Ka;function an(c){return e.isNamespaceExport(c)&&!!c.parent.moduleSpecifier}e.isNamespaceReexportDeclaration=an;function Ke(c){return c.kind===264&&c.moduleReference.kind===276}e.isExternalModuleImportEqualsDeclaration=Ke;function h(c){return e.Debug.assert(Ke(c)),c.moduleReference.expression}e.getExternalModuleImportEqualsDeclarationExpression=h;function Ee(c){return In(c)&&dt(c.initializer).arguments[0]}e.getExternalModuleRequireArgument=Ee;function Re(c){return c.kind===264&&c.moduleReference.kind!==276}e.isInternalModuleImportEqualsDeclaration=Re;function nr(c){return _i(c)}e.isSourceFileJS=nr;function Gr(c){return!_i(c)}e.isSourceFileNotJS=Gr;function _i(c){return!!c&&!!(c.flags&131072)}e.isInJSFile=_i;function Ei(c){return!!c&&!!(c.flags&33554432)}e.isInJsonFile=Ei;function Ki(c){return!Fr(c)}e.isSourceFileNotJson=Ki;function Nt(c){return!!c&&!!(c.flags&4194304)}e.isInJSDoc=Nt;function ca(c){return e.isTypeReferenceNode(c)&&e.isIdentifier(c.typeName)&&c.typeName.escapedText==="Object"&&c.typeArguments&&c.typeArguments.length===2&&(c.typeArguments[0].kind===149||c.typeArguments[0].kind===146)}e.isJSDocIndexSignature=ca;function Fa(c,$){if(c.kind!==207)return!1;var pr=c,Yr=pr.expression,ji=pr.arguments;if(Yr.kind!==79||Yr.escapedText!=="require"||ji.length!==1)return!1;var wt=ji[0];return!$||e.isStringLiteralLike(wt)}e.isRequireCall=Fa;function Ta(c){return so(c,!1)}e.isVariableDeclarationInitializedToRequire=Ta;function In(c){return so(c,!0)}e.isVariableDeclarationInitializedToBareOrAccessedRequire=In;function so(c,$){return c.kind===202&&(c=c.parent.parent),e.isVariableDeclaration(c)&&!!c.initializer&&Fa($?dt(c.initializer):c.initializer,!0)}function as(c){return e.isVariableStatement(c)&&c.declarationList.declarations.length>0&&e.every(c.declarationList.declarations,function($){return Ta($)})}e.isRequireVariableStatement=as;function Ho(c){return c===39||c===34}e.isSingleOrDoubleQuote=Ho;function Ds(c,$){return Ue($,c).charCodeAt(0)===34}e.isStringDoubleQuoted=Ds;function Os(c){return e.isBinaryExpression(c)||Ae(c)||e.isIdentifier(c)||e.isCallExpression(c)}e.isAssignmentDeclaration=Os;function mc(c){return _i(c)&&c.initializer&&e.isBinaryExpression(c.initializer)&&(c.initializer.operatorToken.kind===56||c.initializer.operatorToken.kind===60)&&c.name&&Ga(c.name)&&Pa(c.name,c.initializer.left)?c.initializer.right:c.initializer}e.getEffectiveInitializer=mc;function Hs(c){var $=mc(c);return $&&ga($,ol(c.name))}e.getDeclaredExpandoInitializer=Hs;function Mi(c,$){return e.forEach(c.properties,function(pr){return e.isPropertyAssignment(pr)&&e.isIdentifier(pr.name)&&pr.name.escapedText==="value"&&pr.initializer&&ga(pr.initializer,$)})}function $t(c){if(c&&c.parent&&e.isBinaryExpression(c.parent)&&c.parent.operatorToken.kind===63){var $=ol(c.parent.left);return ga(c.parent.right,$)||xn(c.parent.left,c.parent.right,$)}if(c&&e.isCallExpression(c)&&xi(c)){var pr=Mi(c.arguments[2],c.arguments[1].text==="prototype");if(pr)return pr}}e.getAssignedExpandoInitializer=$t;function ga(c,$){if(e.isCallExpression(c)){var pr=Vn(c.expression);return pr.kind===212||pr.kind===213?c:void 0}if(c.kind===212||c.kind===225||c.kind===213||e.isObjectLiteralExpression(c)&&(c.properties.length===0||$))return c}e.getExpandoInitializer=ga;function xn(c,$,pr){var Yr=e.isBinaryExpression($)&&($.operatorToken.kind===56||$.operatorToken.kind===60)&&ga($.right,pr);if(Yr&&Pa(c,$.left))return Yr}function yn(c){var $=e.isVariableDeclaration(c.parent)?c.parent.name:e.isBinaryExpression(c.parent)&&c.parent.operatorToken.kind===63?c.parent.left:void 0;return $&&ga(c.right,ol($))&&Ga($)&&Pa($,c.left)}e.isDefaultedExpandoInitializer=yn;function An(c){if(e.isBinaryExpression(c.parent)){var $=(c.parent.operatorToken.kind===56||c.parent.operatorToken.kind===60)&&e.isBinaryExpression(c.parent.parent)?c.parent.parent:c.parent;if($.operatorToken.kind===63&&e.isIdentifier($.left))return $.left}else if(e.isVariableDeclaration(c.parent))return c.parent.name}e.getNameOfExpando=An;function Pa(c,$){if(F_(c)&&F_($))return Ff(c)===Ff($);if(e.isIdentifier(c)&&et($)&&($.expression.kind===108||e.isIdentifier($.expression)&&($.expression.escapedText==="window"||$.expression.escapedText==="self"||$.expression.escapedText==="global"))){var pr=ln($);return e.isPrivateIdentifier(pr)&&e.Debug.fail("Unexpected PrivateIdentifier in name expression with literal-like access."),Pa(c,pr)}return et(c)&&et($)?is(c)===is($)&&Pa(c.expression,$.expression):!1}e.isSameEntityName=Pa;function Mn(c){for(;qf(c,!0);)c=c.right;return c}e.getRightMostAssignedExpression=Mn;function ao(c){return e.isIdentifier(c)&&c.escapedText==="exports"}e.isExportsIdentifier=ao;function co(c){return e.isIdentifier(c)&&c.escapedText==="module"}e.isModuleIdentifier=co;function De(c){return(e.isPropertyAccessExpression(c)||je(c))&&co(c.expression)&&is(c)==="exports"}e.isModuleExportsAccessExpression=De;function zr(c){var $=Ba(c);return $===5||_i(c)?$:0}e.getAssignmentDeclarationKind=zr;function xi(c){return e.length(c.arguments)===3&&e.isPropertyAccessExpression(c.expression)&&e.isIdentifier(c.expression.expression)&&e.idText(c.expression.expression)==="Object"&&e.idText(c.expression.name)==="defineProperty"&&el(c.arguments[1])&&Zt(c.arguments[0],!0)}e.isBindableObjectDefinePropertyCall=xi;function et(c){return e.isPropertyAccessExpression(c)||je(c)}e.isLiteralLikeAccess=et;function je(c){return e.isElementAccessExpression(c)&&el(c.argumentExpression)}e.isLiteralLikeElementAccess=je;function ti(c,$){return e.isPropertyAccessExpression(c)&&(!$&&c.expression.kind===108||e.isIdentifier(c.name)&&Zt(c.expression,!0))||mt(c,$)}e.isBindableStaticAccessExpression=ti;function mt(c,$){return je(c)&&(!$&&c.expression.kind===108||Ga(c.expression)||ti(c.expression,!0))}e.isBindableStaticElementAccessExpression=mt;function Zt(c,$){return Ga(c)||ti(c,$)}e.isBindableStaticNameExpression=Zt;function ln(c){return e.isPropertyAccessExpression(c)?c.name:c.argumentExpression}e.getNameOrArgument=ln;function Ba(c){if(e.isCallExpression(c)){if(!xi(c))return 0;var $=c.arguments[0];return ao($)||De($)?8:ti($)&&is($)==="prototype"?9:7}return c.operatorToken.kind!==63||!Ae(c.left)||Oo(Mn(c))?0:Zt(c.left.expression,!0)&&is(c.left)==="prototype"&&e.isObjectLiteralExpression(nc(c))?6:hc(c.left)}function Oo(c){return e.isVoidExpression(c)&&e.isNumericLiteral(c.expression)&&c.expression.text==="0"}function jr(c){if(e.isPropertyAccessExpression(c))return c.name;var $=Vn(c.argumentExpression);return e.isNumericLiteral($)||e.isStringLiteralLike($)?$:c}e.getElementOrPropertyAccessArgumentExpressionOrName=jr;function is(c){var $=jr(c);if($){if(e.isIdentifier($))return $.escapedText;if(e.isStringLiteralLike($)||e.isNumericLiteral($))return e.escapeLeadingUnderscores($.text)}}e.getElementOrPropertyAccessName=is;function hc(c){if(c.expression.kind===108)return 4;if(De(c))return 2;if(Zt(c.expression,!0)){if(ol(c.expression))return 3;for(var $=c;!e.isIdentifier($.expression);)$=$.expression;var pr=$.expression;if((pr.escapedText==="exports"||pr.escapedText==="module"&&is($)==="exports")&&ti(c))return 1;if(Zt(c,!0)||e.isElementAccessExpression(c)&&t_(c))return 5}return 0}e.getAssignmentDeclarationPropertyAccessKind=hc;function nc(c){for(;e.isBinaryExpression(c.right);)c=c.right;return c.right}e.getInitializerOfBinaryExpression=nc;function ns(c){return e.isBinaryExpression(c)&&zr(c)===3}e.isPrototypePropertyAssignment=ns;function Xs(c){return _i(c)&&c.parent&&c.parent.kind===237&&(!e.isElementAccessExpression(c)||je(c))&&!!e.getJSDocTypeTag(c.parent)}e.isSpecialPropertyDeclaration=Xs;function rc(c,$){var pr=c.valueDeclaration;(!pr||!($.flags&8388608&&!(pr.flags&8388608))&&Os(pr)&&!Os($)||pr.kind!==$.kind&&n(pr))&&(c.valueDeclaration=$)}e.setValueDeclaration=rc;function uu(c){if(!c||!c.valueDeclaration)return!1;var $=c.valueDeclaration;return $.kind===255||e.isVariableDeclaration($)&&$.initializer&&e.isFunctionLike($.initializer)}e.isFunctionSymbol=uu;function Bc(c){var $,pr,Yr;switch(c.kind){case 253:return c.initializer.arguments[0].text;case 265:return($=e.tryCast(c.moduleSpecifier,e.isStringLiteralLike))===null||$===void 0?void 0:$.text;case 264:return(Yr=e.tryCast((pr=e.tryCast(c.moduleReference,e.isExternalModuleReference))===null||pr===void 0?void 0:pr.expression,e.isStringLiteralLike))===null||Yr===void 0?void 0:Yr.text;default:e.Debug.assertNever(c)}}e.tryGetModuleSpecifierFromDeclaration=Bc;function Qu(c){return uo(c)||e.Debug.failBadSyntaxKind(c.parent)}e.importFromModuleSpecifier=Qu;function uo(c){switch(c.parent.kind){case 265:case 271:return c.parent;case 276:return c.parent.parent;case 207:return Ur(c.parent)||Fa(c.parent,!1)?c.parent:void 0;case 195:return e.Debug.assert(e.isStringLiteral(c)),e.tryCast(c.parent.parent,e.isImportTypeNode);default:return}}e.tryGetImportFromModuleSpecifier=uo;function Xc(c){switch(c.kind){case 265:case 271:return c.moduleSpecifier;case 264:return c.moduleReference.kind===276?c.moduleReference.expression:void 0;case 199:return mi(c)?c.argument.literal:void 0;case 207:return c.arguments[0];case 260:return c.name.kind===10?c.name:void 0;default:return e.Debug.assertNever(c)}}e.getExternalModuleName=Xc;function Ru(c){switch(c.kind){case 265:return c.importClause&&e.tryCast(c.importClause.namedBindings,e.isNamespaceImport);case 264:return c;case 271:return c.exportClause&&e.tryCast(c.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(c)}}e.getNamespaceDeclarationNode=Ru;function Dc(c){return c.kind===265&&!!c.importClause&&!!c.importClause.name}e.isDefaultImport=Dc;function Yu(c,$){if(c.name){var pr=$(c);if(pr)return pr}if(c.namedBindings){var pr=e.isNamespaceImport(c.namedBindings)?$(c.namedBindings):e.forEach(c.namedBindings.elements,$);if(pr)return pr}}e.forEachImportClauseDeclaration=Yu;function lu(c){if(c)switch(c.kind){case 163:case 168:case 167:case 295:case 294:case 166:case 165:return c.questionToken!==void 0}return!1}e.hasQuestionToken=lu;function qa(c){var $=e.isJSDocFunctionType(c)?e.firstOrUndefined(c.parameters):void 0,pr=e.tryCast($&&$.name,e.isIdentifier);return!!pr&&pr.escapedText==="new"}e.isJSDocConstructSignature=qa;function Bu(c){return c.kind===343||c.kind===336||c.kind===337}e.isJSDocTypeAlias=Bu;function $u(c){return Bu(c)||e.isTypeAliasDeclaration(c)}e.isTypeAlias=$u;function au(c){return e.isExpressionStatement(c)&&e.isBinaryExpression(c.expression)&&c.expression.operatorToken.kind===63?Mn(c.expression):void 0}function Vr(c){return e.isExpressionStatement(c)&&e.isBinaryExpression(c.expression)&&zr(c.expression)!==0&&e.isBinaryExpression(c.expression.right)&&(c.expression.right.operatorToken.kind===56||c.expression.right.operatorToken.kind===60)?c.expression.right.right:void 0}function fi(c){switch(c.kind){case 236:var $=Ni(c);return $&&$.initializer;case 166:return c.initializer;case 294:return c.initializer}}e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=fi;function Ni(c){return e.isVariableStatement(c)?e.firstOrUndefined(c.declarationList.declarations):void 0}e.getSingleVariableOfVariableStatement=Ni;function rt(c){return e.isModuleDeclaration(c)&&c.body&&c.body.kind===260?c.body:void 0}function Tt(c,$){var pr;Yi(c)&&e.hasInitializer(c)&&e.hasJSDocNodes(c.initializer)&&(pr=e.addRange(pr,Dt(c,e.last(c.initializer.jsDoc))));for(var Yr=c;Yr&&Yr.parent;){if(e.hasJSDocNodes(Yr)&&(pr=e.addRange(pr,Dt(c,e.last(Yr.jsDoc)))),Yr.kind===163){pr=e.addRange(pr,($?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(Yr));break}if(Yr.kind===162){pr=e.addRange(pr,($?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(Yr));break}Yr=na(Yr)}return pr||e.emptyArray}e.getJSDocCommentsAndTags=Tt;function Dt(c,$){if(e.isJSDoc($)){var pr=e.filter($.tags,function(Yr){return jt(c,Yr)});return $.tags===pr?[$]:pr}return jt(c,$)?[$]:void 0}function jt(c,$){return!e.isJSDocTypeTag($)||!$.parent||!e.isJSDoc($.parent)||!e.isParenthesizedExpression($.parent.parent)||$.parent.parent===c}function na(c){var $=c.parent;if($.kind===294||$.kind===270||$.kind===166||$.kind===237&&c.kind===205||$.kind===246||rt($)||e.isBinaryExpression(c)&&c.operatorToken.kind===63)return $;if($.parent&&(Ni($.parent)===c||e.isBinaryExpression($)&&$.operatorToken.kind===63))return $.parent;if($.parent&&$.parent.parent&&(Ni($.parent.parent)||fi($.parent.parent)===c||Vr($.parent.parent)))return $.parent.parent}e.getNextJSDocCommentLocation=na;function Za(c){if(c.symbol)return c.symbol;if(!!e.isIdentifier(c.name)){var $=c.name.escapedText,pr=ha(c);if(!!pr){var Yr=e.find(pr.parameters,function(ji){return ji.name.kind===79&&ji.name.escapedText===$});return Yr&&Yr.symbol}}}e.getParameterSymbolFromJSDoc=Za;function ya(c){if(e.isJSDoc(c.parent)&&c.parent.tags){var $=e.find(c.parent.tags,Bu);if($)return $}return ha(c)}e.getEffectiveContainerForJSDocTemplateTag=ya;function ha(c){var $=Ja(c);return $&&e.isFunctionLike($)?$:void 0}e.getHostSignatureFromJSDoc=ha;function Ja(c){var $=Eo(c);if($)return Vr($)||au($)||fi($)||Ni($)||rt($)||$}e.getEffectiveJSDocHost=Ja;function Eo(c){var $=Hn(c);if(!!$){var pr=$.parent;if(pr&&pr.jsDoc&&$===e.lastOrUndefined(pr.jsDoc))return pr}}e.getJSDocHost=Eo;function Hn(c){return e.findAncestor(c.parent,e.isJSDoc)}e.getJSDocRoot=Hn;function lo(c){var $=c.name.escapedText,pr=c.parent.parent.parent.typeParameters;return pr&&e.find(pr,function(Yr){return Yr.name.escapedText===$})}e.getTypeParameterFromJsDoc=lo;function Kn(c){var $=e.lastOrUndefined(c.parameters);return!!$&&Te($)}e.hasRestParameter=Kn;function Te(c){var $=e.isJSDocParameterTag(c)?c.typeExpression&&c.typeExpression.type:c.type;return c.dotDotDotToken!==void 0||!!$&&$.kind===316}e.isRestParameter=Te;function vr(c){return!!c.typeArguments}e.hasTypeArguments=vr;var Sr;(function(c){c[c.None=0]="None",c[c.Definite=1]="Definite",c[c.Compound=2]="Compound"})(Sr=e.AssignmentKind||(e.AssignmentKind={}));function Di(c){for(var $=c.parent;;){switch($.kind){case 220:var pr=$.operatorToken.kind;return mf(pr)&&$.left===c?pr===63||Zc(pr)?1:2:0;case 218:case 219:var Yr=$.operator;return Yr===45||Yr===46?2:0;case 242:case 243:return $.initializer===c?1:0;case 211:case 203:case 224:case 229:c=$;break;case 296:c=$.parent;break;case 295:if($.name!==c)return 0;c=$.parent;break;case 294:if($.name===c)return 0;c=$.parent;break;default:return 0}$=c.parent}}e.getAssignmentTargetKind=Di;function nt(c){return Di(c)!==0}e.isAssignmentTarget=nt;function _a(c){switch(c.kind){case 234:case 236:case 247:case 238:case 248:case 262:case 288:case 289:case 249:case 241:case 242:case 243:case 239:case 240:case 251:case 291:return!0}return!1}e.isNodeWithPossibleHoistedDeclaration=_a;function Na(c){return e.isFunctionExpression(c)||e.isArrowFunction(c)||e.isMethodOrAccessor(c)||e.isFunctionDeclaration(c)||e.isConstructorDeclaration(c)}e.isValueSignatureDeclaration=Na;function wn(c,$){for(;c&&c.kind===$;)c=c.parent;return c}function no(c){return wn(c,190)}e.walkUpParenthesizedTypes=no;function Go(c){return wn(c,211)}e.walkUpParenthesizedExpressions=Go;function vo(c){for(var $;c&&c.kind===190;)$=c,c=c.parent;return[$,c]}e.walkUpParenthesizedTypesAndGetParentAndChild=vo;function Vn(c,$){var pr=$?17:1;return e.skipOuterExpressions(c,pr)}e.skipParentheses=Vn;function to(c){return c.kind!==205&&c.kind!==206?!1:(c=Go(c.parent),c&&c.kind===214)}e.isDeleteTarget=to;function Jo(c,$){for(;c;){if(c===$)return!0;c=c.parent}return!1}e.isNodeDescendantOf=Jo;function Xo(c){return!e.isSourceFile(c)&&!e.isBindingPattern(c)&&e.isDeclaration(c.parent)&&c.parent.name===c}e.isDeclarationName=Xo;function Wr(c){var $=c.parent;switch(c.kind){case 10:case 14:case 8:if(e.isComputedPropertyName($))return $.parent;case 79:if(e.isDeclaration($))return $.name===c?$:void 0;if(e.isQualifiedName($)){var pr=$.parent;return e.isJSDocParameterTag(pr)&&pr.name===$?pr:void 0}else{var Yr=$.parent;return e.isBinaryExpression(Yr)&&zr(Yr)!==0&&(Yr.left.symbol||Yr.symbol)&&e.getNameOfDeclaration(Yr)===c?Yr:void 0}case 80:return e.isDeclaration($)&&$.name===c?$:void 0;default:return}}e.getDeclarationFromName=Wr;function Ws(c){return el(c)&&c.parent.kind===161&&e.isDeclaration(c.parent.parent)}e.isLiteralComputedPropertyDeclarationName=Ws;function nu(c){var $=c.parent;switch($.kind){case 166:case 165:case 168:case 167:case 171:case 172:case 297:case 294:case 205:return $.name===c;case 160:return $.right===c;case 202:case 269:return $.propertyName===c;case 274:case 284:return!0}return!1}e.isIdentifierName=nu;function Tu(c){return c.kind===264||c.kind===263||c.kind===266&&!!c.name||c.kind===267||c.kind===273||c.kind===269||c.kind===274||c.kind===270&&fu(c)||e.isBinaryExpression(c)&&zr(c)===2&&fu(c)||e.isPropertyAccessExpression(c)&&e.isBinaryExpression(c.parent)&&c.parent.left===c&&c.parent.operatorToken.kind===63&&Qc(c.parent.right)||c.kind===295||c.kind===294&&Qc(c.initializer)}e.isAliasSymbolDeclaration=Tu;function oc(c){switch(c.parent.kind){case 266:case 269:case 267:case 274:case 270:case 264:return c.parent;case 160:do c=c.parent;while(c.parent.kind===160);return oc(c)}}e.getAliasDeclarationFromName=oc;function Qc(c){return Ga(c)||e.isClassExpression(c)}e.isAliasableExpression=Qc;function fu(c){var $=lp(c);return Qc($)}e.exportAssignmentIsAlias=fu;function lp(c){return e.isExportAssignment(c)?c.expression:c.right}e.getExportAssignmentExpression=lp;function bo(c){return c.kind===295?c.name:c.kind===294?c.initializer:c.parent.right}e.getPropertyAssignmentAliasLikeExpression=bo;function w_(c){var $=i_(c);if($&&_i(c)){var pr=e.getJSDocAugmentsTag(c);if(pr)return pr.class}return $}e.getEffectiveBaseTypeNode=w_;function i_(c){var $=tf(c.heritageClauses,94);return $&&$.types.length>0?$.types[0]:void 0}e.getClassExtendsHeritageElement=i_;function Ls(c){if(_i(c))return e.getJSDocImplementsTags(c).map(function(pr){return pr.class});var $=tf(c.heritageClauses,117);return $==null?void 0:$.types}e.getEffectiveImplementsTypeNodes=Ls;function hl(c){return e.isInterfaceDeclaration(c)?xu(c)||e.emptyArray:e.isClassLike(c)&&e.concatenate(e.singleElementArray(w_(c)),Ls(c))||e.emptyArray}e.getAllSuperTypeNodes=hl;function xu(c){var $=tf(c.heritageClauses,94);return $?$.types:void 0}e.getInterfaceBaseTypeNodes=xu;function tf(c,$){if(c)for(var pr=0,Yr=c;pr<Yr.length;pr++){var ji=Yr[pr];if(ji.token===$)return ji}}e.getHeritageClause=tf;function If(c,$){for(;c;){if(c.kind===$)return c;c=c.parent}}e.getAncestor=If;function Yc(c){return 81<=c&&c<=159}e.isKeyword=Yc;function Vs(c){return 126<=c&&c<=159}e.isContextualKeyword=Vs;function Zu(c){return Yc(c)&&!Vs(c)}e.isNonContextualKeyword=Zu;function Ma(c){return 117<=c&&c<=125}e.isFutureReservedKeyword=Ma;function Da(c){var $=e.stringToToken(c);return $!==void 0&&Zu($)}e.isStringANonContextualKeyword=Da;function Ju(c){var $=e.stringToToken(c);return $!==void 0&&Yc($)}e.isStringAKeyword=Ju;function Pc(c){var $=c.originalKeywordKind;return!!$&&!Vs($)}e.isIdentifierANonContextualKeyword=Pc;function fp(c){return 2<=c&&c<=7}e.isTrivia=fp;var wf;(function(c){c[c.Normal=0]="Normal",c[c.Generator=1]="Generator",c[c.Async=2]="Async",c[c.Invalid=4]="Invalid",c[c.AsyncGenerator=3]="AsyncGenerator"})(wf=e.FunctionFlags||(e.FunctionFlags={}));function Xp(c){if(!c)return 4;var $=0;switch(c.kind){case 255:case 212:case 168:c.asteriskToken&&($|=1);case 213:bs(c,256)&&($|=2);break}return c.body||($|=4),$}e.getFunctionFlags=Xp;function os(c){switch(c.kind){case 255:case 212:case 213:case 168:return c.body!==void 0&&c.asteriskToken===void 0&&bs(c,256)}return!1}e.isAsyncFunction=os;function el(c){return e.isStringLiteralLike(c)||e.isNumericLiteral(c)}e.isStringOrNumericLiteralLike=el;function Of(c){return e.isPrefixUnaryExpression(c)&&(c.operator===39||c.operator===40)&&e.isNumericLiteral(c.operand)}e.isSignedNumericLiteral=Of;function O_(c){var $=e.getNameOfDeclaration(c);return!!$&&t_($)}e.hasDynamicName=O_;function t_(c){if(!(c.kind===161||c.kind===206))return!1;var $=e.isElementAccessExpression(c)?Vn(c.argumentExpression):c.expression;return!el($)&&!Of($)}e.isDynamicName=t_;function Nc(c){switch(c.kind){case 79:case 80:return c.escapedText;case 10:case 8:return e.escapeLeadingUnderscores(c.text);case 161:var $=c.expression;return el($)?e.escapeLeadingUnderscores($.text):Of($)?$.operator===40?e.tokenToString($.operator)+$.operand.text:$.operand.text:void 0;default:return e.Debug.assertNever(c)}}e.getPropertyNameForPropertyNameNode=Nc;function F_(c){switch(c.kind){case 79:case 10:case 14:case 8:return!0;default:return!1}}e.isPropertyNameLiteral=F_;function Ff(c){return e.isMemberName(c)?e.idText(c):c.text}e.getTextOfIdentifierOrLiteral=Ff;function M_(c){return e.isMemberName(c)?c.escapedText:e.escapeLeadingUnderscores(c.text)}e.getEscapedTextOfIdentifierOrLiteral=M_;function _p(c){return"__@".concat(e.getSymbolId(c),"@").concat(c.escapedName)}e.getPropertyNameForUniqueESSymbol=_p;function Qp(c,$){return"__#".concat(e.getSymbolId(c),"@").concat($)}e.getSymbolNameForPrivateIdentifier=Qp;function pp(c){return e.startsWith(c.escapedName,"__@")}e.isKnownSymbol=pp;function dp(c){return e.startsWith(c.escapedName,"__#")}e.isPrivateIdentifierSymbol=dp;function gp(c){return c.kind===79&&c.escapedText==="Symbol"}e.isESSymbolIdentifier=gp;function Yp(c){return c.escapedText==="push"||c.escapedText==="unshift"}e.isPushOrUnshiftIdentifier=Yp;function $p(c){var $=a_(c);return $.kind===163}e.isParameterDeclaration=$p;function a_(c){for(;c.kind===202;)c=c.parent.parent;return c}e.getRootDeclaration=a_;function Cd(c){var $=c.kind;return $===170||$===212||$===255||$===213||$===168||$===171||$===172||$===260||$===303}e.nodeStartsNewLexicalEnvironment=Cd;function mp(c){return cd(c.pos)||cd(c.end)}e.nodeIsSynthesized=mp;function L_(c){return e.getParseTreeNode(c,e.isSourceFile)||c}e.getOriginalSourceFile=L_;var rl;(function(c){c[c.Left=0]="Left",c[c.Right=1]="Right"})(rl=e.Associativity||(e.Associativity={}));function ju(c){var $=Dl(c),pr=c.kind===208&&c.arguments!==void 0;return _u(c.kind,$,pr)}e.getExpressionAssociativity=ju;function _u(c,$,pr){switch(c){case 208:return pr?0:1;case 218:case 215:case 216:case 214:case 217:case 221:case 223:return 1;case 220:switch($){case 42:case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 1}}return 0}e.getOperatorAssociativity=_u;function Eu(c){var $=Dl(c),pr=c.kind===208&&c.arguments!==void 0;return Wl(c.kind,$,pr)}e.getExpressionPrecedence=Eu;function Dl(c){return c.kind===220?c.operatorToken.kind:c.kind===218||c.kind===219?c.operator:c.kind}e.getOperator=Dl;var Zp;(function(c){c[c.Comma=0]="Comma",c[c.Spread=1]="Spread",c[c.Yield=2]="Yield",c[c.Assignment=3]="Assignment",c[c.Conditional=4]="Conditional",c[c.Coalesce=4]="Coalesce",c[c.LogicalOR=5]="LogicalOR",c[c.LogicalAND=6]="LogicalAND",c[c.BitwiseOR=7]="BitwiseOR",c[c.BitwiseXOR=8]="BitwiseXOR",c[c.BitwiseAND=9]="BitwiseAND",c[c.Equality=10]="Equality",c[c.Relational=11]="Relational",c[c.Shift=12]="Shift",c[c.Additive=13]="Additive",c[c.Multiplicative=14]="Multiplicative",c[c.Exponentiation=15]="Exponentiation",c[c.Unary=16]="Unary",c[c.Update=17]="Update",c[c.LeftHandSide=18]="LeftHandSide",c[c.Member=19]="Member",c[c.Primary=20]="Primary",c[c.Highest=20]="Highest",c[c.Lowest=0]="Lowest",c[c.Invalid=-1]="Invalid"})(Zp=e.OperatorPrecedence||(e.OperatorPrecedence={}));function Wl(c,$,pr){switch(c){case 349:return 0;case 224:return 1;case 223:return 2;case 221:return 4;case 220:switch($){case 27:return 0;case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 3;default:return ed($)}case 210:case 229:case 218:case 215:case 216:case 214:case 217:return 16;case 219:return 17;case 207:return 18;case 208:return pr?19:18;case 209:case 205:case 206:case 230:return 19;case 228:return 11;case 108:case 106:case 79:case 80:case 104:case 110:case 95:case 8:case 9:case 10:case 203:case 204:case 212:case 213:case 225:case 13:case 14:case 222:case 211:case 226:case 277:case 278:case 281:return 20;default:return-1}}e.getOperatorPrecedence=Wl;function ed(c){switch(c){case 60:return 4;case 56:return 5;case 55:return 6;case 51:return 7;case 52:return 8;case 50:return 9;case 34:case 35:case 36:case 37:return 10;case 29:case 31:case 32:case 33:case 102:case 101:case 127:return 11;case 47:case 48:case 49:return 12;case 39:case 40:return 13;case 41:case 43:case 44:return 14;case 42:return 15}return-1}e.getBinaryOperatorPrecedence=ed;function n_(c){return e.filter(c,function($){switch($.kind){case 287:return!!$.expression;case 11:return!$.containsOnlyTriviaWhiteSpaces;default:return!0}})}e.getSemanticJsxChildren=n_;function vp(){var c=[],$=[],pr=new e.Map,Yr=!1;return{add:wt,lookup:ji,getGlobalDiagnostics:Lt,getDiagnostics:Ea};function ji(vn){var sn;if(vn.file?sn=pr.get(vn.file.fileName):sn=c,!!sn){var Fo=e.binarySearch(sn,vn,e.identity,ef);if(Fo>=0)return sn[Fo]}}function wt(vn){var sn;vn.file?(sn=pr.get(vn.file.fileName),sn||(sn=[],pr.set(vn.file.fileName,sn),e.insertSorted($,vn.file.fileName,e.compareStringsCaseSensitive))):(Yr&&(Yr=!1,c=c.slice()),sn=c),e.insertSorted(sn,vn,Fd)}function Lt(){return Yr=!0,c}function Ea(vn){if(vn)return pr.get(vn)||[];var sn=e.flatMapToMutable($,function(Fo){return pr.get(Fo)});return c.length&&sn.unshift.apply(sn,c),sn}}e.createDiagnosticCollection=vp;var o_=/\$\{/g;function R_(c){return c.replace(o_,"\\${")}function af(c){return c&&!!(e.isNoSubstitutionTemplateLiteral(c)?c.templateFlags:c.head.templateFlags||e.some(c.templateSpans,function($){return!!$.literal.templateFlags}))}e.hasInvalidEscape=af;var yp=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,B_=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,kd=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Mf=new e.Map(e.getEntries({"   ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"}));function hp(c){var $=c.toString(16).toUpperCase(),pr=("0000"+$).slice(-4);return"\\u"+pr}function ic(c,$,pr){if(c.charCodeAt(0)===0){var Yr=pr.charCodeAt($+c.length);return Yr>=48&&Yr<=57?"\\x00":"\\0"}return Mf.get(c)||hp(c.charCodeAt(0))}function Jc(c,$){var pr=$===96?kd:$===39?B_:yp;return c.replace(pr,ic)}e.escapeString=Jc;var Lf=/[^\u0000-\u007F]/g;function nf(c,$){return c=Jc(c,$),Lf.test(c)?c.replace(Lf,function(pr){return hp(pr.charCodeAt(0))}):c}e.escapeNonAsciiString=nf;var s_=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,Rf=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,c_=new e.Map(e.getEntries({'"':"&quot;","'":"&apos;"}));function Cu(c){var $=c.toString(16).toUpperCase();return"&#x"+$+";"}function Tc(c){return c.charCodeAt(0)===0?"&#0;":c_.get(c)||Cu(c.charCodeAt(0))}function pu(c,$){var pr=$===39?Rf:s_;return c.replace(pr,Tc)}e.escapeJsxAttributeString=pu;function du(c){var $=c.length;return $>=2&&c.charCodeAt(0)===c.charCodeAt($-1)&&bl(c.charCodeAt(0))?c.substring(1,$-1):c}e.stripQuotes=du;function bl(c){return c===39||c===34||c===96}function of(c){var $=c.charCodeAt(0);return $>=97&&$<=122||e.stringContains(c,"-")||e.stringContains(c,":")}e.isIntrinsicJsxName=of;var il=["","    "];function Qo(c){for(var $=il[1],pr=il.length;pr<=c;pr++)il.push(il[pr-1]+$);return il[c]}e.getIndentString=Qo;function zo(){return il[1].length}e.getIndentSize=zo;function Ro(c){var $,pr,Yr,ji,wt,Lt=!1;function Ea(gs){var iu=e.computeLineStarts(gs);iu.length>1?(ji=ji+iu.length-1,wt=$.length-gs.length+e.last(iu),Yr=wt-$.length===0):Yr=!1}function vn(gs){gs&&gs.length&&(Yr&&(gs=Qo(pr)+gs,Yr=!1),$+=gs,Ea(gs))}function sn(gs){gs&&(Lt=!1),vn(gs)}function Fo(gs){gs&&(Lt=!0),vn(gs)}function us(){$="",pr=0,Yr=!0,ji=0,wt=0,Lt=!1}function tn(gs){gs!==void 0&&($+=gs,Ea(gs),Lt=!1)}function Ys(gs){gs&&gs.length&&sn(gs)}function za(gs){(!Yr||gs)&&($+=c,ji++,wt=$.length,Yr=!0,Lt=!1)}function Du(){return Yr?$.length:$.length+c.length}return us(),{write:sn,rawWrite:tn,writeLiteral:Ys,writeLine:za,increaseIndent:function(){pr++},decreaseIndent:function(){pr--},getIndent:function(){return pr},getTextPos:function(){return $.length},getLine:function(){return ji},getColumn:function(){return Yr?pr*zo():$.length-wt},getText:function(){return $},isAtStartOfLine:function(){return Yr},hasTrailingComment:function(){return Lt},hasTrailingWhitespace:function(){return!!$.length&&e.isWhiteSpaceLike($.charCodeAt($.length-1))},clear:us,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:function(){return!1},writeKeyword:sn,writeOperator:sn,writeParameter:sn,writeProperty:sn,writePunctuation:sn,writeSpace:sn,writeStringLiteral:sn,writeSymbol:function(gs,iu){return sn(gs)},writeTrailingSemicolon:sn,writeComment:Fo,getTextPosWithWriteLine:Du}}e.createTextWriter=Ro;function jc(c){var $=!1;function pr(){$&&(c.writeTrailingSemicolon(";"),$=!1)}return Ve(Ve({},c),{writeTrailingSemicolon:function(){$=!0},writeLiteral:function(Yr){pr(),c.writeLiteral(Yr)},writeStringLiteral:function(Yr){pr(),c.writeStringLiteral(Yr)},writeSymbol:function(Yr,ji){pr(),c.writeSymbol(Yr,ji)},writePunctuation:function(Yr){pr(),c.writePunctuation(Yr)},writeKeyword:function(Yr){pr(),c.writeKeyword(Yr)},writeOperator:function(Yr){pr(),c.writeOperator(Yr)},writeParameter:function(Yr){pr(),c.writeParameter(Yr)},writeSpace:function(Yr){pr(),c.writeSpace(Yr)},writeProperty:function(Yr){pr(),c.writeProperty(Yr)},writeComment:function(Yr){pr(),c.writeComment(Yr)},writeLine:function(){pr(),c.writeLine()},increaseIndent:function(){pr(),c.increaseIndent()},decreaseIndent:function(){pr(),c.decreaseIndent()}})}e.getTrailingSemicolonDeferringWriter=jc;function Bf(c){return c.useCaseSensitiveFileNames?c.useCaseSensitiveFileNames():!1}e.hostUsesCaseSensitiveFileNames=Bf;function gu(c){return e.createGetCanonicalFileName(Bf(c))}e.hostGetCanonicalFileName=gu;function Jf(c,$,pr){return $.moduleName||Kt(c,$.fileName,pr&&pr.fileName)}e.getResolvedExternalModuleName=Jf;function jf(c,$){return c.getCanonicalFileName(e.getNormalizedAbsolutePath($,c.getCurrentDirectory()))}function sf(c,$,pr){var Yr=$.getExternalModuleFileFromDeclaration(pr);if(!(!Yr||Yr.isDeclarationFile)){var ji=Xc(pr);if(!(ji&&e.isStringLiteralLike(ji)&&!e.pathIsRelative(ji.text)&&jf(c,Yr.path).indexOf(jf(c,e.ensureTrailingDirectorySeparator(c.getCommonSourceDirectory())))===-1))return Jf(c,Yr)}}e.getExternalModuleNameFromDeclaration=sf;function Kt(c,$,pr){var Yr=function(vn){return c.getCanonicalFileName(vn)},ji=e.toPath(pr?e.getDirectoryPath(pr):c.getCommonSourceDirectory(),c.getCurrentDirectory(),Yr),wt=e.getNormalizedAbsolutePath($,c.getCurrentDirectory()),Lt=e.getRelativePathToDirectoryOrUrl(ji,wt,ji,Yr,!1),Ea=Fg(Lt);return pr?e.ensurePathIsNonModuleName(Ea):Ea}e.getExternalModuleNameFromPath=Kt;function ts(c,$,pr){var Yr=$.getCompilerOptions(),ji;return Yr.outDir?ji=Fg(ko(c,$,Yr.outDir)):ji=Fg(c),ji+pr}e.getOwnEmitOutputFilePath=ts;function mn(c,$){return Sl(c,$.getCompilerOptions(),$.getCurrentDirectory(),$.getCommonSourceDirectory(),function(pr){return $.getCanonicalFileName(pr)})}e.getDeclarationEmitOutputFilePath=mn;function Sl(c,$,pr,Yr,ji){var wt=$.declarationDir||$.outDir,Lt=wt?xc(c,wt,pr,Yr,ji):c,Ea=Ps(Lt);return Fg(Lt)+Ea}e.getDeclarationEmitOutputFilePathWorker=Sl;function Ps(c){return e.fileExtensionIsOneOf(c,[".mjs",".mts"])?".d.mts":e.fileExtensionIsOneOf(c,[".cjs",".cts"])?".d.cts":e.fileExtensionIsOneOf(c,[".json"])?".json.d.ts":".d.ts"}e.getDeclarationEmitExtensionForPath=Ps;function tl(c){return c.outFile||c.out}e.outFile=tl;function Ut(c,$){var pr,Yr;if(!!c.paths)return(pr=c.baseUrl)!==null&&pr!==void 0?pr:e.Debug.checkDefined(c.pathsBasePath||((Yr=$.getCurrentDirectory)===null||Yr===void 0?void 0:Yr.call($)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}e.getPathsBasePath=Ut;function Dp(c,$,pr){var Yr=c.getCompilerOptions();if(tl(Yr)){var ji=_t(Yr),wt=Yr.emitDeclarationOnly||ji===e.ModuleKind.AMD||ji===e.ModuleKind.System;return e.filter(c.getSourceFiles(),function(Ea){return(wt||!e.isExternalModule(Ea))&&cf(Ea,c,pr)})}else{var Lt=$===void 0?c.getSourceFiles():[$];return e.filter(Lt,function(Ea){return cf(Ea,c,pr)})}}e.getSourceFilesToEmit=Dp;function cf(c,$,pr){var Yr=$.getCompilerOptions();return!(Yr.noEmitForJsFiles&&nr(c))&&!c.isDeclarationFile&&!$.isSourceFileFromExternalLibrary(c)&&(pr||!(Fr(c)&&$.getResolvedProjectReferenceToRedirect(c.fileName))&&!$.isSourceOfProjectReferenceRedirect(c.fileName))}e.sourceFileMayBeEmitted=cf;function ko(c,$,pr){return xc(c,pr,$.getCurrentDirectory(),$.getCommonSourceDirectory(),function(Yr){return $.getCanonicalFileName(Yr)})}e.getSourceFilePathInNewDir=ko;function xc(c,$,pr,Yr,ji){var wt=e.getNormalizedAbsolutePath(c,pr),Lt=ji(wt).indexOf(ji(Yr))===0;return wt=Lt?wt.substring(Yr.length):wt,e.combinePaths($,wt)}e.getSourceFilePathInNewDirWorker=xc;function ou(c,$,pr,Yr,ji,wt){c.writeFile(pr,Yr,ji,function(Lt){$.add(Em(e.Diagnostics.Could_not_write_file_0_Colon_1,pr,Lt))},wt)}e.writeFile=ou;function uf(c,$,pr){if(c.length>e.getRootLength(c)&&!pr(c)){var Yr=e.getDirectoryPath(c);uf(Yr,$,pr),$(c)}}function bp(c,$,pr,Yr,ji,wt){try{Yr(c,$,pr)}catch{uf(e.getDirectoryPath(e.normalizePath(c)),ji,wt),Yr(c,$,pr)}}e.writeFileEnsuringDirectories=bp;function ql(c,$){var pr=e.getLineStarts(c);return e.computeLineOfPosition(pr,$)}e.getLineOfLocalPosition=ql;function Fs(c,$){return e.computeLineOfPosition(c,$)}e.getLineOfLocalPositionFromLineMap=Fs;function J_(c){return e.find(c.members,function($){return e.isConstructorDeclaration($)&&j($.body)})}e.getFirstConstructorWithBody=J_;function su(c){if(c&&c.parameters.length>0){var $=c.parameters.length===2&&_f(c.parameters[0]);return c.parameters[$?1:0]}}e.getSetAccessorValueParameter=su;function lf(c){var $=su(c);return $&&$.type}e.getSetAccessorTypeAnnotationNode=lf;function ff(c){if(c.parameters.length&&!e.isJSDocSignature(c)){var $=c.parameters[0];if(_f($))return $}}e.getThisParameter=ff;function _f(c){return Vl(c.name)}e.parameterIsThisKeyword=_f;function Vl(c){return!!c&&c.kind===79&&Uf(c)}e.isThisIdentifier=Vl;function j_(c){if(!Vl(c))return!1;for(;e.isQualifiedName(c.parent)&&c.parent.left===c;)c=c.parent;return c.parent.kind===180}e.isThisInTypeQuery=j_;function Uf(c){return c.originalKeywordKind===108}e.identifierIsThisKeyword=Uf;function Sp(c,$){var pr,Yr,ji,wt;return O_($)?(pr=$,$.kind===171?ji=$:$.kind===172?wt=$:e.Debug.fail("Accessor has wrong kind")):e.forEach(c,function(Lt){if(e.isAccessor(Lt)&&zu(Lt)===zu($)){var Ea=Nc(Lt.name),vn=Nc($.name);Ea===vn&&(pr?Yr||(Yr=Lt):pr=Lt,Lt.kind===171&&!ji&&(ji=Lt),Lt.kind===172&&!wt&&(wt=Lt))}}),{firstAccessor:pr,secondAccessor:Yr,getAccessor:ji,setAccessor:wt}}e.getAllAccessorDeclarations=Sp;function Tl(c){if(!(!_i(c)&&e.isFunctionDeclaration(c))){var $=c.type;return $||!_i(c)?$:e.isJSDocPropertyLikeTag(c)?c.typeExpression&&c.typeExpression.type:e.getJSDocType(c)}}e.getEffectiveTypeAnnotationNode=Tl;function Ns(c){return c.type}e.getTypeAnnotationNode=Ns;function al(c){return e.isJSDocSignature(c)?c.type&&c.type.typeExpression&&c.type.typeExpression.type:c.type||(_i(c)?e.getJSDocReturnType(c):void 0)}e.getEffectiveReturnTypeNode=al;function U_(c){return e.flatMap(e.getJSDocTags(c),function($){return Kl($)?$.typeParameters:void 0})}e.getJSDocTypeParameterDeclarations=U_;function Kl(c){return e.isJSDocTemplateTag(c)&&!(c.parent.kind===318&&c.parent.tags.some(Bu))}function Wn(c){var $=su(c);return $&&Tl($)}e.getEffectiveSetAccessorTypeAnnotationNode=Wn;function It(c,$,pr,Yr){Rs(c,$,pr.pos,Yr)}e.emitNewLineBeforeLeadingComments=It;function Rs(c,$,pr,Yr){Yr&&Yr.length&&pr!==Yr[0].pos&&Fs(c,pr)!==Fs(c,Yr[0].pos)&&$.writeLine()}e.emitNewLineBeforeLeadingCommentsOfPosition=Rs;function u_(c,$,pr,Yr){pr!==Yr&&Fs(c,pr)!==Fs(c,Yr)&&$.writeLine()}e.emitNewLineBeforeLeadingCommentOfPosition=u_;function xs(c,$,pr,Yr,ji,wt,Lt,Ea){if(Yr&&Yr.length>0){ji&&pr.writeSpace(" ");for(var vn=!1,sn=0,Fo=Yr;sn<Fo.length;sn++){var us=Fo[sn];vn&&(pr.writeSpace(" "),vn=!1),Ea(c,$,pr,us.pos,us.end,Lt),us.hasTrailingNewLine?pr.writeLine():vn=!0}vn&&wt&&pr.writeSpace(" ")}}e.emitComments=xs;function Tp(c,$,pr,Yr,ji,wt,Lt){var Ea,vn;if(Lt?ji.pos===0&&(Ea=e.filter(e.getLeadingCommentRanges(c,ji.pos),iu)):Ea=e.getLeadingCommentRanges(c,ji.pos),Ea){for(var sn=[],Fo=void 0,us=0,tn=Ea;us<tn.length;us++){var Ys=tn[us];if(Fo){var za=Fs($,Fo.end),Du=Fs($,Ys.pos);if(Du>=za+2)break}sn.push(Ys),Fo=Ys}if(sn.length){var za=Fs($,e.last(sn).end),gs=Fs($,e.skipTrivia(c,ji.pos));gs>=za+2&&(It($,pr,ji,Ea),xs(c,$,pr,sn,!1,!0,wt,Yr),vn={nodePos:ji.pos,detachedCommentEndPos:e.last(sn).end})}}return vn;function iu(X_){return ae(c,X_.pos)}}e.emitDetachedComments=Tp;function mu(c,$,pr,Yr,ji,wt){if(c.charCodeAt(Yr+1)===42)for(var Lt=e.computeLineAndCharacterOfPosition($,Yr),Ea=$.length,vn=void 0,sn=Yr,Fo=Lt.line;sn<ji;Fo++){var us=Fo+1===Ea?c.length+1:$[Fo+1];if(sn!==Yr){vn===void 0&&(vn=Uu(c,$[Lt.line],Yr));var tn=pr.getIndent()*zo(),Ys=tn-vn+Uu(c,sn,us);if(Ys>0){var za=Ys%zo(),Du=Qo((Ys-za)/zo());for(pr.rawWrite(Du);za;)pr.rawWrite(" "),za--}else pr.rawWrite("")}zf(c,ji,pr,wt,sn,us),sn=us}else pr.writeComment(c.substring(Yr,ji))}e.writeCommentRange=mu;function zf(c,$,pr,Yr,ji,wt){var Lt=Math.min($,wt-1),Ea=e.trimString(c.substring(ji,Lt));Ea?(pr.writeComment(Ea),Lt!==$&&pr.writeLine()):pr.rawWrite(Yr)}function Uu(c,$,pr){for(var Yr=0;$<pr&&e.isWhiteSpaceSingleLine(c.charCodeAt($));$++)c.charCodeAt($)===9?Yr+=zo()-Yr%zo():Yr++;return Yr}function $c(c){return Ic(c)!==0}e.hasEffectiveModifiers=$c;function Wf(c){return xl(c)!==0}e.hasSyntacticModifiers=Wf;function Gl(c,$){return!!df(c,$)}e.hasEffectiveModifier=Gl;function bs(c,$){return!!xp(c,$)}e.hasSyntacticModifier=bs;function zu(c){return e.isClassElement(c)&&ss(c)||e.isClassStaticBlockDeclaration(c)}e.isStatic=zu;function ss(c){return bs(c,32)}e.hasStaticModifier=ss;function Uc(c){return Gl(c,16384)}e.hasOverrideModifier=Uc;function Ad(c){return bs(c,128)}e.hasAbstractModifier=Ad;function vu(c){return bs(c,2)}e.hasAmbientModifier=vu;function pf(c){return Gl(c,64)}e.hasEffectiveReadonlyModifier=pf;function df(c,$){return Ic(c)&$}e.getSelectedEffectiveModifierFlags=df;function xp(c,$){return xl(c)&$}e.getSelectedSyntacticModifierFlags=xp;function l_(c,$,pr){return c.kind>=0&&c.kind<=159?0:(c.modifierFlagsCache&536870912||(c.modifierFlagsCache=Xl(c)|536870912),$&&!(c.modifierFlagsCache&4096)&&(pr||_i(c))&&c.parent&&(c.modifierFlagsCache|=gf(c)|4096),c.modifierFlagsCache&-536875009)}function Ic(c){return l_(c,!0)}e.getEffectiveModifierFlags=Ic;function _s(c){return l_(c,!0,!0)}e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=_s;function xl(c){return l_(c,!1)}e.getSyntacticModifierFlags=xl;function gf(c){var $=0;return!!c.parent&&!e.isParameter(c)&&(_i(c)&&(e.getJSDocPublicTagNoCache(c)&&($|=4),e.getJSDocPrivateTagNoCache(c)&&($|=8),e.getJSDocProtectedTagNoCache(c)&&($|=16),e.getJSDocReadonlyTagNoCache(c)&&($|=64),e.getJSDocOverrideTagNoCache(c)&&($|=16384)),e.getJSDocDeprecatedTagNoCache(c)&&($|=8192)),$}function Hl(c){return Xl(c)|gf(c)}e.getEffectiveModifierFlagsNoCache=Hl;function Xl(c){var $=Ep(c.modifiers);return(c.flags&4||c.kind===79&&c.isInJSDocNamespace)&&($|=1),$}e.getSyntacticModifierFlagsNoCache=Xl;function Ep(c){var $=0;if(c)for(var pr=0,Yr=c;pr<Yr.length;pr++){var ji=Yr[pr];$|=z_(ji.kind)}return $}e.modifiersToFlags=Ep;function z_(c){switch(c){case 124:return 32;case 123:return 4;case 122:return 16;case 121:return 8;case 126:return 128;case 93:return 1;case 135:return 2;case 85:return 2048;case 88:return 512;case 131:return 256;case 144:return 64;case 158:return 16384}return 0}e.modifierToFlag=z_;function El(c){return c?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(c)):void 0}e.createModifiers=El;function Cp(c){return c===56||c===55||c===53}e.isLogicalOperator=Cp;function Zc(c){return c===75||c===76||c===77}e.isLogicalOrCoalescingAssignmentOperator=Zc;function kp(c){return Zc(c.operatorToken.kind)}e.isLogicalOrCoalescingAssignmentExpression=kp;function mf(c){return c>=63&&c<=78}e.isAssignmentOperator=mf;function Ql(c){var $=f_(c);return $&&!$.isImplements?$.class:void 0}e.tryGetClassExtendingExpressionWithTypeArguments=Ql;function f_(c){return e.isExpressionWithTypeArguments(c)&&e.isHeritageClause(c.parent)&&e.isClassLike(c.parent.parent)?{class:c.parent.parent,isImplements:c.parent.token===117}:void 0}e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=f_;function qf(c,$){return e.isBinaryExpression(c)&&($?c.operatorToken.kind===63:mf(c.operatorToken.kind))&&e.isLeftHandSideExpression(c.left)}e.isAssignmentExpression=qf;function Cl(c){return qf(c.parent)&&c.parent.left===c}e.isLeftHandSideOfAssignment=Cl;function W_(c){if(qf(c,!0)){var $=c.left.kind;return $===204||$===203}return!1}e.isDestructuringAssignment=W_;function nl(c){return Ql(c)!==void 0}e.isExpressionWithTypeArgumentsInClassExtendsClause=nl;function Ga(c){return c.kind===79||__(c)}e.isEntityNameExpression=Ga;function kl(c){switch(c.kind){case 79:return c;case 160:do c=c.left;while(c.kind!==79);return c;case 205:do c=c.expression;while(c.kind!==79);return c}}e.getFirstIdentifier=kl;function ht(c){return c.kind===79||c.kind===108||c.kind===106||c.kind===230||c.kind===205&&ht(c.expression)||c.kind===211&&ht(c.expression)}e.isDottedName=ht;function __(c){return e.isPropertyAccessExpression(c)&&e.isIdentifier(c.name)&&Ga(c.expression)}e.isPropertyAccessEntityNameExpression=__;function Yl(c){if(e.isPropertyAccessExpression(c)){var $=Yl(c.expression);if($!==void 0)return $+"."+di(c.name)}else if(e.isElementAccessExpression(c)){var $=Yl(c.expression);if($!==void 0&&e.isPropertyName(c.argumentExpression))return $+"."+Nc(c.argumentExpression)}else if(e.isIdentifier(c))return e.unescapeLeadingUnderscores(c.escapedText)}e.tryGetPropertyAccessOrIdentifierToString=Yl;function ol(c){return ti(c)&&is(c)==="prototype"}e.isPrototypeAccess=ol;function q_(c){return c.parent.kind===160&&c.parent.right===c||c.parent.kind===205&&c.parent.name===c}e.isRightSideOfQualifiedNameOrPropertyAccess=q_;function rd(c){return e.isQualifiedName(c.parent)&&c.parent.right===c||e.isPropertyAccessExpression(c.parent)&&c.parent.name===c||e.isJSDocMemberName(c.parent)&&c.parent.right===c}e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName=rd;function Pd(c){return c.kind===204&&c.properties.length===0}e.isEmptyObjectLiteral=Pd;function Al(c){return c.kind===203&&c.elements.length===0}e.isEmptyArrayLiteral=Al;function id(c){if(!(!p_(c)||!c.declarations))for(var $=0,pr=c.declarations;$<pr.length;$++){var Yr=pr[$];if(Yr.localSymbol)return Yr.localSymbol}}e.getLocalSymbolForExportDefault=id;function p_(c){return c&&e.length(c.declarations)>0&&bs(c.declarations[0],512)}function Nd(c){return e.find(Pv,function($){return e.fileExtensionIs(c,$)})}e.tryExtractTSExtension=Nd;function V_(c){for(var $=[],pr=c.length,Yr=0;Yr<pr;Yr++){var ji=c.charCodeAt(Yr);ji<128?$.push(ji):ji<2048?($.push(ji>>6|192),$.push(ji&63|128)):ji<65536?($.push(ji>>12|224),$.push(ji>>6&63|128),$.push(ji&63|128)):ji<131072?($.push(ji>>18|240),$.push(ji>>12&63|128),$.push(ji>>6&63|128),$.push(ji&63|128)):e.Debug.assert(!1,"Unexpected code point")}return $}var yu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function d_(c){for(var $="",pr=V_(c),Yr=0,ji=pr.length,wt,Lt,Ea,vn;Yr<ji;)wt=pr[Yr]>>2,Lt=(pr[Yr]&3)<<4|pr[Yr+1]>>4,Ea=(pr[Yr+1]&15)<<2|pr[Yr+2]>>6,vn=pr[Yr+2]&63,Yr+1>=ji?Ea=vn=64:Yr+2>=ji&&(vn=64),$+=yu.charAt(wt)+yu.charAt(Lt)+yu.charAt(Ea)+yu.charAt(vn),Yr+=3;return $}e.convertToBase64=d_;function sl(c){for(var $="",pr=0,Yr=c.length;pr<Yr;){var ji=c[pr];if(ji<128)$+=String.fromCharCode(ji),pr++;else if((ji&192)===192){var wt=ji&63;pr++;for(var Lt=c[pr];(Lt&192)===128;)wt=wt<<6|Lt&63,pr++,Lt=c[pr];$+=String.fromCharCode(wt)}else $+=String.fromCharCode(ji),pr++}return $}function sc(c,$){return c&&c.base64encode?c.base64encode($):d_($)}e.base64encode=sc;function Vf(c,$){if(c&&c.base64decode)return c.base64decode($);for(var pr=$.length,Yr=[],ji=0;ji<pr&&$.charCodeAt(ji)!==yu.charCodeAt(64);){var wt=yu.indexOf($[ji]),Lt=yu.indexOf($[ji+1]),Ea=yu.indexOf($[ji+2]),vn=yu.indexOf($[ji+3]),sn=(wt&63)<<2|Lt>>4&3,Fo=(Lt&15)<<4|Ea>>2&15,us=(Ea&3)<<6|vn&63;Fo===0&&Ea!==0?Yr.push(sn):us===0&&vn!==0?Yr.push(sn,Fo):Yr.push(sn,Fo,us),ji+=4}return sl(Yr)}e.base64decode=Vf;function ku(c,$){try{var pr=$.readFile(c);if(!pr)return{};var Yr=e.parseConfigFileTextToJson(c,pr);return Yr.error?{}:Yr.config}catch{return{}}}e.readJson=ku;function vf(c,$){return!$.directoryExists||$.directoryExists(c)}e.directoryProbablyExists=vf;var td=`\r
`,eu=`
`;function b(c,$){switch(c.newLine){case 0:return td;case 1:return eu}return $?$():e.sys?e.sys.newLine:td}e.getNewLineCharacter=b;function rr(c,$){return $===void 0&&($=c),e.Debug.assert($>=c||$===-1),{pos:c,end:$}}e.createRange=rr;function ai(c,$){return rr(c.pos,$)}e.moveRangeEnd=ai;function Wi(c,$){return rr($,c.end)}e.moveRangePos=Wi;function At(c){return c.decorators&&c.decorators.length>0?Wi(c,c.decorators.end):c}e.moveRangePastDecorators=At;function ra(c){return c.modifiers&&c.modifiers.length>0?Wi(c,c.modifiers.end):At(c)}e.moveRangePastModifiers=ra;function La(c){return c.pos===c.end}e.isCollapsedRange=La;function fn(c,$){return rr(c,c+e.tokenToString($).length)}e.createTokenRange=fn;function Bo(c,$){return cc(c,c,$)}e.rangeIsOnSingleLine=Bo;function Yo(c,$,pr){return Qs(Au(c,pr,!1),Au($,pr,!1),pr)}e.rangeStartPositionsAreOnSameLine=Yo;function jo(c,$,pr){return Qs(c.end,$.end,pr)}e.rangeEndPositionsAreOnSameLine=jo;function cc(c,$,pr){return Qs(Au(c,pr,!1),$.end,pr)}e.rangeStartIsOnSameLineAsRangeEnd=cc;function qs(c,$,pr){return Qs(c.end,Au($,pr,!1),pr)}e.rangeEndIsOnSameLineAsRangeStart=qs;function uc(c,$,pr,Yr){var ji=Au($,pr,Yr);return e.getLinesBetweenPositions(pr,c.end,ji)}e.getLinesBetweenRangeEndAndRangeStart=uc;function hu(c,$,pr){return e.getLinesBetweenPositions(pr,c.end,$.end)}e.getLinesBetweenRangeEndPositions=hu;function $l(c,$){return!Qs(c.pos,c.end,$)}e.isNodeArrayMultiLine=$l;function Qs(c,$,pr){return e.getLinesBetweenPositions(pr,c,$)===0}e.positionsAreOnSameLine=Qs;function Au(c,$,pr){return cd(c.pos)?-1:e.skipTrivia($.text,c.pos,!1,pr)}e.getStartPositionOfRange=Au;function Id(c,$,pr,Yr){var ji=e.skipTrivia(pr.text,c,!1,Yr),wt=Ec(ji,$,pr);return e.getLinesBetweenPositions(pr,wt!=null?wt:$,ji)}e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=Id;function K_(c,$,pr,Yr){var ji=e.skipTrivia(pr.text,c,!1,Yr);return e.getLinesBetweenPositions(pr,c,Math.min($,ji))}e.getLinesBetweenPositionAndNextNonWhitespaceCharacter=K_;function Ec(c,$,pr){for($===void 0&&($=0);c-- >$;)if(!e.isWhiteSpaceLike(pr.text.charCodeAt(c)))return c}function Zl(c){var $=e.getParseTreeNode(c);if($)switch($.parent.kind){case 259:case 260:return $===$.parent.name}return!1}e.isDeclarationNameOfEnumOrNamespace=Zl;function Ie(c){return e.filter(c.declarations,kr)}e.getInitializedVariables=Ie;function kr(c){return c.initializer!==void 0}function Hr(c){return c.watch&&c.hasOwnProperty("watch")}e.isWatchSet=Hr;function vi(c){c.close()}e.closeFileWatcher=vi;function Li(c){return c.flags&33554432?c.checkFlags:0}e.getCheckFlags=Li;function ot(c,$){if($===void 0&&($=!1),c.valueDeclaration){var pr=$&&c.declarations&&e.find(c.declarations,function(Ea){return Ea.kind===172})||c.valueDeclaration,Yr=e.getCombinedModifierFlags(pr);return c.parent&&c.parent.flags&32?Yr:Yr&-29}if(Li(c)&6){var ji=c.checkFlags,wt=ji&1024?8:ji&256?4:16,Lt=ji&2048?32:0;return wt|Lt}return c.flags&4194304?36:0}e.getDeclarationModifierFlagsFromSymbol=ot;function zt(c,$){return c.flags&2097152?$.getAliasedSymbol(c):c}e.skipAlias=zt;function la(c){return c.exportSymbol?c.exportSymbol.flags|c.flags:c.flags}e.getCombinedLocalAndExportSymbolFlags=la;function ja(c){return $o(c)===1}e.isWriteOnlyAccess=ja;function Oa(c){return $o(c)!==0}e.isWriteAccess=Oa;var eo;(function(c){c[c.Read=0]="Read",c[c.Write=1]="Write",c[c.ReadWrite=2]="ReadWrite"})(eo||(eo={}));function $o(c){var $=c.parent;if(!$)return 0;switch($.kind){case 211:return $o($);case 219:case 218:var pr=$.operator;return pr===45||pr===46?Ea():0;case 220:var Yr=$,ji=Yr.left,wt=Yr.operatorToken;return ji===c&&mf(wt.kind)?wt.kind===63?1:Ea():0;case 205:return $.name!==c?0:$o($);case 294:{var Lt=$o($.parent);return c===$.name?fo(Lt):Lt}case 295:return c===$.objectAssignmentInitializer?0:$o($.parent);case 203:return $o($);default:return 0}function Ea(){return $.parent&&Go($.parent).kind===237?1:2}}function fo(c){switch(c){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(c)}}function es(c,$){if(!c||!$||Object.keys(c).length!==Object.keys($).length)return!1;for(var pr in c)if(typeof c[pr]=="object"){if(!es(c[pr],$[pr]))return!1}else if(typeof c[pr]!="function"&&c[pr]!==$[pr])return!1;return!0}e.compareDataObjects=es;function Es(c,$){c.forEach($),c.clear()}e.clearMap=Es;function vc(c,$,pr){var Yr=pr.onDeleteValue,ji=pr.onExistingValue;c.forEach(function(wt,Lt){var Ea=$.get(Lt);Ea===void 0?(c.delete(Lt),Yr(wt,Lt)):ji&&ji(wt,Ea,Lt)})}e.mutateMapSkippingNewValues=vc;function lc(c,$,pr){vc(c,$,pr);var Yr=pr.createNewValue;$.forEach(function(ji,wt){c.has(wt)||c.set(wt,Yr(wt,ji))})}e.mutateMap=lc;function cl(c){if(c.flags&32){var $=Is(c);return!!$&&bs($,128)}return!1}e.isAbstractConstructorSymbol=cl;function Is(c){var $;return($=c.declarations)===null||$===void 0?void 0:$.find(e.isClassLike)}e.getClassLikeDeclarationOfSymbol=Is;function yf(c){return c.flags&3899393?c.objectFlags:0}e.getObjectFlags=yf;function g_(c,$){return $.getSignaturesOfType(c,0).length!==0||$.getSignaturesOfType(c,1).length!==0}e.typeHasCallOrConstructSignatures=g_;function wc(c,$){return!!e.forEachAncestorDirectory(c,function(pr){return $(pr)?!0:void 0})}e.forSomeAncestorDirectory=wc;function bc(c){return!!c&&!!c.declarations&&!!c.declarations[0]&&e.isNamespaceExportDeclaration(c.declarations[0])}e.isUMDExportSymbol=bc;function ru(c){var $=c.moduleSpecifier;return e.isStringLiteral($)?$.text:me($)}e.showModuleSpecifier=ru;function m_(c){var $;return e.forEachChild(c,function(pr){j(pr)&&($=pr)},function(pr){for(var Yr=pr.length-1;Yr>=0;Yr--)if(j(pr[Yr])){$=pr[Yr];break}}),$}e.getLastChild=m_;function Wu(c,$,pr){return pr===void 0&&(pr=!0),c.has($)?!1:(c.set($,pr),!0)}e.addToSeen=Wu;function d(c){return e.isClassLike(c)||e.isInterfaceDeclaration(c)||e.isTypeLiteralNode(c)}e.isObjectTypeDeclaration=d;function K(c){return c>=176&&c<=199||c===130||c===154||c===146||c===157||c===147||c===133||c===149||c===150||c===114||c===152||c===143||c===227||c===310||c===311||c===312||c===313||c===314||c===315||c===316}e.isTypeNodeKind=K;function Ae(c){return c.kind===205||c.kind===206}e.isAccessExpression=Ae;function tr(c){return c.kind===205?c.name:(e.Debug.assert(c.kind===206),c.argumentExpression)}e.getNameOfAccessExpression=tr;function $r(c){switch(c.kind){case"text":case"internal":return!0;default:return!1}}e.isBundleFileTextLike=$r;function Zi(c){return c.kind===268||c.kind===272}e.isNamedImportsOrExports=Zi;function dt(c){for(;Ae(c);)c=c.expression;return c}e.getLeftmostAccessExpression=dt;function _n(c,$){for(;;){switch(c.kind){case 219:c=c.operand;continue;case 220:c=c.left;continue;case 221:c=c.condition;continue;case 209:c=c.tag;continue;case 207:if($)return c;case 228:case 206:case 205:case 229:case 348:c=c.expression;continue}return c}}e.getLeftmostExpression=_n;function Zo(c,$){this.flags=c,this.escapedName=$,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function Bs(c,$){this.flags=$,(e.Debug.isDebugging||e.tracing)&&(this.checker=c)}function ad(c,$){this.flags=$,e.Debug.isDebugging&&(this.checker=c)}function hf(c,$,pr){this.pos=$,this.end=pr,this.kind=c,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function Ag(c,$,pr){this.pos=$,this.end=pr,this.kind=c,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0}function v_(c,$,pr){this.pos=$,this.end=pr,this.kind=c,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.flowNode=void 0}function hv(c,$,pr){this.fileName=c,this.text=$,this.skipTrivia=pr||function(Yr){return Yr}}e.objectAllocator={getNodeConstructor:function(){return hf},getTokenConstructor:function(){return Ag},getIdentifierConstructor:function(){return v_},getPrivateIdentifierConstructor:function(){return hf},getSourceFileConstructor:function(){return hf},getSymbolConstructor:function(){return Zo},getTypeConstructor:function(){return Bs},getSignatureConstructor:function(){return ad},getSourceMapSourceConstructor:function(){return hv}};function Dv(c){Object.assign(e.objectAllocator,c)}e.setObjectAllocator=Dv;function Ap(c,$,pr){return pr===void 0&&(pr=0),c.replace(/{(\d+)}/g,function(Yr,ji){return""+e.Debug.checkDefined($[+ji+pr])})}e.formatStringFromArgs=Ap;var wd;function Jt(c){wd=c}e.setLocalizedDiagnosticMessages=Jt;function Df(c){!wd&&c&&(wd=c())}e.maybeSetLocalizedDiagnosticMessages=Df;function qu(c){return wd&&wd[c.key]||c.message}e.getLocaleSpecificMessage=qu;function bf(c,$,pr,Yr){_r(void 0,$,pr);var ji=qu(Yr);return arguments.length>4&&(ji=Ap(ji,arguments,4)),{file:void 0,start:$,length:pr,messageText:ji,category:Yr.category,code:Yr.code,reportsUnnecessary:Yr.reportsUnnecessary,fileName:c}}e.createDetachedDiagnostic=bf;function nd(c){return c.file===void 0&&c.start!==void 0&&c.length!==void 0&&typeof c.fileName=="string"}function Gd(c,$){var pr=$.fileName||"",Yr=$.text.length;e.Debug.assertEqual(c.fileName,pr),e.Debug.assertLessThanOrEqual(c.start,Yr),e.Debug.assertLessThanOrEqual(c.start+c.length,Yr);var ji={file:$,start:c.start,length:c.length,messageText:c.messageText,category:c.category,code:c.code,reportsUnnecessary:c.reportsUnnecessary};if(c.relatedInformation){ji.relatedInformation=[];for(var wt=0,Lt=c.relatedInformation;wt<Lt.length;wt++){var Ea=Lt[wt];nd(Ea)&&Ea.fileName===pr?(e.Debug.assertLessThanOrEqual(Ea.start,Yr),e.Debug.assertLessThanOrEqual(Ea.start+Ea.length,Yr),ji.relatedInformation.push(Gd(Ea,$))):ji.relatedInformation.push(Ea)}}return ji}function Od(c,$){for(var pr=[],Yr=0,ji=c;Yr<ji.length;Yr++){var wt=ji[Yr];pr.push(Gd(wt,$))}return pr}e.attachFileToDiagnostics=Od;function od(c,$,pr,Yr){_r(c,$,pr);var ji=qu(Yr);return arguments.length>4&&(ji=Ap(ji,arguments,4)),{file:c,start:$,length:pr,messageText:ji,category:Yr.category,code:Yr.code,reportsUnnecessary:Yr.reportsUnnecessary,reportsDeprecated:Yr.reportsDeprecated}}e.createFileDiagnostic=od;function Sf(c,$){var pr=qu($);return arguments.length>2&&(pr=Ap(pr,arguments,2)),pr}e.formatMessage=Sf;function Em(c){var $=qu(c);return arguments.length>1&&($=Ap($,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:$,category:c.category,code:c.code,reportsUnnecessary:c.reportsUnnecessary,reportsDeprecated:c.reportsDeprecated}}e.createCompilerDiagnostic=Em;function Pg(c,$){return{file:void 0,start:void 0,length:void 0,code:c.code,category:c.category,messageText:c.next?c:c.messageText,relatedInformation:$}}e.createCompilerDiagnosticFromMessageChain=Pg;function Hd(c,$){var pr=qu($);return arguments.length>2&&(pr=Ap(pr,arguments,2)),{messageText:pr,category:$.category,code:$.code,next:c===void 0||Array.isArray(c)?c:[c]}}e.chainDiagnosticMessages=Hd;function sd(c,$){for(var pr=c;pr.next;)pr=pr.next[0];pr.next=[$]}e.concatenateDiagnosticMessageChains=sd;function Ng(c){return c.file?c.file.path:void 0}function Fd(c,$){return ef(c,$)||bv(c,$)||0}e.compareDiagnostics=Fd;function ef(c,$){return e.compareStringsCaseSensitive(Ng(c),Ng($))||e.compareValues(c.start,$.start)||e.compareValues(c.length,$.length)||e.compareValues(c.code,$.code)||y_(c.messageText,$.messageText)||0}e.compareDiagnosticsSkipRelatedInformation=ef;function bv(c,$){return!c.relatedInformation&&!$.relatedInformation?0:c.relatedInformation&&$.relatedInformation?e.compareValues(c.relatedInformation.length,$.relatedInformation.length)||e.forEach(c.relatedInformation,function(pr,Yr){var ji=$.relatedInformation[Yr];return Fd(pr,ji)})||0:c.relatedInformation?-1:1}function y_(c,$){if(typeof c=="string"&&typeof $=="string")return e.compareStringsCaseSensitive(c,$);if(typeof c=="string")return-1;if(typeof $=="string")return 1;var pr=e.compareStringsCaseSensitive(c.messageText,$.messageText);if(pr)return pr;if(!c.next&&!$.next)return 0;if(!c.next)return-1;if(!$.next)return 1;for(var Yr=Math.min(c.next.length,$.next.length),ji=0;ji<Yr;ji++)if(pr=y_(c.next[ji],$.next[ji]),pr)return pr;return c.next.length<$.next.length?-1:c.next.length>$.next.length?1:0}function zc(c){return c===4||c===2||c===1||c===6?1:0}e.getLanguageVariant=zc;function Kf(c){return c.target||c.module===e.ModuleKind.Node12&&7||c.module===e.ModuleKind.NodeNext&&99||0}e.getEmitScriptTarget=Kf;function _t(c){return typeof c.module=="number"?c.module:Kf(c)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}e.getEmitModuleKind=_t;function xa(c){var $=c.moduleResolution;if($===void 0)switch(_t(c)){case e.ModuleKind.CommonJS:$=e.ModuleResolutionKind.NodeJs;break;case e.ModuleKind.Node12:$=e.ModuleResolutionKind.Node12;break;case e.ModuleKind.NodeNext:$=e.ModuleResolutionKind.NodeNext;break;default:$=e.ModuleResolutionKind.Classic;break}return $}e.getEmitModuleResolutionKind=xa;function ma(c){switch(_t(c)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.Node12:case e.ModuleKind.NodeNext:return!0;default:return!1}}e.hasJsonModuleEmitEnabled=ma;function Va(c){return c.allowUnreachableCode===!1}e.unreachableCodeIsError=Va;function dn(c){return c.allowUnusedLabels===!1}e.unusedLabelIsError=dn;function Pn(c){return!!(Sc(c)&&c.declarationMap)}e.getAreDeclarationMapsEnabled=Pn;function cs(c){if(c.esModuleInterop!==void 0)return c.esModuleInterop;switch(_t(c)){case e.ModuleKind.Node12:case e.ModuleKind.NodeNext:return!0}}e.getESModuleInterop=cs;function yc(c){var $=_t(c);return c.allowSyntheticDefaultImports!==void 0?c.allowSyntheticDefaultImports:cs(c)||$===e.ModuleKind.System}e.getAllowSyntheticDefaultImports=yc;function Sc(c){return!!(c.declaration||c.composite)}e.getEmitDeclarations=Sc;function Oc(c){return!!(c.preserveConstEnums||c.isolatedModules)}e.shouldPreserveConstEnums=Oc;function cu(c){return!!(c.incremental||c.composite)}e.isIncrementalCompilation=cu;function Pl(c,$){return c[$]===void 0?!!c.strict:!!c[$]}e.getStrictOptionValue=Pl;function G_(c){return c.allowJs===void 0?!!c.checkJs:c.allowJs}e.getAllowJSCompilerOption=G_;function Tf(c){return c.useDefineForClassFields===void 0?Kf(c)>=9:c.useDefineForClassFields}e.getUseDefineForClassFields=Tf;function Xd(c,$){return S($,c,e.semanticDiagnosticsOptionDeclarations)}e.compilerOptionsAffectSemanticDiagnostics=Xd;function Io(c,$){return S($,c,e.affectsEmitOptionDeclarations)}e.compilerOptionsAffectEmit=Io;function Qd(c,$){return $.strictFlag?Pl(c,$.name):c[$.name]}e.getCompilerOptionValue=Qd;function Ig(c){var $=c.jsx;return $===2||$===4||$===5}e.getJSXTransformEnabled=Ig;function p1(c,$){var pr=$==null?void 0:$.pragmas.get("jsximportsource"),Yr=e.isArray(pr)?pr[pr.length-1]:pr;return c.jsx===4||c.jsx===5||c.jsxImportSource||Yr?(Yr==null?void 0:Yr.arguments.factory)||c.jsxImportSource||"react":void 0}e.getJSXImplicitImportBase=p1;function Ry(c,$){return c?"".concat(c,"/").concat($.jsx===5?"jsx-dev-runtime":"jsx-runtime"):void 0}e.getJSXRuntimeImport=Ry;function d1(c){for(var $=!1,pr=0;pr<c.length;pr++)if(c.charCodeAt(pr)===42)if(!$)$=!0;else return!1;return!0}e.hasZeroOrOneAsteriskCharacter=d1;function g1(c,$){var pr,Yr,ji,wt=!1;return{getSymlinkedFiles:function(){return ji},getSymlinkedDirectories:function(){return pr},getSymlinkedDirectoriesByRealpath:function(){return Yr},setSymlinkedFile:function(Ea,vn){return(ji||(ji=new e.Map)).set(Ea,vn)},setSymlinkedDirectory:function(Ea,vn){var sn=e.toPath(Ea,c,$);eh(sn)||(sn=e.ensureTrailingDirectorySeparator(sn),vn!==!1&&!(pr!=null&&pr.has(sn))&&(Yr||(Yr=e.createMultiMap())).add(e.ensureTrailingDirectorySeparator(vn.realPath),Ea),(pr||(pr=new e.Map)).set(sn,vn))},setSymlinksFromResolutions:function(Ea,vn){var sn=this,Fo;e.Debug.assert(!wt),wt=!0;for(var us=0,tn=Ea;us<tn.length;us++){var Ys=tn[us];(Fo=Ys.resolvedModules)===null||Fo===void 0||Fo.forEach(function(za){return Lt(sn,za)})}vn==null||vn.forEach(function(za){return Lt(sn,za)})},hasProcessedResolutions:function(){return wt}};function Lt(Ea,vn){if(!(!vn||!vn.originalPath||!vn.resolvedFileName)){var sn=vn.resolvedFileName,Fo=vn.originalPath;Ea.setSymlinkedFile(e.toPath(Fo,c,$),sn);var us=By(sn,Fo,c,$)||e.emptyArray,tn=us[0],Ys=us[1];tn&&Ys&&Ea.setSymlinkedDirectory(Ys,{real:tn,realPath:e.toPath(tn,c,$)})}}}e.createSymlinkCache=g1;function By(c,$,pr,Yr){for(var ji=e.getPathComponents(e.getNormalizedAbsolutePath(c,pr)),wt=e.getPathComponents(e.getNormalizedAbsolutePath($,pr)),Lt=!1;ji.length>=2&&wt.length>=2&&!Sv(ji[ji.length-2],Yr)&&!Sv(wt[wt.length-2],Yr)&&Yr(ji[ji.length-1])===Yr(wt[wt.length-1]);)ji.pop(),wt.pop(),Lt=!0;return Lt?[e.getPathFromPathComponents(ji),e.getPathFromPathComponents(wt)]:void 0}function Sv(c,$){return c!==void 0&&($(c)==="node_modules"||e.startsWith(c,"@"))}function Jy(c){return e.isAnyDirectorySeparator(c.charCodeAt(0))?c.slice(1):void 0}function Tv(c,$,pr){var Yr=e.tryRemovePrefix(c,$,pr);return Yr===void 0?void 0:Jy(Yr)}e.tryRemoveDirectoryPrefix=Tv;var ul=/[^\w\s\/]/g;function xv(c){return c.replace(ul,Yd)}e.regExpEscape=xv;function Yd(c){return"\\"+c}var wg=[42,63];e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var Pp="(?!(".concat(e.commonPackageFolders.join("|"),")(/|$))"),jy={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/".concat(Pp,"[^/.][^/]*)*?"),replaceWildcardCharacter:function(c){return kv(c,jy.singleAsteriskRegexFragment)}},Nl={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/".concat(Pp,"[^/.][^/]*)*?"),replaceWildcardCharacter:function(c){return kv(c,Nl.singleAsteriskRegexFragment)}},Uy={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(c){return kv(c,Uy.singleAsteriskRegexFragment)}},Ev={files:jy,directories:Nl,exclude:Uy};function $d(c,$,pr){var Yr=Il(c,$,pr);if(!(!Yr||!Yr.length)){var ji=Yr.map(function(Lt){return"(".concat(Lt,")")}).join("|"),wt=pr==="exclude"?"($|/)":"$";return"^(".concat(ji,")").concat(wt)}}e.getRegularExpressionForWildcard=$d;function Il(c,$,pr){if(!(c===void 0||c.length===0))return e.flatMap(c,function(Yr){return Yr&&Cv(Yr,$,pr,Ev[pr])})}e.getRegularExpressionsForWildcards=Il;function Og(c){return!/[.*?]/.test(c)}e.isImplicitGlob=Og;function Wc(c,$,pr){var Yr=c&&Cv(c,$,pr,Ev[pr]);return Yr&&"^(".concat(Yr,")").concat(pr==="exclude"?"($|/)":"$")}e.getPatternFromSpec=Wc;function Cv(c,$,pr,Yr){var ji=Yr.singleAsteriskRegexFragment,wt=Yr.doubleAsteriskRegexFragment,Lt=Yr.replaceWildcardCharacter,Ea="",vn=!1,sn=e.getNormalizedPathComponents(c,$),Fo=e.last(sn);if(!(pr!=="exclude"&&Fo==="**")){sn[0]=e.removeTrailingDirectorySeparator(sn[0]),Og(Fo)&&sn.push("**","*");for(var us=0,tn=0,Ys=sn;tn<Ys.length;tn++){var za=Ys[tn];if(za==="**")Ea+=wt;else if(pr==="directories"&&(Ea+="(",us++),vn&&(Ea+=e.directorySeparator),pr!=="exclude"){var Du="";za.charCodeAt(0)===42?(Du+="([^./]"+ji+")?",za=za.substr(1)):za.charCodeAt(0)===63&&(Du+="[^./]",za=za.substr(1)),Du+=za.replace(ul,Lt),Du!==za&&(Ea+=Pp),Ea+=Du}else Ea+=za.replace(ul,Lt);vn=!0}for(;us>0;)Ea+=")?",us--;return Ea}}function kv(c,$){return c==="*"?$:c==="?"?"[^/]":"\\"+c}function zy(c,$,pr,Yr,ji){c=e.normalizePath(c),ji=e.normalizePath(ji);var wt=e.combinePaths(ji,c);return{includeFilePatterns:e.map(Il(pr,wt,"files"),function(Lt){return"^".concat(Lt,"$")}),includeFilePattern:$d(pr,wt,"files"),includeDirectoryPattern:$d(pr,wt,"directories"),excludePattern:$d($,wt,"exclude"),basePaths:Wy(c,pr,Yr)}}e.getFileMatcherPatterns=zy;function Pu(c,$){return new RegExp(c,$?"":"i")}e.getRegexFromPattern=Pu;function Zd(c,$,pr,Yr,ji,wt,Lt,Ea,vn){c=e.normalizePath(c),wt=e.normalizePath(wt);for(var sn=zy(c,pr,Yr,ji,wt),Fo=sn.includeFilePatterns&&sn.includeFilePatterns.map(function(kc){return Pu(kc,ji)}),us=sn.includeDirectoryPattern&&Pu(sn.includeDirectoryPattern,ji),tn=sn.excludePattern&&Pu(sn.excludePattern,ji),Ys=Fo?Fo.map(function(){return[]}):[[]],za=new e.Map,Du=e.createGetCanonicalFileName(ji),gs=0,iu=sn.basePaths;gs<iu.length;gs++){var X_=iu[gs];Js(X_,e.combinePaths(wt,X_),Lt)}return e.flatten(Ys);function Js(kc,fl,jg){var ig=Du(vn(fl));if(!za.has(ig)){za.set(ig,!0);for(var Np=Ea(kc),ih=Np.files,Bv=Np.directories,Nm=function(Ku){var Jv=e.combinePaths(kc,Ku),Wg=e.combinePaths(fl,Ku);if($&&!e.fileExtensionIsOneOf(Jv,$)||tn&&tn.test(Wg))return"continue";if(!Fo)Ys[0].push(Jv);else{var th=e.findIndex(Fo,function(M1){return M1.test(Wg)});th!==-1&&Ys[th].push(Jv)}},Ug=0,ud=e.sort(ih,e.compareStringsCaseSensitive);Ug<ud.length;Ug++){var Im=ud[Ug];Nm(Im)}if(!(jg!==void 0&&(jg--,jg===0)))for(var zg=0,tg=e.sort(Bv,e.compareStringsCaseSensitive);zg<tg.length;zg++){var Im=tg[zg],Ol=e.combinePaths(kc,Im),S_=e.combinePaths(fl,Im);(!us||us.test(S_))&&(!tn||!tn.test(S_))&&Js(Ol,S_,jg)}}}}e.matchFiles=Zd;function Wy(c,$,pr){var Yr=[c];if($){for(var ji=[],wt=0,Lt=$;wt<Lt.length;wt++){var Ea=Lt[wt],vn=e.isRootedDiskPath(Ea)?Ea:e.normalizePath(e.combinePaths(c,Ea));ji.push(m1(vn))}ji.sort(e.getStringComparer(!pr));for(var sn=function(Ys){e.every(Yr,function(za){return!e.containsPath(za,Ys,c,!pr)})&&Yr.push(Ys)},Fo=0,us=ji;Fo<us.length;Fo++){var tn=us[Fo];sn(tn)}}return Yr}function m1(c){var $=e.indexOfAnyCharCode(c,wg);return $<0?e.hasExtension(c)?e.removeTrailingDirectorySeparator(e.getDirectoryPath(c)):c:c.substring(0,c.lastIndexOf(e.directorySeparator,$))}function v1(c,$){return $||Av(c)||3}e.ensureScriptKind=v1;function Av(c){var $=c.substr(c.lastIndexOf("."));switch($.toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}e.getScriptKindFromFileName=Av,e.supportedTSExtensions=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],e.supportedTSExtensionsFlat=e.flatten(e.supportedTSExtensions);var y1=qe(qe([],e.supportedTSExtensions,!0),[[".json"]],!1),Pv=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx",".cts",".mts"];e.supportedJSExtensions=[[".js",".jsx"],[".mjs"],[".cjs"]],e.supportedJSExtensionsFlat=e.flatten(e.supportedJSExtensions);var Cm=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],Nv=qe(qe([],Cm,!0),[[".json"]],!1);function Iv(c,$){var pr=c&&G_(c);if(!$||$.length===0)return pr?Cm:e.supportedTSExtensions;var Yr=pr?Cm:e.supportedTSExtensions,ji=e.flatten(Yr),wt=qe(qe([],Yr,!0),e.mapDefined($,function(Lt){return Lt.scriptKind===7||pr&&h1(Lt.scriptKind)&&ji.indexOf(Lt.extension)===-1?[Lt.extension]:void 0}),!0);return wt}e.getSupportedExtensions=Iv;function qy(c,$){return!c||!c.resolveJsonModule?$:$===Cm?Nv:$===e.supportedTSExtensions?y1:qe(qe([],$,!0),[[".json"]],!1)}e.getSupportedExtensionsWithJsonIfResolveJsonModule=qy;function h1(c){return c===1||c===2}function D1(c){return e.some(e.supportedJSExtensionsFlat,function($){return e.fileExtensionIs(c,$)})}e.hasJSFileExtension=D1;function Vy(c){return e.some(e.supportedTSExtensionsFlat,function($){return e.fileExtensionIs(c,$)})}e.hasTSFileExtension=Vy;function b1(c,$,pr){if(!c)return!1;for(var Yr=Iv($,pr),ji=0,wt=e.flatten(qy($,Yr));ji<wt.length;ji++){var Lt=wt[ji];if(e.fileExtensionIs(c,Lt))return!0}return!1}e.isSupportedSourceFileName=b1;function eg(c){var $=c.match(/\//g);return $?$.length:0}function Ky(c,$){return e.compareValues(eg(c),eg($))}e.compareNumberOfDirectorySeparators=Ky;var wv=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function Fg(c){for(var $=0,pr=wv;$<pr.length;$++){var Yr=pr[$],ji=Ov(c,Yr);if(ji!==void 0)return ji}return c}e.removeFileExtension=Fg;function Ov(c,$){return e.fileExtensionIs(c,$)?Fv(c,$):void 0}e.tryRemoveExtension=Ov;function Fv(c,$){return c.substring(0,c.length-$.length)}e.removeExtension=Fv;function S1(c,$){return e.changeAnyExtension(c,$,wv,!1)}e.changeExtension=S1;function Gy(c){var $=c.indexOf("*");return $===-1?c:c.indexOf("*",$+1)!==-1?void 0:{prefix:c.substr(0,$),suffix:c.substr($+1)}}e.tryParsePattern=Gy;function T1(c){return e.mapDefined(e.getOwnKeys(c),function($){return Gy($)})}e.tryParsePatterns=T1;function cd(c){return!(c>=0)}e.positionIsSynthesized=cd;function km(c){return c===".ts"||c===".tsx"||c===".d.ts"||c===".cts"||c===".mts"||c===".d.mts"||c===".d.cts"}e.extensionIsTS=km;function Mv(c){return km(c)||c===".json"}e.resolutionExtensionIsTSOrJson=Mv;function x1(c){var $=Nu(c);return $!==void 0?$:e.Debug.fail("File ".concat(c," has unknown extension."))}e.extensionFromPath=x1;function E1(c){return Nu(c)!==void 0}e.isAnySupportedFileExtension=E1;function Nu(c){return e.find(wv,function($){return e.fileExtensionIs(c,$)})}e.tryGetExtensionFromPath=Nu;function Iu(c,$){return c.checkJsDirective?c.checkJsDirective.enabled:$.checkJs}e.isCheckJsEnabledForFile=Iu,e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray};function h_(c,$){for(var pr=[],Yr=0,ji=c;Yr<ji.length;Yr++){var wt=ji[Yr];if(wt===$)return $;e.isString(wt)||pr.push(wt)}return e.findBestPatternMatch(pr,function(Lt){return Lt},$)}e.matchPatternOrExact=h_;function wl(c,$){var pr=c.indexOf($);return e.Debug.assert(pr!==-1),c.slice(pr)}e.sliceAfter=wl;function Hy(c){for(var $,pr=[],Yr=1;Yr<arguments.length;Yr++)pr[Yr-1]=arguments[Yr];return pr.length&&(c.relatedInformation||(c.relatedInformation=[]),e.Debug.assert(c.relatedInformation!==e.emptyArray,"Diagnostic had empty array singleton for related info, but is still being constructed!"),($=c.relatedInformation).push.apply($,pr)),c}e.addRelatedInfo=Hy;function Mg(c,$){e.Debug.assert(c.length!==0);for(var pr=$(c[0]),Yr=pr,ji=1;ji<c.length;ji++){var wt=$(c[ji]);wt<pr?pr=wt:wt>Yr&&(Yr=wt)}return{min:pr,max:Yr}}e.minAndMax=Mg;function Lg(c){return{pos:le(c),end:c.end}}e.rangeOfNode=Lg;function ll(c,$){var pr=$.pos-1,Yr=e.skipTrivia(c.text,$.end)+1;return{pos:pr,end:Yr}}e.rangeOfTypeParameters=ll;function Xy(c,$,pr){return $.skipLibCheck&&c.isDeclarationFile||$.skipDefaultLibCheck&&c.hasNoDefaultLib||pr.isSourceOfProjectReferenceRedirect(c.fileName)}e.skipTypeChecking=Xy;function Rg(c,$){return c===$||typeof c=="object"&&c!==null&&typeof $=="object"&&$!==null&&e.equalOwnProperties(c,$,Rg)}e.isJsonEqual=Rg;function C1(c){var $;switch(c.charCodeAt(1)){case 98:case 66:$=1;break;case 111:case 79:$=3;break;case 120:case 88:$=4;break;default:for(var pr=c.length-1,Yr=0;c.charCodeAt(Yr)===48;)Yr++;return c.slice(Yr,pr)||"0"}for(var ji=2,wt=c.length-1,Lt=(wt-ji)*$,Ea=new Uint16Array((Lt>>>4)+(Lt&15?1:0)),vn=wt-1,sn=0;vn>=ji;vn--,sn+=$){var Fo=sn>>>4,us=c.charCodeAt(vn),tn=us<=57?us-48:10+us-(us<=70?65:97),Ys=tn<<(sn&15);Ea[Fo]|=Ys;var za=Ys>>>16;za&&(Ea[Fo+1]|=za)}for(var Du="",gs=Ea.length-1,iu=!0;iu;){var X_=0;iu=!1;for(var Fo=gs;Fo>=0;Fo--){var Js=X_<<16|Ea[Fo],kc=Js/10|0;Ea[Fo]=kc,X_=Js-kc*10,kc&&!iu&&(gs=Fo,iu=!0)}Du=X_+Du}return Du}e.parsePseudoBigInt=C1;function Fc(c){var $=c.negative,pr=c.base10Value;return($&&pr!=="0"?"-":"")+pr}e.pseudoBigIntToString=Fc;function Vu(c){return!!(c.flags&8388608)||Ka(c)||Bg(c)||D_(c)||!(ut(c)||Gf(c))}e.isValidTypeOnlyAliasUseSite=Vu;function Gf(c){return e.isIdentifier(c)&&e.isShorthandPropertyAssignment(c.parent)&&c.parent.name===c}function D_(c){for(;c.kind===79||c.kind===205;)c=c.parent;if(c.kind!==161)return!1;if(bs(c.parent,128))return!0;var $=c.parent.parent.kind;return $===257||$===181}function Bg(c){if(c.kind!==79)return!1;var $=e.findAncestor(c.parent,function(pr){switch(pr.kind){case 290:return!0;case 205:case 227:return!1;default:return"quit"}});return($==null?void 0:$.token)===117||($==null?void 0:$.parent.kind)===257}function _o(c){return e.isTypeReferenceNode(c)&&e.isIdentifier(c.typeName)}e.isIdentifierTypeReference=_o;function k1(c,$){if($===void 0&&($=e.equateValues),c.length<2)return!0;for(var pr=c[0],Yr=1,ji=c.length;Yr<ji;Yr++){var wt=c[Yr];if(!$(pr,wt))return!1}return!0}e.arrayIsHomogeneous=k1;function Qy(c,$){return c.pos=$,c}e.setTextRangePos=Qy;function Yy(c,$){return c.end=$,c}e.setTextRangeEnd=Yy;function b_(c,$,pr){return Yy(Qy(c,$),pr)}e.setTextRangePosEnd=b_;function qc(c,$,pr){return b_(c,$,$+pr)}e.setTextRangePosWidth=qc;function A1(c,$){return c&&(c.flags=$),c}e.setNodeFlags=A1;function Jg(c,$){return c&&$&&(c.parent=$),c}e.setParent=Jg;function P1(c,$){if(c)for(var pr=0,Yr=c;pr<Yr.length;pr++){var ji=Yr[pr];Jg(ji,$)}return c}e.setEachParent=P1;function Lv(c,$){if(!c)return c;return e.forEachChildRecursively(c,e.isJSDocNode(c)?pr:ji),c;function pr(wt,Lt){if($&&wt.parent===Lt)return"skip";Jg(wt,Lt)}function Yr(wt){if(e.hasJSDocNodes(wt))for(var Lt=0,Ea=wt.jsDoc;Lt<Ea.length;Lt++){var vn=Ea[Lt];pr(vn,wt),e.forEachChildRecursively(vn,pr)}}function ji(wt,Lt){return pr(wt,Lt)||Yr(wt)}}e.setParentRecursive=Lv;function $y(c){return!e.isOmittedExpression(c)}function Zy(c){return e.isArrayLiteralExpression(c)&&e.every(c.elements,$y)}e.isPackedArrayLiteral=Zy;function N1(c){for(e.Debug.assertIsDefined(c.parent);;){var $=c.parent;if(e.isParenthesizedExpression($)){c=$;continue}if(e.isExpressionStatement($)||e.isVoidExpression($)||e.isForStatement($)&&($.initializer===c||$.incrementor===c))return!0;if(e.isCommaListExpression($)){if(c!==e.last($.elements))return!0;c=$;continue}if(e.isBinaryExpression($)&&$.operatorToken.kind===27){if(c===$.left)return!0;c=$;continue}return!1}}e.expressionResultIsUnused=N1;function eh(c){return e.some(e.ignoredPaths,function($){return e.stringContains(c,$)})}e.containsIgnoredPath=eh;function Cc(c){if(!!c.parent){switch(c.kind){case 162:var $=c.parent;return $.kind===189?void 0:$.typeParameters;case 163:return c.parent.parameters;case 198:return c.parent.templateSpans;case 232:return c.parent.templateSpans;case 164:return c.parent.decorators;case 290:return c.parent.heritageClauses}var pr=c.parent;if(e.isJSDocTag(c))return e.isJSDocTypeLiteral(c.parent)?void 0:c.parent.tags;switch(pr.kind){case 181:case 257:return e.isTypeElement(c)?pr.members:void 0;case 186:case 187:return pr.types;case 183:case 203:case 349:case 268:case 272:return pr.elements;case 204:case 285:return pr.properties;case 207:case 208:return e.isTypeNode(c)?pr.typeArguments:pr.expression===c?void 0:pr.arguments;case 277:case 281:return e.isJsxChild(c)?pr.children:void 0;case 279:case 278:return e.isTypeNode(c)?pr.typeArguments:void 0;case 234:case 288:case 289:case 261:return pr.statements;case 262:return pr.clauses;case 256:case 225:return e.isClassElement(c)?pr.members:void 0;case 259:return e.isEnumMember(c)?pr.members:void 0;case 303:return pr.statements}}}e.getContainingNodeArray=Cc;function rg(c){if(!c.typeParameters){if(e.some(c.parameters,function(pr){return!Tl(pr)}))return!0;if(c.kind!==213){var $=e.firstOrUndefined(c.parameters);if(!($&&_f($)))return!0}}return!1}e.hasContextSensitiveParameters=rg;function Am(c){return c==="Infinity"||c==="-Infinity"||c==="NaN"}e.isInfinityOrNaNString=Am;function Pm(c){return c.kind===253&&c.parent.kind===291}e.isCatchClauseVariableDeclaration=Pm;function I1(c){var $=c.valueDeclaration&&a_(c.valueDeclaration);return!!$&&(e.isParameter($)||Pm($))}e.isParameterOrCatchClauseVariable=I1;function Rv(c){return c.kind===212||c.kind===213}e.isFunctionExpressionOrArrowFunction=Rv;function H_(c){return c.replace(/\$/gm,function(){return"\\$"})}e.escapeSnippetText=H_;function rh(c){return(+c).toString()===c}e.isNumericLiteralName=rh;function w1(c,$,pr,Yr){return e.isIdentifierText(c,$)?e.factory.createIdentifier(c):!Yr&&rh(c)&&+c>=0?e.factory.createNumericLiteral(+c):e.factory.createStringLiteral(c,!!pr)}e.createPropertyNameNodeForIdentifierOrLiteral=w1;function O1(c){return!!(c.flags&262144&&c.isThisType)}e.isThisTypeParameter=O1;function F1(c){var $=0,pr=0,Yr=0,ji=0,wt;(function(sn){sn[sn.BeforeNodeModules=0]="BeforeNodeModules",sn[sn.NodeModules=1]="NodeModules",sn[sn.Scope=2]="Scope",sn[sn.PackageContent=3]="PackageContent"})(wt||(wt={}));for(var Lt=0,Ea=0,vn=0;Ea>=0;)switch(Lt=Ea,Ea=c.indexOf("/",Lt+1),vn){case 0:c.indexOf(e.nodeModulesPathPart,Lt)===Lt&&($=Lt,pr=Ea,vn=1);break;case 1:case 2:vn===1&&c.charAt(Lt+1)==="@"?vn=2:(Yr=Ea,vn=3);break;case 3:c.indexOf(e.nodeModulesPathPart,Lt)===Lt?vn=1:vn=3;break}return ji=Lt,vn>1?{topLevelNodeModulesIndex:$,topLevelPackageNameIndex:pr,packageRootIndex:Yr,fileNameIndex:ji}:void 0}e.getNodeModulePathParts=F1})(Pe||(Pe={}));var Pe;(function(e){function a(){var O,L,W,N,Q;return{createBaseSourceFileNode:pe,createBaseIdentifierNode:F,createBasePrivateIdentifierNode:g,createBaseTokenNode:S,createBaseNode:H};function pe(se){return new(Q||(Q=e.objectAllocator.getSourceFileConstructor()))(se,-1,-1)}function F(se){return new(W||(W=e.objectAllocator.getIdentifierConstructor()))(se,-1,-1)}function g(se){return new(N||(N=e.objectAllocator.getPrivateIdentifierConstructor()))(se,-1,-1)}function S(se){return new(L||(L=e.objectAllocator.getTokenConstructor()))(se,-1,-1)}function H(se){return new(O||(O=e.objectAllocator.getNodeConstructor()))(se,-1,-1)}}e.createBaseNodeFactory=a})(Pe||(Pe={}));var Pe;(function(e){function a(O){var L,W;return{getParenthesizeLeftSideOfBinaryForOperator:N,getParenthesizeRightSideOfBinaryForOperator:Q,parenthesizeLeftSideOfBinary:H,parenthesizeRightSideOfBinary:se,parenthesizeExpressionOfComputedPropertyName:p,parenthesizeConditionOfConditionalExpression:C,parenthesizeBranchOfConditionalExpression:G,parenthesizeExpressionOfExportDefault:E,parenthesizeExpressionOfNew:ue,parenthesizeLeftSideOfAccess:B,parenthesizeOperandOfPostfixUnary:re,parenthesizeOperandOfPrefixUnary:M,parenthesizeExpressionsOfCommaDelimitedList:x,parenthesizeExpressionForDisallowedComma:ie,parenthesizeExpressionOfExpressionStatement:_e,parenthesizeConciseBodyOfArrowFunction:Y,parenthesizeMemberOfConditionalType:Z,parenthesizeMemberOfElementType:k,parenthesizeElementTypeOfArrayType:I,parenthesizeConstituentTypesOfUnionOrIntersectionType:ne,parenthesizeTypeArguments:A};function N(f){L||(L=new e.Map);var P=L.get(f);return P||(P=function(D){return H(f,D)},L.set(f,P)),P}function Q(f){W||(W=new e.Map);var P=W.get(f);return P||(P=function(D){return se(f,void 0,D)},W.set(f,P)),P}function pe(f,P,D,l){var _=e.getOperatorPrecedence(220,f),J=e.getOperatorAssociativity(220,f),w=e.skipPartiallyEmittedExpressions(P);if(!D&&P.kind===213&&_>3)return!0;var j=e.getExpressionPrecedence(w);switch(e.compareValues(j,_)){case-1:return!(!D&&J===1&&P.kind===223);case 1:return!1;case 0:if(D)return J===1;if(e.isBinaryExpression(w)&&w.operatorToken.kind===f){if(F(f))return!1;if(f===39){var U=l?g(l):0;if(e.isLiteralKind(U)&&U===g(w))return!1}}var z=e.getExpressionAssociativity(w);return z===0}}function F(f){return f===41||f===51||f===50||f===52}function g(f){if(f=e.skipPartiallyEmittedExpressions(f),e.isLiteralKind(f.kind))return f.kind;if(f.kind===220&&f.operatorToken.kind===39){if(f.cachedLiteralKind!==void 0)return f.cachedLiteralKind;var P=g(f.left),D=e.isLiteralKind(P)&&P===g(f.right)?P:0;return f.cachedLiteralKind=D,D}return 0}function S(f,P,D,l){var _=e.skipPartiallyEmittedExpressions(P);return _.kind===211?P:pe(f,P,D,l)?O.createParenthesizedExpression(P):P}function H(f,P){return S(f,P,!0)}function se(f,P,D){return S(f,D,!1,P)}function p(f){return e.isCommaSequence(f)?O.createParenthesizedExpression(f):f}function C(f){var P=e.getOperatorPrecedence(221,57),D=e.skipPartiallyEmittedExpressions(f),l=e.getExpressionPrecedence(D);return e.compareValues(l,P)!==1?O.createParenthesizedExpression(f):f}function G(f){var P=e.skipPartiallyEmittedExpressions(f);return e.isCommaSequence(P)?O.createParenthesizedExpression(f):f}function E(f){var P=e.skipPartiallyEmittedExpressions(f),D=e.isCommaSequence(P);if(!D)switch(e.getLeftmostExpression(P,!1).kind){case 225:case 212:D=!0}return D?O.createParenthesizedExpression(f):f}function ue(f){var P=e.getLeftmostExpression(f,!0);switch(P.kind){case 207:return O.createParenthesizedExpression(f);case 208:return P.arguments?f:O.createParenthesizedExpression(f)}return B(f)}function B(f){var P=e.skipPartiallyEmittedExpressions(f);return e.isLeftHandSideExpression(P)&&(P.kind!==208||P.arguments)?f:e.setTextRange(O.createParenthesizedExpression(f),f)}function re(f){return e.isLeftHandSideExpression(f)?f:e.setTextRange(O.createParenthesizedExpression(f),f)}function M(f){return e.isUnaryExpression(f)?f:e.setTextRange(O.createParenthesizedExpression(f),f)}function x(f){var P=e.sameMap(f,ie);return e.setTextRange(O.createNodeArray(P,f.hasTrailingComma),f)}function ie(f){var P=e.skipPartiallyEmittedExpressions(f),D=e.getExpressionPrecedence(P),l=e.getOperatorPrecedence(220,27);return D>l?f:e.setTextRange(O.createParenthesizedExpression(f),f)}function _e(f){var P=e.skipPartiallyEmittedExpressions(f);if(e.isCallExpression(P)){var D=P.expression,l=e.skipPartiallyEmittedExpressions(D).kind;if(l===212||l===213){var _=O.updateCallExpression(P,e.setTextRange(O.createParenthesizedExpression(D),D),P.typeArguments,P.arguments);return O.restoreOuterExpressions(f,_,8)}}var J=e.getLeftmostExpression(P,!1).kind;return J===204||J===212?e.setTextRange(O.createParenthesizedExpression(f),f):f}function Y(f){return!e.isBlock(f)&&(e.isCommaSequence(f)||e.getLeftmostExpression(f,!1).kind===204)?e.setTextRange(O.createParenthesizedExpression(f),f):f}function Z(f){return f.kind===188?O.createParenthesizedType(f):f}function k(f){switch(f.kind){case 186:case 187:case 178:case 179:return O.createParenthesizedType(f)}return Z(f)}function I(f){switch(f.kind){case 180:case 192:case 189:return O.createParenthesizedType(f)}return k(f)}function ne(f){return O.createNodeArray(e.sameMap(f,k))}function ee(f,P){return P===0&&e.isFunctionOrConstructorTypeNode(f)&&f.typeParameters?O.createParenthesizedType(f):f}function A(f){if(e.some(f))return O.createNodeArray(e.sameMap(f,ee))}}e.createParenthesizerRules=a,e.nullParenthesizerRules={getParenthesizeLeftSideOfBinaryForOperator:function(O){return e.identity},getParenthesizeRightSideOfBinaryForOperator:function(O){return e.identity},parenthesizeLeftSideOfBinary:function(O,L){return L},parenthesizeRightSideOfBinary:function(O,L,W){return W},parenthesizeExpressionOfComputedPropertyName:e.identity,parenthesizeConditionOfConditionalExpression:e.identity,parenthesizeBranchOfConditionalExpression:e.identity,parenthesizeExpressionOfExportDefault:e.identity,parenthesizeExpressionOfNew:function(O){return e.cast(O,e.isLeftHandSideExpression)},parenthesizeLeftSideOfAccess:function(O){return e.cast(O,e.isLeftHandSideExpression)},parenthesizeOperandOfPostfixUnary:function(O){return e.cast(O,e.isLeftHandSideExpression)},parenthesizeOperandOfPrefixUnary:function(O){return e.cast(O,e.isUnaryExpression)},parenthesizeExpressionsOfCommaDelimitedList:function(O){return e.cast(O,e.isNodeArray)},parenthesizeExpressionForDisallowedComma:e.identity,parenthesizeExpressionOfExpressionStatement:e.identity,parenthesizeConciseBodyOfArrowFunction:e.identity,parenthesizeMemberOfConditionalType:e.identity,parenthesizeMemberOfElementType:e.identity,parenthesizeElementTypeOfArrayType:e.identity,parenthesizeConstituentTypesOfUnionOrIntersectionType:function(O){return e.cast(O,e.isNodeArray)},parenthesizeTypeArguments:function(O){return O&&e.cast(O,e.isNodeArray)}}})(Pe||(Pe={}));var Pe;(function(e){function a(O){return{convertToFunctionBlock:L,convertToFunctionExpression:W,convertToArrayAssignmentElement:N,convertToObjectAssignmentElement:Q,convertToAssignmentPattern:pe,convertToObjectAssignmentPattern:F,convertToArrayAssignmentPattern:g,convertToAssignmentElementTarget:S};function L(H,se){if(e.isBlock(H))return H;var p=O.createReturnStatement(H);e.setTextRange(p,H);var C=O.createBlock([p],se);return e.setTextRange(C,H),C}function W(H){if(!H.body)return e.Debug.fail("Cannot convert a FunctionDeclaration without a body");var se=O.createFunctionExpression(H.modifiers,H.asteriskToken,H.name,H.typeParameters,H.parameters,H.type,H.body);return e.setOriginalNode(se,H),e.setTextRange(se,H),e.getStartsOnNewLine(H)&&e.setStartsOnNewLine(se,!0),se}function N(H){if(e.isBindingElement(H)){if(H.dotDotDotToken)return e.Debug.assertNode(H.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(O.createSpreadElement(H.name),H),H);var se=S(H.name);return H.initializer?e.setOriginalNode(e.setTextRange(O.createAssignment(se,H.initializer),H),H):se}return e.cast(H,e.isExpression)}function Q(H){if(e.isBindingElement(H)){if(H.dotDotDotToken)return e.Debug.assertNode(H.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(O.createSpreadAssignment(H.name),H),H);if(H.propertyName){var se=S(H.name);return e.setOriginalNode(e.setTextRange(O.createPropertyAssignment(H.propertyName,H.initializer?O.createAssignment(se,H.initializer):se),H),H)}return e.Debug.assertNode(H.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(O.createShorthandPropertyAssignment(H.name,H.initializer),H),H)}return e.cast(H,e.isObjectLiteralElementLike)}function pe(H){switch(H.kind){case 201:case 203:return g(H);case 200:case 204:return F(H)}}function F(H){return e.isObjectBindingPattern(H)?e.setOriginalNode(e.setTextRange(O.createObjectLiteralExpression(e.map(H.elements,Q)),H),H):e.cast(H,e.isObjectLiteralExpression)}function g(H){return e.isArrayBindingPattern(H)?e.setOriginalNode(e.setTextRange(O.createArrayLiteralExpression(e.map(H.elements,N)),H),H):e.cast(H,e.isArrayLiteralExpression)}function S(H){return e.isBindingPattern(H)?pe(H):e.cast(H,e.isExpression)}}e.createNodeConverters=a,e.nullNodeConverters={convertToFunctionBlock:e.notImplemented,convertToFunctionExpression:e.notImplemented,convertToArrayAssignmentElement:e.notImplemented,convertToObjectAssignmentElement:e.notImplemented,convertToAssignmentPattern:e.notImplemented,convertToObjectAssignmentPattern:e.notImplemented,convertToArrayAssignmentPattern:e.notImplemented,convertToAssignmentElementTarget:e.notImplemented}})(Pe||(Pe={}));var Pe;(function(e){var a=0,O;(function(ne){ne[ne.None=0]="None",ne[ne.NoParenthesizerRules=1]="NoParenthesizerRules",ne[ne.NoNodeConverters=2]="NoNodeConverters",ne[ne.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",ne[ne.NoOriginalNode=8]="NoOriginalNode"})(O=e.NodeFactoryFlags||(e.NodeFactoryFlags={}));function L(ne,ee){var A=ne&8?W:N,f=e.memoize(function(){return ne&1?e.nullParenthesizerRules:e.createParenthesizerRules(ve)}),P=e.memoize(function(){return ne&2?e.nullNodeConverters:e.createNodeConverters(ve)}),D=e.memoizeOne(function(d){return function(K,Ae){return Ba(K,d,Ae)}}),l=e.memoizeOne(function(d){return function(K){return ti(d,K)}}),_=e.memoizeOne(function(d){return function(K){return Zt(K,d)}}),J=e.memoizeOne(function(d){return function(){return nf(d)}}),w=e.memoizeOne(function(d){return function(K){return s_(d,K)}}),j=e.memoizeOne(function(d){return function(K,Ae){return Rf(d,K,Ae)}}),U=e.memoizeOne(function(d){return function(K,Ae){return ff(d,K,Ae)}}),z=e.memoizeOne(function(d){return function(K,Ae,tr){return _f(d,K,Ae,tr)}}),y=e.memoizeOne(function(d){return function(K,Ae,tr){return Vl(d,K,Ae,tr)}}),oe=e.memoizeOne(function(d){return function(K,Ae,tr,$r){return j_(d,K,Ae,tr,$r)}}),ve={get parenthesizer(){return f()},get converters(){return P()},createNodeArray:ce,createNumericLiteral:he,createBigIntLiteral:we,createStringLiteral:Se,createStringLiteralFromNode:ge,createRegularExpressionLiteral:Fe,createLiteralLikeNode:cr,createIdentifier:dr,updateIdentifier:Br,createTempVariable:Tr,createLoopVariable:n,createUniqueName:Er,getGeneratedNameForNode:br,createPrivateIdentifier:Pr,createToken:Le,createSuper:Xe,createThis:Cr,createNull:Lr,createTrue:Jr,createFalse:Rr,createModifier:ci,createModifiersFromModifierFlags:be,createQualifiedName:or,updateQualifiedName:Kr,createComputedPropertyName:ei,updateComputedPropertyName:li,createTypeParameterDeclaration:Si,updateTypeParameterDeclaration:qi,createParameterDeclaration:ft,updateParameterDeclaration:bt,createDecorator:aa,updateDecorator:sr,createPropertySignature:Ji,updatePropertySignature:di,createPropertyDeclaration:X,updatePropertyDeclaration:Ye,createMethodSignature:Be,updateMethodSignature:Qe,createMethodDeclaration:_r,updateMethodDeclaration:hr,createConstructorDeclaration:v,updateConstructorDeclaration:xe,createGetAccessorDeclaration:ze,updateGetAccessorDeclaration:Je,createSetAccessorDeclaration:Oe,updateSetAccessorDeclaration:Fr,createCallSignature:Xr,updateCallSignature:Or,createConstructSignature:We,updateConstructSignature:mr,createIndexSignature:Nr,updateIndexSignature:Ur,createClassStaticBlockDeclaration:Dr,updateClassStaticBlockDeclaration:Me,createTemplateLiteralTypeSpan:si,updateTemplateLiteralTypeSpan:mi,createKeywordTypeNode:Ti,createTypePredicateNode:hi,updateTypePredicateNode:ki,createTypeReferenceNode:Ui,updateTypeReferenceNode:zi,createFunctionTypeNode:ri,updateFunctionTypeNode:Gi,createConstructorTypeNode:Rt,updateConstructorTypeNode:ua,createTypeQueryNode:Ci,updateTypeQueryNode:Hi,createTypeLiteralNode:Yi,updateTypeLiteralNode:yt,createArrayTypeNode:gt,updateArrayTypeNode:oa,createTupleTypeNode:Bt,updateTupleTypeNode:Pi,createNamedTupleMember:Oi,updateNamedTupleMember:wi,createOptionalTypeNode:Qr,updateOptionalTypeNode:Ct,createRestTypeNode:tt,updateRestTypeNode:ta,createUnionTypeNode:qr,updateUnionTypeNode:bn,createIntersectionTypeNode:Rn,updateIntersectionTypeNode:Sn,createConditionalTypeNode:zn,updateConditionalTypeNode:Zn,createInferTypeNode:ho,updateInferTypeNode:Vo,createImportTypeNode:ro,updateImportTypeNode:Ko,createParenthesizedType:rs,updateParenthesizedType:rn,createThisTypeNode:Do,createTypeOperatorNode:io,updateTypeOperatorNode:pn,createIndexedAccessTypeNode:Qn,updateIndexedAccessTypeNode:wo,createMappedTypeNode:xo,updateMappedTypeNode:ds,createLiteralTypeNode:No,updateLiteralTypeNode:Ts,createTemplateLiteralType:Cn,updateTemplateLiteralType:go,createObjectBindingPattern:Ms,updateObjectBindingPattern:xr,createArrayBindingPattern:bi,updateArrayBindingPattern:ut,createBindingElement:Ht,updateBindingElement:Ka,createArrayLiteralExpression:Ke,updateArrayLiteralExpression:h,createObjectLiteralExpression:Ee,updateObjectLiteralExpression:Re,createPropertyAccessExpression:ne&4?function(d,K){return e.setEmitFlags(nr(d,K),131072)}:nr,updatePropertyAccessExpression:Gr,createPropertyAccessChain:ne&4?function(d,K,Ae){return e.setEmitFlags(_i(d,K,Ae),131072)}:_i,updatePropertyAccessChain:Ei,createElementAccessExpression:Ki,updateElementAccessExpression:Nt,createElementAccessChain:ca,updateElementAccessChain:Fa,createCallExpression:Ta,updateCallExpression:In,createCallChain:so,updateCallChain:as,createNewExpression:Ho,updateNewExpression:Ds,createTaggedTemplateExpression:Os,updateTaggedTemplateExpression:mc,createTypeAssertion:Hs,updateTypeAssertion:Mi,createParenthesizedExpression:$t,updateParenthesizedExpression:ga,createFunctionExpression:xn,updateFunctionExpression:yn,createArrowFunction:An,updateArrowFunction:Pa,createDeleteExpression:Mn,updateDeleteExpression:ao,createTypeOfExpression:co,updateTypeOfExpression:De,createVoidExpression:zr,updateVoidExpression:xi,createAwaitExpression:et,updateAwaitExpression:je,createPrefixUnaryExpression:ti,updatePrefixUnaryExpression:mt,createPostfixUnaryExpression:Zt,updatePostfixUnaryExpression:ln,createBinaryExpression:Ba,updateBinaryExpression:jr,createConditionalExpression:is,updateConditionalExpression:hc,createTemplateExpression:nc,updateTemplateExpression:ns,createTemplateHead:uu,createTemplateMiddle:Bc,createTemplateTail:Qu,createNoSubstitutionTemplateLiteral:uo,createTemplateLiteralLikeNode:rc,createYieldExpression:Xc,updateYieldExpression:Ru,createSpreadElement:Dc,updateSpreadElement:Yu,createClassExpression:lu,updateClassExpression:qa,createOmittedExpression:Bu,createExpressionWithTypeArguments:$u,updateExpressionWithTypeArguments:au,createAsExpression:Vr,updateAsExpression:fi,createNonNullExpression:Ni,updateNonNullExpression:rt,createNonNullChain:Tt,updateNonNullChain:Dt,createMetaProperty:jt,updateMetaProperty:na,createTemplateSpan:Za,updateTemplateSpan:ya,createSemicolonClassElement:ha,createBlock:Ja,updateBlock:Eo,createVariableStatement:Hn,updateVariableStatement:lo,createEmptyStatement:Kn,createExpressionStatement:Te,updateExpressionStatement:vr,createIfStatement:Sr,updateIfStatement:Di,createDoStatement:nt,updateDoStatement:_a,createWhileStatement:Na,updateWhileStatement:wn,createForStatement:no,updateForStatement:Go,createForInStatement:vo,updateForInStatement:Vn,createForOfStatement:to,updateForOfStatement:Jo,createContinueStatement:Xo,updateContinueStatement:Wr,createBreakStatement:Ws,updateBreakStatement:nu,createReturnStatement:Tu,updateReturnStatement:oc,createWithStatement:Qc,updateWithStatement:fu,createSwitchStatement:lp,updateSwitchStatement:bo,createLabeledStatement:w_,updateLabeledStatement:i_,createThrowStatement:Ls,updateThrowStatement:hl,createTryStatement:xu,updateTryStatement:tf,createDebuggerStatement:If,createVariableDeclaration:Yc,updateVariableDeclaration:Vs,createVariableDeclarationList:Zu,updateVariableDeclarationList:Ma,createFunctionDeclaration:Da,updateFunctionDeclaration:Ju,createClassDeclaration:Pc,updateClassDeclaration:fp,createInterfaceDeclaration:wf,updateInterfaceDeclaration:Xp,createTypeAliasDeclaration:os,updateTypeAliasDeclaration:el,createEnumDeclaration:Of,updateEnumDeclaration:O_,createModuleDeclaration:t_,updateModuleDeclaration:Nc,createModuleBlock:F_,updateModuleBlock:Ff,createCaseBlock:M_,updateCaseBlock:_p,createNamespaceExportDeclaration:Qp,updateNamespaceExportDeclaration:pp,createImportEqualsDeclaration:dp,updateImportEqualsDeclaration:gp,createImportDeclaration:Yp,updateImportDeclaration:$p,createImportClause:a_,updateImportClause:Cd,createAssertClause:mp,updateAssertClause:L_,createAssertEntry:rl,updateAssertEntry:ju,createNamespaceImport:_u,updateNamespaceImport:Eu,createNamespaceExport:Dl,updateNamespaceExport:Zp,createNamedImports:Wl,updateNamedImports:ed,createImportSpecifier:n_,updateImportSpecifier:vp,createExportAssignment:o_,updateExportAssignment:R_,createExportDeclaration:af,updateExportDeclaration:yp,createNamedExports:B_,updateNamedExports:kd,createExportSpecifier:Mf,updateExportSpecifier:hp,createMissingDeclaration:ic,createExternalModuleReference:Jc,updateExternalModuleReference:Lf,get createJSDocAllType(){return J(310)},get createJSDocUnknownType(){return J(311)},get createJSDocNonNullableType(){return w(313)},get updateJSDocNonNullableType(){return j(313)},get createJSDocNullableType(){return w(312)},get updateJSDocNullableType(){return j(312)},get createJSDocOptionalType(){return w(314)},get updateJSDocOptionalType(){return j(314)},get createJSDocVariadicType(){return w(316)},get updateJSDocVariadicType(){return j(316)},get createJSDocNamepathType(){return w(317)},get updateJSDocNamepathType(){return j(317)},createJSDocFunctionType:c_,updateJSDocFunctionType:Cu,createJSDocTypeLiteral:Tc,updateJSDocTypeLiteral:pu,createJSDocTypeExpression:du,updateJSDocTypeExpression:bl,createJSDocSignature:of,updateJSDocSignature:il,createJSDocTemplateTag:Ro,updateJSDocTemplateTag:jc,createJSDocTypedefTag:Bf,updateJSDocTypedefTag:gu,createJSDocParameterTag:Jf,updateJSDocParameterTag:jf,createJSDocPropertyTag:sf,updateJSDocPropertyTag:Kt,createJSDocCallbackTag:ts,updateJSDocCallbackTag:mn,createJSDocAugmentsTag:Sl,updateJSDocAugmentsTag:Ps,createJSDocImplementsTag:tl,updateJSDocImplementsTag:lf,createJSDocSeeTag:Ut,updateJSDocSeeTag:Dp,createJSDocNameReference:cf,updateJSDocNameReference:ko,createJSDocMemberName:xc,updateJSDocMemberName:ou,createJSDocLink:uf,updateJSDocLink:bp,createJSDocLinkCode:ql,updateJSDocLinkCode:Fs,createJSDocLinkPlain:J_,updateJSDocLinkPlain:su,get createJSDocTypeTag(){return y(341)},get updateJSDocTypeTag(){return oe(341)},get createJSDocReturnTag(){return y(339)},get updateJSDocReturnTag(){return oe(339)},get createJSDocThisTag(){return y(340)},get updateJSDocThisTag(){return oe(340)},get createJSDocEnumTag(){return y(337)},get updateJSDocEnumTag(){return oe(337)},get createJSDocAuthorTag(){return U(328)},get updateJSDocAuthorTag(){return z(328)},get createJSDocClassTag(){return U(330)},get updateJSDocClassTag(){return z(330)},get createJSDocPublicTag(){return U(331)},get updateJSDocPublicTag(){return z(331)},get createJSDocPrivateTag(){return U(332)},get updateJSDocPrivateTag(){return z(332)},get createJSDocProtectedTag(){return U(333)},get updateJSDocProtectedTag(){return z(333)},get createJSDocReadonlyTag(){return U(334)},get updateJSDocReadonlyTag(){return z(334)},get createJSDocOverrideTag(){return U(335)},get updateJSDocOverrideTag(){return z(335)},get createJSDocDeprecatedTag(){return U(329)},get updateJSDocDeprecatedTag(){return z(329)},createJSDocUnknownTag:Uf,updateJSDocUnknownTag:Sp,createJSDocText:Tl,updateJSDocText:Ns,createJSDocComment:al,updateJSDocComment:U_,createJsxElement:Kl,updateJsxElement:Wn,createJsxSelfClosingElement:It,updateJsxSelfClosingElement:Rs,createJsxOpeningElement:u_,updateJsxOpeningElement:xs,createJsxClosingElement:Tp,updateJsxClosingElement:mu,createJsxFragment:zf,createJsxText:$c,updateJsxText:Wf,createJsxOpeningFragment:Gl,createJsxJsxClosingFragment:bs,updateJsxFragment:Uu,createJsxAttribute:zu,updateJsxAttribute:ss,createJsxAttributes:Uc,updateJsxAttributes:Ad,createJsxSpreadAttribute:vu,updateJsxSpreadAttribute:pf,createJsxExpression:df,updateJsxExpression:xp,createCaseClause:l_,updateCaseClause:Ic,createDefaultClause:_s,updateDefaultClause:xl,createHeritageClause:gf,updateHeritageClause:Hl,createCatchClause:Xl,updateCatchClause:Ep,createPropertyAssignment:z_,updatePropertyAssignment:Cp,createShorthandPropertyAssignment:Zc,updateShorthandPropertyAssignment:mf,createSpreadAssignment:Ql,updateSpreadAssignment:f_,createEnumMember:qf,updateEnumMember:Cl,createSourceFile:W_,updateSourceFile:Ga,createBundle:kl,updateBundle:ht,createUnparsedSource:__,createUnparsedPrologue:ol,createUnparsedPrepend:q_,createUnparsedTextLike:rd,createUnparsedSyntheticReference:Pd,createInputFiles:Al,createSyntheticExpression:id,createSyntaxList:p_,createNotEmittedStatement:Nd,createPartiallyEmittedExpression:V_,updatePartiallyEmittedExpression:yu,createCommaListExpression:sl,updateCommaListExpression:sc,createEndOfDeclarationMarker:Vf,createMergeDeclarationMarker:ku,createSyntheticReferenceExpression:vf,updateSyntheticReferenceExpression:td,cloneNode:eu,get createComma(){return D(27)},get createAssignment(){return D(63)},get createLogicalOr(){return D(56)},get createLogicalAnd(){return D(55)},get createBitwiseOr(){return D(51)},get createBitwiseXor(){return D(52)},get createBitwiseAnd(){return D(50)},get createStrictEquality(){return D(36)},get createStrictInequality(){return D(37)},get createEquality(){return D(34)},get createInequality(){return D(35)},get createLessThan(){return D(29)},get createLessThanEquals(){return D(32)},get createGreaterThan(){return D(31)},get createGreaterThanEquals(){return D(33)},get createLeftShift(){return D(47)},get createRightShift(){return D(48)},get createUnsignedRightShift(){return D(49)},get createAdd(){return D(39)},get createSubtract(){return D(40)},get createMultiply(){return D(41)},get createDivide(){return D(43)},get createModulo(){return D(44)},get createExponent(){return D(42)},get createPrefixPlus(){return l(39)},get createPrefixMinus(){return l(40)},get createPrefixIncrement(){return l(45)},get createPrefixDecrement(){return l(46)},get createBitwiseNot(){return l(54)},get createLogicalNot(){return l(53)},get createPostfixIncrement(){return _(45)},get createPostfixDecrement(){return _(46)},createImmediatelyInvokedFunctionExpression:b,createImmediatelyInvokedArrowFunction:rr,createVoidZero:ai,createExportDefault:Wi,createExternalModuleExport:At,createTypeCheck:ra,createMethodCall:La,createGlobalMethodCall:jo,createFunctionBindCall:fn,createFunctionCallCall:Bo,createFunctionApplyCall:Yo,createArraySliceCall:cc,createArrayConcatCall:qs,createObjectDefinePropertyCall:uc,createReflectGetCall:hu,createReflectSetCall:$l,createPropertyDescriptor:Au,createCallBinding:kr,createAssignmentTargetWrapper:Hr,inlineExpressions:vi,getInternalName:ot,getLocalName:zt,getExportName:la,getDeclarationName:ja,getNamespaceMemberName:Oa,getExternalModuleOrNamespaceExportName:eo,restoreOuterExpressions:Ec,restoreEnclosingLabel:Zl,createUseStrictPrologue:es,copyPrologue:$o,copyStandardPrologue:Es,copyCustomPrologue:vc,ensureUseStrict:lc,liftToBlock:cl,mergeLexicalEnvironment:yf,updateModifiers:g_};return ve;function ce(d,K){if(d===void 0||d===e.emptyArray)d=[];else if(e.isNodeArray(d)){if(K===void 0||d.hasTrailingComma===K)return d.transformFlags===void 0&&C(d),e.Debug.attachNodeArrayDebugInfo(d),d;var Ae=d.slice();return Ae.pos=d.pos,Ae.end=d.end,Ae.hasTrailingComma=K,Ae.transformFlags=d.transformFlags,e.Debug.attachNodeArrayDebugInfo(Ae),Ae}var tr=d.length,$r=tr>=1&&tr<=4?d.slice():d;return e.setTextRangePosEnd($r,-1,-1),$r.hasTrailingComma=!!K,C($r),e.Debug.attachNodeArrayDebugInfo($r),$r}function m(d){return ee.createBaseNode(d)}function de(d,K,Ae){var tr=m(d);return tr.decorators=wc(K),tr.modifiers=wc(Ae),tr.transformFlags|=p(tr.decorators)|p(tr.modifiers),tr.symbol=void 0,tr.localSymbol=void 0,tr.locals=void 0,tr.nextContainer=void 0,tr}function ae(d,K,Ae,tr){var $r=de(d,K,Ae);if(tr=bc(tr),$r.name=tr,tr)switch($r.kind){case 168:case 171:case 172:case 166:case 294:if(e.isIdentifier(tr)){$r.transformFlags|=S(tr);break}default:$r.transformFlags|=se(tr);break}return $r}function V(d,K,Ae,tr,$r){var Zi=ae(d,K,Ae,tr);return Zi.typeParameters=wc($r),Zi.transformFlags|=p(Zi.typeParameters),$r&&(Zi.transformFlags|=1),Zi}function le(d,K,Ae,tr,$r,Zi,dt){var _n=V(d,K,Ae,tr,$r);return _n.parameters=ce(Zi),_n.type=dt,_n.transformFlags|=p(_n.parameters)|se(_n.type),dt&&(_n.transformFlags|=1),_n}function ke(d,K){return K.typeArguments&&(d.typeArguments=K.typeArguments),A(d,K)}function Ue(d,K,Ae,tr,$r,Zi,dt,_n){var Zo=le(d,K,Ae,tr,$r,Zi,dt);return Zo.body=_n,Zo.transformFlags|=se(Zo.body)&-16777217,_n||(Zo.transformFlags|=1),Zo}function He(d,K){return K.exclamationToken&&(d.exclamationToken=K.exclamationToken),K.typeArguments&&(d.typeArguments=K.typeArguments),ke(d,K)}function ar(d,K,Ae,tr,$r,Zi){var dt=V(d,K,Ae,tr,$r);return dt.heritageClauses=wc(Zi),dt.transformFlags|=p(dt.heritageClauses),dt}function gr(d,K,Ae,tr,$r,Zi,dt){var _n=ar(d,K,Ae,tr,$r,Zi);return _n.members=ce(dt),_n.transformFlags|=p(_n.members),_n}function me(d,K,Ae,tr,$r){var Zi=ae(d,K,Ae,tr);return Zi.initializer=$r,Zi.transformFlags|=se(Zi.initializer),Zi}function Ge(d,K,Ae,tr,$r,Zi){var dt=me(d,K,Ae,tr,Zi);return dt.type=$r,dt.transformFlags|=se($r),$r&&(dt.transformFlags|=1),dt}function er(d,K){var Ae=Ce(d);return Ae.text=K,Ae}function he(d,K){K===void 0&&(K=0);var Ae=er(8,typeof d=="number"?d+"":d);return Ae.numericLiteralFlags=K,K&384&&(Ae.transformFlags|=1024),Ae}function we(d){var K=er(9,typeof d=="string"?d:e.pseudoBigIntToString(d)+"n");return K.transformFlags|=4,K}function ye(d,K){var Ae=er(10,d);return Ae.singleQuote=K,Ae}function Se(d,K,Ae){var tr=ye(d,K);return tr.hasExtendedUnicodeEscape=Ae,Ae&&(tr.transformFlags|=1024),tr}function ge(d){var K=ye(e.getTextOfIdentifierOrLiteral(d),void 0);return K.textSourceNode=d,K}function Fe(d){var K=er(13,d);return K}function cr(d,K){switch(d){case 8:return he(K,0);case 9:return we(K);case 10:return Se(K,void 0);case 11:return $c(K,!1);case 12:return $c(K,!0);case 13:return Fe(K);case 14:return rc(d,K,void 0,0)}}function ur(d,K){K===void 0&&d&&(K=e.stringToToken(d)),K===79&&(K=void 0);var Ae=ee.createBaseIdentifierNode(79);return Ae.originalKeywordKind=K,Ae.escapedText=e.escapeLeadingUnderscores(d),Ae}function Ir(d,K){var Ae=ur(d,void 0);return Ae.autoGenerateFlags=K,Ae.autoGenerateId=a,a++,Ae}function dr(d,K,Ae){var tr=ur(d,Ae);return K&&(tr.typeArguments=ce(K)),tr.originalKeywordKind===132&&(tr.transformFlags|=16777216),tr}function Br(d,K){return d.typeArguments!==K?A(dr(e.idText(d),K),d):d}function Tr(d,K){var Ae=1;K&&(Ae|=8);var tr=Ir("",Ae);return d&&d(tr),tr}function n(d){var K=2;return d&&(K|=8),Ir("",K)}function Er(d,K){return K===void 0&&(K=0),e.Debug.assert(!(K&7),"Argument out of range: flags"),e.Debug.assert((K&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),Ir(d,3|K)}function br(d,K){K===void 0&&(K=0),e.Debug.assert(!(K&7),"Argument out of range: flags");var Ae=Ir(d&&e.isIdentifier(d)?e.idText(d):"",4|K);return Ae.original=d,Ae}function Pr(d){e.startsWith(d,"#")||e.Debug.fail("First character of private identifier must be #: "+d);var K=ee.createBasePrivateIdentifierNode(80);return K.escapedText=e.escapeLeadingUnderscores(d),K.transformFlags|=8388608,K}function Ce(d){return ee.createBaseTokenNode(d)}function Le(d){e.Debug.assert(d>=0&&d<=159,"Invalid token"),e.Debug.assert(d<=14||d>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),e.Debug.assert(d<=8||d>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),e.Debug.assert(d!==79,"Invalid token. Use 'createIdentifier' to create identifiers");var K=Ce(d),Ae=0;switch(d){case 131:Ae=384;break;case 123:case 121:case 122:case 144:case 126:case 135:case 85:case 130:case 146:case 157:case 143:case 147:case 158:case 149:case 133:case 150:case 114:case 154:case 152:Ae=1;break;case 106:Ae=33555456;break;case 124:Ae=1024;break;case 108:Ae=8192;break}return Ae&&(K.transformFlags|=Ae),K}function Xe(){return Le(106)}function Cr(){return Le(108)}function Lr(){return Le(104)}function Jr(){return Le(110)}function Rr(){return Le(95)}function ci(d){return Le(d)}function be(d){var K=[];return d&1&&K.push(ci(93)),d&2&&K.push(ci(135)),d&512&&K.push(ci(88)),d&2048&&K.push(ci(85)),d&4&&K.push(ci(123)),d&8&&K.push(ci(121)),d&16&&K.push(ci(122)),d&128&&K.push(ci(126)),d&32&&K.push(ci(124)),d&16384&&K.push(ci(158)),d&64&&K.push(ci(144)),d&256&&K.push(ci(131)),K.length?K:void 0}function or(d,K){var Ae=m(160);return Ae.left=d,Ae.right=bc(K),Ae.transformFlags|=se(Ae.left)|S(Ae.right),Ae}function Kr(d,K,Ae){return d.left!==K||d.right!==Ae?A(or(K,Ae),d):d}function ei(d){var K=m(161);return K.expression=f().parenthesizeExpressionOfComputedPropertyName(d),K.transformFlags|=se(K.expression)|1024|65536,K}function li(d,K){return d.expression!==K?A(ei(K),d):d}function Si(d,K,Ae){var tr=ae(162,void 0,void 0,d);return tr.constraint=K,tr.default=Ae,tr.transformFlags=1,tr}function qi(d,K,Ae,tr){return d.name!==K||d.constraint!==Ae||d.default!==tr?A(Si(K,Ae,tr),d):d}function ft(d,K,Ae,tr,$r,Zi,dt){var _n=Ge(163,d,K,tr,Zi,dt&&f().parenthesizeExpressionForDisallowedComma(dt));return _n.dotDotDotToken=Ae,_n.questionToken=$r,e.isThisIdentifier(_n.name)?_n.transformFlags=1:(_n.transformFlags|=se(_n.dotDotDotToken)|se(_n.questionToken),$r&&(_n.transformFlags|=1),e.modifiersToFlags(_n.modifiers)&16476&&(_n.transformFlags|=4096),(dt||Ae)&&(_n.transformFlags|=1024)),_n}function bt(d,K,Ae,tr,$r,Zi,dt,_n){return d.decorators!==K||d.modifiers!==Ae||d.dotDotDotToken!==tr||d.name!==$r||d.questionToken!==Zi||d.type!==dt||d.initializer!==_n?A(ft(K,Ae,tr,$r,Zi,dt,_n),d):d}function aa(d){var K=m(164);return K.expression=f().parenthesizeLeftSideOfAccess(d),K.transformFlags|=se(K.expression)|1|4096,K}function sr(d,K){return d.expression!==K?A(aa(K),d):d}function Ji(d,K,Ae,tr){var $r=ae(165,void 0,d,K);return $r.type=tr,$r.questionToken=Ae,$r.transformFlags=1,$r}function di(d,K,Ae,tr,$r){return d.modifiers!==K||d.name!==Ae||d.questionToken!==tr||d.type!==$r?A(Ji(K,Ae,tr,$r),d):d}function X(d,K,Ae,tr,$r,Zi){var dt=Ge(166,d,K,Ae,$r,Zi);return dt.questionToken=tr&&e.isQuestionToken(tr)?tr:void 0,dt.exclamationToken=tr&&e.isExclamationToken(tr)?tr:void 0,dt.transformFlags|=se(dt.questionToken)|se(dt.exclamationToken)|8388608,(e.isComputedPropertyName(dt.name)||e.hasStaticModifier(dt)&&dt.initializer)&&(dt.transformFlags|=4096),(tr||e.modifiersToFlags(dt.modifiers)&2)&&(dt.transformFlags|=1),dt}function Ye(d,K,Ae,tr,$r,Zi,dt){return d.decorators!==K||d.modifiers!==Ae||d.name!==tr||d.questionToken!==($r!==void 0&&e.isQuestionToken($r)?$r:void 0)||d.exclamationToken!==($r!==void 0&&e.isExclamationToken($r)?$r:void 0)||d.type!==Zi||d.initializer!==dt?A(X(K,Ae,tr,$r,Zi,dt),d):d}function Be(d,K,Ae,tr,$r,Zi){var dt=le(167,void 0,d,K,tr,$r,Zi);return dt.questionToken=Ae,dt.transformFlags=1,dt}function Qe(d,K,Ae,tr,$r,Zi,dt){return d.modifiers!==K||d.name!==Ae||d.questionToken!==tr||d.typeParameters!==$r||d.parameters!==Zi||d.type!==dt?ke(Be(K,Ae,tr,$r,Zi,dt),d):d}function _r(d,K,Ae,tr,$r,Zi,dt,_n,Zo){var Bs=Ue(168,d,K,tr,Zi,dt,_n,Zo);return Bs.asteriskToken=Ae,Bs.questionToken=$r,Bs.transformFlags|=se(Bs.asteriskToken)|se(Bs.questionToken)|1024,$r&&(Bs.transformFlags|=1),e.modifiersToFlags(Bs.modifiers)&256?Ae?Bs.transformFlags|=128:Bs.transformFlags|=256:Ae&&(Bs.transformFlags|=2048),Bs}function hr(d,K,Ae,tr,$r,Zi,dt,_n,Zo,Bs){return d.decorators!==K||d.modifiers!==Ae||d.asteriskToken!==tr||d.name!==$r||d.questionToken!==Zi||d.typeParameters!==dt||d.parameters!==_n||d.type!==Zo||d.body!==Bs?He(_r(K,Ae,tr,$r,Zi,dt,_n,Zo,Bs),d):d}function Dr(d,K,Ae){var tr=V(169,d,K,void 0,void 0);return tr.body=Ae,tr.transformFlags=se(Ae)|8388608,tr}function Me(d,K,Ae,tr){return d.decorators!==K||d.modifier!==Ae||d.body!==tr?A(Dr(K,Ae,tr),d):d}function v(d,K,Ae,tr){var $r=Ue(170,d,K,void 0,void 0,Ae,void 0,tr);return $r.transformFlags|=1024,$r}function xe(d,K,Ae,tr,$r){return d.decorators!==K||d.modifiers!==Ae||d.parameters!==tr||d.body!==$r?He(v(K,Ae,tr,$r),d):d}function ze(d,K,Ae,tr,$r,Zi){return Ue(171,d,K,Ae,void 0,tr,$r,Zi)}function Je(d,K,Ae,tr,$r,Zi,dt){return d.decorators!==K||d.modifiers!==Ae||d.name!==tr||d.parameters!==$r||d.type!==Zi||d.body!==dt?He(ze(K,Ae,tr,$r,Zi,dt),d):d}function Oe(d,K,Ae,tr,$r){return Ue(172,d,K,Ae,void 0,tr,void 0,$r)}function Fr(d,K,Ae,tr,$r,Zi){return d.decorators!==K||d.modifiers!==Ae||d.name!==tr||d.parameters!==$r||d.body!==Zi?He(Oe(K,Ae,tr,$r,Zi),d):d}function Xr(d,K,Ae){var tr=le(173,void 0,void 0,void 0,d,K,Ae);return tr.transformFlags=1,tr}function Or(d,K,Ae,tr){return d.typeParameters!==K||d.parameters!==Ae||d.type!==tr?ke(Xr(K,Ae,tr),d):d}function We(d,K,Ae){var tr=le(174,void 0,void 0,void 0,d,K,Ae);return tr.transformFlags=1,tr}function mr(d,K,Ae,tr){return d.typeParameters!==K||d.parameters!==Ae||d.type!==tr?ke(We(K,Ae,tr),d):d}function Nr(d,K,Ae,tr){var $r=le(175,d,K,void 0,void 0,Ae,tr);return $r.transformFlags=1,$r}function Ur(d,K,Ae,tr,$r){return d.parameters!==tr||d.type!==$r||d.decorators!==K||d.modifiers!==Ae?ke(Nr(K,Ae,tr,$r),d):d}function si(d,K){var Ae=m(198);return Ae.type=d,Ae.literal=K,Ae.transformFlags=1,Ae}function mi(d,K,Ae){return d.type!==K||d.literal!==Ae?A(si(K,Ae),d):d}function Ti(d){return Le(d)}function hi(d,K,Ae){var tr=m(176);return tr.assertsModifier=d,tr.parameterName=bc(K),tr.type=Ae,tr.transformFlags=1,tr}function ki(d,K,Ae,tr){return d.assertsModifier!==K||d.parameterName!==Ae||d.type!==tr?A(hi(K,Ae,tr),d):d}function Ui(d,K){var Ae=m(177);return Ae.typeName=bc(d),Ae.typeArguments=K&&f().parenthesizeTypeArguments(ce(K)),Ae.transformFlags=1,Ae}function zi(d,K,Ae){return d.typeName!==K||d.typeArguments!==Ae?A(Ui(K,Ae),d):d}function ri(d,K,Ae){var tr=le(178,void 0,void 0,void 0,d,K,Ae);return tr.transformFlags=1,tr}function Gi(d,K,Ae,tr){return d.typeParameters!==K||d.parameters!==Ae||d.type!==tr?ke(ri(K,Ae,tr),d):d}function Rt(){for(var d=[],K=0;K<arguments.length;K++)d[K]=arguments[K];return d.length===4?pa.apply(void 0,d):d.length===3?xt.apply(void 0,d):e.Debug.fail("Incorrect number of arguments specified.")}function pa(d,K,Ae,tr){var $r=le(179,void 0,d,void 0,K,Ae,tr);return $r.transformFlags=1,$r}function xt(d,K,Ae){return pa(void 0,d,K,Ae)}function ua(){for(var d=[],K=0;K<arguments.length;K++)d[K]=arguments[K];return d.length===5?Vt.apply(void 0,d):d.length===4?St.apply(void 0,d):e.Debug.fail("Incorrect number of arguments specified.")}function Vt(d,K,Ae,tr,$r){return d.modifiers!==K||d.typeParameters!==Ae||d.parameters!==tr||d.type!==$r?ke(Rt(K,Ae,tr,$r),d):d}function St(d,K,Ae,tr){return Vt(d,d.modifiers,K,Ae,tr)}function Ci(d){var K=m(180);return K.exprName=d,K.transformFlags=1,K}function Hi(d,K){return d.exprName!==K?A(Ci(K),d):d}function Yi(d){var K=m(181);return K.members=ce(d),K.transformFlags=1,K}function yt(d,K){return d.members!==K?A(Yi(K),d):d}function gt(d){var K=m(182);return K.elementType=f().parenthesizeElementTypeOfArrayType(d),K.transformFlags=1,K}function oa(d,K){return d.elementType!==K?A(gt(K),d):d}function Bt(d){var K=m(183);return K.elements=ce(d),K.transformFlags=1,K}function Pi(d,K){return d.elements!==K?A(Bt(K),d):d}function Oi(d,K,Ae,tr){var $r=m(196);return $r.dotDotDotToken=d,$r.name=K,$r.questionToken=Ae,$r.type=tr,$r.transformFlags=1,$r}function wi(d,K,Ae,tr,$r){return d.dotDotDotToken!==K||d.name!==Ae||d.questionToken!==tr||d.type!==$r?A(Oi(K,Ae,tr,$r),d):d}function Qr(d){var K=m(184);return K.type=f().parenthesizeElementTypeOfArrayType(d),K.transformFlags=1,K}function Ct(d,K){return d.type!==K?A(Qr(K),d):d}function tt(d){var K=m(185);return K.type=d,K.transformFlags=1,K}function ta(d,K){return d.type!==K?A(tt(K),d):d}function Xa(d,K){var Ae=m(d);return Ae.types=f().parenthesizeConstituentTypesOfUnionOrIntersectionType(K),Ae.transformFlags=1,Ae}function on(d,K){return d.types!==K?A(Xa(d.kind,K),d):d}function qr(d){return Xa(186,d)}function bn(d,K){return on(d,K)}function Rn(d){return Xa(187,d)}function Sn(d,K){return on(d,K)}function zn(d,K,Ae,tr){var $r=m(188);return $r.checkType=f().parenthesizeMemberOfConditionalType(d),$r.extendsType=f().parenthesizeMemberOfConditionalType(K),$r.trueType=Ae,$r.falseType=tr,$r.transformFlags=1,$r}function Zn(d,K,Ae,tr,$r){return d.checkType!==K||d.extendsType!==Ae||d.trueType!==tr||d.falseType!==$r?A(zn(K,Ae,tr,$r),d):d}function ho(d){var K=m(189);return K.typeParameter=d,K.transformFlags=1,K}function Vo(d,K){return d.typeParameter!==K?A(ho(K),d):d}function Cn(d,K){var Ae=m(197);return Ae.head=d,Ae.templateSpans=ce(K),Ae.transformFlags=1,Ae}function go(d,K,Ae){return d.head!==K||d.templateSpans!==Ae?A(Cn(K,Ae),d):d}function ro(d,K,Ae,tr){tr===void 0&&(tr=!1);var $r=m(199);return $r.argument=d,$r.qualifier=K,$r.typeArguments=Ae&&f().parenthesizeTypeArguments(Ae),$r.isTypeOf=tr,$r.transformFlags=1,$r}function Ko(d,K,Ae,tr,$r){return $r===void 0&&($r=d.isTypeOf),d.argument!==K||d.qualifier!==Ae||d.typeArguments!==tr||d.isTypeOf!==$r?A(ro(K,Ae,tr,$r),d):d}function rs(d){var K=m(190);return K.type=d,K.transformFlags=1,K}function rn(d,K){return d.type!==K?A(rs(K),d):d}function Do(){var d=m(191);return d.transformFlags=1,d}function io(d,K){var Ae=m(192);return Ae.operator=d,Ae.type=f().parenthesizeMemberOfElementType(K),Ae.transformFlags=1,Ae}function pn(d,K){return d.type!==K?A(io(d.operator,K),d):d}function Qn(d,K){var Ae=m(193);return Ae.objectType=f().parenthesizeMemberOfElementType(d),Ae.indexType=K,Ae.transformFlags=1,Ae}function wo(d,K,Ae){return d.objectType!==K||d.indexType!==Ae?A(Qn(K,Ae),d):d}function xo(d,K,Ae,tr,$r,Zi){var dt=m(194);return dt.readonlyToken=d,dt.typeParameter=K,dt.nameType=Ae,dt.questionToken=tr,dt.type=$r,dt.members=Zi&&ce(Zi),dt.transformFlags=1,dt}function ds(d,K,Ae,tr,$r,Zi,dt){return d.readonlyToken!==K||d.typeParameter!==Ae||d.nameType!==tr||d.questionToken!==$r||d.type!==Zi||d.members!==dt?A(xo(K,Ae,tr,$r,Zi,dt),d):d}function No(d){var K=m(195);return K.literal=d,K.transformFlags=1,K}function Ts(d,K){return d.literal!==K?A(No(K),d):d}function Ms(d){var K=m(200);return K.elements=ce(d),K.transformFlags|=p(K.elements)|1024|262144,K.transformFlags&16384&&(K.transformFlags|=32896),K}function xr(d,K){return d.elements!==K?A(Ms(K),d):d}function bi(d){var K=m(201);return K.elements=ce(d),K.transformFlags|=p(K.elements)|1024|262144,K}function ut(d,K){return d.elements!==K?A(bi(K),d):d}function Ht(d,K,Ae,tr){var $r=me(202,void 0,void 0,Ae,tr&&f().parenthesizeExpressionForDisallowedComma(tr));return $r.propertyName=bc(K),$r.dotDotDotToken=d,$r.transformFlags|=se($r.dotDotDotToken)|1024,$r.propertyName&&($r.transformFlags|=e.isIdentifier($r.propertyName)?S($r.propertyName):se($r.propertyName)),d&&($r.transformFlags|=16384),$r}function Ka(d,K,Ae,tr,$r){return d.propertyName!==Ae||d.dotDotDotToken!==K||d.name!==tr||d.initializer!==$r?A(Ht(K,Ae,tr,$r),d):d}function an(d){var K=m(d);return K}function Ke(d,K){var Ae=an(203),tr=d&&e.lastOrUndefined(d),$r=ce(d,tr&&e.isOmittedExpression(tr)?!0:void 0);return Ae.elements=f().parenthesizeExpressionsOfCommaDelimitedList($r),Ae.multiLine=K,Ae.transformFlags|=p(Ae.elements),Ae}function h(d,K){return d.elements!==K?A(Ke(K,d.multiLine),d):d}function Ee(d,K){var Ae=an(204);return Ae.properties=ce(d),Ae.multiLine=K,Ae.transformFlags|=p(Ae.properties),Ae}function Re(d,K){return d.properties!==K?A(Ee(K,d.multiLine),d):d}function nr(d,K){var Ae=an(205);return Ae.expression=f().parenthesizeLeftSideOfAccess(d),Ae.name=bc(K),Ae.transformFlags=se(Ae.expression)|(e.isIdentifier(Ae.name)?S(Ae.name):se(Ae.name)),e.isSuperKeyword(d)&&(Ae.transformFlags|=384),Ae}function Gr(d,K,Ae){return e.isPropertyAccessChain(d)?Ei(d,K,d.questionDotToken,e.cast(Ae,e.isIdentifier)):d.expression!==K||d.name!==Ae?A(nr(K,Ae),d):d}function _i(d,K,Ae){var tr=an(205);return tr.flags|=32,tr.expression=f().parenthesizeLeftSideOfAccess(d),tr.questionDotToken=K,tr.name=bc(Ae),tr.transformFlags|=32|se(tr.expression)|se(tr.questionDotToken)|(e.isIdentifier(tr.name)?S(tr.name):se(tr.name)),tr}function Ei(d,K,Ae,tr){return e.Debug.assert(!!(d.flags&32),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),d.expression!==K||d.questionDotToken!==Ae||d.name!==tr?A(_i(K,Ae,tr),d):d}function Ki(d,K){var Ae=an(206);return Ae.expression=f().parenthesizeLeftSideOfAccess(d),Ae.argumentExpression=ru(K),Ae.transformFlags|=se(Ae.expression)|se(Ae.argumentExpression),e.isSuperKeyword(d)&&(Ae.transformFlags|=384),Ae}function Nt(d,K,Ae){return e.isElementAccessChain(d)?Fa(d,K,d.questionDotToken,Ae):d.expression!==K||d.argumentExpression!==Ae?A(Ki(K,Ae),d):d}function ca(d,K,Ae){var tr=an(206);return tr.flags|=32,tr.expression=f().parenthesizeLeftSideOfAccess(d),tr.questionDotToken=K,tr.argumentExpression=ru(Ae),tr.transformFlags|=se(tr.expression)|se(tr.questionDotToken)|se(tr.argumentExpression)|32,tr}function Fa(d,K,Ae,tr){return e.Debug.assert(!!(d.flags&32),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),d.expression!==K||d.questionDotToken!==Ae||d.argumentExpression!==tr?A(ca(K,Ae,tr),d):d}function Ta(d,K,Ae){var tr=an(207);return tr.expression=f().parenthesizeLeftSideOfAccess(d),tr.typeArguments=wc(K),tr.arguments=f().parenthesizeExpressionsOfCommaDelimitedList(ce(Ae)),tr.transformFlags|=se(tr.expression)|p(tr.typeArguments)|p(tr.arguments),tr.typeArguments&&(tr.transformFlags|=1),e.isImportKeyword(tr.expression)?tr.transformFlags|=4194304:e.isSuperProperty(tr.expression)&&(tr.transformFlags|=8192),tr}function In(d,K,Ae,tr){return e.isCallChain(d)?as(d,K,d.questionDotToken,Ae,tr):d.expression!==K||d.typeArguments!==Ae||d.arguments!==tr?A(Ta(K,Ae,tr),d):d}function so(d,K,Ae,tr){var $r=an(207);return $r.flags|=32,$r.expression=f().parenthesizeLeftSideOfAccess(d),$r.questionDotToken=K,$r.typeArguments=wc(Ae),$r.arguments=f().parenthesizeExpressionsOfCommaDelimitedList(ce(tr)),$r.transformFlags|=se($r.expression)|se($r.questionDotToken)|p($r.typeArguments)|p($r.arguments)|32,$r.typeArguments&&($r.transformFlags|=1),e.isSuperProperty($r.expression)&&($r.transformFlags|=8192),$r}function as(d,K,Ae,tr,$r){return e.Debug.assert(!!(d.flags&32),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),d.expression!==K||d.questionDotToken!==Ae||d.typeArguments!==tr||d.arguments!==$r?A(so(K,Ae,tr,$r),d):d}function Ho(d,K,Ae){var tr=an(208);return tr.expression=f().parenthesizeExpressionOfNew(d),tr.typeArguments=wc(K),tr.arguments=Ae?f().parenthesizeExpressionsOfCommaDelimitedList(Ae):void 0,tr.transformFlags|=se(tr.expression)|p(tr.typeArguments)|p(tr.arguments)|32,tr.typeArguments&&(tr.transformFlags|=1),tr}function Ds(d,K,Ae,tr){return d.expression!==K||d.typeArguments!==Ae||d.arguments!==tr?A(Ho(K,Ae,tr),d):d}function Os(d,K,Ae){var tr=an(209);return tr.tag=f().parenthesizeLeftSideOfAccess(d),tr.typeArguments=wc(K),tr.template=Ae,tr.transformFlags|=se(tr.tag)|p(tr.typeArguments)|se(tr.template)|1024,tr.typeArguments&&(tr.transformFlags|=1),e.hasInvalidEscape(tr.template)&&(tr.transformFlags|=128),tr}function mc(d,K,Ae,tr){return d.tag!==K||d.typeArguments!==Ae||d.template!==tr?A(Os(K,Ae,tr),d):d}function Hs(d,K){var Ae=an(210);return Ae.expression=f().parenthesizeOperandOfPrefixUnary(K),Ae.type=d,Ae.transformFlags|=se(Ae.expression)|se(Ae.type)|1,Ae}function Mi(d,K,Ae){return d.type!==K||d.expression!==Ae?A(Hs(K,Ae),d):d}function $t(d){var K=an(211);return K.expression=d,K.transformFlags=se(K.expression),K}function ga(d,K){return d.expression!==K?A($t(K),d):d}function xn(d,K,Ae,tr,$r,Zi,dt){var _n=Ue(212,void 0,d,Ae,tr,$r,Zi,dt);return _n.asteriskToken=K,_n.transformFlags|=se(_n.asteriskToken),_n.typeParameters&&(_n.transformFlags|=1),e.modifiersToFlags(_n.modifiers)&256?_n.asteriskToken?_n.transformFlags|=128:_n.transformFlags|=256:_n.asteriskToken&&(_n.transformFlags|=2048),_n}function yn(d,K,Ae,tr,$r,Zi,dt,_n){return d.name!==tr||d.modifiers!==K||d.asteriskToken!==Ae||d.typeParameters!==$r||d.parameters!==Zi||d.type!==dt||d.body!==_n?He(xn(K,Ae,tr,$r,Zi,dt,_n),d):d}function An(d,K,Ae,tr,$r,Zi){var dt=Ue(213,void 0,d,void 0,K,Ae,tr,f().parenthesizeConciseBodyOfArrowFunction(Zi));return dt.equalsGreaterThanToken=$r!=null?$r:Le(38),dt.transformFlags|=se(dt.equalsGreaterThanToken)|1024,e.modifiersToFlags(dt.modifiers)&256&&(dt.transformFlags|=8448),dt}function Pa(d,K,Ae,tr,$r,Zi,dt){return d.modifiers!==K||d.typeParameters!==Ae||d.parameters!==tr||d.type!==$r||d.equalsGreaterThanToken!==Zi||d.body!==dt?He(An(K,Ae,tr,$r,Zi,dt),d):d}function Mn(d){var K=an(214);return K.expression=f().parenthesizeOperandOfPrefixUnary(d),K.transformFlags|=se(K.expression),K}function ao(d,K){return d.expression!==K?A(Mn(K),d):d}function co(d){var K=an(215);return K.expression=f().parenthesizeOperandOfPrefixUnary(d),K.transformFlags|=se(K.expression),K}function De(d,K){return d.expression!==K?A(co(K),d):d}function zr(d){var K=an(216);return K.expression=f().parenthesizeOperandOfPrefixUnary(d),K.transformFlags|=se(K.expression),K}function xi(d,K){return d.expression!==K?A(zr(K),d):d}function et(d){var K=an(217);return K.expression=f().parenthesizeOperandOfPrefixUnary(d),K.transformFlags|=se(K.expression)|256|128|1048576,K}function je(d,K){return d.expression!==K?A(et(K),d):d}function ti(d,K){var Ae=an(218);return Ae.operator=d,Ae.operand=f().parenthesizeOperandOfPrefixUnary(K),Ae.transformFlags|=se(Ae.operand),(d===45||d===46)&&e.isIdentifier(Ae.operand)&&!e.isGeneratedIdentifier(Ae.operand)&&!e.isLocalName(Ae.operand)&&(Ae.transformFlags|=67108864),Ae}function mt(d,K){return d.operand!==K?A(ti(d.operator,K),d):d}function Zt(d,K){var Ae=an(219);return Ae.operator=K,Ae.operand=f().parenthesizeOperandOfPostfixUnary(d),Ae.transformFlags|=se(Ae.operand),e.isIdentifier(Ae.operand)&&!e.isGeneratedIdentifier(Ae.operand)&&!e.isLocalName(Ae.operand)&&(Ae.transformFlags|=67108864),Ae}function ln(d,K){return d.operand!==K?A(Zt(K,d.operator),d):d}function Ba(d,K,Ae){var tr=an(220),$r=m_(K),Zi=$r.kind;return tr.left=f().parenthesizeLeftSideOfBinary(Zi,d),tr.operatorToken=$r,tr.right=f().parenthesizeRightSideOfBinary(Zi,tr.left,Ae),tr.transformFlags|=se(tr.left)|se(tr.operatorToken)|se(tr.right),Zi===60?tr.transformFlags|=32:Zi===63?e.isObjectLiteralExpression(tr.left)?tr.transformFlags|=5248|Oo(tr.left):e.isArrayLiteralExpression(tr.left)&&(tr.transformFlags|=5120|Oo(tr.left)):Zi===42||Zi===67?tr.transformFlags|=512:e.isLogicalOrCoalescingAssignmentOperator(Zi)&&(tr.transformFlags|=16),tr}function Oo(d){if(d.transformFlags&32768)return 32768;if(d.transformFlags&128)for(var K=0,Ae=e.getElementsOfBindingOrAssignmentPattern(d);K<Ae.length;K++){var tr=Ae[K],$r=e.getTargetOfBindingOrAssignmentElement(tr);if($r&&e.isAssignmentPattern($r)){if($r.transformFlags&32768)return 32768;if($r.transformFlags&128){var Zi=Oo($r);if(Zi)return Zi}}}return 0}function jr(d,K,Ae,tr){return d.left!==K||d.operatorToken!==Ae||d.right!==tr?A(Ba(K,Ae,tr),d):d}function is(d,K,Ae,tr,$r){var Zi=an(221);return Zi.condition=f().parenthesizeConditionOfConditionalExpression(d),Zi.questionToken=K!=null?K:Le(57),Zi.whenTrue=f().parenthesizeBranchOfConditionalExpression(Ae),Zi.colonToken=tr!=null?tr:Le(58),Zi.whenFalse=f().parenthesizeBranchOfConditionalExpression($r),Zi.transformFlags|=se(Zi.condition)|se(Zi.questionToken)|se(Zi.whenTrue)|se(Zi.colonToken)|se(Zi.whenFalse),Zi}function hc(d,K,Ae,tr,$r,Zi){return d.condition!==K||d.questionToken!==Ae||d.whenTrue!==tr||d.colonToken!==$r||d.whenFalse!==Zi?A(is(K,Ae,tr,$r,Zi),d):d}function nc(d,K){var Ae=an(222);return Ae.head=d,Ae.templateSpans=ce(K),Ae.transformFlags|=se(Ae.head)|p(Ae.templateSpans)|1024,Ae}function ns(d,K,Ae){return d.head!==K||d.templateSpans!==Ae?A(nc(K,Ae),d):d}function Xs(d,K,Ae,tr){tr===void 0&&(tr=0),e.Debug.assert(!(tr&-2049),"Unsupported template flags.");var $r=void 0;if(Ae!==void 0&&Ae!==K&&($r=g(d,Ae),typeof $r=="object"))return e.Debug.fail("Invalid raw text");if(K===void 0){if($r===void 0)return e.Debug.fail("Arguments 'text' and 'rawText' may not both be undefined.");K=$r}else $r!==void 0&&e.Debug.assert(K===$r,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return rc(d,K,Ae,tr)}function rc(d,K,Ae,tr){var $r=Ce(d);return $r.text=K,$r.rawText=Ae,$r.templateFlags=tr&2048,$r.transformFlags|=1024,$r.templateFlags&&($r.transformFlags|=128),$r}function uu(d,K,Ae){return Xs(15,d,K,Ae)}function Bc(d,K,Ae){return Xs(16,d,K,Ae)}function Qu(d,K,Ae){return Xs(17,d,K,Ae)}function uo(d,K,Ae){return Xs(14,d,K,Ae)}function Xc(d,K){e.Debug.assert(!d||!!K,"A `YieldExpression` with an asteriskToken must have an expression.");var Ae=an(223);return Ae.expression=K&&f().parenthesizeExpressionForDisallowedComma(K),Ae.asteriskToken=d,Ae.transformFlags|=se(Ae.expression)|se(Ae.asteriskToken)|1024|128|524288,Ae}function Ru(d,K,Ae){return d.expression!==Ae||d.asteriskToken!==K?A(Xc(K,Ae),d):d}function Dc(d){var K=an(224);return K.expression=f().parenthesizeExpressionForDisallowedComma(d),K.transformFlags|=se(K.expression)|1024|16384,K}function Yu(d,K){return d.expression!==K?A(Dc(K),d):d}function lu(d,K,Ae,tr,$r,Zi){var dt=gr(225,d,K,Ae,tr,$r,Zi);return dt.transformFlags|=1024,dt}function qa(d,K,Ae,tr,$r,Zi,dt){return d.decorators!==K||d.modifiers!==Ae||d.name!==tr||d.typeParameters!==$r||d.heritageClauses!==Zi||d.members!==dt?A(lu(K,Ae,tr,$r,Zi,dt),d):d}function Bu(){return an(226)}function $u(d,K){var Ae=m(227);return Ae.expression=f().parenthesizeLeftSideOfAccess(d),Ae.typeArguments=K&&f().parenthesizeTypeArguments(K),Ae.transformFlags|=se(Ae.expression)|p(Ae.typeArguments)|1024,Ae}function au(d,K,Ae){return d.expression!==K||d.typeArguments!==Ae?A($u(K,Ae),d):d}function Vr(d,K){var Ae=an(228);return Ae.expression=d,Ae.type=K,Ae.transformFlags|=se(Ae.expression)|se(Ae.type)|1,Ae}function fi(d,K,Ae){return d.expression!==K||d.type!==Ae?A(Vr(K,Ae),d):d}function Ni(d){var K=an(229);return K.expression=f().parenthesizeLeftSideOfAccess(d),K.transformFlags|=se(K.expression)|1,K}function rt(d,K){return e.isNonNullChain(d)?Dt(d,K):d.expression!==K?A(Ni(K),d):d}function Tt(d){var K=an(229);return K.flags|=32,K.expression=f().parenthesizeLeftSideOfAccess(d),K.transformFlags|=se(K.expression)|1,K}function Dt(d,K){return e.Debug.assert(!!(d.flags&32),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),d.expression!==K?A(Tt(K),d):d}function jt(d,K){var Ae=an(230);switch(Ae.keywordToken=d,Ae.name=K,Ae.transformFlags|=se(Ae.name),d){case 103:Ae.transformFlags|=1024;break;case 100:Ae.transformFlags|=4;break;default:return e.Debug.assertNever(d)}return Ae}function na(d,K){return d.name!==K?A(jt(d.keywordToken,K),d):d}function Za(d,K){var Ae=m(232);return Ae.expression=d,Ae.literal=K,Ae.transformFlags|=se(Ae.expression)|se(Ae.literal)|1024,Ae}function ya(d,K,Ae){return d.expression!==K||d.literal!==Ae?A(Za(K,Ae),d):d}function ha(){var d=m(233);return d.transformFlags|=1024,d}function Ja(d,K){var Ae=m(234);return Ae.statements=ce(d),Ae.multiLine=K,Ae.transformFlags|=p(Ae.statements),Ae}function Eo(d,K){return d.statements!==K?A(Ja(K,d.multiLine),d):d}function Hn(d,K){var Ae=de(236,void 0,d);return Ae.declarationList=e.isArray(K)?Zu(K):K,Ae.transformFlags|=se(Ae.declarationList),e.modifiersToFlags(Ae.modifiers)&2&&(Ae.transformFlags=1),Ae}function lo(d,K,Ae){return d.modifiers!==K||d.declarationList!==Ae?A(Hn(K,Ae),d):d}function Kn(){return m(235)}function Te(d){var K=m(237);return K.expression=f().parenthesizeExpressionOfExpressionStatement(d),K.transformFlags|=se(K.expression),K}function vr(d,K){return d.expression!==K?A(Te(K),d):d}function Sr(d,K,Ae){var tr=m(238);return tr.expression=d,tr.thenStatement=Wu(K),tr.elseStatement=Wu(Ae),tr.transformFlags|=se(tr.expression)|se(tr.thenStatement)|se(tr.elseStatement),tr}function Di(d,K,Ae,tr){return d.expression!==K||d.thenStatement!==Ae||d.elseStatement!==tr?A(Sr(K,Ae,tr),d):d}function nt(d,K){var Ae=m(239);return Ae.statement=Wu(d),Ae.expression=K,Ae.transformFlags|=se(Ae.statement)|se(Ae.expression),Ae}function _a(d,K,Ae){return d.statement!==K||d.expression!==Ae?A(nt(K,Ae),d):d}function Na(d,K){var Ae=m(240);return Ae.expression=d,Ae.statement=Wu(K),Ae.transformFlags|=se(Ae.expression)|se(Ae.statement),Ae}function wn(d,K,Ae){return d.expression!==K||d.statement!==Ae?A(Na(K,Ae),d):d}function no(d,K,Ae,tr){var $r=m(241);return $r.initializer=d,$r.condition=K,$r.incrementor=Ae,$r.statement=Wu(tr),$r.transformFlags|=se($r.initializer)|se($r.condition)|se($r.incrementor)|se($r.statement),$r}function Go(d,K,Ae,tr,$r){return d.initializer!==K||d.condition!==Ae||d.incrementor!==tr||d.statement!==$r?A(no(K,Ae,tr,$r),d):d}function vo(d,K,Ae){var tr=m(242);return tr.initializer=d,tr.expression=K,tr.statement=Wu(Ae),tr.transformFlags|=se(tr.initializer)|se(tr.expression)|se(tr.statement),tr}function Vn(d,K,Ae,tr){return d.initializer!==K||d.expression!==Ae||d.statement!==tr?A(vo(K,Ae,tr),d):d}function to(d,K,Ae,tr){var $r=m(243);return $r.awaitModifier=d,$r.initializer=K,$r.expression=f().parenthesizeExpressionForDisallowedComma(Ae),$r.statement=Wu(tr),$r.transformFlags|=se($r.awaitModifier)|se($r.initializer)|se($r.expression)|se($r.statement)|1024,d&&($r.transformFlags|=128),$r}function Jo(d,K,Ae,tr,$r){return d.awaitModifier!==K||d.initializer!==Ae||d.expression!==tr||d.statement!==$r?A(to(K,Ae,tr,$r),d):d}function Xo(d){var K=m(244);return K.label=bc(d),K.transformFlags|=se(K.label)|2097152,K}function Wr(d,K){return d.label!==K?A(Xo(K),d):d}function Ws(d){var K=m(245);return K.label=bc(d),K.transformFlags|=se(K.label)|2097152,K}function nu(d,K){return d.label!==K?A(Ws(K),d):d}function Tu(d){var K=m(246);return K.expression=d,K.transformFlags|=se(K.expression)|128|2097152,K}function oc(d,K){return d.expression!==K?A(Tu(K),d):d}function Qc(d,K){var Ae=m(247);return Ae.expression=d,Ae.statement=Wu(K),Ae.transformFlags|=se(Ae.expression)|se(Ae.statement),Ae}function fu(d,K,Ae){return d.expression!==K||d.statement!==Ae?A(Qc(K,Ae),d):d}function lp(d,K){var Ae=m(248);return Ae.expression=f().parenthesizeExpressionForDisallowedComma(d),Ae.caseBlock=K,Ae.transformFlags|=se(Ae.expression)|se(Ae.caseBlock),Ae}function bo(d,K,Ae){return d.expression!==K||d.caseBlock!==Ae?A(lp(K,Ae),d):d}function w_(d,K){var Ae=m(249);return Ae.label=bc(d),Ae.statement=Wu(K),Ae.transformFlags|=se(Ae.label)|se(Ae.statement),Ae}function i_(d,K,Ae){return d.label!==K||d.statement!==Ae?A(w_(K,Ae),d):d}function Ls(d){var K=m(250);return K.expression=d,K.transformFlags|=se(K.expression),K}function hl(d,K){return d.expression!==K?A(Ls(K),d):d}function xu(d,K,Ae){var tr=m(251);return tr.tryBlock=d,tr.catchClause=K,tr.finallyBlock=Ae,tr.transformFlags|=se(tr.tryBlock)|se(tr.catchClause)|se(tr.finallyBlock),tr}function tf(d,K,Ae,tr){return d.tryBlock!==K||d.catchClause!==Ae||d.finallyBlock!==tr?A(xu(K,Ae,tr),d):d}function If(){return m(252)}function Yc(d,K,Ae,tr){var $r=Ge(253,void 0,void 0,d,Ae,tr&&f().parenthesizeExpressionForDisallowedComma(tr));return $r.exclamationToken=K,$r.transformFlags|=se($r.exclamationToken),K&&($r.transformFlags|=1),$r}function Vs(d,K,Ae,tr,$r){return d.name!==K||d.type!==tr||d.exclamationToken!==Ae||d.initializer!==$r?A(Yc(K,Ae,tr,$r),d):d}function Zu(d,K){K===void 0&&(K=0);var Ae=m(254);return Ae.flags|=K&3,Ae.declarations=ce(d),Ae.transformFlags|=p(Ae.declarations)|2097152,K&3&&(Ae.transformFlags|=132096),Ae}function Ma(d,K){return d.declarations!==K?A(Zu(K,d.flags),d):d}function Da(d,K,Ae,tr,$r,Zi,dt,_n){var Zo=Ue(255,d,K,tr,$r,Zi,dt,_n);return Zo.asteriskToken=Ae,!Zo.body||e.modifiersToFlags(Zo.modifiers)&2?Zo.transformFlags=1:(Zo.transformFlags|=se(Zo.asteriskToken)|2097152,e.modifiersToFlags(Zo.modifiers)&256?Zo.asteriskToken?Zo.transformFlags|=128:Zo.transformFlags|=256:Zo.asteriskToken&&(Zo.transformFlags|=2048)),Zo}function Ju(d,K,Ae,tr,$r,Zi,dt,_n,Zo){return d.decorators!==K||d.modifiers!==Ae||d.asteriskToken!==tr||d.name!==$r||d.typeParameters!==Zi||d.parameters!==dt||d.type!==_n||d.body!==Zo?He(Da(K,Ae,tr,$r,Zi,dt,_n,Zo),d):d}function Pc(d,K,Ae,tr,$r,Zi){var dt=gr(256,d,K,Ae,tr,$r,Zi);return e.modifiersToFlags(dt.modifiers)&2?dt.transformFlags=1:(dt.transformFlags|=1024,dt.transformFlags&4096&&(dt.transformFlags|=1)),dt}function fp(d,K,Ae,tr,$r,Zi,dt){return d.decorators!==K||d.modifiers!==Ae||d.name!==tr||d.typeParameters!==$r||d.heritageClauses!==Zi||d.members!==dt?A(Pc(K,Ae,tr,$r,Zi,dt),d):d}function wf(d,K,Ae,tr,$r,Zi){var dt=ar(257,d,K,Ae,tr,$r);return dt.members=ce(Zi),dt.transformFlags=1,dt}function Xp(d,K,Ae,tr,$r,Zi,dt){return d.decorators!==K||d.modifiers!==Ae||d.name!==tr||d.typeParameters!==$r||d.heritageClauses!==Zi||d.members!==dt?A(wf(K,Ae,tr,$r,Zi,dt),d):d}function os(d,K,Ae,tr,$r){var Zi=V(258,d,K,Ae,tr);return Zi.type=$r,Zi.transformFlags=1,Zi}function el(d,K,Ae,tr,$r,Zi){return d.decorators!==K||d.modifiers!==Ae||d.name!==tr||d.typeParameters!==$r||d.type!==Zi?A(os(K,Ae,tr,$r,Zi),d):d}function Of(d,K,Ae,tr){var $r=ae(259,d,K,Ae);return $r.members=ce(tr),$r.transformFlags|=p($r.members)|1,$r.transformFlags&=-16777217,$r}function O_(d,K,Ae,tr,$r){return d.decorators!==K||d.modifiers!==Ae||d.name!==tr||d.members!==$r?A(Of(K,Ae,tr,$r),d):d}function t_(d,K,Ae,tr,$r){$r===void 0&&($r=0);var Zi=de(260,d,K);return Zi.flags|=$r&1044,Zi.name=Ae,Zi.body=tr,e.modifiersToFlags(Zi.modifiers)&2?Zi.transformFlags=1:Zi.transformFlags|=se(Zi.name)|se(Zi.body)|1,Zi.transformFlags&=-16777217,Zi}function Nc(d,K,Ae,tr,$r){return d.decorators!==K||d.modifiers!==Ae||d.name!==tr||d.body!==$r?A(t_(K,Ae,tr,$r,d.flags),d):d}function F_(d){var K=m(261);return K.statements=ce(d),K.transformFlags|=p(K.statements),K}function Ff(d,K){return d.statements!==K?A(F_(K),d):d}function M_(d){var K=m(262);return K.clauses=ce(d),K.transformFlags|=p(K.clauses),K}function _p(d,K){return d.clauses!==K?A(M_(K),d):d}function Qp(d){var K=ae(263,void 0,void 0,d);return K.transformFlags=1,K}function pp(d,K){return d.name!==K?A(Qp(K),d):d}function dp(d,K,Ae,tr,$r){var Zi=ae(264,d,K,tr);return Zi.isTypeOnly=Ae,Zi.moduleReference=$r,Zi.transformFlags|=se(Zi.moduleReference),e.isExternalModuleReference(Zi.moduleReference)||(Zi.transformFlags|=1),Zi.transformFlags&=-16777217,Zi}function gp(d,K,Ae,tr,$r,Zi){return d.decorators!==K||d.modifiers!==Ae||d.isTypeOnly!==tr||d.name!==$r||d.moduleReference!==Zi?A(dp(K,Ae,tr,$r,Zi),d):d}function Yp(d,K,Ae,tr,$r){var Zi=de(265,d,K);return Zi.importClause=Ae,Zi.moduleSpecifier=tr,Zi.assertClause=$r,Zi.transformFlags|=se(Zi.importClause)|se(Zi.moduleSpecifier),Zi.transformFlags&=-16777217,Zi}function $p(d,K,Ae,tr,$r,Zi){return d.decorators!==K||d.modifiers!==Ae||d.importClause!==tr||d.moduleSpecifier!==$r||d.assertClause!==Zi?A(Yp(K,Ae,tr,$r,Zi),d):d}function a_(d,K,Ae){var tr=m(266);return tr.isTypeOnly=d,tr.name=K,tr.namedBindings=Ae,tr.transformFlags|=se(tr.name)|se(tr.namedBindings),d&&(tr.transformFlags|=1),tr.transformFlags&=-16777217,tr}function Cd(d,K,Ae,tr){return d.isTypeOnly!==K||d.name!==Ae||d.namedBindings!==tr?A(a_(K,Ae,tr),d):d}function mp(d,K){var Ae=m(292);return Ae.elements=ce(d),Ae.multiLine=K,Ae.transformFlags|=4,Ae}function L_(d,K,Ae){return d.elements!==K||d.multiLine!==Ae?A(mp(K,Ae),d):d}function rl(d,K){var Ae=m(293);return Ae.name=d,Ae.value=K,Ae.transformFlags|=4,Ae}function ju(d,K,Ae){return d.name!==K||d.value!==Ae?A(rl(K,Ae),d):d}function _u(d){var K=m(267);return K.name=d,K.transformFlags|=se(K.name),K.transformFlags&=-16777217,K}function Eu(d,K){return d.name!==K?A(_u(K),d):d}function Dl(d){var K=m(273);return K.name=d,K.transformFlags|=se(K.name)|4,K.transformFlags&=-16777217,K}function Zp(d,K){return d.name!==K?A(Dl(K),d):d}function Wl(d){var K=m(268);return K.elements=ce(d),K.transformFlags|=p(K.elements),K.transformFlags&=-16777217,K}function ed(d,K){return d.elements!==K?A(Wl(K),d):d}function n_(d,K,Ae){var tr=m(269);return tr.isTypeOnly=d,tr.propertyName=K,tr.name=Ae,tr.transformFlags|=se(tr.propertyName)|se(tr.name),tr.transformFlags&=-16777217,tr}function vp(d,K,Ae,tr){return d.isTypeOnly!==K||d.propertyName!==Ae||d.name!==tr?A(n_(K,Ae,tr),d):d}function o_(d,K,Ae,tr){var $r=de(270,d,K);return $r.isExportEquals=Ae,$r.expression=Ae?f().parenthesizeRightSideOfBinary(63,void 0,tr):f().parenthesizeExpressionOfExportDefault(tr),$r.transformFlags|=se($r.expression),$r.transformFlags&=-16777217,$r}function R_(d,K,Ae,tr){return d.decorators!==K||d.modifiers!==Ae||d.expression!==tr?A(o_(K,Ae,d.isExportEquals,tr),d):d}function af(d,K,Ae,tr,$r,Zi){var dt=de(271,d,K);return dt.isTypeOnly=Ae,dt.exportClause=tr,dt.moduleSpecifier=$r,dt.assertClause=Zi,dt.transformFlags|=se(dt.exportClause)|se(dt.moduleSpecifier),dt.transformFlags&=-16777217,dt}function yp(d,K,Ae,tr,$r,Zi,dt){return d.decorators!==K||d.modifiers!==Ae||d.isTypeOnly!==tr||d.exportClause!==$r||d.moduleSpecifier!==Zi||d.assertClause!==dt?A(af(K,Ae,tr,$r,Zi,dt),d):d}function B_(d){var K=m(272);return K.elements=ce(d),K.transformFlags|=p(K.elements),K.transformFlags&=-16777217,K}function kd(d,K){return d.elements!==K?A(B_(K),d):d}function Mf(d,K,Ae){var tr=m(274);return tr.isTypeOnly=d,tr.propertyName=bc(K),tr.name=bc(Ae),tr.transformFlags|=se(tr.propertyName)|se(tr.name),tr.transformFlags&=-16777217,tr}function hp(d,K,Ae,tr){return d.isTypeOnly!==K||d.propertyName!==Ae||d.name!==tr?A(Mf(K,Ae,tr),d):d}function ic(){var d=de(275,void 0,void 0);return d}function Jc(d){var K=m(276);return K.expression=d,K.transformFlags|=se(K.expression),K.transformFlags&=-16777217,K}function Lf(d,K){return d.expression!==K?A(Jc(K),d):d}function nf(d){return m(d)}function s_(d,K){var Ae=m(d);return Ae.type=K,Ae}function Rf(d,K,Ae){return K.type!==Ae?A(s_(d,Ae),K):K}function c_(d,K){var Ae=le(315,void 0,void 0,void 0,void 0,d,K);return Ae}function Cu(d,K,Ae){return d.parameters!==K||d.type!==Ae?A(c_(K,Ae),d):d}function Tc(d,K){K===void 0&&(K=!1);var Ae=m(320);return Ae.jsDocPropertyTags=wc(d),Ae.isArrayType=K,Ae}function pu(d,K,Ae){return d.jsDocPropertyTags!==K||d.isArrayType!==Ae?A(Tc(K,Ae),d):d}function du(d){var K=m(307);return K.type=d,K}function bl(d,K){return d.type!==K?A(du(K),d):d}function of(d,K,Ae){var tr=m(321);return tr.typeParameters=wc(d),tr.parameters=ce(K),tr.type=Ae,tr}function il(d,K,Ae,tr){return d.typeParameters!==K||d.parameters!==Ae||d.type!==tr?A(of(K,Ae,tr),d):d}function Qo(d){var K=Q(d.kind);return d.tagName.escapedText===e.escapeLeadingUnderscores(K)?d.tagName:dr(K)}function zo(d,K,Ae){var tr=m(d);return tr.tagName=K,tr.comment=Ae,tr}function Ro(d,K,Ae,tr){var $r=zo(342,d!=null?d:dr("template"),tr);return $r.constraint=K,$r.typeParameters=ce(Ae),$r}function jc(d,K,Ae,tr,$r){return K===void 0&&(K=Qo(d)),d.tagName!==K||d.constraint!==Ae||d.typeParameters!==tr||d.comment!==$r?A(Ro(K,Ae,tr,$r),d):d}function Bf(d,K,Ae,tr){var $r=zo(343,d!=null?d:dr("typedef"),tr);return $r.typeExpression=K,$r.fullName=Ae,$r.name=e.getJSDocTypeAliasName(Ae),$r}function gu(d,K,Ae,tr,$r){return K===void 0&&(K=Qo(d)),d.tagName!==K||d.typeExpression!==Ae||d.fullName!==tr||d.comment!==$r?A(Bf(K,Ae,tr,$r),d):d}function Jf(d,K,Ae,tr,$r,Zi){var dt=zo(338,d!=null?d:dr("param"),Zi);return dt.typeExpression=tr,dt.name=K,dt.isNameFirst=!!$r,dt.isBracketed=Ae,dt}function jf(d,K,Ae,tr,$r,Zi,dt){return K===void 0&&(K=Qo(d)),d.tagName!==K||d.name!==Ae||d.isBracketed!==tr||d.typeExpression!==$r||d.isNameFirst!==Zi||d.comment!==dt?A(Jf(K,Ae,tr,$r,Zi,dt),d):d}function sf(d,K,Ae,tr,$r,Zi){var dt=zo(345,d!=null?d:dr("prop"),Zi);return dt.typeExpression=tr,dt.name=K,dt.isNameFirst=!!$r,dt.isBracketed=Ae,dt}function Kt(d,K,Ae,tr,$r,Zi,dt){return K===void 0&&(K=Qo(d)),d.tagName!==K||d.name!==Ae||d.isBracketed!==tr||d.typeExpression!==$r||d.isNameFirst!==Zi||d.comment!==dt?A(sf(K,Ae,tr,$r,Zi,dt),d):d}function ts(d,K,Ae,tr){var $r=zo(336,d!=null?d:dr("callback"),tr);return $r.typeExpression=K,$r.fullName=Ae,$r.name=e.getJSDocTypeAliasName(Ae),$r}function mn(d,K,Ae,tr,$r){return K===void 0&&(K=Qo(d)),d.tagName!==K||d.typeExpression!==Ae||d.fullName!==tr||d.comment!==$r?A(ts(K,Ae,tr,$r),d):d}function Sl(d,K,Ae){var tr=zo(326,d!=null?d:dr("augments"),Ae);return tr.class=K,tr}function Ps(d,K,Ae,tr){return K===void 0&&(K=Qo(d)),d.tagName!==K||d.class!==Ae||d.comment!==tr?A(Sl(K,Ae,tr),d):d}function tl(d,K,Ae){var tr=zo(327,d!=null?d:dr("implements"),Ae);return tr.class=K,tr}function Ut(d,K,Ae){var tr=zo(344,d!=null?d:dr("see"),Ae);return tr.name=K,tr}function Dp(d,K,Ae,tr){return d.tagName!==K||d.name!==Ae||d.comment!==tr?A(Ut(K,Ae,tr),d):d}function cf(d){var K=m(308);return K.name=d,K}function ko(d,K){return d.name!==K?A(cf(K),d):d}function xc(d,K){var Ae=m(309);return Ae.left=d,Ae.right=K,Ae.transformFlags|=se(Ae.left)|se(Ae.right),Ae}function ou(d,K,Ae){return d.left!==K||d.right!==Ae?A(xc(K,Ae),d):d}function uf(d,K){var Ae=m(322);return Ae.name=d,Ae.text=K,Ae}function bp(d,K,Ae){return d.name!==K?A(uf(K,Ae),d):d}function ql(d,K){var Ae=m(323);return Ae.name=d,Ae.text=K,Ae}function Fs(d,K,Ae){return d.name!==K?A(ql(K,Ae),d):d}function J_(d,K){var Ae=m(324);return Ae.name=d,Ae.text=K,Ae}function su(d,K,Ae){return d.name!==K?A(J_(K,Ae),d):d}function lf(d,K,Ae,tr){return K===void 0&&(K=Qo(d)),d.tagName!==K||d.class!==Ae||d.comment!==tr?A(tl(K,Ae,tr),d):d}function ff(d,K,Ae){var tr=zo(d,K!=null?K:dr(Q(d)),Ae);return tr}function _f(d,K,Ae,tr){return Ae===void 0&&(Ae=Qo(K)),K.tagName!==Ae||K.comment!==tr?A(ff(d,Ae,tr),K):K}function Vl(d,K,Ae,tr){var $r=zo(d,K!=null?K:dr(Q(d)),tr);return $r.typeExpression=Ae,$r}function j_(d,K,Ae,tr,$r){return Ae===void 0&&(Ae=Qo(K)),K.tagName!==Ae||K.typeExpression!==tr||K.comment!==$r?A(Vl(d,Ae,tr,$r),K):K}function Uf(d,K){var Ae=zo(325,d,K);return Ae}function Sp(d,K,Ae){return d.tagName!==K||d.comment!==Ae?A(Uf(K,Ae),d):d}function Tl(d){var K=m(319);return K.text=d,K}function Ns(d,K){return d.text!==K?A(Tl(K),d):d}function al(d,K){var Ae=m(318);return Ae.comment=d,Ae.tags=wc(K),Ae}function U_(d,K,Ae){return d.comment!==K||d.tags!==Ae?A(al(K,Ae),d):d}function Kl(d,K,Ae){var tr=m(277);return tr.openingElement=d,tr.children=ce(K),tr.closingElement=Ae,tr.transformFlags|=se(tr.openingElement)|p(tr.children)|se(tr.closingElement)|2,tr}function Wn(d,K,Ae,tr){return d.openingElement!==K||d.children!==Ae||d.closingElement!==tr?A(Kl(K,Ae,tr),d):d}function It(d,K,Ae){var tr=m(278);return tr.tagName=d,tr.typeArguments=wc(K),tr.attributes=Ae,tr.transformFlags|=se(tr.tagName)|p(tr.typeArguments)|se(tr.attributes)|2,tr.typeArguments&&(tr.transformFlags|=1),tr}function Rs(d,K,Ae,tr){return d.tagName!==K||d.typeArguments!==Ae||d.attributes!==tr?A(It(K,Ae,tr),d):d}function u_(d,K,Ae){var tr=m(279);return tr.tagName=d,tr.typeArguments=wc(K),tr.attributes=Ae,tr.transformFlags|=se(tr.tagName)|p(tr.typeArguments)|se(tr.attributes)|2,K&&(tr.transformFlags|=1),tr}function xs(d,K,Ae,tr){return d.tagName!==K||d.typeArguments!==Ae||d.attributes!==tr?A(u_(K,Ae,tr),d):d}function Tp(d){var K=m(280);return K.tagName=d,K.transformFlags|=se(K.tagName)|2,K}function mu(d,K){return d.tagName!==K?A(Tp(K),d):d}function zf(d,K,Ae){var tr=m(281);return tr.openingFragment=d,tr.children=ce(K),tr.closingFragment=Ae,tr.transformFlags|=se(tr.openingFragment)|p(tr.children)|se(tr.closingFragment)|2,tr}function Uu(d,K,Ae,tr){return d.openingFragment!==K||d.children!==Ae||d.closingFragment!==tr?A(zf(K,Ae,tr),d):d}function $c(d,K){var Ae=m(11);return Ae.text=d,Ae.containsOnlyTriviaWhiteSpaces=!!K,Ae.transformFlags|=2,Ae}function Wf(d,K,Ae){return d.text!==K||d.containsOnlyTriviaWhiteSpaces!==Ae?A($c(K,Ae),d):d}function Gl(){var d=m(282);return d.transformFlags|=2,d}function bs(){var d=m(283);return d.transformFlags|=2,d}function zu(d,K){var Ae=m(284);return Ae.name=d,Ae.initializer=K,Ae.transformFlags|=se(Ae.name)|se(Ae.initializer)|2,Ae}function ss(d,K,Ae){return d.name!==K||d.initializer!==Ae?A(zu(K,Ae),d):d}function Uc(d){var K=m(285);return K.properties=ce(d),K.transformFlags|=p(K.properties)|2,K}function Ad(d,K){return d.properties!==K?A(Uc(K),d):d}function vu(d){var K=m(286);return K.expression=d,K.transformFlags|=se(K.expression)|2,K}function pf(d,K){return d.expression!==K?A(vu(K),d):d}function df(d,K){var Ae=m(287);return Ae.dotDotDotToken=d,Ae.expression=K,Ae.transformFlags|=se(Ae.dotDotDotToken)|se(Ae.expression)|2,Ae}function xp(d,K){return d.expression!==K?A(df(d.dotDotDotToken,K),d):d}function l_(d,K){var Ae=m(288);return Ae.expression=f().parenthesizeExpressionForDisallowedComma(d),Ae.statements=ce(K),Ae.transformFlags|=se(Ae.expression)|p(Ae.statements),Ae}function Ic(d,K,Ae){return d.expression!==K||d.statements!==Ae?A(l_(K,Ae),d):d}function _s(d){var K=m(289);return K.statements=ce(d),K.transformFlags=p(K.statements),K}function xl(d,K){return d.statements!==K?A(_s(K),d):d}function gf(d,K){var Ae=m(290);switch(Ae.token=d,Ae.types=ce(K),Ae.transformFlags|=p(Ae.types),d){case 94:Ae.transformFlags|=1024;break;case 117:Ae.transformFlags|=1;break;default:return e.Debug.assertNever(d)}return Ae}function Hl(d,K){return d.types!==K?A(gf(d.token,K),d):d}function Xl(d,K){var Ae=m(291);return(typeof d=="string"||d&&!e.isVariableDeclaration(d))&&(d=Yc(d,void 0,void 0,void 0)),Ae.variableDeclaration=d,Ae.block=K,Ae.transformFlags|=se(Ae.variableDeclaration)|se(Ae.block),d||(Ae.transformFlags|=64),Ae}function Ep(d,K,Ae){return d.variableDeclaration!==K||d.block!==Ae?A(Xl(K,Ae),d):d}function z_(d,K){var Ae=ae(294,void 0,void 0,d);return Ae.initializer=f().parenthesizeExpressionForDisallowedComma(K),Ae.transformFlags|=se(Ae.name)|se(Ae.initializer),Ae}function El(d,K){return K.decorators&&(d.decorators=K.decorators),K.modifiers&&(d.modifiers=K.modifiers),K.questionToken&&(d.questionToken=K.questionToken),K.exclamationToken&&(d.exclamationToken=K.exclamationToken),A(d,K)}function Cp(d,K,Ae){return d.name!==K||d.initializer!==Ae?El(z_(K,Ae),d):d}function Zc(d,K){var Ae=ae(295,void 0,void 0,d);return Ae.objectAssignmentInitializer=K&&f().parenthesizeExpressionForDisallowedComma(K),Ae.transformFlags|=se(Ae.objectAssignmentInitializer)|1024,Ae}function kp(d,K){return K.decorators&&(d.decorators=K.decorators),K.modifiers&&(d.modifiers=K.modifiers),K.equalsToken&&(d.equalsToken=K.equalsToken),K.questionToken&&(d.questionToken=K.questionToken),K.exclamationToken&&(d.exclamationToken=K.exclamationToken),A(d,K)}function mf(d,K,Ae){return d.name!==K||d.objectAssignmentInitializer!==Ae?kp(Zc(K,Ae),d):d}function Ql(d){var K=m(296);return K.expression=f().parenthesizeExpressionForDisallowedComma(d),K.transformFlags|=se(K.expression)|128|32768,K}function f_(d,K){return d.expression!==K?A(Ql(K),d):d}function qf(d,K){var Ae=m(297);return Ae.name=bc(d),Ae.initializer=K&&f().parenthesizeExpressionForDisallowedComma(K),Ae.transformFlags|=se(Ae.name)|se(Ae.initializer)|1,Ae}function Cl(d,K,Ae){return d.name!==K||d.initializer!==Ae?A(qf(K,Ae),d):d}function W_(d,K,Ae){var tr=ee.createBaseSourceFileNode(303);return tr.statements=ce(d),tr.endOfFileToken=K,tr.flags|=Ae,tr.fileName="",tr.text="",tr.languageVersion=0,tr.languageVariant=0,tr.scriptKind=0,tr.isDeclarationFile=!1,tr.hasNoDefaultLib=!1,tr.transformFlags|=p(tr.statements)|se(tr.endOfFileToken),tr}function nl(d,K,Ae,tr,$r,Zi,dt){var _n=ee.createBaseSourceFileNode(303);for(var Zo in d)Zo==="emitNode"||e.hasProperty(_n,Zo)||!e.hasProperty(d,Zo)||(_n[Zo]=d[Zo]);return _n.flags|=d.flags,_n.statements=ce(K),_n.endOfFileToken=d.endOfFileToken,_n.isDeclarationFile=Ae,_n.referencedFiles=tr,_n.typeReferenceDirectives=$r,_n.hasNoDefaultLib=Zi,_n.libReferenceDirectives=dt,_n.transformFlags=p(_n.statements)|se(_n.endOfFileToken),_n.impliedNodeFormat=d.impliedNodeFormat,_n}function Ga(d,K,Ae,tr,$r,Zi,dt){return Ae===void 0&&(Ae=d.isDeclarationFile),tr===void 0&&(tr=d.referencedFiles),$r===void 0&&($r=d.typeReferenceDirectives),Zi===void 0&&(Zi=d.hasNoDefaultLib),dt===void 0&&(dt=d.libReferenceDirectives),d.statements!==K||d.isDeclarationFile!==Ae||d.referencedFiles!==tr||d.typeReferenceDirectives!==$r||d.hasNoDefaultLib!==Zi||d.libReferenceDirectives!==dt?A(nl(d,K,Ae,tr,$r,Zi,dt),d):d}function kl(d,K){K===void 0&&(K=e.emptyArray);var Ae=m(304);return Ae.prepends=K,Ae.sourceFiles=d,Ae}function ht(d,K,Ae){return Ae===void 0&&(Ae=e.emptyArray),d.sourceFiles!==K||d.prepends!==Ae?A(kl(K,Ae),d):d}function __(d,K,Ae){var tr=m(305);return tr.prologues=d,tr.syntheticReferences=K,tr.texts=Ae,tr.fileName="",tr.text="",tr.referencedFiles=e.emptyArray,tr.libReferenceDirectives=e.emptyArray,tr.getLineAndCharacterOfPosition=function($r){return e.getLineAndCharacterOfPosition(tr,$r)},tr}function Yl(d,K){var Ae=m(d);return Ae.data=K,Ae}function ol(d){return Yl(298,d)}function q_(d,K){var Ae=Yl(299,d);return Ae.texts=K,Ae}function rd(d,K){return Yl(K?301:300,d)}function Pd(d){var K=m(302);return K.data=d.data,K.section=d,K}function Al(){var d=m(306);return d.javascriptText="",d.declarationText="",d}function id(d,K,Ae){K===void 0&&(K=!1);var tr=m(231);return tr.type=d,tr.isSpread=K,tr.tupleNameSource=Ae,tr}function p_(d){var K=m(346);return K._children=d,K}function Nd(d){var K=m(347);return K.original=d,e.setTextRange(K,d),K}function V_(d,K){var Ae=m(348);return Ae.expression=d,Ae.original=K,Ae.transformFlags|=se(Ae.expression)|1,e.setTextRange(Ae,K),Ae}function yu(d,K){return d.expression!==K?A(V_(K,d.original),d):d}function d_(d){if(e.nodeIsSynthesized(d)&&!e.isParseTreeNode(d)&&!d.original&&!d.emitNode&&!d.id){if(e.isCommaListExpression(d))return d.elements;if(e.isBinaryExpression(d)&&e.isCommaToken(d.operatorToken))return[d.left,d.right]}return d}function sl(d){var K=m(349);return K.elements=ce(e.sameFlatMap(d,d_)),K.transformFlags|=p(K.elements),K}function sc(d,K){return d.elements!==K?A(sl(K),d):d}function Vf(d){var K=m(351);return K.emitNode={},K.original=d,K}function ku(d){var K=m(350);return K.emitNode={},K.original=d,K}function vf(d,K){var Ae=m(352);return Ae.expression=d,Ae.thisArg=K,Ae.transformFlags|=se(Ae.expression)|se(Ae.thisArg),Ae}function td(d,K,Ae){return d.expression!==K||d.thisArg!==Ae?A(vf(K,Ae),d):d}function eu(d){if(d===void 0)return d;var K=e.isSourceFile(d)?ee.createBaseSourceFileNode(303):e.isIdentifier(d)?ee.createBaseIdentifierNode(79):e.isPrivateIdentifier(d)?ee.createBasePrivateIdentifierNode(80):e.isNodeKind(d.kind)?ee.createBaseNode(d.kind):ee.createBaseTokenNode(d.kind);K.flags|=d.flags&-9,K.transformFlags=d.transformFlags,Z(K,d);for(var Ae in d)K.hasOwnProperty(Ae)||!d.hasOwnProperty(Ae)||(K[Ae]=d[Ae]);return K}function b(d,K,Ae){return Ta(xn(void 0,void 0,void 0,void 0,K?[K]:[],void 0,Ja(d,!0)),void 0,Ae?[Ae]:[])}function rr(d,K,Ae){return Ta(An(void 0,void 0,K?[K]:[],void 0,void 0,Ja(d,!0)),void 0,Ae?[Ae]:[])}function ai(){return zr(he("0"))}function Wi(d){return o_(void 0,void 0,!1,d)}function At(d){return af(void 0,void 0,!1,B_([Mf(!1,void 0,d)]))}function ra(d,K){return K==="undefined"?ve.createStrictEquality(d,ai()):ve.createStrictEquality(co(d),Se(K))}function La(d,K,Ae){return e.isCallChain(d)?so(_i(d,void 0,K),void 0,void 0,Ae):Ta(nr(d,K),void 0,Ae)}function fn(d,K,Ae){return La(d,"bind",qe([K],Ae,!0))}function Bo(d,K,Ae){return La(d,"call",qe([K],Ae,!0))}function Yo(d,K,Ae){return La(d,"apply",[K,Ae])}function jo(d,K,Ae){return La(dr(d),K,Ae)}function cc(d,K){return La(d,"slice",K===void 0?[]:[ru(K)])}function qs(d,K){return La(d,"concat",K)}function uc(d,K,Ae){return jo("Object","defineProperty",[d,ru(K),Ae])}function hu(d,K,Ae){return jo("Reflect","get",Ae?[d,K,Ae]:[d,K])}function $l(d,K,Ae,tr){return jo("Reflect","set",tr?[d,K,Ae,tr]:[d,K,Ae])}function Qs(d,K,Ae){return Ae?(d.push(z_(K,Ae)),!0):!1}function Au(d,K){var Ae=[];Qs(Ae,"enumerable",ru(d.enumerable)),Qs(Ae,"configurable",ru(d.configurable));var tr=Qs(Ae,"writable",ru(d.writable));tr=Qs(Ae,"value",d.value)||tr;var $r=Qs(Ae,"get",d.get);return $r=Qs(Ae,"set",d.set)||$r,e.Debug.assert(!(tr&&$r),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ee(Ae,!K)}function Id(d,K){switch(d.kind){case 211:return ga(d,K);case 210:return Mi(d,d.type,K);case 228:return fi(d,K,d.type);case 229:return rt(d,K);case 348:return yu(d,K)}}function K_(d){return e.isParenthesizedExpression(d)&&e.nodeIsSynthesized(d)&&e.nodeIsSynthesized(e.getSourceMapRange(d))&&e.nodeIsSynthesized(e.getCommentRange(d))&&!e.some(e.getSyntheticLeadingComments(d))&&!e.some(e.getSyntheticTrailingComments(d))}function Ec(d,K,Ae){return Ae===void 0&&(Ae=15),d&&e.isOuterExpression(d,Ae)&&!K_(d)?Id(d,Ec(d.expression,K)):K}function Zl(d,K,Ae){if(!K)return d;var tr=i_(K,K.label,e.isLabeledStatement(K.statement)?Zl(d,K.statement):d);return Ae&&Ae(K),tr}function Ie(d,K){var Ae=e.skipParentheses(d);switch(Ae.kind){case 79:return K;case 108:case 8:case 9:case 10:return!1;case 203:var tr=Ae.elements;return tr.length!==0;case 204:return Ae.properties.length>0;default:return!0}}function kr(d,K,Ae,tr){tr===void 0&&(tr=!1);var $r=e.skipOuterExpressions(d,15),Zi,dt;return e.isSuperProperty($r)?(Zi=Cr(),dt=$r):e.isSuperKeyword($r)?(Zi=Cr(),dt=Ae!==void 0&&Ae<2?e.setTextRange(dr("_super"),$r):$r):e.getEmitFlags($r)&4096?(Zi=ai(),dt=f().parenthesizeLeftSideOfAccess($r)):e.isPropertyAccessExpression($r)?Ie($r.expression,tr)?(Zi=Tr(K),dt=nr(e.setTextRange(ve.createAssignment(Zi,$r.expression),$r.expression),$r.name),e.setTextRange(dt,$r)):(Zi=$r.expression,dt=$r):e.isElementAccessExpression($r)?Ie($r.expression,tr)?(Zi=Tr(K),dt=Ki(e.setTextRange(ve.createAssignment(Zi,$r.expression),$r.expression),$r.argumentExpression),e.setTextRange(dt,$r)):(Zi=$r.expression,dt=$r):(Zi=ai(),dt=f().parenthesizeLeftSideOfAccess(d)),{target:dt,thisArg:Zi}}function Hr(d,K){return nr($t(Ee([Oe(void 0,void 0,"value",[ft(void 0,void 0,void 0,d,void 0,void 0,void 0)],Ja([Te(K)]))])),"value")}function vi(d){return d.length>10?sl(d):e.reduceLeft(d,ve.createComma)}function Li(d,K,Ae,tr){tr===void 0&&(tr=0);var $r=e.getNameOfDeclaration(d);if($r&&e.isIdentifier($r)&&!e.isGeneratedIdentifier($r)){var Zi=e.setParent(e.setTextRange(eu($r),$r),$r.parent);return tr|=e.getEmitFlags($r),Ae||(tr|=48),K||(tr|=1536),tr&&e.setEmitFlags(Zi,tr),Zi}return br(d)}function ot(d,K,Ae){return Li(d,K,Ae,49152)}function zt(d,K,Ae){return Li(d,K,Ae,16384)}function la(d,K,Ae){return Li(d,K,Ae,8192)}function ja(d,K,Ae){return Li(d,K,Ae)}function Oa(d,K,Ae,tr){var $r=nr(d,e.nodeIsSynthesized(K)?K:eu(K));e.setTextRange($r,K);var Zi=0;return tr||(Zi|=48),Ae||(Zi|=1536),Zi&&e.setEmitFlags($r,Zi),$r}function eo(d,K,Ae,tr){return d&&e.hasSyntacticModifier(K,1)?Oa(d,Li(K),Ae,tr):la(K,Ae,tr)}function $o(d,K,Ae,tr){var $r=Es(d,K,0,Ae);return vc(d,K,$r,tr)}function fo(d){return e.isStringLiteral(d.expression)&&d.expression.text==="use strict"}function es(){return e.startOnNewLine(Te(Se("use strict")))}function Es(d,K,Ae,tr){Ae===void 0&&(Ae=0),e.Debug.assert(K.length===0,"Prologue directives should be at the first statement in the target statements array");for(var $r=!1,Zi=d.length;Ae<Zi;){var dt=d[Ae];if(e.isPrologueDirective(dt))fo(dt)&&($r=!0),K.push(dt);else break;Ae++}return tr&&!$r&&K.push(es()),Ae}function vc(d,K,Ae,tr,$r){$r===void 0&&($r=e.returnTrue);for(var Zi=d.length;Ae!==void 0&&Ae<Zi;){var dt=d[Ae];if(e.getEmitFlags(dt)&1048576&&$r(dt))e.append(K,tr?e.visitNode(dt,tr,e.isStatement):dt);else break;Ae++}return Ae}function lc(d){var K=e.findUseStrictPrologue(d);return K?d:e.setTextRange(ce(qe([es()],d,!0)),d)}function cl(d){return e.Debug.assert(e.every(d,e.isStatementOrBlock),"Cannot lift nodes to a Block."),e.singleOrUndefined(d)||Ja(d)}function Is(d,K,Ae){for(var tr=Ae;tr<d.length&&K(d[tr]);)tr++;return tr}function yf(d,K){if(!e.some(K))return d;var Ae=Is(d,e.isPrologueDirective,0),tr=Is(d,e.isHoistedFunction,Ae),$r=Is(d,e.isHoistedVariableStatement,tr),Zi=Is(K,e.isPrologueDirective,0),dt=Is(K,e.isHoistedFunction,Zi),_n=Is(K,e.isHoistedVariableStatement,dt),Zo=Is(K,e.isCustomPrologue,_n);e.Debug.assert(Zo===K.length,"Expected declarations to be valid standard or custom prologues");var Bs=e.isNodeArray(d)?d.slice():d;if(Zo>_n&&Bs.splice.apply(Bs,qe([$r,0],K.slice(_n,Zo),!1)),_n>dt&&Bs.splice.apply(Bs,qe([tr,0],K.slice(dt,_n),!1)),dt>Zi&&Bs.splice.apply(Bs,qe([Ae,0],K.slice(Zi,dt),!1)),Zi>0)if(Ae===0)Bs.splice.apply(Bs,qe([0,0],K.slice(0,Zi),!1));else{for(var ad=new e.Map,hf=0;hf<Ae;hf++){var Ag=d[hf];ad.set(Ag.expression.text,!0)}for(var hf=Zi-1;hf>=0;hf--){var v_=K[hf];ad.has(v_.expression.text)||Bs.unshift(v_)}}return e.isNodeArray(d)?e.setTextRange(ce(Bs,d.hasTrailingComma),d):d}function g_(d,K){var Ae,tr;return typeof K=="number"?tr=be(K):tr=K,e.isParameter(d)?bt(d,d.decorators,tr,d.dotDotDotToken,d.name,d.questionToken,d.type,d.initializer):e.isPropertySignature(d)?di(d,tr,d.name,d.questionToken,d.type):e.isPropertyDeclaration(d)?Ye(d,d.decorators,tr,d.name,(Ae=d.questionToken)!==null&&Ae!==void 0?Ae:d.exclamationToken,d.type,d.initializer):e.isMethodSignature(d)?Qe(d,tr,d.name,d.questionToken,d.typeParameters,d.parameters,d.type):e.isMethodDeclaration(d)?hr(d,d.decorators,tr,d.asteriskToken,d.name,d.questionToken,d.typeParameters,d.parameters,d.type,d.body):e.isConstructorDeclaration(d)?xe(d,d.decorators,tr,d.parameters,d.body):e.isGetAccessorDeclaration(d)?Je(d,d.decorators,tr,d.name,d.parameters,d.type,d.body):e.isSetAccessorDeclaration(d)?Fr(d,d.decorators,tr,d.name,d.parameters,d.body):e.isIndexSignatureDeclaration(d)?Ur(d,d.decorators,tr,d.parameters,d.type):e.isFunctionExpression(d)?yn(d,tr,d.asteriskToken,d.name,d.typeParameters,d.parameters,d.type,d.body):e.isArrowFunction(d)?Pa(d,tr,d.typeParameters,d.parameters,d.type,d.equalsGreaterThanToken,d.body):e.isClassExpression(d)?qa(d,d.decorators,tr,d.name,d.typeParameters,d.heritageClauses,d.members):e.isVariableStatement(d)?lo(d,tr,d.declarationList):e.isFunctionDeclaration(d)?Ju(d,d.decorators,tr,d.asteriskToken,d.name,d.typeParameters,d.parameters,d.type,d.body):e.isClassDeclaration(d)?fp(d,d.decorators,tr,d.name,d.typeParameters,d.heritageClauses,d.members):e.isInterfaceDeclaration(d)?Xp(d,d.decorators,tr,d.name,d.typeParameters,d.heritageClauses,d.members):e.isTypeAliasDeclaration(d)?el(d,d.decorators,tr,d.name,d.typeParameters,d.type):e.isEnumDeclaration(d)?O_(d,d.decorators,tr,d.name,d.members):e.isModuleDeclaration(d)?Nc(d,d.decorators,tr,d.name,d.body):e.isImportEqualsDeclaration(d)?gp(d,d.decorators,tr,d.isTypeOnly,d.name,d.moduleReference):e.isImportDeclaration(d)?$p(d,d.decorators,tr,d.importClause,d.moduleSpecifier,d.assertClause):e.isExportAssignment(d)?R_(d,d.decorators,tr,d.expression):e.isExportDeclaration(d)?yp(d,d.decorators,tr,d.isTypeOnly,d.exportClause,d.moduleSpecifier,d.assertClause):e.Debug.assertNever(d)}function wc(d){return d?ce(d):void 0}function bc(d){return typeof d=="string"?dr(d):d}function ru(d){return typeof d=="string"?Se(d):typeof d=="number"?he(d):typeof d=="boolean"?d?Jr():Rr():d}function m_(d){return typeof d=="number"?Le(d):d}function Wu(d){return d&&e.isNotEmittedStatement(d)?e.setTextRange(Z(Kn(),d),d):d}}e.createNodeFactory=L;function W(ne,ee){return ne!==ee&&e.setTextRange(ne,ee),ne}function N(ne,ee){return ne!==ee&&(Z(ne,ee),e.setTextRange(ne,ee)),ne}function Q(ne){switch(ne){case 341:return"type";case 339:return"returns";case 340:return"this";case 337:return"enum";case 328:return"author";case 330:return"class";case 331:return"public";case 332:return"private";case 333:return"protected";case 334:return"readonly";case 335:return"override";case 342:return"template";case 343:return"typedef";case 338:return"param";case 345:return"prop";case 336:return"callback";case 326:return"augments";case 327:return"implements";default:return e.Debug.fail("Unsupported kind: ".concat(e.Debug.formatSyntaxKind(ne)))}}var pe,F={};function g(ne,ee){switch(pe||(pe=e.createScanner(99,!1,0)),ne){case 14:pe.setText("`"+ee+"`");break;case 15:pe.setText("`"+ee+"${");break;case 16:pe.setText("}"+ee+"${");break;case 17:pe.setText("}"+ee+"`");break}var A=pe.scan();if(A===19&&(A=pe.reScanTemplateToken(!1)),pe.isUnterminated())return pe.setText(void 0),F;var f;switch(A){case 14:case 15:case 16:case 17:f=pe.getTokenValue();break}return f===void 0||pe.scan()!==1?(pe.setText(void 0),F):(pe.setText(void 0),f)}function S(ne){return se(ne)&-16777217}function H(ne,ee){return ee|ne.transformFlags&33562624}function se(ne){if(!ne)return 0;var ee=ne.transformFlags&~G(ne.kind);return e.isNamedDeclaration(ne)&&e.isPropertyName(ne.name)?H(ne.name,ee):ee}function p(ne){return ne?ne.transformFlags:0}function C(ne){for(var ee=0,A=0,f=ne;A<f.length;A++){var P=f[A];ee|=se(P)}ne.transformFlags=ee}function G(ne){if(ne>=176&&ne<=199)return-2;switch(ne){case 207:case 208:case 203:return 536887296;case 260:return 589443072;case 163:return 536870912;case 213:return 557748224;case 212:case 255:return 591310848;case 254:return 537165824;case 256:case 225:return 536940544;case 170:return 591306752;case 166:return 570433536;case 168:case 171:case 172:return 574529536;case 130:case 146:case 157:case 143:case 149:case 147:case 133:case 150:case 114:case 162:case 165:case 167:case 173:case 174:case 175:case 257:case 258:return-2;case 204:return 536973312;case 291:return 536903680;case 200:case 201:return 536887296;case 210:case 228:case 348:case 211:case 106:return 536870912;case 205:case 206:return 536870912;default:return 536870912}}e.getTransformFlagsSubtreeExclusions=G;var E=e.createBaseNodeFactory();function ue(ne){return ne.flags|=8,ne}var B={createBaseSourceFileNode:function(ne){return ue(E.createBaseSourceFileNode(ne))},createBaseIdentifierNode:function(ne){return ue(E.createBaseIdentifierNode(ne))},createBasePrivateIdentifierNode:function(ne){return ue(E.createBasePrivateIdentifierNode(ne))},createBaseTokenNode:function(ne){return ue(E.createBaseTokenNode(ne))},createBaseNode:function(ne){return ue(E.createBaseNode(ne))}};e.factory=L(4,B);function re(ne,ee,A){var f,P,D,l,_,J,w,j,U,z;e.isString(ne)?(D="",l=ne,_=ne.length,J=ee,w=A):(e.Debug.assert(ee==="js"||ee==="dts"),D=(ee==="js"?ne.javascriptPath:ne.declarationPath)||"",J=ee==="js"?ne.javascriptMapPath:ne.declarationMapPath,j=function(){return ee==="js"?ne.javascriptText:ne.declarationText},U=function(){return ee==="js"?ne.javascriptMapText:ne.declarationMapText},_=function(){return j().length},ne.buildInfo&&ne.buildInfo.bundle&&(e.Debug.assert(A===void 0||typeof A=="boolean"),f=A,P=ee==="js"?ne.buildInfo.bundle.js:ne.buildInfo.bundle.dts,z=ne.oldFileOfCurrentEmit));var y=z?x(e.Debug.checkDefined(P)):M(P,f,_);return y.fileName=D,y.sourceMapPath=J,y.oldFileOfCurrentEmit=z,j&&U?(Object.defineProperty(y,"text",{get:j}),Object.defineProperty(y,"sourceMapText",{get:U})):(e.Debug.assert(!z),y.text=l!=null?l:"",y.sourceMapText=w),y}e.createUnparsedSourceFile=re;function M(ne,ee,A){for(var f,P,D,l,_,J,w,j,U=0,z=ne?ne.sections:e.emptyArray;U<z.length;U++){var y=z[U];switch(y.kind){case"prologue":f=e.append(f,e.setTextRange(e.factory.createUnparsedPrologue(y.data),y));break;case"emitHelpers":P=e.append(P,e.getAllUnscopedEmitHelpers().get(y.data));break;case"no-default-lib":j=!0;break;case"reference":D=e.append(D,{pos:-1,end:-1,fileName:y.data});break;case"type":l=e.append(l,y.data);break;case"lib":_=e.append(_,{pos:-1,end:-1,fileName:y.data});break;case"prepend":for(var oe=void 0,ve=0,ce=y.texts;ve<ce.length;ve++){var m=ce[ve];(!ee||m.kind!=="internal")&&(oe=e.append(oe,e.setTextRange(e.factory.createUnparsedTextLike(m.data,m.kind==="internal"),m)))}J=e.addRange(J,oe),w=e.append(w,e.factory.createUnparsedPrepend(y.data,oe!=null?oe:e.emptyArray));break;case"internal":if(ee){w||(w=[]);break}case"text":w=e.append(w,e.setTextRange(e.factory.createUnparsedTextLike(y.data,y.kind==="internal"),y));break;default:e.Debug.assertNever(y)}}if(!w){var de=e.factory.createUnparsedTextLike(void 0,!1);e.setTextRangePosWidth(de,0,typeof A=="function"?A():A),w=[de]}var ae=e.parseNodeFactory.createUnparsedSource(f!=null?f:e.emptyArray,void 0,w);return e.setEachParent(f,ae),e.setEachParent(w,ae),e.setEachParent(J,ae),ae.hasNoDefaultLib=j,ae.helpers=P,ae.referencedFiles=D||e.emptyArray,ae.typeReferenceDirectives=l,ae.libReferenceDirectives=_||e.emptyArray,ae}function x(ne){for(var ee,A,f=0,P=ne.sections;f<P.length;f++){var D=P[f];switch(D.kind){case"internal":case"text":ee=e.append(ee,e.setTextRange(e.factory.createUnparsedTextLike(D.data,D.kind==="internal"),D));break;case"no-default-lib":case"reference":case"type":case"lib":A=e.append(A,e.setTextRange(e.factory.createUnparsedSyntheticReference(D),D));break;case"prologue":case"emitHelpers":case"prepend":break;default:e.Debug.assertNever(D)}}var l=e.factory.createUnparsedSource(e.emptyArray,A,ee!=null?ee:e.emptyArray);return e.setEachParent(A,l),e.setEachParent(ee,l),l.helpers=e.map(ne.sources&&ne.sources.helpers,function(_){return e.getAllUnscopedEmitHelpers().get(_)}),l}function ie(ne,ee,A,f,P,D,l,_,J,w,j){var U=e.parseNodeFactory.createInputFiles();if(e.isString(ne))U.javascriptText=ne,U.javascriptMapPath=A,U.javascriptMapText=f,U.declarationText=ee,U.declarationMapPath=P,U.declarationMapText=D,U.javascriptPath=l,U.declarationPath=_,U.buildInfoPath=J,U.buildInfo=w,U.oldFileOfCurrentEmit=j;else{var z=new e.Map,y=function(m){if(m!==void 0){var de=z.get(m);return de===void 0&&(de=ne(m),z.set(m,de!==void 0?de:!1)),de!==!1?de:void 0}},oe=function(m){var de=y(m);return de!==void 0?de:"/* Input file ".concat(m,` was missing */\r
`)},ve,ce=function(m){if(ve===void 0){var de=m();ve=de!==void 0?e.getBuildInfo(de):!1}return ve||void 0};U.javascriptPath=ee,U.javascriptMapPath=A,U.declarationPath=e.Debug.checkDefined(f),U.declarationMapPath=P,U.buildInfoPath=D,Object.defineProperties(U,{javascriptText:{get:function(){return oe(ee)}},javascriptMapText:{get:function(){return y(A)}},declarationText:{get:function(){return oe(e.Debug.checkDefined(f))}},declarationMapText:{get:function(){return y(P)}},buildInfo:{get:function(){return ce(function(){return y(D)})}}})}return U}e.createInputFiles=ie;var _e;function Y(ne,ee,A){return new(_e||(_e=e.objectAllocator.getSourceMapSourceConstructor()))(ne,ee,A)}e.createSourceMapSource=Y;function Z(ne,ee){if(ne.original=ee,ee){var A=ee.emitNode;A&&(ne.emitNode=k(A,ne.emitNode))}return ne}e.setOriginalNode=Z;function k(ne,ee){var A=ne.flags,f=ne.leadingComments,P=ne.trailingComments,D=ne.commentRange,l=ne.sourceMapRange,_=ne.tokenSourceMapRanges,J=ne.constantValue,w=ne.helpers,j=ne.startsOnNewLine;if(ee||(ee={}),f&&(ee.leadingComments=e.addRange(f.slice(),ee.leadingComments)),P&&(ee.trailingComments=e.addRange(P.slice(),ee.trailingComments)),A&&(ee.flags=A&-268435457),D&&(ee.commentRange=D),l&&(ee.sourceMapRange=l),_&&(ee.tokenSourceMapRanges=I(_,ee.tokenSourceMapRanges)),J!==void 0&&(ee.constantValue=J),w)for(var U=0,z=w;U<z.length;U++){var y=z[U];ee.helpers=e.appendIfUnique(ee.helpers,y)}return j!==void 0&&(ee.startsOnNewLine=j),ee}function I(ne,ee){ee||(ee=[]);for(var A in ne)ee[A]=ne[A];return ee}})(Pe||(Pe={}));var Pe;(function(e){function a(f){var P;if(f.emitNode)e.Debug.assert(!(f.emitNode.flags&268435456),"Invalid attempt to mutate an immutable node.");else{if(e.isParseTreeNode(f)){if(f.kind===303)return f.emitNode={annotatedNodes:[f]};var D=(P=e.getSourceFileOfNode(e.getParseTreeNode(e.getSourceFileOfNode(f))))!==null&&P!==void 0?P:e.Debug.fail("Could not determine parsed source file.");a(D).annotatedNodes.push(f)}f.emitNode={}}return f.emitNode}e.getOrCreateEmitNode=a;function O(f){var P,D,l=(D=(P=e.getSourceFileOfNode(e.getParseTreeNode(f)))===null||P===void 0?void 0:P.emitNode)===null||D===void 0?void 0:D.annotatedNodes;if(l)for(var _=0,J=l;_<J.length;_++){var w=J[_];w.emitNode=void 0}}e.disposeEmitNodes=O;function L(f){var P=a(f);return P.flags|=1536,P.leadingComments=void 0,P.trailingComments=void 0,f}e.removeAllComments=L;function W(f,P){return a(f).flags=P,f}e.setEmitFlags=W;function N(f,P){var D=a(f);return D.flags=D.flags|P,f}e.addEmitFlags=N;function Q(f){var P,D;return(D=(P=f.emitNode)===null||P===void 0?void 0:P.sourceMapRange)!==null&&D!==void 0?D:f}e.getSourceMapRange=Q;function pe(f,P){return a(f).sourceMapRange=P,f}e.setSourceMapRange=pe;function F(f,P){var D,l;return(l=(D=f.emitNode)===null||D===void 0?void 0:D.tokenSourceMapRanges)===null||l===void 0?void 0:l[P]}e.getTokenSourceMapRange=F;function g(f,P,D){var l,_=a(f),J=(l=_.tokenSourceMapRanges)!==null&&l!==void 0?l:_.tokenSourceMapRanges=[];return J[P]=D,f}e.setTokenSourceMapRange=g;function S(f){var P;return(P=f.emitNode)===null||P===void 0?void 0:P.startsOnNewLine}e.getStartsOnNewLine=S;function H(f,P){return a(f).startsOnNewLine=P,f}e.setStartsOnNewLine=H;function se(f){var P,D;return(D=(P=f.emitNode)===null||P===void 0?void 0:P.commentRange)!==null&&D!==void 0?D:f}e.getCommentRange=se;function p(f,P){return a(f).commentRange=P,f}e.setCommentRange=p;function C(f){var P;return(P=f.emitNode)===null||P===void 0?void 0:P.leadingComments}e.getSyntheticLeadingComments=C;function G(f,P){return a(f).leadingComments=P,f}e.setSyntheticLeadingComments=G;function E(f,P,D,l){return G(f,e.append(C(f),{kind:P,pos:-1,end:-1,hasTrailingNewLine:l,text:D}))}e.addSyntheticLeadingComment=E;function ue(f){var P;return(P=f.emitNode)===null||P===void 0?void 0:P.trailingComments}e.getSyntheticTrailingComments=ue;function B(f,P){return a(f).trailingComments=P,f}e.setSyntheticTrailingComments=B;function re(f,P,D,l){return B(f,e.append(ue(f),{kind:P,pos:-1,end:-1,hasTrailingNewLine:l,text:D}))}e.addSyntheticTrailingComment=re;function M(f,P){G(f,C(P)),B(f,ue(P));var D=a(P);return D.leadingComments=void 0,D.trailingComments=void 0,f}e.moveSyntheticComments=M;function x(f){var P;return(P=f.emitNode)===null||P===void 0?void 0:P.constantValue}e.getConstantValue=x;function ie(f,P){var D=a(f);return D.constantValue=P,f}e.setConstantValue=ie;function _e(f,P){var D=a(f);return D.helpers=e.append(D.helpers,P),f}e.addEmitHelper=_e;function Y(f,P){if(e.some(P))for(var D=a(f),l=0,_=P;l<_.length;l++){var J=_[l];D.helpers=e.appendIfUnique(D.helpers,J)}return f}e.addEmitHelpers=Y;function Z(f,P){var D,l=(D=f.emitNode)===null||D===void 0?void 0:D.helpers;return l?e.orderedRemoveItem(l,P):!1}e.removeEmitHelper=Z;function k(f){var P;return(P=f.emitNode)===null||P===void 0?void 0:P.helpers}e.getEmitHelpers=k;function I(f,P,D){var l=f.emitNode,_=l&&l.helpers;if(!!e.some(_)){for(var J=a(P),w=0,j=0;j<_.length;j++){var U=_[j];D(U)?(w++,J.helpers=e.appendIfUnique(J.helpers,U)):w>0&&(_[j-w]=U)}w>0&&(_.length-=w)}}e.moveEmitHelpers=I;function ne(f){var P;return(P=f.emitNode)===null||P===void 0?void 0:P.snippetElement}e.getSnippetElement=ne;function ee(f,P){var D=a(f);return D.snippetElement=P,f}e.setSnippetElement=ee;function A(f){return a(f).flags|=134217728,f}e.ignoreSourceNewlines=A})(Pe||(Pe={}));var Pe;(function(e){function a(pe){var F=pe.factory,g=e.memoize(function(){return e.setEmitFlags(F.createTrue(),268435456)}),S=e.memoize(function(){return e.setEmitFlags(F.createFalse(),268435456)});return{getUnscopedHelperName:H,createDecorateHelper:se,createMetadataHelper:p,createParamHelper:C,createAssignHelper:G,createAwaitHelper:E,createAsyncGeneratorHelper:ue,createAsyncDelegatorHelper:B,createAsyncValuesHelper:re,createRestHelper:M,createAwaiterHelper:x,createExtendsHelper:ie,createTemplateObjectHelper:_e,createSpreadArrayHelper:Y,createValuesHelper:Z,createReadHelper:k,createGeneratorHelper:I,createCreateBindingHelper:ne,createImportStarHelper:ee,createImportStarCallbackHelper:A,createImportDefaultHelper:f,createExportStarHelper:P,createClassPrivateFieldGetHelper:D,createClassPrivateFieldSetHelper:l,createClassPrivateFieldInHelper:_};function H(J){return e.setEmitFlags(F.createIdentifier(J),4098)}function se(J,w,j,U){pe.requestEmitHelper(e.decorateHelper);var z=[];return z.push(F.createArrayLiteralExpression(J,!0)),z.push(w),j&&(z.push(j),U&&z.push(U)),F.createCallExpression(H("__decorate"),void 0,z)}function p(J,w){return pe.requestEmitHelper(e.metadataHelper),F.createCallExpression(H("__metadata"),void 0,[F.createStringLiteral(J),w])}function C(J,w,j){return pe.requestEmitHelper(e.paramHelper),e.setTextRange(F.createCallExpression(H("__param"),void 0,[F.createNumericLiteral(w+""),J]),j)}function G(J){return e.getEmitScriptTarget(pe.getCompilerOptions())>=2?F.createCallExpression(F.createPropertyAccessExpression(F.createIdentifier("Object"),"assign"),void 0,J):(pe.requestEmitHelper(e.assignHelper),F.createCallExpression(H("__assign"),void 0,J))}function E(J){return pe.requestEmitHelper(e.awaitHelper),F.createCallExpression(H("__await"),void 0,[J])}function ue(J,w){return pe.requestEmitHelper(e.awaitHelper),pe.requestEmitHelper(e.asyncGeneratorHelper),(J.emitNode||(J.emitNode={})).flags|=786432,F.createCallExpression(H("__asyncGenerator"),void 0,[w?F.createThis():F.createVoidZero(),F.createIdentifier("arguments"),J])}function B(J){return pe.requestEmitHelper(e.awaitHelper),pe.requestEmitHelper(e.asyncDelegator),F.createCallExpression(H("__asyncDelegator"),void 0,[J])}function re(J){return pe.requestEmitHelper(e.asyncValues),F.createCallExpression(H("__asyncValues"),void 0,[J])}function M(J,w,j,U){pe.requestEmitHelper(e.restHelper);for(var z=[],y=0,oe=0;oe<w.length-1;oe++){var ve=e.getPropertyNameOfBindingOrAssignmentElement(w[oe]);if(ve)if(e.isComputedPropertyName(ve)){e.Debug.assertIsDefined(j,"Encountered computed property name but 'computedTempVariables' argument was not provided.");var ce=j[y];y++,z.push(F.createConditionalExpression(F.createTypeCheck(ce,"symbol"),void 0,ce,void 0,F.createAdd(ce,F.createStringLiteral(""))))}else z.push(F.createStringLiteralFromNode(ve))}return F.createCallExpression(H("__rest"),void 0,[J,e.setTextRange(F.createArrayLiteralExpression(z),U)])}function x(J,w,j,U){pe.requestEmitHelper(e.awaiterHelper);var z=F.createFunctionExpression(void 0,F.createToken(41),void 0,void 0,[],void 0,U);return(z.emitNode||(z.emitNode={})).flags|=786432,F.createCallExpression(H("__awaiter"),void 0,[J?F.createThis():F.createVoidZero(),w?F.createIdentifier("arguments"):F.createVoidZero(),j?e.createExpressionFromEntityName(F,j):F.createVoidZero(),z])}function ie(J){return pe.requestEmitHelper(e.extendsHelper),F.createCallExpression(H("__extends"),void 0,[J,F.createUniqueName("_super",48)])}function _e(J,w){return pe.requestEmitHelper(e.templateObjectHelper),F.createCallExpression(H("__makeTemplateObject"),void 0,[J,w])}function Y(J,w,j){return pe.requestEmitHelper(e.spreadArrayHelper),F.createCallExpression(H("__spreadArray"),void 0,[J,w,j?g():S()])}function Z(J){return pe.requestEmitHelper(e.valuesHelper),F.createCallExpression(H("__values"),void 0,[J])}function k(J,w){return pe.requestEmitHelper(e.readHelper),F.createCallExpression(H("__read"),void 0,w!==void 0?[J,F.createNumericLiteral(w+"")]:[J])}function I(J){return pe.requestEmitHelper(e.generatorHelper),F.createCallExpression(H("__generator"),void 0,[F.createThis(),J])}function ne(J,w,j){return pe.requestEmitHelper(e.createBindingHelper),F.createCallExpression(H("__createBinding"),void 0,qe([F.createIdentifier("exports"),J,w],j?[j]:[],!0))}function ee(J){return pe.requestEmitHelper(e.importStarHelper),F.createCallExpression(H("__importStar"),void 0,[J])}function A(){return pe.requestEmitHelper(e.importStarHelper),H("__importStar")}function f(J){return pe.requestEmitHelper(e.importDefaultHelper),F.createCallExpression(H("__importDefault"),void 0,[J])}function P(J,w){return w===void 0&&(w=F.createIdentifier("exports")),pe.requestEmitHelper(e.exportStarHelper),pe.requestEmitHelper(e.createBindingHelper),F.createCallExpression(H("__exportStar"),void 0,[J,w])}function D(J,w,j,U){pe.requestEmitHelper(e.classPrivateFieldGetHelper);var z;return U?z=[J,w,F.createStringLiteral(j),U]:z=[J,w,F.createStringLiteral(j)],F.createCallExpression(H("__classPrivateFieldGet"),void 0,z)}function l(J,w,j,U,z){pe.requestEmitHelper(e.classPrivateFieldSetHelper);var y;return z?y=[J,w,j,F.createStringLiteral(U),z]:y=[J,w,j,F.createStringLiteral(U)],F.createCallExpression(H("__classPrivateFieldSet"),void 0,y)}function _(J,w){return pe.requestEmitHelper(e.classPrivateFieldInHelper),F.createCallExpression(H("__classPrivateFieldIn"),void 0,[J,w])}}e.createEmitHelperFactory=a;function O(pe,F){return pe===F||pe.priority===F.priority?0:pe.priority===void 0?1:F.priority===void 0?-1:e.compareValues(pe.priority,F.priority)}e.compareEmitHelpers=O;function L(pe){for(var F=[],g=1;g<arguments.length;g++)F[g-1]=arguments[g];return function(S){for(var H="",se=0;se<F.length;se++)H+=pe[se],H+=S(F[se]);return H+=pe[pe.length-1],H}}e.helperString=L,e.decorateHelper={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:`
            var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
                var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
                if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
                else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
                return c > 3 && r && Object.defineProperty(target, key, r), r;
            };`},e.metadataHelper={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:`
            var __metadata = (this && this.__metadata) || function (k, v) {
                if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
            };`},e.paramHelper={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:`
            var __param = (this && this.__param) || function (paramIndex, decorator) {
                return function (target, key) { decorator(target, key, paramIndex); }
            };`},e.assignHelper={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:`
            var __assign = (this && this.__assign) || function () {
                __assign = Object.assign || function(t) {
                    for (var s, i = 1, n = arguments.length; i < n; i++) {
                        s = arguments[i];
                        for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                            t[p] = s[p];
                    }
                    return t;
                };
                return __assign.apply(this, arguments);
            };`},e.awaitHelper={name:"typescript:await",importName:"__await",scoped:!1,text:`
            var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},e.asyncGeneratorHelper={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[e.awaitHelper],text:`
            var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
                if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
                var g = generator.apply(thisArg, _arguments || []), i, q = [];
                return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
                function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
                function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
                function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
                function fulfill(value) { resume("next", value); }
                function reject(value) { resume("throw", value); }
                function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
            };`},e.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[e.awaitHelper],text:`
            var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {
                var i, p;
                return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
                function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
            };`},e.asyncValues={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:`
            var __asyncValues = (this && this.__asyncValues) || function (o) {
                if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
                var m = o[Symbol.asyncIterator], i;
                return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
                function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
                function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
            };`},e.restHelper={name:"typescript:rest",importName:"__rest",scoped:!1,text:`
            var __rest = (this && this.__rest) || function (s, e) {
                var t = {};
                for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
                    t[p] = s[p];
                if (s != null && typeof Object.getOwnPropertySymbols === "function")
                    for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
                        if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                            t[p[i]] = s[p[i]];
                    }
                return t;
            };`},e.awaiterHelper={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:`
            var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
                function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
                return new (P || (P = Promise))(function (resolve, reject) {
                    function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
                    function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
                    function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
                    step((generator = generator.apply(thisArg, _arguments || [])).next());
                });
            };`},e.extendsHelper={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:`
            var __extends = (this && this.__extends) || (function () {
                var extendStatics = function (d, b) {
                    extendStatics = Object.setPrototypeOf ||
                        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
                        function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
                    return extendStatics(d, b);
                };
                return function (d, b) {
                    if (typeof b !== "function" && b !== null)
                        throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
                    extendStatics(d, b);
                    function __() { this.constructor = d; }
                    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
                };
            })();`},e.templateObjectHelper={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:`
            var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
                if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
                return cooked;
            };`},e.readHelper={name:"typescript:read",importName:"__read",scoped:!1,text:`
            var __read = (this && this.__read) || function (o, n) {
                var m = typeof Symbol === "function" && o[Symbol.iterator];
                if (!m) return o;
                var i = m.call(o), r, ar = [], e;
                try {
                    while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
                }
                catch (error) { e = { error: error }; }
                finally {
                    try {
                        if (r && !r.done && (m = i["return"])) m.call(i);
                    }
                    finally { if (e) throw e.error; }
                }
                return ar;
            };`},e.spreadArrayHelper={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:`
            var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
                if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
                    if (ar || !(i in from)) {
                        if (!ar) ar = Array.prototype.slice.call(from, 0, i);
                        ar[i] = from[i];
                    }
                }
                return to.concat(ar || Array.prototype.slice.call(from));
            };`},e.valuesHelper={name:"typescript:values",importName:"__values",scoped:!1,text:`
            var __values = (this && this.__values) || function(o) {
                var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
                if (m) return m.call(o);
                if (o && typeof o.length === "number") return {
                    next: function () {
                        if (o && i >= o.length) o = void 0;
                        return { value: o && o[i++], done: !o };
                    }
                };
                throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
            };`},e.generatorHelper={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:`
            var __generator = (this && this.__generator) || function (thisArg, body) {
                var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
                return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
                function verb(n) { return function (v) { return step([n, v]); }; }
                function step(op) {
                    if (f) throw new TypeError("Generator is already executing.");
                    while (_) try {
                        if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
                        if (y = 0, t) op = [op[0] & 2, t.value];
                        switch (op[0]) {
                            case 0: case 1: t = op; break;
                            case 4: _.label++; return { value: op[1], done: false };
                            case 5: _.label++; y = op[1]; op = [0]; continue;
                            case 7: op = _.ops.pop(); _.trys.pop(); continue;
                            default:
                                if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                                if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                                if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                                if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                                if (t[2]) _.ops.pop();
                                _.trys.pop(); continue;
                        }
                        op = body.call(thisArg, _);
                    } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
                    if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
                }
            };`},e.createBindingHelper={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:`
            var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
                if (k2 === undefined) k2 = k;
                var desc = Object.getOwnPropertyDescriptor(m, k);
                if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
                  desc = { enumerable: true, get: function() { return m[k]; } };
                }
                Object.defineProperty(o, k2, desc);
            }) : (function(o, m, k, k2) {
                if (k2 === undefined) k2 = k;
                o[k2] = m[k];
            }));`},e.setModuleDefaultHelper={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:`
            var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
                Object.defineProperty(o, "default", { enumerable: true, value: v });
            }) : function(o, v) {
                o["default"] = v;
            });`},e.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[e.createBindingHelper,e.setModuleDefaultHelper],priority:2,text:`
            var __importStar = (this && this.__importStar) || function (mod) {
                if (mod && mod.__esModule) return mod;
                var result = {};
                if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
                __setModuleDefault(result, mod);
                return result;
            };`},e.importDefaultHelper={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:`
            var __importDefault = (this && this.__importDefault) || function (mod) {
                return (mod && mod.__esModule) ? mod : { "default": mod };
            };`},e.exportStarHelper={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[e.createBindingHelper],priority:2,text:`
            var __exportStar = (this && this.__exportStar) || function(m, exports) {
                for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
            };`},e.classPrivateFieldGetHelper={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:`
            var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
                if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
                if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
                return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
            };`},e.classPrivateFieldSetHelper={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:`
            var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
                if (kind === "m") throw new TypeError("Private method is not writable");
                if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
                if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
                return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
            };`},e.classPrivateFieldInHelper={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:`
            var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {
                if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
                return typeof state === "function" ? receiver === state : state.has(receiver);
            };`};var W;function N(){return W||(W=e.arrayToMap([e.decorateHelper,e.metadataHelper,e.paramHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.restHelper,e.awaiterHelper,e.extendsHelper,e.templateObjectHelper,e.spreadArrayHelper,e.valuesHelper,e.readHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper,e.exportStarHelper,e.classPrivateFieldGetHelper,e.classPrivateFieldSetHelper,e.classPrivateFieldInHelper,e.createBindingHelper,e.setModuleDefaultHelper],function(pe){return pe.name}))}e.getAllUnscopedEmitHelpers=N,e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:L(ni([`
            const `," = name => super[name];"],[`
            const `," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:L(ni([`
            const `,` = (function (geti, seti) {
                const cache = Object.create(null);
                return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });
            })(name => super[name], (name, value) => super[name] = value);`],[`
            const `,` = (function (geti, seti) {
                const cache = Object.create(null);
                return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });
            })(name => super[name], (name, value) => super[name] = value);`]),"_superIndex")};function Q(pe,F){return e.isCallExpression(pe)&&e.isIdentifier(pe.expression)&&(e.getEmitFlags(pe.expression)&4096)!==0&&pe.expression.escapedText===F}e.isCallToHelper=Q})(Pe||(Pe={}));var Pe;(function(e){function a(jr){return jr.kind===8}e.isNumericLiteral=a;function O(jr){return jr.kind===9}e.isBigIntLiteral=O;function L(jr){return jr.kind===10}e.isStringLiteral=L;function W(jr){return jr.kind===11}e.isJsxText=W;function N(jr){return jr.kind===13}e.isRegularExpressionLiteral=N;function Q(jr){return jr.kind===14}e.isNoSubstitutionTemplateLiteral=Q;function pe(jr){return jr.kind===15}e.isTemplateHead=pe;function F(jr){return jr.kind===16}e.isTemplateMiddle=F;function g(jr){return jr.kind===17}e.isTemplateTail=g;function S(jr){return jr.kind===25}e.isDotDotDotToken=S;function H(jr){return jr.kind===27}e.isCommaToken=H;function se(jr){return jr.kind===39}e.isPlusToken=se;function p(jr){return jr.kind===40}e.isMinusToken=p;function C(jr){return jr.kind===41}e.isAsteriskToken=C;function G(jr){return jr.kind===53}e.isExclamationToken=G;function E(jr){return jr.kind===57}e.isQuestionToken=E;function ue(jr){return jr.kind===58}e.isColonToken=ue;function B(jr){return jr.kind===28}e.isQuestionDotToken=B;function re(jr){return jr.kind===38}e.isEqualsGreaterThanToken=re;function M(jr){return jr.kind===79}e.isIdentifier=M;function x(jr){return jr.kind===80}e.isPrivateIdentifier=x;function ie(jr){return jr.kind===93}e.isExportModifier=ie;function _e(jr){return jr.kind===131}e.isAsyncModifier=_e;function Y(jr){return jr.kind===128}e.isAssertsKeyword=Y;function Z(jr){return jr.kind===132}e.isAwaitKeyword=Z;function k(jr){return jr.kind===144}e.isReadonlyKeyword=k;function I(jr){return jr.kind===124}e.isStaticModifier=I;function ne(jr){return jr.kind===126}e.isAbstractModifier=ne;function ee(jr){return jr.kind===106}e.isSuperKeyword=ee;function A(jr){return jr.kind===100}e.isImportKeyword=A;function f(jr){return jr.kind===160}e.isQualifiedName=f;function P(jr){return jr.kind===161}e.isComputedPropertyName=P;function D(jr){return jr.kind===162}e.isTypeParameterDeclaration=D;function l(jr){return jr.kind===163}e.isParameter=l;function _(jr){return jr.kind===164}e.isDecorator=_;function J(jr){return jr.kind===165}e.isPropertySignature=J;function w(jr){return jr.kind===166}e.isPropertyDeclaration=w;function j(jr){return jr.kind===167}e.isMethodSignature=j;function U(jr){return jr.kind===168}e.isMethodDeclaration=U;function z(jr){return jr.kind===169}e.isClassStaticBlockDeclaration=z;function y(jr){return jr.kind===170}e.isConstructorDeclaration=y;function oe(jr){return jr.kind===171}e.isGetAccessorDeclaration=oe;function ve(jr){return jr.kind===172}e.isSetAccessorDeclaration=ve;function ce(jr){return jr.kind===173}e.isCallSignatureDeclaration=ce;function m(jr){return jr.kind===174}e.isConstructSignatureDeclaration=m;function de(jr){return jr.kind===175}e.isIndexSignatureDeclaration=de;function ae(jr){return jr.kind===176}e.isTypePredicateNode=ae;function V(jr){return jr.kind===177}e.isTypeReferenceNode=V;function le(jr){return jr.kind===178}e.isFunctionTypeNode=le;function ke(jr){return jr.kind===179}e.isConstructorTypeNode=ke;function Ue(jr){return jr.kind===180}e.isTypeQueryNode=Ue;function He(jr){return jr.kind===181}e.isTypeLiteralNode=He;function ar(jr){return jr.kind===182}e.isArrayTypeNode=ar;function gr(jr){return jr.kind===183}e.isTupleTypeNode=gr;function me(jr){return jr.kind===196}e.isNamedTupleMember=me;function Ge(jr){return jr.kind===184}e.isOptionalTypeNode=Ge;function er(jr){return jr.kind===185}e.isRestTypeNode=er;function he(jr){return jr.kind===186}e.isUnionTypeNode=he;function we(jr){return jr.kind===187}e.isIntersectionTypeNode=we;function ye(jr){return jr.kind===188}e.isConditionalTypeNode=ye;function Se(jr){return jr.kind===189}e.isInferTypeNode=Se;function ge(jr){return jr.kind===190}e.isParenthesizedTypeNode=ge;function Fe(jr){return jr.kind===191}e.isThisTypeNode=Fe;function cr(jr){return jr.kind===192}e.isTypeOperatorNode=cr;function ur(jr){return jr.kind===193}e.isIndexedAccessTypeNode=ur;function Ir(jr){return jr.kind===194}e.isMappedTypeNode=Ir;function dr(jr){return jr.kind===195}e.isLiteralTypeNode=dr;function Br(jr){return jr.kind===199}e.isImportTypeNode=Br;function Tr(jr){return jr.kind===198}e.isTemplateLiteralTypeSpan=Tr;function n(jr){return jr.kind===197}e.isTemplateLiteralTypeNode=n;function Er(jr){return jr.kind===200}e.isObjectBindingPattern=Er;function br(jr){return jr.kind===201}e.isArrayBindingPattern=br;function Pr(jr){return jr.kind===202}e.isBindingElement=Pr;function Ce(jr){return jr.kind===203}e.isArrayLiteralExpression=Ce;function Le(jr){return jr.kind===204}e.isObjectLiteralExpression=Le;function Xe(jr){return jr.kind===205}e.isPropertyAccessExpression=Xe;function Cr(jr){return jr.kind===206}e.isElementAccessExpression=Cr;function Lr(jr){return jr.kind===207}e.isCallExpression=Lr;function Jr(jr){return jr.kind===208}e.isNewExpression=Jr;function Rr(jr){return jr.kind===209}e.isTaggedTemplateExpression=Rr;function ci(jr){return jr.kind===210}e.isTypeAssertionExpression=ci;function be(jr){return jr.kind===211}e.isParenthesizedExpression=be;function or(jr){return jr.kind===212}e.isFunctionExpression=or;function Kr(jr){return jr.kind===213}e.isArrowFunction=Kr;function ei(jr){return jr.kind===214}e.isDeleteExpression=ei;function li(jr){return jr.kind===215}e.isTypeOfExpression=li;function Si(jr){return jr.kind===216}e.isVoidExpression=Si;function qi(jr){return jr.kind===217}e.isAwaitExpression=qi;function ft(jr){return jr.kind===218}e.isPrefixUnaryExpression=ft;function bt(jr){return jr.kind===219}e.isPostfixUnaryExpression=bt;function aa(jr){return jr.kind===220}e.isBinaryExpression=aa;function sr(jr){return jr.kind===221}e.isConditionalExpression=sr;function Ji(jr){return jr.kind===222}e.isTemplateExpression=Ji;function di(jr){return jr.kind===223}e.isYieldExpression=di;function X(jr){return jr.kind===224}e.isSpreadElement=X;function Ye(jr){return jr.kind===225}e.isClassExpression=Ye;function Be(jr){return jr.kind===226}e.isOmittedExpression=Be;function Qe(jr){return jr.kind===227}e.isExpressionWithTypeArguments=Qe;function _r(jr){return jr.kind===228}e.isAsExpression=_r;function hr(jr){return jr.kind===229}e.isNonNullExpression=hr;function Dr(jr){return jr.kind===230}e.isMetaProperty=Dr;function Me(jr){return jr.kind===231}e.isSyntheticExpression=Me;function v(jr){return jr.kind===348}e.isPartiallyEmittedExpression=v;function xe(jr){return jr.kind===349}e.isCommaListExpression=xe;function ze(jr){return jr.kind===232}e.isTemplateSpan=ze;function Je(jr){return jr.kind===233}e.isSemicolonClassElement=Je;function Oe(jr){return jr.kind===234}e.isBlock=Oe;function Fr(jr){return jr.kind===236}e.isVariableStatement=Fr;function Xr(jr){return jr.kind===235}e.isEmptyStatement=Xr;function Or(jr){return jr.kind===237}e.isExpressionStatement=Or;function We(jr){return jr.kind===238}e.isIfStatement=We;function mr(jr){return jr.kind===239}e.isDoStatement=mr;function Nr(jr){return jr.kind===240}e.isWhileStatement=Nr;function Ur(jr){return jr.kind===241}e.isForStatement=Ur;function si(jr){return jr.kind===242}e.isForInStatement=si;function mi(jr){return jr.kind===243}e.isForOfStatement=mi;function Ti(jr){return jr.kind===244}e.isContinueStatement=Ti;function hi(jr){return jr.kind===245}e.isBreakStatement=hi;function ki(jr){return jr.kind===246}e.isReturnStatement=ki;function Ui(jr){return jr.kind===247}e.isWithStatement=Ui;function zi(jr){return jr.kind===248}e.isSwitchStatement=zi;function ri(jr){return jr.kind===249}e.isLabeledStatement=ri;function Gi(jr){return jr.kind===250}e.isThrowStatement=Gi;function Rt(jr){return jr.kind===251}e.isTryStatement=Rt;function pa(jr){return jr.kind===252}e.isDebuggerStatement=pa;function xt(jr){return jr.kind===253}e.isVariableDeclaration=xt;function ua(jr){return jr.kind===254}e.isVariableDeclarationList=ua;function Vt(jr){return jr.kind===255}e.isFunctionDeclaration=Vt;function St(jr){return jr.kind===256}e.isClassDeclaration=St;function Ci(jr){return jr.kind===257}e.isInterfaceDeclaration=Ci;function Hi(jr){return jr.kind===258}e.isTypeAliasDeclaration=Hi;function Yi(jr){return jr.kind===259}e.isEnumDeclaration=Yi;function yt(jr){return jr.kind===260}e.isModuleDeclaration=yt;function gt(jr){return jr.kind===261}e.isModuleBlock=gt;function oa(jr){return jr.kind===262}e.isCaseBlock=oa;function Bt(jr){return jr.kind===263}e.isNamespaceExportDeclaration=Bt;function Pi(jr){return jr.kind===264}e.isImportEqualsDeclaration=Pi;function Oi(jr){return jr.kind===265}e.isImportDeclaration=Oi;function wi(jr){return jr.kind===266}e.isImportClause=wi;function Qr(jr){return jr.kind===292}e.isAssertClause=Qr;function Ct(jr){return jr.kind===293}e.isAssertEntry=Ct;function tt(jr){return jr.kind===267}e.isNamespaceImport=tt;function ta(jr){return jr.kind===273}e.isNamespaceExport=ta;function Xa(jr){return jr.kind===268}e.isNamedImports=Xa;function on(jr){return jr.kind===269}e.isImportSpecifier=on;function qr(jr){return jr.kind===270}e.isExportAssignment=qr;function bn(jr){return jr.kind===271}e.isExportDeclaration=bn;function Rn(jr){return jr.kind===272}e.isNamedExports=Rn;function Sn(jr){return jr.kind===274}e.isExportSpecifier=Sn;function zn(jr){return jr.kind===275}e.isMissingDeclaration=zn;function Zn(jr){return jr.kind===347}e.isNotEmittedStatement=Zn;function ho(jr){return jr.kind===352}e.isSyntheticReference=ho;function Vo(jr){return jr.kind===350}e.isMergeDeclarationMarker=Vo;function Cn(jr){return jr.kind===351}e.isEndOfDeclarationMarker=Cn;function go(jr){return jr.kind===276}e.isExternalModuleReference=go;function ro(jr){return jr.kind===277}e.isJsxElement=ro;function Ko(jr){return jr.kind===278}e.isJsxSelfClosingElement=Ko;function rs(jr){return jr.kind===279}e.isJsxOpeningElement=rs;function rn(jr){return jr.kind===280}e.isJsxClosingElement=rn;function Do(jr){return jr.kind===281}e.isJsxFragment=Do;function io(jr){return jr.kind===282}e.isJsxOpeningFragment=io;function pn(jr){return jr.kind===283}e.isJsxClosingFragment=pn;function Qn(jr){return jr.kind===284}e.isJsxAttribute=Qn;function wo(jr){return jr.kind===285}e.isJsxAttributes=wo;function xo(jr){return jr.kind===286}e.isJsxSpreadAttribute=xo;function ds(jr){return jr.kind===287}e.isJsxExpression=ds;function No(jr){return jr.kind===288}e.isCaseClause=No;function Ts(jr){return jr.kind===289}e.isDefaultClause=Ts;function Ms(jr){return jr.kind===290}e.isHeritageClause=Ms;function xr(jr){return jr.kind===291}e.isCatchClause=xr;function bi(jr){return jr.kind===294}e.isPropertyAssignment=bi;function ut(jr){return jr.kind===295}e.isShorthandPropertyAssignment=ut;function Ht(jr){return jr.kind===296}e.isSpreadAssignment=Ht;function Ka(jr){return jr.kind===297}e.isEnumMember=Ka;function an(jr){return jr.kind===299}e.isUnparsedPrepend=an;function Ke(jr){return jr.kind===303}e.isSourceFile=Ke;function h(jr){return jr.kind===304}e.isBundle=h;function Ee(jr){return jr.kind===305}e.isUnparsedSource=Ee;function Re(jr){return jr.kind===307}e.isJSDocTypeExpression=Re;function nr(jr){return jr.kind===308}e.isJSDocNameReference=nr;function Gr(jr){return jr.kind===309}e.isJSDocMemberName=Gr;function _i(jr){return jr.kind===322}e.isJSDocLink=_i;function Ei(jr){return jr.kind===323}e.isJSDocLinkCode=Ei;function Ki(jr){return jr.kind===324}e.isJSDocLinkPlain=Ki;function Nt(jr){return jr.kind===310}e.isJSDocAllType=Nt;function ca(jr){return jr.kind===311}e.isJSDocUnknownType=ca;function Fa(jr){return jr.kind===312}e.isJSDocNullableType=Fa;function Ta(jr){return jr.kind===313}e.isJSDocNonNullableType=Ta;function In(jr){return jr.kind===314}e.isJSDocOptionalType=In;function so(jr){return jr.kind===315}e.isJSDocFunctionType=so;function as(jr){return jr.kind===316}e.isJSDocVariadicType=as;function Ho(jr){return jr.kind===317}e.isJSDocNamepathType=Ho;function Ds(jr){return jr.kind===318}e.isJSDoc=Ds;function Os(jr){return jr.kind===320}e.isJSDocTypeLiteral=Os;function mc(jr){return jr.kind===321}e.isJSDocSignature=mc;function Hs(jr){return jr.kind===326}e.isJSDocAugmentsTag=Hs;function Mi(jr){return jr.kind===328}e.isJSDocAuthorTag=Mi;function $t(jr){return jr.kind===330}e.isJSDocClassTag=$t;function ga(jr){return jr.kind===336}e.isJSDocCallbackTag=ga;function xn(jr){return jr.kind===331}e.isJSDocPublicTag=xn;function yn(jr){return jr.kind===332}e.isJSDocPrivateTag=yn;function An(jr){return jr.kind===333}e.isJSDocProtectedTag=An;function Pa(jr){return jr.kind===334}e.isJSDocReadonlyTag=Pa;function Mn(jr){return jr.kind===335}e.isJSDocOverrideTag=Mn;function ao(jr){return jr.kind===329}e.isJSDocDeprecatedTag=ao;function co(jr){return jr.kind===344}e.isJSDocSeeTag=co;function De(jr){return jr.kind===337}e.isJSDocEnumTag=De;function zr(jr){return jr.kind===338}e.isJSDocParameterTag=zr;function xi(jr){return jr.kind===339}e.isJSDocReturnTag=xi;function et(jr){return jr.kind===340}e.isJSDocThisTag=et;function je(jr){return jr.kind===341}e.isJSDocTypeTag=je;function ti(jr){return jr.kind===342}e.isJSDocTemplateTag=ti;function mt(jr){return jr.kind===343}e.isJSDocTypedefTag=mt;function Zt(jr){return jr.kind===325}e.isJSDocUnknownTag=Zt;function ln(jr){return jr.kind===345}e.isJSDocPropertyTag=ln;function Ba(jr){return jr.kind===327}e.isJSDocImplementsTag=Ba;function Oo(jr){return jr.kind===346}e.isSyntaxList=Oo})(Pe||(Pe={}));var Pe;(function(e){function a(br){return br.createExportDeclaration(void 0,void 0,!1,br.createNamedExports([]),void 0)}e.createEmptyExports=a;function O(br,Pr,Ce,Le){if(e.isComputedPropertyName(Ce))return e.setTextRange(br.createElementAccessExpression(Pr,Ce.expression),Le);var Xe=e.setTextRange(e.isMemberName(Ce)?br.createPropertyAccessExpression(Pr,Ce):br.createElementAccessExpression(Pr,Ce),Ce);return e.getOrCreateEmitNode(Xe).flags|=64,Xe}e.createMemberAccessForPropertyName=O;function L(br,Pr){var Ce=e.parseNodeFactory.createIdentifier(br||"React");return e.setParent(Ce,e.getParseTreeNode(Pr)),Ce}function W(br,Pr,Ce){if(e.isQualifiedName(Pr)){var Le=W(br,Pr.left,Ce),Xe=br.createIdentifier(e.idText(Pr.right));return Xe.escapedText=Pr.right.escapedText,br.createPropertyAccessExpression(Le,Xe)}else return L(e.idText(Pr),Ce)}function N(br,Pr,Ce,Le){return Pr?W(br,Pr,Le):br.createPropertyAccessExpression(L(Ce,Le),"createElement")}e.createJsxFactoryExpression=N;function Q(br,Pr,Ce,Le){return Pr?W(br,Pr,Le):br.createPropertyAccessExpression(L(Ce,Le),"Fragment")}function pe(br,Pr,Ce,Le,Xe,Cr){var Lr=[Ce];if(Le&&Lr.push(Le),Xe&&Xe.length>0)if(Le||Lr.push(br.createNull()),Xe.length>1)for(var Jr=0,Rr=Xe;Jr<Rr.length;Jr++){var ci=Rr[Jr];f(ci),Lr.push(ci)}else Lr.push(Xe[0]);return e.setTextRange(br.createCallExpression(Pr,void 0,Lr),Cr)}e.createExpressionForJsxElement=pe;function F(br,Pr,Ce,Le,Xe,Cr,Lr){var Jr=Q(br,Ce,Le,Cr),Rr=[Jr,br.createNull()];if(Xe&&Xe.length>0)if(Xe.length>1)for(var ci=0,be=Xe;ci<be.length;ci++){var or=be[ci];f(or),Rr.push(or)}else Rr.push(Xe[0]);return e.setTextRange(br.createCallExpression(N(br,Pr,Le,Cr),void 0,Rr),Lr)}e.createExpressionForJsxFragment=F;function g(br,Pr,Ce){if(e.isVariableDeclarationList(Pr)){var Le=e.first(Pr.declarations),Xe=br.updateVariableDeclaration(Le,Le.name,void 0,void 0,Ce);return e.setTextRange(br.createVariableStatement(void 0,br.updateVariableDeclarationList(Pr,[Xe])),Pr)}else{var Cr=e.setTextRange(br.createAssignment(Pr,Ce),Pr);return e.setTextRange(br.createExpressionStatement(Cr),Pr)}}e.createForOfBindingStatement=g;function S(br,Pr,Ce){return e.isBlock(Pr)?br.updateBlock(Pr,e.setTextRange(br.createNodeArray(qe([Ce],Pr.statements,!0)),Pr.statements)):br.createBlock(br.createNodeArray([Pr,Ce]),!0)}e.insertLeadingStatement=S;function H(br,Pr){if(e.isQualifiedName(Pr)){var Ce=H(br,Pr.left),Le=e.setParent(e.setTextRange(br.cloneNode(Pr.right),Pr.right),Pr.right.parent);return e.setTextRange(br.createPropertyAccessExpression(Ce,Le),Pr)}else return e.setParent(e.setTextRange(br.cloneNode(Pr),Pr),Pr.parent)}e.createExpressionFromEntityName=H;function se(br,Pr){return e.isIdentifier(Pr)?br.createStringLiteralFromNode(Pr):e.isComputedPropertyName(Pr)?e.setParent(e.setTextRange(br.cloneNode(Pr.expression),Pr.expression),Pr.expression.parent):e.setParent(e.setTextRange(br.cloneNode(Pr),Pr),Pr.parent)}e.createExpressionForPropertyName=se;function p(br,Pr,Ce,Le,Xe){var Cr=e.getAllAccessorDeclarations(Pr,Ce),Lr=Cr.firstAccessor,Jr=Cr.getAccessor,Rr=Cr.setAccessor;if(Ce===Lr)return e.setTextRange(br.createObjectDefinePropertyCall(Le,se(br,Ce.name),br.createPropertyDescriptor({enumerable:br.createFalse(),configurable:!0,get:Jr&&e.setTextRange(e.setOriginalNode(br.createFunctionExpression(Jr.modifiers,void 0,void 0,void 0,Jr.parameters,void 0,Jr.body),Jr),Jr),set:Rr&&e.setTextRange(e.setOriginalNode(br.createFunctionExpression(Rr.modifiers,void 0,void 0,void 0,Rr.parameters,void 0,Rr.body),Rr),Rr)},!Xe)),Lr)}function C(br,Pr,Ce){return e.setOriginalNode(e.setTextRange(br.createAssignment(O(br,Ce,Pr.name,Pr.name),Pr.initializer),Pr),Pr)}function G(br,Pr,Ce){return e.setOriginalNode(e.setTextRange(br.createAssignment(O(br,Ce,Pr.name,Pr.name),br.cloneNode(Pr.name)),Pr),Pr)}function E(br,Pr,Ce){return e.setOriginalNode(e.setTextRange(br.createAssignment(O(br,Ce,Pr.name,Pr.name),e.setOriginalNode(e.setTextRange(br.createFunctionExpression(Pr.modifiers,Pr.asteriskToken,void 0,void 0,Pr.parameters,void 0,Pr.body),Pr),Pr)),Pr),Pr)}function ue(br,Pr,Ce,Le){switch(Ce.name&&e.isPrivateIdentifier(Ce.name)&&e.Debug.failBadSyntaxKind(Ce.name,"Private identifiers are not allowed in object literals."),Ce.kind){case 171:case 172:return p(br,Pr.properties,Ce,Le,!!Pr.multiLine);case 294:return C(br,Ce,Le);case 295:return G(br,Ce,Le);case 168:return E(br,Ce,Le)}}e.createExpressionForObjectLiteralElementLike=ue;function B(br,Pr,Ce,Le,Xe){var Cr=Pr.operator;e.Debug.assert(Cr===45||Cr===46,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");var Lr=br.createTempVariable(Le);Ce=br.createAssignment(Lr,Ce),e.setTextRange(Ce,Pr.operand);var Jr=e.isPrefixUnaryExpression(Pr)?br.createPrefixUnaryExpression(Cr,Lr):br.createPostfixUnaryExpression(Lr,Cr);return e.setTextRange(Jr,Pr),Xe&&(Jr=br.createAssignment(Xe,Jr),e.setTextRange(Jr,Pr)),Ce=br.createComma(Ce,Jr),e.setTextRange(Ce,Pr),e.isPostfixUnaryExpression(Pr)&&(Ce=br.createComma(Ce,Lr),e.setTextRange(Ce,Pr)),Ce}e.expandPreOrPostfixIncrementOrDecrementExpression=B;function re(br){return(e.getEmitFlags(br)&32768)!==0}e.isInternalName=re;function M(br){return(e.getEmitFlags(br)&16384)!==0}e.isLocalName=M;function x(br){return(e.getEmitFlags(br)&8192)!==0}e.isExportName=x;function ie(br){return e.isStringLiteral(br.expression)&&br.expression.text==="use strict"}function _e(br){for(var Pr=0,Ce=br;Pr<Ce.length;Pr++){var Le=Ce[Pr];if(e.isPrologueDirective(Le)){if(ie(Le))return Le}else break}}e.findUseStrictPrologue=_e;function Y(br){var Pr=e.firstOrUndefined(br);return Pr!==void 0&&e.isPrologueDirective(Pr)&&ie(Pr)}e.startsWithUseStrict=Y;function Z(br){return br.kind===220&&br.operatorToken.kind===27||br.kind===349}e.isCommaSequence=Z;function k(br){return e.isParenthesizedExpression(br)&&e.isInJSFile(br)&&!!e.getJSDocTypeTag(br)}e.isJSDocTypeAssertion=k;function I(br){var Pr=e.getJSDocType(br);return e.Debug.assertIsDefined(Pr),Pr}e.getJSDocTypeAssertionType=I;function ne(br,Pr){switch(Pr===void 0&&(Pr=15),br.kind){case 211:return Pr&16&&k(br)?!1:(Pr&1)!==0;case 210:case 228:return(Pr&2)!==0;case 229:return(Pr&4)!==0;case 348:return(Pr&8)!==0}return!1}e.isOuterExpression=ne;function ee(br,Pr){for(Pr===void 0&&(Pr=15);ne(br,Pr);)br=br.expression;return br}e.skipOuterExpressions=ee;function A(br){return ee(br,6)}e.skipAssertions=A;function f(br){return e.setStartsOnNewLine(br,!0)}e.startOnNewLine=f;function P(br){var Pr=e.getOriginalNode(br,e.isSourceFile),Ce=Pr&&Pr.emitNode;return Ce&&Ce.externalHelpersModuleName}e.getExternalHelpersModuleName=P;function D(br){var Pr=e.getOriginalNode(br,e.isSourceFile),Ce=Pr&&Pr.emitNode;return!!Ce&&(!!Ce.externalHelpersModuleName||!!Ce.externalHelpers)}e.hasRecordedExternalHelpers=D;function l(br,Pr,Ce,Le,Xe,Cr,Lr){if(Le.importHelpers&&e.isEffectiveExternalModule(Ce,Le)){var Jr=void 0,Rr=e.getEmitModuleKind(Le);if(Rr>=e.ModuleKind.ES2015&&Rr<=e.ModuleKind.ESNext||Ce.impliedNodeFormat===e.ModuleKind.ESNext){var ci=e.getEmitHelpers(Ce);if(ci){for(var be=[],or=0,Kr=ci;or<Kr.length;or++){var ei=Kr[or];if(!ei.scoped){var li=ei.importName;li&&e.pushIfUnique(be,li)}}if(e.some(be)){be.sort(e.compareStringsCaseSensitive),Jr=br.createNamedImports(e.map(be,function(aa){return e.isFileLevelUniqueName(Ce,aa)?br.createImportSpecifier(!1,void 0,br.createIdentifier(aa)):br.createImportSpecifier(!1,br.createIdentifier(aa),Pr.getUnscopedHelperName(aa))}));var Si=e.getOriginalNode(Ce,e.isSourceFile),qi=e.getOrCreateEmitNode(Si);qi.externalHelpers=!0}}}else{var ft=_(br,Ce,Le,Xe,Cr||Lr);ft&&(Jr=br.createNamespaceImport(ft))}if(Jr){var bt=br.createImportDeclaration(void 0,void 0,br.createImportClause(!1,void 0,Jr),br.createStringLiteral(e.externalHelpersModuleNameText),void 0);return e.addEmitFlags(bt,67108864),bt}}}e.createExternalHelpersImportDeclarationIfNeeded=l;function _(br,Pr,Ce,Le,Xe){if(Ce.importHelpers&&e.isEffectiveExternalModule(Pr,Ce)){var Cr=P(Pr);if(Cr)return Cr;var Lr=e.getEmitModuleKind(Ce),Jr=(Le||e.getESModuleInterop(Ce)&&Xe)&&Lr!==e.ModuleKind.System&&(Lr<e.ModuleKind.ES2015||Pr.impliedNodeFormat===e.ModuleKind.CommonJS);if(!Jr){var Rr=e.getEmitHelpers(Pr);if(Rr)for(var ci=0,be=Rr;ci<be.length;ci++){var or=be[ci];if(!or.scoped){Jr=!0;break}}}if(Jr){var Kr=e.getOriginalNode(Pr,e.isSourceFile),ei=e.getOrCreateEmitNode(Kr);return ei.externalHelpersModuleName||(ei.externalHelpersModuleName=br.createUniqueName(e.externalHelpersModuleNameText))}}}e.getOrCreateExternalHelpersModuleNameIfNeeded=_;function J(br,Pr,Ce){var Le=e.getNamespaceDeclarationNode(Pr);if(Le&&!e.isDefaultImport(Pr)&&!e.isExportNamespaceAsDefaultDeclaration(Pr)){var Xe=Le.name;return e.isGeneratedIdentifier(Xe)?Xe:br.createIdentifier(e.getSourceTextOfNodeFromSourceFile(Ce,Xe)||e.idText(Xe))}if(Pr.kind===265&&Pr.importClause||Pr.kind===271&&Pr.moduleSpecifier)return br.getGeneratedNameForNode(Pr)}e.getLocalNameForExternalImport=J;function w(br,Pr,Ce,Le,Xe,Cr){var Lr=e.getExternalModuleName(Pr);if(Lr&&e.isStringLiteral(Lr))return z(Pr,Le,br,Xe,Cr)||j(br,Lr,Ce)||br.cloneNode(Lr)}e.getExternalModuleNameLiteral=w;function j(br,Pr,Ce){var Le=Ce.renamedDependencies&&Ce.renamedDependencies.get(Pr.text);return Le?br.createStringLiteral(Le):void 0}function U(br,Pr,Ce,Le){if(!!Pr){if(Pr.moduleName)return br.createStringLiteral(Pr.moduleName);if(!Pr.isDeclarationFile&&e.outFile(Le))return br.createStringLiteral(e.getExternalModuleNameFromPath(Ce,Pr.fileName))}}e.tryGetModuleNameFromFile=U;function z(br,Pr,Ce,Le,Xe){return U(Ce,Le.getExternalModuleFileFromDeclaration(br),Pr,Xe)}function y(br){if(e.isDeclarationBindingElement(br))return br.initializer;if(e.isPropertyAssignment(br)){var Pr=br.initializer;return e.isAssignmentExpression(Pr,!0)?Pr.right:void 0}if(e.isShorthandPropertyAssignment(br))return br.objectAssignmentInitializer;if(e.isAssignmentExpression(br,!0))return br.right;if(e.isSpreadElement(br))return y(br.expression)}e.getInitializerOfBindingOrAssignmentElement=y;function oe(br){if(e.isDeclarationBindingElement(br))return br.name;if(e.isObjectLiteralElementLike(br)){switch(br.kind){case 294:return oe(br.initializer);case 295:return br.name;case 296:return oe(br.expression)}return}return e.isAssignmentExpression(br,!0)?oe(br.left):e.isSpreadElement(br)?oe(br.expression):br}e.getTargetOfBindingOrAssignmentElement=oe;function ve(br){switch(br.kind){case 163:case 202:return br.dotDotDotToken;case 224:case 296:return br}}e.getRestIndicatorOfBindingOrAssignmentElement=ve;function ce(br){var Pr=m(br);return e.Debug.assert(!!Pr||e.isSpreadAssignment(br),"Invalid property name for binding element."),Pr}e.getPropertyNameOfBindingOrAssignmentElement=ce;function m(br){switch(br.kind){case 202:if(br.propertyName){var Pr=br.propertyName;return e.isPrivateIdentifier(Pr)?e.Debug.failBadSyntaxKind(Pr):e.isComputedPropertyName(Pr)&&de(Pr.expression)?Pr.expression:Pr}break;case 294:if(br.name){var Pr=br.name;return e.isPrivateIdentifier(Pr)?e.Debug.failBadSyntaxKind(Pr):e.isComputedPropertyName(Pr)&&de(Pr.expression)?Pr.expression:Pr}break;case 296:return br.name&&e.isPrivateIdentifier(br.name)?e.Debug.failBadSyntaxKind(br.name):br.name}var Ce=oe(br);if(Ce&&e.isPropertyName(Ce))return Ce}e.tryGetPropertyNameOfBindingOrAssignmentElement=m;function de(br){var Pr=br.kind;return Pr===10||Pr===8}function ae(br){switch(br.kind){case 200:case 201:case 203:return br.elements;case 204:return br.properties}}e.getElementsOfBindingOrAssignmentPattern=ae;function V(br){if(br)for(var Pr=br;;){if(e.isIdentifier(Pr)||!Pr.body)return e.isIdentifier(Pr)?Pr:Pr.name;Pr=Pr.body}}e.getJSDocTypeAliasName=V;function le(br){var Pr=br.kind;return Pr===163||Pr===165||Pr===166||Pr===167||Pr===168||Pr===170||Pr===171||Pr===172||Pr===175||Pr===212||Pr===213||Pr===225||Pr===236||Pr===255||Pr===256||Pr===257||Pr===258||Pr===259||Pr===260||Pr===264||Pr===265||Pr===270||Pr===271}e.canHaveModifiers=le,e.isTypeNodeOrTypeParameterDeclaration=e.or(e.isTypeNode,e.isTypeParameterDeclaration),e.isQuestionOrExclamationToken=e.or(e.isQuestionToken,e.isExclamationToken),e.isIdentifierOrThisTypeNode=e.or(e.isIdentifier,e.isThisTypeNode),e.isReadonlyKeywordOrPlusOrMinusToken=e.or(e.isReadonlyKeyword,e.isPlusToken,e.isMinusToken),e.isQuestionOrPlusOrMinusToken=e.or(e.isQuestionToken,e.isPlusToken,e.isMinusToken),e.isModuleName=e.or(e.isIdentifier,e.isStringLiteral);function ke(br){var Pr=br.kind;return Pr===104||Pr===110||Pr===95||e.isLiteralExpression(br)||e.isPrefixUnaryExpression(br)}e.isLiteralTypeLikeExpression=ke;function Ue(br){return br===42}function He(br){return br===41||br===43||br===44}function ar(br){return Ue(br)||He(br)}function gr(br){return br===39||br===40}function me(br){return gr(br)||ar(br)}function Ge(br){return br===47||br===48||br===49}function er(br){return Ge(br)||me(br)}function he(br){return br===29||br===32||br===31||br===33||br===102||br===101}function we(br){return he(br)||er(br)}function ye(br){return br===34||br===36||br===35||br===37}function Se(br){return ye(br)||we(br)}function ge(br){return br===50||br===51||br===52}function Fe(br){return ge(br)||Se(br)}function cr(br){return br===55||br===56}function ur(br){return cr(br)||Fe(br)}function Ir(br){return br===60||ur(br)||e.isAssignmentOperator(br)}function dr(br){return Ir(br)||br===27}function Br(br){return dr(br.kind)}e.isBinaryOperatorToken=Br;var Tr;(function(br){function Pr(be,or,Kr,ei,li,Si,qi){var ft=or>0?li[or-1]:void 0;return e.Debug.assertEqual(Kr[or],Pr),li[or]=be.onEnter(ei[or],ft,qi),Kr[or]=Jr(be,Pr),or}br.enter=Pr;function Ce(be,or,Kr,ei,li,Si,qi){e.Debug.assertEqual(Kr[or],Ce),e.Debug.assertIsDefined(be.onLeft),Kr[or]=Jr(be,Ce);var ft=be.onLeft(ei[or].left,li[or],ei[or]);return ft?(ci(or,ei,ft),Rr(or,Kr,ei,li,ft)):or}br.left=Ce;function Le(be,or,Kr,ei,li,Si,qi){return e.Debug.assertEqual(Kr[or],Le),e.Debug.assertIsDefined(be.onOperator),Kr[or]=Jr(be,Le),be.onOperator(ei[or].operatorToken,li[or],ei[or]),or}br.operator=Le;function Xe(be,or,Kr,ei,li,Si,qi){e.Debug.assertEqual(Kr[or],Xe),e.Debug.assertIsDefined(be.onRight),Kr[or]=Jr(be,Xe);var ft=be.onRight(ei[or].right,li[or],ei[or]);return ft?(ci(or,ei,ft),Rr(or,Kr,ei,li,ft)):or}br.right=Xe;function Cr(be,or,Kr,ei,li,Si,qi){e.Debug.assertEqual(Kr[or],Cr),Kr[or]=Jr(be,Cr);var ft=be.onExit(ei[or],li[or]);if(or>0){if(or--,be.foldState){var bt=Kr[or]===Cr?"right":"left";li[or]=be.foldState(li[or],ft,bt)}}else Si.value=ft;return or}br.exit=Cr;function Lr(be,or,Kr,ei,li,Si,qi){return e.Debug.assertEqual(Kr[or],Lr),or}br.done=Lr;function Jr(be,or){switch(or){case Pr:if(be.onLeft)return Ce;case Ce:if(be.onOperator)return Le;case Le:if(be.onRight)return Xe;case Xe:return Cr;case Cr:return Lr;case Lr:return Lr;default:e.Debug.fail("Invalid state")}}br.nextState=Jr;function Rr(be,or,Kr,ei,li){return be++,or[be]=Pr,Kr[be]=li,ei[be]=void 0,be}function ci(be,or,Kr){if(e.Debug.shouldAssert(2))for(;be>=0;)e.Debug.assert(or[be]!==Kr,"Circular traversal detected."),be--}})(Tr||(Tr={}));var n=function(){function br(Pr,Ce,Le,Xe,Cr,Lr){this.onEnter=Pr,this.onLeft=Ce,this.onOperator=Le,this.onRight=Xe,this.onExit=Cr,this.foldState=Lr}return br}();function Er(br,Pr,Ce,Le,Xe,Cr){var Lr=new n(br,Pr,Ce,Le,Xe,Cr);return Jr;function Jr(Rr,ci){for(var be={value:void 0},or=[Tr.enter],Kr=[Rr],ei=[void 0],li=0;or[li]!==Tr.done;)li=or[li](Lr,li,or,Kr,ei,be,ci);return e.Debug.assertEqual(li,0),be.value}}e.createBinaryExpressionTrampoline=Er})(Pe||(Pe={}));var Pe;(function(e){function a(O,L){return L?e.setTextRangePosEnd(O,L.pos,L.end):O}e.setTextRange=a})(Pe||(Pe={}));var Pe;(function(e){var a;(function(l){l[l.None=0]="None",l[l.Yield=1]="Yield",l[l.Await=2]="Await",l[l.Type=4]="Type",l[l.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",l[l.JSDoc=32]="JSDoc"})(a||(a={}));var O;(function(l){l[l.TryParse=0]="TryParse",l[l.Lookahead=1]="Lookahead",l[l.Reparse=2]="Reparse"})(O||(O={}));var L,W,N,Q,pe;e.parseBaseNodeFactory={createBaseSourceFileNode:function(l){return new(pe||(pe=e.objectAllocator.getSourceFileConstructor()))(l,-1,-1)},createBaseIdentifierNode:function(l){return new(N||(N=e.objectAllocator.getIdentifierConstructor()))(l,-1,-1)},createBasePrivateIdentifierNode:function(l){return new(Q||(Q=e.objectAllocator.getPrivateIdentifierConstructor()))(l,-1,-1)},createBaseTokenNode:function(l){return new(W||(W=e.objectAllocator.getTokenConstructor()))(l,-1,-1)},createBaseNode:function(l){return new(L||(L=e.objectAllocator.getNodeConstructor()))(l,-1,-1)}},e.parseNodeFactory=e.createNodeFactory(1,e.parseBaseNodeFactory);function F(l,_){return _&&l(_)}function g(l,_,J){if(J){if(_)return _(J);for(var w=0,j=J;w<j.length;w++){var U=j[w],z=l(U);if(z)return z}}}function S(l,_){return l.charCodeAt(_+1)===42&&l.charCodeAt(_+2)===42&&l.charCodeAt(_+3)!==47}e.isJSDocLikeText=S;function H(l,_,J){if(!(!l||l.kind<=159))switch(l.kind){case 160:return F(_,l.left)||F(_,l.right);case 162:return F(_,l.name)||F(_,l.constraint)||F(_,l.default)||F(_,l.expression);case 295:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.name)||F(_,l.questionToken)||F(_,l.exclamationToken)||F(_,l.equalsToken)||F(_,l.objectAssignmentInitializer);case 296:return F(_,l.expression);case 163:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.dotDotDotToken)||F(_,l.name)||F(_,l.questionToken)||F(_,l.type)||F(_,l.initializer);case 166:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.name)||F(_,l.questionToken)||F(_,l.exclamationToken)||F(_,l.type)||F(_,l.initializer);case 165:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.name)||F(_,l.questionToken)||F(_,l.type)||F(_,l.initializer);case 294:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.name)||F(_,l.questionToken)||F(_,l.initializer);case 253:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.name)||F(_,l.exclamationToken)||F(_,l.type)||F(_,l.initializer);case 202:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.dotDotDotToken)||F(_,l.propertyName)||F(_,l.name)||F(_,l.initializer);case 178:case 179:case 173:case 174:case 175:return g(_,J,l.decorators)||g(_,J,l.modifiers)||g(_,J,l.typeParameters)||g(_,J,l.parameters)||F(_,l.type);case 168:case 167:case 170:case 171:case 172:case 212:case 255:case 213:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.asteriskToken)||F(_,l.name)||F(_,l.questionToken)||F(_,l.exclamationToken)||g(_,J,l.typeParameters)||g(_,J,l.parameters)||F(_,l.type)||F(_,l.equalsGreaterThanToken)||F(_,l.body);case 169:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.body);case 177:return F(_,l.typeName)||g(_,J,l.typeArguments);case 176:return F(_,l.assertsModifier)||F(_,l.parameterName)||F(_,l.type);case 180:return F(_,l.exprName);case 181:return g(_,J,l.members);case 182:return F(_,l.elementType);case 183:return g(_,J,l.elements);case 186:case 187:return g(_,J,l.types);case 188:return F(_,l.checkType)||F(_,l.extendsType)||F(_,l.trueType)||F(_,l.falseType);case 189:return F(_,l.typeParameter);case 199:return F(_,l.argument)||F(_,l.qualifier)||g(_,J,l.typeArguments);case 190:case 192:return F(_,l.type);case 193:return F(_,l.objectType)||F(_,l.indexType);case 194:return F(_,l.readonlyToken)||F(_,l.typeParameter)||F(_,l.nameType)||F(_,l.questionToken)||F(_,l.type)||g(_,J,l.members);case 195:return F(_,l.literal);case 196:return F(_,l.dotDotDotToken)||F(_,l.name)||F(_,l.questionToken)||F(_,l.type);case 200:case 201:return g(_,J,l.elements);case 203:return g(_,J,l.elements);case 204:return g(_,J,l.properties);case 205:return F(_,l.expression)||F(_,l.questionDotToken)||F(_,l.name);case 206:return F(_,l.expression)||F(_,l.questionDotToken)||F(_,l.argumentExpression);case 207:case 208:return F(_,l.expression)||F(_,l.questionDotToken)||g(_,J,l.typeArguments)||g(_,J,l.arguments);case 209:return F(_,l.tag)||F(_,l.questionDotToken)||g(_,J,l.typeArguments)||F(_,l.template);case 210:return F(_,l.type)||F(_,l.expression);case 211:return F(_,l.expression);case 214:return F(_,l.expression);case 215:return F(_,l.expression);case 216:return F(_,l.expression);case 218:return F(_,l.operand);case 223:return F(_,l.asteriskToken)||F(_,l.expression);case 217:return F(_,l.expression);case 219:return F(_,l.operand);case 220:return F(_,l.left)||F(_,l.operatorToken)||F(_,l.right);case 228:return F(_,l.expression)||F(_,l.type);case 229:return F(_,l.expression);case 230:return F(_,l.name);case 221:return F(_,l.condition)||F(_,l.questionToken)||F(_,l.whenTrue)||F(_,l.colonToken)||F(_,l.whenFalse);case 224:return F(_,l.expression);case 234:case 261:return g(_,J,l.statements);case 303:return g(_,J,l.statements)||F(_,l.endOfFileToken);case 236:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.declarationList);case 254:return g(_,J,l.declarations);case 237:return F(_,l.expression);case 238:return F(_,l.expression)||F(_,l.thenStatement)||F(_,l.elseStatement);case 239:return F(_,l.statement)||F(_,l.expression);case 240:return F(_,l.expression)||F(_,l.statement);case 241:return F(_,l.initializer)||F(_,l.condition)||F(_,l.incrementor)||F(_,l.statement);case 242:return F(_,l.initializer)||F(_,l.expression)||F(_,l.statement);case 243:return F(_,l.awaitModifier)||F(_,l.initializer)||F(_,l.expression)||F(_,l.statement);case 244:case 245:return F(_,l.label);case 246:return F(_,l.expression);case 247:return F(_,l.expression)||F(_,l.statement);case 248:return F(_,l.expression)||F(_,l.caseBlock);case 262:return g(_,J,l.clauses);case 288:return F(_,l.expression)||g(_,J,l.statements);case 289:return g(_,J,l.statements);case 249:return F(_,l.label)||F(_,l.statement);case 250:return F(_,l.expression);case 251:return F(_,l.tryBlock)||F(_,l.catchClause)||F(_,l.finallyBlock);case 291:return F(_,l.variableDeclaration)||F(_,l.block);case 164:return F(_,l.expression);case 256:case 225:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.name)||g(_,J,l.typeParameters)||g(_,J,l.heritageClauses)||g(_,J,l.members);case 257:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.name)||g(_,J,l.typeParameters)||g(_,J,l.heritageClauses)||g(_,J,l.members);case 258:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.name)||g(_,J,l.typeParameters)||F(_,l.type);case 259:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.name)||g(_,J,l.members);case 297:return F(_,l.name)||F(_,l.initializer);case 260:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.name)||F(_,l.body);case 264:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.name)||F(_,l.moduleReference);case 265:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.importClause)||F(_,l.moduleSpecifier)||F(_,l.assertClause);case 266:return F(_,l.name)||F(_,l.namedBindings);case 292:return g(_,J,l.elements);case 293:return F(_,l.name)||F(_,l.value);case 263:return F(_,l.name);case 267:return F(_,l.name);case 273:return F(_,l.name);case 268:case 272:return g(_,J,l.elements);case 271:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.exportClause)||F(_,l.moduleSpecifier)||F(_,l.assertClause);case 269:case 274:return F(_,l.propertyName)||F(_,l.name);case 270:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.expression);case 222:return F(_,l.head)||g(_,J,l.templateSpans);case 232:return F(_,l.expression)||F(_,l.literal);case 197:return F(_,l.head)||g(_,J,l.templateSpans);case 198:return F(_,l.type)||F(_,l.literal);case 161:return F(_,l.expression);case 290:return g(_,J,l.types);case 227:return F(_,l.expression)||g(_,J,l.typeArguments);case 276:return F(_,l.expression);case 275:return g(_,J,l.decorators);case 349:return g(_,J,l.elements);case 277:return F(_,l.openingElement)||g(_,J,l.children)||F(_,l.closingElement);case 281:return F(_,l.openingFragment)||g(_,J,l.children)||F(_,l.closingFragment);case 278:case 279:return F(_,l.tagName)||g(_,J,l.typeArguments)||F(_,l.attributes);case 285:return g(_,J,l.properties);case 284:return F(_,l.name)||F(_,l.initializer);case 286:return F(_,l.expression);case 287:return F(_,l.dotDotDotToken)||F(_,l.expression);case 280:return F(_,l.tagName);case 184:case 185:case 307:case 313:case 312:case 314:case 316:return F(_,l.type);case 315:return g(_,J,l.parameters)||F(_,l.type);case 318:return(typeof l.comment=="string"?void 0:g(_,J,l.comment))||g(_,J,l.tags);case 344:return F(_,l.tagName)||F(_,l.name)||(typeof l.comment=="string"?void 0:g(_,J,l.comment));case 308:return F(_,l.name);case 309:return F(_,l.left)||F(_,l.right);case 338:case 345:return F(_,l.tagName)||(l.isNameFirst?F(_,l.name)||F(_,l.typeExpression)||(typeof l.comment=="string"?void 0:g(_,J,l.comment)):F(_,l.typeExpression)||F(_,l.name)||(typeof l.comment=="string"?void 0:g(_,J,l.comment)));case 328:return F(_,l.tagName)||(typeof l.comment=="string"?void 0:g(_,J,l.comment));case 327:return F(_,l.tagName)||F(_,l.class)||(typeof l.comment=="string"?void 0:g(_,J,l.comment));case 326:return F(_,l.tagName)||F(_,l.class)||(typeof l.comment=="string"?void 0:g(_,J,l.comment));case 342:return F(_,l.tagName)||F(_,l.constraint)||g(_,J,l.typeParameters)||(typeof l.comment=="string"?void 0:g(_,J,l.comment));case 343:return F(_,l.tagName)||(l.typeExpression&&l.typeExpression.kind===307?F(_,l.typeExpression)||F(_,l.fullName)||(typeof l.comment=="string"?void 0:g(_,J,l.comment)):F(_,l.fullName)||F(_,l.typeExpression)||(typeof l.comment=="string"?void 0:g(_,J,l.comment)));case 336:return F(_,l.tagName)||F(_,l.fullName)||F(_,l.typeExpression)||(typeof l.comment=="string"?void 0:g(_,J,l.comment));case 339:case 341:case 340:case 337:return F(_,l.tagName)||F(_,l.typeExpression)||(typeof l.comment=="string"?void 0:g(_,J,l.comment));case 321:return e.forEach(l.typeParameters,_)||e.forEach(l.parameters,_)||F(_,l.type);case 322:case 323:case 324:return F(_,l.name);case 320:return e.forEach(l.jsDocPropertyTags,_);case 325:case 330:case 331:case 332:case 333:case 334:case 329:return F(_,l.tagName)||(typeof l.comment=="string"?void 0:g(_,J,l.comment));case 348:return F(_,l.expression)}}e.forEachChild=H;function se(l,_,J){for(var w=p(l),j=[];j.length<w.length;)j.push(l);for(;w.length!==0;){var U=w.pop(),z=j.pop();if(e.isArray(U)){if(J){var y=J(U,z);if(y){if(y==="skip")continue;return y}}for(var oe=U.length-1;oe>=0;--oe)w.push(U[oe]),j.push(z)}else{var y=_(U,z);if(y){if(y==="skip")continue;return y}if(U.kind>=160)for(var ve=0,ce=p(U);ve<ce.length;ve++){var m=ce[ve];w.push(m),j.push(U)}}}}e.forEachChildRecursively=se;function p(l){var _=[];return H(l,J,J),_;function J(w){_.unshift(w)}}function C(l,_,J,w,j){w===void 0&&(w=!1),e.tracing===null||e.tracing===void 0||e.tracing.push("parse","createSourceFile",{path:l},!0),e.performance.mark("beforeParse");var U;return e.perfLogger.logStartParseSourceFile(l),J===100?U=x.parseSourceFile(l,_,J,void 0,w,6):U=x.parseSourceFile(l,_,J,void 0,w,j),e.perfLogger.logStopParseSourceFile(),e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),U}e.createSourceFile=C;function G(l,_){return x.parseIsolatedEntityName(l,_)}e.parseIsolatedEntityName=G;function E(l,_){return x.parseJsonText(l,_)}e.parseJsonText=E;function ue(l){return l.externalModuleIndicator!==void 0}e.isExternalModule=ue;function B(l,_,J,w){w===void 0&&(w=!1);var j=ie.updateSourceFile(l,_,J,w);return j.flags|=l.flags&3145728,j}e.updateSourceFile=B;function re(l,_,J){var w=x.JSDocParser.parseIsolatedJSDocComment(l,_,J);return w&&w.jsDoc&&x.fixupParentReferences(w.jsDoc),w}e.parseIsolatedJSDocComment=re;function M(l,_,J){return x.JSDocParser.parseJSDocTypeExpressionForTests(l,_,J)}e.parseJSDocTypeExpressionForTests=M;var x;(function(l){var _=e.createScanner(99,!0),J=20480,w,j,U,z,y;function oe(Ie){return me++,Ie}var ve={createBaseSourceFileNode:function(Ie){return oe(new y(Ie,0,0))},createBaseIdentifierNode:function(Ie){return oe(new U(Ie,0,0))},createBasePrivateIdentifierNode:function(Ie){return oe(new z(Ie,0,0))},createBaseTokenNode:function(Ie){return oe(new j(Ie,0,0))},createBaseNode:function(Ie){return oe(new w(Ie,0,0))}},ce=e.createNodeFactory(11,ve),m,de,ae,V,le,ke,Ue,He,ar,gr,me,Ge,er,he,we,ye,Se,ge=!0,Fe=!1;function cr(Ie,kr,Hr,vi,Li,ot){var zt;if(Li===void 0&&(Li=!1),ot=e.ensureScriptKind(Ie,ot),ot===6){var la=Ir(Ie,kr,Hr,vi,Li);return e.convertToObjectWorker(la,(zt=la.statements[0])===null||zt===void 0?void 0:zt.expression,la.parseDiagnostics,!1,void 0,void 0),la.referencedFiles=e.emptyArray,la.typeReferenceDirectives=e.emptyArray,la.libReferenceDirectives=e.emptyArray,la.amdDependencies=e.emptyArray,la.hasNoDefaultLib=!1,la.pragmas=e.emptyMap,la}dr(Ie,kr,Hr,vi,ot);var ja=Tr(Hr,Li,ot);return Br(),ja}l.parseSourceFile=cr;function ur(Ie,kr){dr("",Ie,kr,void 0,1),Je();var Hr=Ds(!0),vi=v()===1&&!Ue.length;return Br(),vi?Hr:void 0}l.parseIsolatedEntityName=ur;function Ir(Ie,kr,Hr,vi,Li){Hr===void 0&&(Hr=2),Li===void 0&&(Li=!1),dr(Ie,kr,Hr,vi,6),de=Se,Je();var ot=Dr(),zt,la;if(v()===1)zt=wi([],ot,ot),la=gt();else{for(var ja=void 0;v()!==1;){var Oa=void 0;switch(v()){case 22:Oa=Bf();break;case 110:case 95:case 104:Oa=gt();break;case 40:hi(function(){return Je()===8&&Je()!==58})?Oa=gp():Oa=Jf();break;case 8:case 10:if(hi(function(){return Je()!==58})){Oa=Pa();break}default:Oa=Jf();break}ja&&e.isArray(ja)?ja.push(Oa):ja?ja=[ja,Oa]:(ja=Oa,v()!==1&&Ye(e.Diagnostics.Unexpected_token))}var eo=e.isArray(ja)?Qr(ce.createArrayLiteralExpression(ja),ot):e.Debug.checkDefined(ja),$o=ce.createExpressionStatement(eo);Qr($o,ot),zt=wi([$o],ot),la=Yi(1,e.Diagnostics.Unexpected_token)}var fo=Le(Ie,2,6,!1,zt,la,de);Li&&Ce(fo),fo.nodeCount=me,fo.identifierCount=he,fo.identifiers=Ge,fo.parseDiagnostics=e.attachFileToDiagnostics(Ue,fo),He&&(fo.jsDocDiagnostics=e.attachFileToDiagnostics(He,fo));var es=fo;return Br(),es}l.parseJsonText=Ir;function dr(Ie,kr,Hr,vi,Li){switch(w=e.objectAllocator.getNodeConstructor(),j=e.objectAllocator.getTokenConstructor(),U=e.objectAllocator.getIdentifierConstructor(),z=e.objectAllocator.getPrivateIdentifierConstructor(),y=e.objectAllocator.getSourceFileConstructor(),m=e.normalizePath(Ie),ae=kr,V=Hr,ar=vi,le=Li,ke=e.getLanguageVariant(Li),Ue=[],we=0,Ge=new e.Map,er=new e.Map,he=0,me=0,de=0,ge=!0,le){case 1:case 2:Se=131072;break;case 6:Se=33685504;break;default:Se=0;break}Fe=!1,_.setText(ae),_.setOnError(hr),_.setScriptTarget(V),_.setLanguageVariant(ke)}function Br(){_.clearCommentDirectives(),_.setText(""),_.setOnError(void 0),ae=void 0,V=void 0,ar=void 0,le=void 0,ke=void 0,de=0,Ue=void 0,He=void 0,we=0,Ge=void 0,ye=void 0,ge=!0}function Tr(Ie,kr,Hr){var vi=_e(m);vi&&(Se|=8388608),de=Se,Je();var Li=Ht(0,Wn);e.Debug.assert(v()===1);var ot=br(gt()),zt=Le(m,Ie,Hr,vi,Li,ot,de);return Y(zt,ae),Z(zt,la),zt.commentDirectives=_.getCommentDirectives(),zt.nodeCount=me,zt.identifierCount=he,zt.identifiers=Ge,zt.parseDiagnostics=e.attachFileToDiagnostics(Ue,zt),He&&(zt.jsDocDiagnostics=e.attachFileToDiagnostics(He,zt)),kr&&Ce(zt),zt;function la(ja,Oa,eo){Ue.push(e.createDetachedDiagnostic(m,ja,Oa,eo))}}function n(Ie,kr){return kr?br(Ie):Ie}var Er=!1;function br(Ie){e.Debug.assert(!Ie.jsDoc);var kr=e.mapDefined(e.getJSDocCommentRanges(Ie,ae),function(Hr){return Zl.parseJSDocComment(Ie,Hr.pos,Hr.end-Hr.pos)});return kr.length&&(Ie.jsDoc=kr),Er&&(Er=!1,Ie.flags|=134217728),Ie}function Pr(Ie){var kr=ar,Hr=ie.createSyntaxCursor(Ie);ar={currentNode:es};var vi=[],Li=Ue;Ue=[];for(var ot=0,zt=$o(Ie.statements,0),la=function(){var Es=Ie.statements[ot],vc=Ie.statements[zt];e.addRange(vi,Ie.statements,ot,zt),ot=fo(Ie.statements,zt);var lc=e.findIndex(Li,function(Is){return Is.start>=Es.pos}),cl=lc>=0?e.findIndex(Li,function(Is){return Is.start>=vc.pos},lc):-1;lc>=0&&e.addRange(Ue,Li,lc,cl>=0?cl:void 0),Ti(function(){var Is=Se;for(Se|=32768,_.setTextPos(vc.pos),Je();v()!==1;){var yf=_.getStartPos(),g_=Ka(0,Wn);if(vi.push(g_),yf===_.getStartPos()&&Je(),ot>=0){var wc=Ie.statements[ot];if(g_.end===wc.pos)break;g_.end>wc.pos&&(ot=fo(Ie.statements,ot+1))}}Se=Is},2),zt=ot>=0?$o(Ie.statements,ot):-1};zt!==-1;)la();if(ot>=0){var ja=Ie.statements[ot];e.addRange(vi,Ie.statements,ot);var Oa=e.findIndex(Li,function(Es){return Es.start>=ja.pos});Oa>=0&&e.addRange(Ue,Li,Oa)}return ar=kr,ce.updateSourceFile(Ie,e.setTextRange(ce.createNodeArray(vi),Ie.statements));function eo(Es){return!(Es.flags&32768)&&!!(Es.transformFlags&16777216)}function $o(Es,vc){for(var lc=vc;lc<Es.length;lc++)if(eo(Es[lc]))return lc;return-1}function fo(Es,vc){for(var lc=vc;lc<Es.length;lc++)if(!eo(Es[lc]))return lc;return-1}function es(Es){var vc=Hr.currentNode(Es);return ge&&vc&&eo(vc)&&(vc.intersectsChange=!0),vc}}function Ce(Ie){e.setParentRecursive(Ie,!0)}l.fixupParentReferences=Ce;function Le(Ie,kr,Hr,vi,Li,ot,zt){var la=ce.createSourceFile(Li,ot,zt);return e.setTextRangePosWidth(la,0,ae.length),uc(la),!vi&&ue(la)&&la.transformFlags&16777216&&(la=Pr(la)),la.text=ae,la.bindDiagnostics=[],la.bindSuggestionDiagnostics=void 0,la.languageVersion=kr,la.fileName=Ie,la.languageVariant=e.getLanguageVariant(Hr),la.isDeclarationFile=vi,la.scriptKind=Hr,la}function Xe(Ie,kr){Ie?Se|=kr:Se&=~kr}function Cr(Ie){Xe(Ie,4096)}function Lr(Ie){Xe(Ie,8192)}function Jr(Ie){Xe(Ie,16384)}function Rr(Ie){Xe(Ie,32768)}function ci(Ie,kr){var Hr=Ie&Se;if(Hr){Xe(!1,Hr);var vi=kr();return Xe(!0,Hr),vi}return kr()}function be(Ie,kr){var Hr=Ie&~Se;if(Hr){Xe(!0,Hr);var vi=kr();return Xe(!1,Hr),vi}return kr()}function or(Ie){return ci(4096,Ie)}function Kr(Ie){return be(4096,Ie)}function ei(Ie){return be(8192,Ie)}function li(Ie){return be(16384,Ie)}function Si(Ie){return be(32768,Ie)}function qi(Ie){return ci(32768,Ie)}function ft(Ie){return be(40960,Ie)}function bt(Ie){return ci(40960,Ie)}function aa(Ie){return(Se&Ie)!==0}function sr(){return aa(8192)}function Ji(){return aa(4096)}function di(){return aa(16384)}function X(){return aa(32768)}function Ye(Ie,kr){Qe(_.getTokenPos(),_.getTextPos(),Ie,kr)}function Be(Ie,kr,Hr,vi){var Li=e.lastOrUndefined(Ue);(!Li||Ie!==Li.start)&&Ue.push(e.createDetachedDiagnostic(m,Ie,kr,Hr,vi)),Fe=!0}function Qe(Ie,kr,Hr,vi){Be(Ie,kr-Ie,Hr,vi)}function _r(Ie,kr,Hr){Qe(Ie.pos,Ie.end,kr,Hr)}function hr(Ie,kr){Be(_.getTextPos(),kr,Ie)}function Dr(){return _.getStartPos()}function Me(){return _.hasPrecedingJSDocComment()}function v(){return gr}function xe(){return gr=_.scan()}function ze(Ie){return Je(),Ie()}function Je(){return e.isKeyword(gr)&&(_.hasUnicodeEscape()||_.hasExtendedUnicodeEscape())&&Qe(_.getTokenPos(),_.getTextPos(),e.Diagnostics.Keywords_cannot_contain_escape_characters),xe()}function Oe(){return gr=_.scanJsDocToken()}function Fr(){return gr=_.reScanGreaterToken()}function Xr(){return gr=_.reScanSlashToken()}function Or(Ie){return gr=_.reScanTemplateToken(Ie)}function We(){return gr=_.reScanTemplateHeadOrNoSubstitutionTemplate()}function mr(){return gr=_.reScanLessThanToken()}function Nr(){return gr=_.reScanHashToken()}function Ur(){return gr=_.scanJsxIdentifier()}function si(){return gr=_.scanJsxToken()}function mi(){return gr=_.scanJsxAttributeValue()}function Ti(Ie,kr){var Hr=gr,vi=Ue.length,Li=Fe,ot=Se,zt=kr!==0?_.lookAhead(Ie):_.tryScan(Ie);return e.Debug.assert(ot===Se),(!zt||kr!==0)&&(gr=Hr,kr!==2&&(Ue.length=vi),Fe=Li),zt}function hi(Ie){return Ti(Ie,1)}function ki(Ie){return Ti(Ie,0)}function Ui(){return v()===79?!0:v()>116}function zi(){return v()===79?!0:v()===125&&sr()||v()===132&&X()?!1:v()>116}function ri(Ie,kr,Hr){return Hr===void 0&&(Hr=!0),v()===Ie?(Hr&&Je(),!0):(kr?Ye(kr):Ye(e.Diagnostics._0_expected,e.tokenToString(Ie)),!1)}var Gi=Object.keys(e.textToKeywordObj).filter(function(Ie){return Ie.length>2});function Rt(Ie){var kr;if(e.isTaggedTemplateExpression(Ie)){Qe(e.skipTrivia(ae,Ie.template.pos),Ie.template.end,e.Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings);return}var Hr=e.isIdentifier(Ie)?e.idText(Ie):void 0;if(!Hr||!e.isIdentifierText(Hr,V)){Ye(e.Diagnostics._0_expected,e.tokenToString(26));return}var vi=e.skipTrivia(ae,Ie.pos);switch(Hr){case"const":case"let":case"var":Qe(vi,Ie.end,e.Diagnostics.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":pa(e.Diagnostics.Interface_name_cannot_be_0,e.Diagnostics.Interface_must_be_given_a_name,18);return;case"is":Qe(vi,_.getTextPos(),e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":pa(e.Diagnostics.Namespace_name_cannot_be_0,e.Diagnostics.Namespace_must_be_given_a_name,18);return;case"type":pa(e.Diagnostics.Type_alias_name_cannot_be_0,e.Diagnostics.Type_alias_must_be_given_a_name,63);return}var Li=(kr=e.getSpellingSuggestion(Hr,Gi,function(ot){return ot}))!==null&&kr!==void 0?kr:xt(Hr);if(Li){Qe(vi,Ie.end,e.Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0,Li);return}v()!==0&&Qe(vi,Ie.end,e.Diagnostics.Unexpected_keyword_or_identifier)}function pa(Ie,kr,Hr){v()===Hr?Ye(kr):Ye(Ie,_.getTokenValue())}function xt(Ie){for(var kr=0,Hr=Gi;kr<Hr.length;kr++){var vi=Hr[kr];if(Ie.length>vi.length+2&&e.startsWith(Ie,vi))return"".concat(vi," ").concat(Ie.slice(vi.length))}}function ua(Ie,kr,Hr){if(v()===59&&!_.hasPrecedingLineBreak()){Ye(e.Diagnostics.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(v()===20){Ye(e.Diagnostics.Cannot_start_a_function_call_in_a_type_annotation),Je();return}if(kr&&!Bt()){Hr?Ye(e.Diagnostics._0_expected,e.tokenToString(26)):Ye(e.Diagnostics.Expected_for_property_initializer);return}if(!Pi()){if(Hr){Ye(e.Diagnostics._0_expected,e.tokenToString(26));return}Rt(Ie)}}function Vt(Ie){return v()===Ie?(Oe(),!0):(Ye(e.Diagnostics._0_expected,e.tokenToString(Ie)),!1)}function St(Ie){return v()===Ie?(Je(),!0):!1}function Ci(Ie){if(v()===Ie)return gt()}function Hi(Ie){if(v()===Ie)return oa()}function Yi(Ie,kr,Hr){return Ci(Ie)||Ct(Ie,!1,kr||e.Diagnostics._0_expected,Hr||e.tokenToString(Ie))}function yt(Ie){return Hi(Ie)||Ct(Ie,!1,e.Diagnostics._0_expected,e.tokenToString(Ie))}function gt(){var Ie=Dr(),kr=v();return Je(),Qr(ce.createToken(kr),Ie)}function oa(){var Ie=Dr(),kr=v();return Oe(),Qr(ce.createToken(kr),Ie)}function Bt(){return v()===26?!0:v()===19||v()===1||_.hasPrecedingLineBreak()}function Pi(){return Bt()?(v()===26&&Je(),!0):!1}function Oi(){return Pi()||ri(26)}function wi(Ie,kr,Hr,vi){var Li=ce.createNodeArray(Ie,vi);return e.setTextRangePosEnd(Li,kr,Hr!=null?Hr:_.getStartPos()),Li}function Qr(Ie,kr,Hr){return e.setTextRangePosEnd(Ie,kr,Hr!=null?Hr:_.getStartPos()),Se&&(Ie.flags|=Se),Fe&&(Fe=!1,Ie.flags|=65536),Ie}function Ct(Ie,kr,Hr,vi){kr?Be(_.getStartPos(),0,Hr,vi):Hr&&Ye(Hr,vi);var Li=Dr(),ot=Ie===79?ce.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(Ie)?ce.createTemplateLiteralLikeNode(Ie,"","",void 0):Ie===8?ce.createNumericLiteral("",void 0):Ie===10?ce.createStringLiteral("",void 0):Ie===275?ce.createMissingDeclaration():ce.createToken(Ie);return Qr(ot,Li)}function tt(Ie){var kr=Ge.get(Ie);return kr===void 0&&Ge.set(Ie,kr=Ie),kr}function ta(Ie,kr,Hr){if(Ie){he++;var vi=Dr(),Li=v(),ot=tt(_.getTokenValue());return xe(),Qr(ce.createIdentifier(ot,void 0,Li),vi)}if(v()===80)return Ye(Hr||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),ta(!0);if(v()===0&&_.tryScan(function(){return _.reScanInvalidIdentifier()===79}))return ta(!0);he++;var zt=v()===1,la=_.isReservedWord(),ja=_.getTokenText(),Oa=la?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return Ct(79,zt,kr||Oa,ja)}function Xa(Ie){return ta(Ui(),void 0,Ie)}function on(Ie,kr){return ta(zi(),Ie,kr)}function qr(Ie){return ta(e.tokenIsIdentifierOrKeyword(v()),Ie)}function bn(){return e.tokenIsIdentifierOrKeyword(v())||v()===10||v()===8}function Rn(){return e.tokenIsIdentifierOrKeyword(v())||v()===10}function Sn(Ie){if(v()===10||v()===8){var kr=Pa();return kr.text=tt(kr.text),kr}return Ie&&v()===22?Zn():v()===80?Vo():qr()}function zn(){return Sn(!0)}function Zn(){var Ie=Dr();ri(22);var kr=or(Vs);return ri(23),Qr(ce.createComputedPropertyName(kr),Ie)}function ho(Ie){var kr=er.get(Ie);return kr===void 0&&er.set(Ie,kr=Ie),kr}function Vo(){var Ie=Dr(),kr=ce.createPrivateIdentifier(ho(_.getTokenText()));return Je(),Qr(kr,Ie)}function Cn(Ie){return v()===Ie&&ki(ro)}function go(){return Je(),_.hasPrecedingLineBreak()?!1:Do()}function ro(){switch(v()){case 85:return Je()===92;case 93:return Je(),v()===88?hi(io):v()===151?hi(rs):Ko();case 88:return io();case 124:case 136:case 148:return Je(),Do();default:return go()}}function Ko(){return v()!==41&&v()!==127&&v()!==18&&Do()}function rs(){return Je(),Ko()}function rn(){return e.isModifierKind(v())&&ki(ro)}function Do(){return v()===22||v()===18||v()===41||v()===25||bn()}function io(){return Je(),v()===84||v()===98||v()===118||v()===126&&hi(j_)||v()===131&&hi(Uf)}function pn(Ie,kr){var Hr=an(Ie);if(Hr)return!0;switch(Ie){case 0:case 1:case 3:return!(v()===26&&kr)&&al();case 2:return v()===82||v()===88;case 4:return hi(Vr);case 5:return hi(gf)||v()===26&&!kr;case 6:return v()===22||bn();case 12:switch(v()){case 22:case 41:case 25:case 24:return!0;default:return bn()}case 18:return bn();case 9:return v()===22||v()===25||bn();case 24:return Rn();case 7:return v()===18?hi(Qn):kr?zi()&&!No():tf()&&!No();case 8:return Gl();case 10:return v()===27||v()===25||Gl();case 19:return zi();case 15:switch(v()){case 27:case 24:return!0}case 11:return v()===25||If();case 16:return Xs(!1);case 17:return Xs(!0);case 20:case 21:return v()===27||no();case 22:return __();case 23:return e.tokenIsIdentifierOrKeyword(v());case 13:return e.tokenIsIdentifierOrKeyword(v())||v()===18;case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function Qn(){if(e.Debug.assert(v()===18),Je()===19){var Ie=Je();return Ie===27||Ie===18||Ie===94||Ie===117}return!0}function wo(){return Je(),zi()}function xo(){return Je(),e.tokenIsIdentifierOrKeyword(v())}function ds(){return Je(),e.tokenIsIdentifierOrKeywordOrGreaterThan(v())}function No(){return v()===117||v()===94?hi(Ts):!1}function Ts(){return Je(),If()}function Ms(){return Je(),no()}function xr(Ie){if(v()===1)return!0;switch(Ie){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return v()===19;case 3:return v()===19||v()===82||v()===88;case 7:return v()===18||v()===94||v()===117;case 8:return bi();case 19:return v()===31||v()===20||v()===18||v()===94||v()===117;case 11:return v()===21||v()===26;case 15:case 21:case 10:return v()===23;case 17:case 16:case 18:return v()===21||v()===23;case 20:return v()!==27;case 22:return v()===18||v()===19;case 13:return v()===31||v()===43;case 14:return v()===29&&hi(sl);default:return!1}}function bi(){return!!(Bt()||M_(v())||v()===38)}function ut(){for(var Ie=0;Ie<25;Ie++)if(we&1<<Ie&&(pn(Ie,!0)||xr(Ie)))return!0;return!1}function Ht(Ie,kr){var Hr=we;we|=1<<Ie;for(var vi=[],Li=Dr();!xr(Ie);){if(pn(Ie,!1)){vi.push(Ka(Ie,kr));continue}if(ca(Ie))break}return we=Hr,wi(vi,Li)}function Ka(Ie,kr){var Hr=an(Ie);return Hr?Ke(Hr):kr()}function an(Ie){if(!(!ar||!h(Ie)||Fe)){var kr=ar.currentNode(_.getStartPos());if(!(e.nodeIsMissing(kr)||kr.intersectsChange||e.containsParseError(kr))){var Hr=kr.flags&25358336;if(Hr===Se&&!!Ee(kr,Ie))return kr.jsDocCache&&(kr.jsDocCache=void 0),kr}}}function Ke(Ie){return _.setTextPos(Ie.end),Je(),Ie}function h(Ie){switch(Ie){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}function Ee(Ie,kr){switch(kr){case 5:return Re(Ie);case 2:return nr(Ie);case 0:case 1:case 3:return Gr(Ie);case 6:return _i(Ie);case 4:return Ei(Ie);case 8:return Ki(Ie);case 17:case 16:return Nt(Ie)}return!1}function Re(Ie){if(Ie)switch(Ie.kind){case 170:case 175:case 171:case 172:case 166:case 233:return!0;case 168:var kr=Ie,Hr=kr.name.kind===79&&kr.name.originalKeywordKind===134;return!Hr}return!1}function nr(Ie){if(Ie)switch(Ie.kind){case 288:case 289:return!0}return!1}function Gr(Ie){if(Ie)switch(Ie.kind){case 255:case 236:case 234:case 238:case 237:case 250:case 246:case 248:case 245:case 244:case 242:case 243:case 241:case 240:case 247:case 235:case 251:case 249:case 239:case 252:case 265:case 264:case 271:case 270:case 260:case 256:case 257:case 259:case 258:return!0}return!1}function _i(Ie){return Ie.kind===297}function Ei(Ie){if(Ie)switch(Ie.kind){case 174:case 167:case 175:case 165:case 173:return!0}return!1}function Ki(Ie){if(Ie.kind!==253)return!1;var kr=Ie;return kr.initializer===void 0}function Nt(Ie){if(Ie.kind!==163)return!1;var kr=Ie;return kr.initializer===void 0}function ca(Ie){return Fa(Ie),ut()?!0:(Je(),!1)}function Fa(Ie){switch(Ie){case 0:return v()===88?Ye(e.Diagnostics._0_expected,e.tokenToString(93)):Ye(e.Diagnostics.Declaration_or_statement_expected);case 1:return Ye(e.Diagnostics.Declaration_or_statement_expected);case 2:return Ye(e.Diagnostics.case_or_default_expected);case 3:return Ye(e.Diagnostics.Statement_expected);case 18:case 4:return Ye(e.Diagnostics.Property_or_signature_expected);case 5:return Ye(e.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return Ye(e.Diagnostics.Enum_member_expected);case 7:return Ye(e.Diagnostics.Expression_expected);case 8:return e.isKeyword(v())?Ye(e.Diagnostics._0_is_not_allowed_as_a_variable_declaration_name,e.tokenToString(v())):Ye(e.Diagnostics.Variable_declaration_expected);case 9:return Ye(e.Diagnostics.Property_destructuring_pattern_expected);case 10:return Ye(e.Diagnostics.Array_element_destructuring_pattern_expected);case 11:return Ye(e.Diagnostics.Argument_expression_expected);case 12:return Ye(e.Diagnostics.Property_assignment_expected);case 15:return Ye(e.Diagnostics.Expression_or_comma_expected);case 17:return Ye(e.Diagnostics.Parameter_declaration_expected);case 16:return e.isKeyword(v())?Ye(e.Diagnostics._0_is_not_allowed_as_a_parameter_name,e.tokenToString(v())):Ye(e.Diagnostics.Parameter_declaration_expected);case 19:return Ye(e.Diagnostics.Type_parameter_declaration_expected);case 20:return Ye(e.Diagnostics.Type_argument_expected);case 21:return Ye(e.Diagnostics.Type_expected);case 22:return Ye(e.Diagnostics.Unexpected_token_expected);case 23:return Ye(e.Diagnostics.Identifier_expected);case 13:return Ye(e.Diagnostics.Identifier_expected);case 14:return Ye(e.Diagnostics.Identifier_expected);default:return[void 0]}}function Ta(Ie,kr,Hr){var vi=we;we|=1<<Ie;for(var Li=[],ot=Dr(),zt=-1;;){if(pn(Ie,!1)){var la=_.getStartPos();if(Li.push(Ka(Ie,kr)),zt=_.getTokenPos(),St(27))continue;if(zt=-1,xr(Ie))break;ri(27,In(Ie)),Hr&&v()===26&&!_.hasPrecedingLineBreak()&&Je(),la===_.getStartPos()&&Je();continue}if(xr(Ie)||ca(Ie))break}return we=vi,wi(Li,ot,void 0,zt>=0)}function In(Ie){return Ie===6?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function so(){var Ie=wi([],Dr());return Ie.isMissingList=!0,Ie}function as(Ie){return!!Ie.isMissingList}function Ho(Ie,kr,Hr,vi){if(ri(Hr)){var Li=Ta(Ie,kr);return ri(vi),Li}return so()}function Ds(Ie,kr){for(var Hr=Dr(),vi=Ie?qr(kr):on(kr),Li=Dr();St(24);){if(v()===29){vi.jsdocDotPos=Li;break}Li=Dr(),vi=Qr(ce.createQualifiedName(vi,mc(Ie,!1)),Hr)}return vi}function Os(Ie,kr){return Qr(ce.createQualifiedName(Ie,kr),Ie.pos)}function mc(Ie,kr){if(_.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(v())){var Hr=hi(Vl);if(Hr)return Ct(79,!0,e.Diagnostics.Identifier_expected)}if(v()===80){var vi=Vo();return kr?vi:Ct(79,!0,e.Diagnostics.Identifier_expected)}return Ie?qr():on()}function Hs(Ie){var kr=Dr(),Hr=[],vi;do vi=An(Ie),Hr.push(vi);while(vi.literal.kind===16);return wi(Hr,kr)}function Mi(Ie){var kr=Dr();return Qr(ce.createTemplateExpression(Mn(Ie),Hs(Ie)),kr)}function $t(){var Ie=Dr();return Qr(ce.createTemplateLiteralType(Mn(!1),ga()),Ie)}function ga(){var Ie=Dr(),kr=[],Hr;do Hr=xn(),kr.push(Hr);while(Hr.literal.kind===16);return wi(kr,Ie)}function xn(){var Ie=Dr();return Qr(ce.createTemplateLiteralTypeSpan(Ls(),yn(!1)),Ie)}function yn(Ie){return v()===19?(Or(Ie),ao()):Yi(17,e.Diagnostics._0_expected,e.tokenToString(19))}function An(Ie){var kr=Dr();return Qr(ce.createTemplateSpan(or(Vs),yn(Ie)),kr)}function Pa(){return De(v())}function Mn(Ie){Ie&&We();var kr=De(v());return e.Debug.assert(kr.kind===15,"Template head has wrong token kind"),kr}function ao(){var Ie=De(v());return e.Debug.assert(Ie.kind===16||Ie.kind===17,"Template fragment has wrong token kind"),Ie}function co(Ie){var kr=Ie===14||Ie===17,Hr=_.getTokenText();return Hr.substring(1,Hr.length-(_.isUnterminated()?0:kr?1:2))}function De(Ie){var kr=Dr(),Hr=e.isTemplateLiteralKind(Ie)?ce.createTemplateLiteralLikeNode(Ie,_.getTokenValue(),co(Ie),_.getTokenFlags()&2048):Ie===8?ce.createNumericLiteral(_.getTokenValue(),_.getNumericLiteralFlags()):Ie===10?ce.createStringLiteral(_.getTokenValue(),void 0,_.hasExtendedUnicodeEscape()):e.isLiteralKind(Ie)?ce.createLiteralLikeNode(Ie,_.getTokenValue()):e.Debug.fail();return _.hasExtendedUnicodeEscape()&&(Hr.hasExtendedUnicodeEscape=!0),_.isUnterminated()&&(Hr.isUnterminated=!0),Je(),Qr(Hr,kr)}function zr(){return Ds(!0,e.Diagnostics.Type_expected)}function xi(){if(!_.hasPrecedingLineBreak()&&mr()===29)return Ho(20,Ls,29,31)}function et(){var Ie=Dr();return Qr(ce.createTypeReferenceNode(zr(),xi()),Ie)}function je(Ie){switch(Ie.kind){case 177:return e.nodeIsMissing(Ie.typeName);case 178:case 179:{var kr=Ie,Hr=kr.parameters,vi=kr.type;return as(Hr)||je(vi)}case 190:return je(Ie.type);default:return!1}}function ti(Ie){return Je(),Qr(ce.createTypePredicateNode(void 0,Ie,Ls()),Ie.pos)}function mt(){var Ie=Dr();return Je(),Qr(ce.createThisTypeNode(),Ie)}function Zt(){var Ie=Dr();return Je(),Qr(ce.createJSDocAllType(),Ie)}function ln(){var Ie=Dr();return Je(),Qr(ce.createJSDocNonNullableType(wn()),Ie)}function Ba(){var Ie=Dr();return Je(),v()===27||v()===19||v()===21||v()===31||v()===63||v()===51?Qr(ce.createJSDocUnknownType(),Ie):Qr(ce.createJSDocNullableType(Ls()),Ie)}function Oo(){var Ie=Dr(),kr=Me();if(hi(yu)){Je();var Hr=Dc(36),vi=uo(58,!1);return n(Qr(ce.createJSDocFunctionType(Hr,vi),Ie),kr)}return Qr(ce.createTypeReferenceNode(qr(),void 0),Ie)}function jr(){var Ie=Dr(),kr;return(v()===108||v()===103)&&(kr=qr(),ri(58)),Qr(ce.createParameterDeclaration(void 0,void 0,void 0,kr,void 0,is(),void 0),Ie)}function is(){_.setInJSDocType(!0);var Ie=Dr();if(St(141)){var kr=ce.createJSDocNamepathType(void 0);e:for(;;)switch(v()){case 19:case 1:case 27:case 5:break e;default:Oe()}return _.setInJSDocType(!1),Qr(kr,Ie)}var Hr=St(25),vi=bo();return _.setInJSDocType(!1),Hr&&(vi=Qr(ce.createJSDocVariadicType(vi),Ie)),v()===63?(Je(),Qr(ce.createJSDocOptionalType(vi),Ie)):vi}function hc(){var Ie=Dr();return ri(112),Qr(ce.createTypeQueryNode(Ds(!0)),Ie)}function nc(){var Ie=Dr(),kr=on(),Hr,vi;St(94)&&(no()||!If()?Hr=Ls():vi=L_());var Li=St(63)?Ls():void 0,ot=ce.createTypeParameterDeclaration(kr,Hr,Li);return ot.expression=vi,Qr(ot,Ie)}function ns(){if(v()===29)return Ho(19,nc,29,31)}function Xs(Ie){return v()===25||Gl()||e.isModifierKind(v())||v()===59||no(!Ie)}function rc(Ie){var kr=bs(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return e.getFullWidth(kr)===0&&!e.some(Ie)&&e.isModifierKind(v())&&Je(),kr}function uu(){return Qu(!0)}function Bc(){return Qu(!1)}function Qu(Ie){var kr=Dr(),Hr=Me(),vi=Ie?Si(El):El();if(v()===108){var Li=ce.createParameterDeclaration(vi,void 0,void 0,ta(!0),void 0,xu(),void 0);return vi&&_r(vi[0],e.Diagnostics.Decorators_may_not_be_applied_to_this_parameters),n(Qr(Li,kr),Hr)}var ot=ge;ge=!1;var zt=Zc(),la=n(Qr(ce.createParameterDeclaration(vi,zt,Ci(25),rc(zt),Ci(57),xu(),Zu()),kr),Hr);return ge=ot,la}function uo(Ie,kr){if(Xc(Ie,kr))return bo()}function Xc(Ie,kr){return Ie===38?(ri(Ie),!0):St(58)?!0:kr&&v()===38?(Ye(e.Diagnostics._0_expected,e.tokenToString(58)),Je(),!0):!1}function Ru(Ie){var kr=sr(),Hr=X();Lr(!!(Ie&1)),Rr(!!(Ie&2));var vi=Ie&32?Ta(17,jr):Ta(16,Hr?uu:Bc);return Lr(kr),Rr(Hr),vi}function Dc(Ie){if(!ri(20))return so();var kr=Ru(Ie);return ri(21),kr}function Yu(){St(27)||Oi()}function lu(Ie){var kr=Dr(),Hr=Me();Ie===174&&ri(103);var vi=ns(),Li=Dc(4),ot=uo(58,!0);Yu();var zt=Ie===173?ce.createCallSignature(vi,Li,ot):ce.createConstructSignature(vi,Li,ot);return n(Qr(zt,kr),Hr)}function qa(){return v()===22&&hi(Bu)}function Bu(){if(Je(),v()===25||v()===23)return!0;if(e.isModifierKind(v())){if(Je(),zi())return!0}else if(zi())Je();else return!1;return v()===58||v()===27?!0:v()!==57?!1:(Je(),v()===58||v()===27||v()===23)}function $u(Ie,kr,Hr,vi){var Li=Ho(16,Bc,22,23),ot=xu();Yu();var zt=ce.createIndexSignature(Hr,vi,Li,ot);return n(Qr(zt,Ie),kr)}function au(Ie,kr,Hr){var vi=zn(),Li=Ci(57),ot;if(v()===20||v()===29){var zt=ns(),la=Dc(4),ja=uo(58,!0);ot=ce.createMethodSignature(Hr,vi,Li,zt,la,ja)}else{var ja=xu();ot=ce.createPropertySignature(Hr,vi,Li,ja),v()===63&&(ot.initializer=Zu())}return Yu(),n(Qr(ot,Ie),kr)}function Vr(){if(v()===20||v()===29||v()===136||v()===148)return!0;for(var Ie=!1;e.isModifierKind(v());)Ie=!0,Je();return v()===22?!0:(bn()&&(Ie=!0,Je()),Ie?v()===20||v()===29||v()===57||v()===58||v()===27||Bt():!1)}function fi(){if(v()===20||v()===29)return lu(173);if(v()===103&&hi(Ni))return lu(174);var Ie=Dr(),kr=Me(),Hr=Zc();return Cn(136)?xl(Ie,kr,void 0,Hr,171):Cn(148)?xl(Ie,kr,void 0,Hr,172):qa()?$u(Ie,kr,void 0,Hr):au(Ie,kr,Hr)}function Ni(){return Je(),v()===20||v()===29}function rt(){return Je()===24}function Tt(){switch(Je()){case 20:case 29:case 24:return!0}return!1}function Dt(){var Ie=Dr();return Qr(ce.createTypeLiteralNode(jt()),Ie)}function jt(){var Ie;return ri(18)?(Ie=Ht(4,fi),ri(19)):Ie=so(),Ie}function na(){return Je(),v()===39||v()===40?Je()===144:(v()===144&&Je(),v()===22&&wo()&&Je()===101)}function Za(){var Ie=Dr(),kr=qr();ri(101);var Hr=Ls();return Qr(ce.createTypeParameterDeclaration(kr,Hr,void 0),Ie)}function ya(){var Ie=Dr();ri(18);var kr;(v()===144||v()===39||v()===40)&&(kr=gt(),kr.kind!==144&&ri(144)),ri(22);var Hr=Za(),vi=St(127)?Ls():void 0;ri(23);var Li;(v()===57||v()===39||v()===40)&&(Li=gt(),Li.kind!==57&&ri(57));var ot=xu();Oi();var zt=Ht(4,fi);return ri(19),Qr(ce.createMappedTypeNode(kr,Hr,vi,Li,ot,zt),Ie)}function ha(){var Ie=Dr();if(St(25))return Qr(ce.createRestTypeNode(Ls()),Ie);var kr=Ls();if(e.isJSDocNullableType(kr)&&kr.pos===kr.type.pos){var Hr=ce.createOptionalTypeNode(kr.type);return e.setTextRange(Hr,kr),Hr.flags=kr.flags,Hr}return kr}function Ja(){return Je()===58||v()===57&&Je()===58}function Eo(){return v()===25?e.tokenIsIdentifierOrKeyword(Je())&&Ja():e.tokenIsIdentifierOrKeyword(v())&&Ja()}function Hn(){if(hi(Eo)){var Ie=Dr(),kr=Me(),Hr=Ci(25),vi=qr(),Li=Ci(57);ri(58);var ot=ha(),zt=ce.createNamedTupleMember(Hr,vi,Li,ot);return n(Qr(zt,Ie),kr)}return ha()}function lo(){var Ie=Dr();return Qr(ce.createTupleTypeNode(Ho(21,Hn,22,23)),Ie)}function Kn(){var Ie=Dr();ri(20);var kr=Ls();return ri(21),Qr(ce.createParenthesizedType(kr),Ie)}function Te(){var Ie;if(v()===126){var kr=Dr();Je();var Hr=Qr(ce.createToken(126),kr);Ie=wi([Hr],kr)}return Ie}function vr(){var Ie=Dr(),kr=Me(),Hr=Te(),vi=St(103),Li=ns(),ot=Dc(4),zt=uo(38,!1),la=vi?ce.createConstructorTypeNode(Hr,Li,ot,zt):ce.createFunctionTypeNode(Li,ot,zt);return vi||(la.modifiers=Hr),n(Qr(la,Ie),kr)}function Sr(){var Ie=gt();return v()===24?void 0:Ie}function Di(Ie){var kr=Dr();Ie&&Je();var Hr=v()===110||v()===95||v()===104?gt():De(v());return Ie&&(Hr=Qr(ce.createPrefixUnaryExpression(40,Hr),kr)),Qr(ce.createLiteralTypeNode(Hr),kr)}function nt(){return Je(),v()===100}function _a(){de|=1048576;var Ie=Dr(),kr=St(112);ri(100),ri(20);var Hr=Ls();ri(21);var vi=St(24)?zr():void 0,Li=xi();return Qr(ce.createImportTypeNode(Hr,vi,Li,kr),Ie)}function Na(){return Je(),v()===8||v()===9}function wn(){switch(v()){case 130:case 154:case 149:case 146:case 157:case 150:case 133:case 152:case 143:case 147:return ki(Sr)||et();case 66:_.reScanAsteriskEqualsToken();case 41:return Zt();case 60:_.reScanQuestionToken();case 57:return Ba();case 98:return Oo();case 53:return ln();case 14:case 10:case 8:case 9:case 110:case 95:case 104:return Di();case 40:return hi(Na)?Di(!0):et();case 114:return gt();case 108:{var Ie=mt();return v()===139&&!_.hasPrecedingLineBreak()?ti(Ie):Ie}case 112:return hi(nt)?_a():hc();case 18:return hi(na)?ya():Dt();case 22:return lo();case 20:return Kn();case 100:return _a();case 128:return hi(Vl)?i_():et();case 15:return $t();default:return et()}}function no(Ie){switch(v()){case 130:case 154:case 149:case 146:case 157:case 133:case 144:case 150:case 153:case 114:case 152:case 104:case 108:case 112:case 143:case 18:case 22:case 29:case 51:case 50:case 103:case 10:case 8:case 9:case 110:case 95:case 147:case 41:case 57:case 53:case 25:case 137:case 100:case 128:case 14:case 15:return!0;case 98:return!Ie;case 40:return!Ie&&hi(Na);case 20:return!Ie&&hi(Go);default:return zi()}}function Go(){return Je(),v()===21||Xs(!1)||no()}function vo(){for(var Ie=Dr(),kr=wn();!_.hasPrecedingLineBreak();)switch(v()){case 53:Je(),kr=Qr(ce.createJSDocNonNullableType(kr),Ie);break;case 57:if(hi(Ms))return kr;Je(),kr=Qr(ce.createJSDocNullableType(kr),Ie);break;case 22:if(ri(22),no()){var Hr=Ls();ri(23),kr=Qr(ce.createIndexedAccessTypeNode(kr,Hr),Ie)}else ri(23),kr=Qr(ce.createArrayTypeNode(kr),Ie);break;default:return kr}return kr}function Vn(Ie){var kr=Dr();return ri(Ie),Qr(ce.createTypeOperatorNode(Ie,Xo()),kr)}function to(){var Ie=Dr();return Qr(ce.createTypeParameterDeclaration(on(),void 0,void 0),Ie)}function Jo(){var Ie=Dr();return ri(137),Qr(ce.createInferTypeNode(to()),Ie)}function Xo(){var Ie=v();switch(Ie){case 140:case 153:case 144:return Vn(Ie);case 137:return Jo()}return vo()}function Wr(Ie){if(Qc()){var kr=vr(),Hr=void 0;return e.isFunctionTypeNode(kr)?Hr=Ie?e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Hr=Ie?e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,_r(kr,Hr),kr}}function Ws(Ie,kr,Hr){var vi=Dr(),Li=Ie===51,ot=St(Ie),zt=ot&&Wr(Li)||kr();if(v()===Ie||ot){for(var la=[zt];St(Ie);)la.push(Wr(Li)||kr());zt=Qr(Hr(wi(la,vi)),vi)}return zt}function nu(){return Ws(50,Xo,ce.createIntersectionTypeNode)}function Tu(){return Ws(51,nu,ce.createUnionTypeNode)}function oc(){return Je(),v()===103}function Qc(){return v()===29||v()===20&&hi(lp)?!0:v()===103||v()===126&&hi(oc)}function fu(){if(e.isModifierKind(v())&&Zc(),zi()||v()===108)return Je(),!0;if(v()===22||v()===18){var Ie=Ue.length;return bs(),Ie===Ue.length}return!1}function lp(){return Je(),!!(v()===21||v()===25||fu()&&(v()===58||v()===27||v()===57||v()===63||v()===21&&(Je(),v()===38)))}function bo(){var Ie=Dr(),kr=zi()&&ki(w_),Hr=Ls();return kr?Qr(ce.createTypePredicateNode(void 0,kr,Hr),Ie):Hr}function w_(){var Ie=on();if(v()===139&&!_.hasPrecedingLineBreak())return Je(),Ie}function i_(){var Ie=Dr(),kr=Yi(128),Hr=v()===108?mt():on(),vi=St(139)?Ls():void 0;return Qr(ce.createTypePredicateNode(kr,Hr,vi),Ie)}function Ls(){return ci(40960,hl)}function hl(Ie){if(Qc())return vr();var kr=Dr(),Hr=Tu();if(!Ie&&!_.hasPrecedingLineBreak()&&St(94)){var vi=hl(!0);ri(57);var Li=hl();ri(58);var ot=hl();return Qr(ce.createConditionalTypeNode(Hr,vi,Li,ot),kr)}return Hr}function xu(){return St(58)?Ls():void 0}function tf(){switch(v()){case 108:case 106:case 104:case 110:case 95:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 98:case 84:case 103:case 43:case 68:case 79:return!0;case 100:return hi(Tt);default:return zi()}}function If(){if(tf())return!0;switch(v()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 45:case 46:case 29:case 132:case 125:case 80:return!0;default:return Qp()?!0:zi()}}function Yc(){return v()!==18&&v()!==98&&v()!==84&&v()!==59&&If()}function Vs(){var Ie=di();Ie&&Jr(!1);for(var kr=Dr(),Hr=Ma(),vi;vi=Ci(27);)Hr=pp(Hr,vi,Ma(),kr);return Ie&&Jr(!0),Hr}function Zu(){return St(63)?Ma():void 0}function Ma(){if(Da())return Pc();var Ie=wf()||Of();if(Ie)return Ie;var kr=Dr(),Hr=Ff(0);return Hr.kind===79&&v()===38?fp(kr,Hr,void 0):e.isLeftHandSideExpression(Hr)&&e.isAssignmentOperator(Fr())?pp(Hr,gt(),Ma(),kr):F_(Hr,kr)}function Da(){return v()===125?sr()?!0:hi(Sp):!1}function Ju(){return Je(),!_.hasPrecedingLineBreak()&&zi()}function Pc(){var Ie=Dr();return Je(),!_.hasPrecedingLineBreak()&&(v()===41||If())?Qr(ce.createYieldExpression(Ci(41),Ma()),Ie):Qr(ce.createYieldExpression(void 0,void 0),Ie)}function fp(Ie,kr,Hr){e.Debug.assert(v()===38,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var vi=ce.createParameterDeclaration(void 0,void 0,void 0,kr,void 0,void 0,void 0);Qr(vi,kr.pos);var Li=wi([vi],vi.pos,vi.end),ot=Yi(38),zt=Nc(!!Hr),la=ce.createArrowFunction(Hr,void 0,Li,void 0,ot,zt);return br(Qr(la,Ie))}function wf(){var Ie=Xp();if(Ie!==0)return Ie===1?t_(!0):ki(el)}function Xp(){return v()===20||v()===29||v()===131?hi(os):v()===38?1:0}function os(){if(v()===131&&(Je(),_.hasPrecedingLineBreak()||v()!==20&&v()!==29))return 0;var Ie=v(),kr=Je();if(Ie===20){if(kr===21){var Hr=Je();switch(Hr){case 38:case 58:case 18:return 1;default:return 0}}if(kr===22||kr===18)return 2;if(kr===25||e.isModifierKind(kr)&&kr!==131&&hi(wo))return 1;if(!zi()&&kr!==108)return 0;switch(Je()){case 58:return 1;case 57:return Je(),v()===58||v()===27||v()===63||v()===21?1:0;case 27:case 63:case 21:return 2}return 0}else{if(e.Debug.assert(Ie===29),!zi())return 0;if(ke===1){var vi=hi(function(){var Li=Je();if(Li===94){var ot=Je();switch(ot){case 63:case 31:return!1;default:return!0}}else if(Li===27||Li===63)return!0;return!1});return vi?1:0}return 2}}function el(){var Ie=_.getTokenPos();if(!(ye!=null&&ye.has(Ie))){var kr=t_(!1);return kr||(ye||(ye=new e.Set)).add(Ie),kr}}function Of(){if(v()===131&&hi(O_)===1){var Ie=Dr(),kr=kp(),Hr=Ff(0);return fp(Ie,Hr,kr)}}function O_(){if(v()===131){if(Je(),_.hasPrecedingLineBreak()||v()===38)return 0;var Ie=Ff(0);if(!_.hasPrecedingLineBreak()&&Ie.kind===79&&v()===38)return 1}return 0}function t_(Ie){var kr=Dr(),Hr=Me(),vi=kp(),Li=e.some(vi,e.isAsyncModifier)?2:0,ot=ns(),zt;if(ri(20)){if(zt=Ru(Li),!ri(21)&&!Ie)return}else{if(!Ie)return;zt=so()}var la=uo(58,!1);if(!(la&&!Ie&&je(la))){for(var ja=la;(ja==null?void 0:ja.kind)===190;)ja=ja.type;var Oa=ja&&e.isJSDocFunctionType(ja);if(!(!Ie&&v()!==38&&(Oa||v()!==18))){var eo=v(),$o=Yi(38),fo=eo===38||eo===18?Nc(e.some(vi,e.isAsyncModifier)):on(),es=ce.createArrowFunction(vi,ot,zt,la,$o,fo);return n(Qr(es,kr),Hr)}}}function Nc(Ie){if(v()===18)return mn(Ie?2:0);if(v()!==26&&v()!==98&&v()!==84&&al()&&!Yc())return mn(16|(Ie?2:0));var kr=ge;ge=!1;var Hr=Ie?Si(Ma):qi(Ma);return ge=kr,Hr}function F_(Ie,kr){var Hr=Ci(57);if(!Hr)return Ie;var vi;return Qr(ce.createConditionalExpression(Ie,Hr,ci(J,Ma),vi=Yi(58),e.nodeIsPresent(vi)?Ma():Ct(79,!1,e.Diagnostics._0_expected,e.tokenToString(58))),kr)}function Ff(Ie){var kr=Dr(),Hr=L_();return _p(Ie,Hr,kr)}function M_(Ie){return Ie===101||Ie===159}function _p(Ie,kr,Hr){for(;;){Fr();var vi=e.getBinaryOperatorPrecedence(v()),Li=v()===42?vi>=Ie:vi>Ie;if(!Li||v()===101&&Ji())break;if(v()===127){if(_.hasPrecedingLineBreak())break;Je(),kr=dp(kr,Ls())}else kr=pp(kr,gt(),Ff(vi),Hr)}return kr}function Qp(){return Ji()&&v()===101?!1:e.getBinaryOperatorPrecedence(v())>0}function pp(Ie,kr,Hr,vi){return Qr(ce.createBinaryExpression(Ie,kr,Hr),vi)}function dp(Ie,kr){return Qr(ce.createAsExpression(Ie,kr),Ie.pos)}function gp(){var Ie=Dr();return Qr(ce.createPrefixUnaryExpression(v(),ze(rl)),Ie)}function Yp(){var Ie=Dr();return Qr(ce.createDeleteExpression(ze(rl)),Ie)}function $p(){var Ie=Dr();return Qr(ce.createTypeOfExpression(ze(rl)),Ie)}function a_(){var Ie=Dr();return Qr(ce.createVoidExpression(ze(rl)),Ie)}function Cd(){return v()===132?X()?!0:hi(Sp):!1}function mp(){var Ie=Dr();return Qr(ce.createAwaitExpression(ze(rl)),Ie)}function L_(){if(ju()){var Ie=Dr(),kr=_u();return v()===42?_p(e.getBinaryOperatorPrecedence(v()),kr,Ie):kr}var Hr=v(),vi=rl();if(v()===42){var Ie=e.skipTrivia(ae,vi.pos),Li=vi.end;vi.kind===210?Qe(Ie,Li,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):Qe(Ie,Li,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(Hr))}return vi}function rl(){switch(v()){case 39:case 40:case 54:case 53:return gp();case 89:return Yp();case 112:return $p();case 114:return a_();case 29:return ic();case 132:if(Cd())return mp();default:return _u()}}function ju(){switch(v()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 132:return!1;case 29:if(ke!==1)return!1;default:return!0}}function _u(){if(v()===45||v()===46){var Ie=Dr();return Qr(ce.createPrefixUnaryExpression(v(),ze(Eu)),Ie)}else if(ke===1&&v()===29&&hi(ds))return Wl(!0);var kr=Eu();if(e.Debug.assert(e.isLeftHandSideExpression(kr)),(v()===45||v()===46)&&!_.hasPrecedingLineBreak()){var Hr=v();return Je(),Qr(ce.createPostfixUnaryExpression(kr,Hr),kr.pos)}return kr}function Eu(){var Ie=Dr(),kr;return v()===100?hi(Ni)?(de|=1048576,kr=gt()):hi(rt)?(Je(),Je(),kr=Qr(ce.createMetaProperty(100,qr()),Ie),de|=2097152):kr=Dl():kr=v()===106?Zp():Dl(),pu(Ie,kr)}function Dl(){var Ie=Dr(),kr=il();return c_(Ie,kr,!0)}function Zp(){var Ie=Dr(),kr=gt();if(v()===29){var Hr=Dr(),vi=ki(bl);vi!==void 0&&Qe(Hr,Dr(),e.Diagnostics.super_may_not_use_type_arguments)}return v()===20||v()===24||v()===22?kr:(Yi(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),Qr(ce.createPropertyAccessExpression(kr,mc(!0,!0)),Ie))}function Wl(Ie,kr,Hr){var vi=Dr(),Li=R_(Ie),ot;if(Li.kind===279){var zt=vp(Li),la=void 0,ja=zt[zt.length-1];if((ja==null?void 0:ja.kind)===277&&!D(ja.openingElement.tagName,ja.closingElement.tagName)&&D(Li.tagName,ja.closingElement.tagName)){var Oa=ja.children.end,eo=Qr(ce.createJsxElement(ja.openingElement,ja.children,Qr(ce.createJsxClosingElement(Qr(ce.createIdentifier(""),Oa,Oa)),Oa,Oa)),ja.openingElement.pos,Oa);zt=wi(qe(qe([],zt.slice(0,zt.length-1),!0),[eo],!1),zt.pos,Oa),la=ja.closingElement}else la=Mf(Li,Ie),D(Li.tagName,la.tagName)||(Hr&&e.isJsxOpeningElement(Hr)&&D(la.tagName,Hr.tagName)?_r(Li.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(ae,Li.tagName)):_r(la.tagName,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(ae,Li.tagName)));ot=Qr(ce.createJsxElement(Li,zt,la),vi)}else Li.kind===282?ot=Qr(ce.createJsxFragment(Li,vp(Li),hp(Ie)),vi):(e.Debug.assert(Li.kind===278),ot=Li);if(Ie&&v()===29){var $o=typeof kr>"u"?ot.pos:kr,fo=ki(function(){return Wl(!0,$o)});if(fo){var es=Ct(27,!1);return e.setTextRangePosWidth(es,fo.pos,0),Qe(e.skipTrivia(ae,$o),fo.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),Qr(ce.createBinaryExpression(ot,es,fo),vi)}}return ot}function ed(){var Ie=Dr(),kr=ce.createJsxText(_.getTokenValue(),gr===12);return gr=_.scanJsxToken(),Qr(kr,Ie)}function n_(Ie,kr){switch(kr){case 1:if(e.isJsxOpeningFragment(Ie))_r(Ie,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var Hr=Ie.tagName,vi=e.skipTrivia(ae,Hr.pos);Qe(vi,Hr.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(ae,Ie.tagName))}return;case 30:case 7:return;case 11:case 12:return ed();case 18:return yp(!1);case 29:return Wl(!1,void 0,Ie);default:return e.Debug.assertNever(kr)}}function vp(Ie){var kr=[],Hr=Dr(),vi=we;for(we|=1<<14;;){var Li=n_(Ie,gr=_.reScanJsxToken());if(!Li||(kr.push(Li),e.isJsxOpeningElement(Ie)&&(Li==null?void 0:Li.kind)===277&&!D(Li.openingElement.tagName,Li.closingElement.tagName)&&D(Ie.tagName,Li.closingElement.tagName)))break}return we=vi,wi(kr,Hr)}function o_(){var Ie=Dr();return Qr(ce.createJsxAttributes(Ht(13,B_)),Ie)}function R_(Ie){var kr=Dr();if(ri(29),v()===31)return si(),Qr(ce.createJsxOpeningFragment(),kr);var Hr=af(),vi=(Se&131072)===0?ht():void 0,Li=o_(),ot;return v()===31?(si(),ot=ce.createJsxOpeningElement(Hr,vi,Li)):(ri(43),ri(31,void 0,!1)&&(Ie?Je():si()),ot=ce.createJsxSelfClosingElement(Hr,vi,Li)),Qr(ot,kr)}function af(){var Ie=Dr();Ur();for(var kr=v()===108?gt():qr();St(24);)kr=Qr(ce.createPropertyAccessExpression(kr,mc(!0,!1)),Ie);return kr}function yp(Ie){var kr=Dr();if(!!ri(18)){var Hr,vi;return v()!==19&&(Hr=Ci(25),vi=Vs()),Ie?ri(19):ri(19,void 0,!1)&&si(),Qr(ce.createJsxExpression(Hr,vi),kr)}}function B_(){if(v()===18)return kd();Ur();var Ie=Dr();return Qr(ce.createJsxAttribute(qr(),v()!==63?void 0:mi()===10?Pa():yp(!0)),Ie)}function kd(){var Ie=Dr();ri(18),ri(25);var kr=Vs();return ri(19),Qr(ce.createJsxSpreadAttribute(kr),Ie)}function Mf(Ie,kr){var Hr=Dr();ri(30);var vi=af();return ri(31,void 0,!1)&&(kr||!D(Ie.tagName,vi)?Je():si()),Qr(ce.createJsxClosingElement(vi),Hr)}function hp(Ie){var kr=Dr();return ri(30),e.tokenIsIdentifierOrKeyword(v())&&_r(af(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment),ri(31,void 0,!1)&&(Ie?Je():si()),Qr(ce.createJsxJsxClosingFragment(),kr)}function ic(){var Ie=Dr();ri(29);var kr=Ls();ri(31);var Hr=rl();return Qr(ce.createTypeAssertion(kr,Hr),Ie)}function Jc(){return Je(),e.tokenIsIdentifierOrKeyword(v())||v()===22||Cu()}function Lf(){return v()===28&&hi(Jc)}function nf(Ie){if(Ie.flags&32)return!0;if(e.isNonNullExpression(Ie)){for(var kr=Ie.expression;e.isNonNullExpression(kr)&&!(kr.flags&32);)kr=kr.expression;if(kr.flags&32){for(;e.isNonNullExpression(Ie);)Ie.flags|=32,Ie=Ie.expression;return!0}}return!1}function s_(Ie,kr,Hr){var vi=mc(!0,!0),Li=Hr||nf(kr),ot=Li?ce.createPropertyAccessChain(kr,Hr,vi):ce.createPropertyAccessExpression(kr,vi);return Li&&e.isPrivateIdentifier(ot.name)&&_r(ot.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),Qr(ot,Ie)}function Rf(Ie,kr,Hr){var vi;if(v()===23)vi=Ct(79,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var Li=or(Vs);e.isStringOrNumericLiteralLike(Li)&&(Li.text=tt(Li.text)),vi=Li}ri(23);var ot=Hr||nf(kr)?ce.createElementAccessChain(kr,Hr,vi):ce.createElementAccessExpression(kr,vi);return Qr(ot,Ie)}function c_(Ie,kr,Hr){for(;;){var vi=void 0,Li=!1;if(Hr&&Lf()?(vi=Yi(28),Li=e.tokenIsIdentifierOrKeyword(v())):Li=St(24),Li){kr=s_(Ie,kr,vi);continue}if(!vi&&v()===53&&!_.hasPrecedingLineBreak()){Je(),kr=Qr(ce.createNonNullExpression(kr),Ie);continue}if((vi||!di())&&St(22)){kr=Rf(Ie,kr,vi);continue}if(Cu()){kr=Tc(Ie,kr,vi,void 0);continue}return kr}}function Cu(){return v()===14||v()===15}function Tc(Ie,kr,Hr,vi){var Li=ce.createTaggedTemplateExpression(kr,vi,v()===14?(We(),Pa()):Mi(!0));return(Hr||kr.flags&32)&&(Li.flags|=32),Li.questionDotToken=Hr,Qr(Li,Ie)}function pu(Ie,kr){for(;;){kr=c_(Ie,kr,!0);var Hr=Ci(28);if((Se&131072)===0&&(v()===29||v()===47)){var vi=ki(bl);if(vi){if(Cu()){kr=Tc(Ie,kr,Hr,vi);continue}var Li=du(),ot=Hr||nf(kr)?ce.createCallChain(kr,Hr,vi,Li):ce.createCallExpression(kr,vi,Li);kr=Qr(ot,Ie);continue}}else if(v()===20){var Li=du(),ot=Hr||nf(kr)?ce.createCallChain(kr,Hr,void 0,Li):ce.createCallExpression(kr,void 0,Li);kr=Qr(ot,Ie);continue}if(Hr){var zt=Ct(79,!1,e.Diagnostics.Identifier_expected);kr=Qr(ce.createPropertyAccessChain(kr,Hr,zt),Ie)}break}return kr}function du(){ri(20);var Ie=Ta(11,jc);return ri(21),Ie}function bl(){if((Se&131072)===0&&mr()===29){Je();var Ie=Ta(20,Ls);if(!!ri(31))return Ie&&of()?Ie:void 0}}function of(){switch(v()){case 20:case 14:case 15:case 24:case 21:case 23:case 58:case 26:case 57:case 34:case 36:case 35:case 37:case 55:case 56:case 60:case 52:case 50:case 51:case 19:case 1:return!0;case 27:case 18:default:return!1}}function il(){switch(v()){case 8:case 9:case 10:case 14:return Pa();case 108:case 106:case 104:case 110:case 95:return gt();case 20:return Qo();case 22:return Bf();case 18:return Jf();case 131:if(!hi(Uf))break;return jf();case 84:return Ql();case 98:return jf();case 103:return Kt();case 43:case 68:if(Xr()===13)return Pa();break;case 15:return Mi(!1);case 80:return Vo()}return on(e.Diagnostics.Expression_expected)}function Qo(){var Ie=Dr(),kr=Me();ri(20);var Hr=or(Vs);return ri(21),n(Qr(ce.createParenthesizedExpression(Hr),Ie),kr)}function zo(){var Ie=Dr();ri(25);var kr=Ma();return Qr(ce.createSpreadElement(kr),Ie)}function Ro(){return v()===25?zo():v()===27?Qr(ce.createOmittedExpression(),Dr()):Ma()}function jc(){return ci(J,Ro)}function Bf(){var Ie=Dr();ri(22);var kr=_.hasPrecedingLineBreak(),Hr=Ta(15,Ro);return ri(23),Qr(ce.createArrayLiteralExpression(Hr,kr),Ie)}function gu(){var Ie=Dr(),kr=Me();if(Ci(25)){var Hr=Ma();return n(Qr(ce.createSpreadAssignment(Hr),Ie),kr)}var vi=El(),Li=Zc();if(Cn(136))return xl(Ie,kr,vi,Li,171);if(Cn(148))return xl(Ie,kr,vi,Li,172);var ot=Ci(41),zt=zi(),la=zn(),ja=Ci(57),Oa=Ci(53);if(ot||v()===20||v()===29)return l_(Ie,kr,vi,Li,ot,la,ja,Oa);var eo,$o=zt&&v()!==58;if($o){var fo=Ci(63),es=fo?or(Ma):void 0;eo=ce.createShorthandPropertyAssignment(la,es),eo.equalsToken=fo}else{ri(58);var Es=or(Ma);eo=ce.createPropertyAssignment(la,Es)}return eo.decorators=vi,eo.modifiers=Li,eo.questionToken=ja,eo.exclamationToken=Oa,n(Qr(eo,Ie),kr)}function Jf(){var Ie=Dr(),kr=_.getTokenPos();ri(18);var Hr=_.hasPrecedingLineBreak(),vi=Ta(12,gu,!0);if(!ri(19)){var Li=e.lastOrUndefined(Ue);Li&&Li.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(Li,e.createDetachedDiagnostic(m,kr,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return Qr(ce.createObjectLiteralExpression(vi,Hr),Ie)}function jf(){var Ie=di();Jr(!1);var kr=Dr(),Hr=Me(),vi=Zc();ri(98);var Li=Ci(41),ot=Li?1:0,zt=e.some(vi,e.isAsyncModifier)?2:0,la=ot&&zt?ft(sf):ot?ei(sf):zt?Si(sf):sf(),ja=ns(),Oa=Dc(ot|zt),eo=uo(58,!1),$o=mn(ot|zt);Jr(Ie);var fo=ce.createFunctionExpression(vi,Li,la,ja,Oa,eo,$o);return n(Qr(fo,kr),Hr)}function sf(){return Ui()?Xa():void 0}function Kt(){var Ie=Dr();if(ri(103),St(24)){var kr=qr();return Qr(ce.createMetaProperty(103,kr),Ie)}for(var Hr=Dr(),vi=il(),Li;;){vi=c_(Hr,vi,!1),Li=ki(bl),Cu()&&(e.Debug.assert(!!Li,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),vi=Tc(Hr,vi,void 0,Li),Li=void 0);break}var ot;return v()===20?ot=du():Li&&Qe(Ie,_.getStartPos(),e.Diagnostics.A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list),Qr(ce.createNewExpression(vi,Li,ot),Ie)}function ts(Ie,kr){var Hr=Dr(),vi=Me(),Li=_.getTokenPos();if(ri(18,kr)||Ie){var ot=_.hasPrecedingLineBreak(),zt=Ht(1,Wn);if(!ri(19)){var la=e.lastOrUndefined(Ue);la&&la.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(la,e.createDetachedDiagnostic(m,Li,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}var ja=n(Qr(ce.createBlock(zt,ot),Hr),vi);return v()===63&&(Ye(e.Diagnostics.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses),Je()),ja}else{var zt=so();return n(Qr(ce.createBlock(zt,void 0),Hr),vi)}}function mn(Ie,kr){var Hr=sr();Lr(!!(Ie&1));var vi=X();Rr(!!(Ie&2));var Li=ge;ge=!1;var ot=di();ot&&Jr(!1);var zt=ts(!!(Ie&16),kr);return ot&&Jr(!0),ge=Li,Lr(Hr),Rr(vi),zt}function Sl(){var Ie=Dr(),kr=Me();return ri(26),n(Qr(ce.createEmptyStatement(),Ie),kr)}function Ps(){var Ie=Dr(),kr=Me();ri(99),ri(20);var Hr=or(Vs);ri(21);var vi=Wn(),Li=St(91)?Wn():void 0;return n(Qr(ce.createIfStatement(Hr,vi,Li),Ie),kr)}function tl(){var Ie=Dr(),kr=Me();ri(90);var Hr=Wn();ri(115),ri(20);var vi=or(Vs);return ri(21),St(26),n(Qr(ce.createDoStatement(Hr,vi),Ie),kr)}function Ut(){var Ie=Dr(),kr=Me();ri(115),ri(20);var Hr=or(Vs);ri(21);var vi=Wn();return n(Qr(ce.createWhileStatement(Hr,vi),Ie),kr)}function Dp(){var Ie=Dr(),kr=Me();ri(97);var Hr=Ci(132);ri(20);var vi;v()!==26&&(v()===113||v()===119||v()===85?vi=Uc(!0):vi=Kr(Vs));var Li;if(Hr?ri(159):St(159)){var ot=or(Ma);ri(21),Li=ce.createForOfStatement(Hr,vi,ot,Wn())}else if(St(101)){var ot=or(Vs);ri(21),Li=ce.createForInStatement(vi,ot,Wn())}else{ri(26);var zt=v()!==26&&v()!==21?or(Vs):void 0;ri(26);var la=v()!==21?or(Vs):void 0;ri(21),Li=ce.createForStatement(vi,zt,la,Wn())}return n(Qr(Li,Ie),kr)}function cf(Ie){var kr=Dr(),Hr=Me();ri(Ie===245?81:86);var vi=Bt()?void 0:on();Oi();var Li=Ie===245?ce.createBreakStatement(vi):ce.createContinueStatement(vi);return n(Qr(Li,kr),Hr)}function ko(){var Ie=Dr(),kr=Me();ri(105);var Hr=Bt()?void 0:or(Vs);return Oi(),n(Qr(ce.createReturnStatement(Hr),Ie),kr)}function xc(){var Ie=Dr(),kr=Me();ri(116),ri(20);var Hr=or(Vs);ri(21);var vi=be(16777216,Wn);return n(Qr(ce.createWithStatement(Hr,vi),Ie),kr)}function ou(){var Ie=Dr();ri(82);var kr=or(Vs);ri(58);var Hr=Ht(3,Wn);return Qr(ce.createCaseClause(kr,Hr),Ie)}function uf(){var Ie=Dr();ri(88),ri(58);var kr=Ht(3,Wn);return Qr(ce.createDefaultClause(kr),Ie)}function bp(){return v()===82?ou():uf()}function ql(){var Ie=Dr();ri(18);var kr=Ht(2,bp);return ri(19),Qr(ce.createCaseBlock(kr),Ie)}function Fs(){var Ie=Dr(),kr=Me();ri(107),ri(20);var Hr=or(Vs);ri(21);var vi=ql();return n(Qr(ce.createSwitchStatement(Hr,vi),Ie),kr)}function J_(){var Ie=Dr(),kr=Me();ri(109);var Hr=_.hasPrecedingLineBreak()?void 0:or(Vs);return Hr===void 0&&(he++,Hr=Qr(ce.createIdentifier(""),Dr())),Pi()||Rt(Hr),n(Qr(ce.createThrowStatement(Hr),Ie),kr)}function su(){var Ie=Dr(),kr=Me();ri(111);var Hr=ts(!1),vi=v()===83?lf():void 0,Li;return(!vi||v()===96)&&(ri(96,e.Diagnostics.catch_or_finally_expected),Li=ts(!1)),n(Qr(ce.createTryStatement(Hr,vi,Li),Ie),kr)}function lf(){var Ie=Dr();ri(83);var kr;St(20)?(kr=ss(),ri(21)):kr=void 0;var Hr=ts(!1);return Qr(ce.createCatchClause(kr,Hr),Ie)}function ff(){var Ie=Dr(),kr=Me();return ri(87),Oi(),n(Qr(ce.createDebuggerStatement(),Ie),kr)}function _f(){var Ie=Dr(),kr=Me(),Hr,vi=v()===20,Li=or(Vs);return e.isIdentifier(Li)&&St(58)?Hr=ce.createLabeledStatement(Li,Wn()):(Pi()||Rt(Li),Hr=ce.createExpressionStatement(Li),vi&&(kr=!1)),n(Qr(Hr,Ie),kr)}function Vl(){return Je(),e.tokenIsIdentifierOrKeyword(v())&&!_.hasPrecedingLineBreak()}function j_(){return Je(),v()===84&&!_.hasPrecedingLineBreak()}function Uf(){return Je(),v()===98&&!_.hasPrecedingLineBreak()}function Sp(){return Je(),(e.tokenIsIdentifierOrKeyword(v())||v()===8||v()===9||v()===10)&&!_.hasPrecedingLineBreak()}function Tl(){for(;;)switch(v()){case 113:case 119:case 85:case 98:case 84:case 92:return!0;case 118:case 151:return Ju();case 141:case 142:return Tp();case 126:case 131:case 135:case 121:case 122:case 123:case 144:if(Je(),_.hasPrecedingLineBreak())return!1;continue;case 156:return Je(),v()===18||v()===79||v()===93;case 100:return Je(),v()===10||v()===41||v()===18||e.tokenIsIdentifierOrKeyword(v());case 93:var Ie=Je();if(Ie===151&&(Ie=hi(Je)),Ie===63||Ie===41||Ie===18||Ie===88||Ie===127)return!0;continue;case 124:Je();continue;default:return!1}}function Ns(){return hi(Tl)}function al(){switch(v()){case 59:case 26:case 18:case 113:case 119:case 98:case 84:case 92:case 99:case 90:case 115:case 97:case 86:case 81:case 105:case 116:case 107:case 109:case 111:case 87:case 83:case 96:return!0;case 100:return Ns()||hi(Tt);case 85:case 93:return Ns();case 131:case 135:case 118:case 141:case 142:case 151:case 156:return!0;case 123:case 121:case 122:case 124:case 144:return Ns()||!hi(Vl);default:return If()}}function U_(){return Je(),Ui()||v()===18||v()===22}function Kl(){return hi(U_)}function Wn(){switch(v()){case 26:return Sl();case 18:return ts(!1);case 113:return vu(Dr(),Me(),void 0,void 0);case 119:if(Kl())return vu(Dr(),Me(),void 0,void 0);break;case 98:return pf(Dr(),Me(),void 0,void 0);case 84:return f_(Dr(),Me(),void 0,void 0);case 99:return Ps();case 90:return tl();case 115:return Ut();case 97:return Dp();case 86:return cf(244);case 81:return cf(245);case 105:return ko();case 116:return xc();case 107:return Fs();case 109:return J_();case 111:case 83:case 96:return su();case 87:return ff();case 59:return Rs();case 131:case 118:case 151:case 141:case 142:case 135:case 85:case 92:case 93:case 100:case 121:case 122:case 123:case 126:case 124:case 144:case 156:if(Ns())return Rs();break}return _f()}function It(Ie){return Ie.kind===135}function Rs(){var Ie=e.some(hi(function(){return El(),Zc()}),It);if(Ie){var kr=u_();if(kr)return kr}var Hr=Dr(),vi=Me(),Li=El(),ot=Zc();if(Ie){for(var zt=0,la=ot;zt<la.length;zt++){var ja=la[zt];ja.flags|=8388608}return be(8388608,function(){return xs(Hr,vi,Li,ot)})}else return xs(Hr,vi,Li,ot)}function u_(){return be(8388608,function(){var Ie=an(we);if(Ie)return Ke(Ie)})}function xs(Ie,kr,Hr,vi){switch(v()){case 113:case 119:case 85:return vu(Ie,kr,Hr,vi);case 98:return pf(Ie,kr,Hr,vi);case 84:return f_(Ie,kr,Hr,vi);case 118:return ol(Ie,kr,Hr,vi);case 151:return q_(Ie,kr,Hr,vi);case 92:return Pd(Ie,kr,Hr,vi);case 156:case 141:case 142:return Nd(Ie,kr,Hr,vi);case 100:return Vf(Ie,kr,Hr,vi);case 93:switch(Je(),v()){case 88:case 63:return qs(Ie,kr,Hr,vi);case 127:return sc(Ie,kr,Hr,vi);default:return cc(Ie,kr,Hr,vi)}default:if(Hr||vi){var Li=Ct(275,!0,e.Diagnostics.Declaration_expected);return e.setTextRangePos(Li,Ie),Li.decorators=Hr,Li.modifiers=vi,Li}return}}function Tp(){return Je(),!_.hasPrecedingLineBreak()&&(zi()||v()===10)}function mu(Ie,kr){if(v()!==18&&Bt()){Oi();return}return mn(Ie,kr)}function zf(){var Ie=Dr();if(v()===27)return Qr(ce.createOmittedExpression(),Ie);var kr=Ci(25),Hr=bs(),vi=Zu();return Qr(ce.createBindingElement(kr,void 0,Hr,vi),Ie)}function Uu(){var Ie=Dr(),kr=Ci(25),Hr=Ui(),vi=zn(),Li;Hr&&v()!==58?(Li=vi,vi=void 0):(ri(58),Li=bs());var ot=Zu();return Qr(ce.createBindingElement(kr,vi,Li,ot),Ie)}function $c(){var Ie=Dr();ri(18);var kr=Ta(9,Uu);return ri(19),Qr(ce.createObjectBindingPattern(kr),Ie)}function Wf(){var Ie=Dr();ri(22);var kr=Ta(10,zf);return ri(23),Qr(ce.createArrayBindingPattern(kr),Ie)}function Gl(){return v()===18||v()===22||v()===80||Ui()}function bs(Ie){return v()===22?Wf():v()===18?$c():Xa(Ie)}function zu(){return ss(!0)}function ss(Ie){var kr=Dr(),Hr=Me(),vi=bs(e.Diagnostics.Private_identifiers_are_not_allowed_in_variable_declarations),Li;Ie&&vi.kind===79&&v()===53&&!_.hasPrecedingLineBreak()&&(Li=gt());var ot=xu(),zt=M_(v())?void 0:Zu(),la=ce.createVariableDeclaration(vi,Li,ot,zt);return n(Qr(la,kr),Hr)}function Uc(Ie){var kr=Dr(),Hr=0;switch(v()){case 113:break;case 119:Hr|=1;break;case 85:Hr|=2;break;default:e.Debug.fail()}Je();var vi;if(v()===159&&hi(Ad))vi=so();else{var Li=Ji();Cr(Ie),vi=Ta(8,Ie?ss:zu),Cr(Li)}return Qr(ce.createVariableDeclarationList(vi,Hr),kr)}function Ad(){return wo()&&Je()===21}function vu(Ie,kr,Hr,vi){var Li=Uc(!1);Oi();var ot=ce.createVariableStatement(vi,Li);return ot.decorators=Hr,n(Qr(ot,Ie),kr)}function pf(Ie,kr,Hr,vi){var Li=X(),ot=e.modifiersToFlags(vi);ri(98);var zt=Ci(41),la=ot&512?sf():Xa(),ja=zt?1:0,Oa=ot&256?2:0,eo=ns();ot&1&&Rr(!0);var $o=Dc(ja|Oa),fo=uo(58,!1),es=mu(ja|Oa,e.Diagnostics.or_expected);Rr(Li);var Es=ce.createFunctionDeclaration(Hr,vi,zt,la,eo,$o,fo,es);return n(Qr(Es,Ie),kr)}function df(){if(v()===134)return ri(134);if(v()===10&&hi(Je)===20)return ki(function(){var Ie=Pa();return Ie.text==="constructor"?Ie:void 0})}function xp(Ie,kr,Hr,vi){return ki(function(){if(df()){var Li=ns(),ot=Dc(0),zt=uo(58,!1),la=mu(0,e.Diagnostics.or_expected),ja=ce.createConstructorDeclaration(Hr,vi,ot,la);return ja.typeParameters=Li,ja.type=zt,n(Qr(ja,Ie),kr)}})}function l_(Ie,kr,Hr,vi,Li,ot,zt,la,ja){var Oa=Li?1:0,eo=e.some(vi,e.isAsyncModifier)?2:0,$o=ns(),fo=Dc(Oa|eo),es=uo(58,!1),Es=mu(Oa|eo,ja),vc=ce.createMethodDeclaration(Hr,vi,Li,ot,zt,$o,fo,es,Es);return vc.exclamationToken=la,n(Qr(vc,Ie),kr)}function Ic(Ie,kr,Hr,vi,Li,ot){var zt=!ot&&!_.hasPrecedingLineBreak()?Ci(53):void 0,la=xu(),ja=ci(45056,Zu);ua(Li,la,ja);var Oa=ce.createPropertyDeclaration(Hr,vi,Li,ot||zt,la,ja);return n(Qr(Oa,Ie),kr)}function _s(Ie,kr,Hr,vi){var Li=Ci(41),ot=zn(),zt=Ci(57);return Li||v()===20||v()===29?l_(Ie,kr,Hr,vi,Li,ot,zt,void 0,e.Diagnostics.or_expected):Ic(Ie,kr,Hr,vi,ot,zt)}function xl(Ie,kr,Hr,vi,Li){var ot=zn(),zt=ns(),la=Dc(0),ja=uo(58,!1),Oa=mu(0),eo=Li===171?ce.createGetAccessorDeclaration(Hr,vi,ot,la,ja,Oa):ce.createSetAccessorDeclaration(Hr,vi,ot,la,Oa);return eo.typeParameters=zt,ja&&eo.kind===172&&(eo.type=ja),n(Qr(eo,Ie),kr)}function gf(){var Ie;if(v()===59)return!0;for(;e.isModifierKind(v());){if(Ie=v(),e.isClassMemberModifier(Ie))return!0;Je()}if(v()===41||(bn()&&(Ie=v(),Je()),v()===22))return!0;if(Ie!==void 0){if(!e.isKeyword(Ie)||Ie===148||Ie===136)return!0;switch(v()){case 20:case 29:case 53:case 58:case 63:case 57:return!0;default:return Bt()}}return!1}function Hl(Ie,kr,Hr,vi){Yi(124);var Li=Xl();return n(Qr(ce.createClassStaticBlockDeclaration(Hr,vi,Li),Ie),kr)}function Xl(){var Ie=sr(),kr=X();Lr(!1),Rr(!0);var Hr=ts(!1);return Lr(Ie),Rr(kr),Hr}function Ep(){if(X()&&v()===132){var Ie=Dr(),kr=on(e.Diagnostics.Expression_expected);Je();var Hr=c_(Ie,kr,!0);return pu(Ie,Hr)}return Eu()}function z_(){var Ie=Dr();if(!!St(59)){var kr=li(Ep);return Qr(ce.createDecorator(kr),Ie)}}function El(){for(var Ie=Dr(),kr,Hr;Hr=z_();)kr=e.append(kr,Hr);return kr&&wi(kr,Ie)}function Cp(Ie,kr,Hr){var vi=Dr(),Li=v();if(v()===85&&Ie){if(!ki(go))return}else{if(kr&&v()===124&&hi(d_))return;if(Hr&&v()===124)return;if(!rn())return}return Qr(ce.createToken(Li),vi)}function Zc(Ie,kr){for(var Hr=Dr(),vi,Li,ot=!1;Li=Cp(Ie,kr,ot);)Li.kind===124&&(ot=!0),vi=e.append(vi,Li);return vi&&wi(vi,Hr)}function kp(){var Ie;if(v()===131){var kr=Dr();Je();var Hr=Qr(ce.createToken(131),kr);Ie=wi([Hr],kr)}return Ie}function mf(){var Ie=Dr();if(v()===26)return Je(),Qr(ce.createSemicolonClassElement(),Ie);var kr=Me(),Hr=El(),vi=Zc(!0,!0);if(v()===124&&hi(d_))return Hl(Ie,kr,Hr,vi);if(Cn(136))return xl(Ie,kr,Hr,vi,171);if(Cn(148))return xl(Ie,kr,Hr,vi,172);if(v()===134||v()===10){var Li=xp(Ie,kr,Hr,vi);if(Li)return Li}if(qa())return $u(Ie,kr,Hr,vi);if(e.tokenIsIdentifierOrKeyword(v())||v()===10||v()===8||v()===41||v()===22){var ot=e.some(vi,It);if(ot){for(var zt=0,la=vi;zt<la.length;zt++){var ja=la[zt];ja.flags|=8388608}return be(8388608,function(){return _s(Ie,kr,Hr,vi)})}else return _s(Ie,kr,Hr,vi)}if(Hr||vi){var Oa=Ct(79,!0,e.Diagnostics.Declaration_expected);return Ic(Ie,kr,Hr,vi,Oa,void 0)}return e.Debug.fail("Should not have attempted to parse class member declaration.")}function Ql(){return qf(Dr(),Me(),void 0,void 0,225)}function f_(Ie,kr,Hr,vi){return qf(Ie,kr,Hr,vi,256)}function qf(Ie,kr,Hr,vi,Li){var ot=X();ri(84);var zt=Cl(),la=ns();e.some(vi,e.isExportModifier)&&Rr(!0);var ja=nl(),Oa;ri(18)?(Oa=Yl(),ri(19)):Oa=so(),Rr(ot);var eo=Li===256?ce.createClassDeclaration(Hr,vi,zt,la,ja,Oa):ce.createClassExpression(Hr,vi,zt,la,ja,Oa);return n(Qr(eo,Ie),kr)}function Cl(){return Ui()&&!W_()?ta(Ui()):void 0}function W_(){return v()===117&&hi(xo)}function nl(){if(__())return Ht(22,Ga)}function Ga(){var Ie=Dr(),kr=v();e.Debug.assert(kr===94||kr===117),Je();var Hr=Ta(7,kl);return Qr(ce.createHeritageClause(kr,Hr),Ie)}function kl(){var Ie=Dr(),kr=Eu(),Hr=ht();return Qr(ce.createExpressionWithTypeArguments(kr,Hr),Ie)}function ht(){return v()===29?Ho(20,Ls,29,31):void 0}function __(){return v()===94||v()===117}function Yl(){return Ht(5,mf)}function ol(Ie,kr,Hr,vi){ri(118);var Li=on(),ot=ns(),zt=nl(),la=jt(),ja=ce.createInterfaceDeclaration(Hr,vi,Li,ot,zt,la);return n(Qr(ja,Ie),kr)}function q_(Ie,kr,Hr,vi){ri(151);var Li=on(),ot=ns();ri(63);var zt=v()===138&&ki(Sr)||Ls();Oi();var la=ce.createTypeAliasDeclaration(Hr,vi,Li,ot,zt);return n(Qr(la,Ie),kr)}function rd(){var Ie=Dr(),kr=Me(),Hr=zn(),vi=or(Zu);return n(Qr(ce.createEnumMember(Hr,vi),Ie),kr)}function Pd(Ie,kr,Hr,vi){ri(92);var Li=on(),ot;ri(18)?(ot=bt(function(){return Ta(6,rd)}),ri(19)):ot=so();var zt=ce.createEnumDeclaration(Hr,vi,Li,ot);return n(Qr(zt,Ie),kr)}function Al(){var Ie=Dr(),kr;return ri(18)?(kr=Ht(1,Wn),ri(19)):kr=so(),Qr(ce.createModuleBlock(kr),Ie)}function id(Ie,kr,Hr,vi,Li){var ot=Li&16,zt=on(),la=St(24)?id(Dr(),!1,void 0,void 0,4|ot):Al(),ja=ce.createModuleDeclaration(Hr,vi,zt,la,Li);return n(Qr(ja,Ie),kr)}function p_(Ie,kr,Hr,vi){var Li=0,ot;v()===156?(ot=on(),Li|=1024):(ot=Pa(),ot.text=tt(ot.text));var zt;v()===18?zt=Al():Oi();var la=ce.createModuleDeclaration(Hr,vi,ot,zt,Li);return n(Qr(la,Ie),kr)}function Nd(Ie,kr,Hr,vi){var Li=0;if(v()===156)return p_(Ie,kr,Hr,vi);if(St(142))Li|=16;else if(ri(141),v()===10)return p_(Ie,kr,Hr,vi);return id(Ie,kr,Hr,vi,Li)}function V_(){return v()===145&&hi(yu)}function yu(){return Je()===20}function d_(){return Je()===18}function sl(){return Je()===43}function sc(Ie,kr,Hr,vi){ri(127),ri(142);var Li=on();Oi();var ot=ce.createNamespaceExportDeclaration(Li);return ot.decorators=Hr,ot.modifiers=vi,n(Qr(ot,Ie),kr)}function Vf(Ie,kr,Hr,vi){ri(100);var Li=_.getStartPos(),ot;zi()&&(ot=on());var zt=!1;if(v()!==155&&(ot==null?void 0:ot.escapedText)==="type"&&(zi()||td())&&(zt=!0,ot=zi()?on():void 0),ot&&!eu())return b(Ie,kr,Hr,vi,ot,zt);var la;(ot||v()===41||v()===18)&&(la=rr(ot,Li,zt),ri(155));var ja=At(),Oa;v()===129&&!_.hasPrecedingLineBreak()&&(Oa=vf()),Oi();var eo=ce.createImportDeclaration(Hr,vi,la,ja,Oa);return n(Qr(eo,Ie),kr)}function ku(){var Ie=Dr(),kr=e.tokenIsIdentifierOrKeyword(v())?qr():De(10);ri(58);var Hr=Ma();return Qr(ce.createAssertEntry(kr,Hr),Ie)}function vf(){var Ie=Dr();ri(129);var kr=_.getTokenPos();if(ri(18)){var Hr=_.hasPrecedingLineBreak(),vi=Ta(24,ku,!0);if(!ri(19)){var Li=e.lastOrUndefined(Ue);Li&&Li.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(Li,e.createDetachedDiagnostic(m,kr,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return Qr(ce.createAssertClause(vi,Hr),Ie)}else{var vi=wi([],Dr(),void 0,!1);return Qr(ce.createAssertClause(vi,!1),Ie)}}function td(){return v()===41||v()===18}function eu(){return v()===27||v()===155}function b(Ie,kr,Hr,vi,Li,ot){ri(63);var zt=ai();Oi();var la=ce.createImportEqualsDeclaration(Hr,vi,ot,Li,zt),ja=n(Qr(la,Ie),kr);return ja}function rr(Ie,kr,Hr){var vi;return(!Ie||St(27))&&(vi=v()===41?ra():La(268)),Qr(ce.createImportClause(Hr,Ie,vi),kr)}function ai(){return V_()?Wi():Ds(!1)}function Wi(){var Ie=Dr();ri(145),ri(20);var kr=At();return ri(21),Qr(ce.createExternalModuleReference(kr),Ie)}function At(){if(v()===10){var Ie=Pa();return Ie.text=tt(Ie.text),Ie}else return Vs()}function ra(){var Ie=Dr();ri(41),ri(127);var kr=on();return Qr(ce.createNamespaceImport(kr),Ie)}function La(Ie){var kr=Dr(),Hr=Ie===268?ce.createNamedImports(Ho(23,Bo,18,19)):ce.createNamedExports(Ho(23,fn,18,19));return Qr(Hr,kr)}function fn(){var Ie=Me();return n(Yo(274),Ie)}function Bo(){return Yo(269)}function Yo(Ie){var kr=Dr(),Hr=e.isKeyword(v())&&!zi(),vi=_.getTokenPos(),Li=_.getTextPos(),ot=!1,zt,la=!0,ja=qr();if(ja.escapedText==="type")if(v()===127){var Oa=qr();if(v()===127){var eo=qr();e.tokenIsIdentifierOrKeyword(v())?(ot=!0,zt=Oa,ja=fo(),la=!1):(zt=ja,ja=eo,la=!1)}else e.tokenIsIdentifierOrKeyword(v())?(zt=ja,la=!1,ja=fo()):(ot=!0,ja=Oa)}else e.tokenIsIdentifierOrKeyword(v())&&(ot=!0,ja=fo());la&&v()===127&&(zt=ja,ri(127),ja=fo()),Ie===269&&Hr&&Qe(vi,Li,e.Diagnostics.Identifier_expected);var $o=Ie===269?ce.createImportSpecifier(ot,zt,ja):ce.createExportSpecifier(ot,zt,ja);return Qr($o,kr);function fo(){return Hr=e.isKeyword(v())&&!zi(),vi=_.getTokenPos(),Li=_.getTextPos(),qr()}}function jo(Ie){return Qr(ce.createNamespaceExport(qr()),Ie)}function cc(Ie,kr,Hr,vi){var Li=X();Rr(!0);var ot,zt,la,ja=St(151),Oa=Dr();St(41)?(St(127)&&(ot=jo(Oa)),ri(155),zt=At()):(ot=La(272),(v()===155||v()===10&&!_.hasPrecedingLineBreak())&&(ri(155),zt=At())),zt&&v()===129&&!_.hasPrecedingLineBreak()&&(la=vf()),Oi(),Rr(Li);var eo=ce.createExportDeclaration(Hr,vi,ja,ot,zt,la);return n(Qr(eo,Ie),kr)}function qs(Ie,kr,Hr,vi){var Li=X();Rr(!0);var ot;St(63)?ot=!0:ri(88);var zt=Ma();Oi(),Rr(Li);var la=ce.createExportAssignment(Hr,vi,ot,zt);return n(Qr(la,Ie),kr)}function uc(Ie){Ie.externalModuleIndicator=e.forEach(Ie.statements,hu)||$l(Ie)}function hu(Ie){return Au(Ie,93)||e.isImportEqualsDeclaration(Ie)&&e.isExternalModuleReference(Ie.moduleReference)||e.isImportDeclaration(Ie)||e.isExportAssignment(Ie)||e.isExportDeclaration(Ie)?Ie:void 0}function $l(Ie){return Ie.flags&2097152?Qs(Ie):void 0}function Qs(Ie){return Id(Ie)?Ie:H(Ie,Qs)}function Au(Ie,kr){return e.some(Ie.modifiers,function(Hr){return Hr.kind===kr})}function Id(Ie){return e.isMetaProperty(Ie)&&Ie.keywordToken===100&&Ie.name.escapedText==="meta"}var K_;(function(Ie){Ie[Ie.SourceElements=0]="SourceElements",Ie[Ie.BlockStatements=1]="BlockStatements",Ie[Ie.SwitchClauses=2]="SwitchClauses",Ie[Ie.SwitchClauseStatements=3]="SwitchClauseStatements",Ie[Ie.TypeMembers=4]="TypeMembers",Ie[Ie.ClassMembers=5]="ClassMembers",Ie[Ie.EnumMembers=6]="EnumMembers",Ie[Ie.HeritageClauseElement=7]="HeritageClauseElement",Ie[Ie.VariableDeclarations=8]="VariableDeclarations",Ie[Ie.ObjectBindingElements=9]="ObjectBindingElements",Ie[Ie.ArrayBindingElements=10]="ArrayBindingElements",Ie[Ie.ArgumentExpressions=11]="ArgumentExpressions",Ie[Ie.ObjectLiteralMembers=12]="ObjectLiteralMembers",Ie[Ie.JsxAttributes=13]="JsxAttributes",Ie[Ie.JsxChildren=14]="JsxChildren",Ie[Ie.ArrayLiteralMembers=15]="ArrayLiteralMembers",Ie[Ie.Parameters=16]="Parameters",Ie[Ie.JSDocParameters=17]="JSDocParameters",Ie[Ie.RestProperties=18]="RestProperties",Ie[Ie.TypeParameters=19]="TypeParameters",Ie[Ie.TypeArguments=20]="TypeArguments",Ie[Ie.TupleElementTypes=21]="TupleElementTypes",Ie[Ie.HeritageClauses=22]="HeritageClauses",Ie[Ie.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",Ie[Ie.AssertEntries=24]="AssertEntries",Ie[Ie.Count=25]="Count"})(K_||(K_={}));var Ec;(function(Ie){Ie[Ie.False=0]="False",Ie[Ie.True=1]="True",Ie[Ie.Unknown=2]="Unknown"})(Ec||(Ec={}));var Zl;(function(Ie){function kr(Oa,eo,$o){dr("file.js",Oa,99,void 0,1),_.setText(Oa,eo,$o),gr=_.scan();var fo=Hr(),es=Le("file.js",99,1,!1,[],ce.createToken(1),0),Es=e.attachFileToDiagnostics(Ue,es);return He&&(es.jsDocDiagnostics=e.attachFileToDiagnostics(He,es)),Br(),fo?{jsDocTypeExpression:fo,diagnostics:Es}:void 0}Ie.parseJSDocTypeExpressionForTests=kr;function Hr(Oa){var eo=Dr(),$o=(Oa?St:ri)(18),fo=be(4194304,is);(!Oa||$o)&&Vt(19);var es=ce.createJSDocTypeExpression(fo);return Ce(es),Qr(es,eo)}Ie.parseJSDocTypeExpression=Hr;function vi(){for(var Oa=Dr(),eo=St(18),$o=Dr(),fo=Ds(!1);v()===80;)Nr(),Oe(),fo=Qr(ce.createJSDocMemberName(fo,on()),$o);eo&&Vt(19);var es=ce.createJSDocNameReference(fo);return Ce(es),Qr(es,Oa)}Ie.parseJSDocNameReference=vi;function Li(Oa,eo,$o){dr("",Oa,99,void 0,1);var fo=be(4194304,function(){return ja(eo,$o)}),es={languageVariant:0,text:Oa},Es=e.attachFileToDiagnostics(Ue,es);return Br(),fo?{jsDoc:fo,diagnostics:Es}:void 0}Ie.parseIsolatedJSDocComment=Li;function ot(Oa,eo,$o){var fo=gr,es=Ue.length,Es=Fe,vc=be(4194304,function(){return ja(eo,$o)});return e.setParent(vc,Oa),Se&131072&&(He||(He=[]),He.push.apply(He,Ue)),gr=fo,Ue.length=es,Fe=Es,vc}Ie.parseJSDocComment=ot;var zt;(function(Oa){Oa[Oa.BeginningOfLine=0]="BeginningOfLine",Oa[Oa.SawAsterisk=1]="SawAsterisk",Oa[Oa.SavingComments=2]="SavingComments",Oa[Oa.SavingBackticks=3]="SavingBackticks"})(zt||(zt={}));var la;(function(Oa){Oa[Oa.Property=1]="Property",Oa[Oa.Parameter=2]="Parameter",Oa[Oa.CallbackParameter=4]="CallbackParameter"})(la||(la={}));function ja(Oa,eo){Oa===void 0&&(Oa=0);var $o=ae,fo=eo===void 0?$o.length:Oa+eo;if(eo=fo-Oa,e.Debug.assert(Oa>=0),e.Debug.assert(Oa<=fo),e.Debug.assert(fo<=$o.length),!S($o,Oa))return;var es,Es,vc,lc,cl,Is=[],yf=[];return _.scanRange(Oa+3,eo-5,function(){var _t=1,xa,ma=Oa-($o.lastIndexOf(`
`,Oa)+1)+4;function Va(cu){xa||(xa=ma),Is.push(cu),ma+=cu.length}for(Oe();y_(5););y_(4)&&(_t=0,ma=0);e:for(;;){switch(v()){case 59:_t===0||_t===1?(wc(Is),cl||(cl=Dr()),dt(Wu(ma)),_t=0,xa=void 0):Va(_.getTokenText());break;case 4:Is.push(_.getTokenText()),_t=0,ma=0;break;case 41:var dn=_.getTokenText();_t===1||_t===2?(_t=2,Va(dn)):(_t=1,ma+=dn.length);break;case 5:var Pn=_.getTokenText();_t===2?Is.push(Pn):xa!==void 0&&ma+Pn.length>xa&&Is.push(Pn.slice(xa-ma)),ma+=Pn.length;break;case 1:break e;case 18:_t=2;var cs=_.getStartPos(),yc=_.getTextPos()-1,Sc=tr(yc);if(Sc){lc||g_(Is),yf.push(Qr(ce.createJSDocText(Is.join("")),lc!=null?lc:Oa,cs)),yf.push(Sc),Is=[],lc=_.getTextPos();break}default:_t=2,Va(_.getTokenText());break}Oe()}wc(Is),yf.length&&Is.length&&yf.push(Qr(ce.createJSDocText(Is.join("")),lc!=null?lc:Oa,cl)),yf.length&&es&&e.Debug.assertIsDefined(cl,"having parsed tags implies that the end of the comment span should be set");var Oc=es&&wi(es,Es,vc);return Qr(ce.createJSDocComment(yf.length?wi(yf,Oa,cl):Is.length?Is.join(""):void 0,Oc),Oa,fo)});function g_(_t){for(;_t.length&&(_t[0]===`
`||_t[0]==="\r");)_t.shift()}function wc(_t){for(;_t.length&&_t[_t.length-1].trim()==="";)_t.pop()}function bc(){for(;;){if(Oe(),v()===1)return!0;if(!(v()===5||v()===4))return!1}}function ru(){if(!((v()===5||v()===4)&&hi(bc)))for(;v()===5||v()===4;)Oe()}function m_(){if((v()===5||v()===4)&&hi(bc))return"";for(var _t=_.hasPrecedingLineBreak(),xa=!1,ma="";_t&&v()===41||v()===5||v()===4;)ma+=_.getTokenText(),v()===4?(_t=!0,xa=!0,ma=""):v()===41&&(_t=!1),Oe();return xa?ma:""}function Wu(_t){e.Debug.assert(v()===59);var xa=_.getTokenPos();Oe();var ma=Kf(void 0),Va=m_(),dn;switch(ma.escapedText){case"author":dn=Dv(xa,ma,_t,Va);break;case"implements":dn=wd(xa,ma,_t,Va);break;case"augments":case"extends":dn=Jt(xa,ma,_t,Va);break;case"class":case"constructor":dn=bf(xa,ce.createJSDocClassTag,ma,_t,Va);break;case"public":dn=bf(xa,ce.createJSDocPublicTag,ma,_t,Va);break;case"private":dn=bf(xa,ce.createJSDocPrivateTag,ma,_t,Va);break;case"protected":dn=bf(xa,ce.createJSDocProtectedTag,ma,_t,Va);break;case"readonly":dn=bf(xa,ce.createJSDocReadonlyTag,ma,_t,Va);break;case"override":dn=bf(xa,ce.createJSDocOverrideTag,ma,_t,Va);break;case"deprecated":Er=!0,dn=bf(xa,ce.createJSDocDeprecatedTag,ma,_t,Va);break;case"this":dn=nd(xa,ma,_t,Va);break;case"enum":dn=Gd(xa,ma,_t,Va);break;case"arg":case"argument":case"param":return ad(xa,ma,2,_t);case"return":case"returns":dn=Ag(xa,ma,_t,Va);break;case"template":dn=bv(xa,ma,_t,Va);break;case"type":dn=v_(xa,ma,_t,Va);break;case"typedef":dn=Od(xa,ma,_t,Va);break;case"callback":dn=Em(xa,ma,_t,Va);break;case"see":dn=hv(xa,ma,_t,Va);break;default:dn=Zi(xa,ma,_t,Va);break}return dn}function d(_t,xa,ma,Va){return Va||(ma+=xa-_t),K(ma,Va.slice(ma))}function K(_t,xa){var ma=Dr(),Va=[],dn=[],Pn,cs=0,yc=!0,Sc;function Oc(Io){Sc||(Sc=_t),Va.push(Io),_t+=Io.length}xa!==void 0&&(xa!==""&&Oc(xa),cs=1);var cu=v();e:for(;;){switch(cu){case 4:cs=0,Va.push(_.getTokenText()),_t=0;break;case 59:if(cs===3||cs===2&&(!yc||hi(Ae))){Va.push(_.getTokenText());break}_.setTextPos(_.getTextPos()-1);case 1:break e;case 5:if(cs===2||cs===3)Oc(_.getTokenText());else{var Pl=_.getTokenText();Sc!==void 0&&_t+Pl.length>Sc&&Va.push(Pl.slice(Sc-_t)),_t+=Pl.length}break;case 18:cs=2;var G_=_.getStartPos(),Tf=_.getTextPos()-1,Xd=tr(Tf);Xd?(dn.push(Qr(ce.createJSDocText(Va.join("")),Pn!=null?Pn:ma,G_)),dn.push(Xd),Va=[],Pn=_.getTextPos()):Oc(_.getTokenText());break;case 61:cs===3?cs=2:cs=3,Oc(_.getTokenText());break;case 41:if(cs===0){cs=1,_t+=1;break}default:cs!==3&&(cs=2),Oc(_.getTokenText());break}yc=v()===5,cu=Oe()}if(g_(Va),wc(Va),dn.length)return Va.length&&dn.push(Qr(ce.createJSDocText(Va.join("")),Pn!=null?Pn:ma)),wi(dn,ma,_.getTextPos());if(Va.length)return Va.join("")}function Ae(){var _t=Oe();return _t===5||_t===4}function tr(_t){var xa=ki($r);if(!!xa){Oe(),ru();var ma=Dr(),Va=e.tokenIsIdentifierOrKeyword(v())?Ds(!0):void 0;if(Va)for(;v()===80;)Nr(),Oe(),Va=Qr(ce.createJSDocMemberName(Va,on()),ma);for(var dn=[];v()!==19&&v()!==4&&v()!==1;)dn.push(_.getTokenText()),Oe();var Pn=xa==="link"?ce.createJSDocLink:xa==="linkcode"?ce.createJSDocLinkCode:ce.createJSDocLinkPlain;return Qr(Pn(Va,dn.join("")),_t,_.getTextPos())}}function $r(){if(m_(),v()===18&&Oe()===59&&e.tokenIsIdentifierOrKeyword(Oe())){var _t=_.getTokenValue();if(_t==="link"||_t==="linkcode"||_t==="linkplain")return _t}}function Zi(_t,xa,ma,Va){return Qr(ce.createJSDocUnknownTag(xa,d(_t,Dr(),ma,Va)),_t)}function dt(_t){!_t||(es?es.push(_t):(es=[_t],Es=_t.pos),vc=_t.end)}function _n(){return m_(),v()===18?Hr():void 0}function Zo(){var _t=y_(22);_t&&ru();var xa=y_(61),ma=zc();return xa&&yt(61),_t&&(ru(),Ci(63)&&Vs(),ri(23)),{name:ma,isBracketed:_t}}function Bs(_t){switch(_t.kind){case 147:return!0;case 182:return Bs(_t.elementType);default:return e.isTypeReferenceNode(_t)&&e.isIdentifier(_t.typeName)&&_t.typeName.escapedText==="Object"&&!_t.typeArguments}}function ad(_t,xa,ma,Va){var dn=_n(),Pn=!dn;m_();var cs=Zo(),yc=cs.name,Sc=cs.isBracketed,Oc=m_();Pn&&!hi($r)&&(dn=_n());var cu=d(_t,Dr(),Va,Oc),Pl=ma!==4&&hf(dn,yc,ma,Va);Pl&&(dn=Pl,Pn=!0);var G_=ma===1?ce.createJSDocPropertyTag(xa,yc,Sc,dn,Pn,cu):ce.createJSDocParameterTag(xa,yc,Sc,dn,Pn,cu);return Qr(G_,_t)}function hf(_t,xa,ma,Va){if(_t&&Bs(_t.type)){for(var dn=Dr(),Pn=void 0,cs=void 0;Pn=ki(function(){return sd(ma,Va,xa)});)(Pn.kind===338||Pn.kind===345)&&(cs=e.append(cs,Pn));if(cs){var yc=Qr(ce.createJSDocTypeLiteral(cs,_t.type.kind===182),dn);return Qr(ce.createJSDocTypeExpression(yc),dn)}}}function Ag(_t,xa,ma,Va){e.some(es,e.isJSDocReturnTag)&&Qe(xa.pos,_.getTokenPos(),e.Diagnostics._0_tag_already_specified,xa.escapedText);var dn=_n();return Qr(ce.createJSDocReturnTag(xa,dn,d(_t,Dr(),ma,Va)),_t)}function v_(_t,xa,ma,Va){e.some(es,e.isJSDocTypeTag)&&Qe(xa.pos,_.getTokenPos(),e.Diagnostics._0_tag_already_specified,xa.escapedText);var dn=Hr(!0),Pn=ma!==void 0&&Va!==void 0?d(_t,Dr(),ma,Va):void 0;return Qr(ce.createJSDocTypeTag(xa,dn,Pn),_t)}function hv(_t,xa,ma,Va){var dn=v()===22||hi(function(){return Oe()===59&&e.tokenIsIdentifierOrKeyword(Oe())&&_.getTokenValue()==="link"}),Pn=dn?void 0:vi(),cs=ma!==void 0&&Va!==void 0?d(_t,Dr(),ma,Va):void 0;return Qr(ce.createJSDocSeeTag(xa,Pn,cs),_t)}function Dv(_t,xa,ma,Va){var dn=Dr(),Pn=Ap(),cs=_.getStartPos(),yc=d(_t,cs,ma,Va);yc||(cs=_.getStartPos());var Sc=typeof yc!="string"?wi(e.concatenate([Qr(Pn,dn,cs)],yc),dn):Pn.text+yc;return Qr(ce.createJSDocAuthorTag(xa,Sc),_t)}function Ap(){for(var _t=[],xa=!1,ma=_.getToken();ma!==1&&ma!==4;){if(ma===29)xa=!0;else{if(ma===59&&!xa)break;if(ma===31&&xa){_t.push(_.getTokenText()),_.setTextPos(_.getTokenPos()+1);break}}_t.push(_.getTokenText()),ma=Oe()}return ce.createJSDocText(_t.join(""))}function wd(_t,xa,ma,Va){var dn=Df();return Qr(ce.createJSDocImplementsTag(xa,dn,d(_t,Dr(),ma,Va)),_t)}function Jt(_t,xa,ma,Va){var dn=Df();return Qr(ce.createJSDocAugmentsTag(xa,dn,d(_t,Dr(),ma,Va)),_t)}function Df(){var _t=St(18),xa=Dr(),ma=qu(),Va=ht(),dn=ce.createExpressionWithTypeArguments(ma,Va),Pn=Qr(dn,xa);return _t&&ri(19),Pn}function qu(){for(var _t=Dr(),xa=Kf();St(24);){var ma=Kf();xa=Qr(ce.createPropertyAccessExpression(xa,ma),_t)}return xa}function bf(_t,xa,ma,Va,dn){return Qr(xa(ma,d(_t,Dr(),Va,dn)),_t)}function nd(_t,xa,ma,Va){var dn=Hr(!0);return ru(),Qr(ce.createJSDocThisTag(xa,dn,d(_t,Dr(),ma,Va)),_t)}function Gd(_t,xa,ma,Va){var dn=Hr(!0);return ru(),Qr(ce.createJSDocEnumTag(xa,dn,d(_t,Dr(),ma,Va)),_t)}function Od(_t,xa,ma,Va){var dn,Pn=_n();m_();var cs=od();ru();var yc=K(ma),Sc;if(!Pn||Bs(Pn.type)){for(var Oc=void 0,cu=void 0,Pl=void 0,G_=!1;Oc=ki(function(){return Hd(ma)});)if(G_=!0,Oc.kind===341)if(cu){Ye(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);var Tf=e.lastOrUndefined(Ue);Tf&&e.addRelatedInfo(Tf,e.createDetachedDiagnostic(m,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}else cu=Oc;else Pl=e.append(Pl,Oc);if(G_){var Xd=Pn&&Pn.type.kind===182,Io=ce.createJSDocTypeLiteral(Pl,Xd);Pn=cu&&cu.typeExpression&&!Bs(cu.typeExpression.type)?cu.typeExpression:Qr(Io,_t),Sc=Pn.end}}Sc=Sc||yc!==void 0?Dr():((dn=cs!=null?cs:Pn)!==null&&dn!==void 0?dn:xa).end,yc||(yc=d(_t,Sc,ma,Va));var Qd=ce.createJSDocTypedefTag(xa,Pn,cs,yc);return Qr(Qd,_t,Sc)}function od(_t){var xa=_.getTokenPos();if(!!e.tokenIsIdentifierOrKeyword(v())){var ma=Kf();if(St(24)){var Va=od(!0),dn=ce.createModuleDeclaration(void 0,void 0,ma,Va,_t?4:void 0);return Qr(dn,xa)}return _t&&(ma.isInJSDocNamespace=!0),ma}}function Sf(_t){for(var xa=Dr(),ma,Va;ma=ki(function(){return sd(4,_t)});)Va=e.append(Va,ma);return wi(Va||[],xa)}function Em(_t,xa,ma,Va){var dn=od();ru();var Pn=K(ma),cs=Sf(ma),yc=ki(function(){if(y_(59)){var Oc=Wu(ma);if(Oc&&Oc.kind===339)return Oc}}),Sc=Qr(ce.createJSDocSignature(void 0,cs,yc),_t);return Pn||(Pn=d(_t,Dr(),ma,Va)),Qr(ce.createJSDocCallbackTag(xa,Sc,dn,Pn),_t)}function Pg(_t,xa){for(;!e.isIdentifier(_t)||!e.isIdentifier(xa);)if(!e.isIdentifier(_t)&&!e.isIdentifier(xa)&&_t.right.escapedText===xa.right.escapedText)_t=_t.left,xa=xa.left;else return!1;return _t.escapedText===xa.escapedText}function Hd(_t){return sd(1,_t)}function sd(_t,xa,ma){for(var Va=!0,dn=!1;;)switch(Oe()){case 59:if(Va){var Pn=Ng(_t,xa);return Pn&&(Pn.kind===338||Pn.kind===345)&&_t!==4&&ma&&(e.isIdentifier(Pn.name)||!Pg(ma,Pn.name.left))?!1:Pn}dn=!1;break;case 4:Va=!0,dn=!1;break;case 41:dn&&(Va=!1),dn=!0;break;case 79:Va=!1;break;case 1:return!1}}function Ng(_t,xa){e.Debug.assert(v()===59);var ma=_.getStartPos();Oe();var Va=Kf();ru();var dn;switch(Va.escapedText){case"type":return _t===1&&v_(ma,Va);case"prop":case"property":dn=1;break;case"arg":case"argument":case"param":dn=6;break;default:return!1}return _t&dn?ad(ma,Va,_t,xa):!1}function Fd(){var _t=Dr(),xa=y_(22);xa&&ru();var ma=Kf(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),Va;if(xa&&(ru(),ri(63),Va=be(4194304,is),ri(23)),!e.nodeIsMissing(ma))return Qr(ce.createTypeParameterDeclaration(ma,void 0,Va),_t)}function ef(){var _t=Dr(),xa=[];do{ru();var ma=Fd();ma!==void 0&&xa.push(ma),m_()}while(y_(27));return wi(xa,_t)}function bv(_t,xa,ma,Va){var dn=v()===18?Hr():void 0,Pn=ef();return Qr(ce.createJSDocTemplateTag(xa,dn,Pn,d(_t,Dr(),ma,Va)),_t)}function y_(_t){return v()===_t?(Oe(),!0):!1}function zc(){var _t=Kf();for(St(22)&&ri(23);St(24);){var xa=Kf();St(22)&&ri(23),_t=Os(_t,xa)}return _t}function Kf(_t){if(!e.tokenIsIdentifierOrKeyword(v()))return Ct(79,!_t,_t||e.Diagnostics.Identifier_expected);he++;var xa=_.getTokenPos(),ma=_.getTextPos(),Va=v(),dn=tt(_.getTokenValue()),Pn=Qr(ce.createIdentifier(dn,void 0,Va),xa,ma);return Oe(),Pn}}})(Zl=l.JSDocParser||(l.JSDocParser={}))})(x||(x={}));var ie;(function(l){function _(ae,V,le,ke){if(ke=ke||e.Debug.shouldAssert(2),ce(ae,V,le,ke),e.textChangeRangeIsUnchanged(le))return ae;if(ae.statements.length===0)return x.parseSourceFile(ae.fileName,V,ae.languageVersion,void 0,!0,ae.scriptKind);var Ue=ae;e.Debug.assert(!Ue.hasBeenIncrementallyParsed),Ue.hasBeenIncrementallyParsed=!0,x.fixupParentReferences(Ue);var He=ae.text,ar=m(ae),gr=oe(ae,le);ce(ae,V,gr,ke),e.Debug.assert(gr.span.start<=le.span.start),e.Debug.assert(e.textSpanEnd(gr.span)===e.textSpanEnd(le.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(gr))===e.textSpanEnd(e.textChangeRangeNewSpan(le)));var me=e.textChangeRangeNewSpan(gr).length-gr.span.length;y(Ue,gr.span.start,e.textSpanEnd(gr.span),e.textSpanEnd(e.textChangeRangeNewSpan(gr)),me,He,V,ke);var Ge=x.parseSourceFile(ae.fileName,V,ae.languageVersion,ar,!0,ae.scriptKind);return Ge.commentDirectives=J(ae.commentDirectives,Ge.commentDirectives,gr.span.start,e.textSpanEnd(gr.span),me,He,V,ke),Ge.impliedNodeFormat=ae.impliedNodeFormat,Ge}l.updateSourceFile=_;function J(ae,V,le,ke,Ue,He,ar,gr){if(!ae)return V;for(var me,Ge=!1,er=0,he=ae;er<he.length;er++){var we=he[er],ye=we.range,Se=we.type;if(ye.end<le)me=e.append(me,we);else if(ye.pos>ke){Fe();var ge={range:{pos:ye.pos+Ue,end:ye.end+Ue},type:Se};me=e.append(me,ge),gr&&e.Debug.assert(He.substring(ye.pos,ye.end)===ar.substring(ge.range.pos,ge.range.end))}}return Fe(),me;function Fe(){Ge||(Ge=!0,me?V&&me.push.apply(me,V):me=V)}}function w(ae,V,le,ke,Ue,He){V?gr(ae):ar(ae);return;function ar(me){var Ge="";if(He&&j(me)&&(Ge=ke.substring(me.pos,me.end)),me._children&&(me._children=void 0),e.setTextRangePosEnd(me,me.pos+le,me.end+le),He&&j(me)&&e.Debug.assert(Ge===Ue.substring(me.pos,me.end)),H(me,ar,gr),e.hasJSDocNodes(me))for(var er=0,he=me.jsDoc;er<he.length;er++){var we=he[er];ar(we)}z(me,He)}function gr(me){me._children=void 0,e.setTextRangePosEnd(me,me.pos+le,me.end+le);for(var Ge=0,er=me;Ge<er.length;Ge++){var he=er[Ge];ar(he)}}}function j(ae){switch(ae.kind){case 10:case 8:case 79:return!0}return!1}function U(ae,V,le,ke,Ue){e.Debug.assert(ae.end>=V,"Adjusting an element that was entirely before the change range"),e.Debug.assert(ae.pos<=le,"Adjusting an element that was entirely after the change range"),e.Debug.assert(ae.pos<=ae.end);var He=Math.min(ae.pos,ke),ar=ae.end>=le?ae.end+Ue:Math.min(ae.end,ke);e.Debug.assert(He<=ar),ae.parent&&(e.Debug.assertGreaterThanOrEqual(He,ae.parent.pos),e.Debug.assertLessThanOrEqual(ar,ae.parent.end)),e.setTextRangePosEnd(ae,He,ar)}function z(ae,V){if(V){var le=ae.pos,ke=function(gr){e.Debug.assert(gr.pos>=le),le=gr.end};if(e.hasJSDocNodes(ae))for(var Ue=0,He=ae.jsDoc;Ue<He.length;Ue++){var ar=He[Ue];ke(ar)}H(ae,ke),e.Debug.assert(le<=ae.end)}}function y(ae,V,le,ke,Ue,He,ar,gr){me(ae);return;function me(er){if(e.Debug.assert(er.pos<=er.end),er.pos>le){w(er,!1,Ue,He,ar,gr);return}var he=er.end;if(he>=V){if(er.intersectsChange=!0,er._children=void 0,U(er,V,le,ke,Ue),H(er,me,Ge),e.hasJSDocNodes(er))for(var we=0,ye=er.jsDoc;we<ye.length;we++){var Se=ye[we];me(Se)}z(er,gr);return}e.Debug.assert(he<V)}function Ge(er){if(e.Debug.assert(er.pos<=er.end),er.pos>le){w(er,!0,Ue,He,ar,gr);return}var he=er.end;if(he>=V){er.intersectsChange=!0,er._children=void 0,U(er,V,le,ke,Ue);for(var we=0,ye=er;we<ye.length;we++){var Se=ye[we];me(Se)}return}e.Debug.assert(he<V)}}function oe(ae,V){for(var le=1,ke=V.span.start,Ue=0;ke>0&&Ue<=le;Ue++){var He=ve(ae,ke);e.Debug.assert(He.pos<=ke);var ar=He.pos;ke=Math.max(0,ar-1)}var gr=e.createTextSpanFromBounds(ke,e.textSpanEnd(V.span)),me=V.newLength+(V.span.start-ke);return e.createTextChangeRange(gr,me)}function ve(ae,V){var le=ae,ke;if(H(ae,ar),ke){var Ue=He(ke);Ue.pos>le.pos&&(le=Ue)}return le;function He(gr){for(;;){var me=e.getLastChild(gr);if(me)gr=me;else return gr}}function ar(gr){if(!e.nodeIsMissing(gr))if(gr.pos<=V){if(gr.pos>=le.pos&&(le=gr),V<gr.end)return H(gr,ar),!0;e.Debug.assert(gr.end<=V),ke=gr}else return e.Debug.assert(gr.pos>V),!0}}function ce(ae,V,le,ke){var Ue=ae.text;if(le&&(e.Debug.assert(Ue.length-le.span.length+le.newLength===V.length),ke||e.Debug.shouldAssert(3))){var He=Ue.substr(0,le.span.start),ar=V.substr(0,le.span.start);e.Debug.assert(He===ar);var gr=Ue.substring(e.textSpanEnd(le.span),Ue.length),me=V.substring(e.textSpanEnd(e.textChangeRangeNewSpan(le)),V.length);e.Debug.assert(gr===me)}}function m(ae){var V=ae.statements,le=0;e.Debug.assert(le<V.length);var ke=V[le],Ue=-1;return{currentNode:function(ar){return ar!==Ue&&(ke&&ke.end===ar&&le<V.length-1&&(le++,ke=V[le]),(!ke||ke.pos!==ar)&&He(ar)),Ue=ar,e.Debug.assert(!ke||ke.pos===ar),ke}};function He(ar){V=void 0,le=-1,ke=void 0,H(ae,gr,me);return;function gr(Ge){return ar>=Ge.pos&&ar<Ge.end?(H(Ge,gr,me),!0):!1}function me(Ge){if(ar>=Ge.pos&&ar<Ge.end)for(var er=0;er<Ge.length;er++){var he=Ge[er];if(he){if(he.pos===ar)return V=Ge,le=er,ke=he,!0;if(he.pos<ar&&ar<he.end)return H(he,gr,me),!0}}return!1}}}l.createSyntaxCursor=m;var de;(function(ae){ae[ae.Value=-1]="Value"})(de||(de={}))})(ie||(ie={}));function _e(l){return e.fileExtensionIsOneOf(l,[".d.ts",".d.mts",".d.cts"])}e.isDeclarationFileName=_e;function Y(l,_){for(var J=[],w=0,j=e.getLeadingCommentRanges(_,0)||e.emptyArray;w<j.length;w++){var U=j[w],z=_.substring(U.pos,U.end);A(J,U,z)}l.pragmas=new e.Map;for(var y=0,oe=J;y<oe.length;y++){var ve=oe[y];if(l.pragmas.has(ve.name)){var ce=l.pragmas.get(ve.name);ce instanceof Array?ce.push(ve.args):l.pragmas.set(ve.name,[ce,ve.args]);continue}l.pragmas.set(ve.name,ve.args)}}e.processCommentPragmas=Y;function Z(l,_){l.checkJsDirective=void 0,l.referencedFiles=[],l.typeReferenceDirectives=[],l.libReferenceDirectives=[],l.amdDependencies=[],l.hasNoDefaultLib=!1,l.pragmas.forEach(function(J,w){switch(w){case"reference":{var j=l.referencedFiles,U=l.typeReferenceDirectives,z=l.libReferenceDirectives;e.forEach(e.toArray(J),function(ce){var m=ce.arguments,de=m.types,ae=m.lib,V=m.path;ce.arguments["no-default-lib"]?l.hasNoDefaultLib=!0:de?U.push({pos:de.pos,end:de.end,fileName:de.value}):ae?z.push({pos:ae.pos,end:ae.end,fileName:ae.value}):V?j.push({pos:V.pos,end:V.end,fileName:V.value}):_(ce.range.pos,ce.range.end-ce.range.pos,e.Diagnostics.Invalid_reference_directive_syntax)});break}case"amd-dependency":{l.amdDependencies=e.map(e.toArray(J),function(ce){return{name:ce.arguments.name,path:ce.arguments.path}});break}case"amd-module":{if(J instanceof Array)for(var y=0,oe=J;y<oe.length;y++){var ve=oe[y];l.moduleName&&_(ve.range.pos,ve.range.end-ve.range.pos,e.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments),l.moduleName=ve.arguments.name}else l.moduleName=J.arguments.name;break}case"ts-nocheck":case"ts-check":{e.forEach(e.toArray(J),function(ce){(!l.checkJsDirective||ce.range.pos>l.checkJsDirective.pos)&&(l.checkJsDirective={enabled:w==="ts-check",end:ce.range.end,pos:ce.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:e.Debug.fail("Unhandled pragma kind")}})}e.processPragmasIntoFields=Z;var k=new e.Map;function I(l){if(k.has(l))return k.get(l);var _=new RegExp("(\\s".concat(l,`\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`),"im");return k.set(l,_),_}var ne=/^\/\/\/\s*<(\S+)\s.*?\/>/im,ee=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function A(l,_,J){var w=_.kind===2&&ne.exec(J);if(w){var j=w[1].toLowerCase(),U=e.commentPragmas[j];if(!U||!(U.kind&1))return;if(U.args){for(var z={},y=0,oe=U.args;y<oe.length;y++){var ve=oe[y],ce=I(ve.name),m=ce.exec(J);if(!m&&!ve.optional)return;if(m){var de=m[2]||m[3];if(ve.captureSpan){var ae=_.pos+m.index+m[1].length+1;z[ve.name]={value:de,pos:ae,end:ae+de.length}}else z[ve.name]=de}}l.push({name:j,args:{arguments:z,range:_}})}else l.push({name:j,args:{arguments:{},range:_}});return}var V=_.kind===2&&ee.exec(J);if(V)return f(l,_,2,V);if(_.kind===3)for(var le=/@(\S+)(\s+.*)?$/gim,ke=void 0;ke=le.exec(J);)f(l,_,4,ke)}function f(l,_,J,w){if(!!w){var j=w[1].toLowerCase(),U=e.commentPragmas[j];if(!(!U||!(U.kind&J))){var z=w[2],y=P(U,z);y!=="fail"&&l.push({name:j,args:{arguments:y,range:_}})}}}function P(l,_){if(!_)return{};if(!l.args)return{};for(var J=e.trimString(_).split(/\s+/),w={},j=0;j<l.args.length;j++){var U=l.args[j];if(!J[j]&&!U.optional)return"fail";if(U.captureSpan)return e.Debug.fail("Capture spans not yet implemented for non-xml pragmas");w[U.name]=J[j]}return w}function D(l,_){return l.kind!==_.kind?!1:l.kind===79?l.escapedText===_.escapedText:l.kind===108?!0:l.name.escapedText===_.name.escapedText&&D(l.expression,_.expression)}e.tagNamesAreEquivalent=D})(Pe||(Pe={}));var Pe;(function(e){e.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean",defaultValueDescription:!1};var a=new e.Map(e.getEntries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5}));e.inverseJsxOptionMap=new e.Map(e.arrayFrom(e.mapIterator(a.entries(),function(We){var mr=We[0],Nr=We[1];return[""+Nr,mr]})));var O=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["esnext.array","lib.es2022.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.es2022.string.d.ts"],["esnext.promise","lib.es2021.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"]];e.libs=O.map(function(We){return We[0]}),e.libMap=new e.Map(O),e.optionsForWatch=[{name:"watchFile",type:new e.Map(e.getEntries({fixedpollinginterval:e.WatchFileKind.FixedPollingInterval,prioritypollinginterval:e.WatchFileKind.PriorityPollingInterval,dynamicprioritypolling:e.WatchFileKind.DynamicPriorityPolling,fixedchunksizepolling:e.WatchFileKind.FixedChunkSizePolling,usefsevents:e.WatchFileKind.UseFsEvents,usefseventsonparentdirectory:e.WatchFileKind.UseFsEventsOnParentDirectory})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:e.WatchFileKind.UseFsEvents},{name:"watchDirectory",type:new e.Map(e.getEntries({usefsevents:e.WatchDirectoryKind.UseFsEvents,fixedpollinginterval:e.WatchDirectoryKind.FixedPollingInterval,dynamicprioritypolling:e.WatchDirectoryKind.DynamicPriorityPolling,fixedchunksizepolling:e.WatchDirectoryKind.FixedChunkSizePolling})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:e.WatchDirectoryKind.UseFsEvents},{name:"fallbackPolling",type:new e.Map(e.getEntries({fixedinterval:e.PollingWatchKind.FixedInterval,priorityinterval:e.PollingWatchKind.PriorityInterval,dynamicpriority:e.PollingWatchKind.DynamicPriority,fixedchunksize:e.PollingWatchKind.FixedChunkSize})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:e.PollingWatchKind.PriorityInterval},{name:"synchronousWatchDirectory",type:"boolean",category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:v},category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:v},category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Remove_a_list_of_files_from_the_watch_mode_s_processing}],e.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE_OR_DIRECTORY,category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:e.Diagnostics.Projects,description:e.Diagnostics.Enable_incremental_compilation,transpileOptionValue:void 0,defaultValueDescription:e.Diagnostics.false_unless_composite_is_set},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:e.Diagnostics.Platform_specific}],e.targetOptionDeclaration={name:"target",shortName:"t",type:new e.Map(e.getEntries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:0};var L=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_the_compiler_s_version,defaultValueDescription:!1},{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,defaultValueDescription:!1},{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,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{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,defaultValueDescription:!1},e.targetOptionDeclaration,{name:"module",shortName:"m",type:new e.Map(e.getEntries({none:e.ModuleKind.None,commonjs:e.ModuleKind.CommonJS,amd:e.ModuleKind.AMD,system:e.ModuleKind.System,umd:e.ModuleKind.UMD,es6:e.ModuleKind.ES2015,es2015:e.ModuleKind.ES2015,es2020:e.ModuleKind.ES2020,es2022:e.ModuleKind.ES2022,esnext:e.ModuleKind.ESNext,node12:e.ModuleKind.Node12,nodenext:e.ModuleKind.NodeNext})),affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_what_module_code_is_generated,defaultValueDescription:void 0},{name:"lib",type:"list",element:{name:"lib",type:e.libMap,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:a,affectsSourceFile:!0,affectsEmit:!0,affectsModuleResolution:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"declaration",shortName:"d",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:e.Diagnostics.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:e.Diagnostics.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,defaultValueDescription:!1,description:e.Diagnostics.Create_source_map_files_for_emitted_JavaScript_files},{name:"outFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_the_root_folder_within_your_source_files,defaultValueDescription:e.Diagnostics.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsEmit:!0,isTSConfigOnly:!0,category:e.Diagnostics.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:e.Diagnostics.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,category:e.Diagnostics.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:e.Diagnostics.Specify_the_folder_for_tsbuildinfo_incremental_compilation_files},{name:"removeComments",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,defaultValueDescription:!1,description:e.Diagnostics.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new e.Map(e.getEntries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Type_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:!1},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Ensure_use_strict_is_always_emitted,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_when_a_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Include_undefined_in_index_signature_results,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new e.Map(e.getEntries({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic,node12:e.ModuleResolutionKind.Node12,nodenext:e.ModuleResolutionKind.NodeNext})),affectsModuleResolution:!0,paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:e.Diagnostics.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:e.Diagnostics.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:e.Diagnostics.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"sourceRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"inlineSources",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Enable_experimental_support_for_TC39_stage_2_draft_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsModuleResolution:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Enable_importing_json_files,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,isFilePath:!1,category:e.Diagnostics.Backwards_Compatibility,paramType:e.Diagnostics.FILE,transpileOptionValue:void 0,description:e.Diagnostics.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",category:e.Diagnostics.Completeness,description:e.Diagnostics.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new e.Map(e.getEntries({crlf:0,lf:1})),affectsEmit:!0,paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Emit,description:e.Diagnostics.Set_the_newline_character_for_emitting_files,defaultValueDescription:e.Diagnostics.Platform_specific},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:e.Diagnostics.Language_and_Environment,affectsProgramStructure:!0,description:e.Diagnostics.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:e.Diagnostics.Editor_Support,description:e.Diagnostics.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",category:e.Diagnostics.Completeness,description:e.Diagnostics.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!1},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:e.Diagnostics.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:e.Diagnostics.List_of_language_service_plugins,category:e.Diagnostics.Editor_Support}];e.optionDeclarations=qe(qe([],e.commonOptionsWithBuild,!0),L,!0),e.semanticDiagnosticsOptionDeclarations=e.optionDeclarations.filter(function(We){return!!We.affectsSemanticDiagnostics}),e.affectsEmitOptionDeclarations=e.optionDeclarations.filter(function(We){return!!We.affectsEmit}),e.moduleResolutionOptionDeclarations=e.optionDeclarations.filter(function(We){return!!We.affectsModuleResolution}),e.sourceFileAffectingCompilerOptions=e.optionDeclarations.filter(function(We){return!!We.affectsSourceFile||!!We.affectsModuleResolution||!!We.affectsBindDiagnostics}),e.optionsAffectingProgramStructure=e.optionDeclarations.filter(function(We){return!!We.affectsProgramStructure}),e.transpileOptionValueCompilerOptions=e.optionDeclarations.filter(function(We){return e.hasProperty(We,"transpileOptionValue")}),e.optionsForBuild=[{name:"verbose",shortName:"v",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{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",defaultValueDescription:!1},{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",defaultValueDescription:!1},{name:"clean",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],e.buildOpts=qe(qe([],e.commonOptionsWithBuild,!0),e.optionsForBuild,!0),e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean",defaultValueDescription:!1},{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}];function W(We){var mr=new e.Map,Nr=new e.Map;return e.forEach(We,function(Ur){mr.set(Ur.name.toLowerCase(),Ur),Ur.shortName&&Nr.set(Ur.shortName,Ur.name)}),{optionsNameMap:mr,shortOptionNames:Nr}}e.createOptionNameMap=W;var N;function Q(){return N||(N=W(e.optionDeclarations))}e.getOptionsNameMap=Q;var pe={diagnostic:e.Diagnostics.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:x};e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function F(We){return We&&We.enableAutoDiscovery!==void 0&&We.enable===void 0?{enable:We.enableAutoDiscovery,include:We.include||[],exclude:We.exclude||[]}:We}e.convertEnableAutoDiscoveryToEnable=F;function g(We){return S(We,e.createCompilerDiagnostic)}e.createCompilerDiagnosticForInvalidCustomType=g;function S(We,mr){var Nr=e.arrayFrom(We.type.keys()).map(function(Ur){return"'".concat(Ur,"'")}).join(", ");return mr(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--".concat(We.name),Nr)}function H(We,mr,Nr){return Ji(We,e.trimString(mr||""),Nr)}e.parseCustomTypeOption=H;function se(We,mr,Nr){if(mr===void 0&&(mr=""),mr=e.trimString(mr),!e.startsWith(mr,"-")){if(mr==="")return[];var Ur=mr.split(",");switch(We.element.type){case"number":return e.mapDefined(Ur,function(si){return sr(We.element,parseInt(si),Nr)});case"string":return e.mapDefined(Ur,function(si){return sr(We.element,si||"",Nr)});default:return e.mapDefined(Ur,function(si){return H(We.element,si,Nr)})}}}e.parseListTypeOption=se;function p(We){return We.name}function C(We,mr,Nr,Ur){var si;if(!((si=mr.alternateMode)===null||si===void 0)&&si.getOptionsNameMap().optionsNameMap.has(We.toLowerCase()))return Nr(mr.alternateMode.diagnostic,We);var mi=e.getSpellingSuggestion(We,mr.optionDeclarations,p);return mi?Nr(mr.unknownDidYouMeanDiagnostic,Ur||We,mi.name):Nr(mr.unknownOptionDiagnostic,Ur||We)}function G(We,mr,Nr){var Ur={},si,mi=[],Ti=[];return hi(mr),{options:Ur,watchOptions:si,fileNames:mi,errors:Ti};function hi(Ui){for(var zi=0;zi<Ui.length;){var ri=Ui[zi];if(zi++,ri.charCodeAt(0)===64)ki(ri.slice(1));else if(ri.charCodeAt(0)===45){var Gi=ri.slice(ri.charCodeAt(1)===45?2:1),Rt=re(We.getOptionsNameMap,Gi,!0);if(Rt)zi=E(Ui,zi,We,Rt,Ur,Ti);else{var pa=re(_.getOptionsNameMap,Gi,!0);pa?zi=E(Ui,zi,_,pa,si||(si={}),Ti):Ti.push(C(Gi,We,e.createCompilerDiagnostic,ri))}}else mi.push(ri)}}function ki(Ui){var zi=A(Ui,Nr||function(pa){return e.sys.readFile(pa)});if(!e.isString(zi)){Ti.push(zi);return}for(var ri=[],Gi=0;;){for(;Gi<zi.length&&zi.charCodeAt(Gi)<=32;)Gi++;if(Gi>=zi.length)break;var Rt=Gi;if(zi.charCodeAt(Rt)===34){for(Gi++;Gi<zi.length&&zi.charCodeAt(Gi)!==34;)Gi++;Gi<zi.length?(ri.push(zi.substring(Rt+1,Gi)),Gi++):Ti.push(e.createCompilerDiagnostic(e.Diagnostics.Unterminated_quoted_string_in_response_file_0,Ui))}else{for(;zi.charCodeAt(Gi)>32;)Gi++;ri.push(zi.substring(Rt,Gi))}}hi(ri)}}e.parseCommandLineWorker=G;function E(We,mr,Nr,Ur,si,mi){if(Ur.isTSConfigOnly){var Ti=We[mr];Ti==="null"?(si[Ur.name]=void 0,mr++):Ur.type==="boolean"?Ti==="false"?(si[Ur.name]=sr(Ur,!1,mi),mr++):(Ti==="true"&&mr++,mi.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,Ur.name))):(mi.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,Ur.name)),Ti&&!e.startsWith(Ti,"-")&&mr++)}else if(!We[mr]&&Ur.type!=="boolean"&&mi.push(e.createCompilerDiagnostic(Nr.optionTypeMismatchDiagnostic,Ur.name,ae(Ur))),We[mr]!=="null")switch(Ur.type){case"number":si[Ur.name]=sr(Ur,parseInt(We[mr]),mi),mr++;break;case"boolean":var Ti=We[mr];si[Ur.name]=sr(Ur,Ti!=="false",mi),(Ti==="false"||Ti==="true")&&mr++;break;case"string":si[Ur.name]=sr(Ur,We[mr]||"",mi),mr++;break;case"list":var hi=se(Ur,We[mr],mi);si[Ur.name]=hi||[],hi&&mr++;break;default:si[Ur.name]=H(Ur,We[mr],mi),mr++;break}else si[Ur.name]=void 0,mr++;return mr}e.compilerOptionsDidYouMeanDiagnostics={alternateMode:pe,getOptionsNameMap:Q,optionDeclarations:e.optionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Compiler_option_0_expects_an_argument};function ue(We,mr){return G(e.compilerOptionsDidYouMeanDiagnostics,We,mr)}e.parseCommandLine=ue;function B(We,mr){return re(Q,We,mr)}e.getOptionFromName=B;function re(We,mr,Nr){Nr===void 0&&(Nr=!1),mr=mr.toLowerCase();var Ur=We(),si=Ur.optionsNameMap,mi=Ur.shortOptionNames;if(Nr){var Ti=mi.get(mr);Ti!==void 0&&(mr=Ti)}return si.get(mr)}var M;function x(){return M||(M=W(e.buildOpts))}var ie={diagnostic:e.Diagnostics.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:Q},_e={alternateMode:ie,getOptionsNameMap:x,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 Y(We){var mr=G(_e,We),Nr=mr.options,Ur=mr.watchOptions,si=mr.fileNames,mi=mr.errors,Ti=Nr;return si.length===0&&si.push("."),Ti.clean&&Ti.force&&mi.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),Ti.clean&&Ti.verbose&&mi.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),Ti.clean&&Ti.watch&&mi.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),Ti.watch&&Ti.dry&&mi.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:Ti,watchOptions:Ur,projects:si,errors:mi}}e.parseBuildCommand=Y;function Z(We){for(var mr=[],Nr=1;Nr<arguments.length;Nr++)mr[Nr-1]=arguments[Nr];var Ur=e.createCompilerDiagnostic.apply(void 0,arguments);return Ur.messageText}e.getDiagnosticText=Z;function k(We,mr,Nr,Ur,si,mi){var Ti=A(We,function(Ui){return Nr.readFile(Ui)});if(!e.isString(Ti)){Nr.onUnRecoverableConfigFileDiagnostic(Ti);return}var hi=e.parseJsonText(We,Ti),ki=Nr.getCurrentDirectory();return hi.path=e.toPath(We,ki,e.createGetCanonicalFileName(Nr.useCaseSensitiveFileNames)),hi.resolvedPath=hi.path,hi.originalFileName=hi.fileName,cr(hi,Nr,e.getNormalizedAbsolutePath(e.getDirectoryPath(We),ki),mr,e.getNormalizedAbsolutePath(We,ki),void 0,mi,Ur,si)}e.getParsedCommandLineOfConfigFile=k;function I(We,mr){var Nr=A(We,mr);return e.isString(Nr)?ne(We,Nr):{config:{},error:Nr}}e.readConfigFile=I;function ne(We,mr){var Nr=e.parseJsonText(We,mr);return{config:ce(Nr,Nr.parseDiagnostics,!1,void 0),error:Nr.parseDiagnostics.length?Nr.parseDiagnostics[0]:void 0}}e.parseConfigFileTextToJson=ne;function ee(We,mr){var Nr=A(We,mr);return e.isString(Nr)?e.parseJsonText(We,Nr):{fileName:We,parseDiagnostics:[Nr]}}e.readJsonConfigFile=ee;function A(We,mr){var Nr;try{Nr=mr(We)}catch(Ur){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,We,Ur.message)}return Nr===void 0?e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0,We):Nr}e.tryReadFile=A;function f(We){return e.arrayToMap(We,p)}var P={optionDeclarations:e.typeAcquisitionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0_Did_you_mean_1},D;function l(){return D||(D=W(e.optionsForWatch))}var _={getOptionsNameMap:l,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},J;function w(){return J||(J=f(e.optionDeclarations))}var j;function U(){return j||(j=f(e.optionsForWatch))}var z;function y(){return z||(z=f(e.typeAcquisitionDeclarations))}var oe;function ve(){return oe===void 0&&(oe={name:void 0,type:"object",elementOptions:f([{name:"compilerOptions",type:"object",elementOptions:w(),extraKeyDiagnostics:e.compilerOptionsDidYouMeanDiagnostics},{name:"watchOptions",type:"object",elementOptions:U(),extraKeyDiagnostics:_},{name:"typingOptions",type:"object",elementOptions:y(),extraKeyDiagnostics:P},{name:"typeAcquisition",type:"object",elementOptions:y(),extraKeyDiagnostics:P},{name:"extends",type:"string",category:e.Diagnostics.File_Management},{name:"references",type:"list",element:{name:"references",type:"object"},category:e.Diagnostics.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:e.Diagnostics.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:e.Diagnostics.File_Management,defaultValueDescription:e.Diagnostics.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:e.Diagnostics.File_Management,defaultValueDescription:e.Diagnostics.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},e.compileOnSaveCommandLineOption])}),oe}function ce(We,mr,Nr,Ur){var si,mi=(si=We.statements[0])===null||si===void 0?void 0:si.expression,Ti=Nr?ve():void 0;if(mi&&mi.kind!==204){if(mr.push(e.createDiagnosticForNodeInSourceFile(We,mi,e.Diagnostics.The_root_value_of_a_0_file_must_be_an_object,e.getBaseFileName(We.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),e.isArrayLiteralExpression(mi)){var hi=e.find(mi.elements,e.isObjectLiteralExpression);if(hi)return de(We,hi,mr,!0,Ti,Ur)}return{}}return de(We,mi,mr,!0,Ti,Ur)}function m(We,mr){var Nr;return de(We,(Nr=We.statements[0])===null||Nr===void 0?void 0:Nr.expression,mr,!0,void 0,void 0)}e.convertToObject=m;function de(We,mr,Nr,Ur,si,mi){if(!mr)return Ur?{}:void 0;return Ui(mr,si);function Ti(ri){return si&&si.elementOptions===ri}function hi(ri,Gi,Rt,pa){for(var xt=Ur?{}:void 0,ua=function(Hi){if(Hi.kind!==294)return Nr.push(e.createDiagnosticForNodeInSourceFile(We,Hi,e.Diagnostics.Property_assignment_expected)),"continue";Hi.questionToken&&Nr.push(e.createDiagnosticForNodeInSourceFile(We,Hi.questionToken,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),zi(Hi.name)||Nr.push(e.createDiagnosticForNodeInSourceFile(We,Hi.name,e.Diagnostics.String_literal_with_double_quotes_expected));var Yi=e.isComputedNonLiteralName(Hi.name)?void 0:e.getTextOfPropertyName(Hi.name),yt=Yi&&e.unescapeLeadingUnderscores(Yi),gt=yt&&Gi?Gi.get(yt):void 0;yt&&Rt&&!gt&&(Gi?Nr.push(C(yt,Rt,function(Pi,Oi,wi){return e.createDiagnosticForNodeInSourceFile(We,Hi.name,Pi,Oi,wi)})):Nr.push(e.createDiagnosticForNodeInSourceFile(We,Hi.name,Rt.unknownOptionDiagnostic,yt)));var oa=Ui(Hi.initializer,gt);if(typeof yt<"u"&&(Ur&&(xt[yt]=oa),mi&&(pa||Ti(Gi)))){var Bt=V(gt,oa);pa?Bt&&mi.onSetValidOptionKeyValueInParent(pa,gt,oa):Ti(Gi)&&(Bt?mi.onSetValidOptionKeyValueInRoot(yt,Hi.name,oa,Hi.initializer):gt||mi.onSetUnknownOptionKeyValueInRoot(yt,Hi.name,oa,Hi.initializer))}},Vt=0,St=ri.properties;Vt<St.length;Vt++){var Ci=St[Vt];ua(Ci)}return xt}function ki(ri,Gi){if(!Ur){ri.forEach(function(Rt){return Ui(Rt,Gi)});return}return e.filter(ri.map(function(Rt){return Ui(Rt,Gi)}),function(Rt){return Rt!==void 0})}function Ui(ri,Gi){var Rt;switch(ri.kind){case 110:return yt(Gi&&Gi.type!=="boolean"),Yi(!0);case 95:return yt(Gi&&Gi.type!=="boolean"),Yi(!1);case 104:return yt(Gi&&Gi.name==="extends"),Yi(null);case 10:zi(ri)||Nr.push(e.createDiagnosticForNodeInSourceFile(We,ri,e.Diagnostics.String_literal_with_double_quotes_expected)),yt(Gi&&e.isString(Gi.type)&&Gi.type!=="string");var pa=ri.text;if(Gi&&!e.isString(Gi.type)){var xt=Gi;xt.type.has(pa.toLowerCase())||(Nr.push(S(xt,function(gt,oa,Bt){return e.createDiagnosticForNodeInSourceFile(We,ri,gt,oa,Bt)})),Rt=!0)}return Yi(pa);case 8:return yt(Gi&&Gi.type!=="number"),Yi(Number(ri.text));case 218:if(ri.operator!==40||ri.operand.kind!==8)break;return yt(Gi&&Gi.type!=="number"),Yi(-Number(ri.operand.text));case 204:yt(Gi&&Gi.type!=="object");var ua=ri;if(Gi){var Vt=Gi,St=Vt.elementOptions,Ci=Vt.extraKeyDiagnostics,Hi=Vt.name;return Yi(hi(ua,St,Ci,Hi))}else return Yi(hi(ua,void 0,void 0,void 0));case 203:return yt(Gi&&Gi.type!=="list"),Yi(ki(ri.elements,Gi&&Gi.element))}Gi?yt(!0):Nr.push(e.createDiagnosticForNodeInSourceFile(We,ri,e.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal));return;function Yi(gt){var oa;if(!Rt){var Bt=(oa=Gi==null?void 0:Gi.extraValidation)===null||oa===void 0?void 0:oa.call(Gi,gt);if(Bt){Nr.push(e.createDiagnosticForNodeInSourceFile.apply(void 0,qe([We,ri],Bt,!1)));return}}return gt}function yt(gt){gt&&(Nr.push(e.createDiagnosticForNodeInSourceFile(We,ri,e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,Gi.name,ae(Gi))),Rt=!0)}}function zi(ri){return e.isStringLiteral(ri)&&e.isStringDoubleQuoted(ri,We)}}e.convertToObjectWorker=de;function ae(We){return We.type==="list"?"Array":e.isString(We.type)?We.type:"string"}function V(We,mr){if(We){if(Ir(mr))return!0;if(We.type==="list")return e.isArray(mr);var Nr=e.isString(We.type)?We.type:"string";return typeof mr===Nr}return!1}function le(We,mr,Nr){var Ur,si,mi,Ti=e.createGetCanonicalFileName(Nr.useCaseSensitiveFileNames),hi=e.map(e.filter(We.fileNames,!((si=(Ur=We.options.configFile)===null||Ur===void 0?void 0:Ur.configFileSpecs)===null||si===void 0)&&si.validatedIncludeSpecs?He(mr,We.options.configFile.configFileSpecs.validatedIncludeSpecs,We.options.configFile.configFileSpecs.validatedExcludeSpecs,Nr):e.returnTrue),function(ri){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(mr,Nr.getCurrentDirectory()),e.getNormalizedAbsolutePath(ri,Nr.getCurrentDirectory()),Ti)}),ki=me(We.options,{configFilePath:e.getNormalizedAbsolutePath(mr,Nr.getCurrentDirectory()),useCaseSensitiveFileNames:Nr.useCaseSensitiveFileNames}),Ui=We.watchOptions&&Ge(We.watchOptions),zi=Ve(Ve({compilerOptions:Ve(Ve({},ke(ki)),{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:Ui&&ke(Ui),references:e.map(We.projectReferences,function(ri){return Ve(Ve({},ri),{path:ri.originalPath?ri.originalPath:"",originalPath:void 0})}),files:e.length(hi)?hi:void 0},!((mi=We.options.configFile)===null||mi===void 0)&&mi.configFileSpecs?{include:Ue(We.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:We.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:We.compileOnSave?!0:void 0});return zi}e.convertToTSConfig=le;function ke(We){return Ve({},e.arrayFrom(We.entries()).reduce(function(mr,Nr){var Ur;return Ve(Ve({},mr),(Ur={},Ur[Nr[0]]=Nr[1],Ur))},{}))}function Ue(We){if(!!e.length(We)){if(e.length(We)!==1)return We;if(We[0]!=="**/*")return We}}function He(We,mr,Nr,Ur){if(!mr)return e.returnTrue;var si=e.getFileMatcherPatterns(We,Nr,mr,Ur.useCaseSensitiveFileNames,Ur.getCurrentDirectory()),mi=si.excludePattern&&e.getRegexFromPattern(si.excludePattern,Ur.useCaseSensitiveFileNames),Ti=si.includeFilePattern&&e.getRegexFromPattern(si.includeFilePattern,Ur.useCaseSensitiveFileNames);return Ti?mi?function(hi){return!(Ti.test(hi)&&!mi.test(hi))}:function(hi){return!Ti.test(hi)}:mi?function(hi){return mi.test(hi)}:e.returnTrue}function ar(We){if(!(We.type==="string"||We.type==="number"||We.type==="boolean"||We.type==="object"))return We.type==="list"?ar(We.element):We.type}function gr(We,mr){return e.forEachEntry(mr,function(Nr,Ur){if(Nr===We)return Ur})}function me(We,mr){return er(We,Q(),mr)}function Ge(We){return er(We,l())}function er(We,mr,Nr){var Ur=mr.optionsNameMap,si=new e.Map,mi=Nr&&e.createGetCanonicalFileName(Nr.useCaseSensitiveFileNames),Ti=function(ki){if(e.hasProperty(We,ki)){if(Ur.has(ki)&&(Ur.get(ki).category===e.Diagnostics.Command_line_Options||Ur.get(ki).category===e.Diagnostics.Output_Formatting))return"continue";var Ui=We[ki],zi=Ur.get(ki.toLowerCase());if(zi){var ri=ar(zi);ri?zi.type==="list"?si.set(ki,Ui.map(function(Gi){return gr(Gi,ri)})):si.set(ki,gr(Ui,ri)):Nr&&zi.isFilePath?si.set(ki,e.getRelativePathFromFile(Nr.configFilePath,e.getNormalizedAbsolutePath(Ui,e.getDirectoryPath(Nr.configFilePath)),mi)):si.set(ki,Ui)}}};for(var hi in We)Ti(hi);return si}function he(We,mr){var Nr=we(We);return si();function Ur(mi){return Array(mi+1).join(" ")}function si(){var mi=[],Ti=Ur(2);return L.forEach(function(hi){if(!!Nr.has(hi.name)){var ki=Nr.get(hi.name),Ui=Or(hi);ki!==Ui?mi.push("".concat(Ti).concat(hi.name,": ").concat(ki)):e.hasProperty(e.defaultInitCompilerOptions,hi.name)&&mi.push("".concat(Ti).concat(hi.name,": ").concat(Ui))}}),mi.join(mr)+mr}}e.getCompilerOptionsDiffValue=he;function we(We){var mr=e.extend(We,e.defaultInitCompilerOptions);return me(mr)}function ye(We,mr,Nr){var Ur=we(We);return Ti();function si(hi){return Array(hi+1).join(" ")}function mi(hi){var ki=hi.category,Ui=hi.name,zi=hi.isCommandLineOnly,ri=[e.Diagnostics.Command_line_Options,e.Diagnostics.Editor_Support,e.Diagnostics.Compiler_Diagnostics,e.Diagnostics.Backwards_Compatibility,e.Diagnostics.Watch_and_Build_Modes,e.Diagnostics.Output_Formatting];return!zi&&ki!==void 0&&(!ri.includes(ki)||Ur.has(Ui))}function Ti(){for(var hi=e.createMultiMap(),ki=0,Ui=e.optionDeclarations;ki<Ui.length;ki++){var zi=Ui[ki],ri=zi.category;mi(zi)&&hi.add(e.getLocaleSpecificMessage(ri),zi)}var Gi=0,Rt=0,pa=[];hi.forEach(function(oa,Bt){pa.length!==0&&pa.push({value:""}),pa.push({value:"/* ".concat(Bt," */")});for(var Pi=0,Oi=oa;Pi<Oi.length;Pi++){var wi=Oi[Pi],Qr=void 0;Ur.has(wi.name)?Qr='"'.concat(wi.name,'": ').concat(JSON.stringify(Ur.get(wi.name))).concat((Rt+=1)===Ur.size?"":","):Qr='// "'.concat(wi.name,'": ').concat(JSON.stringify(Or(wi)),","),pa.push({value:Qr,description:"/* ".concat(wi.description&&e.getLocaleSpecificMessage(wi.description)||wi.name," */")}),Gi=Math.max(Qr.length,Gi)}});var xt=si(2),ua=[];ua.push("{"),ua.push("".concat(xt,'"compilerOptions": {')),ua.push("".concat(xt).concat(xt,"/* ").concat(e.getLocaleSpecificMessage(e.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file)," */")),ua.push("");for(var Vt=0,St=pa;Vt<St.length;Vt++){var Ci=St[Vt],Hi=Ci.value,Yi=Ci.description,yt=Yi===void 0?"":Yi;ua.push(Hi&&"".concat(xt).concat(xt).concat(Hi).concat(yt&&si(Gi-Hi.length+2)+yt))}if(mr.length){ua.push("".concat(xt,"},")),ua.push("".concat(xt,'"files": ['));for(var gt=0;gt<mr.length;gt++)ua.push("".concat(xt).concat(xt).concat(JSON.stringify(mr[gt])).concat(gt===mr.length-1?"":","));ua.push("".concat(xt,"]"))}else ua.push("".concat(xt,"}"));return ua.push("}"),ua.join(Nr)+Nr}}e.generateTSConfig=ye;function Se(We,mr){var Nr={},Ur=Q().optionsNameMap;for(var si in We)e.hasProperty(We,si)&&(Nr[si]=ge(Ur.get(si.toLowerCase()),We[si],mr));return Nr.configFilePath&&(Nr.configFilePath=mr(Nr.configFilePath)),Nr}e.convertToOptionsWithAbsolutePaths=Se;function ge(We,mr,Nr){if(We&&!Ir(mr)){if(We.type==="list"){var Ur=mr;if(We.element.isFilePath&&Ur.length)return Ur.map(Nr)}else if(We.isFilePath)return Nr(mr)}return mr}function Fe(We,mr,Nr,Ur,si,mi,Ti,hi,ki){return Br(We,void 0,mr,Nr,Ur,ki,si,mi,Ti,hi)}e.parseJsonConfigFileContent=Fe;function cr(We,mr,Nr,Ur,si,mi,Ti,hi,ki){return Br(void 0,We,mr,Nr,Ur,ki,si,mi,Ti,hi)}e.parseJsonSourceFileConfigFileContent=cr;function ur(We,mr){mr&&Object.defineProperty(We,"configFile",{enumerable:!1,writable:!1,value:mr})}e.setConfigFileInOptions=ur;function Ir(We){return We==null}function dr(We,mr){return e.getDirectoryPath(e.getNormalizedAbsolutePath(We,mr))}function Br(We,mr,Nr,Ur,si,mi,Ti,hi,ki,Ui){si===void 0&&(si={}),hi===void 0&&(hi=[]),ki===void 0&&(ki=[]),e.Debug.assert(We===void 0&&mr!==void 0||We!==void 0&&mr===void 0);var zi=[],ri=Le(We,mr,Nr,Ur,Ti,hi,zi,Ui),Gi=ri.raw,Rt=e.extend(si,ri.options||{}),pa=mi&&ri.watchOptions?e.extend(mi,ri.watchOptions):ri.watchOptions||mi;Rt.configFilePath=Ti&&e.normalizeSlashes(Ti);var xt=Vt();mr&&(mr.configFileSpecs=xt),ur(Rt,mr);var ua=e.normalizePath(Ti?dr(Ti,Ur):Ur);return{options:Rt,watchOptions:pa,fileNames:St(ua),projectReferences:Ci(ua),typeAcquisition:ri.typeAcquisition||ei(),raw:Gi,errors:zi,wildcardDirectories:xe(xt,ua,Nr.useCaseSensitiveFileNames),compileOnSave:!!Gi.compileOnSave};function Vt(){var oa=yt("references",function(zn){return typeof zn=="object"},"object"),Bt=Hi(Yi("files"));if(Bt){var Pi=oa==="no-prop"||e.isArray(oa)&&oa.length===0,Oi=e.hasProperty(Gi,"extends");if(Bt.length===0&&Pi&&!Oi)if(mr){var wi=Ti||"tsconfig.json",Qr=e.Diagnostics.The_files_list_in_config_file_0_is_empty,Ct=e.firstDefined(e.getTsConfigPropArray(mr,"files"),function(zn){return zn.initializer}),tt=Ct?e.createDiagnosticForNodeInSourceFile(mr,Ct,Qr,wi):e.createCompilerDiagnostic(Qr,wi);zi.push(tt)}else gt(e.Diagnostics.The_files_list_in_config_file_0_is_empty,Ti||"tsconfig.json")}var ta=Hi(Yi("include")),Xa=Yi("exclude"),on=Hi(Xa);if(Xa==="no-prop"&&Gi.compilerOptions){var qr=Gi.compilerOptions.outDir,bn=Gi.compilerOptions.declarationDir;(qr||bn)&&(on=[qr,bn].filter(function(zn){return!!zn}))}Bt===void 0&&ta===void 0&&(ta=["**/*"]);var Rn,Sn;return ta&&(Rn=Me(ta,zi,!0,mr,"include")),on&&(Sn=Me(on,zi,!1,mr,"exclude")),{filesSpecs:Bt,includeSpecs:ta,excludeSpecs:on,validatedFilesSpec:e.filter(Bt,e.isString),validatedIncludeSpecs:Rn,validatedExcludeSpecs:Sn,pathPatterns:void 0}}function St(oa){var Bt=Be(xt,oa,Rt,Nr,ki);return Er(Bt,br(Gi),hi)&&zi.push(n(xt,Ti)),Bt}function Ci(oa){var Bt,Pi=yt("references",function(Ct){return typeof Ct=="object"},"object");if(e.isArray(Pi))for(var Oi=0,wi=Pi;Oi<wi.length;Oi++){var Qr=wi[Oi];typeof Qr.path!="string"?gt(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(Bt||(Bt=[])).push({path:e.getNormalizedAbsolutePath(Qr.path,oa),originalPath:Qr.path,prepend:Qr.prepend,circular:Qr.circular})}return Bt}function Hi(oa){return e.isArray(oa)?oa:void 0}function Yi(oa){return yt(oa,e.isString,"string")}function yt(oa,Bt,Pi){if(e.hasProperty(Gi,oa)&&!Ir(Gi[oa]))if(e.isArray(Gi[oa])){var Oi=Gi[oa];return!mr&&!e.every(Oi,Bt)&&zi.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,oa,Pi)),Oi}else return gt(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,oa,"Array"),"not-array";return"no-prop"}function gt(oa,Bt,Pi){mr||zi.push(e.createCompilerDiagnostic(oa,Bt,Pi))}}function Tr(We){return We.code===e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function n(We,mr){var Nr=We.includeSpecs,Ur=We.excludeSpecs;return e.createCompilerDiagnostic(e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,mr||"tsconfig.json",JSON.stringify(Nr||[]),JSON.stringify(Ur||[]))}function Er(We,mr,Nr){return We.length===0&&mr&&(!Nr||Nr.length===0)}function br(We){return!e.hasProperty(We,"files")&&!e.hasProperty(We,"references")}e.canJsonReportNoInputFiles=br;function Pr(We,mr,Nr,Ur,si){var mi=Ur.length;return Er(We,si)?Ur.push(n(Nr,mr)):e.filterMutate(Ur,function(Ti){return!Tr(Ti)}),mi!==Ur.length}e.updateErrorForNoInputFiles=Pr;function Ce(We){return!!We.options}function Le(We,mr,Nr,Ur,si,mi,Ti,hi){var ki;Ur=e.normalizeSlashes(Ur);var Ui=e.getNormalizedAbsolutePath(si||"",Ur);if(mi.indexOf(Ui)>=0)return Ti.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,qe(qe([],mi,!0),[Ui],!1).join(" -> "))),{raw:We||m(mr,Ti)};var zi=We?Xe(We,Nr,Ur,si,Ti):Cr(mr,Nr,Ur,si,Ti);if(!((ki=zi.options)===null||ki===void 0)&&ki.paths&&(zi.options.pathsBasePath=Ur),zi.extendedConfigPath){mi=mi.concat([Ui]);var ri=Jr(mr,zi.extendedConfigPath,Nr,mi,Ti,hi);if(ri&&Ce(ri)){var Gi=ri.raw,Rt=zi.raw,pa,xt=function(ua){!Rt[ua]&&Gi[ua]&&(Rt[ua]=e.map(Gi[ua],function(Vt){return e.isRootedDiskPath(Vt)?Vt:e.combinePaths(pa||(pa=e.convertToRelativePath(e.getDirectoryPath(zi.extendedConfigPath),Ur,e.createGetCanonicalFileName(Nr.useCaseSensitiveFileNames))),Vt)}))};xt("include"),xt("exclude"),xt("files"),Rt.compileOnSave===void 0&&(Rt.compileOnSave=Gi.compileOnSave),zi.options=e.assign({},ri.options,zi.options),zi.watchOptions=zi.watchOptions&&ri.watchOptions?e.assign({},ri.watchOptions,zi.watchOptions):zi.watchOptions||ri.watchOptions}}return zi}function Xe(We,mr,Nr,Ur,si){e.hasProperty(We,"excludes")&&si.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var mi=Kr(We.compilerOptions,Nr,si,Ur),Ti=li(We.typeAcquisition||We.typingOptions,Nr,si,Ur),hi=Si(We.watchOptions,Nr,si);We.compileOnSave=Rr(We,Nr,si);var ki;if(We.extends)if(!e.isString(We.extends))si.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));else{var Ui=Ur?dr(Ur,Nr):Nr;ki=Lr(We.extends,mr,Ui,si,e.createCompilerDiagnostic)}return{raw:We,options:mi,watchOptions:hi,typeAcquisition:Ti,extendedConfigPath:ki}}function Cr(We,mr,Nr,Ur,si){var mi=or(Ur),Ti,hi,ki,Ui,zi,ri={onSetValidOptionKeyValueInParent:function(Rt,pa,xt){var ua;switch(Rt){case"compilerOptions":ua=mi;break;case"watchOptions":ua=ki||(ki={});break;case"typeAcquisition":ua=Ti||(Ti=ei(Ur));break;case"typingOptions":ua=hi||(hi=ei(Ur));break;default:e.Debug.fail("Unknown option")}ua[pa.name]=bt(pa,Nr,xt)},onSetValidOptionKeyValueInRoot:function(Rt,pa,xt,ua){switch(Rt){case"extends":var Vt=Ur?dr(Ur,Nr):Nr;Ui=Lr(xt,mr,Vt,si,function(St,Ci){return e.createDiagnosticForNodeInSourceFile(We,ua,St,Ci)});return}},onSetUnknownOptionKeyValueInRoot:function(Rt,pa,xt,ua){Rt==="excludes"&&si.push(e.createDiagnosticForNodeInSourceFile(We,pa,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude)),e.find(L,function(Vt){return Vt.name===Rt})&&(zi=e.append(zi,pa))}},Gi=ce(We,si,!0,ri);return Ti||(hi?Ti=hi.enableAutoDiscovery!==void 0?{enable:hi.enableAutoDiscovery,include:hi.include,exclude:hi.exclude}:hi:Ti=ei(Ur)),zi&&Gi&&Gi.compilerOptions===void 0&&si.push(e.createDiagnosticForNodeInSourceFile(We,zi[0],e.Diagnostics._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,e.getTextOfPropertyName(zi[0]))),{raw:Gi,options:mi,watchOptions:ki,typeAcquisition:Ti,extendedConfigPath:Ui}}function Lr(We,mr,Nr,Ur,si){if(We=e.normalizeSlashes(We),e.isRootedDiskPath(We)||e.startsWith(We,"./")||e.startsWith(We,"../")){var mi=e.getNormalizedAbsolutePath(We,Nr);if(!mr.fileExists(mi)&&!e.endsWith(mi,".json")&&(mi="".concat(mi,".json"),!mr.fileExists(mi))){Ur.push(si(e.Diagnostics.File_0_not_found,We));return}return mi}var Ti=e.nodeModuleNameResolver(We,e.combinePaths(Nr,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},mr,void 0,void 0,!0);if(Ti.resolvedModule)return Ti.resolvedModule.resolvedFileName;Ur.push(si(e.Diagnostics.File_0_not_found,We))}function Jr(We,mr,Nr,Ur,si,mi){var Ti,hi=Nr.useCaseSensitiveFileNames?mr:e.toFileNameLowerCase(mr),ki,Ui,zi;if(mi&&(ki=mi.get(hi))?(Ui=ki.extendedResult,zi=ki.extendedConfig):(Ui=ee(mr,function(ri){return Nr.readFile(ri)}),Ui.parseDiagnostics.length||(zi=Le(void 0,Ui,Nr,e.getDirectoryPath(mr),e.getBaseFileName(mr),Ur,si,mi)),mi&&mi.set(hi,{extendedResult:Ui,extendedConfig:zi})),We&&(We.extendedSourceFiles=[Ui.fileName],Ui.extendedSourceFiles&&(Ti=We.extendedSourceFiles).push.apply(Ti,Ui.extendedSourceFiles)),Ui.parseDiagnostics.length){si.push.apply(si,Ui.parseDiagnostics);return}return zi}function Rr(We,mr,Nr){if(!e.hasProperty(We,e.compileOnSaveCommandLineOption.name))return!1;var Ur=ft(e.compileOnSaveCommandLineOption,We.compileOnSave,mr,Nr);return typeof Ur=="boolean"&&Ur}function ci(We,mr,Nr){var Ur=[],si=Kr(We,mr,Ur,Nr);return{options:si,errors:Ur}}e.convertCompilerOptionsFromJson=ci;function be(We,mr,Nr){var Ur=[],si=li(We,mr,Ur,Nr);return{options:si,errors:Ur}}e.convertTypeAcquisitionFromJson=be;function or(We){var mr=We&&e.getBaseFileName(We)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{};return mr}function Kr(We,mr,Nr,Ur){var si=or(Ur);return qi(w(),We,mr,si,e.compilerOptionsDidYouMeanDiagnostics,Nr),Ur&&(si.configFilePath=e.normalizeSlashes(Ur)),si}function ei(We){return{enable:!!We&&e.getBaseFileName(We)==="jsconfig.json",include:[],exclude:[]}}function li(We,mr,Nr,Ur){var si=ei(Ur),mi=F(We);return qi(y(),mi,mr,si,P,Nr),si}function Si(We,mr,Nr){return qi(U(),We,mr,void 0,_,Nr)}function qi(We,mr,Nr,Ur,si,mi){if(!!mr){for(var Ti in mr){var hi=We.get(Ti);hi?(Ur||(Ur={}))[hi.name]=ft(hi,mr[Ti],Nr,mi):mi.push(C(Ti,si,e.createCompilerDiagnostic))}return Ur}}function ft(We,mr,Nr,Ur){if(V(We,mr)){var si=We.type;if(si==="list"&&e.isArray(mr))return di(We,mr,Nr,Ur);if(!e.isString(si))return Ji(We,mr,Ur);var mi=sr(We,mr,Ur);return Ir(mi)?mi:aa(We,Nr,mi)}else Ur.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,We.name,ae(We)))}e.convertJsonOption=ft;function bt(We,mr,Nr){if(!Ir(Nr)){if(We.type==="list"){var Ur=We;return Ur.element.isFilePath||!e.isString(Ur.element.type)?e.filter(e.map(Nr,function(si){return bt(Ur.element,mr,si)}),function(si){return!!si}):Nr}else if(!e.isString(We.type))return We.type.get(e.isString(Nr)?Nr.toLowerCase():Nr);return aa(We,mr,Nr)}}function aa(We,mr,Nr){return We.isFilePath&&(Nr=e.getNormalizedAbsolutePath(Nr,mr),Nr===""&&(Nr=".")),Nr}function sr(We,mr,Nr){var Ur;if(!Ir(mr)){var si=(Ur=We.extraValidation)===null||Ur===void 0?void 0:Ur.call(We,mr);if(!si)return mr;Nr.push(e.createCompilerDiagnostic.apply(void 0,si))}}function Ji(We,mr,Nr){if(!Ir(mr)){var Ur=mr.toLowerCase(),si=We.type.get(Ur);if(si!==void 0)return sr(We,si,Nr);Nr.push(g(We))}}function di(We,mr,Nr,Ur){return e.filter(e.map(mr,function(si){return ft(We.element,si,Nr,Ur)}),function(si){return!!si})}var X=/(^|\/)\*\*\/?$/,Ye=/^[^*?]*(?=\/[^/]*[*?])/;function Be(We,mr,Nr,Ur,si){si===void 0&&(si=e.emptyArray),mr=e.normalizePath(mr);var mi=e.createGetCanonicalFileName(Ur.useCaseSensitiveFileNames),Ti=new e.Map,hi=new e.Map,ki=new e.Map,Ui=We.validatedFilesSpec,zi=We.validatedIncludeSpecs,ri=We.validatedExcludeSpecs,Gi=e.getSupportedExtensions(Nr,si),Rt=e.getSupportedExtensionsWithJsonIfResolveJsonModule(Nr,Gi);if(Ui)for(var pa=0,xt=Ui;pa<xt.length;pa++){var ua=xt[pa],Vt=e.getNormalizedAbsolutePath(ua,mr);Ti.set(mi(Vt),Vt)}var St;if(zi&&zi.length>0)for(var Ci=function(oa){if(e.fileExtensionIs(oa,".json")){if(!St){var Bt=zi.filter(function(Ct){return e.endsWith(Ct,".json")}),Pi=e.map(e.getRegularExpressionsForWildcards(Bt,mr,"files"),function(Ct){return"^".concat(Ct,"$")});St=Pi?Pi.map(function(Ct){return e.getRegexFromPattern(Ct,Ur.useCaseSensitiveFileNames)}):e.emptyArray}var Oi=e.findIndex(St,function(Ct){return Ct.test(oa)});if(Oi!==-1){var wi=mi(oa);!Ti.has(wi)&&!ki.has(wi)&&ki.set(wi,oa)}return"continue"}if(Je(oa,Ti,hi,Gi,mi))return"continue";Oe(oa,hi,Gi,mi);var Qr=mi(oa);!Ti.has(Qr)&&!hi.has(Qr)&&hi.set(Qr,oa)},Hi=0,Yi=Ur.readDirectory(mr,e.flatten(Rt),ri,zi,void 0);Hi<Yi.length;Hi++){var Vt=Yi[Hi];Ci(Vt)}var yt=e.arrayFrom(Ti.values()),gt=e.arrayFrom(hi.values());return yt.concat(gt,e.arrayFrom(ki.values()))}e.getFileNamesFromConfigSpecs=Be;function Qe(We,mr,Nr,Ur,si){var mi=mr.validatedFilesSpec,Ti=mr.validatedIncludeSpecs,hi=mr.validatedExcludeSpecs;if(!e.length(Ti)||!e.length(hi))return!1;Nr=e.normalizePath(Nr);var ki=e.createGetCanonicalFileName(Ur);if(mi)for(var Ui=0,zi=mi;Ui<zi.length;Ui++){var ri=zi[Ui];if(ki(e.getNormalizedAbsolutePath(ri,Nr))===We)return!1}return Dr(We,hi,Ur,si,Nr)}e.isExcludedFile=Qe;function _r(We){var mr=e.startsWith(We,"**/")?0:We.indexOf("/**/");if(mr===-1)return!1;var Nr=e.endsWith(We,"/..")?We.length:We.lastIndexOf("/../");return Nr>mr}function hr(We,mr,Nr,Ur){return Dr(We,e.filter(mr,function(si){return!_r(si)}),Nr,Ur)}e.matchesExclude=hr;function Dr(We,mr,Nr,Ur,si){var mi=e.getRegularExpressionForWildcard(mr,e.combinePaths(e.normalizePath(Ur),si),"exclude"),Ti=mi&&e.getRegexFromPattern(mi,Nr);return Ti?Ti.test(We)?!0:!e.hasExtension(We)&&Ti.test(e.ensureTrailingDirectorySeparator(We)):!1}function Me(We,mr,Nr,Ur,si){return We.filter(function(Ti){if(!e.isString(Ti))return!1;var hi=v(Ti,Nr);return hi!==void 0&&mr.push(mi.apply(void 0,hi)),hi===void 0});function mi(Ti,hi){var ki=e.getTsConfigPropArrayElementValue(Ur,si,hi);return ki?e.createDiagnosticForNodeInSourceFile(Ur,ki,Ti,hi):e.createCompilerDiagnostic(Ti,hi)}}function v(We,mr){if(mr&&X.test(We))return[e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,We];if(_r(We))return[e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,We]}function xe(We,mr,Nr){var Ur=We.validatedIncludeSpecs,si=We.validatedExcludeSpecs,mi=e.getRegularExpressionForWildcard(si,mr,"exclude"),Ti=mi&&new RegExp(mi,Nr?"":"i"),hi={};if(Ur!==void 0){for(var ki=[],Ui=0,zi=Ur;Ui<zi.length;Ui++){var ri=zi[Ui],Gi=e.normalizePath(e.combinePaths(mr,ri));if(!(Ti&&Ti.test(Gi))){var Rt=ze(Gi,Nr);if(Rt){var pa=Rt.key,xt=Rt.flags,ua=hi[pa];(ua===void 0||ua<xt)&&(hi[pa]=xt,xt===1&&ki.push(pa))}}}for(var pa in hi)if(e.hasProperty(hi,pa))for(var Vt=0,St=ki;Vt<St.length;Vt++){var Ci=St[Vt];pa!==Ci&&e.containsPath(Ci,pa,mr,!Nr)&&delete hi[pa]}}return hi}function ze(We,mr){var Nr=Ye.exec(We);if(Nr){var Ur=We.indexOf("?"),si=We.indexOf("*"),mi=We.lastIndexOf(e.directorySeparator);return{key:mr?Nr[0]:e.toFileNameLowerCase(Nr[0]),flags:Ur!==-1&&Ur<mi||si!==-1&&si<mi?1:0}}if(e.isImplicitGlob(We.substring(We.lastIndexOf(e.directorySeparator)+1)))return{key:mr?We:e.toFileNameLowerCase(We),flags:1}}function Je(We,mr,Nr,Ur,si){var mi=e.forEach(Ur,function(zi){return e.fileExtensionIsOneOf(We,zi)?zi:void 0});if(!mi)return!1;for(var Ti=0,hi=mi;Ti<hi.length;Ti++){var ki=hi[Ti];if(e.fileExtensionIs(We,ki))return!1;var Ui=si(e.changeExtension(We,ki));if(mr.has(Ui)||Nr.has(Ui)){if(ki===".d.ts"&&(e.fileExtensionIs(We,".js")||e.fileExtensionIs(We,".jsx")))continue;return!0}}return!1}function Oe(We,mr,Nr,Ur){var si=e.forEach(Nr,function(ki){return e.fileExtensionIsOneOf(We,ki)?ki:void 0});if(!!si)for(var mi=si.length-1;mi>=0;mi--){var Ti=si[mi];if(e.fileExtensionIs(We,Ti))return;var hi=Ur(e.changeExtension(We,Ti));mr.delete(hi)}}function Fr(We){var mr={};for(var Nr in We)if(We.hasOwnProperty(Nr)){var Ur=B(Nr);Ur!==void 0&&(mr[Nr]=Xr(We[Nr],Ur))}return mr}e.convertCompilerOptionsForTelemetry=Fr;function Xr(We,mr){switch(mr.type){case"object":return"";case"string":return"";case"number":return typeof We=="number"?We:"";case"boolean":return typeof We=="boolean"?We:"";case"list":var Nr=mr.element;return e.isArray(We)?We.map(function(Ur){return Xr(Ur,Nr)}):"";default:return e.forEachEntry(mr.type,function(Ur,si){if(Ur===We)return si})}}function Or(We){switch(We.type){case"number":return 1;case"boolean":return!0;case"string":return We.isFilePath?"./":"";case"list":return[];case"object":return{};default:var mr=We.type.keys().next();return mr.done?e.Debug.fail("Expected 'option.type' to have entries."):mr.value}}})(Pe||(Pe={}));var Pe;(function(e){function a(Be){Be.trace(e.formatMessage.apply(void 0,arguments))}e.trace=a;function O(Be,Qe){return!!Be.traceResolution&&Qe.trace!==void 0}e.isTraceEnabled=O;function L(Be,Qe){var _r;if(Qe&&Be){var hr=Be.packageJsonContent;typeof hr.name=="string"&&typeof hr.version=="string"&&(_r={name:hr.name,subModuleName:Qe.path.slice(Be.packageDirectory.length+e.directorySeparator.length),version:hr.version})}return Qe&&{path:Qe.path,extension:Qe.ext,packageId:_r}}function W(Be){return L(void 0,Be)}function N(Be){if(Be)return e.Debug.assert(Be.packageId===void 0),{path:Be.path,ext:Be.extension}}var Q;(function(Be){Be[Be.TypeScript=0]="TypeScript",Be[Be.JavaScript=1]="JavaScript",Be[Be.Json=2]="Json",Be[Be.TSConfig=3]="TSConfig",Be[Be.DtsOnly=4]="DtsOnly"})(Q||(Q={}));function pe(Be){if(!!Be)return e.Debug.assert(e.extensionIsTS(Be.extension)),{fileName:Be.path,packageId:Be.packageId}}function F(Be,Qe,_r,hr){var Dr;return hr?((Dr=hr.failedLookupLocations).push.apply(Dr,_r),hr):{resolvedModule:Be&&{resolvedFileName:Be.path,originalPath:Be.originalPath===!0?void 0:Be.originalPath,extension:Be.extension,isExternalLibraryImport:Qe,packageId:Be.packageId},failedLookupLocations:_r}}function g(Be,Qe,_r,hr){if(!e.hasProperty(Be,Qe)){hr.traceEnabled&&a(hr.host,e.Diagnostics.package_json_does_not_have_a_0_field,Qe);return}var Dr=Be[Qe];if(typeof Dr!==_r||Dr===null){hr.traceEnabled&&a(hr.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,Qe,_r,Dr===null?"null":typeof Dr);return}return Dr}function S(Be,Qe,_r,hr){var Dr=g(Be,Qe,"string",hr);if(Dr!==void 0){if(!Dr){hr.traceEnabled&&a(hr.host,e.Diagnostics.package_json_had_a_falsy_0_field,Qe);return}var Me=e.normalizePath(e.combinePaths(_r,Dr));return hr.traceEnabled&&a(hr.host,e.Diagnostics.package_json_has_0_field_1_that_references_2,Qe,Dr,Me),Me}}function H(Be,Qe,_r){return S(Be,"typings",Qe,_r)||S(Be,"types",Qe,_r)}function se(Be,Qe,_r){return S(Be,"tsconfig",Qe,_r)}function p(Be,Qe,_r){return S(Be,"main",Qe,_r)}function C(Be,Qe){var _r=g(Be,"typesVersions","object",Qe);if(_r!==void 0)return Qe.traceEnabled&&a(Qe.host,e.Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),_r}function G(Be,Qe){var _r=C(Be,Qe);if(_r!==void 0){if(Qe.traceEnabled)for(var hr in _r)e.hasProperty(_r,hr)&&!e.VersionRange.tryParse(hr)&&a(Qe.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,hr);var Dr=ue(_r);if(!Dr){Qe.traceEnabled&&a(Qe.host,e.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,e.versionMajorMinor);return}var Me=Dr.version,v=Dr.paths;if(typeof v!="object"){Qe.traceEnabled&&a(Qe.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,"typesVersions['".concat(Me,"']"),"object",typeof v);return}return Dr}}var E;function ue(Be){E||(E=new e.Version(e.version));for(var Qe in Be)if(!!e.hasProperty(Be,Qe)){var _r=e.VersionRange.tryParse(Qe);if(_r!==void 0&&_r.test(E))return{version:Qe,paths:Be[Qe]}}}e.getPackageJsonTypesVersionsPaths=ue;function B(Be,Qe){if(Be.typeRoots)return Be.typeRoots;var _r;if(Be.configFilePath?_r=e.getDirectoryPath(Be.configFilePath):Qe.getCurrentDirectory&&(_r=Qe.getCurrentDirectory()),_r!==void 0)return re(_r,Qe)}e.getEffectiveTypeRoots=B;function re(Be,Qe){if(!Qe.directoryExists)return[e.combinePaths(Be,M)];var _r;return e.forEachAncestorDirectory(e.normalizePath(Be),function(hr){var Dr=e.combinePaths(hr,M);Qe.directoryExists(Dr)&&(_r||(_r=[])).push(Dr)}),_r}var M=e.combinePaths("node_modules","@types");function x(Be,Qe,_r){var hr=typeof _r.useCaseSensitiveFileNames=="function"?_r.useCaseSensitiveFileNames():_r.useCaseSensitiveFileNames;return e.comparePaths(Be,Qe,!hr)===0}function ie(Be,Qe,_r,hr,Dr,Me){var v=O(_r,hr);Dr&&(_r=Dr.commandLine.options);var xe=Qe?e.getDirectoryPath(Qe):void 0,ze=xe?Me&&Me.getOrCreateCacheForDirectory(xe,Dr):void 0,Je=ze&&ze.get(Be,void 0);if(Je)return v&&(a(hr,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1,Be,Qe),Dr&&a(hr,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,Dr.sourceFile.fileName),a(hr,e.Diagnostics.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,Be,xe),Ti(Je)),Je;var Oe=B(_r,hr);v&&(Qe===void 0?Oe===void 0?a(hr,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,Be):a(hr,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,Be,Oe):Oe===void 0?a(hr,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,Be,Qe):a(hr,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,Be,Qe,Oe),Dr&&a(hr,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,Dr.sourceFile.fileName));var Fr=[],Xr=_e(_r),Or={compilerOptions:_r,host:hr,traceEnabled:v,failedLookupLocations:Fr,packageJsonInfoCache:Me,features:Xr,conditions:["node","require","types"]},We=hi(),mr=!0;We||(We=ki(),mr=!1);var Nr;if(We){var Ur=We.fileName,si=We.packageId,mi=_r.preserveSymlinks?Ur:ar(Ur,hr,v);Nr={primary:mr,resolvedFileName:mi,originalPath:x(Ur,mi,hr)?void 0:Ur,packageId:si,isExternalLibraryImport:me(Ur)}}return Je={resolvedTypeReferenceDirective:Nr,failedLookupLocations:Fr},ze==null||ze.set(Be,void 0,Je),v&&Ti(Je),Je;function Ti(Ui){var zi;!((zi=Ui.resolvedTypeReferenceDirective)===null||zi===void 0)&&zi.resolvedFileName?Ui.resolvedTypeReferenceDirective.packageId?a(hr,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,Be,Ui.resolvedTypeReferenceDirective.resolvedFileName,e.packageIdToString(Ui.resolvedTypeReferenceDirective.packageId),Ui.resolvedTypeReferenceDirective.primary):a(hr,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,Be,Ui.resolvedTypeReferenceDirective.resolvedFileName,Ui.resolvedTypeReferenceDirective.primary):a(hr,e.Diagnostics.Type_reference_directive_0_was_not_resolved,Be)}function hi(){if(Oe&&Oe.length)return v&&a(hr,e.Diagnostics.Resolving_with_primary_search_path_0,Oe.join(", ")),e.firstDefined(Oe,function(Ui){var zi=e.combinePaths(Ui,Be),ri=e.getDirectoryPath(zi),Gi=e.directoryProbablyExists(ri,hr);return!Gi&&v&&a(hr,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,ri),pe(cr(Q.DtsOnly,zi,!Gi,Or))});v&&a(hr,e.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function ki(){var Ui=Qe&&e.getDirectoryPath(Qe);if(Ui!==void 0){v&&a(hr,e.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,Ui);var zi;if(e.isExternalModuleNameRelative(Be)){var Gi=e.normalizePathAndParts(e.combinePaths(Ui,Be)).path;zi=gr(Q.DtsOnly,Gi,!1,Or,!0)}else{var ri=ci(Q.DtsOnly,Be,Ui,Or,void 0,void 0);zi=ri&&ri.value}return pe(zi)}else v&&a(hr,e.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}e.resolveTypeReferenceDirective=ie;function _e(Be){return e.getEmitModuleResolutionKind(Be)===e.ModuleResolutionKind.Node12?oe.Node12Default:e.getEmitModuleResolutionKind(Be)===e.ModuleResolutionKind.NodeNext?oe.NodeNextDefault:oe.None}function Y(Be,Qe,_r,hr,Dr){var Me={compilerOptions:_r,host:hr,traceEnabled:O(_r,hr),failedLookupLocations:[],packageJsonInfoCache:Dr==null?void 0:Dr.getPackageJsonInfoCache(),conditions:e.emptyArray,features:oe.None};return e.forEachAncestorDirectory(Qe,function(v){if(e.getBaseFileName(v)!=="node_modules"){var xe=e.combinePaths(v,"node_modules"),ze=e.combinePaths(xe,Be);return Br(ze,!1,Me)}})}e.resolvePackageNameToPackageJson=Y;function Z(Be,Qe){if(Be.types)return Be.types;var _r=[];if(Qe.directoryExists&&Qe.getDirectories){var hr=B(Be,Qe);if(hr)for(var Dr=0,Me=hr;Dr<Me.length;Dr++){var v=Me[Dr];if(Qe.directoryExists(v))for(var xe=0,ze=Qe.getDirectories(v);xe<ze.length;xe++){var Je=ze[xe],Oe=e.normalizePath(Je),Fr=e.combinePaths(v,Oe,"package.json"),Xr=Qe.fileExists(Fr)&&e.readJson(Fr,Qe).typings===null;if(!Xr){var Or=e.getBaseFileName(Oe);Or.charCodeAt(0)!==46&&_r.push(Or)}}}}return _r}e.getAutomaticTypeDirectiveNames=Z;function k(Be){var Qe=new e.Map,_r=new e.Map;return{getOwnMap:hr,redirectsMap:_r,getOrCreateMapOfCacheRedirects:v,clear:xe,setOwnOptions:Dr,setOwnMap:Me};function hr(){return Qe}function Dr(ze){Be=ze}function Me(ze){Qe=ze}function v(ze){if(!ze)return Qe;var Je=ze.sourceFile.path,Oe=_r.get(Je);return Oe||(Oe=!Be||e.optionsHaveModuleResolutionChanges(Be,ze.commandLine.options)?new e.Map:Qe,_r.set(Je,Oe)),Oe}function xe(){Qe.clear(),_r.clear()}}e.createCacheWithRedirects=k;function I(Be,Qe){var _r;return{getPackageJsonInfo:hr,setPackageJsonInfo:Dr,clear:Me,entries:v};function hr(xe){return _r==null?void 0:_r.get(e.toPath(xe,Be,Qe))}function Dr(xe,ze){(_r||(_r=new e.Map)).set(e.toPath(xe,Be,Qe),ze)}function Me(){_r=void 0}function v(){var xe=_r==null?void 0:_r.entries();return xe?e.arrayFrom(xe):[]}}function ne(Be,Qe,_r,hr){var Dr=Be.getOrCreateMapOfCacheRedirects(Qe),Me=Dr.get(_r);return Me||(Me=hr(),Dr.set(_r,Me)),Me}function ee(Be,Qe,_r){if(!!Be.configFile){if(Qe.redirectsMap.size===0)e.Debug.assert(!_r||_r.redirectsMap.size===0),e.Debug.assert(Qe.getOwnMap().size===0),e.Debug.assert(!_r||_r.getOwnMap().size===0),Qe.redirectsMap.set(Be.configFile.path,Qe.getOwnMap()),_r==null||_r.redirectsMap.set(Be.configFile.path,_r.getOwnMap());else{e.Debug.assert(!_r||_r.redirectsMap.size>0);var hr={sourceFile:Be.configFile,commandLine:{options:Be}};Qe.setOwnMap(Qe.getOrCreateMapOfCacheRedirects(hr)),_r==null||_r.setOwnMap(_r.getOrCreateMapOfCacheRedirects(hr))}Qe.setOwnOptions(Be),_r==null||_r.setOwnOptions(Be)}}function A(Be,Qe,_r){return{getOrCreateCacheForDirectory:Me,clear:hr,update:Dr};function hr(){_r.clear()}function Dr(v){ee(v,_r)}function Me(v,xe){var ze=e.toPath(v,Be,Qe);return ne(_r,xe,ze,function(){return f()})}}function f(){var Be=new e.Map,Qe=new e.Map,_r={get:function(Dr,Me){return Be.get(hr(Dr,Me))},set:function(Dr,Me,v){return Be.set(hr(Dr,Me),v),_r},delete:function(Dr,Me){return Be.delete(hr(Dr,Me)),_r},has:function(Dr,Me){return Be.has(hr(Dr,Me))},forEach:function(Dr){return Be.forEach(function(Me,v){var xe=Qe.get(v),ze=xe[0],Je=xe[1];return Dr(Me,ze,Je)})},size:function(){return Be.size}};return _r;function hr(Dr,Me){var v=Me===void 0?Dr:"".concat(Me,"|").concat(Dr);return Qe.set(v,[Dr,Me]),v}}e.createModeAwareCache=f;function P(Be,Qe,_r){e.Debug.assert(Qe.length===_r.length);for(var hr=f(),Dr=0;Dr<Qe.length;++Dr)hr.set(Qe[Dr],e.getModeForResolutionAtIndex(Be,Dr),_r[Dr]);return hr}e.zipToModeAwareCache=P;function D(Be,Qe,_r,hr,Dr){var Me=A(Be,Qe,hr||(hr=k(_r)));Dr||(Dr=k(_r));var v=I(Be,Qe);return Ve(Ve(Ve({},v),Me),{getOrCreateCacheForModuleName:Je,clear:xe,update:ze,getPackageJsonInfoCache:function(){return v}});function xe(){Me.clear(),Dr.clear(),v.clear()}function ze(Fr){ee(Fr,hr,Dr)}function Je(Fr,Xr,Or){return e.Debug.assert(!e.isExternalModuleNameRelative(Fr)),ne(Dr,Or,Xr===void 0?Fr:"".concat(Xr,"|").concat(Fr),Oe)}function Oe(){var Fr=new e.Map;return{get:Xr,set:Or};function Xr(mr){return Fr.get(e.toPath(mr,Be,Qe))}function Or(mr,Nr){var Ur=e.toPath(mr,Be,Qe);if(!Fr.has(Ur)){Fr.set(Ur,Nr);for(var si=Nr.resolvedModule&&(Nr.resolvedModule.originalPath||Nr.resolvedModule.resolvedFileName),mi=si&&We(Ur,si),Ti=Ur;Ti!==mi;){var hi=e.getDirectoryPath(Ti);if(hi===Ti||Fr.has(hi))break;Fr.set(hi,Nr),Ti=hi}}}function We(mr,Nr){for(var Ur=e.toPath(e.getDirectoryPath(Nr),Be,Qe),si=0,mi=Math.min(mr.length,Ur.length);si<mi&&mr.charCodeAt(si)===Ur.charCodeAt(si);)si++;if(si===mr.length&&(Ur.length===si||Ur[si]===e.directorySeparator))return mr;var Ti=e.getRootLength(mr);if(!(si<Ti)){var hi=mr.lastIndexOf(e.directorySeparator,si-1);if(hi!==-1)return mr.substr(0,Math.max(hi,Ti))}}}}e.createModuleResolutionCache=D;function l(Be,Qe,_r,hr,Dr){var Me=A(Be,Qe,Dr||(Dr=k(_r)));return hr||(hr=I(Be,Qe)),Ve(Ve(Ve({},hr),Me),{clear:v});function v(){Me.clear(),hr.clear()}}e.createTypeReferenceDirectiveResolutionCache=l;function _(Be,Qe,_r,hr){var Dr=e.getDirectoryPath(Qe),Me=_r&&_r.getOrCreateCacheForDirectory(Dr);if(!!Me)return Me.get(Be,hr)}e.resolveModuleNameFromCache=_;function J(Be,Qe,_r,hr,Dr,Me,v){var xe=O(_r,hr);Me&&(_r=Me.commandLine.options),xe&&(a(hr,e.Diagnostics.Resolving_module_0_from_1,Be,Qe),Me&&a(hr,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,Me.sourceFile.fileName));var ze=e.getDirectoryPath(Qe),Je=Dr&&Dr.getOrCreateCacheForDirectory(ze,Me),Oe=Je&&Je.get(Be,v);if(Oe)xe&&a(hr,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,Be,ze);else{var Fr=_r.moduleResolution;if(Fr===void 0){switch(e.getEmitModuleKind(_r)){case e.ModuleKind.CommonJS:Fr=e.ModuleResolutionKind.NodeJs;break;case e.ModuleKind.Node12:Fr=e.ModuleResolutionKind.Node12;break;case e.ModuleKind.NodeNext:Fr=e.ModuleResolutionKind.NodeNext;break;default:Fr=e.ModuleResolutionKind.Classic;break}xe&&a(hr,e.Diagnostics.Module_resolution_kind_is_not_specified_using_0,e.ModuleResolutionKind[Fr])}else xe&&a(hr,e.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,e.ModuleResolutionKind[Fr]);switch(e.perfLogger.logStartResolveModule(Be),Fr){case e.ModuleResolutionKind.Node12:Oe=ve(Be,Qe,_r,hr,Dr,Me,v);break;case e.ModuleResolutionKind.NodeNext:Oe=ce(Be,Qe,_r,hr,Dr,Me,v);break;case e.ModuleResolutionKind.NodeJs:Oe=Ue(Be,Qe,_r,hr,Dr,Me);break;case e.ModuleResolutionKind.Classic:Oe=di(Be,Qe,_r,hr,Dr,Me);break;default:return e.Debug.fail("Unexpected moduleResolution: ".concat(Fr))}Oe&&Oe.resolvedModule&&e.perfLogger.logInfoEvent('Module "'.concat(Be,'" resolved to "').concat(Oe.resolvedModule.resolvedFileName,'"')),e.perfLogger.logStopResolveModule(Oe&&Oe.resolvedModule?""+Oe.resolvedModule.resolvedFileName:"null"),Je&&(Je.set(Be,v,Oe),e.isExternalModuleNameRelative(Be)||Dr.getOrCreateCacheForModuleName(Be,v,Me).set(ze,Oe))}return xe&&(Oe.resolvedModule?Oe.resolvedModule.packageId?a(hr,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,Be,Oe.resolvedModule.resolvedFileName,e.packageIdToString(Oe.resolvedModule.packageId)):a(hr,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1,Be,Oe.resolvedModule.resolvedFileName):a(hr,e.Diagnostics.Module_name_0_was_not_resolved,Be)),Oe}e.resolveModuleName=J;function w(Be,Qe,_r,hr,Dr){var Me=j(Be,Qe,hr,Dr);return Me?Me.value:e.isExternalModuleNameRelative(Qe)?U(Be,Qe,_r,hr,Dr):z(Be,Qe,hr,Dr)}function j(Be,Qe,_r,hr){var Dr,Me=hr.compilerOptions,v=Me.baseUrl,xe=Me.paths,ze=Me.configFile;if(xe&&!e.pathIsRelative(Qe)){hr.traceEnabled&&(v&&a(hr.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,v,Qe),a(hr.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,Qe));var Je=e.getPathsBasePath(hr.compilerOptions,hr.host),Oe=ze!=null&&ze.configFileSpecs?(Dr=ze.configFileSpecs).pathPatterns||(Dr.pathPatterns=e.tryParsePatterns(xe)):void 0;return li(Be,Qe,Je,xe,Oe,_r,!1,hr)}}function U(Be,Qe,_r,hr,Dr){if(!!Dr.compilerOptions.rootDirs){Dr.traceEnabled&&a(Dr.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,Qe);for(var Me=e.normalizePath(e.combinePaths(_r,Qe)),v,xe,ze=0,Je=Dr.compilerOptions.rootDirs;ze<Je.length;ze++){var Oe=Je[ze],Fr=e.normalizePath(Oe);e.endsWith(Fr,e.directorySeparator)||(Fr+=e.directorySeparator);var Xr=e.startsWith(Me,Fr)&&(xe===void 0||xe.length<Fr.length);Dr.traceEnabled&&a(Dr.host,e.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,Fr,Me,Xr),Xr&&(xe=Fr,v=Oe)}if(xe){Dr.traceEnabled&&a(Dr.host,e.Diagnostics.Longest_matching_prefix_for_0_is_1,Me,xe);var Or=Me.substr(xe.length);Dr.traceEnabled&&a(Dr.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,Or,xe,Me);var We=hr(Be,Me,!e.directoryProbablyExists(_r,Dr.host),Dr);if(We)return We;Dr.traceEnabled&&a(Dr.host,e.Diagnostics.Trying_other_entries_in_rootDirs);for(var mr=0,Nr=Dr.compilerOptions.rootDirs;mr<Nr.length;mr++){var Oe=Nr[mr];if(Oe!==v){var Ur=e.combinePaths(e.normalizePath(Oe),Or);Dr.traceEnabled&&a(Dr.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,Or,Oe,Ur);var si=e.getDirectoryPath(Ur),mi=hr(Be,Ur,!e.directoryProbablyExists(si,Dr.host),Dr);if(mi)return mi}}Dr.traceEnabled&&a(Dr.host,e.Diagnostics.Module_resolution_using_rootDirs_has_failed)}}}function z(Be,Qe,_r,hr){var Dr=hr.compilerOptions.baseUrl;if(!!Dr){hr.traceEnabled&&a(hr.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,Dr,Qe);var Me=e.normalizePath(e.combinePaths(Dr,Qe));return hr.traceEnabled&&a(hr.host,e.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,Qe,Dr,Me),_r(Be,Me,!e.directoryProbablyExists(e.getDirectoryPath(Me),hr.host),hr)}}function y(Be,Qe,_r){var hr=ke(Be,Qe,_r),Dr=hr.resolvedModule,Me=hr.failedLookupLocations;if(!Dr)throw new Error("Could not resolve JS module '".concat(Be,"' starting at '").concat(Qe,"'. Looked in: ").concat(Me.join(", ")));return Dr.resolvedFileName}e.resolveJSModule=y;var oe;(function(Be){Be[Be.None=0]="None",Be[Be.Imports=2]="Imports",Be[Be.SelfName=4]="SelfName",Be[Be.Exports=8]="Exports",Be[Be.ExportsPatternTrailers=16]="ExportsPatternTrailers",Be[Be.AllFeatures=30]="AllFeatures",Be[Be.Node12Default=14]="Node12Default",Be[Be.NodeNextDefault=30]="NodeNextDefault",Be[Be.EsmMode=32]="EsmMode"})(oe||(oe={}));function ve(Be,Qe,_r,hr,Dr,Me,v){return m(oe.Node12Default,Be,Qe,_r,hr,Dr,Me,v)}function ce(Be,Qe,_r,hr,Dr,Me,v){return m(oe.NodeNextDefault,Be,Qe,_r,hr,Dr,Me,v)}function m(Be,Qe,_r,hr,Dr,Me,v,xe){var ze=e.getDirectoryPath(_r),Je=xe===e.ModuleKind.ESNext?oe.EsmMode:0;return He(Be|Je,Qe,ze,hr,Dr,Me,hr.resolveJsonModule?V:ae,v)}var de=[Q.JavaScript],ae=[Q.TypeScript,Q.JavaScript],V=qe(qe([],ae,!0),[Q.Json],!1),le=[Q.TSConfig];function ke(Be,Qe,_r){return He(oe.None,Be,Qe,{moduleResolution:e.ModuleResolutionKind.NodeJs,allowJs:!0},_r,void 0,de,void 0)}function Ue(Be,Qe,_r,hr,Dr,Me,v){return He(oe.None,Be,e.getDirectoryPath(Qe),_r,hr,Dr,v?le:_r.resolveJsonModule?V:ae,Me)}e.nodeModuleNameResolver=Ue;function He(Be,Qe,_r,hr,Dr,Me,v,xe){var ze,Je,Oe=O(hr,Dr),Fr=[],Xr={compilerOptions:hr,host:Dr,traceEnabled:Oe,failedLookupLocations:Fr,packageJsonInfoCache:Me,features:Be,conditions:Be&oe.EsmMode?["node","import","types"]:["node","require","types"]},Or=e.forEach(v,function(mr){return We(mr)});return F((ze=Or==null?void 0:Or.value)===null||ze===void 0?void 0:ze.resolved,(Je=Or==null?void 0:Or.value)===null||Je===void 0?void 0:Je.isExternalLibraryImport,Fr,Xr.resultFromCache);function We(mr){var Nr=function(Gi,Rt,pa,xt){return gr(Gi,Rt,pa,xt,!0)},Ur=w(mr,Qe,_r,Nr,Xr);if(Ur)return Ye({resolved:Ur,isExternalLibraryImport:me(Ur.path)});if(e.isExternalModuleNameRelative(Qe)){var ki=e.normalizePathAndParts(e.combinePaths(_r,Qe)),Ui=ki.path,zi=ki.parts,ri=gr(mr,Ui,!1,Xr,!0);return ri&&Ye({resolved:ri,isExternalLibraryImport:e.contains(zi,"node_modules")})}else{var si;if(Be&oe.Imports&&e.startsWith(Qe,"#")&&(si=Cr(mr,Qe,_r,Xr,Me,xe)),!si&&Be&oe.SelfName&&(si=Le(mr,Qe,_r,Xr,Me,xe)),si||(Oe&&a(Dr,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,Qe,Q[mr]),si=ci(mr,Qe,_r,Xr,Me,xe)),!si)return;var mi=si.value;if(!hr.preserveSymlinks&&mi&&!mi.originalPath){var Ti=ar(mi.path,Dr,Oe),hi=x(Ti,mi.path,Dr)?void 0:mi.path;mi=Ve(Ve({},mi),{path:Ti,originalPath:hi})}return{value:mi&&{resolved:mi,isExternalLibraryImport:!0}}}}}function ar(Be,Qe,_r){if(!Qe.realpath)return Be;var hr=e.normalizePath(Qe.realpath(Be));return _r&&a(Qe,e.Diagnostics.Resolving_real_path_for_0_result_1,Be,hr),e.Debug.assert(Qe.fileExists(hr),"".concat(Be," linked to nonexistent file ").concat(hr)),hr}function gr(Be,Qe,_r,hr,Dr){if(hr.traceEnabled&&a(hr.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,Qe,Q[Be]),!e.hasTrailingDirectorySeparator(Qe)){if(!_r){var Me=e.getDirectoryPath(Qe);e.directoryProbablyExists(Me,hr.host)||(hr.traceEnabled&&a(hr.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,Me),_r=!0)}var v=we(Be,Qe,_r,hr);if(v){var xe=Dr?Ge(v.path):void 0,ze=xe?Br(xe,!1,hr):void 0;return L(ze,v)}}if(!_r){var Je=e.directoryProbablyExists(Qe,hr.host);Je||(hr.traceEnabled&&a(hr.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,Qe),_r=!0)}return cr(Be,Qe,_r,hr,Dr)}e.nodeModulesPathPart="/node_modules/";function me(Be){return e.stringContains(Be,e.nodeModulesPathPart)}e.pathContainsNodeModules=me;function Ge(Be){var Qe=e.normalizePath(Be),_r=Qe.lastIndexOf(e.nodeModulesPathPart);if(_r!==-1){var hr=_r+e.nodeModulesPathPart.length,Dr=er(Qe,hr);return Qe.charCodeAt(hr)===64&&(Dr=er(Qe,Dr)),Qe.slice(0,Dr)}}e.parseNodeModuleFromPath=Ge;function er(Be,Qe){var _r=Be.indexOf(e.directorySeparator,Qe+1);return _r===-1?Qe:_r}function he(Be,Qe,_r,hr){return W(we(Be,Qe,_r,hr))}function we(Be,Qe,_r,hr){if(Be===Q.Json||Be===Q.TSConfig){var Dr=e.tryRemoveExtension(Qe,".json"),Me=Dr?Qe.substring(Dr.length):"";return Dr===void 0&&Be===Q.Json?void 0:ge(Dr||Qe,Be,Me,_r,hr)}if(!(hr.features&oe.EsmMode)){var v=ge(Qe,Be,"",_r,hr);if(v)return v}return ye(Be,Qe,_r,hr)}function ye(Be,Qe,_r,hr){if(e.hasJSFileExtension(Qe)||e.fileExtensionIs(Qe,".json")&&hr.compilerOptions.resolveJsonModule){var Dr=e.removeFileExtension(Qe),Me=Qe.substring(Dr.length);return hr.traceEnabled&&a(hr.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,Qe,Me),ge(Dr,Be,Me,_r,hr)}}function Se(Be,Qe,_r,hr){if((Be===Q.TypeScript||Be===Q.DtsOnly)&&e.fileExtensionIsOneOf(Qe,[".d.ts",".d.cts",".d.mts"])){var Dr=Fe(Qe,_r,hr);return Dr!==void 0?{path:Qe,ext:e.forEach([".d.ts",".d.cts",".d.mts"],function(Me){return e.fileExtensionIs(Qe,Me)?Me:void 0})}:void 0}return ye(Be,Qe,_r,hr)}function ge(Be,Qe,_r,hr,Dr){if(!hr){var Me=e.getDirectoryPath(Be);Me&&(hr=!e.directoryProbablyExists(Me,Dr.host))}switch(Qe){case Q.DtsOnly:switch(_r){case".mjs":case".mts":case".d.mts":return v(".d.mts");case".cjs":case".cts":case".d.cts":return v(".d.cts");case".json":return Be+=".json",v(".d.ts");default:return v(".d.ts")}case Q.TypeScript:switch(_r){case".mjs":case".mts":case".d.mts":return v(".mts")||v(".d.mts");case".cjs":case".cts":case".d.cts":return v(".cts")||v(".d.cts");case".json":return Be+=".json",v(".d.ts");default:return v(".ts")||v(".tsx")||v(".d.ts")}case Q.JavaScript:switch(_r){case".mjs":case".mts":case".d.mts":return v(".mjs");case".cjs":case".cts":case".d.cts":return v(".cjs");case".json":return v(".json");default:return v(".js")||v(".jsx")}case Q.TSConfig:case Q.Json:return v(".json")}function v(xe){var ze=Fe(Be+xe,hr,Dr);return ze===void 0?void 0:{path:ze,ext:xe}}}function Fe(Be,Qe,_r){if(!Qe){if(_r.host.fileExists(Be))return _r.traceEnabled&&a(_r.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,Be),Be;_r.traceEnabled&&a(_r.host,e.Diagnostics.File_0_does_not_exist,Be)}_r.failedLookupLocations.push(Be)}function cr(Be,Qe,_r,hr,Dr){Dr===void 0&&(Dr=!0);var Me=Dr?Br(Qe,_r,hr):void 0,v=Me&&Me.packageJsonContent,xe=Me&&Me.versionPaths;return L(Me,Tr(Be,Qe,_r,hr,v,xe))}function ur(Be,Qe,_r,hr,Dr){if(!Dr&&Be.resolvedEntrypoints!==void 0)return Be.resolvedEntrypoints;var Me,v=Dr?Q.JavaScript:Q.TypeScript,xe=_e(Qe),ze={compilerOptions:Qe,host:_r,traceEnabled:O(Qe,_r),failedLookupLocations:[],packageJsonInfoCache:hr==null?void 0:hr.getPackageJsonInfoCache(),conditions:["node","require","types"],features:xe},Je=Tr(v,Be.packageDirectory,!1,ze,Be.packageJsonContent,Be.versionPaths);if(Me=e.append(Me,Je==null?void 0:Je.path),xe&oe.Exports&&Be.packageJsonContent.exports)for(var Oe=0,Fr=[["node","import","types"],["node","require","types"]];Oe<Fr.length;Oe++){var Xr=Fr[Oe],Or=Ve(Ve({},ze),{failedLookupLocations:[],conditions:Xr}),We=Ir(Be,Be.packageJsonContent.exports,Or,v);if(We)for(var mr=0,Nr=We;mr<Nr.length;mr++){var Ur=Nr[mr];Me=e.appendIfUnique(Me,Ur.path)}}return Be.resolvedEntrypoints=Me||!1}e.getEntrypointsFromPackageJsonInfo=ur;function Ir(Be,Qe,_r,hr){var Dr;if(e.isArray(Qe))for(var Me=0,v=Qe;Me<v.length;Me++){var xe=v[Me];Je(xe)}else if(typeof Qe=="object"&&Qe!==null&&Pr(Qe))for(var ze in Qe)Je(Qe[ze]);else Je(Qe);return Dr;function Je(Oe){var Fr,Xr;if(typeof Oe=="string"&&e.startsWith(Oe,"./")&&Oe.indexOf("*")===-1){var Or=e.getPathComponents(Oe).slice(2);if(Or.indexOf("..")>=0||Or.indexOf(".")>=0||Or.indexOf("node_modules")>=0)return!1;var We=e.combinePaths(Be.packageDirectory,Oe),mr=e.getNormalizedAbsolutePath(We,(Xr=(Fr=_r.host).getCurrentDirectory)===null||Xr===void 0?void 0:Xr.call(Fr)),Nr=Se(hr,mr,!1,_r);if(Nr)return Dr=e.appendIfUnique(Dr,Nr,function(hi,ki){return hi.path===ki.path}),!0}else if(Array.isArray(Oe))for(var Ur=0,si=Oe;Ur<si.length;Ur++){var mi=si[Ur],Ti=Je(mi);if(Ti)return!0}else if(typeof Oe=="object"&&Oe!==null)return e.forEach(e.getOwnKeys(Oe),function(hi){if(hi==="default"||e.contains(_r.conditions,hi)||Rr(_r.conditions,hi))return Je(Oe[hi]),!0})}}function dr(Be,Qe,_r,hr){var Dr={host:_r,compilerOptions:hr,traceEnabled:O(hr,_r),failedLookupLocations:[],packageJsonInfoCache:Qe,features:0,conditions:[]},Me=e.getPathComponents(Be);for(Me.pop();Me.length>0;){var v=Br(e.getPathFromPathComponents(Me),!1,Dr);if(v)return v;Me.pop()}}e.getPackageScopeForPath=dr;function Br(Be,Qe,_r){var hr,Dr,Me,v=_r.host,xe=_r.traceEnabled,ze=e.combinePaths(Be,"package.json");if(Qe){_r.failedLookupLocations.push(ze);return}var Je=(hr=_r.packageJsonInfoCache)===null||hr===void 0?void 0:hr.getPackageJsonInfo(ze);if(Je!==void 0){if(typeof Je!="boolean")return xe&&a(v,e.Diagnostics.File_0_exists_according_to_earlier_cached_lookups,ze),Je;Je&&xe&&a(v,e.Diagnostics.File_0_does_not_exist_according_to_earlier_cached_lookups,ze),_r.failedLookupLocations.push(ze);return}var Oe=e.directoryProbablyExists(Be,v);if(Oe&&v.fileExists(ze)){var Fr=e.readJson(ze,v);xe&&a(v,e.Diagnostics.Found_package_json_at_0,ze);var Xr=G(Fr,_r),Or={packageDirectory:Be,packageJsonContent:Fr,versionPaths:Xr,resolvedEntrypoints:void 0};return(Dr=_r.packageJsonInfoCache)===null||Dr===void 0||Dr.setPackageJsonInfo(ze,Or),Or}else Oe&&xe&&a(v,e.Diagnostics.File_0_does_not_exist,ze),(Me=_r.packageJsonInfoCache)===null||Me===void 0||Me.setPackageJsonInfo(ze,Oe),_r.failedLookupLocations.push(ze)}e.getPackageJsonInfo=Br;function Tr(Be,Qe,_r,hr,Dr,Me){var v;if(Dr)switch(Be){case Q.JavaScript:case Q.Json:v=p(Dr,Qe,hr);break;case Q.TypeScript:v=H(Dr,Qe,hr)||p(Dr,Qe,hr);break;case Q.DtsOnly:v=H(Dr,Qe,hr);break;case Q.TSConfig:v=se(Dr,Qe,hr);break;default:return e.Debug.assertNever(Be)}var xe=function(We,mr,Nr,Ur){var si=Fe(mr,Nr,Ur);if(si){var mi=n(We,si);if(mi)return W(mi);Ur.traceEnabled&&a(Ur.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,si)}var Ti=We===Q.DtsOnly?Q.TypeScript:We;return gr(Ti,mr,Nr,Ur,!1)},ze=v?!e.directoryProbablyExists(e.getDirectoryPath(v),hr.host):void 0,Je=_r||!e.directoryProbablyExists(Qe,hr.host),Oe=e.combinePaths(Qe,Be===Q.TSConfig?"tsconfig":"index");if(Me&&(!v||e.containsPath(Qe,v))){var Fr=e.getRelativePathFromDirectory(Qe,v||Oe,!1);hr.traceEnabled&&a(hr.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,Me.version,e.version,Fr);var Xr=li(Be,Fr,Qe,Me.paths,void 0,xe,ze||Je,hr);if(Xr)return N(Xr.value)}var Or=v&&N(xe(Be,v,ze,hr));if(Or)return Or;if(!(hr.features&oe.EsmMode))return we(Be,Oe,Je,hr)}function n(Be,Qe){var _r=e.tryGetExtensionFromPath(Qe);return _r!==void 0&&Er(Be,_r)?{path:Qe,ext:_r}:void 0}function Er(Be,Qe){switch(Be){case Q.JavaScript:return Qe===".js"||Qe===".jsx";case Q.TSConfig:case Q.Json:return Qe===".json";case Q.TypeScript:return Qe===".ts"||Qe===".tsx"||Qe===".d.ts";case Q.DtsOnly:return Qe===".d.ts"}}function br(Be){var Qe=Be.indexOf(e.directorySeparator);return Be[0]==="@"&&(Qe=Be.indexOf(e.directorySeparator,Qe+1)),Qe===-1?{packageName:Be,rest:""}:{packageName:Be.slice(0,Qe),rest:Be.slice(Qe+1)}}e.parsePackageName=br;function Pr(Be){return e.every(e.getOwnKeys(Be),function(Qe){return e.startsWith(Qe,".")})}e.allKeysStartWithDot=Pr;function Ce(Be){return!e.some(e.getOwnKeys(Be),function(Qe){return e.startsWith(Qe,".")})}function Le(Be,Qe,_r,hr,Dr,Me){var v,xe,ze=typeof hr.host.useCaseSensitiveFileNames=="function"?hr.host.useCaseSensitiveFileNames():hr.host.useCaseSensitiveFileNames,Je=e.toPath(e.combinePaths(_r,"dummy"),(xe=(v=hr.host).getCurrentDirectory)===null||xe===void 0?void 0:xe.call(v),e.createGetCanonicalFileName(ze===void 0?!0:ze)),Oe=dr(Je,hr.packageJsonInfoCache,hr.host,hr.compilerOptions);if(!(!Oe||!Oe.packageJsonContent.exports)&&typeof Oe.packageJsonContent.name=="string"){var Fr=e.getPathComponents(Qe),Xr=e.getPathComponents(Oe.packageJsonContent.name);if(!!e.every(Xr,function(We,mr){return Fr[mr]===We})){var Or=Fr.slice(Xr.length);return Xe(Oe,Be,e.length(Or)?".".concat(e.directorySeparator).concat(Or.join(e.directorySeparator)):".",hr,Dr,Me)}}}function Xe(Be,Qe,_r,hr,Dr,Me){if(!!Be.packageJsonContent.exports){if(_r==="."){var v=void 0;if(typeof Be.packageJsonContent.exports=="string"||Array.isArray(Be.packageJsonContent.exports)||typeof Be.packageJsonContent.exports=="object"&&Ce(Be.packageJsonContent.exports)?v=Be.packageJsonContent.exports:e.hasProperty(Be.packageJsonContent.exports,".")&&(v=Be.packageJsonContent.exports["."]),v){var xe=Jr(Qe,hr,Dr,Me,_r,Be,!1);return xe(v,"",!1)}}else if(Pr(Be.packageJsonContent.exports)){if(typeof Be.packageJsonContent.exports!="object")return hr.traceEnabled&&a(hr.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,_r,Be.packageDirectory),Ye(void 0);var ze=Lr(Qe,hr,Dr,Me,_r,Be.packageJsonContent.exports,Be,!1);if(ze)return ze}return hr.traceEnabled&&a(hr.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,_r,Be.packageDirectory),Ye(void 0)}}function Cr(Be,Qe,_r,hr,Dr,Me){var v,xe;if(Qe==="#"||e.startsWith(Qe,"#/"))return hr.traceEnabled&&a(hr.host,e.Diagnostics.Invalid_import_specifier_0_has_no_possible_resolutions,Qe),Ye(void 0);var ze=typeof hr.host.useCaseSensitiveFileNames=="function"?hr.host.useCaseSensitiveFileNames():hr.host.useCaseSensitiveFileNames,Je=e.toPath(e.combinePaths(_r,"dummy"),(xe=(v=hr.host).getCurrentDirectory)===null||xe===void 0?void 0:xe.call(v),e.createGetCanonicalFileName(ze===void 0?!0:ze)),Oe=dr(Je,hr.packageJsonInfoCache,hr.host,hr.compilerOptions);if(!Oe)return hr.traceEnabled&&a(hr.host,e.Diagnostics.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,Je),Ye(void 0);if(!Oe.packageJsonContent.imports)return hr.traceEnabled&&a(hr.host,e.Diagnostics.package_json_scope_0_has_no_imports_defined,Oe.packageDirectory),Ye(void 0);var Fr=Lr(Be,hr,Dr,Me,Qe,Oe.packageJsonContent.imports,Oe,!0);return Fr||(hr.traceEnabled&&a(hr.host,e.Diagnostics.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,Qe,Oe.packageDirectory),Ye(void 0))}function Lr(Be,Qe,_r,hr,Dr,Me,v,xe){var ze=Jr(Be,Qe,_r,hr,Dr,v,xe);if(!e.endsWith(Dr,e.directorySeparator)&&Dr.indexOf("*")===-1&&e.hasProperty(Me,Dr)){var Je=Me[Dr];return ze(Je,"",!1)}for(var Oe=e.sort(e.filter(e.getOwnKeys(Me),function(Ur){return Ur.indexOf("*")!==-1||e.endsWith(Ur,"/")}),function(Ur,si){return Ur.length-si.length}),Fr=0,Xr=Oe;Fr<Xr.length;Fr++){var Or=Xr[Fr];if(Qe.features&oe.ExportsPatternTrailers&&Nr(Or,Dr)){var Je=Me[Or],We=Or.indexOf("*"),mr=Dr.substring(Or.substring(0,We).length,Dr.length-(Or.length-1-We));return ze(Je,mr,!0)}else if(e.endsWith(Or,"*")&&e.startsWith(Dr,Or.substring(0,Or.length-1))){var Je=Me[Or],mr=Dr.substring(Or.length-1);return ze(Je,mr,!0)}else if(e.startsWith(Dr,Or)){var Je=Me[Or],mr=Dr.substring(Or.length);return ze(Je,mr,!1)}}function Nr(Ur,si){if(e.endsWith(Ur,"*"))return!1;var mi=Ur.indexOf("*");return mi===-1?!1:e.startsWith(si,Ur.substring(0,mi))&&e.endsWith(si,Ur.substring(mi+1))}}function Jr(Be,Qe,_r,hr,Dr,Me,v){return xe;function xe(ze,Je,Oe){var Fr,Xr;if(typeof ze=="string"){if(!Oe&&Je.length>0&&!e.endsWith(ze,"/"))return Qe.traceEnabled&&a(Qe.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Me.packageDirectory,Dr),Ye(void 0);if(!e.startsWith(ze,"./")){if(v&&!e.startsWith(ze,"../")&&!e.startsWith(ze,"/")&&!e.isRootedDiskPath(ze)){var Or=Oe?ze.replace(/\*/g,Je):ze+Je,We=He(Qe.features,Or,Me.packageDirectory+"/",Qe.compilerOptions,Qe.host,_r,[Be],hr);return Ye(We.resolvedModule?{path:We.resolvedModule.resolvedFileName,extension:We.resolvedModule.extension,packageId:We.resolvedModule.packageId,originalPath:We.resolvedModule.originalPath}:void 0)}return Qe.traceEnabled&&a(Qe.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Me.packageDirectory,Dr),Ye(void 0)}var mr=e.pathIsRelative(ze)?e.getPathComponents(ze).slice(1):e.getPathComponents(ze),Nr=mr.slice(1);if(Nr.indexOf("..")>=0||Nr.indexOf(".")>=0||Nr.indexOf("node_modules")>=0)return Qe.traceEnabled&&a(Qe.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Me.packageDirectory,Dr),Ye(void 0);var Ur=e.combinePaths(Me.packageDirectory,ze),si=e.getPathComponents(Je);if(si.indexOf("..")>=0||si.indexOf(".")>=0||si.indexOf("node_modules")>=0)return Qe.traceEnabled&&a(Qe.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Me.packageDirectory,Dr),Ye(void 0);var mi=e.getNormalizedAbsolutePath(Oe?Ur.replace(/\*/g,Je):Ur+Je,(Xr=(Fr=Qe.host).getCurrentDirectory)===null||Xr===void 0?void 0:Xr.call(Fr));return Ye(L(Me,Se(Be,mi,!1,Qe)))}else if(typeof ze=="object"&&ze!==null)if(Array.isArray(ze)){if(!e.length(ze))return Qe.traceEnabled&&a(Qe.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Me.packageDirectory,Dr),Ye(void 0);for(var zi=0,ri=ze;zi<ri.length;zi++){var Gi=ri[zi],We=xe(Gi,Je,Oe);if(We)return We}}else{for(var Ti=0,hi=e.getOwnKeys(ze);Ti<hi.length;Ti++){var ki=hi[Ti];if(ki==="default"||Qe.conditions.indexOf(ki)>=0||Rr(Qe.conditions,ki)){var Ui=ze[ki],We=xe(Ui,Je,Oe);if(We)return We}}return}else if(ze===null)return Qe.traceEnabled&&a(Qe.host,e.Diagnostics.package_json_scope_0_explicitly_maps_specifier_1_to_null,Me.packageDirectory,Dr),Ye(void 0);return Qe.traceEnabled&&a(Qe.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Me.packageDirectory,Dr),Ye(void 0)}}function Rr(Be,Qe){if(Be.indexOf("types")===-1||!e.startsWith(Qe,"types@"))return!1;var _r=e.VersionRange.tryParse(Qe.substring(6));return _r?_r.test(e.version):!1}e.isApplicableVersionedTypesKey=Rr;function ci(Be,Qe,_r,hr,Dr,Me){return or(Be,Qe,_r,hr,!1,Dr,Me)}function be(Be,Qe,_r){return or(Q.DtsOnly,Be,Qe,_r,!0,void 0,void 0)}function or(Be,Qe,_r,hr,Dr,Me,v){var xe=Me&&Me.getOrCreateCacheForModuleName(Qe,hr.features===0?void 0:hr.features&oe.EsmMode?e.ModuleKind.ESNext:e.ModuleKind.CommonJS,v);return e.forEachAncestorDirectory(e.normalizeSlashes(_r),function(ze){if(e.getBaseFileName(ze)!=="node_modules"){var Je=Ji(xe,Qe,ze,hr);return Je||Ye(Kr(Be,Qe,ze,hr,Dr,Me,v))}})}function Kr(Be,Qe,_r,hr,Dr,Me,v){var xe=e.combinePaths(_r,"node_modules"),ze=e.directoryProbablyExists(xe,hr.host);!ze&&hr.traceEnabled&&a(hr.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,xe);var Je=Dr?void 0:ei(Be,Qe,xe,ze,hr,Me,v);if(Je)return Je;if(Be===Q.TypeScript||Be===Q.DtsOnly){var Oe=e.combinePaths(xe,"@types"),Fr=ze;return ze&&!e.directoryProbablyExists(Oe,hr.host)&&(hr.traceEnabled&&a(hr.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,Oe),Fr=!1),ei(Q.DtsOnly,qi(Qe,hr),Oe,Fr,hr,Me,v)}}function ei(Be,Qe,_r,hr,Dr,Me,v){var xe=e.normalizePath(e.combinePaths(_r,Qe)),ze=Br(xe,!hr,Dr);if(!(Dr.features&oe.Exports)&&ze){var Je=we(Be,xe,!hr,Dr);if(Je)return W(Je);var Oe=Tr(Be,xe,!hr,Dr,ze.packageJsonContent,ze.versionPaths);return L(ze,Oe)}var Fr=br(Qe),Xr=Fr.packageName,Or=Fr.rest,We=function(si,mi,Ti,hi){var ki;if(ze&&ze.packageJsonContent.exports&&hi.features&oe.Exports)return(ki=Xe(ze,si,e.combinePaths(".",Or),hi,Me,v))===null||ki===void 0?void 0:ki.value;var Ui=we(si,mi,Ti,hi)||Tr(si,mi,Ti,hi,ze&&ze.packageJsonContent,ze&&ze.versionPaths);return L(ze,Ui)};if(Or!==""){var mr=e.combinePaths(_r,Xr);if(ze=Br(mr,!hr,Dr),ze&&ze.versionPaths){Dr.traceEnabled&&a(Dr.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,ze.versionPaths.version,e.version,Or);var Nr=hr&&e.directoryProbablyExists(mr,Dr.host),Ur=li(Be,Or,mr,ze.versionPaths.paths,void 0,We,!Nr,Dr);if(Ur)return Ur.value}}return We(Be,xe,!hr,Dr)}function li(Be,Qe,_r,hr,Dr,Me,v,xe){Dr||(Dr=e.tryParsePatterns(hr));var ze=e.matchPatternOrExact(Dr,Qe);if(ze){var Je=e.isString(ze)?void 0:e.matchedText(ze,Qe),Oe=e.isString(ze)?ze:e.patternText(ze);xe.traceEnabled&&a(xe.host,e.Diagnostics.Module_name_0_matched_pattern_1,Qe,Oe);var Fr=e.forEach(hr[Oe],function(Xr){var Or=Je?Xr.replace("*",Je):Xr,We=e.normalizePath(e.combinePaths(_r,Or));xe.traceEnabled&&a(xe.host,e.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,Xr,Or);var mr=e.tryGetExtensionFromPath(Xr);if(mr!==void 0){var Nr=Fe(We,v,xe);if(Nr!==void 0)return W({path:Nr,ext:mr})}return Me(Be,We,v||!e.directoryProbablyExists(e.getDirectoryPath(We),xe.host),xe)});return{value:Fr}}}var Si="__";function qi(Be,Qe){var _r=bt(Be);return Qe.traceEnabled&&_r!==Be&&a(Qe.host,e.Diagnostics.Scoped_package_detected_looking_in_0,_r),_r}function ft(Be){return"@types/".concat(bt(Be))}e.getTypesPackageName=ft;function bt(Be){if(e.startsWith(Be,"@")){var Qe=Be.replace(e.directorySeparator,Si);if(Qe!==Be)return Qe.slice(1)}return Be}e.mangleScopedPackageName=bt;function aa(Be){var Qe=e.removePrefix(Be,"@types/");return Qe!==Be?sr(Qe):Be}e.getPackageNameFromTypesPackageName=aa;function sr(Be){return e.stringContains(Be,Si)?"@"+Be.replace(Si,e.directorySeparator):Be}e.unmangleScopedPackageName=sr;function Ji(Be,Qe,_r,hr){var Dr=Be&&Be.get(_r);if(Dr)return hr.traceEnabled&&a(hr.host,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,Qe,_r),hr.resultFromCache=Dr,{value:Dr.resolvedModule&&{path:Dr.resolvedModule.resolvedFileName,originalPath:Dr.resolvedModule.originalPath||!0,extension:Dr.resolvedModule.extension,packageId:Dr.resolvedModule.packageId}}}function di(Be,Qe,_r,hr,Dr,Me){var v=O(_r,hr),xe=[],ze={compilerOptions:_r,host:hr,traceEnabled:v,failedLookupLocations:xe,packageJsonInfoCache:Dr,features:oe.None,conditions:[]},Je=e.getDirectoryPath(Qe),Oe=Fr(Q.TypeScript)||Fr(Q.JavaScript);return F(Oe&&Oe.value,!1,xe,ze.resultFromCache);function Fr(Xr){var Or=w(Xr,Be,Je,he,ze);if(Or)return{value:Or};if(e.isExternalModuleNameRelative(Be)){var Nr=e.normalizePath(e.combinePaths(Je,Be));return Ye(he(Xr,Nr,!1,ze))}else{var We=Dr&&Dr.getOrCreateCacheForModuleName(Be,void 0,Me),mr=e.forEachAncestorDirectory(Je,function(Ur){var si=Ji(We,Be,Ur,ze);if(si)return si;var mi=e.normalizePath(e.combinePaths(Ur,Be));return Ye(he(Xr,mi,!1,ze))});if(mr)return mr;if(Xr===Q.TypeScript)return be(Be,Je,ze)}}}e.classicNameResolver=di;function X(Be,Qe,_r,hr,Dr,Me){var v=O(_r,hr);v&&a(hr,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,Qe,Be,Dr);var xe=[],ze={compilerOptions:_r,host:hr,traceEnabled:v,failedLookupLocations:xe,packageJsonInfoCache:Me,features:oe.None,conditions:[]},Je=Kr(Q.DtsOnly,Be,Dr,ze,!1,void 0,void 0);return F(Je,!0,xe,ze.resultFromCache)}e.loadModuleFromGlobalCache=X;function Ye(Be){return Be!==void 0?{value:Be}:void 0}})(Pe||(Pe={}));var Pe;(function(e){var a;(function(E){E[E.NonInstantiated=0]="NonInstantiated",E[E.Instantiated=1]="Instantiated",E[E.ConstEnumOnly=2]="ConstEnumOnly"})(a=e.ModuleInstanceState||(e.ModuleInstanceState={}));function O(E,ue){return E.body&&!E.body.parent&&(e.setParent(E.body,E),e.setParentRecursive(E.body,!1)),E.body?L(E.body,ue):1}e.getModuleInstanceState=O;function L(E,ue){ue===void 0&&(ue=new e.Map);var B=e.getNodeId(E);if(ue.has(B))return ue.get(B)||0;ue.set(B,void 0);var re=W(E,ue);return ue.set(B,re),re}function W(E,ue){switch(E.kind){case 257:case 258:return 0;case 259:if(e.isEnumConst(E))return 2;break;case 265:case 264:if(!e.hasSyntacticModifier(E,1))return 0;break;case 271:var B=E;if(!B.moduleSpecifier&&B.exportClause&&B.exportClause.kind===272){for(var re=0,M=0,x=B.exportClause.elements;M<x.length;M++){var ie=x[M],_e=N(ie,ue);if(_e>re&&(re=_e),re===1)return re}return re}break;case 261:{var Y=0;return e.forEachChild(E,function(Z){var k=L(Z,ue);switch(k){case 0:return;case 2:Y=2;return;case 1:return Y=1,!0;default:e.Debug.assertNever(k)}}),Y}case 260:return O(E,ue);case 79:if(E.isInJSDocNamespace)return 0}return 1}function N(E,ue){for(var B=E.propertyName||E.name,re=E.parent;re;){if(e.isBlock(re)||e.isModuleBlock(re)||e.isSourceFile(re)){for(var M=re.statements,x=void 0,ie=0,_e=M;ie<_e.length;ie++){var Y=_e[ie];if(e.nodeHasName(Y,B)){Y.parent||(e.setParent(Y,re),e.setParentRecursive(Y,!1));var Z=L(Y,ue);if((x===void 0||Z>x)&&(x=Z),x===1)return x}}if(x!==void 0)return x}re=re.parent}return 1}var Q;(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.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor"})(Q||(Q={}));function pe(E){return e.Debug.attachFlowNodeDebugInfo(E),E}var F=S();function g(E,ue){e.performance.mark("beforeBind"),e.perfLogger.logStartBindFile(""+E.fileName),F(E,ue),e.perfLogger.logStopBindFile(),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind")}e.bindSourceFile=g;function S(){var E,ue,B,re,M,x,ie,_e,Y,Z,k,I,ne,ee,A,f,P,D,l,_,J,w,j=!1,U=0,z,y,oe={flags:1},ve={flags:1},ce=Oe();function m(De,zr,xi,et,je){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(De)||E,De,zr,xi,et,je)}function de(De,zr){E=De,ue=zr,B=e.getEmitScriptTarget(ue),w=ae(E,zr),y=new e.Set,U=0,z=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(oe),e.Debug.attachFlowNodeDebugInfo(ve),E.locals||(e.tracing===null||e.tracing===void 0||e.tracing.push("bind","bindSourceFile",{path:E.path},!0),rn(E),e.tracing===null||e.tracing===void 0||e.tracing.pop(),E.symbolCount=U,E.classifiableNames=y,Pi()),E=void 0,ue=void 0,B=void 0,re=void 0,M=void 0,x=void 0,ie=void 0,_e=void 0,Y=void 0,Z=!1,k=void 0,I=void 0,ne=void 0,ee=void 0,A=void 0,f=void 0,P=void 0,l=void 0,_=!1,j=!1,J=0}return de;function ae(De,zr){return e.getStrictOptionValue(zr,"alwaysStrict")&&!De.isDeclarationFile?!0:!!De.externalModuleIndicator}function V(De,zr){return U++,new z(De,zr)}function le(De,zr,xi){De.flags|=xi,zr.symbol=De,De.declarations=e.appendIfUnique(De.declarations,zr),xi&1955&&!De.exports&&(De.exports=e.createSymbolTable()),xi&6240&&!De.members&&(De.members=e.createSymbolTable()),De.constEnumOnlyModule&&De.flags&304&&(De.constEnumOnlyModule=!1),xi&111551&&e.setValueDeclaration(De,zr)}function ke(De){if(De.kind===270)return De.isExportEquals?"export=":"default";var zr=e.getNameOfDeclaration(De);if(zr){if(e.isAmbientModule(De)){var xi=e.getTextOfIdentifierOrLiteral(zr);return e.isGlobalScopeAugmentation(De)?"__global":'"'.concat(xi,'"')}if(zr.kind===161){var et=zr.expression;if(e.isStringOrNumericLiteralLike(et))return e.escapeLeadingUnderscores(et.text);if(e.isSignedNumericLiteral(et))return e.tokenToString(et.operator)+et.operand.text;e.Debug.fail("Only computed properties with literal names have declaration names")}if(e.isPrivateIdentifier(zr)){var je=e.getContainingClass(De);if(!je)return;var ti=je.symbol;return e.getSymbolNameForPrivateIdentifier(ti,zr.escapedText)}return e.isPropertyNameLiteral(zr)?e.getEscapedTextOfIdentifierOrLiteral(zr):void 0}switch(De.kind){case 170:return"__constructor";case 178:case 173:case 321:return"__call";case 179:case 174:return"__new";case 175:return"__index";case 271:return"__export";case 303:return"export=";case 220:if(e.getAssignmentDeclarationKind(De)===2)return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 315:return e.isJSDocConstructSignature(De)?"__new":"__call";case 163:e.Debug.assert(De.parent.kind===315,"Impossible parameter parent kind",function(){return"parent is: ".concat(e.SyntaxKind?e.SyntaxKind[De.parent.kind]:De.parent.kind,", expected JSDocFunctionType")});var mt=De.parent,Zt=mt.parameters.indexOf(De);return"arg"+Zt}}function Ue(De){return e.isNamedDeclaration(De)?e.declarationNameToString(De.name):e.unescapeLeadingUnderscores(e.Debug.checkDefined(ke(De)))}function He(De,zr,xi,et,je,ti,mt){e.Debug.assert(mt||!e.hasDynamicName(xi));var Zt=e.hasSyntacticModifier(xi,512)||e.isExportSpecifier(xi)&&xi.name.escapedText==="default",ln=mt?"__computed":Zt&&zr?"default":ke(xi),Ba;if(ln===void 0)Ba=V(0,"__missing");else if(Ba=De.get(ln),et&2885600&&y.add(ln),!Ba)De.set(ln,Ba=V(0,ln)),ti&&(Ba.isReplaceableByMethod=!0);else{if(ti&&!Ba.isReplaceableByMethod)return Ba;if(Ba.flags&je){if(Ba.isReplaceableByMethod)De.set(ln,Ba=V(0,ln));else if(!(et&3&&Ba.flags&67108864)){e.isNamedDeclaration(xi)&&e.setParent(xi.name,xi);var Oo=Ba.flags&2?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,jr=!0;(Ba.flags&384||et&384)&&(Oo=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,jr=!1);var is=!1;e.length(Ba.declarations)&&(Zt||Ba.declarations&&Ba.declarations.length&&xi.kind===270&&!xi.isExportEquals)&&(Oo=e.Diagnostics.A_module_cannot_have_multiple_default_exports,jr=!1,is=!0);var hc=[];e.isTypeAliasDeclaration(xi)&&e.nodeIsMissing(xi.type)&&e.hasSyntacticModifier(xi,1)&&Ba.flags&2887656&&hc.push(m(xi,e.Diagnostics.Did_you_mean_0,"export type { ".concat(e.unescapeLeadingUnderscores(xi.name.escapedText)," }")));var nc=e.getNameOfDeclaration(xi)||xi;e.forEach(Ba.declarations,function(Xs,rc){var uu=e.getNameOfDeclaration(Xs)||Xs,Bc=m(uu,Oo,jr?Ue(Xs):void 0);E.bindDiagnostics.push(is?e.addRelatedInfo(Bc,m(nc,rc===0?e.Diagnostics.Another_export_default_is_here:e.Diagnostics.and_here)):Bc),is&&hc.push(m(uu,e.Diagnostics.The_first_export_default_is_here))});var ns=m(nc,Oo,jr?Ue(xi):void 0);E.bindDiagnostics.push(e.addRelatedInfo.apply(void 0,qe([ns],hc,!1))),Ba=V(0,ln)}}}return le(Ba,xi,et),Ba.parent?e.Debug.assert(Ba.parent===zr,"Existing symbol parent should match new one"):Ba.parent=zr,Ba}function ar(De,zr,xi){var et=!!(e.getCombinedModifierFlags(De)&1)||gr(De);if(zr&2097152)return De.kind===274||De.kind===264&&et?He(M.symbol.exports,M.symbol,De,zr,xi):He(M.locals,void 0,De,zr,xi);if(e.isJSDocTypeAlias(De)&&e.Debug.assert(e.isInJSFile(De)),!e.isAmbientModule(De)&&(et||M.flags&64)){if(!M.locals||e.hasSyntacticModifier(De,512)&&!ke(De))return He(M.symbol.exports,M.symbol,De,zr,xi);var je=zr&111551?1048576:0,ti=He(M.locals,void 0,De,je,xi);return ti.exportSymbol=He(M.symbol.exports,M.symbol,De,zr,xi),De.localSymbol=ti,ti}else return He(M.locals,void 0,De,zr,xi)}function gr(De){if(De.parent&&e.isModuleDeclaration(De)&&(De=De.parent),!e.isJSDocTypeAlias(De))return!1;if(!e.isJSDocEnumTag(De)&&!!De.fullName)return!0;var zr=e.getNameOfDeclaration(De);return zr?!!(e.isPropertyAccessEntityNameExpression(zr.parent)&&In(zr.parent)||e.isDeclaration(zr.parent)&&e.getCombinedModifierFlags(zr.parent)&1):!1}function me(De,zr){var xi=M,et=x,je=ie;if(zr&1?(De.kind!==213&&(x=M),M=ie=De,zr&32&&(M.locals=e.createSymbolTable()),Gi(M)):zr&2&&(ie=De,ie.locals=void 0),zr&4){var ti=k,mt=I,Zt=ne,ln=ee,Ba=P,Oo=l,jr=_,is=zr&16&&!e.hasSyntacticModifier(De,256)&&!De.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(De);is||(k=pe({flags:2}),zr&144&&(k.node=De)),ee=is||De.kind===170||De.kind===169||e.isInJSFile(De)&&(De.kind===255||De.kind===212)?dr():void 0,P=void 0,I=void 0,ne=void 0,l=void 0,_=!1,we(De),De.flags&=-2817,!(k.flags&1)&&zr&8&&e.nodeIsPresent(De.body)&&(De.flags|=256,_&&(De.flags|=512),De.endFlowNode=k),De.kind===303&&(De.flags|=J,De.endFlowNode=k),ee&&(Er(ee,k),k=Xe(ee),(De.kind===170||De.kind===169||e.isInJSFile(De)&&(De.kind===255||De.kind===212))&&(De.returnFlowNode=k)),is||(k=ti),I=mt,ne=Zt,ee=ln,P=Ba,l=Oo,_=jr}else zr&64?(Z=!1,we(De),De.flags=Z?De.flags|128:De.flags&-129):we(De);M=xi,x=et,ie=je}function Ge(De){er(De,function(zr){return zr.kind===255?rn(zr):void 0}),er(De,function(zr){return zr.kind!==255?rn(zr):void 0})}function er(De,zr){zr===void 0&&(zr=rn),De!==void 0&&e.forEach(De,zr)}function he(De){e.forEachChild(De,rn,er)}function we(De){var zr=j;if(j=!1,co(De)){he(De),Do(De),j=zr;return}switch(De.kind>=236&&De.kind<=252&&!ue.allowUnreachableCode&&(De.flowNode=k),De.kind){case 240:ei(De);break;case 239:li(De);break;case 241:Si(De);break;case 242:case 243:qi(De);break;case 238:ft(De);break;case 246:case 250:bt(De);break;case 245:case 244:Ji(De);break;case 251:di(De);break;case 248:X(De);break;case 262:Ye(De);break;case 288:Be(De);break;case 237:Qe(De);break;case 249:hr(De);break;case 218:xe(De);break;case 219:ze(De);break;case 220:if(e.isDestructuringAssignment(De)){j=zr,Je(De);return}ce(De);break;case 214:Fr(De);break;case 221:Xr(De);break;case 253:We(De);break;case 205:case 206:Ui(De);break;case 207:zi(De);break;case 229:ki(De);break;case 343:case 336:case 337:Nr(De);break;case 303:{Ge(De.statements),rn(De.endOfFileToken);break}case 234:case 261:Ge(De.statements);break;case 202:mr(De);break;case 204:case 203:case 294:case 224:j=zr;default:he(De);break}Do(De),j=zr}function ye(De){switch(De.kind){case 79:case 80:case 108:case 205:case 206:return ge(De);case 207:return Fe(De);case 211:case 229:return ye(De.expression);case 220:return ur(De);case 218:return De.operator===53&&ye(De.operand);case 215:return ye(De.expression)}return!1}function Se(De){return e.isDottedName(De)||(e.isPropertyAccessExpression(De)||e.isNonNullExpression(De)||e.isParenthesizedExpression(De))&&Se(De.expression)||e.isBinaryExpression(De)&&De.operatorToken.kind===27&&Se(De.right)||e.isElementAccessExpression(De)&&e.isStringOrNumericLiteralLike(De.argumentExpression)&&Se(De.expression)||e.isAssignmentExpression(De)&&Se(De.left)}function ge(De){return Se(De)||e.isOptionalChain(De)&&ge(De.expression)}function Fe(De){if(De.arguments)for(var zr=0,xi=De.arguments;zr<xi.length;zr++){var et=xi[zr];if(ge(et))return!0}return!!(De.expression.kind===205&&ge(De.expression.expression))}function cr(De,zr){return e.isTypeOfExpression(De)&&Ir(De.expression)&&e.isStringLiteralLike(zr)}function ur(De){switch(De.operatorToken.kind){case 63:case 75:case 76:case 77:return ge(De.left);case 34:case 35:case 36:case 37:return Ir(De.left)||Ir(De.right)||cr(De.right,De.left)||cr(De.left,De.right);case 102:return Ir(De.left);case 101:return ye(De.right);case 27:return ye(De.right)}return!1}function Ir(De){switch(De.kind){case 211:return Ir(De.expression);case 220:switch(De.operatorToken.kind){case 63:return Ir(De.left);case 27:return Ir(De.right)}}return ge(De)}function dr(){return pe({flags:4,antecedents:void 0})}function Br(){return pe({flags:8,antecedents:void 0})}function Tr(De,zr,xi){return pe({flags:1024,target:De,antecedents:zr,antecedent:xi})}function n(De){De.flags|=De.flags&2048?4096:2048}function Er(De,zr){!(zr.flags&1)&&!e.contains(De.antecedents,zr)&&((De.antecedents||(De.antecedents=[])).push(zr),n(zr))}function br(De,zr,xi){return zr.flags&1?zr:xi?(xi.kind===110&&De&64||xi.kind===95&&De&32)&&!e.isExpressionOfOptionalChainRoot(xi)&&!e.isNullishCoalesce(xi.parent)?oe:ye(xi)?(n(zr),pe({flags:De,antecedent:zr,node:xi})):zr:De&32?zr:oe}function Pr(De,zr,xi,et){return n(De),pe({flags:128,antecedent:De,switchStatement:zr,clauseStart:xi,clauseEnd:et})}function Ce(De,zr,xi){n(zr);var et=pe({flags:De,antecedent:zr,node:xi});return P&&Er(P,et),et}function Le(De,zr){return n(De),pe({flags:512,antecedent:De,node:zr})}function Xe(De){var zr=De.antecedents;return zr?zr.length===1?zr[0]:De:oe}function Cr(De){var zr=De.parent;switch(zr.kind){case 238:case 240:case 239:return zr.expression===De;case 241:case 221:return zr.condition===De}return!1}function Lr(De){for(;;)if(De.kind===211)De=De.expression;else if(De.kind===218&&De.operator===53)De=De.operand;else return De.kind===220&&(De.operatorToken.kind===55||De.operatorToken.kind===56||De.operatorToken.kind===60)}function Jr(De){return De=e.skipParentheses(De),e.isBinaryExpression(De)&&e.isLogicalOrCoalescingAssignmentOperator(De.operatorToken.kind)}function Rr(De){for(;e.isParenthesizedExpression(De.parent)||e.isPrefixUnaryExpression(De.parent)&&De.parent.operator===53;)De=De.parent;return!Cr(De)&&!Jr(De.parent)&&!Lr(De.parent)&&!(e.isOptionalChain(De.parent)&&De.parent.expression===De)}function ci(De,zr,xi,et){var je=A,ti=f;A=xi,f=et,De(zr),A=je,f=ti}function be(De,zr,xi){ci(rn,De,zr,xi),(!De||!Jr(De)&&!Lr(De)&&!(e.isOptionalChain(De)&&e.isOutermostOptionalChain(De)))&&(Er(zr,br(32,k,De)),Er(xi,br(64,k,De)))}function or(De,zr,xi){var et=I,je=ne;I=zr,ne=xi,rn(De),I=et,ne=je}function Kr(De,zr){for(var xi=l;xi&&De.parent.kind===249;)xi.continueTarget=zr,xi=xi.next,De=De.parent;return zr}function ei(De){var zr=Kr(De,Br()),xi=dr(),et=dr();Er(zr,k),k=zr,be(De.expression,xi,et),k=Xe(xi),or(De.statement,et,zr),Er(zr,k),k=Xe(et)}function li(De){var zr=Br(),xi=Kr(De,dr()),et=dr();Er(zr,k),k=zr,or(De.statement,et,xi),Er(xi,k),k=Xe(xi),be(De.expression,zr,et),k=Xe(et)}function Si(De){var zr=Kr(De,Br()),xi=dr(),et=dr();rn(De.initializer),Er(zr,k),k=zr,be(De.condition,xi,et),k=Xe(xi),or(De.statement,et,zr),rn(De.incrementor),Er(zr,k),k=Xe(et)}function qi(De){var zr=Kr(De,Br()),xi=dr();rn(De.expression),Er(zr,k),k=zr,De.kind===243&&rn(De.awaitModifier),Er(xi,k),rn(De.initializer),De.initializer.kind!==254&&Me(De.initializer),or(De.statement,xi,zr),Er(zr,k),k=Xe(xi)}function ft(De){var zr=dr(),xi=dr(),et=dr();be(De.expression,zr,xi),k=Xe(zr),rn(De.thenStatement),Er(et,k),k=Xe(xi),rn(De.elseStatement),Er(et,k),k=Xe(et)}function bt(De){rn(De.expression),De.kind===246&&(_=!0,ee&&Er(ee,k)),k=oe}function aa(De){for(var zr=l;zr;zr=zr.next)if(zr.name===De)return zr}function sr(De,zr,xi){var et=De.kind===245?zr:xi;et&&(Er(et,k),k=oe)}function Ji(De){if(rn(De.label),De.label){var zr=aa(De.label.escapedText);zr&&(zr.referenced=!0,sr(De,zr.breakTarget,zr.continueTarget))}else sr(De,I,ne)}function di(De){var zr=ee,xi=P,et=dr(),je=dr(),ti=dr();if(De.finallyBlock&&(ee=je),Er(ti,k),P=ti,rn(De.tryBlock),Er(et,k),De.catchClause&&(k=Xe(ti),ti=dr(),Er(ti,k),P=ti,rn(De.catchClause),Er(et,k)),ee=zr,P=xi,De.finallyBlock){var mt=dr();mt.antecedents=e.concatenate(e.concatenate(et.antecedents,ti.antecedents),je.antecedents),k=mt,rn(De.finallyBlock),k.flags&1?k=oe:(ee&&je.antecedents&&Er(ee,Tr(mt,je.antecedents,k)),P&&ti.antecedents&&Er(P,Tr(mt,ti.antecedents,k)),k=et.antecedents?Tr(mt,et.antecedents,k):oe)}else k=Xe(et)}function X(De){var zr=dr();rn(De.expression);var xi=I,et=D;I=zr,D=k,rn(De.caseBlock),Er(zr,k);var je=e.forEach(De.caseBlock.clauses,function(ti){return ti.kind===289});De.possiblyExhaustive=!je&&!zr.antecedents,je||Er(zr,Pr(D,De,0,0)),I=xi,D=et,k=Xe(zr)}function Ye(De){for(var zr=De.clauses,xi=ye(De.parent.expression),et=oe,je=0;je<zr.length;je++){for(var ti=je;!zr[je].statements.length&&je+1<zr.length;)rn(zr[je]),je++;var mt=dr();Er(mt,xi?Pr(D,De.parent,ti,je+1):D),Er(mt,et),k=Xe(mt);var Zt=zr[je];rn(Zt),et=k,!(k.flags&1)&&je!==zr.length-1&&ue.noFallthroughCasesInSwitch&&(Zt.fallthroughFlowNode=k)}}function Be(De){var zr=k;k=D,rn(De.expression),k=zr,er(De.statements)}function Qe(De){rn(De.expression),_r(De.expression)}function _r(De){if(De.kind===207){var zr=De;zr.expression.kind!==106&&e.isDottedName(zr.expression)&&(k=Le(k,zr))}}function hr(De){var zr=dr();l={next:l,name:De.label.escapedText,breakTarget:zr,continueTarget:void 0,referenced:!1},rn(De.label),rn(De.statement),!l.referenced&&!ue.allowUnusedLabels&&ro(e.unusedLabelIsError(ue),De.label,e.Diagnostics.Unused_label),l=l.next,Er(zr,k),k=Xe(zr)}function Dr(De){De.kind===220&&De.operatorToken.kind===63?Me(De.left):Me(De)}function Me(De){if(Se(De))k=Ce(16,k,De);else if(De.kind===203)for(var zr=0,xi=De.elements;zr<xi.length;zr++){var et=xi[zr];et.kind===224?Me(et.expression):Dr(et)}else if(De.kind===204)for(var je=0,ti=De.properties;je<ti.length;je++){var mt=ti[je];mt.kind===294?Dr(mt.initializer):mt.kind===295?Me(mt.name):mt.kind===296&&Me(mt.expression)}}function v(De,zr,xi){var et=dr();De.operatorToken.kind===55||De.operatorToken.kind===76?be(De.left,et,xi):be(De.left,zr,et),k=Xe(et),rn(De.operatorToken),e.isLogicalOrCoalescingAssignmentOperator(De.operatorToken.kind)?(ci(rn,De.right,zr,xi),Me(De.left),Er(zr,br(32,k,De)),Er(xi,br(64,k,De))):be(De.right,zr,xi)}function xe(De){if(De.operator===53){var zr=A;A=f,f=zr,he(De),f=A,A=zr}else he(De),(De.operator===45||De.operator===46)&&Me(De.operand)}function ze(De){he(De),(De.operator===45||De.operator===46)&&Me(De.operand)}function Je(De){j?(j=!1,rn(De.operatorToken),rn(De.right),j=!0,rn(De.left)):(j=!0,rn(De.left),j=!1,rn(De.operatorToken),rn(De.right)),Me(De.left)}function Oe(){return e.createBinaryExpressionTrampoline(De,zr,xi,et,je,void 0);function De(mt,Zt){if(Zt){Zt.stackIndex++,e.setParent(mt,re);var ln=w;Qn(mt);var Ba=re;re=mt,Zt.skip=!1,Zt.inStrictModeStack[Zt.stackIndex]=ln,Zt.parentStack[Zt.stackIndex]=Ba}else Zt={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};var Oo=mt.operatorToken.kind;if(Oo===55||Oo===56||Oo===60||e.isLogicalOrCoalescingAssignmentOperator(Oo)){if(Rr(mt)){var jr=dr();v(mt,jr,jr),k=Xe(jr)}else v(mt,A,f);Zt.skip=!0}return Zt}function zr(mt,Zt,ln){if(!Zt.skip){var Ba=ti(mt);return ln.operatorToken.kind===27&&_r(mt),Ba}}function xi(mt,Zt,ln){Zt.skip||rn(mt)}function et(mt,Zt,ln){if(!Zt.skip){var Ba=ti(mt);return ln.operatorToken.kind===27&&_r(mt),Ba}}function je(mt,Zt){if(!Zt.skip){var ln=mt.operatorToken.kind;if(e.isAssignmentOperator(ln)&&!e.isAssignmentTarget(mt)&&(Me(mt.left),ln===63&&mt.left.kind===206)){var Ba=mt.left;Ir(Ba.expression)&&(k=Ce(256,k,mt))}}var Oo=Zt.inStrictModeStack[Zt.stackIndex],jr=Zt.parentStack[Zt.stackIndex];Oo!==void 0&&(w=Oo),jr!==void 0&&(re=jr),Zt.skip=!1,Zt.stackIndex--}function ti(mt){if(mt&&e.isBinaryExpression(mt)&&!e.isDestructuringAssignment(mt))return mt;rn(mt)}}function Fr(De){he(De),De.expression.kind===205&&Me(De.expression)}function Xr(De){var zr=dr(),xi=dr(),et=dr();be(De.condition,zr,xi),k=Xe(zr),rn(De.questionToken),rn(De.whenTrue),Er(et,k),k=Xe(xi),rn(De.colonToken),rn(De.whenFalse),Er(et,k),k=Xe(et)}function Or(De){var zr=e.isOmittedExpression(De)?void 0:De.name;if(e.isBindingPattern(zr))for(var xi=0,et=zr.elements;xi<et.length;xi++){var je=et[xi];Or(je)}else k=Ce(16,k,De)}function We(De){he(De),(De.initializer||e.isForInOrOfStatement(De.parent.parent))&&Or(De)}function mr(De){e.isBindingPattern(De.name)?(er(De.decorators),er(De.modifiers),rn(De.dotDotDotToken),rn(De.propertyName),rn(De.initializer),rn(De.name)):he(De)}function Nr(De){rn(De.tagName),De.kind!==337&&De.fullName&&(e.setParent(De.fullName,De),e.setParentRecursive(De.fullName,!1)),typeof De.comment!="string"&&er(De.comment)}function Ur(De){he(De);var zr=e.getHostSignatureFromJSDoc(De);zr&&zr.kind!==168&&le(zr.symbol,zr,32)}function si(De,zr,xi){ci(rn,De,zr,xi),(!e.isOptionalChain(De)||e.isOutermostOptionalChain(De))&&(Er(zr,br(32,k,De)),Er(xi,br(64,k,De)))}function mi(De){switch(De.kind){case 205:rn(De.questionDotToken),rn(De.name);break;case 206:rn(De.questionDotToken),rn(De.argumentExpression);break;case 207:rn(De.questionDotToken),er(De.typeArguments),er(De.arguments);break}}function Ti(De,zr,xi){var et=e.isOptionalChainRoot(De)?dr():void 0;si(De.expression,et||zr,xi),et&&(k=Xe(et)),ci(mi,De,zr,xi),e.isOutermostOptionalChain(De)&&(Er(zr,br(32,k,De)),Er(xi,br(64,k,De)))}function hi(De){if(Rr(De)){var zr=dr();Ti(De,zr,zr),k=Xe(zr)}else Ti(De,A,f)}function ki(De){e.isOptionalChain(De)?hi(De):he(De)}function Ui(De){e.isOptionalChain(De)?hi(De):he(De)}function zi(De){if(e.isOptionalChain(De))hi(De);else{var zr=e.skipParentheses(De.expression);zr.kind===212||zr.kind===213?(er(De.typeArguments),er(De.arguments),rn(De.expression)):(he(De),De.expression.kind===106&&(k=Le(k,De)))}if(De.expression.kind===205){var xi=De.expression;e.isIdentifier(xi.name)&&Ir(xi.expression)&&e.isPushOrUnshiftIdentifier(xi.name)&&(k=Ce(256,k,De))}}function ri(De){switch(De.kind){case 225:case 256:case 259:case 204:case 181:case 320:case 285:return 1;case 257:return 65;case 260:case 258:case 194:return 33;case 303:return 37;case 171:case 172:case 168:if(e.isObjectLiteralOrClassExpressionMethodOrAccessor(De))return 173;case 170:case 255:case 167:case 173:case 321:case 315:case 178:case 174:case 175:case 179:case 169:return 45;case 212:case 213:return 61;case 261:return 4;case 166:return De.initializer?4:0;case 291:case 241:case 242:case 243:case 262:return 2;case 234:return e.isFunctionLike(De.parent)||e.isClassStaticBlockDeclaration(De.parent)?0:2}return 0}function Gi(De){_e&&(_e.nextContainer=De),_e=De}function Rt(De,zr,xi){switch(M.kind){case 260:return ar(De,zr,xi);case 303:return xt(De,zr,xi);case 225:case 256:return pa(De,zr,xi);case 259:return He(M.symbol.exports,M.symbol,De,zr,xi);case 181:case 320:case 204:case 257:case 285:return He(M.symbol.members,M.symbol,De,zr,xi);case 178:case 179:case 173:case 174:case 321:case 175:case 168:case 167:case 170:case 171:case 172:case 255:case 212:case 213:case 315:case 343:case 336:case 169:case 258:case 194:return He(M.locals,void 0,De,zr,xi)}}function pa(De,zr,xi){return e.isStatic(De)?He(M.symbol.exports,M.symbol,De,zr,xi):He(M.symbol.members,M.symbol,De,zr,xi)}function xt(De,zr,xi){return e.isExternalModule(E)?ar(De,zr,xi):He(E.locals,void 0,De,zr,xi)}function ua(De){var zr=e.isSourceFile(De)?De:e.tryCast(De.body,e.isModuleBlock);return!!zr&&zr.statements.some(function(xi){return e.isExportDeclaration(xi)||e.isExportAssignment(xi)})}function Vt(De){De.flags&8388608&&!ua(De)?De.flags|=64:De.flags&=-65}function St(De){if(Vt(De),e.isAmbientModule(De))if(e.hasSyntacticModifier(De,1)&&go(De,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(De))Ci(De);else{var zr=void 0;if(De.name.kind===10){var xi=De.name.text;zr=e.tryParsePattern(xi),zr===void 0&&go(De.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,xi)}var et=Rt(De,512,110735);E.patternAmbientModules=e.append(E.patternAmbientModules,zr&&!e.isString(zr)?{pattern:zr,symbol:et}:void 0)}else{var je=Ci(De);if(je!==0){var et=De.symbol;et.constEnumOnlyModule=!(et.flags&304)&&je===2&&et.constEnumOnlyModule!==!1}}}function Ci(De){var zr=O(De),xi=zr!==0;return Rt(De,xi?512:1024,xi?110735:0),zr}function Hi(De){var zr=V(131072,ke(De));le(zr,De,131072);var xi=V(2048,"__type");le(xi,De,2048),xi.members=e.createSymbolTable(),xi.members.set(zr.escapedName,zr)}function Yi(De){var zr;if(function(Ba){Ba[Ba.Property=1]="Property",Ba[Ba.Accessor=2]="Accessor"}(zr||(zr={})),w&&!e.isAssignmentTarget(De))for(var xi=new e.Map,et=0,je=De.properties;et<je.length;et++){var ti=je[et];if(!(ti.kind===296||ti.name.kind!==79)){var mt=ti.name,Zt=ti.kind===294||ti.kind===295||ti.kind===168?1:2,ln=xi.get(mt.escapedText);if(!ln){xi.set(mt.escapedText,Zt);continue}}}return oa(De,4096,"__object")}function yt(De){return oa(De,4096,"__jsxAttributes")}function gt(De,zr,xi){return Rt(De,zr,xi)}function oa(De,zr,xi){var et=V(zr,xi);return zr&106508&&(et.parent=M.symbol),le(et,De,zr),et}function Bt(De,zr,xi){switch(ie.kind){case 260:ar(De,zr,xi);break;case 303:if(e.isExternalOrCommonJsModule(M)){ar(De,zr,xi);break}default:ie.locals||(ie.locals=e.createSymbolTable(),Gi(ie)),He(ie.locals,void 0,De,zr,xi)}}function Pi(){if(!!Y){for(var De=M,zr=_e,xi=ie,et=re,je=k,ti=0,mt=Y;ti<mt.length;ti++){var Zt=mt[ti],ln=Zt.parent.parent;M=e.findAncestor(ln.parent,function(is){return!!(ri(is)&1)})||E,ie=e.getEnclosingBlockScopeContainer(ln)||E,k=pe({flags:2}),re=Zt,rn(Zt.typeExpression);var Ba=e.getNameOfDeclaration(Zt);if((e.isJSDocEnumTag(Zt)||!Zt.fullName)&&Ba&&e.isPropertyAccessEntityNameExpression(Ba.parent)){var Oo=In(Ba.parent);if(Oo){Fa(E.symbol,Ba.parent,Oo,!!e.findAncestor(Ba,function(is){return e.isPropertyAccessExpression(is)&&is.name.escapedText==="prototype"}),!1);var jr=M;switch(e.getAssignmentDeclarationPropertyAccessKind(Ba.parent)){case 1:case 2:e.isExternalOrCommonJsModule(E)?M=E:M=void 0;break;case 4:M=Ba.parent.expression;break;case 3:M=Ba.parent.expression.name;break;case 5:M=C(E,Ba.parent.expression)?E:e.isPropertyAccessExpression(Ba.parent.expression)?Ba.parent.expression.name:Ba.parent.expression;break;case 0:return e.Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}M&&ar(Zt,524288,788968),M=jr}}else e.isJSDocEnumTag(Zt)||!Zt.fullName||Zt.fullName.kind===79?(re=Zt.parent,Bt(Zt,524288,788968)):rn(Zt.fullName)}M=De,_e=zr,ie=xi,re=et,k=je}}function Oi(De){!E.parseDiagnostics.length&&!(De.flags&8388608)&&!(De.flags&4194304)&&!e.isIdentifierName(De)&&(w&&De.originalKeywordKind>=117&&De.originalKeywordKind<=125?E.bindDiagnostics.push(m(De,wi(De),e.declarationNameToString(De))):De.originalKeywordKind===132?e.isExternalModule(E)&&e.isInTopLevelContext(De)?E.bindDiagnostics.push(m(De,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,e.declarationNameToString(De))):De.flags&32768&&E.bindDiagnostics.push(m(De,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(De))):De.originalKeywordKind===125&&De.flags&8192&&E.bindDiagnostics.push(m(De,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(De))))}function wi(De){return e.getContainingClass(De)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:E.externalModuleIndicator?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function Qr(De){De.escapedText==="#constructor"&&(E.parseDiagnostics.length||E.bindDiagnostics.push(m(De,e.Diagnostics.constructor_is_a_reserved_word,e.declarationNameToString(De))))}function Ct(De){w&&e.isLeftHandSideExpression(De.left)&&e.isAssignmentOperator(De.operatorToken.kind)&&on(De,De.left)}function tt(De){w&&De.variableDeclaration&&on(De,De.variableDeclaration.name)}function ta(De){if(w&&De.expression.kind===79){var zr=e.getErrorSpanForNode(E,De.expression);E.bindDiagnostics.push(e.createFileDiagnostic(E,zr.start,zr.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Xa(De){return e.isIdentifier(De)&&(De.escapedText==="eval"||De.escapedText==="arguments")}function on(De,zr){if(zr&&zr.kind===79){var xi=zr;if(Xa(xi)){var et=e.getErrorSpanForNode(E,zr);E.bindDiagnostics.push(e.createFileDiagnostic(E,et.start,et.length,qr(De),e.idText(xi)))}}}function qr(De){return e.getContainingClass(De)?e.Diagnostics.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:E.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode}function bn(De){w&&on(De,De.name)}function Rn(De){return e.getContainingClass(De)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:E.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function Sn(De){if(B<2&&ie.kind!==303&&ie.kind!==260&&!e.isFunctionLikeOrClassStaticBlockDeclaration(ie)){var zr=e.getErrorSpanForNode(E,De);E.bindDiagnostics.push(e.createFileDiagnostic(E,zr.start,zr.length,Rn(De)))}}function zn(De){B<1&&w&&De.numericLiteralFlags&32&&E.bindDiagnostics.push(m(De,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}function Zn(De){w&&on(De,De.operand)}function ho(De){w&&(De.operator===45||De.operator===46)&&on(De,De.operand)}function Vo(De){w&&go(De,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}function Cn(De){w&&e.getEmitScriptTarget(ue)>=2&&(e.isDeclarationStatement(De.statement)||e.isVariableStatement(De.statement))&&go(De.label,e.Diagnostics.A_label_is_not_allowed_here)}function go(De,zr,xi,et,je){var ti=e.getSpanOfTokenAtPosition(E,De.pos);E.bindDiagnostics.push(e.createFileDiagnostic(E,ti.start,ti.length,zr,xi,et,je))}function ro(De,zr,xi){Ko(De,zr,zr,xi)}function Ko(De,zr,xi,et){rs(De,{pos:e.getTokenPosOfNode(zr,E),end:xi.end},et)}function rs(De,zr,xi){var et=e.createFileDiagnostic(E,zr.pos,zr.end-zr.pos,xi);De?E.bindDiagnostics.push(et):E.bindSuggestionDiagnostics=e.append(E.bindSuggestionDiagnostics,Ve(Ve({},et),{category:e.DiagnosticCategory.Suggestion}))}function rn(De){if(!!De){e.setParent(De,re),e.tracing&&(De.tracingPath=E.path);var zr=w;if(Qn(De),De.kind>159){var xi=re;re=De;var et=ri(De);et===0?we(De):me(De,et),re=xi}else{var xi=re;De.kind===1&&(re=De),Do(De),re=xi}w=zr}}function Do(De){if(e.hasJSDocNodes(De))if(e.isInJSFile(De))for(var zr=0,xi=De.jsDoc;zr<xi.length;zr++){var et=xi[zr];rn(et)}else for(var je=0,ti=De.jsDoc;je<ti.length;je++){var et=ti[je];e.setParent(et,De),e.setParentRecursive(et,!1)}}function io(De){if(!w)for(var zr=0,xi=De;zr<xi.length;zr++){var et=xi[zr];if(!e.isPrologueDirective(et))return;if(pn(et)){w=!0;return}}}function pn(De){var zr=e.getSourceTextOfNodeFromSourceFile(E,De.expression);return zr==='"use strict"'||zr==="'use strict'"}function Qn(De){switch(De.kind){case 79:if(De.isInJSDocNamespace){for(var zr=De.parent;zr&&!e.isJSDocTypeAlias(zr);)zr=zr.parent;Bt(zr,524288,788968);break}case 108:return k&&(e.isExpression(De)||re.kind===295)&&(De.flowNode=k),Oi(De);case 160:k&&e.isPartOfTypeQuery(De)&&(De.flowNode=k);break;case 230:case 106:De.flowNode=k;break;case 80:return Qr(De);case 205:case 206:var xi=De;k&&Se(xi)&&(xi.flowNode=k),e.isSpecialPropertyDeclaration(xi)&&nr(xi),e.isInJSFile(xi)&&E.commonJsModuleIndicator&&e.isModuleExportsAccessExpression(xi)&&!G(ie,"module")&&He(E.locals,void 0,xi.expression,134217729,111550);break;case 220:var et=e.getAssignmentDeclarationKind(De);switch(et){case 1:Ka(De);break;case 2:an(De);break;case 3:Ei(De.left,De);break;case 6:Gr(De);break;case 4:h(De);break;case 5:var je=De.left.expression;if(e.isInJSFile(De)&&e.isIdentifier(je)){var ti=G(ie,je.escapedText);if(e.isThisInitializedDeclaration(ti==null?void 0:ti.valueDeclaration)){h(De);break}}Nt(De);break;case 0:break;default:e.Debug.fail("Unknown binary expression special property assignment kind")}return Ct(De);case 291:return tt(De);case 214:return ta(De);case 8:return zn(De);case 219:return Zn(De);case 218:return ho(De);case 247:return Vo(De);case 249:return Cn(De);case 191:Z=!0;return;case 176:break;case 162:return Mn(De);case 163:return ga(De);case 253:return $t(De);case 202:return De.flowNode=k,$t(De);case 166:case 165:return wo(De);case 294:case 295:return An(De,4,0);case 297:return An(De,8,900095);case 173:case 174:case 175:return Rt(De,131072,0);case 168:case 167:return An(De,8192|(De.questionToken?16777216:0),e.isObjectLiteralMethod(De)?0:103359);case 255:return xn(De);case 170:return Rt(De,16384,0);case 171:return An(De,32768,46015);case 172:return An(De,65536,78783);case 178:case 315:case 321:case 179:return Hi(De);case 181:case 320:case 194:return xo(De);case 330:return Ur(De);case 204:return Yi(De);case 212:case 213:return yn(De);case 207:var mt=e.getAssignmentDeclarationKind(De);switch(mt){case 7:return Ki(De);case 8:return Ht(De);case 9:return _i(De);case 0:break;default:return e.Debug.fail("Unknown call expression assignment declaration kind")}e.isInJSFile(De)&&mc(De);break;case 225:case 256:return w=!0,Hs(De);case 257:return Bt(De,64,788872);case 258:return Bt(De,524288,788968);case 259:return Mi(De);case 260:return St(De);case 285:return yt(De);case 284:return gt(De,4,0);case 264:case 267:case 269:case 274:return Rt(De,2097152,2097152);case 263:return Ms(De);case 266:return bi(De);case 271:return xr(De);case 270:return Ts(De);case 303:return io(De.statements),ds();case 234:if(!e.isFunctionLikeOrClassStaticBlockDeclaration(De.parent))return;case 261:return io(De.statements);case 338:if(De.parent.kind===321)return ga(De);if(De.parent.kind!==320)break;case 345:var Zt=De,ln=Zt.isBracketed||Zt.typeExpression&&Zt.typeExpression.type.kind===314?16777220:4;return Rt(Zt,ln,0);case 343:case 336:case 337:return(Y||(Y=[])).push(De)}}function wo(De){return An(De,4|(De.questionToken?16777216:0),0)}function xo(De){return oa(De,2048,"__type")}function ds(){if(Vt(E),e.isExternalModule(E))No();else if(e.isJsonSourceFile(E)){No();var De=E.symbol;He(E.symbol.exports,E.symbol,E,4,67108863),E.symbol=De}}function No(){oa(E,512,'"'.concat(e.removeFileExtension(E.fileName),'"'))}function Ts(De){if(!M.symbol||!M.symbol.exports)oa(De,111551,ke(De));else{var zr=e.exportAssignmentIsAlias(De)?2097152:4,xi=He(M.symbol.exports,M.symbol,De,zr,67108863);De.isExportEquals&&e.setValueDeclaration(xi,De)}}function Ms(De){De.modifiers&&De.modifiers.length&&E.bindDiagnostics.push(m(De,e.Diagnostics.Modifiers_cannot_appear_here));var zr=e.isSourceFile(De.parent)?e.isExternalModule(De.parent)?De.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;zr?E.bindDiagnostics.push(m(De,zr)):(E.symbol.globalExports=E.symbol.globalExports||e.createSymbolTable(),He(E.symbol.globalExports,E.symbol,De,2097152,2097152))}function xr(De){!M.symbol||!M.symbol.exports?oa(De,8388608,ke(De)):De.exportClause?e.isNamespaceExport(De.exportClause)&&(e.setParent(De.exportClause,De),He(M.symbol.exports,M.symbol,De.exportClause,2097152,2097152)):He(M.symbol.exports,M.symbol,De,8388608,0)}function bi(De){De.name&&Rt(De,2097152,2097152)}function ut(De){return E.externalModuleIndicator?!1:(E.commonJsModuleIndicator||(E.commonJsModuleIndicator=De,No()),!0)}function Ht(De){if(!!ut(De)){var zr=Os(De.arguments[0],void 0,function(et,je){return je&&le(je,et,67110400),je});if(zr){var xi=1048580;He(zr.exports,zr,De,xi,0)}}}function Ka(De){if(!!ut(De)){var zr=Os(De.left.expression,void 0,function(je,ti){return ti&&le(ti,je,67110400),ti});if(zr){var xi=e.isAliasableExpression(De.right)&&(e.isExportsIdentifier(De.left.expression)||e.isModuleExportsAccessExpression(De.left.expression)),et=xi?2097152:1048580;e.setParent(De.left,De),He(zr.exports,zr,De.left,et,0)}}}function an(De){if(!!ut(De)){var zr=e.getRightMostAssignedExpression(De.right);if(!(e.isEmptyObjectLiteral(zr)||M===E&&C(E,zr))){if(e.isObjectLiteralExpression(zr)&&e.every(zr.properties,e.isShorthandPropertyAssignment)){e.forEach(zr.properties,Ke);return}var xi=e.exportAssignmentIsAlias(De)?2097152:1049092,et=He(E.symbol.exports,E.symbol,De,xi|67108864,0);e.setValueDeclaration(et,De)}}}function Ke(De){He(E.symbol.exports,E.symbol,De,69206016,0)}function h(De){e.Debug.assert(e.isInJSFile(De));var zr=e.isBinaryExpression(De)&&e.isPropertyAccessExpression(De.left)&&e.isPrivateIdentifier(De.left.name)||e.isPropertyAccessExpression(De)&&e.isPrivateIdentifier(De.name);if(!zr){var xi=e.getThisContainer(De,!1);switch(xi.kind){case 255:case 212:var et=xi.symbol;if(e.isBinaryExpression(xi.parent)&&xi.parent.operatorToken.kind===63){var je=xi.parent.left;e.isBindableStaticAccessExpression(je)&&e.isPrototypeAccess(je.expression)&&(et=Ds(je.expression.expression,x))}et&&et.valueDeclaration&&(et.members=et.members||e.createSymbolTable(),e.hasDynamicName(De)?Ee(De,et,et.members):He(et.members,et,De,67108868,0),le(et,et.valueDeclaration,32));break;case 170:case 166:case 168:case 171:case 172:case 169:var ti=xi.parent,mt=e.isStatic(xi)?ti.symbol.exports:ti.symbol.members;e.hasDynamicName(De)?Ee(De,ti.symbol,mt):He(mt,ti.symbol,De,67108868,0,!0);break;case 303:if(e.hasDynamicName(De))break;xi.commonJsModuleIndicator?He(xi.symbol.exports,xi.symbol,De,1048580,0):Rt(De,1,111550);break;default:e.Debug.failBadSyntaxKind(xi)}}}function Ee(De,zr,xi){He(xi,zr,De,4,0,!0,!0),Re(De,zr)}function Re(De,zr){zr&&(zr.assignmentDeclarationMembers||(zr.assignmentDeclarationMembers=new e.Map)).set(e.getNodeId(De),De)}function nr(De){De.expression.kind===108?h(De):e.isBindableStaticAccessExpression(De)&&De.parent.parent.kind===303&&(e.isPrototypeAccess(De.expression)?Ei(De,De.parent):ca(De))}function Gr(De){e.setParent(De.left,De),e.setParent(De.right,De),so(De.left.expression,De.left,!1,!0)}function _i(De){var zr=Ds(De.arguments[0].expression);zr&&zr.valueDeclaration&&le(zr,zr.valueDeclaration,32),Ta(De,zr,!0)}function Ei(De,zr){var xi=De.expression,et=xi.expression;e.setParent(et,xi),e.setParent(xi,De),e.setParent(De,zr),so(et,De,!0,!0)}function Ki(De){var zr=Ds(De.arguments[0]),xi=De.parent.parent.kind===303;zr=Fa(zr,De.arguments[0],xi,!1,!1),Ta(De,zr,!1)}function Nt(De){var zr,xi=Ds(De.left.expression,M)||Ds(De.left.expression,ie);if(!(!e.isInJSFile(De)&&!e.isFunctionSymbol(xi))){var et=e.getLeftmostAccessExpression(De.left);if(!(e.isIdentifier(et)&&((zr=G(M,et.escapedText))===null||zr===void 0?void 0:zr.flags)&2097152))if(e.setParent(De.left,De),e.setParent(De.right,De),e.isIdentifier(De.left.expression)&&M===E&&C(E,De.left.expression))Ka(De);else if(e.hasDynamicName(De)){oa(De,67108868,"__computed");var je=Fa(xi,De.left.expression,In(De.left),!1,!1);Re(De,je)}else ca(e.cast(De.left,e.isBindableStaticNameExpression))}}function ca(De){e.Debug.assert(!e.isIdentifier(De)),e.setParent(De.expression,De),so(De.expression,De,!1,!1)}function Fa(De,zr,xi,et,je){if((De==null?void 0:De.flags)&2097152)return De;if(xi&&!et){var ti=67110400,mt=110735;De=Os(zr,De,function(Zt,ln,Ba){if(ln)return le(ln,Zt,ti),ln;var Oo=Ba?Ba.exports:E.jsGlobalAugmentations||(E.jsGlobalAugmentations=e.createSymbolTable());return He(Oo,Ba,Zt,ti,mt)})}return je&&De&&De.valueDeclaration&&le(De,De.valueDeclaration,32),De}function Ta(De,zr,xi){if(!(!zr||!as(zr))){var et=xi?zr.members||(zr.members=e.createSymbolTable()):zr.exports||(zr.exports=e.createSymbolTable()),je=0,ti=0;e.isFunctionLikeDeclaration(e.getAssignedExpandoInitializer(De))?(je=8192,ti=103359):e.isCallExpression(De)&&e.isBindableObjectDefinePropertyCall(De)&&(e.some(De.arguments[2].properties,function(mt){var Zt=e.getNameOfDeclaration(mt);return!!Zt&&e.isIdentifier(Zt)&&e.idText(Zt)==="set"})&&(je|=65540,ti|=78783),e.some(De.arguments[2].properties,function(mt){var Zt=e.getNameOfDeclaration(mt);return!!Zt&&e.isIdentifier(Zt)&&e.idText(Zt)==="get"})&&(je|=32772,ti|=46015)),je===0&&(je=4,ti=0),He(et,zr,De,je|67108864,ti&-67108865)}}function In(De){return e.isBinaryExpression(De.parent)?Ho(De.parent).parent.kind===303:De.parent.parent.kind===303}function so(De,zr,xi,et){var je=Ds(De,M)||Ds(De,ie),ti=In(zr);je=Fa(je,zr.expression,ti,xi,et),Ta(zr,je,xi)}function as(De){if(De.flags&1072)return!0;var zr=De.valueDeclaration;if(zr&&e.isCallExpression(zr))return!!e.getAssignedExpandoInitializer(zr);var xi=zr?e.isVariableDeclaration(zr)?zr.initializer:e.isBinaryExpression(zr)?zr.right:e.isPropertyAccessExpression(zr)&&e.isBinaryExpression(zr.parent)?zr.parent.right:void 0:void 0;if(xi=xi&&e.getRightMostAssignedExpression(xi),xi){var et=e.isPrototypeAccess(e.isVariableDeclaration(zr)?zr.name:e.isBinaryExpression(zr)?zr.left:zr);return!!e.getExpandoInitializer(e.isBinaryExpression(xi)&&(xi.operatorToken.kind===56||xi.operatorToken.kind===60)?xi.right:xi,et)}return!1}function Ho(De){for(;e.isBinaryExpression(De.parent);)De=De.parent;return De.parent}function Ds(De,zr){if(zr===void 0&&(zr=M),e.isIdentifier(De))return G(zr,De.escapedText);var xi=Ds(De.expression);return xi&&xi.exports&&xi.exports.get(e.getElementOrPropertyAccessName(De))}function Os(De,zr,xi){if(C(E,De))return E.symbol;if(e.isIdentifier(De))return xi(De,Ds(De),zr);var et=Os(De.expression,zr,xi),je=e.getNameOrArgument(De);return e.isPrivateIdentifier(je)&&e.Debug.fail("unexpected PrivateIdentifier"),xi(je,et&&et.exports&&et.exports.get(e.getElementOrPropertyAccessName(De)),et)}function mc(De){!E.commonJsModuleIndicator&&e.isRequireCall(De,!1)&&ut(De)}function Hs(De){if(De.kind===256)Bt(De,32,899503);else{var zr=De.name?De.name.escapedText:"__class";oa(De,32,zr),De.name&&y.add(De.name.escapedText)}var xi=De.symbol,et=V(4194308,"prototype"),je=xi.exports.get(et.escapedName);je&&(De.name&&e.setParent(De.name,De),E.bindDiagnostics.push(m(je.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(et)))),xi.exports.set(et.escapedName,et),et.parent=xi}function Mi(De){return e.isEnumConst(De)?Bt(De,128,899967):Bt(De,256,899327)}function $t(De){w&&on(De,De.name),e.isBindingPattern(De.name)||(e.isInJSFile(De)&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(De)&&!e.getJSDocTypeTag(De)?Rt(De,2097152,2097152):e.isBlockOrCatchScoped(De)?Bt(De,2,111551):e.isParameterDeclaration(De)?Rt(De,1,111551):Rt(De,1,111550))}function ga(De){if(!(De.kind===338&&M.kind!==321)&&(w&&!(De.flags&8388608)&&on(De,De.name),e.isBindingPattern(De.name)?oa(De,1,"__"+De.parent.parameters.indexOf(De)):Rt(De,1,111551),e.isParameterPropertyDeclaration(De,De.parent))){var zr=De.parent.parent;He(zr.symbol.members,zr.symbol,De,4|(De.questionToken?16777216:0),0)}}function xn(De){!E.isDeclarationFile&&!(De.flags&8388608)&&e.isAsyncFunction(De)&&(J|=2048),bn(De),w?(Sn(De),Bt(De,16,110991)):Rt(De,16,110991)}function yn(De){!E.isDeclarationFile&&!(De.flags&8388608)&&e.isAsyncFunction(De)&&(J|=2048),k&&(De.flowNode=k),bn(De);var zr=De.name?De.name.escapedText:"__function";return oa(De,16,zr)}function An(De,zr,xi){return!E.isDeclarationFile&&!(De.flags&8388608)&&e.isAsyncFunction(De)&&(J|=2048),k&&e.isObjectLiteralOrClassExpressionMethodOrAccessor(De)&&(De.flowNode=k),e.hasDynamicName(De)?oa(De,zr,"__computed"):Rt(De,zr,xi)}function Pa(De){var zr=e.findAncestor(De,function(xi){return xi.parent&&e.isConditionalTypeNode(xi.parent)&&xi.parent.extendsType===xi});return zr&&zr.parent}function Mn(De){if(e.isJSDocTemplateTag(De.parent)){var zr=e.getEffectiveContainerForJSDocTemplateTag(De.parent);zr?(zr.locals||(zr.locals=e.createSymbolTable()),He(zr.locals,void 0,De,262144,526824)):Rt(De,262144,526824)}else if(De.parent.kind===189){var xi=Pa(De.parent);xi?(xi.locals||(xi.locals=e.createSymbolTable()),He(xi.locals,void 0,De,262144,526824)):oa(De,262144,ke(De))}else Rt(De,262144,526824)}function ao(De){var zr=O(De);return zr===1||zr===2&&e.shouldPreserveConstEnums(ue)}function co(De){if(!(k.flags&1))return!1;if(k===oe){var zr=e.isStatementButNotDeclaration(De)&&De.kind!==235||De.kind===256||De.kind===260&&ao(De);if(zr&&(k=ve,!ue.allowUnreachableCode)){var xi=e.unreachableCodeIsError(ue)&&!(De.flags&8388608)&&(!e.isVariableStatement(De)||!!(e.getCombinedNodeFlags(De.declarationList)&3)||De.declarationList.declarations.some(function(et){return!!et.initializer}));H(De,function(et,je){return Ko(xi,et,je,e.Diagnostics.Unreachable_code_detected)})}}return!0}}function H(E,ue){if(e.isStatement(E)&&se(E)&&e.isBlock(E.parent)){var B=E.parent.statements,re=e.sliceAfter(B,E);e.getRangesWhere(re,se,function(M,x){return ue(re[M],re[x-1])})}else ue(E,E)}function se(E){return!e.isFunctionDeclaration(E)&&!p(E)&&!e.isEnumDeclaration(E)&&!(e.isVariableStatement(E)&&!(e.getCombinedNodeFlags(E)&3)&&E.declarationList.declarations.some(function(ue){return!ue.initializer}))}function p(E){switch(E.kind){case 257:case 258:return!0;case 260:return O(E)!==1;case 259:return e.hasSyntacticModifier(E,2048);default:return!1}}function C(E,ue){for(var B=0,re=[ue];re.length&&B<100;){if(B++,ue=re.shift(),e.isExportsIdentifier(ue)||e.isModuleExportsAccessExpression(ue))return!0;if(e.isIdentifier(ue)){var M=G(E,ue.escapedText);if(!!M&&!!M.valueDeclaration&&e.isVariableDeclaration(M.valueDeclaration)&&!!M.valueDeclaration.initializer){var x=M.valueDeclaration.initializer;re.push(x),e.isAssignmentExpression(x,!0)&&(re.push(x.left),re.push(x.right))}}}return!1}e.isExportsOrModuleExportsOrAlias=C;function G(E,ue){var B=E.locals&&E.locals.get(ue);return B?B.exportSymbol||B:e.isSourceFile(E)&&E.jsGlobalAugmentations&&E.jsGlobalAugmentations.has(ue)?E.jsGlobalAugmentations.get(ue):E.symbol&&E.symbol.exports&&E.symbol.exports.get(ue)}})(Pe||(Pe={}));var Pe;(function(e){function a(O,L,W,N,Q,pe,F,g,S,H){return se;function se(p){p===void 0&&(p=function(){return!0});var C=[],G=[];return{walkType:function(I){try{return E(I),{visitedTypes:e.getOwnValues(C),visitedSymbols:e.getOwnValues(G)}}finally{e.clear(C),e.clear(G)}},walkSymbol:function(I){try{return k(I),{visitedTypes:e.getOwnValues(C),visitedSymbols:e.getOwnValues(G)}}finally{e.clear(C),e.clear(G)}}};function E(I){if(!!I&&!C[I.id]){C[I.id]=I;var ne=k(I.symbol);if(!ne){if(I.flags&524288){var ee=I,A=ee.objectFlags;A&4&&ue(I),A&32&&ie(I),A&3&&Y(I),A&24&&Z(ee)}I.flags&262144&&B(I),I.flags&3145728&&re(I),I.flags&4194304&&M(I),I.flags&8388608&&x(I)}}}function ue(I){E(I.target),e.forEach(H(I),E)}function B(I){E(g(I))}function re(I){e.forEach(I.types,E)}function M(I){E(I.type)}function x(I){E(I.objectType),E(I.indexType),E(I.constraint)}function ie(I){E(I.typeParameter),E(I.constraintType),E(I.templateType),E(I.modifiersType)}function _e(I){var ne=L(I);ne&&E(ne.type),e.forEach(I.typeParameters,E);for(var ee=0,A=I.parameters;ee<A.length;ee++){var f=A[ee];k(f)}E(O(I)),E(W(I))}function Y(I){Z(I),e.forEach(I.typeParameters,E),e.forEach(N(I),E),E(I.thisType)}function Z(I){for(var ne=Q(I),ee=0,A=ne.indexInfos;ee<A.length;ee++){var f=A[ee];E(f.keyType),E(f.type)}for(var P=0,D=ne.callSignatures;P<D.length;P++){var l=D[P];_e(l)}for(var _=0,J=ne.constructSignatures;_<J.length;_++){var l=J[_];_e(l)}for(var w=0,j=ne.properties;w<j.length;w++){var U=j[w];k(U)}}function k(I){if(!I)return!1;var ne=e.getSymbolId(I);if(G[ne])return!1;if(G[ne]=I,!p(I))return!0;var ee=pe(I);return E(ee),I.exports&&I.exports.forEach(k),e.forEach(I.declarations,function(A){if(A.type&&A.type.kind===180){var f=A.type,P=F(S(f.exprName));k(P)}}),!1}}}e.createGetSymbolWalker=a})(Pe||(Pe={}));var Pe;(function(e){var a=/^".+"$/,O="(anonymous)",L=1,W=1,N=1,Q=1,pe;(function(y){y[y.AllowsSyncIterablesFlag=1]="AllowsSyncIterablesFlag",y[y.AllowsAsyncIterablesFlag=2]="AllowsAsyncIterablesFlag",y[y.AllowsStringInputFlag=4]="AllowsStringInputFlag",y[y.ForOfFlag=8]="ForOfFlag",y[y.YieldStarFlag=16]="YieldStarFlag",y[y.SpreadFlag=32]="SpreadFlag",y[y.DestructuringFlag=64]="DestructuringFlag",y[y.PossiblyOutOfBounds=128]="PossiblyOutOfBounds",y[y.Element=1]="Element",y[y.Spread=33]="Spread",y[y.Destructuring=65]="Destructuring",y[y.ForOf=13]="ForOf",y[y.ForAwaitOf=15]="ForAwaitOf",y[y.YieldStar=17]="YieldStar",y[y.AsyncYieldStar=19]="AsyncYieldStar",y[y.GeneratorReturnType=1]="GeneratorReturnType",y[y.AsyncGeneratorReturnType=2]="AsyncGeneratorReturnType"})(pe||(pe={}));var F;(function(y){y[y.Yield=0]="Yield",y[y.Return=1]="Return",y[y.Next=2]="Next"})(F||(F={}));var g;(function(y){y[y.Normal=0]="Normal",y[y.FunctionReturn=1]="FunctionReturn",y[y.GeneratorNext=2]="GeneratorNext",y[y.GeneratorYield=3]="GeneratorYield"})(g||(g={}));var S;(function(y){y[y.None=0]="None",y[y.TypeofEQString=1]="TypeofEQString",y[y.TypeofEQNumber=2]="TypeofEQNumber",y[y.TypeofEQBigInt=4]="TypeofEQBigInt",y[y.TypeofEQBoolean=8]="TypeofEQBoolean",y[y.TypeofEQSymbol=16]="TypeofEQSymbol",y[y.TypeofEQObject=32]="TypeofEQObject",y[y.TypeofEQFunction=64]="TypeofEQFunction",y[y.TypeofEQHostObject=128]="TypeofEQHostObject",y[y.TypeofNEString=256]="TypeofNEString",y[y.TypeofNENumber=512]="TypeofNENumber",y[y.TypeofNEBigInt=1024]="TypeofNEBigInt",y[y.TypeofNEBoolean=2048]="TypeofNEBoolean",y[y.TypeofNESymbol=4096]="TypeofNESymbol",y[y.TypeofNEObject=8192]="TypeofNEObject",y[y.TypeofNEFunction=16384]="TypeofNEFunction",y[y.TypeofNEHostObject=32768]="TypeofNEHostObject",y[y.EQUndefined=65536]="EQUndefined",y[y.EQNull=131072]="EQNull",y[y.EQUndefinedOrNull=262144]="EQUndefinedOrNull",y[y.NEUndefined=524288]="NEUndefined",y[y.NENull=1048576]="NENull",y[y.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",y[y.Truthy=4194304]="Truthy",y[y.Falsy=8388608]="Falsy",y[y.All=16777215]="All",y[y.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",y[y.BaseStringFacts=12582401]="BaseStringFacts",y[y.StringStrictFacts=16317953]="StringStrictFacts",y[y.StringFacts=16776705]="StringFacts",y[y.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",y[y.EmptyStringFacts=12582401]="EmptyStringFacts",y[y.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",y[y.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",y[y.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",y[y.BaseNumberFacts=12582146]="BaseNumberFacts",y[y.NumberStrictFacts=16317698]="NumberStrictFacts",y[y.NumberFacts=16776450]="NumberFacts",y[y.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",y[y.ZeroNumberFacts=12582146]="ZeroNumberFacts",y[y.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",y[y.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",y[y.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",y[y.BaseBigIntFacts=12581636]="BaseBigIntFacts",y[y.BigIntStrictFacts=16317188]="BigIntStrictFacts",y[y.BigIntFacts=16775940]="BigIntFacts",y[y.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",y[y.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",y[y.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",y[y.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",y[y.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",y[y.BaseBooleanFacts=12580616]="BaseBooleanFacts",y[y.BooleanStrictFacts=16316168]="BooleanStrictFacts",y[y.BooleanFacts=16774920]="BooleanFacts",y[y.FalseStrictFacts=12121864]="FalseStrictFacts",y[y.FalseFacts=12580616]="FalseFacts",y[y.TrueStrictFacts=7927560]="TrueStrictFacts",y[y.TrueFacts=16774920]="TrueFacts",y[y.SymbolStrictFacts=7925520]="SymbolStrictFacts",y[y.SymbolFacts=16772880]="SymbolFacts",y[y.ObjectStrictFacts=7888800]="ObjectStrictFacts",y[y.ObjectFacts=16736160]="ObjectFacts",y[y.FunctionStrictFacts=7880640]="FunctionStrictFacts",y[y.FunctionFacts=16728e3]="FunctionFacts",y[y.UndefinedFacts=9830144]="UndefinedFacts",y[y.NullFacts=9363232]="NullFacts",y[y.EmptyObjectStrictFacts=16318463]="EmptyObjectStrictFacts",y[y.AllTypeofNE=556800]="AllTypeofNE",y[y.EmptyObjectFacts=16777215]="EmptyObjectFacts",y[y.OrFactsMask=8256]="OrFactsMask",y[y.AndFactsMask=16768959]="AndFactsMask"})(S||(S={}));var H=new e.Map(e.getEntries({string:1,number:2,bigint:4,boolean:8,symbol:16,undefined:65536,object:32,function:64})),se=new e.Map(e.getEntries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),p;(function(y){y[y.Type=0]="Type",y[y.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",y[y.DeclaredType=2]="DeclaredType",y[y.ResolvedReturnType=3]="ResolvedReturnType",y[y.ImmediateBaseConstraint=4]="ImmediateBaseConstraint",y[y.EnumTagType=5]="EnumTagType",y[y.ResolvedTypeArguments=6]="ResolvedTypeArguments",y[y.ResolvedBaseTypes=7]="ResolvedBaseTypes"})(p||(p={}));var C;(function(y){y[y.Normal=0]="Normal",y[y.Contextual=1]="Contextual",y[y.Inferential=2]="Inferential",y[y.SkipContextSensitive=4]="SkipContextSensitive",y[y.SkipGenericFunctions=8]="SkipGenericFunctions",y[y.IsForSignatureHelp=16]="IsForSignatureHelp",y[y.RestBindingElement=32]="RestBindingElement"})(C||(C={}));var G;(function(y){y[y.BivariantCallback=1]="BivariantCallback",y[y.StrictCallback=2]="StrictCallback",y[y.IgnoreReturnTypes=4]="IgnoreReturnTypes",y[y.StrictArity=8]="StrictArity",y[y.Callback=3]="Callback"})(G||(G={}));var E;(function(y){y[y.None=0]="None",y[y.Source=1]="Source",y[y.Target=2]="Target",y[y.PropertyCheck=4]="PropertyCheck",y[y.InPropertyCheck=8]="InPropertyCheck"})(E||(E={}));var ue;(function(y){y[y.None=0]="None",y[y.Source=1]="Source",y[y.Target=2]="Target",y[y.Both=3]="Both"})(ue||(ue={}));var B;(function(y){y[y.IncludeReadonly=1]="IncludeReadonly",y[y.ExcludeReadonly=2]="ExcludeReadonly",y[y.IncludeOptional=4]="IncludeOptional",y[y.ExcludeOptional=8]="ExcludeOptional"})(B||(B={}));var re;(function(y){y[y.None=0]="None",y[y.Source=1]="Source",y[y.Target=2]="Target",y[y.Both=3]="Both"})(re||(re={}));var M;(function(y){y.resolvedExports="resolvedExports",y.resolvedMembers="resolvedMembers"})(M||(M={}));var x;(function(y){y[y.Local=0]="Local",y[y.Parameter=1]="Parameter"})(x||(x={}));var ie=e.and(_,l),_e;(function(y){y[y.GetAccessor=1]="GetAccessor",y[y.SetAccessor=2]="SetAccessor",y[y.PropertyAssignment=4]="PropertyAssignment",y[y.Method=8]="Method",y[y.PrivateStatic=16]="PrivateStatic",y[y.GetOrSetAccessor=3]="GetOrSetAccessor",y[y.PropertyAssignmentOrMethod=12]="PropertyAssignmentOrMethod"})(_e||(_e={}));var Y;(function(y){y[y.None=0]="None",y[y.ExportValue=1]="ExportValue",y[y.ExportType=2]="ExportType",y[y.ExportNamespace=4]="ExportNamespace"})(Y||(Y={}));var Z;(function(y){y[y.None=0]="None",y[y.StrongArityForUntypedJS=1]="StrongArityForUntypedJS",y[y.VoidIsNonOptional=2]="VoidIsNonOptional"})(Z||(Z={}));var k;(function(y){y[y.Uppercase=0]="Uppercase",y[y.Lowercase=1]="Lowercase",y[y.Capitalize=2]="Capitalize",y[y.Uncapitalize=3]="Uncapitalize"})(k||(k={}));var I=new e.Map(e.getEntries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3}));function ne(){}function ee(){this.flags=0}function A(y){return y.id||(y.id=W,W++),y.id}e.getNodeId=A;function f(y){return y.id||(y.id=L,L++),y.id}e.getSymbolId=f;function P(y,oe){var ve=e.getModuleInstanceState(y);return ve===1||oe&&ve===2}e.isInstantiatedModule=P;function D(y,oe){var ve=e.memoize(function(){var r=new e.Map;return y.getSourceFiles().forEach(function(i){!i.resolvedModules||i.resolvedModules.forEach(function(t){t&&t.packageId&&r.set(t.packageId.name,t.extension===".d.ts"||!!r.get(t.packageId.name))})}),r}),ce,m,de,ae=e.objectAllocator.getSymbolConstructor(),V=e.objectAllocator.getTypeConstructor(),le=e.objectAllocator.getSignatureConstructor(),ke=0,Ue=0,He=0,ar=0,gr=0,me=0,Ge=0,er,he=e.createSymbolTable(),we=[1],ye=y.getCompilerOptions(),Se=e.getEmitScriptTarget(ye),ge=e.getEmitModuleKind(ye),Fe=e.getUseDefineForClassFields(ye),cr=e.getAllowSyntheticDefaultImports(ye),ur=e.getStrictOptionValue(ye,"strictNullChecks"),Ir=e.getStrictOptionValue(ye,"strictFunctionTypes"),dr=e.getStrictOptionValue(ye,"strictBindCallApply"),Br=e.getStrictOptionValue(ye,"strictPropertyInitialization"),Tr=e.getStrictOptionValue(ye,"noImplicitAny"),n=e.getStrictOptionValue(ye,"noImplicitThis"),Er=e.getStrictOptionValue(ye,"useUnknownInCatchVariables"),br=!!ye.keyofStringsOnly,Pr=ye.suppressExcessPropertyErrors?0:16384,Ce=ye.exactOptionalPropertyTypes,Le=U7(),Xe=n9(),Cr=Pd(),Lr=e.createSymbolTable(),Jr=bo(4,"undefined");Jr.declarations=[];var Rr=bo(1536,"globalThis",8);Rr.exports=Lr,Rr.declarations=[],Lr.set(Rr.escapedName,Rr);var ci=bo(4,"arguments"),be=bo(4,"require"),or,Kr={getNodeCount:function(){return e.sum(y.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(y.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(y.getSourceFiles(),"symbolCount")+Ue},getTypeCount:function(){return ke},getInstantiationCount:function(){return ar},getRelationCacheSizes:function(){return{assignable:Sr.size,identity:nt.size,subtype:Te.size,strictSubtype:vr.size}},isUndefinedSymbol:function(r){return r===Jr},isArgumentsSymbol:function(r){return r===ci},isUnknownSymbol:function(r){return r===hr},getMergedSymbol:Wn,getDiagnostics:x6,getGlobalDiagnostics:bM,getRecursionIdentity:Qv,getUnmatchedProperties:qD,getTypeOfSymbolAtLocation:function(r,i){var t=e.getParseTreeNode(i);return t?tw(r,t):Oe},getTypeOfSymbol:Jt,getSymbolsOfParameterPropertyDeclaration:function(r,i){var t=e.getParseTreeNode(r,e.isParameter);return t===void 0?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):fp(t,e.escapeLeadingUnderscores(i))},getDeclaredTypeOfSymbol:Io,getPropertiesOfType:_o,getPropertyOfType:function(r,i){return tn(r,e.escapeLeadingUnderscores(i))},getPrivateIdentifierPropertyOfType:function(r,i,t){var o=e.getParseTreeNode(t);if(!!o){var s=e.escapeLeadingUnderscores(i),u=Zh(s,o);return u?Tb(r,u):void 0}},getTypeOfPropertyOfType:function(r,i){return ai(r,e.escapeLeadingUnderscores(i))},getIndexInfoOfType:function(r,i){return kc(r,i===0?ki:Ui)},getIndexInfosOfType:Js,getSignaturesOfType:za,getIndexTypeOfType:function(r,i){return fl(r,i===0?ki:Ui)},getIndexType:function(r){return Ll(r)},getBaseTypes:zc,getBaseTypeOfLiteralType:Bl,getWidenedType:Hc,getTypeFromTypeNode:function(r){var i=e.getParseTreeNode(r,e.isTypeNode);return i?Ua(i):Oe},getParameterType:Hu,getParameterIdentifierNameAtPosition:y7,getPromisedTypeOfPromise:nv,getAwaitedType:function(r){return zd(r)},getReturnTypeOfSignature:So,isNullableType:$h,getNullableType:Eh,getNonNullableType:C_,getNonOptionalType:FD,getTypeArguments:Co,typeToTypeNode:Cr.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Cr.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Cr.signatureToSignatureDeclaration,symbolToEntityName:Cr.symbolToEntityName,symbolToExpression:Cr.symbolToExpression,symbolToTypeParameterDeclarations:Cr.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Cr.symbolToParameterDeclaration,typeParameterToDeclaration:Cr.typeParameterToDeclaration,getSymbolsInScope:function(r,i){var t=e.getParseTreeNode(r);return t?SM(t,i):[]},getSymbolAtLocation:function(r){var i=e.getParseTreeNode(r);return i?Xu(i,!0):void 0},getIndexInfosAtLocation:function(r){var i=e.getParseTreeNode(r);return i?PM(i):void 0},getShorthandAssignmentValueSymbol:function(r){var i=e.getParseTreeNode(r);return i?NM(i):void 0},getExportSpecifierLocalTargetSymbol:function(r){var i=e.getParseTreeNode(r,e.isExportSpecifier);return i?IM(i):void 0},getExportSymbolOfSymbol:function(r){return Wn(r.exportSymbol||r)},getTypeAtLocation:function(r){var i=e.getParseTreeNode(r);return i?Wp(i):Oe},getTypeOfAssignmentPattern:function(r){var i=e.getParseTreeNode(r,e.isAssignmentPattern);return i&&P0(i)||Oe},getPropertySymbolOfDestructuringAssignment:function(r){var i=e.getParseTreeNode(r,e.isIdentifier);return i?wM(i):void 0},signatureToString:function(r,i,t,o){return kl(r,e.getParseTreeNode(i),t,o)},typeToString:function(r,i,t){return ht(r,e.getParseTreeNode(i),t)},symbolToString:function(r,i,t,o){return Ga(r,e.getParseTreeNode(i),t,o)},typePredicateToString:function(r,i,t){return Al(r,e.getParseTreeNode(i),t)},writeSignature:function(r,i,t,o,s){return kl(r,e.getParseTreeNode(i),t,o,s)},writeType:function(r,i,t,o){return ht(r,e.getParseTreeNode(i),t,o)},writeSymbol:function(r,i,t,o,s){return Ga(r,e.getParseTreeNode(i),t,o,s)},writeTypePredicate:function(r,i,t,o){return Al(r,e.getParseTreeNode(i),t,o)},getAugmentedPropertiesOfType:gS,getRootSymbols:N6,getSymbolOfExpando:c0,getContextualType:function(r,i){var t=e.getParseTreeNode(r,e.isExpression);if(!!t){var o=e.findAncestor(t,e.isCallLikeExpression),s=o&&Da(o).resolvedSignature;if(i&4&&o){var u=t;do Da(u).skipDirectInference=!0,u=u.parent;while(u&&u!==o);Da(o).resolvedSignature=void 0}var T=Su(t,i);if(i&4&&o){var u=t;do Da(u).skipDirectInference=void 0,u=u.parent;while(u&&u!==o);Da(o).resolvedSignature=s}return T}},getContextualTypeForObjectLiteralElement:function(r){var i=e.getParseTreeNode(r,e.isObjectLiteralElementLike);return i?ub(i):void 0},getContextualTypeForArgumentAtIndex:function(r,i){var t=e.getParseTreeNode(r,e.isCallLikeExpression);return t&&cb(t,i)},getContextualTypeForJsxAttribute:function(r){var i=e.getParseTreeNode(r,e.isJsxAttributeLike);return i&&aC(i)},isContextSensitive:_l,getTypeOfPropertyOfContextualType:yd,getFullyQualifiedName:ts,getResolvedSignature:function(r,i,t){return ei(r,i,t,0)},getResolvedSignatureForSignatureHelp:function(r,i,t){return ei(r,i,t,16)},getExpandedParameters:Av,hasEffectiveRestParameter:Ul,containsArgumentsReference:L1,getConstantValue:function(r){var i=e.getParseTreeNode(r,M6);return i?vS(i):void 0},isValidPropertyAccess:function(r,i){var t=e.getParseTreeNode(r,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!t&&w5(t,e.escapeLeadingUnderscores(i))},isValidPropertyAccessForCompletions:function(r,i,t){var o=e.getParseTreeNode(r,e.isPropertyAccessExpression);return!!o&&wC(o,i,t)},getSignatureFromDeclaration:function(r){var i=e.getParseTreeNode(r,e.isFunctionLike);return i?Ku(i):void 0},isImplementationOfOverload:function(r){var i=e.getParseTreeNode(r,e.isFunctionLike);return i?O6(i):void 0},getImmediateAliasedSymbol:db,getAliasedSymbol:zo,getEmitResolver:Vn,getExportsOfModule:_f,getExportsAndPropertiesOfModule:Vl,forEachExportAndPropertyOfModule:j_,getSymbolWalker:e.createGetSymbolWalker(jN,wu,So,zc,Vu,Jt,dl,qc,e.getFirstIdentifier,Co),getAmbientModules:Q9,getJsxIntrinsicTagNamesAt:_5,isOptionalParameter:function(r){var i=e.getParseTreeNode(r,e.isParameter);return i?ud(i):!1},tryGetMemberInModuleExports:function(r,i){return Uf(e.escapeLeadingUnderscores(r),i)},tryGetMemberInModuleExportsAndProperties:function(r,i){return Sp(e.escapeLeadingUnderscores(r),i)},tryFindAmbientModule:function(r){return Ug(r,!0)},tryFindAmbientModuleWithoutAugmentations:function(r){return Ug(r,!1)},getApparentType:$,getUnionType:ba,isTypeAssignableTo:oo,createAnonymousType:_s,createSignature:Pu,createSymbol:bo,createIndexInfo:Fl,getAnyType:function(){return xe},getStringType:function(){return ki},getNumberType:function(){return Ui},createPromiseType:dy,createArrayType:tc,getElementTypeOfArrayType:AD,getBooleanType:function(){return xt},getFalseType:function(r){return r?ri:Gi},getTrueType:function(r){return r?Rt:pa},getVoidType:function(){return Vt},getUndefinedType:function(){return Nr},getNullType:function(){return Ti},getESSymbolType:function(){return ua},getNeverType:function(){return St},getOptionalType:function(){return si},getPromiseType:function(){return zv(!1)},getPromiseLikeType:function(){return nx(!1)},isSymbolAccessible:mf,isArrayType:_c,isTupleType:Ln,isArrayLikeType:ap,isTypeInvalidDueToUnionDiscriminant:Qy,getExactOptionalProperties:R8,getAllPossiblePropertiesOfTypes:Yy,getSuggestedSymbolForNonexistentProperty:Cb,getSuggestionForNonexistentProperty:kb,getSuggestedSymbolForNonexistentJSXAttribute:NC,getSuggestedSymbolForNonexistentSymbol:function(r,i,t){return Ab(r,e.escapeLeadingUnderscores(i),t)},getSuggestionForNonexistentSymbol:function(r,i,t){return A5(r,e.escapeLeadingUnderscores(i),t)},getSuggestedSymbolForNonexistentModule:r0,getSuggestionForNonexistentExport:P5,getSuggestedSymbolForNonexistentClassMember:PC,getBaseConstraintOfType:Cc,getDefaultFromTypeParameter:function(r){return r&&r.flags&262144?H_(r):void 0},resolveName:function(r,i,t,o){return os(i,e.escapeLeadingUnderscores(r),t,void 0,void 0,!1,o)},getJsxNamespace:function(r){return e.unescapeLeadingUnderscores(no(r))},getJsxFragmentFactory:function(r){var i=hS(r);return i&&e.unescapeLeadingUnderscores(e.getFirstIdentifier(i).escapedText)},getAccessibleSymbolChain:Xl,getTypePredicateOfSignature:wu,resolveExternalModuleName:function(r){var i=e.getParseTreeNode(r,e.isExpression);return i&&ko(i,i,!0)},resolveExternalModuleSymbol:Fs,tryGetThisTypeAt:function(r,i){var t=e.getParseTreeNode(r);return t&&tb(t,i)},getTypeArgumentConstraint:function(r){var i=e.getParseTreeNode(r,e.isTypeNode);return i&&gO(i)},getSuggestionDiagnostics:function(r,i){var t=e.getParseTreeNode(r,e.isSourceFile)||e.Debug.fail("Could not determine parsed source file.");if(e.skipTypeChecking(t,ye,y))return e.emptyArray;var o;try{return ce=i,pS(t),e.Debug.assert(!!(Da(t).flags&1)),o=e.addRange(o,ha.getDiagnostics(t.fileName)),zk(T6(t),function(s,u,T){!e.containsParseError(s)&&!S6(u,!!(s.flags&8388608))&&(o||(o=[])).push(Ve(Ve({},T),{category:e.DiagnosticCategory.Suggestion}))}),o||e.emptyArray}finally{ce=void 0}},runWithCancellationToken:function(r,i){try{return ce=r,i(Kr)}finally{ce=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Sf,isDeclarationVisible:sc,isPropertyAccessible:Nb,getTypeOnlyAliasDeclaration:gu,getMemberOverrideModifierStatus:JF};function ei(r,i,t,o){var s=e.getParseTreeNode(r,e.isCallLikeExpression);or=t;var u=s?sm(s,i,o):void 0;return or=void 0,u}var li=new e.Map,Si=new e.Map,qi=new e.Map,ft=new e.Map,bt=new e.Map,aa=new e.Map,sr=new e.Map,Ji=new e.Map,di=new e.Map,X=new e.Map,Ye=new e.Map,Be=new e.Map,Qe=[],_r=new e.Map,hr=bo(4,"unknown"),Dr=bo(0,"__resolving__"),Me=new e.Map,v=new e.Map,xe=ss(1,"any"),ze=ss(1,"any"),Je=ss(1,"any"),Oe=ss(1,"error"),Fr=ss(1,"unresolved"),Xr=ss(1,"any",131072),Or=ss(1,"intrinsic"),We=ss(2,"unknown"),mr=ss(2,"unknown"),Nr=ss(32768,"undefined"),Ur=ur?Nr:ss(32768,"undefined",131072),si=ss(32768,"undefined"),mi=Ce?ss(32768,"undefined"):Nr,Ti=ss(65536,"null"),hi=ur?Ti:ss(65536,"null",131072),ki=ss(4,"string"),Ui=ss(8,"number"),zi=ss(64,"bigint"),ri=ss(512,"false"),Gi=ss(512,"false"),Rt=ss(512,"true"),pa=ss(512,"true");Rt.regularType=pa,Rt.freshType=Rt,pa.regularType=pa,pa.freshType=Rt,ri.regularType=Gi,ri.freshType=ri,Gi.regularType=Gi,Gi.freshType=ri;var xt=ba([Gi,pa]),ua=ss(4096,"symbol"),Vt=ss(16384,"void"),St=ss(131072,"never"),Ci=ss(131072,"never"),Hi=ss(131072,"never",524288),Yi=ss(131072,"never"),yt=ss(131072,"never"),gt=ss(67108864,"object"),oa=ba([ki,Ui]),Bt=ba([ki,Ui,ua]),Pi=br?ki:Bt,Oi=ba([Ui,zi]),wi=ba([ki,Ui,xt,zi,Ti,Nr]),Qr=_d(function(r){return r.flags&262144?f8(r):r}),Ct=_d(function(r){return r.flags&262144?Je:r}),tt=_s(void 0,he,e.emptyArray,e.emptyArray,e.emptyArray),ta=_s(void 0,he,e.emptyArray,e.emptyArray,e.emptyArray);ta.objectFlags|=2048;var Xa=bo(2048,"__type");Xa.members=e.createSymbolTable();var on=_s(Xa,he,e.emptyArray,e.emptyArray,e.emptyArray),qr=_s(void 0,he,e.emptyArray,e.emptyArray,e.emptyArray);qr.instantiations=new e.Map;var bn=_s(void 0,he,e.emptyArray,e.emptyArray,e.emptyArray);bn.objectFlags|=524288;var Rn=_s(void 0,he,e.emptyArray,e.emptyArray,e.emptyArray),Sn=_s(void 0,he,e.emptyArray,e.emptyArray,e.emptyArray),zn=_s(void 0,he,e.emptyArray,e.emptyArray,e.emptyArray),Zn=vu(),ho=vu();ho.constraint=Zn;var Vo=vu(),Cn=tg(1,"<<unresolved>>",0,xe),go=Pu(void 0,void 0,void 0,e.emptyArray,xe,void 0,0,0),ro=Pu(void 0,void 0,void 0,e.emptyArray,Oe,void 0,0,0),Ko=Pu(void 0,void 0,void 0,e.emptyArray,xe,void 0,0,0),rs=Pu(void 0,void 0,void 0,e.emptyArray,Ci,void 0,0,0),rn=Fl(Ui,ki,!0),Do=new e.Map,io={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},pn=e_(xe,xe,xe),Qn=e_(xe,xe,We),wo=e_(St,xe,Nr),xo={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:t3,getGlobalIterableType:i3,getGlobalIterableIteratorType:a3,getGlobalGeneratorType:n3,resolveIterationType:zd,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},ds={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:o3,getGlobalIterableType:ox,getGlobalIterableIteratorType:s3,getGlobalGeneratorType:c3,resolveIterationType:function(r,i){return r},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},No,Ts=new e.Map,Ms=!1,xr,bi,ut,Ht,Ka,an,Ke,h,Ee,Re,nr,Gr,_i,Ei,Ki,Nt,ca,Fa,Ta,In,so,as,Ho,Ds,Os,mc,Hs,Mi,$t,ga,xn,yn,An,Pa,Mn,ao,co,De,zr,xi,et,je,ti,mt,Zt=new e.Map,ln=0,Ba=0,Oo=0,jr=!1,is=0,hc,nc,ns,Xs=Ou(""),rc=xf(0),uu=cD({negative:!1,base10Value:"0"}),Bc=[],Qu=[],uo=[],Xc=0,Ru=10,Dc=[],Yu=[],lu=[],qa=[],Bu=[],$u=[],au=[],Vr=[],fi=[],Ni=[],rt=[],Tt=[],Dt=[],jt=[],na=[],Za=[],ya=e.createDiagnosticCollection(),ha=e.createDiagnosticCollection(),Ja=new e.Map(e.getEntries({string:ki,number:Ui,bigint:zi,boolean:xt,symbol:ua,undefined:Nr})),Eo=Ad(),Hn,lo,Kn,Te=new e.Map,vr=new e.Map,Sr=new e.Map,Di=new e.Map,nt=new e.Map,_a=new e.Map,Na=e.createSymbolTable();Na.set(Jr.escapedName,Jr);var wn=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",ye.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return o9(),Kr;function no(r){if(r){var i=e.getSourceFileOfNode(r);if(i)if(e.isJsxOpeningFragment(r)){if(i.localJsxFragmentNamespace)return i.localJsxFragmentNamespace;var t=i.pragmas.get("jsxfrag");if(t){var o=e.isArray(t)?t[0]:t;if(i.localJsxFragmentFactory=e.parseIsolatedEntityName(o.arguments.factory,Se),e.visitNode(i.localJsxFragmentFactory,vo),i.localJsxFragmentFactory)return i.localJsxFragmentNamespace=e.getFirstIdentifier(i.localJsxFragmentFactory).escapedText}var s=hS(r);if(s)return i.localJsxFragmentFactory=s,i.localJsxFragmentNamespace=e.getFirstIdentifier(s).escapedText}else{var u=Go(i);if(u)return i.localJsxNamespace=u}}return Hn||(Hn="React",ye.jsxFactory?(lo=e.parseIsolatedEntityName(ye.jsxFactory,Se),e.visitNode(lo,vo),lo&&(Hn=e.getFirstIdentifier(lo).escapedText)):ye.reactNamespace&&(Hn=e.escapeLeadingUnderscores(ye.reactNamespace))),lo||(lo=e.factory.createQualifiedName(e.factory.createIdentifier(e.unescapeLeadingUnderscores(Hn)),"createElement")),Hn}function Go(r){if(r.localJsxNamespace)return r.localJsxNamespace;var i=r.pragmas.get("jsx");if(i){var t=e.isArray(i)?i[0]:i;if(r.localJsxFactory=e.parseIsolatedEntityName(t.arguments.factory,Se),e.visitNode(r.localJsxFactory,vo),r.localJsxFactory)return r.localJsxNamespace=e.getFirstIdentifier(r.localJsxFactory).escapedText}}function vo(r){return e.setTextRangePosEnd(r,-1,-1),e.visitEachChild(r,vo,e.nullTransformationContext)}function Vn(r,i){return x6(r,i),Xe}function to(r,i,t,o,s,u){var T=r?e.createDiagnosticForNode(r,i,t,o,s,u):e.createCompilerDiagnostic(i,t,o,s,u),q=ya.lookup(T);return q||(ya.add(T),T)}function Jo(r,i,t,o,s,u,T){var q=Wr(i,t,o,s,u,T);return q.skippedOn=r,q}function Xo(r,i,t,o,s,u){return r?e.createDiagnosticForNode(r,i,t,o,s,u):e.createCompilerDiagnostic(i,t,o,s,u)}function Wr(r,i,t,o,s,u){var T=Xo(r,i,t,o,s,u);return ya.add(T),T}function Ws(r,i){r?ya.add(i):ha.add(Ve(Ve({},i),{category:e.DiagnosticCategory.Suggestion}))}function nu(r,i,t,o,s,u,T){if(i.pos<0||i.end<0){if(!r)return;var q=e.getSourceFileOfNode(i);Ws(r,"message"in t?e.createFileDiagnostic(q,0,0,t,o,s,u,T):e.createDiagnosticForFileFromMessageChain(q,t));return}Ws(r,"message"in t?e.createDiagnosticForNode(i,t,o,s,u,T):e.createDiagnosticForNodeFromMessageChain(i,t))}function Tu(r,i,t,o,s,u,T){var q=Wr(r,t,o,s,u,T);if(i){var fe=e.createDiagnosticForNode(r,e.Diagnostics.Did_you_forget_to_use_await);e.addRelatedInfo(q,fe)}return q}function oc(r,i){var t=Array.isArray(r)?e.forEach(r,e.getJSDocDeprecatedTag):e.getJSDocDeprecatedTag(r);return t&&e.addRelatedInfo(i,e.createDiagnosticForNode(t,e.Diagnostics.The_declaration_was_marked_as_deprecated_here)),ha.add(i),i}function Qc(r){return!!(Yh(r)&134217728)}function fu(r,i,t){var o=e.createDiagnosticForNode(r,e.Diagnostics._0_is_deprecated,t);return oc(i,o)}function lp(r,i,t,o){var s=t?e.createDiagnosticForNode(r,e.Diagnostics.The_signature_0_of_1_is_deprecated,o,t):e.createDiagnosticForNode(r,e.Diagnostics._0_is_deprecated,o);return oc(i,s)}function bo(r,i,t){Ue++;var o=new ae(r|33554432,i);return o.checkFlags=t||0,o}function w_(r){var i=0;return r&2&&(i|=111551),r&1&&(i|=111550),r&4&&(i|=0),r&8&&(i|=900095),r&16&&(i|=110991),r&32&&(i|=899503),r&64&&(i|=788872),r&256&&(i|=899327),r&128&&(i|=899967),r&512&&(i|=110735),r&8192&&(i|=103359),r&32768&&(i|=46015),r&65536&&(i|=78783),r&262144&&(i|=526824),r&524288&&(i|=788968),r&2097152&&(i|=2097152),i}function i_(r,i){i.mergeId||(i.mergeId=N,N++),Dc[i.mergeId]=r}function Ls(r){var i=bo(r.flags,r.escapedName);return i.declarations=r.declarations?r.declarations.slice():[],i.parent=r.parent,r.valueDeclaration&&(i.valueDeclaration=r.valueDeclaration),r.constEnumOnlyModule&&(i.constEnumOnlyModule=!0),r.members&&(i.members=new e.Map(r.members)),r.exports&&(i.exports=new e.Map(r.exports)),i_(i,r),i}function hl(r,i,t){if(t===void 0&&(t=!1),!(r.flags&w_(i.flags))||(i.flags|r.flags)&67108864){if(i===r)return r;if(!(r.flags&33554432)){var o=Qo(r);if(o===hr)return i;r=Ls(o)}i.flags&512&&r.flags&512&&r.constEnumOnlyModule&&!i.constEnumOnlyModule&&(r.constEnumOnlyModule=!1),r.flags|=i.flags,i.valueDeclaration&&e.setValueDeclaration(r,i.valueDeclaration),e.addRange(r.declarations,i.declarations),i.members&&(r.members||(r.members=e.createSymbolTable()),Yc(r.members,i.members,t)),i.exports&&(r.exports||(r.exports=e.createSymbolTable()),Yc(r.exports,i.exports,t)),t||i_(r,i)}else if(r.flags&1024)r!==Rr&&Wr(i.declarations&&e.getNameOfDeclaration(i.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Ga(r));else{var s=!!(r.flags&384||i.flags&384),u=!!(r.flags&2||i.flags&2),T=s?e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:u?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,q=i.declarations&&e.getSourceFileOfNode(i.declarations[0]),fe=r.declarations&&e.getSourceFileOfNode(r.declarations[0]),Ne=e.isPlainJsFile(q,ye.checkJs),$e=e.isPlainJsFile(fe,ye.checkJs),Ze=Ga(i);if(q&&fe&&No&&!s&&q!==fe){var lr=e.comparePaths(q.path,fe.path)===-1?q:fe,yr=lr===q?fe:q,Zr=e.getOrUpdate(No,"".concat(lr.path,"|").concat(yr.path),function(){return{firstFile:lr,secondFile:yr,conflictingSymbols:new e.Map}}),ui=e.getOrUpdate(Zr.conflictingSymbols,Ze,function(){return{isBlockScoped:u,firstFileLocations:[],secondFileLocations:[]}});Ne||Ii(ui.firstFileLocations,i),$e||Ii(ui.secondFileLocations,r)}else Ne||xu(i,T,Ze,r),$e||xu(r,T,Ze,i)}return r;function Ii(Fi,Ri){if(Ri.declarations)for(var Xi=0,ea=Ri.declarations;Xi<ea.length;Xi++){var lt=ea[Xi];e.pushIfUnique(Fi,lt)}}}function xu(r,i,t,o){e.forEach(r.declarations,function(s){tf(s,i,t,o.declarations)})}function tf(r,i,t,o){for(var s=(e.getExpandoInitializer(r,!1)?e.getNameOfExpando(r):e.getNameOfDeclaration(r))||r,u=to(s,i,t),T=function($e){var Ze=(e.getExpandoInitializer($e,!1)?e.getNameOfExpando($e):e.getNameOfDeclaration($e))||$e;if(Ze===s)return"continue";u.relatedInformation=u.relatedInformation||[];var lr=e.createDiagnosticForNode(Ze,e.Diagnostics._0_was_also_declared_here,t),yr=e.createDiagnosticForNode(Ze,e.Diagnostics.and_here);if(e.length(u.relatedInformation)>=5||e.some(u.relatedInformation,function(Zr){return e.compareDiagnostics(Zr,yr)===0||e.compareDiagnostics(Zr,lr)===0}))return"continue";e.addRelatedInfo(u,e.length(u.relatedInformation)?yr:lr)},q=0,fe=o||e.emptyArray;q<fe.length;q++){var Ne=fe[q];T(Ne)}}function If(r,i){if(!(r!=null&&r.size))return i;if(!(i!=null&&i.size))return r;var t=e.createSymbolTable();return Yc(t,r),Yc(t,i),t}function Yc(r,i,t){t===void 0&&(t=!1),i.forEach(function(o,s){var u=r.get(s);r.set(s,u?hl(u,o,t):o)})}function Vs(r){var i,t,o,s=r.parent;if(((i=s.symbol.declarations)===null||i===void 0?void 0:i[0])!==s){e.Debug.assert(s.symbol.declarations.length>1);return}if(e.isGlobalScopeAugmentation(s))Yc(Lr,s.symbol.exports);else{var u=r.parent.parent.flags&8388608?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,T=xc(r,r,u,!0);if(!T)return;if(T=Fs(T),T.flags&1920)if(e.some(bi,function(Zr){return T===Zr.symbol})){var q=hl(s.symbol,T,!0);ut||(ut=new e.Map),ut.set(r.text,q)}else{if(((t=T.exports)===null||t===void 0?void 0:t.get("__export"))&&((o=s.symbol.exports)===null||o===void 0?void 0:o.size))for(var fe=$d(T,"resolvedExports"),Ne=0,$e=e.arrayFrom(s.symbol.exports.entries());Ne<$e.length;Ne++){var Ze=$e[Ne],lr=Ze[0],yr=Ze[1];fe.has(lr)&&!T.exports.has(lr)&&hl(fe.get(lr),yr)}hl(T,s.symbol)}else Wr(r,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,r.text)}}function Zu(r,i,t){i.forEach(function(s,u){var T=r.get(u);T?e.forEach(T.declarations,o(e.unescapeLeadingUnderscores(u),t)):r.set(u,s)});function o(s,u){return function(T){return ya.add(e.createDiagnosticForNode(T,u,s))}}}function Ma(r){if(r.flags&33554432)return r;var i=f(r);return Yu[i]||(Yu[i]=new ne)}function Da(r){var i=A(r);return lu[i]||(lu[i]=new ee)}function Ju(r){return r.kind===303&&!e.isExternalOrCommonJsModule(r)}function Pc(r,i,t){if(t){var o=Wn(r.get(i));if(o){if(e.Debug.assert((e.getCheckFlags(o)&1)===0,"Should never get an instantiated symbol here."),o.flags&t)return o;if(o.flags&2097152){var s=zo(o);if(s===hr||s.flags&t)return o}}}}function fp(r,i){var t=r.parent,o=r.parent.parent,s=Pc(t.locals,i,111551),u=Pc(Il(o.symbol),i,111551);return s&&u?[s,u]:e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function wf(r,i){var t=e.getSourceFileOfNode(r),o=e.getSourceFileOfNode(i),s=e.getEnclosingBlockScopeContainer(r);if(t!==o){if(ge&&(t.externalModuleIndicator||o.externalModuleIndicator)||!e.outFile(ye)||im(i)||r.flags&8388608||Ne(i,r))return!0;var u=y.getSourceFiles();return u.indexOf(t)<=u.indexOf(o)}if(r.pos<=i.pos&&!(e.isPropertyDeclaration(r)&&e.isThisProperty(i.parent)&&!r.initializer&&!r.exclamationToken)){if(r.kind===202){var T=e.getAncestor(i,202);return T?e.findAncestor(T,e.isBindingElement)!==e.findAncestor(r,e.isBindingElement)||r.pos<T.pos:wf(e.getAncestor(r,253),i)}else{if(r.kind===253)return!fe(r,i);if(e.isClassDeclaration(r))return!e.findAncestor(i,function(Ze){return e.isComputedPropertyName(Ze)&&Ze.parent.parent===r});if(e.isPropertyDeclaration(r))return!$e(r,i,!1);if(e.isParameterPropertyDeclaration(r,r.parent))return!(e.getEmitScriptTarget(ye)===99&&Fe&&e.getContainingClass(r)===e.getContainingClass(i)&&Ne(i,r))}return!0}if(i.parent.kind===274||i.parent.kind===270&&i.parent.isExportEquals||i.kind===270&&i.isExportEquals||!!(i.flags&4194304)||im(i)||q())return!0;if(Ne(i,r))return e.getEmitScriptTarget(ye)===99&&Fe&&e.getContainingClass(r)&&(e.isPropertyDeclaration(r)||e.isParameterPropertyDeclaration(r,r.parent))?!$e(r,i,!0):!0;return!1;function q(){return!!e.findAncestor(i,function(Ze){return e.isInterfaceDeclaration(Ze)||e.isTypeAliasDeclaration(Ze)})}function fe(Ze,lr){switch(Ze.parent.parent.kind){case 236:case 241:case 243:if(L_(lr,Ze,s))return!0;break}var yr=Ze.parent.parent;return e.isForInOrOfStatement(yr)&&L_(lr,yr.expression,s)}function Ne(Ze,lr){return!!e.findAncestor(Ze,function(yr){if(yr===s)return"quit";if(e.isFunctionLike(yr))return!0;if(e.isClassStaticBlockDeclaration(yr))return lr.pos<Ze.pos;var Zr=e.tryCast(yr.parent,e.isPropertyDeclaration);if(Zr){var ui=Zr.initializer===yr;if(ui)if(e.isStatic(yr.parent)){if(lr.kind===168)return!0;if(e.isPropertyDeclaration(lr)&&e.getContainingClass(Ze)===e.getContainingClass(lr)){var Ii=lr.name;if(e.isIdentifier(Ii)||e.isPrivateIdentifier(Ii)){var Fi=Jt(It(lr)),Ri=e.filter(lr.parent.members,e.isClassStaticBlockDeclaration);if(VF(Ii,Fi,Ri,lr.parent.pos,yr.pos))return!0}}}else{var Xi=lr.kind===166&&!e.isStatic(lr);if(!Xi||e.getContainingClass(Ze)!==e.getContainingClass(lr))return!0}}return!1})}function $e(Ze,lr,yr){if(lr.end>Ze.end)return!1;var Zr=e.findAncestor(lr,function(ui){if(ui===Ze)return"quit";switch(ui.kind){case 213:return!0;case 166:return yr&&(e.isPropertyDeclaration(Ze)&&ui.parent===Ze.parent||e.isParameterPropertyDeclaration(Ze,Ze.parent)&&ui.parent===Ze.parent.parent)?"quit":!0;case 234:switch(ui.parent.kind){case 171:case 168:case 172:return!0;default:return!1}default:return!1}});return Zr===void 0}}function Xp(r,i,t){var o=e.getEmitScriptTarget(ye),s=i;if(e.isParameter(t)&&s.body&&r.valueDeclaration&&r.valueDeclaration.pos>=s.body.pos&&r.valueDeclaration.end<=s.body.end&&o>=2){var u=Da(s);return u.declarationRequiresScopeChange===void 0&&(u.declarationRequiresScopeChange=e.forEach(s.parameters,T)||!1),!u.declarationRequiresScopeChange}return!1;function T(fe){return q(fe.name)||!!fe.initializer&&q(fe.initializer)}function q(fe){switch(fe.kind){case 213:case 212:case 255:case 170:return!1;case 168:case 171:case 172:case 294:return q(fe.name);case 166:return e.hasStaticModifier(fe)?o<99||!Fe:q(fe.name);default:return e.isNullishCoalesce(fe)||e.isOptionalChain(fe)?o<7:e.isBindingElement(fe)&&fe.dotDotDotToken&&e.isObjectBindingPattern(fe.parent)?o<4:e.isTypeNode(fe)?!1:e.forEachChild(fe,q)||!1}}}function os(r,i,t,o,s,u,T,q){return T===void 0&&(T=!1),q===void 0&&(q=!0),el(r,i,t,o,s,u,T,q,Pc)}function el(r,i,t,o,s,u,T,q,fe){var Ne,$e,Ze,lr=r,yr,Zr,ui,Ii,Fi,Ri=!1,Xi=r,ea,lt=!1;e:for(;r;){if(r.locals&&!Ju(r)&&(yr=fe(r.locals,i,t))){var Ia=!0;if(e.isFunctionLike(r)&&Zr&&Zr!==r.body?(t&yr.flags&788968&&Zr.kind!==318&&(Ia=yr.flags&262144?Zr===r.type||Zr.kind===163||Zr.kind===338||Zr.kind===339||Zr.kind===162:!1),t&yr.flags&3&&(Xp(yr,r,Zr)?Ia=!1:yr.flags&1&&(Ia=Zr.kind===163||Zr===r.type&&!!e.findAncestor(yr.valueDeclaration,e.isParameter)))):r.kind===188&&(Ia=Zr===r.trueType),Ia)break e;yr=void 0}switch(Ri=Ri||O_(r,Zr),r.kind){case 303:if(!e.isExternalOrCommonJsModule(r))break;lt=!0;case 260:var fa=((Ne=It(r))===null||Ne===void 0?void 0:Ne.exports)||he;if(r.kind===303||e.isModuleDeclaration(r)&&r.flags&8388608&&!e.isGlobalScopeAugmentation(r)){if(yr=fa.get("default")){var Dn=e.getLocalSymbolForExportDefault(yr);if(Dn&&yr.flags&t&&Dn.escapedName===i)break e;yr=void 0}var Ra=fa.get(i);if(Ra&&Ra.flags===2097152&&(e.getDeclarationOfKind(Ra,274)||e.getDeclarationOfKind(Ra,273)))break}if(i!=="default"&&(yr=fe(fa,i,t&2623475)))if(e.isSourceFile(r)&&r.commonJsModuleIndicator&&!(!(($e=yr.declarations)===null||$e===void 0)&&$e.some(e.isJSDocTypeAlias)))yr=void 0;else break e;break;case 259:if(yr=fe(((Ze=It(r))===null||Ze===void 0?void 0:Ze.exports)||he,i,t&8))break e;break;case 166:if(!e.isStatic(r)){var Bn=Gl(r.parent);Bn&&Bn.locals&&fe(Bn.locals,i,t&111551)&&(Ii=r)}break;case 256:case 225:case 257:if(yr=fe(It(r).members||he,i,t&788968)){if(!F_(yr,r)){yr=void 0;break}if(Zr&&e.isStatic(Zr)){Wr(Xi,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);return}break e}if(r.kind===225&&t&32){var Jn=r.name;if(Jn&&i===Jn.escapedText){yr=r.symbol;break e}}break;case 227:if(Zr===r.expression&&r.parent.token===94){var On=r.parent.parent;if(e.isClassLike(On)&&(yr=fe(It(On).members,i,t&788968))){o&&Wr(Xi,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 161:if(ea=r.parent.parent,(e.isClassLike(ea)||ea.kind===257)&&(yr=fe(It(ea).members,i,t&788968))){Wr(Xi,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 213:if(e.getEmitScriptTarget(ye)>=2)break;case 168:case 170:case 171:case 172:case 255:if(t&3&&i==="arguments"){yr=ci;break e}break;case 212:if(t&3&&i==="arguments"){yr=ci;break e}if(t&16){var Ao=r.name;if(Ao&&i===Ao.escapedText){yr=r.symbol;break e}}break;case 164:r.parent&&r.parent.kind===163&&(r=r.parent),r.parent&&(e.isClassElement(r.parent)||r.parent.kind===256)&&(r=r.parent);break;case 343:case 336:case 337:var $i=e.getJSDocRoot(r);$i&&(r=$i.parent);break;case 163:Zr&&(Zr===r.initializer||Zr===r.name&&e.isBindingPattern(Zr))&&(Fi||(Fi=r));break;case 202:Zr&&(Zr===r.initializer||Zr===r.name&&e.isBindingPattern(Zr))&&e.isParameterDeclaration(r)&&!Fi&&(Fi=r);break;case 189:if(t&262144){var Vi=r.typeParameter.name;if(Vi&&i===Vi.escapedText){yr=r.typeParameter.symbol;break e}}break}t_(r)&&(ui=r),Zr=r,r=e.isJSDocTemplateTag(r)?e.getEffectiveContainerForJSDocTemplateTag(r)||r.parent:(e.isJSDocParameterTag(r)||e.isJSDocReturnTag(r))&&e.getHostSignatureFromJSDoc(r)||r.parent}if(u&&yr&&(!ui||yr!==ui.symbol)&&(yr.isReferenced|=t),!yr){if(Zr&&(e.Debug.assert(Zr.kind===303),Zr.commonJsModuleIndicator&&i==="exports"&&t&Zr.symbol.flags))return Zr.symbol;T||(yr=fe(Lr,i,t))}if(!yr&&lr&&e.isInJSFile(lr)&&lr.parent&&e.isRequireCall(lr.parent,!1))return be;if(!yr){if(o&&oe&&(!Xi||!Ff(Xi,i,s)&&!M_(Xi)&&!Qp(Xi,i,t)&&!gp(Xi,i)&&!Yp(Xi,i,t)&&!Cd(Xi,i,t)&&!pp(Xi,i,t))){var Ot=void 0;if(q&&Xc<Ru){Ot=Ab(lr,i,t);var Wa=(Ot==null?void 0:Ot.valueDeclaration)&&e.isAmbientModule(Ot.valueDeclaration)&&e.isGlobalScopeAugmentation(Ot.valueDeclaration);if(Wa&&(Ot=void 0),Ot){var Qt=Ga(Ot),Qa=Eb(lr,Ot,!1),En=t===1920||s&&typeof s!="string"&&e.nodeIsSynthesized(s)?e.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1:Qa?e.Diagnostics.Could_not_find_name_0_Did_you_mean_1:e.Diagnostics.Cannot_find_name_0_Did_you_mean_1,Gn=Xo(Xi,En,Nc(s),Qt);Ws(!Qa,Gn),Ot.valueDeclaration&&e.addRelatedInfo(Gn,e.createDiagnosticForNode(Ot.valueDeclaration,e.Diagnostics._0_is_declared_here,Qt))}}if(!Ot&&s){var ia=C5(s);ia?Wr(Xi,o,Nc(s),ia):Wr(Xi,o,Nc(s))}Xc++}return}if(o&&oe){if(Ii&&!(e.getEmitScriptTarget(ye)===99&&Fe)){var Xn=Ii.name;Wr(Xi,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(Xn),Nc(s));return}if(Xi&&(t&2||(t&32||t&384)&&(t&111551)===111551)){var ii=$c(yr);(ii.flags&2||ii.flags&32||ii.flags&384)&&mp(ii,Xi)}if(yr&&lt&&(t&111551)===111551&&!(lr.flags&4194304)){var Ar=Wn(yr);e.length(Ar.declarations)&&e.every(Ar.declarations,function(qt){return e.isNamespaceExportDeclaration(qt)||e.isSourceFile(qt)&&!!qt.symbol.globalExports})&&nu(!ye.allowUmdGlobalAccess,Xi,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(i))}if(yr&&Fi&&!Ri&&(t&111551)===111551){var Pt=Wn(Og(yr)),$i=e.getRootDeclaration(Fi);Pt===It(Fi)?Wr(Xi,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(Fi.name)):Pt.valueDeclaration&&Pt.valueDeclaration.pos>Fi.pos&&$i.parent.locals&&fe($i.parent.locals,Pt.escapedName,t)===Pt&&Wr(Xi,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(Fi.name),e.declarationNameToString(Xi))}if(yr&&Xi&&t&111551&&yr.flags&2097152&&!(yr.flags&111551)&&!e.isValidTypeOnlyAliasUseSite(Xi)){var pt=gu(yr);if(pt){var En=pt.kind===274?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,Xt=e.unescapeLeadingUnderscores(i);Of(Wr(Xi,En,Xt),pt,Xt)}}}return yr}function Of(r,i,t){return i?e.addRelatedInfo(r,e.createDiagnosticForNode(i,i.kind===274?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,t)):r}function O_(r,i){return r.kind!==213&&r.kind!==212?e.isTypeQueryNode(r)||(e.isFunctionLikeDeclaration(r)||r.kind===166&&!e.isStatic(r))&&(!i||i!==r.name):i&&i===r.name?!1:r.asteriskToken||e.hasSyntacticModifier(r,256)?!0:!e.getImmediatelyInvokedFunctionExpression(r)}function t_(r){switch(r.kind){case 255:case 256:case 257:case 259:case 258:case 260:return!0;default:return!1}}function Nc(r){return e.isString(r)?e.unescapeLeadingUnderscores(r):e.declarationNameToString(r)}function F_(r,i){if(r.declarations)for(var t=0,o=r.declarations;t<o.length;t++){var s=o[t];if(s.kind===162){var u=e.isJSDocTemplateTag(s.parent)?e.getJSDocHost(s.parent):s.parent;if(u===i)return!(e.isJSDocTemplateTag(s.parent)&&e.find(s.parent.parent.tags,e.isJSDocTypeAlias))}}return!1}function Ff(r,i,t){if(!e.isIdentifier(r)||r.escapedText!==i||C6(r)||im(r))return!1;for(var o=e.getThisContainer(r,!1),s=o;s;){if(e.isClassLike(s.parent)){var u=It(s.parent);if(!u)break;var T=Jt(u);if(tn(T,i))return Wr(r,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Nc(t),Ga(u)),!0;if(s===o&&!e.isStatic(s)){var q=Io(u).thisType;if(tn(q,i))return Wr(r,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Nc(t)),!0}}s=s.parent}return!1}function M_(r){var i=_p(r);return i&&Ps(i,64,!0)?(Wr(r,e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,e.getTextOfNode(i)),!0):!1}function _p(r){switch(r.kind){case 79:case 205:return r.parent?_p(r.parent):void 0;case 227:if(e.isEntityNameExpression(r.expression))return r.expression;default:return}}function Qp(r,i,t){var o=1920|(e.isInJSFile(r)?111551:0);if(t===o){var s=Qo(os(r,i,788968&~o,void 0,void 0,!1)),u=r.parent;if(s){if(e.isQualifiedName(u)){e.Debug.assert(u.left===r,"Should only be resolving left side of qualified name as a namespace");var T=u.right.escapedText,q=tn(Io(s),T);if(q)return Wr(u,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,e.unescapeLeadingUnderscores(i),e.unescapeLeadingUnderscores(T)),!0}return Wr(r,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(i)),!0}}return!1}function pp(r,i,t){if(t&788584){var o=Qo(os(r,i,111127,void 0,void 0,!1));if(o&&!(o.flags&1920))return Wr(r,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.unescapeLeadingUnderscores(i)),!0}return!1}function dp(r){return r==="any"||r==="string"||r==="number"||r==="boolean"||r==="never"||r==="unknown"}function gp(r,i){return dp(i)&&r.parent.kind===274?(Wr(r,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,i),!0):!1}function Yp(r,i,t){if(t&111551){if(dp(i))return Wr(r,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(i)),!0;var o=Qo(os(r,i,788544,void 0,void 0,!1));if(o&&!(o.flags&1024)){var s=e.unescapeLeadingUnderscores(i);return a_(i)?Wr(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,s):$p(r,o)?Wr(r,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,s,s==="K"?"P":"K"):Wr(r,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,s),!0}}return!1}function $p(r,i){var t=e.findAncestor(r.parent,function(s){return e.isComputedPropertyName(s)||e.isPropertySignature(s)?!1:e.isTypeLiteralNode(s)||"quit"});if(t&&t.members.length===1){var o=Io(i);return!!(o.flags&1048576)&&Dg(o,384,!0)}return!1}function a_(r){switch(r){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function Cd(r,i,t){if(t&111127){var o=Qo(os(r,i,1024,void 0,void 0,!1));if(o)return Wr(r,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(i)),!0}else if(t&788544){var o=Qo(os(r,i,1536,void 0,void 0,!1));if(o)return Wr(r,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(i)),!0}return!1}function mp(r,i){var t;if(e.Debug.assert(!!(r.flags&2||r.flags&32||r.flags&384)),!(r.flags&67108881&&r.flags&32)){var o=(t=r.declarations)===null||t===void 0?void 0:t.find(function(T){return e.isBlockOrCatchScoped(T)||e.isClassLike(T)||T.kind===259});if(o===void 0)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(o.flags&8388608)&&!wf(o,i)){var s=void 0,u=e.declarationNameToString(e.getNameOfDeclaration(o));r.flags&2?s=Wr(i,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,u):r.flags&32?s=Wr(i,e.Diagnostics.Class_0_used_before_its_declaration,u):r.flags&256?s=Wr(i,e.Diagnostics.Enum_0_used_before_its_declaration,u):(e.Debug.assert(!!(r.flags&128)),e.shouldPreserveConstEnums(ye)&&(s=Wr(i,e.Diagnostics.Enum_0_used_before_its_declaration,u))),s&&e.addRelatedInfo(s,e.createDiagnosticForNode(o,e.Diagnostics._0_is_declared_here,u))}}}function L_(r,i,t){return!!i&&!!e.findAncestor(r,function(o){return o===i||(o===t||e.isFunctionLike(o)&&!e.getImmediatelyInvokedFunctionExpression(o)?"quit":!1)})}function rl(r){switch(r.kind){case 264:return r;case 266:return r.parent;case 267:return r.parent.parent;case 269:return r.parent.parent.parent;default:return}}function ju(r){return r.declarations&&e.findLast(r.declarations,_u)}function _u(r){return r.kind===264||r.kind===263||r.kind===266&&!!r.name||r.kind===267||r.kind===273||r.kind===269||r.kind===274||r.kind===270&&e.exportAssignmentIsAlias(r)||e.isBinaryExpression(r)&&e.getAssignmentDeclarationKind(r)===2&&e.exportAssignmentIsAlias(r)||e.isAccessExpression(r)&&e.isBinaryExpression(r.parent)&&r.parent.left===r&&r.parent.operatorToken.kind===63&&Eu(r.parent.right)||r.kind===295||r.kind===294&&Eu(r.initializer)||e.isVariableDeclarationInitializedToBareOrAccessedRequire(r)}function Eu(r){return e.isAliasableExpression(r)||e.isFunctionExpression(r)&&ml(r)}function Dl(r,i){var t=Rf(r);if(t){var o=e.getLeftmostAccessExpression(t.expression).arguments[0];return e.isIdentifier(t.name)?Qo(tn(FT(o),t.name.escapedText)):void 0}if(e.isVariableDeclaration(r)||r.moduleReference.kind===276){var s=ko(r,e.getExternalModuleRequireArgument(r)||e.getExternalModuleImportEqualsDeclarationExpression(r)),u=Fs(s);return jc(r,s,u,!1),u}var T=Kt(r.moduleReference,i);return Zp(r,T),T}function Zp(r,i){if(jc(r,void 0,i,!1)&&!r.isTypeOnly){var t=gu(It(r)),o=t.kind===274,s=o?e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,u=o?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,T=e.unescapeLeadingUnderscores(t.name.escapedText);e.addRelatedInfo(Wr(r.moduleReference,s),e.createDiagnosticForNode(t,u,T))}}function Wl(r,i,t,o){var s=r.exports.get("export="),u=s?tn(Jt(s),i):r.exports.get(i),T=Qo(u,o);return jc(t,u,T,!1),T}function ed(r){return e.isExportAssignment(r)&&!r.isExportEquals||e.hasSyntacticModifier(r,512)||e.isExportSpecifier(r)}function n_(r){return e.isStringLiteralLike(r)?e.getModeForUsageLocation(e.getSourceFileOfNode(r),r):void 0}function vp(r,i){return r===e.ModuleKind.ESNext&&i===e.ModuleKind.CommonJS}function o_(r){var i=n_(r);return i===e.ModuleKind.ESNext&&e.endsWith(r.text,".json")}function R_(r,i,t,o){var s=r&&n_(o);if(r&&s!==void 0){var u=vp(s,r.impliedNodeFormat);if(s===e.ModuleKind.ESNext||u)return u}if(!cr)return!1;if(!r||r.isDeclarationFile){var T=Wl(i,"default",void 0,!0);return!(T&&e.some(T.declarations,ed)||Wl(i,e.escapeLeadingUnderscores("__esModule"),void 0,t))}return e.isSourceFileJS(r)?!r.externalModuleIndicator&&!Wl(i,e.escapeLeadingUnderscores("__esModule"),void 0,t):ff(i)}function af(r,i){var t,o=ko(r,r.parent.moduleSpecifier);if(o){var s=void 0;e.isShorthandAmbientModuleSymbol(o)?s=o:s=Wl(o,"default",r,i);var u=(t=o.declarations)===null||t===void 0?void 0:t.find(e.isSourceFile),T=o_(r.parent.moduleSpecifier),q=R_(u,o,i,r.parent.moduleSpecifier);if(!s&&!q&&!T)if(ff(o)){var fe=ge>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",Ne=o.exports.get("export="),$e=Ne.valueDeclaration,Ze=Wr(r.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,Ga(o),fe);$e&&e.addRelatedInfo(Ze,e.createDiagnosticForNode($e,e.Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,fe))}else yp(o,r);else if(q||T){var lr=Fs(o,i)||Qo(o,i);return jc(r,o,lr,!1),lr}return jc(r,s,void 0,!1),s}}function yp(r,i){var t,o,s;if(!((t=r.exports)===null||t===void 0)&&t.has(i.symbol.escapedName))Wr(i.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Ga(r),Ga(i.symbol));else{var u=Wr(i.name,e.Diagnostics.Module_0_has_no_default_export,Ga(r)),T=(o=r.exports)===null||o===void 0?void 0:o.get("__export");if(T){var q=(s=T.declarations)===null||s===void 0?void 0:s.find(function(fe){var Ne,$e;return!!(e.isExportDeclaration(fe)&&fe.moduleSpecifier&&(($e=(Ne=ko(fe,fe.moduleSpecifier))===null||Ne===void 0?void 0:Ne.exports)===null||$e===void 0?void 0:$e.has("default")))});q&&e.addRelatedInfo(u,e.createDiagnosticForNode(q,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}}function B_(r,i){var t=r.parent.parent.moduleSpecifier,o=ko(r,t),s=su(o,t,i,!1);return jc(r,o,s,!1),s}function kd(r,i){var t=r.parent.moduleSpecifier,o=t&&ko(r,t),s=t&&su(o,t,i,!1);return jc(r,o,s,!1),s}function Mf(r,i){if(r===hr&&i===hr)return hr;if(r.flags&790504)return r;var t=bo(r.flags|i.flags,r.escapedName);return t.declarations=e.deduplicate(e.concatenate(r.declarations,i.declarations),e.equateValues),t.parent=r.parent||i.parent,r.valueDeclaration&&(t.valueDeclaration=r.valueDeclaration),i.members&&(t.members=new e.Map(i.members)),r.exports&&(t.exports=new e.Map(r.exports)),t}function hp(r,i,t,o){if(r.flags&1536){var s=Ns(r).get(i.escapedText),u=Qo(s,o);return jc(t,s,u,!1),u}}function ic(r,i){if(r.flags&3){var t=r.valueDeclaration.type;if(t)return Qo(tn(Ua(t),i))}}function Jc(r,i,t){var o,s;t===void 0&&(t=!1);var u=e.getExternalModuleRequireArgument(r)||r.moduleSpecifier,T=ko(r,u),q=!e.isPropertyAccessExpression(i)&&i.propertyName||i.name;if(!!e.isIdentifier(q)){var fe=q.escapedText==="default"&&!!(ye.allowSyntheticDefaultImports||e.getESModuleInterop(ye)),Ne=su(T,u,!1,fe);if(Ne&&q.escapedText){if(e.isShorthandAmbientModuleSymbol(T))return T;var $e=void 0;T&&T.exports&&T.exports.get("export=")?$e=tn(Jt(Ne),q.escapedText,!0):$e=ic(Ne,q.escapedText),$e=Qo($e,t);var Ze=hp(Ne,q,i,t);if(Ze===void 0&&q.escapedText==="default"){var lr=(o=T.declarations)===null||o===void 0?void 0:o.find(e.isSourceFile);(o_(u)||R_(lr,T,t,u))&&(Ze=Fs(T,t)||Qo(T,t))}var yr=Ze&&$e&&Ze!==$e?Mf($e,Ze):Ze||$e;if(!yr){var Zr=ts(T,r),ui=e.declarationNameToString(q),Ii=r0(q,Ne);if(Ii!==void 0){var Fi=Ga(Ii),Ri=Wr(q,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,Zr,ui,Fi);Ii.valueDeclaration&&e.addRelatedInfo(Ri,e.createDiagnosticForNode(Ii.valueDeclaration,e.Diagnostics._0_is_declared_here,Fi))}else!((s=T.exports)===null||s===void 0)&&s.has("default")?Wr(q,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,Zr,ui):Lf(r,q,ui,T,Zr)}return yr}}}function Lf(r,i,t,o,s){var u,T,q=(T=(u=o.valueDeclaration)===null||u===void 0?void 0:u.locals)===null||T===void 0?void 0:T.get(i.escapedText),fe=o.exports;if(q){var Ne=fe==null?void 0:fe.get("export=");if(Ne)Uu(Ne,q)?nf(r,i,t,s):Wr(i,e.Diagnostics.Module_0_has_no_exported_member_1,s,t);else{var $e=fe?e.find(Bv(fe),function(lr){return!!Uu(lr,q)}):void 0,Ze=$e?Wr(i,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,s,t,Ga($e)):Wr(i,e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,s,t);q.declarations&&e.addRelatedInfo.apply(void 0,qe([Ze],e.map(q.declarations,function(lr,yr){return e.createDiagnosticForNode(lr,yr===0?e.Diagnostics._0_is_declared_here:e.Diagnostics.and_here,t)}),!1))}}else Wr(i,e.Diagnostics.Module_0_has_no_exported_member_1,s,t)}function nf(r,i,t,o){if(ge>=e.ModuleKind.ES2015){var s=e.getESModuleInterop(ye)?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;Wr(i,s,t)}else if(e.isInJSFile(r)){var s=e.getESModuleInterop(ye)?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;Wr(i,s,t)}else{var s=e.getESModuleInterop(ye)?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;Wr(i,s,t,t,o)}}function s_(r,i){var t=e.isBindingElement(r)?e.getRootDeclaration(r):r.parent.parent.parent,o=Rf(t),s=Jc(t,o||r,i),u=r.propertyName||r.name;return o&&s&&e.isIdentifier(u)?Qo(tn(Jt(s),u.escapedText),i):(jc(r,void 0,s,!1),s)}function Rf(r){if(e.isVariableDeclaration(r)&&r.initializer&&e.isPropertyAccessExpression(r.initializer))return r.initializer}function c_(r,i){var t=Fs(r.parent.symbol,i);return jc(r,void 0,t,!1),t}function Cu(r,i,t){var o=r.parent.parent.moduleSpecifier?Jc(r.parent.parent,r,t):Ps(r.propertyName||r.name,i,!1,t);return jc(r,void 0,o,!1),o}function Tc(r,i){var t=e.isExportAssignment(r)?r.expression:r.right,o=pu(t,i);return jc(r,void 0,o,!1),o}function pu(r,i){if(e.isClassExpression(r))return js(r).symbol;if(!(!e.isEntityName(r)&&!e.isEntityNameExpression(r))){var t=Ps(r,901119,!0,i);return t||(js(r),Da(r).resolvedSymbol)}}function du(r,i){var t=r.initializer;return pu(t,i)}function bl(r,i){if(!!(e.isBinaryExpression(r.parent)&&r.parent.left===r&&r.parent.operatorToken.kind===63))return pu(r.parent.right,i)}function of(r,i){switch(i===void 0&&(i=!1),r.kind){case 264:case 253:return Dl(r,i);case 266:return af(r,i);case 267:return B_(r,i);case 273:return kd(r,i);case 269:case 202:return s_(r,i);case 274:return Cu(r,901119,i);case 270:case 220:return Tc(r,i);case 263:return c_(r,i);case 295:return Ps(r.name,901119,!0,i);case 294:return du(r,i);case 206:case 205:return bl(r,i);default:return e.Debug.fail()}}function il(r,i){return i===void 0&&(i=901119),r?(r.flags&(2097152|i))===2097152||!!(r.flags&2097152&&r.flags&67108864):!1}function Qo(r,i){return!i&&il(r)?zo(r):r}function zo(r){e.Debug.assert((r.flags&2097152)!==0,"Should only get Alias here.");var i=Ma(r);if(i.target)i.target===Dr&&(i.target=hr);else{i.target=Dr;var t=ju(r);if(!t)return e.Debug.fail();var o=of(t);i.target===Dr?i.target=o||hr:Wr(t,e.Diagnostics.Circular_definition_of_import_alias_0,Ga(r))}return i.target}function Ro(r){var i=Ma(r);if(i.target!==Dr)return zo(r)}function jc(r,i,t,o){if(!r||e.isPropertyAccessExpression(r))return!1;var s=It(r);if(e.isTypeOnlyImportOrExportDeclaration(r)){var u=Ma(s);return u.typeOnlyDeclaration=r,!0}var T=Ma(s);return Bf(T,i,o)||Bf(T,t,o)}function Bf(r,i,t){var o,s,u;if(i&&(r.typeOnlyDeclaration===void 0||t&&r.typeOnlyDeclaration===!1)){var T=(s=(o=i.exports)===null||o===void 0?void 0:o.get("export="))!==null&&s!==void 0?s:i,q=T.declarations&&e.find(T.declarations,e.isTypeOnlyImportOrExportDeclaration);r.typeOnlyDeclaration=(u=q!=null?q:Ma(T).typeOnlyDeclaration)!==null&&u!==void 0?u:!1}return!!r.typeOnlyDeclaration}function gu(r){if(!!(r.flags&2097152)){var i=Ma(r);return i.typeOnlyDeclaration||void 0}}function Jf(r){var i=It(r),t=zo(i);if(t){var o=t===hr||t.flags&111551&&!fv(t)&&!gu(i);o&&jf(i)}}function jf(r){var i=Ma(r);if(!i.referenced){i.referenced=!0;var t=ju(r);if(!t)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(t)){var o=Qo(r);(o===hr||o.flags&111551)&&js(t.moduleReference)}}}function sf(r){var i=Ma(r);i.constEnumReferenced||(i.constEnumReferenced=!0)}function Kt(r,i){return r.kind===79&&e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),r.kind===79||r.parent.kind===160?Ps(r,1920,!1,i):(e.Debug.assert(r.parent.kind===264),Ps(r,901119,!1,i))}function ts(r,i){return r.parent?ts(r.parent,i)+"."+Ga(r):Ga(r,i,void 0,20)}function mn(r){for(;e.isQualifiedName(r.parent);)r=r.parent;return r}function Sl(r){var i=e.getFirstIdentifier(r),t=os(i,i.escapedText,111551,void 0,i,!0);if(!!t){for(;e.isQualifiedName(i.parent);){var o=Jt(t);if(t=tn(o,i.parent.right.escapedText),!t)return;i=i.parent}return t}}function Ps(r,i,t,o,s){if(!e.nodeIsMissing(r)){var u=1920|(e.isInJSFile(r)?i&111551:0),T;if(r.kind===79){var q=i===u||e.nodeIsSynthesized(r)?e.Diagnostics.Cannot_find_namespace_0:CE(e.getFirstIdentifier(r)),fe=e.isInJSFile(r)&&!e.nodeIsSynthesized(r)?tl(r,i):void 0;if(T=Wn(os(s||r,r.escapedText,i,t||fe?void 0:q,r,!0,!1)),!T)return Wn(fe)}else if(r.kind===160||r.kind===205){var Ne=r.kind===160?r.left:r.expression,$e=r.kind===160?r.right:r.name,Ze=Ps(Ne,u,t,!1,s);if(!Ze||e.nodeIsMissing($e))return;if(Ze===hr)return Ze;if(Ze.valueDeclaration&&e.isInJSFile(Ze.valueDeclaration)&&e.isVariableDeclaration(Ze.valueDeclaration)&&Ze.valueDeclaration.initializer&&rk(Ze.valueDeclaration.initializer)){var lr=Ze.valueDeclaration.initializer.arguments[0],yr=ko(lr,lr);if(yr){var Zr=Fs(yr);Zr&&(Ze=Zr)}}if(T=Wn(Pc(Ns(Ze),$e.escapedText,i)),!T){if(!t){var ui=ts(Ze),Ii=e.declarationNameToString($e),Fi=r0($e,Ze);if(Fi){Wr($e,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,ui,Ii,Ga(Fi));return}var Ri=e.isQualifiedName(r)&&mn(r),Xi=Ht&&i&788968&&Ri&&!e.isTypeOfExpression(Ri.parent)&&Sl(Ri);if(Xi){Wr(Ri,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.entityNameToString(Ri));return}if(i&1920&&e.isQualifiedName(r.parent)){var ea=Wn(Pc(Ns(Ze),$e.escapedText,788968));if(ea){Wr(r.parent.right,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,Ga(ea),e.unescapeLeadingUnderscores(r.parent.right.escapedText));return}}Wr($e,e.Diagnostics.Namespace_0_has_no_exported_member_1,ui,Ii)}return}}else throw e.Debug.assertNever(r,"Unknown entity name kind.");return e.Debug.assert((e.getCheckFlags(T)&1)===0,"Should never get an instantiated symbol here."),!e.nodeIsSynthesized(r)&&e.isEntityName(r)&&(T.flags&2097152||r.parent.kind===270)&&jc(e.getAliasDeclarationFromName(r),T,void 0,!0),T.flags&i||o?T:zo(T)}}function tl(r,i){if(ch(r.parent)){var t=Ut(r.parent);if(t)return os(t,r.escapedText,i,void 0,r,!0)}}function Ut(r){var i=e.findAncestor(r,function(u){return e.isJSDocNode(u)||u.flags&4194304?e.isJSDocTypeAlias(u):"quit"});if(!i){var t=e.getJSDocHost(r);if(t&&e.isExpressionStatement(t)&&e.isPrototypePropertyAssignment(t.expression)){var o=It(t.expression.left);if(o)return Dp(o)}if(t&&e.isFunctionExpression(t)&&e.isPrototypePropertyAssignment(t.parent)&&e.isExpressionStatement(t.parent.parent)){var o=It(t.parent.left);if(o)return Dp(o)}if(t&&(e.isObjectLiteralMethod(t)||e.isPropertyAssignment(t))&&e.isBinaryExpression(t.parent.parent)&&e.getAssignmentDeclarationKind(t.parent.parent)===6){var o=It(t.parent.parent.left);if(o)return Dp(o)}var s=e.getEffectiveJSDocHost(r);if(s&&e.isFunctionLike(s)){var o=It(s);return o&&o.valueDeclaration}}}function Dp(r){var i=r.parent.valueDeclaration;if(!!i){var t=e.isAssignmentDeclaration(i)?e.getAssignedExpandoInitializer(i):e.hasOnlyExpressionInitializer(i)?e.getDeclaredExpandoInitializer(i):void 0;return t||i}}function cf(r){var i=r.valueDeclaration;if(!(!i||!e.isInJSFile(i)||r.flags&524288||e.getExpandoInitializer(i,!1))){var t=e.isVariableDeclaration(i)?e.getDeclaredExpandoInitializer(i):e.getAssignedExpandoInitializer(i);if(t){var o=It(t);if(o)return Lb(o,r)}}}function ko(r,i,t){var o=e.getEmitModuleResolutionKind(ye)===e.ModuleResolutionKind.Classic,s=o?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;return xc(r,i,t?void 0:s)}function xc(r,i,t,o){return o===void 0&&(o=!1),e.isStringLiteralLike(i)?ou(r,i.text,t,i,o):void 0}function ou(r,i,t,o,s){var u,T,q,fe,Ne,$e,Ze;if(s===void 0&&(s=!1),e.startsWith(i,"@types/")){var lr=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,yr=e.removePrefix(i,"@types/");Wr(o,lr,yr,i)}var Zr=Ug(i,!0);if(Zr)return Zr;var ui=e.getSourceFileOfNode(r),Ii=e.isStringLiteralLike(r)?r:((u=e.findAncestor(r,e.isImportCall))===null||u===void 0?void 0:u.arguments[0])||((T=e.findAncestor(r,e.isImportDeclaration))===null||T===void 0?void 0:T.moduleSpecifier)||((q=e.findAncestor(r,e.isExternalModuleImportEqualsDeclaration))===null||q===void 0?void 0:q.moduleReference.expression)||((fe=e.findAncestor(r,e.isExportDeclaration))===null||fe===void 0?void 0:fe.moduleSpecifier)||((Ne=e.isModuleDeclaration(r)?r:r.parent&&e.isModuleDeclaration(r.parent)&&r.parent.name===r?r.parent:void 0)===null||Ne===void 0?void 0:Ne.name)||(($e=e.isLiteralImportTypeNode(r)?r:void 0)===null||$e===void 0?void 0:$e.argument.literal),Fi=Ii&&e.isStringLiteralLike(Ii)?e.getModeForUsageLocation(ui,Ii):ui.impliedNodeFormat,Ri=e.getResolvedModule(ui,i,Fi),Xi=Ri&&e.getResolutionDiagnostic(ye,Ri),ea=Ri&&(!Xi||Xi===e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&y.getSourceFile(Ri.resolvedFileName);if(ea){if(Xi&&Wr(o,Xi,i,Ri.resolvedFileName),ea.symbol){if(Ri.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(Ri.extension)&&uf(!1,o,Ri,i),e.getEmitModuleResolutionKind(ye)===e.ModuleResolutionKind.Node12||e.getEmitModuleResolutionKind(ye)===e.ModuleResolutionKind.NodeNext){var lt=ui.impliedNodeFormat===e.ModuleKind.CommonJS&&!e.findAncestor(r,e.isImportCall)||!!e.findAncestor(r,e.isImportEqualsDeclaration);lt&&ea.impliedNodeFormat===e.ModuleKind.ESNext&&Wr(o,e.Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_synchronously_Use_dynamic_import_instead,i),Fi===e.ModuleKind.ESNext&&ye.resolveJsonModule&&Ri.extension===".json"&&Wr(o,e.Diagnostics.JSON_imports_are_experimental_in_ES_module_mode_imports)}return Wn(ea.symbol)}t&&Wr(o,e.Diagnostics.File_0_is_not_a_module,ea.fileName);return}if(bi){var Ia=e.findBestPatternMatch(bi,function(Wa){return Wa.pattern},i);if(Ia){var fa=ut&&ut.get(i);return Wn(fa||Ia.symbol)}}if(Ri&&!e.resolutionExtensionIsTSOrJson(Ri.extension)&&Xi===void 0||Xi===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(s){var lr=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;Wr(o,lr,i,Ri.resolvedFileName)}else uf(Tr&&!!t,o,Ri,i);return}if(t){if(Ri){var Dn=y.getProjectReferenceRedirect(Ri.resolvedFileName);if(Dn){Wr(o,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,Dn,Ri.resolvedFileName);return}}if(Xi)Wr(o,Xi,i,Ri.resolvedFileName);else{var Ra=e.tryExtractTSExtension(i),Bn=e.pathIsRelative(i)&&!e.hasExtension(i),Jn=e.getEmitModuleResolutionKind(ye),On=Jn===e.ModuleResolutionKind.Node12||Jn===e.ModuleResolutionKind.NodeNext;if(Ra){var lr=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,Ao=e.removeExtension(i,Ra),$i=Ao;ge>=e.ModuleKind.ES2015&&($i+=Ra===".mts"?".mjs":Ra===".cts"?".cjs":".js"),Wr(o,lr,Ra,$i)}else if(!ye.resolveJsonModule&&e.fileExtensionIs(i,".json")&&e.getEmitModuleResolutionKind(ye)!==e.ModuleResolutionKind.Classic&&e.hasJsonModuleEmitEnabled(ye))Wr(o,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,i);else if(Fi===e.ModuleKind.ESNext&&On&&Bn){var Vi=e.getNormalizedAbsolutePath(i,e.getDirectoryPath(ui.path)),Ot=(Ze=wn.find(function(Wa){var Qt=Wa[0],Qa=Wa[1];return y.fileExists(Vi+Qt)}))===null||Ze===void 0?void 0:Ze[1];Ot?Wr(o,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node12_or_nodenext_Did_you_mean_0,i+Ot):Wr(o,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node12_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else Wr(o,t,i)}}}function uf(r,i,t,o){var s=t.packageId,u=t.resolvedFileName,T=!e.isExternalModuleNameRelative(o)&&s?bp(s.name)?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,s.name,e.mangleScopedPackageName(s.name)):ql(s.name)?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,s.name,o):e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,o,e.mangleScopedPackageName(s.name)):void 0;nu(r,i,e.chainDiagnosticMessages(T,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,o,u))}function bp(r){return ve().has(e.getTypesPackageName(r))}function ql(r){return!!ve().get(r)}function Fs(r,i){if(r!=null&&r.exports){var t=Qo(r.exports.get("export="),i),o=J_(Wn(t),Wn(r));return Wn(o)||r}}function J_(r,i){if(!r||r===hr||r===i||i.exports.size===1||r.flags&2097152)return r;var t=Ma(r);if(t.cjsExportMerged)return t.cjsExportMerged;var o=r.flags&33554432?r:Ls(r);return o.flags=o.flags|512,o.exports===void 0&&(o.exports=e.createSymbolTable()),i.exports.forEach(function(s,u){u!=="export="&&o.exports.set(u,o.exports.has(u)?hl(o.exports.get(u),s):s)}),Ma(o).cjsExportMerged=o,t.cjsExportMerged=o}function su(r,i,t,o){var s=Fs(r,t);if(!t&&s){if(!o&&!(s.flags&1539)&&!e.getDeclarationOfKind(s,303)){var u=ge>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return Wr(i,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,u),s}var T=i.parent;if(e.isImportDeclaration(T)&&e.getNamespaceDeclarationNode(T)||e.isImportCall(T)){var q=e.isImportCall(T)?T.arguments[0]:T.moduleSpecifier,fe=Jt(s),Ne=ZC(fe,s,r,q);if(Ne)return lf(s,Ne,T);if(e.getESModuleInterop(ye)){var $e=Ys(fe,0);if((!$e||!$e.length)&&($e=Ys(fe,1)),$e&&$e.length||tn(fe,"default",!0)){var Ze=ek(fe,s,r,q);return lf(s,Ze,T)}}}}return s}function lf(r,i,t){var o=bo(r.flags,r.escapedName);o.declarations=r.declarations?r.declarations.slice():[],o.parent=r.parent,o.target=r,o.originatingImport=t,r.valueDeclaration&&(o.valueDeclaration=r.valueDeclaration),r.constEnumOnlyModule&&(o.constEnumOnlyModule=!0),r.members&&(o.members=new e.Map(r.members)),r.exports&&(o.exports=new e.Map(r.exports));var s=Vu(i);return o.type=_s(o,s.members,e.emptyArray,e.emptyArray,s.indexInfos),o}function ff(r){return r.exports.get("export=")!==void 0}function _f(r){return Bv(al(r))}function Vl(r){var i=_f(r),t=Fs(r);if(t!==r){var o=Jt(t);Tl(o)&&e.addRange(i,_o(o))}return i}function j_(r,i){var t=al(r);t.forEach(function(u,T){pf(T)||i(u,T)});var o=Fs(r);if(o!==r){var s=Jt(o);Tl(s)&&k1(s,function(u,T){i(u,T)})}}function Uf(r,i){var t=al(i);if(t)return t.get(r)}function Sp(r,i){var t=Uf(r,i);if(t)return t;var o=Fs(i);if(o!==i){var s=Jt(o);return Tl(s)?tn(s,r):void 0}}function Tl(r){return!(r.flags&131068||e.getObjectFlags(r)&1||_c(r)||Ln(r))}function Ns(r){return r.flags&6256?$d(r,"resolvedExports"):r.flags&1536?al(r):r.exports||he}function al(r){var i=Ma(r);return i.resolvedExports||(i.resolvedExports=Kl(r))}function U_(r,i,t,o){!i||i.forEach(function(s,u){if(u!=="default"){var T=r.get(u);if(!T)r.set(u,s),t&&o&&t.set(u,{specifierText:e.getTextOfNode(o.moduleSpecifier)});else if(t&&o&&T&&Qo(T)!==Qo(s)){var q=t.get(u);q.exportsWithDuplicate?q.exportsWithDuplicate.push(o):q.exportsWithDuplicate=[o]}}})}function Kl(r){var i=[];return r=Fs(r),t(r)||he;function t(o){if(!!(o&&o.exports&&e.pushIfUnique(i,o))){var s=new e.Map(o.exports),u=o.exports.get("__export");if(u){var T=e.createSymbolTable(),q=new e.Map;if(u.declarations)for(var fe=0,Ne=u.declarations;fe<Ne.length;fe++){var $e=Ne[fe],Ze=ko($e,$e.moduleSpecifier),lr=t(Ze);U_(T,lr,q,$e)}q.forEach(function(yr,Zr){var ui=yr.exportsWithDuplicate;if(!(Zr==="export="||!(ui&&ui.length)||s.has(Zr)))for(var Ii=0,Fi=ui;Ii<Fi.length;Ii++){var Ri=Fi[Ii];ya.add(e.createDiagnosticForNode(Ri,e.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,q.get(Zr).specifierText,e.unescapeLeadingUnderscores(Zr)))}}),U_(s,T)}return s}}}function Wn(r){var i;return r&&r.mergeId&&(i=Dc[r.mergeId])?i:r}function It(r){return Wn(r.symbol&&Og(r.symbol))}function Rs(r){return Wn(r.parent&&Og(r.parent))}function u_(r,i){var t=e.getSourceFileOfNode(i),o=A(t),s=Ma(r),u;if(s.extendedContainersByFile&&(u=s.extendedContainersByFile.get(o)))return u;if(t&&t.imports){for(var T=0,q=t.imports;T<q.length;T++){var fe=q[T];if(!e.nodeIsSynthesized(fe)){var Ne=ko(i,fe,!0);if(!!Ne){var $e=zf(Ne,r);!$e||(u=e.append(u,Ne))}}}if(e.length(u))return(s.extendedContainersByFile||(s.extendedContainersByFile=new e.Map)).set(o,u),u}if(s.extendedContainers)return s.extendedContainers;for(var Ze=y.getSourceFiles(),lr=0,yr=Ze;lr<yr.length;lr++){var Zr=yr[lr];if(!!e.isExternalModule(Zr)){var ui=It(Zr),$e=zf(ui,r);!$e||(u=e.append(u,ui))}}return s.extendedContainers=u||e.emptyArray}function xs(r,i,t){var o=Rs(r);if(o&&!(r.flags&262144)){var s=e.mapDefined(o.declarations,$e),u=i&&u_(r,i),T=Tp(o,t);if(i&&o.flags&Hl(t)&&Xl(o,i,1920,!1))return e.append(e.concatenate(e.concatenate([o],s),u),T);var q=!(o.flags&Hl(t))&&o.flags&788968&&Io(o).flags&524288&&t===111551?gf(i,function(Ze){return e.forEachEntry(Ze,function(lr){if(lr.flags&Hl(t)&&Jt(lr)===Io(o))return lr})}):void 0,fe=q?qe(qe([q],s,!0),[o],!1):qe(qe([],s,!0),[o],!1);return fe=e.append(fe,T),fe=e.addRange(fe,u),fe}var Ne=e.mapDefined(r.declarations,function(Ze){if(!e.isAmbientModule(Ze)&&Ze.parent&&Cl(Ze.parent))return It(Ze.parent);if(e.isClassExpression(Ze)&&e.isBinaryExpression(Ze.parent)&&Ze.parent.operatorToken.kind===63&&e.isAccessExpression(Ze.parent.left)&&e.isEntityNameExpression(Ze.parent.left.expression))return e.isModuleExportsAccessExpression(Ze.parent.left)||e.isExportsIdentifier(Ze.parent.left.expression)?It(e.getSourceFileOfNode(Ze)):(js(Ze.parent.left.expression),Da(Ze.parent.left.expression).resolvedSymbol)});if(!e.length(Ne))return;return e.mapDefined(Ne,function(Ze){return zf(Ze,r)?Ze:void 0});function $e(Ze){return o&&mu(Ze,o)}}function Tp(r,i){var t=!!e.length(r.declarations)&&e.first(r.declarations);if(i&111551&&t&&t.parent&&e.isVariableDeclaration(t.parent)&&(e.isObjectLiteralExpression(t)&&t===t.parent.initializer||e.isTypeLiteralNode(t)&&t===t.parent.type))return It(t.parent)}function mu(r,i){var t=f_(r),o=t&&t.exports&&t.exports.get("export=");return o&&Uu(o,i)?t:void 0}function zf(r,i){if(r===Rs(i))return i;var t=r.exports&&r.exports.get("export=");if(t&&Uu(t,i))return r;var o=Ns(r),s=o.get(i.escapedName);return s&&Uu(s,i)?s:e.forEachEntry(o,function(u){if(Uu(u,i))return u})}function Uu(r,i){if(Wn(Qo(Wn(r)))===Wn(Qo(Wn(i))))return r}function $c(r){return Wn(r&&(r.flags&1048576)!==0?r.exportSymbol:r)}function Wf(r){return!!(r.flags&111551||r.flags&2097152&&zo(r).flags&111551&&!gu(r))}function Gl(r){for(var i=r.members,t=0,o=i;t<o.length;t++){var s=o[t];if(s.kind===170&&e.nodeIsPresent(s.body))return s}}function bs(r){var i=new V(Kr,r);return ke++,i.id=ke,oe&&(e.tracing===null||e.tracing===void 0||e.tracing.recordType(i)),i}function zu(r){return new V(Kr,r)}function ss(r,i,t){t===void 0&&(t=0);var o=bs(r);return o.intrinsicName=i,o.objectFlags=t,o}function Uc(r,i){var t=bs(524288);return t.objectFlags=r,t.symbol=i,t.members=void 0,t.properties=void 0,t.callSignatures=void 0,t.constructSignatures=void 0,t.indexInfos=void 0,t}function Ad(){return ba(e.arrayFrom(H.keys(),Ou))}function vu(r){var i=bs(262144);return r&&(i.symbol=r),i}function pf(r){return r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)!==95&&r.charCodeAt(2)!==64&&r.charCodeAt(2)!==35}function df(r){var i;return r.forEach(function(t,o){xp(t,o)&&(i||(i=[])).push(t)}),i||e.emptyArray}function xp(r,i){return!pf(i)&&Wf(r)}function l_(r){var i=df(r),t=J1(r);return t?e.concatenate(i,[t]):i}function Ic(r,i,t,o,s){var u=r;return u.members=i,u.properties=e.emptyArray,u.callSignatures=t,u.constructSignatures=o,u.indexInfos=s,i!==he&&(u.properties=df(i)),u}function _s(r,i,t,o,s){return Ic(Uc(16,r),i,t,o,s)}function xl(r){if(r.constructSignatures.length===0)return r;if(r.objectTypeWithoutAbstractConstructSignatures)return r.objectTypeWithoutAbstractConstructSignatures;var i=e.filter(r.constructSignatures,function(o){return!(o.flags&4)});if(r.constructSignatures===i)return r;var t=_s(r.symbol,r.members,r.callSignatures,e.some(i)?i:e.emptyArray,r.indexInfos);return r.objectTypeWithoutAbstractConstructSignatures=t,t.objectTypeWithoutAbstractConstructSignatures=t,t}function gf(r,i){for(var t,o=function(T){if(T.locals&&!Ju(T)&&(t=i(T.locals,void 0,!0,T)))return{value:t};switch(T.kind){case 303:if(!e.isExternalOrCommonJsModule(T))break;case 260:var q=It(T);if(t=i((q==null?void 0:q.exports)||he,void 0,!0,T))return{value:t};break;case 256:case 225:case 257:var fe;if((It(T).members||he).forEach(function(Ne,$e){Ne.flags&788968&&(fe||(fe=e.createSymbolTable())).set($e,Ne)}),fe&&(t=i(fe,void 0,!1,T)))return{value:t};break}},s=r;s;s=s.parent){var u=o(s);if(typeof u=="object")return u.value}return i(Lr,void 0,!0)}function Hl(r){return r===111551?111551:1920}function Xl(r,i,t,o,s){if(s===void 0&&(s=new e.Map),!(r&&!z_(r)))return;var u=Ma(r),T=u.accessibleChainCache||(u.accessibleChainCache=new e.Map),q=gf(i,function(Fi,Ri,Xi,ea){return ea}),fe="".concat(o?0:1,"|").concat(q&&A(q),"|").concat(t);if(T.has(fe))return T.get(fe);var Ne=f(r),$e=s.get(Ne);$e||s.set(Ne,$e=[]);var Ze=gf(i,lr);return T.set(fe,Ze),Ze;function lr(Fi,Ri,Xi){if(!!e.pushIfUnique($e,Fi)){var ea=ui(Fi,Ri,Xi);return $e.pop(),ea}}function yr(Fi,Ri){return!Ep(Fi,i,Ri)||!!Xl(Fi.parent,i,Hl(Ri),o,s)}function Zr(Fi,Ri,Xi){return(r===(Ri||Fi)||Wn(r)===Wn(Ri||Fi))&&!e.some(Fi.declarations,Cl)&&(Xi||yr(Wn(Fi),t))}function ui(Fi,Ri,Xi){if(Zr(Fi.get(r.escapedName),void 0,Ri))return[r];var ea=e.forEachEntry(Fi,function(lt){if(lt.flags&2097152&&lt.escapedName!=="export="&&lt.escapedName!=="default"&&!(e.isUMDExportSymbol(lt)&&i&&e.isExternalModule(e.getSourceFileOfNode(i)))&&(!o||e.some(lt.declarations,e.isExternalModuleImportEqualsDeclaration))&&(Xi?!e.some(lt.declarations,e.isNamespaceReexportDeclaration):!0)&&(Ri||!e.getDeclarationOfKind(lt,274))){var Ia=zo(lt),fa=Ii(lt,Ia,Ri);if(fa)return fa}if(lt.escapedName===r.escapedName&&lt.exportSymbol&&Zr(Wn(lt.exportSymbol),void 0,Ri))return[r]});return ea||(Fi===Lr?Ii(Rr,Rr,Ri):void 0)}function Ii(Fi,Ri,Xi){if(Zr(Fi,Ri,Xi))return[Fi];var ea=Ns(Ri),lt=ea&&lr(ea,!0);if(lt&&yr(Fi,Hl(t)))return[Fi].concat(lt)}}function Ep(r,i,t){var o=!1;return gf(i,function(s){var u=Wn(s.get(r.escapedName));return u?u===r?!0:(u=u.flags&2097152&&!e.getDeclarationOfKind(u,274)?zo(u):u,u.flags&t?(o=!0,!0):!1):!1}),o}function z_(r){if(r.declarations&&r.declarations.length){for(var i=0,t=r.declarations;i<t.length;i++){var o=t[i];switch(o.kind){case 166:case 168:case 171:case 172:continue;default:return!1}}return!0}return!1}function El(r,i){var t=Ql(r,i,788968,!1,!0);return t.accessibility===0}function Cp(r,i){var t=Ql(r,i,111551,!1,!0);return t.accessibility===0}function Zc(r,i,t){var o=Ql(r,i,t,!1,!1);return o.accessibility===0}function kp(r,i,t,o,s,u){if(!!e.length(r)){for(var T,q=!1,fe=0,Ne=r;fe<Ne.length;fe++){var $e=Ne[fe],Ze=Xl($e,i,o,!1);if(Ze){T=$e;var lr=W_(Ze[0],s);if(lr)return lr}if(u&&e.some($e.declarations,Cl)){if(s){q=!0;continue}return{accessibility:0}}var yr=xs($e,i,o),Zr=kp(yr,i,t,t===$e?Hl(o):o,s,u);if(Zr)return Zr}if(q)return{accessibility:0};if(T)return{accessibility:1,errorSymbolName:Ga(t,i,o),errorModuleName:T!==t?Ga(T,i,1920):void 0}}}function mf(r,i,t,o){return Ql(r,i,t,o,!0)}function Ql(r,i,t,o,s){if(r&&i){var u=kp([r],i,r,t,o,s);if(u)return u;var T=e.forEach(r.declarations,f_);if(T){var q=f_(i);if(T!==q)return{accessibility:2,errorSymbolName:Ga(r,i,t),errorModuleName:Ga(T),errorNode:e.isInJSFile(i)?i:void 0}}return{accessibility:1,errorSymbolName:Ga(r,i,t)}}return{accessibility:0}}function f_(r){var i=e.findAncestor(r,qf);return i&&It(i)}function qf(r){return e.isAmbientModule(r)||r.kind===303&&e.isExternalOrCommonJsModule(r)}function Cl(r){return e.isModuleWithStringLiteralName(r)||r.kind===303&&e.isExternalOrCommonJsModule(r)}function W_(r,i){var t;if(!e.every(e.filter(r.declarations,function(u){return u.kind!==79}),o))return;return{accessibility:0,aliasesToMakeVisible:t};function o(u){var T,q;if(!sc(u)){var fe=rl(u);return fe&&!e.hasSyntacticModifier(fe,1)&&sc(fe.parent)?s(u,fe):e.isVariableDeclaration(u)&&e.isVariableStatement(u.parent.parent)&&!e.hasSyntacticModifier(u.parent.parent,1)&&sc(u.parent.parent.parent)?s(u,u.parent.parent):e.isLateVisibilityPaintedStatement(u)&&!e.hasSyntacticModifier(u,1)&&sc(u.parent)?s(u,u):r.flags&2097152&&e.isBindingElement(u)&&e.isInJSFile(u)&&((T=u.parent)===null||T===void 0?void 0:T.parent)&&e.isVariableDeclaration(u.parent.parent)&&((q=u.parent.parent.parent)===null||q===void 0?void 0:q.parent)&&e.isVariableStatement(u.parent.parent.parent.parent)&&!e.hasSyntacticModifier(u.parent.parent.parent.parent,1)&&u.parent.parent.parent.parent.parent&&sc(u.parent.parent.parent.parent.parent)?s(u,u.parent.parent.parent.parent):!1}return!0}function s(u,T){return i&&(Da(u).isVisible=!0,t=e.appendIfUnique(t,T)),!0}}function nl(r,i){var t;r.parent.kind===180||e.isExpressionWithTypeArgumentsInClassExtendsClause(r.parent)||r.parent.kind===161?t=1160127:r.kind===160||r.kind===205||r.parent.kind===264?t=1920:t=788968;var o=e.getFirstIdentifier(r),s=os(i,o.escapedText,t,void 0,void 0,!1);return s&&s.flags&262144&&t&788968?{accessibility:0}:s&&W_(s,!0)||{accessibility:1,errorSymbolName:e.getTextOfNode(o),errorNode:o}}function Ga(r,i,t,o,s){o===void 0&&(o=4);var u=70221824;o&2&&(u|=128),o&1&&(u|=512),o&8&&(u|=16384),o&16&&(u|=134217728);var T=o&4?Cr.symbolToExpression:Cr.symbolToEntityName;return s?q(s).getText():e.usingSingleLineStringWriter(q);function q(fe){var Ne=T(r,t,i,u),$e=(i==null?void 0:i.kind)===303?e.createPrinter({removeComments:!0,neverAsciiEscape:!0}):e.createPrinter({removeComments:!0}),Ze=i&&e.getSourceFileOfNode(i);return $e.writeNode(4,Ne,Ze,fe),fe}}function kl(r,i,t,o,s){return t===void 0&&(t=0),s?u(s).getText():e.usingSingleLineStringWriter(u);function u(T){var q;t&262144?q=o===1?179:178:q=o===1?174:173;var fe=Cr.signatureToSignatureDeclaration(r,q,i,q_(t)|70221824|512),Ne=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),$e=i&&e.getSourceFileOfNode(i);return Ne.writeNode(4,fe,$e,e.getTrailingSemicolonDeferringWriter(T)),T}}function ht(r,i,t,o){t===void 0&&(t=1064960),o===void 0&&(o=e.createTextWriter(""));var s=ye.noErrorTruncation||t&1,u=Cr.typeToTypeNode(r,i,q_(t)|70221824|(s?1:0),o);if(u===void 0)return e.Debug.fail("should always get typenode");var T={removeComments:r!==Fr},q=e.createPrinter(T),fe=i&&e.getSourceFileOfNode(i);q.writeNode(4,u,fe,o);var Ne=o.getText(),$e=s?e.noTruncationMaximumTruncationLength*2:e.defaultMaximumTruncationLength*2;return $e&&Ne&&Ne.length>=$e?Ne.substr(0,$e-3)+"...":Ne}function __(r,i){var t=ol(r.symbol)?ht(r,r.symbol.valueDeclaration):ht(r),o=ol(i.symbol)?ht(i,i.symbol.valueDeclaration):ht(i);return t===o&&(t=Yl(r),o=Yl(i)),[t,o]}function Yl(r){return ht(r,void 0,64)}function ol(r){return r&&!!r.valueDeclaration&&e.isExpression(r.valueDeclaration)&&!_l(r.valueDeclaration)}function q_(r){return r===void 0&&(r=0),r&814775659}function rd(r){return!!r.symbol&&!!(r.symbol.flags&32)&&(r===Pn(r.symbol)||!!(r.flags&524288)&&!!(e.getObjectFlags(r)&16777216))}function Pd(){return{typeToTypeNode:function(ii,Ar,Pt,pt){return r(Ar,Pt,pt,function(Xt){return o(ii,Xt)})},indexInfoToIndexSignatureDeclaration:function(ii,Ar,Pt,pt){return r(Ar,Pt,pt,function(Xt){return Ne(ii,Xt,void 0)})},signatureToSignatureDeclaration:function(ii,Ar,Pt,pt,Xt){return r(Pt,pt,Xt,function(qt){return $e(ii,Ar,qt)})},symbolToEntityName:function(ii,Ar,Pt,pt,Xt){return r(Pt,pt,Xt,function(qt){return Bn(ii,qt,Ar,!1)})},symbolToExpression:function(ii,Ar,Pt,pt,Xt){return r(Pt,pt,Xt,function(qt){return Jn(ii,qt,Ar)})},symbolToTypeParameterDeclarations:function(ii,Ar,Pt,pt){return r(Ar,Pt,pt,function(Xt){return Ri(ii,Xt)})},symbolToParameterDeclaration:function(ii,Ar,Pt,pt){return r(Ar,Pt,pt,function(Xt){return Zr(ii,Xt)})},typeParameterToDeclaration:function(ii,Ar,Pt,pt){return r(Ar,Pt,pt,function(Xt){return yr(ii,Xt)})},symbolTableToDeclarationStatements:function(ii,Ar,Pt,pt,Xt){return r(Ar,Pt,pt,function(qt){return Xn(ii,qt,Xt)})}};function r(ii,Ar,Pt,pt){var Xt,qt;e.Debug.assert(ii===void 0||(ii.flags&8)===0);var Yt={enclosingDeclaration:ii,flags:Ar||0,tracker:Pt&&Pt.trackSymbol?Pt:{trackSymbol:function(){return!1},moduleResolverHost:Ar&134217728?{getCommonSourceDirectory:y.getCommonSourceDirectory?function(){return y.getCommonSourceDirectory()}:function(){return""},getCurrentDirectory:function(){return y.getCurrentDirectory()},getSymlinkCache:e.maybeBind(y,y.getSymlinkCache),getPackageJsonInfoCache:function(){var Ft;return(Ft=y.getPackageJsonInfoCache)===null||Ft===void 0?void 0:Ft.call(y)},useCaseSensitiveFileNames:e.maybeBind(y,y.useCaseSensitiveFileNames),redirectTargetsMap:y.redirectTargetsMap,getProjectReferenceRedirect:function(Ft){return y.getProjectReferenceRedirect(Ft)},isSourceOfProjectReferenceRedirect:function(Ft){return y.isSourceOfProjectReferenceRedirect(Ft)},fileExists:function(Ft){return y.fileExists(Ft)},getFileIncludeReasons:function(){return y.getFileIncludeReasons()},readFile:y.readFile?function(Ft){return y.readFile(Ft)}:void 0}:void 0},encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};Yt.tracker=i(Yt,Yt.tracker);var va=pt(Yt);return Yt.truncating&&Yt.flags&1&&((qt=(Xt=Yt.tracker)===null||Xt===void 0?void 0:Xt.reportTruncationError)===null||qt===void 0||qt.call(Xt)),Yt.encounteredError?void 0:va}function i(ii,Ar){var Pt=Ar.trackSymbol;return Ve(Ve({},Ar),{reportCyclicStructureError:pt(Ar.reportCyclicStructureError),reportInaccessibleThisError:pt(Ar.reportInaccessibleThisError),reportInaccessibleUniqueSymbolError:pt(Ar.reportInaccessibleUniqueSymbolError),reportLikelyUnsafeImportRequiredError:pt(Ar.reportLikelyUnsafeImportRequiredError),reportNonlocalAugmentation:pt(Ar.reportNonlocalAugmentation),reportPrivateInBaseOfClassExpression:pt(Ar.reportPrivateInBaseOfClassExpression),reportNonSerializableProperty:pt(Ar.reportNonSerializableProperty),trackSymbol:Pt&&function(){for(var Xt=[],qt=0;qt<arguments.length;qt++)Xt[qt]=arguments[qt];var Yt=Pt.apply(void 0,Xt);return Yt&&(ii.reportedDiagnostic=!0),Yt}});function pt(Xt){return Xt&&function(){for(var qt=[],Yt=0;Yt<arguments.length;Yt++)qt[Yt]=arguments[Yt];return ii.reportedDiagnostic=!0,Xt.apply(void 0,qt)}}}function t(ii){return ii.truncating?ii.truncating:ii.truncating=ii.approximateLength>(ii.flags&1?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function o(ii,Ar){ce&&ce.throwIfCancellationRequested&&ce.throwIfCancellationRequested();var Pt=Ar.flags&8388608;if(Ar.flags&=-8388609,!ii){if(!(Ar.flags&262144)){Ar.encounteredError=!0;return}return Ar.approximateLength+=3,e.factory.createKeywordTypeNode(130)}if(Ar.flags&536870912||(ii=Lt(ii)),ii.flags&1)return ii.aliasSymbol?e.factory.createTypeReferenceNode(Ia(ii.aliasSymbol),q(ii.aliasTypeArguments,Ar)):ii===Fr?e.addSyntheticLeadingComment(e.factory.createKeywordTypeNode(130),3,"unresolved"):(Ar.approximateLength+=3,e.factory.createKeywordTypeNode(ii===Or?138:130));if(ii.flags&2)return e.factory.createKeywordTypeNode(154);if(ii.flags&4)return Ar.approximateLength+=6,e.factory.createKeywordTypeNode(149);if(ii.flags&8)return Ar.approximateLength+=6,e.factory.createKeywordTypeNode(146);if(ii.flags&64)return Ar.approximateLength+=6,e.factory.createKeywordTypeNode(157);if(ii.flags&16&&!ii.aliasSymbol)return Ar.approximateLength+=7,e.factory.createKeywordTypeNode(133);if(ii.flags&1024&&!(ii.flags&1048576)){var pt=Rs(ii.symbol),Xt=fa(pt,Ar,788968);if(Io(pt)===ii)return Xt;var qt=e.symbolName(ii.symbol);return e.isIdentifierText(qt,0)?N_(Xt,e.factory.createTypeReferenceNode(qt,void 0)):e.isImportTypeNode(Xt)?(Xt.isTypeOf=!0,e.factory.createIndexedAccessTypeNode(Xt,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(qt)))):e.isTypeReferenceNode(Xt)?e.factory.createIndexedAccessTypeNode(e.factory.createTypeQueryNode(Xt.typeName),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(qt))):e.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(ii.flags&1056)return fa(ii.symbol,Ar,788968);if(ii.flags&128)return Ar.approximateLength+=ii.value.length+2,e.factory.createLiteralTypeNode(e.setEmitFlags(e.factory.createStringLiteral(ii.value,!!(Ar.flags&268435456)),16777216));if(ii.flags&256){var Yt=ii.value;return Ar.approximateLength+=(""+Yt).length,e.factory.createLiteralTypeNode(Yt<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-Yt)):e.factory.createNumericLiteral(Yt))}if(ii.flags&2048)return Ar.approximateLength+=e.pseudoBigIntToString(ii.value).length+1,e.factory.createLiteralTypeNode(e.factory.createBigIntLiteral(ii.value));if(ii.flags&512)return Ar.approximateLength+=ii.intrinsicName.length,e.factory.createLiteralTypeNode(ii.intrinsicName==="true"?e.factory.createTrue():e.factory.createFalse());if(ii.flags&8192){if(!(Ar.flags&1048576)){if(Cp(ii.symbol,Ar.enclosingDeclaration))return Ar.approximateLength+=6,fa(ii.symbol,Ar,111551);Ar.tracker.reportInaccessibleUniqueSymbolError&&Ar.tracker.reportInaccessibleUniqueSymbolError()}return Ar.approximateLength+=13,e.factory.createTypeOperatorNode(153,e.factory.createKeywordTypeNode(150))}if(ii.flags&16384)return Ar.approximateLength+=4,e.factory.createKeywordTypeNode(114);if(ii.flags&32768)return Ar.approximateLength+=9,e.factory.createKeywordTypeNode(152);if(ii.flags&65536)return Ar.approximateLength+=4,e.factory.createLiteralTypeNode(e.factory.createNull());if(ii.flags&131072)return Ar.approximateLength+=5,e.factory.createKeywordTypeNode(143);if(ii.flags&4096)return Ar.approximateLength+=6,e.factory.createKeywordTypeNode(150);if(ii.flags&67108864)return Ar.approximateLength+=6,e.factory.createKeywordTypeNode(147);if(e.isThisTypeParameter(ii))return Ar.flags&4194304&&(!Ar.encounteredError&&!(Ar.flags&32768)&&(Ar.encounteredError=!0),Ar.tracker.reportInaccessibleThisError&&Ar.tracker.reportInaccessibleThisError()),Ar.approximateLength+=4,e.factory.createThisTypeNode();if(!Pt&&ii.aliasSymbol&&(Ar.flags&16384||El(ii.aliasSymbol,Ar.enclosingDeclaration))){var va=q(ii.aliasTypeArguments,Ar);return pf(ii.aliasSymbol.escapedName)&&!(ii.aliasSymbol.flags&32)?e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),va):fa(ii.aliasSymbol,Ar,788968,va)}var Ft=e.getObjectFlags(ii);if(Ft&4)return e.Debug.assert(!!(ii.flags&524288)),ii.node?vs(ii,Us):Us(ii);if(ii.flags&262144||Ft&3){if(ii.flags&262144&&e.contains(Ar.inferTypeParameters,ii))return Ar.approximateLength+=e.symbolName(ii.symbol).length+6,e.factory.createInferTypeNode(lr(ii,Ar,void 0));if(Ar.flags&4&&ii.flags&262144&&!El(ii.symbol,Ar.enclosingDeclaration)){var pi=Ra(ii,Ar);return Ar.approximateLength+=e.idText(pi).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(pi)),void 0)}return ii.symbol?fa(ii.symbol,Ar,788968):e.factory.createTypeReferenceNode(e.factory.createIdentifier("?"),void 0)}if(ii.flags&1048576&&ii.origin&&(ii=ii.origin),ii.flags&3145728){var Ai=ii.flags&1048576?id(ii.types):ii.types;if(e.length(Ai)===1)return o(Ai[0],Ar);var Qi=q(Ai,Ar,!0);if(Qi&&Qi.length>0)return ii.flags&1048576?e.factory.createUnionTypeNode(Qi):e.factory.createIntersectionTypeNode(Qi);!Ar.encounteredError&&!(Ar.flags&262144)&&(Ar.encounteredError=!0);return}if(Ft&48)return e.Debug.assert(!!(ii.flags&524288)),gc(ii);if(ii.flags&4194304){var it=ii.type;Ar.approximateLength+=6;var st=o(it,Ar);return e.factory.createTypeOperatorNode(140,st)}if(ii.flags&134217728){var kt=ii.texts,Ha=ii.types,Tn=e.factory.createTemplateHead(kt[0]),Ca=e.factory.createNodeArray(e.map(Ha,function(Ya,qn){return e.factory.createTemplateLiteralTypeSpan(o(Ya,Ar),(qn<Ha.length-1?e.factory.createTemplateMiddle:e.factory.createTemplateTail)(kt[qn+1]))}));return Ar.approximateLength+=2,e.factory.createTemplateLiteralType(Tn,Ca)}if(ii.flags&268435456){var kn=o(ii.type,Ar);return fa(ii.symbol,Ar,788968,[kn])}if(ii.flags&8388608){var mo=o(ii.objectType,Ar),st=o(ii.indexType,Ar);return Ar.approximateLength+=2,e.factory.createIndexedAccessTypeNode(mo,st)}if(ii.flags&16777216)return vs(ii,function(Ya){return Po(Ya)});if(ii.flags&33554432)return o(ii.baseType,Ar);return e.Debug.fail("Should be unreachable.");function Po(Ya){var qn=o(Ya.checkType,Ar),fs=Ar.inferTypeParameters;Ar.inferTypeParameters=Ya.root.inferTypeParameters;var yo=o(Ya.extendsType,Ar);Ar.inferTypeParameters=fs;var ec=ms(ep(Ya)),oi=ms(rp(Ya));return Ar.approximateLength+=15,e.factory.createConditionalTypeNode(qn,yo,ec,oi)}function ms(Ya){var qn,fs,yo;return Ya.flags&1048576?!((qn=Ar.visitedTypes)===null||qn===void 0)&&qn.has(Gu(Ya))?(Ar.flags&131072||(Ar.encounteredError=!0,(yo=(fs=Ar.tracker)===null||fs===void 0?void 0:fs.reportCyclicStructureError)===null||yo===void 0||yo.call(fs)),s(Ar)):vs(Ya,function(ec){return o(ec,Ar)}):o(Ya,Ar)}function Wo(Ya){e.Debug.assert(!!(Ya.flags&524288));var qn=Ya.declaration.readonlyToken?e.factory.createToken(Ya.declaration.readonlyToken.kind):void 0,fs=Ya.declaration.questionToken?e.factory.createToken(Ya.declaration.questionToken.kind):void 0,yo;Mg(Ya)?yo=e.factory.createTypeOperatorNode(140,o(Lg(Ya),Ar)):yo=o(Iu(Ya),Ar);var ec=lr(Nu(Ya),Ar,yo),oi=Ya.declaration.nameType?o(h_(Ya),Ar):void 0,yi=o(_g(wl(Ya),!!(ll(Ya)&4)),Ar),Bi=e.factory.createMappedTypeNode(qn,ec,oi,fs,yi,void 0);return Ar.approximateLength+=10,e.setEmitFlags(Bi,1)}function gc(Ya){var qn,fs=Ya.id,yo=Ya.symbol;if(yo){var ec=rd(Ya)?788968:111551;if(ml(yo.valueDeclaration))return fa(yo,Ar,ec);if(yo.flags&32&&!_n(yo)&&!(yo.valueDeclaration&&yo.valueDeclaration.kind===225&&Ar.flags&2048)||yo.flags&896||yi())return fa(yo,Ar,ec);if(!((qn=Ar.visitedTypes)===null||qn===void 0)&&qn.has(fs)){var oi=Nd(Ya);return oi?fa(oi,Ar,788968):s(Ar)}else return vs(Ya,vl)}else return vl(Ya);function yi(){var Bi,ct=!!(yo.flags&8192)&&e.some(yo.declarations,function(Gt){return e.isStatic(Gt)}),at=!!(yo.flags&16)&&(yo.parent||e.forEach(yo.declarations,function(Gt){return Gt.parent.kind===303||Gt.parent.kind===261}));if(ct||at)return(!!(Ar.flags&4096)||((Bi=Ar.visitedTypes)===null||Bi===void 0?void 0:Bi.has(fs)))&&(!(Ar.flags&8)||Cp(yo,Ar.enclosingDeclaration))}}function vs(Ya,qn){var fs,yo,ec=Ya.id,oi=e.getObjectFlags(Ya)&16&&Ya.symbol&&Ya.symbol.flags&32,yi=e.getObjectFlags(Ya)&4&&Ya.node?"N"+A(Ya.node):Ya.flags&16777216?"N"+A(Ya.root.node):Ya.symbol?(oi?"+":"")+f(Ya.symbol):void 0;Ar.visitedTypes||(Ar.visitedTypes=new e.Set),yi&&!Ar.symbolDepth&&(Ar.symbolDepth=new e.Map);var Bi=Ar.enclosingDeclaration&&Da(Ar.enclosingDeclaration),ct="".concat(Gu(Ya),"|").concat(Ar.flags);Bi&&(Bi.serializedTypes||(Bi.serializedTypes=new e.Map));var at=(fs=Bi==null?void 0:Bi.serializedTypes)===null||fs===void 0?void 0:fs.get(ct);if(at)return at.truncating&&(Ar.truncating=!0),Ar.approximateLength+=at.addedLength,$a(at);var Gt;if(yi){if(Gt=Ar.symbolDepth.get(yi)||0,Gt>10)return s(Ar);Ar.symbolDepth.set(yi,Gt+1)}Ar.visitedTypes.add(ec);var Wt=Ar.approximateLength,Et=qn(Ya),wa=Ar.approximateLength-Wt;return!Ar.reportedDiagnostic&&!Ar.encounteredError&&(Ar.truncating&&(Et.truncating=!0),Et.addedLength=wa,(yo=Bi==null?void 0:Bi.serializedTypes)===null||yo===void 0||yo.set(ct,Et)),Ar.visitedTypes.delete(ec),yi&&Ar.symbolDepth.set(yi,Gt),Et;function $a(jn){return!e.nodeIsSynthesized(jn)&&e.getParseTreeNode(jn)===jn?jn:e.setTextRange(e.factory.cloneNode(e.visitEachChild(jn,$a,e.nullTransformationContext)),jn)}}function vl(Ya){if(Fc(Ya)||Ya.containsError)return Wo(Ya);var qn=Vu(Ya);if(!qn.properties.length&&!qn.indexInfos.length){if(!qn.callSignatures.length&&!qn.constructSignatures.length)return Ar.approximateLength+=2,e.setEmitFlags(e.factory.createTypeLiteralNode(void 0),1);if(qn.callSignatures.length===1&&!qn.constructSignatures.length){var fs=qn.callSignatures[0],yo=$e(fs,178,Ar);return yo}if(qn.constructSignatures.length===1&&!qn.callSignatures.length){var fs=qn.constructSignatures[0],yo=$e(fs,179,Ar);return yo}}var ec=e.filter(qn.constructSignatures,function(Gt){return!!(Gt.flags&4)});if(e.some(ec)){var oi=e.map(ec,qg),yi=qn.callSignatures.length+(qn.constructSignatures.length-ec.length)+qn.indexInfos.length+(Ar.flags&2048?e.countWhere(qn.properties,function(Gt){return!(Gt.flags&4194304)}):e.length(qn.properties));return yi&&oi.push(xl(qn)),o(To(oi),Ar)}var Bi=Ar.flags;Ar.flags|=4194304;var ct=dv(qn);Ar.flags=Bi;var at=e.factory.createTypeLiteralNode(ct);return Ar.approximateLength+=2,e.setEmitFlags(at,Ar.flags&1024?0:1),at}function Us(Ya){var qn=Co(Ya);if(Ya.target===h||Ya.target===Ee){if(Ar.flags&2){var fs=o(qn[0],Ar);return e.factory.createTypeReferenceNode(Ya.target===h?"Array":"ReadonlyArray",[fs])}var yo=o(qn[0],Ar),ec=e.factory.createArrayTypeNode(yo);return Ya.target===h?ec:e.factory.createTypeOperatorNode(144,ec)}else if(Ya.target.objectFlags&8){if(qn=e.sameMap(qn,function(Uo,ps){return _g(Uo,!!(Ya.target.elementFlags[ps]&2))}),qn.length>0){var oi=Q_(Ya),yi=q(qn.slice(0,oi),Ar);if(yi){if(Ya.target.labeledElementDeclarations)for(var Bi=0;Bi<yi.length;Bi++){var ct=Ya.target.elementFlags[Bi];yi[Bi]=e.factory.createNamedTupleMember(ct&12?e.factory.createToken(25):void 0,e.factory.createIdentifier(e.unescapeLeadingUnderscores(l0(Ya.target.labeledElementDeclarations[Bi]))),ct&2?e.factory.createToken(57):void 0,ct&4?e.factory.createArrayTypeNode(yi[Bi]):yi[Bi])}else for(var Bi=0;Bi<Math.min(oi,yi.length);Bi++){var ct=Ya.target.elementFlags[Bi];yi[Bi]=ct&12?e.factory.createRestTypeNode(ct&4?e.factory.createArrayTypeNode(yi[Bi]):yi[Bi]):ct&2?e.factory.createOptionalTypeNode(yi[Bi]):yi[Bi]}var at=e.setEmitFlags(e.factory.createTupleTypeNode(yi),1);return Ya.target.readonly?e.factory.createTypeOperatorNode(144,at):at}}if(Ar.encounteredError||Ar.flags&524288){var at=e.setEmitFlags(e.factory.createTupleTypeNode([]),1);return Ya.target.readonly?e.factory.createTypeOperatorNode(144,at):at}Ar.encounteredError=!0;return}else{if(Ar.flags&2048&&Ya.symbol.valueDeclaration&&e.isClassLike(Ya.symbol.valueDeclaration)&&!Cp(Ya.symbol,Ar.enclosingDeclaration))return gc(Ya);var Gt=Ya.target.outerTypeParameters,Bi=0,Wt=void 0;if(Gt)for(var Et=Gt.length;Bi<Et;){var wa=Bi,$a=UT(Gt[Bi]);do Bi++;while(Bi<Et&&UT(Gt[Bi])===$a);if(!e.rangeEquals(Gt,qn,wa,Bi)){var jn=q(qn.slice(wa,Bi),Ar),Fn=Ar.flags;Ar.flags|=16;var Yn=fa($a,Ar,788968,jn);Ar.flags=Fn,Wt=Wt?N_(Wt,Yn):Yn}}var Ss=void 0;if(qn.length>0){var ys=(Ya.target.typeParameters||e.emptyArray).length;Ss=q(qn.slice(Bi,ys),Ar)}var ct=Ar.flags;Ar.flags|=16;var ks=fa(Ya.symbol,Ar,788968,Ss);return Ar.flags=ct,Wt?N_(Wt,ks):ks}}function N_(Ya,qn){if(e.isImportTypeNode(Ya)){var fs=Ya.typeArguments,yo=Ya.qualifier;yo&&(e.isIdentifier(yo)?yo=e.factory.updateIdentifier(yo,fs):yo=e.factory.updateQualifiedName(yo,yo.left,e.factory.updateIdentifier(yo.right,fs))),fs=qn.typeArguments;for(var ec=pv(qn),oi=0,yi=ec;oi<yi.length;oi++){var Bi=yi[oi];yo=yo?e.factory.createQualifiedName(yo,Bi):Bi}return e.factory.updateImportTypeNode(Ya,Ya.argument,yo,fs,Ya.isTypeOf)}else{var fs=Ya.typeArguments,ct=Ya.typeName;e.isIdentifier(ct)?ct=e.factory.updateIdentifier(ct,fs):ct=e.factory.updateQualifiedName(ct,ct.left,e.factory.updateIdentifier(ct.right,fs)),fs=qn.typeArguments;for(var ec=pv(qn),at=0,Gt=ec;at<Gt.length;at++){var Bi=Gt[at];ct=e.factory.createQualifiedName(ct,Bi)}return e.factory.updateTypeReferenceNode(Ya,ct,fs)}}function pv(Ya){for(var qn=Ya.typeName,fs=[];!e.isIdentifier(qn);)fs.unshift(qn.right),qn=qn.left;return fs.unshift(qn),fs}function dv(Ya){if(t(Ar))return[e.factory.createPropertySignature(void 0,"...",void 0,void 0)];for(var qn=[],fs=0,yo=Ya.callSignatures;fs<yo.length;fs++){var ec=yo[fs];qn.push($e(ec,173,Ar))}for(var oi=0,yi=Ya.constructSignatures;oi<yi.length;oi++){var ec=yi[oi];ec.flags&4||qn.push($e(ec,174,Ar))}for(var Bi=0,ct=Ya.indexInfos;Bi<ct.length;Bi++){var at=ct[Bi];qn.push(Ne(at,Ar,Ya.objectFlags&1024?s(Ar):void 0))}var Gt=Ya.properties;if(!Gt)return qn;for(var Wt=0,Et=0,wa=Gt;Et<wa.length;Et++){var $a=wa[Et];if(Wt++,Ar.flags&2048){if($a.flags&4194304)continue;e.getDeclarationModifierFlagsFromSymbol($a)&24&&Ar.tracker.reportPrivateInBaseOfClassExpression&&Ar.tracker.reportPrivateInBaseOfClassExpression(e.unescapeLeadingUnderscores($a.escapedName))}if(t(Ar)&&Wt+2<Gt.length-1){qn.push(e.factory.createPropertySignature(void 0,"... ".concat(Gt.length-Wt," more ..."),void 0,void 0)),T(Gt[Gt.length-1],Ar,qn);break}T($a,Ar,qn)}return qn.length?qn:void 0}}function s(ii){return ii.approximateLength+=3,ii.flags&1?e.factory.createKeywordTypeNode(130):e.factory.createTypeReferenceNode(e.factory.createIdentifier("..."),void 0)}function u(ii,Ar){var Pt;return!!(e.getCheckFlags(ii)&8192)&&(e.contains(Ar.reverseMappedStack,ii)||((Pt=Ar.reverseMappedStack)===null||Pt===void 0?void 0:Pt[0])&&!(e.getObjectFlags(e.last(Ar.reverseMappedStack).propertyType)&16))}function T(ii,Ar,Pt){var pt,Xt,qt=!!(e.getCheckFlags(ii)&8192),Yt=u(ii,Ar)?xe:Df(ii),va=Ar.enclosingDeclaration;if(Ar.enclosingDeclaration=void 0,Ar.tracker.trackSymbol&&e.getCheckFlags(ii)&4096&&Yd(ii.escapedName))if(ii.declarations){var Ft=e.first(ii.declarations);if(wg(Ft))if(e.isBinaryExpression(Ft)){var pi=e.getNameOfDeclaration(Ft);pi&&e.isElementAccessExpression(pi)&&e.isPropertyAccessEntityNameExpression(pi.argumentExpression)&&ui(pi.argumentExpression,va,Ar)}else ui(Ft.name.expression,va,Ar)}else!((pt=Ar.tracker)===null||pt===void 0)&&pt.reportNonSerializableProperty&&Ar.tracker.reportNonSerializableProperty(Ga(ii));Ar.enclosingDeclaration=ii.valueDeclaration||((Xt=ii.declarations)===null||Xt===void 0?void 0:Xt[0])||va;var Ai=$i(ii,Ar);Ar.enclosingDeclaration=va,Ar.approximateLength+=e.symbolName(ii).length+1;var Qi=ii.flags&16777216?e.factory.createToken(57):void 0;if(ii.flags&8208&&!Gf(Yt).length&&!zl(ii))for(var it=za(pc(Yt,function(ms){return!(ms.flags&32768)}),0),st=0,kt=it;st<kt.length;st++){var Ha=kt[st],Tn=$e(Ha,167,Ar,{name:Ai,questionToken:Qi});Pt.push(Po(Tn))}else{var Ca=void 0;u(ii,Ar)?Ca=s(Ar):(qt&&(Ar.reverseMappedStack||(Ar.reverseMappedStack=[]),Ar.reverseMappedStack.push(ii)),Ca=Yt?Qa(Ar,Yt,ii,va):e.factory.createKeywordTypeNode(130),qt&&Ar.reverseMappedStack.pop());var kn=zl(ii)?[e.factory.createToken(144)]:void 0;kn&&(Ar.approximateLength+=9);var mo=e.factory.createPropertySignature(kn,Ai,Qi,Ca);Pt.push(Po(mo))}function Po(ms){var Wo;if(e.some(ii.declarations,function(vl){return vl.kind===345})){var gc=(Wo=ii.declarations)===null||Wo===void 0?void 0:Wo.find(function(vl){return vl.kind===345}),vs=e.getTextOfJSDocComment(gc.comment);vs&&e.setSyntheticLeadingComments(ms,[{kind:3,text:`*
 * `+vs.replace(/\n/g,`
 * `)+`
 `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else ii.valueDeclaration&&e.setCommentRange(ms,ii.valueDeclaration);return ms}}function q(ii,Ar,Pt){if(e.some(ii)){if(t(Ar))if(Pt){if(ii.length>2)return[o(ii[0],Ar),e.factory.createTypeReferenceNode("... ".concat(ii.length-2," more ..."),void 0),o(ii[ii.length-1],Ar)]}else return[e.factory.createTypeReferenceNode("...",void 0)];for(var pt=!(Ar.flags&64),Xt=pt?e.createUnderscoreEscapedMultiMap():void 0,qt=[],Yt=0,va=0,Ft=ii;va<Ft.length;va++){var pi=Ft[va];if(Yt++,t(Ar)&&Yt+2<ii.length-1){qt.push(e.factory.createTypeReferenceNode("... ".concat(ii.length-Yt," more ..."),void 0));var Ai=o(ii[ii.length-1],Ar);Ai&&qt.push(Ai);break}Ar.approximateLength+=2;var Qi=o(pi,Ar);Qi&&(qt.push(Qi),Xt&&e.isIdentifierTypeReference(Qi)&&Xt.add(Qi.typeName.escapedText,[pi,qt.length-1]))}if(Xt){var it=Ar.flags;Ar.flags|=64,Xt.forEach(function(st){if(!e.arrayIsHomogeneous(st,function(mo,Po){var ms=mo[0],Wo=Po[0];return fe(ms,Wo)}))for(var kt=0,Ha=st;kt<Ha.length;kt++){var Tn=Ha[kt],Ca=Tn[0],kn=Tn[1];qt[kn]=o(Ca,Ar)}}),Ar.flags=it}return qt}}function fe(ii,Ar){return ii===Ar||!!ii.symbol&&ii.symbol===Ar.symbol||!!ii.aliasSymbol&&ii.aliasSymbol===Ar.aliasSymbol}function Ne(ii,Ar,Pt){var pt=e.getNameFromIndexInfo(ii)||"x",Xt=o(ii.keyType,Ar),qt=e.factory.createParameterDeclaration(void 0,void 0,void 0,pt,void 0,Xt,void 0);return Pt||(Pt=o(ii.type||xe,Ar)),!ii.type&&!(Ar.flags&2097152)&&(Ar.encounteredError=!0),Ar.approximateLength+=pt.length+4,e.factory.createIndexSignature(void 0,ii.isReadonly?[e.factory.createToken(144)]:void 0,[qt],Pt)}function $e(ii,Ar,Pt,pt){var Xt,qt,Yt,va,Ft=Pt.flags&256;Ft&&(Pt.flags&=-257),Pt.approximateLength+=3;var pi,Ai;Pt.flags&32&&ii.target&&ii.mapper&&ii.target.typeParameters?Ai=ii.target.typeParameters.map(function(gc){return o(gn(gc,ii.mapper),Pt)}):pi=ii.typeParameters&&ii.typeParameters.map(function(gc){return yr(gc,Pt)});var Qi=Av(ii,!0)[0],it=(e.some(Qi,function(gc){return gc!==Qi[Qi.length-1]&&!!(e.getCheckFlags(gc)&32768)})?ii.parameters:Qi).map(function(gc){return Zr(gc,Pt,Ar===170,pt==null?void 0:pt.privateSymbolVisitor,pt==null?void 0:pt.bundledImports)}),st=Ze(ii,Pt);st&&it.unshift(st);var kt,Ha=wu(ii);if(Ha){var Tn=Ha.kind===2||Ha.kind===3?e.factory.createToken(128):void 0,Ca=Ha.kind===1||Ha.kind===3?e.setEmitFlags(e.factory.createIdentifier(Ha.parameterName),16777216):e.factory.createThisTypeNode(),kn=Ha.type&&o(Ha.type,Pt);kt=e.factory.createTypePredicateNode(Tn,Ca,kn)}else{var mo=So(ii);mo&&!(Ft&&At(mo))?kt=En(Pt,mo,ii,pt==null?void 0:pt.privateSymbolVisitor,pt==null?void 0:pt.bundledImports):Ft||(kt=e.factory.createKeywordTypeNode(130))}var Po=pt==null?void 0:pt.modifiers;if(Ar===179&&ii.flags&4){var ms=e.modifiersToFlags(Po);Po=e.factory.createModifiersFromModifierFlags(ms|128)}var Wo=Ar===173?e.factory.createCallSignature(pi,it,kt):Ar===174?e.factory.createConstructSignature(pi,it,kt):Ar===167?e.factory.createMethodSignature(Po,(Xt=pt==null?void 0:pt.name)!==null&&Xt!==void 0?Xt:e.factory.createIdentifier(""),pt==null?void 0:pt.questionToken,pi,it,kt):Ar===168?e.factory.createMethodDeclaration(void 0,Po,void 0,(qt=pt==null?void 0:pt.name)!==null&&qt!==void 0?qt:e.factory.createIdentifier(""),void 0,pi,it,kt,void 0):Ar===170?e.factory.createConstructorDeclaration(void 0,Po,it,void 0):Ar===171?e.factory.createGetAccessorDeclaration(void 0,Po,(Yt=pt==null?void 0:pt.name)!==null&&Yt!==void 0?Yt:e.factory.createIdentifier(""),it,kt,void 0):Ar===172?e.factory.createSetAccessorDeclaration(void 0,Po,(va=pt==null?void 0:pt.name)!==null&&va!==void 0?va:e.factory.createIdentifier(""),it,void 0):Ar===175?e.factory.createIndexSignature(void 0,Po,it,kt):Ar===315?e.factory.createJSDocFunctionType(it,kt):Ar===178?e.factory.createFunctionTypeNode(pi,it,kt!=null?kt:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):Ar===179?e.factory.createConstructorTypeNode(Po,pi,it,kt!=null?kt:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):Ar===255?e.factory.createFunctionDeclaration(void 0,Po,void 0,pt!=null&&pt.name?e.cast(pt.name,e.isIdentifier):e.factory.createIdentifier(""),pi,it,kt,void 0):Ar===212?e.factory.createFunctionExpression(Po,void 0,pt!=null&&pt.name?e.cast(pt.name,e.isIdentifier):e.factory.createIdentifier(""),pi,it,kt,e.factory.createBlock([])):Ar===213?e.factory.createArrowFunction(Po,pi,it,kt,void 0,e.factory.createBlock([])):e.Debug.assertNever(Ar);return Ai&&(Wo.typeArguments=e.factory.createNodeArray(Ai)),Wo}function Ze(ii,Ar){if(ii.thisParameter)return Zr(ii.thisParameter,Ar);if(ii.declaration){var Pt=e.getJSDocThisTag(ii.declaration);if(Pt&&Pt.typeExpression)return e.factory.createParameterDeclaration(void 0,void 0,void 0,"this",void 0,o(Ua(Pt.typeExpression),Ar))}}function lr(ii,Ar,Pt){var pt=Ar.flags;Ar.flags&=-513;var Xt=Ra(ii,Ar),qt=H_(ii),Yt=qt&&o(qt,Ar);return Ar.flags=pt,e.factory.createTypeParameterDeclaration(Xt,Pt,Yt)}function yr(ii,Ar,Pt){Pt===void 0&&(Pt=qc(ii));var pt=Pt&&o(Pt,Ar);return lr(ii,Ar,pt)}function Zr(ii,Ar,Pt,pt,Xt){var qt=e.getDeclarationOfKind(ii,163);!qt&&!e.isTransientSymbol(ii)&&(qt=e.getDeclarationOfKind(ii,338));var Yt=Jt(ii);qt&&F6(qt)&&(Yt=$f(Yt)),Ar.flags&1073741824&&qt&&!e.isJSDocParameterTag(qt)&&GM(qt)&&(Yt=$s(Yt,524288));var va=Qa(Ar,Yt,ii,Ar.enclosingDeclaration,pt,Xt),Ft=!(Ar.flags&8192)&&Pt&&qt&&qt.modifiers?qt.modifiers.map(e.factory.cloneNode):void 0,pi=qt&&e.isRestParameter(qt)||e.getCheckFlags(ii)&32768,Ai=pi?e.factory.createToken(25):void 0,Qi=qt&&qt.name?qt.name.kind===79?e.setEmitFlags(e.factory.cloneNode(qt.name),16777216):qt.name.kind===160?e.setEmitFlags(e.factory.cloneNode(qt.name.right),16777216):Ha(qt.name):e.symbolName(ii),it=qt&&ud(qt)||e.getCheckFlags(ii)&16384,st=it?e.factory.createToken(57):void 0,kt=e.factory.createParameterDeclaration(void 0,Ft,Ai,Qi,st,va,void 0);return Ar.approximateLength+=e.symbolName(ii).length+3,kt;function Ha(Tn){return Ca(Tn);function Ca(kn){Ar.tracker.trackSymbol&&e.isComputedPropertyName(kn)&&xv(kn)&&ui(kn.expression,Ar.enclosingDeclaration,Ar);var mo=e.visitEachChild(kn,Ca,e.nullTransformationContext,void 0,Ca);return e.isBindingElement(mo)&&(mo=e.factory.updateBindingElement(mo,mo.dotDotDotToken,mo.propertyName,mo.name,void 0)),e.nodeIsSynthesized(mo)||(mo=e.factory.cloneNode(mo)),e.setEmitFlags(mo,16777217)}}}function ui(ii,Ar,Pt){if(!!Pt.tracker.trackSymbol){var pt=e.getFirstIdentifier(ii),Xt=os(pt,pt.escapedText,1160127,void 0,void 0,!0);Xt&&Pt.tracker.trackSymbol(Xt,Ar,111551)}}function Ii(ii,Ar,Pt,pt){return Ar.tracker.trackSymbol(ii,Ar.enclosingDeclaration,Pt),Fi(ii,Ar,Pt,pt)}function Fi(ii,Ar,Pt,pt){var Xt,qt=ii.flags&262144;return!qt&&(Ar.enclosingDeclaration||Ar.flags&64)&&!(Ar.flags&134217728)?(Xt=e.Debug.checkDefined(Yt(ii,Pt,!0)),e.Debug.assert(Xt&&Xt.length>0)):Xt=[ii],Xt;function Yt(va,Ft,pi){var Ai=Xl(va,Ar.enclosingDeclaration,Ft,!!(Ar.flags&128)),Qi;if(!Ai||Ep(Ai[0],Ar.enclosingDeclaration,Ai.length===1?Ft:Hl(Ft))){var it=xs(Ai?Ai[0]:va,Ar.enclosingDeclaration,Ft);if(e.length(it)){Qi=it.map(function(Po){return e.some(Po.declarations,Cl)?lt(Po,Ar):void 0});var st=it.map(function(Po,ms){return ms});st.sort(mo);for(var kt=st.map(function(Po){return it[Po]}),Ha=0,Tn=kt;Ha<Tn.length;Ha++){var Ca=Tn[Ha],kn=Yt(Ca,Hl(Ft),!1);if(kn){if(Ca.exports&&Ca.exports.get("export=")&&Uu(Ca.exports.get("export="),va)){Ai=kn;break}Ai=kn.concat(Ai||[zf(Ca,va)||va]);break}}}}if(Ai)return Ai;if(pi||!(va.flags&6144))return!pi&&!pt&&!!e.forEach(va.declarations,Cl)?void 0:[va];function mo(Po,ms){var Wo=Qi[Po],gc=Qi[ms];if(Wo&&gc){var vs=e.pathIsRelative(gc);return e.pathIsRelative(Wo)===vs?e.moduleSpecifiers.countPathComponents(Wo)-e.moduleSpecifiers.countPathComponents(gc):vs?-1:1}return 0}}}function Ri(ii,Ar){var Pt,pt=Tg(ii);return pt.flags&524384&&(Pt=e.factory.createNodeArray(e.map(Sf(ii),function(Xt){return yr(Xt,Ar)}))),Pt}function Xi(ii,Ar,Pt){var pt;e.Debug.assert(ii&&0<=Ar&&Ar<ii.length);var Xt=ii[Ar],qt=f(Xt);if(!(!((pt=Pt.typeParameterSymbolList)===null||pt===void 0)&&pt.has(qt))){(Pt.typeParameterSymbolList||(Pt.typeParameterSymbolList=new e.Set)).add(qt);var Yt;if(Pt.flags&512&&Ar<ii.length-1){var va=Xt,Ft=ii[Ar+1];if(e.getCheckFlags(Ft)&1){var pi=Em(va.flags&2097152?zo(va):va);Yt=q(e.map(pi,function(Ai){return ip(Ai,Ft.mapper)}),Pt)}else Yt=Ri(Xt,Pt)}return Yt}}function ea(ii){return e.isIndexedAccessTypeNode(ii.objectType)?ea(ii.objectType):ii}function lt(ii,Ar){var Pt,pt=e.getDeclarationOfKind(ii,303);if(!pt){var Xt=e.firstDefined(ii.declarations,function(Ha){return mu(Ha,ii)});Xt&&(pt=e.getDeclarationOfKind(Xt,303))}if(pt&&pt.moduleName!==void 0)return pt.moduleName;if(!pt){if(Ar.tracker.trackReferencedAmbientModule){var qt=e.filter(ii.declarations,e.isAmbientModule);if(e.length(qt))for(var Yt=0,va=qt;Yt<va.length;Yt++){var Ft=va[Yt];Ar.tracker.trackReferencedAmbientModule(Ft,ii)}}if(a.test(ii.escapedName))return ii.escapedName.substring(1,ii.escapedName.length-1)}if(!Ar.enclosingDeclaration||!Ar.tracker.moduleResolverHost)return a.test(ii.escapedName)?ii.escapedName.substring(1,ii.escapedName.length-1):e.getSourceFileOfNode(e.getNonAugmentationDeclaration(ii)).fileName;var pi=e.getSourceFileOfNode(e.getOriginalNode(Ar.enclosingDeclaration)),Ai=Ma(ii),Qi=Ai.specifierCache&&Ai.specifierCache.get(pi.path);if(!Qi){var it=!!e.outFile(ye),st=Ar.tracker.moduleResolverHost,kt=it?Ve(Ve({},ye),{baseUrl:st.getCommonSourceDirectory()}):ye;Qi=e.first(e.moduleSpecifiers.getModuleSpecifiers(ii,Kr,kt,pi,st,{importModuleSpecifierPreference:it?"non-relative":"project-relative",importModuleSpecifierEnding:it?"minimal":void 0})),(Pt=Ai.specifierCache)!==null&&Pt!==void 0||(Ai.specifierCache=new e.Map),Ai.specifierCache.set(pi.path,Qi)}return Qi}function Ia(ii){var Ar=e.factory.createIdentifier(e.unescapeLeadingUnderscores(ii.escapedName));return ii.parent?e.factory.createQualifiedName(Ia(ii.parent),Ar):Ar}function fa(ii,Ar,Pt,pt){var Xt=Ii(ii,Ar,Pt,!(Ar.flags&16384)),qt=Pt===111551;if(e.some(Xt[0].declarations,Cl)){var Yt=Xt.length>1?Ha(Xt,Xt.length-1,1):void 0,va=pt||Xi(Xt,0,Ar),Ft=lt(Xt[0],Ar);!(Ar.flags&67108864)&&e.getEmitModuleResolutionKind(ye)!==e.ModuleResolutionKind.Classic&&Ft.indexOf("/node_modules/")>=0&&(Ar.encounteredError=!0,Ar.tracker.reportLikelyUnsafeImportRequiredError&&Ar.tracker.reportLikelyUnsafeImportRequiredError(Ft));var pi=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(Ft));if(Ar.tracker.trackExternalModuleSymbolOfImportTypeNode&&Ar.tracker.trackExternalModuleSymbolOfImportTypeNode(Xt[0]),Ar.approximateLength+=Ft.length+10,!Yt||e.isEntityName(Yt)){if(Yt){var Ai=e.isIdentifier(Yt)?Yt:Yt.right;Ai.typeArguments=void 0}return e.factory.createImportTypeNode(pi,Yt,va,qt)}else{var Qi=ea(Yt),it=Qi.objectType.typeName;return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(pi,it,va,qt),Qi.indexType)}}var st=Ha(Xt,Xt.length-1,0);if(e.isIndexedAccessTypeNode(st))return st;if(qt)return e.factory.createTypeQueryNode(st);var Ai=e.isIdentifier(st)?st:st.right,kt=Ai.typeArguments;return Ai.typeArguments=void 0,e.factory.createTypeReferenceNode(st,kt);function Ha(Tn,Ca,kn){var mo=Ca===Tn.length-1?pt:Xi(Tn,Ca,Ar),Po=Tn[Ca],ms=Tn[Ca-1],Wo;if(Ca===0)Ar.flags|=16777216,Wo=sl(Po,Ar),Ar.approximateLength+=(Wo?Wo.length:0)+1,Ar.flags^=16777216;else if(ms&&Ns(ms)){var gc=Ns(ms);e.forEachEntry(gc,function(Us,N_){if(Uu(Us,Po)&&!Yd(N_)&&N_!=="export=")return Wo=e.unescapeLeadingUnderscores(N_),!0})}if(Wo||(Wo=sl(Po,Ar)),Ar.approximateLength+=Wo.length+1,!(Ar.flags&16)&&ms&&Il(ms)&&Il(ms).get(Po.escapedName)&&Uu(Il(ms).get(Po.escapedName),Po)){var vs=Ha(Tn,Ca-1,kn);return e.isIndexedAccessTypeNode(vs)?e.factory.createIndexedAccessTypeNode(vs,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(Wo))):e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(vs,mo),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(Wo)))}var vl=e.setEmitFlags(e.factory.createIdentifier(Wo,mo),16777216);if(vl.symbol=Po,Ca>kn){var vs=Ha(Tn,Ca-1,kn);return e.isEntityName(vs)?e.factory.createQualifiedName(vs,vl):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return vl}}function Dn(ii,Ar,Pt){var pt=os(Ar.enclosingDeclaration,ii,788968,void 0,ii,!1);return pt?!(pt.flags&262144&&pt===Pt.symbol):!1}function Ra(ii,Ar){var Pt,pt;if(Ar.flags&4&&Ar.typeParameterNames){var Xt=Ar.typeParameterNames.get(Gu(ii));if(Xt)return Xt}var qt=Bn(ii.symbol,Ar,788968,!0);if(!(qt.kind&79))return e.factory.createIdentifier("(Missing type parameter)");if(Ar.flags&4){for(var Yt=qt.escapedText,va=((Pt=Ar.typeParameterNamesByTextNextNameCount)===null||Pt===void 0?void 0:Pt.get(Yt))||0,Ft=Yt;((pt=Ar.typeParameterNamesByText)===null||pt===void 0?void 0:pt.has(Ft))||Dn(Ft,Ar,ii);)va++,Ft="".concat(Yt,"_").concat(va);Ft!==Yt&&(qt=e.factory.createIdentifier(Ft,qt.typeArguments)),(Ar.typeParameterNamesByTextNextNameCount||(Ar.typeParameterNamesByTextNextNameCount=new e.Map)).set(Yt,va),(Ar.typeParameterNames||(Ar.typeParameterNames=new e.Map)).set(Gu(ii),qt),(Ar.typeParameterNamesByText||(Ar.typeParameterNamesByText=new e.Set)).add(Yt)}return qt}function Bn(ii,Ar,Pt,pt){var Xt=Ii(ii,Ar,Pt);return pt&&Xt.length!==1&&!Ar.encounteredError&&!(Ar.flags&65536)&&(Ar.encounteredError=!0),qt(Xt,Xt.length-1);function qt(Yt,va){var Ft=Xi(Yt,va,Ar),pi=Yt[va];va===0&&(Ar.flags|=16777216);var Ai=sl(pi,Ar);va===0&&(Ar.flags^=16777216);var Qi=e.setEmitFlags(e.factory.createIdentifier(Ai,Ft),16777216);return Qi.symbol=pi,va>0?e.factory.createQualifiedName(qt(Yt,va-1),Qi):Qi}}function Jn(ii,Ar,Pt){var pt=Ii(ii,Ar,Pt);return Xt(pt,pt.length-1);function Xt(qt,Yt){var va=Xi(qt,Yt,Ar),Ft=qt[Yt];Yt===0&&(Ar.flags|=16777216);var pi=sl(Ft,Ar);Yt===0&&(Ar.flags^=16777216);var Ai=pi.charCodeAt(0);if(e.isSingleOrDoubleQuote(Ai)&&e.some(Ft.declarations,Cl))return e.factory.createStringLiteral(lt(Ft,Ar));var Qi=Ai===35?pi.length>1&&e.isIdentifierStart(pi.charCodeAt(1),Se):e.isIdentifierStart(Ai,Se);if(Yt===0||Qi){var it=e.setEmitFlags(e.factory.createIdentifier(pi,va),16777216);return it.symbol=Ft,Yt>0?e.factory.createPropertyAccessExpression(Xt(qt,Yt-1),it):it}else{Ai===91&&(pi=pi.substring(1,pi.length-1),Ai=pi.charCodeAt(0));var st=void 0;return e.isSingleOrDoubleQuote(Ai)&&!(Ft.flags&8)?st=e.factory.createStringLiteral(e.stripQuotes(pi).replace(/\\./g,function(kt){return kt.substring(1)}),Ai===39):""+ +pi===pi&&(st=e.factory.createNumericLiteral(+pi)),st||(st=e.setEmitFlags(e.factory.createIdentifier(pi,va),16777216),st.symbol=Ft),e.factory.createElementAccessExpression(Xt(qt,Yt-1),st)}}}function On(ii){var Ar=e.getNameOfDeclaration(ii);return!!Ar&&e.isStringLiteral(Ar)}function Ao(ii){var Ar=e.getNameOfDeclaration(ii);return!!(Ar&&e.isStringLiteral(Ar)&&(Ar.singleQuote||!e.nodeIsSynthesized(Ar)&&e.startsWith(e.getTextOfNode(Ar,!1),"'")))}function $i(ii,Ar){var Pt=!!e.length(ii.declarations)&&e.every(ii.declarations,Ao),pt=Vi(ii,Ar,Pt);if(pt)return pt;var Xt=e.unescapeLeadingUnderscores(ii.escapedName),qt=!!e.length(ii.declarations)&&e.every(ii.declarations,On);return e.createPropertyNameNodeForIdentifierOrLiteral(Xt,e.getEmitScriptTarget(ye),Pt,qt)}function Vi(ii,Ar,Pt){var pt=Ma(ii).nameType;if(pt){if(pt.flags&384){var Xt=""+pt.value;return!e.isIdentifierText(Xt,e.getEmitScriptTarget(ye))&&!e.isNumericLiteralName(Xt)?e.factory.createStringLiteral(Xt,!!Pt):e.isNumericLiteralName(Xt)&&e.startsWith(Xt,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+Xt)):e.createPropertyNameNodeForIdentifierOrLiteral(Xt,e.getEmitScriptTarget(ye))}if(pt.flags&8192)return e.factory.createComputedPropertyName(Jn(pt.symbol,Ar,111551))}}function Ot(ii){var Ar=Ve({},ii);return Ar.typeParameterNames&&(Ar.typeParameterNames=new e.Map(Ar.typeParameterNames)),Ar.typeParameterNamesByText&&(Ar.typeParameterNamesByText=new e.Set(Ar.typeParameterNamesByText)),Ar.typeParameterSymbolList&&(Ar.typeParameterSymbolList=new e.Set(Ar.typeParameterSymbolList)),Ar.tracker=i(Ar,Ar.tracker),Ar}function Wa(ii,Ar){return ii.declarations&&e.find(ii.declarations,function(Pt){return!!e.getEffectiveTypeAnnotationNode(Pt)&&(!Ar||!!e.findAncestor(Pt,function(pt){return pt===Ar}))})}function Qt(ii,Ar){return!(e.getObjectFlags(Ar)&4)||!e.isTypeReferenceNode(ii)||e.length(ii.typeArguments)>=Ol(Ar.target.typeParameters)}function Qa(ii,Ar,Pt,pt,Xt,qt){if(!ra(Ar)&&pt){var Yt=Wa(Pt,pt);if(Yt&&!e.isFunctionLikeDeclaration(Yt)&&!e.isGetAccessorDeclaration(Yt)){var va=e.getEffectiveTypeAnnotationNode(Yt);if(Ua(va)===Ar&&Qt(va,Ar)){var Ft=ia(ii,va,Xt,qt);if(Ft)return Ft}}}var pi=ii.flags;Ar.flags&8192&&Ar.symbol===Pt&&(!ii.enclosingDeclaration||e.some(Pt.declarations,function(Qi){return e.getSourceFileOfNode(Qi)===e.getSourceFileOfNode(ii.enclosingDeclaration)}))&&(ii.flags|=1048576);var Ai=o(Ar,ii);return ii.flags=pi,Ai}function En(ii,Ar,Pt,pt,Xt){if(!ra(Ar)&&ii.enclosingDeclaration){var qt=Pt.declaration&&e.getEffectiveReturnTypeNode(Pt.declaration);if(!!e.findAncestor(qt,function(pi){return pi===ii.enclosingDeclaration})&&qt){var Yt=Ua(qt),va=Yt.flags&262144&&Yt.isThisType?gn(Yt,Pt.mapper):Yt;if(va===Ar&&Qt(qt,Ar)){var Ft=ia(ii,qt,pt,Xt);if(Ft)return Ft}}}return o(Ar,ii)}function Gn(ii,Ar,Pt){var pt,Xt,qt=!1,Yt=e.getFirstIdentifier(ii);if(e.isInJSFile(ii)&&(e.isExportsIdentifier(Yt)||e.isModuleExportsAccessExpression(Yt.parent)||e.isQualifiedName(Yt.parent)&&e.isModuleIdentifier(Yt.parent.left)&&e.isExportsIdentifier(Yt.parent.right)))return qt=!0,{introducesError:qt,node:ii};var va=Ps(Yt,67108863,!0,!0);if(va&&(mf(va,Ar.enclosingDeclaration,67108863,!1).accessibility!==0?qt=!0:((Xt=(pt=Ar.tracker)===null||pt===void 0?void 0:pt.trackSymbol)===null||Xt===void 0||Xt.call(pt,va,Ar.enclosingDeclaration,67108863),Pt==null||Pt(va)),e.isIdentifier(ii))){var Ft=Io(va),pi=va.flags&262144&&!El(Ft.symbol,Ar.enclosingDeclaration)?Ra(Ft,Ar):e.factory.cloneNode(ii);return pi.symbol=va,{introducesError:qt,node:e.setEmitFlags(e.setOriginalNode(pi,ii),16777216)}}return{introducesError:qt,node:ii}}function ia(ii,Ar,Pt,pt){ce&&ce.throwIfCancellationRequested&&ce.throwIfCancellationRequested();var Xt=!1,qt=e.getSourceFileOfNode(Ar),Yt=e.visitNode(Ar,va);if(Xt)return;return Yt===Ar?e.setTextRange(e.factory.cloneNode(Ar),Ar):Yt;function va(Ft){if(e.isJSDocAllType(Ft)||Ft.kind===317)return e.factory.createKeywordTypeNode(130);if(e.isJSDocUnknownType(Ft))return e.factory.createKeywordTypeNode(154);if(e.isJSDocNullableType(Ft))return e.factory.createUnionTypeNode([e.visitNode(Ft.type,va),e.factory.createLiteralTypeNode(e.factory.createNull())]);if(e.isJSDocOptionalType(Ft))return e.factory.createUnionTypeNode([e.visitNode(Ft.type,va),e.factory.createKeywordTypeNode(152)]);if(e.isJSDocNonNullableType(Ft))return e.visitNode(Ft.type,va);if(e.isJSDocVariadicType(Ft))return e.factory.createArrayTypeNode(e.visitNode(Ft.type,va));if(e.isJSDocTypeLiteral(Ft))return e.factory.createTypeLiteralNode(e.map(Ft.jsDocPropertyTags,function(Ca){var kn=e.isIdentifier(Ca.name)?Ca.name:Ca.name.right,mo=ai(Ua(Ft),kn.escapedText),Po=mo&&Ca.typeExpression&&Ua(Ca.typeExpression.type)!==mo?o(mo,ii):void 0;return e.factory.createPropertySignature(void 0,kn,Ca.isBracketed||Ca.typeExpression&&e.isJSDocOptionalType(Ca.typeExpression.type)?e.factory.createToken(57):void 0,Po||Ca.typeExpression&&e.visitNode(Ca.typeExpression.type,va)||e.factory.createKeywordTypeNode(130))}));if(e.isTypeReferenceNode(Ft)&&e.isIdentifier(Ft.typeName)&&Ft.typeName.escapedText==="")return e.setOriginalNode(e.factory.createKeywordTypeNode(130),Ft);if((e.isExpressionWithTypeArguments(Ft)||e.isTypeReferenceNode(Ft))&&e.isJSDocIndexSignature(Ft))return e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,void 0,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,e.visitNode(Ft.typeArguments[0],va))],e.visitNode(Ft.typeArguments[1],va))]);if(e.isJSDocFunctionType(Ft))if(e.isJSDocConstructSignature(Ft)){var pi;return e.factory.createConstructorTypeNode(Ft.modifiers,e.visitNodes(Ft.typeParameters,va),e.mapDefined(Ft.parameters,function(Ca,kn){return Ca.name&&e.isIdentifier(Ca.name)&&Ca.name.escapedText==="new"?(pi=Ca.type,void 0):e.factory.createParameterDeclaration(void 0,void 0,kt(Ca),Ha(Ca,kn),Ca.questionToken,e.visitNode(Ca.type,va),void 0)}),e.visitNode(pi||Ft.type,va)||e.factory.createKeywordTypeNode(130))}else return e.factory.createFunctionTypeNode(e.visitNodes(Ft.typeParameters,va),e.map(Ft.parameters,function(Ca,kn){return e.factory.createParameterDeclaration(void 0,void 0,kt(Ca),Ha(Ca,kn),Ca.questionToken,e.visitNode(Ca.type,va),void 0)}),e.visitNode(Ft.type,va)||e.factory.createKeywordTypeNode(130));if(e.isTypeReferenceNode(Ft)&&e.isInJSDoc(Ft)&&(!Qt(Ft,Ua(Ft))||QT(Ft)||hr===Gg(Ft,788968,!0)))return e.setOriginalNode(o(Ua(Ft),ii),Ft);if(e.isLiteralImportTypeNode(Ft)){var Ai=Da(Ft).resolvedSymbol;return e.isInJSDoc(Ft)&&Ai&&(!Ft.isTypeOf&&!(Ai.flags&788968)||!(e.length(Ft.typeArguments)>=Ol(Sf(Ai))))?e.setOriginalNode(o(Ua(Ft),ii),Ft):e.factory.updateImportTypeNode(Ft,e.factory.updateLiteralTypeNode(Ft.argument,Tn(Ft,Ft.argument.literal)),Ft.qualifier,e.visitNodes(Ft.typeArguments,va,e.isTypeNode),Ft.isTypeOf)}if(e.isEntityName(Ft)||e.isEntityNameExpression(Ft)){var Qi=Gn(Ft,ii,Pt),it=Qi.introducesError,st=Qi.node;if(Xt=Xt||it,st!==Ft)return st}return qt&&e.isTupleTypeNode(Ft)&&e.getLineAndCharacterOfPosition(qt,Ft.pos).line===e.getLineAndCharacterOfPosition(qt,Ft.end).line&&e.setEmitFlags(Ft,1),e.visitEachChild(Ft,va,e.nullTransformationContext);function kt(Ca){return Ca.dotDotDotToken||(Ca.type&&e.isJSDocVariadicType(Ca.type)?e.factory.createToken(25):void 0)}function Ha(Ca,kn){return Ca.name&&e.isIdentifier(Ca.name)&&Ca.name.escapedText==="this"?"this":kt(Ca)?"args":"arg".concat(kn)}function Tn(Ca,kn){if(pt){if(ii.tracker&&ii.tracker.moduleResolverHost){var mo=DS(Ca);if(mo){var Po=e.createGetCanonicalFileName(!!y.useCaseSensitiveFileNames),ms={getCanonicalFileName:Po,getCurrentDirectory:function(){return ii.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return ii.tracker.moduleResolverHost.getCommonSourceDirectory()}},Wo=e.getResolvedExternalModuleName(ms,mo);return e.factory.createStringLiteral(Wo)}}}else if(ii.tracker&&ii.tracker.trackExternalModuleSymbolOfImportTypeNode){var gc=xc(kn,kn,void 0);gc&&ii.tracker.trackExternalModuleSymbolOfImportTypeNode(gc)}return kn}}}function Xn(ii,Ar,Pt){var pt=$a(e.factory.createPropertyDeclaration,168,!0),Xt=$a(function(gi,Mt,ka,sa,da){return e.factory.createPropertySignature(Mt,ka,sa,da)},167,!1),qt=Ar.enclosingDeclaration,Yt=[],va=new e.Set,Ft=[],pi=Ar;Ar=Ve(Ve({},pi),{usedSymbolNames:new e.Set(pi.usedSymbolNames),remappedSymbolNames:new e.Map,tracker:Ve(Ve({},pi.tracker),{trackSymbol:function(gi,Mt,ka){var sa=mf(gi,Mt,ka,!1);if(sa.accessibility===0){var da=Fi(gi,Ar,ka);gi.flags&4||vs(da[0])}else if(pi.tracker&&pi.tracker.trackSymbol)return pi.tracker.trackSymbol(gi,Mt,ka);return!1}})}),Ar.tracker=i(Ar,Ar.tracker),e.forEachEntry(ii,function(gi,Mt){var ka=e.unescapeLeadingUnderscores(Mt);As(gi,ka)});var Ai=!Pt,Qi=ii.get("export=");return Qi&&ii.size>1&&Qi.flags&2097152&&(ii=e.createSymbolTable(),ii.set("export=",Qi)),ms(ii),Ca(Yt);function it(gi){return!!gi&&gi.kind===79}function st(gi){return e.isVariableStatement(gi)?e.filter(e.map(gi.declarationList.declarations,e.getNameOfDeclaration),it):e.filter([e.getNameOfDeclaration(gi)],it)}function kt(gi){var Mt=e.find(gi,e.isExportAssignment),ka=e.findIndex(gi,e.isModuleDeclaration),sa=ka!==-1?gi[ka]:void 0;if(sa&&Mt&&Mt.isExportEquals&&e.isIdentifier(Mt.expression)&&e.isIdentifier(sa.name)&&e.idText(sa.name)===e.idText(Mt.expression)&&sa.body&&e.isModuleBlock(sa.body)){var da=e.filter(gi,function(nn){return!!(e.getEffectiveModifierFlags(nn)&1)}),cn=sa.name,un=sa.body;if(e.length(da)&&(sa=e.factory.updateModuleDeclaration(sa,sa.decorators,sa.modifiers,sa.name,un=e.factory.updateModuleBlock(un,e.factory.createNodeArray(qe(qe([],sa.body.statements,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.map(e.flatMap(da,function(nn){return st(nn)}),function(nn){return e.factory.createExportSpecifier(!1,void 0,nn)})),void 0)],!1)))),gi=qe(qe(qe([],gi.slice(0,ka),!0),[sa],!1),gi.slice(ka+1),!0)),!e.find(gi,function(nn){return nn!==sa&&e.nodeHasName(nn,cn)})){Yt=[];var Nn=!e.some(un.statements,function(nn){return e.hasSyntacticModifier(nn,1)||e.isExportAssignment(nn)||e.isExportDeclaration(nn)});e.forEach(un.statements,function(nn){Us(nn,Nn?1:0)}),gi=qe(qe([],e.filter(gi,function(nn){return nn!==sa&&nn!==Mt}),!0),Yt,!0)}}return gi}function Ha(gi){var Mt=e.filter(gi,function(en){return e.isExportDeclaration(en)&&!en.moduleSpecifier&&!!en.exportClause&&e.isNamedExports(en.exportClause)});if(e.length(Mt)>1){var ka=e.filter(gi,function(en){return!e.isExportDeclaration(en)||!!en.moduleSpecifier||!en.exportClause});gi=qe(qe([],ka,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(Mt,function(en){return e.cast(en.exportClause,e.isNamedExports).elements})),void 0)],!1)}var sa=e.filter(gi,function(en){return e.isExportDeclaration(en)&&!!en.moduleSpecifier&&!!en.exportClause&&e.isNamedExports(en.exportClause)});if(e.length(sa)>1){var da=e.group(sa,function(en){return e.isStringLiteral(en.moduleSpecifier)?">"+en.moduleSpecifier.text:">"});if(da.length!==sa.length)for(var cn=function(en){en.length>1&&(gi=qe(qe([],e.filter(gi,function(po){return en.indexOf(po)===-1}),!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(en,function(po){return e.cast(po.exportClause,e.isNamedExports).elements})),en[0].moduleSpecifier)],!1))},un=0,Nn=da;un<Nn.length;un++){var nn=Nn[un];cn(nn)}}return gi}function Tn(gi){var Mt=e.findIndex(gi,function(da){return e.isExportDeclaration(da)&&!da.moduleSpecifier&&!da.assertClause&&!!da.exportClause&&e.isNamedExports(da.exportClause)});if(Mt>=0){var ka=gi[Mt],sa=e.mapDefined(ka.exportClause.elements,function(da){if(!da.propertyName){var cn=e.indicesOf(gi),un=e.filter(cn,function(po){return e.nodeHasName(gi[po],da.name)});if(e.length(un)&&e.every(un,function(po){return kn(gi[po])})){for(var Nn=0,nn=un;Nn<nn.length;Nn++){var en=nn[Nn];gi[en]=mo(gi[en])}return}}return da});e.length(sa)?gi[Mt]=e.factory.updateExportDeclaration(ka,ka.decorators,ka.modifiers,ka.isTypeOnly,e.factory.updateNamedExports(ka.exportClause,sa),ka.moduleSpecifier,ka.assertClause):e.orderedRemoveItemAt(gi,Mt)}return gi}function Ca(gi){return gi=kt(gi),gi=Ha(gi),gi=Tn(gi),qt&&(e.isSourceFile(qt)&&e.isExternalOrCommonJsModule(qt)||e.isModuleDeclaration(qt))&&(!e.some(gi,e.isExternalModuleIndicator)||!e.hasScopeMarker(gi)&&e.some(gi,e.needsScopeMarker))&&gi.push(e.createEmptyExports(e.factory)),gi}function kn(gi){return e.isEnumDeclaration(gi)||e.isVariableStatement(gi)||e.isFunctionDeclaration(gi)||e.isClassDeclaration(gi)||e.isModuleDeclaration(gi)&&!e.isExternalModuleAugmentation(gi)&&!e.isGlobalScopeAugmentation(gi)||e.isInterfaceDeclaration(gi)||ky(gi)}function mo(gi){var Mt=(e.getEffectiveModifierFlags(gi)|1)&-3;return e.factory.updateModifiers(gi,Mt)}function Po(gi){var Mt=e.getEffectiveModifierFlags(gi)&-2;return e.factory.updateModifiers(gi,Mt)}function ms(gi,Mt,ka){Mt||Ft.push(new e.Map),gi.forEach(function(sa){Wo(sa,!1,!!ka)}),Mt||(Ft[Ft.length-1].forEach(function(sa){Wo(sa,!0,!!ka)}),Ft.pop())}function Wo(gi,Mt,ka){var sa=Wn(gi);if(!va.has(f(sa))){va.add(f(sa));var da=!Mt;if(da||!!e.length(gi.declarations)&&e.some(gi.declarations,function(Nn){return!!e.findAncestor(Nn,function(nn){return nn===qt})})){var cn=Ar;Ar=Ot(Ar);var un=gc(gi,Mt,ka);return Ar.reportedDiagnostic&&(pi.reportedDiagnostic=Ar.reportedDiagnostic),Ar=cn,un}}}function gc(gi,Mt,ka){var sa,da,cn=e.unescapeLeadingUnderscores(gi.escapedName),un=gi.escapedName==="default";if(Mt&&!(Ar.flags&131072)&&e.isStringANonContextualKeyword(cn)&&!un){Ar.encounteredError=!0;return}var Nn=un&&!!(gi.flags&-113||gi.flags&16&&e.length(_o(Jt(gi))))&&!(gi.flags&2097152),nn=!Nn&&!Mt&&e.isStringANonContextualKeyword(cn)&&!un;(Nn||nn)&&(Mt=!0);var en=(Mt?0:1)|(un&&!Nn?512:0),po=gi.flags&1536&&gi.flags&7&&gi.escapedName!=="export=",Mo=po&&wa(Jt(gi),gi);if((gi.flags&8208||Mo)&&yo(Jt(gi),gi,As(gi,cn),en),gi.flags&524288&&N_(gi,cn,en),gi.flags&7&&gi.escapedName!=="export="&&!(gi.flags&4194304)&&!(gi.flags&32)&&!Mo)if(ka){var hs=Et(gi);hs&&(nn=!1,Nn=!1)}else{var qo=Jt(gi),Lo=As(gi,cn);if(!(gi.flags&16)&&wa(qo,gi))yo(qo,gi,Lo,en);else{var Gs=gi.flags&2?ty(gi)?2:1:void 0,Ac=Nn||!(gi.flags&4)?Lo:Uo(Lo,gi),zs=gi.declarations&&e.find(gi.declarations,function(Eg){return e.isVariableDeclaration(Eg)});zs&&e.isVariableDeclarationList(zs.parent)&&zs.parent.declarations.length===1&&(zs=zs.parent.parent);var Mu=(sa=gi.declarations)===null||sa===void 0?void 0:sa.find(e.isPropertyAccessExpression);if(Mu&&e.isBinaryExpression(Mu.parent)&&e.isIdentifier(Mu.parent.right)&&((da=qo.symbol)===null||da===void 0?void 0:da.valueDeclaration)&&e.isSourceFile(qo.symbol.valueDeclaration)){var qd=Lo===Mu.parent.right.escapedText?void 0:Mu.parent.right;Us(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,qd,Lo)])),0),Ar.tracker.trackSymbol(qo.symbol,Ar.enclosingDeclaration,111551)}else{var Sd=e.setTextRange(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(Ac,void 0,Qa(Ar,qo,gi,qt,vs,Pt))],Gs)),zs);Us(Sd,Ac!==Lo?en&-2:en),Ac!==Lo&&!Mt&&(Us(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,Ac,Lo)])),0),nn=!1,Nn=!1)}}}if(gi.flags&384&&fs(gi,cn,en),gi.flags&32&&(gi.flags&4&&gi.valueDeclaration&&e.isBinaryExpression(gi.valueDeclaration.parent)&&e.isClassExpression(gi.valueDeclaration.parent.right)?Gt(gi,As(gi,cn),en):ct(gi,As(gi,cn),en)),(gi.flags&1536&&(!po||Ya(gi))||Mo)&&qn(gi,cn,en),gi.flags&64&&!(gi.flags&32)&&pv(gi,cn,en),gi.flags&2097152&&Gt(gi,As(gi,cn),en),gi.flags&4&&gi.escapedName==="export="&&Et(gi),gi.flags&8388608&&gi.declarations)for(var Vp=0,I_=gi.declarations;Vp<I_.length;Vp++){var Td=I_[Vp],r_=ko(Td,Td.moduleSpecifier);!r_||Us(e.factory.createExportDeclaration(void 0,void 0,!1,void 0,e.factory.createStringLiteral(lt(r_,Ar))),0)}Nn?Us(e.factory.createExportAssignment(void 0,void 0,!1,e.factory.createIdentifier(As(gi,cn))),0):nn&&Us(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,As(gi,cn),cn)])),0)}function vs(gi){if(!e.some(gi.declarations,e.isParameterDeclaration)){e.Debug.assertIsDefined(Ft[Ft.length-1]),Uo(e.unescapeLeadingUnderscores(gi.escapedName),gi);var Mt=!!(gi.flags&2097152)&&!e.some(gi.declarations,function(ka){return!!e.findAncestor(ka,e.isExportDeclaration)||e.isNamespaceExport(ka)||e.isImportEqualsDeclaration(ka)&&!e.isExternalModuleReference(ka.moduleReference)});Ft[Mt?0:Ft.length-1].set(f(gi),gi)}}function vl(gi){return e.isSourceFile(gi)&&(e.isExternalOrCommonJsModule(gi)||e.isJsonSourceFile(gi))||e.isAmbientModule(gi)&&!e.isGlobalScopeAugmentation(gi)}function Us(gi,Mt){if(e.canHaveModifiers(gi)){var ka=0,sa=Ar.enclosingDeclaration&&(e.isJSDocTypeAlias(Ar.enclosingDeclaration)?e.getSourceFileOfNode(Ar.enclosingDeclaration):Ar.enclosingDeclaration);Mt&1&&sa&&(vl(sa)||e.isModuleDeclaration(sa))&&kn(gi)&&(ka|=1),Ai&&!(ka&1)&&(!sa||!(sa.flags&8388608))&&(e.isEnumDeclaration(gi)||e.isVariableStatement(gi)||e.isFunctionDeclaration(gi)||e.isClassDeclaration(gi)||e.isModuleDeclaration(gi))&&(ka|=2),Mt&512&&(e.isClassDeclaration(gi)||e.isInterfaceDeclaration(gi)||e.isFunctionDeclaration(gi))&&(ka|=512),ka&&(gi=e.factory.updateModifiers(gi,ka|e.getEffectiveModifierFlags(gi)))}Yt.push(gi)}function N_(gi,Mt,ka){var sa,da=cs(gi),cn=Ma(gi).typeParameters,un=e.map(cn,function(hs){return yr(hs,Ar)}),Nn=(sa=gi.declarations)===null||sa===void 0?void 0:sa.find(e.isJSDocTypeAlias),nn=e.getTextOfJSDocComment(Nn?Nn.comment||Nn.parent.comment:void 0),en=Ar.flags;Ar.flags|=8388608;var po=Ar.enclosingDeclaration;Ar.enclosingDeclaration=Nn;var Mo=Nn&&Nn.typeExpression&&e.isJSDocTypeExpression(Nn.typeExpression)&&ia(Ar,Nn.typeExpression.type,vs,Pt)||o(da,Ar);Us(e.setSyntheticLeadingComments(e.factory.createTypeAliasDeclaration(void 0,void 0,As(gi,Mt),un,Mo),nn?[{kind:3,text:`*
 * `+nn.replace(/\n/g,`
 * `)+`
 `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),ka),Ar.flags=en,Ar.enclosingDeclaration=po}function pv(gi,Mt,ka){var sa=Pn(gi),da=Sf(gi),cn=e.map(da,function(qo){return yr(qo,Ar)}),un=zc(sa),Nn=e.length(un)?To(un):void 0,nn=e.flatMap(_o(sa),function(qo){return jn(qo,Nn)}),en=Fn(0,sa,Nn,173),po=Fn(1,sa,Nn,174),Mo=Yn(sa,Nn),hs=e.length(un)?[e.factory.createHeritageClause(94,e.mapDefined(un,function(qo){return ys(qo,111551)}))]:void 0;Us(e.factory.createInterfaceDeclaration(void 0,void 0,As(gi,Mt),cn,hs,qe(qe(qe(qe([],Mo,!0),po,!0),en,!0),nn,!0)),ka)}function dv(gi){return gi.exports?e.filter(e.arrayFrom(gi.exports.values()),yi):[]}function Ya(gi){return e.every(dv(gi),function(Mt){return!(Qo(Mt).flags&111551)})}function qn(gi,Mt,ka){var sa=dv(gi),da=e.arrayToMultiMap(sa,function(po){return po.parent&&po.parent===gi?"real":"merged"}),cn=da.get("real")||e.emptyArray,un=da.get("merged")||e.emptyArray;if(e.length(cn)){var Nn=As(gi,Mt);oi(cn,Nn,ka,!!(gi.flags&67108880))}if(e.length(un)){var nn=e.getSourceFileOfNode(Ar.enclosingDeclaration),Nn=As(gi,Mt),en=e.factory.createModuleBlock([e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.mapDefined(e.filter(un,function(Mo){return Mo.escapedName!=="export="}),function(Mo){var hs,qo,Lo=e.unescapeLeadingUnderscores(Mo.escapedName),Gs=As(Mo,Lo),Ac=Mo.declarations&&ju(Mo);if(nn&&(Ac?nn!==e.getSourceFileOfNode(Ac):!e.some(Mo.declarations,function(qd){return e.getSourceFileOfNode(qd)===nn}))){(qo=(hs=Ar.tracker)===null||hs===void 0?void 0:hs.reportNonlocalAugmentation)===null||qo===void 0||qo.call(hs,nn,gi,Mo);return}var zs=Ac&&of(Ac,!0);vs(zs||Mo);var Mu=zs?As(zs,e.unescapeLeadingUnderscores(zs.escapedName)):Gs;return e.factory.createExportSpecifier(!1,Lo===Mu?void 0:Mu,Lo)})))]);Us(e.factory.createModuleDeclaration(void 0,void 0,e.factory.createIdentifier(Nn),en,16),0)}}function fs(gi,Mt,ka){Us(e.factory.createEnumDeclaration(void 0,e.factory.createModifiersFromModifierFlags(qb(gi)?2048:0),As(gi,Mt),e.map(e.filter(_o(Jt(gi)),function(sa){return!!(sa.flags&8)}),function(sa){var da=sa.declarations&&sa.declarations[0]&&e.isEnumMember(sa.declarations[0])?vS(sa.declarations[0]):void 0;return e.factory.createEnumMember(e.unescapeLeadingUnderscores(sa.escapedName),da===void 0?void 0:typeof da=="string"?e.factory.createStringLiteral(da):e.factory.createNumericLiteral(da))})),ka)}function yo(gi,Mt,ka,sa){for(var da=za(gi,0),cn=0,un=da;cn<un.length;cn++){var Nn=un[cn],nn=$e(Nn,255,Ar,{name:e.factory.createIdentifier(ka),privateSymbolVisitor:vs,bundledImports:Pt});Us(e.setTextRange(nn,ec(Nn)),sa)}if(!(Mt.flags&1536&&!!Mt.exports&&!!Mt.exports.size)){var en=e.filter(_o(gi),yi);oi(en,ka,sa,!0)}}function ec(gi){if(gi.declaration&&gi.declaration.parent){if(e.isBinaryExpression(gi.declaration.parent)&&e.getAssignmentDeclarationKind(gi.declaration.parent)===5)return gi.declaration.parent;if(e.isVariableDeclaration(gi.declaration.parent)&&gi.declaration.parent.parent)return gi.declaration.parent.parent}return gi.declaration}function oi(gi,Mt,ka,sa){if(e.length(gi)){var da=e.arrayToMultiMap(gi,function(Lo){return!e.length(Lo.declarations)||e.some(Lo.declarations,function(Gs){return e.getSourceFileOfNode(Gs)===e.getSourceFileOfNode(Ar.enclosingDeclaration)})?"local":"remote"}),cn=da.get("local")||e.emptyArray,un=e.parseNodeFactory.createModuleDeclaration(void 0,void 0,e.factory.createIdentifier(Mt),e.factory.createModuleBlock([]),16);e.setParent(un,qt),un.locals=e.createSymbolTable(gi),un.symbol=gi[0].parent;var Nn=Yt;Yt=[];var nn=Ai;Ai=!1;var en=Ve(Ve({},Ar),{enclosingDeclaration:un}),po=Ar;Ar=en,ms(e.createSymbolTable(cn),sa,!0),Ar=po,Ai=nn;var Mo=Yt;Yt=Nn;var hs=e.map(Mo,function(Lo){return e.isExportAssignment(Lo)&&!Lo.isExportEquals&&e.isIdentifier(Lo.expression)?e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,Lo.expression,e.factory.createIdentifier("default"))])):Lo}),qo=e.every(hs,function(Lo){return e.hasSyntacticModifier(Lo,1)})?e.map(hs,Po):hs;un=e.factory.updateModuleDeclaration(un,un.decorators,un.modifiers,un.name,e.factory.createModuleBlock(qo)),Us(un,ka)}}function yi(gi){return!!(gi.flags&2887656)||!(gi.flags&4194304||gi.escapedName==="prototype"||gi.valueDeclaration&&e.isStatic(gi.valueDeclaration)&&e.isClassLike(gi.valueDeclaration.parent))}function Bi(gi){var Mt=e.mapDefined(gi,function(ka){var sa,da=Ar.enclosingDeclaration;Ar.enclosingDeclaration=ka;var cn=ka.expression;if(e.isEntityNameExpression(cn)){if(e.isIdentifier(cn)&&e.idText(cn)==="")return Nn(void 0);var un=void 0;if(sa=Gn(cn,Ar,vs),un=sa.introducesError,cn=sa.node,un)return Nn(void 0)}return Nn(e.factory.createExpressionWithTypeArguments(cn,e.map(ka.typeArguments,function(nn){return ia(Ar,nn,vs,Pt)||o(Ua(nn),Ar)})));function Nn(nn){return Ar.enclosingDeclaration=da,nn}});if(Mt.length===gi.length)return Mt}function ct(gi,Mt,ka){var sa,da,cn=(sa=gi.declarations)===null||sa===void 0?void 0:sa.find(e.isClassLike),un=Ar.enclosingDeclaration;Ar.enclosingDeclaration=cn||un;var Nn=Sf(gi),nn=e.map(Nn,function(tu){return yr(tu,Ar)}),en=Pn(gi),po=zc(en),Mo=cn&&e.getEffectiveImplementsTypeNodes(cn),hs=Mo&&Bi(Mo)||e.mapDefined(bv(en),ks),qo=Jt(gi),Lo=!!(!((da=qo.symbol)===null||da===void 0)&&da.valueDeclaration)&&e.isClassLike(qo.symbol.valueDeclaration),Gs=Lo?ef(qo):xe,Ac=qe(qe([],e.length(po)?[e.factory.createHeritageClause(94,e.map(po,function(tu){return Ss(tu,Gs,Mt)}))]:[],!0),e.length(hs)?[e.factory.createHeritageClause(117,hs)]:[],!0),zs=zF(en,po,_o(en)),Mu=e.filter(zs,function(tu){var xd=tu.valueDeclaration;return!!xd&&!(e.isNamedDeclaration(xd)&&e.isPrivateIdentifier(xd.name))}),qd=e.some(zs,function(tu){var xd=tu.valueDeclaration;return!!xd&&e.isNamedDeclaration(xd)&&e.isPrivateIdentifier(xd.name)}),Sd=qd?[e.factory.createPropertyDeclaration(void 0,void 0,e.factory.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:e.emptyArray,Vp=e.flatMap(Mu,function(tu){return pt(tu,!1,po[0])}),I_=e.flatMap(e.filter(_o(qo),function(tu){return!(tu.flags&4194304)&&tu.escapedName!=="prototype"&&!yi(tu)}),function(tu){return pt(tu,!0,Gs)}),Td=!Lo&&!!gi.valueDeclaration&&e.isInJSFile(gi.valueDeclaration)&&!e.some(za(qo,1)),r_=Td?[e.factory.createConstructorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(8),[],void 0)]:Fn(1,qo,Gs,170),Eg=Yn(en,po[0]);Ar.enclosingDeclaration=un,Us(e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,Mt,nn,Ac,qe(qe(qe(qe(qe([],Eg,!0),I_,!0),r_,!0),Vp,!0),Sd,!0)),gi.declarations&&e.filter(gi.declarations,function(tu){return e.isClassDeclaration(tu)||e.isClassExpression(tu)})[0]),ka)}function at(gi){return e.firstDefined(gi,function(Mt){if(e.isImportSpecifier(Mt)||e.isExportSpecifier(Mt))return e.idText(Mt.propertyName||Mt.name);if(e.isBinaryExpression(Mt)||e.isExportAssignment(Mt)){var ka=e.isExportAssignment(Mt)?Mt.expression:Mt.right;if(e.isPropertyAccessExpression(ka))return e.idText(ka.name)}if(_u(Mt)){var sa=e.getNameOfDeclaration(Mt);if(sa&&e.isIdentifier(sa))return e.idText(sa)}})}function Gt(gi,Mt,ka){var sa,da,cn,un,Nn,nn=ju(gi);if(!nn)return e.Debug.fail();var en=Wn(of(nn,!0));if(!!en){var po=e.isShorthandAmbientModuleSymbol(en)&&at(gi.declarations)||e.unescapeLeadingUnderscores(en.escapedName);po==="export="&&(e.getESModuleInterop(ye)||ye.allowSyntheticDefaultImports)&&(po="default");var Mo=As(en,po);switch(vs(en),nn.kind){case 202:if(((da=(sa=nn.parent)===null||sa===void 0?void 0:sa.parent)===null||da===void 0?void 0:da.kind)===253){var hs=lt(en.parent||en,Ar),qo=nn.propertyName;Us(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(!1,qo&&e.isIdentifier(qo)?e.factory.createIdentifier(e.idText(qo)):void 0,e.factory.createIdentifier(Mt))])),e.factory.createStringLiteral(hs),void 0),0);break}e.Debug.failBadSyntaxKind(((cn=nn.parent)===null||cn===void 0?void 0:cn.parent)||nn,"Unhandled binding element grandparent kind in declaration serialization");break;case 295:((Nn=(un=nn.parent)===null||un===void 0?void 0:un.parent)===null||Nn===void 0?void 0:Nn.kind)===220&&Wt(e.unescapeLeadingUnderscores(gi.escapedName),Mo);break;case 253:if(e.isPropertyAccessExpression(nn.initializer)){var Lo=nn.initializer,Gs=e.factory.createUniqueName(Mt),Ac=lt(en.parent||en,Ar);Us(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,Gs,e.factory.createExternalModuleReference(e.factory.createStringLiteral(Ac))),0),Us(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(Mt),e.factory.createQualifiedName(Gs,Lo.name)),ka);break}case 264:if(en.escapedName==="export="&&e.some(en.declarations,e.isJsonSourceFile)){Et(gi);break}var zs=!(en.flags&512)&&!e.isVariableDeclaration(nn);Us(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(Mt),zs?Bn(en,Ar,67108863,!1):e.factory.createExternalModuleReference(e.factory.createStringLiteral(lt(en,Ar)))),zs?ka:0);break;case 263:Us(e.factory.createNamespaceExportDeclaration(e.idText(nn.name)),0);break;case 266:Us(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,e.factory.createIdentifier(Mt),void 0),e.factory.createStringLiteral(lt(en.parent||en,Ar)),void 0),0);break;case 267:Us(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(Mt))),e.factory.createStringLiteral(lt(en,Ar)),void 0),0);break;case 273:Us(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamespaceExport(e.factory.createIdentifier(Mt)),e.factory.createStringLiteral(lt(en,Ar))),0);break;case 269:Us(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(!1,Mt!==po?e.factory.createIdentifier(po):void 0,e.factory.createIdentifier(Mt))])),e.factory.createStringLiteral(lt(en.parent||en,Ar)),void 0),0);break;case 274:var Mu=nn.parent.parent.moduleSpecifier;Wt(e.unescapeLeadingUnderscores(gi.escapedName),Mu?po:Mo,Mu&&e.isStringLiteralLike(Mu)?e.factory.createStringLiteral(Mu.text):void 0);break;case 270:Et(gi);break;case 220:case 205:case 206:gi.escapedName==="default"||gi.escapedName==="export="?Et(gi):Wt(Mt,Mo);break;default:return e.Debug.failBadSyntaxKind(nn,"Unhandled alias declaration kind in symbol serializer!")}}}function Wt(gi,Mt,ka){Us(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,gi!==Mt?Mt:void 0,gi)]),ka),0)}function Et(gi){if(gi.flags&4194304)return!1;var Mt=e.unescapeLeadingUnderscores(gi.escapedName),ka=Mt==="export=",sa=Mt==="default",da=ka||sa,cn=gi.declarations&&ju(gi),un=cn&&of(cn,!0);if(un&&e.length(un.declarations)&&e.some(un.declarations,function(Lo){return e.getSourceFileOfNode(Lo)===e.getSourceFileOfNode(qt)})){var Nn=cn&&(e.isExportAssignment(cn)||e.isBinaryExpression(cn)?e.getExportAssignmentExpression(cn):e.getPropertyAssignmentAliasLikeExpression(cn)),nn=Nn&&e.isEntityNameExpression(Nn)?rM(Nn):void 0,en=nn&&Ps(nn,67108863,!0,!0,qt);(en||un)&&vs(en||un);var po=Ar.tracker.trackSymbol;if(Ar.tracker.trackSymbol=function(){return!1},da)Yt.push(e.factory.createExportAssignment(void 0,void 0,ka,Jn(un,Ar,67108863)));else if(nn===Nn&&nn)Wt(Mt,e.idText(nn));else if(Nn&&e.isClassExpression(Nn))Wt(Mt,As(un,e.symbolName(un)));else{var Mo=Uo(Mt,gi);Us(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(Mo),Bn(un,Ar,67108863,!1)),0),Wt(Mt,Mo)}return Ar.tracker.trackSymbol=po,!0}else{var Mo=Uo(Mt,gi),hs=Hc(Jt(Wn(gi)));if(wa(hs,gi))yo(hs,gi,Mo,da?0:1);else{var qo=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(Mo,void 0,Qa(Ar,hs,gi,qt,vs,Pt))],2));Us(qo,un&&un.flags&4&&un.escapedName==="export="?2:Mt===Mo?1:0)}return da?(Yt.push(e.factory.createExportAssignment(void 0,void 0,ka,e.factory.createIdentifier(Mo))),!0):Mt!==Mo?(Wt(Mt,Mo),!0):!1}}function wa(gi,Mt){var ka=e.getSourceFileOfNode(Ar.enclosingDeclaration);return e.getObjectFlags(gi)&48&&!e.length(Js(gi))&&!rd(gi)&&!!(e.length(e.filter(_o(gi),yi))||e.length(za(gi,0)))&&!e.length(za(gi,1))&&!Wa(Mt,qt)&&!(gi.symbol&&e.some(gi.symbol.declarations,function(sa){return e.getSourceFileOfNode(sa)!==ka}))&&!e.some(_o(gi),function(sa){return Yd(sa.escapedName)})&&!e.some(_o(gi),function(sa){return e.some(sa.declarations,function(da){return e.getSourceFileOfNode(da)!==ka})})&&e.every(_o(gi),function(sa){return e.isIdentifierText(e.symbolName(sa),Se)})}function $a(gi,Mt,ka){return function(da,cn,un){var Nn,nn,en,po,Mo,hs=e.getDeclarationModifierFlagsFromSymbol(da),qo=!!(hs&8);if(cn&&da.flags&2887656)return[];if(da.flags&4194304||un&&tn(un,da.escapedName)&&zl(tn(un,da.escapedName))===zl(da)&&(da.flags&16777216)===(tn(un,da.escapedName).flags&16777216)&&Qf(Jt(da),ai(un,da.escapedName)))return[];var Lo=hs&-257|(cn?32:0),Gs=$i(da,Ar),Ac=(Nn=da.declarations)===null||Nn===void 0?void 0:Nn.find(e.or(e.isPropertyDeclaration,e.isAccessor,e.isVariableDeclaration,e.isPropertySignature,e.isBinaryExpression,e.isPropertyAccessExpression));if(da.flags&98304&&ka){var zs=[];if(da.flags&65536&&zs.push(e.setTextRange(e.factory.createSetAccessorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(Lo),Gs,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"arg",void 0,qo?void 0:Qa(Ar,Jt(da),da,qt,vs,Pt))],void 0),((nn=da.declarations)===null||nn===void 0?void 0:nn.find(e.isSetAccessor))||Ac)),da.flags&32768){var Mu=hs&8;zs.push(e.setTextRange(e.factory.createGetAccessorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(Lo),Gs,[],Mu?void 0:Qa(Ar,Jt(da),da,qt,vs,Pt),void 0),((en=da.declarations)===null||en===void 0?void 0:en.find(e.isGetAccessor))||Ac))}return zs}else if(da.flags&98311)return e.setTextRange(gi(void 0,e.factory.createModifiersFromModifierFlags((zl(da)?64:0)|Lo),Gs,da.flags&16777216?e.factory.createToken(57):void 0,qo?void 0:Qa(Ar,Jt(da),da,qt,vs,Pt),void 0),((po=da.declarations)===null||po===void 0?void 0:po.find(e.or(e.isPropertyDeclaration,e.isVariableDeclaration)))||Ac);if(da.flags&8208){var qd=Jt(da),Sd=za(qd,0);if(Lo&8)return e.setTextRange(gi(void 0,e.factory.createModifiersFromModifierFlags((zl(da)?64:0)|Lo),Gs,da.flags&16777216?e.factory.createToken(57):void 0,void 0,void 0),((Mo=da.declarations)===null||Mo===void 0?void 0:Mo.find(e.isFunctionLikeDeclaration))||Sd[0]&&Sd[0].declaration||da.declarations&&da.declarations[0]);for(var Vp=[],I_=0,Td=Sd;I_<Td.length;I_++){var r_=Td[I_],Eg=$e(r_,Mt,Ar,{name:Gs,questionToken:da.flags&16777216?e.factory.createToken(57):void 0,modifiers:Lo?e.factory.createModifiersFromModifierFlags(Lo):void 0}),tu=r_.declaration&&e.isPrototypePropertyAssignment(r_.declaration.parent)?r_.declaration.parent:r_.declaration;Vp.push(e.setTextRange(Eg,tu))}return Vp}return e.Debug.fail("Unhandled class member kind! ".concat(da.__debugFlags||da.flags))}}function jn(gi,Mt){return Xt(gi,!1,Mt)}function Fn(gi,Mt,ka,sa){var da=za(Mt,gi);if(gi===1){if(!ka&&e.every(da,function(zs){return e.length(zs.parameters)===0}))return[];if(ka){var cn=za(ka,1);if(!e.length(cn)&&e.every(da,function(zs){return e.length(zs.parameters)===0}))return[];if(cn.length===da.length){for(var un=!1,Nn=0;Nn<cn.length;Nn++)if(!Yv(da[Nn],cn[Nn],!1,!1,!0,jm)){un=!0;break}if(!un)return[]}}for(var nn=0,en=0,po=da;en<po.length;en++){var Mo=po[en];Mo.declaration&&(nn|=e.getSelectedEffectiveModifierFlags(Mo.declaration,24))}if(nn)return[e.setTextRange(e.factory.createConstructorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(nn),[],void 0),da[0].declaration)]}for(var hs=[],qo=0,Lo=da;qo<Lo.length;qo++){var Gs=Lo[qo],Ac=$e(Gs,sa,Ar);hs.push(e.setTextRange(Ac,Gs.declaration))}return hs}function Yn(gi,Mt){for(var ka=[],sa=0,da=Js(gi);sa<da.length;sa++){var cn=da[sa];if(Mt){var un=kc(Mt,cn.keyType);if(un&&Qf(cn.type,un.type))continue}ka.push(Ne(cn,Ar,void 0))}return ka}function Ss(gi,Mt,ka){var sa=ys(gi,111551);if(sa)return sa;var da=Uo("".concat(ka,"_base")),cn=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(da,void 0,o(Mt,Ar))],2));return Us(cn,0),e.factory.createExpressionWithTypeArguments(e.factory.createIdentifier(da),void 0)}function ys(gi,Mt){var ka,sa;if(gi.target&&Zc(gi.target.symbol,qt,Mt)?(ka=e.map(Co(gi),function(da){return o(da,Ar)}),sa=Jn(gi.target.symbol,Ar,788968)):gi.symbol&&Zc(gi.symbol,qt,Mt)&&(sa=Jn(gi.symbol,Ar,788968)),sa)return e.factory.createExpressionWithTypeArguments(sa,ka)}function ks(gi){var Mt=ys(gi,788968);if(Mt)return Mt;if(gi.symbol)return e.factory.createExpressionWithTypeArguments(Jn(gi.symbol,Ar,788968),void 0)}function Uo(gi,Mt){var ka,sa,da=Mt?f(Mt):void 0;if(da&&Ar.remappedSymbolNames.has(da))return Ar.remappedSymbolNames.get(da);Mt&&(gi=ps(Mt,gi));for(var cn=0,un=gi;!((ka=Ar.usedSymbolNames)===null||ka===void 0)&&ka.has(gi);)cn++,gi="".concat(un,"_").concat(cn);return(sa=Ar.usedSymbolNames)===null||sa===void 0||sa.add(gi),da&&Ar.remappedSymbolNames.set(da,gi),gi}function ps(gi,Mt){if(Mt==="default"||Mt==="__class"||Mt==="__function"){var ka=Ar.flags;Ar.flags|=16777216;var sa=sl(gi,Ar);Ar.flags=ka,Mt=sa.length>0&&e.isSingleOrDoubleQuote(sa.charCodeAt(0))?e.stripQuotes(sa):sa}return Mt==="default"?Mt="_default":Mt==="export="&&(Mt="_exports"),Mt=e.isIdentifierText(Mt,Se)&&!e.isStringANonContextualKeyword(Mt)?Mt:"_"+Mt.replace(/[^a-zA-Z0-9]/g,"_"),Mt}function As(gi,Mt){var ka=f(gi);return Ar.remappedSymbolNames.has(ka)?Ar.remappedSymbolNames.get(ka):(Mt=ps(gi,Mt),Ar.remappedSymbolNames.set(ka,Mt),Mt)}}}function Al(r,i,t,o){return t===void 0&&(t=16384),o?s(o).getText():e.usingSingleLineStringWriter(s);function s(u){var T=e.factory.createTypePredicateNode(r.kind===2||r.kind===3?e.factory.createToken(128):void 0,r.kind===1||r.kind===3?e.factory.createIdentifier(r.parameterName):e.factory.createThisTypeNode(),r.type&&Cr.typeToTypeNode(r.type,i,q_(t)|70221824|512)),q=e.createPrinter({removeComments:!0}),fe=i&&e.getSourceFileOfNode(i);return q.writeNode(4,T,fe,u),u}}function id(r){for(var i=[],t=0,o=0;o<r.length;o++){var s=r[o];if(t|=s.flags,!(s.flags&98304)){if(s.flags&1536){var u=s.flags&512?xt:cu(s);if(u.flags&1048576){var T=u.types.length;if(o+T<=r.length&&Vc(r[o+T-1])===Vc(u.types[T-1])){i.push(u),o+=T-1;continue}}}i.push(s)}}return t&65536&&i.push(Ti),t&32768&&i.push(Nr),i||r}function p_(r){return r===8?"private":r===16?"protected":"public"}function Nd(r){if(r.symbol&&r.symbol.flags&2048&&r.symbol.declarations){var i=e.walkUpParenthesizedTypes(r.symbol.declarations[0].parent);if(i.kind===258)return It(i)}}function V_(r){return r&&r.parent&&r.parent.kind===261&&e.isExternalModuleAugmentation(r.parent.parent)}function yu(r){return r.kind===303||e.isAmbientModule(r)}function d_(r,i){var t=Ma(r).nameType;if(t){if(t.flags&384){var o=""+t.value;return!e.isIdentifierText(o,e.getEmitScriptTarget(ye))&&!e.isNumericLiteralName(o)?'"'.concat(e.escapeString(o,34),'"'):e.isNumericLiteralName(o)&&e.startsWith(o,"-")?"[".concat(o,"]"):o}if(t.flags&8192)return"[".concat(sl(t.symbol,i),"]")}}function sl(r,i){if(i&&r.escapedName==="default"&&!(i.flags&16384)&&(!(i.flags&16777216)||!r.declarations||i.enclosingDeclaration&&e.findAncestor(r.declarations[0],yu)!==e.findAncestor(i.enclosingDeclaration,yu)))return"default";if(r.declarations&&r.declarations.length){var t=e.firstDefined(r.declarations,function(q){return e.getNameOfDeclaration(q)?q:void 0}),o=t&&e.getNameOfDeclaration(t);if(t&&o){if(e.isCallExpression(t)&&e.isBindableObjectDefinePropertyCall(t))return e.symbolName(r);if(e.isComputedPropertyName(o)&&!(e.getCheckFlags(r)&4096)){var s=Ma(r).nameType;if(s&&s.flags&384){var u=d_(r,i);if(u!==void 0)return u}}return e.declarationNameToString(o)}if(t||(t=r.declarations[0]),t.parent&&t.parent.kind===253)return e.declarationNameToString(t.parent.name);switch(t.kind){case 225:case 212:case 213:return i&&!i.encounteredError&&!(i.flags&131072)&&(i.encounteredError=!0),t.kind===225?"(Anonymous class)":"(Anonymous function)"}}var T=d_(r,i);return T!==void 0?T:e.symbolName(r)}function sc(r){if(r){var i=Da(r);return i.isVisible===void 0&&(i.isVisible=!!t()),i.isVisible}return!1;function t(){switch(r.kind){case 336:case 343:case 337:return!!(r.parent&&r.parent.parent&&r.parent.parent.parent&&e.isSourceFile(r.parent.parent.parent));case 202:return sc(r.parent.parent);case 253:if(e.isBindingPattern(r.name)&&!r.name.elements.length)return!1;case 260:case 256:case 257:case 258:case 255:case 259:case 264:if(e.isExternalModuleAugmentation(r))return!0;var o=b(r);return!(e.getCombinedModifierFlags(r)&1)&&!(r.kind!==264&&o.kind!==303&&o.flags&8388608)?Ju(o):sc(o);case 166:case 165:case 171:case 172:case 168:case 167:if(e.hasEffectiveModifier(r,24))return!1;case 170:case 174:case 173:case 175:case 163:case 261:case 178:case 179:case 181:case 177:case 182:case 183:case 186:case 187:case 190:case 196:return sc(r.parent);case 266:case 267:case 269:return!1;case 162:case 303:case 263:return!0;case 270:return!1;default:return!1}}}function Vf(r,i){var t;r.parent&&r.parent.kind===270?t=os(r,r.escapedText,2998271,void 0,r,!1):r.parent.kind===274&&(t=Cu(r.parent,2998271));var o,s;return t&&(s=new e.Set,s.add(f(t)),u(t.declarations)),o;function u(T){e.forEach(T,function(q){var fe=rl(q)||q;if(i?Da(q).isVisible=!0:(o=o||[],e.pushIfUnique(o,fe)),e.isInternalModuleImportEqualsDeclaration(q)){var Ne=q.moduleReference,$e=e.getFirstIdentifier(Ne),Ze=os(q,$e.escapedText,901119,void 0,void 0,!1);Ze&&s&&e.tryAddToSet(s,f(Ze))&&u(Ze.declarations)}})}}function ku(r,i){var t=vf(r,i);if(t>=0){for(var o=Bc.length,s=t;s<o;s++)Qu[s]=!1;return!1}return Bc.push(r),Qu.push(!0),uo.push(i),!0}function vf(r,i){for(var t=Bc.length-1;t>=0;t--){if(td(Bc[t],uo[t]))return-1;if(Bc[t]===r&&uo[t]===i)return t}return-1}function td(r,i){switch(i){case 0:return!!Ma(r).type;case 5:return!!Da(r).resolvedEnumType;case 2:return!!Ma(r).declaredType;case 1:return!!r.resolvedBaseConstructorType;case 3:return!!r.resolvedReturnType;case 4:return!!r.immediateBaseConstraint;case 6:return!!r.resolvedTypeArguments;case 7:return!!r.baseTypesResolved}return e.Debug.assertNever(i)}function eu(){return Bc.pop(),uo.pop(),Qu.pop()}function b(r){return e.findAncestor(e.getRootDeclaration(r),function(i){switch(i.kind){case 253:case 254:case 269:case 268:case 267:case 266:return!1;default:return!0}}).parent}function rr(r){var i=Io(Rs(r));return i.typeParameters?Hf(i,e.map(i.typeParameters,function(t){return xe})):i}function ai(r,i){var t=tn(r,i);return t?Jt(t):void 0}function Wi(r,i){var t;return ai(r,i)||((t=Np(r,i))===null||t===void 0?void 0:t.type)||We}function At(r){return r&&(r.flags&1)!==0}function ra(r){return r===Oe||!!(r.flags&1&&r.aliasSymbol)}function La(r,i){if(i!==0)return Zl(r,!1,i);var t=It(r);return t&&Ma(t).type||Zl(r,!1,i)}function fn(r,i,t){if(r=pc(r,function(ui){return!(ui.flags&98304)}),r.flags&131072)return tt;if(r.flags&1048576)return Cs(r,function(ui){return fn(ui,i,t)});for(var o=ba(e.map(i,$_)),s=[],u=[],T=0,q=_o(r);T<q.length;T++){var fe=q[T],Ne=Hg(fe,8576);!oo(Ne,o)&&!(e.getDeclarationModifierFlagsFromSymbol(fe)&24)&&ph(fe)?s.push(fe):u.push(Ne)}if(Md(r)||fd(o)){if(u.length&&(o=ba(qe([o],u,!0))),o.flags&131072)return r;var $e=_3();return $e?Kg($e,[r,o]):Oe}for(var Ze=e.createSymbolTable(),lr=0,yr=s;lr<yr.length;lr++){var fe=yr[lr];Ze.set(fe.escapedName,sD(fe,!1))}var Zr=_s(t,Ze,e.emptyArray,e.emptyArray,Js(r));return Zr.objectFlags|=8388608,Zr}function Bo(r){return!!(r.flags&465829888)&&ls(Cc(r)||We,32768)}function Yo(r){var i=dg(r,Bo)?Cs(r,function(t){return t.flags&465829888?rg(t):t}):r;return $s(i,524288)}function jo(r,i){var t=cc(r);return t?op(t,i):i}function cc(r){var i=qs(r);if(i&&i.flowNode){var t=uc(r);if(t){var o=e.setTextRange(e.parseNodeFactory.createStringLiteral(t),r),s=e.isLeftHandSideExpression(i)?i:e.parseNodeFactory.createParenthesizedExpression(i),u=e.setTextRange(e.parseNodeFactory.createElementAccessExpression(s,o),r);return e.setParent(o,u),e.setParent(u,r),s!==i&&e.setParent(s,u),u.flowNode=i.flowNode,u}}}function qs(r){var i=r.parent.parent;switch(i.kind){case 202:case 294:return cc(i);case 203:return cc(r.parent);case 253:return i.initializer;case 220:return i.right}}function uc(r){var i=r.parent;return r.kind===202&&i.kind===200?hu(r.propertyName||r.name):r.kind===294||r.kind===295?hu(r.name):""+i.elements.indexOf(r)}function hu(r){var i=$_(r);return i.flags&384?""+i.value:void 0}function $l(r){var i=r.dotDotDotToken?32:0,t=La(r.parent.parent,i);return t&&Qs(r,t)}function Qs(r,i){if(At(i))return i;var t=r.parent;ur&&r.flags&8388608&&e.isParameterDeclaration(r)?i=C_(i):ur&&t.parent.initializer&&!(np(LE(t.parent.initializer))&65536)&&(i=$s(i,524288));var o;if(t.kind===200)if(r.dotDotDotToken){if(i=Lt(i),i.flags&2||!oy(i))return Wr(r,e.Diagnostics.Rest_types_may_only_be_created_from_object_types),Oe;for(var s=[],u=0,T=t.elements;u<T.length;u++){var q=T[u];q.dotDotDotToken||s.push(q.propertyName||q.name)}o=fn(i,s,r.symbol)}else{var fe=r.propertyName||r.name,Ne=$_(fe),$e=Mc(i,Ne,32,fe);o=jo(r,$e)}else{var Ze=P_(65|(r.dotDotDotToken?0:128),i,Nr,t),lr=t.elements.indexOf(r);if(r.dotDotDotToken)o=kf(i,Ln)?Cs(i,function(Zr){return Mm(Zr,lr)}):tc(Ze);else if(ap(i)){var Ne=xf(lr),yr=32|(tm(r)?16:0),$e=Z_(i,Ne,yr,r.name)||Oe;o=jo(r,$e)}else o=Ze}return r.initializer?e.getEffectiveTypeAnnotationNode(e.walkUpBindingElementsAndPatterns(r))?ur&&!(Fu(vy(r,0))&32768)?Yo(o):o:Kb(r,ba([Yo(o),vy(r,0)],2)):o}function Au(r){var i=e.getJSDocType(r);if(i)return Ua(i)}function Id(r){var i=e.skipParentheses(r,!0);return i.kind===104||i.kind===79&&dl(i)===Jr}function K_(r){var i=e.skipParentheses(r,!0);return i.kind===203&&i.elements.length===0}function Ec(r,i,t){return i===void 0&&(i=!1),t===void 0&&(t=!0),ur&&t?$f(r,i):r}function Zl(r,i,t){if(e.isVariableDeclaration(r)&&r.parent.parent.kind===242){var o=Ll(Sb(hn(r.parent.parent.expression,t)));return o.flags&4456448?xx(o):ki}if(e.isVariableDeclaration(r)&&r.parent.parent.kind===243){var s=r.parent.parent;return Ty(s)||xe}if(e.isBindingPattern(r.parent))return $l(r);var u=e.isPropertyDeclaration(r)||e.isPropertySignature(r),T=i&&(u&&!!r.questionToken||e.isParameter(r)&&(!!r.questionToken||Nm(r))||zg(r)),q=bc(r);if(q)return Ec(q,u,T);if((Tr||e.isInJSFile(r))&&e.isVariableDeclaration(r)&&!e.isBindingPattern(r.name)&&!(e.getCombinedModifierFlags(r)&1)&&!(r.flags&8388608)){if(!(e.getCombinedNodeFlags(r)&2)&&(!r.initializer||Id(r.initializer)))return ze;if(r.initializer&&K_(r.initializer))return Nt}if(e.isParameter(r)){var fe=r.parent;if(fe.kind===172&&Pp(fe)){var Ne=e.getDeclarationOfKind(It(r.parent),171);if(Ne){var $e=Ku(Ne),Ze=TS(fe);return Ze&&r===Ze?(e.Debug.assert(!Ze.type),Jt($e.thisParameter)):So($e)}}if(e.isInJSFile(r)){var lr=th(fe,r);if(lr)return lr}var yr=r.symbol.escapedName==="this"?ZE(fe):eC(r);if(yr)return Ec(yr,!1,T)}if(e.hasOnlyExpressionInitializer(r)&&!!r.initializer){if(e.isInJSFile(r)&&!e.isParameter(r)){var Zr=ja(r,It(r),e.getDeclaredExpandoInitializer(r));if(Zr)return Zr}var yr=Kb(r,vy(r,t));return Ec(yr,u,T)}if(e.isPropertyDeclaration(r)&&(Tr||e.isInJSFile(r)))if(e.hasStaticModifier(r)){var Ii=e.filter(r.parent.members,e.isClassStaticBlockDeclaration),yr=Ii.length?Li(r.symbol,Ii):e.getEffectiveModifierFlags(r)&2?Sh(r.symbol):void 0;return yr&&Ec(yr,!0,T)}else{var ui=Gl(r.parent),yr=ui?ot(r.symbol,ui):e.getEffectiveModifierFlags(r)&2?Sh(r.symbol):void 0;return yr&&Ec(yr,!0,T)}if(e.isJsxAttribute(r))return Rt;if(e.isBindingPattern(r.name))return cl(r.name,!1,!0)}function Ie(r){if(r.valueDeclaration&&e.isBinaryExpression(r.valueDeclaration)){var i=Ma(r);return i.isConstructorDeclaredProperty===void 0&&(i.isConstructorDeclaredProperty=!1,i.isConstructorDeclaredProperty=!!Hr(r)&&e.every(r.declarations,function(t){return e.isBinaryExpression(t)&&Vh(t)&&(t.left.kind!==206||e.isStringOrNumericLiteralLike(t.left.argumentExpression))&&!Oa(void 0,t,r,t)})),i.isConstructorDeclaredProperty}return!1}function kr(r){var i=r.valueDeclaration;return i&&e.isPropertyDeclaration(i)&&!e.getEffectiveTypeAnnotationNode(i)&&!i.initializer&&(Tr||e.isInJSFile(i))}function Hr(r){if(!!r.declarations)for(var i=0,t=r.declarations;i<t.length;i++){var o=t[i],s=e.getThisContainer(o,!1);if(s&&(s.kind===170||ml(s)))return s}}function vi(r){var i=e.getSourceFileOfNode(r.declarations[0]),t=e.unescapeLeadingUnderscores(r.escapedName),o=r.declarations.every(function(u){return e.isInJSFile(u)&&e.isAccessExpression(u)&&e.isModuleExportsAccessExpression(u.expression)}),s=o?e.factory.createPropertyAccessExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("module"),e.factory.createIdentifier("exports")),t):e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),t);return o&&e.setParent(s.expression.expression,s.expression),e.setParent(s.expression,s),e.setParent(s,i),s.flowNode=i.endFlowNode,op(s,ze,Nr)}function Li(r,i){for(var t=e.startsWith(r.escapedName,"__#")?e.factory.createPrivateIdentifier(r.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(r.escapedName),o=0,s=i;o<s.length;o++){var u=s[o],T=e.factory.createPropertyAccessExpression(e.factory.createThis(),t);e.setParent(T.expression,T),e.setParent(T,u),T.flowNode=u.returnFlowNode;var q=zt(T,r);if(Tr&&(q===ze||q===Nt)&&Wr(r.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,Ga(r),ht(q)),!kf(q,$h))return uv(q)}}function ot(r,i){var t=e.startsWith(r.escapedName,"__#")?e.factory.createPrivateIdentifier(r.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(r.escapedName),o=e.factory.createPropertyAccessExpression(e.factory.createThis(),t);e.setParent(o.expression,o),e.setParent(o,i),o.flowNode=i.returnFlowNode;var s=zt(o,r);return Tr&&(s===ze||s===Nt)&&Wr(r.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,Ga(r),ht(s)),kf(s,$h)?void 0:uv(s)}function zt(r,i){var t=(i==null?void 0:i.valueDeclaration)&&(!kr(i)||e.getEffectiveModifierFlags(i.valueDeclaration)&2)&&Sh(i)||Nr;return op(r,ze,t)}function la(r,i){var t=e.getAssignedExpandoInitializer(r.valueDeclaration);if(t){var o=e.getJSDocTypeTag(t);if(o&&o.typeExpression)return Ua(o.typeExpression);var s=r.valueDeclaration&&ja(r.valueDeclaration,r,t);return s||Lp(js(t))}var u,T=!1,q=!1;if(Ie(r)&&(u=ot(r,Hr(r))),!u){var fe=void 0;if(r.declarations){for(var Ne=void 0,$e=0,Ze=r.declarations;$e<Ze.length;$e++){var lr=Ze[$e],yr=e.isBinaryExpression(lr)||e.isCallExpression(lr)?lr:e.isAccessExpression(lr)?e.isBinaryExpression(lr.parent)?lr.parent:lr:void 0;if(!!yr){var Zr=e.isAccessExpression(yr)?e.getAssignmentDeclarationPropertyAccessKind(yr):e.getAssignmentDeclarationKind(yr);(Zr===4||e.isBinaryExpression(yr)&&Vh(yr,Zr))&&(fo(yr)?T=!0:q=!0),e.isCallExpression(yr)||(Ne=Oa(Ne,yr,r,lr)),Ne||(fe||(fe=[])).push(e.isBinaryExpression(yr)||e.isCallExpression(yr)?eo(r,i,yr,Zr):St)}}u=Ne}if(!u){if(!e.length(fe))return Oe;var ui=T&&r.declarations?es(fe,r.declarations):void 0;if(q){var Ii=Sh(r);Ii&&((ui||(ui=[])).push(Ii),T=!0)}var Fi=e.some(ui,function(Xi){return!!(Xi.flags&-98305)})?ui:fe;u=ba(Fi,2)}}var Ri=Hc(Ec(u,!1,q&&!T));return r.valueDeclaration&&pc(Ri,function(Xi){return!!(Xi.flags&-98305)})===St?(Rp(r.valueDeclaration,xe),xe):Ri}function ja(r,i,t){var o,s;if(!(!e.isInJSFile(r)||!t||!e.isObjectLiteralExpression(t)||t.properties.length)){for(var u=e.createSymbolTable();e.isBinaryExpression(r)||e.isPropertyAccessExpression(r);){var T=It(r);!((o=T==null?void 0:T.exports)===null||o===void 0)&&o.size&&Yc(u,T.exports),r=e.isBinaryExpression(r)?r.parent:r.parent.parent}var q=It(r);!((s=q==null?void 0:q.exports)===null||s===void 0)&&s.size&&Yc(u,q.exports);var fe=_s(i,u,e.emptyArray,e.emptyArray,e.emptyArray);return fe.objectFlags|=8192,fe}}function Oa(r,i,t,o){var s,u=e.getEffectiveTypeAnnotationNode(i.parent);if(u){var T=Hc(Ua(u));if(r)!ra(r)&&!ra(T)&&!Qf(r,T)&&Gk(void 0,r,o,T);else return T}if(!((s=t.parent)===null||s===void 0)&&s.valueDeclaration){var q=e.getEffectiveTypeAnnotationNode(t.parent.valueDeclaration);if(q){var fe=tn(Ua(q),t.escapedName);if(fe)return Df(fe)}}return r}function eo(r,i,t,o){if(e.isCallExpression(t)){if(i)return Jt(i);var s=js(t.arguments[2]),u=ai(s,"value");if(u)return u;var T=ai(s,"get");if(T){var q=jd(T);if(q)return So(q)}var fe=ai(s,"set");if(fe){var Ne=jd(fe);if(Ne)return Bb(Ne)}return xe}if($o(t.left,t.right))return xe;var $e=i?Jt(i):Lp(js(t.right));if($e.flags&524288&&o===2&&r.escapedName==="export="){var Ze=Vu($e),lr=e.createSymbolTable();e.copyEntries(Ze.members,lr);var yr=lr.size;i&&!i.exports&&(i.exports=e.createSymbolTable()),(i||r).exports.forEach(function(ui,Ii){var Fi,Ri=lr.get(Ii);if(Ri&&Ri!==ui)if(ui.flags&111551&&Ri.flags&111551){if(ui.valueDeclaration&&Ri.valueDeclaration&&e.getSourceFileOfNode(ui.valueDeclaration)!==e.getSourceFileOfNode(Ri.valueDeclaration)){var Xi=e.unescapeLeadingUnderscores(ui.escapedName),ea=((Fi=e.tryCast(Ri.valueDeclaration,e.isNamedDeclaration))===null||Fi===void 0?void 0:Fi.name)||Ri.valueDeclaration;e.addRelatedInfo(Wr(ui.valueDeclaration,e.Diagnostics.Duplicate_identifier_0,Xi),e.createDiagnosticForNode(ea,e.Diagnostics._0_was_also_declared_here,Xi)),e.addRelatedInfo(Wr(ea,e.Diagnostics.Duplicate_identifier_0,Xi),e.createDiagnosticForNode(ui.valueDeclaration,e.Diagnostics._0_was_also_declared_here,Xi))}var lt=bo(ui.flags|Ri.flags,Ii);lt.type=ba([Jt(ui),Jt(Ri)]),lt.valueDeclaration=Ri.valueDeclaration,lt.declarations=e.concatenate(Ri.declarations,ui.declarations),lr.set(Ii,lt)}else lr.set(Ii,hl(ui,Ri));else lr.set(Ii,ui)});var Zr=_s(yr!==lr.size?void 0:Ze.symbol,lr,Ze.callSignatures,Ze.constructSignatures,Ze.indexInfos);return Zr.objectFlags|=e.getObjectFlags($e)&8192,Zr.symbol&&Zr.symbol.flags&32&&$e===Pn(Zr.symbol)&&(Zr.objectFlags|=16777216),Zr}return ND($e)?(Rp(t,Ki),Ki):$e}function $o(r,i){return e.isPropertyAccessExpression(r)&&r.expression.kind===108&&e.forEachChildRecursively(i,function(t){return Ks(r,t)})}function fo(r){var i=e.getThisContainer(r,!1);return i.kind===170||i.kind===255||i.kind===212&&!e.isPrototypePropertyAssignment(i.parent)}function es(r,i){return e.Debug.assert(r.length===i.length),r.filter(function(t,o){var s=i[o],u=e.isBinaryExpression(s)?s:e.isBinaryExpression(s.parent)?s.parent:void 0;return u&&fo(u)})}function Es(r,i,t){if(r.initializer){var o=e.isBindingPattern(r.name)?cl(r.name,!0,!1):We;return Ec(Kb(r,vy(r,0,o)))}return e.isBindingPattern(r.name)?cl(r.name,i,t):(t&&!wc(r)&&Rp(r,xe),i?Xr:xe)}function vc(r,i,t){var o=e.createSymbolTable(),s,u=262272;e.forEach(r.elements,function(q){var fe=q.propertyName||q.name;if(q.dotDotDotToken){s=Fl(ki,xe,!1);return}var Ne=$_(fe);if(!ul(Ne)){u|=512;return}var $e=Nl(Ne),Ze=4|(q.initializer?16777216:0),lr=bo(Ze,$e);lr.type=Es(q,i,t),lr.bindingElement=q,o.set(lr.escapedName,lr)});var T=_s(void 0,o,e.emptyArray,e.emptyArray,s?[s]:e.emptyArray);return T.objectFlags|=u,i&&(T.pattern=r,T.objectFlags|=262144),T}function lc(r,i,t){var o=r.elements,s=e.lastOrUndefined(o),u=s&&s.kind===202&&s.dotDotDotToken?s:void 0;if(o.length===0||o.length===1&&u)return Se>=2?d3(xe):Ki;var T=e.map(o,function($e){return e.isOmittedExpression($e)?xe:Es($e,i,t)}),q=e.findLastIndex(o,function($e){return!($e===u||e.isOmittedExpression($e)||tm($e))},o.length-1)+1,fe=e.map(o,function($e,Ze){return $e===u?4:Ze>=q?2:1}),Ne=Ml(T,fe);return i&&(Ne=zT(Ne),Ne.pattern=r,Ne.objectFlags|=262144),Ne}function cl(r,i,t){return i===void 0&&(i=!1),t===void 0&&(t=!1),r.kind===200?vc(r,i,t):lc(r,i,t)}function Is(r,i){return g_(Zl(r,!0,0),r,i)}function yf(r){var i=It(r),t=e3(!1);return t&&i&&i===t}function g_(r,i,t){return r?(r.flags&4096&&yf(i.parent)&&(r=uD(i)),t&&Nh(i,r),r.flags&8192&&(e.isBindingElement(i)||!i.type)&&r.symbol!==It(i)&&(r=ua),Hc(r)):(r=e.isParameter(i)&&i.dotDotDotToken?Ki:xe,t&&(wc(i)||Rp(i,r)),r)}function wc(r){var i=e.getRootDeclaration(r),t=i.kind===163?i.parent:i;return g0(t)}function bc(r){var i=e.getEffectiveTypeAnnotationNode(r);if(i)return Ua(i)}function ru(r){var i=Ma(r);if(!i.type){var t=m_(r);i.type||(i.type=t)}return i.type}function m_(r){if(r.flags&4194304)return rr(r);if(r===be)return xe;if(r.flags&134217728&&r.valueDeclaration){var i=It(e.getSourceFileOfNode(r.valueDeclaration)),t=bo(i.flags,"exports");t.declarations=i.declarations?i.declarations.slice():[],t.parent=r,t.target=i,i.valueDeclaration&&(t.valueDeclaration=i.valueDeclaration),i.members&&(t.members=new e.Map(i.members)),i.exports&&(t.exports=new e.Map(i.exports));var o=e.createSymbolTable();return o.set("exports",t),_s(r,o,e.emptyArray,e.emptyArray,e.emptyArray)}e.Debug.assertIsDefined(r.valueDeclaration);var s=r.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(s)){var u=e.getEffectiveTypeAnnotationNode(s);if(u===void 0)return Er?We:xe;var T=Wp(u);return At(T)||T===We?T:Oe}if(e.isSourceFile(s)&&e.isJsonSourceFile(s))return s.statements.length?Hc(Lp(hn(s.statements[0].expression))):tt;if(!ku(r,0))return r.flags&512&&!(r.flags&67108864)?Zo(r):v_(r);var q;if(s.kind===270)q=g_(bc(s)||js(s.expression),s);else if(e.isBinaryExpression(s)||e.isInJSFile(s)&&(e.isCallExpression(s)||(e.isPropertyAccessExpression(s)||e.isBindableStaticElementAccessExpression(s))&&e.isBinaryExpression(s.parent)))q=la(r);else if(e.isPropertyAccessExpression(s)||e.isElementAccessExpression(s)||e.isIdentifier(s)||e.isStringLiteralLike(s)||e.isNumericLiteral(s)||e.isClassDeclaration(s)||e.isFunctionDeclaration(s)||e.isMethodDeclaration(s)&&!e.isObjectLiteralMethod(s)||e.isMethodSignature(s)||e.isSourceFile(s)){if(r.flags&9136)return Zo(r);q=e.isBinaryExpression(s.parent)?la(r):bc(s)||xe}else if(e.isPropertyAssignment(s))q=bc(s)||Sk(s);else if(e.isJsxAttribute(s))q=bc(s)||uC(s);else if(e.isShorthandPropertyAssignment(s))q=bc(s)||fm(s.name,0);else if(e.isObjectLiteralMethod(s))q=bc(s)||Tk(s,0);else if(e.isParameter(s)||e.isPropertyDeclaration(s)||e.isPropertySignature(s)||e.isVariableDeclaration(s)||e.isBindingElement(s)||e.isJSDocPropertyLikeTag(s))q=Is(s,!0);else if(e.isEnumDeclaration(s))q=Zo(r);else if(e.isEnumMember(s))q=ad(r);else if(e.isAccessor(s))q=dt(r)||e.Debug.fail("Non-write accessor resolution must always produce a type");else return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(s.kind)+" for "+e.Debug.formatSymbol(r));return eu()?q:r.flags&512&&!(r.flags&67108864)?Zo(r):v_(r)}function Wu(r){if(r)if(r.kind===171){var i=e.getEffectiveReturnTypeNode(r);return i}else{var t=e.getEffectiveSetAccessorTypeAnnotationNode(r);return t}}function d(r){var i=Wu(r);return i&&Ua(i)}function K(r){var i=TS(r);return i&&i.symbol}function Ae(r){return ld(Ku(r))}function tr(r){var i=Ma(r);return i.type||(i.type=Zi(r)||e.Debug.fail("Read type of accessor must always produce a type"))}function $r(r){var i=Ma(r);return i.writeType||(i.writeType=Zi(r,!0))}function Zi(r,i){if(i===void 0&&(i=!1),!ku(r,0))return Oe;var t=dt(r,i);if(!eu()&&(t=xe,Tr)){var o=e.getDeclarationOfKind(r,171);Wr(o,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,Ga(r))}return t}function dt(r,i){i===void 0&&(i=!1);var t=e.getDeclarationOfKind(r,171),o=e.getDeclarationOfKind(r,172);if(i){var s=d(o);if(s)return Ne(s,r)}if(t&&e.isInJSFile(t)){var u=Au(t);if(u)return Ne(u,r)}var T=d(t);if(T)return Ne(T,r);var q=d(o);if(q)return q;if(t&&t.body){var fe=f0(t);return Ne(fe,r)}if(o)return g0(o)||nu(Tr,o,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Ga(r)),xe;if(t)return e.Debug.assert(!!t,"there must exist a getter as we are current checking either setter or getter in this function"),g0(t)||nu(Tr,t,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Ga(r)),xe;return;function Ne($e,Ze){if(e.getCheckFlags(Ze)&1){var lr=Ma(Ze);return gn($e,lr.mapper)}return $e}}function _n(r){var i=ef(Pn(r));return i.flags&8650752?i:i.flags&2097152?e.find(i.types,function(t){return!!(t.flags&8650752)}):void 0}function Zo(r){var i=Ma(r),t=i;if(!i.type){var o=r.valueDeclaration&&c0(r.valueDeclaration,!1);if(o){var s=Lb(r,o);s&&(r=i=s)}t.type=i.type=Bs(r)}return i.type}function Bs(r){var i=r.valueDeclaration;if(r.flags&1536&&e.isShorthandAmbientModuleSymbol(r))return xe;if(i&&(i.kind===220||e.isAccessExpression(i)&&i.parent.kind===220))return la(r);if(r.flags&512&&i&&e.isSourceFile(i)&&i.commonJsModuleIndicator){var t=Fs(r);if(t!==r){if(!ku(r,0))return Oe;var o=Wn(r.exports.get("export=")),s=la(o,o===t?void 0:t);return eu()?s:v_(r)}}var u=Uc(16,r);if(r.flags&32){var T=_n(r);return T?To([u,T]):u}else return ur&&r.flags&16777216?$f(u):u}function ad(r){var i=Ma(r);return i.type||(i.type=G_(r))}function hf(r){var i=Ma(r);if(!i.type){var t=zo(r),o=r.declarations&&of(ju(r),!0),s=e.firstDefined(o==null?void 0:o.declarations,function(u){return e.isExportAssignment(u)?bc(u):void 0});i.type=(o==null?void 0:o.declarations)&&C0(o.declarations)&&r.declarations.length?vi(o):C0(r.declarations)?ze:s||(t.flags&111551?Jt(t):Oe)}return i.type}function Ag(r){var i=Ma(r);if(!i.type){if(!ku(r,0))return i.type=Oe;var t=gn(Jt(i.target),i.mapper);eu()||(t=v_(r)),i.type=t}return i.type}function v_(r){var i=r.valueDeclaration;return e.getEffectiveTypeAnnotationNode(i)?(Wr(r.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ga(r)),Oe):(Tr&&(i.kind!==163||i.initializer)&&Wr(r.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,Ga(r)),xe)}function hv(r){var i=Ma(r);return i.type||(e.Debug.assertIsDefined(i.deferralParent),e.Debug.assertIsDefined(i.deferralConstituents),i.type=i.deferralParent.flags&1048576?ba(i.deferralConstituents):To(i.deferralConstituents)),i.type}function Dv(r){var i=Ma(r);return!i.writeType&&i.deferralWriteConstituents&&(e.Debug.assertIsDefined(i.deferralParent),e.Debug.assertIsDefined(i.deferralConstituents),i.writeType=i.deferralParent.flags&1048576?ba(i.deferralWriteConstituents):To(i.deferralWriteConstituents)),i.writeType}function Ap(r){var i=e.getCheckFlags(r);if(i&65536){var t=Dv(r);if(t)return t}if(r.flags&33554432){var t=r.writeType;if(t)return t}return wd(r)}function wd(r){if(r.flags&98304){var i=$r(r);if(i)return i}return Jt(r)}function Jt(r){var i=e.getCheckFlags(r);return i&65536?hv(r):i&1?Ag(r):i&262144?E1(r):i&8192?yI(r):r.flags&7?ru(r):r.flags&9136?Zo(r):r.flags&8?ad(r):r.flags&98304?tr(r):r.flags&2097152?hf(r):Oe}function Df(r){return _g(Jt(r),!!(r.flags&16777216))}function qu(r,i){return r!==void 0&&i!==void 0&&(e.getObjectFlags(r)&4)!==0&&r.target===i}function bf(r){return e.getObjectFlags(r)&4?r.target:r}function nd(r,i){return t(r);function t(o){if(e.getObjectFlags(o)&7){var s=bf(o);return s===i||e.some(zc(s),t)}else if(o.flags&2097152)return e.some(o.types,t);return!1}}function Gd(r,i){for(var t=0,o=i;t<o.length;t++){var s=o[t];r=e.appendIfUnique(r,Tf(It(s)))}return r}function Od(r,i){for(;;){if(r=r.parent,r&&e.isBinaryExpression(r)){var t=e.getAssignmentDeclarationKind(r);if(t===6||t===3){var o=It(r.left);o&&o.parent&&!e.findAncestor(o.parent.valueDeclaration,function(fe){return r===fe})&&(r=o.parent.valueDeclaration)}}if(!r)return;switch(r.kind){case 256:case 225:case 257:case 173:case 174:case 167:case 178:case 179:case 315:case 255:case 168:case 212:case 213:case 258:case 342:case 343:case 337:case 336:case 194:case 188:{var s=Od(r,i);if(r.kind===194)return e.append(s,Tf(It(r.typeParameter)));if(r.kind===188)return e.concatenate(s,Ox(r));var u=Gd(s,e.getEffectiveTypeParameterDeclarations(r)),T=i&&(r.kind===256||r.kind===225||r.kind===257||ml(r))&&Pn(It(r)).thisType;return T?e.append(u,T):u}case 338:var q=e.getParameterSymbolFromJSDoc(r);q&&(r=q.valueDeclaration);break;case 318:{var s=Od(r,i);return r.tags?Gd(s,e.flatMap(r.tags,function(Ne){return e.isJSDocTemplateTag(Ne)?Ne.typeParameters:void 0})):s}}}}function od(r){var i=r.flags&32?r.valueDeclaration:e.getDeclarationOfKind(r,257);return e.Debug.assert(!!i,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Od(i)}function Sf(r){if(!!r.declarations){for(var i,t=0,o=r.declarations;t<o.length;t++){var s=o[t];if(s.kind===257||s.kind===256||s.kind===225||ml(s)||e.isTypeAlias(s)){var u=s;i=Gd(i,e.getEffectiveTypeParameterDeclarations(u))}}return i}}function Em(r){return e.concatenate(od(r),Sf(r))}function Pg(r){var i=za(r,1);if(i.length===1){var t=i[0];if(!t.typeParameters&&t.parameters.length===1&&U(t)){var o=$m(t.parameters[0]);return At(o)||AD(o)===xe}}return!1}function Hd(r){if(za(r,1).length>0)return!0;if(r.flags&8650752){var i=Cc(r);return!!i&&Pg(i)}return!1}function sd(r){var i=e.getClassLikeDeclarationOfSymbol(r.symbol);return i&&e.getEffectiveBaseTypeNode(i)}function Ng(r,i,t){var o=e.length(i),s=e.isInJSFile(t);return e.filter(za(r,1),function(u){return(s||o>=Ol(u.typeParameters))&&o<=e.length(u.typeParameters)})}function Fd(r,i,t){var o=Ng(r,i,t),s=e.map(i,Ua);return e.sameMap(o,function(u){return e.some(u.typeParameters)?jv(u,s,e.isInJSFile(t)):u})}function ef(r){if(!r.resolvedBaseConstructorType){var i=e.getClassLikeDeclarationOfSymbol(r.symbol),t=i&&e.getEffectiveBaseTypeNode(i),o=sd(r);if(!o)return r.resolvedBaseConstructorType=Nr;if(!ku(r,1))return Oe;var s=hn(o.expression);if(t&&o!==t&&(e.Debug.assert(!t.typeArguments),hn(t.expression)),s.flags&2621440&&Vu(s),!eu())return Wr(r.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Ga(r.symbol)),r.resolvedBaseConstructorType=Oe;if(!(s.flags&1)&&s!==hi&&!Hd(s)){var u=Wr(o.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,ht(s));if(s.flags&262144){var T=Vg(s),q=We;if(T){var fe=za(T,1);fe[0]&&(q=So(fe[0]))}s.symbol.declarations&&e.addRelatedInfo(u,e.createDiagnosticForNode(s.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Ga(s.symbol),ht(q)))}return r.resolvedBaseConstructorType=Oe}r.resolvedBaseConstructorType=s}return r.resolvedBaseConstructorType}function bv(r){var i=e.emptyArray;if(r.symbol.declarations)for(var t=0,o=r.symbol.declarations;t<o.length;t++){var s=o[t],u=e.getEffectiveImplementsTypeNodes(s);if(!!u)for(var T=0,q=u;T<q.length;T++){var fe=q[T],Ne=Ua(fe);ra(Ne)||(i===e.emptyArray?i=[Ne]:i.push(Ne))}}return i}function y_(r,i){Wr(r,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,ht(i,void 0,2))}function zc(r){if(!r.baseTypesResolved){if(ku(r,7)&&(r.objectFlags&8?r.resolvedBaseTypes=[Kf(r)]:r.symbol.flags&96?(r.symbol.flags&32&&_t(r),r.symbol.flags&64&&Va(r)):e.Debug.fail("type must be class or interface"),!eu()&&r.symbol.declarations))for(var i=0,t=r.symbol.declarations;i<t.length;i++){var o=t[i];(o.kind===256||o.kind===257)&&y_(o,r)}r.baseTypesResolved=!0}return r.resolvedBaseTypes}function Kf(r){var i=e.sameMap(r.typeParameters,function(t,o){return r.elementFlags[o]&8?Mc(t,Ui):t});return tc(ba(i||e.emptyArray),r.readonly)}function _t(r){r.resolvedBaseTypes=e.resolvingEmptyArray;var i=$(ef(r));if(!(i.flags&2621441))return r.resolvedBaseTypes=e.emptyArray;var t=sd(r),o,s=i.symbol?Io(i.symbol):void 0;if(i.symbol&&i.symbol.flags&32&&xa(s))o=WT(t,i.symbol);else if(i.flags&1)o=i;else{var u=Fd(i,t.typeArguments,t);if(!u.length)return Wr(t.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),r.resolvedBaseTypes=e.emptyArray;o=So(u[0])}if(ra(o))return r.resolvedBaseTypes=e.emptyArray;var T=Lt(o);if(!ma(T)){var q=us(void 0,o),fe=e.chainDiagnosticMessages(q,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,ht(T));return ya.add(e.createDiagnosticForNodeFromMessageChain(t.expression,fe)),r.resolvedBaseTypes=e.emptyArray}return r===T||nd(T,r)?(Wr(r.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,ht(r,void 0,2)),r.resolvedBaseTypes=e.emptyArray):(r.resolvedBaseTypes===e.resolvingEmptyArray&&(r.members=void 0),r.resolvedBaseTypes=[T])}function xa(r){var i=r.outerTypeParameters;if(i){var t=i.length-1,o=Co(r);return i[t].symbol!==o[t].symbol}return!0}function ma(r){if(r.flags&262144){var i=Cc(r);if(i)return ma(i)}return!!(r.flags&67633153&&!Fc(r)||r.flags&2097152&&e.every(r.types,ma))}function Va(r){if(r.resolvedBaseTypes=r.resolvedBaseTypes||e.emptyArray,r.symbol.declarations)for(var i=0,t=r.symbol.declarations;i<t.length;i++){var o=t[i];if(o.kind===257&&e.getInterfaceBaseTypeNodes(o))for(var s=0,u=e.getInterfaceBaseTypeNodes(o);s<u.length;s++){var T=u[s],q=Lt(Ua(T));ra(q)||(ma(q)?r!==q&&!nd(q,r)?r.resolvedBaseTypes===e.emptyArray?r.resolvedBaseTypes=[q]:r.resolvedBaseTypes.push(q):y_(o,r):Wr(T,e.Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function dn(r){if(!r.declarations)return!0;for(var i=0,t=r.declarations;i<t.length;i++){var o=t[i];if(o.kind===257){if(o.flags&128)return!1;var s=e.getInterfaceBaseTypeNodes(o);if(s)for(var u=0,T=s;u<T.length;u++){var q=T[u];if(e.isEntityNameExpression(q.expression)){var fe=Ps(q.expression,788968,!0);if(!fe||!(fe.flags&64)||Pn(fe).thisType)return!1}}}}return!0}function Pn(r){var i=Ma(r),t=i;if(!i.declaredType){var o=r.flags&32?1:2,s=Lb(r,r.valueDeclaration&&c7(r.valueDeclaration));s&&(r=i=s);var u=t.declaredType=i.declaredType=Uc(o,r),T=od(r),q=Sf(r);(T||q||o===1||!dn(r))&&(u.objectFlags|=4,u.typeParameters=e.concatenate(T,q),u.outerTypeParameters=T,u.localTypeParameters=q,u.instantiations=new e.Map,u.instantiations.set(bu(u.typeParameters),u),u.target=u,u.resolvedTypeArguments=u.typeParameters,u.thisType=vu(r),u.thisType.isThisType=!0,u.thisType.constraint=u)}return i.declaredType}function cs(r){var i,t=Ma(r);if(!t.declaredType){if(!ku(r,2))return Oe;var o=e.Debug.checkDefined((i=r.declarations)===null||i===void 0?void 0:i.find(e.isTypeAlias),"Type alias symbol with no valid declaration found"),s=e.isJSDocTypeAlias(o)?o.typeExpression:o.type,u=s?Ua(s):Oe;if(eu()){var T=Sf(r);T&&(t.typeParameters=T,t.instantiations=new e.Map,t.instantiations.set(bu(T),u))}else u=Oe,o.kind===337?Wr(o.typeExpression.type,e.Diagnostics.Type_alias_0_circularly_references_itself,Ga(r)):Wr(e.isNamedDeclaration(o)?o.name:o||o,e.Diagnostics.Type_alias_0_circularly_references_itself,Ga(r));t.declaredType=u}return t.declaredType}function yc(r){return e.isStringLiteralLike(r)?!0:r.kind===220?yc(r.left)&&yc(r.right):!1}function Sc(r){var i=r.initializer;if(!i)return!(r.flags&8388608);switch(i.kind){case 10:case 8:case 14:return!0;case 218:return i.operator===40&&i.operand.kind===8;case 79:return e.nodeIsMissing(i)||!!It(r.parent).exports.get(i.escapedText);case 220:return yc(i);default:return!1}}function Oc(r){var i=Ma(r);if(i.enumKind!==void 0)return i.enumKind;var t=!1;if(r.declarations)for(var o=0,s=r.declarations;o<s.length;o++){var u=s[o];if(u.kind===259)for(var T=0,q=u.members;T<q.length;T++){var fe=q[T];if(fe.initializer&&e.isStringLiteralLike(fe.initializer))return i.enumKind=1;Sc(fe)||(t=!0)}}return i.enumKind=t?0:1}function cu(r){return r.flags&1024&&!(r.flags&1048576)?Io(Rs(r.symbol)):r}function Pl(r){var i=Ma(r);if(i.declaredType)return i.declaredType;if(Oc(r)===1){He++;var t=[];if(r.declarations)for(var o=0,s=r.declarations;o<s.length;o++){var u=s[o];if(u.kind===259)for(var T=0,q=u.members;T<q.length;T++){var fe=q[T],Ne=w0(fe),$e=sg(t8(Ne!==void 0?Ne:0,He,It(fe)));Ma(It(fe)).declaredType=$e,t.push(Vc($e))}}if(t.length){var Ze=ba(t,1,r,void 0);return Ze.flags&1048576&&(Ze.flags|=1024,Ze.symbol=r),i.declaredType=Ze}}var lr=bs(32);return lr.symbol=r,i.declaredType=lr}function G_(r){var i=Ma(r);if(!i.declaredType){var t=Pl(Rs(r));i.declaredType||(i.declaredType=t)}return i.declaredType}function Tf(r){var i=Ma(r);return i.declaredType||(i.declaredType=vu(r))}function Xd(r){var i=Ma(r);return i.declaredType||(i.declaredType=Io(zo(r)))}function Io(r){return Qd(r)||Oe}function Qd(r){if(r.flags&96)return Pn(r);if(r.flags&524288)return cs(r);if(r.flags&262144)return Tf(r);if(r.flags&384)return Pl(r);if(r.flags&8)return G_(r);if(r.flags&2097152)return Xd(r)}function Ig(r){switch(r.kind){case 130:case 154:case 149:case 146:case 157:case 133:case 150:case 147:case 114:case 152:case 143:case 195:return!0;case 182:return Ig(r.elementType);case 177:return!r.typeArguments||r.typeArguments.every(Ig)}return!1}function p1(r){var i=e.getEffectiveConstraintOfTypeParameter(r);return!i||Ig(i)}function Ry(r){var i=e.getEffectiveTypeAnnotationNode(r);return i?Ig(i):!e.hasInitializer(r)}function d1(r){var i=e.getEffectiveReturnTypeNode(r),t=e.getEffectiveTypeParameterDeclarations(r);return(r.kind===170||!!i&&Ig(i))&&r.parameters.every(Ry)&&t.every(p1)}function g1(r){if(r.declarations&&r.declarations.length===1){var i=r.declarations[0];if(i)switch(i.kind){case 166:case 165:return Ry(i);case 168:case 167:case 170:case 171:case 172:return d1(i)}}return!1}function By(r,i,t){for(var o=e.createSymbolTable(),s=0,u=r;s<u.length;s++){var T=u[s];o.set(T.escapedName,t&&g1(T)?T:lD(T,i))}return o}function Sv(r,i){for(var t=0,o=i;t<o.length;t++){var s=o[t];!r.has(s.escapedName)&&!Jy(s)&&r.set(s.escapedName,s)}}function Jy(r){return!!r.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(r.valueDeclaration)&&e.isStatic(r.valueDeclaration)}function Tv(r){if(!r.declaredProperties){var i=r.symbol,t=Il(i);r.declaredProperties=df(t),r.declaredCallSignatures=e.emptyArray,r.declaredConstructSignatures=e.emptyArray,r.declaredIndexInfos=e.emptyArray,r.declaredCallSignatures=Ip(t.get("__call")),r.declaredConstructSignatures=Ip(t.get("__new")),r.declaredIndexInfos=BT(i)}return r}function ul(r){return!!(r.flags&8576)}function xv(r){if(!e.isComputedPropertyName(r)&&!e.isElementAccessExpression(r))return!1;var i=e.isComputedPropertyName(r)?r.expression:r.argumentExpression;return e.isEntityNameExpression(i)&&ul(e.isComputedPropertyName(r)?Zf(r):js(i))}function Yd(r){return r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)===64}function wg(r){var i=e.getNameOfDeclaration(r);return!!i&&xv(i)}function Pp(r){return!e.hasDynamicName(r)||wg(r)}function jy(r){return e.isDynamicName(r)&&!xv(r)}function Nl(r){return r.flags&8192?r.escapedName:r.flags&384?e.escapeLeadingUnderscores(""+r.value):e.Debug.fail()}function Uy(r,i,t){e.Debug.assert(!!(e.getCheckFlags(r)&4096),"Expected a late-bound symbol."),r.flags|=t,Ma(i.symbol).lateSymbol=r,r.declarations?i.symbol.isReplaceableByMethod||r.declarations.push(i):r.declarations=[i],t&111551&&(!r.valueDeclaration||r.valueDeclaration.kind!==i.kind)&&(r.valueDeclaration=i)}function Ev(r,i,t,o){e.Debug.assert(!!o.symbol,"The member is expected to have a symbol.");var s=Da(o);if(!s.resolvedSymbol){s.resolvedSymbol=o.symbol;var u=e.isBinaryExpression(o)?o.left:o.name,T=e.isElementAccessExpression(u)?js(u.argumentExpression):Zf(u);if(ul(T)){var q=Nl(T),fe=o.symbol.flags,Ne=t.get(q);Ne||t.set(q,Ne=bo(0,q,4096));var $e=i&&i.get(q);if(Ne.flags&w_(fe)||$e){var Ze=$e?e.concatenate($e.declarations,Ne.declarations):Ne.declarations,lr=!(T.flags&8192)&&e.unescapeLeadingUnderscores(q)||e.declarationNameToString(u);e.forEach(Ze,function(yr){return Wr(e.getNameOfDeclaration(yr)||yr,e.Diagnostics.Property_0_was_also_declared_here,lr)}),Wr(u||o,e.Diagnostics.Duplicate_property_0,lr),Ne=bo(0,q,4096)}return Ne.nameType=T,Uy(Ne,o,fe),Ne.parent?e.Debug.assert(Ne.parent===r,"Existing symbol parent should match new one"):Ne.parent=r,s.resolvedSymbol=Ne}}return s.resolvedSymbol}function $d(r,i){var t=Ma(r);if(!t[i]){var o=i==="resolvedExports",s=o?r.flags&1536?Kl(r):r.exports:r.members;t[i]=s||he;for(var u=e.createSymbolTable(),T=0,q=r.declarations||e.emptyArray;T<q.length;T++){var fe=q[T],Ne=e.getMembersOfDeclaration(fe);if(Ne)for(var $e=0,Ze=Ne;$e<Ze.length;$e++){var lr=Ze[$e];o===e.hasStaticModifier(lr)&&wg(lr)&&Ev(r,s,u,lr)}}var yr=r.assignmentDeclarationMembers;if(yr)for(var Zr=e.arrayFrom(yr.values()),ui=0,Ii=Zr;ui<Ii.length;ui++){var lr=Ii[ui],Fi=e.getAssignmentDeclarationKind(lr),Ri=Fi===3||e.isBinaryExpression(lr)&&Vh(lr,Fi)||Fi===9||Fi===6;o===!Ri&&wg(lr)&&Ev(r,s,u,lr)}t[i]=If(s,u)||he}return t[i]}function Il(r){return r.flags&6256?$d(r,"resolvedMembers"):r.members||he}function Og(r){if(r.flags&106500&&r.escapedName==="__computed"){var i=Ma(r);if(!i.lateSymbol&&e.some(r.declarations,wg)){var t=Wn(r.parent);e.some(r.declarations,e.hasStaticModifier)?Ns(t):Il(t)}return i.lateSymbol||(i.lateSymbol=r)}return r}function Wc(r,i,t){if(e.getObjectFlags(r)&4){var o=r.target,s=Co(r);if(e.length(o.typeParameters)===e.length(s)){var u=Hf(o,e.concatenate(s,[i||o.thisType]));return t?$(u):u}}else if(r.flags&2097152){var T=e.sameMap(r.types,function(q){return Wc(q,i,t)});return T!==r.types?To(T):r}return t?$(r):r}function Cv(r,i,t,o){var s,u,T,q,fe;e.rangeEquals(t,o,0,t.length)?(u=i.symbol?Il(i.symbol):e.createSymbolTable(i.declaredProperties),T=i.declaredCallSignatures,q=i.declaredConstructSignatures,fe=i.declaredIndexInfos):(s=Kc(t,o),u=By(i.declaredProperties,s,t.length===1),T=mh(i.declaredCallSignatures,s),q=mh(i.declaredConstructSignatures,s),fe=Jx(i.declaredIndexInfos,s));var Ne=zc(i);if(Ne.length){i.symbol&&u===Il(i.symbol)&&(u=e.createSymbolTable(i.declaredProperties)),Ic(r,u,T,q,fe);for(var $e=e.lastOrUndefined(o),Ze=0,lr=Ne;Ze<lr.length;Ze++){var yr=lr[Ze],Zr=$e?Wc(gn(yr,s),$e):yr;Sv(u,_o(Zr)),T=e.concatenate(T,za(Zr,0)),q=e.concatenate(q,za(Zr,1));var ui=Zr!==xe?Js(Zr):[Fl(ki,xe,!1)];fe=e.concatenate(fe,e.filter(ui,function(Ii){return!Du(fe,Ii.keyType)}))}}Ic(r,u,T,q,fe)}function kv(r){Cv(r,Tv(r),e.emptyArray,e.emptyArray)}function zy(r){var i=Tv(r.target),t=e.concatenate(i.typeParameters,[i.thisType]),o=Co(r),s=o.length===t.length?o:e.concatenate(o,[r]);Cv(r,i,t,s)}function Pu(r,i,t,o,s,u,T,q){var fe=new le(Kr,q);return fe.declaration=r,fe.typeParameters=i,fe.parameters=o,fe.thisParameter=t,fe.resolvedReturnType=s,fe.resolvedTypePredicate=u,fe.minArgumentCount=T,fe.resolvedMinArgumentCount=void 0,fe.target=void 0,fe.mapper=void 0,fe.compositeSignatures=void 0,fe.compositeKind=void 0,fe}function Zd(r){var i=Pu(r.declaration,r.typeParameters,r.thisParameter,r.parameters,void 0,void 0,r.minArgumentCount,r.flags&39);return i.target=r.target,i.mapper=r.mapper,i.compositeSignatures=r.compositeSignatures,i.compositeKind=r.compositeKind,i}function Wy(r,i){var t=Zd(r);return t.compositeSignatures=i,t.compositeKind=1048576,t.target=void 0,t.mapper=void 0,t}function m1(r,i){if((r.flags&24)===i)return r;r.optionalCallSignatureCache||(r.optionalCallSignatureCache={});var t=i===8?"inner":"outer";return r.optionalCallSignatureCache[t]||(r.optionalCallSignatureCache[t]=v1(r,i))}function v1(r,i){e.Debug.assert(i===8||i===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");var t=Zd(r);return t.flags|=i,t}function Av(r,i){if(U(r)){var t=r.parameters.length-1,o=Jt(r.parameters[t]);if(Ln(o))return[s(o,t)];if(!i&&o.flags&1048576&&e.every(o.types,Ln))return e.map(o.types,function(u){return s(u,t)})}return[r.parameters];function s(u,T){var q=Co(u),fe=u.target.labeledElementDeclarations,Ne=e.map(q,function($e,Ze){var lr=!!fe&&l0(fe[Ze]),yr=lr||cm(r,T+Ze,u),Zr=u.target.elementFlags[Ze],ui=Zr&12?32768:Zr&2?16384:0,Ii=bo(1,yr,ui);return Ii.type=Zr&4?tc($e):$e,Ii});return e.concatenate(r.parameters.slice(0,T),Ne)}}function y1(r){var i=ef(r),t=za(i,1),o=e.getClassLikeDeclarationOfSymbol(r.symbol),s=!!o&&e.hasSyntacticModifier(o,128);if(t.length===0)return[Pu(void 0,r.localTypeParameters,void 0,e.emptyArray,r,void 0,0,s?4:0)];for(var u=sd(r),T=e.isInJSFile(u),q=uh(u),fe=e.length(q),Ne=[],$e=0,Ze=t;$e<Ze.length;$e++){var lr=Ze[$e],yr=Ol(lr.typeParameters),Zr=e.length(lr.typeParameters);if(T||fe>=yr&&fe<=Zr){var ui=Zr?ah(lr,S_(q,lr.typeParameters,yr,T)):Zd(lr);ui.typeParameters=r.localTypeParameters,ui.resolvedReturnType=r,ui.flags=s?ui.flags|4:ui.flags&-5,Ne.push(ui)}}return Ne}function Pv(r,i,t,o,s){for(var u=0,T=r;u<T.length;u++){var q=T[u];if(Yv(q,i,t,o,s,t?S8:jm))return q}}function Cm(r,i,t){if(i.typeParameters){if(t>0)return;for(var o=1;o<r.length;o++)if(!Pv(r[o],i,!1,!1,!1))return;return[i]}for(var s,o=0;o<r.length;o++){var u=o===t?i:Pv(r[o],i,!0,!1,!0);if(!u)return;s=e.appendIfUnique(s,u)}return s}function Nv(r){for(var i,t,o=0;o<r.length;o++){if(r[o].length===0)return e.emptyArray;r[o].length>1&&(t=t===void 0?o:-1);for(var s=0,u=r[o];s<u.length;s++){var T=u[s];if(!i||!Pv(i,T,!1,!1,!0)){var q=Cm(r,T,o);if(q){var fe=T;if(q.length>1){var Ne=T.thisParameter,$e=e.forEach(q,function(Xi){return Xi.thisParameter});if($e){var Ze=To(e.mapDefined(q,function(Xi){return Xi.thisParameter&&Jt(Xi.thisParameter)}));Ne=Jd($e,Ze)}fe=Wy(T,q),fe.thisParameter=Ne}(i||(i=[])).push(fe)}}}}if(!e.length(i)&&t!==-1){for(var lr=r[t!==void 0?t:0],yr=lr.slice(),Zr=function(Xi){if(Xi!==lr){var ea=Xi[0];if(e.Debug.assert(!!ea,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),yr=!!ea.typeParameters&&e.some(yr,function(lt){return!!lt.typeParameters&&!Iv(ea.typeParameters,lt.typeParameters)})?void 0:e.map(yr,function(lt){return D1(lt,ea)}),!yr)return"break"}},ui=0,Ii=r;ui<Ii.length;ui++){var Fi=Ii[ui],Ri=Zr(Fi);if(Ri==="break")break}i=yr}return i||e.emptyArray}function Iv(r,i){if(e.length(r)!==e.length(i))return!1;if(!r||!i)return!0;for(var t=Kc(i,r),o=0;o<r.length;o++){var s=r[o],u=i[o];if(s!==u&&!Qf(Vg(s)||We,gn(Vg(u)||We,t)))return!1}return!0}function qy(r,i,t){if(!r||!i)return r||i;var o=To([Jt(r),gn(Jt(i),t)]);return Jd(r,o)}function h1(r,i,t){for(var o=Lc(r),s=Lc(i),u=o>=s?r:i,T=u===r?i:r,q=u===r?o:s,fe=Ul(r)||Ul(i),Ne=fe&&!Ul(u),$e=new Array(q+(Ne?1:0)),Ze=0;Ze<q;Ze++){var lr=hd(u,Ze);u===i&&(lr=gn(lr,t));var yr=hd(T,Ze)||We;T===i&&(yr=gn(yr,t));var Zr=To([lr,yr]),ui=fe&&!Ne&&Ze===q-1,Ii=Ze>=jl(u)&&Ze>=jl(T),Fi=Ze>=o?void 0:cm(r,Ze),Ri=Ze>=s?void 0:cm(i,Ze),Xi=Fi===Ri?Fi:Fi?Ri?void 0:Fi:Ri,ea=bo(1|(Ii&&!ui?16777216:0),Xi||"arg".concat(Ze));ea.type=ui?tc(Zr):Zr,$e[Ze]=ea}if(Ne){var lt=bo(1,"args");lt.type=tc(Hu(T,q)),T===i&&(lt.type=gn(lt.type,t)),$e[q]=lt}return $e}function D1(r,i){var t=r.typeParameters||i.typeParameters,o;r.typeParameters&&i.typeParameters&&(o=Kc(i.typeParameters,r.typeParameters));var s=r.declaration,u=h1(r,i,o),T=qy(r.thisParameter,i.thisParameter,o),q=Math.max(r.minArgumentCount,i.minArgumentCount),fe=Pu(s,t,T,u,void 0,void 0,q,(r.flags|i.flags)&39);return fe.compositeKind=1048576,fe.compositeSignatures=e.concatenate(r.compositeKind!==2097152&&r.compositeSignatures||[r],[i]),o&&(fe.mapper=r.compositeKind!==2097152&&r.mapper&&r.compositeSignatures?pd(r.mapper,o):o),fe}function Vy(r){var i=Js(r[0]);if(i){for(var t=[],o=function(q){var fe=q.keyType;e.every(r,function(Ne){return!!kc(Ne,fe)})&&t.push(Fl(fe,ba(e.map(r,function(Ne){return fl(Ne,fe)})),e.some(r,function(Ne){return kc(Ne,fe).isReadonly})))},s=0,u=i;s<u.length;s++){var T=u[s];o(T)}return t}return e.emptyArray}function b1(r){var i=Nv(e.map(r.types,function(s){return s===Ka?[ro]:za(s,0)})),t=Nv(e.map(r.types,function(s){return za(s,1)})),o=Vy(r.types);Ic(r,he,i,t,o)}function eg(r,i){return r?i?To([r,i]):r:i}function Ky(r){var i=e.countWhere(r,function(s){return za(s,1).length>0}),t=e.map(r,Pg);if(i>0&&i===e.countWhere(t,function(s){return s})){var o=t.indexOf(!0);t[o]=!1}return t}function wv(r,i,t,o){for(var s=[],u=0;u<i.length;u++)u===o?s.push(r):t[u]&&s.push(So(za(i[u],1)[0]));return To(s)}function Fg(r){for(var i,t,o,s=r.types,u=Ky(s),T=e.countWhere(u,function(Ne){return Ne}),q=function(Ne){var $e=r.types[Ne];if(!u[Ne]){var Ze=za($e,1);Ze.length&&T>0&&(Ze=e.map(Ze,function(lr){var yr=Zd(lr);return yr.resolvedReturnType=wv(So(lr),s,u,Ne),yr})),t=Ov(t,Ze)}i=Ov(i,za($e,0)),o=e.reduceLeft(Js($e),function(lr,yr){return Fv(lr,yr,!1)},o)},fe=0;fe<s.length;fe++)q(fe);Ic(r,he,i||e.emptyArray,t||e.emptyArray,o||e.emptyArray)}function Ov(r,i){for(var t=function(T){(!r||e.every(r,function(q){return!Yv(q,T,!1,!1,!1,jm)}))&&(r=e.append(r,T))},o=0,s=i;o<s.length;o++){var u=s[o];t(u)}return r}function Fv(r,i,t){if(r)for(var o=0;o<r.length;o++){var s=r[o];if(s.keyType===i.keyType)return r[o]=Fl(s.keyType,t?ba([s.type,i.type]):To([s.type,i.type]),t?s.isReadonly||i.isReadonly:s.isReadonly&&i.isReadonly),r}return e.append(r,i)}function S1(r){var i=Wn(r.symbol);if(r.target){Ic(r,he,e.emptyArray,e.emptyArray,e.emptyArray);var t=By(Gf(r.target),r.mapper,!1),o=mh(za(r.target,0),r.mapper),s=mh(za(r.target,1),r.mapper),u=Jx(Js(r.target),r.mapper);Ic(r,t,o,s,u)}else if(i.flags&2048){Ic(r,he,e.emptyArray,e.emptyArray,e.emptyArray);var t=Il(i),o=Ip(t.get("__call")),s=Ip(t.get("__new")),u=BT(i);Ic(r,t,o,s,u)}else{var t=he,u=void 0;if(i.exports&&(t=Ns(i),i===Rr)){var T=new e.Map;t.forEach(function(Zr){Zr.flags&418||T.set(Zr.escapedName,Zr)}),t=T}var q=void 0;if(Ic(r,t,e.emptyArray,e.emptyArray,e.emptyArray),i.flags&32){var fe=Pn(i),Ne=ef(fe);Ne.flags&11272192?(t=e.createSymbolTable(l_(t)),Sv(t,_o(Ne))):Ne===xe&&(q=Fl(ki,xe,!1))}var $e=J1(t);if($e?u=JT($e):(q&&(u=e.append(u,q)),i.flags&384&&(Io(i).flags&32||e.some(r.properties,function(Zr){return!!(Jt(Zr).flags&296)}))&&(u=e.append(u,rn))),Ic(r,t,e.emptyArray,e.emptyArray,u||e.emptyArray),i.flags&8208&&(r.callSignatures=Ip(i)),i.flags&32){var Ze=Pn(i),s=i.members?Ip(i.members.get("__constructor")):e.emptyArray;i.flags&16&&(s=e.addRange(s.slice(),e.mapDefined(r.callSignatures,function(ui){return ml(ui.declaration)?Pu(ui.declaration,ui.typeParameters,ui.thisParameter,ui.parameters,Ze,void 0,ui.minArgumentCount,ui.flags&39):void 0}))),s.length||(s=y1(Ze)),r.constructSignatures=s}}}function Gy(r,i,t){return gn(r,Kc([i.indexType,i.objectType],[xf(0),Ml([t])]))}function T1(r){for(var i=kc(r.source,ki),t=ll(r.mappedType),o=!(t&1),s=t&4?0:16777216,u=i?[Fl(ki,wh(i.type,r.mappedType,r.constraintType),o&&i.isReadonly)]:e.emptyArray,T=e.createSymbolTable(),q=0,fe=_o(r.source);q<fe.length;q++){var Ne=fe[q],$e=8192|(o&&zl(Ne)?8:0),Ze=bo(4|Ne.flags&s,Ne.escapedName,$e);if(Ze.declarations=Ne.declarations,Ze.nameType=Ma(Ne).nameType,Ze.propertyType=Jt(Ne),r.constraintType.type.flags&8388608&&r.constraintType.type.objectType.flags&262144&&r.constraintType.type.indexType.flags&262144){var lr=r.constraintType.type.objectType,yr=Gy(r.mappedType,r.constraintType.type,lr);Ze.mappedType=yr,Ze.constraintType=Ll(lr)}else Ze.mappedType=r.mappedType,Ze.constraintType=r.constraintType;T.set(Ne.escapedName,Ze)}Ic(r,T,e.emptyArray,e.emptyArray,u)}function cd(r){if(r.flags&4194304){var i=$(r.type);return em(i)?px(i):Ll(i)}if(r.flags&16777216){if(r.root.isDistributive){var t=r.checkType,o=cd(t);if(o!==t)return dD(r,cg(r.root.checkType,o,r.mapper))}return r}return r.flags&1048576?Cs(r,cd):r.flags&2097152?To(e.sameMap(r.types,cd)):r}function km(r){return e.getCheckFlags(r)&4096}function Mv(r,i,t,o){for(var s=0,u=_o(r);s<u.length;s++){var T=u[s];o(Hg(T,i))}if(r.flags&1)o(ki);else for(var q=0,fe=Js(r);q<fe.length;q++){var Ne=fe[q];(!t||Ne.keyType.flags&134217732)&&o(Ne.keyType)}}function x1(r){var i=e.createSymbolTable(),t;Ic(r,he,e.emptyArray,e.emptyArray,e.emptyArray);var o=Nu(r),s=Iu(r),u=h_(r.target||r),T=wl(r.target||r),q=$(Lg(r)),fe=ll(r),Ne=br?128:8576;Mg(r)?Mv(q,Ne,br,$e):md(cd(s),$e),Ic(r,i,e.emptyArray,e.emptyArray,t||e.emptyArray);function $e(lr){var yr=u?gn(u,Jm(r.mapper,o,lr)):lr;md(yr,function(Zr){return Ze(lr,Zr)})}function Ze(lr,yr){if(ul(yr)){var Zr=Nl(yr),ui=i.get(Zr);if(ui)ui.nameType=ba([ui.nameType,yr]),ui.keyType=ba([ui.keyType,lr]);else{var Ii=ul(lr)?tn(q,Nl(lr)):void 0,Fi=!!(fe&4||!(fe&8)&&Ii&&Ii.flags&16777216),Ri=!!(fe&1||!(fe&2)&&Ii&&zl(Ii)),Xi=ur&&!Fi&&Ii&&Ii.flags&16777216,ea=Ii?km(Ii):0,lt=bo(4|(Fi?16777216:0),Zr,ea|262144|(Ri?8:0)|(Xi?524288:0));lt.mappedType=r,lt.nameType=yr,lt.keyType=lr,Ii&&(lt.syntheticOrigin=Ii,lt.declarations=u?void 0:Ii.declarations),i.set(Zr,lt)}}else if(nh(yr)||yr.flags&33){var Ia=yr.flags&5?ki:yr.flags&40?Ui:yr,fa=gn(T,Jm(r.mapper,o,lr)),Dn=Fl(Ia,fa,!!(fe&1));t=Fv(t,Dn,!0)}}}function E1(r){if(!r.type){var i=r.mappedType;if(!ku(r,0))return i.containsError=!0,Oe;var t=wl(i.target||i),o=Jm(i.mapper,Nu(i),r.keyType),s=gn(t,o),u=ur&&r.flags&16777216&&!ls(s,49152)?$f(s,!0):r.checkFlags&524288?MD(s):s;eu()||(Wr(er,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Ga(r),ht(i)),u=Oe),r.type=u}return r.type}function Nu(r){return r.typeParameter||(r.typeParameter=Tf(It(r.declaration.typeParameter)))}function Iu(r){return r.constraintType||(r.constraintType=qc(Nu(r))||Oe)}function h_(r){return r.declaration.nameType?r.nameType||(r.nameType=gn(Ua(r.declaration.nameType),r.mapper)):void 0}function wl(r){return r.templateType||(r.templateType=r.declaration.type?gn(Ec(Ua(r.declaration.type),!0,!!(ll(r)&4)),r.mapper):Oe)}function Hy(r){return e.getEffectiveConstraintOfTypeParameter(r.declaration.typeParameter)}function Mg(r){var i=Hy(r);return i.kind===192&&i.operator===140}function Lg(r){if(!r.modifiersType)if(Mg(r))r.modifiersType=gn(Ua(Hy(r).type),r.mapper);else{var i=rD(r.declaration),t=Iu(i),o=t&&t.flags&262144?qc(t):t;r.modifiersType=o&&o.flags&4194304?gn(o.type,r.mapper):We}return r.modifiersType}function ll(r){var i=r.declaration;return(i.readonlyToken?i.readonlyToken.kind===40?2:1:0)|(i.questionToken?i.questionToken.kind===40?8:4:0)}function Xy(r){var i=ll(r);return i&8?-1:i&4?1:0}function Rg(r){var i=Xy(r),t=Lg(r);return i||(Fc(t)?Xy(t):0)}function C1(r){return!!(e.getObjectFlags(r)&32&&ll(r)&4)}function Fc(r){return!!(e.getObjectFlags(r)&32)&&fd(Iu(r))}function Vu(r){return r.members||(r.flags&524288?r.objectFlags&4?zy(r):r.objectFlags&3?kv(r):r.objectFlags&1024?T1(r):r.objectFlags&16?S1(r):r.objectFlags&32&&x1(r):r.flags&1048576?b1(r):r.flags&2097152&&Fg(r)),r}function Gf(r){return r.flags&524288?Vu(r).properties:e.emptyArray}function D_(r,i){if(r.flags&524288){var t=Vu(r),o=t.members.get(i);if(o&&Wf(o))return o}}function Bg(r){if(!r.resolvedProperties){for(var i=e.createSymbolTable(),t=0,o=r.types;t<o.length;t++){for(var s=o[t],u=0,T=_o(s);u<T.length;u++){var q=T[u];if(!i.has(q.escapedName)){var fe=wt(r,q.escapedName);fe&&i.set(q.escapedName,fe)}}if(r.flags&1048576&&Js(s).length===0)break}r.resolvedProperties=df(i)}return r.resolvedProperties}function _o(r){return r=pr(r),r.flags&3145728?Bg(r):Gf(r)}function k1(r,i){r=pr(r),r.flags&3670016&&Vu(r).members.forEach(function(t,o){xp(t,o)&&i(t,o)})}function Qy(r,i){var t=i.properties;return t.some(function(o){var s=o.name&&$_(o.name),u=s&&ul(s)?Nl(s):void 0,T=u===void 0?void 0:ai(r,u);return!!T&&fg(T)&&!oo(Wp(o),T)})}function Yy(r){var i=ba(r);if(!(i.flags&1048576))return gS(i);for(var t=e.createSymbolTable(),o=0,s=r;o<s.length;o++)for(var u=s[o],T=0,q=gS(u);T<q.length;T++){var fe=q[T].escapedName;if(!t.has(fe)){var Ne=Yr(i,fe);Ne&&t.set(fe,Ne)}}return e.arrayFrom(t.values())}function b_(r){return r.flags&262144?qc(r):r.flags&8388608?A1(r):r.flags&16777216?N1(r):Cc(r)}function qc(r){return Am(r)?Vg(r):void 0}function A1(r){return Am(r)?P1(r):void 0}function Jg(r){var i=Xf(r,!1);return i!==r?i:b_(r)}function P1(r){if(c(r))return _h(r.objectType,r.indexType);var i=Jg(r.indexType);if(i&&i!==r.indexType){var t=Z_(r.objectType,i,r.accessFlags);if(t)return t}var o=Jg(r.objectType);if(o&&o!==r.objectType)return Z_(o,r.indexType,r.accessFlags)}function Lv(r){if(!r.resolvedDefaultConstraint){var i=Y3(r),t=rp(r);r.resolvedDefaultConstraint=At(i)?t:At(t)?i:ba([i,t])}return r.resolvedDefaultConstraint}function $y(r){if(r.root.isDistributive&&r.restrictiveInstantiation!==r){var i=Xf(r.checkType,!1),t=i===r.checkType?b_(i):i;if(t&&t!==r.checkType){var o=dD(r,cg(r.root.checkType,t,r.mapper));if(!(o.flags&131072))return o}}}function Zy(r){return $y(r)||Lv(r)}function N1(r){return Am(r)?Zy(r):void 0}function eh(r,i){for(var t,o=!1,s=0,u=r;s<u.length;s++){var T=u[s];if(T.flags&465829888){for(var q=b_(T);q&&q.flags&21233664;)q=b_(q);q&&(t=e.append(t,q),i&&(t=e.append(t,T)))}else T.flags&469892092&&(o=!0)}if(t&&(i||o)){if(o)for(var fe=0,Ne=r;fe<Ne.length;fe++){var T=Ne[fe];T.flags&469892092&&(t=e.append(t,T))}return To(t)}}function Cc(r){if(r.flags&464781312){var i=Pm(r);return i!==Rn&&i!==Sn?i:void 0}return r.flags&4194304?Pi:void 0}function rg(r){return Cc(r)||r}function Am(r){return Pm(r)!==Sn}function Pm(r){if(r.resolvedBaseConstraint)return r.resolvedBaseConstraint;var i=[];return r.resolvedBaseConstraint=Wc(t(r),r);function t(u){if(!u.immediateBaseConstraint){if(!ku(u,4))return Sn;var T=void 0;if((i.length<10||i.length<50&&!Xv(u,i,i.length))&&(i.push(u),T=s(Xf(u,!1)),i.pop()),!eu()){if(u.flags&262144){var q=jT(u);if(q){var fe=Wr(q,e.Diagnostics.Type_parameter_0_has_a_circular_constraint,ht(u));er&&!e.isNodeDescendantOf(q,er)&&!e.isNodeDescendantOf(er,q)&&e.addRelatedInfo(fe,e.createDiagnosticForNode(er,e.Diagnostics.Circularity_originates_in_type_at_this_location))}}T=Sn}u.immediateBaseConstraint=T||Rn}return u.immediateBaseConstraint}function o(u){var T=t(u);return T!==Rn&&T!==Sn?T:void 0}function s(u){if(u.flags&262144){var T=Vg(u);return u.isThisType||!T?T:o(T)}if(u.flags&3145728){for(var q=u.types,fe=[],Ne=!1,$e=0,Ze=q;$e<Ze.length;$e++){var lr=Ze[$e],yr=o(lr);yr?(yr!==lr&&(Ne=!0),fe.push(yr)):Ne=!0}return Ne?u.flags&1048576&&fe.length===q.length?ba(fe):u.flags&2097152&&fe.length?To(fe):void 0:u}if(u.flags&4194304)return Pi;if(u.flags&134217728){var q=u.types,Zr=e.mapDefined(q,o);return Zr.length===q.length?Xg(u.texts,Zr):ki}if(u.flags&268435456){var T=o(u.type);return T?fh(u.symbol,T):ki}if(u.flags&8388608){if(c(u))return o(_h(u.objectType,u.indexType));var ui=o(u.objectType),Ii=o(u.indexType),Fi=ui&&Ii&&Z_(ui,Ii,u.accessFlags);return Fi&&o(Fi)}if(u.flags&16777216){var T=Zy(u);return T&&o(T)}return u.flags&33554432?o(u.substitute):u}}function I1(r){return r.resolvedApparentType||(r.resolvedApparentType=Wc(r,r,!0))}function Rv(r){if(r.default)r.default===zn&&(r.default=Sn);else if(r.target){var i=Rv(r.target);r.default=i?gn(i,r.mapper):Rn}else{r.default=zn;var t=r.symbol&&e.forEach(r.symbol.declarations,function(s){return e.isTypeParameterDeclaration(s)&&s.default}),o=t?Ua(t):Rn;r.default===zn&&(r.default=o)}return r.default}function H_(r){var i=Rv(r);return i!==Rn&&i!==Sn?i:void 0}function rh(r){return Rv(r)!==Sn}function w1(r){return!!(r.symbol&&e.forEach(r.symbol.declarations,function(i){return e.isTypeParameterDeclaration(i)&&i.default}))}function O1(r){return r.resolvedApparentType||(r.resolvedApparentType=F1(r))}function F1(r){var i=fD(r);if(i&&!r.declaration.nameType){var t=qc(i);if(t&&(_c(t)||Ln(t)))return gn(r,cg(i,t,r.mapper))}return r}function c(r){return r.flags&8388608&&e.getObjectFlags(r.objectType)&32&&!Fc(r.objectType)&&fd(r.indexType)}function $(r){var i=r.flags&465829888?Cc(r)||We:r;return e.getObjectFlags(i)&32?O1(i):i.flags&2097152?I1(i):i.flags&402653316?Re:i.flags&296?nr:i.flags&2112?p3(Se>=7):i.flags&528?Gr:i.flags&12288?ax(Se>=2):i.flags&67108864?tt:i.flags&4194304?Pi:i.flags&2&&!ur?tt:i}function pr(r){return Lt($(Lt(r)))}function Yr(r,i,t){for(var o,s,u,T,q,fe=r.flags&1048576,Ne=fe?0:16777216,$e=4,Ze=fe?0:8,lr=!1,yr=0,Zr=r.types;yr<Zr.length;yr++){var ui=Zr[yr],Ii=$(ui);if(!(ra(Ii)||Ii.flags&131072)){var Fi=tn(Ii,i,t),Ri=Fi?e.getDeclarationModifierFlagsFromSymbol(Fi):0;if(Fi){if(fe?Ne|=Fi.flags&16777216:Ne&=Fi.flags,!u)u=Fi;else if(Fi!==u){var Xi=(Tg(Fi)||Fi)===(Tg(u)||u);if(Xi&&kD(u,Fi,function(Qa,En){return Qa===En?-1:0})===-1)lr=!!u.parent&&!!e.length(Sf(u.parent));else{T||(T=new e.Map,T.set(f(u),u));var ea=f(Fi);T.has(ea)||T.set(ea,Fi)}}fe&&zl(Fi)?Ze|=8:!fe&&!zl(Fi)&&(Ze&=-9),Ze|=(Ri&24?0:256)|(Ri&16?512:0)|(Ri&8?1024:0)|(Ri&32?2048:0),Db(Fi)||($e=2)}else if(fe){var lt=!Yd(i)&&Np(Ii,i);lt?(Ze|=32|(lt.isReadonly?8:0),q=e.append(q,Ln(Ii)?zm(Ii)||Nr:lt.type)):Bp(Ii)&&!(e.getObjectFlags(Ii)&4194304)?(Ze|=32,q=e.append(q,Nr)):Ze|=16}}}if(!(!u||fe&&(T||Ze&48)&&Ze&1536)){if(!T&&!(Ze&16)&&!q)if(lr){var Ia=Jd(u,u.type);return Ia.parent=(s=(o=u.valueDeclaration)===null||o===void 0?void 0:o.symbol)===null||s===void 0?void 0:s.parent,Ia.containingType=r,Ia.mapper=u.mapper,Ia}else return u;for(var fa=T?e.arrayFrom(T.values()):[u],Dn,Ra,Bn,Jn=[],On,Ao,$i=!1,Vi=0,Ot=fa;Vi<Ot.length;Vi++){var Fi=Ot[Vi];Ao?Fi.valueDeclaration&&Fi.valueDeclaration!==Ao&&($i=!0):Ao=Fi.valueDeclaration,Dn=e.addRange(Dn,Fi.declarations);var Ii=Jt(Fi);Ra||(Ra=Ii,Bn=Ma(Fi).nameType);var Wa=Ap(Fi);On||Wa!==Ii?On=e.append(On||Jn.slice(),Wa):Ii!==Ra&&(Ze|=64),(fg(Ii)||Qg(Ii))&&(Ze|=128),Ii.flags&131072&&(Ze|=131072),Jn.push(Ii)}e.addRange(Jn,q);var Qt=bo(4|Ne,i,$e|Ze);return Qt.containingType=r,!$i&&Ao&&(Qt.valueDeclaration=Ao,Ao.symbol.parent&&(Qt.parent=Ao.symbol.parent)),Qt.declarations=Dn,Qt.nameType=Bn,Jn.length>2?(Qt.checkFlags|=65536,Qt.deferralParent=r,Qt.deferralConstituents=Jn,Qt.deferralWriteConstituents=On):(Qt.type=fe?ba(Jn):To(Jn),On&&(Qt.writeType=fe?ba(On):To(On))),Qt}}function ji(r,i,t){var o,s,u=((o=r.propertyCacheWithoutObjectFunctionPropertyAugment)===null||o===void 0?void 0:o.get(i))||!t?(s=r.propertyCache)===null||s===void 0?void 0:s.get(i):void 0;if(!u&&(u=Yr(r,i,t),u)){var T=t?r.propertyCacheWithoutObjectFunctionPropertyAugment||(r.propertyCacheWithoutObjectFunctionPropertyAugment=e.createSymbolTable()):r.propertyCache||(r.propertyCache=e.createSymbolTable());T.set(i,u)}return u}function wt(r,i,t){var o=ji(r,i,t);return o&&!(e.getCheckFlags(o)&16)?o:void 0}function Lt(r){return r.flags&1048576&&r.objectFlags&33554432?r.resolvedReducedType||(r.resolvedReducedType=Ea(r)):r.flags&2097152?(r.objectFlags&33554432||(r.objectFlags|=33554432|(e.some(Bg(r),vn)?67108864:0)),r.objectFlags&67108864?St:r):r}function Ea(r){var i=e.sameMap(r.types,Lt);if(i===r.types)return r;var t=ba(i);return t.flags&1048576&&(t.resolvedReducedType=t),t}function vn(r){return sn(r)||Fo(r)}function sn(r){return!(r.flags&16777216)&&(e.getCheckFlags(r)&131264)===192&&!!(Jt(r).flags&131072)}function Fo(r){return!r.valueDeclaration&&!!(e.getCheckFlags(r)&1024)}function us(r,i){if(i.flags&2097152&&e.getObjectFlags(i)&67108864){var t=e.find(Bg(i),sn);if(t)return e.chainDiagnosticMessages(r,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,ht(i,void 0,536870912),Ga(t));var o=e.find(Bg(i),Fo);if(o)return e.chainDiagnosticMessages(r,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,ht(i,void 0,536870912),Ga(o))}return r}function tn(r,i,t){if(r=pr(r),r.flags&524288){var o=Vu(r),s=o.members.get(i);if(s&&Wf(s))return s;if(t)return;var u=o===bn?Ka:o.callSignatures.length?an:o.constructSignatures.length?Ke:void 0;if(u){var T=D_(u,i);if(T)return T}return D_(Ht,i)}if(r.flags&3145728)return wt(r,i,t)}function Ys(r,i){if(r.flags&3670016){var t=Vu(r);return i===0?t.callSignatures:t.constructSignatures}return e.emptyArray}function za(r,i){return Ys(pr(r),i)}function Du(r,i){return e.find(r,function(t){return t.keyType===i})}function gs(r,i){for(var t,o,s,u=0,T=r;u<T.length;u++){var q=T[u];q.keyType===ki?t=q:iu(i,q.keyType)&&(o?(s||(s=[o])).push(q):o=q)}return s?Fl(We,To(e.map(s,function(fe){return fe.type})),e.reduceLeft(s,function(fe,Ne){return fe&&Ne.isReadonly},!0)):o||(t&&iu(i,ki)?t:void 0)}function iu(r,i){return oo(r,i)||i===ki&&oo(r,Ui)||i===Ui&&!!(r.flags&128)&&e.isNumericLiteralName(r.value)}function X_(r){if(r.flags&3670016){var i=Vu(r);return i.indexInfos}return e.emptyArray}function Js(r){return X_(pr(r))}function kc(r,i){return Du(Js(r),i)}function fl(r,i){var t;return(t=kc(r,i))===null||t===void 0?void 0:t.type}function jg(r,i){return Js(r).filter(function(t){return iu(i,t.keyType)})}function ig(r,i){return gs(Js(r),i)}function Np(r,i){return ig(r,Yd(i)?ua:Ou(e.unescapeLeadingUnderscores(i)))}function ih(r){for(var i,t=0,o=e.getEffectiveTypeParameterDeclarations(r);t<o.length;t++){var s=o[t];i=e.appendIfUnique(i,Tf(s.symbol))}return i}function Bv(r){var i=[];return r.forEach(function(t,o){pf(o)||i.push(t)}),i}function Nm(r){return e.isInJSFile(r)&&(r.type&&r.type.kind===314||e.getJSDocParameterTags(r).some(function(i){var t=i.isBracketed,o=i.typeExpression;return t||!!o&&o.type.kind===314}))}function Ug(r,i){if(!e.isExternalModuleNameRelative(r)){var t=Pc(Lr,'"'+r+'"',512);return t&&i?Wn(t):t}}function ud(r){if(e.hasQuestionToken(r)||zg(r)||Nm(r))return!0;if(r.initializer){var i=Ku(r.parent),t=r.parent.parameters.indexOf(r);return e.Debug.assert(t>=0),t>=jl(i,3)}var o=e.getImmediatelyInvokedFunctionExpression(r.parent);return o?!r.type&&!r.dotDotDotToken&&r.parent.parameters.indexOf(r)>=o.arguments.length:!1}function Im(r){return e.isPropertyDeclaration(r)&&r.questionToken}function zg(r){if(!e.isJSDocPropertyLikeTag(r))return!1;var i=r.isBracketed,t=r.typeExpression;return i||!!t&&t.type.kind===314}function tg(r,i,t,o){return{kind:r,parameterName:i,parameterIndex:t,type:o}}function Ol(r){var i=0;if(r)for(var t=0;t<r.length;t++)w1(r[t])||(i=t+1);return i}function S_(r,i,t,o){var s=e.length(i);if(!s)return[];var u=e.length(r);if(o||u>=t&&u<=s){for(var T=r?r.slice():[],q=u;q<s;q++)T[q]=Oe;for(var fe=GD(o),q=u;q<s;q++){var Ne=H_(i[q]);o&&Ne&&(Qf(Ne,We)||Qf(Ne,tt))&&(Ne=xe),T[q]=Ne?gn(Ne,Kc(i,T)):fe}return T.length=i.length,T}return r&&r.slice()}function Ku(r){var i=Da(r);if(!i.resolvedSignature){var t=[],o=0,s=0,u=void 0,T=!1,q=e.getImmediatelyInvokedFunctionExpression(r),fe=e.isJSDocConstructSignature(r),Ne=!q&&e.isInJSFile(r)&&e.isValueSignatureDeclaration(r)&&!e.hasJSDocParameterTags(r)&&!e.getJSDocType(r);Ne&&(o|=32);for(var $e=fe?1:0;$e<r.parameters.length;$e++){var Ze=r.parameters[$e],lr=Ze.symbol,yr=e.isJSDocParameterTag(Ze)?Ze.typeExpression&&Ze.typeExpression.type:Ze.type;if(lr&&!!(lr.flags&4)&&!e.isBindingPattern(Ze.name)){var Zr=os(Ze,lr.escapedName,111551,void 0,void 0,!1);lr=Zr}$e===0&&lr.escapedName==="this"?(T=!0,u=Ze.symbol):t.push(lr),yr&&yr.kind===195&&(o|=2);var ui=zg(Ze)||Ze.initializer||Ze.questionToken||e.isRestParameter(Ze)||q&&t.length>q.arguments.length&&!yr||Nm(Ze);ui||(s=t.length)}if((r.kind===171||r.kind===172)&&Pp(r)&&(!T||!u)){var Ii=r.kind===171?172:171,Fi=e.getDeclarationOfKind(It(r),Ii);Fi&&(u=K(Fi))}var Ri=r.kind===170?Pn(Wn(r.parent.symbol)):void 0,Xi=Ri?Ri.localTypeParameters:ih(r);(e.hasRestParameter(r)||e.isInJSFile(r)&&Jv(r,t))&&(o|=1),(e.isConstructorTypeNode(r)&&e.hasSyntacticModifier(r,128)||e.isConstructorDeclaration(r)&&e.hasSyntacticModifier(r.parent,128))&&(o|=4),i.resolvedSignature=Pu(r,Xi,u,t,void 0,void 0,s,o)}return i.resolvedSignature}function Jv(r,i){if(e.isJSDocSignature(r)||!L1(r))return!1;var t=e.lastOrUndefined(r.parameters),o=t?e.getJSDocParameterTags(t):e.getJSDocTags(r).filter(e.isJSDocParameterTag),s=e.firstDefined(o,function(T){return T.typeExpression&&e.isJSDocVariadicType(T.typeExpression.type)?T.typeExpression.type:void 0}),u=bo(3,"args",32768);return u.type=s?tc(Ua(s.type)):Ki,s&&i.pop(),i.push(u),!0}function Wg(r){if(!!(e.isInJSFile(r)&&e.isFunctionLikeDeclaration(r))){var i=e.getJSDocTypeTag(r);return(i==null?void 0:i.typeExpression)&&jd(Ua(i.typeExpression))}}function th(r,i){var t=Wg(r);if(!!t){var o=r.parameters.indexOf(i);return i.dotDotDotToken?um(t,o):Hu(t,o)}}function M1(r){var i=Wg(r);return i&&So(i)}function L1(r){var i=Da(r);return i.containsArgumentsReference===void 0&&(i.flags&8192?i.containsArgumentsReference=!0:i.containsArgumentsReference=t(r.body)),i.containsArgumentsReference;function t(o){if(!o)return!1;switch(o.kind){case 79:return o.escapedText===ci.escapedName&&_v(o)===ci;case 166:case 168:case 171:case 172:return o.name.kind===161&&t(o.name);case 205:case 206:return t(o.expression);case 294:return t(o.initializer);default:return!e.nodeStartsNewLexicalEnvironment(o)&&!e.isPartOfTypeNode(o)&&!!e.forEachChild(o,t)}}}function Ip(r){if(!r||!r.declarations)return e.emptyArray;for(var i=[],t=0;t<r.declarations.length;t++){var o=r.declarations[t];if(!!e.isFunctionLike(o)){if(t>0&&o.body){var s=r.declarations[t-1];if(o.parent===s.parent&&o.kind===s.kind&&o.pos===s.end)continue}i.push(Ku(o))}}return i}function FT(r){var i=ko(r,r);if(i){var t=Fs(i);if(t)return Jt(t)}return xe}function ld(r){if(r.thisParameter)return Jt(r.thisParameter)}function wu(r){if(!r.resolvedTypePredicate){if(r.target){var i=wu(r.target);r.resolvedTypePredicate=i?_8(i,r.mapper):Cn}else if(r.compositeSignatures)r.resolvedTypePredicate=E3(r.compositeSignatures,r.compositeKind)||Cn;else{var t=r.declaration&&e.getEffectiveReturnTypeNode(r.declaration),o=void 0;if(!t&&e.isInJSFile(r.declaration)){var s=Wg(r.declaration);s&&r!==s&&(o=wu(s))}r.resolvedTypePredicate=t&&e.isTypePredicateNode(t)?JN(t,r):o||Cn}e.Debug.assert(!!r.resolvedTypePredicate)}return r.resolvedTypePredicate===Cn?void 0:r.resolvedTypePredicate}function JN(r,i){var t=r.parameterName,o=r.type&&Ua(r.type);return t.kind===191?tg(r.assertsModifier?2:0,void 0,void 0,o):tg(r.assertsModifier?3:1,t.escapedText,e.findIndex(i.parameters,function(s){return s.escapedName===t.escapedText}),o)}function MT(r,i,t){return i!==2097152?ba(r,t):To(r)}function So(r){if(!r.resolvedReturnType){if(!ku(r,3))return Oe;var i=r.target?gn(So(r.target),r.mapper):r.compositeSignatures?gn(MT(e.map(r.compositeSignatures,So),r.compositeKind,2),r.mapper):ag(r.declaration)||(e.nodeIsMissing(r.declaration.body)?xe:f0(r.declaration));if(r.flags&8?i=pE(i):r.flags&16&&(i=$f(i)),!eu()){if(r.declaration){var t=e.getEffectiveReturnTypeNode(r.declaration);if(t)Wr(t,e.Diagnostics.Return_type_annotation_circularly_references_itself);else if(Tr){var o=r.declaration,s=e.getNameOfDeclaration(o);s?Wr(s,e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,e.declarationNameToString(s)):Wr(o,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)}}i=xe}r.resolvedReturnType=i}return r.resolvedReturnType}function ag(r){if(r.kind===170)return Pn(Wn(r.parent.symbol));if(e.isJSDocConstructSignature(r))return Ua(r.parameters[0].type);var i=e.getEffectiveReturnTypeNode(r);if(i)return Ua(i);if(r.kind===171&&Pp(r)){var t=e.isInJSFile(r)&&Au(r);if(t)return t;var o=e.getDeclarationOfKind(It(r),172),s=d(o);if(s)return s}return M1(r)}function R1(r){return!r.resolvedReturnType&&vf(r,3)>=0}function jN(r){return LT(r)||xe}function LT(r){if(U(r)){var i=Jt(r.parameters[r.parameters.length-1]),t=Ln(i)?zm(i):i;return t&&fl(t,Ui)}}function jv(r,i,t,o){var s=B1(r,S_(i,r.typeParameters,Ol(r.typeParameters),t));if(o){var u=RC(So(s));if(u){var T=Zd(u);T.typeParameters=o;var q=Zd(s);return q.resolvedReturnType=qg(T),q}}return s}function B1(r,i){var t=r.instantiations||(r.instantiations=new e.Map),o=bu(i),s=t.get(o);return s||t.set(o,s=ah(r,i)),s}function ah(r,i){return ug(r,UN(r,i),!0)}function UN(r,i){return Kc(r.typeParameters,i)}function wm(r){return r.typeParameters?r.erasedSignatureCache||(r.erasedSignatureCache=zN(r)):r}function zN(r){return ug(r,jx(r.typeParameters),!0)}function WN(r){return r.typeParameters?r.canonicalSignatureCache||(r.canonicalSignatureCache=qN(r)):r}function qN(r){return jv(r,e.map(r.typeParameters,function(i){return i.target&&!qc(i.target)?i.target:i}),e.isInJSFile(r.declaration))}function VN(r){var i=r.typeParameters;if(i){if(r.baseSignatureCache)return r.baseSignatureCache;for(var t=jx(i),o=Kc(i,e.map(i,function(T){return qc(T)||We})),s=e.map(i,function(T){return gn(T,o)||We}),u=0;u<i.length-1;u++)s=x_(s,o);return s=x_(s,t),r.baseSignatureCache=ug(r,Kc(i,s),!0)}return r}function qg(r){if(!r.isolatedSignatureType){var i=r.declaration?r.declaration.kind:0,t=i===170||i===174||i===179,o=Uc(16);o.members=he,o.properties=e.emptyArray,o.callSignatures=t?e.emptyArray:[r],o.constructSignatures=t?[r]:e.emptyArray,o.indexInfos=e.emptyArray,r.isolatedSignatureType=o}return r.isolatedSignatureType}function RT(r){return r.members?J1(r.members):void 0}function J1(r){return r.get("__index")}function Fl(r,i,t,o){return{keyType:r,type:i,isReadonly:t,declaration:o}}function BT(r){var i=RT(r);return i?JT(i):e.emptyArray}function JT(r){if(r.declarations){for(var i=[],t=function(T){if(T.parameters.length===1){var q=T.parameters[0];q.type&&md(Ua(q.type),function(fe){nh(fe)&&!Du(i,fe)&&i.push(Fl(fe,T.type?Ua(T.type):xe,e.hasEffectiveModifier(T,64),T))})}},o=0,s=r.declarations;o<s.length;o++){var u=s[o];t(u)}return i}return e.emptyArray}function nh(r){return!!(r.flags&4108)||Qg(r)||!!(r.flags&2097152)&&!Rm(r)&&e.some(r.types,nh)}function jT(r){return e.mapDefined(e.filter(r.symbol&&r.symbol.declarations,e.isTypeParameterDeclaration),e.getEffectiveConstraintOfTypeParameter)[0]}function KN(r){var i,t;if(!((i=r.symbol)===null||i===void 0)&&i.declarations)for(var o=0,s=r.symbol.declarations;o<s.length;o++){var u=s[o];if(u.parent.kind===189){var T=e.walkUpParenthesizedTypesAndGetParentAndChild(u.parent.parent),q=T[0],fe=q===void 0?u.parent:q,Ne=T[1];if(Ne.kind===177){var $e=Ne,Ze=Qb($e);if(Ze){var lr=$e.typeArguments.indexOf(fe);if(lr<Ze.length){var yr=qc(Ze[lr]);if(yr){var Zr=Kc(Ze,d0($e,Ze)),ui=gn(yr,Zr);ui!==r&&(t=e.append(t,ui))}}}}else if(Ne.kind===163&&Ne.dotDotDotToken||Ne.kind===185||Ne.kind===196&&Ne.dotDotDotToken)t=e.append(t,tc(We));else if(Ne.kind===198)t=e.append(t,ki);else if(Ne.kind===162&&Ne.parent.kind===194)t=e.append(t,Pi);else if(Ne.kind===194&&Ne.type&&e.skipParentheses(Ne.type)===u.parent&&Ne.parent.kind===188&&Ne.parent.extendsType===Ne&&Ne.parent.checkType.kind===194&&Ne.parent.checkType.type){var Ii=Ne.parent.checkType,Fi=Ua(Ii.type);t=e.append(t,gn(Fi,Rd(Tf(It(Ii.typeParameter)),Ii.typeParameter.constraint?Ua(Ii.typeParameter.constraint):Pi)))}}}return t&&To(t)}function Vg(r){if(!r.constraint)if(r.target){var i=qc(r.target);r.constraint=i?gn(i,r.mapper):Rn}else{var t=jT(r);if(!t)r.constraint=KN(r)||Rn;else{var o=Ua(t);o.flags&1&&!ra(o)&&(o=t.parent.parent.kind===194?Pi:We),r.constraint=o}}return r.constraint===Rn?void 0:r.constraint}function UT(r){var i=e.getDeclarationOfKind(r.symbol,162),t=e.isJSDocTemplateTag(i.parent)?e.getEffectiveContainerForJSDocTemplateTag(i.parent):i.parent;return t&&It(t)}function bu(r){var i="";if(r)for(var t=r.length,o=0;o<t;){for(var s=r[o].id,u=1;o+u<t&&r[o+u].id===s+u;)u++;i.length&&(i+=","),i+=s,u>1&&(i+=":"+u),o+=u}return i}function ng(r,i){return r?"@".concat(f(r))+(i?":".concat(bu(i)):""):""}function j1(r,i){for(var t=0,o=0,s=r;o<s.length;o++){var u=s[o];u.flags&i||(t|=e.getObjectFlags(u))}return t&917504}function Hf(r,i){var t=bu(i),o=r.instantiations.get(t);return o||(o=Uc(4,r.symbol),r.instantiations.set(t,o),o.objectFlags|=i?j1(i,0):0,o.target=r,o.resolvedTypeArguments=i),o}function zT(r){var i=bs(r.flags);return i.symbol=r.symbol,i.objectFlags=r.objectFlags,i.target=r.target,i.resolvedTypeArguments=r.resolvedTypeArguments,i}function U1(r,i,t,o,s){if(!o){o=Ld(i);var u=og(o);s=t?x_(u,t):u}var T=Uc(4,r.symbol);return T.target=r,T.node=i,T.mapper=t,T.aliasSymbol=o,T.aliasTypeArguments=s,T}function Co(r){var i,t;if(!r.resolvedTypeArguments){if(!ku(r,6))return((i=r.target.localTypeParameters)===null||i===void 0?void 0:i.map(function(){return Oe}))||e.emptyArray;var o=r.node,s=o?o.kind===177?e.concatenate(r.target.outerTypeParameters,d0(o,r.target.localTypeParameters)):o.kind===182?[Ua(o.elementType)]:e.map(o.elements,Ua):e.emptyArray;eu()?r.resolvedTypeArguments=r.mapper?x_(s,r.mapper):s:(r.resolvedTypeArguments=((t=r.target.localTypeParameters)===null||t===void 0?void 0:t.map(function(){return Oe}))||e.emptyArray,Wr(r.node||er,r.target.symbol?e.Diagnostics.Type_arguments_for_0_circularly_reference_themselves:e.Diagnostics.Tuple_type_arguments_circularly_reference_themselves,r.target.symbol&&Ga(r.target.symbol)))}return r.resolvedTypeArguments}function Q_(r){return e.length(r.target.typeParameters)}function WT(r,i){var t=Io(Wn(i)),o=t.localTypeParameters;if(o){var s=e.length(r.typeArguments),u=Ol(o),T=e.isInJSFile(r),q=!Tr&&T;if(!q&&(s<u||s>o.length)){var fe=T&&e.isExpressionWithTypeArguments(r)&&!e.isJSDocAugmentsTag(r.parent),Ne=u===o.length?fe?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:fe?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,$e=ht(t,void 0,2);if(Wr(r,Ne,$e,u,o.length),!T)return Oe}if(r.kind===177&&lx(r,e.length(r.typeArguments)!==o.length))return U1(t,r,void 0);var Ze=e.concatenate(t.outerTypeParameters,S_(uh(r),o,u,T));return Hf(t,Ze)}return wp(r,i)?t:Oe}function Kg(r,i,t,o){var s=Io(r);if(s===Or&&I.has(r.escapedName)&&i&&i.length===1)return fh(r,i[0]);var u=Ma(r),T=u.typeParameters,q=bu(i)+ng(t,o),fe=u.instantiations.get(q);return fe||u.instantiations.set(q,fe=qx(s,Kc(T,S_(i,T,Ol(T),e.isInJSFile(r.valueDeclaration))),t,o)),fe}function GN(r,i){if(e.getCheckFlags(i)&1048576){var t=uh(r),o=ng(i,t),s=v.get(o);return s||(s=ss(1,"error"),s.aliasSymbol=i,s.aliasTypeArguments=t,v.set(o,s)),s}var u=Io(i),T=Ma(i).typeParameters;if(T){var q=e.length(r.typeArguments),fe=Ol(T);if(q<fe||q>T.length)return Wr(r,fe===T.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Ga(i),fe,T.length),Oe;var Ne=Ld(r),$e=Ne&&(qT(i)||!qT(Ne))?Ne:void 0;return Kg(i,uh(r),$e,og($e))}return wp(r,i)?u:Oe}function qT(r){var i,t=(i=r.declarations)===null||i===void 0?void 0:i.find(e.isTypeAlias);return!!(t&&e.getContainingFunction(t))}function HN(r){switch(r.kind){case 177:return r.typeName;case 227:var i=r.expression;if(e.isEntityNameExpression(i))return i}}function VT(r){return r.parent?"".concat(VT(r.parent),".").concat(r.escapedName):r.escapedName}function oh(r){var i=r.kind===160?r.right:r.kind===205?r.name:r,t=i.escapedText;if(t){var o=r.kind===160?oh(r.left):r.kind===205?oh(r.expression):void 0,s=o?"".concat(VT(o),".").concat(t):t,u=Me.get(s);return u||(Me.set(s,u=bo(524288,t,1048576)),u.parent=o,u.declaredType=Fr),u}return hr}function Gg(r,i,t){var o=HN(r);if(!o)return hr;var s=Ps(o,i,t);return s&&s!==hr?s:t?hr:oh(o)}function sh(r,i){if(i===hr)return Oe;if(i=cf(i)||i,i.flags&96)return WT(r,i);if(i.flags&524288)return GN(r,i);var t=Qd(i);if(t)return wp(r,i)?Vc(t):Oe;if(i.flags&111551&&ch(r)){var o=XN(r,i);return o||(Gg(r,788968),Jt(i))}return Oe}function XN(r,i){var t=Da(r);if(!t.resolvedJSDocType){var o=Jt(i),s=o;if(i.valueDeclaration){var u=r.kind===199&&r.qualifier;o.symbol&&o.symbol!==i&&u&&(s=sh(r,o.symbol))}t.resolvedJSDocType=s}return t.resolvedJSDocType}function KT(r,i){if(i.flags&3||i===r)return r;var t="".concat(Gu(r),">").concat(Gu(i)),o=Ye.get(t);if(o)return o;var s=bs(33554432);return s.baseType=r,s.substitute=i,Ye.set(t,s),s}function GT(r){return r.kind===183&&r.elements.length===1}function HT(r,i,t){return GT(i)&&GT(t)?HT(r,i.elements[0],t.elements[0]):Op(Ua(i))===Op(r)?Ua(t):void 0}function XT(r,i){for(var t,o=!0;i&&!e.isStatement(i)&&i.kind!==318;){var s=i.parent;if(s.kind===163&&(o=!o),(o||r.flags&8650752)&&s.kind===188&&i===s.trueType){var u=HT(r,s.checkType,s.extendsType);u&&(t=e.append(t,u))}i=s}return t?KT(r,To(e.append(t,r))):r}function ch(r){return!!(r.flags&4194304)&&(r.kind===177||r.kind===199)}function wp(r,i){return r.typeArguments?(Wr(r,e.Diagnostics.Type_0_is_not_generic,i?Ga(i):r.typeName?e.declarationNameToString(r.typeName):O),!1):!0}function QT(r){if(e.isIdentifier(r.typeName)){var i=r.typeArguments;switch(r.typeName.escapedText){case"String":return wp(r),ki;case"Number":return wp(r),Ui;case"Boolean":return wp(r),xt;case"Void":return wp(r),Vt;case"Undefined":return wp(r),Nr;case"Null":return wp(r),Ti;case"Function":case"function":return wp(r),Ka;case"array":return(!i||!i.length)&&!Tr?Ki:void 0;case"promise":return(!i||!i.length)&&!Tr?dy(xe):void 0;case"Object":if(i&&i.length===2){if(e.isJSDocIndexSignature(r)){var t=Ua(i[0]),o=Ua(i[1]),s=t===ki||t===Ui?[Fl(t,o,!1)]:e.emptyArray;return _s(void 0,he,e.emptyArray,e.emptyArray,s)}return xe}return wp(r),Tr?void 0:xe}}}function QN(r){var i=Ua(r.type);return ur?Eh(i,65536):i}function Uv(r){var i=Da(r);if(!i.resolvedType){if(e.isConstTypeReference(r)&&e.isAssertionExpression(r.parent))return i.resolvedSymbol=hr,i.resolvedType=js(r.parent.expression);var t=void 0,o=void 0,s=788968;ch(r)&&(o=QT(r),o||(t=Gg(r,s,!0),t===hr?t=Gg(r,s|111551):Gg(r,s),o=sh(r,t))),o||(t=Gg(r,s),o=sh(r,t)),i.resolvedSymbol=t,i.resolvedType=o}return i.resolvedType}function uh(r){return e.map(r.typeArguments,Ua)}function YT(r){var i=Da(r);if(!i.resolvedType){var t=e.isThisIdentifier(r.exprName)?ay(r.exprName):hn(r.exprName);i.resolvedType=Vc(Hc(t))}return i.resolvedType}function $T(r,i){function t(s){var u=s.declarations;if(u)for(var T=0,q=u;T<q.length;T++){var fe=q[T];switch(fe.kind){case 256:case 257:case 259:return fe}}}if(!r)return i?qr:tt;var o=Io(r);return o.flags&524288?e.length(o.typeParameters)!==i?(Wr(t(r),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(r),i),i?qr:tt):o:(Wr(t(r),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,e.symbolName(r)),i?qr:tt)}function ZT(r,i){return Om(r,111551,i?e.Diagnostics.Cannot_find_global_value_0:void 0)}function ex(r,i){return Om(r,788968,i?e.Diagnostics.Cannot_find_global_type_0:void 0)}function z1(r,i,t){var o=Om(r,788968,t?e.Diagnostics.Cannot_find_global_type_0:void 0);if(o&&(Io(o),e.length(Ma(o).typeParameters)!==i)){var s=o.declarations&&e.find(o.declarations,e.isTypeAliasDeclaration);Wr(s,e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(o),i);return}return o}function Om(r,i,t){return os(void 0,r,i,t,r,!1,!1,!1)}function fc(r,i,t){var o=ex(r,t);return o||t?$T(o,i):void 0}function YN(){return as||(as=fc("TypedPropertyDescriptor",1,!0)||qr)}function $N(){return co||(co=fc("TemplateStringsArray",0,!0)||tt)}function rx(){return De||(De=fc("ImportMeta",0,!0)||tt)}function ZN(){if(!zr){var r=bo(0,"ImportMetaExpression"),i=rx(),t=bo(4,"meta",8);t.parent=r,t.type=i;var o=e.createSymbolTable([t]);r.members=o,zr=_s(r,o,e.emptyArray,e.emptyArray,e.emptyArray)}return zr}function ix(r){return xi||(xi=fc("ImportCallOptions",0,r))||tt}function tx(r){return Ta||(Ta=ZT("Symbol",r))}function e3(r){return In||(In=ex("SymbolConstructor",r))}function ax(r){return so||(so=fc("Symbol",0,r))||tt}function zv(r){return Ho||(Ho=fc("Promise",1,r))||qr}function nx(r){return Ds||(Ds=fc("PromiseLike",1,r))||qr}function W1(r){return Os||(Os=ZT("Promise",r))}function r3(r){return mc||(mc=fc("PromiseConstructorLike",0,r))||tt}function i3(r){return An||(An=fc("AsyncIterable",1,r))||qr}function t3(r){return Pa||(Pa=fc("AsyncIterator",3,r))||qr}function a3(r){return Mn||(Mn=fc("AsyncIterableIterator",1,r))||qr}function n3(r){return ao||(ao=fc("AsyncGenerator",3,r))||qr}function ox(r){return Hs||(Hs=fc("Iterable",1,r))||qr}function o3(r){return Mi||(Mi=fc("Iterator",3,r))||qr}function s3(r){return $t||($t=fc("IterableIterator",1,r))||qr}function c3(r){return ga||(ga=fc("Generator",3,r))||qr}function u3(r){return xn||(xn=fc("IteratorYieldResult",1,r))||qr}function l3(r){return yn||(yn=fc("IteratorReturnResult",1,r))||qr}function sx(r,i){i===void 0&&(i=0);var t=Om(r,788968,void 0);return t&&$T(t,i)}function f3(){return et||(et=z1("Extract",2,!0)||hr),et===hr?void 0:et}function _3(){return je||(je=z1("Omit",2,!0)||hr),je===hr?void 0:je}function q1(r){return ti||(ti=z1("Awaited",1,r)||(r?hr:void 0)),ti===hr?void 0:ti}function p3(r){return mt||(mt=fc("BigInt",0,r))||tt}function Fm(r,i){return r!==qr?Hf(r,i):tt}function cx(r){return Fm(YN(),[r])}function d3(r){return Fm(ox(!0),[r])}function tc(r,i){return Fm(i?Ee:h,[r])}function V1(r){switch(r.kind){case 184:return 2;case 185:return ux(r);case 196:return r.questionToken?2:r.dotDotDotToken?ux(r):1;default:return 1}}function ux(r){return Vv(r.type)?4:8}function g3(r){var i=v3(r.parent),t=Vv(r);if(t)return i?Ee:h;var o=e.map(r.elements,V1),s=e.some(r.elements,function(u){return u.kind!==196});return K1(o,i,s?void 0:r.elements)}function lx(r,i){return!!Ld(r)||fx(r)&&(r.kind===182?T_(r.elementType):r.kind===183?e.some(r.elements,T_):i||e.some(r.typeArguments,T_))}function fx(r){var i=r.parent;switch(i.kind){case 190:case 196:case 177:case 186:case 187:case 193:case 188:case 192:case 182:case 183:return fx(i);case 258:return!0}return!1}function T_(r){switch(r.kind){case 177:return ch(r)||!!(Gg(r,788968).flags&524288);case 180:return!0;case 192:return r.operator!==153&&T_(r.type);case 190:case 184:case 196:case 314:case 312:case 313:case 307:return T_(r.type);case 185:return r.type.kind!==182||T_(r.type.elementType);case 186:case 187:return e.some(r.types,T_);case 193:return T_(r.objectType)||T_(r.indexType);case 188:return T_(r.checkType)||T_(r.extendsType)||T_(r.trueType)||T_(r.falseType)}return!1}function m3(r){var i=Da(r);if(!i.resolvedType){var t=g3(r);if(t===qr)i.resolvedType=tt;else if(!(r.kind===183&&e.some(r.elements,function(s){return!!(V1(s)&8)}))&&lx(r))i.resolvedType=r.kind===183&&r.elements.length===0?t:U1(t,r,void 0);else{var o=r.kind===182?[Ua(r.elementType)]:e.map(r.elements,Ua);i.resolvedType=G1(t,o)}}return i.resolvedType}function v3(r){return e.isTypeOperatorNode(r)&&r.operator===144}function Ml(r,i,t,o){t===void 0&&(t=!1);var s=K1(i||e.map(r,function(u){return 1}),t,o);return s===qr?tt:r.length?G1(s,r):s}function K1(r,i,t){if(r.length===1&&r[0]&4)return i?Ee:h;var o=e.map(r,function(u){return u&1?"#":u&2?"?":u&4?".":"*"}).join()+(i?"R":"")+(t&&t.length?","+e.map(t,A).join(","):""),s=li.get(o);return s||li.set(o,s=y3(r,i,t)),s}function y3(r,i,t){var o=r.length,s=e.countWhere(r,function(Ii){return!!(Ii&9)}),u,T=[],q=0;if(o){u=new Array(o);for(var fe=0;fe<o;fe++){var Ne=u[fe]=vu(),$e=r[fe];if(q|=$e,!(q&12)){var Ze=bo(4|($e&2?16777216:0),""+fe,i?8:0);Ze.tupleLabelDeclaration=t==null?void 0:t[fe],Ze.type=Ne,T.push(Ze)}}}var lr=T.length,yr=bo(4,"length");if(q&12)yr.type=Ui;else{for(var Zr=[],fe=s;fe<=o;fe++)Zr.push(xf(fe));yr.type=ba(Zr)}T.push(yr);var ui=Uc(12);return ui.typeParameters=u,ui.outerTypeParameters=void 0,ui.localTypeParameters=u,ui.instantiations=new e.Map,ui.instantiations.set(bu(ui.typeParameters),ui),ui.target=ui,ui.resolvedTypeArguments=ui.typeParameters,ui.thisType=vu(),ui.thisType.isThisType=!0,ui.thisType.constraint=ui,ui.declaredProperties=T,ui.declaredCallSignatures=e.emptyArray,ui.declaredConstructSignatures=e.emptyArray,ui.declaredIndexInfos=e.emptyArray,ui.elementFlags=r,ui.minLength=s,ui.fixedLength=lr,ui.hasRestElement=!!(q&12),ui.combinedFlags=q,ui.readonly=i,ui.labeledElementDeclarations=t,ui}function G1(r,i){return r.objectFlags&8?_x(r,i):Hf(r,i)}function _x(r,i){var t,o,s;if(!(r.combinedFlags&14))return Hf(r,i);if(r.combinedFlags&8){var u=e.findIndex(i,function(Fi,Ri){return!!(r.elementFlags[Ri]&8&&Fi.flags&1179648)});if(u>=0)return Wv(e.map(i,function(Fi,Ri){return r.elementFlags[Ri]&8?Fi:We}))?Cs(i[u],function(Fi){return _x(r,e.replaceElement(i,u,Fi))}):Oe}for(var T=[],q=[],fe=[],Ne=-1,$e=-1,Ze=-1,lr=function(Fi){var Ri=i[Fi],Xi=r.elementFlags[Fi];if(Xi&8)if(Ri.flags&58982400||Fc(Ri))Ii(Ri,8,(t=r.labeledElementDeclarations)===null||t===void 0?void 0:t[Fi]);else if(Ln(Ri)){var ea=Co(Ri);if(ea.length+T.length>=1e4)return Wr(er,e.isPartOfTypeNode(er)?e.Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent:e.Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent),{value:Oe};e.forEach(ea,function(lt,Ia){var fa;return Ii(lt,Ri.target.elementFlags[Ia],(fa=Ri.target.labeledElementDeclarations)===null||fa===void 0?void 0:fa[Ia])})}else Ii(ap(Ri)&&fl(Ri,Ui)||Oe,4,(o=r.labeledElementDeclarations)===null||o===void 0?void 0:o[Fi]);else Ii(Ri,Xi,(s=r.labeledElementDeclarations)===null||s===void 0?void 0:s[Fi])},yr=0;yr<i.length;yr++){var Zr=lr(yr);if(typeof Zr=="object")return Zr.value}for(var yr=0;yr<Ne;yr++)q[yr]&2&&(q[yr]=1);$e>=0&&$e<Ze&&(T[$e]=ba(e.sameMap(T.slice($e,Ze+1),function(Fi,Ri){return q[$e+Ri]&8?Mc(Fi,Ui):Fi})),T.splice($e+1,Ze-$e),q.splice($e+1,Ze-$e),fe==null||fe.splice($e+1,Ze-$e));var ui=K1(q,r.readonly,fe);return ui===qr?tt:q.length?Hf(ui,T):ui;function Ii(Fi,Ri,Xi){Ri&1&&(Ne=q.length),Ri&4&&$e<0&&($e=q.length),Ri&6&&(Ze=q.length),T.push(Fi),q.push(Ri),fe&&Xi?fe.push(Xi):fe=void 0}}function Mm(r,i,t){t===void 0&&(t=0);var o=r.target,s=Q_(r)-t;return i>o.fixedLength?tI(r)||Ml(e.emptyArray):Ml(Co(r).slice(i,s),o.elementFlags.slice(i,s),!1,o.labeledElementDeclarations&&o.labeledElementDeclarations.slice(i,s))}function px(r){return ba(e.append(e.arrayOf(r.target.fixedLength,function(i){return Ou(""+i)}),Ll(r.target.readonly?Ee:h)))}function dx(r,i){var t=e.findIndex(r.elementFlags,function(o){return!(o&i)});return t>=0?t:r.elementFlags.length}function lh(r,i){return r.elementFlags.length-e.findLastIndex(r.elementFlags,function(t){return!(t&i)})-1}function h3(r){return Ec(Ua(r.type),!0)}function Gu(r){return r.id}function Y_(r,i){return e.binarySearch(r,i,Gu,e.compareValues)>=0}function H1(r,i){var t=e.binarySearch(r,i,Gu,e.compareValues);return t<0?(r.splice(~t,0,i),!0):!1}function D3(r,i,t){var o=t.flags;if(o&1048576)return gx(r,i|(x3(t)?1048576:0),t.types);if(!(o&131072))if(i|=o&205258751,o&465829888&&(i|=33554432),t===Je&&(i|=8388608),!ur&&o&98304)e.getObjectFlags(t)&131072||(i|=4194304);else{var s=r.length,u=s&&t.id>r[s-1].id?~s:e.binarySearch(r,t,Gu,e.compareValues);u<0&&r.splice(~u,0,t)}return i}function gx(r,i,t){for(var o=0,s=t;o<s.length;o++){var u=s[o];i=D3(r,i,u)}return i}function b3(r,i){var t=bu(r),o=Be.get(t);if(o)return o;for(var s=i&&e.some(r,function(Ii){return!!(Ii.flags&524288)&&!Fc(Ii)&&hD(Vu(Ii))}),u=r.length,T=u,q=0;T>0;){T--;var fe=r[T];if(s||fe.flags&469499904)for(var Ne=fe.flags&61603840?e.find(_o(fe),function(Ii){return Rl(Jt(Ii))}):void 0,$e=Ne&&Vc(Jt(Ne)),Ze=0,lr=r;Ze<lr.length;Ze++){var yr=lr[Ze];if(fe!==yr){if(q===1e5){var Zr=q/(u-T)*u;if(Zr>1e6){e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","removeSubtypes_DepthLimit",{typeIds:r.map(function(Ii){return Ii.id})}),Wr(er,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}}if(q++,Ne&&yr.flags&61603840){var ui=ai(yr,Ne.escapedName);if(ui&&Rl(ui)&&Vc(ui)!==$e)continue}if(Yf(fe,yr,vr)&&(!(e.getObjectFlags(bf(fe))&1)||!(e.getObjectFlags(bf(yr))&1)||lg(fe,yr))){e.orderedRemoveItemAt(r,T);break}}}}return Be.set(t,r),r}function S3(r,i,t){for(var o=r.length;o>0;){o--;var s=r[o],u=s.flags,T=u&402653312&&i&4||u&256&&i&8||u&2048&&i&64||u&8192&&i&4096||t&&u&32768&&i&16384||Mp(s)&&Y_(r,s.regularType);T&&e.orderedRemoveItemAt(r,o)}}function T3(r){var i=e.filter(r,Qg);if(i.length)for(var t=r.length,o=function(){t--;var s=r[t];s.flags&128&&e.some(i,function(u){return TE(s,u)})&&e.orderedRemoveItemAt(r,t)};t>0;)o()}function x3(r){return!!(r.flags&1048576&&(r.aliasSymbol||r.origin))}function mx(r,i){for(var t=0,o=i;t<o.length;t++){var s=o[t];if(s.flags&1048576){var u=s.origin;s.aliasSymbol||u&&!(u.flags&1048576)?e.pushIfUnique(r,s):u&&u.flags&1048576&&mx(r,u.types)}}}function X1(r,i){var t=zu(r);return t.types=i,t}function ba(r,i,t,o,s){if(i===void 0&&(i=1),r.length===0)return St;if(r.length===1)return r[0];var u=[],T=gx(u,0,r);if(i!==0){if(T&3)return T&1?T&8388608?Je:xe:T&65536||Y_(u,We)?We:mr;if(Ce&&T&32768){var q=e.binarySearch(u,mi,Gu,e.compareValues);q>=0&&Y_(u,Nr)&&e.orderedRemoveItemAt(u,q)}if((T&402664320||T&16384&&T&32768)&&S3(u,T,!!(i&2)),T&128&&T&134217728&&T3(u),i===2&&(u=b3(u,!!(T&524288)),!u))return Oe;if(u.length===0)return T&65536?T&4194304?Ti:hi:T&32768?T&4194304?Nr:Ur:St}if(!s&&T&1048576){var fe=[];mx(fe,r);for(var Ne=[],$e=function(Ri){e.some(fe,function(Xi){return Y_(Xi.types,Ri)})||Ne.push(Ri)},Ze=0,lr=u;Ze<lr.length;Ze++){var yr=lr[Ze];$e(yr)}if(!t&&fe.length===1&&Ne.length===0)return fe[0];var Zr=e.reduceLeft(fe,function(Ri,Xi){return Ri+Xi.types.length},0);if(Zr+Ne.length===u.length){for(var ui=0,Ii=fe;ui<Ii.length;ui++){var yr=Ii[ui];H1(Ne,yr)}s=X1(1048576,Ne)}}var Fi=(T&36323363?0:65536)|(T&2097152?33554432:0);return Y1(u,Fi,t,o,s)}function E3(r,i){for(var t,o=[],s=0,u=r;s<u.length;s++){var T=u[s],q=wu(T);if(!q||q.kind===2||q.kind===3){if(i!==2097152)continue;return}if(t){if(!Q1(t,q))return}else t=q;o.push(q.type)}if(!!t){var fe=MT(o,i);return tg(t.kind,t.parameterName,t.parameterIndex,fe)}}function Q1(r,i){return r.kind===i.kind&&r.parameterIndex===i.parameterIndex}function Y1(r,i,t,o,s){if(r.length===0)return St;if(r.length===1)return r[0];var u=s?s.flags&1048576?"|".concat(bu(s.types)):s.flags&2097152?"&".concat(bu(s.types)):"#".concat(s.type.id,"|").concat(bu(r)):bu(r),T=u+ng(t,o),q=Si.get(T);return q||(q=bs(1048576),q.objectFlags=i|j1(r,98304),q.types=r,q.origin=s,q.aliasSymbol=t,q.aliasTypeArguments=o,r.length===2&&r[0].flags&512&&r[1].flags&512&&(q.flags|=16,q.intrinsicName="boolean"),Si.set(T,q)),q}function C3(r){var i=Da(r);if(!i.resolvedType){var t=Ld(r);i.resolvedType=ba(e.map(r.types,Ua),1,t,og(t))}return i.resolvedType}function k3(r,i,t){var o=t.flags;return o&2097152?vx(r,i,t.types):(Yx(t)?i&16777216||(i|=16777216,r.set(t.id.toString(),t)):(o&3?t===Je&&(i|=8388608):(ur||!(o&98304))&&(Ce&&t===mi&&(i|=262144,t=Nr),r.has(t.id.toString())||(t.flags&109440&&i&109440&&(i|=67108864),r.set(t.id.toString(),t))),i|=o&205258751),i)}function vx(r,i,t){for(var o=0,s=t;o<s.length;o++){var u=s[o];i=k3(r,i,Vc(u))}return i}function A3(r,i){for(var t=r.length;t>0;){t--;var o=r[t],s=o.flags&4&&i&128||o.flags&8&&i&256||o.flags&64&&i&2048||o.flags&4096&&i&8192;s&&e.orderedRemoveItemAt(r,t)}}function P3(r,i){for(var t=0,o=r;t<o.length;t++){var s=o[t];if(!Y_(s.types,i)){var u=i.flags&128?ki:i.flags&256?Ui:i.flags&2048?zi:i.flags&8192?ua:void 0;if(!u||!Y_(s.types,u))return!1}}return!0}function N3(r){for(var i=r.length,t=e.filter(r,function(q){return!!(q.flags&128)});i>0;){i--;var o=r[i];if(!!(o.flags&134217728))for(var s=0,u=t;s<u.length;s++){var T=u[s];if(E_(T,o)){e.orderedRemoveItemAt(r,i);break}else if(Qg(o))return!0}}return!1}function yx(r,i){return e.every(r,function(t){return!!(t.flags&1048576)&&e.some(t.types,function(o){return!!(o.flags&i)})})}function hx(r,i){for(var t=0;t<r.length;t++)r[t]=pc(r[t],function(o){return!(o.flags&i)})}function I3(r){var i,t=e.findIndex(r,function(lr){return!!(e.getObjectFlags(lr)&65536)});if(t<0)return!1;for(var o=t+1;o<r.length;){var s=r[o];e.getObjectFlags(s)&65536?((i||(i=[r[t]])).push(s),e.orderedRemoveItemAt(r,o)):o++}if(!i)return!1;for(var u=[],T=[],q=0,fe=i;q<fe.length;q++)for(var Ne=fe[q],$e=0,Ze=Ne.types;$e<Ze.length;$e++){var s=Ze[$e];H1(u,s)&&P3(i,s)&&H1(T,s)}return r[t]=Y1(T,65536),!0}function w3(r,i,t){var o=bs(2097152);return o.objectFlags=j1(r,98304),o.types=r,o.aliasSymbol=i,o.aliasTypeArguments=t,o}function To(r,i,t){var o=new e.Map,s=vx(o,0,r),u=e.arrayFrom(o.values());if(s&131072)return e.contains(u,Ci)?Ci:St;if(ur&&s&98304&&s&84410368||s&67108864&&s&402783228||s&402653316&&s&67238776||s&296&&s&469891796||s&2112&&s&469889980||s&12288&&s&469879804||s&49152&&s&469842940||s&134217728&&s&128&&N3(u))return St;if(s&1)return s&8388608?Je:xe;if(!ur&&s&98304)return s&32768?Nr:Ti;if((s&4&&s&128||s&8&&s&256||s&64&&s&2048||s&4096&&s&8192)&&A3(u,s),s&16777216&&s&524288&&e.orderedRemoveItemAt(u,e.findIndex(u,Yx)),s&262144&&(u[u.indexOf(Nr)]=mi),u.length===0)return We;if(u.length===1)return u[0];var T=bu(u)+ng(i,t),q=qi.get(T);if(!q){if(s&1048576)if(I3(u))q=To(u,i,t);else if(yx(u,32768)){var fe=Ce&&e.some(u,function(Ze){return Y_(Ze.types,mi)})?mi:Nr;hx(u,32768),q=ba([To(u),fe],1,i,t)}else if(yx(u,65536))hx(u,65536),q=ba([To(u),Ti],1,i,t);else{if(!Wv(u))return Oe;var Ne=O3(u),$e=e.some(Ne,function(Ze){return!!(Ze.flags&2097152)})?X1(2097152,u):void 0;q=ba(Ne,1,i,t,$e)}else q=w3(u,i,t);qi.set(T,q)}return q}function Dx(r){return e.reduceLeft(r,function(i,t){return t.flags&1048576?i*t.types.length:t.flags&131072?0:i},1)}function Wv(r){var i=Dx(r);return i>=1e5?(e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","checkCrossProductUnion_DepthLimit",{typeIds:r.map(function(t){return t.id}),size:i}),Wr(er,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function O3(r){for(var i=Dx(r),t=[],o=0;o<i;o++){for(var s=r.slice(),u=o,T=r.length-1;T>=0;T--)if(r[T].flags&1048576){var q=r[T].types,fe=q.length;s[T]=q[u%fe],u=Math.floor(u/fe)}var Ne=To(s);Ne.flags&131072||t.push(Ne)}return t}function F3(r){var i=Da(r);if(!i.resolvedType){var t=Ld(r);i.resolvedType=To(e.map(r.types,Ua),t,og(t))}return i.resolvedType}function bx(r,i){var t=bs(4194304);return t.type=r,t.stringsOnly=i,t}function M3(r){var i=zu(4194304);return i.type=r,i}function Sx(r,i){return i?r.resolvedStringIndexType||(r.resolvedStringIndexType=bx(r,!0)):r.resolvedIndexType||(r.resolvedIndexType=bx(r,!1))}function L3(r,i,t){var o=Nu(r),s=Iu(r),u=h_(r.target||r);if(!u&&!t)return s;var T=[];if(Mg(r)){if(fd(s))return Sx(r,i);var q=$(Lg(r));Mv(q,8576,i,Ne)}else md(cd(s),Ne);fd(s)&&md(s,Ne);var fe=t?pc(ba(T),function($e){return!($e.flags&5)}):ba(T);if(fe.flags&1048576&&s.flags&1048576&&bu(fe.types)===bu(s.types))return s;return fe;function Ne($e){var Ze=u?gn(u,Jm(r.mapper,o,$e)):$e;T.push(Ze===ki?oa:Ze)}}function R3(r){var i=Nu(r);return t(h_(r)||i);function t(o){return o.flags&68157439?!0:o.flags&16777216?o.root.isDistributive&&o.checkType===i:o.flags&137363456?e.every(o.types,t):o.flags&8388608?t(o.objectType)&&t(o.indexType):o.flags&33554432?t(o.substitute):o.flags&268435456?t(o.type):!1}}function $_(r){return e.isPrivateIdentifier(r)?St:e.isIdentifier(r)?Ou(e.unescapeLeadingUnderscores(r.escapedText)):Vc(e.isComputedPropertyName(r)?Zf(r):hn(r))}function Hg(r,i,t){if(t||!(e.getDeclarationModifierFlagsFromSymbol(r)&24)){var o=Ma(Og(r)).nameType;if(!o){var s=e.getNameOfDeclaration(r.valueDeclaration);o=r.escapedName==="default"?Ou("default"):s&&$_(s)||(e.isKnownSymbol(r)?void 0:Ou(e.symbolName(r)))}if(o&&o.flags&i)return o}return St}function Tx(r,i){return!!(r.flags&i||r.flags&2097152&&e.some(r.types,function(t){return Tx(t,i)}))}function B3(r,i,t){var o=t&&(e.getObjectFlags(r)&7||r.aliasSymbol)?M3(r):void 0,s=e.map(_o(r),function(T){return Hg(T,i)}),u=e.map(Js(r),function(T){return T!==rn&&Tx(T.keyType,i)?T.keyType===ki&&i&8?oa:T.keyType:St});return ba(e.concatenate(s,u),1,void 0,void 0,o)}function Ll(r,i,t){return i===void 0&&(i=br),r=Lt(r),r.flags&1048576?To(e.map(r.types,function(o){return Ll(o,i,t)})):r.flags&2097152?ba(e.map(r.types,function(o){return Ll(o,i,t)})):r.flags&58982400||em(r)||Fc(r)&&!R3(r)?Sx(r,i):e.getObjectFlags(r)&32?L3(r,i,t):r===Je?Je:r.flags&2?St:r.flags&131073?Pi:B3(r,(t?128:402653316)|(i?0:12584),i===br&&!t)}function xx(r){if(br)return r;var i=f3();return i?Kg(i,[r,ki]):ki}function J3(r){var i=xx(Ll(r));return i.flags&131072?ki:i}function j3(r){var i=Da(r);if(!i.resolvedType)switch(r.operator){case 140:i.resolvedType=Ll(Ua(r.type));break;case 153:i.resolvedType=r.type.kind===150?uD(e.walkUpParenthesizedTypes(r.parent)):Oe;break;case 144:i.resolvedType=Ua(r.type);break;default:throw e.Debug.assertNever(r.operator)}return i.resolvedType}function U3(r){var i=Da(r);return i.resolvedType||(i.resolvedType=Xg(qe([r.head.text],e.map(r.templateSpans,function(t){return t.literal.text}),!0),e.map(r.templateSpans,function(t){return Ua(t.type)}))),i.resolvedType}function Xg(r,i){var t=e.findIndex(i,function(Ne){return!!(Ne.flags&1179648)});if(t>=0)return Wv(i)?Cs(i[t],function(Ne){return Xg(r,e.replaceElement(i,t,Ne))}):Oe;if(e.contains(i,Je))return Je;var o=[],s=[],u=r[0];if(!fe(r,i))return ki;if(o.length===0)return Ou(u);if(s.push(u),e.every(s,function(Ne){return Ne===""})&&e.every(o,function(Ne){return!!(Ne.flags&4)}))return ki;var T="".concat(bu(o),"|").concat(e.map(s,function(Ne){return Ne.length}).join(","),"|").concat(s.join("")),q=di.get(T);return q||di.set(T,q=W3(s,o)),q;function fe(Ne,$e){for(var Ze=0;Ze<$e.length;Ze++){var lr=$e[Ze];if(lr.flags&101248)u+=z3(lr)||"",u+=Ne[Ze+1];else if(lr.flags&134217728){if(u+=lr.texts[0],!fe(lr.texts,lr.types))return!1;u+=Ne[Ze+1]}else if(fd(lr)||Cx(lr))o.push(lr),s.push(u),u=Ne[Ze+1];else return!1}return!0}}function z3(r){return r.flags&128?r.value:r.flags&256?""+r.value:r.flags&2048?e.pseudoBigIntToString(r.value):r.flags&98816?r.intrinsicName:void 0}function W3(r,i){var t=bs(134217728);return t.texts=r,t.types=i,t}function fh(r,i){return i.flags&1179648?Cs(i,function(t){return fh(r,t)}):fd(i)?V3(r,i):i.flags&128?Ou(q3(r,i.value)):i}function q3(r,i){switch(I.get(r.escapedName)){case 0:return i.toUpperCase();case 1:return i.toLowerCase();case 2:return i.charAt(0).toUpperCase()+i.slice(1);case 3:return i.charAt(0).toLowerCase()+i.slice(1)}return i}function V3(r,i){var t="".concat(f(r),",").concat(Gu(i)),o=X.get(t);return o||X.set(t,o=K3(r,i)),o}function K3(r,i){var t=bs(268435456);return t.symbol=r,t.type=i,t}function G3(r,i,t,o,s){var u=bs(8388608);return u.objectType=r,u.indexType=i,u.accessFlags=t,u.aliasSymbol=o,u.aliasTypeArguments=s,u}function Lm(r){if(Tr)return!1;if(e.getObjectFlags(r)&8192)return!0;if(r.flags&1048576)return e.every(r.types,Lm);if(r.flags&2097152)return e.some(r.types,Lm);if(r.flags&465829888){var i=Pm(r);return i!==r&&Lm(i)}return!1}function $1(r,i){return ul(r)?Nl(r):i&&e.isPropertyName(i)?e.getPropertyNameForPropertyNameNode(i):void 0}function Z1(r,i){if(i.flags&8208){var t=e.findAncestor(r.parent,function(o){return!e.isAccessExpression(o)})||r.parent;return e.isCallLikeExpression(t)?e.isCallOrNewExpression(t)&&e.isIdentifier(r)&&IE(t,r):e.every(i.declarations,function(o){return!e.isFunctionLike(o)||!!(e.getCombinedNodeFlags(o)&134217728)})}return!0}function Ex(r,i,t,o,s,u){var T,q=s&&s.kind===206?s:void 0,fe=s&&e.isPrivateIdentifier(s)?void 0:$1(t,s);if(fe!==void 0){if(u&256)return yd(i,fe)||xe;var Ne=tn(i,fe);if(Ne){if(u&64&&s&&Ne.declarations&&Qc(Ne)&&Z1(s,Ne)){var $e=(T=q==null?void 0:q.argumentExpression)!==null&&T!==void 0?T:e.isIndexedAccessTypeNode(s)?s.indexType:s;fu($e,Ne.declarations,fe)}if(q){if(ly(Ne,q,IC(q.expression,i.symbol)),mk(q,Ne,e.getAssignmentTargetKind(q))){Wr(q.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Ga(Ne));return}if(u&8&&(Da(s).resolvedSymbol=Ne),xC(q,Ne))return ze}var Ze=Jt(Ne);return q&&e.getAssignmentTargetKind(q)!==1?op(q,Ze):Ze}if(kf(i,Ln)&&e.isNumericLiteralName(fe)&&+fe>=0){if(s&&kf(i,function(lt){return!lt.target.hasRestElement})&&!(u&16)){var lr=eD(s);Ln(i)?Wr(lr,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,ht(i),Q_(i),e.unescapeLeadingUnderscores(fe)):Wr(lr,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(fe),ht(i))}return ea(kc(i,Ui)),Cs(i,function(lt){var Ia=zm(lt)||Nr;return u&1?ba([Ia,Nr]):Ia})}}if(!(t.flags&98304)&&ws(t,402665900)){if(i.flags&131073)return i;var yr=ig(i,t)||kc(i,ki);if(yr){if(u&2&&yr.keyType!==Ui){q&&Wr(q,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,ht(t),ht(r));return}if(s&&yr.keyType===ki&&!ws(t,12)){var lr=eD(s);return Wr(lr,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,ht(t)),u&1?ba([yr.type,Nr]):yr.type}return ea(yr),u&1?ba([yr.type,Nr]):yr.type}if(t.flags&131072)return St;if(Lm(i))return xe;if(q&&!Wb(i)){if(Bp(i)){if(Tr&&t.flags&384)return ya.add(e.createDiagnosticForNode(q,e.Diagnostics.Property_0_does_not_exist_on_type_1,t.value,ht(i))),Nr;if(t.flags&12){var Zr=e.map(i.properties,function(lt){return Jt(lt)});return ba(e.append(Zr,Nr))}}if(i.symbol===Rr&&fe!==void 0&&Rr.exports.has(fe)&&Rr.exports.get(fe).flags&418)Wr(q,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(fe),ht(i));else if(Tr&&!ye.suppressImplicitAnyIndexErrors&&!(u&128))if(fe!==void 0&&AC(fe,i)){var ui=ht(i);Wr(q,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,fe,ui,ui+"["+e.getTextOfNode(q.argumentExpression)+"]")}else if(fl(i,Ui))Wr(q.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var Ii=void 0;if(fe!==void 0&&(Ii=kb(fe,i)))Ii!==void 0&&Wr(q.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,fe,ht(i),Ii);else{var Fi=N5(i,q,t);if(Fi!==void 0)Wr(q,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,ht(i),Fi);else{var Ri=void 0;if(t.flags&1024)Ri=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+ht(t)+"]",ht(i));else if(t.flags&8192){var Xi=ts(t.symbol,q);Ri=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+Xi+"]",ht(i))}else t.flags&128||t.flags&256?Ri=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,t.value,ht(i)):t.flags&12&&(Ri=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,ht(t),ht(i)));Ri=e.chainDiagnosticMessages(Ri,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,ht(o),ht(i)),ya.add(e.createDiagnosticForNodeFromMessageChain(q,Ri))}}}return}}if(Lm(i))return xe;if(s){var lr=eD(s);t.flags&384?Wr(lr,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+t.value,ht(i)):t.flags&12?Wr(lr,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,ht(i),ht(t)):Wr(lr,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,ht(t))}if(At(t))return t;return;function ea(lt){lt&&lt.isReadonly&&q&&(e.isAssignmentTarget(q)||e.isDeleteTarget(q))&&Wr(q,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,ht(i))}}function eD(r){return r.kind===206?r.argumentExpression:r.kind===193?r.indexType:r.kind===161?r.expression:r}function Cx(r){return!!(r.flags&77)}function Qg(r){return!!(r.flags&134217728)&&e.every(r.types,Cx)}function Rm(r){return!!Bm(r)}function Md(r){return!!(Bm(r)&8388608)}function fd(r){return!!(Bm(r)&16777216)}function Bm(r){return r.flags&3145728?(r.objectFlags&4194304||(r.objectFlags|=4194304|e.reduceLeft(r.types,function(i,t){return i|Bm(t)},0)),r.objectFlags&25165824):r.flags&33554432?(r.objectFlags&4194304||(r.objectFlags|=4194304|Bm(r.substitute)|Bm(r.baseType)),r.objectFlags&25165824):(r.flags&58982400||Fc(r)||em(r)?8388608:0)|(r.flags&465829888&&!Qg(r)?16777216:0)}function Xf(r,i){return r.flags&8388608?X3(r,i):r.flags&16777216?Q3(r,i):r}function kx(r,i,t){if(r.flags&3145728){var o=e.map(r.types,function(s){return Xf(Mc(s,i),t)});return r.flags&2097152||t?To(o):ba(o)}}function H3(r,i,t){if(i.flags&1048576){var o=e.map(i.types,function(s){return Xf(Mc(r,s),t)});return t?To(o):ba(o)}}function X3(r,i){var t=i?"simplifiedForWriting":"simplifiedForReading";if(r[t])return r[t]===Sn?r:r[t];r[t]=Sn;var o=Xf(r.objectType,i),s=Xf(r.indexType,i),u=H3(o,s,i);if(u)return r[t]=u;if(!(s.flags&465829888)){var T=kx(o,s,i);if(T)return r[t]=T}if(em(o)&&s.flags&296){var q=xh(o,s.flags&8?0:o.target.fixedLength,0,i);if(q)return r[t]=q}return Fc(o)?r[t]=Cs(_h(o,r.indexType),function(fe){return Xf(fe,i)}):r[t]=r}function Q3(r,i){var t=r.checkType,o=r.extendsType,s=ep(r),u=rp(r);if(u.flags&131072&&Op(s)===Op(t)){if(t.flags&1||oo(dd(t),dd(o)))return Xf(s,i);if(Ax(t,o))return St}else if(s.flags&131072&&Op(u)===Op(t)){if(!(t.flags&1)&&oo(dd(t),dd(o)))return St;if(t.flags&1||Ax(t,o))return Xf(u,i)}return r}function Ax(r,i){return!!(ba([eg(r,i),St]).flags&131072)}function _h(r,i){var t=Kc([Nu(r)],[i]),o=pd(r.mapper,t);return gn(wl(r),o)}function Mc(r,i,t,o,s,u){return t===void 0&&(t=0),Z_(r,i,t,o,s,u)||(o?Oe:We)}function Px(r,i){return kf(r,function(t){if(t.flags&384){var o=Nl(t);if(e.isNumericLiteralName(o)){var s=+o;return s>=0&&s<i}}return!1})}function Z_(r,i,t,o,s,u){if(t===void 0&&(t=0),r===Je||i===Je)return Je;if($x(r)&&!(i.flags&98304)&&ws(i,12)&&(i=ki),ye.noUncheckedIndexedAccess&&t&32&&(t|=1),fd(i)||(o&&o.kind!==193?em(r)&&!Px(i,r.target.fixedLength):Md(r)&&!(Ln(r)&&Px(i,r.target.fixedLength)))){if(r.flags&3)return r;var T=t&1,q=r.id+","+i.id+","+T+ng(s,u),fe=Ji.get(q);return fe||Ji.set(q,fe=G3(r,i,T,s,u)),fe}var Ne=pr(r);if(i.flags&1048576&&!(i.flags&16)){for(var $e=[],Ze=!1,lr=0,yr=i.types;lr<yr.length;lr++){var Zr=yr[lr],ui=Ex(r,Ne,Zr,i,o,t|(Ze?128:0));if(ui)$e.push(ui);else if(o)Ze=!0;else return}return Ze?void 0:t&4?To($e,s,u):ba($e,1,s,u)}return Ex(r,Ne,i,i,o,t|8|64)}function Nx(r){var i=Da(r);if(!i.resolvedType){var t=Ua(r.objectType),o=Ua(r.indexType),s=Ld(r),u=Mc(t,o,0,r,s,og(s));i.resolvedType=u.flags&8388608&&u.objectType===t&&u.indexType===o?XT(u,r):u}return i.resolvedType}function rD(r){var i=Da(r);if(!i.resolvedType){var t=Uc(32,r.symbol);t.declaration=r,t.aliasSymbol=Ld(r),t.aliasTypeArguments=og(t.aliasSymbol),i.resolvedType=t,Iu(t)}return i.resolvedType}function Op(r){return r.flags&33554432?r.baseType:r.flags&8388608&&(r.objectType.flags&33554432||r.indexType.flags&33554432)?Mc(Op(r.objectType),Op(r.indexType)):r}function Ix(r){return!r.isDistributive&&wx(r.node.checkType)&&wx(r.node.extendsType)}function wx(r){return e.isTupleTypeNode(r)&&e.length(r.elements)===1&&!e.isOptionalTypeNode(r.elements[0])&&!e.isRestTypeNode(r.elements[0])}function iD(r,i){return Ix(r)&&Ln(i)?Co(i)[0]:i}function tD(r,i,t,o){for(var s,u,T=0;;){if(T===1e3){Wr(er,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),s=Oe;break}var q=Ix(r),fe=gn(iD(r,Op(r.checkType)),i),Ne=Rm(fe),$e=gn(iD(r,r.extendsType),i);if(fe===Je||$e===Je)return Je;var Ze=void 0;if(r.inferTypeParameters){var lr=qm(r.inferTypeParameters,void 0,0);Ne||Cf(lr.inferences,fe,$e,1536),Ze=i?pd(lr.mapper,i):lr.mapper}var yr=Ze?gn(iD(r,r.extendsType),Ze):$e;if(!Ne&&!Rm(yr)){if(!(yr.flags&3)&&(fe.flags&1&&!q||!oo(hh(fe),hh(yr)))){fe.flags&1&&!q&&(u||(u=[])).push(gn(Ua(r.node.trueType),Ze||i));var Zr=Ua(r.node.falseType);if(Zr.flags&16777216){var ui=Zr.root;if(ui.node.parent===r.node&&(!ui.isDistributive||ui.checkType===r.checkType)){r=ui;continue}if(Ri(Zr,i))continue}s=gn(Zr,i);break}if(yr.flags&3||oo(dd(fe),dd(yr))){var Ii=Ua(r.node.trueType),Fi=Ze||i;if(Ri(Ii,Fi))continue;s=gn(Ii,Fi);break}}s=bs(16777216),s.root=r,s.checkType=gn(r.checkType,i),s.extendsType=gn(r.extendsType,i),s.mapper=i,s.combinedMapper=Ze,s.aliasSymbol=t||r.aliasSymbol,s.aliasTypeArguments=t?o:x_(r.aliasTypeArguments,i);break}return u?ba(e.append(u,s)):s;function Ri(Xi,ea){if(Xi.flags&16777216&&ea){var lt=Xi.root;if(lt.outerTypeParameters){var Ia=pd(Xi.mapper,ea),fa=e.map(lt.outerTypeParameters,function(Bn){return ip(Bn,Ia)}),Dn=Kc(lt.outerTypeParameters,fa),Ra=lt.isDistributive?ip(lt.checkType,Dn):void 0;if(!Ra||Ra===lt.checkType||!(Ra.flags&1179648))return r=lt,i=Dn,t=void 0,o=void 0,lt.aliasSymbol&&T++,!0}}return!1}}function ep(r){return r.resolvedTrueType||(r.resolvedTrueType=gn(Ua(r.root.node.trueType),r.mapper))}function rp(r){return r.resolvedFalseType||(r.resolvedFalseType=gn(Ua(r.root.node.falseType),r.mapper))}function Y3(r){return r.resolvedInferredTrueType||(r.resolvedInferredTrueType=r.combinedMapper?gn(Ua(r.root.node.trueType),r.combinedMapper):ep(r))}function Ox(r){var i;return r.locals&&r.locals.forEach(function(t){t.flags&262144&&(i=e.append(i,Io(t)))}),i}function $3(r){return r.isDistributive&&(yh(r.checkType,r.node.trueType)||yh(r.checkType,r.node.falseType))}function Z3(r){var i=Da(r);if(!i.resolvedType){var t=Ua(r.checkType),o=Ld(r),s=og(o),u=Od(r,!0),T=s?u:e.filter(u,function(fe){return yh(fe,r)}),q={node:r,checkType:t,extendsType:Ua(r.extendsType),isDistributive:!!(t.flags&262144),inferTypeParameters:Ox(r),outerTypeParameters:T,instantiations:void 0,aliasSymbol:o,aliasTypeArguments:s};i.resolvedType=tD(q,void 0),T&&(q.instantiations=new e.Map,q.instantiations.set(bu(T),i.resolvedType))}return i.resolvedType}function e8(r){var i=Da(r);return i.resolvedType||(i.resolvedType=Tf(It(r.typeParameter))),i.resolvedType}function Fx(r){return e.isIdentifier(r)?[r]:e.append(Fx(r.left),r.right)}function r8(r){var i=Da(r);if(!i.resolvedType){if(r.isTypeOf&&r.typeArguments)return Wr(r,e.Diagnostics.Type_arguments_cannot_be_used_here),i.resolvedSymbol=hr,i.resolvedType=Oe;if(!e.isLiteralImportTypeNode(r))return Wr(r.argument,e.Diagnostics.String_literal_expected),i.resolvedSymbol=hr,i.resolvedType=Oe;var t=r.isTypeOf?111551:r.flags&4194304?900095:788968,o=ko(r,r.argument.literal);if(!o)return i.resolvedSymbol=hr,i.resolvedType=Oe;var s=Fs(o,!1);if(e.nodeIsMissing(r.qualifier))if(s.flags&t)i.resolvedType=Mx(r,i,s,t);else{var Ze=t===111551?e.Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;Wr(r,Ze,r.argument.literal.text),i.resolvedSymbol=hr,i.resolvedType=Oe}else{for(var u=Fx(r.qualifier),T=s,q=void 0;q=u.shift();){var fe=u.length?1920:t,Ne=Wn(Qo(T)),$e=r.isTypeOf?tn(Jt(Ne),q.escapedText):Pc(Ns(Ne),q.escapedText,fe);if(!$e)return Wr(q,e.Diagnostics.Namespace_0_has_no_exported_member_1,ts(T),e.declarationNameToString(q)),i.resolvedType=Oe;Da(q).resolvedSymbol=$e,Da(q.parent).resolvedSymbol=$e,T=$e}i.resolvedType=Mx(r,i,T,t)}}return i.resolvedType}function Mx(r,i,t,o){var s=Qo(t);return i.resolvedSymbol=s,o===111551?Jt(t):sh(r,s)}function Lx(r){var i=Da(r);if(!i.resolvedType){var t=Ld(r);if(Il(r.symbol).size===0&&!t)i.resolvedType=on;else{var o=Uc(16,r.symbol);o.aliasSymbol=t,o.aliasTypeArguments=og(t),e.isJSDocTypeLiteral(r)&&r.isArrayType&&(o=tc(o)),i.resolvedType=o}}return i.resolvedType}function Ld(r){for(var i=r.parent;e.isParenthesizedTypeNode(i)||e.isJSDocTypeExpression(i)||e.isTypeOperatorNode(i)&&i.operator===144;)i=i.parent;return e.isTypeAlias(i)?It(i):void 0}function og(r){return r?Sf(r):void 0}function aD(r){return!!(r.flags&524288)&&!Fc(r)}function nD(r){return Ef(r)||!!(r.flags&474058748)}function oD(r,i){if(!(r.flags&1048576))return r;if(e.every(r.types,nD))return e.find(r.types,Ef)||tt;var t=e.find(r.types,function(u){return!nD(u)});if(!t)return r;var o=e.find(r.types,function(u){return u!==t&&!nD(u)});if(o)return r;return s(t);function s(u){for(var T=e.createSymbolTable(),q=0,fe=_o(u);q<fe.length;q++){var Ne=fe[q];if(!(e.getDeclarationModifierFlagsFromSymbol(Ne)&24)){if(ph(Ne)){var $e=Ne.flags&65536&&!(Ne.flags&32768),Ze=16777220,lr=bo(Ze,Ne.escapedName,km(Ne)|(i?8:0));lr.type=$e?Nr:Ec(Jt(Ne),!0),lr.declarations=Ne.declarations,lr.nameType=Ma(Ne).nameType,lr.syntheticOrigin=Ne,T.set(Ne.escapedName,lr)}}}var yr=_s(u.symbol,T,e.emptyArray,e.emptyArray,Js(u));return yr.objectFlags|=262272,yr}}function Fp(r,i,t,o,s){if(r.flags&1||i.flags&1)return xe;if(r.flags&2||i.flags&2)return We;if(r.flags&131072)return i;if(i.flags&131072)return r;if(r=oD(r,s),r.flags&1048576)return Wv([r,i])?Cs(r,function(lt){return Fp(lt,i,t,o,s)}):Oe;if(i=oD(i,s),i.flags&1048576)return Wv([r,i])?Cs(i,function(lt){return Fp(r,lt,t,o,s)}):Oe;if(i.flags&473960444)return r;if(Md(r)||Md(i)){if(Ef(r))return i;if(r.flags&2097152){var u=r.types,T=u[u.length-1];if(aD(T)&&aD(i))return To(e.concatenate(u.slice(0,u.length-1),[Fp(T,i,t,o,s)]))}return To([r,i])}for(var q=e.createSymbolTable(),fe=new e.Set,Ne=r===tt?Js(i):Vy([r,i]),$e=0,Ze=_o(i);$e<Ze.length;$e++){var lr=Ze[$e];e.getDeclarationModifierFlagsFromSymbol(lr)&24?fe.add(lr.escapedName):ph(lr)&&q.set(lr.escapedName,sD(lr,s))}for(var yr=0,Zr=_o(r);yr<Zr.length;yr++){var ui=Zr[yr];if(!(fe.has(ui.escapedName)||!ph(ui)))if(q.has(ui.escapedName)){var lr=q.get(ui.escapedName),Ii=Jt(lr);if(lr.flags&16777216){var Fi=e.concatenate(ui.declarations,lr.declarations),Ri=4|ui.flags&16777216,Xi=bo(Ri,ui.escapedName);Xi.type=ba([Jt(ui),MD(Ii)],2),Xi.leftSpread=ui,Xi.rightSpread=lr,Xi.declarations=Fi,Xi.nameType=Ma(ui).nameType,q.set(ui.escapedName,Xi)}}else q.set(ui.escapedName,sD(ui,s))}var ea=_s(t,q,e.emptyArray,e.emptyArray,e.sameMap(Ne,function(lt){return i8(lt,s)}));return ea.objectFlags|=4456576|o,ea}function ph(r){var i;return!e.some(r.declarations,e.isPrivateIdentifierClassElementDeclaration)&&(!(r.flags&106496)||!(!((i=r.declarations)===null||i===void 0)&&i.some(function(t){return e.isClassLike(t.parent)})))}function sD(r,i){var t=r.flags&65536&&!(r.flags&32768);if(!t&&i===zl(r))return r;var o=4|r.flags&16777216,s=bo(o,r.escapedName,km(r)|(i?8:0));return s.type=t?Nr:Jt(r),s.declarations=r.declarations,s.nameType=Ma(r).nameType,s.syntheticOrigin=r,s}function i8(r,i){return r.isReadonly!==i?Fl(r.keyType,r.type,i,r.declaration):r}function qv(r,i,t,o){var s=bs(r);return s.symbol=t,s.value=i,s.regularType=o||s,s}function sg(r){if(r.flags&2944){if(!r.freshType){var i=qv(r.flags,r.value,r.symbol,r);i.freshType=i,r.freshType=i}return r.freshType}return r}function Vc(r){return r.flags&2944?r.regularType:r.flags&1048576?r.regularType||(r.regularType=Cs(r,Vc)):r}function Mp(r){return!!(r.flags&2944)&&r.freshType===r}function Ou(r){var i;return ft.get(r)||(ft.set(r,i=qv(128,r)),i)}function xf(r){var i;return bt.get(r)||(bt.set(r,i=qv(256,r)),i)}function cD(r){var i,t=e.pseudoBigIntToString(r);return aa.get(t)||(aa.set(t,i=qv(2048,r)),i)}function t8(r,i,t){var o,s=typeof r=="string"?"@":"#",u=i+s+r,T=1024|(typeof r=="string"?128:256);return sr.get(u)||(sr.set(u,o=qv(T,r,t)),o)}function a8(r){if(r.literal.kind===104)return Ti;var i=Da(r);return i.resolvedType||(i.resolvedType=Vc(hn(r.literal))),i.resolvedType}function n8(r){var i=bs(8192);return i.symbol=r,i.escapedName="__@".concat(i.symbol.escapedName,"@").concat(f(i.symbol)),i}function uD(r){if(e.isValidESSymbolDeclaration(r)){var i=It(r),t=Ma(i);return t.uniqueESSymbolType||(t.uniqueESSymbolType=n8(i))}return ua}function o8(r){var i=e.getThisContainer(r,!1),t=i&&i.parent;if(t&&(e.isClassLike(t)||t.kind===257)&&!e.isStatic(i)&&(!e.isConstructorDeclaration(i)||e.isNodeDescendantOf(r,i.body)))return Pn(It(t)).thisType;if(t&&e.isObjectLiteralExpression(t)&&e.isBinaryExpression(t.parent)&&e.getAssignmentDeclarationKind(t.parent)===6)return Pn(It(t.parent.left).parent).thisType;var o=r.flags&4194304?e.getHostSignatureFromJSDoc(r):void 0;return o&&e.isFunctionExpression(o)&&e.isBinaryExpression(o.parent)&&e.getAssignmentDeclarationKind(o.parent)===3?Pn(It(o.parent.left).parent).thisType:ml(i)&&e.isNodeDescendantOf(r,i.body)?Pn(It(i)).thisType:(Wr(r,e.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Oe)}function dh(r){var i=Da(r);return i.resolvedType||(i.resolvedType=o8(r)),i.resolvedType}function Rx(r){return Ua(Vv(r.type)||r.type)}function Vv(r){switch(r.kind){case 190:return Vv(r.type);case 183:if(r.elements.length===1&&(r=r.elements[0],r.kind===185||r.kind===196&&r.dotDotDotToken))return Vv(r.type);break;case 182:return r.elementType}}function s8(r){var i=Da(r);return i.resolvedType||(i.resolvedType=r.dotDotDotToken?Rx(r):Ec(Ua(r.type),!0,!!r.questionToken))}function Ua(r){return XT(Bx(r),r)}function Bx(r){switch(r.kind){case 130:case 310:case 311:return xe;case 154:return We;case 149:return ki;case 146:return Ui;case 157:return zi;case 133:return xt;case 150:return ua;case 114:return Vt;case 152:return Nr;case 104:return Ti;case 143:return St;case 147:return r.flags&131072&&!Tr?xe:gt;case 138:return Or;case 191:case 108:return dh(r);case 195:return a8(r);case 177:return Uv(r);case 176:return r.assertsModifier?Vt:xt;case 227:return Uv(r);case 180:return YT(r);case 182:case 183:return m3(r);case 184:return h3(r);case 186:return C3(r);case 187:return F3(r);case 312:return QN(r);case 314:return Ec(Ua(r.type));case 196:return s8(r);case 190:case 313:case 307:return Ua(r.type);case 185:return Rx(r);case 316:return mM(r);case 178:case 179:case 181:case 320:case 315:case 321:return Lx(r);case 192:return j3(r);case 193:return Nx(r);case 194:return rD(r);case 188:return Z3(r);case 189:return e8(r);case 197:return U3(r);case 199:return r8(r);case 79:case 160:case 205:var i=Xu(r);return i?Io(i):Oe;default:return Oe}}function gh(r,i,t){if(r&&r.length)for(var o=0;o<r.length;o++){var s=r[o],u=t(s,i);if(s!==u){var T=o===0?[]:r.slice(0,o);for(T.push(u),o++;o<r.length;o++)T.push(t(r[o],i));return T}}return r}function x_(r,i){return gh(r,i,gn)}function mh(r,i){return gh(r,i,ug)}function Jx(r,i){return gh(r,i,D8)}function Kc(r,i){return r.length===1?Rd(r[0],i?i[0]:xe):c8(r,i)}function ip(r,i){switch(i.kind){case 0:return r===i.source?i.target:r;case 1:for(var t=i.sources,o=i.targets,s=0;s<t.length;s++)if(r===t[s])return o?o[s]:xe;return r;case 2:return i.func(r);case 3:case 4:var u=ip(r,i.mapper1);return u!==r&&i.kind===3?gn(u,i.mapper2):ip(u,i.mapper2)}}function Rd(r,i){return{kind:0,source:r,target:i}}function c8(r,i){return{kind:1,sources:r,targets:i}}function _d(r){return{kind:2,func:r}}function vh(r,i,t){return{kind:r,mapper1:i,mapper2:t}}function jx(r){return Kc(r,void 0)}function u8(r,i){return _d(function(t){return e.findIndex(r.inferences,function(o){return o.typeParameter===t})>=i?We:t})}function pd(r,i){return r?vh(3,r,i):i}function l8(r,i){return r?vh(4,r,i):i}function cg(r,i,t){return t?vh(4,Rd(r,i),t):Rd(r,i)}function Jm(r,i,t){return r?vh(4,r,Rd(i,t)):Rd(i,t)}function f8(r){return r.constraint===We?r:r.restrictiveInstantiation||(r.restrictiveInstantiation=vu(r.symbol),r.restrictiveInstantiation.constraint=We,r.restrictiveInstantiation)}function Ux(r){var i=vu(r.symbol);return i.target=r,i}function _8(r,i){return tg(r.kind,r.parameterName,r.parameterIndex,gn(r.type,i))}function ug(r,i,t){var o;if(r.typeParameters&&!t){o=e.map(r.typeParameters,Ux),i=pd(Kc(r.typeParameters,o),i);for(var s=0,u=o;s<u.length;s++){var T=u[s];T.mapper=i}}var q=Pu(r.declaration,o,r.thisParameter&&lD(r.thisParameter,i),gh(r.parameters,i,lD),void 0,void 0,r.minArgumentCount,r.flags&39);return q.target=r,q.mapper=i,q}function lD(r,i){var t=Ma(r);if(t.type&&!Vm(t.type))return r;e.getCheckFlags(r)&1&&(r=t.target,i=pd(t.mapper,i));var o=bo(r.flags,r.escapedName,1|e.getCheckFlags(r)&53256);return o.declarations=r.declarations,o.parent=r.parent,o.target=r,o.mapper=i,r.valueDeclaration&&(o.valueDeclaration=r.valueDeclaration),t.nameType&&(o.nameType=t.nameType),o}function p8(r,i,t,o){var s=r.objectFlags&4?r.node:r.symbol.declarations[0],u=Da(s),T=r.objectFlags&4?u.resolvedType:r.objectFlags&64?r.target:r,q=u.outerTypeParameters;if(!q){var fe=Od(s,!0);if(ml(s)){var Ne=ih(s);fe=e.addRange(fe,Ne)}q=fe||e.emptyArray;var $e=r.objectFlags&4?[s]:r.symbol.declarations;q=(T.objectFlags&4||T.symbol.flags&8192||T.symbol.flags&2048)&&!T.aliasTypeArguments?e.filter(q,function(Ri){return e.some($e,function(Xi){return yh(Ri,Xi)})}):q,u.outerTypeParameters=q}if(q.length){var Ze=pd(r.mapper,i),lr=e.map(q,function(Ri){return ip(Ri,Ze)}),yr=t||r.aliasSymbol,Zr=t?o:x_(r.aliasTypeArguments,i),ui=bu(lr)+ng(yr,Zr);T.instantiations||(T.instantiations=new e.Map,T.instantiations.set(bu(q)+ng(T.aliasSymbol,T.aliasTypeArguments),T));var Ii=T.instantiations.get(ui);if(!Ii){var Fi=Kc(q,lr);Ii=T.objectFlags&4?U1(r.target,r.node,Fi,yr,Zr):T.objectFlags&32?zx(T,Fi,yr,Zr):pD(T,Fi,yr,Zr),T.instantiations.set(ui,Ii)}return Ii}return r}function d8(r){return!(r.parent.kind===177&&r.parent.typeArguments&&r===r.parent.typeName||r.parent.kind===199&&r.parent.typeArguments&&r===r.parent.qualifier)}function yh(r,i){if(r.symbol&&r.symbol.declarations&&r.symbol.declarations.length===1){for(var t=r.symbol.declarations[0].parent,o=i;o!==t;o=o.parent)if(!o||o.kind===234||o.kind===188&&e.forEachChild(o.extendsType,s))return!0;return s(i)}return!0;function s(u){switch(u.kind){case 191:return!!r.isThisType;case 79:return!r.isThisType&&e.isPartOfTypeNode(u)&&d8(u)&&Bx(u)===r;case 180:return!0;case 168:case 167:return!u.type&&!!u.body||e.some(u.typeParameters,s)||e.some(u.parameters,s)||!!u.type&&s(u.type)}return!!e.forEachChild(u,s)}}function fD(r){var i=Iu(r);if(i.flags&4194304){var t=Op(i.type);if(t.flags&262144)return t}}function zx(r,i,t,o){var s=fD(r);if(s){var u=gn(s,i);if(s!==u)return jE(Lt(u),function(T){if(T.flags&61603843&&T!==Je&&!ra(T)){if(!r.declaration.nameType){var q=void 0;if(_c(T)||T.flags&1&&vf(s,4)<0&&(q=qc(s))&&kf(q,e.or(_c,Ln)))return m8(T,r,cg(s,T,i));if(em(T))return g8(T,r,s,i);if(Ln(T))return v8(T,r,cg(s,T,i))}return pD(r,cg(s,T,i))}return T},t,o)}return gn(Iu(r),i)===Je?Je:pD(r,i,t,o)}function _D(r,i){return i&1?!0:i&2?!1:r}function g8(r,i,t,o){var s=r.target.elementFlags,u=e.map(Co(r),function(q,fe){var Ne=s[fe]&8?q:s[fe]&4?tc(q):Ml([q],[s[fe]]);return zx(i,cg(t,Ne,o))}),T=_D(r.target.readonly,ll(i));return Ml(u,e.map(u,function(q){return 8}),T)}function m8(r,i,t){var o=Wx(i,Ui,!0,t);return ra(o)?Oe:tc(o,_D($g(r),ll(i)))}function v8(r,i,t){var o=r.target.elementFlags,s=e.map(Co(r),function(fe,Ne){return Wx(i,Ou(""+Ne),!!(o[Ne]&2),t)}),u=ll(i),T=u&4?e.map(o,function(fe){return fe&1?2:fe}):u&8?e.map(o,function(fe){return fe&2?1:fe}):o,q=_D(r.target.readonly,u);return e.contains(s,Oe)?Oe:Ml(s,T,q,r.target.labeledElementDeclarations)}function Wx(r,i,t,o){var s=Jm(o,Nu(r),i),u=gn(wl(r.target||r),s),T=ll(r);return ur&&T&4&&!ls(u,49152)?$f(u,!0):ur&&T&8&&t?$s(u,524288):u}function pD(r,i,t,o){var s=Uc(r.objectFlags|64,r.symbol);if(r.objectFlags&32){s.declaration=r.declaration;var u=Nu(r),T=Ux(u);s.typeParameter=T,i=pd(Rd(u,T),i),T.mapper=i}return s.target=r,s.mapper=i,s.aliasSymbol=t||r.aliasSymbol,s.aliasTypeArguments=t?o:x_(r.aliasTypeArguments,i),s}function dD(r,i,t,o){var s=r.root;if(s.outerTypeParameters){var u=e.map(s.outerTypeParameters,function(Ze){return ip(Ze,i)}),T=bu(u)+ng(t,o),q=s.instantiations.get(T);if(!q){var fe=Kc(s.outerTypeParameters,u),Ne=s.checkType,$e=s.isDistributive?ip(Ne,fe):void 0;q=$e&&Ne!==$e&&$e.flags&1179648?jE($e,function(Ze){return tD(s,cg(Ne,Ze,fe))},t,o):tD(s,fe,t,o),s.instantiations.set(T,q)}return q}return r}function gn(r,i){return r&&i?qx(r,i,void 0,void 0):r}function qx(r,i,t,o){if(!Vm(r))return r;if(me===100||gr>=5e6)return e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","instantiateType_DepthLimit",{typeId:r.id,instantiationDepth:me,instantiationCount:gr}),Wr(er,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),Oe;ar++,gr++,me++;var s=y8(r,i,t,o);return me--,s}function y8(r,i,t,o){var s=r.flags;if(s&262144)return ip(r,i);if(s&524288){var u=r.objectFlags;if(u&52){if(u&4&&!r.node){var T=r.resolvedTypeArguments,q=x_(T,i);return q!==T?G1(r.target,q):r}return u&1024?h8(r,i):p8(r,i,t,o)}return r}if(s&3145728){var fe=r.flags&1048576?r.origin:void 0,Ne=fe&&fe.flags&3145728?fe.types:r.types,$e=x_(Ne,i);if($e===Ne&&t===r.aliasSymbol)return r;var Ze=t||r.aliasSymbol,lr=t?o:x_(r.aliasTypeArguments,i);return s&2097152||fe&&fe.flags&2097152?To($e,Ze,lr):ba($e,1,Ze,lr)}if(s&4194304)return Ll(gn(r.type,i));if(s&134217728)return Xg(r.texts,x_(r.types,i));if(s&268435456)return fh(r.symbol,gn(r.type,i));if(s&8388608){var Ze=t||r.aliasSymbol,lr=t?o:x_(r.aliasTypeArguments,i);return Mc(gn(r.objectType,i),gn(r.indexType,i),r.accessFlags,void 0,Ze,lr)}if(s&16777216)return dD(r,pd(r.mapper,i),t,o);if(s&33554432){var yr=gn(r.baseType,i);if(yr.flags&8650752)return KT(yr,gn(r.substitute,i));var Zr=gn(r.substitute,i);return Zr.flags&3||oo(dd(yr),dd(Zr))?yr:Zr}return r}function h8(r,i){var t=gn(r.mappedType,i);if(!(e.getObjectFlags(t)&32))return r;var o=gn(r.constraintType,i);if(!(o.flags&4194304))return r;var s=hE(gn(r.source,i),t,o);return s||r}function hh(r){return r.flags&262143?r:r.permissiveInstantiation||(r.permissiveInstantiation=gn(r,Ct))}function dd(r){return r.flags&262143?r:(r.restrictiveInstantiation||(r.restrictiveInstantiation=gn(r,Qr),r.restrictiveInstantiation.restrictiveInstantiation=r.restrictiveInstantiation),r.restrictiveInstantiation)}function D8(r,i){return Fl(r.keyType,gn(r.type,i),r.isReadonly,r.declaration)}function _l(r){switch(e.Debug.assert(r.kind!==168||e.isObjectLiteralMethod(r)),r.kind){case 212:case 213:case 168:case 255:return Vx(r);case 204:return e.some(r.properties,_l);case 203:return e.some(r.elements,_l);case 221:return _l(r.whenTrue)||_l(r.whenFalse);case 220:return(r.operatorToken.kind===56||r.operatorToken.kind===60)&&(_l(r.left)||_l(r.right));case 294:return _l(r.initializer);case 211:return _l(r.expression);case 285:return e.some(r.properties,_l)||e.isJsxOpeningElement(r.parent)&&e.some(r.parent.parent.children,_l);case 284:{var i=r.initializer;return!!i&&_l(i)}case 287:{var t=r.expression;return!!t&&_l(t)}}return!1}function Vx(r){return(!e.isFunctionDeclaration(r)||e.isInJSFile(r)&&!!Au(r))&&(e.hasContextSensitiveParameters(r)||b8(r))}function b8(r){return!r.typeParameters&&!e.getEffectiveReturnTypeNode(r)&&!!r.body&&r.body.kind!==234&&_l(r.body)}function gD(r){return(e.isInJSFile(r)&&e.isFunctionDeclaration(r)||e.isFunctionExpressionOrArrowFunction(r)||e.isObjectLiteralMethod(r))&&Vx(r)}function Kx(r){if(r.flags&524288){var i=Vu(r);if(i.constructSignatures.length||i.callSignatures.length){var t=Uc(16,r.symbol);return t.members=i.members,t.properties=i.properties,t.callSignatures=e.emptyArray,t.constructSignatures=e.emptyArray,t.indexInfos=e.emptyArray,t}}else if(r.flags&2097152)return To(e.map(r.types,Kx));return r}function Qf(r,i){return Yf(r,i,nt)}function jm(r,i){return Yf(r,i,nt)?-1:0}function mD(r,i){return Yf(r,i,Sr)?-1:0}function S8(r,i){return Yf(r,i,Te)?-1:0}function E_(r,i){return Yf(r,i,Te)}function oo(r,i){return Yf(r,i,Sr)}function lg(r,i){return r.flags&1048576?e.every(r.types,function(t){return lg(t,i)}):i.flags&1048576?e.some(i.types,function(t){return lg(r,t)}):r.flags&58982400?lg(Cc(r)||We,i):i===Ht?!!(r.flags&67633152):i===Ka?!!(r.flags&524288)&&QD(r):nd(r,bf(i))||_c(i)&&!$g(i)&&lg(r,Ee)}function Yg(r,i){return Yf(r,i,Di)}function Dh(r,i){return Yg(r,i)||Yg(i,r)}function Gc(r,i,t,o,s,u){return pl(r,i,Sr,t,o,s,u)}function tp(r,i,t,o,s,u){return vD(r,i,Sr,t,o,s,u,void 0)}function vD(r,i,t,o,s,u,T,q){return Yf(r,i,t)?!0:!o||!Kv(s,r,i,t,u,T,q)?pl(r,i,t,o,u,T,q):!1}function Gx(r){return!!(r.flags&16777216||r.flags&2097152&&e.some(r.types,Gx))}function Kv(r,i,t,o,s,u,T){if(!r||Gx(t))return!1;if(!pl(i,t,o,void 0)&&T8(r,i,t,o,s,u,T))return!0;switch(r.kind){case 287:case 211:return Kv(r.expression,i,t,o,s,u,T);case 220:switch(r.operatorToken.kind){case 63:case 27:return Kv(r.right,i,t,o,s,u,T)}break;case 204:return w8(r,i,t,o,u,T);case 203:return N8(r,i,t,o,u,T);case 285:return P8(r,i,t,o,u,T);case 213:return x8(r,i,t,o,u,T)}return!1}function T8(r,i,t,o,s,u,T){for(var q=za(i,0),fe=za(i,1),Ne=0,$e=[fe,q];Ne<$e.length;Ne++){var Ze=$e[Ne];if(e.some(Ze,function(Zr){var ui=So(Zr);return!(ui.flags&131073)&&pl(ui,t,o,void 0)})){var lr=T||{};Gc(i,t,r,s,u,lr);var yr=lr.errors[lr.errors.length-1];return e.addRelatedInfo(yr,e.createDiagnosticForNode(r,Ze===fe?e.Diagnostics.Did_you_mean_to_use_new_with_this_expression:e.Diagnostics.Did_you_mean_to_call_this_expression)),!0}}return!1}function x8(r,i,t,o,s,u){if(e.isBlock(r.body)||e.some(r.parameters,e.hasType))return!1;var T=jd(i);if(!T)return!1;var q=za(t,0);if(!e.length(q))return!1;var fe=r.body,Ne=So(T),$e=ba(e.map(q,So));if(!pl(Ne,$e,o,void 0)){var Ze=fe&&Kv(fe,Ne,$e,o,void 0,s,u);if(Ze)return Ze;var lr=u||{};if(pl(Ne,$e,o,fe,void 0,s,lr),lr.errors)return t.symbol&&e.length(t.symbol.declarations)&&e.addRelatedInfo(lr.errors[lr.errors.length-1],e.createDiagnosticForNode(t.symbol.declarations[0],e.Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature)),(e.getFunctionFlags(r)&2)===0&&!ai(Ne,"then")&&pl(dy(Ne),$e,o,void 0)&&e.addRelatedInfo(lr.errors[lr.errors.length-1],e.createDiagnosticForNode(r,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function E8(r,i,t){var o=Z_(i,t);if(o)return o;if(i.flags&1048576){var s=rE(r,i);if(s)return Z_(s,t)}}function C8(r,i){r.contextualType=i;try{return fm(r,1,i)}finally{r.contextualType=void 0}}function Um(r,i,t,o,s,u){for(var T=!1,q=r.next();!q.done;q=r.next()){var fe=q.value,Ne=fe.errorNode,$e=fe.innerExpression,Ze=fe.nameType,lr=fe.errorMessage,yr=E8(i,t,Ze);if(!(!yr||yr.flags&8388608)){var Zr=Z_(i,Ze);if(!!Zr){var ui=$1(Ze,void 0);if(!pl(Zr,yr,o,void 0)){var Ii=$e&&Kv($e,Zr,yr,o,void 0,s,u);if(T=!0,!Ii){var Fi=u||{},Ri=$e?C8($e,Zr):Zr;if(Ce&&TD(Ri,yr)){var Xi=e.createDiagnosticForNode(Ne,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,ht(Ri),ht(yr));ya.add(Xi),Fi.errors=[Xi]}else{var ea=!!(ui&&(tn(t,ui)||hr).flags&16777216),lt=!!(ui&&(tn(i,ui)||hr).flags&16777216);yr=_g(yr,ea),Zr=_g(Zr,ea&&lt);var Ia=pl(Ri,yr,o,Ne,lr,s,Fi);Ia&&Ri!==Zr&&pl(Zr,yr,o,Ne,lr,s,Fi)}if(Fi.errors){var fa=Fi.errors[Fi.errors.length-1],Dn=ul(Ze)?Nl(Ze):void 0,Ra=Dn!==void 0?tn(t,Dn):void 0,Bn=!1;if(!Ra){var Jn=ig(t,Ze);Jn&&Jn.declaration&&!e.getSourceFileOfNode(Jn.declaration).hasNoDefaultLib&&(Bn=!0,e.addRelatedInfo(fa,e.createDiagnosticForNode(Jn.declaration,e.Diagnostics.The_expected_type_comes_from_this_index_signature)))}if(!Bn&&(Ra&&e.length(Ra.declarations)||t.symbol&&e.length(t.symbol.declarations))){var On=Ra&&e.length(Ra.declarations)?Ra.declarations[0]:t.symbol.declarations[0];e.getSourceFileOfNode(On).hasNoDefaultLib||e.addRelatedInfo(fa,e.createDiagnosticForNode(On,e.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,Dn&&!(Ze.flags&8192)?e.unescapeLeadingUnderscores(Dn):ht(Ze),ht(t)))}}}}}}}return T}function k8(r){var i,t,o;return wr(this,function(s){switch(s.label){case 0:if(!e.length(r.properties))return[2];i=0,t=r.properties,s.label=1;case 1:return i<t.length?(o=t[i],e.isJsxSpreadAttribute(o)||gb(e.idText(o.name))?[3,3]:[4,{errorNode:o.name,innerExpression:o.initializer,nameType:Ou(e.idText(o.name))}]):[3,4];case 2:s.sent(),s.label=3;case 3:return i++,[3,1];case 4:return[2]}})}function A8(r,i){var t,o,s,u,T;return wr(this,function(q){switch(q.label){case 0:if(!e.length(r.children))return[2];t=0,o=0,q.label=1;case 1:return o<r.children.length?(s=r.children[o],u=xf(o-t),T=Hx(s,u,i),T?[4,T]:[3,3]):[3,5];case 2:return q.sent(),[3,4];case 3:t++,q.label=4;case 4:return o++,[3,1];case 5:return[2]}})}function Hx(r,i,t){switch(r.kind){case 287:return{errorNode:r,innerExpression:r.expression,nameType:i};case 11:if(r.containsOnlyTriviaWhiteSpaces)break;return{errorNode:r,innerExpression:void 0,nameType:i,errorMessage:t()};case 277:case 278:case 281:return{errorNode:r,innerExpression:r,nameType:i};default:return e.Debug.assertNever(r,"Found invalid jsx child")}}function P8(r,i,t,o,s,u){var T=Um(k8(r),i,t,o,s,u),q;if(e.isJsxOpeningElement(r.parent)&&e.isJsxElement(r.parent.parent)){var fe=r.parent.parent,Ne=Qh(yg(r)),$e=Ne===void 0?"children":e.unescapeLeadingUnderscores(Ne),Ze=Ou($e),lr=Mc(t,Ze),yr=e.getSemanticJsxChildren(fe.children);if(!e.length(yr))return T;var Zr=e.length(yr)>1,ui=pc(lr,sE),Ii=pc(lr,function(fa){return!sE(fa)});if(Zr){if(ui!==St){var Fi=Ml(Xh(fe,0)),Ri=A8(fe,Ia);T=Um(Ri,Fi,ui,o,s,u)||T}else if(!Yf(Mc(i,Ze),lr,o)){T=!0;var Xi=Wr(fe.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,$e,ht(lr));u&&u.skipLogging&&(u.errors||(u.errors=[])).push(Xi)}}else if(Ii!==St){var ea=yr[0],lt=Hx(ea,Ze,Ia);lt&&(T=Um(function(){return wr(this,function(fa){switch(fa.label){case 0:return[4,lt];case 1:return fa.sent(),[2]}})}(),i,t,o,s,u)||T)}else if(!Yf(Mc(i,Ze),lr,o)){T=!0;var Xi=Wr(fe.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,$e,ht(lr));u&&u.skipLogging&&(u.errors||(u.errors=[])).push(Xi)}}return T;function Ia(){if(!q){var fa=e.getTextOfNode(r.parent.tagName),Dn=Qh(yg(r)),Ra=Dn===void 0?"children":e.unescapeLeadingUnderscores(Dn),Bn=Mc(t,Ou(Ra)),Jn=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;q=Ve(Ve({},Jn),{key:"!!ALREADY FORMATTED!!",message:e.formatMessage(void 0,Jn,fa,Ra,ht(Bn))})}return q}}function Xx(r,i){var t,o,s,u;return wr(this,function(T){switch(T.label){case 0:if(t=e.length(r.elements),!t)return[2];o=0,T.label=1;case 1:return o<t?Zg(i)&&!tn(i,""+o)?[3,3]:(s=r.elements[o],e.isOmittedExpression(s)?[3,3]:(u=xf(o),[4,{errorNode:s,innerExpression:s,nameType:u}])):[3,4];case 2:T.sent(),T.label=3;case 3:return o++,[3,1];case 4:return[2]}})}function N8(r,i,t,o,s,u){if(t.flags&131068)return!1;if(Zg(i))return Um(Xx(r,t),i,t,o,s,u);var T=r.contextualType;r.contextualType=t;try{var q=oC(r,1,!0);return r.contextualType=T,Zg(q)?Um(Xx(r,t),q,t,o,s,u):!1}finally{r.contextualType=T}}function I8(r){var i,t,o,s,u;return wr(this,function(T){switch(T.label){case 0:if(!e.length(r.properties))return[2];i=0,t=r.properties,T.label=1;case 1:if(!(i<t.length))return[3,8];if(o=t[i],e.isSpreadAssignment(o))return[3,7];if(s=Hg(It(o),8576),!s||s.flags&131072)return[3,7];switch(u=o.kind,u){case 172:return[3,2];case 171:return[3,2];case 168:return[3,2];case 295:return[3,2];case 294:return[3,4]}return[3,6];case 2:return[4,{errorNode:o.name,innerExpression:void 0,nameType:s}];case 3:return T.sent(),[3,7];case 4:return[4,{errorNode:o.name,innerExpression:o.initializer,nameType:s,errorMessage:e.isComputedNonLiteralName(o.name)?e.Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0}];case 5:return T.sent(),[3,7];case 6:e.Debug.assertNever(o),T.label=7;case 7:return i++,[3,1];case 8:return[2]}})}function w8(r,i,t,o,s,u){return t.flags&131068?!1:Um(I8(r),i,t,o,s,u)}function Qx(r,i,t,o,s){return pl(r,i,Di,t,o,s)}function O8(r,i,t){return yD(r,i,t?4:0,!1,void 0,void 0,mD,void 0)!==0}function F8(r){return!r.typeParameters&&(!r.thisParameter||At($m(r.thisParameter)))&&r.parameters.length===1&&U(r)&&($m(r.parameters[0])===Ki||At($m(r.parameters[0])))&&At(So(r))}function yD(r,i,t,o,s,u,T,q){if(r===i||F8(i))return-1;var fe=Lc(i),Ne=!Ul(i)&&(t&8?Ul(r)||Lc(r)>fe:jl(r)>fe);if(Ne)return 0;r.typeParameters&&r.typeParameters!==i.typeParameters&&(i=WN(i),r=BC(r,i,void 0,T));var $e=Lc(r),Ze=ev(r),lr=ev(i);if((Ze||lr)&&gn(Ze||lr,q),Ze&&lr&&$e!==fe)return 0;var yr=i.declaration?i.declaration.kind:0,Zr=!(t&3)&&Ir&&yr!==168&&yr!==167&&yr!==170,ui=-1,Ii=ld(r);if(Ii&&Ii!==Vt){var Fi=ld(i);if(Fi){var Ri=!Zr&&T(Ii,Fi,!1)||T(Fi,Ii,o);if(!Ri)return o&&s(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;ui&=Ri}}for(var Xi=Ze||lr?Math.min($e,fe):Math.max($e,fe),ea=Ze||lr?Xi-1:-1,lt=0;lt<Xi;lt++){var Ia=lt===ea?um(r,lt):hd(r,lt),fa=lt===ea?um(i,lt):hd(i,lt);if(Ia&&fa){var Dn=t&3?void 0:jd(C_(Ia)),Ra=t&3?void 0:jd(C_(fa)),Bn=Dn&&Ra&&!wu(Dn)&&!wu(Ra)&&(Fu(Ia)&98304)===(Fu(fa)&98304),Ri=Bn?yD(Ra,Dn,t&8|(Zr?2:1),o,s,u,T,q):!(t&3)&&!Zr&&T(Ia,fa,!1)||T(fa,Ia,o);if(Ri&&t&8&&lt>=jl(r)&&lt<jl(i)&&T(Ia,fa,!1)&&(Ri=0),!Ri)return o&&s(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,e.unescapeLeadingUnderscores(cm(r,lt)),e.unescapeLeadingUnderscores(cm(i,lt))),0;ui&=Ri}}if(!(t&4)){var Jn=R1(i)?xe:i.declaration&&ml(i.declaration)?Pn(Wn(i.declaration.symbol)):So(i);if(Jn===Vt)return ui;var On=R1(r)?xe:r.declaration&&ml(r.declaration)?Pn(Wn(r.declaration.symbol)):So(r),Ao=wu(i);if(Ao){var $i=wu(r);if($i)ui&=M8($i,Ao,o,s,T);else if(e.isIdentifierTypePredicate(Ao))return o&&s(e.Diagnostics.Signature_0_must_be_a_type_predicate,kl(r)),0}else ui&=t&1&&T(Jn,On,!1)||T(On,Jn,o),!ui&&o&&u&&u(On,Jn)}return ui}function M8(r,i,t,o,s){if(r.kind!==i.kind)return t&&(o(e.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),o(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Al(r),Al(i))),0;if((r.kind===1||r.kind===3)&&r.parameterIndex!==i.parameterIndex)return t&&(o(e.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,r.parameterName,i.parameterName),o(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Al(r),Al(i))),0;var u=r.type===i.type?-1:r.type&&i.type?s(r.type,i.type,t):0;return u===0&&t&&o(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Al(r),Al(i)),u}function L8(r,i){var t=wm(r),o=wm(i),s=So(t),u=So(o);return u===Vt||Yf(u,s,Sr)||Yf(s,u,Sr)?O8(t,o,!0):!1}function hD(r){return r!==bn&&r.properties.length===0&&r.callSignatures.length===0&&r.constructSignatures.length===0&&r.indexInfos.length===0}function Ef(r){return r.flags&524288?!Fc(r)&&hD(Vu(r)):r.flags&67108864?!0:r.flags&1048576?e.some(r.types,Ef):r.flags&2097152?e.every(r.types,Ef):!1}function Yx(r){return!!(e.getObjectFlags(r)&16&&(r.members&&hD(r)||r.symbol&&r.symbol.flags&2048&&Il(r.symbol).size===0))}function $x(r){return r.flags&524288&&!Fc(r)&&_o(r).length===0&&Js(r).length===1&&!!kc(r,ki)||r.flags&3145728&&e.every(r.types,$x)||!1}function DD(r,i,t){if(r===i)return!0;var o=f(r)+","+f(i),s=_a.get(o);if(s!==void 0&&!(!(s&4)&&s&2&&t))return!!(s&1);if(r.escapedName!==i.escapedName||!(r.flags&256)||!(i.flags&256))return _a.set(o,6),!1;for(var u=Jt(i),T=0,q=_o(Jt(r));T<q.length;T++){var fe=q[T];if(fe.flags&8){var Ne=tn(u,fe.escapedName);if(!Ne||!(Ne.flags&8))return t?(t(e.Diagnostics.Property_0_is_missing_in_type_1,e.symbolName(fe),ht(Io(i),void 0,64)),_a.set(o,6)):_a.set(o,2),!1}}return _a.set(o,1),!0}function Gv(r,i,t,o){var s=r.flags,u=i.flags;return u&3||s&131072||r===Je?!0:u&131072?!1:!!(s&402653316&&u&4||s&128&&s&1024&&u&128&&!(u&1024)&&r.value===i.value||s&296&&u&8||s&256&&s&1024&&u&256&&!(u&1024)&&r.value===i.value||s&2112&&u&64||s&528&&u&16||s&12288&&u&4096||s&32&&u&32&&DD(r.symbol,i.symbol,o)||s&1024&&u&1024&&(s&1048576&&u&1048576&&DD(r.symbol,i.symbol,o)||s&2944&&u&2944&&r.value===i.value&&DD(Rs(r.symbol),Rs(i.symbol),o))||s&32768&&(!ur||u&49152)||s&65536&&(!ur||u&65536)||s&524288&&u&67108864||(t===Sr||t===Di)&&(s&1||s&264&&!(s&1024)&&(u&32||t===Sr&&u&256&&u&1024)))}function Yf(r,i,t){if(Mp(r)&&(r=r.regularType),Mp(i)&&(i=i.regularType),r===i)return!0;if(t!==nt){if(t===Di&&!(i.flags&131072)&&Gv(i,r,t)||Gv(r,i,t))return!0}else{if(r.flags!==i.flags)return!1;if(r.flags&67358815)return!0}if(r.flags&524288&&i.flags&524288){var o=t.get(CD(r,i,0,t,!1));if(o!==void 0)return!!(o&1)}return r.flags&469499904||i.flags&469499904?pl(r,i,t,void 0):!1}function Zx(r,i){return e.getObjectFlags(r)&2048&&gb(i.escapedName)}function bD(r,i){for(;;){var t=Mp(r)?r.regularType:e.getObjectFlags(r)&4&&r.node?Hf(r.target,Co(r)):r.flags&3145728?Lt(r):r.flags&33554432?i?r.baseType:r.substitute:r.flags&25165824?Xf(r,i):r;if(t=PD(t)||t,t===r)break;r=t}return r}function pl(r,i,t,o,s,u,T){var q,fe,Ne,$e,Ze,lr=0,yr=0,Zr=0,ui=0,Ii=!1,Fi=0,Ri,Xi,ea=!1;e.Debug.assert(t!==nt||!o,"no error reporting in identity checking");var lt=ia(r,i,3,!!o,s);if(Xi&&Vi(),Ii){e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","checkTypeRelatedTo_DepthLimit",{sourceId:r.id,targetId:i.id,depth:yr,targetDepth:Zr});var Ia=Wr(o||er,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,ht(r),ht(i));T&&(T.errors||(T.errors=[])).push(Ia)}else if(q){if(u){var fa=u();fa&&(e.concatenateDiagnosticMessageChains(fa,q),q=fa)}var Dn=void 0;if(s&&o&&!lt&&r.symbol){var Ra=Ma(r.symbol);if(Ra.originatingImport&&!e.isImportCall(Ra.originatingImport)){var Bn=pl(Jt(Ra.target),i,t,void 0);if(Bn){var Jn=e.createDiagnosticForNode(Ra.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);Dn=e.append(Dn,Jn)}}}var Ia=e.createDiagnosticForNodeFromMessageChain(o,q,Dn);fe&&e.addRelatedInfo.apply(void 0,qe([Ia],fe,!1)),T&&(T.errors||(T.errors=[])).push(Ia),(!T||!T.skipLogging)&&ya.add(Ia)}return o&&T&&T.skipLogging&&lt===0&&e.Debug.assert(!!T.errors,"missed opportunity to interact with error."),lt!==0;function On(oi){q=oi.errorInfo,Ri=oi.lastSkippedInfo,Xi=oi.incompatibleStack,Fi=oi.overrideNextErrorInfo,fe=oi.relatedInfo}function Ao(){return{errorInfo:q,lastSkippedInfo:Ri,incompatibleStack:Xi==null?void 0:Xi.slice(),overrideNextErrorInfo:Fi,relatedInfo:fe==null?void 0:fe.slice()}}function $i(oi,yi,Bi,ct,at){Fi++,Ri=void 0,(Xi||(Xi=[])).push([oi,yi,Bi,ct,at])}function Vi(){var oi=Xi||[];Xi=void 0;var yi=Ri;if(Ri=void 0,oi.length===1){Ot.apply(void 0,oi[0]),yi&&Qt.apply(void 0,qe([void 0],yi,!1));return}for(var Bi="",ct=[];oi.length;){var at=oi.pop(),Gt=at[0],Wt=at.slice(1);switch(Gt.code){case e.Diagnostics.Types_of_property_0_are_incompatible.code:{Bi.indexOf("new ")===0&&(Bi="(".concat(Bi,")"));var Et=""+Wt[0];Bi.length===0?Bi="".concat(Et):e.isIdentifierText(Et,e.getEmitScriptTarget(ye))?Bi="".concat(Bi,".").concat(Et):Et[0]==="["&&Et[Et.length-1]==="]"?Bi="".concat(Bi).concat(Et):Bi="".concat(Bi,"[").concat(Et,"]");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(Bi.length===0){var wa=Gt;Gt.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?wa=e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible:Gt.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(wa=e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible),ct.unshift([wa,Wt[0],Wt[1]])}else{var $a=Gt.code===e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code||Gt.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",jn=Gt.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||Gt.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";Bi="".concat($a).concat(Bi,"(").concat(jn,")")}break}case e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{ct.unshift([e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Wt[0],Wt[1]]);break}case e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{ct.unshift([e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Wt[0],Wt[1],Wt[2]]);break}default:return e.Debug.fail("Unhandled Diagnostic: ".concat(Gt.code))}}Bi?Ot(Bi[Bi.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,Bi):ct.shift();for(var Fn=0,Yn=ct;Fn<Yn.length;Fn++){var Ss=Yn[Fn],Gt=Ss[0],Wt=Ss.slice(1),ys=Gt.elidedInCompatabilityPyramid;Gt.elidedInCompatabilityPyramid=!1,Ot.apply(void 0,qe([Gt],Wt,!1)),Gt.elidedInCompatabilityPyramid=ys}yi&&Qt.apply(void 0,qe([void 0],yi,!1))}function Ot(oi,yi,Bi,ct,at){e.Debug.assert(!!o),Xi&&Vi(),!oi.elidedInCompatabilityPyramid&&(q=e.chainDiagnosticMessages(q,oi,yi,Bi,ct,at))}function Wa(oi){e.Debug.assert(!!q),fe?fe.push(oi):fe=[oi]}function Qt(oi,yi,Bi){Xi&&Vi();var ct=__(yi,Bi),at=ct[0],Gt=ct[1],Wt=yi,Et=at;if(fg(yi)&&!SD(Bi)&&(Wt=Bl(yi),e.Debug.assert(!oo(Wt,Bi),"generalized source shouldn't be assignable"),Et=Yl(Wt)),Bi.flags&262144){var wa=Cc(Bi),$a=void 0;wa&&(oo(Wt,wa)||($a=oo(yi,wa)))?Ot(e.Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,$a?at:Et,Gt,ht(wa)):(q=void 0,Ot(e.Diagnostics._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,Gt,Et))}if(oi)oi===e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&Ce&&eE(yi,Bi).length&&(oi=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(t===Di)oi=e.Diagnostics.Type_0_is_not_comparable_to_type_1;else if(at===Gt)oi=e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(Ce&&eE(yi,Bi).length)oi=e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(yi.flags&128&&Bi.flags&1048576){var jn=I5(yi,Bi);if(jn){Ot(e.Diagnostics.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,Et,Gt,ht(jn));return}}oi=e.Diagnostics.Type_0_is_not_assignable_to_type_1}Ot(oi,Et,Gt)}function Qa(oi,yi){var Bi=ol(oi.symbol)?ht(oi,oi.symbol.valueDeclaration):ht(oi),ct=ol(yi.symbol)?ht(yi,yi.symbol.valueDeclaration):ht(yi);(Re===oi&&ki===yi||nr===oi&&Ui===yi||Gr===oi&&xt===yi||ax(!1)===oi&&ua===yi)&&Ot(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,ct,Bi)}function En(oi,yi,Bi){return Ln(oi)?oi.target.readonly&&Th(yi)?(Bi&&Ot(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,ht(oi),ht(yi)),!1):Ln(yi)||_c(yi):$g(oi)&&Th(yi)?(Bi&&Ot(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,ht(oi),ht(yi)),!1):Ln(yi)?_c(oi):!0}function Gn(oi,yi,Bi){return ia(oi,yi,3,Bi)}function ia(oi,yi,Bi,ct,at,Gt){if(Bi===void 0&&(Bi=3),ct===void 0&&(ct=!1),Gt===void 0&&(Gt=0),oi.flags&524288&&yi.flags&131068)return Gv(oi,yi,t,ct?Ot:void 0)?-1:(ct&&Xn(oi,yi,oi,yi,at),0);var Wt=bD(oi,!1),Et=bD(yi,!0);if(Wt===Et)return-1;if(t===nt)return Wt.flags!==Et.flags?0:Wt.flags&67358815?-1:(ii(Wt,Et),it(Wt,Et,!1,0,Bi));if(Wt.flags&262144&&b_(Wt)===Et)return-1;if(Wt.flags&470302716&&Et.flags&1048576){var wa=Et.types,$a=wa.length===2&&wa[0].flags&98304?wa[1]:wa.length===3&&wa[0].flags&98304&&wa[1].flags&98304?wa[2]:void 0;if($a&&!($a.flags&98304)&&(Et=bD($a,!0),Wt===Et))return-1}if(t===Di&&!(Et.flags&131072)&&Gv(Et,Wt,t)||Gv(Wt,Et,t,ct?Ot:void 0))return-1;if(Wt.flags&469499904||Et.flags&469499904){var jn=!(Gt&2)&&Bp(Wt)&&e.getObjectFlags(Wt)&16384;if(jn&&Pt(Wt,Et,ct))return ct&&Qt(at,Wt,yi.aliasSymbol?yi:Et),0;var Fn=t!==Di&&!(Gt&2)&&Wt.flags&2752508&&Wt!==Ht&&Et.flags&2621440&&iE(Et)&&(_o(Wt).length>0||mS(Wt)),Yn=!!(e.getObjectFlags(Wt)&2048);if(Fn&&!B8(Wt,Et,Yn)){if(ct){var Ss=ht(oi.aliasSymbol?oi:Wt),ys=ht(yi.aliasSymbol?yi:Et),ks=za(Wt,0),Uo=za(Wt,1);ks.length>0&&ia(So(ks[0]),Et,1,!1)||Uo.length>0&&ia(So(Uo[0]),Et,1,!1)?Ot(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Ss,ys):Ot(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,Ss,ys)}return 0}ii(Wt,Et);var ps=Wt.flags&1048576&&Wt.types.length<4&&!(Et.flags&1048576)||Et.flags&1048576&&Et.types.length<4&&!(Wt.flags&469499904),As=ps?Xt(Wt,Et,ct,Gt):it(Wt,Et,ct,Gt,Bi);if(As&&!ea&&(Et.flags&2097152&&(jn||Fn)||aD(Et)&&!_c(Et)&&!Ln(Et)&&Wt.flags&2097152&&$(Wt).flags&3670016&&!e.some(Wt.types,function(gi){return!!(e.getObjectFlags(gi)&524288)}))&&(ea=!0,As&=it(Wt,Et,ct,4,Bi),ea=!1),As)return As}return ct&&Xn(oi,yi,Wt,Et,at),0}function Xn(oi,yi,Bi,ct,at){var Gt=!!PD(oi),Wt=!!PD(yi);Bi=oi.aliasSymbol||Gt?oi:Bi,ct=yi.aliasSymbol||Wt?yi:ct;var Et=Fi>0;if(Et&&Fi--,Bi.flags&524288&&ct.flags&524288){var wa=q;En(Bi,ct,!0),q!==wa&&(Et=!!q)}if(Bi.flags&524288&&ct.flags&131068)Qa(Bi,ct);else if(Bi.symbol&&Bi.flags&524288&&Ht===Bi)Ot(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(e.getObjectFlags(Bi)&2048&&ct.flags&2097152){var $a=ct.types,jn=Up(w.IntrinsicAttributes,o),Fn=Up(w.IntrinsicClassAttributes,o);if(!ra(jn)&&!ra(Fn)&&(e.contains($a,jn)||e.contains($a,Fn)))return}else q=us(q,yi);if(!at&&Et){Ri=[Bi,ct];return}Qt(at,Bi,ct)}function ii(oi,yi){if(!!e.tracing&&oi.flags&3145728&&yi.flags&3145728){var Bi=oi,ct=yi;if(Bi.objectFlags&ct.objectFlags&65536)return;var at=Bi.types.length,Gt=ct.types.length;at*Gt>1e6&&e.tracing.instant("checkTypes","traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:oi.id,sourceSize:at,targetId:yi.id,targetSize:Gt,pos:o==null?void 0:o.pos,end:o==null?void 0:o.end})}}function Ar(oi,yi){var Bi=function(ct,at){var Gt;at=$(at);var Wt=at.flags&3145728?wt(at,yi):D_(at,yi),Et=Wt&&Jt(Wt)||((Gt=Np(at,yi))===null||Gt===void 0?void 0:Gt.type)||Nr;return e.append(ct,Et)};return ba(e.reduceLeft(oi,Bi,void 0)||e.emptyArray)}function Pt(oi,yi,Bi){var ct;if(!cy(yi)||!Tr&&e.getObjectFlags(yi)&8192)return!1;var at=!!(e.getObjectFlags(oi)&2048);if((t===Sr||t===Di)&&(Zv(Ht,yi)||!at&&Ef(yi)))return!1;var Gt=yi,Wt;yi.flags&1048576&&(Gt=X6(oi,yi,ia)||tL(yi),Wt=Gt.flags&1048576?Gt.types:[Gt]);for(var Et=function(Yn){if(pt(Yn,oi.symbol)&&!Zx(oi,Yn)){if(!hb(Gt,Yn.escapedName,at)){if(Bi){var Ss=pc(Gt,cy);if(!o)return{value:e.Debug.fail()};if(e.isJsxAttributes(o)||e.isJsxOpeningLikeElement(o)||e.isJsxOpeningLikeElement(o.parent)){Yn.valueDeclaration&&e.isJsxAttribute(Yn.valueDeclaration)&&e.getSourceFileOfNode(o)===e.getSourceFileOfNode(Yn.valueDeclaration.name)&&(o=Yn.valueDeclaration.name);var ys=Ga(Yn),ks=NC(ys,Ss),Uo=ks?Ga(ks):void 0;Uo?Ot(e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,ys,ht(Ss),Uo):Ot(e.Diagnostics.Property_0_does_not_exist_on_type_1,ys,ht(Ss))}else{var ps=((ct=oi.symbol)===null||ct===void 0?void 0:ct.declarations)&&e.firstOrUndefined(oi.symbol.declarations),Uo=void 0;if(Yn.valueDeclaration&&e.findAncestor(Yn.valueDeclaration,function(ka){return ka===ps})&&e.getSourceFileOfNode(ps)===e.getSourceFileOfNode(o)){var As=Yn.valueDeclaration;e.Debug.assertNode(As,e.isObjectLiteralElementLike),o=As;var gi=As.name;e.isIdentifier(gi)&&(Uo=kb(gi,Ss))}Uo!==void 0?Ot(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Ga(Yn),ht(Ss),Uo):Ot(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Ga(Yn),ht(Ss))}}return{value:!0}}if(Wt&&!ia(Jt(Yn),Ar(Wt,Yn.escapedName),3,Bi))return Bi&&$i(e.Diagnostics.Types_of_property_0_are_incompatible,Ga(Yn)),{value:!0}}},wa=0,$a=_o(oi);wa<$a.length;wa++){var jn=$a[wa],Fn=Et(jn);if(typeof Fn=="object")return Fn.value}return!1}function pt(oi,yi){return oi.valueDeclaration&&yi.valueDeclaration&&oi.valueDeclaration.parent===yi.valueDeclaration}function Xt(oi,yi,Bi,ct){if(oi.flags&1048576)return t===Di?Ft(oi,yi,Bi&&!(oi.flags&131068),ct):Ai(oi,yi,Bi&&!(oi.flags&131068),ct);if(yi.flags&1048576)return Yt(rm(oi),yi,Bi&&!(oi.flags&131068)&&!(yi.flags&131068));if(yi.flags&2097152)return va(rm(oi),yi,Bi,2);if(t===Di&&yi.flags&131068){var at=e.sameMap(oi.types,rg);if(at!==oi.types&&(oi=To(at),!(oi.flags&2097152)))return ia(oi,yi,1,!1)}return Ft(oi,yi,!1,1)}function qt(oi,yi){for(var Bi=-1,ct=oi.types,at=0,Gt=ct;at<Gt.length;at++){var Wt=Gt[at],Et=Yt(Wt,yi,!1);if(!Et)return 0;Bi&=Et}return Bi}function Yt(oi,yi,Bi){var ct=yi.types;if(yi.flags&1048576){if(Y_(ct,oi))return-1;var at=PE(yi,oi);if(at){var Gt=ia(oi,at,2,!1);if(Gt)return Gt}}for(var Wt=0,Et=ct;Wt<Et.length;Wt++){var wa=Et[Wt],Gt=ia(oi,wa,2,!1);if(Gt)return Gt}if(Bi){var $a=rE(oi,yi,ia);$a&&ia(oi,$a,2,!0)}return 0}function va(oi,yi,Bi,ct){for(var at=-1,Gt=yi.types,Wt=0,Et=Gt;Wt<Et.length;Wt++){var wa=Et[Wt],$a=ia(oi,wa,2,Bi,void 0,ct);if(!$a)return 0;at&=$a}return at}function Ft(oi,yi,Bi,ct){var at=oi.types;if(oi.flags&1048576&&Y_(at,yi))return-1;for(var Gt=at.length,Wt=0;Wt<Gt;Wt++){var Et=ia(at[Wt],yi,1,Bi&&Wt===Gt-1,void 0,ct);if(Et)return Et}return 0}function pi(oi,yi){return oi.flags&1048576&&yi.flags&1048576&&!(oi.types[0].flags&32768)&&yi.types[0].flags&32768?gg(yi,-32769):yi}function Ai(oi,yi,Bi,ct){for(var at=-1,Gt=oi.types,Wt=pi(oi,yi),Et=0;Et<Gt.length;Et++){var wa=Gt[Et];if(Wt.flags&1048576&&Gt.length>=Wt.types.length&&Gt.length%Wt.types.length===0){var $a=ia(wa,Wt.types[Et%Wt.types.length],3,!1,void 0,ct);if($a){at&=$a;continue}}var jn=ia(wa,yi,1,Bi,void 0,ct);if(!jn)return 0;at&=jn}return at}function Qi(oi,yi,Bi,ct,at){if(oi===void 0&&(oi=e.emptyArray),yi===void 0&&(yi=e.emptyArray),Bi===void 0&&(Bi=e.emptyArray),oi.length!==yi.length&&t===nt)return 0;for(var Gt=oi.length<=yi.length?oi.length:yi.length,Wt=-1,Et=0;Et<Gt;Et++){var wa=Et<Bi.length?Bi[Et]:1,$a=wa&7;if($a!==4){var jn=oi[Et],Fn=yi[Et],Yn=-1;if(wa&8?Yn=t===nt?ia(jn,Fn,3,!1):jm(jn,Fn):$a===1?Yn=ia(jn,Fn,3,ct,void 0,at):$a===2?Yn=ia(Fn,jn,3,ct,void 0,at):$a===3?(Yn=ia(Fn,jn,3,!1),Yn||(Yn=ia(jn,Fn,3,ct,void 0,at))):(Yn=ia(jn,Fn,3,ct,void 0,at),Yn&&(Yn&=ia(Fn,jn,3,ct,void 0,at))),!Yn)return 0;Wt&=Yn}}return Wt}function it(oi,yi,Bi,ct,at){if(Ii)return 0;var Gt=ct|(ea?8:0),Wt=CD(oi,yi,Gt,t,!1),Et=t.get(Wt);if(Et!==void 0&&!(Bi&&Et&2&&!(Et&4))){if(Kn){var wa=Et&24;wa&8&&gn(oi,_d(kt)),wa&16&&gn(oi,_d(Ha))}return Et&1?-1:0}if(!Ne)Ne=[],$e=[],Ze=[];else{for(var $a=Wt.startsWith("*")?CD(oi,yi,Gt,t,!0):void 0,jn=0;jn<lr;jn++)if(Wt===Ne[jn]||$a&&$a===Ne[jn])return 3;if(yr===100||Zr===100)return Ii=!0,0}var Fn=lr;Ne[lr]=Wt,lr++;var Yn=ui;at&1&&($e[yr]=oi,yr++,!(ui&1)&&Xv(oi,$e,yr)&&(ui|=1)),at&2&&(Ze[Zr]=yi,Zr++,!(ui&2)&&Xv(yi,Ze,Zr)&&(ui|=2));var Ss,ys=0;Kn&&(Ss=Kn,Kn=function(Uo){return ys|=Uo?16:8,Ss(Uo)});var ks;if(ui===3?(e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","recursiveTypeRelatedTo_DepthLimit",{sourceId:oi.id,sourceIdStack:$e.map(function(Uo){return Uo.id}),targetId:yi.id,targetIdStack:Ze.map(function(Uo){return Uo.id}),depth:yr,targetDepth:Zr}),ks=3):(e.tracing===null||e.tracing===void 0||e.tracing.push("checkTypes","structuredTypeRelatedTo",{sourceId:oi.id,targetId:yi.id}),ks=st(oi,yi,Bi,ct),e.tracing===null||e.tracing===void 0||e.tracing.pop()),Kn&&(Kn=Ss),at&1&&yr--,at&2&&Zr--,ui=Yn,ks){if(ks===-1||yr===0&&Zr===0){if(ks===-1||ks===3)for(var jn=Fn;jn<lr;jn++)t.set(Ne[jn],1|ys);lr=Fn}}else t.set(Wt,(Bi?4:0)|2|ys),lr=Fn;return ks}function st(oi,yi,Bi,ct){if(ct&4)return Wo(oi,yi,Bi,void 0,0);var at,Gt,Wt=!1,Et=Ao(),wa=oi.flags,$a=yi.flags;if(t===nt){if(wa&3145728){var jn=qt(oi,yi);return jn&&(jn&=qt(yi,oi)),jn}if(wa&4194304)return ia(oi.type,yi.type,3,!1);if(wa&8388608&&(at=ia(oi.objectType,yi.objectType,3,!1))&&(at&=ia(oi.indexType,yi.indexType,3,!1))||wa&16777216&&oi.root.isDistributive===yi.root.isDistributive&&(at=ia(oi.checkType,yi.checkType,3,!1))&&(at&=ia(oi.extendsType,yi.extendsType,3,!1))&&(at&=ia(ep(oi),ep(yi),3,!1))&&(at&=ia(rp(oi),rp(yi),3,!1)))return at;if(wa&33554432)return ia(oi.substitute,yi.substitute,3,!1);if(!(wa&524288))return 0}else if(wa&3145728||$a&3145728){if(at=Xt(oi,yi,Bi,ct))return at;if(oi.flags&2097152||oi.flags&262144&&yi.flags&1048576){var Fn=eh(oi.flags&2097152?oi.types:[oi],!!(yi.flags&1048576));if(Fn&&kf(Fn,function(gv){return gv!==oi})&&(at=ia(Fn,yi,1,!1,void 0,ct)))return On(Et),at}if(!(wa&465829888||wa&524288&&$a&1048576||wa&2097152&&$a&467402752))return 0}if(wa&17301504&&oi.aliasSymbol&&oi.aliasTypeArguments&&oi.aliasSymbol===yi.aliasSymbol&&!(oi.aliasTypeArgumentsContainsMarker||yi.aliasTypeArgumentsContainsMarker)){var Yn=tE(oi.aliasSymbol);if(Yn===e.emptyArray)return 1;var Ss=$6(oi.aliasTypeArguments,yi.aliasTypeArguments,Yn,ct);if(Ss!==void 0)return Ss}if(lE(oi)&&!oi.target.readonly&&(at=ia(Co(oi)[0],yi,1))||lE(yi)&&(yi.target.readonly||Th(Cc(oi)||oi))&&(at=ia(oi,Co(yi)[0],2)))return at;if($a&262144){if(e.getObjectFlags(oi)&32&&!oi.declaration.nameType&&ia(Ll(yi),Iu(oi),3)&&!(ll(oi)&4)){var ys=wl(oi),ks=Mc(yi,Nu(oi));if(at=ia(ys,ks,3,Bi))return at}}else if($a&4194304){var Uo=yi.type;if(wa&4194304&&(at=ia(Uo,oi.type,3,!1)))return at;if(Ln(Uo)){if(at=ia(oi,px(Uo),2,Bi))return at}else{var Fn=Jg(Uo);if(Fn){if(ia(oi,Ll(Fn,yi.stringsOnly),2,Bi)===-1)return-1}else if(Fc(Uo)){var ps=h_(Uo),As=Iu(Uo),gi=void 0;if(ps&&Mg(Uo)){var Mt=$(Lg(Uo)),ka=[];Mv(Mt,8576,!1,function(vm){return void ka.push(gn(ps,Jm(Uo.mapper,Nu(Uo),vm)))}),gi=ba(qe(qe([],ka,!0),[ps],!1))}else gi=ps||As;if(ia(oi,gi,2,Bi)===-1)return-1}}}else if($a&8388608){if(wa&8388608){if((at=ia(oi.objectType,yi.objectType,3,Bi))&&(at&=ia(oi.indexType,yi.indexType,3,Bi)),at)return On(Et),at;Bi&&(Gt=q)}if(t===Sr||t===Di){var sa=yi.objectType,da=yi.indexType,cn=Cc(sa)||sa,un=Cc(da)||da;if(!Md(cn)&&!fd(un)){var Nn=4|(cn!==sa?2:0),Fn=Z_(cn,un,Nn);if(Fn){if(Bi&&Gt&&On(Et),at=ia(oi,Fn,2,Bi))return at;Bi&&Gt&&q&&(q=CS([Gt])<=CS([q])?Gt:q)}}}Bi&&(Gt=void 0)}else if(Fc(yi)&&t!==nt){var nn=!!yi.declaration.nameType,ys=wl(yi),en=ll(yi);if(!(en&8)){if(!nn&&ys.flags&8388608&&ys.objectType===oi&&ys.indexType===Nu(yi))return-1;if(!Fc(oi)){var gi=nn?h_(yi):Iu(yi),po=Ll(oi,void 0,!0),Mo=en&4,hs=Mo?eg(gi,po):void 0;if(Mo?!(hs.flags&131072):ia(gi,po,3)){var qo=wl(yi),Lo=Nu(yi),Gs=gg(qo,-98305);if(!nn&&Gs.flags&8388608&&Gs.indexType===Lo){if(at=ia(oi,Gs.objectType,2,Bi))return at}else{var Ac=nn?hs||gi:hs?To([hs,Lo]):Lo,ks=Mc(oi,Ac);if(at=ia(ks,qo,3,Bi))return at}}Gt=q,On(Et)}}}else if($a&16777216){if(Xv(yi,Ze,Zr,10))return On(Et),3;var zs=yi;if(!zs.root.inferTypeParameters&&!$3(zs.root)){var Mu=!oo(hh(zs.checkType),hh(zs.extendsType)),qd=!Mu&&oo(dd(zs.checkType),dd(zs.extendsType));if((at=Mu?-1:ia(oi,ep(zs),2,!1))&&(at&=qd?-1:ia(oi,rp(zs),2,!1),at))return On(Et),at}}else if($a&134217728){if(wa&134217728){if(t===Di)return SI(oi,yi)?0:-1;gn(oi,_d(Ha))}if(TE(oi,yi))return-1}if(wa&8650752){if(!(wa&8388608&&$a&8388608)){var Fn=b_(oi);if(!Fn||wa&262144&&Fn.flags&1){if(at=ia(tt,gg(yi,-67108865),3))return On(Et),at}else{if(at=ia(Fn,yi,1,!1,void 0,ct))return On(Et),at;if(at=ia(Wc(Fn,oi),yi,1,Bi&&!($a&wa&262144),void 0,ct))return On(Et),at}if(c(oi)){var Sd=b_(oi.indexType);if(Sd&&(at=ia(Mc(oi.objectType,Sd),yi,1,Bi)))return On(Et),at}}}else if(wa&4194304){if(at=ia(Pi,yi,1,Bi))return On(Et),at}else if(wa&134217728&&!($a&524288)){if(!($a&134217728)){var Fn=Cc(oi);if(Fn&&Fn!==oi&&(at=ia(Fn,yi,1,Bi)))return On(Et),at}}else if(wa&268435456)if($a&268435456&&oi.symbol===yi.symbol){if(at=ia(oi.type,yi.type,3,Bi))return On(Et),at}else{var Fn=Cc(oi);if(Fn&&(at=ia(Fn,yi,1,Bi)))return On(Et),at}else if(wa&16777216){if(Xv(oi,$e,yr,10))return On(Et),3;if($a&16777216){var Vp=oi.root.inferTypeParameters,I_=oi.extendsType,Td=void 0;if(Vp){var r_=qm(Vp,void 0,0,Gn);Cf(r_.inferences,yi.extendsType,I_,1536),I_=gn(I_,r_.mapper),Td=r_.mapper}if(Qf(I_,yi.extendsType)&&(ia(oi.checkType,yi.checkType,3)||ia(yi.checkType,oi.checkType,3))&&((at=ia(gn(ep(oi),Td),ep(yi),3,Bi))&&(at&=ia(rp(oi),rp(yi),3,Bi)),at))return On(Et),at}else{var Eg=Am(oi)?$y(oi):void 0;if(Eg&&(at=ia(Eg,yi,1,Bi)))return On(Et),at}var tu=Lv(oi);if(tu&&(at=ia(tu,yi,1,Bi)))return On(Et),at}else{if(t!==Te&&t!==vr&&C1(yi)&&Ef(oi))return-1;if(Fc(yi))return Fc(oi)&&(at=Tn(oi,yi,Bi))?(On(Et),at):0;var xd=!!(wa&131068);if(t!==nt)oi=$(oi),wa=oi.flags;else if(Fc(oi))return 0;if(e.getObjectFlags(oi)&4&&e.getObjectFlags(yi)&4&&oi.target===yi.target&&!Ln(oi)&&!(e.getObjectFlags(oi)&4096||e.getObjectFlags(yi)&4096)){var Yn=ED(oi.target);if(Yn===e.emptyArray)return 1;var Ss=$6(Co(oi),Co(yi),Yn,ct);if(Ss!==void 0)return Ss}else{if($g(yi)?_c(oi)||Ln(oi):_c(yi)&&Ln(oi)&&!oi.target.readonly)return t!==nt?ia(fl(oi,Ui)||xe,fl(yi,Ui)||xe,3,Bi):0;if((t===Te||t===vr)&&Ef(yi)&&e.getObjectFlags(yi)&16384&&!Ef(oi))return 0}if(wa&2621440&&$a&524288){var M0=Bi&&q===Et.errorInfo&&!xd;if(at=Wo(oi,yi,M0,void 0,ct),at&&(at&=vs(oi,yi,0,M0),at&&(at&=vs(oi,yi,1,M0),at&&(at&=qn(oi,yi,xd,M0,ct)))),Wt&&at)q=Gt||q||Et.errorInfo;else if(at)return at}if(wa&2621440&&$a&1048576){var Q6=gg(yi,36175872);if(Q6.flags&1048576){var Y6=Ca(oi,Q6);if(Y6)return Y6}}}return 0;function CS(gv){return gv?e.reduceLeft(gv,function(vm,ym){return vm+1+CS(ym.next)},0):0}function $6(gv,vm,ym,aL){if(at=Qi(gv,vm,ym,Bi,aL))return at;if(e.some(ym,function(kS){return!!(kS&24)})){Gt=void 0,On(Et);return}var Z6=vm&&j8(vm,ym);if(Wt=!Z6,ym!==e.emptyArray&&!Z6){if(Wt&&!(Bi&&e.some(ym,function(kS){return(kS&7)===0})))return 0;Gt=q,On(Et)}}}function kt(oi){return Kn&&(oi===Zn||oi===ho||oi===Vo)&&Kn(!1),oi}function Ha(oi){return Kn&&(oi===Zn||oi===ho||oi===Vo)&&Kn(!0),oi}function Tn(oi,yi,Bi){var ct=t===Di||(t===nt?ll(oi)===ll(yi):Rg(oi)<=Rg(yi));if(ct){var at,Gt=Iu(yi),Wt=gn(Iu(oi),_d(Rg(oi)<0?kt:Ha));if(at=ia(Gt,Wt,3,Bi)){var Et=Kc([Nu(oi)],[Nu(yi)]);if(gn(h_(oi),Et)===gn(h_(yi),Et))return at&ia(gn(wl(oi),Et),wl(yi),3,Bi)}}return 0}function Ca(oi,yi){var Bi=_o(oi),ct=AE(Bi,yi);if(!ct)return 0;for(var at=1,Gt=0,Wt=ct;Gt<Wt.length;Gt++){var Et=Wt[Gt];if(at*=HI(Df(Et)),at>25)return e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","typeRelatedToDiscriminatedType_DepthLimit",{sourceId:oi.id,targetId:yi.id,numCombinations:at}),0}for(var wa=new Array(ct.length),$a=new e.Set,jn=0;jn<ct.length;jn++){var Et=ct[jn],Fn=Df(Et);wa[jn]=Fn.flags&1048576?Fn.types:[Fn],$a.add(Et.escapedName)}for(var Yn=e.cartesianProduct(wa),Ss=[],ys=function(da){var cn=!1;e:for(var un=0,Nn=yi.types;un<Nn.length;un++){for(var nn=Nn[un],en=function(hs){var qo=ct[hs],Lo=tn(nn,qo.escapedName);if(!Lo)return"continue-outer";if(qo===Lo)return"continue";var Gs=Po(oi,yi,qo,Lo,function(Ac){return da[hs]},!1,0,ur||t===Di);if(!Gs)return"continue-outer"},po=0;po<ct.length;po++){var Mo=en(po);switch(Mo){case"continue-outer":continue e}}e.pushIfUnique(Ss,nn,e.equateValues),cn=!0}if(!cn)return{value:0}},ks=0,Uo=Yn;ks<Uo.length;ks++){var ps=Uo[ks],As=ys(ps);if(typeof As=="object")return As.value}for(var gi=-1,Mt=0,ka=Ss;Mt<ka.length;Mt++){var sa=ka[Mt];if(gi&=Wo(oi,sa,!1,$a,0),gi&&(gi&=vs(oi,sa,0,!1),gi&&(gi&=vs(oi,sa,1,!1),gi&&!(Ln(oi)&&Ln(sa))&&(gi&=qn(oi,sa,!1,!1,0)))),!gi)return gi}return gi}function kn(oi,yi){if(!yi||oi.length===0)return oi;for(var Bi,ct=0;ct<oi.length;ct++)yi.has(oi[ct].escapedName)?Bi||(Bi=oi.slice(0,ct)):Bi&&Bi.push(oi[ct]);return Bi||oi}function mo(oi,yi,Bi,ct,at){var Gt=ur&&!!(e.getCheckFlags(yi)&48),Wt=Ec(Df(yi),!1,Gt),Et=Bi(oi);return ia(Et,Wt,3,ct,void 0,at)}function Po(oi,yi,Bi,ct,at,Gt,Wt,Et){var wa=e.getDeclarationModifierFlagsFromSymbol(Bi),$a=e.getDeclarationModifierFlagsFromSymbol(ct);if(wa&8||$a&8){if(Bi.valueDeclaration!==ct.valueDeclaration)return Gt&&(wa&8&&$a&8?Ot(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,Ga(ct)):Ot(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,Ga(ct),ht(wa&8?oi:yi),ht(wa&8?yi:oi))),0}else if($a&16){if(!V8(Bi,ct))return Gt&&Ot(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,Ga(ct),ht(Bd(Bi)||oi),ht(Bd(ct)||yi)),0}else if(wa&16)return Gt&&Ot(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,Ga(ct),ht(oi),ht(yi)),0;var jn=mo(Bi,ct,at,Gt,Wt);return jn?!Et&&Bi.flags&16777216&&!(ct.flags&16777216)?(Gt&&Ot(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,Ga(ct),ht(oi),ht(yi)),0):jn:(Gt&&$i(e.Diagnostics.Types_of_property_0_are_incompatible,Ga(ct)),0)}function ms(oi,yi,Bi,ct){var at=!1;if(Bi.valueDeclaration&&e.isNamedDeclaration(Bi.valueDeclaration)&&e.isPrivateIdentifier(Bi.valueDeclaration.name)&&oi.symbol&&oi.symbol.flags&32){var Gt=Bi.valueDeclaration.name.escapedText,Wt=e.getSymbolNameForPrivateIdentifier(oi.symbol,Gt);if(Wt&&tn(oi,Wt)){var Et=e.factory.getDeclarationName(oi.symbol.valueDeclaration),wa=e.factory.getDeclarationName(yi.symbol.valueDeclaration);Ot(e.Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,Nc(Gt),Nc(Et.escapedText===""?O:Et),Nc(wa.escapedText===""?O:wa));return}}var $a=e.arrayFrom(qD(oi,yi,ct,!1));if((!s||s.code!==e.Diagnostics.Class_0_incorrectly_implements_interface_1.code&&s.code!==e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(at=!0),$a.length===1){var jn=Ga(Bi);Ot.apply(void 0,qe([e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,jn],__(oi,yi),!1)),e.length(Bi.declarations)&&Wa(e.createDiagnosticForNode(Bi.declarations[0],e.Diagnostics._0_is_declared_here,jn)),at&&q&&Fi++}else En(oi,yi,!1)&&($a.length>5?Ot(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,ht(oi),ht(yi),e.map($a.slice(0,4),function(Fn){return Ga(Fn)}).join(", "),$a.length-4):Ot(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,ht(oi),ht(yi),e.map($a,function(Fn){return Ga(Fn)}).join(", ")),at&&q&&Fi++)}function Wo(oi,yi,Bi,ct,at){if(t===nt)return gc(oi,yi,ct);var Gt=-1;if(Ln(yi)){if(_c(oi)||Ln(oi)){if(!yi.target.readonly&&($g(oi)||Ln(oi)&&oi.target.readonly))return 0;var Wt=Q_(oi),Et=Q_(yi),wa=Ln(oi)?oi.target.combinedFlags&4:4,$a=yi.target.combinedFlags&4,jn=Ln(oi)?oi.target.minLength:0,Fn=yi.target.minLength;if(!wa&&Wt<Fn)return Bi&&Ot(e.Diagnostics.Source_has_0_element_s_but_target_requires_1,Wt,Fn),0;if(!$a&&Et<jn)return Bi&&Ot(e.Diagnostics.Source_has_0_element_s_but_target_allows_only_1,jn,Et),0;if(!$a&&(wa||Et<Wt))return Bi&&(jn<Fn?Ot(e.Diagnostics.Target_requires_0_element_s_but_source_may_have_fewer,Fn):Ot(e.Diagnostics.Target_allows_only_0_element_s_but_source_may_have_more,Et)),0;for(var Yn=Co(oi),Ss=Co(yi),ys=Math.min(Ln(oi)?dx(oi.target,11):0,dx(yi.target,11)),ks=Math.min(Ln(oi)?lh(oi.target,11):0,$a?lh(yi.target,11):0),Uo=!!ct,ps=0;ps<Et;ps++){var As=ps<Et-ks?ps:ps+Wt-Et,gi=Ln(oi)&&(ps<ys||ps>=Et-ks)?oi.target.elementFlags[As]:4,Mt=yi.target.elementFlags[ps];if(Mt&8&&!(gi&8))return Bi&&Ot(e.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target,ps),0;if(gi&8&&!(Mt&12))return Bi&&Ot(e.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,As,ps),0;if(Mt&1&&!(gi&1))return Bi&&Ot(e.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target,ps),0;if(!(Uo&&((gi&12||Mt&12)&&(Uo=!1),Uo&&(ct==null?void 0:ct.has(""+ps))))){var ka=Ln(oi)?ps<ys||ps>=Et-ks?_g(Yn[As],!!(gi&Mt&2)):xh(oi,ys,ks)||St:Yn[0],sa=Ss[ps],da=gi&8&&Mt&4?tc(sa):_g(sa,!!(Mt&2)),cn=ia(ka,da,3,Bi,void 0,at);if(!cn)return Bi&&(Et>1||Wt>1)&&(ps<ys||ps>=Et-ks||Wt-ys-ks===1?$i(e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,As,ps):$i(e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,ys,Wt-ks-1,ps)),0;Gt&=cn}}return Gt}if(yi.target.combinedFlags&12)return 0}var un=(t===Te||t===vr)&&!Bp(oi)&&!ND(oi)&&!Ln(oi),Nn=VD(oi,yi,un,!1);if(Nn)return Bi&&ms(oi,yi,Nn,un),0;if(Bp(yi))for(var nn=0,en=kn(_o(oi),ct);nn<en.length;nn++){var po=en[nn];if(!D_(yi,po.escapedName)){var ka=Jt(po);if(!(ka.flags&32768))return Bi&&Ot(e.Diagnostics.Property_0_does_not_exist_on_type_1,Ga(po),ht(yi)),0}}for(var Mo=_o(yi),hs=Ln(oi)&&Ln(yi),qo=0,Lo=kn(Mo,ct);qo<Lo.length;qo++){var Gs=Lo[qo],Ac=Gs.escapedName;if(!(Gs.flags&4194304)&&(!hs||e.isNumericLiteralName(Ac)||Ac==="length")){var po=tn(oi,Ac);if(po&&po!==Gs){var cn=Po(oi,yi,po,Gs,Df,Bi,at,t===Di);if(!cn)return 0;Gt&=cn}}}return Gt}function gc(oi,yi,Bi){if(!(oi.flags&524288&&yi.flags&524288))return 0;var ct=kn(Gf(oi),Bi),at=kn(Gf(yi),Bi);if(ct.length!==at.length)return 0;for(var Gt=-1,Wt=0,Et=ct;Wt<Et.length;Wt++){var wa=Et[Wt],$a=D_(yi,wa.escapedName);if(!$a)return 0;var jn=kD(wa,$a,ia);if(!jn)return 0;Gt&=jn}return Gt}function vs(oi,yi,Bi,ct){var at,Gt;if(t===nt)return pv(oi,yi,Bi);if(yi===bn||oi===bn)return-1;var Wt=oi.symbol&&ml(oi.symbol.valueDeclaration),Et=yi.symbol&&ml(yi.symbol.valueDeclaration),wa=za(oi,Wt&&Bi===1?0:Bi),$a=za(yi,Et&&Bi===1?0:Bi);if(Bi===1&&wa.length&&$a.length){var jn=!!(wa[0].flags&4),Fn=!!($a[0].flags&4);if(jn&&!Fn)return ct&&Ot(e.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!ec(wa[0],$a[0],ct))return 0}var Yn=-1,Ss=Bi===1?Us:vl,ys=e.getObjectFlags(oi),ks=e.getObjectFlags(yi);if(ys&64&&ks&64&&oi.symbol===yi.symbol||ys&4&&ks&4&&oi.target===yi.target)for(var Uo=0;Uo<$a.length;Uo++){var ps=N_(wa[Uo],$a[Uo],!0,ct,Ss(wa[Uo],$a[Uo]));if(!ps)return 0;Yn&=ps}else if(wa.length===1&&$a.length===1){var As=t===Di||!!ye.noStrictGenericChecks,gi=e.first(wa),Mt=e.first($a);if(Yn=N_(gi,Mt,As,ct,Ss(gi,Mt)),!Yn&&ct&&Bi===1&&ys&ks&&(((at=Mt.declaration)===null||at===void 0?void 0:at.kind)===170||((Gt=gi.declaration)===null||Gt===void 0?void 0:Gt.kind)===170)){var ka=function(Mo){return kl(Mo,void 0,262144,Bi)};return Ot(e.Diagnostics.Type_0_is_not_assignable_to_type_1,ka(gi),ka(Mt)),Ot(e.Diagnostics.Types_of_construct_signatures_are_incompatible),Yn}}else{e:for(var sa=0,da=$a;sa<da.length;sa++){for(var cn=da[sa],un=Ao(),Nn=ct,nn=0,en=wa;nn<en.length;nn++){var po=en[nn],ps=N_(po,cn,!0,Nn,Ss(po,cn));if(ps){Yn&=ps,On(un);continue e}Nn=!1}return Nn&&Ot(e.Diagnostics.Type_0_provides_no_match_for_the_signature_1,ht(oi),kl(cn,void 0,void 0,Bi)),0}}return Yn}function vl(oi,yi){return oi.parameters.length===0&&yi.parameters.length===0?function(Bi,ct){return $i(e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,ht(Bi),ht(ct))}:function(Bi,ct){return $i(e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible,ht(Bi),ht(ct))}}function Us(oi,yi){return oi.parameters.length===0&&yi.parameters.length===0?function(Bi,ct){return $i(e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,ht(Bi),ht(ct))}:function(Bi,ct){return $i(e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible,ht(Bi),ht(ct))}}function N_(oi,yi,Bi,ct,at){return yD(Bi?wm(oi):oi,Bi?wm(yi):yi,t===vr?8:0,ct,Ot,at,Gn,_d(Ha))}function pv(oi,yi,Bi){var ct=za(oi,Bi),at=za(yi,Bi);if(ct.length!==at.length)return 0;for(var Gt=-1,Wt=0;Wt<ct.length;Wt++){var Et=Yv(ct[Wt],at[Wt],!1,!1,!1,ia);if(!Et)return 0;Gt&=Et}return Gt}function dv(oi,yi,Bi){for(var ct=-1,at=yi.keyType,Gt=oi.flags&2097152?Bg(oi):Gf(oi),Wt=0,Et=Gt;Wt<Et.length;Wt++){var wa=Et[Wt];if(!Zx(oi,wa)&&iu(Hg(wa,8576),at)){var $a=Df(wa),jn=Ce||$a.flags&32768||at===Ui||!(wa.flags&16777216)?$a:$s($a,524288),Fn=ia(jn,yi.type,3,Bi);if(!Fn)return Bi&&Ot(e.Diagnostics.Property_0_is_incompatible_with_index_signature,Ga(wa)),0;ct&=Fn}}for(var Yn=0,Ss=Js(oi);Yn<Ss.length;Yn++){var ys=Ss[Yn];if(iu(ys.keyType,at)){var Fn=Ya(ys,yi,Bi);if(!Fn)return 0;ct&=Fn}}return ct}function Ya(oi,yi,Bi){var ct=ia(oi.type,yi.type,3,Bi);return!ct&&Bi&&(oi.keyType===yi.keyType?Ot(e.Diagnostics._0_index_signatures_are_incompatible,ht(oi.keyType)):Ot(e.Diagnostics._0_and_1_index_signatures_are_incompatible,ht(oi.keyType),ht(yi.keyType))),ct}function qn(oi,yi,Bi,ct,at){if(t===nt)return yo(oi,yi);for(var Gt=Js(yi),Wt=e.some(Gt,function(Yn){return Yn.keyType===ki}),Et=-1,wa=0,$a=Gt;wa<$a.length;wa++){var jn=$a[wa],Fn=!Bi&&Wt&&jn.type.flags&1?-1:Fc(oi)&&Wt?ia(wl(oi),jn.type,3,ct):fs(oi,jn,ct,at);if(!Fn)return 0;Et&=Fn}return Et}function fs(oi,yi,Bi,ct){var at=ig(oi,yi.keyType);return at?Ya(at,yi,Bi):!(ct&1)&&Ah(oi)?dv(oi,yi,Bi):(Bi&&Ot(e.Diagnostics.Index_signature_for_type_0_is_missing_in_type_1,ht(yi.keyType),ht(oi)),0)}function yo(oi,yi){var Bi=Js(oi),ct=Js(yi);if(Bi.length!==ct.length)return 0;for(var at=0,Gt=ct;at<Gt.length;at++){var Wt=Gt[at],Et=kc(oi,Wt.keyType);if(!(Et&&ia(Et.type,Wt.type,3)&&Et.isReadonly===Wt.isReadonly))return 0}return-1}function ec(oi,yi,Bi){if(!oi.declaration||!yi.declaration)return!0;var ct=e.getSelectedEffectiveModifierFlags(oi.declaration,24),at=e.getSelectedEffectiveModifierFlags(yi.declaration,24);return at===8||at===16&&ct!==8||at!==16&&!ct?!0:(Bi&&Ot(e.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,p_(ct),p_(at)),!1)}}function SD(r){if(r.flags&16)return!1;if(r.flags&3145728)return!!e.forEach(r.types,SD);if(r.flags&465829888){var i=b_(r);if(i&&i!==r)return SD(i)}return Rl(r)||!!(r.flags&134217728)}function eE(r,i){return Ln(r)&&Ln(i)?e.emptyArray:_o(i).filter(function(t){return TD(ai(r,t.escapedName),Jt(t))})}function TD(r,i){return!!r&&!!i&&ls(r,32768)&&!!kh(i)}function R8(r){return _o(r).filter(function(i){return kh(Jt(i))})}function rE(r,i,t){return t===void 0&&(t=mD),X6(r,i,t,!0)||Z9(r,i)||eL(r,i)||rL(r,i)||iL(r,i)}function xD(r,i,t,o,s){for(var u=r.types.map(function(Xi){}),T=0,q=i;T<q.length;T++){var fe=q[T],Ne=fe[0],$e=fe[1],Ze=ji(r,$e);if(!(s&&Ze&&e.getCheckFlags(Ze)&16))for(var lr=0,yr=0,Zr=r.types;yr<Zr.length;yr++){var ui=Zr[yr],Ii=ai(ui,$e);Ii&&t(Ne(),Ii)?u[lr]=u[lr]===void 0?!0:u[lr]:u[lr]=!1,lr++}}var Fi=u.indexOf(!0);if(Fi===-1)return o;for(var Ri=u.indexOf(!0,Fi+1);Ri!==-1;){if(!Qf(r.types[Fi],r.types[Ri]))return o;Ri=u.indexOf(!0,Ri+1)}return r.types[Fi]}function iE(r){if(r.flags&524288){var i=Vu(r);return i.callSignatures.length===0&&i.constructSignatures.length===0&&i.indexInfos.length===0&&i.properties.length>0&&e.every(i.properties,function(t){return!!(t.flags&16777216)})}return r.flags&2097152?e.every(r.types,iE):!1}function B8(r,i,t){for(var o=0,s=_o(r);o<s.length;o++){var u=s[o];if(hb(i,u.escapedName,t))return!0}return!1}function J8(r,i,t){var o=Hf(r,e.map(r.typeParameters,function(s){return s===i?t:s}));return o.objectFlags|=4096,o}function tE(r){var i=Ma(r);return aE(i.typeParameters,i,function(t,o,s){var u=Kg(r,x_(i.typeParameters,Rd(o,s)));return u.aliasTypeArgumentsContainsMarker=!0,u})}function aE(r,i,t){var o,s,u;r===void 0&&(r=e.emptyArray);var T=i.variances;if(!T){e.tracing===null||e.tracing===void 0||e.tracing.push("checkTypes","getVariancesWorker",{arity:r.length,id:(u=(o=i.id)!==null&&o!==void 0?o:(s=i.declaredType)===null||s===void 0?void 0:s.id)!==null&&u!==void 0?u:-1}),i.variances=e.emptyArray,T=[];for(var q=function(Ze){var lr=!1,yr=!1,Zr=Kn;Kn=function(Ri){return Ri?yr=!0:lr=!0};var ui=t(i,Ze,Zn),Ii=t(i,Ze,ho),Fi=(oo(Ii,ui)?1:0)|(oo(ui,Ii)?2:0);Fi===3&&oo(t(i,Ze,Vo),ui)&&(Fi=4),Kn=Zr,(lr||yr)&&(lr&&(Fi|=8),yr&&(Fi|=16)),T.push(Fi)},fe=0,Ne=r;fe<Ne.length;fe++){var $e=Ne[fe];q($e)}i.variances=T,e.tracing===null||e.tracing===void 0||e.tracing.pop()}return T}function ED(r){return r===h||r===Ee||r.objectFlags&8?we:aE(r.typeParameters,r,J8)}function j8(r,i){for(var t=0;t<i.length;t++)if((i[t]&7)===1&&r[t].flags&16384)return!0;return!1}function U8(r){return r.flags&262144&&!qc(r)}function z8(r){return!!(e.getObjectFlags(r)&4)&&!r.node}function bh(r){return z8(r)&&e.some(Co(r),function(i){return!!(i.flags&262144)||bh(i)})}function W8(r,i,t,o){var s=[],u="",T=fe(r,0),q=fe(i,0);return"".concat(u).concat(T,",").concat(q).concat(t);function fe(Ne,$e){$e===void 0&&($e=0);for(var Ze=""+Ne.target.id,lr=0,yr=Co(Ne);lr<yr.length;lr++){var Zr=yr[lr];if(Zr.flags&262144){if(o||U8(Zr)){var ui=s.indexOf(Zr);ui<0&&(ui=s.length,s.push(Zr)),Ze+="="+ui;continue}u="*"}else if($e<4&&bh(Zr)){Ze+="<"+fe(Zr,$e+1)+">";continue}Ze+="-"+Zr.id}return Ze}}function CD(r,i,t,o,s){if(o===nt&&r.id>i.id){var u=r;r=i,i=u}var T=t?":"+t:"";return bh(r)&&bh(i)?W8(r,i,T,s):"".concat(r.id,",").concat(i.id).concat(T)}function Hv(r,i){if(e.getCheckFlags(r)&6){for(var t=0,o=r.containingType.types;t<o.length;t++){var s=o[t],u=tn(s,r.escapedName),T=u&&Hv(u,i);if(T)return T}return}return i(r)}function Bd(r){return r.parent&&r.parent.flags&32?Io(Rs(r)):void 0}function Sh(r){var i=Bd(r),t=i&&zc(i)[0];return t&&ai(t,r.escapedName)}function q8(r,i){return Hv(r,function(t){var o=Bd(t);return o?nd(o,i):!1})}function V8(r,i){return!Hv(i,function(t){return e.getDeclarationModifierFlagsFromSymbol(t)&16?!q8(r,Bd(t)):!1})}function K8(r,i,t){return Hv(i,function(o){return e.getDeclarationModifierFlagsFromSymbol(o,t)&16?!nd(r,Bd(o)):!1})?void 0:r}function Xv(r,i,t,o){if(o===void 0&&(o=3),t>=o)for(var s=Qv(r),u=0,T=0,q=0;q<t;q++){var fe=i[q];if(Qv(fe)===s){if(fe.id>=T&&(u++,u>=o))return!0;T=fe.id}}return!1}function Qv(r){if(r.flags&524288&&!KD(r)){if(e.getObjectFlags(r)&&4&&r.node)return r.node;if(r.symbol&&!(e.getObjectFlags(r)&16&&r.symbol.flags&32))return r.symbol;if(Ln(r))return r.target}if(r.flags&262144)return r.symbol;if(r.flags&8388608){do r=r.objectType;while(r.flags&8388608);return r}return r.flags&16777216?r.root:r}function G8(r,i){return kD(r,i,jm)!==0}function kD(r,i,t){if(r===i)return-1;var o=e.getDeclarationModifierFlagsFromSymbol(r)&24,s=e.getDeclarationModifierFlagsFromSymbol(i)&24;if(o!==s)return 0;if(o){if(Tg(r)!==Tg(i))return 0}else if((r.flags&16777216)!==(i.flags&16777216))return 0;return zl(r)!==zl(i)?0:t(Jt(r),Jt(i))}function H8(r,i,t){var o=Lc(r),s=Lc(i),u=jl(r),T=jl(i),q=Ul(r),fe=Ul(i);return!!(o===s&&u===T&&q===fe||t&&u<=T)}function Yv(r,i,t,o,s,u){if(r===i)return-1;if(!H8(r,i,t)||e.length(r.typeParameters)!==e.length(i.typeParameters))return 0;if(i.typeParameters){for(var T=Kc(r.typeParameters,i.typeParameters),q=0;q<i.typeParameters.length;q++){var fe=r.typeParameters[q],Ne=i.typeParameters[q];if(!(fe===Ne||u(gn(Vg(fe),T)||We,Vg(Ne)||We)&&u(gn(H_(fe),T)||We,H_(Ne)||We)))return 0}r=ug(r,T,!0)}var $e=-1;if(!o){var Ze=ld(r);if(Ze){var lr=ld(i);if(lr){var yr=u(Ze,lr);if(!yr)return 0;$e&=yr}}}for(var Zr=Lc(i),q=0;q<Zr;q++){var fe=Hu(r,q),Ne=Hu(i,q),yr=u(Ne,fe);if(!yr)return 0;$e&=yr}if(!s){var ui=wu(r),Ii=wu(i);$e&=ui||Ii?X8(ui,Ii,u):u(So(r),So(i))}return $e}function X8(r,i,t){return r&&i&&Q1(r,i)?r.type===i.type?-1:r.type&&i.type?t(r.type,i.type):0:0}function Q8(r){for(var i,t=0,o=r;t<o.length;t++){var s=o[t],u=Bl(s);if(i||(i=u),u===s||u!==i)return!1}return!0}function nE(r){return r.length===1?r[0]:Q8(r)?ba(r):e.reduceLeft(r,function(i,t){return E_(i,t)?t:i})}function Y8(r){if(!ur)return nE(r);var i=e.filter(r,function(t){return!(t.flags&98304)});return i.length?Eh(nE(i),fE(r)&98304):ba(r,2)}function $8(r){return e.reduceLeft(r,function(i,t){return E_(t,i)?t:i})}function _c(r){return!!(e.getObjectFlags(r)&4)&&(r.target===h||r.target===Ee)}function $g(r){return!!(e.getObjectFlags(r)&4)&&r.target===Ee}function Th(r){return _c(r)&&!$g(r)||Ln(r)&&!r.target.readonly}function AD(r){return _c(r)?Co(r)[0]:void 0}function ap(r){return _c(r)||!(r.flags&98304)&&oo(r,ca)}function PD(r){if(!(!(e.getObjectFlags(r)&4)||!(e.getObjectFlags(r.target)&3))){if(e.getObjectFlags(r)&33554432)return e.getObjectFlags(r)&67108864?r.cachedEquivalentBaseType:void 0;r.objectFlags|=33554432;var i=r.target;if(e.getObjectFlags(i)&1){var t=sd(i);if(t&&t.expression.kind!==79&&t.expression.kind!==205)return}var o=zc(i);if(o.length===1&&!Il(r.symbol).size){var s=e.length(i.typeParameters)?gn(o[0],Kc(i.typeParameters,Co(r).slice(0,i.typeParameters.length))):o[0];return e.length(Co(r))>e.length(i.typeParameters)&&(s=Wc(s,e.last(Co(r)))),r.objectFlags|=67108864,r.cachedEquivalentBaseType=s}}}function oE(r){return ur?r===Yi:r===Ur}function ND(r){var i=AD(r);return!!i&&oE(i)}function Zg(r){return Ln(r)||!!tn(r,"0")}function sE(r){return ap(r)||Zg(r)}function Z8(r,i){var t=ai(r,""+i);if(t)return t;if(kf(r,Ln))return Cs(r,function(o){return zm(o)||Nr})}function eI(r){return!(r.flags&240512)}function Rl(r){return!!(r.flags&109440)}function cE(r){return r.flags&2097152?e.some(r.types,Rl):!!(r.flags&109440)}function rI(r){return r.flags&2097152&&e.find(r.types,Rl)||r}function fg(r){return r.flags&16?!0:r.flags&1048576?r.flags&1024?!0:e.every(r.types,Rl):Rl(r)}function Bl(r){return r.flags&1024?cu(r):r.flags&402653312?ki:r.flags&256?Ui:r.flags&2048?zi:r.flags&512?xt:r.flags&1048576?Cs(r,Bl):r}function Lp(r){return r.flags&1024&&Mp(r)?cu(r):r.flags&128&&Mp(r)?ki:r.flags&256&&Mp(r)?Ui:r.flags&2048&&Mp(r)?zi:r.flags&512&&Mp(r)?xt:r.flags&1048576?Cs(r,Lp):r}function uE(r){return r.flags&8192?ua:r.flags&1048576?Cs(r,uE):r}function ID(r,i){return p0(r,i)||(r=uE(Lp(r))),r}function iI(r,i,t){if(r&&Rl(r)){var o=i?t?nv(i):i:void 0;r=ID(r,o)}return r}function wD(r,i,t,o){if(r&&Rl(r)){var s=i?Sg(t,i,o):void 0;r=ID(r,s)}return r}function Ln(r){return!!(e.getObjectFlags(r)&4&&r.target.objectFlags&8)}function em(r){return Ln(r)&&!!(r.target.combinedFlags&8)}function lE(r){return em(r)&&r.target.elementFlags.length===1}function zm(r){return xh(r,r.target.fixedLength)}function tI(r){var i=zm(r);return i&&tc(i)}function xh(r,i,t,o){t===void 0&&(t=0),o===void 0&&(o=!1);var s=Q_(r)-t;if(i<s){for(var u=Co(r),T=[],q=i;q<s;q++){var fe=u[q];T.push(r.target.elementFlags[q]&8?Mc(fe,Ui):fe)}return o?To(T):ba(T)}}function aI(r,i){return Q_(r)===Q_(i)&&e.every(r.target.elementFlags,function(t,o){return(t&12)===(i.target.elementFlags[o]&12)})}function OD(r){var i=r.value;return i.base10Value==="0"}function fE(r){for(var i=0,t=0,o=r;t<o.length;t++){var s=o[t];i|=Fu(s)}return i}function Fu(r){return r.flags&1048576?fE(r.types):r.flags&128?r.value===""?128:0:r.flags&256?r.value===0?256:0:r.flags&2048?OD(r)?2048:0:r.flags&512?r===ri||r===Gi?512:0:r.flags&117724}function _E(r){return Fu(r)&117632?pc(r,function(i){return!(Fu(i)&117632)}):r}function nI(r){return Cs(r,oI)}function oI(r){return r.flags&4?Xs:r.flags&8?rc:r.flags&64?uu:r===Gi||r===ri||r.flags&114691||r.flags&128&&r.value===""||r.flags&256&&r.value===0||r.flags&2048&&OD(r)?r:St}function Eh(r,i){var t=i&~r.flags&98304;return t===0?r:ba(t===32768?[r,Nr]:t===65536?[r,Ti]:[r,Nr,Ti])}function $f(r,i){return i===void 0&&(i=!1),e.Debug.assert(ur),r.flags&32768?r:ba([r,i?mi:Nr])}function sI(r){var i=$s(r,2097152);return Fa||(Fa=Om("NonNullable",524288,void 0)||hr),Fa!==hr?Kg(Fa,[i]):i}function C_(r){return ur?sI(r):r}function pE(r){return ur?ba([r,si]):r}function FD(r){return ur?Rh(r,si):r}function Ch(r,i,t){return t?e.isOutermostOptionalChain(i)?$f(r):pE(r):r}function Wm(r,i){return e.isExpressionOfOptionalChainRoot(i)?C_(r):e.isOptionalChain(i)?FD(r):r}function _g(r,i){return Ce&&i?Rh(r,mi):r}function kh(r){return Ce&&(r===mi||r.flags&1048576&&Y_(r.types,mi))}function MD(r){return Ce?Rh(r,mi):$s(r,524288)}function cI(r,i){return(r.flags&524)!==0&&(i.flags&28)!==0}function Ah(r){return r.flags&2097152?e.every(r.types,Ah):!!(r.symbol&&(r.symbol.flags&7040)!==0&&!(r.symbol.flags&32)&&!mS(r))||!!(e.getObjectFlags(r)&1024&&Ah(r.source))}function Jd(r,i){var t=bo(r.flags,r.escapedName,e.getCheckFlags(r)&8);t.declarations=r.declarations,t.parent=r.parent,t.type=i,t.target=r,r.valueDeclaration&&(t.valueDeclaration=r.valueDeclaration);var o=Ma(r).nameType;return o&&(t.nameType=o),t}function uI(r,i){for(var t=e.createSymbolTable(),o=0,s=Gf(r);o<s.length;o++){var u=s[o],T=Jt(u),q=i(T);t.set(u.escapedName,q===T?u:Jd(u,q))}return t}function rm(r){if(!(Bp(r)&&e.getObjectFlags(r)&16384))return r;var i=r.regularType;if(i)return i;var t=r,o=uI(r,rm),s=_s(t.symbol,o,t.callSignatures,t.constructSignatures,t.indexInfos);return s.flags=t.flags,s.objectFlags|=t.objectFlags&-16385,r.regularType=s,s}function dE(r,i,t){return{parent:r,propertyName:i,siblings:t,resolvedProperties:void 0}}function gE(r){if(!r.siblings){for(var i=[],t=0,o=gE(r.parent);t<o.length;t++){var s=o[t];if(Bp(s)){var u=D_(s,r.propertyName);u&&md(Jt(u),function(T){i.push(T)})}}r.siblings=i}return r.siblings}function lI(r){if(!r.resolvedProperties){for(var i=new e.Map,t=0,o=gE(r);t<o.length;t++){var s=o[t];if(Bp(s)&&!(e.getObjectFlags(s)&4194304))for(var u=0,T=_o(s);u<T.length;u++){var q=T[u];i.set(q.escapedName,q)}}r.resolvedProperties=e.arrayFrom(i.values())}return r.resolvedProperties}function fI(r,i){if(!(r.flags&4))return r;var t=Jt(r),o=i&&dE(i,r.escapedName,void 0),s=LD(t,o);return s===t?r:Jd(r,s)}function _I(r){var i=_r.get(r.escapedName);if(i)return i;var t=Jd(r,mi);return t.flags|=16777216,_r.set(r.escapedName,t),t}function pI(r,i){for(var t=e.createSymbolTable(),o=0,s=Gf(r);o<s.length;o++){var u=s[o];t.set(u.escapedName,fI(u,i))}if(i)for(var T=0,q=lI(i);T<q.length;T++){var u=q[T];t.has(u.escapedName)||t.set(u.escapedName,_I(u))}var fe=_s(r.symbol,t,e.emptyArray,e.emptyArray,e.sameMap(Js(r),function(Ne){return Fl(Ne.keyType,Hc(Ne.type),Ne.isReadonly)}));return fe.objectFlags|=e.getObjectFlags(r)&532480,fe}function Hc(r){return LD(r,void 0)}function LD(r,i){if(e.getObjectFlags(r)&393216){if(i===void 0&&r.widened)return r.widened;var t=void 0;if(r.flags&98305)t=xe;else if(Bp(r))t=pI(r,i);else if(r.flags&1048576){var o=i||dE(void 0,void 0,r.types),s=e.sameMap(r.types,function(u){return u.flags&98304?u:LD(u,o)});t=ba(s,e.some(s,Ef)?2:1)}else r.flags&2097152?t=To(e.sameMap(r.types,Hc)):(_c(r)||Ln(r))&&(t=Hf(r.target,e.sameMap(Co(r),Hc)));return t&&i===void 0&&(r.widened=t),t||r}return r}function Ph(r){var i=!1;if(e.getObjectFlags(r)&131072){if(r.flags&1048576)if(e.some(r.types,Ef))i=!0;else for(var t=0,o=r.types;t<o.length;t++){var s=o[t];Ph(s)&&(i=!0)}if(_c(r)||Ln(r))for(var u=0,T=Co(r);u<T.length;u++){var s=T[u];Ph(s)&&(i=!0)}if(Bp(r))for(var q=0,fe=Gf(r);q<fe.length;q++){var Ne=fe[q],s=Jt(Ne);e.getObjectFlags(s)&131072&&(Ph(s)||Wr(Ne.valueDeclaration,e.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,Ga(Ne),ht(Hc(s))),i=!0)}}return i}function Rp(r,i,t){var o=ht(Hc(i));if(!(e.isInJSFile(r)&&!e.isCheckJsEnabledForFile(e.getSourceFileOfNode(r),ye))){var s;switch(r.kind){case 220:case 166:case 165:s=Tr?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 163:var u=r;if(e.isIdentifier(u.name)&&(e.isCallSignatureDeclaration(u.parent)||e.isMethodSignature(u.parent)||e.isFunctionTypeNode(u.parent))&&u.parent.parameters.indexOf(u)>-1&&(os(u,u.name.escapedText,788968,void 0,u.name.escapedText,!0)||u.name.originalKeywordKind&&e.isTypeNodeKind(u.name.originalKeywordKind))){var T="arg"+u.parent.parameters.indexOf(u),q=e.declarationNameToString(u.name)+(u.dotDotDotToken?"[]":"");nu(Tr,r,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,T,q);return}s=r.dotDotDotToken?Tr?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:Tr?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 202:if(s=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!Tr)return;break;case 315:Wr(r,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,o);return;case 255:case 168:case 167:case 171:case 172:case 212:case 213:if(Tr&&!r.name){t===3?Wr(r,e.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,o):Wr(r,e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,o);return}s=Tr?t===3?e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 194:Tr&&Wr(r,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type);return;default:s=Tr?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}nu(Tr,r,s,e.declarationNameToString(e.getNameOfDeclaration(r)),o)}}function Nh(r,i,t){oe&&Tr&&e.getObjectFlags(i)&131072&&(!t||!_b(r))&&(Ph(i)||Rp(r,i,t))}function RD(r,i,t){var o=Lc(r),s=Lc(i),u=Zm(r),T=Zm(i),q=T?s-1:s,fe=u?q:Math.min(o,q),Ne=ld(r);if(Ne){var $e=ld(i);$e&&t(Ne,$e)}for(var Ze=0;Ze<fe;Ze++)t(Hu(r,Ze),Hu(i,Ze));T&&t(um(r,fe),T)}function BD(r,i,t){var o=wu(r),s=wu(i);o&&s&&Q1(o,s)&&o.type&&s.type?t(o.type,s.type):t(So(r),So(i))}function qm(r,i,t,o){return JD(r.map(jD),i,t,o||mD)}function dI(r,i){return i===void 0&&(i=0),r&&JD(e.map(r.inferences,vE),r.signature,r.flags|i,r.compareTypes)}function JD(r,i,t,o){var s={inferences:r,signature:i,flags:t,compareTypes:o,mapper:_d(function(u){return mE(s,u,!0)}),nonFixingMapper:_d(function(u){return mE(s,u,!1)})};return s}function mE(r,i,t){for(var o=r.inferences,s=0;s<o.length;s++){var u=o[s];if(i===u.typeParameter)return t&&!u.isFixed&&(Ih(o),u.isFixed=!0),EE(r,s)}return i}function Ih(r){for(var i=0,t=r;i<t.length;i++){var o=t[i];o.isFixed||(o.inferredType=void 0)}}function jD(r){return{typeParameter:r,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function vE(r){return{typeParameter:r.typeParameter,candidates:r.candidates&&r.candidates.slice(),contraCandidates:r.contraCandidates&&r.contraCandidates.slice(),inferredType:r.inferredType,priority:r.priority,topLevel:r.topLevel,isFixed:r.isFixed,impliedArity:r.impliedArity}}function gI(r){var i=e.filter(r.inferences,Ud);return i.length?JD(e.map(i,vE),r.signature,r.flags,r.compareTypes):void 0}function UD(r){return r&&r.mapper}function Vm(r){var i=e.getObjectFlags(r);if(i&1048576)return!!(i&2097152);var t=!!(r.flags&465829888||r.flags&524288&&!yE(r)&&(i&4&&(r.node||e.forEach(Co(r),Vm))||i&16&&r.symbol&&r.symbol.flags&14384&&r.symbol.declarations||i&8389664)||r.flags&3145728&&!(r.flags&1024)&&!yE(r)&&e.some(r.types,Vm));return r.flags&3899393&&(r.objectFlags|=1048576|(t?2097152:0)),t}function yE(r){if(r.aliasSymbol&&!r.aliasTypeArguments){var i=e.getDeclarationOfKind(r.aliasSymbol,258);return!!(i&&e.findAncestor(i.parent,function(t){return t.kind===303?!0:t.kind===260?!1:"quit"}))}return!1}function zD(r,i){return!!(r===i||r.flags&3145728&&e.some(r.types,function(t){return zD(t,i)})||r.flags&16777216&&(ep(r)===i||rp(r)===i))}function mI(r){var i=e.createSymbolTable();md(r,function(o){if(!!(o.flags&128)){var s=e.escapeLeadingUnderscores(o.value),u=bo(4,s);u.type=xe,o.symbol&&(u.declarations=o.symbol.declarations,u.valueDeclaration=o.symbol.valueDeclaration),i.set(s,u)}});var t=r.flags&4?[Fl(ki,tt,!1)]:e.emptyArray;return _s(void 0,i,e.emptyArray,e.emptyArray,t)}function hE(r,i,t){if(!Ms){var o=r.id+","+i.id+","+t.id;if(Ts.has(o))return Ts.get(o);Ms=!0;var s=vI(r,i,t);return Ms=!1,Ts.set(o,s),s}}function WD(r){return!(e.getObjectFlags(r)&524288)||Bp(r)&&e.some(_o(r),function(i){return WD(Jt(i))})||Ln(r)&&e.some(Co(r),WD)}function vI(r,i,t){if(!!(kc(r,ki)||_o(r).length!==0&&WD(r))){if(_c(r))return tc(wh(Co(r)[0],i,t),$g(r));if(Ln(r)){var o=e.map(Co(r),function(T){return wh(T,i,t)}),s=ll(i)&4?e.sameMap(r.target.elementFlags,function(T){return T&2?1:T}):r.target.elementFlags;return Ml(o,s,r.target.readonly,r.target.labeledElementDeclarations)}var u=Uc(1040,void 0);return u.source=r,u.mappedType=i,u.constraintType=t,u}}function yI(r){var i=Ma(r);return i.type||(i.type=wh(r.propertyType,r.mappedType,r.constraintType)),i.type}function wh(r,i,t){var o=Mc(t.type,Nu(i)),s=wl(i),u=jD(o);return Cf([u],r,s),DE(u)||We}function qD(r,i,t,o){var s,u,T,q,fe,Ne,$e;return wr(this,function(Ze){switch(Ze.label){case 0:s=_o(i),u=0,T=s,Ze.label=1;case 1:return u<T.length?(q=T[u],Jy(q)?[3,5]:t||!(q.flags&16777216||e.getCheckFlags(q)&48)?(fe=tn(r,q.escapedName),fe?[3,3]:[4,q]):[3,5]):[3,6];case 2:return Ze.sent(),[3,5];case 3:return o?(Ne=Jt(q),Ne.flags&109440?($e=Jt(fe),$e.flags&1||Vc($e)===Vc(Ne)?[3,5]:[4,q]):[3,5]):[3,5];case 4:Ze.sent(),Ze.label=5;case 5:return u++,[3,1];case 6:return[2]}})}function VD(r,i,t,o){var s=qD(r,i,t,o).next();if(!s.done)return s.value}function hI(r,i){return!(i.target.combinedFlags&8)&&i.target.minLength>r.target.minLength||!i.target.hasRestElement&&(r.target.hasRestElement||i.target.fixedLength<r.target.fixedLength)}function DI(r,i){return Ln(r)&&Ln(i)?hI(r,i):!!VD(r,i,!1,!0)&&!!VD(i,r,!1,!1)}function DE(r){return r.candidates?ba(r.candidates,2):r.contraCandidates?To(r.contraCandidates):void 0}function bI(r){return!!Da(r).skipDirectInference}function bE(r){return!!(r.symbol&&e.some(r.symbol.declarations,bI))}function SI(r,i){var t=r.texts[0],o=i.texts[0],s=r.texts[r.texts.length-1],u=i.texts[i.texts.length-1],T=Math.min(t.length,o.length),q=Math.min(s.length,u.length);return t.slice(0,T)!==o.slice(0,T)||s.slice(s.length-q)!==u.slice(u.length-q)}function TI(r){var i=e.createScanner(99,!1),t=!0;i.setOnError(function(){return t=!1}),i.setText(r+"n");var o=i.scan();o===40&&(o=i.scan());var s=i.getTokenFlags();return t&&o===9&&i.getTextPos()===r.length+1&&!(s&512)}function xI(r,i){if(r===i||i.flags&5)return!0;if(r.flags&128){var t=r.value;return!!(i.flags&8&&t!==""&&isFinite(+t)||i.flags&64&&t!==""&&TI(t)||i.flags&98816&&t===i.intrinsicName)}if(r.flags&134217728){var o=r.texts;return o.length===2&&o[0]===""&&o[1]===""&&oo(r.types[0],i)}return oo(r,i)}function SE(r,i){return r.flags&128?xE([r.value],e.emptyArray,i):r.flags&134217728?e.arraysEqual(r.texts,i.texts)?e.map(r.types,EI):xE(r.texts,r.types,i):void 0}function TE(r,i){var t=SE(r,i);return!!t&&e.every(t,function(o,s){return xI(o,i.types[s])})}function EI(r){return r.flags&402653317?r:Xg(["",""],[r])}function xE(r,i,t){var o=r.length-1,s=r[0],u=r[o],T=t.texts,q=T.length-1,fe=T[0],Ne=T[q];if(o===0&&s.length<fe.length+Ne.length||!s.startsWith(fe)||!u.endsWith(Ne))return;for(var $e=u.slice(0,u.length-Ne.length),Ze=[],lr=0,yr=fe.length,Zr=1;Zr<q;Zr++){var ui=T[Zr];if(ui.length>0){for(var Ii=lr,Fi=yr;Fi=Ri(Ii).indexOf(ui,Fi),!(Fi>=0);){if(Ii++,Ii===r.length)return;Fi=0}Xi(Ii,Fi),yr+=ui.length}else if(yr<Ri(lr).length)Xi(lr,yr+1);else if(lr<o)Xi(lr+1,0);else return}return Xi(o,Ri(o).length),Ze;function Ri(ea){return ea<o?r[ea]:$e}function Xi(ea,lt){var Ia=ea===lr?Ou(Ri(ea).slice(yr,lt)):Xg(qe(qe([r[lr].slice(yr)],r.slice(lr+1,ea),!0),[Ri(ea).slice(0,lt)],!1),i.slice(lr,ea));Ze.push(Ia),lr=ea,yr=lt}}function Cf(r,i,t,o,s){o===void 0&&(o=0),s===void 0&&(s=!1);var u=!1,T,q=2048,fe=!0,Ne,$e,Ze,lr=0;yr(i,t);function yr($i,Vi){if(!!Vm(Vi)){if($i===Je){var Ot=T;T=$i,yr(Vi,Vi),T=Ot;return}if($i.aliasSymbol&&$i.aliasTypeArguments&&$i.aliasSymbol===Vi.aliasSymbol){Fi($i.aliasTypeArguments,Vi.aliasTypeArguments,tE($i.aliasSymbol));return}if($i===Vi&&$i.flags&3145728){for(var Wa=0,Qt=$i.types;Wa<Qt.length;Wa++){var Qa=Qt[Wa];yr(Qa,Qa)}return}if(Vi.flags&1048576){var En=Ii($i.flags&1048576?$i.types:[$i],Vi.types,CI),Gn=En[0],ia=En[1],Xn=Ii(Gn,ia,kI),ii=Xn[0],Ar=Xn[1];if(Ar.length===0)return;if(Vi=ba(Ar),ii.length===0){Zr($i,Vi,1);return}$i=ba(ii)}else if(Vi.flags&2097152&&e.some(Vi.types,function(Ha){return!!Xi(Ha)||Fc(Ha)&&!!Xi(fD(Ha)||St)})){if(!($i.flags&1048576)){var Pt=Ii($i.flags&2097152?$i.types:[$i],Vi.types,Qf),ii=Pt[0],Ar=Pt[1];if(ii.length===0||Ar.length===0)return;$i=To(ii),Vi=To(Ar)}}else Vi.flags&41943040&&(Vi=Op(Vi));if(Vi.flags&8650752){if($i===Xr||$i===Ci||o&128&&($i===ze||$i===Nt)||bE($i))return;var pt=Xi(Vi);if(pt){if(e.getObjectFlags($i)&524288)return;if(!pt.isFixed){if((pt.priority===void 0||o<pt.priority)&&(pt.candidates=void 0,pt.contraCandidates=void 0,pt.topLevel=!0,pt.priority=o),o===pt.priority){var Xt=T||$i;s&&!u?e.contains(pt.contraCandidates,Xt)||(pt.contraCandidates=e.append(pt.contraCandidates,Xt),Ih(r)):e.contains(pt.candidates,Xt)||(pt.candidates=e.append(pt.candidates,Xt),Ih(r))}!(o&128)&&Vi.flags&262144&&pt.topLevel&&!zD(t,Vi)&&(pt.topLevel=!1,Ih(r))}q=Math.min(q,o);return}var qt=Xf(Vi,!1);if(qt!==Vi)yr($i,qt);else if(Vi.flags&8388608){var Yt=Xf(Vi.indexType,!1);if(Yt.flags&465829888){var va=kx(Xf(Vi.objectType,!1),Yt,!1);va&&va!==Vi&&yr($i,va)}}}if(e.getObjectFlags($i)&4&&e.getObjectFlags(Vi)&4&&($i.target===Vi.target||_c($i)&&_c(Vi))&&!($i.node&&Vi.node))Fi(Co($i),Co(Vi),ED($i.target));else if($i.flags&4194304&&Vi.flags&4194304)s=!s,yr($i.type,Vi.type),s=!s;else if((fg($i)||$i.flags&4)&&Vi.flags&4194304){var Ft=mI($i);s=!s,Zr(Ft,Vi.type,256),s=!s}else if($i.flags&8388608&&Vi.flags&8388608)yr($i.objectType,Vi.objectType),yr($i.indexType,Vi.indexType);else if($i.flags&268435456&&Vi.flags&268435456)$i.symbol===Vi.symbol&&yr($i.type,Vi.type);else if($i.flags&33554432){yr($i.baseType,Vi);var pi=o;o|=4,yr($i.substitute,Vi),o=pi}else if(Vi.flags&16777216)ui($i,Vi,fa);else if(Vi.flags&3145728)lt($i,Vi.types,Vi.flags);else if($i.flags&1048576)for(var Ai=$i.types,Qi=0,it=Ai;Qi<it.length;Qi++){var st=it[Qi];yr(st,Vi)}else if(Vi.flags&134217728)Dn($i,Vi);else{if($i=Lt($i),!(o&512&&$i.flags&467927040)){var kt=$($i);if(kt!==$i&&fe&&!(kt.flags&2621440))return fe=!1,yr(kt,Vi);$i=kt}$i.flags&2621440&&ui($i,Vi,Ra)}}}function Zr($i,Vi,Ot){var Wa=o;o|=Ot,yr($i,Vi),o=Wa}function ui($i,Vi,Ot){var Wa=$i.id+","+Vi.id,Qt=Ne&&Ne.get(Wa);if(Qt!==void 0){q=Math.min(q,Qt);return}(Ne||(Ne=new e.Map)).set(Wa,-1);var Qa=q;q=2048;var En=lr,Gn=Qv($i),ia=Qv(Vi);e.contains($e,Gn)&&(lr|=1),e.contains(Ze,ia)&&(lr|=2),lr!==3?(($e||($e=[])).push(Gn),(Ze||(Ze=[])).push(ia),Ot($i,Vi),Ze.pop(),$e.pop()):q=-1,lr=En,Ne.set(Wa,q),q=Math.min(q,Qa)}function Ii($i,Vi,Ot){for(var Wa,Qt,Qa=0,En=Vi;Qa<En.length;Qa++)for(var Gn=En[Qa],ia=0,Xn=$i;ia<Xn.length;ia++){var ii=Xn[ia];Ot(ii,Gn)&&(yr(ii,Gn),Wa=e.appendIfUnique(Wa,ii),Qt=e.appendIfUnique(Qt,Gn))}return[Wa?e.filter($i,function(Ar){return!e.contains(Wa,Ar)}):$i,Qt?e.filter(Vi,function(Ar){return!e.contains(Qt,Ar)}):Vi]}function Fi($i,Vi,Ot){for(var Wa=$i.length<Vi.length?$i.length:Vi.length,Qt=0;Qt<Wa;Qt++)Qt<Ot.length&&(Ot[Qt]&7)===2?Ri($i[Qt],Vi[Qt]):yr($i[Qt],Vi[Qt])}function Ri($i,Vi){Ir||o&1024?(s=!s,yr($i,Vi),s=!s):yr($i,Vi)}function Xi($i){if($i.flags&8650752)for(var Vi=0,Ot=r;Vi<Ot.length;Vi++){var Wa=Ot[Vi];if($i===Wa.typeParameter)return Wa}}function ea($i){for(var Vi,Ot=0,Wa=$i;Ot<Wa.length;Ot++){var Qt=Wa[Ot],Qa=Qt.flags&2097152&&e.find(Qt.types,function(En){return!!Xi(En)});if(!Qa||Vi&&Qa!==Vi)return;Vi=Qa}return Vi}function lt($i,Vi,Ot){var Wa=0;if(Ot&1048576){for(var Qt=void 0,Qa=$i.flags&1048576?$i.types:[$i],En=new Array(Qa.length),Gn=!1,ia=0,Xn=Vi;ia<Xn.length;ia++){var ii=Xn[ia];if(Xi(ii))Qt=ii,Wa++;else for(var Ar=0;Ar<Qa.length;Ar++){var Pt=q;q=2048,yr(Qa[Ar],ii),q===o&&(En[Ar]=!0),Gn=Gn||q===-1,q=Math.min(q,Pt)}}if(Wa===0){var pt=ea(Vi);pt&&Zr($i,pt,1);return}if(Wa===1&&!Gn){var Xt=e.flatMap(Qa,function(pi,Ai){return En[Ai]?void 0:pi});if(Xt.length){yr(ba(Xt),Qt);return}}}else for(var qt=0,Yt=Vi;qt<Yt.length;qt++){var ii=Yt[qt];Xi(ii)?Wa++:yr($i,ii)}if(Ot&2097152?Wa===1:Wa>0)for(var va=0,Ft=Vi;va<Ft.length;va++){var ii=Ft[va];Xi(ii)&&Zr($i,ii,1)}}function Ia($i,Vi,Ot){if(Ot.flags&1048576){for(var Wa=!1,Qt=0,Qa=Ot.types;Qt<Qa.length;Qt++){var En=Qa[Qt];Wa=Ia($i,Vi,En)||Wa}return Wa}if(Ot.flags&4194304){var Gn=Xi(Ot.type);if(Gn&&!Gn.isFixed&&!bE($i)){var ia=hE($i,Vi,Ot);ia&&Zr(ia,Gn.typeParameter,e.getObjectFlags($i)&524288?16:8)}return!0}if(Ot.flags&262144){Zr(Ll($i),Ot,32);var Xn=b_(Ot);if(Xn&&Ia($i,Vi,Xn))return!0;var ii=e.map(_o($i),Jt),Ar=e.map(Js($i),function(Pt){return Pt!==rn?Pt.type:St});return yr(ba(e.concatenate(ii,Ar)),wl(Vi)),!0}return!1}function fa($i,Vi){if($i.flags&16777216)yr($i.checkType,Vi.checkType),yr($i.extendsType,Vi.extendsType),yr(ep($i),ep(Vi)),yr(rp($i),rp(Vi));else{var Ot=o;o|=s?64:0;var Wa=[ep(Vi),rp(Vi)];lt($i,Wa,Vi.flags),o=Ot}}function Dn($i,Vi){var Ot=SE($i,Vi),Wa=Vi.types;if(Ot||e.every(Vi.texts,function(Qa){return Qa.length===0}))for(var Qt=0;Qt<Wa.length;Qt++)yr(Ot?Ot[Qt]:St,Wa[Qt])}function Ra($i,Vi){if(e.getObjectFlags($i)&4&&e.getObjectFlags(Vi)&4&&($i.target===Vi.target||_c($i)&&_c(Vi))){Fi(Co($i),Co(Vi),ED($i.target));return}if(Fc($i)&&Fc(Vi)){yr(Iu($i),Iu(Vi)),yr(wl($i),wl(Vi));var Ot=h_($i),Wa=h_(Vi);Ot&&Wa&&yr(Ot,Wa)}if(e.getObjectFlags(Vi)&32&&!Vi.declaration.nameType){var Qt=Iu(Vi);if(Ia($i,Vi,Qt))return}if(!DI($i,Vi)){if(_c($i)||Ln($i)){if(Ln(Vi)){var Qa=Q_($i),En=Q_(Vi),Gn=Co(Vi),ia=Vi.target.elementFlags;if(Ln($i)&&aI($i,Vi)){for(var Xn=0;Xn<En;Xn++)yr(Co($i)[Xn],Gn[Xn]);return}for(var ii=Ln($i)?Math.min($i.target.fixedLength,Vi.target.fixedLength):0,Ar=Math.min(Ln($i)?lh($i.target,3):0,Vi.target.hasRestElement?lh(Vi.target,3):0),Xn=0;Xn<ii;Xn++)yr(Co($i)[Xn],Gn[Xn]);if(!Ln($i)||Qa-ii-Ar===1&&$i.target.elementFlags[ii]&4)for(var Pt=Co($i)[ii],Xn=ii;Xn<En-Ar;Xn++)yr(ia[Xn]&8?tc(Pt):Pt,Gn[Xn]);else{var pt=En-ii-Ar;if(pt===2&&ia[ii]&ia[ii+1]&8&&Ln($i)){var Xt=Xi(Gn[ii]);Xt&&Xt.impliedArity!==void 0&&(yr(Mm($i,ii,Ar+Qa-Xt.impliedArity),Gn[ii]),yr(Mm($i,ii+Xt.impliedArity,Ar),Gn[ii+1]))}else if(pt===1&&ia[ii]&8){var qt=Vi.target.elementFlags[En-1]&2,Yt=Ln($i)?Mm($i,ii,Ar):tc(Co($i)[0]);Zr(Yt,Gn[ii],qt?2:0)}else if(pt===1&&ia[ii]&4){var Pt=Ln($i)?xh($i,ii,Ar):Co($i)[0];Pt&&yr(Pt,Gn[ii])}}for(var Xn=0;Xn<Ar;Xn++)yr(Co($i)[Qa-Xn-1],Gn[En-Xn-1]);return}if(_c(Vi)){Ao($i,Vi);return}}Bn($i,Vi),Jn($i,Vi,0),Jn($i,Vi,1),Ao($i,Vi)}}function Bn($i,Vi){for(var Ot=Gf(Vi),Wa=0,Qt=Ot;Wa<Qt.length;Wa++){var Qa=Qt[Wa],En=tn($i,Qa.escapedName);En&&yr(Jt(En),Jt(Qa))}}function Jn($i,Vi,Ot){for(var Wa=za($i,Ot),Qt=za(Vi,Ot),Qa=Wa.length,En=Qt.length,Gn=Qa<En?Qa:En,ia=!!(e.getObjectFlags($i)&524288),Xn=0;Xn<Gn;Xn++)On(VN(Wa[Qa-Gn+Xn]),wm(Qt[En-Gn+Xn]),ia)}function On($i,Vi,Ot){if(!Ot){var Wa=u,Qt=Vi.declaration?Vi.declaration.kind:0;u=u||Qt===168||Qt===167||Qt===170,RD($i,Vi,Ri),u=Wa}BD($i,Vi,yr)}function Ao($i,Vi){var Ot=e.getObjectFlags($i)&e.getObjectFlags(Vi)&32?8:0,Wa=Js(Vi);if(Ah($i))for(var Qt=0,Qa=Wa;Qt<Qa.length;Qt++){for(var En=Qa[Qt],Gn=[],ia=0,Xn=_o($i);ia<Xn.length;ia++){var ii=Xn[ia];if(iu(Hg(ii,8576),En.keyType)){var Ar=Jt(ii);Gn.push(ii.flags&16777216?MD(Ar):Ar)}}for(var Pt=0,pt=Js($i);Pt<pt.length;Pt++){var Xt=pt[Pt];iu(Xt.keyType,En.keyType)&&Gn.push(Xt.type)}Gn.length&&Zr(ba(Gn),En.type,Ot)}for(var qt=0,Yt=Wa;qt<Yt.length;qt++){var En=Yt[qt],va=ig($i,En.keyType);va&&Zr(va.type,En.type,Ot)}}}function CI(r,i){return Ce&&i===mi?r===i:Qf(r,i)||!!(i.flags&4&&r.flags&128||i.flags&8&&r.flags&256)}function kI(r,i){return!!(r.flags&524288&&i.flags&524288&&r.symbol&&r.symbol===i.symbol||r.aliasSymbol&&r.aliasTypeArguments&&r.aliasSymbol===i.aliasSymbol)}function AI(r){var i=qc(r);return!!i&&ls(i.flags&16777216?Lv(i):i,406978556)}function Bp(r){return!!(e.getObjectFlags(r)&128)}function KD(r){return!!(e.getObjectFlags(r)&32896)}function PI(r){if(r.length>1){var i=e.filter(r,KD);if(i.length){var t=ba(i,2);return e.concatenate(e.filter(r,function(o){return!KD(o)}),[t])}}return r}function NI(r){return r.priority&416?To(r.contraCandidates):$8(r.contraCandidates)}function II(r,i){var t=PI(r.candidates),o=AI(r.typeParameter),s=!o&&r.topLevel&&(r.isFixed||!zD(So(i),r.typeParameter)),u=o?e.sameMap(t,Vc):s?e.sameMap(t,Lp):t,T=r.priority&416?ba(u,2):Y8(u);return Hc(T)}function EE(r,i){var t=r.inferences[i];if(!t.inferredType){var o=void 0,s=r.signature;if(s){var u=t.candidates?II(t,s):void 0;if(t.contraCandidates)o=u&&!(u.flags&131072)&&e.some(t.contraCandidates,function(Ne){return E_(u,Ne)})?u:NI(t);else if(u)o=u;else if(r.flags&1)o=Ci;else{var T=H_(t.typeParameter);T&&(o=gn(T,l8(u8(r,i),r.nonFixingMapper)))}}else o=DE(t);t.inferredType=o||GD(!!(r.flags&2));var q=qc(t.typeParameter);if(q){var fe=gn(q,r.nonFixingMapper);(!o||!r.compareTypes(o,Wc(fe,o)))&&(t.inferredType=o=fe)}}return t.inferredType}function GD(r){return r?xe:We}function HD(r){for(var i=[],t=0;t<r.inferences.length;t++)i.push(EE(r,t));return i}function CE(r){switch(r.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 ye.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery;case"describe":case"suite":case"it":case"test":return ye.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha;case"process":case"require":case"Buffer":case"module":return ye.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":case"SharedArrayBuffer":case"Atomics":case"AsyncIterable":case"AsyncIterableIterator":case"AsyncGenerator":case"AsyncGeneratorFunction":case"BigInt":case"Reflect":case"BigInt64Array":case"BigUint64Array":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;case"await":if(e.isCallExpression(r.parent))return e.Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function;default:return r.parent.kind===295?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 dl(r){var i=Da(r);return i.resolvedSymbol||(i.resolvedSymbol=!e.nodeIsMissing(r)&&os(r,r.escapedText,1160127,CE(r),r,!e.isWriteOnlyAccess(r),!1)||hr),i.resolvedSymbol}function im(r){return!!e.findAncestor(r,function(i){return i.kind===180?!0:i.kind===79||i.kind===160?!1:"quit"})}function Oh(r,i,t,o){switch(r.kind){case 79:if(!e.isThisInTypeQuery(r)){var s=dl(r);return s!==hr?"".concat(o?A(o):"-1","|").concat(Gu(i),"|").concat(Gu(t),"|").concat(f(s)):void 0}case 108:return"0|".concat(o?A(o):"-1","|").concat(Gu(i),"|").concat(Gu(t));case 229:case 211:return Oh(r.expression,i,t,o);case 160:var u=Oh(r.left,i,t,o);return u&&u+"."+r.right.escapedText;case 205:case 206:var T=gd(r);if(T!==void 0){var q=Oh(r.expression,i,t,o);return q&&q+"."+T}}}function Ks(r,i){switch(i.kind){case 211:case 229:return Ks(r,i.expression);case 220:return e.isAssignmentExpression(i)&&Ks(r,i.left)||e.isBinaryExpression(i)&&i.operatorToken.kind===27&&Ks(r,i.right)}switch(r.kind){case 230:return i.kind===230&&r.keywordToken===i.keywordToken&&r.name.escapedText===i.name.escapedText;case 79:case 80:return e.isThisInTypeQuery(r)?i.kind===108:i.kind===79&&dl(r)===dl(i)||(i.kind===253||i.kind===202)&&$c(dl(r))===It(i);case 108:return i.kind===108;case 106:return i.kind===106;case 229:case 211:return Ks(r.expression,i);case 205:case 206:return e.isAccessExpression(i)&&gd(r)===gd(i)&&Ks(r.expression,i.expression);case 160:return e.isAccessExpression(i)&&r.right.escapedText===gd(i)&&Ks(r.left,i.expression);case 220:return e.isBinaryExpression(r)&&r.operatorToken.kind===27&&Ks(r.right,i)}return!1}function gd(r){var i;return r.kind===205?r.name.escapedText:r.kind===206&&e.isStringOrNumericLiteralLike(r.argumentExpression)?e.escapeLeadingUnderscores(r.argumentExpression.text):r.kind===202&&(i=uc(r))?e.escapeLeadingUnderscores(i):r.kind===163?""+r.parent.parameters.indexOf(r):void 0}function kE(r,i){for(;e.isAccessExpression(r);)if(r=r.expression,Ks(r,i))return!0;return!1}function pg(r,i){for(;e.isOptionalChain(r);)if(r=r.expression,Ks(r,i))return!0;return!1}function Km(r,i){if(r&&r.flags&1048576){var t=ji(r,i);if(t&&e.getCheckFlags(t)&2)return t.isDiscriminantProperty===void 0&&(t.isDiscriminantProperty=(t.checkFlags&192)===192&&!Rm(Jt(t))),!!t.isDiscriminantProperty}return!1}function AE(r,i){for(var t,o=0,s=r;o<s.length;o++){var u=s[o];if(Km(i,u.escapedName)){if(t){t.push(u);continue}t=[u]}}return t}function wI(r,i){for(var t=new e.Map,o=0,s=function(Ne){if(Ne.flags&61603840){var $e=ai(Ne,i);if($e){if(!fg($e))return{value:void 0};var Ze=!1;md($e,function(lr){var yr=Gu(Vc(lr)),Zr=t.get(yr);Zr?Zr!==We&&(t.set(yr,We),Ze=!0):t.set(yr,Ne)}),Ze||o++}}},u=0,T=r;u<T.length;u++){var q=T[u],fe=s(q);if(typeof fe=="object")return fe.value}return o>=10&&o*2>=r.length?t:void 0}function Fh(r){var i=r.types;if(!(i.length<10||e.getObjectFlags(r)&65536||e.countWhere(i,function(s){return!!(s.flags&59506688)})<10)){if(r.keyPropertyName===void 0){var t=e.forEach(i,function(s){return s.flags&59506688?e.forEach(_o(s),function(u){return Rl(Jt(u))?u.escapedName:void 0}):void 0}),o=t&&wI(i,t);r.keyPropertyName=o?t:"",r.constituentMap=o}return r.keyPropertyName.length?r.keyPropertyName:void 0}}function Mh(r,i){var t,o=(t=r.constituentMap)===null||t===void 0?void 0:t.get(Gu(Vc(i)));return o!==We?o:void 0}function PE(r,i){var t=Fh(r),o=t&&ai(i,t);return o&&Mh(r,o)}function OI(r,i){var t=Fh(r),o=t&&e.find(i.properties,function(u){return u.symbol&&u.kind===294&&u.symbol.escapedName===t&&ny(u.initializer)}),s=o&&yy(o.initializer);return s&&Mh(r,s)}function NE(r,i){return Ks(r,i)||kE(r,i)}function IE(r,i){if(r.arguments)for(var t=0,o=r.arguments;t<o.length;t++){var s=o[t];if(NE(i,s))return!0}return!!(r.expression.kind===205&&NE(i,r.expression.expression))}function XD(r){return(!r.id||r.id<0)&&(r.id=Q,Q++),r.id}function FI(r,i){if(!(r.flags&1048576))return oo(r,i);for(var t=0,o=r.types;t<o.length;t++){var s=o[t];if(oo(s,i))return!0}return!1}function MI(r,i){if(r!==i){if(i.flags&131072)return i;var t=pc(r,function(o){return FI(i,o)});if(i.flags&512&&Mp(i)&&(t=Cs(t,sg)),oo(i,t))return t}return r}function QD(r){var i=Vu(r);return!!(i.callSignatures.length||i.constructSignatures.length||i.members.get("bind")&&E_(r,Ka))}function np(r,i){i===void 0&&(i=!1);var t=r.flags;if(t&4)return ur?16317953:16776705;if(t&128){var o=r.value==="";return ur?o?12123649:7929345:o?12582401:16776705}if(t&40)return ur?16317698:16776450;if(t&256){var s=r.value===0;return ur?s?12123394:7929090:s?12582146:16776450}if(t&64)return ur?16317188:16775940;if(t&2048){var s=OD(r);return ur?s?12122884:7928580:s?12581636:16775940}return t&16?ur?16316168:16774920:t&528?ur?r===ri||r===Gi?12121864:7927560:r===ri||r===Gi?12580616:16774920:t&524288?i?16768959:e.getObjectFlags(r)&16&&Ef(r)?ur?16318463:16777215:QD(r)?ur?7880640:16728e3:ur?7888800:16736160:t&49152?9830144:t&65536?9363232:t&12288?ur?7925520:16772880:t&67108864?ur?7888800:16736160:t&131072?0:t&465829888?Qg(r)?ur?7929345:16776705:np(Cc(r)||We,i):t&1048576?e.reduceLeft(r.types,function(u,T){return u|np(T,i)},0):t&2097152?(i||(i=ls(r,131068)),LI(r,i)):16777215}function LI(r,i){for(var t=0,o=16777215,s=0,u=r.types;s<u.length;s++){var T=u[s],q=np(T,i);t|=q,o&=q}return t&8256|o&16768959}function $s(r,i){return pc(r,function(t){return(np(t)&i)!==0})}function YD(r,i){return i?ba([Yo(r),ac(i)]):r}function wE(r,i){var t,o=$_(i);if(!ul(o))return Oe;var s=Nl(o);return ai(r,s)||Gm((t=Np(r,s))===null||t===void 0?void 0:t.type)||Oe}function OE(r,i){return kf(r,Zg)&&Z8(r,i)||Gm(P_(65,r,Nr,void 0))||Oe}function Gm(r){return r&&(ye.noUncheckedIndexedAccess?ba([r,Nr]):r)}function FE(r){return tc(P_(65,r,Nr,void 0)||Oe)}function RI(r){var i=r.parent.kind===203&&$D(r.parent)||r.parent.kind===294&&$D(r.parent.parent);return i?YD($v(r),r.right):ac(r.right)}function $D(r){return r.parent.kind===220&&r.parent.left===r||r.parent.kind===243&&r.parent.initializer===r}function BI(r,i){return OE($v(r),r.elements.indexOf(i))}function JI(r){return FE($v(r.parent))}function ME(r){return wE($v(r.parent),r.name)}function jI(r){return YD(ME(r),r.objectAssignmentInitializer)}function $v(r){var i=r.parent;switch(i.kind){case 242:return ki;case 243:return Ty(i)||Oe;case 220:return RI(i);case 214:return Nr;case 203:return BI(i,r);case 224:return JI(i);case 294:return ME(i);case 295:return jI(i)}return Oe}function UI(r){var i=r.parent,t=RE(i.parent),o=i.kind===200?wE(t,r.propertyName||r.name):r.dotDotDotToken?FE(t):OE(t,i.elements.indexOf(r));return YD(o,r.initializer)}function LE(r){var i=Da(r);return i.resolvedType||ac(r)}function zI(r){return r.initializer?LE(r.initializer):r.parent.parent.kind===242?ki:r.parent.parent.kind===243&&Ty(r.parent.parent)||Oe}function RE(r){return r.kind===253?zI(r):UI(r)}function WI(r){return r.kind===253&&r.initializer&&K_(r.initializer)||r.kind!==202&&r.parent.kind===220&&K_(r.parent.right)}function Jp(r){switch(r.kind){case 211:return Jp(r.expression);case 220:switch(r.operatorToken.kind){case 63:case 75:case 76:case 77:return Jp(r.left);case 27:return Jp(r.right)}}return r}function BE(r){var i=r.parent;return i.kind===211||i.kind===220&&i.operatorToken.kind===63&&i.left===r||i.kind===220&&i.operatorToken.kind===27&&i.right===r?BE(i):r}function qI(r){return r.kind===288?Vc(ac(r.expression)):St}function Lh(r){var i=Da(r);if(!i.switchTypes){i.switchTypes=[];for(var t=0,o=r.caseBlock.clauses;t<o.length;t++){var s=o[t];i.switchTypes.push(qI(s))}}return i.switchTypes}function JE(r,i){for(var t=[],o=0,s=r.caseBlock.clauses;o<s.length;o++){var u=s[o];if(u.kind===288){if(e.isStringLiteralLike(u.expression)){t.push(u.expression.text);continue}return e.emptyArray}i&&t.push(void 0)}return t}function VI(r,i){return r.flags&1048576?!e.forEach(r.types,function(t){return!e.contains(i,t)}):e.contains(i,r)}function Zv(r,i){return r===i||i.flags&1048576&&KI(r,i)}function KI(r,i){if(r.flags&1048576){for(var t=0,o=r.types;t<o.length;t++){var s=o[t];if(!Y_(i.types,s))return!1}return!0}return r.flags&1024&&cu(r)===i?!0:Y_(i.types,r)}function md(r,i){return r.flags&1048576?e.forEach(r.types,i):i(r)}function dg(r,i){return r.flags&1048576?e.some(r.types,i):i(r)}function kf(r,i){return r.flags&1048576?e.every(r.types,i):i(r)}function GI(r,i){return r.flags&3145728?e.every(r.types,i):i(r)}function pc(r,i){if(r.flags&1048576){var t=r.types,o=e.filter(t,i);if(o===t)return r;var s=r.origin,u=void 0;if(s&&s.flags&1048576){var T=s.types,q=e.filter(T,function(fe){return!!(fe.flags&1048576)||i(fe)});if(T.length-q.length===t.length-o.length){if(q.length===1)return q[0];u=X1(1048576,q)}}return Y1(o,r.objectFlags,void 0,void 0,u)}return r.flags&131072||i(r)?r:St}function Rh(r,i){return pc(r,function(t){return t!==i})}function HI(r){return r.flags&1048576?r.types.length:1}function Cs(r,i,t){if(r.flags&131072)return r;if(!(r.flags&1048576))return i(r);for(var o=r.origin,s=o&&o.flags&1048576?o.types:r.types,u,T=!1,q=0,fe=s;q<fe.length;q++){var Ne=fe[q],$e=Ne.flags&1048576?Cs(Ne,i,t):i(Ne);T||(T=Ne!==$e),$e&&(u?u.push($e):u=[$e])}return T?u&&ba(u,t?0:1):r}function jE(r,i,t,o){return r.flags&1048576&&t?ba(e.map(r.types,i),1,t,o):Cs(r,i)}function gg(r,i){return pc(r,function(t){return(t.flags&i)!==0})}function UE(r,i){return ls(r,134217804)&&ls(i,402655616)?Cs(r,function(t){return t.flags&4?gg(i,402653316):Qg(t)&&!ls(i,402653188)?gg(i,128):t.flags&8?gg(i,264):t.flags&64?gg(i,2112):t}):r}function mg(r){return r.flags===0}function vd(r){return r.flags===0?r.type:r}function vg(r,i){return i?{flags:0,type:r.flags&131072?Ci:r}:r}function XI(r){var i=Uc(256);return i.elementType=r,i}function ZD(r){return Qe[r.id]||(Qe[r.id]=XI(r))}function zE(r,i){var t=rm(Bl(yy(i)));return Zv(t,r.elementType)?r:ZD(ba([r.elementType,t]))}function QI(r){return r.flags&131072?Nt:tc(r.flags&1048576?ba(r.types,2):r)}function YI(r){return r.finalArrayType||(r.finalArrayType=QI(r.elementType))}function Bh(r){return e.getObjectFlags(r)&256?YI(r):r}function $I(r){return e.getObjectFlags(r)&256?r.elementType:St}function ZI(r){for(var i=!1,t=0,o=r;t<o.length;t++){var s=o[t];if(!(s.flags&131072)){if(!(e.getObjectFlags(s)&256))return!1;i=!0}}return i}function WE(r){var i=BE(r),t=i.parent,o=e.isPropertyAccessExpression(t)&&(t.name.escapedText==="length"||t.parent.kind===207&&e.isIdentifier(t.name)&&e.isPushOrUnshiftIdentifier(t.name)),s=t.kind===206&&t.expression===i&&t.parent.kind===220&&t.parent.operatorToken.kind===63&&t.parent.left===t&&!e.isAssignmentTarget(t.parent)&&ws(ac(t.argumentExpression),296);return o||s}function ew(r){return(e.isVariableDeclaration(r)||e.isPropertyDeclaration(r)||e.isPropertySignature(r)||e.isParameter(r))&&!!(e.getEffectiveTypeAnnotationNode(r)||e.isInJSFile(r)&&e.hasInitializer(r)&&r.initializer&&e.isFunctionExpressionOrArrowFunction(r.initializer)&&e.getEffectiveReturnTypeNode(r.initializer))}function Jh(r,i){if(r.flags&8752)return Jt(r);if(r.flags&7){if(e.getCheckFlags(r)&262144){var t=r.syntheticOrigin;if(t&&Jh(t))return Jt(r)}var o=r.valueDeclaration;if(o){if(ew(o))return Jt(r);if(e.isVariableDeclaration(o)&&o.parent.parent.kind===243){var s=o.parent.parent,u=ey(s.expression,void 0);if(u){var T=s.awaitModifier?15:13;return P_(T,u,Nr,void 0)}}i&&e.addRelatedInfo(i,e.createDiagnosticForNode(o,e.Diagnostics._0_needs_an_explicit_type_annotation,Ga(r)))}}}function ey(r,i){if(!(r.flags&16777216))switch(r.kind){case 79:var t=$c(dl(r));return Jh(t.flags&2097152?zo(t):t,i);case 108:return yw(r);case 106:return ab(r);case 205:{var o=ey(r.expression,i);if(o){var s=r.name,u=void 0;if(e.isPrivateIdentifier(s)){if(!o.symbol)return;u=tn(o,e.getSymbolNameForPrivateIdentifier(o.symbol,s.escapedText))}else u=tn(o,s.escapedText);return u&&Jh(u,i)}return}case 211:return ey(r.expression,i)}}function jh(r){var i=Da(r),t=i.effectsSignature;if(t===void 0){var o=void 0;r.parent.kind===237?o=ey(r.expression,void 0):r.expression.kind!==106&&(e.isOptionalChain(r)?o=gl(Wm(hn(r.expression),r.expression),r.expression):o=nm(r.expression));var s=za(o&&$(o)||We,0),u=s.length===1&&!s[0].typeParameters?s[0]:e.some(s,qE)?sm(r):void 0;t=i.effectsSignature=u&&qE(u)?u:ro}return t===ro?void 0:t}function qE(r){return!!(wu(r)||r.declaration&&(ag(r.declaration)||We).flags&131072)}function rw(r,i){if(r.kind===1||r.kind===3)return i.arguments[r.parameterIndex];var t=e.skipParentheses(i.expression);return e.isAccessExpression(t)?e.skipParentheses(t.expression):void 0}function iw(r){var i=e.findAncestor(r,e.isFunctionOrModuleBlock),t=e.getSourceFileOfNode(r),o=e.getSpanOfTokenAtPosition(t,i.statements.pos);ya.add(e.createFileDiagnostic(t,o.start,o.length,e.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function ry(r){var i=Uh(r,!1);return hc=r,nc=i,i}function iy(r){var i=e.skipParentheses(r,!0);return i.kind===95||i.kind===220&&(i.operatorToken.kind===55&&(iy(i.left)||iy(i.right))||i.operatorToken.kind===56&&iy(i.left)&&iy(i.right))}function Uh(r,i){for(;;){if(r===hc)return nc;var t=r.flags;if(t&4096){if(!i){var o=XD(r),s=Ni[o];return s!==void 0?s:Ni[o]=Uh(r,!0)}i=!1}if(t&368)r=r.antecedent;else if(t&512){var u=jh(r.node);if(u){var T=wu(u);if(T&&T.kind===3&&!T.type){var q=r.node.arguments[T.parameterIndex];if(q&&iy(q))return!1}if(So(u).flags&131072)return!1}r=r.antecedent}else{if(t&4)return e.some(r.antecedents,function(lr){return Uh(lr,!1)});if(t&8){var fe=r.antecedents;if(fe===void 0||fe.length===0)return!1;r=fe[0]}else if(t&128){if(r.clauseStart===r.clauseEnd&&_k(r.switchStatement))return!1;r=r.antecedent}else if(t&1024){hc=void 0;var Ne=r.target,$e=Ne.antecedents;Ne.antecedents=r.antecedents;var Ze=Uh(r.antecedent,!1);return Ne.antecedents=$e,Ze}else return!(t&1)}}}function zh(r,i){for(;;){var t=r.flags;if(t&4096){if(!i){var o=XD(r),s=rt[o];return s!==void 0?s:rt[o]=zh(r,!0)}i=!1}if(t&496)r=r.antecedent;else if(t&512){if(r.node.expression.kind===106)return!0;r=r.antecedent}else{if(t&4)return e.every(r.antecedents,function(fe){return zh(fe,!1)});if(t&8)r=r.antecedents[0];else if(t&1024){var u=r.target,T=u.antecedents;u.antecedents=r.antecedents;var q=zh(r.antecedent,!1);return u.antecedents=T,q}else return!!(t&1)}}}function VE(r){switch(r.kind){case 79:{var i=dl(r);return ty(i)||e.isParameterOrCatchClauseVariable(i)&&!Wh(i)}case 205:case 206:return VE(r.expression)&&zl(Da(r).resolvedSymbol||hr)}return!1}function op(r,i,t,o,s){t===void 0&&(t=i),s===void 0&&(s=r.flowNode);var u,T=!1,q=0;if(jr)return Oe;if(!s)return i;is++;var fe=Oo,Ne=vd(lr(s));Oo=fe;var $e=e.getObjectFlags(Ne)&256&&WE(r)?Nt:Bh(Ne);if($e===yt||r.parent&&r.parent.kind===229&&!($e.flags&131072)&&$s($e,2097152).flags&131072)return i;return $e===mr?We:$e;function Ze(){return T?u:(T=!0,u=Oh(r,i,t,o))}function lr(pi){if(q===2e3)return e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","getTypeAtFlowNode_DepthLimit",{flowId:pi.id}),jr=!0,iw(r),Oe;q++;for(var Ai;;){var Qi=pi.flags;if(Qi&4096){for(var it=fe;it<Oo;it++)if(Vr[it]===pi)return q--,fi[it];Ai=pi}var st=void 0;if(Qi&16){if(st=Zr(pi),!st){pi=pi.antecedent;continue}}else if(Qi&512){if(st=Ii(pi),!st){pi=pi.antecedent;continue}}else if(Qi&96)st=Ri(pi);else if(Qi&128)st=Xi(pi);else if(Qi&12){if(pi.antecedents.length===1){pi=pi.antecedents[0];continue}st=Qi&4?ea(pi):lt(pi)}else if(Qi&256){if(st=Fi(pi),!st){pi=pi.antecedent;continue}}else if(Qi&1024){var kt=pi.target,Ha=kt.antecedents;kt.antecedents=pi.antecedents,st=lr(pi.antecedent),kt.antecedents=Ha}else if(Qi&2){var Tn=pi.node;if(Tn&&Tn!==o&&r.kind!==205&&r.kind!==206&&r.kind!==108){pi=Tn.flowNode;continue}st=t}else st=uv(i);return Ai&&(Vr[Oo]=Ai,fi[Oo]=st,Oo++),q--,st}}function yr(pi){var Ai=pi.node;return eb(Ai.kind===253||Ai.kind===202?RE(Ai):$v(Ai),r)}function Zr(pi){var Ai=pi.node;if(Ks(r,Ai)){if(!ry(pi))return yt;if(e.getAssignmentTargetKind(Ai)===2){var Qi=lr(pi.antecedent);return vg(Bl(vd(Qi)),mg(Qi))}if(i===ze||i===Nt){if(WI(Ai))return ZD(St);var it=Lp(yr(pi));return oo(it,i)?it:Ki}return i.flags&1048576?MI(i,yr(pi)):i}if(kE(r,Ai)){if(!ry(pi))return yt;if(e.isVariableDeclaration(Ai)&&(e.isInJSFile(Ai)||e.isVarConst(Ai))){var st=e.getDeclaredExpandoInitializer(Ai);if(st&&(st.kind===212||st.kind===213))return lr(pi.antecedent)}return i}if(e.isVariableDeclaration(Ai)&&Ai.parent.parent.kind===242&&Ks(r,Ai.parent.parent.expression))return Sb(vd(lr(pi.antecedent)))}function ui(pi,Ai){var Qi=e.skipParentheses(Ai,!0);if(Qi.kind===95)return yt;if(Qi.kind===220){if(Qi.operatorToken.kind===55)return ui(ui(pi,Qi.left),Qi.right);if(Qi.operatorToken.kind===56)return ba([ui(pi,Qi.left),ui(pi,Qi.right)])}return va(pi,Qi,!0)}function Ii(pi){var Ai=jh(pi.node);if(Ai){var Qi=wu(Ai);if(Qi&&(Qi.kind===2||Qi.kind===3)){var it=lr(pi.antecedent),st=Bh(vd(it)),kt=Qi.type?Yt(st,Qi,pi.node,!0):Qi.kind===3&&Qi.parameterIndex>=0&&Qi.parameterIndex<pi.node.arguments.length?ui(st,pi.node.arguments[Qi.parameterIndex]):st;return kt===st?it:vg(kt,mg(it))}if(So(Ai).flags&131072)return yt}}function Fi(pi){if(i===ze||i===Nt){var Ai=pi.node,Qi=Ai.kind===207?Ai.expression.expression:Ai.left.expression;if(Ks(r,Jp(Qi))){var it=lr(pi.antecedent),st=vd(it);if(e.getObjectFlags(st)&256){var kt=st;if(Ai.kind===207)for(var Ha=0,Tn=Ai.arguments;Ha<Tn.length;Ha++){var Ca=Tn[Ha];kt=zE(kt,Ca)}else{var kn=yy(Ai.left.argumentExpression);ws(kn,296)&&(kt=zE(kt,Ai.right))}return kt===st?it:vg(kt,mg(it))}return it}}}function Ri(pi){var Ai=lr(pi.antecedent),Qi=vd(Ai);if(Qi.flags&131072)return Ai;var it=(pi.flags&32)!==0,st=Bh(Qi),kt=va(st,pi.node,it);return kt===st?Ai:vg(kt,mg(Ai))}function Xi(pi){var Ai=pi.switchStatement.expression,Qi=lr(pi.antecedent),it=vd(Qi);if(Ks(r,Ai))it=Gn(it,pi.switchStatement,pi.clauseStart,pi.clauseEnd);else if(Ai.kind===215&&Ks(r,Ai.expression))it=ii(it,pi.switchStatement,pi.clauseStart,pi.clauseEnd);else{ur&&(pg(Ai,r)?it=En(it,pi.switchStatement,pi.clauseStart,pi.clauseEnd,function(kt){return!(kt.flags&163840)}):Ai.kind===215&&pg(Ai.expression,r)&&(it=En(it,pi.switchStatement,pi.clauseStart,pi.clauseEnd,function(kt){return!(kt.flags&131072||kt.flags&128&&kt.value==="undefined")})));var st=Dn(Ai,it);st&&(it=Jn(it,st,pi.switchStatement,pi.clauseStart,pi.clauseEnd))}return vg(it,mg(Qi))}function ea(pi){for(var Ai=[],Qi=!1,it=!1,st,kt=0,Ha=pi.antecedents;kt<Ha.length;kt++){var Tn=Ha[kt];if(!st&&Tn.flags&128&&Tn.clauseStart===Tn.clauseEnd){st=Tn;continue}var Ca=lr(Tn),kn=vd(Ca);if(kn===i&&i===t)return kn;e.pushIfUnique(Ai,kn),Zv(kn,i)||(Qi=!0),mg(Ca)&&(it=!0)}if(st){var Ca=lr(st),kn=vd(Ca);if(!e.contains(Ai,kn)&&!_k(st.switchStatement)){if(kn===i&&i===t)return kn;Ai.push(kn),Zv(kn,i)||(Qi=!0),mg(Ca)&&(it=!0)}}return vg(Ia(Ai,Qi?2:1),it)}function lt(pi){var Ai=XD(pi),Qi=qa[Ai]||(qa[Ai]=new e.Map),it=Ze();if(!it)return i;var st=Qi.get(it);if(st)return st;for(var kt=ln;kt<Ba;kt++)if(Bu[kt]===pi&&$u[kt]===it&&au[kt].length)return vg(Ia(au[kt],1),!0);for(var Ha=[],Tn=!1,Ca,kn=0,mo=pi.antecedents;kn<mo.length;kn++){var Po=mo[kn],ms=void 0;if(!Ca)ms=Ca=lr(Po);else{Bu[Ba]=pi,$u[Ba]=it,au[Ba]=Ha,Ba++;var Wo=ns;ns=void 0,ms=lr(Po),ns=Wo,Ba--;var gc=Qi.get(it);if(gc)return gc}var vs=vd(ms);if(e.pushIfUnique(Ha,vs),Zv(vs,i)||(Tn=!0),vs===i)break}var vl=Ia(Ha,Tn?2:1);return mg(Ca)?vg(vl,!0):(Qi.set(it,vl),vl)}function Ia(pi,Ai){if(ZI(pi))return ZD(ba(e.map(pi,$I)));var Qi=ba(e.sameMap(pi,Bh),Ai);return Qi!==i&&Qi.flags&i.flags&1048576&&e.arraysEqual(Qi.types,i.types)?i:Qi}function fa(pi){if(e.isBindingPattern(r)||e.isFunctionExpressionOrArrowFunction(r)){if(e.isIdentifier(pi)){var Ai=dl(pi),Qi=Ai.valueDeclaration;if(Qi&&(e.isBindingElement(Qi)||e.isParameter(Qi))&&r===Qi.parent&&!Qi.initializer&&!Qi.dotDotDotToken)return Qi}}else if(e.isAccessExpression(pi)){if(Ks(r,pi.expression))return pi}else if(e.isIdentifier(pi)){var Ai=dl(pi);if(ty(Ai)){var Qi=Ai.valueDeclaration;if(e.isVariableDeclaration(Qi)&&!Qi.type&&Qi.initializer&&e.isAccessExpression(Qi.initializer)&&Ks(r,Qi.initializer.expression))return Qi.initializer;if(e.isBindingElement(Qi)&&!Qi.initializer){var it=Qi.parent.parent;if(e.isVariableDeclaration(it)&&!it.type&&it.initializer&&(e.isIdentifier(it.initializer)||e.isAccessExpression(it.initializer))&&Ks(r,it.initializer))return Qi}}}}function Dn(pi,Ai){var Qi=i.flags&1048576?i:Ai;if(Qi.flags&1048576){var it=fa(pi);if(it){var st=gd(it);if(st&&Km(Qi,st))return it}}}function Ra(pi,Ai,Qi){var it=gd(Ai);if(it===void 0)return pi;var st=ur&&e.isOptionalChain(Ai)&&ls(pi,98304),kt=ai(st?$s(pi,2097152):pi,it);if(!kt)return pi;kt=st?$f(kt):kt;var Ha=Qi(kt);return pc(pi,function(Tn){var Ca=Wi(Tn,it);return!(Ha.flags&131072)&&Yg(Ha,Ca)})}function Bn(pi,Ai,Qi,it,st){if((Qi===36||Qi===37)&&pi.flags&1048576){var kt=Fh(pi);if(kt&&kt===gd(Ai)){var Ha=Mh(pi,ac(it));if(Ha)return Qi===(st?36:37)?Ha:Rl(ai(Ha,kt)||We)?Rh(pi,Ha):pi}}return Ra(pi,Ai,function(Tn){return Qt(Tn,Qi,it,st)})}function Jn(pi,Ai,Qi,it,st){if(it<st&&pi.flags&1048576&&Fh(pi)===gd(Ai)){var kt=Lh(Qi).slice(it,st),Ha=ba(e.map(kt,function(Tn){return Mh(pi,Tn)||We}));if(Ha!==We)return Ha}return Ra(pi,Ai,function(Tn){return Gn(Tn,Qi,it,st)})}function On(pi,Ai,Qi){if(Ks(r,Ai))return pi.flags&2&&Qi?mr:$s(pi,Qi?4194304:8388608);ur&&Qi&&pg(Ai,r)&&(pi=$s(pi,2097152));var it=Dn(Ai,pi);return it?Ra(pi,it,function(st){return $s(st,Qi?4194304:8388608)}):pi}function Ao(pi,Ai,Qi){var it=tn(pi,Ai);return it?it.flags&16777216?!0:Qi:Np(pi,Ai)?!0:!Qi}function $i(pi,Ai,Qi){return pi.flags&1048576||pi.flags&524288&&i!==pi||e.isThisTypeParameter(pi)||pi.flags&2097152&&e.every(pi.types,function(it){return it.symbol!==Rr})?pc(pi,function(it){return Ao(it,Ai,Qi)}):pi}function Vi(pi,Ai,Qi){switch(Ai.operatorToken.kind){case 63:case 75:case 76:case 77:return On(va(pi,Ai.right,Qi),Ai.left,Qi);case 34:case 35:case 36:case 37:var it=Ai.operatorToken.kind,st=Jp(Ai.left),kt=Jp(Ai.right);if(st.kind===215&&e.isStringLiteralLike(kt))return Qa(pi,st,it,kt,Qi);if(kt.kind===215&&e.isStringLiteralLike(st))return Qa(pi,kt,it,st,Qi);if(Ks(r,st))return Qt(pi,it,kt,Qi);if(Ks(r,kt))return Qt(pi,it,st,Qi);ur&&(pg(st,r)?pi=Wa(pi,it,kt,Qi):pg(kt,r)&&(pi=Wa(pi,it,st,Qi)));var Ha=Dn(st,pi);if(Ha)return Bn(pi,Ha,it,kt,Qi);var Tn=Dn(kt,pi);if(Tn)return Bn(pi,Tn,it,st,Qi);if(Ar(st))return Pt(pi,it,kt,Qi);if(Ar(kt))return Pt(pi,it,st,Qi);break;case 102:return pt(pi,Ai,Qi);case 101:if(e.isPrivateIdentifier(Ai.left))return Ot(pi,Ai,Qi);var Ca=Jp(Ai.right),kn=Wp(Ai.left);if(kn.flags&128){var mo=e.escapeLeadingUnderscores(kn.value);if(kh(pi)&&e.isAccessExpression(r)&&Ks(r.expression,Ca)&&gd(r)===mo)return $s(pi,Qi?524288:65536);if(Ks(r,Ca))return $i(pi,mo,Qi)}break;case 27:return va(pi,Ai.right,Qi);case 55:return Qi?va(va(pi,Ai.left,!0),Ai.right,!0):ba([va(pi,Ai.left,!1),va(pi,Ai.right,!1)]);case 56:return Qi?ba([va(pi,Ai.left,!0),va(pi,Ai.right,!0)]):va(va(pi,Ai.left,!1),Ai.right,!1)}return pi}function Ot(pi,Ai,Qi){var it=Jp(Ai.right);if(!Ks(r,it))return pi;e.Debug.assertNode(Ai.left,e.isPrivateIdentifier);var st=e0(Ai.left);if(st===void 0)return pi;var kt=st.parent,Ha=e.hasStaticModifier(e.Debug.checkDefined(st.valueDeclaration,"should always have a declaration"))?Jt(kt):Io(kt);return Xt(pi,Ha,Qi,lg)}function Wa(pi,Ai,Qi,it){var st=Ai===34||Ai===36,kt=Ai===34||Ai===35?98304:32768,Ha=ac(Qi),Tn=st!==it&&kf(Ha,function(Ca){return!!(Ca.flags&kt)})||st===it&&kf(Ha,function(Ca){return!(Ca.flags&(3|kt))});return Tn?$s(pi,2097152):pi}function Qt(pi,Ai,Qi,it){if(pi.flags&1)return pi;(Ai===35||Ai===37)&&(it=!it);var st=ac(Qi);if(it&&pi.flags&2&&(Ai===34||Ai===35)&&st.flags&65536)return ba([Ti,Nr]);if(pi.flags&2&&it&&(Ai===36||Ai===37))return st.flags&67239932?st:st.flags&524288?gt:pi;if(st.flags&98304){if(!ur)return pi;var kt=Ai===34||Ai===35,Ha=kt?it?262144:2097152:st.flags&65536?it?131072:1048576:it?65536:524288;return pi.flags&2&&Ha&3145728?mr:$s(pi,Ha)}if(it){var Tn=Ai===34?function(Ca){return Dh(Ca,st)||cI(Ca,st)}:function(Ca){return Dh(Ca,st)};return UE(pc(pi,Tn),st)}return Rl(st)?pc(pi,function(Ca){return!(cE(Ca)&&Dh(Ca,st))}):pi}function Qa(pi,Ai,Qi,it,st){(Qi===35||Qi===37)&&(st=!st);var kt=Jp(Ai.expression);if(!Ks(r,kt))return ur&&pg(kt,r)&&st===(it.text!=="undefined")?$s(pi,2097152):pi;if(pi.flags&1&&it.text==="function")return pi;if(st&&pi.flags&2&&it.text==="object")return pi===mr?gt:ba([gt,Ti]);var Ha=st?H.get(it.text)||128:se.get(it.text)||32768,Tn=ia(pi,it.text);return $s(st&&Tn?Cs(pi,Xn(Tn)):pi,Ha)}function En(pi,Ai,Qi,it,st){var kt=Qi!==it&&e.every(Lh(Ai).slice(Qi,it),st);return kt?$s(pi,2097152):pi}function Gn(pi,Ai,Qi,it){var st=Lh(Ai);if(!st.length)return pi;var kt=st.slice(Qi,it),Ha=Qi===it||e.contains(kt,St);if(pi.flags&2&&!Ha){for(var Tn=void 0,Ca=0;Ca<kt.length;Ca+=1){var kn=kt[Ca];if(kn.flags&67239932)Tn!==void 0&&Tn.push(kn);else if(kn.flags&524288)Tn===void 0&&(Tn=kt.slice(0,Ca)),Tn.push(gt);else return pi}return ba(Tn===void 0?kt:Tn)}var mo=ba(kt),Po=mo.flags&131072?St:UE(pc(pi,function(Wo){return Dh(mo,Wo)}),mo);if(!Ha)return Po;var ms=pc(pi,function(Wo){return!(cE(Wo)&&e.contains(st,Vc(rI(Wo))))});return Po.flags&131072?ms:ba([Po,ms])}function ia(pi,Ai){switch(Ai){case"function":return pi.flags&1?pi:Ka;case"object":return pi.flags&2?ba([gt,Ti]):pi;default:return Ja.get(Ai)}}function Xn(pi){return function(Ai){if(E_(Ai,pi))return Ai;if(E_(pi,Ai))return pi;if(Ai.flags&465829888){var Qi=Cc(Ai)||xe;if(E_(pi,Qi))return To([Ai,pi])}return Ai}}function ii(pi,Ai,Qi,it){var st=JE(Ai,!0);if(!st.length)return pi;var kt=e.findIndex(st,function(Wo){return Wo===void 0}),Ha=Qi===it||kt>=Qi&&kt<it,Tn,Ca;if(kt>-1){var kn=st.filter(function(Wo){return Wo!==void 0}),mo=kt<Qi?Qi-1:Qi,Po=kt<it?it-1:it;Tn=kn.slice(mo,Po),Ca=jb(mo,Po,kn,Ha)}else Tn=st.slice(Qi,it),Ca=jb(Qi,it,st,Ha);if(Ha)return pc(pi,function(Wo){return(np(Wo)&Ca)===Ca});var ms=$s(ba(Tn.map(function(Wo){return ia(pi,Wo)||pi})),Ca);return $s(Cs(pi,Xn(ms)),Ca)}function Ar(pi){return(e.isPropertyAccessExpression(pi)&&e.idText(pi.name)==="constructor"||e.isElementAccessExpression(pi)&&e.isStringLiteralLike(pi.argumentExpression)&&pi.argumentExpression.text==="constructor")&&Ks(r,pi.expression)}function Pt(pi,Ai,Qi,it){if(it?Ai!==34&&Ai!==36:Ai!==35&&Ai!==37)return pi;var st=ac(Qi);if(!yS(st)&&!Hd(st))return pi;var kt=tn(st,"prototype");if(!kt)return pi;var Ha=Jt(kt),Tn=At(Ha)?void 0:Ha;if(!Tn||Tn===Ht||Tn===Ka)return pi;if(At(pi))return Tn;return pc(pi,function(kn){return Ca(kn,Tn)});function Ca(kn,mo){return kn.flags&524288&&e.getObjectFlags(kn)&1||mo.flags&524288&&e.getObjectFlags(mo)&1?kn.symbol===mo.symbol:E_(kn,mo)}}function pt(pi,Ai,Qi){var it=Jp(Ai.left);if(!Ks(r,it))return Qi&&ur&&pg(it,r)?$s(pi,2097152):pi;var st=ac(Ai.right);if(!lg(st,Ka))return pi;var kt,Ha=tn(st,"prototype");if(Ha){var Tn=Jt(Ha);At(Tn)||(kt=Tn)}if(At(pi)&&(kt===Ht||kt===Ka))return pi;if(!kt){var Ca=za(st,1);kt=Ca.length?ba(e.map(Ca,function(mo){return So(wm(mo))})):tt}if(!Qi&&st.flags&1048576){var kn=e.find(st.types,function(mo){return!Hd(mo)});if(!kn)return pi}return Xt(pi,kt,Qi,lg)}function Xt(pi,Ai,Qi,it){if(!Qi)return pc(pi,function(kt){return!it(kt,Ai)});if(pi.flags&1048576){var st=pc(pi,function(kt){return it(kt,Ai)});if(!(st.flags&131072))return st}return E_(Ai,pi)?Ai:oo(pi,Ai)?pi:oo(Ai,pi)?Ai:To([pi,Ai])}function qt(pi,Ai,Qi){if(IE(Ai,r)){var it=Qi||!e.isCallChain(Ai)?jh(Ai):void 0,st=it&&wu(it);if(st&&(st.kind===0||st.kind===1))return Yt(pi,st,Ai,Qi)}if(kh(pi)&&e.isAccessExpression(r)&&e.isPropertyAccessExpression(Ai.expression)){var kt=Ai.expression;if(Ks(r.expression,Jp(kt.expression))&&e.isIdentifier(kt.name)&&kt.name.escapedText==="hasOwnProperty"&&Ai.arguments.length===1){var Ha=Ai.arguments[0];if(e.isStringLiteralLike(Ha)&&gd(r)===e.escapeLeadingUnderscores(Ha.text))return $s(pi,Qi?524288:65536)}}return pi}function Yt(pi,Ai,Qi,it){if(Ai.type&&!(At(pi)&&(Ai.type===Ht||Ai.type===Ka))){var st=rw(Ai,Qi);if(st){if(Ks(r,st))return Xt(pi,Ai.type,it,E_);ur&&it&&pg(st,r)&&!(np(Ai.type)&65536)&&(pi=$s(pi,2097152));var kt=Dn(st,pi);if(kt)return Ra(pi,kt,function(Ha){return Xt(Ha,Ai.type,it,E_)})}}return pi}function va(pi,Ai,Qi){if(e.isExpressionOfOptionalChainRoot(Ai)||e.isBinaryExpression(Ai.parent)&&Ai.parent.operatorToken.kind===60&&Ai.parent.left===Ai)return Ft(pi,Ai,Qi);switch(Ai.kind){case 79:if(!Ks(r,Ai)&&Ge<5){var it=dl(Ai);if(ty(it)){var st=it.valueDeclaration;if(st&&e.isVariableDeclaration(st)&&!st.type&&st.initializer&&VE(r)){Ge++;var kt=va(pi,st.initializer,Qi);return Ge--,kt}}}case 108:case 106:case 205:case 206:return On(pi,Ai,Qi);case 207:return qt(pi,Ai,Qi);case 211:case 229:return va(pi,Ai.expression,Qi);case 220:return Vi(pi,Ai,Qi);case 218:if(Ai.operator===53)return va(pi,Ai.operand,!Qi);break}return pi}function Ft(pi,Ai,Qi){if(Ks(r,Ai))return $s(pi,Qi?2097152:262144);var it=Dn(Ai,pi);return it?Ra(pi,it,function(st){return $s(st,Qi?2097152:262144)}):pi}}function tw(r,i){if(r=r.exportSymbol||r,(i.kind===79||i.kind===80)&&(e.isRightSideOfQualifiedNameOrPropertyAccess(i)&&(i=i.parent),e.isExpressionNode(i)&&(!e.isAssignmentTarget(i)||e.isWriteAccess(i)))){var t=ac(i);if($c(Da(i).resolvedSymbol)===r)return t}return e.isDeclarationName(i)&&e.isSetAccessor(i.parent)&&Wu(i.parent)?dt(i.parent.symbol,!0):Df(r)}function Hm(r){return e.findAncestor(r.parent,function(i){return e.isFunctionLike(i)&&!e.getImmediatelyInvokedFunctionExpression(i)||i.kind===261||i.kind===303||i.kind===166})}function Wh(r){if(!r.valueDeclaration)return!1;var i=e.getRootDeclaration(r.valueDeclaration).parent,t=Da(i);return t.flags&8388608||(t.flags|=8388608,aw(i)||KE(i)),r.isAssigned||!1}function aw(r){return!!e.findAncestor(r.parent,function(i){return(e.isFunctionLike(i)||e.isCatchClause(i))&&!!(Da(i).flags&8388608)})}function KE(r){if(r.kind===79){if(e.isAssignmentTarget(r)){var i=dl(r);e.isParameterOrCatchClauseVariable(i)&&(i.isAssigned=!0)}}else e.forEachChild(r,KE)}function ty(r){return r.flags&3&&(Yh(r)&2)!==0}function nw(r,i){if(ku(i.symbol,2)){var t=ur&&i.kind===163&&i.initializer&&Fu(r)&32768&&!(Fu(hn(i.initializer))&32768);return eu(),t?$s(r,524288):r}else return v_(i.symbol),r}function ow(r,i){var t=i.parent;return t.kind===205||t.kind===207&&t.expression===i||t.kind===206&&t.expression===i&&!(dg(r,cw)&&fd(ac(t.argumentExpression)))}function sw(r){return!!(r.flags&465829888&&rg(r).flags&1146880)}function cw(r){return!!(r.flags&465829888&&!ls(rg(r),98304))}function uw(r,i){var t=(e.isIdentifier(r)||e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r))&&!((e.isJsxOpeningElement(r.parent)||e.isJsxSelfClosingElement(r.parent))&&r.parent.tagName===r)&&(i&&i&32?Su(r,8):Su(r));return t&&!Rm(t)}function eb(r,i,t){var o=!(t&&t&2)&&dg(r,sw)&&(ow(r,i)||uw(i,t));return o?Cs(r,function(s){return s.flags&465829888?rg(s):s}):r}function GE(r){return!!e.findAncestor(r,function(i){var t=i.parent;return t===void 0?"quit":e.isExportAssignment(t)?t.expression===i&&e.isEntityNameExpression(i):e.isExportSpecifier(t)?t.name===i||t.propertyName===i:!1})}function qh(r,i){if(il(r,111551)&&!im(i)&&!gu(r)){var t=zo(r);t.flags&111551&&(ye.isolatedModules||e.shouldPreserveConstEnums(ye)&&GE(i)||!fv(t)?jf(r):sf(r))}}function lw(r,i){var t=r.valueDeclaration;if(t){if(e.isBindingElement(t)&&!t.initializer&&!t.dotDotDotToken&&t.parent.elements.length>=2){var o=t.parent.parent;if(o.kind===253&&e.getCombinedNodeFlags(t)&2||o.kind===163){var s=Da(i);if(!(s.flags&268435456)){s.flags|=268435456;var u=La(o,0);if(s.flags&=-268435457,u&&u.flags&1048576&&!(o.kind===163&&Wh(r))){var T=t.parent,q=op(T,u,u,void 0,i.flowNode);return q.flags&131072?St:Qs(t,q)}}}}if(e.isParameter(t)&&!t.type&&!t.initializer&&!t.dotDotDotToken){var fe=t.parent;if(fe.parameters.length>=2&&gD(fe)){var Ne=Qm(fe);if(Ne&&Ne.parameters.length===1&&U(Ne)){var $e=Jt(Ne.parameters[0]);if($e.flags&1048576&&kf($e,Ln)&&!Wh(r)){var q=op(fe,$e,$e,void 0,i.flowNode),Ze=fe.parameters.indexOf(t)-(e.getThisParameter(fe)?1:0);return Mc(q,xf(Ze))}}}}}return Jt(r)}function fw(r,i){if(e.isThisInTypeQuery(r))return ay(r);var t=dl(r);if(t===hr)return Oe;if(t===ci){if(CC(r))return Wr(r,e.Diagnostics.arguments_cannot_be_referenced_in_property_initializers),Oe;var o=e.getContainingFunction(r);return Se<2&&(o.kind===213?Wr(r,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):e.hasSyntacticModifier(o,256)&&Wr(r,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),Da(o).flags|=8192,Jt(t)}r.parent&&e.isPropertyAccessExpression(r.parent)&&r.parent.expression===r||qh(t,r);var s=$c(t),u=y6(s,r);Qc(u)&&Z1(r,u)&&u.declarations&&fu(r,u.declarations,r.escapedText);var T=s.valueDeclaration;if(T&&s.flags&32){if(T.kind===256&&e.nodeIsDecorated(T))for(var o=e.getContainingClass(r);o!==void 0;){if(o===T&&o.name!==r){Da(T).flags|=16777216,Da(r).flags|=33554432;break}o=e.getContainingClass(o)}else if(T.kind===225)for(var o=e.getThisContainer(r,!1);o.kind!==303;){if(o.parent===T){(e.isPropertyDeclaration(o)&&e.isStatic(o)||e.isClassStaticBlockDeclaration(o))&&(Da(T).flags|=16777216,Da(r).flags|=33554432);break}o=e.getThisContainer(o,!1)}}dw(r,t);var q=lw(s,r),fe=e.getAssignmentTargetKind(r);if(fe){if(!(s.flags&3)&&!(e.isInJSFile(r)&&s.flags&512)){var Ne=s.flags&384?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_enum:s.flags&32?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_class:s.flags&1536?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace:s.flags&16?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_function:s.flags&2097152?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_import:e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable;return Wr(r,Ne,Ga(t)),Oe}if(zl(s))return s.flags&3?Wr(r,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,Ga(t)):Wr(r,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Ga(t)),Oe}var $e=s.flags&2097152;if(s.flags&3){if(fe===1)return q}else if($e)T=ju(t);else return q;if(!T)return q;q=eb(q,r,i);for(var Ze=e.getRootDeclaration(T).kind===163,lr=Hm(T),yr=Hm(r),Zr=yr!==lr,ui=r.parent&&r.parent.parent&&e.isSpreadAssignment(r.parent)&&$D(r.parent.parent),Ii=t.flags&134217728;yr!==lr&&(yr.kind===212||yr.kind===213||e.isObjectLiteralOrClassExpressionMethodOrAccessor(yr))&&(ty(s)&&q!==Nt||Ze&&!Wh(s));)yr=Hm(yr);var Fi=Ze||$e||Zr||ui||Ii||e.isBindingElement(T)||q!==ze&&q!==Nt&&(!ur||(q.flags&16387)!==0||im(r)||r.parent.kind===274)||r.parent.kind===229||T.kind===253&&T.exclamationToken||T.flags&8388608,Ri=Fi?Ze?nw(q,T):q:q===ze||q===Nt?Nr:$f(q),Xi=op(r,q,Ri,yr);if(!WE(r)&&(q===ze||q===Nt)){if(Xi===ze||Xi===Nt)return Tr&&(Wr(e.getNameOfDeclaration(T),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Ga(t),ht(Xi)),Wr(r,e.Diagnostics.Variable_0_implicitly_has_an_1_type,Ga(t),ht(Xi))),uv(Xi)}else if(!Fi&&!(Fu(q)&32768)&&Fu(Xi)&32768)return Wr(r,e.Diagnostics.Variable_0_is_used_before_being_assigned,Ga(t)),q;return fe?Bl(Xi):Xi}function _w(r,i){return!!e.findAncestor(r,function(t){return t===i?"quit":e.isFunctionLike(t)||t.parent&&e.isPropertyDeclaration(t.parent)&&!e.hasStaticModifier(t.parent)&&t.parent.initializer===t})}function pw(r,i){return e.findAncestor(r,function(t){return t===i?"quit":t===i.initializer||t===i.condition||t===i.incrementor||t===i.statement})}function rb(r){return e.findAncestor(r,function(i){return!i||e.nodeStartsNewLexicalEnvironment(i)?"quit":e.isIterationStatement(i,!1)})}function dw(r,i){if(!(Se>=2||(i.flags&34)===0||!i.valueDeclaration||e.isSourceFile(i.valueDeclaration)||i.valueDeclaration.parent.kind===291)){var t=e.getEnclosingBlockScopeContainer(i.valueDeclaration),o=_w(r,t),s=rb(t);if(s){if(o){var u=!0;if(e.isForStatement(t)){var T=e.getAncestor(i.valueDeclaration,254);if(T&&T.parent===t){var q=pw(r.parent,t);if(q){var fe=Da(q);fe.flags|=131072;var Ne=fe.capturedBlockScopeBindings||(fe.capturedBlockScopeBindings=[]);e.pushIfUnique(Ne,i),q===t.initializer&&(u=!1)}}}u&&(Da(s).flags|=65536)}if(e.isForStatement(t)){var T=e.getAncestor(i.valueDeclaration,254);T&&T.parent===t&&mw(r,t)&&(Da(i.valueDeclaration).flags|=4194304)}Da(i.valueDeclaration).flags|=524288}o&&(Da(i.valueDeclaration).flags|=262144)}}function gw(r,i){var t=Da(r);return!!t&&e.contains(t.capturedBlockScopeBindings,It(i))}function mw(r,i){for(var t=r;t.parent.kind===211;)t=t.parent;var o=!1;if(e.isAssignmentTarget(t))o=!0;else if(t.parent.kind===218||t.parent.kind===219){var s=t.parent;o=s.operator===45||s.operator===46}return o?!!e.findAncestor(t,function(u){return u===i?"quit":u===i.statement}):!1}function ib(r,i){if(Da(r).flags|=2,i.kind===166||i.kind===170){var t=i.parent;Da(t).flags|=4}else Da(i).flags|=4}function HE(r){return e.isSuperCall(r)?r:e.isFunctionLike(r)?void 0:e.forEachChild(r,HE)}function XE(r){var i=It(r),t=Io(i),o=ef(t);return o===hi}function QE(r,i,t){var o=i.parent,s=e.getClassExtendsHeritageElement(o);s&&!XE(o)&&r.flowNode&&!zh(r.flowNode,!1)&&Wr(r,t)}function vw(r,i){e.isPropertyDeclaration(i)&&e.hasStaticModifier(i)&&i.initializer&&e.textRangeContainsPositionInclusive(i.initializer,r.pos)&&e.length(i.parent.decorators)&&Wr(r,e.Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function ay(r){var i=im(r),t=e.getThisContainer(r,!0),o=!1;switch(t.kind===170&&QE(r,t,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),t.kind===213&&(t=e.getThisContainer(t,!1),o=!0),vw(r,t),t.kind){case 260:Wr(r,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 259:Wr(r,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 170:YE(r,t)&&Wr(r,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 161:Wr(r,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name);break}!i&&o&&Se<2&&ib(r,t);var s=tb(r,!0,t);if(n){var u=Jt(Rr);if(s===u&&o)Wr(r,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!s){var T=Wr(r,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(t)){var q=tb(t);q&&q!==u&&e.addRelatedInfo(T,e.createDiagnosticForNode(t,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return s||xe}function tb(r,i,t){i===void 0&&(i=!0),t===void 0&&(t=e.getThisContainer(r,!1));var o=e.isInJSFile(r);if(e.isFunctionLike(t)&&(!ob(r)||e.getThisParameter(t))){var s=Ae(t)||o&&Dw(t);if(!s){var u=hw(t);if(o&&u){var T=hn(u).symbol;T&&T.members&&T.flags&16&&(s=Io(T).thisType)}else ml(t)&&(s=Io(Wn(t.symbol)).thisType);s||(s=ZE(t))}if(s)return op(r,s)}if(e.isClassLike(t.parent)){var q=It(t.parent),fe=e.isStatic(t)?Jt(q):Io(q).thisType;return op(r,fe)}if(e.isSourceFile(t))if(t.commonJsModuleIndicator){var Ne=It(t);return Ne&&Jt(Ne)}else{if(t.externalModuleIndicator)return Nr;if(i)return Jt(Rr)}}function yw(r){var i=e.getThisContainer(r,!1);if(e.isFunctionLike(i)){var t=Ku(i);if(t.thisParameter)return Jh(t.thisParameter)}if(e.isClassLike(i.parent)){var o=It(i.parent);return e.isStatic(i)?Jt(o):Io(o).thisType}}function hw(r){if(r.kind===212&&e.isBinaryExpression(r.parent)&&e.getAssignmentDeclarationKind(r.parent)===3)return r.parent.left.expression.expression;if(r.kind===168&&r.parent.kind===204&&e.isBinaryExpression(r.parent.parent)&&e.getAssignmentDeclarationKind(r.parent.parent)===6)return r.parent.parent.left.expression;if(r.kind===212&&r.parent.kind===294&&r.parent.parent.kind===204&&e.isBinaryExpression(r.parent.parent.parent)&&e.getAssignmentDeclarationKind(r.parent.parent.parent)===6)return r.parent.parent.parent.left.expression;if(r.kind===212&&e.isPropertyAssignment(r.parent)&&e.isIdentifier(r.parent.name)&&(r.parent.name.escapedText==="value"||r.parent.name.escapedText==="get"||r.parent.name.escapedText==="set")&&e.isObjectLiteralExpression(r.parent.parent)&&e.isCallExpression(r.parent.parent.parent)&&r.parent.parent.parent.arguments[2]===r.parent.parent&&e.getAssignmentDeclarationKind(r.parent.parent.parent)===9)return r.parent.parent.parent.arguments[0].expression;if(e.isMethodDeclaration(r)&&e.isIdentifier(r.name)&&(r.name.escapedText==="value"||r.name.escapedText==="get"||r.name.escapedText==="set")&&e.isObjectLiteralExpression(r.parent)&&e.isCallExpression(r.parent.parent)&&r.parent.parent.arguments[2]===r.parent&&e.getAssignmentDeclarationKind(r.parent.parent)===9)return r.parent.parent.arguments[0].expression}function Dw(r){var i=e.getJSDocType(r);if(i&&i.kind===315){var t=i;if(t.parameters.length>0&&t.parameters[0].name&&t.parameters[0].name.escapedText==="this")return Ua(t.parameters[0].type)}var o=e.getJSDocThisTag(r);if(o&&o.typeExpression)return Ua(o.typeExpression)}function YE(r,i){return!!e.findAncestor(r,function(t){return e.isFunctionLikeDeclaration(t)?"quit":t.kind===163&&t.parent===i})}function ab(r){var i=r.parent.kind===207&&r.parent.expression===r,t=e.getSuperContainer(r,!0),o=t,s=!1;if(!i)for(;o&&o.kind===213;)o=e.getSuperContainer(o,!0),s=Se<2;var u=Ze(o),T=0;if(!u){var q=e.findAncestor(r,function(lr){return lr===o?"quit":lr.kind===161});return q&&q.kind===161?Wr(r,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):i?Wr(r,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!o||!o.parent||!(e.isClassLike(o.parent)||o.parent.kind===204)?Wr(r,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):Wr(r,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),Oe}if(!i&&t.kind===170&&QE(r,o,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),e.isStatic(o)||i?(T=512,!i&&Se>=2&&Se<=8&&(e.isPropertyDeclaration(o)||e.isClassStaticBlockDeclaration(o))&&e.forEachEnclosingBlockScopeContainer(r.parent,function(lr){(!e.isSourceFile(lr)||e.isExternalOrCommonJsModule(lr))&&(Da(lr).flags|=134217728)})):T=256,Da(r).flags|=T,o.kind===168&&e.hasSyntacticModifier(o,256)&&(e.isSuperProperty(r.parent)&&e.isAssignmentTarget(r.parent)?Da(o).flags|=4096:Da(o).flags|=2048),s&&ib(r.parent,o),o.parent.kind===204)return Se<2?(Wr(r,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Oe):xe;var fe=o.parent;if(!e.getClassExtendsHeritageElement(fe))return Wr(r,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Oe;var Ne=Io(It(fe)),$e=Ne&&zc(Ne)[0];if(!$e)return Oe;if(o.kind===170&&YE(r,o))return Wr(r,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Oe;return T===512?ef(Ne):Wc($e,Ne.thisType);function Ze(lr){return lr?i?lr.kind===170:e.isClassLike(lr.parent)||lr.parent.kind===204?e.isStatic(lr)?lr.kind===168||lr.kind===167||lr.kind===171||lr.kind===172||lr.kind===166||lr.kind===169:lr.kind===168||lr.kind===167||lr.kind===171||lr.kind===172||lr.kind===166||lr.kind===165||lr.kind===170:!1:!1}}function bw(r){return(r.kind===168||r.kind===171||r.kind===172)&&r.parent.kind===204?r.parent:r.kind===212&&r.parent.kind===294?r.parent.parent:void 0}function $E(r){return e.getObjectFlags(r)&4&&r.target===Ei?Co(r)[0]:void 0}function Sw(r){return Cs(r,function(i){return i.flags&2097152?e.forEach(i.types,$E):$E(i)})}function ZE(r){if(r.kind!==213){if(gD(r)){var i=Qm(r);if(i){var t=i.thisParameter;if(t)return Jt(t)}}var o=e.isInJSFile(r);if(n||o){var s=bw(r);if(s){for(var u=jp(s),T=s,q=u;q;){var fe=Sw(q);if(fe)return gn(fe,UD(Xm(s)));if(T.parent.kind!==294)break;T=T.parent.parent,q=jp(T)}return Hc(u?C_(u):js(s))}var Ne=e.walkUpParenthesizedExpressions(r.parent);if(Ne.kind===220&&Ne.operatorToken.kind===63){var $e=Ne.left;if(e.isAccessExpression($e)){var Ze=$e.expression;if(o&&e.isIdentifier(Ze)){var lr=e.getSourceFileOfNode(Ne);if(lr.commonJsModuleIndicator&&dl(Ze)===lr.symbol)return}return Hc(js(Ze))}}}}}function eC(r){var i=r.parent;if(!!gD(i)){var t=e.getImmediatelyInvokedFunctionExpression(i);if(t&&t.arguments){var o=Ob(t),s=i.parameters.indexOf(r);if(r.dotDotDotToken)return wb(o,s,o.length,xe,void 0,0);var u=Da(t),T=u.resolvedSignature;u.resolvedSignature=go;var q=s<o.length?Lp(hn(o[s])):r.initializer?void 0:Ur;return u.resolvedSignature=T,q}var fe=Qm(i);if(fe){var Ne=i.parameters.indexOf(r)-(e.getThisParameter(i)?1:0);return r.dotDotDotToken&&e.lastOrUndefined(i.parameters)===r?um(fe,Ne):hd(fe,Ne)}}}function nb(r){var i=e.getEffectiveTypeAnnotationNode(r);if(i)return Ua(i);switch(r.kind){case 163:return eC(r);case 202:return Tw(r);case 166:if(e.isStatic(r))return xw(r)}}function Tw(r){var i=r.parent.parent,t=r.propertyName||r.name,o=nb(i)||i.kind!==202&&i.initializer&&vy(i,r.dotDotDotToken?32:0);if(!(!o||e.isBindingPattern(t)||e.isComputedNonLiteralName(t))){if(i.name.kind===201){var s=e.indexOfNode(r.parent.elements,r);return s<0?void 0:lb(o,s)}var u=$_(t);if(ul(u)){var T=Nl(u);return ai(o,T)}}}function xw(r){var i=e.isExpression(r.parent)&&Su(r.parent);if(!!i)return yd(i,It(r).escapedName)}function Ew(r,i){var t=r.parent;if(e.hasInitializer(t)&&r===t.initializer){var o=nb(t);if(o)return o;if(!(i&8)&&e.isBindingPattern(t.name))return cl(t.name,!0,!1)}}function Cw(r){var i=e.getContainingFunction(r);if(i){var t=sb(i);if(t){var o=e.getFunctionFlags(i);if(o&1){var s=o&2?2:1,u=xy(t,s,void 0);if(!u)return;t=u.returnType}if(o&2){var T=Cs(t,k_);return T&&ba([T,uk(T)])}return t}}}function kw(r,i){var t=Su(r,i);if(t){var o=k_(t);return o&&ba([o,uk(o)])}}function Aw(r){var i=e.getContainingFunction(r);if(i){var t=e.getFunctionFlags(i),o=sb(i);if(o)return r.asteriskToken?o:Sg(0,o,(t&2)!==0)}}function ob(r){for(var i=!1;r.parent&&!e.isFunctionLike(r.parent);){if(e.isParameter(r.parent)&&(i||r.parent.initializer===r))return!0;e.isBindingElement(r.parent)&&r.parent.initializer===r&&(i=!0),r=r.parent}return!1}function rC(r,i){var t=!!(e.getFunctionFlags(i)&2),o=sb(i);if(o)return Sg(r,o,t)||void 0}function sb(r){var i=ag(r);if(i)return i;var t=_b(r);if(t&&!R1(t))return So(t);var o=e.getImmediatelyInvokedFunctionExpression(r);if(o)return Su(o)}function iC(r,i){var t=Ob(r),o=t.indexOf(i);return o===-1?void 0:cb(r,o)}function cb(r,i){if(e.isImportCall(r))return i===0?ki:i===1?ix(!1):xe;var t=Da(r).resolvedSignature===Ko?Ko:sm(r);if(e.isJsxOpeningLikeElement(r)&&i===0)return Hh(t,r);var o=t.parameters.length-1;return U(t)&&i>=o?Mc(Jt(t.parameters[o]),xf(i-o),256):Hu(t,i)}function Pw(r,i){if(r.parent.kind===209)return iC(r.parent,i)}function Nw(r,i){var t=r.parent,o=t.left,s=t.operatorToken,u=t.right;switch(s.kind){case 63:case 76:case 75:case 77:return r===u?ww(t):void 0;case 56:case 60:var T=Su(t,i);return r===u&&(T&&T.pattern||!T&&!e.isDefaultedExpandoInitializer(t))?ac(o):T;case 55:case 27:return r===u?Su(t,i):void 0;default:return}}function Iw(r){if(r.symbol)return r.symbol;if(e.isIdentifier(r))return dl(r);if(e.isPropertyAccessExpression(r)){var i=ac(r.expression);return e.isPrivateIdentifier(r.name)?t(i,r.name):tn(i,r.name.escapedText)}return;function t(o,s){var u=Zh(s.escapedText,s);return u&&Tb(o,u)}}function ww(r){var i,t,o=e.getAssignmentDeclarationKind(r);switch(o){case 0:case 4:var s=Iw(r.left),u=s&&s.valueDeclaration;if(u&&(e.isPropertyDeclaration(u)||e.isPropertySignature(u))){var T=e.getEffectiveTypeAnnotationNode(u);return T&&gn(Ua(T),Ma(s).mapper)||u.initializer&&ac(r.left)}return o===0?ac(r.left):tC(r);case 5:if(Vh(r,o))return tC(r);if(r.left.symbol){var q=r.left.symbol.valueDeclaration;if(!q)return;var fe=e.cast(r.left,e.isAccessExpression),T=e.getEffectiveTypeAnnotationNode(q);if(T)return Ua(T);if(e.isIdentifier(fe.expression)){var Ne=fe.expression,$e=os(Ne,Ne.escapedText,111551,void 0,Ne.escapedText,!0);if($e){var Ze=$e.valueDeclaration&&e.getEffectiveTypeAnnotationNode($e.valueDeclaration);if(Ze){var lr=e.getElementOrPropertyAccessName(fe);if(lr!==void 0)return yd(Ua(Ze),lr)}return}}return e.isInJSFile(q)?void 0:ac(r.left)}else return ac(r.left);case 1:case 6:case 3:var yr=(i=r.left.symbol)===null||i===void 0?void 0:i.valueDeclaration;case 2:yr||(yr=(t=r.symbol)===null||t===void 0?void 0:t.valueDeclaration);var Zr=yr&&e.getEffectiveTypeAnnotationNode(yr);return Zr?Ua(Zr):void 0;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(o)}}function Vh(r,i){if(i===void 0&&(i=e.getAssignmentDeclarationKind(r)),i===4)return!0;if(!e.isInJSFile(r)||i!==5||!e.isIdentifier(r.left.expression))return!1;var t=r.left.expression.escapedText,o=os(r.left,t,111551,void 0,void 0,!0,!0);return e.isThisInitializedDeclaration(o==null?void 0:o.valueDeclaration)}function tC(r){if(!r.symbol)return ac(r.left);if(r.symbol.valueDeclaration){var i=e.getEffectiveTypeAnnotationNode(r.symbol.valueDeclaration);if(i){var t=Ua(i);if(t)return t}}var o=e.cast(r.left,e.isAccessExpression);if(!!e.isObjectLiteralMethod(e.getThisContainer(o.expression,!1))){var s=ay(o.expression),u=e.getElementOrPropertyAccessName(o);return u!==void 0&&yd(s,u)||void 0}}function Ow(r){return!!(e.getCheckFlags(r)&262144&&!r.type&&vf(r,0)>=0)}function yd(r,i,t){return Cs(r,function(o){var s;if(Fc(o)){var u=Iu(o),T=Cc(u)||u,q=t||Ou(e.unescapeLeadingUnderscores(i));if(oo(q,T))return _h(o,q)}else if(o.flags&3670016){var fe=tn(o,i);if(fe)return Ow(fe)?void 0:Jt(fe);if(Ln(o)){var Ne=zm(o);if(Ne&&e.isNumericLiteralName(i)&&+i>=0)return Ne}return(s=gs(X_(o),t||Ou(e.unescapeLeadingUnderscores(i))))===null||s===void 0?void 0:s.type}},!0)}function Fw(r,i){if(e.Debug.assert(e.isObjectLiteralMethod(r)),!(r.flags&16777216))return ub(r,i)}function ub(r,i){var t=r.parent,o=e.isPropertyAssignment(r)&&nb(r);if(o)return o;var s=jp(t,i);if(s){if(Pp(r)){var u=It(r);return yd(s,u.escapedName,Ma(u).nameType)}if(r.name){var T=$_(r.name);return Cs(s,function(q){var fe;return(fe=gs(X_(q),T))===null||fe===void 0?void 0:fe.type},!0)}}}function lb(r,i){return r&&(yd(r,""+i)||Cs(r,function(t){return aS(1,t,Nr,void 0,!1)},!0))}function Mw(r,i){var t=r.parent;return r===t.whenTrue||r===t.whenFalse?Su(t,i):void 0}function Lw(r,i){var t=jp(r.openingElement.tagName),o=Qh(yg(r));if(!!(t&&!At(t)&&o&&o!=="")){var s=e.getSemanticJsxChildren(r.children),u=s.indexOf(i),T=yd(t,o);return T&&(s.length===1?T:Cs(T,function(q){return ap(q)?Mc(q,xf(u)):q},!0))}}function Rw(r){var i=r.parent;return e.isJsxAttributeLike(i)?Su(r):e.isJsxElement(i)?Lw(i,r):void 0}function aC(r){if(e.isJsxAttribute(r)){var i=jp(r.parent);return!i||At(i)?void 0:yd(i,r.name.escapedText)}else return Su(r.parent)}function ny(r){switch(r.kind){case 10:case 8:case 9:case 14:case 110:case 95:case 104:case 79:case 152:return!0;case 205:case 211:return ny(r.expression);case 287:return!r.expression||ny(r.expression)}return!1}function Bw(r,i){return OI(i,r)||xD(i,e.concatenate(e.map(e.filter(r.properties,function(t){return!!t.symbol&&t.kind===294&&ny(t.initializer)&&Km(i,t.symbol.escapedName)}),function(t){return[function(){return yy(t.initializer)},t.symbol.escapedName]}),e.map(e.filter(_o(i),function(t){var o;return!!(t.flags&16777216)&&!!(!((o=r==null?void 0:r.symbol)===null||o===void 0)&&o.members)&&!r.symbol.members.has(t.escapedName)&&Km(i,t.escapedName)}),function(t){return[function(){return Nr},t.escapedName]})),oo,i)}function Jw(r,i){return xD(i,e.concatenate(e.map(e.filter(r.properties,function(t){return!!t.symbol&&t.kind===284&&Km(i,t.symbol.escapedName)&&(!t.initializer||ny(t.initializer))}),function(t){return[t.initializer?function(){return yy(t.initializer)}:function(){return Rt},t.symbol.escapedName]}),e.map(e.filter(_o(i),function(t){var o;return!!(t.flags&16777216)&&!!(!((o=r==null?void 0:r.symbol)===null||o===void 0)&&o.members)&&!r.symbol.members.has(t.escapedName)&&Km(i,t.escapedName)}),function(t){return[function(){return Nr},t.escapedName]})),oo,i)}function jp(r,i){var t=e.isObjectLiteralMethod(r)?Fw(r,i):Su(r,i),o=Kh(t,r,i);if(o&&!(i&&i&2&&o.flags&8650752)){var s=Cs(o,$,!0);return s.flags&1048576&&e.isObjectLiteralExpression(r)?Bw(r,s):s.flags&1048576&&e.isJsxAttributes(r)?Jw(r,s):s}}function Kh(r,i,t){if(r&&ls(r,465829888)){var o=Xm(i);if(o&&e.some(o.inferences,Ud)){if(t&&t&1)return Gh(r,o.nonFixingMapper);if(o.returnMapper)return Gh(r,o.returnMapper)}}return r}function Gh(r,i){return r.flags&465829888?gn(r,i):r.flags&1048576?ba(e.map(r.types,function(t){return Gh(t,i)}),0):r.flags&2097152?To(e.map(r.types,function(t){return Gh(t,i)})):r}function Su(r,i){if(r.flags&16777216)return;if(r.contextualType)return r.contextualType;var t=r.parent;switch(t.kind){case 253:case 163:case 166:case 165:case 202:return Ew(r,i);case 213:case 246:return Cw(r);case 223:return Aw(t);case 217:return kw(t,i);case 207:case 208:return iC(t,r);case 210:case 228:return e.isConstTypeReference(t.type)?T(t):Ua(t.type);case 220:return Nw(r,i);case 294:case 295:return ub(t,i);case 296:return Su(t.parent,i);case 203:{var o=t,s=jp(o,i);return lb(s,e.indexOfNode(o.elements,r))}case 221:return Mw(r,i);case 232:return e.Debug.assert(t.parent.kind===222),Pw(t.parent,r);case 211:{var u=e.isInJSFile(t)?e.getJSDocTypeTag(t):void 0;return u?e.isJSDocTypeTag(u)&&e.isConstTypeReference(u.typeExpression.type)?T(t):Ua(u.typeExpression.type):Su(t,i)}case 229:return Su(t,i);case 287:return Rw(t);case 284:case 286:return aC(t);case 279:case 278:return jw(t,i)}return;function T(q){return Su(q)}}function Xm(r){var i=e.findAncestor(r,function(t){return!!t.inferenceContext});return i&&i.inferenceContext}function jw(r,i){return e.isJsxOpeningElement(r)&&r.parent.contextualType&&i!==4?r.parent.contextualType:cb(r,0)}function Hh(r,i){return zC(i)!==0?Uw(r,i):qw(r,i)}function Uw(r,i){var t=Jb(r,We);t=nC(i,yg(i),t);var o=Up(w.IntrinsicAttributes,i);return ra(o)||(t=eg(o,t)),t}function zw(r,i){if(r.compositeSignatures){for(var t=[],o=0,s=r.compositeSignatures;o<s.length;o++){var u=s[o],T=So(u);if(At(T))return T;var q=ai(T,i);if(!q)return;t.push(q)}return To(t)}var fe=So(r);return At(fe)?fe:ai(fe,i)}function Ww(r){if(am(r.tagName)){var i=dC(r),t=s0(r,i);return qg(t)}var o=js(r.tagName);if(o.flags&128){var i=pC(o,r);if(!i)return Oe;var t=s0(r,i);return qg(t)}return o}function nC(r,i,t){var o=u5(i);if(o){var s=Io(o),u=Ww(r);if(o.flags&524288){var T=Ma(o).typeParameters;if(e.length(T)>=2){var q=S_([u,t],T,2,e.isInJSFile(r));return Kg(o,q)}}if(e.length(s.typeParameters)>=2){var q=S_([u,t],s.typeParameters,2,e.isInJSFile(r));return Hf(s,q)}}return t}function qw(r,i){var t=yg(i),o=l5(t),s=o===void 0?Jb(r,We):o===""?So(r):zw(r,o);if(!s)return!!o&&!!e.length(i.attributes.properties)&&Wr(i,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(o)),We;if(s=nC(i,t,s),At(s))return s;var u=s,T=Up(w.IntrinsicClassAttributes,i);if(!ra(T)){var q=Sf(T.symbol),fe=So(r);u=eg(q?Hf(T,S_([fe],q,Ol(q),e.isInJSFile(i))):T,u)}var Ne=Up(w.IntrinsicAttributes,i);return ra(Ne)||(u=eg(Ne,u)),u}function Vw(r){return e.getStrictOptionValue(ye,"noImplicitAny")?e.reduceLeft(r,function(i,t){return i===t||!i?i:Iv(i.typeParameters,t.typeParameters)?Hw(i,t):void 0}):void 0}function Kw(r,i,t){if(!r||!i)return r||i;var o=ba([Jt(r),gn(Jt(i),t)]);return Jd(r,o)}function Gw(r,i,t){for(var o=Lc(r),s=Lc(i),u=o>=s?r:i,T=u===r?i:r,q=u===r?o:s,fe=Ul(r)||Ul(i),Ne=fe&&!Ul(u),$e=new Array(q+(Ne?1:0)),Ze=0;Ze<q;Ze++){var lr=hd(u,Ze);u===i&&(lr=gn(lr,t));var yr=hd(T,Ze)||We;T===i&&(yr=gn(yr,t));var Zr=ba([lr,yr]),ui=fe&&!Ne&&Ze===q-1,Ii=Ze>=jl(u)&&Ze>=jl(T),Fi=Ze>=o?void 0:cm(r,Ze),Ri=Ze>=s?void 0:cm(i,Ze),Xi=Fi===Ri?Fi:Fi?Ri?void 0:Fi:Ri,ea=bo(1|(Ii&&!ui?16777216:0),Xi||"arg".concat(Ze));ea.type=ui?tc(Zr):Zr,$e[Ze]=ea}if(Ne){var lt=bo(1,"args");lt.type=tc(Hu(T,q)),T===i&&(lt.type=gn(lt.type,t)),$e[q]=lt}return $e}function Hw(r,i){var t=r.typeParameters||i.typeParameters,o;r.typeParameters&&i.typeParameters&&(o=Kc(i.typeParameters,r.typeParameters));var s=r.declaration,u=Gw(r,i,o),T=Kw(r.thisParameter,i.thisParameter,o),q=Math.max(r.minArgumentCount,i.minArgumentCount),fe=Pu(s,t,T,u,void 0,void 0,q,(r.flags|i.flags)&39);return fe.compositeKind=2097152,fe.compositeSignatures=e.concatenate(r.compositeKind===2097152&&r.compositeSignatures||[r],[i]),o&&(fe.mapper=r.compositeKind===2097152&&r.mapper&&r.compositeSignatures?pd(r.mapper,o):o),fe}function fb(r,i){var t=za(r,0),o=e.filter(t,function(s){return!Xw(s,i)});return o.length===1?o[0]:Vw(o)}function Xw(r,i){for(var t=0;t<i.parameters.length;t++){var o=i.parameters[t];if(o.initializer||o.questionToken||o.dotDotDotToken||Nm(o))break}return i.parameters.length&&e.parameterIsThisKeyword(i.parameters[0])&&t--,!Ul(r)&&Lc(r)<t}function _b(r){return e.isFunctionExpressionOrArrowFunction(r)||e.isObjectLiteralMethod(r)?Qm(r):void 0}function Qm(r){e.Debug.assert(r.kind!==168||e.isObjectLiteralMethod(r));var i=Wg(r);if(i)return i;var t=jp(r,1);if(!!t){if(!(t.flags&1048576))return fb(t,r);for(var o,s=t.types,u=0,T=s;u<T.length;u++){var q=T[u],fe=fb(q,r);if(fe)if(!o)o=[fe];else if(Yv(o[0],fe,!1,!0,!0,jm))o.push(fe);else return}if(o)return o.length===1?o[0]:Wy(o[0],o)}}function Qw(r,i){Se<2&&dc(r,ye.downlevelIteration?1536:1024);var t=hn(r.expression,i);return P_(33,t,Nr,r.expression)}function Yw(r){return r.isSpread?Mc(r.type,Ui):r.type}function tm(r){return r.kind===202&&!!r.initializer||r.kind===220&&r.operatorToken.kind===63}function oC(r,i,t){for(var o=r.elements,s=o.length,u=[],T=[],q=jp(r),fe=e.isAssignmentTarget(r),Ne=lm(r),$e=!1,Ze=0;Ze<s;Ze++){var lr=o[Ze];if(lr.kind===224){Se<2&&dc(lr,ye.downlevelIteration?1536:1024);var yr=hn(lr.expression,i,t);if(ap(yr))u.push(yr),T.push(8);else if(fe){var Zr=fl(yr,Ui)||aS(65,yr,Nr,void 0,!1)||We;u.push(Zr),T.push(4)}else u.push(P_(33,yr,Nr,lr.expression)),T.push(4)}else if(Ce&&lr.kind===226)$e=!0,u.push(mi),T.push(2);else{var ui=lb(q,u.length),Ii=fm(lr,i,ui,t);u.push(Ec(Ii,!0,$e)),T.push($e?2:1)}}return fe?Ml(u,T):t||Ne||q&&dg(q,Zg)?sC(Ml(u,T,Ne)):sC(tc(u.length?ba(e.sameMap(u,function(Fi,Ri){return T[Ri]&8?Z_(Fi,Ui)||xe:Fi}),2):ur?Yi:Ur,Ne))}function sC(r){if(!(e.getObjectFlags(r)&4))return r;var i=r.literalType;return i||(i=r.literalType=zT(r),i.objectFlags|=294912),i}function $w(r){switch(r.kind){case 161:return Zw(r);case 79:return e.isNumericLiteralName(r.escapedText);case 8:case 10:return e.isNumericLiteralName(r.text);default:return!1}}function Zw(r){return ws(Zf(r),296)}function Zf(r){var i=Da(r.expression);if(!i.resolvedType){if((e.isTypeLiteralNode(r.parent.parent)||e.isClassLike(r.parent.parent)||e.isInterfaceDeclaration(r.parent.parent))&&e.isBinaryExpression(r.expression)&&r.expression.operatorToken.kind===101&&r.parent.kind!==171&&r.parent.kind!==172)return i.resolvedType=Oe;if(i.resolvedType=hn(r.expression),e.isPropertyDeclaration(r.parent)&&!e.hasStaticModifier(r.parent)&&e.isClassExpression(r.parent.parent)){var t=e.getEnclosingBlockScopeContainer(r.parent.parent),o=rb(t);o&&(Da(o).flags|=65536,Da(r).flags|=524288,Da(r.parent.parent).flags|=524288)}(i.resolvedType.flags&98304||!ws(i.resolvedType,402665900)&&!oo(i.resolvedType,Bt))&&Wr(r,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return i.resolvedType}function e5(r){var i,t=(i=r.declarations)===null||i===void 0?void 0:i[0];return e.isNumericLiteralName(r.escapedName)||t&&e.isNamedDeclaration(t)&&$w(t.name)}function cC(r){var i,t=(i=r.declarations)===null||i===void 0?void 0:i[0];return e.isKnownSymbol(r)||t&&e.isNamedDeclaration(t)&&e.isComputedPropertyName(t.name)&&ws(Zf(t.name),4096)}function pb(r,i,t,o){for(var s=[],u=i;u<t.length;u++){var T=t[u];(o===ki&&!cC(T)||o===Ui&&e5(T)||o===ua&&cC(T))&&s.push(Jt(t[u]))}var q=s.length?ba(s,2):Nr;return Fl(o,q,lm(r))}function db(r){e.Debug.assert((r.flags&2097152)!==0,"Should only get Alias here.");var i=Ma(r);if(!i.immediateTarget){var t=ju(r);if(!t)return e.Debug.fail();i.immediateTarget=of(t,!0)}return i.immediateTarget}function r5(r,i){var t=e.isAssignmentTarget(r);C9(r,t);for(var o=ur?e.createSymbolTable():void 0,s=e.createSymbolTable(),u=[],T=tt,q=jp(r),fe=q&&q.pattern&&(q.pattern.kind===200||q.pattern.kind===204),Ne=lm(r),$e=Ne?8:0,Ze=e.isInJSFile(r)&&!e.isInJsonFile(r),lr=e.getJSDocEnumTag(r),yr=!q&&Ze&&!lr,Zr=Pr,ui=!1,Ii=!1,Fi=!1,Ri=!1,Xi=0,ea=r.properties;Xi<ea.length;Xi++){var lt=ea[Xi];lt.name&&e.isComputedPropertyName(lt.name)&&Zf(lt.name)}for(var Ia=0,fa=0,Dn=r.properties;fa<Dn.length;fa++){var Ra=Dn[fa],Bn=It(Ra),Jn=Ra.name&&Ra.name.kind===161?Zf(Ra.name):void 0;if(Ra.kind===294||Ra.kind===295||e.isObjectLiteralMethod(Ra)){var On=Ra.kind===294?Sk(Ra,i):Ra.kind===295?fm(!t&&Ra.objectAssignmentInitializer?Ra.objectAssignmentInitializer:Ra.name,i):Tk(Ra,i);if(Ze){var Ao=Au(Ra);Ao?(Gc(On,Ao,Ra),On=Ao):lr&&lr.typeExpression&&Gc(On,Ua(lr.typeExpression),Ra)}Zr|=e.getObjectFlags(On)&917504;var $i=Jn&&ul(Jn)?Jn:void 0,Vi=$i?bo(4|Bn.flags,Nl($i),$e|4096):bo(4|Bn.flags,Bn.escapedName,$e);if($i&&(Vi.nameType=$i),t){var Ot=Ra.kind===294&&tm(Ra.initializer)||Ra.kind===295&&Ra.objectAssignmentInitializer;Ot&&(Vi.flags|=16777216)}else if(fe&&!(e.getObjectFlags(q)&512)){var Wa=tn(q,Bn.escapedName);Wa?Vi.flags|=Wa.flags&16777216:!ye.suppressExcessPropertyErrors&&!kc(q,ki)&&Wr(Ra.name,e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Ga(Bn),ht(q))}Vi.declarations=Bn.declarations,Vi.parent=Bn.parent,Bn.valueDeclaration&&(Vi.valueDeclaration=Bn.valueDeclaration),Vi.type=On,Vi.target=Bn,Bn=Vi,o==null||o.set(Vi.escapedName,Vi)}else if(Ra.kind===296){Se<2&&dc(Ra,2),u.length>0&&(T=Fp(T,Gn(),r.symbol,Zr,Ne),u=[],s=e.createSymbolTable(),Ii=!1,Fi=!1,Ri=!1);var On=Lt(hn(Ra.expression));if(oy(On)){var Qt=oD(On,Ne);if(o&&lC(Qt,o,Ra),Ia=u.length,ra(T))continue;T=Fp(T,Qt,r.symbol,Zr,Ne)}else Wr(Ra,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),T=Oe;continue}else e.Debug.assert(Ra.kind===171||Ra.kind===172),lv(Ra);Jn&&!(Jn.flags&8576)?oo(Jn,Bt)&&(oo(Jn,Ui)?Fi=!0:oo(Jn,ua)?Ri=!0:Ii=!0,t&&(ui=!0)):s.set(Bn.escapedName,Bn),u.push(Bn)}if(fe&&r.parent.kind!==296)for(var Qa=0,En=_o(q);Qa<En.length;Qa++){var Vi=En[Qa];!s.get(Vi.escapedName)&&!tn(T,Vi.escapedName)&&(Vi.flags&16777216||Wr(Vi.valueDeclaration||Vi.bindingElement,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),s.set(Vi.escapedName,Vi),u.push(Vi))}if(ra(T))return Oe;if(T!==tt)return u.length>0&&(T=Fp(T,Gn(),r.symbol,Zr,Ne),u=[],s=e.createSymbolTable(),Ii=!1,Fi=!1),Cs(T,function(ia){return ia===tt?Gn():ia});return Gn();function Gn(){var ia=[];Ii&&ia.push(pb(r,Ia,u,ki)),Fi&&ia.push(pb(r,Ia,u,Ui)),Ri&&ia.push(pb(r,Ia,u,ua));var Xn=_s(r.symbol,s,e.emptyArray,e.emptyArray,ia);return Xn.objectFlags|=Zr|128|262144,yr&&(Xn.objectFlags|=8192),ui&&(Xn.objectFlags|=512),t&&(Xn.pattern=r),Xn}}function oy(r){var i=_E(Cs(r,rg));return!!(i.flags&126615553||i.flags&3145728&&e.every(i.types,oy))}function i5(r){yb(r)}function t5(r,i){return lv(r),sy(r)||xe}function a5(r){yb(r.openingElement),am(r.closingElement.tagName)?mb(r.closingElement):hn(r.closingElement.tagName),Xh(r)}function n5(r,i){return lv(r),sy(r)||xe}function o5(r){yb(r.openingFragment);var i=e.getSourceFileOfNode(r);return e.getJSXTransformEnabled(ye)&&(ye.jsxFactory||i.pragmas.has("jsx"))&&!ye.jsxFragmentFactory&&!i.pragmas.has("jsxfrag")&&Wr(r,ye.jsxFactory?e.Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:e.Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),Xh(r),sy(r)||xe}function gb(r){return e.stringContains(r,"-")}function am(r){return r.kind===79&&e.isIntrinsicJsxName(r.escapedText)}function uC(r,i){return r.initializer?fm(r.initializer,i):Rt}function s5(r,i){for(var t=r.attributes,o=ur?e.createSymbolTable():void 0,s=e.createSymbolTable(),u=ta,T=!1,q,fe=!1,Ne=2048,$e=Qh(yg(r)),Ze=0,lr=t.properties;Ze<lr.length;Ze++){var yr=lr[Ze],Zr=yr.symbol;if(e.isJsxAttribute(yr)){var ui=uC(yr,i);Ne|=e.getObjectFlags(ui)&917504;var Ii=bo(4|Zr.flags,Zr.escapedName);Ii.declarations=Zr.declarations,Ii.parent=Zr.parent,Zr.valueDeclaration&&(Ii.valueDeclaration=Zr.valueDeclaration),Ii.type=ui,Ii.target=Zr,s.set(Ii.escapedName,Ii),o==null||o.set(Ii.escapedName,Ii),yr.name.escapedText===$e&&(fe=!0)}else{e.Debug.assert(yr.kind===286),s.size>0&&(u=Fp(u,fa(),t.symbol,Ne,!1),s=e.createSymbolTable());var ui=Lt(js(yr.expression,i));At(ui)&&(T=!0),oy(ui)?(u=Fp(u,ui,t.symbol,Ne,!1),o&&lC(ui,o,yr)):q=q?To([q,ui]):ui}}T||s.size>0&&(u=Fp(u,fa(),t.symbol,Ne,!1));var Fi=r.parent.kind===277?r.parent:void 0;if(Fi&&Fi.openingElement===r&&Fi.children.length>0){var Ri=Xh(Fi,i);if(!T&&$e&&$e!==""){fe&&Wr(t,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores($e));var Xi=jp(r.attributes),ea=Xi&&yd(Xi,$e),lt=bo(4,$e);lt.type=Ri.length===1?Ri[0]:ea&&dg(ea,Zg)?Ml(Ri):tc(ba(Ri)),lt.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores($e),void 0,void 0),e.setParent(lt.valueDeclaration,t),lt.valueDeclaration.symbol=lt;var Ia=e.createSymbolTable();Ia.set($e,lt),u=Fp(u,_s(t.symbol,Ia,e.emptyArray,e.emptyArray,e.emptyArray),t.symbol,Ne,!1)}}if(T)return xe;if(q&&u!==ta)return To([q,u]);return q||(u===ta?fa():u);function fa(){Ne|=Pr;var Dn=_s(t.symbol,s,e.emptyArray,e.emptyArray,e.emptyArray);return Dn.objectFlags|=Ne|128|262144,Dn}}function Xh(r,i){for(var t=[],o=0,s=r.children;o<s.length;o++){var u=s[o];if(u.kind===11)u.containsOnlyTriviaWhiteSpaces||t.push(ki);else{if(u.kind===287&&!u.expression)continue;t.push(fm(u,i))}}return t}function lC(r,i,t){for(var o=0,s=_o(r);o<s.length;o++){var u=s[o];if(!(u.flags&16777216)){var T=i.get(u.escapedName);if(T){var q=Wr(T.valueDeclaration,e.Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,e.unescapeLeadingUnderscores(T.escapedName));e.addRelatedInfo(q,e.createDiagnosticForNode(t,e.Diagnostics.This_spread_always_overwrites_this_property))}}}}function c5(r,i){return s5(r.parent,i)}function Up(r,i){var t=yg(i),o=t&&Ns(t),s=o&&Pc(o,r,788968);return s?Io(s):Oe}function mb(r){var i=Da(r);if(!i.resolvedSymbol){var t=Up(w.IntrinsicElements,r);if(ra(t))return Tr&&Wr(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(w.IntrinsicElements)),i.resolvedSymbol=hr;if(!e.isIdentifier(r.tagName))return e.Debug.fail();var o=tn(t,r.tagName.escapedText);if(o)return i.jsxFlags|=1,i.resolvedSymbol=o;var s=fl(t,ki);return s?(i.jsxFlags|=2,i.resolvedSymbol=t.symbol):(Wr(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(r.tagName),"JSX."+w.IntrinsicElements),i.resolvedSymbol=hr)}return i.resolvedSymbol}function vb(r){var i=r&&e.getSourceFileOfNode(r),t=i&&Da(i);if(!(t&&t.jsxImplicitImportContainer===!1)){if(t&&t.jsxImplicitImportContainer)return t.jsxImplicitImportContainer;var o=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(ye,i),ye);if(!!o){var s=e.getEmitModuleResolutionKind(ye)===e.ModuleResolutionKind.Classic,u=s?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations,T=ou(r,o,u,r),q=T&&T!==hr?Wn(Qo(T)):void 0;return t&&(t.jsxImplicitImportContainer=q||!1),q}}}function yg(r){var i=r&&Da(r);if(i&&i.jsxNamespace)return i.jsxNamespace;if(!i||i.jsxNamespace!==!1){var t=vb(r);if(!t||t===hr){var o=no(r);t=os(r,o,1920,void 0,o,!1)}if(t){var s=Qo(Pc(Ns(Qo(t)),w.JSX,1920));if(s&&s!==hr)return i&&(i.jsxNamespace=s),s}i&&(i.jsxNamespace=!1)}var u=Qo(Om(w.JSX,1920,void 0));if(u!==hr)return u}function fC(r,i){var t=i&&Pc(i.exports,r,788968),o=t&&Io(t),s=o&&_o(o);if(s){if(s.length===0)return"";if(s.length===1)return s[0].escapedName;s.length>1&&t.declarations&&Wr(t.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(r))}}function u5(r){return r&&Pc(r.exports,w.LibraryManagedAttributes,788968)}function l5(r){return fC(w.ElementAttributesPropertyNameContainer,r)}function Qh(r){return fC(w.ElementChildrenAttributeNameContainer,r)}function _C(r,i){if(r.flags&4)return[go];if(r.flags&128){var t=pC(r,i);if(t){var o=s0(i,t);return[o]}else return Wr(i,e.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,"JSX."+w.IntrinsicElements),e.emptyArray}var s=$(r),u=za(s,1);return u.length===0&&(u=za(s,0)),u.length===0&&s.flags&1048576&&(u=Nv(e.map(s.types,function(T){return _C(T,i)}))),u}function pC(r,i){var t=Up(w.IntrinsicElements,i);if(!ra(t)){var o=r.value,s=tn(t,e.escapeLeadingUnderscores(o));if(s)return Jt(s);var u=fl(t,ki);return u||void 0}return xe}function f5(r,i,t){if(r===1){var o=mC(t);o&&pl(i,o,Sr,t.tagName,e.Diagnostics.Its_return_type_0_is_not_a_valid_JSX_element,T)}else if(r===0){var s=gC(t);s&&pl(i,s,Sr,t.tagName,e.Diagnostics.Its_instance_type_0_is_not_a_valid_JSX_element,T)}else{var o=mC(t),s=gC(t);if(!o||!s)return;var u=ba([o,s]);pl(i,u,Sr,t.tagName,e.Diagnostics.Its_element_type_0_is_not_a_valid_JSX_element,T)}function T(){var q=e.getTextOfNode(t.tagName);return e.chainDiagnosticMessages(void 0,e.Diagnostics._0_cannot_be_used_as_a_JSX_component,q)}}function dC(r){e.Debug.assert(am(r.tagName));var i=Da(r);if(!i.resolvedJsxElementAttributesType){var t=mb(r);return i.jsxFlags&1?i.resolvedJsxElementAttributesType=Jt(t)||Oe:i.jsxFlags&2?i.resolvedJsxElementAttributesType=fl(Up(w.IntrinsicElements,r),ki)||Oe:i.resolvedJsxElementAttributesType=Oe}return i.resolvedJsxElementAttributesType}function gC(r){var i=Up(w.ElementClass,r);if(!ra(i))return i}function sy(r){return Up(w.Element,r)}function mC(r){var i=sy(r);if(i)return ba([i,Ti])}function _5(r){var i=Up(w.IntrinsicElements,r);return i?_o(i):e.emptyArray}function p5(r){(ye.jsx||0)===0&&Wr(r,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),sy(r)===void 0&&Tr&&Wr(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function yb(r){var i=e.isJsxOpeningLikeElement(r);if(i&&k9(r),p5(r),!vb(r)){var t=ya&&ye.jsx===2?e.Diagnostics.Cannot_find_name_0:void 0,o=no(r),s=i?r.tagName:r,u=void 0;if(e.isJsxOpeningFragment(r)&&o==="null"||(u=os(s,o,111551,t,o,!0)),u&&(u.isReferenced=67108863,u.flags&2097152&&!gu(u)&&jf(u)),e.isJsxOpeningFragment(r)){var T=e.getSourceFileOfNode(r),q=Go(T);q&&os(s,q,111551,t,q,!0)}}if(i){var fe=r,Ne=sm(fe);u0(Ne,r),f5(zC(fe),So(Ne),fe)}}function hb(r,i,t){if(r.flags&524288){if(D_(r,i)||Np(r,i)||Yd(i)&&kc(r,ki)||t&&gb(i))return!0}else if(r.flags&3145728&&cy(r))for(var o=0,s=r.types;o<s.length;o++){var u=s[o];if(hb(u,i,t))return!0}return!1}function cy(r){return!!(r.flags&524288&&!(e.getObjectFlags(r)&512)||r.flags&67108864||r.flags&1048576&&e.some(r.types,cy)||r.flags&2097152&&e.every(r.types,cy))}function d5(r,i){if(P9(r),r.expression){var t=hn(r.expression,i);return r.dotDotDotToken&&t!==xe&&!_c(t)&&Wr(r,e.Diagnostics.JSX_spread_child_must_be_an_array_type),t}else return Oe}function Yh(r){return r.valueDeclaration?e.getCombinedNodeFlags(r.valueDeclaration):0}function Db(r){if(r.flags&8192||e.getCheckFlags(r)&4)return!0;if(e.isInJSFile(r.valueDeclaration)){var i=r.valueDeclaration.parent;return i&&e.isBinaryExpression(i)&&e.getAssignmentDeclarationKind(i)===3}}function bb(r,i,t,o,s,u){u===void 0&&(u=!0);var T=u?r.kind===160?r.right:r.kind===199?r:r.kind===202&&r.propertyName?r.propertyName:r.name:void 0;return vC(r,i,t,o,s,T)}function vC(r,i,t,o,s,u){var T=e.getDeclarationModifierFlagsFromSymbol(s,t);if(i){if(Se<2&&yC(s))return u&&Wr(u,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(T&128)return u&&Wr(u,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Ga(s),ht(Bd(s))),!1}if(T&128&&yC(s)&&(e.isThisProperty(r)||e.isThisInitializedObjectBindingExpression(r)||e.isObjectBindingPattern(r.parent)&&e.isThisInitializedDeclaration(r.parent.parent))){var q=e.getClassLikeDeclarationOfSymbol(Rs(s));if(q&&EM(r))return u&&Wr(u,e.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Ga(s),e.getTextOfIdentifierOrLiteral(q.name)),!1}if(!(T&24))return!0;if(T&8){var q=e.getClassLikeDeclarationOfSymbol(Rs(s));return dS(r,q)?!0:(u&&Wr(u,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,Ga(s),ht(Bd(s))),!1)}if(i)return!0;var fe=k6(r,function(Ze){var lr=Io(It(Ze));return K8(lr,s,t)?lr:void 0});if(!fe){var Ne=void 0;if(T&32||!(Ne=g5(r))||!Ne.type)return u&&Wr(u,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Ga(s),ht(Bd(s)||o)),!1;var $e=Ua(Ne.type);fe=($e.flags&262144?qc($e):$e).target}return T&32?!0:(o.flags&262144&&(o=o.isThisType?qc(o):Cc(o)),!o||!nd(o,fe)?(u&&Wr(u,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Ga(s),ht(fe),ht(o)),!1):!0)}function g5(r){var i=e.getThisContainer(r,!1);return i&&e.isFunctionLike(i)?e.getThisParameter(i):void 0}function yC(r){return!!Hv(r,function(i){return!(i.flags&8192)})}function nm(r){return gl(hn(r),r)}function $h(r){return!!((ur?Fu(r):r.flags)&98304)}function Sb(r){return $h(r)?C_(r):r}function m5(r,i){Wr(r,i&32768?i&65536?e.Diagnostics.Object_is_possibly_null_or_undefined:e.Diagnostics.Object_is_possibly_undefined:e.Diagnostics.Object_is_possibly_null)}function v5(r,i){Wr(r,i&32768?i&65536?e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null)}function hC(r,i,t){if(ur&&r.flags&2)return Wr(i,e.Diagnostics.Object_is_of_type_unknown),Oe;var o=(ur?Fu(r):r.flags)&98304;if(o){t(i,o);var s=C_(r);return s.flags&229376?Oe:s}return r}function gl(r,i){return hC(r,i,m5)}function DC(r,i){var t=gl(r,i);return t.flags&16384&&Wr(i,e.Diagnostics.Object_is_possibly_undefined),t}function bC(r,i){return r.flags&32?y5(r,i):xb(r,r.expression,nm(r.expression),r.name,i)}function y5(r,i){var t=hn(r.expression),o=Wm(t,r.expression);return Ch(xb(r,r.expression,gl(o,r.expression),r.name,i),r,o!==t)}function SC(r,i){var t=e.isPartOfTypeQuery(r)&&e.isThisIdentifier(r.left)?gl(ay(r.left),r.left):nm(r.left);return xb(r,r.left,t,r.right,i)}function TC(r){for(;r.parent.kind===211;)r=r.parent;return e.isCallOrNewExpression(r.parent)&&r.parent.expression===r}function Zh(r,i){for(var t=e.getContainingClass(i);t;t=e.getContainingClass(t)){var o=t.symbol,s=e.getSymbolNameForPrivateIdentifier(o,r),u=o.members&&o.members.get(s)||o.exports&&o.exports.get(s);if(u)return u}}function h5(r){if(!e.getContainingClass(r))return vt(r,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);if(!e.isForInStatement(r.parent)){if(!e.isExpressionNode(r))return vt(r,e.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);var i=e.isBinaryExpression(r.parent)&&r.parent.operatorToken.kind===101;if(!e0(r)&&!i)return vt(r,e.Diagnostics.Cannot_find_name_0,e.idText(r))}return!1}function D5(r){h5(r);var i=e0(r);return i&&ly(i,void 0,!1),xe}function e0(r){if(!!e.isExpressionNode(r)){var i=Da(r);return i.resolvedSymbol===void 0&&(i.resolvedSymbol=Zh(r.escapedText,r)),i.resolvedSymbol}}function Tb(r,i){return tn(r,i.escapedName)}function b5(r,i,t){var o,s=_o(r);s&&e.forEach(s,function(Ze){var lr=Ze.valueDeclaration;if(lr&&e.isNamedDeclaration(lr)&&e.isPrivateIdentifier(lr.name)&&lr.name.escapedText===i.escapedText)return o=Ze,!0});var u=Nc(i);if(o){var T=e.Debug.checkDefined(o.valueDeclaration),q=e.Debug.checkDefined(e.getContainingClass(T));if(t!=null&&t.valueDeclaration){var fe=t.valueDeclaration,Ne=e.getContainingClass(fe);if(e.Debug.assert(!!Ne),e.findAncestor(Ne,function(Ze){return q===Ze})){var $e=Wr(i,e.Diagnostics.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,u,ht(r));return e.addRelatedInfo($e,e.createDiagnosticForNode(fe,e.Diagnostics.The_shadowing_declaration_of_0_is_defined_here,u),e.createDiagnosticForNode(T,e.Diagnostics.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,u)),!0}}return Wr(i,e.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,u,Nc(q.name||O)),!0}return!1}function xC(r,i){return(Ie(i)||e.isThisProperty(r)&&kr(i))&&e.getThisContainer(r,!0)===Hr(i)}function xb(r,i,t,o,s){var u=Da(i).resolvedSymbol,T=e.getAssignmentTargetKind(r),q=$(T!==0||TC(r)?Hc(t):t),fe=At(q)||q===Ci,Ne;if(e.isPrivateIdentifier(o)){Se<99&&(T!==0&&dc(r,1048576),T!==1&&dc(r,524288));var $e=Zh(o.escapedText,o);if(T&&$e&&$e.valueDeclaration&&e.isMethodDeclaration($e.valueDeclaration)&&vt(o,e.Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,e.idText(o)),fe){if($e)return ra(q)?Oe:q;if(!e.getContainingClass(o))return vt(o,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),xe}if(Ne=$e?Tb(t,$e):void 0,!Ne&&b5(t,o,$e))return Oe;var Ze=Ne&&Ne.flags&65536&&!(Ne.flags&32768);Ze&&T!==1&&Wr(r,e.Diagnostics.Private_accessor_was_defined_without_a_getter)}else{if(fe)return e.isIdentifier(i)&&u&&qh(u,r),ra(q)?Oe:q;Ne=tn(q,o.escapedText)}e.isIdentifier(i)&&u&&(ye.isolatedModules||!(Ne&&fv(Ne))||e.shouldPreserveConstEnums(ye)&&GE(r))&&qh(u,r);var lr;if(Ne){Qc(Ne)&&Z1(r,Ne)&&Ne.declarations&&fu(o,Ne.declarations,o.escapedText),S5(Ne,r,o),ly(Ne,r,IC(i,u)),Da(r).resolvedSymbol=Ne;var ui=e.isWriteAccess(r);if(bb(r,i.kind===106,ui,q,Ne),mk(r,Ne,T))return Wr(o,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,e.idText(o)),Oe;lr=xC(r,Ne)?ze:ui?Ap(Ne):Jt(Ne)}else{var yr=!e.isPrivateIdentifier(o)&&(T===0||!Md(t)||e.isThisTypeParameter(t))?Np(q,o.escapedText):void 0;if(!(yr&&yr.type)){var Zr=Eb(r,t.symbol,!0);return!Zr&&Lm(t)?xe:t.symbol===Rr?(Rr.exports.has(o.escapedText)&&Rr.exports.get(o.escapedText).flags&418?Wr(o,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(o.escapedText),ht(t)):Tr&&Wr(o,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,ht(t)),xe):(o.escapedText&&!M_(r)&&kC(o,e.isThisTypeParameter(t)?q:t,Zr),Oe)}yr.isReadonly&&(e.isAssignmentTarget(r)||e.isDeleteTarget(r))&&Wr(r,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,ht(q)),lr=ye.noUncheckedIndexedAccess&&!e.isAssignmentTarget(r)?ba([yr.type,Nr]):yr.type,ye.noPropertyAccessFromIndexSignature&&e.isPropertyAccessExpression(r)&&Wr(o,e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,e.unescapeLeadingUnderscores(o.escapedText))}return EC(r,Ne,lr,o,s)}function Eb(r,i,t){var o=e.getSourceFileOfNode(r);if(o&&ye.checkJs===void 0&&o.checkJsDirective===void 0&&(o.scriptKind===1||o.scriptKind===2)){var s=e.forEach(i==null?void 0:i.declarations,e.getSourceFileOfNode);return!(o!==s&&!!s&&Ju(s))&&!(t&&i&&i.flags&32)&&!(!!r&&t&&e.isPropertyAccessExpression(r)&&r.expression.kind===108)}return!1}function EC(r,i,t,o,s){var u=e.getAssignmentTargetKind(r);if(u===1)return _g(t,!!(i&&i.flags&16777216));if(i&&!(i.flags&98311)&&!(i.flags&8192&&t.flags&1048576)&&!C0(i.declarations))return t;if(t===ze)return zt(r,i);t=eb(t,r,s);var T=!1;if(ur&&Br&&e.isAccessExpression(r)&&r.expression.kind===108){var q=i&&i.valueDeclaration;if(q&&d6(q)&&!e.isStatic(q)){var fe=Hm(r);fe.kind===170&&fe.parent===q.parent&&!(q.flags&8388608)&&(T=!0)}}else ur&&i&&i.valueDeclaration&&e.isPropertyAccessExpression(i.valueDeclaration)&&e.getAssignmentDeclarationPropertyAccessKind(i.valueDeclaration)&&Hm(r)===Hm(i.valueDeclaration)&&(T=!0);var Ne=op(r,t,T?$f(t):t);return T&&!(Fu(t)&32768)&&Fu(Ne)&32768?(Wr(o,e.Diagnostics.Property_0_is_used_before_being_assigned,Ga(i)),t):u?Bl(Ne):Ne}function S5(r,i,t){var o=r.valueDeclaration;if(!(!o||e.getSourceFileOfNode(i).isDeclarationFile)){var s,u=e.idText(t);CC(i)&&!Im(o)&&!(e.isAccessExpression(i)&&e.isAccessExpression(i.expression))&&!wf(o,t)&&(ye.useDefineForClassFields||!T5(r))?s=Wr(t,e.Diagnostics.Property_0_is_used_before_its_initialization,u):o.kind===256&&i.parent.kind!==177&&!(o.flags&8388608)&&!wf(o,t)&&(s=Wr(t,e.Diagnostics.Class_0_used_before_its_declaration,u)),s&&e.addRelatedInfo(s,e.createDiagnosticForNode(o,e.Diagnostics._0_is_declared_here,u))}}function CC(r){return!!e.findAncestor(r,function(i){switch(i.kind){case 166:return!0;case 294:case 168:case 171:case 172:case 296:case 161:case 232:case 287:case 284:case 285:case 286:case 279:case 227:case 290:return!1;case 213:case 237:return e.isBlock(i.parent)&&e.isClassStaticBlockDeclaration(i.parent.parent)?!0:"quit";default:return e.isExpressionNode(i)?!1:"quit"}})}function T5(r){if(!(r.parent.flags&32))return!1;for(var i=Jt(r.parent);;){if(i=i.symbol&&x5(i),!i)return!1;var t=tn(i,r.escapedName);if(t&&t.valueDeclaration)return!0}}function x5(r){var i=zc(r);if(i.length!==0)return To(i)}function kC(r,i,t){var o,s;if(!e.isPrivateIdentifier(r)&&i.flags&1048576&&!(i.flags&131068))for(var u=0,T=i.types;u<T.length;u++){var q=T[u];if(!tn(q,r.escapedText)&&!Np(q,r.escapedText)){o=e.chainDiagnosticMessages(o,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(r),ht(q));break}}if(AC(r.escapedText,i)){var fe=e.declarationNameToString(r),Ne=ht(i);o=e.chainDiagnosticMessages(o,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,fe,Ne,Ne+"."+fe)}else{var $e=nv(i);if($e&&tn($e,r.escapedText))o=e.chainDiagnosticMessages(o,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(r),ht(i)),s=e.createDiagnosticForNode(r,e.Diagnostics.Did_you_forget_to_use_await);else{var Ze=e.declarationNameToString(r),lr=ht(i),yr=k5(Ze,i);if(yr!==void 0)o=e.chainDiagnosticMessages(o,e.Diagnostics.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,Ze,lr,yr);else{var Zr=Cb(r,i);if(Zr!==void 0){var ui=e.symbolName(Zr),Ii=t?e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2:e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2;o=e.chainDiagnosticMessages(o,Ii,Ze,lr,ui),s=Zr.valueDeclaration&&e.createDiagnosticForNode(Zr.valueDeclaration,e.Diagnostics._0_is_declared_here,ui)}else{var Fi=E5(i)?e.Diagnostics.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:e.Diagnostics.Property_0_does_not_exist_on_type_1;o=e.chainDiagnosticMessages(us(o,i),Fi,Ze,lr)}}}}var Ri=e.createDiagnosticForNodeFromMessageChain(r,o);s&&e.addRelatedInfo(Ri,s),Ws(!t||o.code!==e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,Ri)}function E5(r){return ye.lib&&!ye.lib.includes("dom")&&GI(r,function(i){return i.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(e.unescapeLeadingUnderscores(i.symbol.escapedName))})&&Ef(r)}function AC(r,i){var t=i.symbol&&tn(Jt(i.symbol),r);return t!==void 0&&!!t.valueDeclaration&&e.isStatic(t.valueDeclaration)}function C5(r){for(var i=Nc(r),t=e.getScriptTargetFeatures(),o=e.getOwnKeys(t),s=0,u=o;s<u.length;s++){var T=u[s],q=e.getOwnKeys(t[T]);if(q!==void 0&&e.contains(q,i))return T}}function k5(r,i){var t=$(i).symbol;if(!!t)for(var o=e.getScriptTargetFeatures(),s=e.getOwnKeys(o),u=0,T=s;u<T.length;u++){var q=T[u],fe=o[q],Ne=fe[e.symbolName(t)];if(Ne!==void 0&&e.contains(Ne,r))return q}}function PC(r,i){return uy(r,_o(i),106500)}function Cb(r,i){var t=_o(i);if(typeof r!="string"){var o=r.parent;e.isPropertyAccessExpression(o)&&(t=e.filter(t,function(s){return wC(o,i,s)})),r=e.idText(r)}return uy(r,t,111551)}function NC(r,i){var t=e.isString(r)?r:e.idText(r),o=_o(i),s=t==="for"?e.find(o,function(u){return e.symbolName(u)==="htmlFor"}):t==="class"?e.find(o,function(u){return e.symbolName(u)==="className"}):void 0;return s!=null?s:uy(t,o,111551)}function kb(r,i){var t=Cb(r,i);return t&&e.symbolName(t)}function Ab(r,i,t){e.Debug.assert(i!==void 0,"outername should always be defined");var o=el(r,i,t,void 0,i,!1,!1,!0,function(s,u,T){e.Debug.assertEqual(i,u,"name should equal outerName");var q=Pc(s,u,T);if(q)return q;var fe;if(s===Lr){var Ne=e.mapDefined(["string","number","boolean","object","bigint","symbol"],function($e){return s.has($e.charAt(0).toUpperCase()+$e.slice(1))?bo(524288,$e):void 0});fe=Ne.concat(e.arrayFrom(s.values()))}else fe=e.arrayFrom(s.values());return uy(e.unescapeLeadingUnderscores(u),fe,T)});return o}function A5(r,i,t){var o=Ab(r,i,t);return o&&e.symbolName(o)}function r0(r,i){return i.exports&&uy(e.idText(r),_f(i),2623475)}function P5(r,i){var t=r0(r,i);return t&&e.symbolName(t)}function N5(r,i,t){function o(T){var q=D_(r,T);if(q){var fe=jd(Jt(q));return!!fe&&jl(fe)>=1&&oo(t,Hu(fe,0))}return!1}var s=e.isAssignmentTarget(i)?"set":"get";if(!!o(s)){var u=e.tryGetPropertyAccessOrIdentifierToString(i.expression);return u===void 0?u=s:u+="."+s,u}}function I5(r,i){var t=i.types.filter(function(o){return!!(o.flags&128)});return e.getSpellingSuggestion(r.value,t,function(o){return o.value})}function uy(r,i,t){return e.getSpellingSuggestion(r,i,o);function o(s){var u=e.symbolName(s);if(!e.startsWith(u,'"')){if(s.flags&t)return u;if(s.flags&2097152){var T=Ro(s);if(T&&T.flags&t)return u}}}}function ly(r,i,t){var o=r&&r.flags&106500&&r.valueDeclaration;if(!!o){var s=e.hasEffectiveModifier(o,8),u=r.valueDeclaration&&e.isNamedDeclaration(r.valueDeclaration)&&e.isPrivateIdentifier(r.valueDeclaration.name);if(!(!s&&!u)&&!(i&&e.isWriteOnlyAccess(i)&&!(r.flags&65536))){if(t){var T=e.findAncestor(i,e.isFunctionLikeDeclaration);if(T&&T.symbol===r)return}(e.getCheckFlags(r)&1?Ma(r).target:r).isReferenced=67108863}}}function IC(r,i){return r.kind===108||!!i&&e.isEntityNameExpression(r)&&i===dl(e.getFirstIdentifier(r))}function w5(r,i){switch(r.kind){case 205:return Pb(r,r.expression.kind===106,i,Hc(hn(r.expression)));case 160:return Pb(r,!1,i,Hc(hn(r.left)));case 199:return Pb(r,!1,i,Ua(r))}}function wC(r,i,t){return Nb(r,r.kind===205&&r.expression.kind===106,!1,i,t)}function Pb(r,i,t,o){if(At(o))return!0;var s=tn(o,t);return!!s&&Nb(r,i,!1,o,s)}function Nb(r,i,t,o,s){if(At(o))return!0;if(s.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(s.valueDeclaration)){var u=e.getContainingClass(s.valueDeclaration);return!e.isOptionalChain(r)&&!!e.findAncestor(r,function(T){return T===u})}return vC(r,i,t,o,s)}function O5(r){var i=r.initializer;if(i.kind===254){var t=i.declarations[0];if(t&&!e.isBindingPattern(t.name))return It(t)}else if(i.kind===79)return dl(i)}function F5(r){return Js(r).length===1&&!!kc(r,Ui)}function M5(r){var i=e.skipParentheses(r);if(i.kind===79){var t=dl(i);if(t.flags&3)for(var o=r,s=r.parent;s;){if(s.kind===242&&o===s.statement&&O5(s)===t&&F5(ac(s.expression)))return!0;o=s,s=s.parent}}return!1}function L5(r,i){return r.flags&32?R5(r,i):OC(r,nm(r.expression),i)}function R5(r,i){var t=hn(r.expression),o=Wm(t,r.expression);return Ch(OC(r,gl(o,r.expression),i),r,o!==t)}function OC(r,i,t){var o=e.getAssignmentTargetKind(r)!==0||TC(r)?Hc(i):i,s=r.argumentExpression,u=hn(s);if(ra(o)||o===Ci)return o;if(Wb(o)&&!e.isStringLiteralLike(s))return Wr(s,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Oe;var T=M5(s)?Ui:u,q=e.isAssignmentTarget(r)?4|(Md(o)&&!e.isThisTypeParameter(o)?2:0):32,fe=Z_(o,T,q,r)||Oe;return Lk(EC(r,Da(r).resolvedSymbol,fe,s,t),r)}function FC(r){return e.isCallOrNewExpression(r)||e.isTaggedTemplateExpression(r)||e.isJsxOpeningLikeElement(r)}function hg(r){return FC(r)&&e.forEach(r.typeArguments,$n),r.kind===209?hn(r.template):e.isJsxOpeningLikeElement(r)?hn(r.attributes):r.kind!==164&&e.forEach(r.arguments,function(i){hn(i)}),go}function Jl(r){return hg(r),ro}function B5(r,i,t){var o,s,u=0,T,q=-1,fe;e.Debug.assert(!i.length);for(var Ne=0,$e=r;Ne<$e.length;Ne++){var Ze=$e[Ne],lr=Ze.declaration&&It(Ze.declaration),yr=Ze.declaration&&Ze.declaration.parent;!s||lr===s?o&&yr===o?T=T+1:(o=yr,T=u):(T=u=i.length,o=yr),s=lr,z(Ze)?(q++,fe=q,u++):fe=T,i.splice(fe,0,t?m1(Ze,t):Ze)}}function i0(r){return!!r&&(r.kind===224||r.kind===231&&r.isSpread)}function t0(r){return e.findIndex(r,i0)}function MC(r){return!!(r.flags&16384)}function J5(r){return!!(r.flags&49155)}function a0(r,i,t,o){o===void 0&&(o=!1);var s,u=!1,T=Lc(t),q=jl(t);if(r.kind===209)if(s=i.length,r.template.kind===222){var fe=e.last(r.template.templateSpans);u=e.nodeIsMissing(fe.literal)||!!fe.literal.isUnterminated}else{var Ne=r.template;e.Debug.assert(Ne.kind===14),u=!!Ne.isUnterminated}else if(r.kind===164)s=qC(r,t);else if(e.isJsxOpeningLikeElement(r)){if(u=r.attributes.end===r.end,u)return!0;s=q===0?i.length:1,T=i.length===0?T:1,q=Math.min(q,1)}else if(r.arguments){s=o?i.length+1:i.length,u=r.arguments.end===r.end;var $e=t0(i);if($e>=0)return $e>=jl(t)&&(Ul(t)||$e<Lc(t))}else return e.Debug.assert(r.kind===208),jl(t)===0;if(!Ul(t)&&s>T)return!1;if(u||s>=q)return!0;for(var Ze=s;Ze<q;Ze++){var lr=Hu(t,Ze);if(pc(lr,e.isInJSFile(r)&&!ur?J5:MC).flags&131072)return!1}return!0}function LC(r,i){var t=e.length(r.typeParameters),o=Ol(r.typeParameters);return!e.some(i)||i.length>=o&&i.length<=t}function jd(r){return Ym(r,0,!1)}function RC(r){return Ym(r,0,!1)||Ym(r,1,!1)}function Ym(r,i,t){if(r.flags&524288){var o=Vu(r);if(t||o.properties.length===0&&o.indexInfos.length===0){if(i===0&&o.callSignatures.length===1&&o.constructSignatures.length===0)return o.callSignatures[0];if(i===1&&o.constructSignatures.length===1&&o.callSignatures.length===0)return o.constructSignatures[0]}}}function BC(r,i,t,o){var s=qm(r.typeParameters,r,0,o),u=Zm(i),T=t&&(u&&u.flags&262144?t.nonFixingMapper:t.mapper),q=T?ug(i,T):i;return RD(q,r,function(fe,Ne){Cf(s.inferences,fe,Ne)}),t||BD(i,r,function(fe,Ne){Cf(s.inferences,fe,Ne,128)}),jv(r,HD(s),e.isInJSFile(i.declaration))}function j5(r,i,t,o){var s=Hh(i,r),u=bg(r.attributes,s,o,t);return Cf(o.inferences,u,s),HD(o)}function JC(r){if(!r)return Vt;var i=hn(r);return e.isOptionalChainRoot(r.parent)?C_(i):e.isOptionalChain(r.parent)?FD(i):i}function Ib(r,i,t,o,s){if(e.isJsxOpeningLikeElement(r))return j5(r,i,o,s);if(r.kind!==164){var u=Su(r,e.every(i.typeParameters,function(Dn){return!!H_(Dn)})?8:0);if(u){var T=Xm(r),q=UD(dI(T,1)),fe=gn(u,q),Ne=jd(fe),$e=Ne&&Ne.typeParameters?qg(B1(Ne,Ne.typeParameters)):fe,Ze=So(i);Cf(s.inferences,$e,Ze,128);var lr=qm(i.typeParameters,i,s.flags),yr=gn(u,T&&T.returnMapper);Cf(lr.inferences,yr,Ze),s.returnMapper=e.some(lr.inferences,Ud)?UD(gI(lr)):void 0}}var Zr=ev(i),ui=Zr?Math.min(Lc(i)-1,t.length):t.length;if(Zr&&Zr.flags&262144){var Ii=e.find(s.inferences,function(Dn){return Dn.typeParameter===Zr});Ii&&(Ii.impliedArity=e.findIndex(t,i0,ui)<0?t.length-ui:void 0)}var Fi=ld(i);if(Fi){var Ri=WC(r);Cf(s.inferences,JC(Ri),Fi)}for(var Xi=0;Xi<ui;Xi++){var ea=t[Xi];if(ea.kind!==226){var lt=Hu(i,Xi),Ia=bg(ea,lt,s,o);Cf(s.inferences,Ia,lt)}}if(Zr){var fa=wb(t,ui,t.length,Zr,s,o);Cf(s.inferences,fa,Zr)}return HD(s)}function jC(r){return r.flags&1048576?Cs(r,jC):r.flags&1||Th(Cc(r)||r)?r:Ln(r)?Ml(Co(r),r.target.elementFlags,!1,r.target.labeledElementDeclarations):Ml([r],[8])}function wb(r,i,t,o,s,u){if(i>=t-1){var T=r[t-1];if(i0(T))return jC(T.kind===231?T.type:bg(T.expression,o,s,u))}for(var q=[],fe=[],Ne=[],$e=i;$e<t;$e++){var T=r[$e];if(i0(T)){var Ze=T.kind===231?T.type:hn(T.expression);ap(Ze)?(q.push(Ze),fe.push(8)):(q.push(P_(33,Ze,Nr,T.kind===224?T.expression:T)),fe.push(4))}else{var lr=Mc(o,xf($e-i),256),yr=bg(T,lr,s,u),Zr=ls(lr,406978556);q.push(Zr?Vc(yr):Lp(yr)),fe.push(1)}T.kind===231&&T.tupleNameSource&&Ne.push(T.tupleNameSource)}return Ml(q,fe,!1,e.length(Ne)===e.length(q)?Ne:void 0)}function UC(r,i,t,o){for(var s=e.isInJSFile(r.declaration),u=r.typeParameters,T=S_(e.map(i,Ua),u,Ol(u),s),q,fe=0;fe<i.length;fe++){e.Debug.assert(u[fe]!==void 0,"Should not call checkTypeArguments with too many type arguments");var Ne=qc(u[fe]);if(Ne){var $e=t&&o?function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)}:void 0,Ze=o||e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1;q||(q=Kc(u,T));var lr=T[fe];if(!Gc(lr,Wc(gn(Ne,q),lr),t?i[fe]:void 0,Ze,$e))return}}return T}function zC(r){if(am(r.tagName))return 2;var i=$(hn(r.tagName));return e.length(za(i,1))?0:e.length(za(i,0))?1:2}function U5(r,i,t,o,s,u,T){var q=Hh(i,r),fe=bg(r.attributes,q,void 0,o);return Ne()&&vD(fe,q,t,s?r.tagName:void 0,r.attributes,void 0,u,T);function Ne(){var $e;if(vb(r))return!0;var Ze=e.isJsxOpeningElement(r)||e.isJsxSelfClosingElement(r)&&!am(r.tagName)?hn(r.tagName):void 0;if(!Ze)return!0;var lr=za(Ze,0);if(!e.length(lr))return!0;var yr=L6(r);if(!yr)return!0;var Zr=Ps(yr,111551,!0,!1,r);if(!Zr)return!0;var ui=Jt(Zr),Ii=za(ui,0);if(!e.length(Ii))return!0;for(var Fi=!1,Ri=0,Xi=0,ea=Ii;Xi<ea.length;Xi++){var lt=ea[Xi],Ia=Hu(lt,0),fa=za(Ia,0);if(!!e.length(fa))for(var Dn=0,Ra=fa;Dn<Ra.length;Dn++){var Bn=Ra[Dn];if(Fi=!0,Ul(Bn))return!0;var Jn=Lc(Bn);Jn>Ri&&(Ri=Jn)}}if(!Fi)return!0;for(var On=1/0,Ao=0,$i=lr;Ao<$i.length;Ao++){var Vi=$i[Ao],Ot=jl(Vi);Ot<On&&(On=Ot)}if(On<=Ri)return!0;if(s){var Wa=e.createDiagnosticForNode(r.tagName,e.Diagnostics.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,e.entityNameToString(r.tagName),On,e.entityNameToString(yr),Ri),Qt=($e=Xu(r.tagName))===null||$e===void 0?void 0:$e.valueDeclaration;Qt&&e.addRelatedInfo(Wa,e.createDiagnosticForNode(Qt,e.Diagnostics._0_is_declared_here,e.entityNameToString(r.tagName))),T&&T.skipLogging&&(T.errors||(T.errors=[])).push(Wa),T.skipLogging||ya.add(Wa)}return!1}}function fy(r,i,t,o,s,u,T){var q={errors:void 0,skipLogging:!0};if(e.isJsxOpeningLikeElement(r))return U5(r,t,o,s,u,T,q)?void 0:(e.Debug.assert(!u||!!q.errors,"jsx should have errors when reporting errors"),q.errors||e.emptyArray);var fe=ld(t);if(fe&&fe!==Vt&&r.kind!==208){var Ne=WC(r),$e=JC(Ne),Ze=u?Ne||r:void 0,lr=e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!pl($e,fe,o,Ze,lr,T,q))return e.Debug.assert(!u||!!q.errors,"this parameter should have errors when reporting errors"),q.errors||e.emptyArray}for(var yr=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,Zr=ev(t),ui=Zr?Math.min(Lc(t)-1,i.length):i.length,Ii=0;Ii<ui;Ii++){var Fi=i[Ii];if(Fi.kind!==226){var Ri=Hu(t,Ii),Xi=bg(Fi,Ri,void 0,s),ea=s&4?rm(Xi):Xi;if(!vD(ea,Ri,o,u?Fi:void 0,Fi,yr,T,q))return e.Debug.assert(!u||!!q.errors,"parameter should have errors when reporting errors"),fa(Fi,ea,Ri),q.errors||e.emptyArray}}if(Zr){var lt=wb(i,ui,i.length,Zr,void 0,s),Ia=i.length-ui,Ze=u?Ia===0?r:Ia===1?i[ui]:e.setTextRangePosEnd(zp(r,lt),i[ui].pos,i[i.length-1].end):void 0;if(!pl(lt,Zr,o,Ze,yr,void 0,q))return e.Debug.assert(!u||!!q.errors,"rest parameter should have errors when reporting errors"),fa(Ze,lt,Zr),q.errors||e.emptyArray}return;function fa(Dn,Ra,Bn){if(Dn&&u&&q.errors&&q.errors.length){if(av(Bn))return;var Jn=av(Ra);Jn&&Yf(Jn,Bn,o)&&e.addRelatedInfo(q.errors[0],e.createDiagnosticForNode(Dn,e.Diagnostics.Did_you_forget_to_use_await))}}}function WC(r){var i=r.kind===207?r.expression:r.kind===209?r.tag:void 0;if(i){var t=e.skipOuterExpressions(i);if(e.isAccessExpression(t))return t.expression}}function zp(r,i,t,o){var s=e.parseNodeFactory.createSyntheticExpression(i,t,o);return e.setTextRange(s,r),e.setParent(s,r),s}function Ob(r){if(r.kind===209){var i=r.template,t=[zp(i,$N())];return i.kind===222&&e.forEach(i.templateSpans,function(fe){t.push(fe.expression)}),t}if(r.kind===164)return z5(r);if(e.isJsxOpeningLikeElement(r))return r.attributes.properties.length>0||e.isJsxOpeningElement(r)&&r.parent.children.length>0?[r.attributes]:e.emptyArray;var o=r.arguments||e.emptyArray,s=t0(o);if(s>=0){for(var u=o.slice(0,s),T=function(fe){var Ne=o[fe],$e=Ne.kind===224&&(Ba?hn(Ne.expression):js(Ne.expression));$e&&Ln($e)?e.forEach(Co($e),function(Ze,lr){var yr,Zr=$e.target.elementFlags[lr],ui=zp(Ne,Zr&4?tc(Ze):Ze,!!(Zr&12),(yr=$e.target.labeledElementDeclarations)===null||yr===void 0?void 0:yr[lr]);u.push(ui)}):u.push(Ne)},q=s;q<o.length;q++)T(q);return u}return o}function z5(r){var i=r.parent,t=r.expression;switch(i.kind){case 256:case 225:return[zp(t,Jt(It(i)))];case 163:var o=i.parent;return[zp(t,i.parent.kind===170?Jt(It(o)):Oe),zp(t,xe),zp(t,Ui)];case 166:case 168:case 171:case 172:var s=i.kind!==166&&Se!==0;return[zp(t,OM(i)),zp(t,FM(i)),zp(t,s?cx(Wp(i)):xe)]}return e.Debug.fail()}function qC(r,i){switch(r.parent.kind){case 256:case 225:return 1;case 166:return 2;case 168:case 171:case 172:return Se===0||i.parameters.length<=2?2:3;case 163:return 3;default:return e.Debug.fail()}}function VC(r,i){var t,o,s=e.getSourceFileOfNode(r);if(e.isPropertyAccessExpression(r.expression)){var u=e.getErrorSpanForNode(s,r.expression.name);t=u.start,o=i?u.length:r.end-t}else{var T=e.getErrorSpanForNode(s,r.expression);t=T.start,o=i?T.length:r.end-t}return{start:t,length:o,sourceFile:s}}function n0(r,i,t,o,s,u){if(e.isCallExpression(r)){var T=VC(r),q=T.sourceFile,fe=T.start,Ne=T.length;return e.createFileDiagnostic(q,fe,Ne,i,t,o,s,u)}else return e.createDiagnosticForNode(r,i,t,o,s,u)}function W5(r){if(!e.isCallExpression(r)||!e.isIdentifier(r.expression))return!1;var i=os(r.expression,r.expression.escapedText,111551,void 0,void 0,!1),t=i==null?void 0:i.valueDeclaration;if(!t||!e.isParameter(t)||!e.isFunctionExpressionOrArrowFunction(t.parent)||!e.isNewExpression(t.parent.parent)||!e.isIdentifier(t.parent.parent.expression))return!1;var o=W1(!1);if(!o)return!1;var s=Xu(t.parent.parent.expression,!0);return s===o}function KC(r,i,t){var o,s=t0(t);if(s>-1)return e.createDiagnosticForNode(t[s],e.Diagnostics.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);for(var u=Number.POSITIVE_INFINITY,T=Number.NEGATIVE_INFINITY,q=Number.NEGATIVE_INFINITY,fe=Number.POSITIVE_INFINITY,Ne,$e=0,Ze=i;$e<Ze.length;$e++){var lr=Ze[$e],yr=jl(lr),Zr=Lc(lr);yr<u&&(u=yr,Ne=lr),T=Math.max(T,Zr),yr<t.length&&yr>q&&(q=yr),t.length<Zr&&Zr<fe&&(fe=Zr)}var ui=e.some(i,Ul),Ii=ui?u:u<T?u+"-"+T:u,Fi=ui?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:Ii===1&&t.length===0&&W5(r)?e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:e.Diagnostics.Expected_0_arguments_but_got_1;if(u<t.length&&t.length<T)return n0(r,e.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,t.length,q,fe);if(t.length<u){var Ri=n0(r,Fi,Ii,t.length),Xi=(o=Ne==null?void 0:Ne.declaration)===null||o===void 0?void 0:o.parameters[Ne.thisParameter?t.length+1:t.length];if(Xi){var ea=e.createDiagnosticForNode(Xi,e.isBindingPattern(Xi.name)?e.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:e.isRestParameter(Xi)?e.Diagnostics.Arguments_for_the_rest_parameter_0_were_not_provided:e.Diagnostics.An_argument_for_0_was_not_provided,Xi.name?e.isBindingPattern(Xi.name)?void 0:e.idText(e.getFirstIdentifier(Xi.name)):t.length);return e.addRelatedInfo(Ri,ea)}return Ri}else{var lt=e.factory.createNodeArray(t.slice(T)),Ia=e.first(lt).pos,fa=e.last(lt).end;return fa===Ia&&fa++,e.setTextRangePosEnd(lt,Ia,fa),e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),lt,Fi,Ii,t.length)}}function q5(r,i,t){var o=t.length;if(i.length===1){var s=i[0],u=Ol(s.typeParameters),T=e.length(s.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),t,e.Diagnostics.Expected_0_type_arguments_but_got_1,u<T?u+"-"+T:u,o)}for(var q=-1/0,fe=1/0,Ne=0,$e=i;Ne<$e.length;Ne++){var s=$e[Ne],Ze=Ol(s.typeParameters),T=e.length(s.typeParameters);Ze>o?fe=Math.min(fe,Ze):T<o&&(q=Math.max(q,T))}return q!==-1/0&&fe!==1/0?e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),t,e.Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,o,q,fe):e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),t,e.Diagnostics.Expected_0_type_arguments_but_got_1,q===-1/0?fe:q,o)}function om(r,i,t,o,s,u){var T=r.kind===209,q=r.kind===164,fe=e.isJsxOpeningLikeElement(r),Ne=!t&&oe,$e;q||($e=r.typeArguments,(T||fe||r.expression.kind!==106)&&e.forEach($e,$n));var Ze=t||[];if(B5(i,Ze,s),!Ze.length)return Ne&&ya.add(n0(r,e.Diagnostics.Call_target_does_not_contain_any_signatures)),Jl(r);var lr=Ob(r),yr=Ze.length===1&&!Ze[0].typeParameters,Zr=!q&&!yr&&e.some(lr,_l)?4:0,ui,Ii,Fi,Ri,Xi=!!(o&16)&&r.kind===207&&r.arguments.hasTrailingComma;if(Ze.length>1&&(Ri=qt(Ze,Te,yr,Xi)),Ri||(Ri=qt(Ze,Sr,yr,Xi)),Ri)return Ri;if(Ne)if(ui)if(ui.length===1||ui.length>3){var ea=ui[ui.length-1],lt;ui.length>3&&(lt=e.chainDiagnosticMessages(lt,e.Diagnostics.The_last_overload_gave_the_following_error),lt=e.chainDiagnosticMessages(lt,e.Diagnostics.No_overload_matches_this_call));var Ia=fy(r,lr,ea,Sr,0,!0,function(){return lt});if(Ia)for(var fa=0,Dn=Ia;fa<Dn.length;fa++){var Ra=Dn[fa];ea.declaration&&ui.length>3&&e.addRelatedInfo(Ra,e.createDiagnosticForNode(ea.declaration,e.Diagnostics.The_last_overload_is_declared_here)),Xt(ea,Ra),ya.add(Ra)}else e.Debug.fail("No error for last overload signature")}else{for(var Bn=[],Jn=0,On=Number.MAX_VALUE,Ao=0,$i=0,Vi=function(Yt){var va=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,$i+1,Ze.length,kl(Yt))},Ft=fy(r,lr,Yt,Sr,0,!0,va);Ft?(Ft.length<=On&&(On=Ft.length,Ao=$i),Jn=Math.max(Jn,Ft.length),Bn.push(Ft)):e.Debug.fail("No error for 3 or fewer overload signatures"),$i++},Ot=0,Wa=ui;Ot<Wa.length;Ot++){var Qt=Wa[Ot];Vi(Qt)}var Qa=Jn>1?Bn[Ao]:e.flatten(Bn);e.Debug.assert(Qa.length>0,"No errors reported for 3 or fewer overload signatures");var En=e.chainDiagnosticMessages(e.map(Qa,e.createDiagnosticMessageChainFromDiagnostic),e.Diagnostics.No_overload_matches_this_call),Gn=qe([],e.flatMap(Qa,function(Yt){return Yt.relatedInformation}),!0),ia=void 0;if(e.every(Qa,function(Yt){return Yt.start===Qa[0].start&&Yt.length===Qa[0].length&&Yt.file===Qa[0].file})){var Xn=Qa[0],ii=Xn.file,Ar=Xn.start,Pt=Xn.length;ia={file:ii,start:Ar,length:Pt,code:En.code,category:En.category,messageText:En,relatedInformation:Gn}}else ia=e.createDiagnosticForNodeFromMessageChain(r,En,Gn);Xt(ui[0],ia),ya.add(ia)}else if(Ii)ya.add(KC(r,[Ii],lr));else if(Fi)UC(Fi,r.typeArguments,!0,u);else{var pt=e.filter(i,function(Yt){return LC(Yt,$e)});pt.length===0?ya.add(q5(r,i,$e)):q?u&&ya.add(n0(r,u)):ya.add(KC(r,pt,lr))}return V5(r,Ze,lr,!!t);function Xt(Yt,va){var Ft,pi,Ai=ui,Qi=Ii,it=Fi,st=((pi=(Ft=Yt.declaration)===null||Ft===void 0?void 0:Ft.symbol)===null||pi===void 0?void 0:pi.declarations)||e.emptyArray,kt=st.length>1,Ha=kt?e.find(st,function(kn){return e.isFunctionLikeDeclaration(kn)&&e.nodeIsPresent(kn.body)}):void 0;if(Ha){var Tn=Ku(Ha),Ca=!Tn.typeParameters;qt([Tn],Sr,Ca)&&e.addRelatedInfo(va,e.createDiagnosticForNode(Ha,e.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}ui=Ai,Ii=Qi,Fi=it}function qt(Yt,va,Ft,pi){if(pi===void 0&&(pi=!1),ui=void 0,Ii=void 0,Fi=void 0,Ft){var Ai=Yt[0];if(e.some($e)||!a0(r,lr,Ai,pi))return;if(fy(r,lr,Ai,va,0,!1,void 0)){ui=[Ai];return}return Ai}for(var Qi=0;Qi<Yt.length;Qi++){var Ai=Yt[Qi];if(!(!LC(Ai,$e)||!a0(r,lr,Ai,pi))){var it=void 0,st=void 0;if(Ai.typeParameters){var kt=void 0;if(e.some($e)){if(kt=UC(Ai,$e,!1),!kt){Fi=Ai;continue}}else st=qm(Ai.typeParameters,Ai,e.isInJSFile(r)?2:0),kt=Ib(r,Ai,lr,Zr|8,st),Zr|=st.flags&4?8:0;if(it=jv(Ai,kt,e.isInJSFile(Ai.declaration),st&&st.inferredTypeParameters),ev(Ai)&&!a0(r,lr,it,pi)){Ii=it;continue}}else it=Ai;if(fy(r,lr,it,va,Zr,!1,void 0)){(ui||(ui=[])).push(it);continue}if(Zr){if(Zr=0,st){var kt=Ib(r,Ai,lr,Zr,st);if(it=jv(Ai,kt,e.isInJSFile(Ai.declaration),st&&st.inferredTypeParameters),ev(Ai)&&!a0(r,lr,it,pi)){Ii=it;continue}}if(fy(r,lr,it,va,Zr,!1,void 0)){(ui||(ui=[])).push(it);continue}}return Yt[Qi]=it,it}}}}function V5(r,i,t,o){return e.Debug.assert(i.length>0),lv(r),o||i.length===1||i.some(function(s){return!!s.typeParameters})?H5(r,i,t):K5(i)}function K5(r){var i=e.mapDefined(r,function(lr){return lr.thisParameter}),t;i.length&&(t=GC(i,i.map($m)));for(var o=e.minAndMax(r,G5),s=o.min,u=o.max,T=[],q=function(lr){var yr=e.mapDefined(r,function(Zr){return U(Zr)?lr<Zr.parameters.length-1?Zr.parameters[lr]:e.last(Zr.parameters):lr<Zr.parameters.length?Zr.parameters[lr]:void 0});e.Debug.assert(yr.length!==0),T.push(GC(yr,e.mapDefined(r,function(Zr){return hd(Zr,lr)})))},fe=0;fe<u;fe++)q(fe);var Ne=e.mapDefined(r,function(lr){return U(lr)?e.last(lr.parameters):void 0}),$e=0;if(Ne.length!==0){var Ze=tc(ba(e.mapDefined(r,LT),2));T.push(HC(Ne,Ze)),$e|=1}return r.some(z)&&($e|=2),Pu(r[0].declaration,void 0,t,T,To(r.map(So)),void 0,s,$e)}function G5(r){var i=r.parameters.length;return U(r)?i-1:i}function GC(r,i){return HC(r,ba(i,2))}function HC(r,i){return Jd(e.first(r),i)}function H5(r,i,t){var o=Y5(i,or===void 0?t.length:or),s=i[o],u=s.typeParameters;if(!u)return s;var T=FC(r)?r.typeArguments:void 0,q=T?ah(s,X5(T,u,e.isInJSFile(r))):Q5(r,u,s,t);return i[o]=q,q}function X5(r,i,t){for(var o=r.map(Wp);o.length>i.length;)o.pop();for(;o.length<i.length;)o.push(H_(i[o.length])||qc(i[o.length])||GD(t));return o}function Q5(r,i,t,o){var s=qm(i,t,e.isInJSFile(r)?2:0),u=Ib(r,t,o,12,s);return ah(t,u)}function Y5(r,i){for(var t=-1,o=-1,s=0;s<r.length;s++){var u=r[s],T=Lc(u);if(Ul(u)||T>=i)return s;T>o&&(o=T,t=s)}return t}function $5(r,i,t){if(r.expression.kind===106){var o=ab(r.expression);if(At(o)){for(var s=0,u=r.arguments;s<u.length;s++){var T=u[s];hn(T)}return go}if(!ra(o)){var q=e.getEffectiveBaseTypeNode(e.getContainingClass(r));if(q){var fe=Fd(o,q.typeArguments,q);return om(r,fe,i,t,0)}}return hg(r)}var Ne,$e=hn(r.expression);if(e.isCallChain(r)){var Ze=Wm($e,r.expression);Ne=Ze===$e?0:e.isOutermostOptionalChain(r)?16:8,$e=Ze}else Ne=0;if($e=hC($e,r.expression,v5),$e===Ci)return rs;var lr=$($e);if(ra(lr))return Jl(r);var yr=za(lr,0),Zr=za(lr,1).length;if(o0($e,lr,yr.length,Zr))return!ra($e)&&r.typeArguments&&Wr(r,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),hg(r);if(!yr.length){if(Zr)Wr(r,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,ht($e));else{var ui=void 0;if(r.arguments.length===1){var Ii=e.getSourceFileOfNode(r).text;e.isLineBreak(Ii.charCodeAt(e.skipTrivia(Ii,r.expression.end,!0)-1))&&(ui=e.createDiagnosticForNode(r.expression,e.Diagnostics.Are_you_missing_a_semicolon))}Mb(r.expression,lr,0,ui)}return Jl(r)}return t&8&&!r.typeArguments&&yr.some(Z5)?(Ek(r,t),Ko):yr.some(function(Fi){return e.isInJSFile(Fi.declaration)&&!!e.getJSDocClassTag(Fi.declaration)})?(Wr(r,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,ht($e)),Jl(r)):om(r,yr,i,t,Ne)}function Z5(r){return!!(r.typeParameters&&yS(So(r)))}function o0(r,i,t,o){return At(r)||At(i)&&!!(r.flags&262144)||!t&&!o&&!(i.flags&1048576)&&!(Lt(i).flags&131072)&&oo(r,Ka)}function e7(r,i,t){if(r.arguments&&Se<1){var o=t0(r.arguments);o>=0&&Wr(r.arguments[o],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var s=nm(r.expression);if(s===Ci)return rs;if(s=$(s),ra(s))return Jl(r);if(At(s))return r.typeArguments&&Wr(r,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),hg(r);var u=za(s,1);if(u.length){if(!r7(r,u[0]))return Jl(r);if(u.some(function(Ne){return Ne.flags&4}))return Wr(r,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Jl(r);var T=s.symbol&&e.getClassLikeDeclarationOfSymbol(s.symbol);return T&&e.hasSyntacticModifier(T,128)?(Wr(r,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Jl(r)):om(r,u,i,t,0)}var q=za(s,0);if(q.length){var fe=om(r,q,i,t,0);return Tr||(fe.declaration&&!ml(fe.declaration)&&So(fe)!==Vt&&Wr(r,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),ld(fe)===Vt&&Wr(r,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),fe}return Mb(r.expression,s,1),Jl(r)}function Fb(r,i){var t=zc(i);if(!e.length(t))return!1;var o=t[0];if(o.flags&2097152){for(var s=o.types,u=Ky(s),T=0,q=0,fe=o.types;q<fe.length;q++){var Ne=fe[q];if(!u[T]&&e.getObjectFlags(Ne)&3&&(Ne.symbol===r||Fb(r,Ne)))return!0;T++}return!1}return o.symbol===r?!0:Fb(r,o)}function r7(r,i){if(!i||!i.declaration)return!0;var t=i.declaration,o=e.getSelectedEffectiveModifierFlags(t,24);if(!o||t.kind!==170)return!0;var s=e.getClassLikeDeclarationOfSymbol(t.parent.symbol),u=Io(t.parent.symbol);if(!dS(r,s)){var T=e.getContainingClass(r);if(T&&o&16){var q=Wp(T);if(Fb(t.parent.symbol,q))return!0}return o&8&&Wr(r,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,ht(u)),o&16&&Wr(r,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,ht(u)),!1}return!0}function XC(r,i,t){var o,s=t===0,u=zd(i),T=u&&za(u,t).length>0;if(i.flags&1048576){for(var q=i.types,fe=!1,Ne=0,$e=q;Ne<$e.length;Ne++){var Ze=$e[Ne],lr=za(Ze,t);if(lr.length!==0){if(fe=!0,o)break}else if(o||(o=e.chainDiagnosticMessages(o,s?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,ht(Ze)),o=e.chainDiagnosticMessages(o,s?e.Diagnostics.Not_all_constituents_of_type_0_are_callable:e.Diagnostics.Not_all_constituents_of_type_0_are_constructable,ht(i))),fe)break}fe||(o=e.chainDiagnosticMessages(void 0,s?e.Diagnostics.No_constituent_of_type_0_is_callable:e.Diagnostics.No_constituent_of_type_0_is_constructable,ht(i))),o||(o=e.chainDiagnosticMessages(o,s?e.Diagnostics.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:e.Diagnostics.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,ht(i)))}else o=e.chainDiagnosticMessages(o,s?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,ht(i));var yr=s?e.Diagnostics.This_expression_is_not_callable:e.Diagnostics.This_expression_is_not_constructable;if(e.isCallExpression(r.parent)&&r.parent.arguments.length===0){var Zr=Da(r).resolvedSymbol;Zr&&Zr.flags&32768&&(yr=e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:e.chainDiagnosticMessages(o,yr),relatedMessage:T?e.Diagnostics.Did_you_forget_to_use_await:void 0}}function Mb(r,i,t,o){var s=XC(r,i,t),u=s.messageChain,T=s.relatedMessage,q=e.createDiagnosticForNodeFromMessageChain(r,u);if(T&&e.addRelatedInfo(q,e.createDiagnosticForNode(r,T)),e.isCallExpression(r.parent)){var fe=VC(r.parent,!0),Ne=fe.start,$e=fe.length;q.start=Ne,q.length=$e}ya.add(q),QC(i,t,o?e.addRelatedInfo(q,o):q)}function QC(r,i,t){if(!!r.symbol){var o=Ma(r.symbol).originatingImport;if(o&&!e.isImportCall(o)){var s=za(Jt(Ma(r.symbol).target),i);if(!s||!s.length)return;e.addRelatedInfo(t,e.createDiagnosticForNode(o,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 i7(r,i,t){var o=hn(r.tag),s=$(o);if(ra(s))return Jl(r);var u=za(s,0),T=za(s,1).length;if(o0(o,s,u.length,T))return hg(r);if(!u.length){if(e.isArrayLiteralExpression(r.parent)){var q=e.createDiagnosticForNode(r.tag,e.Diagnostics.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return ya.add(q),Jl(r)}return Mb(r.tag,s,0),Jl(r)}return om(r,u,i,t,0)}function t7(r){switch(r.parent.kind){case 256:case 225:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 163:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 166:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 168:case 171:case 172:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return e.Debug.fail()}}function a7(r,i,t){var o=hn(r.expression),s=$(o);if(ra(s))return Jl(r);var u=za(s,0),T=za(s,1).length;if(o0(o,s,u.length,T))return hg(r);if(o7(r,u)){var q=e.getTextOfNode(r.expression,!1);return Wr(r,e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,q),Jl(r)}var fe=t7(r);if(!u.length){var Ne=XC(r.expression,s,0),$e=e.chainDiagnosticMessages(Ne.messageChain,fe),Ze=e.createDiagnosticForNodeFromMessageChain(r.expression,$e);return Ne.relatedMessage&&e.addRelatedInfo(Ze,e.createDiagnosticForNode(r.expression,Ne.relatedMessage)),ya.add(Ze),QC(s,0,Ze),Jl(r)}return om(r,u,i,t,0,fe)}function s0(r,i){var t=yg(r),o=t&&Ns(t),s=o&&Pc(o,w.Element,788968),u=s&&Cr.symbolToEntityName(s,788968,r),T=e.factory.createFunctionTypeNode(void 0,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"props",void 0,Cr.typeToTypeNode(i,r))],u?e.factory.createTypeReferenceNode(u,void 0):e.factory.createKeywordTypeNode(130)),q=bo(1,"props");return q.type=i,Pu(T,void 0,void 0,[q],s?Io(s):Oe,void 0,1,0)}function n7(r,i,t){if(am(r.tagName)){var o=dC(r),s=s0(r,o);return tp(bg(r.attributes,Hh(s,r),void 0,0),o,r.tagName,r.attributes),e.length(r.typeArguments)&&(e.forEach(r.typeArguments,$n),ya.add(e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),r.typeArguments,e.Diagnostics.Expected_0_type_arguments_but_got_1,0,e.length(r.typeArguments)))),s}var u=hn(r.tagName),T=$(u);if(ra(T))return Jl(r);var q=_C(u,r);return o0(u,T,q.length,0)?hg(r):q.length===0?(Wr(r.tagName,e.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,e.getTextOfNode(r.tagName)),Jl(r)):om(r,q,i,t,0)}function o7(r,i){return i.length&&e.every(i,function(t){return t.minArgumentCount===0&&!U(t)&&t.parameters.length<qC(r,t)})}function s7(r,i,t){switch(r.kind){case 207:return $5(r,i,t);case 208:return e7(r,i,t);case 209:return i7(r,i,t);case 164:return a7(r,i,t);case 279:case 278:return n7(r,i,t)}throw e.Debug.assertNever(r,"Branch in 'resolveSignature' should be unreachable.")}function sm(r,i,t){var o=Da(r),s=o.resolvedSignature;if(s&&s!==Ko&&!i)return s;o.resolvedSignature=Ko;var u=s7(r,i,t||0);return u!==Ko&&(o.resolvedSignature=ln===Ba?u:s),u}function ml(r){var i;if(!r||!e.isInJSFile(r))return!1;var t=e.isFunctionDeclaration(r)||e.isFunctionExpression(r)?r:e.isVariableDeclaration(r)&&r.initializer&&e.isFunctionExpression(r.initializer)?r.initializer:void 0;if(t){if(e.getJSDocClassTag(r))return!0;var o=It(t);return!!(!((i=o==null?void 0:o.members)===null||i===void 0)&&i.size)}return!1}function Lb(r,i){var t,o;if(i){var s=Ma(i);if(!s.inferredClassSymbol||!s.inferredClassSymbol.has(f(r))){var u=e.isTransientSymbol(r)?r:Ls(r);return u.exports=u.exports||e.createSymbolTable(),u.members=u.members||e.createSymbolTable(),u.flags|=i.flags&32,!((t=i.exports)===null||t===void 0)&&t.size&&Yc(u.exports,i.exports),!((o=i.members)===null||o===void 0)&&o.size&&Yc(u.members,i.members),(s.inferredClassSymbol||(s.inferredClassSymbol=new e.Map)).set(f(u),u),u}return s.inferredClassSymbol.get(f(r))}}function c7(r){var i,t=r&&c0(r,!0),o=(i=t==null?void 0:t.exports)===null||i===void 0?void 0:i.get("prototype"),s=(o==null?void 0:o.valueDeclaration)&&u7(o.valueDeclaration);return s?It(s):void 0}function c0(r,i){if(!!r.parent){var t,o;if(e.isVariableDeclaration(r.parent)&&r.parent.initializer===r){if(!e.isInJSFile(r)&&!(e.isVarConst(r.parent)&&e.isFunctionLikeDeclaration(r)))return;t=r.parent.name,o=r.parent}else if(e.isBinaryExpression(r.parent)){var s=r.parent,u=r.parent.operatorToken.kind;if(u===63&&(i||s.right===r))t=s.left,o=t;else if((u===56||u===60)&&(e.isVariableDeclaration(s.parent)&&s.parent.initializer===s?(t=s.parent.name,o=s.parent):e.isBinaryExpression(s.parent)&&s.parent.operatorToken.kind===63&&(i||s.parent.right===s)&&(t=s.parent.left,o=t),!t||!e.isBindableStaticNameExpression(t)||!e.isSameEntityName(t,s.left)))return}else i&&e.isFunctionDeclaration(r)&&(t=r.name,o=r);if(!(!o||!t||!i&&!e.getExpandoInitializer(r,e.isPrototypeAccess(t))))return It(o)}}function u7(r){if(!r.parent)return!1;for(var i=r.parent;i&&i.kind===205;)i=i.parent;if(i&&e.isBinaryExpression(i)&&e.isPrototypeAccess(i.left)&&i.operatorToken.kind===63){var t=e.getInitializerOfBinaryExpression(i);return e.isObjectLiteralExpression(t)&&t}}function l7(r,i){var t;Ay(r,r.typeArguments);var o=sm(r,void 0,i);if(o===Ko)return Hi;if(u0(o,r),r.expression.kind===106)return Vt;if(r.kind===208){var s=o.declaration;if(s&&s.kind!==170&&s.kind!==174&&s.kind!==179&&!e.isJSDocConstructSignature(s)&&!ml(s))return Tr&&Wr(r,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),xe}if(e.isInJSFile(r)&&rk(r))return FT(r.arguments[0]);var u=So(o);if(u.flags&12288&&YC(r))return uD(e.walkUpParenthesizedExpressions(r.parent));if(r.kind===207&&!r.questionDotToken&&r.parent.kind===237&&u.flags&16384&&wu(o)){if(!e.isDottedName(r.expression))Wr(r.expression,e.Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);else if(!jh(r)){var T=Wr(r.expression,e.Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);ey(r.expression,T)}}if(e.isInJSFile(r)){var q=c0(r,!1);if(!((t=q==null?void 0:q.exports)===null||t===void 0)&&t.size){var fe=_s(q,q.exports,e.emptyArray,e.emptyArray,e.emptyArray);return fe.objectFlags|=8192,To([u,fe])}}return u}function u0(r,i){if(r.declaration&&r.declaration.flags&134217728){var t=_y(i),o=e.tryGetPropertyAccessOrIdentifierToString(e.getInvokedExpression(i));lp(t,r.declaration,o,kl(r))}}function _y(r){switch(r=e.skipParentheses(r),r.kind){case 207:case 164:case 208:return _y(r.expression);case 209:return _y(r.tag);case 279:case 278:return _y(r.tagName);case 206:return r.argumentExpression;case 205:return r.name;case 177:var i=r;return e.isQualifiedName(i.typeName)?i.typeName.right:i;default:return r}}function YC(r){if(!e.isCallExpression(r))return!1;var i=r.expression;if(e.isPropertyAccessExpression(i)&&i.name.escapedText==="for"&&(i=i.expression),!e.isIdentifier(i)||i.escapedText!=="Symbol")return!1;var t=tx(!1);return t?t===os(i,"Symbol",111551,void 0,void 0,!1):!1}function f7(r){if($9(r),r.arguments.length===0)return gy(r,xe);for(var i=r.arguments[0],t=js(i),o=r.arguments.length>1?js(r.arguments[1]):void 0,s=2;s<r.arguments.length;++s)js(r.arguments[s]);if((t.flags&32768||t.flags&65536||!oo(t,ki))&&Wr(i,e.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,ht(t)),o){var u=ix(!0);u!==tt&&Gc(o,Eh(u,32768),r.arguments[1])}var T=ko(r,i);if(T){var q=su(T,i,!0,!1);if(q)return gy(r,ZC(Jt(q),q,T,i)||ek(Jt(q),q,T,i))}return gy(r,xe)}function $C(r,i,t){var o=e.createSymbolTable(),s=bo(2097152,"default");return s.parent=i,s.nameType=Ou("default"),s.target=Qo(r),o.set("default",s),_s(t,o,e.emptyArray,e.emptyArray,e.emptyArray)}function ZC(r,i,t,o){var s=o_(o);if(s&&r&&!ra(r)){var u=r;if(!u.defaultOnlyType){var T=$C(i,t);u.defaultOnlyType=T}return u.defaultOnlyType}}function ek(r,i,t,o){var s;if(cr&&r&&!ra(r)){var u=r;if(!u.syntheticType){var T=(s=t.declarations)===null||s===void 0?void 0:s.find(e.isSourceFile),q=R_(T,t,!1,o);if(q){var fe=bo(2048,"__type"),Ne=$C(i,t,fe);fe.type=Ne,u.syntheticType=oy(r)?Fp(r,Ne,fe,0,!1):Ne}else u.syntheticType=r}return u.syntheticType}return r}function rk(r){if(!e.isRequireCall(r,!0))return!1;if(!e.isIdentifier(r.expression))return e.Debug.fail();var i=os(r.expression,r.expression.escapedText,111551,void 0,void 0,!0);if(i===be)return!0;if(i.flags&2097152)return!1;var t=i.flags&16?255:i.flags&3?253:0;if(t!==0){var o=e.getDeclarationOfKind(i,t);return!!o&&!!(o.flags&8388608)}return!1}function _7(r){S9(r)||Ay(r,r.typeArguments),Se<2&&dc(r,262144);var i=sm(r);return u0(i,r),So(i)}function p7(r){if(r.kind===210){var i=e.getSourceFileOfNode(r);i&&e.fileExtensionIsOneOf(i.fileName,[".cts",".mts"])&&vt(r,e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead)}return tk(r,r.type,r.expression)}function ik(r){switch(r.kind){case 10:case 14:case 8:case 9:case 110:case 95:case 203:case 204:case 222:return!0;case 211:return ik(r.expression);case 218:var i=r.operator,t=r.operand;return i===40&&(t.kind===8||t.kind===9)||i===39&&t.kind===8;case 205:case 206:var o=r.expression,s=Wp(o).symbol;return s&&s.flags&2097152&&(s=zo(s)),!!(s&&s.flags&384&&Oc(s)===1)}return!1}function tk(r,i,t,o){var s=hn(t,o);if(e.isConstTypeReference(i))return ik(t)||Wr(t,e.Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),Vc(s);$n(i),s=rm(Bl(s));var u=Ua(i);if(oe&&!ra(u)){var T=Hc(s);Yg(u,T)||Qx(s,u,r,e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)}return u}function d7(r){var i=hn(r.expression),t=Wm(i,r.expression);return Ch(C_(t),r,t!==i)}function g7(r){return r.flags&32?d7(r):C_(hn(r.expression))}function m7(r){return J9(r),r.keywordToken===103?Rb(r):r.keywordToken===100?v7(r):e.Debug.assertNever(r.keywordToken)}function ak(r){switch(r.keywordToken){case 100:return ZN();case 103:var i=Rb(r);return ra(i)?Oe:S7(i);default:e.Debug.assertNever(r.keywordToken)}}function Rb(r){var i=e.getNewTargetContainer(r);if(i)if(i.kind===170){var t=It(i.parent);return Jt(t)}else{var t=It(i);return Jt(t)}else return Wr(r,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Oe}function v7(r){ge===e.ModuleKind.Node12||ge===e.ModuleKind.NodeNext?e.getSourceFileOfNode(r).impliedNodeFormat!==e.ModuleKind.ESNext&&Wr(r,e.Diagnostics.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):ge<e.ModuleKind.ES2020&&ge!==e.ModuleKind.System&&Wr(r,e.Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node12_or_nodenext);var i=e.getSourceFileOfNode(r);return e.Debug.assert(!!(i.flags&2097152),"Containing file is missing import meta node flag."),r.name.escapedText==="meta"?rx():Oe}function $m(r){var i=Jt(r);if(ur){var t=r.valueDeclaration;if(t&&e.hasInitializer(t))return $f(i)}return i}function l0(r){return e.Debug.assert(e.isIdentifier(r.name)),r.name.escapedText}function cm(r,i,t){var o=r.parameters.length-(U(r)?1:0);if(i<o)return r.parameters[i].escapedName;var s=r.parameters[o]||hr,u=t||Jt(s);if(Ln(u)){var T=u.target.labeledElementDeclarations,q=i-o;return T&&l0(T[q])||s.escapedName+"_"+q}return s.escapedName}function y7(r,i){var t;if(((t=r.declaration)===null||t===void 0?void 0:t.kind)!==315){var o=r.parameters.length-(U(r)?1:0);if(i<o){var s=r.parameters[i];return nk(s)?[s.escapedName,!1]:void 0}var u=r.parameters[o]||hr;if(!!nk(u)){var T=Jt(u);if(Ln(T)){var q=T.target.labeledElementDeclarations,fe=i-o,Ne=q==null?void 0:q[fe],$e=!!(Ne!=null&&Ne.dotDotDotToken);return Ne?[l0(Ne),$e]:void 0}if(i===o)return[u.escapedName,!0]}}}function nk(r){return r.valueDeclaration&&e.isParameter(r.valueDeclaration)&&e.isIdentifier(r.valueDeclaration.name)}function ok(r){return r.kind===196||e.isParameter(r)&&r.name&&e.isIdentifier(r.name)}function h7(r,i){var t=r.parameters.length-(U(r)?1:0);if(i<t){var o=r.parameters[i].valueDeclaration;return o&&ok(o)?o:void 0}var s=r.parameters[t]||hr,u=Jt(s);if(Ln(u)){var T=u.target.labeledElementDeclarations,q=i-t;return T&&T[q]}return s.valueDeclaration&&ok(s.valueDeclaration)?s.valueDeclaration:void 0}function Hu(r,i){return hd(r,i)||xe}function hd(r,i){var t=r.parameters.length-(U(r)?1:0);if(i<t)return $m(r.parameters[i]);if(U(r)){var o=Jt(r.parameters[t]),s=i-t;if(!Ln(o)||o.target.hasRestElement||s<o.target.fixedLength)return Mc(o,xf(s))}}function um(r,i){var t=Lc(r),o=jl(r),s=Zm(r);if(s&&i>=t-1)return i===t-1?s:tc(Mc(s,Ui));for(var u=[],T=[],q=[],fe=i;fe<t;fe++){!s||fe<t-1?(u.push(Hu(r,fe)),T.push(fe<o?1:2)):(u.push(s),T.push(8));var Ne=h7(r,fe);Ne&&q.push(Ne)}return Ml(u,T,!1,e.length(q)===e.length(u)?q:void 0)}function Lc(r){var i=r.parameters.length;if(U(r)){var t=Jt(r.parameters[i-1]);if(Ln(t))return i+t.target.fixedLength-(t.target.hasRestElement?0:1)}return i}function jl(r,i){var t=i&1,o=i&2;if(o||r.resolvedMinArgumentCount===void 0){var s=void 0;if(U(r)){var u=Jt(r.parameters[r.parameters.length-1]);if(Ln(u)){var T=e.findIndex(u.target.elementFlags,function($e){return!($e&1)}),q=T<0?u.target.fixedLength:T;q>0&&(s=r.parameters.length-1+q)}}if(s===void 0){if(!t&&r.flags&32)return 0;s=r.minArgumentCount}if(o)return s;for(var fe=s-1;fe>=0;fe--){var Ne=Hu(r,fe);if(pc(Ne,MC).flags&131072)break;s=fe}r.resolvedMinArgumentCount=s}return r.resolvedMinArgumentCount}function Ul(r){if(U(r)){var i=Jt(r.parameters[r.parameters.length-1]);return!Ln(i)||i.target.hasRestElement}return!1}function Zm(r){if(U(r)){var i=Jt(r.parameters[r.parameters.length-1]);if(!Ln(i))return i;if(i.target.hasRestElement)return Mm(i,i.target.fixedLength)}}function ev(r){var i=Zm(r);return i&&!_c(i)&&!At(i)&&(Lt(i).flags&131072)===0?i:void 0}function Bb(r){return Jb(r,St)}function Jb(r,i){return r.parameters.length>0?Hu(r,0):i}function D7(r,i,t){for(var o=r.parameters.length-(U(r)?1:0),s=0;s<o;s++){var u=r.parameters[s].valueDeclaration;if(u.type){var T=e.getEffectiveTypeAnnotationNode(u);T&&Cf(t.inferences,Ua(T),Hu(i,s))}}var q=Zm(i);if(q&&q.flags&262144){var fe=ug(i,t.nonFixingMapper);sk(r,fe);var Ne=Lc(i)-1;Cf(t.inferences,um(r,Ne),q)}}function sk(r,i){if(i.typeParameters)if(!r.typeParameters)r.typeParameters=i.typeParameters;else return;if(i.thisParameter){var t=r.thisParameter;(!t||t.valueDeclaration&&!t.valueDeclaration.type)&&(t||(r.thisParameter=Jd(i.thisParameter,void 0)),py(r.thisParameter,Jt(i.thisParameter)))}for(var o=r.parameters.length-(U(r)?1:0),s=0;s<o;s++){var t=r.parameters[s];if(!e.getEffectiveTypeAnnotationNode(t.valueDeclaration)){var u=hd(i,s);py(t,u)}}if(U(r)){var t=e.last(r.parameters);if(e.isTransientSymbol(t)||!e.getEffectiveTypeAnnotationNode(t.valueDeclaration)){var u=um(i,o);py(t,u)}}}function b7(r){r.thisParameter&&py(r.thisParameter);for(var i=0,t=r.parameters;i<t.length;i++){var o=t[i];py(o)}}function py(r,i){var t=Ma(r);if(!t.type){var o=r.valueDeclaration;t.type=i||Is(o,!0),o.name.kind!==79&&(t.type===We&&(t.type=cl(o.name)),ck(o.name,t.type))}}function ck(r,i){for(var t=0,o=r.elements;t<o.length;t++){var s=o[t];if(!e.isOmittedExpression(s)){var u=Qs(s,i);s.name.kind===79?Ma(It(s)).type=u:ck(s.name,u)}}}function dy(r){var i=zv(!0);return i!==qr?(r=k_(sv(r))||We,Hf(i,[r])):We}function uk(r){var i=nx(!0);return i!==qr?(r=k_(sv(r))||We,Hf(i,[r])):We}function gy(r,i){var t=dy(i);return t===We?(Wr(r,e.isImportCall(r)?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),Oe):(W1(!0)||Wr(r,e.isImportCall(r)?e.Diagnostics.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),t)}function S7(r){var i=bo(0,"NewTargetExpression"),t=bo(4,"target",8);t.parent=i,t.type=r;var o=e.createSymbolTable([t]);return i.members=o,_s(i,o,e.emptyArray,e.emptyArray,e.emptyArray)}function f0(r,i){if(!r.body)return Oe;var t=e.getFunctionFlags(r),o=(t&2)!==0,s=(t&1)!==0,u,T,q,fe=Vt;if(r.body.kind!==234)u=js(r.body,i&&i&-9),o&&(u=sv(ov(u,!1,r,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(s){var Ne=dk(r,i);Ne?Ne.length>0&&(u=ba(Ne,2)):fe=St;var $e=T7(r,i),Ze=$e.yieldTypes,lr=$e.nextTypes;T=e.some(Ze)?ba(Ze,2):void 0,q=e.some(lr)?To(lr):void 0}else{var yr=dk(r,i);if(!yr)return t&2?gy(r,St):St;if(yr.length===0)return t&2?gy(r,Vt):Vt;u=ba(yr,2)}if(u||T||q){if(T&&Nh(r,T,3),u&&Nh(r,u,1),q&&Nh(r,q,2),u&&Rl(u)||T&&Rl(T)||q&&Rl(q)){var Zr=_b(r),ui=Zr?Zr===Ku(r)?s?void 0:u:Kh(So(Zr),r):void 0;s?(T=wD(T,ui,0,o),u=wD(u,ui,1,o),q=wD(q,ui,2,o)):u=iI(u,ui,o)}T&&(T=Hc(T)),u&&(u=Hc(u)),q&&(q=Hc(q))}return s?lk(T||St,u||fe,q||rC(2,r)||We,o):o?dy(u||fe):u||fe}function lk(r,i,t,o){var s=o?xo:ds,u=s.getGlobalGeneratorType(!1);if(r=s.resolveIterationType(r,void 0)||We,i=s.resolveIterationType(i,void 0)||We,t=s.resolveIterationType(t,void 0)||We,u===qr){var T=s.getGlobalIterableIteratorType(!1),q=T!==qr?e6(T,s):void 0,fe=q?q.returnType:xe,Ne=q?q.nextType:Nr;return oo(i,fe)&&oo(Ne,t)?T!==qr?Fm(T,[r]):(s.getGlobalIterableIteratorType(!0),tt):(s.getGlobalGeneratorType(!0),tt)}return Fm(u,[r,i,t])}function T7(r,i){var t=[],o=[],s=(e.getFunctionFlags(r)&2)!==0;return e.forEachYieldExpression(r.body,function(u){var T=u.expression?hn(u.expression,i):Ur;e.pushIfUnique(t,fk(u,T,xe,s));var q;if(u.asteriskToken){var fe=xy(T,s?19:17,u.expression);q=fe&&fe.nextType}else q=Su(u);q&&e.pushIfUnique(o,q)}),{yieldTypes:t,nextTypes:o}}function fk(r,i,t,o){var s=r.expression||r,u=r.asteriskToken?P_(o?19:17,i,t,s):i;return o?zd(u,s,r.asteriskToken?e.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:e.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):u}function jb(r,i,t,o){var s=0;if(o){for(var u=i;u<t.length;u++)s|=se.get(t[u])||32768;for(var u=r;u<i;u++)s&=~(se.get(t[u])||0);for(var u=0;u<r;u++)s|=se.get(t[u])||32768}else{for(var u=r;u<i;u++)s|=H.get(t[u])||128;for(var u=0;u<r;u++)s&=~(H.get(t[u])||0)}return s}function _k(r){var i=Da(r);return i.isExhaustive!==void 0?i.isExhaustive:i.isExhaustive=x7(r)}function x7(r){if(r.expression.kind===215){var i=ac(r.expression.expression),t=JE(r,!1),o=jb(0,0,t,!0),s=Cc(i)||i;return s.flags&3?(556800&o)===556800:!!(pc(s,function(q){return(np(q)&o)===o}).flags&131072)}var u=ac(r.expression);if(!fg(u))return!1;var T=Lh(r);return!T.length||e.some(T,eI)?!1:VI(Cs(u,Vc),T)}function pk(r){return r.endFlowNode&&ry(r.endFlowNode)}function dk(r,i){var t=e.getFunctionFlags(r),o=[],s=pk(r),u=!1;if(e.forEachReturnStatement(r.body,function(T){var q=T.expression;if(q){var fe=js(q,i&&i&-9);t&2&&(fe=sv(ov(fe,!1,r,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),fe.flags&131072&&(u=!0),e.pushIfUnique(o,fe)}else s=!0}),!(o.length===0&&!s&&(u||E7(r))))return ur&&o.length&&s&&!(ml(r)&&o.some(function(T){return T.symbol===r.symbol}))&&e.pushIfUnique(o,Nr),o}function E7(r){switch(r.kind){case 212:case 213:return!0;case 168:return r.parent.kind===204;default:return!1}}function Ub(r,i){if(!!oe){var t=e.getFunctionFlags(r),o=i&&S0(i,t);if(!(o&&ls(o,16385))&&!(r.kind===167||e.nodeIsMissing(r.body)||r.body.kind!==234||!pk(r))){var s=r.flags&512,u=e.getEffectiveReturnTypeNode(r)||r;if(o&&o.flags&131072)Wr(u,e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(o&&!s)Wr(u,e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(o&&ur&&!oo(Nr,o))Wr(u,e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(ye.noImplicitReturns){if(!o){if(!s)return;var T=So(Ku(r));if(s6(r,T))return}Wr(u,e.Diagnostics.Not_all_code_paths_return_a_value)}}}}function gk(r,i){if(e.Debug.assert(r.kind!==168||e.isObjectLiteralMethod(r)),lv(r),e.isFunctionExpression(r)&&pm(r,r.name),i&&i&4&&_l(r)){if(!e.getEffectiveReturnTypeNode(r)&&!e.hasContextSensitiveParameters(r)){var t=Qm(r);if(t&&Vm(So(t))){var o=Da(r);if(o.contextFreeType)return o.contextFreeType;var s=f0(r,i),u=Pu(void 0,void 0,void 0,e.emptyArray,s,void 0,0,0),T=_s(r.symbol,he,[u],e.emptyArray,e.emptyArray);return T.objectFlags|=524288,o.contextFreeType=T}}return bn}var q=O0(r);return!q&&r.kind===212&&SS(r),C7(r,i),Jt(It(r))}function C7(r,i){var t=Da(r);if(!(t.flags&1024)){var o=Qm(r);if(!(t.flags&1024)){t.flags|=1024;var s=e.firstOrUndefined(za(Jt(It(r)),0));if(!s)return;if(_l(r))if(o){var u=Xm(r);i&&i&2&&D7(s,o,u);var T=u?ug(o,u.mapper):o;sk(s,T)}else b7(s);if(o&&!ag(r)&&!s.resolvedReturnType){var q=f0(r,i);s.resolvedReturnType||(s.resolvedReturnType=q)}iv(r)}}}function k7(r){e.Debug.assert(r.kind!==168||e.isObjectLiteralMethod(r));var i=e.getFunctionFlags(r),t=ag(r);if(Ub(r,t),r.body)if(e.getEffectiveReturnTypeNode(r)||So(Ku(r)),r.body.kind===234)$n(r.body);else{var o=hn(r.body),s=t&&S0(t,i);if(s)if((i&3)===2){var u=ov(o,!1,r.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);tp(u,s,r.body,r.body)}else tp(o,s,r.body,r.body)}}function _0(r,i,t,o){if(o===void 0&&(o=!1),!oo(i,Oi)){var s=o&&av(i);return Tu(r,!!s&&oo(s,Oi),t),!1}return!0}function A7(r){if(!e.isCallExpression(r)||!e.isBindableObjectDefinePropertyCall(r))return!1;var i=js(r.arguments[2]),t=ai(i,"value");if(t){var o=tn(i,"writable"),s=o&&Jt(o);if(!s||s===ri||s===Gi)return!0;if(o&&o.valueDeclaration&&e.isPropertyAssignment(o.valueDeclaration)){var u=o.valueDeclaration.initializer,T=hn(u);if(T===ri||T===Gi)return!0}return!1}var q=tn(i,"set");return!q}function zl(r){return!!(e.getCheckFlags(r)&8||r.flags&4&&e.getDeclarationModifierFlagsFromSymbol(r)&64||r.flags&3&&Yh(r)&2||r.flags&98304&&!(r.flags&65536)||r.flags&8||e.some(r.declarations,A7))}function mk(r,i,t){var o,s;if(t===0)return!1;if(zl(i)){if(i.flags&4&&e.isAccessExpression(r)&&r.expression.kind===108){var u=e.getContainingFunction(r);if(!(u&&(u.kind===170||ml(u))))return!0;if(i.valueDeclaration){var T=e.isBinaryExpression(i.valueDeclaration),q=u.parent===i.valueDeclaration.parent,fe=u===i.valueDeclaration.parent,Ne=T&&((o=i.parent)===null||o===void 0?void 0:o.valueDeclaration)===u.parent,$e=T&&((s=i.parent)===null||s===void 0?void 0:s.valueDeclaration)===u,Ze=q||fe||Ne||$e;return!Ze}}return!0}if(e.isAccessExpression(r)){var lr=e.skipParentheses(r.expression);if(lr.kind===79){var yr=Da(lr).resolvedSymbol;if(yr.flags&2097152){var Zr=ju(yr);return!!Zr&&Zr.kind===267}}}return!1}function rv(r,i,t){var o=e.skipOuterExpressions(r,7);return o.kind!==79&&!e.isAccessExpression(o)?(Wr(r,i),!1):o.flags&32?(Wr(r,t),!1):!0}function P7(r){hn(r.expression);var i=e.skipParentheses(r.expression);if(!e.isAccessExpression(i))return Wr(i,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),xt;e.isPropertyAccessExpression(i)&&e.isPrivateIdentifier(i.name)&&Wr(i,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);var t=Da(i),o=$c(t.resolvedSymbol);return o&&(zl(o)&&Wr(i,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),N7(i,o)),xt}function N7(r,i){var t=Jt(i);ur&&!(t.flags&131075)&&!(Ce?i.flags&16777216:Fu(t)&32768)&&Wr(r,e.Diagnostics.The_operand_of_a_delete_operator_must_be_optional)}function I7(r){return hn(r.expression),Eo}function w7(r){return hn(r.expression),Ur}function O7(r){if(oe){var i=e.getContainingFunctionOrClassStaticBlock(r);if(i&&e.isClassStaticBlockDeclaration(i))Wr(r,e.Diagnostics.Await_expression_cannot_be_used_inside_a_class_static_block);else if(!(r.flags&32768))if(e.isInTopLevelContext(r)){var t=e.getSourceFileOfNode(r);if(!bd(t)){var o=void 0;if(!e.isEffectiveExternalModule(t,ye)){o||(o=e.getSpanOfTokenAtPosition(t,r.pos));var s=e.createFileDiagnostic(t,o.start,o.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);ya.add(s)}if(ge!==e.ModuleKind.ES2022&&ge!==e.ModuleKind.ESNext&&ge!==e.ModuleKind.System&&!(ge===e.ModuleKind.NodeNext&&e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.ESNext)||Se<4){o=e.getSpanOfTokenAtPosition(t,r.pos);var s=e.createFileDiagnostic(t,o.start,o.length,e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher);ya.add(s)}}}else{var t=e.getSourceFileOfNode(r);if(!bd(t)){var o=e.getSpanOfTokenAtPosition(t,r.pos),s=e.createFileDiagnostic(t,o.start,o.length,e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules);if(i&&i.kind!==170&&(e.getFunctionFlags(i)&2)===0){var u=e.createDiagnosticForNode(i,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(s,u)}ya.add(s)}}ob(r)&&Wr(r,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)}var T=hn(r.expression),q=ov(T,!0,r,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return q===T&&!ra(q)&&!(T.flags&3)&&Ws(!1,e.createDiagnosticForNode(r,e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),q}function F7(r){var i=hn(r.operand);if(i===Ci)return Ci;switch(r.operand.kind){case 8:switch(r.operator){case 40:return sg(xf(-r.operand.text));case 39:return sg(xf(+r.operand.text))}break;case 9:if(r.operator===40)return sg(cD({negative:!0,base10Value:e.parsePseudoBigInt(r.operand.text)}))}switch(r.operator){case 39:case 40:case 54:return gl(i,r.operand),ls(i,12288)&&Wr(r.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(r.operator)),r.operator===39?(ls(i,2112)&&Wr(r.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(r.operator),ht(Bl(i))),Ui):zb(i);case 53:dm(r.operand);var t=np(i)&12582912;return t===4194304?ri:t===8388608?Rt:xt;case 45:case 46:var o=_0(r.operand,gl(i,r.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type);return o&&rv(r.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),zb(i)}return Oe}function M7(r){var i=hn(r.operand);if(i===Ci)return Ci;var t=_0(r.operand,gl(i,r.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type);return t&&rv(r.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),zb(i)}function zb(r){return ls(r,2112)?ws(r,3)||ls(r,296)?Oi:zi:Ui}function ls(r,i){if(r.flags&i)return!0;if(r.flags&3145728)for(var t=r.types,o=0,s=t;o<s.length;o++){var u=s[o];if(ls(u,i))return!0}return!1}function ws(r,i,t){return r.flags&i?!0:t&&r.flags&114691?!1:!!(i&296)&&oo(r,Ui)||!!(i&2112)&&oo(r,zi)||!!(i&402653316)&&oo(r,ki)||!!(i&528)&&oo(r,xt)||!!(i&16384)&&oo(r,Vt)||!!(i&131072)&&oo(r,St)||!!(i&65536)&&oo(r,Ti)||!!(i&32768)&&oo(r,Nr)||!!(i&4096)&&oo(r,ua)||!!(i&67108864)&&oo(r,gt)}function Dg(r,i,t){return r.flags&1048576?e.every(r.types,function(o){return Dg(o,i,t)}):ws(r,i,t)}function Wb(r){return!!(e.getObjectFlags(r)&16)&&!!r.symbol&&qb(r.symbol)}function qb(r){return(r.flags&128)!==0}function L7(r,i,t,o){return t===Ci||o===Ci?Ci:(!At(t)&&Dg(t,131068)&&Wr(r,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),At(o)||mS(o)||E_(o,Ka)||Wr(i,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),xt)}function R7(r,i,t,o){if(t===Ci||o===Ci)return Ci;if(e.isPrivateIdentifier(r)){if(Se<99&&dc(r,2097152),!Da(r).resolvedSymbol&&e.getContainingClass(r)){var s=Eb(r,o.symbol,!0);kC(r,o,s)}}else t=gl(t,r),Dg(t,402665900)||ws(t,407109632)||Wr(r,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or_symbol);o=gl(o,i);var u=b_(o);return(!Dg(o,126091264)||u&&(ws(o,3145728)&&!Dg(u,126091264)||!ls(u,126615552)))&&Wr(i,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_not_be_a_primitive),xt}function B7(r,i,t){var o=r.properties;if(ur&&o.length===0)return gl(i,r);for(var s=0;s<o.length;s++)vk(r,i,s,o,t);return i}function vk(r,i,t,o,s){s===void 0&&(s=!1);var u=r.properties,T=u[t];if(T.kind===294||T.kind===295){var q=T.name,fe=$_(q);if(ul(fe)){var Ne=Nl(fe),$e=tn(i,Ne);$e&&(ly($e,T,s),bb(T,!1,!0,i,$e))}var Ze=Mc(i,fe,32,q),lr=jo(T,Ze);return Dd(T.kind===295?T:T.initializer,lr)}else if(T.kind===296)if(t<u.length-1)Wr(T,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{Se<99&&dc(T,4);var yr=[];if(o)for(var Zr=0,ui=o;Zr<ui.length;Zr++){var Ii=ui[Zr];e.isSpreadAssignment(Ii)||yr.push(Ii.name)}var lr=fn(i,yr,i.symbol);return Wd(o,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),Dd(T.expression,lr)}else Wr(T,e.Diagnostics.Property_assignment_expected)}function J7(r,i,t){var o=r.elements;Se<2&&ye.downlevelIteration&&dc(r,512);for(var s=P_(193,i,Nr,r)||Oe,u=ye.noUncheckedIndexedAccess?void 0:s,T=0;T<o.length;T++){var q=s;r.elements[T].kind===224&&(q=u=u!=null?u:P_(65,i,Nr,r)||Oe),yk(r,i,T,q,t)}return i}function yk(r,i,t,o,s){var u=r.elements,T=u[t];if(T.kind!==226){if(T.kind!==224){var q=xf(t);if(ap(i)){var fe=32|(tm(T)?16:0),Ne=Z_(i,q,fe,zp(T,q))||Oe,$e=tm(T)?$s(Ne,524288):Ne,Ze=jo(T,$e);return Dd(T,Ze,s)}return Dd(T,o,s)}if(t<u.length-1)Wr(T,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var lr=T.expression;if(lr.kind===220&&lr.operatorToken.kind===63)Wr(lr.operatorToken,e.Diagnostics.A_rest_element_cannot_have_an_initializer);else{Wd(r.elements,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);var Ze=kf(i,Ln)?Cs(i,function(Zr){return Mm(Zr,t)}):tc(o);return Dd(lr,Ze,s)}}}}function Dd(r,i,t,o){var s;if(r.kind===295){var u=r;u.objectAssignmentInitializer&&(ur&&!(Fu(hn(u.objectAssignmentInitializer))&32768)&&(i=$s(i,524288)),W7(u.name,u.equalsToken,u.objectAssignmentInitializer,t)),s=r.name}else s=r;return s.kind===220&&s.operatorToken.kind===63&&(Le(s,t),s=s.left),s.kind===204?B7(s,i,o):s.kind===203?J7(s,i,t):j7(s,i,t)}function j7(r,i,t){var o=hn(r,t),s=r.parent.kind===296?e.Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,u=r.parent.kind===296?e.Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return rv(r,s,u)&&tp(i,o,r,r),e.isPrivateIdentifierPropertyAccessExpression(r)&&dc(r.parent,1048576),i}function my(r){switch(r=e.skipParentheses(r),r.kind){case 79:case 10:case 13:case 209:case 222:case 14:case 8:case 9:case 110:case 95:case 104:case 152:case 212:case 225:case 213:case 203:case 204:case 215:case 229:case 278:case 277:return!0;case 221:return my(r.whenTrue)&&my(r.whenFalse);case 220:return e.isAssignmentOperator(r.operatorToken.kind)?!1:my(r.left)&&my(r.right);case 218:case 219:switch(r.operator){case 53:case 39:case 40:case 54:return!0}return!1;case 216:case 210:case 228:default:return!1}}function Vb(r,i){return(i.flags&98304)!==0||Yg(r,i)}function U7(){var r=e.createBinaryExpressionTrampoline(i,t,o,s,u,T);return function(lr,yr){var Zr=r(lr,yr);return e.Debug.assertIsDefined(Zr),Zr};function i(lr,yr,Zr){if(yr?(yr.stackIndex++,yr.skip=!1,Ne(yr,void 0),Ze(yr,void 0)):yr={checkMode:Zr,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},e.isInJSFile(lr)&&e.getAssignedExpandoInitializer(lr))return yr.skip=!0,Ze(yr,hn(lr.right,Zr)),yr;z7(lr);var ui=lr.operatorToken.kind;return ui===63&&(lr.left.kind===204||lr.left.kind===203)&&(yr.skip=!0,Ze(yr,Dd(lr.left,hn(lr.right,Zr),Zr,lr.right.kind===108))),yr}function t(lr,yr,Zr){if(!yr.skip)return q(yr,lr)}function o(lr,yr,Zr){if(!yr.skip){var ui=$e(yr);e.Debug.assertIsDefined(ui),Ne(yr,ui),Ze(yr,void 0);var Ii=lr.kind;if(Ii===55||Ii===56||Ii===60){if(Ii===55){var Fi=e.walkUpParenthesizedExpressions(Zr.parent);tS(Zr.left,ui,e.isIfStatement(Fi)?Fi.thenStatement:void 0)}Xk(ui,Zr.left)}}}function s(lr,yr,Zr){if(!yr.skip)return q(yr,lr)}function u(lr,yr){var Zr;if(yr.skip)Zr=$e(yr);else{var ui=fe(yr);e.Debug.assertIsDefined(ui);var Ii=$e(yr);e.Debug.assertIsDefined(Ii),Zr=hk(lr.left,lr.operatorToken,lr.right,ui,Ii,lr)}return yr.skip=!1,Ne(yr,void 0),Ze(yr,void 0),yr.stackIndex--,Zr}function T(lr,yr,Zr){return Ze(lr,yr),lr}function q(lr,yr){if(e.isBinaryExpression(yr))return yr;Ze(lr,hn(yr,lr.checkMode))}function fe(lr){return lr.typeStack[lr.stackIndex]}function Ne(lr,yr){lr.typeStack[lr.stackIndex]=yr}function $e(lr){return lr.typeStack[lr.stackIndex+1]}function Ze(lr,yr){lr.typeStack[lr.stackIndex+1]=yr}}function z7(r){var i=r.left,t=r.operatorToken,o=r.right;t.kind===60&&(e.isBinaryExpression(i)&&(i.operatorToken.kind===56||i.operatorToken.kind===55)&&vt(i,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(i.operatorToken.kind),e.tokenToString(t.kind)),e.isBinaryExpression(o)&&(o.operatorToken.kind===56||o.operatorToken.kind===55)&&vt(o,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(o.operatorToken.kind),e.tokenToString(t.kind)))}function W7(r,i,t,o,s){var u=i.kind;if(u===63&&(r.kind===204||r.kind===203))return Dd(r,hn(t,o),o,t.kind===108);var T;u===55||u===56||u===60?T=dm(r,o):T=hn(r,o);var q=hn(t,o);return hk(r,i,t,T,q,s)}function hk(r,i,t,o,s,u){var T=i.kind;switch(T){case 41:case 42:case 66:case 67:case 43:case 68:case 44:case 69:case 40:case 65:case 47:case 70:case 48:case 71:case 49:case 72:case 51:case 74:case 52:case 78:case 50:case 73:if(o===Ci||s===Ci)return Ci;o=gl(o,r),s=gl(s,t);var q=void 0;if(o.flags&528&&s.flags&528&&(q=Ra(i.kind))!==void 0)return Wr(u||i,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(i.kind),e.tokenToString(q)),Ui;var fe=_0(r,o,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Ne=_0(t,s,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),$e;if(ws(o,3)&&ws(s,3)||!(ls(o,2112)||ls(s,2112)))$e=Ui;else if(lt(o,s)){switch(T){case 49:case 72:Ao();break;case 42:case 67:Se<3&&Wr(u,e.Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}$e=zi}else Ao(lt),$e=Oe;return fe&&Ne&&Bn($e),$e;case 39:case 64:if(o===Ci||s===Ci)return Ci;!ws(o,402653316)&&!ws(s,402653316)&&(o=gl(o,r),s=gl(s,t));var Ze=void 0;if(ws(o,296,!0)&&ws(s,296,!0)?Ze=Ui:ws(o,2112,!0)&&ws(s,2112,!0)?Ze=zi:ws(o,402653316,!0)||ws(s,402653316,!0)?Ze=ki:(At(o)||At(s))&&(Ze=ra(o)||ra(s)?Oe:xe),Ze&&!Dn(T))return Ze;if(!Ze){var lr=402655727;return Ao(function(Vi,Ot){return ws(Vi,lr)&&ws(Ot,lr)}),xe}return T===64&&Bn(Ze),Ze;case 29:case 31:case 32:case 33:return Dn(T)&&(o=Bl(gl(o,r)),s=Bl(gl(s,t)),On(function(Vi,Ot){return Yg(Vi,Ot)||Yg(Ot,Vi)||oo(Vi,Oi)&&oo(Ot,Oi)})),xt;case 34:case 35:case 36:case 37:return On(function(Vi,Ot){return Vb(Vi,Ot)||Vb(Ot,Vi)}),xt;case 102:return L7(r,t,o,s);case 101:return R7(r,t,o,s);case 55:case 76:{var yr=np(o)&4194304?ba([nI(ur?o:Bl(s)),s]):o;return T===76&&Bn(s),yr}case 56:case 75:{var Zr=np(o)&8388608?ba([_E(o),s],2):o;return T===75&&Bn(s),Zr}case 60:case 77:{var ui=np(o)&262144?ba([C_(o),s],2):o;return T===77&&Bn(s),ui}case 63:var Ii=e.isBinaryExpression(r.parent)?e.getAssignmentDeclarationKind(r.parent):0;return Ia(Ii,s),Jn(Ii)?((!(s.flags&524288)||Ii!==2&&Ii!==6&&!Ef(s)&&!QD(s)&&!(e.getObjectFlags(s)&1))&&Bn(s),o):(Bn(s),rm(s));case 27:if(!ye.allowUnreachableCode&&my(r)&&!fa(t)){var Fi=e.getSourceFileOfNode(r),Ri=Fi.text,Xi=e.skipTrivia(Ri,r.pos),ea=Fi.parseDiagnostics.some(function(Vi){return Vi.code!==e.Diagnostics.JSX_expressions_must_have_one_parent_element.code?!1:e.textSpanContainsPosition(Vi,Xi)});ea||Wr(r,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return s;default:return e.Debug.fail()}function lt(Vi,Ot){return ws(Vi,2112)&&ws(Ot,2112)}function Ia(Vi,Ot){if(Vi===2)for(var Wa=0,Qt=Gf(Ot);Wa<Qt.length;Wa++){var Qa=Qt[Wa],En=Jt(Qa);if(En.symbol&&En.symbol.flags&32){var Gn=Qa.escapedName,ia=os(Qa.valueDeclaration,Gn,788968,void 0,Gn,!1);(ia==null?void 0:ia.declarations)&&ia.declarations.some(e.isJSDocTypedefTag)&&(xu(ia,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(Gn),Qa),xu(Qa,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(Gn),ia))}}}function fa(Vi){return Vi.kind===79&&Vi.escapedText==="eval"}function Dn(Vi){var Ot=ls(o,12288)?r:ls(s,12288)?t:void 0;return Ot?(Wr(Ot,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(Vi)),!1):!0}function Ra(Vi){switch(Vi){case 51:case 74:return 56;case 52:case 78:return 37;case 50:case 73:return 55;default:return}}function Bn(Vi){if(oe&&e.isAssignmentOperator(T)&&rv(r,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(r)||e.unescapeLeadingUnderscores(r.escapedText)!=="exports")){var Ot=void 0;if(Ce&&e.isPropertyAccessExpression(r)&&ls(Vi,32768)){var Wa=ai(ac(r.expression),r.name.escapedText);TD(Vi,Wa)&&(Ot=e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}tp(Vi,o,r,t,Ot)}}function Jn(Vi){var Ot;switch(Vi){case 2:return!0;case 1:case 5:case 6:case 3:case 4:var Wa=It(r),Qt=e.getAssignedExpandoInitializer(t);return!!Qt&&e.isObjectLiteralExpression(Qt)&&!!(!((Ot=Wa==null?void 0:Wa.exports)===null||Ot===void 0)&&Ot.size);default:return!1}}function On(Vi){return Vi(o,s)?!1:(Ao(Vi),!0)}function Ao(Vi){var Ot,Wa=!1,Qt=u||i;if(Vi){var Qa=k_(o),En=k_(s);Wa=!(Qa===o&&En===s)&&!!(Qa&&En)&&Vi(Qa,En)}var Gn=o,ia=s;!Wa&&Vi&&(Ot=q7(o,s,Vi),Gn=Ot[0],ia=Ot[1]);var Xn=__(Gn,ia),ii=Xn[0],Ar=Xn[1];$i(Qt,Wa,ii,Ar)||Tu(Qt,Wa,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(i.kind),ii,Ar)}function $i(Vi,Ot,Wa,Qt){var Qa;switch(i.kind){case 36:case 34:Qa="false";break;case 37:case 35:Qa="true"}if(Qa)return Tu(Vi,Ot,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,Qa,Wa,Qt)}}function q7(r,i,t){var o=r,s=i,u=Bl(r),T=Bl(i);return t(u,T)||(o=u,s=T),[o,s]}function V7(r){oe&&(r.flags&8192||Zs(r,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),ob(r)&&Wr(r,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer));var i=e.getContainingFunction(r);if(!i)return xe;var t=e.getFunctionFlags(i);if(!(t&1))return xe;var o=(t&2)!==0;r.asteriskToken&&(o&&Se<99&&dc(r,26624),!o&&Se<2&&ye.downlevelIteration&&dc(r,256));var s=ag(i),u=s&&o6(s,o),T=u&&u.yieldType||xe,q=u&&u.nextType||xe,fe=o?zd(q)||xe:q,Ne=r.expression?hn(r.expression):Ur,$e=fk(r,Ne,fe,o);if(s&&$e&&tp($e,T,r.expression||r,r.expression),r.asteriskToken){var Ze=o?19:17;return Yk(Ze,1,Ne,r.expression)||xe}else if(s)return Sg(2,s,o)||xe;var lr=rC(2,i);if(!lr&&(lr=xe,oe&&Tr&&!e.expressionResultIsUnused(r))){var yr=Su(r);(!yr||At(yr))&&Wr(r,e.Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}return lr}function K7(r,i){var t=dm(r.condition);tS(r.condition,t,r.whenTrue);var o=hn(r.whenTrue,i),s=hn(r.whenFalse,i);return ba([o,s],2)}function Dk(r){var i=r.parent;return e.isParenthesizedExpression(i)&&Dk(i)||e.isElementAccessExpression(i)&&i.argumentExpression===r}function G7(r){for(var i=[r.head.text],t=[],o=0,s=r.templateSpans;o<s.length;o++){var u=s[o],T=hn(u.expression);ls(T,12288)&&Wr(u.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),i.push(u.literal.text),t.push(oo(T,wi)?T:ki)}return lm(r)||Dk(r)||dg(Su(r)||We,H7)?Xg(i,t):ki}function H7(r){return!!(r.flags&134217856||r.flags&58982400&&ls(Cc(r)||We,402653316))}function X7(r){return r.kind===285&&!e.isJsxSelfClosingElement(r.parent)?r.parent.parent:r}function bg(r,i,t,o){var s=X7(r),u=s.contextualType,T=s.inferenceContext;try{s.contextualType=i,s.inferenceContext=t;var q=hn(r,o|1|(t?2:0)),fe=ls(q,2944)&&p0(q,Kh(i,r))?Vc(q):q;return fe}finally{s.contextualType=u,s.inferenceContext=T}}function js(r,i){if(i&&i!==0)return hn(r,i);var t=Da(r);if(!t.resolvedType){var o=ln,s=ns;ln=Ba,ns=void 0,t.resolvedType=hn(r,i),ns=s,ln=o}return t.resolvedType}function bk(r){return r=e.skipParentheses(r,!0),r.kind===210||r.kind===228||e.isJSDocTypeAssertion(r)}function vy(r,i,t){var o=e.getEffectiveInitializer(r),s=kk(o)||(t?bg(o,t,void 0,i||0):js(o,i));return e.isParameter(r)&&r.name.kind===201&&Ln(s)&&!s.target.hasRestElement&&Q_(s)<r.name.elements.length?Q7(s,r.name):s}function Q7(r,i){for(var t=i.elements,o=Co(r).slice(),s=r.target.elementFlags.slice(),u=Q_(r);u<t.length;u++){var T=t[u];(u<t.length-1||!(T.kind===202&&T.dotDotDotToken))&&(o.push(!e.isOmittedExpression(T)&&tm(T)?Es(T,!1,!1):xe),s.push(2),!e.isOmittedExpression(T)&&!tm(T)&&Rp(T,xe))}return Ml(o,s,r.target.readonly)}function Kb(r,i){var t=e.getCombinedNodeFlags(r)&2||e.isDeclarationReadonly(r)?i:Lp(i);if(e.isInJSFile(r)){if(oE(t))return Rp(r,xe),xe;if(ND(t))return Rp(r,Ki),Ki}return t}function p0(r,i){if(i){if(i.flags&3145728){var t=i.types;return e.some(t,function(s){return p0(r,s)})}if(i.flags&58982400){var o=Cc(i)||We;return ls(o,4)&&ls(r,128)||ls(o,8)&&ls(r,256)||ls(o,64)&&ls(r,2048)||ls(o,4096)&&ls(r,8192)||p0(r,o)}return!!(i.flags&406847616&&ls(r,128)||i.flags&256&&ls(r,256)||i.flags&2048&&ls(r,2048)||i.flags&512&&ls(r,512)||i.flags&8192&&ls(r,8192))}return!1}function lm(r){var i=r.parent;return e.isAssertionExpression(i)&&e.isConstTypeReference(i.type)||e.isJSDocTypeAssertion(i)&&e.isConstTypeReference(e.getJSDocTypeAssertionType(i))||(e.isParenthesizedExpression(i)||e.isArrayLiteralExpression(i)||e.isSpreadElement(i))&&lm(i)||(e.isPropertyAssignment(i)||e.isShorthandPropertyAssignment(i)||e.isTemplateSpan(i))&&lm(i.parent)}function fm(r,i,t,o){var s=hn(r,i,o);return lm(r)?Vc(s):bk(r)?s:ID(s,Kh(arguments.length===2?Su(r):t,r))}function Sk(r,i){return r.name.kind===161&&Zf(r.name),fm(r.initializer,i)}function Tk(r,i){z6(r),r.name.kind===161&&Zf(r.name);var t=gk(r,i);return xk(r,t,i)}function xk(r,i,t){if(t&&t&10){var o=Ym(i,0,!0),s=Ym(i,1,!0),u=o||s;if(u&&u.typeParameters){var T=jp(r,2);if(T){var q=Ym(C_(T),o?0:1,!1);if(q&&!q.typeParameters){if(t&8)return Ek(r,t),bn;var fe=Xm(r),Ne=fe.signature&&So(fe.signature),$e=Ne&&RC(Ne);if($e&&!$e.typeParameters&&!e.every(fe.inferences,Ud)){var Ze=Z7(fe,u.typeParameters),lr=B1(u,Ze),yr=e.map(fe.inferences,function(Zr){return jD(Zr.typeParameter)});if(RD(lr,q,function(Zr,ui){Cf(yr,Zr,ui,0,!0)}),e.some(yr,Ud)&&(BD(lr,q,function(Zr,ui){Cf(yr,Zr,ui)}),!Y7(fe.inferences,yr)))return $7(fe.inferences,yr),fe.inferredTypeParameters=e.concatenate(fe.inferredTypeParameters,Ze),qg(lr)}return qg(BC(u,q,fe))}}}}return i}function Ek(r,i){if(i&2){var t=Xm(r);t.flags|=4}}function Ud(r){return!!(r.candidates||r.contraCandidates)}function Y7(r,i){for(var t=0;t<r.length;t++)if(Ud(r[t])&&Ud(i[t]))return!0;return!1}function $7(r,i){for(var t=0;t<r.length;t++)!Ud(r[t])&&Ud(i[t])&&(r[t]=i[t])}function Z7(r,i){for(var t=[],o,s,u=0,T=i;u<T.length;u++){var q=T[u],fe=q.symbol.escapedName;if(Gb(r.inferredTypeParameters,fe)||Gb(t,fe)){var Ne=eO(e.concatenate(r.inferredTypeParameters,t),fe),$e=bo(262144,Ne),Ze=vu($e);Ze.target=q,o=e.append(o,q),s=e.append(s,Ze),t.push(Ze)}else t.push(q)}if(s)for(var lr=Kc(o,s),yr=0,Zr=s;yr<Zr.length;yr++){var q=Zr[yr];q.mapper=lr}return t}function Gb(r,i){return e.some(r,function(t){return t.symbol.escapedName===i})}function eO(r,i){for(var t=i.length;t>1&&i.charCodeAt(t-1)>=48&&i.charCodeAt(t-1)<=57;)t--;for(var o=i.slice(0,t),s=1;;s++){var u=o+s;if(!Gb(r,u))return u}}function Ck(r){var i=jd(r);if(i&&!i.typeParameters)return So(i)}function rO(r){var i=hn(r.expression),t=Wm(i,r.expression),o=Ck(i);return o&&Ch(o,r,t!==i)}function ac(r){var i=kk(r);if(i)return i;if(r.flags&67108864&&ns){var t=ns[A(r)];if(t)return t}var o=is,s=hn(r);if(is!==o){var u=ns||(ns=[]);u[A(r)]=s,e.setNodeFlags(r,r.flags|67108864)}return s}function kk(r){var i=e.skipParentheses(r,!0);if(e.isJSDocTypeAssertion(i)){var t=e.getJSDocTypeAssertionType(i);if(!e.isConstTypeReference(t))return Ua(t)}if(i=e.skipParentheses(r),e.isCallExpression(i)&&i.expression.kind!==106&&!e.isRequireCall(i,!0)&&!YC(i)){var t=e.isCallChain(i)?rO(i):Ck(nm(i.expression));if(t)return t}else{if(e.isAssertionExpression(i)&&!e.isConstTypeReference(i.type))return Ua(i.type);if(r.kind===8||r.kind===10||r.kind===110||r.kind===95)return hn(r)}}function yy(r){var i=Da(r);if(i.contextFreeType)return i.contextFreeType;var t=r.contextualType;r.contextualType=xe;try{var o=i.contextFreeType=hn(r,4);return o}finally{r.contextualType=t}}function hn(r,i,t){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkExpression",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath});var o=er;er=r,gr=0;var s=aO(r,i,t),u=xk(r,s,i);return Wb(u)&&iO(r,u),er=o,e.tracing===null||e.tracing===void 0||e.tracing.pop(),u}function iO(r,i){var t=r.parent.kind===205&&r.parent.expression===r||r.parent.kind===206&&r.parent.expression===r||(r.kind===79||r.kind===160)&&k0(r)||r.parent.kind===180&&r.parent.exprName===r||r.parent.kind===274;if(t||Wr(r,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),ye.isolatedModules){e.Debug.assert(!!(i.symbol.flags&128));var o=i.symbol.valueDeclaration;o.flags&8388608&&Wr(r,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided)}}function tO(r,i){if(e.hasJSDocNodes(r)&&e.isJSDocTypeAssertion(r)){var t=e.getJSDocTypeAssertionType(r);return tk(t,t,r.expression,i)}return hn(r.expression,i)}function aO(r,i,t){var o=r.kind;if(ce)switch(o){case 225:case 212:case 213:ce.throwIfCancellationRequested()}switch(o){case 79:return fw(r,i);case 80:return D5(r);case 108:return ay(r);case 106:return ab(r);case 104:return hi;case 14:case 10:return sg(Ou(r.text));case 8:return ES(r),sg(xf(+r.text));case 9:return H9(r),sg(cD({negative:!1,base10Value:e.parsePseudoBigInt(r.text)}));case 110:return Rt;case 95:return ri;case 222:return G7(r);case 13:return _i;case 203:return oC(r,i,t);case 204:return r5(r,i);case 205:return bC(r,i);case 160:return SC(r,i);case 206:return L5(r,i);case 207:if(r.expression.kind===100)return f7(r);case 208:return l7(r,i);case 209:return _7(r);case 211:return tO(r,i);case 225:return FF(r);case 212:case 213:return gk(r,i);case 215:return I7(r);case 210:case 228:return p7(r);case 229:return g7(r);case 230:return m7(r);case 214:return P7(r);case 216:return w7(r);case 217:return O7(r);case 218:return F7(r);case 219:return M7(r);case 220:return Le(r,i);case 221:return K7(r,i);case 224:return Qw(r,i);case 226:return Ur;case 223:return V7(r);case 231:return Yw(r);case 287:return d5(r,i);case 277:return n5(r,i);case 278:return t5(r,i);case 281:return o5(r);case 285:return c5(r,i);case 279:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return Oe}function Ak(r){r.expression&&Zs(r.expression,e.Diagnostics.Type_expected),$n(r.constraint),$n(r.default);var i=Tf(It(r));Cc(i),rh(i)||Wr(r.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,ht(i));var t=qc(i),o=H_(i);t&&o&&Gc(o,Wc(gn(t,Rd(i,o)),o),r.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),oe&&gm(r.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function Pk(r){Af(r),D0(r);var i=e.getContainingFunction(r);e.hasSyntacticModifier(r,16476)&&(i.kind===170&&e.nodeIsPresent(i.body)||Wr(r,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),i.kind===170&&e.isIdentifier(r.name)&&r.name.escapedText==="constructor"&&Wr(r.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),r.questionToken&&e.isBindingPattern(r.name)&&i.body&&Wr(r,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),r.name&&e.isIdentifier(r.name)&&(r.name.escapedText==="this"||r.name.escapedText==="new")&&(i.parameters.indexOf(r)!==0&&Wr(r,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,r.name.escapedText),(i.kind===170||i.kind===174||i.kind===179)&&Wr(r,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),i.kind===213&&Wr(r,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),(i.kind===171||i.kind===172)&&Wr(r,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),r.dotDotDotToken&&!e.isBindingPattern(r.name)&&!oo(Lt(Jt(r.symbol)),ca)&&Wr(r,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function nO(r){var i=oO(r);if(!i){Wr(r,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}var t=Ku(i),o=wu(t);if(!!o){$n(r.type);var s=r.parameterName;if(o.kind===0||o.kind===2)dh(s);else if(o.parameterIndex>=0){if(U(t)&&o.parameterIndex===t.parameters.length-1)Wr(s,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter);else if(o.type){var u=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)};Gc(o.type,Jt(t.parameters[o.parameterIndex]),r.type,void 0,u)}}else if(s){for(var T=!1,q=0,fe=i.parameters;q<fe.length;q++){var Ne=fe[q].name;if(e.isBindingPattern(Ne)&&Nk(Ne,s,o.parameterName)){T=!0;break}}T||Wr(r.parameterName,e.Diagnostics.Cannot_find_parameter_0,o.parameterName)}}}function oO(r){switch(r.parent.kind){case 213:case 173:case 255:case 212:case 178:case 168:case 167:var i=r.parent;if(r===i.type)return i}}function Nk(r,i,t){for(var o=0,s=r.elements;o<s.length;o++){var u=s[o];if(!e.isOmittedExpression(u)){var T=u.name;if(T.kind===79&&T.escapedText===t)return Wr(i,e.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,t),!0;if((T.kind===201||T.kind===200)&&Nk(T,i,t))return!0}}}function iv(r){r.kind===175?D9(r):(r.kind===178||r.kind===255||r.kind===179||r.kind===173||r.kind===170||r.kind===174)&&O0(r);var i=e.getFunctionFlags(r);if(i&4||((i&3)===3&&Se<99&&dc(r,6144),(i&3)===2&&Se<4&&dc(r,64),(i&3)!==0&&Se<2&&dc(r,128)),Ey(e.getEffectiveTypeParameterDeclarations(r)),IF(r),e.forEach(r.parameters,Pk),r.type&&$n(r.type),oe){XO(r);var t=e.getEffectiveReturnTypeNode(r);if(Tr&&!t)switch(r.kind){case 174:Wr(r,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 173:Wr(r,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(t){var o=e.getFunctionFlags(r);if((o&5)===1){var s=Ua(t);if(s===Vt)Wr(t,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var u=Sg(0,s,(o&2)!==0)||xe,T=Sg(1,s,(o&2)!==0)||u,q=Sg(2,s,(o&2)!==0)||We,fe=lk(u,T,q,!!(o&2));Gc(fe,s,t)}}else(o&3)===2&&wO(r,t)}r.kind!==175&&r.kind!==315&&A_(r)}}function sO(r){for(var i=new e.Map,t=new e.Map,o=new e.Map,s=0,u=r.members;s<u.length;s++){var T=u[s];if(T.kind===170)for(var q=0,fe=T.parameters;q<fe.length;q++){var Ne=fe[q];e.isParameterPropertyDeclaration(Ne,T)&&!e.isBindingPattern(Ne.name)&&Ii(i,Ne.name,Ne.name.escapedText,3)}else{var $e=e.isStatic(T),Ze=T.name;if(!Ze)continue;var lr=e.isPrivateIdentifier(Ze),yr=lr&&$e?16:0,Zr=lr?o:$e?t:i,ui=Ze&&e.getPropertyNameForPropertyNameNode(Ze);if(ui)switch(T.kind){case 171:Ii(Zr,Ze,ui,1|yr);break;case 172:Ii(Zr,Ze,ui,2|yr);break;case 166:Ii(Zr,Ze,ui,3|yr);break;case 168:Ii(Zr,Ze,ui,8|yr);break}}}function Ii(Fi,Ri,Xi,ea){var lt=Fi.get(Xi);if(lt)if((lt&16)!==(ea&16))Wr(Ri,e.Diagnostics.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,e.getTextOfNode(Ri));else{var Ia=!!(lt&8),fa=!!(ea&8);Ia||fa?Ia!==fa&&Wr(Ri,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(Ri)):lt&ea&-17?Wr(Ri,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(Ri)):Fi.set(Xi,lt|ea)}else Fi.set(Xi,ea)}}function cO(r){for(var i=0,t=r.members;i<t.length;i++){var o=t[i],s=o.name,u=e.isStatic(o);if(u&&s){var T=e.getPropertyNameForPropertyNameNode(s);switch(T){case"name":case"length":case"caller":case"arguments":case"prototype":var q=e.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,fe=sl(It(r));Wr(s,q,T,fe);break}}}}function Ik(r){for(var i=new e.Map,t=0,o=r.members;t<o.length;t++){var s=o[t];if(s.kind===165){var u=void 0,T=s.name;switch(T.kind){case 10:case 8:u=T.text;break;case 79:u=e.idText(T);break;default:continue}i.get(u)?(Wr(e.getNameOfDeclaration(s.symbol.valueDeclaration),e.Diagnostics.Duplicate_identifier_0,u),Wr(s.name,e.Diagnostics.Duplicate_identifier_0,u)):i.set(u,!0)}}}function Hb(r){if(r.kind===257){var i=It(r);if(i.declarations&&i.declarations.length>0&&i.declarations[0]!==r)return}var t=RT(It(r));if(t!=null&&t.declarations){for(var o=new e.Map,s=function(fe){fe.parameters.length===1&&fe.parameters[0].type&&md(Ua(fe.parameters[0].type),function(Ne){var $e=o.get(Gu(Ne));$e?$e.declarations.push(fe):o.set(Gu(Ne),{type:Ne,declarations:[fe]})})},u=0,T=t.declarations;u<T.length;u++){var q=T[u];s(q)}o.forEach(function(fe){if(fe.declarations.length>1)for(var Ne=0,$e=fe.declarations;Ne<$e.length;Ne++){var Ze=$e[Ne];Wr(Ze,e.Diagnostics.Duplicate_index_signature_for_type_0,ht(fe.type))}})}}function wk(r){!Af(r)&&!W9(r)&&F0(r.name),D0(r),Xb(r),e.hasSyntacticModifier(r,128)&&r.kind===166&&r.initializer&&Wr(r,e.Diagnostics.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,e.declarationNameToString(r.name))}function uO(r){return e.isPrivateIdentifier(r.name)&&Wr(r,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),wk(r)}function lO(r){z6(r)||F0(r.name),Uk(r),e.hasSyntacticModifier(r,128)&&r.kind===168&&r.body&&Wr(r,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(r.name)),e.isPrivateIdentifier(r.name)&&!e.getContainingClass(r)&&Wr(r,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Xb(r)}function Xb(r){if(e.isPrivateIdentifier(r.name)&&Se<99){for(var i=e.getEnclosingBlockScopeContainer(r);i;i=e.getEnclosingBlockScopeContainer(i))Da(i).flags|=67108864;if(e.isClassExpression(r.parent)){var t=rb(r.parent);t&&(Da(r.name).flags|=524288,Da(t).flags|=65536)}}}function fO(r){Af(r),e.forEachChild(r,$n)}function _O(r){iv(r),U9(r)||z9(r),$n(r.body);var i=It(r),t=e.getDeclarationOfKind(i,r.kind);if(r===t&&v0(i),e.nodeIsMissing(r.body)||!oe)return;function o(lr){return e.isPrivateIdentifierClassElementDeclaration(lr)?!0:lr.kind===166&&!e.isStatic(lr)&&!!lr.initializer}var s=r.parent;if(e.getClassExtendsHeritageElement(s)){ib(r.parent,s);var u=XE(s),T=HE(r.body);if(T){u&&Wr(T,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null);var q=(e.getEmitScriptTarget(ye)!==99||!Fe)&&(e.some(r.parent.members,o)||e.some(r.parameters,function(lr){return e.hasSyntacticModifier(lr,16476)}));if(q)if(!pO(T,r.body))Wr(T,e.Diagnostics.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers);else{for(var fe=void 0,Ne=0,$e=r.body.statements;Ne<$e.length;Ne++){var Ze=$e[Ne];if(e.isExpressionStatement(Ze)&&e.isSuperCall(e.skipOuterExpressions(Ze.expression))){fe=Ze;break}if(!e.isPrologueDirective(Ze)&&Ok(Ze))break}fe===void 0&&Wr(r,e.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else u||Wr(r,e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}function pO(r,i){var t=e.walkUpParenthesizedExpressions(r.parent);return e.isExpressionStatement(t)&&t.parent===i}function Ok(r){return r.kind===106||r.kind===108?!0:e.isThisContainerOrFunctionBlock(r)?!1:!!e.forEachChild(r,Ok)}function Fk(r){if(oe){if(!O0(r)&&!N9(r)&&F0(r.name),hy(r),iv(r),r.kind===171&&!(r.flags&8388608)&&e.nodeIsPresent(r.body)&&r.flags&256&&(r.flags&512||Wr(r.name,e.Diagnostics.A_get_accessor_must_return_a_value)),r.name.kind===161&&Zf(r.name),Pp(r)){var i=It(r),t=e.getDeclarationOfKind(i,171),o=e.getDeclarationOfKind(i,172);if(t&&o&&!(xg(t)&1)){Da(t).flags|=1;var s=e.getEffectiveModifierFlags(t),u=e.getEffectiveModifierFlags(o);(s&128)!==(u&128)&&(Wr(t.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),Wr(o.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract)),(s&16&&!(u&24)||s&8&&!(u&8))&&(Wr(t.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Wr(o.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter));var T=d(t),q=d(o);T&&q&&Gc(T,q,t,e.Diagnostics.The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type)}}var fe=tr(It(r));r.kind===171&&Ub(r,fe)}$n(r.body),Xb(r)}function dO(r){hy(r)}function d0(r,i){return S_(e.map(r.typeArguments,Ua),i,Ol(i),e.isInJSFile(r))}function Mk(r,i){for(var t,o,s=!0,u=0;u<i.length;u++){var T=qc(i[u]);T&&(t||(t=d0(r,i),o=Kc(i,t)),s=s&&Gc(t[u],gn(T,o),r.typeArguments[u],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return s}function Qb(r){var i=Uv(r);if(!ra(i)){var t=Da(r).resolvedSymbol;if(t)return t.flags&524288&&Ma(t).typeParameters||(e.getObjectFlags(i)&4?i.target.localTypeParameters:void 0)}}function Yb(r){Ay(r,r.typeArguments),r.kind===177&&r.typeName.jsdocDotPos!==void 0&&!e.isInJSFile(r)&&!e.isInJSDoc(r)&&qp(r,r.typeName.jsdocDotPos,1,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments),e.forEach(r.typeArguments,$n);var i=Uv(r);if(!ra(i)){if(r.typeArguments&&oe){var t=Qb(r);t&&Mk(r,t)}var o=Da(r).resolvedSymbol;o&&(e.some(o.declarations,function(s){return ky(s)&&!!(s.flags&134217728)})&&fu(_y(r),o.declarations,o.escapedName),i.flags&32&&o.flags&8&&Wr(r,e.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,ht(i)))}}function gO(r){var i=e.tryCast(r.parent,e.isTypeReferenceType);if(!!i){var t=Qb(i);if(!!t){var o=qc(t[i.typeArguments.indexOf(r)]);return o&&gn(o,Kc(t,d0(i,t)))}}}function mO(r){YT(r)}function vO(r){if(e.forEach(r.members,$n),oe){var i=Lx(r);T0(i,i.symbol),Hb(r),Ik(r)}}function yO(r){$n(r.elementType)}function hO(r){for(var i=r.elements,t=!1,o=!1,s=e.some(i,e.isNamedTupleMember),u=0,T=i;u<T.length;u++){var q=T[u];if(q.kind!==196&&s){vt(q,e.Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names);break}var fe=V1(q);if(fe&8){var Ne=Ua(q.type);if(!ap(Ne)){Wr(q,e.Diagnostics.A_rest_element_type_must_be_an_array_type);break}(_c(Ne)||Ln(Ne)&&Ne.target.combinedFlags&4)&&(o=!0)}else if(fe&4){if(o){vt(q,e.Diagnostics.A_rest_element_cannot_follow_another_rest_element);break}o=!0}else if(fe&2){if(o){vt(q,e.Diagnostics.An_optional_element_cannot_follow_a_rest_element);break}t=!0}else if(t){vt(q,e.Diagnostics.A_required_element_cannot_follow_an_optional_element);break}}e.forEach(r.elements,$n),Ua(r)}function DO(r){e.forEach(r.types,$n),Ua(r)}function Lk(r,i){if(!(r.flags&8388608))return r;var t=r.objectType,o=r.indexType;if(oo(o,Ll(t,!1)))return i.kind===206&&e.isAssignmentTarget(i)&&e.getObjectFlags(t)&32&&ll(t)&1&&Wr(i,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,ht(t)),r;var s=$(t);if(kc(s,Ui)&&ws(o,296))return r;if(Md(t)){var u=$1(o,i);if(u){var T=md(s,function(q){return tn(q,u)});if(T&&e.getDeclarationModifierFlagsFromSymbol(T)&24)return Wr(i,e.Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,e.unescapeLeadingUnderscores(u)),Oe}}return Wr(i,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,ht(o),ht(t)),Oe}function bO(r){$n(r.objectType),$n(r.indexType),Lk(Nx(r),r)}function SO(r){TO(r),$n(r.typeParameter),$n(r.nameType),$n(r.type),r.type||Rp(r,xe);var i=rD(r),t=h_(i);if(t)Gc(t,Pi,r.nameType);else{var o=Iu(i);Gc(o,Pi,e.getEffectiveConstraintOfTypeParameter(r.typeParameter))}}function TO(r){var i;if(!((i=r.members)===null||i===void 0)&&i.length)return vt(r.members[0],e.Diagnostics.A_mapped_type_may_not_declare_properties_or_methods)}function xO(r){dh(r)}function EO(r){w9(r),$n(r.type)}function CO(r){e.forEachChild(r,$n)}function kO(r){e.findAncestor(r,function(i){return i.parent&&i.parent.kind===188&&i.parent.extendsType===i})||vt(r,e.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),$n(r.typeParameter),A_(r)}function AO(r){for(var i=0,t=r.templateSpans;i<t.length;i++){var o=t[i];$n(o.type);var s=Ua(o.type);Gc(s,wi,o.type)}Ua(r)}function PO(r){$n(r.argument),Ua(r)}function NO(r){r.dotDotDotToken&&r.questionToken&&vt(r,e.Diagnostics.A_tuple_member_cannot_be_both_optional_and_rest),r.type.kind===184&&vt(r.type,e.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),r.type.kind===185&&vt(r.type,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),$n(r.type),Ua(r)}function g0(r){return(e.hasEffectiveModifier(r,8)||e.isPrivateIdentifierClassElementDeclaration(r))&&!!(r.flags&8388608)}function m0(r,i){var t=e.getCombinedModifierFlags(r);return r.parent.kind!==257&&r.parent.kind!==256&&r.parent.kind!==225&&r.flags&8388608&&(!(t&2)&&!(e.isModuleBlock(r.parent)&&e.isModuleDeclaration(r.parent.parent)&&e.isGlobalScopeAugmentation(r.parent.parent))&&(t|=1),t|=2),t&i}function v0(r){if(!oe)return;function i(Qt,Qa){var En=Qa!==void 0&&Qa.parent===Qt[0].parent;return En?Qa:Qt[0]}function t(Qt,Qa,En,Gn,ia){var Xn=Gn^ia;if(Xn!==0){var ii=m0(i(Qt,Qa),En);e.forEach(Qt,function(Ar){var Pt=m0(Ar,En)^ii;Pt&1?Wr(e.getNameOfDeclaration(Ar),e.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):Pt&2?Wr(e.getNameOfDeclaration(Ar),e.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):Pt&24?Wr(e.getNameOfDeclaration(Ar)||Ar,e.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):Pt&128&&Wr(e.getNameOfDeclaration(Ar),e.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function o(Qt,Qa,En,Gn){if(En!==Gn){var ia=e.hasQuestionToken(i(Qt,Qa));e.forEach(Qt,function(Xn){var ii=e.hasQuestionToken(Xn)!==ia;ii&&Wr(e.getNameOfDeclaration(Xn),e.Diagnostics.Overload_signatures_must_all_be_optional_or_required)})}}var s=155,u=0,T=s,q=!1,fe=!0,Ne=!1,$e,Ze,lr,yr=r.declarations,Zr=(r.flags&16384)!==0;function ui(Qt){if(!(Qt.name&&e.nodeIsMissing(Qt.name))){var Qa=!1,En=e.forEachChild(Qt.parent,function(Pt){if(Qa)return Pt;Qa=Pt===Qt});if(En&&En.pos===Qt.end&&En.kind===Qt.kind){var Gn=En.name||En,ia=En.name;if(Qt.name&&ia&&(e.isPrivateIdentifier(Qt.name)&&e.isPrivateIdentifier(ia)&&Qt.name.escapedText===ia.escapedText||e.isComputedPropertyName(Qt.name)&&e.isComputedPropertyName(ia)||e.isPropertyNameLiteral(Qt.name)&&e.isPropertyNameLiteral(ia)&&e.getEscapedTextOfIdentifierOrLiteral(Qt.name)===e.getEscapedTextOfIdentifierOrLiteral(ia))){var Xn=(Qt.kind===168||Qt.kind===167)&&e.isStatic(Qt)!==e.isStatic(En);if(Xn){var ii=e.isStatic(Qt)?e.Diagnostics.Function_overload_must_be_static:e.Diagnostics.Function_overload_must_not_be_static;Wr(Gn,ii)}return}if(e.nodeIsPresent(En.body)){Wr(Gn,e.Diagnostics.Function_implementation_name_must_be_0,e.declarationNameToString(Qt.name));return}}var Ar=Qt.name||Qt;Zr?Wr(Ar,e.Diagnostics.Constructor_implementation_is_missing):e.hasSyntacticModifier(Qt,128)?Wr(Ar,e.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):Wr(Ar,e.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}var Ii=!1,Fi=!1,Ri=!1,Xi=[];if(yr)for(var ea=0,lt=yr;ea<lt.length;ea++){var Ia=lt[ea],fa=Ia,Dn=fa.flags&8388608,Ra=fa.parent&&(fa.parent.kind===257||fa.parent.kind===181)||Dn;if(Ra&&(lr=void 0),(fa.kind===256||fa.kind===225)&&!Dn&&(Ri=!0),fa.kind===255||fa.kind===168||fa.kind===167||fa.kind===170){Xi.push(fa);var Bn=m0(fa,s);u|=Bn,T&=Bn,q=q||e.hasQuestionToken(fa),fe=fe&&e.hasQuestionToken(fa);var Jn=e.nodeIsPresent(fa.body);Jn&&$e?Zr?Fi=!0:Ii=!0:(lr==null?void 0:lr.parent)===fa.parent&&lr.end!==fa.pos&&ui(lr),Jn?$e||($e=fa):Ne=!0,lr=fa,Ra||(Ze=fa)}}if(Fi&&e.forEach(Xi,function(Qt){Wr(Qt,e.Diagnostics.Multiple_constructor_implementations_are_not_allowed)}),Ii&&e.forEach(Xi,function(Qt){Wr(e.getNameOfDeclaration(Qt)||Qt,e.Diagnostics.Duplicate_function_implementation)}),Ri&&!Zr&&r.flags&16&&yr){var On=e.filter(yr,function(Qt){return Qt.kind===256}).map(function(Qt){return e.createDiagnosticForNode(Qt,e.Diagnostics.Consider_adding_a_declare_modifier_to_this_class)});e.forEach(yr,function(Qt){var Qa=Qt.kind===256?e.Diagnostics.Class_declaration_cannot_implement_overload_list_for_0:Qt.kind===255?e.Diagnostics.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;Qa&&e.addRelatedInfo.apply(void 0,qe([Wr(e.getNameOfDeclaration(Qt)||Qt,Qa,e.symbolName(r))],On,!1))})}if(Ze&&!Ze.body&&!e.hasSyntacticModifier(Ze,128)&&!Ze.questionToken&&ui(Ze),Ne&&(yr&&(t(yr,$e,s,u,T),o(yr,$e,q,fe)),$e))for(var Ao=Ip(r),$i=Ku($e),Vi=0,Ot=Ao;Vi<Ot.length;Vi++){var Wa=Ot[Vi];if(!L8($i,Wa)){e.addRelatedInfo(Wr(Wa.declaration,e.Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature),e.createDiagnosticForNode($e,e.Diagnostics.The_implementation_signature_is_declared_here));break}}}function tv(r){if(!oe)return;var i=r.localSymbol;if(!i&&(i=It(r),!i.exportSymbol)||e.getDeclarationOfKind(i,r.kind)!==r)return;for(var t=0,o=0,s=0,u=0,T=i.declarations;u<T.length;u++){var q=T[u],fe=Ii(q),Ne=m0(q,513);Ne&1?Ne&512?s|=fe:t|=fe:o|=fe}var $e=t|o,Ze=t&o,lr=s&$e;if(Ze||lr)for(var yr=0,Zr=i.declarations;yr<Zr.length;yr++){var q=Zr[yr],fe=Ii(q),ui=e.getNameOfDeclaration(q);fe&lr?Wr(ui,e.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,e.declarationNameToString(ui)):fe&Ze&&Wr(ui,e.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,e.declarationNameToString(ui))}function Ii(Fi){var Ri=Fi;switch(Ri.kind){case 257:case 258:case 343:case 336:case 337:return 2;case 260:return e.isAmbientModule(Ri)||e.getModuleInstanceState(Ri)!==0?5:4;case 256:case 259:case 297:return 3;case 303:return 7;case 270:case 220:var Xi=Ri,ea=e.isExportAssignment(Xi)?Xi.expression:Xi.right;if(!e.isEntityNameExpression(ea))return 1;Ri=ea;case 264:case 267:case 266:var lt=0,Ia=zo(It(Ri));return e.forEach(Ia.declarations,function(fa){lt|=Ii(fa)}),lt;case 253:case 202:case 255:case 269:case 79:return 1;default:return e.Debug.failBadSyntaxKind(Ri)}}}function av(r,i,t,o){var s=nv(r,i);return s&&zd(s,i,t,o)}function nv(r,i){if(!At(r)){var t=r;if(t.promisedTypeOfPromise)return t.promisedTypeOfPromise;if(qu(r,zv(!1)))return t.promisedTypeOfPromise=Co(r)[0];if(!Dg(r,262140)){var o=ai(r,"then");if(!At(o)){var s=o?za(o,0):e.emptyArray;if(s.length===0){i&&Wr(i,e.Diagnostics.A_promise_must_have_a_then_method);return}var u=$s(ba(e.map(s,Bb)),2097152);if(!At(u)){var T=za(u,0);if(T.length===0){i&&Wr(i,e.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return t.promisedTypeOfPromise=ba(e.map(T,Bb),2)}}}}}function ov(r,i,t,o,s){var u=i?zd(r,t,o,s):k_(r,t,o,s);return u||Oe}function Rk(r){if(Dg(r,262140))return!1;var i=ai(r,"then");return!!i&&za($s(i,2097152),0).length>0}function $b(r){var i;if(r.flags&16777216){var t=q1(!1);return!!t&&r.aliasSymbol===t&&((i=r.aliasTypeArguments)===null||i===void 0?void 0:i.length)===1}return!1}function sv(r){return r.flags&1048576?Cs(r,sv):$b(r)?r.aliasTypeArguments[0]:r}function IO(r){if(At(r)||$b(r))return r;if(Md(r)){var i=Cc(r);if(!i||i.flags&3||Ef(i)||Rk(i)){var t=q1(!0);if(t)return Kg(t,[sv(r)])}}return e.Debug.assert(nv(r)===void 0,"type provided should not be a non-generic 'promise'-like."),r}function zd(r,i,t,o){var s=k_(r,i,t,o);return s&&IO(s)}function k_(r,i,t,o){if(At(r)||$b(r))return r;var s=r;if(s.awaitedTypeOfType)return s.awaitedTypeOfType;if(r.flags&1048576){var u=i?function(fe){return k_(fe,i,t,o)}:k_;return s.awaitedTypeOfType=Cs(r,u)}var T=nv(r);if(T){if(r.id===T.id||Za.lastIndexOf(T.id)>=0){i&&Wr(i,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}Za.push(r.id);var q=k_(T,i,t,o);return Za.pop(),q?s.awaitedTypeOfType=q:void 0}if(Rk(r)){i&&(e.Debug.assertIsDefined(t),Wr(i,t,o));return}return s.awaitedTypeOfType=r}function wO(r,i){var t=Ua(i);if(Se>=2){if(ra(t))return;var o=zv(!0);if(o!==qr&&!qu(t,o)){Wr(i,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,ht(k_(t)||Vt));return}}else{if(FO(i),ra(t))return;var s=e.getEntityNameFromTypeNode(i);if(s===void 0){Wr(i,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,ht(t));return}var u=Ps(s,111551,!0),T=u?Jt(u):Oe;if(ra(T)){s.kind===79&&s.escapedText==="Promise"&&bf(t)===zv(!1)?Wr(i,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):Wr(i,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(s));return}var q=r3(!0);if(q===tt){Wr(i,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(s));return}if(!Gc(T,q,i,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 fe=s&&e.getFirstIdentifier(s),Ne=Pc(r.locals,fe.escapedText,111551);if(Ne){Wr(Ne.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(fe),e.entityNameToString(s));return}}ov(t,!1,r,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function OO(r){var i=sm(r);u0(i,r);var t=So(i);if(!(t.flags&1)){var o,s;switch(r.parent.kind){case 256:o=e.Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1;var u=It(r.parent),T=Jt(u);s=ba([T,Vt]);break;case 166:case 163:o=e.Diagnostics.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any,s=Vt;break;case 168:case 171:case 172:o=e.Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1;var q=Wp(r.parent),fe=cx(q);s=ba([fe,Vt]);break;default:return e.Debug.fail()}Gc(t,s,r,o)}}function FO(r){Bk(r&&e.getEntityNameFromTypeNode(r))}function Bk(r){if(!!r){var i=e.getFirstIdentifier(r),t=(r.kind===79?788968:1920)|2097152,o=os(i,i.escapedText,t,void 0,void 0,!0);o&&o.flags&2097152&&Wf(o)&&!fv(zo(o))&&!gu(o)&&jf(o)}}function _m(r){var i=Zb(r);i&&e.isEntityName(i)&&Bk(i)}function Zb(r){if(r)switch(r.kind){case 187:case 186:return Jk(r.types);case 188:return Jk([r.trueType,r.falseType]);case 190:case 196:return Zb(r.type);case 177:return r.typeName}}function Jk(r){for(var i,t=0,o=r;t<o.length;t++){for(var s=o[t];s.kind===190||s.kind===196;)s=s.type;if(s.kind!==143&&!(!ur&&(s.kind===195&&s.literal.kind===104||s.kind===152))){var u=Zb(s);if(!u)return;if(i){if(!e.isIdentifier(i)||!e.isIdentifier(u)||i.escapedText!==u.escapedText)return}else i=u}}return i}function y0(r){var i=e.getEffectiveTypeAnnotationNode(r);return e.isRestParameter(r)?e.getRestParameterElementType(i):i}function hy(r){if(!!r.decorators&&!!e.nodeCanBeDecorated(r,r.parent,r.parent.parent)){ye.experimentalDecorators||Wr(r,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning);var i=r.decorators[0];if(dc(i,8),r.kind===163&&dc(i,32),ye.emitDecoratorMetadata)switch(dc(i,16),r.kind){case 256:var t=e.getFirstConstructorWithBody(r);if(t)for(var o=0,s=t.parameters;o<s.length;o++){var u=s[o];_m(y0(u))}break;case 171:case 172:var T=r.kind===171?172:171,q=e.getDeclarationOfKind(It(r),T);_m(Wu(r)||q&&Wu(q));break;case 168:for(var fe=0,Ne=r.parameters;fe<Ne.length;fe++){var u=Ne[fe];_m(y0(u))}_m(e.getEffectiveReturnTypeNode(r));break;case 166:_m(e.getEffectiveTypeAnnotationNode(r));break;case 163:_m(y0(r));for(var $e=r.parent,Ze=0,lr=$e.parameters;Ze<lr.length;Ze++){var u=lr[Ze];_m(y0(u))}break}e.forEach(r.decorators,OO)}}function MO(r){oe&&(Uk(r),SS(r),pm(r,r.name))}function LO(r){r.typeExpression||Wr(r.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),r.name&&gm(r.name,e.Diagnostics.Type_alias_name_cannot_be_0),$n(r.typeExpression),Ey(e.getEffectiveTypeParameterDeclarations(r))}function RO(r){$n(r.constraint);for(var i=0,t=r.typeParameters;i<t.length;i++){var o=t[i];$n(o)}}function BO(r){$n(r.typeExpression)}function JO(r){$n(r.typeExpression)}function jO(r){$n(r.typeExpression)}function UO(r){oe&&!r.type&&!e.isJSDocConstructSignature(r)&&Rp(r,xe),iv(r)}function zO(r){var i=e.getEffectiveJSDocHost(r);(!i||!e.isClassDeclaration(i)&&!e.isClassExpression(i))&&Wr(i,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(r.tagName))}function WO(r){var i=e.getEffectiveJSDocHost(r);if(!i||!e.isClassDeclaration(i)&&!e.isClassExpression(i)){Wr(i,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(r.tagName));return}var t=e.getJSDocTags(i).filter(e.isJSDocAugmentsTag);e.Debug.assert(t.length>0),t.length>1&&Wr(t[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var o=jk(r.class.expression),s=e.getClassExtendsHeritageElement(i);if(s){var u=jk(s.expression);u&&o.escapedText!==u.escapedText&&Wr(o,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(r.tagName),e.idText(o),e.idText(u))}}function qO(r){var i=e.getJSDocHost(r);i&&e.isPrivateIdentifierClassElementDeclaration(i)&&Wr(r,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function jk(r){switch(r.kind){case 79:return r;case 205:return r.name;default:return}}function Uk(r){var i;hy(r),iv(r);var t=e.getFunctionFlags(r);if(r.name&&r.name.kind===161&&Zf(r.name),Pp(r)){var o=It(r),s=r.localSymbol||o,u=(i=s.declarations)===null||i===void 0?void 0:i.find(function(fe){return fe.kind===r.kind&&!(fe.flags&131072)});r===u&&v0(s),o.parent&&v0(o)}var T=r.kind===167?void 0:r.body;if($n(T),Ub(r,ag(r)),oe&&!e.getEffectiveReturnTypeNode(r)&&(e.nodeIsMissing(T)&&!g0(r)&&Rp(r,xe),t&1&&e.nodeIsPresent(T)&&So(Ku(r))),e.isInJSFile(r)){var q=e.getJSDocTypeTag(r);q&&q.typeExpression&&!fb(Ua(q.typeExpression),r)&&Wr(q.typeExpression.type,e.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function A_(r){if(oe){var i=e.getSourceFileOfNode(r),t=Zt.get(i.path);t||(t=[],Zt.set(i.path,t)),t.push(r)}}function zk(r,i){for(var t=0,o=r;t<o.length;t++){var s=o[t];switch(s.kind){case 256:case 225:VO(s,i),eS(s,i);break;case 303:case 260:case 234:case 262:case 241:case 242:case 243:Vk(s,i);break;case 170:case 212:case 255:case 213:case 168:case 171:case 172:s.body&&Vk(s,i),eS(s,i);break;case 167:case 173:case 174:case 178:case 179:case 258:case 257:eS(s,i);break;case 189:KO(s,i);break;default:e.Debug.assertNever(s,"Node should not have been registered for unused identifiers check")}}}function Wk(r,i,t){var o=e.getNameOfDeclaration(r)||r,s=ky(r)?e.Diagnostics._0_is_declared_but_never_used:e.Diagnostics._0_is_declared_but_its_value_is_never_read;t(r,0,e.createDiagnosticForNode(o,s,i))}function Dy(r){return e.isIdentifier(r)&&e.idText(r).charCodeAt(0)===95}function VO(r,i){for(var t=0,o=r.members;t<o.length;t++){var s=o[t];switch(s.kind){case 168:case 166:case 171:case 172:if(s.kind===172&&s.symbol.flags&32768)break;var u=It(s);!u.isReferenced&&(e.hasEffectiveModifier(s,8)||e.isNamedDeclaration(s)&&e.isPrivateIdentifier(s.name))&&!(s.flags&8388608)&&i(s,0,e.createDiagnosticForNode(s.name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Ga(u)));break;case 170:for(var T=0,q=s.parameters;T<q.length;T++){var fe=q[T];!fe.symbol.isReferenced&&e.hasSyntacticModifier(fe,8)&&i(fe,0,e.createDiagnosticForNode(fe.name,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,e.symbolName(fe.symbol)))}break;case 175:case 233:case 169:break;default:e.Debug.fail("Unexpected class member")}}}function KO(r,i){var t=r.typeParameter;rS(t)&&i(r,1,e.createDiagnosticForNode(r,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(t.name)))}function eS(r,i){var t=It(r).declarations;if(!(!t||e.last(t)!==r))for(var o=e.getEffectiveTypeParameterDeclarations(r),s=new e.Set,u=0,T=o;u<T.length;u++){var q=T[u];if(!!rS(q)){var fe=e.idText(q.name),Ne=q.parent;if(Ne.kind!==189&&Ne.typeParameters.every(rS)){if(e.tryAddToSet(s,Ne)){var $e=e.getSourceFileOfNode(Ne),Ze=e.isJSDocTemplateTag(Ne)?e.rangeOfNode(Ne):e.rangeOfTypeParameters($e,Ne.typeParameters),lr=Ne.typeParameters.length===1,yr=lr?e.Diagnostics._0_is_declared_but_its_value_is_never_read:e.Diagnostics.All_type_parameters_are_unused,Zr=lr?fe:void 0;i(q,1,e.createFileDiagnostic($e,Ze.pos,Ze.end-Ze.pos,yr,Zr))}}else i(q,1,e.createDiagnosticForNode(q,e.Diagnostics._0_is_declared_but_its_value_is_never_read,fe))}}}function rS(r){return!(Wn(r.symbol).isReferenced&262144)&&!Dy(r.name)}function by(r,i,t,o){var s=String(o(i)),u=r.get(s);u?u[1].push(t):r.set(s,[i,[t]])}function qk(r){return e.tryCast(e.getRootDeclaration(r),e.isParameter)}function GO(r){return e.isBindingElement(r)?e.isObjectBindingPattern(r.parent)?!!(r.propertyName&&Dy(r.name)):Dy(r.name):e.isAmbientModule(r)||(e.isVariableDeclaration(r)&&e.isForInOrOfStatement(r.parent.parent)||Kk(r))&&Dy(r.name)}function Vk(r,i){var t=new e.Map,o=new e.Map,s=new e.Map;r.locals.forEach(function(u){if(!(u.flags&262144?!(u.flags&3&&!(u.isReferenced&3)):u.isReferenced||u.exportSymbol)&&u.declarations)for(var T=0,q=u.declarations;T<q.length;T++){var fe=q[T];if(!GO(fe))if(Kk(fe))by(t,HO(fe),fe,A);else if(e.isBindingElement(fe)&&e.isObjectBindingPattern(fe.parent)){var Ne=e.last(fe.parent.elements);(fe===Ne||!e.last(fe.parent.elements).dotDotDotToken)&&by(o,fe.parent,fe,A)}else if(e.isVariableDeclaration(fe))by(s,fe.parent,fe,A);else{var $e=u.valueDeclaration&&qk(u.valueDeclaration),Ze=u.valueDeclaration&&e.getNameOfDeclaration(u.valueDeclaration);$e&&Ze?!e.isParameterPropertyDeclaration($e,$e.parent)&&!e.parameterIsThisKeyword($e)&&!Dy(Ze)&&(e.isBindingElement(fe)&&e.isArrayBindingPattern(fe.parent)?by(o,fe.parent,fe,A):i($e,1,e.createDiagnosticForNode(Ze,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(u)))):Wk(fe,e.symbolName(u),i)}}}),t.forEach(function(u){var T=u[0],q=u[1],fe=T.parent,Ne=(T.name?1:0)+(T.namedBindings?T.namedBindings.kind===267?1:T.namedBindings.elements.length:0);if(Ne===q.length)i(fe,0,q.length===1?e.createDiagnosticForNode(fe,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(e.first(q).name)):e.createDiagnosticForNode(fe,e.Diagnostics.All_imports_in_import_declaration_are_unused));else for(var $e=0,Ze=q;$e<Ze.length;$e++){var lr=Ze[$e];Wk(lr,e.idText(lr.name),i)}}),o.forEach(function(u){var T=u[0],q=u[1],fe=qk(T.parent)?1:0;if(T.elements.length===q.length)q.length===1&&T.parent.kind===253&&T.parent.parent.kind===254?by(s,T.parent.parent,T.parent,A):i(T,fe,q.length===1?e.createDiagnosticForNode(T,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Sy(e.first(q).name)):e.createDiagnosticForNode(T,e.Diagnostics.All_destructured_elements_are_unused));else for(var Ne=0,$e=q;Ne<$e.length;Ne++){var Ze=$e[Ne];i(Ze,fe,e.createDiagnosticForNode(Ze,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Sy(Ze.name)))}}),s.forEach(function(u){var T=u[0],q=u[1];if(T.declarations.length===q.length)i(T,0,q.length===1?e.createDiagnosticForNode(e.first(q).name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Sy(e.first(q).name)):e.createDiagnosticForNode(T.parent.kind===236?T.parent:T,e.Diagnostics.All_variables_are_unused));else for(var fe=0,Ne=q;fe<Ne.length;fe++){var $e=Ne[fe];i($e,0,e.createDiagnosticForNode($e,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Sy($e.name)))}})}function Sy(r){switch(r.kind){case 79:return e.idText(r);case 201:case 200:return Sy(e.cast(e.first(r.elements),e.isBindingElement).name);default:return e.Debug.assertNever(r)}}function Kk(r){return r.kind===266||r.kind===269||r.kind===267}function HO(r){return r.kind===266?r:r.kind===267?r.parent:r.parent.parent}function h0(r){if(r.kind===234&&Pf(r),e.isFunctionOrModuleBlock(r)){var i=jr;e.forEach(r.statements,$n),jr=i}else e.forEach(r.statements,$n);r.locals&&A_(r)}function XO(r){Se>=2||!e.hasRestParameter(r)||r.flags&8388608||e.nodeIsMissing(r.body)||e.forEach(r.parameters,function(i){i.name&&!e.isBindingPattern(i.name)&&i.name.escapedText===ci.escapedName&&Jo("noEmit",i,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function cv(r,i,t){if((i==null?void 0:i.escapedText)!==t||r.kind===166||r.kind===165||r.kind===168||r.kind===167||r.kind===171||r.kind===172||r.kind===294||r.flags&8388608||(e.isImportClause(r)||e.isImportEqualsDeclaration(r)||e.isImportSpecifier(r))&&e.isTypeOnlyImportOrExportDeclaration(r))return!1;var o=e.getRootDeclaration(r);return!(e.isParameter(o)&&e.nodeIsMissing(o.parent.body))}function QO(r){e.findAncestor(r,function(i){if(xg(i)&4){var t=r.kind!==79;return t?Wr(e.getNameOfDeclaration(r),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Wr(r,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0}return!1})}function YO(r){e.findAncestor(r,function(i){if(xg(i)&8){var t=r.kind!==79;return t?Wr(e.getNameOfDeclaration(r),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Wr(r,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0}return!1})}function $O(r,i){if(!(ge>=e.ModuleKind.ES2015&&!(ge>=e.ModuleKind.Node12&&e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS))&&!(!i||!cv(r,i,"require")&&!cv(r,i,"exports"))&&!(e.isModuleDeclaration(r)&&e.getModuleInstanceState(r)!==1)){var t=b(r);t.kind===303&&e.isExternalOrCommonJsModule(t)&&Jo("noEmit",i,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(i),e.declarationNameToString(i))}}function ZO(r,i){if(!(!i||Se>=4||!cv(r,i,"Promise"))&&!(e.isModuleDeclaration(r)&&e.getModuleInstanceState(r)!==1)){var t=b(r);t.kind===303&&e.isExternalOrCommonJsModule(t)&&t.flags&2048&&Jo("noEmit",i,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(i),e.declarationNameToString(i))}}function eF(r,i){Se<=8&&(cv(r,i,"WeakMap")||cv(r,i,"WeakSet"))&&jt.push(r)}function rF(r){var i=e.getEnclosingBlockScopeContainer(r);xg(i)&67108864&&(e.Debug.assert(e.isNamedDeclaration(r)&&e.isIdentifier(r.name)&&typeof r.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),Jo("noEmit",r,e.Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,r.name.escapedText))}function iF(r,i){i&&Se>=2&&Se<=8&&cv(r,i,"Reflect")&&na.push(r)}function tF(r){var i=!1;if(e.isClassExpression(r))for(var t=0,o=r.members;t<o.length;t++){var s=o[t];if(xg(s)&134217728){i=!0;break}}else if(e.isFunctionExpression(r))xg(r)&134217728&&(i=!0);else{var u=e.getEnclosingBlockScopeContainer(r);u&&xg(u)&134217728&&(i=!0)}i&&(e.Debug.assert(e.isNamedDeclaration(r)&&e.isIdentifier(r.name),"The target of a Reflect collision check should be an identifier"),Jo("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,e.declarationNameToString(r.name),"Reflect"))}function pm(r,i){!i||($O(r,i),ZO(r,i),eF(r,i),iF(r,i),e.isClassLike(r)?(gm(i,e.Diagnostics.Class_name_cannot_be_0),r.flags&8388608||NF(i)):e.isEnumDeclaration(r)&&gm(i,e.Diagnostics.Enum_name_cannot_be_0))}function aF(r){if(!((e.getCombinedNodeFlags(r)&3)!==0||e.isParameterDeclaration(r))&&!(r.kind===253&&!r.initializer)){var i=It(r);if(i.flags&1){if(!e.isIdentifier(r.name))return e.Debug.fail();var t=os(r,r.name.escapedText,3,void 0,void 0,!1);if(t&&t!==i&&t.flags&2&&Yh(t)&3){var o=e.getAncestor(t.valueDeclaration,254),s=o.parent.kind===236&&o.parent.parent?o.parent.parent:void 0,u=s&&(s.kind===234&&e.isFunctionLike(s.parent)||s.kind===261||s.kind===260||s.kind===303);if(!u){var T=Ga(t);Wr(r,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,T,T)}}}}}function uv(r){return r===ze?xe:r===Nt?Ki:r}function D0(r){var i;if(hy(r),e.isBindingElement(r)||$n(r.type),!!r.name){if(r.name.kind===161&&(Zf(r.name),r.initializer&&js(r.initializer)),e.isBindingElement(r)){e.isObjectBindingPattern(r.parent)&&r.dotDotDotToken&&Se<5&&dc(r,4),r.propertyName&&r.propertyName.kind===161&&Zf(r.propertyName);var t=r.parent.parent,o=r.dotDotDotToken?32:0,s=La(t,o),u=r.propertyName||r.name;if(s&&!e.isBindingPattern(u)){var T=$_(u);if(ul(T)){var q=Nl(T),fe=tn(s,q);fe&&(ly(fe,void 0,!1),bb(r,!!t.initializer&&t.initializer.kind===106,!1,s,fe))}}}if(e.isBindingPattern(r.name)&&(r.name.kind===201&&Se<2&&ye.downlevelIteration&&dc(r,512),e.forEach(r.name.elements,$n)),r.initializer&&e.isParameterDeclaration(r)&&e.nodeIsMissing(e.getContainingFunction(r).body)){Wr(r,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(e.isBindingPattern(r.name)){var Ne=r.initializer&&r.parent.parent.kind!==242,$e=r.name.elements.length===0;if(Ne||$e){var Ze=Is(r);if(Ne){var lr=js(r.initializer);ur&&$e?DC(lr,r):tp(lr,Is(r),r,r.initializer)}$e&&(e.isArrayBindingPattern(r.name)?P_(65,Ze,Nr,r):ur&&DC(Ze,r))}return}var yr=It(r);if(yr.flags&2097152&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(r)){x0(r);return}var Zr=uv(Jt(yr));if(r===yr.valueDeclaration){var ui=e.getEffectiveInitializer(r);if(ui){var Ii=e.isInJSFile(r)&&e.isObjectLiteralExpression(ui)&&(ui.properties.length===0||e.isPrototypeAccess(r.name))&&!!(!((i=yr.exports)===null||i===void 0)&&i.size);!Ii&&r.parent.parent.kind!==242&&tp(js(ui),Zr,r,ui,void 0)}yr.declarations&&yr.declarations.length>1&&e.some(yr.declarations,function(Ri){return Ri!==r&&e.isVariableLike(Ri)&&!Hk(Ri,r)})&&Wr(r.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(r.name))}else{var Fi=uv(Is(r));!ra(Zr)&&!ra(Fi)&&!Qf(Zr,Fi)&&!(yr.flags&67108864)&&Gk(yr.valueDeclaration,Zr,r,Fi),r.initializer&&tp(js(r.initializer),Fi,r,r.initializer,void 0),yr.valueDeclaration&&!Hk(r,yr.valueDeclaration)&&Wr(r.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(r.name))}r.kind!==166&&r.kind!==165&&(tv(r),(r.kind===253||r.kind===202)&&aF(r),pm(r,r.name))}}function Gk(r,i,t,o){var s=e.getNameOfDeclaration(t),u=t.kind===166||t.kind===165?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,T=e.declarationNameToString(s),q=Wr(s,u,T,ht(i),ht(o));r&&e.addRelatedInfo(q,e.createDiagnosticForNode(r,e.Diagnostics._0_was_also_declared_here,T))}function Hk(r,i){if(r.kind===163&&i.kind===253||r.kind===253&&i.kind===163)return!0;if(e.hasQuestionToken(r)!==e.hasQuestionToken(i))return!1;var t=504;return e.getSelectedEffectiveModifierFlags(r,t)===e.getSelectedEffectiveModifierFlags(i,t)}function iS(r){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkVariableDeclaration",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath}),R9(r),D0(r),e.tracing===null||e.tracing===void 0||e.tracing.pop()}function nF(r){return F9(r),D0(r)}function oF(r){!Af(r)&&!xS(r.declarationList)&&B9(r),e.forEach(r.declarationList.declarations,$n)}function sF(r){Pf(r),hn(r.expression)}function cF(r){Pf(r);var i=dm(r.expression);tS(r.expression,i,r.thenStatement),$n(r.thenStatement),r.thenStatement.kind===235&&Wr(r.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),$n(r.elseStatement)}function tS(r,i,t){if(!!ur&&!Fu(i)){var o=e.isBinaryExpression(r)?r.right:r;if(!(e.isPropertyAccessExpression(o)&&bk(o.expression))){var s=e.isIdentifier(o)?o:e.isPropertyAccessExpression(o)?o.name:e.isBinaryExpression(o)&&e.isIdentifier(o.right)?o.right:void 0,u=za(i,0),T=!!av(i);if(!(u.length===0&&!T)){var q=s&&Xu(s);if(!(!q&&!T)){var fe=q&&e.isBinaryExpression(r.parent)&&lF(r.parent,q)||q&&t&&uF(r,t,s,q);fe||(T?Tu(o,!0,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined,Yl(i)):Wr(o,e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}}}}function uF(r,i,t,o){return!!e.forEachChild(i,function s(u){if(e.isIdentifier(u)){var T=Xu(u);if(T&&T===o){if(e.isIdentifier(r))return!0;for(var q=t.parent,fe=u.parent;q&&fe;){if(e.isIdentifier(q)&&e.isIdentifier(fe)||q.kind===108&&fe.kind===108)return Xu(q)===Xu(fe);if(e.isPropertyAccessExpression(q)&&e.isPropertyAccessExpression(fe)){if(Xu(q.name)!==Xu(fe.name))return!1;fe=fe.expression,q=q.expression}else if(e.isCallExpression(q)&&e.isCallExpression(fe))fe=fe.expression,q=q.expression;else return!1}}}return e.forEachChild(u,s)})}function lF(r,i){for(;e.isBinaryExpression(r)&&r.operatorToken.kind===55;){var t=e.forEachChild(r.right,function o(s){if(e.isIdentifier(s)){var u=Xu(s);if(u&&u===i)return!0}return e.forEachChild(s,o)});if(t)return!0;r=r.parent}return!1}function fF(r){Pf(r),$n(r.statement),dm(r.expression)}function _F(r){Pf(r),dm(r.expression),$n(r.statement)}function Xk(r,i){return r.flags&16384&&Wr(i,e.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),r}function dm(r,i){return Xk(hn(r,i),r)}function pF(r){Pf(r)||r.initializer&&r.initializer.kind===254&&xS(r.initializer),r.initializer&&(r.initializer.kind===254?e.forEach(r.initializer.declarations,iS):hn(r.initializer)),r.condition&&dm(r.condition),r.incrementor&&hn(r.incrementor),$n(r.statement),r.locals&&A_(r)}function dF(r){U6(r);var i=e.getContainingFunctionOrClassStaticBlock(r);if(r.awaitModifier)if(i&&e.isClassStaticBlockDeclaration(i))vt(r.awaitModifier,e.Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block);else{var t=e.getFunctionFlags(i);(t&6)===2&&Se<99&&dc(r,16384)}else ye.downlevelIteration&&Se<2&&dc(r,256);if(r.initializer.kind===254)Qk(r);else{var o=r.initializer,s=Ty(r);if(o.kind===203||o.kind===204)Dd(o,s||Oe);else{var u=hn(o);rv(o,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),s&&tp(s,u,o,r.expression)}}$n(r.statement),r.locals&&A_(r)}function gF(r){U6(r);var i=Sb(hn(r.expression));if(r.initializer.kind===254){var t=r.initializer.declarations[0];t&&e.isBindingPattern(t.name)&&Wr(t.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),Qk(r)}else{var o=r.initializer,s=hn(o);o.kind===203||o.kind===204?Wr(o,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):oo(J3(i),s)?rv(o,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):Wr(o,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(i===St||!ws(i,126091264))&&Wr(r.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,ht(i)),$n(r.statement),r.locals&&A_(r)}function Qk(r){var i=r.initializer;if(i.declarations.length>=1){var t=i.declarations[0];iS(t)}}function Ty(r){var i=r.awaitModifier?15:13;return P_(i,nm(r.expression),Nr,r.expression)}function P_(r,i,t,o){return At(i)?i:aS(r,i,t,o,!0)||xe}function aS(r,i,t,o,s){var u=(r&2)!==0;if(i===St){cS(o,i,u);return}var T=Se>=2,q=!T&&ye.downlevelIteration,fe=ye.noUncheckedIndexedAccess&&!!(r&128);if(T||q||u){var Ne=xy(i,r,T?o:void 0);if(s&&Ne){var $e=r&8?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:r&32?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:r&64?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:r&16?e.Diagnostics.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;$e&&Gc(t,Ne.nextType,o,$e)}if(Ne||T)return fe?Gm(Ne&&Ne.yieldType):Ne&&Ne.yieldType}var Ze=i,lr=!1,yr=!1;if(r&4){if(Ze.flags&1048576){var Zr=i.types,ui=e.filter(Zr,function(Ia){return!(Ia.flags&402653316)});ui!==Zr&&(Ze=ba(ui,2))}else Ze.flags&402653316&&(Ze=St);if(yr=Ze!==i,yr&&(Se<1&&o&&(Wr(o,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),lr=!0),Ze.flags&131072))return fe?Gm(ki):ki}if(!ap(Ze)){if(o&&!lr){var Ii=!!(r&4)&&!yr,Fi=lt(Ii,q),Ri=Fi[0],Xi=Fi[1];Tu(o,Xi&&!!av(Ze),Ri,ht(Ze))}return yr?fe?Gm(ki):ki:void 0}var ea=fl(Ze,Ui);if(yr&&ea)return ea.flags&402653316&&!ye.noUncheckedIndexedAccess?ki:ba(fe?[ea,ki,Nr]:[ea,ki],2);return r&128?Gm(ea):ea;function lt(Ia,fa){var Dn;if(fa)return Ia?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0];var Ra=Yk(r,0,i,void 0);return Ra?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:mF((Dn=i.symbol)===null||Dn===void 0?void 0:Dn.escapedName)?[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:Ia?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:[e.Diagnostics.Type_0_is_not_an_array_type,!0]}}function mF(r){switch(r){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}function Yk(r,i,t,o){if(!At(t)){var s=xy(t,r,o);return s&&s[j(i)]}}function e_(r,i,t){if(r===void 0&&(r=St),i===void 0&&(i=St),t===void 0&&(t=We),r.flags&67359327&&i.flags&180227&&t.flags&180227){var o=bu([r,i,t]),s=Do.get(o);return s||(s={yieldType:r,returnType:i,nextType:t},Do.set(o,s)),s}return{yieldType:r,returnType:i,nextType:t}}function $k(r){for(var i,t,o,s=0,u=r;s<u.length;s++){var T=u[s];if(!(T===void 0||T===io)){if(T===pn)return pn;i=e.append(i,T.yieldType),t=e.append(t,T.returnType),o=e.append(o,T.nextType)}}return i||t||o?e_(i&&ba(i),t&&ba(t),o&&To(o)):io}function b0(r,i){return r[i]}function rf(r,i,t){return r[i]=t}function xy(r,i,t){if(At(r))return pn;if(!(r.flags&1048576)){var o=Zk(r,i,t);if(o===io){t&&cS(t,r,!!(i&2));return}return o}var s=i&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",u=b0(r,s);if(u)return u===io?void 0:u;for(var T,q=0,fe=r.types;q<fe.length;q++){var Ne=fe[q],$e=Zk(Ne,i,t);if($e===io){t&&cS(t,r,!!(i&2)),rf(r,s,io);return}else T=e.append(T,$e)}var Ze=T?$k(T):io;return rf(r,s,Ze),Ze===io?void 0:Ze}function nS(r,i){if(r===io)return io;if(r===pn)return pn;var t=r.yieldType,o=r.returnType,s=r.nextType;return i&&q1(!0),e_(zd(t,i)||xe,zd(o,i)||xe,s)}function Zk(r,i,t){if(At(r))return pn;if(i&2){var o=oS(r,xo)||r6(r,xo);if(o)return i&8?nS(o,t):o}if(i&1){var o=oS(r,ds)||r6(r,ds);if(o)if(i&2){if(o!==io)return rf(r,"iterationTypesOfAsyncIterable",nS(o,t))}else return o}if(i&2){var o=sS(r,xo,t);if(o!==io)return o}if(i&1){var o=sS(r,ds,t);if(o!==io)return i&2?rf(r,"iterationTypesOfAsyncIterable",o?nS(o,t):io):o}return io}function oS(r,i){return b0(r,i.iterableCacheKey)}function e6(r,i){var t=oS(r,i)||sS(r,i,void 0);return t===io?wo:t}function r6(r,i){var t;if(qu(r,t=i.getGlobalIterableType(!1))||qu(r,t=i.getGlobalIterableIteratorType(!1))){var o=Co(r)[0],s=e6(t,i),u=s.returnType,T=s.nextType;return rf(r,i.iterableCacheKey,e_(i.resolveIterationType(o,void 0)||o,i.resolveIterationType(u,void 0)||u,T))}if(qu(r,i.getGlobalGeneratorType(!1))){var q=Co(r),o=q[0],u=q[1],T=q[2];return rf(r,i.iterableCacheKey,e_(i.resolveIterationType(o,void 0)||o,i.resolveIterationType(u,void 0)||u,T))}}function vF(r){var i=tx(!1),t=i&&ai(Jt(i),e.escapeLeadingUnderscores(r));return t&&ul(t)?Nl(t):"__@".concat(r)}function sS(r,i,t){var o,s=tn(r,vF(i.iteratorSymbolName)),u=s&&!(s.flags&16777216)?Jt(s):void 0;if(At(u))return rf(r,i.iterableCacheKey,pn);var T=u?za(u,0):void 0;if(!e.some(T))return rf(r,i.iterableCacheKey,io);var q=To(e.map(T,So)),fe=(o=i6(q,i,t))!==null&&o!==void 0?o:io;return rf(r,i.iterableCacheKey,fe)}function cS(r,i,t){var o=t?e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;Tu(r,!!av(i),o,ht(i))}function i6(r,i,t){if(At(r))return pn;var o=t6(r,i)||yF(r,i)||n6(r,i,t);return o===io?void 0:o}function t6(r,i){return b0(r,i.iteratorCacheKey)}function yF(r,i){var t=i.getGlobalIterableIteratorType(!1);if(qu(r,t)){var o=Co(r)[0],s=t6(t,i)||n6(t,i,void 0),u=s===io?wo:s,T=u.returnType,q=u.nextType;return rf(r,i.iteratorCacheKey,e_(o,T,q))}if(qu(r,i.getGlobalIteratorType(!1))||qu(r,i.getGlobalGeneratorType(!1))){var fe=Co(r),o=fe[0],T=fe[1],q=fe[2];return rf(r,i.iteratorCacheKey,e_(o,T,q))}}function a6(r,i){var t=ai(r,"done")||ri;return oo(i===0?ri:Rt,t)}function hF(r){return a6(r,0)}function DF(r){return a6(r,1)}function bF(r){if(At(r))return pn;var i=b0(r,"iterationTypesOfIteratorResult");if(i)return i;if(qu(r,u3(!1))){var t=Co(r)[0];return rf(r,"iterationTypesOfIteratorResult",e_(t,void 0,void 0))}if(qu(r,l3(!1))){var o=Co(r)[0];return rf(r,"iterationTypesOfIteratorResult",e_(void 0,o,void 0))}var s=pc(r,hF),u=s!==St?ai(s,"value"):void 0,T=pc(r,DF),q=T!==St?ai(T,"value"):void 0;return!u&&!q?rf(r,"iterationTypesOfIteratorResult",io):rf(r,"iterationTypesOfIteratorResult",e_(u,q||Vt,void 0))}function uS(r,i,t,o){var s,u,T,q,fe=tn(r,t);if(!(!fe&&t!=="next")){var Ne=fe&&!(t==="next"&&fe.flags&16777216)?t==="next"?Jt(fe):$s(Jt(fe),2097152):void 0;if(At(Ne))return t==="next"?pn:Qn;var $e=Ne?za(Ne,0):e.emptyArray;if($e.length===0){if(o){var Ze=t==="next"?i.mustHaveANextMethodDiagnostic:i.mustBeAMethodDiagnostic;Wr(o,Ze,t)}return t==="next"?pn:void 0}if((Ne==null?void 0:Ne.symbol)&&$e.length===1){var lr=i.getGlobalGeneratorType(!1),yr=i.getGlobalIteratorType(!1),Zr=((u=(s=lr.symbol)===null||s===void 0?void 0:s.members)===null||u===void 0?void 0:u.get(t))===Ne.symbol,ui=!Zr&&((q=(T=yr.symbol)===null||T===void 0?void 0:T.members)===null||q===void 0?void 0:q.get(t))===Ne.symbol;if(Zr||ui){var Ii=Zr?lr:yr,Fi=Ne.mapper;return e_(ip(Ii.typeParameters[0],Fi),ip(Ii.typeParameters[1],Fi),t==="next"?ip(Ii.typeParameters[2],Fi):void 0)}}for(var Ri,Xi,ea=0,lt=$e;ea<lt.length;ea++){var Ia=lt[ea];t!=="throw"&&e.some(Ia.parameters)&&(Ri=e.append(Ri,Hu(Ia,0))),Xi=e.append(Xi,So(Ia))}var fa,Dn;if(t!=="throw"){var Ra=Ri?ba(Ri):We;if(t==="next")Dn=Ra;else if(t==="return"){var Bn=i.resolveIterationType(Ra,o)||xe;fa=e.append(fa,Bn)}}var Jn,On=Xi?To(Xi):St,Ao=i.resolveIterationType(On,o)||xe,$i=bF(Ao);return $i===io?(o&&Wr(o,i.mustHaveAValueDiagnostic,t),Jn=xe,fa=e.append(fa,xe)):(Jn=$i.yieldType,fa=e.append(fa,$i.returnType)),e_(Jn,ba(fa),Dn)}}function n6(r,i,t){var o=$k([uS(r,i,"next",t),uS(r,i,"return",t),uS(r,i,"throw",t)]);return rf(r,i.iteratorCacheKey,o)}function Sg(r,i,t){if(!At(i)){var o=o6(i,t);return o&&o[j(r)]}}function o6(r,i){if(At(r))return pn;var t=i?2:1,o=i?xo:ds;return xy(r,t,void 0)||i6(r,o,void 0)}function SF(r){Pf(r)||O9(r)}function S0(r,i){var t=!!(i&1),o=!!(i&2);return t?Sg(1,r,o)||Oe:o?k_(r)||Oe:r}function s6(r,i){var t=S0(i,e.getFunctionFlags(r));return!!t&&ls(t,16387)}function TF(r){var i;if(!Pf(r)){var t=e.getContainingFunctionOrClassStaticBlock(r);if(t&&e.isClassStaticBlockDeclaration(t)){Zs(r,e.Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!t){Zs(r,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body);return}var o=Ku(t),s=So(o),u=e.getFunctionFlags(t);if(ur||r.expression||s.flags&131072){var T=r.expression?js(r.expression):Nr;if(t.kind===172)r.expression&&Wr(r,e.Diagnostics.Setters_cannot_return_a_value);else if(t.kind===170)r.expression&&!tp(T,s,r,r.expression)&&Wr(r,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(ag(t)){var q=(i=S0(s,u))!==null&&i!==void 0?i:s,fe=u&2?ov(T,!1,r,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):T;q&&tp(fe,q,r,r.expression)}}else t.kind!==170&&ye.noImplicitReturns&&!s6(t,s)&&Wr(r,e.Diagnostics.Not_all_code_paths_return_a_value)}}function xF(r){Pf(r)||r.flags&32768&&Zs(r,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),hn(r.expression);var i=e.getSourceFileOfNode(r);if(!bd(i)){var t=e.getSpanOfTokenAtPosition(i,r.pos).start,o=r.statement.pos;qp(i,t,o-t,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function EF(r){Pf(r);var i,t=!1,o=hn(r.expression),s=fg(o);e.forEach(r.caseBlock.clauses,function(u){if(u.kind===289&&!t&&(i===void 0?i=u:(vt(u,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),t=!0)),oe&&u.kind===288){var T=hn(u.expression),q=fg(T),fe=o;(!q||!s)&&(T=q?Bl(T):T,fe=Bl(o)),Vb(fe,T)||Qx(T,fe,u.expression,void 0)}e.forEach(u.statements,$n),ye.noFallthroughCasesInSwitch&&u.fallthroughFlowNode&&ry(u.fallthroughFlowNode)&&Wr(u,e.Diagnostics.Fallthrough_case_in_switch)}),r.caseBlock.locals&&A_(r.caseBlock)}function CF(r){Pf(r)||e.findAncestor(r.parent,function(i){return e.isFunctionLike(i)?"quit":i.kind===249&&i.label.escapedText===r.label.escapedText?(vt(r.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(r.label)),!0):!1}),$n(r.statement)}function kF(r){Pf(r)||e.isIdentifier(r.expression)&&!r.expression.escapedText&&X9(r,e.Diagnostics.Line_break_not_permitted_here),r.expression&&hn(r.expression)}function AF(r){Pf(r),h0(r.tryBlock);var i=r.catchClause;if(i){if(i.variableDeclaration){var t=i.variableDeclaration,o=e.getEffectiveTypeAnnotationNode(e.getRootDeclaration(t));if(o){var s=Zl(t,!1,0);s&&!(s.flags&3)&&Zs(o,e.Diagnostics.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(t.initializer)Zs(t.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var u=i.block.locals;u&&e.forEachKey(i.locals,function(T){var q=u.get(T);(q==null?void 0:q.valueDeclaration)&&(q.flags&2)!==0&&vt(q.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,T)})}}h0(i.block)}r.finallyBlock&&h0(r.finallyBlock)}function T0(r,i,t){var o=Js(r);if(o.length!==0){for(var s=0,u=Gf(r);s<u.length;s++){var T=u[s];t&&T.flags&4194304||c6(r,T,Hg(T,8576,!0),Df(T))}var q=i.valueDeclaration;if(q&&e.isClassLike(q))for(var fe=0,Ne=q.members;fe<Ne.length;fe++){var $e=Ne[fe];if(!e.isStatic($e)&&!Pp($e)){var Ze=It($e);c6(r,Ze,ac($e.name.expression),Df(Ze))}}if(o.length>1)for(var lr=0,yr=o;lr<yr.length;lr++){var Zr=yr[lr];PF(r,Zr)}}}function c6(r,i,t,o){var s=i.valueDeclaration,u=e.getNameOfDeclaration(s);if(!(u&&e.isPrivateIdentifier(u)))for(var T=jg(r,t),q=e.getObjectFlags(r)&2?e.getDeclarationOfKind(r.symbol,257):void 0,fe=s&&s.kind===220||u&&u.kind===161||Rs(i)===r.symbol?s:void 0,Ne=function(yr){var Zr=yr.declaration&&Rs(It(yr.declaration))===r.symbol?yr.declaration:void 0,ui=fe||Zr||(q&&!e.some(zc(r),function(Ii){return!!D_(Ii,i.escapedName)&&!!fl(Ii,yr.keyType)})?q:void 0);ui&&!oo(o,yr.type)&&Wr(ui,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Ga(i),ht(o),ht(yr.keyType),ht(yr.type))},$e=0,Ze=T;$e<Ze.length;$e++){var lr=Ze[$e];Ne(lr)}}function PF(r,i){for(var t=i.declaration,o=jg(r,i.keyType),s=e.getObjectFlags(r)&2?e.getDeclarationOfKind(r.symbol,257):void 0,u=t&&Rs(It(t))===r.symbol?t:void 0,T=function($e){if($e===i)return"continue";var Ze=$e.declaration&&Rs(It($e.declaration))===r.symbol?$e.declaration:void 0,lr=u||Ze||(s&&!e.some(zc(r),function(yr){return!!kc(yr,i.keyType)&&!!fl(yr,$e.keyType)})?s:void 0);lr&&!oo(i.type,$e.type)&&Wr(lr,e.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3,ht(i.keyType),ht(i.type),ht($e.keyType),ht($e.type))},q=0,fe=o;q<fe.length;q++){var Ne=fe[q];T(Ne)}}function gm(r,i){switch(r.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":Wr(r,i,r.escapedText)}}function NF(r){Se>=1&&r.escapedText==="Object"&&(ge<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&Wr(r,e.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,e.ModuleKind[ge])}function IF(r){var i=e.filter(e.getJSDocTags(r),e.isJSDocParameterTag);if(!!e.length(i)){var t=e.isInJSFile(r),o=new e.Set,s=new e.Set;e.forEach(r.parameters,function(q,fe){var Ne=q.name;e.isIdentifier(Ne)&&o.add(Ne.escapedText),e.isBindingPattern(Ne)&&s.add(fe)});var u=L1(r);if(u){var T=e.lastOrUndefined(i);t&&T&&e.isIdentifier(T.name)&&T.typeExpression&&T.typeExpression.type&&!o.has(T.name.escapedText)&&!_c(Ua(T.typeExpression.type))&&Wr(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(T.name))}else e.forEach(i,function(q,fe){var Ne=q.name;s.has(fe)||e.isIdentifier(Ne)&&o.has(Ne.escapedText)||(e.isQualifiedName(Ne)?t&&Wr(Ne,e.Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,e.entityNameToString(Ne),e.entityNameToString(Ne.left)):nu(t,Ne,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,e.idText(Ne)))})}}function Ey(r){if(r)for(var i=!1,t=0;t<r.length;t++){var o=r[t];if(Ak(o),oe){o.default?(i=!0,wF(o.default,r,t)):i&&Wr(o,e.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var s=0;s<t;s++)r[s].symbol===o.symbol&&Wr(o.name,e.Diagnostics.Duplicate_identifier_0,e.declarationNameToString(o.name))}}}function wF(r,i,t){o(r);function o(s){if(s.kind===177){var u=Uv(s);if(u.flags&262144)for(var T=t;T<i.length;T++)u.symbol===It(i[T])&&Wr(s,e.Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}e.forEachChild(s,o)}}function u6(r){if(!(r.declarations&&r.declarations.length===1)){var i=Ma(r);if(!i.typeParametersChecked){i.typeParametersChecked=!0;var t=jF(r);if(!t||t.length<=1)return;var o=Io(r);if(!OF(t,o.localTypeParameters))for(var s=Ga(r),u=0,T=t;u<T.length;u++){var q=T[u];Wr(q.name,e.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,s)}}}}function OF(r,i){for(var t=e.length(i),o=Ol(i),s=0,u=r;s<u.length;s++){var T=u[s],q=e.getEffectiveTypeParameterDeclarations(T),fe=q.length;if(fe<o||fe>t)return!1;for(var Ne=0;Ne<fe;Ne++){var $e=q[Ne],Ze=i[Ne];if($e.name.escapedText!==Ze.symbol.escapedName)return!1;var lr=e.getEffectiveConstraintOfTypeParameter($e),yr=lr&&Ua(lr),Zr=qc(Ze);if(yr&&Zr&&!Qf(yr,Zr))return!1;var ui=$e.default&&Ua($e.default),Ii=H_(Ze);if(ui&&Ii&&!Qf(ui,Ii))return!1}}return!0}function FF(r){return l6(r),lv(r),Jt(It(r))}function MF(r){e.forEach(r.members,$n),A_(r)}function LF(r){e.some(r.decorators)&&e.some(r.members,function(i){return e.hasStaticModifier(i)&&e.isPrivateIdentifierClassElementDeclaration(i)})&&vt(r.decorators[0],e.Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!r.name&&!e.hasSyntacticModifier(r,512)&&Zs(r,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),l6(r),e.forEach(r.members,$n),A_(r)}function l6(r){v9(r),hy(r),pm(r,r.name),Ey(e.getEffectiveTypeParameterDeclarations(r)),tv(r);var i=It(r),t=Io(i),o=Wc(t),s=Jt(i);u6(i),v0(i),sO(r);var u=!!(r.flags&8388608);u||cO(r);var T=e.getEffectiveBaseTypeNode(r);if(T){e.forEach(T.typeArguments,$n),Se<2&&dc(T.parent,1);var q=e.getClassExtendsHeritageElement(r);q&&q!==T&&hn(q.expression);var fe=zc(t);if(fe.length&&oe){var Ne=fe[0],$e=ef(t),Ze=$($e);if(BF(Ze,T),$n(T.expression),e.some(T.typeArguments)){e.forEach(T.typeArguments,$n);for(var lr=0,yr=Ng(Ze,T.typeArguments,T);lr<yr.length;lr++){var Zr=yr[lr];if(!Mk(T,Zr.typeParameters))break}}var ui=Wc(Ne,t.thisType);if(Gc(o,ui,void 0)?Gc(s,Kx(Ze),r.name||r,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1):p6(r,o,ui,e.Diagnostics.Class_0_incorrectly_extends_base_class_1),$e.flags&8650752)if(!Pg(s))Wr(r.name||r,e.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any);else{var Ii=za($e,1);Ii.some(function(Dn){return Dn.flags&4})&&!e.hasSyntacticModifier(r,128)&&Wr(r.name||r,e.Diagnostics.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract)}if(!(Ze.symbol&&Ze.symbol.flags&32)&&!($e.flags&8650752)){var Fi=Fd(Ze,T.typeArguments,T);e.forEach(Fi,function(Dn){return!ml(Dn.declaration)&&!Qf(So(Dn),Ne)})&&Wr(T.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}UF(t,Ne)}}RF(r,t,o,s);var Ri=e.getEffectiveImplementsTypeNodes(r);if(Ri)for(var Xi=0,ea=Ri;Xi<ea.length;Xi++){var lt=ea[Xi];if((!e.isEntityNameExpression(lt.expression)||e.isOptionalChain(lt.expression))&&Wr(lt.expression,e.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Yb(lt),oe){var Ia=Lt(Ua(lt));if(!ra(Ia))if(ma(Ia)){var fa=Ia.symbol&&Ia.symbol.flags&32?e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:e.Diagnostics.Class_0_incorrectly_implements_interface_1,ui=Wc(Ia,t.thisType);Gc(o,ui,void 0)||p6(r,o,ui,fa)}else Wr(lt,e.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}oe&&(T0(t,i),T0(s,i,!0),Hb(r),qF(r))}function RF(r,i,t,o){for(var s=e.getEffectiveBaseTypeNode(r),u=s&&zc(i),T=u!=null&&u.length?Wc(e.first(u),i.thisType):void 0,q=ef(i),fe=function(lr){if(e.hasAmbientModifier(lr))return"continue";e.isConstructorDeclaration(lr)&&e.forEach(lr.parameters,function(yr){e.isParameterPropertyDeclaration(yr,lr)&&f6(r,o,q,T,i,t,yr,!0)}),f6(r,o,q,T,i,t,lr,!1)},Ne=0,$e=r.members;Ne<$e.length;Ne++){var Ze=$e[Ne];fe(Ze)}}function f6(r,i,t,o,s,u,T,q,fe){fe===void 0&&(fe=!0);var Ne=T.name&&Xu(T.name)||Xu(T);return Ne?_6(r,i,t,o,s,u,e.hasOverrideModifier(T),e.hasAbstractModifier(T),e.isStatic(T),q,e.symbolName(Ne),fe?T:void 0):0}function _6(r,i,t,o,s,u,T,q,fe,Ne,$e,Ze){var lr=e.isInJSFile(r),yr=!!(r.flags&8388608);if(o&&(T||ye.noImplicitOverride)){var Zr=e.escapeLeadingUnderscores($e),ui=fe?i:u,Ii=fe?t:o,Fi=tn(ui,Zr),Ri=tn(Ii,Zr),Xi=ht(o);if(Fi&&!Ri&&T){if(Ze){var ea=PC($e,Ii);ea?Wr(Ze,lr?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,Xi,Ga(ea)):Wr(Ze,lr?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,Xi)}return 2}else if(Fi&&(Ri==null?void 0:Ri.declarations)&&ye.noImplicitOverride&&!yr){var lt=e.some(Ri.declarations,e.hasAbstractModifier);if(T)return 0;if(lt){if(q&&lt)return Ze&&Wr(Ze,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,Xi),1}else{if(Ze){var Ia=Ne?lr?e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:lr?e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;Wr(Ze,Ia,Xi)}return 1}}}else if(T){if(Ze){var fa=ht(s);Wr(Ze,lr?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,fa)}return 2}return 0}function p6(r,i,t,o){for(var s=!1,u=function(Ne){if(e.isStatic(Ne))return"continue";var $e=Ne.name&&Xu(Ne.name)||Xu(Ne);if($e){var Ze=tn(i,$e.escapedName),lr=tn(t,$e.escapedName);if(Ze&&lr){var yr=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Ga($e),ht(i),ht(t))};Gc(Jt(Ze),Jt(lr),Ne.name||Ne,void 0,yr)||(s=!0)}}},T=0,q=r.members;T<q.length;T++){var fe=q[T];u(fe)}s||Gc(i,t,r.name||r,o)}function BF(r,i){var t=za(r,1);if(t.length){var o=t[0].declaration;if(o&&e.hasEffectiveModifier(o,8)){var s=e.getClassLikeDeclarationOfSymbol(r.symbol);dS(i,s)||Wr(i,e.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,ts(r.symbol))}}}function JF(r,i){if(!i.name)return 0;var t=It(r),o=Io(t),s=Wc(o),u=Jt(t),T=e.getEffectiveBaseTypeNode(r),q=T&&zc(o),fe=q!=null&&q.length?Wc(e.first(q),o.thisType):void 0,Ne=ef(o),$e=i.parent?e.hasOverrideModifier(i):e.hasSyntacticModifier(i,16384),Ze=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(i.name));return _6(r,u,Ne,fe,o,s,$e,e.hasAbstractModifier(i),e.isStatic(i),!1,Ze)}function Tg(r){return e.getCheckFlags(r)&1?r.target:r}function jF(r){return e.filter(r.declarations,function(i){return i.kind===256||i.kind===257})}function UF(r,i){var t,o,s=_o(i);e:for(var u=0,T=s;u<T.length;u++){var q=T[u],fe=Tg(q);if(!(fe.flags&4194304)){var Ne=D_(r,fe.escapedName);if(!!Ne){var $e=Tg(Ne),Ze=e.getDeclarationModifierFlagsFromSymbol(fe);if(e.Debug.assert(!!$e,"derived should point to something, even if it is the base class' declaration."),$e===fe){var lr=e.getClassLikeDeclarationOfSymbol(r.symbol);if(Ze&128&&(!lr||!e.hasSyntacticModifier(lr,128))){for(var yr=0,Zr=zc(r);yr<Zr.length;yr++){var ui=Zr[yr];if(ui!==i){var Ii=D_(ui,fe.escapedName),Fi=Ii&&Tg(Ii);if(Fi&&Fi!==fe)continue e}}lr.kind===225?Wr(lr,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Ga(q),ht(i)):Wr(lr,e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,ht(r),Ga(q),ht(i))}}else{var Ri=e.getDeclarationModifierFlagsFromSymbol($e);if(Ze&8||Ri&8)continue;var Xi=void 0,ea=fe.flags&98308,lt=$e.flags&98308;if(ea&&lt){if(Ze&128&&!(fe.valueDeclaration&&e.isPropertyDeclaration(fe.valueDeclaration)&&fe.valueDeclaration.initializer)||fe.valueDeclaration&&fe.valueDeclaration.parent.kind===257||$e.valueDeclaration&&e.isBinaryExpression($e.valueDeclaration))continue;var Ia=ea!==4&&lt===4,fa=ea===4&&lt!==4;if(Ia||fa){var Dn=Ia?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;Wr(e.getNameOfDeclaration($e.valueDeclaration)||$e.valueDeclaration,Dn,Ga(fe),ht(i),ht(r))}else if(Fe){var Ra=(t=$e.declarations)===null||t===void 0?void 0:t.find(function(Ao){return Ao.kind===166&&!Ao.initializer});if(Ra&&!($e.flags&33554432)&&!(Ze&128)&&!(Ri&128)&&!(!((o=$e.declarations)===null||o===void 0)&&o.some(function(Ao){return!!(Ao.flags&8388608)}))){var Bn=Gl(e.getClassLikeDeclarationOfSymbol(r.symbol)),Jn=Ra.name;if(Ra.exclamationToken||!Bn||!e.isIdentifier(Jn)||!ur||!g6(Jn,r,Bn)){var On=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;Wr(e.getNameOfDeclaration($e.valueDeclaration)||$e.valueDeclaration,On,Ga(fe),ht(i))}}}continue}else if(Db(fe)){if(Db($e)||$e.flags&4)continue;e.Debug.assert(!!($e.flags&98304)),Xi=e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else fe.flags&98304?Xi=e.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:Xi=e.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Wr(e.getNameOfDeclaration($e.valueDeclaration)||$e.valueDeclaration,Xi,ht(i),Ga(fe),ht(r))}}}}}function zF(r,i,t){if(!e.length(i))return t;var o=new e.Map;e.forEach(t,function(lr){o.set(lr.escapedName,lr)});for(var s=0,u=i;s<u.length;s++)for(var T=u[s],q=_o(Wc(T,r.thisType)),fe=0,Ne=q;fe<Ne.length;fe++){var $e=Ne[fe],Ze=o.get($e.escapedName);Ze&&$e.parent===Ze.parent&&o.delete($e.escapedName)}return e.arrayFrom(o.values())}function WF(r,i){var t=zc(r);if(t.length<2)return!0;var o=new e.Map;e.forEach(Tv(r).declaredProperties,function(Fi){o.set(Fi.escapedName,{prop:Fi,containingType:r})});for(var s=!0,u=0,T=t;u<T.length;u++)for(var q=T[u],fe=_o(Wc(q,r.thisType)),Ne=0,$e=fe;Ne<$e.length;Ne++){var Ze=$e[Ne],lr=o.get(Ze.escapedName);if(!lr)o.set(Ze.escapedName,{prop:Ze,containingType:q});else{var yr=lr.containingType!==r;if(yr&&!G8(lr.prop,Ze)){s=!1;var Zr=ht(lr.containingType),ui=ht(q),Ii=e.chainDiagnosticMessages(void 0,e.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,Ga(Ze),Zr,ui);Ii=e.chainDiagnosticMessages(Ii,e.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,ht(r),Zr,ui),ya.add(e.createDiagnosticForNodeFromMessageChain(i,Ii))}}}return s}function qF(r){if(!(!ur||!Br||r.flags&8388608))for(var i=Gl(r),t=0,o=r.members;t<o.length;t++){var s=o[t];if(!(e.getEffectiveModifierFlags(s)&2)&&!e.isStatic(s)&&d6(s)){var u=s.name;if(e.isIdentifier(u)||e.isPrivateIdentifier(u)){var T=Jt(It(s));T.flags&3||Fu(T)&32768||(!i||!g6(u,T,i))&&Wr(s.name,e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,e.declarationNameToString(u))}}}}function d6(r){return r.kind===166&&!e.hasAbstractModifier(r)&&!r.exclamationToken&&!r.initializer}function VF(r,i,t,o,s){for(var u=0,T=t;u<T.length;u++){var q=T[u];if(q.pos>=o&&q.pos<=s){var fe=e.factory.createPropertyAccessExpression(e.factory.createThis(),r);e.setParent(fe.expression,fe),e.setParent(fe,q),fe.flowNode=q.returnFlowNode;var Ne=op(fe,i,$f(i));if(!(Fu(Ne)&32768))return!0}}return!1}function g6(r,i,t){var o=e.factory.createPropertyAccessExpression(e.factory.createThis(),r);e.setParent(o.expression,o),e.setParent(o,t),o.flowNode=t.returnFlowNode;var s=op(o,i,$f(i));return!(Fu(s)&32768)}function KF(r){if(Af(r)||E9(r),Ey(r.typeParameters),oe){gm(r.name,e.Diagnostics.Interface_name_cannot_be_0),tv(r);var i=It(r);u6(i);var t=e.getDeclarationOfKind(i,257);if(r===t){var o=Io(i),s=Wc(o);if(WF(o,r.name)){for(var u=0,T=zc(o);u<T.length;u++){var q=T[u];Gc(s,Wc(q,o.thisType),r.name,e.Diagnostics.Interface_0_incorrectly_extends_interface_1)}T0(o,i)}}Ik(r)}e.forEach(e.getInterfaceBaseTypeNodes(r),function(fe){(!e.isEntityNameExpression(fe.expression)||e.isOptionalChain(fe.expression))&&Wr(fe.expression,e.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Yb(fe)}),e.forEach(r.members,$n),oe&&(Hb(r),A_(r))}function GF(r){Af(r),gm(r.name,e.Diagnostics.Type_alias_name_cannot_be_0),tv(r),Ey(r.typeParameters),r.type.kind===138?(!I.has(r.name.escapedText)||e.length(r.typeParameters)!==1)&&Wr(r.type,e.Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):($n(r.type),A_(r))}function m6(r){var i=Da(r);if(!(i.flags&16384)){i.flags|=16384;for(var t=0,o=0,s=r.members;o<s.length;o++){var u=s[o],T=HF(u,t);Da(u).enumMemberValue=T,t=typeof T=="number"?T+1:void 0}}}function HF(r,i){if(e.isComputedNonLiteralName(r.name))Wr(r.name,e.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var t=e.getTextOfPropertyName(r.name);e.isNumericLiteralName(t)&&!e.isInfinityOrNaNString(t)&&Wr(r.name,e.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}if(r.initializer)return XF(r);if(!(r.parent.flags&8388608&&!e.isEnumConst(r.parent)&&Oc(It(r.parent))===0)){if(i!==void 0)return i;Wr(r.name,e.Diagnostics.Enum_member_must_have_initializer)}}function XF(r){var i=Oc(It(r.parent)),t=e.isEnumConst(r.parent),o=r.initializer,s=i===1&&!Sc(r)?void 0:T(o);if(s!==void 0)t&&typeof s=="number"&&!isFinite(s)&&Wr(o,isNaN(s)?e.Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:e.Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value);else{if(i===1)return Wr(o,e.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;if(t)Wr(o,e.Diagnostics.const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values);else if(r.parent.flags&8388608)Wr(o,e.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression);else{var u=hn(o);ws(u,296)?Gc(u,Io(It(r.parent)),o,void 0):Wr(o,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,ht(u))}}return s;function T(fe){switch(fe.kind){case 218:var Ne=T(fe.operand);if(typeof Ne=="number")switch(fe.operator){case 39:return Ne;case 40:return-Ne;case 54:return~Ne}break;case 220:var $e=T(fe.left),Ze=T(fe.right);if(typeof $e=="number"&&typeof Ze=="number")switch(fe.operatorToken.kind){case 51:return $e|Ze;case 50:return $e&Ze;case 48:return $e>>Ze;case 49:return $e>>>Ze;case 47:return $e<<Ze;case 52:return $e^Ze;case 41:return $e*Ze;case 43:return $e/Ze;case 39:return $e+Ze;case 40:return $e-Ze;case 44:return $e%Ze;case 42:return Math.pow($e,Ze)}else if(typeof $e=="string"&&typeof Ze=="string"&&fe.operatorToken.kind===39)return $e+Ze;break;case 10:case 14:return fe.text;case 8:return ES(fe),+fe.text;case 211:return T(fe.expression);case 79:var lr=fe;return e.isInfinityOrNaNString(lr.escapedText)?+lr.escapedText:e.nodeIsMissing(fe)?0:q(fe,It(r.parent),lr.escapedText);case 206:case 205:if(lS(fe)){var yr=ac(fe.expression);if(yr.symbol&&yr.symbol.flags&384){var Zr=void 0;return fe.kind===205?Zr=fe.name.escapedText:Zr=e.escapeLeadingUnderscores(e.cast(fe.argumentExpression,e.isLiteralExpression).text),q(fe,yr.symbol,Zr)}}break}}function q(fe,Ne,$e){var Ze=Ne.exports.get($e);if(Ze){var lr=Ze.valueDeclaration;if(lr!==r)return lr&&wf(lr,r)&&e.isEnumDeclaration(lr.parent)?w0(lr):(Wr(fe,e.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0);Wr(fe,e.Diagnostics.Property_0_is_used_before_being_assigned,Ga(Ze))}}}function lS(r){var i=ac(r);return i===Oe?!1:r.kind===79||r.kind===205&&lS(r.expression)||r.kind===206&&lS(r.expression)&&e.isStringLiteralLike(r.argumentExpression)}function QF(r){if(!!oe){Af(r),pm(r,r.name),tv(r),r.members.forEach(YF),m6(r);var i=It(r),t=e.getDeclarationOfKind(i,r.kind);if(r===t){if(i.declarations&&i.declarations.length>1){var o=e.isEnumConst(r);e.forEach(i.declarations,function(u){e.isEnumDeclaration(u)&&e.isEnumConst(u)!==o&&Wr(e.getNameOfDeclaration(u),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)})}var s=!1;e.forEach(i.declarations,function(u){if(u.kind!==259)return!1;var T=u;if(!T.members.length)return!1;var q=T.members[0];q.initializer||(s?Wr(q.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):s=!0)})}}}function YF(r){e.isPrivateIdentifier(r.name)&&Wr(r,e.Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier)}function $F(r){var i=r.declarations;if(i)for(var t=0,o=i;t<o.length;t++){var s=o[t];if((s.kind===256||s.kind===255&&e.nodeIsPresent(s.body))&&!(s.flags&8388608))return s}}function ZF(r,i){var t=e.getEnclosingBlockScopeContainer(r),o=e.getEnclosingBlockScopeContainer(i);return Ju(t)?Ju(o):Ju(o)?!1:t===o}function eM(r){if(oe){var i=e.isGlobalScopeAugmentation(r),t=r.flags&8388608;i&&!t&&Wr(r.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var o=e.isAmbientModule(r),s=o?e.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:e.Diagnostics.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(Cy(r,s))return;Af(r)||!t&&r.name.kind===10&&vt(r.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(r.name)&&pm(r,r.name),tv(r);var u=It(r);if(u.flags&512&&!t&&u.declarations&&u.declarations.length>1&&P(r,e.shouldPreserveConstEnums(ye))){var T=$F(u);T&&(e.getSourceFileOfNode(r)!==e.getSourceFileOfNode(T)?Wr(r.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):r.pos<T.pos&&Wr(r.name,e.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));var q=e.getDeclarationOfKind(u,256);q&&ZF(r,q)&&(Da(r).flags|=32768)}if(o)if(e.isExternalModuleAugmentation(r)){var fe=i||It(r).flags&33554432;if(fe&&r.body)for(var Ne=0,$e=r.body.statements;Ne<$e.length;Ne++){var Ze=$e[Ne];fS(Ze,i)}}else Ju(r.parent)?i?Wr(r.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(r.name))&&Wr(r.name,e.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):i?Wr(r.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Wr(r.name,e.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}r.body&&($n(r.body),e.isGlobalScopeAugmentation(r)||A_(r))}function fS(r,i){var t;switch(r.kind){case 236:for(var o=0,s=r.declarationList.declarations;o<s.length;o++){var u=s[o];fS(u,i)}break;case 270:case 271:Zs(r,e.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 264:case 265:Zs(r,e.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 202:case 253:var T=r.name;if(e.isBindingPattern(T)){for(var q=0,fe=T.elements;q<fe.length;q++){var Ne=fe[q];fS(Ne,i)}break}case 256:case 259:case 255:case 257:case 260:case 258:if(i)return;var $e=It(r);if($e){var Ze=!($e.flags&33554432);Ze||(Ze=!!(!((t=$e.parent)===null||t===void 0)&&t.declarations)&&e.isExternalModuleAugmentation($e.parent.declarations[0]))}break}}function rM(r){switch(r.kind){case 79:return r;case 160:do r=r.left;while(r.kind!==79);return r;case 205:do{if(e.isModuleExportsAccessExpression(r.expression)&&!e.isPrivateIdentifier(r.name))return r.name;r=r.expression}while(r.kind!==79);return r}}function _S(r){var i=e.getExternalModuleName(r);if(!i||e.nodeIsMissing(i))return!1;if(!e.isStringLiteral(i))return Wr(i,e.Diagnostics.String_literal_expected),!1;var t=r.parent.kind===261&&e.isAmbientModule(r.parent.parent);if(r.parent.kind!==303&&!t)return Wr(i,r.kind===271?e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace:e.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(t&&e.isExternalModuleNameRelative(i.text)&&!V_(r))return Wr(r,e.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!e.isImportEqualsDeclaration(r)&&r.assertClause){for(var o=!1,s=0,u=r.assertClause.elements;s<u.length;s++){var T=u[s];e.isStringLiteral(T.value)||(o=!0,Wr(T.value,e.Diagnostics.Import_assertion_values_must_be_string_literal_expressions))}return!o}return!0}function x0(r){var i=It(r),t=zo(i);if(t!==hr){i=Wn(i.exportSymbol||i);var o=(i.flags&1160127?111551:0)|(i.flags&788968?788968:0)|(i.flags&1920?1920:0);if(t.flags&o){var s=r.kind===274?e.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:e.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0;Wr(r,s,Ga(i))}if(ye.isolatedModules&&!e.isTypeOnlyImportOrExportDeclaration(r)&&!(r.flags&8388608)){var u=gu(i),T=!(t.flags&111551);if(T||u)switch(r.kind){case 266:case 269:case 264:{if(ye.preserveValueImports){e.Debug.assertIsDefined(r.name,"An ImportClause with a symbol should have a name");var s=T?e.Diagnostics._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:e.Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,q=e.idText(r.kind===269&&r.propertyName||r.name);Of(Wr(r,s,q),T?void 0:u,q)}T&&r.kind===264&&e.hasEffectiveModifier(r,1)&&Wr(r,e.Diagnostics.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided);break}case 274:if(e.getSourceFileOfNode(u)!==e.getSourceFileOfNode(r)){var s=T?e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:e.Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled,q=e.idText(r.propertyName||r.name);Of(Wr(r,s,q),T?void 0:u,q);return}}}if(e.isImportSpecifier(r)){var fe=y6(i,r);v6(fe)&&fe.declarations&&fu(r,fe.declarations,fe.escapedName)}}}function v6(r){return!!r.declarations&&e.every(r.declarations,function(i){return!!(e.getCombinedNodeFlags(i)&134217728)})}function y6(r,i){if(!(r.flags&2097152))return r;var t=zo(r);if(t===hr)return t;for(;r.flags&2097152;){var o=db(r);if(o){if(o===t)break;if(o.declarations&&e.length(o.declarations))if(v6(o)){fu(i,o.declarations,o.escapedName);break}else{if(r===t)break;r=o}}else break}return t}function E0(r){pm(r,r.name),x0(r),r.kind===269&&e.idText(r.propertyName||r.name)==="default"&&e.getESModuleInterop(ye)&&ge!==e.ModuleKind.System&&(ge<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&dc(r,131072)}function h6(r){var i;if(r.assertClause){var t=ge===e.ModuleKind.NodeNext&&r.moduleSpecifier&&n_(r.moduleSpecifier);if(t!==e.ModuleKind.ESNext&&ge!==e.ModuleKind.ESNext)return vt(r.assertClause,ge===e.ModuleKind.NodeNext?e.Diagnostics.Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:e.Diagnostics.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext);if(e.isImportDeclaration(r)?(i=r.importClause)===null||i===void 0?void 0:i.isTypeOnly:r.isTypeOnly)return vt(r.assertClause,e.Diagnostics.Import_assertions_cannot_be_used_with_type_only_imports_or_exports)}}function iM(r){if(!Cy(r,e.isInJSFile(r)?e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Af(r)&&e.hasEffectiveModifiers(r)&&Zs(r,e.Diagnostics.An_import_declaration_cannot_have_modifiers),_S(r)){var i=r.importClause;if(i&&!Y9(i)&&(i.name&&E0(i),i.namedBindings))if(i.namedBindings.kind===267)E0(i.namedBindings),ge!==e.ModuleKind.System&&(ge<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&e.getESModuleInterop(ye)&&dc(r,65536);else{var t=ko(r,r.moduleSpecifier);t&&e.forEach(i.namedBindings.elements,E0)}}h6(r)}}function tM(r){if(!Cy(r,e.isInJSFile(r)?e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(Af(r),e.isInternalModuleImportEqualsDeclaration(r)||_S(r)))if(E0(r),e.hasSyntacticModifier(r,1)&&Jf(r),r.moduleReference.kind!==276){var i=zo(It(r));if(i!==hr){if(i.flags&111551){var t=e.getFirstIdentifier(r.moduleReference);Ps(t,112575).flags&1920||Wr(t,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(t))}i.flags&788968&&gm(r.name,e.Diagnostics.Import_name_cannot_be_0)}r.isTypeOnly&&vt(r,e.Diagnostics.An_import_alias_cannot_use_import_type)}else ge>=e.ModuleKind.ES2015&&e.getSourceFileOfNode(r).impliedNodeFormat===void 0&&!r.isTypeOnly&&!(r.flags&8388608)&&vt(r,e.Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}function aM(r){if(!Cy(r,e.isInJSFile(r)?e.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:e.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Af(r)&&e.hasEffectiveModifiers(r)&&Zs(r,e.Diagnostics.An_export_declaration_cannot_have_modifiers),r.moduleSpecifier&&r.exportClause&&e.isNamedExports(r.exportClause)&&e.length(r.exportClause.elements)&&Se===0&&dc(r,4194304),nM(r),!r.moduleSpecifier||_S(r))if(r.exportClause&&!e.isNamespaceExport(r.exportClause)){e.forEach(r.exportClause.elements,fM);var i=r.parent.kind===261&&e.isAmbientModule(r.parent.parent),t=!i&&r.parent.kind===261&&!r.moduleSpecifier&&r.flags&8388608;r.parent.kind!==303&&!i&&!t&&Wr(r,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var o=ko(r,r.moduleSpecifier);o&&ff(o)?Wr(r.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Ga(o)):r.exportClause&&x0(r.exportClause),ge!==e.ModuleKind.System&&(ge<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&(r.exportClause?e.getESModuleInterop(ye)&&dc(r,65536):dc(r,32768))}h6(r)}}function nM(r){var i;return r.isTypeOnly?((i=r.exportClause)===null||i===void 0?void 0:i.kind)===272?H6(r.exportClause):vt(r,e.Diagnostics.Only_named_exports_may_use_export_type):!1}function Cy(r,i){var t=r.parent.kind===303||r.parent.kind===261||r.parent.kind===260;return t||Zs(r,i),!t}function oM(r){return e.forEachImportClauseDeclaration(r,function(i){return!!It(i).isReferenced})}function sM(r){return e.forEachImportClauseDeclaration(r,function(i){return!!Ma(It(i)).constEnumReferenced})}function cM(r){return e.isImportDeclaration(r)&&r.importClause&&!r.importClause.isTypeOnly&&oM(r.importClause)&&!I0(r.importClause,!0)&&!sM(r.importClause)}function uM(r){return e.isImportEqualsDeclaration(r)&&e.isExternalModuleReference(r.moduleReference)&&!r.isTypeOnly&&It(r).isReferenced&&!I0(r,!1)&&!Ma(It(r)).constEnumReferenced}function lM(r){for(var i=0,t=r.statements;i<t.length;i++){var o=t[i];(cM(o)||uM(o))&&Wr(o,e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}}function fM(r){if(x0(r),e.getEmitDeclarations(ye)&&Vf(r.propertyName||r.name,!0),r.parent.parent.moduleSpecifier)e.getESModuleInterop(ye)&&ge!==e.ModuleKind.System&&(ge<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&e.idText(r.propertyName||r.name)==="default"&&dc(r,131072);else{var i=r.propertyName||r.name,t=os(i,i.escapedText,2998271,void 0,void 0,!0);if(t&&(t===Jr||t===Rr||t.declarations&&Ju(b(t.declarations[0]))))Wr(i,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(i));else{Jf(r);var o=t&&(t.flags&2097152?zo(t):t);(!o||o===hr||o.flags&111551)&&js(r.propertyName||r.name)}}}function _M(r){var i=r.isExportEquals?e.Diagnostics.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:e.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(!Cy(r,i)){var t=r.parent.kind===303?r.parent:r.parent.parent;if(t.kind===260&&!e.isAmbientModule(t)){r.isExportEquals?Wr(r,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):Wr(r,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!Af(r)&&e.hasEffectiveModifiers(r)&&Zs(r,e.Diagnostics.An_export_assignment_cannot_have_modifiers);var o=e.getEffectiveTypeAnnotationNode(r);if(o&&Gc(js(r.expression),Ua(o),r.expression),r.expression.kind===79){var s=r.expression,u=Ps(s,67108863,!0,!0,r);if(u){qh(u,s);var T=u.flags&2097152?zo(u):u;(T===hr||T.flags&111551)&&js(r.expression)}else js(r.expression);e.getEmitDeclarations(ye)&&Vf(r.expression,!0)}else js(r.expression);D6(t),r.flags&8388608&&!e.isEntityNameExpression(r.expression)&&vt(r.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),r.isExportEquals&&!(r.flags&8388608)&&(ge>=e.ModuleKind.ES2015&&e.getSourceFileOfNode(r).impliedNodeFormat!==e.ModuleKind.CommonJS?vt(r,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):ge===e.ModuleKind.System&&vt(r,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}}function pM(r){return e.forEachEntry(r.exports,function(i,t){return t!=="export="})}function D6(r){var i=It(r),t=Ma(i);if(!t.exportsChecked){var o=i.exports.get("export=");if(o&&pM(i)){var s=ju(o)||o.valueDeclaration;s&&!V_(s)&&!e.isInJSFile(s)&&Wr(s,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var u=al(i);u&&u.forEach(function(T,q){var fe=T.declarations,Ne=T.flags;if(q!=="__export"&&!(Ne&1984)){var $e=e.countWhere(fe,ie);if(!(Ne&524288&&$e<=2)&&$e>1&&!C0(fe))for(var Ze=0,lr=fe;Ze<lr.length;Ze++){var yr=lr[Ze];_(yr)&&ya.add(e.createDiagnosticForNode(yr,e.Diagnostics.Cannot_redeclare_exported_variable_0,e.unescapeLeadingUnderscores(q)))}}}),t.exportsChecked=!0}}function C0(r){return r&&r.length>1&&r.every(function(i){return e.isInJSFile(i)&&e.isAccessExpression(i)&&(e.isExportsIdentifier(i.expression)||e.isModuleExportsAccessExpression(i.expression))})}function $n(r){if(r){var i=er;er=r,gr=0,dM(r),er=i}}function dM(r){e.isInJSFile(r)&&e.forEach(r.jsDoc,function(t){var o=t.tags;return e.forEach(o,$n)});var i=r.kind;if(ce)switch(i){case 260:case 256:case 257:case 255:ce.throwIfCancellationRequested()}switch(i>=236&&i<=252&&r.flowNode&&!ry(r.flowNode)&&nu(ye.allowUnreachableCode===!1,r,e.Diagnostics.Unreachable_code_detected),i){case 162:return Ak(r);case 163:return Pk(r);case 166:return wk(r);case 165:return uO(r);case 179:case 178:case 173:case 174:case 175:return iv(r);case 168:case 167:return lO(r);case 169:return fO(r);case 170:return _O(r);case 171:case 172:return Fk(r);case 177:return Yb(r);case 176:return nO(r);case 180:return mO(r);case 181:return vO(r);case 182:return yO(r);case 183:return hO(r);case 186:case 187:return DO(r);case 190:case 184:case 185:return $n(r.type);case 191:return xO(r);case 192:return EO(r);case 188:return CO(r);case 189:return kO(r);case 197:return AO(r);case 199:return PO(r);case 196:return NO(r);case 326:return WO(r);case 327:return zO(r);case 343:case 336:case 337:return LO(r);case 342:return RO(r);case 341:return BO(r);case 338:return JO(r);case 345:return jO(r);case 315:UO(r);case 313:case 312:case 310:case 311:case 320:b6(r),e.forEachChild(r,$n);return;case 316:gM(r);return;case 307:return $n(r.type);case 331:case 333:case 332:return qO(r);case 193:return bO(r);case 194:return SO(r);case 255:return MO(r);case 234:case 261:return h0(r);case 236:return oF(r);case 237:return sF(r);case 238:return cF(r);case 239:return fF(r);case 240:return _F(r);case 241:return pF(r);case 242:return gF(r);case 243:return dF(r);case 244:case 245:return SF(r);case 246:return TF(r);case 247:return xF(r);case 248:return EF(r);case 249:return CF(r);case 250:return kF(r);case 251:return AF(r);case 253:return iS(r);case 202:return nF(r);case 256:return LF(r);case 257:return KF(r);case 258:return GF(r);case 259:return QF(r);case 260:return eM(r);case 265:return iM(r);case 264:return tM(r);case 271:return aM(r);case 270:return _M(r);case 235:case 252:Pf(r);return;case 275:return dO(r)}}function b6(r){e.isInJSFile(r)||vt(r,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function gM(r){b6(r),$n(r.type);var i=r.parent;if(e.isParameter(i)&&e.isJSDocFunctionType(i.parent)){e.last(i.parent.parameters)!==i&&Wr(r,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);return}e.isJSDocTypeExpression(i)||Wr(r,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var t=r.parent.parent;if(!e.isJSDocParameterTag(t)){Wr(r,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}var o=e.getParameterSymbolFromJSDoc(t);if(!!o){var s=e.getHostSignatureFromJSDoc(t);(!s||e.last(s.parameters).symbol!==o)&&Wr(r,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}}function mM(r){var i=Ua(r.type),t=r.parent,o=r.parent.parent;if(e.isJSDocTypeExpression(r.parent)&&e.isJSDocParameterTag(o)){var s=e.getHostSignatureFromJSDoc(o),u=e.isJSDocCallbackTag(o.parent.parent);if(s||u){var T=u?e.lastOrUndefined(o.parent.parent.typeExpression.parameters):e.lastOrUndefined(s.parameters),q=e.getParameterSymbolFromJSDoc(o);if(!T||q&&T.symbol===q&&e.isRestParameter(T))return tc(i)}}return e.isParameter(t)&&e.isJSDocFunctionType(t.parent)?tc(i):Ec(i)}function lv(r){var i=e.getSourceFileOfNode(r),t=Da(i);t.flags&1||(t.deferredNodes||(t.deferredNodes=new e.Set),t.deferredNodes.add(r))}function vM(r){var i=Da(r);i.deferredNodes&&i.deferredNodes.forEach(yM)}function yM(r){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkDeferredNode",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath});var i=er;switch(er=r,gr=0,r.kind){case 207:case 208:case 209:case 164:case 279:hg(r);break;case 212:case 213:case 168:case 167:k7(r);break;case 171:case 172:Fk(r);break;case 225:MF(r);break;case 278:i5(r);break;case 277:a5(r);break}er=i,e.tracing===null||e.tracing===void 0||e.tracing.pop()}function pS(r){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkSourceFile",{path:r.path},!0),e.performance.mark("beforeCheck"),hM(r),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck"),e.tracing===null||e.tracing===void 0||e.tracing.pop()}function S6(r,i){if(i)return!1;switch(r){case 0:return!!ye.noUnusedLocals;case 1:return!!ye.noUnusedParameters;default:return e.Debug.assertNever(r)}}function T6(r){return Zt.get(r.path)||e.emptyArray}function hM(r){var i=Da(r);if(!(i.flags&1)){if(e.skipTypeChecking(r,ye,y))return;K9(r),e.clear(Tt),e.clear(Dt),e.clear(jt),e.clear(na),e.forEach(r.statements,$n),$n(r.endOfFileToken),vM(r),e.isExternalOrCommonJsModule(r)&&A_(r),!r.isDeclarationFile&&(ye.noUnusedLocals||ye.noUnusedParameters)&&zk(T6(r),function(t,o,s){!e.containsParseError(t)&&S6(o,!!(t.flags&8388608))&&ya.add(s)}),ye.importsNotUsedAsValues===2&&!r.isDeclarationFile&&e.isExternalModule(r)&&lM(r),e.isExternalOrCommonJsModule(r)&&D6(r),Tt.length&&(e.forEach(Tt,QO),e.clear(Tt)),Dt.length&&(e.forEach(Dt,YO),e.clear(Dt)),jt.length&&(e.forEach(jt,rF),e.clear(jt)),na.length&&(e.forEach(na,tF),e.clear(na)),i.flags|=1}}function x6(r,i){try{return ce=i,DM(r)}finally{ce=void 0}}function DM(r){if(E6(),r){var i=ya.getGlobalDiagnostics(),t=i.length;pS(r);var o=ya.getDiagnostics(r.fileName),s=ya.getGlobalDiagnostics();if(s!==i){var u=e.relativeComplement(i,s,e.compareDiagnostics);return e.concatenate(u,o)}else if(t===0&&s.length>0)return e.concatenate(s,o);return o}return e.forEach(y.getSourceFiles(),pS),ya.getDiagnostics()}function bM(){return E6(),ya.getGlobalDiagnostics()}function E6(){if(!oe)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function SM(r,i){if(r.flags&16777216)return[];var t=e.createSymbolTable(),o=!1;return s(),t.delete("this"),Bv(t);function s(){for(;r;){switch(r.locals&&!Ju(r)&&T(r.locals,i),r.kind){case 303:if(!e.isExternalModule(r))break;case 260:q(It(r).exports,i&2623475);break;case 259:T(It(r).exports,i&8);break;case 225:var fe=r.name;fe&&u(r.symbol,i);case 256:case 257:o||T(Il(It(r)),i&788968);break;case 212:var Ne=r.name;Ne&&u(r.symbol,i);break}e.introducesArgumentsExoticObject(r)&&u(ci,i),o=e.isStatic(r),r=r.parent}T(Lr,i)}function u(fe,Ne){if(e.getCombinedLocalAndExportSymbolFlags(fe)&Ne){var $e=fe.escapedName;t.has($e)||t.set($e,fe)}}function T(fe,Ne){Ne&&fe.forEach(function($e){u($e,Ne)})}function q(fe,Ne){Ne&&fe.forEach(function($e){!e.getDeclarationOfKind($e,274)&&!e.getDeclarationOfKind($e,273)&&u($e,Ne)})}}function TM(r){return r.kind===79&&ky(r.parent)&&e.getNameOfDeclaration(r.parent)===r}function ky(r){switch(r.kind){case 162:case 256:case 257:case 258:case 259:case 343:case 336:case 337:return!0;case 266:return r.isTypeOnly;case 269:case 274:return r.parent.parent.isTypeOnly;default:return!1}}function C6(r){for(;r.parent.kind===160;)r=r.parent;return r.parent.kind===177}function xM(r){for(;r.parent.kind===205;)r=r.parent;return r.parent.kind===227}function k6(r,i){for(var t;r=e.getContainingClass(r),!(!r||(t=i(r))););return t}function EM(r){return!!e.findAncestor(r,function(i){return e.isConstructorDeclaration(i)&&e.nodeIsPresent(i.body)||e.isPropertyDeclaration(i)?!0:e.isClassLike(i)||e.isFunctionLikeDeclaration(i)?"quit":!1})}function dS(r,i){return!!k6(r,function(t){return t===i})}function CM(r){for(;r.parent.kind===160;)r=r.parent;if(r.parent.kind===264)return r.parent.moduleReference===r?r.parent:void 0;if(r.parent.kind===270)return r.parent.expression===r?r.parent:void 0}function k0(r){return CM(r)!==void 0}function kM(r){var i=e.getAssignmentDeclarationKind(r.parent.parent);switch(i){case 1:case 3:return It(r.parent);case 4:case 2:case 5:return It(r.parent.parent)}}function AM(r){for(var i=r.parent;e.isQualifiedName(i);)r=i,i=i.parent;if(i&&i.kind===199&&i.qualifier===r)return i}function A6(r){if(e.isDeclarationName(r))return It(r.parent);if(e.isInJSFile(r)&&r.parent.kind===205&&r.parent===r.parent.parent.left&&!e.isPrivateIdentifier(r)&&!e.isJSDocMemberName(r)){var i=kM(r);if(i)return i}if(r.parent.kind===270&&e.isEntityNameExpression(r)){var t=Ps(r,2998271,!0);if(t&&t!==hr)return t}else if(e.isEntityName(r)&&k0(r)){var o=e.getAncestor(r,264);return e.Debug.assert(o!==void 0),Kt(r,!0)}if(e.isEntityName(r)){var s=AM(r);if(s){Ua(s);var u=Da(r).resolvedSymbol;return u===hr?void 0:u}}for(;e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(r);)r=r.parent;if(xM(r)){var T=0;r.parent.kind===227?(T=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(r.parent)&&(T|=111551)):T=1920,T|=2097152;var q=e.isEntityNameExpression(r)?Ps(r,T):void 0;if(q)return q}if(r.parent.kind===338)return e.getParameterSymbolFromJSDoc(r.parent);if(r.parent.kind===162&&r.parent.parent.kind===342){e.Debug.assert(!e.isInJSFile(r));var fe=e.getTypeParameterFromJsDoc(r.parent);return fe&&fe.symbol}if(e.isExpressionNode(r)){if(e.nodeIsMissing(r))return;var Ne=e.findAncestor(r,e.or(e.isJSDocLinkLike,e.isJSDocNameReference,e.isJSDocMemberName)),T=Ne?901119:111551;if(r.kind===79){if(e.isJSXTagName(r)&&am(r)){var $e=mb(r.parent);return $e===hr?void 0:$e}var Ze=Ps(r,T,!1,!Ne,e.getHostSignatureFromJSDoc(r));if(!Ze&&Ne){var lr=e.findAncestor(r,e.or(e.isClassLike,e.isInterfaceDeclaration));if(lr)return A0(r,It(lr))}return Ze}else{if(e.isPrivateIdentifier(r))return e0(r);if(r.kind===205||r.kind===160){var yr=Da(r);return yr.resolvedSymbol?yr.resolvedSymbol:(r.kind===205?bC(r,0):SC(r,0),!yr.resolvedSymbol&&Ne&&e.isQualifiedName(r)?A0(r):yr.resolvedSymbol)}else if(e.isJSDocMemberName(r))return A0(r)}}else if(C6(r)){var T=r.parent.kind===177?788968:1920,$e=Ps(r,T,!1,!0);return $e&&$e!==hr?$e:oh(r)}if(r.parent.kind===176)return Ps(r,1)}function A0(r,i){if(e.isEntityName(r)){var t=901119,o=Ps(r,t,!1,!0,e.getHostSignatureFromJSDoc(r));if(!o&&e.isIdentifier(r)&&i&&(o=Wn(Pc(Ns(i),r.escapedText,t))),o)return o}var s=e.isIdentifier(r)?i:A0(r.left),u=e.isIdentifier(r)?r.escapedText:r.right.escapedText;if(s){var T=s.flags&111551&&tn(Jt(s),"prototype"),q=T?Jt(T):Io(s);return tn(q,u)}}function Xu(r,i){if(r.kind===303)return e.isExternalModule(r)?Wn(r.symbol):void 0;var t=r.parent,o=t.parent;if(!(r.flags&16777216)){if(J(r)){var s=It(t);return e.isImportOrExportSpecifier(r.parent)&&r.parent.propertyName===r?db(s):s}else if(e.isLiteralComputedPropertyDeclarationName(r))return It(t.parent);if(r.kind===79){if(k0(r))return A6(r);if(t.kind===202&&o.kind===200&&r===t.propertyName){var u=Wp(o),T=tn(u,r.escapedText);if(T)return T}else if(e.isMetaProperty(t)){var q=Wp(t),T=tn(q,r.escapedText);if(T)return T;if(t.keywordToken===103)return Rb(t).symbol}}switch(r.kind){case 79:case 80:case 205:case 160:if(!e.isThisInTypeQuery(r))return A6(r);case 108:var fe=e.getThisContainer(r,!1);if(e.isFunctionLike(fe)){var Ne=Ku(fe);if(Ne.thisParameter)return Ne.thisParameter}if(e.isInExpressionContext(r))return hn(r).symbol;case 191:return dh(r).symbol;case 106:return hn(r).symbol;case 134:var $e=r.parent;return $e&&$e.kind===170?$e.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(r.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(r.parent.parent)===r||(r.parent.kind===265||r.parent.kind===271)&&r.parent.moduleSpecifier===r||e.isInJSFile(r)&&e.isRequireCall(r.parent,!1)||e.isImportCall(r.parent)||e.isLiteralTypeNode(r.parent)&&e.isLiteralImportTypeNode(r.parent.parent)&&r.parent.parent.argument===r.parent)return ko(r,r,i);if(e.isCallExpression(t)&&e.isBindableObjectDefinePropertyCall(t)&&t.arguments[1]===r)return It(t);case 8:var Ze=e.isElementAccessExpression(t)?t.argumentExpression===r?ac(t.expression):void 0:e.isLiteralTypeNode(t)&&e.isIndexedAccessTypeNode(o)?Ua(o.objectType):void 0;return Ze&&tn(Ze,e.escapeLeadingUnderscores(r.text));case 88:case 98:case 38:case 84:return It(r.parent);case 199:return e.isLiteralImportTypeNode(r)?Xu(r.argument.literal,i):void 0;case 93:return e.isExportAssignment(r.parent)?e.Debug.checkDefined(r.parent.symbol):void 0;case 100:case 103:return e.isMetaProperty(r.parent)?ak(r.parent).symbol:void 0;case 230:return hn(r).symbol;default:return}}}function PM(r){if(e.isIdentifier(r)&&e.isPropertyAccessExpression(r.parent)&&r.parent.name===r){var i=$_(r),t=ac(r.parent.expression),o=t.flags&1048576?t.types:[t];return e.flatMap(o,function(s){return e.filter(Js(s),function(u){return iu(i,u.keyType)})})}}function NM(r){if(r&&r.kind===295)return Ps(r.name,2208703)}function IM(r){return e.isExportSpecifier(r)?r.parent.parent.moduleSpecifier?Jc(r.parent.parent,r):Ps(r.propertyName||r.name,2998271):Ps(r,2998271)}function Wp(r){if(e.isSourceFile(r)&&!e.isExternalModule(r)||r.flags&16777216)return Oe;var i=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(r),t=i&&Pn(It(i.class));if(e.isPartOfTypeNode(r)){var o=Ua(r);return t?Wc(o,t.thisType):o}if(e.isExpressionNode(r))return P6(r);if(t&&!i.isImplements){var s=e.firstOrUndefined(zc(t));return s?Wc(s,t.thisType):Oe}if(ky(r)){var u=It(r);return Io(u)}if(TM(r)){var u=Xu(r);return u?Io(u):Oe}if(e.isDeclaration(r)){var u=It(r);return Jt(u)}if(J(r)){var u=Xu(r);return u?Jt(u):Oe}if(e.isBindingPattern(r))return Zl(r.parent,!0,0)||Oe;if(k0(r)){var u=Xu(r);if(u){var T=Io(u);return ra(T)?Jt(u):T}}return e.isMetaProperty(r.parent)&&r.parent.keywordToken===r.kind?ak(r.parent):Oe}function P0(r){if(e.Debug.assert(r.kind===204||r.kind===203),r.parent.kind===243){var i=Ty(r.parent);return Dd(r,i||Oe)}if(r.parent.kind===220){var i=ac(r.parent.right);return Dd(r,i||Oe)}if(r.parent.kind===294){var t=e.cast(r.parent.parent,e.isObjectLiteralExpression),o=P0(t)||Oe,s=e.indexOfNode(t.properties,r.parent);return vk(t,o,s)}var u=e.cast(r.parent,e.isArrayLiteralExpression),T=P0(u)||Oe,q=P_(65,T,Nr,r.parent)||Oe;return yk(u,T,u.elements.indexOf(r),q)}function wM(r){var i=P0(e.cast(r.parent.parent,e.isAssignmentPattern));return i&&tn(i,r.escapedText)}function P6(r){return e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),Vc(ac(r))}function OM(r){var i=It(r.parent);return e.isStatic(r)?Jt(i):Io(i)}function FM(r){var i=r.name;switch(i.kind){case 79:return Ou(e.idText(i));case 8:case 10:return Ou(i.text);case 161:var t=Zf(i);return ws(t,12288)?t:ki;default:return e.Debug.fail("Unsupported property name.")}}function gS(r){r=$(r);var i=e.createSymbolTable(_o(r)),t=za(r,0).length?an:za(r,1).length?Ke:void 0;return t&&e.forEach(_o(t),function(o){i.has(o.escapedName)||i.set(o.escapedName,o)}),df(i)}function mS(r){return e.typeHasCallOrConstructSignatures(r,Kr)}function N6(r){var i=MM(r);return i?e.flatMap(i,N6):[r]}function MM(r){if(e.getCheckFlags(r)&6)return e.mapDefined(Ma(r).containingType.types,function(u){return tn(u,r.escapedName)});if(r.flags&33554432){var i=r,t=i.leftSpread,o=i.rightSpread,s=i.syntheticOrigin;return t?[t,o]:s?[s]:e.singleElementArray(LM(r))}}function LM(r){for(var i,t=r;t=Ma(t).target;)i=t;return i}function RM(r){if(e.isGeneratedIdentifier(r))return!1;var i=e.getParseTreeNode(r,e.isIdentifier);if(!i)return!1;var t=i.parent;if(!t)return!1;var o=(e.isPropertyAccessExpression(t)||e.isPropertyAssignment(t))&&t.name===i;return!o&&_v(i)===ci}function BM(r){var i=ko(r.parent,r);if(!i||e.isShorthandAmbientModuleSymbol(i))return!0;var t=ff(i);i=Fs(i);var o=Ma(i);return o.exportsSomeValue===void 0&&(o.exportsSomeValue=t?!!(i.flags&111551):e.forEachEntry(al(i),s)),o.exportsSomeValue;function s(u){return u=Qo(u),u&&!!(u.flags&111551)}}function JM(r){return e.isModuleOrEnumDeclaration(r.parent)&&r===r.parent.name}function jM(r,i){var t,o=e.getParseTreeNode(r,e.isIdentifier);if(o){var s=_v(o,JM(o));if(s){if(s.flags&1048576){var u=Wn(s.exportSymbol);if(!i&&u.flags&944&&!(u.flags&3))return;s=u}var T=Rs(s);if(T){if(T.flags&512&&((t=T.valueDeclaration)===null||t===void 0?void 0:t.kind)===303){var q=T.valueDeclaration,fe=e.getSourceFileOfNode(o),Ne=q!==fe;return Ne?void 0:q}return e.findAncestor(o.parent,function($e){return e.isModuleOrEnumDeclaration($e)&&It($e)===T})}}}}function UM(r){if(r.generatedImportReference)return r.generatedImportReference;var i=e.getParseTreeNode(r,e.isIdentifier);if(i){var t=_v(i);if(il(t,111551)&&!gu(t))return ju(t)}}function zM(r){return r.valueDeclaration&&e.isBindingElement(r.valueDeclaration)&&e.walkUpBindingElementsAndPatterns(r.valueDeclaration).parent.kind===291}function I6(r){if(r.flags&418&&r.valueDeclaration&&!e.isSourceFile(r.valueDeclaration)){var i=Ma(r);if(i.isDeclarationWithCollidingName===void 0){var t=e.getEnclosingBlockScopeContainer(r.valueDeclaration);if(e.isStatementWithLocals(t)||zM(r)){var o=Da(r.valueDeclaration);if(os(t.parent,r.escapedName,111551,void 0,void 0,!1))i.isDeclarationWithCollidingName=!0;else if(o.flags&262144){var s=o.flags&524288,u=e.isIterationStatement(t,!1),T=t.kind===234&&e.isIterationStatement(t.parent,!1);i.isDeclarationWithCollidingName=!e.isBlockScopedContainerTopLevel(t)&&(!s||!u&&!T)}else i.isDeclarationWithCollidingName=!1}}return i.isDeclarationWithCollidingName}return!1}function WM(r){if(!e.isGeneratedIdentifier(r)){var i=e.getParseTreeNode(r,e.isIdentifier);if(i){var t=_v(i);if(t&&I6(t))return t.valueDeclaration}}}function qM(r){var i=e.getParseTreeNode(r,e.isDeclaration);if(i){var t=It(i);if(t)return I6(t)}return!1}function w6(r){switch(r.kind){case 264:return N0(It(r));case 266:case 267:case 269:case 274:var i=It(r);return!!i&&N0(i)&&!gu(i);case 271:var t=r.exportClause;return!!t&&(e.isNamespaceExport(t)||e.some(t.elements,w6));case 270:return r.expression&&r.expression.kind===79?N0(It(r)):!0}return!1}function VM(r){var i=e.getParseTreeNode(r,e.isImportEqualsDeclaration);if(i===void 0||i.parent.kind!==303||!e.isInternalModuleImportEqualsDeclaration(i))return!1;var t=N0(It(i));return t&&i.moduleReference&&!e.nodeIsMissing(i.moduleReference)}function N0(r){if(!r)return!1;var i=$c(zo(r));return i===hr?!0:!!(i.flags&111551)&&(e.shouldPreserveConstEnums(ye)||!fv(i))}function fv(r){return qb(r)||!!r.constEnumOnlyModule}function I0(r,i){if(_u(r)){var t=It(r),o=t&&Ma(t);if(o!=null&&o.referenced)return!0;var s=Ma(t).target;if(s&&e.getEffectiveModifierFlags(r)&1&&s.flags&111551&&(e.shouldPreserveConstEnums(ye)||!fv(s)))return!0}return i?!!e.forEachChild(r,function(u){return I0(u,i)}):!1}function O6(r){if(e.nodeIsPresent(r.body)){if(e.isGetAccessor(r)||e.isSetAccessor(r))return!1;var i=It(r),t=Ip(i);return t.length>1||t.length===1&&t[0].declaration!==r}return!1}function F6(r){return!!ur&&!ud(r)&&!e.isJSDocParameterTag(r)&&!!r.initializer&&!e.hasSyntacticModifier(r,16476)}function KM(r){return ur&&ud(r)&&!r.initializer&&e.hasSyntacticModifier(r,16476)}function GM(r){return!!ur&&ud(r)&&!r.initializer}function HM(r){var i=e.getParseTreeNode(r,e.isFunctionDeclaration);if(!i)return!1;var t=It(i);return!t||!(t.flags&16)?!1:!!e.forEachEntry(Ns(t),function(o){return o.flags&111551&&o.valueDeclaration&&e.isPropertyAccessExpression(o.valueDeclaration)})}function XM(r){var i=e.getParseTreeNode(r,e.isFunctionDeclaration);if(!i)return e.emptyArray;var t=It(i);return t&&_o(Jt(t))||e.emptyArray}function xg(r){var i,t=r.id||0;return t<0||t>=lu.length?0:((i=lu[t])===null||i===void 0?void 0:i.flags)||0}function w0(r){return m6(r.parent),Da(r).enumMemberValue}function M6(r){switch(r.kind){case 297:case 205:case 206:return!0}return!1}function vS(r){if(r.kind===297)return w0(r);var i=Da(r).resolvedSymbol;if(i&&i.flags&8){var t=i.valueDeclaration;if(e.isEnumConst(t.parent))return w0(t)}}function yS(r){return!!(r.flags&524288)&&za(r,0).length>0}function QM(r,i){var t,o,s=e.getParseTreeNode(r,e.isEntityName);if(!s||i&&(i=e.getParseTreeNode(i),!i))return e.TypeReferenceSerializationKind.Unknown;var u=!1;if(e.isQualifiedName(s)){var T=Ps(e.getFirstIdentifier(s),111551,!0,!0,i);u=!!(!((t=T==null?void 0:T.declarations)===null||t===void 0)&&t.every(e.isTypeOnlyImportOrExportDeclaration))}var q=Ps(s,111551,!0,!0,i),fe=q&&q.flags&2097152?zo(q):q;u||(u=!!(!((o=q==null?void 0:q.declarations)===null||o===void 0)&&o.every(e.isTypeOnlyImportOrExportDeclaration)));var Ne=Ps(s,788968,!0,!1,i);if(fe&&fe===Ne){var $e=W1(!1);if($e&&fe===$e)return e.TypeReferenceSerializationKind.Promise;var Ze=Jt(fe);if(Ze&&Hd(Ze))return u?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!Ne)return u?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var lr=Io(Ne);return ra(lr)?u?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:lr.flags&3?e.TypeReferenceSerializationKind.ObjectType:ws(lr,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:ws(lr,528)?e.TypeReferenceSerializationKind.BooleanType:ws(lr,296)?e.TypeReferenceSerializationKind.NumberLikeType:ws(lr,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:ws(lr,402653316)?e.TypeReferenceSerializationKind.StringLikeType:Ln(lr)?e.TypeReferenceSerializationKind.ArrayLikeType:ws(lr,12288)?e.TypeReferenceSerializationKind.ESSymbolType:yS(lr)?e.TypeReferenceSerializationKind.TypeWithCallSignature:_c(lr)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function YM(r,i,t,o,s){var u=e.getParseTreeNode(r,e.isVariableLikeOrAccessor);if(!u)return e.factory.createToken(130);var T=It(u),q=T&&!(T.flags&133120)?Lp(Jt(T)):Oe;return q.flags&8192&&q.symbol===T&&(t|=1048576),s&&(q=$f(q)),Cr.typeToTypeNode(q,i,t|1024,o)}function $M(r,i,t,o){var s=e.getParseTreeNode(r,e.isFunctionLike);if(!s)return e.factory.createToken(130);var u=Ku(s);return Cr.typeToTypeNode(So(u),i,t|1024,o)}function ZM(r,i,t,o){var s=e.getParseTreeNode(r,e.isExpression);if(!s)return e.factory.createToken(130);var u=Hc(P6(s));return Cr.typeToTypeNode(u,i,t|1024,o)}function e9(r){return Lr.has(e.escapeLeadingUnderscores(r))}function _v(r,i){var t=Da(r).resolvedSymbol;if(t)return t;var o=r;if(i){var s=r.parent;e.isDeclaration(s)&&r===s.name&&(o=b(s))}return os(o,r.escapedText,3257279,void 0,void 0,!0)}function r9(r){if(!e.isGeneratedIdentifier(r)){var i=e.getParseTreeNode(r,e.isIdentifier);if(i){var t=_v(i);if(t)return $c(t).valueDeclaration}}}function i9(r){return e.isDeclarationReadonly(r)||e.isVariableDeclaration(r)&&e.isVarConst(r)?Mp(Jt(It(r))):!1}function t9(r,i,t){var o=r.flags&1024?Cr.symbolToExpression(r.symbol,111551,i,void 0,t):r===Rt?e.factory.createTrue():r===ri&&e.factory.createFalse();if(o)return o;var s=r.value;return typeof s=="object"?e.factory.createBigIntLiteral(s):typeof s=="number"?e.factory.createNumericLiteral(s):e.factory.createStringLiteral(s)}function a9(r,i){var t=Jt(It(r));return t9(t,r,i)}function L6(r){return r?(no(r),e.getSourceFileOfNode(r).localJsxFactory||lo):lo}function hS(r){if(r){var i=e.getSourceFileOfNode(r);if(i){if(i.localJsxFragmentFactory)return i.localJsxFragmentFactory;var t=i.pragmas.get("jsxfrag"),o=e.isArray(t)?t[0]:t;if(o)return i.localJsxFragmentFactory=e.parseIsolatedEntityName(o.arguments.factory,Se),i.localJsxFragmentFactory}}if(ye.jsxFragmentFactory)return e.parseIsolatedEntityName(ye.jsxFragmentFactory,Se)}function n9(){var r=y.getResolvedTypeReferenceDirectives(),i;return r&&(i=new e.Map,r.forEach(function(fe,Ne){if(!(!fe||!fe.resolvedFileName)){var $e=y.getSourceFile(fe.resolvedFileName);$e&&q($e,Ne)}})),{getReferencedExportContainer:jM,getReferencedImportDeclaration:UM,getReferencedDeclarationWithCollidingName:WM,isDeclarationWithCollidingName:qM,isValueAliasDeclaration:function(fe){var Ne=e.getParseTreeNode(fe);return Ne?w6(Ne):!0},hasGlobalName:e9,isReferencedAliasDeclaration:function(fe,Ne){var $e=e.getParseTreeNode(fe);return $e?I0($e,Ne):!0},getNodeCheckFlags:function(fe){var Ne=e.getParseTreeNode(fe);return Ne?xg(Ne):0},isTopLevelValueImportEqualsWithEntityName:VM,isDeclarationVisible:sc,isImplementationOfOverload:O6,isRequiredInitializedParameter:F6,isOptionalUninitializedParameterProperty:KM,isExpandoFunctionDeclaration:HM,getPropertiesOfContainerFunction:XM,createTypeOfDeclaration:YM,createReturnTypeOfSignatureDeclaration:$M,createTypeOfExpression:ZM,createLiteralConstValue:a9,isSymbolAccessible:mf,isEntityNameVisible:nl,getConstantValue:function(fe){var Ne=e.getParseTreeNode(fe,M6);return Ne?vS(Ne):void 0},collectLinkedAliases:Vf,getReferencedValueDeclaration:r9,getTypeReferenceSerializationKind:QM,isOptionalParameter:ud,moduleExportsSomeValue:BM,isArgumentsLocalBinding:RM,getExternalModuleFileFromDeclaration:function(fe){var Ne=e.getParseTreeNode(fe,e.hasPossibleExternalModuleReference);return Ne&&DS(Ne)},getTypeReferenceDirectivesForEntityName:s,getTypeReferenceDirectivesForSymbol:u,isLiteralConstDeclaration:i9,isLateBound:function(fe){var Ne=e.getParseTreeNode(fe,e.isDeclaration),$e=Ne&&It(Ne);return!!($e&&e.getCheckFlags($e)&4096)},getJsxFactoryEntity:L6,getJsxFragmentFactoryEntity:hS,getAllAccessorDeclarations:function(fe){fe=e.getParseTreeNode(fe,e.isGetOrSetAccessorDeclaration);var Ne=fe.kind===172?171:172,$e=e.getDeclarationOfKind(It(fe),Ne),Ze=$e&&$e.pos<fe.pos?$e:fe,lr=$e&&$e.pos<fe.pos?fe:$e,yr=fe.kind===172?fe:$e,Zr=fe.kind===171?fe:$e;return{firstAccessor:Ze,secondAccessor:lr,setAccessor:yr,getAccessor:Zr}},getSymbolOfExternalModuleSpecifier:function(fe){return xc(fe,fe,void 0)},isBindingCapturedByNode:function(fe,Ne){var $e=e.getParseTreeNode(fe),Ze=e.getParseTreeNode(Ne);return!!$e&&!!Ze&&(e.isVariableDeclaration(Ze)||e.isBindingElement(Ze))&&gw($e,Ze)},getDeclarationStatementsForSourceFile:function(fe,Ne,$e,Ze){var lr=e.getParseTreeNode(fe);e.Debug.assert(lr&&lr.kind===303,"Non-sourcefile node passed into getDeclarationsForSourceFile");var yr=It(fe);return yr?yr.exports?Cr.symbolTableToDeclarationStatements(yr.exports,fe,Ne,$e,Ze):[]:fe.locals?Cr.symbolTableToDeclarationStatements(fe.locals,fe,Ne,$e,Ze):[]},isImportRequiredByAugmentation:t};function t(fe){var Ne=e.getSourceFileOfNode(fe);if(!Ne.symbol)return!1;var $e=DS(fe);if(!$e||$e===Ne)return!1;for(var Ze=al(Ne.symbol),lr=0,yr=e.arrayFrom(Ze.values());lr<yr.length;lr++){var Zr=yr[lr];if(Zr.mergeId){var ui=Wn(Zr);if(ui.declarations)for(var Ii=0,Fi=ui.declarations;Ii<Fi.length;Ii++){var Ri=Fi[Ii],Xi=e.getSourceFileOfNode(Ri);if(Xi===$e)return!0}}}return!1}function o(fe){return fe.parent&&fe.parent.kind===227&&fe.parent.parent&&fe.parent.parent.kind===290}function s(fe){if(!!i){var Ne=790504;(fe.kind===79&&im(fe)||fe.kind===205&&!o(fe))&&(Ne=1160127);var $e=Ps(fe,Ne,!0);return $e&&$e!==hr?u($e,Ne):void 0}}function u(fe,Ne){if(!(!i||!T(fe))){for(var $e,Ze=0,lr=fe.declarations;Ze<lr.length;Ze++){var yr=lr[Ze];if(yr.symbol&&yr.symbol.flags&Ne){var Zr=e.getSourceFileOfNode(yr),ui=i.get(Zr.path);if(ui)($e||($e=[])).push(ui);else return}}return $e}}function T(fe){if(!fe.declarations)return!1;for(var Ne=fe;;){var $e=Rs(Ne);if($e)Ne=$e;else break}if(Ne.valueDeclaration&&Ne.valueDeclaration.kind===303&&Ne.flags&512)return!1;for(var Ze=0,lr=fe.declarations;Ze<lr.length;Ze++){var yr=lr[Ze],Zr=e.getSourceFileOfNode(yr);if(i.has(Zr.path))return!0}return!1}function q(fe,Ne){if(!i.has(fe.path)){i.set(fe.path,Ne);for(var $e=0,Ze=fe.referencedFiles;$e<Ze.length;$e++){var lr=Ze[$e].fileName,yr=e.resolveTripleslashReference(lr,fe.fileName),Zr=y.getSourceFile(yr);Zr&&q(Zr,Ne)}}}}function DS(r){var i=r.kind===260?e.tryCast(r.name,e.isStringLiteral):e.getExternalModuleName(r),t=xc(i,i,void 0);if(!!t)return e.getDeclarationOfKind(t,303)}function o9(){for(var r=0,i=y.getSourceFiles();r<i.length;r++){var t=i[r];e.bindSourceFile(t,ye)}No=new e.Map;for(var o,s=0,u=y.getSourceFiles();s<u.length;s++){var t=u[s];if(!t.redirectInfo){if(!e.isExternalOrCommonJsModule(t)){var T=t.locals.get("globalThis");if(T!=null&&T.declarations)for(var q=0,fe=T.declarations;q<fe.length;q++){var Ne=fe[q];ya.add(e.createDiagnosticForNode(Ne,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"))}Yc(Lr,t.locals)}if(t.jsGlobalAugmentations&&Yc(Lr,t.jsGlobalAugmentations),t.patternAmbientModules&&t.patternAmbientModules.length&&(bi=e.concatenate(bi,t.patternAmbientModules)),t.moduleAugmentations.length&&(o||(o=[])).push(t.moduleAugmentations),t.symbol&&t.symbol.globalExports){var $e=t.symbol.globalExports;$e.forEach(function(Ia,fa){Lr.has(fa)||Lr.set(fa,Ia)})}}}if(o)for(var Ze=0,lr=o;Ze<lr.length;Ze++)for(var yr=lr[Ze],Zr=0,ui=yr;Zr<ui.length;Zr++){var Ii=ui[Zr];!e.isGlobalScopeAugmentation(Ii.parent)||Vs(Ii)}if(Zu(Lr,Na,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0),Ma(Jr).type=Ur,Ma(ci).type=fc("IArguments",0,!0),Ma(hr).type=Oe,Ma(Rr).type=Uc(16,Rr),h=fc("Array",1,!0),Ht=fc("Object",0,!0),Ka=fc("Function",0,!0),an=dr&&fc("CallableFunction",0,!0)||Ka,Ke=dr&&fc("NewableFunction",0,!0)||Ka,Re=fc("String",0,!0),nr=fc("Number",0,!0),Gr=fc("Boolean",0,!0),_i=fc("RegExp",0,!0),Ki=tc(xe),Nt=tc(ze),Nt===tt&&(Nt=_s(void 0,he,e.emptyArray,e.emptyArray,e.emptyArray)),Ee=sx("ReadonlyArray",1)||h,ca=Ee?Fm(Ee,[xe]):Ki,Ei=sx("ThisType",1),o)for(var Fi=0,Ri=o;Fi<Ri.length;Fi++)for(var yr=Ri[Fi],Xi=0,ea=yr;Xi<ea.length;Xi++){var Ii=ea[Xi];e.isGlobalScopeAugmentation(Ii.parent)||Vs(Ii)}No.forEach(function(lt){var Ia=lt.firstFile,fa=lt.secondFile,Dn=lt.conflictingSymbols;if(Dn.size<8)Dn.forEach(function(Bn,Jn){for(var On=Bn.isBlockScoped,Ao=Bn.firstFileLocations,$i=Bn.secondFileLocations,Vi=On?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,Ot=0,Wa=Ao;Ot<Wa.length;Ot++){var Qt=Wa[Ot];tf(Qt,Vi,Jn,$i)}for(var Qa=0,En=$i;Qa<En.length;Qa++){var Qt=En[Qa];tf(Qt,Vi,Jn,Ao)}});else{var Ra=e.arrayFrom(Dn.keys()).join(", ");ya.add(e.addRelatedInfo(e.createDiagnosticForNode(Ia,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,Ra),e.createDiagnosticForNode(fa,e.Diagnostics.Conflicts_are_in_this_file))),ya.add(e.addRelatedInfo(e.createDiagnosticForNode(fa,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,Ra),e.createDiagnosticForNode(Ia,e.Diagnostics.Conflicts_are_in_this_file)))}}),No=void 0}function dc(r,i){if((m&i)!==i&&ye.importHelpers){var t=e.getSourceFileOfNode(r);if(e.isEffectiveExternalModule(t,ye)&&!(r.flags&8388608)){var o=c9(t,r);if(o!==hr){for(var s=i&~m,u=1;u<=4194304;u<<=1)if(s&u){var T=s9(u),q=Pc(o.exports,e.escapeLeadingUnderscores(T),111551);q?u&524288?e.some(Ip(q),function(fe){return Lc(fe)>3})||Wr(r,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,T,4):u&1048576?e.some(Ip(q),function(fe){return Lc(fe)>4})||Wr(r,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,T,5):u&1024&&(e.some(Ip(q),function(fe){return Lc(fe)>2})||Wr(r,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,T,3)):Wr(r,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,T)}}m|=i}}}function s9(r){switch(r){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spreadArray";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";case 65536:return"__importStar";case 131072:return"__importDefault";case 262144:return"__makeTemplateObject";case 524288:return"__classPrivateFieldGet";case 1048576:return"__classPrivateFieldSet";case 2097152:return"__classPrivateFieldIn";case 4194304:return"__createBinding";default:return e.Debug.fail("Unrecognized helper")}}function c9(r,i){return de||(de=ou(r,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,i)||hr),de}function Af(r){return u9(r)||l9(r)}function u9(r){if(!r.decorators)return!1;if(e.nodeCanBeDecorated(r,r.parent,r.parent.parent)){if(r.kind===171||r.kind===172){var i=e.getAllAccessorDeclarations(r.parent.members,r);if(i.firstAccessor.decorators&&r===i.secondAccessor)return Zs(r,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return r.kind===168&&!e.nodeIsPresent(r.body)?Zs(r,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):Zs(r,e.Diagnostics.Decorators_are_not_valid_here);return!1}function l9(r){var i=f9(r);if(i!==void 0)return i;for(var t,o,s,u,T=0,q=0,fe=r.modifiers;q<fe.length;q++){var Ne=fe[q];if(Ne.kind!==144){if(r.kind===165||r.kind===167)return vt(Ne,e.Diagnostics._0_modifier_cannot_appear_on_a_type_member,e.tokenToString(Ne.kind));if(r.kind===175&&(Ne.kind!==124||!e.isClassLike(r.parent)))return vt(Ne,e.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,e.tokenToString(Ne.kind))}switch(Ne.kind){case 85:if(r.kind!==259)return vt(r,e.Diagnostics.A_class_member_cannot_have_the_0_keyword,e.tokenToString(85));break;case 158:if(T&16384)return vt(Ne,e.Diagnostics._0_modifier_already_seen,"override");if(T&2)return vt(Ne,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(T&64)return vt(Ne,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","readonly");if(T&256)return vt(Ne,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","async");T|=16384,u=Ne;break;case 123:case 122:case 121:var $e=p_(e.modifierToFlag(Ne.kind));if(T&28)return vt(Ne,e.Diagnostics.Accessibility_modifier_already_seen);if(T&16384)return vt(Ne,e.Diagnostics._0_modifier_must_precede_1_modifier,$e,"override");if(T&32)return vt(Ne,e.Diagnostics._0_modifier_must_precede_1_modifier,$e,"static");if(T&64)return vt(Ne,e.Diagnostics._0_modifier_must_precede_1_modifier,$e,"readonly");if(T&256)return vt(Ne,e.Diagnostics._0_modifier_must_precede_1_modifier,$e,"async");if(r.parent.kind===261||r.parent.kind===303)return vt(Ne,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,$e);if(T&128)return Ne.kind===121?vt(Ne,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,$e,"abstract"):vt(Ne,e.Diagnostics._0_modifier_must_precede_1_modifier,$e,"abstract");if(e.isPrivateIdentifierClassElementDeclaration(r))return vt(Ne,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);T|=e.modifierToFlag(Ne.kind);break;case 124:if(T&32)return vt(Ne,e.Diagnostics._0_modifier_already_seen,"static");if(T&64)return vt(Ne,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(T&256)return vt(Ne,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(r.parent.kind===261||r.parent.kind===303)return vt(Ne,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(r.kind===163)return vt(Ne,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(T&128)return vt(Ne,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(T&16384)return vt(Ne,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","override");T|=32,t=Ne;break;case 144:if(T&64)return vt(Ne,e.Diagnostics._0_modifier_already_seen,"readonly");if(r.kind!==166&&r.kind!==165&&r.kind!==175&&r.kind!==163)return vt(Ne,e.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);T|=64;break;case 93:if(T&1)return vt(Ne,e.Diagnostics._0_modifier_already_seen,"export");if(T&2)return vt(Ne,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(T&128)return vt(Ne,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(T&256)return vt(Ne,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(e.isClassLike(r.parent))return vt(Ne,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(r.kind===163)return vt(Ne,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");T|=1;break;case 88:var Ze=r.parent.kind===303?r.parent:r.parent.parent;if(Ze.kind===260&&!e.isAmbientModule(Ze))return vt(Ne,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(!(T&1))return vt(Ne,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","default");T|=512;break;case 135:if(T&2)return vt(Ne,e.Diagnostics._0_modifier_already_seen,"declare");if(T&256)return vt(Ne,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(T&16384)return vt(Ne,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(e.isClassLike(r.parent)&&!e.isPropertyDeclaration(r))return vt(Ne,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(r.kind===163)return vt(Ne,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(r.parent.flags&8388608&&r.parent.kind===261)return vt(Ne,e.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(e.isPrivateIdentifierClassElementDeclaration(r))return vt(Ne,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"declare");T|=2,o=Ne;break;case 126:if(T&128)return vt(Ne,e.Diagnostics._0_modifier_already_seen,"abstract");if(r.kind!==256&&r.kind!==179){if(r.kind!==168&&r.kind!==166&&r.kind!==171&&r.kind!==172)return vt(Ne,e.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(r.parent.kind===256&&e.hasSyntacticModifier(r.parent,128)))return vt(Ne,e.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(T&32)return vt(Ne,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(T&8)return vt(Ne,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(T&256&&s)return vt(s,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(T&16384)return vt(Ne,e.Diagnostics._0_modifier_must_precede_1_modifier,"abstract","override")}if(e.isNamedDeclaration(r)&&r.name.kind===80)return vt(Ne,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");T|=128;break;case 131:if(T&256)return vt(Ne,e.Diagnostics._0_modifier_already_seen,"async");if(T&2||r.parent.flags&8388608)return vt(Ne,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(r.kind===163)return vt(Ne,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");if(T&128)return vt(Ne,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");T|=256,s=Ne;break}}return r.kind===170?T&32?vt(t,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):T&16384?vt(u,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):T&256?vt(s,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(r.kind===265||r.kind===264)&&T&2?vt(o,e.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):r.kind===163&&T&16476&&e.isBindingPattern(r.name)?vt(r,e.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern):r.kind===163&&T&16476&&r.dotDotDotToken?vt(r,e.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter):T&256?p9(r,s):!1}function f9(r){return r.modifiers?_9(r)?Zs(r,e.Diagnostics.Modifiers_cannot_appear_here):void 0:!1}function _9(r){switch(r.kind){case 171:case 172:case 170:case 166:case 165:case 168:case 167:case 175:case 260:case 265:case 264:case 271:case 270:case 212:case 213:case 163:return!1;default:if(r.parent.kind===261||r.parent.kind===303)return!1;switch(r.kind){case 255:return bS(r,131);case 256:case 179:return bS(r,126);case 257:case 236:case 258:case 169:return!0;case 259:return bS(r,85);default:e.Debug.fail()}}}function bS(r,i){return r.modifiers.length>1||r.modifiers[0].kind!==i}function p9(r,i){switch(r.kind){case 168:case 255:case 212:case 213:return!1}return vt(i,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}function Wd(r,i){return i===void 0&&(i=e.Diagnostics.Trailing_comma_not_allowed),r&&r.hasTrailingComma?qp(r[0],r.end-1,1,i):!1}function R6(r,i){if(r&&r.length===0){var t=r.pos-1,o=e.skipTrivia(i.text,r.end)+1;return qp(i,t,o-t,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function d9(r){for(var i=!1,t=r.length,o=0;o<t;o++){var s=r[o];if(s.dotDotDotToken){if(o!==t-1)return vt(s.dotDotDotToken,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(s.flags&8388608||Wd(r,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),s.questionToken)return vt(s.questionToken,e.Diagnostics.A_rest_parameter_cannot_be_optional);if(s.initializer)return vt(s.name,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(ud(s)){if(i=!0,s.questionToken&&s.initializer)return vt(s.name,e.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(i&&!s.initializer)return vt(s.name,e.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}}function g9(r){return e.filter(r,function(i){return!!i.initializer||e.isBindingPattern(i.name)||e.isRestParameter(i)})}function m9(r){if(Se>=3){var i=r.body&&e.isBlock(r.body)&&e.findUseStrictPrologue(r.body.statements);if(i){var t=g9(r.parameters);if(e.length(t)){e.forEach(t,function(s){e.addRelatedInfo(Wr(s,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(i,e.Diagnostics.use_strict_directive_used_here))});var o=t.map(function(s,u){return u===0?e.createDiagnosticForNode(s,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(s,e.Diagnostics.and_here)});return e.addRelatedInfo.apply(void 0,qe([Wr(i,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],o,!1)),!0}}}return!1}function O0(r){var i=e.getSourceFileOfNode(r);return Af(r)||R6(r.typeParameters,i)||d9(r.parameters)||y9(r,i)||e.isFunctionLikeDeclaration(r)&&m9(r)}function v9(r){var i=e.getSourceFileOfNode(r);return x9(r)||R6(r.typeParameters,i)}function y9(r,i){if(!e.isArrowFunction(r))return!1;r.typeParameters&&!(e.length(r.typeParameters)>1||r.typeParameters.hasTrailingComma||r.typeParameters[0].constraint)&&i&&e.fileExtensionIsOneOf(i.fileName,[".mts",".cts"])&&vt(r.typeParameters[0],e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);var t=r.equalsGreaterThanToken,o=e.getLineAndCharacterOfPosition(i,t.pos).line,s=e.getLineAndCharacterOfPosition(i,t.end).line;return o!==s&&vt(t,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}function h9(r){var i=r.parameters[0];if(r.parameters.length!==1)return vt(i?i.name:r,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(Wd(r.parameters,e.Diagnostics.An_index_signature_cannot_have_a_trailing_comma),i.dotDotDotToken)return vt(i.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(e.hasEffectiveModifiers(i))return vt(i.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(i.questionToken)return vt(i.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(i.initializer)return vt(i.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!i.type)return vt(i.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);var t=Ua(i.type);return dg(t,function(o){return!!(o.flags&8576)})||Rm(t)?vt(i.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):kf(t,nh)?r.type?!1:vt(r,e.Diagnostics.An_index_signature_must_have_a_type_annotation):vt(i.name,e.Diagnostics.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function D9(r){return Af(r)||h9(r)}function b9(r,i){if(i&&i.length===0){var t=e.getSourceFileOfNode(r),o=i.pos-1,s=e.skipTrivia(t.text,i.end)+1;return qp(t,o,s-o,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}function Ay(r,i){return Wd(i)||b9(r,i)}function S9(r){return r.questionDotToken||r.flags&32?vt(r.template,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function B6(r){var i=r.types;if(Wd(i))return!0;if(i&&i.length===0){var t=e.tokenToString(r.token);return qp(r,i.pos,0,e.Diagnostics._0_list_cannot_be_empty,t)}return e.some(i,T9)}function T9(r){return Ay(r,r.typeArguments)}function x9(r){var i=!1,t=!1;if(!Af(r)&&r.heritageClauses)for(var o=0,s=r.heritageClauses;o<s.length;o++){var u=s[o];if(u.token===94){if(i)return Zs(u,e.Diagnostics.extends_clause_already_seen);if(t)return Zs(u,e.Diagnostics.extends_clause_must_precede_implements_clause);if(u.types.length>1)return Zs(u.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);i=!0}else{if(e.Debug.assert(u.token===117),t)return Zs(u,e.Diagnostics.implements_clause_already_seen);t=!0}B6(u)}}function E9(r){var i=!1;if(r.heritageClauses)for(var t=0,o=r.heritageClauses;t<o.length;t++){var s=o[t];if(s.token===94){if(i)return Zs(s,e.Diagnostics.extends_clause_already_seen);i=!0}else return e.Debug.assert(s.token===117),Zs(s,e.Diagnostics.Interface_declaration_cannot_have_implements_clause);B6(s)}return!1}function F0(r){if(r.kind!==161)return!1;var i=r;return i.expression.kind===220&&i.expression.operatorToken.kind===27?vt(i.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function SS(r){if(r.asteriskToken){if(e.Debug.assert(r.kind===255||r.kind===212||r.kind===168),r.flags&8388608)return vt(r.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!r.body)return vt(r.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function J6(r,i){return!!r&&vt(r,i)}function j6(r,i){return!!r&&vt(r,i)}function C9(r,i){for(var t=new e.Map,o=0,s=r.properties;o<s.length;o++){var u=s[o];if(u.kind===296){if(i){var T=e.skipParentheses(u.expression);if(e.isArrayLiteralExpression(T)||e.isObjectLiteralExpression(T))return vt(u.expression,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern)}continue}var q=u.name;if(q.kind===161&&F0(q),u.kind===295&&!i&&u.objectAssignmentInitializer&&vt(u.equalsToken,e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),q.kind===80&&vt(q,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),u.modifiers)for(var fe=0,Ne=u.modifiers;fe<Ne.length;fe++){var $e=Ne[fe];($e.kind!==131||u.kind!==168)&&vt($e,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode($e))}var Ze=void 0;switch(u.kind){case 295:j6(u.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);case 294:J6(u.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional),q.kind===8&&ES(q),Ze=4;break;case 168:Ze=8;break;case 171:Ze=1;break;case 172:Ze=2;break;default:throw e.Debug.assertNever(u,"Unexpected syntax kind:"+u.kind)}if(!i){var lr=e.getPropertyNameForPropertyNameNode(q);if(lr===void 0)continue;var yr=t.get(lr);if(!yr)t.set(lr,Ze);else if(Ze&8&&yr&8)vt(q,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(q));else if(Ze&4&&yr&4)vt(q,e.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name,e.getTextOfNode(q));else if(Ze&3&&yr&3)if(yr!==3&&Ze!==yr)t.set(lr,Ze|yr);else return vt(q,e.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return vt(q,e.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function k9(r){A9(r.tagName),Ay(r,r.typeArguments);for(var i=new e.Map,t=0,o=r.attributes.properties;t<o.length;t++){var s=o[t];if(s.kind!==286){var u=s.name,T=s.initializer;if(!i.get(u.escapedText))i.set(u.escapedText,!0);else return vt(u,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(T&&T.kind===287&&!T.expression)return vt(T,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}}function A9(r){if(e.isPropertyAccessExpression(r)){var i=r;do{var t=s(i.name);if(t)return t;i=i.expression}while(e.isPropertyAccessExpression(i));var o=s(i);if(o)return o}function s(u){if(e.isIdentifier(u)&&e.idText(u).indexOf(":")!==-1)return vt(u,e.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}}function P9(r){if(r.expression&&e.isCommaSequence(r.expression))return vt(r.expression,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function U6(r){if(Pf(r))return!0;if(r.kind===243&&r.awaitModifier&&!(r.flags&32768)){var i=e.getSourceFileOfNode(r);if(e.isInTopLevelContext(r))bd(i)||(e.isEffectiveExternalModule(i,ye)||ya.add(e.createDiagnosticForNode(r.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),(ge!==e.ModuleKind.ES2022&&ge!==e.ModuleKind.ESNext&&ge!==e.ModuleKind.System&&!(ge===e.ModuleKind.NodeNext&&e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.ESNext)||Se<4)&&ya.add(e.createDiagnosticForNode(r.awaitModifier,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher)));else if(!bd(i)){var t=e.createDiagnosticForNode(r.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),o=e.getContainingFunction(r);if(o&&o.kind!==170){e.Debug.assert((e.getFunctionFlags(o)&2)===0,"Enclosing function should never be an async function.");var s=e.createDiagnosticForNode(o,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(t,s)}return ya.add(t),!0}return!1}if(e.isForOfStatement(r)&&!(r.flags&32768)&&e.isIdentifier(r.initializer)&&r.initializer.escapedText==="async")return vt(r.initializer,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(r.initializer.kind===254){var u=r.initializer;if(!xS(u)){var T=u.declarations;if(!T.length)return!1;if(T.length>1){var t=r.kind===242?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 Zs(u.declarations[1],t)}var q=T[0];if(q.initializer){var t=r.kind===242?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 vt(q.name,t)}if(q.type){var t=r.kind===242?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 vt(q,t)}}}return!1}function N9(r){if(!(r.flags&8388608)&&r.parent.kind!==181&&r.parent.kind!==257){if(Se<1)return vt(r.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(Se<2&&e.isPrivateIdentifier(r.name))return vt(r.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(r.body===void 0&&!e.hasSyntacticModifier(r,128))return qp(r,r.end-1,1,e.Diagnostics._0_expected,"{")}if(r.body){if(e.hasSyntacticModifier(r,128))return vt(r,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(r.parent.kind===181||r.parent.kind===257)return vt(r.body,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts)}if(r.typeParameters)return vt(r.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!I9(r))return vt(r.name,r.kind===171?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(r.kind===172){if(r.type)return vt(r.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var i=e.Debug.checkDefined(e.getSetAccessorValueParameter(r),"Return value does not match parameter count assertion.");if(i.dotDotDotToken)return vt(i.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(i.questionToken)return vt(i.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(i.initializer)return vt(r.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function I9(r){return TS(r)||r.parameters.length===(r.kind===171?0:1)}function TS(r){if(r.parameters.length===(r.kind===171?1:2))return e.getThisParameter(r)}function w9(r){if(r.operator===153){if(r.type.kind!==150)return vt(r.type,e.Diagnostics._0_expected,e.tokenToString(150));var i=e.walkUpParenthesizedTypes(r.parent);switch(e.isInJSFile(i)&&e.isJSDocTypeExpression(i)&&(i=i.parent,e.isJSDocTypeTag(i)&&(i=i.parent.parent)),i.kind){case 253:var t=i;if(t.name.kind!==79)return vt(r,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(t))return vt(r,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(t.parent.flags&2))return vt(i.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 166:if(!e.isStatic(i)||!e.hasEffectiveReadonlyModifier(i))return vt(i.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 165:if(!e.hasSyntacticModifier(i,64))return vt(i.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return vt(r,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}else if(r.operator===144&&r.type.kind!==182&&r.type.kind!==183)return Zs(r,e.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,e.tokenToString(150))}function mm(r,i){if(jy(r))return vt(r,i)}function z6(r){if(O0(r))return!0;if(r.kind===168){if(r.parent.kind===204){if(r.modifiers&&!(r.modifiers.length===1&&e.first(r.modifiers).kind===131))return Zs(r,e.Diagnostics.Modifiers_cannot_appear_here);if(J6(r.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(j6(r.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(r.body===void 0)return qp(r,r.end-1,1,e.Diagnostics._0_expected,"{")}if(SS(r))return!0}if(e.isClassLike(r.parent)){if(Se<2&&e.isPrivateIdentifier(r.name))return vt(r.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(r.flags&8388608)return mm(r.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(r.kind===168&&!r.body)return mm(r.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(r.parent.kind===257)return mm(r.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(r.parent.kind===181)return mm(r.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 O9(r){for(var i=r;i;){if(e.isFunctionLikeOrClassStaticBlockDeclaration(i))return vt(r,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(i.kind){case 249:if(r.label&&i.label.escapedText===r.label.escapedText){var t=r.kind===244&&!e.isIterationStatement(i.statement,!0);return t?vt(r,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1}break;case 248:if(r.kind===245&&!r.label)return!1;break;default:if(e.isIterationStatement(i,!1)&&!r.label)return!1;break}i=i.parent}if(r.label){var o=r.kind===245?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 vt(r,o)}else{var o=r.kind===245?e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return vt(r,o)}}function F9(r){if(r.dotDotDotToken){var i=r.parent.elements;if(r!==e.last(i))return vt(r,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(Wd(i,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),r.propertyName)return vt(r.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name)}if(r.dotDotDotToken&&r.initializer)return qp(r,r.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}function W6(r){return e.isStringOrNumericLiteralLike(r)||r.kind===218&&r.operator===40&&r.operand.kind===8}function M9(r){return r.kind===9||r.kind===218&&r.operator===40&&r.operand.kind===9}function L9(r){if((e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r)&&W6(r.argumentExpression))&&e.isEntityNameExpression(r.expression))return!!(js(r).flags&1024)}function q6(r){var i=r.initializer;if(i){var t=!(W6(i)||L9(i)||i.kind===110||i.kind===95||M9(i)),o=e.isDeclarationReadonly(r)||e.isVariableDeclaration(r)&&e.isVarConst(r);if(o&&!r.type){if(t)return vt(i,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return vt(i,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(!o||t)return vt(i,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function R9(r){if(r.parent.parent.kind!==242&&r.parent.parent.kind!==243){if(r.flags&8388608)q6(r);else if(!r.initializer){if(e.isBindingPattern(r.name)&&!e.isBindingPattern(r.parent))return vt(r,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(r))return vt(r,e.Diagnostics.const_declarations_must_be_initialized)}}if(r.exclamationToken&&(r.parent.parent.kind!==236||!r.type||r.initializer||r.flags&8388608)){var i=r.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return vt(r.exclamationToken,i)}(ge<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&ge!==e.ModuleKind.System&&!(r.parent.parent.flags&8388608)&&e.hasSyntacticModifier(r.parent.parent,1)&&V6(r.name);var t=e.isLet(r)||e.isVarConst(r);return t&&K6(r.name)}function V6(r){if(r.kind===79){if(e.idText(r)==="__esModule")return j9("noEmit",r,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var i=r.elements,t=0,o=i;t<o.length;t++){var s=o[t];if(!e.isOmittedExpression(s))return V6(s.name)}return!1}function K6(r){if(r.kind===79){if(r.originalKeywordKind===119)return vt(r,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var i=r.elements,t=0,o=i;t<o.length;t++){var s=o[t];e.isOmittedExpression(s)||K6(s.name)}return!1}function xS(r){var i=r.declarations;return Wd(r.declarations)?!0:r.declarations.length?!1:qp(r,i.pos,i.end-i.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty)}function G6(r){switch(r.kind){case 238:case 239:case 240:case 247:case 241:case 242:case 243:return!1;case 249:return G6(r.parent)}return!0}function B9(r){if(!G6(r.parent)){if(e.isLet(r.declarationList))return vt(r,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);if(e.isVarConst(r.declarationList))return vt(r,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}function J9(r){var i=r.name.escapedText;switch(r.keywordToken){case 103:if(i!=="target")return vt(r.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,r.name.escapedText,e.tokenToString(r.keywordToken),"target");break;case 100:if(i!=="meta")return vt(r.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,r.name.escapedText,e.tokenToString(r.keywordToken),"meta");break}}function bd(r){return r.parseDiagnostics.length>0}function Zs(r,i,t,o,s){var u=e.getSourceFileOfNode(r);if(!bd(u)){var T=e.getSpanOfTokenAtPosition(u,r.pos);return ya.add(e.createFileDiagnostic(u,T.start,T.length,i,t,o,s)),!0}return!1}function qp(r,i,t,o,s,u,T){var q=e.getSourceFileOfNode(r);return bd(q)?!1:(ya.add(e.createFileDiagnostic(q,i,t,o,s,u,T)),!0)}function j9(r,i,t,o,s,u){var T=e.getSourceFileOfNode(i);return bd(T)?!1:(Jo(r,i,t,o,s,u),!0)}function vt(r,i,t,o,s){var u=e.getSourceFileOfNode(r);return bd(u)?!1:(ya.add(e.createDiagnosticForNode(r,i,t,o,s)),!0)}function U9(r){var i=e.isInJSFile(r)?e.getJSDocTypeParameterDeclarations(r):void 0,t=r.typeParameters||i&&e.firstOrUndefined(i);if(t){var o=t.pos===t.end?t.pos:e.skipTrivia(e.getSourceFileOfNode(r).text,t.pos);return qp(r,o,t.end-o,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function z9(r){var i=e.getEffectiveReturnTypeNode(r);if(i)return vt(i,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}function W9(r){if(e.isComputedPropertyName(r.name)&&e.isBinaryExpression(r.name.expression)&&r.name.expression.operatorToken.kind===101)return vt(r.parent.members[0],e.Diagnostics.A_mapped_type_may_not_declare_properties_or_methods);if(e.isClassLike(r.parent)){if(e.isStringLiteral(r.name)&&r.name.text==="constructor")return vt(r.name,e.Diagnostics.Classes_may_not_have_a_field_named_constructor);if(mm(r.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(Se<2&&e.isPrivateIdentifier(r.name))return vt(r.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher)}else if(r.parent.kind===257){if(mm(r.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(r.initializer)return vt(r.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(e.isTypeLiteralNode(r.parent)){if(mm(r.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(r.initializer)return vt(r.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(r.flags&8388608&&q6(r),e.isPropertyDeclaration(r)&&r.exclamationToken&&(!e.isClassLike(r.parent)||!r.type||r.initializer||r.flags&8388608||e.isStatic(r)||e.hasAbstractModifier(r))){var i=r.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return vt(r.exclamationToken,i)}}function q9(r){return r.kind===257||r.kind===258||r.kind===265||r.kind===264||r.kind===271||r.kind===270||r.kind===263||e.hasSyntacticModifier(r,515)?!1:Zs(r,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function V9(r){for(var i=0,t=r.statements;i<t.length;i++){var o=t[i];if((e.isDeclaration(o)||o.kind===236)&&q9(o))return!0}return!1}function K9(r){return!!(r.flags&8388608)&&V9(r)}function Pf(r){if(r.flags&8388608){var i=Da(r);if(!i.hasReportedStatementInAmbientContext&&(e.isFunctionLike(r.parent)||e.isAccessor(r.parent)))return Da(r).hasReportedStatementInAmbientContext=Zs(r,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(r.parent.kind===234||r.parent.kind===261||r.parent.kind===303){var t=Da(r.parent);if(!t.hasReportedStatementInAmbientContext)return t.hasReportedStatementInAmbientContext=Zs(r,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function ES(r){if(r.numericLiteralFlags&32){var i=void 0;if(Se>=1?i=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(r,195)?i=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(r,297)&&(i=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),i){var t=e.isPrefixUnaryExpression(r.parent)&&r.parent.operator===40,o=(t?"-":"")+"0o"+r.text;return vt(t?r.parent:r,i,o)}}return G9(r),!1}function G9(r){var i=e.getTextOfNode(r).indexOf(".")!==-1,t=r.numericLiteralFlags&16;if(!(i||t)){var o=+r.text;o<=Math.pow(2,53)-1||Ws(!1,e.createDiagnosticForNode(r,e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}}function H9(r){var i=e.isLiteralTypeNode(r.parent)||e.isPrefixUnaryExpression(r.parent)&&e.isLiteralTypeNode(r.parent.parent);return!!(!i&&Se<7&&vt(r,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function X9(r,i,t,o,s){var u=e.getSourceFileOfNode(r);if(!bd(u)){var T=e.getSpanOfTokenAtPosition(u,r.pos);return ya.add(e.createFileDiagnostic(u,e.textSpanEnd(T),0,i,t,o,s)),!0}return!1}function Q9(){return xr||(xr=[],Lr.forEach(function(r,i){a.test(i)&&xr.push(r)})),xr}function Y9(r){var i;return r.isTypeOnly&&r.name&&r.namedBindings?vt(r,e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):r.isTypeOnly&&((i=r.namedBindings)===null||i===void 0?void 0:i.kind)===268?H6(r.namedBindings):!1}function H6(r){return!!e.forEach(r.elements,function(i){if(i.isTypeOnly)return Zs(i,i.kind===269?e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function $9(r){if(ge===e.ModuleKind.ES2015)return vt(r,e.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node12_or_nodenext);if(r.typeArguments)return vt(r,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var i=r.arguments;if(ge!==e.ModuleKind.ESNext&&ge!==e.ModuleKind.NodeNext&&(Wd(i),i.length>1)){var t=i[1];return vt(t,e.Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_or_nodenext)}if(i.length===0||i.length>2)return vt(r,e.Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);var o=e.find(i,e.isSpreadElement);return o?vt(o,e.Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element):!1}function Z9(r,i){var t=e.getObjectFlags(r);if(t&20&&i.flags&1048576)return e.find(i.types,function(o){if(o.flags&524288){var s=t&e.getObjectFlags(o);if(s&4)return r.target===o.target;if(s&16)return!!r.aliasSymbol&&r.aliasSymbol===o.aliasSymbol}return!1})}function eL(r,i){if(e.getObjectFlags(r)&128&&dg(i,ap))return e.find(i.types,function(t){return!ap(t)})}function rL(r,i){var t=0,o=za(r,t).length>0||(t=1,za(r,t).length>0);if(o)return e.find(i.types,function(s){return za(s,t).length>0})}function iL(r,i){var t;if(!(r.flags&406978556))for(var o=0,s=0,u=i.types;s<u.length;s++){var T=u[s];if(!(T.flags&406978556)){var q=To([Ll(r),Ll(T)]);if(q.flags&4194304)return T;if(Rl(q)||q.flags&1048576){var fe=q.flags&1048576?e.countWhere(q.types,Rl):1;fe>=o&&(t=T,o=fe)}}}return t}function tL(r){if(ls(r,67108864)){var i=pc(r,function(t){return!(t.flags&131068)});if(!(i.flags&131072))return i}return r}function X6(r,i,t,o){if(i.flags&1048576&&r.flags&2621440){var s=PE(i,r);if(s)return s;var u=_o(r);if(u){var T=AE(u,i);if(T)return xD(i,e.map(T,function(q){return[function(){return Jt(q)},q.escapedName]}),t,void 0,o)}}}}e.createTypeChecker=D;function l(y){return!e.isAccessor(y)}function _(y){return y.kind!==255&&y.kind!==168||!!y.body}function J(y){switch(y.parent.kind){case 269:case 274:return e.isIdentifier(y);default:return e.isDeclarationName(y)}}var w;(function(y){y.JSX="JSX",y.IntrinsicElements="IntrinsicElements",y.ElementClass="ElementClass",y.ElementAttributesPropertyNameContainer="ElementAttributesProperty",y.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",y.Element="Element",y.IntrinsicAttributes="IntrinsicAttributes",y.IntrinsicClassAttributes="IntrinsicClassAttributes",y.LibraryManagedAttributes="LibraryManagedAttributes"})(w||(w={}));function j(y){switch(y){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function U(y){return!!(y.flags&1)}e.signatureHasRestParameter=U;function z(y){return!!(y.flags&2)}e.signatureHasLiteralTypes=z})(Pe||(Pe={}));var Pe;(function(e){function a(p,C,G,E){if(p===void 0||C===void 0)return p;var ue=C(p);if(ue===p)return p;var B;if(ue!==void 0)return e.isArray(ue)?B=(E||se)(ue):B=ue,e.Debug.assertNode(B,G),B}e.visitNode=a;function O(p,C,G,E,ue){if(p===void 0||C===void 0)return p;var B,re=p.length;(E===void 0||E<0)&&(E=0),(ue===void 0||ue>re-E)&&(ue=re-E);var M,x=-1,ie=-1;(E>0||ue<re)&&(B=[],M=p.hasTrailingComma&&E+ue===re);for(var _e=0;_e<ue;_e++){var Y=p[_e+E],Z=Y!==void 0?C(Y):void 0;if((B!==void 0||Z===void 0||Z!==Y)&&(B===void 0&&(B=p.slice(0,_e),M=p.hasTrailingComma,x=p.pos,ie=p.end),Z))if(e.isArray(Z))for(var k=0,I=Z;k<I.length;k++){var ne=I[k];e.Debug.assertNode(ne,G),B.push(ne)}else e.Debug.assertNode(Z,G),B.push(Z)}if(B){var ee=e.factory.createNodeArray(B,M);return e.setTextRangePosEnd(ee,x,ie),ee}return p}e.visitNodes=O;function L(p,C,G,E,ue,B){return B===void 0&&(B=O),G.startLexicalEnvironment(),p=B(p,C,e.isStatement,E),ue&&(p=G.factory.ensureUseStrict(p)),e.factory.mergeLexicalEnvironment(p,G.endLexicalEnvironment())}e.visitLexicalEnvironment=L;function W(p,C,G,E){E===void 0&&(E=O);var ue;return G.startLexicalEnvironment(),p&&(G.setLexicalEnvironmentFlags(1,!0),ue=E(p,C,e.isParameterDeclaration),G.getLexicalEnvironmentFlags()&2&&e.getEmitScriptTarget(G.getCompilerOptions())>=2&&(ue=N(ue,G)),G.setLexicalEnvironmentFlags(1,!1)),G.suspendLexicalEnvironment(),ue}e.visitParameterList=W;function N(p,C){for(var G,E=0;E<p.length;E++){var ue=p[E],B=Q(ue,C);(G||B!==ue)&&(G||(G=p.slice(0,E)),G[E]=B)}return G?e.setTextRange(C.factory.createNodeArray(G,p.hasTrailingComma),p):p}function Q(p,C){return p.dotDotDotToken?p:e.isBindingPattern(p.name)?pe(p,C):p.initializer?F(p,p.name,p.initializer,C):p}function pe(p,C){var G=C.factory;return C.addInitializationStatement(G.createVariableStatement(void 0,G.createVariableDeclarationList([G.createVariableDeclaration(p.name,void 0,p.type,p.initializer?G.createConditionalExpression(G.createStrictEquality(G.getGeneratedNameForNode(p),G.createVoidZero()),void 0,p.initializer,void 0,G.getGeneratedNameForNode(p)):G.getGeneratedNameForNode(p))]))),G.updateParameterDeclaration(p,p.decorators,p.modifiers,p.dotDotDotToken,G.getGeneratedNameForNode(p),p.questionToken,p.type,void 0)}function F(p,C,G,E){var ue=E.factory;return E.addInitializationStatement(ue.createIfStatement(ue.createTypeCheck(ue.cloneNode(C),"undefined"),e.setEmitFlags(e.setTextRange(ue.createBlock([ue.createExpressionStatement(e.setEmitFlags(e.setTextRange(ue.createAssignment(e.setEmitFlags(ue.cloneNode(C),48),e.setEmitFlags(G,48|e.getEmitFlags(G)|1536)),p),1536))]),p),1953))),ue.updateParameterDeclaration(p,p.decorators,p.modifiers,p.dotDotDotToken,p.name,p.questionToken,p.type,void 0)}function g(p,C,G,E){E===void 0&&(E=a),G.resumeLexicalEnvironment();var ue=E(p,C,e.isConciseBody),B=G.endLexicalEnvironment();if(e.some(B)){if(!ue)return G.factory.createBlock(B);var re=G.factory.converters.convertToFunctionBlock(ue),M=e.factory.mergeLexicalEnvironment(re.statements,B);return G.factory.updateBlock(re,M)}return ue}e.visitFunctionBody=g;function S(p,C,G){G.startBlockScope();var E=a(p,C,e.isStatement,G.factory.liftToBlock),ue=G.endBlockScope();return e.some(ue)?e.isBlock(E)?(ue.push.apply(ue,E.statements),G.factory.updateBlock(E,ue)):(ue.push(E),G.factory.createBlock(ue)):E}e.visitIterationBody=S;function H(p,C,G,E,ue,B){if(E===void 0&&(E=O),B===void 0&&(B=a),p!==void 0){var re=p.kind;if(re>0&&re<=159||re===191)return p;var M=G.factory;switch(re){case 79:return e.Debug.type(p),M.updateIdentifier(p,E(p.typeArguments,C,e.isTypeNodeOrTypeParameterDeclaration));case 160:return e.Debug.type(p),M.updateQualifiedName(p,B(p.left,C,e.isEntityName),B(p.right,C,e.isIdentifier));case 161:return e.Debug.type(p),M.updateComputedPropertyName(p,B(p.expression,C,e.isExpression));case 162:return e.Debug.type(p),M.updateTypeParameterDeclaration(p,B(p.name,C,e.isIdentifier),B(p.constraint,C,e.isTypeNode),B(p.default,C,e.isTypeNode));case 163:return e.Debug.type(p),M.updateParameterDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),B(p.dotDotDotToken,ue,e.isDotDotDotToken),B(p.name,C,e.isBindingName),B(p.questionToken,ue,e.isQuestionToken),B(p.type,C,e.isTypeNode),B(p.initializer,C,e.isExpression));case 164:return e.Debug.type(p),M.updateDecorator(p,B(p.expression,C,e.isExpression));case 165:return e.Debug.type(p),M.updatePropertySignature(p,E(p.modifiers,C,e.isModifier),B(p.name,C,e.isPropertyName),B(p.questionToken,ue,e.isToken),B(p.type,C,e.isTypeNode));case 166:return e.Debug.type(p),M.updatePropertyDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),B(p.name,C,e.isPropertyName),B(p.questionToken||p.exclamationToken,ue,e.isQuestionOrExclamationToken),B(p.type,C,e.isTypeNode),B(p.initializer,C,e.isExpression));case 167:return e.Debug.type(p),M.updateMethodSignature(p,E(p.modifiers,C,e.isModifier),B(p.name,C,e.isPropertyName),B(p.questionToken,ue,e.isQuestionToken),E(p.typeParameters,C,e.isTypeParameterDeclaration),E(p.parameters,C,e.isParameterDeclaration),B(p.type,C,e.isTypeNode));case 168:return e.Debug.type(p),M.updateMethodDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),B(p.asteriskToken,ue,e.isAsteriskToken),B(p.name,C,e.isPropertyName),B(p.questionToken,ue,e.isQuestionToken),E(p.typeParameters,C,e.isTypeParameterDeclaration),W(p.parameters,C,G,E),B(p.type,C,e.isTypeNode),g(p.body,C,G,B));case 170:return e.Debug.type(p),M.updateConstructorDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),W(p.parameters,C,G,E),g(p.body,C,G,B));case 171:return e.Debug.type(p),M.updateGetAccessorDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),B(p.name,C,e.isPropertyName),W(p.parameters,C,G,E),B(p.type,C,e.isTypeNode),g(p.body,C,G,B));case 172:return e.Debug.type(p),M.updateSetAccessorDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),B(p.name,C,e.isPropertyName),W(p.parameters,C,G,E),g(p.body,C,G,B));case 169:return e.Debug.type(p),G.startLexicalEnvironment(),G.suspendLexicalEnvironment(),M.updateClassStaticBlockDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),g(p.body,C,G,B));case 173:return e.Debug.type(p),M.updateCallSignature(p,E(p.typeParameters,C,e.isTypeParameterDeclaration),E(p.parameters,C,e.isParameterDeclaration),B(p.type,C,e.isTypeNode));case 174:return e.Debug.type(p),M.updateConstructSignature(p,E(p.typeParameters,C,e.isTypeParameterDeclaration),E(p.parameters,C,e.isParameterDeclaration),B(p.type,C,e.isTypeNode));case 175:return e.Debug.type(p),M.updateIndexSignature(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),E(p.parameters,C,e.isParameterDeclaration),B(p.type,C,e.isTypeNode));case 176:return e.Debug.type(p),M.updateTypePredicateNode(p,B(p.assertsModifier,C,e.isAssertsKeyword),B(p.parameterName,C,e.isIdentifierOrThisTypeNode),B(p.type,C,e.isTypeNode));case 177:return e.Debug.type(p),M.updateTypeReferenceNode(p,B(p.typeName,C,e.isEntityName),E(p.typeArguments,C,e.isTypeNode));case 178:return e.Debug.type(p),M.updateFunctionTypeNode(p,E(p.typeParameters,C,e.isTypeParameterDeclaration),E(p.parameters,C,e.isParameterDeclaration),B(p.type,C,e.isTypeNode));case 179:return e.Debug.type(p),M.updateConstructorTypeNode(p,E(p.modifiers,C,e.isModifier),E(p.typeParameters,C,e.isTypeParameterDeclaration),E(p.parameters,C,e.isParameterDeclaration),B(p.type,C,e.isTypeNode));case 180:return e.Debug.type(p),M.updateTypeQueryNode(p,B(p.exprName,C,e.isEntityName));case 181:return e.Debug.type(p),M.updateTypeLiteralNode(p,E(p.members,C,e.isTypeElement));case 182:return e.Debug.type(p),M.updateArrayTypeNode(p,B(p.elementType,C,e.isTypeNode));case 183:return e.Debug.type(p),M.updateTupleTypeNode(p,E(p.elements,C,e.isTypeNode));case 184:return e.Debug.type(p),M.updateOptionalTypeNode(p,B(p.type,C,e.isTypeNode));case 185:return e.Debug.type(p),M.updateRestTypeNode(p,B(p.type,C,e.isTypeNode));case 186:return e.Debug.type(p),M.updateUnionTypeNode(p,E(p.types,C,e.isTypeNode));case 187:return e.Debug.type(p),M.updateIntersectionTypeNode(p,E(p.types,C,e.isTypeNode));case 188:return e.Debug.type(p),M.updateConditionalTypeNode(p,B(p.checkType,C,e.isTypeNode),B(p.extendsType,C,e.isTypeNode),B(p.trueType,C,e.isTypeNode),B(p.falseType,C,e.isTypeNode));case 189:return e.Debug.type(p),M.updateInferTypeNode(p,B(p.typeParameter,C,e.isTypeParameterDeclaration));case 199:return e.Debug.type(p),M.updateImportTypeNode(p,B(p.argument,C,e.isTypeNode),B(p.qualifier,C,e.isEntityName),O(p.typeArguments,C,e.isTypeNode),p.isTypeOf);case 196:return e.Debug.type(p),M.updateNamedTupleMember(p,a(p.dotDotDotToken,C,e.isDotDotDotToken),a(p.name,C,e.isIdentifier),a(p.questionToken,C,e.isQuestionToken),a(p.type,C,e.isTypeNode));case 190:return e.Debug.type(p),M.updateParenthesizedType(p,B(p.type,C,e.isTypeNode));case 192:return e.Debug.type(p),M.updateTypeOperatorNode(p,B(p.type,C,e.isTypeNode));case 193:return e.Debug.type(p),M.updateIndexedAccessTypeNode(p,B(p.objectType,C,e.isTypeNode),B(p.indexType,C,e.isTypeNode));case 194:return e.Debug.type(p),M.updateMappedTypeNode(p,B(p.readonlyToken,ue,e.isReadonlyKeywordOrPlusOrMinusToken),B(p.typeParameter,C,e.isTypeParameterDeclaration),B(p.nameType,C,e.isTypeNode),B(p.questionToken,ue,e.isQuestionOrPlusOrMinusToken),B(p.type,C,e.isTypeNode),E(p.members,C,e.isTypeElement));case 195:return e.Debug.type(p),M.updateLiteralTypeNode(p,B(p.literal,C,e.isExpression));case 197:return e.Debug.type(p),M.updateTemplateLiteralType(p,B(p.head,C,e.isTemplateHead),E(p.templateSpans,C,e.isTemplateLiteralTypeSpan));case 198:return e.Debug.type(p),M.updateTemplateLiteralTypeSpan(p,B(p.type,C,e.isTypeNode),B(p.literal,C,e.isTemplateMiddleOrTemplateTail));case 200:return e.Debug.type(p),M.updateObjectBindingPattern(p,E(p.elements,C,e.isBindingElement));case 201:return e.Debug.type(p),M.updateArrayBindingPattern(p,E(p.elements,C,e.isArrayBindingElement));case 202:return e.Debug.type(p),M.updateBindingElement(p,B(p.dotDotDotToken,ue,e.isDotDotDotToken),B(p.propertyName,C,e.isPropertyName),B(p.name,C,e.isBindingName),B(p.initializer,C,e.isExpression));case 203:return e.Debug.type(p),M.updateArrayLiteralExpression(p,E(p.elements,C,e.isExpression));case 204:return e.Debug.type(p),M.updateObjectLiteralExpression(p,E(p.properties,C,e.isObjectLiteralElementLike));case 205:return p.flags&32?(e.Debug.type(p),M.updatePropertyAccessChain(p,B(p.expression,C,e.isExpression),B(p.questionDotToken,ue,e.isQuestionDotToken),B(p.name,C,e.isMemberName))):(e.Debug.type(p),M.updatePropertyAccessExpression(p,B(p.expression,C,e.isExpression),B(p.name,C,e.isMemberName)));case 206:return p.flags&32?(e.Debug.type(p),M.updateElementAccessChain(p,B(p.expression,C,e.isExpression),B(p.questionDotToken,ue,e.isQuestionDotToken),B(p.argumentExpression,C,e.isExpression))):(e.Debug.type(p),M.updateElementAccessExpression(p,B(p.expression,C,e.isExpression),B(p.argumentExpression,C,e.isExpression)));case 207:return p.flags&32?(e.Debug.type(p),M.updateCallChain(p,B(p.expression,C,e.isExpression),B(p.questionDotToken,ue,e.isQuestionDotToken),E(p.typeArguments,C,e.isTypeNode),E(p.arguments,C,e.isExpression))):(e.Debug.type(p),M.updateCallExpression(p,B(p.expression,C,e.isExpression),E(p.typeArguments,C,e.isTypeNode),E(p.arguments,C,e.isExpression)));case 208:return e.Debug.type(p),M.updateNewExpression(p,B(p.expression,C,e.isExpression),E(p.typeArguments,C,e.isTypeNode),E(p.arguments,C,e.isExpression));case 209:return e.Debug.type(p),M.updateTaggedTemplateExpression(p,B(p.tag,C,e.isExpression),O(p.typeArguments,C,e.isTypeNode),B(p.template,C,e.isTemplateLiteral));case 210:return e.Debug.type(p),M.updateTypeAssertion(p,B(p.type,C,e.isTypeNode),B(p.expression,C,e.isExpression));case 211:return e.Debug.type(p),M.updateParenthesizedExpression(p,B(p.expression,C,e.isExpression));case 212:return e.Debug.type(p),M.updateFunctionExpression(p,E(p.modifiers,C,e.isModifier),B(p.asteriskToken,ue,e.isAsteriskToken),B(p.name,C,e.isIdentifier),E(p.typeParameters,C,e.isTypeParameterDeclaration),W(p.parameters,C,G,E),B(p.type,C,e.isTypeNode),g(p.body,C,G,B));case 213:return e.Debug.type(p),M.updateArrowFunction(p,E(p.modifiers,C,e.isModifier),E(p.typeParameters,C,e.isTypeParameterDeclaration),W(p.parameters,C,G,E),B(p.type,C,e.isTypeNode),B(p.equalsGreaterThanToken,ue,e.isEqualsGreaterThanToken),g(p.body,C,G,B));case 214:return e.Debug.type(p),M.updateDeleteExpression(p,B(p.expression,C,e.isExpression));case 215:return e.Debug.type(p),M.updateTypeOfExpression(p,B(p.expression,C,e.isExpression));case 216:return e.Debug.type(p),M.updateVoidExpression(p,B(p.expression,C,e.isExpression));case 217:return e.Debug.type(p),M.updateAwaitExpression(p,B(p.expression,C,e.isExpression));case 218:return e.Debug.type(p),M.updatePrefixUnaryExpression(p,B(p.operand,C,e.isExpression));case 219:return e.Debug.type(p),M.updatePostfixUnaryExpression(p,B(p.operand,C,e.isExpression));case 220:return e.Debug.type(p),M.updateBinaryExpression(p,B(p.left,C,e.isExpression),B(p.operatorToken,ue,e.isBinaryOperatorToken),B(p.right,C,e.isExpression));case 221:return e.Debug.type(p),M.updateConditionalExpression(p,B(p.condition,C,e.isExpression),B(p.questionToken,ue,e.isQuestionToken),B(p.whenTrue,C,e.isExpression),B(p.colonToken,ue,e.isColonToken),B(p.whenFalse,C,e.isExpression));case 222:return e.Debug.type(p),M.updateTemplateExpression(p,B(p.head,C,e.isTemplateHead),E(p.templateSpans,C,e.isTemplateSpan));case 223:return e.Debug.type(p),M.updateYieldExpression(p,B(p.asteriskToken,ue,e.isAsteriskToken),B(p.expression,C,e.isExpression));case 224:return e.Debug.type(p),M.updateSpreadElement(p,B(p.expression,C,e.isExpression));case 225:return e.Debug.type(p),M.updateClassExpression(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),B(p.name,C,e.isIdentifier),E(p.typeParameters,C,e.isTypeParameterDeclaration),E(p.heritageClauses,C,e.isHeritageClause),E(p.members,C,e.isClassElement));case 227:return e.Debug.type(p),M.updateExpressionWithTypeArguments(p,B(p.expression,C,e.isExpression),E(p.typeArguments,C,e.isTypeNode));case 228:return e.Debug.type(p),M.updateAsExpression(p,B(p.expression,C,e.isExpression),B(p.type,C,e.isTypeNode));case 229:return p.flags&32?(e.Debug.type(p),M.updateNonNullChain(p,B(p.expression,C,e.isExpression))):(e.Debug.type(p),M.updateNonNullExpression(p,B(p.expression,C,e.isExpression)));case 230:return e.Debug.type(p),M.updateMetaProperty(p,B(p.name,C,e.isIdentifier));case 232:return e.Debug.type(p),M.updateTemplateSpan(p,B(p.expression,C,e.isExpression),B(p.literal,C,e.isTemplateMiddleOrTemplateTail));case 234:return e.Debug.type(p),M.updateBlock(p,E(p.statements,C,e.isStatement));case 236:return e.Debug.type(p),M.updateVariableStatement(p,E(p.modifiers,C,e.isModifier),B(p.declarationList,C,e.isVariableDeclarationList));case 237:return e.Debug.type(p),M.updateExpressionStatement(p,B(p.expression,C,e.isExpression));case 238:return e.Debug.type(p),M.updateIfStatement(p,B(p.expression,C,e.isExpression),B(p.thenStatement,C,e.isStatement,M.liftToBlock),B(p.elseStatement,C,e.isStatement,M.liftToBlock));case 239:return e.Debug.type(p),M.updateDoStatement(p,S(p.statement,C,G),B(p.expression,C,e.isExpression));case 240:return e.Debug.type(p),M.updateWhileStatement(p,B(p.expression,C,e.isExpression),S(p.statement,C,G));case 241:return e.Debug.type(p),M.updateForStatement(p,B(p.initializer,C,e.isForInitializer),B(p.condition,C,e.isExpression),B(p.incrementor,C,e.isExpression),S(p.statement,C,G));case 242:return e.Debug.type(p),M.updateForInStatement(p,B(p.initializer,C,e.isForInitializer),B(p.expression,C,e.isExpression),S(p.statement,C,G));case 243:return e.Debug.type(p),M.updateForOfStatement(p,B(p.awaitModifier,ue,e.isAwaitKeyword),B(p.initializer,C,e.isForInitializer),B(p.expression,C,e.isExpression),S(p.statement,C,G));case 244:return e.Debug.type(p),M.updateContinueStatement(p,B(p.label,C,e.isIdentifier));case 245:return e.Debug.type(p),M.updateBreakStatement(p,B(p.label,C,e.isIdentifier));case 246:return e.Debug.type(p),M.updateReturnStatement(p,B(p.expression,C,e.isExpression));case 247:return e.Debug.type(p),M.updateWithStatement(p,B(p.expression,C,e.isExpression),B(p.statement,C,e.isStatement,M.liftToBlock));case 248:return e.Debug.type(p),M.updateSwitchStatement(p,B(p.expression,C,e.isExpression),B(p.caseBlock,C,e.isCaseBlock));case 249:return e.Debug.type(p),M.updateLabeledStatement(p,B(p.label,C,e.isIdentifier),B(p.statement,C,e.isStatement,M.liftToBlock));case 250:return e.Debug.type(p),M.updateThrowStatement(p,B(p.expression,C,e.isExpression));case 251:return e.Debug.type(p),M.updateTryStatement(p,B(p.tryBlock,C,e.isBlock),B(p.catchClause,C,e.isCatchClause),B(p.finallyBlock,C,e.isBlock));case 253:return e.Debug.type(p),M.updateVariableDeclaration(p,B(p.name,C,e.isBindingName),B(p.exclamationToken,ue,e.isExclamationToken),B(p.type,C,e.isTypeNode),B(p.initializer,C,e.isExpression));case 254:return e.Debug.type(p),M.updateVariableDeclarationList(p,E(p.declarations,C,e.isVariableDeclaration));case 255:return e.Debug.type(p),M.updateFunctionDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),B(p.asteriskToken,ue,e.isAsteriskToken),B(p.name,C,e.isIdentifier),E(p.typeParameters,C,e.isTypeParameterDeclaration),W(p.parameters,C,G,E),B(p.type,C,e.isTypeNode),g(p.body,C,G,B));case 256:return e.Debug.type(p),M.updateClassDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),B(p.name,C,e.isIdentifier),E(p.typeParameters,C,e.isTypeParameterDeclaration),E(p.heritageClauses,C,e.isHeritageClause),E(p.members,C,e.isClassElement));case 257:return e.Debug.type(p),M.updateInterfaceDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),B(p.name,C,e.isIdentifier),E(p.typeParameters,C,e.isTypeParameterDeclaration),E(p.heritageClauses,C,e.isHeritageClause),E(p.members,C,e.isTypeElement));case 258:return e.Debug.type(p),M.updateTypeAliasDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),B(p.name,C,e.isIdentifier),E(p.typeParameters,C,e.isTypeParameterDeclaration),B(p.type,C,e.isTypeNode));case 259:return e.Debug.type(p),M.updateEnumDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),B(p.name,C,e.isIdentifier),E(p.members,C,e.isEnumMember));case 260:return e.Debug.type(p),M.updateModuleDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),B(p.name,C,e.isModuleName),B(p.body,C,e.isModuleBody));case 261:return e.Debug.type(p),M.updateModuleBlock(p,E(p.statements,C,e.isStatement));case 262:return e.Debug.type(p),M.updateCaseBlock(p,E(p.clauses,C,e.isCaseOrDefaultClause));case 263:return e.Debug.type(p),M.updateNamespaceExportDeclaration(p,B(p.name,C,e.isIdentifier));case 264:return e.Debug.type(p),M.updateImportEqualsDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),p.isTypeOnly,B(p.name,C,e.isIdentifier),B(p.moduleReference,C,e.isModuleReference));case 265:return e.Debug.type(p),M.updateImportDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),B(p.importClause,C,e.isImportClause),B(p.moduleSpecifier,C,e.isExpression),B(p.assertClause,C,e.isAssertClause));case 292:return e.Debug.type(p),M.updateAssertClause(p,E(p.elements,C,e.isAssertEntry),p.multiLine);case 293:return e.Debug.type(p),M.updateAssertEntry(p,B(p.name,C,e.isAssertionKey),B(p.value,C,e.isExpressionNode));case 266:return e.Debug.type(p),M.updateImportClause(p,p.isTypeOnly,B(p.name,C,e.isIdentifier),B(p.namedBindings,C,e.isNamedImportBindings));case 267:return e.Debug.type(p),M.updateNamespaceImport(p,B(p.name,C,e.isIdentifier));case 273:return e.Debug.type(p),M.updateNamespaceExport(p,B(p.name,C,e.isIdentifier));case 268:return e.Debug.type(p),M.updateNamedImports(p,E(p.elements,C,e.isImportSpecifier));case 269:return e.Debug.type(p),M.updateImportSpecifier(p,p.isTypeOnly,B(p.propertyName,C,e.isIdentifier),B(p.name,C,e.isIdentifier));case 270:return e.Debug.type(p),M.updateExportAssignment(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),B(p.expression,C,e.isExpression));case 271:return e.Debug.type(p),M.updateExportDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),p.isTypeOnly,B(p.exportClause,C,e.isNamedExportBindings),B(p.moduleSpecifier,C,e.isExpression),B(p.assertClause,C,e.isAssertClause));case 272:return e.Debug.type(p),M.updateNamedExports(p,E(p.elements,C,e.isExportSpecifier));case 274:return e.Debug.type(p),M.updateExportSpecifier(p,p.isTypeOnly,B(p.propertyName,C,e.isIdentifier),B(p.name,C,e.isIdentifier));case 276:return e.Debug.type(p),M.updateExternalModuleReference(p,B(p.expression,C,e.isExpression));case 277:return e.Debug.type(p),M.updateJsxElement(p,B(p.openingElement,C,e.isJsxOpeningElement),E(p.children,C,e.isJsxChild),B(p.closingElement,C,e.isJsxClosingElement));case 278:return e.Debug.type(p),M.updateJsxSelfClosingElement(p,B(p.tagName,C,e.isJsxTagNameExpression),E(p.typeArguments,C,e.isTypeNode),B(p.attributes,C,e.isJsxAttributes));case 279:return e.Debug.type(p),M.updateJsxOpeningElement(p,B(p.tagName,C,e.isJsxTagNameExpression),E(p.typeArguments,C,e.isTypeNode),B(p.attributes,C,e.isJsxAttributes));case 280:return e.Debug.type(p),M.updateJsxClosingElement(p,B(p.tagName,C,e.isJsxTagNameExpression));case 281:return e.Debug.type(p),M.updateJsxFragment(p,B(p.openingFragment,C,e.isJsxOpeningFragment),E(p.children,C,e.isJsxChild),B(p.closingFragment,C,e.isJsxClosingFragment));case 284:return e.Debug.type(p),M.updateJsxAttribute(p,B(p.name,C,e.isIdentifier),B(p.initializer,C,e.isStringLiteralOrJsxExpression));case 285:return e.Debug.type(p),M.updateJsxAttributes(p,E(p.properties,C,e.isJsxAttributeLike));case 286:return e.Debug.type(p),M.updateJsxSpreadAttribute(p,B(p.expression,C,e.isExpression));case 287:return e.Debug.type(p),M.updateJsxExpression(p,B(p.expression,C,e.isExpression));case 288:return e.Debug.type(p),M.updateCaseClause(p,B(p.expression,C,e.isExpression),E(p.statements,C,e.isStatement));case 289:return e.Debug.type(p),M.updateDefaultClause(p,E(p.statements,C,e.isStatement));case 290:return e.Debug.type(p),M.updateHeritageClause(p,E(p.types,C,e.isExpressionWithTypeArguments));case 291:return e.Debug.type(p),M.updateCatchClause(p,B(p.variableDeclaration,C,e.isVariableDeclaration),B(p.block,C,e.isBlock));case 294:return e.Debug.type(p),M.updatePropertyAssignment(p,B(p.name,C,e.isPropertyName),B(p.initializer,C,e.isExpression));case 295:return e.Debug.type(p),M.updateShorthandPropertyAssignment(p,B(p.name,C,e.isIdentifier),B(p.objectAssignmentInitializer,C,e.isExpression));case 296:return e.Debug.type(p),M.updateSpreadAssignment(p,B(p.expression,C,e.isExpression));case 297:return e.Debug.type(p),M.updateEnumMember(p,B(p.name,C,e.isPropertyName),B(p.initializer,C,e.isExpression));case 303:return e.Debug.type(p),M.updateSourceFile(p,L(p.statements,C,G));case 348:return e.Debug.type(p),M.updatePartiallyEmittedExpression(p,B(p.expression,C,e.isExpression));case 349:return e.Debug.type(p),M.updateCommaListExpression(p,E(p.elements,C,e.isExpression));default:return p}}}e.visitEachChild=H;function se(p){return e.Debug.assert(p.length<=1,"Too many nodes written to output."),e.singleOrUndefined(p)}})(Pe||(Pe={}));var Pe;(function(e){function a(x,ie,_e,Y,Z){var k=Z.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,I=k.enter,ne=k.exit,ee=[],A=[],f=new e.Map,P,D=[],l,_=[],J="",w=0,j=0,U=0,z=0,y=0,oe=0,ve=!1,ce=0,m=0,de=0,ae=0,V=0,le=0,ke=!1,Ue=!1,He=!1;return{getSources:function(){return ee},addSource:ar,setSourceContent:gr,addName:me,addMapping:he,appendSourceMap:we,toJSON:cr,toString:function(){return JSON.stringify(cr())}};function ar(Ir){I();var dr=e.getRelativePathToDirectoryOrUrl(Y,Ir,x.getCurrentDirectory(),x.getCanonicalFileName,!0),Br=f.get(dr);return Br===void 0&&(Br=A.length,A.push(dr),ee.push(Ir),f.set(dr,Br)),ne(),Br}function gr(Ir,dr){if(I(),dr!==null){for(P||(P=[]);P.length<Ir;)P.push(null);P[Ir]=dr}ne()}function me(Ir){I(),l||(l=new e.Map);var dr=l.get(Ir);return dr===void 0&&(dr=D.length,D.push(Ir),l.set(Ir,dr)),ne(),dr}function Ge(Ir,dr){return!ke||ce!==Ir||m!==dr}function er(Ir,dr,Br){return Ir!==void 0&&dr!==void 0&&Br!==void 0&&de===Ir&&(ae>dr||ae===dr&&V>Br)}function he(Ir,dr,Br,Tr,n,Er){e.Debug.assert(Ir>=ce,"generatedLine cannot backtrack"),e.Debug.assert(dr>=0,"generatedCharacter cannot be negative"),e.Debug.assert(Br===void 0||Br>=0,"sourceIndex cannot be negative"),e.Debug.assert(Tr===void 0||Tr>=0,"sourceLine cannot be negative"),e.Debug.assert(n===void 0||n>=0,"sourceCharacter cannot be negative"),I(),(Ge(Ir,dr)||er(Br,Tr,n))&&(ge(),ce=Ir,m=dr,Ue=!1,He=!1,ke=!0),Br!==void 0&&Tr!==void 0&&n!==void 0&&(de=Br,ae=Tr,V=n,Ue=!0,Er!==void 0&&(le=Er,He=!0)),ne()}function we(Ir,dr,Br,Tr,n,Er){e.Debug.assert(Ir>=ce,"generatedLine cannot backtrack"),e.Debug.assert(dr>=0,"generatedCharacter cannot be negative"),I();for(var br=[],Pr,Ce=g(Br.mappings),Le=Ce.next();!Le.done;Le=Ce.next()){var Xe=Le.value;if(Er&&(Xe.generatedLine>Er.line||Xe.generatedLine===Er.line&&Xe.generatedCharacter>Er.character))break;if(!(n&&(Xe.generatedLine<n.line||n.line===Xe.generatedLine&&Xe.generatedCharacter<n.character))){var Cr=void 0,Lr=void 0,Jr=void 0,Rr=void 0;if(Xe.sourceIndex!==void 0){if(Cr=br[Xe.sourceIndex],Cr===void 0){var ci=Br.sources[Xe.sourceIndex],be=Br.sourceRoot?e.combinePaths(Br.sourceRoot,ci):ci,or=e.combinePaths(e.getDirectoryPath(Tr),be);br[Xe.sourceIndex]=Cr=ar(or),Br.sourcesContent&&typeof Br.sourcesContent[Xe.sourceIndex]=="string"&&gr(Cr,Br.sourcesContent[Xe.sourceIndex])}Lr=Xe.sourceLine,Jr=Xe.sourceCharacter,Br.names&&Xe.nameIndex!==void 0&&(Pr||(Pr=[]),Rr=Pr[Xe.nameIndex],Rr===void 0&&(Pr[Xe.nameIndex]=Rr=me(Br.names[Xe.nameIndex])))}var Kr=Xe.generatedLine-(n?n.line:0),ei=Kr+Ir,li=n&&n.line===Xe.generatedLine?Xe.generatedCharacter-n.character:Xe.generatedCharacter,Si=Kr===0?li+dr:li;he(ei,Si,Cr,Lr,Jr,Rr)}}ne()}function ye(){return!ve||w!==ce||j!==m||U!==de||z!==ae||y!==V||oe!==le}function Se(Ir){_.push(Ir),_.length>=1024&&Fe()}function ge(){if(!(!ke||!ye())){if(I(),w<ce){do Se(59),w++;while(w<ce);j=0}else e.Debug.assertEqual(w,ce,"generatedLine cannot backtrack"),ve&&Se(44);ur(m-j),j=m,Ue&&(ur(de-U),U=de,ur(ae-z),z=ae,ur(V-y),y=V,He&&(ur(le-oe),oe=le)),ve=!0,ne()}}function Fe(){_.length>0&&(J+=String.fromCharCode.apply(void 0,_),_.length=0)}function cr(){return ge(),Fe(),{version:3,file:ie,sourceRoot:_e,sources:A,names:D,mappings:J,sourcesContent:P}}function ur(Ir){Ir<0?Ir=(-Ir<<1)+1:Ir=Ir<<1;do{var dr=Ir&31;Ir=Ir>>5,Ir>0&&(dr=dr|32),Se(se(dr))}while(Ir>0)}}e.createSourceMapGenerator=a;var O=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,L=/^\s*(\/\/[@#] .*)?$/;function W(x,ie){return{getLineCount:function(){return ie.length},getLineText:function(_e){return x.substring(ie[_e],ie[_e+1])}}}e.getLineInfo=W;function N(x){for(var ie=x.getLineCount()-1;ie>=0;ie--){var _e=x.getLineText(ie),Y=O.exec(_e);if(Y)return e.trimStringEnd(Y[1]);if(!_e.match(L))break}}e.tryGetSourceMappingURL=N;function Q(x){return typeof x=="string"||x===null}function pe(x){return x!==null&&typeof x=="object"&&x.version===3&&typeof x.file=="string"&&typeof x.mappings=="string"&&e.isArray(x.sources)&&e.every(x.sources,e.isString)&&(x.sourceRoot===void 0||x.sourceRoot===null||typeof x.sourceRoot=="string")&&(x.sourcesContent===void 0||x.sourcesContent===null||e.isArray(x.sourcesContent)&&e.every(x.sourcesContent,Q))&&(x.names===void 0||x.names===null||e.isArray(x.names)&&e.every(x.names,e.isString))}e.isRawSourceMap=pe;function F(x){try{var ie=JSON.parse(x);if(pe(ie))return ie}catch{}}e.tryParseRawSourceMap=F;function g(x){var ie=!1,_e=0,Y=0,Z=0,k=0,I=0,ne=0,ee=0,A;return{get pos(){return _e},get error(){return A},get state(){return f(!0,!0)},next:function(){for(;!ie&&_e<x.length;){var j=x.charCodeAt(_e);if(j===59){Y++,Z=0,_e++;continue}if(j===44){_e++;continue}var U=!1,z=!1;if(Z+=w(),_())return P();if(Z<0)return l("Invalid generatedCharacter found");if(!J()){if(U=!0,k+=w(),_())return P();if(k<0)return l("Invalid sourceIndex found");if(J())return l("Unsupported Format: No entries after sourceIndex");if(I+=w(),_())return P();if(I<0)return l("Invalid sourceLine found");if(J())return l("Unsupported Format: No entries after sourceLine");if(ne+=w(),_())return P();if(ne<0)return l("Invalid sourceCharacter found");if(!J()){if(z=!0,ee+=w(),_())return P();if(ee<0)return l("Invalid nameIndex found");if(!J())return l("Unsupported Error Format: Entries after nameIndex")}}return{value:f(U,z),done:ie}}return P()}};function f(j,U){return{generatedLine:Y,generatedCharacter:Z,sourceIndex:j?k:void 0,sourceLine:j?I:void 0,sourceCharacter:j?ne:void 0,nameIndex:U?ee:void 0}}function P(){return ie=!0,{value:void 0,done:!0}}function D(j){A===void 0&&(A=j)}function l(j){return D(j),P()}function _(){return A!==void 0}function J(){return _e===x.length||x.charCodeAt(_e)===44||x.charCodeAt(_e)===59}function w(){for(var j=!0,U=0,z=0;j;_e++){if(_e>=x.length)return D("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var y=p(x.charCodeAt(_e));if(y===-1)return D("Invalid character in VLQ"),-1;j=(y&32)!==0,z=z|(y&31)<<U,U+=5}return(z&1)===0?z=z>>1:(z=z>>1,z=-z),z}}e.decodeMappings=g;function S(x,ie){return x===ie||x.generatedLine===ie.generatedLine&&x.generatedCharacter===ie.generatedCharacter&&x.sourceIndex===ie.sourceIndex&&x.sourceLine===ie.sourceLine&&x.sourceCharacter===ie.sourceCharacter&&x.nameIndex===ie.nameIndex}e.sameMapping=S;function H(x){return x.sourceIndex!==void 0&&x.sourceLine!==void 0&&x.sourceCharacter!==void 0}e.isSourceMapping=H;function se(x){return x>=0&&x<26?65+x:x>=26&&x<52?97+x-26:x>=52&&x<62?48+x-52:x===62?43:x===63?47:e.Debug.fail("".concat(x,": not a base64 value"))}function p(x){return x>=65&&x<=90?x-65:x>=97&&x<=122?x-97+26:x>=48&&x<=57?x-48+52:x===43?62:x===47?63:-1}function C(x){return x.sourceIndex!==void 0&&x.sourcePosition!==void 0}function G(x,ie){return x.generatedPosition===ie.generatedPosition&&x.sourceIndex===ie.sourceIndex&&x.sourcePosition===ie.sourcePosition}function E(x,ie){return e.Debug.assert(x.sourceIndex===ie.sourceIndex),e.compareValues(x.sourcePosition,ie.sourcePosition)}function ue(x,ie){return e.compareValues(x.generatedPosition,ie.generatedPosition)}function B(x){return x.sourcePosition}function re(x){return x.generatedPosition}function M(x,ie,_e){var Y=e.getDirectoryPath(_e),Z=ie.sourceRoot?e.getNormalizedAbsolutePath(ie.sourceRoot,Y):Y,k=e.getNormalizedAbsolutePath(ie.file,Y),I=x.getSourceFileLike(k),ne=ie.sources.map(function(U){return e.getNormalizedAbsolutePath(U,Z)}),ee=new e.Map(ne.map(function(U,z){return[x.getCanonicalFileName(U),z]})),A,f,P;return{getSourcePosition:j,getGeneratedPosition:w};function D(U){var z=I!==void 0?e.getPositionOfLineAndCharacter(I,U.generatedLine,U.generatedCharacter,!0):-1,y,oe;if(H(U)){var ve=x.getSourceFileLike(ne[U.sourceIndex]);y=ie.sources[U.sourceIndex],oe=ve!==void 0?e.getPositionOfLineAndCharacter(ve,U.sourceLine,U.sourceCharacter,!0):-1}return{generatedPosition:z,source:y,sourceIndex:U.sourceIndex,sourcePosition:oe,nameIndex:U.nameIndex}}function l(){if(A===void 0){var U=g(ie.mappings),z=e.arrayFrom(U,D);U.error!==void 0?(x.log&&x.log("Encountered error while decoding sourcemap: ".concat(U.error)),A=e.emptyArray):A=z}return A}function _(U){if(P===void 0){for(var z=[],y=0,oe=l();y<oe.length;y++){var ve=oe[y];if(!!C(ve)){var ce=z[ve.sourceIndex];ce||(z[ve.sourceIndex]=ce=[]),ce.push(ve)}}P=z.map(function(m){return e.sortAndDeduplicate(m,E,G)})}return P[U]}function J(){if(f===void 0){for(var U=[],z=0,y=l();z<y.length;z++){var oe=y[z];U.push(oe)}f=e.sortAndDeduplicate(U,ue,G)}return f}function w(U){var z=ee.get(x.getCanonicalFileName(U.fileName));if(z===void 0)return U;var y=_(z);if(!e.some(y))return U;var oe=e.binarySearchKey(y,U.pos,B,e.compareValues);oe<0&&(oe=~oe);var ve=y[oe];return ve===void 0||ve.sourceIndex!==z?U:{fileName:k,pos:ve.generatedPosition}}function j(U){var z=J();if(!e.some(z))return U;var y=e.binarySearchKey(z,U.pos,re,e.compareValues);y<0&&(y=~y);var oe=z[y];return oe===void 0||!C(oe)?U:{fileName:ne[oe.sourceIndex],pos:oe.sourcePosition}}}e.createDocumentPositionMapper=M,e.identitySourceMapConsumer={getSourcePosition:e.identity,getGeneratedPosition:e.identity}})(Pe||(Pe={}));var Pe;(function(e){function a(Y){return Y=e.getOriginalNode(Y),Y?e.getNodeId(Y):0}e.getOriginalNodeId=a;function O(Y){return!Y||!e.isNamedImports(Y)?!1:e.some(Y.elements,L)}function L(Y){return Y.propertyName!==void 0&&Y.propertyName.escapedText==="default"}function W(Y,Z){return k;function k(ne){return ne.kind===303?Z(ne):I(ne)}function I(ne){return Y.factory.createBundle(e.map(ne.sourceFiles,Z),ne.prepends)}}e.chainBundle=W;function N(Y){return!!e.getNamespaceDeclarationNode(Y)}e.getExportNeedsImportStarHelper=N;function Q(Y){if(e.getNamespaceDeclarationNode(Y))return!0;var Z=Y.importClause&&Y.importClause.namedBindings;if(!Z||!e.isNamedImports(Z))return!1;for(var k=0,I=0,ne=Z.elements;I<ne.length;I++){var ee=ne[I];L(ee)&&k++}return k>0&&k!==Z.elements.length||!!(Z.elements.length-k)&&e.isDefaultImport(Y)}e.getImportNeedsImportStarHelper=Q;function pe(Y){return!Q(Y)&&(e.isDefaultImport(Y)||!!Y.importClause&&e.isNamedImports(Y.importClause.namedBindings)&&O(Y.importClause.namedBindings))}e.getImportNeedsImportDefaultHelper=pe;function F(Y,Z,k,I){for(var ne=[],ee=e.createMultiMap(),A=[],f=new e.Map,P,D=!1,l,_=!1,J=!1,w=!1,j=0,U=Z.statements;j<U.length;j++){var z=U[j];switch(z.kind){case 265:ne.push(z),!J&&Q(z)&&(J=!0),!w&&pe(z)&&(w=!0);break;case 264:z.moduleReference.kind===276&&ne.push(z);break;case 271:if(z.moduleSpecifier)if(!z.exportClause)ne.push(z),_=!0;else if(ne.push(z),e.isNamedExports(z.exportClause))de(z);else{var y=z.exportClause.name;f.get(e.idText(y))||(S(A,a(z),y),f.set(e.idText(y),!0),P=e.append(P,y)),J=!0}else de(z);break;case 270:z.isExportEquals&&!l&&(l=z);break;case 236:if(e.hasSyntacticModifier(z,1))for(var oe=0,ve=z.declarationList.declarations;oe<ve.length;oe++){var ce=ve[oe];P=g(ce,f,P)}break;case 255:if(e.hasSyntacticModifier(z,1))if(e.hasSyntacticModifier(z,512))D||(S(A,a(z),Y.factory.getDeclarationName(z)),D=!0);else{var y=z.name;f.get(e.idText(y))||(S(A,a(z),y),f.set(e.idText(y),!0),P=e.append(P,y))}break;case 256:if(e.hasSyntacticModifier(z,1))if(e.hasSyntacticModifier(z,512))D||(S(A,a(z),Y.factory.getDeclarationName(z)),D=!0);else{var y=z.name;y&&!f.get(e.idText(y))&&(S(A,a(z),y),f.set(e.idText(y),!0),P=e.append(P,y))}break}}var m=e.createExternalHelpersImportDeclarationIfNeeded(Y.factory,Y.getEmitHelperFactory(),Z,I,_,J,w);return m&&ne.unshift(m),{externalImports:ne,exportSpecifiers:ee,exportEquals:l,hasExportStarsToExportValues:_,exportedBindings:A,exportedNames:P,externalHelpersImportDeclaration:m};function de(ae){for(var V=0,le=e.cast(ae.exportClause,e.isNamedExports).elements;V<le.length;V++){var ke=le[V];if(!f.get(e.idText(ke.name))){var Ue=ke.propertyName||ke.name;ae.moduleSpecifier||ee.add(e.idText(Ue),ke);var He=k.getReferencedImportDeclaration(Ue)||k.getReferencedValueDeclaration(Ue);He&&S(A,a(He),ke.name),f.set(e.idText(ke.name),!0),P=e.append(P,ke.name)}}}}e.collectExternalModuleInfo=F;function g(Y,Z,k){if(e.isBindingPattern(Y.name))for(var I=0,ne=Y.name.elements;I<ne.length;I++){var ee=ne[I];e.isOmittedExpression(ee)||(k=g(ee,Z,k))}else if(!e.isGeneratedIdentifier(Y.name)){var A=e.idText(Y.name);Z.get(A)||(Z.set(A,!0),k=e.append(k,Y.name))}return k}function S(Y,Z,k){var I=Y[Z];return I?I.push(k):Y[Z]=I=[k],I}function H(Y){return e.isStringLiteralLike(Y)||Y.kind===8||e.isKeyword(Y.kind)||e.isIdentifier(Y)}e.isSimpleCopiableExpression=H;function se(Y){return!e.isIdentifier(Y)&&H(Y)}e.isSimpleInlineableExpression=se;function p(Y){return Y>=64&&Y<=78}e.isCompoundAssignment=p;function C(Y){switch(Y){case 64:return 39;case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 47;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 78:return 52;case 75:return 56;case 76:return 55;case 77:return 60}}e.getNonAssignmentOperatorForCompoundAssignment=C;function G(Y){if(!!e.isExpressionStatement(Y)){var Z=e.skipParentheses(Y.expression);return e.isSuperCall(Z)?Z:void 0}}e.getSuperCallFromStatement=G;function E(Y,Z){for(var k=Z;k<Y.length;k+=1){var I=Y[k];if(G(I))return k}return-1}e.findSuperStatementIndex=E;function ue(Y,Z,k){return e.filter(Y.members,function(I){return M(I,Z,k)})}e.getProperties=ue;function B(Y){return x(Y)||e.isClassStaticBlockDeclaration(Y)}function re(Y){return e.filter(Y.members,B)}e.getStaticPropertiesAndClassStaticBlock=re;function M(Y,Z,k){return e.isPropertyDeclaration(Y)&&(!!Y.initializer||!Z)&&e.hasStaticModifier(Y)===k}function x(Y){return e.isPropertyDeclaration(Y)&&e.hasStaticModifier(Y)}function ie(Y){return Y.kind===166&&Y.initializer!==void 0}e.isInitializedProperty=ie;function _e(Y){return!e.isStatic(Y)&&e.isMethodOrAccessor(Y)&&e.isPrivateIdentifier(Y.name)}e.isNonStaticMethodOrAccessorWithPrivateName=_e})(Pe||(Pe={}));var Pe;(function(e){var a;(function(x){x[x.All=0]="All",x[x.ObjectRest=1]="ObjectRest"})(a=e.FlattenLevel||(e.FlattenLevel={}));function O(x,ie,_e,Y,Z,k){var I=x,ne;if(e.isDestructuringAssignment(x))for(ne=x.right;e.isEmptyArrayLiteral(x.left)||e.isEmptyObjectLiteral(x.left);)if(e.isDestructuringAssignment(ne))I=x=ne,ne=x.right;else return e.visitNode(ne,ie,e.isExpression);var ee,A={context:_e,level:Y,downlevelIteration:!!_e.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:f,emitBindingOrAssignment:P,createArrayBindingOrAssignmentPattern:function(D){return E(_e.factory,D)},createObjectBindingOrAssignmentPattern:function(D){return B(_e.factory,D)},createArrayBindingOrAssignmentElement:M,visitor:ie};if(ne&&(ne=e.visitNode(ne,ie,e.isExpression),e.isIdentifier(ne)&&L(x,ne.escapedText)||N(x)?ne=C(A,ne,!1,I):Z?ne=C(A,ne,!0,I):e.nodeIsSynthesized(x)&&(I=ne)),F(A,x,ne,I,e.isDestructuringAssignment(x)),ne&&Z){if(!e.some(ee))return ne;ee.push(ne)}return _e.factory.inlineExpressions(ee)||_e.factory.createOmittedExpression();function f(D){ee=e.append(ee,D)}function P(D,l,_,J){e.Debug.assertNode(D,k?e.isIdentifier:e.isExpression);var w=k?k(D,l,_):e.setTextRange(_e.factory.createAssignment(e.visitNode(D,ie,e.isExpression),l),_);w.original=J,f(w)}}e.flattenDestructuringAssignment=O;function L(x,ie){var _e=e.getTargetOfBindingOrAssignmentElement(x);return e.isBindingOrAssignmentPattern(_e)?W(_e,ie):e.isIdentifier(_e)?_e.escapedText===ie:!1}function W(x,ie){for(var _e=e.getElementsOfBindingOrAssignmentPattern(x),Y=0,Z=_e;Y<Z.length;Y++){var k=Z[Y];if(L(k,ie))return!0}return!1}function N(x){var ie=e.tryGetPropertyNameOfBindingOrAssignmentElement(x);if(ie&&e.isComputedPropertyName(ie)&&!e.isLiteralExpression(ie.expression))return!0;var _e=e.getTargetOfBindingOrAssignmentElement(x);return!!_e&&e.isBindingOrAssignmentPattern(_e)&&Q(_e)}function Q(x){return!!e.forEach(e.getElementsOfBindingOrAssignmentPattern(x),N)}function pe(x,ie,_e,Y,Z,k,I){k===void 0&&(k=!1);var ne,ee=[],A=[],f={context:_e,level:Y,downlevelIteration:!!_e.getCompilerOptions().downlevelIteration,hoistTempVariables:k,emitExpression:ce,emitBindingOrAssignment:m,createArrayBindingOrAssignmentPattern:function(de){return G(_e.factory,de)},createObjectBindingOrAssignmentPattern:function(de){return ue(_e.factory,de)},createArrayBindingOrAssignmentElement:function(de){return re(_e.factory,de)},visitor:ie};if(e.isVariableDeclaration(x)){var P=e.getInitializerOfBindingOrAssignmentElement(x);P&&(e.isIdentifier(P)&&L(x,P.escapedText)||N(x))&&(P=C(f,e.visitNode(P,f.visitor),!1,P),x=_e.factory.updateVariableDeclaration(x,x.name,void 0,void 0,P))}if(F(f,x,Z,x,I),ne){var D=_e.factory.createTempVariable(void 0);if(k){var l=_e.factory.inlineExpressions(ne);ne=void 0,m(D,l,void 0,void 0)}else{_e.hoistVariableDeclaration(D);var _=e.last(ee);_.pendingExpressions=e.append(_.pendingExpressions,_e.factory.createAssignment(D,_.value)),e.addRange(_.pendingExpressions,ne),_.value=D}}for(var J=0,w=ee;J<w.length;J++){var j=w[J],U=j.pendingExpressions,z=j.name,l=j.value,y=j.location,oe=j.original,ve=_e.factory.createVariableDeclaration(z,void 0,void 0,U?_e.factory.inlineExpressions(e.append(U,l)):l);ve.original=oe,e.setTextRange(ve,y),A.push(ve)}return A;function ce(de){ne=e.append(ne,de)}function m(de,ae,V,le){e.Debug.assertNode(de,e.isBindingName),ne&&(ae=_e.factory.inlineExpressions(e.append(ne,ae)),ne=void 0),ee.push({pendingExpressions:ne,name:de,value:ae,location:V,original:le})}}e.flattenDestructuringBinding=pe;function F(x,ie,_e,Y,Z){var k=e.getTargetOfBindingOrAssignmentElement(ie);if(!Z){var I=e.visitNode(e.getInitializerOfBindingOrAssignmentElement(ie),x.visitor,e.isExpression);I?_e?(_e=se(x,_e,I,Y),!e.isSimpleInlineableExpression(I)&&e.isBindingOrAssignmentPattern(k)&&(_e=C(x,_e,!0,Y))):_e=I:_e||(_e=x.context.factory.createVoidZero())}e.isObjectBindingOrAssignmentPattern(k)?g(x,ie,k,_e,Y):e.isArrayBindingOrAssignmentPattern(k)?S(x,ie,k,_e,Y):x.emitBindingOrAssignment(k,_e,Y,ie)}function g(x,ie,_e,Y,Z){var k=e.getElementsOfBindingOrAssignmentPattern(_e),I=k.length;if(I!==1){var ne=!e.isDeclarationBindingElement(ie)||I!==0;Y=C(x,Y,ne,Z)}for(var ee,A,f=0;f<I;f++){var P=k[f];if(e.getRestIndicatorOfBindingOrAssignmentElement(P)){if(f===I-1){ee&&(x.emitBindingOrAssignment(x.createObjectBindingOrAssignmentPattern(ee),Y,Z,_e),ee=void 0);var l=x.context.getEmitHelperFactory().createRestHelper(Y,k,A,_e);F(x,P,l,P)}}else{var D=e.getPropertyNameOfBindingOrAssignmentElement(P);if(x.level>=1&&!(P.transformFlags&49152)&&!(e.getTargetOfBindingOrAssignmentElement(P).transformFlags&49152)&&!e.isComputedPropertyName(D))ee=e.append(ee,e.visitNode(P,x.visitor));else{ee&&(x.emitBindingOrAssignment(x.createObjectBindingOrAssignmentPattern(ee),Y,Z,_e),ee=void 0);var l=p(x,Y,D);e.isComputedPropertyName(D)&&(A=e.append(A,l.argumentExpression)),F(x,P,l,P)}}}ee&&x.emitBindingOrAssignment(x.createObjectBindingOrAssignmentPattern(ee),Y,Z,_e)}function S(x,ie,_e,Y,Z){var k=e.getElementsOfBindingOrAssignmentPattern(_e),I=k.length;if(x.level<1&&x.downlevelIteration)Y=C(x,e.setTextRange(x.context.getEmitHelperFactory().createReadHelper(Y,I>0&&e.getRestIndicatorOfBindingOrAssignmentElement(k[I-1])?void 0:I),Z),!1,Z);else if(I!==1&&(x.level<1||I===0)||e.every(k,e.isOmittedExpression)){var ne=!e.isDeclarationBindingElement(ie)||I!==0;Y=C(x,Y,ne,Z)}for(var ee,A,f=0;f<I;f++){var P=k[f];if(x.level>=1)if(P.transformFlags&32768||x.hasTransformedPriorElement&&!H(P)){x.hasTransformedPriorElement=!0;var D=x.context.factory.createTempVariable(void 0);x.hoistTempVariables&&x.context.hoistVariableDeclaration(D),A=e.append(A,[D,P]),ee=e.append(ee,x.createArrayBindingOrAssignmentElement(D))}else ee=e.append(ee,P);else{if(e.isOmittedExpression(P))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(P)){if(f===I-1){var l=x.context.factory.createArraySliceCall(Y,f);F(x,P,l,P)}}else{var l=x.context.factory.createElementAccessExpression(Y,f);F(x,P,l,P)}}}if(ee&&x.emitBindingOrAssignment(x.createArrayBindingOrAssignmentPattern(ee),Y,Z,_e),A)for(var _=0,J=A;_<J.length;_++){var w=J[_],j=w[0],P=w[1];F(x,P,j,P)}}function H(x){var ie=e.getTargetOfBindingOrAssignmentElement(x);if(!ie||e.isOmittedExpression(ie))return!0;var _e=e.tryGetPropertyNameOfBindingOrAssignmentElement(x);if(_e&&!e.isPropertyNameLiteral(_e))return!1;var Y=e.getInitializerOfBindingOrAssignmentElement(x);return Y&&!e.isSimpleInlineableExpression(Y)?!1:e.isBindingOrAssignmentPattern(ie)?e.every(e.getElementsOfBindingOrAssignmentPattern(ie),H):e.isIdentifier(ie)}function se(x,ie,_e,Y){return ie=C(x,ie,!0,Y),x.context.factory.createConditionalExpression(x.context.factory.createTypeCheck(ie,"undefined"),void 0,_e,void 0,ie)}function p(x,ie,_e){if(e.isComputedPropertyName(_e)){var Y=C(x,e.visitNode(_e.expression,x.visitor),!1,_e);return x.context.factory.createElementAccessExpression(ie,Y)}else if(e.isStringOrNumericLiteralLike(_e)){var Y=e.factory.cloneNode(_e);return x.context.factory.createElementAccessExpression(ie,Y)}else{var Z=x.context.factory.createIdentifier(e.idText(_e));return x.context.factory.createPropertyAccessExpression(ie,Z)}}function C(x,ie,_e,Y){if(e.isIdentifier(ie)&&_e)return ie;var Z=x.context.factory.createTempVariable(void 0);return x.hoistTempVariables?(x.context.hoistVariableDeclaration(Z),x.emitExpression(e.setTextRange(x.context.factory.createAssignment(Z,ie),Y))):x.emitBindingOrAssignment(Z,ie,Y,void 0),Z}function G(x,ie){return e.Debug.assertEachNode(ie,e.isArrayBindingElement),x.createArrayBindingPattern(ie)}function E(x,ie){return x.createArrayLiteralExpression(e.map(ie,x.converters.convertToArrayAssignmentElement))}function ue(x,ie){return e.Debug.assertEachNode(ie,e.isBindingElement),x.createObjectBindingPattern(ie)}function B(x,ie){return x.createObjectLiteralExpression(e.map(ie,x.converters.convertToObjectAssignmentElement))}function re(x,ie){return x.createBindingElement(void 0,void 0,ie)}function M(x){return x}})(Pe||(Pe={}));var Pe;(function(e){var a;(function(N){N[N.LiftRestriction=0]="LiftRestriction",N[N.All=1]="All"})(a=e.ProcessLevel||(e.ProcessLevel={}));function O(N,Q,pe,F,g,S){var H=e.visitNode(Q.tag,pe,e.isExpression),se=[void 0],p=[],C=[],G=Q.template;if(S===a.LiftRestriction&&!e.hasInvalidEscape(G))return e.visitEachChild(Q,pe,N);if(e.isNoSubstitutionTemplateLiteral(G))p.push(L(G)),C.push(W(G,F));else{p.push(L(G.head)),C.push(W(G.head,F));for(var E=0,ue=G.templateSpans;E<ue.length;E++){var B=ue[E];p.push(L(B.literal)),C.push(W(B.literal,F)),se.push(e.visitNode(B.expression,pe,e.isExpression))}}var re=N.getEmitHelperFactory().createTemplateObjectHelper(e.factory.createArrayLiteralExpression(p),e.factory.createArrayLiteralExpression(C));if(e.isExternalModule(F)){var M=e.factory.createUniqueName("templateObject");g(M),se[0]=e.factory.createLogicalOr(M,e.factory.createAssignment(M,re))}else se[0]=re;return e.factory.createCallExpression(H,void 0,se)}e.processTaggedTemplateExpression=O;function L(N){return N.templateFlags?e.factory.createVoidZero():e.factory.createStringLiteral(N.text)}function W(N,Q){var pe=N.rawText;if(pe===void 0){e.Debug.assertIsDefined(Q,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),pe=e.getSourceTextOfNodeFromSourceFile(Q,N);var F=N.kind===14||N.kind===17;pe=pe.substring(1,pe.length-(F?1:2))}return pe=pe.replace(/\r\n?/g,`
`),e.setTextRange(e.factory.createStringLiteral(pe),N)}})(Pe||(Pe={}));var Pe;(function(e){var a=!1,O;(function(N){N[N.ClassAliases=1]="ClassAliases",N[N.NamespaceExports=2]="NamespaceExports",N[N.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers"})(O||(O={}));var L;(function(N){N[N.None=0]="None",N[N.HasStaticInitializedProperties=1]="HasStaticInitializedProperties",N[N.HasConstructorDecorators=2]="HasConstructorDecorators",N[N.HasMemberDecorators=4]="HasMemberDecorators",N[N.IsExportOfNamespace=8]="IsExportOfNamespace",N[N.IsNamedExternalExport=16]="IsNamedExternalExport",N[N.IsDefaultExternalExport=32]="IsDefaultExternalExport",N[N.IsDerivedClass=64]="IsDerivedClass",N[N.UseImmediatelyInvokedFunctionExpression=128]="UseImmediatelyInvokedFunctionExpression",N[N.HasAnyDecorators=6]="HasAnyDecorators",N[N.NeedsName=5]="NeedsName",N[N.MayNeedImmediatelyInvokedFunctionExpression=7]="MayNeedImmediatelyInvokedFunctionExpression",N[N.IsExported=56]="IsExported"})(L||(L={}));function W(N){var Q=N.factory,pe=N.getEmitHelperFactory,F=N.startLexicalEnvironment,g=N.resumeLexicalEnvironment,S=N.endLexicalEnvironment,H=N.hoistVariableDeclaration,se=N.getEmitResolver(),p=N.getCompilerOptions(),C=e.getStrictOptionValue(p,"strictNullChecks"),G=e.getEmitScriptTarget(p),E=e.getEmitModuleKind(p),ue=N.onEmitNode,B=N.onSubstituteNode;N.onEmitNode=xo,N.onSubstituteNode=ds,N.enableSubstitution(205),N.enableSubstitution(206);var re,M,x,ie,_e,Y,Z,k,I,ne;return ee;function ee(h){return h.kind===304?A(h):f(h)}function A(h){return Q.createBundle(h.sourceFiles.map(f),e.mapDefined(h.prepends,function(Ee){return Ee.kind===306?e.createUnparsedSourceFile(Ee,"js"):Ee}))}function f(h){if(h.isDeclarationFile)return h;re=h;var Ee=P(h,m);return e.addEmitHelpers(Ee,N.readEmitHelpers()),re=void 0,Ee}function P(h,Ee){var Re=ie,nr=_e,Gr=Y,_i=Z;D(h);var Ei=Ee(h);return ie!==Re&&(Y=Gr),ie=Re,_e=nr,Z=_i,Ei}function D(h){switch(h.kind){case 303:case 262:case 261:case 234:ie=h,_e=void 0,Y=void 0;break;case 256:case 255:if(e.hasSyntacticModifier(h,2))break;h.name?ua(h):e.Debug.assert(h.kind===256||e.hasSyntacticModifier(h,512)),e.isClassDeclaration(h)&&(_e=h);break}}function l(h){return P(h,_)}function _(h){return h.transformFlags&1?ce(h):h}function J(h){return P(h,w)}function w(h){switch(h.kind){case 265:case 264:case 270:case 271:return j(h);default:return _(h)}}function j(h){var Ee=e.getParseTreeNode(h);if(Ee!==h)return h.transformFlags&1?e.visitEachChild(h,l,N):h;switch(h.kind){case 265:return gt(h);case 264:return on(h);case 270:return Oi(h);case 271:return wi(h);default:e.Debug.fail("Unhandled ellided statement")}}function U(h){return P(h,z)}function z(h){if(!(h.kind===271||h.kind===265||h.kind===266||h.kind===264&&h.moduleReference.kind===276))return h.transformFlags&1||e.hasSyntacticModifier(h,1)?ce(h):h}function y(h){return P(h,oe)}function oe(h){switch(h.kind){case 170:return Qe(h);case 166:return Be(h);case 175:case 171:case 172:case 168:case 169:return _(h);case 233:return h;default:return e.Debug.failBadSyntaxKind(h)}}function ve(h){if(!(e.modifierToFlag(h.kind)&18654)&&!(M&&h.kind===93))return h}function ce(h){if(e.isStatement(h)&&e.hasSyntacticModifier(h,2))return Q.createNotEmittedStatement(h);switch(h.kind){case 93:case 88:return M?void 0:h;case 123:case 121:case 122:case 126:case 158:case 85:case 135:case 144:case 182:case 183:case 184:case 185:case 181:case 176:case 162:case 130:case 154:case 133:case 149:case 146:case 143:case 114:case 150:case 179:case 178:case 180:case 177:case 186:case 187:case 188:case 190:case 191:case 192:case 193:case 194:case 195:case 175:case 164:return;case 258:return Q.createNotEmittedStatement(h);case 166:return Be(h);case 263:return;case 170:return Qe(h);case 257:return Q.createNotEmittedStatement(h);case 256:return le(h);case 225:return He(h);case 290:return di(h);case 227:return X(h);case 168:return Dr(h);case 171:return v(h);case 172:return xe(h);case 255:return ze(h);case 212:return Je(h);case 213:return Oe(h);case 163:return Fr(h);case 211:return mr(h);case 210:case 228:return Nr(h);case 207:return si(h);case 208:return mi(h);case 209:return Ti(h);case 229:return Ur(h);case 259:return zi(h);case 236:return Xr(h);case 253:return We(h);case 260:return Hi(h);case 264:return on(h);case 278:return hi(h);case 279:return ki(h);default:return e.visitEachChild(h,l,N)}}function m(h){var Ee=e.getStrictOptionValue(p,"alwaysStrict")&&!(e.isExternalModule(h)&&E>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(h);return Q.updateSourceFile(h,e.visitLexicalEnvironment(h.statements,J,N,0,Ee))}function de(h,Ee){var Re=0;e.some(Ee)&&(Re|=1);var nr=e.getEffectiveBaseTypeNode(h);return nr&&e.skipOuterExpressions(nr.expression).kind!==104&&(Re|=64),e.classOrConstructorParameterIsDecorated(h)&&(Re|=2),e.childIsDecorated(h)&&(Re|=4),qr(h)?Re|=8:Sn(h)?Re|=32:Rn(h)&&(Re|=16),G<=1&&Re&7&&(Re|=128),Re}function ae(h){return!!(h.transformFlags&4096)}function V(h){return e.some(h.decorators)||e.some(h.typeParameters)||e.some(h.heritageClauses,ae)||e.some(h.members,ae)}function le(h){if(!V(h)&&!(M&&e.hasSyntacticModifier(h,1)))return e.visitEachChild(h,l,N);var Ee=e.getProperties(h,!0,!0),Re=de(h,Ee);Re&128&&N.startLexicalEnvironment();var nr=h.name||(Re&5?Q.getGeneratedNameForNode(h):void 0),Gr=Re&2?Ue(h,nr):ke(h,nr,Re),_i=[Gr];if(ur(_i,h,!1),ur(_i,h,!0),Br(_i,h),Re&128){var Ei=e.createTokenRange(e.skipTrivia(re.text,h.members.end),19),Ki=Q.getInternalName(h),Nt=Q.createPartiallyEmittedExpression(Ki);e.setTextRangeEnd(Nt,Ei.end),e.setEmitFlags(Nt,1536);var ca=Q.createReturnStatement(Nt);e.setTextRangePos(ca,Ei.pos),e.setEmitFlags(ca,1920),_i.push(ca),e.insertStatementsAfterStandardPrologue(_i,N.endLexicalEnvironment());var Fa=Q.createImmediatelyInvokedArrowFunction(_i);e.setEmitFlags(Fa,33554432);var Ta=Q.createVariableStatement(void 0,Q.createVariableDeclarationList([Q.createVariableDeclaration(Q.getLocalName(h,!1,!1),void 0,void 0,Fa)]));e.setOriginalNode(Ta,h),e.setCommentRange(Ta,h),e.setSourceMapRange(Ta,e.moveRangePastDecorators(h)),e.startOnNewLine(Ta),_i=[Ta]}return Re&8?Zn(_i,h):(Re&128||Re&2)&&(Re&32?_i.push(Q.createExportDefault(Q.getLocalName(h,!1,!0))):Re&16&&_i.push(Q.createExternalModuleExport(Q.getLocalName(h,!1,!0)))),_i.length>1&&(_i.push(Q.createEndOfDeclarationMarker(h)),e.setEmitFlags(Gr,e.getEmitFlags(Gr)|4194304)),e.singleOrMany(_i)}function ke(h,Ee,Re){var nr=Re&128?void 0:e.visitNodes(h.modifiers,ve,e.isModifier),Gr=Q.createClassDeclaration(void 0,nr,Ee,void 0,e.visitNodes(h.heritageClauses,l,e.isHeritageClause),ar(h)),_i=e.getEmitFlags(h);return Re&1&&(_i|=32),e.setTextRange(Gr,h),e.setOriginalNode(Gr,h),e.setEmitFlags(Gr,_i),Gr}function Ue(h,Ee){var Re=e.moveRangePastDecorators(h),nr=Ko(h),Gr=G<=2?Q.getInternalName(h,!1,!0):Q.getLocalName(h,!1,!0),_i=e.visitNodes(h.heritageClauses,l,e.isHeritageClause),Ei=ar(h),Ki=Q.createClassExpression(void 0,void 0,Ee,void 0,_i,Ei);e.setOriginalNode(Ki,h),e.setTextRange(Ki,Re);var Nt=Q.createVariableStatement(void 0,Q.createVariableDeclarationList([Q.createVariableDeclaration(Gr,void 0,void 0,nr?Q.createAssignment(nr,Ki):Ki)],1));return e.setOriginalNode(Nt,h),e.setTextRange(Nt,Re),e.setCommentRange(Nt,h),Nt}function He(h){if(!V(h))return e.visitEachChild(h,l,N);var Ee=Q.createClassExpression(void 0,void 0,h.name,void 0,e.visitNodes(h.heritageClauses,l,e.isHeritageClause),ar(h));return e.setOriginalNode(Ee,h),e.setTextRange(Ee,h),Ee}function ar(h){var Ee=[],Re=e.getFirstConstructorWithBody(h),nr=Re&&e.filter(Re.parameters,function(Ki){return e.isParameterPropertyDeclaration(Ki,Re)});if(nr)for(var Gr=0,_i=nr;Gr<_i.length;Gr++){var Ei=_i[Gr];e.isIdentifier(Ei.name)&&Ee.push(e.setOriginalNode(Q.createPropertyDeclaration(void 0,void 0,Ei.name,void 0,void 0,void 0),Ei))}return e.addRange(Ee,e.visitNodes(h.members,y,e.isClassElement)),e.setTextRange(Q.createNodeArray(Ee),h.members)}function gr(h,Ee){return e.filter(h.members,Ee?function(Re){return me(Re,h)}:function(Re){return Ge(Re,h)})}function me(h,Ee){return er(h,!0,Ee)}function Ge(h,Ee){return er(h,!1,Ee)}function er(h,Ee,Re){return e.nodeOrChildIsDecorated(h,Re)&&Ee===e.isStatic(h)}function he(h){var Ee;if(h)for(var Re=h.parameters,nr=Re.length>0&&e.parameterIsThisKeyword(Re[0]),Gr=nr?1:0,_i=nr?Re.length-1:Re.length,Ei=0;Ei<_i;Ei++){var Ki=Re[Ei+Gr];(Ee||Ki.decorators)&&(Ee||(Ee=new Array(_i)),Ee[Ei]=Ki.decorators)}return Ee}function we(h){var Ee=h.decorators,Re=he(e.getFirstConstructorWithBody(h));if(!(!Ee&&!Re))return{decorators:Ee,parameters:Re}}function ye(h,Ee){switch(Ee.kind){case 171:case 172:return Se(h,Ee);case 168:return ge(Ee);case 166:return Fe(Ee);default:return}}function Se(h,Ee){if(!!Ee.body){var Re=e.getAllAccessorDeclarations(h.members,Ee),nr=Re.firstAccessor,Gr=Re.secondAccessor,_i=Re.setAccessor,Ei=nr.decorators?nr:Gr&&Gr.decorators?Gr:void 0;if(!(!Ei||Ee!==Ei)){var Ki=Ei.decorators,Nt=he(_i);if(!(!Ki&&!Nt))return{decorators:Ki,parameters:Nt}}}}function ge(h){if(!!h.body){var Ee=h.decorators,Re=he(h);if(!(!Ee&&!Re))return{decorators:Ee,parameters:Re}}}function Fe(h){var Ee=h.decorators;if(!!Ee)return{decorators:Ee}}function cr(h,Ee,Re){if(!!Re){var nr=[];return e.addRange(nr,e.map(Re.decorators,n)),e.addRange(nr,e.flatMap(Re.parameters,Er)),br(h,Ee,nr),nr}}function ur(h,Ee,Re){e.addRange(h,e.map(Ir(Ee,Re),zn))}function Ir(h,Ee){for(var Re=gr(h,Ee),nr,Gr=0,_i=Re;Gr<_i.length;Gr++){var Ei=_i[Gr],Ki=dr(h,Ei);Ki&&(nr?nr.push(Ki):nr=[Ki])}return nr}function dr(h,Ee){var Re=ye(h,Ee),nr=cr(Ee,h,Re);if(!!nr){var Gr=rn(h,Ee),_i=sr(Ee,!e.hasSyntacticModifier(Ee,2)),Ei=G>0?Ee.kind===166?Q.createVoidZero():Q.createNull():void 0,Ki=pe().createDecorateHelper(nr,Gr,_i,Ei);return e.setTextRange(Ki,e.moveRangePastDecorators(Ee)),e.setEmitFlags(Ki,1536),Ki}}function Br(h,Ee){var Re=Tr(Ee);Re&&h.push(e.setOriginalNode(Q.createExpressionStatement(Re),Ee))}function Tr(h){var Ee=we(h),Re=cr(h,h,Ee);if(!!Re){var nr=I&&I[e.getOriginalNodeId(h)],Gr=G<=2?Q.getInternalName(h,!1,!0):Q.getLocalName(h,!1,!0),_i=pe().createDecorateHelper(Re,Gr),Ei=Q.createAssignment(Gr,nr?Q.createAssignment(nr,_i):_i);return e.setEmitFlags(Ei,1536),e.setSourceMapRange(Ei,e.moveRangePastDecorators(h)),Ei}}function n(h){return e.visitNode(h.expression,l,e.isExpression)}function Er(h,Ee){var Re;if(h){Re=[];for(var nr=0,Gr=h;nr<Gr.length;nr++){var _i=Gr[nr],Ei=pe().createParamHelper(n(_i),Ee);e.setTextRange(Ei,_i.expression),e.setEmitFlags(Ei,1536),Re.push(Ei)}}return Re}function br(h,Ee,Re){a?Ce(h,Ee,Re):Pr(h,Ee,Re)}function Pr(h,Ee,Re){p.emitDecoratorMetadata&&(Le(h)&&Re.push(pe().createMetadataHelper("design:type",Jr(h))),Cr(h)&&Re.push(pe().createMetadataHelper("design:paramtypes",Rr(h,Ee))),Xe(h)&&Re.push(pe().createMetadataHelper("design:returntype",be(h))))}function Ce(h,Ee,Re){if(p.emitDecoratorMetadata){var nr=void 0;Le(h)&&(nr||(nr=[])).push(Q.createPropertyAssignment("type",Q.createArrowFunction(void 0,void 0,[],void 0,Q.createToken(38),Jr(h)))),Cr(h)&&(nr||(nr=[])).push(Q.createPropertyAssignment("paramTypes",Q.createArrowFunction(void 0,void 0,[],void 0,Q.createToken(38),Rr(h,Ee)))),Xe(h)&&(nr||(nr=[])).push(Q.createPropertyAssignment("returnType",Q.createArrowFunction(void 0,void 0,[],void 0,Q.createToken(38),be(h)))),nr&&Re.push(pe().createMetadataHelper("design:typeinfo",Q.createObjectLiteralExpression(nr,!0)))}}function Le(h){var Ee=h.kind;return Ee===168||Ee===171||Ee===172||Ee===166}function Xe(h){return h.kind===168}function Cr(h){switch(h.kind){case 256:case 225:return e.getFirstConstructorWithBody(h)!==void 0;case 168:case 171:case 172:return!0}return!1}function Lr(h){var Ee=se.getAllAccessorDeclarations(h);return Ee.setAccessor&&e.getSetAccessorTypeAnnotationNode(Ee.setAccessor)||Ee.getAccessor&&e.getEffectiveReturnTypeNode(Ee.getAccessor)}function Jr(h){switch(h.kind){case 166:case 163:return or(h.type);case 172:case 171:return or(Lr(h));case 256:case 225:case 168:return Q.createIdentifier("Function");default:return Q.createVoidZero()}}function Rr(h,Ee){var Re=e.isClassLike(h)?e.getFirstConstructorWithBody(h):e.isFunctionLike(h)&&e.nodeIsPresent(h.body)?h:void 0,nr=[];if(Re)for(var Gr=ci(Re,Ee),_i=Gr.length,Ei=0;Ei<_i;Ei++){var Ki=Gr[Ei];Ei===0&&e.isIdentifier(Ki.name)&&Ki.name.escapedText==="this"||(Ki.dotDotDotToken?nr.push(or(e.getRestParameterElementType(Ki.type))):nr.push(Jr(Ki)))}return Q.createArrayLiteralExpression(nr)}function ci(h,Ee){if(Ee&&h.kind===171){var Re=e.getAllAccessorDeclarations(Ee.members,h).setAccessor;if(Re)return Re.parameters}return h.parameters}function be(h){return e.isFunctionLike(h)&&h.type?or(h.type):e.isAsyncFunction(h)?Q.createIdentifier("Promise"):Q.createVoidZero()}function or(h){if(h===void 0)return Q.createIdentifier("Object");switch(h.kind){case 114:case 152:case 143:return Q.createVoidZero();case 190:return or(h.type);case 178:case 179:return Q.createIdentifier("Function");case 182:case 183:return Q.createIdentifier("Array");case 176:case 133:return Q.createIdentifier("Boolean");case 197:case 149:return Q.createIdentifier("String");case 147:return Q.createIdentifier("Object");case 195:switch(h.literal.kind){case 10:case 14:return Q.createIdentifier("String");case 218:case 8:return Q.createIdentifier("Number");case 9:return aa();case 110:case 95:return Q.createIdentifier("Boolean");case 104:return Q.createVoidZero();default:return e.Debug.failBadSyntaxKind(h.literal)}case 146:return Q.createIdentifier("Number");case 157:return aa();case 150:return G<2?bt():Q.createIdentifier("Symbol");case 177:return ei(h);case 187:case 186:return Kr(h.types);case 188:return Kr([h.trueType,h.falseType]);case 192:if(h.operator===144)return or(h.type);break;case 180:case 193:case 194:case 181:case 130:case 154:case 191:case 199:break;case 310:case 311:case 315:case 316:case 317:break;case 312:case 313:case 314:return or(h.type);default:return e.Debug.failBadSyntaxKind(h)}return Q.createIdentifier("Object")}function Kr(h){for(var Ee,Re=0,nr=h;Re<nr.length;Re++){for(var Gr=nr[Re];Gr.kind===190;)Gr=Gr.type;if(Gr.kind!==143&&!(!C&&(Gr.kind===195&&Gr.literal.kind===104||Gr.kind===152))){var _i=or(Gr);if(e.isIdentifier(_i)&&_i.escapedText==="Object")return _i;if(Ee){if(!e.isIdentifier(Ee)||!e.isIdentifier(_i)||Ee.escapedText!==_i.escapedText)return Q.createIdentifier("Object")}else Ee=_i}}return Ee||Q.createVoidZero()}function ei(h){var Ee=se.getTypeReferenceSerializationKind(h.typeName,_e||ie);switch(Ee){case e.TypeReferenceSerializationKind.Unknown:if(e.findAncestor(h,function(Gr){return Gr.parent&&e.isConditionalTypeNode(Gr.parent)&&(Gr.parent.trueType===Gr||Gr.parent.falseType===Gr)}))return Q.createIdentifier("Object");var Re=Si(h.typeName),nr=Q.createTempVariable(H);return Q.createConditionalExpression(Q.createTypeCheck(Q.createAssignment(nr,Re),"function"),void 0,nr,void 0,Q.createIdentifier("Object"));case e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return qi(h.typeName);case e.TypeReferenceSerializationKind.VoidNullableOrNeverType:return Q.createVoidZero();case e.TypeReferenceSerializationKind.BigIntLikeType:return aa();case e.TypeReferenceSerializationKind.BooleanType:return Q.createIdentifier("Boolean");case e.TypeReferenceSerializationKind.NumberLikeType:return Q.createIdentifier("Number");case e.TypeReferenceSerializationKind.StringLikeType:return Q.createIdentifier("String");case e.TypeReferenceSerializationKind.ArrayLikeType:return Q.createIdentifier("Array");case e.TypeReferenceSerializationKind.ESSymbolType:return G<2?bt():Q.createIdentifier("Symbol");case e.TypeReferenceSerializationKind.TypeWithCallSignature:return Q.createIdentifier("Function");case e.TypeReferenceSerializationKind.Promise:return Q.createIdentifier("Promise");case e.TypeReferenceSerializationKind.ObjectType:return Q.createIdentifier("Object");default:return e.Debug.assertNever(Ee)}}function li(h,Ee){return Q.createLogicalAnd(Q.createStrictInequality(Q.createTypeOfExpression(h),Q.createStringLiteral("undefined")),Ee)}function Si(h){if(h.kind===79){var Ee=qi(h);return li(Ee,Ee)}if(h.left.kind===79)return li(qi(h.left),qi(h));var Re=Si(h.left),nr=Q.createTempVariable(H);return Q.createLogicalAnd(Q.createLogicalAnd(Re.left,Q.createStrictInequality(Q.createAssignment(nr,Re.right),Q.createVoidZero())),Q.createPropertyAccessExpression(nr,h.right))}function qi(h){switch(h.kind){case 79:var Ee=e.setParent(e.setTextRange(e.parseNodeFactory.cloneNode(h),h),h.parent);return Ee.original=void 0,e.setParent(Ee,e.getParseTreeNode(ie)),Ee;case 160:return ft(h)}}function ft(h){return Q.createPropertyAccessExpression(qi(h.left),h.right)}function bt(){return Q.createConditionalExpression(Q.createTypeCheck(Q.createIdentifier("Symbol"),"function"),void 0,Q.createIdentifier("Symbol"),void 0,Q.createIdentifier("Object"))}function aa(){return G<99?Q.createConditionalExpression(Q.createTypeCheck(Q.createIdentifier("BigInt"),"function"),void 0,Q.createIdentifier("BigInt"),void 0,Q.createIdentifier("Object")):Q.createIdentifier("BigInt")}function sr(h,Ee){var Re=h.name;return e.isPrivateIdentifier(Re)?Q.createIdentifier(""):e.isComputedPropertyName(Re)?Ee&&!e.isSimpleInlineableExpression(Re.expression)?Q.getGeneratedNameForNode(Re):Re.expression:e.isIdentifier(Re)?Q.createStringLiteral(e.idText(Re)):Q.cloneNode(Re)}function Ji(h){var Ee=h.name;if(e.isComputedPropertyName(Ee)&&(!e.hasStaticModifier(h)&&Z||e.some(h.decorators))){var Re=e.visitNode(Ee.expression,l,e.isExpression),nr=e.skipPartiallyEmittedExpressions(Re);if(!e.isSimpleInlineableExpression(nr)){var Gr=Q.getGeneratedNameForNode(Ee);return H(Gr),Q.updateComputedPropertyName(Ee,Q.createAssignment(Gr,Re))}}return e.visitNode(Ee,l,e.isPropertyName)}function di(h){if(h.token!==117)return e.visitEachChild(h,l,N)}function X(h){return Q.updateExpressionWithTypeArguments(h,e.visitNode(h.expression,l,e.isLeftHandSideExpression),void 0)}function Ye(h){return!e.nodeIsMissing(h.body)}function Be(h){if(!(h.flags&8388608||e.hasSyntacticModifier(h,128))){var Ee=Q.updatePropertyDeclaration(h,void 0,e.visitNodes(h.modifiers,l,e.isModifier),Ji(h),void 0,void 0,e.visitNode(h.initializer,l));return Ee!==h&&(e.setCommentRange(Ee,h),e.setSourceMapRange(Ee,e.moveRangePastDecorators(h))),Ee}}function Qe(h){if(!!Ye(h))return Q.updateConstructorDeclaration(h,void 0,void 0,e.visitParameterList(h.parameters,l,N),_r(h.body,h))}function _r(h,Ee){var Re=Ee&&e.filter(Ee.parameters,function(Nt){return e.isParameterPropertyDeclaration(Nt,Ee)});if(!e.some(Re))return e.visitFunctionBody(h,l,N);var nr=[];g();var Gr=Q.copyPrologue(h.statements,nr,!1,l),_i=e.findSuperStatementIndex(h.statements,Gr);_i>=0&&e.addRange(nr,e.visitNodes(h.statements,l,e.isStatement,Gr,_i+1-Gr));var Ei=e.mapDefined(Re,hr);_i>=0?e.addRange(nr,Ei):nr=e.addRange(Ei,nr),e.addRange(nr,e.visitNodes(h.statements,l,e.isStatement,_i+1)),nr=Q.mergeLexicalEnvironment(nr,S());var Ki=Q.createBlock(e.setTextRange(Q.createNodeArray(nr),h.statements),!0);return e.setTextRange(Ki,h),e.setOriginalNode(Ki,h),Ki}function hr(h){var Ee=h.name;if(!!e.isIdentifier(Ee)){var Re=e.setParent(e.setTextRange(Q.cloneNode(Ee),Ee),Ee.parent);e.setEmitFlags(Re,1584);var nr=e.setParent(e.setTextRange(Q.cloneNode(Ee),Ee),Ee.parent);return e.setEmitFlags(nr,1536),e.startOnNewLine(e.removeAllComments(e.setTextRange(e.setOriginalNode(Q.createExpressionStatement(Q.createAssignment(e.setTextRange(Q.createPropertyAccessExpression(Q.createThis(),Re),h.name),nr)),h),e.moveRangePos(h,-1))))}}function Dr(h){if(!!Ye(h)){var Ee=Q.updateMethodDeclaration(h,void 0,e.visitNodes(h.modifiers,ve,e.isModifier),h.asteriskToken,Ji(h),void 0,void 0,e.visitParameterList(h.parameters,l,N),void 0,e.visitFunctionBody(h.body,l,N));return Ee!==h&&(e.setCommentRange(Ee,h),e.setSourceMapRange(Ee,e.moveRangePastDecorators(h))),Ee}}function Me(h){return!(e.nodeIsMissing(h.body)&&e.hasSyntacticModifier(h,128))}function v(h){if(!!Me(h)){var Ee=Q.updateGetAccessorDeclaration(h,void 0,e.visitNodes(h.modifiers,ve,e.isModifier),Ji(h),e.visitParameterList(h.parameters,l,N),void 0,e.visitFunctionBody(h.body,l,N)||Q.createBlock([]));return Ee!==h&&(e.setCommentRange(Ee,h),e.setSourceMapRange(Ee,e.moveRangePastDecorators(h))),Ee}}function xe(h){if(!!Me(h)){var Ee=Q.updateSetAccessorDeclaration(h,void 0,e.visitNodes(h.modifiers,ve,e.isModifier),Ji(h),e.visitParameterList(h.parameters,l,N),e.visitFunctionBody(h.body,l,N)||Q.createBlock([]));return Ee!==h&&(e.setCommentRange(Ee,h),e.setSourceMapRange(Ee,e.moveRangePastDecorators(h))),Ee}}function ze(h){if(!Ye(h))return Q.createNotEmittedStatement(h);var Ee=Q.updateFunctionDeclaration(h,void 0,e.visitNodes(h.modifiers,ve,e.isModifier),h.asteriskToken,h.name,void 0,e.visitParameterList(h.parameters,l,N),void 0,e.visitFunctionBody(h.body,l,N)||Q.createBlock([]));if(qr(h)){var Re=[Ee];return Zn(Re,h),Re}return Ee}function Je(h){if(!Ye(h))return Q.createOmittedExpression();var Ee=Q.updateFunctionExpression(h,e.visitNodes(h.modifiers,ve,e.isModifier),h.asteriskToken,h.name,void 0,e.visitParameterList(h.parameters,l,N),void 0,e.visitFunctionBody(h.body,l,N)||Q.createBlock([]));return Ee}function Oe(h){var Ee=Q.updateArrowFunction(h,e.visitNodes(h.modifiers,ve,e.isModifier),void 0,e.visitParameterList(h.parameters,l,N),void 0,h.equalsGreaterThanToken,e.visitFunctionBody(h.body,l,N));return Ee}function Fr(h){if(!e.parameterIsThisKeyword(h)){var Ee=Q.updateParameterDeclaration(h,void 0,void 0,h.dotDotDotToken,e.visitNode(h.name,l,e.isBindingName),void 0,void 0,e.visitNode(h.initializer,l,e.isExpression));return Ee!==h&&(e.setCommentRange(Ee,h),e.setTextRange(Ee,e.moveRangePastModifiers(h)),e.setSourceMapRange(Ee,e.moveRangePastModifiers(h)),e.setEmitFlags(Ee.name,32)),Ee}}function Xr(h){if(qr(h)){var Ee=e.getInitializedVariables(h.declarationList);return Ee.length===0?void 0:e.setTextRange(Q.createExpressionStatement(Q.inlineExpressions(e.map(Ee,Or))),h)}else return e.visitEachChild(h,l,N)}function Or(h){var Ee=h.name;return e.isBindingPattern(Ee)?e.flattenDestructuringAssignment(h,l,N,0,!1,Vo):e.setTextRange(Q.createAssignment(Cn(Ee),e.visitNode(h.initializer,l,e.isExpression)),h)}function We(h){return Q.updateVariableDeclaration(h,e.visitNode(h.name,l,e.isBindingName),void 0,void 0,e.visitNode(h.initializer,l,e.isExpression))}function mr(h){var Ee=e.skipOuterExpressions(h.expression,-7);if(e.isAssertionExpression(Ee)){var Re=e.visitNode(h.expression,l,e.isExpression);return Q.createPartiallyEmittedExpression(Re,h)}return e.visitEachChild(h,l,N)}function Nr(h){var Ee=e.visitNode(h.expression,l,e.isExpression);return Q.createPartiallyEmittedExpression(Ee,h)}function Ur(h){var Ee=e.visitNode(h.expression,l,e.isLeftHandSideExpression);return Q.createPartiallyEmittedExpression(Ee,h)}function si(h){return Q.updateCallExpression(h,e.visitNode(h.expression,l,e.isExpression),void 0,e.visitNodes(h.arguments,l,e.isExpression))}function mi(h){return Q.updateNewExpression(h,e.visitNode(h.expression,l,e.isExpression),void 0,e.visitNodes(h.arguments,l,e.isExpression))}function Ti(h){return Q.updateTaggedTemplateExpression(h,e.visitNode(h.tag,l,e.isExpression),void 0,e.visitNode(h.template,l,e.isExpression))}function hi(h){return Q.updateJsxSelfClosingElement(h,e.visitNode(h.tagName,l,e.isJsxTagNameExpression),void 0,e.visitNode(h.attributes,l,e.isJsxAttributes))}function ki(h){return Q.updateJsxOpeningElement(h,e.visitNode(h.tagName,l,e.isJsxTagNameExpression),void 0,e.visitNode(h.attributes,l,e.isJsxAttributes))}function Ui(h){return!e.isEnumConst(h)||e.shouldPreserveConstEnums(p)}function zi(h){if(!Ui(h))return Q.createNotEmittedStatement(h);var Ee=[],Re=2,nr=Ci(Ee,h);nr&&(E!==e.ModuleKind.System||ie!==re)&&(Re|=512);var Gr=go(h),_i=ro(h),Ei=e.hasSyntacticModifier(h,1)?Q.getExternalModuleOrNamespaceExportName(x,h,!1,!0):Q.getLocalName(h,!1,!0),Ki=Q.createLogicalOr(Ei,Q.createAssignment(Ei,Q.createObjectLiteralExpression()));if(xt(h)){var Nt=Q.getLocalName(h,!1,!0);Ki=Q.createAssignment(Nt,Ki)}var ca=Q.createExpressionStatement(Q.createCallExpression(Q.createFunctionExpression(void 0,void 0,void 0,void 0,[Q.createParameterDeclaration(void 0,void 0,void 0,Gr)],void 0,ri(h,_i)),void 0,[Ki]));return e.setOriginalNode(ca,h),nr&&(e.setSyntheticLeadingComments(ca,void 0),e.setSyntheticTrailingComments(ca,void 0)),e.setTextRange(ca,h),e.addEmitFlags(ca,Re),Ee.push(ca),Ee.push(Q.createEndOfDeclarationMarker(h)),Ee}function ri(h,Ee){var Re=x;x=Ee;var nr=[];F();var Gr=e.map(h.members,Gi);return e.insertStatementsAfterStandardPrologue(nr,S()),e.addRange(nr,Gr),x=Re,Q.createBlock(e.setTextRange(Q.createNodeArray(nr),h.members),!0)}function Gi(h){var Ee=sr(h,!1),Re=Rt(h),nr=Q.createAssignment(Q.createElementAccessExpression(x,Ee),Re),Gr=Re.kind===10?nr:Q.createAssignment(Q.createElementAccessExpression(x,nr),Ee);return e.setTextRange(Q.createExpressionStatement(e.setTextRange(Gr,h)),h)}function Rt(h){var Ee=se.getConstantValue(h);return Ee!==void 0?typeof Ee=="string"?Q.createStringLiteral(Ee):Q.createNumericLiteral(Ee):(Do(),h.initializer?e.visitNode(h.initializer,l,e.isExpression):Q.createVoidZero())}function pa(h){var Ee=e.getParseTreeNode(h,e.isModuleDeclaration);return Ee?e.isInstantiatedModule(Ee,e.shouldPreserveConstEnums(p)):!0}function xt(h){return qr(h)||bn(h)&&E!==e.ModuleKind.ES2015&&E!==e.ModuleKind.ES2020&&E!==e.ModuleKind.ES2022&&E!==e.ModuleKind.ESNext&&E!==e.ModuleKind.System}function ua(h){Y||(Y=new e.Map);var Ee=St(h);Y.has(Ee)||Y.set(Ee,h)}function Vt(h){if(Y){var Ee=St(h);return Y.get(Ee)===h}return!0}function St(h){return e.Debug.assertNode(h.name,e.isIdentifier),h.name.escapedText}function Ci(h,Ee){var Re=Q.createVariableStatement(e.visitNodes(Ee.modifiers,ve,e.isModifier),Q.createVariableDeclarationList([Q.createVariableDeclaration(Q.getLocalName(Ee,!1,!0))],ie.kind===303?0:1));if(e.setOriginalNode(Re,Ee),ua(Ee),Vt(Ee))return Ee.kind===259?e.setSourceMapRange(Re.declarationList,Ee):e.setSourceMapRange(Re,Ee),e.setCommentRange(Re,Ee),e.addEmitFlags(Re,4195328),h.push(Re),!0;var nr=Q.createMergeDeclarationMarker(Re);return e.setEmitFlags(nr,4195840),h.push(nr),!1}function Hi(h){if(!pa(h))return Q.createNotEmittedStatement(h);e.Debug.assertNode(h.name,e.isIdentifier,"A TypeScript namespace should have an Identifier name."),pn();var Ee=[],Re=2,nr=Ci(Ee,h);nr&&(E!==e.ModuleKind.System||ie!==re)&&(Re|=512);var Gr=go(h),_i=ro(h),Ei=e.hasSyntacticModifier(h,1)?Q.getExternalModuleOrNamespaceExportName(x,h,!1,!0):Q.getLocalName(h,!1,!0),Ki=Q.createLogicalOr(Ei,Q.createAssignment(Ei,Q.createObjectLiteralExpression()));if(xt(h)){var Nt=Q.getLocalName(h,!1,!0);Ki=Q.createAssignment(Nt,Ki)}var ca=Q.createExpressionStatement(Q.createCallExpression(Q.createFunctionExpression(void 0,void 0,void 0,void 0,[Q.createParameterDeclaration(void 0,void 0,void 0,Gr)],void 0,Yi(h,_i)),void 0,[Ki]));return e.setOriginalNode(ca,h),nr&&(e.setSyntheticLeadingComments(ca,void 0),e.setSyntheticTrailingComments(ca,void 0)),e.setTextRange(ca,h),e.addEmitFlags(ca,Re),Ee.push(ca),Ee.push(Q.createEndOfDeclarationMarker(h)),Ee}function Yi(h,Ee){var Re=x,nr=M,Gr=Y;x=Ee,M=h,Y=void 0;var _i=[];F();var Ei,Ki;if(h.body)if(h.body.kind===261)P(h.body,function(Ta){return e.addRange(_i,e.visitNodes(Ta.statements,U,e.isStatement))}),Ei=h.body.statements,Ki=h.body;else{var Nt=Hi(h.body);Nt&&(e.isArray(Nt)?e.addRange(_i,Nt):_i.push(Nt));var ca=yt(h).body;Ei=e.moveRangePos(ca.statements,-1)}e.insertStatementsAfterStandardPrologue(_i,S()),x=Re,M=nr,Y=Gr;var Fa=Q.createBlock(e.setTextRange(Q.createNodeArray(_i),Ei),!0);return e.setTextRange(Fa,Ki),(!h.body||h.body.kind!==261)&&e.setEmitFlags(Fa,e.getEmitFlags(Fa)|1536),Fa}function yt(h){if(h.body.kind===260){var Ee=yt(h.body);return Ee||h.body}}function gt(h){if(!h.importClause)return h;if(!h.importClause.isTypeOnly){var Ee=e.visitNode(h.importClause,oa,e.isImportClause);return Ee||p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2?Q.updateImportDeclaration(h,void 0,void 0,Ee,h.moduleSpecifier,h.assertClause):void 0}}function oa(h){e.Debug.assert(!h.isTypeOnly);var Ee=Ke(h)?h.name:void 0,Re=e.visitNode(h.namedBindings,Bt,e.isNamedImportBindings);return Ee||Re?Q.updateImportClause(h,!1,Ee,Re):void 0}function Bt(h){if(h.kind===267)return Ke(h)?h:void 0;var Ee=p.preserveValueImports&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),Re=e.visitNodes(h.elements,Pi,e.isImportSpecifier);return Ee||e.some(Re)?Q.updateNamedImports(h,Re):void 0}function Pi(h){return!h.isTypeOnly&&Ke(h)?h:void 0}function Oi(h){return se.isValueAliasDeclaration(h)?e.visitEachChild(h,l,N):void 0}function wi(h){if(!h.isTypeOnly){if(!h.exportClause||e.isNamespaceExport(h.exportClause))return h;var Ee=!!h.moduleSpecifier&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),Re=e.visitNode(h.exportClause,function(nr){return tt(nr,Ee)},e.isNamedExportBindings);return Re?Q.updateExportDeclaration(h,void 0,void 0,h.isTypeOnly,Re,h.moduleSpecifier,h.assertClause):void 0}}function Qr(h,Ee){var Re=e.visitNodes(h.elements,ta,e.isExportSpecifier);return Ee||e.some(Re)?Q.updateNamedExports(h,Re):void 0}function Ct(h){return Q.updateNamespaceExport(h,e.visitNode(h.name,l,e.isIdentifier))}function tt(h,Ee){return e.isNamespaceExport(h)?Ct(h):Qr(h,Ee)}function ta(h){return!h.isTypeOnly&&se.isValueAliasDeclaration(h)?h:void 0}function Xa(h){return Ke(h)||!e.isExternalModule(re)&&se.isTopLevelValueImportEqualsWithEntityName(h)}function on(h){if(!h.isTypeOnly){if(e.isExternalModuleImportEqualsDeclaration(h)){var Ee=Ke(h);return!Ee&&p.importsNotUsedAsValues===1?e.setOriginalNode(e.setTextRange(Q.createImportDeclaration(void 0,void 0,void 0,h.moduleReference.expression,void 0),h),h):Ee?e.visitEachChild(h,l,N):void 0}if(!!Xa(h)){var Re=e.createExpressionFromEntityName(Q,h.moduleReference);return e.setEmitFlags(Re,3584),Rn(h)||!qr(h)?e.setOriginalNode(e.setTextRange(Q.createVariableStatement(e.visitNodes(h.modifiers,ve,e.isModifier),Q.createVariableDeclarationList([e.setOriginalNode(Q.createVariableDeclaration(h.name,void 0,void 0,Re),h)])),h),h):e.setOriginalNode(ho(h.name,Re,h),h)}}}function qr(h){return M!==void 0&&e.hasSyntacticModifier(h,1)}function bn(h){return M===void 0&&e.hasSyntacticModifier(h,1)}function Rn(h){return bn(h)&&!e.hasSyntacticModifier(h,512)}function Sn(h){return bn(h)&&e.hasSyntacticModifier(h,512)}function zn(h){return Q.createExpressionStatement(h)}function Zn(h,Ee){var Re=Q.createAssignment(Q.getExternalModuleOrNamespaceExportName(x,Ee,!1,!0),Q.getLocalName(Ee));e.setSourceMapRange(Re,e.createRange(Ee.name?Ee.name.pos:Ee.pos,Ee.end));var nr=Q.createExpressionStatement(Re);e.setSourceMapRange(nr,e.createRange(-1,Ee.end)),h.push(nr)}function ho(h,Ee,Re){return e.setTextRange(Q.createExpressionStatement(Q.createAssignment(Q.getNamespaceMemberName(x,h,!1,!0),Ee)),Re)}function Vo(h,Ee,Re){return e.setTextRange(Q.createAssignment(Cn(h),Ee),Re)}function Cn(h){return Q.getNamespaceMemberName(x,h,!1,!0)}function go(h){var Ee=Q.getGeneratedNameForNode(h);return e.setSourceMapRange(Ee,h.name),Ee}function ro(h){return Q.getGeneratedNameForNode(h)}function Ko(h){if(se.getNodeCheckFlags(h)&16777216){io();var Ee=Q.createUniqueName(h.name&&!e.isGeneratedIdentifier(h.name)?e.idText(h.name):"default");return I[e.getOriginalNodeId(h)]=Ee,H(Ee),Ee}}function rs(h){return Q.createPropertyAccessExpression(Q.getDeclarationName(h),"prototype")}function rn(h,Ee){return e.isStatic(Ee)?Q.getDeclarationName(h):rs(h)}function Do(){(k&8)===0&&(k|=8,N.enableSubstitution(79))}function io(){(k&1)===0&&(k|=1,N.enableSubstitution(79),I=[])}function pn(){(k&2)===0&&(k|=2,N.enableSubstitution(79),N.enableSubstitution(295),N.enableEmitNotification(260))}function Qn(h){return e.getOriginalNode(h).kind===260}function wo(h){return e.getOriginalNode(h).kind===259}function xo(h,Ee,Re){var nr=ne,Gr=re;e.isSourceFile(Ee)&&(re=Ee),k&2&&Qn(Ee)&&(ne|=2),k&8&&wo(Ee)&&(ne|=8),ue(h,Ee,Re),ne=nr,re=Gr}function ds(h,Ee){return Ee=B(h,Ee),h===1?Ts(Ee):e.isShorthandPropertyAssignment(Ee)?No(Ee):Ee}function No(h){if(k&2){var Ee=h.name,Re=bi(Ee);if(Re){if(h.objectAssignmentInitializer){var nr=Q.createAssignment(Re,h.objectAssignmentInitializer);return e.setTextRange(Q.createPropertyAssignment(Ee,nr),h)}return e.setTextRange(Q.createPropertyAssignment(Ee,Re),h)}}return h}function Ts(h){switch(h.kind){case 79:return Ms(h);case 205:return ut(h);case 206:return Ht(h)}return h}function Ms(h){return xr(h)||bi(h)||h}function xr(h){if(k&1&&se.getNodeCheckFlags(h)&33554432){var Ee=se.getReferencedValueDeclaration(h);if(Ee){var Re=I[Ee.id];if(Re){var nr=Q.cloneNode(Re);return e.setSourceMapRange(nr,h),e.setCommentRange(nr,h),nr}}}}function bi(h){if(k&ne&&!e.isGeneratedIdentifier(h)&&!e.isLocalName(h)){var Ee=se.getReferencedExportContainer(h,!1);if(Ee&&Ee.kind!==303){var Re=ne&2&&Ee.kind===260||ne&8&&Ee.kind===259;if(Re)return e.setTextRange(Q.createPropertyAccessExpression(Q.getGeneratedNameForNode(Ee),h),h)}}}function ut(h){return Ka(h)}function Ht(h){return Ka(h)}function Ka(h){var Ee=an(h);if(Ee!==void 0){e.setConstantValue(h,Ee);var Re=typeof Ee=="string"?Q.createStringLiteral(Ee):Q.createNumericLiteral(Ee);if(!p.removeComments){var nr=e.getOriginalNode(h,e.isAccessExpression),Gr=e.isPropertyAccessExpression(nr)?e.declarationNameToString(nr.name):e.getTextOfNode(nr.argumentExpression);e.addSyntheticTrailingComment(Re,3," ".concat(Gr," "))}return Re}return h}function an(h){if(!p.isolatedModules)return e.isPropertyAccessExpression(h)||e.isElementAccessExpression(h)?se.getConstantValue(h):void 0}function Ke(h){return p.preserveValueImports?se.isValueAliasDeclaration(h):se.isReferencedAliasDeclaration(h)}}e.transformTypeScript=W})(Pe||(Pe={}));var Pe;(function(e){var a;(function(g){g[g.ClassAliases=1]="ClassAliases",g[g.ClassStaticThisOrSuperReference=2]="ClassStaticThisOrSuperReference"})(a||(a={}));var O;(function(g){g.Field="f",g.Method="m",g.Accessor="a"})(O=e.PrivateIdentifierKind||(e.PrivateIdentifierKind={}));var L;(function(g){g[g.None=0]="None",g[g.ClassWasDecorated=1]="ClassWasDecorated",g[g.NeedsClassConstructorReference=2]="NeedsClassConstructorReference",g[g.NeedsClassSuperReference=4]="NeedsClassSuperReference",g[g.NeedsSubstitutionForThisInClassStaticField=8]="NeedsSubstitutionForThisInClassStaticField"})(L||(L={}));function W(g){var S=g.factory,H=g.hoistVariableDeclaration,se=g.endLexicalEnvironment,p=g.startLexicalEnvironment,C=g.resumeLexicalEnvironment,G=g.addBlockScopedVariable,E=g.getEmitResolver(),ue=g.getCompilerOptions(),B=e.getEmitScriptTarget(ue),re=e.getUseDefineForClassFields(ue),M=B<9,x=B<9,ie=x&&B>=2,_e=g.onSubstituteNode;g.onSubstituteNode=Kr;var Y=g.onEmitNode;g.onEmitNode=or;var Z,k,I,ne,ee=[],A=new e.Map,f,P,D;return e.chainBundle(g,l);function l(v){var xe=g.getCompilerOptions();if(v.isDeclarationFile||re&&e.getEmitScriptTarget(xe)>=9)return v;var ze=e.visitEachChild(v,w,g);return e.addEmitHelpers(ze,g.readEmitHelpers()),ze}function _(v,xe){if(v.transformFlags&8388608)switch(v.kind){case 225:case 256:return Se(v);case 166:return ae(v);case 236:return ve(v);case 80:return z(v);case 169:return Br(v)}if(v.transformFlags&8388608||v.transformFlags&33554432&&ie&&D&&f)switch(v.kind){case 218:case 219:return He(v,xe);case 220:return we(v,xe);case 207:return Ge(v);case 209:return er(v);case 205:return ke(v);case 206:return Ue(v);case 237:return gr(v);case 241:return ar(v);case 255:case 212:case 170:case 168:case 171:case 172:{var ze=D;D=void 0;var Je=e.visitEachChild(v,w,g);return D=ze,Je}}return e.visitEachChild(v,w,g)}function J(v){return _(v,!0)}function w(v){return _(v,!1)}function j(v){switch(v.kind){case 290:return e.visitEachChild(v,j,g);case 227:return ur(v)}return w(v)}function U(v){switch(v.kind){case 204:case 203:return Me(v);default:return w(v)}}function z(v){return!M||e.isStatement(v.parent)?v:e.setOriginalNode(S.createIdentifier(""),v)}function y(v){if(!M)return v;var xe=v.left;e.Debug.assertNode(xe,e.isPrivateIdentifier),e.Debug.assert(v.operatorToken.kind===101);var ze=Qe(xe);if(ze){var Je=e.visitNode(v.right,w,e.isExpression);return e.setOriginalNode(g.getEmitHelperFactory().createClassPrivateFieldInHelper(ze.brandCheckIdentifier,Je),v)}return e.visitEachChild(v,w,g)}function oe(v){switch(v.kind){case 170:return;case 171:case 172:case 168:return m(v);case 166:return ae(v);case 161:return ce(v);case 233:return v;default:return w(v)}}function ve(v){var xe=ne;ne=[];var ze=e.visitEachChild(v,w,g),Je=e.some(ne)?qe([ze],ne,!0):ze;return ne=xe,Je}function ce(v){var xe=e.visitEachChild(v,w,g);if(e.some(I)){var ze=I;ze.push(xe.expression),I=[],xe=S.updateComputedPropertyName(xe,S.inlineExpressions(ze))}return xe}function m(v){if(e.Debug.assert(!e.some(v.decorators)),!M||!e.isPrivateIdentifier(v.name))return e.visitEachChild(v,oe,g);var xe=Qe(v.name);if(e.Debug.assert(xe,"Undeclared private name for property declaration."),!xe.isValid)return v;var ze=de(v);ze&&di().push(S.createAssignment(ze,S.createFunctionExpression(e.filter(v.modifiers,function(Je){return!e.isStaticModifier(Je)}),v.asteriskToken,ze,void 0,e.visitParameterList(v.parameters,oe,g),void 0,e.visitFunctionBody(v.body,oe,g))))}function de(v){e.Debug.assert(e.isPrivateIdentifier(v.name));var xe=Qe(v.name);if(e.Debug.assert(xe,"Undeclared private name for property declaration."),xe.kind==="m")return xe.methodName;if(xe.kind==="a"){if(e.isGetAccessor(v))return xe.getterName;if(e.isSetAccessor(v))return xe.setterName}}function ae(v){if(e.Debug.assert(!e.some(v.decorators)),e.isPrivateIdentifier(v.name)){if(!M)return e.isStatic(v)?e.visitEachChild(v,w,g):S.updatePropertyDeclaration(v,void 0,e.visitNodes(v.modifiers,w,e.isModifier),v.name,void 0,void 0,void 0);var xe=Qe(v.name);if(e.Debug.assert(xe,"Undeclared private name for property declaration."),!xe.isValid)return v}var ze=ft(v.name,!!v.initializer||re);if(ze&&!e.isSimpleInlineableExpression(ze)&&di().push(ze),e.isStatic(v)&&!M&&!re){var Je=Le(v,S.createThis());if(Je){var Oe=S.createClassStaticBlockDeclaration(void 0,void 0,S.createBlock([Je]));return e.setOriginalNode(Oe,v),e.setCommentRange(Oe,v),e.setCommentRange(Je,{pos:-1,end:-1}),e.setSyntheticLeadingComments(Je,void 0),e.setSyntheticTrailingComments(Je,void 0),Oe}}}function V(v,xe){return le(v,e.visitNode(xe,w,e.isExpression))}function le(v,xe){switch(e.setCommentRange(xe,e.moveRangePos(xe,-1)),v.kind){case"a":return g.getEmitHelperFactory().createClassPrivateFieldGetHelper(xe,v.brandCheckIdentifier,v.kind,v.getterName);case"m":return g.getEmitHelperFactory().createClassPrivateFieldGetHelper(xe,v.brandCheckIdentifier,v.kind,v.methodName);case"f":return g.getEmitHelperFactory().createClassPrivateFieldGetHelper(xe,v.brandCheckIdentifier,v.kind,v.variableName);default:e.Debug.assertNever(v,"Unknown private element type")}}function ke(v){if(M&&e.isPrivateIdentifier(v.name)){var xe=Qe(v.name);if(xe)return e.setTextRange(e.setOriginalNode(V(xe,v.expression),v),v)}if(ie&&e.isSuperProperty(v)&&e.isIdentifier(v.name)&&D&&f){var ze=f.classConstructor,Je=f.superClassReference,Oe=f.facts;if(Oe&1)return be(v);if(ze&&Je){var Fr=S.createReflectGetCall(Je,S.createStringLiteralFromNode(v.name),ze);return e.setOriginalNode(Fr,v.expression),e.setTextRange(Fr,v.expression),Fr}}return e.visitEachChild(v,w,g)}function Ue(v){if(ie&&e.isSuperProperty(v)&&D&&f){var xe=f.classConstructor,ze=f.superClassReference,Je=f.facts;if(Je&1)return be(v);if(xe&&ze){var Oe=S.createReflectGetCall(ze,e.visitNode(v.argumentExpression,w,e.isExpression),xe);return e.setOriginalNode(Oe,v.expression),e.setTextRange(Oe,v.expression),Oe}}return e.visitEachChild(v,w,g)}function He(v,xe){if(v.operator===45||v.operator===46){if(M&&e.isPrivateIdentifierPropertyAccessExpression(v.operand)){var ze=void 0;if(ze=Qe(v.operand.name)){var Je=e.visitNode(v.operand.expression,w,e.isExpression),Oe=me(Je),Fr=Oe.readExpression,Xr=Oe.initializeExpression,Or=V(ze,Fr),We=e.isPrefixUnaryExpression(v)||xe?void 0:S.createTempVariable(H);return Or=e.expandPreOrPostfixIncrementOrDecrementExpression(S,v,Or,H,We),Or=ye(ze,Xr||Fr,Or,63),e.setOriginalNode(Or,v),e.setTextRange(Or,v),We&&(Or=S.createComma(Or,We),e.setTextRange(Or,v)),Or}}else if(ie&&e.isSuperProperty(v.operand)&&D&&f){var mr=f.classConstructor,Nr=f.superClassReference,Ur=f.facts;if(Ur&1){var si=be(v.operand);return e.isPrefixUnaryExpression(v)?S.updatePrefixUnaryExpression(v,si):S.updatePostfixUnaryExpression(v,si)}if(mr&&Nr){var mi=void 0,Ti=void 0;if(e.isPropertyAccessExpression(v.operand)?e.isIdentifier(v.operand.name)&&(Ti=mi=S.createStringLiteralFromNode(v.operand.name)):e.isSimpleInlineableExpression(v.operand.argumentExpression)?Ti=mi=v.operand.argumentExpression:(Ti=S.createTempVariable(H),mi=S.createAssignment(Ti,e.visitNode(v.operand.argumentExpression,w,e.isExpression))),mi&&Ti){var Or=S.createReflectGetCall(Nr,Ti,mr);e.setTextRange(Or,v.operand);var We=xe?void 0:S.createTempVariable(H);return Or=e.expandPreOrPostfixIncrementOrDecrementExpression(S,v,Or,H,We),Or=S.createReflectSetCall(Nr,mi,Or,mr),e.setOriginalNode(Or,v),e.setTextRange(Or,v),We&&(Or=S.createComma(Or,We),e.setTextRange(Or,v)),Or}}}}return e.visitEachChild(v,w,g)}function ar(v){return S.updateForStatement(v,e.visitNode(v.initializer,J,e.isForInitializer),e.visitNode(v.condition,w,e.isExpression),e.visitNode(v.incrementor,J,e.isExpression),e.visitIterationBody(v.statement,w,g))}function gr(v){return S.updateExpressionStatement(v,e.visitNode(v.expression,J,e.isExpression))}function me(v){var xe=e.nodeIsSynthesized(v)?v:S.cloneNode(v);if(e.isSimpleInlineableExpression(v))return{readExpression:xe,initializeExpression:void 0};var ze=S.createTempVariable(H),Je=S.createAssignment(ze,xe);return{readExpression:ze,initializeExpression:Je}}function Ge(v){if(M&&e.isPrivateIdentifierPropertyAccessExpression(v.expression)){var xe=S.createCallBinding(v.expression,H,B),ze=xe.thisArg,Je=xe.target;return e.isCallChain(v)?S.updateCallChain(v,S.createPropertyAccessChain(e.visitNode(Je,w),v.questionDotToken,"call"),void 0,void 0,qe([e.visitNode(ze,w,e.isExpression)],e.visitNodes(v.arguments,w,e.isExpression),!0)):S.updateCallExpression(v,S.createPropertyAccessExpression(e.visitNode(Je,w),"call"),void 0,qe([e.visitNode(ze,w,e.isExpression)],e.visitNodes(v.arguments,w,e.isExpression),!0))}if(ie&&e.isSuperProperty(v.expression)&&D&&(f==null?void 0:f.classConstructor)){var Oe=S.createFunctionCallCall(e.visitNode(v.expression,w,e.isExpression),f.classConstructor,e.visitNodes(v.arguments,w,e.isExpression));return e.setOriginalNode(Oe,v),e.setTextRange(Oe,v),Oe}return e.visitEachChild(v,w,g)}function er(v){if(M&&e.isPrivateIdentifierPropertyAccessExpression(v.tag)){var xe=S.createCallBinding(v.tag,H,B),ze=xe.thisArg,Je=xe.target;return S.updateTaggedTemplateExpression(v,S.createCallExpression(S.createPropertyAccessExpression(e.visitNode(Je,w),"bind"),void 0,[e.visitNode(ze,w,e.isExpression)]),void 0,e.visitNode(v.template,w,e.isTemplateLiteral))}if(ie&&e.isSuperProperty(v.tag)&&D&&(f==null?void 0:f.classConstructor)){var Oe=S.createFunctionBindCall(e.visitNode(v.tag,w,e.isExpression),f.classConstructor,[]);return e.setOriginalNode(Oe,v),e.setTextRange(Oe,v),S.updateTaggedTemplateExpression(v,Oe,void 0,e.visitNode(v.template,w,e.isTemplateLiteral))}return e.visitEachChild(v,w,g)}function he(v){if(M){f&&A.set(e.getOriginalNodeId(v),f),p();var xe=D;D=v;var ze=e.visitNodes(v.body.statements,w,e.isStatement);ze=S.mergeLexicalEnvironment(ze,se()),D=xe;var Je=S.createImmediatelyInvokedArrowFunction(ze);return e.setOriginalNode(Je,v),e.setTextRange(Je,v),e.addEmitFlags(Je,2),Je}}function we(v,xe){if(e.isDestructuringAssignment(v)){var ze=I;I=void 0,v=S.updateBinaryExpression(v,e.visitNode(v.left,U),v.operatorToken,e.visitNode(v.right,w));var Je=e.some(I)?S.inlineExpressions(e.compact(qe(qe([],I,!0),[v],!1))):v;return I=ze,Je}if(e.isAssignmentExpression(v)){if(M&&e.isPrivateIdentifierPropertyAccessExpression(v.left)){var Oe=Qe(v.left.name);if(Oe)return e.setTextRange(e.setOriginalNode(ye(Oe,v.left.expression,v.right,v.operatorToken.kind),v),v)}else if(ie&&e.isSuperProperty(v.left)&&D&&f){var Fr=f.classConstructor,Xr=f.superClassReference,Or=f.facts;if(Or&1)return S.updateBinaryExpression(v,be(v.left),v.operatorToken,e.visitNode(v.right,w,e.isExpression));if(Fr&&Xr){var We=e.isElementAccessExpression(v.left)?e.visitNode(v.left.argumentExpression,w,e.isExpression):e.isIdentifier(v.left.name)?S.createStringLiteralFromNode(v.left.name):void 0;if(We){var mr=e.visitNode(v.right,w,e.isExpression);if(e.isCompoundAssignment(v.operatorToken.kind)){var Nr=We;e.isSimpleInlineableExpression(We)||(Nr=S.createTempVariable(H),We=S.createAssignment(Nr,We));var Ur=S.createReflectGetCall(Xr,Nr,Fr);e.setOriginalNode(Ur,v.left),e.setTextRange(Ur,v.left),mr=S.createBinaryExpression(Ur,e.getNonAssignmentOperatorForCompoundAssignment(v.operatorToken.kind),mr),e.setTextRange(mr,v)}var si=xe?void 0:S.createTempVariable(H);return si&&(mr=S.createAssignment(si,mr),e.setTextRange(si,v)),mr=S.createReflectSetCall(Xr,We,mr,Fr),e.setOriginalNode(mr,v),e.setTextRange(mr,v),si&&(mr=S.createComma(mr,si),e.setTextRange(mr,v)),mr}}}}return v.operatorToken.kind===101&&e.isPrivateIdentifier(v.left)?y(v):e.visitEachChild(v,w,g)}function ye(v,xe,ze,Je){if(xe=e.visitNode(xe,w,e.isExpression),ze=e.visitNode(ze,w,e.isExpression),e.isCompoundAssignment(Je)){var Oe=me(xe),Fr=Oe.readExpression,Xr=Oe.initializeExpression;xe=Xr||Fr,ze=S.createBinaryExpression(le(v,Fr),e.getNonAssignmentOperatorForCompoundAssignment(Je),ze)}switch(e.setCommentRange(xe,e.moveRangePos(xe,-1)),v.kind){case"a":return g.getEmitHelperFactory().createClassPrivateFieldSetHelper(xe,v.brandCheckIdentifier,ze,v.kind,v.setterName);case"m":return g.getEmitHelperFactory().createClassPrivateFieldSetHelper(xe,v.brandCheckIdentifier,ze,v.kind,void 0);case"f":return g.getEmitHelperFactory().createClassPrivateFieldSetHelper(xe,v.brandCheckIdentifier,ze,v.kind,v.variableName);default:e.Debug.assertNever(v,"Unknown private element type")}}function Se(v){if(!e.forEach(v.members,ge))return e.visitEachChild(v,w,g);var xe=I;if(I=void 0,bt(),M){var ze=e.getNameOfDeclaration(v);ze&&e.isIdentifier(ze)&&(Ji().className=e.idText(ze));var Je=Fe(v);e.some(Je)&&(Ji().weakSetName=Ye("instances",Je[0].name))}var Oe=e.isClassDeclaration(v)?Ir(v):dr(v);return aa(),I=xe,Oe}function ge(v){return e.isPropertyDeclaration(v)||e.isClassStaticBlockDeclaration(v)||M&&v.name&&e.isPrivateIdentifier(v.name)}function Fe(v){return e.filter(v.members,e.isNonStaticMethodOrAccessorWithPrivateName)}function cr(v){var xe=0,ze=e.getOriginalNode(v);e.isClassDeclaration(ze)&&e.classOrConstructorParameterIsDecorated(ze)&&(xe|=1);for(var Je=0,Oe=v.members;Je<Oe.length;Je++){var Fr=Oe[Je];!e.isStatic(Fr)||(Fr.name&&e.isPrivateIdentifier(Fr.name)&&M&&(xe|=2),(e.isPropertyDeclaration(Fr)||e.isClassStaticBlockDeclaration(Fr))&&(x&&Fr.transformFlags&8192&&(xe|=8,xe&1||(xe|=2)),ie&&Fr.transformFlags&33554432&&(xe&1||(xe|=6))))}return xe}function ur(v){var xe=(f==null?void 0:f.facts)||0;if(xe&4){var ze=S.createTempVariable(H,!0);return sr().superClassReference=ze,S.updateExpressionWithTypeArguments(v,S.createAssignment(ze,e.visitNode(v.expression,w,e.isExpression)),void 0)}return e.visitEachChild(v,w,g)}function Ir(v){var xe=cr(v);xe&&(sr().facts=xe),xe&8&&Rr();var ze;if(xe&2){var Je=S.createTempVariable(H,!0);sr().classConstructor=S.cloneNode(Je),ze=S.createAssignment(Je,S.getInternalName(v))}var Oe=e.getEffectiveBaseTypeNode(v),Fr=!!(Oe&&e.skipOuterExpressions(Oe.expression).kind!==104),Xr=[S.updateClassDeclaration(v,void 0,v.modifiers,v.name,void 0,e.visitNodes(v.heritageClauses,j,e.isHeritageClause),Tr(v,Fr))];ze&&di().unshift(ze),e.some(I)&&Xr.push(S.createExpressionStatement(S.inlineExpressions(I)));var Or=e.getStaticPropertiesAndClassStaticBlock(v);return e.some(Or)&&Ce(Xr,Or,S.getInternalName(v)),Xr}function dr(v){var xe=cr(v);xe&&(sr().facts=xe),xe&8&&Rr();var ze=!!(xe&1),Je=e.getStaticPropertiesAndClassStaticBlock(v),Oe=e.getEffectiveBaseTypeNode(v),Fr=!!(Oe&&e.skipOuterExpressions(Oe.expression).kind!==104),Xr=E.getNodeCheckFlags(v)&16777216,Or;function We(){var mi=E.getNodeCheckFlags(v),Ti=mi&16777216,hi=mi&524288;return S.createTempVariable(hi?G:H,!!Ti)}xe&2&&(Or=We(),sr().classConstructor=S.cloneNode(Or));var mr=S.updateClassExpression(v,e.visitNodes(v.decorators,w,e.isDecorator),v.modifiers,v.name,void 0,e.visitNodes(v.heritageClauses,j,e.isHeritageClause),Tr(v,Fr)),Nr=M&&e.some(Je,function(mi){return e.isClassStaticBlockDeclaration(mi)||!!mi.initializer||e.isPrivateIdentifier(mi.name)});if(Nr||e.some(I)){if(ze)return e.Debug.assertIsDefined(ne,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),ne&&I&&e.some(I)&&ne.push(S.createExpressionStatement(S.inlineExpressions(I))),ne&&e.some(Je)&&Ce(ne,Je,S.getInternalName(v)),Or?S.inlineExpressions([S.createAssignment(Or,mr),Or]):mr;var Ur=[];if(Or||(Or=We()),Xr){Jr();var si=S.cloneNode(Or);si.autoGenerateFlags&=-9,k[e.getOriginalNodeId(v)]=si}return e.setEmitFlags(mr,65536|e.getEmitFlags(mr)),Ur.push(e.startOnNewLine(S.createAssignment(Or,mr))),e.addRange(Ur,e.map(I,e.startOnNewLine)),e.addRange(Ur,Xe(Je,Or)),Ur.push(e.startOnNewLine(Or)),S.inlineExpressions(Ur)}return mr}function Br(v){if(!M)return e.visitEachChild(v,oe,g)}function Tr(v,xe){var ze=[];if(M){for(var Je=0,Oe=v.members;Je<Oe.length;Je++){var Fr=Oe[Je];e.isPrivateIdentifierClassElementDeclaration(Fr)&&X(Fr)}e.some(Fe(v))&&n()}var Xr=br(v,xe),Or=e.visitNodes(v.members,oe,e.isClassElement);return Xr&&ze.push(Xr),!M&&e.some(I)&&(ze.push(S.createClassStaticBlockDeclaration(void 0,void 0,S.createBlock([S.createExpressionStatement(S.inlineExpressions(I))]))),I=void 0),e.addRange(ze,Or),e.setTextRange(S.createNodeArray(ze),v.members)}function n(){var v=Ji().weakSetName;e.Debug.assert(v,"weakSetName should be set in private identifier environment"),di().push(S.createAssignment(v,S.createNewExpression(S.createIdentifier("WeakSet"),void 0,[])))}function Er(v){return e.isStatic(v)||e.hasSyntacticModifier(e.getOriginalNode(v),128)?!1:re?B<9:e.isInitializedProperty(v)||M&&e.isPrivateIdentifierClassElementDeclaration(v)}function br(v,xe){var ze=e.visitNode(e.getFirstConstructorWithBody(v),w,e.isConstructorDeclaration),Je=v.members.filter(Er);if(!e.some(Je))return ze;var Oe=e.visitParameterList(ze?ze.parameters:void 0,w,g),Fr=Pr(v,ze,xe);if(!!Fr)return e.startOnNewLine(e.setOriginalNode(e.setTextRange(S.createConstructorDeclaration(void 0,void 0,Oe!=null?Oe:[],Fr),ze||v),ze))}function Pr(v,xe,ze){var Je,Oe=e.getProperties(v,!1,!1);re||(Oe=e.filter(Oe,function(ri){return!!ri.initializer||e.isPrivateIdentifier(ri.name)}));var Fr=Fe(v),Xr=e.some(Oe)||e.some(Fr);if(!xe&&!Xr)return e.visitFunctionBody(void 0,w,g);C();var Or=!xe&&ze,We=0,mr=0,Nr=-1,Ur=[];!((Je=xe==null?void 0:xe.body)===null||Je===void 0)&&Je.statements&&(mr=S.copyPrologue(xe.body.statements,Ur,!1,w),Nr=e.findSuperStatementIndex(xe.body.statements,mr),Nr>=0&&(We=Nr+1,Ur=qe(qe(qe([],Ur.slice(0,mr),!0),e.visitNodes(xe.body.statements,w,e.isStatement,mr,We-mr),!0),Ur.slice(mr),!0))),Or&&Ur.push(S.createExpressionStatement(S.createCallExpression(S.createSuper(),void 0,[S.createSpreadElement(S.createIdentifier("arguments"))])));var si=0;if(xe!=null&&xe.body)if(re)Ur=Ur.filter(function(ri){return!e.isParameterPropertyDeclaration(e.getOriginalNode(ri),xe)});else{for(var mi=0,Ti=xe.body.statements;mi<Ti.length;mi++){var hi=Ti[mi];e.isParameterPropertyDeclaration(e.getOriginalNode(hi),xe)&&si++}if(si>0){var ki=e.visitNodes(xe.body.statements,w,e.isStatement,We,si);Nr>=0?e.addRange(Ur,ki):Or?Ur=qe(qe([Ur[0]],ki,!0),Ur.slice(1),!0):Ur=qe(qe([],ki,!0),Ur,!0),We+=si}}var Ui=S.createThis();return ci(Ur,Fr,Ui),Ce(Ur,Oe,Ui),xe&&e.addRange(Ur,e.visitNodes(xe.body.statements,zi,e.isStatement,We+mr)),Ur=S.mergeLexicalEnvironment(Ur,se()),e.setTextRange(S.createBlock(e.setTextRange(S.createNodeArray(Ur),xe?xe.body.statements:v.members),!0),xe?xe.body:void 0);function zi(ri){if(!(re&&e.isParameterPropertyDeclaration(e.getOriginalNode(ri),xe)))return w(ri)}}function Ce(v,xe,ze){for(var Je=0,Oe=xe;Je<Oe.length;Je++){var Fr=Oe[Je];if(!(e.isStatic(Fr)&&!M&&!re)){var Xr=Le(Fr,ze);!Xr||v.push(Xr)}}}function Le(v,xe){var ze=e.isClassStaticBlockDeclaration(v)?he(v):Cr(v,xe);if(!!ze){var Je=S.createExpressionStatement(ze);return e.setSourceMapRange(Je,e.moveRangePastModifiers(v)),e.setCommentRange(Je,v),e.setOriginalNode(Je,v),e.setSyntheticLeadingComments(ze,void 0),e.setSyntheticTrailingComments(ze,void 0),Je}}function Xe(v,xe){for(var ze=[],Je=0,Oe=v;Je<Oe.length;Je++){var Fr=Oe[Je],Xr=e.isClassStaticBlockDeclaration(Fr)?he(Fr):Cr(Fr,xe);!Xr||(e.startOnNewLine(Xr),e.setSourceMapRange(Xr,e.moveRangePastModifiers(Fr)),e.setCommentRange(Xr,Fr),e.setOriginalNode(Xr,Fr),ze.push(Xr))}return ze}function Cr(v,xe){var ze=D,Je=Lr(v,xe);return Je&&e.hasStaticModifier(v)&&(f==null?void 0:f.facts)&&(e.setOriginalNode(Je,v),e.addEmitFlags(Je,2),A.set(e.getOriginalNodeId(Je),f)),D=ze,Je}function Lr(v,xe){var ze,Je=!re,Oe=e.isComputedPropertyName(v.name)&&!e.isSimpleInlineableExpression(v.name.expression)?S.updateComputedPropertyName(v.name,S.getGeneratedNameForNode(v.name)):v.name;if(e.hasStaticModifier(v)&&(D=v),M&&e.isPrivateIdentifier(Oe)){var Fr=Qe(Oe);if(Fr)return Fr.kind==="f"?Fr.isStatic?N(Fr.variableName,e.visitNode(v.initializer,w,e.isExpression)):Q(xe,e.visitNode(v.initializer,w,e.isExpression),Fr.brandCheckIdentifier):void 0;e.Debug.fail("Undeclared private name for property declaration.")}if(!((e.isPrivateIdentifier(Oe)||e.hasStaticModifier(v))&&!v.initializer)){var Xr=e.getOriginalNode(v);if(!e.hasSyntacticModifier(Xr,128)){var Or=v.initializer||Je?(ze=e.visitNode(v.initializer,w,e.isExpression))!==null&&ze!==void 0?ze:S.createVoidZero():e.isParameterPropertyDeclaration(Xr,Xr.parent)&&e.isIdentifier(Oe)?Oe:S.createVoidZero();if(Je||e.isPrivateIdentifier(Oe)){var We=e.createMemberAccessForPropertyName(S,xe,Oe,Oe);return S.createAssignment(We,Or)}else{var mr=e.isComputedPropertyName(Oe)?Oe.expression:e.isIdentifier(Oe)?S.createStringLiteral(e.unescapeLeadingUnderscores(Oe.escapedText)):Oe,Nr=S.createPropertyDescriptor({value:Or,configurable:!0,writable:!0,enumerable:!0});return S.createObjectDefinePropertyCall(xe,mr,Nr)}}}}function Jr(){(Z&1)===0&&(Z|=1,g.enableSubstitution(79),k=[])}function Rr(){(Z&2)===0&&(Z|=2,g.enableSubstitution(108),g.enableEmitNotification(255),g.enableEmitNotification(212),g.enableEmitNotification(170),g.enableEmitNotification(171),g.enableEmitNotification(172),g.enableEmitNotification(168),g.enableEmitNotification(166),g.enableEmitNotification(161))}function ci(v,xe,ze){if(!(!M||!e.some(xe))){var Je=Ji().weakSetName;e.Debug.assert(Je,"weakSetName should be set in private identifier environment"),v.push(S.createExpressionStatement(pe(ze,Je)))}}function be(v){return e.isPropertyAccessExpression(v)?S.updatePropertyAccessExpression(v,S.createVoidZero(),v.name):S.updateElementAccessExpression(v,S.createVoidZero(),e.visitNode(v.argumentExpression,w,e.isExpression))}function or(v,xe,ze){var Je=e.getOriginalNode(xe);if(Je.id){var Oe=A.get(Je.id);if(Oe){var Fr=f,Xr=P;f=Oe,P=Oe,Y(v,xe,ze),f=Fr,P=Xr;return}}switch(xe.kind){case 212:if(e.isArrowFunction(Je)||e.getEmitFlags(xe)&262144)break;case 255:case 170:{var Fr=f,Xr=P;f=void 0,P=void 0,Y(v,xe,ze),f=Fr,P=Xr;return}case 171:case 172:case 168:case 166:{var Fr=f,Xr=P;P=f,f=void 0,Y(v,xe,ze),f=Fr,P=Xr;return}case 161:{var Fr=f,Xr=P;f=P,P=void 0,Y(v,xe,ze),f=Fr,P=Xr;return}}Y(v,xe,ze)}function Kr(v,xe){return xe=_e(v,xe),v===1?ei(xe):xe}function ei(v){switch(v.kind){case 79:return Si(v);case 108:return li(v)}return v}function li(v){if(Z&2&&f){var xe=f.facts,ze=f.classConstructor;if(xe&1)return S.createParenthesizedExpression(S.createVoidZero());if(ze)return e.setTextRange(e.setOriginalNode(S.cloneNode(ze),v),v)}return v}function Si(v){return qi(v)||v}function qi(v){if(Z&1&&E.getNodeCheckFlags(v)&33554432){var xe=E.getReferencedValueDeclaration(v);if(xe){var ze=k[xe.id];if(ze){var Je=S.cloneNode(ze);return e.setSourceMapRange(Je,v),e.setCommentRange(Je,v),Je}}}}function ft(v,xe){if(e.isComputedPropertyName(v)){var ze=e.visitNode(v.expression,w,e.isExpression),Je=e.skipPartiallyEmittedExpressions(ze),Oe=e.isSimpleInlineableExpression(Je),Fr=e.isAssignmentExpression(Je)&&e.isGeneratedIdentifier(Je.left);if(!Fr&&!Oe&&xe){var Xr=S.getGeneratedNameForNode(v);return E.getNodeCheckFlags(v)&524288?G(Xr):H(Xr),S.createAssignment(Xr,ze)}return Oe||e.isIdentifier(Je)?void 0:ze}}function bt(){ee.push(f),f=void 0}function aa(){f=ee.pop()}function sr(){return f||(f={facts:0,classConstructor:void 0,superClassReference:void 0,privateIdentifierEnvironment:void 0})}function Ji(){var v=sr();return v.privateIdentifierEnvironment||(v.privateIdentifierEnvironment={className:"",identifiers:new e.Map}),v.privateIdentifierEnvironment}function di(){return I||(I=[])}function X(v){var xe,ze=e.getTextOfPropertyName(v.name),Je=sr(),Oe=Je.classConstructor,Fr=Ji(),Xr=Fr.weakSetName,Or=[],We=v.name.escapedText,mr=Fr.identifiers.get(We),Nr=!F(v.name)&&mr===void 0;if(e.hasStaticModifier(v))if(e.Debug.assert(Oe,"weakSetName should be set in private identifier environment"),e.isPropertyDeclaration(v)){var Ur=Be(ze,v);Fr.identifiers.set(We,{kind:"f",variableName:Ur,brandCheckIdentifier:Oe,isStatic:!0,isValid:Nr})}else if(e.isMethodDeclaration(v)){var si=Be(ze,v);Fr.identifiers.set(We,{kind:"m",methodName:si,brandCheckIdentifier:Oe,isStatic:!0,isValid:Nr})}else if(e.isGetAccessorDeclaration(v)){var mi=Be(ze+"_get",v);(mr==null?void 0:mr.kind)==="a"&&mr.isStatic&&!mr.getterName?mr.getterName=mi:Fr.identifiers.set(We,{kind:"a",getterName:mi,setterName:void 0,brandCheckIdentifier:Oe,isStatic:!0,isValid:Nr})}else if(e.isSetAccessorDeclaration(v)){var Ti=Be(ze+"_set",v);(mr==null?void 0:mr.kind)==="a"&&mr.isStatic&&!mr.setterName?mr.setterName=Ti:Fr.identifiers.set(We,{kind:"a",getterName:void 0,setterName:Ti,brandCheckIdentifier:Oe,isStatic:!0,isValid:Nr})}else e.Debug.assertNever(v,"Unknown class element type.");else if(e.isPropertyDeclaration(v)){var hi=Be(ze,v);Fr.identifiers.set(We,{kind:"f",brandCheckIdentifier:hi,isStatic:!1,variableName:void 0,isValid:Nr}),Or.push(S.createAssignment(hi,S.createNewExpression(S.createIdentifier("WeakMap"),void 0,[])))}else if(e.isMethodDeclaration(v))e.Debug.assert(Xr,"weakSetName should be set in private identifier environment"),Fr.identifiers.set(We,{kind:"m",methodName:Be(ze,v),brandCheckIdentifier:Xr,isStatic:!1,isValid:Nr});else if(e.isAccessor(v))if(e.Debug.assert(Xr,"weakSetName should be set in private identifier environment"),e.isGetAccessor(v)){var mi=Be(ze+"_get",v);(mr==null?void 0:mr.kind)==="a"&&!mr.isStatic&&!mr.getterName?mr.getterName=mi:Fr.identifiers.set(We,{kind:"a",getterName:mi,setterName:void 0,brandCheckIdentifier:Xr,isStatic:!1,isValid:Nr})}else{var Ti=Be(ze+"_set",v);(mr==null?void 0:mr.kind)==="a"&&!mr.isStatic&&!mr.setterName?mr.setterName=Ti:Fr.identifiers.set(We,{kind:"a",getterName:void 0,setterName:Ti,brandCheckIdentifier:Xr,isStatic:!1,isValid:Nr})}else e.Debug.assertNever(v,"Unknown class element type.");(xe=di()).push.apply(xe,Or)}function Ye(v,xe){var ze=Ji().className,Je=ze?"_".concat(ze):"",Oe=S.createUniqueName("".concat(Je,"_").concat(v),16);return E.getNodeCheckFlags(xe)&524288?G(Oe):H(Oe),Oe}function Be(v,xe){return Ye(v.substring(1),xe.name)}function Qe(v){var xe;if(f!=null&&f.privateIdentifierEnvironment){var ze=f.privateIdentifierEnvironment.identifiers.get(v.escapedText);if(ze)return ze}for(var Je=ee.length-1;Je>=0;--Je){var Oe=ee[Je];if(!!Oe){var ze=(xe=Oe.privateIdentifierEnvironment)===null||xe===void 0?void 0:xe.identifiers.get(v.escapedText);if(ze)return ze}}}function _r(v){var xe=S.getGeneratedNameForNode(v),ze=Qe(v.name);if(!ze)return e.visitEachChild(v,w,g);var Je=v.expression;return(e.isThisProperty(v)||e.isSuperProperty(v)||!e.isSimpleCopiableExpression(v.expression))&&(Je=S.createTempVariable(H,!0),di().push(S.createBinaryExpression(Je,63,e.visitNode(v.expression,w,e.isExpression)))),S.createAssignmentTargetWrapper(xe,ye(ze,Je,xe,63))}function hr(v){var xe=e.getTargetOfBindingOrAssignmentElement(v);if(xe){var ze=void 0;if(e.isPrivateIdentifierPropertyAccessExpression(xe))ze=_r(xe);else if(ie&&e.isSuperProperty(xe)&&D&&f){var Je=f.classConstructor,Oe=f.superClassReference,Fr=f.facts;if(Fr&1)ze=be(xe);else if(Je&&Oe){var Xr=e.isElementAccessExpression(xe)?e.visitNode(xe.argumentExpression,w,e.isExpression):e.isIdentifier(xe.name)?S.createStringLiteralFromNode(xe.name):void 0;if(Xr){var Or=S.createTempVariable(void 0);ze=S.createAssignmentTargetWrapper(Or,S.createReflectSetCall(Oe,Xr,Or,Je))}}}if(ze)return e.isAssignmentExpression(v)?S.updateBinaryExpression(v,ze,v.operatorToken,e.visitNode(v.right,w,e.isExpression)):e.isSpreadElement(v)?S.updateSpreadElement(v,ze):ze}return e.visitNode(v,U)}function Dr(v){if(e.isObjectBindingOrAssignmentElement(v)&&!e.isShorthandPropertyAssignment(v)){var xe=e.getTargetOfBindingOrAssignmentElement(v),ze=void 0;if(xe){if(e.isPrivateIdentifierPropertyAccessExpression(xe))ze=_r(xe);else if(ie&&e.isSuperProperty(xe)&&D&&f){var Je=f.classConstructor,Oe=f.superClassReference,Fr=f.facts;if(Fr&1)ze=be(xe);else if(Je&&Oe){var Xr=e.isElementAccessExpression(xe)?e.visitNode(xe.argumentExpression,w,e.isExpression):e.isIdentifier(xe.name)?S.createStringLiteralFromNode(xe.name):void 0;if(Xr){var Or=S.createTempVariable(void 0);ze=S.createAssignmentTargetWrapper(Or,S.createReflectSetCall(Oe,Xr,Or,Je))}}}}if(e.isPropertyAssignment(v)){var We=e.getInitializerOfBindingOrAssignmentElement(v);return S.updatePropertyAssignment(v,e.visitNode(v.name,w,e.isPropertyName),ze?We?S.createAssignment(ze,e.visitNode(We,w)):ze:e.visitNode(v.initializer,U,e.isExpression))}if(e.isSpreadAssignment(v))return S.updateSpreadAssignment(v,ze||e.visitNode(v.expression,U,e.isExpression));e.Debug.assert(ze===void 0,"Should not have generated a wrapped target")}return e.visitNode(v,w)}function Me(v){return e.isArrayLiteralExpression(v)?S.updateArrayLiteralExpression(v,e.visitNodes(v.elements,hr,e.isExpression)):S.updateObjectLiteralExpression(v,e.visitNodes(v.properties,Dr,e.isObjectLiteralElementLike))}}e.transformClassFields=W;function N(g,S){return e.factory.createAssignment(g,e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment("value",S||e.factory.createVoidZero())]))}function Q(g,S,H){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(H,"set"),void 0,[g,S||e.factory.createVoidZero()])}function pe(g,S){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(S,"add"),void 0,[g])}function F(g){return g.escapedText==="#constructor"}})(Pe||(Pe={}));var Pe;(function(e){var a;(function(N){N[N.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"})(a||(a={}));var O;(function(N){N[N.NonTopLevel=1]="NonTopLevel",N[N.HasLexicalThis=2]="HasLexicalThis"})(O||(O={}));function L(N){var Q=N.factory,pe=N.getEmitHelperFactory,F=N.resumeLexicalEnvironment,g=N.endLexicalEnvironment,S=N.hoistVariableDeclaration,H=N.getEmitResolver(),se=N.getCompilerOptions(),p=e.getEmitScriptTarget(se),C,G=0,E,ue,B,re=[],M=0,x=N.onEmitNode,ie=N.onSubstituteNode;return N.onEmitNode=ar,N.onSubstituteNode=gr,e.chainBundle(N,_e);function _e(Se){if(Se.isDeclarationFile)return Se;Y(1,!1),Y(2,!e.isEffectiveStrictModeSourceFile(Se,se));var ge=e.visitEachChild(Se,A,N);return e.addEmitHelpers(ge,N.readEmitHelpers()),ge}function Y(Se,ge){M=ge?M|Se:M&~Se}function Z(Se){return(M&Se)!==0}function k(){return!Z(1)}function I(){return Z(2)}function ne(Se,ge,Fe){var cr=Se&~M;if(cr){Y(cr,!0);var ur=ge(Fe);return Y(cr,!1),ur}return ge(Fe)}function ee(Se){return e.visitEachChild(Se,A,N)}function A(Se){if((Se.transformFlags&256)===0)return Se;switch(Se.kind){case 131:return;case 217:return w(Se);case 168:return ne(3,j,Se);case 255:return ne(3,U,Se);case 212:return ne(3,z,Se);case 213:return ne(1,y,Se);case 205:return ue&&e.isPropertyAccessExpression(Se)&&Se.expression.kind===106&&ue.add(Se.name.escapedText),e.visitEachChild(Se,A,N);case 206:return ue&&Se.expression.kind===106&&(B=!0),e.visitEachChild(Se,A,N);case 171:case 172:case 170:case 256:case 225:return ne(3,ee,Se);default:return e.visitEachChild(Se,A,N)}}function f(Se){if(e.isNodeWithPossibleHoistedDeclaration(Se))switch(Se.kind){case 236:return D(Se);case 241:return J(Se);case 242:return l(Se);case 243:return _(Se);case 291:return P(Se);case 234:case 248:case 262:case 288:case 289:case 251:case 239:case 240:case 238:case 247:case 249:return e.visitEachChild(Se,f,N);default:return e.Debug.assertNever(Se,"Unhandled node.")}return A(Se)}function P(Se){var ge=new e.Set;oe(Se.variableDeclaration,ge);var Fe;if(ge.forEach(function(Ir,dr){E.has(dr)&&(Fe||(Fe=new e.Set(E)),Fe.delete(dr))}),Fe){var cr=E;E=Fe;var ur=e.visitEachChild(Se,f,N);return E=cr,ur}else return e.visitEachChild(Se,f,N)}function D(Se){if(ve(Se.declarationList)){var ge=ce(Se.declarationList,!1);return ge?Q.createExpressionStatement(ge):void 0}return e.visitEachChild(Se,A,N)}function l(Se){return Q.updateForInStatement(Se,ve(Se.initializer)?ce(Se.initializer,!0):e.visitNode(Se.initializer,A,e.isForInitializer),e.visitNode(Se.expression,A,e.isExpression),e.visitIterationBody(Se.statement,f,N))}function _(Se){return Q.updateForOfStatement(Se,e.visitNode(Se.awaitModifier,A,e.isToken),ve(Se.initializer)?ce(Se.initializer,!0):e.visitNode(Se.initializer,A,e.isForInitializer),e.visitNode(Se.expression,A,e.isExpression),e.visitIterationBody(Se.statement,f,N))}function J(Se){var ge=Se.initializer;return Q.updateForStatement(Se,ve(ge)?ce(ge,!1):e.visitNode(Se.initializer,A,e.isForInitializer),e.visitNode(Se.condition,A,e.isExpression),e.visitNode(Se.incrementor,A,e.isExpression),e.visitIterationBody(Se.statement,f,N))}function w(Se){return k()?e.visitEachChild(Se,A,N):e.setOriginalNode(e.setTextRange(Q.createYieldExpression(void 0,e.visitNode(Se.expression,A,e.isExpression)),Se),Se)}function j(Se){return Q.updateMethodDeclaration(Se,void 0,e.visitNodes(Se.modifiers,A,e.isModifier),Se.asteriskToken,Se.name,void 0,void 0,e.visitParameterList(Se.parameters,A,N),void 0,e.getFunctionFlags(Se)&2?le(Se):e.visitFunctionBody(Se.body,A,N))}function U(Se){return Q.updateFunctionDeclaration(Se,void 0,e.visitNodes(Se.modifiers,A,e.isModifier),Se.asteriskToken,Se.name,void 0,e.visitParameterList(Se.parameters,A,N),void 0,e.getFunctionFlags(Se)&2?le(Se):e.visitFunctionBody(Se.body,A,N))}function z(Se){return Q.updateFunctionExpression(Se,e.visitNodes(Se.modifiers,A,e.isModifier),Se.asteriskToken,Se.name,void 0,e.visitParameterList(Se.parameters,A,N),void 0,e.getFunctionFlags(Se)&2?le(Se):e.visitFunctionBody(Se.body,A,N))}function y(Se){return Q.updateArrowFunction(Se,e.visitNodes(Se.modifiers,A,e.isModifier),void 0,e.visitParameterList(Se.parameters,A,N),void 0,Se.equalsGreaterThanToken,e.getFunctionFlags(Se)&2?le(Se):e.visitFunctionBody(Se.body,A,N))}function oe(Se,ge){var Fe=Se.name;if(e.isIdentifier(Fe))ge.add(Fe.escapedText);else for(var cr=0,ur=Fe.elements;cr<ur.length;cr++){var Ir=ur[cr];e.isOmittedExpression(Ir)||oe(Ir,ge)}}function ve(Se){return!!Se&&e.isVariableDeclarationList(Se)&&!(Se.flags&3)&&Se.declarations.some(V)}function ce(Se,ge){m(Se);var Fe=e.getInitializedVariables(Se);return Fe.length===0?ge?e.visitNode(Q.converters.convertToAssignmentElementTarget(Se.declarations[0].name),A,e.isExpression):void 0:Q.inlineExpressions(e.map(Fe,ae))}function m(Se){e.forEach(Se.declarations,de)}function de(Se){var ge=Se.name;if(e.isIdentifier(ge))S(ge);else for(var Fe=0,cr=ge.elements;Fe<cr.length;Fe++){var ur=cr[Fe];e.isOmittedExpression(ur)||de(ur)}}function ae(Se){var ge=e.setSourceMapRange(Q.createAssignment(Q.converters.convertToAssignmentElementTarget(Se.name),Se.initializer),Se);return e.visitNode(ge,A,e.isExpression)}function V(Se){var ge=Se.name;if(e.isIdentifier(ge))return E.has(ge.escapedText);for(var Fe=0,cr=ge.elements;Fe<cr.length;Fe++){var ur=cr[Fe];if(!e.isOmittedExpression(ur)&&V(ur))return!0}return!1}function le(Se){F();var ge=e.getOriginalNode(Se,e.isFunctionLike),Fe=ge.type,cr=p<2?Ue(Fe):void 0,ur=Se.kind===213,Ir=(H.getNodeCheckFlags(Se)&8192)!==0,dr=E;E=new e.Set;for(var Br=0,Tr=Se.parameters;Br<Tr.length;Br++){var n=Tr[Br];oe(n,E)}var Er=ue,br=B;ur||(ue=new e.Set,B=!1);var Pr;if(ur){var Jr=pe().createAwaiterHelper(I(),Ir,cr,ke(Se.body)),Rr=g();if(e.some(Rr)){var Lr=Q.converters.convertToFunctionBlock(Jr);Pr=Q.updateBlock(Lr,e.setTextRange(Q.createNodeArray(e.concatenate(Rr,Lr.statements)),Lr.statements))}else Pr=Jr}else{var Ce=[],Le=Q.copyPrologue(Se.body.statements,Ce,!1,A);Ce.push(Q.createReturnStatement(pe().createAwaiterHelper(I(),Ir,cr,ke(Se.body,Le)))),e.insertStatementsAfterStandardPrologue(Ce,g());var Xe=p>=2&&H.getNodeCheckFlags(Se)&6144;if(Xe&&(He(),ue.size)){var Cr=W(Q,H,Se,ue);re[e.getNodeId(Cr)]=!0,e.insertStatementsAfterStandardPrologue(Ce,[Cr])}var Lr=Q.createBlock(Ce,!0);e.setTextRange(Lr,Se.body),Xe&&B&&(H.getNodeCheckFlags(Se)&4096?e.addEmitHelper(Lr,e.advancedAsyncSuperHelper):H.getNodeCheckFlags(Se)&2048&&e.addEmitHelper(Lr,e.asyncSuperHelper)),Pr=Lr}return E=dr,ur||(ue=Er,B=br),Pr}function ke(Se,ge){return e.isBlock(Se)?Q.updateBlock(Se,e.visitNodes(Se.statements,f,e.isStatement,ge)):Q.converters.convertToFunctionBlock(e.visitNode(Se,f,e.isConciseBody))}function Ue(Se){var ge=Se&&e.getEntityNameFromTypeNode(Se);if(ge&&e.isEntityName(ge)){var Fe=H.getTypeReferenceSerializationKind(ge);if(Fe===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||Fe===e.TypeReferenceSerializationKind.Unknown)return ge}}function He(){(C&1)===0&&(C|=1,N.enableSubstitution(207),N.enableSubstitution(205),N.enableSubstitution(206),N.enableEmitNotification(256),N.enableEmitNotification(168),N.enableEmitNotification(171),N.enableEmitNotification(172),N.enableEmitNotification(170),N.enableEmitNotification(236))}function ar(Se,ge,Fe){if(C&1&&we(ge)){var cr=H.getNodeCheckFlags(ge)&6144;if(cr!==G){var ur=G;G=cr,x(Se,ge,Fe),G=ur;return}}else if(C&&re[e.getNodeId(ge)]){var ur=G;G=0,x(Se,ge,Fe),G=ur;return}x(Se,ge,Fe)}function gr(Se,ge){return ge=ie(Se,ge),Se===1&&G?me(ge):ge}function me(Se){switch(Se.kind){case 205:return Ge(Se);case 206:return er(Se);case 207:return he(Se)}return Se}function Ge(Se){return Se.expression.kind===106?e.setTextRange(Q.createPropertyAccessExpression(Q.createUniqueName("_super",48),Se.name),Se):Se}function er(Se){return Se.expression.kind===106?ye(Se.argumentExpression,Se):Se}function he(Se){var ge=Se.expression;if(e.isSuperProperty(ge)){var Fe=e.isPropertyAccessExpression(ge)?Ge(ge):er(ge);return Q.createCallExpression(Q.createPropertyAccessExpression(Fe,"call"),void 0,qe([Q.createThis()],Se.arguments,!0))}return Se}function we(Se){var ge=Se.kind;return ge===256||ge===170||ge===168||ge===171||ge===172}function ye(Se,ge){return G&4096?e.setTextRange(Q.createPropertyAccessExpression(Q.createCallExpression(Q.createUniqueName("_superIndex",48),void 0,[Se]),"value"),ge):e.setTextRange(Q.createCallExpression(Q.createUniqueName("_superIndex",48),void 0,[Se]),ge)}}e.transformES2017=L;function W(N,Q,pe,F){var g=(Q.getNodeCheckFlags(pe)&4096)!==0,S=[];return F.forEach(function(H,se){var p=e.unescapeLeadingUnderscores(se),C=[];C.push(N.createPropertyAssignment("get",N.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(N.createPropertyAccessExpression(e.setEmitFlags(N.createSuper(),4),p),4)))),g&&C.push(N.createPropertyAssignment("set",N.createArrowFunction(void 0,void 0,[N.createParameterDeclaration(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,N.createAssignment(e.setEmitFlags(N.createPropertyAccessExpression(e.setEmitFlags(N.createSuper(),4),p),4),N.createIdentifier("v"))))),S.push(N.createPropertyAssignment(p,N.createObjectLiteralExpression(C)))}),N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(N.createUniqueName("_super",48),void 0,void 0,N.createCallExpression(N.createPropertyAccessExpression(N.createIdentifier("Object"),"create"),void 0,[N.createNull(),N.createObjectLiteralExpression(S,!0)]))],2))}e.createSuperAccessVariableStatement=W})(Pe||(Pe={}));var Pe;(function(e){var a;(function(W){W[W.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"})(a||(a={}));var O;(function(W){W[W.None=0]="None",W[W.HasLexicalThis=1]="HasLexicalThis",W[W.IterationContainer=2]="IterationContainer",W[W.AncestorFactsMask=3]="AncestorFactsMask",W[W.SourceFileIncludes=1]="SourceFileIncludes",W[W.SourceFileExcludes=2]="SourceFileExcludes",W[W.StrictModeSourceFileIncludes=0]="StrictModeSourceFileIncludes",W[W.ClassOrFunctionIncludes=1]="ClassOrFunctionIncludes",W[W.ClassOrFunctionExcludes=2]="ClassOrFunctionExcludes",W[W.ArrowFunctionIncludes=0]="ArrowFunctionIncludes",W[W.ArrowFunctionExcludes=2]="ArrowFunctionExcludes",W[W.IterationStatementIncludes=2]="IterationStatementIncludes",W[W.IterationStatementExcludes=0]="IterationStatementExcludes"})(O||(O={}));function L(W){var N=W.factory,Q=W.getEmitHelperFactory,pe=W.resumeLexicalEnvironment,F=W.endLexicalEnvironment,g=W.hoistVariableDeclaration,S=W.getEmitResolver(),H=W.getCompilerOptions(),se=e.getEmitScriptTarget(H),p=W.onEmitNode;W.onEmitNode=Ce;var C=W.onSubstituteNode;W.onSubstituteNode=Le;var G=!1,E,ue,B,re=0,M=0,x,ie,_e,Y,Z=[];return e.chainBundle(W,A);function k(be,or){return M!==(M&~be|or)}function I(be,or){var Kr=M;return M=(M&~be|or)&3,Kr}function ne(be){M=be}function ee(be){ie=e.append(ie,N.createVariableDeclaration(be))}function A(be){if(be.isDeclarationFile)return be;x=be;var or=m(be);return e.addEmitHelpers(or,W.readEmitHelpers()),x=void 0,ie=void 0,or}function f(be){return J(be,!1)}function P(be){return J(be,!0)}function D(be){if(be.kind!==131)return be}function l(be,or,Kr,ei){if(k(Kr,ei)){var li=I(Kr,ei),Si=be(or);return ne(li),Si}return be(or)}function _(be){return e.visitEachChild(be,f,W)}function J(be,or){if((be.transformFlags&128)===0)return be;switch(be.kind){case 217:return w(be);case 223:return j(be);case 246:return U(be);case 249:return z(be);case 204:return oe(be);case 220:return ae(be,or);case 349:return V(be,or);case 291:return le(be);case 236:return ke(be);case 253:return Ue(be);case 239:case 240:case 242:return l(_,be,0,2);case 243:return me(be,void 0);case 241:return l(ar,be,0,2);case 216:return gr(be);case 170:return l(Fe,be,2,1);case 168:return l(Ir,be,2,1);case 171:return l(cr,be,2,1);case 172:return l(ur,be,2,1);case 255:return l(dr,be,2,1);case 212:return l(Tr,be,2,1);case 213:return l(Br,be,2,0);case 163:return Se(be);case 237:return ve(be);case 211:return ce(be,or);case 209:return de(be);case 205:return _e&&e.isPropertyAccessExpression(be)&&be.expression.kind===106&&_e.add(be.name.escapedText),e.visitEachChild(be,f,W);case 206:return _e&&be.expression.kind===106&&(Y=!0),e.visitEachChild(be,f,W);case 256:case 225:return l(_,be,2,1);default:return e.visitEachChild(be,f,W)}}function w(be){return ue&2&&ue&1?e.setOriginalNode(e.setTextRange(N.createYieldExpression(void 0,Q().createAwaitHelper(e.visitNode(be.expression,f,e.isExpression))),be),be):e.visitEachChild(be,f,W)}function j(be){if(ue&2&&ue&1){if(be.asteriskToken){var or=e.visitNode(e.Debug.checkDefined(be.expression),f,e.isExpression);return e.setOriginalNode(e.setTextRange(N.createYieldExpression(void 0,Q().createAwaitHelper(N.updateYieldExpression(be,be.asteriskToken,e.setTextRange(Q().createAsyncDelegatorHelper(e.setTextRange(Q().createAsyncValuesHelper(or),or)),or)))),be),be)}return e.setOriginalNode(e.setTextRange(N.createYieldExpression(void 0,he(be.expression?e.visitNode(be.expression,f,e.isExpression):N.createVoidZero())),be),be)}return e.visitEachChild(be,f,W)}function U(be){return ue&2&&ue&1?N.updateReturnStatement(be,he(be.expression?e.visitNode(be.expression,f,e.isExpression):N.createVoidZero())):e.visitEachChild(be,f,W)}function z(be){if(ue&2){var or=e.unwrapInnermostStatementOfLabel(be);return or.kind===243&&or.awaitModifier?me(or,be):N.restoreEnclosingLabel(e.visitNode(or,f,e.isStatement,N.liftToBlock),be)}return e.visitEachChild(be,f,W)}function y(be){for(var or,Kr=[],ei=0,li=be;ei<li.length;ei++){var Si=li[ei];if(Si.kind===296){or&&(Kr.push(N.createObjectLiteralExpression(or)),or=void 0);var qi=Si.expression;Kr.push(e.visitNode(qi,f,e.isExpression))}else or=e.append(or,Si.kind===294?N.createPropertyAssignment(Si.name,e.visitNode(Si.initializer,f,e.isExpression)):e.visitNode(Si,f,e.isObjectLiteralElementLike))}return or&&Kr.push(N.createObjectLiteralExpression(or)),Kr}function oe(be){if(be.transformFlags&32768){var or=y(be.properties);or.length&&or[0].kind!==204&&or.unshift(N.createObjectLiteralExpression());var Kr=or[0];if(or.length>1){for(var ei=1;ei<or.length;ei++)Kr=Q().createAssignHelper([Kr,or[ei]]);return Kr}else return Q().createAssignHelper(or)}return e.visitEachChild(be,f,W)}function ve(be){return e.visitEachChild(be,P,W)}function ce(be,or){return e.visitEachChild(be,or?P:f,W)}function m(be){var or=I(2,e.isEffectiveStrictModeSourceFile(be,H)?0:1);G=!1;var Kr=e.visitEachChild(be,f,W),ei=e.concatenate(Kr.statements,ie&&[N.createVariableStatement(void 0,N.createVariableDeclarationList(ie))]),li=N.updateSourceFile(Kr,e.setTextRange(N.createNodeArray(ei),be.statements));return ne(or),li}function de(be){return e.processTaggedTemplateExpression(W,be,f,x,ee,e.ProcessLevel.LiftRestriction)}function ae(be,or){return e.isDestructuringAssignment(be)&&be.left.transformFlags&32768?e.flattenDestructuringAssignment(be,f,W,1,!or):be.operatorToken.kind===27?N.updateBinaryExpression(be,e.visitNode(be.left,P,e.isExpression),be.operatorToken,e.visitNode(be.right,or?P:f,e.isExpression)):e.visitEachChild(be,f,W)}function V(be,or){if(or)return e.visitEachChild(be,P,W);for(var Kr,ei=0;ei<be.elements.length;ei++){var li=be.elements[ei],Si=e.visitNode(li,ei<be.elements.length-1?P:f,e.isExpression);(Kr||Si!==li)&&(Kr||(Kr=be.elements.slice(0,ei)),Kr.push(Si))}var qi=Kr?e.setTextRange(N.createNodeArray(Kr),be.elements):be.elements;return N.updateCommaListExpression(be,qi)}function le(be){if(be.variableDeclaration&&e.isBindingPattern(be.variableDeclaration.name)&&be.variableDeclaration.name.transformFlags&32768){var or=N.getGeneratedNameForNode(be.variableDeclaration.name),Kr=N.updateVariableDeclaration(be.variableDeclaration,be.variableDeclaration.name,void 0,void 0,or),ei=e.flattenDestructuringBinding(Kr,f,W,1),li=e.visitNode(be.block,f,e.isBlock);return e.some(ei)&&(li=N.updateBlock(li,qe([N.createVariableStatement(void 0,ei)],li.statements,!0))),N.updateCatchClause(be,N.updateVariableDeclaration(be.variableDeclaration,or,void 0,void 0,void 0),li)}return e.visitEachChild(be,f,W)}function ke(be){if(e.hasSyntacticModifier(be,1)){var or=G;G=!0;var Kr=e.visitEachChild(be,f,W);return G=or,Kr}return e.visitEachChild(be,f,W)}function Ue(be){if(G){var or=G;G=!1;var Kr=He(be,!0);return G=or,Kr}return He(be,!1)}function He(be,or){return e.isBindingPattern(be.name)&&be.name.transformFlags&32768?e.flattenDestructuringBinding(be,f,W,1,void 0,or):e.visitEachChild(be,f,W)}function ar(be){return N.updateForStatement(be,e.visitNode(be.initializer,P,e.isForInitializer),e.visitNode(be.condition,f,e.isExpression),e.visitNode(be.incrementor,P,e.isExpression),e.visitIterationBody(be.statement,f,W))}function gr(be){return e.visitEachChild(be,P,W)}function me(be,or){var Kr=I(0,2);be.initializer.transformFlags&32768&&(be=Ge(be));var ei=be.awaitModifier?we(be,or,Kr):N.restoreEnclosingLabel(e.visitEachChild(be,f,W),or);return ne(Kr),ei}function Ge(be){var or=e.skipParentheses(be.initializer);if(e.isVariableDeclarationList(or)||e.isAssignmentPattern(or)){var Kr=void 0,ei=void 0,li=N.createTempVariable(void 0),Si=[e.createForOfBindingStatement(N,or,li)];return e.isBlock(be.statement)?(e.addRange(Si,be.statement.statements),Kr=be.statement,ei=be.statement.statements):be.statement&&(e.append(Si,be.statement),Kr=be.statement,ei=be.statement),N.updateForOfStatement(be,be.awaitModifier,e.setTextRange(N.createVariableDeclarationList([e.setTextRange(N.createVariableDeclaration(li),be.initializer)],1),be.initializer),be.expression,e.setTextRange(N.createBlock(e.setTextRange(N.createNodeArray(Si),ei),!0),Kr))}return be}function er(be,or){var Kr=e.createForOfBindingStatement(N,be.initializer,or),ei,li,Si=[e.visitNode(Kr,f,e.isStatement)],qi=e.visitIterationBody(be.statement,f,W);return e.isBlock(qi)?(e.addRange(Si,qi.statements),ei=qi,li=qi.statements):Si.push(qi),e.setEmitFlags(e.setTextRange(N.createBlock(e.setTextRange(N.createNodeArray(Si),li),!0),ei),432)}function he(be){return ue&1?N.createYieldExpression(void 0,Q().createAwaitHelper(be)):N.createAwaitExpression(be)}function we(be,or,Kr){var ei=e.visitNode(be.expression,f,e.isExpression),li=e.isIdentifier(ei)?N.getGeneratedNameForNode(ei):N.createTempVariable(void 0),Si=e.isIdentifier(ei)?N.getGeneratedNameForNode(li):N.createTempVariable(void 0),qi=N.createUniqueName("e"),ft=N.getGeneratedNameForNode(qi),bt=N.createTempVariable(void 0),aa=e.setTextRange(Q().createAsyncValuesHelper(ei),be.expression),sr=N.createCallExpression(N.createPropertyAccessExpression(li,"next"),void 0,[]),Ji=N.createPropertyAccessExpression(Si,"done"),di=N.createPropertyAccessExpression(Si,"value"),X=N.createFunctionCallCall(bt,li,[]);g(qi),g(bt);var Ye=Kr&2?N.inlineExpressions([N.createAssignment(qi,N.createVoidZero()),aa]):aa,Be=e.setEmitFlags(e.setTextRange(N.createForStatement(e.setEmitFlags(e.setTextRange(N.createVariableDeclarationList([e.setTextRange(N.createVariableDeclaration(li,void 0,void 0,Ye),be.expression),N.createVariableDeclaration(Si)]),be.expression),2097152),N.createComma(N.createAssignment(Si,he(sr)),N.createLogicalNot(Ji)),void 0,er(be,di)),be),256);return e.setOriginalNode(Be,be),N.createTryStatement(N.createBlock([N.restoreEnclosingLabel(Be,or)]),N.createCatchClause(N.createVariableDeclaration(ft),e.setEmitFlags(N.createBlock([N.createExpressionStatement(N.createAssignment(qi,N.createObjectLiteralExpression([N.createPropertyAssignment("error",ft)])))]),1)),N.createBlock([N.createTryStatement(N.createBlock([e.setEmitFlags(N.createIfStatement(N.createLogicalAnd(N.createLogicalAnd(Si,N.createLogicalNot(Ji)),N.createAssignment(bt,N.createPropertyAccessExpression(li,"return"))),N.createExpressionStatement(he(X))),1)]),void 0,e.setEmitFlags(N.createBlock([e.setEmitFlags(N.createIfStatement(qi,N.createThrowStatement(N.createPropertyAccessExpression(qi,"error"))),1)]),1))]))}function ye(be){return e.Debug.assertNode(be,e.isParameter),Se(be)}function Se(be){return B!=null&&B.has(be)?N.updateParameterDeclaration(be,void 0,void 0,be.dotDotDotToken,e.isBindingPattern(be.name)?N.getGeneratedNameForNode(be):be.name,void 0,void 0,void 0):be.transformFlags&32768?N.updateParameterDeclaration(be,void 0,void 0,be.dotDotDotToken,N.getGeneratedNameForNode(be),void 0,void 0,e.visitNode(be.initializer,f,e.isExpression)):e.visitEachChild(be,f,W)}function ge(be){for(var or,Kr=0,ei=be.parameters;Kr<ei.length;Kr++){var li=ei[Kr];or?or.add(li):li.transformFlags&32768&&(or=new e.Set)}return or}function Fe(be){var or=ue,Kr=B;ue=e.getFunctionFlags(be),B=ge(be);var ei=N.updateConstructorDeclaration(be,void 0,be.modifiers,e.visitParameterList(be.parameters,ye,W),Er(be));return ue=or,B=Kr,ei}function cr(be){var or=ue,Kr=B;ue=e.getFunctionFlags(be),B=ge(be);var ei=N.updateGetAccessorDeclaration(be,void 0,be.modifiers,e.visitNode(be.name,f,e.isPropertyName),e.visitParameterList(be.parameters,ye,W),void 0,Er(be));return ue=or,B=Kr,ei}function ur(be){var or=ue,Kr=B;ue=e.getFunctionFlags(be),B=ge(be);var ei=N.updateSetAccessorDeclaration(be,void 0,be.modifiers,e.visitNode(be.name,f,e.isPropertyName),e.visitParameterList(be.parameters,ye,W),Er(be));return ue=or,B=Kr,ei}function Ir(be){var or=ue,Kr=B;ue=e.getFunctionFlags(be),B=ge(be);var ei=N.updateMethodDeclaration(be,void 0,ue&1?e.visitNodes(be.modifiers,D,e.isModifier):be.modifiers,ue&2?void 0:be.asteriskToken,e.visitNode(be.name,f,e.isPropertyName),e.visitNode(void 0,f,e.isToken),void 0,e.visitParameterList(be.parameters,ye,W),void 0,ue&2&&ue&1?n(be):Er(be));return ue=or,B=Kr,ei}function dr(be){var or=ue,Kr=B;ue=e.getFunctionFlags(be),B=ge(be);var ei=N.updateFunctionDeclaration(be,void 0,ue&1?e.visitNodes(be.modifiers,D,e.isModifier):be.modifiers,ue&2?void 0:be.asteriskToken,be.name,void 0,e.visitParameterList(be.parameters,ye,W),void 0,ue&2&&ue&1?n(be):Er(be));return ue=or,B=Kr,ei}function Br(be){var or=ue,Kr=B;ue=e.getFunctionFlags(be),B=ge(be);var ei=N.updateArrowFunction(be,be.modifiers,void 0,e.visitParameterList(be.parameters,ye,W),void 0,be.equalsGreaterThanToken,Er(be));return ue=or,B=Kr,ei}function Tr(be){var or=ue,Kr=B;ue=e.getFunctionFlags(be),B=ge(be);var ei=N.updateFunctionExpression(be,ue&1?e.visitNodes(be.modifiers,D,e.isModifier):be.modifiers,ue&2?void 0:be.asteriskToken,be.name,void 0,e.visitParameterList(be.parameters,ye,W),void 0,ue&2&&ue&1?n(be):Er(be));return ue=or,B=Kr,ei}function n(be){pe();var or=[],Kr=N.copyPrologue(be.body.statements,or,!1,f);br(or,be);var ei=_e,li=Y;_e=new e.Set,Y=!1;var Si=N.createReturnStatement(Q().createAsyncGeneratorHelper(N.createFunctionExpression(void 0,N.createToken(41),be.name&&N.getGeneratedNameForNode(be.name),void 0,[],void 0,N.updateBlock(be.body,e.visitLexicalEnvironment(be.body.statements,f,W,Kr))),!!(M&1))),qi=se>=2&&S.getNodeCheckFlags(be)&6144;if(qi){Pr();var ft=e.createSuperAccessVariableStatement(N,S,be,_e);Z[e.getNodeId(ft)]=!0,e.insertStatementsAfterStandardPrologue(or,[ft])}or.push(Si),e.insertStatementsAfterStandardPrologue(or,F());var bt=N.updateBlock(be.body,or);return qi&&Y&&(S.getNodeCheckFlags(be)&4096?e.addEmitHelper(bt,e.advancedAsyncSuperHelper):S.getNodeCheckFlags(be)&2048&&e.addEmitHelper(bt,e.asyncSuperHelper)),_e=ei,Y=li,bt}function Er(be){var or;pe();var Kr=0,ei=[],li=(or=e.visitNode(be.body,f,e.isConciseBody))!==null&&or!==void 0?or:N.createBlock([]);e.isBlock(li)&&(Kr=N.copyPrologue(li.statements,ei,!1,f)),e.addRange(ei,br(void 0,be));var Si=F();if(Kr>0||e.some(ei)||e.some(Si)){var qi=N.converters.convertToFunctionBlock(li,!0);return e.insertStatementsAfterStandardPrologue(ei,Si),e.addRange(ei,qi.statements.slice(Kr)),N.updateBlock(qi,e.setTextRange(N.createNodeArray(ei),qi.statements))}return li}function br(be,or){for(var Kr=!1,ei=0,li=or.parameters;ei<li.length;ei++){var Si=li[ei];if(Kr){if(e.isBindingPattern(Si.name)){if(Si.name.elements.length>0){var qi=e.flattenDestructuringBinding(Si,f,W,0,N.getGeneratedNameForNode(Si));if(e.some(qi)){var ft=N.createVariableDeclarationList(qi),bt=N.createVariableStatement(void 0,ft);e.setEmitFlags(bt,1048576),be=e.append(be,bt)}}else if(Si.initializer){var aa=N.getGeneratedNameForNode(Si),sr=e.visitNode(Si.initializer,f,e.isExpression),Ji=N.createAssignment(aa,sr),bt=N.createExpressionStatement(Ji);e.setEmitFlags(bt,1048576),be=e.append(be,bt)}}else if(Si.initializer){var aa=N.cloneNode(Si.name);e.setTextRange(aa,Si.name),e.setEmitFlags(aa,48);var sr=e.visitNode(Si.initializer,f,e.isExpression);e.addEmitFlags(sr,1584);var Ji=N.createAssignment(aa,sr);e.setTextRange(Ji,Si),e.setEmitFlags(Ji,1536);var di=N.createBlock([N.createExpressionStatement(Ji)]);e.setTextRange(di,Si),e.setEmitFlags(di,1953);var X=N.createTypeCheck(N.cloneNode(Si.name),"undefined"),bt=N.createIfStatement(X,di);e.startOnNewLine(bt),e.setTextRange(bt,Si),e.setEmitFlags(bt,1050528),be=e.append(be,bt)}}else if(Si.transformFlags&32768){Kr=!0;var qi=e.flattenDestructuringBinding(Si,f,W,1,N.getGeneratedNameForNode(Si),!1,!0);if(e.some(qi)){var ft=N.createVariableDeclarationList(qi),bt=N.createVariableStatement(void 0,ft);e.setEmitFlags(bt,1048576),be=e.append(be,bt)}}}return be}function Pr(){(E&1)===0&&(E|=1,W.enableSubstitution(207),W.enableSubstitution(205),W.enableSubstitution(206),W.enableEmitNotification(256),W.enableEmitNotification(168),W.enableEmitNotification(171),W.enableEmitNotification(172),W.enableEmitNotification(170),W.enableEmitNotification(236))}function Ce(be,or,Kr){if(E&1&&Rr(or)){var ei=S.getNodeCheckFlags(or)&6144;if(ei!==re){var li=re;re=ei,p(be,or,Kr),re=li;return}}else if(E&&Z[e.getNodeId(or)]){var li=re;re=0,p(be,or,Kr),re=li;return}p(be,or,Kr)}function Le(be,or){return or=C(be,or),be===1&&re?Xe(or):or}function Xe(be){switch(be.kind){case 205:return Cr(be);case 206:return Lr(be);case 207:return Jr(be)}return be}function Cr(be){return be.expression.kind===106?e.setTextRange(N.createPropertyAccessExpression(N.createUniqueName("_super",48),be.name),be):be}function Lr(be){return be.expression.kind===106?ci(be.argumentExpression,be):be}function Jr(be){var or=be.expression;if(e.isSuperProperty(or)){var Kr=e.isPropertyAccessExpression(or)?Cr(or):Lr(or);return N.createCallExpression(N.createPropertyAccessExpression(Kr,"call"),void 0,qe([N.createThis()],be.arguments,!0))}return be}function Rr(be){var or=be.kind;return or===256||or===170||or===168||or===171||or===172}function ci(be,or){return re&4096?e.setTextRange(N.createPropertyAccessExpression(N.createCallExpression(N.createIdentifier("_superIndex"),void 0,[be]),"value"),or):e.setTextRange(N.createCallExpression(N.createIdentifier("_superIndex"),void 0,[be]),or)}}e.transformES2018=L})(Pe||(Pe={}));var Pe;(function(e){function a(O){var L=O.factory;return e.chainBundle(O,W);function W(pe){return pe.isDeclarationFile?pe:e.visitEachChild(pe,N,O)}function N(pe){if((pe.transformFlags&64)===0)return pe;switch(pe.kind){case 291:return Q(pe);default:return e.visitEachChild(pe,N,O)}}function Q(pe){return pe.variableDeclaration?e.visitEachChild(pe,N,O):L.updateCatchClause(pe,L.createVariableDeclaration(L.createTempVariable(void 0)),e.visitNode(pe.block,N,e.isBlock))}}e.transformES2019=a})(Pe||(Pe={}));var Pe;(function(e){function a(O){var L=O.factory,W=O.hoistVariableDeclaration;return e.chainBundle(O,N);function N(E){return E.isDeclarationFile?E:e.visitEachChild(E,Q,O)}function Q(E){if((E.transformFlags&32)===0)return E;switch(E.kind){case 207:{var ue=S(E,!1);return e.Debug.assertNotNode(ue,e.isSyntheticReference),ue}case 205:case 206:if(e.isOptionalChain(E)){var ue=se(E,!1,!1);return e.Debug.assertNotNode(ue,e.isSyntheticReference),ue}return e.visitEachChild(E,Q,O);case 220:return E.operatorToken.kind===60?C(E):e.visitEachChild(E,Q,O);case 214:return G(E);default:return e.visitEachChild(E,Q,O)}}function pe(E){e.Debug.assertNotNode(E,e.isNonNullChain);for(var ue=[E];!E.questionDotToken&&!e.isTaggedTemplateExpression(E);)E=e.cast(e.skipPartiallyEmittedExpressions(E.expression),e.isOptionalChain),e.Debug.assertNotNode(E,e.isNonNullChain),ue.unshift(E);return{expression:E.expression,chain:ue}}function F(E,ue,B){var re=H(E.expression,ue,B);return e.isSyntheticReference(re)?L.createSyntheticReferenceExpression(L.updateParenthesizedExpression(E,re.expression),re.thisArg):L.updateParenthesizedExpression(E,re)}function g(E,ue,B){if(e.isOptionalChain(E))return se(E,ue,B);var re=e.visitNode(E.expression,Q,e.isExpression);e.Debug.assertNotNode(re,e.isSyntheticReference);var M;return ue&&(e.isSimpleCopiableExpression(re)?M=re:(M=L.createTempVariable(W),re=L.createAssignment(M,re))),re=E.kind===205?L.updatePropertyAccessExpression(E,re,e.visitNode(E.name,Q,e.isIdentifier)):L.updateElementAccessExpression(E,re,e.visitNode(E.argumentExpression,Q,e.isExpression)),M?L.createSyntheticReferenceExpression(re,M):re}function S(E,ue){if(e.isOptionalChain(E))return se(E,ue,!1);if(e.isParenthesizedExpression(E.expression)&&e.isOptionalChain(e.skipParentheses(E.expression))){var B=F(E.expression,!0,!1),re=e.visitNodes(E.arguments,Q,e.isExpression);return e.isSyntheticReference(B)?e.setTextRange(L.createFunctionCallCall(B.expression,B.thisArg,re),E):L.updateCallExpression(E,B,void 0,re)}return e.visitEachChild(E,Q,O)}function H(E,ue,B){switch(E.kind){case 211:return F(E,ue,B);case 205:case 206:return g(E,ue,B);case 207:return S(E,ue);default:return e.visitNode(E,Q,e.isExpression)}}function se(E,ue,B){var re=pe(E),M=re.expression,x=re.chain,ie=H(e.skipPartiallyEmittedExpressions(M),e.isCallChain(x[0]),!1),_e=e.isSyntheticReference(ie)?ie.thisArg:void 0,Y=e.isSyntheticReference(ie)?ie.expression:ie,Z=L.restoreOuterExpressions(M,Y,8);e.isSimpleCopiableExpression(Y)||(Y=L.createTempVariable(W),Z=L.createAssignment(Y,Z));for(var k=Y,I,ne=0;ne<x.length;ne++){var ee=x[ne];switch(ee.kind){case 205:case 206:ne===x.length-1&&ue&&(e.isSimpleCopiableExpression(k)?I=k:(I=L.createTempVariable(W),k=L.createAssignment(I,k))),k=ee.kind===205?L.createPropertyAccessExpression(k,e.visitNode(ee.name,Q,e.isIdentifier)):L.createElementAccessExpression(k,e.visitNode(ee.argumentExpression,Q,e.isExpression));break;case 207:ne===0&&_e?(e.isGeneratedIdentifier(_e)||(_e=L.cloneNode(_e),e.addEmitFlags(_e,1536)),k=L.createFunctionCallCall(k,_e.kind===106?L.createThis():_e,e.visitNodes(ee.arguments,Q,e.isExpression))):k=L.createCallExpression(k,void 0,e.visitNodes(ee.arguments,Q,e.isExpression));break}e.setOriginalNode(k,ee)}var A=B?L.createConditionalExpression(p(Z,Y,!0),void 0,L.createTrue(),void 0,L.createDeleteExpression(k)):L.createConditionalExpression(p(Z,Y,!0),void 0,L.createVoidZero(),void 0,k);return e.setTextRange(A,E),I?L.createSyntheticReferenceExpression(A,I):A}function p(E,ue,B){return L.createBinaryExpression(L.createBinaryExpression(E,L.createToken(B?36:37),L.createNull()),L.createToken(B?56:55),L.createBinaryExpression(ue,L.createToken(B?36:37),L.createVoidZero()))}function C(E){var ue=e.visitNode(E.left,Q,e.isExpression),B=ue;return e.isSimpleCopiableExpression(ue)||(B=L.createTempVariable(W),ue=L.createAssignment(B,ue)),e.setTextRange(L.createConditionalExpression(p(ue,B),void 0,B,void 0,e.visitNode(E.right,Q,e.isExpression)),E)}function G(E){return e.isOptionalChain(e.skipParentheses(E.expression))?e.setOriginalNode(H(E.expression,!1,!0),E):L.updateDeleteExpression(E,e.visitNode(E.expression,Q,e.isExpression))}}e.transformES2020=a})(Pe||(Pe={}));var Pe;(function(e){function a(O){var L=O.hoistVariableDeclaration,W=O.factory;return e.chainBundle(O,N);function N(F){return F.isDeclarationFile?F:e.visitEachChild(F,Q,O)}function Q(F){if((F.transformFlags&16)===0)return F;switch(F.kind){case 220:var g=F;if(e.isLogicalOrCoalescingAssignmentExpression(g))return pe(g);default:return e.visitEachChild(F,Q,O)}}function pe(F){var g=F.operatorToken,S=e.getNonAssignmentOperatorForCompoundAssignment(g.kind),H=e.skipParentheses(e.visitNode(F.left,Q,e.isLeftHandSideExpression)),se=H,p=e.skipParentheses(e.visitNode(F.right,Q,e.isExpression));if(e.isAccessExpression(H)){var C=e.isSimpleCopiableExpression(H.expression),G=C?H.expression:W.createTempVariable(L),E=C?H.expression:W.createAssignment(G,H.expression);if(e.isPropertyAccessExpression(H))se=W.createPropertyAccessExpression(G,H.name),H=W.createPropertyAccessExpression(E,H.name);else{var ue=e.isSimpleCopiableExpression(H.argumentExpression),B=ue?H.argumentExpression:W.createTempVariable(L);se=W.createElementAccessExpression(G,B),H=W.createElementAccessExpression(E,ue?H.argumentExpression:W.createAssignment(B,H.argumentExpression))}}return W.createBinaryExpression(H,S,W.createParenthesizedExpression(W.createAssignment(se,p)))}}e.transformES2021=a})(Pe||(Pe={}));var Pe;(function(e){function a(O){return e.chainBundle(O,L);function L(N){return N.isDeclarationFile?N:e.visitEachChild(N,W,O)}function W(N){if((N.transformFlags&4)===0)return N;switch(N.kind){default:return e.visitEachChild(N,W,O)}}}e.transformESNext=a})(Pe||(Pe={}));var Pe;(function(e){function a(L){var W=L.factory,N=L.getEmitHelperFactory,Q=L.getCompilerOptions(),pe,F;return e.chainBundle(L,C);function g(){if(F.filenameDeclaration)return F.filenameDeclaration.name;var m=W.createVariableDeclaration(W.createUniqueName("_jsxFileName",48),void 0,void 0,W.createStringLiteral(pe.fileName));return F.filenameDeclaration=m,F.filenameDeclaration.name}function S(m){return Q.jsx===5?"jsxDEV":m?"jsxs":"jsx"}function H(m){var de=S(m);return p(de)}function se(){return p("Fragment")}function p(m){var de,ae,V=m==="createElement"?F.importSpecifier:e.getJSXRuntimeImport(F.importSpecifier,Q),le=(ae=(de=F.utilizedImplicitRuntimeImports)===null||de===void 0?void 0:de.get(V))===null||ae===void 0?void 0:ae.get(m);if(le)return le.name;F.utilizedImplicitRuntimeImports||(F.utilizedImplicitRuntimeImports=new e.Map);var ke=F.utilizedImplicitRuntimeImports.get(V);ke||(ke=new e.Map,F.utilizedImplicitRuntimeImports.set(V,ke));var Ue=W.createUniqueName("_".concat(m),112),He=W.createImportSpecifier(!1,W.createIdentifier(m),Ue);return Ue.generatedImportReference=He,ke.set(m,He),Ue}function C(m){if(m.isDeclarationFile)return m;pe=m,F={},F.importSpecifier=e.getJSXImplicitImportBase(Q,m);var de=e.visitEachChild(m,G,L);e.addEmitHelpers(de,L.readEmitHelpers());var ae=de.statements;if(F.filenameDeclaration&&(ae=e.insertStatementAfterCustomPrologue(ae.slice(),W.createVariableStatement(void 0,W.createVariableDeclarationList([F.filenameDeclaration],2)))),F.utilizedImplicitRuntimeImports)for(var V=0,le=e.arrayFrom(F.utilizedImplicitRuntimeImports.entries());V<le.length;V++){var ke=le[V],Ue=ke[0],He=ke[1];if(e.isExternalModule(m)){var ar=W.createImportDeclaration(void 0,void 0,W.createImportClause(!1,void 0,W.createNamedImports(e.arrayFrom(He.values()))),W.createStringLiteral(Ue),void 0);e.setParentRecursive(ar,!1),ae=e.insertStatementAfterCustomPrologue(ae.slice(),ar)}else if(e.isExternalOrCommonJsModule(m)){var gr=W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(W.createObjectBindingPattern(e.map(e.arrayFrom(He.values()),function(me){return W.createBindingElement(void 0,me.propertyName,me.name)})),void 0,void 0,W.createCallExpression(W.createIdentifier("require"),void 0,[W.createStringLiteral(Ue)]))],2));e.setParentRecursive(gr,!1),ae=e.insertStatementAfterCustomPrologue(ae.slice(),gr)}}return ae!==de.statements&&(de=W.updateSourceFile(de,ae)),F=void 0,de}function G(m){return m.transformFlags&2?E(m):m}function E(m){switch(m.kind){case 277:return M(m,!1);case 278:return x(m,!1);case 281:return ie(m,!1);case 287:return ce(m);default:return e.visitEachChild(m,G,L)}}function ue(m){switch(m.kind){case 11:return w(m);case 287:return ce(m);case 277:return M(m,!0);case 278:return x(m,!0);case 281:return ie(m,!0);default:return e.Debug.failBadSyntaxKind(m)}}function B(m){for(var de=!1,ae=0,V=m.attributes.properties;ae<V.length;ae++){var le=V[ae];if(e.isJsxSpreadAttribute(le))de=!0;else if(de&&e.isJsxAttribute(le)&&le.name.escapedText==="key")return!0}return!1}function re(m){return F.importSpecifier===void 0||B(m)}function M(m,de){var ae=re(m.openingElement)?I:Z;return ae(m.openingElement,m.children,de,m)}function x(m,de){var ae=re(m)?I:Z;return ae(m,void 0,de,m)}function ie(m,de){var ae=F.importSpecifier===void 0?ee:ne;return ae(m.openingFragment,m.children,de,m)}function _e(m){var de=Y(m);return de&&W.createObjectLiteralExpression([de])}function Y(m){var de=e.getSemanticJsxChildren(m);if(e.length(de)===1&&!de[0].dotDotDotToken){var ae=ue(de[0]);return ae&&W.createPropertyAssignment("children",ae)}var V=e.mapDefined(m,ue);return e.length(V)?W.createPropertyAssignment("children",W.createArrayLiteralExpression(V)):void 0}function Z(m,de,ae,V){var le=oe(m),ke=de&&de.length?Y(de):void 0,Ue=e.find(m.attributes.properties,function(gr){return!!gr.name&&e.isIdentifier(gr.name)&&gr.name.escapedText==="key"}),He=Ue?e.filter(m.attributes.properties,function(gr){return gr!==Ue}):m.attributes.properties,ar=e.length(He)?f(He,ke):W.createObjectLiteralExpression(ke?[ke]:e.emptyArray);return k(le,ar,Ue,de||e.emptyArray,ae,V)}function k(m,de,ae,V,le,ke){var Ue,He=e.getSemanticJsxChildren(V),ar=e.length(He)>1||!!(!((Ue=He[0])===null||Ue===void 0)&&Ue.dotDotDotToken),gr=[m,de];if(ae&&gr.push(J(ae.initializer)),Q.jsx===5){var me=e.getOriginalNode(pe);if(me&&e.isSourceFile(me)){ae===void 0&&gr.push(W.createVoidZero()),gr.push(ar?W.createTrue():W.createFalse());var Ge=e.getLineAndCharacterOfPosition(me,ke.pos);gr.push(W.createObjectLiteralExpression([W.createPropertyAssignment("fileName",g()),W.createPropertyAssignment("lineNumber",W.createNumericLiteral(Ge.line+1)),W.createPropertyAssignment("columnNumber",W.createNumericLiteral(Ge.character+1))])),gr.push(W.createThis())}}var er=e.setTextRange(W.createCallExpression(H(ar),void 0,gr),ke);return le&&e.startOnNewLine(er),er}function I(m,de,ae,V){var le=oe(m),ke=m.attributes.properties,Ue=e.length(ke)?f(ke):W.createNull(),He=F.importSpecifier===void 0?e.createJsxFactoryExpression(W,L.getEmitResolver().getJsxFactoryEntity(pe),Q.reactNamespace,m):p("createElement"),ar=e.createExpressionForJsxElement(W,He,le,Ue,e.mapDefined(de,ue),V);return ae&&e.startOnNewLine(ar),ar}function ne(m,de,ae,V){var le;if(de&&de.length){var ke=_e(de);ke&&(le=ke)}return k(se(),le||W.createObjectLiteralExpression([]),void 0,de,ae,V)}function ee(m,de,ae,V){var le=e.createExpressionForJsxFragment(W,L.getEmitResolver().getJsxFactoryEntity(pe),L.getEmitResolver().getJsxFragmentFactoryEntity(pe),Q.reactNamespace,e.mapDefined(de,ue),m,V);return ae&&e.startOnNewLine(le),le}function A(m){return W.createSpreadAssignment(e.visitNode(m.expression,G,e.isExpression))}function f(m,de){var ae=e.getEmitScriptTarget(Q);return ae&&ae>=5?W.createObjectLiteralExpression(P(m,de)):D(m,de)}function P(m,de){var ae=e.flatten(e.spanMap(m,e.isJsxSpreadAttribute,function(V,le){return e.map(V,function(ke){return le?A(ke):_(ke)})}));return de&&ae.push(de),ae}function D(m,de){var ae=e.flatten(e.spanMap(m,e.isJsxSpreadAttribute,function(V,le){return le?e.map(V,l):W.createObjectLiteralExpression(e.map(V,_))}));return e.isJsxSpreadAttribute(m[0])&&ae.unshift(W.createObjectLiteralExpression()),de&&ae.push(W.createObjectLiteralExpression([de])),e.singleOrUndefined(ae)||N().createAssignHelper(ae)}function l(m){return e.visitNode(m.expression,G,e.isExpression)}function _(m){var de=ve(m),ae=J(m.initializer);return W.createPropertyAssignment(de,ae)}function J(m){if(m===void 0)return W.createTrue();if(m.kind===10){var de=m.singleQuote!==void 0?m.singleQuote:!e.isStringDoubleQuoted(m,pe),ae=W.createStringLiteral(y(m.text)||m.text,de);return e.setTextRange(ae,m)}else return m.kind===287?m.expression===void 0?W.createTrue():e.visitNode(m.expression,G,e.isExpression):e.Debug.failBadSyntaxKind(m)}function w(m){var de=j(m.text);return de===void 0?void 0:W.createStringLiteral(de)}function j(m){for(var de,ae=0,V=-1,le=0;le<m.length;le++){var ke=m.charCodeAt(le);e.isLineBreak(ke)?(ae!==-1&&V!==-1&&(de=U(de,m.substr(ae,V-ae+1))),ae=-1):e.isWhiteSpaceSingleLine(ke)||(V=le,ae===-1&&(ae=le))}return ae!==-1?U(de,m.substr(ae)):de}function U(m,de){var ae=z(de);return m===void 0?ae:m+" "+ae}function z(m){return m.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,function(de,ae,V,le,ke,Ue,He){if(ke)return e.utf16EncodeAsString(parseInt(ke,10));if(Ue)return e.utf16EncodeAsString(parseInt(Ue,16));var ar=O.get(He);return ar?e.utf16EncodeAsString(ar):de})}function y(m){var de=z(m);return de===m?void 0:de}function oe(m){if(m.kind===277)return oe(m.openingElement);var de=m.tagName;return e.isIdentifier(de)&&e.isIntrinsicJsxName(de.escapedText)?W.createStringLiteral(e.idText(de)):e.createExpressionFromEntityName(W,de)}function ve(m){var de=m.name,ae=e.idText(de);return/^[A-Za-z_]\w*$/.test(ae)?de:W.createStringLiteral(ae)}function ce(m){var de=e.visitNode(m.expression,G,e.isExpression);return m.dotDotDotToken?W.createSpreadElement(de):de}}e.transformJsx=a;var O=new e.Map(e.getEntries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))})(Pe||(Pe={}));var Pe;(function(e){function a(O){var L=O.factory,W=O.hoistVariableDeclaration;return e.chainBundle(O,N);function N(S){return S.isDeclarationFile?S:e.visitEachChild(S,Q,O)}function Q(S){if((S.transformFlags&512)===0)return S;switch(S.kind){case 220:return pe(S);default:return e.visitEachChild(S,Q,O)}}function pe(S){switch(S.operatorToken.kind){case 67:return F(S);case 42:return g(S);default:return e.visitEachChild(S,Q,O)}}function F(S){var H,se,p=e.visitNode(S.left,Q,e.isExpression),C=e.visitNode(S.right,Q,e.isExpression);if(e.isElementAccessExpression(p)){var G=L.createTempVariable(W),E=L.createTempVariable(W);H=e.setTextRange(L.createElementAccessExpression(e.setTextRange(L.createAssignment(G,p.expression),p.expression),e.setTextRange(L.createAssignment(E,p.argumentExpression),p.argumentExpression)),p),se=e.setTextRange(L.createElementAccessExpression(G,E),p)}else if(e.isPropertyAccessExpression(p)){var G=L.createTempVariable(W);H=e.setTextRange(L.createPropertyAccessExpression(e.setTextRange(L.createAssignment(G,p.expression),p.expression),p.name),p),se=e.setTextRange(L.createPropertyAccessExpression(G,p.name),p)}else H=p,se=p;return e.setTextRange(L.createAssignment(H,e.setTextRange(L.createGlobalMethodCall("Math","pow",[se,C]),S)),S)}function g(S){var H=e.visitNode(S.left,Q,e.isExpression),se=e.visitNode(S.right,Q,e.isExpression);return e.setTextRange(L.createGlobalMethodCall("Math","pow",[H,se]),S)}}e.transformES2016=a})(Pe||(Pe={}));var Pe;(function(e){var a;(function(g){g[g.CapturedThis=1]="CapturedThis",g[g.BlockScopedBindings=2]="BlockScopedBindings"})(a||(a={}));var O;(function(g){g[g.Body=1]="Body",g[g.Initializer=2]="Initializer"})(O||(O={}));var L;(function(g){g[g.ToOriginal=0]="ToOriginal",g[g.ToOutParameter=1]="ToOutParameter"})(L||(L={}));var W;(function(g){g[g.Break=2]="Break",g[g.Continue=4]="Continue",g[g.Return=8]="Return"})(W||(W={}));var N;(function(g){g[g.None=0]="None",g[g.Function=1]="Function",g[g.ArrowFunction=2]="ArrowFunction",g[g.AsyncFunctionBody=4]="AsyncFunctionBody",g[g.NonStaticClassElement=8]="NonStaticClassElement",g[g.CapturesThis=16]="CapturesThis",g[g.ExportedVariableStatement=32]="ExportedVariableStatement",g[g.TopLevel=64]="TopLevel",g[g.Block=128]="Block",g[g.IterationStatement=256]="IterationStatement",g[g.IterationStatementBlock=512]="IterationStatementBlock",g[g.IterationContainer=1024]="IterationContainer",g[g.ForStatement=2048]="ForStatement",g[g.ForInOrForOfStatement=4096]="ForInOrForOfStatement",g[g.ConstructorWithCapturedSuper=8192]="ConstructorWithCapturedSuper",g[g.StaticInitializer=16384]="StaticInitializer",g[g.AncestorFactsMask=32767]="AncestorFactsMask",g[g.BlockScopeIncludes=0]="BlockScopeIncludes",g[g.BlockScopeExcludes=7104]="BlockScopeExcludes",g[g.SourceFileIncludes=64]="SourceFileIncludes",g[g.SourceFileExcludes=8064]="SourceFileExcludes",g[g.FunctionIncludes=65]="FunctionIncludes",g[g.FunctionExcludes=32670]="FunctionExcludes",g[g.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",g[g.AsyncFunctionBodyExcludes=32662]="AsyncFunctionBodyExcludes",g[g.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",g[g.ArrowFunctionExcludes=15232]="ArrowFunctionExcludes",g[g.ConstructorIncludes=73]="ConstructorIncludes",g[g.ConstructorExcludes=32662]="ConstructorExcludes",g[g.DoOrWhileStatementIncludes=1280]="DoOrWhileStatementIncludes",g[g.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",g[g.ForStatementIncludes=3328]="ForStatementIncludes",g[g.ForStatementExcludes=5056]="ForStatementExcludes",g[g.ForInOrForOfStatementIncludes=5376]="ForInOrForOfStatementIncludes",g[g.ForInOrForOfStatementExcludes=3008]="ForInOrForOfStatementExcludes",g[g.BlockIncludes=128]="BlockIncludes",g[g.BlockExcludes=6976]="BlockExcludes",g[g.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",g[g.IterationStatementBlockExcludes=7104]="IterationStatementBlockExcludes",g[g.StaticInitializerIncludes=16449]="StaticInitializerIncludes",g[g.StaticInitializerExcludes=32670]="StaticInitializerExcludes",g[g.NewTarget=32768]="NewTarget",g[g.CapturedLexicalThis=65536]="CapturedLexicalThis",g[g.SubtreeFactsMask=-32768]="SubtreeFactsMask",g[g.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",g[g.FunctionSubtreeExcludes=98304]="FunctionSubtreeExcludes"})(N||(N={}));var Q;(function(g){g[g.None=0]="None",g[g.UnpackedSpread=1]="UnpackedSpread",g[g.PackedSpread=2]="PackedSpread"})(Q||(Q={}));function pe(g,S){return{kind:g,expression:S}}function F(g){var S=g.factory,H=g.getEmitHelperFactory,se=g.startLexicalEnvironment,p=g.resumeLexicalEnvironment,C=g.endLexicalEnvironment,G=g.hoistVariableDeclaration,E=g.getCompilerOptions(),ue=g.getEmitResolver(),B=g.onSubstituteNode,re=g.onEmitNode;g.onEmitNode=wo,g.onSubstituteNode=No;var M,x,ie,_e;function Y(Ke){_e=e.append(_e,S.createVariableDeclaration(Ke))}var Z,k;return e.chainBundle(g,I);function I(Ke){if(Ke.isDeclarationFile)return Ke;M=Ke,x=Ke.text;var h=j(Ke);return e.addEmitHelpers(h,g.readEmitHelpers()),M=void 0,x=void 0,_e=void 0,ie=0,h}function ne(Ke,h){var Ee=ie;return ie=(ie&~Ke|h)&32767,Ee}function ee(Ke,h,Ee){ie=(ie&~h|Ee)&-32768|Ke}function A(Ke){return(ie&8192)!==0&&Ke.kind===246&&!Ke.expression}function f(Ke){return Ke.transformFlags&2097152&&(e.isReturnStatement(Ke)||e.isIfStatement(Ke)||e.isWithStatement(Ke)||e.isSwitchStatement(Ke)||e.isCaseBlock(Ke)||e.isCaseClause(Ke)||e.isDefaultClause(Ke)||e.isTryStatement(Ke)||e.isCatchClause(Ke)||e.isLabeledStatement(Ke)||e.isIterationStatement(Ke,!1)||e.isBlock(Ke))}function P(Ke){return(Ke.transformFlags&1024)!==0||Z!==void 0||ie&8192&&f(Ke)||e.isIterationStatement(Ke,!1)&&mr(Ke)||(e.getEmitFlags(Ke)&33554432)!==0}function D(Ke){return P(Ke)?w(Ke,!1):Ke}function l(Ke){return P(Ke)?w(Ke,!0):Ke}function _(Ke){if(P(Ke)){var h=e.getOriginalNode(Ke);if(e.isPropertyDeclaration(h)&&e.hasStaticModifier(h)){var Ee=ne(32670,16449),Re=w(Ke,!1);return ee(Ee,98304,0),Re}return w(Ke,!1)}return Ke}function J(Ke){return Ke.kind===106?pn(!0):D(Ke)}function w(Ke,h){switch(Ke.kind){case 124:return;case 256:return ae(Ke);case 225:return V(Ke);case 163:return ye(Ke);case 255:return Lr(Ke);case 213:return Xe(Ke);case 212:return Cr(Ke);case 253:return sr(Ke);case 79:return m(Ke);case 254:return qi(Ke);case 248:return U(Ke);case 262:return z(Ke);case 234:return ci(Ke,!1);case 245:case 244:return de(Ke);case 249:return X(Ke);case 239:case 240:return Qe(Ke,void 0);case 241:return _r(Ke,void 0);case 242:return Dr(Ke,void 0);case 243:return Me(Ke,void 0);case 237:return be(Ke);case 204:return Oe(Ke);case 291:return Oi(Ke);case 295:return tt(Ke);case 161:return ta(Ke);case 203:return on(Ke);case 207:return qr(Ke);case 208:return zn(Ke);case 211:return or(Ke,h);case 220:return Kr(Ke,h);case 349:return ei(Ke,h);case 14:case 15:case 16:case 17:return Ko(Ke);case 10:return rs(Ke);case 8:return rn(Ke);case 209:return Do(Ke);case 222:return io(Ke);case 223:return Xa(Ke);case 224:return ro(Ke);case 106:return pn(!1);case 108:return ve(Ke);case 230:return Qn(Ke);case 168:return Qr(Ke);case 171:case 172:return Ct(Ke);case 236:return Si(Ke);case 246:return oe(Ke);case 216:return ce(Ke);default:return e.visitEachChild(Ke,D,g)}}function j(Ke){var h=ne(8064,64),Ee=[],Re=[];se();var nr=S.copyPrologue(Ke.statements,Ee,!1,D);return e.addRange(Re,e.visitNodes(Ke.statements,D,e.isStatement,nr)),_e&&Re.push(S.createVariableStatement(void 0,S.createVariableDeclarationList(_e))),S.mergeLexicalEnvironment(Ee,C()),dr(Ee,Ke),ee(h,0,0),S.updateSourceFile(Ke,e.setTextRange(S.createNodeArray(e.concatenate(Ee,Re)),Ke.statements))}function U(Ke){if(Z!==void 0){var h=Z.allowedNonLabeledJumps;Z.allowedNonLabeledJumps|=2;var Ee=e.visitEachChild(Ke,D,g);return Z.allowedNonLabeledJumps=h,Ee}return e.visitEachChild(Ke,D,g)}function z(Ke){var h=ne(7104,0),Ee=e.visitEachChild(Ke,D,g);return ee(h,0,0),Ee}function y(Ke){return e.setOriginalNode(S.createReturnStatement(S.createUniqueName("_this",48)),Ke)}function oe(Ke){return Z?(Z.nonLocalJumps|=8,A(Ke)&&(Ke=y(Ke)),S.createReturnStatement(S.createObjectLiteralExpression([S.createPropertyAssignment(S.createIdentifier("value"),Ke.expression?e.visitNode(Ke.expression,D,e.isExpression):S.createVoidZero())]))):A(Ke)?y(Ke):e.visitEachChild(Ke,D,g)}function ve(Ke){return ie&2&&!(ie&16384)&&(ie|=65536),Z?ie&2?(Z.containsLexicalThis=!0,Ke):Z.thisName||(Z.thisName=S.createUniqueName("this")):Ke}function ce(Ke){return e.visitEachChild(Ke,l,g)}function m(Ke){return Z&&ue.isArgumentsLocalBinding(Ke)?Z.argumentsName||(Z.argumentsName=S.createUniqueName("arguments")):Ke}function de(Ke){if(Z){var h=Ke.kind===245?2:4,Ee=Ke.label&&Z.labels&&Z.labels.get(e.idText(Ke.label))||!Ke.label&&Z.allowedNonLabeledJumps&h;if(!Ee){var Re=void 0,nr=Ke.label;nr?Ke.kind===245?(Re="break-".concat(nr.escapedText),Hi(Z,!0,e.idText(nr),Re)):(Re="continue-".concat(nr.escapedText),Hi(Z,!1,e.idText(nr),Re)):Ke.kind===245?(Z.nonLocalJumps|=2,Re="break"):(Z.nonLocalJumps|=4,Re="continue");var Gr=S.createStringLiteral(Re);if(Z.loopOutParameters.length){for(var _i=Z.loopOutParameters,Ei=void 0,Ki=0;Ki<_i.length;Ki++){var Nt=ua(_i[Ki],1);Ki===0?Ei=Nt:Ei=S.createBinaryExpression(Ei,27,Nt)}Gr=S.createBinaryExpression(Ei,27,Gr)}return S.createReturnStatement(Gr)}}return e.visitEachChild(Ke,D,g)}function ae(Ke){var h=S.createVariableDeclaration(S.getLocalName(Ke,!0),void 0,void 0,le(Ke));e.setOriginalNode(h,Ke);var Ee=[],Re=S.createVariableStatement(void 0,S.createVariableDeclarationList([h]));if(e.setOriginalNode(Re,Ke),e.setTextRange(Re,Ke),e.startOnNewLine(Re),Ee.push(Re),e.hasSyntacticModifier(Ke,1)){var nr=e.hasSyntacticModifier(Ke,512)?S.createExportDefault(S.getLocalName(Ke)):S.createExternalModuleExport(S.getLocalName(Ke));e.setOriginalNode(nr,Re),Ee.push(nr)}var Gr=e.getEmitFlags(Ke);return(Gr&4194304)===0&&(Ee.push(S.createEndOfDeclarationMarker(Ke)),e.setEmitFlags(Re,Gr|4194304)),e.singleOrMany(Ee)}function V(Ke){return le(Ke)}function le(Ke){Ke.name&&xo();var h=e.getClassExtendsHeritageElement(Ke),Ee=S.createFunctionExpression(void 0,void 0,void 0,void 0,h?[S.createParameterDeclaration(void 0,void 0,void 0,S.createUniqueName("_super",48))]:[],void 0,ke(Ke,h));e.setEmitFlags(Ee,e.getEmitFlags(Ke)&65536|524288);var Re=S.createPartiallyEmittedExpression(Ee);e.setTextRangeEnd(Re,Ke.end),e.setEmitFlags(Re,1536);var nr=S.createPartiallyEmittedExpression(Re);e.setTextRangeEnd(nr,e.skipTrivia(x,Ke.pos)),e.setEmitFlags(nr,1536);var Gr=S.createParenthesizedExpression(S.createCallExpression(nr,void 0,h?[e.visitNode(h.expression,D,e.isExpression)]:[]));return e.addSyntheticLeadingComment(Gr,3,"* @class "),Gr}function ke(Ke,h){var Ee=[],Re=S.getInternalName(Ke),nr=e.isIdentifierANonContextualKeyword(Re)?S.getGeneratedNameForNode(Re):Re;se(),Ue(Ee,Ke,h),He(Ee,Ke,nr,h),Er(Ee,Ke);var Gr=e.createTokenRange(e.skipTrivia(x,Ke.members.end),19),_i=S.createPartiallyEmittedExpression(nr);e.setTextRangeEnd(_i,Gr.end),e.setEmitFlags(_i,1536);var Ei=S.createReturnStatement(_i);e.setTextRangePos(Ei,Gr.pos),e.setEmitFlags(Ei,1920),Ee.push(Ei),e.insertStatementsAfterStandardPrologue(Ee,C());var Ki=S.createBlock(e.setTextRange(S.createNodeArray(Ee),Ke.members),!0);return e.setEmitFlags(Ki,1536),Ki}function Ue(Ke,h,Ee){Ee&&Ke.push(e.setTextRange(S.createExpressionStatement(H().createExtendsHelper(S.getInternalName(h))),Ee))}function He(Ke,h,Ee,Re){var nr=Z;Z=void 0;var Gr=ne(32662,73),_i=e.getFirstConstructorWithBody(h),Ei=an(_i,Re!==void 0),Ki=S.createFunctionDeclaration(void 0,void 0,void 0,Ee,void 0,ar(_i,Ei),void 0,me(_i,h,Re,Ei));e.setTextRange(Ki,_i||h),Re&&e.setEmitFlags(Ki,8),Ke.push(Ki),ee(Gr,98304,0),Z=nr}function ar(Ke,h){return e.visitParameterList(Ke&&!h?Ke.parameters:void 0,D,g)||[]}function gr(Ke,h){var Ee=[];p(),S.mergeLexicalEnvironment(Ee,C()),h&&Ee.push(S.createReturnStatement(we()));var Re=S.createNodeArray(Ee);e.setTextRange(Re,Ke.members);var nr=S.createBlock(Re,!0);return e.setTextRange(nr,Ke),e.setEmitFlags(nr,1536),nr}function me(Ke,h,Ee,Re){var nr=!!Ee&&e.skipOuterExpressions(Ee.expression).kind!==104;if(!Ke)return gr(h,nr);var Gr=[],_i=[];p();var Ei=e.takeWhile(Ke.body.statements,e.isPrologueDirective),Ki=Ge(Ke.body.statements,Ei),Nt=Ki.superCall,ca=Ki.superStatementIndex,Fa=ca===-1?Ei.length:ca+1,Ta=Fa;Re||(Ta=S.copyStandardPrologue(Ke.body.statements,Gr,Ta,!1)),Re||(Ta=S.copyCustomPrologue(Ke.body.statements,_i,Ta,D,void 0));var In;if(Re?In=we():Nt&&(In=Rn(Nt)),In&&(ie|=8192),ge(Gr,Ke),Ir(Gr,Ke,Re),e.addRange(_i,e.visitNodes(Ke.body.statements,D,e.isStatement,Ta)),S.mergeLexicalEnvironment(Gr,C()),n(Gr,Ke,!1),nr||In)if(In&&Fa===Ke.body.statements.length&&!(Ke.body.transformFlags&8192)){var so=e.cast(e.cast(In,e.isBinaryExpression).left,e.isCallExpression),as=S.createReturnStatement(In);e.setCommentRange(as,e.getCommentRange(so)),e.setEmitFlags(so,1536),_i.push(as)}else ca<=Ei.length?Tr(_i,Ke,In||he()):(Tr(Gr,Ke,he()),In&&Br(_i,In)),er(Ke.body)||_i.push(S.createReturnStatement(S.createUniqueName("_this",48)));else dr(Gr,Ke);var Ho=S.createBlock(e.setTextRange(S.createNodeArray(qe(qe(qe(qe([],Ei,!0),Gr,!0),ca<=Ei.length?e.emptyArray:e.visitNodes(Ke.body.statements,D,e.isStatement,Ei.length,ca),!0),_i,!0)),Ke.body.statements),!0);return e.setTextRange(Ho,Ke.body),Ho}function Ge(Ke,h){for(var Ee=h.length;Ee<Ke.length;Ee+=1){var Re=e.getSuperCallFromStatement(Ke[Ee]);if(Re)return{superCall:Re,superStatementIndex:Ee}}return{superStatementIndex:-1}}function er(Ke){if(Ke.kind===246)return!0;if(Ke.kind===238){var h=Ke;if(h.elseStatement)return er(h.thenStatement)&&er(h.elseStatement)}else if(Ke.kind===234){var Ee=e.lastOrUndefined(Ke.statements);if(Ee&&er(Ee))return!0}return!1}function he(){return e.setEmitFlags(S.createThis(),4)}function we(){return S.createLogicalOr(S.createLogicalAnd(S.createStrictInequality(S.createUniqueName("_super",48),S.createNull()),S.createFunctionApplyCall(S.createUniqueName("_super",48),he(),S.createIdentifier("arguments"))),he())}function ye(Ke){if(!Ke.dotDotDotToken)return e.isBindingPattern(Ke.name)?e.setOriginalNode(e.setTextRange(S.createParameterDeclaration(void 0,void 0,void 0,S.getGeneratedNameForNode(Ke),void 0,void 0,void 0),Ke),Ke):Ke.initializer?e.setOriginalNode(e.setTextRange(S.createParameterDeclaration(void 0,void 0,void 0,Ke.name,void 0,void 0,void 0),Ke),Ke):Ke}function Se(Ke){return Ke.initializer!==void 0||e.isBindingPattern(Ke.name)}function ge(Ke,h){if(!e.some(h.parameters,Se))return!1;for(var Ee=!1,Re=0,nr=h.parameters;Re<nr.length;Re++){var Gr=nr[Re],_i=Gr.name,Ei=Gr.initializer,Ki=Gr.dotDotDotToken;Ki||(e.isBindingPattern(_i)?Ee=Fe(Ke,Gr,_i,Ei)||Ee:Ei&&(cr(Ke,Gr,_i,Ei),Ee=!0))}return Ee}function Fe(Ke,h,Ee,Re){return Ee.elements.length>0?(e.insertStatementAfterCustomPrologue(Ke,e.setEmitFlags(S.createVariableStatement(void 0,S.createVariableDeclarationList(e.flattenDestructuringBinding(h,D,g,0,S.getGeneratedNameForNode(h)))),1048576)),!0):Re?(e.insertStatementAfterCustomPrologue(Ke,e.setEmitFlags(S.createExpressionStatement(S.createAssignment(S.getGeneratedNameForNode(h),e.visitNode(Re,D,e.isExpression))),1048576)),!0):!1}function cr(Ke,h,Ee,Re){Re=e.visitNode(Re,D,e.isExpression);var nr=S.createIfStatement(S.createTypeCheck(S.cloneNode(Ee),"undefined"),e.setEmitFlags(e.setTextRange(S.createBlock([S.createExpressionStatement(e.setEmitFlags(e.setTextRange(S.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(S.cloneNode(Ee),Ee),Ee.parent),48),e.setEmitFlags(Re,48|e.getEmitFlags(Re)|1536)),h),1536))]),h),1953));e.startOnNewLine(nr),e.setTextRange(nr,h),e.setEmitFlags(nr,1050528),e.insertStatementAfterCustomPrologue(Ke,nr)}function ur(Ke,h){return!!(Ke&&Ke.dotDotDotToken&&!h)}function Ir(Ke,h,Ee){var Re=[],nr=e.lastOrUndefined(h.parameters);if(!ur(nr,Ee))return!1;var Gr=nr.name.kind===79?e.setParent(e.setTextRange(S.cloneNode(nr.name),nr.name),nr.name.parent):S.createTempVariable(void 0);e.setEmitFlags(Gr,48);var _i=nr.name.kind===79?S.cloneNode(nr.name):Gr,Ei=h.parameters.length-1,Ki=S.createLoopVariable();Re.push(e.setEmitFlags(e.setTextRange(S.createVariableStatement(void 0,S.createVariableDeclarationList([S.createVariableDeclaration(Gr,void 0,void 0,S.createArrayLiteralExpression([]))])),nr),1048576));var Nt=S.createForStatement(e.setTextRange(S.createVariableDeclarationList([S.createVariableDeclaration(Ki,void 0,void 0,S.createNumericLiteral(Ei))]),nr),e.setTextRange(S.createLessThan(Ki,S.createPropertyAccessExpression(S.createIdentifier("arguments"),"length")),nr),e.setTextRange(S.createPostfixIncrement(Ki),nr),S.createBlock([e.startOnNewLine(e.setTextRange(S.createExpressionStatement(S.createAssignment(S.createElementAccessExpression(_i,Ei===0?Ki:S.createSubtract(Ki,S.createNumericLiteral(Ei))),S.createElementAccessExpression(S.createIdentifier("arguments"),Ki))),nr))]));return e.setEmitFlags(Nt,1048576),e.startOnNewLine(Nt),Re.push(Nt),nr.name.kind!==79&&Re.push(e.setEmitFlags(e.setTextRange(S.createVariableStatement(void 0,S.createVariableDeclarationList(e.flattenDestructuringBinding(nr,D,g,0,_i))),nr),1048576)),e.insertStatementsAfterCustomPrologue(Ke,Re),!0}function dr(Ke,h){return ie&65536&&h.kind!==213?(Tr(Ke,h,S.createThis()),!0):!1}function Br(Ke,h){ds();var Ee=S.createExpressionStatement(S.createBinaryExpression(S.createThis(),63,h));e.insertStatementAfterCustomPrologue(Ke,Ee),e.setCommentRange(Ee,e.getOriginalNode(h).parent)}function Tr(Ke,h,Ee){ds();var Re=S.createVariableStatement(void 0,S.createVariableDeclarationList([S.createVariableDeclaration(S.createUniqueName("_this",48),void 0,void 0,Ee)]));e.setEmitFlags(Re,1050112),e.setSourceMapRange(Re,h),e.insertStatementAfterCustomPrologue(Ke,Re)}function n(Ke,h,Ee){if(ie&32768){var Re=void 0;switch(h.kind){case 213:return Ke;case 168:case 171:case 172:Re=S.createVoidZero();break;case 170:Re=S.createPropertyAccessExpression(e.setEmitFlags(S.createThis(),4),"constructor");break;case 255:case 212:Re=S.createConditionalExpression(S.createLogicalAnd(e.setEmitFlags(S.createThis(),4),S.createBinaryExpression(e.setEmitFlags(S.createThis(),4),102,S.getLocalName(h))),void 0,S.createPropertyAccessExpression(e.setEmitFlags(S.createThis(),4),"constructor"),void 0,S.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(h)}var nr=S.createVariableStatement(void 0,S.createVariableDeclarationList([S.createVariableDeclaration(S.createUniqueName("_newTarget",48),void 0,void 0,Re)]));e.setEmitFlags(nr,1050112),Ee&&(Ke=Ke.slice()),e.insertStatementAfterCustomPrologue(Ke,nr)}return Ke}function Er(Ke,h){for(var Ee=0,Re=h.members;Ee<Re.length;Ee++){var nr=Re[Ee];switch(nr.kind){case 233:Ke.push(br(nr));break;case 168:Ke.push(Pr(Ka(h,nr),nr,h));break;case 171:case 172:var Gr=e.getAllAccessorDeclarations(h.members,nr);nr===Gr.firstAccessor&&Ke.push(Ce(Ka(h,nr),Gr,h));break;case 170:case 169:break;default:e.Debug.failBadSyntaxKind(nr,M&&M.fileName);break}}}function br(Ke){return e.setTextRange(S.createEmptyStatement(),Ke)}function Pr(Ke,h,Ee){var Re=e.getCommentRange(h),nr=e.getSourceMapRange(h),Gr=Jr(h,h,void 0,Ee),_i=e.visitNode(h.name,D,e.isPropertyName),Ei;if(!e.isPrivateIdentifier(_i)&&e.getUseDefineForClassFields(g.getCompilerOptions())){var Ki=e.isComputedPropertyName(_i)?_i.expression:e.isIdentifier(_i)?S.createStringLiteral(e.unescapeLeadingUnderscores(_i.escapedText)):_i;Ei=S.createObjectDefinePropertyCall(Ke,Ki,S.createPropertyDescriptor({value:Gr,enumerable:!1,writable:!0,configurable:!0}))}else{var Nt=e.createMemberAccessForPropertyName(S,Ke,_i,h.name);Ei=S.createAssignment(Nt,Gr)}e.setEmitFlags(Gr,1536),e.setSourceMapRange(Gr,nr);var ca=e.setTextRange(S.createExpressionStatement(Ei),h);return e.setOriginalNode(ca,h),e.setCommentRange(ca,Re),e.setEmitFlags(ca,48),ca}function Ce(Ke,h,Ee){var Re=S.createExpressionStatement(Le(Ke,h,Ee,!1));return e.setEmitFlags(Re,1536),e.setSourceMapRange(Re,e.getSourceMapRange(h.firstAccessor)),Re}function Le(Ke,h,Ee,Re){var nr=h.firstAccessor,Gr=h.getAccessor,_i=h.setAccessor,Ei=e.setParent(e.setTextRange(S.cloneNode(Ke),Ke),Ke.parent);e.setEmitFlags(Ei,1568),e.setSourceMapRange(Ei,nr.name);var Ki=e.visitNode(nr.name,D,e.isPropertyName);if(e.isPrivateIdentifier(Ki))return e.Debug.failBadSyntaxKind(Ki,"Encountered unhandled private identifier while transforming ES2015.");var Nt=e.createExpressionForPropertyName(S,Ki);e.setEmitFlags(Nt,1552),e.setSourceMapRange(Nt,nr.name);var ca=[];if(Gr){var Fa=Jr(Gr,void 0,void 0,Ee);e.setSourceMapRange(Fa,e.getSourceMapRange(Gr)),e.setEmitFlags(Fa,512);var Ta=S.createPropertyAssignment("get",Fa);e.setCommentRange(Ta,e.getCommentRange(Gr)),ca.push(Ta)}if(_i){var In=Jr(_i,void 0,void 0,Ee);e.setSourceMapRange(In,e.getSourceMapRange(_i)),e.setEmitFlags(In,512);var so=S.createPropertyAssignment("set",In);e.setCommentRange(so,e.getCommentRange(_i)),ca.push(so)}ca.push(S.createPropertyAssignment("enumerable",Gr||_i?S.createFalse():S.createTrue()),S.createPropertyAssignment("configurable",S.createTrue()));var as=S.createCallExpression(S.createPropertyAccessExpression(S.createIdentifier("Object"),"defineProperty"),void 0,[Ei,Nt,S.createObjectLiteralExpression(ca,!0)]);return Re&&e.startOnNewLine(as),as}function Xe(Ke){Ke.transformFlags&8192&&!(ie&16384)&&(ie|=65536);var h=Z;Z=void 0;var Ee=ne(15232,66),Re=S.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(Ke.parameters,D,g),void 0,Rr(Ke));return e.setTextRange(Re,Ke),e.setOriginalNode(Re,Ke),e.setEmitFlags(Re,8),ee(Ee,0,0),Z=h,Re}function Cr(Ke){var h=e.getEmitFlags(Ke)&262144?ne(32662,69):ne(32670,65),Ee=Z;Z=void 0;var Re=e.visitParameterList(Ke.parameters,D,g),nr=Rr(Ke),Gr=ie&32768?S.getLocalName(Ke):Ke.name;return ee(h,98304,0),Z=Ee,S.updateFunctionExpression(Ke,void 0,Ke.asteriskToken,Gr,void 0,Re,void 0,nr)}function Lr(Ke){var h=Z;Z=void 0;var Ee=ne(32670,65),Re=e.visitParameterList(Ke.parameters,D,g),nr=Rr(Ke),Gr=ie&32768?S.getLocalName(Ke):Ke.name;return ee(Ee,98304,0),Z=h,S.updateFunctionDeclaration(Ke,void 0,e.visitNodes(Ke.modifiers,D,e.isModifier),Ke.asteriskToken,Gr,void 0,Re,void 0,nr)}function Jr(Ke,h,Ee,Re){var nr=Z;Z=void 0;var Gr=Re&&e.isClassLike(Re)&&!e.isStatic(Ke)?ne(32670,73):ne(32670,65),_i=e.visitParameterList(Ke.parameters,D,g),Ei=Rr(Ke);return ie&32768&&!Ee&&(Ke.kind===255||Ke.kind===212)&&(Ee=S.getGeneratedNameForNode(Ke)),ee(Gr,98304,0),Z=nr,e.setOriginalNode(e.setTextRange(S.createFunctionExpression(void 0,Ke.asteriskToken,Ee,void 0,_i,void 0,Ei),h),Ke)}function Rr(Ke){var h=!1,Ee=!1,Re,nr,Gr=[],_i=[],Ei=Ke.body,Ki;if(p(),e.isBlock(Ei)&&(Ki=S.copyStandardPrologue(Ei.statements,Gr,0,!1),Ki=S.copyCustomPrologue(Ei.statements,_i,Ki,D,e.isHoistedFunction),Ki=S.copyCustomPrologue(Ei.statements,_i,Ki,D,e.isHoistedVariableStatement)),h=ge(_i,Ke)||h,h=Ir(_i,Ke,!1)||h,e.isBlock(Ei))Ki=S.copyCustomPrologue(Ei.statements,_i,Ki,D),Re=Ei.statements,e.addRange(_i,e.visitNodes(Ei.statements,D,e.isStatement,Ki)),!h&&Ei.multiLine&&(h=!0);else{e.Debug.assert(Ke.kind===213),Re=e.moveRangeEnd(Ei,-1);var Nt=Ke.equalsGreaterThanToken;!e.nodeIsSynthesized(Nt)&&!e.nodeIsSynthesized(Ei)&&(e.rangeEndIsOnSameLineAsRangeStart(Nt,Ei,M)?Ee=!0:h=!0);var ca=e.visitNode(Ei,D,e.isExpression),Fa=S.createReturnStatement(ca);e.setTextRange(Fa,Ei),e.moveSyntheticComments(Fa,Ei),e.setEmitFlags(Fa,1440),_i.push(Fa),nr=Ei}if(S.mergeLexicalEnvironment(Gr,C()),n(Gr,Ke,!1),dr(Gr,Ke),e.some(Gr)&&(h=!0),_i.unshift.apply(_i,Gr),e.isBlock(Ei)&&e.arrayIsEqualTo(_i,Ei.statements))return Ei;var Ta=S.createBlock(e.setTextRange(S.createNodeArray(_i),Re),h);return e.setTextRange(Ta,Ke.body),!h&&Ee&&e.setEmitFlags(Ta,1),nr&&e.setTokenSourceMapRange(Ta,19,nr),e.setOriginalNode(Ta,Ke.body),Ta}function ci(Ke,h){if(h)return e.visitEachChild(Ke,D,g);var Ee=ie&256?ne(7104,512):ne(6976,128),Re=e.visitEachChild(Ke,D,g);return ee(Ee,0,0),Re}function be(Ke){return e.visitEachChild(Ke,l,g)}function or(Ke,h){return e.visitEachChild(Ke,h?l:D,g)}function Kr(Ke,h){return e.isDestructuringAssignment(Ke)?e.flattenDestructuringAssignment(Ke,D,g,0,!h):Ke.operatorToken.kind===27?S.updateBinaryExpression(Ke,e.visitNode(Ke.left,l,e.isExpression),Ke.operatorToken,e.visitNode(Ke.right,h?l:D,e.isExpression)):e.visitEachChild(Ke,D,g)}function ei(Ke,h){if(h)return e.visitEachChild(Ke,l,g);for(var Ee,Re=0;Re<Ke.elements.length;Re++){var nr=Ke.elements[Re],Gr=e.visitNode(nr,Re<Ke.elements.length-1?l:D,e.isExpression);(Ee||Gr!==nr)&&(Ee||(Ee=Ke.elements.slice(0,Re)),Ee.push(Gr))}var _i=Ee?e.setTextRange(S.createNodeArray(Ee),Ke.elements):Ke.elements;return S.updateCommaListExpression(Ke,_i)}function li(Ke){return Ke.declarationList.declarations.length===1&&!!Ke.declarationList.declarations[0].initializer&&!!(e.getEmitFlags(Ke.declarationList.declarations[0].initializer)&33554432)}function Si(Ke){var h=ne(0,e.hasSyntacticModifier(Ke,1)?32:0),Ee;if(Z&&(Ke.declarationList.flags&3)===0&&!li(Ke)){for(var Re=void 0,nr=0,Gr=Ke.declarationList.declarations;nr<Gr.length;nr++){var _i=Gr[nr];if(Ur(Z,_i),_i.initializer){var Ei=void 0;e.isBindingPattern(_i.name)?Ei=e.flattenDestructuringAssignment(_i,D,g,0):(Ei=S.createBinaryExpression(_i.name,63,e.visitNode(_i.initializer,D,e.isExpression)),e.setTextRange(Ei,_i)),Re=e.append(Re,Ei)}}Re?Ee=e.setTextRange(S.createExpressionStatement(S.inlineExpressions(Re)),Ke):Ee=void 0}else Ee=e.visitEachChild(Ke,D,g);return ee(h,0,0),Ee}function qi(Ke){if(Ke.flags&3||Ke.transformFlags&262144){Ke.flags&3&&xo();var h=e.flatMap(Ke.declarations,Ke.flags&1?aa:sr),Ee=S.createVariableDeclarationList(h);return e.setOriginalNode(Ee,Ke),e.setTextRange(Ee,Ke),e.setCommentRange(Ee,Ke),Ke.transformFlags&262144&&(e.isBindingPattern(Ke.declarations[0].name)||e.isBindingPattern(e.last(Ke.declarations).name))&&e.setSourceMapRange(Ee,ft(h)),Ee}return e.visitEachChild(Ke,D,g)}function ft(Ke){for(var h=-1,Ee=-1,Re=0,nr=Ke;Re<nr.length;Re++){var Gr=nr[Re];h=h===-1?Gr.pos:Gr.pos===-1?h:Math.min(h,Gr.pos),Ee=Math.max(Ee,Gr.end)}return e.createRange(h,Ee)}function bt(Ke){var h=ue.getNodeCheckFlags(Ke),Ee=h&262144,Re=h&524288,nr=(ie&64)!==0||Ee&&Re&&(ie&512)!==0,Gr=!nr&&(ie&4096)===0&&(!ue.isDeclarationWithCollidingName(Ke)||Re&&!Ee&&(ie&6144)===0);return Gr}function aa(Ke){var h=Ke.name;return e.isBindingPattern(h)?sr(Ke):!Ke.initializer&&bt(Ke)?S.updateVariableDeclaration(Ke,Ke.name,void 0,void 0,S.createVoidZero()):e.visitEachChild(Ke,D,g)}function sr(Ke){var h=ne(32,0),Ee;return e.isBindingPattern(Ke.name)?Ee=e.flattenDestructuringBinding(Ke,D,g,0,void 0,(h&32)!==0):Ee=e.visitEachChild(Ke,D,g),ee(h,0,0),Ee}function Ji(Ke){Z.labels.set(e.idText(Ke.label),!0)}function di(Ke){Z.labels.set(e.idText(Ke.label),!1)}function X(Ke){Z&&!Z.labels&&(Z.labels=new e.Map);var h=e.unwrapInnermostStatementOfLabel(Ke,Z&&Ji);return e.isIterationStatement(h,!1)?Ye(h,Ke):S.restoreEnclosingLabel(e.visitNode(h,D,e.isStatement,S.liftToBlock),Ke,Z&&di)}function Ye(Ke,h){switch(Ke.kind){case 239:case 240:return Qe(Ke,h);case 241:return _r(Ke,h);case 242:return Dr(Ke,h);case 243:return Me(Ke,h)}}function Be(Ke,h,Ee,Re,nr){var Gr=ne(Ke,h),_i=si(Ee,Re,Gr,nr);return ee(Gr,0,0),_i}function Qe(Ke,h){return Be(0,1280,Ke,h)}function _r(Ke,h){return Be(5056,3328,Ke,h)}function hr(Ke){return S.updateForStatement(Ke,e.visitNode(Ke.initializer,l,e.isForInitializer),e.visitNode(Ke.condition,D,e.isExpression),e.visitNode(Ke.incrementor,l,e.isExpression),e.visitNode(Ke.statement,D,e.isStatement,S.liftToBlock))}function Dr(Ke,h){return Be(3008,5376,Ke,h)}function Me(Ke,h){return Be(3008,5376,Ke,h,E.downlevelIteration?Je:ze)}function v(Ke,h,Ee){var Re=[],nr=Ke.initializer;if(e.isVariableDeclarationList(nr)){Ke.initializer.flags&3&&xo();var Gr=e.firstOrUndefined(nr.declarations);if(Gr&&e.isBindingPattern(Gr.name)){var _i=e.flattenDestructuringBinding(Gr,D,g,0,h),Ei=e.setTextRange(S.createVariableDeclarationList(_i),Ke.initializer);e.setOriginalNode(Ei,Ke.initializer),e.setSourceMapRange(Ei,e.createRange(_i[0].pos,e.last(_i).end)),Re.push(S.createVariableStatement(void 0,Ei))}else Re.push(e.setTextRange(S.createVariableStatement(void 0,e.setOriginalNode(e.setTextRange(S.createVariableDeclarationList([S.createVariableDeclaration(Gr?Gr.name:S.createTempVariable(void 0),void 0,void 0,h)]),e.moveRangePos(nr,-1)),nr)),e.moveRangeEnd(nr,-1)))}else{var Ki=S.createAssignment(nr,h);e.isDestructuringAssignment(Ki)?Re.push(S.createExpressionStatement(Kr(Ki,!0))):(e.setTextRangeEnd(Ki,nr.end),Re.push(e.setTextRange(S.createExpressionStatement(e.visitNode(Ki,D,e.isExpression)),e.moveRangeEnd(nr,-1))))}if(Ee)return xe(e.addRange(Re,Ee));var Nt=e.visitNode(Ke.statement,D,e.isStatement,S.liftToBlock);return e.isBlock(Nt)?S.updateBlock(Nt,e.setTextRange(S.createNodeArray(e.concatenate(Re,Nt.statements)),Nt.statements)):(Re.push(Nt),xe(Re))}function xe(Ke){return e.setEmitFlags(S.createBlock(S.createNodeArray(Ke),!0),432)}function ze(Ke,h,Ee){var Re=e.visitNode(Ke.expression,D,e.isExpression),nr=S.createLoopVariable(),Gr=e.isIdentifier(Re)?S.getGeneratedNameForNode(Re):S.createTempVariable(void 0);e.setEmitFlags(Re,48|e.getEmitFlags(Re));var _i=e.setTextRange(S.createForStatement(e.setEmitFlags(e.setTextRange(S.createVariableDeclarationList([e.setTextRange(S.createVariableDeclaration(nr,void 0,void 0,S.createNumericLiteral(0)),e.moveRangePos(Ke.expression,-1)),e.setTextRange(S.createVariableDeclaration(Gr,void 0,void 0,Re),Ke.expression)]),Ke.expression),2097152),e.setTextRange(S.createLessThan(nr,S.createPropertyAccessExpression(Gr,"length")),Ke.expression),e.setTextRange(S.createPostfixIncrement(nr),Ke.expression),v(Ke,S.createElementAccessExpression(Gr,nr),Ee)),Ke);return e.setEmitFlags(_i,256),e.setTextRange(_i,Ke),S.restoreEnclosingLabel(_i,h,Z&&di)}function Je(Ke,h,Ee,Re){var nr=e.visitNode(Ke.expression,D,e.isExpression),Gr=e.isIdentifier(nr)?S.getGeneratedNameForNode(nr):S.createTempVariable(void 0),_i=e.isIdentifier(nr)?S.getGeneratedNameForNode(Gr):S.createTempVariable(void 0),Ei=S.createUniqueName("e"),Ki=S.getGeneratedNameForNode(Ei),Nt=S.createTempVariable(void 0),ca=e.setTextRange(H().createValuesHelper(nr),Ke.expression),Fa=S.createCallExpression(S.createPropertyAccessExpression(Gr,"next"),void 0,[]);G(Ei),G(Nt);var Ta=Re&1024?S.inlineExpressions([S.createAssignment(Ei,S.createVoidZero()),ca]):ca,In=e.setEmitFlags(e.setTextRange(S.createForStatement(e.setEmitFlags(e.setTextRange(S.createVariableDeclarationList([e.setTextRange(S.createVariableDeclaration(Gr,void 0,void 0,Ta),Ke.expression),S.createVariableDeclaration(_i,void 0,void 0,Fa)]),Ke.expression),2097152),S.createLogicalNot(S.createPropertyAccessExpression(_i,"done")),S.createAssignment(_i,Fa),v(Ke,S.createPropertyAccessExpression(_i,"value"),Ee)),Ke),256);return S.createTryStatement(S.createBlock([S.restoreEnclosingLabel(In,h,Z&&di)]),S.createCatchClause(S.createVariableDeclaration(Ki),e.setEmitFlags(S.createBlock([S.createExpressionStatement(S.createAssignment(Ei,S.createObjectLiteralExpression([S.createPropertyAssignment("error",Ki)])))]),1)),S.createBlock([S.createTryStatement(S.createBlock([e.setEmitFlags(S.createIfStatement(S.createLogicalAnd(S.createLogicalAnd(_i,S.createLogicalNot(S.createPropertyAccessExpression(_i,"done"))),S.createAssignment(Nt,S.createPropertyAccessExpression(Gr,"return"))),S.createExpressionStatement(S.createFunctionCallCall(Nt,Gr,[]))),1)]),void 0,e.setEmitFlags(S.createBlock([e.setEmitFlags(S.createIfStatement(Ei,S.createThrowStatement(S.createPropertyAccessExpression(Ei,"error"))),1)]),1))]))}function Oe(Ke){for(var h=Ke.properties,Ee=-1,Re=!1,nr=0;nr<h.length;nr++){var Gr=h[nr];if(Gr.transformFlags&524288&&ie&4||(Re=e.Debug.checkDefined(Gr.name).kind===161)){Ee=nr;break}}if(Ee<0)return e.visitEachChild(Ke,D,g);var _i=S.createTempVariable(G),Ei=[],Ki=S.createAssignment(_i,e.setEmitFlags(S.createObjectLiteralExpression(e.visitNodes(h,D,e.isObjectLiteralElementLike,0,Ee),Ke.multiLine),Re?65536:0));return Ke.multiLine&&e.startOnNewLine(Ki),Ei.push(Ki),gt(Ei,Ke,_i,Ee),Ei.push(Ke.multiLine?e.startOnNewLine(e.setParent(e.setTextRange(S.cloneNode(_i),_i),_i.parent)):_i),S.inlineExpressions(Ei)}function Fr(Ke){return(ue.getNodeCheckFlags(Ke)&131072)!==0}function Xr(Ke){return e.isForStatement(Ke)&&!!Ke.initializer&&Fr(Ke.initializer)}function Or(Ke){return e.isForStatement(Ke)&&!!Ke.condition&&Fr(Ke.condition)}function We(Ke){return e.isForStatement(Ke)&&!!Ke.incrementor&&Fr(Ke.incrementor)}function mr(Ke){return Nr(Ke)||Xr(Ke)}function Nr(Ke){return(ue.getNodeCheckFlags(Ke)&65536)!==0}function Ur(Ke,h){Ke.hoistedLocalVariables||(Ke.hoistedLocalVariables=[]),Ee(h.name);function Ee(Re){if(Re.kind===79)Ke.hoistedLocalVariables.push(Re);else for(var nr=0,Gr=Re.elements;nr<Gr.length;nr++){var _i=Gr[nr];e.isOmittedExpression(_i)||Ee(_i.name)}}}function si(Ke,h,Ee,Re){if(!mr(Ke)){var nr=void 0;Z&&(nr=Z.allowedNonLabeledJumps,Z.allowedNonLabeledJumps=6);var Gr=Re?Re(Ke,h,void 0,Ee):S.restoreEnclosingLabel(e.isForStatement(Ke)?hr(Ke):e.visitEachChild(Ke,D,g),h,Z&&di);return Z&&(Z.allowedNonLabeledJumps=nr),Gr}var _i=ri(Ke),Ei=[],Ki=Z;Z=_i;var Nt=Xr(Ke)?pa(Ke,_i):void 0,ca=Nr(Ke)?xt(Ke,_i,Ki):void 0;Z=Ki,Nt&&Ei.push(Nt.functionDeclaration),ca&&Ei.push(ca.functionDeclaration),Gi(Ei,_i,Ki),Nt&&Ei.push(St(Nt.functionName,Nt.containsYield));var Fa;if(ca)if(Re)Fa=Re(Ke,h,ca.part,Ee);else{var Ta=mi(Ke,Nt,S.createBlock(ca.part,!0));Fa=S.restoreEnclosingLabel(Ta,h,Z&&di)}else{var In=mi(Ke,Nt,e.visitNode(Ke.statement,D,e.isStatement,S.liftToBlock));Fa=S.restoreEnclosingLabel(In,h,Z&&di)}return Ei.push(Fa),Ei}function mi(Ke,h,Ee){switch(Ke.kind){case 241:return Ti(Ke,h,Ee);case 242:return ki(Ke,Ee);case 243:return hi(Ke,Ee);case 239:return Ui(Ke,Ee);case 240:return zi(Ke,Ee);default:return e.Debug.failBadSyntaxKind(Ke,"IterationStatement expected")}}function Ti(Ke,h,Ee){var Re=Ke.condition&&Fr(Ke.condition),nr=Re||Ke.incrementor&&Fr(Ke.incrementor);return S.updateForStatement(Ke,e.visitNode(h?h.part:Ke.initializer,l,e.isForInitializer),e.visitNode(Re?void 0:Ke.condition,D,e.isExpression),e.visitNode(nr?void 0:Ke.incrementor,l,e.isExpression),Ee)}function hi(Ke,h){return S.updateForOfStatement(Ke,void 0,e.visitNode(Ke.initializer,D,e.isForInitializer),e.visitNode(Ke.expression,D,e.isExpression),h)}function ki(Ke,h){return S.updateForInStatement(Ke,e.visitNode(Ke.initializer,D,e.isForInitializer),e.visitNode(Ke.expression,D,e.isExpression),h)}function Ui(Ke,h){return S.updateDoStatement(Ke,h,e.visitNode(Ke.expression,D,e.isExpression))}function zi(Ke,h){return S.updateWhileStatement(Ke,e.visitNode(Ke.expression,D,e.isExpression),h)}function ri(Ke){var h;switch(Ke.kind){case 241:case 242:case 243:var Ee=Ke.initializer;Ee&&Ee.kind===254&&(h=Ee);break}var Re=[],nr=[];if(h&&e.getCombinedNodeFlags(h)&3)for(var Gr=Xr(Ke)||Or(Ke)||We(Ke),_i=0,Ei=h.declarations;_i<Ei.length;_i++){var Ki=Ei[_i];yt(Ke,Ki,Re,nr,Gr)}var Nt={loopParameters:Re,loopOutParameters:nr};return Z&&(Z.argumentsName&&(Nt.argumentsName=Z.argumentsName),Z.thisName&&(Nt.thisName=Z.thisName),Z.hoistedLocalVariables&&(Nt.hoistedLocalVariables=Z.hoistedLocalVariables)),Nt}function Gi(Ke,h,Ee){var Re;if(h.argumentsName&&(Ee?Ee.argumentsName=h.argumentsName:(Re||(Re=[])).push(S.createVariableDeclaration(h.argumentsName,void 0,void 0,S.createIdentifier("arguments")))),h.thisName&&(Ee?Ee.thisName=h.thisName:(Re||(Re=[])).push(S.createVariableDeclaration(h.thisName,void 0,void 0,S.createIdentifier("this")))),h.hoistedLocalVariables)if(Ee)Ee.hoistedLocalVariables=h.hoistedLocalVariables;else{Re||(Re=[]);for(var nr=0,Gr=h.hoistedLocalVariables;nr<Gr.length;nr++){var _i=Gr[nr];Re.push(S.createVariableDeclaration(_i))}}if(h.loopOutParameters.length){Re||(Re=[]);for(var Ei=0,Ki=h.loopOutParameters;Ei<Ki.length;Ei++){var Nt=Ki[Ei];Re.push(S.createVariableDeclaration(Nt.outParamName))}}h.conditionVariable&&(Re||(Re=[]),Re.push(S.createVariableDeclaration(h.conditionVariable,void 0,void 0,S.createFalse()))),Re&&Ke.push(S.createVariableStatement(void 0,S.createVariableDeclarationList(Re)))}function Rt(Ke){return S.createVariableDeclaration(Ke.originalName,void 0,void 0,Ke.outParamName)}function pa(Ke,h){var Ee=S.createUniqueName("_loop_init"),Re=(Ke.initializer.transformFlags&524288)!==0,nr=0;h.containsLexicalThis&&(nr|=8),Re&&ie&4&&(nr|=262144);var Gr=[];Gr.push(S.createVariableStatement(void 0,Ke.initializer)),Vt(h.loopOutParameters,2,1,Gr);var _i=S.createVariableStatement(void 0,e.setEmitFlags(S.createVariableDeclarationList([S.createVariableDeclaration(Ee,void 0,void 0,e.setEmitFlags(S.createFunctionExpression(void 0,Re?S.createToken(41):void 0,void 0,void 0,void 0,void 0,e.visitNode(S.createBlock(Gr,!0),D,e.isBlock)),nr))]),2097152)),Ei=S.createVariableDeclarationList(e.map(h.loopOutParameters,Rt));return{functionName:Ee,containsYield:Re,functionDeclaration:_i,part:Ei}}function xt(Ke,h,Ee){var Re=S.createUniqueName("_loop");se();var nr=e.visitNode(Ke.statement,D,e.isStatement,S.liftToBlock),Gr=C(),_i=[];(Or(Ke)||We(Ke))&&(h.conditionVariable=S.createUniqueName("inc"),Ke.incrementor?_i.push(S.createIfStatement(h.conditionVariable,S.createExpressionStatement(e.visitNode(Ke.incrementor,D,e.isExpression)),S.createExpressionStatement(S.createAssignment(h.conditionVariable,S.createTrue())))):_i.push(S.createIfStatement(S.createLogicalNot(h.conditionVariable),S.createExpressionStatement(S.createAssignment(h.conditionVariable,S.createTrue())))),Or(Ke)&&_i.push(S.createIfStatement(S.createPrefixUnaryExpression(53,e.visitNode(Ke.condition,D,e.isExpression)),e.visitNode(S.createBreakStatement(),D,e.isStatement)))),e.isBlock(nr)?e.addRange(_i,nr.statements):_i.push(nr),Vt(h.loopOutParameters,1,1,_i),e.insertStatementsAfterStandardPrologue(_i,Gr);var Ei=S.createBlock(_i,!0);e.isBlock(nr)&&e.setOriginalNode(Ei,nr);var Ki=(Ke.statement.transformFlags&524288)!==0,Nt=524288;h.containsLexicalThis&&(Nt|=8),Ki&&(ie&4)!==0&&(Nt|=262144);var ca=S.createVariableStatement(void 0,e.setEmitFlags(S.createVariableDeclarationList([S.createVariableDeclaration(Re,void 0,void 0,e.setEmitFlags(S.createFunctionExpression(void 0,Ki?S.createToken(41):void 0,void 0,void 0,h.loopParameters,void 0,Ei),Nt))]),2097152)),Fa=Ci(Re,h,Ee,Ki);return{functionName:Re,containsYield:Ki,functionDeclaration:ca,part:Fa}}function ua(Ke,h){var Ee=h===0?Ke.outParamName:Ke.originalName,Re=h===0?Ke.originalName:Ke.outParamName;return S.createBinaryExpression(Re,63,Ee)}function Vt(Ke,h,Ee,Re){for(var nr=0,Gr=Ke;nr<Gr.length;nr++){var _i=Gr[nr];_i.flags&h&&Re.push(S.createExpressionStatement(ua(_i,Ee)))}}function St(Ke,h){var Ee=S.createCallExpression(Ke,void 0,[]),Re=h?S.createYieldExpression(S.createToken(41),e.setEmitFlags(Ee,8388608)):Ee;return S.createExpressionStatement(Re)}function Ci(Ke,h,Ee,Re){var nr=[],Gr=!(h.nonLocalJumps&-5)&&!h.labeledNonLocalBreaks&&!h.labeledNonLocalContinues,_i=S.createCallExpression(Ke,void 0,e.map(h.loopParameters,function(Ta){return Ta.name})),Ei=Re?S.createYieldExpression(S.createToken(41),e.setEmitFlags(_i,8388608)):_i;if(Gr)nr.push(S.createExpressionStatement(Ei)),Vt(h.loopOutParameters,1,0,nr);else{var Ki=S.createUniqueName("state"),Nt=S.createVariableStatement(void 0,S.createVariableDeclarationList([S.createVariableDeclaration(Ki,void 0,void 0,Ei)]));if(nr.push(Nt),Vt(h.loopOutParameters,1,0,nr),h.nonLocalJumps&8){var ca=void 0;Ee?(Ee.nonLocalJumps|=8,ca=S.createReturnStatement(Ki)):ca=S.createReturnStatement(S.createPropertyAccessExpression(Ki,"value")),nr.push(S.createIfStatement(S.createTypeCheck(Ki,"object"),ca))}if(h.nonLocalJumps&2&&nr.push(S.createIfStatement(S.createStrictEquality(Ki,S.createStringLiteral("break")),S.createBreakStatement())),h.labeledNonLocalBreaks||h.labeledNonLocalContinues){var Fa=[];Yi(h.labeledNonLocalBreaks,!0,Ki,Ee,Fa),Yi(h.labeledNonLocalContinues,!1,Ki,Ee,Fa),nr.push(S.createSwitchStatement(Ki,S.createCaseBlock(Fa)))}}return nr}function Hi(Ke,h,Ee,Re){h?(Ke.labeledNonLocalBreaks||(Ke.labeledNonLocalBreaks=new e.Map),Ke.labeledNonLocalBreaks.set(Ee,Re)):(Ke.labeledNonLocalContinues||(Ke.labeledNonLocalContinues=new e.Map),Ke.labeledNonLocalContinues.set(Ee,Re))}function Yi(Ke,h,Ee,Re,nr){!Ke||Ke.forEach(function(Gr,_i){var Ei=[];if(!Re||Re.labels&&Re.labels.get(_i)){var Ki=S.createIdentifier(_i);Ei.push(h?S.createBreakStatement(Ki):S.createContinueStatement(Ki))}else Hi(Re,h,_i,Gr),Ei.push(S.createReturnStatement(Ee));nr.push(S.createCaseClause(S.createStringLiteral(Gr),Ei))})}function yt(Ke,h,Ee,Re,nr){var Gr=h.name;if(e.isBindingPattern(Gr))for(var _i=0,Ei=Gr.elements;_i<Ei.length;_i++){var Ki=Ei[_i];e.isOmittedExpression(Ki)||yt(Ke,Ki,Ee,Re,nr)}else{Ee.push(S.createParameterDeclaration(void 0,void 0,void 0,Gr));var Nt=ue.getNodeCheckFlags(h);if(Nt&4194304||nr){var ca=S.createUniqueName("out_"+e.idText(Gr)),Fa=0;Nt&4194304&&(Fa|=1),e.isForStatement(Ke)&&(Ke.initializer&&ue.isBindingCapturedByNode(Ke.initializer,h)&&(Fa|=2),(Ke.condition&&ue.isBindingCapturedByNode(Ke.condition,h)||Ke.incrementor&&ue.isBindingCapturedByNode(Ke.incrementor,h))&&(Fa|=1)),Re.push({flags:Fa,originalName:Gr,outParamName:ca})}}}function gt(Ke,h,Ee,Re){for(var nr=h.properties,Gr=nr.length,_i=Re;_i<Gr;_i++){var Ei=nr[_i];switch(Ei.kind){case 171:case 172:var Ki=e.getAllAccessorDeclarations(h.properties,Ei);Ei===Ki.firstAccessor&&Ke.push(Le(Ee,Ki,h,!!h.multiLine));break;case 168:Ke.push(Pi(Ei,Ee,h,h.multiLine));break;case 294:Ke.push(oa(Ei,Ee,h.multiLine));break;case 295:Ke.push(Bt(Ei,Ee,h.multiLine));break;default:e.Debug.failBadSyntaxKind(h);break}}}function oa(Ke,h,Ee){var Re=S.createAssignment(e.createMemberAccessForPropertyName(S,h,e.visitNode(Ke.name,D,e.isPropertyName)),e.visitNode(Ke.initializer,D,e.isExpression));return e.setTextRange(Re,Ke),Ee&&e.startOnNewLine(Re),Re}function Bt(Ke,h,Ee){var Re=S.createAssignment(e.createMemberAccessForPropertyName(S,h,e.visitNode(Ke.name,D,e.isPropertyName)),S.cloneNode(Ke.name));return e.setTextRange(Re,Ke),Ee&&e.startOnNewLine(Re),Re}function Pi(Ke,h,Ee,Re){var nr=S.createAssignment(e.createMemberAccessForPropertyName(S,h,e.visitNode(Ke.name,D,e.isPropertyName)),Jr(Ke,Ke,void 0,Ee));return e.setTextRange(nr,Ke),Re&&e.startOnNewLine(nr),nr}function Oi(Ke){var h=ne(7104,0),Ee;if(e.Debug.assert(!!Ke.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),e.isBindingPattern(Ke.variableDeclaration.name)){var Re=S.createTempVariable(void 0),nr=S.createVariableDeclaration(Re);e.setTextRange(nr,Ke.variableDeclaration);var Gr=e.flattenDestructuringBinding(Ke.variableDeclaration,D,g,0,Re),_i=S.createVariableDeclarationList(Gr);e.setTextRange(_i,Ke.variableDeclaration);var Ei=S.createVariableStatement(void 0,_i);Ee=S.updateCatchClause(Ke,nr,wi(Ke.block,Ei))}else Ee=e.visitEachChild(Ke,D,g);return ee(h,0,0),Ee}function wi(Ke,h){var Ee=e.visitNodes(Ke.statements,D,e.isStatement);return S.updateBlock(Ke,qe([h],Ee,!0))}function Qr(Ke){e.Debug.assert(!e.isComputedPropertyName(Ke.name));var h=Jr(Ke,e.moveRangePos(Ke,-1),void 0,void 0);return e.setEmitFlags(h,512|e.getEmitFlags(h)),e.setTextRange(S.createPropertyAssignment(Ke.name,h),Ke)}function Ct(Ke){e.Debug.assert(!e.isComputedPropertyName(Ke.name));var h=Z;Z=void 0;var Ee=ne(32670,65),Re,nr=e.visitParameterList(Ke.parameters,D,g),Gr=Rr(Ke);return Ke.kind===171?Re=S.updateGetAccessorDeclaration(Ke,Ke.decorators,Ke.modifiers,Ke.name,nr,Ke.type,Gr):Re=S.updateSetAccessorDeclaration(Ke,Ke.decorators,Ke.modifiers,Ke.name,nr,Gr),ee(Ee,98304,0),Z=h,Re}function tt(Ke){return e.setTextRange(S.createPropertyAssignment(Ke.name,m(S.cloneNode(Ke.name))),Ke)}function ta(Ke){return e.visitEachChild(Ke,D,g)}function Xa(Ke){return e.visitEachChild(Ke,D,g)}function on(Ke){return e.some(Ke.elements,e.isSpreadElement)?Zn(Ke.elements,!1,!!Ke.multiLine,!!Ke.elements.hasTrailingComma):e.visitEachChild(Ke,D,g)}function qr(Ke){if(e.getEmitFlags(Ke)&33554432)return bn(Ke);var h=e.skipOuterExpressions(Ke.expression);return h.kind===106||e.isSuperProperty(h)||e.some(Ke.arguments,e.isSpreadElement)?Sn(Ke,!0):S.updateCallExpression(Ke,e.visitNode(Ke.expression,J,e.isExpression),void 0,e.visitNodes(Ke.arguments,D,e.isExpression))}function bn(Ke){var h=e.cast(e.cast(e.skipOuterExpressions(Ke.expression),e.isArrowFunction).body,e.isBlock),Ee=function(Os){return e.isVariableStatement(Os)&&!!e.first(Os.declarationList.declarations).initializer},Re=Z;Z=void 0;var nr=e.visitNodes(h.statements,_,e.isStatement);Z=Re;var Gr=e.filter(nr,Ee),_i=e.filter(nr,function(Os){return!Ee(Os)}),Ei=e.cast(e.first(Gr),e.isVariableStatement),Ki=Ei.declarationList.declarations[0],Nt=e.skipOuterExpressions(Ki.initializer),ca=e.tryCast(Nt,e.isAssignmentExpression);!ca&&e.isBinaryExpression(Nt)&&Nt.operatorToken.kind===27&&(ca=e.tryCast(Nt.left,e.isAssignmentExpression));var Fa=e.cast(ca?e.skipOuterExpressions(ca.right):Nt,e.isCallExpression),Ta=e.cast(e.skipOuterExpressions(Fa.expression),e.isFunctionExpression),In=Ta.body.statements,so=0,as=-1,Ho=[];if(ca){var Ds=e.tryCast(In[so],e.isExpressionStatement);Ds&&(Ho.push(Ds),so++),Ho.push(In[so]),so++,Ho.push(S.createExpressionStatement(S.createAssignment(ca.left,e.cast(Ki.name,e.isIdentifier))))}for(;!e.isReturnStatement(e.elementAt(In,as));)as--;return e.addRange(Ho,In,so,as),as<-1&&e.addRange(Ho,In,as+1),e.addRange(Ho,_i),e.addRange(Ho,Gr,1),S.restoreOuterExpressions(Ke.expression,S.restoreOuterExpressions(Ki.initializer,S.restoreOuterExpressions(ca&&ca.right,S.updateCallExpression(Fa,S.restoreOuterExpressions(Fa.expression,S.updateFunctionExpression(Ta,void 0,void 0,void 0,void 0,Ta.parameters,void 0,S.updateBlock(Ta.body,Ho))),void 0,Fa.arguments))))}function Rn(Ke){return Sn(Ke,!1)}function Sn(Ke,h){if(Ke.transformFlags&16384||Ke.expression.kind===106||e.isSuperProperty(e.skipOuterExpressions(Ke.expression))){var Ee=S.createCallBinding(Ke.expression,G),Re=Ee.target,nr=Ee.thisArg;Ke.expression.kind===106&&e.setEmitFlags(nr,4);var Gr=void 0;if(Ke.transformFlags&16384?Gr=S.createFunctionApplyCall(e.visitNode(Re,J,e.isExpression),Ke.expression.kind===106?nr:e.visitNode(nr,D,e.isExpression),Zn(Ke.arguments,!0,!1,!1)):Gr=e.setTextRange(S.createFunctionCallCall(e.visitNode(Re,J,e.isExpression),Ke.expression.kind===106?nr:e.visitNode(nr,D,e.isExpression),e.visitNodes(Ke.arguments,D,e.isExpression)),Ke),Ke.expression.kind===106){var _i=S.createLogicalOr(Gr,he());Gr=h?S.createAssignment(S.createUniqueName("_this",48),_i):_i}return e.setOriginalNode(Gr,Ke)}return e.visitEachChild(Ke,D,g)}function zn(Ke){if(e.some(Ke.arguments,e.isSpreadElement)){var h=S.createCallBinding(S.createPropertyAccessExpression(Ke.expression,"bind"),G),Ee=h.target,Re=h.thisArg;return S.createNewExpression(S.createFunctionApplyCall(e.visitNode(Ee,D,e.isExpression),Re,Zn(S.createNodeArray(qe([S.createVoidZero()],Ke.arguments,!0)),!0,!1,!1)),void 0,[])}return e.visitEachChild(Ke,D,g)}function Zn(Ke,h,Ee,Re){var nr=Ke.length,Gr=e.flatten(e.spanMap(Ke,ho,function(Ta,In,so,as){return In(Ta,Ee,Re&&as===nr)}));if(Gr.length===1){var _i=Gr[0];if(h&&!E.downlevelIteration||e.isPackedArrayLiteral(_i.expression)||e.isCallToHelper(_i.expression,"___spreadArray"))return _i.expression}for(var Ei=H(),Ki=Gr[0].kind!==0,Nt=Ki?S.createArrayLiteralExpression():Gr[0].expression,ca=Ki?0:1;ca<Gr.length;ca++){var Fa=Gr[ca];Nt=Ei.createSpreadArrayHelper(Nt,Fa.expression,Fa.kind===1&&!h)}return Nt}function ho(Ke){return e.isSpreadElement(Ke)?Vo:go}function Vo(Ke){return e.map(Ke,Cn)}function Cn(Ke){var h=e.visitNode(Ke.expression,D,e.isExpression),Ee=e.isCallToHelper(h,"___read"),Re=Ee||e.isPackedArrayLiteral(h)?2:1;return E.downlevelIteration&&Re===1&&!e.isArrayLiteralExpression(h)&&!Ee&&(h=H().createReadHelper(h,void 0),Re=2),pe(Re,h)}function go(Ke,h,Ee){var Re=S.createArrayLiteralExpression(e.visitNodes(S.createNodeArray(Ke,Ee),D,e.isExpression),h);return pe(0,Re)}function ro(Ke){return e.visitNode(Ke.expression,D,e.isExpression)}function Ko(Ke){return e.setTextRange(S.createStringLiteral(Ke.text),Ke)}function rs(Ke){return Ke.hasExtendedUnicodeEscape?e.setTextRange(S.createStringLiteral(Ke.text),Ke):Ke}function rn(Ke){return Ke.numericLiteralFlags&384?e.setTextRange(S.createNumericLiteral(Ke.text),Ke):Ke}function Do(Ke){return e.processTaggedTemplateExpression(g,Ke,D,M,Y,e.ProcessLevel.All)}function io(Ke){for(var h=S.createStringLiteral(Ke.head.text),Ee=0,Re=Ke.templateSpans;Ee<Re.length;Ee++){var nr=Re[Ee],Gr=[e.visitNode(nr.expression,D,e.isExpression)];nr.literal.text.length>0&&Gr.push(S.createStringLiteral(nr.literal.text)),h=S.createCallExpression(S.createPropertyAccessExpression(h,"concat"),void 0,Gr)}return e.setTextRange(h,Ke)}function pn(Ke){return ie&8&&!Ke?S.createPropertyAccessExpression(S.createUniqueName("_super",48),"prototype"):S.createUniqueName("_super",48)}function Qn(Ke){return Ke.keywordToken===103&&Ke.name.escapedText==="target"?(ie|=32768,S.createUniqueName("_newTarget",48)):Ke}function wo(Ke,h,Ee){if(k&1&&e.isFunctionLike(h)){var Re=ne(32670,e.getEmitFlags(h)&8?81:65);re(Ke,h,Ee),ee(Re,0,0);return}re(Ke,h,Ee)}function xo(){(k&2)===0&&(k|=2,g.enableSubstitution(79))}function ds(){(k&1)===0&&(k|=1,g.enableSubstitution(108),g.enableEmitNotification(170),g.enableEmitNotification(168),g.enableEmitNotification(171),g.enableEmitNotification(172),g.enableEmitNotification(213),g.enableEmitNotification(212),g.enableEmitNotification(255))}function No(Ke,h){return h=B(Ke,h),Ke===1?xr(h):e.isIdentifier(h)?Ts(h):h}function Ts(Ke){if(k&2&&!e.isInternalName(Ke)){var h=e.getParseTreeNode(Ke,e.isIdentifier);if(h&&Ms(h))return e.setTextRange(S.getGeneratedNameForNode(h),Ke)}return Ke}function Ms(Ke){switch(Ke.parent.kind){case 202:case 256:case 259:case 253:return Ke.parent.name===Ke&&ue.isDeclarationWithCollidingName(Ke.parent)}return!1}function xr(Ke){switch(Ke.kind){case 79:return bi(Ke);case 108:return Ht(Ke)}return Ke}function bi(Ke){if(k&2&&!e.isInternalName(Ke)){var h=ue.getReferencedDeclarationWithCollidingName(Ke);if(h&&!(e.isClassLike(h)&&ut(h,Ke)))return e.setTextRange(S.getGeneratedNameForNode(e.getNameOfDeclaration(h)),Ke)}return Ke}function ut(Ke,h){var Ee=e.getParseTreeNode(h);if(!Ee||Ee===Ke||Ee.end<=Ke.pos||Ee.pos>=Ke.end)return!1;for(var Re=e.getEnclosingBlockScopeContainer(Ke);Ee;){if(Ee===Re||Ee===Ke)return!1;if(e.isClassElement(Ee)&&Ee.parent===Ke)return!0;Ee=Ee.parent}return!1}function Ht(Ke){return k&1&&ie&16?e.setTextRange(S.createUniqueName("_this",48),Ke):Ke}function Ka(Ke,h){return e.isStatic(h)?S.getInternalName(Ke):S.createPropertyAccessExpression(S.getInternalName(Ke),"prototype")}function an(Ke,h){if(!Ke||!h||e.some(Ke.parameters))return!1;var Ee=e.firstOrUndefined(Ke.body.statements);if(!Ee||!e.nodeIsSynthesized(Ee)||Ee.kind!==237)return!1;var Re=Ee.expression;if(!e.nodeIsSynthesized(Re)||Re.kind!==207)return!1;var nr=Re.expression;if(!e.nodeIsSynthesized(nr)||nr.kind!==106)return!1;var Gr=e.singleOrUndefined(Re.arguments);if(!Gr||!e.nodeIsSynthesized(Gr)||Gr.kind!==224)return!1;var _i=Gr.expression;return e.isIdentifier(_i)&&_i.escapedText==="arguments"}}e.transformES2015=F})(Pe||(Pe={}));var Pe;(function(e){function a(O){var L=O.factory,W=O.getCompilerOptions(),N,Q;(W.jsx===1||W.jsx===3)&&(N=O.onEmitNode,O.onEmitNode=g,O.enableEmitNotification(279),O.enableEmitNotification(280),O.enableEmitNotification(278),Q=[]);var pe=O.onSubstituteNode;return O.onSubstituteNode=S,O.enableSubstitution(205),O.enableSubstitution(294),e.chainBundle(O,F);function F(C){return C}function g(C,G,E){switch(G.kind){case 279:case 280:case 278:var ue=G.tagName;Q[e.getOriginalNodeId(ue)]=!0;break}N(C,G,E)}function S(C,G){return G.id&&Q&&Q[G.id]?pe(C,G):(G=pe(C,G),e.isPropertyAccessExpression(G)?H(G):e.isPropertyAssignment(G)?se(G):G)}function H(C){if(e.isPrivateIdentifier(C.name))return C;var G=p(C.name);return G?e.setTextRange(L.createElementAccessExpression(C.expression,G),C):C}function se(C){var G=e.isIdentifier(C.name)&&p(C.name);return G?L.updatePropertyAssignment(C,G,C.initializer):C}function p(C){var G=C.originalKeywordKind||(e.nodeIsSynthesized(C)?e.stringToToken(e.idText(C)):void 0);if(G!==void 0&&G>=81&&G<=116)return e.setTextRange(L.createStringLiteralFromNode(C),C)}}e.transformES5=a})(Pe||(Pe={}));var Pe;(function(e){var a;(function(F){F[F.Nop=0]="Nop",F[F.Statement=1]="Statement",F[F.Assign=2]="Assign",F[F.Break=3]="Break",F[F.BreakWhenTrue=4]="BreakWhenTrue",F[F.BreakWhenFalse=5]="BreakWhenFalse",F[F.Yield=6]="Yield",F[F.YieldStar=7]="YieldStar",F[F.Return=8]="Return",F[F.Throw=9]="Throw",F[F.Endfinally=10]="Endfinally"})(a||(a={}));var O;(function(F){F[F.Open=0]="Open",F[F.Close=1]="Close"})(O||(O={}));var L;(function(F){F[F.Exception=0]="Exception",F[F.With=1]="With",F[F.Switch=2]="Switch",F[F.Loop=3]="Loop",F[F.Labeled=4]="Labeled"})(L||(L={}));var W;(function(F){F[F.Try=0]="Try",F[F.Catch=1]="Catch",F[F.Finally=2]="Finally",F[F.Done=3]="Done"})(W||(W={}));var N;(function(F){F[F.Next=0]="Next",F[F.Throw=1]="Throw",F[F.Return=2]="Return",F[F.Break=3]="Break",F[F.Yield=4]="Yield",F[F.YieldStar=5]="YieldStar",F[F.Catch=6]="Catch",F[F.Endfinally=7]="Endfinally"})(N||(N={}));function Q(F){switch(F){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function pe(F){var g=F.factory,S=F.getEmitHelperFactory,H=F.resumeLexicalEnvironment,se=F.endLexicalEnvironment,p=F.hoistFunctionDeclaration,C=F.hoistVariableDeclaration,G=F.getCompilerOptions(),E=e.getEmitScriptTarget(G),ue=F.getEmitResolver(),B=F.onSubstituteNode;F.onSubstituteNode=Dr;var re,M,x,ie,_e,Y,Z,k,I,ne,ee=1,A,f,P,D,l=0,_=0,J,w,j,U,z,y,oe,ve;return e.chainBundle(F,ce);function ce(xr){if(xr.isDeclarationFile||(xr.transformFlags&2048)===0)return xr;var bi=e.visitEachChild(xr,m,F);return e.addEmitHelpers(bi,F.readEmitHelpers()),bi}function m(xr){var bi=xr.transformFlags;return ie?de(xr):x?ae(xr):e.isFunctionLikeDeclaration(xr)&&xr.asteriskToken?le(xr):bi&2048?e.visitEachChild(xr,m,F):xr}function de(xr){switch(xr.kind){case 239:return Jr(xr);case 240:return ci(xr);case 248:return di(xr);case 249:return Ye(xr);default:return ae(xr)}}function ae(xr){switch(xr.kind){case 255:return ke(xr);case 212:return Ue(xr);case 171:case 172:return He(xr);case 236:return gr(xr);case 241:return or(xr);case 242:return ei(xr);case 245:return ft(xr);case 244:return Si(xr);case 246:return aa(xr);default:return xr.transformFlags&524288?V(xr):xr.transformFlags&2099200?e.visitEachChild(xr,m,F):xr}}function V(xr){switch(xr.kind){case 220:return me(xr);case 349:return we(xr);case 221:return Se(xr);case 223:return ge(xr);case 203:return Fe(xr);case 204:return ur(xr);case 206:return Ir(xr);case 207:return dr(xr);case 208:return Br(xr);default:return e.visitEachChild(xr,m,F)}}function le(xr){switch(xr.kind){case 255:return ke(xr);case 212:return Ue(xr);default:return e.Debug.failBadSyntaxKind(xr)}}function ke(xr){if(xr.asteriskToken)xr=e.setOriginalNode(e.setTextRange(g.createFunctionDeclaration(void 0,xr.modifiers,void 0,xr.name,void 0,e.visitParameterList(xr.parameters,m,F),void 0,ar(xr.body)),xr),xr);else{var bi=x,ut=ie;x=!1,ie=!1,xr=e.visitEachChild(xr,m,F),x=bi,ie=ut}if(x){p(xr);return}else return xr}function Ue(xr){if(xr.asteriskToken)xr=e.setOriginalNode(e.setTextRange(g.createFunctionExpression(void 0,void 0,xr.name,void 0,e.visitParameterList(xr.parameters,m,F),void 0,ar(xr.body)),xr),xr);else{var bi=x,ut=ie;x=!1,ie=!1,xr=e.visitEachChild(xr,m,F),x=bi,ie=ut}return xr}function He(xr){var bi=x,ut=ie;return x=!1,ie=!1,xr=e.visitEachChild(xr,m,F),x=bi,ie=ut,xr}function ar(xr){var bi=[],ut=x,Ht=ie,Ka=_e,an=Y,Ke=Z,h=k,Ee=I,Re=ne,nr=ee,Gr=A,_i=f,Ei=P,Ki=D;x=!0,ie=!1,_e=void 0,Y=void 0,Z=void 0,k=void 0,I=void 0,ne=void 0,ee=1,A=void 0,f=void 0,P=void 0,D=g.createTempVariable(void 0),H();var Nt=g.copyPrologue(xr.statements,bi,!1,m);Tr(xr.statements,Nt);var ca=zn();return e.insertStatementsAfterStandardPrologue(bi,se()),bi.push(g.createReturnStatement(ca)),x=ut,ie=Ht,_e=Ka,Y=an,Z=Ke,k=h,I=Ee,ne=Re,ee=nr,A=Gr,f=_i,P=Ei,D=Ki,e.setTextRange(g.createBlock(bi,xr.multiLine),xr)}function gr(xr){if(xr.transformFlags&524288){Le(xr.declarationList);return}else{if(e.getEmitFlags(xr)&1048576)return xr;for(var bi=0,ut=xr.declarationList.declarations;bi<ut.length;bi++){var Ht=ut[bi];C(Ht.name)}var Ka=e.getInitializedVariables(xr.declarationList);return Ka.length===0?void 0:e.setSourceMapRange(g.createExpressionStatement(g.inlineExpressions(e.map(Ka,Xe))),xr)}}function me(xr){var bi=e.getExpressionAssociativity(xr);switch(bi){case 0:return er(xr);case 1:return Ge(xr);default:return e.Debug.assertNever(bi)}}function Ge(xr){var bi=xr.left,ut=xr.right;if(_r(ut)){var Ht=void 0;switch(bi.kind){case 205:Ht=g.updatePropertyAccessExpression(bi,xe(e.visitNode(bi.expression,m,e.isLeftHandSideExpression)),bi.name);break;case 206:Ht=g.updateElementAccessExpression(bi,xe(e.visitNode(bi.expression,m,e.isLeftHandSideExpression)),xe(e.visitNode(bi.argumentExpression,m,e.isExpression)));break;default:Ht=e.visitNode(bi,m,e.isExpression);break}var Ka=xr.operatorToken.kind;return e.isCompoundAssignment(Ka)?e.setTextRange(g.createAssignment(Ht,e.setTextRange(g.createBinaryExpression(xe(Ht),e.getNonAssignmentOperatorForCompoundAssignment(Ka),e.visitNode(ut,m,e.isExpression)),xr)),xr):g.updateBinaryExpression(xr,Ht,xr.operatorToken,e.visitNode(ut,m,e.isExpression))}return e.visitEachChild(xr,m,F)}function er(xr){return _r(xr.right)?e.isLogicalOperator(xr.operatorToken.kind)?ye(xr):xr.operatorToken.kind===27?he(xr):g.updateBinaryExpression(xr,xe(e.visitNode(xr.left,m,e.isExpression)),xr.operatorToken,e.visitNode(xr.right,m,e.isExpression)):e.visitEachChild(xr,m,F)}function he(xr){var bi=[];return ut(xr.left),ut(xr.right),g.inlineExpressions(bi);function ut(Ht){e.isBinaryExpression(Ht)&&Ht.operatorToken.kind===27?(ut(Ht.left),ut(Ht.right)):(_r(Ht)&&bi.length>0&&(Sn(1,[g.createExpressionStatement(g.inlineExpressions(bi))]),bi=[]),bi.push(e.visitNode(Ht,m,e.isExpression)))}}function we(xr){for(var bi=[],ut=0,Ht=xr.elements;ut<Ht.length;ut++){var Ka=Ht[ut];e.isBinaryExpression(Ka)&&Ka.operatorToken.kind===27?bi.push(he(Ka)):(_r(Ka)&&bi.length>0&&(Sn(1,[g.createExpressionStatement(g.inlineExpressions(bi))]),bi=[]),bi.push(e.visitNode(Ka,m,e.isExpression)))}return g.inlineExpressions(bi)}function ye(xr){var bi=Je(),ut=ze();return Qr(ut,e.visitNode(xr.left,m,e.isExpression),xr.left),xr.operatorToken.kind===55?ta(bi,ut,xr.left):tt(bi,ut,xr.left),Qr(ut,e.visitNode(xr.right,m,e.isExpression),xr.right),Oe(bi),ut}function Se(xr){if(_r(xr.whenTrue)||_r(xr.whenFalse)){var bi=Je(),ut=Je(),Ht=ze();return ta(bi,e.visitNode(xr.condition,m,e.isExpression),xr.condition),Qr(Ht,e.visitNode(xr.whenTrue,m,e.isExpression),xr.whenTrue),Ct(ut),Oe(bi),Qr(Ht,e.visitNode(xr.whenFalse,m,e.isExpression),xr.whenFalse),Oe(ut),Ht}return e.visitEachChild(xr,m,F)}function ge(xr){var bi=Je(),ut=e.visitNode(xr.expression,m,e.isExpression);if(xr.asteriskToken){var Ht=(e.getEmitFlags(xr.expression)&8388608)===0?e.setTextRange(S().createValuesHelper(ut),xr):ut;Xa(Ht,xr)}else on(ut,xr);return Oe(bi),Pi(xr)}function Fe(xr){return cr(xr.elements,void 0,void 0,xr.multiLine)}function cr(xr,bi,ut,Ht){var Ka=hr(xr),an;if(Ka>0){an=ze();var Ke=e.visitNodes(xr,m,e.isExpression,0,Ka);Qr(an,g.createArrayLiteralExpression(bi?qe([bi],Ke,!0):Ke)),bi=void 0}var h=e.reduceLeft(xr,Ee,[],Ka);return an?g.createArrayConcatCall(an,[g.createArrayLiteralExpression(h,Ht)]):e.setTextRange(g.createArrayLiteralExpression(bi?qe([bi],h,!0):h,Ht),ut);function Ee(Re,nr){if(_r(nr)&&Re.length>0){var Gr=an!==void 0;an||(an=ze()),Qr(an,Gr?g.createArrayConcatCall(an,[g.createArrayLiteralExpression(Re,Ht)]):g.createArrayLiteralExpression(bi?qe([bi],Re,!0):Re,Ht)),bi=void 0,Re=[]}return Re.push(e.visitNode(nr,m,e.isExpression)),Re}}function ur(xr){var bi=xr.properties,ut=xr.multiLine,Ht=hr(bi),Ka=ze();Qr(Ka,g.createObjectLiteralExpression(e.visitNodes(bi,m,e.isObjectLiteralElementLike,0,Ht),ut));var an=e.reduceLeft(bi,Ke,[],Ht);return an.push(ut?e.startOnNewLine(e.setParent(e.setTextRange(g.cloneNode(Ka),Ka),Ka.parent)):Ka),g.inlineExpressions(an);function Ke(h,Ee){_r(Ee)&&h.length>0&&(wi(g.createExpressionStatement(g.inlineExpressions(h))),h=[]);var Re=e.createExpressionForObjectLiteralElementLike(g,xr,Ee,Ka),nr=e.visitNode(Re,m,e.isExpression);return nr&&(ut&&e.startOnNewLine(nr),h.push(nr)),h}}function Ir(xr){return _r(xr.argumentExpression)?g.updateElementAccessExpression(xr,xe(e.visitNode(xr.expression,m,e.isLeftHandSideExpression)),e.visitNode(xr.argumentExpression,m,e.isExpression)):e.visitEachChild(xr,m,F)}function dr(xr){if(!e.isImportCall(xr)&&e.forEach(xr.arguments,_r)){var bi=g.createCallBinding(xr.expression,C,E,!0),ut=bi.target,Ht=bi.thisArg;return e.setOriginalNode(e.setTextRange(g.createFunctionApplyCall(xe(e.visitNode(ut,m,e.isLeftHandSideExpression)),Ht,cr(xr.arguments)),xr),xr)}return e.visitEachChild(xr,m,F)}function Br(xr){if(e.forEach(xr.arguments,_r)){var bi=g.createCallBinding(g.createPropertyAccessExpression(xr.expression,"bind"),C),ut=bi.target,Ht=bi.thisArg;return e.setOriginalNode(e.setTextRange(g.createNewExpression(g.createFunctionApplyCall(xe(e.visitNode(ut,m,e.isExpression)),Ht,cr(xr.arguments,g.createVoidZero())),void 0,[]),xr),xr)}return e.visitEachChild(xr,m,F)}function Tr(xr,bi){bi===void 0&&(bi=0);for(var ut=xr.length,Ht=bi;Ht<ut;Ht++)Er(xr[Ht])}function n(xr){e.isBlock(xr)?Tr(xr.statements):Er(xr)}function Er(xr){var bi=ie;ie||(ie=_r(xr)),br(xr),ie=bi}function br(xr){switch(xr.kind){case 234:return Pr(xr);case 237:return Ce(xr);case 238:return Cr(xr);case 239:return Lr(xr);case 240:return Rr(xr);case 241:return be(xr);case 242:return Kr(xr);case 244:return li(xr);case 245:return qi(xr);case 246:return bt(xr);case 247:return sr(xr);case 248:return Ji(xr);case 249:return X(xr);case 250:return Be(xr);case 251:return Qe(xr);default:return wi(e.visitNode(xr,m,e.isStatement))}}function Pr(xr){_r(xr)?Tr(xr.statements):wi(e.visitNode(xr,m,e.isStatement))}function Ce(xr){wi(e.visitNode(xr,m,e.isStatement))}function Le(xr){for(var bi=0,ut=xr.declarations;bi<ut.length;bi++){var Ht=ut[bi],Ka=g.cloneNode(Ht.name);e.setCommentRange(Ka,Ht.name),C(Ka)}for(var an=e.getInitializedVariables(xr),Ke=an.length,h=0,Ee=[];h<Ke;){for(var Re=h;Re<Ke;Re++){var Ht=an[Re];if(_r(Ht.initializer)&&Ee.length>0)break;Ee.push(Xe(Ht))}Ee.length&&(wi(g.createExpressionStatement(g.inlineExpressions(Ee))),h+=Ee.length,Ee=[])}}function Xe(xr){return e.setSourceMapRange(g.createAssignment(e.setSourceMapRange(g.cloneNode(xr.name),xr.name),e.visitNode(xr.initializer,m,e.isExpression)),xr)}function Cr(xr){if(_r(xr))if(_r(xr.thenStatement)||_r(xr.elseStatement)){var bi=Je(),ut=xr.elseStatement?Je():void 0;ta(xr.elseStatement?ut:bi,e.visitNode(xr.expression,m,e.isExpression),xr.expression),n(xr.thenStatement),xr.elseStatement&&(Ct(bi),Oe(ut),n(xr.elseStatement)),Oe(bi)}else wi(e.visitNode(xr,m,e.isStatement));else wi(e.visitNode(xr,m,e.isStatement))}function Lr(xr){if(_r(xr)){var bi=Je(),ut=Je();ki(bi),Oe(ut),n(xr.statement),Oe(bi),tt(ut,e.visitNode(xr.expression,m,e.isExpression)),Ui()}else wi(e.visitNode(xr,m,e.isStatement))}function Jr(xr){return ie?(hi(),xr=e.visitEachChild(xr,m,F),Ui(),xr):e.visitEachChild(xr,m,F)}function Rr(xr){if(_r(xr)){var bi=Je(),ut=ki(bi);Oe(bi),ta(ut,e.visitNode(xr.expression,m,e.isExpression)),n(xr.statement),Ct(bi),Ui()}else wi(e.visitNode(xr,m,e.isStatement))}function ci(xr){return ie?(hi(),xr=e.visitEachChild(xr,m,F),Ui(),xr):e.visitEachChild(xr,m,F)}function be(xr){if(_r(xr)){var bi=Je(),ut=Je(),Ht=ki(ut);if(xr.initializer){var Ka=xr.initializer;e.isVariableDeclarationList(Ka)?Le(Ka):wi(e.setTextRange(g.createExpressionStatement(e.visitNode(Ka,m,e.isExpression)),Ka))}Oe(bi),xr.condition&&ta(Ht,e.visitNode(xr.condition,m,e.isExpression)),n(xr.statement),Oe(ut),xr.incrementor&&wi(e.setTextRange(g.createExpressionStatement(e.visitNode(xr.incrementor,m,e.isExpression)),xr.incrementor)),Ct(bi),Ui()}else wi(e.visitNode(xr,m,e.isStatement))}function or(xr){ie&&hi();var bi=xr.initializer;if(bi&&e.isVariableDeclarationList(bi)){for(var ut=0,Ht=bi.declarations;ut<Ht.length;ut++){var Ka=Ht[ut];C(Ka.name)}var an=e.getInitializedVariables(bi);xr=g.updateForStatement(xr,an.length>0?g.inlineExpressions(e.map(an,Xe)):void 0,e.visitNode(xr.condition,m,e.isExpression),e.visitNode(xr.incrementor,m,e.isExpression),e.visitIterationBody(xr.statement,m,F))}else xr=e.visitEachChild(xr,m,F);return ie&&Ui(),xr}function Kr(xr){if(_r(xr)){var bi=ze(),ut=ze(),Ht=g.createLoopVariable(),Ka=xr.initializer;C(Ht),Qr(bi,g.createArrayLiteralExpression()),wi(g.createForInStatement(ut,e.visitNode(xr.expression,m,e.isExpression),g.createExpressionStatement(g.createCallExpression(g.createPropertyAccessExpression(bi,"push"),void 0,[ut])))),Qr(Ht,g.createNumericLiteral(0));var an=Je(),Ke=Je(),h=ki(Ke);Oe(an),ta(h,g.createLessThan(Ht,g.createPropertyAccessExpression(bi,"length")));var Ee=void 0;if(e.isVariableDeclarationList(Ka)){for(var Re=0,nr=Ka.declarations;Re<nr.length;Re++){var Gr=nr[Re];C(Gr.name)}Ee=g.cloneNode(Ka.declarations[0].name)}else Ee=e.visitNode(Ka,m,e.isExpression),e.Debug.assert(e.isLeftHandSideExpression(Ee));Qr(Ee,g.createElementAccessExpression(bi,Ht)),n(xr.statement),Oe(Ke),wi(g.createExpressionStatement(g.createPostfixIncrement(Ht))),Ct(an),Ui()}else wi(e.visitNode(xr,m,e.isStatement))}function ei(xr){ie&&hi();var bi=xr.initializer;if(e.isVariableDeclarationList(bi)){for(var ut=0,Ht=bi.declarations;ut<Ht.length;ut++){var Ka=Ht[ut];C(Ka.name)}xr=g.updateForInStatement(xr,bi.declarations[0].name,e.visitNode(xr.expression,m,e.isExpression),e.visitNode(xr.statement,m,e.isStatement,g.liftToBlock))}else xr=e.visitEachChild(xr,m,F);return ie&&Ui(),xr}function li(xr){var bi=Yi(xr.label?e.idText(xr.label):void 0);bi>0?Ct(bi,xr):wi(xr)}function Si(xr){if(ie){var bi=Yi(xr.label&&e.idText(xr.label));if(bi>0)return oa(bi,xr)}return e.visitEachChild(xr,m,F)}function qi(xr){var bi=Hi(xr.label?e.idText(xr.label):void 0);bi>0?Ct(bi,xr):wi(xr)}function ft(xr){if(ie){var bi=Hi(xr.label&&e.idText(xr.label));if(bi>0)return oa(bi,xr)}return e.visitEachChild(xr,m,F)}function bt(xr){qr(e.visitNode(xr.expression,m,e.isExpression),xr)}function aa(xr){return Bt(e.visitNode(xr.expression,m,e.isExpression),xr)}function sr(xr){_r(xr)?(mr(xe(e.visitNode(xr.expression,m,e.isExpression))),n(xr.statement),Nr()):wi(e.visitNode(xr,m,e.isStatement))}function Ji(xr){if(_r(xr.caseBlock)){for(var bi=xr.caseBlock,ut=bi.clauses.length,Ht=ri(),Ka=xe(e.visitNode(xr.expression,m,e.isExpression)),an=[],Ke=-1,h=0;h<ut;h++){var Ee=bi.clauses[h];an.push(Je()),Ee.kind===289&&Ke===-1&&(Ke=h)}for(var Re=0,nr=[];Re<ut;){for(var Gr=0,h=Re;h<ut;h++){var Ee=bi.clauses[h];if(Ee.kind===288){if(_r(Ee.expression)&&nr.length>0)break;nr.push(g.createCaseClause(e.visitNode(Ee.expression,m,e.isExpression),[oa(an[h],Ee.expression)]))}else Gr++}nr.length&&(wi(g.createSwitchStatement(Ka,g.createCaseBlock(nr))),Re+=nr.length,nr=[]),Gr>0&&(Re+=Gr,Gr=0)}Ke>=0?Ct(an[Ke]):Ct(Ht);for(var h=0;h<ut;h++)Oe(an[h]),Tr(bi.clauses[h].statements);Gi()}else wi(e.visitNode(xr,m,e.isStatement))}function di(xr){return ie&&zi(),xr=e.visitEachChild(xr,m,F),ie&&Gi(),xr}function X(xr){_r(xr)?(pa(e.idText(xr.label)),n(xr.statement),xt()):wi(e.visitNode(xr,m,e.isStatement))}function Ye(xr){return ie&&Rt(e.idText(xr.label)),xr=e.visitEachChild(xr,m,F),ie&&xt(),xr}function Be(xr){var bi;bn(e.visitNode((bi=xr.expression)!==null&&bi!==void 0?bi:g.createVoidZero(),m,e.isExpression),xr)}function Qe(xr){_r(xr)?(Ur(),n(xr.tryBlock),xr.catchClause&&(si(xr.catchClause.variableDeclaration),n(xr.catchClause.block)),xr.finallyBlock&&(mi(),n(xr.finallyBlock)),Ti()):wi(e.visitEachChild(xr,m,F))}function _r(xr){return!!xr&&(xr.transformFlags&524288)!==0}function hr(xr){for(var bi=xr.length,ut=0;ut<bi;ut++)if(_r(xr[ut]))return ut;return-1}function Dr(xr,bi){return bi=B(xr,bi),xr===1?Me(bi):bi}function Me(xr){return e.isIdentifier(xr)?v(xr):xr}function v(xr){if(!e.isGeneratedIdentifier(xr)&&re&&re.has(e.idText(xr))){var bi=e.getOriginalNode(xr);if(e.isIdentifier(bi)&&bi.parent){var ut=ue.getReferencedValueDeclaration(bi);if(ut){var Ht=M[e.getOriginalNodeId(ut)];if(Ht){var Ka=e.setParent(e.setTextRange(g.cloneNode(Ht),Ht),Ht.parent);return e.setSourceMapRange(Ka,xr),e.setCommentRange(Ka,xr),Ka}}}}return xr}function xe(xr){if(e.isGeneratedIdentifier(xr)||e.getEmitFlags(xr)&4096)return xr;var bi=g.createTempVariable(C);return Qr(bi,xr,xr),bi}function ze(xr){var bi=xr?g.createUniqueName(xr):g.createTempVariable(void 0);return C(bi),bi}function Je(){I||(I=[]);var xr=ee;return ee++,I[xr]=-1,xr}function Oe(xr){e.Debug.assert(I!==void 0,"No labels were defined."),I[xr]=A?A.length:0}function Fr(xr){_e||(_e=[],Z=[],Y=[],k=[]);var bi=Z.length;return Z[bi]=0,Y[bi]=A?A.length:0,_e[bi]=xr,k.push(xr),bi}function Xr(){var xr=Or();if(xr===void 0)return e.Debug.fail("beginBlock was never called.");var bi=Z.length;return Z[bi]=1,Y[bi]=A?A.length:0,_e[bi]=xr,k.pop(),xr}function Or(){return e.lastOrUndefined(k)}function We(){var xr=Or();return xr&&xr.kind}function mr(xr){var bi=Je(),ut=Je();Oe(bi),Fr({kind:1,expression:xr,startLabel:bi,endLabel:ut})}function Nr(){e.Debug.assert(We()===1);var xr=Xr();Oe(xr.endLabel)}function Ur(){var xr=Je(),bi=Je();return Oe(xr),Fr({kind:0,state:0,startLabel:xr,endLabel:bi}),Oi(),bi}function si(xr){e.Debug.assert(We()===0);var bi;if(e.isGeneratedIdentifier(xr.name))bi=xr.name,C(xr.name);else{var ut=e.idText(xr.name);bi=ze(ut),re||(re=new e.Map,M=[],F.enableSubstitution(79)),re.set(ut,!0),M[e.getOriginalNodeId(xr)]=bi}var Ht=Or();e.Debug.assert(Ht.state<1);var Ka=Ht.endLabel;Ct(Ka);var an=Je();Oe(an),Ht.state=1,Ht.catchVariable=bi,Ht.catchLabel=an,Qr(bi,g.createCallExpression(g.createPropertyAccessExpression(D,"sent"),void 0,[])),Oi()}function mi(){e.Debug.assert(We()===0);var xr=Or();e.Debug.assert(xr.state<2);var bi=xr.endLabel;Ct(bi);var ut=Je();Oe(ut),xr.state=2,xr.finallyLabel=ut}function Ti(){e.Debug.assert(We()===0);var xr=Xr(),bi=xr.state;bi<2?Ct(xr.endLabel):Rn(),Oe(xr.endLabel),Oi(),xr.state=3}function hi(){Fr({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function ki(xr){var bi=Je();return Fr({kind:3,isScript:!1,breakLabel:bi,continueLabel:xr}),bi}function Ui(){e.Debug.assert(We()===3);var xr=Xr(),bi=xr.breakLabel;xr.isScript||Oe(bi)}function zi(){Fr({kind:2,isScript:!0,breakLabel:-1})}function ri(){var xr=Je();return Fr({kind:2,isScript:!1,breakLabel:xr}),xr}function Gi(){e.Debug.assert(We()===2);var xr=Xr(),bi=xr.breakLabel;xr.isScript||Oe(bi)}function Rt(xr){Fr({kind:4,isScript:!0,labelText:xr,breakLabel:-1})}function pa(xr){var bi=Je();Fr({kind:4,isScript:!1,labelText:xr,breakLabel:bi})}function xt(){e.Debug.assert(We()===4);var xr=Xr();xr.isScript||Oe(xr.breakLabel)}function ua(xr){return xr.kind===2||xr.kind===3}function Vt(xr){return xr.kind===4}function St(xr){return xr.kind===3}function Ci(xr,bi){for(var ut=bi;ut>=0;ut--){var Ht=k[ut];if(Vt(Ht)){if(Ht.labelText===xr)return!0}else break}return!1}function Hi(xr){if(k)if(xr)for(var bi=k.length-1;bi>=0;bi--){var ut=k[bi];if(Vt(ut)&&ut.labelText===xr)return ut.breakLabel;if(ua(ut)&&Ci(xr,bi-1))return ut.breakLabel}else for(var bi=k.length-1;bi>=0;bi--){var ut=k[bi];if(ua(ut))return ut.breakLabel}return 0}function Yi(xr){if(k)if(xr)for(var bi=k.length-1;bi>=0;bi--){var ut=k[bi];if(St(ut)&&Ci(xr,bi-1))return ut.continueLabel}else for(var bi=k.length-1;bi>=0;bi--){var ut=k[bi];if(St(ut))return ut.continueLabel}return 0}function yt(xr){if(xr!==void 0&&xr>0){ne===void 0&&(ne=[]);var bi=g.createNumericLiteral(-1);return ne[xr]===void 0?ne[xr]=[bi]:ne[xr].push(bi),bi}return g.createOmittedExpression()}function gt(xr){var bi=g.createNumericLiteral(xr);return e.addSyntheticTrailingComment(bi,3,Q(xr)),bi}function oa(xr,bi){return e.Debug.assertLessThan(0,xr,"Invalid label"),e.setTextRange(g.createReturnStatement(g.createArrayLiteralExpression([gt(3),yt(xr)])),bi)}function Bt(xr,bi){return e.setTextRange(g.createReturnStatement(g.createArrayLiteralExpression(xr?[gt(2),xr]:[gt(2)])),bi)}function Pi(xr){return e.setTextRange(g.createCallExpression(g.createPropertyAccessExpression(D,"sent"),void 0,[]),xr)}function Oi(){Sn(0)}function wi(xr){xr?Sn(1,[xr]):Oi()}function Qr(xr,bi,ut){Sn(2,[xr,bi],ut)}function Ct(xr,bi){Sn(3,[xr],bi)}function tt(xr,bi,ut){Sn(4,[xr,bi],ut)}function ta(xr,bi,ut){Sn(5,[xr,bi],ut)}function Xa(xr,bi){Sn(7,[xr],bi)}function on(xr,bi){Sn(6,[xr],bi)}function qr(xr,bi){Sn(8,[xr],bi)}function bn(xr,bi){Sn(9,[xr],bi)}function Rn(){Sn(10)}function Sn(xr,bi,ut){A===void 0&&(A=[],f=[],P=[]),I===void 0&&Oe(Je());var Ht=A.length;A[Ht]=xr,f[Ht]=bi,P[Ht]=ut}function zn(){l=0,_=0,J=void 0,w=!1,j=!1,U=void 0,z=void 0,y=void 0,oe=void 0,ve=void 0;var xr=Zn();return S().createGeneratorHelper(e.setEmitFlags(g.createFunctionExpression(void 0,void 0,void 0,void 0,[g.createParameterDeclaration(void 0,void 0,void 0,D)],void 0,g.createBlock(xr,xr.length>0)),524288))}function Zn(){if(A){for(var xr=0;xr<A.length;xr++)rn(xr);Vo(A.length)}else Vo(0);if(U){var bi=g.createPropertyAccessExpression(D,"label"),ut=g.createSwitchStatement(bi,g.createCaseBlock(U));return[e.startOnNewLine(ut)]}return z||[]}function ho(){!z||(go(!w),w=!1,j=!1,_++)}function Vo(xr){Cn(xr)&&(ro(xr),ve=void 0,Qn(void 0,void 0)),z&&U&&go(!1),Ko()}function Cn(xr){if(!j)return!0;if(!I||!ne)return!1;for(var bi=0;bi<I.length;bi++)if(I[bi]===xr&&ne[bi])return!0;return!1}function go(xr){if(U||(U=[]),z){if(ve)for(var bi=ve.length-1;bi>=0;bi--){var ut=ve[bi];z=[g.createWithStatement(ut.expression,g.createBlock(z))]}if(oe){var Ht=oe.startLabel,Ka=oe.catchLabel,an=oe.finallyLabel,Ke=oe.endLabel;z.unshift(g.createExpressionStatement(g.createCallExpression(g.createPropertyAccessExpression(g.createPropertyAccessExpression(D,"trys"),"push"),void 0,[g.createArrayLiteralExpression([yt(Ht),yt(Ka),yt(an),yt(Ke)])]))),oe=void 0}xr&&z.push(g.createExpressionStatement(g.createAssignment(g.createPropertyAccessExpression(D,"label"),g.createNumericLiteral(_+1))))}U.push(g.createCaseClause(g.createNumericLiteral(_),z||[])),z=void 0}function ro(xr){if(!!I)for(var bi=0;bi<I.length;bi++)I[bi]===xr&&(ho(),J===void 0&&(J=[]),J[_]===void 0?J[_]=[bi]:J[_].push(bi))}function Ko(){if(ne!==void 0&&J!==void 0)for(var xr=0;xr<J.length;xr++){var bi=J[xr];if(bi!==void 0)for(var ut=0,Ht=bi;ut<Ht.length;ut++){var Ka=Ht[ut],an=ne[Ka];if(an!==void 0)for(var Ke=0,h=an;Ke<h.length;Ke++){var Ee=h[Ke];Ee.text=String(xr)}}}}function rs(xr){if(_e)for(;l<Z.length&&Y[l]<=xr;l++){var bi=_e[l],ut=Z[l];switch(bi.kind){case 0:ut===0?(y||(y=[]),z||(z=[]),y.push(oe),oe=bi):ut===1&&(oe=y.pop());break;case 1:ut===0?(ve||(ve=[]),ve.push(bi)):ut===1&&ve.pop();break}}}function rn(xr){if(ro(xr),rs(xr),!w){w=!1,j=!1;var bi=A[xr];if(bi!==0){if(bi===10)return Ms();var ut=f[xr];if(bi===1)return Do(ut[0]);var Ht=P[xr];switch(bi){case 2:return io(ut[0],ut[1],Ht);case 3:return wo(ut[0],Ht);case 4:return xo(ut[0],ut[1],Ht);case 5:return ds(ut[0],ut[1],Ht);case 6:return No(ut[0],Ht);case 7:return Ts(ut[0],Ht);case 8:return Qn(ut[0],Ht);case 9:return pn(ut[0],Ht)}}}}function Do(xr){xr&&(z?z.push(xr):z=[xr])}function io(xr,bi,ut){Do(e.setTextRange(g.createExpressionStatement(g.createAssignment(xr,bi)),ut))}function pn(xr,bi){w=!0,j=!0,Do(e.setTextRange(g.createThrowStatement(xr),bi))}function Qn(xr,bi){w=!0,j=!0,Do(e.setEmitFlags(e.setTextRange(g.createReturnStatement(g.createArrayLiteralExpression(xr?[gt(2),xr]:[gt(2)])),bi),384))}function wo(xr,bi){w=!0,Do(e.setEmitFlags(e.setTextRange(g.createReturnStatement(g.createArrayLiteralExpression([gt(3),yt(xr)])),bi),384))}function xo(xr,bi,ut){Do(e.setEmitFlags(g.createIfStatement(bi,e.setEmitFlags(e.setTextRange(g.createReturnStatement(g.createArrayLiteralExpression([gt(3),yt(xr)])),ut),384)),1))}function ds(xr,bi,ut){Do(e.setEmitFlags(g.createIfStatement(g.createLogicalNot(bi),e.setEmitFlags(e.setTextRange(g.createReturnStatement(g.createArrayLiteralExpression([gt(3),yt(xr)])),ut),384)),1))}function No(xr,bi){w=!0,Do(e.setEmitFlags(e.setTextRange(g.createReturnStatement(g.createArrayLiteralExpression(xr?[gt(4),xr]:[gt(4)])),bi),384))}function Ts(xr,bi){w=!0,Do(e.setEmitFlags(e.setTextRange(g.createReturnStatement(g.createArrayLiteralExpression([gt(5),xr])),bi),384))}function Ms(){w=!0,Do(g.createReturnStatement(g.createArrayLiteralExpression([gt(7)])))}}e.transformGenerators=pe})(Pe||(Pe={}));var Pe;(function(e){function a(L){function W(be){switch(be){case e.ModuleKind.AMD:return k;case e.ModuleKind.UMD:return I;default:return Z}}var N=L.factory,Q=L.getEmitHelperFactory,pe=L.startLexicalEnvironment,F=L.endLexicalEnvironment,g=L.hoistVariableDeclaration,S=L.getCompilerOptions(),H=L.getEmitResolver(),se=L.getEmitHost(),p=e.getEmitScriptTarget(S),C=e.getEmitModuleKind(S),G=L.onSubstituteNode,E=L.onEmitNode;L.onSubstituteNode=Ce,L.onEmitNode=Pr,L.enableSubstitution(207),L.enableSubstitution(209),L.enableSubstitution(79),L.enableSubstitution(220),L.enableSubstitution(295),L.enableEmitNotification(303);var ue=[],B=[],re,M,x=[],ie;return e.chainBundle(L,_e);function _e(be){if(be.isDeclarationFile||!(e.isEffectiveExternalModule(be,S)||be.transformFlags&4194304||e.isJsonSourceFile(be)&&e.hasJsonModuleEmitEnabled(S)&&e.outFile(S)))return be;re=be,M=e.collectExternalModuleInfo(L,be,H,S),ue[e.getOriginalNodeId(be)]=M;var or=W(C),Kr=or(be);return re=void 0,M=void 0,ie=!1,Kr}function Y(){return!!(!M.exportEquals&&e.isExternalModule(re))}function Z(be){pe();var or=[],Kr=e.getStrictOptionValue(S,"alwaysStrict")||!S.noImplicitUseStrict&&e.isExternalModule(re),ei=N.copyPrologue(be.statements,or,Kr&&!e.isJsonSourceFile(be),P);if(Y()&&e.append(or,Tr()),e.length(M.exportedNames))for(var li=50,Si=0;Si<M.exportedNames.length;Si+=li)e.append(or,N.createExpressionStatement(e.reduceLeft(M.exportedNames.slice(Si,Si+li),function(ft,bt){return N.createAssignment(N.createPropertyAccessExpression(N.createIdentifier("exports"),N.createIdentifier(e.idText(bt))),ft)},N.createVoidZero())));e.append(or,e.visitNode(M.externalHelpersImportDeclaration,P,e.isStatement)),e.addRange(or,e.visitNodes(be.statements,P,e.isStatement,ei)),f(or,!1),e.insertStatementsAfterStandardPrologue(or,F());var qi=N.updateSourceFile(be,e.setTextRange(N.createNodeArray(or),be.statements));return e.addEmitHelpers(qi,L.readEmitHelpers()),qi}function k(be){var or=N.createIdentifier("define"),Kr=e.tryGetModuleNameFromFile(N,be,se,S),ei=e.isJsonSourceFile(be)&&be,li=ne(be,!0),Si=li.aliasedModuleNames,qi=li.unaliasedModuleNames,ft=li.importAliasNames,bt=N.updateSourceFile(be,e.setTextRange(N.createNodeArray([N.createExpressionStatement(N.createCallExpression(or,void 0,qe(qe([],Kr?[Kr]:[],!0),[N.createArrayLiteralExpression(ei?e.emptyArray:qe(qe([N.createStringLiteral("require"),N.createStringLiteral("exports")],Si,!0),qi,!0)),ei?ei.statements.length?ei.statements[0].expression:N.createObjectLiteralExpression():N.createFunctionExpression(void 0,void 0,void 0,void 0,qe([N.createParameterDeclaration(void 0,void 0,void 0,"require"),N.createParameterDeclaration(void 0,void 0,void 0,"exports")],ft,!0),void 0,A(be))],!1)))]),be.statements));return e.addEmitHelpers(bt,L.readEmitHelpers()),bt}function I(be){var or=ne(be,!1),Kr=or.aliasedModuleNames,ei=or.unaliasedModuleNames,li=or.importAliasNames,Si=e.tryGetModuleNameFromFile(N,be,se,S),qi=N.createFunctionExpression(void 0,void 0,void 0,void 0,[N.createParameterDeclaration(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(N.createBlock([N.createIfStatement(N.createLogicalAnd(N.createTypeCheck(N.createIdentifier("module"),"object"),N.createTypeCheck(N.createPropertyAccessExpression(N.createIdentifier("module"),"exports"),"object")),N.createBlock([N.createVariableStatement(void 0,[N.createVariableDeclaration("v",void 0,void 0,N.createCallExpression(N.createIdentifier("factory"),void 0,[N.createIdentifier("require"),N.createIdentifier("exports")]))]),e.setEmitFlags(N.createIfStatement(N.createStrictInequality(N.createIdentifier("v"),N.createIdentifier("undefined")),N.createExpressionStatement(N.createAssignment(N.createPropertyAccessExpression(N.createIdentifier("module"),"exports"),N.createIdentifier("v")))),1)]),N.createIfStatement(N.createLogicalAnd(N.createTypeCheck(N.createIdentifier("define"),"function"),N.createPropertyAccessExpression(N.createIdentifier("define"),"amd")),N.createBlock([N.createExpressionStatement(N.createCallExpression(N.createIdentifier("define"),void 0,qe(qe([],Si?[Si]:[],!0),[N.createArrayLiteralExpression(qe(qe([N.createStringLiteral("require"),N.createStringLiteral("exports")],Kr,!0),ei,!0)),N.createIdentifier("factory")],!1)))])))],!0),void 0)),ft=N.updateSourceFile(be,e.setTextRange(N.createNodeArray([N.createExpressionStatement(N.createCallExpression(qi,void 0,[N.createFunctionExpression(void 0,void 0,void 0,void 0,qe([N.createParameterDeclaration(void 0,void 0,void 0,"require"),N.createParameterDeclaration(void 0,void 0,void 0,"exports")],li,!0),void 0,A(be))]))]),be.statements));return e.addEmitHelpers(ft,L.readEmitHelpers()),ft}function ne(be,or){for(var Kr=[],ei=[],li=[],Si=0,qi=be.amdDependencies;Si<qi.length;Si++){var ft=qi[Si];ft.name?(Kr.push(N.createStringLiteral(ft.path)),li.push(N.createParameterDeclaration(void 0,void 0,void 0,ft.name))):ei.push(N.createStringLiteral(ft.path))}for(var bt=0,aa=M.externalImports;bt<aa.length;bt++){var sr=aa[bt],Ji=e.getExternalModuleNameLiteral(N,sr,re,se,H,S),di=e.getLocalNameForExternalImport(N,sr,re);Ji&&(or&&di?(e.setEmitFlags(di,4),Kr.push(Ji),li.push(N.createParameterDeclaration(void 0,void 0,void 0,di))):ei.push(Ji))}return{aliasedModuleNames:Kr,unaliasedModuleNames:ei,importAliasNames:li}}function ee(be){if(!(e.isImportEqualsDeclaration(be)||e.isExportDeclaration(be)||!e.getExternalModuleNameLiteral(N,be,re,se,H,S))){var or=e.getLocalNameForExternalImport(N,be,re),Kr=V(be,or);if(Kr!==or)return N.createExpressionStatement(N.createAssignment(or,Kr))}}function A(be){pe();var or=[],Kr=N.copyPrologue(be.statements,or,!S.noImplicitUseStrict,P);Y()&&e.append(or,Tr()),e.length(M.exportedNames)&&e.append(or,N.createExpressionStatement(e.reduceLeft(M.exportedNames,function(li,Si){return N.createAssignment(N.createPropertyAccessExpression(N.createIdentifier("exports"),N.createIdentifier(e.idText(Si))),li)},N.createVoidZero()))),e.append(or,e.visitNode(M.externalHelpersImportDeclaration,P,e.isStatement)),C===e.ModuleKind.AMD&&e.addRange(or,e.mapDefined(M.externalImports,ee)),e.addRange(or,e.visitNodes(be.statements,P,e.isStatement,Kr)),f(or,!0),e.insertStatementsAfterStandardPrologue(or,F());var ei=N.createBlock(or,!0);return ie&&e.addEmitHelper(ei,O),ei}function f(be,or){if(M.exportEquals){var Kr=e.visitNode(M.exportEquals.expression,l);if(Kr)if(or){var ei=N.createReturnStatement(Kr);e.setTextRange(ei,M.exportEquals),e.setEmitFlags(ei,1920),be.push(ei)}else{var ei=N.createExpressionStatement(N.createAssignment(N.createPropertyAccessExpression(N.createIdentifier("module"),"exports"),Kr));e.setTextRange(ei,M.exportEquals),e.setEmitFlags(ei,1536),be.push(ei)}}}function P(be){switch(be.kind){case 265:return le(be);case 264:return Ue(be);case 271:return He(be);case 270:return ar(be);case 236:return Ge(be);case 255:return gr(be);case 256:return me(be);case 350:return we(be);case 351:return Se(be);default:return l(be)}}function D(be,or){if(!(be.transformFlags&71307264))return be;switch(be.kind){case 241:return j(be);case 237:return U(be);case 211:return z(be,or);case 348:return y(be,or);case 207:if(e.isImportCall(be)&&re.impliedNodeFormat===void 0)return ve(be);break;case 220:if(e.isDestructuringAssignment(be))return w(be,or);break;case 218:case 219:return oe(be,or)}return e.visitEachChild(be,l,L)}function l(be){return D(be,!1)}function _(be){return D(be,!0)}function J(be){if(e.isObjectLiteralExpression(be))for(var or=0,Kr=be.properties;or<Kr.length;or++){var ei=Kr[or];switch(ei.kind){case 294:if(J(ei.initializer))return!0;break;case 295:if(J(ei.name))return!0;break;case 296:if(J(ei.expression))return!0;break;case 168:case 171:case 172:return!1;default:e.Debug.assertNever(ei,"Unhandled object member kind")}}else if(e.isArrayLiteralExpression(be))for(var li=0,Si=be.elements;li<Si.length;li++){var ei=Si[li];if(e.isSpreadElement(ei)){if(J(ei.expression))return!0}else if(J(ei))return!0}else if(e.isIdentifier(be))return e.length(ci(be))>(e.isExportName(be)?1:0);return!1}function w(be,or){return J(be.left)?e.flattenDestructuringAssignment(be,l,L,0,!or,er):e.visitEachChild(be,l,L)}function j(be){return N.updateForStatement(be,e.visitNode(be.initializer,_,e.isForInitializer),e.visitNode(be.condition,l,e.isExpression),e.visitNode(be.incrementor,_,e.isExpression),e.visitIterationBody(be.statement,l,L))}function U(be){return N.updateExpressionStatement(be,e.visitNode(be.expression,_,e.isExpression))}function z(be,or){return N.updateParenthesizedExpression(be,e.visitNode(be.expression,or?_:l,e.isExpression))}function y(be,or){return N.updatePartiallyEmittedExpression(be,e.visitNode(be.expression,or?_:l,e.isExpression))}function oe(be,or){if((be.operator===45||be.operator===46)&&e.isIdentifier(be.operand)&&!e.isGeneratedIdentifier(be.operand)&&!e.isLocalName(be.operand)&&!e.isDeclarationNameOfEnumOrNamespace(be.operand)){var Kr=ci(be.operand);if(Kr){var ei=void 0,li=e.visitNode(be.operand,l,e.isExpression);e.isPrefixUnaryExpression(be)?li=N.updatePrefixUnaryExpression(be,li):(li=N.updatePostfixUnaryExpression(be,li),or||(ei=N.createTempVariable(g),li=N.createAssignment(ei,li),e.setTextRange(li,be)),li=N.createComma(li,N.cloneNode(be.operand)),e.setTextRange(li,be));for(var Si=0,qi=Kr;Si<qi.length;Si++){var ft=qi[Si];x[e.getNodeId(li)]=!0,li=Er(ft,li),e.setTextRange(li,be)}return ei&&(x[e.getNodeId(li)]=!0,li=N.createComma(li,ei),e.setTextRange(li,be)),li}}return e.visitEachChild(be,l,L)}function ve(be){var or=e.getExternalModuleNameLiteral(N,be,re,se,H,S),Kr=e.visitNode(e.firstOrUndefined(be.arguments),l),ei=or&&(!Kr||!e.isStringLiteral(Kr)||Kr.text!==or.text)?or:Kr,li=!!(be.transformFlags&8192);switch(S.module){case e.ModuleKind.AMD:return m(ei,li);case e.ModuleKind.UMD:return ce(ei!=null?ei:N.createVoidZero(),li);case e.ModuleKind.CommonJS:default:return de(ei,li)}}function ce(be,or){if(ie=!0,e.isSimpleCopiableExpression(be)){var Kr=e.isGeneratedIdentifier(be)?be:e.isStringLiteral(be)?N.createStringLiteralFromNode(be):e.setEmitFlags(e.setTextRange(N.cloneNode(be),be),1536);return N.createConditionalExpression(N.createIdentifier("__syncRequire"),void 0,de(be,or),void 0,m(Kr,or))}else{var ei=N.createTempVariable(g);return N.createComma(N.createAssignment(ei,be),N.createConditionalExpression(N.createIdentifier("__syncRequire"),void 0,de(ei,or),void 0,m(ei,or)))}}function m(be,or){var Kr=N.createUniqueName("resolve"),ei=N.createUniqueName("reject"),li=[N.createParameterDeclaration(void 0,void 0,void 0,Kr),N.createParameterDeclaration(void 0,void 0,void 0,ei)],Si=N.createBlock([N.createExpressionStatement(N.createCallExpression(N.createIdentifier("require"),void 0,[N.createArrayLiteralExpression([be||N.createOmittedExpression()]),Kr,ei]))]),qi;p>=2?qi=N.createArrowFunction(void 0,void 0,li,void 0,void 0,Si):(qi=N.createFunctionExpression(void 0,void 0,void 0,void 0,li,void 0,Si),or&&e.setEmitFlags(qi,8));var ft=N.createNewExpression(N.createIdentifier("Promise"),void 0,[qi]);return e.getESModuleInterop(S)?N.createCallExpression(N.createPropertyAccessExpression(ft,N.createIdentifier("then")),void 0,[Q().createImportStarCallbackHelper()]):ft}function de(be,or){var Kr=N.createCallExpression(N.createPropertyAccessExpression(N.createIdentifier("Promise"),"resolve"),void 0,[]),ei=N.createCallExpression(N.createIdentifier("require"),void 0,be?[be]:[]);e.getESModuleInterop(S)&&(ei=Q().createImportStarHelper(ei));var li;return p>=2?li=N.createArrowFunction(void 0,void 0,[],void 0,void 0,ei):(li=N.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,N.createBlock([N.createReturnStatement(ei)])),or&&e.setEmitFlags(li,8)),N.createCallExpression(N.createPropertyAccessExpression(Kr,"then"),void 0,[li])}function ae(be,or){return!e.getESModuleInterop(S)||e.getEmitFlags(be)&67108864?or:e.getExportNeedsImportStarHelper(be)?Q().createImportStarHelper(or):or}function V(be,or){return!e.getESModuleInterop(S)||e.getEmitFlags(be)&67108864?or:e.getImportNeedsImportStarHelper(be)?Q().createImportStarHelper(or):e.getImportNeedsImportDefaultHelper(be)?Q().createImportDefaultHelper(or):or}function le(be){var or,Kr=e.getNamespaceDeclarationNode(be);if(C!==e.ModuleKind.AMD)if(be.importClause){var ei=[];Kr&&!e.isDefaultImport(be)?ei.push(N.createVariableDeclaration(N.cloneNode(Kr.name),void 0,void 0,V(be,ke(be)))):(ei.push(N.createVariableDeclaration(N.getGeneratedNameForNode(be),void 0,void 0,V(be,ke(be)))),Kr&&e.isDefaultImport(be)&&ei.push(N.createVariableDeclaration(N.cloneNode(Kr.name),void 0,void 0,N.getGeneratedNameForNode(be)))),or=e.append(or,e.setOriginalNode(e.setTextRange(N.createVariableStatement(void 0,N.createVariableDeclarationList(ei,p>=2?2:0)),be),be))}else return e.setOriginalNode(e.setTextRange(N.createExpressionStatement(ke(be)),be),be);else Kr&&e.isDefaultImport(be)&&(or=e.append(or,N.createVariableStatement(void 0,N.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(N.createVariableDeclaration(N.cloneNode(Kr.name),void 0,void 0,N.getGeneratedNameForNode(be)),be),be)],p>=2?2:0))));if(ye(be)){var li=e.getOriginalNodeId(be);B[li]=ge(B[li],be)}else or=ge(or,be);return e.singleOrMany(or)}function ke(be){var or=e.getExternalModuleNameLiteral(N,be,re,se,H,S),Kr=[];return or&&Kr.push(or),N.createCallExpression(N.createIdentifier("require"),void 0,Kr)}function Ue(be){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(be),"import= for internal module references should be handled in an earlier transformer.");var or;if(C!==e.ModuleKind.AMD?e.hasSyntacticModifier(be,1)?or=e.append(or,e.setOriginalNode(e.setTextRange(N.createExpressionStatement(Er(be.name,ke(be))),be),be)):or=e.append(or,e.setOriginalNode(e.setTextRange(N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(N.cloneNode(be.name),void 0,void 0,ke(be))],p>=2?2:0)),be),be)):e.hasSyntacticModifier(be,1)&&(or=e.append(or,e.setOriginalNode(e.setTextRange(N.createExpressionStatement(Er(N.getExportName(be),N.getLocalName(be))),be),be))),ye(be)){var Kr=e.getOriginalNodeId(be);B[Kr]=Fe(B[Kr],be)}else or=Fe(or,be);return e.singleOrMany(or)}function He(be){if(!!be.moduleSpecifier){var or=N.getGeneratedNameForNode(be);if(be.exportClause&&e.isNamedExports(be.exportClause)){var Kr=[];C!==e.ModuleKind.AMD&&Kr.push(e.setOriginalNode(e.setTextRange(N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(or,void 0,void 0,ke(be))])),be),be));for(var ei=0,li=be.exportClause.elements;ei<li.length;ei++){var Si=li[ei];if(p===0)Kr.push(e.setOriginalNode(e.setTextRange(N.createExpressionStatement(Q().createCreateBindingHelper(or,N.createStringLiteralFromNode(Si.propertyName||Si.name),Si.propertyName?N.createStringLiteralFromNode(Si.name):void 0)),Si),Si));else{var qi=!!e.getESModuleInterop(S)&&!(e.getEmitFlags(be)&67108864)&&e.idText(Si.propertyName||Si.name)==="default",ft=N.createPropertyAccessExpression(qi?Q().createImportDefaultHelper(or):or,Si.propertyName||Si.name);Kr.push(e.setOriginalNode(e.setTextRange(N.createExpressionStatement(Er(N.getExportName(Si),ft,void 0,!0)),Si),Si))}}return e.singleOrMany(Kr)}else if(be.exportClause){var Kr=[];return Kr.push(e.setOriginalNode(e.setTextRange(N.createExpressionStatement(Er(N.cloneNode(be.exportClause.name),ae(be,C!==e.ModuleKind.AMD?ke(be):e.isExportNamespaceAsDefaultDeclaration(be)?or:N.createIdentifier(e.idText(be.exportClause.name))))),be),be)),e.singleOrMany(Kr)}else return e.setOriginalNode(e.setTextRange(N.createExpressionStatement(Q().createExportStarHelper(C!==e.ModuleKind.AMD?ke(be):or)),be),be)}}function ar(be){if(!be.isExportEquals){var or,Kr=be.original;if(Kr&&ye(Kr)){var ei=e.getOriginalNodeId(be);B[ei]=Br(B[ei],N.createIdentifier("default"),e.visitNode(be.expression,l),be,!0)}else or=Br(or,N.createIdentifier("default"),e.visitNode(be.expression,l),be,!0);return e.singleOrMany(or)}}function gr(be){var or;if(e.hasSyntacticModifier(be,1)?or=e.append(or,e.setOriginalNode(e.setTextRange(N.createFunctionDeclaration(void 0,e.visitNodes(be.modifiers,br,e.isModifier),be.asteriskToken,N.getDeclarationName(be,!0,!0),void 0,e.visitNodes(be.parameters,l),void 0,e.visitEachChild(be.body,l,L)),be),be)):or=e.append(or,e.visitEachChild(be,l,L)),ye(be)){var Kr=e.getOriginalNodeId(be);B[Kr]=Ir(B[Kr],be)}else or=Ir(or,be);return e.singleOrMany(or)}function me(be){var or;if(e.hasSyntacticModifier(be,1)?or=e.append(or,e.setOriginalNode(e.setTextRange(N.createClassDeclaration(void 0,e.visitNodes(be.modifiers,br,e.isModifier),N.getDeclarationName(be,!0,!0),void 0,e.visitNodes(be.heritageClauses,l),e.visitNodes(be.members,l)),be),be)):or=e.append(or,e.visitEachChild(be,l,L)),ye(be)){var Kr=e.getOriginalNodeId(be);B[Kr]=Ir(B[Kr],be)}else or=Ir(or,be);return e.singleOrMany(or)}function Ge(be){var or,Kr,ei;if(e.hasSyntacticModifier(be,1)){for(var li=void 0,Si=!1,qi=0,ft=be.declarationList.declarations;qi<ft.length;qi++){var bt=ft[qi];if(e.isIdentifier(bt.name)&&e.isLocalName(bt.name))li||(li=e.visitNodes(be.modifiers,br,e.isModifier)),Kr=e.append(Kr,bt);else if(bt.initializer)if(!e.isBindingPattern(bt.name)&&(e.isArrowFunction(bt.initializer)||e.isFunctionExpression(bt.initializer)||e.isClassExpression(bt.initializer))){var aa=N.createAssignment(e.setTextRange(N.createPropertyAccessExpression(N.createIdentifier("exports"),bt.name),bt.name),N.createIdentifier(e.getTextOfIdentifierOrLiteral(bt.name))),sr=N.createVariableDeclaration(bt.name,bt.exclamationToken,bt.type,e.visitNode(bt.initializer,l));Kr=e.append(Kr,sr),ei=e.append(ei,aa),Si=!0}else ei=e.append(ei,he(bt))}if(Kr&&(or=e.append(or,N.updateVariableStatement(be,li,N.updateVariableDeclarationList(be.declarationList,Kr)))),ei){var Ji=e.setOriginalNode(e.setTextRange(N.createExpressionStatement(N.inlineExpressions(ei)),be),be);Si&&e.removeAllComments(Ji),or=e.append(or,Ji)}}else or=e.append(or,e.visitEachChild(be,l,L));if(ye(be)){var di=e.getOriginalNodeId(be);B[di]=cr(B[di],be)}else or=cr(or,be);return e.singleOrMany(or)}function er(be,or,Kr){var ei=ci(be);if(ei){for(var li=e.isExportName(be)?or:N.createAssignment(be,or),Si=0,qi=ei;Si<qi.length;Si++){var ft=qi[Si];e.setEmitFlags(li,4),li=Er(ft,li,Kr)}return li}return N.createAssignment(be,or)}function he(be){return e.isBindingPattern(be.name)?e.flattenDestructuringAssignment(e.visitNode(be,l),void 0,L,0,!1,er):N.createAssignment(e.setTextRange(N.createPropertyAccessExpression(N.createIdentifier("exports"),be.name),be.name),be.initializer?e.visitNode(be.initializer,l):N.createVoidZero())}function we(be){if(ye(be)&&be.original.kind===236){var or=e.getOriginalNodeId(be);B[or]=cr(B[or],be.original)}return be}function ye(be){return(e.getEmitFlags(be)&4194304)!==0}function Se(be){var or=e.getOriginalNodeId(be),Kr=B[or];return Kr?(delete B[or],e.append(Kr,be)):be}function ge(be,or){if(M.exportEquals)return be;var Kr=or.importClause;if(!Kr)return be;Kr.name&&(be=dr(be,Kr));var ei=Kr.namedBindings;if(ei)switch(ei.kind){case 267:be=dr(be,ei);break;case 268:for(var li=0,Si=ei.elements;li<Si.length;li++){var qi=Si[li];be=dr(be,qi,!0)}break}return be}function Fe(be,or){return M.exportEquals?be:dr(be,or)}function cr(be,or){if(M.exportEquals)return be;for(var Kr=0,ei=or.declarationList.declarations;Kr<ei.length;Kr++){var li=ei[Kr];be=ur(be,li)}return be}function ur(be,or){if(M.exportEquals)return be;if(e.isBindingPattern(or.name))for(var Kr=0,ei=or.name.elements;Kr<ei.length;Kr++){var li=ei[Kr];e.isOmittedExpression(li)||(be=ur(be,li))}else e.isGeneratedIdentifier(or.name)||(be=dr(be,or));return be}function Ir(be,or){if(M.exportEquals)return be;if(e.hasSyntacticModifier(or,1)){var Kr=e.hasSyntacticModifier(or,512)?N.createIdentifier("default"):N.getDeclarationName(or);be=Br(be,Kr,N.getLocalName(or),or)}return or.name&&(be=dr(be,or)),be}function dr(be,or,Kr){var ei=N.getDeclarationName(or),li=M.exportSpecifiers.get(e.idText(ei));if(li)for(var Si=0,qi=li;Si<qi.length;Si++){var ft=qi[Si];be=Br(be,ft.name,ei,ft.name,void 0,Kr)}return be}function Br(be,or,Kr,ei,li,Si){return be=e.append(be,n(or,Kr,ei,li,Si)),be}function Tr(){var be;return p===0?be=N.createExpressionStatement(Er(N.createIdentifier("__esModule"),N.createTrue())):be=N.createExpressionStatement(N.createCallExpression(N.createPropertyAccessExpression(N.createIdentifier("Object"),"defineProperty"),void 0,[N.createIdentifier("exports"),N.createStringLiteral("__esModule"),N.createObjectLiteralExpression([N.createPropertyAssignment("value",N.createTrue())])])),e.setEmitFlags(be,1048576),be}function n(be,or,Kr,ei,li){var Si=e.setTextRange(N.createExpressionStatement(Er(be,or,void 0,li)),Kr);return e.startOnNewLine(Si),ei||e.setEmitFlags(Si,1536),Si}function Er(be,or,Kr,ei){return e.setTextRange(ei&&p!==0?N.createCallExpression(N.createPropertyAccessExpression(N.createIdentifier("Object"),"defineProperty"),void 0,[N.createIdentifier("exports"),N.createStringLiteralFromNode(be),N.createObjectLiteralExpression([N.createPropertyAssignment("enumerable",N.createTrue()),N.createPropertyAssignment("get",N.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,N.createBlock([N.createReturnStatement(or)])))])]):N.createAssignment(N.createPropertyAccessExpression(N.createIdentifier("exports"),N.cloneNode(be)),or),Kr)}function br(be){switch(be.kind){case 93:case 88:return}return be}function Pr(be,or,Kr){or.kind===303?(re=or,M=ue[e.getOriginalNodeId(re)],E(be,or,Kr),re=void 0,M=void 0):E(be,or,Kr)}function Ce(be,or){return or=G(be,or),or.id&&x[or.id]?or:be===1?Xe(or):e.isShorthandPropertyAssignment(or)?Le(or):or}function Le(be){var or=be.name,Kr=Jr(or);if(Kr!==or){if(be.objectAssignmentInitializer){var ei=N.createAssignment(Kr,be.objectAssignmentInitializer);return e.setTextRange(N.createPropertyAssignment(or,ei),be)}return e.setTextRange(N.createPropertyAssignment(or,Kr),be)}return be}function Xe(be){switch(be.kind){case 79:return Jr(be);case 207:return Cr(be);case 209:return Lr(be);case 220:return Rr(be)}return be}function Cr(be){if(e.isIdentifier(be.expression)){var or=Jr(be.expression);if(x[e.getNodeId(or)]=!0,!e.isIdentifier(or)&&!(e.getEmitFlags(be.expression)&4096))return e.addEmitFlags(N.updateCallExpression(be,or,void 0,be.arguments),536870912)}return be}function Lr(be){if(e.isIdentifier(be.tag)){var or=Jr(be.tag);if(x[e.getNodeId(or)]=!0,!e.isIdentifier(or)&&!(e.getEmitFlags(be.tag)&4096))return e.addEmitFlags(N.updateTaggedTemplateExpression(be,or,void 0,be.template),536870912)}return be}function Jr(be){var or,Kr;if(e.getEmitFlags(be)&4096){var ei=e.getExternalHelpersModuleName(re);return ei?N.createPropertyAccessExpression(ei,be):be}else if(!(e.isGeneratedIdentifier(be)&&!(be.autoGenerateFlags&64))&&!e.isLocalName(be)){var li=H.getReferencedExportContainer(be,e.isExportName(be));if(li&&li.kind===303)return e.setTextRange(N.createPropertyAccessExpression(N.createIdentifier("exports"),N.cloneNode(be)),be);var Si=H.getReferencedImportDeclaration(be);if(Si){if(e.isImportClause(Si))return e.setTextRange(N.createPropertyAccessExpression(N.getGeneratedNameForNode(Si.parent),N.createIdentifier("default")),be);if(e.isImportSpecifier(Si)){var qi=Si.propertyName||Si.name;return e.setTextRange(N.createPropertyAccessExpression(N.getGeneratedNameForNode(((Kr=(or=Si.parent)===null||or===void 0?void 0:or.parent)===null||Kr===void 0?void 0:Kr.parent)||Si),N.cloneNode(qi)),be)}}}return be}function Rr(be){if(e.isAssignmentOperator(be.operatorToken.kind)&&e.isIdentifier(be.left)&&!e.isGeneratedIdentifier(be.left)&&!e.isLocalName(be.left)&&!e.isDeclarationNameOfEnumOrNamespace(be.left)){var or=ci(be.left);if(or){for(var Kr=be,ei=0,li=or;ei<li.length;ei++){var Si=li[ei];x[e.getNodeId(Kr)]=!0,Kr=Er(Si,Kr,be)}return Kr}}return be}function ci(be){if(!e.isGeneratedIdentifier(be)){var or=H.getReferencedImportDeclaration(be)||H.getReferencedValueDeclaration(be);if(or)return M&&M.exportedBindings[e.getOriginalNodeId(or)]}}}e.transformModule=a;var O={name:"typescript:dynamicimport-sync-require",scoped:!0,text:`
            var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}})(Pe||(Pe={}));var Pe;(function(e){function a(O){var L=O.factory,W=O.startLexicalEnvironment,N=O.endLexicalEnvironment,Q=O.hoistVariableDeclaration,pe=O.getCompilerOptions(),F=O.getEmitResolver(),g=O.getEmitHost(),S=O.onSubstituteNode,H=O.onEmitNode;O.onSubstituteNode=ei,O.onEmitNode=Kr,O.enableSubstitution(79),O.enableSubstitution(295),O.enableSubstitution(220),O.enableSubstitution(230),O.enableEmitNotification(303);var se=[],p=[],C=[],G=[],E=[],ue,B,re,M,x,ie,_e;return e.chainBundle(O,Y);function Y(X){if(X.isDeclarationFile||!(e.isEffectiveExternalModule(X,pe)||X.transformFlags&4194304))return X;var Ye=e.getOriginalNodeId(X);ue=X,ie=X,B=se[Ye]=e.collectExternalModuleInfo(O,X,F,pe),re=L.createUniqueName("exports"),C[Ye]=re,M=E[Ye]=L.createUniqueName("context");var Be=Z(B.externalImports),Qe=k(X,Be),_r=L.createFunctionExpression(void 0,void 0,void 0,void 0,[L.createParameterDeclaration(void 0,void 0,void 0,re),L.createParameterDeclaration(void 0,void 0,void 0,M)],void 0,Qe),hr=e.tryGetModuleNameFromFile(L,X,g,pe),Dr=L.createArrayLiteralExpression(e.map(Be,function(v){return v.name})),Me=e.setEmitFlags(L.updateSourceFile(X,e.setTextRange(L.createNodeArray([L.createExpressionStatement(L.createCallExpression(L.createPropertyAccessExpression(L.createIdentifier("System"),"register"),void 0,hr?[hr,Dr,_r]:[Dr,_r]))]),X.statements)),1024);return e.outFile(pe)||e.moveEmitHelpers(Me,Qe,function(v){return!v.scoped}),_e&&(G[Ye]=_e,_e=void 0),ue=void 0,B=void 0,re=void 0,M=void 0,x=void 0,ie=void 0,Me}function Z(X){for(var Ye=new e.Map,Be=[],Qe=0,_r=X;Qe<_r.length;Qe++){var hr=_r[Qe],Dr=e.getExternalModuleNameLiteral(L,hr,ue,g,F,pe);if(Dr){var Me=Dr.text,v=Ye.get(Me);v!==void 0?Be[v].externalImports.push(hr):(Ye.set(Me,Be.length),Be.push({name:Dr,externalImports:[hr]}))}}return Be}function k(X,Ye){var Be=[];W();var Qe=e.getStrictOptionValue(pe,"alwaysStrict")||!pe.noImplicitUseStrict&&e.isExternalModule(ue),_r=L.copyPrologue(X.statements,Be,Qe,A);Be.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration("__moduleName",void 0,void 0,L.createLogicalAnd(M,L.createPropertyAccessExpression(M,"id")))]))),e.visitNode(B.externalHelpersImportDeclaration,A,e.isStatement);var hr=e.visitNodes(X.statements,A,e.isStatement,_r);e.addRange(Be,x),e.insertStatementsAfterStandardPrologue(Be,N());var Dr=I(Be),Me=X.transformFlags&1048576?L.createModifiersFromModifierFlags(256):void 0,v=L.createObjectLiteralExpression([L.createPropertyAssignment("setters",ee(Dr,Ye)),L.createPropertyAssignment("execute",L.createFunctionExpression(Me,void 0,void 0,void 0,[],void 0,L.createBlock(hr,!0)))],!0);return Be.push(L.createReturnStatement(v)),L.createBlock(Be,!0)}function I(X){if(!!B.hasExportStarsToExportValues){if(!B.exportedNames&&B.exportSpecifiers.size===0){for(var Ye=!1,Be=0,Qe=B.externalImports;Be<Qe.length;Be++){var _r=Qe[Be];if(_r.kind===271&&_r.exportClause){Ye=!0;break}}if(!Ye){var hr=ne(void 0);return X.push(hr),hr.name}}var Dr=[];if(B.exportedNames)for(var Me=0,v=B.exportedNames;Me<v.length;Me++){var xe=v[Me];xe.escapedText!=="default"&&Dr.push(L.createPropertyAssignment(L.createStringLiteralFromNode(xe),L.createTrue()))}var ze=L.createUniqueName("exportedNames");X.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(ze,void 0,void 0,L.createObjectLiteralExpression(Dr,!0))])));var Je=ne(ze);return X.push(Je),Je.name}}function ne(X){var Ye=L.createUniqueName("exportStar"),Be=L.createIdentifier("m"),Qe=L.createIdentifier("n"),_r=L.createIdentifier("exports"),hr=L.createStrictInequality(Qe,L.createStringLiteral("default"));return X&&(hr=L.createLogicalAnd(hr,L.createLogicalNot(L.createCallExpression(L.createPropertyAccessExpression(X,"hasOwnProperty"),void 0,[Qe])))),L.createFunctionDeclaration(void 0,void 0,void 0,Ye,void 0,[L.createParameterDeclaration(void 0,void 0,void 0,Be)],void 0,L.createBlock([L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(_r,void 0,void 0,L.createObjectLiteralExpression([]))])),L.createForInStatement(L.createVariableDeclarationList([L.createVariableDeclaration(Qe)]),Be,L.createBlock([e.setEmitFlags(L.createIfStatement(hr,L.createExpressionStatement(L.createAssignment(L.createElementAccessExpression(_r,Qe),L.createElementAccessExpression(Be,Qe)))),1)])),L.createExpressionStatement(L.createCallExpression(re,void 0,[_r]))],!0))}function ee(X,Ye){for(var Be=[],Qe=0,_r=Ye;Qe<_r.length;Qe++){for(var hr=_r[Qe],Dr=e.forEach(hr.externalImports,function(mr){return e.getLocalNameForExternalImport(L,mr,ue)}),Me=Dr?L.getGeneratedNameForNode(Dr):L.createUniqueName(""),v=[],xe=0,ze=hr.externalImports;xe<ze.length;xe++){var Je=ze[xe],Oe=e.getLocalNameForExternalImport(L,Je,ue);switch(Je.kind){case 265:if(!Je.importClause)break;case 264:e.Debug.assert(Oe!==void 0),v.push(L.createExpressionStatement(L.createAssignment(Oe,Me)));break;case 271:if(e.Debug.assert(Oe!==void 0),Je.exportClause)if(e.isNamedExports(Je.exportClause)){for(var Fr=[],Xr=0,Or=Je.exportClause.elements;Xr<Or.length;Xr++){var We=Or[Xr];Fr.push(L.createPropertyAssignment(L.createStringLiteral(e.idText(We.name)),L.createElementAccessExpression(Me,L.createStringLiteral(e.idText(We.propertyName||We.name)))))}v.push(L.createExpressionStatement(L.createCallExpression(re,void 0,[L.createObjectLiteralExpression(Fr,!0)])))}else v.push(L.createExpressionStatement(L.createCallExpression(re,void 0,[L.createStringLiteral(e.idText(Je.exportClause.name)),Me])));else v.push(L.createExpressionStatement(L.createCallExpression(X,void 0,[Me])));break}}Be.push(L.createFunctionExpression(void 0,void 0,void 0,void 0,[L.createParameterDeclaration(void 0,void 0,void 0,Me)],void 0,L.createBlock(v,!0)))}return L.createArrayLiteralExpression(Be,!0)}function A(X){switch(X.kind){case 265:return f(X);case 264:return D(X);case 271:return P(X);case 270:return l(X);default:return Ge(X)}}function f(X){var Ye;if(X.importClause&&Q(e.getLocalNameForExternalImport(L,X,ue)),m(X)){var Be=e.getOriginalNodeId(X);p[Be]=ae(p[Be],X)}else Ye=ae(Ye,X);return e.singleOrMany(Ye)}function P(X){e.Debug.assertIsDefined(X)}function D(X){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(X),"import= for internal module references should be handled in an earlier transformer.");var Ye;if(Q(e.getLocalNameForExternalImport(L,X,ue)),m(X)){var Be=e.getOriginalNodeId(X);p[Be]=V(p[Be],X)}else Ye=V(Ye,X);return e.singleOrMany(Ye)}function l(X){if(!X.isExportEquals){var Ye=e.visitNode(X.expression,Ce,e.isExpression),Be=X.original;if(Be&&m(Be)){var Qe=e.getOriginalNodeId(X);p[Qe]=ar(p[Qe],L.createIdentifier("default"),Ye,!0)}else return gr(L.createIdentifier("default"),Ye,!0)}}function _(X){if(e.hasSyntacticModifier(X,1)?x=e.append(x,L.updateFunctionDeclaration(X,X.decorators,e.visitNodes(X.modifiers,or,e.isModifier),X.asteriskToken,L.getDeclarationName(X,!0,!0),void 0,e.visitNodes(X.parameters,Ce,e.isParameterDeclaration),void 0,e.visitNode(X.body,Ce,e.isBlock))):x=e.append(x,e.visitEachChild(X,Ce,O)),m(X)){var Ye=e.getOriginalNodeId(X);p[Ye]=Ue(p[Ye],X)}else x=Ue(x,X)}function J(X){var Ye,Be=L.getLocalName(X);if(Q(Be),Ye=e.append(Ye,e.setTextRange(L.createExpressionStatement(L.createAssignment(Be,e.setTextRange(L.createClassExpression(e.visitNodes(X.decorators,Ce,e.isDecorator),void 0,X.name,void 0,e.visitNodes(X.heritageClauses,Ce,e.isHeritageClause),e.visitNodes(X.members,Ce,e.isClassElement)),X))),X)),m(X)){var Qe=e.getOriginalNodeId(X);p[Qe]=Ue(p[Qe],X)}else Ye=Ue(Ye,X);return e.singleOrMany(Ye)}function w(X){if(!U(X.declarationList))return e.visitNode(X,Ce,e.isStatement);for(var Ye,Be=e.hasSyntacticModifier(X,1),Qe=m(X),_r=0,hr=X.declarationList.declarations;_r<hr.length;_r++){var Dr=hr[_r];Dr.initializer?Ye=e.append(Ye,z(Dr,Be&&!Qe)):j(Dr)}var Me;if(Ye&&(Me=e.append(Me,e.setTextRange(L.createExpressionStatement(L.inlineExpressions(Ye)),X))),Qe){var v=e.getOriginalNodeId(X);p[v]=le(p[v],X,Be)}else Me=le(Me,X,!1);return e.singleOrMany(Me)}function j(X){if(e.isBindingPattern(X.name))for(var Ye=0,Be=X.name.elements;Ye<Be.length;Ye++){var Qe=Be[Ye];e.isOmittedExpression(Qe)||j(Qe)}else Q(L.cloneNode(X.name))}function U(X){return(e.getEmitFlags(X)&2097152)===0&&(ie.kind===303||(e.getOriginalNode(X).flags&3)===0)}function z(X,Ye){var Be=Ye?y:oe;return e.isBindingPattern(X.name)?e.flattenDestructuringAssignment(X,Ce,O,0,!1,Be):X.initializer?Be(X.name,e.visitNode(X.initializer,Ce,e.isExpression)):X.name}function y(X,Ye,Be){return ve(X,Ye,Be,!0)}function oe(X,Ye,Be){return ve(X,Ye,Be,!1)}function ve(X,Ye,Be,Qe){return Q(L.cloneNode(X)),Qe?me(X,Ji(e.setTextRange(L.createAssignment(X,Ye),Be))):Ji(e.setTextRange(L.createAssignment(X,Ye),Be))}function ce(X){if(m(X)&&X.original.kind===236){var Ye=e.getOriginalNodeId(X),Be=e.hasSyntacticModifier(X.original,1);p[Ye]=le(p[Ye],X.original,Be)}return X}function m(X){return(e.getEmitFlags(X)&4194304)!==0}function de(X){var Ye=e.getOriginalNodeId(X),Be=p[Ye];if(Be)return delete p[Ye],e.append(Be,X);var Qe=e.getOriginalNode(X);return e.isModuleOrEnumDeclaration(Qe)?e.append(He(Be,Qe),X):X}function ae(X,Ye){if(B.exportEquals)return X;var Be=Ye.importClause;if(!Be)return X;Be.name&&(X=He(X,Be));var Qe=Be.namedBindings;if(Qe)switch(Qe.kind){case 267:X=He(X,Qe);break;case 268:for(var _r=0,hr=Qe.elements;_r<hr.length;_r++){var Dr=hr[_r];X=He(X,Dr)}break}return X}function V(X,Ye){return B.exportEquals?X:He(X,Ye)}function le(X,Ye,Be){if(B.exportEquals)return X;for(var Qe=0,_r=Ye.declarationList.declarations;Qe<_r.length;Qe++){var hr=_r[Qe];(hr.initializer||Be)&&(X=ke(X,hr,Be))}return X}function ke(X,Ye,Be){if(B.exportEquals)return X;if(e.isBindingPattern(Ye.name))for(var Qe=0,_r=Ye.name.elements;Qe<_r.length;Qe++){var hr=_r[Qe];e.isOmittedExpression(hr)||(X=ke(X,hr,Be))}else if(!e.isGeneratedIdentifier(Ye.name)){var Dr=void 0;Be&&(X=ar(X,Ye.name,L.getLocalName(Ye)),Dr=e.idText(Ye.name)),X=He(X,Ye,Dr)}return X}function Ue(X,Ye){if(B.exportEquals)return X;var Be;if(e.hasSyntacticModifier(Ye,1)){var Qe=e.hasSyntacticModifier(Ye,512)?L.createStringLiteral("default"):Ye.name;X=ar(X,Qe,L.getLocalName(Ye)),Be=e.getTextOfIdentifierOrLiteral(Qe)}return Ye.name&&(X=He(X,Ye,Be)),X}function He(X,Ye,Be){if(B.exportEquals)return X;var Qe=L.getDeclarationName(Ye),_r=B.exportSpecifiers.get(e.idText(Qe));if(_r)for(var hr=0,Dr=_r;hr<Dr.length;hr++){var Me=Dr[hr];Me.name.escapedText!==Be&&(X=ar(X,Me.name,Qe))}return X}function ar(X,Ye,Be,Qe){return X=e.append(X,gr(Ye,Be,Qe)),X}function gr(X,Ye,Be){var Qe=L.createExpressionStatement(me(X,Ye));return e.startOnNewLine(Qe),Be||e.setEmitFlags(Qe,1536),Qe}function me(X,Ye){var Be=e.isIdentifier(X)?L.createStringLiteralFromNode(X):X;return e.setEmitFlags(Ye,e.getEmitFlags(Ye)|1536),e.setCommentRange(L.createCallExpression(re,void 0,[Be,Ye]),Ye)}function Ge(X){switch(X.kind){case 236:return w(X);case 255:return _(X);case 256:return J(X);case 241:return er(X,!0);case 242:return he(X);case 243:return we(X);case 239:return ge(X);case 240:return Fe(X);case 249:return cr(X);case 247:return ur(X);case 248:return Ir(X);case 262:return dr(X);case 288:return Br(X);case 289:return Tr(X);case 251:return n(X);case 291:return Er(X);case 234:return br(X);case 350:return ce(X);case 351:return de(X);default:return Ce(X)}}function er(X,Ye){var Be=ie;return ie=X,X=L.updateForStatement(X,e.visitNode(X.initializer,Ye?Se:Le,e.isForInitializer),e.visitNode(X.condition,Ce,e.isExpression),e.visitNode(X.incrementor,Le,e.isExpression),e.visitIterationBody(X.statement,Ye?Ge:Ce,O)),ie=Be,X}function he(X){var Ye=ie;return ie=X,X=L.updateForInStatement(X,Se(X.initializer),e.visitNode(X.expression,Ce,e.isExpression),e.visitIterationBody(X.statement,Ge,O)),ie=Ye,X}function we(X){var Ye=ie;return ie=X,X=L.updateForOfStatement(X,X.awaitModifier,Se(X.initializer),e.visitNode(X.expression,Ce,e.isExpression),e.visitIterationBody(X.statement,Ge,O)),ie=Ye,X}function ye(X){return e.isVariableDeclarationList(X)&&U(X)}function Se(X){if(ye(X)){for(var Ye=void 0,Be=0,Qe=X.declarations;Be<Qe.length;Be++){var _r=Qe[Be];Ye=e.append(Ye,z(_r,!1)),_r.initializer||j(_r)}return Ye?L.inlineExpressions(Ye):L.createOmittedExpression()}else return e.visitNode(X,Le,e.isExpression)}function ge(X){return L.updateDoStatement(X,e.visitIterationBody(X.statement,Ge,O),e.visitNode(X.expression,Ce,e.isExpression))}function Fe(X){return L.updateWhileStatement(X,e.visitNode(X.expression,Ce,e.isExpression),e.visitIterationBody(X.statement,Ge,O))}function cr(X){return L.updateLabeledStatement(X,X.label,e.visitNode(X.statement,Ge,e.isStatement,L.liftToBlock))}function ur(X){return L.updateWithStatement(X,e.visitNode(X.expression,Ce,e.isExpression),e.visitNode(X.statement,Ge,e.isStatement,L.liftToBlock))}function Ir(X){return L.updateSwitchStatement(X,e.visitNode(X.expression,Ce,e.isExpression),e.visitNode(X.caseBlock,Ge,e.isCaseBlock))}function dr(X){var Ye=ie;return ie=X,X=L.updateCaseBlock(X,e.visitNodes(X.clauses,Ge,e.isCaseOrDefaultClause)),ie=Ye,X}function Br(X){return L.updateCaseClause(X,e.visitNode(X.expression,Ce,e.isExpression),e.visitNodes(X.statements,Ge,e.isStatement))}function Tr(X){return e.visitEachChild(X,Ge,O)}function n(X){return e.visitEachChild(X,Ge,O)}function Er(X){var Ye=ie;return ie=X,X=L.updateCatchClause(X,X.variableDeclaration,e.visitNode(X.block,Ge,e.isBlock)),ie=Ye,X}function br(X){var Ye=ie;return ie=X,X=e.visitEachChild(X,Ge,O),ie=Ye,X}function Pr(X,Ye){if(!(X.transformFlags&71307264))return X;switch(X.kind){case 241:return er(X,!1);case 237:return Xe(X);case 211:return Cr(X,Ye);case 348:return Lr(X,Ye);case 220:if(e.isDestructuringAssignment(X))return Rr(X,Ye);break;case 207:if(e.isImportCall(X))return Jr(X);break;case 218:case 219:return be(X,Ye)}return e.visitEachChild(X,Ce,O)}function Ce(X){return Pr(X,!1)}function Le(X){return Pr(X,!0)}function Xe(X){return L.updateExpressionStatement(X,e.visitNode(X.expression,Le,e.isExpression))}function Cr(X,Ye){return L.updateParenthesizedExpression(X,e.visitNode(X.expression,Ye?Le:Ce,e.isExpression))}function Lr(X,Ye){return L.updatePartiallyEmittedExpression(X,e.visitNode(X.expression,Ye?Le:Ce,e.isExpression))}function Jr(X){var Ye=e.getExternalModuleNameLiteral(L,X,ue,g,F,pe),Be=e.visitNode(e.firstOrUndefined(X.arguments),Ce),Qe=Ye&&(!Be||!e.isStringLiteral(Be)||Be.text!==Ye.text)?Ye:Be;return L.createCallExpression(L.createPropertyAccessExpression(M,L.createIdentifier("import")),void 0,Qe?[Qe]:[])}function Rr(X,Ye){return ci(X.left)?e.flattenDestructuringAssignment(X,Ce,O,0,!Ye):e.visitEachChild(X,Ce,O)}function ci(X){if(e.isAssignmentExpression(X,!0))return ci(X.left);if(e.isSpreadElement(X))return ci(X.expression);if(e.isObjectLiteralExpression(X))return e.some(X.properties,ci);if(e.isArrayLiteralExpression(X))return e.some(X.elements,ci);if(e.isShorthandPropertyAssignment(X))return ci(X.name);if(e.isPropertyAssignment(X))return ci(X.initializer);if(e.isIdentifier(X)){var Ye=F.getReferencedExportContainer(X);return Ye!==void 0&&Ye.kind===303}else return!1}function be(X,Ye){if((X.operator===45||X.operator===46)&&e.isIdentifier(X.operand)&&!e.isGeneratedIdentifier(X.operand)&&!e.isLocalName(X.operand)&&!e.isDeclarationNameOfEnumOrNamespace(X.operand)){var Be=sr(X.operand);if(Be){var Qe=void 0,_r=e.visitNode(X.operand,Ce,e.isExpression);e.isPrefixUnaryExpression(X)?_r=L.updatePrefixUnaryExpression(X,_r):(_r=L.updatePostfixUnaryExpression(X,_r),Ye||(Qe=L.createTempVariable(Q),_r=L.createAssignment(Qe,_r),e.setTextRange(_r,X)),_r=L.createComma(_r,L.cloneNode(X.operand)),e.setTextRange(_r,X));for(var hr=0,Dr=Be;hr<Dr.length;hr++){var Me=Dr[hr];_r=me(Me,Ji(_r))}return Qe&&(_r=L.createComma(_r,Qe),e.setTextRange(_r,X)),_r}}return e.visitEachChild(X,Ce,O)}function or(X){switch(X.kind){case 93:case 88:return}return X}function Kr(X,Ye,Be){if(Ye.kind===303){var Qe=e.getOriginalNodeId(Ye);ue=Ye,B=se[Qe],re=C[Qe],_e=G[Qe],M=E[Qe],_e&&delete G[Qe],H(X,Ye,Be),ue=void 0,B=void 0,re=void 0,M=void 0,_e=void 0}else H(X,Ye,Be)}function ei(X,Ye){return Ye=S(X,Ye),di(Ye)?Ye:X===1?qi(Ye):X===4?li(Ye):Ye}function li(X){switch(X.kind){case 295:return Si(X)}return X}function Si(X){var Ye,Be,Qe=X.name;if(!e.isGeneratedIdentifier(Qe)&&!e.isLocalName(Qe)){var _r=F.getReferencedImportDeclaration(Qe);if(_r){if(e.isImportClause(_r))return e.setTextRange(L.createPropertyAssignment(L.cloneNode(Qe),L.createPropertyAccessExpression(L.getGeneratedNameForNode(_r.parent),L.createIdentifier("default"))),X);if(e.isImportSpecifier(_r))return e.setTextRange(L.createPropertyAssignment(L.cloneNode(Qe),L.createPropertyAccessExpression(L.getGeneratedNameForNode(((Be=(Ye=_r.parent)===null||Ye===void 0?void 0:Ye.parent)===null||Be===void 0?void 0:Be.parent)||_r),L.cloneNode(_r.propertyName||_r.name))),X)}}return X}function qi(X){switch(X.kind){case 79:return ft(X);case 220:return bt(X);case 230:return aa(X)}return X}function ft(X){var Ye,Be;if(e.getEmitFlags(X)&4096){var Qe=e.getExternalHelpersModuleName(ue);return Qe?L.createPropertyAccessExpression(Qe,X):X}if(!e.isGeneratedIdentifier(X)&&!e.isLocalName(X)){var _r=F.getReferencedImportDeclaration(X);if(_r){if(e.isImportClause(_r))return e.setTextRange(L.createPropertyAccessExpression(L.getGeneratedNameForNode(_r.parent),L.createIdentifier("default")),X);if(e.isImportSpecifier(_r))return e.setTextRange(L.createPropertyAccessExpression(L.getGeneratedNameForNode(((Be=(Ye=_r.parent)===null||Ye===void 0?void 0:Ye.parent)===null||Be===void 0?void 0:Be.parent)||_r),L.cloneNode(_r.propertyName||_r.name)),X)}}return X}function bt(X){if(e.isAssignmentOperator(X.operatorToken.kind)&&e.isIdentifier(X.left)&&!e.isGeneratedIdentifier(X.left)&&!e.isLocalName(X.left)&&!e.isDeclarationNameOfEnumOrNamespace(X.left)){var Ye=sr(X.left);if(Ye){for(var Be=X,Qe=0,_r=Ye;Qe<_r.length;Qe++){var hr=_r[Qe];Be=me(hr,Ji(Be))}return Be}}return X}function aa(X){return e.isImportMeta(X)?L.createPropertyAccessExpression(M,L.createIdentifier("meta")):X}function sr(X){var Ye;if(!e.isGeneratedIdentifier(X)){var Be=F.getReferencedImportDeclaration(X)||F.getReferencedValueDeclaration(X);if(Be){var Qe=F.getReferencedExportContainer(X,!1);Qe&&Qe.kind===303&&(Ye=e.append(Ye,L.getDeclarationName(Be))),Ye=e.addRange(Ye,B&&B.exportedBindings[e.getOriginalNodeId(Be)])}}return Ye}function Ji(X){return _e===void 0&&(_e=[]),_e[e.getNodeId(X)]=!0,X}function di(X){return _e&&X.id&&_e[X.id]}}e.transformSystemModule=a})(Pe||(Pe={}));var Pe;(function(e){function a(O){var L=O.factory,W=O.getEmitHelperFactory,N=O.getEmitHost(),Q=O.getEmitResolver(),pe=O.getCompilerOptions(),F=e.getEmitScriptTarget(pe),g=O.onEmitNode,S=O.onSubstituteNode;O.onEmitNode=ie,O.onSubstituteNode=_e,O.enableEmitNotification(303),O.enableSubstitution(79);var H,se,p;return e.chainBundle(O,C);function C(Z){if(Z.isDeclarationFile)return Z;if(e.isExternalModule(Z)||pe.isolatedModules){se=Z,p=void 0;var k=G(Z);return se=void 0,p&&(k=L.updateSourceFile(k,e.setTextRange(L.createNodeArray(e.insertStatementsAfterCustomPrologue(k.statements.slice(),p)),k.statements))),!e.isExternalModule(Z)||e.some(k.statements,e.isExternalModuleIndicator)?k:L.updateSourceFile(k,e.setTextRange(L.createNodeArray(qe(qe([],k.statements,!0),[e.createEmptyExports(L)],!1)),k.statements))}return Z}function G(Z){var k=e.createExternalHelpersImportDeclarationIfNeeded(L,W(),Z,pe);if(k){var I=[],ne=L.copyPrologue(Z.statements,I);return e.append(I,k),e.addRange(I,e.visitNodes(Z.statements,E,e.isStatement,ne)),L.updateSourceFile(Z,e.setTextRange(L.createNodeArray(I),Z.statements))}else return e.visitEachChild(Z,E,O)}function E(Z){switch(Z.kind){case 264:return e.getEmitScriptTarget(pe)>=e.ModuleKind.ES2020?B(Z):void 0;case 270:return M(Z);case 271:var k=Z;return x(k)}return Z}function ue(Z){var k=e.getExternalModuleNameLiteral(L,Z,e.Debug.checkDefined(se),N,Q,pe),I=[];if(k&&I.push(k),!p){var ne=L.createUniqueName("_createRequire",48),ee=L.createImportDeclaration(void 0,void 0,L.createImportClause(!1,void 0,L.createNamedImports([L.createImportSpecifier(!1,L.createIdentifier("createRequire"),ne)])),L.createStringLiteral("module")),A=L.createUniqueName("__require",48),f=L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(A,void 0,void 0,L.createCallExpression(L.cloneNode(ne),void 0,[L.createPropertyAccessExpression(L.createMetaProperty(100,L.createIdentifier("meta")),L.createIdentifier("url"))]))],F>=2?2:0));p=[ee,f]}var P=p[1].declarationList.declarations[0].name;return e.Debug.assertNode(P,e.isIdentifier),L.createCallExpression(L.cloneNode(P),void 0,I)}function B(Z){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(Z),"import= for internal module references should be handled in an earlier transformer.");var k;return k=e.append(k,e.setOriginalNode(e.setTextRange(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(L.cloneNode(Z.name),void 0,void 0,ue(Z))],F>=2?2:0)),Z),Z)),k=re(k,Z),e.singleOrMany(k)}function re(Z,k){return e.hasSyntacticModifier(k,1)&&(Z=e.append(Z,L.createExportDeclaration(void 0,void 0,k.isTypeOnly,L.createNamedExports([L.createExportSpecifier(!1,void 0,e.idText(k.name))])))),Z}function M(Z){return Z.isExportEquals?void 0:Z}function x(Z){if(pe.module!==void 0&&pe.module>e.ModuleKind.ES2015||!Z.exportClause||!e.isNamespaceExport(Z.exportClause)||!Z.moduleSpecifier)return Z;var k=Z.exportClause.name,I=L.getGeneratedNameForNode(k),ne=L.createImportDeclaration(void 0,void 0,L.createImportClause(!1,void 0,L.createNamespaceImport(I)),Z.moduleSpecifier,Z.assertClause);e.setOriginalNode(ne,Z.exportClause);var ee=e.isExportNamespaceAsDefaultDeclaration(Z)?L.createExportDefault(I):L.createExportDeclaration(void 0,void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,I,k)]));return e.setOriginalNode(ee,Z),[ne,ee]}function ie(Z,k,I){e.isSourceFile(k)?((e.isExternalModule(k)||pe.isolatedModules)&&pe.importHelpers&&(H=new e.Map),g(Z,k,I),H=void 0):g(Z,k,I)}function _e(Z,k){return k=S(Z,k),H&&e.isIdentifier(k)&&e.getEmitFlags(k)&4096?Y(k):k}function Y(Z){var k=e.idText(Z),I=H.get(k);return I||H.set(k,I=L.createUniqueName(k,48)),I}}e.transformECMAScriptModule=a})(Pe||(Pe={}));var Pe;(function(e){function a(O){var L=O.onSubstituteNode,W=O.onEmitNode,N=e.transformECMAScriptModule(O),Q=O.onSubstituteNode,pe=O.onEmitNode;O.onSubstituteNode=L,O.onEmitNode=W;var F=e.transformModule(O),g=O.onSubstituteNode,S=O.onEmitNode;O.onSubstituteNode=se,O.onEmitNode=p,O.enableSubstitution(303),O.enableEmitNotification(303);var H;return E;function se(B,re){return e.isSourceFile(re)?(H=re,L(B,re)):H?H.impliedNodeFormat===e.ModuleKind.ESNext?Q(B,re):g(B,re):L(B,re)}function p(B,re,M){return e.isSourceFile(re)&&(H=re),H?H.impliedNodeFormat===e.ModuleKind.ESNext?pe(B,re,M):S(B,re,M):W(B,re,M)}function C(B){return B.impliedNodeFormat===e.ModuleKind.ESNext?N:F}function G(B){if(B.isDeclarationFile)return B;H=B;var re=C(B)(B);return H=void 0,e.Debug.assert(e.isSourceFile(re)),re}function E(B){return B.kind===303?G(B):ue(B)}function ue(B){return O.factory.createBundle(e.map(B.sourceFiles,G),B.prepends)}}e.transformNodeModule=a})(Pe||(Pe={}));var Pe;(function(e){function a(W){return e.isVariableDeclaration(W)||e.isPropertyDeclaration(W)||e.isPropertySignature(W)||e.isBindingElement(W)||e.isSetAccessor(W)||e.isGetAccessor(W)||e.isConstructSignatureDeclaration(W)||e.isCallSignatureDeclaration(W)||e.isMethodDeclaration(W)||e.isMethodSignature(W)||e.isFunctionDeclaration(W)||e.isParameter(W)||e.isTypeParameterDeclaration(W)||e.isExpressionWithTypeArguments(W)||e.isImportEqualsDeclaration(W)||e.isTypeAliasDeclaration(W)||e.isConstructorDeclaration(W)||e.isIndexSignatureDeclaration(W)||e.isPropertyAccessExpression(W)||e.isJSDocTypeAlias(W)}e.canProduceDiagnostics=a;function O(W){if(e.isSetAccessor(W)||e.isGetAccessor(W))return N;return e.isMethodSignature(W)||e.isMethodDeclaration(W)?pe:L(W);function N(g){var S=Q(g);return S!==void 0?{diagnosticMessage:S,errorNode:W,typeName:W.name}:void 0}function Q(g){return e.isStatic(W)?g.errorModuleName?g.accessibility===2?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:W.parent.kind===256?g.errorModuleName?g.accessibility===2?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:g.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}function pe(g){var S=F(g);return S!==void 0?{diagnosticMessage:S,errorNode:W,typeName:W.name}:void 0}function F(g){return e.isStatic(W)?g.errorModuleName?g.accessibility===2?e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:W.parent.kind===256?g.errorModuleName?g.accessibility===2?e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1:g.errorModuleName?e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1}}e.createGetSymbolAccessibilityDiagnosticForNodeName=O;function L(W){if(e.isVariableDeclaration(W)||e.isPropertyDeclaration(W)||e.isPropertySignature(W)||e.isPropertyAccessExpression(W)||e.isBindingElement(W)||e.isConstructorDeclaration(W))return Q;return e.isSetAccessor(W)||e.isGetAccessor(W)?pe:e.isConstructSignatureDeclaration(W)||e.isCallSignatureDeclaration(W)||e.isMethodDeclaration(W)||e.isMethodSignature(W)||e.isFunctionDeclaration(W)||e.isIndexSignatureDeclaration(W)?F:e.isParameter(W)?e.isParameterPropertyDeclaration(W,W.parent)&&e.hasSyntacticModifier(W.parent,8)?Q:g:e.isTypeParameterDeclaration(W)?H:e.isExpressionWithTypeArguments(W)?se:e.isImportEqualsDeclaration(W)?p:e.isTypeAliasDeclaration(W)||e.isJSDocTypeAlias(W)?C:e.Debug.assertNever(W,"Attempted to set a declaration diagnostic context for unhandled node kind: ".concat(e.SyntaxKind[W.kind]));function N(G){if(W.kind===253||W.kind===202)return G.errorModuleName?G.accessibility===2?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1;if(W.kind===166||W.kind===205||W.kind===165||W.kind===163&&e.hasSyntacticModifier(W.parent,8))return e.isStatic(W)?G.errorModuleName?G.accessibility===2?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:W.parent.kind===256||W.kind===163?G.errorModuleName?G.accessibility===2?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:G.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}function Q(G){var E=N(G);return E!==void 0?{diagnosticMessage:E,errorNode:W,typeName:W.name}:void 0}function pe(G){var E;return W.kind===172?e.isStatic(W)?E=G.errorModuleName?e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:E=G.errorModuleName?e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e.isStatic(W)?E=G.errorModuleName?G.accessibility===2?e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:E=G.errorModuleName?G.accessibility===2?e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:E,errorNode:W.name,typeName:W.name}}function F(G){var E;switch(W.kind){case 174:E=G.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 173:E=G.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 175:E=G.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 168:case 167:e.isStatic(W)?E=G.errorModuleName?G.accessibility===2?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:W.parent.kind===256?E=G.errorModuleName?G.accessibility===2?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:E=G.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 255:E=G.errorModuleName?G.accessibility===2?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return e.Debug.fail("This is unknown kind for signature: "+W.kind)}return{diagnosticMessage:E,errorNode:W.name||W}}function g(G){var E=S(G);return E!==void 0?{diagnosticMessage:E,errorNode:W,typeName:W.name}:void 0}function S(G){switch(W.parent.kind){case 170:return G.errorModuleName?G.accessibility===2?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 174:case 179:return G.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 173:return G.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 175:return G.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 168:case 167:return e.isStatic(W.parent)?G.errorModuleName?G.accessibility===2?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:W.parent.parent.kind===256?G.errorModuleName?G.accessibility===2?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:G.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 255:case 178:return G.errorModuleName?G.accessibility===2?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 172:case 171:return G.errorModuleName?G.accessibility===2?e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return e.Debug.fail("Unknown parent for parameter: ".concat(e.SyntaxKind[W.parent.kind]))}}function H(){var G;switch(W.parent.kind){case 256:G=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 257:G=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 194:G=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 179:case 174:G=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 173:G=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 168:case 167:e.isStatic(W.parent)?G=e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:W.parent.parent.kind===256?G=e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:G=e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 178:case 255:G=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 258:G=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: "+W.parent.kind)}return{diagnosticMessage:G,errorNode:W,typeName:W.name}}function se(){var G;return e.isClassDeclaration(W.parent.parent)?G=e.isHeritageClause(W.parent)&&W.parent.token===117?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:W.parent.parent.name?e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0:G=e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:G,errorNode:W,typeName:e.getNameOfDeclaration(W.parent.parent)}}function p(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:W,typeName:W.name}}function C(G){return{diagnosticMessage:G.errorModuleName?e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:e.isJSDocTypeAlias(W)?e.Debug.checkDefined(W.typeExpression):W.type,typeName:e.isJSDocTypeAlias(W)?e.getNameOfDeclaration(W):W.name}}}e.createGetSymbolAccessibilityDiagnosticForNode=L})(Pe||(Pe={}));var Pe;(function(e){function a(p,C,G){var E=p.getCompilerOptions(),ue=e.transformNodes(C,p,e.factory,E,G?[G]:e.filter(p.getSourceFiles(),e.isSourceFileNotJson),[N],!1);return ue.diagnostics}e.getDeclarationDiagnostics=a;function O(p,C){var G=C.text.substring(p.pos,p.end);return e.stringContains(G,"@internal")}function L(p,C){var G=e.getParseTreeNode(p);if(G&&G.kind===163){var E=G.parent.parameters.indexOf(G),ue=E>0?G.parent.parameters[E-1]:void 0,B=C.text,re=ue?e.concatenate(e.getTrailingCommentRanges(B,e.skipTrivia(B,ue.end+1,!1,!0)),e.getLeadingCommentRanges(B,p.pos)):e.getTrailingCommentRanges(B,e.skipTrivia(B,p.pos,!1,!0));return re&&re.length&&O(e.last(re),C)}var M=G&&e.getLeadingCommentRangesOfNode(G,C);return!!e.forEach(M,function(x){return O(x,C)})}e.isInternalDeclaration=L;var W=531469;function N(p){var C=function(){return e.Debug.fail("Diagnostic emitted without context")},G=C,E=!0,ue=!1,B=!1,re=!1,M=!1,x,ie,_e,Y,Z,k,I=p.factory,ne=p.getEmitHost(),ee={trackSymbol:ce,reportInaccessibleThisError:le,reportInaccessibleUniqueSymbolError:ae,reportCyclicStructureError:V,reportPrivateInBaseOfClassExpression:m,reportLikelyUnsafeImportRequiredError:ke,reportTruncationError:Ue,moduleResolverHost:ne,trackReferencedAmbientModule:y,trackExternalModuleSymbolOfImportTypeNode:ve,reportNonlocalAugmentation:He,reportNonSerializableProperty:ar},A,f,P,D,l,_,J=p.getEmitResolver(),w=p.getCompilerOptions(),j=w.noResolve,U=w.stripInternal;return me;function z(sr){if(!!sr){ie=ie||new e.Set;for(var Ji=0,di=sr;Ji<di.length;Ji++){var X=di[Ji];ie.add(X)}}}function y(sr,Ji){var di=J.getTypeReferenceDirectivesForSymbol(Ji,67108863);if(e.length(di))return z(di);var X=e.getSourceFileOfNode(sr);D.set(e.getOriginalNodeId(X),X)}function oe(sr){if(sr.accessibility===0){if(sr&&sr.aliasesToMakeVisible)if(!_e)_e=sr.aliasesToMakeVisible;else for(var Ji=0,di=sr.aliasesToMakeVisible;Ji<di.length;Ji++){var X=di[Ji];e.pushIfUnique(_e,X)}}else{var Ye=G(sr);if(Ye)return Ye.typeName?p.addDiagnostic(e.createDiagnosticForNode(sr.errorNode||Ye.errorNode,Ye.diagnosticMessage,e.getTextOfNode(Ye.typeName),sr.errorSymbolName,sr.errorModuleName)):p.addDiagnostic(e.createDiagnosticForNode(sr.errorNode||Ye.errorNode,Ye.diagnosticMessage,sr.errorSymbolName,sr.errorModuleName)),!0}return!1}function ve(sr){ue||(k||(k=[])).push(sr)}function ce(sr,Ji,di){if(sr.flags&262144)return!1;var X=oe(J.isSymbolAccessible(sr,Ji,di,!0));return z(J.getTypeReferenceDirectivesForSymbol(sr,di)),X}function m(sr){(A||f)&&p.addDiagnostic(e.createDiagnosticForNode(A||f,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,sr))}function de(){return A?e.declarationNameToString(A):f&&e.getNameOfDeclaration(f)?e.declarationNameToString(e.getNameOfDeclaration(f)):f&&e.isExportAssignment(f)?f.isExportEquals?"export=":"default":"(Missing)"}function ae(){(A||f)&&p.addDiagnostic(e.createDiagnosticForNode(A||f,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,de(),"unique symbol"))}function V(){(A||f)&&p.addDiagnostic(e.createDiagnosticForNode(A||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,de()))}function le(){(A||f)&&p.addDiagnostic(e.createDiagnosticForNode(A||f,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,de(),"this"))}function ke(sr){(A||f)&&p.addDiagnostic(e.createDiagnosticForNode(A||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,de(),sr))}function Ue(){(A||f)&&p.addDiagnostic(e.createDiagnosticForNode(A||f,e.Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function He(sr,Ji,di){var X,Ye=(X=Ji.declarations)===null||X===void 0?void 0:X.find(function(Dr){return e.getSourceFileOfNode(Dr)===sr}),Be=e.filter(di.declarations,function(Dr){return e.getSourceFileOfNode(Dr)!==sr});if(Be)for(var Qe=0,_r=Be;Qe<_r.length;Qe++){var hr=_r[Qe];p.addDiagnostic(e.addRelatedInfo(e.createDiagnosticForNode(hr,e.Diagnostics.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),e.createDiagnosticForNode(Ye,e.Diagnostics.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}}function ar(sr){(A||f)&&p.addDiagnostic(e.createDiagnosticForNode(A||f,e.Diagnostics.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,sr))}function gr(sr,Ji){var di=G;G=function(Ye){return Ye.errorNode&&e.canProduceDiagnostics(Ye.errorNode)?e.createGetSymbolAccessibilityDiagnosticForNode(Ye.errorNode)(Ye):{diagnosticMessage:Ye.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:Ye.errorNode||sr}};var X=J.getDeclarationStatementsForSourceFile(sr,W,ee,Ji);return G=di,X}function me(sr){if(sr.kind===303&&sr.isDeclarationFile)return sr;if(sr.kind===304){ue=!0,D=new e.Map,l=new e.Map;var Ji=!1,di=I.createBundle(e.map(sr.sourceFiles,function(Oe){if(!Oe.isDeclarationFile){if(Ji=Ji||Oe.hasNoDefaultLib,P=Oe,x=Oe,_e=void 0,Z=!1,Y=new e.Map,G=C,re=!1,M=!1,Ge(Oe,D),er(Oe,l),e.isExternalOrCommonJsModule(Oe)||e.isJsonSourceFile(Oe)){B=!1,E=!1;var Fr=e.isSourceFileJS(Oe)?I.createNodeArray(gr(Oe,!0)):e.visitNodes(Oe.statements,Lr),Xr=I.updateSourceFile(Oe,[I.createModuleDeclaration([],[I.createModifier(135)],I.createStringLiteral(e.getResolvedExternalModuleName(p.getEmitHost(),Oe)),I.createModuleBlock(e.setTextRange(I.createNodeArray(Le(Fr)),Oe.statements)))],!0,[],[],!1,[]);return Xr}E=!0;var Or=e.isSourceFileJS(Oe)?I.createNodeArray(gr(Oe)):e.visitNodes(Oe.statements,Lr);return I.updateSourceFile(Oe,Le(Or),!0,[],[],!1,[])}}),e.mapDefined(sr.prepends,function(Oe){if(Oe.kind===306){var Fr=e.createUnparsedSourceFile(Oe,"dts",U);return Ji=Ji||!!Fr.hasNoDefaultLib,Ge(Fr,D),z(Fr.typeReferenceDirectives),er(Fr,l),Fr}return Oe}));di.syntheticFileReferences=[],di.syntheticTypeReferences=xe(),di.syntheticLibReferences=v(),di.hasNoDefaultLib=Ji;var X=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(sr,ne,!0).declarationFilePath)),Ye=Je(di.syntheticFileReferences,X);return D.forEach(Ye),di}E=!0,re=!1,M=!1,x=sr,P=sr,G=C,ue=!1,B=!1,Z=!1,_e=void 0,Y=new e.Map,ie=void 0,D=Ge(P,new e.Map),l=er(P,new e.Map);var Be=[],Qe=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(sr,ne,!0).declarationFilePath)),_r=Je(Be,Qe),hr;if(e.isSourceFileJS(P))hr=I.createNodeArray(gr(sr)),D.forEach(_r),_=e.filter(hr,e.isAnyImportSyntax);else{var Dr=e.visitNodes(sr.statements,Lr);hr=e.setTextRange(I.createNodeArray(Le(Dr)),sr.statements),D.forEach(_r),_=e.filter(hr,e.isAnyImportSyntax),e.isExternalModule(sr)&&(!B||re&&!M)&&(hr=e.setTextRange(I.createNodeArray(qe(qe([],hr,!0),[e.createEmptyExports(I)],!1)),hr))}var Me=I.updateSourceFile(sr,hr,!0,Be,xe(),sr.hasNoDefaultLib,v());return Me.exportedModulesFromDeclarationEmit=k,Me;function v(){return e.map(e.arrayFrom(l.keys()),function(Oe){return{fileName:Oe,pos:-1,end:-1}})}function xe(){return ie?e.mapDefined(e.arrayFrom(ie.keys()),ze):[]}function ze(Oe){if(_)for(var Fr=0,Xr=_;Fr<Xr.length;Fr++){var Or=Xr[Fr];if(e.isImportEqualsDeclaration(Or)&&e.isExternalModuleReference(Or.moduleReference)){var We=Or.moduleReference.expression;if(e.isStringLiteralLike(We)&&We.text===Oe)return}else if(e.isImportDeclaration(Or)&&e.isStringLiteral(Or.moduleSpecifier)&&Or.moduleSpecifier.text===Oe)return}return{fileName:Oe,pos:-1,end:-1}}function Je(Oe,Fr){return function(Xr){var Or;if(Xr.isDeclarationFile)Or=Xr.fileName;else{if(ue&&e.contains(sr.sourceFiles,Xr))return;var We=e.getOutputPathsFor(Xr,ne,!0);Or=We.declarationFilePath||We.jsFilePath||Xr.fileName}if(Or){var mr=e.moduleSpecifiers.getModuleSpecifier(w,P,e.toPath(Fr,ne.getCurrentDirectory(),ne.getCanonicalFileName),e.toPath(Or,ne.getCurrentDirectory(),ne.getCanonicalFileName),ne);if(!e.pathIsRelative(mr)){z([mr]);return}var Nr=e.getRelativePathToDirectoryOrUrl(Fr,Or,ne.getCurrentDirectory(),ne.getCanonicalFileName,!1);if(e.startsWith(Nr,"./")&&e.hasExtension(Nr)&&(Nr=Nr.substring(2)),e.startsWith(Nr,"node_modules/")||e.pathContainsNodeModules(Nr))return;Oe.push({pos:-1,end:-1,fileName:Nr})}}}}function Ge(sr,Ji){return j||!e.isUnparsedSource(sr)&&e.isSourceFileJS(sr)||e.forEach(sr.referencedFiles,function(di){var X=ne.getSourceFileFromReference(sr,di);X&&Ji.set(e.getOriginalNodeId(X),X)}),Ji}function er(sr,Ji){return e.forEach(sr.libReferenceDirectives,function(di){var X=ne.getLibFileFromReference(di);X&&Ji.set(e.toFileNameLowerCase(di.fileName),!0)}),Ji}function he(sr){if(sr.kind===79)return sr;return sr.kind===201?I.updateArrayBindingPattern(sr,e.visitNodes(sr.elements,Ji)):I.updateObjectBindingPattern(sr,e.visitNodes(sr.elements,Ji));function Ji(di){return di.kind===226?di:I.updateBindingElement(di,di.dotDotDotToken,di.propertyName,he(di.name),ye(di)?di.initializer:void 0)}}function we(sr,Ji,di){var X;Z||(X=G,G=e.createGetSymbolAccessibilityDiagnosticForNode(sr));var Ye=I.updateParameterDeclaration(sr,void 0,pe(sr,Ji),sr.dotDotDotToken,he(sr.name),J.isOptionalParameter(sr)?sr.questionToken||I.createToken(57):void 0,ge(sr,di||sr.type,!0),Se(sr));return Z||(G=X),Ye}function ye(sr){return S(sr)&&J.isLiteralConstDeclaration(e.getParseTreeNode(sr))}function Se(sr){if(ye(sr))return J.createLiteralConstValue(e.getParseTreeNode(sr),ee)}function ge(sr,Ji,di){if(!di&&e.hasEffectiveModifier(sr,8)||ye(sr))return;var X=sr.kind===163&&(J.isRequiredInitializedParameter(sr)||J.isOptionalUninitializedParameterProperty(sr));if(Ji&&!X)return e.visitNode(Ji,Xe);if(!e.getParseTreeNode(sr))return Ji?e.visitNode(Ji,Xe):I.createKeywordTypeNode(130);if(sr.kind===172)return I.createKeywordTypeNode(130);A=sr.name;var Ye;if(Z||(Ye=G,G=e.createGetSymbolAccessibilityDiagnosticForNode(sr)),sr.kind===253||sr.kind===202)return Be(J.createTypeOfDeclaration(sr,x,W,ee));if(sr.kind===163||sr.kind===166||sr.kind===165)return sr.initializer?Be(J.createTypeOfDeclaration(sr,x,W,ee,X)||J.createTypeOfExpression(sr.initializer,x,W,ee)):Be(J.createTypeOfDeclaration(sr,x,W,ee,X));return Be(J.createReturnTypeOfSignatureDeclaration(sr,x,W,ee));function Be(Qe){return A=void 0,Z||(G=Ye),Qe||I.createKeywordTypeNode(130)}}function Fe(sr){switch(sr=e.getParseTreeNode(sr),sr.kind){case 255:case 260:case 257:case 256:case 258:case 259:return!J.isDeclarationVisible(sr);case 253:return!ur(sr);case 264:case 265:case 271:case 270:return!1;case 169:return!0}return!1}function cr(sr){var Ji;if(sr.body)return!0;var di=(Ji=sr.symbol.declarations)===null||Ji===void 0?void 0:Ji.filter(function(X){return e.isFunctionDeclaration(X)&&!X.body});return!di||di.indexOf(sr)===di.length-1}function ur(sr){return e.isOmittedExpression(sr)?!1:e.isBindingPattern(sr.name)?e.some(sr.name.elements,ur):J.isDeclarationVisible(sr)}function Ir(sr,Ji,di){if(!e.hasEffectiveModifier(sr,8)){var X=e.map(Ji,function(Ye){return we(Ye,di)});if(!!X)return I.createNodeArray(X,Ji.hasTrailingComma)}}function dr(sr,Ji){var di;if(!Ji){var X=e.getThisParameter(sr);X&&(di=[we(X)])}if(e.isSetAccessorDeclaration(sr)){var Ye=void 0;if(!Ji){var Be=e.getSetAccessorValueParameter(sr);if(Be){var Qe=bt(sr,J.getAllAccessorDeclarations(sr));Ye=we(Be,void 0,Qe)}}Ye||(Ye=I.createParameterDeclaration(void 0,void 0,void 0,"value")),di=e.append(di,Ye)}return I.createNodeArray(di||e.emptyArray)}function Br(sr,Ji){return e.hasEffectiveModifier(sr,8)?void 0:e.visitNodes(Ji,Xe)}function Tr(sr){return e.isSourceFile(sr)||e.isTypeAliasDeclaration(sr)||e.isModuleDeclaration(sr)||e.isClassDeclaration(sr)||e.isInterfaceDeclaration(sr)||e.isFunctionLike(sr)||e.isIndexSignatureDeclaration(sr)||e.isMappedTypeNode(sr)}function n(sr,Ji){var di=J.isEntityNameVisible(sr,Ji);oe(di),z(J.getTypeReferenceDirectivesForEntityName(sr))}function Er(sr,Ji){return e.hasJSDocNodes(sr)&&e.hasJSDocNodes(Ji)&&(sr.jsDoc=Ji.jsDoc),e.setCommentRange(sr,e.getCommentRange(Ji))}function br(sr,Ji){if(!!Ji){if(B=B||sr.kind!==260&&sr.kind!==199,e.isStringLiteralLike(Ji))if(ue){var di=e.getExternalModuleNameFromDeclaration(p.getEmitHost(),J,sr);if(di)return I.createStringLiteral(di)}else{var X=J.getSymbolOfExternalModuleSpecifier(Ji);X&&(k||(k=[])).push(X)}return Ji}}function Pr(sr){if(!!J.isDeclarationVisible(sr))if(sr.moduleReference.kind===276){var Ji=e.getExternalModuleImportEqualsDeclarationExpression(sr);return I.updateImportEqualsDeclaration(sr,void 0,sr.modifiers,sr.isTypeOnly,sr.name,I.updateExternalModuleReference(sr.moduleReference,br(sr,Ji)))}else{var di=G;return G=e.createGetSymbolAccessibilityDiagnosticForNode(sr),n(sr.moduleReference,x),G=di,sr}}function Ce(sr){if(!sr.importClause)return I.updateImportDeclaration(sr,void 0,sr.modifiers,sr.importClause,br(sr,sr.moduleSpecifier),void 0);var Ji=sr.importClause&&sr.importClause.name&&J.isDeclarationVisible(sr.importClause)?sr.importClause.name:void 0;if(!sr.importClause.namedBindings)return Ji&&I.updateImportDeclaration(sr,void 0,sr.modifiers,I.updateImportClause(sr.importClause,sr.importClause.isTypeOnly,Ji,void 0),br(sr,sr.moduleSpecifier),void 0);if(sr.importClause.namedBindings.kind===267){var di=J.isDeclarationVisible(sr.importClause.namedBindings)?sr.importClause.namedBindings:void 0;return Ji||di?I.updateImportDeclaration(sr,void 0,sr.modifiers,I.updateImportClause(sr.importClause,sr.importClause.isTypeOnly,Ji,di),br(sr,sr.moduleSpecifier),void 0):void 0}var X=e.mapDefined(sr.importClause.namedBindings.elements,function(Ye){return J.isDeclarationVisible(Ye)?Ye:void 0});if(X&&X.length||Ji)return I.updateImportDeclaration(sr,void 0,sr.modifiers,I.updateImportClause(sr.importClause,sr.importClause.isTypeOnly,Ji,X&&X.length?I.updateNamedImports(sr.importClause.namedBindings,X):void 0),br(sr,sr.moduleSpecifier),void 0);if(J.isImportRequiredByAugmentation(sr))return I.updateImportDeclaration(sr,void 0,sr.modifiers,void 0,br(sr,sr.moduleSpecifier),void 0)}function Le(sr){for(;e.length(_e);){var Ji=_e.shift();if(!e.isLateVisibilityPaintedStatement(Ji))return e.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: ".concat(e.SyntaxKind?e.SyntaxKind[Ji.kind]:Ji.kind));var di=E;E=Ji.parent&&e.isSourceFile(Ji.parent)&&!(e.isExternalModule(Ji.parent)&&ue);var X=Rr(Ji);E=di,Y.set(e.getOriginalNodeId(Ji),X)}return e.visitNodes(sr,Ye);function Ye(Be){if(e.isLateVisibilityPaintedStatement(Be)){var Qe=e.getOriginalNodeId(Be);if(Y.has(Qe)){var _r=Y.get(Qe);return Y.delete(Qe),_r&&((e.isArray(_r)?e.some(_r,e.needsScopeMarker):e.needsScopeMarker(_r))&&(re=!0),e.isSourceFile(Be.parent)&&(e.isArray(_r)?e.some(_r,e.isExternalModuleIndicator):e.isExternalModuleIndicator(_r))&&(B=!0)),_r}}return Be}}function Xe(sr){if(ei(sr)||e.isDeclaration(sr)&&(Fe(sr)||e.hasDynamicName(sr)&&!J.isLateBound(e.getParseTreeNode(sr)))||e.isFunctionLike(sr)&&J.isImplementationOfOverload(sr)||e.isSemicolonClassElement(sr))return;var Ji;Tr(sr)&&(Ji=x,x=sr);var di=G,X=e.canProduceDiagnostics(sr),Ye=Z,Be=(sr.kind===181||sr.kind===194)&&sr.parent.kind!==258;if((e.isMethodDeclaration(sr)||e.isMethodSignature(sr))&&e.hasEffectiveModifier(sr,8))return sr.symbol&&sr.symbol.declarations&&sr.symbol.declarations[0]!==sr?void 0:Oe(I.createPropertyDeclaration(void 0,qi(sr),sr.name,void 0,void 0,void 0));if(X&&!Z&&(G=e.createGetSymbolAccessibilityDiagnosticForNode(sr)),e.isTypeQueryNode(sr)&&n(sr.exprName,x),Be&&(Z=!0),se(sr))switch(sr.kind){case 227:{(e.isEntityName(sr.expression)||e.isEntityNameExpression(sr.expression))&&n(sr.expression,x);var Qe=e.visitEachChild(sr,Xe,p);return Oe(I.updateExpressionWithTypeArguments(Qe,Qe.expression,Qe.typeArguments))}case 177:{n(sr.typeName,x);var Qe=e.visitEachChild(sr,Xe,p);return Oe(I.updateTypeReferenceNode(Qe,Qe.typeName,Qe.typeArguments))}case 174:return Oe(I.updateConstructSignature(sr,Br(sr,sr.typeParameters),Ir(sr,sr.parameters),ge(sr,sr.type)));case 170:{var _r=I.createConstructorDeclaration(void 0,qi(sr),Ir(sr,sr.parameters,0),void 0);return Oe(_r)}case 168:{if(e.isPrivateIdentifier(sr.name))return Oe(void 0);var hr=I.createMethodDeclaration(void 0,qi(sr),void 0,sr.name,sr.questionToken,Br(sr,sr.typeParameters),Ir(sr,sr.parameters),ge(sr,sr.type),void 0);return Oe(hr)}case 171:{if(e.isPrivateIdentifier(sr.name))return Oe(void 0);var Dr=bt(sr,J.getAllAccessorDeclarations(sr));return Oe(I.updateGetAccessorDeclaration(sr,void 0,qi(sr),sr.name,dr(sr,e.hasEffectiveModifier(sr,8)),ge(sr,Dr),void 0))}case 172:return e.isPrivateIdentifier(sr.name)?Oe(void 0):Oe(I.updateSetAccessorDeclaration(sr,void 0,qi(sr),sr.name,dr(sr,e.hasEffectiveModifier(sr,8)),void 0));case 166:return e.isPrivateIdentifier(sr.name)?Oe(void 0):Oe(I.updatePropertyDeclaration(sr,void 0,qi(sr),sr.name,sr.questionToken,ge(sr,sr.type),Se(sr)));case 165:return e.isPrivateIdentifier(sr.name)?Oe(void 0):Oe(I.updatePropertySignature(sr,qi(sr),sr.name,sr.questionToken,ge(sr,sr.type)));case 167:return e.isPrivateIdentifier(sr.name)?Oe(void 0):Oe(I.updateMethodSignature(sr,qi(sr),sr.name,sr.questionToken,Br(sr,sr.typeParameters),Ir(sr,sr.parameters),ge(sr,sr.type)));case 173:return Oe(I.updateCallSignature(sr,Br(sr,sr.typeParameters),Ir(sr,sr.parameters),ge(sr,sr.type)));case 175:return Oe(I.updateIndexSignature(sr,void 0,qi(sr),Ir(sr,sr.parameters),e.visitNode(sr.type,Xe)||I.createKeywordTypeNode(130)));case 253:return e.isBindingPattern(sr.name)?be(sr.name):(Be=!0,Z=!0,Oe(I.updateVariableDeclaration(sr,sr.name,void 0,ge(sr,sr.type),Se(sr))));case 162:return Cr(sr)&&(sr.default||sr.constraint)?Oe(I.updateTypeParameterDeclaration(sr,sr.name,void 0,void 0)):Oe(e.visitEachChild(sr,Xe,p));case 188:{var Me=e.visitNode(sr.checkType,Xe),v=e.visitNode(sr.extendsType,Xe),xe=x;x=sr.trueType;var ze=e.visitNode(sr.trueType,Xe);x=xe;var Je=e.visitNode(sr.falseType,Xe);return Oe(I.updateConditionalTypeNode(sr,Me,v,ze,Je))}case 178:return Oe(I.updateFunctionTypeNode(sr,e.visitNodes(sr.typeParameters,Xe),Ir(sr,sr.parameters),e.visitNode(sr.type,Xe)));case 179:return Oe(I.updateConstructorTypeNode(sr,qi(sr),e.visitNodes(sr.typeParameters,Xe),Ir(sr,sr.parameters),e.visitNode(sr.type,Xe)));case 199:return e.isLiteralImportTypeNode(sr)?Oe(I.updateImportTypeNode(sr,I.updateLiteralTypeNode(sr.argument,br(sr,sr.argument.literal)),sr.qualifier,e.visitNodes(sr.typeArguments,Xe,e.isTypeNode),sr.isTypeOf)):Oe(sr);default:e.Debug.assertNever(sr,"Attempted to process unhandled node kind: ".concat(e.SyntaxKind[sr.kind]))}return e.isTupleTypeNode(sr)&&e.getLineAndCharacterOfPosition(P,sr.pos).line===e.getLineAndCharacterOfPosition(P,sr.end).line&&e.setEmitFlags(sr,1),Oe(e.visitEachChild(sr,Xe,p));function Oe(Fr){return Fr&&X&&e.hasDynamicName(sr)&&Kr(sr),Tr(sr)&&(x=Ji),X&&!Z&&(G=di),Be&&(Z=Ye),Fr===sr?Fr:Fr&&e.setOriginalNode(Er(Fr,sr),sr)}}function Cr(sr){return sr.parent.kind===168&&e.hasEffectiveModifier(sr.parent,8)}function Lr(sr){if(!!H(sr)&&!ei(sr)){switch(sr.kind){case 271:return e.isSourceFile(sr.parent)&&(B=!0),M=!0,I.updateExportDeclaration(sr,void 0,sr.modifiers,sr.isTypeOnly,sr.exportClause,br(sr,sr.moduleSpecifier),void 0);case 270:{if(e.isSourceFile(sr.parent)&&(B=!0),M=!0,sr.expression.kind===79)return sr;var Ji=I.createUniqueName("_default",16);G=function(){return{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:sr}},f=sr;var di=I.createVariableDeclaration(Ji,void 0,J.createTypeOfExpression(sr.expression,sr,W,ee),void 0);f=void 0;var X=I.createVariableStatement(E?[I.createModifier(135)]:[],I.createVariableDeclarationList([di],2));return[X,I.updateExportAssignment(sr,sr.decorators,sr.modifiers,Ji)]}}var Ye=Rr(sr);return Y.set(e.getOriginalNodeId(sr),Ye),sr}}function Jr(sr){if(e.isImportEqualsDeclaration(sr)||e.hasEffectiveModifier(sr,512)||!e.canHaveModifiers(sr))return sr;var Ji=I.createModifiersFromModifierFlags(e.getEffectiveModifierFlags(sr)&27646);return I.updateModifiers(sr,Ji)}function Rr(sr){if(ei(sr))return;switch(sr.kind){case 264:return Pr(sr);case 265:return Ce(sr)}if(e.isDeclaration(sr)&&Fe(sr)||e.isFunctionLike(sr)&&J.isImplementationOfOverload(sr))return;var Ji;Tr(sr)&&(Ji=x,x=sr);var di=e.canProduceDiagnostics(sr),X=G;di&&(G=e.createGetSymbolAccessibilityDiagnosticForNode(sr));var Ye=E;switch(sr.kind){case 258:return St(I.updateTypeAliasDeclaration(sr,void 0,qi(sr),sr.name,e.visitNodes(sr.typeParameters,Xe,e.isTypeParameterDeclaration),e.visitNode(sr.type,Xe,e.isTypeNode)));case 257:return St(I.updateInterfaceDeclaration(sr,void 0,qi(sr),sr.name,Br(sr,sr.typeParameters),aa(sr.heritageClauses),e.visitNodes(sr.members,Xe)));case 255:{var Be=St(I.updateFunctionDeclaration(sr,void 0,qi(sr),void 0,sr.name,Br(sr,sr.typeParameters),Ir(sr,sr.parameters),ge(sr,sr.type),void 0));if(Be&&J.isExpandoFunctionDeclaration(sr)&&cr(sr)){var Qe=J.getPropertiesOfContainerFunction(sr),_r=e.parseNodeFactory.createModuleDeclaration(void 0,void 0,Be.name||I.createIdentifier("_default"),I.createModuleBlock([]),16);e.setParent(_r,x),_r.locals=e.createSymbolTable(Qe),_r.symbol=Qe[0].parent;var hr=[],Dr=e.mapDefined(Qe,function(Ci){if(!(!Ci.valueDeclaration||!e.isPropertyAccessExpression(Ci.valueDeclaration))){G=e.createGetSymbolAccessibilityDiagnosticForNode(Ci.valueDeclaration);var Hi=J.createTypeOfDeclaration(Ci.valueDeclaration,_r,W,ee);G=X;var Yi=e.unescapeLeadingUnderscores(Ci.escapedName),yt=e.isStringANonContextualKeyword(Yi),gt=yt?I.getGeneratedNameForNode(Ci.valueDeclaration):I.createIdentifier(Yi);yt&&hr.push([gt,Yi]);var oa=I.createVariableDeclaration(gt,void 0,Hi,void 0);return I.createVariableStatement(yt?void 0:[I.createToken(93)],I.createVariableDeclarationList([oa]))}});hr.length?Dr.push(I.createExportDeclaration(void 0,void 0,!1,I.createNamedExports(e.map(hr,function(Ci){var Hi=Ci[0],Yi=Ci[1];return I.createExportSpecifier(!1,Hi,Yi)})))):Dr=e.mapDefined(Dr,function(Ci){return I.updateModifiers(Ci,0)});var Me=I.createModuleDeclaration(void 0,qi(sr),sr.name,I.createModuleBlock(Dr),16);if(!e.hasEffectiveModifier(Be,512))return[Be,Me];var v=I.createModifiersFromModifierFlags(e.getEffectiveModifierFlags(Be)&-514|2),xe=I.updateFunctionDeclaration(Be,void 0,v,void 0,Be.name,Be.typeParameters,Be.parameters,Be.type,void 0),ze=I.updateModuleDeclaration(Me,void 0,v,Me.name,Me.body),Je=I.createExportAssignment(void 0,void 0,!1,Me.name);return e.isSourceFile(sr.parent)&&(B=!0),M=!0,[xe,ze,Je]}else return Be}case 260:{E=!1;var Oe=sr.body;if(Oe&&Oe.kind===261){var Fr=re,Xr=M;M=!1,re=!1;var Or=e.visitNodes(Oe.statements,Lr),We=Le(Or);sr.flags&8388608&&(re=!1),!e.isGlobalScopeAugmentation(sr)&&!Si(We)&&!M&&(re?We=I.createNodeArray(qe(qe([],We,!0),[e.createEmptyExports(I)],!1)):We=e.visitNodes(We,Jr));var mr=I.updateModuleBlock(Oe,We);E=Ye,re=Fr,M=Xr;var Nr=qi(sr);return St(I.updateModuleDeclaration(sr,void 0,Nr,e.isExternalModuleAugmentation(sr)?br(sr,sr.name):sr.name,mr))}else{E=Ye;var Nr=qi(sr);E=!1,e.visitNode(Oe,Lr);var Ur=e.getOriginalNodeId(Oe),mr=Y.get(Ur);return Y.delete(Ur),St(I.updateModuleDeclaration(sr,void 0,Nr,sr.name,mr))}}case 256:{A=sr.name,f=sr;var v=I.createNodeArray(qi(sr)),si=Br(sr,sr.typeParameters),mi=e.getFirstConstructorWithBody(sr),Ti=void 0;if(mi){var hi=G;Ti=e.compact(e.flatMap(mi.parameters,function(Hi){if(!e.hasSyntacticModifier(Hi,16476)||ei(Hi))return;if(G=e.createGetSymbolAccessibilityDiagnosticForNode(Hi),Hi.name.kind===79)return Er(I.createPropertyDeclaration(void 0,qi(Hi),Hi.name,Hi.questionToken,ge(Hi,Hi.type),Se(Hi)),Hi);return Yi(Hi.name);function Yi(yt){for(var gt,oa=0,Bt=yt.elements;oa<Bt.length;oa++){var Pi=Bt[oa];e.isOmittedExpression(Pi)||(e.isBindingPattern(Pi.name)&&(gt=e.concatenate(gt,Yi(Pi.name))),gt=gt||[],gt.push(I.createPropertyDeclaration(void 0,qi(Hi),Pi.name,void 0,ge(Pi,void 0),void 0)))}return gt}})),G=hi}var ki=e.some(sr.members,function(Hi){return!!Hi.name&&e.isPrivateIdentifier(Hi.name)}),Ui=ki?[I.createPropertyDeclaration(void 0,void 0,I.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,zi=e.concatenate(e.concatenate(Ui,Ti),e.visitNodes(sr.members,Xe)),ri=I.createNodeArray(zi),Gi=e.getEffectiveBaseTypeNode(sr);if(Gi&&!e.isEntityNameExpression(Gi.expression)&&Gi.expression.kind!==104){var Rt=sr.name?e.unescapeLeadingUnderscores(sr.name.escapedText):"default",pa=I.createUniqueName("".concat(Rt,"_base"),16);G=function(){return{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:Gi,typeName:sr.name}};var xt=I.createVariableDeclaration(pa,void 0,J.createTypeOfExpression(Gi.expression,sr,W,ee),void 0),ua=I.createVariableStatement(E?[I.createModifier(135)]:[],I.createVariableDeclarationList([xt],2)),Vt=I.createNodeArray(e.map(sr.heritageClauses,function(Hi){if(Hi.token===94){var Yi=G;G=e.createGetSymbolAccessibilityDiagnosticForNode(Hi.types[0]);var yt=I.updateHeritageClause(Hi,e.map(Hi.types,function(gt){return I.updateExpressionWithTypeArguments(gt,pa,e.visitNodes(gt.typeArguments,Xe))}));return G=Yi,yt}return I.updateHeritageClause(Hi,e.visitNodes(I.createNodeArray(e.filter(Hi.types,function(gt){return e.isEntityNameExpression(gt.expression)||gt.expression.kind===104})),Xe))}));return[ua,St(I.updateClassDeclaration(sr,void 0,v,sr.name,si,Vt,ri))]}else{var Vt=aa(sr.heritageClauses);return St(I.updateClassDeclaration(sr,void 0,v,sr.name,si,Vt,ri))}}case 236:return St(ci(sr));case 259:return St(I.updateEnumDeclaration(sr,void 0,I.createNodeArray(qi(sr)),sr.name,I.createNodeArray(e.mapDefined(sr.members,function(Ci){if(!ei(Ci)){var Hi=J.getConstantValue(Ci);return Er(I.updateEnumMember(Ci,Ci.name,Hi!==void 0?typeof Hi=="string"?I.createStringLiteral(Hi):I.createNumericLiteral(Hi):void 0),Ci)}}))))}return e.Debug.assertNever(sr,"Unhandled top-level node in declaration emit: ".concat(e.SyntaxKind[sr.kind]));function St(Ci){return Tr(sr)&&(x=Ji),di&&(G=X),sr.kind===260&&(E=Ye),Ci===sr?Ci:(f=void 0,A=void 0,Ci&&e.setOriginalNode(Er(Ci,sr),sr))}}function ci(sr){if(!!e.forEach(sr.declarationList.declarations,ur)){var Ji=e.visitNodes(sr.declarationList.declarations,Xe);if(!!e.length(Ji))return I.updateVariableStatement(sr,I.createNodeArray(qi(sr)),I.updateVariableDeclarationList(sr.declarationList,Ji))}}function be(sr){return e.flatten(e.mapDefined(sr.elements,function(Ji){return or(Ji)}))}function or(sr){if(sr.kind!==226&&sr.name)return ur(sr)?e.isBindingPattern(sr.name)?be(sr.name):I.createVariableDeclaration(sr.name,void 0,ge(sr,void 0),void 0):void 0}function Kr(sr){var Ji;Z||(Ji=G,G=e.createGetSymbolAccessibilityDiagnosticForNodeName(sr)),A=sr.name,e.Debug.assert(J.isLateBound(e.getParseTreeNode(sr)));var di=sr,X=di.name.expression;n(X,x),Z||(G=Ji),A=void 0}function ei(sr){return!!U&&!!sr&&L(sr,P)}function li(sr){return e.isExportAssignment(sr)||e.isExportDeclaration(sr)}function Si(sr){return e.some(sr,li)}function qi(sr){var Ji=e.getEffectiveModifierFlags(sr),di=ft(sr);return Ji===di?sr.modifiers:I.createModifiersFromModifierFlags(di)}function ft(sr){var Ji=11003,di=E&&!Q(sr)?2:0,X=sr.parent.kind===303;return(!X||ue&&X&&e.isExternalModule(sr.parent))&&(Ji^=2,di=0),F(sr,Ji,di)}function bt(sr,Ji){var di=g(sr);return!di&&sr!==Ji.firstAccessor&&(di=g(Ji.firstAccessor),G=e.createGetSymbolAccessibilityDiagnosticForNode(Ji.firstAccessor)),!di&&Ji.secondAccessor&&sr!==Ji.secondAccessor&&(di=g(Ji.secondAccessor),G=e.createGetSymbolAccessibilityDiagnosticForNode(Ji.secondAccessor)),di}function aa(sr){return I.createNodeArray(e.filter(e.map(sr,function(Ji){return I.updateHeritageClause(Ji,e.visitNodes(I.createNodeArray(e.filter(Ji.types,function(di){return e.isEntityNameExpression(di.expression)||Ji.token===94&&di.expression.kind===104})),Xe))}),function(Ji){return Ji.types&&!!Ji.types.length}))}}e.transformDeclarations=N;function Q(p){return p.kind===257}function pe(p,C,G){return e.factory.createModifiersFromModifierFlags(F(p,C,G))}function F(p,C,G){C===void 0&&(C=27643),G===void 0&&(G=0);var E=e.getEffectiveModifierFlags(p)&C|G;return E&512&&!(E&1)&&(E^=1),E&512&&E&2&&(E^=2),E}function g(p){if(p)return p.kind===171?p.type:p.parameters.length>0?p.parameters[0].type:void 0}function S(p){switch(p.kind){case 166:case 165:return!e.hasEffectiveModifier(p,8);case 163:case 253:return!0}return!1}function H(p){switch(p.kind){case 255:case 260:case 264:case 257:case 256:case 258:case 259:case 236:case 265:case 271:case 270:return!0}return!1}function se(p){switch(p.kind){case 174:case 170:case 168:case 171:case 172:case 166:case 165:case 167:case 173:case 175:case 253:case 162:case 227:case 177:case 188:case 178:case 179:case 199:return!0}return!1}})(Pe||(Pe={}));var Pe;(function(e){function a(C){switch(C){case e.ModuleKind.ESNext:case e.ModuleKind.ES2022:case e.ModuleKind.ES2020:case e.ModuleKind.ES2015:return e.transformECMAScriptModule;case e.ModuleKind.System:return e.transformSystemModule;case e.ModuleKind.Node12:case e.ModuleKind.NodeNext:return e.transformNodeModule;default:return e.transformModule}}var O;(function(C){C[C.Uninitialized=0]="Uninitialized",C[C.Initialized=1]="Initialized",C[C.Completed=2]="Completed",C[C.Disposed=3]="Disposed"})(O||(O={}));var L;(function(C){C[C.Substitution=1]="Substitution",C[C.EmitNotifications=2]="EmitNotifications"})(L||(L={})),e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray};function W(C,G,E){return{scriptTransformers:N(C,G,E),declarationTransformers:Q(G)}}e.getTransformers=W;function N(C,G,E){if(E)return e.emptyArray;var ue=e.getEmitScriptTarget(C),B=e.getEmitModuleKind(C),re=[];return e.addRange(re,G&&e.map(G.before,g)),re.push(e.transformTypeScript),re.push(e.transformClassFields),e.getJSXTransformEnabled(C)&&re.push(e.transformJsx),ue<99&&re.push(e.transformESNext),ue<8&&re.push(e.transformES2021),ue<7&&re.push(e.transformES2020),ue<6&&re.push(e.transformES2019),ue<5&&re.push(e.transformES2018),ue<4&&re.push(e.transformES2017),ue<3&&re.push(e.transformES2016),ue<2&&(re.push(e.transformES2015),re.push(e.transformGenerators)),re.push(a(B)),ue<1&&re.push(e.transformES5),e.addRange(re,G&&e.map(G.after,g)),re}function Q(C){var G=[];return G.push(e.transformDeclarations),e.addRange(G,C&&e.map(C.afterDeclarations,S)),G}function pe(C){return function(G){return e.isBundle(G)?C.transformBundle(G):C.transformSourceFile(G)}}function F(C,G){return function(E){var ue=C(E);return typeof ue=="function"?G(E,ue):pe(ue)}}function g(C){return F(C,e.chainBundle)}function S(C){return F(C,function(G,E){return E})}function H(C,G){return G}e.noEmitSubstitution=H;function se(C,G,E){E(C,G)}e.noEmitNotification=se;function p(C,G,E,ue,B,re,M){for(var x=new Array(353),ie,_e,Y,Z=0,k=[],I=[],ne=[],ee=[],A=0,f=!1,P=[],D=0,l,_,J=H,w=se,j=0,U=[],z={factory:E,getCompilerOptions:function(){return ue},getEmitResolver:function(){return C},getEmitHost:function(){return G},getEmitHelperFactory:e.memoize(function(){return e.createEmitHelperFactory(z)}),startLexicalEnvironment:we,suspendLexicalEnvironment:ye,resumeLexicalEnvironment:Se,endLexicalEnvironment:ge,setLexicalEnvironmentFlags:Fe,getLexicalEnvironmentFlags:cr,hoistVariableDeclaration:Ge,hoistFunctionDeclaration:er,addInitializationStatement:he,startBlockScope:ur,endBlockScope:Ir,addBlockScopedVariable:dr,requestEmitHelper:Br,readEmitHelpers:Tr,enableSubstitution:ke,enableEmitNotification:ar,isSubstitutionEnabled:Ue,isEmitNotificationEnabled:gr,get onSubstituteNode(){return J},set onSubstituteNode(Er){e.Debug.assert(j<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(Er!==void 0,"Value must not be 'undefined'"),J=Er},get onEmitNode(){return w},set onEmitNode(Er){e.Debug.assert(j<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(Er!==void 0,"Value must not be 'undefined'"),w=Er},addDiagnostic:function(Er){U.push(Er)}},y=0,oe=B;y<oe.length;y++){var ve=oe[y];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(ve)))}e.performance.mark("beforeTransform");var ce=re.map(function(Er){return Er(z)}),m=function(Er){for(var br=0,Pr=ce;br<Pr.length;br++){var Ce=Pr[br];Er=Ce(Er)}return Er};j=1;for(var de=[],ae=0,V=B;ae<V.length;ae++){var ve=V[ae];e.tracing===null||e.tracing===void 0||e.tracing.push("emit","transformNodes",ve.kind===303?{path:ve.path}:{kind:ve.kind,pos:ve.pos,end:ve.end}),de.push((M?m:le)(ve)),e.tracing===null||e.tracing===void 0||e.tracing.pop()}return j=2,e.performance.mark("afterTransform"),e.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:de,substituteNode:He,emitNodeWithNotification:me,isEmitNotificationEnabled:gr,dispose:n,diagnostics:U};function le(Er){return Er&&(!e.isSourceFile(Er)||!Er.isDeclarationFile)?m(Er):Er}function ke(Er){e.Debug.assert(j<2,"Cannot modify the transformation context after transformation has completed."),x[Er]|=1}function Ue(Er){return(x[Er.kind]&1)!==0&&(e.getEmitFlags(Er)&4)===0}function He(Er,br){return e.Debug.assert(j<3,"Cannot substitute a node after the result is disposed."),br&&Ue(br)&&J(Er,br)||br}function ar(Er){e.Debug.assert(j<2,"Cannot modify the transformation context after transformation has completed."),x[Er]|=2}function gr(Er){return(x[Er.kind]&2)!==0||(e.getEmitFlags(Er)&2)!==0}function me(Er,br,Pr){e.Debug.assert(j<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),br&&(gr(br)?w(Er,br,Pr):Pr(Er,br))}function Ge(Er){e.Debug.assert(j>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(j<2,"Cannot modify the lexical environment after transformation has completed.");var br=e.setEmitFlags(E.createVariableDeclaration(Er),64);ie?ie.push(br):ie=[br],Z&1&&(Z|=2)}function er(Er){e.Debug.assert(j>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(j<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(Er,1048576),_e?_e.push(Er):_e=[Er]}function he(Er){e.Debug.assert(j>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(j<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(Er,1048576),Y?Y.push(Er):Y=[Er]}function we(){e.Debug.assert(j>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(j<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!f,"Lexical environment is suspended."),k[A]=ie,I[A]=_e,ne[A]=Y,ee[A]=Z,A++,ie=void 0,_e=void 0,Y=void 0,Z=0}function ye(){e.Debug.assert(j>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(j<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!f,"Lexical environment is already suspended."),f=!0}function Se(){e.Debug.assert(j>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(j<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(f,"Lexical environment is not suspended."),f=!1}function ge(){e.Debug.assert(j>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(j<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!f,"Lexical environment is suspended.");var Er;if(ie||_e||Y){if(_e&&(Er=qe([],_e,!0)),ie){var br=E.createVariableStatement(void 0,E.createVariableDeclarationList(ie));e.setEmitFlags(br,1048576),Er?Er.push(br):Er=[br]}Y&&(Er?Er=qe(qe([],Er,!0),Y,!0):Er=qe([],Y,!0))}return A--,ie=k[A],_e=I[A],Y=ne[A],Z=ee[A],A===0&&(k=[],I=[],ne=[],ee=[]),Er}function Fe(Er,br){Z=br?Z|Er:Z&~Er}function cr(){return Z}function ur(){e.Debug.assert(j>0,"Cannot start a block scope during initialization."),e.Debug.assert(j<2,"Cannot start a block scope after transformation has completed."),P[D]=l,D++,l=void 0}function Ir(){e.Debug.assert(j>0,"Cannot end a block scope during initialization."),e.Debug.assert(j<2,"Cannot end a block scope after transformation has completed.");var Er=e.some(l)?[E.createVariableStatement(void 0,E.createVariableDeclarationList(l.map(function(br){return E.createVariableDeclaration(br)}),1))]:void 0;return D--,l=P[D],D===0&&(P=[]),Er}function dr(Er){e.Debug.assert(D>0,"Cannot add a block scoped variable outside of an iteration body."),(l||(l=[])).push(Er)}function Br(Er){if(e.Debug.assert(j>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(j<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!Er.scoped,"Cannot request a scoped emit helper."),Er.dependencies)for(var br=0,Pr=Er.dependencies;br<Pr.length;br++){var Ce=Pr[br];Br(Ce)}_=e.append(_,Er)}function Tr(){e.Debug.assert(j>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(j<2,"Cannot modify the transformation context after transformation has completed.");var Er=_;return _=void 0,Er}function n(){if(j<3){for(var Er=0,br=B;Er<br.length;Er++){var Pr=br[Er];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(Pr)))}ie=void 0,k=void 0,_e=void 0,I=void 0,J=void 0,w=void 0,_=void 0,j=3}}}e.transformNodes=p,e.nullTransformationContext={factory:e.factory,getCompilerOptions:function(){return{}},getEmitResolver:e.notImplemented,getEmitHost:e.notImplemented,getEmitHelperFactory:e.notImplemented,startLexicalEnvironment:e.noop,resumeLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop,endLexicalEnvironment:e.returnUndefined,setLexicalEnvironmentFlags:e.noop,getLexicalEnvironmentFlags:function(){return 0},hoistVariableDeclaration:e.noop,hoistFunctionDeclaration:e.noop,addInitializationStatement:e.noop,startBlockScope:e.noop,endBlockScope:e.returnUndefined,addBlockScopedVariable:e.noop,requestEmitHelper:e.noop,readEmitHelpers:e.notImplemented,enableSubstitution:e.noop,enableEmitNotification:e.noop,isSubstitutionEnabled:e.notImplemented,isEmitNotificationEnabled:e.notImplemented,onSubstituteNode:H,onEmitNode:se,addDiagnostic:e.noop}})(Pe||(Pe={}));var Pe;(function(e){var a=I();function O(f){return e.fileExtensionIs(f,".tsbuildinfo")}e.isBuildInfoFile=O;function L(f,P,D,l,_,J){l===void 0&&(l=!1);var w=e.isArray(D)?D:e.getSourceFilesToEmit(f,D,l),j=f.getCompilerOptions();if(e.outFile(j)){var U=f.getPrependNodes();if(w.length||U.length){var z=e.factory.createBundle(w,U),y=P(Q(z,f,l),z);if(y)return y}}else{if(!_)for(var oe=0,ve=w;oe<ve.length;oe++){var ce=ve[oe],y=P(Q(ce,f,l),ce);if(y)return y}if(J){var m=W(j);if(m)return P({buildInfoPath:m},void 0)}}}e.forEachEmittedFile=L;function W(f){var P=f.configFilePath;if(!!e.isIncrementalCompilation(f)){if(f.tsBuildInfoFile)return f.tsBuildInfoFile;var D=e.outFile(f),l;if(D)l=e.removeFileExtension(D);else{if(!P)return;var _=e.removeFileExtension(P);l=f.outDir?f.rootDir?e.resolvePath(f.outDir,e.getRelativePathFromDirectory(f.rootDir,_,!0)):e.combinePaths(f.outDir,e.getBaseFileName(_)):_}return l+".tsbuildinfo"}}e.getTsBuildInfoEmitOutputFilePath=W;function N(f,P){var D=e.outFile(f),l=f.emitDeclarationOnly?void 0:D,_=l&&pe(l,f),J=P||e.getEmitDeclarations(f)?e.removeFileExtension(D)+".d.ts":void 0,w=J&&e.getAreDeclarationMapsEnabled(f)?J+".map":void 0,j=W(f);return{jsFilePath:l,sourceMapFilePath:_,declarationFilePath:J,declarationMapPath:w,buildInfoPath:j}}e.getOutputPathsForBundle=N;function Q(f,P,D){var l=P.getCompilerOptions();if(f.kind===304)return N(l,D);var _=e.getOwnEmitOutputFilePath(f.fileName,P,F(f.fileName,l)),J=e.isJsonSourceFile(f),w=J&&e.comparePaths(f.fileName,_,P.getCurrentDirectory(),!P.useCaseSensitiveFileNames())===0,j=l.emitDeclarationOnly||w?void 0:_,U=!j||e.isJsonSourceFile(f)?void 0:pe(j,l),z=D||e.getEmitDeclarations(l)&&!J?e.getDeclarationEmitOutputFilePath(f.fileName,P):void 0,y=z&&e.getAreDeclarationMapsEnabled(l)?z+".map":void 0;return{jsFilePath:j,sourceMapFilePath:U,declarationFilePath:z,declarationMapPath:y,buildInfoPath:void 0}}e.getOutputPathsFor=Q;function pe(f,P){return P.sourceMap&&!P.inlineSourceMap?f+".map":void 0}function F(f,P){return e.fileExtensionIs(f,".json")?".json":P.jsx===1&&e.fileExtensionIsOneOf(f,[".jsx",".tsx"])?".jsx":e.fileExtensionIsOneOf(f,[".mts",".mjs"])?".mjs":e.fileExtensionIsOneOf(f,[".cts",".cjs"])?".cjs":".js"}e.getOutputExtension=F;function g(f,P,D,l,_){return l?e.resolvePath(l,e.getRelativePathFromDirectory(_?_():E(P,D),f,D)):f}function S(f,P,D,l){return e.changeExtension(g(f,P,D,P.options.declarationDir||P.options.outDir,l),e.getDeclarationEmitExtensionForPath(f))}e.getOutputDeclarationFileName=S;function H(f,P,D,l){if(!P.options.emitDeclarationOnly){var _=e.fileExtensionIs(f,".json"),J=e.changeExtension(g(f,P,D,P.options.outDir,l),F(f,P.options));return!_||e.comparePaths(f,J,e.Debug.checkDefined(P.options.configFilePath),D)!==0?J:void 0}}function se(){var f;return{addOutput:P,getOutputs:D};function P(l){l&&(f||(f=[])).push(l)}function D(){return f||e.emptyArray}}function p(f,P){var D=N(f.options,!1),l=D.jsFilePath,_=D.sourceMapFilePath,J=D.declarationFilePath,w=D.declarationMapPath,j=D.buildInfoPath;P(l),P(_),P(J),P(w),P(j)}function C(f,P,D,l,_){if(!e.fileExtensionIs(P,".d.ts")){var J=H(P,f,D,_);if(l(J),!e.fileExtensionIs(P,".json")&&(J&&f.options.sourceMap&&l("".concat(J,".map")),e.getEmitDeclarations(f.options))){var w=S(P,f,D,_);l(w),f.options.declarationMap&&l("".concat(w,".map"))}}}function G(f,P,D,l,_){var J;return f.rootDir?(J=e.getNormalizedAbsolutePath(f.rootDir,D),_==null||_(f.rootDir)):f.composite&&f.configFilePath?(J=e.getDirectoryPath(e.normalizeSlashes(f.configFilePath)),_==null||_(J)):J=e.computeCommonSourceDirectoryOfFilenames(P(),D,l),J&&J[J.length-1]!==e.directorySeparator&&(J+=e.directorySeparator),J}e.getCommonSourceDirectory=G;function E(f,P){var D=f.options,l=f.fileNames;return G(D,function(){return e.filter(l,function(_){return!(D.noEmitForJsFiles&&e.fileExtensionIsOneOf(_,e.supportedJSExtensionsFlat))&&!e.fileExtensionIs(_,".d.ts")})},e.getDirectoryPath(e.normalizeSlashes(e.Debug.checkDefined(D.configFilePath))),e.createGetCanonicalFileName(!P))}e.getCommonSourceDirectoryOfConfig=E;function ue(f,P){var D=se(),l=D.addOutput,_=D.getOutputs;if(e.outFile(f.options))p(f,l);else{for(var J=e.memoize(function(){return E(f,P)}),w=0,j=f.fileNames;w<j.length;w++){var U=j[w];C(f,U,P,l,J)}l(W(f.options))}return _()}e.getAllProjectOutputs=ue;function B(f,P,D){P=e.normalizePath(P),e.Debug.assert(e.contains(f.fileNames,P),"Expected fileName to be present in command line");var l=se(),_=l.addOutput,J=l.getOutputs;return e.outFile(f.options)?p(f,_):C(f,P,D,_),J()}e.getOutputFileNames=B;function re(f,P){if(e.outFile(f.options)){var D=N(f.options,!1).jsFilePath;return e.Debug.checkDefined(D,"project ".concat(f.options.configFilePath," expected to have at least one output"))}for(var l=e.memoize(function(){return E(f,P)}),_=0,J=f.fileNames;_<J.length;_++){var w=J[_];if(!e.fileExtensionIs(w,".d.ts")){var D=H(w,f,P,l);if(D)return D;if(!e.fileExtensionIs(w,".json")&&e.getEmitDeclarations(f.options))return S(w,f,P,l)}}var j=W(f.options);return j||e.Debug.fail("project ".concat(f.options.configFilePath," expected to have at least one output"))}e.getFirstProjectOutput=re;function M(f,P,D,l,_,J,w){var j=l.scriptTransformers,U=l.declarationTransformers,z=P.getCompilerOptions(),y=z.sourceMap||z.inlineSourceMap||e.getAreDeclarationMapsEnabled(z)?[]:void 0,oe=z.listEmittedFiles?[]:void 0,ve=e.createDiagnosticCollection(),ce=e.getNewLineCharacter(z,function(){return P.getNewLine()}),m=e.createTextWriter(ce),de=e.performance.createTimer("printTime","beforePrint","afterPrint"),ae=de.enter,V=de.exit,le,ke=!1,Ue;return ae(),L(P,He,e.getSourceFilesToEmit(P,D,w),w,J,!D),V(),{emitSkipped:ke,diagnostics:ve.getDiagnostics(),emittedFiles:oe,sourceMaps:y,exportedModulesFromDeclarationEmit:Ue};function He(ge,Fe){var cr=ge.jsFilePath,ur=ge.sourceMapFilePath,Ir=ge.declarationFilePath,dr=ge.declarationMapPath,Br=ge.buildInfoPath,Tr;Br&&Fe&&e.isBundle(Fe)&&(Tr=e.getDirectoryPath(e.getNormalizedAbsolutePath(Br,P.getCurrentDirectory())),le={commonSourceDirectory:n(P.getCommonSourceDirectory()),sourceFiles:Fe.sourceFiles.map(function(Er){return n(e.getNormalizedAbsolutePath(Er.fileName,P.getCurrentDirectory()))})}),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitJsFileOrBundle",{jsFilePath:cr}),gr(Fe,cr,ur,n),e.tracing===null||e.tracing===void 0||e.tracing.pop(),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitDeclarationFileOrBundle",{declarationFilePath:Ir}),me(Fe,Ir,dr,n),e.tracing===null||e.tracing===void 0||e.tracing.pop(),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitBuildInfo",{buildInfoPath:Br}),ar(le,Br),e.tracing===null||e.tracing===void 0||e.tracing.pop(),!ke&&oe&&(_||(cr&&oe.push(cr),ur&&oe.push(ur),Br&&oe.push(Br)),Ir&&oe.push(Ir),dr&&oe.push(dr));function n(Er){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(Tr,Er,P.getCanonicalFileName))}}function ar(ge,Fe){if(!(!Fe||D||ke)){var cr=P.getProgramBuildInfo();if(P.isEmitBlocked(Fe)){ke=!0;return}var ur=e.version;e.writeFile(P,ve,Fe,x({bundle:ge,program:cr,version:ur}),!1)}}function gr(ge,Fe,cr,ur){if(!(!ge||_||!Fe)){if(Fe&&P.isEmitBlocked(Fe)||z.noEmit){ke=!0;return}var Ir=e.transformNodes(f,P,e.factory,z,[ge],j,!1),dr={removeComments:z.removeComments,newLine:z.newLine,noEmitHelpers:z.noEmitHelpers,module:z.module,target:z.target,sourceMap:z.sourceMap,inlineSourceMap:z.inlineSourceMap,inlineSources:z.inlineSources,extendedDiagnostics:z.extendedDiagnostics,writeBundleFileInfo:!!le,relativeToBuildInfo:ur},Br=k(dr,{hasGlobalName:f.hasGlobalName,onEmitNode:Ir.emitNodeWithNotification,isEmitNotificationEnabled:Ir.isEmitNotificationEnabled,substituteNode:Ir.substituteNode});e.Debug.assert(Ir.transformed.length===1,"Should only see one output from the transform"),er(Fe,cr,Ir.transformed[0],Br,z),Ir.dispose(),le&&(le.js=Br.bundleFileInfo)}}function me(ge,Fe,cr,ur){if(!!ge){if(!Fe){(_||z.emitDeclarationOnly)&&(ke=!0);return}var Ir=e.isSourceFile(ge)?[ge]:ge.sourceFiles,dr=w?Ir:e.filter(Ir,e.isSourceFileNotJson),Br=e.outFile(z)?[e.factory.createBundle(dr,e.isSourceFile(ge)?void 0:ge.prepends)]:dr;_&&!e.getEmitDeclarations(z)&&dr.forEach(Ge);var Tr=e.transformNodes(f,P,e.factory,z,Br,U,!1);if(e.length(Tr.diagnostics))for(var n=0,Er=Tr.diagnostics;n<Er.length;n++){var br=Er[n];ve.add(br)}var Pr={removeComments:z.removeComments,newLine:z.newLine,noEmitHelpers:!0,module:z.module,target:z.target,sourceMap:z.sourceMap,inlineSourceMap:z.inlineSourceMap,extendedDiagnostics:z.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!le,recordInternalSection:!!le,relativeToBuildInfo:ur},Ce=k(Pr,{hasGlobalName:f.hasGlobalName,onEmitNode:Tr.emitNodeWithNotification,isEmitNotificationEnabled:Tr.isEmitNotificationEnabled,substituteNode:Tr.substituteNode}),Le=!!Tr.diagnostics&&!!Tr.diagnostics.length||!!P.isEmitBlocked(Fe)||!!z.noEmit;if(ke=ke||Le,(!Le||w)&&(e.Debug.assert(Tr.transformed.length===1,"Should only see one output from the decl transform"),er(Fe,cr,Tr.transformed[0],Ce,{sourceMap:!w&&z.declarationMap,sourceRoot:z.sourceRoot,mapRoot:z.mapRoot,extendedDiagnostics:z.extendedDiagnostics}),w&&Tr.transformed[0].kind===303)){var Xe=Tr.transformed[0];Ue=Xe.exportedModulesFromDeclarationEmit}Tr.dispose(),le&&(le.dts=Ce.bundleFileInfo)}}function Ge(ge){if(e.isExportAssignment(ge)){ge.expression.kind===79&&f.collectLinkedAliases(ge.expression,!0);return}else if(e.isExportSpecifier(ge)){f.collectLinkedAliases(ge.propertyName||ge.name,!0);return}e.forEachChild(ge,Ge)}function er(ge,Fe,cr,ur,Ir){var dr=cr.kind===304?cr:void 0,Br=cr.kind===303?cr:void 0,Tr=dr?dr.sourceFiles:[Br],n;if(he(Ir,cr)&&(n=e.createSourceMapGenerator(P,e.getBaseFileName(e.normalizeSlashes(ge)),we(Ir),ye(Ir,ge,Br),Ir)),dr?ur.writeBundle(dr,m,n):ur.writeFile(Br,m,n),n){y&&y.push({inputSourceFileNames:n.getSources(),sourceMap:n.toJSON()});var Er=Se(Ir,n,ge,Fe,Br);if(Er&&(m.isAtStartOfLine()||m.rawWrite(ce),m.writeComment("//# ".concat("sourceMappingURL","=").concat(Er))),Fe){var br=n.toString();e.writeFile(P,ve,Fe,br,!1,Tr)}}else m.writeLine();e.writeFile(P,ve,ge,m.getText(),!!z.emitBOM,Tr),m.clear()}function he(ge,Fe){return(ge.sourceMap||ge.inlineSourceMap)&&(Fe.kind!==303||!e.fileExtensionIs(Fe.fileName,".json"))}function we(ge){var Fe=e.normalizeSlashes(ge.sourceRoot||"");return Fe&&e.ensureTrailingDirectorySeparator(Fe)}function ye(ge,Fe,cr){if(ge.sourceRoot)return P.getCommonSourceDirectory();if(ge.mapRoot){var ur=e.normalizeSlashes(ge.mapRoot);return cr&&(ur=e.getDirectoryPath(e.getSourceFilePathInNewDir(cr.fileName,P,ur))),e.getRootLength(ur)===0&&(ur=e.combinePaths(P.getCommonSourceDirectory(),ur)),ur}return e.getDirectoryPath(e.normalizePath(Fe))}function Se(ge,Fe,cr,ur,Ir){if(ge.inlineSourceMap){var dr=Fe.toString(),Br=e.base64encode(e.sys,dr);return"data:application/json;base64,".concat(Br)}var Tr=e.getBaseFileName(e.normalizeSlashes(e.Debug.checkDefined(ur)));if(ge.mapRoot){var n=e.normalizeSlashes(ge.mapRoot);return Ir&&(n=e.getDirectoryPath(e.getSourceFilePathInNewDir(Ir.fileName,P,n))),e.getRootLength(n)===0?(n=e.combinePaths(P.getCommonSourceDirectory(),n),encodeURI(e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(cr)),e.combinePaths(n,Tr),P.getCurrentDirectory(),P.getCanonicalFileName,!0))):encodeURI(e.combinePaths(n,Tr))}return encodeURI(Tr)}}e.emitFiles=M;function x(f){return JSON.stringify(f)}e.getBuildInfoText=x;function ie(f){return JSON.parse(f)}e.getBuildInfo=ie,e.notImplementedResolver={hasGlobalName:e.notImplemented,getReferencedExportContainer:e.notImplemented,getReferencedImportDeclaration:e.notImplemented,getReferencedDeclarationWithCollidingName:e.notImplemented,isDeclarationWithCollidingName:e.notImplemented,isValueAliasDeclaration:e.notImplemented,isReferencedAliasDeclaration:e.notImplemented,isTopLevelValueImportEqualsWithEntityName:e.notImplemented,getNodeCheckFlags:e.notImplemented,isDeclarationVisible:e.notImplemented,isLateBound:function(f){return!1},collectLinkedAliases:e.notImplemented,isImplementationOfOverload:e.notImplemented,isRequiredInitializedParameter:e.notImplemented,isOptionalUninitializedParameterProperty:e.notImplemented,isExpandoFunctionDeclaration:e.notImplemented,getPropertiesOfContainerFunction:e.notImplemented,createTypeOfDeclaration:e.notImplemented,createReturnTypeOfSignatureDeclaration:e.notImplemented,createTypeOfExpression:e.notImplemented,createLiteralConstValue:e.notImplemented,isSymbolAccessible:e.notImplemented,isEntityNameVisible:e.notImplemented,getConstantValue:e.notImplemented,getReferencedValueDeclaration:e.notImplemented,getTypeReferenceSerializationKind:e.notImplemented,isOptionalParameter:e.notImplemented,moduleExportsSomeValue:e.notImplemented,isArgumentsLocalBinding:e.notImplemented,getExternalModuleFileFromDeclaration:e.notImplemented,getTypeReferenceDirectivesForEntityName:e.notImplemented,getTypeReferenceDirectivesForSymbol:e.notImplemented,isLiteralConstDeclaration:e.notImplemented,getJsxFactoryEntity:e.notImplemented,getJsxFragmentFactoryEntity:e.notImplemented,getAllAccessorDeclarations:e.notImplemented,getSymbolOfExternalModuleSpecifier:e.notImplemented,isBindingCapturedByNode:e.notImplemented,getDeclarationStatementsForSourceFile:e.notImplemented,isImportRequiredByAugmentation:e.notImplemented};function _e(f,P,D){var l,_=e.Debug.checkDefined(f.js),J=((l=_.sources)===null||l===void 0?void 0:l.prologues)&&e.arrayToMap(_.sources.prologues,function(w){return w.file});return f.sourceFiles.map(function(w,j){var U,z,y=J==null?void 0:J.get(j),oe=y==null?void 0:y.directives.map(function(m){var de=e.setTextRange(e.factory.createStringLiteral(m.expression.text),m.expression),ae=e.setTextRange(e.factory.createExpressionStatement(de),m);return e.setParent(de,ae),ae}),ve=e.factory.createToken(1),ce=e.factory.createSourceFile(oe!=null?oe:[],ve,0);return ce.fileName=e.getRelativePathFromDirectory(D.getCurrentDirectory(),e.getNormalizedAbsolutePath(w,P),!D.useCaseSensitiveFileNames()),ce.text=(U=y==null?void 0:y.text)!==null&&U!==void 0?U:"",e.setTextRangePosWidth(ce,0,(z=y==null?void 0:y.text.length)!==null&&z!==void 0?z:0),e.setEachParent(ce.statements,ce),e.setTextRangePosWidth(ve,ce.end,0),e.setParent(ve,ce),ce})}function Y(f,P,D,l){var _=N(f.options,!1),J=_.buildInfoPath,w=_.jsFilePath,j=_.sourceMapFilePath,U=_.declarationFilePath,z=_.declarationMapPath,y=P.readFile(e.Debug.checkDefined(J));if(!y)return J;var oe=P.readFile(e.Debug.checkDefined(w));if(!oe)return w;var ve=j&&P.readFile(j);if(j&&!ve||f.options.inlineSourceMap)return j||"inline sourcemap decoding";var ce=U&&P.readFile(U);if(U&&!ce)return U;var m=z&&P.readFile(z);if(z&&!m||f.options.inlineSourceMap)return z||"inline sourcemap decoding";var de=ie(y);if(!de.bundle||!de.bundle.js||ce&&!de.bundle.dts)return J;var ae=e.getDirectoryPath(e.getNormalizedAbsolutePath(J,P.getCurrentDirectory())),V=e.createInputFiles(oe,ce,j,ve,z,m,w,U,J,de,!0),le=[],ke=e.createPrependNodes(f.projectReferences,D,function(ar){return P.readFile(ar)}),Ue=_e(de.bundle,ae,P),He={getPrependNodes:e.memoize(function(){return qe(qe([],ke,!0),[V],!1)}),getCanonicalFileName:P.getCanonicalFileName,getCommonSourceDirectory:function(){return e.getNormalizedAbsolutePath(de.bundle.commonSourceDirectory,ae)},getCompilerOptions:function(){return f.options},getCurrentDirectory:function(){return P.getCurrentDirectory()},getNewLine:function(){return P.getNewLine()},getSourceFile:e.returnUndefined,getSourceFileByPath:e.returnUndefined,getSourceFiles:function(){return Ue},getLibFileFromReference:e.notImplemented,isSourceFileFromExternalLibrary:e.returnFalse,getResolvedProjectReferenceToRedirect:e.returnUndefined,getProjectReferenceRedirect:e.returnUndefined,isSourceOfProjectReferenceRedirect:e.returnFalse,writeFile:function(ar,gr,me){switch(ar){case w:if(oe===gr)return;break;case j:if(ve===gr)return;break;case J:var Ge=ie(gr);Ge.program=de.program;var er=de.bundle,he=er.js,we=er.dts,ye=er.sourceFiles;Ge.bundle.js.sources=he.sources,we&&(Ge.bundle.dts.sources=we.sources),Ge.bundle.sourceFiles=ye,le.push({name:ar,text:x(Ge),writeByteOrderMark:me});return;case U:if(ce===gr)return;break;case z:if(m===gr)return;break;default:e.Debug.fail("Unexpected path: ".concat(ar))}le.push({name:ar,text:gr,writeByteOrderMark:me})},isEmitBlocked:e.returnFalse,readFile:function(ar){return P.readFile(ar)},fileExists:function(ar){return P.fileExists(ar)},useCaseSensitiveFileNames:function(){return P.useCaseSensitiveFileNames()},getProgramBuildInfo:e.returnUndefined,getSourceFileFromReference:e.returnUndefined,redirectTargetsMap:e.createMultiMap(),getFileIncludeReasons:e.notImplemented};return M(e.notImplementedResolver,He,void 0,e.getTransformers(f.options,l)),le}e.emitUsingBuildInfo=Y;var Z;(function(f){f[f.Notification=0]="Notification",f[f.Substitution=1]="Substitution",f[f.Comments=2]="Comments",f[f.SourceMaps=3]="SourceMaps",f[f.Emit=4]="Emit"})(Z||(Z={}));function k(f,P){f===void 0&&(f={}),P===void 0&&(P={});var D=P.hasGlobalName,l=P.onEmitNode,_=l===void 0?e.noEmitNotification:l,J=P.isEmitNotificationEnabled,w=P.substituteNode,j=w===void 0?e.noEmitSubstitution:w,U=P.onBeforeEmitNode,z=P.onAfterEmitNode,y=P.onBeforeEmitNodeArray,oe=P.onAfterEmitNodeArray,ve=P.onBeforeEmitToken,ce=P.onAfterEmitToken,m=!!f.extendedDiagnostics,de=e.getNewLineCharacter(f),ae=e.getEmitModuleKind(f),V=new e.Map,le,ke,Ue,He,ar,gr,me,Ge,er=f.preserveSourceNewlines,he,we,ye,Se=jf,ge,Fe=f.writeBundleFileInfo?{sections:[]}:void 0,cr=Fe?e.Debug.checkDefined(f.relativeToBuildInfo):void 0,ur=f.recordInternalSection,Ir=0,dr="text",Br=!0,Tr,n,Er=-1,br,Pr=-1,Ce=-1,Le=-1,Xe=-1,Cr,Lr,Jr=!1,Rr=!!f.removeComments,ci,be,or=e.performance.createTimerIf(m,"commentTime","beforeComment","afterComment"),Kr=or.enter,ei=or.exit,li=e.factory.parenthesizer,Si=zr();return Fr(),{printNode:qi,printList:ft,printFile:aa,printBundle:bt,writeNode:Ji,writeList:di,writeFile:Me,writeBundle:hr,bundleFileInfo:Fe};function qi(b,rr,ai){switch(b){case 0:e.Debug.assert(e.isSourceFile(rr),"Expected a SourceFile node.");break;case 2:e.Debug.assert(e.isIdentifier(rr),"Expected an Identifier node.");break;case 1:e.Debug.assert(e.isExpression(rr),"Expected an Expression node.");break}switch(rr.kind){case 303:return aa(rr);case 304:return bt(rr);case 305:return sr(rr)}return Ji(b,rr,ai,v()),xe()}function ft(b,rr,ai){return di(b,rr,ai,v()),xe()}function bt(b){return hr(b,v(),void 0),xe()}function aa(b){return Me(b,v(),void 0),xe()}function sr(b){return Dr(b,v()),xe()}function Ji(b,rr,ai,Wi){var At=we;Oe(Wi,void 0),ze(b,rr,ai),Fr(),we=At}function di(b,rr,ai,Wi){var At=we;Oe(Wi,void 0),ai&&Je(ai),Ro(void 0,rr,b),Fr(),we=At}function X(){return we.getTextPosWithWriteLine?we.getTextPosWithWriteLine():we.getTextPos()}function Ye(b,rr,ai){var Wi=e.lastOrUndefined(Fe.sections);Wi&&Wi.kind===ai?Wi.end=rr:Fe.sections.push({pos:b,end:rr,kind:ai})}function Be(b){if(ur&&Fe&&le&&(e.isDeclaration(b)||e.isVariableStatement(b))&&e.isInternalDeclaration(b,le)&&dr!=="internal"){var rr=dr;return _r(we.getTextPos()),Ir=X(),dr="internal",rr}}function Qe(b){b&&(_r(we.getTextPos()),Ir=X(),dr=b)}function _r(b){return Ir<b?(Ye(Ir,b,dr),!0):!1}function hr(b,rr,ai){var Wi;ge=!1;var At=we;Oe(rr,ai),Mf(b),B_(b),ua(b),Wl(b);for(var ra=0,La=b.prepends;ra<La.length;ra++){var fn=La[ra];ko();var Bo=we.getTextPos(),Yo=Fe&&Fe.sections;if(Yo&&(Fe.sections=[]),ze(4,fn,void 0),Fe){var jo=Fe.sections;Fe.sections=Yo,fn.oldFileOfCurrentEmit?(Wi=Fe.sections).push.apply(Wi,jo):(jo.forEach(function(Au){return e.Debug.assert(e.isBundleFileTextLike(Au))}),Fe.sections.push({pos:Bo,end:we.getTextPos(),kind:"prepend",data:cr(fn.fileName),texts:jo}))}}Ir=X();for(var cc=0,qs=b.sourceFiles;cc<qs.length;cc++){var uc=qs[cc];ze(0,uc,uc)}if(Fe&&b.sourceFiles.length){var hu=we.getTextPos();if(_r(hu)){var $l=kd(b);$l&&(Fe.sources||(Fe.sources={}),Fe.sources.prologues=$l);var Qs=xt(b);Qs&&(Fe.sources||(Fe.sources={}),Fe.sources.helpers=Qs)}}Fr(),we=At}function Dr(b,rr){var ai=we;Oe(rr,void 0),ze(4,b,void 0),Fr(),we=ai}function Me(b,rr,ai){ge=!0;var Wi=we;Oe(rr,ai),Mf(b),B_(b),ze(0,b,b),Fr(),we=Wi}function v(){return ye||(ye=e.createTextWriter(de))}function xe(){var b=ye.getText();return ye.clear(),b}function ze(b,rr,ai){ai&&Je(ai),mi(b,rr,void 0)}function Je(b){le=b,Cr=void 0,Lr=void 0,b&&vf(b)}function Oe(b,rr){b&&f.omitTrailingSemicolon&&(b=e.getTrailingSemicolonDeferringWriter(b)),we=b,Tr=rr,Br=!we||!Tr}function Fr(){ke=[],Ue=[],He=new e.Set,ar=[],gr=0,me=[],le=void 0,Cr=void 0,Lr=void 0,Oe(void 0,void 0)}function Xr(){return Cr||(Cr=e.getLineStarts(le))}function Or(b,rr){if(b!==void 0){var ai=Be(b);mi(4,b,rr),Qe(ai)}}function We(b){b!==void 0&&mi(2,b,void 0)}function mr(b,rr){b!==void 0&&mi(1,b,rr)}function Nr(b){mi(e.isStringLiteral(b)?6:4,b)}function Ur(b){er&&e.getEmitFlags(b)&134217728&&(er=!1)}function si(b){er=b}function mi(b,rr,ai){be=ai;var Wi=ki(0,b,rr);Wi(b,rr),be=void 0}function Ti(b){return!Rr&&!e.isSourceFile(b)}function hi(b){return!Br&&!e.isSourceFile(b)&&!e.isInJsonFile(b)&&!e.isUnparsedSource(b)&&!e.isUnparsedPrepend(b)}function ki(b,rr,ai){switch(b){case 0:if(_!==e.noEmitNotification&&(!J||J(ai)))return zi;case 1:if(j!==e.noEmitSubstitution&&(ci=j(rr,ai)||ai)!==ai)return be&&(ci=be(ci)),pa;case 2:if(Ti(ai))return _s;case 3:if(hi(ai))return V_;case 4:return ri;default:return e.Debug.assertNever(b)}}function Ui(b,rr,ai){return ki(b+1,rr,ai)}function zi(b,rr){var ai=Ui(0,b,rr);_(b,rr,ai)}function ri(b,rr){if(U==null||U(rr),er){var ai=er;Ur(rr),Gi(b,rr),si(ai)}else Gi(b,rr);z==null||z(rr),be=void 0}function Gi(b,rr,ai){if(ai===void 0&&(ai=!0),ai){var Wi=e.getSnippetElement(rr);if(Wi)return oa(b,rr,Wi)}if(b===0)return Zp(e.cast(rr,e.isSourceFile));if(b===2)return Oi(e.cast(rr,e.isIdentifier));if(b===6)return Ci(e.cast(rr,e.isStringLiteral),!0);if(b===3)return Rt(e.cast(rr,e.isTypeParameterDeclaration));if(b===5)return e.Debug.assertNode(rr,e.isEmptyStatement),ns(!0);if(b===4){switch(rr.kind){case 15:case 16:case 17:return Ci(rr,!1);case 79:return Oi(rr);case 80:return wi(rr);case 160:return Qr(rr);case 161:return tt(rr);case 162:return ta(rr);case 163:return Xa(rr);case 164:return on(rr);case 165:return qr(rr);case 166:return bn(rr);case 167:return Rn(rr);case 168:return Sn(rr);case 169:return zn(rr);case 170:return Zn(rr);case 171:case 172:return ho(rr);case 173:return Vo(rr);case 174:return Cn(rr);case 175:return go(rr);case 176:return rs(rr);case 177:return rn(rr);case 178:return Do(rr);case 179:return xo(rr);case 180:return ds(rr);case 181:return No(rr);case 182:return Ts(rr);case 183:return xr(rr);case 184:return ut(rr);case 186:return Ht(rr);case 187:return Ka(rr);case 188:return an(rr);case 189:return Ke(rr);case 190:return h(rr);case 227:return Zt(rr);case 191:return Ee();case 192:return Re(rr);case 193:return nr(rr);case 194:return Gr(rr);case 195:return _i(rr);case 196:return bi(rr);case 197:return Ei(rr);case 198:return ro(rr);case 199:return Ki(rr);case 200:return Nt(rr);case 201:return ca(rr);case 202:return Fa(rr);case 232:return jr(rr);case 233:return Ko();case 234:return is(rr);case 236:return nc(rr);case 235:return ns(!1);case 237:return Xs(rr);case 238:return rc(rr);case 239:return Bc(rr);case 240:return Qu(rr);case 241:return uo(rr);case 242:return Xc(rr);case 243:return Ru(rr);case 244:return Yu(rr);case 245:return lu(rr);case 246:return fi(rr);case 247:return Ni(rr);case 248:return rt(rr);case 249:return Tt(rr);case 250:return Dt(rr);case 251:return jt(rr);case 252:return na(rr);case 253:return Za(rr);case 254:return ya(rr);case 255:return ha(rr);case 256:return Sr(rr);case 257:return nt(rr);case 258:return _a(rr);case 259:return Na(rr);case 260:return wn(rr);case 261:return no(rr);case 262:return Go(rr);case 263:return fu(rr);case 264:return vo(rr);case 265:return to(rr);case 266:return Jo(rr);case 267:return Xo(rr);case 273:return lp(rr);case 268:return Wr(rr);case 269:return Ws(rr);case 270:return nu(rr);case 271:return Tu(rr);case 272:return bo(rr);case 274:return w_(rr);case 292:return oc(rr);case 293:return Qc(rr);case 275:return;case 276:return hl(rr);case 11:return Vs(rr);case 279:case 282:return Yc(rr);case 280:case 283:return Zu(rr);case 284:return Da(rr);case 285:return Ma(rr);case 286:return Ju(rr);case 287:return Xp(rr);case 288:return el(rr);case 289:return Of(rr);case 290:return t_(rr);case 291:return Nc(rr);case 294:return F_(rr);case 295:return Ff(rr);case 296:return M_(rr);case 297:return _p(rr);case 298:return Yi(rr);case 305:case 299:return Hi(rr);case 300:case 301:return yt(rr);case 302:return gt(rr);case 303:return Zp(rr);case 304:return e.Debug.fail("Bundles should be printed using printBundle");case 306:return e.Debug.fail("InputFiles should not be printed");case 307:return Dl(rr);case 308:return gp(rr);case 310:return Kt("*");case 311:return Kt("?");case 312:return pn(rr);case 313:return Qn(rr);case 314:return wo(rr);case 315:return io(rr);case 185:case 316:return Ms(rr);case 317:return;case 318:return Qp(rr);case 320:return L_(rr);case 321:return rl(rr);case 325:case 330:case 335:return mp(rr);case 326:case 327:return Yp(rr);case 328:case 329:return;case 331:case 332:case 333:case 334:return;case 336:return Cd(rr);case 338:case 345:return ju(rr);case 337:case 339:case 340:case 341:return pp(rr);case 342:return $p(rr);case 343:return a_(rr);case 344:return dp(rr);case 347:case 351:case 350:return}if(e.isExpression(rr)&&(b=1,j!==e.noEmitSubstitution)){var At=j(b,rr)||rr;At!==rr&&(rr=At,be&&(rr=be(rr)))}}if(b===1)switch(rr.kind){case 8:case 9:return St(rr);case 10:case 13:case 14:return Ci(rr,!1);case 79:return Oi(rr);case 80:return wi(rr);case 203:return Ta(rr);case 204:return In(rr);case 205:return so(rr);case 206:return Ho(rr);case 207:return Ds(rr);case 208:return Os(rr);case 209:return mc(rr);case 210:return Hs(rr);case 211:return Mi(rr);case 212:return $t(rr);case 213:return ga(rr);case 214:return yn(rr);case 215:return An(rr);case 216:return Pa(rr);case 217:return Mn(rr);case 218:return ao(rr);case 219:return De(rr);case 220:return Si(rr);case 221:return xi(rr);case 222:return et(rr);case 223:return je(rr);case 224:return ti(rr);case 225:return mt(rr);case 226:return;case 228:return ln(rr);case 229:return Ba(rr);case 230:return Oo(rr);case 231:return e.Debug.fail("SyntheticExpression should never be printed.");case 277:return xu(rr);case 278:return tf(rr);case 281:return If(rr);case 346:return e.Debug.fail("SyntaxList should not be printed");case 347:return;case 348:return o_(rr);case 349:return R_(rr);case 350:case 351:return;case 352:return e.Debug.fail("SyntheticReferenceExpression should not be printed")}if(e.isKeyword(rr.kind))return bp(rr,mn);if(e.isTokenKind(rr.kind))return bp(rr,Kt);e.Debug.fail("Unhandled SyntaxKind: ".concat(e.Debug.formatSyntaxKind(rr.kind),"."))}function Rt(b){Or(b.name),Ut(),mn("in"),Ut(),Or(b.constraint)}function pa(b,rr){var ai=Ui(1,b,rr);e.Debug.assertIsDefined(ci),rr=ci,ci=void 0,ai(b,rr)}function xt(b){var rr;if(!(ae===e.ModuleKind.None||f.noEmitHelpers)){for(var ai=new e.Map,Wi=0,At=b.sourceFiles;Wi<At.length;Wi++){var ra=At[Wi],La=e.getExternalHelpersModuleName(ra)!==void 0,fn=Vt(ra);if(!!fn)for(var Bo=0,Yo=fn;Bo<Yo.length;Bo++){var jo=Yo[Bo];!jo.scoped&&!La&&!ai.get(jo.name)&&(ai.set(jo.name,!0),(rr||(rr=[])).push(jo.name))}}return rr}}function ua(b){var rr=!1,ai=b.kind===304?b:void 0;if(!(ai&&ae===e.ModuleKind.None)){for(var Wi=ai?ai.prepends.length:0,At=ai?ai.sourceFiles.length+Wi:1,ra=0;ra<At;ra++){var La=ai?ra<Wi?ai.prepends[ra]:ai.sourceFiles[ra-Wi]:b,fn=e.isSourceFile(La)?La:e.isUnparsedSource(La)?void 0:le,Bo=f.noEmitHelpers||!!fn&&e.hasRecordedExternalHelpers(fn),Yo=(e.isSourceFile(La)||e.isUnparsedSource(La))&&!ge,jo=e.isUnparsedSource(La)?La.helpers:Vt(La);if(jo)for(var cc=0,qs=jo;cc<qs.length;cc++){var uc=qs[cc];if(uc.scoped){if(ai)continue}else{if(Bo)continue;if(Yo){if(V.get(uc.name))continue;V.set(uc.name,!0)}}var hu=X();typeof uc.text=="string"?J_(uc.text):J_(uc.text(ss)),Fe&&Fe.sections.push({pos:hu,end:we.getTextPos(),kind:"emitHelpers",data:uc.name}),rr=!0}}return rr}}function Vt(b){var rr=e.getEmitHelpers(b);return rr&&e.stableSort(rr,e.compareEmitHelpers)}function St(b){Ci(b,!1)}function Ci(b,rr){var ai=Wn(b,f.neverAsciiEscape,rr);(f.sourceMap||f.inlineSourceMap)&&(b.kind===10||e.isTemplateLiteralKind(b.kind))?gu(ai):Jf(ai)}function Hi(b){for(var rr=0,ai=b.texts;rr<ai.length;rr++){var Wi=ai[rr];ko(),Or(Wi)}}function Yi(b){we.rawWrite(b.parent.text.substring(b.pos,b.end))}function yt(b){var rr=X();Yi(b),Fe&&Ye(rr,we.getTextPos(),b.kind===300?"text":"internal")}function gt(b){var rr=X();if(Yi(b),Fe){var ai=e.clone(b.section);ai.pos=rr,ai.end=we.getTextPos(),Fe.sections.push(ai)}}function oa(b,rr,ai){switch(ai.kind){case 1:Bt(b,rr,ai);break;case 0:Pi(b,rr,ai);break}}function Bt(b,rr,ai){cf("${".concat(ai.order,":")),Gi(b,rr,!1),cf("}")}function Pi(b,rr,ai){e.Debug.assert(rr.kind===235,"A tab stop cannot be attached to a node of kind ".concat(e.Debug.formatSyntaxKind(rr.kind),".")),e.Debug.assert(b!==5,"A tab stop cannot be attached to an embedded statement."),cf("$".concat(ai.order))}function Oi(b){var rr=b.symbol?sf:Se;rr(Kl(b,!1),b.symbol),Ro(b,b.typeArguments,53776)}function wi(b){var rr=b.symbol?sf:Se;rr(Kl(b,!1),b.symbol)}function Qr(b){Ct(b.left),Kt("."),Or(b.right)}function Ct(b){b.kind===79?mr(b):Or(b)}function tt(b){Kt("["),mr(b.expression,li.parenthesizeExpressionOfComputedPropertyName),Kt("]")}function ta(b){Or(b.name),b.constraint&&(Ut(),mn("extends"),Ut(),Or(b.constraint)),b.default&&(Ut(),Sl("="),Ut(),Or(b.default))}function Xa(b){Tc(b,b.decorators),ic(b,b.modifiers),Or(b.dotDotDotToken),hp(b.name,Ps),Or(b.questionToken),b.parent&&b.parent.kind===315&&!b.name?Or(b.type):Jc(b.type),Lf(b.initializer,b.type?b.type.end:b.questionToken?b.questionToken.end:b.name?b.name.end:b.modifiers?b.modifiers.end:b.decorators?b.decorators.end:b.pos,b,li.parenthesizeExpressionForDisallowedComma)}function on(b){Kt("@"),mr(b.expression,li.parenthesizeLeftSideOfAccess)}function qr(b){Tc(b,b.decorators),ic(b,b.modifiers),hp(b.name,Dp),Or(b.questionToken),Jc(b.type),ts()}function bn(b){Tc(b,b.decorators),ic(b,b.modifiers),Or(b.name),Or(b.questionToken),Or(b.exclamationToken),Jc(b.type),Lf(b.initializer,b.type?b.type.end:b.questionToken?b.questionToken.end:b.name.end,b),ts()}function Rn(b){It(b),Tc(b,b.decorators),ic(b,b.modifiers),Or(b.name),Or(b.questionToken),du(b,b.typeParameters),bl(b,b.parameters),Jc(b.type),ts(),Rs(b)}function Sn(b){Tc(b,b.decorators),ic(b,b.modifiers),Or(b.asteriskToken),Or(b.name),Or(b.questionToken),Eo(b,Hn)}function zn(b){Tc(b,b.decorators),ic(b,b.modifiers),mn("static"),Kn(b.body)}function Zn(b){ic(b,b.modifiers),mn("constructor"),Eo(b,Hn)}function ho(b){Tc(b,b.decorators),ic(b,b.modifiers),mn(b.kind===171?"get":"set"),Ut(),Or(b.name),Eo(b,Hn)}function Vo(b){It(b),Tc(b,b.decorators),ic(b,b.modifiers),du(b,b.typeParameters),bl(b,b.parameters),Jc(b.type),ts(),Rs(b)}function Cn(b){It(b),Tc(b,b.decorators),ic(b,b.modifiers),mn("new"),Ut(),du(b,b.typeParameters),bl(b,b.parameters),Jc(b.type),ts(),Rs(b)}function go(b){Tc(b,b.decorators),ic(b,b.modifiers),Qo(b,b.parameters),Jc(b.type),ts()}function ro(b){Or(b.type),Or(b.literal)}function Ko(){ts()}function rs(b){b.assertsModifier&&(Or(b.assertsModifier),Ut()),Or(b.parameterName),b.type&&(Ut(),mn("is"),Ut(),Or(b.type))}function rn(b){Or(b.typeName),pu(b,b.typeArguments)}function Do(b){It(b),du(b,b.typeParameters),il(b,b.parameters),Ut(),Kt("=>"),Ut(),Or(b.type),Rs(b)}function io(b){mn("function"),bl(b,b.parameters),Kt(":"),Or(b.type)}function pn(b){Kt("?"),Or(b.type)}function Qn(b){Kt("!"),Or(b.type)}function wo(b){Or(b.type),Kt("=")}function xo(b){It(b),ic(b,b.modifiers),mn("new"),Ut(),du(b,b.typeParameters),bl(b,b.parameters),Ut(),Kt("=>"),Ut(),Or(b.type),Rs(b)}function ds(b){mn("typeof"),Ut(),Or(b.exprName)}function No(b){Kt("{");var rr=e.getEmitFlags(b)&1?768:32897;Ro(b,b.members,rr|524288),Kt("}")}function Ts(b){Or(b.elementType,li.parenthesizeElementTypeOfArrayType),Kt("["),Kt("]")}function Ms(b){Kt("..."),Or(b.type)}function xr(b){qa(22,b.pos,Kt,b);var rr=e.getEmitFlags(b)&1?528:657;Ro(b,b.elements,rr|524288),qa(23,b.elements.end,Kt,b)}function bi(b){Or(b.dotDotDotToken),Or(b.name),Or(b.questionToken),qa(58,b.name.end,Kt,b),Ut(),Or(b.type)}function ut(b){Or(b.type,li.parenthesizeElementTypeOfArrayType),Kt("?")}function Ht(b){Ro(b,b.types,516,li.parenthesizeMemberOfElementType)}function Ka(b){Ro(b,b.types,520,li.parenthesizeMemberOfElementType)}function an(b){Or(b.checkType,li.parenthesizeMemberOfConditionalType),Ut(),mn("extends"),Ut(),Or(b.extendsType,li.parenthesizeMemberOfConditionalType),Ut(),Kt("?"),Ut(),Or(b.trueType),Ut(),Kt(":"),Ut(),Or(b.falseType)}function Ke(b){mn("infer"),Ut(),Or(b.typeParameter)}function h(b){Kt("("),Or(b.type),Kt(")")}function Ee(){mn("this")}function Re(b){ql(b.operator,mn),Ut(),Or(b.type,li.parenthesizeMemberOfElementType)}function nr(b){Or(b.objectType,li.parenthesizeMemberOfElementType),Kt("["),Or(b.indexType),Kt("]")}function Gr(b){var rr=e.getEmitFlags(b);Kt("{"),rr&1?Ut():(ko(),xc()),b.readonlyToken&&(Or(b.readonlyToken),b.readonlyToken.kind!==144&&mn("readonly"),Ut()),Kt("["),mi(3,b.typeParameter),b.nameType&&(Ut(),mn("as"),Ut(),Or(b.nameType)),Kt("]"),b.questionToken&&(Or(b.questionToken),b.questionToken.kind!==57&&Kt("?")),Kt(":"),Ut(),Or(b.type),ts(),rr&1?Ut():(ko(),ou()),Kt("}")}function _i(b){mr(b.literal)}function Ei(b){Or(b.head),Ro(b,b.templateSpans,262144)}function Ki(b){b.isTypeOf&&(mn("typeof"),Ut()),mn("import"),Kt("("),Or(b.argument),Kt(")"),b.qualifier&&(Kt("."),Or(b.qualifier)),pu(b,b.typeArguments)}function Nt(b){Kt("{"),Ro(b,b.elements,525136),Kt("}")}function ca(b){Kt("["),Ro(b,b.elements,524880),Kt("]")}function Fa(b){Or(b.dotDotDotToken),b.propertyName&&(Or(b.propertyName),Kt(":"),Ut()),Or(b.name),Lf(b.initializer,b.name.end,b,li.parenthesizeExpressionForDisallowedComma)}function Ta(b){var rr=b.elements,ai=b.multiLine?65536:0;jc(b,rr,8914|ai,li.parenthesizeExpressionForDisallowedComma)}function In(b){e.forEach(b.properties,Tp);var rr=e.getEmitFlags(b)&65536;rr&&xc();var ai=b.multiLine?65536:0,Wi=le.languageVersion>=1&&!e.isJsonSourceFile(le)?64:0;Ro(b,b.properties,526226|Wi|ai),rr&&ou()}function so(b){mr(b.expression,li.parenthesizeLeftSideOfAccess);var rr=b.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),b.expression.end,b.name.pos),ai=Ns(b,b.expression,rr),Wi=Ns(b,rr,b.name);su(ai,!1);var At=rr.kind!==28&&as(b.expression)&&!we.hasTrailingComment()&&!we.hasTrailingWhitespace();At&&Kt("."),b.questionDotToken?Or(rr):qa(rr.kind,b.expression.end,Kt,b),su(Wi,!1),Or(b.name),lf(ai,Wi)}function as(b){if(b=e.skipPartiallyEmittedExpressions(b),e.isNumericLiteral(b)){var rr=Wn(b,!0,!1);return!b.numericLiteralFlags&&!e.stringContains(rr,e.tokenToString(24))}else if(e.isAccessExpression(b)){var ai=e.getConstantValue(b);return typeof ai=="number"&&isFinite(ai)&&Math.floor(ai)===ai}}function Ho(b){mr(b.expression,li.parenthesizeLeftSideOfAccess),Or(b.questionDotToken),qa(22,b.expression.end,Kt,b),mr(b.argumentExpression),qa(23,b.argumentExpression.end,Kt,b)}function Ds(b){var rr=e.getEmitFlags(b)&536870912;rr&&(Kt("("),gu("0"),Kt(","),Ut()),mr(b.expression,li.parenthesizeLeftSideOfAccess),rr&&Kt(")"),Or(b.questionDotToken),pu(b,b.typeArguments),jc(b,b.arguments,2576,li.parenthesizeExpressionForDisallowedComma)}function Os(b){qa(103,b.pos,mn,b),Ut(),mr(b.expression,li.parenthesizeExpressionOfNew),pu(b,b.typeArguments),jc(b,b.arguments,18960,li.parenthesizeExpressionForDisallowedComma)}function mc(b){var rr=e.getEmitFlags(b)&536870912;rr&&(Kt("("),gu("0"),Kt(","),Ut()),mr(b.tag,li.parenthesizeLeftSideOfAccess),rr&&Kt(")"),pu(b,b.typeArguments),Ut(),mr(b.template)}function Hs(b){Kt("<"),Or(b.type),Kt(">"),mr(b.expression,li.parenthesizeOperandOfPrefixUnary)}function Mi(b){var rr=qa(20,b.pos,Kt,b),ai=Uf(b.expression,b);mr(b.expression,void 0),Sp(b.expression,b),lf(ai),qa(21,b.expression?b.expression.end:rr,Kt,b)}function $t(b){mu(b.name),Ja(b)}function ga(b){Tc(b,b.decorators),ic(b,b.modifiers),Eo(b,xn)}function xn(b){du(b,b.typeParameters),il(b,b.parameters),Jc(b.type),Ut(),Or(b.equalsGreaterThanToken)}function yn(b){qa(89,b.pos,mn,b),Ut(),mr(b.expression,li.parenthesizeOperandOfPrefixUnary)}function An(b){qa(112,b.pos,mn,b),Ut(),mr(b.expression,li.parenthesizeOperandOfPrefixUnary)}function Pa(b){qa(114,b.pos,mn,b),Ut(),mr(b.expression,li.parenthesizeOperandOfPrefixUnary)}function Mn(b){qa(132,b.pos,mn,b),Ut(),mr(b.expression,li.parenthesizeOperandOfPrefixUnary)}function ao(b){ql(b.operator,Sl),co(b)&&Ut(),mr(b.operand,li.parenthesizeOperandOfPrefixUnary)}function co(b){var rr=b.operand;return rr.kind===218&&(b.operator===39&&(rr.operator===39||rr.operator===45)||b.operator===40&&(rr.operator===40||rr.operator===46))}function De(b){mr(b.operand,li.parenthesizeOperandOfPostfixUnary),ql(b.operator,Sl)}function zr(){return e.createBinaryExpressionTrampoline(b,rr,ai,Wi,At,void 0);function b(La,fn){if(fn){fn.stackIndex++,fn.preserveSourceNewlinesStack[fn.stackIndex]=er,fn.containerPosStack[fn.stackIndex]=Ce,fn.containerEndStack[fn.stackIndex]=Le,fn.declarationListContainerEndStack[fn.stackIndex]=Xe;var Bo=fn.shouldEmitCommentsStack[fn.stackIndex]=Ti(La),Yo=fn.shouldEmitSourceMapsStack[fn.stackIndex]=hi(La);U==null||U(La),Bo&&xl(La),Yo&&yu(La),Ur(La)}else fn={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return fn}function rr(La,fn,Bo){return ra(La,Bo,"left")}function ai(La,fn,Bo){var Yo=La.kind!==27,jo=Ns(Bo,Bo.left,La),cc=Ns(Bo,La,Bo.right);su(jo,Yo),nl(La.pos),bp(La,La.kind===101?mn:Sl),ht(La.end,!0),su(cc,!0)}function Wi(La,fn,Bo){return ra(La,Bo,"right")}function At(La,fn){var Bo=Ns(La,La.left,La.operatorToken),Yo=Ns(La,La.operatorToken,La.right);if(lf(Bo,Yo),fn.stackIndex>0){var jo=fn.preserveSourceNewlinesStack[fn.stackIndex],cc=fn.containerPosStack[fn.stackIndex],qs=fn.containerEndStack[fn.stackIndex],uc=fn.declarationListContainerEndStack[fn.stackIndex],hu=fn.shouldEmitCommentsStack[fn.stackIndex],$l=fn.shouldEmitSourceMapsStack[fn.stackIndex];si(jo),$l&&d_(La),hu&&gf(La,cc,qs,uc),z==null||z(La),fn.stackIndex--}}function ra(La,fn,Bo){var Yo=Bo==="left"?li.getParenthesizeLeftSideOfBinaryForOperator(fn.operatorToken.kind):li.getParenthesizeRightSideOfBinaryForOperator(fn.operatorToken.kind),jo=ki(0,1,La);if(jo===pa&&(e.Debug.assertIsDefined(ci),La=Yo(e.cast(ci,e.isExpression)),jo=Ui(1,1,La),ci=void 0),(jo===_s||jo===V_||jo===ri)&&e.isBinaryExpression(La))return La;be=Yo,jo(1,La)}}function xi(b){var rr=Ns(b,b.condition,b.questionToken),ai=Ns(b,b.questionToken,b.whenTrue),Wi=Ns(b,b.whenTrue,b.colonToken),At=Ns(b,b.colonToken,b.whenFalse);mr(b.condition,li.parenthesizeConditionOfConditionalExpression),su(rr,!0),Or(b.questionToken),su(ai,!0),mr(b.whenTrue,li.parenthesizeBranchOfConditionalExpression),lf(rr,ai),su(Wi,!0),Or(b.colonToken),su(At,!0),mr(b.whenFalse,li.parenthesizeBranchOfConditionalExpression),lf(Wi,At)}function et(b){Or(b.head),Ro(b,b.templateSpans,262144)}function je(b){qa(125,b.pos,mn,b),Or(b.asteriskToken),Rf(b.expression&&au(b.expression),Vr)}function ti(b){qa(25,b.pos,Kt,b),mr(b.expression,li.parenthesizeExpressionForDisallowedComma)}function mt(b){mu(b.name),Di(b)}function Zt(b){mr(b.expression,li.parenthesizeLeftSideOfAccess),pu(b,b.typeArguments)}function ln(b){mr(b.expression,void 0),b.type&&(Ut(),mn("as"),Ut(),Or(b.type))}function Ba(b){mr(b.expression,li.parenthesizeLeftSideOfAccess),Sl("!")}function Oo(b){uf(b.keywordToken,b.pos,Kt),Kt("."),Or(b.name)}function jr(b){mr(b.expression),Or(b.literal)}function is(b){hc(b,!b.multiLine&&al(b))}function hc(b,rr){qa(18,b.pos,Kt,b);var ai=rr||e.getEmitFlags(b)&1?768:129;Ro(b,b.statements,ai),qa(19,b.statements.end,Kt,b,!!(ai&1))}function nc(b){ic(b,b.modifiers),Or(b.declarationList),ts()}function ns(b){b?Kt(";"):ts()}function Xs(b){mr(b.expression,li.parenthesizeExpressionOfExpressionStatement),(!e.isJsonSourceFile(le)||e.nodeIsSynthesized(b.expression))&&ts()}function rc(b){var rr=qa(99,b.pos,mn,b);Ut(),qa(20,rr,Kt,b),mr(b.expression),qa(21,b.expression.end,Kt,b),Cu(b,b.thenStatement),b.elseStatement&&(Fs(b,b.thenStatement,b.elseStatement),qa(91,b.thenStatement.end,mn,b),b.elseStatement.kind===238?(Ut(),Or(b.elseStatement)):Cu(b,b.elseStatement))}function uu(b,rr){var ai=qa(115,rr,mn,b);Ut(),qa(20,ai,Kt,b),mr(b.expression),qa(21,b.expression.end,Kt,b)}function Bc(b){qa(90,b.pos,mn,b),Cu(b,b.statement),e.isBlock(b.statement)&&!er?Ut():Fs(b,b.statement,b.expression),uu(b,b.statement.end),ts()}function Qu(b){uu(b,b.pos),Cu(b,b.statement)}function uo(b){var rr=qa(97,b.pos,mn,b);Ut();var ai=qa(20,rr,Kt,b);Dc(b.initializer),ai=qa(26,b.initializer?b.initializer.end:ai,Kt,b),Rf(b.condition),ai=qa(26,b.condition?b.condition.end:ai,Kt,b),Rf(b.incrementor),qa(21,b.incrementor?b.incrementor.end:ai,Kt,b),Cu(b,b.statement)}function Xc(b){var rr=qa(97,b.pos,mn,b);Ut(),qa(20,rr,Kt,b),Dc(b.initializer),Ut(),qa(101,b.initializer.end,mn,b),Ut(),mr(b.expression),qa(21,b.expression.end,Kt,b),Cu(b,b.statement)}function Ru(b){var rr=qa(97,b.pos,mn,b);Ut(),c_(b.awaitModifier),qa(20,rr,Kt,b),Dc(b.initializer),Ut(),qa(159,b.initializer.end,mn,b),Ut(),mr(b.expression),qa(21,b.expression.end,Kt,b),Cu(b,b.statement)}function Dc(b){b!==void 0&&(b.kind===254?Or(b):mr(b))}function Yu(b){qa(86,b.pos,mn,b),s_(b.label),ts()}function lu(b){qa(81,b.pos,mn,b),s_(b.label),ts()}function qa(b,rr,ai,Wi,At){var ra=e.getParseTreeNode(Wi),La=ra&&ra.kind===Wi.kind,fn=rr;if(La&&le&&(rr=e.skipTrivia(le.text,rr)),La&&Wi.pos!==fn){var Bo=At&&le&&!e.positionsAreOnSameLine(fn,rr,le);Bo&&xc(),nl(fn),Bo&&ou()}if(rr=ql(b,ai,rr),La&&Wi.end!==rr){var Yo=Wi.kind===287;ht(rr,!Yo,Yo)}return rr}function Bu(b){return b.kind===2||!!b.hasTrailingNewLine}function $u(b){return le?e.some(e.getLeadingCommentRanges(le.text,b.pos),Bu)||e.some(e.getSyntheticLeadingComments(b),Bu)?!0:e.isPartiallyEmittedExpression(b)?b.pos!==b.expression.pos&&e.some(e.getTrailingCommentRanges(le.text,b.expression.pos),Bu)?!0:$u(b.expression):!1:!1}function au(b){if(!Rr&&e.isPartiallyEmittedExpression(b)&&$u(b)){var rr=e.getParseTreeNode(b);if(rr&&e.isParenthesizedExpression(rr)){var ai=e.factory.createParenthesizedExpression(b.expression);return e.setOriginalNode(ai,b),e.setTextRange(ai,rr),ai}return e.factory.createParenthesizedExpression(b)}return b}function Vr(b){return au(li.parenthesizeExpressionForDisallowedComma(b))}function fi(b){qa(105,b.pos,mn,b),Rf(b.expression&&au(b.expression),au),ts()}function Ni(b){var rr=qa(116,b.pos,mn,b);Ut(),qa(20,rr,Kt,b),mr(b.expression),qa(21,b.expression.end,Kt,b),Cu(b,b.statement)}function rt(b){var rr=qa(107,b.pos,mn,b);Ut(),qa(20,rr,Kt,b),mr(b.expression),qa(21,b.expression.end,Kt,b),Ut(),Or(b.caseBlock)}function Tt(b){Or(b.label),qa(58,b.label.end,Kt,b),Ut(),Or(b.statement)}function Dt(b){qa(109,b.pos,mn,b),Rf(au(b.expression),au),ts()}function jt(b){qa(111,b.pos,mn,b),Ut(),Or(b.tryBlock),b.catchClause&&(Fs(b,b.tryBlock,b.catchClause),Or(b.catchClause)),b.finallyBlock&&(Fs(b,b.catchClause||b.tryBlock,b.finallyBlock),qa(96,(b.catchClause||b.tryBlock).end,mn,b),Ut(),Or(b.finallyBlock))}function na(b){uf(87,b.pos,mn),ts()}function Za(b){Or(b.name),Or(b.exclamationToken),Jc(b.type),Lf(b.initializer,b.type?b.type.end:b.name.end,b,li.parenthesizeExpressionForDisallowedComma)}function ya(b){mn(e.isLet(b)?"let":e.isVarConst(b)?"const":"var"),Ut(),Ro(b,b.declarations,528)}function ha(b){Ja(b)}function Ja(b){Tc(b,b.decorators),ic(b,b.modifiers),mn("function"),Or(b.asteriskToken),Ut(),We(b.name),Eo(b,Hn)}function Eo(b,rr){var ai=b.body;if(ai)if(e.isBlock(ai)){var Wi=e.getEmitFlags(b)&65536;Wi&&xc(),It(b),e.forEach(b.parameters,xs),xs(b.body),rr(b),Kn(ai),Rs(b),Wi&&ou()}else rr(b),Ut(),mr(ai,li.parenthesizeConciseBodyOfArrowFunction);else rr(b),ts()}function Hn(b){du(b,b.typeParameters),bl(b,b.parameters),Jc(b.type)}function lo(b){if(e.getEmitFlags(b)&1)return!0;if(b.multiLine||!e.nodeIsSynthesized(b)&&!e.rangeIsOnSingleLine(b,le)||ff(b,b.statements,2)||Vl(b,b.statements,2))return!1;for(var rr,ai=0,Wi=b.statements;ai<Wi.length;ai++){var At=Wi[ai];if(_f(rr,At,2)>0)return!1;rr=At}return!0}function Kn(b){U==null||U(b),Ut(),Kt("{"),xc();var rr=lo(b)?Te:vr;Zc?Zc(b,b.statements,rr):rr(b),ou(),uf(19,b.statements.end,Kt,b),z==null||z(b)}function Te(b){vr(b,!0)}function vr(b,rr){var ai=af(b.statements),Wi=we.getTextPos();ua(b),ai===0&&Wi===we.getTextPos()&&rr?(ou(),Ro(b,b.statements,768),xc()):Ro(b,b.statements,1,void 0,ai)}function Sr(b){Di(b)}function Di(b){e.forEach(b.members,Tp),Tc(b,b.decorators),ic(b,b.modifiers),mn("class"),b.name&&(Ut(),We(b.name));var rr=e.getEmitFlags(b)&65536;rr&&xc(),du(b,b.typeParameters),Ro(b,b.heritageClauses,0),Ut(),Kt("{"),Ro(b,b.members,129),Kt("}"),rr&&ou()}function nt(b){Tc(b,b.decorators),ic(b,b.modifiers),mn("interface"),Ut(),Or(b.name),du(b,b.typeParameters),Ro(b,b.heritageClauses,512),Ut(),Kt("{"),Ro(b,b.members,129),Kt("}")}function _a(b){Tc(b,b.decorators),ic(b,b.modifiers),mn("type"),Ut(),Or(b.name),du(b,b.typeParameters),Ut(),Kt("="),Ut(),Or(b.type),ts()}function Na(b){ic(b,b.modifiers),mn("enum"),Ut(),Or(b.name),Ut(),Kt("{"),Ro(b,b.members,145),Kt("}")}function wn(b){ic(b,b.modifiers),~b.flags&1024&&(mn(b.flags&16?"namespace":"module"),Ut()),Or(b.name);var rr=b.body;if(!rr)return ts();for(;rr&&e.isModuleDeclaration(rr);)Kt("."),Or(rr.name),rr=rr.body;Ut(),Or(rr)}function no(b){It(b),e.forEach(b.statements,xs),hc(b,al(b)),Rs(b)}function Go(b){qa(18,b.pos,Kt,b),Ro(b,b.clauses,129),qa(19,b.clauses.end,Kt,b,!0)}function vo(b){ic(b,b.modifiers),qa(100,b.modifiers?b.modifiers.end:b.pos,mn,b),Ut(),b.isTypeOnly&&(qa(151,b.pos,mn,b),Ut()),Or(b.name),Ut(),qa(63,b.name.end,Kt,b),Ut(),Vn(b.moduleReference),ts()}function Vn(b){b.kind===79?mr(b):Or(b)}function to(b){ic(b,b.modifiers),qa(100,b.modifiers?b.modifiers.end:b.pos,mn,b),Ut(),b.importClause&&(Or(b.importClause),Ut(),qa(155,b.importClause.end,mn,b),Ut()),mr(b.moduleSpecifier),b.assertClause&&s_(b.assertClause),ts()}function Jo(b){b.isTypeOnly&&(qa(151,b.pos,mn,b),Ut()),Or(b.name),b.name&&b.namedBindings&&(qa(27,b.name.end,Kt,b),Ut()),Or(b.namedBindings)}function Xo(b){var rr=qa(41,b.pos,Kt,b);Ut(),qa(127,rr,mn,b),Ut(),Or(b.name)}function Wr(b){i_(b)}function Ws(b){Ls(b)}function nu(b){var rr=qa(93,b.pos,mn,b);Ut(),b.isExportEquals?qa(63,rr,Sl,b):qa(88,rr,mn,b),Ut(),mr(b.expression,b.isExportEquals?li.getParenthesizeRightSideOfBinaryForOperator(63):li.parenthesizeExpressionOfExportDefault),ts()}function Tu(b){var rr=qa(93,b.pos,mn,b);if(Ut(),b.isTypeOnly&&(rr=qa(151,rr,mn,b),Ut()),b.exportClause?Or(b.exportClause):rr=qa(41,rr,Kt,b),b.moduleSpecifier){Ut();var ai=b.exportClause?b.exportClause.end:rr;qa(155,ai,mn,b),Ut(),mr(b.moduleSpecifier)}b.assertClause&&s_(b.assertClause),ts()}function oc(b){qa(129,b.pos,mn,b),Ut();var rr=b.elements;Ro(b,rr,526226)}function Qc(b){Or(b.name),Kt(":"),Ut();var rr=b.value;if((e.getEmitFlags(rr)&512)===0){var ai=e.getCommentRange(rr);ht(ai.pos)}Or(rr)}function fu(b){var rr=qa(93,b.pos,mn,b);Ut(),rr=qa(127,rr,mn,b),Ut(),rr=qa(142,rr,mn,b),Ut(),Or(b.name),ts()}function lp(b){var rr=qa(41,b.pos,Kt,b);Ut(),qa(127,rr,mn,b),Ut(),Or(b.name)}function bo(b){i_(b)}function w_(b){Ls(b)}function i_(b){Kt("{"),Ro(b,b.elements,525136),Kt("}")}function Ls(b){b.isTypeOnly&&(mn("type"),Ut()),b.propertyName&&(Or(b.propertyName),Ut(),qa(127,b.propertyName.end,mn,b),Ut()),Or(b.name)}function hl(b){mn("require"),Kt("("),mr(b.expression),Kt(")")}function xu(b){Or(b.openingElement),Ro(b,b.children,262144),Or(b.closingElement)}function tf(b){Kt("<"),os(b.tagName),pu(b,b.typeArguments),Ut(),Or(b.attributes),Kt("/>")}function If(b){Or(b.openingFragment),Ro(b,b.children,262144),Or(b.closingFragment)}function Yc(b){if(Kt("<"),e.isJsxOpeningElement(b)){var rr=Uf(b.tagName,b);os(b.tagName),pu(b,b.typeArguments),b.attributes.properties&&b.attributes.properties.length>0&&Ut(),Or(b.attributes),Sp(b.attributes,b),lf(rr)}Kt(">")}function Vs(b){we.writeLiteral(b.text)}function Zu(b){Kt("</"),e.isJsxClosingElement(b)&&os(b.tagName),Kt(">")}function Ma(b){Ro(b,b.properties,262656)}function Da(b){Or(b.name),nf("=",Kt,b.initializer,Nr)}function Ju(b){Kt("{..."),mr(b.expression),Kt("}")}function Pc(b){var rr=!1;return e.forEachTrailingCommentRange((le==null?void 0:le.text)||"",b+1,function(){return rr=!0}),rr}function fp(b){var rr=!1;return e.forEachLeadingCommentRange((le==null?void 0:le.text)||"",b+1,function(){return rr=!0}),rr}function wf(b){return Pc(b)||fp(b)}function Xp(b){var rr;if(b.expression||!Rr&&!e.nodeIsSynthesized(b)&&wf(b.pos)){var ai=le&&!e.nodeIsSynthesized(b)&&e.getLineAndCharacterOfPosition(le,b.pos).line!==e.getLineAndCharacterOfPosition(le,b.end).line;ai&&we.increaseIndent();var Wi=qa(18,b.pos,Kt,b);Or(b.dotDotDotToken),mr(b.expression),qa(19,((rr=b.expression)===null||rr===void 0?void 0:rr.end)||Wi,Kt,b),ai&&we.decreaseIndent()}}function os(b){b.kind===79?mr(b):Or(b)}function el(b){qa(82,b.pos,mn,b),Ut(),mr(b.expression,li.parenthesizeExpressionForDisallowedComma),O_(b,b.statements,b.expression.end)}function Of(b){var rr=qa(88,b.pos,mn,b);O_(b,b.statements,rr)}function O_(b,rr,ai){var Wi=rr.length===1&&(e.nodeIsSynthesized(b)||e.nodeIsSynthesized(rr[0])||e.rangeStartPositionsAreOnSameLine(b,rr[0],le)),At=163969;Wi?(uf(58,ai,Kt,b),Ut(),At&=-130):qa(58,ai,Kt,b),Ro(b,rr,At)}function t_(b){Ut(),ql(b.token,mn),Ut(),Ro(b,b.types,528)}function Nc(b){var rr=qa(83,b.pos,mn,b);Ut(),b.variableDeclaration&&(qa(20,rr,Kt,b),Or(b.variableDeclaration),qa(21,b.variableDeclaration.end,Kt,b),Ut()),Or(b.block)}function F_(b){Or(b.name),Kt(":"),Ut();var rr=b.initializer;if((e.getEmitFlags(rr)&512)===0){var ai=e.getCommentRange(rr);ht(ai.pos)}mr(rr,li.parenthesizeExpressionForDisallowedComma)}function Ff(b){Or(b.name),b.objectAssignmentInitializer&&(Ut(),Kt("="),Ut(),mr(b.objectAssignmentInitializer,li.parenthesizeExpressionForDisallowedComma))}function M_(b){b.expression&&(qa(25,b.pos,Kt,b),mr(b.expression,li.parenthesizeExpressionForDisallowedComma))}function _p(b){Or(b.name),Lf(b.initializer,b.name.end,b,li.parenthesizeExpressionForDisallowedComma)}function Qp(b){if(Se("/**"),b.comment){var rr=e.getTextOfJSDocComment(b.comment);if(rr)for(var ai=rr.split(/\r\n?|\n/g),Wi=0,At=ai;Wi<At.length;Wi++){var ra=At[Wi];ko(),Ut(),Kt("*"),Ut(),Se(ra)}}b.tags&&(b.tags.length===1&&b.tags[0].kind===341&&!b.comment?(Ut(),Or(b.tags[0])):Ro(b,b.tags,33)),Ut(),Se("*/")}function pp(b){_u(b.tagName),Dl(b.typeExpression),Eu(b.comment)}function dp(b){_u(b.tagName),Or(b.name),Eu(b.comment)}function gp(b){Ut(),Kt("{"),Or(b.name),Kt("}")}function Yp(b){_u(b.tagName),Ut(),Kt("{"),Or(b.class),Kt("}"),Eu(b.comment)}function $p(b){_u(b.tagName),Dl(b.constraint),Ut(),Ro(b,b.typeParameters,528),Eu(b.comment)}function a_(b){_u(b.tagName),b.typeExpression&&(b.typeExpression.kind===307?Dl(b.typeExpression):(Ut(),Kt("{"),Se("Object"),b.typeExpression.isArrayType&&(Kt("["),Kt("]")),Kt("}"))),b.fullName&&(Ut(),Or(b.fullName)),Eu(b.comment),b.typeExpression&&b.typeExpression.kind===320&&L_(b.typeExpression)}function Cd(b){_u(b.tagName),b.name&&(Ut(),Or(b.name)),Eu(b.comment),rl(b.typeExpression)}function mp(b){_u(b.tagName),Eu(b.comment)}function L_(b){Ro(b,e.factory.createNodeArray(b.jsDocPropertyTags),33)}function rl(b){b.typeParameters&&Ro(b,e.factory.createNodeArray(b.typeParameters),33),b.parameters&&Ro(b,e.factory.createNodeArray(b.parameters),33),b.type&&(ko(),Ut(),Kt("*"),Ut(),Or(b.type))}function ju(b){_u(b.tagName),Dl(b.typeExpression),Ut(),b.isBracketed&&Kt("["),Or(b.name),b.isBracketed&&Kt("]"),Eu(b.comment)}function _u(b){Kt("@"),Or(b)}function Eu(b){var rr=e.getTextOfJSDocComment(b);rr&&(Ut(),Se(rr))}function Dl(b){b&&(Ut(),Kt("{"),Or(b.type),Kt("}"))}function Zp(b){ko();var rr=b.statements;if(Zc){var ai=rr.length===0||!e.isPrologueDirective(rr[0])||e.nodeIsSynthesized(rr[0]);if(ai){Zc(b,rr,vp);return}}vp(b)}function Wl(b){n_(!!b.hasNoDefaultLib,b.syntheticFileReferences||[],b.syntheticTypeReferences||[],b.syntheticLibReferences||[]);for(var rr=0,ai=b.prepends;rr<ai.length;rr++){var Wi=ai[rr];if(e.isUnparsedSource(Wi)&&Wi.syntheticReferences)for(var At=0,ra=Wi.syntheticReferences;At<ra.length;At++){var La=ra[At];Or(La),ko()}}}function ed(b){b.isDeclarationFile&&n_(b.hasNoDefaultLib,b.referencedFiles,b.typeReferenceDirectives,b.libReferenceDirectives)}function n_(b,rr,ai,Wi){if(b){var At=we.getTextPos();tl('/// <reference no-default-lib="true"/>'),Fe&&Fe.sections.push({pos:At,end:we.getTextPos(),kind:"no-default-lib"}),ko()}if(le&&le.moduleName&&(tl('/// <amd-module name="'.concat(le.moduleName,'" />')),ko()),le&&le.amdDependencies)for(var ra=0,La=le.amdDependencies;ra<La.length;ra++){var fn=La[ra];fn.name?tl('/// <amd-dependency name="'.concat(fn.name,'" path="').concat(fn.path,'" />')):tl('/// <amd-dependency path="'.concat(fn.path,'" />')),ko()}for(var Bo=0,Yo=rr;Bo<Yo.length;Bo++){var jo=Yo[Bo],At=we.getTextPos();tl('/// <reference path="'.concat(jo.fileName,'" />')),Fe&&Fe.sections.push({pos:At,end:we.getTextPos(),kind:"reference",data:jo.fileName}),ko()}for(var cc=0,qs=ai;cc<qs.length;cc++){var jo=qs[cc],At=we.getTextPos();tl('/// <reference types="'.concat(jo.fileName,'" />')),Fe&&Fe.sections.push({pos:At,end:we.getTextPos(),kind:"type",data:jo.fileName}),ko()}for(var uc=0,hu=Wi;uc<hu.length;uc++){var jo=hu[uc],At=we.getTextPos();tl('/// <reference lib="'.concat(jo.fileName,'" />')),Fe&&Fe.sections.push({pos:At,end:we.getTextPos(),kind:"lib",data:jo.fileName}),ko()}}function vp(b){var rr=b.statements;It(b),e.forEach(b.statements,xs),ua(b);var ai=e.findIndex(rr,function(Wi){return!e.isPrologueDirective(Wi)});ed(b),Ro(b,rr,1,void 0,ai===-1?rr.length:ai),Rs(b)}function o_(b){var rr=e.getEmitFlags(b);!(rr&512)&&b.pos!==b.expression.pos&&ht(b.expression.pos),mr(b.expression),!(rr&1024)&&b.end!==b.expression.end&&nl(b.expression.end)}function R_(b){jc(b,b.elements,528,void 0)}function af(b,rr,ai,Wi){for(var At=!!rr,ra=0;ra<b.length;ra++){var La=b[ra];if(e.isPrologueDirective(La)){var fn=ai?!ai.has(La.expression.text):!0;if(fn){At&&(At=!1,Je(rr)),ko();var Bo=we.getTextPos();Or(La),Wi&&Fe&&Fe.sections.push({pos:Bo,end:we.getTextPos(),kind:"prologue",data:La.expression.text}),ai&&ai.add(La.expression.text)}}else return ra}return b.length}function yp(b,rr){for(var ai=0,Wi=b;ai<Wi.length;ai++){var At=Wi[ai];if(!rr.has(At.data)){ko();var ra=we.getTextPos();Or(At),Fe&&Fe.sections.push({pos:ra,end:we.getTextPos(),kind:"prologue",data:At.data}),rr&&rr.add(At.data)}}}function B_(b){if(e.isSourceFile(b))af(b.statements,b);else{for(var rr=new e.Set,ai=0,Wi=b.prepends;ai<Wi.length;ai++){var At=Wi[ai];yp(At.prologues,rr)}for(var ra=0,La=b.sourceFiles;ra<La.length;ra++){var fn=La[ra];af(fn.statements,fn,rr,!0)}Je(void 0)}}function kd(b){for(var rr=new e.Set,ai,Wi=0;Wi<b.sourceFiles.length;Wi++){for(var At=b.sourceFiles[Wi],ra=void 0,La=0,fn=0,Bo=At.statements;fn<Bo.length;fn++){var Yo=Bo[fn];if(!e.isPrologueDirective(Yo))break;rr.has(Yo.expression.text)||(rr.add(Yo.expression.text),(ra||(ra=[])).push({pos:Yo.pos,end:Yo.end,expression:{pos:Yo.expression.pos,end:Yo.expression.end,text:Yo.expression.text}}),La=La<Yo.end?Yo.end:La)}ra&&(ai||(ai=[])).push({file:Wi,text:At.text.substring(0,La),directives:ra})}return ai}function Mf(b){if(e.isSourceFile(b)||e.isUnparsedSource(b)){var rr=e.getShebang(b.text);if(rr)return tl(rr),ko(),!0}else{for(var ai=0,Wi=b.prepends;ai<Wi.length;ai++){var At=Wi[ai];if(e.Debug.assertNode(At,e.isUnparsedSource),Mf(At))return!0}for(var ra=0,La=b.sourceFiles;ra<La.length;ra++){var fn=La[ra];if(Mf(fn))return!0}}}function hp(b,rr){if(!!b){var ai=Se;Se=rr,Or(b),Se=ai}}function ic(b,rr){rr&&rr.length&&(Ro(b,rr,262656),Ut())}function Jc(b){b&&(Kt(":"),Ut(),Or(b))}function Lf(b,rr,ai,Wi){b&&(Ut(),qa(63,rr,Sl,ai),Ut(),mr(b,Wi))}function nf(b,rr,ai,Wi){ai&&(rr(b),Wi(ai))}function s_(b){b&&(Ut(),Or(b))}function Rf(b,rr){b&&(Ut(),mr(b,rr))}function c_(b){b&&(Or(b),Ut())}function Cu(b,rr){e.isBlock(rr)||e.getEmitFlags(b)&1?(Ut(),Or(rr)):(ko(),xc(),e.isEmptyStatement(rr)?mi(5,rr):Or(rr),ou())}function Tc(b,rr){Ro(b,rr,2146305)}function pu(b,rr){Ro(b,rr,53776,li.parenthesizeMemberOfElementType)}function du(b,rr){if(e.isFunctionLike(b)&&b.typeArguments)return pu(b,b.typeArguments);Ro(b,rr,53776)}function bl(b,rr){Ro(b,rr,2576)}function of(b,rr){var ai=e.singleOrUndefined(rr);return ai&&ai.pos===b.pos&&e.isArrowFunction(b)&&!b.type&&!e.some(b.decorators)&&!e.some(b.modifiers)&&!e.some(b.typeParameters)&&!e.some(ai.decorators)&&!e.some(ai.modifiers)&&!ai.dotDotDotToken&&!ai.questionToken&&!ai.type&&!ai.initializer&&e.isIdentifier(ai.name)}function il(b,rr){of(b,rr)?Ro(b,rr,528):bl(b,rr)}function Qo(b,rr){Ro(b,rr,8848)}function zo(b){switch(b&60){case 0:break;case 16:Kt(",");break;case 4:Ut(),Kt("|");break;case 32:Ut(),Kt("*"),Ut();break;case 8:Ut(),Kt("&");break}}function Ro(b,rr,ai,Wi,At,ra){Bf(Or,b,rr,ai,Wi,At,ra)}function jc(b,rr,ai,Wi,At,ra){Bf(mr,b,rr,ai,Wi,At,ra)}function Bf(b,rr,ai,Wi,At,ra,La){ra===void 0&&(ra=0),La===void 0&&(La=ai?ai.length-ra:0);var fn=ai===void 0;if(!(fn&&Wi&16384)){var Bo=ai===void 0||ra>=ai.length||La===0;if(Bo&&Wi&32768){y&&y(ai),oe&&oe(ai);return}if(Wi&15360&&(Kt(ne(Wi)),Bo&&ai&&ht(ai.pos,!0)),y&&y(ai),Bo)Wi&1&&!(er&&(!rr||e.rangeIsOnSingleLine(rr,le)))?ko():Wi&256&&!(Wi&524288)&&Ut();else{e.Debug.type(ai);var Yo=(Wi&262144)===0,jo=Yo,cc=ff(rr,ai,Wi);cc?(ko(cc),jo=!1):Wi&256&&Ut(),Wi&128&&xc();for(var qs=void 0,uc=void 0,hu=!1,$l=0;$l<La;$l++){var Qs=ai[ra+$l];if(Wi&32)ko(),zo(Wi);else if(qs){Wi&60&&qs.end!==(rr?rr.end:-1)&&nl(qs.end),zo(Wi),Qe(uc);var Au=_f(qs,Qs,Wi);Au>0?((Wi&131)===0&&(xc(),hu=!0),ko(Au),jo=!1):qs&&Wi&512&&Ut()}if(uc=Be(Qs),jo){var Id=e.getCommentRange(Qs);ht(Id.pos)}else jo=Yo;he=Qs.pos,b.length===1?b(Qs):b(Qs,At),hu&&(ou(),hu=!1),qs=Qs}var K_=qs?e.getEmitFlags(qs):0,Ec=Rr||!!(K_&1024),Zl=(ai==null?void 0:ai.hasTrailingComma)&&Wi&64&&Wi&16;Zl&&(qs&&!Ec?qa(27,qs.end,Kt,qs):Kt(",")),qs&&(rr?rr.end:-1)!==qs.end&&Wi&60&&!Ec&&nl(Zl&&(ai==null?void 0:ai.end)?ai.end:qs.end),Wi&128&&ou(),Qe(uc);var Ie=Vl(rr,ai,Wi);Ie?ko(Ie):Wi&2097408&&Ut()}oe&&oe(ai),Wi&15360&&(Bo&&ai&&nl(ai.end),Kt(ee(Wi)))}}function gu(b){we.writeLiteral(b)}function Jf(b){we.writeStringLiteral(b)}function jf(b){we.write(b)}function sf(b,rr){we.writeSymbol(b,rr)}function Kt(b){we.writePunctuation(b)}function ts(){we.writeTrailingSemicolon(";")}function mn(b){we.writeKeyword(b)}function Sl(b){we.writeOperator(b)}function Ps(b){we.writeParameter(b)}function tl(b){we.writeComment(b)}function Ut(){we.writeSpace(" ")}function Dp(b){we.writeProperty(b)}function cf(b){we.nonEscapingWrite?we.nonEscapingWrite(b):we.write(b)}function ko(b){b===void 0&&(b=1);for(var rr=0;rr<b;rr++)we.writeLine(rr>0)}function xc(){we.increaseIndent()}function ou(){we.decreaseIndent()}function uf(b,rr,ai,Wi){return Br?ql(b,ai,rr):ku(Wi,b,ai,rr,ql)}function bp(b,rr){ve&&ve(b),rr(e.tokenToString(b.kind)),ce&&ce(b)}function ql(b,rr,ai){var Wi=e.tokenToString(b);return rr(Wi),ai<0?ai:ai+Wi.length}function Fs(b,rr,ai){if(e.getEmitFlags(b)&1)Ut();else if(er){var Wi=Ns(b,rr,ai);Wi?ko(Wi):Ut()}else ko()}function J_(b){for(var rr=b.split(/\r\n?|\n/g),ai=e.guessIndentation(rr),Wi=0,At=rr;Wi<At.length;Wi++){var ra=At[Wi],La=ai?ra.slice(ai):ra;La.length&&(ko(),Se(La))}}function su(b,rr){b?(xc(),ko(b)):rr&&Ut()}function lf(b,rr){b&&ou(),rr&&ou()}function ff(b,rr,ai){if(ai&2||er){if(ai&65536)return 1;var Wi=rr[0];if(Wi===void 0)return!b||e.rangeIsOnSingleLine(b,le)?0:1;if(Wi.pos===he||Wi.kind===11)return 0;if(b&&!e.positionIsSynthesized(b.pos)&&!e.nodeIsSynthesized(Wi)&&(!Wi.parent||e.getOriginalNode(Wi.parent)===e.getOriginalNode(b)))return er?j_(function(At){return e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter(Wi.pos,b.pos,le,At)}):e.rangeStartPositionsAreOnSameLine(b,Wi,le)?0:1;if(Tl(Wi,ai))return 1}return ai&1?1:0}function _f(b,rr,ai){if(ai&2||er){if(b===void 0||rr===void 0||rr.kind===11)return 0;if(!e.nodeIsSynthesized(b)&&!e.nodeIsSynthesized(rr))return er&&mf(b,rr)?j_(function(Wi){return e.getLinesBetweenRangeEndAndRangeStart(b,rr,le,Wi)}):!er&&kp(b,rr)?e.rangeEndIsOnSameLineAsRangeStart(b,rr,le)?0:1:ai&65536?1:0;if(Tl(b,ai)||Tl(rr,ai))return 1}else if(e.getStartsOnNewLine(rr))return 1;return ai&1?1:0}function Vl(b,rr,ai){if(ai&2||er){if(ai&65536)return 1;var Wi=e.lastOrUndefined(rr);if(Wi===void 0)return!b||e.rangeIsOnSingleLine(b,le)?0:1;if(b&&!e.positionIsSynthesized(b.pos)&&!e.nodeIsSynthesized(Wi)&&(!Wi.parent||Wi.parent===b)){if(er){var At=e.isNodeArray(rr)&&!e.positionIsSynthesized(rr.end)?rr.end:Wi.end;return j_(function(ra){return e.getLinesBetweenPositionAndNextNonWhitespaceCharacter(At,b.end,le,ra)})}return e.rangeEndPositionsAreOnSameLine(b,Wi,le)?0:1}if(Tl(Wi,ai))return 1}return ai&1&&!(ai&131072)?1:0}function j_(b){e.Debug.assert(!!er);var rr=b(!0);return rr===0?b(!1):rr}function Uf(b,rr){var ai=er&&ff(rr,[b],0);return ai&&su(ai,!1),!!ai}function Sp(b,rr){var ai=er&&Vl(rr,[b],0);ai&&ko(ai)}function Tl(b,rr){if(e.nodeIsSynthesized(b)){var ai=e.getStartsOnNewLine(b);return ai===void 0?(rr&65536)!==0:ai}return(rr&65536)!==0}function Ns(b,rr,ai){return e.getEmitFlags(b)&131072?0:(b=U_(b),rr=U_(rr),ai=U_(ai),e.getStartsOnNewLine(ai)?1:!e.nodeIsSynthesized(b)&&!e.nodeIsSynthesized(rr)&&!e.nodeIsSynthesized(ai)?er?j_(function(Wi){return e.getLinesBetweenRangeEndAndRangeStart(rr,ai,le,Wi)}):e.rangeEndIsOnSameLineAsRangeStart(rr,ai,le)?0:1:0)}function al(b){return b.statements.length===0&&e.rangeEndIsOnSameLineAsRangeStart(b,b,le)}function U_(b){for(;b.kind===211&&e.nodeIsSynthesized(b);)b=b.expression;return b}function Kl(b,rr){return e.isGeneratedIdentifier(b)?zf(b):(e.isIdentifier(b)||e.isPrivateIdentifier(b))&&(e.nodeIsSynthesized(b)||!b.parent||!le||b.parent&&le&&e.getSourceFileOfNode(b)!==e.getOriginalNode(le))?e.idText(b):b.kind===10&&b.textSourceNode?Kl(b.textSourceNode,rr):e.isLiteralExpression(b)&&(e.nodeIsSynthesized(b)||!b.parent)?b.text:e.getSourceTextOfNodeFromSourceFile(le,b,rr)}function Wn(b,rr,ai){if(b.kind===10&&b.textSourceNode){var Wi=b.textSourceNode;if(e.isIdentifier(Wi)||e.isNumericLiteral(Wi)){var At=e.isNumericLiteral(Wi)?Wi.text:Kl(Wi);return ai?'"'.concat(e.escapeJsxAttributeString(At),'"'):rr||e.getEmitFlags(b)&16777216?'"'.concat(e.escapeString(At),'"'):'"'.concat(e.escapeNonAsciiString(At),'"')}else return Wn(Wi,rr,ai)}var ra=(rr?1:0)|(ai?2:0)|(f.terminateUnterminatedLiterals?4:0)|(f.target&&f.target===99?8:0);return e.getLiteralText(b,le,ra)}function It(b){b&&e.getEmitFlags(b)&524288||(ar.push(gr),gr=0,me.push(Ge))}function Rs(b){b&&e.getEmitFlags(b)&524288||(gr=ar.pop(),Ge=me.pop())}function u_(b){(!Ge||Ge===e.lastOrUndefined(me))&&(Ge=new e.Set),Ge.add(b)}function xs(b){if(!!b)switch(b.kind){case 234:e.forEach(b.statements,xs);break;case 249:case 247:case 239:case 240:xs(b.statement);break;case 238:xs(b.thenStatement),xs(b.elseStatement);break;case 241:case 243:case 242:xs(b.initializer),xs(b.statement);break;case 248:xs(b.caseBlock);break;case 262:e.forEach(b.clauses,xs);break;case 288:case 289:e.forEach(b.statements,xs);break;case 251:xs(b.tryBlock),xs(b.catchClause),xs(b.finallyBlock);break;case 291:xs(b.variableDeclaration),xs(b.block);break;case 236:xs(b.declarationList);break;case 254:e.forEach(b.declarations,xs);break;case 253:case 163:case 202:case 256:mu(b.name);break;case 255:mu(b.name),e.getEmitFlags(b)&524288&&(e.forEach(b.parameters,xs),xs(b.body));break;case 200:case 201:e.forEach(b.elements,xs);break;case 265:xs(b.importClause);break;case 266:mu(b.name),xs(b.namedBindings);break;case 267:mu(b.name);break;case 273:mu(b.name);break;case 268:e.forEach(b.elements,xs);break;case 269:mu(b.propertyName||b.name);break}}function Tp(b){if(!!b)switch(b.kind){case 294:case 295:case 166:case 168:case 171:case 172:mu(b.name);break}}function mu(b){b&&(e.isGeneratedIdentifier(b)?zf(b):e.isBindingPattern(b)&&xs(b))}function zf(b){if((b.autoGenerateFlags&7)===4)return Uu(Ic(b),b.autoGenerateFlags);var rr=b.autoGenerateId;return Ue[rr]||(Ue[rr]=l_(b))}function Uu(b,rr){var ai=e.getNodeId(b);return ke[ai]||(ke[ai]=xp(b,rr))}function $c(b){return Wf(b)&&!He.has(b)&&!(Ge&&Ge.has(b))}function Wf(b){return le?e.isFileLevelUniqueName(le,b,D):!0}function Gl(b,rr){for(var ai=rr;e.isNodeDescendantOf(ai,rr);ai=ai.nextContainer)if(ai.locals){var Wi=ai.locals.get(e.escapeLeadingUnderscores(b));if(Wi&&Wi.flags&3257279)return!1}return!0}function bs(b,rr){if(b&&!(gr&b)){var ai=b===268435456?"_i":"_n";if($c(ai))return gr|=b,rr&&u_(ai),ai}for(;;){var Wi=gr&268435455;if(gr++,Wi!==8&&Wi!==13){var ai=Wi<26?"_"+String.fromCharCode(97+Wi):"_"+(Wi-26);if($c(ai))return rr&&u_(ai),ai}}}function zu(b,rr,ai,Wi){if(rr===void 0&&(rr=$c),ai&&rr(b))return Wi?u_(b):He.add(b),b;b.charCodeAt(b.length-1)!==95&&(b+="_");for(var At=1;;){var ra=b+At;if(rr(ra))return Wi?u_(ra):He.add(ra),ra;At++}}function ss(b){return zu(b,Wf,!0)}function Uc(b){var rr=Kl(b.name);return Gl(rr,b)?rr:zu(rr)}function Ad(b){var rr=e.getExternalModuleName(b),ai=e.isStringLiteral(rr)?e.makeIdentifierFromModuleName(rr.text):"module";return zu(ai)}function vu(){return zu("default")}function pf(){return zu("class")}function df(b){return e.isIdentifier(b.name)?Uu(b.name):bs(0)}function xp(b,rr){switch(b.kind){case 79:return zu(Kl(b),$c,!!(rr&16),!!(rr&8));case 260:case 259:return Uc(b);case 265:case 271:return Ad(b);case 255:case 256:case 270:return vu();case 225:return pf();case 168:case 171:case 172:return df(b);case 161:return bs(0,!0);default:return bs(0)}}function l_(b){switch(b.autoGenerateFlags&7){case 1:return bs(0,!!(b.autoGenerateFlags&8));case 2:return bs(268435456,!!(b.autoGenerateFlags&8));case 3:return zu(e.idText(b),b.autoGenerateFlags&32?Wf:$c,!!(b.autoGenerateFlags&16),!!(b.autoGenerateFlags&8))}return e.Debug.fail("Unsupported GeneratedIdentifierKind.")}function Ic(b){for(var rr=b.autoGenerateId,ai=b,Wi=ai.original;Wi&&(ai=Wi,!(e.isIdentifier(ai)&&!!(ai.autoGenerateFlags&4)&&ai.autoGenerateId!==rr));)Wi=ai.original;return ai}function _s(b,rr){var ai=Ui(2,b,rr),Wi=Ce,At=Le,ra=Xe;xl(rr),ai(b,rr),gf(rr,Wi,At,ra)}function xl(b){var rr=e.getEmitFlags(b),ai=e.getCommentRange(b);Hl(b,rr,ai.pos,ai.end),rr&2048&&(Rr=!0)}function gf(b,rr,ai,Wi){var At=e.getEmitFlags(b),ra=e.getCommentRange(b);At&2048&&(Rr=!1),Xl(b,At,ra.pos,ra.end,rr,ai,Wi)}function Hl(b,rr,ai,Wi){Kr(),Jr=!1;var At=ai<0||(rr&512)!==0||b.kind===11,ra=Wi<0||(rr&1024)!==0||b.kind===11;(ai>0||Wi>0)&&ai!==Wi&&(At||Ql(ai,b.kind!==347),(!At||ai>=0&&(rr&512)!==0)&&(Ce=ai),(!ra||Wi>=0&&(rr&1024)!==0)&&(Le=Wi,b.kind===254&&(Xe=Wi))),e.forEach(e.getSyntheticLeadingComments(b),Ep),ei()}function Xl(b,rr,ai,Wi,At,ra,La){Kr();var fn=Wi<0||(rr&1024)!==0||b.kind===11;e.forEach(e.getSyntheticTrailingComments(b),z_),(ai>0||Wi>0)&&ai!==Wi&&(Ce=At,Le=ra,Xe=La,!fn&&b.kind!==347&&Ga(Wi)),ei()}function Ep(b){(b.hasLeadingNewline||b.kind===2)&&we.writeLine(),El(b),b.hasTrailingNewLine||b.kind===2?we.writeLine():we.writeSpace(" ")}function z_(b){we.isAtStartOfLine()||we.writeSpace(" "),El(b),b.hasTrailingNewLine&&we.writeLine()}function El(b){var rr=Cp(b),ai=b.kind===3?e.computeLineStarts(rr):void 0;e.writeCommentRange(rr,ai,we,0,rr.length,de)}function Cp(b){return b.kind===3?"/*".concat(b.text,"*/"):"//".concat(b.text)}function Zc(b,rr,ai){Kr();var Wi=rr.pos,At=rr.end,ra=e.getEmitFlags(b),La=Wi<0||(ra&512)!==0,fn=Rr||At<0||(ra&1024)!==0;La||Al(rr),ei(),ra&2048&&!Rr?(Rr=!0,ai(b),Rr=!1):ai(b),Kr(),fn||(Ql(rr.end,!0),Jr&&!we.isAtStartOfLine()&&we.writeLine()),ei()}function kp(b,rr){return b=e.getOriginalNode(b),b.parent&&b.parent===e.getOriginalNode(rr).parent}function mf(b,rr){if(rr.pos<b.end)return!1;b=e.getOriginalNode(b),rr=e.getOriginalNode(rr);var ai=b.parent;if(!ai||ai!==rr.parent)return!1;var Wi=e.getContainingNodeArray(b),At=Wi==null?void 0:Wi.indexOf(b);return At!==void 0&&At>-1&&Wi.indexOf(rr)===At+1}function Ql(b,rr){Jr=!1,rr?b===0&&(le==null?void 0:le.isDeclarationFile)?ol(b,qf):ol(b,W_):b===0&&ol(b,f_)}function f_(b,rr,ai,Wi,At){p_(b,rr)&&W_(b,rr,ai,Wi,At)}function qf(b,rr,ai,Wi,At){p_(b,rr)||W_(b,rr,ai,Wi,At)}function Cl(b,rr){return f.onlyPrintJsDocStyle?e.isJSDocLikeText(b,rr)||e.isPinnedComment(b,rr):!0}function W_(b,rr,ai,Wi,At){!Cl(le.text,b)||(Jr||(e.emitNewLineBeforeLeadingCommentOfPosition(Xr(),we,At,b),Jr=!0),sc(b),e.writeCommentRange(le.text,Xr(),we,b,rr,de),sc(rr),Wi?we.writeLine():ai===3&&we.writeSpace(" "))}function nl(b){Rr||b===-1||Ql(b,!0)}function Ga(b){q_(b,kl)}function kl(b,rr,ai,Wi){!Cl(le.text,b)||(we.isAtStartOfLine()||we.writeSpace(" "),sc(b),e.writeCommentRange(le.text,Xr(),we,b,rr,de),sc(rr),Wi&&we.writeLine())}function ht(b,rr,ai){Rr||(Kr(),q_(b,rr?kl:ai?__:Yl),ei())}function __(b,rr,ai){sc(b),e.writeCommentRange(le.text,Xr(),we,b,rr,de),sc(rr),ai===2&&we.writeLine()}function Yl(b,rr,ai,Wi){sc(b),e.writeCommentRange(le.text,Xr(),we,b,rr,de),sc(rr),Wi?we.writeLine():we.writeSpace(" ")}function ol(b,rr){le&&(Ce===-1||b!==Ce)&&(rd(b)?Pd(rr):e.forEachLeadingCommentRange(le.text,b,rr,b))}function q_(b,rr){le&&(Le===-1||b!==Le&&b!==Xe)&&e.forEachTrailingCommentRange(le.text,b,rr)}function rd(b){return Lr!==void 0&&e.last(Lr).nodePos===b}function Pd(b){var rr=e.last(Lr).detachedCommentEndPos;Lr.length-1?Lr.pop():Lr=void 0,e.forEachLeadingCommentRange(le.text,rr,b,rr)}function Al(b){var rr=e.emitDetachedComments(le.text,Xr(),we,id,b,de,Rr);rr&&(Lr?Lr.push(rr):Lr=[rr])}function id(b,rr,ai,Wi,At,ra){!Cl(le.text,Wi)||(sc(Wi),e.writeCommentRange(b,rr,ai,Wi,At,ra),sc(At))}function p_(b,rr){return e.isRecognizedTripleSlashComment(le.text,b,rr)}function Nd(b){return b.parsedSourceMap===void 0&&b.sourceMapText!==void 0&&(b.parsedSourceMap=e.tryParseRawSourceMap(b.sourceMapText)||!1),b.parsedSourceMap||void 0}function V_(b,rr){var ai=Ui(3,b,rr);yu(rr),ai(b,rr),d_(rr)}function yu(b){var rr=e.getEmitFlags(b),ai=e.getSourceMapRange(b);if(e.isUnparsedNode(b)){e.Debug.assertIsDefined(b.parent,"UnparsedNodes must have parent pointers");var Wi=Nd(b.parent);Wi&&Tr&&Tr.appendSourceMap(we.getLine(),we.getColumn(),Wi,b.parent.sourceMapPath,b.parent.getLineAndCharacterOfPosition(b.pos),b.parent.getLineAndCharacterOfPosition(b.end))}else{var At=ai.source||n;b.kind!==347&&(rr&16)===0&&ai.pos>=0&&Vf(ai.source||n,sl(At,ai.pos)),rr&64&&(Br=!0)}}function d_(b){var rr=e.getEmitFlags(b),ai=e.getSourceMapRange(b);e.isUnparsedNode(b)||(rr&64&&(Br=!1),b.kind!==347&&(rr&32)===0&&ai.end>=0&&Vf(ai.source||n,ai.end))}function sl(b,rr){return b.skipTrivia?b.skipTrivia(rr):e.skipTrivia(b.text,rr)}function sc(b){if(!(Br||e.positionIsSynthesized(b)||eu(n))){var rr=e.getLineAndCharacterOfPosition(n,b),ai=rr.line,Wi=rr.character;Tr.addMapping(we.getLine(),we.getColumn(),Er,ai,Wi,void 0)}}function Vf(b,rr){if(b!==n){var ai=n,Wi=Er;vf(b),sc(rr),td(ai,Wi)}else sc(rr)}function ku(b,rr,ai,Wi,At){if(Br||b&&e.isInJsonFile(b))return At(rr,ai,Wi);var ra=b&&b.emitNode,La=ra&&ra.flags||0,fn=ra&&ra.tokenSourceMapRanges&&ra.tokenSourceMapRanges[rr],Bo=fn&&fn.source||n;return Wi=sl(Bo,fn?fn.pos:Wi),(La&128)===0&&Wi>=0&&Vf(Bo,Wi),Wi=At(rr,ai,Wi),fn&&(Wi=fn.end),(La&256)===0&&Wi>=0&&Vf(Bo,Wi),Wi}function vf(b){if(!Br){if(n=b,b===br){Er=Pr;return}eu(b)||(Er=Tr.addSource(b.fileName),f.inlineSources&&Tr.setSourceContent(Er,b.text),br=b,Pr=Er)}}function td(b,rr){n=b,Er=rr}function eu(b){return e.fileExtensionIs(b.fileName,".json")}}e.createPrinter=k;function I(){var f=[];return f[1024]=["{","}"],f[2048]=["(",")"],f[4096]=["<",">"],f[8192]=["[","]"],f}function ne(f){return a[f&15360][0]}function ee(f){return a[f&15360][1]}var A;(function(f){f[f.Auto=0]="Auto",f[f.CountMask=268435455]="CountMask",f[f._i=268435456]="_i"})(A||(A={}))})(Pe||(Pe={}));var Pe;(function(e){function a(E,ue,B){if(!E.getDirectories||!E.readDirectory)return;var re=new e.Map,M=e.createGetCanonicalFileName(B);return{useCaseSensitiveFileNames:B,fileExists:f,readFile:function(y,oe){return E.readFile(y,oe)},directoryExists:E.directoryExists&&P,getDirectories:l,readDirectory:_,createDirectory:E.createDirectory&&D,writeFile:E.writeFile&&A,addOrDeleteFileOrDirectory:w,addOrDeleteFile:j,clearCache:z,realpath:E.realpath&&J};function x(y){return e.toPath(y,ue,M)}function ie(y){return re.get(e.ensureTrailingDirectorySeparator(y))}function _e(y){return ie(e.getDirectoryPath(y))}function Y(y){return e.getBaseFileName(e.normalizePath(y))}function Z(y,oe){var ve;if(!E.realpath||e.ensureTrailingDirectorySeparator(x(E.realpath(y)))===oe){var ce={files:e.map(E.readDirectory(y,void 0,void 0,["*.*"]),Y)||[],directories:E.getDirectories(y)||[]};return re.set(e.ensureTrailingDirectorySeparator(oe),ce),ce}if(!((ve=E.directoryExists)===null||ve===void 0)&&ve.call(E,y))return re.set(oe,!1),!1}function k(y,oe){oe=e.ensureTrailingDirectorySeparator(oe);var ve=ie(oe);if(ve)return ve;try{return Z(y,oe)}catch{e.Debug.assert(!re.has(e.ensureTrailingDirectorySeparator(oe)));return}}function I(y,oe){return M(y)===M(oe)}function ne(y,oe){return e.some(y,function(ve){return I(ve,oe)})}function ee(y,oe,ve){if(ne(y,oe)){if(!ve)return e.filterMutate(y,function(ce){return!I(ce,oe)})}else if(ve)return y.push(oe)}function A(y,oe,ve){var ce=x(y),m=_e(ce);return m&&U(m,Y(y),!0),E.writeFile(y,oe,ve)}function f(y){var oe=x(y),ve=_e(oe);return ve&&ne(ve.files,Y(y))||E.fileExists(y)}function P(y){var oe=x(y);return re.has(e.ensureTrailingDirectorySeparator(oe))||E.directoryExists(y)}function D(y){var oe=x(y),ve=_e(oe),ce=Y(y);ve&&ee(ve.directories,ce,!0),E.createDirectory(y)}function l(y){var oe=x(y),ve=k(y,oe);return ve?ve.directories.slice():E.getDirectories(y)}function _(y,oe,ve,ce,m){var de=x(y),ae=k(y,de),V;if(ae!==void 0)return e.matchFiles(y,oe,ve,ce,B,ue,m,le,J);return E.readDirectory(y,oe,ve,ce,m);function le(Ue){var He=x(Ue);if(He===de)return ae||ke(Ue,He);var ar=k(Ue,He);return ar!==void 0?ar||ke(Ue,He):e.emptyFileSystemEntries}function ke(Ue,He){if(V&&He===de)return V;var ar={files:e.map(E.readDirectory(Ue,void 0,void 0,["*.*"]),Y)||e.emptyArray,directories:E.getDirectories(Ue)||e.emptyArray};return He===de&&(V=ar),ar}}function J(y){return E.realpath?E.realpath(y):y}function w(y,oe){var ve=ie(oe);if(ve!==void 0){z();return}var ce=_e(oe);if(!!ce){if(!E.directoryExists){z();return}var m=Y(y),de={fileExists:E.fileExists(oe),directoryExists:E.directoryExists(oe)};return de.directoryExists||ne(ce.directories,m)?z():U(ce,m,de.fileExists),de}}function j(y,oe,ve){if(ve!==e.FileWatcherEventKind.Changed){var ce=_e(oe);ce&&U(ce,Y(y),ve===e.FileWatcherEventKind.Created)}}function U(y,oe,ve){ee(y.files,oe,ve)}function z(){re.clear()}}e.createCachedDirectoryStructureHost=a;var O;(function(E){E[E.None=0]="None",E[E.Partial=1]="Partial",E[E.Full=2]="Full"})(O=e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={}));function L(E,ue,B,re,M){var x,ie=e.arrayToMap(((x=ue==null?void 0:ue.configFile)===null||x===void 0?void 0:x.extendedSourceFiles)||e.emptyArray,M);B.forEach(function(_e,Y){ie.has(Y)||(_e.projects.delete(E),_e.close())}),ie.forEach(function(_e,Y){var Z=B.get(Y);Z?Z.projects.add(E):B.set(Y,{projects:new e.Set([E]),watcher:re(_e,Y),close:function(){var k=B.get(Y);!k||k.projects.size!==0||(k.watcher.close(),B.delete(Y))}})})}e.updateSharedExtendedConfigFileWatcher=L;function W(E,ue){ue.forEach(function(B){B.projects.delete(E)&&B.close()})}e.clearSharedExtendedConfigFileWatcher=W;function N(E,ue,B){!E.delete(ue)||E.forEach(function(re,M){var x,ie=re.extendedResult;!((x=ie.extendedSourceFiles)===null||x===void 0)&&x.some(function(_e){return B(_e)===ue})&&N(E,M,B)})}e.cleanExtendedConfigCache=N;function Q(E,ue,B){var re=new e.Map(E);e.mutateMap(ue,re,{createNewValue:B,onDeleteValue:e.closeFileWatcher})}e.updatePackageJsonWatch=Q;function pe(E,ue,B){var re=E.getMissingFilePaths(),M=e.arrayToMap(re,e.identity,e.returnTrue);e.mutateMap(ue,M,{createNewValue:B,onDeleteValue:e.closeFileWatcher})}e.updateMissingFilePathsWatch=pe;function F(E,ue,B){e.mutateMap(E,ue,{createNewValue:re,onDeleteValue:G,onExistingValue:M});function re(x,ie){return{watcher:B(x,ie),flags:ie}}function M(x,ie,_e){x.flags!==ie&&(x.watcher.close(),E.set(_e,re(_e,ie)))}}e.updateWatchingWildcardDirectories=F;function g(E){var ue=E.watchedDirPath,B=E.fileOrDirectory,re=E.fileOrDirectoryPath,M=E.configFileName,x=E.options,ie=E.program,_e=E.extraFileExtensions,Y=E.currentDirectory,Z=E.useCaseSensitiveFileNames,k=E.writeLog,I=E.toPath,ne=e.removeIgnoredPath(re);if(!ne)return k("Project: ".concat(M," Detected ignored path: ").concat(B)),!0;if(re=ne,re===ue)return!1;if(e.hasExtension(re)&&!e.isSupportedSourceFileName(B,x,_e))return k("Project: ".concat(M," Detected file add/remove of non supported extension: ").concat(B)),!0;if(e.isExcludedFile(B,x.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(M),Y),Z,Y))return k("Project: ".concat(M," Detected excluded file: ").concat(B)),!0;if(!ie||e.outFile(x)||x.outDir)return!1;if(e.fileExtensionIs(re,".d.ts")){if(x.declarationDir)return!1}else if(!e.fileExtensionIsOneOf(re,e.supportedJSExtensionsFlat))return!1;var ee=e.removeFileExtension(re),A=e.isArray(ie)?void 0:S(ie)?ie.getProgramOrUndefined():ie,f=!A&&!e.isArray(ie)?ie:void 0;if(P(ee+".ts")||P(ee+".tsx"))return k("Project: ".concat(M," Detected output file: ").concat(B)),!0;return!1;function P(D){return A?!!A.getSourceFileByPath(D):f?f.getState().fileInfos.has(D):!!e.find(ie,function(l){return I(l)===D})}}e.isIgnoredFileFromWildCardWatching=g;function S(E){return!!E.getState}function H(E,ue){return E?E.isEmittedFile(ue):!1}e.isEmittedFileOfProgram=H;var se;(function(E){E[E.None=0]="None",E[E.TriggerOnly=1]="TriggerOnly",E[E.Verbose=2]="Verbose"})(se=e.WatchLogLevel||(e.WatchLogLevel={}));function p(E,ue,B,re){e.setSysLog(ue===se.Verbose?B:e.noop);var M={watchFile:function(f,P,D,l){return E.watchFile(f,P,D,l)},watchDirectory:function(f,P,D,l){return E.watchDirectory(f,P,(D&1)!==0,l)}},x=ue!==se.None?{watchFile:ee("watchFile"),watchDirectory:ee("watchDirectory")}:void 0,ie=ue===se.Verbose?{watchFile:I,watchDirectory:ne}:x||M,_e=ue===se.Verbose?k:e.returnNoopFileWatcher;return{watchFile:Y("watchFile"),watchDirectory:Y("watchDirectory")};function Y(f){return function(P,D,l,_,J,w){var j;return e.matchesExclude(P,f==="watchFile"?_==null?void 0:_.excludeFiles:_==null?void 0:_.excludeDirectories,Z(),((j=E.getCurrentDirectory)===null||j===void 0?void 0:j.call(E))||"")?_e(P,l,_,J,w):ie[f].call(void 0,P,D,l,_,J,w)}}function Z(){return typeof E.useCaseSensitiveFileNames=="boolean"?E.useCaseSensitiveFileNames:E.useCaseSensitiveFileNames()}function k(f,P,D,l,_){return B("ExcludeWatcher:: Added:: ".concat(A(f,P,D,l,_,re))),{close:function(){return B("ExcludeWatcher:: Close:: ".concat(A(f,P,D,l,_,re)))}}}function I(f,P,D,l,_,J){B("FileWatcher:: Added:: ".concat(A(f,D,l,_,J,re)));var w=x.watchFile(f,P,D,l,_,J);return{close:function(){B("FileWatcher:: Close:: ".concat(A(f,D,l,_,J,re))),w.close()}}}function ne(f,P,D,l,_,J){var w="DirectoryWatcher:: Added:: ".concat(A(f,D,l,_,J,re));B(w);var j=e.timestamp(),U=x.watchDirectory(f,P,D,l,_,J),z=e.timestamp()-j;return B("Elapsed:: ".concat(z,"ms ").concat(w)),{close:function(){var y="DirectoryWatcher:: Close:: ".concat(A(f,D,l,_,J,re));B(y);var oe=e.timestamp();U.close();var ve=e.timestamp()-oe;B("Elapsed:: ".concat(ve,"ms ").concat(y))}}}function ee(f){return function(P,D,l,_,J,w){return M[f].call(void 0,P,function(){for(var j=[],U=0;U<arguments.length;U++)j[U]=arguments[U];var z="".concat(f==="watchFile"?"FileWatcher":"DirectoryWatcher",":: Triggered with ").concat(j[0]," ").concat(j[1]!==void 0?j[1]:"",":: ").concat(A(P,l,_,J,w,re));B(z);var y=e.timestamp();D.call.apply(D,qe([void 0],j,!1));var oe=e.timestamp()-y;B("Elapsed:: ".concat(oe,"ms ").concat(z))},l,_,J,w)}}function A(f,P,D,l,_,J){return"WatchInfo: ".concat(f," ").concat(P," ").concat(JSON.stringify(D)," ").concat(J?J(l,_):_===void 0?l:"".concat(l," ").concat(_))}}e.getWatchFactory=p;function C(E){var ue=E==null?void 0:E.fallbackPolling;return{watchFile:ue!==void 0?ue:e.WatchFileKind.PriorityPollingInterval}}e.getFallbackOptions=C;function G(E){E.watcher.close()}e.closeFileWatcherOf=G})(Pe||(Pe={}));var Pe;(function(e){function a(ae,V,le){return le===void 0&&(le="tsconfig.json"),e.forEachAncestorDirectory(ae,function(ke){var Ue=e.combinePaths(ke,le);return V(Ue)?Ue:void 0})}e.findConfigFile=a;function O(ae,V){var le=e.getDirectoryPath(V),ke=e.isRootedDiskPath(ae)?ae:e.combinePaths(le,ae);return e.normalizePath(ke)}e.resolveTripleslashReference=O;function L(ae,V,le){var ke,Ue=e.forEach(ae,function(He){var ar=e.getNormalizedPathComponents(He,V);if(ar.pop(),!ke){ke=ar;return}for(var gr=Math.min(ke.length,ar.length),me=0;me<gr;me++)if(le(ke[me])!==le(ar[me])){if(me===0)return!0;ke.length=me;break}ar.length<ke.length&&(ke.length=ar.length)});return Ue?"":ke?e.getPathFromPathComponents(ke):V}e.computeCommonSourceDirectoryOfFilenames=L;function W(ae,V){return N(ae,V)}e.createCompilerHost=W;function N(ae,V,le){le===void 0&&(le=e.sys);var ke=new e.Map,Ue=e.createGetCanonicalFileName(le.useCaseSensitiveFileNames),He=e.maybeBind(le,le.createHash)||e.generateDjb2Hash;function ar(ge,Fe,cr){var ur;try{e.performance.mark("beforeIORead"),ur=Se.readFile(ge),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(Ir){cr&&cr(Ir.message),ur=""}return ur!==void 0?e.createSourceFile(ge,ur,Fe,V):void 0}function gr(ge){return ke.has(ge)?!0:(Se.directoryExists||le.directoryExists)(ge)?(ke.set(ge,!0),!0):!1}function me(ge,Fe,cr,ur){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(ge,Fe,cr,function(Ir,dr,Br){return er(Ir,dr,Br)},function(Ir){return(Se.createDirectory||le.createDirectory)(Ir)},function(Ir){return gr(Ir)}),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(Ir){ur&&ur(Ir.message)}}var Ge;function er(ge,Fe,cr){if(!e.isWatchSet(ae)||!le.getModifiedTime){le.writeFile(ge,Fe,cr);return}Ge||(Ge=new e.Map);var ur=He(Fe),Ir=le.getModifiedTime(ge);if(Ir){var dr=Ge.get(ge);if(dr&&dr.byteOrderMark===cr&&dr.hash===ur&&dr.mtime.getTime()===Ir.getTime())return}le.writeFile(ge,Fe,cr);var Br=le.getModifiedTime(ge)||e.missingFileModifiedTime;Ge.set(ge,{hash:ur,byteOrderMark:cr,mtime:Br})}function he(){return e.getDirectoryPath(e.normalizePath(le.getExecutingFilePath()))}var we=e.getNewLineCharacter(ae,function(){return le.newLine}),ye=le.realpath&&function(ge){return le.realpath(ge)},Se={getSourceFile:ar,getDefaultLibLocation:he,getDefaultLibFileName:function(ge){return e.combinePaths(he(),e.getDefaultLibFileName(ge))},writeFile:me,getCurrentDirectory:e.memoize(function(){return le.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return le.useCaseSensitiveFileNames},getCanonicalFileName:Ue,getNewLine:function(){return we},fileExists:function(ge){return le.fileExists(ge)},readFile:function(ge){return le.readFile(ge)},trace:function(ge){return le.write(ge+we)},directoryExists:function(ge){return le.directoryExists(ge)},getEnvironmentVariable:function(ge){return le.getEnvironmentVariable?le.getEnvironmentVariable(ge):""},getDirectories:function(ge){return le.getDirectories(ge)},realpath:ye,readDirectory:function(ge,Fe,cr,ur,Ir){return le.readDirectory(ge,Fe,cr,ur,Ir)},createDirectory:function(ge){return le.createDirectory(ge)},createHash:e.maybeBind(le,le.createHash)};return Se}e.createCompilerHostWorker=N;function Q(ae,V,le){var ke=ae.readFile,Ue=ae.fileExists,He=ae.directoryExists,ar=ae.createDirectory,gr=ae.writeFile,me=new e.Map,Ge=new e.Map,er=new e.Map,he=new e.Map,we=function(ge){var Fe=V(ge),cr=me.get(Fe);return cr!==void 0?cr!==!1?cr:void 0:ye(Fe,ge)},ye=function(ge,Fe){var cr=ke.call(ae,Fe);return me.set(ge,cr!==void 0?cr:!1),cr};ae.readFile=function(ge){var Fe=V(ge),cr=me.get(Fe);return cr!==void 0?cr!==!1?cr:void 0:!e.fileExtensionIs(ge,".json")&&!e.isBuildInfoFile(ge)?ke.call(ae,ge):ye(Fe,ge)};var Se=le?function(ge,Fe,cr,ur){var Ir=V(ge),dr=he.get(Ir);if(dr)return dr;var Br=le(ge,Fe,cr,ur);return Br&&(e.isDeclarationFileName(ge)||e.fileExtensionIs(ge,".json"))&&he.set(Ir,Br),Br}:void 0;return ae.fileExists=function(ge){var Fe=V(ge),cr=Ge.get(Fe);if(cr!==void 0)return cr;var ur=Ue.call(ae,ge);return Ge.set(Fe,!!ur),ur},gr&&(ae.writeFile=function(ge,Fe,cr,ur,Ir){var dr=V(ge);Ge.delete(dr);var Br=me.get(dr);if(Br!==void 0&&Br!==Fe)me.delete(dr),he.delete(dr);else if(Se){var Tr=he.get(dr);Tr&&Tr.text!==Fe&&he.delete(dr)}gr.call(ae,ge,Fe,cr,ur,Ir)}),He&&ar&&(ae.directoryExists=function(ge){var Fe=V(ge),cr=er.get(Fe);if(cr!==void 0)return cr;var ur=He.call(ae,ge);return er.set(Fe,!!ur),ur},ae.createDirectory=function(ge){var Fe=V(ge);er.delete(Fe),ar.call(ae,ge)}),{originalReadFile:ke,originalFileExists:Ue,originalDirectoryExists:He,originalCreateDirectory:ar,originalWriteFile:gr,getSourceFileWithCache:Se,readFileWithCache:we}}e.changeCompilerHostLikeToUseCache=Q;function pe(ae,V,le){var ke;return ke=e.addRange(ke,ae.getConfigFileParsingDiagnostics()),ke=e.addRange(ke,ae.getOptionsDiagnostics(le)),ke=e.addRange(ke,ae.getSyntacticDiagnostics(V,le)),ke=e.addRange(ke,ae.getGlobalDiagnostics(le)),ke=e.addRange(ke,ae.getSemanticDiagnostics(V,le)),e.getEmitDeclarations(ae.getCompilerOptions())&&(ke=e.addRange(ke,ae.getDeclarationDiagnostics(V,le))),e.sortAndDeduplicateDiagnostics(ke||e.emptyArray)}e.getPreEmitDiagnostics=pe;function F(ae,V){for(var le="",ke=0,Ue=ae;ke<Ue.length;ke++){var He=Ue[ke];le+=g(He,V)}return le}e.formatDiagnostics=F;function g(ae,V){var le="".concat(e.diagnosticCategoryName(ae)," TS").concat(ae.code,": ").concat(ie(ae.messageText,V.getNewLine())).concat(V.getNewLine());if(ae.file){var ke=e.getLineAndCharacterOfPosition(ae.file,ae.start),Ue=ke.line,He=ke.character,ar=ae.file.fileName,gr=e.convertToRelativePath(ar,V.getCurrentDirectory(),function(me){return V.getCanonicalFileName(me)});return"".concat(gr,"(").concat(Ue+1,",").concat(He+1,"): ")+le}return le}e.formatDiagnostic=g;var S;(function(ae){ae.Grey="\x1B[90m",ae.Red="\x1B[91m",ae.Yellow="\x1B[93m",ae.Blue="\x1B[94m",ae.Cyan="\x1B[96m"})(S=e.ForegroundColorEscapeSequences||(e.ForegroundColorEscapeSequences={}));var H="\x1B[7m",se=" ",p="\x1B[0m",C="...",G="  ",E="    ";function ue(ae){switch(ae){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 B(ae,V){return V+ae+p}e.formatColorAndReset=B;function re(ae,V,le,ke,Ue,He){var ar=e.getLineAndCharacterOfPosition(ae,V),gr=ar.line,me=ar.character,Ge=e.getLineAndCharacterOfPosition(ae,V+le),er=Ge.line,he=Ge.character,we=e.getLineAndCharacterOfPosition(ae,ae.text.length).line,ye=er-gr>=4,Se=(er+1+"").length;ye&&(Se=Math.max(C.length,Se));for(var ge="",Fe=gr;Fe<=er;Fe++){ge+=He.getNewLine(),ye&&gr+1<Fe&&Fe<er-1&&(ge+=ke+B(e.padLeft(C,Se),H)+se+He.getNewLine(),Fe=er-1);var cr=e.getPositionOfLineAndCharacter(ae,Fe,0),ur=Fe<we?e.getPositionOfLineAndCharacter(ae,Fe+1,0):ae.text.length,Ir=ae.text.slice(cr,ur);if(Ir=e.trimStringEnd(Ir),Ir=Ir.replace(/\t/g," "),ge+=ke+B(e.padLeft(Fe+1+"",Se),H)+se,ge+=Ir+He.getNewLine(),ge+=ke+B(e.padLeft("",Se),H)+se,ge+=Ue,Fe===gr){var dr=Fe===er?he:void 0;ge+=Ir.slice(0,me).replace(/\S/g," "),ge+=Ir.slice(me,dr).replace(/./g,"~")}else Fe===er?ge+=Ir.slice(0,he).replace(/./g,"~"):ge+=Ir.replace(/./g,"~");ge+=p}return ge}function M(ae,V,le,ke){ke===void 0&&(ke=B);var Ue=e.getLineAndCharacterOfPosition(ae,V),He=Ue.line,ar=Ue.character,gr=le?e.convertToRelativePath(ae.fileName,le.getCurrentDirectory(),function(Ge){return le.getCanonicalFileName(Ge)}):ae.fileName,me="";return me+=ke(gr,S.Cyan),me+=":",me+=ke("".concat(He+1),S.Yellow),me+=":",me+=ke("".concat(ar+1),S.Yellow),me}e.formatLocation=M;function x(ae,V){for(var le="",ke=0,Ue=ae;ke<Ue.length;ke++){var He=Ue[ke];if(He.file){var ar=He.file,gr=He.start;le+=M(ar,gr,V),le+=" - "}if(le+=B(e.diagnosticCategoryName(He),ue(He.category)),le+=B(" TS".concat(He.code,": "),S.Grey),le+=ie(He.messageText,V.getNewLine()),He.file&&(le+=V.getNewLine(),le+=re(He.file,He.start,He.length,"",ue(He.category),V)),He.relatedInformation){le+=V.getNewLine();for(var me=0,Ge=He.relatedInformation;me<Ge.length;me++){var er=Ge[me],ar=er.file,gr=er.start,he=er.length,we=er.messageText;ar&&(le+=V.getNewLine(),le+=G+M(ar,gr,V),le+=re(ar,gr,he,E,S.Cyan,V)),le+=V.getNewLine(),le+=E+ie(we,V.getNewLine())}}le+=V.getNewLine()}return le}e.formatDiagnosticsWithColorAndContext=x;function ie(ae,V,le){if(le===void 0&&(le=0),e.isString(ae))return ae;if(ae===void 0)return"";var ke="";if(le){ke+=V;for(var Ue=0;Ue<le;Ue++)ke+="  "}if(ke+=ae.messageText,le++,ae.next)for(var He=0,ar=ae.next;He<ar.length;He++){var gr=ar[He];ke+=ie(gr,V,le)}return ke}e.flattenDiagnosticMessageText=ie;function _e(ae,V,le,ke){if(ae.length===0)return[];for(var Ue=[],He=new e.Map,ar=0,gr=ae;ar<gr.length;ar++){var me=gr[ar],Ge=void 0;He.has(me)?Ge=He.get(me):He.set(me,Ge=ke(me,V,le)),Ue.push(Ge)}return Ue}e.loadWithLocalCache=_e;function Y(ae,V){if(ae.impliedNodeFormat!==void 0)return Z(ae,de(ae,V))}e.getModeForResolutionAtIndex=Y;function Z(ae,V){var le;if(ae.impliedNodeFormat!==void 0){if(ae.impliedNodeFormat!==e.ModuleKind.ESNext)return e.isImportCall(e.walkUpParenthesizedExpressions(V.parent))?e.ModuleKind.ESNext:e.ModuleKind.CommonJS;var ke=(le=e.walkUpParenthesizedExpressions(V.parent))===null||le===void 0?void 0:le.parent;return ke&&e.isImportEqualsDeclaration(ke)?e.ModuleKind.CommonJS:e.ModuleKind.ESNext}}e.getModeForUsageLocation=Z;function k(ae,V,le,ke,Ue){if(ae.length===0)return[];for(var He=[],ar=new e.Map,gr=0,me=0,Ge=ae;me<Ge.length;me++){var er=Ge[me],he=void 0,we=Y(V,gr);gr++;var ye=we!==void 0?"".concat(we,"|").concat(er):er;ar.has(ye)?he=ar.get(ye):ar.set(ye,he=Ue(er,we,le,ke)),He.push(he)}return He}e.loadWithModeAwareCache=k;function I(ae,V){return ne(void 0,ae,function(le,ke){return le&&V(le,ke)})}e.forEachResolvedProjectReference=I;function ne(ae,V,le,ke){var Ue;return He(ae,V,void 0);function He(ar,gr,me){if(ke){var Ge=ke(ar,me);if(Ge)return Ge}return e.forEach(gr,function(er,he){if(!(er&&(Ue==null?void 0:Ue.has(er.sourceFile.path)))){var we=le(er,me,he);return we||!er?we:((Ue||(Ue=new e.Set)).add(er.sourceFile.path),He(er.commandLine.projectReferences,er.references,er))}})}}e.inferredTypesContainingFile="__inferred type names__.ts";function ee(ae){switch(ae==null?void 0:ae.kind){case e.FileIncludeKind.Import:case e.FileIncludeKind.ReferenceFile:case e.FileIncludeKind.TypeReferenceDirective:case e.FileIncludeKind.LibReferenceDirective:return!0;default:return!1}}e.isReferencedFile=ee;function A(ae){return ae.pos!==void 0}e.isReferenceFileLocation=A;function f(ae,V){var le,ke,Ue,He,ar,gr,me,Ge=e.Debug.checkDefined(ae(V.file)),er=V.kind,he=V.index,we,ye,Se;switch(er){case e.FileIncludeKind.Import:var ge=de(Ge,he);if(Se=(ar=(He=Ge.resolvedModules)===null||He===void 0?void 0:He.get(ge.text,Y(Ge,he)))===null||ar===void 0?void 0:ar.packageId,ge.pos===-1)return{file:Ge,packageId:Se,text:ge.text};we=e.skipTrivia(Ge.text,ge.pos),ye=ge.end;break;case e.FileIncludeKind.ReferenceFile:le=Ge.referencedFiles[he],we=le.pos,ye=le.end;break;case e.FileIncludeKind.TypeReferenceDirective:ke=Ge.typeReferenceDirectives[he],we=ke.pos,ye=ke.end,Se=(me=(gr=Ge.resolvedTypeReferenceDirectiveNames)===null||gr===void 0?void 0:gr.get(e.toFileNameLowerCase(Ge.typeReferenceDirectives[he].fileName),Ge.impliedNodeFormat))===null||me===void 0?void 0:me.packageId;break;case e.FileIncludeKind.LibReferenceDirective:Ue=Ge.libReferenceDirectives[he],we=Ue.pos,ye=Ue.end;break;default:return e.Debug.assertNever(er)}return{file:Ge,pos:we,end:ye,packageId:Se}}e.getReferencedFileLocation=f;function P(ae,V,le,ke,Ue,He,ar,gr,me){if(!ae||(ar==null?void 0:ar())||!e.arrayIsEqualTo(ae.getRootFileNames(),V))return!1;var Ge;if(!e.arrayIsEqualTo(ae.getProjectReferences(),me,ye)||ae.getSourceFiles().some(he)||ae.getMissingFilePaths().some(Ue))return!1;var er=ae.getCompilerOptions();if(!e.compareDataObjects(er,le))return!1;if(er.configFile&&le.configFile)return er.configFile.text===le.configFile.text;return!0;function he(ge){return!we(ge)||He(ge.path)}function we(ge){return ge.version===ke(ge.resolvedPath,ge.fileName)}function ye(ge,Fe,cr){return e.projectReferenceIsEqualTo(ge,Fe)&&Se(ae.getResolvedProjectReferences()[cr],ge)}function Se(ge,Fe){if(ge){if(e.contains(Ge,ge))return!0;var cr=ve(Fe),ur=gr(cr);return!ur||ge.commandLine.options.configFile!==ur.options.configFile||!e.arrayIsEqualTo(ge.commandLine.fileNames,ur.fileNames)?!1:((Ge||(Ge=[])).push(ge),!e.forEach(ge.references,function(dr,Br){return!Se(dr,ge.commandLine.projectReferences[Br])}))}var Ir=ve(Fe);return!gr(Ir)}}e.isProgramUptoDate=P;function D(ae){return ae.options.configFile?qe(qe([],ae.options.configFile.parseDiagnostics,!0),ae.errors,!0):ae.errors}e.getConfigFileParsingDiagnostics=D;function l(ae,V,le,ke){switch(e.getEmitModuleResolutionKind(ke)){case e.ModuleResolutionKind.Node12:case e.ModuleResolutionKind.NodeNext:return e.fileExtensionIsOneOf(ae,[".d.mts",".mts",".mjs"])?e.ModuleKind.ESNext:e.fileExtensionIsOneOf(ae,[".d.cts",".cts",".cjs"])?e.ModuleKind.CommonJS:e.fileExtensionIsOneOf(ae,[".d.ts",".ts",".tsx",".js",".jsx"])?Ue():void 0;default:return}function Ue(){var He=e.getPackageScopeForPath(ae,V,le,ke);return(He==null?void 0:He.packageJsonContent.type)==="module"?e.ModuleKind.ESNext:e.ModuleKind.CommonJS}}e.getImpliedNodeFormatForFile=l,e.plainJSErrors=new e.Set([e.Diagnostics.Cannot_redeclare_block_scoped_variable_0.code,e.Diagnostics.A_module_cannot_have_multiple_default_exports.code,e.Diagnostics.Another_export_default_is_here.code,e.Diagnostics.The_first_export_default_is_here.code,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,e.Diagnostics.constructor_is_a_reserved_word.code,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,e.Diagnostics.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,e.Diagnostics.Invalid_use_of_0_in_strict_mode.code,e.Diagnostics.A_label_is_not_allowed_here.code,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode.code,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode.code,e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name.code,e.Diagnostics.A_class_member_cannot_have_the_0_keyword.code,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,e.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer.code,e.Diagnostics.A_get_accessor_cannot_have_parameters.code,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern.code,e.Diagnostics.A_rest_element_cannot_have_a_property_name.code,e.Diagnostics.A_rest_element_cannot_have_an_initializer.code,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern.code,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer.code,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list.code,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body.code,e.Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block.code,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter.code,e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter.code,e.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,e.Diagnostics.An_export_declaration_cannot_have_modifiers.code,e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,e.Diagnostics.An_import_declaration_cannot_have_modifiers.code,e.Diagnostics.An_object_member_cannot_be_declared_optional.code,e.Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element.code,e.Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause.code,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer.code,e.Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,e.Diagnostics.Classes_can_only_extend_a_single_class.code,e.Diagnostics.Classes_may_not_have_a_field_named_constructor.code,e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,e.Diagnostics.Duplicate_label_0.code,e.Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments.code,e.Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block.code,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,e.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,e.Diagnostics.Jump_target_cannot_cross_function_boundary.code,e.Diagnostics.Line_terminator_not_permitted_before_arrow.code,e.Diagnostics.Modifiers_cannot_appear_here.code,e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies.code,e.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,e.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,e.Diagnostics.Trailing_comma_not_allowed.code,e.Diagnostics.Variable_declaration_list_cannot_be_empty.code,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses.code,e.Diagnostics._0_expected.code,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,e.Diagnostics._0_list_cannot_be_empty.code,e.Diagnostics._0_modifier_already_seen.code,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration.code,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter.code,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,e.Diagnostics._0_modifier_cannot_be_used_here.code,e.Diagnostics._0_modifier_must_precede_1_modifier.code,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block.code,e.Diagnostics.const_declarations_must_be_initialized.code,e.Diagnostics.extends_clause_already_seen.code,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block.code,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code]);function _(ae,V){return ae?e.optionsHaveChanges(ae.getCompilerOptions(),V,e.sourceFileAffectingCompilerOptions):!1}function J(ae,V,le,ke,Ue){return{rootNames:ae,options:V,host:le,oldProgram:ke,configFileParsingDiagnostics:Ue}}function w(ae,V,le,ke,Ue){var He,ar,gr,me,Ge=e.isArray(ae)?J(ae,V,le,ke,Ue):ae,er=Ge.rootNames,he=Ge.options,we=Ge.configFileParsingDiagnostics,ye=Ge.projectReferences,Se=Ge.oldProgram,ge,Fe,cr,ur,Ir,dr,Br,Tr,n=new e.Map,Er=e.createMultiMap(),br={},Pr={},Ce=new e.Map,Le,Xe=typeof he.maxNodeModuleJsDepth=="number"?he.maxNodeModuleJsDepth:0,Cr=0,Lr=new e.Map,Jr=new e.Map;e.tracing===null||e.tracing===void 0||e.tracing.push("program","createProgram",{configFilePath:he.configFilePath,rootDir:he.rootDir},!0),e.performance.mark("beforeProgram");var Rr=Ge.host||W(he),ci=y(Rr),be=he.noLib,or=e.memoize(function(){return Rr.getDefaultLibFileName(he)}),Kr=Rr.getDefaultLibLocation?Rr.getDefaultLibLocation():e.getDirectoryPath(or()),ei=e.createDiagnosticCollection(),li=Rr.getCurrentDirectory(),Si=e.getSupportedExtensions(he),qi=e.getSupportedExtensionsWithJsonIfResolveJsonModule(he,Si),ft=new e.Map,bt,aa,sr,Ji,di=Rr.hasInvalidatedResolution||e.returnFalse;if(Rr.resolveModuleNames)Ji=function(Vr,fi,Ni,rt,Tt){return Rr.resolveModuleNames(e.Debug.checkEachDefined(Vr),Ni,rt,Tt,he,fi).map(function(Dt){if(!Dt||Dt.extension!==void 0)return Dt;var jt=e.clone(Dt);return jt.extension=e.extensionFromPath(Dt.resolvedFileName),jt})},aa=(He=Rr.getModuleResolutionCache)===null||He===void 0?void 0:He.call(Rr);else{aa=e.createModuleResolutionCache(li,ti,he);var X=function(Vr,fi,Ni,rt){return e.resolveModuleName(Vr,Ni,he,Rr,aa,rt,fi).resolvedModule};Ji=function(Vr,fi,Ni,rt,Tt){return k(e.Debug.checkEachDefined(Vr),fi,Ni,Tt,X)}}var Ye;if(Rr.resolveTypeReferenceDirectives)Ye=function(Vr,fi,Ni){return Rr.resolveTypeReferenceDirectives(e.Debug.checkEachDefined(Vr),fi,Ni,he)};else{sr=e.createTypeReferenceDirectiveResolutionCache(li,ti,void 0,aa==null?void 0:aa.getPackageJsonInfoCache());var Be=function(Vr,fi,Ni){return e.resolveTypeReferenceDirective(Vr,fi,he,Rr,Ni,sr).resolvedTypeReferenceDirective};Ye=function(Vr,fi,Ni){return _e(e.Debug.checkEachDefined(Vr),fi,Ni,Be)}}var Qe=new e.Map,_r=new e.Map,hr=e.createMultiMap(),Dr=!1,Me=new e.Map,v,xe=Rr.useCaseSensitiveFileNames()?new e.Map:void 0,ze,Je,Oe,Fr,Xr=!!(!((ar=Rr.useSourceOfProjectReferenceRedirect)===null||ar===void 0)&&ar.call(Rr))&&!he.disableSourceOfProjectReferenceRedirect,Or=j({compilerHost:Rr,getSymlinkCache:au,useSourceOfProjectReferenceRedirect:Xr,toPath:Bt,getResolvedProjectReferences:Xa,getSourceOfProjectReferenceRedirect:Pa,forEachResolvedProjectReference:An}),We=Or.onProgramCreateComplete,mr=Or.fileExists,Nr=Or.directoryExists,Ur=Rr.readFile.bind(Rr);e.tracing===null||e.tracing===void 0||e.tracing.push("program","shouldProgramCreateNewSourceFiles",{hasOldProgram:!!Se});var si=_(Se,he);e.tracing===null||e.tracing===void 0||e.tracing.pop();var mi;if(e.tracing===null||e.tracing===void 0||e.tracing.push("program","tryReuseStructureFromOldProgram",{}),mi=Ct(),e.tracing===null||e.tracing===void 0||e.tracing.pop(),mi!==2){ge=[],Fe=[],ye&&(ze||(ze=ye.map(ln)),er.length&&(ze==null||ze.forEach(function(Vr,fi){if(!!Vr){var Ni=e.outFile(Vr.commandLine.options);if(Xr){if(Ni||e.getEmitModuleKind(Vr.commandLine.options)===e.ModuleKind.None)for(var rt=0,Tt=Vr.commandLine.fileNames;rt<Tt.length;rt++){var Dt=Tt[rt];as(Dt,{kind:e.FileIncludeKind.SourceFromProjectReference,index:fi})}}else if(Ni)as(e.changeExtension(Ni,".d.ts"),{kind:e.FileIncludeKind.OutputFromProjectReference,index:fi});else if(e.getEmitModuleKind(Vr.commandLine.options)===e.ModuleKind.None)for(var jt=e.memoize(function(){return e.getCommonSourceDirectoryOfConfig(Vr.commandLine,!Rr.useCaseSensitiveFileNames())}),na=0,Za=Vr.commandLine.fileNames;na<Za.length;na++){var Dt=Za[na];!e.fileExtensionIs(Dt,".d.ts")&&!e.fileExtensionIs(Dt,".json")&&as(e.getOutputDeclarationFileName(Dt,Vr.commandLine,!Rr.useCaseSensitiveFileNames(),jt),{kind:e.FileIncludeKind.OutputFromProjectReference,index:fi})}}}))),e.tracing===null||e.tracing===void 0||e.tracing.push("program","processRootFiles",{count:er.length}),e.forEach(er,function(Vr,fi){return _i(Vr,!1,!1,{kind:e.FileIncludeKind.RootFile,index:fi})}),e.tracing===null||e.tracing===void 0||e.tracing.pop();var Ti=er.length?e.getAutomaticTypeDirectiveNames(he,Rr):e.emptyArray;if(Ti.length){e.tracing===null||e.tracing===void 0||e.tracing.push("program","processTypeReferences",{count:Ti.length});for(var hi=he.configFilePath?e.getDirectoryPath(he.configFilePath):Rr.getCurrentDirectory(),ki=e.combinePaths(hi,e.inferredTypesContainingFile),Ui=Ci(Ti,ki),zi=0;zi<Ti.length;zi++)zr(Ti[zi],Ui[zi],{kind:e.FileIncludeKind.AutomaticTypeDirectiveFile,typeReference:Ti[zi],packageId:(gr=Ui[zi])===null||gr===void 0?void 0:gr.packageId});e.tracing===null||e.tracing===void 0||e.tracing.pop()}if(er.length&&!be){var ri=or();!he.lib&&ri?_i(ri,!0,!1,{kind:e.FileIncludeKind.LibFile}):e.forEach(he.lib,function(Vr,fi){_i(et(Vr),!0,!1,{kind:e.FileIncludeKind.LibFile,index:fi})})}v=e.arrayFrom(e.mapDefinedIterator(Me.entries(),function(Vr){var fi=Vr[0],Ni=Vr[1];return Ni===void 0?fi:void 0})),cr=e.stableSort(ge,yt).concat(Fe),ge=void 0,Fe=void 0}if(e.Debug.assert(!!v),Se&&Rr.onReleaseOldSourceFile){for(var Gi=Se.getSourceFiles(),Rt=0,pa=Gi;Rt<pa.length;Rt++){var xt=pa[Rt],ua=ro(xt.resolvedPath);(si||!ua||xt.resolvedPath===xt.path&&ua.resolvedPath!==xt.path)&&Rr.onReleaseOldSourceFile(xt,Se.getCompilerOptions(),!!ro(xt.path))}Rr.getParsedCommandLine||Se.forEachResolvedProjectReference(function(Vr){ao(Vr.sourceFile.path)||Rr.onReleaseOldSourceFile(Vr.sourceFile,Se.getCompilerOptions(),!1)})}Se&&Rr.onReleaseParsedCommandLine&&ne(Se.getProjectReferences(),Se.getResolvedProjectReferences(),function(Vr,fi,Ni){var rt=(fi==null?void 0:fi.commandLine.projectReferences[Ni])||Se.getProjectReferences()[Ni],Tt=ve(rt);Je!=null&&Je.has(Bt(Tt))||Rr.onReleaseParsedCommandLine(Tt,Vr,Se.getCompilerOptions())}),sr=void 0,Se=void 0;var Vt={getRootFileNames:function(){return er},getSourceFile:go,getSourceFileByPath:ro,getSourceFiles:function(){return cr},getMissingFilePaths:function(){return v},getModuleResolutionCache:function(){return aa},getFilesByNameMap:function(){return Me},getCompilerOptions:function(){return he},getSyntacticDiagnostics:rs,getOptionsDiagnostics:Ee,getGlobalDiagnostics:nr,getSemanticDiagnostics:rn,getCachedSemanticDiagnostics:Do,getSuggestionDiagnostics:bi,getDeclarationDiagnostics:Qn,getBindAndCheckDiagnostics:io,getProgramDiagnostics:pn,getTypeChecker:Zn,getClassifiableNames:Oi,getDiagnosticsProducingTypeChecker:Sn,getCommonSourceDirectory:Pi,emit:ho,getCurrentDirectory:function(){return li},getNodeCount:function(){return Sn().getNodeCount()},getIdentifierCount:function(){return Sn().getIdentifierCount()},getSymbolCount:function(){return Sn().getSymbolCount()},getTypeCount:function(){return Sn().getTypeCount()},getInstantiationCount:function(){return Sn().getInstantiationCount()},getRelationCacheSizes:function(){return Sn().getRelationCacheSizes()},getFileProcessingDiagnostics:function(){return Le},getResolvedTypeReferenceDirectives:function(){return Ce},isSourceFileFromExternalLibrary:bn,isSourceFileDefaultLibrary:Rn,dropDiagnosticsProducingTypeChecker:zn,getSourceFileFromReference:Ta,getLibFileFromReference:Fa,sourceFileToPackageName:_r,redirectTargetsMap:hr,usesUriStyleNodeCoreModules:Dr,isEmittedFile:Bu,getConfigFileParsingDiagnostics:Gr,getResolvedModuleWithFailedLookupLocationsFromCache:oa,getProjectReferences:on,getResolvedProjectReferences:Xa,getProjectReferenceRedirect:$t,getResolvedProjectReferenceToRedirect:yn,getResolvedProjectReferenceByPath:ao,forEachResolvedProjectReference:An,isSourceOfProjectReferenceRedirect:Mn,emitBuildInfo:ta,fileExists:mr,readFile:Ur,directoryExists:Nr,getSymlinkCache:au,realpath:(me=Rr.realpath)===null||me===void 0?void 0:me.bind(Rr),useCaseSensitiveFileNames:function(){return Rr.useCaseSensitiveFileNames()},getFileIncludeReasons:function(){return Er},structureIsReused:mi};return We(),Le==null||Le.forEach(function(Vr){switch(Vr.kind){case 1:return ei.add(Oo(Vr.file&&ro(Vr.file),Vr.fileProcessingReason,Vr.diagnostic,Vr.args||e.emptyArray));case 0:var fi=f(ro,Vr.reason),Ni=fi.file,rt=fi.pos,Tt=fi.end;return ei.add(e.createFileDiagnostic.apply(void 0,qe([Ni,e.Debug.checkDefined(rt),e.Debug.checkDefined(Tt)-rt,Vr.diagnostic],Vr.args||e.emptyArray,!1)));default:e.Debug.assertNever(Vr)}}),Ba(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),Vt;function St(Vr,fi,Ni){if(!Vr.length)return e.emptyArray;var rt=e.getNormalizedAbsolutePath(fi.originalFileName,li),Tt=Hi(fi);e.tracing===null||e.tracing===void 0||e.tracing.push("program","resolveModuleNamesWorker",{containingFileName:rt}),e.performance.mark("beforeResolveModule");var Dt=Ji(Vr,fi,rt,Ni,Tt);return e.performance.mark("afterResolveModule"),e.performance.measure("ResolveModule","beforeResolveModule","afterResolveModule"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),Dt}function Ci(Vr,fi){if(!Vr.length)return[];var Ni=e.isString(fi)?fi:e.getNormalizedAbsolutePath(fi.originalFileName,li),rt=e.isString(fi)?void 0:Hi(fi);e.tracing===null||e.tracing===void 0||e.tracing.push("program","resolveTypeReferenceDirectiveNamesWorker",{containingFileName:Ni}),e.performance.mark("beforeResolveTypeReference");var Tt=Ye(Vr,Ni,rt);return e.performance.mark("afterResolveTypeReference"),e.performance.measure("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),Tt}function Hi(Vr){var fi=yn(Vr.originalFileName);if(fi||!e.fileExtensionIsOneOf(Vr.originalFileName,[".d.ts",".d.cts",".d.mts"]))return fi;var Ni=Yi(Vr.path);if(Ni)return Ni;if(!(!Rr.realpath||!he.preserveSymlinks||!e.stringContains(Vr.originalFileName,e.nodeModulesPathPart))){var rt=Bt(Rr.realpath(Vr.originalFileName));return rt===Vr.path?void 0:Yi(rt)}}function Yi(Vr){var fi=Pa(Vr);if(e.isString(fi))return yn(fi);if(!!fi)return An(function(Ni){var rt=e.outFile(Ni.commandLine.options);if(!!rt)return Bt(rt)===Vr?Ni:void 0})}function yt(Vr,fi){return e.compareValues(gt(Vr),gt(fi))}function gt(Vr){if(e.containsPath(Kr,Vr.fileName,!1)){var fi=e.getBaseFileName(Vr.fileName);if(fi==="lib.d.ts"||fi==="lib.es6.d.ts")return 0;var Ni=e.removeSuffix(e.removePrefix(fi,"lib."),".d.ts"),rt=e.libs.indexOf(Ni);if(rt!==-1)return rt+1}return e.libs.length+2}function oa(Vr,fi,Ni){return aa&&e.resolveModuleNameFromCache(Vr,fi,aa,Ni)}function Bt(Vr){return e.toPath(Vr,li,ti)}function Pi(){if(Ir===void 0){var Vr=e.filter(cr,function(fi){return e.sourceFileMayBeEmitted(fi,Vt)});Ir=e.getCommonSourceDirectory(he,function(){return e.mapDefined(Vr,function(fi){return fi.isDeclarationFile?void 0:fi.fileName})},li,ti,function(fi){return Zt(Vr,fi)})}return Ir}function Oi(){var Vr;if(!Tr){Zn(),Tr=new e.Set;for(var fi=0,Ni=cr;fi<Ni.length;fi++){var rt=Ni[fi];(Vr=rt.classifiableNames)===null||Vr===void 0||Vr.forEach(function(Tt){return Tr.add(Tt)})}}return Tr}function wi(Vr,fi){if(mi===0&&!fi.ambientModuleNames.length)return St(Vr,fi,void 0);var Ni=Se&&Se.getSourceFile(fi.fileName);if(Ni!==fi&&fi.resolvedModules){for(var rt=[],Tt=0,Dt=0,jt=Vr;Dt<jt.length;Dt++){var na=jt[Dt],Za=fi.resolvedModules.get(na,Y(fi,Tt));Tt++,rt.push(Za)}return rt}for(var ya,ha,Ja,Eo={},Tt=0;Tt<Vr.length;Tt++){var na=Vr[Tt];if(fi===Ni&&!di(Ni.path)){var Hn=e.getResolvedModule(Ni,na,Y(Ni,Tt));if(Hn){e.isTraceEnabled(he,Rr)&&e.trace(Rr,Hn.packageId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2,na,e.getNormalizedAbsolutePath(fi.originalFileName,li),Hn.resolvedFileName,Hn.packageId&&e.packageIdToString(Hn.packageId)),(ha||(ha=new Array(Vr.length)))[Tt]=Hn,(Ja||(Ja=[])).push(na);continue}}var lo=!1;e.contains(fi.ambientModuleNames,na)?(lo=!0,e.isTraceEnabled(he,Rr)&&e.trace(Rr,e.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,na,e.getNormalizedAbsolutePath(fi.originalFileName,li))):lo=vr(na,Tt),lo?(ha||(ha=new Array(Vr.length)))[Tt]=Eo:(ya||(ya=[])).push(na)}var Kn=ya&&ya.length?St(ya,fi,Ja):e.emptyArray;if(!ha)return e.Debug.assert(Kn.length===Vr.length),Kn;for(var Te=0,Tt=0;Tt<ha.length;Tt++)ha[Tt]?ha[Tt]===Eo&&(ha[Tt]=void 0):(ha[Tt]=Kn[Te],Te++);return e.Debug.assert(Te===Kn.length),ha;function vr(Sr,Di){if(Di>=e.length(Ni==null?void 0:Ni.imports)+e.length(Ni==null?void 0:Ni.moduleAugmentations))return!1;var nt=e.getResolvedModule(Ni,Sr,Ni&&Y(Ni,Di)),_a=nt&&Se.getSourceFile(nt.resolvedFileName);if(nt&&_a)return!1;var Na=n.get(Sr);return Na?(e.isTraceEnabled(he,Rr)&&e.trace(Rr,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,Sr,Na),!0):!1}}function Qr(){return!ne(Se.getProjectReferences(),Se.getResolvedProjectReferences(),function(Vr,fi,Ni){var rt=(fi?fi.commandLine.projectReferences:ye)[Ni],Tt=ln(rt);return Vr?!Tt||Tt.sourceFile!==Vr.sourceFile||!e.arrayIsEqualTo(Vr.commandLine.fileNames,Tt.commandLine.fileNames):Tt!==void 0},function(Vr,fi){var Ni=fi?ao(fi.sourceFile.path).commandLine.projectReferences:ye;return!e.arrayIsEqualTo(Vr,Ni,e.projectReferenceIsEqualTo)})}function Ct(){var Vr;if(!Se)return 0;var fi=Se.getCompilerOptions();if(e.changesAffectModuleResolution(fi,he))return 0;var Ni=Se.getRootFileNames();if(!e.arrayIsEqualTo(Ni,er)||!Qr())return 0;ye&&(ze=ye.map(ln));var rt=[],Tt=[];if(mi=2,Se.getMissingFilePaths().some(function(oc){return Rr.fileExists(oc)}))return 0;var Dt=Se.getSourceFiles(),jt;(function(oc){oc[oc.Exists=0]="Exists",oc[oc.Modified=1]="Modified"})(jt||(jt={}));for(var na=new e.Map,Za=0,ya=Dt;Za<ya.length;Za++){var ha=ya[Za],Ja=Rr.getSourceFileByPath?Rr.getSourceFileByPath(ha.fileName,ha.resolvedPath,e.getEmitScriptTarget(he),void 0,si):Rr.getSourceFile(ha.fileName,e.getEmitScriptTarget(he),void 0,si);if(!Ja)return 0;e.Debug.assert(!Ja.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var Eo=void 0;if(ha.redirectInfo){if(Ja!==ha.redirectInfo.unredirected)return 0;Eo=!1,Ja=ha}else if(Se.redirectTargetsMap.has(ha.path)){if(Ja!==ha)return 0;Eo=!1}else Eo=Ja!==ha;Ja.path=ha.path,Ja.originalFileName=ha.originalFileName,Ja.resolvedPath=ha.resolvedPath,Ja.fileName=ha.fileName,Ja.impliedNodeFormat=ha.impliedNodeFormat;var Hn=Se.sourceFileToPackageName.get(ha.path);if(Hn!==void 0){var lo=na.get(Hn),Kn=Eo?1:0;if(lo!==void 0&&Kn===1||lo===1)return 0;na.set(Hn,Kn)}Eo?(e.arrayIsEqualTo(ha.libReferenceDirectives,Ja.libReferenceDirectives,Ei)||(mi=1),ha.hasNoDefaultLib!==Ja.hasNoDefaultLib&&(mi=1),e.arrayIsEqualTo(ha.referencedFiles,Ja.referencedFiles,Ei)||(mi=1),ca(Ja),e.arrayIsEqualTo(ha.imports,Ja.imports,Ki)||(mi=1),e.arrayIsEqualTo(ha.moduleAugmentations,Ja.moduleAugmentations,Ki)||(mi=1),(ha.flags&3145728)!==(Ja.flags&3145728)&&(mi=1),e.arrayIsEqualTo(ha.typeReferenceDirectives,Ja.typeReferenceDirectives,Ei)||(mi=1),Tt.push({oldFile:ha,newFile:Ja})):di(ha.path)&&(mi=1,Tt.push({oldFile:ha,newFile:Ja})),rt.push(Ja)}if(mi!==2)return mi;for(var Te=Tt.map(function(oc){return oc.oldFile}),vr=0,Sr=Dt;vr<Sr.length;vr++){var Di=Sr[vr];if(!e.contains(Te,Di))for(var nt=0,_a=Di.ambientModuleNames;nt<_a.length;nt++){var Na=_a[nt];n.set(Na,Di.fileName)}}for(var wn=0,no=Tt;wn<no.length;wn++){var Go=no[wn],ha=Go.oldFile,Ja=Go.newFile,vo=m(Ja),Vn=wi(vo,Ja),to=e.hasChangesInResolutions(vo,Vn,ha.resolvedModules,ha,e.moduleResolutionIsEqualTo);to?(mi=1,Ja.resolvedModules=e.zipToModeAwareCache(Ja,vo,Vn)):Ja.resolvedModules=ha.resolvedModules;var Jo=e.map(Ja.typeReferenceDirectives,function(fu){return e.toFileNameLowerCase(fu.fileName)}),Xo=Ci(Jo,Ja),Wr=e.hasChangesInResolutions(Jo,Xo,ha.resolvedTypeReferenceDirectiveNames,ha,e.typeDirectiveIsEqualTo);Wr?(mi=1,Ja.resolvedTypeReferenceDirectiveNames=e.zipToModeAwareCache(Ja,Jo,Xo)):Ja.resolvedTypeReferenceDirectiveNames=ha.resolvedTypeReferenceDirectiveNames}if(mi!==2)return mi;if(e.changesAffectingProgramStructure(fi,he)||((Vr=Rr.hasChangedAutomaticTypeDirectiveNames)===null||Vr===void 0?void 0:Vr.call(Rr)))return 1;v=Se.getMissingFilePaths(),e.Debug.assert(rt.length===Se.getSourceFiles().length);for(var Ws=0,nu=rt;Ws<nu.length;Ws++){var Ja=nu[Ws];Me.set(Ja.path,Ja)}var Tu=Se.getFilesByNameMap();return Tu.forEach(function(oc,Qc){if(!oc){Me.set(Qc,oc);return}if(oc.path===Qc){Se.isSourceFileFromExternalLibrary(oc)&&Jr.set(oc.path,!0);return}Me.set(Qc,Me.get(oc.path))}),cr=rt,Er=Se.getFileIncludeReasons(),Le=Se.getFileProcessingDiagnostics(),Ce=Se.getResolvedTypeReferenceDirectives(),_r=Se.sourceFileToPackageName,hr=Se.redirectTargetsMap,Dr=Se.usesUriStyleNodeCoreModules,2}function tt(Vr){return{getPrependNodes:qr,getCanonicalFileName:ti,getCommonSourceDirectory:Vt.getCommonSourceDirectory,getCompilerOptions:Vt.getCompilerOptions,getCurrentDirectory:function(){return li},getNewLine:function(){return Rr.getNewLine()},getSourceFile:Vt.getSourceFile,getSourceFileByPath:Vt.getSourceFileByPath,getSourceFiles:Vt.getSourceFiles,getLibFileFromReference:Vt.getLibFileFromReference,isSourceFileFromExternalLibrary:bn,getResolvedProjectReferenceToRedirect:yn,getProjectReferenceRedirect:$t,isSourceOfProjectReferenceRedirect:Mn,getSymlinkCache:au,writeFile:Vr||function(fi,Ni,rt,Tt,Dt){return Rr.writeFile(fi,Ni,rt,Tt,Dt)},isEmitBlocked:Vo,readFile:function(fi){return Rr.readFile(fi)},fileExists:function(fi){var Ni=Bt(fi);return ro(Ni)?!0:e.contains(v,Ni)?!1:Rr.fileExists(fi)},useCaseSensitiveFileNames:function(){return Rr.useCaseSensitiveFileNames()},getProgramBuildInfo:function(){return Vt.getProgramBuildInfo&&Vt.getProgramBuildInfo()},getSourceFileFromReference:function(fi,Ni){return Vt.getSourceFileFromReference(fi,Ni)},redirectTargetsMap:hr,getFileIncludeReasons:Vt.getFileIncludeReasons}}function ta(Vr){e.Debug.assert(!e.outFile(he)),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitBuildInfo",{},!0),e.performance.mark("beforeEmit");var fi=e.emitFiles(e.notImplementedResolver,tt(Vr),void 0,e.noTransformers,!1,!0);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),fi}function Xa(){return ze}function on(){return ye}function qr(){return oe(ye,function(Vr,fi){var Ni;return(Ni=ze[fi])===null||Ni===void 0?void 0:Ni.commandLine},function(Vr){var fi=Bt(Vr),Ni=ro(fi);return Ni?Ni.text:Me.has(fi)?void 0:Rr.readFile(fi)})}function bn(Vr){return!!Jr.get(Vr.path)}function Rn(Vr){if(Vr.hasNoDefaultLib)return!0;if(!he.noLib)return!1;var fi=Rr.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return he.lib?e.some(he.lib,function(Ni){return fi(Vr.fileName,et(Ni))}):fi(Vr.fileName,or())}function Sn(){return dr||(dr=e.createTypeChecker(Vt,!0))}function zn(){dr=void 0}function Zn(){return Br||(Br=e.createTypeChecker(Vt,!1))}function ho(Vr,fi,Ni,rt,Tt,Dt){e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emit",{path:Vr==null?void 0:Vr.path},!0);var jt=xo(function(){return Cn(Vt,Vr,fi,Ni,rt,Tt,Dt)});return e.tracing===null||e.tracing===void 0||e.tracing.pop(),jt}function Vo(Vr){return ft.has(Bt(Vr))}function Cn(Vr,fi,Ni,rt,Tt,Dt,jt){if(!jt){var na=U(Vr,fi,Ni,rt);if(na)return na}var Za=Sn().getEmitResolver(e.outFile(he)?void 0:fi,rt);e.performance.mark("beforeEmit");var ya=e.emitFiles(Za,tt(Ni),fi,e.getTransformers(he,Dt,Tt),Tt,!1,jt);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),ya}function go(Vr){return ro(Bt(Vr))}function ro(Vr){return Me.get(Vr)||void 0}function Ko(Vr,fi,Ni){return Vr?fi(Vr,Ni):e.sortAndDeduplicateDiagnostics(e.flatMap(Vt.getSourceFiles(),function(rt){return Ni&&Ni.throwIfCancellationRequested(),fi(rt,Ni)}))}function rs(Vr,fi){return Ko(Vr,wo,fi)}function rn(Vr,fi){return Ko(Vr,ds,fi)}function Do(Vr){var fi;return Vr?(fi=br.perFile)===null||fi===void 0?void 0:fi.get(Vr.path):br.allDiagnostics}function io(Vr,fi){return No(Vr,fi)}function pn(Vr){var fi;if(e.skipTypeChecking(Vr,he,Vt))return e.emptyArray;var Ni=ei.getDiagnostics(Vr.fileName);return!((fi=Vr.commentDirectives)===null||fi===void 0)&&fi.length?xr(Vr,Vr.commentDirectives,Ni).diagnostics:Ni}function Qn(Vr,fi){var Ni=Vt.getCompilerOptions();return!Vr||e.outFile(Ni)?Ka(Vr,fi):Ko(Vr,h,fi)}function wo(Vr){return e.isSourceFileJS(Vr)?(Vr.additionalSyntacticDiagnostics||(Vr.additionalSyntacticDiagnostics=Ht(Vr)),e.concatenate(Vr.additionalSyntacticDiagnostics,Vr.parseDiagnostics)):Vr.parseDiagnostics}function xo(Vr){try{return Vr()}catch(fi){throw fi instanceof e.OperationCanceledException&&(Br=void 0,dr=void 0),fi}}function ds(Vr,fi){return e.concatenate(z(No(Vr,fi),he),pn(Vr))}function No(Vr,fi){return Ke(Vr,fi,br,Ts)}function Ts(Vr,fi){return xo(function(){if(e.skipTypeChecking(Vr,he,Vt))return e.emptyArray;var Ni=Sn();e.Debug.assert(!!Vr.bindDiagnostics);var rt=Vr.scriptKind===1||Vr.scriptKind===2,Tt=rt&&e.isCheckJsEnabledForFile(Vr,he),Dt=e.isPlainJsFile(Vr,he.checkJs),jt=!!Vr.checkJsDirective&&Vr.checkJsDirective.enabled===!1,na=!jt&&(Vr.scriptKind===3||Vr.scriptKind===4||Vr.scriptKind===5||Dt||Tt||Vr.scriptKind===7),Za=na?Vr.bindDiagnostics:e.emptyArray,ya=na?Ni.getDiagnostics(Vr,fi):e.emptyArray;return Dt&&(Za=e.filter(Za,function(ha){return e.plainJSErrors.has(ha.code)}),ya=e.filter(ya,function(ha){return e.plainJSErrors.has(ha.code)})),Ms(Vr,na&&!Dt,Za,ya,Tt?Vr.jsDocDiagnostics:void 0)})}function Ms(Vr,fi){for(var Ni,rt=[],Tt=2;Tt<arguments.length;Tt++)rt[Tt-2]=arguments[Tt];var Dt=e.flatten(rt);if(!fi||!(!((Ni=Vr.commentDirectives)===null||Ni===void 0)&&Ni.length))return Dt;for(var jt=xr(Vr,Vr.commentDirectives,Dt),na=jt.diagnostics,Za=jt.directives,ya=0,ha=Za.getUnusedExpectations();ya<ha.length;ya++){var Ja=ha[ya];na.push(e.createDiagnosticForRange(Vr,Ja.range,e.Diagnostics.Unused_ts_expect_error_directive))}return na}function xr(Vr,fi,Ni){var rt=e.createCommentDirectivesMap(Vr,fi),Tt=Ni.filter(function(Dt){return ut(Dt,rt)===-1});return{diagnostics:Tt,directives:rt}}function bi(Vr,fi){return xo(function(){return Sn().getSuggestionDiagnostics(Vr,fi)})}function ut(Vr,fi){var Ni=Vr.file,rt=Vr.start;if(!Ni)return-1;for(var Tt=e.getLineStarts(Ni),Dt=e.computeLineAndCharacterOfPosition(Tt,rt).line-1;Dt>=0;){if(fi.markUsed(Dt))return Dt;var jt=Ni.text.slice(Tt[Dt],Tt[Dt+1]).trim();if(jt!==""&&!/^(\s*)\/\/(.*)$/.test(jt))return-1;Dt--}return-1}function Ht(Vr){return xo(function(){var fi=[];return Ni(Vr,Vr),e.forEachChildRecursively(Vr,Ni,rt),fi;function Ni(na,Za){switch(Za.kind){case 163:case 166:case 168:if(Za.questionToken===na)return fi.push(jt(na,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 167:case 170:case 171:case 172:case 212:case 255:case 213:case 253:if(Za.type===na)return fi.push(jt(na,e.Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(na.kind){case 266:if(na.isTypeOnly)return fi.push(jt(Za,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 271:if(na.isTypeOnly)return fi.push(jt(na,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 264:return fi.push(jt(na,e.Diagnostics.import_can_only_be_used_in_TypeScript_files)),"skip";case 270:if(na.isExportEquals)return fi.push(jt(na,e.Diagnostics.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 290:var ya=na;if(ya.token===117)return fi.push(jt(na,e.Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 257:var ha=e.tokenToString(118);return e.Debug.assertIsDefined(ha),fi.push(jt(na,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,ha)),"skip";case 260:var Ja=na.flags&16?e.tokenToString(142):e.tokenToString(141);return e.Debug.assertIsDefined(Ja),fi.push(jt(na,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,Ja)),"skip";case 258:return fi.push(jt(na,e.Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 259:var Eo=e.Debug.checkDefined(e.tokenToString(92));return fi.push(jt(na,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,Eo)),"skip";case 229:return fi.push(jt(na,e.Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 228:return fi.push(jt(na.type,e.Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 210:e.Debug.fail()}}function rt(na,Za){switch(Za.decorators===na&&!he.experimentalDecorators&&fi.push(jt(Za,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)),Za.kind){case 256:case 225:case 168:case 170:case 171:case 172:case 212:case 255:case 213:if(na===Za.typeParameters)return fi.push(Dt(na,e.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 236:if(na===Za.modifiers)return Tt(Za.modifiers,Za.kind===236),"skip";break;case 166:if(na===Za.modifiers){for(var ya=0,ha=na;ya<ha.length;ya++){var Ja=ha[ya];Ja.kind!==124&&fi.push(jt(Ja,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(Ja.kind)))}return"skip"}break;case 163:if(na===Za.modifiers)return fi.push(Dt(na,e.Diagnostics.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 207:case 208:case 227:case 278:case 279:case 209:if(na===Za.typeArguments)return fi.push(Dt(na,e.Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function Tt(na,Za){for(var ya=0,ha=na;ya<ha.length;ya++){var Ja=ha[ya];switch(Ja.kind){case 85:if(Za)continue;case 123:case 121:case 122:case 144:case 135:case 126:case 158:fi.push(jt(Ja,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(Ja.kind)));break;case 124:case 93:case 88:}}}function Dt(na,Za,ya,ha,Ja){var Eo=na.pos;return e.createFileDiagnostic(Vr,Eo,na.end-Eo,Za,ya,ha,Ja)}function jt(na,Za,ya,ha,Ja){return e.createDiagnosticForNodeInSourceFile(Vr,na,Za,ya,ha,Ja)}})}function Ka(Vr,fi){return Ke(Vr,fi,Pr,an)}function an(Vr,fi){return xo(function(){var Ni=Sn().getEmitResolver(Vr,fi);return e.getDeclarationDiagnostics(tt(e.noop),Ni,Vr)||e.emptyArray})}function Ke(Vr,fi,Ni,rt){var Tt,Dt=Vr?(Tt=Ni.perFile)===null||Tt===void 0?void 0:Tt.get(Vr.path):Ni.allDiagnostics;if(Dt)return Dt;var jt=rt(Vr,fi);return Vr?(Ni.perFile||(Ni.perFile=new e.Map)).set(Vr.path,jt):Ni.allDiagnostics=jt,jt}function h(Vr,fi){return Vr.isDeclarationFile?[]:Ka(Vr,fi)}function Ee(){return e.sortAndDeduplicateDiagnostics(e.concatenate(ei.getGlobalDiagnostics(),Re()))}function Re(){if(!he.configFile)return e.emptyArray;var Vr=ei.getDiagnostics(he.configFile.fileName);return An(function(fi){Vr=e.concatenate(Vr,ei.getDiagnostics(fi.sourceFile.fileName))}),Vr}function nr(){return er.length?e.sortAndDeduplicateDiagnostics(Sn().getGlobalDiagnostics().slice()):e.emptyArray}function Gr(){return we||e.emptyArray}function _i(Vr,fi,Ni,rt){so(e.normalizePath(Vr),fi,Ni,void 0,rt)}function Ei(Vr,fi){return Vr.fileName===fi.fileName}function Ki(Vr,fi){return Vr.kind===79?fi.kind===79&&Vr.escapedText===fi.escapedText:fi.kind===10&&Vr.text===fi.text}function Nt(Vr,fi){var Ni=e.factory.createStringLiteral(Vr),rt=e.factory.createImportDeclaration(void 0,void 0,void 0,Ni,void 0);return e.addEmitFlags(rt,67108864),e.setParent(Ni,rt),e.setParent(rt,fi),Ni.flags&=-9,rt.flags&=-9,Ni}function ca(Vr){if(Vr.imports)return;var fi=e.isSourceFileJS(Vr),Ni=e.isExternalModule(Vr),rt,Tt,Dt;if((he.isolatedModules||Ni)&&!Vr.isDeclarationFile){he.importHelpers&&(rt=[Nt(e.externalHelpersModuleNameText,Vr)]);var jt=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(he,Vr),he);jt&&(rt||(rt=[])).push(Nt(jt,Vr))}for(var na=0,Za=Vr.statements;na<Za.length;na++){var ya=Za[na];ha(ya,!1)}(Vr.flags&1048576||fi)&&Ja(Vr),Vr.imports=rt||e.emptyArray,Vr.moduleAugmentations=Tt||e.emptyArray,Vr.ambientModuleNames=Dt||e.emptyArray;return;function ha(Hn,lo){if(e.isAnyImportOrReExport(Hn)){var Kn=e.getExternalModuleName(Hn);Kn&&e.isStringLiteral(Kn)&&Kn.text&&(!lo||!e.isExternalModuleNameRelative(Kn.text))&&(e.setParentRecursive(Hn,!1),rt=e.append(rt,Kn),!Dr&&Cr===0&&!Vr.isDeclarationFile&&(Dr=e.startsWith(Kn.text,"node:")))}else if(e.isModuleDeclaration(Hn)&&e.isAmbientModule(Hn)&&(lo||e.hasSyntacticModifier(Hn,2)||Vr.isDeclarationFile)){Hn.name.parent=Hn;var Te=e.getTextOfIdentifierOrLiteral(Hn.name);if(Ni||lo&&!e.isExternalModuleNameRelative(Te))(Tt||(Tt=[])).push(Hn.name);else if(!lo){Vr.isDeclarationFile&&(Dt||(Dt=[])).push(Te);var vr=Hn.body;if(vr)for(var Sr=0,Di=vr.statements;Sr<Di.length;Sr++){var nt=Di[Sr];ha(nt,!0)}}}}function Ja(Hn){for(var lo=/import|require/g;lo.exec(Hn.text)!==null;){var Kn=Eo(Hn,lo.lastIndex);fi&&e.isRequireCall(Kn,!0)||e.isImportCall(Kn)&&Kn.arguments.length>=1&&e.isStringLiteralLike(Kn.arguments[0])?(e.setParentRecursive(Kn,!1),rt=e.append(rt,Kn.arguments[0])):e.isLiteralImportTypeNode(Kn)&&(e.setParentRecursive(Kn,!1),rt=e.append(rt,Kn.argument.literal))}}function Eo(Hn,lo){for(var Kn=Hn,Te=function(Sr){if(Sr.pos<=lo&&(lo<Sr.end||lo===Sr.end&&Sr.kind===1))return Sr};;){var vr=fi&&e.hasJSDocNodes(Kn)&&e.forEach(Kn.jsDoc,Te)||e.forEachChild(Kn,Te);if(!vr)return Kn;Kn=vr}}}function Fa(Vr){var fi=e.toFileNameLowerCase(Vr.fileName),Ni=e.libMap.get(fi);if(Ni)return go(et(Ni))}function Ta(Vr,fi){return In(O(fi.fileName,Vr.fileName),go)}function In(Vr,fi,Ni,rt){if(e.hasExtension(Vr)){var Tt=Rr.getCanonicalFileName(Vr);if(!he.allowNonTsExtensions&&!e.forEach(e.flatten(qi),function(ya){return e.fileExtensionIs(Tt,ya)})){Ni&&(e.hasJSFileExtension(Tt)?Ni(e.Diagnostics.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,Vr):Ni(e.Diagnostics.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,Vr,"'"+e.flatten(Si).join("', '")+"'"));return}var Dt=fi(Vr);if(Ni)if(Dt)ee(rt)&&Tt===Rr.getCanonicalFileName(ro(rt.file).fileName)&&Ni(e.Diagnostics.A_file_cannot_have_a_reference_to_itself);else{var jt=$t(Vr);jt?Ni(e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,jt,Vr):Ni(e.Diagnostics.File_0_not_found,Vr)}return Dt}else{var na=he.allowNonTsExtensions&&fi(Vr);if(na)return na;if(Ni&&he.allowNonTsExtensions){Ni(e.Diagnostics.File_0_not_found,Vr);return}var Za=e.forEach(Si[0],function(ya){return fi(Vr+ya)});return Ni&&!Za&&Ni(e.Diagnostics.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,Vr,"'"+e.flatten(Si).join("', '")+"'"),Za}}function so(Vr,fi,Ni,rt,Tt){In(Vr,function(Dt){return Os(Dt,fi,Ni,Tt,rt)},function(Dt){for(var jt=[],na=1;na<arguments.length;na++)jt[na-1]=arguments[na];return jr(void 0,Tt,Dt,jt)},Tt)}function as(Vr,fi){return so(Vr,!1,!1,void 0,fi)}function Ho(Vr,fi,Ni){var rt=!ee(Ni)&&e.some(Er.get(fi.path),ee);rt?jr(fi,Ni,e.Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[fi.fileName,Vr]):jr(fi,Ni,e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[Vr,fi.fileName])}function Ds(Vr,fi,Ni,rt,Tt,Dt){var jt=Object.create(Vr);return jt.fileName=Ni,jt.path=rt,jt.resolvedPath=Tt,jt.originalFileName=Dt,jt.redirectInfo={redirectTarget:Vr,unredirected:fi},Jr.set(rt,Cr>0),Object.defineProperties(jt,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(na){this.redirectInfo.redirectTarget.id=na}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(na){this.redirectInfo.redirectTarget.symbol=na}}}),jt}function Os(Vr,fi,Ni,rt,Tt){e.tracing===null||e.tracing===void 0||e.tracing.push("program","findSourceFile",{fileName:Vr,isDefaultLib:fi||void 0,fileIncludeKind:e.FileIncludeKind[rt.kind]});var Dt=mc(Vr,fi,Ni,rt,Tt);return e.tracing===null||e.tracing===void 0||e.tracing.pop(),Dt}function mc(Vr,fi,Ni,rt,Tt){var Dt=Bt(Vr);if(Xr){var jt=Pa(Dt);if(!jt&&Rr.realpath&&he.preserveSymlinks&&e.isDeclarationFileName(Vr)&&e.stringContains(Vr,e.nodeModulesPathPart)){var na=Bt(Rr.realpath(Vr));na!==Dt&&(jt=Pa(na))}if(jt){var Za=e.isString(jt)?Os(jt,fi,Ni,rt,Tt):void 0;return Za&&Mi(Za,Dt,void 0),Za}}var ya=Vr;if(Me.has(Dt)){var ha=Me.get(Dt);if(Hs(ha||void 0,rt),ha&&he.forceConsistentCasingInFileNames){var Ja=ha.fileName,Eo=Bt(Ja)!==Bt(Vr);Eo&&(Vr=$t(Vr)||Vr);var Hn=e.getNormalizedAbsolutePathWithoutRoot(Ja,li),lo=e.getNormalizedAbsolutePathWithoutRoot(Vr,li);Hn!==lo&&Ho(Vr,ha,rt)}return ha&&Jr.get(ha.path)&&Cr===0?(Jr.set(ha.path,!1),he.noResolve||(co(ha,fi),De(ha)),he.noLib||je(ha),Lr.set(ha.path,!1),mt(ha)):ha&&Lr.get(ha.path)&&Cr<Xe&&(Lr.set(ha.path,!1),mt(ha)),ha||void 0}var Kn;if(ee(rt)&&!Xr){var Te=ga(Vr);if(Te){if(e.outFile(Te.commandLine.options))return;var vr=xn(Te,Vr);Vr=vr,Kn=Bt(vr)}}var Sr=Rr.getSourceFile(Vr,e.getEmitScriptTarget(he),function(no){return jr(void 0,rt,e.Diagnostics.Cannot_read_file_0_Colon_1,[Vr,no])},si);if(Tt){var Di=e.packageIdToString(Tt),nt=Qe.get(Di);if(nt){var _a=Ds(nt,Sr,Vr,Dt,Bt(Vr),ya);return hr.add(nt.path,Vr),Mi(_a,Dt,Kn),Hs(_a,rt),_r.set(Dt,e.packageIdToPackageName(Tt)),Fe.push(_a),_a}else Sr&&(Qe.set(Di,Sr),_r.set(Dt,e.packageIdToPackageName(Tt)))}if(Mi(Sr,Dt,Kn),Sr){if(Jr.set(Dt,Cr>0),Sr.fileName=Vr,Sr.path=Dt,Sr.resolvedPath=Bt(Vr),Sr.originalFileName=ya,Sr.impliedNodeFormat=l(Sr.resolvedPath,aa==null?void 0:aa.getPackageJsonInfoCache(),Rr,he),Hs(Sr,rt),Rr.useCaseSensitiveFileNames()){var Na=e.toFileNameLowerCase(Dt),wn=xe.get(Na);wn?Ho(Vr,wn,rt):xe.set(Na,Sr)}be=be||Sr.hasNoDefaultLib&&!Ni,he.noResolve||(co(Sr,fi),De(Sr)),he.noLib||je(Sr),mt(Sr),fi?ge.push(Sr):Fe.push(Sr)}return Sr}function Hs(Vr,fi){Vr&&Er.add(Vr.path,fi)}function Mi(Vr,fi,Ni){Ni?(Me.set(Ni,Vr),Me.set(fi,Vr||!1)):Me.set(fi,Vr)}function $t(Vr){var fi=ga(Vr);return fi&&xn(fi,Vr)}function ga(Vr){if(!(!ze||!ze.length||e.fileExtensionIs(Vr,".d.ts")||e.fileExtensionIs(Vr,".json")))return yn(Vr)}function xn(Vr,fi){var Ni=e.outFile(Vr.commandLine.options);return Ni?e.changeExtension(Ni,".d.ts"):e.getOutputDeclarationFileName(fi,Vr.commandLine,!Rr.useCaseSensitiveFileNames())}function yn(Vr){Oe===void 0&&(Oe=new e.Map,An(function(Ni){Bt(he.configFilePath)!==Ni.sourceFile.path&&Ni.commandLine.fileNames.forEach(function(rt){return Oe.set(Bt(rt),Ni.sourceFile.path)})}));var fi=Oe.get(Bt(Vr));return fi&&ao(fi)}function An(Vr){return e.forEachResolvedProjectReference(ze,Vr)}function Pa(Vr){if(!!e.isDeclarationFileName(Vr))return Fr===void 0&&(Fr=new e.Map,An(function(fi){var Ni=e.outFile(fi.commandLine.options);if(Ni){var rt=e.changeExtension(Ni,".d.ts");Fr.set(Bt(rt),!0)}else{var Tt=e.memoize(function(){return e.getCommonSourceDirectoryOfConfig(fi.commandLine,!Rr.useCaseSensitiveFileNames())});e.forEach(fi.commandLine.fileNames,function(Dt){if(!e.fileExtensionIs(Dt,".d.ts")&&!e.fileExtensionIs(Dt,".json")){var jt=e.getOutputDeclarationFileName(Dt,fi.commandLine,!Rr.useCaseSensitiveFileNames(),Tt);Fr.set(Bt(jt),Dt)}})}})),Fr.get(Vr)}function Mn(Vr){return Xr&&!!yn(Vr)}function ao(Vr){if(!!Je)return Je.get(Vr)||void 0}function co(Vr,fi){e.forEach(Vr.referencedFiles,function(Ni,rt){so(O(Ni.fileName,Vr.fileName),fi,!1,void 0,{kind:e.FileIncludeKind.ReferenceFile,file:Vr.path,index:rt})})}function De(Vr){var fi=e.map(Vr.typeReferenceDirectives,function(na){return e.toFileNameLowerCase(na.fileName)});if(!!fi)for(var Ni=Ci(fi,Vr),rt=0;rt<fi.length;rt++){var Tt=Vr.typeReferenceDirectives[rt],Dt=Ni[rt],jt=e.toFileNameLowerCase(Tt.fileName);e.setResolvedTypeReferenceDirective(Vr,jt,Dt),zr(jt,Dt,{kind:e.FileIncludeKind.TypeReferenceDirective,file:Vr.path,index:rt})}}function zr(Vr,fi,Ni){e.tracing===null||e.tracing===void 0||e.tracing.push("program","processTypeReferenceDirective",{directive:Vr,hasResolved:!!wi,refKind:Ni.kind,refPath:ee(Ni)?Ni.file:void 0}),xi(Vr,fi,Ni),e.tracing===null||e.tracing===void 0||e.tracing.pop()}function xi(Vr,fi,Ni){var rt=Ce.get(Vr);if(!(rt&&rt.primary)){var Tt=!0;if(fi){if(fi.isExternalLibraryImport&&Cr++,fi.primary)so(fi.resolvedFileName,!1,!1,fi.packageId,Ni);else if(rt){if(fi.resolvedFileName!==rt.resolvedFileName){var Dt=Rr.readFile(fi.resolvedFileName),jt=go(rt.resolvedFileName);Dt!==jt.text&&jr(jt,Ni,e.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[Vr,fi.resolvedFileName,rt.resolvedFileName])}Tt=!1}else so(fi.resolvedFileName,!1,!1,fi.packageId,Ni);fi.isExternalLibraryImport&&Cr--}else jr(void 0,Ni,e.Diagnostics.Cannot_find_type_definition_file_for_0,[Vr]);Tt&&Ce.set(Vr,fi)}}function et(Vr){for(var fi=Vr.split("."),Ni=fi[1],rt=2;fi[rt]&&fi[rt]!=="d";)Ni+=(rt===2?"/":"-")+fi[rt],rt++;var Tt=e.combinePaths(li,"__lib_node_modules_lookup_".concat(Vr,"__.ts")),Dt=e.resolveModuleName("@typescript/lib-"+Ni,Tt,{moduleResolution:e.ModuleResolutionKind.NodeJs},Rr,aa);return Dt!=null&&Dt.resolvedModule?Dt.resolvedModule.resolvedFileName:e.combinePaths(Kr,Vr)}function je(Vr){e.forEach(Vr.libReferenceDirectives,function(fi,Ni){var rt=e.toFileNameLowerCase(fi.fileName),Tt=e.libMap.get(rt);if(Tt)_i(et(Tt),!0,!0,{kind:e.FileIncludeKind.LibReferenceDirective,file:Vr.path,index:Ni});else{var Dt=e.removeSuffix(e.removePrefix(rt,"lib."),".d.ts"),jt=e.getSpellingSuggestion(Dt,e.libs,e.identity),na=jt?e.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1:e.Diagnostics.Cannot_find_lib_definition_for_0;(Le||(Le=[])).push({kind:0,reason:{kind:e.FileIncludeKind.LibReferenceDirective,file:Vr.path,index:Ni},diagnostic:na,args:[rt,jt]})}})}function ti(Vr){return Rr.getCanonicalFileName(Vr)}function mt(Vr){var fi;if(ca(Vr),Vr.imports.length||Vr.moduleAugmentations.length){var Ni=m(Vr),rt=wi(Ni,Vr);e.Debug.assert(rt.length===Ni.length);for(var Tt=(Xr?(fi=Hi(Vr))===null||fi===void 0?void 0:fi.commandLine.options:void 0)||he,Dt=0;Dt<Ni.length;Dt++){var jt=rt[Dt];if(e.setResolvedModule(Vr,Ni[Dt],jt,Y(Vr,Dt)),!!jt){var na=jt.isExternalLibraryImport,Za=!e.resolutionExtensionIsTSOrJson(jt.extension),ya=na&&Za,ha=jt.resolvedFileName;na&&Cr++;var Ja=ya&&Cr>Xe,Eo=ha&&!ce(Tt,jt)&&!Tt.noResolve&&Dt<Vr.imports.length&&!Ja&&!(Za&&!e.getAllowJSCompilerOption(Tt))&&(e.isInJSFile(Vr.imports[Dt])||!(Vr.imports[Dt].flags&4194304));Ja?Lr.set(Vr.path,!0):Eo&&Os(ha,!1,!1,{kind:e.FileIncludeKind.Import,file:Vr.path,index:Dt},jt.packageId),na&&Cr--}}}else Vr.resolvedModules=void 0}function Zt(Vr,fi){for(var Ni=!0,rt=Rr.getCanonicalFileName(e.getNormalizedAbsolutePath(fi,li)),Tt=0,Dt=Vr;Tt<Dt.length;Tt++){var jt=Dt[Tt];if(!jt.isDeclarationFile){var na=Rr.getCanonicalFileName(e.getNormalizedAbsolutePath(jt.fileName,li));na.indexOf(rt)!==0&&(is(jt,e.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[jt.fileName,fi]),Ni=!1)}}return Ni}function ln(Vr){Je||(Je=new e.Map);var fi=ve(Vr),Ni=Bt(fi),rt=Je.get(Ni);if(rt!==void 0)return rt||void 0;var Tt,Dt;if(Rr.getParsedCommandLine){if(Tt=Rr.getParsedCommandLine(fi),!Tt){Mi(void 0,Ni,void 0),Je.set(Ni,!1);return}Dt=e.Debug.checkDefined(Tt.options.configFile),e.Debug.assert(!Dt.path||Dt.path===Ni),Mi(Dt,Ni,void 0)}else{var jt=e.getNormalizedAbsolutePath(e.getDirectoryPath(fi),Rr.getCurrentDirectory());if(Dt=Rr.getSourceFile(fi,100),Mi(Dt,Ni,void 0),Dt===void 0){Je.set(Ni,!1);return}Tt=e.parseJsonSourceFileConfigFileContent(Dt,ci,jt,void 0,fi)}Dt.fileName=fi,Dt.path=Ni,Dt.resolvedPath=Ni,Dt.originalFileName=fi;var na={commandLine:Tt,sourceFile:Dt};return Je.set(Ni,na),Tt.projectReferences&&(na.references=Tt.projectReferences.map(ln)),na}function Ba(){var Vr=e.stringContains(e.version,"-dev")||e.stringContains(e.version,"-insiders");Vr||(e.getEmitModuleKind(he)===e.ModuleKind.Node12?Xc("module",e.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next,"module","node12"):e.getEmitModuleKind(he)===e.ModuleKind.NodeNext?Xc("module",e.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next,"module","nodenext"):e.getEmitModuleResolutionKind(he)===e.ModuleResolutionKind.Node12?Xc("moduleResolution",e.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next,"moduleResolution","node12"):e.getEmitModuleResolutionKind(he)===e.ModuleResolutionKind.NodeNext&&Xc("moduleResolution",e.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next,"moduleResolution","nodenext")),he.strictPropertyInitialization&&!e.getStrictOptionValue(he,"strictNullChecks")&&uo(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),he.exactOptionalPropertyTypes&&!e.getStrictOptionValue(he,"strictNullChecks")&&uo(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),he.isolatedModules&&(he.out&&uo(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),he.outFile&&uo(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),he.inlineSourceMap&&(he.sourceMap&&uo(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),he.mapRoot&&uo(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),he.composite&&(he.declaration===!1&&uo(e.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),he.incremental===!1&&uo(e.Diagnostics.Composite_projects_may_not_disable_incremental_compilation,"declaration"));var fi=e.outFile(he);if(he.tsBuildInfoFile?e.isIncrementalCompilation(he)||uo(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):he.incremental&&!fi&&!he.configFilePath&&ei.add(e.createCompilerDiagnostic(e.Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),nc(),he.composite)for(var Ni=new e.Set(er.map(Bt)),rt=0,Tt=cr;rt<Tt.length;rt++){var Dt=Tt[rt];e.sourceFileMayBeEmitted(Dt,Vt)&&!Ni.has(Dt.path)&&is(Dt,e.Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[Dt.fileName,he.configFilePath||""])}if(he.paths){for(var jt in he.paths)if(!!e.hasProperty(he.paths,jt))if(e.hasZeroOrOneAsteriskCharacter(jt)||Xs(!0,jt,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,jt),e.isArray(he.paths[jt])){var na=he.paths[jt].length;na===0&&Xs(!1,jt,e.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,jt);for(var Za=0;Za<na;Za++){var ya=he.paths[jt][Za],ha=typeof ya;ha==="string"?(e.hasZeroOrOneAsteriskCharacter(ya)||ns(jt,Za,e.Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,ya,jt),!he.baseUrl&&!e.pathIsRelative(ya)&&!e.pathIsAbsolute(ya)&&ns(jt,Za,e.Diagnostics.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):ns(jt,Za,e.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,ya,jt,ha)}}else Xs(!1,jt,e.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,jt)}!he.sourceMap&&!he.inlineSourceMap&&(he.inlineSources&&uo(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),he.sourceRoot&&uo(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),he.out&&he.outFile&&uo(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile"),he.mapRoot&&!(he.sourceMap||he.declarationMap)&&uo(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),he.declarationDir&&(e.getEmitDeclarations(he)||uo(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),fi&&uo(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",he.out?"out":"outFile")),he.declarationMap&&!e.getEmitDeclarations(he)&&uo(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),he.lib&&he.noLib&&uo(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),he.noImplicitUseStrict&&e.getStrictOptionValue(he,"alwaysStrict")&&uo(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var Ja=e.getEmitScriptTarget(he),Eo=e.find(cr,function(Di){return e.isExternalModule(Di)&&!Di.isDeclarationFile});if(he.isolatedModules){he.module===e.ModuleKind.None&&Ja<2&&uo(e.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),he.preserveConstEnums===!1&&uo(e.Diagnostics.Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled,"preserveConstEnums","isolatedModules");var Hn=e.find(cr,function(Di){return!e.isExternalModule(Di)&&!e.isSourceFileJS(Di)&&!Di.isDeclarationFile&&Di.scriptKind!==6});if(Hn){var lo=e.getErrorSpanForNode(Hn,Hn);ei.add(e.createFileDiagnostic(Hn,lo.start,lo.length,e.Diagnostics._0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module,e.getBaseFileName(Hn.fileName)))}}else if(Eo&&Ja<2&&he.module===e.ModuleKind.None){var lo=e.getErrorSpanForNode(Eo,Eo.externalModuleIndicator);ei.add(e.createFileDiagnostic(Eo,lo.start,lo.length,e.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(fi&&!he.emitDeclarationOnly){if(he.module&&!(he.module===e.ModuleKind.AMD||he.module===e.ModuleKind.System))uo(e.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,he.out?"out":"outFile","module");else if(he.module===void 0&&Eo){var lo=e.getErrorSpanForNode(Eo,Eo.externalModuleIndicator);ei.add(e.createFileDiagnostic(Eo,lo.start,lo.length,e.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,he.out?"out":"outFile"))}}if(he.resolveJsonModule&&(e.getEmitModuleResolutionKind(he)!==e.ModuleResolutionKind.NodeJs&&e.getEmitModuleResolutionKind(he)!==e.ModuleResolutionKind.Node12&&e.getEmitModuleResolutionKind(he)!==e.ModuleResolutionKind.NodeNext?uo(e.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy,"resolveJsonModule"):e.hasJsonModuleEmitEnabled(he)||uo(e.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),he.outDir||he.rootDir||he.sourceRoot||he.mapRoot){var Kn=Pi();he.outDir&&Kn===""&&cr.some(function(Di){return e.getRootLength(Di.fileName)>1})&&uo(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(he.useDefineForClassFields&&Ja===0&&uo(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),he.checkJs&&!e.getAllowJSCompilerOption(he)&&ei.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),he.emitDeclarationOnly&&(e.getEmitDeclarations(he)||uo(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),he.noEmit&&uo(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),he.emitDecoratorMetadata&&!he.experimentalDecorators&&uo(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),he.jsxFactory?(he.reactNamespace&&uo(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(he.jsx===4||he.jsx===5)&&uo(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",e.inverseJsxOptionMap.get(""+he.jsx)),e.parseIsolatedEntityName(he.jsxFactory,Ja)||Xc("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,he.jsxFactory)):he.reactNamespace&&!e.isIdentifierText(he.reactNamespace,Ja)&&Xc("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,he.reactNamespace),he.jsxFragmentFactory&&(he.jsxFactory||uo(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(he.jsx===4||he.jsx===5)&&uo(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",e.inverseJsxOptionMap.get(""+he.jsx)),e.parseIsolatedEntityName(he.jsxFragmentFactory,Ja)||Xc("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,he.jsxFragmentFactory)),he.reactNamespace&&(he.jsx===4||he.jsx===5)&&uo(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",e.inverseJsxOptionMap.get(""+he.jsx)),he.jsxImportSource&&he.jsx===2&&uo(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",e.inverseJsxOptionMap.get(""+he.jsx)),he.preserveValueImports&&e.getEmitModuleKind(he)<e.ModuleKind.ES2015&&Xc("importsNotUsedAsValues",e.Diagnostics.Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later),!he.noEmit&&!he.suppressOutputPathCheck){var Te=tt(),vr=new e.Set;e.forEachEmittedFile(Te,function(Di){he.emitDeclarationOnly||Sr(Di.jsFilePath,vr),Sr(Di.declarationFilePath,vr)})}function Sr(Di,nt){if(Di){var _a=Bt(Di);if(Me.has(_a)){var Na=void 0;he.configFilePath||(Na=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)),Na=e.chainDiagnosticMessages(Na,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,Di),qa(Di,e.createCompilerDiagnosticFromMessageChain(Na))}var wn=Rr.useCaseSensitiveFileNames()?_a:e.toFileNameLowerCase(_a);nt.has(wn)?qa(Di,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,Di)):nt.add(wn)}}}function Oo(Vr,fi,Ni,rt){var Tt,Dt,jt,na=ee(fi)?fi:void 0;Vr&&((Tt=Er.get(Vr.path))===null||Tt===void 0||Tt.forEach(Eo)),fi&&Eo(fi),na&&(Dt==null?void 0:Dt.length)===1&&(Dt=void 0);var Za=na&&f(ro,na),ya=Dt&&e.chainDiagnosticMessages(Dt,e.Diagnostics.The_file_is_in_the_program_because_Colon),ha=Vr&&e.explainIfFileIsRedirect(Vr),Ja=e.chainDiagnosticMessages.apply(void 0,qe([ha?ya?qe([ya],ha,!0):ha:ya,Ni],rt||e.emptyArray,!1));return Za&&A(Za)?e.createFileDiagnosticFromMessageChain(Za.file,Za.pos,Za.end-Za.pos,Ja,jt):e.createCompilerDiagnosticFromMessageChain(Ja,jt);function Eo(Hn){(Dt||(Dt=[])).push(e.fileIncludeReasonToDiagnostics(Vt,Hn)),!na&&ee(Hn)?na=Hn:na!==Hn&&(jt=e.append(jt,hc(Hn))),Hn===fi&&(fi=void 0)}}function jr(Vr,fi,Ni,rt){(Le||(Le=[])).push({kind:1,file:Vr&&Vr.path,fileProcessingReason:fi,diagnostic:Ni,args:rt})}function is(Vr,fi,Ni){ei.add(Oo(Vr,void 0,fi,Ni))}function hc(Vr){if(ee(Vr)){var fi=f(ro,Vr),Ni;switch(Vr.kind){case e.FileIncludeKind.Import:Ni=e.Diagnostics.File_is_included_via_import_here;break;case e.FileIncludeKind.ReferenceFile:Ni=e.Diagnostics.File_is_included_via_reference_here;break;case e.FileIncludeKind.TypeReferenceDirective:Ni=e.Diagnostics.File_is_included_via_type_library_reference_here;break;case e.FileIncludeKind.LibReferenceDirective:Ni=e.Diagnostics.File_is_included_via_library_reference_here;break;default:e.Debug.assertNever(Vr)}return A(fi)?e.createFileDiagnostic(fi.file,fi.pos,fi.end-fi.pos,Ni):void 0}if(!!he.configFile){var rt,Tt;switch(Vr.kind){case e.FileIncludeKind.RootFile:if(!he.configFile.configFileSpecs)return;var Dt=e.getNormalizedAbsolutePath(er[Vr.index],li),jt=e.getMatchedFileSpec(Vt,Dt);if(jt){rt=e.getTsConfigPropArrayElementValue(he.configFile,"files",jt),Tt=e.Diagnostics.File_is_matched_by_files_list_specified_here;break}var na=e.getMatchedIncludeSpec(Vt,Dt);if(!na)return;rt=e.getTsConfigPropArrayElementValue(he.configFile,"include",na),Tt=e.Diagnostics.File_is_matched_by_include_pattern_specified_here;break;case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var Za=e.Debug.checkDefined(ze==null?void 0:ze[Vr.index]),ya=ne(ye,ze,function(lo,Kn,Te){return lo===Za?{sourceFile:(Kn==null?void 0:Kn.sourceFile)||he.configFile,index:Te}:void 0});if(!ya)return;var ha=ya.sourceFile,Ja=ya.index,Eo=e.firstDefined(e.getTsConfigPropArray(ha,"references"),function(lo){return e.isArrayLiteralExpression(lo.initializer)?lo.initializer:void 0});return Eo&&Eo.elements.length>Ja?e.createDiagnosticForNodeInSourceFile(ha,Eo.elements[Ja],Vr.kind===e.FileIncludeKind.OutputFromProjectReference?e.Diagnostics.File_is_output_from_referenced_project_specified_here:e.Diagnostics.File_is_source_from_referenced_project_specified_here):void 0;case e.FileIncludeKind.AutomaticTypeDirectiveFile:if(!he.types)return;rt=Qu("types",Vr.typeReference),Tt=e.Diagnostics.File_is_entry_point_of_type_library_specified_here;break;case e.FileIncludeKind.LibFile:if(Vr.index!==void 0){rt=Qu("lib",he.lib[Vr.index]),Tt=e.Diagnostics.File_is_library_specified_here;break}var Hn=e.forEachEntry(e.targetOptionDeclaration.type,function(lo,Kn){return lo===e.getEmitScriptTarget(he)?Kn:void 0});rt=Hn?Bc("target",Hn):void 0,Tt=e.Diagnostics.File_is_default_library_for_target_specified_here;break;default:e.Debug.assertNever(Vr)}return rt&&e.createDiagnosticForNodeInSourceFile(he.configFile,rt,Tt)}}function nc(){var Vr=he.suppressOutputPathCheck?void 0:e.getTsBuildInfoEmitOutputFilePath(he);ne(ye,ze,function(fi,Ni,rt){var Tt=(Ni?Ni.commandLine.projectReferences:ye)[rt],Dt=Ni&&Ni.sourceFile;if(!fi){Ru(Dt,rt,e.Diagnostics.File_0_not_found,Tt.path);return}var jt=fi.commandLine.options;if(!jt.composite||jt.noEmit){var na=Ni?Ni.commandLine.fileNames:er;na.length&&(jt.composite||Ru(Dt,rt,e.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,Tt.path),jt.noEmit&&Ru(Dt,rt,e.Diagnostics.Referenced_project_0_may_not_disable_emit,Tt.path))}if(Tt.prepend){var Za=e.outFile(jt);Za?Rr.fileExists(Za)||Ru(Dt,rt,e.Diagnostics.Output_file_0_from_project_1_does_not_exist,Za,Tt.path):Ru(Dt,rt,e.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,Tt.path)}!Ni&&Vr&&Vr===e.getTsBuildInfoEmitOutputFilePath(jt)&&(Ru(Dt,rt,e.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Vr,Tt.path),ft.set(Bt(Vr),!0))})}function ns(Vr,fi,Ni,rt,Tt,Dt){for(var jt=!0,na=uu(),Za=0,ya=na;Za<ya.length;Za++){var ha=ya[Za];if(e.isObjectLiteralExpression(ha.initializer))for(var Ja=0,Eo=e.getPropertyAssignment(ha.initializer,Vr);Ja<Eo.length;Ja++){var Hn=Eo[Ja],lo=Hn.initializer;e.isArrayLiteralExpression(lo)&&lo.elements.length>fi&&(ei.add(e.createDiagnosticForNodeInSourceFile(he.configFile,lo.elements[fi],Ni,rt,Tt,Dt)),jt=!1)}}jt&&ei.add(e.createCompilerDiagnostic(Ni,rt,Tt,Dt))}function Xs(Vr,fi,Ni,rt){for(var Tt=!0,Dt=uu(),jt=0,na=Dt;jt<na.length;jt++){var Za=na[jt];e.isObjectLiteralExpression(Za.initializer)&&lu(Za.initializer,Vr,fi,void 0,Ni,rt)&&(Tt=!1)}Tt&&ei.add(e.createCompilerDiagnostic(Ni,rt))}function rc(Vr){var fi=Yu();return fi&&e.getPropertyAssignment(fi,Vr)}function uu(){return rc("paths")||e.emptyArray}function Bc(Vr,fi){var Ni=rc(Vr);return Ni&&e.firstDefined(Ni,function(rt){return e.isStringLiteral(rt.initializer)&&rt.initializer.text===fi?rt.initializer:void 0})}function Qu(Vr,fi){var Ni=Yu();return Ni&&e.getPropertyArrayElementValue(Ni,Vr,fi)}function uo(Vr,fi,Ni,rt){Dc(!0,fi,Ni,Vr,fi,Ni,rt)}function Xc(Vr,fi,Ni,rt){Dc(!1,Vr,void 0,fi,Ni,rt)}function Ru(Vr,fi,Ni,rt,Tt){var Dt=e.firstDefined(e.getTsConfigPropArray(Vr||he.configFile,"references"),function(jt){return e.isArrayLiteralExpression(jt.initializer)?jt.initializer:void 0});Dt&&Dt.elements.length>fi?ei.add(e.createDiagnosticForNodeInSourceFile(Vr||he.configFile,Dt.elements[fi],Ni,rt,Tt)):ei.add(e.createCompilerDiagnostic(Ni,rt,Tt))}function Dc(Vr,fi,Ni,rt,Tt,Dt,jt){var na=Yu(),Za=!na||!lu(na,Vr,fi,Ni,rt,Tt,Dt,jt);Za&&ei.add(e.createCompilerDiagnostic(rt,Tt,Dt,jt))}function Yu(){if(bt===void 0){bt=!1;var Vr=e.getTsConfigObjectLiteralExpression(he.configFile);if(Vr)for(var fi=0,Ni=e.getPropertyAssignment(Vr,"compilerOptions");fi<Ni.length;fi++){var rt=Ni[fi];if(e.isObjectLiteralExpression(rt.initializer)){bt=rt.initializer;break}}}return bt||void 0}function lu(Vr,fi,Ni,rt,Tt,Dt,jt,na){for(var Za=e.getPropertyAssignment(Vr,Ni,rt),ya=0,ha=Za;ya<ha.length;ya++){var Ja=ha[ya];ei.add(e.createDiagnosticForNodeInSourceFile(he.configFile,fi?Ja.name:Ja.initializer,Tt,Dt,jt,na))}return!!Za.length}function qa(Vr,fi){ft.set(Bt(Vr),!0),ei.add(fi)}function Bu(Vr){if(he.noEmit)return!1;var fi=Bt(Vr);if(ro(fi))return!1;var Ni=e.outFile(he);if(Ni)return $u(fi,Ni)||$u(fi,e.removeFileExtension(Ni)+".d.ts");if(he.declarationDir&&e.containsPath(he.declarationDir,fi,li,!Rr.useCaseSensitiveFileNames()))return!0;if(he.outDir)return e.containsPath(he.outDir,fi,li,!Rr.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf(fi,e.supportedJSExtensionsFlat)||e.fileExtensionIs(fi,".d.ts")){var rt=e.removeFileExtension(fi);return!!ro(rt+".ts")||!!ro(rt+".tsx")}return!1}function $u(Vr,fi){return e.comparePaths(Vr,fi,li,!Rr.useCaseSensitiveFileNames())===0}function au(){return Rr.getSymlinkCache?Rr.getSymlinkCache():(ur||(ur=e.createSymlinkCache(li,ti)),cr&&Ce&&!ur.hasProcessedResolutions()&&ur.setSymlinksFromResolutions(cr,Ce),ur)}}e.createProgram=w;function j(ae){var V,le=ae.compilerHost.fileExists,ke=ae.compilerHost.directoryExists,Ue=ae.compilerHost.getDirectories,He=ae.compilerHost.realpath;if(!ae.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:e.noop,fileExists:me};ae.compilerHost.fileExists=me;var ar;return ke&&(ar=ae.compilerHost.directoryExists=function(ye){return ke.call(ae.compilerHost,ye)?(he(ye),!0):ae.getResolvedProjectReferences()?(V||(V=new e.Set,ae.forEachResolvedProjectReference(function(Se){var ge=e.outFile(Se.commandLine.options);if(ge)V.add(e.getDirectoryPath(ae.toPath(ge)));else{var Fe=Se.commandLine.options.declarationDir||Se.commandLine.options.outDir;Fe&&V.add(ae.toPath(Fe))}})),we(ye,!1)):!1}),Ue&&(ae.compilerHost.getDirectories=function(ye){return!ae.getResolvedProjectReferences()||ke&&ke.call(ae.compilerHost,ye)?Ue.call(ae.compilerHost,ye):[]}),He&&(ae.compilerHost.realpath=function(ye){var Se;return((Se=ae.getSymlinkCache().getSymlinkedFiles())===null||Se===void 0?void 0:Se.get(ae.toPath(ye)))||He.call(ae.compilerHost,ye)}),{onProgramCreateComplete:gr,fileExists:me,directoryExists:ar};function gr(){ae.compilerHost.fileExists=le,ae.compilerHost.directoryExists=ke,ae.compilerHost.getDirectories=Ue}function me(ye){return le.call(ae.compilerHost,ye)?!0:!ae.getResolvedProjectReferences()||!e.isDeclarationFileName(ye)?!1:we(ye,!0)}function Ge(ye){var Se=ae.getSourceOfProjectReferenceRedirect(ae.toPath(ye));return Se!==void 0?e.isString(Se)?le.call(ae.compilerHost,Se):!0:void 0}function er(ye){var Se=ae.toPath(ye),ge="".concat(Se).concat(e.directorySeparator);return e.forEachKey(V,function(Fe){return Se===Fe||e.startsWith(Fe,ge)||e.startsWith(Se,"".concat(Fe,"/"))})}function he(ye){var Se;if(!(!ae.getResolvedProjectReferences()||e.containsIgnoredPath(ye))&&!(!He||!e.stringContains(ye,e.nodeModulesPathPart))){var ge=ae.getSymlinkCache(),Fe=e.ensureTrailingDirectorySeparator(ae.toPath(ye));if(!(!((Se=ge.getSymlinkedDirectories())===null||Se===void 0)&&Se.has(Fe))){var cr=e.normalizePath(He.call(ae.compilerHost,ye)),ur;if(cr===ye||(ur=e.ensureTrailingDirectorySeparator(ae.toPath(cr)))===Fe){ge.setSymlinkedDirectory(Fe,!1);return}ge.setSymlinkedDirectory(ye,{real:e.ensureTrailingDirectorySeparator(cr),realPath:ur})}}}function we(ye,Se){var ge,Fe=Se?function(Br){return Ge(Br)}:function(Br){return er(Br)},cr=Fe(ye);if(cr!==void 0)return cr;var ur=ae.getSymlinkCache(),Ir=ur.getSymlinkedDirectories();if(!Ir)return!1;var dr=ae.toPath(ye);return e.stringContains(dr,e.nodeModulesPathPart)?Se&&((ge=ur.getSymlinkedFiles())===null||ge===void 0?void 0:ge.has(dr))?!0:e.firstDefinedIterator(Ir.entries(),function(Br){var Tr=Br[0],n=Br[1];if(!(!n||!e.startsWith(dr,Tr))){var Er=Fe(dr.replace(Tr,n.realPath));if(Se&&Er){var br=e.getNormalizedAbsolutePath(ye,ae.compilerHost.getCurrentDirectory());ur.setSymlinkedFile(dr,"".concat(n.real).concat(br.replace(new RegExp(Tr,"i"),"")))}return Er}})||!1:!1}}e.emitSkippedWithNoDiagnostics={diagnostics:e.emptyArray,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function U(ae,V,le,ke){var Ue=ae.getCompilerOptions();if(Ue.noEmit)return ae.getSemanticDiagnostics(V,ke),V||e.outFile(Ue)?e.emitSkippedWithNoDiagnostics:ae.emitBuildInfo(le,ke);if(!!Ue.noEmitOnError){var He=qe(qe(qe(qe([],ae.getOptionsDiagnostics(ke),!0),ae.getSyntacticDiagnostics(V,ke),!0),ae.getGlobalDiagnostics(ke),!0),ae.getSemanticDiagnostics(V,ke),!0);if(He.length===0&&e.getEmitDeclarations(ae.getCompilerOptions())&&(He=ae.getDeclarationDiagnostics(void 0,ke)),!!He.length){var ar;if(!V&&!e.outFile(Ue)){var gr=ae.emitBuildInfo(le,ke);gr.diagnostics&&(He=qe(qe([],He,!0),gr.diagnostics,!0)),ar=gr.emittedFiles}return{diagnostics:He,sourceMaps:void 0,emittedFiles:ar,emitSkipped:!0}}}}e.handleNoEmitOptions=U;function z(ae,V){return e.filter(ae,function(le){return!le.skippedOn||!V[le.skippedOn]})}e.filterSemanticDiagnostics=z;function y(ae,V){return V===void 0&&(V=ae),{fileExists:function(le){return V.fileExists(le)},readDirectory:function(le,ke,Ue,He,ar){return e.Debug.assertIsDefined(V.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),V.readDirectory(le,ke,Ue,He,ar)},readFile:function(le){return V.readFile(le)},useCaseSensitiveFileNames:ae.useCaseSensitiveFileNames(),getCurrentDirectory:function(){return ae.getCurrentDirectory()},onUnRecoverableConfigFileDiagnostic:ae.onUnRecoverableConfigFileDiagnostic||e.returnUndefined,trace:ae.trace?function(le){return ae.trace(le)}:void 0}}e.parseConfigHostFromCompilerHostLike=y;function oe(ae,V,le){if(!ae)return e.emptyArray;for(var ke,Ue=0;Ue<ae.length;Ue++){var He=ae[Ue],ar=V(He,Ue);if(He.prepend&&ar&&ar.options){var gr=e.outFile(ar.options);if(!gr)continue;var me=e.getOutputPathsForBundle(ar.options,!0),Ge=me.jsFilePath,er=me.sourceMapFilePath,he=me.declarationFilePath,we=me.declarationMapPath,ye=me.buildInfoPath,Se=e.createInputFiles(le,Ge,er,he,we,ye);(ke||(ke=[])).push(Se)}}return ke||e.emptyArray}e.createPrependNodes=oe;function ve(ae,V){var le=V||ae;return e.resolveConfigFileProjectName(le.path)}e.resolveProjectReferencePath=ve;function ce(ae,V){var le=V.extension;switch(le){case".ts":case".d.ts":return;case".tsx":return ke();case".jsx":return ke()||Ue();case".js":return Ue();case".json":return He()}function ke(){return ae.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function Ue(){return e.getAllowJSCompilerOption(ae)||!e.getStrictOptionValue(ae,"noImplicitAny")?void 0:e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function He(){return ae.resolveJsonModule?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}}e.getResolutionDiagnostic=ce;function m(ae){for(var V=ae.imports,le=ae.moduleAugmentations,ke=V.map(function(gr){return gr.text}),Ue=0,He=le;Ue<He.length;Ue++){var ar=He[Ue];ar.kind===10&&ke.push(ar.text)}return ke}function de(ae,V){var le=ae.imports,ke=ae.moduleAugmentations;if(V<le.length)return le[V];for(var Ue=le.length,He=0,ar=ke;He<ar.length;He++){var gr=ar[He];if(gr.kind===10){if(V===Ue)return gr;Ue++}}e.Debug.fail("should never ask for module name at index higher than possible module name")}e.getModuleNameStringLiteralAt=de})(Pe||(Pe={}));var Pe;(function(e){function a(L,W,N,Q,pe,F){var g=[],S=L.emit(W,C,Q,N,pe,F),H=S.emitSkipped,se=S.diagnostics,p=S.exportedModulesFromDeclarationEmit;return{outputFiles:g,emitSkipped:H,diagnostics:se,exportedModulesFromDeclarationEmit:p};function C(G,E,ue){g.push({name:G,writeByteOrderMark:ue,text:E})}}e.getFileEmitOutput=a;var O;(function(L){var W=0;function N(){function f(P,D,l){var _=0,J={id:W++,version:function(){return _},clone:function(){return f(new e.Map(P),new e.Map(D),l&&new e.Set(l))},forEach:function(w){return P.forEach(w)},getKeys:function(w){return D.get(w)},getValues:function(w){return P.get(w)},hasKey:function(w){return P.has(w)},keys:function(){return P.keys()},deletedKeys:function(){return l},deleteKey:function(w){(l||(l=new e.Set)).add(w);var j=P.get(w);return j?(j.forEach(function(U){return pe(D,U,w)}),P.delete(w),_++,!0):!1},set:function(w,j){var U=!!(l!=null&&l.delete(w)),z=P.get(w);return P.set(w,j),z==null||z.forEach(function(y){j.has(y)||(U=!0,pe(D,y,w))}),j.forEach(function(y){z!=null&&z.has(y)||(U=!0,Q(D,y,w))}),U&&_++,J}};return J}return f(new e.Map,new e.Map,void 0)}L.createManyToManyPathMap=N;function Q(f,P,D){var l=f.get(P);l||(l=new e.Set,f.set(P,l)),l.add(D)}function pe(f,P,D,l){l===void 0&&(l=!0);var _=f.get(P);return _!=null&&_.delete(D)?(l&&!_.size&&f.delete(P),!0):!1}function F(f){return e.mapDefined(f.declarations,function(P){var D;return(D=e.getSourceFileOfNode(P))===null||D===void 0?void 0:D.resolvedPath})}function g(f,P){var D=f.getSymbolAtLocation(P);return D&&F(D)}function S(f,P,D,l){return e.toPath(f.getProjectReferenceRedirect(P)||P,D,l)}function H(f,P,D){var l;if(P.imports&&P.imports.length>0)for(var _=f.getTypeChecker(),J=0,w=P.imports;J<w.length;J++){var j=w[J],U=g(_,j);U==null||U.forEach(ar)}var z=e.getDirectoryPath(P.resolvedPath);if(P.referencedFiles&&P.referencedFiles.length>0)for(var y=0,oe=P.referencedFiles;y<oe.length;y++){var ve=oe[y],ce=S(f,ve.fileName,z,D);ar(ce)}if(P.resolvedTypeReferenceDirectiveNames&&P.resolvedTypeReferenceDirectiveNames.forEach(function(gr){if(!!gr){var me=gr.resolvedFileName,Ge=S(f,me,z,D);ar(Ge)}}),P.moduleAugmentations.length)for(var _=f.getTypeChecker(),m=0,de=P.moduleAugmentations;m<de.length;m++){var ae=de[m];if(!!e.isStringLiteral(ae)){var V=_.getSymbolAtLocation(ae);!V||He(V)}}for(var le=0,ke=f.getTypeChecker().getAmbientModules();le<ke.length;le++){var Ue=ke[le];Ue.declarations&&Ue.declarations.length>1&&He(Ue)}return l;function He(gr){if(!!gr.declarations)for(var me=0,Ge=gr.declarations;me<Ge.length;me++){var er=Ge[me],he=e.getSourceFileOfNode(er);he&&he!==P&&ar(he.resolvedPath)}}function ar(gr){(l||(l=new e.Set)).add(gr)}}function se(f,P){return P&&!P.referencedMap==!f}L.canReuseOldState=se;function p(f,P,D,l){var _=new e.Map,J=f.getCompilerOptions().module!==e.ModuleKind.None?N():void 0,w=J?N():void 0,j=new e.Set,U=se(J,D);f.getTypeChecker();for(var z=0,y=f.getSourceFiles();z<y.length;z++){var oe=y[z],ve=e.Debug.checkDefined(oe.version,"Program intended to be used with Builder should have source files with versions set"),ce=U?D.fileInfos.get(oe.resolvedPath):void 0;if(J){var m=H(f,oe,P);if(m&&J.set(oe.resolvedPath,m),U){var de=D.exportedModulesMap.getValues(oe.resolvedPath);de&&w.set(oe.resolvedPath,de)}}_.set(oe.resolvedPath,{version:ve,signature:ce&&ce.signature,affectsGlobalScope:I(oe)||void 0,impliedFormat:oe.impliedNodeFormat})}return{fileInfos:_,referencedMap:J,exportedModulesMap:w,hasCalledUpdateShapeSignature:j,useFileVersionAsSignature:!l&&!U}}L.create=p;function C(f){f.allFilesExcludingDefaultLibraryFile=void 0,f.allFileNames=void 0}L.releaseCache=C;function G(f){var P,D;return{fileInfos:new e.Map(f.fileInfos),referencedMap:(P=f.referencedMap)===null||P===void 0?void 0:P.clone(),exportedModulesMap:(D=f.exportedModulesMap)===null||D===void 0?void 0:D.clone(),hasCalledUpdateShapeSignature:new e.Set(f.hasCalledUpdateShapeSignature),useFileVersionAsSignature:f.useFileVersionAsSignature}}L.clone=G;function E(f,P,D,l,_,J,w){var j=J||new e.Map,U=P.getSourceFileByPath(D);if(!U)return e.emptyArray;if(!re(f,P,U,j,l,_,w))return[U];var z=(f.referencedMap?A:ee)(f,P,U,j,l,_,w);return J||ue(f,j),z}L.getFilesAffectedBy=E;function ue(f,P){P.forEach(function(D,l){return B(f,D,l)})}L.updateSignaturesFromCache=ue;function B(f,P,D){f.fileInfos.get(D).signature=P,f.hasCalledUpdateShapeSignature.add(D)}L.updateSignatureOfFile=B;function re(f,P,D,l,_,J,w,j){if(j===void 0&&(j=f.useFileVersionAsSignature),e.Debug.assert(!!D),e.Debug.assert(!w||!!f.exportedModulesMap,"Compute visible to outside map only if visibleToOutsideReferencedMap present in the state"),f.hasCalledUpdateShapeSignature.has(D.resolvedPath)||l.has(D.resolvedPath))return!1;var U=f.fileInfos.get(D.resolvedPath);if(!U)return e.Debug.fail();var z=U.signature,y;if(!D.isDeclarationFile&&!j){var oe=a(P,D,!0,_,void 0,!0),ve=e.firstOrUndefined(oe.outputFiles);ve&&(e.Debug.assert(e.fileExtensionIsOneOf(ve.name,[".d.ts",".d.mts",".d.cts"]),"File extension for signature expected to be dts",function(){return"Found: ".concat(e.getAnyExtensionFromPath(ve.name)," for ").concat(ve.name,":: All output files: ").concat(JSON.stringify(oe.outputFiles.map(function(m){return m.name})))}),y=(J||e.generateDjb2Hash)(ve.text),w&&y!==z&&M(D,oe.exportedModulesFromDeclarationEmit,w))}if(y===void 0&&(y=D.version,w&&y!==z)){var ce=f.referencedMap?f.referencedMap.getValues(D.resolvedPath):void 0;ce?w.set(D.resolvedPath,ce):w.deleteKey(D.resolvedPath)}return l.set(D.resolvedPath,y),y!==z}L.updateShapeSignature=re;function M(f,P,D){if(!P){D.deleteKey(f.resolvedPath);return}var l;P.forEach(function(J){return _(F(J))}),l?D.set(f.resolvedPath,l):D.deleteKey(f.resolvedPath);function _(J){J!=null&&J.length&&(l||(l=new e.Set),J.forEach(function(w){return l.add(w)}))}}function x(f,P){var D;if(P){e.Debug.assert(!!f.exportedModulesMap);var l=P.id,_=P.version();if(f.previousCache){if(f.previousCache.id===l&&f.previousCache.version===_)return;f.previousCache.id=l,f.previousCache.version=_}else f.previousCache={id:l,version:_};(D=P.deletedKeys())===null||D===void 0||D.forEach(function(J){return f.exportedModulesMap.deleteKey(J)}),P.forEach(function(J,w){return f.exportedModulesMap.set(w,J)})}}L.updateExportedFilesMapFromCache=x;function ie(f,P,D){var l=P.getCompilerOptions();if(e.outFile(l)||!f.referencedMap||I(D))return _e(f,P);for(var _=new e.Set,J=[D.resolvedPath];J.length;){var w=J.pop();if(!_.has(w)){_.add(w);var j=f.referencedMap.getValues(w);if(j)for(var U=j.keys(),z=U.next();!z.done;z=U.next())J.push(z.value)}}return e.arrayFrom(e.mapDefinedIterator(_.keys(),function(y){var oe,ve;return(ve=(oe=P.getSourceFileByPath(y))===null||oe===void 0?void 0:oe.fileName)!==null&&ve!==void 0?ve:y}))}L.getAllDependencies=ie;function _e(f,P){if(!f.allFileNames){var D=P.getSourceFiles();f.allFileNames=D===e.emptyArray?e.emptyArray:D.map(function(l){return l.fileName})}return f.allFileNames}function Y(f,P){var D=f.referencedMap.getKeys(P);return D?e.arrayFrom(D.keys()):[]}L.getReferencedByPaths=Y;function Z(f){for(var P=0,D=f.statements;P<D.length;P++){var l=D[P];if(!e.isModuleWithStringLiteralName(l))return!1}return!0}function k(f){return e.some(f.moduleAugmentations,function(P){return e.isGlobalScopeAugmentation(P.parent)})}function I(f){return k(f)||!e.isExternalOrCommonJsModule(f)&&!e.isJsonSourceFile(f)&&!Z(f)}function ne(f,P,D){if(f.allFilesExcludingDefaultLibraryFile)return f.allFilesExcludingDefaultLibraryFile;var l;D&&j(D);for(var _=0,J=P.getSourceFiles();_<J.length;_++){var w=J[_];w!==D&&j(w)}return f.allFilesExcludingDefaultLibraryFile=l||e.emptyArray,f.allFilesExcludingDefaultLibraryFile;function j(U){P.isSourceFileDefaultLibrary(U)||(l||(l=[])).push(U)}}L.getAllFilesExcludingDefaultLibraryFile=ne;function ee(f,P,D){var l=P.getCompilerOptions();return l&&e.outFile(l)?[D]:ne(f,P,D)}function A(f,P,D,l,_,J,w){if(I(D))return ne(f,P,D);var j=P.getCompilerOptions();if(j&&(j.isolatedModules||e.outFile(j)))return[D];var U=new e.Map;U.set(D.resolvedPath,D);for(var z=Y(f,D.resolvedPath);z.length>0;){var y=z.pop();if(!U.has(y)){var oe=P.getSourceFileByPath(y);U.set(y,oe),oe&&re(f,P,oe,l,_,J,w)&&z.push.apply(z,Y(f,oe.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(U.values(),function(ve){return ve}))}})(O=e.BuilderState||(e.BuilderState={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(_){_[_.DtsOnly=0]="DtsOnly",_[_.Full=1]="Full"})(a=e.BuilderFileEmit||(e.BuilderFileEmit={}));function O(_,J){return _===J||_!==void 0&&J!==void 0&&_.size===J.size&&!e.forEachKey(_,function(w){return!J.has(w)})}function L(_,J,w,j){var U=e.BuilderState.create(_,J,w,j);U.program=_;var z=_.getCompilerOptions();U.compilerOptions=z,e.outFile(z)||(U.semanticDiagnosticsPerFile=new e.Map),U.changedFilesSet=new e.Set;var y=e.BuilderState.canReuseOldState(U.referencedMap,w),oe=y?w.compilerOptions:void 0,ve=y&&w.semanticDiagnosticsPerFile&&!!U.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(z,oe);if(y){if(!w.currentChangedFilePath){var ce=w.currentAffectedFilesSignatures;e.Debug.assert(!w.affectedFiles&&(!ce||!ce.size),"Cannot reuse if only few affected files of currentChangedFile were iterated")}var m=w.changedFilesSet;ve&&e.Debug.assert(!m||!e.forEachKey(m,function(ke){return w.semanticDiagnosticsPerFile.has(ke)}),"Semantic diagnostics shouldnt be available for changed files"),m==null||m.forEach(function(ke){return U.changedFilesSet.add(ke)}),!e.outFile(z)&&w.affectedFilesPendingEmit&&(U.affectedFilesPendingEmit=w.affectedFilesPendingEmit.slice(),U.affectedFilesPendingEmitKind=w.affectedFilesPendingEmitKind&&new e.Map(w.affectedFilesPendingEmitKind),U.affectedFilesPendingEmitIndex=w.affectedFilesPendingEmitIndex,U.seenAffectedFiles=new e.Set)}var de=U.referencedMap,ae=y?w.referencedMap:void 0,V=ve&&!z.skipLibCheck==!oe.skipLibCheck,le=V&&!z.skipDefaultLibCheck==!oe.skipDefaultLibCheck;return U.fileInfos.forEach(function(ke,Ue){var He,ar;if(!y||!(He=w.fileInfos.get(Ue))||He.version!==ke.version||!O(ar=de&&de.getValues(Ue),ae&&ae.getValues(Ue))||ar&&e.forEachKey(ar,function(Ge){return!U.fileInfos.has(Ge)&&w.fileInfos.has(Ge)}))U.changedFilesSet.add(Ue);else if(ve){var gr=_.getSourceFileByPath(Ue);if(gr.isDeclarationFile&&!V||gr.hasNoDefaultLib&&!le)return;var me=w.semanticDiagnosticsPerFile.get(Ue);me&&(U.semanticDiagnosticsPerFile.set(Ue,w.hasReusableDiagnostic?W(me,_,J):me),U.semanticDiagnosticsFromOldState||(U.semanticDiagnosticsFromOldState=new e.Set),U.semanticDiagnosticsFromOldState.add(Ue))}}),y&&e.forEachEntry(w.fileInfos,function(ke,Ue){return ke.affectsGlobalScope&&!U.fileInfos.has(Ue)})?e.BuilderState.getAllFilesExcludingDefaultLibraryFile(U,_,void 0).forEach(function(ke){return U.changedFilesSet.add(ke.resolvedPath)}):oe&&!e.outFile(z)&&e.compilerOptionsAffectEmit(z,oe)&&(_.getSourceFiles().forEach(function(ke){return f(U,ke.resolvedPath,1)}),e.Debug.assert(!U.seenAffectedFiles||!U.seenAffectedFiles.size),U.seenAffectedFiles=U.seenAffectedFiles||new e.Set),y&&e.forEachEntry(w.fileInfos,function(ke,Ue){U.fileInfos.has(Ue)&&U.fileInfos.get(Ue).impliedFormat!==ke.impliedFormat&&U.changedFilesSet.add(Ue)}),U.buildInfoEmitPending=!!U.changedFilesSet.size,U}function W(_,J,w){if(!_.length)return e.emptyArray;var j=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(J.getCompilerOptions()),J.getCurrentDirectory()));return _.map(function(z){var y=N(z,J,U);y.reportsUnnecessary=z.reportsUnnecessary,y.reportsDeprecated=z.reportDeprecated,y.source=z.source,y.skippedOn=z.skippedOn;var oe=z.relatedInformation;return y.relatedInformation=oe?oe.length?oe.map(function(ve){return N(ve,J,U)}):[]:void 0,y});function U(z){return e.toPath(z,j,w)}}function N(_,J,w){var j=_.file;return Ve(Ve({},_),{file:j?J.getSourceFileByPath(w(j)):void 0})}function Q(_){e.BuilderState.releaseCache(_),_.program=void 0}function pe(_){var J,w=e.BuilderState.clone(_);return w.semanticDiagnosticsPerFile=_.semanticDiagnosticsPerFile&&new e.Map(_.semanticDiagnosticsPerFile),w.changedFilesSet=new e.Set(_.changedFilesSet),w.affectedFiles=_.affectedFiles,w.affectedFilesIndex=_.affectedFilesIndex,w.currentChangedFilePath=_.currentChangedFilePath,w.currentAffectedFilesSignatures=_.currentAffectedFilesSignatures&&new e.Map(_.currentAffectedFilesSignatures),w.currentAffectedFilesExportedModulesMap=(J=_.currentAffectedFilesExportedModulesMap)===null||J===void 0?void 0:J.clone(),w.seenAffectedFiles=_.seenAffectedFiles&&new e.Set(_.seenAffectedFiles),w.cleanedDiagnosticsOfLibFiles=_.cleanedDiagnosticsOfLibFiles,w.semanticDiagnosticsFromOldState=_.semanticDiagnosticsFromOldState&&new e.Set(_.semanticDiagnosticsFromOldState),w.program=_.program,w.compilerOptions=_.compilerOptions,w.affectedFilesPendingEmit=_.affectedFilesPendingEmit&&_.affectedFilesPendingEmit.slice(),w.affectedFilesPendingEmitKind=_.affectedFilesPendingEmitKind&&new e.Map(_.affectedFilesPendingEmitKind),w.affectedFilesPendingEmitIndex=_.affectedFilesPendingEmitIndex,w.seenEmittedFiles=_.seenEmittedFiles&&new e.Map(_.seenEmittedFiles),w.programEmitComplete=_.programEmitComplete,w}function F(_,J){e.Debug.assert(!J||!_.affectedFiles||_.affectedFiles[_.affectedFilesIndex-1]!==J||!_.semanticDiagnosticsPerFile.has(J.resolvedPath))}function g(_,J,w){for(;;){var j=_.affectedFiles;if(j){for(var U=_.seenAffectedFiles,z=_.affectedFilesIndex;z<j.length;){var y=j[z];if(!U.has(y.resolvedPath))return _.affectedFilesIndex=z,H(_,y,J,w),y;z++}_.changedFilesSet.delete(_.currentChangedFilePath),_.currentChangedFilePath=void 0,e.BuilderState.updateSignaturesFromCache(_,_.currentAffectedFilesSignatures),_.currentAffectedFilesSignatures.clear(),e.BuilderState.updateExportedFilesMapFromCache(_,_.currentAffectedFilesExportedModulesMap),_.affectedFiles=void 0}var oe=_.changedFilesSet.keys().next();if(oe.done)return;var ve=e.Debug.checkDefined(_.program),ce=ve.getCompilerOptions();if(e.outFile(ce))return e.Debug.assert(!_.semanticDiagnosticsPerFile),ve;_.currentAffectedFilesSignatures||(_.currentAffectedFilesSignatures=new e.Map),_.exportedModulesMap&&(_.currentAffectedFilesExportedModulesMap||(_.currentAffectedFilesExportedModulesMap=e.BuilderState.createManyToManyPathMap())),_.affectedFiles=e.BuilderState.getFilesAffectedBy(_,ve,oe.value,J,w,_.currentAffectedFilesSignatures,_.currentAffectedFilesExportedModulesMap),_.currentChangedFilePath=oe.value,_.affectedFilesIndex=0,_.seenAffectedFiles||(_.seenAffectedFiles=new e.Set)}}function S(_){var J=_.affectedFilesPendingEmit;if(J){for(var w=_.seenEmittedFiles||(_.seenEmittedFiles=new e.Map),j=_.affectedFilesPendingEmitIndex;j<J.length;j++){var U=e.Debug.checkDefined(_.program).getSourceFileByPath(J[j]);if(U){var z=w.get(U.resolvedPath),y=e.Debug.checkDefined(e.Debug.checkDefined(_.affectedFilesPendingEmitKind).get(U.resolvedPath));if(z===void 0||z<y)return _.affectedFilesPendingEmitIndex=j,{affectedFile:U,emitKind:y}}}_.affectedFilesPendingEmit=void 0,_.affectedFilesPendingEmitKind=void 0,_.affectedFilesPendingEmitIndex=void 0}}function H(_,J,w,j){var U;if(p(_,J.resolvedPath),_.allFilesExcludingDefaultLibraryFile===_.affectedFiles){if(!_.cleanedDiagnosticsOfLibFiles){_.cleanedDiagnosticsOfLibFiles=!0;var z=e.Debug.checkDefined(_.program),y=z.getCompilerOptions();e.forEach(z.getSourceFiles(),function(oe){return z.isSourceFileDefaultLibrary(oe)&&!e.skipTypeChecking(oe,y,z)&&p(_,oe.resolvedPath)})}e.BuilderState.updateShapeSignature(_,e.Debug.checkDefined(_.program),J,e.Debug.checkDefined(_.currentAffectedFilesSignatures),w,j,_.currentAffectedFilesExportedModulesMap);return}else e.Debug.assert(_.hasCalledUpdateShapeSignature.has(J.resolvedPath)||((U=_.currentAffectedFilesSignatures)===null||U===void 0?void 0:U.has(J.resolvedPath)),"Signature not updated for affected file: ".concat(J.fileName));_.compilerOptions.assumeChangesOnlyAffectDirectDependencies||G(_,J,function(oe,ve){return se(oe,ve,w,j)})}function se(_,J,w,j){if(p(_,J),!_.changedFilesSet.has(J)){var U=e.Debug.checkDefined(_.program),z=U.getSourceFileByPath(J);z&&(e.BuilderState.updateShapeSignature(_,U,z,e.Debug.checkDefined(_.currentAffectedFilesSignatures),w,j,_.currentAffectedFilesExportedModulesMap,!0),e.getEmitDeclarations(_.compilerOptions)&&f(_,J,0))}}function p(_,J){return _.semanticDiagnosticsFromOldState?(_.semanticDiagnosticsFromOldState.delete(J),_.semanticDiagnosticsPerFile.delete(J),!_.semanticDiagnosticsFromOldState.size):!0}function C(_,J){var w=e.Debug.checkDefined(_.currentAffectedFilesSignatures).get(J),j=e.Debug.checkDefined(_.fileInfos.get(J)).signature;return w!==j}function G(_,J,w){var j,U;if(!(!_.exportedModulesMap||!_.changedFilesSet.has(J.resolvedPath))&&!!C(_,J.resolvedPath)){if(_.compilerOptions.isolatedModules){var z=new e.Map;z.set(J.resolvedPath,!0);for(var y=e.BuilderState.getReferencedByPaths(_,J.resolvedPath);y.length>0;){var oe=y.pop();if(!z.has(oe)&&(z.set(oe,!0),w(_,oe),C(_,oe))){var ve=e.Debug.checkDefined(_.program).getSourceFileByPath(oe);y.push.apply(y,e.BuilderState.getReferencedByPaths(_,ve.resolvedPath))}}}e.Debug.assert(!!_.currentAffectedFilesExportedModulesMap);var ce=new e.Set;(j=_.currentAffectedFilesExportedModulesMap.getKeys(J.resolvedPath))===null||j===void 0||j.forEach(function(m){return E(_,m,ce,w)}),(U=_.exportedModulesMap.getKeys(J.resolvedPath))===null||U===void 0||U.forEach(function(m){var de;return!_.currentAffectedFilesExportedModulesMap.hasKey(m)&&!(!((de=_.currentAffectedFilesExportedModulesMap.deletedKeys())===null||de===void 0)&&de.has(m))&&E(_,m,ce,w)})}}function E(_,J,w,j){var U;(U=_.referencedMap.getKeys(J))===null||U===void 0||U.forEach(function(z){return ue(_,z,w,j)})}function ue(_,J,w,j){var U,z,y;!e.tryAddToSet(w,J)||(j(_,J),e.Debug.assert(!!_.currentAffectedFilesExportedModulesMap),(U=_.currentAffectedFilesExportedModulesMap.getKeys(J))===null||U===void 0||U.forEach(function(oe){return ue(_,oe,w,j)}),(z=_.exportedModulesMap.getKeys(J))===null||z===void 0||z.forEach(function(oe){var ve;return!_.currentAffectedFilesExportedModulesMap.hasKey(oe)&&!(!((ve=_.currentAffectedFilesExportedModulesMap.deletedKeys())===null||ve===void 0)&&ve.has(oe))&&ue(_,oe,w,j)}),(y=_.referencedMap.getKeys(J))===null||y===void 0||y.forEach(function(oe){return!w.has(oe)&&j(_,oe)}))}function B(_,J,w,j,U){U?_.buildInfoEmitPending=!1:J===_.program?(_.changedFilesSet.clear(),_.programEmitComplete=!0):(_.seenAffectedFiles.add(J.resolvedPath),w!==void 0&&(_.seenEmittedFiles||(_.seenEmittedFiles=new e.Map)).set(J.resolvedPath,w),j?(_.affectedFilesPendingEmitIndex++,_.buildInfoEmitPending=!0):_.affectedFilesIndex++)}function re(_,J,w){return B(_,w),{result:J,affected:w}}function M(_,J,w,j,U,z){return B(_,w,j,U,z),{result:J,affected:w}}function x(_,J,w){return e.concatenate(ie(_,J,w),e.Debug.checkDefined(_.program).getProgramDiagnostics(J))}function ie(_,J,w){var j=J.resolvedPath;if(_.semanticDiagnosticsPerFile){var U=_.semanticDiagnosticsPerFile.get(j);if(U)return e.filterSemanticDiagnostics(U,_.compilerOptions)}var z=e.Debug.checkDefined(_.program).getBindAndCheckDiagnostics(J,w);return _.semanticDiagnosticsPerFile&&_.semanticDiagnosticsPerFile.set(j,z),e.filterSemanticDiagnostics(z,_.compilerOptions)}function _e(_,J){if(e.outFile(_.compilerOptions))return;var w=e.Debug.checkDefined(_.program).getCurrentDirectory(),j=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(_.compilerOptions),w)),U=[],z=new e.Map,y,oe,ve=e.arrayFrom(_.fileInfos.entries(),function(ye){var Se=ye[0],ge=ye[1],Fe=he(Se);e.Debug.assert(U[Fe-1]===er(Se));var cr=_.currentAffectedFilesSignatures&&_.currentAffectedFilesSignatures.get(Se),ur=cr!=null?cr:ge.signature;return ge.version===ur?ge.affectsGlobalScope?{version:ge.version,signature:void 0,affectsGlobalScope:!0,impliedFormat:ge.impliedFormat}:ge.version:ur!==void 0?cr===void 0?ge:{version:ge.version,signature:cr,affectsGlobalScope:ge.affectsGlobalScope,impliedFormat:ge.impliedFormat}:{version:ge.version,signature:!1,affectsGlobalScope:ge.affectsGlobalScope,impliedFormat:ge.impliedFormat}}),ce;_.referencedMap&&(ce=e.arrayFrom(_.referencedMap.keys()).sort(e.compareStringsCaseSensitive).map(function(ye){return[he(ye),we(_.referencedMap.getValues(ye))]}));var m;_.exportedModulesMap&&(m=e.mapDefined(e.arrayFrom(_.exportedModulesMap.keys()).sort(e.compareStringsCaseSensitive),function(ye){var Se;if(_.currentAffectedFilesExportedModulesMap){if(!((Se=_.currentAffectedFilesExportedModulesMap.deletedKeys())===null||Se===void 0)&&Se.has(ye))return;var ge=_.currentAffectedFilesExportedModulesMap.getValues(ye);if(ge)return[he(ye),we(ge)]}return[he(ye),we(_.exportedModulesMap.getValues(ye))]}));var de;if(_.semanticDiagnosticsPerFile)for(var ae=0,V=e.arrayFrom(_.semanticDiagnosticsPerFile.keys()).sort(e.compareStringsCaseSensitive);ae<V.length;ae++){var le=V[ae],ke=_.semanticDiagnosticsPerFile.get(le);(de||(de=[])).push(ke.length?[he(le),_.hasReusableDiagnostic?ke:k(ke,er)]:he(le))}var Ue;if(_.affectedFilesPendingEmit)for(var He=new e.Set,ar=0,gr=_.affectedFilesPendingEmit.slice(_.affectedFilesPendingEmitIndex).sort(e.compareStringsCaseSensitive);ar<gr.length;ar++){var me=gr[ar];e.tryAddToSet(He,me)&&(Ue||(Ue=[])).push([he(me),_.affectedFilesPendingEmitKind.get(me)])}return{fileNames:U,fileInfos:ve,options:Y(_.compilerOptions,Ge),fileIdsList:y,referencedMap:ce,exportedModulesMap:m,semanticDiagnosticsPerFile:de,affectedFilesPendingEmit:Ue};function Ge(ye){return er(e.getNormalizedAbsolutePath(ye,w))}function er(ye){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(j,ye,J))}function he(ye){var Se=z.get(ye);return Se===void 0&&(U.push(er(ye)),z.set(ye,Se=U.length)),Se}function we(ye){var Se=e.arrayFrom(ye.keys(),he).sort(e.compareValues),ge=Se.join(),Fe=oe==null?void 0:oe.get(ge);return Fe===void 0&&((y||(y=[])).push(Se),(oe||(oe=new e.Map)).set(ge,Fe=y.length)),Fe}}function Y(_,J){for(var w,j=e.getOptionsNameMap().optionsNameMap,U=0,z=e.getOwnKeys(_).sort(e.compareStringsCaseSensitive);U<z.length;U++){var y=z[U],oe=y.toLowerCase(),ve=j.get(oe);((ve==null?void 0:ve.affectsEmit)||(ve==null?void 0:ve.affectsSemanticDiagnostics)||oe==="strict"||oe==="skiplibcheck"||oe==="skipdefaultlibcheck")&&((w||(w={}))[y]=Z(ve,_[y],J))}return w}function Z(_,J,w){if(_){if(_.type==="list"){var j=J;if(_.element.isFilePath&&j.length)return j.map(w)}else if(_.isFilePath)return w(J)}return J}function k(_,J){return e.Debug.assert(!!_.length),_.map(function(w){var j=I(w,J);j.reportsUnnecessary=w.reportsUnnecessary,j.reportDeprecated=w.reportsDeprecated,j.source=w.source,j.skippedOn=w.skippedOn;var U=w.relatedInformation;return j.relatedInformation=U?U.length?U.map(function(z){return I(z,J)}):[]:void 0,j})}function I(_,J){var w=_.file;return Ve(Ve({},_),{file:w?J(w.resolvedPath):void 0})}var ne;(function(_){_[_.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",_[_.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"})(ne=e.BuilderProgramKind||(e.BuilderProgramKind={}));function ee(_,J,w,j,U,z){var y,oe,ve;return _===void 0?(e.Debug.assert(J===void 0),y=w,ve=j,e.Debug.assert(!!ve),oe=ve.getProgram()):e.isArray(_)?(ve=j,oe=e.createProgram({rootNames:_,options:J,host:w,oldProgram:ve&&ve.getProgramOrUndefined(),configFileParsingDiagnostics:U,projectReferences:z}),y=w):(oe=_,y=J,ve=w,U=j),{host:y,newProgram:oe,oldProgram:ve,configFileParsingDiagnostics:U||e.emptyArray}}e.getBuilderCreationParameters=ee;function A(_,J){var w=J.newProgram,j=J.host,U=J.oldProgram,z=J.configFileParsingDiagnostics,y=U&&U.getState();if(y&&w===y.program&&z===w.getConfigFileParsingDiagnostics())return w=void 0,y=void 0,U;var oe=e.createGetCanonicalFileName(j.useCaseSensitiveFileNames()),ve=e.maybeBind(j,j.createHash),ce=L(w,oe,y,j.disableUseFileVersionAsSignature),m;w.getProgramBuildInfo=function(){return _e(ce,oe)},w=void 0,U=void 0,y=void 0;var de=function(){return ce},ae=l(de,z);return ae.getState=de,ae.backupState=function(){e.Debug.assert(m===void 0),m=pe(ce)},ae.restoreState=function(){ce=e.Debug.checkDefined(m),m=void 0},ae.getAllDependencies=function(ar){return e.BuilderState.getAllDependencies(ce,e.Debug.checkDefined(ce.program),ar)},ae.getSemanticDiagnostics=He,ae.emit=ke,ae.releaseProgram=function(){Q(ce),m=void 0},_===ne.SemanticDiagnosticsBuilderProgram?ae.getSemanticDiagnosticsOfNextAffectedFile=Ue:_===ne.EmitAndSemanticDiagnosticsBuilderProgram?(ae.getSemanticDiagnosticsOfNextAffectedFile=Ue,ae.emitNextAffectedFile=le,ae.emitBuildInfo=V):e.notImplemented(),ae;function V(ar,gr){if(ce.buildInfoEmitPending){var me=e.Debug.checkDefined(ce.program).emitBuildInfo(ar||e.maybeBind(j,j.writeFile),gr);return ce.buildInfoEmitPending=!1,me}return e.emitSkippedWithNoDiagnostics}function le(ar,gr,me,Ge){var er=g(ce,gr,ve),he=1,we=!1;if(!er)if(e.outFile(ce.compilerOptions)){var ge=e.Debug.checkDefined(ce.program);if(ce.programEmitComplete)return;er=ge}else{var ye=S(ce);if(!ye){if(!ce.buildInfoEmitPending)return;var Se=e.Debug.checkDefined(ce.program);return M(ce,Se.emitBuildInfo(ar||e.maybeBind(j,j.writeFile),gr),Se,1,!1,!0)}er=ye.affectedFile,he=ye.emitKind,we=!0}return M(ce,e.Debug.checkDefined(ce.program).emit(er===ce.program?void 0:er,ar||e.maybeBind(j,j.writeFile),gr,me||he===0,Ge),er,he,we)}function ke(ar,gr,me,Ge,er){var he=!1,we,ye,Se;_!==ne.EmitAndSemanticDiagnosticsBuilderProgram&&!ar&&!e.outFile(ce.compilerOptions)&&!ce.compilerOptions.noEmit&&ce.compilerOptions.noEmitOnError&&(he=!0,we=ce.affectedFilesPendingEmit&&ce.affectedFilesPendingEmit.slice(),ye=ce.affectedFilesPendingEmitKind&&new e.Map(ce.affectedFilesPendingEmitKind),Se=ce.affectedFilesPendingEmitIndex),_===ne.EmitAndSemanticDiagnosticsBuilderProgram&&F(ce,ar);var ge=e.handleNoEmitOptions(ae,ar,gr,me);if(ge)return ge;if(he&&(ce.affectedFilesPendingEmit=we,ce.affectedFilesPendingEmitKind=ye,ce.affectedFilesPendingEmitIndex=Se),!ar&&_===ne.EmitAndSemanticDiagnosticsBuilderProgram){for(var Fe=[],cr=!1,ur=void 0,Ir=[],dr=void 0;dr=le(gr,me,Ge,er);)cr=cr||dr.result.emitSkipped,ur=e.addRange(ur,dr.result.diagnostics),Ir=e.addRange(Ir,dr.result.emittedFiles),Fe=e.addRange(Fe,dr.result.sourceMaps);return{emitSkipped:cr,diagnostics:ur||e.emptyArray,emittedFiles:Ir,sourceMaps:Fe}}return e.Debug.checkDefined(ce.program).emit(ar,gr||e.maybeBind(j,j.writeFile),me,Ge,er)}function Ue(ar,gr){for(;;){var me=g(ce,ar,ve);if(me){if(me===ce.program)return re(ce,ce.program.getSemanticDiagnostics(void 0,ar),me)}else return;if((_===ne.EmitAndSemanticDiagnosticsBuilderProgram||ce.compilerOptions.noEmit||ce.compilerOptions.noEmitOnError)&&f(ce,me.resolvedPath,1),gr&&gr(me)){B(ce,me);continue}return re(ce,x(ce,me,ar),me)}}function He(ar,gr){F(ce,ar);var me=e.Debug.checkDefined(ce.program).getCompilerOptions();if(e.outFile(me))return e.Debug.assert(!ce.semanticDiagnosticsPerFile),e.Debug.checkDefined(ce.program).getSemanticDiagnostics(ar,gr);if(ar)return x(ce,ar,gr);for(;Ue(gr););for(var Ge,er=0,he=e.Debug.checkDefined(ce.program).getSourceFiles();er<he.length;er++){var we=he[er];Ge=e.addRange(Ge,x(ce,we,gr))}return Ge||e.emptyArray}}e.createBuilderProgram=A;function f(_,J,w){_.affectedFilesPendingEmit||(_.affectedFilesPendingEmit=[]),_.affectedFilesPendingEmitKind||(_.affectedFilesPendingEmitKind=new e.Map);var j=_.affectedFilesPendingEmitKind.get(J);_.affectedFilesPendingEmit.push(J),_.affectedFilesPendingEmitKind.set(J,j||w),_.affectedFilesPendingEmitIndex===void 0&&(_.affectedFilesPendingEmitIndex=0)}function P(_){return e.isString(_)?{version:_,signature:_,affectsGlobalScope:void 0,impliedFormat:void 0}:e.isString(_.signature)?_:{version:_.version,signature:_.signature===!1?void 0:_.version,affectsGlobalScope:_.affectsGlobalScope,impliedFormat:_.impliedFormat}}e.toBuilderStateFileInfo=P;function D(_,J,w){var j,U=e.getDirectoryPath(e.getNormalizedAbsolutePath(J,w.getCurrentDirectory())),z=e.createGetCanonicalFileName(w.useCaseSensitiveFileNames()),y=_.fileNames.map(m),oe=(j=_.fileIdsList)===null||j===void 0?void 0:j.map(function(ke){return new e.Set(ke.map(ae))}),ve=new e.Map;_.fileInfos.forEach(function(ke,Ue){return ve.set(ae(Ue+1),P(ke))});var ce={fileInfos:ve,compilerOptions:_.options?e.convertToOptionsWithAbsolutePaths(_.options,de):{},referencedMap:le(_.referencedMap),exportedModulesMap:le(_.exportedModulesMap),semanticDiagnosticsPerFile:_.semanticDiagnosticsPerFile&&e.arrayToMap(_.semanticDiagnosticsPerFile,function(ke){return ae(e.isNumber(ke)?ke:ke[0])},function(ke){return e.isNumber(ke)?e.emptyArray:ke[1]}),hasReusableDiagnostic:!0,affectedFilesPendingEmit:e.map(_.affectedFilesPendingEmit,function(ke){return ae(ke[0])}),affectedFilesPendingEmitKind:_.affectedFilesPendingEmit&&e.arrayToMap(_.affectedFilesPendingEmit,function(ke){return ae(ke[0])},function(ke){return ke[1]}),affectedFilesPendingEmitIndex:_.affectedFilesPendingEmit&&0};return{getState:function(){return ce},backupState:e.noop,restoreState:e.noop,getProgram:e.notImplemented,getProgramOrUndefined:e.returnUndefined,releaseProgram:e.noop,getCompilerOptions:function(){return ce.compilerOptions},getSourceFile:e.notImplemented,getSourceFiles:e.notImplemented,getOptionsDiagnostics:e.notImplemented,getGlobalDiagnostics:e.notImplemented,getConfigFileParsingDiagnostics:e.notImplemented,getSyntacticDiagnostics:e.notImplemented,getDeclarationDiagnostics:e.notImplemented,getSemanticDiagnostics:e.notImplemented,emit:e.notImplemented,getAllDependencies:e.notImplemented,getCurrentDirectory:e.notImplemented,emitNextAffectedFile:e.notImplemented,getSemanticDiagnosticsOfNextAffectedFile:e.notImplemented,emitBuildInfo:e.notImplemented,close:e.noop};function m(ke){return e.toPath(ke,U,z)}function de(ke){return e.getNormalizedAbsolutePath(ke,U)}function ae(ke){return y[ke-1]}function V(ke){return oe[ke-1]}function le(ke){if(!!ke){var Ue=e.BuilderState.createManyToManyPathMap();return ke.forEach(function(He){var ar=He[0],gr=He[1];return Ue.set(ae(ar),V(gr))}),Ue}}}e.createBuildProgramUsingProgramBuildInfo=D;function l(_,J){return{getState:e.notImplemented,backupState:e.noop,restoreState:e.noop,getProgram:w,getProgramOrUndefined:function(){return _().program},releaseProgram:function(){return _().program=void 0},getCompilerOptions:function(){return _().compilerOptions},getSourceFile:function(j){return w().getSourceFile(j)},getSourceFiles:function(){return w().getSourceFiles()},getOptionsDiagnostics:function(j){return w().getOptionsDiagnostics(j)},getGlobalDiagnostics:function(j){return w().getGlobalDiagnostics(j)},getConfigFileParsingDiagnostics:function(){return J},getSyntacticDiagnostics:function(j,U){return w().getSyntacticDiagnostics(j,U)},getDeclarationDiagnostics:function(j,U){return w().getDeclarationDiagnostics(j,U)},getSemanticDiagnostics:function(j,U){return w().getSemanticDiagnostics(j,U)},emit:function(j,U,z,y,oe){return w().emit(j,U,z,y,oe)},emitBuildInfo:function(j,U){return w().emitBuildInfo(j,U)},getAllDependencies:e.notImplemented,getCurrentDirectory:function(){return w().getCurrentDirectory()},close:e.noop};function w(){return e.Debug.checkDefined(_().program)}}e.createRedirectedBuilderProgram=l})(Pe||(Pe={}));var Pe;(function(e){function a(W,N,Q,pe,F,g){return e.createBuilderProgram(e.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(W,N,Q,pe,F,g))}e.createSemanticDiagnosticsBuilderProgram=a;function O(W,N,Q,pe,F,g){return e.createBuilderProgram(e.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(W,N,Q,pe,F,g))}e.createEmitAndSemanticDiagnosticsBuilderProgram=O;function L(W,N,Q,pe,F,g){var S=e.getBuilderCreationParameters(W,N,Q,pe,F,g),H=S.newProgram,se=S.configFileParsingDiagnostics;return e.createRedirectedBuilderProgram(function(){return{program:H,compilerOptions:H.getCompilerOptions()}},se)}e.createAbstractBuilder=L})(Pe||(Pe={}));var Pe;(function(e){function a(N){return e.endsWith(N,"/node_modules/.staging")?e.removeSuffix(N,"/.staging"):e.some(e.ignoredPaths,function(Q){return e.stringContains(N,Q)})?void 0:N}e.removeIgnoredPath=a;function O(N){var Q=e.getRootLength(N);if(N.length===Q)return!1;var pe=N.indexOf(e.directorySeparator,Q);if(pe===-1)return!1;var F=N.substring(Q,pe+1),g=Q>1||N.charCodeAt(0)!==47;if(g&&N.search(/[a-zA-Z]:/)!==0&&F.search(/[a-zA-z]\$\//)===0){if(pe=N.indexOf(e.directorySeparator,pe+1),pe===-1)return!1;F=N.substring(Q+F.length,pe+1)}if(g&&F.search(/users\//i)!==0)return!0;for(var S=pe+1,H=2;H>0;H--)if(S=N.indexOf(e.directorySeparator,S)+1,S===0)return!1;return!0}e.canWatchDirectory=O;function L(N,Q,pe){var F,g,S,H=e.createMultiMap(),se=[],p=e.createMultiMap(),C=!1,G,E,ue,B=e.memoize(function(){return N.getCurrentDirectory()}),re=N.getCachedDirectoryStructureHost(),M=new e.Map,x=e.createCacheWithRedirects(),ie=e.createCacheWithRedirects(),_e=e.createModuleResolutionCache(B(),N.getCanonicalFileName,void 0,x,ie),Y=new e.Map,Z=e.createCacheWithRedirects(),k=e.createTypeReferenceDirectiveResolutionCache(B(),N.getCanonicalFileName,void 0,_e.getPackageJsonInfoCache(),Z),I=[".ts",".tsx",".js",".jsx",".json"],ne=new e.Map,ee=new e.Map,A=Q&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(Q,B())),f=A&&N.toPath(A),P=f!==void 0?f.split(e.directorySeparator).length:0,D=new e.Map;return{getModuleResolutionCache:function(){return _e},startRecordingFilesWithChangedResolutions:j,finishRecordingFilesWithChangedResolutions:U,startCachingPerDirectoryResolution:oe,finishCachingPerDirectoryResolution:ve,resolveModuleNames:V,getResolvedModuleWithFailedLookupLocationsFromCache:le,resolveTypeReferenceDirectives:ae,removeResolutionsFromProjectReferenceRedirects:ge,removeResolutionsOfFile:Fe,hasChangedAutomaticTypeDirectiveNames:function(){return C},invalidateResolutionOfFile:ur,invalidateResolutionsOfFailedLookupLocations:Br,setFilesWithInvalidatedNonRelativeUnresolvedImports:Ir,createHasInvalidatedResolution:y,isFileWithInvalidatedNonRelativeUnresolvedImports:z,updateTypeRootsWatch:Pr,closeTypeRootsWatch:n,clear:w};function l(Le){return Le.resolvedModule}function _(Le){return Le.resolvedTypeReferenceDirective}function J(Le,Xe){return Le===void 0||Xe.length<=Le.length?!1:e.startsWith(Xe,Le)&&Xe[Le.length]===e.directorySeparator}function w(){e.clearMap(ee,e.closeFileWatcherOf),ne.clear(),H.clear(),n(),M.clear(),Y.clear(),p.clear(),se.length=0,G=void 0,E=void 0,ue=void 0,oe(),C=!1}function j(){F=[]}function U(){var Le=F;return F=void 0,Le}function z(Le){if(!S)return!1;var Xe=S.get(Le);return!!Xe&&!!Xe.length}function y(Le){if(Br(),Le)return g=void 0,e.returnTrue;var Xe=g;return g=void 0,function(Cr){return!!Xe&&Xe.has(Cr)||z(Cr)}}function oe(){_e.clear(),k.clear(),H.forEach(Ge),H.clear()}function ve(){S=void 0,oe(),ee.forEach(function(Le,Xe){Le.refCount===0&&(ee.delete(Xe),Le.watcher.close())}),C=!1}function ce(Le,Xe,Cr,Lr,Jr){var Rr,ci=e.resolveModuleName(Le,Xe,Cr,Lr,_e,Jr);if(!N.getGlobalCache)return ci;var be=N.getGlobalCache();if(be!==void 0&&!e.isExternalModuleNameRelative(Le)&&!(ci.resolvedModule&&e.extensionIsTS(ci.resolvedModule.extension))){var or=e.loadModuleFromGlobalCache(e.Debug.checkDefined(N.globalCacheResolutionModuleName)(Le),N.projectName,Cr,Lr,be,_e),Kr=or.resolvedModule,ei=or.failedLookupLocations;if(Kr)return ci.resolvedModule=Kr,(Rr=ci.failedLookupLocations).push.apply(Rr,ei),ci}return ci}function m(Le,Xe,Cr,Lr,Jr){return e.resolveTypeReferenceDirective(Le,Xe,Cr,Lr,Jr,k)}function de(Le){var Xe,Cr,Lr,Jr=Le.names,Rr=Le.containingFile,ci=Le.redirectedReference,be=Le.cache,or=Le.perDirectoryCacheWithRedirects,Kr=Le.loader,ei=Le.getResolutionWithResolvedFileName,li=Le.shouldRetryResolution,Si=Le.reusedNames,qi=Le.logChanges,ft=Le.containingSourceFile,bt=N.toPath(Rr),aa=be.get(bt)||be.set(bt,e.createModeAwareCache()).get(bt),sr=e.getDirectoryPath(bt),Ji=or.getOrCreateMapOfCacheRedirects(ci),di=Ji.get(sr);di||(di=e.createModeAwareCache(),Ji.set(sr,di));for(var X=[],Ye=N.getCompilationSettings(),Be=qi&&z(bt),Qe=N.getCurrentProgram(),_r=Qe&&Qe.getResolvedProjectReferenceToRedirect(Rr),hr=_r?!ci||ci.sourceFile.path!==_r.sourceFile.path:!!ci,Dr=e.createModeAwareCache(),Me=0,v=0,xe=Jr;v<xe.length;v++){var ze=xe[v],Je=ft?e.getModeForResolutionAtIndex(ft,Me):void 0;Me++;var Oe=aa.get(ze,Je);if(!Dr.has(ze,Je)&&hr||!Oe||Oe.isInvalidated||Be&&!e.isExternalModuleNameRelative(ze)&&li(Oe)){var Fr=Oe,Xr=di.get(ze,Je);if(Xr){Oe=Xr;var Or=((Xe=N.getCompilerHost)===null||Xe===void 0?void 0:Xe.call(N))||N;if(e.isTraceEnabled(Ye,Or)){var We=ei(Oe);e.trace(Or,Kr===ce?We!=null&&We.resolvedFileName?We.packagetId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:We!=null&&We.resolvedFileName?We.packagetId?e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved,ze,Rr,e.getDirectoryPath(Rr),We==null?void 0:We.resolvedFileName,(We==null?void 0:We.packagetId)&&e.packageIdToString(We.packagetId))}}else Oe=Kr(ze,Rr,Ye,((Cr=N.getCompilerHost)===null||Cr===void 0?void 0:Cr.call(N))||N,ci,ft),di.set(ze,Je,Oe),N.onDiscoveredSymlink&&W(Oe)&&N.onDiscoveredSymlink();aa.set(ze,Je,Oe),gr(ze,Oe,bt,ei),Fr&&he(Fr,bt,ei),qi&&F&&!mr(Fr,Oe)&&(F.push(bt),qi=!1)}else{var Or=((Lr=N.getCompilerHost)===null||Lr===void 0?void 0:Lr.call(N))||N;if(e.isTraceEnabled(Ye,Or)&&!Dr.has(ze,Je)){var We=ei(Oe);e.trace(Or,Kr===ce?We!=null&&We.resolvedFileName?We.packagetId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:We!=null&&We.resolvedFileName?We.packagetId?e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,ze,Rr,We==null?void 0:We.resolvedFileName,(We==null?void 0:We.packagetId)&&e.packageIdToString(We.packagetId))}}e.Debug.assert(Oe!==void 0&&!Oe.isInvalidated),Dr.set(ze,Je,!0),X.push(ei(Oe))}return aa.forEach(function(Nr,Ur,si){!Dr.has(Ur,si)&&!e.contains(Si,Ur)&&(he(Nr,bt,ei),aa.delete(Ur,si))}),X;function mr(Nr,Ur){if(Nr===Ur)return!0;if(!Nr||!Ur)return!1;var si=ei(Nr),mi=ei(Ur);return si===mi?!0:!si||!mi?!1:si.resolvedFileName===mi.resolvedFileName}}function ae(Le,Xe,Cr){return de({names:Le,containingFile:Xe,redirectedReference:Cr,cache:Y,perDirectoryCacheWithRedirects:Z,loader:m,getResolutionWithResolvedFileName:_,shouldRetryResolution:function(Lr){return Lr.resolvedTypeReferenceDirective===void 0}})}function V(Le,Xe,Cr,Lr,Jr){return de({names:Le,containingFile:Xe,redirectedReference:Lr,cache:M,perDirectoryCacheWithRedirects:x,loader:ce,getResolutionWithResolvedFileName:l,shouldRetryResolution:function(Rr){return!Rr.resolvedModule||!e.resolutionExtensionIsTSOrJson(Rr.resolvedModule.extension)},reusedNames:Cr,logChanges:pe,containingSourceFile:Jr})}function le(Le,Xe,Cr){var Lr=M.get(N.toPath(Xe));if(!!Lr)return Lr.get(Le,Cr)}function ke(Le){return e.endsWith(Le,"/node_modules/@types")}function Ue(Le,Xe){if(J(f,Xe)){Le=e.isRootedDiskPath(Le)?e.normalizePath(Le):e.getNormalizedAbsolutePath(Le,B());var Cr=Xe.split(e.directorySeparator),Lr=Le.split(e.directorySeparator);return e.Debug.assert(Lr.length===Cr.length,"FailedLookup: ".concat(Le," failedLookupLocationPath: ").concat(Xe)),Cr.length>P+1?{dir:Lr.slice(0,P+1).join(e.directorySeparator),dirPath:Cr.slice(0,P+1).join(e.directorySeparator)}:{dir:A,dirPath:f,nonRecursive:!1}}return He(e.getDirectoryPath(e.getNormalizedAbsolutePath(Le,B())),e.getDirectoryPath(Xe))}function He(Le,Xe){for(;e.pathContainsNodeModules(Xe);)Le=e.getDirectoryPath(Le),Xe=e.getDirectoryPath(Xe);if(e.isNodeModulesDirectory(Xe))return O(e.getDirectoryPath(Xe))?{dir:Le,dirPath:Xe}:void 0;var Cr=!0,Lr,Jr;if(f!==void 0)for(;!J(Xe,f);){var Rr=e.getDirectoryPath(Xe);if(Rr===Xe)break;Cr=!1,Lr=Xe,Jr=Le,Xe=Rr,Le=e.getDirectoryPath(Le)}return O(Xe)?{dir:Jr||Le,dirPath:Lr||Xe,nonRecursive:Cr}:void 0}function ar(Le){return e.fileExtensionIsOneOf(Le,I)}function gr(Le,Xe,Cr,Lr){if(Xe.refCount)Xe.refCount++,e.Debug.assertIsDefined(Xe.files);else{Xe.refCount=1,e.Debug.assert(e.length(Xe.files)===0),e.isExternalModuleNameRelative(Le)?me(Xe):H.add(Le,Xe);var Jr=Lr(Xe);Jr&&Jr.resolvedFileName&&p.add(N.toPath(Jr.resolvedFileName),Xe)}(Xe.files||(Xe.files=[])).push(Cr)}function me(Le){e.Debug.assert(!!Le.refCount);var Xe=Le.failedLookupLocations;if(!!Xe.length){se.push(Le);for(var Cr=!1,Lr=0,Jr=Xe;Lr<Jr.length;Lr++){var Rr=Jr[Lr],ci=N.toPath(Rr),be=Ue(Rr,ci);if(be){var or=be.dir,Kr=be.dirPath,ei=be.nonRecursive;if(!ar(ci)){var li=ne.get(ci)||0;ne.set(ci,li+1)}Kr===f?(e.Debug.assert(!ei),Cr=!0):er(or,Kr,ei)}}Cr&&er(A,f,!0)}}function Ge(Le,Xe){var Cr=N.getCurrentProgram();(!Cr||!Cr.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(Xe))&&Le.forEach(me)}function er(Le,Xe,Cr){var Lr=ee.get(Xe);Lr?(e.Debug.assert(!!Cr==!!Lr.nonRecursive),Lr.refCount++):ee.set(Xe,{watcher:ye(Le,Xe,Cr),refCount:1,nonRecursive:Cr})}function he(Le,Xe,Cr){if(e.unorderedRemoveItem(e.Debug.checkDefined(Le.files),Xe),Le.refCount--,!Le.refCount){var Lr=Cr(Le);if(Lr&&Lr.resolvedFileName&&p.remove(N.toPath(Lr.resolvedFileName),Le),!!e.unorderedRemoveItem(se,Le)){for(var Jr=Le.failedLookupLocations,Rr=!1,ci=0,be=Jr;ci<be.length;ci++){var or=be[ci],Kr=N.toPath(or),ei=Ue(or,Kr);if(ei){var li=ei.dirPath,Si=ne.get(Kr);Si&&(Si===1?ne.delete(Kr):(e.Debug.assert(Si>1),ne.set(Kr,Si-1))),li===f?Rr=!0:we(li)}}Rr&&we(f)}}}function we(Le){var Xe=ee.get(Le);Xe.refCount--}function ye(Le,Xe,Cr){return N.watchDirectoryOfFailedLookupLocation(Le,function(Lr){var Jr=N.toPath(Lr);re&&re.addOrDeleteFileOrDirectory(Lr,Jr),dr(Jr,Xe===Jr)},Cr?0:1)}function Se(Le,Xe,Cr){var Lr=Le.get(Xe);Lr&&(Lr.forEach(function(Jr){return he(Jr,Xe,Cr)}),Le.delete(Xe))}function ge(Le){if(!!e.fileExtensionIs(Le,".json")){var Xe=N.getCurrentProgram();if(!!Xe){var Cr=Xe.getResolvedProjectReferenceByPath(Le);!Cr||Cr.commandLine.fileNames.forEach(function(Lr){return Fe(N.toPath(Lr))})}}}function Fe(Le){Se(M,Le,l),Se(Y,Le,_)}function cr(Le,Xe){if(!Le)return!1;for(var Cr=!1,Lr=0,Jr=Le;Lr<Jr.length;Lr++){var Rr=Jr[Lr];if(!(Rr.isInvalidated||!Xe(Rr))){Rr.isInvalidated=Cr=!0;for(var ci=0,be=e.Debug.checkDefined(Rr.files);ci<be.length;ci++){var or=be[ci];(g||(g=new e.Set)).add(or),C=C||e.endsWith(or,e.inferredTypesContainingFile)}}}return Cr}function ur(Le){Fe(Le);var Xe=C;cr(p.get(Le),e.returnTrue)&&C&&!Xe&&N.onChangedAutomaticTypeDirectiveNames()}function Ir(Le){e.Debug.assert(S===Le||S===void 0),S=Le}function dr(Le,Xe){if(Xe)(ue||(ue=[])).push(Le);else{var Cr=a(Le);if(!Cr||(Le=Cr,N.fileIsOpen(Le)))return!1;var Lr=e.getDirectoryPath(Le);if(ke(Le)||e.isNodeModulesDirectory(Le)||ke(Lr)||e.isNodeModulesDirectory(Lr))(G||(G=[])).push(Le),(E||(E=new e.Set)).add(Le);else{if(!ar(Le)&&!ne.has(Le)||e.isEmittedFileOfProgram(N.getCurrentProgram(),Le))return!1;(G||(G=[])).push(Le);var Jr=e.parseNodeModuleFromPath(Le);Jr&&(E||(E=new e.Set)).add(Jr)}}N.scheduleInvalidateResolutionsOfFailedLookupLocations()}function Br(){if(!G&&!E&&!ue)return!1;var Le=cr(se,Tr);return G=void 0,E=void 0,ue=void 0,Le}function Tr(Le){return Le.failedLookupLocations.some(function(Xe){var Cr=N.toPath(Xe);return e.contains(G,Cr)||e.firstDefinedIterator((E==null?void 0:E.keys())||e.emptyIterator,function(Lr){return e.startsWith(Cr,Lr)?!0:void 0})||(ue==null?void 0:ue.some(function(Lr){return J(Lr,Cr)}))})}function n(){e.clearMap(D,e.closeFileWatcher)}function Er(Le,Xe){if(J(f,Xe))return f;var Cr=He(Le,Xe);return Cr&&ee.has(Cr.dirPath)?Cr.dirPath:void 0}function br(Le,Xe){return N.watchTypeRootsDirectory(Xe,function(Cr){var Lr=N.toPath(Cr);re&&re.addOrDeleteFileOrDirectory(Cr,Lr),C=!0,N.onChangedAutomaticTypeDirectiveNames();var Jr=Er(Xe,Le);Jr&&dr(Lr,Jr===Lr)},1)}function Pr(){var Le=N.getCompilationSettings();if(Le.types){n();return}var Xe=e.getEffectiveTypeRoots(Le,{directoryExists:Ce,getCurrentDirectory:B});Xe?e.mutateMap(D,e.arrayToMap(Xe,function(Cr){return N.toPath(Cr)}),{createNewValue:br,onDeleteValue:e.closeFileWatcher}):n()}function Ce(Le){var Xe=e.getDirectoryPath(e.getDirectoryPath(Le)),Cr=N.toPath(Xe);return Cr===f||O(Cr)}}e.createResolutionCache=L;function W(N){var Q,pe;return!!(((Q=N.resolvedModule)===null||Q===void 0?void 0:Q.originalPath)||((pe=N.resolvedTypeReferenceDirective)===null||pe===void 0?void 0:pe.originalPath))}})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(z){z[z.Relative=0]="Relative",z[z.NonRelative=1]="NonRelative",z[z.Shortest=2]="Shortest",z[z.ExternalNonRelative=3]="ExternalNonRelative"})(L||(L={}));var W;(function(z){z[z.Minimal=0]="Minimal",z[z.Index=1]="Index",z[z.JsExtension=2]="JsExtension"})(W||(W={}));function N(z,y,oe,ve){var ce=y.importModuleSpecifierPreference,m=y.importModuleSpecifierEnding;return{relativePreference:ce==="relative"?0:ce==="non-relative"?1:ce==="project-relative"?3:2,ending:de()};function de(){switch(m){case"minimal":return 0;case"index":return 1;case"js":return 2;default:return x(ve)||pe(oe,ve.path,z)?2:e.getEmitModuleResolutionKind(oe)!==e.ModuleResolutionKind.NodeJs?1:0}}}function Q(z,y,oe,ve){return{relativePreference:e.isExternalModuleNameRelative(y)?0:1,ending:e.hasJSFileExtension(y)||pe(z,oe,ve)?2:e.getEmitModuleResolutionKind(z)!==e.ModuleResolutionKind.NodeJs||e.endsWith(y,"index")?1:0}}function pe(z,y,oe){var ve;return e.getEmitModuleResolutionKind(z)!==e.ModuleResolutionKind.Node12&&e.getEmitModuleResolutionKind(z)!==e.ModuleResolutionKind.NodeNext?!1:e.getImpliedNodeFormatForFile(y,(ve=oe.getPackageJsonInfoCache)===null||ve===void 0?void 0:ve.call(oe),F(oe),z)!==e.ModuleKind.CommonJS}function F(z){var y;return{fileExists:z.fileExists,readFile:e.Debug.checkDefined(z.readFile),directoryExists:z.directoryExists,getCurrentDirectory:z.getCurrentDirectory,realpath:z.realpath,useCaseSensitiveFileNames:(y=z.useCaseSensitiveFileNames)===null||y===void 0?void 0:y.call(z)}}function g(z,y,oe,ve,ce,m){var de=se(z,y,oe,ve,ce,Q(z,m,oe,ce),{});if(de!==m)return de}O.updateModuleSpecifier=g;function S(z,y,oe,ve,ce){return se(z,y,oe,ve,ce,N(ce,{},z,y),{})}O.getModuleSpecifier=S;function H(z,y,oe,ve,ce){var m=B(y.path,ve),de=Z(y.path,oe,ve,ce);return e.firstDefined(de,function(ae){return P(ae,m,y,ve,z,!0)})}O.getNodeModulesPackageName=H;function se(z,y,oe,ve,ce,m,de){var ae=B(oe,ce),V=Z(oe,ve,ce,de);return e.firstDefined(V,function(le){return P(le,ae,y,ce,z)})||re(ve,ae,z,ce,m)}function p(z,y,oe,ve){return C(z,y,oe,ve)[0]}O.tryGetModuleSpecifiersFromCache=p;function C(z,y,oe,ve){var ce,m=e.getSourceFileOfModule(z);if(!m)return e.emptyArray;var de=(ce=oe.getModuleSpecifierCache)===null||ce===void 0?void 0:ce.call(oe),ae=de==null?void 0:de.get(y.path,m.path,ve);return[ae==null?void 0:ae.moduleSpecifiers,m,ae==null?void 0:ae.modulePaths,de]}function G(z,y,oe,ve,ce,m){return E(z,y,oe,ve,ce,m).moduleSpecifiers}O.getModuleSpecifiers=G;function E(z,y,oe,ve,ce,m){var de=!1,ae=I(z,y);if(ae)return{moduleSpecifiers:[ae],computedWithoutCache:de};var V=C(z,ve,ce,m),le=V[0],ke=V[1],Ue=V[2],He=V[3];if(le)return{moduleSpecifiers:le,computedWithoutCache:de};if(!ke)return{moduleSpecifiers:e.emptyArray,computedWithoutCache:de};de=!0,Ue||(Ue=k(ve.path,ke.originalFileName,ce));var ar=ue(Ue,oe,ve,ce,m);return He==null||He.set(ve.path,ke.path,m,Ue,ar),{moduleSpecifiers:ar,computedWithoutCache:de}}O.getModuleSpecifiersWithCacheInfo=E;function ue(z,y,oe,ve,ce){var m=B(oe.path,ve),de=N(ve,ce,y,oe),ae=e.forEach(z,function(he){return e.forEach(ve.getFileIncludeReasons().get(e.toPath(he.path,ve.getCurrentDirectory(),m.getCanonicalFileName)),function(we){if(!(we.kind!==e.FileIncludeKind.Import||we.file!==oe.path)){var ye=e.getModuleNameStringLiteralAt(oe,we.index).text;return de.relativePreference!==1||!e.pathIsRelative(ye)?ye:void 0}})});if(ae){var V=[ae];return V}for(var le=e.some(z,function(he){return he.isInNodeModules}),ke,Ue,He,ar=0,gr=z;ar<gr.length;ar++){var me=gr[ar],Ge=P(me,m,oe,ve,y);if(ke=e.append(ke,Ge),Ge&&me.isRedirect)return ke;if(!Ge&&!me.isRedirect){var er=re(me.path,m,y,ve,de);e.pathIsBareSpecifier(er)?Ue=e.append(Ue,er):(!le||me.isInNodeModules)&&(He=e.append(He,er))}}return Ue!=null&&Ue.length?Ue:ke!=null&&ke.length?ke:e.Debug.checkDefined(He)}function B(z,y){var oe=e.createGetCanonicalFileName(y.useCaseSensitiveFileNames?y.useCaseSensitiveFileNames():!0),ve=e.getDirectoryPath(z);return{getCanonicalFileName:oe,importingSourceFileName:z,sourceDirectory:ve}}function re(z,y,oe,ve,ce){var m=ce.ending,de=ce.relativePreference,ae=oe.baseUrl,V=oe.paths,le=oe.rootDirs,ke=y.sourceDirectory,Ue=y.getCanonicalFileName,He=le&&f(le,z,ke,Ue,m,oe)||_(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(ke,z,Ue)),m,oe);if(!ae&&!V||de===0)return He;var ar=e.getNormalizedAbsolutePath(e.getPathsBasePath(oe,ve)||ae,ve.getCurrentDirectory()),gr=j(z,ar,Ue);if(!gr)return He;var me=_(gr,m,oe),Ge=V&&ne(e.removeFileExtension(gr),me,V),er=Ge===void 0&&ae!==void 0?me:Ge;if(!er)return He;if(de===1)return er;if(de===3){var he=oe.configFilePath?e.toPath(e.getDirectoryPath(oe.configFilePath),ve.getCurrentDirectory(),y.getCanonicalFileName):y.getCanonicalFileName(ve.getCurrentDirectory()),we=e.toPath(z,he,Ue),ye=e.startsWith(ke,he),Se=e.startsWith(we,he);if(ye&&!Se||!ye&&Se)return er;var ge=_e(ve,e.getDirectoryPath(we)),Fe=_e(ve,ke);return Fe!==ge?er:He}return de!==2&&e.Debug.assertNever(de),U(er)||M(He)<M(er)?He:er}function M(z){for(var y=0,oe=e.startsWith(z,"./")?2:0;oe<z.length;oe++)z.charCodeAt(oe)===47&&y++;return y}O.countPathComponents=M;function x(z){var y=z.imports;return e.firstDefined(y,function(oe){var ve=oe.text;return e.pathIsRelative(ve)?e.hasJSFileExtension(ve):void 0})||!1}function ie(z,y){return e.compareBooleans(y.isRedirect,z.isRedirect)||e.compareNumberOfDirectorySeparators(z.path,y.path)}function _e(z,y){return z.getNearestAncestorDirectoryWithPackageJson?z.getNearestAncestorDirectoryWithPackageJson(y):!!e.forEachAncestorDirectory(y,function(oe){return z.fileExists(e.combinePaths(oe,"package.json"))?!0:void 0})}function Y(z,y,oe,ve,ce){var m,de=e.hostGetCanonicalFileName(oe),ae=oe.getCurrentDirectory(),V=oe.isSourceOfProjectReferenceRedirect(y)?oe.getProjectReferenceRedirect(y):void 0,le=e.toPath(y,ae,de),ke=oe.redirectTargetsMap.get(le)||e.emptyArray,Ue=qe(qe(qe([],V?[V]:e.emptyArray,!0),[y],!1),ke,!0),He=Ue.map(function(he){return e.getNormalizedAbsolutePath(he,ae)}),ar=!e.every(He,e.containsIgnoredPath);if(!ve){var gr=e.forEach(He,function(he){return!(ar&&e.containsIgnoredPath(he))&&ce(he,V===he)});if(gr)return gr}var me=(m=oe.getSymlinkCache)===null||m===void 0?void 0:m.call(oe).getSymlinkedDirectoriesByRealpath(),Ge=e.getNormalizedAbsolutePath(y,ae),er=me&&e.forEachAncestorDirectory(e.getDirectoryPath(Ge),function(he){var we=me.get(e.ensureTrailingDirectorySeparator(e.toPath(he,ae,de)));if(!!we)return e.startsWithDirectory(z,he,de)?!1:e.forEach(He,function(ye){if(!!e.startsWithDirectory(ye,he,de))for(var Se=e.getRelativePathFromDirectory(he,ye,de),ge=0,Fe=we;ge<Fe.length;ge++){var cr=Fe[ge],ur=e.resolvePath(cr,Se),Ir=ce(ur,ye===V);if(ar=!0,Ir)return Ir}})});return er||(ve?e.forEach(He,function(he){return ar&&e.containsIgnoredPath(he)?void 0:ce(he,he===V)}):void 0)}O.forEachFileNameOfModule=Y;function Z(z,y,oe,ve,ce){var m;ce===void 0&&(ce=e.toPath(y,oe.getCurrentDirectory(),e.hostGetCanonicalFileName(oe)));var de=(m=oe.getModuleSpecifierCache)===null||m===void 0?void 0:m.call(oe);if(de){var ae=de.get(z,ce,ve);if(ae!=null&&ae.modulePaths)return ae.modulePaths}var V=k(z,y,oe);return de&&de.setModulePaths(z,ce,ve,V),V}function k(z,y,oe){var ve=e.hostGetCanonicalFileName(oe),ce=new e.Map,m=!1;Y(z,y,oe,!0,function(He,ar){var gr=e.pathContainsNodeModules(He);ce.set(He,{path:ve(He),isRedirect:ar,isInNodeModules:gr}),m=m||gr});for(var de=[],ae=function(He){var ar=e.ensureTrailingDirectorySeparator(He),gr;ce.forEach(function(Ge,er){var he=Ge.path,we=Ge.isRedirect,ye=Ge.isInNodeModules;e.startsWith(he,ar)&&((gr||(gr=[])).push({path:er,isRedirect:we,isInNodeModules:ye}),ce.delete(er))}),gr&&(gr.length>1&&gr.sort(ie),de.push.apply(de,gr));var me=e.getDirectoryPath(He);if(me===He)return V=He,"break";He=me,V=He},V,le=e.getDirectoryPath(z);ce.size!==0;){var ke=ae(le);if(le=V,ke==="break")break}if(ce.size){var Ue=e.arrayFrom(ce.values());Ue.length>1&&Ue.sort(ie),de.push.apply(de,Ue)}return de}function I(z,y){var oe,ve=(oe=z.declarations)===null||oe===void 0?void 0:oe.find(function(de){return e.isNonGlobalAmbientModule(de)&&(!e.isExternalModuleAugmentation(de)||!e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(de.name)))});if(ve)return ve.name.text;var ce=e.mapDefined(z.declarations,function(de){var ae,V,le,ke;if(!e.isModuleDeclaration(de))return;var Ue=me(de);if(!(((ae=Ue==null?void 0:Ue.parent)===null||ae===void 0?void 0:ae.parent)&&e.isModuleBlock(Ue.parent)&&e.isAmbientModule(Ue.parent.parent)&&e.isSourceFile(Ue.parent.parent.parent)))return;var He=(ke=(le=(V=Ue.parent.parent.symbol.exports)===null||V===void 0?void 0:V.get("export="))===null||le===void 0?void 0:le.valueDeclaration)===null||ke===void 0?void 0:ke.expression;if(!He)return;var ar=y.getSymbolAtLocation(He);if(!ar)return;var gr=(ar==null?void 0:ar.flags)&2097152?y.getAliasedSymbol(ar):ar;if(gr===de.symbol)return Ue.parent.parent;function me(Ge){for(;Ge.flags&4;)Ge=Ge.parent;return Ge}}),m=ce[0];if(m)return m.name.text}function ne(z,y,oe){for(var ve in oe)for(var ce=0,m=oe[ve];ce<m.length;ce++){var de=m[ce],ae=e.removeFileExtension(e.normalizePath(de)),V=ae.indexOf("*");if(V!==-1){var le=ae.substr(0,V),ke=ae.substr(V+1);if(y.length>=le.length+ke.length&&e.startsWith(y,le)&&e.endsWith(y,ke)||!ke&&y===e.removeTrailingDirectorySeparator(le)){var Ue=y.substr(le.length,y.length-ke.length-le.length);return ve.replace("*",Ue)}}else if(ae===y||ae===z)return ve}}var ee;(function(z){z[z.Exact=0]="Exact",z[z.Directory=1]="Directory",z[z.Pattern=2]="Pattern"})(ee||(ee={}));function A(z,y,oe,ve,ce,m,de){if(de===void 0&&(de=0),typeof ce=="string"){var ae=e.getNormalizedAbsolutePath(e.combinePaths(oe,ce),void 0),V=e.hasTSFileExtension(y)?e.removeFileExtension(y)+w(y,z):void 0;switch(de){case 0:if(e.comparePaths(y,ae)===0||V&&e.comparePaths(V,ae)===0)return{moduleFileToTry:ve};break;case 1:if(e.containsPath(ae,y)){var le=e.getRelativePathFromDirectory(ae,y,!1);return{moduleFileToTry:e.getNormalizedAbsolutePath(e.combinePaths(e.combinePaths(ve,ce),le),void 0)}}break;case 2:var ke=ae.indexOf("*"),Ue=ae.slice(0,ke),He=ae.slice(ke+1);if(e.startsWith(y,Ue)&&e.endsWith(y,He)){var ar=y.slice(Ue.length,y.length-He.length);return{moduleFileToTry:ve.replace("*",ar)}}if(V&&e.startsWith(V,Ue)&&e.endsWith(V,He)){var ar=V.slice(Ue.length,V.length-He.length);return{moduleFileToTry:ve.replace("*",ar)}}break}}else{if(Array.isArray(ce))return e.forEach(ce,function(we){return A(z,y,oe,ve,we,m)});if(typeof ce=="object"&&ce!==null){if(e.allKeysStartWithDot(ce))return e.forEach(e.getOwnKeys(ce),function(we){var ye=e.getNormalizedAbsolutePath(e.combinePaths(ve,we),void 0),Se=e.endsWith(we,"/")?1:e.stringContains(we,"*")?2:0;return A(z,y,oe,ye,ce[we],m,Se)});for(var gr=0,me=e.getOwnKeys(ce);gr<me.length;gr++){var Ge=me[gr];if(Ge==="default"||m.indexOf(Ge)>=0||e.isApplicableVersionedTypesKey(m,Ge)){var er=ce[Ge],he=A(z,y,oe,ve,er,m);if(he)return he}}}}}function f(z,y,oe,ve,ce,m){var de=l(y,z,ve);if(de!==void 0){var ae=l(oe,z,ve),V=ae!==void 0?e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(ae,de,ve)):de;return e.getEmitModuleResolutionKind(m)===e.ModuleResolutionKind.NodeJs?_(V,ce,m):e.removeFileExtension(V)}}function P(z,y,oe,ve,ce,m){var de=z.path,ae=z.isRedirect,V=y.getCanonicalFileName,le=y.sourceDirectory;if(!ve.fileExists||!ve.readFile)return;var ke=e.getNodeModulePathParts(de);if(!ke)return;var Ue=de,He=!1;if(!m)for(var ar=ke.packageRootIndex,gr=void 0;;){var me=cr(ar),Ge=me.moduleFileToTry,er=me.packageRootPath,he=me.blockedByExports,we=me.verbatimFromExports;if(e.getEmitModuleResolutionKind(ce)!==e.ModuleResolutionKind.Classic){if(he)return;if(we)return Ge}if(er){Ue=er,He=!0;break}if(gr||(gr=Ge),ar=de.indexOf(e.directorySeparator,ar+1),ar===-1){Ue=ur(gr);break}}if(ae&&!He)return;var ye=ve.getGlobalTypingsCacheLocation&&ve.getGlobalTypingsCacheLocation(),Se=V(Ue.substring(0,ke.topLevelNodeModulesIndex));if(!(e.startsWith(le,Se)||ye&&e.startsWith(V(ye),Se)))return;var ge=Ue.substring(ke.topLevelPackageNameIndex+1),Fe=e.getPackageNameFromTypesPackageName(ge);return e.getEmitModuleResolutionKind(ce)===e.ModuleResolutionKind.Classic&&Fe===ge?void 0:Fe;function cr(Ir){var dr,Br,Tr=de.substring(0,Ir),n=e.combinePaths(Tr,"package.json"),Er=de,br=(Br=(dr=ve.getPackageJsonInfoCache)===null||dr===void 0?void 0:dr.call(ve))===null||Br===void 0?void 0:Br.getPackageJsonInfo(n);if(typeof br=="object"||br===void 0&&ve.fileExists(n)){var Pr=(br==null?void 0:br.packageJsonContent)||JSON.parse(ve.readFile(n));if(e.getEmitModuleResolutionKind(ce)===e.ModuleResolutionKind.Node12||e.getEmitModuleResolutionKind(ce)===e.ModuleResolutionKind.NodeNext){var Ce=["node",oe.impliedNodeFormat===e.ModuleKind.ESNext?"import":"require","types"],Le=Pr.exports&&typeof Pr.name=="string"?A(ce,de,Tr,e.getPackageNameFromTypesPackageName(Pr.name),Pr.exports,Ce):void 0;if(Le){var Xe=e.hasTSFileExtension(Le.moduleFileToTry)?{moduleFileToTry:e.removeFileExtension(Le.moduleFileToTry)+w(Le.moduleFileToTry,ce)}:Le;return Ve(Ve({},Xe),{verbatimFromExports:!0})}if(Pr.exports)return{moduleFileToTry:de,blockedByExports:!0}}var Cr=Pr.typesVersions?e.getPackageJsonTypesVersionsPaths(Pr.typesVersions):void 0;if(Cr){var Lr=de.slice(Tr.length+1),Jr=ne(e.removeFileExtension(Lr),_(Lr,0,ce),Cr.paths);Jr!==void 0&&(Er=e.combinePaths(Tr,Jr))}var Rr=Pr.typings||Pr.types||Pr.main;if(e.isString(Rr)){var ci=e.toPath(Rr,Tr,V);if(e.removeFileExtension(ci)===e.removeFileExtension(V(Er)))return{packageRootPath:Tr,moduleFileToTry:Er}}}return{moduleFileToTry:Er}}function ur(Ir){var dr=e.removeFileExtension(Ir);return V(dr.substring(ke.fileNameIndex))==="/index"&&!D(ve,dr.substring(0,ke.fileNameIndex))?dr.substring(0,ke.fileNameIndex):dr}}function D(z,y){if(!!z.fileExists)for(var oe=e.flatten(e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}])),ve=0,ce=oe;ve<ce.length;ve++){var m=ce[ve],de=y+m;if(z.fileExists(de))return de}}function l(z,y,oe){return e.firstDefined(y,function(ve){var ce=j(z,ve,oe);return ce!==void 0&&U(ce)?void 0:ce})}function _(z,y,oe){if(e.fileExtensionIsOneOf(z,[".json",".mjs",".cjs"]))return z;var ve=e.removeFileExtension(z);if(e.fileExtensionIsOneOf(z,[".d.mts",".mts",".d.cts",".cts"]))return ve+J(z,oe);switch(y){case 0:return e.removeSuffix(ve,"/index");case 1:return ve;case 2:return ve+J(z,oe);default:return e.Debug.assertNever(y)}}function J(z,y){var oe;return(oe=w(z,y))!==null&&oe!==void 0?oe:e.Debug.fail("Extension ".concat(e.extensionFromPath(z)," is unsupported:: FileName:: ").concat(z))}function w(z,y){var oe=e.tryGetExtensionFromPath(z);switch(oe){case".ts":case".d.ts":return".js";case".tsx":return y.jsx===1?".jsx":".js";case".js":case".jsx":case".json":return oe;case".d.mts":case".mts":case".mjs":return".mjs";case".d.cts":case".cts":case".cjs":return".cjs";default:return}}O.tryGetJSExtensionForFile=w;function j(z,y,oe){var ve=e.getRelativePathToDirectoryOrUrl(y,z,y,oe,!1);return e.isRootedDiskPath(ve)?void 0:ve}function U(z){return e.startsWith(z,"..")}})(a=e.moduleSpecifiers||(e.moduleSpecifiers={}))})(Pe||(Pe={}));var Pe;(function(e){var a=e.sys?{getCurrentDirectory:function(){return e.sys.getCurrentDirectory()},getNewLine:function(){return e.sys.newLine},getCanonicalFileName:e.createGetCanonicalFileName(e.sys.useCaseSensitiveFileNames)}:void 0;function O(l,_){var J=l===e.sys&&a?a:{getCurrentDirectory:function(){return l.getCurrentDirectory()},getNewLine:function(){return l.newLine},getCanonicalFileName:e.createGetCanonicalFileName(l.useCaseSensitiveFileNames)};if(!_)return function(j){return l.write(e.formatDiagnostic(j,J))};var w=new Array(1);return function(j){w[0]=j,l.write(e.formatDiagnosticsWithColorAndContext(w,J)+J.getNewLine()),w[0]=void 0}}e.createDiagnosticReporter=O;function L(l,_,J){return l.clearScreen&&!J.preserveWatchOutput&&!J.extendedDiagnostics&&!J.diagnostics&&e.contains(e.screenStartingMessageCodes,_.code)?(l.clearScreen(),!0):!1}e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code];function W(l,_){return e.contains(e.screenStartingMessageCodes,l.code)?_+_:_}function N(l){return l.now?l.now().toLocaleTimeString("en-US",{timeZone:"UTC"}):new Date().toLocaleTimeString()}e.getLocaleTimeString=N;function Q(l,_){return _?function(J,w,j){L(l,J,j);var U="[".concat(e.formatColorAndReset(N(l),e.ForegroundColorEscapeSequences.Grey),"] ");U+="".concat(e.flattenDiagnosticMessageText(J.messageText,l.newLine)).concat(w+w),l.write(U)}:function(J,w,j){var U="";L(l,J,j)||(U+=w),U+="".concat(N(l)," - "),U+="".concat(e.flattenDiagnosticMessageText(J.messageText,l.newLine)).concat(W(J,w)),l.write(U)}}e.createWatchStatusReporter=Q;function pe(l,_,J,w,j,U){var z=j;z.onUnRecoverableConfigFileDiagnostic=function(oe){return A(j,U,oe)};var y=e.getParsedCommandLineOfConfigFile(l,_,z,J,w);return z.onUnRecoverableConfigFileDiagnostic=void 0,y}e.parseConfigFileWithSystem=pe;function F(l){return e.countWhere(l,function(_){return _.category===e.DiagnosticCategory.Error})}e.getErrorCountForSummary=F;function g(l){var _=e.filter(l,function(J){return J.category===e.DiagnosticCategory.Error}).map(function(J){if(J.file!==void 0)return"".concat(J.file.fileName)});return _.map(function(J){var w=e.find(l,function(U){return U.file!==void 0&&U.file.fileName===J});if(w!==void 0){var j=e.getLineAndCharacterOfPosition(w.file,w.start).line;return{fileName:J,line:j+1}}})}e.getFilesInErrorForSummary=g;function S(l){return l===1?e.Diagnostics.Found_1_error_Watching_for_file_changes:e.Diagnostics.Found_0_errors_Watching_for_file_changes}e.getWatchErrorSummaryDiagnosticMessage=S;function H(l,_){var J=e.formatColorAndReset(":"+l.line,e.ForegroundColorEscapeSequences.Grey);return e.pathIsAbsolute(l.fileName)&&e.pathIsAbsolute(_)?e.getRelativePathFromDirectory(_,l.fileName,!1)+J:l.fileName+J}function se(l,_,J,w){if(l===0)return"";var j=_.filter(function(ve){return ve!==void 0}),U=j.map(function(ve){return"".concat(ve.fileName,":").concat(ve.line)}).filter(function(ve,ce,m){return m.indexOf(ve)===ce}),z=j[0]&&H(j[0],w.getCurrentDirectory()),y=l===1?e.createCompilerDiagnostic(_[0]!==void 0?e.Diagnostics.Found_1_error_in_1:e.Diagnostics.Found_1_error,l,z):e.createCompilerDiagnostic(U.length===0?e.Diagnostics.Found_0_errors:U.length===1?e.Diagnostics.Found_0_errors_in_the_same_file_starting_at_Colon_1:e.Diagnostics.Found_0_errors_in_1_files,l,U.length===1?z:U.length),oe=U.length>1?p(j,w):"";return"".concat(J).concat(e.flattenDiagnosticMessageText(y.messageText,J)).concat(J).concat(J).concat(oe)}e.getErrorSummaryText=se;function p(l,_){var J=l.filter(function(m,de,ae){return de===ae.findIndex(function(V){return(V==null?void 0:V.fileName)===(m==null?void 0:m.fileName)})});if(J.length===0)return"";var w=function(m){return Math.log(m)*Math.LOG10E+1},j=J.map(function(m){return[m,e.countWhere(l,function(de){return de.fileName===m.fileName})]}),U=j.reduce(function(m,de){return Math.max(m,de[1]||0)},0),z=e.Diagnostics.Errors_Files.message,y=z.split(" ")[0].length,oe=Math.max(y,w(U)),ve=Math.max(w(U)-y,0),ce="";return ce+=" ".repeat(ve)+z+`
`,j.forEach(function(m){var de=m[0],ae=m[1],V=Math.log(ae)*Math.LOG10E+1|0,le=V<oe?" ".repeat(oe-V):"",ke=H(de,_.getCurrentDirectory());ce+="".concat(le).concat(ae,"  ").concat(ke,`
`)}),ce}function C(l){return!!l.getState}e.isBuilderProgram=C;function G(l,_){var J=l.getCompilerOptions();J.explainFiles?E(C(l)?l.getProgram():l,_):(J.listFiles||J.listFilesOnly)&&e.forEach(l.getSourceFiles(),function(w){_(w.fileName)})}e.listFiles=G;function E(l,_){for(var J,w,j=l.getFileIncludeReasons(),U=e.createGetCanonicalFileName(l.useCaseSensitiveFileNames()),z=function(ce){return e.convertToRelativePath(ce,l.getCurrentDirectory(),U)},y=0,oe=l.getSourceFiles();y<oe.length;y++){var ve=oe[y];_("".concat(x(ve,z))),(J=j.get(ve.path))===null||J===void 0||J.forEach(function(ce){return _("  ".concat(M(l,ce,z).messageText))}),(w=ue(ve,z))===null||w===void 0||w.forEach(function(ce){return _("  ".concat(ce.messageText))})}}e.explainFiles=E;function ue(l,_){var J;return l.path!==l.resolvedPath&&(J||(J=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_is_output_of_project_reference_source_0,x(l.originalFileName,_))),l.redirectInfo&&(J||(J=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_redirects_to_file_0,x(l.redirectInfo.redirectTarget,_))),J}e.explainIfFileIsRedirect=ue;function B(l,_){var J,w=l.getCompilerOptions().configFile;if(!!(!((J=w==null?void 0:w.configFileSpecs)===null||J===void 0)&&J.validatedFilesSpec)){var j=e.createGetCanonicalFileName(l.useCaseSensitiveFileNames()),U=j(_),z=e.getDirectoryPath(e.getNormalizedAbsolutePath(w.fileName,l.getCurrentDirectory()));return e.find(w.configFileSpecs.validatedFilesSpec,function(y){return j(e.getNormalizedAbsolutePath(y,z))===U})}}e.getMatchedFileSpec=B;function re(l,_){var J,w,j=l.getCompilerOptions().configFile;if(!!(!((J=j==null?void 0:j.configFileSpecs)===null||J===void 0)&&J.validatedIncludeSpecs)){var U=e.fileExtensionIs(_,".json"),z=e.getDirectoryPath(e.getNormalizedAbsolutePath(j.fileName,l.getCurrentDirectory())),y=l.useCaseSensitiveFileNames();return e.find((w=j==null?void 0:j.configFileSpecs)===null||w===void 0?void 0:w.validatedIncludeSpecs,function(oe){if(U&&!e.endsWith(oe,".json"))return!1;var ve=e.getPatternFromSpec(oe,z,"files");return!!ve&&e.getRegexFromPattern("(".concat(ve,")$"),y).test(_)})}}e.getMatchedIncludeSpec=re;function M(l,_,J){var w,j,U=l.getCompilerOptions();if(e.isReferencedFile(_)){var z=e.getReferencedFileLocation(function(le){return l.getSourceFileByPath(le)},_),y=e.isReferenceFileLocation(z)?z.file.text.substring(z.pos,z.end):'"'.concat(z.text,'"'),oe=void 0;switch(e.Debug.assert(e.isReferenceFileLocation(z)||_.kind===e.FileIncludeKind.Import,"Only synthetic references are imports"),_.kind){case e.FileIncludeKind.Import:e.isReferenceFileLocation(z)?oe=z.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2:e.Diagnostics.Imported_via_0_from_file_1:z.text===e.externalHelpersModuleNameText?oe=z.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:e.Diagnostics.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:oe=z.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:e.Diagnostics.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case e.FileIncludeKind.ReferenceFile:e.Debug.assert(!z.packageId),oe=e.Diagnostics.Referenced_via_0_from_file_1;break;case e.FileIncludeKind.TypeReferenceDirective:oe=z.packageId?e.Diagnostics.Type_library_referenced_via_0_from_file_1_with_packageId_2:e.Diagnostics.Type_library_referenced_via_0_from_file_1;break;case e.FileIncludeKind.LibReferenceDirective:e.Debug.assert(!z.packageId),oe=e.Diagnostics.Library_referenced_via_0_from_file_1;break;default:e.Debug.assertNever(_)}return e.chainDiagnosticMessages(void 0,oe,y,x(z.file,J),z.packageId&&e.packageIdToString(z.packageId))}switch(_.kind){case e.FileIncludeKind.RootFile:if(!(!((w=U.configFile)===null||w===void 0)&&w.configFileSpecs))return e.chainDiagnosticMessages(void 0,e.Diagnostics.Root_file_specified_for_compilation);var ve=e.getNormalizedAbsolutePath(l.getRootFileNames()[_.index],l.getCurrentDirectory()),ce=B(l,ve);if(ce)return e.chainDiagnosticMessages(void 0,e.Diagnostics.Part_of_files_list_in_tsconfig_json);var m=re(l,ve);return m?e.chainDiagnosticMessages(void 0,e.Diagnostics.Matched_by_include_pattern_0_in_1,m,x(U.configFile,J)):e.chainDiagnosticMessages(void 0,e.Diagnostics.Root_file_specified_for_compilation);case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var de=_.kind===e.FileIncludeKind.OutputFromProjectReference,ae=e.Debug.checkDefined((j=l.getResolvedProjectReferences())===null||j===void 0?void 0:j[_.index]);return e.chainDiagnosticMessages(void 0,e.outFile(U)?de?e.Diagnostics.Output_from_referenced_project_0_included_because_1_specified:e.Diagnostics.Source_from_referenced_project_0_included_because_1_specified:de?e.Diagnostics.Output_from_referenced_project_0_included_because_module_is_specified_as_none:e.Diagnostics.Source_from_referenced_project_0_included_because_module_is_specified_as_none,x(ae.sourceFile.fileName,J),U.outFile?"--outFile":"--out");case e.FileIncludeKind.AutomaticTypeDirectiveFile:return e.chainDiagnosticMessages(void 0,U.types?_.packageId?e.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:e.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions:_.packageId?e.Diagnostics.Entry_point_for_implicit_type_library_0_with_packageId_1:e.Diagnostics.Entry_point_for_implicit_type_library_0,_.typeReference,_.packageId&&e.packageIdToString(_.packageId));case e.FileIncludeKind.LibFile:if(_.index!==void 0)return e.chainDiagnosticMessages(void 0,e.Diagnostics.Library_0_specified_in_compilerOptions,U.lib[_.index]);var V=e.forEachEntry(e.targetOptionDeclaration.type,function(le,ke){return le===e.getEmitScriptTarget(U)?ke:void 0});return e.chainDiagnosticMessages(void 0,V?e.Diagnostics.Default_library_for_target_0:e.Diagnostics.Default_library,V);default:e.Debug.assertNever(_)}}e.fileIncludeReasonToDiagnostics=M;function x(l,_){var J=e.isString(l)?l:l.fileName;return _?_(J):J}function ie(l,_,J,w,j,U,z,y){var oe=!!l.getCompilerOptions().listFilesOnly,ve=l.getConfigFileParsingDiagnostics().slice(),ce=ve.length;e.addRange(ve,l.getSyntacticDiagnostics(void 0,U)),ve.length===ce&&(e.addRange(ve,l.getOptionsDiagnostics(U)),oe||(e.addRange(ve,l.getGlobalDiagnostics(U)),ve.length===ce&&e.addRange(ve,l.getSemanticDiagnostics(void 0,U))));var m=oe?{emitSkipped:!0,diagnostics:e.emptyArray}:l.emit(void 0,j,U,z,y),de=m.emittedFiles,ae=m.diagnostics;e.addRange(ve,ae);var V=e.sortAndDeduplicateDiagnostics(ve);if(V.forEach(_),J){var le=l.getCurrentDirectory();e.forEach(de,function(ke){var Ue=e.getNormalizedAbsolutePath(ke,le);J("TSFILE: ".concat(Ue))}),G(l,J)}return w&&w(F(V),g(V)),{emitResult:m,diagnostics:V}}e.emitFilesAndReportErrors=ie;function _e(l,_,J,w,j,U,z,y){var oe=ie(l,_,J,w,j,U,z,y),ve=oe.emitResult,ce=oe.diagnostics;return ve.emitSkipped&&ce.length>0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:ce.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}e.emitFilesAndReportErrorsAndGetExitStatus=_e,e.noopFileWatcher={close:e.noop},e.returnNoopFileWatcher=function(){return e.noopFileWatcher};function Y(l,_){l===void 0&&(l=e.sys);var J=_||Q(l);return{onWatchStatusChange:J,watchFile:e.maybeBind(l,l.watchFile)||e.returnNoopFileWatcher,watchDirectory:e.maybeBind(l,l.watchDirectory)||e.returnNoopFileWatcher,setTimeout:e.maybeBind(l,l.setTimeout)||e.noop,clearTimeout:e.maybeBind(l,l.clearTimeout)||e.noop}}e.createWatchHost=Y,e.WatchType={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file"};function Z(l,_){var J=l.trace?_.extendedDiagnostics?e.WatchLogLevel.Verbose:_.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,w=J!==e.WatchLogLevel.None?function(U){return l.trace(U)}:e.noop,j=e.getWatchFactory(l,J,w);return j.writeLog=w,j}e.createWatchFactory=Z;function k(l,_,J){J===void 0&&(J=l);var w=l.useCaseSensitiveFileNames(),j=e.memoize(function(){return l.getNewLine()});return{getSourceFile:function(z,y,oe){var ve;try{e.performance.mark("beforeIORead"),ve=l.readFile(z,_().charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(ce){oe&&oe(ce.message),ve=""}return ve!==void 0?e.createSourceFile(z,ve,y):void 0},getDefaultLibLocation:e.maybeBind(l,l.getDefaultLibLocation),getDefaultLibFileName:function(z){return l.getDefaultLibFileName(z)},writeFile:U,getCurrentDirectory:e.memoize(function(){return l.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return w},getCanonicalFileName:e.createGetCanonicalFileName(w),getNewLine:function(){return e.getNewLineCharacter(_(),j)},fileExists:function(z){return l.fileExists(z)},readFile:function(z){return l.readFile(z)},trace:e.maybeBind(l,l.trace),directoryExists:e.maybeBind(J,J.directoryExists),getDirectories:e.maybeBind(J,J.getDirectories),realpath:e.maybeBind(l,l.realpath),getEnvironmentVariable:e.maybeBind(l,l.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(l,l.createHash),readDirectory:e.maybeBind(l,l.readDirectory),disableUseFileVersionAsSignature:l.disableUseFileVersionAsSignature};function U(z,y,oe,ve){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(z,y,oe,function(ce,m,de){return l.writeFile(ce,m,de)},function(ce){return l.createDirectory(ce)},function(ce){return l.directoryExists(ce)}),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(ce){ve&&ve(ce.message)}}}e.createCompilerHostFromProgramHost=k;function I(l,_){var J=l.getSourceFile,w=e.maybeBind(_,_.createHash)||e.generateDjb2Hash;l.getSourceFile=function(){for(var j=[],U=0;U<arguments.length;U++)j[U]=arguments[U];var z=J.call.apply(J,qe([l],j,!1));return z&&(z.version=w(z.text)),z}}e.setGetSourceFileAsHashVersioned=I;function ne(l,_){var J=e.memoize(function(){return e.getDirectoryPath(e.normalizePath(l.getExecutingFilePath()))});return{useCaseSensitiveFileNames:function(){return l.useCaseSensitiveFileNames},getNewLine:function(){return l.newLine},getCurrentDirectory:e.memoize(function(){return l.getCurrentDirectory()}),getDefaultLibLocation:J,getDefaultLibFileName:function(w){return e.combinePaths(J(),e.getDefaultLibFileName(w))},fileExists:function(w){return l.fileExists(w)},readFile:function(w,j){return l.readFile(w,j)},directoryExists:function(w){return l.directoryExists(w)},getDirectories:function(w){return l.getDirectories(w)},readDirectory:function(w,j,U,z,y){return l.readDirectory(w,j,U,z,y)},realpath:e.maybeBind(l,l.realpath),getEnvironmentVariable:e.maybeBind(l,l.getEnvironmentVariable),trace:function(w){return l.write(w+l.newLine)},createDirectory:function(w){return l.createDirectory(w)},writeFile:function(w,j,U){return l.writeFile(w,j,U)},createHash:e.maybeBind(l,l.createHash),createProgram:_||e.createEmitAndSemanticDiagnosticsBuilderProgram,disableUseFileVersionAsSignature:l.disableUseFileVersionAsSignature}}e.createProgramHost=ne;function ee(l,_,J,w){l===void 0&&(l=e.sys);var j=function(z){return l.write(z+l.newLine)},U=ne(l,_);return e.copyProperties(U,Y(l,w)),U.afterProgramCreate=function(z){var y=z.getCompilerOptions(),oe=e.getNewLineCharacter(y,function(){return l.newLine});ie(z,J,j,function(ve){return U.onWatchStatusChange(e.createCompilerDiagnostic(S(ve),ve),oe,y,ve)})},U}function A(l,_,J){_(J),l.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}function f(l){var _=l.configFileName,J=l.optionsToExtend,w=l.watchOptionsToExtend,j=l.extraFileExtensions,U=l.system,z=l.createProgram,y=l.reportDiagnostic,oe=l.reportWatchStatus,ve=y||O(U),ce=ee(U,z,ve,oe);return ce.onUnRecoverableConfigFileDiagnostic=function(m){return A(U,ve,m)},ce.configFileName=_,ce.optionsToExtend=J,ce.watchOptionsToExtend=w,ce.extraFileExtensions=j,ce}e.createWatchCompilerHostOfConfigFile=f;function P(l){var _=l.rootFiles,J=l.options,w=l.watchOptions,j=l.projectReferences,U=l.system,z=l.createProgram,y=l.reportDiagnostic,oe=l.reportWatchStatus,ve=ee(U,z,y||O(U),oe);return ve.rootFiles=_,ve.options=J,ve.watchOptions=w,ve.projectReferences=j,ve}e.createWatchCompilerHostOfFilesAndCompilerOptions=P;function D(l){var _=l.system||e.sys,J=l.host||(l.host=e.createIncrementalCompilerHost(l.options,_)),w=e.createIncrementalProgram(l),j=_e(w,l.reportDiagnostic||O(_),function(U){return J.trace&&J.trace(U)},l.reportErrorSummary||l.options.pretty?function(U,z){return _.write(se(U,z,_.newLine,J))}:void 0);return l.afterProgramEmitAndDiagnostics&&l.afterProgramEmitAndDiagnostics(w),j}e.performIncrementalCompilation=D})(Pe||(Pe={}));var Pe;(function(e){function a(Q,pe){if(!e.outFile(Q)){var F=e.getTsBuildInfoEmitOutputFilePath(Q);if(!!F){var g=pe.readFile(F);if(!!g){var S=e.getBuildInfo(g);if(S.version===e.version&&!!S.program)return e.createBuildProgramUsingProgramBuildInfo(S.program,F,pe)}}}}e.readBuilderProgram=a;function O(Q,pe){pe===void 0&&(pe=e.sys);var F=e.createCompilerHostWorker(Q,void 0,pe);return F.createHash=e.maybeBind(pe,pe.createHash),F.disableUseFileVersionAsSignature=pe.disableUseFileVersionAsSignature,e.setGetSourceFileAsHashVersioned(F,pe),e.changeCompilerHostLikeToUseCache(F,function(g){return e.toPath(g,F.getCurrentDirectory(),F.getCanonicalFileName)}),F}e.createIncrementalCompilerHost=O;function L(Q){var pe=Q.rootNames,F=Q.options,g=Q.configFileParsingDiagnostics,S=Q.projectReferences,H=Q.host,se=Q.createProgram;H=H||O(F),se=se||e.createEmitAndSemanticDiagnosticsBuilderProgram;var p=a(F,H);return se(pe,F,H,p,g,S)}e.createIncrementalProgram=L;function W(Q,pe,F,g,S,H,se,p){return e.isArray(Q)?e.createWatchCompilerHostOfFilesAndCompilerOptions({rootFiles:Q,options:pe,watchOptions:p,projectReferences:se,system:F,createProgram:g,reportDiagnostic:S,reportWatchStatus:H}):e.createWatchCompilerHostOfConfigFile({configFileName:Q,optionsToExtend:pe,watchOptionsToExtend:se,extraFileExtensions:p,system:F,createProgram:g,reportDiagnostic:S,reportWatchStatus:H})}e.createWatchCompilerHost=W;function N(Q){var pe,F,g,S,H,se,p,C,G,E=Q.extendedConfigCache,ue=!1,B=!1,re=new e.Map,M,x=!1,ie=Q.useCaseSensitiveFileNames(),_e=Q.getCurrentDirectory(),Y=Q.configFileName,Z=Q.optionsToExtend,k=Z===void 0?{}:Z,I=Q.watchOptionsToExtend,ne=Q.extraFileExtensions,ee=Q.createProgram,A=Q.rootFiles,f=Q.options,P=Q.watchOptions,D=Q.projectReferences,l,_,J=!1,w=!1,j=Y===void 0?void 0:e.createCachedDirectoryStructureHost(Q,_e,ie),U=j||Q,z=e.parseConfigHostFromCompilerHostLike(Q,U),y=he();Y&&Q.configFileParsingResult&&(Jr(Q.configFileParsingResult),y=he()),dr(e.Diagnostics.Starting_compilation_in_watch_mode),Y&&!Q.configFileParsingResult&&(y=e.getNewLineCharacter(k,function(){return Q.getNewLine()}),e.Debug.assert(!A),Lr(),y=he());var oe=e.createWatchFactory(Q,f),ve=oe.watchFile,ce=oe.watchDirectory,m=oe.writeLog,de=e.createGetCanonicalFileName(ie);m("Current directory: ".concat(_e," CaseSensitiveFileNames: ").concat(ie));var ae;Y&&(ae=ve(Y,Pr,e.PollingInterval.High,P,e.WatchType.ConfigFile));var V=e.createCompilerHostFromProgramHost(Q,function(){return f},U);e.setGetSourceFileAsHashVersioned(V,Q);var le=V.getSourceFile;V.getSourceFile=function(di){for(var X=[],Ye=1;Ye<arguments.length;Ye++)X[Ye-1]=arguments[Ye];return Fe.apply(void 0,qe([di,we(di)],X,!1))},V.getSourceFileByPath=Fe,V.getNewLine=function(){return y},V.fileExists=ge,V.onReleaseOldSourceFile=Ir,V.onReleaseParsedCommandLine=be,V.toPath=we,V.getCompilationSettings=function(){return f},V.useSourceOfProjectReferenceRedirect=e.maybeBind(Q,Q.useSourceOfProjectReferenceRedirect),V.watchDirectoryOfFailedLookupLocation=function(di,X,Ye){return ce(di,X,Ye,P,e.WatchType.FailedLookupLocations)},V.watchTypeRootsDirectory=function(di,X,Ye){return ce(di,X,Ye,P,e.WatchType.TypeRoots)},V.getCachedDirectoryStructureHost=function(){return j},V.scheduleInvalidateResolutionsOfFailedLookupLocations=n,V.onInvalidatedResolution=br,V.onChangedAutomaticTypeDirectiveNames=br,V.fileIsOpen=e.returnFalse,V.getCurrentProgram=gr,V.writeLog=m,V.getParsedCommandLine=Rr;var ke=e.createResolutionCache(V,Y?e.getDirectoryPath(e.getNormalizedAbsolutePath(Y,_e)):_e,!1);V.resolveModuleNames=Q.resolveModuleNames?function(){for(var di=[],X=0;X<arguments.length;X++)di[X]=arguments[X];return Q.resolveModuleNames.apply(Q,di)}:function(di,X,Ye,Be,Qe,_r){return ke.resolveModuleNames(di,X,Ye,Be,_r)},V.resolveTypeReferenceDirectives=Q.resolveTypeReferenceDirectives?function(){for(var di=[],X=0;X<arguments.length;X++)di[X]=arguments[X];return Q.resolveTypeReferenceDirectives.apply(Q,di)}:function(di,X,Ye){return ke.resolveTypeReferenceDirectives(di,X,Ye)};var Ue=!!Q.resolveModuleNames||!!Q.resolveTypeReferenceDirectives;return pe=a(f,V),me(),bt(),Y&&sr(we(Y),f,P,e.WatchType.ExtendedConfigFile),Y?{getCurrentProgram:ar,getProgram:Le,close:He}:{getCurrentProgram:ar,getProgram:Le,updateRootFileNames:er,close:He};function He(){Tr(),ke.clear(),e.clearMap(re,function(di){di&&di.fileWatcher&&(di.fileWatcher.close(),di.fileWatcher=void 0)}),ae&&(ae.close(),ae=void 0),E==null||E.clear(),E=void 0,G&&(e.clearMap(G,e.closeFileWatcherOf),G=void 0),H&&(e.clearMap(H,e.closeFileWatcherOf),H=void 0),g&&(e.clearMap(g,e.closeFileWatcher),g=void 0),C&&(e.clearMap(C,function(di){var X;(X=di.watcher)===null||X===void 0||X.close(),di.watcher=void 0,di.watchedDirectories&&e.clearMap(di.watchedDirectories,e.closeFileWatcherOf),di.watchedDirectories=void 0}),C=void 0),S&&(e.clearMap(S,e.closeFileWatcher),S=void 0)}function ar(){return pe}function gr(){return pe&&pe.getProgramOrUndefined()}function me(){m("Synchronizing program"),Tr();var di=ar();x&&(y=he(),di&&(ue||e.changesAffectModuleResolution(di.getCompilerOptions(),f))&&ke.clear());var X=ke.createHasInvalidatedResolution(Ue||ue);return e.isProgramUptoDate(gr(),A,f,ur,ge,X,Br,Rr,D)?w&&(B&&dr(e.Diagnostics.File_change_detected_Starting_incremental_compilation),pe=ee(void 0,void 0,V,pe,_,D),w=!1):(B&&dr(e.Diagnostics.File_change_detected_Starting_incremental_compilation),Ge(X)),ue=!1,B=!1,Q.afterProgramCreate&&di!==pe&&Q.afterProgramCreate(pe),pe}function Ge(di){m("CreatingProgramWith::"),m("  roots: ".concat(JSON.stringify(A))),m("  options: ".concat(JSON.stringify(f))),D&&m("  projectReferences: ".concat(JSON.stringify(D)));var X=x||!gr();x=!1,w=!1,ke.startCachingPerDirectoryResolution(),V.hasInvalidatedResolution=di,V.hasChangedAutomaticTypeDirectiveNames=Br,pe=ee(A,f,V,pe,_,D);var Ye=e.map(ke.getModuleResolutionCache().getPackageJsonInfoCache().entries(),function(hr){var Dr=hr[0],Me=hr[1];return[V.realpath?we(V.realpath(Dr)):Dr,Me]});if(ke.finishCachingPerDirectoryResolution(),e.updateMissingFilePathsWatch(pe.getProgram(),g||(g=new e.Map),li),e.updatePackageJsonWatch(Ye,S||(S=new e.Map),Si),X&&ke.updateTypeRootsWatch(),M){for(var Be=0,Qe=M;Be<Qe.length;Be++){var _r=Qe[Be];g.has(_r)||re.delete(_r)}M=void 0}}function er(di){e.Debug.assert(!Y,"Cannot update root file names with config file watch mode"),A=di,br()}function he(){return e.getNewLineCharacter(f||k,function(){return Q.getNewLine()})}function we(di){return e.toPath(di,_e,de)}function ye(di){return typeof di=="boolean"}function Se(di){return typeof di.version=="boolean"}function ge(di){var X=we(di);return ye(re.get(X))?!1:U.fileExists(di)}function Fe(di,X,Ye,Be,Qe){var _r=re.get(X);if(!ye(_r)){if(_r===void 0||Qe||Se(_r)){var hr=le(di,Ye,Be);if(_r)hr?(_r.sourceFile=hr,_r.version=hr.version,_r.fileWatcher||(_r.fileWatcher=or(X,di,Kr,e.PollingInterval.Low,P,e.WatchType.SourceFile))):(_r.fileWatcher&&_r.fileWatcher.close(),re.set(X,!1));else if(hr){var Dr=or(X,di,Kr,e.PollingInterval.Low,P,e.WatchType.SourceFile);re.set(X,{sourceFile:hr,version:hr.version,fileWatcher:Dr})}else re.set(X,!1);return hr&&(hr.impliedNodeFormat=e.getImpliedNodeFormatForFile(X,ke.getModuleResolutionCache().getPackageJsonInfoCache(),V,V.getCompilationSettings())),hr}return _r.sourceFile}}function cr(di){var X=re.get(di);X!==void 0&&(ye(X)?re.set(di,{version:!1}):X.version=!1)}function ur(di){var X=re.get(di);return!X||!X.version?void 0:X.version}function Ir(di,X,Ye){var Be=re.get(di.resolvedPath);Be!==void 0&&(ye(Be)?(M||(M=[])).push(di.path):Be.sourceFile===di&&(Be.fileWatcher&&Be.fileWatcher.close(),re.delete(di.resolvedPath),Ye||ke.removeResolutionsOfFile(di.path)))}function dr(di){Q.onWatchStatusChange&&Q.onWatchStatusChange(e.createCompilerDiagnostic(di),y,f||k)}function Br(){return ke.hasChangedAutomaticTypeDirectiveNames()}function Tr(){return p?(Q.clearTimeout(p),p=void 0,!0):!1}function n(){if(!Q.setTimeout||!Q.clearTimeout)return ke.invalidateResolutionsOfFailedLookupLocations();var di=Tr();m("Scheduling invalidateFailedLookup".concat(di?", Cancelled earlier one":"")),p=Q.setTimeout(Er,250)}function Er(){p=void 0,ke.invalidateResolutionsOfFailedLookupLocations()&&br()}function br(){!Q.setTimeout||!Q.clearTimeout||(se&&Q.clearTimeout(se),m("Scheduling update"),se=Q.setTimeout(Ce,250))}function Pr(){e.Debug.assert(!!Y),F=e.ConfigFileProgramReloadLevel.Full,br()}function Ce(){se=void 0,B=!0,Le()}function Le(){switch(F){case e.ConfigFileProgramReloadLevel.Partial:e.perfLogger.logStartUpdateProgram("PartialConfigReload"),Xe();break;case e.ConfigFileProgramReloadLevel.Full:e.perfLogger.logStartUpdateProgram("FullConfigReload"),Cr();break;default:e.perfLogger.logStartUpdateProgram("SynchronizeProgram"),me();break}return e.perfLogger.logStopUpdateProgram("Done"),ar()}function Xe(){m("Reloading new file names and options"),A=e.getFileNamesFromConfigSpecs(f.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(Y),_e),f,z,ne),e.updateErrorForNoInputFiles(A,e.getNormalizedAbsolutePath(Y,_e),f.configFile.configFileSpecs,_,J)&&(w=!0),me()}function Cr(){m("Reloading config file: ".concat(Y)),F=e.ConfigFileProgramReloadLevel.None,j&&j.clearCache(),Lr(),x=!0,me(),bt(),sr(we(Y),f,P,e.WatchType.ExtendedConfigFile)}function Lr(){Jr(e.getParsedCommandLineOfConfigFile(Y,k,z,E||(E=new e.Map),I,ne))}function Jr(di){A=di.fileNames,f=di.options,P=di.watchOptions,D=di.projectReferences,l=di.wildcardDirectories,_=e.getConfigFileParsingDiagnostics(di).slice(),J=e.canJsonReportNoInputFiles(di.raw),w=!0}function Rr(di){var X=we(di),Ye=C==null?void 0:C.get(X);if(Ye){if(!Ye.reloadLevel)return Ye.parsedCommandLine;if(Ye.parsedCommandLine&&Ye.reloadLevel===e.ConfigFileProgramReloadLevel.Partial&&!Q.getParsedCommandLine){m("Reloading new file names and options");var Be=e.getFileNamesFromConfigSpecs(Ye.parsedCommandLine.options.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(di),_e),f,z);return Ye.parsedCommandLine=Ve(Ve({},Ye.parsedCommandLine),{fileNames:Be}),Ye.reloadLevel=void 0,Ye.parsedCommandLine}}m("Loading config file: ".concat(di));var Qe=Q.getParsedCommandLine?Q.getParsedCommandLine(di):ci(di);return Ye?(Ye.parsedCommandLine=Qe,Ye.reloadLevel=void 0):(C||(C=new e.Map)).set(X,Ye={parsedCommandLine:Qe}),Ji(di,X,Ye),Qe}function ci(di){var X=z.onUnRecoverableConfigFileDiagnostic;z.onUnRecoverableConfigFileDiagnostic=e.noop;var Ye=e.getParsedCommandLineOfConfigFile(di,void 0,z,E||(E=new e.Map),I);return z.onUnRecoverableConfigFileDiagnostic=X,Ye}function be(di){var X,Ye=we(di),Be=C==null?void 0:C.get(Ye);!Be||(C.delete(Ye),Be.watchedDirectories&&e.clearMap(Be.watchedDirectories,e.closeFileWatcherOf),(X=Be.watcher)===null||X===void 0||X.close(),e.clearSharedExtendedConfigFileWatcher(Ye,G))}function or(di,X,Ye,Be,Qe,_r){return ve(X,function(hr,Dr){return Ye(hr,Dr,di)},Be,Qe,_r)}function Kr(di,X,Ye){ei(di,Ye,X),X===e.FileWatcherEventKind.Deleted&&re.has(Ye)&&ke.invalidateResolutionOfFile(Ye),cr(Ye),br()}function ei(di,X,Ye){j&&j.addOrDeleteFile(di,X,Ye)}function li(di){return C!=null&&C.has(di)?e.noopFileWatcher:or(di,di,ft,e.PollingInterval.Medium,P,e.WatchType.MissingFile)}function Si(di){return re.has(di)?e.noopFileWatcher:or(di,di,qi,e.PollingInterval.High,P,e.WatchType.PackageJson)}function qi(di,X,Ye){ei(di,Ye,X),F=e.ConfigFileProgramReloadLevel.Full,ue=!0,br()}function ft(di,X,Ye){ei(di,Ye,X),X===e.FileWatcherEventKind.Created&&g.has(Ye)&&(g.get(Ye).close(),g.delete(Ye),cr(Ye),br())}function bt(){l?e.updateWatchingWildcardDirectories(H||(H=new e.Map),new e.Map(e.getEntries(l)),aa):H&&e.clearMap(H,e.closeFileWatcherOf)}function aa(di,X){return ce(di,function(Ye){e.Debug.assert(!!Y);var Be=we(Ye);j&&j.addOrDeleteFileOrDirectory(Ye,Be),cr(Be),!e.isIgnoredFileFromWildCardWatching({watchedDirPath:we(di),fileOrDirectory:Ye,fileOrDirectoryPath:Be,configFileName:Y,extraFileExtensions:ne,options:f,program:ar()||A,currentDirectory:_e,useCaseSensitiveFileNames:ie,writeLog:m,toPath:we})&&F!==e.ConfigFileProgramReloadLevel.Full&&(F=e.ConfigFileProgramReloadLevel.Partial,br())},X,P,e.WatchType.WildcardDirectory)}function sr(di,X,Ye,Be){e.updateSharedExtendedConfigFileWatcher(di,X,G||(G=new e.Map),function(Qe,_r){return ve(Qe,function(hr,Dr){var Me;ei(Qe,_r,Dr),E&&e.cleanExtendedConfigCache(E,_r,we);var v=(Me=G.get(_r))===null||Me===void 0?void 0:Me.projects;!(v!=null&&v.size)||v.forEach(function(xe){if(we(Y)===xe)F=e.ConfigFileProgramReloadLevel.Full;else{var ze=C==null?void 0:C.get(xe);ze&&(ze.reloadLevel=e.ConfigFileProgramReloadLevel.Full),ke.removeResolutionsFromProjectReferenceRedirects(xe)}br()})},e.PollingInterval.High,Ye,Be)},we)}function Ji(di,X,Ye){var Be,Qe,_r,hr,Dr;Ye.watcher||(Ye.watcher=ve(di,function(Me,v){ei(di,X,v);var xe=C==null?void 0:C.get(X);xe&&(xe.reloadLevel=e.ConfigFileProgramReloadLevel.Full),ke.removeResolutionsFromProjectReferenceRedirects(X),br()},e.PollingInterval.High,((Be=Ye.parsedCommandLine)===null||Be===void 0?void 0:Be.watchOptions)||P,e.WatchType.ConfigFileOfReferencedProject)),!((Qe=Ye.parsedCommandLine)===null||Qe===void 0)&&Qe.wildcardDirectories?e.updateWatchingWildcardDirectories(Ye.watchedDirectories||(Ye.watchedDirectories=new e.Map),new e.Map(e.getEntries((_r=Ye.parsedCommandLine)===null||_r===void 0?void 0:_r.wildcardDirectories)),function(Me,v){var xe;return ce(Me,function(ze){var Je=we(ze);j&&j.addOrDeleteFileOrDirectory(ze,Je),cr(Je);var Oe=C==null?void 0:C.get(X);!(Oe!=null&&Oe.parsedCommandLine)||e.isIgnoredFileFromWildCardWatching({watchedDirPath:we(Me),fileOrDirectory:ze,fileOrDirectoryPath:Je,configFileName:di,options:Oe.parsedCommandLine.options,program:Oe.parsedCommandLine.fileNames,currentDirectory:_e,useCaseSensitiveFileNames:ie,writeLog:m,toPath:we})||Oe.reloadLevel!==e.ConfigFileProgramReloadLevel.Full&&(Oe.reloadLevel=e.ConfigFileProgramReloadLevel.Partial,br())},v,((xe=Ye.parsedCommandLine)===null||xe===void 0?void 0:xe.watchOptions)||P,e.WatchType.WildcardDirectoryOfReferencedProject)}):Ye.watchedDirectories&&(e.clearMap(Ye.watchedDirectories,e.closeFileWatcherOf),Ye.watchedDirectories=void 0),sr(X,(hr=Ye.parsedCommandLine)===null||hr===void 0?void 0:hr.options,((Dr=Ye.parsedCommandLine)===null||Dr===void 0?void 0:Dr.watchOptions)||P,e.WatchType.ExtendedConfigOfReferencedProject)}}e.createWatchProgram=N})(Pe||(Pe={}));var Pe;(function(e){var a;(function(L){L[L.Unbuildable=0]="Unbuildable",L[L.UpToDate=1]="UpToDate",L[L.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",L[L.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",L[L.OutputMissing=4]="OutputMissing",L[L.OutOfDateWithSelf=5]="OutOfDateWithSelf",L[L.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",L[L.UpstreamOutOfDate=7]="UpstreamOutOfDate",L[L.UpstreamBlocked=8]="UpstreamBlocked",L[L.ComputingUpstream=9]="ComputingUpstream",L[L.TsVersionOutputOfDate=10]="TsVersionOutputOfDate",L[L.ContainerOnly=11]="ContainerOnly"})(a=e.UpToDateStatusType||(e.UpToDateStatusType={}));function O(L){return e.fileExtensionIs(L,".json")?L:e.combinePaths(L,"tsconfig.json")}e.resolveConfigFileProjectName=O})(Pe||(Pe={}));var Pe;(function(e){var a=new Date(-864e13),O=new Date(864e13),L;(function(Ce){Ce[Ce.None=0]="None",Ce[Ce.Success=1]="Success",Ce[Ce.DeclarationOutputUnchanged=2]="DeclarationOutputUnchanged",Ce[Ce.ConfigFileErrors=4]="ConfigFileErrors",Ce[Ce.SyntaxErrors=8]="SyntaxErrors",Ce[Ce.TypeErrors=16]="TypeErrors",Ce[Ce.DeclarationEmitErrors=32]="DeclarationEmitErrors",Ce[Ce.EmitErrors=64]="EmitErrors",Ce[Ce.AnyErrors=124]="AnyErrors"})(L||(L={}));function W(Ce,Le,Xe){var Cr=Ce.get(Le),Lr;return Cr||(Lr=Xe(),Ce.set(Le,Lr)),Cr||Lr}function N(Ce,Le){return W(Ce,Le,function(){return new e.Map})}function Q(Ce,Le){return Le>Ce?Le:Ce}function pe(Ce){return e.fileExtensionIs(Ce,".d.ts")}function F(Ce){return!!Ce&&!!Ce.buildOrder}e.isCircularBuildOrder=F;function g(Ce){return F(Ce)?Ce.buildOrder:Ce}e.getBuildOrderFromAnyBuildOrder=g;function S(Ce,Le){return function(Xe){var Cr=Le?"[".concat(e.formatColorAndReset(e.getLocaleTimeString(Ce),e.ForegroundColorEscapeSequences.Grey),"] "):"".concat(e.getLocaleTimeString(Ce)," - ");Cr+="".concat(e.flattenDiagnosticMessageText(Xe.messageText,Ce.newLine)).concat(Ce.newLine+Ce.newLine),Ce.write(Cr)}}e.createBuilderStatusReporter=S;function H(Ce,Le,Xe,Cr){var Lr=e.createProgramHost(Ce,Le);return Lr.getModifiedTime=Ce.getModifiedTime?function(Jr){return Ce.getModifiedTime(Jr)}:e.returnUndefined,Lr.setModifiedTime=Ce.setModifiedTime?function(Jr,Rr){return Ce.setModifiedTime(Jr,Rr)}:e.noop,Lr.deleteFile=Ce.deleteFile?function(Jr){return Ce.deleteFile(Jr)}:e.noop,Lr.reportDiagnostic=Xe||e.createDiagnosticReporter(Ce),Lr.reportSolutionBuilderStatus=Cr||S(Ce),Lr.now=e.maybeBind(Ce,Ce.now),Lr}function se(Ce,Le,Xe,Cr,Lr){Ce===void 0&&(Ce=e.sys);var Jr=H(Ce,Le,Xe,Cr);return Jr.reportErrorSummary=Lr,Jr}e.createSolutionBuilderHost=se;function p(Ce,Le,Xe,Cr,Lr){Ce===void 0&&(Ce=e.sys);var Jr=H(Ce,Le,Xe,Cr),Rr=e.createWatchHost(Ce,Lr);return e.copyProperties(Jr,Rr),Jr}e.createSolutionBuilderWithWatchHost=p;function C(Ce){var Le={};return e.commonOptionsWithBuild.forEach(function(Xe){e.hasProperty(Ce,Xe.name)&&(Le[Xe.name]=Ce[Xe.name])}),Le}function G(Ce,Le,Xe){return Fe(!1,Ce,Le,Xe)}e.createSolutionBuilder=G;function E(Ce,Le,Xe,Cr){return Fe(!0,Ce,Le,Xe,Cr)}e.createSolutionBuilderWithWatch=E;function ue(Ce,Le,Xe,Cr,Lr){var Jr=Le,Rr=Le,ci=Jr.getCurrentDirectory(),be=e.createGetCanonicalFileName(Jr.useCaseSensitiveFileNames()),or=C(Cr),Kr=e.createCompilerHostFromProgramHost(Jr,function(){return Ji.projectCompilerOptions});e.setGetSourceFileAsHashVersioned(Kr,Jr),Kr.getParsedCommandLine=function(di){return ie(Ji,di,re(Ji,di))},Kr.resolveModuleNames=e.maybeBind(Jr,Jr.resolveModuleNames),Kr.resolveTypeReferenceDirectives=e.maybeBind(Jr,Jr.resolveTypeReferenceDirectives);var ei=Kr.resolveModuleNames?void 0:e.createModuleResolutionCache(ci,be),li=Kr.resolveTypeReferenceDirectives?void 0:e.createTypeReferenceDirectiveResolutionCache(ci,be,void 0,ei==null?void 0:ei.getPackageJsonInfoCache());if(!Kr.resolveModuleNames){var Si=function(di,X,Ye,Be){return e.resolveModuleName(di,Ye,Ji.projectCompilerOptions,Kr,ei,Be,X).resolvedModule};Kr.resolveModuleNames=function(di,X,Ye,Be,Qe,_r){return e.loadWithModeAwareCache(e.Debug.checkEachDefined(di),e.Debug.checkDefined(_r),X,Be,Si)},Kr.getModuleResolutionCache=function(){return ei}}if(!Kr.resolveTypeReferenceDirectives){var qi=function(di,X,Ye){return e.resolveTypeReferenceDirective(di,X,Ji.projectCompilerOptions,Kr,Ye,Ji.typeReferenceDirectiveResolutionCache).resolvedTypeReferenceDirective};Kr.resolveTypeReferenceDirectives=function(di,X,Ye){return e.loadWithLocalCache(e.Debug.checkEachDefined(di),X,Ye,qi)}}var ft=e.createWatchFactory(Rr,Cr),bt=ft.watchFile,aa=ft.watchDirectory,sr=ft.writeLog,Ji={host:Jr,hostWithWatch:Rr,currentDirectory:ci,getCanonicalFileName:be,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(Jr),write:e.maybeBind(Jr,Jr.trace),options:Cr,baseCompilerOptions:or,rootNames:Xe,baseWatchOptions:Lr,resolvedConfigFilePaths:new e.Map,configFileCache:new e.Map,projectStatus:new e.Map,buildInfoChecked:new e.Map,extendedConfigCache:new e.Map,builderPrograms:new e.Map,diagnostics:new e.Map,projectPendingBuild:new e.Map,projectErrorsReported:new e.Map,compilerHost:Kr,moduleResolutionCache:ei,typeReferenceDirectiveResolutionCache:li,buildOrder:void 0,readFileWithCache:function(di){return Jr.readFile(di)},projectCompilerOptions:or,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:Ce,currentInvalidatedProject:void 0,watch:Ce,allWatchedWildcardDirectories:new e.Map,allWatchedInputFiles:new e.Map,allWatchedConfigFiles:new e.Map,allWatchedExtendedConfigFiles:new e.Map,allWatchedPackageJsonFiles:new e.Map,lastCachedPackageJsonLookups:new e.Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:bt,watchDirectory:aa,writeLog:sr};return Ji}function B(Ce,Le){return e.toPath(Le,Ce.currentDirectory,Ce.getCanonicalFileName)}function re(Ce,Le){var Xe=Ce.resolvedConfigFilePaths,Cr=Xe.get(Le);if(Cr!==void 0)return Cr;var Lr=B(Ce,Le);return Xe.set(Le,Lr),Lr}function M(Ce){return!!Ce.options}function x(Ce,Le){var Xe=Ce.configFileCache.get(Le);return Xe&&M(Xe)?Xe:void 0}function ie(Ce,Le,Xe){var Cr=Ce.configFileCache,Lr=Cr.get(Xe);if(Lr)return M(Lr)?Lr:void 0;var Jr,Rr=Ce.parseConfigFileHost,ci=Ce.baseCompilerOptions,be=Ce.baseWatchOptions,or=Ce.extendedConfigCache,Kr=Ce.host,ei;return Kr.getParsedCommandLine?(ei=Kr.getParsedCommandLine(Le),ei||(Jr=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,Le))):(Rr.onUnRecoverableConfigFileDiagnostic=function(li){return Jr=li},ei=e.getParsedCommandLineOfConfigFile(Le,ci,Rr,or,be),Rr.onUnRecoverableConfigFileDiagnostic=e.noop),Cr.set(Xe,ei||Jr),ei}function _e(Ce,Le){return e.resolveConfigFileProjectName(e.resolvePath(Ce.currentDirectory,Le))}function Y(Ce,Le){for(var Xe=new e.Map,Cr=new e.Map,Lr=[],Jr,Rr,ci=0,be=Le;ci<be.length;ci++){var or=be[ci];Kr(or)}return Rr?{buildOrder:Jr||e.emptyArray,circularDiagnostics:Rr}:Jr||e.emptyArray;function Kr(ei,li){var Si=re(Ce,ei);if(!Cr.has(Si)){if(Xe.has(Si)){li||(Rr||(Rr=[])).push(e.createCompilerDiagnostic(e.Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,Lr.join(`\r
`)));return}Xe.set(Si,!0),Lr.push(ei);var qi=ie(Ce,ei,Si);if(qi&&qi.projectReferences)for(var ft=0,bt=qi.projectReferences;ft<bt.length;ft++){var aa=bt[ft],sr=_e(Ce,aa.path);Kr(sr,li||aa.circular)}Lr.pop(),Cr.set(Si,!0),(Jr||(Jr=[])).push(ei)}}}function Z(Ce){return Ce.buildOrder||k(Ce)}function k(Ce){var Le=Y(Ce,Ce.rootNames.map(function(Lr){return _e(Ce,Lr)}));Ce.resolvedConfigFilePaths.clear();var Xe=new e.Map(g(Le).map(function(Lr){return[re(Ce,Lr),!0]})),Cr={onDeleteValue:e.noop};return e.mutateMapSkippingNewValues(Ce.configFileCache,Xe,Cr),e.mutateMapSkippingNewValues(Ce.projectStatus,Xe,Cr),e.mutateMapSkippingNewValues(Ce.buildInfoChecked,Xe,Cr),e.mutateMapSkippingNewValues(Ce.builderPrograms,Xe,Cr),e.mutateMapSkippingNewValues(Ce.diagnostics,Xe,Cr),e.mutateMapSkippingNewValues(Ce.projectPendingBuild,Xe,Cr),e.mutateMapSkippingNewValues(Ce.projectErrorsReported,Xe,Cr),Ce.watch&&(e.mutateMapSkippingNewValues(Ce.allWatchedConfigFiles,Xe,{onDeleteValue:e.closeFileWatcher}),Ce.allWatchedExtendedConfigFiles.forEach(function(Lr){Lr.projects.forEach(function(Jr){Xe.has(Jr)||Lr.projects.delete(Jr)}),Lr.close()}),e.mutateMapSkippingNewValues(Ce.allWatchedWildcardDirectories,Xe,{onDeleteValue:function(Lr){return Lr.forEach(e.closeFileWatcherOf)}}),e.mutateMapSkippingNewValues(Ce.allWatchedInputFiles,Xe,{onDeleteValue:function(Lr){return Lr.forEach(e.closeFileWatcher)}}),e.mutateMapSkippingNewValues(Ce.allWatchedPackageJsonFiles,Xe,{onDeleteValue:function(Lr){return Lr.forEach(e.closeFileWatcher)}})),Ce.buildOrder=Le}function I(Ce,Le,Xe){var Cr=Le&&_e(Ce,Le),Lr=Z(Ce);if(F(Lr))return Lr;if(Cr){var Jr=re(Ce,Cr),Rr=e.findIndex(Lr,function(be){return re(Ce,be)===Jr});if(Rr===-1)return}var ci=Cr?Y(Ce,[Cr]):Lr;return e.Debug.assert(!F(ci)),e.Debug.assert(!Xe||Cr!==void 0),e.Debug.assert(!Xe||ci[ci.length-1]===Cr),Xe?ci.slice(0,ci.length-1):ci}function ne(Ce){Ce.cache&&ee(Ce);var Le=Ce.compilerHost,Xe=Ce.host,Cr=Ce.readFileWithCache,Lr=Le.getSourceFile,Jr=e.changeCompilerHostLikeToUseCache(Xe,function(Si){return B(Ce,Si)},function(){for(var Si=[],qi=0;qi<arguments.length;qi++)Si[qi]=arguments[qi];return Lr.call.apply(Lr,qe([Le],Si,!1))}),Rr=Jr.originalReadFile,ci=Jr.originalFileExists,be=Jr.originalDirectoryExists,or=Jr.originalCreateDirectory,Kr=Jr.originalWriteFile,ei=Jr.getSourceFileWithCache,li=Jr.readFileWithCache;Ce.readFileWithCache=li,Le.getSourceFile=ei,Ce.cache={originalReadFile:Rr,originalFileExists:ci,originalDirectoryExists:be,originalCreateDirectory:or,originalWriteFile:Kr,originalReadFileWithCache:Cr,originalGetSourceFile:Lr}}function ee(Ce){if(!!Ce.cache){var Le=Ce.cache,Xe=Ce.host,Cr=Ce.compilerHost,Lr=Ce.extendedConfigCache,Jr=Ce.moduleResolutionCache,Rr=Ce.typeReferenceDirectiveResolutionCache;Xe.readFile=Le.originalReadFile,Xe.fileExists=Le.originalFileExists,Xe.directoryExists=Le.originalDirectoryExists,Xe.createDirectory=Le.originalCreateDirectory,Xe.writeFile=Le.originalWriteFile,Cr.getSourceFile=Le.originalGetSourceFile,Ce.readFileWithCache=Le.originalReadFileWithCache,Lr.clear(),Jr==null||Jr.clear(),Rr==null||Rr.clear(),Ce.cache=void 0}}function A(Ce,Le){Ce.projectStatus.delete(Le),Ce.diagnostics.delete(Le)}function f(Ce,Le,Xe){var Cr=Ce.projectPendingBuild,Lr=Cr.get(Le);(Lr===void 0||Lr<Xe)&&Cr.set(Le,Xe)}function P(Ce,Le){if(!!Ce.allProjectBuildPending){Ce.allProjectBuildPending=!1,Ce.options.watch&&Ir(Ce,e.Diagnostics.Starting_compilation_in_watch_mode),ne(Ce);var Xe=g(Z(Ce));Xe.forEach(function(Cr){return Ce.projectPendingBuild.set(re(Ce,Cr),e.ConfigFileProgramReloadLevel.None)}),Le&&Le.throwIfCancellationRequested()}}var D;(function(Ce){Ce[Ce.Build=0]="Build",Ce[Ce.UpdateBundle=1]="UpdateBundle",Ce[Ce.UpdateOutputFileStamps=2]="UpdateOutputFileStamps"})(D=e.InvalidatedProjectKind||(e.InvalidatedProjectKind={}));function l(Ce,Le){return Ce.projectPendingBuild.delete(Le),Ce.currentInvalidatedProject=void 0,Ce.diagnostics.has(Le)?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function _(Ce,Le,Xe,Cr,Lr){var Jr=!0;return{kind:D.UpdateOutputFileStamps,project:Le,projectPath:Xe,buildOrder:Lr,getCompilerOptions:function(){return Cr.options},getCurrentDirectory:function(){return Ce.currentDirectory},updateOutputFileStatmps:function(){V(Ce,Cr,Xe),Jr=!1},done:function(){return Jr&&V(Ce,Cr,Xe),l(Ce,Xe)}}}var J;(function(Ce){Ce[Ce.CreateProgram=0]="CreateProgram",Ce[Ce.SyntaxDiagnostics=1]="SyntaxDiagnostics",Ce[Ce.SemanticDiagnostics=2]="SemanticDiagnostics",Ce[Ce.Emit=3]="Emit",Ce[Ce.EmitBundle=4]="EmitBundle",Ce[Ce.EmitBuildInfo=5]="EmitBuildInfo",Ce[Ce.BuildInvalidatedProjectOfBundle=6]="BuildInvalidatedProjectOfBundle",Ce[Ce.QueueReferencingProjects=7]="QueueReferencingProjects",Ce[Ce.Done=8]="Done"})(J||(J={}));function w(Ce,Le,Xe,Cr,Lr,Jr,Rr){var ci=Ce===D.Build?J.CreateProgram:J.EmitBundle,be,or,Kr;return Ce===D.Build?{kind:Ce,project:Xe,projectPath:Cr,buildOrder:Rr,getCompilerOptions:function(){return Jr.options},getCurrentDirectory:function(){return Le.currentDirectory},getBuilderProgram:function(){return li(e.identity)},getProgram:function(){return li(function(Be){return Be.getProgramOrUndefined()})},getSourceFile:function(Be){return li(function(Qe){return Qe.getSourceFile(Be)})},getSourceFiles:function(){return Si(function(Be){return Be.getSourceFiles()})},getOptionsDiagnostics:function(Be){return Si(function(Qe){return Qe.getOptionsDiagnostics(Be)})},getGlobalDiagnostics:function(Be){return Si(function(Qe){return Qe.getGlobalDiagnostics(Be)})},getConfigFileParsingDiagnostics:function(){return Si(function(Be){return Be.getConfigFileParsingDiagnostics()})},getSyntacticDiagnostics:function(Be,Qe){return Si(function(_r){return _r.getSyntacticDiagnostics(Be,Qe)})},getAllDependencies:function(Be){return Si(function(Qe){return Qe.getAllDependencies(Be)})},getSemanticDiagnostics:function(Be,Qe){return Si(function(_r){return _r.getSemanticDiagnostics(Be,Qe)})},getSemanticDiagnosticsOfNextAffectedFile:function(Be,Qe){return li(function(_r){return _r.getSemanticDiagnosticsOfNextAffectedFile&&_r.getSemanticDiagnosticsOfNextAffectedFile(Be,Qe)})},emit:function(Be,Qe,_r,hr,Dr){if(Be||hr)return li(function(Me){var v,xe;return Me.emit(Be,Qe,_r,hr,Dr||((xe=(v=Le.host).getCustomTransformers)===null||xe===void 0?void 0:xe.call(v,Xe)))});if(Ye(J.SemanticDiagnostics,_r),ci===J.EmitBuildInfo)return Ji(Qe,_r);if(ci===J.Emit)return sr(Qe,_r,Dr)},done:ei}:{kind:Ce,project:Xe,projectPath:Cr,buildOrder:Rr,getCompilerOptions:function(){return Jr.options},getCurrentDirectory:function(){return Le.currentDirectory},emit:function(Be,Qe){return ci!==J.EmitBundle?Kr:X(Be,Qe)},done:ei};function ei(Be,Qe,_r){return Ye(J.Done,Be,Qe,_r),l(Le,Cr)}function li(Be){return Ye(J.CreateProgram),be&&Be(be)}function Si(Be){return li(Be)||e.emptyArray}function qi(){var Be,Qe;if(e.Debug.assert(be===void 0),Le.options.dry){ur(Le,e.Diagnostics.A_non_dry_build_would_build_project_0,Xe),or=L.Success,ci=J.QueueReferencingProjects;return}if(Le.options.verbose&&ur(Le,e.Diagnostics.Building_project_0,Xe),Jr.fileNames.length===0){Br(Le,Cr,e.getConfigFileParsingDiagnostics(Jr)),or=L.None,ci=J.QueueReferencingProjects;return}var _r=Le.host,hr=Le.compilerHost;Le.projectCompilerOptions=Jr.options,(Be=Le.moduleResolutionCache)===null||Be===void 0||Be.update(Jr.options),(Qe=Le.typeReferenceDirectiveResolutionCache)===null||Qe===void 0||Qe.update(Jr.options),be=_r.createProgram(Jr.fileNames,Jr.options,hr,y(Le,Cr,Jr),e.getConfigFileParsingDiagnostics(Jr),Jr.projectReferences),Le.watch&&(Le.lastCachedPackageJsonLookups.set(Cr,Le.moduleResolutionCache&&e.map(Le.moduleResolutionCache.getPackageJsonInfoCache().entries(),function(Dr){var Me=Dr[0],v=Dr[1];return[Le.host.realpath&&v?B(Le,Le.host.realpath(Me)):Me,v]})),Le.builderPrograms.set(Cr,be)),ci++}function ft(Be,Qe,_r){var hr;Be.length?(hr=ve(Le,Cr,be,Jr,Be,Qe,_r),or=hr.buildResult,ci=hr.step):ci++}function bt(Be){e.Debug.assertIsDefined(be),ft(qe(qe(qe(qe([],be.getConfigFileParsingDiagnostics(),!0),be.getOptionsDiagnostics(Be),!0),be.getGlobalDiagnostics(Be),!0),be.getSyntacticDiagnostics(void 0,Be),!0),L.SyntaxErrors,"Syntactic")}function aa(Be){ft(e.Debug.checkDefined(be).getSemanticDiagnostics(void 0,Be),L.TypeErrors,"Semantic")}function sr(Be,Qe,_r){var hr,Dr,Me;e.Debug.assertIsDefined(be),e.Debug.assert(ci===J.Emit),be.backupState();var v,xe=function(Ur){return(v||(v=[])).push(Ur)},ze=[],Je=e.emitFilesAndReportErrors(be,xe,void 0,void 0,function(Ur,si,mi){return ze.push({name:Ur,text:si,writeByteOrderMark:mi})},Qe,!1,_r||((Me=(Dr=Le.host).getCustomTransformers)===null||Me===void 0?void 0:Me.call(Dr,Xe))).emitResult;if(v)return be.restoreState(),hr=ve(Le,Cr,be,Jr,v,L.DeclarationEmitErrors,"Declaration file"),or=hr.buildResult,ci=hr.step,{emitSkipped:!0,diagnostics:Je.diagnostics};var Oe=Le.host,Fr=Le.compilerHost,Xr=L.DeclarationOutputUnchanged,Or=a,We=!1,mr=e.createDiagnosticCollection(),Nr=new e.Map;return ze.forEach(function(Ur){var si=Ur.name,mi=Ur.text,Ti=Ur.writeByteOrderMark,hi;!We&&pe(si)&&(Oe.fileExists(si)&&Le.readFileWithCache(si)===mi?hi=Oe.getModifiedTime(si):(Xr&=~L.DeclarationOutputUnchanged,We=!0)),Nr.set(B(Le,si),si),e.writeFile(Be?{writeFile:Be}:Fr,mr,si,mi,Ti),hi!==void 0&&(Or=Q(hi,Or))}),di(mr,Nr,Or,We,ze.length?ze[0].name:e.getFirstProjectOutput(Jr,!Oe.useCaseSensitiveFileNames()),Xr),Je}function Ji(Be,Qe){e.Debug.assertIsDefined(be),e.Debug.assert(ci===J.EmitBuildInfo);var _r=be.emitBuildInfo(Be,Qe);return _r.diagnostics.length&&(dr(Le,_r.diagnostics),Le.diagnostics.set(Cr,qe(qe([],Le.diagnostics.get(Cr),!0),_r.diagnostics,!0)),or=L.EmitErrors&or),_r.emittedFiles&&Le.write&&_r.emittedFiles.forEach(function(hr){return z(Le,Jr,hr)}),oe(Le,be,Jr),ci=J.QueueReferencingProjects,_r}function di(Be,Qe,_r,hr,Dr,Me){var v,xe=Be.getDiagnostics();if(xe.length)return v=ve(Le,Cr,be,Jr,xe,L.EmitErrors,"Emit"),or=v.buildResult,ci=v.step,xe;Le.write&&Qe.forEach(function(Je){return z(Le,Jr,Je)});var ze=ae(Le,Jr,_r,e.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,Qe);return Le.diagnostics.delete(Cr),Le.projectStatus.set(Cr,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:hr?O:ze,oldestOutputFileName:Dr}),oe(Le,be,Jr),ci=J.QueueReferencingProjects,or=Me,xe}function X(Be,Qe){var _r,hr;if(e.Debug.assert(Ce===D.UpdateBundle),Le.options.dry){ur(Le,e.Diagnostics.A_non_dry_build_would_update_output_of_project_0,Xe),or=L.Success,ci=J.QueueReferencingProjects;return}Le.options.verbose&&ur(Le,e.Diagnostics.Updating_output_of_project_0,Xe);var Dr=Le.compilerHost;Le.projectCompilerOptions=Jr.options;var Me=e.emitUsingBuildInfo(Jr,Dr,function(Je){var Oe=_e(Le,Je.path);return ie(Le,Oe,re(Le,Oe))},Qe||((hr=(_r=Le.host).getCustomTransformers)===null||hr===void 0?void 0:hr.call(_r,Xe)));if(e.isString(Me))return ur(Le,e.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,Xe,cr(Le,Me)),ci=J.BuildInvalidatedProjectOfBundle,Kr=w(D.Build,Le,Xe,Cr,Lr,Jr,Rr);e.Debug.assert(!!Me.length);var v=e.createDiagnosticCollection(),xe=new e.Map;Me.forEach(function(Je){var Oe=Je.name,Fr=Je.text,Xr=Je.writeByteOrderMark;xe.set(B(Le,Oe),Oe),e.writeFile(Be?{writeFile:Be}:Dr,v,Oe,Fr,Xr)});var ze=di(v,xe,a,!1,Me[0].name,L.DeclarationOutputUnchanged);return{emitSkipped:!1,diagnostics:ze}}function Ye(Be,Qe,_r,hr){for(;ci<=Be&&ci<J.Done;){var Dr=ci;switch(ci){case J.CreateProgram:qi();break;case J.SyntaxDiagnostics:bt(Qe);break;case J.SemanticDiagnostics:aa(Qe);break;case J.Emit:sr(_r,Qe,hr);break;case J.EmitBuildInfo:Ji(_r,Qe);break;case J.EmitBundle:X(_r,hr);break;case J.BuildInvalidatedProjectOfBundle:e.Debug.checkDefined(Kr).done(Qe,_r,hr),ci=J.Done;break;case J.QueueReferencingProjects:le(Le,Xe,Cr,Lr,Jr,Rr,e.Debug.checkDefined(or)),ci++;break;case J.Done:default:e.assertType(ci)}e.Debug.assert(ci>Dr)}}}function j(Ce,Le,Xe){var Cr=Ce.options;return Le.type!==e.UpToDateStatusType.OutOfDateWithPrepend||Cr.force?!0:Xe.fileNames.length===0||!!e.getConfigFileParsingDiagnostics(Xe).length||!e.isIncrementalCompilation(Xe.options)}function U(Ce,Le,Xe){if(!!Ce.projectPendingBuild.size&&!F(Le)){if(Ce.currentInvalidatedProject)return e.arrayIsEqualTo(Ce.currentInvalidatedProject.buildOrder,Le)?Ce.currentInvalidatedProject:void 0;for(var Cr=Ce.options,Lr=Ce.projectPendingBuild,Jr=0;Jr<Le.length;Jr++){var Rr=Le[Jr],ci=re(Ce,Rr),be=Ce.projectPendingBuild.get(ci);if(be!==void 0){Xe&&(Xe=!1,Er(Ce,Le));var or=ie(Ce,Rr,ci);if(!or){Tr(Ce,ci),Lr.delete(ci);continue}be===e.ConfigFileProgramReloadLevel.Full?(Ge(Ce,Rr,ci,or),er(Ce,ci,or),he(Ce,Rr,ci,or),we(Ce,Rr,ci,or),ye(Ce,Rr,ci,or)):be===e.ConfigFileProgramReloadLevel.Partial&&(or.fileNames=e.getFileNamesFromConfigSpecs(or.options.configFile.configFileSpecs,e.getDirectoryPath(Rr),or.options,Ce.parseConfigFileHost),e.updateErrorForNoInputFiles(or.fileNames,Rr,or.options.configFile.configFileSpecs,or.errors,e.canJsonReportNoInputFiles(or.raw)),we(Ce,Rr,ci,or),ye(Ce,Rr,ci,or));var Kr=de(Ce,or,ci);if(Pr(Ce,Rr,Kr),!Cr.force){if(Kr.type===e.UpToDateStatusType.UpToDate){Br(Ce,ci,e.getConfigFileParsingDiagnostics(or)),Lr.delete(ci),Cr.dry&&ur(Ce,e.Diagnostics.Project_0_is_up_to_date,Rr);continue}if(Kr.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes)return Br(Ce,ci,e.getConfigFileParsingDiagnostics(or)),_(Ce,Rr,ci,or,Le)}if(Kr.type===e.UpToDateStatusType.UpstreamBlocked){Br(Ce,ci,e.getConfigFileParsingDiagnostics(or)),Lr.delete(ci),Cr.verbose&&ur(Ce,Kr.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,Rr,Kr.upstreamProjectName);continue}if(Kr.type===e.UpToDateStatusType.ContainerOnly){Br(Ce,ci,e.getConfigFileParsingDiagnostics(or)),Lr.delete(ci);continue}return w(j(Ce,Kr,or)?D.Build:D.UpdateBundle,Ce,Rr,ci,Jr,or,Le)}}}}function z(Ce,Le,Xe){var Cr=Ce.write;Cr&&Le.options.listEmittedFiles&&Cr("TSFILE: ".concat(Xe))}function y(Ce,Le,Xe){var Cr=Ce.options,Lr=Ce.builderPrograms,Jr=Ce.compilerHost;if(!Cr.force){var Rr=Lr.get(Le);return Rr||e.readBuilderProgram(Xe.options,Jr)}}function oe(Ce,Le,Xe){Le?(Le&&Ce.write&&e.listFiles(Le,Ce.write),Ce.host.afterProgramEmitAndDiagnostics&&Ce.host.afterProgramEmitAndDiagnostics(Le),Le.releaseProgram()):Ce.host.afterEmitBundle&&Ce.host.afterEmitBundle(Xe),Ce.projectCompilerOptions=Ce.baseCompilerOptions}function ve(Ce,Le,Xe,Cr,Lr,Jr,Rr){var ci=!(Jr&L.SyntaxErrors)&&Xe&&!e.outFile(Xe.getCompilerOptions());return Br(Ce,Le,Lr),Ce.projectStatus.set(Le,{type:e.UpToDateStatusType.Unbuildable,reason:"".concat(Rr," errors")}),ci?{buildResult:Jr,step:J.EmitBuildInfo}:(oe(Ce,Xe,Cr),{buildResult:Jr,step:J.QueueReferencingProjects})}function ce(Ce,Le,Xe,Cr){var Lr=e.getModifiedTime(Ce.host,Le);if(Xe<Lr)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:Cr,newerInputFileName:Le}}function m(Ce,Le,Xe){for(var Cr=!!Ce.options.force,Lr=void 0,Jr=a,Rr=Ce.host,ci=0,be=Le.fileNames;ci<be.length;ci++){var or=be[ci];if(!Rr.fileExists(or))return{type:e.UpToDateStatusType.Unbuildable,reason:"".concat(or," does not exist")};if(!Cr){var Kr=e.getModifiedTime(Rr,or);Kr>Jr&&(Lr=or,Jr=Kr)}}if(!Le.fileNames.length&&!e.canJsonReportNoInputFiles(Le.raw))return{type:e.UpToDateStatusType.ContainerOnly};var ei=e.getAllProjectOutputs(Le,!Rr.useCaseSensitiveFileNames()),li="(none)",Si=O,qi="(none)",ft=a,bt,aa=a,sr=!1;if(!Cr)for(var Ji=0,di=ei;Ji<di.length;Ji++){var X=di[Ji];if(!Rr.fileExists(X)){bt=X;break}var Ye=e.getModifiedTime(Rr,X);if(Ye<Si&&(Si=Ye,li=X),Ye<Jr){sr=!0;break}if(Ye>ft&&(ft=Ye,qi=X),pe(X)){var Be=e.getModifiedTime(Rr,X);aa=Q(aa,Be)}}var Qe=!1,_r=!1,hr;if(Le.projectReferences){Ce.projectStatus.set(Xe,{type:e.UpToDateStatusType.ComputingUpstream});for(var Dr=0,Me=Le.projectReferences;Dr<Me.length;Dr++){var v=Me[Dr];_r=_r||!!v.prepend;var xe=e.resolveProjectReferencePath(v),ze=re(Ce,xe),Je=de(Ce,ie(Ce,xe,ze),ze);if(!(Je.type===e.UpToDateStatusType.ComputingUpstream||Je.type===e.UpToDateStatusType.ContainerOnly)){if(Je.type===e.UpToDateStatusType.Unbuildable||Je.type===e.UpToDateStatusType.UpstreamBlocked)return{type:e.UpToDateStatusType.UpstreamBlocked,upstreamProjectName:v.path,upstreamProjectBlocked:Je.type===e.UpToDateStatusType.UpstreamBlocked};if(Je.type!==e.UpToDateStatusType.UpToDate)return{type:e.UpToDateStatusType.UpstreamOutOfDate,upstreamProjectName:v.path};if(!Cr&&!bt){if(Je.newestInputFileTime&&Je.newestInputFileTime<=Si)continue;if(Je.newestDeclarationFileContentChangedTime&&Je.newestDeclarationFileContentChangedTime<=Si){Qe=!0,hr=v.path;continue}return e.Debug.assert(li!==void 0,"Should have an oldest output filename here"),{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:li,newerProjectName:v.path}}}}}if(bt!==void 0)return{type:e.UpToDateStatusType.OutputMissing,missingOutputFileName:bt};if(sr)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:li,newerInputFileName:Lr};var Oe=ce(Ce,Le.options.configFilePath,Si,li);if(Oe)return Oe;var Fr=e.forEach(Le.options.configFile.extendedSourceFiles||e.emptyArray,function(Nr){return ce(Ce,Nr,Si,li)});if(Fr)return Fr;var Xr=e.forEach(Ce.lastCachedPackageJsonLookups.get(Xe)||e.emptyArray,function(Nr){var Ur=Nr[0];return ce(Ce,Ur,Si,li)});if(Xr)return Xr;if(!Cr&&!Ce.buildInfoChecked.has(Xe)){Ce.buildInfoChecked.set(Xe,!0);var Or=e.getTsBuildInfoEmitOutputFilePath(Le.options);if(Or){var We=Ce.readFileWithCache(Or),mr=We&&e.getBuildInfo(We);if(mr&&(mr.bundle||mr.program)&&mr.version!==e.version)return{type:e.UpToDateStatusType.TsVersionOutputOfDate,version:mr.version}}}return _r&&Qe?{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:li,newerProjectName:hr}:{type:Qe?e.UpToDateStatusType.UpToDateWithUpstreamTypes:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:aa,newestInputFileTime:Jr,newestOutputFileTime:ft,newestInputFileName:Lr,newestOutputFileName:qi,oldestOutputFileName:li}}function de(Ce,Le,Xe){if(Le===void 0)return{type:e.UpToDateStatusType.Unbuildable,reason:"File deleted mid-build"};var Cr=Ce.projectStatus.get(Xe);if(Cr!==void 0)return Cr;var Lr=m(Ce,Le,Xe);return Ce.projectStatus.set(Xe,Lr),Lr}function ae(Ce,Le,Xe,Cr,Lr){if(Le.options.noEmit)return Xe;var Jr=Ce.host,Rr=e.getAllProjectOutputs(Le,!Jr.useCaseSensitiveFileNames());if(!Lr||Rr.length!==Lr.size)for(var ci=!!Ce.options.verbose,be=Jr.now?Jr.now():new Date,or=0,Kr=Rr;or<Kr.length;or++){var ei=Kr[or];Lr&&Lr.has(B(Ce,ei))||(ci&&(ci=!1,ur(Ce,Cr,Le.options.configFilePath)),pe(ei)&&(Xe=Q(Xe,e.getModifiedTime(Jr,ei))),Jr.setModifiedTime(ei,be))}return Xe}function V(Ce,Le,Xe){if(Ce.options.dry)return ur(Ce,e.Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0,Le.options.configFilePath);var Cr=ae(Ce,Le,a,e.Diagnostics.Updating_output_timestamps_of_project_0);Ce.projectStatus.set(Xe,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:Cr,oldestOutputFileName:e.getFirstProjectOutput(Le,!Ce.host.useCaseSensitiveFileNames())})}function le(Ce,Le,Xe,Cr,Lr,Jr,Rr){if(!(Rr&L.AnyErrors)&&!!Lr.options.composite)for(var ci=Cr+1;ci<Jr.length;ci++){var be=Jr[ci],or=re(Ce,be);if(!Ce.projectPendingBuild.has(or)){var Kr=ie(Ce,be,or);if(!(!Kr||!Kr.projectReferences))for(var ei=0,li=Kr.projectReferences;ei<li.length;ei++){var Si=li[ei],qi=_e(Ce,Si.path);if(re(Ce,qi)===Xe){var ft=Ce.projectStatus.get(or);if(ft)switch(ft.type){case e.UpToDateStatusType.UpToDate:if(Rr&L.DeclarationOutputUnchanged){Si.prepend?Ce.projectStatus.set(or,{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:ft.oldestOutputFileName,newerProjectName:Le}):ft.type=e.UpToDateStatusType.UpToDateWithUpstreamTypes;break}case e.UpToDateStatusType.UpToDateWithUpstreamTypes:case e.UpToDateStatusType.OutOfDateWithPrepend:Rr&L.DeclarationOutputUnchanged||Ce.projectStatus.set(or,{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:ft.type===e.UpToDateStatusType.OutOfDateWithPrepend?ft.outOfDateOutputFileName:ft.oldestOutputFileName,newerProjectName:Le});break;case e.UpToDateStatusType.UpstreamBlocked:re(Ce,_e(Ce,ft.upstreamProjectName))===Xe&&A(Ce,or);break}f(Ce,or,e.ConfigFileProgramReloadLevel.None);break}}}}}function ke(Ce,Le,Xe,Cr,Lr,Jr){var Rr=I(Ce,Le,Jr);if(!Rr)return e.ExitStatus.InvalidProject_OutputsSkipped;P(Ce,Xe);for(var ci=!0,be=0;;){var or=U(Ce,Rr,ci);if(!or)break;ci=!1,or.done(Xe,Cr,Lr==null?void 0:Lr(or.project)),Ce.diagnostics.has(or.projectPath)||be++}return ee(Ce),n(Ce,Rr),Se(Ce,Rr),F(Rr)?e.ExitStatus.ProjectReferenceCycle_OutputsSkipped:Rr.some(function(Kr){return Ce.diagnostics.has(re(Ce,Kr))})?be?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function Ue(Ce,Le,Xe){var Cr=I(Ce,Le,Xe);if(!Cr)return e.ExitStatus.InvalidProject_OutputsSkipped;if(F(Cr))return dr(Ce,Cr.circularDiagnostics),e.ExitStatus.ProjectReferenceCycle_OutputsSkipped;for(var Lr=Ce.options,Jr=Ce.host,Rr=Lr.dry?[]:void 0,ci=0,be=Cr;ci<be.length;ci++){var or=be[ci],Kr=re(Ce,or),ei=ie(Ce,or,Kr);if(ei===void 0){Tr(Ce,Kr);continue}var li=e.getAllProjectOutputs(ei,!Jr.useCaseSensitiveFileNames());if(!!li.length)for(var Si=new e.Set(ei.fileNames.map(function(aa){return B(Ce,aa)})),qi=0,ft=li;qi<ft.length;qi++){var bt=ft[qi];Si.has(B(Ce,bt))||Jr.fileExists(bt)&&(Rr?Rr.push(bt):(Jr.deleteFile(bt),He(Ce,Kr,e.ConfigFileProgramReloadLevel.None)))}}return Rr&&ur(Ce,e.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0,Rr.map(function(aa){return`\r
 * `.concat(aa)}).join("")),e.ExitStatus.Success}function He(Ce,Le,Xe){Ce.host.getParsedCommandLine&&Xe===e.ConfigFileProgramReloadLevel.Partial&&(Xe=e.ConfigFileProgramReloadLevel.Full),Xe===e.ConfigFileProgramReloadLevel.Full&&(Ce.configFileCache.delete(Le),Ce.buildOrder=void 0),Ce.needsSummary=!0,A(Ce,Le),f(Ce,Le,Xe),ne(Ce)}function ar(Ce,Le,Xe){Ce.reportFileChangeDetected=!0,He(Ce,Le,Xe),gr(Ce)}function gr(Ce){var Le=Ce.hostWithWatch;!Le.setTimeout||!Le.clearTimeout||(Ce.timerToBuildInvalidatedProject&&Le.clearTimeout(Ce.timerToBuildInvalidatedProject),Ce.timerToBuildInvalidatedProject=Le.setTimeout(me,250,Ce))}function me(Ce){Ce.timerToBuildInvalidatedProject=void 0,Ce.reportFileChangeDetected&&(Ce.reportFileChangeDetected=!1,Ce.projectErrorsReported.clear(),Ir(Ce,e.Diagnostics.File_change_detected_Starting_incremental_compilation));var Le=Z(Ce),Xe=U(Ce,Le,!1);if(Xe&&(Xe.done(),Ce.projectPendingBuild.size)){Ce.watch&&!Ce.timerToBuildInvalidatedProject&&gr(Ce);return}ee(Ce),n(Ce,Le)}function Ge(Ce,Le,Xe,Cr){!Ce.watch||Ce.allWatchedConfigFiles.has(Xe)||Ce.allWatchedConfigFiles.set(Xe,Ce.watchFile(Le,function(){ar(Ce,Xe,e.ConfigFileProgramReloadLevel.Full)},e.PollingInterval.High,Cr==null?void 0:Cr.watchOptions,e.WatchType.ConfigFile,Le))}function er(Ce,Le,Xe){e.updateSharedExtendedConfigFileWatcher(Le,Xe==null?void 0:Xe.options,Ce.allWatchedExtendedConfigFiles,function(Cr,Lr){return Ce.watchFile(Cr,function(){var Jr;return(Jr=Ce.allWatchedExtendedConfigFiles.get(Lr))===null||Jr===void 0?void 0:Jr.projects.forEach(function(Rr){return ar(Ce,Rr,e.ConfigFileProgramReloadLevel.Full)})},e.PollingInterval.High,Xe==null?void 0:Xe.watchOptions,e.WatchType.ExtendedConfigFile)},function(Cr){return B(Ce,Cr)})}function he(Ce,Le,Xe,Cr){!Ce.watch||e.updateWatchingWildcardDirectories(N(Ce.allWatchedWildcardDirectories,Xe),new e.Map(e.getEntries(Cr.wildcardDirectories)),function(Lr,Jr){return Ce.watchDirectory(Lr,function(Rr){var ci;e.isIgnoredFileFromWildCardWatching({watchedDirPath:B(Ce,Lr),fileOrDirectory:Rr,fileOrDirectoryPath:B(Ce,Rr),configFileName:Le,currentDirectory:Ce.currentDirectory,options:Cr.options,program:Ce.builderPrograms.get(Xe)||((ci=x(Ce,Xe))===null||ci===void 0?void 0:ci.fileNames),useCaseSensitiveFileNames:Ce.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:function(be){return Ce.writeLog(be)},toPath:function(be){return B(Ce,be)}})||ar(Ce,Xe,e.ConfigFileProgramReloadLevel.Partial)},Jr,Cr==null?void 0:Cr.watchOptions,e.WatchType.WildcardDirectory,Le)})}function we(Ce,Le,Xe,Cr){!Ce.watch||e.mutateMap(N(Ce.allWatchedInputFiles,Xe),e.arrayToMap(Cr.fileNames,function(Lr){return B(Ce,Lr)}),{createNewValue:function(Lr,Jr){return Ce.watchFile(Jr,function(){return ar(Ce,Xe,e.ConfigFileProgramReloadLevel.None)},e.PollingInterval.Low,Cr==null?void 0:Cr.watchOptions,e.WatchType.SourceFile,Le)},onDeleteValue:e.closeFileWatcher})}function ye(Ce,Le,Xe,Cr){!Ce.watch||!Ce.lastCachedPackageJsonLookups||e.mutateMap(N(Ce.allWatchedPackageJsonFiles,Xe),new e.Map(Ce.lastCachedPackageJsonLookups.get(Xe)),{createNewValue:function(Lr,Jr){return Ce.watchFile(Lr,function(){return ar(Ce,Xe,e.ConfigFileProgramReloadLevel.Full)},e.PollingInterval.High,Cr==null?void 0:Cr.watchOptions,e.WatchType.PackageJson,Le)},onDeleteValue:e.closeFileWatcher})}function Se(Ce,Le){if(!!Ce.watchAllProjectsPending){Ce.watchAllProjectsPending=!1;for(var Xe=0,Cr=g(Le);Xe<Cr.length;Xe++){var Lr=Cr[Xe],Jr=re(Ce,Lr),Rr=ie(Ce,Lr,Jr);Ge(Ce,Lr,Jr,Rr),er(Ce,Jr,Rr),Rr&&(he(Ce,Lr,Jr,Rr),we(Ce,Lr,Jr,Rr),ye(Ce,Lr,Jr,Rr))}}}function ge(Ce){e.clearMap(Ce.allWatchedConfigFiles,e.closeFileWatcher),e.clearMap(Ce.allWatchedExtendedConfigFiles,e.closeFileWatcherOf),e.clearMap(Ce.allWatchedWildcardDirectories,function(Le){return e.clearMap(Le,e.closeFileWatcherOf)}),e.clearMap(Ce.allWatchedInputFiles,function(Le){return e.clearMap(Le,e.closeFileWatcher)}),e.clearMap(Ce.allWatchedPackageJsonFiles,function(Le){return e.clearMap(Le,e.closeFileWatcher)})}function Fe(Ce,Le,Xe,Cr,Lr){var Jr=ue(Ce,Le,Xe,Cr,Lr);return{build:function(Rr,ci,be,or){return ke(Jr,Rr,ci,be,or)},clean:function(Rr){return Ue(Jr,Rr)},buildReferences:function(Rr,ci,be,or){return ke(Jr,Rr,ci,be,or,!0)},cleanReferences:function(Rr){return Ue(Jr,Rr,!0)},getNextInvalidatedProject:function(Rr){return P(Jr,Rr),U(Jr,Z(Jr),!1)},getBuildOrder:function(){return Z(Jr)},getUpToDateStatusOfProject:function(Rr){var ci=_e(Jr,Rr),be=re(Jr,ci);return de(Jr,ie(Jr,ci,be),be)},invalidateProject:function(Rr,ci){return He(Jr,Rr,ci||e.ConfigFileProgramReloadLevel.None)},buildNextInvalidatedProject:function(){return me(Jr)},getAllParsedConfigs:function(){return e.arrayFrom(e.mapDefinedIterator(Jr.configFileCache.values(),function(Rr){return M(Rr)?Rr:void 0}))},close:function(){return ge(Jr)}}}function cr(Ce,Le){return e.convertToRelativePath(Le,Ce.currentDirectory,function(Xe){return Ce.getCanonicalFileName(Xe)})}function ur(Ce,Le){for(var Xe=[],Cr=2;Cr<arguments.length;Cr++)Xe[Cr-2]=arguments[Cr];Ce.host.reportSolutionBuilderStatus(e.createCompilerDiagnostic.apply(void 0,qe([Le],Xe,!1)))}function Ir(Ce,Le){for(var Xe,Cr,Lr=[],Jr=2;Jr<arguments.length;Jr++)Lr[Jr-2]=arguments[Jr];(Cr=(Xe=Ce.hostWithWatch).onWatchStatusChange)===null||Cr===void 0||Cr.call(Xe,e.createCompilerDiagnostic.apply(void 0,qe([Le],Lr,!1)),Ce.host.getNewLine(),Ce.baseCompilerOptions)}function dr(Ce,Le){var Xe=Ce.host;Le.forEach(function(Cr){return Xe.reportDiagnostic(Cr)})}function Br(Ce,Le,Xe){dr(Ce,Xe),Ce.projectErrorsReported.set(Le,!0),Xe.length&&Ce.diagnostics.set(Le,Xe)}function Tr(Ce,Le){Br(Ce,Le,[Ce.configFileCache.get(Le)])}function n(Ce,Le){if(!!Ce.needsSummary){Ce.needsSummary=!1;var Xe=Ce.watch||!!Ce.host.reportErrorSummary,Cr=Ce.diagnostics,Lr=0,Jr=[];F(Le)?(Er(Ce,Le.buildOrder),dr(Ce,Le.circularDiagnostics),Xe&&(Lr+=e.getErrorCountForSummary(Le.circularDiagnostics)),Xe&&(Jr=qe(qe([],Jr,!0),e.getFilesInErrorForSummary(Le.circularDiagnostics),!0))):(Le.forEach(function(Rr){var ci=re(Ce,Rr);Ce.projectErrorsReported.has(ci)||dr(Ce,Cr.get(ci)||e.emptyArray)}),Xe&&Cr.forEach(function(Rr){return Lr+=e.getErrorCountForSummary(Rr)}),Xe&&Cr.forEach(function(Rr){return qe(qe([],Jr,!0),e.getFilesInErrorForSummary(Rr),!0)})),Ce.watch?Ir(Ce,e.getWatchErrorSummaryDiagnosticMessage(Lr),Lr):Ce.host.reportErrorSummary&&Ce.host.reportErrorSummary(Lr,Jr)}}function Er(Ce,Le){Ce.options.verbose&&ur(Ce,e.Diagnostics.Projects_in_this_build_Colon_0,Le.map(function(Xe){return`\r
    * `+cr(Ce,Xe)}).join(""))}function br(Ce,Le,Xe){if(Ce.options.force&&(Xe.type===e.UpToDateStatusType.UpToDate||Xe.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes))return ur(Ce,e.Diagnostics.Project_0_is_being_forcibly_rebuilt,cr(Ce,Le));switch(Xe.type){case e.UpToDateStatusType.OutOfDateWithSelf:return ur(Ce,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,cr(Ce,Le),cr(Ce,Xe.outOfDateOutputFileName),cr(Ce,Xe.newerInputFileName));case e.UpToDateStatusType.OutOfDateWithUpstream:return ur(Ce,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,cr(Ce,Le),cr(Ce,Xe.outOfDateOutputFileName),cr(Ce,Xe.newerProjectName));case e.UpToDateStatusType.OutputMissing:return ur(Ce,e.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist,cr(Ce,Le),cr(Ce,Xe.missingOutputFileName));case e.UpToDateStatusType.UpToDate:if(Xe.newestInputFileTime!==void 0)return ur(Ce,e.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2,cr(Ce,Le),cr(Ce,Xe.newestInputFileName||""),cr(Ce,Xe.oldestOutputFileName||""));break;case e.UpToDateStatusType.OutOfDateWithPrepend:return ur(Ce,e.Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,cr(Ce,Le),cr(Ce,Xe.newerProjectName));case e.UpToDateStatusType.UpToDateWithUpstreamTypes:return ur(Ce,e.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,cr(Ce,Le));case e.UpToDateStatusType.UpstreamOutOfDate:return ur(Ce,e.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,cr(Ce,Le),cr(Ce,Xe.upstreamProjectName));case e.UpToDateStatusType.UpstreamBlocked:return ur(Ce,Xe.upstreamProjectBlocked?e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors,cr(Ce,Le),cr(Ce,Xe.upstreamProjectName));case e.UpToDateStatusType.Unbuildable:return ur(Ce,e.Diagnostics.Failed_to_parse_file_0_Colon_1,cr(Ce,Le),Xe.reason);case e.UpToDateStatusType.TsVersionOutputOfDate:return ur(Ce,e.Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,cr(Ce,Le),Xe.version,e.version);case e.UpToDateStatusType.ContainerOnly:case e.UpToDateStatusType.ComputingUpstream:break;default:e.assertType(Xe)}}function Pr(Ce,Le,Xe){Ce.options.verbose&&br(Ce,Le,Xe)}})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){O.ActionSet="action::set",O.ActionInvalidate="action::invalidate",O.ActionPackageInstalled="action::packageInstalled",O.EventTypesRegistry="event::typesRegistry",O.EventBeginInstallTypes="event::beginInstallTypes",O.EventEndInstallTypes="event::endInstallTypes",O.EventInitializationFailed="event::initializationFailed";var L;(function(pe){pe.GlobalCacheLocation="--globalTypingsCacheLocation",pe.LogFile="--logFile",pe.EnableTelemetry="--enableTelemetry",pe.TypingSafeListLocation="--typingSafeListLocation",pe.TypesMapLocation="--typesMapLocation",pe.NpmLocation="--npmLocation",pe.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(L=O.Arguments||(O.Arguments={}));function W(pe){return e.sys.args.indexOf(pe)>=0}O.hasArgument=W;function N(pe){var F=e.sys.args.indexOf(pe);return F>=0&&F<e.sys.args.length-1?e.sys.args[F+1]:void 0}O.findArgument=N;function Q(){var pe=new Date;return"".concat(e.padLeft(pe.getHours().toString(),2,"0"),":").concat(e.padLeft(pe.getMinutes().toString(),2,"0"),":").concat(e.padLeft(pe.getSeconds().toString(),2,"0"),".").concat(e.padLeft(pe.getMilliseconds().toString(),3,"0"))}O.nowString=Q})(a=e.server||(e.server={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(G,E){var ue=new e.Version(e.getProperty(E,"ts".concat(e.versionMajorMinor))||e.getProperty(E,"latest"));return ue.compareTo(G.version)<=0}O.isTypingUpToDate=L;var W=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"];O.prefixedNodeCoreModuleList=W.map(function(G){return"node:".concat(G)}),O.nodeCoreModuleList=qe(qe([],W,!0),O.prefixedNodeCoreModuleList,!0),O.nodeCoreModules=new e.Set(O.nodeCoreModuleList);function N(G){return O.nodeCoreModules.has(G)?"node":G}O.nonRelativeModuleNameForTypingCache=N;function Q(G,E){var ue=e.readConfigFile(E,function(B){return G.readFile(B)});return new e.Map(e.getEntries(ue.config))}O.loadSafeList=Q;function pe(G,E){var ue=e.readConfigFile(E,function(B){return G.readFile(B)});if(ue.config)return new e.Map(e.getEntries(ue.config.simpleMap))}O.loadTypesMap=pe;function F(G,E,ue,B,re,M,x,ie,_e){if(!x||!x.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var Y=new e.Map;ue=e.mapDefined(ue,function(z){var y=e.normalizePath(z);if(e.hasJSFileExtension(y))return y});var Z=[];x.include&&w(x.include,"Explicitly included types");var k=x.exclude||[],I=new e.Set(ue.map(e.getDirectoryPath));if(I.add(B),I.forEach(function(z){j(z,"bower.json","bower_components",Z),j(z,"package.json","node_modules",Z)}),x.disableFilenameBasedTypeAcquisition||U(ue),ie){var ne=e.deduplicate(ie.map(N),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive);w(ne,"Inferred typings from unresolved imports")}M.forEach(function(z,y){var oe=_e.get(y);Y.has(y)&&Y.get(y)===void 0&&oe!==void 0&&L(z,oe)&&Y.set(y,z.typingLocation)});for(var ee=0,A=k;ee<A.length;ee++){var f=A[ee],P=Y.delete(f);P&&E&&E("Typing for ".concat(f," is in exclude list, will be ignored."))}var D=[],l=[];Y.forEach(function(z,y){z!==void 0?l.push(z):D.push(y)});var _={cachedTypingPaths:l,newTypingNames:D,filesToWatch:Z};return E&&E("Result: ".concat(JSON.stringify(_))),_;function J(z){Y.has(z)||Y.set(z,void 0)}function w(z,y){E&&E("".concat(y,": ").concat(JSON.stringify(z))),e.forEach(z,J)}function j(z,y,oe,ve){var ce=e.combinePaths(z,y),m,de;G.fileExists(ce)&&(ve.push(ce),m=e.readConfigFile(ce,function(he){return G.readFile(he)}).config,de=e.flatMap([m.dependencies,m.devDependencies,m.optionalDependencies,m.peerDependencies],e.getOwnKeys),w(de,"Typing names in '".concat(ce,"' dependencies")));var ae=e.combinePaths(z,oe);if(ve.push(ae),!!G.directoryExists(ae)){var V=[],le=de?de.map(function(he){return e.combinePaths(ae,he,y)}):G.readDirectory(ae,[".json"],void 0,void 0,3).filter(function(he){if(e.getBaseFileName(he)!==y)return!1;var we=e.getPathComponents(e.normalizePath(he)),ye=we[we.length-3][0]==="@";return ye&&we[we.length-4].toLowerCase()===oe||!ye&&we[we.length-3].toLowerCase()===oe});E&&E("Searching for typing names in ".concat(ae,"; all files: ").concat(JSON.stringify(le)));for(var ke=0,Ue=le;ke<Ue.length;ke++){var He=Ue[ke],ar=e.normalizePath(He),gr=e.readConfigFile(ar,function(he){return G.readFile(he)}),me=gr.config;if(!!me.name){var Ge=me.types||me.typings;if(Ge){var er=e.getNormalizedAbsolutePath(Ge,e.getDirectoryPath(ar));G.fileExists(er)?(E&&E("    Package '".concat(me.name,"' provides its own types.")),Y.set(me.name,er)):E&&E("    Package '".concat(me.name,"' provides its own types but they are missing."))}else V.push(me.name)}}w(V,"    Found package names")}}function U(z){var y=e.mapDefined(z,function(ve){if(!!e.hasJSFileExtension(ve)){var ce=e.removeFileExtension(e.getBaseFileName(ve.toLowerCase())),m=e.removeMinAndVersionNumbers(ce);return re.get(m)}});y.length&&w(y,"Inferred typings from file names");var oe=e.some(z,function(ve){return e.fileExtensionIs(ve,".jsx")});oe&&(E&&E("Inferred 'react' typings due to presence of '.jsx' extension"),J("react"))}}O.discoverTypings=F;var g;(function(G){G[G.Ok=0]="Ok",G[G.EmptyName=1]="EmptyName",G[G.NameTooLong=2]="NameTooLong",G[G.NameStartsWithDot=3]="NameStartsWithDot",G[G.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",G[G.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters"})(g=O.NameValidationResult||(O.NameValidationResult={}));var S=214;function H(G){return se(G,!0)}O.validatePackageName=H;function se(G,E){if(!G)return 1;if(G.length>S)return 2;if(G.charCodeAt(0)===46)return 3;if(G.charCodeAt(0)===95)return 4;if(E){var ue=/^@([^/]+)\/([^/]+)$/.exec(G);if(ue){var B=se(ue[1],!1);if(B!==0)return{name:ue[1],isScopeName:!0,result:B};var re=se(ue[2],!1);return re!==0?{name:ue[2],isScopeName:!1,result:re}:0}}return encodeURIComponent(G)!==G?5:0}function p(G,E){return typeof G=="object"?C(E,G.result,G.name,G.isScopeName):C(E,G,E,!1)}O.renderPackageNameValidationFailure=p;function C(G,E,ue,B){var re=B?"Scope":"Package";switch(E){case 1:return"'".concat(G,"':: ").concat(re," name '").concat(ue,"' cannot be empty");case 2:return"'".concat(G,"':: ").concat(re," name '").concat(ue,"' should be less than ").concat(S," characters");case 3:return"'".concat(G,"':: ").concat(re," name '").concat(ue,"' cannot start with '.'");case 4:return"'".concat(G,"':: ").concat(re," name '").concat(ue,"' cannot start with '_'");case 5:return"'".concat(G,"':: ").concat(re," name '").concat(ue,"' contains non URI safe characters");case 0:return e.Debug.fail();default:throw e.Debug.assertNever(E)}}})(a=e.JsTyping||(e.JsTyping={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(x){var ie=function(){function Y(Z){this.text=Z}return Y.prototype.getText=function(Z,k){return Z===0&&k===this.text.length?this.text:this.text.substring(Z,k)},Y.prototype.getLength=function(){return this.text.length},Y.prototype.getChangeRange=function(){},Y}();function _e(Y){return new ie(Y)}x.fromString=_e})(a=e.ScriptSnapshot||(e.ScriptSnapshot={}));var O;(function(x){x[x.Dependencies=1]="Dependencies",x[x.DevDependencies=2]="DevDependencies",x[x.PeerDependencies=4]="PeerDependencies",x[x.OptionalDependencies=8]="OptionalDependencies",x[x.All=15]="All"})(O=e.PackageJsonDependencyGroup||(e.PackageJsonDependencyGroup={}));var L;(function(x){x[x.Off=0]="Off",x[x.On=1]="On",x[x.Auto=2]="Auto"})(L=e.PackageJsonAutoImportPreference||(e.PackageJsonAutoImportPreference={}));var W;(function(x){x[x.Semantic=0]="Semantic",x[x.PartialSemantic=1]="PartialSemantic",x[x.Syntactic=2]="Syntactic"})(W=e.LanguageServiceMode||(e.LanguageServiceMode={})),e.emptyOptions={};var N;(function(x){x.Original="original",x.TwentyTwenty="2020"})(N=e.SemanticClassificationFormat||(e.SemanticClassificationFormat={}));var Q;(function(x){x[x.Invoked=1]="Invoked",x[x.TriggerCharacter=2]="TriggerCharacter",x[x.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions"})(Q=e.CompletionTriggerKind||(e.CompletionTriggerKind={}));var pe;(function(x){x.Type="Type",x.Parameter="Parameter",x.Enum="Enum"})(pe=e.InlayHintKind||(e.InlayHintKind={}));var F;(function(x){x.none="none",x.definition="definition",x.reference="reference",x.writtenReference="writtenReference"})(F=e.HighlightSpanKind||(e.HighlightSpanKind={}));var g;(function(x){x[x.None=0]="None",x[x.Block=1]="Block",x[x.Smart=2]="Smart"})(g=e.IndentStyle||(e.IndentStyle={}));var S;(function(x){x.Ignore="ignore",x.Insert="insert",x.Remove="remove"})(S=e.SemicolonPreference||(e.SemicolonPreference={}));function H(x){return{indentSize:4,tabSize:4,newLineCharacter:x||`
`,convertTabsToSpaces:!0,indentStyle:g.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:S.Ignore,trimTrailingWhitespace:!0}}e.getDefaultFormatCodeSettings=H,e.testFormatSettings=H(`
`);var se;(function(x){x[x.aliasName=0]="aliasName",x[x.className=1]="className",x[x.enumName=2]="enumName",x[x.fieldName=3]="fieldName",x[x.interfaceName=4]="interfaceName",x[x.keyword=5]="keyword",x[x.lineBreak=6]="lineBreak",x[x.numericLiteral=7]="numericLiteral",x[x.stringLiteral=8]="stringLiteral",x[x.localName=9]="localName",x[x.methodName=10]="methodName",x[x.moduleName=11]="moduleName",x[x.operator=12]="operator",x[x.parameterName=13]="parameterName",x[x.propertyName=14]="propertyName",x[x.punctuation=15]="punctuation",x[x.space=16]="space",x[x.text=17]="text",x[x.typeParameterName=18]="typeParameterName",x[x.enumMemberName=19]="enumMemberName",x[x.functionName=20]="functionName",x[x.regularExpressionLiteral=21]="regularExpressionLiteral",x[x.link=22]="link",x[x.linkName=23]="linkName",x[x.linkText=24]="linkText"})(se=e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={}));var p;(function(x){x.Comment="comment",x.Region="region",x.Code="code",x.Imports="imports"})(p=e.OutliningSpanKind||(e.OutliningSpanKind={}));var C;(function(x){x[x.JavaScript=0]="JavaScript",x[x.SourceMap=1]="SourceMap",x[x.Declaration=2]="Declaration"})(C=e.OutputFileType||(e.OutputFileType={}));var G;(function(x){x[x.None=0]="None",x[x.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",x[x.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",x[x.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",x[x.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",x[x.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",x[x.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition"})(G=e.EndOfLineState||(e.EndOfLineState={}));var E;(function(x){x[x.Punctuation=0]="Punctuation",x[x.Keyword=1]="Keyword",x[x.Operator=2]="Operator",x[x.Comment=3]="Comment",x[x.Whitespace=4]="Whitespace",x[x.Identifier=5]="Identifier",x[x.NumberLiteral=6]="NumberLiteral",x[x.BigIntLiteral=7]="BigIntLiteral",x[x.StringLiteral=8]="StringLiteral",x[x.RegExpLiteral=9]="RegExpLiteral"})(E=e.TokenClass||(e.TokenClass={}));var ue;(function(x){x.unknown="",x.warning="warning",x.keyword="keyword",x.scriptElement="script",x.moduleElement="module",x.classElement="class",x.localClassElement="local class",x.interfaceElement="interface",x.typeElement="type",x.enumElement="enum",x.enumMemberElement="enum member",x.variableElement="var",x.localVariableElement="local var",x.functionElement="function",x.localFunctionElement="local function",x.memberFunctionElement="method",x.memberGetAccessorElement="getter",x.memberSetAccessorElement="setter",x.memberVariableElement="property",x.constructorImplementationElement="constructor",x.callSignatureElement="call",x.indexSignatureElement="index",x.constructSignatureElement="construct",x.parameterElement="parameter",x.typeParameterElement="type parameter",x.primitiveType="primitive type",x.label="label",x.alias="alias",x.constElement="const",x.letElement="let",x.directory="directory",x.externalModuleName="external module name",x.jsxAttribute="JSX attribute",x.string="string",x.link="link",x.linkName="link name",x.linkText="link text"})(ue=e.ScriptElementKind||(e.ScriptElementKind={}));var B;(function(x){x.none="",x.publicMemberModifier="public",x.privateMemberModifier="private",x.protectedMemberModifier="protected",x.exportedModifier="export",x.ambientModifier="declare",x.staticModifier="static",x.abstractModifier="abstract",x.optionalModifier="optional",x.deprecatedModifier="deprecated",x.dtsModifier=".d.ts",x.tsModifier=".ts",x.tsxModifier=".tsx",x.jsModifier=".js",x.jsxModifier=".jsx",x.jsonModifier=".json",x.dmtsModifier=".d.mts",x.mtsModifier=".mts",x.mjsModifier=".mjs",x.dctsModifier=".d.cts",x.ctsModifier=".cts",x.cjsModifier=".cjs"})(B=e.ScriptElementKindModifier||(e.ScriptElementKindModifier={}));var re;(function(x){x.comment="comment",x.identifier="identifier",x.keyword="keyword",x.numericLiteral="number",x.bigintLiteral="bigint",x.operator="operator",x.stringLiteral="string",x.whiteSpace="whitespace",x.text="text",x.punctuation="punctuation",x.className="class name",x.enumName="enum name",x.interfaceName="interface name",x.moduleName="module name",x.typeParameterName="type parameter name",x.typeAliasName="type alias name",x.parameterName="parameter name",x.docCommentTagName="doc comment tag name",x.jsxOpenTagName="jsx open tag name",x.jsxCloseTagName="jsx close tag name",x.jsxSelfClosingTagName="jsx self closing tag name",x.jsxAttribute="jsx attribute",x.jsxText="jsx text",x.jsxAttributeStringLiteralValue="jsx attribute string literal value"})(re=e.ClassificationTypeNames||(e.ClassificationTypeNames={}));var M;(function(x){x[x.comment=1]="comment",x[x.identifier=2]="identifier",x[x.keyword=3]="keyword",x[x.numericLiteral=4]="numericLiteral",x[x.operator=5]="operator",x[x.stringLiteral=6]="stringLiteral",x[x.regularExpressionLiteral=7]="regularExpressionLiteral",x[x.whiteSpace=8]="whiteSpace",x[x.text=9]="text",x[x.punctuation=10]="punctuation",x[x.className=11]="className",x[x.enumName=12]="enumName",x[x.interfaceName=13]="interfaceName",x[x.moduleName=14]="moduleName",x[x.typeParameterName=15]="typeParameterName",x[x.typeAliasName=16]="typeAliasName",x[x.parameterName=17]="parameterName",x[x.docCommentTagName=18]="docCommentTagName",x[x.jsxOpenTagName=19]="jsxOpenTagName",x[x.jsxCloseTagName=20]="jsxCloseTagName",x[x.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",x[x.jsxAttribute=22]="jsxAttribute",x[x.jsxText=23]="jsxText",x[x.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",x[x.bigintLiteral=25]="bigintLiteral"})(M=e.ClassificationType||(e.ClassificationType={}))})(Pe||(Pe={}));var Pe;(function(e){e.scanner=e.createScanner(99,!0);var a;(function(Te){Te[Te.None=0]="None",Te[Te.Value=1]="Value",Te[Te.Type=2]="Type",Te[Te.Namespace=4]="Namespace",Te[Te.All=7]="All"})(a=e.SemanticMeaning||(e.SemanticMeaning={}));function O(Te){switch(Te.kind){case 253:return e.isInJSFile(Te)&&e.getJSDocEnumTag(Te)?7:1;case 163:case 202:case 166:case 165:case 294:case 295:case 168:case 167:case 170:case 171:case 172:case 255:case 212:case 213:case 291:case 284:return 1;case 162:case 257:case 258:case 181:return 2;case 343:return Te.name===void 0?3:2;case 297:case 256:return 3;case 260:return e.isAmbientModule(Te)||e.getModuleInstanceState(Te)===1?5:4;case 259:case 268:case 269:case 264:case 265:case 270:case 271:return 7;case 303:return 5}return 7}e.getMeaningFromDeclaration=O;function L(Te){Te=Br(Te);var vr=Te.parent;return Te.kind===303?1:e.isExportAssignment(vr)||e.isExportSpecifier(vr)||e.isExternalModuleReference(vr)||e.isImportSpecifier(vr)||e.isImportClause(vr)||e.isImportEqualsDeclaration(vr)&&Te===vr.name?7:N(Te)?W(Te):e.isDeclarationName(Te)?O(vr):e.isEntityName(Te)&&e.findAncestor(Te,e.or(e.isJSDocNameReference,e.isJSDocLinkLike,e.isJSDocMemberName))?7:g(Te)?2:Q(Te)?4:e.isTypeParameterDeclaration(vr)?(e.Debug.assert(e.isJSDocTemplateTag(vr.parent)),2):e.isLiteralTypeNode(vr)?3:1}e.getMeaningFromLocation=L;function W(Te){var vr=Te.kind===160?Te:e.isQualifiedName(Te.parent)&&Te.parent.right===Te?Te.parent:void 0;return vr&&vr.parent.kind===264?7:4}function N(Te){for(;Te.parent.kind===160;)Te=Te.parent;return e.isInternalModuleImportEqualsDeclaration(Te.parent)&&Te.parent.moduleReference===Te}e.isInRightSideOfInternalImportEqualsDeclaration=N;function Q(Te){return pe(Te)||F(Te)}function pe(Te){var vr=Te,Sr=!0;if(vr.parent.kind===160){for(;vr.parent&&vr.parent.kind===160;)vr=vr.parent;Sr=vr.right===Te}return vr.parent.kind===177&&!Sr}function F(Te){var vr=Te,Sr=!0;if(vr.parent.kind===205){for(;vr.parent&&vr.parent.kind===205;)vr=vr.parent;Sr=vr.name===Te}if(!Sr&&vr.parent.kind===227&&vr.parent.parent.kind===290){var Di=vr.parent.parent.parent;return Di.kind===256&&vr.parent.parent.token===117||Di.kind===257&&vr.parent.parent.token===94}return!1}function g(Te){switch(e.isRightSideOfQualifiedNameOrPropertyAccess(Te)&&(Te=Te.parent),Te.kind){case 108:return!e.isExpressionNode(Te);case 191:return!0}switch(Te.parent.kind){case 177:return!0;case 199:return!Te.parent.isTypeOf;case 227:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(Te.parent)}return!1}function S(Te,vr,Sr){return vr===void 0&&(vr=!1),Sr===void 0&&(Sr=!1),re(Te,e.isCallExpression,E,vr,Sr)}e.isCallExpressionTarget=S;function H(Te,vr,Sr){return vr===void 0&&(vr=!1),Sr===void 0&&(Sr=!1),re(Te,e.isNewExpression,E,vr,Sr)}e.isNewExpressionTarget=H;function se(Te,vr,Sr){return vr===void 0&&(vr=!1),Sr===void 0&&(Sr=!1),re(Te,e.isCallOrNewExpression,E,vr,Sr)}e.isCallOrNewExpressionTarget=se;function p(Te,vr,Sr){return vr===void 0&&(vr=!1),Sr===void 0&&(Sr=!1),re(Te,e.isTaggedTemplateExpression,ue,vr,Sr)}e.isTaggedTemplateTag=p;function C(Te,vr,Sr){return vr===void 0&&(vr=!1),Sr===void 0&&(Sr=!1),re(Te,e.isDecorator,E,vr,Sr)}e.isDecoratorTarget=C;function G(Te,vr,Sr){return vr===void 0&&(vr=!1),Sr===void 0&&(Sr=!1),re(Te,e.isJsxOpeningLikeElement,B,vr,Sr)}e.isJsxOpeningLikeElementTagName=G;function E(Te){return Te.expression}function ue(Te){return Te.tag}function B(Te){return Te.tagName}function re(Te,vr,Sr,Di,nt){var _a=Di?x(Te):M(Te);return nt&&(_a=e.skipOuterExpressions(_a)),!!_a&&!!_a.parent&&vr(_a.parent)&&Sr(_a.parent)===_a}function M(Te){return ee(Te)?Te.parent:Te}e.climbPastPropertyAccess=M;function x(Te){return ee(Te)||A(Te)?Te.parent:Te}e.climbPastPropertyOrElementAccess=x;function ie(Te,vr){for(;Te;){if(Te.kind===249&&Te.label.escapedText===vr)return Te.label;Te=Te.parent}}e.getTargetLabel=ie;function _e(Te,vr){return e.isPropertyAccessExpression(Te.expression)?Te.expression.name.text===vr:!1}e.hasPropertyAccessExpressionWithName=_e;function Y(Te){var vr;return e.isIdentifier(Te)&&((vr=e.tryCast(Te.parent,e.isBreakOrContinueStatement))===null||vr===void 0?void 0:vr.label)===Te}e.isJumpStatementTarget=Y;function Z(Te){var vr;return e.isIdentifier(Te)&&((vr=e.tryCast(Te.parent,e.isLabeledStatement))===null||vr===void 0?void 0:vr.label)===Te}e.isLabelOfLabeledStatement=Z;function k(Te){return Z(Te)||Y(Te)}e.isLabelName=k;function I(Te){var vr;return((vr=e.tryCast(Te.parent,e.isJSDocTag))===null||vr===void 0?void 0:vr.tagName)===Te}e.isTagName=I;function ne(Te){var vr;return((vr=e.tryCast(Te.parent,e.isQualifiedName))===null||vr===void 0?void 0:vr.right)===Te}e.isRightSideOfQualifiedName=ne;function ee(Te){var vr;return((vr=e.tryCast(Te.parent,e.isPropertyAccessExpression))===null||vr===void 0?void 0:vr.name)===Te}e.isRightSideOfPropertyAccess=ee;function A(Te){var vr;return((vr=e.tryCast(Te.parent,e.isElementAccessExpression))===null||vr===void 0?void 0:vr.argumentExpression)===Te}e.isArgumentExpressionOfElementAccess=A;function f(Te){var vr;return((vr=e.tryCast(Te.parent,e.isModuleDeclaration))===null||vr===void 0?void 0:vr.name)===Te}e.isNameOfModuleDeclaration=f;function P(Te){var vr;return e.isIdentifier(Te)&&((vr=e.tryCast(Te.parent,e.isFunctionLike))===null||vr===void 0?void 0:vr.name)===Te}e.isNameOfFunctionDeclaration=P;function D(Te){switch(Te.parent.kind){case 166:case 165:case 294:case 297:case 168:case 167:case 171:case 172:case 260:return e.getNameOfDeclaration(Te.parent)===Te;case 206:return Te.parent.argumentExpression===Te;case 161:return!0;case 195:return Te.parent.parent.kind===193;default:return!1}}e.isLiteralNameOfPropertyDeclarationOrIndexAccess=D;function l(Te){return e.isExternalModuleImportEqualsDeclaration(Te.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(Te.parent.parent)===Te}e.isExpressionOfExternalModuleImportEqualsDeclaration=l;function _(Te){for(e.isJSDocTypeAlias(Te)&&(Te=Te.parent.parent);;){if(Te=Te.parent,!Te)return;switch(Te.kind){case 303:case 168:case 167:case 255:case 212:case 171:case 172:case 256:case 257:case 259:case 260:return Te}}}e.getContainerNode=_;function J(Te){switch(Te.kind){case 303:return e.isExternalModule(Te)?"module":"script";case 260:return"module";case 256:case 225:return"class";case 257:return"interface";case 258:case 336:case 343:return"type";case 259:return"enum";case 253:return Na(Te);case 202:return Na(e.getRootDeclaration(Te));case 213:case 255:case 212:return"function";case 171:return"getter";case 172:return"setter";case 168:case 167:return"method";case 294:var vr=Te.initializer;return e.isFunctionLike(vr)?"method":"property";case 166:case 165:case 295:case 296:return"property";case 175:return"index";case 174:return"construct";case 173:return"call";case 170:case 169:return"constructor";case 162:return"type parameter";case 297:return"enum member";case 163:return e.hasSyntacticModifier(Te,16476)?"property":"parameter";case 264:case 269:case 274:case 267:case 273:return"alias";case 220:var Sr=e.getAssignmentDeclarationKind(Te),Di=Te.right;switch(Sr){case 7:case 8:case 9:case 0:return"";case 1:case 2:var nt=J(Di);return nt===""?"const":nt;case 3:return e.isFunctionExpression(Di)?"method":"property";case 4:return"property";case 5:return e.isFunctionExpression(Di)?"method":"property";case 6:return"local class";default:return e.assertType(Sr),""}case 79:return e.isImportClause(Te.parent)?"alias":"";case 270:var _a=J(Te.expression);return _a===""?"const":_a;default:return""}function Na(wn){return e.isVarConst(wn)?"const":e.isLet(wn)?"let":"var"}}e.getNodeKind=J;function w(Te){switch(Te.kind){case 108:return!0;case 79:return e.identifierIsThisKeyword(Te)&&Te.parent.kind===163;default:return!1}}e.isThis=w;var j=/^\/\/\/\s*</;function U(Te,vr){var Sr=e.getLineStarts(vr),Di=vr.getLineAndCharacterOfPosition(Te).line;return Sr[Di]}e.getLineStartPositionForPosition=U;function z(Te,vr){return ce(Te.pos,Te.end,vr)}e.rangeContainsRange=z;function y(Te,vr){return ve(Te,vr.pos)&&ve(Te,vr.end)}e.rangeContainsRangeExclusive=y;function oe(Te,vr){return Te.pos<=vr&&vr<=Te.end}e.rangeContainsPosition=oe;function ve(Te,vr){return Te.pos<vr&&vr<Te.end}e.rangeContainsPositionExclusive=ve;function ce(Te,vr,Sr){return Te<=Sr.pos&&vr>=Sr.end}e.startEndContainsRange=ce;function m(Te,vr,Sr){return Te.pos<=vr&&Te.end>=Sr}e.rangeContainsStartEnd=m;function de(Te,vr,Sr){return V(Te.pos,Te.end,vr,Sr)}e.rangeOverlapsWithStartEnd=de;function ae(Te,vr,Sr,Di){return V(Te.getStart(vr),Te.end,Sr,Di)}e.nodeOverlapsWithStartEnd=ae;function V(Te,vr,Sr,Di){var nt=Math.max(Te,Sr),_a=Math.min(vr,Di);return nt<_a}e.startEndOverlapsWithStartEnd=V;function le(Te,vr,Sr){return e.Debug.assert(Te.pos<=vr),vr<Te.end||!ke(Te,Sr)}e.positionBelongsToNode=le;function ke(Te,vr){if(Te===void 0||e.nodeIsMissing(Te))return!1;switch(Te.kind){case 256:case 257:case 259:case 204:case 200:case 181:case 234:case 261:case 262:case 268:case 272:return Ue(Te,19,vr);case 291:return ke(Te.block,vr);case 208:if(!Te.arguments)return!0;case 207:case 211:case 190:return Ue(Te,21,vr);case 178:case 179:return ke(Te.type,vr);case 170:case 171:case 172:case 255:case 212:case 168:case 167:case 174:case 173:case 213:return Te.body?ke(Te.body,vr):Te.type?ke(Te.type,vr):ar(Te,21,vr);case 260:return!!Te.body&&ke(Te.body,vr);case 238:return Te.elseStatement?ke(Te.elseStatement,vr):ke(Te.thenStatement,vr);case 237:return ke(Te.expression,vr)||ar(Te,26,vr);case 203:case 201:case 206:case 161:case 183:return Ue(Te,23,vr);case 175:return Te.type?ke(Te.type,vr):ar(Te,23,vr);case 288:case 289:return!1;case 241:case 242:case 243:case 240:return ke(Te.statement,vr);case 239:return ar(Te,115,vr)?Ue(Te,21,vr):ke(Te.statement,vr);case 180:return ke(Te.exprName,vr);case 215:case 214:case 216:case 223:case 224:var Sr=Te;return ke(Sr.expression,vr);case 209:return ke(Te.template,vr);case 222:var Di=e.lastOrUndefined(Te.templateSpans);return ke(Di,vr);case 232:return e.nodeIsPresent(Te.literal);case 271:case 265:return e.nodeIsPresent(Te.moduleSpecifier);case 218:return ke(Te.operand,vr);case 220:return ke(Te.right,vr);case 221:return ke(Te.whenFalse,vr);default:return!0}}function Ue(Te,vr,Sr){var Di=Te.getChildren(Sr);if(Di.length){var nt=e.last(Di);if(nt.kind===vr)return!0;if(nt.kind===26&&Di.length!==1)return Di[Di.length-2].kind===vr}return!1}function He(Te){var vr=me(Te);if(!!vr){var Sr=vr.getChildren(),Di=e.indexOfNode(Sr,Te);return{listItemIndex:Di,list:vr}}}e.findListItemInfo=He;function ar(Te,vr,Sr){return!!gr(Te,vr,Sr)}e.hasChildOfKind=ar;function gr(Te,vr,Sr){return e.find(Te.getChildren(Sr),function(Di){return Di.kind===vr})}e.findChildOfKind=gr;function me(Te){var vr=e.find(Te.parent.getChildren(),function(Sr){return e.isSyntaxList(Sr)&&z(Sr,Te)});return e.Debug.assert(!vr||e.contains(vr.getChildren(),Te)),vr}e.findContainingList=me;function Ge(Te){return Te.kind===88}function er(Te){return Te.kind===84}function he(Te){return Te.kind===98}function we(Te){if(e.isNamedDeclaration(Te))return Te.name;if(e.isClassDeclaration(Te)){var vr=Te.modifiers&&e.find(Te.modifiers,Ge);if(vr)return vr}if(e.isClassExpression(Te)){var Sr=e.find(Te.getChildren(),er);if(Sr)return Sr}}function ye(Te){if(e.isNamedDeclaration(Te))return Te.name;if(e.isFunctionDeclaration(Te)){var vr=e.find(Te.modifiers,Ge);if(vr)return vr}if(e.isFunctionExpression(Te)){var Sr=e.find(Te.getChildren(),he);if(Sr)return Sr}}function Se(Te){var vr;return e.findAncestor(Te,function(Sr){return e.isTypeNode(Sr)&&(vr=Sr),!e.isQualifiedName(Sr.parent)&&!e.isTypeNode(Sr.parent)&&!e.isTypeElement(Sr.parent)}),vr}function ge(Te,vr){var Sr=ao(Te,vr);if(Sr)return Sr;var Di=Se(Te);return Di&&vr.getTypeAtLocation(Di)}e.getContextualTypeFromParentOrAncestorTypeNode=ge;function Fe(Te,vr){if(!vr)switch(Te.kind){case 256:case 225:return we(Te);case 255:case 212:return ye(Te)}if(e.isNamedDeclaration(Te))return Te.name}function cr(Te,vr){if(Te.importClause){if(Te.importClause.name&&Te.importClause.namedBindings)return;if(Te.importClause.name)return Te.importClause.name;if(Te.importClause.namedBindings){if(e.isNamedImports(Te.importClause.namedBindings)){var Sr=e.singleOrUndefined(Te.importClause.namedBindings.elements);return Sr?Sr.name:void 0}else if(e.isNamespaceImport(Te.importClause.namedBindings))return Te.importClause.namedBindings.name}}if(!vr)return Te.moduleSpecifier}function ur(Te,vr){if(Te.exportClause){if(e.isNamedExports(Te.exportClause)){var Sr=e.singleOrUndefined(Te.exportClause.elements);return Sr?Te.exportClause.elements[0].name:void 0}else if(e.isNamespaceExport(Te.exportClause))return Te.exportClause.name}if(!vr)return Te.moduleSpecifier}function Ir(Te){if(Te.types.length===1)return Te.types[0].expression}function dr(Te,vr){var Sr=Te.parent;if(e.isModifier(Te)&&(vr||Te.kind!==88)?e.contains(Sr.modifiers,Te):Te.kind===84?e.isClassDeclaration(Sr)||e.isClassExpression(Te):Te.kind===98?e.isFunctionDeclaration(Sr)||e.isFunctionExpression(Te):Te.kind===118?e.isInterfaceDeclaration(Sr):Te.kind===92?e.isEnumDeclaration(Sr):Te.kind===151?e.isTypeAliasDeclaration(Sr):Te.kind===142||Te.kind===141?e.isModuleDeclaration(Sr):Te.kind===100?e.isImportEqualsDeclaration(Sr):Te.kind===136?e.isGetAccessorDeclaration(Sr):Te.kind===148&&e.isSetAccessorDeclaration(Sr)){var Di=Fe(Sr,vr);if(Di)return Di}if((Te.kind===113||Te.kind===85||Te.kind===119)&&e.isVariableDeclarationList(Sr)&&Sr.declarations.length===1){var nt=Sr.declarations[0];if(e.isIdentifier(nt.name))return nt.name}if(Te.kind===151){if(e.isImportClause(Sr)&&Sr.isTypeOnly){var Di=cr(Sr.parent,vr);if(Di)return Di}if(e.isExportDeclaration(Sr)&&Sr.isTypeOnly){var Di=ur(Sr,vr);if(Di)return Di}}if(Te.kind===127){if(e.isImportSpecifier(Sr)&&Sr.propertyName||e.isExportSpecifier(Sr)&&Sr.propertyName||e.isNamespaceImport(Sr)||e.isNamespaceExport(Sr))return Sr.name;if(e.isExportDeclaration(Sr)&&Sr.exportClause&&e.isNamespaceExport(Sr.exportClause))return Sr.exportClause.name}if(Te.kind===100&&e.isImportDeclaration(Sr)){var Di=cr(Sr,vr);if(Di)return Di}if(Te.kind===93){if(e.isExportDeclaration(Sr)){var Di=ur(Sr,vr);if(Di)return Di}if(e.isExportAssignment(Sr))return e.skipOuterExpressions(Sr.expression)}if(Te.kind===145&&e.isExternalModuleReference(Sr))return Sr.expression;if(Te.kind===155&&(e.isImportDeclaration(Sr)||e.isExportDeclaration(Sr))&&Sr.moduleSpecifier)return Sr.moduleSpecifier;if((Te.kind===94||Te.kind===117)&&e.isHeritageClause(Sr)&&Sr.token===Te.kind){var Di=Ir(Sr);if(Di)return Di}if(Te.kind===94){if(e.isTypeParameterDeclaration(Sr)&&Sr.constraint&&e.isTypeReferenceNode(Sr.constraint))return Sr.constraint.typeName;if(e.isConditionalTypeNode(Sr)&&e.isTypeReferenceNode(Sr.extendsType))return Sr.extendsType.typeName}if(Te.kind===137&&e.isInferTypeNode(Sr))return Sr.typeParameter.name;if(Te.kind===101&&e.isTypeParameterDeclaration(Sr)&&e.isMappedTypeNode(Sr.parent))return Sr.name;if(Te.kind===140&&e.isTypeOperatorNode(Sr)&&Sr.operator===140&&e.isTypeReferenceNode(Sr.type))return Sr.type.typeName;if(Te.kind===144&&e.isTypeOperatorNode(Sr)&&Sr.operator===144&&e.isArrayTypeNode(Sr.type)&&e.isTypeReferenceNode(Sr.type.elementType))return Sr.type.elementType.typeName;if(!vr){if((Te.kind===103&&e.isNewExpression(Sr)||Te.kind===114&&e.isVoidExpression(Sr)||Te.kind===112&&e.isTypeOfExpression(Sr)||Te.kind===132&&e.isAwaitExpression(Sr)||Te.kind===125&&e.isYieldExpression(Sr)||Te.kind===89&&e.isDeleteExpression(Sr))&&Sr.expression)return e.skipOuterExpressions(Sr.expression);if((Te.kind===101||Te.kind===102)&&e.isBinaryExpression(Sr)&&Sr.operatorToken===Te)return e.skipOuterExpressions(Sr.right);if(Te.kind===127&&e.isAsExpression(Sr)&&e.isTypeReferenceNode(Sr.type))return Sr.type.typeName;if(Te.kind===101&&e.isForInStatement(Sr)||Te.kind===159&&e.isForOfStatement(Sr))return e.skipOuterExpressions(Sr.expression)}return Te}function Br(Te){return dr(Te,!1)}e.getAdjustedReferenceLocation=Br;function Tr(Te){return dr(Te,!0)}e.getAdjustedRenameLocation=Tr;function n(Te,vr){return Er(Te,vr,function(Sr){return e.isPropertyNameLiteral(Sr)||e.isKeyword(Sr.kind)||e.isPrivateIdentifier(Sr)})}e.getTouchingPropertyName=n;function Er(Te,vr,Sr){return Pr(Te,vr,!1,Sr,!1)}e.getTouchingToken=Er;function br(Te,vr){return Pr(Te,vr,!0,void 0,!1)}e.getTokenAtPosition=br;function Pr(Te,vr,Sr,Di,nt){var _a=Te,Na,wn=function(){var vo=_a.getChildren(Te),Vn=e.binarySearchKey(vo,vr,function(to,Jo){return Jo},function(to,Jo){var Xo=Sr?vo[to].getFullStart():vo[to].getStart(Te,!0);return Xo>vr?1:Go(vo[to])?vo[to-1]&&Go(vo[to-1])?1:0:Di&&Xo===vr&&vo[to-1]&&vo[to-1].getEnd()===vr&&Go(vo[to-1])?1:-1});return Na?{value:Na}:Vn>=0&&vo[Vn]?(_a=vo[Vn],"continue-outer"):{value:_a}};e:for(;;){var no=wn();if(typeof no=="object")return no.value;switch(no){case"continue-outer":continue e}}function Go(vo){var Vn=Sr?vo.getFullStart():vo.getStart(Te,!0);if(Vn>vr)return!1;var to=vo.getEnd();if(vr<to||vr===to&&(vo.kind===1||nt))return!0;if(Di&&to===vr){var Jo=Cr(vr,Te,vo);if(Jo&&Di(Jo))return Na=Jo,!0}return!1}}function Ce(Te,vr){for(var Sr=br(Te,vr);or(Sr);){var Di=Xe(Sr,Sr.parent,Te);if(!Di)return;Sr=Di}return Sr}e.findFirstNonJsxWhitespaceToken=Ce;function Le(Te,vr){var Sr=br(Te,vr);return e.isToken(Sr)&&vr>Sr.getStart(Te)&&vr<Sr.getEnd()?Sr:Cr(vr,Te)}e.findTokenOnLeftOfPosition=Le;function Xe(Te,vr,Sr){return Di(vr);function Di(nt){return e.isToken(nt)&&nt.pos===Te.end?nt:e.firstDefined(nt.getChildren(Sr),function(_a){var Na=_a.pos<=Te.pos&&_a.end>Te.end||_a.pos===Te.end;return Na&&di(_a,Sr)?Di(_a):void 0})}}e.findNextToken=Xe;function Cr(Te,vr,Sr,Di){var nt=_a(Sr||vr);return e.Debug.assert(!(nt&&or(nt))),nt;function _a(Na){if(Lr(Na)&&Na.kind!==1)return Na;var wn=Na.getChildren(vr),no=e.binarySearchKey(wn,Te,function(Xo,Wr){return Wr},function(Xo,Wr){return Te<wn[Xo].end?!wn[Xo-1]||Te>=wn[Xo-1].end?0:1:-1});if(no>=0&&wn[no]){var Go=wn[no];if(Te<Go.end){var vo=Go.getStart(vr,!Di),Vn=vo>=Te||!di(Go,vr)||or(Go);if(Vn){var to=Rr(wn,no,vr,Na.kind);return to&&Jr(to,vr)}else return _a(Go)}}e.Debug.assert(Sr!==void 0||Na.kind===303||Na.kind===1||e.isJSDocCommentContainingNode(Na));var Jo=Rr(wn,wn.length,vr,Na.kind);return Jo&&Jr(Jo,vr)}}e.findPrecedingToken=Cr;function Lr(Te){return e.isToken(Te)&&!or(Te)}function Jr(Te,vr){if(Lr(Te))return Te;var Sr=Te.getChildren(vr);if(Sr.length===0)return Te;var Di=Rr(Sr,Sr.length,vr,Te.kind);return Di&&Jr(Di,vr)}function Rr(Te,vr,Sr,Di){for(var nt=vr-1;nt>=0;nt--){var _a=Te[nt];if(or(_a))nt===0&&(Di===11||Di===278)&&e.Debug.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(di(Te[nt],Sr))return Te[nt]}}function ci(Te,vr,Sr){if(Sr===void 0&&(Sr=Cr(vr,Te)),Sr&&e.isStringTextContainingNode(Sr)){var Di=Sr.getStart(Te),nt=Sr.getEnd();if(Di<vr&&vr<nt)return!0;if(vr===nt)return!!Sr.isUnterminated}return!1}e.isInString=ci;function be(Te,vr){var Sr=br(Te,vr);return Sr?!!(Sr.kind===11||Sr.kind===29&&Sr.parent.kind===11||Sr.kind===29&&Sr.parent.kind===287||Sr&&Sr.kind===19&&Sr.parent.kind===287||Sr.kind===29&&Sr.parent.kind===280):!1}e.isInsideJsxElementOrAttribute=be;function or(Te){return e.isJsxText(Te)&&Te.containsOnlyTriviaWhiteSpaces}function Kr(Te,vr){var Sr=br(Te,vr);return e.isTemplateLiteralKind(Sr.kind)&&vr>Sr.getStart(Te)}e.isInTemplateString=Kr;function ei(Te,vr){var Sr=br(Te,vr);return!!(e.isJsxText(Sr)||Sr.kind===18&&e.isJsxExpression(Sr.parent)&&e.isJsxElement(Sr.parent.parent)||Sr.kind===29&&e.isJsxOpeningLikeElement(Sr.parent)&&e.isJsxElement(Sr.parent.parent))}e.isInJSXText=ei;function li(Te,vr){function Sr(Di){for(;Di;)if(Di.kind>=278&&Di.kind<=287||Di.kind===11||Di.kind===29||Di.kind===31||Di.kind===79||Di.kind===19||Di.kind===18||Di.kind===43)Di=Di.parent;else if(Di.kind===277){if(vr>Di.getStart(Te))return!0;Di=Di.parent}else return!1;return!1}return Sr(br(Te,vr))}e.isInsideJsxElement=li;function Si(Te,vr,Sr){var Di=e.tokenToString(Te.kind),nt=e.tokenToString(vr),_a=Te.getFullStart(),Na=Sr.text.lastIndexOf(nt,_a);if(Na!==-1){if(Sr.text.lastIndexOf(Di,_a-1)<Na){var wn=Cr(Na+1,Sr);if(wn&&wn.kind===vr)return wn}for(var no=Te.kind,Go=0;;){var vo=Cr(Te.getFullStart(),Sr);if(!vo)return;if(Te=vo,Te.kind===vr){if(Go===0)return Te;Go--}else Te.kind===no&&Go++}}}e.findPrecedingMatchingToken=Si;function qi(Te,vr,Sr){return vr?Te.getNonNullableType():Sr?Te.getNonOptionalType():Te}e.removeOptionality=qi;function ft(Te,vr,Sr){var Di=aa(Te,vr);return Di!==void 0&&(e.isPartOfTypeNode(Di.called)||bt(Di.called,Di.nTypeArguments,Sr).length!==0||ft(Di.called,vr,Sr))}e.isPossiblyTypeArgumentPosition=ft;function bt(Te,vr,Sr){var Di=Sr.getTypeAtLocation(Te);e.isOptionalChain(Te.parent)&&(Di=qi(Di,e.isOptionalChainRoot(Te.parent),!0));var nt=e.isNewExpression(Te.parent)?Di.getConstructSignatures():Di.getCallSignatures();return nt.filter(function(_a){return!!_a.typeParameters&&_a.typeParameters.length>=vr})}e.getPossibleGenericSignatures=bt;function aa(Te,vr){if(vr.text.lastIndexOf("<",Te?Te.pos:vr.text.length)!==-1)for(var Sr=Te,Di=0,nt=0;Sr;){switch(Sr.kind){case 29:if(Sr=Cr(Sr.getFullStart(),vr),Sr&&Sr.kind===28&&(Sr=Cr(Sr.getFullStart(),vr)),!Sr||!e.isIdentifier(Sr))return;if(!Di)return e.isDeclarationName(Sr)?void 0:{called:Sr,nTypeArguments:nt};Di--;break;case 49:Di=3;break;case 48:Di=2;break;case 31:Di++;break;case 19:if(Sr=Si(Sr,18,vr),!Sr)return;break;case 21:if(Sr=Si(Sr,20,vr),!Sr)return;break;case 23:if(Sr=Si(Sr,22,vr),!Sr)return;break;case 27:nt++;break;case 38:case 79:case 10:case 8:case 9:case 110:case 95:case 112:case 94:case 140:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(Sr))break;return}Sr=Cr(Sr.getFullStart(),vr)}}e.getPossibleTypeArgumentsInfo=aa;function sr(Te,vr,Sr){return e.formatting.getRangeOfEnclosingComment(Te,vr,void 0,Sr)}e.isInComment=sr;function Ji(Te,vr){var Sr=br(Te,vr);return!!e.findAncestor(Sr,e.isJSDoc)}e.hasDocComment=Ji;function di(Te,vr){return Te.kind===1?!!Te.jsDoc:Te.getWidth(vr)!==0}function X(Te,vr){vr===void 0&&(vr=0);var Sr=[],Di=e.isDeclaration(Te)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(Te)&~vr:0;return Di&8&&Sr.push("private"),Di&16&&Sr.push("protected"),Di&4&&Sr.push("public"),(Di&32||e.isClassStaticBlockDeclaration(Te))&&Sr.push("static"),Di&128&&Sr.push("abstract"),Di&1&&Sr.push("export"),Di&8192&&Sr.push("deprecated"),Te.flags&8388608&&Sr.push("declare"),Te.kind===270&&Sr.push("export"),Sr.length>0?Sr.join(","):""}e.getNodeModifiers=X;function Ye(Te){if(Te.kind===177||Te.kind===207)return Te.typeArguments;if(e.isFunctionLike(Te)||Te.kind===256||Te.kind===257)return Te.typeParameters}e.getTypeArgumentOrTypeParameterList=Ye;function Be(Te){return Te===2||Te===3}e.isComment=Be;function Qe(Te){return!!(Te===10||Te===13||e.isTemplateLiteralKind(Te))}e.isStringOrRegularExpressionOrTemplateLiteral=Qe;function _r(Te){return 18<=Te&&Te<=78}e.isPunctuation=_r;function hr(Te,vr,Sr){return e.isTemplateLiteralKind(Te.kind)&&Te.getStart(Sr)<vr&&vr<Te.end||!!Te.isUnterminated&&vr===Te.end}e.isInsideTemplateLiteral=hr;function Dr(Te){switch(Te){case 123:case 121:case 122:return!0}return!1}e.isAccessibilityModifier=Dr;function Me(Te){var vr=e.clone(Te);return e.setConfigFileInOptions(vr,Te&&Te.configFile),vr}e.cloneCompilerOptions=Me;function v(Te){return!!((Te.kind===203||Te.kind===204)&&(Te.parent.kind===220&&Te.parent.left===Te&&Te.parent.operatorToken.kind===63||Te.parent.kind===243&&Te.parent.initializer===Te||v(Te.parent.kind===294?Te.parent.parent:Te.parent)))}e.isArrayLiteralOrObjectLiteralDestructuringPattern=v;function xe(Te,vr){return Je(Te,vr,!0)}e.isInReferenceComment=xe;function ze(Te,vr){return Je(Te,vr,!1)}e.isInNonReferenceComment=ze;function Je(Te,vr,Sr){var Di=sr(Te,vr,void 0);return!!Di&&Sr===j.test(Te.text.substring(Di.pos,Di.end))}function Oe(Te){if(!!Te)switch(Te.kind){case 10:case 14:return Xr(Te);default:return Fr(Te)}}e.getReplacementSpanForContextToken=Oe;function Fr(Te,vr,Sr){return e.createTextSpanFromBounds(Te.getStart(vr),(Sr||Te).getEnd())}e.createTextSpanFromNode=Fr;function Xr(Te){if(!Te.isUnterminated)return e.createTextSpanFromBounds(Te.getStart()+1,Te.getEnd()-1)}e.createTextSpanFromStringLiteralLikeContent=Xr;function Or(Te,vr){return e.createRange(Te.getStart(vr),Te.end)}e.createTextRangeFromNode=Or;function We(Te){return e.createTextSpanFromBounds(Te.pos,Te.end)}e.createTextSpanFromRange=We;function mr(Te){return e.createRange(Te.start,Te.start+Te.length)}e.createTextRangeFromSpan=mr;function Nr(Te,vr,Sr){return Ur(e.createTextSpan(Te,vr),Sr)}e.createTextChangeFromStartLength=Nr;function Ur(Te,vr){return{span:Te,newText:vr}}e.createTextChange=Ur,e.typeKeywords=[130,128,157,133,95,137,140,143,104,146,147,144,149,150,110,114,152,153,154];function si(Te){return e.contains(e.typeKeywords,Te)}e.isTypeKeyword=si;function mi(Te){return Te.kind===151}e.isTypeKeywordToken=mi;function Ti(Te){return mi(Te)||e.isIdentifier(Te)&&Te.text==="type"}e.isTypeKeywordTokenOrIdentifier=Ti;function hi(Te){return!!(Te.flags&1536)&&Te.name.charCodeAt(0)===34}e.isExternalModuleSymbol=hi;function ki(){var Te=[];return function(vr){var Sr=e.getNodeId(vr);return!Te[Sr]&&(Te[Sr]=!0)}}e.nodeSeenTracker=ki;function Ui(Te){return Te.getText(0,Te.getLength())}e.getSnapshotText=Ui;function zi(Te,vr){for(var Sr="",Di=0;Di<vr;Di++)Sr+=Te;return Sr}e.repeatString=zi;function ri(Te){return Te.isTypeParameter()&&Te.getConstraint()||Te}e.skipConstraint=ri;function Gi(Te){return Te.kind===161?e.isStringOrNumericLiteralLike(Te.expression)?Te.expression.text:void 0:e.isPrivateIdentifier(Te)?e.idText(Te):e.getTextOfIdentifierOrLiteral(Te)}e.getNameFromPropertyName=Gi;function Rt(Te){return Te.getSourceFiles().some(function(vr){return!vr.isDeclarationFile&&!Te.isSourceFileFromExternalLibrary(vr)&&!!(vr.externalModuleIndicator||vr.commonJsModuleIndicator)})}e.programContainsModules=Rt;function pa(Te){return Te.getSourceFiles().some(function(vr){return!vr.isDeclarationFile&&!Te.isSourceFileFromExternalLibrary(vr)&&!!vr.externalModuleIndicator})}e.programContainsEsModules=pa;function xt(Te){return!!Te.module||e.getEmitScriptTarget(Te)>=2||!!Te.noEmit}e.compilerOptionsIndicateEsModules=xt;function ua(Te,vr){return{fileExists:function(Sr){return Te.fileExists(Sr)},getCurrentDirectory:function(){return vr.getCurrentDirectory()},readFile:e.maybeBind(vr,vr.readFile),useCaseSensitiveFileNames:e.maybeBind(vr,vr.useCaseSensitiveFileNames),getSymlinkCache:e.maybeBind(vr,vr.getSymlinkCache)||Te.getSymlinkCache,getModuleSpecifierCache:e.maybeBind(vr,vr.getModuleSpecifierCache),getPackageJsonInfoCache:function(){var Sr;return(Sr=Te.getModuleResolutionCache())===null||Sr===void 0?void 0:Sr.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:e.maybeBind(vr,vr.getGlobalTypingsCacheLocation),redirectTargetsMap:Te.redirectTargetsMap,getProjectReferenceRedirect:function(Sr){return Te.getProjectReferenceRedirect(Sr)},isSourceOfProjectReferenceRedirect:function(Sr){return Te.isSourceOfProjectReferenceRedirect(Sr)},getNearestAncestorDirectoryWithPackageJson:e.maybeBind(vr,vr.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:function(){return Te.getFileIncludeReasons()}}}e.createModuleSpecifierResolutionHost=ua;function Vt(Te,vr){return Ve(Ve({},ua(Te,vr)),{getCommonSourceDirectory:function(){return Te.getCommonSourceDirectory()}})}e.getModuleSpecifierResolverHost=Vt;function St(Te,vr,Sr,Di){return Te||vr&&vr.length?Ci(Te,vr,Sr,Di):void 0}e.makeImportIfNecessary=St;function Ci(Te,vr,Sr,Di,nt){return e.factory.createImportDeclaration(void 0,void 0,Te||vr?e.factory.createImportClause(!!nt,Te,vr&&vr.length?e.factory.createNamedImports(vr):void 0):void 0,typeof Sr=="string"?Hi(Sr,Di):Sr,void 0)}e.makeImport=Ci;function Hi(Te,vr){return e.factory.createStringLiteral(Te,vr===0)}e.makeStringLiteral=Hi;var Yi;(function(Te){Te[Te.Single=0]="Single",Te[Te.Double=1]="Double"})(Yi=e.QuotePreference||(e.QuotePreference={}));function yt(Te,vr){return e.isStringDoubleQuoted(Te,vr)?1:0}e.quotePreferenceFromString=yt;function gt(Te,vr){if(vr.quotePreference&&vr.quotePreference!=="auto")return vr.quotePreference==="single"?0:1;var Sr=Te.imports&&e.find(Te.imports,function(Di){return e.isStringLiteral(Di)&&!e.nodeIsSynthesized(Di.parent)});return Sr?yt(Sr,Te):1}e.getQuotePreference=gt;function oa(Te){switch(Te){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(Te)}}e.getQuoteFromPreference=oa;function Bt(Te){var vr=Pi(Te);return vr===void 0?void 0:e.unescapeLeadingUnderscores(vr)}e.symbolNameNoDefault=Bt;function Pi(Te){return Te.escapedName!=="default"?Te.escapedName:e.firstDefined(Te.declarations,function(vr){var Sr=e.getNameOfDeclaration(vr);return Sr&&Sr.kind===79?Sr.escapedText:void 0})}e.symbolEscapedNameNoDefault=Pi;function Oi(Te){return e.isStringLiteralLike(Te)&&(e.isExternalModuleReference(Te.parent)||e.isImportDeclaration(Te.parent)||e.isRequireCall(Te.parent,!1)&&Te.parent.arguments[0]===Te||e.isImportCall(Te.parent)&&Te.parent.arguments[0]===Te)}e.isModuleSpecifierLike=Oi;function wi(Te){return e.isBindingElement(Te)&&e.isObjectBindingPattern(Te.parent)&&e.isIdentifier(Te.name)&&!Te.propertyName}e.isObjectBindingElementWithoutPropertyName=wi;function Qr(Te,vr){var Sr=Te.getTypeAtLocation(vr.parent);return Sr&&Te.getPropertyOfType(Sr,vr.name.text)}e.getPropertySymbolFromBindingElement=Qr;function Ct(Te,vr,Sr){if(!!Te)for(;Te.parent;){if(e.isSourceFile(Te.parent)||!tt(Sr,Te.parent,vr))return Te;Te=Te.parent}}e.getParentNodeInSpan=Ct;function tt(Te,vr,Sr){return e.textSpanContainsPosition(Te,vr.getStart(Sr))&&vr.getEnd()<=e.textSpanEnd(Te)}function ta(Te,vr){return Te.modifiers&&e.find(Te.modifiers,function(Sr){return Sr.kind===vr})}e.findModifier=ta;function Xa(Te,vr,Sr,Di){var nt=e.isArray(Sr)?Sr[0]:Sr,_a=nt.kind===236?e.isRequireVariableStatement:e.isAnyImportSyntax,Na=e.filter(vr.statements,_a),wn=e.isArray(Sr)?e.stableSort(Sr,e.OrganizeImports.compareImportsOrRequireStatements):[Sr];if(!Na.length)Te.insertNodesAtTopOfFile(vr,wn,Di);else if(Na&&e.OrganizeImports.importsAreSorted(Na))for(var no=0,Go=wn;no<Go.length;no++){var vo=Go[no],Vn=e.OrganizeImports.getImportDeclarationInsertionIndex(Na,vo);if(Vn===0){var to=Na[0]===vr.statements[0]?{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude}:{};Te.insertNodeBefore(vr,Na[0],vo,!1,to)}else{var Jo=Na[Vn-1];Te.insertNodeAfter(vr,Jo,vo)}}else{var Xo=e.lastOrUndefined(Na);Xo?Te.insertNodesAfter(vr,Xo,wn):Te.insertNodesAtTopOfFile(vr,wn,Di)}}e.insertImports=Xa;function on(Te,vr){return e.Debug.assert(Te.isTypeOnly),e.cast(Te.getChildAt(0,vr),mi)}e.getTypeKeywordOfTypeOnlyImport=on;function qr(Te,vr){return!!Te&&!!vr&&Te.start===vr.start&&Te.length===vr.length}e.textSpansEqual=qr;function bn(Te,vr){return Te.fileName===vr.fileName&&qr(Te.textSpan,vr.textSpan)}e.documentSpansEqual=bn;function Rn(Te,vr){if(Te){for(var Sr=0;Sr<Te.length;Sr++)if(Te.indexOf(Te[Sr])===Sr){var Di=vr(Te[Sr],Sr);if(Di)return Di}}}e.forEachUnique=Rn;function Sn(Te,vr,Sr){for(var Di=vr;Di<Sr;Di++)if(!e.isWhiteSpaceLike(Te.charCodeAt(Di)))return!1;return!0}e.isTextWhiteSpaceLike=Sn;function zn(Te){var vr=Te.declarations?e.firstOrUndefined(Te.declarations):void 0;return!!e.findAncestor(vr,function(Sr){return e.isParameter(Sr)?!0:e.isBindingElement(Sr)||e.isObjectBindingPattern(Sr)||e.isArrayBindingPattern(Sr)?!1:"quit"})}e.isFirstDeclarationOfSymbolParameter=zn;var Zn=ho();function ho(){var Te=e.defaultMaximumTruncationLength*10,vr,Sr,Di,nt;vo();var _a=function(Vn){return wn(Vn,e.SymbolDisplayPartKind.text)};return{displayParts:function(){var Vn=vr.length&&vr[vr.length-1].text;return nt>Te&&Vn&&Vn!=="..."&&(e.isWhiteSpaceLike(Vn.charCodeAt(Vn.length-1))||vr.push(Cn(" ",e.SymbolDisplayPartKind.space)),vr.push(Cn("...",e.SymbolDisplayPartKind.punctuation))),vr},writeKeyword:function(Vn){return wn(Vn,e.SymbolDisplayPartKind.keyword)},writeOperator:function(Vn){return wn(Vn,e.SymbolDisplayPartKind.operator)},writePunctuation:function(Vn){return wn(Vn,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(Vn){return wn(Vn,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(Vn){return wn(Vn,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(Vn){return wn(Vn,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(Vn){return wn(Vn,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(Vn){return wn(Vn,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(Vn){return wn(Vn,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:no,writeLine:Go,write:_a,writeComment:_a,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 Di},increaseIndent:function(){Di++},decreaseIndent:function(){Di--},clear:vo,trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function Na(){if(!(nt>Te)&&Sr){var Vn=e.getIndentString(Di);Vn&&(nt+=Vn.length,vr.push(Cn(Vn,e.SymbolDisplayPartKind.space))),Sr=!1}}function wn(Vn,to){nt>Te||(Na(),nt+=Vn.length,vr.push(Cn(Vn,to)))}function no(Vn,to){nt>Te||(Na(),nt+=Vn.length,vr.push(Vo(Vn,to)))}function Go(){nt>Te||(nt+=1,vr.push(ut()),Sr=!0)}function vo(){vr=[],Sr=!0,Di=0,nt=0}}function Vo(Te,vr){return Cn(Te,Sr(vr));function Sr(Di){var nt=Di.flags;return nt&3?zn(Di)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:nt&4||nt&32768||nt&65536?e.SymbolDisplayPartKind.propertyName:nt&8?e.SymbolDisplayPartKind.enumMemberName:nt&16?e.SymbolDisplayPartKind.functionName:nt&32?e.SymbolDisplayPartKind.className:nt&64?e.SymbolDisplayPartKind.interfaceName:nt&384?e.SymbolDisplayPartKind.enumName:nt&1536?e.SymbolDisplayPartKind.moduleName:nt&8192?e.SymbolDisplayPartKind.methodName:nt&262144?e.SymbolDisplayPartKind.typeParameterName:nt&524288||nt&2097152?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}}e.symbolPart=Vo;function Cn(Te,vr){return{text:Te,kind:e.SymbolDisplayPartKind[vr]}}e.displayPart=Cn;function go(){return Cn(" ",e.SymbolDisplayPartKind.space)}e.spacePart=go;function ro(Te){return Cn(e.tokenToString(Te),e.SymbolDisplayPartKind.keyword)}e.keywordPart=ro;function Ko(Te){return Cn(e.tokenToString(Te),e.SymbolDisplayPartKind.punctuation)}e.punctuationPart=Ko;function rs(Te){return Cn(e.tokenToString(Te),e.SymbolDisplayPartKind.operator)}e.operatorPart=rs;function rn(Te){return Cn(Te,e.SymbolDisplayPartKind.parameterName)}e.parameterNamePart=rn;function Do(Te){return Cn(Te,e.SymbolDisplayPartKind.propertyName)}e.propertyNamePart=Do;function io(Te){var vr=e.stringToToken(Te);return vr===void 0?pn(Te):ro(vr)}e.textOrKeywordPart=io;function pn(Te){return Cn(Te,e.SymbolDisplayPartKind.text)}e.textPart=pn;function Qn(Te){return Cn(Te,e.SymbolDisplayPartKind.aliasName)}e.typeAliasNamePart=Qn;function wo(Te){return Cn(Te,e.SymbolDisplayPartKind.typeParameterName)}e.typeParameterNamePart=wo;function xo(Te){return Cn(Te,e.SymbolDisplayPartKind.linkText)}e.linkTextPart=xo;function ds(Te,vr){return{text:Te,kind:e.SymbolDisplayPartKind[e.SymbolDisplayPartKind.linkName],target:{fileName:e.getSourceFileOfNode(vr).fileName,textSpan:Fr(vr)}}}e.linkNamePart=ds;function No(Te){return Cn(Te,e.SymbolDisplayPartKind.link)}e.linkPart=No;function Ts(Te,vr){var Sr,Di=e.isJSDocLink(Te)?"link":e.isJSDocLinkCode(Te)?"linkcode":"linkplain",nt=[No("{@".concat(Di," "))];if(!Te.name)Te.text&&nt.push(xo(Te.text));else{var _a=vr==null?void 0:vr.getSymbolAtLocation(Te.name),Na=Ms(Te.text),wn=e.getTextOfNode(Te.name)+Te.text.slice(0,Na),no=Te.text.slice(Na),Go=(_a==null?void 0:_a.valueDeclaration)||((Sr=_a==null?void 0:_a.declarations)===null||Sr===void 0?void 0:Sr[0]);Go?(nt.push(ds(wn,Go)),no&&nt.push(xo(no))):nt.push(xo(wn+(Na||no.indexOf("://")===0?"":" ")+no))}return nt.push(No("}")),nt}e.buildLinkParts=Ts;function Ms(Te){if(Te.indexOf("()")===0)return 2;if(Te[0]!=="<")return 0;for(var vr=0,Sr=0;Sr<Te.length;)if(Te[Sr]==="<"&&vr++,Te[Sr]===">"&&vr--,Sr++,!vr)return Sr;return 0}var xr=`\r
`;function bi(Te,vr){var Sr;return(vr==null?void 0:vr.newLineCharacter)||((Sr=Te.getNewLine)===null||Sr===void 0?void 0:Sr.call(Te))||xr}e.getNewLineOrDefaultFromHost=bi;function ut(){return Cn(`
`,e.SymbolDisplayPartKind.lineBreak)}e.lineBreakPart=ut;function Ht(Te){try{return Te(Zn),Zn.displayParts()}finally{Zn.clear()}}e.mapToDisplayParts=Ht;function Ka(Te,vr,Sr,Di){return Di===void 0&&(Di=0),Ht(function(nt){Te.writeType(vr,Sr,Di|1024|16384,nt)})}e.typeToDisplayParts=Ka;function an(Te,vr,Sr,Di,nt){return nt===void 0&&(nt=0),Ht(function(_a){Te.writeSymbol(vr,Sr,Di,nt|8,_a)})}e.symbolToDisplayParts=an;function Ke(Te,vr,Sr,Di){return Di===void 0&&(Di=0),Di|=25632,Ht(function(nt){Te.writeSignature(vr,Sr,Di,void 0,nt)})}e.signatureToDisplayParts=Ke;function h(Te){return!!Te.parent&&e.isImportOrExportSpecifier(Te.parent)&&Te.parent.propertyName===Te}e.isImportOrExportSpecifierName=h;function Ee(Te,vr){return e.ensureScriptKind(Te,vr.getScriptKind&&vr.getScriptKind(Te))}e.getScriptKind=Ee;function Re(Te,vr){for(var Sr=Te;Gr(Sr)||nr(Sr)&&Sr.target;)nr(Sr)&&Sr.target?Sr=Sr.target:Sr=e.skipAlias(Sr,vr);return Sr}e.getSymbolTarget=Re;function nr(Te){return(Te.flags&33554432)!==0}function Gr(Te){return(Te.flags&2097152)!==0}function _i(Te,vr){return e.getSymbolId(e.skipAlias(Te,vr))}e.getUniqueSymbolId=_i;function Ei(Te,vr){for(;e.isWhiteSpaceLike(Te.charCodeAt(vr));)vr+=1;return vr}e.getFirstNonSpaceCharacterPosition=Ei;function Ki(Te,vr){for(;vr>-1&&e.isWhiteSpaceSingleLine(Te.charCodeAt(vr));)vr-=1;return vr+1}e.getPrecedingNonSpaceCharacterPosition=Ki;function Nt(Te,vr){vr===void 0&&(vr=!0);var Sr=Te&&Fa(Te);return Sr&&!vr&&so(Sr),Sr}e.getSynthesizedDeepClone=Nt;function ca(Te,vr,Sr){var Di=Sr(Te);return Di?e.setOriginalNode(Di,Te):Di=Fa(Te,Sr),Di&&!vr&&so(Di),Di}e.getSynthesizedDeepCloneWithReplacements=ca;function Fa(Te,vr){var Sr=vr?function(Na){return ca(Na,!0,vr)}:Nt,Di=vr?function(Na){return Na&&In(Na,!0,vr)}:function(Na){return Na&&Ta(Na)},nt=e.visitEachChild(Te,Sr,e.nullTransformationContext,Di,Sr);if(nt===Te){var _a=e.isStringLiteral(Te)?e.setOriginalNode(e.factory.createStringLiteralFromNode(Te),Te):e.isNumericLiteral(Te)?e.setOriginalNode(e.factory.createNumericLiteral(Te.text,Te.numericLiteralFlags),Te):e.factory.cloneNode(Te);return e.setTextRange(_a,Te)}return nt.parent=void 0,nt}function Ta(Te,vr){return vr===void 0&&(vr=!0),Te&&e.factory.createNodeArray(Te.map(function(Sr){return Nt(Sr,vr)}),Te.hasTrailingComma)}e.getSynthesizedDeepClones=Ta;function In(Te,vr,Sr){return e.factory.createNodeArray(Te.map(function(Di){return ca(Di,vr,Sr)}),Te.hasTrailingComma)}e.getSynthesizedDeepClonesWithReplacements=In;function so(Te){as(Te),Ho(Te)}e.suppressLeadingAndTrailingTrivia=so;function as(Te){mc(Te,512,Hs)}e.suppressLeadingTrivia=as;function Ho(Te){mc(Te,1024,e.getLastChild)}e.suppressTrailingTrivia=Ho;function Ds(Te,vr){var Sr=Te.getSourceFile(),Di=Sr.text;Os(Te,Di)?ga(Te,vr,Sr):yn(Te,vr,Sr),xn(Te,vr,Sr)}e.copyComments=Ds;function Os(Te,vr){for(var Sr=Te.getFullStart(),Di=Te.getStart(),nt=Sr;nt<Di;nt++)if(vr.charCodeAt(nt)===10)return!0;return!1}function mc(Te,vr,Sr){e.addEmitFlags(Te,vr);var Di=Sr(Te);Di&&mc(Di,vr,Sr)}function Hs(Te){return Te.forEachChild(function(vr){return vr})}function Mi(Te,vr){for(var Sr=Te,Di=1;!e.isFileLevelUniqueName(vr,Sr);Di++)Sr="".concat(Te,"_").concat(Di);return Sr}e.getUniqueName=Mi;function $t(Te,vr,Sr,Di){for(var nt=0,_a=-1,Na=0,wn=Te;Na<wn.length;Na++){var no=wn[Na],Go=no.fileName,vo=no.textChanges;e.Debug.assert(Go===vr);for(var Vn=0,to=vo;Vn<to.length;Vn++){var Jo=to[Vn],Xo=Jo.span,Wr=Jo.newText,Ws=Pa(Wr,Sr);if(Ws!==-1&&(_a=Xo.start+nt+Ws,!Di))return _a;nt+=Wr.length-Xo.length}}return e.Debug.assert(Di),e.Debug.assert(_a>=0),_a}e.getRenameLocation=$t;function ga(Te,vr,Sr,Di,nt){e.forEachLeadingCommentRange(Sr.text,Te.pos,An(vr,Sr,Di,nt,e.addSyntheticLeadingComment))}e.copyLeadingComments=ga;function xn(Te,vr,Sr,Di,nt){e.forEachTrailingCommentRange(Sr.text,Te.end,An(vr,Sr,Di,nt,e.addSyntheticTrailingComment))}e.copyTrailingComments=xn;function yn(Te,vr,Sr,Di,nt){e.forEachTrailingCommentRange(Sr.text,Te.pos,An(vr,Sr,Di,nt,e.addSyntheticLeadingComment))}e.copyTrailingAsLeadingComments=yn;function An(Te,vr,Sr,Di,nt){return function(_a,Na,wn,no){wn===3?(_a+=2,Na-=2):_a+=2,nt(Te,Sr||wn,vr.text.slice(_a,Na),Di!==void 0?Di:no)}}function Pa(Te,vr){if(e.startsWith(Te,vr))return 0;var Sr=Te.indexOf(" "+vr);return Sr===-1&&(Sr=Te.indexOf("."+vr)),Sr===-1&&(Sr=Te.indexOf('"'+vr)),Sr===-1?-1:Sr+1}function Mn(Te){return e.isBinaryExpression(Te)&&Te.operatorToken.kind===27||e.isObjectLiteralExpression(Te)||e.isAsExpression(Te)&&e.isObjectLiteralExpression(Te.expression)}e.needsParentheses=Mn;function ao(Te,vr){var Sr=Te.parent;switch(Sr.kind){case 208:return vr.getContextualType(Sr);case 220:{var Di=Sr,nt=Di.left,_a=Di.operatorToken,Na=Di.right;return De(_a.kind)?vr.getTypeAtLocation(Te===Na?nt:Na):vr.getContextualType(Te)}case 288:return Sr.expression===Te?et(Sr,vr):void 0;default:return vr.getContextualType(Te)}}e.getContextualTypeFromParent=ao;function co(Te,vr,Sr){var Di=gt(Te,vr),nt=JSON.stringify(Sr);return Di===0?"'".concat(e.stripQuotes(nt).replace(/'/g,"\\'").replace(/\\"/g,'"'),"'"):nt}e.quote=co;function De(Te){switch(Te){case 36:case 34:case 37:case 35:return!0;default:return!1}}e.isEqualityOperatorKind=De;function zr(Te){switch(Te.kind){case 10:case 14:case 222:case 209:return!0;default:return!1}}e.isStringLiteralOrTemplate=zr;function xi(Te){return!!Te.getStringIndexType()||!!Te.getNumberIndexType()}e.hasIndexSignature=xi;function et(Te,vr){return vr.getTypeAtLocation(Te.parent.parent.expression)}e.getSwitchedType=et,e.ANONYMOUS="anonymous function";function je(Te,vr,Sr,Di){var nt=Sr.getTypeChecker(),_a=!0,Na=function(){return _a=!1},wn=nt.typeToTypeNode(Te,vr,1,{trackSymbol:function(no,Go,vo){return _a=_a&&nt.isSymbolAccessible(no,Go,vo,!1).accessibility===0,!_a},reportInaccessibleThisError:Na,reportPrivateInBaseOfClassExpression:Na,reportInaccessibleUniqueSymbolError:Na,moduleResolverHost:Vt(Sr,Di)});return _a?wn:void 0}e.getTypeNodeIfAccessible=je;function ti(Te){return Te===173||Te===174||Te===175||Te===165||Te===167}function mt(Te){return Te===255||Te===170||Te===168||Te===171||Te===172}function Zt(Te){return Te===260}function ln(Te){return Te===236||Te===237||Te===239||Te===244||Te===245||Te===246||Te===250||Te===252||Te===166||Te===258||Te===265||Te===264||Te===271||Te===263||Te===270}e.syntaxRequiresTrailingSemicolonOrASI=ln,e.syntaxMayBeASICandidate=e.or(ti,mt,Zt,ln);function Ba(Te,vr){var Sr=Te.getLastToken(vr);if(Sr&&Sr.kind===26)return!1;if(ti(Te.kind)){if(Sr&&Sr.kind===27)return!1}else if(Zt(Te.kind)){var Di=e.last(Te.getChildren(vr));if(Di&&e.isModuleBlock(Di))return!1}else if(mt(Te.kind)){var Di=e.last(Te.getChildren(vr));if(Di&&e.isFunctionBlock(Di))return!1}else if(!ln(Te.kind))return!1;if(Te.kind===239)return!0;var nt=e.findAncestor(Te,function(no){return!no.parent}),_a=Xe(Te,nt,vr);if(!_a||_a.kind===19)return!0;var Na=vr.getLineAndCharacterOfPosition(Te.getEnd()).line,wn=vr.getLineAndCharacterOfPosition(_a.getStart(vr)).line;return Na!==wn}function Oo(Te,vr,Sr){var Di=e.findAncestor(vr,function(nt){return nt.end!==Te?"quit":e.syntaxMayBeASICandidate(nt.kind)});return!!Di&&Ba(Di,Sr)}e.positionIsASICandidate=Oo;function jr(Te){var vr=0,Sr=0,Di=5;return e.forEachChild(Te,function nt(_a){if(ln(_a.kind)){var Na=_a.getLastToken(Te);(Na==null?void 0:Na.kind)===26?vr++:Sr++}else if(ti(_a.kind)){var Na=_a.getLastToken(Te);if((Na==null?void 0:Na.kind)===26)vr++;else if(Na&&Na.kind!==27){var wn=e.getLineAndCharacterOfPosition(Te,Na.getStart(Te)).line,no=e.getLineAndCharacterOfPosition(Te,e.getSpanOfTokenAtPosition(Te,Na.end).start).line;wn!==no&&Sr++}}return vr+Sr>=Di?!0:e.forEachChild(_a,nt)}),vr===0&&Sr<=1?!0:vr/Sr>1/Di}e.probablyUsesSemicolons=jr;function is(Te,vr){return rc(Te,Te.getDirectories,vr)||[]}e.tryGetDirectories=is;function hc(Te,vr,Sr,Di,nt){return rc(Te,Te.readDirectory,vr,Sr,Di,nt)||e.emptyArray}e.tryReadDirectory=hc;function nc(Te,vr){return rc(Te,Te.fileExists,vr)}e.tryFileExists=nc;function ns(Te,vr){return Xs(function(){return e.directoryProbablyExists(vr,Te)})||!1}e.tryDirectoryExists=ns;function Xs(Te){try{return Te()}catch{return}}e.tryAndIgnoreErrors=Xs;function rc(Te,vr){for(var Sr=[],Di=2;Di<arguments.length;Di++)Sr[Di-2]=arguments[Di];return Xs(function(){return vr&&vr.apply(Te,Sr)})}e.tryIOAndConsumeErrors=rc;function uu(Te,vr,Sr){var Di=[];return e.forEachAncestorDirectory(Te,function(nt){if(nt===Sr)return!0;var _a=e.combinePaths(nt,"package.json");nc(vr,_a)&&Di.push(_a)}),Di}e.findPackageJsons=uu;function Bc(Te,vr){var Sr;return e.forEachAncestorDirectory(Te,function(Di){if(Di==="node_modules"||(Sr=e.findConfigFile(Di,function(nt){return nc(vr,nt)},"package.json"),Sr))return!0}),Sr}e.findPackageJson=Bc;function Qu(Te,vr){if(!vr.fileExists)return[];var Sr=[];return e.forEachAncestorDirectory(e.getDirectoryPath(Te),function(Di){var nt=e.combinePaths(Di,"package.json");if(vr.fileExists(nt)){var _a=uo(nt,vr);_a&&Sr.push(_a)}}),Sr}e.getPackageJsonsVisibleToFile=Qu;function uo(Te,vr){if(!vr.readFile)return;var Sr=["dependencies","devDependencies","optionalDependencies","peerDependencies"],Di=vr.readFile(Te)||"",nt=Ru(Di),_a={};if(nt)for(var Na=0,wn=Sr;Na<wn.length;Na++){var no=wn[Na],Go=nt[no];if(!!Go){var vo=new e.Map;for(var Vn in Go)vo.set(Vn,Go[Vn]);_a[no]=vo}}var to=[[1,_a.dependencies],[2,_a.devDependencies],[8,_a.optionalDependencies],[4,_a.peerDependencies]];return Ve(Ve({},_a),{parseable:!!nt,fileName:Te,get:Jo,has:function(Xo,Wr){return!!Jo(Xo,Wr)}});function Jo(Xo,Wr){Wr===void 0&&(Wr=15);for(var Ws=0,nu=to;Ws<nu.length;Ws++){var Tu=nu[Ws],oc=Tu[0],Qc=Tu[1];if(Qc&&Wr&oc){var fu=Qc.get(Xo);if(fu!==void 0)return fu}}}}e.createPackageJsonInfo=uo;function Xc(Te,vr,Sr){var Di=(Sr.getPackageJsonsVisibleToFile&&Sr.getPackageJsonsVisibleToFile(Te.fileName)||Qu(Te.fileName,Sr)).filter(function(to){return to.parseable}),nt;return{allowsImportingAmbientModule:Na,allowsImportingSourceFile:wn,allowsImportingSpecifier:no};function _a(to){for(var Jo=Vn(to),Xo=0,Wr=Di;Xo<Wr.length;Xo++){var Ws=Wr[Xo];if(Ws.has(Jo)||Ws.has(e.getTypesPackageName(Jo)))return!0}return!1}function Na(to,Jo){if(!Di.length||!to.valueDeclaration)return!0;var Xo=to.valueDeclaration.getSourceFile(),Wr=vo(Xo.fileName,Jo);if(typeof Wr>"u")return!0;var Ws=e.stripQuotes(to.getName());return Go(Ws)?!0:_a(Wr)||_a(Ws)}function wn(to,Jo){if(!Di.length)return!0;var Xo=vo(to.fileName,Jo);return Xo?_a(Xo):!0}function no(to){return!Di.length||Go(to)||e.pathIsRelative(to)||e.isRootedDiskPath(to)?!0:_a(to)}function Go(to){return!!(e.isSourceFileJS(Te)&&e.JsTyping.nodeCoreModules.has(to)&&(nt===void 0&&(nt=Dc(Te)),nt))}function vo(to,Jo){if(!!e.stringContains(to,"node_modules")){var Xo=e.moduleSpecifiers.getNodeModulesPackageName(Sr.getCompilationSettings(),Te,to,Jo,vr);if(!!Xo&&!e.pathIsRelative(Xo)&&!e.isRootedDiskPath(Xo))return Vn(Xo)}}function Vn(to){var Jo=e.getPathComponents(e.getPackageNameFromTypesPackageName(to)).slice(1);return e.startsWith(Jo[0],"@")?"".concat(Jo[0],"/").concat(Jo[1]):Jo[0]}}e.createPackageJsonImportFilter=Xc;function Ru(Te){try{return JSON.parse(Te)}catch{return}}function Dc(Te){return e.some(Te.imports,function(vr){var Sr=vr.text;return e.JsTyping.nodeCoreModules.has(Sr)})}e.consumesNodeCoreModules=Dc;function Yu(Te){return e.contains(e.getPathComponents(Te),"node_modules")}e.isInsideNodeModules=Yu;function lu(Te){return Te.file!==void 0&&Te.start!==void 0&&Te.length!==void 0}e.isDiagnosticWithLocation=lu;function qa(Te,vr){var Sr=Fr(Te),Di=e.binarySearchKey(vr,Sr,e.identity,e.compareTextSpans);if(Di>=0){var nt=vr[Di];return e.Debug.assertEqual(nt.file,Te.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),e.cast(nt,lu)}}e.findDiagnosticForNode=qa;function Bu(Te,vr){var Sr,Di=e.binarySearchKey(vr,Te.start,function(wn){return wn.start},e.compareValues);for(Di<0&&(Di=~Di);((Sr=vr[Di-1])===null||Sr===void 0?void 0:Sr.start)===Te.start;)Di--;for(var nt=[],_a=e.textSpanEnd(Te);;){var Na=e.tryCast(vr[Di],lu);if(!Na||Na.start>_a)break;e.textSpanContainsTextSpan(Te,Na)&&nt.push(Na),Di++}return nt}e.getDiagnosticsWithinSpan=Bu;function $u(Te){var vr=Te.startPosition,Sr=Te.endPosition;return e.createTextSpanFromBounds(vr,Sr===void 0?vr:Sr)}e.getRefactorContextSpan=$u;function au(Te,vr){var Sr=br(Te,vr.start),Di=e.findAncestor(Sr,function(nt){return nt.getStart(Te)<vr.start||nt.getEnd()>e.textSpanEnd(vr)?"quit":e.isExpression(nt)&&qr(vr,Fr(nt,Te))});return Di}e.getFixableErrorSpanExpression=au;function Vr(Te,vr,Sr){return Sr===void 0&&(Sr=e.identity),Te?e.isArray(Te)?Sr(e.map(Te,vr)):vr(Te,0):void 0}e.mapOneOrMany=Vr;function fi(Te){return e.isArray(Te)?e.first(Te):Te}e.firstOrOnly=fi;function Ni(Te,vr){if(Tt(Te)){var Sr=Dt(Te);if(Sr)return Sr;var Di=e.codefix.moduleSymbolToValidIdentifier(jt(Te),vr,!1),nt=e.codefix.moduleSymbolToValidIdentifier(jt(Te),vr,!0);return Di===nt?Di:[Di,nt]}return Te.name}e.getNamesForExportedSymbol=Ni;function rt(Te,vr,Sr){return Tt(Te)?Dt(Te)||e.codefix.moduleSymbolToValidIdentifier(jt(Te),vr,!!Sr):Te.name}e.getNameForExportedSymbol=rt;function Tt(Te){return!(Te.flags&33554432)&&(Te.escapedName==="export="||Te.escapedName==="default")}function Dt(Te){return e.firstDefined(Te.declarations,function(vr){var Sr;return e.isExportAssignment(vr)?(Sr=e.tryCast(e.skipOuterExpressions(vr.expression),e.isIdentifier))===null||Sr===void 0?void 0:Sr.text:void 0})}function jt(Te){var vr;return e.Debug.checkDefined(Te.parent,"Symbol parent was undefined. Flags: ".concat(e.Debug.formatSymbolFlags(Te.flags),". ")+"Declarations: ".concat((vr=Te.declarations)===null||vr===void 0?void 0:vr.map(function(Sr){var Di=e.Debug.formatSyntaxKind(Sr.kind),nt=e.isInJSFile(Sr),_a=Sr.expression;return(nt?"[JS]":"")+Di+(_a?" (expression: ".concat(e.Debug.formatSyntaxKind(_a.kind),")"):"")}).join(", "),"."))}function na(Te,vr,Sr){var Di=vr.length;if(Di+Sr>Te.length)return!1;for(var nt=0;nt<Di;nt++)if(vr.charCodeAt(nt)!==Te.charCodeAt(nt+Sr))return!1;return!0}e.stringContainsAt=na;function Za(Te){return Te.charCodeAt(0)===95}e.startsWithUnderscore=Za;function ya(Te){return!ha(Te)}e.isGlobalDeclaration=ya;function ha(Te){var vr=Te.getSourceFile();return!vr.externalModuleIndicator&&!vr.commonJsModuleIndicator?!1:e.isInJSFile(Te)||!e.findAncestor(Te,e.isGlobalScopeAugmentation)}e.isNonGlobalDeclaration=ha;function Ja(Te){return!!(e.getCombinedNodeFlagsAlwaysIncludeJSDoc(Te)&8192)}e.isDeprecatedDeclaration=Ja;function Eo(Te,vr){var Sr=e.firstDefined(Te.imports,function(Di){if(e.JsTyping.nodeCoreModules.has(Di.text))return e.startsWith(Di.text,"node:")});return Sr!=null?Sr:vr.usesUriStyleNodeCoreModules}e.shouldUseUriStyleNodeCoreModules=Eo;function Hn(Te){return Te===`
`?1:0}e.getNewLineKind=Hn;function lo(Te){return e.isArray(Te)?e.formatStringFromArgs(e.getLocaleSpecificMessage(Te[0]),Te.slice(1)):e.getLocaleSpecificMessage(Te)}e.diagnosticToString=lo;function Kn(Te,vr){var Sr=Te.options,Di=!Sr.semicolons||Sr.semicolons===e.SemicolonPreference.Ignore,nt=Sr.semicolons===e.SemicolonPreference.Remove||Di&&!jr(vr);return Ve(Ve({},Sr),{semicolons:nt?e.SemicolonPreference.Remove:e.SemicolonPreference.Ignore})}e.getFormatCodeSettingsForWriting=Kn})(Pe||(Pe={}));var Pe;(function(e){var a;(function(C){C[C.Named=0]="Named",C[C.Default=1]="Default",C[C.Namespace=2]="Namespace",C[C.CommonJS=3]="CommonJS"})(a=e.ImportKind||(e.ImportKind={}));var O;(function(C){C[C.Named=0]="Named",C[C.Default=1]="Default",C[C.ExportEquals=2]="ExportEquals",C[C.UMD=3]="UMD"})(O=e.ExportKind||(e.ExportKind={}));function L(C){var G=1,E=e.createMultiMap(),ue=new e.Map,B=new e.Map,re,M={isUsableByFile:function(I){return I===re},isEmpty:function(){return!E.size},clear:function(){E.clear(),ue.clear(),re=void 0},add:function(I,ne,ee,A,f,P,D,l){I!==re&&(M.clear(),re=I);var _;if(f){var J=e.getNodeModulePathParts(f.fileName);if(J){var w=J.topLevelNodeModulesIndex,j=J.topLevelPackageNameIndex,U=J.packageRootIndex;if(_=e.unmangleScopedPackageName(e.getPackageNameFromTypesPackageName(f.fileName.substring(j+1,U))),e.startsWith(I,f.path.substring(0,w))){var z=B.get(_),y=f.fileName.substring(0,j);if(z){var oe=z.indexOf(e.nodeModulesPathPart);w>oe&&B.set(_,y)}else B.set(_,y)}}}var ve=P===1,ce=ve&&e.getLocalSymbolForExportDefault(ne)||ne,m=P===0||e.isExternalModuleSymbol(ce)?e.unescapeLeadingUnderscores(ee):e.getNamesForExportedSymbol(ce,void 0),de=typeof m=="string"?m:m[0],ae=typeof m=="string"?void 0:m[1],V=e.stripQuotes(A.name),le=G++,ke=e.skipAlias(ne,l),Ue=ne.flags&33554432?void 0:ne,He=A.flags&33554432?void 0:A;(!Ue||!He)&&ue.set(le,[ne,A]),E.add(ie(de,ne,e.isExternalModuleNameRelative(V)?void 0:V,l),{id:le,symbolTableKey:ee,symbolName:de,capitalizedSymbolName:ae,moduleName:V,moduleFile:f,moduleFileName:f==null?void 0:f.fileName,packageName:_,exportKind:P,targetFlags:ke.flags,isFromPackageJson:D,symbol:Ue,moduleSymbol:He})},get:function(I,ne){if(I===re){var ee=E.get(ne);return ee==null?void 0:ee.map(x)}},search:function(I,ne,ee,A){I===re&&E.forEach(function(f,P){var D=_e(P),l=D.symbolName,_=D.ambientModuleName,J=ne&&f[0].capitalizedSymbolName||l;if(ee(J,f[0].targetFlags)){var w=f.map(x),j=w.filter(function(U,z){return k(U,f[z].packageName)});j.length&&A(j,J,!!_,P)}})},releaseSymbols:function(){ue.clear()},onFileChanged:function(I,ne,ee){return Y(I)&&Y(ne)?!1:re&&re!==ne.path||ee&&e.consumesNodeCoreModules(I)!==e.consumesNodeCoreModules(ne)||!e.arrayIsEqualTo(I.moduleAugmentations,ne.moduleAugmentations)||!Z(I,ne)?(M.clear(),!0):(re=ne.path,!1)}};return e.Debug.isDebugging&&Object.defineProperty(M,"__cache",{get:function(){return E}}),M;function x(I){if(I.symbol&&I.moduleSymbol)return I;var ne=I.id,ee=I.exportKind,A=I.targetFlags,f=I.isFromPackageJson,P=I.moduleFileName,D=ue.get(ne)||e.emptyArray,l=D[0],_=D[1];if(l&&_)return{symbol:l,moduleSymbol:_,moduleFileName:P,exportKind:ee,targetFlags:A,isFromPackageJson:f};var J=(f?C.getPackageJsonAutoImportProvider():C.getCurrentProgram()).getTypeChecker(),w=I.moduleSymbol||_||e.Debug.checkDefined(I.moduleFile?J.getMergedSymbol(I.moduleFile.symbol):J.tryFindAmbientModule(I.moduleName)),j=I.symbol||l||e.Debug.checkDefined(ee===2?J.resolveExternalModuleSymbol(w):J.tryGetMemberInModuleExportsAndProperties(e.unescapeLeadingUnderscores(I.symbolTableKey),w),"Could not find symbol '".concat(I.symbolName,"' by key '").concat(I.symbolTableKey,"' in module ").concat(w.name));return ue.set(ne,[j,w]),{symbol:j,moduleSymbol:w,moduleFileName:P,exportKind:ee,targetFlags:A,isFromPackageJson:f}}function ie(I,ne,ee,A){var f=ee||"";return"".concat(I,"|").concat(e.getSymbolId(e.skipAlias(ne,A)),"|").concat(f)}function _e(I){var ne=I.substring(0,I.indexOf("|")),ee=I.substring(I.lastIndexOf("|")+1),A=ee===""?void 0:ee;return{symbolName:ne,ambientModuleName:A}}function Y(I){return!I.commonJsModuleIndicator&&!I.externalModuleIndicator&&!I.moduleAugmentations&&!I.ambientModuleNames}function Z(I,ne){if(!e.arrayIsEqualTo(I.ambientModuleNames,ne.ambientModuleNames))return!1;for(var ee=-1,A=-1,f=function(J){var w=function(j){return e.isNonGlobalAmbientModule(j)&&j.name.text===J};if(ee=e.findIndex(I.statements,w,ee+1),A=e.findIndex(ne.statements,w,A+1),I.statements[ee]!==ne.statements[A])return{value:!1}},P=0,D=ne.ambientModuleNames;P<D.length;P++){var l=D[P],_=f(l);if(typeof _=="object")return _.value}return!0}function k(I,ne){if(!ne||!I.moduleFileName)return!0;var ee=B.get(ne);return!ee||e.startsWith(I.moduleFileName,ee)}}e.createCacheableExportInfoMap=L;function W(C,G,E,ue,B,re,M){var x;if(G===E)return!1;var ie=M==null?void 0:M.get(G.path,E.path,ue);if((ie==null?void 0:ie.isAutoImportable)!==void 0)return ie.isAutoImportable;var _e=e.hostGetCanonicalFileName(re),Y=(x=re.getGlobalTypingsCacheLocation)===null||x===void 0?void 0:x.call(re),Z=!!e.moduleSpecifiers.forEachFileNameOfModule(G.fileName,E.fileName,re,!1,function(I){var ne=C.getSourceFile(I);return(ne===E||!ne)&&N(G.fileName,I,_e,Y)});if(B){var k=Z&&B.allowsImportingSourceFile(E,re);return M==null||M.setIsAutoImportable(G.path,E.path,ue,k),k}return Z}e.isImportableFile=W;function N(C,G,E,ue){var B=e.forEachAncestorDirectory(G,function(M){return e.getBaseFileName(M)==="node_modules"?M:void 0}),re=B&&e.getDirectoryPath(E(B));return re===void 0||e.startsWith(E(C),re)||!!ue&&e.startsWith(E(ue),re)}function Q(C,G,E,ue){var B,re;pe(C.getTypeChecker(),C.getSourceFiles(),function(ie,_e){return ue(ie,_e,C,!1)});var M=E&&((B=G.getPackageJsonAutoImportProvider)===null||B===void 0?void 0:B.call(G));if(M){var x=e.timestamp();pe(M.getTypeChecker(),M.getSourceFiles(),function(ie,_e){return ue(ie,_e,M,!0)}),(re=G.log)===null||re===void 0||re.call(G,"forEachExternalModuleToImportFrom autoImportProvider: ".concat(e.timestamp()-x))}}e.forEachExternalModuleToImportFrom=Q;function pe(C,G,E){for(var ue=0,B=C.getAmbientModules();ue<B.length;ue++){var re=B[ue];e.stringContains(re.name,"*")||E(re,void 0)}for(var M=0,x=G;M<x.length;M++){var ie=x[M];e.isExternalOrCommonJsModule(ie)&&E(C.getMergedSymbol(ie.symbol),ie)}}function F(C,G,E,ue){var B,re,M,x,ie,_e=e.timestamp();(B=G.getPackageJsonAutoImportProvider)===null||B===void 0||B.call(G);var Y=((re=G.getCachedExportInfoMap)===null||re===void 0?void 0:re.call(G))||L({getCurrentProgram:function(){return E},getPackageJsonAutoImportProvider:function(){var I;return(I=G.getPackageJsonAutoImportProvider)===null||I===void 0?void 0:I.call(G)}});if(Y.isUsableByFile(C.path))return(M=G.log)===null||M===void 0||M.call(G,"getExportInfoMap: cache hit"),Y;(x=G.log)===null||x===void 0||x.call(G,"getExportInfoMap: cache miss or empty; calculating new results");var Z=E.getCompilerOptions(),k=0;return Q(E,G,!0,function(I,ne,ee,A){++k%100===0&&(ue==null||ue.throwIfCancellationRequested());var f=new e.Map,P=ee.getTypeChecker(),D=g(I,P,Z);D&&S(D.symbol,P)&&Y.add(C.path,D.symbol,D.exportKind===1?"default":"export=",I,ne,D.exportKind,A,P),P.forEachExportAndPropertyOfModule(I,function(l,_){l!==(D==null?void 0:D.symbol)&&S(l,P)&&e.addToSeen(f,_)&&Y.add(C.path,l,_,I,ne,0,A,P)})}),(ie=G.log)===null||ie===void 0||ie.call(G,"getExportInfoMap: done in ".concat(e.timestamp()-_e," ms")),Y}e.getExportInfoMap=F;function g(C,G,E){var ue=H(C,G);if(!!ue){var B=ue.symbol,re=ue.exportKind,M=se(B,G,E);return M&&Ve({symbol:B,exportKind:re},M)}}e.getDefaultLikeExportInfo=g;function S(C,G){return!G.isUndefinedSymbol(C)&&!G.isUnknownSymbol(C)&&!e.isKnownSymbol(C)&&!e.isPrivateIdentifierSymbol(C)}function H(C,G){var E=G.resolveExternalModuleSymbol(C);if(E!==C)return{symbol:E,exportKind:2};var ue=G.tryGetMemberInModuleExports("default",C);if(ue)return{symbol:ue,exportKind:1}}function se(C,G,E){var ue=e.getLocalSymbolForExportDefault(C);if(ue)return{symbolForMeaning:ue,name:ue.name};var B=p(C);if(B!==void 0)return{symbolForMeaning:C,name:B};if(C.flags&2097152){var re=G.getImmediateAliasedSymbol(C);if(re&&re.parent)return se(re,G,E)}return C.escapedName!=="default"&&C.escapedName!=="export="?{symbolForMeaning:C,name:C.getName()}:{symbolForMeaning:C,name:e.getNameForExportedSymbol(C,E.target)}}function p(C){return C.declarations&&e.firstDefined(C.declarations,function(G){var E;if(e.isExportAssignment(G))return(E=e.tryCast(e.skipOuterExpressions(G.expression),e.isIdentifier))===null||E===void 0?void 0:E.text;if(e.isExportSpecifier(G))return e.Debug.assert(G.name.text==="default","Expected the specifier to be a default export"),G.propertyName&&G.propertyName.text})}})(Pe||(Pe={}));var Pe;(function(e){function a(){var x=e.createScanner(99,!1);function ie(Y,Z,k){return N(_e(Y,Z,k),Y)}function _e(Y,Z,k){var I=0,ne=0,ee=[],A=F(Z),f=A.prefix,P=A.pushTemplate;Y=f+Y;var D=f.length;P&&ee.push(15),x.setText(Y);var l=0,_=[],J=0;do{I=x.scan(),e.isTrivia(I)||(U(),ne=I);var w=x.getTextPos();if(W(x.getTokenPos(),w,D,H(I),_),w>=Y.length){var j=L(x,I,e.lastOrUndefined(ee));j!==void 0&&(l=j)}}while(I!==1);function U(){switch(I){case 43:case 68:!O[ne]&&x.reScanSlashToken()===13&&(I=13);break;case 29:ne===79&&J++;break;case 31:J>0&&J--;break;case 130:case 149:case 146:case 133:case 150:J>0&&!k&&(I=79);break;case 15:ee.push(I);break;case 18:ee.length>0&&ee.push(I);break;case 19:if(ee.length>0){var z=e.lastOrUndefined(ee);z===15?(I=x.reScanTemplateToken(!1),I===17?ee.pop():e.Debug.assertEqual(I,16,"Should have been a template middle.")):(e.Debug.assertEqual(z,18,"Should have been an open brace"),ee.pop())}break;default:if(!e.isKeyword(I))break;(ne===24||e.isKeyword(ne)&&e.isKeyword(I)&&!pe(ne,I))&&(I=79)}}return{endOfLineState:l,spans:_}}return{getClassificationsForLine:ie,getEncodedLexicalClassifications:_e}}e.createClassifier=a;var O=e.arrayToNumericMap([79,10,8,9,13,108,45,46,21,23,19,110,95],function(x){return x},function(){return!0});function L(x,ie,_e){switch(ie){case 10:{if(!x.isUnterminated())return;for(var Y=x.getTokenText(),Z=Y.length-1,k=0;Y.charCodeAt(Z-k)===92;)k++;return(k&1)===0?void 0:Y.charCodeAt(0)===34?3:2}case 3:return x.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(ie)){if(!x.isUnterminated())return;switch(ie){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+ie)}}return _e===15?6:void 0}}function W(x,ie,_e,Y,Z){if(Y!==8){x===0&&_e>0&&(x+=_e);var k=ie-x;k>0&&Z.push(x-_e,k,Y)}}function N(x,ie){for(var _e=[],Y=x.spans,Z=0,k=0;k<Y.length;k+=3){var I=Y[k],ne=Y[k+1],ee=Y[k+2];if(Z>=0){var A=I-Z;A>0&&_e.push({length:A,classification:e.TokenClass.Whitespace})}_e.push({length:ne,classification:Q(ee)}),Z=I+ne}var f=ie.length-Z;return f>0&&_e.push({length:f,classification:e.TokenClass.Whitespace}),{entries:_e,finalLexState:x.endOfLineState}}function Q(x){switch(x){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 pe(x,ie){if(!e.isAccessibilityModifier(x))return!0;switch(ie){case 136:case 148:case 134:case 124:return!0;default:return!1}}function F(x){switch(x){case 3:return{prefix:`"\\
`};case 2:return{prefix:`'\\
`};case 1:return{prefix:`/*
`};case 4:return{prefix:"`\n"};case 5:return{prefix:`}
`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return e.Debug.assertNever(x)}}function g(x){switch(x){case 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 102:case 101:case 127:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 74:case 73:case 78:case 70:case 71:case 72:case 64:case 65:case 66:case 68:case 69:case 63:case 27:case 60:case 75:case 76:case 77:return!0;default:return!1}}function S(x){switch(x){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}function H(x){if(e.isKeyword(x))return 3;if(g(x)||S(x))return 5;if(x>=18&&x<=78)return 10;switch(x){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 79:default:return e.isTemplateLiteralKind(x)?6:2}}function se(x,ie,_e,Y,Z){return B(C(x,ie,_e,Y,Z))}e.getSemanticClassifications=se;function p(x,ie){switch(ie){case 260:case 256:case 257:case 255:case 225:case 212:case 213:x.throwIfCancellationRequested()}}function C(x,ie,_e,Y,Z){var k=[];return _e.forEachChild(function ne(ee){if(!(!ee||!e.textSpanIntersectsWith(Z,ee.pos,ee.getFullWidth()))){if(p(ie,ee.kind),e.isIdentifier(ee)&&!e.nodeIsMissing(ee)&&Y.has(ee.escapedText)){var A=x.getSymbolAtLocation(ee),f=A&&G(A,e.getMeaningFromLocation(ee),x);f&&I(ee.getStart(_e),ee.getEnd(),f)}ee.forEachChild(ne)}}),{spans:k,endOfLineState:0};function I(ne,ee,A){var f=ee-ne;e.Debug.assert(f>0,"Classification had non-positive length of ".concat(f)),k.push(ne),k.push(f),k.push(A)}}e.getEncodedSemanticClassifications=C;function G(x,ie,_e){var Y=x.getFlags();if((Y&2885600)!==0)return Y&32?11:Y&384?12:Y&524288?16:Y&1536?ie&4||ie&1&&E(x)?14:void 0:Y&2097152?G(_e.getAliasedSymbol(x),ie,_e):ie&2?Y&64?13:Y&262144?15:void 0:void 0}function E(x){return e.some(x.declarations,function(ie){return e.isModuleDeclaration(ie)&&e.getModuleInstanceState(ie)===1})}function ue(x){switch(x){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 B(x){e.Debug.assert(x.spans.length%3===0);for(var ie=x.spans,_e=[],Y=0;Y<ie.length;Y+=3)_e.push({textSpan:e.createTextSpan(ie[Y],ie[Y+1]),classificationType:ue(ie[Y+2])});return _e}function re(x,ie,_e){return B(M(x,ie,_e))}e.getSyntacticClassifications=re;function M(x,ie,_e){var Y=_e.start,Z=_e.length,k=e.createScanner(99,!1,ie.languageVariant,ie.text),I=e.createScanner(99,!1,ie.languageVariant,ie.text),ne=[];return y(ie),{spans:ne,endOfLineState:0};function ee(oe,ve,ce){ne.push(oe),ne.push(ve),ne.push(ce)}function A(oe){for(k.setTextPos(oe.pos);;){var ve=k.getTextPos();if(!e.couldStartTrivia(ie.text,ve))return ve;var ce=k.scan(),m=k.getTextPos(),de=m-ve;if(!e.isTrivia(ce))return ve;switch(ce){case 4:case 5:continue;case 2:case 3:f(oe,ce,ve,de),k.setTextPos(m);continue;case 7:var ae=ie.text,V=ae.charCodeAt(ve);if(V===60||V===62){ee(ve,de,1);continue}e.Debug.assert(V===124||V===61),J(ae,ve,m);break;case 6:break;default:e.Debug.assertNever(ce)}}}function f(oe,ve,ce,m){if(ve===3){var de=e.parseIsolatedJSDocComment(ie.text,ce,m);if(de&&de.jsDoc){e.setParent(de.jsDoc,oe),D(de.jsDoc);return}}else if(ve===2&&l(ce,m))return;P(ce,m)}function P(oe,ve){ee(oe,ve,1)}function D(oe){var ve,ce,m,de,ae,V,le,ke=oe.pos;if(oe.tags)for(var Ue=0,He=oe.tags;Ue<He.length;Ue++){var ar=He[Ue];ar.pos!==ke&&P(ke,ar.pos-ke),ee(ar.pos,1,10),ee(ar.tagName.pos,ar.tagName.end-ar.tagName.pos,18),ke=ar.tagName.end;var gr=ar.tagName.end;switch(ar.kind){case 338:var me=ar;he(me),gr=me.isNameFirst&&((ve=me.typeExpression)===null||ve===void 0?void 0:ve.end)||me.name.end;break;case 345:var Ge=ar;gr=Ge.isNameFirst&&((ce=Ge.typeExpression)===null||ce===void 0?void 0:ce.end)||Ge.name.end;break;case 342:_(ar),ke=ar.end,gr=ar.typeParameters.end;break;case 343:var er=ar;gr=((m=er.typeExpression)===null||m===void 0?void 0:m.kind)===307&&((de=er.fullName)===null||de===void 0?void 0:de.end)||((ae=er.typeExpression)===null||ae===void 0?void 0:ae.end)||gr;break;case 336:gr=ar.typeExpression.end;break;case 341:y(ar.typeExpression),ke=ar.end,gr=ar.typeExpression.end;break;case 340:case 337:gr=ar.typeExpression.end;break;case 339:y(ar.typeExpression),ke=ar.end,gr=((V=ar.typeExpression)===null||V===void 0?void 0:V.end)||gr;break;case 344:gr=((le=ar.name)===null||le===void 0?void 0:le.end)||gr;break;case 326:case 327:gr=ar.class.end;break}typeof ar.comment=="object"?P(ar.comment.pos,ar.comment.end-ar.comment.pos):typeof ar.comment=="string"&&P(gr,ar.end-gr)}ke!==oe.end&&P(ke,oe.end-ke);return;function he(we){we.isNameFirst&&(P(ke,we.name.pos-ke),ee(we.name.pos,we.name.end-we.name.pos,17),ke=we.name.end),we.typeExpression&&(P(ke,we.typeExpression.pos-ke),y(we.typeExpression),ke=we.typeExpression.end),we.isNameFirst||(P(ke,we.name.pos-ke),ee(we.name.pos,we.name.end-we.name.pos,17),ke=we.name.end)}}function l(oe,ve){var ce=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im,m=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,de=ie.text.substr(oe,ve),ae=ce.exec(de);if(!ae||!ae[3]||!(ae[3]in e.commentPragmas))return!1;var V=oe;P(V,ae[1].length),V+=ae[1].length,ee(V,ae[2].length,10),V+=ae[2].length,ee(V,ae[3].length,21),V+=ae[3].length;for(var le=ae[4],ke=V;;){var Ue=m.exec(le);if(!Ue)break;var He=V+Ue.index+Ue[1].length;He>ke&&(P(ke,He-ke),ke=He),ee(ke,Ue[2].length,22),ke+=Ue[2].length,Ue[3].length&&(P(ke,Ue[3].length),ke+=Ue[3].length),ee(ke,Ue[4].length,5),ke+=Ue[4].length,Ue[5].length&&(P(ke,Ue[5].length),ke+=Ue[5].length),ee(ke,Ue[6].length,24),ke+=Ue[6].length}V+=ae[4].length,V>ke&&P(ke,V-ke),ae[5]&&(ee(V,ae[5].length,10),V+=ae[5].length);var ar=oe+ve;return V<ar&&P(V,ar-V),!0}function _(oe){for(var ve=0,ce=oe.getChildren();ve<ce.length;ve++){var m=ce[ve];y(m)}}function J(oe,ve,ce){var m;for(m=ve;m<ce&&!e.isLineBreak(oe.charCodeAt(m));m++);for(ee(ve,m-ve,1),I.setTextPos(m);I.getTextPos()<ce;)w()}function w(){var oe=I.getTextPos(),ve=I.scan(),ce=I.getTextPos(),m=z(ve);m&&ee(oe,ce-oe,m)}function j(oe){if(e.isJSDoc(oe)||e.nodeIsMissing(oe))return!0;var ve=U(oe);if(!e.isToken(oe)&&oe.kind!==11&&ve===void 0)return!1;var ce=oe.kind===11?oe.pos:A(oe),m=oe.end-ce;if(e.Debug.assert(m>=0),m>0){var de=ve||z(oe.kind,oe);de&&ee(ce,m,de)}return!0}function U(oe){switch(oe.parent&&oe.parent.kind){case 279:if(oe.parent.tagName===oe)return 19;break;case 280:if(oe.parent.tagName===oe)return 20;break;case 278:if(oe.parent.tagName===oe)return 21;break;case 284:if(oe.parent.name===oe)return 22;break}}function z(oe,ve){if(e.isKeyword(oe))return 3;if((oe===29||oe===31)&&ve&&e.getTypeArgumentOrTypeParameterList(ve.parent))return 10;if(e.isPunctuation(oe)){if(ve){var ce=ve.parent;if(oe===63&&(ce.kind===253||ce.kind===166||ce.kind===163||ce.kind===284)||ce.kind===220||ce.kind===218||ce.kind===219||ce.kind===221)return 5}return 10}else{if(oe===8)return 4;if(oe===9)return 25;if(oe===10)return ve&&ve.parent.kind===284?24:6;if(oe===13)return 6;if(e.isTemplateLiteralKind(oe))return 6;if(oe===11)return 23;if(oe===79){if(ve){switch(ve.parent.kind){case 256:return ve.parent.name===ve?11:void 0;case 162:return ve.parent.name===ve?15:void 0;case 257:return ve.parent.name===ve?13:void 0;case 259:return ve.parent.name===ve?12:void 0;case 260:return ve.parent.name===ve?14:void 0;case 163:return ve.parent.name===ve?e.isThisIdentifier(ve)?3:17:void 0}if(e.isConstTypeReference(ve.parent))return 3}return 2}}}function y(oe){if(!!oe&&e.decodedTextSpanIntersectsWith(Y,Z,oe.pos,oe.getFullWidth())){p(x,oe.kind);for(var ve=0,ce=oe.getChildren(ie);ve<ce.length;ve++){var m=ce[ve];j(m)||y(m)}}}}e.getEncodedSyntacticClassifications=M})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(W){var N;(function(M){M[M.typeOffset=8]="typeOffset",M[M.modifierMask=255]="modifierMask"})(N=W.TokenEncodingConsts||(W.TokenEncodingConsts={}));var Q;(function(M){M[M.class=0]="class",M[M.enum=1]="enum",M[M.interface=2]="interface",M[M.namespace=3]="namespace",M[M.typeParameter=4]="typeParameter",M[M.type=5]="type",M[M.parameter=6]="parameter",M[M.variable=7]="variable",M[M.enumMember=8]="enumMember",M[M.property=9]="property",M[M.function=10]="function",M[M.member=11]="member"})(Q=W.TokenType||(W.TokenType={}));var pe;(function(M){M[M.declaration=0]="declaration",M[M.static=1]="static",M[M.async=2]="async",M[M.readonly=3]="readonly",M[M.defaultLibrary=4]="defaultLibrary",M[M.local=5]="local"})(pe=W.TokenModifier||(W.TokenModifier={}));function F(M,x,ie,_e){var Y=g(M,x,ie,_e);e.Debug.assert(Y.spans.length%3===0);for(var Z=Y.spans,k=[],I=0;I<Z.length;I+=3)k.push({textSpan:e.createTextSpan(Z[I],Z[I+1]),classificationType:Z[I+2]});return k}W.getSemanticClassifications=F;function g(M,x,ie,_e){return{spans:S(M,ie,_e,x),endOfLineState:0}}W.getEncodedSemanticClassifications=g;function S(M,x,ie,_e){var Y=[],Z=function(k,I,ne){Y.push(k.getStart(x),k.getWidth(x),(I+1<<8)+ne)};return M&&x&&H(M,x,ie,Z,_e),Y}function H(M,x,ie,_e,Y){var Z=M.getTypeChecker(),k=!1;function I(ne){switch(ne.kind){case 260:case 256:case 257:case 255:case 225:case 212:case 213:Y.throwIfCancellationRequested()}if(!(!ne||!e.textSpanIntersectsWith(ie,ne.pos,ne.getFullWidth())||ne.getFullWidth()===0)){var ee=k;if((e.isJsxElement(ne)||e.isJsxSelfClosingElement(ne))&&(k=!0),e.isJsxExpression(ne)&&(k=!1),e.isIdentifier(ne)&&!k&&!E(ne)&&!e.isInfinityOrNaNString(ne.escapedText)){var A=Z.getSymbolAtLocation(ne);if(A){A.flags&2097152&&(A=Z.getAliasedSymbol(A));var f=se(A,e.getMeaningFromLocation(ne));if(f!==void 0){var P=0;if(ne.parent){var D=e.isBindingElement(ne.parent)||re.get(ne.parent.kind)===f;D&&ne.parent.name===ne&&(P=1<<0)}f===6&&B(ne)&&(f=9),f=p(Z,ne,f);var l=A.valueDeclaration;if(l){var _=e.getCombinedModifierFlags(l),J=e.getCombinedNodeFlags(l);_&32&&(P|=1<<1),_&256&&(P|=1<<2),f!==0&&f!==2&&(_&64||J&2||A.getFlags()&8)&&(P|=1<<3),(f===7||f===10)&&C(l,x)&&(P|=1<<5),M.isSourceFileDefaultLibrary(l.getSourceFile())&&(P|=1<<4)}else A.declarations&&A.declarations.some(function(w){return M.isSourceFileDefaultLibrary(w.getSourceFile())})&&(P|=1<<4);_e(ne,f,P)}}}e.forEachChild(ne,I),k=ee}}I(x)}function se(M,x){var ie=M.getFlags();if(ie&32)return 0;if(ie&384)return 1;if(ie&524288)return 5;if(ie&64){if(x&2)return 2}else if(ie&262144)return 4;var _e=M.valueDeclaration||M.declarations&&M.declarations[0];return _e&&e.isBindingElement(_e)&&(_e=G(_e)),_e&&re.get(_e.kind)}function p(M,x,ie){if(ie===7||ie===9||ie===6){var _e=M.getTypeAtLocation(x);if(_e){var Y=function(Z){return Z(_e)||_e.isUnion()&&_e.types.some(Z)};if(ie!==6&&Y(function(Z){return Z.getConstructSignatures().length>0}))return 0;if(Y(function(Z){return Z.getCallSignatures().length>0})&&!Y(function(Z){return Z.getProperties().length>0})||ue(x))return ie===9?11:10}}return ie}function C(M,x){return e.isBindingElement(M)&&(M=G(M)),e.isVariableDeclaration(M)?(!e.isSourceFile(M.parent.parent.parent)||e.isCatchClause(M.parent))&&M.getSourceFile()===x:e.isFunctionDeclaration(M)?!e.isSourceFile(M.parent)&&M.getSourceFile()===x:!1}function G(M){for(;;)if(e.isBindingElement(M.parent.parent))M=M.parent.parent;else return M.parent.parent}function E(M){var x=M.parent;return x&&(e.isImportClause(x)||e.isImportSpecifier(x)||e.isNamespaceImport(x))}function ue(M){for(;B(M);)M=M.parent;return e.isCallExpression(M.parent)&&M.parent.expression===M}function B(M){return e.isQualifiedName(M.parent)&&M.parent.right===M||e.isPropertyAccessExpression(M.parent)&&M.parent.name===M}var re=new e.Map([[253,7],[163,6],[166,9],[260,3],[259,1],[297,8],[256,0],[168,11],[255,10],[212,10],[167,11],[171,9],[172,9],[165,9],[257,2],[258,5],[162,4],[294,9],[295,9]])})(L=O.v2020||(O.v2020={}))})(a=e.classifier||(e.classifier={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(W){function N(V,le,ke,Ue,He,ar,gr,me){if(e.isInReferenceComment(V,le)){var Ge=U(V,le,Ue,He);return Ge&&g(Ge)}if(e.isInString(V,le,ke)){if(!ke||!e.isStringLiteralLike(ke))return;var Ge=se(V,ke,le,ar.getTypeChecker(),Ue,He,me);return Q(Ge,ke,V,He,ar,gr,Ue,me)}}W.getStringLiteralCompletions=N;function Q(V,le,ke,Ue,He,ar,gr,me){if(V!==void 0){var Ge=e.createTextSpanFromStringLiteralLikeContent(le);switch(V.kind){case 0:return g(V.paths);case 1:{var er=e.createSortedArray();return O.getCompletionEntriesFromSymbols(V.symbols,er,le,le,ke,ke,Ue,He,99,ar,4,me,gr,void 0),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:V.hasIndexSignature,optionalReplacementSpan:Ge,entries:er}}case 2:{var er=V.types.map(function(we){return{name:we.value,kindModifiers:"",kind:"string",sortText:O.SortText.LocationPriority,replacementSpan:e.getReplacementSpanForContextToken(le)}});return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:V.isNewIdentifier,optionalReplacementSpan:Ge,entries:er}}default:return e.Debug.assertNever(V)}}}function pe(V,le,ke,Ue,He,ar,gr,me,Ge){if(!(!Ue||!e.isStringLiteralLike(Ue))){var er=se(le,Ue,ke,He,ar,gr,Ge);return er&&F(V,Ue,er,le,He,me)}}W.getStringLiteralCompletionDetails=pe;function F(V,le,ke,Ue,He,ar){switch(ke.kind){case 0:{var gr=e.find(ke.paths,function(me){return me.name===V});return gr&&O.createCompletionDetails(V,S(gr.extension),gr.kind,[e.textPart(V)])}case 1:{var gr=e.find(ke.symbols,function(Ge){return Ge.name===V});return gr&&O.createCompletionDetailsForSymbol(gr,He,Ue,le,ar)}case 2:return e.find(ke.types,function(me){return me.value===V})?O.createCompletionDetails(V,"","type",[e.textPart(V)]):void 0;default:return e.Debug.assertNever(ke)}}function g(V){var le=!1,ke=!0,Ue=V.map(function(He){var ar=He.name,gr=He.kind,me=He.span,Ge=He.extension;return{name:ar,kind:gr,kindModifiers:S(Ge),sortText:O.SortText.LocationPriority,replacementSpan:me}});return{isGlobalCompletion:le,isMemberCompletion:!1,isNewIdentifierLocation:ke,entries:Ue}}function S(V){switch(V){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return e.Debug.fail("Extension ".concat(".tsbuildinfo"," is unsupported."));case void 0:return"";default:return e.Debug.assertNever(V)}}var H;(function(V){V[V.Paths=0]="Paths",V[V.Properties=1]="Properties",V[V.Types=2]="Types"})(H||(H={}));function se(V,le,ke,Ue,He,ar,gr){var me=p(le.parent);switch(me.kind){case 195:{var Ge=p(me.parent);switch(Ge.kind){case 177:{var er=Ge,he=e.findAncestor(me,function(Tr){return Tr.parent===er});return he?{kind:2,types:B(Ue.getTypeArgumentConstraint(he)),isNewIdentifier:!1}:void 0}case 193:var we=Ge,ye=we.indexType,Se=we.objectType;return e.rangeContainsPosition(ye,ke)?E(Ue.getTypeFromTypeNode(Se)):void 0;case 199:return{kind:0,paths:ie(V,le,He,ar,Ue,gr)};case 186:{if(!e.isTypeReferenceNode(Ge.parent))return;var ge=C(Ge,me),Fe=B(Ue.getTypeArgumentConstraint(Ge)).filter(function(Tr){return!e.contains(ge,Tr.value)});return{kind:2,types:Fe,isNewIdentifier:!1}}default:return}}case 294:return e.isObjectLiteralExpression(me.parent)&&me.name===le?ue(Ue,me.parent):Br();case 206:{var cr=me,ur=cr.expression,Ir=cr.argumentExpression;return le===e.skipParentheses(Ir)?E(Ue.getTypeAtLocation(ur)):void 0}case 207:case 208:if(!ae(le)&&!e.isImportCall(me)){var dr=e.SignatureHelp.getArgumentInfoForCompletions(le,ke,V);return dr?G(dr,Ue):Br()}case 265:case 271:case 276:return{kind:0,paths:ie(V,le,He,ar,Ue,gr)};default:return Br()}function Br(){return{kind:2,types:B(e.getContextualTypeFromParent(le,Ue)),isNewIdentifier:!1}}}function p(V){switch(V.kind){case 190:return e.walkUpParenthesizedTypes(V);case 211:return e.walkUpParenthesizedExpressions(V);default:return V}}function C(V,le){return e.mapDefined(V.types,function(ke){return ke!==le&&e.isLiteralTypeNode(ke)&&e.isStringLiteral(ke.literal)?ke.literal.text:void 0})}function G(V,le){var ke=!1,Ue=new e.Map,He=[];le.getResolvedSignature(V.invocation,He,V.argumentCount);var ar=e.flatMap(He,function(gr){if(!(!e.signatureHasRestParameter(gr)&&V.argumentCount>gr.parameters.length)){var me=gr.getTypeParameterAtPosition(V.argumentIndex);return ke=ke||!!(me.flags&4),B(me,Ue)}});return{kind:2,types:ar,isNewIdentifier:ke}}function E(V){return V&&{kind:1,symbols:e.filter(V.getApparentProperties(),function(le){return!(le.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(le.valueDeclaration))}),hasIndexSignature:e.hasIndexSignature(V)}}function ue(V,le){var ke=V.getContextualType(le);if(!!ke){var Ue=V.getContextualType(le,4),He=O.getPropertiesForObjectExpression(ke,Ue,le,V);return{kind:1,symbols:He,hasIndexSignature:e.hasIndexSignature(ke)}}}function B(V,le){return le===void 0&&(le=new e.Map),V?(V=e.skipConstraint(V),V.isUnion()?e.flatMap(V.types,function(ke){return B(ke,le)}):V.isStringLiteral()&&!(V.flags&1024)&&e.addToSeen(le,V.value)?[V]:e.emptyArray):e.emptyArray}function re(V,le,ke){return{name:V,kind:le,extension:ke}}function M(V){return re(V,"directory",void 0)}function x(V,le,ke){var Ue=oe(V,le),He=V.length===0?void 0:e.createTextSpan(le,V.length);return ke.map(function(ar){var gr=ar.name,me=ar.kind,Ge=ar.extension;return Math.max(gr.indexOf(e.directorySeparator),gr.indexOf(e.altDirectorySeparator))!==-1?{name:gr,kind:me,extension:Ge,span:He}:{name:gr,kind:me,extension:Ge,span:Ue}})}function ie(V,le,ke,Ue,He,ar){return x(le.text,le.getStart(V)+1,_e(V,le,ke,Ue,He,ar))}function _e(V,le,ke,Ue,He,ar){var gr=e.normalizeSlashes(le.text),me=V.path,Ge=e.getDirectoryPath(me);return ve(gr)||!ke.baseUrl&&(e.isRootedDiskPath(gr)||e.isUrl(gr))?Z(gr,Ge,ke,Ue,me,er()):P(gr,Ge,ke,Ue,He);function er(){var he=e.isStringLiteralLike(le)?e.getModeForUsageLocation(V,le):void 0;return ar.importModuleSpecifierEnding==="js"||he===e.ModuleKind.ESNext?2:0}}function Y(V,le){return le===void 0&&(le=0),{extensions:e.flatten(k(V)),includeExtensionsOption:le}}function Z(V,le,ke,Ue,He,ar){var gr=Y(ke,ar);return ke.rootDirs?ne(ke.rootDirs,V,le,gr,ke,Ue,He):A(V,le,gr,Ue,He)}function k(V){var le=e.getSupportedExtensions(V);return e.getEmitModuleResolutionKind(V)===e.ModuleResolutionKind.NodeJs?e.getSupportedExtensionsWithJsonIfResolveJsonModule(V,le):le}function I(V,le,ke,Ue){V=V.map(function(ar){return e.normalizePath(e.isRootedDiskPath(ar)?ar:e.combinePaths(le,ar))});var He=e.firstDefined(V,function(ar){return e.containsPath(ar,ke,le,Ue)?ke.substr(ar.length):void 0});return e.deduplicate(qe(qe([],V.map(function(ar){return e.combinePaths(ar,He)}),!0),[ke],!1),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}function ne(V,le,ke,Ue,He,ar,gr){var me=He.project||ar.getCurrentDirectory(),Ge=!(ar.useCaseSensitiveFileNames&&ar.useCaseSensitiveFileNames()),er=I(V,me,ke,Ge);return e.flatMap(er,function(he){return A(le,he,Ue,ar,gr)})}var ee;(function(V){V[V.Exclude=0]="Exclude",V[V.Include=1]="Include",V[V.ModuleSpecifierCompletion=2]="ModuleSpecifierCompletion"})(ee||(ee={}));function A(V,le,ke,Ue,He,ar){var gr=ke.extensions,me=ke.includeExtensionsOption;ar===void 0&&(ar=[]),V===void 0&&(V=""),V=e.normalizeSlashes(V),e.hasTrailingDirectorySeparator(V)||(V=e.getDirectoryPath(V)),V===""&&(V="."+e.directorySeparator),V=e.ensureTrailingDirectorySeparator(V);var Ge=e.resolvePath(le,V),er=e.hasTrailingDirectorySeparator(Ge)?Ge:e.getDirectoryPath(Ge),he=!(Ue.useCaseSensitiveFileNames&&Ue.useCaseSensitiveFileNames());if(!e.tryDirectoryExists(Ue,er))return ar;var we=e.tryReadDirectory(Ue,er,gr,void 0,["./*"]);if(we){for(var ye=new e.Map,Se=0,ge=we;Se<ge.length;Se++){var Fe=ge[Se];if(Fe=e.normalizePath(Fe),!(He&&e.comparePaths(Fe,He,le,he)===0)){var cr=void 0,ur=e.moduleSpecifiers.tryGetJSExtensionForFile(Fe,Ue.getCompilationSettings());me===0&&!e.fileExtensionIsOneOf(Fe,[".json",".mts",".cts",".d.mts",".d.cts",".mjs",".cjs"])?(cr=e.removeFileExtension(e.getBaseFileName(Fe)),ye.set(cr,e.tryGetExtensionFromPath(Fe))):(e.fileExtensionIsOneOf(Fe,[".mts",".cts",".d.mts",".d.cts",".mjs",".cjs"])||me===2)&&ur?(cr=e.changeExtension(e.getBaseFileName(Fe),ur),ye.set(cr,ur)):(cr=e.getBaseFileName(Fe),ye.set(cr,e.tryGetExtensionFromPath(Fe)))}}ye.forEach(function(Cr,Lr){ar.push(re(Lr,"script",Cr))})}var Ir=e.tryGetDirectories(Ue,er);if(Ir)for(var dr=0,Br=Ir;dr<Br.length;dr++){var Tr=Br[dr],n=e.getBaseFileName(e.normalizePath(Tr));n!=="@types"&&ar.push(M(n))}var Er=e.findPackageJson(er,Ue);if(Er){var br=e.readJson(Er,Ue),Pr=br.typesVersions;if(typeof Pr=="object"){var Ce=e.getPackageJsonTypesVersionsPaths(Pr),Le=Ce&&Ce.paths,Xe=Ge.slice(e.ensureTrailingDirectorySeparator(er).length);Le&&f(ar,Xe,er,gr,Le,Ue)}}return ar}function f(V,le,ke,Ue,He,ar){for(var gr in He)if(!!e.hasProperty(He,gr)){var me=He[gr];if(me)for(var Ge=function(Fe,cr,ur){V.some(function(Ir){return Ir.name===Fe})||V.push(re(Fe,cr,ur))},er=0,he=l(gr,me,le,ke,Ue,ar);er<he.length;er++){var we=he[er],ye=we.name,Se=we.kind,ge=we.extension;Ge(ye,Se,ge)}}}function P(V,le,ke,Ue,He){var ar=ke.baseUrl,gr=ke.paths,me=[],Ge=Y(ke);if(ar){var er=ke.project||Ue.getCurrentDirectory(),he=e.normalizePath(e.combinePaths(er,ar));A(V,he,Ge,Ue,void 0,me),gr&&f(me,V,he,Ge.extensions,gr,Ue)}for(var we=D(V),ye=0,Se=j(V,we,He);ye<Se.length;ye++){var ge=Se[ye];me.push(re(ge,"external module name",void 0))}if(z(Ue,ke,le,we,Ge,me),e.getEmitModuleResolutionKind(ke)===e.ModuleResolutionKind.NodeJs){var Fe=!1;if(we===void 0)for(var cr=function(Br){me.some(function(Tr){return Tr.name===Br})||(Fe=!0,me.push(re(Br,"external module name",void 0)))},ur=0,Ir=y(Ue,le);ur<Ir.length;ur++){var dr=Ir[ur];cr(dr)}Fe||e.forEachAncestorDirectory(le,function(Br){var Tr=e.combinePaths(Br,"node_modules");e.tryDirectoryExists(Ue,Tr)&&A(V,Tr,Ge,Ue,void 0,me)})}return me}function D(V){return de(V)?e.hasTrailingDirectorySeparator(V)?V:e.getDirectoryPath(V):void 0}function l(V,le,ke,Ue,He,ar){if(!e.endsWith(V,"*"))return e.stringContains(V,"*")?e.emptyArray:Ge(V);var gr=V.slice(0,V.length-1),me=e.tryRemovePrefix(ke,gr);return me===void 0?Ge(gr):e.flatMap(le,function(er){return _(me,Ue,er,He,ar)});function Ge(er){return e.startsWith(er,ke)?[M(er)]:e.emptyArray}}function _(V,le,ke,Ue,He){if(!He.readDirectory)return;var ar=e.tryParsePattern(ke);if(ar===void 0||e.isString(ar))return;var gr=e.resolvePath(ar.prefix),me=e.hasTrailingDirectorySeparator(ar.prefix)?gr:e.getDirectoryPath(gr),Ge=e.hasTrailingDirectorySeparator(ar.prefix)?"":e.getBaseFileName(gr),er=de(V),he=er?e.hasTrailingDirectorySeparator(V)?V:e.getDirectoryPath(V):void 0,we=er?e.combinePaths(me,Ge+he):me,ye=e.normalizePath(ar.suffix),Se=e.normalizePath(e.combinePaths(le,we)),ge=er?Se:e.ensureTrailingDirectorySeparator(Se)+Ge,Fe=ye?"**/*":"./*",cr=e.mapDefined(e.tryReadDirectory(He,Se,Ue,void 0,[Fe]),function(dr){var Br=e.tryGetExtensionFromPath(dr),Tr=Ir(dr);return Tr===void 0?void 0:re(e.removeFileExtension(Tr),"script",Br)}),ur=e.mapDefined(e.tryGetDirectories(He,Se).map(function(dr){return e.combinePaths(Se,dr)}),function(dr){var Br=Ir(dr);return Br===void 0?void 0:M(Br)});return qe(qe([],cr,!0),ur,!0);function Ir(dr){var Br=J(e.normalizePath(dr),ge,ye);return Br===void 0?void 0:w(Br)}}function J(V,le,ke){return e.startsWith(V,le)&&e.endsWith(V,ke)?V.slice(le.length,V.length-ke.length):void 0}function w(V){return V[0]===e.directorySeparator?V.slice(1):V}function j(V,le,ke){var Ue=ke.getAmbientModules().map(function(gr){return e.stripQuotes(gr.name)}),He=Ue.filter(function(gr){return e.startsWith(gr,V)});if(le!==void 0){var ar=e.ensureTrailingDirectorySeparator(le);return He.map(function(gr){return e.removePrefix(gr,ar)})}return He}function U(V,le,ke,Ue){var He=e.getTokenAtPosition(V,le),ar=e.getLeadingCommentRanges(V.text,He.pos),gr=ar&&e.find(ar,function(ge){return le>=ge.pos&&le<=ge.end});if(!!gr){var me=V.text.slice(gr.pos,le),Ge=ce.exec(me);if(!!Ge){var er=Ge[1],he=Ge[2],we=Ge[3],ye=e.getDirectoryPath(V.path),Se=he==="path"?A(we,ye,Y(ke,1),Ue,V.path):he==="types"?z(Ue,ke,ye,D(we),Y(ke)):e.Debug.fail();return x(we,gr.pos+er.length,Se)}}}function z(V,le,ke,Ue,He,ar){ar===void 0&&(ar=[]);for(var gr=new e.Map,me=e.tryAndIgnoreErrors(function(){return e.getEffectiveTypeRoots(le,V)})||e.emptyArray,Ge=0,er=me;Ge<er.length;Ge++){var he=er[Ge];Fe(he)}for(var we=0,ye=e.findPackageJsons(ke,V);we<ye.length;we++){var Se=ye[we],ge=e.combinePaths(e.getDirectoryPath(Se),"node_modules/@types");Fe(ge)}return ar;function Fe(cr){if(!!e.tryDirectoryExists(V,cr))for(var ur=0,Ir=e.tryGetDirectories(V,cr);ur<Ir.length;ur++){var dr=Ir[ur],Br=e.unmangleScopedPackageName(dr);if(!(le.types&&!e.contains(le.types,Br)))if(Ue===void 0)gr.has(Br)||(ar.push(re(Br,"external module name",void 0)),gr.set(Br,!0));else{var Tr=e.combinePaths(cr,dr),n=e.tryRemoveDirectoryPrefix(Ue,Br,e.hostGetCanonicalFileName(V));n!==void 0&&A(n,Tr,He,V,void 0,ar)}}}}function y(V,le){if(!V.readFile||!V.fileExists)return e.emptyArray;for(var ke=[],Ue=0,He=e.findPackageJsons(le,V);Ue<He.length;Ue++)for(var ar=He[Ue],gr=e.readJson(ar,V),me=0,Ge=m;me<Ge.length;me++){var er=Ge[me],he=gr[er];if(!!he)for(var we in he)he.hasOwnProperty(we)&&!e.startsWith(we,"@types/")&&ke.push(we)}return ke}function oe(V,le){var ke=Math.max(V.lastIndexOf(e.directorySeparator),V.lastIndexOf(e.altDirectorySeparator)),Ue=ke!==-1?ke+1:0,He=V.length-Ue;return He===0||e.isIdentifierText(V.substr(Ue,He),99)?void 0:e.createTextSpan(le+Ue,He)}function ve(V){if(V&&V.length>=2&&V.charCodeAt(0)===46){var le=V.length>=3&&V.charCodeAt(1)===46?2:1,ke=V.charCodeAt(le);return ke===47||ke===92}return!1}var ce=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,m=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function de(V){return e.stringContains(V,e.directorySeparator)}function ae(V){return e.isCallExpression(V.parent)&&e.firstOrUndefined(V.parent.arguments)===V&&e.isIdentifier(V.parent.expression)&&V.parent.expression.escapedText==="require"}})(L=O.StringCompletions||(O.StringCompletions={}))})(a=e.Completions||(e.Completions={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){O.moduleSpecifierResolutionLimit=100,O.moduleSpecifierResolutionCacheAttemptLimit=1e3;var L;(function(Me){Me.LocalDeclarationPriority="10",Me.LocationPriority="11",Me.OptionalMember="12",Me.MemberDeclaredBySpreadAssignment="13",Me.SuggestedClassMembers="14",Me.GlobalsOrKeywords="15",Me.AutoImportSuggestions="16",Me.JavascriptIdentifiers="17",Me.DeprecatedLocalDeclarationPriority="18",Me.DeprecatedLocationPriority="19",Me.DeprecatedOptionalMember="20",Me.DeprecatedMemberDeclaredBySpreadAssignment="21",Me.DeprecatedSuggestedClassMembers="22",Me.DeprecatedGlobalsOrKeywords="23",Me.DeprecatedAutoImportSuggestions="24"})(L=O.SortText||(O.SortText={}));var W;(function(Me){Me[Me.LocalDeclarationPriority=10]="LocalDeclarationPriority",Me[Me.LocationPriority=11]="LocationPriority",Me[Me.OptionalMember=12]="OptionalMember",Me[Me.MemberDeclaredBySpreadAssignment=13]="MemberDeclaredBySpreadAssignment",Me[Me.SuggestedClassMembers=14]="SuggestedClassMembers",Me[Me.GlobalsOrKeywords=15]="GlobalsOrKeywords",Me[Me.AutoImportSuggestions=16]="AutoImportSuggestions",Me[Me._JavaScriptIdentifiers=17]="_JavaScriptIdentifiers",Me[Me._DeprecatedStart=18]="_DeprecatedStart",Me[Me._First=10]="_First",Me[Me.DeprecatedOffset=8]="DeprecatedOffset"})(W||(W={}));var N;(function(Me){Me.ThisProperty="ThisProperty/",Me.ClassMemberSnippet="ClassMemberSnippet/",Me.TypeOnlyAlias="TypeOnlyAlias/"})(N=O.CompletionSource||(O.CompletionSource={}));var Q;(function(Me){Me[Me.ThisType=1]="ThisType",Me[Me.SymbolMember=2]="SymbolMember",Me[Me.Export=4]="Export",Me[Me.Promise=8]="Promise",Me[Me.Nullable=16]="Nullable",Me[Me.ResolvedExport=32]="ResolvedExport",Me[Me.TypeOnlyAlias=64]="TypeOnlyAlias",Me[Me.SymbolMemberNoExport=2]="SymbolMemberNoExport",Me[Me.SymbolMemberExport=6]="SymbolMemberExport"})(Q||(Q={}));function pe(Me){return!!(Me.kind&1)}function F(Me){return!!(Me.kind&2)}function g(Me){return!!(Me&&Me.kind&4)}function S(Me){return!!(Me&&Me.kind===32)}function H(Me){return g(Me)||S(Me)}function se(Me){return(g(Me)||S(Me))&&!!Me.isFromPackageJson}function p(Me){return!!(Me.kind&8)}function C(Me){return!!(Me.kind&16)}function G(Me){return!!(Me&&Me.kind&64)}var E;(function(Me){Me[Me.None=0]="None",Me[Me.All=1]="All",Me[Me.ClassElementKeywords=2]="ClassElementKeywords",Me[Me.InterfaceElementKeywords=3]="InterfaceElementKeywords",Me[Me.ConstructorParameterKeywords=4]="ConstructorParameterKeywords",Me[Me.FunctionLikeBodyKeywords=5]="FunctionLikeBodyKeywords",Me[Me.TypeAssertionKeywords=6]="TypeAssertionKeywords",Me[Me.TypeKeywords=7]="TypeKeywords",Me[Me.TypeKeyword=8]="TypeKeyword",Me[Me.Last=7]="Last"})(E||(E={}));var ue;(function(Me){Me[Me.Continue=0]="Continue",Me[Me.Success=1]="Success",Me[Me.Fail=2]="Fail"})(ue||(ue={}));function B(Me,v,xe,ze,Je,Oe,Fr){var Xr,Or,We,mr=e.timestamp(),Nr=e.createPackageJsonImportFilter(ze,Je,v),Ur=!1,si=0,mi=0,Ti=0,hi=0,ki=Fr({tryResolve:zi,resolutionLimitExceeded:function(){return Ur}}),Ui=hi?" (".concat((Ti/hi*100).toFixed(1),"% hit rate)"):"";return(Xr=v.log)===null||Xr===void 0||Xr.call(v,"".concat(Me,": resolved ").concat(mi," module specifiers, plus ").concat(si," ambient and ").concat(Ti," from cache").concat(Ui)),(Or=v.log)===null||Or===void 0||Or.call(v,"".concat(Me,": response is ").concat(Ur?"incomplete":"complete")),(We=v.log)===null||We===void 0||We.call(v,"".concat(Me,": ").concat(e.timestamp()-mr)),ki;function zi(ri,Gi){if(Gi){var Rt=e.codefix.getModuleSpecifierForBestExportInfo(ri,ze,xe,v,Je);return Rt&&si++,Rt}var pa=Oe||Je.allowIncompleteCompletions&&mi<O.moduleSpecifierResolutionLimit,xt=!pa&&Je.allowIncompleteCompletions&&hi<O.moduleSpecifierResolutionCacheAttemptLimit,ua=pa||xt?e.codefix.getModuleSpecifierForBestExportInfo(ri,ze,xe,v,Je,Nr,xt):void 0;return(!pa&&!xt||xt&&!ua)&&(Ur=!0),mi+=(ua==null?void 0:ua.computedWithoutCacheCount)||0,Ti+=ri.length-mi,xt&&hi++,ua}}function re(Me,v,xe,ze,Je,Oe,Fr,Xr,Or,We){var mr,Nr=ur(Je,ze).previousToken;if(!(Fr&&!e.isInString(ze,Je,Nr)&&!Si(ze,Fr,Nr,Je))){if(Fr===" ")return Oe.includeCompletionsForImportStatements&&Oe.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;var Ur=v.getCompilerOptions(),si=Oe.allowIncompleteCompletions?(mr=Me.getIncompleteCompletionsCache)===null||mr===void 0?void 0:mr.call(Me):void 0;if(si&&Xr===3&&Nr&&e.isIdentifier(Nr)){var mi=ie(si,ze,Nr,v,Me,Oe,Or);if(mi)return mi}else si==null||si.clear();var Ti=O.StringCompletions.getStringLiteralCompletions(ze,Je,Nr,Ur,Me,v,xe,Oe);if(Ti)return Ti;if(Nr&&e.isBreakOrContinueStatement(Nr.parent)&&(Nr.kind===81||Nr.kind===86||Nr.kind===79))return le(Nr.parent);var hi=cr(v,xe,ze,A(ze,Ur),Je,Oe,void 0,Me,Or);if(!!hi)switch(hi.kind){case 0:var ki=ee(ze,Me,v,Ur,xe,hi,Oe,We,Je);return ki!=null&&ki.isIncomplete&&(si==null||si.set(ki)),ki;case 1:return _e(e.JsDoc.getJSDocTagNameCompletions());case 2:return _e(e.JsDoc.getJSDocTagCompletions());case 3:return _e(e.JsDoc.getJSDocParameterNameCompletions(hi.tag));case 4:return Z(hi.keywordCompletions,hi.isNewIdentifierLocation);default:return e.Debug.assertNever(hi)}}}O.getCompletionsAtPosition=re;function M(Me,v){var xe,ze,Je=e.compareStringsCaseSensitiveUI(Me.sortText,v.sortText);return Je===0&&(Je=e.compareStringsCaseSensitiveUI(Me.name,v.name)),Je===0&&((xe=Me.data)===null||xe===void 0?void 0:xe.moduleSpecifier)&&((ze=v.data)===null||ze===void 0?void 0:ze.moduleSpecifier)&&(Je=e.compareNumberOfDirectorySeparators(Me.data.moduleSpecifier,v.data.moduleSpecifier)),Je===0?-1:Je}function x(Me){return!!(Me!=null&&Me.moduleSpecifier)}function ie(Me,v,xe,ze,Je,Oe,Fr){var Xr=Me.get();if(!!Xr){var Or=xe.text.toLowerCase(),We=e.getExportInfoMap(v,Je,ze,Fr),mr=B("continuePreviousIncompleteResponse",Je,ze,v,Oe,!1,function(Nr){var Ur=e.mapDefined(Xr.entries,function(si){if(!si.hasAction||!si.source||!si.data||x(si.data))return si;if(!!hr(si.name,Or)){var mi=e.Debug.checkDefined(Ir(si.name,si.data,ze,Je)).origin,Ti=We.get(v.path,si.data.exportMapKey),hi=Ti&&Nr.tryResolve(Ti,!e.isExternalModuleNameRelative(e.stripQuotes(mi.moduleSymbol.name)));if(!hi)return si;var ki=Ve(Ve({},mi),{kind:32,moduleSpecifier:hi.moduleSpecifier});return si.data=oe(ki),si.source=ae(ki),si.sourceDisplay=[e.textPart(ki.moduleSpecifier)],si}});return Nr.resolutionLimitExceeded()||(Xr.isIncomplete=void 0),Ur});return Xr.entries=mr,Xr}}function _e(Me){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:Me}}function Y(Me){return{name:e.tokenToString(Me),kind:"keyword",kindModifiers:"",sortText:L.GlobalsOrKeywords}}function Z(Me,v){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:v,entries:Me.slice()}}function k(Me,v,xe){return{kind:4,keywordCompletions:n(Me,v),isNewIdentifierLocation:xe}}function I(Me){switch(Me){case 151:return 8;default:e.Debug.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function ne(Me){return(Me==null?void 0:Me.kind)===79?e.createTextSpanFromNode(Me):void 0}function ee(Me,v,xe,ze,Je,Oe,Fr,Xr,Or){var We=Oe.symbols,mr=Oe.contextToken,Nr=Oe.completionKind,Ur=Oe.isInSnippetScope,si=Oe.isNewIdentifierLocation,mi=Oe.location,Ti=Oe.propertyAccessToConvert,hi=Oe.keywordFilters,ki=Oe.literals,Ui=Oe.symbolToOriginInfoMap,zi=Oe.recommendedCompletion,ri=Oe.isJsxInitializer,Gi=Oe.isTypeOnlyLocation,Rt=Oe.isJsxIdentifierExpected,pa=Oe.isRightOfOpenTag,xt=Oe.importCompletionNode,ua=Oe.insideJsDocTagTypeExpression,Vt=Oe.symbolToSortTextIdMap,St=Oe.hasUnresolvedAutoImports;if(e.getLanguageVariant(Me.scriptKind)===1){var Ci=P(mi,Me);if(Ci)return Ci}var Hi=e.createSortedArray();if(A(Me,ze)){var Yi=V(We,Hi,void 0,mr,mi,Me,v,xe,e.getEmitScriptTarget(ze),Je,Nr,Fr,ze,Xr,Gi,Ti,Rt,ri,xt,zi,Ui,Vt,Rt,pa);D(Me,mi.pos,Yi,e.getEmitScriptTarget(ze),Hi)}else{if(!si&&(!We||We.length===0)&&hi===0)return;V(We,Hi,void 0,mr,mi,Me,v,xe,e.getEmitScriptTarget(ze),Je,Nr,Fr,ze,Xr,Gi,Ti,Rt,ri,xt,zi,Ui,Vt,Rt,pa)}if(hi!==0)for(var yt=new e.Set(Hi.map(function(ta){return ta.name})),gt=0,oa=n(hi,!ua&&e.isSourceFileJS(Me));gt<oa.length;gt++){var Bt=oa[gt];yt.has(Bt.name)||e.insertSorted(Hi,Bt,M,!0)}for(var Pi=new e.Set(Hi.map(function(ta){return ta.name})),Oi=0,wi=Cr(mr,Or);Oi<wi.length;Oi++){var Bt=wi[Oi];Pi.has(Bt.name)||e.insertSorted(Hi,Bt,M,!0)}for(var Qr=0,Ct=ki;Qr<Ct.length;Qr++){var tt=Ct[Qr];e.insertSorted(Hi,_(Me,Fr,tt),M,!0)}return{isGlobalCompletion:Ur,isIncomplete:Fr.allowIncompleteCompletions&&St?!0:void 0,isMemberCompletion:f(Nr),isNewIdentifierLocation:si,optionalReplacementSpan:ne(mi),entries:Hi}}function A(Me,v){return e.isSourceFileJS(Me)&&!e.isCheckJsEnabledForFile(Me,v)}function f(Me){switch(Me){case 0:case 3:case 2:return!0;default:return!1}}function P(Me,v){var xe=e.findAncestor(Me,function(We){switch(We.kind){case 280:return!0;case 43:case 31:case 79:case 205:return!1;default:return"quit"}});if(xe){var ze=!!e.findChildOfKind(xe,31,v),Je=xe.parent.openingElement.tagName,Oe=Je.getText(v),Fr=Oe+(ze?"":">"),Xr=e.createTextSpanFromNode(xe.tagName),Or={name:Fr,kind:"class",kindModifiers:void 0,sortText:L.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:Xr,entries:[Or]}}}function D(Me,v,xe,ze,Je){e.getNameTable(Me).forEach(function(Oe,Fr){if(Oe!==v){var Xr=e.unescapeLeadingUnderscores(Fr);!xe.has(Xr)&&e.isIdentifierText(Xr,ze)&&(xe.add(Xr),e.insertSorted(Je,{name:Xr,kind:"warning",kindModifiers:"",sortText:L.JavascriptIdentifiers,isFromUncheckedFile:!0},M))}})}function l(Me,v,xe){return typeof xe=="object"?e.pseudoBigIntToString(xe)+"n":e.isString(xe)?e.quote(Me,v,xe):JSON.stringify(xe)}function _(Me,v,xe){return{name:l(Me,v,xe),kind:"string",kindModifiers:"",sortText:L.LocationPriority}}function J(Me,v,xe,ze,Je,Oe,Fr,Xr,Or,We,mr,Nr,Ur,si,mi,Ti,hi,ki,Ui,zi,ri,Gi){var Rt,pa,xt,ua=e.getReplacementSpanForContextToken(xe),Vt,St,Ci=ae(mr),Hi,Yi,yt=Xr.getTypeChecker(),gt=mr&&C(mr),oa=mr&&F(mr)||We;if(mr&&pe(mr))xt=We?"this".concat(gt?"?.":"","[").concat(m(Oe,ki,Or),"]"):"this".concat(gt?"?.":".").concat(Or);else if((oa||gt)&&Ur){xt=oa?We?"[".concat(m(Oe,ki,Or),"]"):"[".concat(Or,"]"):Or,(gt||Ur.questionDotToken)&&(xt="?.".concat(xt));var Bt=e.findChildOfKind(Ur,24,Oe)||e.findChildOfKind(Ur,28,Oe);if(!Bt)return;var Pi=e.startsWith(Or,Ur.name.text)?Ur.name.end:Bt.end;ua=e.createTextSpanFromBounds(Bt.getStart(Oe),Pi)}if(si&&(xt===void 0&&(xt=Or),xt="{".concat(xt,"}"),typeof si!="boolean"&&(ua=e.createTextSpanFromNode(si,Oe))),mr&&p(mr)&&Ur){xt===void 0&&(xt=Or);var Oi=e.findPrecedingToken(Ur.pos,Oe),wi="";Oi&&e.positionIsASICandidate(Oi.end,Oi.parent,Oe)&&(wi=";"),wi+="(await ".concat(Ur.expression.getText(),")"),xt=We?"".concat(wi).concat(xt):"".concat(wi).concat(gt?"?.":".").concat(xt),ua=e.createTextSpanFromBounds(Ur.getStart(Oe),Ur.end)}if(S(mr)&&(Hi=[e.textPart(mr.moduleSpecifier)],mi&&(Rt=ce(Or,mi,ze,mr,Ti,hi,ki),xt=Rt.insertText,ua=Rt.replacementSpan,St=ki.includeCompletionsWithSnippetText?!0:void 0)),(mr==null?void 0:mr.kind)===64&&(Yi=!0),ki.includeCompletionsWithClassMemberSnippets&&ki.includeCompletionsWithInsertText&&Ui===3&&w(Me,Je)){var Qr=void 0;pa=j(Fr,Xr,hi,ki,Or,Me,Je,ze,zi),xt=pa.insertText,St=pa.isSnippet,Qr=pa.importAdder,Qr!=null&&Qr.hasFixes()&&(Yi=!0,Ci=N.ClassMemberSnippet)}if(ri&&!Gi&&ki.includeCompletionsWithSnippetText&&ki.jsxAttributeCompletionStyle&&ki.jsxAttributeCompletionStyle!=="none"){var Ct=ki.jsxAttributeCompletionStyle==="braces",tt=yt.getTypeOfSymbolAtLocation(Me,Je);ki.jsxAttributeCompletionStyle==="auto"&&!(tt.flags&528)&&!(tt.flags&1048576&&e.find(tt.types,function(ta){return!!(ta.flags&528)}))&&(tt.flags&402653316||tt.flags&1048576&&e.every(tt.types,function(ta){return!!(ta.flags&402686084)})?(xt="".concat(e.escapeSnippetText(Or),"=").concat(e.quote(Oe,ki,"$1")),St=!0):Ct=!0),Ct&&(xt="".concat(e.escapeSnippetText(Or),"={$1}"),St=!0)}if(!(xt!==void 0&&!ki.includeCompletionsWithInsertText))return(g(mr)||S(mr))&&(Vt=oe(mr),Yi=!mi),{name:Or,kind:e.SymbolDisplay.getSymbolKind(yt,Me,Je),kindModifiers:e.SymbolDisplay.getSymbolModifiers(yt,Me),sortText:v,source:Ci,hasAction:Yi?!0:void 0,isRecommended:de(Me,Nr,yt)||void 0,insertText:xt,replacementSpan:ua,sourceDisplay:Hi,isSnippet:St,isPackageJsonImport:se(mr)||void 0,isImportStatementCompletion:!!mi||void 0,data:Vt}}function w(Me,v){if(e.isInJSFile(v))return!1;var xe=106500;return!!(Me.flags&xe)&&(e.isClassLike(v)||v.parent&&v.parent.parent&&e.isClassElement(v.parent)&&v===v.parent.name&&e.isClassLike(v.parent.parent)||v.parent&&e.isSyntaxList(v)&&e.isClassLike(v.parent))}function j(Me,v,xe,ze,Je,Oe,Fr,Xr,Or){var We=e.findAncestor(Fr,e.isClassLike);if(!We)return{insertText:Je};var mr,Nr=Je,Ur=v.getTypeChecker(),si=Fr.getSourceFile(),mi=y({removeComments:!0,module:xe.module,target:xe.target,omitTrailingSemicolon:!1,newLine:e.getNewLineKind(e.getNewLineCharacter(xe,e.maybeBind(Me,Me.getNewLine)))}),Ti=e.codefix.createImportAdder(si,v,ze,Me),hi;if(ze.includeCompletionsWithSnippetText){mr=!0;var ki=e.factory.createEmptyStatement();hi=e.factory.createBlock([ki],!0),e.setSnippetElement(ki,{kind:0,order:0})}else hi=e.factory.createBlock([],!0);var Ui=0,zi=Xr&&z(Xr)===126,ri=[];if(e.codefix.addNewNodeForMemberSymbol(Oe,We,si,{program:v,host:Me},ze,Ti,function(xt){var ua=0;zi&&(ua|=128),e.isClassElement(xt)&&Ur.getMemberOverrideModifierStatus(We,xt)===1&&(ua|=16384);var Vt=0;ri.length||(Xr&&(Vt=U(Xr)),Ui=xt.modifierFlagsCache|ua|Vt),xt=e.factory.updateModifiers(xt,Ui&~Vt),ri.push(xt)},hi,2,zi),ri.length)if(Or){var Gi={text:mi.printSnippetList(131073,e.factory.createNodeArray(ri),si),getLineAndCharacterOfPosition:function(xt){return e.getLineAndCharacterOfPosition(this,xt)}},Rt=e.getFormatCodeSettingsForWriting(Or,si),pa=e.flatMap(ri,function(xt){var ua=e.textChanges.assignPositionsToNode(xt);return e.formatting.formatNodeGivenIndentation(ua,Gi,si.languageVariant,0,0,Ve(Ve({},Or),{options:Rt}))});Nr=e.textChanges.applyChanges(Gi.text,pa)}else Nr=mi.printSnippetList(131073,e.factory.createNodeArray(ri),si);return{insertText:Nr,isSnippet:mr,importAdder:Ti}}function U(Me){var v=0,xe;return(xe=z(Me))&&(v|=e.modifierToFlag(xe)),e.isPropertyDeclaration(Me.parent)&&(v|=e.modifiersToFlags(Me.parent.modifiers)),v}function z(Me){if(e.isModifier(Me))return Me.kind;if(e.isIdentifier(Me)&&Me.originalKeywordKind&&e.isModifierKind(Me.originalKeywordKind))return Me.originalKeywordKind}function y(Me){var v=e.textChanges.createWriter(e.getNewLineCharacter(Me)),xe=e.createPrinter(Me,v),ze=Ve(Ve({},v),{write:function(Oe){return v.write(e.escapeSnippetText(Oe))},nonEscapingWrite:v.write,writeLiteral:function(Oe){return v.writeLiteral(e.escapeSnippetText(Oe))},writeStringLiteral:function(Oe){return v.writeStringLiteral(e.escapeSnippetText(Oe))},writeSymbol:function(Oe,Fr){return v.writeSymbol(e.escapeSnippetText(Oe),Fr)},writeParameter:function(Oe){return v.writeParameter(e.escapeSnippetText(Oe))},writeComment:function(Oe){return v.writeComment(e.escapeSnippetText(Oe))},writeProperty:function(Oe){return v.writeProperty(e.escapeSnippetText(Oe))}});return{printSnippetList:Je};function Je(Oe,Fr,Xr){return ze.clear(),xe.writeList(Oe,Fr,Xr,ze),ze.getText()}}function oe(Me){var v=Me.fileName?void 0:e.stripQuotes(Me.moduleSymbol.name),xe=Me.isFromPackageJson?!0:void 0;if(S(Me)){var ze={exportName:Me.exportName,moduleSpecifier:Me.moduleSpecifier,ambientModuleName:v,fileName:Me.fileName,isPackageJsonImport:xe};return ze}var Je={exportName:Me.exportName,exportMapKey:Me.exportMapKey,fileName:Me.fileName,ambientModuleName:Me.fileName?void 0:e.stripQuotes(Me.moduleSymbol.name),isPackageJsonImport:Me.isFromPackageJson?!0:void 0};return Je}function ve(Me,v,xe){var ze=Me.exportName==="default",Je=!!Me.isPackageJsonImport;if(x(Me)){var Oe={kind:32,exportName:Me.exportName,moduleSpecifier:Me.moduleSpecifier,symbolName:v,fileName:Me.fileName,moduleSymbol:xe,isDefaultExport:ze,isFromPackageJson:Je};return Oe}var Fr={kind:4,exportName:Me.exportName,exportMapKey:Me.exportMapKey,symbolName:v,fileName:Me.fileName,moduleSymbol:xe,isDefaultExport:ze,isFromPackageJson:Je};return Fr}function ce(Me,v,xe,ze,Je,Oe,Fr){var Xr,Or,We,mr=v.getSourceFile(),Nr=e.createTextSpanFromNode(e.findAncestor(v,e.or(e.isImportDeclaration,e.isImportEqualsDeclaration))||v,mr),Ur=e.quote(mr,Fr,ze.moduleSpecifier),si=ze.isDefaultExport?1:ze.exportName==="export="?2:0,mi=Fr.includeCompletionsWithSnippetText?"$1":"",Ti=e.codefix.getImportKind(mr,si,Oe,!0),hi=((Or=(Xr=e.tryCast(v,e.isImportDeclaration))===null||Xr===void 0?void 0:Xr.importClause)===null||Or===void 0?void 0:Or.isTypeOnly)||((We=e.tryCast(v,e.isImportEqualsDeclaration))===null||We===void 0?void 0:We.isTypeOnly),ki=Ji(v,xe),Ui=hi?" ".concat(e.tokenToString(151)," "):" ",zi=ki?"".concat(e.tokenToString(151)," "):"",ri=Je?";":"";switch(Ti){case 3:return{replacementSpan:Nr,insertText:"import".concat(Ui).concat(e.escapeSnippetText(Me)).concat(mi," = require(").concat(Ur,")").concat(ri)};case 1:return{replacementSpan:Nr,insertText:"import".concat(Ui).concat(e.escapeSnippetText(Me)).concat(mi," from ").concat(Ur).concat(ri)};case 2:return{replacementSpan:Nr,insertText:"import".concat(Ui,"* as ").concat(e.escapeSnippetText(Me)," from ").concat(Ur).concat(ri)};case 0:return{replacementSpan:Nr,insertText:"import".concat(Ui,"{ ").concat(zi).concat(e.escapeSnippetText(Me)).concat(mi," } from ").concat(Ur).concat(ri)}}}function m(Me,v,xe){return/^\d+$/.test(xe)?xe:e.quote(Me,v,xe)}function de(Me,v,xe){return Me===v||!!(Me.flags&1048576)&&xe.getExportSymbolOfSymbol(Me)===v}function ae(Me){if(g(Me))return e.stripQuotes(Me.moduleSymbol.name);if(S(Me))return Me.moduleSpecifier;if((Me==null?void 0:Me.kind)===1)return N.ThisProperty;if((Me==null?void 0:Me.kind)===64)return N.TypeOnlyAlias}function V(Me,v,xe,ze,Je,Oe,Fr,Xr,Or,We,mr,Nr,Ur,si,mi,Ti,hi,ki,Ui,zi,ri,Gi,Rt,pa){for(var xt,ua=e.timestamp(),Vt=Ye(Je),St=e.probablyUsesSemicolons(Oe),Ci=Xr.getTypeChecker(),Hi=new e.Map,Yi=0;Yi<Me.length;Yi++){var yt=Me[Yi],gt=ri==null?void 0:ri[Yi],oa=dr(yt,Or,gt,mr,!!hi);if(!(!oa||Hi.get(oa.name)||mr===1&&Gi&&!tt(yt,Gi))){var Bt=oa.name,Pi=oa.needsConvertPropertyAccess,Oi=(xt=Gi==null?void 0:Gi[e.getSymbolId(yt)])!==null&&xt!==void 0?xt:11,wi=(_r(yt,Ci)?8+Oi:Oi).toString(),Qr=J(yt,wi,xe,ze,Je,Oe,Fr,Xr,Bt,Pi,gt,zi,Ti,ki,Ui,St,Ur,Nr,mr,si,Rt,pa);if(!!Qr){var Ct=(!gt||G(gt))&&!(yt.parent===void 0&&!e.some(yt.declarations,function(ta){return ta.getSourceFile()===Je.getSourceFile()}));Hi.set(Bt,Ct),e.insertSorted(v,Qr,M,!0)}}}return We("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(e.timestamp()-ua)),{has:function(ta){return Hi.has(ta)},add:function(ta){return Hi.set(ta,!0)}};function tt(ta,Xa){var on=ta.flags;if(!e.isSourceFile(Je)){if(e.isExportAssignment(Je.parent))return!0;if(Vt&&ta.valueDeclaration===Vt)return!1;var qr=e.skipAlias(ta,Ci);if(!!Oe.externalModuleIndicator&&!Ur.allowUmdGlobalAccess&&Xa[e.getSymbolId(ta)]===15&&(Xa[e.getSymbolId(qr)]===16||Xa[e.getSymbolId(qr)]===11))return!1;if(on|=e.getCombinedLocalAndExportSymbolFlags(qr),e.isInRightSideOfInternalImportEqualsDeclaration(Je))return!!(on&1920);if(mi)return Qe(ta,Ci)}return!!(on&111551)}}O.getCompletionEntriesFromSymbols=V;function le(Me){var v=ke(Me);if(v.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:v}}function ke(Me){for(var v=[],xe=new e.Map,ze=Me;ze&&!e.isFunctionLike(ze);){if(e.isLabeledStatement(ze)){var Je=ze.label.text;xe.has(Je)||(xe.set(Je,!0),v.push({name:Je,kindModifiers:"",kind:"label",sortText:L.LocationPriority}))}ze=ze.parent}return v}function Ue(Me,v,xe,ze,Je,Oe,Fr){if(Je.data){var Xr=Ir(Je.name,Je.data,Me,Oe);if(Xr){var Or=ur(ze,xe),We=Or.contextToken,mr=Or.previousToken;return{type:"symbol",symbol:Xr.symbol,location:e.getTouchingPropertyName(xe,ze),previousToken:mr,contextToken:We,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:Xr.origin}}}var Nr=Me.getCompilerOptions(),Ur=cr(Me,v,xe,A(xe,Nr),ze,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},Je,Oe);if(!Ur)return{type:"none"};if(Ur.kind!==0)return{type:"request",request:Ur};var si=Ur.symbols,mi=Ur.literals,Ti=Ur.location,hi=Ur.completionKind,ki=Ur.symbolToOriginInfoMap,Ui=Ur.contextToken,zi=Ur.previousToken,ri=Ur.isJsxInitializer,Gi=Ur.isTypeOnlyLocation,Rt=e.find(mi,function(pa){return l(xe,Fr,pa)===Je.name});return Rt!==void 0?{type:"literal",literal:Rt}:e.firstDefined(si,function(pa,xt){var ua=ki[xt],Vt=dr(pa,e.getEmitScriptTarget(Nr),ua,hi,Ur.isJsxIdentifierExpected);return Vt&&Vt.name===Je.name&&(Je.source===N.ClassMemberSnippet&&pa.flags&106500||ae(ua)===Je.source)?{type:"symbol",symbol:pa,location:Ti,origin:ua,contextToken:Ui,previousToken:zi,isJsxInitializer:ri,isTypeOnlyLocation:Gi}:void 0})||{type:"none"}}function He(Me,v,xe,ze,Je,Oe,Fr,Xr,Or){var We=Me.getTypeChecker(),mr=Me.getCompilerOptions(),Nr=Je.name,Ur=Je.source,si=Je.data,mi=e.findPrecedingToken(ze,xe);if(e.isInString(xe,ze,mi))return O.StringCompletions.getStringLiteralCompletionDetails(Nr,xe,ze,mi,We,mr,Oe,Or,Xr);var Ti=Ue(Me,v,xe,ze,Je,Oe,Xr);switch(Ti.type){case"request":{var hi=Ti.request;switch(hi.kind){case 1:return e.JsDoc.getJSDocTagNameCompletionDetails(Nr);case 2:return e.JsDoc.getJSDocTagCompletionDetails(Nr);case 3:return e.JsDoc.getJSDocParameterNameCompletionDetails(Nr);case 4:return e.some(hi.keywordCompletions,function(Vt){return Vt.name===Nr})?ar(Nr,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:return e.Debug.assertNever(hi)}}case"symbol":{var ki=Ti.symbol,Ui=Ti.location,zi=Ti.contextToken,ri=Ti.origin,Gi=Ti.previousToken,Rt=Ge(Nr,Ui,zi,ri,ki,Me,Oe,mr,xe,ze,Gi,Fr,Xr,si,Ur),pa=Rt.codeActions,xt=Rt.sourceDisplay;return gr(ki,We,xe,Ui,Or,pa,xt)}case"literal":{var ua=Ti.literal;return ar(l(xe,Xr,ua),"string",typeof ua=="string"?e.SymbolDisplayPartKind.stringLiteral:e.SymbolDisplayPartKind.numericLiteral)}case"none":return Tr().some(function(Vt){return Vt.name===Nr})?ar(Nr,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:e.Debug.assertNever(Ti)}}O.getCompletionEntryDetails=He;function ar(Me,v,xe){return me(Me,"",v,[e.displayPart(Me,xe)])}function gr(Me,v,xe,ze,Je,Oe,Fr){var Xr=v.runWithCancellationToken(Je,function(Ur){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(Ur,Me,xe,ze,ze,7)}),Or=Xr.displayParts,We=Xr.documentation,mr=Xr.symbolKind,Nr=Xr.tags;return me(Me.name,e.SymbolDisplay.getSymbolModifiers(v,Me),mr,Or,We,Nr,Oe,Fr)}O.createCompletionDetailsForSymbol=gr;function me(Me,v,xe,ze,Je,Oe,Fr,Xr){return{name:Me,kindModifiers:v,kind:xe,displayParts:ze,documentation:Je,tags:Oe,codeActions:Fr,source:Xr,sourceDisplay:Xr}}O.createCompletionDetails=me;function Ge(Me,v,xe,ze,Je,Oe,Fr,Xr,Or,We,mr,Nr,Ur,si,mi){if(si!=null&&si.moduleSpecifier&&mr&&sr(xe||mr).replacementNode)return{codeActions:void 0,sourceDisplay:[e.textPart(si.moduleSpecifier)]};if(mi===N.ClassMemberSnippet){var Ti=j(Fr,Oe,Xr,Ur,Me,Je,v,xe,Nr).importAdder;if(Ti){var hi=e.textChanges.ChangeTracker.with({host:Fr,formatContext:Nr,preferences:Ur},Ti.writeFixes);return{sourceDisplay:void 0,codeActions:[{changes:hi,description:e.diagnosticToString([e.Diagnostics.Includes_imports_of_types_referenced_by_0,Me])}]}}}if(G(ze)){var ki=e.codefix.getPromoteTypeOnlyCompletionAction(Or,ze.declaration.name,Oe,Fr,Nr,Ur);return e.Debug.assertIsDefined(ki,"Expected to have a code action for promoting type-only alias"),{codeActions:[ki],sourceDisplay:void 0}}if(!ze||!(g(ze)||S(ze)))return{codeActions:void 0,sourceDisplay:void 0};var Ui=ze.isFromPackageJson?Fr.getPackageJsonAutoImportProvider().getTypeChecker():Oe.getTypeChecker(),zi=ze.moduleSymbol,ri=Ui.getMergedSymbol(e.skipAlias(Je.exportSymbol||Je,Ui)),Gi=(xe==null?void 0:xe.kind)===29&&e.isJsxOpeningLikeElement(xe.parent),Rt=e.codefix.getImportCompletionAction(ri,zi,Or,e.getNameForExportedSymbol(Je,e.getEmitScriptTarget(Xr),Gi),Gi,Fr,Oe,Nr,mr&&e.isIdentifier(mr)?mr.getStart(Or):We,Ur),pa=Rt.moduleSpecifier,xt=Rt.codeAction;return e.Debug.assert(!(si!=null&&si.moduleSpecifier)||pa===si.moduleSpecifier),{sourceDisplay:[e.textPart(pa)],codeActions:[xt]}}function er(Me,v,xe,ze,Je,Oe,Fr){var Xr=Ue(Me,v,xe,ze,Je,Oe,Fr);return Xr.type==="symbol"?Xr.symbol:void 0}O.getCompletionEntrySymbol=er;var he;(function(Me){Me[Me.Data=0]="Data",Me[Me.JsDocTagName=1]="JsDocTagName",Me[Me.JsDocTag=2]="JsDocTag",Me[Me.JsDocParameterName=3]="JsDocParameterName",Me[Me.Keywords=4]="Keywords"})(he||(he={}));var we;(function(Me){Me[Me.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",Me[Me.Global=1]="Global",Me[Me.PropertyAccess=2]="PropertyAccess",Me[Me.MemberLike=3]="MemberLike",Me[Me.String=4]="String",Me[Me.None=5]="None"})(we=O.CompletionKind||(O.CompletionKind={}));function ye(Me,v,xe){return e.firstDefined(v&&(v.isUnion()?v.types:[v]),function(ze){var Je=ze&&ze.symbol;return Je&&Je.flags&424&&!e.isAbstractConstructorSymbol(Je)?ge(Je,Me,xe):void 0})}function Se(Me,v,xe,ze){var Je=Me.parent;switch(Me.kind){case 79:return e.getContextualTypeFromParent(Me,ze);case 63:switch(Je.kind){case 253:return ze.getContextualType(Je.initializer);case 220:return ze.getTypeAtLocation(Je.left);case 284:return ze.getContextualTypeForJsxAttribute(Je);default:return}case 103:return ze.getContextualType(Je);case 82:var Oe=e.tryCast(Je,e.isCaseClause);return Oe?e.getSwitchedType(Oe,ze):void 0;case 18:return e.isJsxExpression(Je)&&!e.isJsxElement(Je.parent)&&!e.isJsxFragment(Je.parent)?ze.getContextualTypeForJsxAttribute(Je.parent):void 0;default:var Fr=e.SignatureHelp.getArgumentInfoForCompletions(Me,v,xe);return Fr?ze.getContextualTypeForArgumentAtIndex(Fr.invocation,Fr.argumentIndex+(Me.kind===27?1:0)):e.isEqualityOperatorKind(Me.kind)&&e.isBinaryExpression(Je)&&e.isEqualityOperatorKind(Je.operatorToken.kind)?ze.getTypeAtLocation(Je.left):ze.getContextualType(Me)}}function ge(Me,v,xe){var ze=xe.getAccessibleSymbolChain(Me,v,67108863,!1);return ze?e.first(ze):Me.parent&&(Fe(Me.parent)?Me:ge(Me.parent,v,xe))}function Fe(Me){var v;return!!(!((v=Me.declarations)===null||v===void 0)&&v.some(function(xe){return xe.kind===303}))}function cr(Me,v,xe,ze,Je,Oe,Fr,Xr,Or){var We=Me.getTypeChecker(),mr=e.timestamp(),Nr=e.getTokenAtPosition(xe,Je);v("getCompletionData: Get current token: "+(e.timestamp()-mr)),mr=e.timestamp();var Ur=e.isInComment(xe,Je,Nr);v("getCompletionData: Is inside comment: "+(e.timestamp()-mr));var si=!1,mi=!1;if(Ur){if(e.hasDocComment(xe,Je)){if(xe.text.charCodeAt(Je-1)===64)return{kind:1};var Ti=e.getLineStartPositionForPosition(Je,xe);if(!/[^\*|\s(/)]/.test(xe.text.substring(Ti,Je)))return{kind:2}}var hi=Lr(Nr,Je);if(hi){if(hi.tagName.pos<=Je&&Je<=hi.tagName.end)return{kind:1};if(Vo(hi)&&hi.typeExpression&&hi.typeExpression.kind===307&&(Nr=e.getTokenAtPosition(xe,Je),(!Nr||!e.isDeclarationName(Nr)&&(Nr.parent.kind!==345||Nr.parent.name!==Nr))&&(si=Hs(hi.typeExpression))),!si&&e.isJSDocParameterTag(hi)&&(e.nodeIsMissing(hi.name)||hi.name.pos<=Je&&Je<=hi.name.end))return{kind:3,tag:hi}}if(!si){v("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}mr=e.timestamp();var ki=!si&&e.isSourceFileJS(xe),Ui=ur(Je,xe),zi=Ui.previousToken,ri=Ui.contextToken;v("getCompletionData: Get previous token: "+(e.timestamp()-mr));var Gi=Nr,Rt,pa=!1,xt=!1,ua=!1,Vt=!1,St=!1,Ci=!1,Hi,Yi=e.getTouchingPropertyName(xe,Je),yt=0,gt=!1;if(ri){var oa=sr(ri);if(gt=oa.isNewIdentifierLocation,oa.keywordCompletion){if(oa.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[Y(oa.keywordCompletion)],isNewIdentifierLocation:gt};yt=I(oa.keywordCompletion)}if(oa.replacementNode&&Oe.includeCompletionsForImportStatements&&Oe.includeCompletionsWithInsertText&&(Hi=oa.replacementNode),!Hi&&bi(ri))return v("Returning an empty list because completion was requested in an invalid position."),yt?k(yt,ki,Ht()):void 0;var Bt=ri.parent;if(ri.kind===24||ri.kind===28)switch(pa=ri.kind===24,xt=ri.kind===28,Bt.kind){case 205:Rt=Bt,Gi=Rt.expression;var Pi=e.getLeftmostAccessExpression(Rt);if(e.nodeIsMissing(Pi)||(e.isCallExpression(Gi)||e.isFunctionLike(Gi))&&Gi.end===ri.pos&&Gi.getChildCount(xe)&&e.last(Gi.getChildren(xe)).kind!==21)return;break;case 160:Gi=Bt.left;break;case 260:Gi=Bt.name;break;case 199:Gi=Bt;break;case 230:Gi=Bt.getFirstToken(xe),e.Debug.assert(Gi.kind===100||Gi.kind===103);break;default:return}else if(!Hi&&xe.languageVariant===1){if(Bt&&Bt.kind===205&&(ri=Bt,Bt=Bt.parent),Nr.parent===Yi)switch(Nr.kind){case 31:(Nr.parent.kind===277||Nr.parent.kind===279)&&(Yi=Nr);break;case 43:Nr.parent.kind===278&&(Yi=Nr);break}switch(Bt.kind){case 280:ri.kind===43&&(Vt=!0,Yi=ri);break;case 220:if(!qi(Bt))break;case 278:case 277:case 279:Ci=!0,ri.kind===29&&(ua=!0,Yi=ri);break;case 287:case 286:zi.kind===19&&Nr.kind===31&&(Ci=!0);break;case 284:if(Bt.initializer===zi&&zi.end<Je){Ci=!0;break}switch(zi.kind){case 63:St=!0;break;case 79:Ci=!0,Bt!==zi.parent&&!Bt.initializer&&e.findChildOfKind(Bt,63,xe)&&(St=zi)}break}}}var Oi=e.timestamp(),wi=5,Qr=!1,Ct=!1,tt=[],ta=[],Xa=[],on=new e.Map,qr=xo(),bn=e.memoizeOne(function(Mi){return e.createModuleSpecifierResolutionHost(Mi?Xr.getPackageJsonAutoImportProvider():Me,Xr)});if(pa||xt)Cn();else if(ua)tt=We.getJsxIntrinsicTagNamesAt(Yi),e.Debug.assertEachIsDefined(tt,"getJsxIntrinsicTagNames() should all be defined"),rs(),wi=1,yt=0;else if(Vt){var Rn=ri.parent.parent.openingElement.tagName,Sn=We.getSymbolAtLocation(Rn);Sn&&(tt=[Sn]),wi=1,yt=0}else if(!rs())return yt?k(yt,ki,gt):void 0;v("getCompletionData: Semantic work: "+(e.timestamp()-Oi));var zn=zi&&Se(zi,Je,xe,We),Zn=e.mapDefined(zn&&(zn.isUnion()?zn.types:[zn]),function(Mi){return Mi.isLiteral()&&!(Mi.flags&1024)?Mi.value:void 0}),ho=zi&&zn&&ye(zi,zn,We);return{kind:0,symbols:tt,completionKind:wi,isInSnippetScope:mi,propertyAccessToConvert:Rt,isNewIdentifierLocation:gt,location:Yi,keywordFilters:yt,literals:Zn,symbolToOriginInfoMap:ta,recommendedCompletion:ho,previousToken:zi,contextToken:ri,isJsxInitializer:St,insideJsDocTagTypeExpression:si,symbolToSortTextIdMap:Xa,isTypeOnlyLocation:qr,isJsxIdentifierExpected:Ci,isRightOfOpenTag:ua,importCompletionNode:Hi,hasUnresolvedAutoImports:Ct};function Vo(Mi){switch(Mi.kind){case 338:case 345:case 339:case 341:case 343:return!0;default:return!1}}function Cn(){wi=2;var Mi=e.isLiteralImportTypeNode(Gi),$t=si||Mi&&!Gi.isTypeOf||e.isPartOfTypeNode(Gi.parent)||e.isPossiblyTypeArgumentPosition(ri,xe,We),ga=e.isInRightSideOfInternalImportEqualsDeclaration(Gi);if(e.isEntityName(Gi)||Mi||e.isPropertyAccessExpression(Gi)){var xn=e.isModuleDeclaration(Gi.parent);xn&&(gt=!0);var yn=We.getSymbolAtLocation(Gi);if(yn&&(yn=e.skipAlias(yn,We),yn.flags&1920)){var An=We.getExportsOfModule(yn);e.Debug.assertEachIsDefined(An,"getExportsOfModule() should all be defined");for(var Pa=function(ti){return We.isValidPropertyAccess(Mi?Gi:Gi.parent,ti.name)},Mn=function(ti){return Qe(ti,We)},ao=xn?function(ti){var mt;return!!(ti.flags&1920)&&!(!((mt=ti.declarations)===null||mt===void 0)&&mt.every(function(Zt){return Zt.parent===Gi.parent}))}:ga?function(ti){return Mn(ti)||Pa(ti)}:$t?Mn:Pa,co=0,De=An;co<De.length;co++){var zr=De[co];ao(zr)&&tt.push(zr)}if(!$t&&yn.declarations&&yn.declarations.some(function(ti){return ti.kind!==303&&ti.kind!==260&&ti.kind!==259})){var xi=We.getTypeOfSymbolAtLocation(yn,Gi).getNonOptionalType(),et=!1;if(xi.isNullableType()){var je=pa&&!xt&&Oe.includeAutomaticOptionalChainCompletions!==!1;(je||xt)&&(xi=xi.getNonNullableType(),je&&(et=!0))}go(xi,!!(Gi.flags&32768),et)}return}}if(!$t){We.tryGetThisTypeAt(Gi,!1);var xi=We.getTypeAtLocation(Gi).getNonOptionalType(),et=!1;if(xi.isNullableType()){var je=pa&&!xt&&Oe.includeAutomaticOptionalChainCompletions!==!1;(je||xt)&&(xi=xi.getNonNullableType(),je&&(et=!0))}go(xi,!!(Gi.flags&32768),et)}}function go(Mi,$t,ga){gt=!!Mi.getStringIndexType(),xt&&e.some(Mi.getCallSignatures())&&(gt=!0);var xn=Gi.kind===199?Gi:Gi.parent;if(ze)tt.push.apply(tt,e.filter(be(Mi,We),function(De){return We.isValidPropertyAccessForCompletions(xn,Mi,De)}));else for(var yn=0,An=Mi.getApparentProperties();yn<An.length;yn++){var Pa=An[yn];We.isValidPropertyAccessForCompletions(xn,Mi,Pa)&&ro(Pa,!1,ga)}if($t&&Oe.includeCompletionsWithInsertText){var Mn=We.getPromisedTypeOfPromise(Mi);if(Mn)for(var ao=0,co=Mn.getApparentProperties();ao<co.length;ao++){var Pa=co[ao];We.isValidPropertyAccessForCompletions(xn,Mn,Pa)&&ro(Pa,!0,ga)}}}function ro(Mi,$t,ga){var xn,yn=e.firstDefined(Mi.declarations,function(mt){return e.tryCast(e.getNameOfDeclaration(mt),e.isComputedPropertyName)});if(yn){var An=Ko(yn.expression),Pa=An&&We.getSymbolAtLocation(An),Mn=Pa&&ge(Pa,ri,We);if(Mn&&e.addToSeen(on,e.getSymbolId(Mn))){var ao=tt.length;tt.push(Mn);var co=Mn.parent;if(!co||!e.isExternalModuleSymbol(co)||We.tryGetMemberInModuleExportsAndProperties(Mn.name,co)!==Mn)ta[ao]={kind:ti(2)};else{var De=e.isExternalModuleNameRelative(e.stripQuotes(co.name))?(xn=e.getSourceFileOfModule(co))===null||xn===void 0?void 0:xn.fileName:void 0,zr=(e.codefix.getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:De,isFromPackageJson:!1,moduleSymbol:co,symbol:Mn,targetFlags:e.skipAlias(Mn,We).flags}],xe,Me,Xr,Oe)||{}).moduleSpecifier;if(zr){var xi={kind:ti(6),moduleSymbol:co,isDefaultExport:!1,symbolName:Mn.name,exportName:Mn.name,fileName:De,moduleSpecifier:zr};ta[ao]=xi}}}else Oe.includeCompletionsWithInsertText&&(je(Mi),et(Mi),tt.push(Mi))}else je(Mi),et(Mi),tt.push(Mi);function et(mt){bt(mt)&&(Xa[e.getSymbolId(mt)]=10)}function je(mt){Oe.includeCompletionsWithInsertText&&($t&&e.addToSeen(on,e.getSymbolId(mt))?ta[tt.length]={kind:ti(8)}:ga&&(ta[tt.length]={kind:16}))}function ti(mt){return ga?mt|16:mt}}function Ko(Mi){return e.isIdentifier(Mi)?Mi:e.isPropertyAccessExpression(Mi)?Ko(Mi.expression):void 0}function rs(){var Mi=an()||Ke()||io()||h()||Ee()||rn()||Re()||Do()||(pn(),1);return Mi===1}function rn(){return _i(ri)?(wi=5,gt=!0,yt=4,1):0}function Do(){var Mi=Ki(ri),$t=Mi&&We.getContextualType(Mi.attributes);if(!$t)return 0;var ga=Mi&&We.getContextualType(Mi.attributes,4);return tt=e.concatenate(tt,mc(Jr($t,ga,Mi.attributes,We),Mi.attributes.properties)),Ho(),wi=3,gt=!1,1}function io(){return Hi?(gt=!0,Ts(),1):0}function pn(){yt=Ei(ri)?5:1,wi=1,gt=Ht(),zi!==ri&&e.Debug.assert(!!zi,"Expected 'contextToken' to be defined when different from 'previousToken'.");var Mi=zi!==ri?zi.getStart():Je,$t=xr(ri,Mi,xe)||xe;mi=wo($t);var ga=(qr?0:111551)|788968|1920|2097152,xn=zi&&!e.isValidTypeOnlyAliasUseSite(zi);tt=e.concatenate(tt,We.getSymbolsInScope($t,ga)),e.Debug.assertEachIsDefined(tt,"getSymbolsInScope() should all be defined");for(var yn=0;yn<tt.length;yn++){var An=tt[yn];if(!We.isArgumentsSymbol(An)&&!e.some(An.declarations,function(zr){return zr.getSourceFile()===xe})&&(Xa[e.getSymbolId(An)]=15),xn&&!(An.flags&111551)){var Pa=An.declarations&&e.find(An.declarations,e.isTypeOnlyImportOrExportDeclaration);if(Pa){var Mn={kind:64,declaration:Pa};ta[yn]=Mn}}}if(Oe.includeCompletionsWithInsertText&&$t.kind!==303){var ao=We.tryGetThisTypeAt($t,!1);if(ao&&!ft(ao,xe,We))for(var co=0,De=be(ao,We);co<De.length;co++){var An=De[co];ta[tt.length]={kind:1},tt.push(An),Xa[e.getSymbolId(An)]=14}}Ts(),qr&&(yt=ri&&e.isAssertionExpression(ri.parent)?6:7)}function Qn(){return Hi?!0:Qr||!Oe.includeCompletionsForModuleExports?!1:xe.externalModuleIndicator||xe.commonJsModuleIndicator||e.compilerOptionsIndicateEsModules(Me.getCompilerOptions())?!0:e.programContainsModules(Me)}function wo(Mi){switch(Mi.kind){case 303:case 222:case 287:case 234:return!0;default:return e.isStatement(Mi)}}function xo(){return si||!!Hi&&e.isTypeOnlyImportOrExportDeclaration(Yi.parent)||!ds(ri)&&(e.isPossiblyTypeArgumentPosition(ri,xe,We)||e.isPartOfTypeNode(Yi)||No(ri))}function ds(Mi){return Mi&&(Mi.kind===112&&(Mi.parent.kind===180||e.isTypeOfExpression(Mi.parent))||Mi.kind===128&&Mi.parent.kind===176)}function No(Mi){if(Mi){var $t=Mi.parent.kind;switch(Mi.kind){case 58:return $t===166||$t===165||$t===163||$t===253||e.isFunctionLikeKind($t);case 63:return $t===258;case 127:return $t===228;case 29:return $t===177||$t===210;case 94:return $t===162}}return!1}function Ts(){var Mi,$t;if(!Qn()||(e.Debug.assert(!(Fr!=null&&Fr.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),Fr&&!Fr.source))return;var ga=zi===ri&&Hi&&Ji(Hi,ri),xn=ga?"":zi&&e.isIdentifier(zi)?zi.text.toLowerCase():"",yn=(Mi=Xr.getModuleSpecifierCache)===null||Mi===void 0?void 0:Mi.call(Xr),An=e.getExportInfoMap(xe,Xr,Me,Or),Pa=($t=Xr.getPackageJsonAutoImportProvider)===null||$t===void 0?void 0:$t.call(Xr),Mn=Fr?void 0:e.createPackageJsonImportFilter(xe,Oe,Xr);B("collectAutoImports",Xr,Me,xe,Oe,!!Hi,function(co){An.search(xe.path,ua,function(De,zr){if(!e.isIdentifierText(De,e.getEmitScriptTarget(Xr.getCompilationSettings()))||!Fr&&e.isStringANonContextualKeyword(De)||!qr&&!Hi&&!(zr&111551)||qr&&!(zr&790504))return!1;var xi=De.charCodeAt(0);return ua&&(xi<65||xi>90)?!1:Fr?!0:hr(De,xn)},function(De,zr,xi,et){if(!(Fr&&!e.some(De,function(jr){return Fr.source===e.stripQuotes(jr.moduleSymbol.name)}))){var je=e.find(De,ao);if(!!je){var ti=co.tryResolve(De,xi)||{},mt=ti.exportInfo,Zt=mt===void 0?je:mt,ln=ti.moduleSpecifier,Ba=Zt.exportKind===1,Oo=Ba&&e.getLocalSymbolForExportDefault(Zt.symbol)||Zt.symbol;Ms(Oo,{kind:ln?32:4,moduleSpecifier:ln,symbolName:zr,exportMapKey:et,exportName:Zt.exportKind===2?"export=":Zt.symbol.name,fileName:Zt.moduleFileName,isDefaultExport:Ba,moduleSymbol:Zt.moduleSymbol,isFromPackageJson:Zt.isFromPackageJson})}}}),Ct=co.resolutionLimitExceeded()});function ao(co){var De=e.tryCast(co.moduleSymbol.valueDeclaration,e.isSourceFile);if(!De){var zr=e.stripQuotes(co.moduleSymbol.name);return e.JsTyping.nodeCoreModules.has(zr)&&e.startsWith(zr,"node:")!==e.shouldUseUriStyleNodeCoreModules(xe,Me)?!1:Mn?Mn.allowsImportingAmbientModule(co.moduleSymbol,bn(co.isFromPackageJson)):!0}return e.isImportableFile(co.isFromPackageJson?Pa:Me,xe,De,Oe,Mn,bn(co.isFromPackageJson),yn)}}function Ms(Mi,$t){var ga=e.getSymbolId(Mi);Xa[ga]!==15&&(ta[tt.length]=$t,Xa[ga]=Hi?11:16,tt.push(Mi))}function xr(Mi,$t,ga){for(var xn=Mi;xn&&!e.positionBelongsToNode(xn,$t,ga);)xn=xn.parent;return xn}function bi(Mi){var $t=e.timestamp(),ga=Ka(Mi)||Nt(Mi)||Ta(Mi)||ut(Mi)||e.isBigIntLiteral(Mi);return v("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-$t)),ga}function ut(Mi){if(Mi.kind===11)return!0;if(Mi.kind===31&&Mi.parent){if(Yi===Mi.parent&&(Yi.kind===279||Yi.kind===278))return!1;if(Mi.parent.kind===279)return Yi.parent.kind!==279;if(Mi.parent.kind===280||Mi.parent.kind===278)return!!Mi.parent.parent&&Mi.parent.parent.kind===277}return!1}function Ht(){if(ri){var Mi=ri.parent.kind,$t=Xe(ri);switch($t){case 27:return Mi===207||Mi===170||Mi===208||Mi===203||Mi===220||Mi===178||Mi===204;case 20:return Mi===207||Mi===170||Mi===208||Mi===211||Mi===190;case 22:return Mi===203||Mi===175||Mi===161;case 141:case 142:case 100:return!0;case 24:return Mi===260;case 18:return Mi===256||Mi===204;case 63:return Mi===253||Mi===220;case 15:return Mi===222;case 16:return Mi===232;case 131:return Mi===168||Mi===295;case 41:return Mi===168}if(Ce($t))return!0}return!1}function Ka(Mi){return(e.isRegularExpressionLiteral(Mi)||e.isStringTextContainingNode(Mi))&&(e.rangeContainsPositionExclusive(e.createTextRangeFromSpan(e.createTextSpanFromNode(Mi)),Je)||Je===Mi.end&&(!!Mi.isUnterminated||e.isRegularExpressionLiteral(Mi)))}function an(){var Mi=Kr(ri);if(!Mi)return 0;var $t=e.isIntersectionTypeNode(Mi.parent)?Mi.parent:void 0,ga=$t||Mi,xn=ei(ga,We);if(!xn)return 0;var yn=We.getTypeFromTypeNode(ga),An=be(xn,We),Pa=be(yn,We),Mn=new e.Set;return Pa.forEach(function(ao){return Mn.add(ao.escapedName)}),tt=e.concatenate(tt,e.filter(An,function(ao){return!Mn.has(ao.escapedName)})),wi=0,gt=!0,1}function Ke(){var Mi=nr(ri);if(!Mi)return 0;wi=0;var $t,ga;if(Mi.kind===204){var xn=aa(Mi,We);if(xn===void 0)return Mi.flags&16777216?2:(Qr=!0,0);var yn=We.getContextualType(Mi,4),An=(yn||xn).getStringIndexType(),Pa=(yn||xn).getNumberIndexType();if(gt=!!An||!!Pa,$t=Jr(xn,yn,Mi,We),ga=Mi.properties,$t.length===0&&!Pa)return Qr=!0,0}else{e.Debug.assert(Mi.kind===200),gt=!1;var Mn=e.getRootDeclaration(Mi.parent);if(!e.isVariableLike(Mn))return e.Debug.fail("Root declaration is not variable-like.");var ao=e.hasInitializer(Mn)||e.hasType(Mn)||Mn.parent.parent.kind===243;if(!ao&&Mn.kind===163&&(e.isExpression(Mn.parent)?ao=!!We.getContextualType(Mn.parent):(Mn.parent.kind===168||Mn.parent.kind===172)&&(ao=e.isExpression(Mn.parent.parent)&&!!We.getContextualType(Mn.parent.parent))),ao){var co=We.getTypeAtLocation(Mi);if(!co)return 2;$t=We.getPropertiesOfType(co).filter(function(De){return We.isPropertyAccessible(Mi,!1,!1,co,De)}),ga=Mi.elements}}return $t&&$t.length>0&&(tt=e.concatenate(tt,so($t,e.Debug.checkDefined(ga)))),Ho(),1}function h(){if(!ri)return 0;var Mi=ri.kind===18||ri.kind===27?e.tryCast(ri.parent,e.isNamedImportsOrExports):e.isTypeKeywordTokenOrIdentifier(ri)?e.tryCast(ri.parent.parent,e.isNamedImportsOrExports):void 0;if(!Mi)return 0;e.isTypeKeywordTokenOrIdentifier(ri)||(yt=8);var $t=(Mi.kind===268?Mi.parent.parent:Mi.parent).moduleSpecifier;if(!$t)return gt=!0,Mi.kind===268?2:0;var ga=We.getSymbolAtLocation($t);if(!ga)return gt=!0,2;wi=3,gt=!1;var xn=We.getExportsAndPropertiesOfModule(ga),yn=new e.Set(Mi.elements.filter(function(Pa){return!Hs(Pa)}).map(function(Pa){return(Pa.propertyName||Pa.name).escapedText})),An=xn.filter(function(Pa){return Pa.escapedName!=="default"&&!yn.has(Pa.escapedName)});return tt=e.concatenate(tt,An),An.length||(yt=0),1}function Ee(){var Mi,$t=ri&&(ri.kind===18||ri.kind===27)?e.tryCast(ri.parent,e.isNamedExports):void 0;if(!$t)return 0;var ga=e.findAncestor($t,e.or(e.isSourceFile,e.isModuleDeclaration));return wi=5,gt=!1,(Mi=ga.locals)===null||Mi===void 0||Mi.forEach(function(xn,yn){var An,Pa;tt.push(xn),!((Pa=(An=ga.symbol)===null||An===void 0?void 0:An.exports)===null||Pa===void 0)&&Pa.has(yn)&&(Xa[e.getSymbolId(xn)]=12)}),1}function Re(){var Mi=or(xe,ri,Yi,Je);if(!Mi)return 0;if(wi=3,gt=!0,yt=ri.kind===41?0:e.isClassLike(Mi)?2:3,!e.isClassLike(Mi))return 1;var $t=ri.kind===26?ri.parent.parent:ri.parent,ga=e.isClassElement($t)?e.getEffectiveModifierFlags($t):0;if(ri.kind===79&&!Hs(ri))switch(ri.getText()){case"private":ga=ga|8;break;case"static":ga=ga|32;break;case"override":ga=ga|16384;break}if(e.isClassStaticBlockDeclaration($t)&&(ga|=32),!(ga&8)){var xn=e.isClassLike(Mi)&&ga&16384?e.singleElementArray(e.getEffectiveBaseTypeNode(Mi)):e.getAllSuperTypeNodes(Mi),yn=e.flatMap(xn,function(An){var Pa=We.getTypeAtLocation(An);return ga&32?(Pa==null?void 0:Pa.symbol)&&We.getPropertiesOfType(We.getTypeOfSymbolAtLocation(Pa.symbol,Mi)):Pa&&We.getPropertiesOfType(Pa)});tt=e.concatenate(tt,Os(yn,Mi.members,ga))}return 1}function nr(Mi){if(Mi){var $t=Mi.parent;switch(Mi.kind){case 18:case 27:if(e.isObjectLiteralExpression($t)||e.isObjectBindingPattern($t))return $t;break;case 41:return e.isMethodDeclaration($t)?e.tryCast($t.parent,e.isObjectLiteralExpression):void 0;case 79:return Mi.text==="async"&&e.isShorthandPropertyAssignment(Mi.parent)?Mi.parent.parent:void 0}}}function Gr(Mi){return!!Mi.parent&&e.isParameter(Mi.parent)&&e.isConstructorDeclaration(Mi.parent.parent)&&(e.isParameterPropertyModifier(Mi.kind)||e.isDeclarationName(Mi))}function _i(Mi){if(Mi){var $t=Mi.parent;switch(Mi.kind){case 20:case 27:return e.isConstructorDeclaration(Mi.parent)?Mi.parent:void 0;default:if(Gr(Mi))return $t.parent}}}function Ei(Mi){if(Mi){var $t,ga=e.findAncestor(Mi.parent,function(xn){return e.isClassLike(xn)?"quit":e.isFunctionLikeDeclaration(xn)&&$t===xn.body?!0:($t=xn,!1)});return ga&&ga}}function Ki(Mi){if(Mi){var $t=Mi.parent;switch(Mi.kind){case 31:case 30:case 43:case 79:case 205:case 285:case 284:case 286:if($t&&($t.kind===278||$t.kind===279)){if(Mi.kind===31){var ga=e.findPrecedingToken(Mi.pos,xe,void 0);if(!$t.typeArguments||ga&&ga.kind===43)break}return $t}else if($t.kind===284)return $t.parent.parent;break;case 10:if($t&&($t.kind===284||$t.kind===286))return $t.parent.parent;break;case 19:if($t&&$t.kind===287&&$t.parent&&$t.parent.kind===284)return $t.parent.parent.parent;if($t&&$t.kind===286)return $t.parent.parent;break}}}function Nt(Mi){var $t=Mi.parent,ga=$t.kind;switch(Mi.kind){case 27:return ga===253||In(Mi)||ga===236||ga===259||Fa(ga)||ga===257||ga===201||ga===258||e.isClassLike($t)&&!!$t.typeParameters&&$t.typeParameters.end>=Mi.pos;case 24:return ga===201;case 58:return ga===202;case 22:return ga===201;case 20:return ga===291||Fa(ga);case 18:return ga===259;case 29:return ga===256||ga===225||ga===257||ga===258||e.isFunctionLikeKind(ga);case 124:return ga===166&&!e.isClassLike($t.parent);case 25:return ga===163||!!$t.parent&&$t.parent.kind===201;case 123:case 121:case 122:return ga===163&&!e.isConstructorDeclaration($t.parent);case 127:return ga===269||ga===274||ga===267;case 136:case 148:return!li(Mi);case 79:if(ga===269&&Mi===$t.name&&Mi.text==="type")return!1;break;case 84:case 92:case 118:case 98:case 113:case 100:case 119:case 85:case 137:return!0;case 151:return ga!==269;case 41:return e.isFunctionLike(Mi.parent)&&!e.isMethodDeclaration(Mi.parent)}if(Ce(Xe(Mi))&&li(Mi)||Gr(Mi)&&(!e.isIdentifier(Mi)||e.isParameterPropertyModifier(Xe(Mi))||Hs(Mi)))return!1;switch(Xe(Mi)){case 126:case 84:case 85:case 135:case 92:case 98:case 118:case 119:case 121:case 122:case 123:case 124:case 113:return!0;case 131:return e.isPropertyDeclaration(Mi.parent)}var xn=e.findAncestor(Mi.parent,e.isClassLike);if(xn&&Mi===zi&&ca(Mi,Je))return!1;var yn=e.getAncestor(Mi.parent,166);if(yn&&Mi!==zi&&e.isClassLike(zi.parent.parent)&&Je<=zi.end){if(ca(Mi,zi.end))return!1;if(Mi.kind!==63&&(e.isInitializedProperty(yn)||e.hasType(yn)))return!0}return e.isDeclarationName(Mi)&&!e.isShorthandPropertyAssignment(Mi.parent)&&!e.isJsxAttribute(Mi.parent)&&!(e.isClassLike(Mi.parent)&&(Mi!==zi||Je>zi.end))}function ca(Mi,$t){return Mi.kind!==63&&(Mi.kind===26||!e.positionsAreOnSameLine(Mi.end,$t,xe))}function Fa(Mi){return e.isFunctionLikeKind(Mi)&&Mi!==170}function Ta(Mi){if(Mi.kind===8){var $t=Mi.getFullText();return $t.charAt($t.length-1)==="."}return!1}function In(Mi){return Mi.parent.kind===254&&!e.isPossiblyTypeArgumentPosition(Mi,xe,We)}function so(Mi,$t){if($t.length===0)return Mi;for(var ga=new e.Set,xn=new e.Set,yn=0,An=$t;yn<An.length;yn++){var Pa=An[yn];if(!(Pa.kind!==294&&Pa.kind!==295&&Pa.kind!==202&&Pa.kind!==168&&Pa.kind!==171&&Pa.kind!==172&&Pa.kind!==296)&&!Hs(Pa)){var Mn=void 0;if(e.isSpreadAssignment(Pa))as(Pa,ga);else if(e.isBindingElement(Pa)&&Pa.propertyName)Pa.propertyName.kind===79&&(Mn=Pa.propertyName.escapedText);else{var ao=e.getNameOfDeclaration(Pa);Mn=ao&&e.isPropertyNameLiteral(ao)?e.getEscapedTextOfIdentifierOrLiteral(ao):void 0}Mn!==void 0&&xn.add(Mn)}}var co=Mi.filter(function(De){return!xn.has(De.escapedName)});return Ds(ga,co),co}function as(Mi,$t){var ga=Mi.expression,xn=We.getSymbolAtLocation(ga),yn=xn&&We.getTypeOfSymbolAtLocation(xn,ga),An=yn&&yn.properties;An&&An.forEach(function(Pa){$t.add(Pa.name)})}function Ho(){tt.forEach(function(Mi){var $t;if(Mi.flags&16777216){var ga=e.getSymbolId(Mi);Xa[ga]=($t=Xa[ga])!==null&&$t!==void 0?$t:12}})}function Ds(Mi,$t){if(Mi.size!==0)for(var ga=0,xn=$t;ga<xn.length;ga++){var yn=xn[ga];Mi.has(yn.name)&&(Xa[e.getSymbolId(yn)]=13)}}function Os(Mi,$t,ga){for(var xn=new e.Set,yn=0,An=$t;yn<An.length;yn++){var Pa=An[yn];if(!(Pa.kind!==166&&Pa.kind!==168&&Pa.kind!==171&&Pa.kind!==172)&&!Hs(Pa)&&!e.hasEffectiveModifier(Pa,8)&&e.isStatic(Pa)===!!(ga&32)){var Mn=e.getPropertyNameForPropertyNameNode(Pa.name);Mn&&xn.add(Mn)}}return Mi.filter(function(ao){return!xn.has(ao.escapedName)&&!!ao.declarations&&!(e.getDeclarationModifierFlagsFromSymbol(ao)&8)&&!(ao.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(ao.valueDeclaration))})}function mc(Mi,$t){for(var ga=new e.Set,xn=new e.Set,yn=0,An=$t;yn<An.length;yn++){var Pa=An[yn];Hs(Pa)||(Pa.kind===284?ga.add(Pa.name.escapedText):e.isJsxSpreadAttribute(Pa)&&as(Pa,xn))}var Mn=Mi.filter(function(ao){return!ga.has(ao.escapedName)});return Ds(xn,Mn),Mn}function Hs(Mi){return Mi.getStart(xe)<=Je&&Je<=Mi.getEnd()}}function ur(Me,v){var xe=e.findPrecedingToken(Me,v);if(xe&&Me<=xe.end&&(e.isMemberName(xe)||e.isKeyword(xe.kind))){var ze=e.findPrecedingToken(xe.getFullStart(),v,void 0);return{contextToken:ze,previousToken:xe}}return{contextToken:xe,previousToken:xe}}function Ir(Me,v,xe,ze){var Je=v.isPackageJsonImport?ze.getPackageJsonAutoImportProvider():xe,Oe=Je.getTypeChecker(),Fr=v.ambientModuleName?Oe.tryFindAmbientModule(v.ambientModuleName):v.fileName?Oe.getMergedSymbol(e.Debug.checkDefined(Je.getSourceFile(v.fileName)).symbol):void 0;if(!!Fr){var Xr=v.exportName==="export="?Oe.resolveExternalModuleSymbol(Fr):Oe.tryGetMemberInModuleExportsAndProperties(v.exportName,Fr);if(!!Xr){var Or=v.exportName==="default";return Xr=Or&&e.getLocalSymbolForExportDefault(Xr)||Xr,{symbol:Xr,origin:ve(v,Me,Fr)}}}}function dr(Me,v,xe,ze,Je){var Oe=H(xe)?xe.symbolName:Me.name;if(!(Oe===void 0||Me.flags&1536&&e.isSingleOrDoubleQuote(Oe.charCodeAt(0))||e.isKnownSymbol(Me))){var Fr={name:Oe,needsConvertPropertyAccess:!1};if(e.isIdentifierText(Oe,v,Je?1:0)||Me.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(Me.valueDeclaration))return Fr;switch(ze){case 3:return;case 0:return{name:JSON.stringify(Oe),needsConvertPropertyAccess:!1};case 2:case 1:return Oe.charCodeAt(0)===32?void 0:{name:Oe,needsConvertPropertyAccess:!0};case 5:case 4:return Fr;default:e.Debug.assertNever(ze)}}}var Br=[],Tr=e.memoize(function(){for(var Me=[],v=81;v<=159;v++)Me.push({name:e.tokenToString(v),kind:"keyword",kindModifiers:"",sortText:L.GlobalsOrKeywords});return Me});function n(Me,v){if(!v)return Er(Me);var xe=Me+7+1;return Br[xe]||(Br[xe]=Er(Me).filter(function(ze){return!br(e.stringToToken(ze.name))}))}function Er(Me){return Br[Me]||(Br[Me]=Tr().filter(function(v){var xe=e.stringToToken(v.name);switch(Me){case 0:return!1;case 1:return Le(xe)||xe===135||xe===141||xe===151||xe===142||xe===126||e.isTypeKeyword(xe)&&xe!==152;case 5:return Le(xe);case 2:return Ce(xe);case 3:return Pr(xe);case 4:return e.isParameterPropertyModifier(xe);case 6:return e.isTypeKeyword(xe)||xe===85;case 7:return e.isTypeKeyword(xe);case 8:return xe===151;default:return e.Debug.assertNever(Me)}}))}function br(Me){switch(Me){case 126:case 130:case 157:case 133:case 135:case 92:case 156:case 117:case 137:case 118:case 139:case 140:case 141:case 142:case 143:case 146:case 147:case 158:case 121:case 122:case 123:case 144:case 149:case 150:case 151:case 153:case 154:return!0;default:return!1}}function Pr(Me){return Me===144}function Ce(Me){switch(Me){case 126:case 134:case 136:case 148:case 131:case 135:case 158:return!0;default:return e.isClassMemberModifier(Me)}}function Le(Me){return Me===131||Me===132||Me===127||!e.isContextualKeyword(Me)&&!Ce(Me)}function Xe(Me){return e.isIdentifier(Me)?Me.originalKeywordKind||0:Me.kind}function Cr(Me,v){var xe=[];if(Me){var ze=Me.getSourceFile(),Je=Me.parent,Oe=ze.getLineAndCharacterOfPosition(Me.end).line,Fr=ze.getLineAndCharacterOfPosition(v).line;(e.isImportDeclaration(Je)||e.isExportDeclaration(Je)&&Je.moduleSpecifier)&&Me===Je.moduleSpecifier&&Oe===Fr&&xe.push({name:e.tokenToString(129),kind:"keyword",kindModifiers:"",sortText:L.GlobalsOrKeywords})}return xe}function Lr(Me,v){return e.findAncestor(Me,function(xe){return e.isJSDocTag(xe)&&e.rangeContainsPosition(xe,v)?!0:e.isJSDoc(xe)?"quit":!1})}function Jr(Me,v,xe,ze){var Je=v&&v!==Me,Oe=Je&&!(v.flags&3)?ze.getUnionType([Me,v]):Me,Fr=Rr(Oe,xe,ze);return Oe.isClass()&&ci(Fr)?[]:Je?e.filter(Fr,Xr):Fr;function Xr(Or){return e.length(Or.declarations)?e.some(Or.declarations,function(We){return We.parent!==xe}):!0}}O.getPropertiesForObjectExpression=Jr;function Rr(Me,v,xe){return Me.isUnion()?xe.getAllPossiblePropertiesOfTypes(e.filter(Me.types,function(ze){return!(ze.flags&131068||xe.isArrayLikeType(ze)||xe.isTypeInvalidDueToUnionDiscriminant(ze,v)||e.typeHasCallOrConstructSignatures(ze,xe)||ze.isClass()&&ci(ze.getApparentProperties()))})):Me.getApparentProperties()}function ci(Me){return e.some(Me,function(v){return!!(e.getDeclarationModifierFlagsFromSymbol(v)&24)})}function be(Me,v){return Me.isUnion()?e.Debug.checkEachDefined(v.getAllPossiblePropertiesOfTypes(Me.types),"getAllPossiblePropertiesOfTypes() should all be defined"):e.Debug.checkEachDefined(Me.getApparentProperties(),"getApparentProperties() should all be defined")}function or(Me,v,xe,ze){switch(xe.kind){case 346:return e.tryCast(xe.parent,e.isObjectTypeDeclaration);case 1:var Je=e.tryCast(e.lastOrUndefined(e.cast(xe.parent,e.isSourceFile).statements),e.isObjectTypeDeclaration);if(Je&&!e.findChildOfKind(Je,19,Me))return Je;break;case 79:{if(e.isPropertyDeclaration(xe.parent)&&xe.parent.initializer===xe)return;if(li(xe))return e.findAncestor(xe,e.isObjectTypeDeclaration)}}if(!!v){if(xe.kind===134||e.isIdentifier(v)&&e.isPropertyDeclaration(v.parent)&&e.isClassLike(xe))return e.findAncestor(v,e.isClassLike);switch(v.kind){case 63:return;case 26:case 19:return li(xe)&&xe.parent.name===xe?xe.parent.parent:e.tryCast(xe,e.isObjectTypeDeclaration);case 18:case 27:return e.tryCast(v.parent,e.isObjectTypeDeclaration);default:if(!li(v))return e.getLineAndCharacterOfPosition(Me,v.getEnd()).line!==e.getLineAndCharacterOfPosition(Me,ze).line&&e.isObjectTypeDeclaration(xe)?xe:void 0;var Oe=e.isClassLike(v.parent.parent)?Ce:Pr;return Oe(v.kind)||v.kind===41||e.isIdentifier(v)&&Oe(e.stringToToken(v.text))?v.parent.parent:void 0}}}function Kr(Me){if(!!Me){var v=Me.parent;switch(Me.kind){case 18:if(e.isTypeLiteralNode(v))return v;break;case 26:case 27:case 79:if(v.kind===165&&e.isTypeLiteralNode(v.parent))return v.parent;break}}}function ei(Me,v){if(!!Me){if(e.isTypeNode(Me)&&e.isTypeReferenceType(Me.parent))return v.getTypeArgumentConstraint(Me);var xe=ei(Me.parent,v);if(!!xe)switch(Me.kind){case 165:return v.getTypeOfPropertyOfContextualType(xe,Me.symbol.escapedName);case 187:case 181:case 186:return xe}}}function li(Me){return Me.parent&&e.isClassOrTypeElement(Me.parent)&&e.isObjectTypeDeclaration(Me.parent.parent)}function Si(Me,v,xe,ze){switch(v){case".":case"@":return!0;case'"':case"'":case"`":return!!xe&&e.isStringLiteralOrTemplate(xe)&&ze===xe.getStart(Me)+1;case"#":return!!xe&&e.isPrivateIdentifier(xe)&&!!e.getContainingClass(xe);case"<":return!!xe&&xe.kind===29&&(!e.isBinaryExpression(xe.parent)||qi(xe.parent));case"/":return!!xe&&(e.isStringLiteralLike(xe)?!!e.tryGetImportFromModuleSpecifier(xe):xe.kind===43&&e.isJsxClosingElement(xe.parent));case" ":return!!xe&&e.isImportKeyword(xe)&&xe.parent.kind===303;default:return e.Debug.assertNever(v)}}function qi(Me){var v=Me.left;return e.nodeIsMissing(v)}function ft(Me,v,xe){var ze=xe.resolveName("self",void 0,111551,!1);if(ze&&xe.getTypeOfSymbolAtLocation(ze,v)===Me)return!0;var Je=xe.resolveName("global",void 0,111551,!1);if(Je&&xe.getTypeOfSymbolAtLocation(Je,v)===Me)return!0;var Oe=xe.resolveName("globalThis",void 0,111551,!1);return!!(Oe&&xe.getTypeOfSymbolAtLocation(Oe,v)===Me)}function bt(Me){return!!(Me.valueDeclaration&&e.getEffectiveModifierFlags(Me.valueDeclaration)&32&&e.isClassLike(Me.valueDeclaration.parent))}function aa(Me,v){var xe=v.getContextualType(Me);if(xe)return xe;if(e.isBinaryExpression(Me.parent)&&Me.parent.operatorToken.kind===63&&Me===Me.parent.left)return v.getTypeAtLocation(Me.parent)}function sr(Me){var v,xe=!1,ze=Je();return{isKeywordOnlyCompletion:xe,keywordCompletion:v,isNewIdentifierLocation:!!(ze||v===151),replacementNode:ze&&e.rangeIsOnSingleLine(ze,ze.getSourceFile())?ze:void 0};function Je(){var Oe=Me.parent;if(e.isImportEqualsDeclaration(Oe))return v=Me.kind===151?void 0:151,X(Oe.moduleReference)?Oe:void 0;if(Ji(Oe,Me)&&di(Oe.parent))return Oe;if(e.isNamedImports(Oe)||e.isNamespaceImport(Oe)){if(!Oe.parent.isTypeOnly&&(Me.kind===18||Me.kind===100||Me.kind===27)&&(v=151),di(Oe))if(Me.kind===19||Me.kind===79)xe=!0,v=155;else return Oe.parent.parent;return}if(e.isImportKeyword(Me)&&e.isSourceFile(Oe))return v=151,Me;if(e.isImportKeyword(Me)&&e.isImportDeclaration(Oe))return v=151,X(Oe.moduleSpecifier)?Oe:void 0}}function Ji(Me,v){return e.isImportSpecifier(Me)&&(Me.isTypeOnly||v===Me.name&&e.isTypeKeywordTokenOrIdentifier(v))}function di(Me){return X(Me.parent.parent.moduleSpecifier)&&(e.isNamespaceImport(Me)||Me.elements.length<2)&&!Me.parent.name}function X(Me){var v;return e.nodeIsMissing(Me)?!0:!(!((v=e.tryCast(e.isExternalModuleReference(Me)?Me.expression:Me,e.isStringLiteralLike))===null||v===void 0)&&v.text)}function Ye(Me){var v=e.findAncestor(Me,function(xe){return e.isFunctionBlock(xe)||Be(xe)||e.isBindingPattern(xe)?"quit":e.isVariableDeclaration(xe)});return v}function Be(Me){return Me.parent&&e.isArrowFunction(Me.parent)&&Me.parent.body===Me}function Qe(Me,v,xe){return xe===void 0&&(xe=new e.Map),ze(Me)||ze(e.skipAlias(Me.exportSymbol||Me,v));function ze(Je){return!!(Je.flags&788968)||v.isUnknownSymbol(Je)||!!(Je.flags&1536)&&e.addToSeen(xe,e.getSymbolId(Je))&&v.getExportsOfModule(Je).some(function(Oe){return Qe(Oe,v,xe)})}}function _r(Me,v){var xe=e.skipAlias(Me,v).declarations;return!!e.length(xe)&&e.every(xe,e.isDeprecatedDeclaration)}function hr(Me,v){if(v.length===0)return!0;for(var xe=!1,ze,Je=0,Oe=Me.length,Fr=0;Fr<Oe;Fr++){var Xr=Me.charCodeAt(Fr),Or=v.charCodeAt(Je);if((Xr===Or||Xr===Dr(Or))&&(xe||(xe=ze===void 0||97<=ze&&ze<=122&&65<=Xr&&Xr<=90||ze===95&&Xr!==95),xe&&Je++,Je===v.length))return!0;ze=Xr}return!1}function Dr(Me){return 97<=Me&&Me<=122?Me-32:Me}})(a=e.Completions||(e.Completions={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(ee,A,f,P,D){var l=e.getTouchingPropertyName(f,P);if(l.parent&&(e.isJsxOpeningElement(l.parent)&&l.parent.tagName===l||e.isJsxClosingElement(l.parent))){var _=l.parent.parent,J=_.openingElement,w=_.closingElement,j=[J,w].map(function(U){var z=U.tagName;return W(z,f)});return[{fileName:f.fileName,highlightSpans:j}]}return N(P,l,ee,A,D)||Q(l,f)}O.getDocumentHighlights=L;function W(ee,A){return{fileName:A.fileName,textSpan:e.createTextSpanFromNode(ee,A),kind:"none"}}function N(ee,A,f,P,D){var l=new e.Set(D.map(function(j){return j.fileName})),_=e.FindAllReferences.getReferenceEntriesForNode(ee,A,f,D,P,void 0,l);if(!!_){var J=e.arrayToMultiMap(_.map(e.FindAllReferences.toHighlightSpan),function(j){return j.fileName},function(j){return j.span}),w=e.createGetCanonicalFileName(f.useCaseSensitiveFileNames());return e.mapDefined(e.arrayFrom(J.entries()),function(j){var U=j[0],z=j[1];if(!l.has(U)){if(!f.redirectTargetsMap.has(e.toPath(U,f.getCurrentDirectory(),w)))return;var y=f.getSourceFile(U),oe=e.find(D,function(ve){return!!ve.redirectInfo&&ve.redirectInfo.redirectTarget===y});U=oe.fileName,e.Debug.assert(l.has(U))}return{fileName:U,highlightSpans:z}})}}function Q(ee,A){var f=pe(ee,A);return f&&[{fileName:A.fileName,highlightSpans:f}]}function pe(ee,A){switch(ee.kind){case 99:case 91:return e.isIfStatement(ee.parent)?k(ee.parent,A):void 0;case 105:return D(ee.parent,e.isReturnStatement,ie);case 109:return D(ee.parent,e.isThrowStatement,x);case 111:case 83:case 96:var f=ee.kind===83?ee.parent.parent:ee.parent;return D(f,e.isTryStatement,M);case 107:return D(ee.parent,e.isSwitchStatement,re);case 82:case 88:return e.isDefaultClause(ee.parent)||e.isCaseClause(ee.parent)?D(ee.parent.parent.parent,e.isSwitchStatement,re):void 0;case 81:case 86:return D(ee.parent,e.isBreakOrContinueStatement,B);case 97:case 115:case 90:return D(ee.parent,function(_){return e.isIterationStatement(_,!0)},ue);case 134:return P(e.isConstructorDeclaration,[134]);case 136:case 148:return P(e.isAccessor,[136,148]);case 132:return D(ee.parent,e.isAwaitExpression,_e);case 131:return l(_e(ee));case 125:return l(Y(ee));default:return e.isModifierKind(ee.kind)&&(e.isDeclaration(ee.parent)||e.isVariableStatement(ee.parent))?l(C(ee.kind,ee.parent)):void 0}function P(_,J){return D(ee.parent,_,function(w){return e.mapDefined(w.symbol.declarations,function(j){return _(j)?e.find(j.getChildren(A),function(U){return e.contains(J,U.kind)}):void 0})})}function D(_,J,w){return J(_)?l(w(_,A)):void 0}function l(_){return _&&_.map(function(J){return W(J,A)})}}function F(ee){return e.isThrowStatement(ee)?[ee]:e.isTryStatement(ee)?e.concatenate(ee.catchClause?F(ee.catchClause):ee.tryBlock&&F(ee.tryBlock),ee.finallyBlock&&F(ee.finallyBlock)):e.isFunctionLike(ee)?void 0:H(ee,F)}function g(ee){for(var A=ee;A.parent;){var f=A.parent;if(e.isFunctionBlock(f)||f.kind===303)return f;if(e.isTryStatement(f)&&f.tryBlock===A&&f.catchClause)return A;A=f}}function S(ee){return e.isBreakOrContinueStatement(ee)?[ee]:e.isFunctionLike(ee)?void 0:H(ee,S)}function H(ee,A){var f=[];return ee.forEachChild(function(P){var D=A(P);D!==void 0&&f.push.apply(f,e.toArray(D))}),f}function se(ee,A){var f=p(A);return!!f&&f===ee}function p(ee){return e.findAncestor(ee,function(A){switch(A.kind){case 248:if(ee.kind===244)return!1;case 241:case 242:case 243:case 240:case 239:return!ee.label||ne(A,ee.label.escapedText);default:return e.isFunctionLike(A)&&"quit"}})}function C(ee,A){return e.mapDefined(G(A,e.modifierToFlag(ee)),function(f){return e.findModifier(f,ee)})}function G(ee,A){var f=ee.parent;switch(f.kind){case 261:case 303:case 234:case 288:case 289:return A&128&&e.isClassDeclaration(ee)?qe(qe([],ee.members,!0),[ee],!1):f.statements;case 170:case 168:case 255:return qe(qe([],f.parameters,!0),e.isClassLike(f.parent)?f.parent.members:[],!0);case 256:case 225:case 257:case 181:var P=f.members;if(A&92){var D=e.find(f.members,e.isConstructorDeclaration);if(D)return qe(qe([],P,!0),D.parameters,!0)}else if(A&128)return qe(qe([],P,!0),[f],!1);return P;case 204:return;default:e.Debug.assertNever(f,"Invalid container kind.")}}function E(ee,A){for(var f=[],P=2;P<arguments.length;P++)f[P-2]=arguments[P];return A&&e.contains(f,A.kind)?(ee.push(A),!0):!1}function ue(ee){var A=[];if(E(A,ee.getFirstToken(),97,115,90)&&ee.kind===239)for(var f=ee.getChildren(),P=f.length-1;P>=0&&!E(A,f[P],115);P--);return e.forEach(S(ee.statement),function(D){se(ee,D)&&E(A,D.getFirstToken(),81,86)}),A}function B(ee){var A=p(ee);if(A)switch(A.kind){case 241:case 242:case 243:case 239:case 240:return ue(A);case 248:return re(A)}}function re(ee){var A=[];return E(A,ee.getFirstToken(),107),e.forEach(ee.caseBlock.clauses,function(f){E(A,f.getFirstToken(),82,88),e.forEach(S(f),function(P){se(ee,P)&&E(A,P.getFirstToken(),81)})}),A}function M(ee,A){var f=[];if(E(f,ee.getFirstToken(),111),ee.catchClause&&E(f,ee.catchClause.getFirstToken(),83),ee.finallyBlock){var P=e.findChildOfKind(ee,96,A);E(f,P,96)}return f}function x(ee,A){var f=g(ee);if(!!f){var P=[];return e.forEach(F(f),function(D){P.push(e.findChildOfKind(D,109,A))}),e.isFunctionBlock(f)&&e.forEachReturnStatement(f,function(D){P.push(e.findChildOfKind(D,105,A))}),P}}function ie(ee,A){var f=e.getContainingFunction(ee);if(!!f){var P=[];return e.forEachReturnStatement(e.cast(f.body,e.isBlock),function(D){P.push(e.findChildOfKind(D,105,A))}),e.forEach(F(f.body),function(D){P.push(e.findChildOfKind(D,109,A))}),P}}function _e(ee){var A=e.getContainingFunction(ee);if(!!A){var f=[];return A.modifiers&&A.modifiers.forEach(function(P){E(f,P,131)}),e.forEachChild(A,function(P){Z(P,function(D){e.isAwaitExpression(D)&&E(f,D.getFirstToken(),132)})}),f}}function Y(ee){var A=e.getContainingFunction(ee);if(!!A){var f=[];return e.forEachChild(A,function(P){Z(P,function(D){e.isYieldExpression(D)&&E(f,D.getFirstToken(),125)})}),f}}function Z(ee,A){A(ee),!e.isFunctionLike(ee)&&!e.isClassLike(ee)&&!e.isInterfaceDeclaration(ee)&&!e.isModuleDeclaration(ee)&&!e.isTypeAliasDeclaration(ee)&&!e.isTypeNode(ee)&&e.forEachChild(ee,function(f){return Z(f,A)})}function k(ee,A){for(var f=I(ee,A),P=[],D=0;D<f.length;D++){if(f[D].kind===91&&D<f.length-1){for(var l=f[D],_=f[D+1],J=!0,w=_.getStart(A)-1;w>=l.end;w--)if(!e.isWhiteSpaceSingleLine(A.text.charCodeAt(w))){J=!1;break}if(J){P.push({fileName:A.fileName,textSpan:e.createTextSpanFromBounds(l.getStart(),_.end),kind:"reference"}),D++;continue}}P.push(W(f[D],A))}return P}function I(ee,A){for(var f=[];e.isIfStatement(ee.parent)&&ee.parent.elseStatement===ee;)ee=ee.parent;for(;;){var P=ee.getChildren(A);E(f,P[0],99);for(var D=P.length-1;D>=0&&!E(f,P[D],91);D--);if(!ee.elseStatement||!e.isIfStatement(ee.elseStatement))break;ee=ee.elseStatement}return f}function ne(ee,A){return!!e.findAncestor(ee.parent,function(f){return e.isLabeledStatement(f)?f.label.escapedText===A:"quit"})}})(a=e.DocumentHighlights||(e.DocumentHighlights={}))})(Pe||(Pe={}));var Pe;(function(e){function a(N){return!!N.sourceFile}function O(N,Q){return L(N,Q)}e.createDocumentRegistry=O;function L(N,Q,pe){Q===void 0&&(Q="");var F=new e.Map,g=e.createGetCanonicalFileName(!!N);function S(){var M=e.arrayFrom(F.keys()).filter(function(x){return x&&x.charAt(0)==="_"}).map(function(x){var ie=F.get(x),_e=[];return ie.forEach(function(Y,Z){a(Y)?_e.push({name:Z,scriptKind:Y.sourceFile.scriptKind,refCount:Y.languageServiceRefCount}):Y.forEach(function(k,I){return _e.push({name:Z,scriptKind:I,refCount:k.languageServiceRefCount})})}),_e.sort(function(Y,Z){return Z.refCount-Y.refCount}),{bucket:x,sourceFiles:_e}});return JSON.stringify(M,void 0,2)}function H(M,x,ie,_e,Y){var Z=e.toPath(M,Q,g),k=W(x);return se(M,Z,x,k,ie,_e,Y)}function se(M,x,ie,_e,Y,Z,k){return E(M,x,ie,_e,Y,Z,!0,k)}function p(M,x,ie,_e,Y){var Z=e.toPath(M,Q,g),k=W(x);return C(M,Z,x,k,ie,_e,Y)}function C(M,x,ie,_e,Y,Z,k){return E(M,x,ie,_e,Y,Z,!1,k)}function G(M,x){var ie=a(M)?M:M.get(e.Debug.checkDefined(x,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return e.Debug.assert(x===void 0||!ie||ie.sourceFile.scriptKind===x,"Script kind should match provided ScriptKind:".concat(x," and sourceFile.scriptKind: ").concat(ie==null?void 0:ie.sourceFile.scriptKind,", !entry: ").concat(!ie)),ie}function E(M,x,ie,_e,Y,Z,k,I){I=e.ensureScriptKind(M,I);var ne=I===6?100:e.getEmitScriptTarget(ie),ee=F.size,A=e.getOrUpdate(F,_e,function(){return new e.Map});if(e.tracing){F.size>ee&&e.tracing.instant("session","createdDocumentRegistryBucket",{configFilePath:ie.configFilePath,key:_e});var f=!e.fileExtensionIs(x,".d.ts")&&e.forEachEntry(F,function(J,w){return w!==_e&&J.has(x)&&w});f&&e.tracing.instant("session","documentRegistryBucketOverlap",{path:x,key1:f,key2:_e})}var P=A.get(x),D=P&&G(P,I);if(!D&&pe){var l=pe.getDocument(_e,x);l&&(e.Debug.assert(k),D={sourceFile:l,languageServiceRefCount:0},_())}if(D)D.sourceFile.version!==Z&&(D.sourceFile=e.updateLanguageServiceSourceFile(D.sourceFile,Y,Z,Y.getChangeRange(D.sourceFile.scriptSnapshot)),pe&&pe.setDocument(_e,x,D.sourceFile)),k&&D.languageServiceRefCount++;else{var l=e.createLanguageServiceSourceFile(M,Y,ne,Z,!1,I);pe&&pe.setDocument(_e,x,l),D={sourceFile:l,languageServiceRefCount:1},_()}return e.Debug.assert(D.languageServiceRefCount!==0),D.sourceFile;function _(){if(!P)A.set(x,D);else if(a(P)){var J=new e.Map;J.set(P.sourceFile.scriptKind,P),J.set(I,D),A.set(x,J)}else P.set(I,D)}}function ue(M,x,ie){var _e=e.toPath(M,Q,g),Y=W(x);return B(_e,Y,ie)}function B(M,x,ie){var _e=e.Debug.checkDefined(F.get(x)),Y=_e.get(M),Z=G(Y,ie);Z.languageServiceRefCount--,e.Debug.assert(Z.languageServiceRefCount>=0),Z.languageServiceRefCount===0&&(a(Y)?_e.delete(M):(Y.delete(ie),Y.size===1&&_e.set(M,e.firstDefinedIterator(Y.values(),e.identity))))}function re(M,x){return e.arrayFrom(F.entries(),function(ie){var _e=ie[0],Y=ie[1],Z=Y.get(M),k=Z&&G(Z,x);return[_e,k&&k.languageServiceRefCount]})}return{acquireDocument:H,acquireDocumentWithKey:se,updateDocument:p,updateDocumentWithKey:C,releaseDocument:ue,releaseDocumentWithKey:B,getLanguageServiceRefCounts:re,reportStats:S,getKeyForCompilationSettings:W}}e.createDocumentRegistryInternal=L;function W(N){return e.sourceFileAffectingCompilerOptions.map(function(Q){return e.getCompilerOptionValue(N,Q)}).join("|")}})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(_e,Y,Z,k){var I=S(_e,Z,k);return function(ne,ee,A){var f=Q(_e,Y,I,ee,Z,k),P=f.directImports,D=f.indirectUsers;return Ve({indirectUsers:D},pe(P,ne,ee.exportKind,Z,A))}}O.createImportTracker=L;var W;(function(_e){_e[_e.Named=0]="Named",_e[_e.Default=1]="Default",_e[_e.ExportEquals=2]="ExportEquals"})(W=O.ExportKind||(O.ExportKind={}));var N;(function(_e){_e[_e.Import=0]="Import",_e[_e.Export=1]="Export"})(N=O.ImportExport||(O.ImportExport={}));function Q(_e,Y,Z,k,I,ne){var ee=k.exportingModuleSymbol,A=k.exportKind,f=e.nodeSeenTracker(),P=e.nodeSeenTracker(),D=[],l=!!ee.globalExports,_=l?void 0:[];return w(ee),{directImports:D,indirectUsers:J()};function J(){if(l)return _e;if(ee.declarations)for(var ve=0,ce=ee.declarations;ve<ce.length;ve++){var m=ce[ve];e.isExternalModuleAugmentation(m)&&Y.has(m.getSourceFile().fileName)&&y(m)}return _.map(e.getSourceFileOfNode)}function w(ve){var ce=oe(ve);if(ce)for(var m=0,de=ce;m<de.length;m++){var ae=de[m];if(!!f(ae))switch(ne&&ne.throwIfCancellationRequested(),ae.kind){case 207:if(e.isImportCall(ae)){j(ae);break}if(!l){var V=ae.parent;if(A===2&&V.kind===253){var le=V.name;if(le.kind===79){D.push(le);break}}}break;case 79:break;case 264:z(ae,ae.name,e.hasSyntacticModifier(ae,1),!1);break;case 265:D.push(ae);var ke=ae.importClause&&ae.importClause.namedBindings;ke&&ke.kind===267?z(ae,ke.name,!1,!0):!l&&e.isDefaultImport(ae)&&y(M(ae));break;case 271:ae.exportClause?ae.exportClause.kind===273?y(M(ae),!0):D.push(ae):w(re(ae,I));break;case 199:ae.isTypeOf&&!ae.qualifier&&U(ae)&&y(ae.getSourceFile(),!0),D.push(ae);break;default:e.Debug.failBadSyntaxKind(ae,"Unexpected import kind.")}}}function j(ve){var ce=e.findAncestor(ve,x)||ve.getSourceFile();y(ce,!!U(ve,!0))}function U(ve,ce){return ce===void 0&&(ce=!1),e.findAncestor(ve,function(m){return ce&&x(m)?"quit":e.some(m.modifiers,function(de){return de.kind===93})})}function z(ve,ce,m,de){if(A===2)de||D.push(ve);else if(!l){var ae=M(ve);e.Debug.assert(ae.kind===303||ae.kind===260),m||F(ae,ce,I)?y(ae,!0):y(ae)}}function y(ve,ce){ce===void 0&&(ce=!1),e.Debug.assert(!l);var m=P(ve);if(!!m&&(_.push(ve),!!ce)){var de=I.getMergedSymbol(ve.symbol);if(!!de){e.Debug.assert(!!(de.flags&1536));var ae=oe(de);if(ae)for(var V=0,le=ae;V<le.length;V++){var ke=le[V];e.isImportTypeNode(ke)||y(M(ke),!0)}}}}function oe(ve){return Z.get(e.getSymbolId(ve).toString())}}function pe(_e,Y,Z,k,I){var ne=[],ee=[];function A(j,U){ne.push([j,U])}if(_e)for(var f=0,P=_e;f<P.length;f++){var D=P[f];l(D)}return{importSearches:ne,singleReferences:ee};function l(j){if(j.kind===264){ie(j)&&_(j.name);return}if(j.kind===79){_(j);return}if(j.kind===199){if(j.qualifier){var U=e.getFirstIdentifier(j.qualifier);U.escapedText===e.symbolName(Y)&&ee.push(U)}else Z===2&&ee.push(j.argument.literal);return}if(j.moduleSpecifier.kind===10){if(j.kind===271){j.exportClause&&e.isNamedExports(j.exportClause)&&J(j.exportClause);return}var z=j.importClause||{name:void 0,namedBindings:void 0},y=z.name,oe=z.namedBindings;if(oe)switch(oe.kind){case 267:_(oe.name);break;case 268:(Z===0||Z===1)&&J(oe);break;default:e.Debug.assertNever(oe)}if(y&&(Z===1||Z===2)&&(!I||y.escapedText===e.symbolEscapedNameNoDefault(Y))){var ve=k.getSymbolAtLocation(y);A(y,ve)}}}function _(j){Z===2&&(!I||w(j.escapedText))&&A(j,k.getSymbolAtLocation(j))}function J(j){if(!!j)for(var U=0,z=j.elements;U<z.length;U++){var y=z[U],oe=y.name,ve=y.propertyName;if(!!w((ve||oe).escapedText))if(ve)ee.push(ve),(!I||oe.escapedText===Y.escapedName)&&A(oe,k.getSymbolAtLocation(oe));else{var ce=y.kind===274&&y.propertyName?k.getExportSpecifierLocalTargetSymbol(y):k.getSymbolAtLocation(oe);A(oe,ce)}}}function w(j){return j===Y.escapedName||Z!==0&&j==="default"}}function F(_e,Y,Z){var k=Z.getSymbolAtLocation(Y);return!!H(_e,function(I){if(!!e.isExportDeclaration(I)){var ne=I.exportClause,ee=I.moduleSpecifier;return!ee&&ne&&e.isNamedExports(ne)&&ne.elements.some(function(A){return Z.getExportSpecifierLocalTargetSymbol(A)===k})}})}function g(_e,Y,Z){for(var k=[],I=_e.getTypeChecker(),ne=0,ee=Y;ne<ee.length;ne++){var A=ee[ne],f=Z.valueDeclaration;if((f==null?void 0:f.kind)===303){for(var P=0,D=A.referencedFiles;P<D.length;P++){var l=D[P];_e.getSourceFileFromReference(A,l)===f&&k.push({kind:"reference",referencingFile:A,ref:l})}for(var _=0,J=A.typeReferenceDirectives;_<J.length;_++){var l=J[_],w=_e.getResolvedTypeReferenceDirectives().get(l.fileName);w!==void 0&&w.resolvedFileName===f.fileName&&k.push({kind:"reference",referencingFile:A,ref:l})}}se(A,function(j,U){var z=I.getSymbolAtLocation(U);z===Z&&k.push({kind:"import",literal:U})})}return k}O.findModuleReferences=g;function S(_e,Y,Z){for(var k=new e.Map,I=0,ne=_e;I<ne.length;I++){var ee=ne[I];Z&&Z.throwIfCancellationRequested(),se(ee,function(A,f){var P=Y.getSymbolAtLocation(f);if(P){var D=e.getSymbolId(P).toString(),l=k.get(D);l||k.set(D,l=[]),l.push(A)}})}return k}function H(_e,Y){return e.forEach(_e.kind===303?_e.statements:_e.body.statements,function(Z){return Y(Z)||x(Z)&&e.forEach(Z.body&&Z.body.statements,Y)})}function se(_e,Y){if(_e.externalModuleIndicator||_e.imports!==void 0)for(var Z=0,k=_e.imports;Z<k.length;Z++){var I=k[Z];Y(e.importFromModuleSpecifier(I),I)}else H(_e,function(ne){switch(ne.kind){case 271:case 265:{var ee=ne;ee.moduleSpecifier&&e.isStringLiteral(ee.moduleSpecifier)&&Y(ee,ee.moduleSpecifier);break}case 264:{var ee=ne;ie(ee)&&Y(ee,ee.moduleReference.expression);break}}})}function p(_e,Y,Z,k){return k?I():I()||ne();function I(){var f,P=_e.parent,D=P.parent;if(Y.exportSymbol)return P.kind===205?((f=Y.declarations)===null||f===void 0?void 0:f.some(function(j){return j===P}))&&e.isBinaryExpression(D)?w(D,!1):void 0:ee(Y.exportSymbol,A(P));var l=G(P,_e);if(l&&e.hasSyntacticModifier(l,1))if(e.isImportEqualsDeclaration(l)&&l.moduleReference===_e){if(k)return;var _=Z.getSymbolAtLocation(l.name);return{kind:0,symbol:_}}else return ee(Y,A(l));else{if(e.isNamespaceExport(P))return ee(Y,0);if(e.isExportAssignment(P))return J(P);if(e.isExportAssignment(D))return J(D);if(e.isBinaryExpression(P))return w(P,!0);if(e.isBinaryExpression(D))return w(D,!0);if(e.isJSDocTypedefTag(P))return ee(Y,0)}function J(j){if(!!j.symbol.parent){var U=j.isExportEquals?2:1;return{kind:1,symbol:Y,exportInfo:{exportingModuleSymbol:j.symbol.parent,exportKind:U}}}}function w(j,U){var z;switch(e.getAssignmentDeclarationKind(j)){case 1:z=0;break;case 2:z=2;break;default:return}var y=U?Z.getSymbolAtLocation(e.getNameOfAccessExpression(e.cast(j.left,e.isAccessExpression))):Y;return y&&ee(y,z)}}function ne(){var f=E(_e);if(!!f){var P=Z.getImmediateAliasedSymbol(Y);if(!!P){P=B(P,Z),P.escapedName==="export="&&(P=C(P,Z));var D=e.symbolEscapedNameNoDefault(P);if(D===void 0||D==="default"||D===Y.escapedName)return{kind:0,symbol:P}}}}function ee(f,P){var D=ue(f,P,Z);return D&&{kind:1,symbol:f,exportInfo:D}}function A(f){return e.hasSyntacticModifier(f,512)?1:0}}O.getImportOrExportSymbol=p;function C(_e,Y){if(_e.flags&2097152)return e.Debug.checkDefined(Y.getImmediateAliasedSymbol(_e));var Z=e.Debug.checkDefined(_e.valueDeclaration);return e.isExportAssignment(Z)?e.Debug.checkDefined(Z.expression.symbol):e.isBinaryExpression(Z)?e.Debug.checkDefined(Z.right.symbol):e.isSourceFile(Z)?e.Debug.checkDefined(Z.symbol):e.Debug.fail()}function G(_e,Y){var Z=e.isVariableDeclaration(_e)?_e:e.isBindingElement(_e)?e.walkUpBindingElementsAndPatterns(_e):void 0;return Z?_e.name!==Y||e.isCatchClause(Z.parent)?void 0:e.isVariableStatement(Z.parent.parent)?Z.parent.parent:void 0:_e}function E(_e){var Y=_e.parent;switch(Y.kind){case 264:return Y.name===_e&&ie(Y);case 269:return!Y.propertyName;case 266:case 267:return e.Debug.assert(Y.name===_e),!0;case 202:return e.isInJSFile(_e)&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(Y);default:return!1}}function ue(_e,Y,Z){var k=_e.parent;if(!!k){var I=Z.getMergedSymbol(k);return e.isExternalModuleSymbol(I)?{exportingModuleSymbol:I,exportKind:Y}:void 0}}O.getExportInfo=ue;function B(_e,Y){if(_e.declarations)for(var Z=0,k=_e.declarations;Z<k.length;Z++){var I=k[Z];if(e.isExportSpecifier(I)&&!I.propertyName&&!I.parent.parent.moduleSpecifier)return Y.getExportSpecifierLocalTargetSymbol(I);if(e.isPropertyAccessExpression(I)&&e.isModuleExportsAccessExpression(I.expression)&&!e.isPrivateIdentifier(I.name))return Y.getSymbolAtLocation(I);if(e.isShorthandPropertyAssignment(I)&&e.isBinaryExpression(I.parent.parent)&&e.getAssignmentDeclarationKind(I.parent.parent)===2)return Y.getExportSpecifierLocalTargetSymbol(I.name)}return _e}function re(_e,Y){return Y.getMergedSymbol(M(_e).symbol)}function M(_e){if(_e.kind===207)return _e.getSourceFile();var Y=_e.parent;return Y.kind===303?Y:(e.Debug.assert(Y.kind===261),e.cast(Y.parent,x))}function x(_e){return _e.kind===260&&_e.name.kind===10}function ie(_e){return _e.moduleReference.kind===276&&_e.moduleReference.expression.kind===10}})(a=e.FindAllReferences||(e.FindAllReferences={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(D){D[D.Symbol=0]="Symbol",D[D.Label=1]="Label",D[D.Keyword=2]="Keyword",D[D.This=3]="This",D[D.String=4]="String",D[D.TripleSlashReference=5]="TripleSlashReference"})(L=O.DefinitionKind||(O.DefinitionKind={}));var W;(function(D){D[D.Span=0]="Span",D[D.Node=1]="Node",D[D.StringLiteral=2]="StringLiteral",D[D.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",D[D.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal"})(W=O.EntryKind||(O.EntryKind={}));function N(D,l){return l===void 0&&(l=1),{kind:l,node:D.name||D,context:pe(D)}}O.nodeEntry=N;function Q(D){return D&&D.kind===void 0}O.isContextWithStartAndEndNode=Q;function pe(D){if(e.isDeclaration(D))return F(D);if(!!D.parent){if(!e.isDeclaration(D.parent)&&!e.isExportAssignment(D.parent)){if(e.isInJSFile(D)){var l=e.isBinaryExpression(D.parent)?D.parent:e.isAccessExpression(D.parent)&&e.isBinaryExpression(D.parent.parent)&&D.parent.parent.left===D.parent?D.parent.parent:void 0;if(l&&e.getAssignmentDeclarationKind(l)!==0)return F(l)}if(e.isJsxOpeningElement(D.parent)||e.isJsxClosingElement(D.parent))return D.parent.parent;if(e.isJsxSelfClosingElement(D.parent)||e.isLabeledStatement(D.parent)||e.isBreakOrContinueStatement(D.parent))return D.parent;if(e.isStringLiteralLike(D)){var _=e.tryGetImportFromModuleSpecifier(D);if(_){var J=e.findAncestor(_,function(j){return e.isDeclaration(j)||e.isStatement(j)||e.isJSDocTag(j)});return e.isDeclaration(J)?F(J):J}}var w=e.findAncestor(D,e.isComputedPropertyName);return w?F(w.parent):void 0}if(D.parent.name===D||e.isConstructorDeclaration(D.parent)||e.isExportAssignment(D.parent)||(e.isImportOrExportSpecifier(D.parent)||e.isBindingElement(D.parent))&&D.parent.propertyName===D||D.kind===88&&e.hasSyntacticModifier(D.parent,513))return F(D.parent)}}function F(D){if(!!D)switch(D.kind){case 253:return!e.isVariableDeclarationList(D.parent)||D.parent.declarations.length!==1?D:e.isVariableStatement(D.parent.parent)?D.parent.parent:e.isForInOrOfStatement(D.parent.parent)?F(D.parent.parent):D.parent;case 202:return F(D.parent.parent);case 269:return D.parent.parent.parent;case 274:case 267:return D.parent.parent;case 266:case 273:return D.parent;case 220:return e.isExpressionStatement(D.parent)?D.parent:D;case 243:case 242:return{start:D.initializer,end:D.expression};case 294:case 295:return e.isArrayLiteralOrObjectLiteralDestructuringPattern(D.parent)?F(e.findAncestor(D.parent,function(l){return e.isBinaryExpression(l)||e.isForInOrOfStatement(l)})):D;default:return D}}O.getContextNode=F;function g(D,l,_){if(!!_){var J=Q(_)?I(_.start,l,_.end):I(_,l);return J.start!==D.start||J.length!==D.length?{contextSpan:J}:void 0}}O.toContextSpan=g;var S;(function(D){D[D.Other=0]="Other",D[D.References=1]="References",D[D.Rename=2]="Rename"})(S=O.FindReferencesUse||(O.FindReferencesUse={}));function H(D,l,_,J,w){var j=e.getTouchingPropertyName(J,w),U=P.getReferencedSymbolsForNode(w,j,D,_,l,{use:1}),z=D.getTypeChecker(),y=z.getSymbolAtLocation(j);return!U||!U.length?void 0:e.mapDefined(U,function(oe){var ve=oe.definition,ce=oe.references;return ve&&{definition:z.runWithCancellationToken(l,function(m){return ue(ve,m,j)}),references:ce.map(function(m){return x(m,y)})}})}O.findReferencedSymbols=H;function se(D,l,_,J,w){var j=e.getTouchingPropertyName(J,w),U,z=p(D,l,_,j,w);if(j.parent.kind===205||j.parent.kind===202||j.parent.kind===206||j.kind===106)U=z&&qe([],z,!0);else for(var y=z&&qe([],z,!0),oe=new e.Map;y&&y.length;){var ve=y.shift();if(!!e.addToSeen(oe,e.getNodeId(ve.node))){U=e.append(U,ve);var ce=p(D,l,_,ve.node,ve.node.pos);ce&&y.push.apply(y,ce)}}var m=D.getTypeChecker();return e.map(U,function(de){return Y(de,m)})}O.getImplementationsAtPosition=se;function p(D,l,_,J,w){if(J.kind!==303){var j=D.getTypeChecker();if(J.parent.kind===295){var U=[];return P.getReferenceEntriesForShorthandPropertyAssignment(J,j,function(y){return U.push(N(y))}),U}else if(J.kind===106||e.isSuperProperty(J.parent)){var z=j.getSymbolAtLocation(J);return z.valueDeclaration&&[N(z.valueDeclaration)]}else return G(w,J,D,_,l,{implementations:!0,use:1})}}function C(D,l,_,J,w,j,U){return e.map(E(P.getReferencedSymbolsForNode(w,J,D,_,l,j)),function(z){return U(z,J,D.getTypeChecker())})}O.findReferenceOrRenameEntries=C;function G(D,l,_,J,w,j,U){return j===void 0&&(j={}),U===void 0&&(U=new e.Set(J.map(function(z){return z.fileName}))),E(P.getReferencedSymbolsForNode(D,l,_,J,w,j,U))}O.getReferenceEntriesForNode=G;function E(D){return D&&e.flatMap(D,function(l){return l.references})}function ue(D,l,_){var J=function(){switch(D.type){case 0:{var ve=D.symbol,ce=re(ve,l,_),m=ce.displayParts,de=ce.kind,ae=m.map(function(He){return He.text}).join(""),V=ve.declarations&&e.firstOrUndefined(ve.declarations),le=V?e.getNameOfDeclaration(V)||V:_;return Ve(Ve({},B(le)),{name:ae,kind:de,displayParts:m,context:F(V)})}case 1:{var le=D.node;return Ve(Ve({},B(le)),{name:le.text,kind:"label",displayParts:[e.displayPart(le.text,e.SymbolDisplayPartKind.text)]})}case 2:{var le=D.node,ke=e.tokenToString(le.kind);return Ve(Ve({},B(le)),{name:ke,kind:"keyword",displayParts:[{text:ke,kind:"keyword"}]})}case 3:{var le=D.node,ve=l.getSymbolAtLocation(le),Ue=ve&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(l,ve,le.getSourceFile(),e.getContainerNode(le),le).displayParts||[e.textPart("this")];return Ve(Ve({},B(le)),{name:"this",kind:"var",displayParts:Ue})}case 4:{var le=D.node;return Ve(Ve({},B(le)),{name:le.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(le),e.SymbolDisplayPartKind.stringLiteral)]})}case 5:return{textSpan:e.createTextSpanFromRange(D.reference),sourceFile:D.file,name:D.reference.fileName,kind:"string",displayParts:[e.displayPart('"'.concat(D.reference.fileName,'"'),e.SymbolDisplayPartKind.stringLiteral)]};default:return e.Debug.assertNever(D)}}(),w=J.sourceFile,j=J.textSpan,U=J.name,z=J.kind,y=J.displayParts,oe=J.context;return Ve({containerKind:"",containerName:"",fileName:w.fileName,kind:z,name:U,textSpan:j,displayParts:y},g(j,w,oe))}function B(D){var l=D.getSourceFile();return{sourceFile:l,textSpan:I(e.isComputedPropertyName(D)?D.expression:D,l)}}function re(D,l,_){var J=P.getIntersectingMeaningFromDeclarations(_,D),w=D.declarations&&e.firstOrUndefined(D.declarations)||_,j=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(l,D,w.getSourceFile(),w,w,J),U=j.displayParts,z=j.symbolKind;return{displayParts:U,kind:z}}function M(D,l,_,J){return Ve(Ve({},ie(D)),J&&_e(D,l,_))}O.toRenameLocation=M;function x(D,l){var _=ie(D);if(D.kind===0)return Ve(Ve({},_),{isWriteAccess:!1,isDefinition:!1});var J=D.kind,w=D.node;return Ve(Ve({},_),{isWriteAccess:ee(w),isDefinition:A(w,l),isInString:J===2?!0:void 0})}O.toReferenceEntry=x;function ie(D){if(D.kind===0)return{textSpan:D.textSpan,fileName:D.fileName};var l=D.node.getSourceFile(),_=I(D.node,l);return Ve({textSpan:_,fileName:l.fileName},g(_,l,D.context))}function _e(D,l,_){if(D.kind!==0&&e.isIdentifier(l)){var J=D.node,w=D.kind,j=J.parent,U=l.text,z=e.isShorthandPropertyAssignment(j);if(z||e.isObjectBindingElementWithoutPropertyName(j)&&j.name===J&&j.dotDotDotToken===void 0){var y={prefixText:U+": "},oe={suffixText:": "+U};if(w===3)return y;if(w===4)return oe;if(z){var ve=j.parent;return e.isObjectLiteralExpression(ve)&&e.isBinaryExpression(ve.parent)&&e.isModuleExportsAccessExpression(ve.parent.left)?y:oe}else return y}else if(e.isImportSpecifier(j)&&!j.propertyName){var ce=e.isExportSpecifier(l.parent)?_.getExportSpecifierLocalTargetSymbol(l.parent):_.getSymbolAtLocation(l);return e.contains(ce.declarations,j)?{prefixText:U+" as "}:e.emptyOptions}else if(e.isExportSpecifier(j)&&!j.propertyName)return l===D.node||_.getSymbolAtLocation(l)===_.getSymbolAtLocation(D.node)?{prefixText:U+" as "}:{suffixText:" as "+U}}return e.emptyOptions}function Y(D,l){var _=ie(D);if(D.kind!==0){var J=D.node;return Ve(Ve({},_),Z(J,l))}else return Ve(Ve({},_),{kind:"",displayParts:[]})}function Z(D,l){var _=l.getSymbolAtLocation(e.isDeclaration(D)&&D.name?D.name:D);return _?re(_,l,D):D.kind===204?{kind:"interface",displayParts:[e.punctuationPart(20),e.textPart("object literal"),e.punctuationPart(21)]}:D.kind===225?{kind:"local class",displayParts:[e.punctuationPart(20),e.textPart("anonymous local class"),e.punctuationPart(21)]}:{kind:e.getNodeKind(D),displayParts:[]}}function k(D){var l=ie(D);if(D.kind===0)return{fileName:l.fileName,span:{textSpan:l.textSpan,kind:"reference"}};var _=ee(D.node),J=Ve({textSpan:l.textSpan,kind:_?"writtenReference":"reference",isInString:D.kind===2?!0:void 0},l.contextSpan&&{contextSpan:l.contextSpan});return{fileName:l.fileName,span:J}}O.toHighlightSpan=k;function I(D,l,_){var J=D.getStart(l),w=(_||D).getEnd();return e.isStringLiteralLike(D)&&w-J>2&&(e.Debug.assert(_===void 0),J+=1,w-=1),e.createTextSpanFromBounds(J,w)}function ne(D){return D.kind===0?D.textSpan:I(D.node,D.node.getSourceFile())}O.getTextSpanOfEntry=ne;function ee(D){var l=e.getDeclarationFromName(D);return!!l&&f(l)||D.kind===88||e.isWriteAccess(D)}function A(D,l){var _;if(!l)return!1;var J=e.getDeclarationFromName(D)||(D.kind===88?D.parent:e.isLiteralComputedPropertyDeclarationName(D)||D.kind===134&&e.isConstructorDeclaration(D.parent)?D.parent.parent:void 0),w=J&&e.isBinaryExpression(J)?J.left:void 0;return!!(J&&((_=l.declarations)===null||_===void 0?void 0:_.some(function(j){return j===J||j===w})))}function f(D){if(D.flags&8388608)return!0;switch(D.kind){case 220:case 202:case 256:case 225:case 88:case 259:case 297:case 274:case 266:case 264:case 269:case 257:case 336:case 343:case 284:case 260:case 263:case 267:case 273:case 163:case 295:case 258:case 162:return!0;case 294:return!e.isArrayLiteralOrObjectLiteralDestructuringPattern(D.parent);case 255:case 212:case 170:case 168:case 171:case 172:return!!D.body;case 253:case 166:return!!D.initializer||e.isCatchClause(D.parent);case 167:case 165:case 345:case 338:return!1;default:return e.Debug.failBadSyntaxKind(D)}}var P;(function(D){function l(v,xe,ze,Je,Oe,Fr,Xr){var Or,We;if(Fr===void 0&&(Fr={}),Xr===void 0&&(Xr=new e.Set(Je.map(function(Rt){return Rt.fileName}))),Fr.use===1?xe=e.getAdjustedReferenceLocation(xe):Fr.use===2&&(xe=e.getAdjustedRenameLocation(xe)),e.isSourceFile(xe)){var mr=e.GoToDefinition.getReferenceAtPosition(xe,v,ze);if(!(mr!=null&&mr.file))return;var Nr=ze.getTypeChecker().getMergedSymbol(mr.file.symbol);if(Nr)return y(ze,Nr,!1,Je,Xr);var Ur=ze.getFileIncludeReasons();return Ur?[{definition:{type:5,reference:mr.reference,file:xe},references:J(mr.file,Ur,ze)||e.emptyArray}]:void 0}if(!Fr.implementations){var si=ve(xe,Je,Oe);if(si)return si}var mi=ze.getTypeChecker(),Ti=mi.getSymbolAtLocation(e.isConstructorDeclaration(xe)&&xe.parent.name||xe);if(!Ti){if(!Fr.implementations&&e.isStringLiteralLike(xe)){if(e.isModuleSpecifierLike(xe)){var Ur=ze.getFileIncludeReasons(),hi=(We=(Or=xe.getSourceFile().resolvedModules)===null||Or===void 0?void 0:Or.get(xe.text,e.getModeForUsageLocation(xe.getSourceFile(),xe)))===null||We===void 0?void 0:We.resolvedFileName,ki=hi?ze.getSourceFile(hi):void 0;if(ki)return[{definition:{type:4,node:xe},references:J(ki,Ur,ze)||e.emptyArray}]}return bt(xe,Je,mi,Oe)}return}if(Ti.escapedName==="export=")return y(ze,Ti.parent,!1,Je,Xr);var Ui=j(Ti,ze,Je,Oe,Fr,Xr);if(Ui&&!(Ti.flags&33554432))return Ui;var zi=w(xe,Ti,mi),ri=zi&&j(zi,ze,Je,Oe,Fr,Xr),Gi=ce(Ti,xe,Je,Xr,mi,Oe,Fr);return U(ze,Ui,Gi,ri)}D.getReferencedSymbolsForNode=l;function _(v,xe,ze,Je){var Oe,Fr;Je===void 0&&(Je=new e.Set(ze.map(function(mr){return mr.fileName})));var Xr=(Oe=xe.getSourceFile(v))===null||Oe===void 0?void 0:Oe.symbol;if(Xr)return((Fr=y(xe,Xr,!1,ze,Je)[0])===null||Fr===void 0?void 0:Fr.references)||e.emptyArray;var Or=xe.getFileIncludeReasons(),We=xe.getSourceFile(v);return We&&Or&&J(We,Or,xe)||e.emptyArray}D.getReferencesForFileName=_;function J(v,xe,ze){for(var Je,Oe=xe.get(v.path)||e.emptyArray,Fr=0,Xr=Oe;Fr<Xr.length;Fr++){var Or=Xr[Fr];if(e.isReferencedFile(Or)){var We=ze.getSourceFileByPath(Or.file),mr=e.getReferencedFileLocation(ze.getSourceFileByPath,Or);e.isReferenceFileLocation(mr)&&(Je=e.append(Je,{kind:0,fileName:We.fileName,textSpan:e.createTextSpanFromRange(mr)}))}}return Je}function w(v,xe,ze){if(v.parent&&e.isNamespaceExportDeclaration(v.parent)){var Je=ze.getAliasedSymbol(xe),Oe=ze.getMergedSymbol(Je);if(Je!==Oe)return Oe}}function j(v,xe,ze,Je,Oe,Fr){var Xr=v.flags&1536&&v.declarations&&e.find(v.declarations,e.isSourceFile);if(!!Xr){var Or=v.exports.get("export="),We=y(xe,v,!!Or,ze,Fr);if(!Or||!Fr.has(Xr.fileName))return We;var mr=xe.getTypeChecker();return v=e.skipAlias(Or,mr),U(xe,We,ce(v,void 0,ze,Fr,mr,Je,Oe))}}function U(v){for(var xe=[],ze=1;ze<arguments.length;ze++)xe[ze-1]=arguments[ze];for(var Je,Oe=0,Fr=xe;Oe<Fr.length;Oe++){var Xr=Fr[Oe];if(!(!Xr||!Xr.length)){if(!Je){Je=Xr;continue}for(var Or=function(Ur){if(!Ur.definition||Ur.definition.type!==0)return Je.push(Ur),"continue";var si=Ur.definition.symbol,mi=e.findIndex(Je,function(hi){return!!hi.definition&&hi.definition.type===0&&hi.definition.symbol===si});if(mi===-1)return Je.push(Ur),"continue";var Ti=Je[mi];Je[mi]={definition:Ti.definition,references:Ti.references.concat(Ur.references).sort(function(hi,ki){var Ui=z(v,hi),zi=z(v,ki);if(Ui!==zi)return e.compareValues(Ui,zi);var ri=ne(hi),Gi=ne(ki);return ri.start!==Gi.start?e.compareValues(ri.start,Gi.start):e.compareValues(ri.length,Gi.length)})}},We=0,mr=Xr;We<mr.length;We++){var Nr=mr[We];Or(Nr)}}}return Je}function z(v,xe){var ze=xe.kind===0?v.getSourceFile(xe.fileName):xe.node.getSourceFile();return v.getSourceFiles().indexOf(ze)}function y(v,xe,ze,Je,Oe){e.Debug.assert(!!xe.valueDeclaration);var Fr=e.mapDefined(O.findModuleReferences(v,Je,xe),function(Ti){if(Ti.kind==="import"){var hi=Ti.literal.parent;if(e.isLiteralTypeNode(hi)){var ki=e.cast(hi.parent,e.isImportTypeNode);if(ze&&!ki.qualifier)return}return N(Ti.literal)}else return{kind:0,fileName:Ti.referencingFile.fileName,textSpan:e.createTextSpanFromRange(Ti.ref)}});if(xe.declarations)for(var Xr=0,Or=xe.declarations;Xr<Or.length;Xr++){var We=Or[Xr];switch(We.kind){case 303:break;case 260:Oe.has(We.getSourceFile().fileName)&&Fr.push(N(We.name));break;default:e.Debug.assert(!!(xe.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}}var mr=xe.exports.get("export=");if(mr!=null&&mr.declarations)for(var Nr=0,Ur=mr.declarations;Nr<Ur.length;Nr++){var We=Ur[Nr],si=We.getSourceFile();if(Oe.has(si.fileName)){var mi=e.isBinaryExpression(We)&&e.isPropertyAccessExpression(We.left)?We.left.expression:e.isExportAssignment(We)?e.Debug.checkDefined(e.findChildOfKind(We,93,si)):e.getNameOfDeclaration(We)||We;Fr.push(N(mi))}}return Fr.length?[{definition:{type:0,symbol:xe},references:Fr}]:e.emptyArray}function oe(v){return v.kind===144&&e.isTypeOperatorNode(v.parent)&&v.parent.operator===144}function ve(v,xe,ze){if(e.isTypeKeyword(v.kind))return v.kind===114&&e.isVoidExpression(v.parent)||v.kind===144&&!oe(v)?void 0:ur(xe,v.kind,ze,v.kind===144?oe:void 0);if(e.isStaticModifier(v)&&e.isClassStaticBlockDeclaration(v.parent))return[{definition:{type:2,node:v},references:[N(v)]}];if(e.isJumpStatementTarget(v)){var Je=e.getTargetLabel(v.parent,v.text);return Je&&Fe(Je.parent,Je)}else if(e.isLabelOfLabeledStatement(v))return Fe(v.parent,v);if(e.isThis(v))return ft(v,xe,ze);if(v.kind===106)return Si(v)}function ce(v,xe,ze,Je,Oe,Fr,Xr){var Or=xe&&ae(v,xe,Oe,!Me(Xr))||v,We=xe?Ye(xe,Or):7,mr=[],Nr=new ke(ze,Je,xe?de(xe):0,Oe,Fr,We,Xr,mr),Ur=!Me(Xr)||!Or.declarations?void 0:e.find(Or.declarations,e.isExportSpecifier);if(Ur)n(Ur.name,Or,Ur,Nr.createSearch(xe,v,void 0),Nr,!0,!0);else if(xe&&xe.kind===88&&Or.escapedName==="default"&&Or.parent)Le(xe,Or,Nr),Ue(xe,Or,{exportingModuleSymbol:Or.parent,exportKind:1},Nr);else{var si=Nr.createSearch(xe,Or,void 0,{allSearchSymbols:xe?aa(Or,xe,Oe,Xr.use===2,!!Xr.providePrefixAndSuffixTextForRename,!!Xr.implementations):[Or]});m(Or,Nr,si)}return mr}function m(v,xe,ze){var Je=er(v);if(Je)dr(Je,Je.getSourceFile(),ze,xe,!(e.isSourceFile(Je)&&!e.contains(xe.sourceFiles,Je)));else for(var Oe=0,Fr=xe.sourceFiles;Oe<Fr.length;Oe++){var Xr=Fr[Oe];xe.cancellationToken.throwIfCancellationRequested(),me(Xr,ze,xe)}}function de(v){switch(v.kind){case 170:case 134:return 1;case 79:if(e.isClassLike(v.parent))return e.Debug.assert(v.parent.name===v),2;default:return 0}}function ae(v,xe,ze,Je){var Oe=xe.parent;return e.isExportSpecifier(Oe)&&Je?Er(xe,v,Oe,ze):e.firstDefined(v.declarations,function(Fr){if(!Fr.parent){if(v.flags&33554432)return;e.Debug.fail("Unexpected symbol at ".concat(e.Debug.formatSyntaxKind(xe.kind),": ").concat(e.Debug.formatSymbol(v)))}return e.isTypeLiteralNode(Fr.parent)&&e.isUnionTypeNode(Fr.parent.parent)?ze.getPropertyOfType(ze.getTypeFromTypeNode(Fr.parent.parent),v.name):void 0})}var V;(function(v){v[v.None=0]="None",v[v.Constructor=1]="Constructor",v[v.Class=2]="Class"})(V||(V={}));function le(v){if(!!(v.flags&33555968)){var xe=v.declarations&&e.find(v.declarations,function(ze){return!e.isSourceFile(ze)&&!e.isModuleDeclaration(ze)});return xe&&xe.symbol}}var ke=function(){function v(xe,ze,Je,Oe,Fr,Xr,Or,We){this.sourceFiles=xe,this.sourceFilesSet=ze,this.specialSearchKind=Je,this.checker=Oe,this.cancellationToken=Fr,this.searchMeaning=Xr,this.options=Or,this.result=We,this.inheritsFromCache=new e.Map,this.markSeenContainingTypeReference=e.nodeSeenTracker(),this.markSeenReExportRHS=e.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}return v.prototype.includesSourceFile=function(xe){return this.sourceFilesSet.has(xe.fileName)},v.prototype.getImportSearches=function(xe,ze){return this.importTracker||(this.importTracker=O.createImportTracker(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(xe,ze,this.options.use===2)},v.prototype.createSearch=function(xe,ze,Je,Oe){Oe===void 0&&(Oe={});var Fr=Oe.text,Xr=Fr===void 0?e.stripQuotes(e.symbolName(e.getLocalSymbolForExportDefault(ze)||le(ze)||ze)):Fr,Or=Oe.allSearchSymbols,We=Or===void 0?[ze]:Or,mr=e.escapeLeadingUnderscores(Xr),Nr=this.options.implementations&&xe?Dr(xe,ze,this.checker):void 0;return{symbol:ze,comingFrom:Je,text:Xr,escapedText:mr,parents:Nr,allSearchSymbols:We,includes:function(Ur){return e.contains(We,Ur)}}},v.prototype.referenceAdder=function(xe){var ze=e.getSymbolId(xe),Je=this.symbolIdToReferences[ze];return Je||(Je=this.symbolIdToReferences[ze]=[],this.result.push({definition:{type:0,symbol:xe},references:Je})),function(Oe,Fr){return Je.push(N(Oe,Fr))}},v.prototype.addStringOrCommentReference=function(xe,ze){this.result.push({definition:void 0,references:[{kind:0,fileName:xe,textSpan:ze}]})},v.prototype.markSearchedSymbols=function(xe,ze){for(var Je=e.getNodeId(xe),Oe=this.sourceFileToSeenSymbols[Je]||(this.sourceFileToSeenSymbols[Je]=new e.Set),Fr=!1,Xr=0,Or=ze;Xr<Or.length;Xr++){var We=Or[Xr];Fr=e.tryAddToSet(Oe,e.getSymbolId(We))||Fr}return Fr},v}();function Ue(v,xe,ze,Je){var Oe=Je.getImportSearches(xe,ze),Fr=Oe.importSearches,Xr=Oe.singleReferences,Or=Oe.indirectUsers;if(Xr.length)for(var We=Je.referenceAdder(xe),mr=0,Nr=Xr;mr<Nr.length;mr++){var Ur=Nr[mr];ar(Ur,Je)&&We(Ur)}for(var si=0,mi=Fr;si<mi.length;si++){var Ti=mi[si],hi=Ti[0],ki=Ti[1];Ir(hi.getSourceFile(),Je.createSearch(hi,ki,1),Je)}if(Or.length){var Ui=void 0;switch(ze.exportKind){case 0:Ui=Je.createSearch(v,xe,1);break;case 1:Ui=Je.options.use===2?void 0:Je.createSearch(v,xe,1,{text:"default"});break;case 2:break}if(Ui)for(var zi=0,ri=Or;zi<ri.length;zi++){var Gi=ri[zi];me(Gi,Ui,Je)}}}function He(v,xe,ze,Je,Oe,Fr,Xr,Or){for(var We=O.createImportTracker(v,new e.Set(v.map(function(xt){return xt.fileName})),xe,ze),mr=We(Je,{exportKind:Xr?1:0,exportingModuleSymbol:Oe},!1),Nr=mr.importSearches,Ur=mr.indirectUsers,si=0,mi=Nr;si<mi.length;si++){var Ti=mi[si][0];Or(Ti)}for(var hi=0,ki=Ur;hi<ki.length;hi++)for(var Ui=ki[hi],zi=0,ri=Se(Ui,Xr?"default":Fr);zi<ri.length;zi++){var Gi=ri[zi],Rt=xe.getSymbolAtLocation(Gi),pa=e.some(Rt==null?void 0:Rt.declarations,function(xt){return!!e.tryCast(xt,e.isExportAssignment)});e.isIdentifier(Gi)&&!e.isImportOrExportSpecifier(Gi.parent)&&(Rt===Je||pa)&&Or(Gi)}}D.eachExportReference=He;function ar(v,xe){return Br(v,xe)?xe.options.use!==2?!0:e.isIdentifier(v)?!(e.isImportOrExportSpecifier(v.parent)&&v.escapedText==="default"):!1:!1}function gr(v,xe){if(!!v.declarations)for(var ze=0,Je=v.declarations;ze<Je.length;ze++){var Oe=Je[ze],Fr=Oe.getSourceFile();Ir(Fr,xe.createSearch(Oe,v,0),xe,xe.includesSourceFile(Fr))}}function me(v,xe,ze){e.getNameTable(v).get(xe.escapedText)!==void 0&&Ir(v,xe,ze)}function Ge(v,xe){return e.isArrayLiteralOrObjectLiteralDestructuringPattern(v.parent.parent)?xe.getPropertySymbolOfDestructuringAssignment(v):void 0}function er(v){var xe=v.declarations,ze=v.flags,Je=v.parent,Oe=v.valueDeclaration;if(Oe&&(Oe.kind===212||Oe.kind===225))return Oe;if(!!xe){if(ze&8196){var Fr=e.find(xe,function(mi){return e.hasEffectiveModifier(mi,8)||e.isPrivateIdentifierClassElementDeclaration(mi)});return Fr?e.getAncestor(Fr,256):void 0}if(!xe.some(e.isObjectBindingElementWithoutPropertyName)){var Xr=Je&&!(v.flags&262144);if(!(Xr&&!(e.isExternalModuleSymbol(Je)&&!Je.globalExports))){for(var Or,We=0,mr=xe;We<mr.length;We++){var Nr=mr[We],Ur=e.getContainerNode(Nr);if(Or&&Or!==Ur||!Ur||Ur.kind===303&&!e.isExternalOrCommonJsModule(Ur))return;if(Or=Ur,e.isFunctionExpression(Or))for(var si=void 0;si=e.getNextJSDocCommentLocation(Or);)Or=si}return Xr?Or.getSourceFile():Or}}}}function he(v,xe,ze,Je){return Je===void 0&&(Je=ze),we(v,xe,ze,function(){return!0},Je)||!1}D.isSymbolReferencedInFile=he;function we(v,xe,ze,Je,Oe){Oe===void 0&&(Oe=ze);var Fr=e.isParameterPropertyDeclaration(v.parent,v.parent.parent)?e.first(xe.getSymbolsOfParameterPropertyDeclaration(v.parent,v.text)):xe.getSymbolAtLocation(v);if(!!Fr)for(var Xr=0,Or=Se(ze,Fr.name,Oe);Xr<Or.length;Xr++){var We=Or[Xr];if(!(!e.isIdentifier(We)||We===v||We.escapedText!==v.escapedText)){var mr=xe.getSymbolAtLocation(We);if(mr===Fr||xe.getShorthandAssignmentValueSymbol(We.parent)===Fr||e.isExportSpecifier(We.parent)&&Er(We,mr,We.parent,xe)===Fr){var Nr=Je(We);if(Nr)return Nr}}}}D.eachSymbolReferenceInFile=we;function ye(v,xe,ze,Je){if(!v.name||!e.isIdentifier(v.name))return!1;for(var Oe=e.Debug.checkDefined(ze.getSymbolAtLocation(v.name)),Fr=0,Xr=xe;Fr<Xr.length;Fr++)for(var Or=Xr[Fr],We=0,mr=Se(Or,Oe.name);We<mr.length;We++){var Nr=mr[We];if(!(!e.isIdentifier(Nr)||Nr===v.name||Nr.escapedText!==v.name.escapedText)){var Ur=e.climbPastPropertyAccess(Nr),si=e.isCallExpression(Ur.parent)&&Ur.parent.expression===Ur?Ur.parent:void 0,mi=ze.getSymbolAtLocation(Nr);if(mi&&ze.getRootSymbols(mi).some(function(Ti){return Ti===Oe})&&Je(Nr,si))return!0}}return!1}D.someSignatureUsage=ye;function Se(v,xe,ze){return ze===void 0&&(ze=v),ge(v,xe,ze).map(function(Je){return e.getTouchingPropertyName(v,Je)})}function ge(v,xe,ze){ze===void 0&&(ze=v);var Je=[];if(!xe||!xe.length)return Je;for(var Oe=v.text,Fr=Oe.length,Xr=xe.length,Or=Oe.indexOf(xe,ze.pos);Or>=0&&!(Or>ze.end);){var We=Or+Xr;(Or===0||!e.isIdentifierPart(Oe.charCodeAt(Or-1),99))&&(We===Fr||!e.isIdentifierPart(Oe.charCodeAt(We),99))&&Je.push(Or),Or=Oe.indexOf(xe,Or+Xr+1)}return Je}function Fe(v,xe){var ze=v.getSourceFile(),Je=xe.text,Oe=e.mapDefined(Se(ze,Je,v),function(Fr){return Fr===xe||e.isJumpStatementTarget(Fr)&&e.getTargetLabel(Fr,Je)===xe?N(Fr):void 0});return[{definition:{type:1,node:xe},references:Oe}]}function cr(v,xe){switch(v.kind){case 80:if(e.isJSDocMemberName(v.parent))return!0;case 79:return v.text.length===xe.length;case 14:case 10:{var ze=v;return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(ze)||e.isNameOfModuleDeclaration(v)||e.isExpressionOfExternalModuleImportEqualsDeclaration(v)||e.isCallExpression(v.parent)&&e.isBindableObjectDefinePropertyCall(v.parent)&&v.parent.arguments[1]===v)&&ze.text.length===xe.length}case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(v)&&v.text.length===xe.length;case 88:return xe.length===7;default:return!1}}function ur(v,xe,ze,Je){var Oe=e.flatMap(v,function(Fr){return ze.throwIfCancellationRequested(),e.mapDefined(Se(Fr,e.tokenToString(xe),Fr),function(Xr){if(Xr.kind===xe&&(!Je||Je(Xr)))return N(Xr)})});return Oe.length?[{definition:{type:2,node:Oe[0].node},references:Oe}]:void 0}function Ir(v,xe,ze,Je){return Je===void 0&&(Je=!0),ze.cancellationToken.throwIfCancellationRequested(),dr(v,v,xe,ze,Je)}function dr(v,xe,ze,Je,Oe){if(!!Je.markSearchedSymbols(xe,ze.allSearchSymbols))for(var Fr=0,Xr=ge(xe,ze.text,v);Fr<Xr.length;Fr++){var Or=Xr[Fr];Tr(xe,Or,ze,Je,Oe)}}function Br(v,xe){return!!(e.getMeaningFromLocation(v)&xe.searchMeaning)}function Tr(v,xe,ze,Je,Oe){var Fr=e.getTouchingPropertyName(v,xe);if(!cr(Fr,ze.text)){!Je.options.implementations&&(Je.options.findInStrings&&e.isInString(v,xe)||Je.options.findInComments&&e.isInNonReferenceComment(v,xe))&&Je.addStringOrCommentReference(v.fileName,e.createTextSpan(xe,ze.text.length));return}if(!!Br(Fr,Je)){var Xr=Je.checker.getSymbolAtLocation(Fr);if(!!Xr){var Or=Fr.parent;if(!(e.isImportSpecifier(Or)&&Or.propertyName===Fr)){if(e.isExportSpecifier(Or)){e.Debug.assert(Fr.kind===79),n(Fr,Xr,Or,ze,Je,Oe);return}var We=X(ze,Xr,Fr,Je);if(!We){Ce(Xr,ze,Je);return}switch(Je.specialSearchKind){case 0:Oe&&Le(Fr,We,Je);break;case 1:Xe(Fr,v,ze,Je);break;case 2:Cr(Fr,ze,Je);break;default:e.Debug.assertNever(Je.specialSearchKind)}e.isInJSFile(Fr)&&Fr.parent.kind===202&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(Fr.parent)&&(Xr=Fr.parent.symbol,!Xr)||Pr(Fr,Xr,ze,Je)}}}}function n(v,xe,ze,Je,Oe,Fr,Xr){e.Debug.assert(!Xr||!!Oe.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");var Or=ze.parent,We=ze.propertyName,mr=ze.name,Nr=Or.parent,Ur=Er(v,xe,ze,Oe.checker);if(!Xr&&!Je.includes(Ur))return;if(We?v===We?(Nr.moduleSpecifier||Ui(),Fr&&Oe.options.use!==2&&Oe.markSeenReExportRHS(mr)&&Le(mr,e.Debug.checkDefined(ze.symbol),Oe)):Oe.markSeenReExportRHS(v)&&Ui():Oe.options.use===2&&mr.escapedText==="default"||Ui(),!Me(Oe.options)||Xr){var si=v.originalKeywordKind===88||ze.name.originalKeywordKind===88,mi=si?1:0,Ti=e.Debug.checkDefined(ze.symbol),hi=O.getExportInfo(Ti,mi,Oe.checker);hi&&Ue(v,Ti,hi,Oe)}if(Je.comingFrom!==1&&Nr.moduleSpecifier&&!We&&!Me(Oe.options)){var ki=Oe.checker.getExportSpecifierLocalTargetSymbol(ze);ki&&gr(ki,Oe)}function Ui(){Fr&&Le(v,Ur,Oe)}}function Er(v,xe,ze,Je){return br(v,ze)&&Je.getExportSpecifierLocalTargetSymbol(ze)||xe}function br(v,xe){var ze=xe.parent,Je=xe.propertyName,Oe=xe.name;return e.Debug.assert(Je===v||Oe===v),Je?Je===v:!ze.parent.moduleSpecifier}function Pr(v,xe,ze,Je){var Oe=O.getImportOrExportSymbol(v,xe,Je.checker,ze.comingFrom===1);if(!!Oe){var Fr=Oe.symbol;Oe.kind===0?Me(Je.options)||gr(Fr,Je):Ue(v,Fr,Oe.exportInfo,Je)}}function Ce(v,xe,ze){var Je=v.flags,Oe=v.valueDeclaration,Fr=ze.checker.getShorthandAssignmentValueSymbol(Oe),Xr=Oe&&e.getNameOfDeclaration(Oe);!(Je&33554432)&&Xr&&xe.includes(Fr)&&Le(Xr,Fr,ze)}function Le(v,xe,ze){var Je="kind"in xe?xe:{kind:void 0,symbol:xe},Oe=Je.kind,Fr=Je.symbol,Xr=ze.referenceAdder(Fr);ze.options.implementations?or(v,Xr,ze):Xr(v,Oe)}function Xe(v,xe,ze,Je){e.isNewExpressionTarget(v)&&Le(v,ze.symbol,Je);var Oe=function(){return Je.referenceAdder(ze.symbol)};if(e.isClassLike(v.parent))e.Debug.assert(v.kind===88||v.parent.name===v),Lr(ze.symbol,xe,Oe());else{var Fr=hr(v);Fr&&(Rr(Fr,Oe()),be(Fr,Je))}}function Cr(v,xe,ze){Le(v,xe.symbol,ze);var Je=v.parent;if(!(ze.options.use===2||!e.isClassLike(Je))){e.Debug.assert(Je.name===v);for(var Oe=ze.referenceAdder(xe.symbol),Fr=0,Xr=Je.members;Fr<Xr.length;Fr++){var Or=Xr[Fr];!(e.isMethodOrAccessor(Or)&&e.isStatic(Or))||Or.body&&Or.body.forEachChild(function We(mr){mr.kind===108?Oe(mr):!e.isFunctionLike(mr)&&!e.isClassLike(mr)&&mr.forEachChild(We)})}}}function Lr(v,xe,ze){var Je=Jr(v);if(Je&&Je.declarations)for(var Oe=0,Fr=Je.declarations;Oe<Fr.length;Oe++){var Xr=Fr[Oe],Or=e.findChildOfKind(Xr,134,xe);e.Debug.assert(Xr.kind===170&&!!Or),ze(Or)}v.exports&&v.exports.forEach(function(We){var mr=We.valueDeclaration;if(mr&&mr.kind===168){var Nr=mr.body;Nr&&_r(Nr,108,function(Ur){e.isNewExpressionTarget(Ur)&&ze(Ur)})}})}function Jr(v){return v.members&&v.members.get("__constructor")}function Rr(v,xe){var ze=Jr(v.symbol);if(!!(ze&&ze.declarations))for(var Je=0,Oe=ze.declarations;Je<Oe.length;Je++){var Fr=Oe[Je];e.Debug.assert(Fr.kind===170);var Xr=Fr.body;Xr&&_r(Xr,106,function(Or){e.isCallExpressionTarget(Or)&&xe(Or)})}}function ci(v){return!!Jr(v.symbol)}function be(v,xe){if(!ci(v)){var ze=v.symbol,Je=xe.createSearch(void 0,ze,void 0);m(ze,xe,Je)}}function or(v,xe,ze){if(e.isDeclarationName(v)&&Be(v.parent)){xe(v);return}if(v.kind!==79)return;v.parent.kind===295&&Qe(v,ze.checker,xe);var Je=Kr(v);if(Je){xe(Je);return}var Oe=e.findAncestor(v,function(We){return!e.isQualifiedName(We.parent)&&!e.isTypeNode(We.parent)&&!e.isTypeElement(We.parent)}),Fr=Oe.parent;if(e.hasType(Fr)&&Fr.type===Oe&&ze.markSeenContainingTypeReference(Fr))if(e.hasInitializer(Fr))Or(Fr.initializer);else if(e.isFunctionLike(Fr)&&Fr.body){var Xr=Fr.body;Xr.kind===234?e.forEachReturnStatement(Xr,function(We){We.expression&&Or(We.expression)}):Or(Xr)}else e.isAssertionExpression(Fr)&&Or(Fr.expression);function Or(We){ei(We)&&xe(We)}}function Kr(v){return e.isIdentifier(v)||e.isPropertyAccessExpression(v)?Kr(v.parent):e.isExpressionWithTypeArguments(v)?e.tryCast(v.parent.parent,e.isClassLike):void 0}function ei(v){switch(v.kind){case 211:return ei(v.expression);case 213:case 212:case 204:case 225:case 203:return!0;default:return!1}}function li(v,xe,ze,Je){if(v===xe)return!0;var Oe=e.getSymbolId(v)+","+e.getSymbolId(xe),Fr=ze.get(Oe);if(Fr!==void 0)return Fr;ze.set(Oe,!1);var Xr=!!v.declarations&&v.declarations.some(function(Or){return e.getAllSuperTypeNodes(Or).some(function(We){var mr=Je.getTypeAtLocation(We);return!!mr&&!!mr.symbol&&li(mr.symbol,xe,ze,Je)})});return ze.set(Oe,Xr),Xr}function Si(v){var xe=e.getSuperContainer(v,!1);if(!!xe){var ze=32;switch(xe.kind){case 166:case 165:case 168:case 167:case 170:case 171:case 172:ze&=e.getSyntacticModifierFlags(xe),xe=xe.parent;break;default:return}var Je=xe.getSourceFile(),Oe=e.mapDefined(Se(Je,"super",xe),function(Fr){if(Fr.kind===106){var Xr=e.getSuperContainer(Fr,!1);return Xr&&e.isStatic(Xr)===!!ze&&Xr.parent.symbol===xe.symbol?N(Fr):void 0}});return[{definition:{type:0,symbol:xe.symbol},references:Oe}]}}function qi(v){return v.kind===79&&v.parent.kind===163&&v.parent.name===v}function ft(v,xe,ze){var Je=e.getThisContainer(v,!1),Oe=32;switch(Je.kind){case 168:case 167:if(e.isObjectLiteralMethod(Je)){Oe&=e.getSyntacticModifierFlags(Je),Je=Je.parent;break}case 166:case 165:case 170:case 171:case 172:Oe&=e.getSyntacticModifierFlags(Je),Je=Je.parent;break;case 303:if(e.isExternalModule(Je)||qi(v))return;case 255:case 212:break;default:return}var Fr=e.flatMap(Je.kind===303?xe:[Je.getSourceFile()],function(Or){return ze.throwIfCancellationRequested(),Se(Or,"this",e.isSourceFile(Je)?Or:Je).filter(function(We){if(!e.isThis(We))return!1;var mr=e.getThisContainer(We,!1);switch(Je.kind){case 212:case 255:return Je.symbol===mr.symbol;case 168:case 167:return e.isObjectLiteralMethod(Je)&&Je.symbol===mr.symbol;case 225:case 256:case 204:return mr.parent&&Je.symbol===mr.parent.symbol&&e.isStatic(mr)===!!Oe;case 303:return mr.kind===303&&!e.isExternalModule(mr)&&!qi(We)}})}).map(function(Or){return N(Or)}),Xr=e.firstDefined(Fr,function(Or){return e.isParameter(Or.node.parent)?Or.node:void 0});return[{definition:{type:3,node:Xr||v},references:Fr}]}function bt(v,xe,ze,Je){var Oe=e.getContextualTypeFromParentOrAncestorTypeNode(v,ze),Fr=e.flatMap(xe,function(Xr){return Je.throwIfCancellationRequested(),e.mapDefined(Se(Xr,v.text),function(Or){if(e.isStringLiteralLike(Or)&&Or.text===v.text)if(Oe){var We=e.getContextualTypeFromParentOrAncestorTypeNode(Or,ze);if(Oe!==ze.getStringType()&&Oe===We)return N(Or,2)}else return e.isNoSubstitutionTemplateLiteral(Or)&&!e.rangeIsOnSingleLine(Or,Xr)?void 0:N(Or,2)})});return[{definition:{type:4,node:v},references:Fr}]}function aa(v,xe,ze,Je,Oe,Fr){var Xr=[];return sr(v,xe,ze,Je,!(Je&&Oe),function(Or,We,mr){mr&&di(v)!==di(mr)&&(mr=void 0),Xr.push(mr||We||Or)},function(){return!Fr}),Xr}function sr(v,xe,ze,Je,Oe,Fr,Xr){var Or=e.getContainingObjectLiteralElement(xe);if(Or){var We=ze.getShorthandAssignmentValueSymbol(xe.parent);if(We&&Je)return Fr(We,void 0,void 0,3);var mr=ze.getContextualType(Or.parent),Nr=mr&&e.firstDefined(e.getPropertySymbolsFromContextualType(Or,ze,mr,!0),function(Vt){return xt(Vt,4)});if(Nr)return Nr;var Ur=Ge(xe,ze),si=Ur&&Fr(Ur,void 0,void 0,4);if(si)return si;var mi=We&&Fr(We,void 0,void 0,3);if(mi)return mi}var Ti=w(xe,v,ze);if(Ti){var hi=Fr(Ti,void 0,void 0,1);if(hi)return hi}var ki=xt(v);if(ki)return ki;if(v.valueDeclaration&&e.isParameterPropertyDeclaration(v.valueDeclaration,v.valueDeclaration.parent)){var Ui=ze.getSymbolsOfParameterPropertyDeclaration(e.cast(v.valueDeclaration,e.isParameter),v.name);return e.Debug.assert(Ui.length===2&&!!(Ui[0].flags&1)&&!!(Ui[1].flags&4)),xt(v.flags&1?Ui[1]:Ui[0])}var zi=e.getDeclarationOfKind(v,274);if(!Je||zi&&!zi.propertyName){var ri=zi&&ze.getExportSpecifierLocalTargetSymbol(zi);if(ri){var Gi=Fr(ri,void 0,void 0,1);if(Gi)return Gi}}if(!Je){var Rt=void 0;return Oe?Rt=e.isObjectBindingElementWithoutPropertyName(xe.parent)?e.getPropertySymbolFromBindingElement(ze,xe.parent):void 0:Rt=ua(v,ze),Rt&&xt(Rt,4)}e.Debug.assert(Je);var pa=Oe;if(pa){var Rt=ua(v,ze);return Rt&&xt(Rt,4)}function xt(Vt,St){return e.firstDefined(ze.getRootSymbols(Vt),function(Ci){return Fr(Vt,Ci,void 0,St)||(Ci.parent&&Ci.parent.flags&96&&Xr(Ci)?Ji(Ci.parent,Ci.name,ze,function(Hi){return Fr(Vt,Ci,Hi,St)}):void 0)})}function ua(Vt,St){var Ci=e.getDeclarationOfKind(Vt,202);if(Ci&&e.isObjectBindingElementWithoutPropertyName(Ci))return e.getPropertySymbolFromBindingElement(St,Ci)}}function Ji(v,xe,ze,Je){var Oe=new e.Map;return Fr(v);function Fr(Xr){if(!(!(Xr.flags&96)||!e.addToSeen(Oe,e.getSymbolId(Xr))))return e.firstDefined(Xr.declarations,function(Or){return e.firstDefined(e.getAllSuperTypeNodes(Or),function(We){var mr=ze.getTypeAtLocation(We),Nr=mr&&mr.symbol&&ze.getPropertyOfType(mr,xe);return mr&&Nr&&(e.firstDefined(ze.getRootSymbols(Nr),Je)||Fr(mr.symbol))})})}}function di(v){if(!v.valueDeclaration)return!1;var xe=e.getEffectiveModifierFlags(v.valueDeclaration);return!!(xe&32)}function X(v,xe,ze,Je){var Oe=Je.checker;return sr(xe,ze,Oe,!1,Je.options.use!==2||!!Je.options.providePrefixAndSuffixTextForRename,function(Fr,Xr,Or,We){return Or&&di(xe)!==di(Or)&&(Or=void 0),v.includes(Or||Xr||Fr)?{symbol:Xr&&!(e.getCheckFlags(Fr)&6)?Xr:Fr,kind:We}:void 0},function(Fr){return!(v.parents&&!v.parents.some(function(Xr){return li(Fr.parent,Xr,Je.inheritsFromCache,Oe)}))})}function Ye(v,xe){var ze=e.getMeaningFromLocation(v),Je=xe.declarations;if(Je){var Oe=void 0;do{Oe=ze;for(var Fr=0,Xr=Je;Fr<Xr.length;Fr++){var Or=Xr[Fr],We=e.getMeaningFromDeclaration(Or);We&ze&&(ze|=We)}}while(ze!==Oe)}return ze}D.getIntersectingMeaningFromDeclarations=Ye;function Be(v){return v.flags&8388608?!(e.isInterfaceDeclaration(v)||e.isTypeAliasDeclaration(v)):e.isVariableLike(v)?e.hasInitializer(v):e.isFunctionLikeDeclaration(v)?!!v.body:e.isClassLike(v)||e.isModuleOrEnumDeclaration(v)}function Qe(v,xe,ze){var Je=xe.getSymbolAtLocation(v),Oe=xe.getShorthandAssignmentValueSymbol(Je.valueDeclaration);if(Oe)for(var Fr=0,Xr=Oe.getDeclarations();Fr<Xr.length;Fr++){var Or=Xr[Fr];e.getMeaningFromDeclaration(Or)&1&&ze(Or)}}D.getReferenceEntriesForShorthandPropertyAssignment=Qe;function _r(v,xe,ze){e.forEachChild(v,function(Je){Je.kind===xe&&ze(Je),_r(Je,xe,ze)})}function hr(v){return e.tryGetClassExtendingExpressionWithTypeArguments(e.climbPastPropertyAccess(v).parent)}function Dr(v,xe,ze){var Je=e.isRightSideOfPropertyAccess(v)?v.parent:void 0,Oe=Je&&ze.getTypeAtLocation(Je.expression),Fr=e.mapDefined(Oe&&(Oe.isUnionOrIntersection()?Oe.types:Oe.symbol===xe.parent?void 0:[Oe]),function(Xr){return Xr.symbol&&Xr.symbol.flags&96?Xr.symbol:void 0});return Fr.length===0?void 0:Fr}function Me(v){return v.use===2&&v.providePrefixAndSuffixTextForRename}})(P=O.Core||(O.Core={}))})(a=e.FindAllReferences||(e.FindAllReferences={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(D){return(e.isFunctionExpression(D)||e.isClassExpression(D))&&e.isNamedDeclaration(D)}function W(D){return(e.isFunctionExpression(D)||e.isArrowFunction(D)||e.isClassExpression(D))&&e.isVariableDeclaration(D.parent)&&D===D.parent.initializer&&e.isIdentifier(D.parent.name)&&!!(e.getCombinedNodeFlags(D.parent)&2)}function N(D){return e.isSourceFile(D)||e.isModuleDeclaration(D)||e.isFunctionDeclaration(D)||e.isFunctionExpression(D)||e.isClassDeclaration(D)||e.isClassExpression(D)||e.isClassStaticBlockDeclaration(D)||e.isMethodDeclaration(D)||e.isMethodSignature(D)||e.isGetAccessorDeclaration(D)||e.isSetAccessorDeclaration(D)}function Q(D){return e.isSourceFile(D)||e.isModuleDeclaration(D)&&e.isIdentifier(D.name)||e.isFunctionDeclaration(D)||e.isClassDeclaration(D)||e.isClassStaticBlockDeclaration(D)||e.isMethodDeclaration(D)||e.isMethodSignature(D)||e.isGetAccessorDeclaration(D)||e.isSetAccessorDeclaration(D)||L(D)||W(D)}function pe(D){return e.isSourceFile(D)?D:e.isNamedDeclaration(D)?D.name:W(D)?D.parent.name:e.Debug.checkDefined(D.modifiers&&e.find(D.modifiers,F))}function F(D){return D.kind===88}function g(D,l){var _=pe(l);return _&&D.getSymbolAtLocation(_)}function S(D,l){if(e.isSourceFile(l))return{text:l.fileName,pos:0,end:0};if((e.isFunctionDeclaration(l)||e.isClassDeclaration(l))&&!e.isNamedDeclaration(l)){var _=l.modifiers&&e.find(l.modifiers,F);if(_)return{text:"default",pos:_.getStart(),end:_.getEnd()}}if(e.isClassStaticBlockDeclaration(l)){var J=l.getSourceFile(),w=e.skipTrivia(J.text,e.moveRangePastModifiers(l).pos),j=w+6,U=D.getTypeChecker(),z=U.getSymbolAtLocation(l.parent),y=z?"".concat(U.symbolToString(z,l.parent)," "):"";return{text:"".concat(y,"static {}"),pos:w,end:j}}var oe=W(l)?l.parent.name:e.Debug.checkDefined(e.getNameOfDeclaration(l),"Expected call hierarchy item to have a name"),ve=e.isIdentifier(oe)?e.idText(oe):e.isStringOrNumericLiteralLike(oe)?oe.text:e.isComputedPropertyName(oe)&&e.isStringOrNumericLiteralLike(oe.expression)?oe.expression.text:void 0;if(ve===void 0){var U=D.getTypeChecker(),z=U.getSymbolAtLocation(oe);z&&(ve=U.symbolToString(z,l))}if(ve===void 0){var ce=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0});ve=e.usingSingleLineStringWriter(function(m){return ce.writeNode(4,l,l.getSourceFile(),m)})}return{text:ve,pos:oe.getStart(),end:oe.getEnd()}}function H(D){var l,_;if(W(D))return e.isModuleBlock(D.parent.parent.parent.parent)&&e.isIdentifier(D.parent.parent.parent.parent.parent.name)?D.parent.parent.parent.parent.parent.name.getText():void 0;switch(D.kind){case 171:case 172:case 168:return D.parent.kind===204?(l=e.getAssignedName(D.parent))===null||l===void 0?void 0:l.getText():(_=e.getNameOfDeclaration(D.parent))===null||_===void 0?void 0:_.getText();case 255:case 256:case 260:if(e.isModuleBlock(D.parent)&&e.isIdentifier(D.parent.parent.name))return D.parent.parent.name.getText()}}function se(D,l){if(l.body)return l;if(e.isConstructorDeclaration(l))return e.getFirstConstructorWithBody(l.parent);if(e.isFunctionDeclaration(l)||e.isMethodDeclaration(l)){var _=g(D,l);return _&&_.valueDeclaration&&e.isFunctionLikeDeclaration(_.valueDeclaration)&&_.valueDeclaration.body?_.valueDeclaration:void 0}return l}function p(D,l){var _=g(D,l),J;if(_&&_.declarations){var w=e.indicesOf(_.declarations),j=e.map(_.declarations,function(ce){return{file:ce.getSourceFile().fileName,pos:ce.pos}});w.sort(function(ce,m){return e.compareStringsCaseSensitive(j[ce].file,j[m].file)||j[ce].pos-j[m].pos});for(var U=e.map(w,function(ce){return _.declarations[ce]}),z=void 0,y=0,oe=U;y<oe.length;y++){var ve=oe[y];Q(ve)&&((!z||z.parent!==ve.parent||z.end!==ve.pos)&&(J=e.append(J,ve)),z=ve)}}return J}function C(D,l){var _,J,w;return e.isClassStaticBlockDeclaration(l)?l:e.isFunctionLikeDeclaration(l)?(J=(_=se(D,l))!==null&&_!==void 0?_:p(D,l))!==null&&J!==void 0?J:l:(w=p(D,l))!==null&&w!==void 0?w:l}function G(D,l){for(var _=D.getTypeChecker(),J=!1;;){if(Q(l))return C(_,l);if(N(l)){var w=e.findAncestor(l,Q);return w&&C(_,w)}if(e.isDeclarationName(l)){if(Q(l.parent))return C(_,l.parent);if(N(l.parent)){var w=e.findAncestor(l.parent,Q);return w&&C(_,w)}return e.isVariableDeclaration(l.parent)&&l.parent.initializer&&W(l.parent.initializer)?l.parent.initializer:void 0}if(e.isConstructorDeclaration(l))return Q(l.parent)?l.parent:void 0;if(l.kind===124&&e.isClassStaticBlockDeclaration(l.parent)){l=l.parent;continue}if(e.isVariableDeclaration(l)&&l.initializer&&W(l.initializer))return l.initializer;if(!J){var j=_.getSymbolAtLocation(l);if(j&&(j.flags&2097152&&(j=_.getAliasedSymbol(j)),j.valueDeclaration)){J=!0,l=j.valueDeclaration;continue}}return}}O.resolveCallHierarchyDeclaration=G;function E(D,l){var _=l.getSourceFile(),J=S(D,l),w=H(l),j=e.getNodeKind(l),U=e.getNodeModifiers(l),z=e.createTextSpanFromBounds(e.skipTrivia(_.text,l.getFullStart(),!1,!0),l.getEnd()),y=e.createTextSpanFromBounds(J.pos,J.end);return{file:_.fileName,kind:j,kindModifiers:U,name:J.text,containerName:w,span:z,selectionSpan:y}}O.createCallHierarchyItem=E;function ue(D){return D!==void 0}function B(D){if(D.kind===1){var l=D.node;if(e.isCallOrNewExpressionTarget(l,!0,!0)||e.isTaggedTemplateTag(l,!0,!0)||e.isDecoratorTarget(l,!0,!0)||e.isJsxOpeningLikeElementTagName(l,!0,!0)||e.isRightSideOfPropertyAccess(l)||e.isArgumentExpressionOfElementAccess(l)){var _=l.getSourceFile(),J=e.findAncestor(l,Q)||_;return{declaration:J,range:e.createTextRangeFromNode(l,_)}}}}function re(D){return e.getNodeId(D.declaration)}function M(D,l){return{from:D,fromSpans:l}}function x(D,l){return M(E(D,l[0].declaration),e.map(l,function(_){return e.createTextSpanFromRange(_.range)}))}function ie(D,l,_){if(e.isSourceFile(l)||e.isModuleDeclaration(l)||e.isClassStaticBlockDeclaration(l))return[];var J=pe(l),w=e.filter(e.FindAllReferences.findReferenceOrRenameEntries(D,_,D.getSourceFiles(),J,0,{use:1},B),ue);return w?e.group(w,re,function(j){return x(D,j)}):[]}O.getIncomingCalls=ie;function _e(D,l){function _(w){var j=e.isTaggedTemplateExpression(w)?w.tag:e.isJsxOpeningLikeElement(w)?w.tagName:e.isAccessExpression(w)||e.isClassStaticBlockDeclaration(w)?w:w.expression,U=G(D,j);if(U){var z=e.createTextRangeFromNode(j,w.getSourceFile());if(e.isArray(U))for(var y=0,oe=U;y<oe.length;y++){var ve=oe[y];l.push({declaration:ve,range:z})}else l.push({declaration:U,range:z})}}function J(w){if(!!w&&!(w.flags&8388608)){if(Q(w)){if(e.isClassLike(w))for(var j=0,U=w.members;j<U.length;j++){var z=U[j];z.name&&e.isComputedPropertyName(z.name)&&J(z.name.expression)}return}switch(w.kind){case 79:case 264:case 265:case 271:case 257:case 258:return;case 169:_(w);return;case 210:case 228:J(w.expression);return;case 253:case 163:J(w.name),J(w.initializer);return;case 207:_(w),J(w.expression),e.forEach(w.arguments,J);return;case 208:_(w),J(w.expression),e.forEach(w.arguments,J);return;case 209:_(w),J(w.tag),J(w.template);return;case 279:case 278:_(w),J(w.tagName),J(w.attributes);return;case 164:_(w),J(w.expression);return;case 205:case 206:_(w),e.forEachChild(w,J);break}e.isPartOfTypeNode(w)||e.forEachChild(w,J)}}return J}function Y(D,l){e.forEach(D.statements,l)}function Z(D,l){!e.hasSyntacticModifier(D,2)&&D.body&&e.isModuleBlock(D.body)&&e.forEach(D.body.statements,l)}function k(D,l,_){var J=se(D,l);J&&(e.forEach(J.parameters,_),_(J.body))}function I(D,l){l(D.body)}function ne(D,l){e.forEach(D.decorators,l);var _=e.getClassExtendsHeritageElement(D);_&&l(_.expression);for(var J=0,w=D.members;J<w.length;J++){var j=w[J];e.forEach(j.decorators,l),e.isPropertyDeclaration(j)?l(j.initializer):e.isConstructorDeclaration(j)&&j.body?(e.forEach(j.parameters,l),l(j.body)):e.isClassStaticBlockDeclaration(j)&&l(j)}}function ee(D,l){var _=[],J=_e(D,_);switch(l.kind){case 303:Y(l,J);break;case 260:Z(l,J);break;case 255:case 212:case 213:case 168:case 171:case 172:k(D.getTypeChecker(),l,J);break;case 256:case 225:ne(l,J);break;case 169:I(l,J);break;default:e.Debug.assertNever(l)}return _}function A(D,l){return{to:D,fromSpans:l}}function f(D,l){return A(E(D,l[0].declaration),e.map(l,function(_){return e.createTextSpanFromRange(_.range)}))}function P(D,l){return l.flags&8388608||e.isMethodSignature(l)?[]:e.group(ee(D,l),re,function(_){return f(D,_)})}O.getOutgoingCalls=P})(a=e.CallHierarchy||(e.CallHierarchy={}))})(Pe||(Pe={}));var Pe;(function(e){function a(p,C,G,E,ue,B,re){var M=e.hostUsesCaseSensitiveFileNames(E),x=e.createGetCanonicalFileName(M),ie=O(C,G,x,re),_e=O(G,C,x,re);return e.textChanges.ChangeTracker.with({host:E,formatContext:ue,preferences:B},function(Y){W(p,Y,ie,C,G,E.getCurrentDirectory(),M),N(p,Y,ie,_e,E,x)})}e.getEditsForFileRename=a;function O(p,C,G,E){var ue=G(p);return function(re){var M=E&&E.tryGetSourcePosition({fileName:re,pos:0}),x=B(M?M.fileName:re);return M?x===void 0?void 0:L(M.fileName,x,re,G):x};function B(re){if(G(re)===ue)return C;var M=e.tryRemoveDirectoryPrefix(re,ue,G);return M===void 0?void 0:C+"/"+M}}e.getPathUpdater=O;function L(p,C,G,E){var ue=e.getRelativePathFromFile(p,C,E);return pe(e.getDirectoryPath(G),ue)}function W(p,C,G,E,ue,B,re){var M=p.getCompilerOptions().configFile;if(!M)return;var x=e.getDirectoryPath(M.fileName),ie=e.getTsConfigObjectLiteralExpression(M);if(!ie)return;se(ie,function(k,I){switch(I){case"files":case"include":case"exclude":{var ne=_e(k);if(ne||I!=="include"||!e.isArrayLiteralExpression(k.initializer))return;var ee=e.mapDefined(k.initializer.elements,function(f){return e.isStringLiteral(f)?f.text:void 0});if(ee.length===0)return;var A=e.getFileMatcherPatterns(x,[],ee,re,B);e.getRegexFromPattern(e.Debug.checkDefined(A.includeFilePattern),re).test(E)&&!e.getRegexFromPattern(e.Debug.checkDefined(A.includeFilePattern),re).test(ue)&&C.insertNodeAfter(M,e.last(k.initializer.elements),e.factory.createStringLiteral(Z(ue)));return}case"compilerOptions":se(k.initializer,function(f,P){var D=e.getOptionFromName(P);D&&(D.isFilePath||D.type==="list"&&D.element.isFilePath)?_e(f):P==="paths"&&se(f.initializer,function(l){if(!!e.isArrayLiteralExpression(l.initializer))for(var _=0,J=l.initializer.elements;_<J.length;_++){var w=J[_];Y(w)}})});return}});function _e(k){for(var I=e.isArrayLiteralExpression(k.initializer)?k.initializer.elements:[k.initializer],ne=!1,ee=0,A=I;ee<A.length;ee++){var f=A[ee];ne=Y(f)||ne}return ne}function Y(k){if(!e.isStringLiteral(k))return!1;var I=pe(x,k.text),ne=G(I);return ne!==void 0?(C.replaceRangeWithText(M,H(k,M),Z(ne)),!0):!1}function Z(k){return e.getRelativePathFromDirectory(x,k,!re)}}function N(p,C,G,E,ue,B){for(var re=p.getSourceFiles(),M=function(Y){var Z=G(Y.fileName),k=Z!=null?Z:Y.fileName,I=e.getDirectoryPath(k),ne=E(Y.fileName),ee=ne||Y.fileName,A=e.getDirectoryPath(ee),f=Z!==void 0||ne!==void 0;S(Y,C,function(P){if(!!e.pathIsRelative(P)){var D=pe(A,P),l=G(D);return l===void 0?void 0:e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(I,l,B))}},function(P){var D=p.getTypeChecker().getSymbolAtLocation(P);if(!((D==null?void 0:D.declarations)&&D.declarations.some(function(_){return e.isAmbientModule(_)}))){var l=ne!==void 0?g(P,e.resolveModuleName(P.text,ee,p.getCompilerOptions(),ue),G,re):F(D,P,Y,p,ue,G);return l!==void 0&&(l.updated||f&&e.pathIsRelative(P.text))?e.moduleSpecifiers.updateModuleSpecifier(p.getCompilerOptions(),Y,B(k),l.newFileName,e.createModuleSpecifierResolutionHost(p,ue),P.text):void 0}})},x=0,ie=re;x<ie.length;x++){var _e=ie[x];M(_e)}}function Q(p,C){return e.normalizePath(e.combinePaths(p,C))}function pe(p,C){return e.ensurePathIsNonModuleName(Q(p,C))}function F(p,C,G,E,ue,B){if(p){var re=e.find(p.declarations,e.isSourceFile).fileName,M=B(re);return M===void 0?{newFileName:re,updated:!1}:{newFileName:M,updated:!0}}else{var x=e.getModeForUsageLocation(G,C),ie=ue.resolveModuleNames?ue.getResolvedModuleWithFailedLookupLocationsFromCache&&ue.getResolvedModuleWithFailedLookupLocationsFromCache(C.text,G.fileName,x):E.getResolvedModuleWithFailedLookupLocationsFromCache(C.text,G.fileName,x);return g(C,ie,B,E.getSourceFiles())}}function g(p,C,G,E){if(!C)return;if(C.resolvedModule){var ue=x(C.resolvedModule.resolvedFileName);if(ue)return ue}var B=e.forEach(C.failedLookupLocations,re)||e.pathIsRelative(p.text)&&e.forEach(C.failedLookupLocations,M);if(B)return B;return C.resolvedModule&&{newFileName:C.resolvedModule.resolvedFileName,updated:!1};function re(ie){var _e=G(ie);return _e&&e.find(E,function(Y){return Y.fileName===_e})?M(ie):void 0}function M(ie){return e.endsWith(ie,"/package.json")?void 0:x(ie)}function x(ie){var _e=G(ie);return _e&&{newFileName:_e,updated:!0}}}function S(p,C,G,E){for(var ue=0,B=p.referencedFiles||e.emptyArray;ue<B.length;ue++){var re=B[ue],M=G(re.fileName);M!==void 0&&M!==p.text.slice(re.pos,re.end)&&C.replaceRangeWithText(p,re,M)}for(var x=0,ie=p.imports;x<ie.length;x++){var _e=ie[x],M=E(_e);M!==void 0&&M!==_e.text&&C.replaceRangeWithText(p,H(_e,p),M)}}function H(p,C){return e.createRange(p.getStart(C)+1,p.end-1)}function se(p,C){if(!!e.isObjectLiteralExpression(p))for(var G=0,E=p.properties;G<E.length;G++){var ue=E[G];e.isPropertyAssignment(ue)&&e.isStringLiteral(ue.name)&&C(ue,ue.name.text)}}})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(Z,k,I){var ne=pe(k,I,Z),ee=ne&&[x(ne.reference.fileName,ne.fileName,ne.unverified)]||e.emptyArray;if(ne!=null&&ne.file)return ee;var A=e.getTouchingPropertyName(k,I);if(A!==k){var f=A.parent,P=Z.getTypeChecker();if(A.kind===158||e.isJSDocOverrideTag(A)&&e.rangeContainsPosition(A.tagName,I))return Q(P,A)||e.emptyArray;if(e.isJumpStatementTarget(A)){var D=e.getTargetLabel(A.parent,A.text);return D?[ue(P,D,"label",A.text,void 0)]:void 0}if(e.isStaticModifier(A)&&e.isClassStaticBlockDeclaration(A.parent)){var l=A.parent.parent,_=p(l,P),J=e.filter(l.members,e.isClassStaticBlockDeclaration),w=_?P.symbolToString(_,l):"",j=A.getSourceFile();return e.map(J,function(ae){var V=e.moveRangePastModifiers(ae).pos;return V=e.skipTrivia(j.text,V),ue(P,ae,"constructor","static {}",w,{start:V,length:6})})}var U=p(A,P);if(!U)return e.concatenate(ee,se(A,P));var z=_e(P,A);if(z&&!(e.isJsxOpeningLikeElement(A.parent)&&Y(z))){var y=re(P,z);if(P.getRootSymbols(U).some(function(ae){return W(ae,z)}))return[y];var oe=G(P,U,A,z)||e.emptyArray;return A.kind===106?qe([y],oe,!0):qe(qe([],oe,!0),[y],!1)}if(A.parent.kind===295){var ve=P.getShorthandAssignmentValueSymbol(U.valueDeclaration),ce=ve!=null&&ve.declarations?ve.declarations.map(function(ae){return E(ae,P,ve,A)}):e.emptyArray;return e.concatenate(ce,N(P,A)||e.emptyArray)}if(e.isPropertyName(A)&&e.isBindingElement(f)&&e.isObjectBindingPattern(f.parent)&&A===(f.propertyName||f.name)){var m=e.getNameFromPropertyName(A),de=P.getTypeAtLocation(f.parent);return m===void 0?e.emptyArray:e.flatMap(de.isUnion()?de.types:[de],function(ae){var V=ae.getProperty(m);return V&&G(P,V,A)})}return e.concatenate(ee,N(P,A)||G(P,U,A))}}O.getDefinitionAtPosition=L;function W(Z,k){return Z===k.symbol||Z===k.symbol.parent||e.isAssignmentExpression(k.parent)||!e.isCallLikeExpression(k.parent)&&Z===k.parent.symbol}function N(Z,k){var I=e.getContainingObjectLiteralElement(k);if(I){var ne=I&&Z.getContextualType(I.parent);if(ne)return e.flatMap(e.getPropertySymbolsFromContextualType(I,Z,ne,!1),function(ee){return G(Z,ee,k)})}}function Q(Z,k){var I=e.findAncestor(k,e.isClassElement);if(!!(I&&I.name)){var ne=e.findAncestor(I,e.isClassLike);if(!!ne){var ee=e.getEffectiveBaseTypeNode(ne),A=ee?Z.getTypeAtLocation(ee):void 0;if(!!A){var f=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(I.name)),P=e.hasStaticModifier(I)?Z.getPropertyOfType(Z.getTypeOfSymbolAtLocation(A.symbol,ne),f):Z.getPropertyOfType(A,f);if(!!P)return G(Z,P,k)}}}}function pe(Z,k,I){var ne,ee,A=M(Z.referencedFiles,k);if(A){var f=I.getSourceFileFromReference(Z,A);return f&&{reference:A,fileName:f.fileName,file:f,unverified:!1}}var P=M(Z.typeReferenceDirectives,k);if(P){var D=I.getResolvedTypeReferenceDirectives().get(P.fileName),f=D&&I.getSourceFile(D.resolvedFileName);return f&&{reference:P,fileName:f.fileName,file:f,unverified:!1}}var l=M(Z.libReferenceDirectives,k);if(l){var f=I.getLibFileFromReference(l);return f&&{reference:l,fileName:f.fileName,file:f,unverified:!1}}if(!((ne=Z.resolvedModules)===null||ne===void 0)&&ne.size()){var _=e.getTouchingToken(Z,k);if(e.isModuleSpecifierLike(_)&&e.isExternalModuleNameRelative(_.text)&&Z.resolvedModules.has(_.text,e.getModeForUsageLocation(Z,_))){var J=(ee=Z.resolvedModules.get(_.text,e.getModeForUsageLocation(Z,_)))===null||ee===void 0?void 0:ee.resolvedFileName,w=J||e.resolvePath(e.getDirectoryPath(Z.fileName),_.text);return{file:I.getSourceFile(w),fileName:w,reference:{pos:_.getStart(),end:_.getEnd(),fileName:_.text},unverified:!J}}}}O.getReferenceAtPosition=pe;function F(Z,k,I){var ne=e.getTouchingPropertyName(k,I);if(ne!==k){var ee=p(ne,Z);if(!!ee){var A=Z.getTypeOfSymbolAtLocation(ee,ne),f=S(ee,A,Z),P=f&&g(f,Z,ne),D=P&&P.length!==0?P:g(A,Z,ne);return D.length?D:!(ee.flags&111551)&&ee.flags&788968?G(Z,e.skipAlias(ee,Z),ne):void 0}}}O.getTypeDefinitionAtPosition=F;function g(Z,k,I){return e.flatMap(Z.isUnion()&&!(Z.flags&32)?Z.types:[Z],function(ne){return ne.symbol&&G(k,ne.symbol,I)})}function S(Z,k,I){if(k.symbol===Z||Z.valueDeclaration&&k.symbol&&e.isVariableDeclaration(Z.valueDeclaration)&&Z.valueDeclaration.initializer===k.symbol.valueDeclaration){var ne=k.getCallSignatures();if(ne.length===1)return I.getReturnTypeOfSignature(e.first(ne))}}function H(Z,k,I){var ne=L(Z,k,I);if(!(!ne||ne.length===0)){var ee=M(k.referencedFiles,I)||M(k.typeReferenceDirectives,I)||M(k.libReferenceDirectives,I);if(ee)return{definitions:ne,textSpan:e.createTextSpanFromRange(ee)};var A=e.getTouchingPropertyName(k,I),f=e.createTextSpan(A.getStart(),A.getWidth());return{definitions:ne,textSpan:f}}}O.getDefinitionAndBoundSpan=H;function se(Z,k){return e.mapDefined(k.getIndexInfosAtLocation(Z),function(I){return I.declaration&&re(k,I.declaration)})}function p(Z,k){var I=k.getSymbolAtLocation(Z);if((I==null?void 0:I.declarations)&&I.flags&2097152&&C(Z,I.declarations[0])){var ne=k.getAliasedSymbol(I);if(ne.declarations)return ne}return I}function C(Z,k){if(Z.kind!==79)return!1;if(Z.parent===k)return!0;switch(k.kind){case 266:case 264:return!0;case 269:return k.parent.kind===268;case 202:case 253:return e.isInJSFile(k)&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(k);default:return!1}}function G(Z,k,I,ne){var ee=e.filter(k.declarations,function(D){return D!==ne&&(!e.isAssignmentDeclaration(D)||D===k.valueDeclaration)})||void 0;return A()||f()||e.map(ee,function(D){return E(D,Z,k,I)});function A(){if(k.flags&32&&!(k.flags&19)&&(e.isNewExpressionTarget(I)||I.kind===134)){var D=e.find(ee,e.isClassLike)||e.Debug.fail("Expected declaration to have at least one class-like declaration");return P(D.members,!0)}}function f(){return e.isCallOrNewExpressionTarget(I)||e.isNameOfFunctionDeclaration(I)?P(ee,!1):void 0}function P(D,l){if(!!D){var _=D.filter(l?e.isConstructorDeclaration:e.isFunctionLike),J=_.filter(function(w){return!!w.body});return _.length?J.length!==0?J.map(function(w){return E(w,Z,k,I)}):[E(e.last(_),Z,k,I)]:void 0}}}function E(Z,k,I,ne){var ee=k.symbolToString(I),A=e.SymbolDisplay.getSymbolKind(k,I,ne),f=I.parent?k.symbolToString(I.parent,ne):"";return ue(k,Z,A,ee,f)}function ue(Z,k,I,ne,ee,A){var f=k.getSourceFile();if(!A){var P=e.getNameOfDeclaration(k)||k;A=e.createTextSpanFromNode(P,f)}return Ve(Ve({fileName:f.fileName,textSpan:A,kind:I,name:ne,containerKind:void 0,containerName:ee},e.FindAllReferences.toContextSpan(A,f,e.FindAllReferences.getContextNode(k))),{isLocal:!B(Z,k)})}function B(Z,k){if(Z.isDeclarationVisible(k))return!0;if(!k.parent)return!1;if(e.hasInitializer(k.parent)&&k.parent.initializer===k)return B(Z,k.parent);switch(k.kind){case 166:case 171:case 172:case 168:if(e.hasEffectiveModifier(k,8))return!1;case 170:case 294:case 295:case 204:case 225:case 213:case 212:return B(Z,k.parent);default:return!1}}function re(Z,k){return E(k,Z,k.symbol,k)}function M(Z,k){return e.find(Z,function(I){return e.textRangeContainsPositionInclusive(I,k)})}O.findReferenceInPosition=M;function x(Z,k,I){return{fileName:k,textSpan:e.createTextSpanFromBounds(0,0),kind:"script",name:Z,containerName:void 0,containerKind:void 0,unverified:I}}function ie(Z){var k=e.findAncestor(Z,function(ne){return!e.isRightSideOfPropertyAccess(ne)}),I=k==null?void 0:k.parent;return I&&e.isCallLikeExpression(I)&&e.getInvokedExpression(I)===k?I:void 0}function _e(Z,k){var I=ie(k),ne=I&&Z.getResolvedSignature(I);return e.tryCast(ne&&ne.declaration,function(ee){return e.isFunctionLike(ee)&&!e.isFunctionTypeNode(ee)})}function Y(Z){switch(Z.kind){case 170:case 179:case 174:return!0;default:return!1}}})(a=e.GoToDefinition||(e.GoToDefinition={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","listens","member","memberof","method","mixes","module","name","namespace","override","package","param","private","property","protected","public","readonly","requires","returns","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],W,N;function Q(k,I){var ne=[];return e.forEachUnique(k,function(ee){for(var A=0,f=F(ee);A<f.length;A++){var P=f[A];if(!(P.comment===void 0||e.isJSDoc(P)&&ee.kind!==343&&ee.kind!==336&&P.tags&&P.tags.some(function(l){return l.kind===343||l.kind===336})&&!P.tags.some(function(l){return l.kind===338||l.kind===339}))){var D=S(P.comment,I);e.contains(ne,D,pe)||ne.push(D)}}}),e.flatten(e.intersperse(ne,[e.lineBreakPart()]))}O.getJsDocCommentsFromDeclarations=Q;function pe(k,I){return e.arraysEqual(k,I,function(ne,ee){return ne.kind===ee.kind&&ne.text===ee.text})}function F(k){switch(k.kind){case 338:case 345:return[k];case 336:case 343:return[k,k.parent];default:return e.getJSDocCommentsAndTags(k)}}function g(k,I){var ne=[];return e.forEachUnique(k,function(ee){var A=e.getJSDocTags(ee);if(!(A.some(function(l){return l.kind===343||l.kind===336})&&!A.some(function(l){return l.kind===338||l.kind===339})))for(var f=0,P=A;f<P.length;f++){var D=P[f];ne.push({name:D.tagName.text,text:H(D,I)})}}),ne}O.getJsDocTagsFromDeclarations=g;function S(k,I){return typeof k=="string"?[e.textPart(k)]:e.flatMap(k,function(ne){return ne.kind===319?[e.textPart(ne.text)]:e.buildLinkParts(ne,I)})}function H(k,I){var ne=k.comment,ee=k.kind,A=se(ee);switch(ee){case 327:return _(k.class);case 326:return _(k.class);case 342:var f=k,P=[];if(f.constraint&&P.push(e.textPart(f.constraint.getText())),e.length(f.typeParameters)){e.length(P)&&P.push(e.spacePart());var D=f.typeParameters[f.typeParameters.length-1];e.forEach(f.typeParameters,function(w){P.push(A(w.getText())),D!==w&&P.push.apply(P,[e.punctuationPart(27),e.spacePart()])})}return ne&&P.push.apply(P,qe([e.spacePart()],S(ne,I),!0)),P;case 341:return _(k.typeExpression);case 343:case 336:case 345:case 338:case 344:var l=k.name;return l?_(l):ne===void 0?void 0:S(ne,I);default:return ne===void 0?void 0:S(ne,I)}function _(w){return J(w.getText())}function J(w){return ne?w.match(/^https?$/)?qe([e.textPart(w)],S(ne,I),!0):qe([A(w),e.spacePart()],S(ne,I),!0):[e.textPart(w)]}}function se(k){switch(k){case 338:return e.parameterNamePart;case 345:return e.propertyNamePart;case 342:return e.typeParameterNamePart;case 343:case 336:return e.typeAliasNamePart;default:return e.textPart}}function p(){return W||(W=e.map(L,function(k){return{name:k,kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}))}O.getJSDocTagNameCompletions=p,O.getJSDocTagNameCompletionDetails=G;function C(){return N||(N=e.map(L,function(k){return{name:"@".concat(k),kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}))}O.getJSDocTagCompletions=C;function G(k){return{name:k,kind:"",kindModifiers:"",displayParts:[e.textPart(k)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}O.getJSDocTagCompletionDetails=G;function E(k){if(!e.isIdentifier(k.name))return e.emptyArray;var I=k.name.text,ne=k.parent,ee=ne.parent;return e.isFunctionLike(ee)?e.mapDefined(ee.parameters,function(A){if(!!e.isIdentifier(A.name)){var f=A.name.text;if(!(ne.tags.some(function(P){return P!==k&&e.isJSDocParameterTag(P)&&e.isIdentifier(P.name)&&P.name.escapedText===f})||I!==void 0&&!e.startsWith(f,I)))return{name:f,kind:"parameter",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}}):[]}O.getJSDocParameterNameCompletions=E;function ue(k){return{name:k,kind:"parameter",kindModifiers:"",displayParts:[e.textPart(k)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}O.getJSDocParameterNameCompletionDetails=ue;function B(k,I,ne,ee){var A=e.getTokenAtPosition(I,ne),f=e.findAncestor(A,e.isJSDoc);if(!(f&&(f.comment!==void 0||e.length(f.tags)))){var P=A.getStart(I);if(!(!f&&P<ne)){var D=ie(A,ee);if(!!D){var l=D.commentOwner,_=D.parameters,J=D.hasReturn;if(!(l.getStart(I)<ne)){var w=re(I,ne),j=e.hasJSFileExtension(I.fileName),U=(_?M(_||[],j,w,k):"")+(J?x(w,k):""),z="/**",y=" */";if(U){var oe=z+k+w+" * ",ve=P===ne?k+w:"",ce=oe+k+U+w+y+ve;return{newText:ce,caretOffset:oe.length}}return{newText:z+y,caretOffset:3}}}}}}O.getDocCommentTemplateAtPosition=B;function re(k,I){for(var ne=k.text,ee=e.getLineStartPositionForPosition(I,k),A=ee;A<=I&&e.isWhiteSpaceSingleLine(ne.charCodeAt(A));A++);return ne.slice(ee,A)}function M(k,I,ne,ee){return k.map(function(A,f){var P=A.name,D=A.dotDotDotToken,l=P.kind===79?P.text:"param"+f,_=I?D?"{...any} ":"{any} ":"";return"".concat(ne," * @param ").concat(_).concat(l).concat(ee)}).join("")}function x(k,I){return"".concat(k," * @returns").concat(I)}function ie(k,I){return e.forEachAncestor(k,function(ne){return _e(ne,I)})}function _e(k,I){switch(k.kind){case 255:case 212:case 168:case 170:case 167:case 213:var ne=k;return{commentOwner:k,parameters:ne.parameters,hasReturn:Y(ne,I)};case 294:return _e(k.initializer,I);case 256:case 257:case 165:case 259:case 297:case 258:return{commentOwner:k};case 236:{var ee=k,A=ee.declarationList.declarations,f=A.length===1&&A[0].initializer?Z(A[0].initializer):void 0;return f?{commentOwner:k,parameters:f.parameters,hasReturn:Y(f,I)}:{commentOwner:k}}case 303:return"quit";case 260:return k.parent.kind===260?void 0:{commentOwner:k};case 237:return _e(k.expression,I);case 220:{var P=k;return e.getAssignmentDeclarationKind(P)===0?"quit":e.isFunctionLike(P.right)?{commentOwner:k,parameters:P.right.parameters,hasReturn:Y(P.right,I)}:{commentOwner:k}}case 166:var D=k.initializer;if(D&&(e.isFunctionExpression(D)||e.isArrowFunction(D)))return{commentOwner:k,parameters:D.parameters,hasReturn:Y(D,I)}}}function Y(k,I){return!!(I!=null&&I.generateReturnInDocTemplate)&&(e.isArrowFunction(k)&&e.isExpression(k.body)||e.isFunctionLikeDeclaration(k)&&k.body&&e.isBlock(k.body)&&!!e.forEachReturnStatement(k.body,function(ne){return ne}))}function Z(k){for(;k.kind===211;)k=k.expression;switch(k.kind){case 212:case 213:return k;case 225:return e.find(k.members,e.isConstructorDeclaration)}}})(a=e.JsDoc||(e.JsDoc={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(se,p,C,G,E,ue){var B=e.createPatternMatcher(G);if(!B)return e.emptyArray;for(var re=[],M=function(Y){if(C.throwIfCancellationRequested(),ue&&Y.isDeclarationFile)return"continue";Y.getNamedDeclarations().forEach(function(Z,k){W(B,k,Z,p,Y.fileName,re)})},x=0,ie=se;x<ie.length;x++){var _e=ie[x];M(_e)}return re.sort(S),(E===void 0?re:re.slice(0,E)).map(H)}O.getNavigateToItems=L;function W(se,p,C,G,E,ue){var B=se.getMatchForLastSegmentOfPattern(p);if(!!B)for(var re=0,M=C;re<M.length;re++){var x=M[re];if(!!N(x,G))if(se.patternContainsDots){var ie=se.getFullMatch(g(x),p);ie&&ue.push({name:p,fileName:E,matchKind:ie.kind,isCaseSensitive:ie.isCaseSensitive,declaration:x})}else ue.push({name:p,fileName:E,matchKind:B.kind,isCaseSensitive:B.isCaseSensitive,declaration:x})}}function N(se,p){switch(se.kind){case 266:case 269:case 264:var C=p.getSymbolAtLocation(se.name),G=p.getAliasedSymbol(C);return C.escapedName!==G.escapedName;default:return!0}}function Q(se,p){var C=e.getNameOfDeclaration(se);return!!C&&(F(C,p)||C.kind===161&&pe(C.expression,p))}function pe(se,p){return F(se,p)||e.isPropertyAccessExpression(se)&&(p.push(se.name.text),!0)&&pe(se.expression,p)}function F(se,p){return e.isPropertyNameLiteral(se)&&(p.push(e.getTextOfIdentifierOrLiteral(se)),!0)}function g(se){var p=[],C=e.getNameOfDeclaration(se);if(C&&C.kind===161&&!pe(C.expression,p))return e.emptyArray;p.shift();for(var G=e.getContainerNode(se);G;){if(!Q(G,p))return e.emptyArray;G=e.getContainerNode(G)}return p.reverse()}function S(se,p){return e.compareValues(se.matchKind,p.matchKind)||e.compareStringsCaseSensitiveUI(se.name,p.name)}function H(se){var p=se.declaration,C=e.getContainerNode(p),G=C&&e.getNameOfDeclaration(C);return{name:se.name,kind:e.getNodeKind(p),kindModifiers:e.getNodeModifiers(p),matchKind:e.PatternMatchKind[se.matchKind],isCaseSensitive:se.isCaseSensitive,fileName:se.fileName,textSpan:e.createTextSpanFromNode(p),containerName:G?G.text:"",containerKind:G?e.getNodeKind(C):""}}})(a=e.NavigateTo||(e.NavigateTo={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L,W=/\s+/g,N=150,Q,pe,F=[],g,S=[],H,se=[];function p(he,we){Q=we,pe=he;try{return e.map(ce(re(he)),de)}finally{G()}}O.getNavigationBarItems=p;function C(he,we){Q=we,pe=he;try{return m(re(he))}finally{G()}}O.getNavigationTree=C;function G(){pe=void 0,Q=void 0,F=[],g=void 0,se=[]}function E(he){return er(he.getText(pe))}function ue(he){return he.node.kind}function B(he,we){he.children?he.children.push(we):he.children=[we]}function re(he){e.Debug.assert(!F.length);var we={node:he,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};g=we;for(var ye=0,Se=he.statements;ye<Se.length;ye++){var ge=Se[ye];A(ge)}return k(),e.Debug.assert(!g&&!F.length),we}function M(he,we){B(g,x(he,we))}function x(he,we){return{node:he,name:we||(e.isDeclaration(he)||e.isExpression(he)?e.getNameOfDeclaration(he):void 0),additionalNodes:void 0,parent:g,children:void 0,indent:g.indent+1}}function ie(he){H||(H=new e.Map),H.set(he,!0)}function _e(he){for(var we=0;we<he;we++)k()}function Y(he,we){for(var ye=[];!e.isPropertyNameLiteral(we);){var Se=e.getNameOrArgument(we),ge=e.getElementOrPropertyAccessName(we);we=we.expression,!(ge==="prototype"||e.isPrivateIdentifier(Se))&&ye.push(Se)}ye.push(we);for(var Fe=ye.length-1;Fe>0;Fe--){var Se=ye[Fe];Z(he,Se)}return[ye.length-1,ye[0]]}function Z(he,we){var ye=x(he,we);B(g,ye),F.push(g),S.push(H),H=void 0,g=ye}function k(){g.children&&(f(g.children,g),z(g.children)),g=F.pop(),H=S.pop()}function I(he,we,ye){Z(he,ye),A(we),k()}function ne(he){he.initializer&&Ge(he.initializer)?(Z(he),e.forEachChild(he.initializer,A),k()):I(he,he.initializer)}function ee(he){return!e.hasDynamicName(he)||he.kind!==220&&e.isPropertyAccessExpression(he.name.expression)&&e.isIdentifier(he.name.expression.expression)&&e.idText(he.name.expression.expression)==="Symbol"}function A(he){var we;if(Q.throwIfCancellationRequested(),!(!he||e.isToken(he)))switch(he.kind){case 170:var ye=he;I(ye,ye.body);for(var Se=0,ge=ye.parameters;Se<ge.length;Se++){var Fe=ge[Se];e.isParameterPropertyDeclaration(Fe,ye)&&M(Fe)}break;case 168:case 171:case 172:case 167:ee(he)&&I(he,he.body);break;case 166:ee(he)&&ne(he);break;case 165:ee(he)&&M(he);break;case 266:var cr=he;cr.name&&M(cr.name);var ur=cr.namedBindings;if(ur)if(ur.kind===267)M(ur);else for(var Ir=0,dr=ur.elements;Ir<dr.length;Ir++){var Br=dr[Ir];M(Br)}break;case 295:I(he,he.name);break;case 296:var Tr=he.expression;e.isIdentifier(Tr)?M(he,Tr):M(he);break;case 202:case 294:case 253:{var n=he;e.isBindingPattern(n.name)?A(n.name):ne(n);break}case 255:var Er=he.name;Er&&e.isIdentifier(Er)&&ie(Er.text),I(he,he.body);break;case 213:case 212:I(he,he.body);break;case 259:Z(he);for(var br=0,Pr=he.members;br<Pr.length;br++){var Ce=Pr[br];Ue(Ce)||M(Ce)}k();break;case 256:case 225:case 257:Z(he);for(var Le=0,Xe=he.members;Le<Xe.length;Le++){var Ce=Xe[Le];A(Ce)}k();break;case 260:I(he,ke(he).body);break;case 270:{var Cr=he.expression,n=e.isObjectLiteralExpression(Cr)||e.isCallExpression(Cr)?Cr:e.isArrowFunction(Cr)||e.isFunctionExpression(Cr)?Cr.body:void 0;n?(Z(he),A(n),k()):M(he);break}case 274:case 264:case 175:case 173:case 174:case 258:M(he);break;case 207:case 220:{var Lr=e.getAssignmentDeclarationKind(he);switch(Lr){case 1:case 2:I(he,he.right);return;case 6:case 3:{var Jr=he,Rr=Jr.left,ci=Lr===3?Rr.expression:Rr,be=0,or=void 0;e.isIdentifier(ci.expression)?(ie(ci.expression.text),or=ci.expression):(we=Y(Jr,ci.expression),be=we[0],or=we[1]),Lr===6?e.isObjectLiteralExpression(Jr.right)&&Jr.right.properties.length>0&&(Z(Jr,or),e.forEachChild(Jr.right,A),k()):e.isFunctionExpression(Jr.right)||e.isArrowFunction(Jr.right)?I(he,Jr.right,or):(Z(Jr,or),I(he,Jr.right,Rr.name),k()),_e(be);return}case 7:case 9:{var Kr=he,or=Lr===7?Kr.arguments[0]:Kr.arguments[0].expression,ei=Kr.arguments[1],li=Y(he,or),be=li[0],Si=li[1];Z(he,Si),Z(he,e.setTextRange(e.factory.createIdentifier(ei.text),ei)),A(he.arguments[2]),k(),k(),_e(be);return}case 5:{var Jr=he,Rr=Jr.left,qi=Rr.expression;if(e.isIdentifier(qi)&&e.getElementOrPropertyAccessName(Rr)!=="prototype"&&H&&H.has(qi.text)){e.isFunctionExpression(Jr.right)||e.isArrowFunction(Jr.right)?I(he,Jr.right,qi):e.isBindableStaticAccessExpression(Rr)&&(Z(Jr,qi),I(Jr.left,Jr.right,e.getNameOrArgument(Rr)),k());return}break}case 4:case 0:case 8:break;default:e.Debug.assertNever(Lr)}}default:e.hasJSDocNodes(he)&&e.forEach(he.jsDoc,function(ft){e.forEach(ft.tags,function(bt){e.isJSDocTypeAlias(bt)&&M(bt)})}),e.forEachChild(he,A)}}function f(he,we){var ye=new e.Map;e.filterMutate(he,function(Se,ge){var Fe=Se.name||e.getNameOfDeclaration(Se.node),cr=Fe&&E(Fe);if(!cr)return!0;var ur=ye.get(cr);if(!ur)return ye.set(cr,Se),!0;if(ur instanceof Array){for(var Ir=0,dr=ur;Ir<dr.length;Ir++){var Br=dr[Ir];if(l(Br,Se,ge,we))return!1}return ur.push(Se),!0}else{var Br=ur;return l(Br,Se,ge,we)?!1:(ye.set(cr,[Br,Se]),!0)}})}var P=(L={},L[5]=!0,L[3]=!0,L[7]=!0,L[9]=!0,L[0]=!1,L[1]=!1,L[2]=!1,L[8]=!1,L[6]=!0,L[4]=!1,L);function D(he,we,ye,Se){function ge(n){return e.isFunctionExpression(n)||e.isFunctionDeclaration(n)||e.isVariableDeclaration(n)}var Fe=e.isBinaryExpression(we.node)||e.isCallExpression(we.node)?e.getAssignmentDeclarationKind(we.node):0,cr=e.isBinaryExpression(he.node)||e.isCallExpression(he.node)?e.getAssignmentDeclarationKind(he.node):0;if(P[Fe]&&P[cr]||ge(he.node)&&P[Fe]||ge(we.node)&&P[cr]||e.isClassDeclaration(he.node)&&J(he.node)&&P[Fe]||e.isClassDeclaration(we.node)&&P[cr]||e.isClassDeclaration(he.node)&&J(he.node)&&ge(we.node)||e.isClassDeclaration(we.node)&&ge(he.node)&&J(he.node)){var ur=he.additionalNodes&&e.lastOrUndefined(he.additionalNodes)||he.node;if(!e.isClassDeclaration(he.node)&&!e.isClassDeclaration(we.node)||ge(he.node)||ge(we.node)){var Ir=ge(he.node)?he.node:ge(we.node)?we.node:void 0;if(Ir!==void 0){var dr=e.setTextRange(e.factory.createConstructorDeclaration(void 0,void 0,[],void 0),Ir),Br=x(dr);Br.indent=he.indent+1,Br.children=he.node===Ir?he.children:we.children,he.children=he.node===Ir?e.concatenate([Br],we.children||[we]):e.concatenate(he.children||[Ve({},he)],[Br])}else(he.children||we.children)&&(he.children=e.concatenate(he.children||[Ve({},he)],we.children||[we]),he.children&&(f(he.children,he),z(he.children)));ur=he.node=e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,he.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),he.node)}else he.children=e.concatenate(he.children,we.children),he.children&&f(he.children,he);var Tr=we.node;return Se.children[ye-1].node.end===ur.end?e.setTextRange(ur,{pos:ur.pos,end:Tr.end}):(he.additionalNodes||(he.additionalNodes=[]),he.additionalNodes.push(e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,he.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),we.node))),!0}return Fe!==0}function l(he,we,ye,Se){return D(he,we,ye,Se)?!0:_(he.node,we.node,Se)?(U(he,we),!0):!1}function _(he,we,ye){if(he.kind!==we.kind||he.parent!==we.parent&&!(w(he,ye)&&w(we,ye)))return!1;switch(he.kind){case 166:case 168:case 171:case 172:return e.isStatic(he)===e.isStatic(we);case 260:return j(he,we)&&le(he)===le(we);default:return!0}}function J(he){return!!(he.flags&8)}function w(he,we){var ye=e.isModuleBlock(he.parent)?he.parent.parent:he.parent;return ye===we.node||e.contains(we.additionalNodes,ye)}function j(he,we){return!he.body||!we.body?he.body===we.body:he.body.kind===we.body.kind&&(he.body.kind!==260||j(he.body,we.body))}function U(he,we){var ye;he.additionalNodes=he.additionalNodes||[],he.additionalNodes.push(we.node),we.additionalNodes&&(ye=he.additionalNodes).push.apply(ye,we.additionalNodes),he.children=e.concatenate(he.children,we.children),he.children&&(f(he.children,he),z(he.children))}function z(he){he.sort(y)}function y(he,we){return e.compareStringsCaseSensitiveUI(oe(he.node),oe(we.node))||e.compareValues(ue(he),ue(we))}function oe(he){if(he.kind===260)return V(he);var we=e.getNameOfDeclaration(he);if(we&&e.isPropertyName(we)){var ye=e.getPropertyNameForPropertyNameNode(we);return ye&&e.unescapeLeadingUnderscores(ye)}switch(he.kind){case 212:case 213:case 225:return gr(he);default:return}}function ve(he,we){if(he.kind===260)return er(V(he));if(we){var ye=e.isIdentifier(we)?we.text:e.isElementAccessExpression(we)?"[".concat(E(we.argumentExpression),"]"):E(we);if(ye.length>0)return er(ye)}switch(he.kind){case 303:var Se=he;return e.isExternalModule(Se)?'"'.concat(e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(Se.fileName)))),'"'):"<global>";case 270:return e.isExportAssignment(he)&&he.isExportEquals?"export=":"default";case 213:case 255:case 212:case 256:case 225:return e.getSyntacticModifierFlags(he)&512?"default":gr(he);case 170:return"constructor";case 174:return"new()";case 173:return"()";case 175:return"[]";default:return"<unknown>"}}function ce(he){var we=[];function ye(ge){if(Se(ge)&&(we.push(ge),ge.children))for(var Fe=0,cr=ge.children;Fe<cr.length;Fe++){var ur=cr[Fe];ye(ur)}}return ye(he),we;function Se(ge){if(ge.children)return!0;switch(ue(ge)){case 256:case 225:case 259:case 257:case 260:case 303:case 258:case 343:case 336:return!0;case 213:case 255:case 212:return Fe(ge);default:return!1}function Fe(cr){if(!cr.node.body)return!1;switch(ue(cr.parent)){case 261:case 303:case 168:case 170:return!0;default:return!1}}}}function m(he){return{text:ve(he.node,he.name),kind:e.getNodeKind(he.node),kindModifiers:ar(he.node),spans:ae(he),nameSpan:he.name&&He(he.name),childItems:e.map(he.children,m)}}function de(he){return{text:ve(he.node,he.name),kind:e.getNodeKind(he.node),kindModifiers:ar(he.node),spans:ae(he),childItems:e.map(he.children,we)||se,indent:he.indent,bolded:!1,grayed:!1};function we(ye){return{text:ve(ye.node,ye.name),kind:e.getNodeKind(ye.node),kindModifiers:e.getNodeModifiers(ye.node),spans:ae(ye),childItems:se,indent:0,bolded:!1,grayed:!1}}}function ae(he){var we=[He(he.node)];if(he.additionalNodes)for(var ye=0,Se=he.additionalNodes;ye<Se.length;ye++){var ge=Se[ye];we.push(He(ge))}return we}function V(he){return e.isAmbientModule(he)?e.getTextOfNode(he.name):le(he)}function le(he){for(var we=[e.getTextOfIdentifierOrLiteral(he.name)];he.body&&he.body.kind===260;)he=he.body,we.push(e.getTextOfIdentifierOrLiteral(he.name));return we.join(".")}function ke(he){return he.body&&e.isModuleDeclaration(he.body)?ke(he.body):he}function Ue(he){return!he.name||he.name.kind===161}function He(he){return he.kind===303?e.createTextSpanFromRange(he):e.createTextSpanFromNode(he,pe)}function ar(he){return he.parent&&he.parent.kind===253&&(he=he.parent),e.getNodeModifiers(he)}function gr(he){var we=he.parent;if(he.name&&e.getFullWidth(he.name)>0)return er(e.declarationNameToString(he.name));if(e.isVariableDeclaration(we))return er(e.declarationNameToString(we.name));if(e.isBinaryExpression(we)&&we.operatorToken.kind===63)return E(we.left).replace(W,"");if(e.isPropertyAssignment(we))return E(we.name);if(e.getSyntacticModifierFlags(he)&512)return"default";if(e.isClassLike(he))return"<class>";if(e.isCallExpression(we)){var ye=me(we.expression);if(ye!==void 0){if(ye=er(ye),ye.length>N)return"".concat(ye," callback");var Se=er(e.mapDefined(we.arguments,function(ge){return e.isStringLiteralLike(ge)?ge.getText(pe):void 0}).join(", "));return"".concat(ye,"(").concat(Se,") callback")}}return"<function>"}function me(he){if(e.isIdentifier(he))return he.text;if(e.isPropertyAccessExpression(he)){var we=me(he.expression),ye=he.name.text;return we===void 0?ye:"".concat(we,".").concat(ye)}else return}function Ge(he){switch(he.kind){case 213:case 212:case 225:return!0;default:return!1}}function er(he){return he=he.length>N?he.substring(0,N)+"...":he,he.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}})(a=e.NavigationBar||(e.NavigationBar={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(Z,k,I,ne,ee,A){var f=e.textChanges.ChangeTracker.fromContext({host:I,formatContext:k,preferences:ee}),P=function(y){return e.stableSort(pe(W(y,Z,ne,A)),function(oe,ve){return M(oe,ve)})},D=Z.statements.filter(e.isImportDeclaration);z(D,P);var l=Z.statements.filter(e.isExportDeclaration);z(l,g);for(var _=0,J=Z.statements.filter(e.isAmbientModule);_<J.length;_++){var w=J[_];if(!!w.body){var j=w.body.statements.filter(e.isImportDeclaration);z(j,P);var U=w.body.statements.filter(e.isExportDeclaration);z(U,g)}}return f.getChanges();function z(y,oe){if(e.length(y)!==0){e.suppressLeadingTrivia(y[0]);var ve=e.group(y,function(V){return Q(V.moduleSpecifier)}),ce=e.stableSort(ve,function(V,le){return p(V[0].moduleSpecifier,le[0].moduleSpecifier)}),m=e.flatMap(ce,function(V){return Q(V[0].moduleSpecifier)?oe(V):V});if(m.length===0)f.deleteNodes(Z,y,{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},!0);else{var de={leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include,suffix:e.getNewLineOrDefaultFromHost(I,k.options)};f.replaceNodeWithNodes(Z,y[0],m,de);var ae=f.nodeHasTrailingComment(Z,y[0],de);f.deleteNodes(Z,y.slice(1),{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},ae)}}}}O.organizeImports=L;function W(Z,k,I,ne){if(ne)return Z;for(var ee=I.getTypeChecker(),A=ee.getJsxNamespace(k),f=ee.getJsxFragmentFactory(k),P=!!(k.transformFlags&2),D=[],l=0,_=Z;l<_.length;l++){var J=_[l],w=J.importClause,j=J.moduleSpecifier;if(!w){D.push(J);continue}var U=w.name,z=w.namedBindings;if(U&&!oe(U)&&(U=void 0),z)if(e.isNamespaceImport(z))oe(z.name)||(z=void 0);else{var y=z.elements.filter(function(ve){return oe(ve.name)});y.length<z.elements.length&&(z=y.length?e.factory.updateNamedImports(z,y):void 0)}U||z?D.push(S(J,U,z)):N(k,j)&&(k.isDeclarationFile?D.push(e.factory.createImportDeclaration(J.decorators,J.modifiers,void 0,j,void 0)):D.push(J))}return D;function oe(ve){return P&&(ve.text===A||f&&ve.text===f)||e.FindAllReferences.Core.isSymbolReferencedInFile(ve,ee,k)}}function N(Z,k){var I=e.isStringLiteral(k)&&k.text;return e.isString(I)&&e.some(Z.moduleAugmentations,function(ne){return e.isStringLiteral(ne)&&ne.text===I})}function Q(Z){return Z!==void 0&&e.isStringLiteralLike(Z)?Z.text:void 0}function pe(Z){var k;if(Z.length===0)return Z;var I=F(Z),ne=I.importWithoutClause,ee=I.typeOnlyImports,A=I.regularImports,f=[];ne&&f.push(ne);for(var P=0,D=[A,ee];P<D.length;P++){var l=D[P],_=l===ee,J=l.defaultImports,w=l.namespaceImports,j=l.namedImports;if(!_&&J.length===1&&w.length===1&&j.length===0){var U=J[0];f.push(S(U,U.importClause.name,w[0].importClause.namedBindings));continue}for(var z=e.stableSort(w,function(Ue,He){return C(Ue.importClause.namedBindings.name,He.importClause.namedBindings.name)}),y=0,oe=z;y<oe.length;y++){var ve=oe[y];f.push(S(ve,void 0,ve.importClause.namedBindings))}if(!(J.length===0&&j.length===0)){var ce=void 0,m=[];if(J.length===1)ce=J[0].importClause.name;else for(var de=0,ae=J;de<ae.length;de++){var U=ae[de];m.push(e.factory.createImportSpecifier(!1,e.factory.createIdentifier("default"),U.importClause.name))}m.push.apply(m,_e(j));var V=H(m),le=J.length>0?J[0]:j[0],ke=V.length===0?ce?void 0:e.factory.createNamedImports(e.emptyArray):j.length===0?e.factory.createNamedImports(V):e.factory.updateNamedImports(j[0].importClause.namedBindings,V);_&&ce&&ke?(f.push(S(le,ce,void 0)),f.push(S((k=j[0])!==null&&k!==void 0?k:le,void 0,ke))):f.push(S(le,ce,ke))}}return f}O.coalesceImports=pe;function F(Z){for(var k,I={defaultImports:[],namespaceImports:[],namedImports:[]},ne={defaultImports:[],namespaceImports:[],namedImports:[]},ee=0,A=Z;ee<A.length;ee++){var f=A[ee];if(f.importClause===void 0){k=k||f;continue}var P=f.importClause.isTypeOnly?I:ne,D=f.importClause,l=D.name,_=D.namedBindings;l&&P.defaultImports.push(f),_&&(e.isNamespaceImport(_)?P.namespaceImports.push(f):P.namedImports.push(f))}return{importWithoutClause:k,typeOnlyImports:I,regularImports:ne}}function g(Z){if(Z.length===0)return Z;var k=w(Z),I=k.exportWithoutClause,ne=k.namedExports,ee=k.typeOnlyExports,A=[];I&&A.push(I);for(var f=0,P=[ne,ee];f<P.length;f++){var D=P[f];if(D.length!==0){var l=[];l.push.apply(l,e.flatMap(D,function(j){return j.exportClause&&e.isNamedExports(j.exportClause)?j.exportClause.elements:e.emptyArray}));var _=H(l),J=D[0];A.push(e.factory.updateExportDeclaration(J,J.decorators,J.modifiers,J.isTypeOnly,J.exportClause&&(e.isNamedExports(J.exportClause)?e.factory.updateNamedExports(J.exportClause,_):e.factory.updateNamespaceExport(J.exportClause,J.exportClause.name)),J.moduleSpecifier,J.assertClause))}}return A;function w(j){for(var U,z=[],y=[],oe=0,ve=j;oe<ve.length;oe++){var ce=ve[oe];ce.exportClause===void 0?U=U||ce:ce.isTypeOnly?y.push(ce):z.push(ce)}return{exportWithoutClause:U,namedExports:z,typeOnlyExports:y}}}O.coalesceExports=g;function S(Z,k,I){return e.factory.updateImportDeclaration(Z,Z.decorators,Z.modifiers,e.factory.updateImportClause(Z.importClause,Z.importClause.isTypeOnly,k,I),Z.moduleSpecifier,Z.assertClause)}function H(Z){return e.stableSort(Z,se)}function se(Z,k){return e.compareBooleans(Z.isTypeOnly,k.isTypeOnly)||C(Z.propertyName||Z.name,k.propertyName||k.name)||C(Z.name,k.name)}O.compareImportOrExportSpecifiers=se;function p(Z,k){var I=Z===void 0?void 0:Q(Z),ne=k===void 0?void 0:Q(k);return e.compareBooleans(I===void 0,ne===void 0)||e.compareBooleans(e.isExternalModuleNameRelative(I),e.isExternalModuleNameRelative(ne))||e.compareStringsCaseInsensitive(I,ne)}O.compareModuleSpecifiers=p;function C(Z,k){return e.compareStringsCaseInsensitive(Z.text,k.text)}function G(Z){var k;switch(Z.kind){case 264:return(k=e.tryCast(Z.moduleReference,e.isExternalModuleReference))===null||k===void 0?void 0:k.expression;case 265:return Z.moduleSpecifier;case 236:return Z.declarationList.declarations[0].initializer.arguments[0]}}function E(Z){return e.arrayIsSorted(Z,M)}O.importsAreSorted=E;function ue(Z){return e.arrayIsSorted(Z,se)}O.importSpecifiersAreSorted=ue;function B(Z,k){var I=e.binarySearch(Z,k,e.identity,M);return I<0?~I:I}O.getImportDeclarationInsertionIndex=B;function re(Z,k){var I=e.binarySearch(Z,k,e.identity,se);return I<0?~I:I}O.getImportSpecifierInsertionIndex=re;function M(Z,k){return p(G(Z),G(k))||x(Z,k)}O.compareImportsOrRequireStatements=M;function x(Z,k){return e.compareValues(ie(Z),ie(k))}function ie(Z){var k;switch(Z.kind){case 265:return Z.importClause?Z.importClause.isTypeOnly?1:((k=Z.importClause.namedBindings)===null||k===void 0?void 0:k.kind)===267?2:Z.importClause.name?3:4:0;case 264:return 5;case 236:return 6}}function _e(Z){return e.flatMap(Z,function(k){return e.map(Y(k),function(I){return I.name&&I.propertyName&&I.name.escapedText===I.propertyName.escapedText?e.factory.updateImportSpecifier(I,I.isTypeOnly,void 0,I.name):I})})}function Y(Z){var k;return((k=Z.importClause)===null||k===void 0?void 0:k.namedBindings)&&e.isNamedImports(Z.importClause.namedBindings)?Z.importClause.namedBindings.elements:void 0}})(a=e.OrganizeImports||(e.OrganizeImports={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(E,ue){var B=[];return W(E,ue,B),N(E,B),B.sort(function(re,M){return re.textSpan.start-M.textSpan.start})}O.collectElements=L;function W(E,ue,B){for(var re=40,M=0,x=qe(qe([],E.statements,!0),[E.endOfFileToken],!1),ie=x.length;M<ie;){for(;M<ie&&!e.isAnyImportSyntax(x[M]);)Z(x[M]),M++;if(M===ie)break;for(var _e=M;M<ie&&e.isAnyImportSyntax(x[M]);)g(x[M],E,ue,B),M++;var Y=M-1;Y!==_e&&B.push(S(e.findChildOfKind(x[_e],100,E).getStart(E),x[Y].getEnd(),"imports"))}function Z(k){var I;if(re!==0){ue.throwIfCancellationRequested(),(e.isDeclaration(k)||e.isVariableStatement(k)||e.isReturnStatement(k)||e.isCallOrNewExpression(k)||k.kind===1)&&g(k,E,ue,B),e.isFunctionLike(k)&&e.isBinaryExpression(k.parent)&&e.isPropertyAccessExpression(k.parent.left)&&g(k.parent.left,E,ue,B),(e.isBlock(k)||e.isModuleBlock(k))&&F(k.statements.end,E,ue,B),(e.isClassLike(k)||e.isInterfaceDeclaration(k))&&F(k.members.end,E,ue,B);var ne=H(k,E);ne&&B.push(ne),re--,e.isCallExpression(k)?(re++,Z(k.expression),re--,k.arguments.forEach(Z),(I=k.typeArguments)===null||I===void 0||I.forEach(Z)):e.isIfStatement(k)&&k.elseStatement&&e.isIfStatement(k.elseStatement)?(Z(k.expression),Z(k.thenStatement),re++,Z(k.elseStatement),re--):k.forEachChild(Z),re++}}}function N(E,ue){for(var B=[],re=E.getLineStarts(),M=0,x=re;M<x.length;M++){var ie=x[M],_e=E.getLineEndOfPosition(ie),Y=E.text.substring(ie,_e),Z=pe(Y);if(!(!Z||e.isInComment(E,ie)))if(Z[1]){var I=B.pop();I&&(I.textSpan.length=_e-I.textSpan.start,I.hintSpan.length=_e-I.textSpan.start,ue.push(I))}else{var k=e.createTextSpanFromBounds(E.text.indexOf("//",ie),_e);B.push(C(k,"region",k,!1,Z[2]||"#region"))}}}var Q=/^#(end)?region(?:\s+(.*))?(?:\r)?$/;function pe(E){return E=e.trimStringStart(E),e.startsWith(E,"//")?(E=e.trimString(E.slice(2)),Q.exec(E)):null}function F(E,ue,B,re){var M=e.getLeadingCommentRanges(ue.text,E);if(!M)return;for(var x=-1,ie=-1,_e=0,Y=ue.getFullText(),Z=0,k=M;Z<k.length;Z++){var I=k[Z],ne=I.kind,ee=I.pos,A=I.end;switch(B.throwIfCancellationRequested(),ne){case 2:var f=Y.slice(ee,A);if(pe(f)){P(),_e=0;break}_e===0&&(x=ee),ie=A,_e++;break;case 3:P(),re.push(S(ee,A,"comment")),_e=0;break;default:e.Debug.assertNever(ne)}}P();function P(){_e>1&&re.push(S(x,ie,"comment"))}}function g(E,ue,B,re){e.isJsxText(E)||F(E.pos,ue,B,re)}function S(E,ue,B){return C(e.createTextSpanFromBounds(E,ue),B)}function H(E,ue){switch(E.kind){case 234:if(e.isFunctionLike(E.parent))return se(E.parent,E,ue);switch(E.parent.kind){case 239:case 242:case 243:case 241:case 238:case 240:case 247:case 291:return I(E.parent);case 251:var B=E.parent;if(B.tryBlock===E)return I(E.parent);if(B.finallyBlock===E){var re=e.findChildOfKind(B,96,ue);if(re)return I(re)}default:return C(e.createTextSpanFromNode(E,ue),"code")}case 261:return I(E.parent);case 256:case 225:case 257:case 259:case 262:case 181:case 200:return I(E);case 183:return I(E,!1,!e.isTupleTypeNode(E.parent),22);case 288:case 289:return ne(E.statements);case 204:return k(E);case 203:return k(E,22);case 277:return ie(E);case 281:return _e(E);case 278:case 279:return Y(E.attributes);case 222:case 14:return Z(E);case 201:return I(E,!1,!e.isBindingElement(E.parent),22);case 213:return x(E);case 207:return M(E)}function M(ee){if(!!ee.arguments.length){var A=e.findChildOfKind(ee,20,ue),f=e.findChildOfKind(ee,21,ue);if(!(!A||!f||e.positionsAreOnSameLine(A.pos,f.pos,ue)))return p(A,f,ee,ue,!1,!0)}}function x(ee){if(!(e.isBlock(ee.body)||e.positionsAreOnSameLine(ee.body.getFullStart(),ee.body.getEnd(),ue))){var A=e.createTextSpanFromBounds(ee.body.getFullStart(),ee.body.getEnd());return C(A,"code",e.createTextSpanFromNode(ee))}}function ie(ee){var A=e.createTextSpanFromBounds(ee.openingElement.getStart(ue),ee.closingElement.getEnd()),f=ee.openingElement.tagName.getText(ue),P="<"+f+">...</"+f+">";return C(A,"code",A,!1,P)}function _e(ee){var A=e.createTextSpanFromBounds(ee.openingFragment.getStart(ue),ee.closingFragment.getEnd()),f="<>...</>";return C(A,"code",A,!1,f)}function Y(ee){if(ee.properties.length!==0)return S(ee.getStart(ue),ee.getEnd(),"code")}function Z(ee){if(!(ee.kind===14&&ee.text.length===0))return S(ee.getStart(ue),ee.getEnd(),"code")}function k(ee,A){return A===void 0&&(A=18),I(ee,!1,!e.isArrayLiteralExpression(ee.parent)&&!e.isCallExpression(ee.parent),A)}function I(ee,A,f,P,D){A===void 0&&(A=!1),f===void 0&&(f=!0),P===void 0&&(P=18),D===void 0&&(D=P===18?19:23);var l=e.findChildOfKind(E,P,ue),_=e.findChildOfKind(E,D,ue);return l&&_&&p(l,_,ee,ue,A,f)}function ne(ee){return ee.length?C(e.createTextSpanFromRange(ee),"code"):void 0}}function se(E,ue,B){var re=G(E,ue,B),M=e.findChildOfKind(ue,19,B);return re&&M&&p(re,M,E,B,E.kind!==213)}function p(E,ue,B,re,M,x){M===void 0&&(M=!1),x===void 0&&(x=!0);var ie=e.createTextSpanFromBounds(x?E.getFullStart():E.getStart(re),ue.getEnd());return C(ie,"code",e.createTextSpanFromNode(B,re),M)}function C(E,ue,B,re,M){return B===void 0&&(B=E),re===void 0&&(re=!1),M===void 0&&(M="..."),{textSpan:E,kind:ue,hintSpan:B,bannerText:M,autoCollapse:re}}function G(E,ue,B){if(e.isNodeArrayMultiLine(E.parameters,B)){var re=e.findChildOfKind(E,20,B);if(re)return re}return e.findChildOfKind(ue,18,B)}})(a=e.OutliningElementsCollector||(e.OutliningElementsCollector={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(f){f[f.exact=0]="exact",f[f.prefix=1]="prefix",f[f.substring=2]="substring",f[f.camelCase=3]="camelCase"})(a=e.PatternMatchKind||(e.PatternMatchKind={}));function O(f,P){return{kind:f,isCaseSensitive:P}}function L(f){var P=new e.Map,D=f.trim().split(".").map(function(l){return p(l.trim())});if(!D.some(function(l){return!l.subWordTextChunks.length}))return{getFullMatch:function(l,_){return W(l,_,D,P)},getMatchForLastSegmentOfPattern:function(l){return pe(l,e.last(D),P)},patternContainsDots:D.length>1}}e.createPatternMatcher=L;function W(f,P,D,l){var _=pe(P,e.last(D),l);if(!!_&&!(D.length-1>f.length)){for(var J,w=D.length-2,j=f.length-1;w>=0;w-=1,j-=1)J=F(J,pe(f[j],D[w],l));return J}}function N(f,P){var D=P.get(f);return D||P.set(f,D=_e(f)),D}function Q(f,P,D){var l=E(f,P.textLowerCase);if(l===0)return O(P.text.length===f.length?a.exact:a.prefix,e.startsWith(f,P.text));if(P.isLowerCase){if(l===-1)return;for(var _=N(f,D),J=0,w=_;J<w.length;J++){var j=w[J];if(S(f,j,P.text,!0))return O(a.substring,S(f,j,P.text,!1))}if(P.text.length<f.length&&C(f.charCodeAt(l)))return O(a.substring,!1)}else{if(f.indexOf(P.text)>0)return O(a.substring,!0);if(P.characterSpans.length>0){var U=N(f,D),z=se(f,U,P,!1)?!0:se(f,U,P,!0)?!1:void 0;if(z!==void 0)return O(a.camelCase,z)}}}function pe(f,P,D){if(A(P.totalTextChunk.text,function(z){return z!==32&&z!==42})){var l=Q(f,P.totalTextChunk,D);if(l)return l}for(var _=P.subWordTextChunks,J,w=0,j=_;w<j.length;w++){var U=j[w];J=F(J,Q(f,U,D))}return J}function F(f,P){return e.min(f,P,g)}function g(f,P){return f===void 0?1:P===void 0?-1:e.compareValues(f.kind,P.kind)||e.compareBooleans(!f.isCaseSensitive,!P.isCaseSensitive)}function S(f,P,D,l,_){return _===void 0&&(_={start:0,length:D.length}),_.length<=P.length&&ee(0,_.length,function(J){return H(D.charCodeAt(_.start+J),f.charCodeAt(P.start+J),l)})}function H(f,P,D){return D?ue(f)===ue(P):f===P}function se(f,P,D,l){for(var _=D.characterSpans,J=0,w=0,j,U;;){if(w===_.length)return!0;if(J===P.length)return!1;for(var z=P[J],y=!1;w<_.length;w++){var oe=_[w];if(y&&(!C(D.text.charCodeAt(_[w-1].start))||!C(D.text.charCodeAt(_[w].start)))||!S(f,z,D.text,l,oe))break;y=!0,j=j===void 0?J:j,U=U===void 0?!0:U,z=e.createTextSpan(z.start+oe.length,z.length-oe.length)}!y&&U!==void 0&&(U=!1),J++}}function p(f){return{totalTextChunk:x(f),subWordTextChunks:M(f)}}function C(f){if(f>=65&&f<=90)return!0;if(f<127||!e.isUnicodeIdentifierStart(f,99))return!1;var P=String.fromCharCode(f);return P===P.toUpperCase()}function G(f){if(f>=97&&f<=122)return!0;if(f<127||!e.isUnicodeIdentifierStart(f,99))return!1;var P=String.fromCharCode(f);return P===P.toLowerCase()}function E(f,P){for(var D=f.length-P.length,l=function(w){if(A(P,function(j,U){return ue(f.charCodeAt(U+w))===j}))return{value:w}},_=0;_<=D;_++){var J=l(_);if(typeof J=="object")return J.value}return-1}function ue(f){return f>=65&&f<=90?97+(f-65):f<127?f:String.fromCharCode(f).toLowerCase().charCodeAt(0)}function B(f){return f>=48&&f<=57}function re(f){return C(f)||G(f)||B(f)||f===95||f===36}function M(f){for(var P=[],D=0,l=0,_=0;_<f.length;_++){var J=f.charCodeAt(_);re(J)?(l===0&&(D=_),l++):l>0&&(P.push(x(f.substr(D,l))),l=0)}return l>0&&P.push(x(f.substr(D,l))),P}function x(f){var P=f.toLowerCase();return{text:f,textLowerCase:P,isLowerCase:f===P,characterSpans:ie(f)}}function ie(f){return Y(f,!1)}e.breakIntoCharacterSpans=ie;function _e(f){return Y(f,!0)}e.breakIntoWordSpans=_e;function Y(f,P){for(var D=[],l=0,_=1;_<f.length;_++){var J=B(f.charCodeAt(_-1)),w=B(f.charCodeAt(_)),j=ne(f,P,_),U=P&&I(f,_,l);(Z(f.charCodeAt(_-1))||Z(f.charCodeAt(_))||J!==w||j||U)&&(k(f,l,_)||D.push(e.createTextSpan(l,_-l)),l=_)}return k(f,l,f.length)||D.push(e.createTextSpan(l,f.length-l)),D}function Z(f){switch(f){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 k(f,P,D){return A(f,function(l){return Z(l)&&l!==95},P,D)}function I(f,P,D){return P!==D&&P+1<f.length&&C(f.charCodeAt(P))&&G(f.charCodeAt(P+1))&&A(f,C,D,P)}function ne(f,P,D){var l=C(f.charCodeAt(D-1)),_=C(f.charCodeAt(D));return _&&(!P||!l)}function ee(f,P,D){for(var l=f;l<P;l++)if(!D(l))return!1;return!0}function A(f,P,D,l){return D===void 0&&(D=0),l===void 0&&(l=f.length),ee(D,l,function(_){return P(f.charCodeAt(_),_)})}})(Pe||(Pe={}));var Pe;(function(e){function a(O,L,W){L===void 0&&(L=!0),W===void 0&&(W=!1);var N={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},Q=[],pe,F,g,S=0,H=!1;function se(){return F=g,g=e.scanner.scan(),g===18?S++:g===19&&S--,g}function p(){var ee=e.scanner.getTokenValue(),A=e.scanner.getTokenPos();return{fileName:ee,pos:A,end:A+ee.length}}function C(){pe||(pe=[]),pe.push({ref:p(),depth:S})}function G(){Q.push(p()),E()}function E(){S===0&&(H=!0)}function ue(){var ee=e.scanner.getToken();return ee===135?(ee=se(),ee===141&&(ee=se(),ee===10&&C()),!0):!1}function B(){if(F===24)return!1;var ee=e.scanner.getToken();if(ee===100){if(ee=se(),ee===20){if(ee=se(),ee===10||ee===14)return G(),!0}else{if(ee===10)return G(),!0;if(ee===151){var A=e.scanner.lookAhead(function(){var f=e.scanner.scan();return f!==155&&(f===41||f===18||f===79||e.isKeyword(f))});A&&(ee=se())}if(ee===79||e.isKeyword(ee))if(ee=se(),ee===155){if(ee=se(),ee===10)return G(),!0}else if(ee===63){if(M(!0))return!0}else if(ee===27)ee=se();else return!0;if(ee===18){for(ee=se();ee!==19&&ee!==1;)ee=se();ee===19&&(ee=se(),ee===155&&(ee=se(),ee===10&&G()))}else ee===41&&(ee=se(),ee===127&&(ee=se(),(ee===79||e.isKeyword(ee))&&(ee=se(),ee===155&&(ee=se(),ee===10&&G()))))}return!0}return!1}function re(){var ee=e.scanner.getToken();if(ee===93){if(E(),ee=se(),ee===151){var A=e.scanner.lookAhead(function(){var f=e.scanner.scan();return f===41||f===18});A&&(ee=se())}if(ee===18){for(ee=se();ee!==19&&ee!==1;)ee=se();ee===19&&(ee=se(),ee===155&&(ee=se(),ee===10&&G()))}else if(ee===41)ee=se(),ee===155&&(ee=se(),ee===10&&G());else if(ee===100){if(ee=se(),ee===151){var A=e.scanner.lookAhead(function(){var P=e.scanner.scan();return P===79||e.isKeyword(P)});A&&(ee=se())}if((ee===79||e.isKeyword(ee))&&(ee=se(),ee===63&&M(!0)))return!0}return!0}return!1}function M(ee,A){A===void 0&&(A=!1);var f=ee?se():e.scanner.getToken();return f===145?(f=se(),f===20&&(f=se(),(f===10||A&&f===14)&&G()),!0):!1}function x(){var ee=e.scanner.getToken();if(ee===79&&e.scanner.getTokenValue()==="define"){if(ee=se(),ee!==20)return!0;if(ee=se(),ee===10||ee===14)if(ee=se(),ee===27)ee=se();else return!0;if(ee!==22)return!0;for(ee=se();ee!==23&&ee!==1;)(ee===10||ee===14)&&G(),ee=se();return!0}return!1}function ie(){for(e.scanner.setText(O),se();e.scanner.getToken()!==1;){if(e.scanner.getToken()===15){var ee=[e.scanner.getToken()],A=e.scanner.scan();e:for(;e.length(ee);){switch(A){case 1:break e;case 100:B();break;case 15:ee.push(A);break;case 18:e.length(ee)&&ee.push(A);break;case 19:e.length(ee)&&(e.lastOrUndefined(ee)===15?e.scanner.reScanTemplateToken(!1)===17&&ee.pop():ee.pop());break}A=e.scanner.scan()}se()}ue()||B()||re()||W&&(M(!1,!0)||x())||se()}e.scanner.setText(void 0)}if(L&&ie(),e.processCommentPragmas(N,O),e.processPragmasIntoFields(N,e.noop),H){if(pe)for(var _e=0,Y=pe;_e<Y.length;_e++){var Z=Y[_e];Q.push(Z.ref)}return{referencedFiles:N.referencedFiles,typeReferenceDirectives:N.typeReferenceDirectives,libReferenceDirectives:N.libReferenceDirectives,importedFiles:Q,isLibFile:!!N.hasNoDefaultLib,ambientExternalModules:void 0}}else{var k=void 0;if(pe)for(var I=0,ne=pe;I<ne.length;I++){var Z=ne[I];Z.depth===0?(k||(k=[]),k.push(Z.ref.fileName)):Q.push(Z.ref)}return{referencedFiles:N.referencedFiles,typeReferenceDirectives:N.typeReferenceDirectives,libReferenceDirectives:N.libReferenceDirectives,importedFiles:Q,isLibFile:!!N.hasNoDefaultLib,ambientExternalModules:k}}}e.preProcessFile=a})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(H,se,p,C){var G=e.getAdjustedRenameLocation(e.getTouchingPropertyName(se,p));if(S(G)){var E=W(G,H.getTypeChecker(),se,H,C);if(E)return E}return F(e.Diagnostics.You_cannot_rename_this_element)}O.getRenameInfo=L;function W(H,se,p,C,G){var E=se.getSymbolAtLocation(H);if(!E){if(e.isStringLiteralLike(H)){var ue=e.getContextualTypeFromParentOrAncestorTypeNode(H,se);if(ue&&(ue.flags&128||ue.flags&1048576&&e.every(ue.types,function(Y){return!!(Y.flags&128)})))return pe(H.text,H.text,"string","",H,p)}else if(e.isLabelName(H)){var B=e.getTextOfNode(H);return pe(B,B,"label","",H,p)}return}var re=E.declarations;if(!(!re||re.length===0)){if(re.some(function(Y){return N(C,Y)}))return F(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(!(e.isIdentifier(H)&&H.originalKeywordKind===88&&E.parent&&E.parent.flags&1536)){if(e.isStringLiteralLike(H)&&e.tryGetImportFromModuleSpecifier(H))return G&&G.allowRenameOfImportPath?Q(H,p,E):void 0;var M=e.SymbolDisplay.getSymbolKind(se,E,H),x=e.isImportOrExportSpecifierName(H)||e.isStringOrNumericLiteralLike(H)&&H.parent.kind===161?e.stripQuotes(e.getTextOfIdentifierOrLiteral(H)):void 0,ie=x||se.symbolToString(E),_e=x||se.getFullyQualifiedName(E);return pe(ie,_e,M,e.SymbolDisplay.getSymbolModifiers(se,E),H,p)}}}function N(H,se){var p=se.getSourceFile();return H.isSourceFileDefaultLibrary(p)&&e.fileExtensionIs(p.fileName,".d.ts")}function Q(H,se,p){if(!e.isExternalModuleNameRelative(H.text))return F(e.Diagnostics.You_cannot_rename_a_module_via_a_global_import);var C=p.declarations&&e.find(p.declarations,e.isSourceFile);if(!!C){var G=e.endsWith(H.text,"/index")||e.endsWith(H.text,"/index.js")?void 0:e.tryRemoveSuffix(e.removeFileExtension(C.fileName),"/index"),E=G===void 0?C.fileName:G,ue=G===void 0?"module":"directory",B=H.text.lastIndexOf("/")+1,re=e.createTextSpan(H.getStart(se)+1+B,H.text.length-B);return{canRename:!0,fileToRename:E,kind:ue,displayName:E,fullDisplayName:E,kindModifiers:"",triggerSpan:re}}}function pe(H,se,p,C,G,E){return{canRename:!0,fileToRename:void 0,kind:p,displayName:H,fullDisplayName:se,kindModifiers:C,triggerSpan:g(G,E)}}function F(H){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(H)}}function g(H,se){var p=H.getStart(se),C=H.getWidth(se);return e.isStringLiteralLike(H)&&(p+=1,C-=2),e.createTextSpan(p,C)}function S(H){switch(H.kind){case 79:case 80:case 10:case 14:case 108:return!0;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(H);default:return!1}}O.nodeIsEligibleForRename=S})(a=e.Rename||(e.Rename={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(p,C){var G,E={textSpan:e.createTextSpanFromBounds(C.getFullStart(),C.getEnd())},ue=C;e:for(;;){var B=Q(ue);if(!B.length)break;for(var re=0;re<B.length;re++){var M=B[re-1],x=B[re],ie=B[re+1];if(e.getTokenPosOfNode(x,C,!0)>p)break e;var _e=e.singleOrUndefined(e.getTrailingCommentRanges(C.text,x.end));if(_e&&_e.kind===2&&A(_e.pos,_e.end),W(C,p,x)){if(e.isBlock(x)||e.isTemplateSpan(x)||e.isTemplateHead(x)||e.isTemplateTail(x)||M&&e.isTemplateHead(M)||e.isVariableDeclarationList(x)&&e.isVariableStatement(ue)||e.isSyntaxList(x)&&e.isVariableDeclarationList(ue)||e.isVariableDeclaration(x)&&e.isSyntaxList(ue)&&B.length===1||e.isJSDocTypeExpression(x)||e.isJSDocSignature(x)||e.isJSDocTypeLiteral(x)){ue=x;break}if(e.isTemplateSpan(ue)&&ie&&e.isTemplateMiddleOrTemplateTail(ie)){var Y=x.getFullStart()-2,Z=ie.getStart()+1;ee(Y,Z)}var k=e.isSyntaxList(x)&&S(M)&&H(ie)&&!e.positionsAreOnSameLine(M.getStart(),ie.getStart(),C),I=k?M.getEnd():x.getStart(),ne=k?ie.getStart():se(C,x);e.hasJSDocNodes(x)&&((G=x.jsDoc)===null||G===void 0?void 0:G.length)&&ee(e.first(x.jsDoc).getStart(),ne),ee(I,ne),(e.isStringLiteral(x)||e.isTemplateLiteral(x))&&ee(I+1,ne-1),ue=x;break}if(re===B.length-1)break e}}return E;function ee(f,P){if(f!==P){var D=e.createTextSpanFromBounds(f,P);(!E||!e.textSpansEqual(D,E.textSpan)&&e.textSpanIntersectsWithPosition(D,p))&&(E=Ve({textSpan:D},E&&{parent:E}))}}function A(f,P){ee(f,P);for(var D=f;C.text.charCodeAt(D)===47;)D++;ee(D,P)}}O.getSmartSelectionRange=L;function W(p,C,G){if(e.Debug.assert(G.pos<=C),C<G.end)return!0;var E=G.getEnd();return E===C?e.getTouchingPropertyName(p,C).pos<G.end:!1}var N=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function Q(p){if(e.isSourceFile(p))return pe(p.getChildAt(0).getChildren(),N);if(e.isMappedTypeNode(p)){var C=p.getChildren(),G=C[0],E=C.slice(1),ue=e.Debug.checkDefined(E.pop());e.Debug.assertEqual(G.kind,18),e.Debug.assertEqual(ue.kind,19);var B=pe(E,function(ie){return ie===p.readonlyToken||ie.kind===144||ie===p.questionToken||ie.kind===57}),re=pe(B,function(ie){var _e=ie.kind;return _e===22||_e===162||_e===23});return[G,g(F(re,function(ie){var _e=ie.kind;return _e===58})),ue]}if(e.isPropertySignature(p)){var E=pe(p.getChildren(),function(_e){return _e===p.name||e.contains(p.modifiers,_e)});return F(E,function(_e){var Y=_e.kind;return Y===58})}if(e.isParameter(p)){var M=pe(p.getChildren(),function(ie){return ie===p.dotDotDotToken||ie===p.name}),x=pe(M,function(ie){return ie===M[0]||ie===p.questionToken});return F(x,function(ie){var _e=ie.kind;return _e===63})}return e.isBindingElement(p)?F(p.getChildren(),function(ie){var _e=ie.kind;return _e===63}):p.getChildren()}function pe(p,C){for(var G=[],E,ue=0,B=p;ue<B.length;ue++){var re=B[ue];C(re)?(E=E||[],E.push(re)):(E&&(G.push(g(E)),E=void 0),G.push(re))}return E&&G.push(g(E)),G}function F(p,C,G){if(G===void 0&&(G=!0),p.length<2)return p;var E=e.findIndex(p,C);if(E===-1)return p;var ue=p.slice(0,E),B=p[E],re=e.last(p),M=G&&re.kind===26,x=p.slice(E+1,M?p.length-1:void 0),ie=e.compact([ue.length?g(ue):void 0,B,x.length?g(x):void 0]);return M?ie.concat(re):ie}function g(p){return e.Debug.assertGreaterThanOrEqual(p.length,1),e.setTextRangePosEnd(e.parseNodeFactory.createSyntaxList(p),p[0].pos,e.last(p).end)}function S(p){var C=p&&p.kind;return C===18||C===22||C===20||C===279}function H(p){var C=p&&p.kind;return C===19||C===23||C===21||C===280}function se(p,C){switch(C.kind){case 338:case 336:case 345:case 343:case 340:return p.getLineEndOfPosition(C.getStart());default:return C.getEnd()}}})(a=e.SmartSelectionRange||(e.SmartSelectionRange={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(y){y[y.Call=0]="Call",y[y.TypeArgs=1]="TypeArgs",y[y.Contextual=2]="Contextual"})(L||(L={}));function W(y,oe,ve,ce,m){var de=y.getTypeChecker(),ae=e.findTokenOnLeftOfPosition(oe,ve);if(!!ae){var V=!!ce&&ce.kind==="characterTyped";if(!(V&&(e.isInString(oe,ve,ae)||e.isInComment(oe,ve)))){var le=!!ce&&ce.kind==="invoked",ke=k(ae,ve,oe,de,le);if(!!ke){m.throwIfCancellationRequested();var Ue=Q(ke,de,oe,ae,V);return m.throwIfCancellationRequested(),Ue?de.runWithCancellationToken(m,function(He){return Ue.kind===0?f(Ue.candidates,Ue.resolvedSignature,ke,oe,He):P(Ue.symbol,ke,oe,He)}):e.isSourceFileJS(oe)?F(ke,y,m):void 0}}}}O.getSignatureHelpItems=W;var N;(function(y){y[y.Candidate=0]="Candidate",y[y.Type=1]="Type"})(N||(N={}));function Q(y,oe,ve,ce,m){var de=y.invocation,ae=y.argumentCount;switch(de.kind){case 0:{if(m&&!pe(ce,de.node,ve))return;var V=[],le=oe.getResolvedSignatureForSignatureHelp(de.node,V,ae);return V.length===0?void 0:{kind:0,candidates:V,resolvedSignature:le}}case 1:{var ke=de.called;if(m&&!g(ce,ve,e.isIdentifier(ke)?ke.parent:ke))return;var V=e.getPossibleGenericSignatures(ke,ae,oe);if(V.length!==0)return{kind:0,candidates:V,resolvedSignature:e.first(V)};var Ue=oe.getSymbolAtLocation(ke);return Ue&&{kind:1,symbol:Ue}}case 2:return{kind:0,candidates:[de.signature],resolvedSignature:de.signature};default:return e.Debug.assertNever(de)}}function pe(y,oe,ve){if(!e.isCallOrNewExpression(oe))return!1;var ce=oe.getChildren(ve);switch(y.kind){case 20:return e.contains(ce,y);case 27:{var m=e.findContainingList(y);return!!m&&e.contains(ce,m)}case 29:return g(y,ve,oe.expression);default:return!1}}function F(y,oe,ve){if(y.invocation.kind!==2){var ce=ne(y.invocation),m=e.isPropertyAccessExpression(ce)?ce.name.text:void 0,de=oe.getTypeChecker();return m===void 0?void 0:e.firstDefined(oe.getSourceFiles(),function(ae){return e.firstDefined(ae.getNamedDeclarations().get(m),function(V){var le=V.symbol&&de.getTypeOfSymbolAtLocation(V.symbol,V),ke=le&&le.getCallSignatures();if(ke&&ke.length)return de.runWithCancellationToken(ve,function(Ue){return f(ke,ke[0],y,ae,Ue,!0)})})})}}function g(y,oe,ve){for(var ce=y.getFullStart(),m=y.parent;m;){var de=e.findPrecedingToken(ce,oe,m,!0);if(de)return e.rangeContainsRange(ve,de);m=m.parent}return e.Debug.fail("Could not find preceding token")}function S(y,oe,ve){var ce=p(y,oe,ve);return!ce||ce.isTypeParameterList||ce.invocation.kind!==0?void 0:{invocation:ce.invocation.node,argumentCount:ce.argumentCount,argumentIndex:ce.argumentIndex}}O.getArgumentInfoForCompletions=S;function H(y,oe,ve){var ce=se(y,ve);if(!!ce){var m=ce.list,de=ce.argumentIndex,ae=x(m,e.isInString(ve,oe,y));de!==0&&e.Debug.assertLessThan(de,ae);var V=Y(m,ve);return{list:m,argumentIndex:de,argumentCount:ae,argumentsSpan:V}}}function se(y,oe){if(y.kind===29||y.kind===20)return{list:I(y.parent,y,oe),argumentIndex:0};var ve=e.findContainingList(y);return ve&&{list:ve,argumentIndex:M(ve,y)}}function p(y,oe,ve){var ce=y.parent;if(e.isCallOrNewExpression(ce)){var m=ce,de=H(y,oe,ve);if(!de)return;var ae=de.list,V=de.argumentIndex,le=de.argumentCount,ke=de.argumentsSpan,Ue=!!ce.typeArguments&&ce.typeArguments.pos===ae.pos;return{isTypeParameterList:Ue,invocation:{kind:0,node:m},argumentsSpan:ke,argumentIndex:V,argumentCount:le}}else{if(e.isNoSubstitutionTemplateLiteral(y)&&e.isTaggedTemplateExpression(ce))return e.isInsideTemplateLiteral(y,oe,ve)?_e(ce,0,ve):void 0;if(e.isTemplateHead(y)&&ce.parent.kind===209){var He=ce,ar=He.parent;e.Debug.assert(He.kind===222);var V=e.isInsideTemplateLiteral(y,oe,ve)?0:1;return _e(ar,V,ve)}else if(e.isTemplateSpan(ce)&&e.isTaggedTemplateExpression(ce.parent.parent)){var gr=ce,ar=ce.parent.parent;if(e.isTemplateTail(y)&&!e.isInsideTemplateLiteral(y,oe,ve))return;var me=gr.parent.templateSpans.indexOf(gr),V=ie(me,y,oe,ve);return _e(ar,V,ve)}else if(e.isJsxOpeningLikeElement(ce)){var Ge=ce.attributes.pos,er=e.skipTrivia(ve.text,ce.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:ce},argumentsSpan:e.createTextSpan(Ge,er-Ge),argumentIndex:0,argumentCount:1}}else{var he=e.getPossibleTypeArgumentsInfo(y,ve);if(he){var we=he.called,ye=he.nTypeArguments,m={kind:1,called:we},ke=e.createTextSpanFromBounds(we.getStart(ve),y.end);return{isTypeParameterList:!0,invocation:m,argumentsSpan:ke,argumentIndex:ye,argumentCount:ye+1}}return}}}function C(y,oe,ve,ce){return ue(y,oe,ve,ce)||p(y,oe,ve)}function G(y){return e.isBinaryExpression(y.parent)?G(y.parent):y}function E(y){return e.isBinaryExpression(y.left)?E(y.left)+1:2}function ue(y,oe,ve,ce){var m=B(y,ve,oe,ce);if(!!m){var de=m.contextualType,ae=m.argumentIndex,V=m.argumentCount,le=m.argumentsSpan,ke=de.getNonNullableType(),Ue=ke.getCallSignatures();if(Ue.length===1){var He={kind:2,signature:e.first(Ue),node:y,symbol:re(ke.symbol)};return{isTypeParameterList:!1,invocation:He,argumentsSpan:le,argumentIndex:ae,argumentCount:V}}}}function B(y,oe,ve,ce){if(!(y.kind!==20&&y.kind!==27)){var m=y.parent;switch(m.kind){case 211:case 168:case 212:case 213:var de=H(y,ve,oe);if(!de)return;var ae=de.argumentIndex,V=de.argumentCount,le=de.argumentsSpan,ke=e.isMethodDeclaration(m)?ce.getContextualTypeForObjectLiteralElement(m):ce.getContextualType(m);return ke&&{contextualType:ke,argumentIndex:ae,argumentCount:V,argumentsSpan:le};case 220:{var Ue=G(m),He=ce.getContextualType(Ue),ar=y.kind===20?0:E(m)-1,gr=E(Ue);return He&&{contextualType:He,argumentIndex:ar,argumentCount:gr,argumentsSpan:e.createTextSpanFromNode(m)}}default:return}}}function re(y){return y.name==="__type"&&e.firstDefined(y.declarations,function(oe){return e.isFunctionTypeNode(oe)?oe.parent.symbol:void 0})||y}function M(y,oe){for(var ve=0,ce=0,m=y.getChildren();ce<m.length;ce++){var de=m[ce];if(de===oe)break;de.kind!==27&&ve++}return ve}function x(y,oe){var ve=y.getChildren(),ce=e.countWhere(ve,function(m){return m.kind!==27});return!oe&&ve.length>0&&e.last(ve).kind===27&&ce++,ce}function ie(y,oe,ve,ce){return e.Debug.assert(ve>=oe.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(oe)?e.isInsideTemplateLiteral(oe,ve,ce)?0:y+2:y+1}function _e(y,oe,ve){var ce=e.isNoSubstitutionTemplateLiteral(y.template)?1:y.template.templateSpans.length+1;return oe!==0&&e.Debug.assertLessThan(oe,ce),{isTypeParameterList:!1,invocation:{kind:0,node:y},argumentsSpan:Z(y,ve),argumentIndex:oe,argumentCount:ce}}function Y(y,oe){var ve=y.getFullStart(),ce=e.skipTrivia(oe.text,y.getEnd(),!1);return e.createTextSpan(ve,ce-ve)}function Z(y,oe){var ve=y.template,ce=ve.getStart(),m=ve.getEnd();if(ve.kind===222){var de=e.last(ve.templateSpans);de.literal.getFullWidth()===0&&(m=e.skipTrivia(oe.text,m,!1))}return e.createTextSpan(ce,m-ce)}function k(y,oe,ve,ce,m){for(var de=function(le){e.Debug.assert(e.rangeContainsRange(le.parent,le),"Not a subspan",function(){return"Child: ".concat(e.Debug.formatSyntaxKind(le.kind),", parent: ").concat(e.Debug.formatSyntaxKind(le.parent.kind))});var ke=C(le,oe,ve,ce);if(ke)return{value:ke}},ae=y;!e.isSourceFile(ae)&&(m||!e.isBlock(ae));ae=ae.parent){var V=de(ae);if(typeof V=="object")return V.value}}function I(y,oe,ve){var ce=y.getChildren(ve),m=ce.indexOf(oe);return e.Debug.assert(m>=0&&ce.length>m+1),ce[m+1]}function ne(y){return y.kind===0?e.getInvokedExpression(y.node):y.called}function ee(y){return y.kind===0?y.node:y.kind===1?y.called:y.node}var A=70246400;function f(y,oe,ve,ce,m,de){var ae,V=ve.isTypeParameterList,le=ve.argumentCount,ke=ve.argumentsSpan,Ue=ve.invocation,He=ve.argumentIndex,ar=ee(Ue),gr=Ue.kind===2?Ue.symbol:m.getSymbolAtLocation(ne(Ue))||de&&((ae=oe.declaration)===null||ae===void 0?void 0:ae.symbol),me=gr?e.symbolToDisplayParts(m,gr,de?ce:void 0,void 0):e.emptyArray,Ge=e.map(y,function(Br){return _(Br,me,V,m,ar,ce)});He!==0&&e.Debug.assertLessThan(He,le);for(var er=0,he=0,we=0;we<Ge.length;we++){var ye=Ge[we];if(y[we]===oe&&(er=he,ye.length>1))for(var Se=0,ge=0,Fe=ye;ge<Fe.length;ge++){var cr=Fe[ge];if(cr.isVariadic||cr.parameters.length>=le){er=he+Se;break}Se++}he+=ye.length}e.Debug.assert(er!==-1);var ur={items:e.flatMapToMutable(Ge,e.identity),applicableSpan:ke,selectedItemIndex:er,argumentIndex:He,argumentCount:le},Ir=ur.items[er];if(Ir.isVariadic){var dr=e.findIndex(Ir.parameters,function(Br){return!!Br.isRest});-1<dr&&dr<Ir.parameters.length-1?ur.argumentIndex=Ir.parameters.length:ur.argumentIndex=Math.min(ur.argumentIndex,Ir.parameters.length-1)}return ur}function P(y,oe,ve,ce){var m=oe.argumentCount,de=oe.argumentsSpan,ae=oe.invocation,V=oe.argumentIndex,le=ce.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(y);if(!!le){var ke=[D(y,le,ce,ee(ae),ve)];return{items:ke,applicableSpan:de,selectedItemIndex:0,argumentIndex:V,argumentCount:m}}}function D(y,oe,ve,ce,m){var de=e.symbolToDisplayParts(ve,y),ae=e.createPrinter({removeComments:!0}),V=oe.map(function(He){return z(He,ve,ce,m,ae)}),le=y.getDocumentationComment(ve),ke=y.getJsDocTags(ve),Ue=qe(qe([],de,!0),[e.punctuationPart(29)],!1);return{isVariadic:!1,prefixDisplayParts:Ue,suffixDisplayParts:[e.punctuationPart(31)],separatorDisplayParts:l,parameters:V,documentation:le,tags:ke}}var l=[e.punctuationPart(27),e.spacePart()];function _(y,oe,ve,ce,m,de){var ae=(ve?w:j)(y,ce,m,de);return e.map(ae,function(V){var le=V.isVariadic,ke=V.parameters,Ue=V.prefix,He=V.suffix,ar=qe(qe([],oe,!0),Ue,!0),gr=qe(qe([],He,!0),J(y,m,ce),!0),me=y.getDocumentationComment(ce),Ge=y.getJsDocTags();return{isVariadic:le,prefixDisplayParts:ar,suffixDisplayParts:gr,separatorDisplayParts:l,parameters:ke,documentation:me,tags:Ge}})}function J(y,oe,ve){return e.mapToDisplayParts(function(ce){ce.writePunctuation(":"),ce.writeSpace(" ");var m=ve.getTypePredicateOfSignature(y);m?ve.writeTypePredicate(m,oe,void 0,ce):ve.writeType(ve.getReturnTypeOfSignature(y),oe,void 0,ce)})}function w(y,oe,ve,ce){var m=(y.target||y).typeParameters,de=e.createPrinter({removeComments:!0}),ae=(m||e.emptyArray).map(function(le){return z(le,oe,ve,ce,de)}),V=y.thisParameter?[oe.symbolToParameterDeclaration(y.thisParameter,ve,A)]:[];return oe.getExpandedParameters(y).map(function(le){var ke=e.factory.createNodeArray(qe(qe([],V,!0),e.map(le,function(He){return oe.symbolToParameterDeclaration(He,ve,A)}),!0)),Ue=e.mapToDisplayParts(function(He){de.writeList(2576,ke,ce,He)});return{isVariadic:!1,parameters:ae,prefix:[e.punctuationPart(29)],suffix:qe([e.punctuationPart(31)],Ue,!0)}})}function j(y,oe,ve,ce){var m=e.createPrinter({removeComments:!0}),de=e.mapToDisplayParts(function(le){if(y.typeParameters&&y.typeParameters.length){var ke=e.factory.createNodeArray(y.typeParameters.map(function(Ue){return oe.typeParameterToDeclaration(Ue,ve,A)}));m.writeList(53776,ke,ce,le)}}),ae=oe.getExpandedParameters(y),V=oe.hasEffectiveRestParameter(y)?ae.length===1?function(le){return!0}:function(le){return!!(le.length&&le[le.length-1].checkFlags&32768)}:function(le){return!1};return ae.map(function(le){return{isVariadic:V(le),parameters:le.map(function(ke){return U(ke,oe,ve,ce,m)}),prefix:qe(qe([],de,!0),[e.punctuationPart(20)],!1),suffix:[e.punctuationPart(21)]}})}function U(y,oe,ve,ce,m){var de=e.mapToDisplayParts(function(le){var ke=oe.symbolToParameterDeclaration(y,ve,A);m.writeNode(4,ke,ce,le)}),ae=oe.isOptionalParameter(y.valueDeclaration),V=!!(y.checkFlags&32768);return{name:y.name,documentation:y.getDocumentationComment(oe),displayParts:de,isOptional:ae,isRest:V}}function z(y,oe,ve,ce,m){var de=e.mapToDisplayParts(function(ae){var V=oe.typeParameterToDeclaration(y,ve,A);m.writeNode(4,V,ce,ae)});return{name:y.symbol.name,documentation:y.symbol.getDocumentationComment(oe),displayParts:de,isOptional:!1,isRest:!1}}})(a=e.SignatureHelp||(e.SignatureHelp={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L=30,W=function(F){return new RegExp("^\\s?/\\*\\*?\\s?".concat(F,"\\s?\\*\\/\\s?$"))};function N(F){return F.includeInlayParameterNameHints==="literals"||F.includeInlayParameterNameHints==="all"}function Q(F){return F.includeInlayParameterNameHints==="literals"}function pe(F){var g=F.file,S=F.program,H=F.span,se=F.cancellationToken,p=F.preferences,C=g.text,G=S.getCompilerOptions(),E=S.getTypeChecker(),ue=[];return B(g),ue;function B(w){if(!(!w||w.getFullWidth()===0)){switch(w.kind){case 260:case 256:case 257:case 255:case 225:case 212:case 168:case 213:se.throwIfCancellationRequested()}if(!!e.textSpanIntersectsWith(H,w.pos,w.getFullWidth())&&!e.isTypeNode(w))return p.includeInlayVariableTypeHints&&e.isVariableDeclaration(w)||p.includeInlayPropertyDeclarationTypeHints&&e.isPropertyDeclaration(w)?Z(w):p.includeInlayEnumMemberValueHints&&e.isEnumMember(w)?_e(w):N(p)&&(e.isCallExpression(w)||e.isNewExpression(w))?k(w):(p.includeInlayFunctionParameterTypeHints&&e.isFunctionLikeDeclaration(w)&&e.hasContextSensitiveParameters(w)&&P(w),p.includeInlayFunctionLikeReturnTypeHints&&re(w)&&A(w)),e.forEachChild(w,B)}}function re(w){return e.isArrowFunction(w)||e.isFunctionExpression(w)||e.isFunctionDeclaration(w)||e.isMethodDeclaration(w)||e.isGetAccessorDeclaration(w)}function M(w,j,U){ue.push({text:"".concat(U?"...":"").concat(l(w,L),":"),position:j,kind:"Parameter",whitespaceAfter:!0})}function x(w,j){ue.push({text:": ".concat(l(w,L)),position:j,kind:"Type",whitespaceBefore:!0})}function ie(w,j){ue.push({text:"= ".concat(l(w,L)),position:j,kind:"Enum",whitespaceBefore:!0})}function _e(w){if(!w.initializer){var j=E.getConstantValue(w);j!==void 0&&ie(j.toString(),w.end)}}function Y(w){return w.symbol&&w.symbol.flags&1536}function Z(w){if(!(!w.initializer||e.isBindingPattern(w.name))){var j=e.getEffectiveTypeAnnotationNode(w);if(!j){var U=E.getTypeAtLocation(w);if(!Y(U)){var z=_(U);z&&x(z,w.name.end)}}}}function k(w){var j=w.arguments;if(!(!j||!j.length)){var U=[],z=E.getResolvedSignatureForSignatureHelp(w,U);if(!(!z||!U.length))for(var y=0;y<j.length;++y){var oe=j[y],ve=e.skipParentheses(oe);if(!(Q(p)&&!ee(ve))){var ce=E.getParameterIdentifierNameAtPosition(z,y);if(ce){var m=ce[0],de=ce[1],ae=p.includeInlayParameterNameHintsWhenArgumentMatchesName||!I(ve,m);if(!ae&&!de)continue;var V=e.unescapeLeadingUnderscores(m);if(ne(ve,V))continue;M(V,oe.getStart(),de)}}}}}function I(w,j){return e.isIdentifier(w)?w.text===j:e.isPropertyAccessExpression(w)?w.name.text===j:!1}function ne(w,j){if(!e.isIdentifierText(j,G.target,e.getLanguageVariant(g.scriptKind)))return!1;var U=e.getLeadingCommentRanges(C,w.pos);if(!(U!=null&&U.length))return!1;var z=W(j);return e.some(U,function(y){return z.test(C.substring(y.pos,y.end))})}function ee(w){switch(w.kind){case 218:{var j=w.operand;return e.isLiteralExpression(j)||e.isIdentifier(j)&&e.isInfinityOrNaNString(j.escapedText)}case 110:case 95:case 104:case 14:case 222:return!0;case 79:{var U=w.escapedText;return J(U)||e.isInfinityOrNaNString(U)}}return e.isLiteralExpression(w)}function A(w){if(!(e.isArrowFunction(w)&&!e.findChildOfKind(w,20,g))){var j=e.getEffectiveReturnTypeNode(w);if(!(j||!w.body)){var U=E.getSignatureFromDeclaration(w);if(!!U){var z=E.getReturnTypeOfSignature(U);if(!Y(z)){var y=_(z);!y||x(y,f(w))}}}}}function f(w){var j=e.findChildOfKind(w,21,g);return j?j.end:w.parameters.end}function P(w){var j=E.getSignatureFromDeclaration(w);if(!!j)for(var U=0;U<w.parameters.length&&U<j.parameters.length;++U){var z=w.parameters[U],y=e.getEffectiveTypeAnnotationNode(z);if(!y){var oe=D(j.parameters[U]);!oe||x(oe,z.name.end)}}}function D(w){var j=w.valueDeclaration;if(!(!j||!e.isParameter(j))){var U=E.getTypeOfSymbolAtLocation(w,j);if(!Y(U))return _(U)}}function l(w,j){return w.length>j?w.substr(0,j-3)+"...":w}function _(w){var j=71286784,U={removeComments:!0},z=e.createPrinter(U);return e.usingSingleLineStringWriter(function(y){var oe=E.typeToTypeNode(w,void 0,j,y);e.Debug.assertIsDefined(oe,"should always get typenode"),z.writeNode(4,oe,g,y)})}function J(w){return w==="undefined"}}O.provideInlayHints=pe})(a=e.InlayHints||(e.InlayHints={}))})(Pe||(Pe={}));var Pe;(function(e){var a=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function O(Q){var pe=e.createGetCanonicalFileName(Q.useCaseSensitiveFileNames()),F=Q.getCurrentDirectory(),g=new e.Map,S=new e.Map;return{tryGetSourcePosition:p,tryGetGeneratedPosition:C,toLineColumnOffset:B,clearCache:re};function H(M){return e.toPath(M,F,pe)}function se(M,x){var ie=H(M),_e=S.get(ie);if(_e)return _e;var Y;if(Q.getDocumentPositionMapper)Y=Q.getDocumentPositionMapper(M,x);else if(Q.readFile){var Z=ue(M);Y=Z&&e.getDocumentPositionMapper({getSourceFileLike:ue,getCanonicalFileName:pe,log:function(k){return Q.log(k)}},M,e.getLineInfo(Z.text,e.getLineStarts(Z)),function(k){return!Q.fileExists||Q.fileExists(k)?Q.readFile(k):void 0})}return S.set(ie,Y||e.identitySourceMapConsumer),Y||e.identitySourceMapConsumer}function p(M){if(!!e.isDeclarationFileName(M.fileName)){var x=G(M.fileName);if(!!x){var ie=se(M.fileName).getSourcePosition(M);return!ie||ie===M?void 0:p(ie)||ie}}}function C(M){if(!e.isDeclarationFileName(M.fileName)){var x=G(M.fileName);if(!!x){var ie=Q.getProgram();if(!ie.isSourceOfProjectReferenceRedirect(x.fileName)){var _e=ie.getCompilerOptions(),Y=e.outFile(_e),Z=Y?e.removeFileExtension(Y)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(M.fileName,ie.getCompilerOptions(),F,ie.getCommonSourceDirectory(),pe);if(Z!==void 0){var k=se(Z,M.fileName).getGeneratedPosition(M);return k===M?void 0:k}}}}}function G(M){var x=Q.getProgram();if(!!x){var ie=H(M),_e=x.getSourceFileByPath(ie);return _e&&_e.resolvedPath===ie?_e:void 0}}function E(M){var x=H(M),ie=g.get(x);if(ie!==void 0)return ie||void 0;if(!Q.readFile||Q.fileExists&&!Q.fileExists(x)){g.set(x,!1);return}var _e=Q.readFile(x),Y=_e?N(_e):!1;return g.set(x,Y),Y||void 0}function ue(M){return Q.getSourceFileLike?Q.getSourceFileLike(M):G(M)||E(M)}function B(M,x){var ie=ue(M);return ie.getLineAndCharacterOfPosition(x)}function re(){g.clear(),S.clear()}}e.getSourceMapper=O;function L(Q,pe,F,g){var S=e.tryGetSourceMappingURL(F);if(S){var H=a.exec(S);if(H){if(H[1]){var se=H[1];return W(Q,e.base64decode(e.sys,se),pe)}S=void 0}}var p=[];S&&p.push(S),p.push(pe+".map");for(var C=S&&e.getNormalizedAbsolutePath(S,e.getDirectoryPath(pe)),G=0,E=p;G<E.length;G++){var ue=E[G],B=e.getNormalizedAbsolutePath(ue,e.getDirectoryPath(pe)),re=g(B,C);if(e.isString(re))return W(Q,re,B);if(re!==void 0)return re||void 0}}e.getDocumentPositionMapper=L;function W(Q,pe,F){var g=e.tryParseRawSourceMap(pe);if(!(!g||!g.sources||!g.file||!g.mappings)&&!(g.sourcesContent&&g.sourcesContent.some(e.isString)))return e.createDocumentPositionMapper(Q,g,F)}function N(Q,pe){return{text:Q,lineMap:pe,getLineAndCharacterOfPosition:function(F){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),F)}}}})(Pe||(Pe={}));var Pe;(function(e){var a=new e.Map;function O(re,M,x){M.getSemanticDiagnostics(re,x);var ie=[],_e=M.getTypeChecker(),Y=re.impliedNodeFormat===e.ModuleKind.CommonJS||e.fileExtensionIsOneOf(re.fileName,[".cts",".cjs"]);!Y&&re.commonJsModuleIndicator&&(e.programContainsEsModules(M)||e.compilerOptionsIndicateEsModules(M.getCompilerOptions()))&&L(re)&&ie.push(e.createDiagnosticForNode(g(re.commonJsModuleIndicator),e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));var Z=e.isSourceFileJS(re);if(a.clear(),D(re),e.getAllowSyntheticDefaultImports(M.getCompilerOptions()))for(var k=0,I=re.imports;k<I.length;k++){var ne=I[k],ee=e.importFromModuleSpecifier(ne),A=N(ee);if(!!A){var f=e.getResolvedModule(re,ne.text,e.getModeForUsageLocation(re,ne)),P=f&&M.getSourceFile(f.resolvedFileName);P&&P.externalModuleIndicator&&e.isExportAssignment(P.externalModuleIndicator)&&P.externalModuleIndicator.isExportEquals&&ie.push(e.createDiagnosticForNode(A,e.Diagnostics.Import_may_be_converted_to_a_default_import))}}return e.addRange(ie,re.bindSuggestionDiagnostics),e.addRange(ie,M.getSuggestionDiagnostics(re,x)),ie.sort(function(l,_){return l.start-_.start});function D(l){if(Z)ue(l,_e)&&ie.push(e.createDiagnosticForNode(e.isVariableDeclaration(l.parent)?l.parent.name:l,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(e.isVariableStatement(l)&&l.parent===re&&l.declarationList.flags&2&&l.declarationList.declarations.length===1){var _=l.declarationList.declarations[0].initializer;_&&e.isRequireCall(_,!0)&&ie.push(e.createDiagnosticForNode(_,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(l)&&ie.push(e.createDiagnosticForNode(l.name||l,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}B(l)&&Q(l,_e,ie),l.forEachChild(D)}}e.computeSuggestionDiagnostics=O;function L(re){return re.statements.some(function(M){switch(M.kind){case 236:return M.declarationList.declarations.some(function(_e){return!!_e.initializer&&e.isRequireCall(W(_e.initializer),!0)});case 237:{var x=M.expression;if(!e.isBinaryExpression(x))return e.isRequireCall(x,!0);var ie=e.getAssignmentDeclarationKind(x);return ie===1||ie===2}default:return!1}})}function W(re){return e.isPropertyAccessExpression(re)?W(re.expression):re}function N(re){switch(re.kind){case 265:var M=re.importClause,x=re.moduleSpecifier;return M&&!M.name&&M.namedBindings&&M.namedBindings.kind===267&&e.isStringLiteral(x)?M.namedBindings.name:void 0;case 264:return re.name;default:return}}function Q(re,M,x){pe(re,M)&&!a.has(E(re))&&x.push(e.createDiagnosticForNode(!re.name&&e.isVariableDeclaration(re.parent)&&e.isIdentifier(re.parent.name)?re.parent.name:re,e.Diagnostics.This_may_be_converted_to_an_async_function))}function pe(re,M){return!e.isAsyncFunction(re)&&re.body&&e.isBlock(re.body)&&S(re.body,M)&&F(re,M)}function F(re,M){var x=M.getSignatureFromDeclaration(re),ie=x?M.getReturnTypeOfSignature(x):void 0;return!!ie&&!!M.getPromisedTypeOfPromise(ie)}e.returnsPromise=F;function g(re){return e.isBinaryExpression(re)?re.left:re}function S(re,M){return!!e.forEachReturnStatement(re,function(x){return H(x,M)})}function H(re,M){return e.isReturnStatement(re)&&!!re.expression&&se(re.expression,M)}e.isReturnStatementWithFixablePromiseHandler=H;function se(re,M){if(!p(re)||!C(re)||!re.arguments.every(function(ie){return G(ie,M)}))return!1;for(var x=re.expression.expression;p(x)||e.isPropertyAccessExpression(x);)if(e.isCallExpression(x)){if(!C(x)||!x.arguments.every(function(ie){return G(ie,M)}))return!1;x=x.expression.expression}else x=x.expression;return!0}e.isFixablePromiseHandler=se;function p(re){return e.isCallExpression(re)&&(e.hasPropertyAccessExpressionWithName(re,"then")||e.hasPropertyAccessExpressionWithName(re,"catch")||e.hasPropertyAccessExpressionWithName(re,"finally"))}function C(re){var M=re.expression.name.text,x=M==="then"?2:M==="catch"||M==="finally"?1:0;return re.arguments.length>x?!1:re.arguments.length<x?!0:x===1||e.some(re.arguments,function(ie){return ie.kind===104||e.isIdentifier(ie)&&ie.text==="undefined"})}function G(re,M){switch(re.kind){case 255:case 212:var x=e.getFunctionFlags(re);if(x&1)return!1;case 213:a.set(E(re),!0);case 104:return!0;case 79:case 205:{var ie=M.getSymbolAtLocation(re);return ie?M.isUndefinedSymbol(ie)||e.some(e.skipAlias(ie,M).declarations,function(_e){return e.isFunctionLike(_e)||e.hasInitializer(_e)&&!!_e.initializer&&e.isFunctionLike(_e.initializer)}):!1}default:return!1}}function E(re){return"".concat(re.pos.toString(),":").concat(re.end.toString())}function ue(re,M){var x,ie,_e,Y;if(re.kind===212){if(e.isVariableDeclaration(re.parent)&&((x=re.symbol.members)===null||x===void 0?void 0:x.size))return!0;var Z=M.getSymbolOfExpando(re,!1);return!!(Z&&(((ie=Z.exports)===null||ie===void 0?void 0:ie.size)||((_e=Z.members)===null||_e===void 0?void 0:_e.size)))}return re.kind===255?!!(!((Y=re.symbol.members)===null||Y===void 0)&&Y.size):!1}function B(re){switch(re.kind){case 255:case 168:case 212:case 213:return!0;default:return!1}}e.canBeConvertedToAsync=B})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L=70246400;function W(S,H,se){var p=N(S,H,se);if(p!=="")return p;var C=e.getCombinedLocalAndExportSymbolFlags(H);return C&32?e.getDeclarationOfKind(H,225)?"local class":"class":C&384?"enum":C&524288?"type":C&64?"interface":C&262144?"type parameter":C&8?"enum member":C&2097152?"alias":C&1536?"module":p}O.getSymbolKind=W;function N(S,H,se){var p=S.getRootSymbols(H);if(p.length===1&&e.first(p).flags&8192&&S.getTypeOfSymbolAtLocation(H,se).getNonNullableType().getCallSignatures().length!==0)return"method";if(S.isUndefinedSymbol(H))return"var";if(S.isArgumentsSymbol(H))return"local var";if(se.kind===108&&e.isExpression(se)||e.isThisInTypeQuery(se))return"parameter";var C=e.getCombinedLocalAndExportSymbolFlags(H);if(C&3)return e.isFirstDeclarationOfSymbolParameter(H)?"parameter":H.valueDeclaration&&e.isVarConst(H.valueDeclaration)?"const":e.forEach(H.declarations,e.isLet)?"let":g(H)?"local var":"var";if(C&16)return g(H)?"local function":"function";if(C&32768)return"getter";if(C&65536)return"setter";if(C&8192)return"method";if(C&16384)return"constructor";if(C&4){if(C&33554432&&H.checkFlags&6){var G=e.forEach(S.getRootSymbols(H),function(ue){var B=ue.getFlags();if(B&98311)return"property"});if(!G){var E=S.getTypeOfSymbolAtLocation(H,se);return E.getCallSignatures().length?"method":"property"}return G}return"property"}return""}function Q(S){if(S.declarations&&S.declarations.length){var H=S.declarations,se=H[0],p=H.slice(1),C=e.length(p)&&e.isDeprecatedDeclaration(se)&&e.some(p,function(E){return!e.isDeprecatedDeclaration(E)})?8192:0,G=e.getNodeModifiers(se,C);if(G)return G.split(",")}return[]}function pe(S,H){if(!H)return"";var se=new e.Set(Q(H));if(H.flags&2097152){var p=S.getAliasedSymbol(H);p!==H&&e.forEach(Q(p),function(C){se.add(C)})}return H.flags&16777216&&se.add("optional"),se.size>0?e.arrayFrom(se.values()).join(","):""}O.getSymbolModifiers=pe;function F(S,H,se,p,C,G,E){var ue;G===void 0&&(G=e.getMeaningFromLocation(C));var B=[],re=[],M=[],x=e.getCombinedLocalAndExportSymbolFlags(H),ie=G&1?N(S,H,C):"",_e=!1,Y=C.kind===108&&e.isInExpressionContext(C)||e.isThisInTypeQuery(C),Z,k,I,ne,ee=!1;if(C.kind===108&&!Y)return{displayParts:[e.keywordPart(108)],documentation:[],symbolKind:"primitive type",tags:void 0};if(ie!==""||x&32||x&2097152){if(ie==="getter"||ie==="setter"){var A=e.find(H.declarations,function(cr){return cr.name===C});if(A)switch(A.kind){case 171:ie="getter";break;case 172:ie="setter";break;default:e.Debug.assertNever(A)}else ie="property"}var f=void 0;if(Z=Y?S.getTypeAtLocation(C):S.getTypeOfSymbolAtLocation(H,C),C.parent&&C.parent.kind===205){var P=C.parent.name;(P===C||P&&P.getFullWidth()===0)&&(C=C.parent)}var D=void 0;if(e.isCallOrNewExpression(C)?D=C:(e.isCallExpressionTarget(C)||e.isNewExpressionTarget(C)||C.parent&&(e.isJsxOpeningLikeElement(C.parent)||e.isTaggedTemplateExpression(C.parent))&&e.isFunctionLike(H.valueDeclaration))&&(D=C.parent),D){f=S.getResolvedSignature(D);var l=D.kind===208||e.isCallExpression(D)&&D.expression.kind===106,_=l?Z.getConstructSignatures():Z.getCallSignatures();if(f&&!e.contains(_,f.target)&&!e.contains(_,f)&&(f=_.length?_[0]:void 0),f){switch(l&&x&32?(ie="constructor",ye(Z.symbol,ie)):x&2097152?(ie="alias",Se(ie),B.push(e.spacePart()),l&&(f.flags&4&&(B.push(e.keywordPart(126)),B.push(e.spacePart())),B.push(e.keywordPart(103)),B.push(e.spacePart())),we(H)):ye(H,ie),ie){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":B.push(e.punctuationPart(58)),B.push(e.spacePart()),!(e.getObjectFlags(Z)&16)&&Z.symbol&&(e.addRange(B,e.symbolToDisplayParts(S,Z.symbol,p,void 0,5)),B.push(e.lineBreakPart())),l&&(f.flags&4&&(B.push(e.keywordPart(126)),B.push(e.spacePart())),B.push(e.keywordPart(103)),B.push(e.spacePart())),ge(f,_,262144);break;default:ge(f,_)}_e=!0,ee=_.length>1}}else if(e.isNameOfFunctionDeclaration(C)&&!(x&98304)||C.kind===134&&C.parent.kind===170){var J=C.parent,w=H.declarations&&e.find(H.declarations,function(cr){return cr===(C.kind===134?J.parent:J)});if(w){var _=J.kind===170?Z.getNonNullableType().getConstructSignatures():Z.getNonNullableType().getCallSignatures();S.isImplementationOfOverload(J)?f=_[0]:f=S.getSignatureFromDeclaration(J),J.kind===170?(ie="constructor",ye(Z.symbol,ie)):ye(J.kind===173&&!(Z.symbol.flags&2048||Z.symbol.flags&4096)?Z.symbol:H,ie),f&&ge(f,_),_e=!0,ee=_.length>1}}}if(x&32&&!_e&&!Y&&(er(),e.getDeclarationOfKind(H,225)?Se("local class"):B.push(e.keywordPart(84)),B.push(e.spacePart()),we(H),Fe(H,se)),x&64&&G&2&&(Ge(),B.push(e.keywordPart(118)),B.push(e.spacePart()),we(H),Fe(H,se)),x&524288&&G&2&&(Ge(),B.push(e.keywordPart(151)),B.push(e.spacePart()),we(H),Fe(H,se),B.push(e.spacePart()),B.push(e.operatorPart(63)),B.push(e.spacePart()),e.addRange(B,e.typeToDisplayParts(S,e.isConstTypeReference(C.parent)?S.getTypeAtLocation(C.parent):S.getDeclaredTypeOfSymbol(H),p,8388608))),x&384&&(Ge(),e.some(H.declarations,function(cr){return e.isEnumDeclaration(cr)&&e.isEnumConst(cr)})&&(B.push(e.keywordPart(85)),B.push(e.spacePart())),B.push(e.keywordPart(92)),B.push(e.spacePart()),we(H)),x&1536&&!Y){Ge();var A=e.getDeclarationOfKind(H,260),j=A&&A.name&&A.name.kind===79;B.push(e.keywordPart(j?142:141)),B.push(e.spacePart()),we(H)}if(x&262144&&G&2)if(Ge(),B.push(e.punctuationPart(20)),B.push(e.textPart("type parameter")),B.push(e.punctuationPart(21)),B.push(e.spacePart()),we(H),H.parent)he(),we(H.parent,p),Fe(H.parent,p);else{var U=e.getDeclarationOfKind(H,162);if(U===void 0)return e.Debug.fail();var A=U.parent;if(A)if(e.isFunctionLikeKind(A.kind)){he();var f=S.getSignatureFromDeclaration(A);A.kind===174?(B.push(e.keywordPart(103)),B.push(e.spacePart())):A.kind!==173&&A.name&&we(A.symbol),e.addRange(B,e.signatureToDisplayParts(S,f,se,32))}else A.kind===258&&(he(),B.push(e.keywordPart(151)),B.push(e.spacePart()),we(A.symbol),Fe(A.symbol,se))}if(x&8){ie="enum member",ye(H,"enum member");var A=(ue=H.declarations)===null||ue===void 0?void 0:ue[0];if((A==null?void 0:A.kind)===297){var z=S.getConstantValue(A);z!==void 0&&(B.push(e.spacePart()),B.push(e.operatorPart(63)),B.push(e.spacePart()),B.push(e.displayPart(e.getTextOfConstantValue(z),typeof z=="number"?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}}if(H.flags&2097152){if(Ge(),!_e){var y=S.getAliasedSymbol(H);if(y!==H&&y.declarations&&y.declarations.length>0){var oe=y.declarations[0],ve=e.getNameOfDeclaration(oe);if(ve){var ce=e.isModuleWithStringLiteralName(oe)&&e.hasSyntacticModifier(oe,2),m=H.name!=="default"&&!ce,de=F(S,y,e.getSourceFileOfNode(oe),oe,ve,G,m?H:y);B.push.apply(B,de.displayParts),B.push(e.lineBreakPart()),I=de.documentation,ne=de.tags}else I=y.getContextualDocumentationComment(oe,S),ne=y.getJsDocTags(S)}}if(H.declarations)switch(H.declarations[0].kind){case 263:B.push(e.keywordPart(93)),B.push(e.spacePart()),B.push(e.keywordPart(142));break;case 270:B.push(e.keywordPart(93)),B.push(e.spacePart()),B.push(e.keywordPart(H.declarations[0].isExportEquals?63:88));break;case 274:B.push(e.keywordPart(93));break;default:B.push(e.keywordPart(100))}B.push(e.spacePart()),we(H),e.forEach(H.declarations,function(cr){if(cr.kind===264){var ur=cr;if(e.isExternalModuleImportEqualsDeclaration(ur))B.push(e.spacePart()),B.push(e.operatorPart(63)),B.push(e.spacePart()),B.push(e.keywordPart(145)),B.push(e.punctuationPart(20)),B.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(ur)),e.SymbolDisplayPartKind.stringLiteral)),B.push(e.punctuationPart(21));else{var Ir=S.getSymbolAtLocation(ur.moduleReference);Ir&&(B.push(e.spacePart()),B.push(e.operatorPart(63)),B.push(e.spacePart()),we(Ir,p))}return!0}})}if(!_e)if(ie!==""){if(Z){if(Y?(Ge(),B.push(e.keywordPart(108))):ye(H,ie),ie==="property"||ie==="getter"||ie==="setter"||ie==="JSX attribute"||x&3||ie==="local var"||Y){if(B.push(e.punctuationPart(58)),B.push(e.spacePart()),Z.symbol&&Z.symbol.flags&262144){var ae=e.mapToDisplayParts(function(cr){var ur=S.typeParameterToDeclaration(Z,p,L);me().writeNode(4,ur,e.getSourceFileOfNode(e.getParseTreeNode(p)),cr)});e.addRange(B,ae)}else e.addRange(B,e.typeToDisplayParts(S,Z,p));if(H.target&&H.target.tupleLabelDeclaration){var V=H.target.tupleLabelDeclaration;e.Debug.assertNode(V.name,e.isIdentifier),B.push(e.spacePart()),B.push(e.punctuationPart(20)),B.push(e.textPart(e.idText(V.name))),B.push(e.punctuationPart(21))}}else if(x&16||x&8192||x&16384||x&131072||x&98304||ie==="method"){var _=Z.getNonNullableType().getCallSignatures();_.length&&(ge(_[0],_),ee=_.length>1)}}}else ie=W(S,H,C);if(re.length===0&&!ee&&(re=H.getContextualDocumentationComment(p,S)),re.length===0&&x&4&&H.parent&&H.declarations&&e.forEach(H.parent.declarations,function(cr){return cr.kind===303}))for(var le=0,ke=H.declarations;le<ke.length;le++){var A=ke[le];if(!(!A.parent||A.parent.kind!==220)){var Ue=S.getSymbolAtLocation(A.parent.right);if(!!Ue&&(re=Ue.getDocumentationComment(S),M=Ue.getJsDocTags(S),re.length>0))break}}if(re.length===0&&e.isIdentifier(C)&&H.valueDeclaration&&e.isBindingElement(H.valueDeclaration)){var A=H.valueDeclaration,He=A.parent;if(e.isIdentifier(A.name)&&e.isObjectBindingPattern(He)){var ar=e.getTextOfIdentifierOrLiteral(A.name),gr=S.getTypeAtLocation(He);re=e.firstDefined(gr.isUnion()?gr.types:[gr],function(ur){var Ir=ur.getProperty(ar);return Ir?Ir.getDocumentationComment(S):void 0})||e.emptyArray}}return M.length===0&&!ee&&(M=H.getContextualJsDocTags(p,S)),re.length===0&&I&&(re=I),M.length===0&&ne&&(M=ne),{displayParts:B,documentation:re,symbolKind:ie,tags:M.length===0?void 0:M};function me(){return k||(k=e.createPrinter({removeComments:!0})),k}function Ge(){B.length&&B.push(e.lineBreakPart()),er()}function er(){E&&(Se("alias"),B.push(e.spacePart()))}function he(){B.push(e.spacePart()),B.push(e.keywordPart(101)),B.push(e.spacePart())}function we(cr,ur){E&&cr===H&&(cr=E);var Ir=e.symbolToDisplayParts(S,cr,ur||se,void 0,7);e.addRange(B,Ir),H.flags&16777216&&B.push(e.punctuationPart(57))}function ye(cr,ur){Ge(),ur&&(Se(ur),cr&&!e.some(cr.declarations,function(Ir){return e.isArrowFunction(Ir)||(e.isFunctionExpression(Ir)||e.isClassExpression(Ir))&&!Ir.name})&&(B.push(e.spacePart()),we(cr)))}function Se(cr){switch(cr){case"var":case"function":case"let":case"const":case"constructor":B.push(e.textOrKeywordPart(cr));return;default:B.push(e.punctuationPart(20)),B.push(e.textOrKeywordPart(cr)),B.push(e.punctuationPart(21));return}}function ge(cr,ur,Ir){Ir===void 0&&(Ir=0),e.addRange(B,e.signatureToDisplayParts(S,cr,p,Ir|32)),ur.length>1&&(B.push(e.spacePart()),B.push(e.punctuationPart(20)),B.push(e.operatorPart(39)),B.push(e.displayPart((ur.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),B.push(e.spacePart()),B.push(e.textPart(ur.length===2?"overload":"overloads")),B.push(e.punctuationPart(21))),re=cr.getDocumentationComment(S),M=cr.getJsDocTags(),ur.length>1&&re.length===0&&M.length===0&&(re=ur[0].getDocumentationComment(S),M=ur[0].getJsDocTags())}function Fe(cr,ur){var Ir=e.mapToDisplayParts(function(dr){var Br=S.symbolToTypeParameterDeclarations(cr,ur,L);me().writeList(53776,Br,e.getSourceFileOfNode(e.getParseTreeNode(ur)),dr)});e.addRange(B,Ir)}}O.getSymbolDisplayPartsDocumentationAndSymbolKind=F;function g(S){return S.parent?!1:e.forEach(S.declarations,function(H){if(H.kind===212)return!0;if(H.kind!==253&&H.kind!==255)return!1;for(var se=H.parent;!e.isFunctionBlock(se);se=se.parent)if(se.kind===303||se.kind===261)return!1;return!0})}})(a=e.SymbolDisplay||(e.SymbolDisplay={}))})(Pe||(Pe={}));var Pe;(function(e){function a(N,Q){var pe=[],F=Q.compilerOptions?W(Q.compilerOptions,pe):{},g=e.getDefaultCompilerOptions();for(var S in g)e.hasProperty(g,S)&&F[S]===void 0&&(F[S]=g[S]);for(var H=0,se=e.transpileOptionValueCompilerOptions;H<se.length;H++){var p=se[H];F[p.name]=p.transpileOptionValue}F.suppressOutputPathCheck=!0,F.allowNonTsExtensions=!0;var C=Q.fileName||(Q.compilerOptions&&Q.compilerOptions.jsx?"module.tsx":"module.ts"),G=e.createSourceFile(C,N,e.getEmitScriptTarget(F));Q.moduleName&&(G.moduleName=Q.moduleName),Q.renamedDependencies&&(G.renamedDependencies=new e.Map(e.getEntries(Q.renamedDependencies)));var E=e.getNewLineCharacter(F),ue,B,re={getSourceFile:function(x){return x===e.normalizePath(C)?G:void 0},writeFile:function(x,ie){e.fileExtensionIs(x,".map")?(e.Debug.assertEqual(B,void 0,"Unexpected multiple source map outputs, file:",x),B=ie):(e.Debug.assertEqual(ue,void 0,"Unexpected multiple outputs, file:",x),ue=ie)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(x){return x},getCurrentDirectory:function(){return""},getNewLine:function(){return E},fileExists:function(x){return x===C},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},M=e.createProgram([C],F,re);return Q.reportDiagnostics&&(e.addRange(pe,M.getSyntacticDiagnostics(G)),e.addRange(pe,M.getOptionsDiagnostics())),M.emit(void 0,void 0,void 0,void 0,Q.transformers),ue===void 0?e.Debug.fail("Output generation failed"):{outputText:ue,diagnostics:pe,sourceMapText:B}}e.transpileModule=a;function O(N,Q,pe,F,g){var S=a(N,{compilerOptions:Q,fileName:pe,reportDiagnostics:!!F,moduleName:g});return e.addRange(F,S.diagnostics),S.outputText}e.transpile=O;var L;function W(N,Q){L=L||e.filter(e.optionDeclarations,function(H){return typeof H.type=="object"&&!e.forEachEntry(H.type,function(se){return typeof se!="number"})}),N=e.cloneCompilerOptions(N);for(var pe=function(H){if(!e.hasProperty(N,H.name))return"continue";var se=N[H.name];e.isString(se)?N[H.name]=e.parseCustomTypeOption(H,se,Q):e.forEachEntry(H.type,function(p){return p===se})||Q.push(e.createCompilerDiagnosticForInvalidCustomType(H))},F=0,g=L;F<g.length;F++){var S=g[F];pe(S)}return N}e.fixupCompilerOptions=W})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(N){N[N.FormatDocument=0]="FormatDocument",N[N.FormatSelection=1]="FormatSelection",N[N.FormatOnEnter=2]="FormatOnEnter",N[N.FormatOnSemicolon=3]="FormatOnSemicolon",N[N.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",N[N.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace"})(L=O.FormattingRequestKind||(O.FormattingRequestKind={}));var W=function(){function N(Q,pe,F){this.sourceFile=Q,this.formattingRequestKind=pe,this.options=F}return N.prototype.updateContext=function(Q,pe,F,g,S){this.currentTokenSpan=e.Debug.checkDefined(Q),this.currentTokenParent=e.Debug.checkDefined(pe),this.nextTokenSpan=e.Debug.checkDefined(F),this.nextTokenParent=e.Debug.checkDefined(g),this.contextNode=e.Debug.checkDefined(S),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0},N.prototype.ContextNodeAllOnSameLine=function(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine},N.prototype.NextNodeAllOnSameLine=function(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine},N.prototype.TokensAreOnSameLine=function(){if(this.tokensAreOnSameLine===void 0){var Q=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,pe=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=Q===pe}return this.tokensAreOnSameLine},N.prototype.ContextNodeBlockIsOnOneLine=function(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine},N.prototype.NextNodeBlockIsOnOneLine=function(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine},N.prototype.NodeIsOnOneLine=function(Q){var pe=this.sourceFile.getLineAndCharacterOfPosition(Q.getStart(this.sourceFile)).line,F=this.sourceFile.getLineAndCharacterOfPosition(Q.getEnd()).line;return pe===F},N.prototype.BlockIsOnOneLine=function(Q){var pe=e.findChildOfKind(Q,18,this.sourceFile),F=e.findChildOfKind(Q,19,this.sourceFile);if(pe&&F){var g=this.sourceFile.getLineAndCharacterOfPosition(pe.getEnd()).line,S=this.sourceFile.getLineAndCharacterOfPosition(F.getStart(this.sourceFile)).line;return g===S}return!1},N}();O.FormattingContext=W})(a=e.formatting||(e.formatting={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L=e.createScanner(99,!1,0),W=e.createScanner(99,!1,1),N;(function(pe){pe[pe.Scan=0]="Scan",pe[pe.RescanGreaterThanToken=1]="RescanGreaterThanToken",pe[pe.RescanSlashToken=2]="RescanSlashToken",pe[pe.RescanTemplateToken=3]="RescanTemplateToken",pe[pe.RescanJsxIdentifier=4]="RescanJsxIdentifier",pe[pe.RescanJsxText=5]="RescanJsxText",pe[pe.RescanJsxAttributeValue=6]="RescanJsxAttributeValue"})(N||(N={}));function Q(pe,F,g,S,H){var se=F===1?W:L;se.setText(pe),se.setTextPos(g);var p=!0,C,G,E,ue,B,re=H({advance:M,readTokenInfo:ne,readEOFTokenRange:A,isOnToken:f,isOnEOF:P,getCurrentLeadingTrivia:function(){return C},lastTrailingTriviaWasNewLine:function(){return p},skipToEndOf:l,skipToStartOf:_,getStartPos:function(){var J;return(J=B==null?void 0:B.token.pos)!==null&&J!==void 0?J:se.getTokenPos()}});return B=void 0,se.setText(void 0),re;function M(){B=void 0;var J=se.getStartPos()!==g;J?p=!!G&&e.last(G).kind===4:se.scan(),C=void 0,G=void 0;for(var w=se.getStartPos();w<S;){var j=se.getToken();if(!e.isTrivia(j))break;se.scan();var U={pos:w,end:se.getStartPos(),kind:j};w=se.getStartPos(),C=e.append(C,U)}E=se.getStartPos()}function x(J){switch(J.kind){case 33:case 71:case 72:case 49:case 48:return!0}return!1}function ie(J){if(J.parent)switch(J.parent.kind){case 284:case 279:case 280:case 278:return e.isKeyword(J.kind)||J.kind===79}return!1}function _e(J){return e.isJsxText(J)}function Y(J){return J.kind===13}function Z(J){return J.kind===16||J.kind===17}function k(J){return J.parent&&e.isJsxAttribute(J.parent)&&J.parent.initializer===J}function I(J){return J===43||J===68}function ne(J){e.Debug.assert(f());var w=x(J)?1:Y(J)?2:Z(J)?3:ie(J)?4:_e(J)?5:k(J)?6:0;if(B&&w===ue)return D(B,J);se.getStartPos()!==E&&(e.Debug.assert(B!==void 0),se.setTextPos(E),se.scan());var j=ee(J,w),U=O.createTextRangeWithKind(se.getStartPos(),se.getTextPos(),j);for(G&&(G=void 0);se.getStartPos()<S&&(j=se.scan(),!!e.isTrivia(j));){var z=O.createTextRangeWithKind(se.getStartPos(),se.getTextPos(),j);if(G||(G=[]),G.push(z),j===4){se.scan();break}}return B={leadingTrivia:C,trailingTrivia:G,token:U},D(B,J)}function ee(J,w){var j=se.getToken();switch(ue=0,w){case 1:if(j===31){ue=1;var U=se.reScanGreaterToken();return e.Debug.assert(J.kind===U),U}break;case 2:if(I(j)){ue=2;var U=se.reScanSlashToken();return e.Debug.assert(J.kind===U),U}break;case 3:if(j===19)return ue=3,se.reScanTemplateToken(!1);break;case 4:return ue=4,se.scanJsxIdentifier();case 5:return ue=5,se.reScanJsxToken(!1);case 6:return ue=6,se.reScanJsxAttributeValue();case 0:break;default:e.Debug.assertNever(w)}return j}function A(){return e.Debug.assert(P()),O.createTextRangeWithKind(se.getStartPos(),se.getTextPos(),1)}function f(){var J=B?B.token.kind:se.getToken();return J!==1&&!e.isTrivia(J)}function P(){var J=B?B.token.kind:se.getToken();return J===1}function D(J,w){return e.isToken(w)&&J.token.kind!==w.kind&&(J.token.kind=w.kind),J}function l(J){se.setTextPos(J.end),E=se.getStartPos(),ue=void 0,B=void 0,p=!1,C=void 0,G=void 0}function _(J){se.setTextPos(J.pos),E=se.getStartPos(),ue=void 0,B=void 0,p=!1,C=void 0,G=void 0}}O.getFormattingScanner=Q})(a=e.formatting||(e.formatting={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){O.anyContext=e.emptyArray;var L;(function(N){N[N.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",N[N.StopProcessingTokenActions=2]="StopProcessingTokenActions",N[N.InsertSpace=4]="InsertSpace",N[N.InsertNewLine=8]="InsertNewLine",N[N.DeleteSpace=16]="DeleteSpace",N[N.DeleteToken=32]="DeleteToken",N[N.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",N[N.StopAction=3]="StopAction",N[N.ModifySpaceAction=28]="ModifySpaceAction",N[N.ModifyTokenAction=96]="ModifyTokenAction"})(L=O.RuleAction||(O.RuleAction={}));var W;(function(N){N[N.None=0]="None",N[N.CanDeleteNewLines=1]="CanDeleteNewLines"})(W=O.RuleFlags||(O.RuleFlags={}))})(a=e.formatting||(e.formatting={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(){for(var n=[],Er=0;Er<=159;Er++)Er!==1&&n.push(Er);function br(){for(var Ji=[],di=0;di<arguments.length;di++)Ji[di]=arguments[di];return{tokens:n.filter(function(X){return!Ji.some(function(Ye){return Ye===X})}),isSpecific:!1}}var Pr={tokens:n,isSpecific:!1},Ce=N(qe(qe([],n,!0),[3],!1)),Le=N(qe(qe([],n,!0),[1],!1)),Xe=pe(81,159),Cr=pe(29,78),Lr=[101,102,159,127,139],Jr=[45,46,54,53],Rr=[8,9,79,20,22,18,108,103],ci=[79,20,108,103],be=[79,21,23,103],or=[79,20,108,103],Kr=[79,21,23,103],ei=[2,3],li=qe([79],e.typeKeywords,!0),Si=Ce,qi=N([79,3,84,93,100]),ft=N([21,3,90,111,96,91]),bt=[W("IgnoreBeforeComment",Pr,ei,O.anyContext,1),W("IgnoreAfterLineComment",2,Pr,O.anyContext,1),W("NotSpaceBeforeColon",Pr,58,[m,ue,B],16),W("SpaceAfterColon",58,Pr,[m,ue],4),W("NoSpaceBeforeQuestionMark",Pr,57,[m,ue,B],16),W("SpaceAfterQuestionMarkInConditionalOperator",57,Pr,[m,M],4),W("NoSpaceAfterQuestionMark",57,Pr,[m],16),W("NoSpaceBeforeDot",Pr,[24,28],[m],16),W("NoSpaceAfterDot",[24,28],Pr,[m],16),W("NoSpaceBetweenImportParenInImportType",100,20,[m,ce],16),W("NoSpaceAfterUnaryPrefixOperator",Jr,Rr,[m,ue],16),W("NoSpaceAfterUnaryPreincrementOperator",45,ci,[m],16),W("NoSpaceAfterUnaryPredecrementOperator",46,or,[m],16),W("NoSpaceBeforeUnaryPostincrementOperator",be,45,[m,Ir],16),W("NoSpaceBeforeUnaryPostdecrementOperator",Kr,46,[m,Ir],16),W("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[m,E],4),W("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[m,E],4),W("SpaceAfterAddWhenFollowedByPreincrement",39,45,[m,E],4),W("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[m,E],4),W("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[m,E],4),W("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[m,E],4),W("NoSpaceAfterCloseBrace",19,[27,26],[m],16),W("NewLineBeforeCloseBraceInBlockContext",Ce,19,[Y],8),W("SpaceAfterCloseBrace",19,br(21),[m,l],4),W("SpaceBetweenCloseBraceAndElse",19,91,[m],4),W("SpaceBetweenCloseBraceAndWhile",19,115,[m],4),W("NoSpaceBetweenEmptyBraceBrackets",18,19,[m,J],16),W("SpaceAfterConditionalClosingParen",21,22,[_],4),W("NoSpaceBetweenFunctionKeywordAndStar",98,41,[f],16),W("SpaceAfterStarInGeneratorDeclaration",41,79,[f],4),W("SpaceAfterFunctionInFuncDecl",98,Pr,[ee],4),W("NewLineAfterOpenBraceInBlockContext",18,Pr,[Y],8),W("SpaceAfterGetSetInMember",[136,148],79,[ee],4),W("NoSpaceBetweenYieldKeywordAndStar",125,41,[m,cr],16),W("SpaceBetweenYieldOrYieldStarAndOperand",[125,41],Pr,[m,cr],4),W("NoSpaceBetweenReturnAndSemicolon",105,26,[m],16),W("SpaceAfterCertainKeywords",[113,109,103,89,105,112,132],Pr,[m],4),W("SpaceAfterLetConstInVariableDeclaration",[119,85],Pr,[m,me],4),W("NoSpaceBeforeOpenParenInFuncCall",Pr,20,[m,U,z],16),W("SpaceBeforeBinaryKeywordOperator",Pr,Lr,[m,E],4),W("SpaceAfterBinaryKeywordOperator",Lr,Pr,[m,E],4),W("SpaceAfterVoidOperator",114,Pr,[m,Fe],4),W("SpaceBetweenAsyncAndOpenParen",131,20,[ve,m],4),W("SpaceBetweenAsyncAndFunctionKeyword",131,[98,79],[m],4),W("NoSpaceBetweenTagAndTemplateString",[79,21],[14,15],[m],16),W("SpaceBeforeJsxAttribute",Pr,79,[le,m],4),W("SpaceBeforeSlashInJsxOpeningElement",Pr,43,[Ue,m],4),W("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[Ue,m],16),W("NoSpaceBeforeEqualInJsxAttribute",Pr,63,[ke,m],16),W("NoSpaceAfterEqualInJsxAttribute",63,Pr,[ke,m],16),W("NoSpaceAfterModuleImport",[141,145],20,[m],16),W("SpaceAfterCertainTypeScriptKeywords",[126,84,135,88,92,93,94,136,117,100,118,141,142,121,123,122,144,148,124,151,155,140,137],Pr,[m],4),W("SpaceBeforeCertainTypeScriptKeywords",Pr,[94,117,155],[m],4),W("SpaceAfterModuleName",10,18,[er],4),W("SpaceBeforeArrow",Pr,38,[m],4),W("SpaceAfterArrow",38,Pr,[m],4),W("NoSpaceAfterEllipsis",25,79,[m],16),W("NoSpaceAfterOptionalParameters",57,[21,27],[m,ue],16),W("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[m,he],16),W("NoSpaceBeforeOpenAngularBracket",li,29,[m,Se],16),W("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[m,Se],16),W("NoSpaceAfterOpenAngularBracket",29,Pr,[m,Se],16),W("NoSpaceBeforeCloseAngularBracket",Pr,31,[m,Se],16),W("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[m,Se,A],16),W("SpaceBeforeAt",[21,79],59,[m],4),W("NoSpaceAfterAt",59,Pr,[m],16),W("SpaceAfterDecorator",Pr,[126,79,93,88,84,124,123,121,122,136,148,22,41],[ar],4),W("NoSpaceBeforeNonNullAssertionOperator",Pr,53,[m,ur],16),W("NoSpaceAfterNewKeywordOnConstructorSignature",103,20,[m,we],16),W("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[m],4)],aa=[W("SpaceAfterConstructor",134,20,[g("insertSpaceAfterConstructor"),m],4),W("NoSpaceAfterConstructor",134,20,[H("insertSpaceAfterConstructor"),m],16),W("SpaceAfterComma",27,Pr,[g("insertSpaceAfterCommaDelimiter"),m,ae,y,oe],4),W("NoSpaceAfterComma",27,Pr,[H("insertSpaceAfterCommaDelimiter"),m,ae],16),W("SpaceAfterAnonymousFunctionKeyword",[98,41],20,[g("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),ee],4),W("NoSpaceAfterAnonymousFunctionKeyword",[98,41],20,[H("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),ee],16),W("SpaceAfterKeywordInControl",Xe,20,[g("insertSpaceAfterKeywordsInControlFlowStatements"),_],4),W("NoSpaceAfterKeywordInControl",Xe,20,[H("insertSpaceAfterKeywordsInControlFlowStatements"),_],16),W("SpaceAfterOpenParen",20,Pr,[g("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),m],4),W("SpaceBeforeCloseParen",Pr,21,[g("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),m],4),W("SpaceBetweenOpenParens",20,20,[g("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),m],4),W("NoSpaceBetweenParens",20,21,[m],16),W("NoSpaceAfterOpenParen",20,Pr,[H("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),m],16),W("NoSpaceBeforeCloseParen",Pr,21,[H("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),m],16),W("SpaceAfterOpenBracket",22,Pr,[g("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),m],4),W("SpaceBeforeCloseBracket",Pr,23,[g("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),m],4),W("NoSpaceBetweenBrackets",22,23,[m],16),W("NoSpaceAfterOpenBracket",22,Pr,[H("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),m],16),W("NoSpaceBeforeCloseBracket",Pr,23,[H("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),m],16),W("SpaceAfterOpenBrace",18,Pr,[p("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),ie],4),W("SpaceBeforeCloseBrace",Pr,19,[p("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),ie],4),W("NoSpaceBetweenEmptyBraceBrackets",18,19,[m,J],16),W("NoSpaceAfterOpenBrace",18,Pr,[S("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),m],16),W("NoSpaceBeforeCloseBrace",Pr,19,[S("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),m],16),W("SpaceBetweenEmptyBraceBrackets",18,19,[g("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),W("NoSpaceBetweenEmptyBraceBrackets",18,19,[S("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),m],16),W("SpaceAfterTemplateHeadAndMiddle",[15,16],Pr,[g("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),de],4,1),W("SpaceBeforeTemplateMiddleAndTail",Pr,[16,17],[g("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),m],4),W("NoSpaceAfterTemplateHeadAndMiddle",[15,16],Pr,[H("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),de],16,1),W("NoSpaceBeforeTemplateMiddleAndTail",Pr,[16,17],[H("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),m],16),W("SpaceAfterOpenBraceInJsxExpression",18,Pr,[g("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),m,V],4),W("SpaceBeforeCloseBraceInJsxExpression",Pr,19,[g("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),m,V],4),W("NoSpaceAfterOpenBraceInJsxExpression",18,Pr,[H("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),m,V],16),W("NoSpaceBeforeCloseBraceInJsxExpression",Pr,19,[H("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),m,V],16),W("SpaceAfterSemicolonInFor",26,Pr,[g("insertSpaceAfterSemicolonInForStatements"),m,C],4),W("NoSpaceAfterSemicolonInFor",26,Pr,[H("insertSpaceAfterSemicolonInForStatements"),m,C],16),W("SpaceBeforeBinaryOperator",Pr,Cr,[g("insertSpaceBeforeAndAfterBinaryOperators"),m,E],4),W("SpaceAfterBinaryOperator",Cr,Pr,[g("insertSpaceBeforeAndAfterBinaryOperators"),m,E],4),W("NoSpaceBeforeBinaryOperator",Pr,Cr,[H("insertSpaceBeforeAndAfterBinaryOperators"),m,E],16),W("NoSpaceAfterBinaryOperator",Cr,Pr,[H("insertSpaceBeforeAndAfterBinaryOperators"),m,E],16),W("SpaceBeforeOpenParenInFuncDecl",Pr,20,[g("insertSpaceBeforeFunctionParenthesis"),m,ee],4),W("NoSpaceBeforeOpenParenInFuncDecl",Pr,20,[H("insertSpaceBeforeFunctionParenthesis"),m,ee],16),W("NewLineBeforeOpenBraceInControl",ft,18,[g("placeOpenBraceOnNewLineForControlBlocks"),_,_e],8,1),W("NewLineBeforeOpenBraceInFunction",Si,18,[g("placeOpenBraceOnNewLineForFunctions"),ee,_e],8,1),W("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",qi,18,[g("placeOpenBraceOnNewLineForFunctions"),P,_e],8,1),W("SpaceAfterTypeAssertion",31,Pr,[g("insertSpaceAfterTypeAssertion"),m,ge],4),W("NoSpaceAfterTypeAssertion",31,Pr,[H("insertSpaceAfterTypeAssertion"),m,ge],16),W("SpaceBeforeTypeAnnotation",Pr,[57,58],[g("insertSpaceBeforeTypeAnnotation"),m,re],4),W("NoSpaceBeforeTypeAnnotation",Pr,[57,58],[H("insertSpaceBeforeTypeAnnotation"),m,re],16),W("NoOptionalSemicolon",26,Le,[F("semicolons",e.SemicolonPreference.Remove),Br],32),W("OptionalSemicolon",Pr,Le,[F("semicolons",e.SemicolonPreference.Insert),Tr],64)],sr=[W("NoSpaceBeforeSemicolon",Pr,26,[m],16),W("SpaceBeforeOpenBraceInControl",ft,18,[se("placeOpenBraceOnNewLineForControlBlocks"),_,Ge,x],4,1),W("SpaceBeforeOpenBraceInFunction",Si,18,[se("placeOpenBraceOnNewLineForFunctions"),ee,I,Ge,x],4,1),W("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",qi,18,[se("placeOpenBraceOnNewLineForFunctions"),P,Ge,x],4,1),W("NoSpaceBeforeComma",Pr,27,[m],16),W("NoSpaceBeforeOpenBracket",br(131,82),22,[m],16),W("NoSpaceAfterCloseBracket",23,Pr,[m,He],16),W("SpaceAfterSemicolon",26,Pr,[m],4),W("SpaceBetweenForAndAwaitKeyword",97,132,[m],4),W("SpaceBetweenStatements",[21,90,91,82],Pr,[m,ae,G],4),W("SpaceAfterTryCatchFinally",[111,83,96],18,[m],4)];return qe(qe(qe([],bt,!0),aa,!0),sr,!0)}O.getAllRules=L;function W(n,Er,br,Pr,Ce,Le){return Le===void 0&&(Le=0),{leftTokenRange:Q(Er),rightTokenRange:Q(br),rule:{debugName:n,context:Pr,action:Ce,flags:Le}}}function N(n){return{tokens:n,isSpecific:!0}}function Q(n){return typeof n=="number"?N([n]):e.isArray(n)?N(n):n}function pe(n,Er,br){br===void 0&&(br=[]);for(var Pr=[],Ce=n;Ce<=Er;Ce++)e.contains(br,Ce)||Pr.push(Ce);return N(Pr)}function F(n,Er){return function(br){return br.options&&br.options[n]===Er}}function g(n){return function(Er){return Er.options&&Er.options.hasOwnProperty(n)&&!!Er.options[n]}}function S(n){return function(Er){return Er.options&&Er.options.hasOwnProperty(n)&&!Er.options[n]}}function H(n){return function(Er){return!Er.options||!Er.options.hasOwnProperty(n)||!Er.options[n]}}function se(n){return function(Er){return!Er.options||!Er.options.hasOwnProperty(n)||!Er.options[n]||Er.TokensAreOnSameLine()}}function p(n){return function(Er){return!Er.options||!Er.options.hasOwnProperty(n)||!!Er.options[n]}}function C(n){return n.contextNode.kind===241}function G(n){return!C(n)}function E(n){switch(n.contextNode.kind){case 220:return n.contextNode.operatorToken.kind!==27;case 221:case 188:case 228:case 274:case 269:case 176:case 186:case 187:return!0;case 202:case 258:case 264:case 270:case 253:case 163:case 297:case 166:case 165:return n.currentTokenSpan.kind===63||n.nextTokenSpan.kind===63;case 242:case 162:return n.currentTokenSpan.kind===101||n.nextTokenSpan.kind===101||n.currentTokenSpan.kind===63||n.nextTokenSpan.kind===63;case 243:return n.currentTokenSpan.kind===159||n.nextTokenSpan.kind===159}return!1}function ue(n){return!E(n)}function B(n){return!re(n)}function re(n){var Er=n.contextNode.kind;return Er===166||Er===165||Er===163||Er===253||e.isFunctionLikeKind(Er)}function M(n){return n.contextNode.kind===221||n.contextNode.kind===188}function x(n){return n.TokensAreOnSameLine()||I(n)}function ie(n){return n.contextNode.kind===200||n.contextNode.kind===194||Z(n)}function _e(n){return I(n)&&!(n.NextNodeAllOnSameLine()||n.NextNodeBlockIsOnOneLine())}function Y(n){return k(n)&&!(n.ContextNodeAllOnSameLine()||n.ContextNodeBlockIsOnOneLine())}function Z(n){return k(n)&&(n.ContextNodeAllOnSameLine()||n.ContextNodeBlockIsOnOneLine())}function k(n){return ne(n.contextNode)}function I(n){return ne(n.nextTokenParent)}function ne(n){if(D(n))return!0;switch(n.kind){case 234:case 262:case 204:case 261:return!0}return!1}function ee(n){switch(n.contextNode.kind){case 255:case 168:case 167:case 171:case 172:case 173:case 212:case 170:case 213:case 257:return!0}return!1}function A(n){return!ee(n)}function f(n){return n.contextNode.kind===255||n.contextNode.kind===212}function P(n){return D(n.contextNode)}function D(n){switch(n.kind){case 256:case 225:case 257:case 259:case 181:case 260:case 271:case 272:case 265:case 268:return!0}return!1}function l(n){switch(n.currentTokenParent.kind){case 256:case 260:case 259:case 291:case 261:case 248:return!0;case 234:{var Er=n.currentTokenParent.parent;if(!Er||Er.kind!==213&&Er.kind!==212)return!0}}return!1}function _(n){switch(n.contextNode.kind){case 238:case 248:case 241:case 242:case 243:case 240:case 251:case 239:case 247:case 291:return!0;default:return!1}}function J(n){return n.contextNode.kind===204}function w(n){return n.contextNode.kind===207}function j(n){return n.contextNode.kind===208}function U(n){return w(n)||j(n)}function z(n){return n.currentTokenSpan.kind!==27}function y(n){return n.nextTokenSpan.kind!==23}function oe(n){return n.nextTokenSpan.kind!==21}function ve(n){return n.contextNode.kind===213}function ce(n){return n.contextNode.kind===199}function m(n){return n.TokensAreOnSameLine()&&n.contextNode.kind!==11}function de(n){return n.contextNode.kind!==11}function ae(n){return n.contextNode.kind!==277&&n.contextNode.kind!==281}function V(n){return n.contextNode.kind===287||n.contextNode.kind===286}function le(n){return n.nextTokenParent.kind===284}function ke(n){return n.contextNode.kind===284}function Ue(n){return n.contextNode.kind===278}function He(n){return!ee(n)&&!I(n)}function ar(n){return n.TokensAreOnSameLine()&&!!n.contextNode.decorators&&gr(n.currentTokenParent)&&!gr(n.nextTokenParent)}function gr(n){for(;e.isExpressionNode(n);)n=n.parent;return n.kind===164}function me(n){return n.currentTokenParent.kind===254&&n.currentTokenParent.getStart(n.sourceFile)===n.currentTokenSpan.pos}function Ge(n){return n.formattingRequestKind!==2}function er(n){return n.contextNode.kind===260}function he(n){return n.contextNode.kind===181}function we(n){return n.contextNode.kind===174}function ye(n,Er){if(n.kind!==29&&n.kind!==31)return!1;switch(Er.kind){case 177:case 210:case 258:case 256:case 225:case 257:case 255:case 212:case 213:case 168:case 167:case 173:case 174:case 207:case 208:case 227:return!0;default:return!1}}function Se(n){return ye(n.currentTokenSpan,n.currentTokenParent)||ye(n.nextTokenSpan,n.nextTokenParent)}function ge(n){return n.contextNode.kind===210}function Fe(n){return n.currentTokenSpan.kind===114&&n.currentTokenParent.kind===216}function cr(n){return n.contextNode.kind===223&&n.contextNode.expression!==void 0}function ur(n){return n.contextNode.kind===229}function Ir(n){return!dr(n)}function dr(n){switch(n.contextNode.kind){case 238:case 241:case 242:case 243:case 239:case 240:return!0;default:return!1}}function Br(n){var Er=n.nextTokenSpan.kind,br=n.nextTokenSpan.pos;if(e.isTrivia(Er)){var Pr=n.nextTokenParent===n.currentTokenParent?e.findNextToken(n.currentTokenParent,e.findAncestor(n.currentTokenParent,function(Xe){return!Xe.parent}),n.sourceFile):n.nextTokenParent.getFirstToken(n.sourceFile);if(!Pr)return!0;Er=Pr.kind,br=Pr.getStart(n.sourceFile)}var Ce=n.sourceFile.getLineAndCharacterOfPosition(n.currentTokenSpan.pos).line,Le=n.sourceFile.getLineAndCharacterOfPosition(br).line;return Ce===Le?Er===19||Er===1:Er===233||Er===26?!1:n.contextNode.kind===257||n.contextNode.kind===258?!e.isPropertySignature(n.currentTokenParent)||!!n.currentTokenParent.type||Er!==20:e.isPropertyDeclaration(n.currentTokenParent)?!n.currentTokenParent.initializer:n.currentTokenParent.kind!==241&&n.currentTokenParent.kind!==235&&n.currentTokenParent.kind!==233&&Er!==22&&Er!==20&&Er!==39&&Er!==40&&Er!==43&&Er!==13&&Er!==27&&Er!==222&&Er!==15&&Er!==14&&Er!==24}function Tr(n){return e.positionIsASICandidate(n.currentTokenSpan.end,n.currentTokenParent,n.sourceFile)}})(a=e.formatting||(e.formatting={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(ue,B){return{options:ue,getRules:N(),host:B}}O.getFormatContext=L;var W;function N(){return W===void 0&&(W=pe(O.getAllRules())),W}function Q(ue){var B=0;return ue&1&&(B|=28),ue&2&&(B|=96),ue&28&&(B|=28),ue&96&&(B|=96),B}function pe(ue){var B=F(ue);return function(re){var M=B[g(re.currentTokenSpan.kind,re.nextTokenSpan.kind)];if(M){for(var x=[],ie=0,_e=0,Y=M;_e<Y.length;_e++){var Z=Y[_e],k=~Q(ie);Z.action&k&&e.every(Z.context,function(I){return I(re)})&&(x.push(Z),ie|=Z.action)}if(x.length)return x}}}function F(ue){for(var B=new Array(se*se),re=new Array(B.length),M=0,x=ue;M<x.length;M++)for(var ie=x[M],_e=ie.leftTokenRange.isSpecific&&ie.rightTokenRange.isSpecific,Y=0,Z=ie.leftTokenRange.tokens;Y<Z.length;Y++)for(var k=Z[Y],I=0,ne=ie.rightTokenRange.tokens;I<ne.length;I++){var ee=ne[I],A=g(k,ee),f=B[A];f===void 0&&(f=B[A]=[]),C(f,ie.rule,_e,re,A)}return B}function g(ue,B){return e.Debug.assert(ue<=159&&B<=159,"Must compute formatting context from tokens"),ue*se+B}var S=5,H=31,se=159+1,p;(function(ue){ue[ue.StopRulesSpecific=0]="StopRulesSpecific",ue[ue.StopRulesAny=S*1]="StopRulesAny",ue[ue.ContextRulesSpecific=S*2]="ContextRulesSpecific",ue[ue.ContextRulesAny=S*3]="ContextRulesAny",ue[ue.NoContextRulesSpecific=S*4]="NoContextRulesSpecific",ue[ue.NoContextRulesAny=S*5]="NoContextRulesAny"})(p||(p={}));function C(ue,B,re,M,x){var ie=B.action&3?re?p.StopRulesSpecific:p.StopRulesAny:B.context!==O.anyContext?re?p.ContextRulesSpecific:p.ContextRulesAny:re?p.NoContextRulesSpecific:p.NoContextRulesAny,_e=M[x]||0;ue.splice(G(_e,ie),0,B),M[x]=E(_e,ie)}function G(ue,B){for(var re=0,M=0;M<=B;M+=S)re+=ue&H,ue>>=S;return re}function E(ue,B){var re=(ue>>B&H)+1;return e.Debug.assert((re&H)===re,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),ue&~(H<<B)|re<<B}})(a=e.formatting||(e.formatting={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(A,f,P){var D={pos:A,end:f,kind:P};return e.Debug.isDebugging&&Object.defineProperty(D,"__debugKind",{get:function(){return e.Debug.formatSyntaxKind(P)}}),D}O.createTextRangeWithKind=L;var W;(function(A){A[A.Unknown=-1]="Unknown"})(W||(W={}));function N(A,f,P){var D=f.getLineAndCharacterOfPosition(A).line;if(D===0)return[];for(var l=e.getEndLinePosition(D,f);e.isWhiteSpaceSingleLine(f.text.charCodeAt(l));)l--;e.isLineBreak(f.text.charCodeAt(l))&&l--;var _={pos:e.getStartPositionOfLine(D-1,f),end:l+1};return M(_,f,P,2)}O.formatOnEnter=N;function Q(A,f,P){var D=H(A,26,f);return re(se(D),f,P,3)}O.formatOnSemicolon=Q;function pe(A,f,P){var D=H(A,18,f);if(!D)return[];var l=D.parent,_=se(l),J={pos:e.getLineStartPositionForPosition(_.getStart(f),f),end:A};return M(J,f,P,4)}O.formatOnOpeningCurly=pe;function F(A,f,P){var D=H(A,19,f);return re(se(D),f,P,5)}O.formatOnClosingCurly=F;function g(A,f){var P={pos:0,end:A.text.length};return M(P,A,f,0)}O.formatDocument=g;function S(A,f,P,D){var l={pos:e.getLineStartPositionForPosition(A,P),end:f};return M(l,P,D,1)}O.formatSelection=S;function H(A,f,P){var D=e.findPrecedingToken(A,P);return D&&D.kind===f&&A===D.getEnd()?D:void 0}function se(A){for(var f=A;f&&f.parent&&f.parent.end===A.end&&!p(f.parent,f);)f=f.parent;return f}function p(A,f){switch(A.kind){case 256:case 257:return e.rangeContainsRange(A.members,f);case 260:var P=A.body;return!!P&&P.kind===261&&e.rangeContainsRange(P.statements,f);case 303:case 234:case 261:return e.rangeContainsRange(A.statements,f);case 291:return e.rangeContainsRange(A.block.statements,f)}return!1}function C(A,f){return P(f);function P(D){var l=e.forEachChild(D,function(J){return e.startEndContainsRange(J.getStart(f),J.end,A)&&J});if(l){var _=P(l);if(_)return _}return D}}function G(A,f){if(!A.length)return l;var P=A.filter(function(_){return e.rangeOverlapsWithStartEnd(f,_.start,_.start+_.length)}).sort(function(_,J){return _.start-J.start});if(!P.length)return l;var D=0;return function(_){for(;;){if(D>=P.length)return!1;var J=P[D];if(_.end<=J.start)return!1;if(e.startEndOverlapsWithStartEnd(_.pos,_.end,J.start,J.start+J.length))return!0;D++}};function l(){return!1}}function E(A,f,P){var D=A.getStart(P);if(D===f.pos&&A.end===f.end)return D;var l=e.findPrecedingToken(f.pos,P);return!l||l.end>=f.pos?A.pos:l.end}function ue(A,f,P){for(var D=-1,l;A;){var _=P.getLineAndCharacterOfPosition(A.getStart(P)).line;if(D!==-1&&_!==D)break;if(O.SmartIndenter.shouldIndentChildNode(f,A,l,P))return f.indentSize;D=_,l=A,A=A.parent}return 0}function B(A,f,P,D,l,_){var J={pos:A.pos,end:A.end};return O.getFormattingScanner(f.text,P,J.pos,J.end,function(w){return x(J,A,D,l,w,_,1,function(j){return!1},f)})}O.formatNodeGivenIndentation=B;function re(A,f,P,D){if(!A)return[];var l={pos:e.getLineStartPositionForPosition(A.getStart(f),f),end:A.end};return M(l,f,P,D)}function M(A,f,P,D){var l=C(A,f);return O.getFormattingScanner(f.text,f.languageVariant,E(l,A,f),A.end,function(_){return x(A,l,O.SmartIndenter.getIndentationForNode(l,A,f,P.options),ue(l,P.options,f),_,P,D,G(f.parseDiagnostics,A),f)})}function x(A,f,P,D,l,_,J,w,j){var U=_.options,z=_.getRules,y=_.host,oe=new O.FormattingContext(j,J,U),ve,ce,m,de,ae=-1,V=[];if(l.advance(),l.isOnToken()){var le=j.getLineAndCharacterOfPosition(f.getStart(j)).line,ke=le;f.decorators&&(ke=j.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(f,j)).line),he(f,f,le,ke,P,D)}if(!l.isOnToken()){var Ue=O.SmartIndenter.nodeWillIndentChild(U,f,void 0,j,!1)?P+U.indentSize:P,He=l.getCurrentLeadingTrivia();He&&(we(He,Ue,!1,function(Le){return Se(Le,j.getLineAndCharacterOfPosition(Le.pos),f,f,void 0)}),U.trimTrailingWhitespace!==!1&&Tr(He))}if(ve&&l.getStartPos()>=A.end){var ar=l.isOnEOF()?l.readEOFTokenRange():l.isOnToken()?l.readTokenInfo(f).token:void 0;ar&&ge(ar,j.getLineAndCharacterOfPosition(ar.pos).line,f,ve,m,ce,f,void 0)}return V;function gr(Le,Xe,Cr,Lr,Jr){if(e.rangeOverlapsWithStartEnd(Lr,Le,Xe)||e.rangeContainsStartEnd(Lr,Le,Xe)){if(Jr!==-1)return Jr}else{var Rr=j.getLineAndCharacterOfPosition(Le).line,ci=e.getLineStartPositionForPosition(Le,j),be=O.SmartIndenter.findFirstNonWhitespaceColumn(ci,Le,j,U);if(Rr!==Cr||Le===be){var or=O.SmartIndenter.getBaseIndentation(U);return or>be?or:be}}return-1}function me(Le,Xe,Cr,Lr,Jr,Rr){var ci=O.SmartIndenter.shouldIndentChildNode(U,Le)?U.indentSize:0;return Rr===Xe?{indentation:Xe===de?ae:Jr.getIndentation(),delta:Math.min(U.indentSize,Jr.getDelta(Le)+ci)}:Cr===-1?Le.kind===20&&Xe===de?{indentation:ae,delta:Jr.getDelta(Le)}:O.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(Lr,Le,Xe,j)||O.SmartIndenter.childIsUnindentedBranchOfConditionalExpression(Lr,Le,Xe,j)||O.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(Lr,Le,Xe,j)?{indentation:Jr.getIndentation(),delta:ci}:{indentation:Jr.getIndentation()+Jr.getDelta(Le),delta:ci}:{indentation:Cr,delta:ci}}function Ge(Le){if(Le.modifiers&&Le.modifiers.length)return Le.modifiers[0].kind;switch(Le.kind){case 256:return 84;case 257:return 118;case 255:return 98;case 259:return 259;case 171:return 136;case 172:return 148;case 168:if(Le.asteriskToken)return 41;case 166:case 163:var Xe=e.getNameOfDeclaration(Le);if(Xe)return Xe.kind}}function er(Le,Xe,Cr,Lr){return{getIndentationForComment:function(ci,be,or){switch(ci){case 19:case 23:case 21:return Cr+Rr(or)}return be!==-1?be:Cr},getIndentationForToken:function(ci,be,or,Kr){return!Kr&&Jr(ci,be,or)?Cr+Rr(or):Cr},getIndentation:function(){return Cr},getDelta:Rr,recomputeIndentation:function(ci,be){O.SmartIndenter.shouldIndentChildNode(U,be,Le,j)&&(Cr+=ci?U.indentSize:-U.indentSize,Lr=O.SmartIndenter.shouldIndentChildNode(U,Le)?U.indentSize:0)}};function Jr(ci,be,or){switch(be){case 18:case 19:case 21:case 91:case 115:case 59:return!1;case 43:case 31:switch(or.kind){case 279:case 280:case 278:case 227:return!1}break;case 22:case 23:if(or.kind!==194)return!1;break}return Xe!==ci&&!(Le.decorators&&be===Ge(Le))}function Rr(ci){return O.SmartIndenter.nodeWillIndentChild(U,Le,ci,j,!0)?Lr:0}}function he(Le,Xe,Cr,Lr,Jr,Rr){if(!e.rangeOverlapsWithStartEnd(A,Le.getStart(j),Le.getEnd()))return;var ci=er(Le,Cr,Jr,Rr),be=Xe;for(e.forEachChild(Le,function(Si){Kr(Si,-1,Le,ci,Cr,Lr,!1)},function(Si){ei(Si,Le,Cr,ci)});l.isOnToken()&&l.getStartPos()<A.end;){var or=l.readTokenInfo(Le);if(or.token.end>Math.min(Le.end,A.end))break;li(or,Le,ci,Le)}function Kr(Si,qi,ft,bt,aa,sr,Ji,di){var X=Si.getStart(j),Ye=j.getLineAndCharacterOfPosition(X).line,Be=Ye;Si.decorators&&(Be=j.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(Si,j)).line);var Qe=-1;if(Ji&&e.rangeContainsRange(A,ft)&&(Qe=gr(X,Si.end,aa,A,qi),Qe!==-1&&(qi=Qe)),!e.rangeOverlapsWithStartEnd(A,Si.pos,Si.end))return Si.end<A.pos&&l.skipToEndOf(Si),qi;if(Si.getFullWidth()===0)return qi;for(;l.isOnToken()&&l.getStartPos()<A.end;){var _r=l.readTokenInfo(Le);if(_r.token.end>A.end)return qi;if(_r.token.end>X){_r.token.pos>X&&l.skipToStartOf(Si);break}li(_r,Le,bt,Le)}if(!l.isOnToken()||l.getStartPos()>=A.end)return qi;if(e.isToken(Si)){var _r=l.readTokenInfo(Si);if(Si.kind!==11)return e.Debug.assert(_r.token.end===Si.end,"Token end is child end"),li(_r,Le,bt,Si),qi}var hr=Si.kind===164?Ye:sr,Dr=me(Si,Ye,Qe,Le,bt,hr);return he(Si,be,Ye,Be,Dr.indentation,Dr.delta),be=Le,di&&ft.kind===203&&qi===-1&&(qi=Dr.indentation),qi}function ei(Si,qi,ft,bt){e.Debug.assert(e.isNodeArray(Si));var aa=Y(qi,Si),sr=bt,Ji=ft;if(aa!==0)for(;l.isOnToken()&&l.getStartPos()<A.end;){var di=l.readTokenInfo(qi);if(di.token.end>Si.pos)break;if(di.token.kind===aa){Ji=j.getLineAndCharacterOfPosition(di.token.pos).line,li(di,qi,bt,qi);var X=void 0;if(ae!==-1)X=ae;else{var Ye=e.getLineStartPositionForPosition(di.token.pos,j);X=O.SmartIndenter.findFirstNonWhitespaceColumn(Ye,di.token.pos,j,U)}sr=er(qi,ft,X,U.indentSize)}else li(di,qi,bt,qi)}for(var Be=-1,Qe=0;Qe<Si.length;Qe++){var _r=Si[Qe];Be=Kr(_r,Be,Le,sr,Ji,Ji,!0,Qe===0)}var hr=Z(aa);if(hr!==0&&l.isOnToken()&&l.getStartPos()<A.end){var di=l.readTokenInfo(qi);if(di.token.kind===27&&e.isCallLikeExpression(qi)){var Dr=j.getLineAndCharacterOfPosition(di.token.pos).line;Ji!==Dr&&(l.advance(),di=l.isOnToken()?l.readTokenInfo(qi):void 0)}di&&di.token.kind===hr&&e.rangeContainsRange(qi,di.token)&&li(di,qi,sr,qi,!0)}}function li(Si,qi,ft,bt,aa){e.Debug.assert(e.rangeContainsRange(qi,Si.token));var sr=l.lastTrailingTriviaWasNewLine(),Ji=!1;Si.leadingTrivia&&ye(Si.leadingTrivia,qi,be,ft);var di=0,X=e.rangeContainsRange(A,Si.token),Ye=j.getLineAndCharacterOfPosition(Si.token.pos);if(X){var Be=w(Si.token),Qe=ve;if(di=Se(Si.token,Ye,qi,be,ft),!Be)if(di===0){var _r=Qe&&j.getLineAndCharacterOfPosition(Qe.end).line;Ji=sr&&Ye.line!==_r}else Ji=di===1}if(Si.trailingTrivia&&ye(Si.trailingTrivia,qi,be,ft),Ji){var hr=X&&!w(Si.token)?ft.getIndentationForToken(Ye.line,Si.token.kind,bt,!!aa):-1,Dr=!0;if(Si.leadingTrivia){var Me=ft.getIndentationForComment(Si.token.kind,hr,bt);Dr=we(Si.leadingTrivia,Me,Dr,function(v){return Fe(v.pos,Me,!1)})}hr!==-1&&Dr&&(Fe(Si.token.pos,hr,di===1),de=Ye.line,ae=hr)}l.advance(),be=qi}}function we(Le,Xe,Cr,Lr){for(var Jr=0,Rr=Le;Jr<Rr.length;Jr++){var ci=Rr[Jr],be=e.rangeContainsRange(A,ci);switch(ci.kind){case 3:be&&Ir(ci,Xe,!Cr),Cr=!1;break;case 2:Cr&&be&&Lr(ci),Cr=!1;break;case 4:Cr=!0;break}}return Cr}function ye(Le,Xe,Cr,Lr){for(var Jr=0,Rr=Le;Jr<Rr.length;Jr++){var ci=Rr[Jr];if(e.isComment(ci.kind)&&e.rangeContainsRange(A,ci)){var be=j.getLineAndCharacterOfPosition(ci.pos);Se(ci,be,Xe,Cr,Lr)}}}function Se(Le,Xe,Cr,Lr,Jr){var Rr=w(Le),ci=0;if(!Rr)if(ve)ci=ge(Le,Xe.line,Cr,ve,m,ce,Lr,Jr);else{var be=j.getLineAndCharacterOfPosition(A.pos);dr(be.line,Xe.line)}return ve=Le,ce=Cr,m=Xe.line,ci}function ge(Le,Xe,Cr,Lr,Jr,Rr,ci,be){oe.updateContext(Lr,Rr,Le,Cr,ci);var or=z(oe),Kr=oe.options.trimTrailingWhitespace!==!1,ei=0;return or?e.forEachRight(or,function(li){if(ei=Ce(li,Lr,Jr,Le,Xe),be)switch(ei){case 2:Cr.getStart(j)===Le.pos&&be.recomputeIndentation(!1,ci);break;case 1:Cr.getStart(j)===Le.pos&&be.recomputeIndentation(!0,ci);break;default:e.Debug.assert(ei===0)}Kr=Kr&&!(li.action&16)&&li.flags!==1}):Kr=Kr&&Le.kind!==1,Xe!==Jr&&Kr&&dr(Jr,Xe,Lr),ei}function Fe(Le,Xe,Cr){var Lr=ee(Xe,U);if(Cr)br(Le,0,Lr);else{var Jr=j.getLineAndCharacterOfPosition(Le),Rr=e.getStartPositionOfLine(Jr.line,j);(Xe!==cr(Rr,Jr.character)||ur(Lr,Rr))&&br(Rr,Jr.character,Lr)}}function cr(Le,Xe){for(var Cr=0,Lr=0;Lr<Xe;Lr++)j.text.charCodeAt(Le+Lr)===9?Cr+=U.tabSize-Cr%U.tabSize:Cr++;return Cr}function ur(Le,Xe){return Le!==j.text.substr(Xe,Le.length)}function Ir(Le,Xe,Cr,Lr){Lr===void 0&&(Lr=!0);var Jr=j.getLineAndCharacterOfPosition(Le.pos).line,Rr=j.getLineAndCharacterOfPosition(Le.end).line;if(Jr===Rr){Cr||Fe(Le.pos,Xe,!1);return}for(var ci=[],be=Le.pos,or=Jr;or<Rr;or++){var Kr=e.getEndLinePosition(or,j);ci.push({pos:be,end:Kr}),be=e.getStartPositionOfLine(or+1,j)}if(Lr&&ci.push({pos:be,end:Le.end}),ci.length!==0){var ei=e.getStartPositionOfLine(Jr,j),li=O.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(ei,ci[0].pos,j,U),Si=0;Cr&&(Si=1,Jr++);for(var qi=Xe-li.column,ft=Si;ft<ci.length;ft++,Jr++){var bt=e.getStartPositionOfLine(Jr,j),aa=ft===0?li:O.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(ci[ft].pos,ci[ft].end,j,U),sr=aa.column+qi;if(sr>0){var Ji=ee(sr,U);br(bt,aa.character,Ji)}else Er(bt,aa.character)}}}function dr(Le,Xe,Cr){for(var Lr=Le;Lr<Xe;Lr++){var Jr=e.getStartPositionOfLine(Lr,j),Rr=e.getEndLinePosition(Lr,j);if(!(Cr&&(e.isComment(Cr.kind)||e.isStringOrRegularExpressionOrTemplateLiteral(Cr.kind))&&Cr.pos<=Rr&&Cr.end>Rr)){var ci=Br(Jr,Rr);ci!==-1&&(e.Debug.assert(ci===Jr||!e.isWhiteSpaceSingleLine(j.text.charCodeAt(ci-1))),Er(ci,Rr+1-ci))}}}function Br(Le,Xe){for(var Cr=Xe;Cr>=Le&&e.isWhiteSpaceSingleLine(j.text.charCodeAt(Cr));)Cr--;return Cr!==Xe?Cr+1:-1}function Tr(Le){for(var Xe=ve?ve.end:A.pos,Cr=0,Lr=Le;Cr<Lr.length;Cr++){var Jr=Lr[Cr];e.isComment(Jr.kind)&&(Xe<Jr.pos&&n(Xe,Jr.pos-1,ve),Xe=Jr.end+1)}Xe<A.end&&n(Xe,A.end,ve)}function n(Le,Xe,Cr){var Lr=j.getLineAndCharacterOfPosition(Le).line,Jr=j.getLineAndCharacterOfPosition(Xe).line;dr(Lr,Jr+1,Cr)}function Er(Le,Xe){Xe&&V.push(e.createTextChangeFromStartLength(Le,Xe,""))}function br(Le,Xe,Cr){(Xe||Cr)&&V.push(e.createTextChangeFromStartLength(Le,Xe,Cr))}function Pr(Le,Xe){Xe&&V.push(e.createTextChangeFromStartLength(Le,0,Xe))}function Ce(Le,Xe,Cr,Lr,Jr){var Rr=Jr!==Cr;switch(Le.action){case 1:return 0;case 16:if(Xe.end!==Lr.pos)return Er(Xe.end,Lr.pos-Xe.end),Rr?2:0;break;case 32:Er(Xe.pos,Xe.end-Xe.pos);break;case 8:if(Le.flags!==1&&Cr!==Jr)return 0;var ci=Jr-Cr;if(ci!==1)return br(Xe.end,Lr.pos-Xe.end,e.getNewLineOrDefaultFromHost(y,U)),Rr?0:1;break;case 4:if(Le.flags!==1&&Cr!==Jr)return 0;var be=Lr.pos-Xe.end;if(be!==1||j.text.charCodeAt(Xe.end)!==32)return br(Xe.end,Lr.pos-Xe.end," "),Rr?2:0;break;case 64:Pr(Xe.end,";")}return 0}}var ie;(function(A){A[A.None=0]="None",A[A.LineAdded=1]="LineAdded",A[A.LineRemoved=2]="LineRemoved"})(ie||(ie={}));function _e(A,f,P,D){D===void 0&&(D=e.getTokenAtPosition(A,f));var l=e.findAncestor(D,e.isJSDoc);l&&(D=l.parent);var _=D.getStart(A);if(!(_<=f&&f<D.getEnd())){P=P===null?void 0:P===void 0?e.findPrecedingToken(f,A):P;var J=P&&e.getTrailingCommentRanges(A.text,P.end),w=e.getLeadingCommentRangesOfNode(D,A),j=e.concatenate(J,w);return j&&e.find(j,function(U){return e.rangeContainsPositionExclusive(U,f)||f===U.end&&(U.kind===2||f===A.getFullWidth())})}}O.getRangeOfEnclosingComment=_e;function Y(A,f){switch(A.kind){case 170:case 255:case 212:case 168:case 167:case 213:if(A.typeParameters===f)return 29;if(A.parameters===f)return 20;break;case 207:case 208:if(A.typeArguments===f)return 29;if(A.arguments===f)return 20;break;case 177:if(A.typeArguments===f)return 29;break;case 181:return 18}return 0}function Z(A){switch(A){case 20:return 21;case 29:return 31;case 18:return 19}return 0}var k,I,ne;function ee(A,f){var P=!k||k.tabSize!==f.tabSize||k.indentSize!==f.indentSize;if(P&&(k={tabSize:f.tabSize,indentSize:f.indentSize},I=ne=void 0),f.convertTabsToSpaces){var J=void 0,w=Math.floor(A/f.indentSize),j=A%f.indentSize;return ne||(ne=[]),ne[w]===void 0?(J=e.repeatString(" ",f.indentSize*w),ne[w]=J):J=ne[w],j?J+e.repeatString(" ",j):J}else{var D=Math.floor(A/f.tabSize),l=A-D*f.tabSize,_=void 0;return I||(I=[]),I[D]===void 0?I[D]=_=e.repeatString("   ",D):_=I[D],l?_+e.repeatString(" ",l):_}}O.getIndentationString=ee})(a=e.formatting||(e.formatting={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(W){var N;(function(w){w[w.Unknown=-1]="Unknown"})(N||(N={}));function Q(w,j,U,z){if(z===void 0&&(z=!1),w>j.text.length)return H(U);if(U.indentStyle===e.IndentStyle.None)return 0;var y=e.findPrecedingToken(w,j,void 0,!0),oe=O.getRangeOfEnclosingComment(j,w,y||null);if(oe&&oe.kind===3)return pe(j,w,U,oe);if(!y)return H(U);var ve=e.isStringOrRegularExpressionOrTemplateLiteral(y.kind);if(ve&&y.getStart(j)<=w&&w<y.end)return 0;var ce=j.getLineAndCharacterOfPosition(w).line;if(U.indentStyle===e.IndentStyle.Block)return F(j,w,U);if(y.kind===27&&y.parent.kind!==220){var m=C(y,j,U);if(m!==-1)return m}var de=Y(w,y.parent,j);return de&&!e.rangeContainsRange(de,y)?I(de,j,U)+U.indentSize:g(j,w,y,ce,z,U)}W.getIndentation=Q;function pe(w,j,U,z){var y=e.getLineAndCharacterOfPosition(w,j).line-1,oe=e.getLineAndCharacterOfPosition(w,z.pos).line;if(e.Debug.assert(oe>=0),y<=oe)return P(e.getStartPositionOfLine(oe,w),j,w,U);var ve=e.getStartPositionOfLine(y,w),ce=f(ve,j,w,U),m=ce.column,de=ce.character;if(m===0)return m;var ae=w.text.charCodeAt(ve+de);return ae===42?m-1:m}function F(w,j,U){for(var z=j;z>0;){var y=w.text.charCodeAt(z);if(!e.isWhiteSpaceLike(y))break;z--}var oe=e.getLineStartPositionForPosition(z,w);return P(oe,z,w,U)}function g(w,j,U,z,y,oe){for(var ve,ce=U;ce;){if(e.positionBelongsToNode(ce,j,w)&&_(oe,ce,ve,w,!0)){var m=B(ce,w),de=ue(U,ce,z,w),ae=de!==0?y&&de===2?oe.indentSize:0:z!==m.line?oe.indentSize:0;return se(ce,m,void 0,ae,w,!0,oe)}var V=ne(ce,w,oe,!0);if(V!==-1)return V;ve=ce,ce=ce.parent}return H(oe)}function S(w,j,U,z){var y=U.getLineAndCharacterOfPosition(w.getStart(U));return se(w,y,j,0,U,!1,z)}W.getIndentationForNode=S;function H(w){return w.baseIndentSize||0}W.getBaseIndentation=H;function se(w,j,U,z,y,oe,ve){for(var ce,m=w.parent;m;){var de=!0;if(U){var ae=w.getStart(y);de=ae<U.pos||ae>U.end}var V=p(m,w,y),le=V.line===j.line||M(m,w,j.line,y);if(de){var ke=(ce=_e(w,y))===null||ce===void 0?void 0:ce[0],Ue=!!ke&&B(ke,y).line>V.line,He=ne(w,y,ve,Ue);if(He!==-1||(He=G(w,m,j,le,y,ve),He!==-1))return He+z}_(ve,m,w,y,oe)&&!le&&(z+=ve.indentSize);var ar=re(m,w,j.line,y);w=m,m=w.parent,j=ar?y.getLineAndCharacterOfPosition(w.getStart(y)):V}return z+H(ve)}function p(w,j,U){var z=_e(j,U),y=z?z.pos:w.getStart(U);return U.getLineAndCharacterOfPosition(y)}function C(w,j,U){var z=e.findListItemInfo(w);return z&&z.listItemIndex>0?ee(z.list.getChildren(),z.listItemIndex-1,j,U):-1}function G(w,j,U,z,y,oe){var ve=(e.isDeclaration(w)||e.isStatementButNotDeclaration(w))&&(j.kind===303||!z);return ve?A(U,y,oe):-1}var E;(function(w){w[w.Unknown=0]="Unknown",w[w.OpenBrace=1]="OpenBrace",w[w.CloseBrace=2]="CloseBrace"})(E||(E={}));function ue(w,j,U,z){var y=e.findNextToken(w,j,z);if(!y)return 0;if(y.kind===18)return 1;if(y.kind===19){var oe=B(y,z).line;return U===oe?2:0}return 0}function B(w,j){return j.getLineAndCharacterOfPosition(w.getStart(j))}function re(w,j,U,z){if(!(e.isCallExpression(w)&&e.contains(w.arguments,j)))return!1;var y=w.expression.getEnd(),oe=e.getLineAndCharacterOfPosition(z,y).line;return oe===U}W.isArgumentAndStartLineOverlapsExpressionBeingCalled=re;function M(w,j,U,z){if(w.kind===238&&w.elseStatement===j){var y=e.findChildOfKind(w,91,z);e.Debug.assert(y!==void 0);var oe=B(y,z).line;return oe===U}return!1}W.childStartsOnTheSameLineWithElseInIfStatement=M;function x(w,j,U,z){if(e.isConditionalExpression(w)&&(j===w.whenTrue||j===w.whenFalse)){var y=e.getLineAndCharacterOfPosition(z,w.condition.end).line;if(j===w.whenTrue)return U===y;var oe=B(w.whenTrue,z).line,ve=e.getLineAndCharacterOfPosition(z,w.whenTrue.end).line;return y===oe&&ve===U}return!1}W.childIsUnindentedBranchOfConditionalExpression=x;function ie(w,j,U,z){if(e.isCallOrNewExpression(w)){if(!w.arguments)return!1;var y=e.find(w.arguments,function(m){return m.pos===j.pos});if(!y)return!1;var oe=w.arguments.indexOf(y);if(oe===0)return!1;var ve=w.arguments[oe-1],ce=e.getLineAndCharacterOfPosition(z,ve.getEnd()).line;if(U===ce)return!0}return!1}W.argumentStartsOnSameLineAsPreviousArgument=ie;function _e(w,j){return w.parent&&Z(w.getStart(j),w.getEnd(),w.parent,j)}W.getContainingList=_e;function Y(w,j,U){return j&&Z(w,w,j,U)}function Z(w,j,U,z){switch(U.kind){case 177:return y(U.typeArguments);case 204:return y(U.properties);case 203:return y(U.elements);case 181:return y(U.members);case 255:case 212:case 213:case 168:case 167:case 173:case 170:case 179:case 174:return y(U.typeParameters)||y(U.parameters);case 171:return y(U.parameters);case 256:case 225:case 257:case 258:case 342:return y(U.typeParameters);case 208:case 207:return y(U.typeArguments)||y(U.arguments);case 254:return y(U.declarations);case 268:case 272:return y(U.elements);case 200:case 201:return y(U.elements)}function y(oe){return oe&&e.rangeContainsStartEnd(k(U,oe,z),w,j)?oe:void 0}}function k(w,j,U){for(var z=w.getChildren(U),y=1;y<z.length-1;y++)if(z[y].pos===j.pos&&z[y].end===j.end)return{pos:z[y-1].end,end:z[y+1].getStart(U)};return j}function I(w,j,U){return w?A(j.getLineAndCharacterOfPosition(w.pos),j,U):-1}function ne(w,j,U,z){if(w.parent&&w.parent.kind===254)return-1;var y=_e(w,j);if(y){var oe=y.indexOf(w);if(oe!==-1){var ve=ee(y,oe,j,U);if(ve!==-1)return ve}return I(y,j,U)+(z?U.indentSize:0)}return-1}function ee(w,j,U,z){e.Debug.assert(j>=0&&j<w.length);for(var y=w[j],oe=B(y,U),ve=j-1;ve>=0;ve--)if(w[ve].kind!==27){var ce=U.getLineAndCharacterOfPosition(w[ve].end).line;if(ce!==oe.line)return A(oe,U,z);oe=B(w[ve],U)}return-1}function A(w,j,U){var z=j.getPositionOfLineAndCharacter(w.line,0);return P(z,z+w.character,j,U)}function f(w,j,U,z){for(var y=0,oe=0,ve=w;ve<j;ve++){var ce=U.text.charCodeAt(ve);if(!e.isWhiteSpaceSingleLine(ce))break;ce===9?oe+=z.tabSize+oe%z.tabSize:oe++,y++}return{column:oe,character:y}}W.findFirstNonWhitespaceCharacterAndColumn=f;function P(w,j,U,z){return f(w,j,U,z).column}W.findFirstNonWhitespaceColumn=P;function D(w,j,U,z,y){var oe=U?U.kind:0;switch(j.kind){case 237:case 256:case 225:case 257:case 259:case 258:case 203:case 234:case 261:case 204:case 181:case 194:case 183:case 262:case 289:case 288:case 211:case 205:case 207:case 208:case 236:case 270:case 246:case 221:case 201:case 200:case 279:case 282:case 278:case 287:case 167:case 173:case 174:case 163:case 178:case 179:case 190:case 209:case 217:case 272:case 268:case 274:case 269:case 166:return!0;case 253:case 294:case 220:if(!w.indentMultiLineObjectLiteralBeginningOnBlankLine&&z&&oe===204)return J(z,U);if(j.kind===220&&z&&U&&oe===277){var ve=z.getLineAndCharacterOfPosition(e.skipTrivia(z.text,j.pos)).line,ce=z.getLineAndCharacterOfPosition(e.skipTrivia(z.text,U.pos)).line;return ve!==ce}if(j.kind!==220)return!0;break;case 239:case 240:case 242:case 243:case 241:case 238:case 255:case 212:case 168:case 170:case 171:case 172:return oe!==234;case 213:return z&&oe===211?J(z,U):oe!==234;case 271:return oe!==272;case 265:return oe!==266||!!U.namedBindings&&U.namedBindings.kind!==268;case 277:return oe!==280;case 281:return oe!==283;case 187:case 186:if(oe===181||oe===183)return!1;break}return y}W.nodeWillIndentChild=D;function l(w,j){switch(w){case 246:case 250:case 244:case 245:return j.kind!==234;default:return!1}}function _(w,j,U,z,y){return y===void 0&&(y=!1),D(w,j,U,z,!1)&&!(y&&U&&l(U.kind,j))}W.shouldIndentChildNode=_;function J(w,j){var U=e.skipTrivia(w.text,j.pos),z=w.getLineAndCharacterOfPosition(U).line,y=w.getLineAndCharacterOfPosition(j.end).line;return z===y}})(L=O.SmartIndenter||(O.SmartIndenter={}))})(a=e.formatting||(e.formatting={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(j){var U=j.__pos;return e.Debug.assert(typeof U=="number"),U}function W(j,U){e.Debug.assert(typeof U=="number"),j.__pos=U}function N(j){var U=j.__end;return e.Debug.assert(typeof U=="number"),U}function Q(j,U){e.Debug.assert(typeof U=="number"),j.__end=U}var pe;(function(j){j[j.Exclude=0]="Exclude",j[j.IncludeAll=1]="IncludeAll",j[j.JSDoc=2]="JSDoc",j[j.StartLine=3]="StartLine"})(pe=O.LeadingTriviaOption||(O.LeadingTriviaOption={}));var F;(function(j){j[j.Exclude=0]="Exclude",j[j.ExcludeWhitespace=1]="ExcludeWhitespace",j[j.Include=2]="Include"})(F=O.TrailingTriviaOption||(O.TrailingTriviaOption={}));function g(j,U){return e.skipTrivia(j,U,!1,!0)}function S(j,U){for(var z=U;z<j.length;){var y=j.charCodeAt(z);if(e.isWhiteSpaceSingleLine(y)){z++;continue}return y===47}return!1}var H={leadingTriviaOption:pe.Exclude,trailingTriviaOption:F.Exclude},se;(function(j){j[j.Remove=0]="Remove",j[j.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",j[j.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",j[j.Text=3]="Text"})(se||(se={}));function p(j,U,z,y){return{pos:C(j,U,y),end:E(j,z,y)}}function C(j,U,z,y){var oe,ve;y===void 0&&(y=!1);var ce=z.leadingTriviaOption;if(ce===pe.Exclude)return U.getStart(j);if(ce===pe.StartLine){var m=U.getStart(j),de=e.getLineStartPositionForPosition(m,j);return e.rangeContainsPosition(U,de)?de:m}if(ce===pe.JSDoc){var ae=e.getJSDocCommentRanges(U,j.text);if(ae!=null&&ae.length)return e.getLineStartPositionForPosition(ae[0].pos,j)}var V=U.getFullStart(),le=U.getStart(j);if(V===le)return le;var ke=e.getLineStartPositionForPosition(V,j),Ue=e.getLineStartPositionForPosition(le,j);if(Ue===ke)return ce===pe.IncludeAll?V:le;if(y){var He=((oe=e.getLeadingCommentRanges(j.text,V))===null||oe===void 0?void 0:oe[0])||((ve=e.getTrailingCommentRanges(j.text,V))===null||ve===void 0?void 0:ve[0]);if(He)return e.skipTrivia(j.text,He.end,!0,!0)}var ar=V>0?1:0,gr=e.getStartPositionOfLine(e.getLineOfLocalPosition(j,ke)+ar,j);return gr=g(j.text,gr),e.getStartPositionOfLine(e.getLineOfLocalPosition(j,gr),j)}function G(j,U,z){var y=U.end,oe=z.trailingTriviaOption;if(oe===F.Include){var ve=e.getTrailingCommentRanges(j.text,y);if(ve)for(var ce=e.getLineOfLocalPosition(j,U.end),m=0,de=ve;m<de.length;m++){var ae=de[m];if(ae.kind===2||e.getLineOfLocalPosition(j,ae.pos)>ce)break;var V=e.getLineOfLocalPosition(j,ae.end);if(V>ce)return e.skipTrivia(j.text,ae.end,!0,!0)}}}function E(j,U,z){var y,oe=U.end,ve=z.trailingTriviaOption;if(ve===F.Exclude)return oe;if(ve===F.ExcludeWhitespace){var ce=e.concatenate(e.getTrailingCommentRanges(j.text,oe),e.getLeadingCommentRanges(j.text,oe)),m=(y=ce==null?void 0:ce[ce.length-1])===null||y===void 0?void 0:y.end;return m||oe}var de=G(j,U,z);if(de)return de;var ae=e.skipTrivia(j.text,oe,!0);return ae!==oe&&(ve===F.Include||e.isLineBreak(j.text.charCodeAt(ae-1)))?ae:oe}function ue(j,U){return!!U&&!!j.parent&&(U.kind===27||U.kind===26&&j.parent.kind===204)}function B(j){return e.isFunctionExpression(j)||e.isFunctionDeclaration(j)}O.isThisTypeAnnotatable=B;var re=function(){function j(U,z){this.newLineCharacter=U,this.formatContext=z,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new e.Map,this.deletedNodes=[]}return j.fromContext=function(U){return new j(e.getNewLineOrDefaultFromHost(U.host,U.formatContext.options),U.formatContext)},j.with=function(U,z){var y=j.fromContext(U);return z(y),y.getChanges()},j.prototype.pushRaw=function(U,z){e.Debug.assertEqual(U.fileName,z.fileName);for(var y=0,oe=z.textChanges;y<oe.length;y++){var ve=oe[y];this.changes.push({kind:se.Text,sourceFile:U,text:ve.newText,range:e.createTextRangeFromSpan(ve.span)})}},j.prototype.deleteRange=function(U,z){this.changes.push({kind:se.Remove,sourceFile:U,range:z})},j.prototype.delete=function(U,z){this.deletedNodes.push({sourceFile:U,node:z})},j.prototype.deleteNode=function(U,z,y){y===void 0&&(y={leadingTriviaOption:pe.IncludeAll}),this.deleteRange(U,p(U,z,z,y))},j.prototype.deleteNodes=function(U,z,y,oe){y===void 0&&(y={leadingTriviaOption:pe.IncludeAll});for(var ve=0,ce=z;ve<ce.length;ve++){var m=ce[ve],de=C(U,m,y,oe),ae=E(U,m,y);this.deleteRange(U,{pos:de,end:ae}),oe=!!G(U,m,y)}},j.prototype.deleteModifier=function(U,z){this.deleteRange(U,{pos:z.getStart(U),end:e.skipTrivia(U.text,z.end,!0)})},j.prototype.deleteNodeRange=function(U,z,y,oe){oe===void 0&&(oe={leadingTriviaOption:pe.IncludeAll});var ve=C(U,z,oe),ce=E(U,y,oe);this.deleteRange(U,{pos:ve,end:ce})},j.prototype.deleteNodeRangeExcludingEnd=function(U,z,y,oe){oe===void 0&&(oe={leadingTriviaOption:pe.IncludeAll});var ve=C(U,z,oe),ce=y===void 0?U.text.length:C(U,y,oe);this.deleteRange(U,{pos:ve,end:ce})},j.prototype.replaceRange=function(U,z,y,oe){oe===void 0&&(oe={}),this.changes.push({kind:se.ReplaceWithSingleNode,sourceFile:U,range:z,options:oe,node:y})},j.prototype.replaceNode=function(U,z,y,oe){oe===void 0&&(oe=H),this.replaceRange(U,p(U,z,z,oe),y,oe)},j.prototype.replaceNodeRange=function(U,z,y,oe,ve){ve===void 0&&(ve=H),this.replaceRange(U,p(U,z,y,ve),oe,ve)},j.prototype.replaceRangeWithNodes=function(U,z,y,oe){oe===void 0&&(oe={}),this.changes.push({kind:se.ReplaceWithMultipleNodes,sourceFile:U,range:z,options:oe,nodes:y})},j.prototype.replaceNodeWithNodes=function(U,z,y,oe){oe===void 0&&(oe=H),this.replaceRangeWithNodes(U,p(U,z,z,oe),y,oe)},j.prototype.replaceNodeWithText=function(U,z,y){this.replaceRangeWithText(U,p(U,z,z,H),y)},j.prototype.replaceNodeRangeWithNodes=function(U,z,y,oe,ve){ve===void 0&&(ve=H),this.replaceRangeWithNodes(U,p(U,z,y,ve),oe,ve)},j.prototype.nodeHasTrailingComment=function(U,z,y){return y===void 0&&(y=H),!!G(U,z,y)},j.prototype.nextCommaToken=function(U,z){var y=e.findNextToken(z,z.parent,U);return y&&y.kind===27?y:void 0},j.prototype.replacePropertyAssignment=function(U,z,y){var oe=this.nextCommaToken(U,z)?"":","+this.newLineCharacter;this.replaceNode(U,z,y,{suffix:oe})},j.prototype.insertNodeAt=function(U,z,y,oe){oe===void 0&&(oe={}),this.replaceRange(U,e.createRange(z),y,oe)},j.prototype.insertNodesAt=function(U,z,y,oe){oe===void 0&&(oe={}),this.replaceRangeWithNodes(U,e.createRange(z),y,oe)},j.prototype.insertNodeAtTopOfFile=function(U,z,y){this.insertAtTopOfFile(U,z,y)},j.prototype.insertNodesAtTopOfFile=function(U,z,y){this.insertAtTopOfFile(U,z,y)},j.prototype.insertAtTopOfFile=function(U,z,y){var oe=P(U),ve={prefix:oe===0?void 0:this.newLineCharacter,suffix:(e.isLineBreak(U.text.charCodeAt(oe))?"":this.newLineCharacter)+(y?this.newLineCharacter:"")};e.isArray(z)?this.insertNodesAt(U,oe,z,ve):this.insertNodeAt(U,oe,z,ve)},j.prototype.insertFirstParameter=function(U,z,y){var oe=e.firstOrUndefined(z);oe?this.insertNodeBefore(U,oe,y):this.insertNodeAt(U,z.pos,y)},j.prototype.insertNodeBefore=function(U,z,y,oe,ve){oe===void 0&&(oe=!1),ve===void 0&&(ve={}),this.insertNodeAt(U,C(U,z,ve),y,this.getOptionsForInsertNodeBefore(z,y,oe))},j.prototype.insertModifierAt=function(U,z,y,oe){oe===void 0&&(oe={}),this.insertNodeAt(U,z,e.factory.createToken(y),oe)},j.prototype.insertModifierBefore=function(U,z,y){return this.insertModifierAt(U,y.getStart(U),z,{suffix:" "})},j.prototype.insertCommentBeforeLine=function(U,z,y,oe){var ve=e.getStartPositionOfLine(z,U),ce=e.getFirstNonSpaceCharacterPosition(U.text,ve),m=D(U,ce),de=e.getTouchingToken(U,m?ce:y),ae=U.text.slice(ve,ce),V="".concat(m?"":this.newLineCharacter,"//").concat(oe).concat(this.newLineCharacter).concat(ae);this.insertText(U,de.getStart(U),V)},j.prototype.insertJsdocCommentBefore=function(U,z,y){var oe=z.getStart(U);if(z.jsDoc)for(var ve=0,ce=z.jsDoc;ve<ce.length;ve++){var m=ce[ve];this.deleteRange(U,{pos:e.getLineStartPositionForPosition(m.getStart(U),U),end:E(U,m,{})})}var de=e.getPrecedingNonSpaceCharacterPosition(U.text,oe-1),ae=U.text.slice(de,oe);this.insertNodeAt(U,oe,y,{preserveLeadingWhitespace:!1,suffix:this.newLineCharacter+ae})},j.prototype.createJSDocText=function(U,z){var y=e.flatMap(z.jsDoc,function(ve){return e.isString(ve.comment)?e.factory.createJSDocText(ve.comment):ve.comment}),oe=e.singleOrUndefined(z.jsDoc);return oe&&e.positionsAreOnSameLine(oe.pos,oe.end,U)&&e.length(y)===0?void 0:e.factory.createNodeArray(e.intersperse(y,e.factory.createJSDocText(`
`)))},j.prototype.replaceJSDocComment=function(U,z,y){this.insertJsdocCommentBefore(U,M(z),e.factory.createJSDocComment(this.createJSDocText(U,z),e.factory.createNodeArray(y)))},j.prototype.addJSDocTags=function(U,z,y){var oe=e.flatMapToMutable(z.jsDoc,function(ce){return ce.tags}),ve=y.filter(function(ce){return!oe.some(function(m,de){var ae=x(m,ce);return ae&&(oe[de]=ae),!!ae})});this.replaceJSDocComment(U,z,qe(qe([],oe,!0),ve,!0))},j.prototype.filterJSDocTags=function(U,z,y){this.replaceJSDocComment(U,z,e.filter(e.flatMapToMutable(z.jsDoc,function(oe){return oe.tags}),y))},j.prototype.replaceRangeWithText=function(U,z,y){this.changes.push({kind:se.Text,sourceFile:U,range:z,text:y})},j.prototype.insertText=function(U,z,y){this.replaceRangeWithText(U,e.createRange(z),y)},j.prototype.tryInsertTypeAnnotation=function(U,z,y){var oe,ve;if(e.isFunctionLike(z)){if(ve=e.findChildOfKind(z,21,U),!ve){if(!e.isArrowFunction(z))return!1;ve=e.first(z.parameters)}}else ve=(oe=z.kind===253?z.exclamationToken:z.questionToken)!==null&&oe!==void 0?oe:z.name;return this.insertNodeAt(U,ve.end,y,{prefix:": "}),!0},j.prototype.tryInsertThisTypeAnnotation=function(U,z,y){var oe=e.findChildOfKind(z,20,U).getStart(U)+1,ve=z.parameters.length?", ":"";this.insertNodeAt(U,oe,y,{prefix:"this: ",suffix:ve})},j.prototype.insertTypeParameters=function(U,z,y){var oe=(e.findChildOfKind(z,20,U)||e.first(z.parameters)).getStart(U);this.insertNodesAt(U,oe,y,{prefix:"<",suffix:">",joiner:", "})},j.prototype.getOptionsForInsertNodeBefore=function(U,z,y){return e.isStatement(U)||e.isClassElement(U)?{suffix:y?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(U)?{suffix:", "}:e.isParameter(U)?e.isParameter(z)?{suffix:", "}:{}:e.isStringLiteral(U)&&e.isImportDeclaration(U.parent)||e.isNamedImports(U)?{suffix:", "}:e.isImportSpecifier(U)?{suffix:","+(y?this.newLineCharacter:" ")}:e.Debug.failBadSyntaxKind(U)},j.prototype.insertNodeAtConstructorStart=function(U,z,y){var oe=e.firstOrUndefined(z.body.statements);!oe||!z.body.multiLine?this.replaceConstructorBody(U,z,qe([y],z.body.statements,!0)):this.insertNodeBefore(U,oe,y)},j.prototype.insertNodeAtConstructorStartAfterSuperCall=function(U,z,y){var oe=e.find(z.body.statements,function(ve){return e.isExpressionStatement(ve)&&e.isSuperCall(ve.expression)});!oe||!z.body.multiLine?this.replaceConstructorBody(U,z,qe(qe([],z.body.statements,!0),[y],!1)):this.insertNodeAfter(U,oe,y)},j.prototype.insertNodeAtConstructorEnd=function(U,z,y){var oe=e.lastOrUndefined(z.body.statements);!oe||!z.body.multiLine?this.replaceConstructorBody(U,z,qe(qe([],z.body.statements,!0),[y],!1)):this.insertNodeAfter(U,oe,y)},j.prototype.replaceConstructorBody=function(U,z,y){this.replaceNode(U,z.body,e.factory.createBlock(y,!0))},j.prototype.insertNodeAtEndOfScope=function(U,z,y){var oe=C(U,z.getLastToken(),{});this.insertNodeAt(U,oe,y,{prefix:e.isLineBreak(U.text.charCodeAt(z.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},j.prototype.insertNodeAtClassStart=function(U,z,y){this.insertNodeAtStartWorker(U,z,y)},j.prototype.insertNodeAtObjectStart=function(U,z,y){this.insertNodeAtStartWorker(U,z,y)},j.prototype.insertNodeAtStartWorker=function(U,z,y){var oe,ve=(oe=this.guessIndentationFromExistingMembers(U,z))!==null&&oe!==void 0?oe:this.computeIndentationForNewMember(U,z);this.insertNodeAt(U,Y(z).pos,y,this.getInsertNodeAtStartInsertOptions(U,z,ve))},j.prototype.guessIndentationFromExistingMembers=function(U,z){for(var y,oe=z,ve=0,ce=Y(z);ve<ce.length;ve++){var m=ce[ve];if(e.rangeStartPositionsAreOnSameLine(oe,m,U))return;var de=m.getStart(U),ae=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(de,U),de,U,this.formatContext.options);if(y===void 0)y=ae;else if(ae!==y)return;oe=m}return y},j.prototype.computeIndentationForNewMember=function(U,z){var y,oe=z.getStart(U);return e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(oe,U),oe,U,this.formatContext.options)+((y=this.formatContext.options.indentSize)!==null&&y!==void 0?y:4)},j.prototype.getInsertNodeAtStartInsertOptions=function(U,z,y){var oe=Y(z),ve=oe.length===0,ce=e.addToSeen(this.classesWithNodesInsertedAtStart,e.getNodeId(z),{node:z,sourceFile:U}),m=e.isObjectLiteralExpression(z)&&(!e.isJsonSourceFile(U)||!ve),de=e.isObjectLiteralExpression(z)&&e.isJsonSourceFile(U)&&ve&&!ce;return{indentation:y,prefix:(de?",":"")+this.newLineCharacter,suffix:m?",":""}},j.prototype.insertNodeAfterComma=function(U,z,y){var oe=this.insertNodeAfterWorker(U,this.nextCommaToken(U,z)||z,y);this.insertNodeAt(U,oe,y,this.getInsertNodeAfterOptions(U,z))},j.prototype.insertNodeAfter=function(U,z,y){var oe=this.insertNodeAfterWorker(U,z,y);this.insertNodeAt(U,oe,y,this.getInsertNodeAfterOptions(U,z))},j.prototype.insertNodeAtEndOfList=function(U,z,y){this.insertNodeAt(U,z.end,y,{prefix:", "})},j.prototype.insertNodesAfter=function(U,z,y){var oe=this.insertNodeAfterWorker(U,z,e.first(y));this.insertNodesAt(U,oe,y,this.getInsertNodeAfterOptions(U,z))},j.prototype.insertNodeAfterWorker=function(U,z,y){l(z,y)&&U.text.charCodeAt(z.end-1)!==59&&this.replaceRange(U,e.createRange(z.end),e.factory.createToken(26));var oe=E(U,z,{});return oe},j.prototype.getInsertNodeAfterOptions=function(U,z){var y=this.getInsertNodeAfterOptionsWorker(z);return Ve(Ve({},y),{prefix:z.end===U.end&&e.isStatement(z)?y.prefix?`
`.concat(y.prefix):`
`:y.prefix})},j.prototype.getInsertNodeAfterOptionsWorker=function(U){switch(U.kind){case 256:case 260:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 253:case 10:case 79:return{prefix:", "};case 294:return{suffix:","+this.newLineCharacter};case 93:return{prefix:" "};case 163:return{};default:return e.Debug.assert(e.isStatement(U)||e.isClassOrTypeElement(U)),{suffix:this.newLineCharacter}}},j.prototype.insertName=function(U,z,y){if(e.Debug.assert(!z.name),z.kind===213){var oe=e.findChildOfKind(z,38,U),ve=e.findChildOfKind(z,20,U);ve?(this.insertNodesAt(U,ve.getStart(U),[e.factory.createToken(98),e.factory.createIdentifier(y)],{joiner:" "}),J(this,U,oe)):(this.insertText(U,e.first(z.parameters).getStart(U),"function ".concat(y,"(")),this.replaceRange(U,oe,e.factory.createToken(21))),z.body.kind!==234&&(this.insertNodesAt(U,z.body.getStart(U),[e.factory.createToken(18),e.factory.createToken(105)],{joiner:" ",suffix:" "}),this.insertNodesAt(U,z.body.end,[e.factory.createToken(26),e.factory.createToken(19)],{joiner:" "}))}else{var ce=e.findChildOfKind(z,z.kind===212?98:84,U).end;this.insertNodeAt(U,ce,e.factory.createIdentifier(y),{prefix:" "})}},j.prototype.insertExportModifier=function(U,z){this.insertText(U,z.getStart(U),"export ")},j.prototype.insertImportSpecifierAtIndex=function(U,z,y,oe){var ve=y.elements[oe-1];ve?this.insertNodeInListAfter(U,ve,z):this.insertNodeBefore(U,y.elements[0],z,!e.positionsAreOnSameLine(y.elements[0].getStart(),y.parent.parent.getStart(),U))},j.prototype.insertNodeInListAfter=function(U,z,y,oe){if(oe===void 0&&(oe=e.formatting.SmartIndenter.getContainingList(z,U)),!oe){e.Debug.fail("node is not a list element");return}var ve=e.indexOfNode(oe,z);if(!(ve<0)){var ce=z.getEnd();if(ve!==oe.length-1){var m=e.getTokenAtPosition(U,z.end);if(m&&ue(z,m)){var de=oe[ve+1],ae=g(U.text,de.getFullStart()),V="".concat(e.tokenToString(m.kind)).concat(U.text.substring(m.end,ae));this.insertNodesAt(U,ae,[y],{suffix:V})}}else{var le=z.getStart(U),ke=e.getLineStartPositionForPosition(le,U),Ue=void 0,He=!1;if(oe.length===1)Ue=27;else{var ar=e.findPrecedingToken(z.pos,U);Ue=ue(z,ar)?ar.kind:27;var gr=e.getLineStartPositionForPosition(oe[ve-1].getStart(U),U);He=gr!==ke}if(S(U.text,z.end)&&(He=!0),He){this.replaceRange(U,e.createRange(ce),e.factory.createToken(Ue));for(var me=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(ke,le,U,this.formatContext.options),Ge=e.skipTrivia(U.text,ce,!0,!1);Ge!==ce&&e.isLineBreak(U.text.charCodeAt(Ge-1));)Ge--;this.replaceRange(U,e.createRange(Ge),y,{indentation:me,prefix:this.newLineCharacter})}else this.replaceRange(U,e.createRange(ce),y,{prefix:"".concat(e.tokenToString(Ue)," ")})}}},j.prototype.parenthesizeExpression=function(U,z){this.replaceRange(U,e.rangeOfNode(z),e.factory.createParenthesizedExpression(z))},j.prototype.finishClassesWithNodesInsertedAtStart=function(){var U=this;this.classesWithNodesInsertedAtStart.forEach(function(z){var y=z.node,oe=z.sourceFile,ve=_e(y,oe),ce=ve[0],m=ve[1];if(ce!==void 0&&m!==void 0){var de=Y(y).length===0,ae=e.positionsAreOnSameLine(ce,m,oe);de&&ae&&ce!==m-1&&U.deleteRange(oe,e.createRange(ce,m-1)),ae&&U.insertText(oe,m-1,U.newLineCharacter)}})},j.prototype.finishDeleteDeclarations=function(){for(var U=this,z=new e.Set,y=function(V,le){oe.deletedNodes.some(function(ke){return ke.sourceFile===V&&e.rangeContainsRangeExclusive(ke.node,le)})||(e.isArray(le)?oe.deleteRange(V,e.rangeOfTypeParameters(V,le)):_.deleteDeclaration(oe,z,V,le))},oe=this,ve=0,ce=this.deletedNodes;ve<ce.length;ve++){var m=ce[ve],de=m.sourceFile,ae=m.node;y(de,ae)}z.forEach(function(V){var le=V.getSourceFile(),ke=e.formatting.SmartIndenter.getContainingList(V,le);if(V===e.last(ke)){var Ue=e.findLastIndex(ke,function(He){return!z.has(He)},ke.length-2);Ue!==-1&&U.deleteRange(le,{pos:ke[Ue].end,end:ie(le,ke[Ue+1])})}})},j.prototype.getChanges=function(U){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();for(var z=k.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,U),y=0,oe=this.newFiles;y<oe.length;y++){var ve=oe[y],ce=ve.oldFile,m=ve.fileName,de=ve.statements;z.push(k.newFileChanges(ce,m,de,this.newLineCharacter,this.formatContext))}return z},j.prototype.createNewFile=function(U,z,y){this.newFiles.push({oldFile:U,fileName:z,statements:y})},j}();O.ChangeTracker=re;function M(j){if(j.kind!==213)return j;var U=j.parent.kind===166?j.parent:j.parent.parent;return U.jsDoc=j.jsDoc,U.jsDocCache=j.jsDocCache,U}function x(j,U){if(j.kind===U.kind)switch(j.kind){case 338:{var z=j,y=U;return e.isIdentifier(z.name)&&e.isIdentifier(y.name)&&z.name.escapedText===y.name.escapedText?e.factory.createJSDocParameterTag(void 0,y.name,!1,y.typeExpression,y.isNameFirst,z.comment):void 0}case 339:return e.factory.createJSDocReturnTag(void 0,U.typeExpression,j.comment);case 341:return e.factory.createJSDocTypeTag(void 0,U.typeExpression,j.comment)}}function ie(j,U){return e.skipTrivia(j.text,C(j,U,{leadingTriviaOption:pe.IncludeAll}),!1,!0)}function _e(j,U){var z=e.findChildOfKind(j,18,U),y=e.findChildOfKind(j,19,U);return[z==null?void 0:z.end,y==null?void 0:y.end]}function Y(j){return e.isObjectLiteralExpression(j)?j.properties:j.members}function Z(j,U,z,y){return k.newFileChangesWorker(void 0,U,j,z,y)}O.getNewFileText=Z;var k;(function(j){function U(m,de,ae,V){return e.mapDefined(e.group(m,function(le){return le.sourceFile.path}),function(le){for(var ke=le[0].sourceFile,Ue=e.stableSort(le,function(me,Ge){return me.range.pos-Ge.range.pos||me.range.end-Ge.range.end}),He=function(me){e.Debug.assert(Ue[me].range.end<=Ue[me+1].range.pos,"Changes overlap",function(){return"".concat(JSON.stringify(Ue[me].range)," and ").concat(JSON.stringify(Ue[me+1].range))})},ar=0;ar<Ue.length-1;ar++)He(ar);var gr=e.mapDefined(Ue,function(me){var Ge=e.createTextSpanFromRange(me.range),er=oe(me,ke,de,ae,V);if(!(Ge.length===er.length&&e.stringContainsAt(ke.text,er,Ge.start)))return e.createTextChange(Ge,er)});return gr.length>0?{fileName:ke.fileName,textChanges:gr}:void 0})}j.getTextChangesFromChanges=U;function z(m,de,ae,V,le){var ke=y(m,e.getScriptKindFromFileName(de),ae,V,le);return{fileName:de,textChanges:[e.createTextChange(e.createTextSpan(0,0),ke)],isNewFile:!0}}j.newFileChanges=z;function y(m,de,ae,V,le){var ke=ae.map(function(ar){return ar===4?"":ce(ar,m,V).text}).join(V),Ue=e.createSourceFile("any file name",ke,99,!0,de),He=e.formatting.formatDocument(Ue,le);return I(ke,He)+V}j.newFileChangesWorker=y;function oe(m,de,ae,V,le){var ke;if(m.kind===se.Remove)return"";if(m.kind===se.Text)return m.text;var Ue=m.options,He=Ue===void 0?{}:Ue,ar=m.range.pos,gr=function(er){return ve(er,de,ar,He,ae,V,le)},me=m.kind===se.ReplaceWithMultipleNodes?m.nodes.map(function(er){return e.removeSuffix(gr(er),ae)}).join(((ke=m.options)===null||ke===void 0?void 0:ke.joiner)||ae):gr(m.node),Ge=He.preserveLeadingWhitespace||He.indentation!==void 0||e.getLineStartPositionForPosition(ar,de)===ar?me:me.replace(/^\s+/,"");return(He.prefix||"")+Ge+(!He.suffix||e.endsWith(Ge,He.suffix)?"":He.suffix)}function ve(m,de,ae,V,le,ke,Ue){var He=V.indentation,ar=V.prefix,gr=V.delta,me=ce(m,de,le),Ge=me.node,er=me.text;Ue&&Ue(Ge,er);var he=e.getFormatCodeSettingsForWriting(ke,de),we=He!==void 0?He:e.formatting.SmartIndenter.getIndentation(ae,de,he,ar===le||e.getLineStartPositionForPosition(ae,de)===ae);gr===void 0&&(gr=e.formatting.SmartIndenter.shouldIndentChildNode(he,m)&&he.indentSize||0);var ye={text:er,getLineAndCharacterOfPosition:function(ge){return e.getLineAndCharacterOfPosition(this,ge)}},Se=e.formatting.formatNodeGivenIndentation(Ge,ye,de.languageVariant,we,gr,Ve(Ve({},ke),{options:he}));return I(er,Se)}function ce(m,de,ae){var V=f(ae),le=e.getNewLineKind(ae);return e.createPrinter({newLine:le,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},V).writeNode(4,m,de,V),{text:V.getText(),node:ee(m)}}j.getNonformattedText=ce})(k||(k={}));function I(j,U){for(var z=U.length-1;z>=0;z--){var y=U[z],oe=y.span,ve=y.newText;j="".concat(j.substring(0,oe.start)).concat(ve).concat(j.substring(e.textSpanEnd(oe)))}return j}O.applyChanges=I;function ne(j){return e.skipTrivia(j,0)===j.length}function ee(j){var U=e.visitEachChild(j,ee,e.nullTransformationContext,A,ee),z=e.nodeIsSynthesized(U)?U:Object.create(U);return e.setTextRangePosEnd(z,L(j),N(j)),z}O.assignPositionsToNode=ee;function A(j,U,z,y,oe){var ve=e.visitNodes(j,U,z,y,oe);if(!ve)return ve;var ce=ve===j?e.factory.createNodeArray(ve.slice(0)):ve;return e.setTextRangePosEnd(ce,L(j),N(j)),ce}function f(j){var U=0,z=e.createTextWriter(j),y=function(Er){Er&&W(Er,U)},oe=function(Er){Er&&Q(Er,U)},ve=function(Er){Er&&W(Er,U)},ce=function(Er){Er&&Q(Er,U)},m=function(Er){Er&&W(Er,U)},de=function(Er){Er&&Q(Er,U)};function ae(Er,br){if(br||!ne(Er)){U=z.getTextPos();for(var Pr=0;e.isWhiteSpaceLike(Er.charCodeAt(Er.length-Pr-1));)Pr++;U-=Pr}}function V(Er){z.write(Er),ae(Er,!1)}function le(Er){z.writeComment(Er)}function ke(Er){z.writeKeyword(Er),ae(Er,!1)}function Ue(Er){z.writeOperator(Er),ae(Er,!1)}function He(Er){z.writePunctuation(Er),ae(Er,!1)}function ar(Er){z.writeTrailingSemicolon(Er),ae(Er,!1)}function gr(Er){z.writeParameter(Er),ae(Er,!1)}function me(Er){z.writeProperty(Er),ae(Er,!1)}function Ge(Er){z.writeSpace(Er),ae(Er,!1)}function er(Er){z.writeStringLiteral(Er),ae(Er,!1)}function he(Er,br){z.writeSymbol(Er,br),ae(Er,!1)}function we(Er){z.writeLine(Er)}function ye(){z.increaseIndent()}function Se(){z.decreaseIndent()}function ge(){return z.getText()}function Fe(Er){z.rawWrite(Er),ae(Er,!1)}function cr(Er){z.writeLiteral(Er),ae(Er,!0)}function ur(){return z.getTextPos()}function Ir(){return z.getLine()}function dr(){return z.getColumn()}function Br(){return z.getIndent()}function Tr(){return z.isAtStartOfLine()}function n(){z.clear(),U=0}return{onBeforeEmitNode:y,onAfterEmitNode:oe,onBeforeEmitNodeArray:ve,onAfterEmitNodeArray:ce,onBeforeEmitToken:m,onAfterEmitToken:de,write:V,writeComment:le,writeKeyword:ke,writeOperator:Ue,writePunctuation:He,writeTrailingSemicolon:ar,writeParameter:gr,writeProperty:me,writeSpace:Ge,writeStringLiteral:er,writeSymbol:he,writeLine:we,increaseIndent:ye,decreaseIndent:Se,getText:ge,rawWrite:Fe,writeLiteral:cr,getTextPos:ur,getLine:Ir,getColumn:dr,getIndent:Br,isAtStartOfLine:Tr,hasTrailingComment:function(){return z.hasTrailingComment()},hasTrailingWhitespace:function(){return z.hasTrailingWhitespace()},clear:n}}O.createWriter=f;function P(j){for(var U,z=0,y=j.statements;z<y.length;z++){var oe=y[z];if(e.isPrologueDirective(oe))U=oe;else break}var ve=0,ce=j.text;if(U)return ve=U.end,me(),ve;var m=e.getShebang(ce);m!==void 0&&(ve=m.length,me());var de=e.getLeadingCommentRanges(ce,ve);if(!de)return ve;for(var ae,V,le=0,ke=de;le<ke.length;le++){var Ue=ke[le];if(Ue.kind===3){if(e.isPinnedComment(ce,Ue.pos)){ae={range:Ue,pinnedOrTripleSlash:!0};continue}}else if(e.isRecognizedTripleSlashComment(ce,Ue.pos,Ue.end)){ae={range:Ue,pinnedOrTripleSlash:!0};continue}if(ae){if(ae.pinnedOrTripleSlash)break;var He=j.getLineAndCharacterOfPosition(Ue.pos).line,ar=j.getLineAndCharacterOfPosition(ae.range.end).line;if(He>=ar+2)break}if(j.statements.length){V===void 0&&(V=j.getLineAndCharacterOfPosition(j.statements[0].getStart()).line);var gr=j.getLineAndCharacterOfPosition(Ue.end).line;if(V<gr+2)break}ae={range:Ue,pinnedOrTripleSlash:!1}}return ae&&(ve=ae.range.end,me()),ve;function me(){if(ve<ce.length){var Ge=ce.charCodeAt(ve);e.isLineBreak(Ge)&&(ve++,ve<ce.length&&Ge===13&&ce.charCodeAt(ve)===10&&ve++)}}}function D(j,U){return!e.isInComment(j,U)&&!e.isInString(j,U)&&!e.isInTemplateString(j,U)&&!e.isInJSXText(j,U)}O.isValidLocationToAddComment=D;function l(j,U){return(e.isPropertySignature(j)||e.isPropertyDeclaration(j))&&e.isClassOrTypeElement(U)&&U.name.kind===161||e.isStatementButNotDeclaration(j)&&e.isStatementButNotDeclaration(U)}var _;(function(j){function U(ve,ce,m,de){switch(de.kind){case 163:{var ae=de.parent;e.isArrowFunction(ae)&&ae.parameters.length===1&&!e.findChildOfKind(ae,20,m)?ve.replaceNodeWithText(m,de,"()"):w(ve,ce,m,de);break}case 265:case 264:var V=m.imports.length&&de===e.first(m.imports).parent||de===e.find(m.statements,e.isAnyImportSyntax);J(ve,m,de,{leadingTriviaOption:V?pe.Exclude:e.hasJSDocNodes(de)?pe.JSDoc:pe.StartLine});break;case 202:var le=de.parent,ke=le.kind===201&&de!==e.last(le.elements);ke?J(ve,m,de):w(ve,ce,m,de);break;case 253:oe(ve,ce,m,de);break;case 162:w(ve,ce,m,de);break;case 269:var Ue=de.parent;Ue.elements.length===1?y(ve,m,Ue):w(ve,ce,m,de);break;case 267:y(ve,m,de);break;case 26:J(ve,m,de,{trailingTriviaOption:F.Exclude});break;case 98:J(ve,m,de,{leadingTriviaOption:pe.Exclude});break;case 256:case 255:J(ve,m,de,{leadingTriviaOption:e.hasJSDocNodes(de)?pe.JSDoc:pe.StartLine});break;default:de.parent?e.isImportClause(de.parent)&&de.parent.name===de?z(ve,m,de.parent):e.isCallExpression(de.parent)&&e.contains(de.parent.arguments,de)?w(ve,ce,m,de):J(ve,m,de):J(ve,m,de)}}j.deleteDeclaration=U;function z(ve,ce,m){if(!m.namedBindings)J(ve,ce,m.parent);else{var de=m.name.getStart(ce),ae=e.getTokenAtPosition(ce,m.name.end);if(ae&&ae.kind===27){var V=e.skipTrivia(ce.text,ae.end,!1,!0);ve.deleteRange(ce,{pos:de,end:V})}else J(ve,ce,m.name)}}function y(ve,ce,m){if(m.parent.name){var de=e.Debug.checkDefined(e.getTokenAtPosition(ce,m.pos-1));ve.deleteRange(ce,{pos:de.getStart(ce),end:m.end})}else{var ae=e.getAncestor(m,265);J(ve,ce,ae)}}function oe(ve,ce,m,de){var ae=de.parent;if(ae.kind===291){ve.deleteNodeRange(m,e.findChildOfKind(ae,20,m),e.findChildOfKind(ae,21,m));return}if(ae.declarations.length!==1){w(ve,ce,m,de);return}var V=ae.parent;switch(V.kind){case 243:case 242:ve.replaceNode(m,de,e.factory.createObjectLiteralExpression());break;case 241:J(ve,m,ae);break;case 236:J(ve,m,V,{leadingTriviaOption:e.hasJSDocNodes(V)?pe.JSDoc:pe.StartLine});break;default:e.Debug.assertNever(V)}}})(_||(_={}));function J(j,U,z,y){y===void 0&&(y={leadingTriviaOption:pe.IncludeAll});var oe=C(U,z,y),ve=E(U,z,y);j.deleteRange(U,{pos:oe,end:ve})}O.deleteNode=J;function w(j,U,z,y){var oe=e.Debug.checkDefined(e.formatting.SmartIndenter.getContainingList(y,z)),ve=e.indexOfNode(oe,y);if(e.Debug.assert(ve!==-1),oe.length===1){J(j,z,y);return}e.Debug.assert(!U.has(y),"Deleting a node twice"),U.add(y),j.deleteRange(z,{pos:ie(z,y),end:ve===oe.length-1?E(z,y,{}):ie(z,oe[ve+1])})}})(a=e.textChanges||(e.textChanges={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L=e.createMultiMap(),W=new e.Map;function N(re,M,x){return F(re,e.diagnosticToString(x),M,void 0,void 0)}O.createCodeFixActionWithoutFixAll=N;function Q(re,M,x,ie,_e,Y){return F(re,e.diagnosticToString(x),M,ie,e.diagnosticToString(_e),Y)}O.createCodeFixAction=Q;function pe(re,M,x,ie,_e,Y){return F(re,e.diagnosticToString(x),M,ie,_e&&e.diagnosticToString(_e),Y)}O.createCodeFixActionMaybeFixAll=pe;function F(re,M,x,ie,_e,Y){return{fixName:re,description:M,changes:x,fixId:ie,fixAllDescription:_e,commands:Y?[Y]:void 0}}function g(re){for(var M=0,x=re.errorCodes;M<x.length;M++){var ie=x[M];L.add(String(ie),re)}if(re.fixIds)for(var _e=0,Y=re.fixIds;_e<Y.length;_e++){var Z=Y[_e];e.Debug.assert(!W.has(Z)),W.set(Z,re)}}O.registerCodeFix=g;function S(){return e.arrayFrom(L.keys())}O.getSupportedErrorCodes=S;function H(re,M){for(var x=re.errorCodes,ie=0,_e=0,Y=M;_e<Y.length;_e++){var Z=Y[_e];if(e.contains(x,Z.code)&&ie++,ie>1)break}var k=ie<2;return function(I){var ne=I.fixId,ee=I.fixAllDescription,A=fr(I,["fixId","fixAllDescription"]);return k?A:Ve(Ve({},A),{fixId:ne,fixAllDescription:ee})}}function se(re){var M=B(re),x=L.get(String(re.errorCode));return e.flatMap(x,function(ie){return e.map(ie.getCodeActions(re),H(ie,M))})}O.getFixes=se;function p(re){return W.get(e.cast(re.fixId,e.isString)).getAllCodeActions(re)}O.getAllFixes=p;function C(re,M){return{changes:re,commands:M}}O.createCombinedCodeActions=C;function G(re,M){return{fileName:re,textChanges:M}}O.createFileTextChanges=G;function E(re,M,x){var ie=[],_e=e.textChanges.ChangeTracker.with(re,function(Y){return ue(re,M,function(Z){return x(Y,Z,ie)})});return C(_e,ie.length===0?void 0:ie)}O.codeFixAll=E;function ue(re,M,x){for(var ie=0,_e=B(re);ie<_e.length;ie++){var Y=_e[ie];e.contains(M,Y.code)&&x(Y)}}O.eachDiagnostic=ue;function B(re){var M=re.program,x=re.sourceFile,ie=re.cancellationToken;return qe(qe(qe([],M.getSemanticDiagnostics(x,ie),!0),M.getSyntacticDiagnostics(x,ie),!0),e.computeSuggestionDiagnostics(x,M,ie),!0)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L=new e.Map;function W(pe,F){L.set(pe,F)}O.registerRefactor=W;function N(pe){return e.arrayFrom(e.flatMapIterator(L.values(),function(F){var g;return pe.cancellationToken&&pe.cancellationToken.isCancellationRequested()||!(!((g=F.kinds)===null||g===void 0)&&g.some(function(S){return O.refactorKindBeginsWith(S,pe.kind)}))?void 0:F.getAvailableActions(pe)}))}O.getApplicableRefactors=N;function Q(pe,F,g){var S=L.get(F);return S&&S.getEditsForAction(pe,g)}O.getEditsForRefactor=Q})(a=e.refactor||(e.refactor={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="addConvertToUnknownForNonOverlappingTypes",W=[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];O.registerCodeFix({errorCodes:W,getCodeActions:function(F){var g=Q(F.sourceFile,F.span.start);if(g!==void 0){var S=e.textChanges.ChangeTracker.with(F,function(H){return N(H,F.sourceFile,g)});return[O.createCodeFixAction(L,S,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,L,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]}},fixIds:[L],getAllCodeActions:function(pe){return O.codeFixAll(pe,W,function(F,g){var S=Q(g.file,g.start);S&&N(F,g.file,S)})}});function N(pe,F,g){var S=e.isAsExpression(g)?e.factory.createAsExpression(g.expression,e.factory.createKeywordTypeNode(154)):e.factory.createTypeAssertion(e.factory.createKeywordTypeNode(154),g.expression);pe.replaceNode(F,g.expression,S)}function Q(pe,F){if(!e.isInJSFile(pe))return e.findAncestor(e.getTokenAtPosition(pe,F),function(g){return e.isAsExpression(g)||e.isTypeAssertionExpression(g)})}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){O.registerCodeFix({errorCodes:[e.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,e.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(W){var N=W.sourceFile,Q=e.textChanges.ChangeTracker.with(W,function(pe){var F=e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([]),void 0);pe.insertNodeAtEndOfScope(N,N,F)});return[O.createCodeFixActionWithoutFixAll("addEmptyExportDeclaration",Q,e.Diagnostics.Add_export_to_make_this_file_into_a_module)]}})})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="addMissingAsync",W=[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];O.registerCodeFix({fixIds:[L],errorCodes:W,getCodeActions:function(S){var H=S.sourceFile,se=S.errorCode,p=S.cancellationToken,C=S.program,G=S.span,E=e.find(C.getDiagnosticsProducingTypeChecker().getDiagnostics(H,p),F(G,se)),ue=E&&E.relatedInformation&&e.find(E.relatedInformation,function(M){return M.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}),B=pe(H,ue);if(!!B){var re=function(M){return e.textChanges.ChangeTracker.with(S,M)};return[N(S,B,re)]}},getAllCodeActions:function(g){var S=g.sourceFile,H=new e.Set;return O.codeFixAll(g,W,function(se,p){var C=p.relatedInformation&&e.find(p.relatedInformation,function(ue){return ue.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}),G=pe(S,C);if(!!G){var E=function(ue){return ue(se),[]};return N(g,G,E,H)}})}});function N(g,S,H,se){var p=H(function(C){return Q(C,g.sourceFile,S,se)});return O.createCodeFixAction(L,p,e.Diagnostics.Add_async_modifier_to_containing_function,L,e.Diagnostics.Add_all_missing_async_modifiers)}function Q(g,S,H,se){if(!(se&&se.has(e.getNodeId(H)))){se==null||se.add(e.getNodeId(H));var p=e.factory.updateModifiers(e.getSynthesizedDeepClone(H,!0),e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(e.getSyntacticModifierFlags(H)|256)));g.replaceNode(S,H,p)}}function pe(g,S){if(!!S){var H=e.getTokenAtPosition(g,S.start),se=e.findAncestor(H,function(p){return p.getStart(g)<S.start||p.getEnd()>e.textSpanEnd(S)?"quit":(e.isArrowFunction(p)||e.isMethodDeclaration(p)||e.isFunctionExpression(p)||e.isFunctionDeclaration(p))&&e.textSpansEqual(S,e.createTextSpanFromNode(p,g))});return se}}function F(g,S){return function(H){var se=H.start,p=H.length,C=H.relatedInformation,G=H.code;return e.isNumber(se)&&e.isNumber(p)&&e.textSpansEqual({start:se,length:p},g)&&G===S&&!!C&&e.some(C,function(E){return E.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="addMissingAwait",W=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,N=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],Q=qe([e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1.code,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2.code,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap.code,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined.code,e.Diagnostics.Type_0_is_not_an_array_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,W],N,!0);O.registerCodeFix({fixIds:[L],errorCodes:Q,getCodeActions:function(B){var re=B.sourceFile,M=B.errorCode,x=B.span,ie=B.cancellationToken,_e=B.program,Y=pe(re,M,x,ie,_e);if(!!Y){var Z=B.program.getTypeChecker(),k=function(I){return e.textChanges.ChangeTracker.with(B,I)};return e.compact([F(B,Y,M,Z,k),g(B,Y,M,Z,k)])}},getAllCodeActions:function(ue){var B=ue.sourceFile,re=ue.program,M=ue.cancellationToken,x=ue.program.getTypeChecker(),ie=new e.Set;return O.codeFixAll(ue,Q,function(_e,Y){var Z=pe(B,Y.code,Y,M,re);if(!!Z){var k=function(I){return I(_e),[]};return F(ue,Z,Y.code,x,k,ie)||g(ue,Z,Y.code,x,k,ie)}})}});function pe(ue,B,re,M,x){var ie=e.getFixableErrorSpanExpression(ue,re);return ie&&S(ue,B,re,M,x)&&C(ie)?ie:void 0}function F(ue,B,re,M,x,ie){var _e=ue.sourceFile,Y=ue.program,Z=ue.cancellationToken,k=H(B,_e,Z,Y,M);if(k){var I=x(function(ne){e.forEach(k.initializers,function(ee){var A=ee.expression;return G(ne,re,_e,M,A,ie)}),ie&&k.needsSecondPassForFixAll&&G(ne,re,_e,M,B,ie)});return O.createCodeFixActionWithoutFixAll("addMissingAwaitToInitializer",I,k.initializers.length===1?[e.Diagnostics.Add_await_to_initializer_for_0,k.initializers[0].declarationSymbol.name]:e.Diagnostics.Add_await_to_initializers)}}function g(ue,B,re,M,x,ie){var _e=x(function(Y){return G(Y,re,ue.sourceFile,M,B,ie)});return O.createCodeFixAction(L,_e,e.Diagnostics.Add_await,L,e.Diagnostics.Fix_all_expressions_possibly_missing_await)}function S(ue,B,re,M,x){var ie=x.getDiagnosticsProducingTypeChecker(),_e=ie.getDiagnostics(ue,M);return e.some(_e,function(Y){var Z=Y.start,k=Y.length,I=Y.relatedInformation,ne=Y.code;return e.isNumber(Z)&&e.isNumber(k)&&e.textSpansEqual({start:Z,length:k},re)&&ne===B&&!!I&&e.some(I,function(ee){return ee.code===e.Diagnostics.Did_you_forget_to_use_await.code})})}function H(ue,B,re,M,x){var ie=se(ue,x);if(!!ie){for(var _e=ie.isCompleteFix,Y,Z=function(ee){var A=x.getSymbolAtLocation(ee);if(!A)return"continue";var f=e.tryCast(A.valueDeclaration,e.isVariableDeclaration),P=f&&e.tryCast(f.name,e.isIdentifier),D=e.getAncestor(f,236);if(!f||!D||f.type||!f.initializer||D.getSourceFile()!==B||e.hasSyntacticModifier(D,1)||!P||!C(f.initializer))return _e=!1,"continue";var l=M.getSemanticDiagnostics(B,re),_=e.FindAllReferences.Core.eachSymbolReferenceInFile(P,x,B,function(J){return ee!==J&&!p(J,l,B,x)});if(_)return _e=!1,"continue";(Y||(Y=[])).push({expression:f.initializer,declarationSymbol:A})},k=0,I=ie.identifiers;k<I.length;k++){var ne=I[k];Z(ne)}return Y&&{initializers:Y,needsSecondPassForFixAll:!_e}}}function se(ue,B){if(e.isPropertyAccessExpression(ue.parent)&&e.isIdentifier(ue.parent.expression))return{identifiers:[ue.parent.expression],isCompleteFix:!0};if(e.isIdentifier(ue))return{identifiers:[ue],isCompleteFix:!0};if(e.isBinaryExpression(ue)){for(var re=void 0,M=!0,x=0,ie=[ue.left,ue.right];x<ie.length;x++){var _e=ie[x],Y=B.getTypeAtLocation(_e);if(B.getPromisedTypeOfPromise(Y)){if(!e.isIdentifier(_e)){M=!1;continue}(re||(re=[])).push(_e)}}return re&&{identifiers:re,isCompleteFix:M}}}function p(ue,B,re,M){var x=e.isPropertyAccessExpression(ue.parent)?ue.parent.name:e.isBinaryExpression(ue.parent)?ue.parent:ue,ie=e.find(B,function(_e){return _e.start===x.getStart(re)&&_e.start+_e.length===x.getEnd()});return ie&&e.contains(Q,ie.code)||M.getTypeAtLocation(x).flags&1}function C(ue){return ue.kind&32768||!!e.findAncestor(ue,function(B){return B.parent&&e.isArrowFunction(B.parent)&&B.parent.body===B||e.isBlock(B)&&(B.parent.kind===255||B.parent.kind===212||B.parent.kind===213||B.parent.kind===168)})}function G(ue,B,re,M,x,ie){if(e.isBinaryExpression(x))for(var _e=0,Y=[x.left,x.right];_e<Y.length;_e++){var Z=Y[_e];if(ie&&e.isIdentifier(Z)){var k=M.getSymbolAtLocation(Z);if(k&&ie.has(e.getSymbolId(k)))continue}var I=M.getTypeAtLocation(Z),ne=M.getPromisedTypeOfPromise(I)?e.factory.createAwaitExpression(Z):Z;ue.replaceNode(re,Z,ne)}else if(B===W&&e.isPropertyAccessExpression(x.parent)){if(ie&&e.isIdentifier(x.parent.expression)){var k=M.getSymbolAtLocation(x.parent.expression);if(k&&ie.has(e.getSymbolId(k)))return}ue.replaceNode(re,x.parent.expression,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(x.parent.expression))),E(ue,x.parent.expression,re)}else if(e.contains(N,B)&&e.isCallOrNewExpression(x.parent)){if(ie&&e.isIdentifier(x)){var k=M.getSymbolAtLocation(x);if(k&&ie.has(e.getSymbolId(k)))return}ue.replaceNode(re,x,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(x))),E(ue,x,re)}else{if(ie&&e.isVariableDeclaration(x.parent)&&e.isIdentifier(x.parent.name)){var k=M.getSymbolAtLocation(x.parent.name);if(k&&!e.tryAddToSet(ie,e.getSymbolId(k)))return}ue.replaceNode(re,x,e.factory.createAwaitExpression(x))}}function E(ue,B,re){var M=e.findPrecedingToken(B.pos,re);M&&e.positionIsASICandidate(M.end,M.parent,re)&&ue.insertText(re,B.getStart(re),";")}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="addMissingConst",W=[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];O.registerCodeFix({errorCodes:W,getCodeActions:function(se){var p=e.textChanges.ChangeTracker.with(se,function(C){return N(C,se.sourceFile,se.span.start,se.program)});if(p.length>0)return[O.createCodeFixAction(L,p,e.Diagnostics.Add_const_to_unresolved_variable,L,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[L],getAllCodeActions:function(H){var se=new e.Set;return O.codeFixAll(H,W,function(p,C){return N(p,C.file,C.start,H.program,se)})}});function N(H,se,p,C,G){var E=e.getTokenAtPosition(se,p),ue=e.findAncestor(E,function(ie){return e.isForInOrOfStatement(ie.parent)?ie.parent.initializer===ie:pe(ie)?!1:"quit"});if(ue)return Q(H,ue,se,G);var B=E.parent;if(e.isBinaryExpression(B)&&B.operatorToken.kind===63&&e.isExpressionStatement(B.parent))return Q(H,E,se,G);if(e.isArrayLiteralExpression(B)){var re=C.getTypeChecker();return e.every(B.elements,function(ie){return F(ie,re)})?Q(H,B,se,G):void 0}var M=e.findAncestor(E,function(ie){return e.isExpressionStatement(ie.parent)?!0:g(ie)?!1:"quit"});if(M){var x=C.getTypeChecker();return S(M,x)?Q(H,M,se,G):void 0}}function Q(H,se,p,C){(!C||e.tryAddToSet(C,se))&&H.insertModifierBefore(p,85,se)}function pe(H){switch(H.kind){case 79:case 203:case 204:case 294:case 295:return!0;default:return!1}}function F(H,se){var p=e.isIdentifier(H)?H:e.isAssignmentExpression(H,!0)&&e.isIdentifier(H.left)?H.left:void 0;return!!p&&!se.getSymbolAtLocation(p)}function g(H){switch(H.kind){case 79:case 220:case 27:return!0;default:return!1}}function S(H,se){return e.isBinaryExpression(H)?H.operatorToken.kind===27?e.every([H.left,H.right],function(p){return S(p,se)}):H.operatorToken.kind===63&&e.isIdentifier(H.left)&&!se.getSymbolAtLocation(H.left):!1}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="addMissingDeclareProperty",W=[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];O.registerCodeFix({errorCodes:W,getCodeActions:function(pe){var F=e.textChanges.ChangeTracker.with(pe,function(g){return N(g,pe.sourceFile,pe.span.start)});if(F.length>0)return[O.createCodeFixAction(L,F,e.Diagnostics.Prefix_with_declare,L,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[L],getAllCodeActions:function(Q){var pe=new e.Set;return O.codeFixAll(Q,W,function(F,g){return N(F,g.file,g.start,pe)})}});function N(Q,pe,F,g){var S=e.getTokenAtPosition(pe,F);if(!!e.isIdentifier(S)){var H=S.parent;H.kind===166&&(!g||e.tryAddToSet(g,H))&&Q.insertModifierBefore(pe,135,H)}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="addMissingInvocationForDecorator",W=[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];O.registerCodeFix({errorCodes:W,getCodeActions:function(pe){var F=e.textChanges.ChangeTracker.with(pe,function(g){return N(g,pe.sourceFile,pe.span.start)});return[O.createCodeFixAction(L,F,e.Diagnostics.Call_decorator_expression,L,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[L],getAllCodeActions:function(Q){return O.codeFixAll(Q,W,function(pe,F){return N(pe,F.file,F.start)})}});function N(Q,pe,F){var g=e.getTokenAtPosition(pe,F),S=e.findAncestor(g,e.isDecorator);e.Debug.assert(!!S,"Expected position to be owned by a decorator.");var H=e.factory.createCallExpression(S.expression,void 0,void 0);Q.replaceNode(pe,S.expression,H)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="addNameToNamelessParameter",W=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(pe){var F=e.textChanges.ChangeTracker.with(pe,function(g){return N(g,pe.sourceFile,pe.span.start)});return[O.createCodeFixAction(L,F,e.Diagnostics.Add_parameter_name,L,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[L],getAllCodeActions:function(Q){return O.codeFixAll(Q,W,function(pe,F){return N(pe,F.file,F.start)})}});function N(Q,pe,F){var g=e.getTokenAtPosition(pe,F),S=g.parent;if(!e.isParameter(S))return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(g.kind));var H=S.parent.parameters.indexOf(S);e.Debug.assert(!S.type,"Tried to add a parameter name to a parameter that already had one."),e.Debug.assert(H>-1,"Parameter not found in parent parameter list.");var se=e.factory.createTypeReferenceNode(S.name,void 0),p=e.factory.createParameterDeclaration(void 0,S.modifiers,S.dotDotDotToken,"arg"+H,S.questionToken,S.dotDotDotToken?e.factory.createArrayTypeNode(se):se,S.initializer);Q.replaceNode(pe,S,p)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="addOptionalPropertyUndefined",W=[e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(g){var S=g.program.getTypeChecker(),H=N(g.sourceFile,g.span,S);if(!!H.length){var se=e.textChanges.ChangeTracker.with(g,function(p){return F(p,H)});return[O.createCodeFixActionWithoutFixAll(L,se,e.Diagnostics.Add_undefined_to_optional_property_type)]}},fixIds:[L]});function N(g,S,H){var se,p,C=pe(e.getFixableErrorSpanExpression(g,S),H);if(!C)return e.emptyArray;var G=C.source,E=C.target,ue=Q(G,E,H)?H.getTypeAtLocation(E.expression):H.getTypeAtLocation(E);return!((p=(se=ue.symbol)===null||se===void 0?void 0:se.declarations)===null||p===void 0)&&p.some(function(B){return e.getSourceFileOfNode(B).fileName.match(/\.d\.ts$/)})?e.emptyArray:H.getExactOptionalProperties(ue)}function Q(g,S,H){return e.isPropertyAccessExpression(S)&&!!H.getExactOptionalProperties(H.getTypeAtLocation(S.expression)).length&&H.getTypeAtLocation(g)===H.getUndefinedType()}function pe(g,S){var H;if(g){if(e.isBinaryExpression(g.parent)&&g.parent.operatorToken.kind===63)return{source:g.parent.right,target:g.parent.left};if(e.isVariableDeclaration(g.parent)&&g.parent.initializer)return{source:g.parent.initializer,target:g.parent.name};if(e.isCallExpression(g.parent)){var se=S.getSymbolAtLocation(g.parent.expression);if(!(se!=null&&se.valueDeclaration)||!e.isFunctionLikeKind(se.valueDeclaration.kind)||!e.isExpression(g))return;var p=g.parent.arguments.indexOf(g);if(p===-1)return;var C=se.valueDeclaration.parameters[p].name;if(e.isIdentifier(C))return{source:g,target:C}}else if(e.isPropertyAssignment(g.parent)&&e.isIdentifier(g.parent.name)||e.isShorthandPropertyAssignment(g.parent)){var G=pe(g.parent.parent,S);if(!G)return;var E=S.getPropertyOfType(S.getTypeAtLocation(G.target),g.parent.name.text),ue=(H=E==null?void 0:E.declarations)===null||H===void 0?void 0:H[0];return ue?{source:e.isPropertyAssignment(g.parent)?g.parent.initializer:g.parent.name,target:ue}:void 0}}else return}function F(g,S){for(var H=0,se=S;H<se.length;H++){var p=se[H],C=p.valueDeclaration;if(C&&(e.isPropertySignature(C)||e.isPropertyDeclaration(C))&&C.type){var G=e.factory.createUnionTypeNode(qe(qe([],C.type.kind===186?C.type.types:[C.type],!0),[e.factory.createTypeReferenceNode("undefined")],!1));g.replaceNode(C.getSourceFile(),C.type,G)}}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="annotateWithTypeFromJSDoc",W=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(B){var re=N(B.sourceFile,B.span.start);if(!!re){var M=e.textChanges.ChangeTracker.with(B,function(x){return F(x,B.sourceFile,re)});return[O.createCodeFixAction(L,M,e.Diagnostics.Annotate_with_type_from_JSDoc,L,e.Diagnostics.Annotate_everything_with_types_from_JSDoc)]}},fixIds:[L],getAllCodeActions:function(B){return O.codeFixAll(B,W,function(re,M){var x=N(M.file,M.start);x&&F(re,M.file,x)})}});function N(B,re){var M=e.getTokenAtPosition(B,re);return e.tryCast(e.isParameter(M.parent)?M.parent.parent:M.parent,Q)}function Q(B){return g(B)&&pe(B)}O.parameterShouldGetTypeFromJSDoc=Q;function pe(B){return e.isFunctionLikeDeclaration(B)?B.parameters.some(pe)||!B.type&&!!e.getJSDocReturnType(B):!B.type&&!!e.getJSDocType(B)}function F(B,re,M){if(e.isFunctionLikeDeclaration(M)&&(e.getJSDocReturnType(M)||M.parameters.some(function(ee){return!!e.getJSDocType(ee)}))){if(!M.typeParameters){var x=e.getJSDocTypeParameterDeclarations(M);x.length&&B.insertTypeParameters(re,M,x)}var ie=e.isArrowFunction(M)&&!e.findChildOfKind(M,20,re);ie&&B.insertNodeBefore(re,e.first(M.parameters),e.factory.createToken(20));for(var _e=0,Y=M.parameters;_e<Y.length;_e++){var Z=Y[_e];if(!Z.type){var k=e.getJSDocType(Z);k&&B.tryInsertTypeAnnotation(re,Z,S(k))}}if(ie&&B.insertNodeAfter(re,e.last(M.parameters),e.factory.createToken(21)),!M.type){var I=e.getJSDocReturnType(M);I&&B.tryInsertTypeAnnotation(re,M,S(I))}}else{var ne=e.Debug.checkDefined(e.getJSDocType(M),"A JSDocType for this declaration should exist");e.Debug.assert(!M.type,"The JSDocType decl should have a type"),B.tryInsertTypeAnnotation(re,M,S(ne))}}function g(B){return e.isFunctionLikeDeclaration(B)||B.kind===253||B.kind===165||B.kind===166}function S(B){switch(B.kind){case 310:case 311:return e.factory.createTypeReferenceNode("any",e.emptyArray);case 314:return H(B);case 313:return S(B.type);case 312:return se(B);case 316:return p(B);case 315:return C(B);case 177:return E(B);default:var re=e.visitEachChild(B,S,e.nullTransformationContext);return e.setEmitFlags(re,1),re}}function H(B){return e.factory.createUnionTypeNode([e.visitNode(B.type,S),e.factory.createTypeReferenceNode("undefined",e.emptyArray)])}function se(B){return e.factory.createUnionTypeNode([e.visitNode(B.type,S),e.factory.createTypeReferenceNode("null",e.emptyArray)])}function p(B){return e.factory.createArrayTypeNode(e.visitNode(B.type,S))}function C(B){var re;return e.factory.createFunctionTypeNode(e.emptyArray,B.parameters.map(G),(re=B.type)!==null&&re!==void 0?re:e.factory.createKeywordTypeNode(130))}function G(B){var re=B.parent.parameters.indexOf(B),M=B.type.kind===316&&re===B.parent.parameters.length-1,x=B.name||(M?"rest":"arg"+re),ie=M?e.factory.createToken(25):B.dotDotDotToken;return e.factory.createParameterDeclaration(B.decorators,B.modifiers,ie,x,B.questionToken,e.visitNode(B.type,S),B.initializer)}function E(B){var re=B.typeName,M=B.typeArguments;if(e.isIdentifier(B.typeName)){if(e.isJSDocIndexSignature(B))return ue(B);var x=B.typeName.text;switch(B.typeName.text){case"String":case"Boolean":case"Object":case"Number":x=x.toLowerCase();break;case"array":case"date":case"promise":x=x[0].toUpperCase()+x.slice(1);break}re=e.factory.createIdentifier(x),(x==="Array"||x==="Promise")&&!B.typeArguments?M=e.factory.createNodeArray([e.factory.createTypeReferenceNode("any",e.emptyArray)]):M=e.visitNodes(B.typeArguments,S)}return e.factory.createTypeReferenceNode(re,M)}function ue(B){var re=e.factory.createParameterDeclaration(void 0,void 0,void 0,B.typeArguments[0].kind===146?"n":"s",void 0,e.factory.createTypeReferenceNode(B.typeArguments[0].kind===146?"number":"string",[]),void 0),M=e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,void 0,[re],B.typeArguments[1])]);return e.setEmitFlags(M,1),M}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="convertFunctionToEs6Class",W=[e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(g){var S=e.textChanges.ChangeTracker.with(g,function(H){return N(H,g.sourceFile,g.span.start,g.program.getTypeChecker(),g.preferences,g.program.getCompilerOptions())});return[O.createCodeFixAction(L,S,e.Diagnostics.Convert_function_to_an_ES2015_class,L,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[L],getAllCodeActions:function(g){return O.codeFixAll(g,W,function(S,H){return N(S,H.file,H.start,g.program.getTypeChecker(),g.preferences,g.program.getCompilerOptions())})}});function N(g,S,H,se,p,C){var G=se.getSymbolAtLocation(e.getTokenAtPosition(S,H));if(!G||!G.valueDeclaration||!(G.flags&19))return;var E=G.valueDeclaration;if(e.isFunctionDeclaration(E))g.replaceNode(S,E,x(E));else if(e.isVariableDeclaration(E)){var ue=M(E);if(!ue)return;var B=E.parent.parent;e.isVariableDeclarationList(E.parent)&&E.parent.declarations.length>1?(g.delete(S,E),g.insertNodeAfter(S,B,ue)):g.replaceNode(S,B,ue)}function re(ie){var _e=[];return ie.members&&ie.members.forEach(function(k,I){if(I==="constructor"&&k.valueDeclaration){g.delete(S,k.valueDeclaration.parent);return}var ne=Z(k,void 0);ne&&_e.push.apply(_e,ne)}),ie.exports&&ie.exports.forEach(function(k){if(k.name==="prototype"&&k.declarations){var I=k.declarations[0];if(k.declarations.length===1&&e.isPropertyAccessExpression(I)&&e.isBinaryExpression(I.parent)&&I.parent.operatorToken.kind===63&&e.isObjectLiteralExpression(I.parent.right)){var ne=I.parent.right,ee=Z(ne.symbol,void 0);ee&&_e.push.apply(_e,ee)}}else{var ee=Z(k,[e.factory.createToken(124)]);ee&&_e.push.apply(_e,ee)}}),_e;function Y(k,I){return e.isAccessExpression(k)?e.isPropertyAccessExpression(k)&&pe(k)?!0:e.isFunctionLike(I):e.every(k.properties,function(ne){return!!(e.isMethodDeclaration(ne)||e.isGetOrSetAccessorDeclaration(ne)||e.isPropertyAssignment(ne)&&e.isFunctionExpression(ne.initializer)&&!!ne.name||pe(ne))})}function Z(k,I){var ne=[];if(!(k.flags&8192)&&!(k.flags&4096))return ne;var ee=k.valueDeclaration,A=ee.parent,f=A.right;if(!Y(ee,f))return ne;var P=A.parent&&A.parent.kind===237?A.parent:A;if(g.delete(S,P),!f)return ne.push(e.factory.createPropertyDeclaration([],I,k.name,void 0,void 0,void 0)),ne;if(e.isAccessExpression(ee)&&(e.isFunctionExpression(f)||e.isArrowFunction(f))){var D=e.getQuotePreference(S,p),l=F(ee,C,D);return l?J(ne,f,l):ne}else{if(e.isObjectLiteralExpression(f))return e.flatMap(f.properties,function(U){return e.isMethodDeclaration(U)||e.isGetOrSetAccessorDeclaration(U)?ne.concat(U):e.isPropertyAssignment(U)&&e.isFunctionExpression(U.initializer)?J(ne,U.initializer,U.name):pe(U)?ne:[]});if(e.isSourceFileJS(S)||!e.isPropertyAccessExpression(ee))return ne;var _=e.factory.createPropertyDeclaration(void 0,I,ee.name,void 0,void 0,f);return e.copyLeadingComments(A.parent,_,S),ne.push(_),ne}function J(U,z,y){return e.isFunctionExpression(z)?w(U,z,y):j(U,z,y)}function w(U,z,y){var oe=e.concatenate(I,Q(z,131)),ve=e.factory.createMethodDeclaration(void 0,oe,void 0,y,void 0,void 0,z.parameters,void 0,z.body);return e.copyLeadingComments(A,ve,S),U.concat(ve)}function j(U,z,y){var oe=z.body,ve;oe.kind===234?ve=oe:ve=e.factory.createBlock([e.factory.createReturnStatement(oe)]);var ce=e.concatenate(I,Q(z,131)),m=e.factory.createMethodDeclaration(void 0,ce,void 0,y,void 0,void 0,z.parameters,void 0,ve);return e.copyLeadingComments(A,m,S),U.concat(m)}}}function M(ie){var _e=ie.initializer;if(!(!_e||!e.isFunctionExpression(_e)||!e.isIdentifier(ie.name))){var Y=re(ie.symbol);_e.body&&Y.unshift(e.factory.createConstructorDeclaration(void 0,void 0,_e.parameters,_e.body));var Z=Q(ie.parent.parent,93),k=e.factory.createClassDeclaration(void 0,Z,ie.name,void 0,void 0,Y);return k}}function x(ie){var _e=re(G);ie.body&&_e.unshift(e.factory.createConstructorDeclaration(void 0,void 0,ie.parameters,ie.body));var Y=Q(ie,93),Z=e.factory.createClassDeclaration(void 0,Y,ie.name,void 0,void 0,_e);return Z}}function Q(g,S){return e.filter(g.modifiers,function(H){return H.kind===S})}function pe(g){return g.name?!!(e.isIdentifier(g.name)&&g.name.text==="constructor"):!1}function F(g,S,H){if(e.isPropertyAccessExpression(g))return g.name;var se=g.argumentExpression;if(e.isNumericLiteral(se))return se;if(e.isStringLiteralLike(se))return e.isIdentifierText(se.text,e.getEmitScriptTarget(S))?e.factory.createIdentifier(se.text):e.isNoSubstitutionTemplateLiteral(se)?e.factory.createStringLiteral(se.text,H===0):se}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="convertToAsyncFunction",W=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],N=!0;O.registerCodeFix({errorCodes:W,getCodeActions:function(m){N=!0;var de=e.textChanges.ChangeTracker.with(m,function(ae){return pe(ae,m.sourceFile,m.span.start,m.program.getTypeChecker())});return N?[O.createCodeFixAction(L,de,e.Diagnostics.Convert_to_async_function,L,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[L],getAllCodeActions:function(m){return O.codeFixAll(m,W,function(de,ae){return pe(de,ae.file,ae.start,m.program.getTypeChecker())})}});var Q;(function(m){m[m.Identifier=0]="Identifier",m[m.BindingPattern=1]="BindingPattern"})(Q||(Q={}));function pe(m,de,ae,V){var le=e.getTokenAtPosition(de,ae),ke;if(e.isIdentifier(le)&&e.isVariableDeclaration(le.parent)&&le.parent.initializer&&e.isFunctionLikeDeclaration(le.parent.initializer)?ke=le.parent.initializer:ke=e.tryCast(e.getContainingFunction(e.getTokenAtPosition(de,ae)),e.canBeConvertedToAsync),!!ke){var Ue=new e.Map,He=e.isInJSFile(ke),ar=g(ke,V),gr=C(ke,V,Ue);if(!!e.returnsPromise(gr,V)){var me=gr.body&&e.isBlock(gr.body)?F(gr.body,V):e.emptyArray,Ge={checker:V,synthNamesMap:Ue,setOfExpressionsToReturn:ar,isInJSFile:He};if(!!me.length){var er=ke.modifiers?ke.modifiers.end:ke.decorators?e.skipTrivia(de.text,ke.decorators.end):ke.getStart(de),he=ke.modifiers?{prefix:" "}:{suffix:" "};m.insertModifierAt(de,er,131,he);for(var we=function(cr){if(e.forEachChild(cr,function ur(Ir){if(e.isCallExpression(Ir)){var dr=B(Ir,Ir,Ge,!1);if(E())return!0;m.replaceNodeWithNodes(de,cr,dr)}else if(!e.isFunctionLike(Ir)&&(e.forEachChild(Ir,ur),E()))return!0}),E())return{value:void 0}},ye=0,Se=me;ye<Se.length;ye++){var ge=Se[ye],Fe=we(ge);if(typeof Fe=="object")return Fe.value}}}}}function F(m,de){var ae=[];return e.forEachReturnStatement(m,function(V){e.isReturnStatementWithFixablePromiseHandler(V,de)&&ae.push(V)}),ae}function g(m,de){if(!m.body)return new e.Set;var ae=new e.Set;return e.forEachChild(m.body,function V(le){S(le,de,"then")?(ae.add(e.getNodeId(le)),e.forEach(le.arguments,V)):S(le,de,"catch")||S(le,de,"finally")?(ae.add(e.getNodeId(le)),e.forEachChild(le,V)):p(le,de)?ae.add(e.getNodeId(le)):e.forEachChild(le,V)}),ae}function S(m,de,ae){if(!e.isCallExpression(m))return!1;var V=e.hasPropertyAccessExpressionWithName(m,ae),le=V&&de.getTypeAtLocation(m);return!!(le&&de.getPromisedTypeOfPromise(le))}function H(m,de){return(e.getObjectFlags(m)&4)!==0&&m.target===de}function se(m,de,ae){if(m.expression.name.escapedText!=="finally"){var V=ae.getTypeAtLocation(m.expression.expression);if(H(V,ae.getPromiseType())||H(V,ae.getPromiseLikeType()))if(m.expression.name.escapedText==="then"){if(de===e.elementAt(m.arguments,0))return e.elementAt(m.typeArguments,0);if(de===e.elementAt(m.arguments,1))return e.elementAt(m.typeArguments,1)}else return e.elementAt(m.typeArguments,0)}}function p(m,de){return e.isExpression(m)?!!de.getPromisedTypeOfPromise(de.getTypeAtLocation(m)):!1}function C(m,de,ae){var V=new e.Map,le=e.createMultiMap();return e.forEachChild(m,function ke(Ue){if(!e.isIdentifier(Ue)){e.forEachChild(Ue,ke);return}var He=de.getSymbolAtLocation(Ue);if(He){var ar=de.getTypeAtLocation(Ue),gr=f(ar,de),me=e.getSymbolId(He).toString();if(gr&&!e.isParameter(Ue.parent)&&!e.isFunctionLikeDeclaration(Ue.parent)&&!ae.has(me)){var Ge=e.firstOrUndefined(gr.parameters),er=(Ge==null?void 0:Ge.valueDeclaration)&&e.isParameter(Ge.valueDeclaration)&&e.tryCast(Ge.valueDeclaration.name,e.isIdentifier)||e.factory.createUniqueName("result",16),he=G(er,le);ae.set(me,he),le.add(er.text,He)}else if(Ue.parent&&(e.isParameter(Ue.parent)||e.isVariableDeclaration(Ue.parent)||e.isBindingElement(Ue.parent))){var we=Ue.text,ye=le.get(we);if(ye&&ye.some(function(Fe){return Fe!==He})){var Se=G(Ue,le);V.set(me,Se.identifier),ae.set(me,Se),le.add(we,He)}else{var ge=e.getSynthesizedDeepClone(Ue);ae.set(me,J(ge)),le.add(we,He)}}}}),e.getSynthesizedDeepCloneWithReplacements(m,!0,function(ke){if(e.isBindingElement(ke)&&e.isIdentifier(ke.name)&&e.isObjectBindingPattern(ke.parent)){var Ue=de.getSymbolAtLocation(ke.name),He=Ue&&V.get(String(e.getSymbolId(Ue)));if(He&&He.text!==(ke.name||ke.propertyName).getText())return e.factory.createBindingElement(ke.dotDotDotToken,ke.propertyName||ke.name,He,ke.initializer)}else if(e.isIdentifier(ke)){var Ue=de.getSymbolAtLocation(ke),He=Ue&&V.get(String(e.getSymbolId(Ue)));if(He)return e.factory.createIdentifier(He.text)}})}function G(m,de){var ae=(de.get(m.text)||e.emptyArray).length,V=ae===0?m:e.factory.createIdentifier(m.text+"_"+ae);return J(V)}function E(){return!N}function ue(){return N=!1,e.emptyArray}function B(m,de,ae,V,le){if(S(de,ae.checker,"then"))return Z(de,e.elementAt(de.arguments,0),e.elementAt(de.arguments,1),ae,V,le);if(S(de,ae.checker,"catch"))return Y(de,e.elementAt(de.arguments,0),ae,V,le);if(S(de,ae.checker,"finally"))return _e(de,e.elementAt(de.arguments,0),ae,V,le);if(e.isPropertyAccessExpression(de))return B(m,de.expression,ae,V,le);var ke=ae.checker.getTypeAtLocation(de);return ke&&ae.checker.getPromisedTypeOfPromise(ke)?(e.Debug.assertNode(e.getOriginalNode(de).parent,e.isPropertyAccessExpression),k(m,de,ae,V,le)):ue()}function re(m,de){var ae=m.checker;if(de.kind===104)return!0;if(e.isIdentifier(de)&&!e.isGeneratedIdentifier(de)&&e.idText(de)==="undefined"){var V=ae.getSymbolAtLocation(de);return!V||ae.isUndefinedSymbol(V)}return!1}function M(m){var de=e.factory.createUniqueName(m.identifier.text,16);return J(de)}function x(m,de,ae){var V;return ae&&!ce(m,de)&&(oe(ae)?(V=ae,de.synthNamesMap.forEach(function(le,ke){if(le.identifier.text===ae.identifier.text){var Ue=M(ae);de.synthNamesMap.set(ke,Ue)}})):V=J(e.factory.createUniqueName("result",16),ae.types),y(V)),V}function ie(m,de,ae,V,le){var ke=[],Ue;if(V&&!ce(m,de)){Ue=e.getSynthesizedDeepClone(y(V));var He=V.types,ar=de.checker.getUnionType(He,2),gr=de.isInJSFile?void 0:de.checker.typeToTypeNode(ar,void 0,void 0),me=[e.factory.createVariableDeclaration(Ue,void 0,gr)],Ge=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList(me,1));ke.push(Ge)}return ke.push(ae),le&&Ue&&ve(le)&&ke.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(z(le)),void 0,void 0,Ue)],2))),ke}function _e(m,de,ae,V,le){if(!de||re(ae,de))return B(m,m.expression.expression,ae,V,le);var ke=x(m,ae,le),Ue=B(m,m.expression.expression,ae,!0,ke);if(E())return ue();var He=ee(de,V,void 0,void 0,m,ae);if(E())return ue();var ar=e.factory.createBlock(Ue),gr=e.factory.createBlock(He),me=e.factory.createTryStatement(ar,void 0,gr);return ie(m,ae,me,ke,le)}function Y(m,de,ae,V,le){if(!de||re(ae,de))return B(m,m.expression.expression,ae,V,le);var ke=l(de,ae),Ue=x(m,ae,le),He=B(m,m.expression.expression,ae,!0,Ue);if(E())return ue();var ar=ee(de,V,Ue,ke,m,ae);if(E())return ue();var gr=e.factory.createBlock(He),me=e.factory.createCatchClause(ke&&e.getSynthesizedDeepClone(U(ke)),e.factory.createBlock(ar)),Ge=e.factory.createTryStatement(gr,me,void 0);return ie(m,ae,Ge,Ue,le)}function Z(m,de,ae,V,le,ke){if(!de||re(V,de))return Y(m,ae,V,le,ke);if(ae&&!re(V,ae))return ue();var Ue=l(de,V),He=B(m.expression.expression,m.expression.expression,V,!0,Ue);if(E())return ue();var ar=ee(de,le,ke,Ue,m,V);return E()?ue():e.concatenate(He,ar)}function k(m,de,ae,V,le){if(ce(m,ae)){var ke=e.getSynthesizedDeepClone(de);return V&&(ke=e.factory.createAwaitExpression(ke)),[e.factory.createReturnStatement(ke)]}return I(le,e.factory.createAwaitExpression(de),void 0)}function I(m,de,ae){return!m||_(m)?[e.factory.createExpressionStatement(de)]:oe(m)&&m.hasBeenDeclared?[e.factory.createExpressionStatement(e.factory.createAssignment(e.getSynthesizedDeepClone(j(m)),de))]:[e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(U(m)),void 0,ae,de)],2))]}function ne(m,de){if(de&&m){var ae=e.factory.createUniqueName("result",16);return qe(qe([],I(J(ae),m,de),!0),[e.factory.createReturnStatement(ae)],!1)}return[e.factory.createReturnStatement(m)]}function ee(m,de,ae,V,le,ke){var Ue;switch(m.kind){case 104:break;case 205:case 79:if(!V)break;var He=e.factory.createCallExpression(e.getSynthesizedDeepClone(m),void 0,oe(V)?[j(V)]:[]);if(ce(le,ke))return ne(He,se(le,m,ke.checker));var ar=ke.checker.getTypeAtLocation(m),gr=ke.checker.getSignaturesOfType(ar,0);if(!gr.length)return ue();var me=gr[0].getReturnType(),Ge=I(ae,e.factory.createAwaitExpression(He),se(le,m,ke.checker));return ae&&ae.types.push(ke.checker.getAwaitedType(me)||me),Ge;case 212:case 213:{var er=m.body,he=(Ue=f(ke.checker.getTypeAtLocation(m),ke.checker))===null||Ue===void 0?void 0:Ue.getReturnType();if(e.isBlock(er)){for(var we=[],ye=!1,Se=0,ge=er.statements;Se<ge.length;Se++){var Fe=ge[Se];if(e.isReturnStatement(Fe))if(ye=!0,e.isReturnStatementWithFixablePromiseHandler(Fe,ke.checker))we=we.concat(D(ke,Fe,de,ae));else{var cr=he&&Fe.expression?A(ke.checker,he,Fe.expression):Fe.expression;we.push.apply(we,ne(cr,se(le,m,ke.checker)))}else{if(de&&e.forEachReturnStatement(Fe,e.returnTrue))return ue();we.push(Fe)}}return ce(le,ke)?we.map(function(dr){return e.getSynthesizedDeepClone(dr)}):P(we,ae,ke,ye)}else{var ur=e.isFixablePromiseHandler(er,ke.checker)?D(ke,e.factory.createReturnStatement(er),de,ae):e.emptyArray;if(ur.length>0)return ur;if(he){var cr=A(ke.checker,he,er);if(ce(le,ke))return ne(cr,se(le,m,ke.checker));var Ir=I(ae,cr,void 0);return ae&&ae.types.push(ke.checker.getAwaitedType(he)||he),Ir}else return ue()}}default:return ue()}return e.emptyArray}function A(m,de,ae){var V=e.getSynthesizedDeepClone(ae);return m.getPromisedTypeOfPromise(de)?e.factory.createAwaitExpression(V):V}function f(m,de){var ae=de.getSignaturesOfType(m,0);return e.lastOrUndefined(ae)}function P(m,de,ae,V){for(var le=[],ke=0,Ue=m;ke<Ue.length;ke++){var He=Ue[ke];if(e.isReturnStatement(He)){if(He.expression){var ar=p(He.expression,ae.checker)?e.factory.createAwaitExpression(He.expression):He.expression;de===void 0?le.push(e.factory.createExpressionStatement(ar)):oe(de)&&de.hasBeenDeclared?le.push(e.factory.createExpressionStatement(e.factory.createAssignment(j(de),ar))):le.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(U(de),void 0,void 0,ar)],2)))}}else le.push(e.getSynthesizedDeepClone(He))}return!V&&de!==void 0&&le.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(U(de),void 0,void 0,e.factory.createIdentifier("undefined"))],2))),le}function D(m,de,ae,V){var le=[];return e.forEachChild(de,function ke(Ue){if(e.isCallExpression(Ue)){var He=B(Ue,Ue,m,ae,V);if(le=le.concat(He),le.length>0)return}else e.isFunctionLike(Ue)||e.forEachChild(Ue,ke)}),le}function l(m,de){var ae=[],V;if(e.isFunctionLikeDeclaration(m)){if(m.parameters.length>0){var le=m.parameters[0].name;V=ke(le)}}else e.isIdentifier(m)?V=Ue(m):e.isPropertyAccessExpression(m)&&e.isIdentifier(m.name)&&(V=Ue(m.name));if(!V||"identifier"in V&&V.identifier.text==="undefined")return;return V;function ke(gr){if(e.isIdentifier(gr))return Ue(gr);var me=e.flatMap(gr.elements,function(Ge){return e.isOmittedExpression(Ge)?[]:[ke(Ge.name)]});return w(gr,me)}function Ue(gr){var me=ar(gr),Ge=He(me);if(!Ge)return J(gr,ae);var er=de.synthNamesMap.get(e.getSymbolId(Ge).toString());return er||J(gr,ae)}function He(gr){return gr.symbol?gr.symbol:de.checker.getSymbolAtLocation(gr)}function ar(gr){return gr.original?gr.original:gr}}function _(m){return m?oe(m)?!m.identifier.text:e.every(m.elements,_):!0}function J(m,de){return de===void 0&&(de=[]),{kind:0,identifier:m,types:de,hasBeenDeclared:!1,hasBeenReferenced:!1}}function w(m,de,ae){return de===void 0&&(de=e.emptyArray),ae===void 0&&(ae=[]),{kind:1,bindingPattern:m,elements:de,types:ae}}function j(m){return m.hasBeenReferenced=!0,m.identifier}function U(m){return oe(m)?y(m):z(m)}function z(m){for(var de=0,ae=m.elements;de<ae.length;de++){var V=ae[de];U(V)}return m.bindingPattern}function y(m){return m.hasBeenDeclared=!0,m.identifier}function oe(m){return m.kind===0}function ve(m){return m.kind===1}function ce(m,de){return!!m.original&&de.setOfExpressionsToReturn.has(e.getNodeId(m.original))}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){O.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions:function(D){var l=D.sourceFile,_=D.program,J=D.preferences,w=e.textChanges.ChangeTracker.with(D,function(j){var U=W(l,_.getTypeChecker(),j,e.getEmitScriptTarget(_.getCompilerOptions()),e.getQuotePreference(l,J));if(U)for(var z=0,y=_.getSourceFiles();z<y.length;z++){var oe=y[z];L(oe,l,j,e.getQuotePreference(oe,J))}});return[O.createCodeFixActionWithoutFixAll("convertToEsModule",w,e.Diagnostics.Convert_to_ES_module)]}});function L(D,l,_,J){for(var w=0,j=D.imports;w<j.length;w++){var U=j[w],z=e.getResolvedModule(D,U.text,e.getModeForUsageLocation(D,U));if(!(!z||z.resolvedFileName!==l.fileName)){var y=e.importFromModuleSpecifier(U);switch(y.kind){case 264:_.replaceNode(D,y,e.makeImport(y.name,void 0,U,J));break;case 207:e.isRequireCall(y,!1)&&_.replaceNode(D,y,e.factory.createPropertyAccessExpression(e.getSynthesizedDeepClone(y),"default"));break}}}}function W(D,l,_,J,w){var j={original:_e(D),additional:new e.Set},U=N(D,l,j);Q(D,U,_);for(var z=!1,y,oe=0,ve=e.filter(D.statements,e.isVariableStatement);oe<ve.length;oe++){var ce=ve[oe],m=g(D,ce,_,l,j,J,w);m&&e.copyEntries(m,y!=null?y:y=new e.Map)}for(var de=0,ae=e.filter(D.statements,function(le){return!e.isVariableStatement(le)});de<ae.length;de++){var ce=ae[de],V=F(D,ce,l,_,j,J,U,y,w);z=z||V}return y==null||y.forEach(function(le,ke){_.replaceNode(D,ke,le)}),z}function N(D,l,_){var J=new e.Map;return pe(D,function(w){var j=w.name,U=j.text,z=j.originalKeywordKind;!J.has(U)&&(z!==void 0&&e.isNonContextualKeyword(z)||l.resolveName(U,w,111551,!0))&&J.set(U,ie("_".concat(U),_))}),J}function Q(D,l,_){pe(D,function(J,w){if(!w){var j=J.name.text;_.replaceNode(D,J,e.factory.createIdentifier(l.get(j)||j))}})}function pe(D,l){D.forEachChild(function _(J){if(e.isPropertyAccessExpression(J)&&e.isExportsOrModuleExportsOrAlias(D,J.expression)&&e.isIdentifier(J.name)){var w=J.parent;l(J,e.isBinaryExpression(w)&&w.left===J&&w.operatorToken.kind===63)}J.forEachChild(_)})}function F(D,l,_,J,w,j,U,z,y){switch(l.kind){case 236:return g(D,l,J,_,w,j,y),!1;case 237:{var oe=l.expression;switch(oe.kind){case 207:return e.isRequireCall(oe,!0)&&J.replaceNode(D,l,e.makeImport(void 0,void 0,oe.arguments[0],y)),!1;case 220:{var ve=oe.operatorToken;return ve.kind===63&&H(D,_,oe,J,U,z)}}}default:return!1}}function g(D,l,_,J,w,j,U){var z=l.declarationList,y=!1,oe=e.map(z.declarations,function(ce){var m=ce.name,de=ce.initializer;if(de){if(e.isExportsOrModuleExportsOrAlias(D,de))return y=!0,P([]);if(e.isRequireCall(de,!0))return y=!0,M(m,de.arguments[0],J,w,j,U);if(e.isPropertyAccessExpression(de)&&e.isRequireCall(de.expression,!0))return y=!0,S(m,de.name.text,de.expression.arguments[0],w,U)}return P([e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([ce],z.flags))])});if(y){_.replaceNodeWithNodes(D,l,e.flatMap(oe,function(ce){return ce.newImports}));var ve;return e.forEach(oe,function(ce){ce.useSitesToUnqualify&&e.copyEntries(ce.useSitesToUnqualify,ve!=null?ve:ve=new e.Map)}),ve}}function S(D,l,_,J,w){switch(D.kind){case 200:case 201:{var j=ie(l,J);return P([ne(j,l,_,w),A(void 0,D,e.factory.createIdentifier(j))])}case 79:return P([ne(D.text,l,_,w)]);default:return e.Debug.assertNever(D,"Convert to ES module got invalid syntax form ".concat(D.kind))}}function H(D,l,_,J,w,j){var U=_.left,z=_.right;if(!e.isPropertyAccessExpression(U))return!1;if(e.isExportsOrModuleExportsOrAlias(D,U))if(e.isExportsOrModuleExportsOrAlias(D,z))J.delete(D,_.parent);else{var y=e.isObjectLiteralExpression(z)?se(z,j):e.isRequireCall(z,!0)?C(z.arguments[0],l):void 0;return y?(J.replaceNodeWithNodes(D,_.parent,y[0]),y[1]):(J.replaceRangeWithText(D,e.createRange(U.getStart(D),z.pos),"export default"),!0)}else e.isExportsOrModuleExportsOrAlias(D,U.expression)&&p(D,_,J,w);return!1}function se(D,l){var _=e.mapAllOrFail(D.properties,function(J){switch(J.kind){case 171:case 172:case 295:case 296:return;case 294:return e.isIdentifier(J.name)?B(J.name.text,J.initializer,l):void 0;case 168:return e.isIdentifier(J.name)?k(J.name.text,[e.factory.createToken(93)],J,l):void 0;default:e.Debug.assertNever(J,"Convert to ES6 got invalid prop kind ".concat(J.kind))}});return _&&[_,!1]}function p(D,l,_,J){var w=l.left.name.text,j=J.get(w);if(j!==void 0){var U=[A(void 0,j,l.right),f([e.factory.createExportSpecifier(!1,j,w)])];_.replaceNodeWithNodes(D,l.parent,U)}else ue(l,D,_)}function C(D,l){var _=D.text,J=l.getSymbolAtLocation(D),w=J?J.exports:e.emptyMap;return w.has("export=")?[[E(_)],!0]:w.has("default")?w.size>1?[[G(_),E(_)],!0]:[[E(_)],!0]:[[G(_)],!1]}function G(D){return f(void 0,D)}function E(D){return f([e.factory.createExportSpecifier(!1,void 0,"default")],D)}function ue(D,l,_){var J=D.left,w=D.right,j=D.parent,U=J.name.text;if((e.isFunctionExpression(w)||e.isArrowFunction(w)||e.isClassExpression(w))&&(!w.name||w.name.text===U)){_.replaceRange(l,{pos:J.getStart(l),end:w.getStart(l)},e.factory.createToken(93),{suffix:" "}),w.name||_.insertName(l,w,U);var z=e.findChildOfKind(j,26,l);z&&_.delete(l,z)}else _.replaceNodeRangeWithNodes(l,J.expression,e.findChildOfKind(J,24,l),[e.factory.createToken(93),e.factory.createToken(85)],{joiner:" ",suffix:" "})}function B(D,l,_){var J=[e.factory.createToken(93)];switch(l.kind){case 212:{var w=l.name;if(w&&w.text!==D)return j()}case 213:return k(D,J,l,_);case 225:return I(D,J,l,_);default:return j()}function j(){return A(J,e.factory.createIdentifier(D),re(l,_))}}function re(D,l){if(!l||!e.some(e.arrayFrom(l.keys()),function(J){return e.rangeContainsRange(D,J)}))return D;return e.isArray(D)?e.getSynthesizedDeepClonesWithReplacements(D,!0,_):e.getSynthesizedDeepCloneWithReplacements(D,!0,_);function _(J){if(J.kind===205){var w=l.get(J);return l.delete(J),w}}}function M(D,l,_,J,w,j){switch(D.kind){case 200:{var U=e.mapAllOrFail(D.elements,function(y){return y.dotDotDotToken||y.initializer||y.propertyName&&!e.isIdentifier(y.propertyName)||!e.isIdentifier(y.name)?void 0:ee(y.propertyName&&y.propertyName.text,y.name.text)});if(U)return P([e.makeImport(void 0,U,l,j)])}case 201:{var z=ie(O.moduleSpecifierToValidIdentifier(l.text,w),J);return P([e.makeImport(e.factory.createIdentifier(z),void 0,l,j),A(void 0,e.getSynthesizedDeepClone(D),e.factory.createIdentifier(z))])}case 79:return x(D,l,_,J,j);default:return e.Debug.assertNever(D,"Convert to ES module got invalid name kind ".concat(D.kind))}}function x(D,l,_,J,w){for(var j=_.getSymbolAtLocation(D),U=new e.Map,z=!1,y,oe=0,ve=J.original.get(D.text);oe<ve.length;oe++){var ce=ve[oe];if(!(_.getSymbolAtLocation(ce)!==j||ce===D)){var m=ce.parent;if(e.isPropertyAccessExpression(m)){var de=m.name.text;if(de==="default"){z=!0;var ae=ce.getText();(y!=null?y:y=new e.Map).set(m,e.factory.createIdentifier(ae))}else{e.Debug.assert(m.expression===ce,"Didn't expect expression === use");var V=U.get(de);V===void 0&&(V=ie(de,J),U.set(de,V)),(y!=null?y:y=new e.Map).set(m,e.factory.createIdentifier(V))}}else z=!0}}var le=U.size===0?void 0:e.arrayFrom(e.mapIterator(U.entries(),function(ke){var Ue=ke[0],He=ke[1];return e.factory.createImportSpecifier(!1,Ue===He?void 0:e.factory.createIdentifier(Ue),e.factory.createIdentifier(He))}));return le||(z=!0),P([e.makeImport(z?e.getSynthesizedDeepClone(D):void 0,le,l,w)],y)}function ie(D,l){for(;l.original.has(D)||l.additional.has(D);)D="_".concat(D);return l.additional.add(D),D}function _e(D){var l=e.createMultiMap();return Y(D,function(_){return l.add(_.text,_)}),l}function Y(D,l){e.isIdentifier(D)&&Z(D)&&l(D),D.forEachChild(function(_){return Y(_,l)})}function Z(D){var l=D.parent;switch(l.kind){case 205:return l.name!==D;case 202:return l.propertyName!==D;case 269:return l.propertyName!==D;default:return!0}}function k(D,l,_,J){return e.factory.createFunctionDeclaration(e.getSynthesizedDeepClones(_.decorators),e.concatenate(l,e.getSynthesizedDeepClones(_.modifiers)),e.getSynthesizedDeepClone(_.asteriskToken),D,e.getSynthesizedDeepClones(_.typeParameters),e.getSynthesizedDeepClones(_.parameters),e.getSynthesizedDeepClone(_.type),e.factory.converters.convertToFunctionBlock(re(_.body,J)))}function I(D,l,_,J){return e.factory.createClassDeclaration(e.getSynthesizedDeepClones(_.decorators),e.concatenate(l,e.getSynthesizedDeepClones(_.modifiers)),D,e.getSynthesizedDeepClones(_.typeParameters),e.getSynthesizedDeepClones(_.heritageClauses),re(_.members,J))}function ne(D,l,_,J){return l==="default"?e.makeImport(e.factory.createIdentifier(D),void 0,_,J):e.makeImport(void 0,[ee(l,D)],_,J)}function ee(D,l){return e.factory.createImportSpecifier(!1,D!==void 0&&D!==l?e.factory.createIdentifier(D):void 0,e.factory.createIdentifier(l))}function A(D,l,_){return e.factory.createVariableStatement(D,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(l,void 0,void 0,_)],2))}function f(D,l){return e.factory.createExportDeclaration(void 0,void 0,!1,D&&e.factory.createNamedExports(D),l===void 0?void 0:e.factory.createStringLiteral(l))}function P(D,l){return{newImports:D,useSitesToUnqualify:l}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="correctQualifiedNameToIndexedAccessType",W=[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];O.registerCodeFix({errorCodes:W,getCodeActions:function(pe){var F=N(pe.sourceFile,pe.span.start);if(!!F){var g=e.textChanges.ChangeTracker.with(pe,function(H){return Q(H,pe.sourceFile,F)}),S="".concat(F.left.text,'["').concat(F.right.text,'"]');return[O.createCodeFixAction(L,g,[e.Diagnostics.Rewrite_as_the_indexed_access_type_0,S],L,e.Diagnostics.Rewrite_all_as_indexed_access_types)]}},fixIds:[L],getAllCodeActions:function(pe){return O.codeFixAll(pe,W,function(F,g){var S=N(g.file,g.start);S&&Q(F,g.file,S)})}});function N(pe,F){var g=e.findAncestor(e.getTokenAtPosition(pe,F),e.isQualifiedName);return e.Debug.assert(!!g,"Expected position to be owned by a qualified name."),e.isIdentifier(g.left)?g:void 0}function Q(pe,F,g){var S=g.right.text,H=e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(g.left,void 0),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(S)));pe.replaceNode(F,g,H)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L=[e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type.code],W="convertToTypeOnlyExport";O.registerCodeFix({errorCodes:L,getCodeActions:function(g){var S=e.textChanges.ChangeTracker.with(g,function(H){return Q(H,N(g.span,g.sourceFile),g)});if(S.length)return[O.createCodeFixAction(W,S,e.Diagnostics.Convert_to_type_only_export,W,e.Diagnostics.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[W],getAllCodeActions:function(g){var S=new e.Map;return O.codeFixAll(g,L,function(H,se){var p=N(se,g.sourceFile);p&&e.addToSeen(S,e.getNodeId(p.parent.parent))&&Q(H,p,g)})}});function N(F,g){return e.tryCast(e.getTokenAtPosition(g,F.start).parent,e.isExportSpecifier)}function Q(F,g,S){if(!!g){var H=g.parent,se=H.parent,p=pe(g,S);if(p.length===H.elements.length)F.insertModifierBefore(S.sourceFile,151,H);else{var C=e.factory.updateExportDeclaration(se,se.decorators,se.modifiers,!1,e.factory.updateNamedExports(H,e.filter(H.elements,function(E){return!e.contains(p,E)})),se.moduleSpecifier,void 0),G=e.factory.createExportDeclaration(void 0,void 0,!0,e.factory.createNamedExports(p),se.moduleSpecifier,void 0);F.replaceNode(S.sourceFile,se,C,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude}),F.insertNodeAfter(S.sourceFile,se,G)}}}function pe(F,g){var S=F.parent;if(S.elements.length===1)return S.elements;var H=e.getDiagnosticsWithinSpan(e.createTextSpanFromNode(S),g.program.getSemanticDiagnostics(g.sourceFile,g.cancellationToken));return e.filter(S.elements,function(se){var p;return se===F||((p=e.findDiagnosticForNode(se,H))===null||p===void 0?void 0:p.code)===L[0]})}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L=[e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code],W="convertToTypeOnlyImport";O.registerCodeFix({errorCodes:L,getCodeActions:function(F){var g=e.textChanges.ChangeTracker.with(F,function(S){var H=N(F.span,F.sourceFile);Q(S,H,F)});if(g.length)return[O.createCodeFixAction(W,g,e.Diagnostics.Convert_to_type_only_import,W,e.Diagnostics.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]},fixIds:[W],getAllCodeActions:function(F){return O.codeFixAll(F,L,function(g,S){var H=N(S,F.sourceFile);Q(g,H,F)})}});function N(pe,F){return e.tryCast(e.getTokenAtPosition(F,pe.start).parent,e.isImportDeclaration)}function Q(pe,F,g){if(!!(F!=null&&F.importClause)){var S=F.importClause;pe.insertText(g.sourceFile,F.getStart()+6," type"),S.name&&S.namedBindings&&(pe.deleteNodeRangeExcludingEnd(g.sourceFile,S.name,F.importClause.namedBindings),pe.insertNodeBefore(g.sourceFile,F,e.factory.updateImportDeclaration(F,void 0,void 0,e.factory.createImportClause(!0,S.name,void 0),F.moduleSpecifier,void 0)))}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="convertLiteralTypeToMappedType",W=[e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(F){var g=F.sourceFile,S=F.span,H=N(g,S.start);if(!!H){var se=H.name,p=H.constraint,C=e.textChanges.ChangeTracker.with(F,function(G){return Q(G,g,H)});return[O.createCodeFixAction(L,C,[e.Diagnostics.Convert_0_to_1_in_0,p,se],L,e.Diagnostics.Convert_all_type_literals_to_mapped_type)]}},fixIds:[L],getAllCodeActions:function(pe){return O.codeFixAll(pe,W,function(F,g){var S=N(g.file,g.start);S&&Q(F,g.file,S)})}});function N(pe,F){var g=e.getTokenAtPosition(pe,F);if(e.isIdentifier(g)){var S=e.cast(g.parent.parent,e.isPropertySignature),H=g.getText(pe);return{container:e.cast(S.parent,e.isTypeLiteralNode),typeNode:S.type,constraint:H,name:H==="K"?"P":"K"}}}function Q(pe,F,g){var S=g.container,H=g.typeNode,se=g.constraint,p=g.name;pe.replaceNode(F,S,e.factory.createMappedTypeNode(void 0,e.factory.createTypeParameterDeclaration(p,e.factory.createTypeReferenceNode(se)),void 0,void 0,H,void 0))}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L=[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],W="fixClassIncorrectlyImplementsInterface";O.registerCodeFix({errorCodes:L,getCodeActions:function(g){var S=g.sourceFile,H=g.span,se=N(S,H.start);return e.mapDefined(e.getEffectiveImplementsTypeNodes(se),function(p){var C=e.textChanges.ChangeTracker.with(g,function(G){return pe(g,p,S,se,G,g.preferences)});return C.length===0?void 0:O.createCodeFixAction(W,C,[e.Diagnostics.Implement_interface_0,p.getText(S)],W,e.Diagnostics.Implement_all_unimplemented_interfaces)})},fixIds:[W],getAllCodeActions:function(g){var S=new e.Map;return O.codeFixAll(g,L,function(H,se){var p=N(se.file,se.start);if(e.addToSeen(S,e.getNodeId(p)))for(var C=0,G=e.getEffectiveImplementsTypeNodes(p);C<G.length;C++){var E=G[C];pe(g,E,se.file,p,H,g.preferences)}})}});function N(g,S){return e.Debug.checkDefined(e.getContainingClass(e.getTokenAtPosition(g,S)),"There should be a containing class")}function Q(g){return!g.valueDeclaration||!(e.getEffectiveModifierFlags(g.valueDeclaration)&8)}function pe(g,S,H,se,p,C){var G=g.program.getTypeChecker(),E=F(se,G),ue=G.getTypeAtLocation(S),B=G.getPropertiesOfType(ue),re=B.filter(e.and(Q,function(Z){return!E.has(Z.escapedName)})),M=G.getTypeAtLocation(se),x=e.find(se.members,function(Z){return e.isConstructorDeclaration(Z)});M.getNumberIndexType()||_e(ue,1),M.getStringIndexType()||_e(ue,0);var ie=O.createImportAdder(H,g.program,C,g.host);O.createMissingMemberNodes(se,re,H,g,C,ie,function(Z){return Y(H,se,Z)}),ie.writeFixes(p);function _e(Z,k){var I=G.getIndexInfoOfType(Z,k);I&&Y(H,se,G.indexInfoToIndexSignatureDeclaration(I,se,void 0,O.getNoopSymbolTrackerWithResolver(g)))}function Y(Z,k,I){x?p.insertNodeAfter(Z,x,I):p.insertNodeAtClassStart(Z,k,I)}}function F(g,S){var H=e.getEffectiveBaseTypeNode(g);if(!H)return e.createSymbolTable();var se=S.getTypeAtLocation(H),p=S.getPropertiesOfType(se);return e.createSymbolTable(p.filter(Q))}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){O.importFixName="import";var L="fixMissingImport",W=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics.Cannot_find_namespace_0.code,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(ye){var Se=ye.errorCode,ge=ye.preferences,Fe=ye.sourceFile,cr=ye.span,ur=ye.program,Ir=I(ye,Se,cr.start,!0);if(!!Ir){var dr=Ir.fixes,Br=Ir.symbolName,Tr=Ir.errorIdentifierText,n=e.getQuotePreference(Fe,ge);return dr.map(function(Er){return m(ye,Fe,Br,Er,Br!==Tr,n,ur.getCompilerOptions())})}},fixIds:[L],getAllCodeActions:function(ye){var Se=ye.sourceFile,ge=ye.program,Fe=ye.preferences,cr=ye.host,ur=Q(Se,ge,!0,Fe,cr);return O.eachDiagnostic(ye,W,function(Ir){return ur.addImportFromDiagnostic(Ir,ye)}),O.createCombinedCodeActions(e.textChanges.ChangeTracker.with(ye,ur.writeFixes))}});function N(ye,Se,ge,Fe){return Q(ye,Se,!1,ge,Fe)}O.createImportAdder=N;function Q(ye,Se,ge,Fe,cr){var ur=Se.getCompilerOptions(),Ir=[],dr=[],Br=new e.Map,Tr=new e.Map;return{addImportFromDiagnostic:n,addImportFromExportedSymbol:Er,writeFixes:Pr,hasFixes:Ce};function n(Le,Xe){var Cr=I(Xe,Le.code,Le.start,ge);!Cr||!Cr.fixes.length||br(Cr)}function Er(Le,Xe){var Cr=e.Debug.checkDefined(Le.parent),Lr=e.getNameForExportedSymbol(Le,e.getEmitScriptTarget(ur)),Jr=Se.getTypeChecker(),Rr=Jr.getMergedSymbol(e.skipAlias(Le,Jr)),ci=C(ye,Rr,Cr,Lr,!1,cr,Se,Fe,ge),be=_e(ye,Se),or=H(ye,ci,Cr,Lr,Se,void 0,!!Xe,be,cr,Fe);or&&br({fixes:[or],symbolName:Lr,errorIdentifierText:void 0})}function br(Le){var Xe,Cr,Lr=Le.fixes,Jr=Le.symbolName,Rr=e.first(Lr);switch(Rr.kind){case 0:Ir.push(Rr);break;case 1:dr.push(Rr);break;case 2:{var ci=Rr.importClauseOrBindingPattern,be=Rr.importKind,or=Rr.addAsTypeOnly,Kr=String(e.getNodeId(ci)),ei=Br.get(Kr);if(ei||Br.set(Kr,ei={importClauseOrBindingPattern:ci,defaultImport:void 0,namedImports:new e.Map}),be===0){var li=ei==null?void 0:ei.namedImports.get(Jr);ei.namedImports.set(Jr,ft(li,or))}else e.Debug.assert(ei.defaultImport===void 0||ei.defaultImport.name===Jr,"(Add to Existing) Default import should be missing or match symbolName"),ei.defaultImport={name:Jr,addAsTypeOnly:ft((Xe=ei.defaultImport)===null||Xe===void 0?void 0:Xe.addAsTypeOnly,or)};break}case 3:{var Si=Rr.moduleSpecifier,be=Rr.importKind,qi=Rr.useRequire,or=Rr.addAsTypeOnly,ei=bt(Si,be,qi,or);switch(e.Debug.assert(ei.useRequire===qi,"(Add new) Tried to add an `import` and a `require` for the same module"),be){case 1:e.Debug.assert(ei.defaultImport===void 0||ei.defaultImport.name===Jr,"(Add new) Default import should be missing or match symbolName"),ei.defaultImport={name:Jr,addAsTypeOnly:ft((Cr=ei.defaultImport)===null||Cr===void 0?void 0:Cr.addAsTypeOnly,or)};break;case 0:var li=(ei.namedImports||(ei.namedImports=new e.Map)).get(Jr);ei.namedImports.set(Jr,ft(li,or));break;case 3:case 2:e.Debug.assert(ei.namespaceLikeImport===void 0||ei.namespaceLikeImport.name===Jr,"Namespacelike import shoudl be missing or match symbolName"),ei.namespaceLikeImport={importKind:be,name:Jr,addAsTypeOnly:or};break}break}case 4:break;default:e.Debug.assertNever(Rr,"fix wasn't never - got kind ".concat(Rr.kind))}function ft(sr,Ji){return Math.max(sr!=null?sr:0,Ji)}function bt(sr,Ji,di,X){var Ye=aa(sr,!0),Be=aa(sr,!1),Qe=Tr.get(Ye),_r=Tr.get(Be),hr={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:di};return Ji===1&&X===2?Qe||(Tr.set(Ye,hr),hr):X===1&&(Qe||_r)?Qe||_r:_r||(Tr.set(Be,hr),hr)}function aa(sr,Ji){return"".concat(Ji?1:0,"|").concat(sr)}}function Pr(Le){for(var Xe=e.getQuotePreference(ye,Fe),Cr=0,Lr=Ir;Cr<Lr.length;Cr++){var Jr=Lr[Cr];ke(Le,ye,Jr)}for(var Rr=0,ci=dr;Rr<ci.length;Rr++){var Jr=ci[Rr];Ue(Le,ye,Jr,Xe)}Br.forEach(function(or){var Kr=or.importClauseOrBindingPattern,ei=or.defaultImport,li=or.namedImports;le(Le,ye,Kr,ei,e.arrayFrom(li.entries(),function(Si){var qi=Si[0],ft=Si[1];return{addAsTypeOnly:ft,name:qi}}),ur)});var be;Tr.forEach(function(or,Kr){var ei=or.useRequire,li=or.defaultImport,Si=or.namedImports,qi=or.namespaceLikeImport,ft=Kr.slice(2),bt=ei?me:gr,aa=bt(ft,Xe,li,Si&&e.arrayFrom(Si.entries(),function(sr){var Ji=sr[0],di=sr[1];return{addAsTypeOnly:di,name:Ji}}),qi);be=e.combine(be,aa)}),be&&e.insertImports(Le,ye,be,!0)}function Ce(){return Ir.length>0||dr.length>0||Br.size>0||Tr.size>0}}var pe;(function(ye){ye[ye.UseNamespace=0]="UseNamespace",ye[ye.JsdocTypeImport=1]="JsdocTypeImport",ye[ye.AddToExisting=2]="AddToExisting",ye[ye.AddNew=3]="AddNew",ye[ye.PromoteTypeOnly=4]="PromoteTypeOnly"})(pe||(pe={}));var F;(function(ye){ye[ye.Allowed=1]="Allowed",ye[ye.Required=2]="Required",ye[ye.NotAllowed=4]="NotAllowed"})(F||(F={}));function g(ye,Se,ge,Fe,cr,ur,Ir,dr,Br,Tr){var n=Ir.getCompilerOptions(),Er=e.pathIsBareSpecifier(e.stripQuotes(Se.name))?[p(ye,Se,Ir,ur)]:C(ge,ye,Se,Fe,cr,ur,Ir,Tr,!0),br=_e(ge,Ir),Pr=e.isValidTypeOnlyAliasUseSite(e.getTokenAtPosition(ge,Br)),Ce=e.Debug.checkDefined(H(ge,Er,Se,Fe,Ir,Br,Pr,br,ur,Tr));return{moduleSpecifier:Ce.moduleSpecifier,codeAction:se(m({host:ur,formatContext:dr,preferences:Tr},ge,Fe,Ce,!1,e.getQuotePreference(ge,Tr),n))}}O.getImportCompletionAction=g;function S(ye,Se,ge,Fe,cr,ur){var Ir=ge.getCompilerOptions(),dr=y(ye,ge.getTypeChecker(),Se,Ir),Br=U(ye,Se,dr,ge),Tr=dr!==Se.text;return Br&&se(m({host:Fe,formatContext:cr,preferences:ur},ye,dr,Br,Tr,1,Ir))}O.getPromoteTypeOnlyCompletionAction=S;function H(ye,Se,ge,Fe,cr,ur,Ir,dr,Br,Tr){e.Debug.assert(Se.some(function(Er){return Er.moduleSymbol===ge||Er.symbol.parent===ge}),"Some exportInfo should match the specified moduleSymbol");var n=e.createPackageJsonImportFilter(ye,Tr,Br);return ee(E(Se,Fe,ur,Ir,dr,cr,ye,Br,Tr),ye,cr,n,Br)}function se(ye){var Se=ye.description,ge=ye.changes,Fe=ye.commands;return{description:Se,changes:ge,commands:Fe}}function p(ye,Se,ge,Fe){var cr,ur,Ir=ge.getCompilerOptions(),dr=Tr(ge.getTypeChecker(),!1);if(dr)return dr;var Br=(ur=(cr=Fe.getPackageJsonAutoImportProvider)===null||cr===void 0?void 0:cr.call(Fe))===null||ur===void 0?void 0:ur.getTypeChecker();return e.Debug.checkDefined(Br&&Tr(Br,!0),"Could not find symbol in specified module for code actions");function Tr(n,Er){var br=e.getDefaultLikeExportInfo(Se,n,Ir);if(br&&e.skipAlias(br.symbol,n)===ye)return{symbol:br.symbol,moduleSymbol:Se,moduleFileName:void 0,exportKind:br.exportKind,targetFlags:e.skipAlias(ye,n).flags,isFromPackageJson:Er};var Pr=n.tryGetMemberInModuleExportsAndProperties(ye.name,Se);if(Pr&&e.skipAlias(Pr,n)===ye)return{symbol:Pr,moduleSymbol:Se,moduleFileName:void 0,exportKind:0,targetFlags:e.skipAlias(ye,n).flags,isFromPackageJson:Er}}}function C(ye,Se,ge,Fe,cr,ur,Ir,dr,Br){var Tr=[],n=Ir.getCompilerOptions(),Er=e.memoizeOne(function(Pr){return e.createModuleSpecifierResolutionHost(Pr?ur.getPackageJsonAutoImportProvider():Ir,ur)});return e.forEachExternalModuleToImportFrom(Ir,ur,Br,function(Pr,Ce,Le,Xe){var Cr=Le.getTypeChecker();if(!(Ce&&Pr!==ge&&e.startsWith(ye.fileName,e.getDirectoryPath(Ce.fileName)))){var Lr=e.getDefaultLikeExportInfo(Pr,Cr,n);Lr&&(Lr.name===Fe||he(Pr,e.getEmitScriptTarget(n),cr)===Fe)&&e.skipAlias(Lr.symbol,Cr)===Se&&br(Le,Ce,Xe)&&Tr.push({symbol:Lr.symbol,moduleSymbol:Pr,moduleFileName:Ce==null?void 0:Ce.fileName,exportKind:Lr.exportKind,targetFlags:e.skipAlias(Lr.symbol,Cr).flags,isFromPackageJson:Xe});for(var Jr=0,Rr=Cr.getExportsAndPropertiesOfModule(Pr);Jr<Rr.length;Jr++){var ci=Rr[Jr];ci.name===Fe&&Cr.getMergedSymbol(e.skipAlias(ci,Cr))===Se&&br(Le,Ce,Xe)&&Tr.push({symbol:ci,moduleSymbol:Pr,moduleFileName:Ce==null?void 0:Ce.fileName,exportKind:0,targetFlags:e.skipAlias(ci,Cr).flags,isFromPackageJson:Xe})}}}),Tr;function br(Pr,Ce,Le){var Xe;return!Ce||e.isImportableFile(Pr,ye,Ce,dr,void 0,Er(Le),(Xe=ur.getModuleSpecifierCache)===null||Xe===void 0?void 0:Xe.call(ur))}}function G(ye,Se,ge,Fe,cr,ur,Ir){var dr=Y(ge,Se,void 0,!1,!1,ye,Fe,cr,Ir),Br=dr.fixes,Tr=dr.computedWithoutCacheCount,n=ee(Br,Se,ge,ur||e.createPackageJsonImportFilter(Se,cr,Fe),Fe);return n&&Ve(Ve({},n),{computedWithoutCacheCount:Tr})}O.getModuleSpecifierForBestExportInfo=G;function E(ye,Se,ge,Fe,cr,ur,Ir,dr,Br){var Tr=ur.getTypeChecker(),n=e.flatMap(ye,function(Ce){return ie(Ce,Tr,Ir,ur.getCompilerOptions())}),Er=ge===void 0?void 0:ue(n,Se,ge,Tr),br=x(n,Fe,Tr,ur.getCompilerOptions()),Pr=br?[br]:Z(ye,n,ur,Ir,ge,Fe,cr,dr,Br);return qe(qe([],Er?[Er]:e.emptyArray,!0),Pr,!0)}function ue(ye,Se,ge,Fe){return e.firstDefined(ye,function(cr){var ur=cr.declaration,Ir=re(ur),dr=e.tryGetModuleSpecifierFromDeclaration(ur);if(Ir&&dr){var Br=B(ur,Fe);if(Br&&Br.exports.has(e.escapeLeadingUnderscores(Se)))return{kind:0,namespacePrefix:Ir,position:ge,moduleSpecifier:dr}}})}function B(ye,Se){var ge;switch(ye.kind){case 253:return Se.resolveExternalModuleName(ye.initializer.arguments[0]);case 264:return Se.getAliasedSymbol(ye.symbol);case 265:var Fe=e.tryCast((ge=ye.importClause)===null||ge===void 0?void 0:ge.namedBindings,e.isNamespaceImport);return Fe&&Se.getAliasedSymbol(Fe.symbol);default:return e.Debug.assertNever(ye)}}function re(ye){var Se,ge,Fe;switch(ye.kind){case 253:return(Se=e.tryCast(ye.name,e.isIdentifier))===null||Se===void 0?void 0:Se.text;case 264:return ye.name.text;case 265:return(Fe=e.tryCast((ge=ye.importClause)===null||ge===void 0?void 0:ge.namedBindings,e.isNamespaceImport))===null||Fe===void 0?void 0:Fe.name.text;default:return e.Debug.assertNever(ye)}}function M(ye,Se,ge,Fe,cr,ur){return ye?Se&&ur.importsNotUsedAsValues===2||ur.isolatedModules&&ur.preserveValueImports&&(!(Fe&111551)||!!cr.getTypeOnlyAliasDeclaration(ge))?2:1:4}function x(ye,Se,ge,Fe){return e.firstDefined(ye,function(cr){var ur=cr.declaration,Ir=cr.importKind,dr=cr.symbol,Br=cr.targetFlags;if(!(Ir===3||Ir===2||ur.kind===264)){if(ur.kind===253)return(Ir===0||Ir===1)&&ur.name.kind===200?{kind:2,importClauseOrBindingPattern:ur.name,importKind:Ir,moduleSpecifier:ur.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;var Tr=ur.importClause;if(!(!Tr||!e.isStringLiteralLike(ur.moduleSpecifier))){var n=Tr.name,Er=Tr.namedBindings;if(!(Tr.isTypeOnly&&!(Ir===0&&Er))){var br=M(Se,!1,dr,Br,ge,Fe);if(!(Ir===1&&(n||br===2&&Er))&&!(Ir===0&&(Er==null?void 0:Er.kind)===267))return{kind:2,importClauseOrBindingPattern:Tr,importKind:Ir,moduleSpecifier:ur.moduleSpecifier.text,addAsTypeOnly:br}}}}})}function ie(ye,Se,ge,Fe){var cr=ye.moduleSymbol,ur=ye.exportKind,Ir=ye.targetFlags,dr=ye.symbol;if(!(Ir&111551)&&e.isSourceFileJS(ge))return e.emptyArray;var Br=J(ge,ur,Fe);return e.mapDefined(ge.imports,function(Tr){var n=e.importFromModuleSpecifier(Tr);if(e.isVariableDeclarationInitializedToRequire(n.parent))return Se.resolveExternalModuleName(Tr)===cr?{declaration:n.parent,importKind:Br,symbol:dr,targetFlags:Ir}:void 0;if(n.kind===265||n.kind===264)return Se.getSymbolAtLocation(Tr)===cr?{declaration:n,importKind:Br,symbol:dr,targetFlags:Ir}:void 0})}function _e(ye,Se){if(!e.isSourceFileJS(ye))return!1;if(ye.commonJsModuleIndicator&&!ye.externalModuleIndicator)return!0;if(ye.externalModuleIndicator&&!ye.commonJsModuleIndicator)return!1;var ge=Se.getCompilerOptions();if(ge.configFile)return e.getEmitModuleKind(ge)<e.ModuleKind.ES2015;for(var Fe=0,cr=Se.getSourceFiles();Fe<cr.length;Fe++){var ur=cr[Fe];if(!(ur===ye||!e.isSourceFileJS(ur)||Se.isSourceFileFromExternalLibrary(ur))){if(ur.commonJsModuleIndicator&&!ur.externalModuleIndicator)return!0;if(ur.externalModuleIndicator&&!ur.commonJsModuleIndicator)return!1}}return!0}function Y(ye,Se,ge,Fe,cr,ur,Ir,dr,Br){var Tr=e.isSourceFileJS(Se),n=ye.getCompilerOptions(),Er=e.createModuleSpecifierResolutionHost(ye,Ir),br=e.memoizeOne(function(Xe){return Xe?Ir.getPackageJsonAutoImportProvider().getTypeChecker():ye.getTypeChecker()}),Pr=Br?function(Xe){return{moduleSpecifiers:e.moduleSpecifiers.tryGetModuleSpecifiersFromCache(Xe,Se,Er,dr),computedWithoutCache:!1}}:function(Xe,Cr){return e.moduleSpecifiers.getModuleSpecifiersWithCacheInfo(Xe,Cr,n,Se,Er,dr)},Ce=0,Le=e.flatMap(ur,function(Xe,Cr){var Lr=br(Xe.isFromPackageJson),Jr=Pr(Xe.moduleSymbol,Lr),Rr=Jr.computedWithoutCache,ci=Jr.moduleSpecifiers,be=!!(Xe.targetFlags&111551),or=M(Fe,!0,Xe.symbol,Xe.targetFlags,Lr,n);return Ce+=Rr?1:0,ci==null?void 0:ci.map(function(Kr){return!be&&Tr&&ge!==void 0?{kind:1,moduleSpecifier:Kr,position:ge,exportInfo:Xe,isReExport:Cr>0}:{kind:3,moduleSpecifier:Kr,importKind:J(Se,Xe.exportKind,n),useRequire:cr,addAsTypeOnly:or,exportInfo:Xe,isReExport:Cr>0}})});return{computedWithoutCacheCount:Ce,fixes:Le}}function Z(ye,Se,ge,Fe,cr,ur,Ir,dr,Br){var Tr=e.firstDefined(Se,function(n){return k(n,ur,Ir,ge.getTypeChecker(),ge.getCompilerOptions())});return Tr?[Tr]:Y(ge,Fe,cr,ur,Ir,ye,dr,Br).fixes}function k(ye,Se,ge,Fe,cr){var ur=ye.declaration,Ir=ye.importKind,dr=ye.symbol,Br=ye.targetFlags,Tr=e.tryGetModuleSpecifierFromDeclaration(ur);if(Tr){var n=ge?4:M(Se,!0,dr,Br,Fe,cr);return{kind:3,moduleSpecifier:Tr,importKind:Ir,addAsTypeOnly:n,useRequire:ge}}}function I(ye,Se,ge,Fe){var cr=e.getTokenAtPosition(ye.sourceFile,ge),ur;if(Se===e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)ur=l(ye,cr);else if(e.isIdentifier(cr))if(Se===e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){var Ir=y(ye.sourceFile,ye.program.getTypeChecker(),cr,ye.program.getCompilerOptions()),dr=U(ye.sourceFile,cr,Ir,ye.program);return dr&&{fixes:[dr],symbolName:Ir,errorIdentifierText:cr.text}}else ur=j(ye,cr,Fe);else return;var Br=e.createPackageJsonImportFilter(ye.sourceFile,ye.preferences,ye.host);return ur&&Ve(Ve({},ur),{fixes:ne(ur.fixes,ye.sourceFile,ye.program,Br,ye.host)})}function ne(ye,Se,ge,Fe,cr){var ur=function(Ir){return e.toPath(Ir,cr.getCurrentDirectory(),e.hostGetCanonicalFileName(cr))};return e.sort(ye,function(Ir,dr){return e.compareValues(Ir.kind,dr.kind)||A(Ir,dr,Se,ge,Fe.allowsImportingSpecifier,ur)})}function ee(ye,Se,ge,Fe,cr){if(!!e.some(ye))return ye[0].kind===0||ye[0].kind===2?ye[0]:ye.reduce(function(ur,Ir){return A(Ir,ur,Se,ge,Fe.allowsImportingSpecifier,function(dr){return e.toPath(dr,cr.getCurrentDirectory(),e.hostGetCanonicalFileName(cr))})===-1?Ir:ur})}function A(ye,Se,ge,Fe,cr,ur){return ye.kind!==0&&Se.kind!==0?e.compareBooleans(cr(Se.moduleSpecifier),cr(ye.moduleSpecifier))||D(ye.moduleSpecifier,Se.moduleSpecifier,ge,Fe)||e.compareBooleans(f(ye,ge,Fe.getCompilerOptions(),ur),f(Se,ge,Fe.getCompilerOptions(),ur))||e.compareNumberOfDirectorySeparators(ye.moduleSpecifier,Se.moduleSpecifier):0}function f(ye,Se,ge,Fe){var cr;if(ye.isReExport&&((cr=ye.exportInfo)===null||cr===void 0?void 0:cr.moduleFileName)&&e.getEmitModuleResolutionKind(ge)===e.ModuleResolutionKind.NodeJs&&P(ye.exportInfo.moduleFileName)){var ur=Fe(e.getDirectoryPath(ye.exportInfo.moduleFileName));return e.startsWith(Se.path,ur)}return!1}function P(ye){return e.getBaseFileName(ye,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function D(ye,Se,ge,Fe){return e.startsWith(ye,"node:")&&!e.startsWith(Se,"node:")?e.shouldUseUriStyleNodeCoreModules(ge,Fe)?-1:1:e.startsWith(Se,"node:")&&!e.startsWith(ye,"node:")?e.shouldUseUriStyleNodeCoreModules(ge,Fe)?1:-1:0}function l(ye,Se){var ge,Fe=ye.sourceFile,cr=ye.program,ur=ye.host,Ir=ye.preferences,dr=cr.getTypeChecker(),Br=_(Se,dr);if(!!Br){var Tr=dr.getAliasedSymbol(Br),n=Br.name,Er=[{symbol:Br,moduleSymbol:Tr,moduleFileName:void 0,exportKind:3,targetFlags:Tr.flags,isFromPackageJson:!1}],br=_e(Fe,cr),Pr=E(Er,n,e.isIdentifier(Se)?Se.getStart(Fe):void 0,!1,br,cr,Fe,ur,Ir);return{fixes:Pr,symbolName:n,errorIdentifierText:(ge=e.tryCast(Se,e.isIdentifier))===null||ge===void 0?void 0:ge.text}}}function _(ye,Se){var ge=e.isIdentifier(ye)?Se.getSymbolAtLocation(ye):void 0;if(e.isUMDExportSymbol(ge))return ge;var Fe=ye.parent;return e.isJsxOpeningLikeElement(Fe)&&Fe.tagName===ye||e.isJsxOpeningFragment(Fe)?e.tryCast(Se.resolveName(Se.getJsxNamespace(Fe),e.isJsxOpeningLikeElement(Fe)?ye:Fe,111551,!1),e.isUMDExportSymbol):void 0}function J(ye,Se,ge,Fe){switch(Se){case 0:return 0;case 1:return 1;case 2:return ce(ye,ge,!!Fe);case 3:return w(ye,ge,!!Fe);default:return e.Debug.assertNever(Se)}}O.getImportKind=J;function w(ye,Se,ge){if(e.getAllowSyntheticDefaultImports(Se))return 1;var Fe=e.getEmitModuleKind(Se);switch(Fe){case e.ModuleKind.AMD:case e.ModuleKind.CommonJS:case e.ModuleKind.UMD:return e.isInJSFile(ye)&&(e.isExternalModule(ye)||ge)?2:3;case e.ModuleKind.System:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.None:return 2;case e.ModuleKind.Node12:case e.ModuleKind.NodeNext:return ye.impliedNodeFormat===e.ModuleKind.ESNext?2:3;default:return e.Debug.assertNever(Fe,"Unexpected moduleKind ".concat(Fe))}}function j(ye,Se,ge){var Fe=ye.sourceFile,cr=ye.program,ur=ye.cancellationToken,Ir=ye.host,dr=ye.preferences,Br=cr.getTypeChecker(),Tr=cr.getCompilerOptions(),n=y(Fe,Br,Se,Tr);e.Debug.assert(n!=="default","'default' isn't a legal identifier and couldn't occur here");var Er=e.isValidTypeOnlyAliasUseSite(Se),br=_e(Fe,cr),Pr=ve(n,e.isJSXTagName(Se),e.getMeaningFromLocation(Se),ur,Fe,cr,ge,Ir,dr),Ce=e.arrayFrom(e.flatMapIterator(Pr.entries(),function(Le){var Xe=Le[0],Cr=Le[1];return E(Cr,n,Se.getStart(Fe),Er,br,cr,Fe,Ir,dr)}));return{fixes:Ce,symbolName:n,errorIdentifierText:Se.text}}function U(ye,Se,ge,Fe){var cr=Fe.getTypeChecker(),ur=cr.resolveName(ge,Se,111551,!0);if(!!ur){var Ir=cr.getTypeOnlyAliasDeclaration(ur);if(!(!Ir||e.getSourceFileOfNode(Ir)!==ye))return{kind:4,typeOnlyAliasDeclaration:Ir}}}function z(ye){return ye===2||ye===3}function y(ye,Se,ge,Fe){var cr=ge.parent;if((e.isJsxOpeningLikeElement(cr)||e.isJsxClosingElement(cr))&&cr.tagName===ge&&z(Fe.jsx)){var ur=Se.getJsxNamespace(ye);if(oe(ur,ge,Se))return ur}return ge.text}function oe(ye,Se,ge){if(e.isIntrinsicJsxName(Se.text))return!0;var Fe=ge.resolveName(ye,Se,111551,!0);return!Fe||e.some(Fe.declarations,e.isTypeOnlyImportOrExportDeclaration)&&!(Fe.flags&111551)}function ve(ye,Se,ge,Fe,cr,ur,Ir,dr,Br){var Tr,n=e.createMultiMap(),Er=e.createPackageJsonImportFilter(cr,Br,dr),br=(Tr=dr.getModuleSpecifierCache)===null||Tr===void 0?void 0:Tr.call(dr),Pr=e.memoizeOne(function(Le){return e.createModuleSpecifierResolutionHost(Le?dr.getPackageJsonAutoImportProvider():ur,dr)});function Ce(Le,Xe,Cr,Lr,Jr,Rr){var ci=Pr(Rr);if(Xe&&e.isImportableFile(Jr,cr,Xe,Br,Er,ci,br)||!Xe&&Er.allowsImportingAmbientModule(Le,ci)){var be=Jr.getTypeChecker();n.add(e.getUniqueSymbolId(Cr,be).toString(),{symbol:Cr,moduleSymbol:Le,moduleFileName:Xe==null?void 0:Xe.fileName,exportKind:Lr,targetFlags:e.skipAlias(Cr,be).flags,isFromPackageJson:Rr})}}return e.forEachExternalModuleToImportFrom(ur,dr,Ir,function(Le,Xe,Cr,Lr){var Jr=Cr.getTypeChecker();Fe.throwIfCancellationRequested();var Rr=Cr.getCompilerOptions(),ci=e.getDefaultLikeExportInfo(Le,Jr,Rr);ci&&(ci.name===ye||he(Le,e.getEmitScriptTarget(Rr),Se)===ye)&&er(ci.symbolForMeaning,ge)&&Ce(Le,Xe,ci.symbol,ci.exportKind,Cr,Lr);var be=Jr.tryGetMemberInModuleExportsAndProperties(ye,Le);be&&er(be,ge)&&Ce(Le,Xe,be,0,Cr,Lr)}),n}function ce(ye,Se,ge){var Fe=e.getAllowSyntheticDefaultImports(Se),cr=e.isInJSFile(ye);if(!cr&&e.getEmitModuleKind(Se)>=e.ModuleKind.ES2015)return Fe?1:2;if(cr)return e.isExternalModule(ye)||ge?Fe?1:2:3;for(var ur=0,Ir=ye.statements;ur<Ir.length;ur++){var dr=Ir[ur];if(e.isImportEqualsDeclaration(dr)&&!e.nodeIsMissing(dr.moduleReference))return 3}return Fe?1:3}function m(ye,Se,ge,Fe,cr,ur,Ir){var dr,Br=e.textChanges.ChangeTracker.with(ye,function(Tr){dr=de(Tr,Se,ge,Fe,cr,ur,Ir)});return O.createCodeFixAction(O.importFixName,Br,dr,L,e.Diagnostics.Add_all_missing_imports)}function de(ye,Se,ge,Fe,cr,ur,Ir){switch(Fe.kind){case 0:return ke(ye,Se,Fe),[e.Diagnostics.Change_0_to_1,ge,"".concat(Fe.namespacePrefix,".").concat(ge)];case 1:return Ue(ye,Se,Fe,ur),[e.Diagnostics.Change_0_to_1,ge,He(Fe.moduleSpecifier,ur)+ge];case 2:{var dr=Fe.importClauseOrBindingPattern,Br=Fe.importKind,Tr=Fe.addAsTypeOnly,n=Fe.moduleSpecifier;le(ye,Se,dr,Br===1?{name:ge,addAsTypeOnly:Tr}:void 0,Br===0?[{name:ge,addAsTypeOnly:Tr}]:e.emptyArray,Ir);var Er=e.stripQuotes(n);return cr?[e.Diagnostics.Import_0_from_1,ge,Er]:[e.Diagnostics.Update_import_from_0,Er]}case 3:{var Br=Fe.importKind,n=Fe.moduleSpecifier,Tr=Fe.addAsTypeOnly,br=Fe.useRequire,Pr=br?me:gr,Ce=Br===1?{name:ge,addAsTypeOnly:Tr}:void 0,Le=Br===0?[{name:ge,addAsTypeOnly:Tr}]:void 0,Xe=Br===2||Br===3?{importKind:Br,name:ge,addAsTypeOnly:Tr}:void 0;return e.insertImports(ye,Se,Pr(n,ur,Ce,Le,Xe),!0),cr?[e.Diagnostics.Import_0_from_1,ge,n]:[e.Diagnostics.Add_import_from_0,n]}case 4:{var Cr=Fe.typeOnlyAliasDeclaration,Lr=V(ye,Cr,Ir,Se);return Lr.kind===269?[e.Diagnostics.Remove_type_from_import_of_0_from_1,ge,ae(Lr.parent.parent)]:[e.Diagnostics.Remove_type_from_import_declaration_from_0,ae(Lr)]}default:return e.Debug.assertNever(Fe,"Unexpected fix kind ".concat(Fe.kind))}}function ae(ye){var Se,ge;return ye.kind===264?((ge=e.tryCast((Se=e.tryCast(ye.moduleReference,e.isExternalModuleReference))===null||Se===void 0?void 0:Se.expression,e.isStringLiteralLike))===null||ge===void 0?void 0:ge.text)||ye.moduleReference.getText():e.cast(ye.parent.moduleSpecifier,e.isStringLiteral).text}function V(ye,Se,ge,Fe){var cr=ge.preserveValueImports&&ge.isolatedModules;switch(Se.kind){case 269:if(Se.isTypeOnly){if(Se.parent.elements.length>1&&e.OrganizeImports.importSpecifiersAreSorted(Se.parent.elements)){ye.delete(Fe,Se);var ur=e.factory.updateImportSpecifier(Se,!1,Se.propertyName,Se.name),Ir=e.OrganizeImports.getImportSpecifierInsertionIndex(Se.parent.elements,ur);ye.insertImportSpecifierAtIndex(Fe,ur,Se.parent,Ir)}else ye.deleteRange(Fe,Se.getFirstToken());return Se}else return e.Debug.assert(Se.parent.parent.isTypeOnly),dr(Se.parent.parent),Se.parent.parent;case 266:return dr(Se),Se;case 267:return dr(Se.parent),Se.parent;case 264:return ye.deleteRange(Fe,Se.getChildAt(1)),Se;default:e.Debug.failBadSyntaxKind(Se)}function dr(Br){if(ye.delete(Fe,e.getTypeKeywordOfTypeOnlyImport(Br,Fe)),cr){var Tr=e.tryCast(Br.namedBindings,e.isNamedImports);if(Tr&&Tr.elements.length>1){e.OrganizeImports.importSpecifiersAreSorted(Tr.elements)&&Se.kind===269&&Tr.elements.indexOf(Se)!==0&&(ye.delete(Fe,Se),ye.insertImportSpecifierAtIndex(Fe,Se,Tr,0));for(var n=0,Er=Tr.elements;n<Er.length;n++){var br=Er[n];br!==Se&&!br.isTypeOnly&&ye.insertModifierBefore(Fe,151,br)}}}}}function le(ye,Se,ge,Fe,cr,ur){var Ir;if(ge.kind===200){Fe&&or(ge,Fe.name,"default");for(var dr=0,Br=cr;dr<Br.length;dr++){var Tr=Br[dr];or(ge,Tr.name,void 0)}return}var n=ge.isTypeOnly&&e.some(qe([Fe],cr,!0),function(Kr){return(Kr==null?void 0:Kr.addAsTypeOnly)===4}),Er=ge.namedBindings&&((Ir=e.tryCast(ge.namedBindings,e.isNamedImports))===null||Ir===void 0?void 0:Ir.elements),br=n&&ur.preserveValueImports&&ur.isolatedModules;if(Fe&&(e.Debug.assert(!ge.name,"Cannot add a default import to an import clause that already has one"),ye.insertNodeAt(Se,ge.getStart(Se),e.factory.createIdentifier(Fe.name),{suffix:", "})),cr.length){var Pr=e.stableSort(cr.map(function(Kr){return e.factory.createImportSpecifier((!ge.isTypeOnly||n)&&ar(Kr),void 0,e.factory.createIdentifier(Kr.name))}),e.OrganizeImports.compareImportOrExportSpecifiers);if((Er==null?void 0:Er.length)&&e.OrganizeImports.importSpecifiersAreSorted(Er))for(var Ce=0,Le=Pr;Ce<Le.length;Ce++){var Xe=Le[Ce],Cr=br&&!Xe.isTypeOnly?0:e.OrganizeImports.getImportSpecifierInsertionIndex(Er,Xe);ye.insertImportSpecifierAtIndex(Se,Xe,ge.namedBindings,Cr)}else if(Er!=null&&Er.length)for(var Lr=0,Jr=Pr;Lr<Jr.length;Lr++){var Xe=Jr[Lr];ye.insertNodeInListAfter(Se,e.last(Er),Xe,Er)}else if(Pr.length){var Rr=e.factory.createNamedImports(Pr);ge.namedBindings?ye.replaceNode(Se,ge.namedBindings,Rr):ye.insertNodeAfter(Se,e.Debug.checkDefined(ge.name,"Import clause must have either named imports or a default import"),Rr)}}if(n&&(ye.delete(Se,e.getTypeKeywordOfTypeOnlyImport(ge,Se)),br&&Er))for(var ci=0,be=Er;ci<be.length;ci++){var Tr=be[ci];ye.insertModifierBefore(Se,151,Tr)}function or(Kr,ei,li){var Si=e.factory.createBindingElement(void 0,li,ei);Kr.elements.length?ye.insertNodeInListAfter(Se,e.last(Kr.elements),Si):ye.replaceNode(Se,Kr,e.factory.createObjectBindingPattern([Si]))}}function ke(ye,Se,ge){var Fe=ge.namespacePrefix,cr=ge.position;ye.insertText(Se,cr,Fe+".")}function Ue(ye,Se,ge,Fe){var cr=ge.moduleSpecifier,ur=ge.position;ye.insertText(Se,ur,He(cr,Fe))}function He(ye,Se){var ge=e.getQuoteFromPreference(Se);return"import(".concat(ge).concat(ye).concat(ge,").")}function ar(ye){var Se=ye.addAsTypeOnly;return Se===2}function gr(ye,Se,ge,Fe,cr){var ur=e.makeStringLiteral(ye,Se),Ir;if(ge!==void 0||(Fe==null?void 0:Fe.length)){var dr=(!ge||ar(ge))&&e.every(Fe,ar);Ir=e.combine(Ir,e.makeImport(ge&&e.factory.createIdentifier(ge.name),Fe==null?void 0:Fe.map(function(Tr){var n=Tr.addAsTypeOnly,Er=Tr.name;return e.factory.createImportSpecifier(!dr&&n===2,void 0,e.factory.createIdentifier(Er))}),ye,Se,dr))}if(cr){var Br=cr.importKind===3?e.factory.createImportEqualsDeclaration(void 0,void 0,ar(cr),e.factory.createIdentifier(cr.name),e.factory.createExternalModuleReference(ur)):e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(ar(cr),void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(cr.name))),ur,void 0);Ir=e.combine(Ir,Br)}return e.Debug.checkDefined(Ir)}function me(ye,Se,ge,Fe,cr){var ur=e.makeStringLiteral(ye,Se),Ir;if(ge||(Fe==null?void 0:Fe.length)){var dr=(Fe==null?void 0:Fe.map(function(Tr){var n=Tr.name;return e.factory.createBindingElement(void 0,void 0,n)}))||[];ge&&dr.unshift(e.factory.createBindingElement(void 0,"default",ge.name));var Br=Ge(e.factory.createObjectBindingPattern(dr),ur);Ir=e.combine(Ir,Br)}if(cr){var Br=Ge(cr.name,ur);Ir=e.combine(Ir,Br)}return e.Debug.checkDefined(Ir)}function Ge(ye,Se){return e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(typeof ye=="string"?e.factory.createIdentifier(ye):ye,void 0,void 0,e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[Se]))],2))}function er(ye,Se){var ge=ye.declarations;return e.some(ge,function(Fe){return!!(e.getMeaningFromDeclaration(Fe)&Se)})}function he(ye,Se,ge){return we(e.removeFileExtension(e.stripQuotes(ye.name)),Se,ge)}O.moduleSymbolToValidIdentifier=he;function we(ye,Se,ge){var Fe=e.getBaseFileName(e.removeSuffix(ye,"/index")),cr="",ur=!0,Ir=Fe.charCodeAt(0);e.isIdentifierStart(Ir,Se)?(cr+=String.fromCharCode(Ir),ge&&(cr=cr.toUpperCase())):ur=!1;for(var dr=1;dr<Fe.length;dr++){var Br=Fe.charCodeAt(dr),Tr=e.isIdentifierPart(Br,Se);if(Tr){var n=String.fromCharCode(Br);ur||(n=n.toUpperCase()),cr+=n}ur=Tr}return e.isStringANonContextualKeyword(cr)?"_".concat(cr):cr||"_"}O.moduleSpecifierToValidIdentifier=we})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L,W="fixOverrideModifier",N="fixAddOverrideModifier",Q="fixRemoveOverrideModifier",pe=[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],F=(L={},L[e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:N,fixAllDescriptions:e.Diagnostics.Add_all_missing_override_modifiers},L[e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:N,fixAllDescriptions:e.Diagnostics.Add_all_missing_override_modifiers},L[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]={descriptions:e.Diagnostics.Remove_override_modifier,fixId:Q,fixAllDescriptions:e.Diagnostics.Remove_all_unnecessary_override_modifiers},L[e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]={descriptions:e.Diagnostics.Remove_override_modifier,fixId:Q,fixAllDescriptions:e.Diagnostics.Remove_override_modifier},L[e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:N,fixAllDescriptions:e.Diagnostics.Add_all_missing_override_modifiers},L[e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:N,fixAllDescriptions:e.Diagnostics.Add_all_missing_override_modifiers},L[e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:N,fixAllDescriptions:e.Diagnostics.Remove_all_unnecessary_override_modifiers},L[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]={descriptions:e.Diagnostics.Remove_override_modifier,fixId:Q,fixAllDescriptions:e.Diagnostics.Remove_all_unnecessary_override_modifiers},L[e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]={descriptions:e.Diagnostics.Remove_override_modifier,fixId:Q,fixAllDescriptions:e.Diagnostics.Remove_all_unnecessary_override_modifiers},L);O.registerCodeFix({errorCodes:pe,getCodeActions:function(G){var E=G.errorCode,ue=G.span,B=F[E];if(!B)return e.emptyArray;var re=B.descriptions,M=B.fixId,x=B.fixAllDescriptions,ie=e.textChanges.ChangeTracker.with(G,function(_e){return g(_e,G,E,ue.start)});return[O.createCodeFixActionMaybeFixAll(W,ie,re,M,x)]},fixIds:[W,N,Q],getAllCodeActions:function(C){return O.codeFixAll(C,pe,function(G,E){var ue=E.code,B=E.start,re=F[ue];!re||re.fixId!==C.fixId||g(G,C,ue,B)})}});function g(C,G,E,ue){switch(E){case e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return S(C,G.sourceFile,ue);case e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return H(C,G.sourceFile,ue);default:e.Debug.fail("Unexpected error code: "+E)}}function S(C,G,E){var ue=p(G,E);if(e.isSourceFileJS(G)){C.addJSDocTags(G,ue,[e.factory.createJSDocOverrideTag(e.factory.createIdentifier("override"))]);return}var B=ue.modifiers||e.emptyArray,re=e.find(B,e.isStaticModifier),M=e.find(B,e.isAbstractModifier),x=e.find(B,function(Y){return e.isAccessibilityModifier(Y.kind)}),ie=M?M.end:re?re.end:x?x.end:ue.decorators?e.skipTrivia(G.text,ue.decorators.end):ue.getStart(G),_e=x||re||M?{prefix:" "}:{suffix:" "};C.insertModifierAt(G,ie,158,_e)}function H(C,G,E){var ue=p(G,E);if(e.isSourceFileJS(G)){C.filterJSDocTags(G,ue,e.not(e.isJSDocOverrideTag));return}var B=ue.modifiers&&e.find(ue.modifiers,function(re){return re.kind===158});e.Debug.assertIsDefined(B),C.deleteModifier(G,B)}function se(C){switch(C.kind){case 170:case 166:case 168:case 171:case 172:return!0;case 163:return e.isParameterPropertyDeclaration(C,C.parent);default:return!1}}function p(C,G){var E=e.getTokenAtPosition(C,G),ue=e.findAncestor(E,function(B){return e.isClassLike(B)?"quit":se(B)});return e.Debug.assert(ue&&se(ue)),ue}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixNoPropertyAccessFromIndexSignature",W=[e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];O.registerCodeFix({errorCodes:W,fixIds:[L],getCodeActions:function(pe){var F=pe.sourceFile,g=pe.span,S=pe.preferences,H=Q(F,g.start),se=e.textChanges.ChangeTracker.with(pe,function(p){return N(p,pe.sourceFile,H,S)});return[O.createCodeFixAction(L,se,[e.Diagnostics.Use_element_access_for_0,H.name.text],L,e.Diagnostics.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:function(pe){return O.codeFixAll(pe,W,function(F,g){return N(F,g.file,Q(g.file,g.start),pe.preferences)})}});function N(pe,F,g,S){var H=e.getQuotePreference(F,S),se=e.factory.createStringLiteral(g.name.text,H===0);pe.replaceNode(F,g,e.isPropertyAccessChain(g)?e.factory.createElementAccessChain(g.expression,g.questionDotToken,se):e.factory.createElementAccessExpression(g.expression,se))}function Q(pe,F){return e.cast(e.getTokenAtPosition(pe,F).parent,e.isPropertyAccessExpression)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixImplicitThis",W=[e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(pe){var F=pe.sourceFile,g=pe.program,S=pe.span,H,se=e.textChanges.ChangeTracker.with(pe,function(p){H=N(p,F,S.start,g.getTypeChecker())});return H?[O.createCodeFixAction(L,se,H,L,e.Diagnostics.Fix_all_implicit_this_errors)]:e.emptyArray},fixIds:[L],getAllCodeActions:function(Q){return O.codeFixAll(Q,W,function(pe,F){N(pe,F.file,F.start,Q.program.getTypeChecker())})}});function N(Q,pe,F,g){var S=e.getTokenAtPosition(pe,F);if(!!e.isThis(S)){var H=e.getThisContainer(S,!1);if(!(!e.isFunctionDeclaration(H)&&!e.isFunctionExpression(H))&&!e.isSourceFile(e.getThisContainer(H,!1))){var se=e.Debug.checkDefined(e.findChildOfKind(H,98,pe)),p=H.name,C=e.Debug.checkDefined(H.body);return e.isFunctionExpression(H)?p&&e.FindAllReferences.Core.isSymbolReferencedInFile(p,g,pe,C)?void 0:(Q.delete(pe,se),p&&Q.delete(pe,p),Q.insertText(pe,C.pos," =>"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,p?p.text:e.ANONYMOUS]):(Q.replaceNode(pe,se,e.factory.createToken(85)),Q.insertText(pe,p.end," = "),Q.insertText(pe,C.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,p.text])}}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixIncorrectNamedTupleSyntax",W=[e.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(F){var g=F.sourceFile,S=F.span,H=N(g,S.start),se=e.textChanges.ChangeTracker.with(F,function(p){return Q(p,g,H)});return[O.createCodeFixAction(L,se,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,L,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[L]});function N(pe,F){var g=e.getTokenAtPosition(pe,F);return e.findAncestor(g,function(S){return S.kind===196})}function Q(pe,F,g){if(!!g){for(var S=g.type,H=!1,se=!1;S.kind===184||S.kind===185||S.kind===190;)S.kind===184?H=!0:S.kind===185&&(se=!0),S=S.type;var p=e.factory.updateNamedTupleMember(g,g.dotDotDotToken||(se?e.factory.createToken(25):void 0),g.name,g.questionToken||(H?e.factory.createToken(57):void 0),S);p!==g&&pe.replaceNode(F,g,p)}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixSpelling",W=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Could_not_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.No_overload_matches_this_call.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(g){var S=g.sourceFile,H=g.errorCode,se=N(S,g.span.start,g,H);if(!!se){var p=se.node,C=se.suggestedSymbol,G=e.getEmitScriptTarget(g.host.getCompilationSettings()),E=e.textChanges.ChangeTracker.with(g,function(ue){return Q(ue,S,p,C,G)});return[O.createCodeFixAction("spelling",E,[e.Diagnostics.Change_spelling_to_0,e.symbolName(C)],L,e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:[L],getAllCodeActions:function(g){return O.codeFixAll(g,W,function(S,H){var se=N(H.file,H.start,g,H.code),p=e.getEmitScriptTarget(g.host.getCompilationSettings());se&&Q(S,g.sourceFile,se.node,se.suggestedSymbol,p)})}});function N(g,S,H,se){var p=e.getTokenAtPosition(g,S),C=p.parent;if(!((se===e.Diagnostics.No_overload_matches_this_call.code||se===e.Diagnostics.Type_0_is_not_assignable_to_type_1.code)&&!e.isJsxAttribute(C))){var G=H.program.getTypeChecker(),E;if(e.isPropertyAccessExpression(C)&&C.name===p){e.Debug.assert(e.isMemberName(p),"Expected an identifier for spelling (property access)");var ue=G.getTypeAtLocation(C.expression);C.flags&32&&(ue=G.getNonNullableType(ue)),E=G.getSuggestedSymbolForNonexistentProperty(p,ue)}else if(e.isBinaryExpression(C)&&C.operatorToken.kind===101&&C.left===p&&e.isPrivateIdentifier(p)){var B=G.getTypeAtLocation(C.right);E=G.getSuggestedSymbolForNonexistentProperty(p,B)}else if(e.isQualifiedName(C)&&C.right===p){var re=G.getSymbolAtLocation(C.left);re&&re.flags&1536&&(E=G.getSuggestedSymbolForNonexistentModule(C.right,re))}else if(e.isImportSpecifier(C)&&C.name===p){e.Debug.assertNode(p,e.isIdentifier,"Expected an identifier for spelling (import)");var M=e.findAncestor(p,e.isImportDeclaration),x=F(g,H,M);x&&x.symbol&&(E=G.getSuggestedSymbolForNonexistentModule(p,x.symbol))}else if(e.isJsxAttribute(C)&&C.name===p){e.Debug.assertNode(p,e.isIdentifier,"Expected an identifier for JSX attribute");var ie=e.findAncestor(p,e.isJsxOpeningLikeElement),_e=G.getContextualTypeForArgumentAtIndex(ie,0);E=G.getSuggestedSymbolForNonexistentJSXAttribute(p,_e)}else if(e.hasSyntacticModifier(C,16384)&&e.isClassElement(C)&&C.name===p){var Y=e.findAncestor(p,e.isClassLike),Z=Y?e.getEffectiveBaseTypeNode(Y):void 0,k=Z?G.getTypeAtLocation(Z):void 0;k&&(E=G.getSuggestedSymbolForNonexistentClassMember(e.getTextOfNode(p),k))}else{var I=e.getMeaningFromLocation(p),ne=e.getTextOfNode(p);e.Debug.assert(ne!==void 0,"name should be defined"),E=G.getSuggestedSymbolForNonexistentSymbol(p,ne,pe(I))}return E===void 0?void 0:{node:p,suggestedSymbol:E}}}function Q(g,S,H,se,p){var C=e.symbolName(se);if(!e.isIdentifierText(C,p)&&e.isPropertyAccessExpression(H.parent)){var G=se.valueDeclaration;G&&e.isNamedDeclaration(G)&&e.isPrivateIdentifier(G.name)?g.replaceNode(S,H,e.factory.createIdentifier(C)):g.replaceNode(S,H.parent,e.factory.createElementAccessExpression(H.parent.expression,e.factory.createStringLiteral(C)))}else g.replaceNode(S,H,e.factory.createIdentifier(C))}function pe(g){var S=0;return g&4&&(S|=1920),g&2&&(S|=788968),g&1&&(S|=111551),S}function F(g,S,H){if(!(!H||!e.isStringLiteralLike(H.moduleSpecifier))){var se=e.getResolvedModule(g,H.moduleSpecifier.text,e.getModeForUsageLocation(g,H.moduleSpecifier));if(!!se)return S.program.getSourceFile(se.resolvedFileName)}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="returnValueCorrect",W="fixAddReturnStatement",N="fixRemoveBracesFromArrowFunctionBody",Q="fixWrapTheBlockWithParen",pe=[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],F;(function(M){M[M.MissingReturnStatement=0]="MissingReturnStatement",M[M.MissingParentheses=1]="MissingParentheses"})(F||(F={})),O.registerCodeFix({errorCodes:pe,fixIds:[W,N,Q],getCodeActions:function(x){var ie=x.program,_e=x.sourceFile,Y=x.span.start,Z=x.errorCode,k=se(ie.getTypeChecker(),_e,Y,Z);if(!!k)return k.kind===F.MissingReturnStatement?e.append([ue(x,k.expression,k.statement)],e.isArrowFunction(k.declaration)?B(x,k.declaration,k.expression,k.commentSource):void 0):[re(x,k.declaration,k.expression)]},getAllCodeActions:function(M){return O.codeFixAll(M,pe,function(x,ie){var _e=se(M.program.getTypeChecker(),ie.file,ie.start,ie.code);if(!!_e)switch(M.fixId){case W:C(x,ie.file,_e.expression,_e.statement);break;case N:if(!e.isArrowFunction(_e.declaration))return;G(x,ie.file,_e.declaration,_e.expression,_e.commentSource,!1);break;case Q:if(!e.isArrowFunction(_e.declaration))return;E(x,ie.file,_e.declaration,_e.expression);break;default:e.Debug.fail(JSON.stringify(M.fixId))}})}});function g(M,x,ie){var _e=M.createSymbol(4,x.escapedText);_e.type=M.getTypeAtLocation(ie);var Y=e.createSymbolTable([_e]);return M.createAnonymousType(void 0,Y,[],[],[])}function S(M,x,ie,_e){if(!(!x.body||!e.isBlock(x.body)||e.length(x.body.statements)!==1)){var Y=e.first(x.body.statements);if(e.isExpressionStatement(Y)&&H(M,x,M.getTypeAtLocation(Y.expression),ie,_e))return{declaration:x,kind:F.MissingReturnStatement,expression:Y.expression,statement:Y,commentSource:Y.expression};if(e.isLabeledStatement(Y)&&e.isExpressionStatement(Y.statement)){var Z=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(Y.label,Y.statement.expression)]),k=g(M,Y.label,Y.statement.expression);if(H(M,x,k,ie,_e))return e.isArrowFunction(x)?{declaration:x,kind:F.MissingParentheses,expression:Z,statement:Y,commentSource:Y.statement.expression}:{declaration:x,kind:F.MissingReturnStatement,expression:Z,statement:Y,commentSource:Y.statement.expression}}else if(e.isBlock(Y)&&e.length(Y.statements)===1){var I=e.first(Y.statements);if(e.isLabeledStatement(I)&&e.isExpressionStatement(I.statement)){var Z=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(I.label,I.statement.expression)]),k=g(M,I.label,I.statement.expression);if(H(M,x,k,ie,_e))return{declaration:x,kind:F.MissingReturnStatement,expression:Z,statement:Y,commentSource:I}}}}}function H(M,x,ie,_e,Y){if(Y){var Z=M.getSignatureFromDeclaration(x);if(Z){e.hasSyntacticModifier(x,256)&&(ie=M.createPromiseType(ie));var k=M.createSignature(x,Z.typeParameters,Z.thisParameter,Z.parameters,ie,void 0,Z.minArgumentCount,Z.flags);ie=M.createAnonymousType(void 0,e.createSymbolTable(),[k],[],[])}else ie=M.getAnyType()}return M.isTypeAssignableTo(ie,_e)}function se(M,x,ie,_e){var Y=e.getTokenAtPosition(x,ie);if(!!Y.parent){var Z=e.findAncestor(Y.parent,e.isFunctionLikeDeclaration);switch(_e){case e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:return!Z||!Z.body||!Z.type||!e.rangeContainsRange(Z.type,Y)?void 0:S(M,Z,M.getTypeFromTypeNode(Z.type),!1);case e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!Z||!e.isCallExpression(Z.parent)||!Z.body)return;var k=Z.parent.arguments.indexOf(Z),I=M.getContextualTypeForArgumentAtIndex(Z.parent,k);return I?S(M,Z,I,!0):void 0;case e.Diagnostics.Type_0_is_not_assignable_to_type_1.code:if(!e.isDeclarationName(Y)||!e.isVariableLike(Y.parent)&&!e.isJsxAttribute(Y.parent))return;var ne=p(Y.parent);return!ne||!e.isFunctionLikeDeclaration(ne)||!ne.body?void 0:S(M,ne,M.getTypeAtLocation(Y.parent),!0)}}}function p(M){switch(M.kind){case 253:case 163:case 202:case 166:case 294:return M.initializer;case 284:return M.initializer&&(e.isJsxExpression(M.initializer)?M.initializer.expression:void 0);case 295:case 165:case 297:case 345:case 338:return}}function C(M,x,ie,_e){e.suppressLeadingAndTrailingTrivia(ie);var Y=e.probablyUsesSemicolons(x);M.replaceNode(x,_e,e.factory.createReturnStatement(ie),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:Y?";":void 0})}function G(M,x,ie,_e,Y,Z){var k=Z||e.needsParentheses(_e)?e.factory.createParenthesizedExpression(_e):_e;e.suppressLeadingAndTrailingTrivia(Y),e.copyComments(Y,k),M.replaceNode(x,ie.body,k)}function E(M,x,ie,_e){M.replaceNode(x,ie.body,e.factory.createParenthesizedExpression(_e))}function ue(M,x,ie){var _e=e.textChanges.ChangeTracker.with(M,function(Y){return C(Y,M.sourceFile,x,ie)});return O.createCodeFixAction(L,_e,e.Diagnostics.Add_a_return_statement,W,e.Diagnostics.Add_all_missing_return_statement)}function B(M,x,ie,_e){var Y=e.textChanges.ChangeTracker.with(M,function(Z){return G(Z,M.sourceFile,x,ie,_e,!1)});return O.createCodeFixAction(L,Y,e.Diagnostics.Remove_braces_from_arrow_function_body,N,e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function re(M,x,ie){var _e=e.textChanges.ChangeTracker.with(M,function(Y){return E(Y,M.sourceFile,x,ie)});return O.createCodeFixAction(L,_e,e.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,Q,e.Diagnostics.Wrap_all_object_literal_with_parentheses)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixMissingMember",W="fixMissingProperties",N="fixMissingAttributes",Q="fixMissingFunctionDeclaration",pe=[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Cannot_find_name_0.code];O.registerCodeFix({errorCodes:pe,getCodeActions:function(A){var f=A.program.getTypeChecker(),P=g(A.sourceFile,A.span.start,A.errorCode,f,A.program);if(!!P){if(P.kind===3){var D=e.textChanges.ChangeTracker.with(A,function(l){return Z(l,A,P)});return[O.createCodeFixAction(W,D,e.Diagnostics.Add_missing_properties,W,e.Diagnostics.Add_all_missing_properties)]}if(P.kind===4){var D=e.textChanges.ChangeTracker.with(A,function(_){return Y(_,A,P)});return[O.createCodeFixAction(N,D,e.Diagnostics.Add_missing_attributes,N,e.Diagnostics.Add_all_missing_attributes)]}if(P.kind===2){var D=e.textChanges.ChangeTracker.with(A,function(_){return _e(_,A,P)});return[O.createCodeFixAction(Q,D,[e.Diagnostics.Add_missing_function_declaration_0,P.token.text],Q,e.Diagnostics.Add_all_missing_function_declarations)]}if(P.kind===0){var D=e.textChanges.ChangeTracker.with(A,function(_){return ie(_,A.program.getTypeChecker(),P)});return[O.createCodeFixAction(L,D,[e.Diagnostics.Add_missing_enum_member_0,P.token.text],L,e.Diagnostics.Add_all_missing_members)]}return e.concatenate(M(A,P),H(A,P))}},fixIds:[L,Q,W,N],getAllCodeActions:function(A){var f=A.program,P=A.fixId,D=f.getTypeChecker(),l=new e.Map,_=new e.Map;return O.createCombinedCodeActions(e.textChanges.ChangeTracker.with(A,function(J){O.eachDiagnostic(A,pe,function(w){var j=g(w.file,w.start,w.code,D,A.program);if(!(!j||!e.addToSeen(l,e.getNodeId(j.parentDeclaration)+"#"+j.token.text))){if(P===Q&&j.kind===2)_e(J,A,j);else if(P===W&&j.kind===3)Z(J,A,j);else if(P===N&&j.kind===4)Y(J,A,j);else if(j.kind===0&&ie(J,D,j),j.kind===1){var U=j.parentDeclaration,z=j.token,y=e.getOrUpdate(_,U,function(){return[]});y.some(function(oe){return oe.token.text===z.text})||y.push(j)}}}),_.forEach(function(w,j){for(var U=O.getAllSupers(j,D),z=function(ce){if(U.some(function(He){var ar=_.get(He);return!!ar&&ar.some(function(gr){var me=gr.token;return me.text===ce.token.text})}))return"continue";var m=ce.parentDeclaration,de=ce.declSourceFile,ae=ce.modifierFlags,V=ce.token,le=ce.call,ke=ce.isJSFile;if(le&&!e.isPrivateIdentifier(V))x(A,J,le,V,ae&32,m,de);else if(ke&&!e.isInterfaceDeclaration(m))p(J,de,m,V,!!(ae&32));else{var Ue=E(f.getTypeChecker(),m,V);ue(J,de,m,V.text,Ue,ae&32)}},y=0,oe=w;y<oe.length;y++){var ve=oe[y];z(ve)}})}))}});var F;(function(A){A[A.Enum=0]="Enum",A[A.ClassOrInterface=1]="ClassOrInterface",A[A.Function=2]="Function",A[A.ObjectLiteral=3]="ObjectLiteral",A[A.JsxAttributes=4]="JsxAttributes"})(F||(F={}));function g(A,f,P,D,l){var _=e.getTokenAtPosition(A,f),J=_.parent;if(P===e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(_.kind===18&&e.isObjectLiteralExpression(J)&&e.isCallExpression(J.parent)))return;var w=e.findIndex(J.parent.arguments,function(Ge){return Ge===J});if(w<0)return;var j=e.singleOrUndefined(D.getSignaturesOfType(D.getTypeAtLocation(J.parent.expression),0));if(!(j&&j.declaration&&j.parameters[w]))return;var U=j.parameters[w].valueDeclaration;if(!(U&&e.isParameter(U)&&e.isIdentifier(U.name)))return;var z=e.arrayFrom(D.getUnmatchedProperties(D.getTypeAtLocation(J),D.getTypeAtLocation(U),!1,!1));return e.length(z)?{kind:3,token:U.name,properties:z,indentation:0,parentDeclaration:J}:void 0}if(!!e.isMemberName(_)){if(e.isIdentifier(_)&&e.hasInitializer(J)&&J.initializer&&e.isObjectLiteralExpression(J.initializer)){var z=e.arrayFrom(D.getUnmatchedProperties(D.getTypeAtLocation(J.initializer),D.getTypeAtLocation(_),!1,!1));return e.length(z)?{kind:3,token:_,properties:z,indentation:void 0,parentDeclaration:J.initializer}:void 0}if(e.isIdentifier(_)&&e.isJsxOpeningLikeElement(_.parent)){var y=e.getEmitScriptTarget(l.getCompilerOptions()),oe=ee(D,y,_.parent);return e.length(oe)?{kind:4,token:_,attributes:oe,parentDeclaration:_.parent}:void 0}if(e.isIdentifier(_)&&e.isCallExpression(J))return{kind:2,token:_,call:J,sourceFile:A,modifierFlags:0,parentDeclaration:A};if(!!e.isPropertyAccessExpression(J)){var ve=e.skipConstraint(D.getTypeAtLocation(J.expression)),ce=ve.symbol;if(!(!ce||!ce.declarations)){if(e.isIdentifier(_)&&e.isCallExpression(J.parent)){var m=e.find(ce.declarations,e.isModuleDeclaration),de=m==null?void 0:m.getSourceFile();if(m&&de&&!S(l,de))return{kind:2,token:_,call:J.parent,sourceFile:A,modifierFlags:1,parentDeclaration:m};var ae=e.find(ce.declarations,e.isSourceFile);if(A.commonJsModuleIndicator)return;if(ae&&!S(l,ae))return{kind:2,token:_,call:J.parent,sourceFile:ae,modifierFlags:1,parentDeclaration:ae}}var V=e.find(ce.declarations,e.isClassLike);if(!(!V&&e.isPrivateIdentifier(_))){var le=V||e.find(ce.declarations,e.isInterfaceDeclaration);if(le&&!S(l,le.getSourceFile())){var ke=(ve.target||ve)!==D.getDeclaredTypeOfSymbol(ce);if(ke&&(e.isPrivateIdentifier(_)||e.isInterfaceDeclaration(le)))return;var Ue=le.getSourceFile(),He=(ke?32:0)|(e.startsWithUnderscore(_.text)?8:0),ar=e.isSourceFileJS(Ue),gr=e.tryCast(J.parent,e.isCallExpression);return{kind:1,token:_,call:gr,modifierFlags:He,parentDeclaration:le,declSourceFile:Ue,isJSFile:ar}}var me=e.find(ce.declarations,e.isEnumDeclaration);if(me&&!e.isPrivateIdentifier(_)&&!S(l,me.getSourceFile()))return{kind:0,token:_,parentDeclaration:me}}}}}}function S(A,f){return A.isSourceFileFromExternalLibrary(f)||A.isSourceFileDefaultLibrary(f)}function H(A,f){return f.isJSFile?e.singleElementArray(se(A,f)):G(A,f)}function se(A,f){var P=f.parentDeclaration,D=f.declSourceFile,l=f.modifierFlags,_=f.token;if(!e.isInterfaceDeclaration(P)){var J=e.textChanges.ChangeTracker.with(A,function(j){return p(j,D,P,_,!!(l&32))});if(J.length!==0){var w=l&32?e.Diagnostics.Initialize_static_property_0:e.isPrivateIdentifier(_)?e.Diagnostics.Declare_a_private_field_named_0:e.Diagnostics.Initialize_property_0_in_the_constructor;return O.createCodeFixAction(L,J,[w,_.text],L,e.Diagnostics.Add_all_missing_members)}}}function p(A,f,P,D,l){var _=D.text;if(l){if(P.kind===225)return;var J=P.name.getText(),w=C(e.factory.createIdentifier(J),_);A.insertNodeAfter(f,P,w)}else if(e.isPrivateIdentifier(D)){var j=e.factory.createPropertyDeclaration(void 0,void 0,_,void 0,void 0,void 0),U=B(P);U?A.insertNodeAfter(f,U,j):A.insertNodeAtClassStart(f,P,j)}else{var z=e.getFirstConstructorWithBody(P);if(!z)return;var y=C(e.factory.createThis(),_);A.insertNodeAtConstructorEnd(f,z,y)}}function C(A,f){return e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createPropertyAccessExpression(A,f),I()))}function G(A,f){var P=f.parentDeclaration,D=f.declSourceFile,l=f.modifierFlags,_=f.token,J=_.text,w=l&32,j=E(A.program.getTypeChecker(),P,_),U=function(y){return e.textChanges.ChangeTracker.with(A,function(oe){return ue(oe,D,P,J,j,y)})},z=[O.createCodeFixAction(L,U(l&32),[w?e.Diagnostics.Declare_static_property_0:e.Diagnostics.Declare_property_0,J],L,e.Diagnostics.Add_all_missing_members)];return w||e.isPrivateIdentifier(_)||(l&8&&z.unshift(O.createCodeFixActionWithoutFixAll(L,U(8),[e.Diagnostics.Declare_private_property_0,J])),z.push(re(A,D,P,_.text,j))),z}function E(A,f,P){var D;if(P.parent.parent.kind===220){var l=P.parent.parent,_=P.parent===l.left?l.right:l.left,J=A.getWidenedType(A.getBaseTypeOfLiteralType(A.getTypeAtLocation(_)));D=A.typeToTypeNode(J,f,1)}else{var w=A.getContextualType(P.parent);D=w?A.typeToTypeNode(w,void 0,1):void 0}return D||e.factory.createKeywordTypeNode(130)}function ue(A,f,P,D,l,_){var J=e.factory.createPropertyDeclaration(void 0,_?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(_)):void 0,D,void 0,l,void 0),w=B(P);w?A.insertNodeAfter(f,w,J):A.insertNodeAtClassStart(f,P,J)}function B(A){for(var f,P=0,D=A.members;P<D.length;P++){var l=D[P];if(!e.isPropertyDeclaration(l))break;f=l}return f}function re(A,f,P,D,l){var _=e.factory.createKeywordTypeNode(149),J=e.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,_,void 0),w=e.factory.createIndexSignature(void 0,void 0,[J],l),j=e.textChanges.ChangeTracker.with(A,function(U){return U.insertNodeAtClassStart(f,P,w)});return O.createCodeFixActionWithoutFixAll(L,j,[e.Diagnostics.Add_index_signature_for_property_0,D])}function M(A,f){var P=f.parentDeclaration,D=f.declSourceFile,l=f.modifierFlags,_=f.token,J=f.call;if(J!==void 0&&!e.isPrivateIdentifier(_)){var w=_.text,j=function(z){return e.textChanges.ChangeTracker.with(A,function(y){return x(A,y,J,_,z,P,D)})},U=[O.createCodeFixAction(L,j(l&32),[l&32?e.Diagnostics.Declare_static_method_0:e.Diagnostics.Declare_method_0,w],L,e.Diagnostics.Add_all_missing_members)];return l&8&&U.unshift(O.createCodeFixActionWithoutFixAll(L,j(8),[e.Diagnostics.Declare_private_method_0,w])),U}}function x(A,f,P,D,l,_,J){var w=O.createImportAdder(J,A.program,A.preferences,A.host),j=O.createSignatureDeclarationFromCallExpression(168,A,w,P,D,l,_),U=e.findAncestor(P,function(z){return e.isMethodDeclaration(z)||e.isConstructorDeclaration(z)});U&&U.parent===_?f.insertNodeAfter(J,U,j):f.insertNodeAtClassStart(J,_,j),w.writeFixes(f)}function ie(A,f,P){var D=P.token,l=P.parentDeclaration,_=e.some(l.members,function(w){var j=f.getTypeAtLocation(w);return!!(j&&j.flags&402653316)}),J=e.factory.createEnumMember(D,_?e.factory.createStringLiteral(D.text):void 0);A.replaceNode(l.getSourceFile(),l,e.factory.updateEnumDeclaration(l,l.decorators,l.modifiers,l.name,e.concatenate(l.members,e.singleElementArray(J))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude})}function _e(A,f,P){var D=O.createImportAdder(f.sourceFile,f.program,f.preferences,f.host),l=O.createSignatureDeclarationFromCallExpression(255,f,D,P.call,e.idText(P.token),P.modifierFlags,P.parentDeclaration);A.insertNodeAtEndOfScope(P.sourceFile,P.parentDeclaration,l)}function Y(A,f,P){var D=O.createImportAdder(f.sourceFile,f.program,f.preferences,f.host),l=e.getQuotePreference(f.sourceFile,f.preferences),_=f.program.getTypeChecker(),J=P.parentDeclaration.attributes,w=e.some(J.properties,e.isJsxSpreadAttribute),j=e.map(P.attributes,function(y){var oe=k(f,_,D,l,_.getTypeOfSymbol(y)),ve=e.factory.createIdentifier(y.name),ce=e.factory.createJsxAttribute(ve,e.factory.createJsxExpression(void 0,oe));return e.setParent(ve,ce),ce}),U=e.factory.createJsxAttributes(w?qe(qe([],j,!0),J.properties,!0):qe(qe([],J.properties,!0),j,!0)),z={prefix:J.pos===J.end?" ":void 0};A.replaceNode(f.sourceFile,J,U,z)}function Z(A,f,P){var D=O.createImportAdder(f.sourceFile,f.program,f.preferences,f.host),l=e.getQuotePreference(f.sourceFile,f.preferences),_=e.getEmitScriptTarget(f.program.getCompilerOptions()),J=f.program.getTypeChecker(),w=e.map(P.properties,function(U){var z=k(f,J,D,l,J.getTypeOfSymbol(U));return e.factory.createPropertyAssignment(e.createPropertyNameNodeForIdentifierOrLiteral(U.name,_,l===0),z)}),j={leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,indentation:P.indentation};A.replaceNode(f.sourceFile,P.parentDeclaration,e.factory.createObjectLiteralExpression(qe(qe([],P.parentDeclaration.properties,!0),w,!0),!0),j)}function k(A,f,P,D,l){if(l.flags&3)return I();if(l.flags&134217732)return e.factory.createStringLiteral("",D===0);if(l.flags&8)return e.factory.createNumericLiteral(0);if(l.flags&64)return e.factory.createBigIntLiteral("0n");if(l.flags&16)return e.factory.createFalse();if(l.flags&1056){var _=l.symbol.exports?e.firstOrUndefined(e.arrayFrom(l.symbol.exports.values())):l.symbol,J=f.symbolToExpression(l.symbol.parent?l.symbol.parent:l.symbol,111551,void 0,void 0);return _===void 0||J===void 0?e.factory.createNumericLiteral(0):e.factory.createPropertyAccessExpression(J,f.symbolToString(_))}if(l.flags&256)return e.factory.createNumericLiteral(l.value);if(l.flags&2048)return e.factory.createBigIntLiteral(l.value);if(l.flags&128)return e.factory.createStringLiteral(l.value,D===0);if(l.flags&512)return l===f.getFalseType()||l===f.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(l.flags&65536)return e.factory.createNull();if(l.flags&1048576){var w=e.firstDefined(l.types,function(ce){return k(A,f,P,D,ce)});return w!=null?w:I()}if(f.isArrayLikeType(l))return e.factory.createArrayLiteralExpression();if(ne(l)){var j=e.map(f.getPropertiesOfType(l),function(ce){var m=ce.valueDeclaration?k(A,f,P,D,f.getTypeAtLocation(ce.valueDeclaration)):I();return e.factory.createPropertyAssignment(ce.name,m)});return e.factory.createObjectLiteralExpression(j,!0)}if(e.getObjectFlags(l)&16){var U=e.find(l.symbol.declarations||e.emptyArray,e.or(e.isFunctionTypeNode,e.isMethodSignature,e.isMethodDeclaration));if(U===void 0)return I();var z=f.getSignaturesOfType(l,0);if(z===void 0)return I();var y=O.createSignatureDeclarationFromSignature(212,A,D,z[0],O.createStubbedBody(e.Diagnostics.Function_not_implemented.message,D),void 0,void 0,void 0,void 0,P);return y!=null?y:I()}if(e.getObjectFlags(l)&1){var oe=e.getClassLikeDeclarationOfSymbol(l.symbol);if(oe===void 0||e.hasAbstractModifier(oe))return I();var ve=e.getFirstConstructorWithBody(oe);return ve&&e.length(ve.parameters)?I():e.factory.createNewExpression(e.factory.createIdentifier(l.symbol.name),void 0,void 0)}return I()}function I(){return e.factory.createIdentifier("undefined")}function ne(A){return A.flags&524288&&(e.getObjectFlags(A)&128||A.symbol&&e.tryCast(e.singleOrUndefined(A.symbol.declarations),e.isTypeLiteralNode))}function ee(A,f,P){var D=A.getContextualType(P.attributes);if(D===void 0)return e.emptyArray;var l=D.getProperties();if(!e.length(l))return e.emptyArray;for(var _=new e.Set,J=0,w=P.attributes.properties;J<w.length;J++){var j=w[J];if(e.isJsxAttribute(j)&&_.add(j.name.escapedText),e.isJsxSpreadAttribute(j))for(var U=A.getTypeAtLocation(j.expression),z=0,y=U.getProperties();z<y.length;z++){var oe=y[z];_.add(oe.escapedName)}}return e.filter(l,function(ve){return e.isIdentifierText(ve.name,f,1)&&!(ve.flags&16777216||e.getCheckFlags(ve)&48||_.has(ve.escapedName))})}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="addMissingNewOperator",W=[e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(pe){var F=pe.sourceFile,g=pe.span,S=e.textChanges.ChangeTracker.with(pe,function(H){return N(H,F,g)});return[O.createCodeFixAction(L,S,e.Diagnostics.Add_missing_new_operator_to_call,L,e.Diagnostics.Add_missing_new_operator_to_all_calls)]},fixIds:[L],getAllCodeActions:function(pe){return O.codeFixAll(pe,W,function(F,g){return N(F,pe.sourceFile,g)})}});function N(pe,F,g){var S=e.cast(Q(F,g),e.isCallExpression),H=e.factory.createNewExpression(S.expression,S.typeArguments,S.arguments);pe.replaceNode(F,S,H)}function Q(pe,F){for(var g=e.getTokenAtPosition(pe,F.start),S=e.textSpanEnd(F);g.end<S;)g=g.parent;return g}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixCannotFindModule",W="installTypesPackage",N=e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations.code,Q=[N,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];O.registerCodeFix({errorCodes:Q,getCodeActions:function(H){var se=H.host,p=H.sourceFile,C=H.span.start,G=F(p,C);if(G!==void 0){var E=g(G,se,H.errorCode);return E===void 0?[]:[O.createCodeFixAction(L,[],[e.Diagnostics.Install_0,E],W,e.Diagnostics.Install_all_missing_types_packages,pe(p.fileName,E))]}},fixIds:[W],getAllCodeActions:function(S){return O.codeFixAll(S,Q,function(H,se,p){var C=F(se.file,se.start);if(C!==void 0)switch(S.fixId){case W:{var G=g(C,S.host,se.code);G&&p.push(pe(se.file.fileName,G));break}default:e.Debug.fail("Bad fixId: ".concat(S.fixId))}})}});function pe(S,H){return{type:"install package",file:S,packageName:H}}function F(S,H){var se=e.tryCast(e.getTokenAtPosition(S,H),e.isStringLiteral);if(!!se){var p=se.text,C=e.parsePackageName(p).packageName;return e.isExternalModuleNameRelative(C)?void 0:C}}function g(S,H,se){var p;return se===N?e.JsTyping.nodeCoreModules.has(S)?"@types/node":void 0:!((p=H.isKnownTypesPackageName)===null||p===void 0)&&p.call(H,S)?e.getTypesPackageName(S):void 0}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L=[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],W="fixClassDoesntImplementInheritedAbstractMember";O.registerCodeFix({errorCodes:L,getCodeActions:function(g){var S=g.sourceFile,H=g.span,se=e.textChanges.ChangeTracker.with(g,function(p){return Q(N(S,H.start),S,g,p,g.preferences)});return se.length===0?void 0:[O.createCodeFixAction(W,se,e.Diagnostics.Implement_inherited_abstract_class,W,e.Diagnostics.Implement_all_inherited_abstract_classes)]},fixIds:[W],getAllCodeActions:function(g){var S=new e.Map;return O.codeFixAll(g,L,function(H,se){var p=N(se.file,se.start);e.addToSeen(S,e.getNodeId(p))&&Q(p,g.sourceFile,g,H,g.preferences)})}});function N(F,g){var S=e.getTokenAtPosition(F,g);return e.cast(S.parent,e.isClassLike)}function Q(F,g,S,H,se){var p=e.getEffectiveBaseTypeNode(F),C=S.program.getTypeChecker(),G=C.getTypeAtLocation(p),E=C.getPropertiesOfType(G).filter(pe),ue=O.createImportAdder(g,S.program,se,S.host);O.createMissingMemberNodes(F,E,g,S,se,ue,function(B){return H.insertNodeAtClassStart(g,F,B)}),ue.writeFixes(H)}function pe(F){var g=e.getSyntacticModifierFlags(e.first(F.getDeclarations()));return!(g&8)&&!!(g&128)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="classSuperMustPrecedeThisAccess",W=[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(F){var g=F.sourceFile,S=F.span,H=Q(g,S.start);if(!!H){var se=H.constructor,p=H.superCall,C=e.textChanges.ChangeTracker.with(F,function(G){return N(G,g,se,p)});return[O.createCodeFixAction(L,C,e.Diagnostics.Make_super_call_the_first_statement_in_the_constructor,L,e.Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)]}},fixIds:[L],getAllCodeActions:function(F){var g=F.sourceFile,S=new e.Map;return O.codeFixAll(F,W,function(H,se){var p=Q(se.file,se.start);if(!!p){var C=p.constructor,G=p.superCall;e.addToSeen(S,e.getNodeId(C.parent))&&N(H,g,C,G)}})}});function N(F,g,S,H){F.insertNodeAtConstructorStart(g,S,H),F.delete(g,H)}function Q(F,g){var S=e.getTokenAtPosition(F,g);if(S.kind===108){var H=e.getContainingFunction(S),se=pe(H.body);return se&&!se.expression.arguments.some(function(p){return e.isPropertyAccessExpression(p)&&p.expression===S})?{constructor:H,superCall:se}:void 0}}function pe(F){return e.isExpressionStatement(F)&&e.isSuperCall(F.expression)?F:e.isFunctionLike(F)?void 0:e.forEachChild(F,pe)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="constructorForDerivedNeedSuperCall",W=[e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(pe){var F=pe.sourceFile,g=pe.span,S=N(F,g.start),H=e.textChanges.ChangeTracker.with(pe,function(se){return Q(se,F,S)});return[O.createCodeFixAction(L,H,e.Diagnostics.Add_missing_super_call,L,e.Diagnostics.Add_all_missing_super_calls)]},fixIds:[L],getAllCodeActions:function(pe){return O.codeFixAll(pe,W,function(F,g){return Q(F,pe.sourceFile,N(g.file,g.start))})}});function N(pe,F){var g=e.getTokenAtPosition(pe,F);return e.Debug.assert(e.isConstructorDeclaration(g.parent),"token should be at the constructor declaration"),g.parent}function Q(pe,F,g){var S=e.factory.createExpressionStatement(e.factory.createCallExpression(e.factory.createSuper(),void 0,e.emptyArray));pe.insertNodeAtConstructorStart(F,g,S)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="enableExperimentalDecorators",W=[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];O.registerCodeFix({errorCodes:W,getCodeActions:function(pe){var F=pe.program.getCompilerOptions().configFile;if(F!==void 0){var g=e.textChanges.ChangeTracker.with(pe,function(S){return N(S,F)});return[O.createCodeFixActionWithoutFixAll(L,g,e.Diagnostics.Enable_the_experimentalDecorators_option_in_your_configuration_file)]}},fixIds:[L],getAllCodeActions:function(Q){return O.codeFixAll(Q,W,function(pe){var F=Q.program.getCompilerOptions().configFile;F!==void 0&&N(pe,F)})}});function N(Q,pe){O.setJsonCompilerOptionValue(Q,pe,"experimentalDecorators",e.factory.createTrue())}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixEnableJsxFlag",W=[e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(pe){var F=pe.program.getCompilerOptions().configFile;if(F!==void 0){var g=e.textChanges.ChangeTracker.with(pe,function(S){return N(S,F)});return[O.createCodeFixActionWithoutFixAll(L,g,e.Diagnostics.Enable_the_jsx_flag_in_your_configuration_file)]}},fixIds:[L],getAllCodeActions:function(Q){return O.codeFixAll(Q,W,function(pe){var F=Q.program.getCompilerOptions().configFile;F!==void 0&&N(pe,F)})}});function N(Q,pe){O.setJsonCompilerOptionValue(Q,pe,"jsx",e.factory.createStringLiteral("react"))}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){O.registerCodeFix({errorCodes:[e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(W){var N=W.program.getCompilerOptions(),Q=N.configFile;if(Q!==void 0){var pe=[],F=e.getEmitModuleKind(N),g=F>=e.ModuleKind.ES2015&&F<e.ModuleKind.ESNext;if(g){var S=e.textChanges.ChangeTracker.with(W,function(p){O.setJsonCompilerOptionValue(p,Q,"module",e.factory.createStringLiteral("esnext"))});pe.push(O.createCodeFixActionWithoutFixAll("fixModuleOption",S,[e.Diagnostics.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}var H=e.getEmitScriptTarget(N),se=H<4||H>99;if(se){var S=e.textChanges.ChangeTracker.with(W,function(C){var G=e.getTsConfigObjectLiteralExpression(Q);if(!!G){var E=[["target",e.factory.createStringLiteral("es2017")]];F===e.ModuleKind.CommonJS&&E.push(["module",e.factory.createStringLiteral("commonjs")]),O.setJsonCompilerOptionValues(C,Q,E)}});pe.push(O.createCodeFixActionWithoutFixAll("fixTargetOption",S,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return pe.length?pe:void 0}}})})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixPropertyAssignment",W=[e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];O.registerCodeFix({errorCodes:W,fixIds:[L],getCodeActions:function(pe){var F=pe.sourceFile,g=pe.span,S=Q(F,g.start),H=e.textChanges.ChangeTracker.with(pe,function(se){return N(se,pe.sourceFile,S)});return[O.createCodeFixAction(L,H,[e.Diagnostics.Change_0_to_1,"=",":"],L,[e.Diagnostics.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:function(pe){return O.codeFixAll(pe,W,function(F,g){return N(F,g.file,Q(g.file,g.start))})}});function N(pe,F,g){pe.replaceNode(F,g,e.factory.createPropertyAssignment(g.name,g.objectAssignmentInitializer))}function Q(pe,F){return e.cast(e.getTokenAtPosition(pe,F).parent,e.isShorthandPropertyAssignment)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="extendsInterfaceBecomesImplements",W=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(pe){var F=pe.sourceFile,g=N(F,pe.span.start);if(!!g){var S=g.extendsToken,H=g.heritageClauses,se=e.textChanges.ChangeTracker.with(pe,function(p){return Q(p,F,S,H)});return[O.createCodeFixAction(L,se,e.Diagnostics.Change_extends_to_implements,L,e.Diagnostics.Change_all_extended_interfaces_to_implements)]}},fixIds:[L],getAllCodeActions:function(pe){return O.codeFixAll(pe,W,function(F,g){var S=N(g.file,g.start);S&&Q(F,g.file,S.extendsToken,S.heritageClauses)})}});function N(pe,F){var g=e.getTokenAtPosition(pe,F),S=e.getContainingClass(g).heritageClauses,H=S[0].getFirstToken();return H.kind===94?{extendsToken:H,heritageClauses:S}:void 0}function Q(pe,F,g,S){if(pe.replaceNode(F,g,e.factory.createToken(117)),S.length===2&&S[0].token===94&&S[1].token===117){var H=S[1].getFirstToken(),se=H.getFullStart();pe.replaceRange(F,{pos:se,end:se},e.factory.createToken(27));for(var p=F.text,C=H.end;C<p.length&&e.isWhiteSpaceSingleLine(p.charCodeAt(C));)C++;pe.deleteRange(F,{pos:H.getStart(),end:C})}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="forgottenThisPropertyAccess",W=e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,N=[e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,W];O.registerCodeFix({errorCodes:N,getCodeActions:function(F){var g=F.sourceFile,S=Q(g,F.span.start,F.errorCode);if(!!S){var H=e.textChanges.ChangeTracker.with(F,function(se){return pe(se,g,S)});return[O.createCodeFixAction(L,H,[e.Diagnostics.Add_0_to_unresolved_variable,S.className||"this"],L,e.Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]}},fixIds:[L],getAllCodeActions:function(F){return O.codeFixAll(F,N,function(g,S){var H=Q(S.file,S.start,S.code);H&&pe(g,F.sourceFile,H)})}});function Q(F,g,S){var H=e.getTokenAtPosition(F,g);if(e.isIdentifier(H)||e.isPrivateIdentifier(H))return{node:H,className:S===W?e.getContainingClass(H).name.text:void 0}}function pe(F,g,S){var H=S.node,se=S.className;e.suppressLeadingAndTrailingTrivia(H),F.replaceNode(g,H,e.factory.createPropertyAccessExpression(se?e.factory.createIdentifier(se):e.factory.createThis(),H))}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixInvalidJsxCharacters_expression",W="fixInvalidJsxCharacters_htmlEntity",N=[e.Diagnostics.Unexpected_token_Did_you_mean_or_gt.code,e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace.code];O.registerCodeFix({errorCodes:N,fixIds:[L,W],getCodeActions:function(g){var S=g.sourceFile,H=g.preferences,se=g.span,p=e.textChanges.ChangeTracker.with(g,function(G){return F(G,H,S,se.start,!1)}),C=e.textChanges.ChangeTracker.with(g,function(G){return F(G,H,S,se.start,!0)});return[O.createCodeFixAction(L,p,e.Diagnostics.Wrap_invalid_character_in_an_expression_container,L,e.Diagnostics.Wrap_all_invalid_characters_in_an_expression_container),O.createCodeFixAction(W,C,e.Diagnostics.Convert_invalid_character_to_its_html_entity_code,W,e.Diagnostics.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:function(g){return O.codeFixAll(g,N,function(S,H){return F(S,g.preferences,H.file,H.start,g.fixId===W)})}});var Q={">":"&gt;","}":"&rbrace;"};function pe(g){return e.hasProperty(Q,g)}function F(g,S,H,se,p){var C=H.getText()[se];if(!!pe(C)){var G=p?Q[C]:"{".concat(e.quote(H,S,C),"}");g.replaceRangeWithText(H,{pos:se,end:se+1},G)}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="deleteUnmatchedParameter",W="renameUnmatchedParameter",N=[e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];O.registerCodeFix({fixIds:[L,W],errorCodes:N,getCodeActions:function(S){var H=S.sourceFile,se=S.span,p=[],C=F(H,se.start);if(C)return e.append(p,Q(S,C)),e.append(p,pe(S,C)),p},getAllCodeActions:function(S){var H=new e.Map;return O.createCombinedCodeActions(e.textChanges.ChangeTracker.with(S,function(se){O.eachDiagnostic(S,N,function(p){var C=p.file,G=p.start,E=F(C,G);E&&H.set(E.signature,e.append(H.get(E.signature),E.jsDocParameterTag))}),H.forEach(function(p,C){if(S.fixId===L){var G=new e.Set(p);se.filterJSDocTags(C.getSourceFile(),C,function(E){return!G.has(E)})}})}))}});function Q(g,S){var H=S.name,se=S.signature,p=S.jsDocParameterTag,C=e.textChanges.ChangeTracker.with(g,function(G){return G.filterJSDocTags(g.sourceFile,se,function(E){return E!==p})});return O.createCodeFixAction(L,C,[e.Diagnostics.Delete_unused_param_tag_0,H.getText(g.sourceFile)],L,e.Diagnostics.Delete_all_unused_param_tags)}function pe(g,S){var H=S.name,se=S.signature,p=S.jsDocParameterTag;if(!!e.length(se.parameters)){for(var C=g.sourceFile,G=e.getJSDocTags(se),E=new e.Set,ue=0,B=G;ue<B.length;ue++){var re=B[ue];e.isJSDocParameterTag(re)&&e.isIdentifier(re.name)&&E.add(re.name.escapedText)}var M=e.firstDefined(se.parameters,function(_e){return e.isIdentifier(_e.name)&&!E.has(_e.name.escapedText)?_e.name.getText(C):void 0});if(M!==void 0){var x=e.factory.updateJSDocParameterTag(p,p.tagName,e.factory.createIdentifier(M),p.isBracketed,p.typeExpression,p.isNameFirst,p.comment),ie=e.textChanges.ChangeTracker.with(g,function(_e){return _e.replaceJSDocComment(C,se,e.map(G,function(Y){return Y===p?x:Y}))});return O.createCodeFixActionWithoutFixAll(W,ie,[e.Diagnostics.Rename_param_tag_name_0_to_1,H.getText(C),M])}}}function F(g,S){var H=e.getTokenAtPosition(g,S);if(H.parent&&e.isJSDocParameterTag(H.parent)&&e.isIdentifier(H.parent.name)){var se=H.parent,p=e.getHostSignatureFromJSDoc(se);if(p)return{signature:p,name:H.parent.name,jsDocParameterTag:se}}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="unusedIdentifier",W="unusedIdentifier_prefix",N="unusedIdentifier_delete",Q="unusedIdentifier_deleteImports",pe="unusedIdentifier_infer",F=[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];O.registerCodeFix({errorCodes:F,getCodeActions:function(I){var ne=I.errorCode,ee=I.sourceFile,A=I.program,f=I.cancellationToken,P=A.getTypeChecker(),D=A.getSourceFiles(),l=e.getTokenAtPosition(ee,I.span.start);if(e.isJSDocTemplateTag(l))return[S(e.textChanges.ChangeTracker.with(I,function(ve){return ve.delete(ee,l)}),e.Diagnostics.Remove_template_tag)];if(l.kind===29){var _=e.textChanges.ChangeTracker.with(I,function(ve){return H(ve,ee,l)});return[S(_,e.Diagnostics.Remove_type_parameters)]}var J=p(l);if(J){var _=e.textChanges.ChangeTracker.with(I,function(ce){return ce.delete(ee,J)});return[O.createCodeFixAction(L,_,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(J)],Q,e.Diagnostics.Delete_all_unused_imports)]}else if(se(l)){var w=e.textChanges.ChangeTracker.with(I,function(ve){return re(ee,l,ve,P,D,A,f,!1)});if(w.length)return[O.createCodeFixAction(L,w,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,l.getText(ee)],Q,e.Diagnostics.Delete_all_unused_imports)]}if(e.isObjectBindingPattern(l.parent)||e.isArrayBindingPattern(l.parent)){if(e.isParameter(l.parent.parent)){var j=l.parent.elements,U=[j.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(j,function(ve){return ve.getText(ee)}).join(", ")];return[S(e.textChanges.ChangeTracker.with(I,function(ve){return E(ve,ee,l.parent)}),U)]}return[S(e.textChanges.ChangeTracker.with(I,function(ve){return ve.delete(ee,l.parent.parent)}),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(C(ee,l))return[S(e.textChanges.ChangeTracker.with(I,function(ve){return G(ve,ee,l.parent)}),e.Diagnostics.Remove_variable_statement)];var z=[];if(l.kind===137){var _=e.textChanges.ChangeTracker.with(I,function(ce){return g(ce,ee,l)}),y=e.cast(l.parent,e.isInferTypeNode).typeParameter.name.text;z.push(O.createCodeFixAction(L,_,[e.Diagnostics.Replace_infer_0_with_unknown,y],pe,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var w=e.textChanges.ChangeTracker.with(I,function(ce){return re(ee,l,ce,P,D,A,f,!1)});if(w.length){var y=e.isComputedPropertyName(l.parent)?l.parent:l;z.push(S(w,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,y.getText(ee)]))}}var oe=e.textChanges.ChangeTracker.with(I,function(ve){return ue(ve,ne,ee,l)});return oe.length&&z.push(O.createCodeFixAction(L,oe,[e.Diagnostics.Prefix_0_with_an_underscore,l.getText(ee)],W,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),z},fixIds:[W,N,Q,pe],getAllCodeActions:function(I){var ne=I.sourceFile,ee=I.program,A=I.cancellationToken,f=ee.getTypeChecker(),P=ee.getSourceFiles();return O.codeFixAll(I,F,function(D,l){var _=e.getTokenAtPosition(ne,l.start);switch(I.fixId){case W:ue(D,l.code,ne,_);break;case Q:{var J=p(_);J?D.delete(ne,J):se(_)&&re(ne,_,D,f,P,ee,A,!0);break}case N:{if(_.kind===137||se(_))break;if(e.isJSDocTemplateTag(_))D.delete(ne,_);else if(_.kind===29)H(D,ne,_);else if(e.isObjectBindingPattern(_.parent)){if(_.parent.parent.initializer)break;(!e.isParameter(_.parent.parent)||ie(_.parent.parent,f,P))&&D.delete(ne,_.parent.parent)}else{if(e.isArrayBindingPattern(_.parent.parent)&&_.parent.parent.parent.initializer)break;C(ne,_)?G(D,ne,_.parent):re(ne,_,D,f,P,ee,A,!0)}break}case pe:_.kind===137&&g(D,ne,_);break;default:e.Debug.fail(JSON.stringify(I.fixId))}})}});function g(I,ne,ee){I.replaceNode(ne,ee.parent,e.factory.createKeywordTypeNode(154))}function S(I,ne){return O.createCodeFixAction(L,I,ne,N,e.Diagnostics.Delete_all_unused_declarations)}function H(I,ne,ee){I.delete(ne,e.Debug.checkDefined(e.cast(ee.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function se(I){return I.kind===100||I.kind===79&&(I.parent.kind===269||I.parent.kind===266)}function p(I){return I.kind===100?e.tryCast(I.parent,e.isImportDeclaration):void 0}function C(I,ne){return e.isVariableDeclarationList(ne.parent)&&e.first(ne.parent.getChildren(I))===ne}function G(I,ne,ee){I.delete(ne,ee.parent.kind===236?ee.parent:ee)}function E(I,ne,ee){e.forEach(ee.elements,function(A){return I.delete(ne,A)})}function ue(I,ne,ee,A){ne!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(A.kind===137&&(A=e.cast(A.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(A)&&B(A)&&(I.replaceNode(ee,A,e.factory.createIdentifier("_".concat(A.text))),e.isParameter(A.parent)&&e.getJSDocParameterTags(A.parent).forEach(function(f){e.isIdentifier(f.name)&&I.replaceNode(ee,f.name,e.factory.createIdentifier("_".concat(f.name.text)))})))}function B(I){switch(I.parent.kind){case 163:case 162:return!0;case 253:{var ne=I.parent;switch(ne.parent.parent.kind){case 243:case 242:return!0}}}return!1}function re(I,ne,ee,A,f,P,D,l){M(ne,ee,I,A,f,P,D,l),e.isIdentifier(ne)&&e.FindAllReferences.Core.eachSymbolReferenceInFile(ne,A,I,function(_){e.isPropertyAccessExpression(_.parent)&&_.parent.name===_&&(_=_.parent),!l&&k(_)&&ee.delete(I,_.parent.parent)})}function M(I,ne,ee,A,f,P,D,l){var _=I.parent;if(e.isParameter(_))x(ne,ee,_,A,f,P,D,l);else if(!(l&&e.isIdentifier(I)&&e.FindAllReferences.Core.isSymbolReferencedInFile(I,A,ee))){var J=e.isImportClause(_)?I:e.isComputedPropertyName(_)?_.parent:_;e.Debug.assert(J!==ee,"should not delete whole source file"),ne.delete(ee,J)}}function x(I,ne,ee,A,f,P,D,l){l===void 0&&(l=!1),_e(A,ne,ee,f,P,D,l)&&(ee.modifiers&&ee.modifiers.length>0&&(!e.isIdentifier(ee.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(ee.name,A,ne))?ee.modifiers.forEach(function(_){return I.deleteModifier(ne,_)}):!ee.initializer&&ie(ee,A,f)&&I.delete(ne,ee))}function ie(I,ne,ee){var A=I.parent.parameters.indexOf(I);return!e.FindAllReferences.Core.someSignatureUsage(I.parent,ee,ne,function(f,P){return!P||P.arguments.length>A})}function _e(I,ne,ee,A,f,P,D){var l=ee.parent;switch(l.kind){case 168:case 170:var _=l.parameters.indexOf(ee),J=e.isMethodDeclaration(l)?l.name:l,w=e.FindAllReferences.Core.getReferencedSymbolsForNode(l.pos,J,f,A,P);if(w)for(var j=0,U=w;j<U.length;j++)for(var z=U[j],y=0,oe=z.references;y<oe.length;y++){var ve=oe[y];if(ve.kind===1){var ce=e.isSuperKeyword(ve.node)&&e.isCallExpression(ve.node.parent)&&ve.node.parent.arguments.length>_,m=e.isPropertyAccessExpression(ve.node.parent)&&e.isSuperKeyword(ve.node.parent.expression)&&e.isCallExpression(ve.node.parent.parent)&&ve.node.parent.parent.arguments.length>_,de=(e.isMethodDeclaration(ve.node.parent)||e.isMethodSignature(ve.node.parent))&&ve.node.parent!==ee.parent&&ve.node.parent.parameters.length>_;if(ce||m||de)return!1}}return!0;case 255:return l.name&&Y(I,ne,l.name)?Z(l,ee,D):!0;case 212:case 213:return Z(l,ee,D);case 172:return!1;case 171:return!0;default:return e.Debug.failBadSyntaxKind(l)}}function Y(I,ne,ee){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(ee,I,ne,function(A){return e.isIdentifier(A)&&e.isCallExpression(A.parent)&&A.parent.arguments.indexOf(A)>=0})}function Z(I,ne,ee){var A=I.parameters,f=A.indexOf(ne);return e.Debug.assert(f!==-1,"The parameter should already be in the list"),ee?A.slice(f+1).every(function(P){return e.isIdentifier(P.name)&&!P.symbol.isReferenced}):f===A.length-1}function k(I){return(e.isBinaryExpression(I.parent)&&I.parent.left===I||(e.isPostfixUnaryExpression(I.parent)||e.isPrefixUnaryExpression(I.parent))&&I.parent.operand===I)&&e.isExpressionStatement(I.parent.parent)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixUnreachableCode",W=[e.Diagnostics.Unreachable_code_detected.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(pe){var F=pe.program.getSyntacticDiagnostics(pe.sourceFile,pe.cancellationToken);if(!F.length){var g=e.textChanges.ChangeTracker.with(pe,function(S){return N(S,pe.sourceFile,pe.span.start,pe.span.length,pe.errorCode)});return[O.createCodeFixAction(L,g,e.Diagnostics.Remove_unreachable_code,L,e.Diagnostics.Remove_all_unreachable_code)]}},fixIds:[L],getAllCodeActions:function(pe){return O.codeFixAll(pe,W,function(F,g){return N(F,g.file,g.start,g.length,g.code)})}});function N(pe,F,g,S,H){var se=e.getTokenAtPosition(F,g),p=e.findAncestor(se,e.isStatement);if(p.getStart(F)!==se.getStart(F)){var C=JSON.stringify({statementKind:e.Debug.formatSyntaxKind(p.kind),tokenKind:e.Debug.formatSyntaxKind(se.kind),errorCode:H,start:g,length:S});e.Debug.fail("Token and statement should start at the same point. "+C)}var G=(e.isBlock(p.parent)?p.parent:p).parent;if(!e.isBlock(p.parent)||p===e.first(p.parent.statements))switch(G.kind){case 238:if(G.elseStatement){if(e.isBlock(p.parent))break;pe.replaceNode(F,p,e.factory.createBlock(e.emptyArray));return}case 240:case 241:pe.delete(F,G);return}if(e.isBlock(p.parent)){var E=g+S,ue=e.Debug.checkDefined(Q(e.sliceAfter(p.parent.statements,p),function(B){return B.pos<E}),"Some statement should be last");pe.deleteNodeRange(F,p,ue)}else pe.delete(F,p)}function Q(pe,F){for(var g,S=0,H=pe;S<H.length;S++){var se=H[S];if(!F(se))break;g=se}return g}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixUnusedLabel",W=[e.Diagnostics.Unused_label.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(Q){var pe=e.textChanges.ChangeTracker.with(Q,function(F){return N(F,Q.sourceFile,Q.span.start)});return[O.createCodeFixAction(L,pe,e.Diagnostics.Remove_unused_label,L,e.Diagnostics.Remove_all_unused_labels)]},fixIds:[L],getAllCodeActions:function(Q){return O.codeFixAll(Q,W,function(pe,F){return N(pe,F.file,F.start)})}});function N(Q,pe,F){var g=e.getTokenAtPosition(pe,F),S=e.cast(g.parent,e.isLabeledStatement),H=g.getStart(pe),se=S.statement.getStart(pe),p=e.positionsAreOnSameLine(H,se,pe)?se:e.skipTrivia(pe.text,e.findChildOfKind(S,58,pe).end,!0);Q.deleteRange(pe,{pos:H,end:p})}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixJSDocTypes_plain",W="fixJSDocTypes_nullable",N=[e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code];O.registerCodeFix({errorCodes:N,getCodeActions:function(g){var S=g.sourceFile,H=g.program.getTypeChecker(),se=pe(S,g.span.start,H);if(!se)return;var p=se.typeNode,C=se.type,G=p.getText(S),E=[ue(C,L,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];return p.kind===312&&E.push(ue(H.getNullableType(C,32768),W,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),E;function ue(B,re,M){var x=e.textChanges.ChangeTracker.with(g,function(ie){return Q(ie,S,p,B,H)});return O.createCodeFixAction("jdocTypes",x,[e.Diagnostics.Change_0_to_1,G,H.typeToString(B)],re,M)}},fixIds:[L,W],getAllCodeActions:function(g){var S=g.fixId,H=g.program,se=g.sourceFile,p=H.getTypeChecker();return O.codeFixAll(g,N,function(C,G){var E=pe(G.file,G.start,p);if(!!E){var ue=E.typeNode,B=E.type,re=ue.kind===312&&S===W?p.getNullableType(B,32768):B;Q(C,se,ue,re,p)}})}});function Q(g,S,H,se,p){g.replaceNode(S,H,p.typeToTypeNode(se,H,void 0))}function pe(g,S,H){var se=e.findAncestor(e.getTokenAtPosition(g,S),F),p=se&&se.type;return p&&{typeNode:p,type:H.getTypeFromTypeNode(p)}}function F(g){switch(g.kind){case 228:case 173:case 174:case 255:case 171:case 175:case 194:case 168:case 167:case 163:case 166:case 165:case 172:case 258:case 210:case 253:return!0;default:return!1}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixMissingCallParentheses",W=[e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];O.registerCodeFix({errorCodes:W,fixIds:[L],getCodeActions:function(pe){var F=pe.sourceFile,g=pe.span,S=Q(F,g.start);if(!!S){var H=e.textChanges.ChangeTracker.with(pe,function(se){return N(se,pe.sourceFile,S)});return[O.createCodeFixAction(L,H,e.Diagnostics.Add_missing_call_parentheses,L,e.Diagnostics.Add_all_missing_call_parentheses)]}},getAllCodeActions:function(pe){return O.codeFixAll(pe,W,function(F,g){var S=Q(g.file,g.start);S&&N(F,g.file,S)})}});function N(pe,F,g){pe.replaceNodeWithText(F,g,"".concat(g.text,"()"))}function Q(pe,F){var g=e.getTokenAtPosition(pe,F);if(e.isPropertyAccessExpression(g.parent)){for(var S=g.parent;e.isPropertyAccessExpression(S.parent);)S=S.parent;return S.name}if(e.isIdentifier(g))return g}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixAwaitInSyncFunction",W=[e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(F){var g=F.sourceFile,S=F.span,H=Q(g,S.start);if(!!H){var se=e.textChanges.ChangeTracker.with(F,function(p){return pe(p,g,H)});return[O.createCodeFixAction(L,se,e.Diagnostics.Add_async_modifier_to_containing_function,L,e.Diagnostics.Add_all_missing_async_modifiers)]}},fixIds:[L],getAllCodeActions:function(g){var S=new e.Map;return O.codeFixAll(g,W,function(H,se){var p=Q(se.file,se.start);!p||!e.addToSeen(S,e.getNodeId(p.insertBefore))||pe(H,g.sourceFile,p)})}});function N(F){if(F.type)return F.type;if(e.isVariableDeclaration(F.parent)&&F.parent.type&&e.isFunctionTypeNode(F.parent.type))return F.parent.type.type}function Q(F,g){var S=e.getTokenAtPosition(F,g),H=e.getContainingFunction(S);if(!!H){var se;switch(H.kind){case 168:se=H.name;break;case 255:case 212:se=e.findChildOfKind(H,98,F);break;case 213:var p=H.typeParameters?29:20;se=e.findChildOfKind(H,p,F)||e.first(H.parameters);break;default:return}return se&&{insertBefore:se,returnType:N(H)}}}function pe(F,g,S){var H=S.insertBefore,se=S.returnType;if(se){var p=e.getEntityNameFromTypeNode(se);(!p||p.kind!==79||p.text!=="Promise")&&F.replaceNode(g,se,e.factory.createTypeReferenceNode("Promise",e.factory.createNodeArray([se])))}F.insertModifierBefore(g,131,H)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L=[e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],W="fixPropertyOverrideAccessor";O.registerCodeFix({errorCodes:L,getCodeActions:function(Q){var pe=N(Q.sourceFile,Q.span.start,Q.span.length,Q.errorCode,Q);if(pe)return[O.createCodeFixAction(W,pe,e.Diagnostics.Generate_get_and_set_accessors,W,e.Diagnostics.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[W],getAllCodeActions:function(Q){return O.codeFixAll(Q,L,function(pe,F){var g=N(F.file,F.start,F.length,F.code,Q);if(g)for(var S=0,H=g;S<H.length;S++){var se=H[S];pe.pushRaw(Q.sourceFile,se)}})}});function N(Q,pe,F,g,S){var H,se;if(g===e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)H=pe,se=pe+F;else if(g===e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){var p=S.program.getTypeChecker(),C=e.getTokenAtPosition(Q,pe).parent;e.Debug.assert(e.isAccessor(C),"error span of fixPropertyOverrideAccessor should only be on an accessor");var G=C.parent;e.Debug.assert(e.isClassLike(G),"erroneous accessors should only be inside classes");var E=e.singleOrUndefined(O.getAllSupers(G,p));if(!E)return[];var ue=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(C.name)),B=p.getPropertyOfType(p.getTypeAtLocation(E),ue);if(!B||!B.valueDeclaration)return[];H=B.valueDeclaration.pos,se=B.valueDeclaration.end,Q=e.getSourceFileOfNode(B.valueDeclaration)}else e.Debug.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+g);return O.generateAccessorFromProperty(Q,S.program,H,se,S,e.Diagnostics.Generate_get_and_set_accessors.message)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="inferFromUsage",W=[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];O.registerCodeFix({errorCodes:W,getCodeActions:function(x){var ie=x.sourceFile,_e=x.program,Y=x.span.start,Z=x.errorCode,k=x.cancellationToken,I=x.host,ne=x.preferences,ee=e.getTokenAtPosition(ie,Y),A,f=e.textChanges.ChangeTracker.with(x,function(D){A=pe(D,ie,ee,Z,_e,k,e.returnTrue,I,ne)}),P=A&&e.getNameOfDeclaration(A);return!P||f.length===0?void 0:[O.createCodeFixAction(L,f,[N(Z,ee),e.getTextOfNode(P)],L,e.Diagnostics.Infer_all_types_from_usage)]},fixIds:[L],getAllCodeActions:function(x){var ie=x.sourceFile,_e=x.program,Y=x.cancellationToken,Z=x.host,k=x.preferences,I=e.nodeSeenTracker();return O.codeFixAll(x,W,function(ne,ee){pe(ne,ie,e.getTokenAtPosition(ee.file,ee.start),ee.code,_e,Y,I,Z,k)})}});function N(x,ie){switch(x){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(ie))?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 Q(x){switch(x){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 x}function pe(x,ie,_e,Y,Z,k,I,ne,ee){if(!(!e.isParameterPropertyModifier(_e.kind)&&_e.kind!==79&&_e.kind!==25&&_e.kind!==108)){var A=_e.parent,f=O.createImportAdder(ie,Z,ee,ne);switch(Y=Q(Y),Y){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(A)&&I(A)||e.isPropertyDeclaration(A)||e.isPropertySignature(A))return F(x,f,ie,A,Z,ne,k),f.writeFixes(x),A;if(e.isPropertyAccessExpression(A)){var P=ue(A.name,Z,k),D=e.getTypeNodeIfAccessible(P,A,Z,ne);if(D){var l=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(D),void 0);x.addJSDocTags(ie,e.cast(A.parent.parent,e.isExpressionStatement),[l])}return f.writeFixes(x),A}return;case e.Diagnostics.Variable_0_implicitly_has_an_1_type.code:{var _=Z.getTypeChecker().getSymbolAtLocation(_e);return _&&_.valueDeclaration&&e.isVariableDeclaration(_.valueDeclaration)&&I(_.valueDeclaration)?(F(x,f,e.getSourceFileOfNode(_.valueDeclaration),_.valueDeclaration,Z,ne,k),f.writeFixes(x),_.valueDeclaration):void 0}}var J=e.getContainingFunction(_e);if(J!==void 0){var w;switch(Y){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(e.isSetAccessorDeclaration(J)){se(x,f,ie,J,Z,ne,k),w=J;break}case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(I(J)){var j=e.cast(A,e.isParameter);g(x,f,ie,j,J,Z,ne,k),w=j}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(J)&&e.isIdentifier(J.name)&&(p(x,f,ie,J,ue(J.name,Z,k),Z,ne),w=J);break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:e.isSetAccessorDeclaration(J)&&(se(x,f,ie,J,Z,ne,k),w=J);break;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:e.textChanges.isThisTypeAnnotatable(J)&&I(J)&&(S(x,ie,J,Z,ne,k),w=J);break;default:return e.Debug.fail(String(Y))}return f.writeFixes(x),w}}}function F(x,ie,_e,Y,Z,k,I){e.isIdentifier(Y.name)&&p(x,ie,_e,Y,ue(Y.name,Z,I),Z,k)}function g(x,ie,_e,Y,Z,k,I,ne){if(!!e.isIdentifier(Y.name)){var ee=B(Z,_e,k,ne);if(e.Debug.assert(Z.parameters.length===ee.length,"Parameter count and inference count should match"),e.isInJSFile(Z))G(x,_e,ee,k,I);else{var A=e.isArrowFunction(Z)&&!e.findChildOfKind(Z,20,_e);A&&x.insertNodeBefore(_e,e.first(Z.parameters),e.factory.createToken(20));for(var f=0,P=ee;f<P.length;f++){var D=P[f],l=D.declaration,_=D.type;l&&!l.type&&!l.initializer&&p(x,ie,_e,l,_,k,I)}A&&x.insertNodeAfter(_e,e.last(Z.parameters),e.factory.createToken(21))}}}function S(x,ie,_e,Y,Z,k){var I=re(_e,ie,Y,k);if(!(!I||!I.length)){var ne=M(Y,I,k).thisParameter(),ee=e.getTypeNodeIfAccessible(ne,_e,Y,Z);!ee||(e.isInJSFile(_e)?H(x,ie,_e,ee):x.tryInsertThisTypeAnnotation(ie,_e,ee))}}function H(x,ie,_e,Y){x.addJSDocTags(ie,_e,[e.factory.createJSDocThisTag(void 0,e.factory.createJSDocTypeExpression(Y))])}function se(x,ie,_e,Y,Z,k,I){var ne=e.firstOrUndefined(Y.parameters);if(ne&&e.isIdentifier(Y.name)&&e.isIdentifier(ne.name)){var ee=ue(Y.name,Z,I);ee===Z.getTypeChecker().getAnyType()&&(ee=ue(ne.name,Z,I)),e.isInJSFile(Y)?G(x,_e,[{declaration:ne,type:ee}],Z,k):p(x,ie,_e,ne,ee,Z,k)}}function p(x,ie,_e,Y,Z,k,I){var ne=e.getTypeNodeIfAccessible(Z,Y,k,I);if(ne)if(e.isInJSFile(_e)&&Y.kind!==165){var ee=e.isVariableDeclaration(Y)?e.tryCast(Y.parent.parent,e.isVariableStatement):Y;if(!ee)return;var A=e.factory.createJSDocTypeExpression(ne),f=e.isGetAccessorDeclaration(Y)?e.factory.createJSDocReturnTag(void 0,A,void 0):e.factory.createJSDocTypeTag(void 0,A,void 0);x.addJSDocTags(_e,ee,[f])}else C(ne,Y,_e,x,ie,e.getEmitScriptTarget(k.getCompilerOptions()))||x.tryInsertTypeAnnotation(_e,Y,ne)}function C(x,ie,_e,Y,Z,k){var I=O.tryGetAutoImportableReferenceFromTypeNode(x,k);return I&&Y.tryInsertTypeAnnotation(_e,ie,I.typeNode)?(e.forEach(I.symbols,function(ne){return Z.addImportFromExportedSymbol(ne,!0)}),!0):!1}function G(x,ie,_e,Y,Z){var k=_e.length&&_e[0].declaration.parent;if(!!k){var I=e.mapDefined(_e,function(A){var f=A.declaration;if(!(f.initializer||e.getJSDocType(f)||!e.isIdentifier(f.name))){var P=A.type&&e.getTypeNodeIfAccessible(A.type,f,Y,Z);if(P){var D=e.factory.cloneNode(f.name);return e.setEmitFlags(D,3584),{name:e.factory.cloneNode(f.name),param:f,isOptional:!!A.isOptional,typeNode:P}}}});if(!!I.length)if(e.isArrowFunction(k)||e.isFunctionExpression(k)){var ne=e.isArrowFunction(k)&&!e.findChildOfKind(k,20,ie);ne&&x.insertNodeBefore(ie,e.first(k.parameters),e.factory.createToken(20)),e.forEach(I,function(A){var f=A.typeNode,P=A.param,D=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(f)),l=e.factory.createJSDocComment(void 0,[D]);x.insertNodeAt(ie,P.getStart(ie),l,{suffix:" "})}),ne&&x.insertNodeAfter(ie,e.last(k.parameters),e.factory.createToken(21))}else{var ee=e.map(I,function(A){var f=A.name,P=A.typeNode,D=A.isOptional;return e.factory.createJSDocParameterTag(void 0,f,!!D,e.factory.createJSDocTypeExpression(P),!1,void 0)});x.addJSDocTags(ie,k,ee)}}}function E(x,ie,_e){return e.mapDefined(e.FindAllReferences.getReferenceEntriesForNode(-1,x,ie,ie.getSourceFiles(),_e),function(Y){return Y.kind!==0?e.tryCast(Y.node,e.isIdentifier):void 0})}function ue(x,ie,_e){var Y=E(x,ie,_e);return M(ie,Y,_e).single()}function B(x,ie,_e,Y){var Z=re(x,ie,_e,Y);return Z&&M(_e,Z,Y).parameters(x)||x.parameters.map(function(k){return{declaration:k,type:e.isIdentifier(k.name)?ue(k.name,_e,Y):_e.getTypeChecker().getAnyType()}})}function re(x,ie,_e,Y){var Z;switch(x.kind){case 170:Z=e.findChildOfKind(x,134,ie);break;case 213:case 212:var k=x.parent;Z=(e.isVariableDeclaration(k)||e.isPropertyDeclaration(k))&&e.isIdentifier(k.name)?k.name:x.name;break;case 255:case 168:case 167:Z=x.name;break}if(!!Z)return E(Z,_e,Y)}function M(x,ie,_e){var Y=x.getTypeChecker(),Z={string:function(){return Y.getStringType()},number:function(){return Y.getNumberType()},Array:function(we){return Y.createArrayType(we)},Promise:function(we){return Y.createPromiseType(we)}},k=[Y.getStringType(),Y.getNumberType(),Y.createArrayType(Y.getAnyType()),Y.createPromiseType(Y.getAnyType())];return{single:ee,parameters:A,thisParameter:f};function I(){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 ne(we){for(var ye=new e.Map,Se=0,ge=we;Se<ge.length;Se++){var Fe=ge[Se];Fe.properties&&Fe.properties.forEach(function(ur,Ir){ye.has(Ir)||ye.set(Ir,[]),ye.get(Ir).push(ur)})}var cr=new e.Map;return ye.forEach(function(ur,Ir){cr.set(Ir,ne(ur))}),{isNumber:we.some(function(ur){return ur.isNumber}),isString:we.some(function(ur){return ur.isString}),isNumberOrString:we.some(function(ur){return ur.isNumberOrString}),candidateTypes:e.flatMap(we,function(ur){return ur.candidateTypes}),properties:cr,calls:e.flatMap(we,function(ur){return ur.calls}),constructs:e.flatMap(we,function(ur){return ur.constructs}),numberIndex:e.forEach(we,function(ur){return ur.numberIndex}),stringIndex:e.forEach(we,function(ur){return ur.stringIndex}),candidateThisTypes:e.flatMap(we,function(ur){return ur.candidateThisTypes}),inferredTypes:void 0}}function ee(){return de(P(ie))}function A(we){if(!(ie.length===0||!we.parameters)){for(var ye=I(),Se=0,ge=ie;Se<ge.length;Se++){var Fe=ge[Se];_e.throwIfCancellationRequested(),D(Fe,ye)}var cr=qe(qe([],ye.constructs||[],!0),ye.calls||[],!0);return we.parameters.map(function(ur,Ir){for(var dr=[],Br=e.isRestParameter(ur),Tr=!1,n=0,Er=cr;n<Er.length;n++){var br=Er[n];if(br.argumentTypes.length<=Ir)Tr=e.isInJSFile(we),dr.push(Y.getUndefinedType());else if(Br)for(var Pr=Ir;Pr<br.argumentTypes.length;Pr++)dr.push(Y.getBaseTypeOfLiteralType(br.argumentTypes[Pr]));else dr.push(Y.getBaseTypeOfLiteralType(br.argumentTypes[Ir]))}if(e.isIdentifier(ur.name)){var Ce=P(E(ur.name,x,_e));dr.push.apply(dr,Br?e.mapDefined(Ce,Y.getElementTypeOfArrayType):Ce)}var Le=de(dr);return{type:Br?Y.createArrayType(Le):Le,isOptional:Tr&&!Br,declaration:ur}})}}function f(){for(var we=I(),ye=0,Se=ie;ye<Se.length;ye++){var ge=Se[ye];_e.throwIfCancellationRequested(),D(ge,we)}return de(we.candidateThisTypes||e.emptyArray)}function P(we){for(var ye=I(),Se=0,ge=we;Se<ge.length;Se++){var Fe=ge[Se];_e.throwIfCancellationRequested(),D(Fe,ye)}return V(ye)}function D(we,ye){for(;e.isRightSideOfQualifiedNameOrPropertyAccess(we);)we=we.parent;switch(we.parent.kind){case 237:_(we,ye);break;case 219:ye.isNumber=!0;break;case 218:J(we.parent,ye);break;case 220:w(we,we.parent,ye);break;case 288:case 289:j(we.parent,ye);break;case 207:case 208:we.parent.expression===we?U(we.parent,ye):l(we,ye);break;case 205:z(we.parent,ye);break;case 206:y(we.parent,we,ye);break;case 294:case 295:oe(we.parent,ye);break;case 166:ve(we.parent,ye);break;case 253:{var Se=we.parent,ge=Se.name,Fe=Se.initializer;if(we===ge){Fe&&er(ye,Y.getTypeAtLocation(Fe));break}}default:return l(we,ye)}}function l(we,ye){e.isExpressionNode(we)&&er(ye,Y.getContextualType(we))}function _(we,ye){er(ye,e.isCallExpression(we)?Y.getVoidType():Y.getAnyType())}function J(we,ye){switch(we.operator){case 45:case 46:case 40:case 54:ye.isNumber=!0;break;case 39:ye.isNumberOrString=!0;break}}function w(we,ye,Se){switch(ye.operatorToken.kind){case 42:case 41:case 43:case 44:case 47:case 48:case 49:case 50:case 51:case 52:case 65:case 67:case 66:case 68:case 69:case 73:case 74:case 78:case 70:case 72:case 71:case 40:case 29:case 32:case 31:case 33:var ge=Y.getTypeAtLocation(ye.left===we?ye.right:ye.left);ge.flags&1056?er(Se,ge):Se.isNumber=!0;break;case 64:case 39:var Fe=Y.getTypeAtLocation(ye.left===we?ye.right:ye.left);Fe.flags&1056?er(Se,Fe):Fe.flags&296?Se.isNumber=!0:Fe.flags&402653316?Se.isString=!0:Fe.flags&1||(Se.isNumberOrString=!0);break;case 63:case 34:case 36:case 37:case 35:er(Se,Y.getTypeAtLocation(ye.left===we?ye.right:ye.left));break;case 101:we===ye.left&&(Se.isString=!0);break;case 56:case 60:we===ye.left&&(we.parent.parent.kind===253||e.isAssignmentExpression(we.parent.parent,!0))&&er(Se,Y.getTypeAtLocation(ye.right));break;case 55:case 27:case 102:break}}function j(we,ye){er(ye,Y.getTypeAtLocation(we.parent.parent.expression))}function U(we,ye){var Se={argumentTypes:[],return_:I()};if(we.arguments)for(var ge=0,Fe=we.arguments;ge<Fe.length;ge++){var cr=Fe[ge];Se.argumentTypes.push(Y.getTypeAtLocation(cr))}D(we,Se.return_),we.kind===207?(ye.calls||(ye.calls=[])).push(Se):(ye.constructs||(ye.constructs=[])).push(Se)}function z(we,ye){var Se=e.escapeLeadingUnderscores(we.name.text);ye.properties||(ye.properties=new e.Map);var ge=ye.properties.get(Se)||I();D(we,ge),ye.properties.set(Se,ge)}function y(we,ye,Se){if(ye===we.argumentExpression){Se.isNumberOrString=!0;return}else{var ge=Y.getTypeAtLocation(we.argumentExpression),Fe=I();D(we,Fe),ge.flags&296?Se.numberIndex=Fe:Se.stringIndex=Fe}}function oe(we,ye){var Se=e.isVariableDeclaration(we.parent.parent)?we.parent.parent:we.parent;he(ye,Y.getTypeAtLocation(Se))}function ve(we,ye){he(ye,Y.getTypeAtLocation(we.parent))}function ce(we,ye){for(var Se=[],ge=0,Fe=we;ge<Fe.length;ge++)for(var cr=Fe[ge],ur=0,Ir=ye;ur<Ir.length;ur++){var dr=Ir[ur],Br=dr.high,Tr=dr.low;Br(cr)&&(e.Debug.assert(!Tr(cr),"Priority can't have both low and high"),Se.push(Tr))}return we.filter(function(n){return Se.every(function(Er){return!Er(n)})})}function m(we){return de(V(we))}function de(we){if(!we.length)return Y.getAnyType();var ye=Y.getUnionType([Y.getStringType(),Y.getNumberType()]),Se=[{high:function(cr){return cr===Y.getStringType()||cr===Y.getNumberType()},low:function(cr){return cr===ye}},{high:function(cr){return!(cr.flags&16385)},low:function(cr){return!!(cr.flags&16385)}},{high:function(cr){return!(cr.flags&114689)&&!(e.getObjectFlags(cr)&16)},low:function(cr){return!!(e.getObjectFlags(cr)&16)}}],ge=ce(we,Se),Fe=ge.filter(function(cr){return e.getObjectFlags(cr)&16});return Fe.length&&(ge=ge.filter(function(cr){return!(e.getObjectFlags(cr)&16)}),ge.push(ae(Fe))),Y.getWidenedType(Y.getUnionType(ge.map(Y.getBaseTypeOfLiteralType),2))}function ae(we){if(we.length===1)return we[0];for(var ye=[],Se=[],ge=[],Fe=[],cr=!1,ur=!1,Ir=e.createMultiMap(),dr=0,Br=we;dr<Br.length;dr++){for(var Tr=Br[dr],n=0,Er=Y.getPropertiesOfType(Tr);n<Er.length;n++){var br=Er[n];Ir.add(br.name,br.valueDeclaration?Y.getTypeOfSymbolAtLocation(br,br.valueDeclaration):Y.getAnyType())}ye.push.apply(ye,Y.getSignaturesOfType(Tr,0)),Se.push.apply(Se,Y.getSignaturesOfType(Tr,1));var Pr=Y.getIndexInfoOfType(Tr,0);Pr&&(ge.push(Pr.type),cr=cr||Pr.isReadonly);var Ce=Y.getIndexInfoOfType(Tr,1);Ce&&(Fe.push(Ce.type),ur=ur||Ce.isReadonly)}var Le=e.mapEntries(Ir,function(Cr,Lr){var Jr=Lr.length<we.length?16777216:0,Rr=Y.createSymbol(4|Jr,Cr);return Rr.type=Y.getUnionType(Lr),[Cr,Rr]}),Xe=[];return ge.length&&Xe.push(Y.createIndexInfo(Y.getStringType(),Y.getUnionType(ge),cr)),Fe.length&&Xe.push(Y.createIndexInfo(Y.getNumberType(),Y.getUnionType(Fe),ur)),Y.createAnonymousType(we[0].symbol,Le,ye,Se,Xe)}function V(we){var ye,Se,ge,Fe=[];we.isNumber&&Fe.push(Y.getNumberType()),we.isString&&Fe.push(Y.getStringType()),we.isNumberOrString&&Fe.push(Y.getUnionType([Y.getStringType(),Y.getNumberType()])),we.numberIndex&&Fe.push(Y.createArrayType(m(we.numberIndex))),(((ye=we.properties)===null||ye===void 0?void 0:ye.size)||((Se=we.constructs)===null||Se===void 0?void 0:Se.length)||we.stringIndex)&&Fe.push(le(we));var cr=(we.candidateTypes||[]).map(function(Ir){return Y.getBaseTypeOfLiteralType(Ir)}),ur=!((ge=we.calls)===null||ge===void 0)&&ge.length?le(we):void 0;return ur&&cr?Fe.push(Y.getUnionType(qe([ur],cr,!0),2)):(ur&&Fe.push(ur),e.length(cr)&&Fe.push.apply(Fe,cr)),Fe.push.apply(Fe,ke(we)),Fe}function le(we){var ye=new e.Map;we.properties&&we.properties.forEach(function(cr,ur){var Ir=Y.createSymbol(4,ur);Ir.type=m(cr),ye.set(ur,Ir)});var Se=we.calls?[Ge(we.calls)]:[],ge=we.constructs?[Ge(we.constructs)]:[],Fe=we.stringIndex?[Y.createIndexInfo(Y.getStringType(),m(we.stringIndex),!1)]:[];return Y.createAnonymousType(void 0,ye,Se,ge,Fe)}function ke(we){if(!we.properties||!we.properties.size)return[];var ye=k.filter(function(Se){return Ue(Se,we)});return 0<ye.length&&ye.length<3?ye.map(function(Se){return He(Se,we)}):[]}function Ue(we,ye){return ye.properties?!e.forEachEntry(ye.properties,function(Se,ge){var Fe=Y.getTypeOfPropertyOfType(we,ge);if(!Fe)return!0;if(Se.calls){var cr=Y.getSignaturesOfType(Fe,0);return!cr.length||!Y.isTypeAssignableTo(Fe,me(Se.calls))}else return!Y.isTypeAssignableTo(Fe,m(Se))}):!1}function He(we,ye){if(!(e.getObjectFlags(we)&4)||!ye.properties)return we;var Se=we.target,ge=e.singleOrUndefined(Se.typeParameters);if(!ge)return we;var Fe=[];return ye.properties.forEach(function(cr,ur){var Ir=Y.getTypeOfPropertyOfType(Se,ur);e.Debug.assert(!!Ir,"generic should have all the properties of its reference."),Fe.push.apply(Fe,ar(Ir,m(cr),ge))}),Z[we.symbol.escapedName](de(Fe))}function ar(we,ye,Se){if(we===Se)return[ye];if(we.flags&3145728)return e.flatMap(we.types,function(Br){return ar(Br,ye,Se)});if(e.getObjectFlags(we)&4&&e.getObjectFlags(ye)&4){var ge=Y.getTypeArguments(we),Fe=Y.getTypeArguments(ye),cr=[];if(ge&&Fe)for(var ur=0;ur<ge.length;ur++)Fe[ur]&&cr.push.apply(cr,ar(ge[ur],Fe[ur],Se));return cr}var Ir=Y.getSignaturesOfType(we,0),dr=Y.getSignaturesOfType(ye,0);return Ir.length===1&&dr.length===1?gr(Ir[0],dr[0],Se):[]}function gr(we,ye,Se){for(var ge=[],Fe=0;Fe<we.parameters.length;Fe++){var cr=we.parameters[Fe],ur=ye.parameters[Fe],Ir=we.declaration&&e.isRestParameter(we.declaration.parameters[Fe]);if(!ur)break;var dr=cr.valueDeclaration?Y.getTypeOfSymbolAtLocation(cr,cr.valueDeclaration):Y.getAnyType(),Br=Ir&&Y.getElementTypeOfArrayType(dr);Br&&(dr=Br);var Tr=ur.type||(ur.valueDeclaration?Y.getTypeOfSymbolAtLocation(ur,ur.valueDeclaration):Y.getAnyType());ge.push.apply(ge,ar(dr,Tr,Se))}var n=Y.getReturnTypeOfSignature(we),Er=Y.getReturnTypeOfSignature(ye);return ge.push.apply(ge,ar(n,Er,Se)),ge}function me(we){return Y.createAnonymousType(void 0,e.createSymbolTable(),[Ge(we)],e.emptyArray,e.emptyArray)}function Ge(we){for(var ye=[],Se=Math.max.apply(Math,we.map(function(ur){return ur.argumentTypes.length})),ge=function(ur){var Ir=Y.createSymbol(1,e.escapeLeadingUnderscores("arg".concat(ur)));Ir.type=de(we.map(function(dr){return dr.argumentTypes[ur]||Y.getUndefinedType()})),we.some(function(dr){return dr.argumentTypes[ur]===void 0})&&(Ir.flags|=16777216),ye.push(Ir)},Fe=0;Fe<Se;Fe++)ge(Fe);var cr=m(ne(we.map(function(ur){return ur.return_})));return Y.createSignature(void 0,void 0,void 0,ye,cr,void 0,Se,0)}function er(we,ye){ye&&!(ye.flags&1)&&!(ye.flags&131072)&&(we.candidateTypes||(we.candidateTypes=[])).push(ye)}function he(we,ye){ye&&!(ye.flags&1)&&!(ye.flags&131072)&&(we.candidateThisTypes||(we.candidateThisTypes=[])).push(ye)}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixReturnTypeInAsyncFunction",W=[e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];O.registerCodeFix({errorCodes:W,fixIds:[L],getCodeActions:function(F){var g=F.sourceFile,S=F.program,H=F.span,se=S.getTypeChecker(),p=N(g,S.getTypeChecker(),H.start);if(!!p){var C=p.returnTypeNode,G=p.returnType,E=p.promisedTypeNode,ue=p.promisedType,B=e.textChanges.ChangeTracker.with(F,function(re){return Q(re,g,C,E)});return[O.createCodeFixAction(L,B,[e.Diagnostics.Replace_0_with_Promise_1,se.typeToString(G),se.typeToString(ue)],L,e.Diagnostics.Fix_all_incorrect_return_type_of_an_async_functions)]}},getAllCodeActions:function(pe){return O.codeFixAll(pe,W,function(F,g){var S=N(g.file,pe.program.getTypeChecker(),g.start);S&&Q(F,g.file,S.returnTypeNode,S.promisedTypeNode)})}});function N(pe,F,g){if(!e.isInJSFile(pe)){var S=e.getTokenAtPosition(pe,g),H=e.findAncestor(S,e.isFunctionLikeDeclaration),se=H==null?void 0:H.type;if(!!se){var p=F.getTypeFromTypeNode(se),C=F.getAwaitedType(p)||F.getVoidType(),G=F.typeToTypeNode(C,se,void 0);if(G)return{returnTypeNode:se,returnType:p,promisedTypeNode:G,promisedType:C}}}}function Q(pe,F,g,S){pe.replaceNode(F,g,e.factory.createTypeReferenceNode("Promise",[S]))}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="disableJsDiagnostics",W="disableJsDiagnostics",N=e.mapDefined(Object.keys(e.Diagnostics),function(pe){var F=e.Diagnostics[pe];return F.category===e.DiagnosticCategory.Error?F.code:void 0});O.registerCodeFix({errorCodes:N,getCodeActions:function(F){var g=F.sourceFile,S=F.program,H=F.span,se=F.host,p=F.formatContext;if(!(!e.isInJSFile(g)||!e.isCheckJsEnabledForFile(g,S.getCompilerOptions()))){var C=g.checkJsDirective?"":e.getNewLineOrDefaultFromHost(se,p.options),G=[O.createCodeFixActionWithoutFixAll(L,[O.createFileTextChanges(g.fileName,[e.createTextChange(g.checkJsDirective?e.createTextSpanFromBounds(g.checkJsDirective.pos,g.checkJsDirective.end):e.createTextSpan(0,0),"// @ts-nocheck".concat(C))])],e.Diagnostics.Disable_checking_for_this_file)];return e.textChanges.isValidLocationToAddComment(g,H.start)&&G.unshift(O.createCodeFixAction(L,e.textChanges.ChangeTracker.with(F,function(E){return Q(E,g,H.start)}),e.Diagnostics.Ignore_this_error_message,W,e.Diagnostics.Add_ts_ignore_to_all_error_messages)),G}},fixIds:[W],getAllCodeActions:function(pe){var F=new e.Set;return O.codeFixAll(pe,N,function(g,S){e.textChanges.isValidLocationToAddComment(S.file,S.start)&&Q(g,S.file,S.start,F)})}});function Q(pe,F,g,S){var H=e.getLineAndCharacterOfPosition(F,g).line;(!S||e.tryAddToSet(S,H))&&pe.insertCommentBeforeLine(F,H,g," @ts-ignore")}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(Y,Z,k,I,ne,ee,A){for(var f=Y.symbol.members,P=0,D=Z;P<D.length;P++){var l=D[P];f.has(l.escapedName)||Q(l,Y,k,I,ne,ee,A,void 0)}}O.createMissingMemberNodes=L;function W(Y){return{trackSymbol:function(){return!1},moduleResolverHost:e.getModuleSpecifierResolverHost(Y.program,Y.host)}}O.getNoopSymbolTrackerWithResolver=W;var N;(function(Y){Y[Y.Method=1]="Method",Y[Y.Property=2]="Property",Y[Y.All=3]="All"})(N=O.PreserveOptionalFlags||(O.PreserveOptionalFlags={}));function Q(Y,Z,k,I,ne,ee,A,f,P,D){P===void 0&&(P=3),D===void 0&&(D=!1);var l=Y.getDeclarations();if(!(l&&l.length))return;var _=I.program.getTypeChecker(),J=e.getEmitScriptTarget(I.program.getCompilerOptions()),w=l[0],j=e.getSynthesizedDeepClone(e.getNameOfDeclaration(w),!1),U=E(e.getEffectiveModifierFlags(w)),z=U?e.factory.createNodeArray([U]):void 0,y=_.getWidenedType(_.getTypeOfSymbolAtLocation(Y,Z)),oe=!!(Y.flags&16777216),ve=!!(Z.flags&8388608)||D,ce=e.getQuotePreference(k,ne);switch(w.kind){case 165:case 166:var m=ce===0?268435456:void 0,de=_.typeToTypeNode(y,Z,m,W(I));if(ee){var ae=x(de,J);ae&&(de=ae.typeNode,_e(ee,ae.symbols))}A(e.factory.createPropertyDeclaration(void 0,z,j,oe&&P&2?e.factory.createToken(57):void 0,de,void 0));break;case 171:case 172:{var V=_.typeToTypeNode(y,Z,void 0,W(I)),le=e.getAllAccessorDeclarations(l,w),ke=le.secondAccessor?[le.firstAccessor,le.secondAccessor]:[le.firstAccessor];if(ee){var ae=x(V,J);ae&&(V=ae.typeNode,_e(ee,ae.symbols))}for(var Ue=0,He=ke;Ue<He.length;Ue++){var ar=He[Ue];if(e.isGetAccessorDeclaration(ar))A(e.factory.createGetAccessorDeclaration(void 0,z,j,e.emptyArray,V,ve?void 0:f||C(ce)));else{e.Debug.assertNode(ar,e.isSetAccessorDeclaration,"The counterpart to a getter should be a setter");var gr=e.getSetAccessorValueParameter(ar),me=gr&&e.isIdentifier(gr.name)?e.idText(gr.name):void 0;A(e.factory.createSetAccessorDeclaration(void 0,z,j,S(1,[me],[V],1,!1),ve?void 0:f||C(ce)))}}break}case 167:case 168:var Ge=_.getSignaturesOfType(y,0);if(!e.some(Ge))break;if(l.length===1){e.Debug.assert(Ge.length===1,"One declaration implies one signature");var er=Ge[0];ye(ce,er,z,j,ve?void 0:f||C(ce));break}for(var he=0,we=Ge;he<we.length;he++){var er=we[he];ye(ce,er,e.getSynthesizedDeepClones(z,!1),e.getSynthesizedDeepClone(j,!1))}if(!ve)if(l.length>Ge.length){var er=_.getSignatureFromDeclaration(l[l.length-1]);ye(ce,er,z,j,f||C(ce))}else e.Debug.assert(l.length===Ge.length,"Declarations and signatures should match count"),A(H(_,I,Z,Ge,j,oe&&!!(P&1),z,ce,f));break}function ye(Se,ge,Fe,cr,ur){var Ir=pe(168,I,Se,ge,ur,cr,Fe,oe&&!!(P&1),Z,ee);Ir&&A(Ir)}}O.addNewNodeForMemberSymbol=Q;function pe(Y,Z,k,I,ne,ee,A,f,P,D){var l=Z.program,_=l.getTypeChecker(),J=e.getEmitScriptTarget(l.getCompilerOptions()),w=1073742081|(k===0?268435456:0),j=_.signatureToSignatureDeclaration(I,Y,P,w,W(Z));if(!!j){var U=j.typeParameters,z=j.parameters,y=j.type;if(D){if(U){var oe=e.sameMap(U,function(ae){var V=ae.constraint,le=ae.default;if(V){var ke=x(V,J);ke&&(V=ke.typeNode,_e(D,ke.symbols))}if(le){var ke=x(le,J);ke&&(le=ke.typeNode,_e(D,ke.symbols))}return e.factory.updateTypeParameterDeclaration(ae,ae.name,V,le)});U!==oe&&(U=e.setTextRange(e.factory.createNodeArray(oe,U.hasTrailingComma),U))}var ve=e.sameMap(z,function(ae){var V=x(ae.type,J),le=ae.type;return V&&(le=V.typeNode,_e(D,V.symbols)),e.factory.updateParameterDeclaration(ae,ae.decorators,ae.modifiers,ae.dotDotDotToken,ae.name,ae.questionToken,le,ae.initializer)});if(z!==ve&&(z=e.setTextRange(e.factory.createNodeArray(ve,z.hasTrailingComma),z)),y){var ce=x(y,J);ce&&(y=ce.typeNode,_e(D,ce.symbols))}}var m=f?e.factory.createToken(57):void 0,de=j.asteriskToken;if(e.isFunctionExpression(j))return e.factory.updateFunctionExpression(j,A,j.asteriskToken,e.tryCast(ee,e.isIdentifier),U,z,y,ne!=null?ne:j.body);if(e.isArrowFunction(j))return e.factory.updateArrowFunction(j,A,U,z,y,j.equalsGreaterThanToken,ne!=null?ne:j.body);if(e.isMethodDeclaration(j))return e.factory.updateMethodDeclaration(j,void 0,A,de,ee!=null?ee:e.factory.createIdentifier(""),m,U,z,y,ne)}}O.createSignatureDeclarationFromSignature=pe;function F(Y,Z,k,I,ne,ee,A){var f=e.getQuotePreference(Z.sourceFile,Z.preferences),P=e.getEmitScriptTarget(Z.program.getCompilerOptions()),D=W(Z),l=Z.program.getTypeChecker(),_=e.isInJSFile(A),J=I.typeArguments,w=I.arguments,j=I.parent,U=_?void 0:l.getContextualType(I),z=e.map(w,function(ae){return e.isIdentifier(ae)?ae.text:e.isPropertyAccessExpression(ae)&&e.isIdentifier(ae.name)?ae.name.text:void 0}),y=_?[]:e.map(w,function(ae){return g(l,k,l.getBaseTypeOfLiteralType(l.getTypeAtLocation(ae)),A,P,void 0,D)}),oe=ee?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(ee)):void 0,ve=e.isYieldExpression(j)?e.factory.createToken(41):void 0,ce=_||J===void 0?void 0:e.map(J,function(ae,V){return e.factory.createTypeParameterDeclaration(84+J.length-1<=90?String.fromCharCode(84+V):"T".concat(V))}),m=S(w.length,z,y,void 0,_),de=_||U===void 0?void 0:l.typeToTypeNode(U,A,void 0,D);return Y===168?e.factory.createMethodDeclaration(void 0,oe,ve,ne,void 0,ce,m,de,e.isInterfaceDeclaration(A)?void 0:C(f)):e.factory.createFunctionDeclaration(void 0,oe,ve,ne,ce,m,de,G(e.Diagnostics.Function_not_implemented.message,f))}O.createSignatureDeclarationFromCallExpression=F;function g(Y,Z,k,I,ne,ee,A){var f=Y.typeToTypeNode(k,I,ee,A);if(f&&e.isImportTypeNode(f)){var P=x(f,ne);P&&(_e(Z,P.symbols),f=P.typeNode)}return e.getSynthesizedDeepClone(f)}O.typeToAutoImportableTypeNode=g;function S(Y,Z,k,I,ne){for(var ee=[],A=0;A<Y;A++){var f=e.factory.createParameterDeclaration(void 0,void 0,void 0,Z&&Z[A]||"arg".concat(A),I!==void 0&&A>=I?e.factory.createToken(57):void 0,ne?void 0:k&&k[A]||e.factory.createKeywordTypeNode(130),void 0);ee.push(f)}return ee}function H(Y,Z,k,I,ne,ee,A,f,P){for(var D=I[0],l=I[0].minArgumentCount,_=!1,J=0,w=I;J<w.length;J++){var j=w[J];l=Math.min(j.minArgumentCount,l),e.signatureHasRestParameter(j)&&(_=!0),j.parameters.length>=D.parameters.length&&(!e.signatureHasRestParameter(j)||e.signatureHasRestParameter(D))&&(D=j)}var U=D.parameters.length-(e.signatureHasRestParameter(D)?1:0),z=D.parameters.map(function(ce){return ce.name}),y=S(U,z,void 0,l,!1);if(_){var oe=e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(130)),ve=e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),z[U]||"rest",U>=l?e.factory.createToken(57):void 0,oe,void 0);y.push(ve)}return p(A,ne,ee,void 0,y,se(I,Y,Z,k),f,P)}function se(Y,Z,k,I){if(e.length(Y)){var ne=Z.getUnionType(e.map(Y,Z.getReturnTypeOfSignature));return Z.typeToTypeNode(ne,I,void 0,W(k))}}function p(Y,Z,k,I,ne,ee,A,f){return e.factory.createMethodDeclaration(void 0,Y,void 0,Z,k?e.factory.createToken(57):void 0,I,ne,ee,f||C(A))}function C(Y){return G(e.Diagnostics.Method_not_implemented.message,Y)}function G(Y,Z){return e.factory.createBlock([e.factory.createThrowStatement(e.factory.createNewExpression(e.factory.createIdentifier("Error"),void 0,[e.factory.createStringLiteral(Y,Z===0)]))],!0)}O.createStubbedBody=G;function E(Y){if(Y&4)return e.factory.createToken(123);if(Y&16)return e.factory.createToken(122)}function ue(Y,Z,k){var I=e.getTsConfigObjectLiteralExpression(Z);if(!!I){var ne=M(I,"compilerOptions");if(ne===void 0){Y.insertNodeAtObjectStart(Z,I,re("compilerOptions",e.factory.createObjectLiteralExpression(k.map(function(J){var w=J[0],j=J[1];return re(w,j)}),!0)));return}var ee=ne.initializer;if(!!e.isObjectLiteralExpression(ee))for(var A=0,f=k;A<f.length;A++){var P=f[A],D=P[0],l=P[1],_=M(ee,D);_===void 0?Y.insertNodeAtObjectStart(Z,ee,re(D,l)):Y.replaceNode(Z,_.initializer,l)}}}O.setJsonCompilerOptionValues=ue;function B(Y,Z,k,I){ue(Y,Z,[[k,I]])}O.setJsonCompilerOptionValue=B;function re(Y,Z){return e.factory.createPropertyAssignment(e.factory.createStringLiteral(Y),Z)}O.createJsonPropertyAssignment=re;function M(Y,Z){return e.find(Y.properties,function(k){return e.isPropertyAssignment(k)&&!!k.name&&e.isStringLiteral(k.name)&&k.name.text===Z})}O.findJsonProperty=M;function x(Y,Z){var k,I=e.visitNode(Y,ne);if(k&&I)return{typeNode:I,symbols:k};function ne(ee){var A;if(e.isLiteralImportTypeNode(ee)&&ee.qualifier){var f=e.getFirstIdentifier(ee.qualifier),P=e.getNameForExportedSymbol(f.symbol,Z),D=P!==f.text?ie(ee.qualifier,e.factory.createIdentifier(P)):ee.qualifier;k=e.append(k,f.symbol);var l=(A=ee.typeArguments)===null||A===void 0?void 0:A.map(ne);return e.factory.createTypeReferenceNode(D,l)}return e.visitEachChild(ee,ne,e.nullTransformationContext)}}O.tryGetAutoImportableReferenceFromTypeNode=x;function ie(Y,Z){return Y.kind===79?Z:e.factory.createQualifiedName(ie(Y.left,Z),Y.right)}function _e(Y,Z){Z.forEach(function(k){return Y.addImportFromExportedSymbol(k,!0)})}O.importSymbols=_e})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(M,x,ie,_e,Y,Z){var k=S(M,x,ie,_e);if(!(!k||e.refactor.isRefactorErrorInfo(k))){var I=e.textChanges.ChangeTracker.fromContext(Y),ne=k.isStatic,ee=k.isReadonly,A=k.fieldName,f=k.accessorName,P=k.originalName,D=k.type,l=k.container,_=k.declaration;e.suppressLeadingAndTrailingTrivia(A),e.suppressLeadingAndTrailingTrivia(f),e.suppressLeadingAndTrailingTrivia(_),e.suppressLeadingAndTrailingTrivia(l);var J,w;if(e.isClassLike(l)){var j=e.getEffectiveModifierFlags(_);if(e.isSourceFileJS(M)){var U=e.createModifiers(j);J=U,w=U}else J=e.createModifiers(F(j)),w=e.createModifiers(g(j))}G(I,M,_,D,A,w);var z=H(A,f,D,J,ne,l);if(e.suppressLeadingAndTrailingTrivia(z),E(I,M,z,_,l),ee){var y=e.getFirstConstructorWithBody(l);y&&ue(I,M,y,A.text,P)}else{var oe=se(A,f,D,J,ne,l);e.suppressLeadingAndTrailingTrivia(oe),E(I,M,oe,_,l)}return I.getChanges()}}O.generateAccessorFromProperty=L;function W(M){return e.isIdentifier(M)||e.isStringLiteral(M)}function N(M){return e.isParameterPropertyDeclaration(M,M.parent)||e.isPropertyDeclaration(M)||e.isPropertyAssignment(M)}function Q(M,x){return e.isIdentifier(x)?e.factory.createIdentifier(M):e.factory.createStringLiteral(M)}function pe(M,x,ie){var _e=x?ie.name:e.factory.createThis();return e.isIdentifier(M)?e.factory.createPropertyAccessExpression(_e,M):e.factory.createElementAccessExpression(_e,e.factory.createStringLiteralFromNode(M))}function F(M){return M&=-65,M&=-9,M&16||(M|=4),M}function g(M){return M&=-5,M&=-17,M|=8,M}function S(M,x,ie,_e,Y){Y===void 0&&(Y=!0);var Z=e.getTokenAtPosition(M,ie),k=ie===_e&&Y,I=e.findAncestor(Z.parent,N),ne=124;if(!I||!(e.nodeOverlapsWithStartEnd(I.name,M,ie,_e)||k))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_property_for_which_to_generate_accessor)};if(!W(I.name))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Name_is_not_valid)};if((e.getEffectiveModifierFlags(I)|ne)!==ne)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_property_with_modifier)};var ee=I.name.text,A=e.startsWithUnderscore(ee),f=Q(A?ee:e.getUniqueName("_".concat(ee),M),I.name),P=Q(A?e.getUniqueName(ee.substring(1),M):ee,I.name);return{isStatic:e.hasStaticModifier(I),isReadonly:e.hasEffectiveReadonlyModifier(I),type:B(I,x),container:I.kind===163?I.parent.parent:I.parent,originalName:I.name.text,declaration:I,fieldName:f,accessorName:P,renameAccessor:A}}O.getAccessorConvertiblePropertyAtPosition=S;function H(M,x,ie,_e,Y,Z){return e.factory.createGetAccessorDeclaration(void 0,_e,x,void 0,ie,e.factory.createBlock([e.factory.createReturnStatement(pe(M,Y,Z))],!0))}function se(M,x,ie,_e,Y,Z){return e.factory.createSetAccessorDeclaration(void 0,_e,x,[e.factory.createParameterDeclaration(void 0,void 0,void 0,e.factory.createIdentifier("value"),void 0,ie)],e.factory.createBlock([e.factory.createExpressionStatement(e.factory.createAssignment(pe(M,Y,Z),e.factory.createIdentifier("value")))],!0))}function p(M,x,ie,_e,Y,Z){var k=e.factory.updatePropertyDeclaration(ie,ie.decorators,Z,Y,ie.questionToken||ie.exclamationToken,_e,ie.initializer);M.replaceNode(x,ie,k)}function C(M,x,ie,_e){var Y=e.factory.updatePropertyAssignment(ie,_e,ie.initializer);M.replacePropertyAssignment(x,ie,Y)}function G(M,x,ie,_e,Y,Z){e.isPropertyDeclaration(ie)?p(M,x,ie,_e,Y,Z):e.isPropertyAssignment(ie)?C(M,x,ie,Y):M.replaceNode(x,ie,e.factory.updateParameterDeclaration(ie,ie.decorators,Z,ie.dotDotDotToken,e.cast(Y,e.isIdentifier),ie.questionToken,ie.type,ie.initializer))}function E(M,x,ie,_e,Y){e.isParameterPropertyDeclaration(_e,_e.parent)?M.insertNodeAtClassStart(x,Y,ie):e.isPropertyAssignment(_e)?M.insertNodeAfterComma(x,_e,ie):M.insertNodeAfter(x,_e,ie)}function ue(M,x,ie,_e,Y){!ie.body||ie.body.forEachChild(function Z(k){e.isElementAccessExpression(k)&&k.expression.kind===108&&e.isStringLiteral(k.argumentExpression)&&k.argumentExpression.text===Y&&e.isWriteAccess(k)&&M.replaceNode(x,k.argumentExpression,e.factory.createStringLiteral(_e)),e.isPropertyAccessExpression(k)&&k.expression.kind===108&&k.name.text===Y&&e.isWriteAccess(k)&&M.replaceNode(x,k.name,e.factory.createIdentifier(_e)),!e.isFunctionLike(k)&&!e.isClassLike(k)&&k.forEachChild(Z)})}function B(M,x){var ie=e.getTypeAnnotationNode(M);if(e.isPropertyDeclaration(M)&&ie&&M.questionToken){var _e=x.getTypeChecker(),Y=_e.getTypeFromTypeNode(ie);if(!_e.isTypeAssignableTo(_e.getUndefinedType(),Y)){var Z=e.isUnionTypeNode(ie)?ie.types:[ie];return e.factory.createUnionTypeNode(qe(qe([],Z,!0),[e.factory.createKeywordTypeNode(152)],!1))}}return ie}function re(M,x){for(var ie=[];M;){var _e=e.getClassExtendsHeritageElement(M),Y=_e&&x.getSymbolAtLocation(_e.expression);if(!Y)break;var Z=Y.flags&2097152?x.getAliasedSymbol(Y):Y,k=Z.declarations&&e.find(Z.declarations,e.isClassLike);if(!k)break;ie.push(k),M=k}return ie}O.getAllSupers=re})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="invalidImportSyntax";function W(g,S){var H=e.getSourceFileOfNode(S),se=e.getNamespaceDeclarationNode(S),p=g.program.getCompilerOptions(),C=[];return C.push(N(g,H,S,e.makeImport(se.name,void 0,S.moduleSpecifier,e.getQuotePreference(H,g.preferences)))),e.getEmitModuleKind(p)===e.ModuleKind.CommonJS&&C.push(N(g,H,S,e.factory.createImportEqualsDeclaration(void 0,void 0,!1,se.name,e.factory.createExternalModuleReference(S.moduleSpecifier)))),C}function N(g,S,H,se){var p=e.textChanges.ChangeTracker.with(g,function(C){return C.replaceNode(S,H,se)});return O.createCodeFixActionWithoutFixAll(L,p,[e.Diagnostics.Replace_import_with_0,p[0].textChanges[0].newText])}O.registerCodeFix({errorCodes:[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],getCodeActions:Q});function Q(g){var S=g.sourceFile,H=e.Diagnostics.This_expression_is_not_callable.code===g.errorCode?207:208,se=e.findAncestor(e.getTokenAtPosition(S,g.span.start),function(C){return C.kind===H});if(!se)return[];var p=se.expression;return F(g,p)}O.registerCodeFix({errorCodes:[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,e.Diagnostics.Type_predicate_0_is_not_assignable_to_1.code,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,e.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,e.Diagnostics.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:pe});function pe(g){var S=g.sourceFile,H=e.findAncestor(e.getTokenAtPosition(S,g.span.start),function(se){return se.getStart()===g.span.start&&se.getEnd()===g.span.start+g.span.length});return H?F(g,H):[]}function F(g,S){var H=g.program.getTypeChecker().getTypeAtLocation(S);if(!(H.symbol&&H.symbol.originatingImport))return[];var se=[],p=H.symbol.originatingImport;if(e.isImportCall(p)||e.addRange(se,W(g,p)),e.isExpression(S)&&!(e.isNamedDeclaration(S.parent)&&S.parent.name===S)){var C=g.sourceFile,G=e.textChanges.ChangeTracker.with(g,function(E){return E.replaceNode(C,S,e.factory.createPropertyAccessExpression(S,"default"),{})});se.push(O.createCodeFixActionWithoutFixAll(L,G,e.Diagnostics.Use_synthetic_default_member))}return se}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="strictClassInitialization",W="addMissingPropertyDefiniteAssignmentAssertions",N="addMissingPropertyUndefinedType",Q="addMissingPropertyInitializer",pe=[e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];O.registerCodeFix({errorCodes:pe,getCodeActions:function(B){var re=F(B.sourceFile,B.span.start);if(!!re){var M=[];return e.append(M,H(B,re)),e.append(M,g(B,re)),e.append(M,p(B,re)),M}},fixIds:[W,N,Q],getAllCodeActions:function(ue){return O.codeFixAll(ue,pe,function(B,re){var M=F(re.file,re.start);if(!!M)switch(ue.fixId){case W:S(B,re.file,M.prop);break;case N:se(B,re.file,M);break;case Q:var x=ue.program.getTypeChecker(),ie=G(x,M.prop);if(!ie)return;C(B,re.file,M.prop,ie);break;default:e.Debug.fail(JSON.stringify(ue.fixId))}})}});function F(ue,B){var re=e.getTokenAtPosition(ue,B);if(e.isIdentifier(re)&&e.isPropertyDeclaration(re.parent)){var M=e.getEffectiveTypeAnnotationNode(re.parent);if(M)return{type:M,prop:re.parent,isJs:e.isInJSFile(re.parent)}}}function g(ue,B){if(!B.isJs){var re=e.textChanges.ChangeTracker.with(ue,function(M){return S(M,ue.sourceFile,B.prop)});return O.createCodeFixAction(L,re,[e.Diagnostics.Add_definite_assignment_assertion_to_property_0,B.prop.getText()],W,e.Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties)}}function S(ue,B,re){var M=e.factory.updatePropertyDeclaration(re,re.decorators,re.modifiers,re.name,e.factory.createToken(53),re.type,re.initializer);ue.replaceNode(B,re,M)}function H(ue,B){var re=e.textChanges.ChangeTracker.with(ue,function(M){return se(M,ue.sourceFile,B)});return O.createCodeFixAction(L,re,[e.Diagnostics.Add_undefined_type_to_property_0,B.prop.name.getText()],N,e.Diagnostics.Add_undefined_type_to_all_uninitialized_properties)}function se(ue,B,re){var M=e.factory.createKeywordTypeNode(152),x=e.isUnionTypeNode(re.type)?re.type.types.concat(M):[re.type,M],ie=e.factory.createUnionTypeNode(x);re.isJs?ue.addJSDocTags(B,re.prop,[e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(ie))]):ue.replaceNode(B,re.type,ie)}function p(ue,B){if(!B.isJs){var re=ue.program.getTypeChecker(),M=G(re,B.prop);if(!!M){var x=e.textChanges.ChangeTracker.with(ue,function(ie){return C(ie,ue.sourceFile,B.prop,M)});return O.createCodeFixAction(L,x,[e.Diagnostics.Add_initializer_to_property_0,B.prop.name.getText()],Q,e.Diagnostics.Add_initializers_to_all_uninitialized_properties)}}}function C(ue,B,re,M){var x=e.factory.updatePropertyDeclaration(re,re.decorators,re.modifiers,re.name,re.questionToken,re.type,M);ue.replaceNode(B,re,x)}function G(ue,B){return E(ue,ue.getTypeFromTypeNode(B.type))}function E(ue,B){if(B.flags&512)return B===ue.getFalseType()||B===ue.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(B.isStringLiteral())return e.factory.createStringLiteral(B.value);if(B.isNumberLiteral())return e.factory.createNumericLiteral(B.value);if(B.flags&2048)return e.factory.createBigIntLiteral(B.value);if(B.isUnion())return e.firstDefined(B.types,function(x){return E(ue,x)});if(B.isClass()){var re=e.getClassLikeDeclarationOfSymbol(B.symbol);if(!re||e.hasSyntacticModifier(re,128))return;var M=e.getFirstConstructorWithBody(re);return M&&M.parameters.length?void 0:e.factory.createNewExpression(e.factory.createIdentifier(B.symbol.name),void 0,void 0)}else if(ue.isArrayLikeType(B))return e.factory.createArrayLiteralExpression()}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="requireInTs",W=[e.Diagnostics.require_call_may_be_converted_to_an_import.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(F){var g=Q(F.sourceFile,F.program,F.span.start);if(!!g){var S=e.textChanges.ChangeTracker.with(F,function(H){return N(H,F.sourceFile,g)});return[O.createCodeFixAction(L,S,e.Diagnostics.Convert_require_to_import,L,e.Diagnostics.Convert_all_require_to_import)]}},fixIds:[L],getAllCodeActions:function(F){return O.codeFixAll(F,W,function(g,S){var H=Q(S.file,F.program,S.start);H&&N(g,F.sourceFile,H)})}});function N(F,g,S){var H=S.allowSyntheticDefaults,se=S.defaultImportName,p=S.namedImports,C=S.statement,G=S.required;F.replaceNode(g,C,se&&!H?e.factory.createImportEqualsDeclaration(void 0,void 0,!1,se,e.factory.createExternalModuleReference(G)):e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,se,p),G,void 0))}function Q(F,g,S){var H=e.getTokenAtPosition(F,S).parent;if(!e.isRequireCall(H,!0))throw e.Debug.failBadSyntaxKind(H);var se=e.cast(H.parent,e.isVariableDeclaration),p=e.tryCast(se.name,e.isIdentifier),C=e.isObjectBindingPattern(se.name)?pe(se.name):void 0;if(p||C)return{allowSyntheticDefaults:e.getAllowSyntheticDefaultImports(g.getCompilerOptions()),defaultImportName:p,namedImports:C,statement:e.cast(se.parent.parent,e.isVariableStatement),required:e.first(H.arguments)}}function pe(F){for(var g=[],S=0,H=F.elements;S<H.length;S++){var se=H[S];if(!e.isIdentifier(se.name)||se.initializer)return;g.push(e.factory.createImportSpecifier(!1,e.tryCast(se.propertyName,e.isIdentifier),se.name))}if(g.length)return e.factory.createNamedImports(g)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="useDefaultImport",W=[e.Diagnostics.Import_may_be_converted_to_a_default_import.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(pe){var F=pe.sourceFile,g=pe.span.start,S=N(F,g);if(!!S){var H=e.textChanges.ChangeTracker.with(pe,function(se){return Q(se,F,S,pe.preferences)});return[O.createCodeFixAction(L,H,e.Diagnostics.Convert_to_default_import,L,e.Diagnostics.Convert_all_to_default_imports)]}},fixIds:[L],getAllCodeActions:function(pe){return O.codeFixAll(pe,W,function(F,g){var S=N(g.file,g.start);S&&Q(F,g.file,S,pe.preferences)})}});function N(pe,F){var g=e.getTokenAtPosition(pe,F);if(!!e.isIdentifier(g)){var S=g.parent;if(e.isImportEqualsDeclaration(S)&&e.isExternalModuleReference(S.moduleReference))return{importNode:S,name:g,moduleSpecifier:S.moduleReference.expression};if(e.isNamespaceImport(S)){var H=S.parent.parent;return{importNode:H,name:g,moduleSpecifier:H.moduleSpecifier}}}}function Q(pe,F,g,S){pe.replaceNode(F,g.importNode,e.makeImport(g.name,void 0,g.moduleSpecifier,e.getQuotePreference(F,S)))}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="useBigintLiteral",W=[e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(pe){var F=e.textChanges.ChangeTracker.with(pe,function(g){return N(g,pe.sourceFile,pe.span)});if(F.length>0)return[O.createCodeFixAction(L,F,e.Diagnostics.Convert_to_a_bigint_numeric_literal,L,e.Diagnostics.Convert_all_to_bigint_numeric_literals)]},fixIds:[L],getAllCodeActions:function(Q){return O.codeFixAll(Q,W,function(pe,F){return N(pe,F.file,F)})}});function N(Q,pe,F){var g=e.tryCast(e.getTokenAtPosition(pe,F.start),e.isNumericLiteral);if(!!g){var S=g.getText(pe)+"n";Q.replaceNode(pe,g,e.factory.createBigIntLiteral(S))}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixAddModuleReferTypeMissingTypeof",W=L,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];O.registerCodeFix({errorCodes:N,getCodeActions:function(g){var S=g.sourceFile,H=g.span,se=Q(S,H.start),p=e.textChanges.ChangeTracker.with(g,function(C){return pe(C,S,se)});return[O.createCodeFixAction(W,p,e.Diagnostics.Add_missing_typeof,W,e.Diagnostics.Add_missing_typeof)]},fixIds:[W],getAllCodeActions:function(F){return O.codeFixAll(F,N,function(g,S){return pe(g,F.sourceFile,Q(S.file,S.start))})}});function Q(F,g){var S=e.getTokenAtPosition(F,g);return e.Debug.assert(S.kind===100,"This token should be an ImportKeyword"),e.Debug.assert(S.parent.kind===199,"Token parent should be an ImportType"),S.parent}function pe(F,g,S){var H=e.factory.updateImportTypeNode(S,S.argument,S.qualifier,S.typeArguments,!0);F.replaceNode(g,S,H)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="wrapJsxInFragment",W=[e.Diagnostics.JSX_expressions_must_have_one_parent_element.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(g){var S=g.sourceFile,H=g.span,se=N(S,H.start);if(!!se){var p=e.textChanges.ChangeTracker.with(g,function(C){return Q(C,S,se)});return[O.createCodeFixAction(L,p,e.Diagnostics.Wrap_in_JSX_fragment,L,e.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]}},fixIds:[L],getAllCodeActions:function(F){return O.codeFixAll(F,W,function(g,S){var H=N(F.sourceFile,S.start);!H||Q(g,F.sourceFile,H)})}});function N(F,g){var S=e.getTokenAtPosition(F,g),H=S.parent,se=H.parent;if(!(!e.isBinaryExpression(se)&&(se=se.parent,!e.isBinaryExpression(se)))&&!!e.nodeIsMissing(se.operatorToken))return se}function Q(F,g,S){var H=pe(S);H&&F.replaceNode(g,S,e.factory.createJsxFragment(e.factory.createJsxOpeningFragment(),H,e.factory.createJsxJsxClosingFragment()))}function pe(F){for(var g=[],S=F;;)if(e.isBinaryExpression(S)&&e.nodeIsMissing(S.operatorToken)&&S.operatorToken.kind===27){if(g.push(S.left),e.isJsxChild(S.right))return g.push(S.right),g;if(e.isBinaryExpression(S.right)){S=S.right;continue}else return}else return}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixConvertToMappedObjectType",W=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(g){var S=g.sourceFile,H=g.span,se=N(S,H.start);if(!!se){var p=e.textChanges.ChangeTracker.with(g,function(G){return pe(G,S,se)}),C=e.idText(se.container.name);return[O.createCodeFixAction(L,p,[e.Diagnostics.Convert_0_to_mapped_object_type,C],L,[e.Diagnostics.Convert_0_to_mapped_object_type,C])]}},fixIds:[L],getAllCodeActions:function(F){return O.codeFixAll(F,W,function(g,S){var H=N(S.file,S.start);H&&pe(g,S.file,H)})}});function N(F,g){var S=e.getTokenAtPosition(F,g),H=e.tryCast(S.parent.parent,e.isIndexSignatureDeclaration);if(!!H){var se=e.isInterfaceDeclaration(H.parent)?H.parent:e.tryCast(H.parent.parent,e.isTypeAliasDeclaration);if(!!se)return{indexSignature:H,container:se}}}function Q(F,g){return e.factory.createTypeAliasDeclaration(F.decorators,F.modifiers,F.name,F.typeParameters,g)}function pe(F,g,S){var H=S.indexSignature,se=S.container,p=e.isInterfaceDeclaration(se)?se.members:se.type.members,C=p.filter(function(re){return!e.isIndexSignatureDeclaration(re)}),G=e.first(H.parameters),E=e.factory.createTypeParameterDeclaration(e.cast(G.name,e.isIdentifier),G.type),ue=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(H)?e.factory.createModifier(144):void 0,E,void 0,H.questionToken,H.type,void 0),B=e.factory.createIntersectionTypeNode(qe(qe(qe([],e.getAllSuperTypeNodes(se),!0),[ue],!1),C.length?[e.factory.createTypeLiteralNode(C)]:e.emptyArray,!0));F.replaceNode(g,se,Q(se,B))}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="removeAccidentalCallParentheses",W=[e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(N){var Q=e.findAncestor(e.getTokenAtPosition(N.sourceFile,N.span.start),e.isCallExpression);if(!!Q){var pe=e.textChanges.ChangeTracker.with(N,function(F){F.deleteRange(N.sourceFile,{pos:Q.expression.end,end:Q.end})});return[O.createCodeFixActionWithoutFixAll(L,pe,e.Diagnostics.Remove_parentheses)]}},fixIds:[L]})})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="removeUnnecessaryAwait",W=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(pe){var F=e.textChanges.ChangeTracker.with(pe,function(g){return N(g,pe.sourceFile,pe.span)});if(F.length>0)return[O.createCodeFixAction(L,F,e.Diagnostics.Remove_unnecessary_await,L,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[L],getAllCodeActions:function(Q){return O.codeFixAll(Q,W,function(pe,F){return N(pe,F.file,F)})}});function N(Q,pe,F){var g=e.tryCast(e.getTokenAtPosition(pe,F.start),function(G){return G.kind===132}),S=g&&e.tryCast(g.parent,e.isAwaitExpression);if(!!S){var H=S,se=e.isParenthesizedExpression(S.parent);if(se){var p=e.getLeftmostExpression(S.expression,!1);if(e.isIdentifier(p)){var C=e.findPrecedingToken(S.parent.pos,pe);C&&C.kind!==103&&(H=S.parent)}}Q.replaceNode(pe,H,S.expression)}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L=[e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],W="splitTypeOnlyImport";O.registerCodeFix({errorCodes:L,fixIds:[W],getCodeActions:function(F){var g=e.textChanges.ChangeTracker.with(F,function(S){return Q(S,N(F.sourceFile,F.span),F)});if(g.length)return[O.createCodeFixAction(W,g,e.Diagnostics.Split_into_two_separate_import_declarations,W,e.Diagnostics.Split_all_invalid_type_only_imports)]},getAllCodeActions:function(pe){return O.codeFixAll(pe,L,function(F,g){Q(F,N(pe.sourceFile,g),pe)})}});function N(pe,F){return e.findAncestor(e.getTokenAtPosition(pe,F.start),e.isImportDeclaration)}function Q(pe,F,g){if(!!F){var S=e.Debug.checkDefined(F.importClause);pe.replaceNode(g.sourceFile,F,e.factory.updateImportDeclaration(F,F.decorators,F.modifiers,e.factory.updateImportClause(S,S.isTypeOnly,S.name,void 0),F.moduleSpecifier,F.assertClause)),pe.insertNodeAfter(g.sourceFile,F,e.factory.createImportDeclaration(void 0,void 0,e.factory.updateImportClause(S,S.isTypeOnly,void 0,S.namedBindings),F.moduleSpecifier,F.assertClause))}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixConvertConstToLet",W=[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(F){var g=F.sourceFile,S=F.span,H=F.program,se=N(g,S.start,H);if(se!==void 0){var p=e.textChanges.ChangeTracker.with(F,function(C){return Q(C,g,se)});return[O.createCodeFixAction(L,p,e.Diagnostics.Convert_const_to_let,L,e.Diagnostics.Convert_const_to_let)]}},fixIds:[L]});function N(pe,F,g){var S,H=g.getTypeChecker(),se=H.getSymbolAtLocation(e.getTokenAtPosition(pe,F)),p=e.tryCast((S=se==null?void 0:se.valueDeclaration)===null||S===void 0?void 0:S.parent,e.isVariableDeclarationList);if(p!==void 0){var C=e.findChildOfKind(p,85,pe);if(C!==void 0)return e.createRange(C.pos,C.end)}}function Q(pe,F,g){pe.replaceRangeWithText(F,g,"let")}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixExpectedComma",W=e.Diagnostics._0_expected.code,N=[W];O.registerCodeFix({errorCodes:N,getCodeActions:function(F){var g=F.sourceFile,S=Q(g,F.span.start,F.errorCode);if(!!S){var H=e.textChanges.ChangeTracker.with(F,function(se){return pe(se,g,S)});return[O.createCodeFixAction(L,H,[e.Diagnostics.Change_0_to_1,";",","],L,[e.Diagnostics.Change_0_to_1,";",","])]}},fixIds:[L],getAllCodeActions:function(F){return O.codeFixAll(F,N,function(g,S){var H=Q(S.file,S.start,S.code);H&&pe(g,F.sourceFile,H)})}});function Q(F,g,S){var H=e.getTokenAtPosition(F,g);return H.kind===26&&H.parent&&(e.isObjectLiteralExpression(H.parent)||e.isArrayLiteralExpression(H.parent))?{node:H}:void 0}function pe(F,g,S){var H=S.node,se=e.factory.createToken(27);F.replaceNode(g,H,se)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="addVoidToPromise",W="addVoidToPromise",N=[e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];O.registerCodeFix({errorCodes:N,fixIds:[W],getCodeActions:function(F){var g=e.textChanges.ChangeTracker.with(F,function(S){return Q(S,F.sourceFile,F.span,F.program)});if(g.length>0)return[O.createCodeFixAction(L,g,e.Diagnostics.Add_void_to_Promise_resolved_without_a_value,W,e.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:function(F){return O.codeFixAll(F,N,function(g,S){return Q(g,S.file,S,F.program,new e.Set)})}});function Q(F,g,S,H,se){var p=e.getTokenAtPosition(g,S.start);if(!(!e.isIdentifier(p)||!e.isCallExpression(p.parent)||p.parent.expression!==p||p.parent.arguments.length!==0)){var C=H.getTypeChecker(),G=C.getSymbolAtLocation(p),E=G==null?void 0:G.valueDeclaration;if(!(!E||!e.isParameter(E)||!e.isNewExpression(E.parent.parent))&&!(se!=null&&se.has(E))){se==null||se.add(E);var ue=pe(E.parent.parent);if(e.some(ue)){var B=ue[0],re=!e.isUnionTypeNode(B)&&!e.isParenthesizedTypeNode(B)&&e.isParenthesizedTypeNode(e.factory.createUnionTypeNode([B,e.factory.createKeywordTypeNode(114)]).types[0]);re&&F.insertText(g,B.pos,"("),F.insertText(g,B.end,re?") | void":" | void")}else{var M=C.getResolvedSignature(p.parent),x=M==null?void 0:M.parameters[0],ie=x&&C.getTypeOfSymbolAtLocation(x,E.parent.parent);e.isInJSFile(E)?(!ie||ie.flags&3)&&(F.insertText(g,E.parent.parent.end,")"),F.insertText(g,e.skipTrivia(g.text,E.parent.parent.pos),"/** @type {Promise<void>} */(")):(!ie||ie.flags&2)&&F.insertText(g,E.parent.parent.expression.end,"<void>")}}}}function pe(F){var g;if(e.isInJSFile(F)){if(e.isParenthesizedExpression(F.parent)){var S=(g=e.getJSDocTypeTag(F.parent))===null||g===void 0?void 0:g.typeExpression.type;if(S&&e.isTypeReferenceNode(S)&&e.isIdentifier(S.typeName)&&e.idText(S.typeName)==="Promise")return S.typeArguments}}else return F.typeArguments}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="Convert export",W={name:"Convert default export to named export",description:e.Diagnostics.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},N={name:"Convert named export to default export",description:e.Diagnostics.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"};O.registerRefactor(L,{kinds:[W.kind,N.kind],getAvailableActions:function(G){var E=Q(G,G.triggerReason==="invoked");if(!E)return e.emptyArray;if(!O.isRefactorErrorInfo(E)){var ue=E.wasDefault?W:N;return[{name:L,description:ue.description,actions:[ue]}]}return G.preferences.provideRefactorNotApplicableReason?[{name:L,description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[Ve(Ve({},W),{notApplicableReason:E.error}),Ve(Ve({},N),{notApplicableReason:E.error})]}]:e.emptyArray},getEditsForAction:function(G,E){e.Debug.assert(E===W.name||E===N.name,"Unexpected action name");var ue=Q(G);e.Debug.assert(ue&&!O.isRefactorErrorInfo(ue),"Expected applicable refactor info");var B=e.textChanges.ChangeTracker.with(G,function(re){return pe(G.file,G.program,ue,re,G.cancellationToken)});return{edits:B,renameFilename:void 0,renameLocation:void 0}}});function Q(C,G){G===void 0&&(G=!0);var E=C.file,ue=C.program,B=e.getRefactorContextSpan(C),re=e.getTokenAtPosition(E,B.start),M=!!(re.parent&&e.getSyntacticModifierFlags(re.parent)&1)&&G?re.parent:e.getParentNodeInSpan(re,E,B);if(!M||!e.isSourceFile(M.parent)&&!(e.isModuleBlock(M.parent)&&e.isAmbientModule(M.parent.parent)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_export_statement)};var x=e.isSourceFile(M.parent)?M.parent.symbol:M.parent.parent.symbol,ie=e.getSyntacticModifierFlags(M)||(e.isExportAssignment(M)&&!M.isExportEquals?513:0),_e=!!(ie&512);if(!(ie&1)||!_e&&x.exports.has("default"))return{error:e.getLocaleSpecificMessage(e.Diagnostics.This_file_already_has_a_default_export)};var Y=ue.getTypeChecker(),Z=function(ee){return e.isIdentifier(ee)&&Y.getSymbolAtLocation(ee)?void 0:{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_named_export)}};switch(M.kind){case 255:case 256:case 257:case 259:case 258:case 260:{var k=M;return k.name?Z(k.name)||{exportNode:k,exportName:k.name,wasDefault:_e,exportingModuleSymbol:x}:void 0}case 236:{var I=M;if(!(I.declarationList.flags&2)||I.declarationList.declarations.length!==1)return;var ne=e.first(I.declarationList.declarations);return ne.initializer?(e.Debug.assert(!_e,"Can't have a default flag here"),Z(ne.name)||{exportNode:I,exportName:ne.name,wasDefault:_e,exportingModuleSymbol:x}):void 0}case 270:{var k=M;return k.isExportEquals?void 0:Z(k.expression)||{exportNode:k,exportName:k.expression,wasDefault:_e,exportingModuleSymbol:x}}default:return}}function pe(C,G,E,ue,B){F(C,E,ue,G.getTypeChecker()),g(G,E,ue,B)}function F(C,G,E,ue){var B=G.wasDefault,re=G.exportNode,M=G.exportName;if(B)if(e.isExportAssignment(re)&&!re.isExportEquals){var x=re.expression,ie=p(x.text,x.text);E.replaceNode(C,re,e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([ie])))}else E.delete(C,e.Debug.checkDefined(e.findModifier(re,88),"Should find a default keyword in modifier list"));else{var _e=e.Debug.checkDefined(e.findModifier(re,93),"Should find an export keyword in modifier list");switch(re.kind){case 255:case 256:case 257:E.insertNodeAfter(C,_e,e.factory.createToken(88));break;case 236:var Y=e.first(re.declarationList.declarations);if(!e.FindAllReferences.Core.isSymbolReferencedInFile(M,ue,C)&&!Y.type){E.replaceNode(C,re,e.factory.createExportDefault(e.Debug.checkDefined(Y.initializer,"Initializer was previously known to be present")));break}case 259:case 258:case 260:E.deleteModifier(C,_e),E.insertNodeAfter(C,re,e.factory.createExportDefault(e.factory.createIdentifier(M.text)));break;default:e.Debug.fail("Unexpected exportNode kind ".concat(re.kind))}}}function g(C,G,E,ue){var B=G.wasDefault,re=G.exportName,M=G.exportingModuleSymbol,x=C.getTypeChecker(),ie=e.Debug.checkDefined(x.getSymbolAtLocation(re),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(C.getSourceFiles(),x,ue,ie,M,re.text,B,function(_e){var Y=_e.getSourceFile();B?S(Y,_e,E,re.text):H(Y,_e,E)})}function S(C,G,E,ue){var B=G.parent;switch(B.kind){case 205:E.replaceNode(C,G,e.factory.createIdentifier(ue));break;case 269:case 274:{var re=B;E.replaceNode(C,re,se(ue,re.name.text));break}case 266:{var M=B;e.Debug.assert(M.name===G,"Import clause name should match provided ref");var re=se(ue,G.text),x=M.namedBindings;if(!x)E.replaceNode(C,G,e.factory.createNamedImports([re]));else if(x.kind===267){E.deleteRange(C,{pos:G.getStart(C),end:x.getStart(C)});var ie=e.isStringLiteral(M.parent.moduleSpecifier)?e.quotePreferenceFromString(M.parent.moduleSpecifier,C):1,_e=e.makeImport(void 0,[se(ue,G.text)],M.parent.moduleSpecifier,ie);E.insertNodeAfter(C,M.parent,_e)}else E.delete(C,G),E.insertNodeAtEndOfList(C,x.elements,re);break}default:e.Debug.failBadSyntaxKind(B)}}function H(C,G,E){var ue=G.parent;switch(ue.kind){case 205:E.replaceNode(C,G,e.factory.createIdentifier("default"));break;case 269:{var B=e.factory.createIdentifier(ue.name.text);ue.parent.elements.length===1?E.replaceNode(C,ue.parent,B):(E.delete(C,ue),E.insertNodeBefore(C,ue.parent,B));break}case 274:{E.replaceNode(C,ue,p("default",ue.name.text));break}default:e.Debug.assertNever(ue,"Unexpected parent kind ".concat(ue.kind))}}function se(C,G){return e.factory.createImportSpecifier(!1,C===G?void 0:e.factory.createIdentifier(C),e.factory.createIdentifier(G))}function p(C,G){return e.factory.createExportSpecifier(!1,C===G?void 0:e.factory.createIdentifier(C),e.factory.createIdentifier(G))}})(a=e.refactor||(e.refactor={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L,W="Convert import",N=(L={},L[0]={name:"Convert namespace import to named imports",description:e.Diagnostics.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},L[2]={name:"Convert named imports to namespace import",description:e.Diagnostics.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"},L[1]={name:"Convert named imports to default import",description:e.Diagnostics.Convert_named_imports_to_default_import.message,kind:"refactor.rewrite.import.default"},L);O.registerRefactor(W,{kinds:e.getOwnValues(N).map(function(C){return C.kind}),getAvailableActions:function(G){var E=Q(G,G.triggerReason==="invoked");if(!E)return e.emptyArray;if(!O.isRefactorErrorInfo(E)){var ue=N[E.convertTo];return[{name:W,description:ue.description,actions:[ue]}]}return G.preferences.provideRefactorNotApplicableReason?e.getOwnValues(N).map(function(B){return{name:W,description:B.description,actions:[Ve(Ve({},B),{notApplicableReason:E.error})]}}):e.emptyArray},getEditsForAction:function(G,E){e.Debug.assert(e.some(e.getOwnValues(N),function(re){return re.name===E}),"Unexpected action name");var ue=Q(G);e.Debug.assert(ue&&!O.isRefactorErrorInfo(ue),"Expected applicable refactor info");var B=e.textChanges.ChangeTracker.with(G,function(re){return pe(G.file,G.program,re,ue)});return{edits:B,renameFilename:void 0,renameLocation:void 0}}});function Q(C,G){G===void 0&&(G=!0);var E=C.file,ue=e.getRefactorContextSpan(C),B=e.getTokenAtPosition(E,ue.start),re=G?e.findAncestor(B,e.isImportDeclaration):e.getParentNodeInSpan(B,E,ue);if(!re||!e.isImportDeclaration(re))return{error:"Selection is not an import declaration."};var M=ue.start+ue.length,x=e.findNextToken(re,re.parent,E);if(!(x&&M>x.getStart())){var ie=re.importClause;if(!ie)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_import_clause)};if(!ie.namedBindings)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_namespace_import_or_named_imports)};if(ie.namedBindings.kind===267)return{convertTo:0,import:ie.namedBindings};var _e=C.program.getCompilerOptions(),Y=e.getAllowSyntheticDefaultImports(_e)&&se(ie.parent.moduleSpecifier,C.program.getTypeChecker());return Y?{convertTo:1,import:ie.namedBindings}:{convertTo:2,import:ie.namedBindings}}}function pe(C,G,E,ue){var B=G.getTypeChecker();ue.convertTo===0?F(C,B,E,ue.import,e.getAllowSyntheticDefaultImports(G.getCompilerOptions())):H(C,B,E,ue.import,ue.convertTo===1)}function F(C,G,E,ue,B){var re=!1,M=[],x=new e.Map;e.FindAllReferences.Core.eachSymbolReferenceInFile(ue.name,G,C,function(A){if(!e.isPropertyAccessOrQualifiedName(A.parent))re=!0;else{var f=g(A.parent).text;G.resolveName(f,A,67108863,!0)&&x.set(f,!0),e.Debug.assert(S(A.parent)===A,"Parent expression should match id"),M.push(A.parent)}});for(var ie=new e.Map,_e=0,Y=M;_e<Y.length;_e++){var Z=Y[_e],k=g(Z).text,I=ie.get(k);I===void 0&&ie.set(k,I=x.has(k)?e.getUniqueName(k,C):k),E.replaceNode(C,Z,e.factory.createIdentifier(I))}var ne=[];ie.forEach(function(A,f){ne.push(e.factory.createImportSpecifier(!1,A===f?void 0:e.factory.createIdentifier(f),e.factory.createIdentifier(A)))});var ee=ue.parent.parent;re&&!B?E.insertNodeAfter(C,ee,p(ee,void 0,ne)):E.replaceNode(C,ee,p(ee,re?e.factory.createIdentifier(ue.name.text):void 0,ne))}function g(C){return e.isPropertyAccessExpression(C)?C.name:C.right}function S(C){return e.isPropertyAccessExpression(C)?C.expression:C.left}function H(C,G,E,ue,B){var re=ue.parent.parent,M=re.moduleSpecifier,x=new e.Set;ue.elements.forEach(function(P){var D=G.getSymbolAtLocation(P.name);D&&x.add(D)});var ie=M&&e.isStringLiteral(M)?e.codefix.moduleSpecifierToValidIdentifier(M.text,99):"module";function _e(P){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(P.name,G,C,function(D){var l=G.resolveName(ie,D,67108863,!0);return l?x.has(l)?e.isExportSpecifier(D.parent):!0:!1})}for(var Y=ue.elements.some(_e),Z=Y?e.getUniqueName(ie,C):ie,k=new e.Set,I=function(P){var D=(P.propertyName||P.name).text;e.FindAllReferences.Core.eachSymbolReferenceInFile(P.name,G,C,function(l){var _=e.factory.createPropertyAccessExpression(e.factory.createIdentifier(Z),D);e.isShorthandPropertyAssignment(l.parent)?E.replaceNode(C,l.parent,e.factory.createPropertyAssignment(l.text,_)):e.isExportSpecifier(l.parent)?k.add(P):E.replaceNode(C,l,_)})},ne=0,ee=ue.elements;ne<ee.length;ne++){var A=ee[ne];I(A)}if(E.replaceNode(C,ue,B?e.factory.createIdentifier(Z):e.factory.createNamespaceImport(e.factory.createIdentifier(Z))),k.size){var f=e.arrayFrom(k.values()).map(function(P){return e.factory.createImportSpecifier(P.isTypeOnly,P.propertyName&&e.factory.createIdentifier(P.propertyName.text),e.factory.createIdentifier(P.name.text))});E.insertNodeAfter(C,ue.parent.parent,p(re,void 0,f))}}function se(C,G){var E=G.resolveExternalModuleName(C);if(!E)return!1;var ue=G.resolveExternalModuleSymbol(E);return E!==ue}function p(C,G,E){return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,G,E&&E.length?e.factory.createNamedImports(E):void 0),C.moduleSpecifier,void 0)}})(a=e.refactor||(e.refactor={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(W){var N="Convert to optional chain expression",Q=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_optional_chain_expression),pe={name:N,description:Q,kind:"refactor.rewrite.expression.optionalChain"};O.registerRefactor(N,{kinds:[pe.kind],getEditsForAction:g,getAvailableActions:F});function F(k){var I=p(k,k.triggerReason==="invoked");return I?O.isRefactorErrorInfo(I)?k.preferences.provideRefactorNotApplicableReason?[{name:N,description:Q,actions:[Ve(Ve({},pe),{notApplicableReason:I.error})]}]:e.emptyArray:[{name:N,description:Q,actions:[pe]}]:e.emptyArray}function g(k,I){var ne=p(k);e.Debug.assert(ne&&!O.isRefactorErrorInfo(ne),"Expected applicable refactor info");var ee=e.textChanges.ChangeTracker.with(k,function(A){return Z(k.file,k.program.getTypeChecker(),A,ne,I)});return{edits:ee,renameFilename:void 0,renameLocation:void 0}}function S(k){return e.isBinaryExpression(k)||e.isConditionalExpression(k)}function H(k){return e.isExpressionStatement(k)||e.isReturnStatement(k)||e.isVariableStatement(k)}function se(k){return S(k)||H(k)}function p(k,I){I===void 0&&(I=!0);var ne=k.file,ee=k.program,A=e.getRefactorContextSpan(k),f=A.length===0;if(!(f&&!I)){var P=e.getTokenAtPosition(ne,A.start),D=e.findTokenOnLeftOfPosition(ne,A.start+A.length),l=e.createTextSpanFromBounds(P.pos,D&&D.end>=P.pos?D.getEnd():P.getEnd()),_=f?x(P):M(P,l),J=_&&se(_)?ie(_):void 0;if(!J)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var w=ee.getTypeChecker();return e.isConditionalExpression(J)?C(J,w):G(J)}}function C(k,I){var ne=k.condition,ee=_e(k.whenTrue);if(!ee||I.isNullableType(I.getTypeAtLocation(ee)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};if((e.isPropertyAccessExpression(ne)||e.isIdentifier(ne))&&ue(ne,ee.expression))return{finalExpression:ee,occurrences:[ne],expression:k};if(e.isBinaryExpression(ne)){var A=E(ee.expression,ne);return A?{finalExpression:ee,occurrences:A,expression:k}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}}function G(k){if(k.operatorToken.kind!==55)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)};var I=_e(k.right);if(!I)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var ne=E(I.expression,k.left);return ne?{finalExpression:I,occurrences:ne,expression:k}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}function E(k,I){for(var ne=[];e.isBinaryExpression(I)&&I.operatorToken.kind===55;){var ee=ue(e.skipParentheses(k),e.skipParentheses(I.right));if(!ee)break;ne.push(ee),k=ee,I=I.left}var A=ue(k,I);return A&&ne.push(A),ne.length>0?ne:void 0}function ue(k,I){if(!(!e.isIdentifier(I)&&!e.isPropertyAccessExpression(I)&&!e.isElementAccessExpression(I)))return B(k,I)?I:void 0}function B(k,I){for(;(e.isCallExpression(k)||e.isPropertyAccessExpression(k)||e.isElementAccessExpression(k))&&re(k)!==re(I);)k=k.expression;for(;e.isPropertyAccessExpression(k)&&e.isPropertyAccessExpression(I)||e.isElementAccessExpression(k)&&e.isElementAccessExpression(I);){if(re(k)!==re(I))return!1;k=k.expression,I=I.expression}return e.isIdentifier(k)&&e.isIdentifier(I)&&k.getText()===I.getText()}function re(k){if(e.isIdentifier(k)||e.isStringOrNumericLiteralLike(k))return k.getText();if(e.isPropertyAccessExpression(k))return re(k.name);if(e.isElementAccessExpression(k))return re(k.argumentExpression)}function M(k,I){for(;k.parent;){if(se(k)&&I.length!==0&&k.end>=I.start+I.length)return k;k=k.parent}}function x(k){for(;k.parent;){if(se(k)&&!se(k.parent))return k;k=k.parent}}function ie(k){if(S(k))return k;if(e.isVariableStatement(k)){var I=e.getSingleVariableOfVariableStatement(k),ne=I==null?void 0:I.initializer;return ne&&S(ne)?ne:void 0}return k.expression&&S(k.expression)?k.expression:void 0}function _e(k){if(k=e.skipParentheses(k),e.isBinaryExpression(k))return _e(k.left);if((e.isPropertyAccessExpression(k)||e.isElementAccessExpression(k)||e.isCallExpression(k))&&!e.isOptionalChain(k))return k}function Y(k,I,ne){if(e.isPropertyAccessExpression(I)||e.isElementAccessExpression(I)||e.isCallExpression(I)){var ee=Y(k,I.expression,ne),A=ne.length>0?ne[ne.length-1]:void 0,f=(A==null?void 0:A.getText())===I.expression.getText();if(f&&ne.pop(),e.isCallExpression(I))return f?e.factory.createCallChain(ee,e.factory.createToken(28),I.typeArguments,I.arguments):e.factory.createCallChain(ee,I.questionDotToken,I.typeArguments,I.arguments);if(e.isPropertyAccessExpression(I))return f?e.factory.createPropertyAccessChain(ee,e.factory.createToken(28),I.name):e.factory.createPropertyAccessChain(ee,I.questionDotToken,I.name);if(e.isElementAccessExpression(I))return f?e.factory.createElementAccessChain(ee,e.factory.createToken(28),I.argumentExpression):e.factory.createElementAccessChain(ee,I.questionDotToken,I.argumentExpression)}return I}function Z(k,I,ne,ee,A){var f=ee.finalExpression,P=ee.occurrences,D=ee.expression,l=P[P.length-1],_=Y(I,f,P);_&&(e.isPropertyAccessExpression(_)||e.isElementAccessExpression(_)||e.isCallExpression(_))&&(e.isBinaryExpression(D)?ne.replaceNodeRange(k,l,f,_):e.isConditionalExpression(D)&&ne.replaceNode(k,D,e.factory.createBinaryExpression(_,e.factory.createToken(60),D.whenFalse)))}})(L=O.convertToOptionalChainExpression||(O.convertToOptionalChainExpression={}))})(a=e.refactor||(e.refactor={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(W){var N="Convert overload list to single signature",Q=e.Diagnostics.Convert_overload_list_to_single_signature.message,pe={name:N,description:Q,kind:"refactor.rewrite.function.overloadList"};O.registerRefactor(N,{kinds:[pe.kind],getEditsForAction:g,getAvailableActions:F});function F(se){var p=se.file,C=se.startPosition,G=se.program,E=H(p,C,G);return E?[{name:N,description:Q,actions:[pe]}]:e.emptyArray}function g(se){var p=se.file,C=se.startPosition,G=se.program,E=H(p,C,G);if(!E)return;var ue=G.getTypeChecker(),B=E[E.length-1],re=B;switch(B.kind){case 167:{re=e.factory.updateMethodSignature(B,B.modifiers,B.name,B.questionToken,B.typeParameters,x(E),B.type);break}case 168:{re=e.factory.updateMethodDeclaration(B,B.decorators,B.modifiers,B.asteriskToken,B.name,B.questionToken,B.typeParameters,x(E),B.type,B.body);break}case 173:{re=e.factory.updateCallSignature(B,B.typeParameters,x(E),B.type);break}case 170:{re=e.factory.updateConstructorDeclaration(B,B.decorators,B.modifiers,x(E),B.body);break}case 174:{re=e.factory.updateConstructSignature(B,B.typeParameters,x(E),B.type);break}case 255:{re=e.factory.updateFunctionDeclaration(B,B.decorators,B.modifiers,B.asteriskToken,B.name,B.typeParameters,x(E),B.type,B.body);break}default:return e.Debug.failBadSyntaxKind(B,"Unhandled signature kind in overload list conversion refactoring")}if(re===B)return;var M=e.textChanges.ChangeTracker.with(se,function(Y){Y.replaceNodeRange(p,E[0],E[E.length-1],re)});return{renameFilename:void 0,renameLocation:void 0,edits:M};function x(Y){var Z=Y[Y.length-1];return e.isFunctionLikeDeclaration(Z)&&Z.body&&(Y=Y.slice(0,Y.length-1)),e.factory.createNodeArray([e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),"args",void 0,e.factory.createUnionTypeNode(e.map(Y,ie)))])}function ie(Y){var Z=e.map(Y.parameters,_e);return e.setEmitFlags(e.factory.createTupleTypeNode(Z),e.some(Z,function(k){return!!e.length(e.getSyntheticLeadingComments(k))})?0:1)}function _e(Y){e.Debug.assert(e.isIdentifier(Y.name));var Z=e.setTextRange(e.factory.createNamedTupleMember(Y.dotDotDotToken,Y.name,Y.questionToken,Y.type||e.factory.createKeywordTypeNode(130)),Y),k=Y.symbol&&Y.symbol.getDocumentationComment(ue);if(k){var I=e.displayPartsToString(k);I.length&&e.setSyntheticLeadingComments(Z,[{text:`*
`.concat(I.split(`
`).map(function(ne){return" * ".concat(ne)}).join(`
`),`
 `),kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return Z}}function S(se){switch(se.kind){case 167:case 168:case 173:case 170:case 174:case 255:return!0}return!1}function H(se,p,C){var G=e.getTokenAtPosition(se,p),E=e.findAncestor(G,S);if(!!E){var ue=C.getTypeChecker(),B=E.symbol;if(!!B){var re=B.declarations;if(!(e.length(re)<=1)&&!!e.every(re,function(Y){return e.getSourceFileOfNode(Y)===se})&&!!S(re[0])){var M=re[0].kind;if(!!e.every(re,function(Y){return Y.kind===M})){var x=re;if(!e.some(x,function(Y){return!!Y.typeParameters||e.some(Y.parameters,function(Z){return!!Z.decorators||!!Z.modifiers||!e.isIdentifier(Z.name)})})){var ie=e.mapDefined(x,function(Y){return ue.getSignatureFromDeclaration(Y)});if(e.length(ie)===e.length(re)){var _e=ue.getReturnTypeOfSignature(ie[0]);if(!!e.every(ie,function(Y){return ue.getReturnTypeOfSignature(Y)===_e}))return x}}}}}}}})(L=O.addOrRemoveBracesToArrowFunction||(O.addOrRemoveBracesToArrowFunction={}))})(a=e.refactor||(e.refactor={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(W){var N="Extract Symbol",Q={name:"Extract Constant",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),kind:"refactor.extract.constant"},pe={name:"Extract Function",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),kind:"refactor.extract.function"};O.registerRefactor(N,{kinds:[Q.kind,pe.kind],getEditsForAction:g,getAvailableActions:F});function F(V){var le=V.kind,ke=se(V.file,e.getRefactorContextSpan(V),V.triggerReason==="invoked"),Ue=ke.targetRange;if(Ue===void 0){if(!ke.errors||ke.errors.length===0||!V.preferences.provideRefactorNotApplicableReason)return e.emptyArray;var He=[];return O.refactorKindBeginsWith(pe.kind,le)&&He.push({name:N,description:pe.description,actions:[Ve(Ve({},pe),{notApplicableReason:Tr(ke.errors)})]}),O.refactorKindBeginsWith(Q.kind,le)&&He.push({name:N,description:Q.description,actions:[Ve(Ve({},Q),{notApplicableReason:Tr(ke.errors)})]}),He}var ar=re(Ue,V);if(ar===void 0)return e.emptyArray;for(var gr=[],me=new e.Map,Ge,er=[],he=new e.Map,we,ye=0,Se=0,ge=ar;Se<ge.length;Se++){var Fe=ge[Se],cr=Fe.functionExtraction,ur=Fe.constantExtraction,Ir=cr.description;if(O.refactorKindBeginsWith(pe.kind,le)&&(cr.errors.length===0?me.has(Ir)||(me.set(Ir,!0),gr.push({description:Ir,name:"function_scope_".concat(ye),kind:pe.kind})):Ge||(Ge={description:Ir,name:"function_scope_".concat(ye),notApplicableReason:Tr(cr.errors),kind:pe.kind})),O.refactorKindBeginsWith(Q.kind,le))if(ur.errors.length===0){var dr=ur.description;he.has(dr)||(he.set(dr,!0),er.push({description:dr,name:"constant_scope_".concat(ye),kind:Q.kind}))}else we||(we={description:Ir,name:"constant_scope_".concat(ye),notApplicableReason:Tr(ur.errors),kind:Q.kind});ye++}var Br=[];return gr.length?Br.push({name:N,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:gr}):V.preferences.provideRefactorNotApplicableReason&&Ge&&Br.push({name:N,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:[Ge]}),er.length?Br.push({name:N,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:er}):V.preferences.provideRefactorNotApplicableReason&&we&&Br.push({name:N,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:[we]}),Br.length?Br:e.emptyArray;function Tr(n){var Er=n[0].messageText;return typeof Er!="string"&&(Er=Er.messageText),Er}}W.getRefactorActionsToExtractSymbol=F;function g(V,le){var ke=se(V.file,e.getRefactorContextSpan(V)),Ue=ke.targetRange,He=/^function_scope_(\d+)$/.exec(le);if(He){var ar=+He[1];return e.Debug.assert(isFinite(ar),"Expected to parse a finite number from the function scope index"),ue(Ue,V,ar)}var gr=/^constant_scope_(\d+)$/.exec(le);if(gr){var ar=+gr[1];return e.Debug.assert(isFinite(ar),"Expected to parse a finite number from the constant scope index"),B(Ue,V,ar)}e.Debug.fail("Unrecognized action name")}W.getRefactorEditsToExtractSymbol=g;var S;(function(V){function le(ke){return{message:ke,code:0,category:e.DiagnosticCategory.Message,key:ke}}V.cannotExtractRange=le("Cannot extract range."),V.cannotExtractImport=le("Cannot extract import statement."),V.cannotExtractSuper=le("Cannot extract super call."),V.cannotExtractJSDoc=le("Cannot extract JSDoc."),V.cannotExtractEmpty=le("Cannot extract empty range."),V.expressionExpected=le("expression expected."),V.uselessConstantType=le("No reason to extract constant of type."),V.statementOrExpressionExpected=le("Statement or expression expected."),V.cannotExtractRangeContainingConditionalBreakOrContinueStatements=le("Cannot extract range containing conditional break or continue statements."),V.cannotExtractRangeContainingConditionalReturnStatement=le("Cannot extract range containing conditional return statement."),V.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=le("Cannot extract range containing labeled break or continue with target outside of the range."),V.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=le("Cannot extract range containing writes to references located outside of the target range in generators."),V.typeWillNotBeVisibleInTheNewScope=le("Type will not visible in the new scope."),V.functionWillNotBeVisibleInTheNewScope=le("Function will not visible in the new scope."),V.cannotExtractIdentifier=le("Select more than a single identifier."),V.cannotExtractExportedEntity=le("Cannot extract exported declaration"),V.cannotWriteInExpression=le("Cannot write back side-effects when extracting an expression"),V.cannotExtractReadonlyPropertyInitializerOutsideConstructor=le("Cannot move initialization of read-only class property outside of the constructor"),V.cannotExtractAmbientBlock=le("Cannot extract code from ambient contexts"),V.cannotAccessVariablesFromNestedScopes=le("Cannot access variables from nested scopes"),V.cannotExtractToJSClass=le("Cannot extract constant to a class scope in JS"),V.cannotExtractToExpressionArrowFunction=le("Cannot extract constant to an arrow function without a block")})(S=W.Messages||(W.Messages={}));var H;(function(V){V[V.None=0]="None",V[V.HasReturn=1]="HasReturn",V[V.IsGenerator=2]="IsGenerator",V[V.IsAsyncFunction=4]="IsAsyncFunction",V[V.UsesThis=8]="UsesThis",V[V.InStaticRegion=16]="InStaticRegion"})(H||(H={}));function se(V,le,ke){ke===void 0&&(ke=!0);var Ue=le.length;if(Ue===0&&!ke)return{errors:[e.createFileDiagnostic(V,le.start,Ue,S.cannotExtractEmpty)]};var He=Ue===0&&ke,ar=e.findFirstNonJsxWhitespaceToken(V,le.start),gr=e.findTokenOnLeftOfPosition(V,e.textSpanEnd(le)),me=ar&&gr&&ke?p(ar,gr,V):le,Ge=He?ce(ar):e.getParentNodeInSpan(ar,V,me),er=He?Ge:e.getParentNodeInSpan(gr,V,me),he=[],we=H.None;if(!Ge||!er)return{errors:[e.createFileDiagnostic(V,le.start,Ue,S.cannotExtractRange)]};if(Ge.flags&4194304)return{errors:[e.createFileDiagnostic(V,le.start,Ue,S.cannotExtractJSDoc)]};if(Ge.parent!==er.parent)return{errors:[e.createFileDiagnostic(V,le.start,Ue,S.cannotExtractRange)]};if(Ge!==er){if(!de(Ge.parent))return{errors:[e.createFileDiagnostic(V,le.start,Ue,S.cannotExtractRange)]};for(var ye=[],Se=0,ge=Ge.parent.statements;Se<ge.length;Se++){var Fe=ge[Se];if(Fe===Ge||ye.length){var cr=n(Fe);if(cr)return{errors:cr};ye.push(Fe)}if(Fe===er)break}return ye.length?{targetRange:{range:ye,facts:we,declarations:he}}:{errors:[e.createFileDiagnostic(V,le.start,Ue,S.cannotExtractRange)]}}if(e.isReturnStatement(Ge)&&!Ge.expression)return{errors:[e.createFileDiagnostic(V,le.start,Ue,S.cannotExtractRange)]};var ur=dr(Ge),Ir=Br(ur)||n(ur);if(Ir)return{errors:Ir};return{targetRange:{range:C(ur),facts:we,declarations:he}};function dr(Er){if(e.isReturnStatement(Er)){if(Er.expression)return Er.expression}else if(e.isVariableStatement(Er)||e.isVariableDeclarationList(Er)){for(var br=e.isVariableStatement(Er)?Er.declarationList.declarations:Er.declarations,Pr=0,Ce=void 0,Le=0,Xe=br;Le<Xe.length;Le++){var Cr=Xe[Le];Cr.initializer&&(Pr++,Ce=Cr.initializer)}if(Pr===1)return Ce}else if(e.isVariableDeclaration(Er)&&Er.initializer)return Er.initializer;return Er}function Br(Er){if(e.isIdentifier(e.isExpressionStatement(Er)?Er.expression:Er))return[e.createDiagnosticForNode(Er,S.cannotExtractIdentifier)]}function Tr(Er,br){for(var Pr=Er;Pr!==br;){if(Pr.kind===166){e.isStatic(Pr)&&(we|=H.InStaticRegion);break}else if(Pr.kind===163){var Ce=e.getContainingFunction(Pr);Ce.kind===170&&(we|=H.InStaticRegion);break}else Pr.kind===168&&e.isStatic(Pr)&&(we|=H.InStaticRegion);Pr=Pr.parent}}function n(Er){var br;if(function(Lr){Lr[Lr.None=0]="None",Lr[Lr.Break=1]="Break",Lr[Lr.Continue=2]="Continue",Lr[Lr.Return=4]="Return"}(br||(br={})),e.Debug.assert(Er.pos<=Er.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),e.Debug.assert(!e.positionIsSynthesized(Er.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!e.isStatement(Er)&&!(e.isExpressionNode(Er)&&m(Er)))return[e.createDiagnosticForNode(Er,S.statementOrExpressionExpected)];if(Er.flags&8388608)return[e.createDiagnosticForNode(Er,S.cannotExtractAmbientBlock)];var Pr=e.getContainingClass(Er);Pr&&Tr(Er,Pr);var Ce,Le=4,Xe;return Cr(Er),Ce;function Cr(Lr){if(Ce)return!0;if(e.isDeclaration(Lr)){var Jr=Lr.kind===253?Lr.parent.parent:Lr;if(e.hasSyntacticModifier(Jr,1))return(Ce||(Ce=[])).push(e.createDiagnosticForNode(Lr,S.cannotExtractExportedEntity)),!0;he.push(Lr.symbol)}switch(Lr.kind){case 265:return(Ce||(Ce=[])).push(e.createDiagnosticForNode(Lr,S.cannotExtractImport)),!0;case 270:return(Ce||(Ce=[])).push(e.createDiagnosticForNode(Lr,S.cannotExtractExportedEntity)),!0;case 106:if(Lr.parent.kind===207){var Rr=e.getContainingClass(Lr);if(Rr===void 0||Rr.pos<le.start||Rr.end>=le.start+le.length)return(Ce||(Ce=[])).push(e.createDiagnosticForNode(Lr,S.cannotExtractSuper)),!0}else we|=H.UsesThis;break;case 213:e.forEachChild(Lr,function or(Kr){if(e.isThis(Kr))we|=H.UsesThis;else{if(e.isClassLike(Kr)||e.isFunctionLike(Kr)&&!e.isArrowFunction(Kr))return!1;e.forEachChild(Kr,or)}});case 256:case 255:e.isSourceFile(Lr.parent)&&Lr.parent.externalModuleIndicator===void 0&&(Ce||(Ce=[])).push(e.createDiagnosticForNode(Lr,S.functionWillNotBeVisibleInTheNewScope));case 225:case 212:case 168:case 170:case 171:case 172:return!1}var ci=Le;switch(Lr.kind){case 238:Le=0;break;case 251:Le=0;break;case 234:Lr.parent&&Lr.parent.kind===251&&Lr.parent.finallyBlock===Lr&&(Le=4);break;case 289:case 288:Le|=1;break;default:e.isIterationStatement(Lr,!1)&&(Le|=3);break}switch(Lr.kind){case 191:case 108:we|=H.UsesThis;break;case 249:{var be=Lr.label;(Xe||(Xe=[])).push(be.escapedText),e.forEachChild(Lr,Cr),Xe.pop();break}case 245:case 244:{var be=Lr.label;be?e.contains(Xe,be.escapedText)||(Ce||(Ce=[])).push(e.createDiagnosticForNode(Lr,S.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):Le&(Lr.kind===245?1:2)||(Ce||(Ce=[])).push(e.createDiagnosticForNode(Lr,S.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 217:we|=H.IsAsyncFunction;break;case 223:we|=H.IsGenerator;break;case 246:Le&4?we|=H.HasReturn:(Ce||(Ce=[])).push(e.createDiagnosticForNode(Lr,S.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(Lr,Cr);break}Le=ci}}}W.getRangeToExtract=se;function p(V,le,ke){var Ue=V.getStart(ke),He=le.getEnd();return ke.text.charCodeAt(He)===59&&He++,{start:Ue,length:He-Ue}}function C(V){if(e.isStatement(V))return[V];if(e.isExpressionNode(V))return e.isExpressionStatement(V.parent)?[V.parent]:V}function G(V){return e.isFunctionLikeDeclaration(V)||e.isSourceFile(V)||e.isModuleBlock(V)||e.isClassLike(V)}function E(V){var le=z(V.range)?e.first(V.range):V.range;if(V.facts&H.UsesThis){var ke=e.getContainingClass(le);if(ke){var Ue=e.findAncestor(le,e.isFunctionLikeDeclaration);return Ue?[Ue,ke]:[ke]}}for(var He=[];;)if(le=le.parent,le.kind===163&&(le=e.findAncestor(le,function(ar){return e.isFunctionLikeDeclaration(ar)}).parent),G(le)&&(He.push(le),le.kind===303))return He}function ue(V,le,ke){var Ue=M(V,le),He=Ue.scopes,ar=Ue.readsAndWrites,gr=ar.target,me=ar.usagesPerScope,Ge=ar.functionErrorsPerScope,er=ar.exposedVariableDeclarations;return e.Debug.assert(!Ge[ke].length,"The extraction went missing? How?"),le.cancellationToken.throwIfCancellationRequested(),I(gr,He[ke],me[ke],er,V,le)}function B(V,le,ke){var Ue=M(V,le),He=Ue.scopes,ar=Ue.readsAndWrites,gr=ar.target,me=ar.usagesPerScope,Ge=ar.constantErrorsPerScope,er=ar.exposedVariableDeclarations;e.Debug.assert(!Ge[ke].length,"The extraction went missing? How?"),e.Debug.assert(er.length===0,"Extract constant accepted a range containing a variable declaration?"),le.cancellationToken.throwIfCancellationRequested();var he=e.isExpression(gr)?gr:gr.statements[0].expression;return ne(he,He[ke],me[ke],V.facts,le)}function re(V,le){var ke=M(V,le),Ue=ke.scopes,He=ke.readsAndWrites,ar=He.functionErrorsPerScope,gr=He.constantErrorsPerScope,me=Ue.map(function(Ge,er){var he=x(Ge),we=ie(Ge),ye=e.isFunctionLikeDeclaration(Ge)?_e(Ge):e.isClassLike(Ge)?Y(Ge):Z(Ge),Se,ge;return ye===1?(Se=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[he,"global"]),ge=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[we,"global"])):ye===0?(Se=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[he,"module"]),ge=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[we,"module"])):(Se=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[he,ye]),ge=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[we,ye])),er===0&&!e.isClassLike(Ge)&&(ge=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[we])),{functionExtraction:{description:Se,errors:ar[er]},constantExtraction:{description:ge,errors:gr[er]}}});return me}function M(V,le){var ke=le.file,Ue=E(V),He=y(V,ke),ar=ve(V,Ue,He,ke,le.program.getTypeChecker(),le.cancellationToken);return{scopes:Ue,readsAndWrites:ar}}function x(V){return e.isFunctionLikeDeclaration(V)?"inner function":e.isClassLike(V)?"method":"function"}function ie(V){return e.isClassLike(V)?"readonly field":"constant"}function _e(V){switch(V.kind){case 170:return"constructor";case 212:case 255:return V.name?"function '".concat(V.name.text,"'"):e.ANONYMOUS;case 213:return"arrow function";case 168:return"method '".concat(V.name.getText(),"'");case 171:return"'get ".concat(V.name.getText(),"'");case 172:return"'set ".concat(V.name.getText(),"'");default:throw e.Debug.assertNever(V,"Unexpected scope kind ".concat(V.kind))}}function Y(V){return V.kind===256?V.name?"class '".concat(V.name.text,"'"):"anonymous class declaration":V.name?"class expression '".concat(V.name.text,"'"):"anonymous class expression"}function Z(V){return V.kind===261?"namespace '".concat(V.parent.name.getText(),"'"):V.externalModuleIndicator?0:1}var k;(function(V){V[V.Module=0]="Module",V[V.Global=1]="Global"})(k||(k={}));function I(V,le,ke,Ue,He,ar){var gr=ke.usages,me=ke.typeParameterUsages,Ge=ke.substitutions,er=ar.program.getTypeChecker(),he=e.getEmitScriptTarget(ar.program.getCompilerOptions()),we=e.codefix.createImportAdder(ar.file,ar.program,ar.preferences,ar.host),ye=le.getSourceFile(),Se=e.getUniqueName(e.isClassLike(le)?"newMethod":"newFunction",ye),ge=e.isInJSFile(le),Fe=e.factory.createIdentifier(Se),cr,ur=[],Ir=[],dr;gr.forEach(function(Me,v){var xe;if(!ge){var ze=er.getTypeOfSymbolAtLocation(Me.symbol,Me.node);ze=er.getBaseTypeOfLiteralType(ze),xe=e.codefix.typeToAutoImportableTypeNode(er,we,ze,le,he,1)}var Je=e.factory.createParameterDeclaration(void 0,void 0,void 0,v,void 0,xe);ur.push(Je),Me.usage===2&&(dr||(dr=[])).push(Me),Ir.push(e.factory.createIdentifier(v))});var Br=e.arrayFrom(me.values()).map(function(Me){return{type:Me,declaration:A(Me)}}),Tr=Br.sort(f),n=Tr.length===0?void 0:Tr.map(function(Me){return Me.declaration}),Er=n!==void 0?n.map(function(Me){return e.factory.createTypeReferenceNode(Me.name,void 0)}):void 0;if(e.isExpression(V)&&!ge){var br=er.getContextualType(V);cr=er.typeToTypeNode(br,le,1)}var Pr=D(V,Ue,dr,Ge,!!(He.facts&H.HasReturn)),Ce=Pr.body,Le=Pr.returnValueProperty;e.suppressLeadingAndTrailingTrivia(Ce);var Xe;if(e.isClassLike(le)){var Cr=ge?[]:[e.factory.createModifier(121)];He.facts&H.InStaticRegion&&Cr.push(e.factory.createModifier(124)),He.facts&H.IsAsyncFunction&&Cr.push(e.factory.createModifier(131)),Xe=e.factory.createMethodDeclaration(void 0,Cr.length?Cr:void 0,He.facts&H.IsGenerator?e.factory.createToken(41):void 0,Fe,void 0,n,ur,cr,Ce)}else Xe=e.factory.createFunctionDeclaration(void 0,He.facts&H.IsAsyncFunction?[e.factory.createToken(131)]:void 0,He.facts&H.IsGenerator?e.factory.createToken(41):void 0,Fe,n,ur,cr,Ce);var Lr=e.textChanges.ChangeTracker.fromContext(ar),Jr=(z(He.range)?e.last(He.range):He.range).end,Rr=J(Jr,le);Rr?Lr.insertNodeBefore(ar.file,Rr,Xe,!0):Lr.insertNodeAtEndOfScope(ar.file,le,Xe),we.writeFixes(Lr);var ci=[],be=P(le,He,Se),or=e.factory.createCallExpression(be,Er,Ir);if(He.facts&H.IsGenerator&&(or=e.factory.createYieldExpression(e.factory.createToken(41),or)),He.facts&H.IsAsyncFunction&&(or=e.factory.createAwaitExpression(or)),ae(V)&&(or=e.factory.createJsxExpression(void 0,or)),Ue.length&&!dr)if(e.Debug.assert(!Le,"Expected no returnValueProperty"),e.Debug.assert(!(He.facts&H.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),Ue.length===1){var Kr=Ue[0];ci.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(Kr.name),void 0,e.getSynthesizedDeepClone(Kr.type),or)],Kr.parent.flags)))}else{for(var ei=[],li=[],Si=Ue[0].parent.flags,qi=!1,ft=0,bt=Ue;ft<bt.length;ft++){var Kr=bt[ft];ei.push(e.factory.createBindingElement(void 0,void 0,e.getSynthesizedDeepClone(Kr.name)));var aa=er.typeToTypeNode(er.getBaseTypeOfLiteralType(er.getTypeAtLocation(Kr)),le,1);li.push(e.factory.createPropertySignature(void 0,Kr.symbol.name,void 0,aa)),qi=qi||Kr.type!==void 0,Si=Si&Kr.parent.flags}var sr=qi?e.factory.createTypeLiteralNode(li):void 0;sr&&e.setEmitFlags(sr,1),ci.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.factory.createObjectBindingPattern(ei),void 0,sr,or)],Si)))}else if(Ue.length||dr){if(Ue.length)for(var Ji=0,di=Ue;Ji<di.length;Ji++){var Kr=di[Ji],X=Kr.parent.flags;X&2&&(X=X&-3|1),ci.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(Kr.symbol.name,void 0,Dr(Kr.type))],X)))}Le&&ci.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(Le,void 0,Dr(cr))],1)));var Ye=U(Ue,dr);Le&&Ye.unshift(e.factory.createShorthandPropertyAssignment(Le)),Ye.length===1?(e.Debug.assert(!Le,"Shouldn't have returnValueProperty here"),ci.push(e.factory.createExpressionStatement(e.factory.createAssignment(Ye[0].name,or))),He.facts&H.HasReturn&&ci.push(e.factory.createReturnStatement())):(ci.push(e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createObjectLiteralExpression(Ye),or))),Le&&ci.push(e.factory.createReturnStatement(e.factory.createIdentifier(Le))))}else He.facts&H.HasReturn?ci.push(e.factory.createReturnStatement(or)):z(He.range)?ci.push(e.factory.createExpressionStatement(or)):ci.push(or);z(He.range)?Lr.replaceNodeRangeWithNodes(ar.file,e.first(He.range),e.last(He.range),ci):Lr.replaceNodeWithNodes(ar.file,He.range,ci);var Be=Lr.getChanges(),Qe=z(He.range)?e.first(He.range):He.range,_r=Qe.getSourceFile().fileName,hr=e.getRenameLocation(Be,_r,Se,!1);return{renameFilename:_r,renameLocation:hr,edits:Be};function Dr(Me){if(Me!==void 0){for(var v=e.getSynthesizedDeepClone(Me),xe=v;e.isParenthesizedTypeNode(xe);)xe=xe.type;return e.isUnionTypeNode(xe)&&e.find(xe.types,function(ze){return ze.kind===152})?v:e.factory.createUnionTypeNode([v,e.factory.createKeywordTypeNode(152)])}}}function ne(V,le,ke,Ue,He){var ar,gr=ke.substitutions,me=He.program.getTypeChecker(),Ge=le.getSourceFile(),er=e.getUniqueName(e.isClassLike(le)?"newProperty":"newLocal",Ge),he=e.isInJSFile(le),we=he||!me.isContextSensitive(V)?void 0:me.typeToTypeNode(me.getContextualType(V),le,1),ye=l(e.skipParentheses(V),gr);ar=Pr(we,ye),we=ar.variableType,ye=ar.initializer,e.suppressLeadingAndTrailingTrivia(ye);var Se=e.textChanges.ChangeTracker.fromContext(He);if(e.isClassLike(le)){e.Debug.assert(!he,"Cannot extract to a JS class");var ge=[];ge.push(e.factory.createModifier(121)),Ue&H.InStaticRegion&&ge.push(e.factory.createModifier(124)),ge.push(e.factory.createModifier(144));var Fe=e.factory.createPropertyDeclaration(void 0,ge,er,void 0,we,ye),cr=e.factory.createPropertyAccessExpression(Ue&H.InStaticRegion?e.factory.createIdentifier(le.name.getText()):e.factory.createThis(),e.factory.createIdentifier(er));ae(V)&&(cr=e.factory.createJsxExpression(void 0,cr));var ur=V.pos,Ir=w(ur,le);Se.insertNodeBefore(He.file,Ir,Fe,!0),Se.replaceNode(He.file,V,cr)}else{var dr=e.factory.createVariableDeclaration(er,void 0,we,ye),Br=ee(V,le);if(Br){Se.insertNodeBefore(He.file,Br,dr);var cr=e.factory.createIdentifier(er);Se.replaceNode(He.file,V,cr)}else if(V.parent.kind===237&&le===e.findAncestor(V,G)){var Tr=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([dr],2));Se.replaceNode(He.file,V.parent,Tr)}else{var Tr=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([dr],2)),Ir=j(V,le);if(Ir.pos===0?Se.insertNodeAtTopOfFile(He.file,Tr,!1):Se.insertNodeBefore(He.file,Ir,Tr,!1),V.parent.kind===237)Se.delete(He.file,V.parent);else{var cr=e.factory.createIdentifier(er);ae(V)&&(cr=e.factory.createJsxExpression(void 0,cr)),Se.replaceNode(He.file,V,cr)}}}var n=Se.getChanges(),Er=V.getSourceFile().fileName,br=e.getRenameLocation(n,Er,er,!0);return{renameFilename:Er,renameLocation:br,edits:n};function Pr(Ce,Le){if(Ce===void 0)return{variableType:Ce,initializer:Le};if(!e.isFunctionExpression(Le)&&!e.isArrowFunction(Le)||!!Le.typeParameters)return{variableType:Ce,initializer:Le};var Xe=me.getTypeAtLocation(V),Cr=e.singleOrUndefined(me.getSignaturesOfType(Xe,0));if(!Cr)return{variableType:Ce,initializer:Le};if(Cr.getTypeParameters())return{variableType:Ce,initializer:Le};for(var Lr=[],Jr=!1,Rr=0,ci=Le.parameters;Rr<ci.length;Rr++){var be=ci[Rr];if(be.type)Lr.push(be);else{var or=me.getTypeAtLocation(be);or===me.getAnyType()&&(Jr=!0),Lr.push(e.factory.updateParameterDeclaration(be,be.decorators,be.modifiers,be.dotDotDotToken,be.name,be.questionToken,be.type||me.typeToTypeNode(or,le,1),be.initializer))}}if(Jr)return{variableType:Ce,initializer:Le};if(Ce=void 0,e.isArrowFunction(Le))Le=e.factory.updateArrowFunction(Le,V.modifiers,Le.typeParameters,Lr,Le.type||me.typeToTypeNode(Cr.getReturnType(),le,1),Le.equalsGreaterThanToken,Le.body);else{if(Cr&&!!Cr.thisParameter){var Kr=e.firstOrUndefined(Lr);if(!Kr||e.isIdentifier(Kr.name)&&Kr.name.escapedText!=="this"){var ei=me.getTypeOfSymbolAtLocation(Cr.thisParameter,V);Lr.splice(0,0,e.factory.createParameterDeclaration(void 0,void 0,void 0,"this",void 0,me.typeToTypeNode(ei,le,1)))}}Le=e.factory.updateFunctionExpression(Le,V.modifiers,Le.asteriskToken,Le.name,Le.typeParameters,Lr,Le.type||me.typeToTypeNode(Cr.getReturnType(),le,1),Le.body)}return{variableType:Ce,initializer:Le}}}function ee(V,le){for(var ke;V!==void 0&&V!==le;){if(e.isVariableDeclaration(V)&&V.initializer===ke&&e.isVariableDeclarationList(V.parent)&&V.parent.declarations.length>1)return V;ke=V,V=V.parent}}function A(V){var le,ke=V.symbol;if(ke&&ke.declarations)for(var Ue=0,He=ke.declarations;Ue<He.length;Ue++){var ar=He[Ue];(le===void 0||ar.pos<le.pos)&&(le=ar)}return le}function f(V,le){var ke=V.type,Ue=V.declaration,He=le.type,ar=le.declaration;return e.compareProperties(Ue,ar,"pos",e.compareValues)||e.compareStringsCaseSensitive(ke.symbol?ke.symbol.getName():"",He.symbol?He.symbol.getName():"")||e.compareValues(ke.id,He.id)}function P(V,le,ke){var Ue=e.factory.createIdentifier(ke);if(e.isClassLike(V)){var He=le.facts&H.InStaticRegion?e.factory.createIdentifier(V.name.text):e.factory.createThis();return e.factory.createPropertyAccessExpression(He,Ue)}else return Ue}function D(V,le,ke,Ue,He){var ar=ke!==void 0||le.length>0;if(e.isBlock(V)&&!ar&&Ue.size===0)return{body:e.factory.createBlock(V.statements,!0),returnValueProperty:void 0};var gr,me=!1,Ge=e.factory.createNodeArray(e.isBlock(V)?V.statements.slice(0):[e.isStatement(V)?V:e.factory.createReturnStatement(e.skipParentheses(V))]);if(ar||Ue.size){var er=e.visitNodes(Ge,we).slice();if(ar&&!He&&e.isStatement(V)){var he=U(le,ke);he.length===1?er.push(e.factory.createReturnStatement(he[0].name)):er.push(e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(he)))}return{body:e.factory.createBlock(er,!0),returnValueProperty:gr}}else return{body:e.factory.createBlock(Ge,!0),returnValueProperty:void 0};function we(ye){if(!me&&e.isReturnStatement(ye)&&ar){var Se=U(le,ke);return ye.expression&&(gr||(gr="__return"),Se.unshift(e.factory.createPropertyAssignment(gr,e.visitNode(ye.expression,we)))),Se.length===1?e.factory.createReturnStatement(Se[0].name):e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(Se))}else{var ge=me;me=me||e.isFunctionLikeDeclaration(ye)||e.isClassLike(ye);var Fe=Ue.get(e.getNodeId(ye).toString()),cr=Fe?e.getSynthesizedDeepClone(Fe):e.visitEachChild(ye,we,e.nullTransformationContext);return me=ge,cr}}}function l(V,le){return le.size?ke(V):V;function ke(Ue){var He=le.get(e.getNodeId(Ue).toString());return He?e.getSynthesizedDeepClone(He):e.visitEachChild(Ue,ke,e.nullTransformationContext)}}function _(V){if(e.isFunctionLikeDeclaration(V)){var le=V.body;if(e.isBlock(le))return le.statements}else{if(e.isModuleBlock(V)||e.isSourceFile(V))return V.statements;if(e.isClassLike(V))return V.members;e.assertType(V)}return e.emptyArray}function J(V,le){return e.find(_(le),function(ke){return ke.pos>=V&&e.isFunctionLikeDeclaration(ke)&&!e.isConstructorDeclaration(ke)})}function w(V,le){var ke=le.members;e.Debug.assert(ke.length>0,"Found no members");for(var Ue,He=!0,ar=0,gr=ke;ar<gr.length;ar++){var me=gr[ar];if(me.pos>V)return Ue||ke[0];if(He&&!e.isPropertyDeclaration(me)){if(Ue!==void 0)return me;He=!1}Ue=me}return Ue===void 0?e.Debug.fail():Ue}function j(V,le){e.Debug.assert(!e.isClassLike(le));for(var ke,Ue=V;Ue!==le;Ue=Ue.parent)G(Ue)&&(ke=Ue);for(var Ue=(ke||V).parent;;Ue=Ue.parent){if(de(Ue)){for(var He=void 0,ar=0,gr=Ue.statements;ar<gr.length;ar++){var me=gr[ar];if(me.pos>V.pos)break;He=me}return!He&&e.isCaseClause(Ue)?(e.Debug.assert(e.isSwitchStatement(Ue.parent.parent),"Grandparent isn't a switch statement"),Ue.parent.parent):e.Debug.checkDefined(He,"prevStatement failed to get set")}e.Debug.assert(Ue!==le,"Didn't encounter a block-like before encountering scope")}}function U(V,le){var ke=e.map(V,function(He){return e.factory.createShorthandPropertyAssignment(He.symbol.name)}),Ue=e.map(le,function(He){return e.factory.createShorthandPropertyAssignment(He.symbol.name)});return ke===void 0?Ue:Ue===void 0?ke:ke.concat(Ue)}function z(V){return e.isArray(V)}function y(V,le){return z(V.range)?{pos:e.first(V.range).getStart(le),end:e.last(V.range).getEnd()}:V.range}var oe;(function(V){V[V.Read=1]="Read",V[V.Write=2]="Write"})(oe||(oe={}));function ve(V,le,ke,Ue,He,ar){var gr=new e.Map,me=[],Ge=[],er=[],he=[],we=[],ye=new e.Map,Se=[],ge,Fe=z(V.range)?V.range.length===1&&e.isExpressionStatement(V.range[0])?V.range[0].expression:void 0:V.range,cr;if(Fe===void 0){var ur=V.range,Ir=e.first(ur).getStart(),dr=e.last(ur).end;cr=e.createFileDiagnostic(Ue,Ir,dr-Ir,S.expressionExpected)}else He.getTypeAtLocation(Fe).flags&147456&&(cr=e.createDiagnosticForNode(Fe,S.uselessConstantType));for(var Br=0,Tr=le;Br<Tr.length;Br++){var n=Tr[Br];me.push({usages:new e.Map,typeParameterUsages:new e.Map,substitutions:new e.Map}),Ge.push(new e.Map),er.push([]);var Er=[];cr&&Er.push(cr),e.isClassLike(n)&&e.isInJSFile(n)&&Er.push(e.createDiagnosticForNode(n,S.cannotExtractToJSClass)),e.isArrowFunction(n)&&!e.isBlock(n.body)&&Er.push(e.createDiagnosticForNode(n,S.cannotExtractToExpressionArrowFunction)),he.push(Er)}var br=new e.Map,Pr=z(V.range)?e.factory.createBlock(V.range):V.range,Ce=z(V.range)?e.first(V.range):V.range,Le=Si(Ce);if(ft(Pr),Le&&!z(V.range)){var Xe=He.getContextualType(V.range);qi(Xe)}if(gr.size>0){for(var Cr=new e.Map,Lr=0,Jr=Ce;Jr!==void 0&&Lr<le.length;Jr=Jr.parent)if(Jr===le[Lr]&&(Cr.forEach(function(X,Ye){me[Lr].typeParameterUsages.set(Ye,X)}),Lr++),e.isDeclarationWithTypeParameters(Jr))for(var Rr=0,ci=e.getEffectiveTypeParameterDeclarations(Jr);Rr<ci.length;Rr++){var be=ci[Rr],or=He.getTypeAtLocation(be);gr.has(or.id.toString())&&Cr.set(or.id.toString(),or)}e.Debug.assert(Lr===le.length,"Should have iterated all scopes")}if(we.length){var Kr=e.isBlockScope(le[0],le[0].parent)?le[0]:e.getEnclosingBlockScopeContainer(le[0]);e.forEachChild(Kr,sr)}for(var ei=function(X){var Ye=me[X];if(X>0&&(Ye.usages.size>0||Ye.typeParameterUsages.size>0)){var Be=z(V.range)?V.range[0]:V.range;he[X].push(e.createDiagnosticForNode(Be,S.cannotAccessVariablesFromNestedScopes))}var Qe=!1,_r;if(me[X].usages.forEach(function(Dr){Dr.usage===2&&(Qe=!0,Dr.symbol.flags&106500&&Dr.symbol.valueDeclaration&&e.hasEffectiveModifier(Dr.symbol.valueDeclaration,64)&&(_r=Dr.symbol.valueDeclaration))}),e.Debug.assert(z(V.range)||Se.length===0,"No variable declarations expected if something was extracted"),Qe&&!z(V.range)){var hr=e.createDiagnosticForNode(V.range,S.cannotWriteInExpression);er[X].push(hr),he[X].push(hr)}else if(_r&&X>0){var hr=e.createDiagnosticForNode(_r,S.cannotExtractReadonlyPropertyInitializerOutsideConstructor);er[X].push(hr),he[X].push(hr)}else if(ge){var hr=e.createDiagnosticForNode(ge,S.cannotExtractExportedEntity);er[X].push(hr),he[X].push(hr)}},li=0;li<le.length;li++)ei(li);return{target:Pr,usagesPerScope:me,functionErrorsPerScope:er,constantErrorsPerScope:he,exposedVariableDeclarations:Se};function Si(X){return!!e.findAncestor(X,function(Ye){return e.isDeclarationWithTypeParameters(Ye)&&e.getEffectiveTypeParameterDeclarations(Ye).length!==0})}function qi(X){for(var Ye=He.getSymbolWalker(function(){return ar.throwIfCancellationRequested(),!0}),Be=Ye.walkType(X).visitedTypes,Qe=0,_r=Be;Qe<_r.length;Qe++){var hr=_r[Qe];hr.isTypeParameter()&&gr.set(hr.id.toString(),hr)}}function ft(X,Ye){if(Ye===void 0&&(Ye=1),Le){var Be=He.getTypeAtLocation(X);qi(Be)}if(e.isDeclaration(X)&&X.symbol&&we.push(X),e.isAssignmentExpression(X))ft(X.left,2),ft(X.right);else if(e.isUnaryExpressionWithWrite(X))ft(X.operand,2);else if(e.isPropertyAccessExpression(X)||e.isElementAccessExpression(X))e.forEachChild(X,ft);else if(e.isIdentifier(X)){if(!X.parent||e.isQualifiedName(X.parent)&&X!==X.parent.left||e.isPropertyAccessExpression(X.parent)&&X!==X.parent.expression)return;bt(X,Ye,e.isPartOfTypeNode(X))}else e.forEachChild(X,ft)}function bt(X,Ye,Be){var Qe=aa(X,Ye,Be);if(Qe)for(var _r=0;_r<le.length;_r++){var hr=Ge[_r].get(Qe);hr&&me[_r].substitutions.set(e.getNodeId(X).toString(),hr)}}function aa(X,Ye,Be){var Qe=Ji(X);if(!!Qe){var _r=e.getSymbolId(Qe).toString(),hr=br.get(_r);if(hr&&hr>=Ye)return _r;if(br.set(_r,Ye),hr){for(var Dr=0,Me=me;Dr<Me.length;Dr++){var v=Me[Dr],xe=v.usages.get(X.text);xe&&v.usages.set(X.text,{usage:Ye,symbol:Qe,node:X})}return _r}var ze=Qe.getDeclarations(),Je=ze&&e.find(ze,function(Ti){return Ti.getSourceFile()===Ue});if(!!Je&&!e.rangeContainsStartEnd(ke,Je.getStart(),Je.end)){if(V.facts&H.IsGenerator&&Ye===2){for(var Oe=e.createDiagnosticForNode(X,S.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),Fr=0,Xr=er;Fr<Xr.length;Fr++){var Or=Xr[Fr];Or.push(Oe)}for(var We=0,mr=he;We<mr.length;We++){var Or=mr[We];Or.push(Oe)}}for(var Nr=0;Nr<le.length;Nr++){var Ur=le[Nr],si=He.resolveName(Qe.name,Ur,Qe.flags,!1);if(si!==Qe&&!Ge[Nr].has(_r)){var mi=di(Qe.exportSymbol||Qe,Ur,Be);if(mi)Ge[Nr].set(_r,mi);else if(Be){if(!(Qe.flags&262144)){var Oe=e.createDiagnosticForNode(X,S.typeWillNotBeVisibleInTheNewScope);er[Nr].push(Oe),he[Nr].push(Oe)}}else me[Nr].usages.set(X.text,{usage:Ye,symbol:Qe,node:X})}}return _r}}}function sr(X){if(!(X===V.range||z(V.range)&&V.range.indexOf(X)>=0)){var Ye=e.isIdentifier(X)?Ji(X):He.getSymbolAtLocation(X);if(Ye){var Be=e.find(we,function(_r){return _r.symbol===Ye});if(Be)if(e.isVariableDeclaration(Be)){var Qe=Be.symbol.id.toString();ye.has(Qe)||(Se.push(Be),ye.set(Qe,!0))}else ge=ge||Be}e.forEachChild(X,sr)}}function Ji(X){return X.parent&&e.isShorthandPropertyAssignment(X.parent)&&X.parent.name===X?He.getShorthandAssignmentValueSymbol(X.parent):He.getSymbolAtLocation(X)}function di(X,Ye,Be){if(!!X){var Qe=X.getDeclarations();if(Qe&&Qe.some(function(hr){return hr.parent===Ye}))return e.factory.createIdentifier(X.name);var _r=di(X.parent,Ye,Be);if(_r!==void 0)return Be?e.factory.createQualifiedName(_r,e.factory.createIdentifier(X.name)):e.factory.createPropertyAccessExpression(_r,X.name)}}}function ce(V){return e.findAncestor(V,function(le){return le.parent&&m(le)&&!e.isBinaryExpression(le.parent)})}function m(V){var le=V.parent;switch(le.kind){case 297:return!1}switch(V.kind){case 10:return le.kind!==265&&le.kind!==269;case 224:case 200:case 202:return!1;case 79:return le.kind!==202&&le.kind!==269&&le.kind!==274}return!0}function de(V){switch(V.kind){case 234:case 303:case 261:case 288:return!0;default:return!1}}function ae(V){return(e.isJsxElement(V)||e.isJsxSelfClosingElement(V)||e.isJsxFragment(V))&&(e.isJsxElement(V.parent)||e.isJsxFragment(V.parent))}})(L=O.extractSymbol||(O.extractSymbol={}))})(a=e.refactor||(e.refactor={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="Extract type",W={name:"Extract to type alias",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_type_alias),kind:"refactor.extract.type"},N={name:"Extract to interface",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_interface),kind:"refactor.extract.interface"},Q={name:"Extract to typedef",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_typedef),kind:"refactor.extract.typedef"};O.registerRefactor(L,{kinds:[W.kind,N.kind,Q.kind],getAvailableActions:function(G){var E=pe(G,G.triggerReason==="invoked");return E?O.isRefactorErrorInfo(E)?G.preferences.provideRefactorNotApplicableReason?[{name:L,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:[Ve(Ve({},Q),{notApplicableReason:E.error}),Ve(Ve({},W),{notApplicableReason:E.error}),Ve(Ve({},N),{notApplicableReason:E.error})]}]:e.emptyArray:[{name:L,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:E.isJS?[Q]:e.append([W],E.typeElements&&N)}]:e.emptyArray},getEditsForAction:function(G,E){var ue=G.file,B=pe(G);e.Debug.assert(B&&!O.isRefactorErrorInfo(B),"Expected to find a range to extract");var re=e.getUniqueName("NewType",ue),M=e.textChanges.ChangeTracker.with(G,function(_e){switch(E){case W.name:return e.Debug.assert(!B.isJS,"Invalid actionName/JS combo"),H(_e,ue,re,B);case Q.name:return e.Debug.assert(B.isJS,"Invalid actionName/JS combo"),p(_e,ue,re,B);case N.name:return e.Debug.assert(!B.isJS&&!!B.typeElements,"Invalid actionName/JS combo"),se(_e,ue,re,B);default:e.Debug.fail("Unexpected action name")}}),x=ue.fileName,ie=e.getRenameLocation(M,x,re,!1);return{edits:M,renameFilename:x,renameLocation:ie}}});function pe(C,G){G===void 0&&(G=!0);var E=C.file,ue=C.startPosition,B=e.isSourceFileJS(E),re=e.getTokenAtPosition(E,ue),M=e.createTextRangeFromSpan(e.getRefactorContextSpan(C)),x=M.pos===M.end&&G,ie=e.findAncestor(re,function(I){return I.parent&&e.isTypeNode(I)&&!g(M,I.parent,E)&&(x||e.nodeOverlapsWithStartEnd(re,E,M.pos,M.end))});if(!ie||!e.isTypeNode(ie))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_type_node)};var _e=C.program.getTypeChecker(),Y=e.Debug.checkDefined(e.findAncestor(ie,e.isStatement),"Should find a statement"),Z=S(_e,ie,Y,E);if(!Z)return{error:e.getLocaleSpecificMessage(e.Diagnostics.No_type_could_be_extracted_from_this_type_node)};var k=F(_e,ie);return{isJS:B,selection:ie,firstStatement:Y,typeParameters:Z,typeElements:k}}function F(C,G){if(!!G)if(e.isIntersectionTypeNode(G)){for(var E=[],ue=new e.Map,B=0,re=G.types;B<re.length;B++){var M=re[B],x=F(C,M);if(!x||!x.every(function(ie){return ie.name&&e.addToSeen(ue,e.getNameFromPropertyName(ie.name))}))return;e.addRange(E,x)}return E}else{if(e.isParenthesizedTypeNode(G))return F(C,G.type);if(e.isTypeLiteralNode(G))return G.members}}function g(C,G,E){return e.rangeContainsStartEnd(C,e.skipTrivia(E.text,G.pos),G.end)}function S(C,G,E,ue){var B=[];return re(G)?void 0:B;function re(M){if(e.isTypeReferenceNode(M)){if(e.isIdentifier(M.typeName))for(var x=M.typeName,ie=C.resolveName(x.text,x,262144,!0),_e=0,Y=(ie==null?void 0:ie.declarations)||e.emptyArray;_e<Y.length;_e++){var Z=Y[_e];if(e.isTypeParameterDeclaration(Z)&&Z.getSourceFile()===ue){if(Z.name.escapedText===x.escapedText&&g(Z,G,ue))return!0;if(g(E,Z,ue)&&!g(G,Z,ue)){e.pushIfUnique(B,Z);break}}}}else if(e.isInferTypeNode(M)){var k=e.findAncestor(M,function(ne){return e.isConditionalTypeNode(ne)&&g(ne.extendsType,M,ue)});if(!k||!g(G,k,ue))return!0}else if(e.isTypePredicateNode(M)||e.isThisTypeNode(M)){var I=e.findAncestor(M.parent,e.isFunctionLike);if(I&&I.type&&g(I.type,M,ue)&&!g(G,I,ue))return!0}else if(e.isTypeQueryNode(M)){if(e.isIdentifier(M.exprName)){var ie=C.resolveName(M.exprName.text,M.exprName,111551,!1);if((ie==null?void 0:ie.valueDeclaration)&&g(E,ie.valueDeclaration,ue)&&!g(G,ie.valueDeclaration,ue))return!0}else if(e.isThisIdentifier(M.exprName.left)&&!g(G,M.parent,ue))return!0}return ue&&e.isTupleTypeNode(M)&&e.getLineAndCharacterOfPosition(ue,M.pos).line===e.getLineAndCharacterOfPosition(ue,M.end).line&&e.setEmitFlags(M,1),e.forEachChild(M,re)}}function H(C,G,E,ue){var B=ue.firstStatement,re=ue.selection,M=ue.typeParameters,x=e.factory.createTypeAliasDeclaration(void 0,void 0,E,M.map(function(ie){return e.factory.updateTypeParameterDeclaration(ie,ie.name,ie.constraint,void 0)}),re);C.insertNodeBefore(G,B,e.ignoreSourceNewlines(x),!0),C.replaceNode(G,re,e.factory.createTypeReferenceNode(E,M.map(function(ie){return e.factory.createTypeReferenceNode(ie.name,void 0)})),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})}function se(C,G,E,ue){var B,re=ue.firstStatement,M=ue.selection,x=ue.typeParameters,ie=ue.typeElements,_e=e.factory.createInterfaceDeclaration(void 0,void 0,E,x,void 0,ie);e.setTextRange(_e,(B=ie[0])===null||B===void 0?void 0:B.parent),C.insertNodeBefore(G,re,e.ignoreSourceNewlines(_e),!0),C.replaceNode(G,M,e.factory.createTypeReferenceNode(E,x.map(function(Y){return e.factory.createTypeReferenceNode(Y.name,void 0)})),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})}function p(C,G,E,ue){var B=ue.firstStatement,re=ue.selection,M=ue.typeParameters,x=e.factory.createJSDocTypedefTag(e.factory.createIdentifier("typedef"),e.factory.createJSDocTypeExpression(re),e.factory.createIdentifier(E)),ie=[];e.forEach(M,function(_e){var Y=e.getEffectiveConstraintOfTypeParameter(_e),Z=e.factory.createTypeParameterDeclaration(_e.name),k=e.factory.createJSDocTemplateTag(e.factory.createIdentifier("template"),Y&&e.cast(Y,e.isJSDocTypeExpression),[Z]);ie.push(k)}),C.insertNodeBefore(G,B,e.factory.createJSDocComment(void 0,e.factory.createNodeArray(e.concatenate(ie,[x]))),!0),C.replaceNode(G,re,e.factory.createTypeReferenceNode(E,M.map(function(_e){return e.factory.createTypeReferenceNode(_e.name,void 0)})))}})(a=e.refactor||(e.refactor={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(W){var N="Generate 'get' and 'set' accessors",Q=e.Diagnostics.Generate_get_and_set_accessors.message,pe={name:N,description:Q,kind:"refactor.rewrite.property.generateAccessors"};O.registerRefactor(N,{kinds:[pe.kind],getEditsForAction:function(g,S){if(!!g.endPosition){var H=e.codefix.getAccessorConvertiblePropertyAtPosition(g.file,g.program,g.startPosition,g.endPosition);e.Debug.assert(H&&!O.isRefactorErrorInfo(H),"Expected applicable refactor info");var se=e.codefix.generateAccessorFromProperty(g.file,g.program,g.startPosition,g.endPosition,g,S);if(!!se){var p=g.file.fileName,C=H.renameAccessor?H.accessorName:H.fieldName,G=e.isIdentifier(C)?0:-1,E=G+e.getRenameLocation(se,p,C.text,e.isParameter(H.declaration));return{renameFilename:p,renameLocation:E,edits:se}}}},getAvailableActions:function(F){if(!F.endPosition)return e.emptyArray;var g=e.codefix.getAccessorConvertiblePropertyAtPosition(F.file,F.program,F.startPosition,F.endPosition,F.triggerReason==="invoked");return g?O.isRefactorErrorInfo(g)?F.preferences.provideRefactorNotApplicableReason?[{name:N,description:Q,actions:[Ve(Ve({},pe),{notApplicableReason:g.error})]}]:e.emptyArray:[{name:N,description:Q,actions:[pe]}]:e.emptyArray}})})(L=O.generateGetAccessorAndSetAccessor||(O.generateGetAccessorAndSetAccessor={}))})(a=e.refactor||(e.refactor={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(N){return N.error!==void 0}O.isRefactorErrorInfo=L;function W(N,Q){return Q?N.substr(0,Q.length)===Q:!0}O.refactorKindBeginsWith=W})(a=e.refactor||(e.refactor={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="Move to a new file",W=e.getLocaleSpecificMessage(e.Diagnostics.Move_to_a_new_file),N={name:L,description:W,kind:"refactor.move.newFile"};O.registerRefactor(L,{kinds:[N.kind],getAvailableActions:function(Ge){var er=F(Ge);return Ge.preferences.allowTextChangesInNewFiles&&er?[{name:L,description:W,actions:[N]}]:Ge.preferences.provideRefactorNotApplicableReason?[{name:L,description:W,actions:[Ve(Ve({},N),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_statement_or_statements)})]}]:e.emptyArray},getEditsForAction:function(Ge,er){e.Debug.assert(er===L,"Wrong refactor invoked");var he=e.Debug.checkDefined(F(Ge)),we=e.textChanges.ChangeTracker.with(Ge,function(ye){return pe(Ge.file,Ge.program,he,ye,Ge.host,Ge.preferences)});return{edits:we,renameFilename:void 0,renameLocation:void 0}}});function Q(me){var Ge=me.file,er=e.createTextRangeFromSpan(e.getRefactorContextSpan(me)),he=Ge.statements,we=e.findIndex(he,function(ge){return ge.end>er.pos});if(we!==-1){var ye=he[we];if(e.isNamedDeclaration(ye)&&ye.name&&e.rangeContainsRange(ye.name,er))return{toMove:[he[we]],afterLast:he[we+1]};if(!(er.pos>ye.getStart(Ge))){var Se=e.findIndex(he,function(ge){return ge.end>er.end},we);if(!(Se!==-1&&(Se===0||he[Se].getStart(Ge)<er.end)))return{toMove:he.slice(we,Se===-1?he.length:Se),afterLast:Se===-1?void 0:he[Se]}}}}function pe(me,Ge,er,he,we,ye){var Se=Ge.getTypeChecker(),ge=P(me,er.all,Se),Fe=e.getDirectoryPath(me.fileName),cr=e.extensionFromPath(me.fileName),ur=A(f(ge.movedSymbols),cr,Fe,we),Ir=ur+cr;he.createNewFile(me,e.combinePaths(Fe,Ir),se(me,ge,he,er,Ge,ur,ye)),H(Ge,he,me.fileName,Ir,e.hostGetCanonicalFileName(we))}function F(me){var Ge=Q(me);if(Ge!==void 0){var er=[],he=[],we=Ge.toMove,ye=Ge.afterLast;return e.getRangesWhere(we,g,function(Se,ge){for(var Fe=Se;Fe<ge;Fe++)er.push(we[Fe]);he.push({first:we[Se],afterLast:ye})}),er.length===0?void 0:{all:er,ranges:he}}}function g(me){return!S(me)&&!e.isPrologueDirective(me)}function S(me){switch(me.kind){case 265:return!0;case 264:return!e.hasSyntacticModifier(me,1);case 236:return me.declarationList.declarations.every(function(Ge){return!!Ge.initializer&&e.isRequireCall(Ge.initializer,!0)});default:return!1}}function H(me,Ge,er,he,we){var ye=me.getCompilerOptions().configFile;if(!!ye){var Se=e.normalizePath(e.combinePaths(er,"..",he)),ge=e.getRelativePathFromFile(ye.fileName,Se,we),Fe=ye.statements[0]&&e.tryCast(ye.statements[0].expression,e.isObjectLiteralExpression),cr=Fe&&e.find(Fe.properties,function(ur){return e.isPropertyAssignment(ur)&&e.isStringLiteral(ur.name)&&ur.name.text==="files"});cr&&e.isArrayLiteralExpression(cr.initializer)&&Ge.insertNodeInListAfter(ye,e.last(cr.initializer.elements),e.factory.createStringLiteral(ge),cr.initializer.elements)}}function se(me,Ge,er,he,we,ye,Se){var ge=we.getTypeChecker(),Fe=e.takeWhile(me.statements,e.isPrologueDirective);if(!me.externalModuleIndicator&&!me.commonJsModuleIndicator)return p(me,he.ranges,er),qe(qe([],Fe,!0),he.all,!0);var cr=!!me.externalModuleIndicator,ur=e.getQuotePreference(me,Se),Ir=x(Ge.oldFileImportsFromNewFile,ye,cr,ur);Ir&&e.insertImports(er,me,Ir,!0),C(me,he.all,er,Ge.unusedImportsFromOldFile,ge),p(me,he.ranges,er),G(er,we,me,Ge.movedSymbols,ye);var dr=ee(me,Ge.oldImportsNeededByNewFile,Ge.newFileImportsFromOldFile,er,ge,cr,ur),Br=Z(me,he.all,Ge.oldFileImportsFromNewFile,cr);return dr.length&&Br.length?qe(qe(qe(qe([],Fe,!0),dr,!0),[4],!1),Br,!0):qe(qe(qe([],Fe,!0),dr,!0),Br,!0)}function p(me,Ge,er){for(var he=0,we=Ge;he<we.length;he++){var ye=we[he],Se=ye.first,ge=ye.afterLast;er.deleteNodeRangeExcludingEnd(me,Se,ge)}}function C(me,Ge,er,he,we){for(var ye=0,Se=me.statements;ye<Se.length;ye++){var ge=Se[ye];e.contains(Ge,ge)||M(ge,function(Fe){return k(me,Fe,er,function(cr){return he.has(we.getSymbolAtLocation(cr))})})}}function G(me,Ge,er,he,we){for(var ye=Ge.getTypeChecker(),Se=function(ur){if(ur===er)return"continue";for(var Ir=function(n){M(n,function(Er){if(ye.getSymbolAtLocation(re(Er))===er.symbol){var br=function(Xe){var Cr=e.isBindingElement(Xe.parent)?e.getPropertySymbolFromBindingElement(ye,Xe.parent):e.skipAlias(ye.getSymbolAtLocation(Xe),ye);return!!Cr&&he.has(Cr)};k(ur,Er,me,br);var Pr=e.combinePaths(e.getDirectoryPath(re(Er).text),we),Ce=_(Er,e.factory.createStringLiteral(Pr),br);Ce&&me.insertNodeAfter(ur,n,Ce);var Le=E(Er);Le&&ue(me,ur,ye,he,we,Pr,Le,Er)}})},dr=0,Br=ur.statements;dr<Br.length;dr++){var Tr=Br[dr];Ir(Tr)}},ge=0,Fe=Ge.getSourceFiles();ge<Fe.length;ge++){var cr=Fe[ge];Se(cr)}}function E(me){switch(me.kind){case 265:return me.importClause&&me.importClause.namedBindings&&me.importClause.namedBindings.kind===267?me.importClause.namedBindings.name:void 0;case 264:return me.name;case 253:return e.tryCast(me.name,e.isIdentifier);default:return e.Debug.assertNever(me,"Unexpected node kind ".concat(me.kind))}}function ue(me,Ge,er,he,we,ye,Se,ge){var Fe=e.codefix.moduleSpecifierToValidIdentifier(we,99),cr=!1,ur=[];if(e.FindAllReferences.Core.eachSymbolReferenceInFile(Se,er,Ge,function(n){!e.isPropertyAccessExpression(n.parent)||(cr=cr||!!er.resolveName(Fe,n,67108863,!0),he.has(er.getSymbolAtLocation(n.parent.name))&&ur.push(n))}),ur.length){for(var Ir=cr?e.getUniqueName(Fe,Ge):Fe,dr=0,Br=ur;dr<Br.length;dr++){var Tr=Br[dr];me.replaceNode(Ge,Tr,e.factory.createIdentifier(Ir))}me.insertNodeAfter(Ge,ge,B(ge,we,ye))}}function B(me,Ge,er){var he=e.factory.createIdentifier(Ge),we=e.factory.createStringLiteral(er);switch(me.kind){case 265:return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(he)),we,void 0);case 264:return e.factory.createImportEqualsDeclaration(void 0,void 0,!1,he,e.factory.createExternalModuleReference(we));case 253:return e.factory.createVariableDeclaration(he,void 0,void 0,Y(we));default:return e.Debug.assertNever(me,"Unexpected node kind ".concat(me.kind))}}function re(me){return me.kind===265?me.moduleSpecifier:me.kind===264?me.moduleReference.expression:me.initializer.arguments[0]}function M(me,Ge){if(e.isImportDeclaration(me))e.isStringLiteral(me.moduleSpecifier)&&Ge(me);else if(e.isImportEqualsDeclaration(me))e.isExternalModuleReference(me.moduleReference)&&e.isStringLiteralLike(me.moduleReference.expression)&&Ge(me);else if(e.isVariableStatement(me))for(var er=0,he=me.declarationList.declarations;er<he.length;er++){var we=he[er];we.initializer&&e.isRequireCall(we.initializer,!0)&&Ge(we)}}function x(me,Ge,er,he){var we,ye=[];return me.forEach(function(Se){Se.escapedName==="default"?we=e.factory.createIdentifier(e.symbolNameNoDefault(Se)):ye.push(Se.name)}),ie(we,ye,Ge,er,he)}function ie(me,Ge,er,he,we){if(er=e.ensurePathIsNonModuleName(er),he){var ye=Ge.map(function(ge){return e.factory.createImportSpecifier(!1,void 0,e.factory.createIdentifier(ge))});return e.makeImportIfNecessary(me,ye,er,we)}else{e.Debug.assert(!me,"No default import should exist");var Se=Ge.map(function(ge){return e.factory.createBindingElement(void 0,void 0,ge)});return Se.length?_e(e.factory.createObjectBindingPattern(Se),void 0,Y(e.factory.createStringLiteral(er))):void 0}}function _e(me,Ge,er,he){return he===void 0&&(he=2),e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(me,void 0,Ge,er)],he))}function Y(me){return e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[me])}function Z(me,Ge,er,he){return e.flatMap(Ge,function(we){if(oe(we)&&!le(me,we,he)&&ce(we,function(Se){return er.has(e.Debug.checkDefined(Se.symbol))})){var ye=ke(we,he);if(ye)return ye}return we})}function k(me,Ge,er,he){switch(Ge.kind){case 265:I(me,Ge,er,he);break;case 264:he(Ge.name)&&er.delete(me,Ge);break;case 253:ne(me,Ge,er,he);break;default:e.Debug.assertNever(Ge,"Unexpected import decl kind ".concat(Ge.kind))}}function I(me,Ge,er,he){if(!!Ge.importClause){var we=Ge.importClause,ye=we.name,Se=we.namedBindings,ge=!ye||he(ye),Fe=!Se||(Se.kind===267?he(Se.name):Se.elements.length!==0&&Se.elements.every(function(dr){return he(dr.name)}));if(ge&&Fe)er.delete(me,Ge);else if(ye&&ge&&er.delete(me,ye),Se){if(Fe)er.replaceNode(me,Ge.importClause,e.factory.updateImportClause(Ge.importClause,Ge.importClause.isTypeOnly,ye,void 0));else if(Se.kind===268)for(var cr=0,ur=Se.elements;cr<ur.length;cr++){var Ir=ur[cr];he(Ir.name)&&er.delete(me,Ir)}}}}function ne(me,Ge,er,he){var we=Ge.name;switch(we.kind){case 79:he(we)&&er.delete(me,we);break;case 201:break;case 200:if(we.elements.every(function(Fe){return e.isIdentifier(Fe.name)&&he(Fe.name)}))er.delete(me,e.isVariableDeclarationList(Ge.parent)&&Ge.parent.declarations.length===1?Ge.parent.parent:Ge);else for(var ye=0,Se=we.elements;ye<Se.length;ye++){var ge=Se[ye];e.isIdentifier(ge.name)&&he(ge.name)&&er.delete(me,ge.name)}break}}function ee(me,Ge,er,he,we,ye,Se){for(var ge=[],Fe=0,cr=me.statements;Fe<cr.length;Fe++){var ur=cr[Fe];M(ur,function(Tr){e.append(ge,_(Tr,re(Tr),function(n){return Ge.has(we.getSymbolAtLocation(n))}))})}var Ir,dr=[],Br=e.nodeSeenTracker();return er.forEach(function(Tr){if(!!Tr.declarations)for(var n=0,Er=Tr.declarations;n<Er.length;n++){var br=Er[n];if(!!z(br)){var Pr=de(br);if(!!Pr){var Ce=ae(br);Br(Ce)&&V(me,Ce,Pr,he,ye),e.hasSyntacticModifier(br,512)?Ir=Pr:dr.push(Pr.text)}}}}),e.append(ge,ie(Ir,dr,e.removeFileExtension(e.getBaseFileName(me.fileName)),ye,Se)),ge}function A(me,Ge,er,he){for(var we=me,ye=1;;ye++){var Se=e.combinePaths(er,we+Ge);if(!he.fileExists(Se))return we;we="".concat(me,".").concat(ye)}}function f(me){return me.forEachEntry(e.symbolNameNoDefault)||"newFile"}function P(me,Ge,er){var he=new U,we=new U,ye=new U,Se=e.find(Ge,function(Pr){return!!(Pr.transformFlags&2)}),ge=br(Se);ge&&we.add(ge);for(var Fe=0,cr=Ge;Fe<cr.length;Fe++){var ur=cr[Fe];ce(ur,function(Pr){he.add(e.Debug.checkDefined(e.isExpressionStatement(Pr)?er.getSymbolAtLocation(Pr.expression.left):Pr.symbol,"Need a symbol here"))})}for(var Ir=0,dr=Ge;Ir<dr.length;Ir++){var ur=dr[Ir];j(ur,er,function(Ce){if(!!Ce.declarations)for(var Le=0,Xe=Ce.declarations;Le<Xe.length;Le++){var Cr=Xe[Le];D(Cr)?we.add(Ce):z(Cr)&&y(Cr)===me&&!he.has(Ce)&&ye.add(Ce)}})}for(var Br=we.clone(),Tr=new U,n=0,Er=me.statements;n<Er.length;n++){var ur=Er[n];e.contains(Ge,ur)||(ge&&!!(ur.transformFlags&2)&&Br.delete(ge),j(ur,er,function(Ce){he.has(Ce)&&Tr.add(Ce),Br.delete(Ce)}))}return{movedSymbols:he,newFileImportsFromOldFile:ye,oldFileImportsFromNewFile:Tr,oldImportsNeededByNewFile:we,unusedImportsFromOldFile:Br};function br(Pr){if(Pr!==void 0){var Ce=er.getJsxNamespace(Pr),Le=er.resolveName(Ce,Pr,1920,!0);return!!Le&&e.some(Le.declarations,D)?Le:void 0}}}function D(me){switch(me.kind){case 264:case 269:case 266:case 267:return!0;case 253:return l(me);case 202:return e.isVariableDeclaration(me.parent.parent)&&l(me.parent.parent);default:return!1}}function l(me){return e.isSourceFile(me.parent.parent.parent)&&!!me.initializer&&e.isRequireCall(me.initializer,!0)}function _(me,Ge,er){switch(me.kind){case 265:{var he=me.importClause;if(!he)return;var we=he.name&&er(he.name)?he.name:void 0,ye=he.namedBindings&&J(he.namedBindings,er);return we||ye?e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,we,ye),Ge,void 0):void 0}case 264:return er(me.name)?me:void 0;case 253:{var Se=w(me.name,er);return Se?_e(Se,me.type,Y(Ge),me.parent.flags):void 0}default:return e.Debug.assertNever(me,"Unexpected import kind ".concat(me.kind))}}function J(me,Ge){if(me.kind===267)return Ge(me.name)?me:void 0;var er=me.elements.filter(function(he){return Ge(he.name)});return er.length?e.factory.createNamedImports(er):void 0}function w(me,Ge){switch(me.kind){case 79:return Ge(me)?me:void 0;case 201:return me;case 200:{var er=me.elements.filter(function(he){return he.propertyName||!e.isIdentifier(he.name)||Ge(he.name)});return er.length?e.factory.createObjectBindingPattern(er):void 0}}}function j(me,Ge,er){me.forEachChild(function he(we){if(e.isIdentifier(we)&&!e.isDeclarationName(we)){var ye=Ge.getSymbolAtLocation(we);ye&&er(ye)}else we.forEachChild(he)})}var U=function(){function me(){this.map=new e.Map}return me.prototype.add=function(Ge){this.map.set(String(e.getSymbolId(Ge)),Ge)},me.prototype.has=function(Ge){return this.map.has(String(e.getSymbolId(Ge)))},me.prototype.delete=function(Ge){this.map.delete(String(e.getSymbolId(Ge)))},me.prototype.forEach=function(Ge){this.map.forEach(Ge)},me.prototype.forEachEntry=function(Ge){return e.forEachEntry(this.map,Ge)},me.prototype.clone=function(){var Ge=new me;return e.copyEntries(this.map,Ge.map),Ge},me}();function z(me){return ve(me)&&e.isSourceFile(me.parent)||e.isVariableDeclaration(me)&&e.isSourceFile(me.parent.parent.parent)}function y(me){return e.isVariableDeclaration(me)?me.parent.parent.parent:me.parent}function oe(me){return e.Debug.assert(e.isSourceFile(me.parent),"Node parent should be a SourceFile"),ve(me)||e.isVariableStatement(me)}function ve(me){switch(me.kind){case 255:case 256:case 260:case 259:case 258:case 257:case 264:return!0;default:return!1}}function ce(me,Ge){switch(me.kind){case 255:case 256:case 260:case 259:case 258:case 257:case 264:return Ge(me);case 236:return e.firstDefined(me.declarationList.declarations,function(he){return m(he.name,Ge)});case 237:{var er=me.expression;return e.isBinaryExpression(er)&&e.getAssignmentDeclarationKind(er)===1?Ge(me):void 0}}}function m(me,Ge){switch(me.kind){case 79:return Ge(e.cast(me.parent,function(er){return e.isVariableDeclaration(er)||e.isBindingElement(er)}));case 201:case 200:return e.firstDefined(me.elements,function(er){return e.isOmittedExpression(er)?void 0:m(er.name,Ge)});default:return e.Debug.assertNever(me,"Unexpected name kind ".concat(me.kind))}}function de(me){return e.isExpressionStatement(me)?e.tryCast(me.expression.left.name,e.isIdentifier):e.tryCast(me.name,e.isIdentifier)}function ae(me){switch(me.kind){case 253:return me.parent.parent;case 202:return ae(e.cast(me.parent.parent,function(Ge){return e.isVariableDeclaration(Ge)||e.isBindingElement(Ge)}));default:return me}}function V(me,Ge,er,he,we){if(!le(me,Ge,we,er))if(we)e.isExpressionStatement(Ge)||he.insertExportModifier(me,Ge);else{var ye=ar(Ge);ye.length!==0&&he.insertNodesAfter(me,Ge,ye.map(gr))}}function le(me,Ge,er,he){var we;return er?!e.isExpressionStatement(Ge)&&e.hasSyntacticModifier(Ge,1)||!!(he&&((we=me.symbol.exports)===null||we===void 0?void 0:we.has(he.escapedText))):ar(Ge).some(function(ye){return me.symbol.exports.has(e.escapeLeadingUnderscores(ye))})}function ke(me,Ge){return Ge?[Ue(me)]:He(me)}function Ue(me){var Ge=e.concatenate([e.factory.createModifier(93)],me.modifiers);switch(me.kind){case 255:return e.factory.updateFunctionDeclaration(me,me.decorators,Ge,me.asteriskToken,me.name,me.typeParameters,me.parameters,me.type,me.body);case 256:return e.factory.updateClassDeclaration(me,me.decorators,Ge,me.name,me.typeParameters,me.heritageClauses,me.members);case 236:return e.factory.updateVariableStatement(me,Ge,me.declarationList);case 260:return e.factory.updateModuleDeclaration(me,me.decorators,Ge,me.name,me.body);case 259:return e.factory.updateEnumDeclaration(me,me.decorators,Ge,me.name,me.members);case 258:return e.factory.updateTypeAliasDeclaration(me,me.decorators,Ge,me.name,me.typeParameters,me.type);case 257:return e.factory.updateInterfaceDeclaration(me,me.decorators,Ge,me.name,me.typeParameters,me.heritageClauses,me.members);case 264:return e.factory.updateImportEqualsDeclaration(me,me.decorators,Ge,me.isTypeOnly,me.name,me.moduleReference);case 237:return e.Debug.fail();default:return e.Debug.assertNever(me,"Unexpected declaration kind ".concat(me.kind))}}function He(me){return qe([me],ar(me).map(gr),!0)}function ar(me){switch(me.kind){case 255:case 256:return[me.name.text];case 236:return e.mapDefined(me.declarationList.declarations,function(Ge){return e.isIdentifier(Ge.name)?Ge.name.text:void 0});case 260:case 259:case 258:case 257:case 264:return e.emptyArray;case 237:return e.Debug.fail("Can't export an ExpressionStatement");default:return e.Debug.assertNever(me,"Unexpected decl kind ".concat(me.kind))}}function gr(me){return e.factory.createExpressionStatement(e.factory.createBinaryExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),e.factory.createIdentifier(me)),63,e.factory.createIdentifier(me)))}})(a=e.refactor||(e.refactor={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(W){var N="Add or remove braces in an arrow function",Q=e.Diagnostics.Add_or_remove_braces_in_an_arrow_function.message,pe={name:"Add braces to arrow function",description:e.Diagnostics.Add_braces_to_arrow_function.message,kind:"refactor.rewrite.arrow.braces.add"},F={name:"Remove braces from arrow function",description:e.Diagnostics.Remove_braces_from_arrow_function.message,kind:"refactor.rewrite.arrow.braces.remove"};O.registerRefactor(N,{kinds:[F.kind],getEditsForAction:S,getAvailableActions:g});function g(se){var p=se.file,C=se.startPosition,G=se.triggerReason,E=H(p,C,G==="invoked");return E?O.isRefactorErrorInfo(E)?se.preferences.provideRefactorNotApplicableReason?[{name:N,description:Q,actions:[Ve(Ve({},pe),{notApplicableReason:E.error}),Ve(Ve({},F),{notApplicableReason:E.error})]}]:e.emptyArray:[{name:N,description:Q,actions:[E.addBraces?pe:F]}]:e.emptyArray}function S(se,p){var C=se.file,G=se.startPosition,E=H(C,G);e.Debug.assert(E&&!O.isRefactorErrorInfo(E),"Expected applicable refactor info");var ue=E.expression,B=E.returnStatement,re=E.func,M;if(p===pe.name){var x=e.factory.createReturnStatement(ue);M=e.factory.createBlock([x],!0),e.copyLeadingComments(ue,x,C,3,!0)}else if(p===F.name&&B){var ie=ue||e.factory.createVoidZero();M=e.needsParentheses(ie)?e.factory.createParenthesizedExpression(ie):ie,e.copyTrailingAsLeadingComments(B,M,C,3,!1),e.copyLeadingComments(B,M,C,3,!1),e.copyTrailingComments(B,M,C,3,!1)}else e.Debug.fail("invalid action");var _e=e.textChanges.ChangeTracker.with(se,function(Y){Y.replaceNode(C,re.body,M)});return{renameFilename:void 0,renameLocation:void 0,edits:_e}}function H(se,p,C,G){C===void 0&&(C=!0);var E=e.getTokenAtPosition(se,p),ue=e.getContainingFunction(E);if(!ue)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_a_containing_arrow_function)};if(!e.isArrowFunction(ue))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Containing_function_is_not_an_arrow_function)};if(!(!e.rangeContainsRange(ue,E)||e.rangeContainsRange(ue.body,E)&&!C)){if(O.refactorKindBeginsWith(pe.kind,G)&&e.isExpression(ue.body))return{func:ue,addBraces:!0,expression:ue.body};if(O.refactorKindBeginsWith(F.kind,G)&&e.isBlock(ue.body)&&ue.body.statements.length===1){var B=e.first(ue.body.statements);if(e.isReturnStatement(B))return{func:ue,addBraces:!1,expression:B.expression,returnStatement:B}}}}})(L=O.addOrRemoveBracesToArrowFunction||(O.addOrRemoveBracesToArrowFunction={}))})(a=e.refactor||(e.refactor={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(W){var N="Convert parameters to destructured object",Q=1,pe=e.getLocaleSpecificMessage(e.Diagnostics.Convert_parameters_to_destructured_object),F={name:N,description:pe,kind:"refactor.rewrite.parameters.toDestructured"};O.registerRefactor(N,{kinds:[F.kind],getEditsForAction:S,getAvailableActions:g});function g(w){var j=w.file,U=w.startPosition,z=e.isSourceFileJS(j);if(z)return e.emptyArray;var y=re(j,U,w.program.getTypeChecker());return y?[{name:N,description:pe,actions:[F]}]:e.emptyArray}function S(w,j){e.Debug.assert(j===N,"Unexpected action name");var U=w.file,z=w.startPosition,y=w.program,oe=w.cancellationToken,ve=w.host,ce=re(U,z,y.getTypeChecker());if(!(!ce||!oe)){var m=se(ce,y,oe);if(m.valid){var de=e.textChanges.ChangeTracker.with(w,function(ae){return H(U,y,ve,ae,ce,m)});return{renameFilename:void 0,renameLocation:void 0,edits:de}}return{edits:[]}}}function H(w,j,U,z,y,oe){var ve=oe.signature,ce=e.map(D(y,j,U),function(He){return e.getSynthesizedDeepClone(He)});if(ve){var m=e.map(D(ve,j,U),function(He){return e.getSynthesizedDeepClone(He)});Ue(ve,m)}Ue(y,ce);for(var de=e.sortAndDeduplicate(oe.functionCalls,function(He,ar){return e.compareValues(He.pos,ar.pos)}),ae=0,V=de;ae<V.length;ae++){var le=V[ae];if(le.arguments&&le.arguments.length){var ke=e.getSynthesizedDeepClone(P(y,le.arguments),!0);z.replaceNodeRange(e.getSourceFileOfNode(le),e.first(le.arguments),e.last(le.arguments),ke,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}function Ue(He,ar){z.replaceNodeRangeWithNodes(w,e.first(He.parameters),e.last(He.parameters),ar,{joiner:", ",indentation:0,leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}function se(w,j,U){var z=J(w),y=e.isConstructorDeclaration(w)?_(w):[],oe=e.deduplicate(qe(qe([],z,!0),y,!0),e.equateValues),ve=j.getTypeChecker(),ce=e.flatMap(oe,function(V){return e.FindAllReferences.getReferenceEntriesForNode(-1,V,j,j.getSourceFiles(),U)}),m=de(ce);return e.every(m.declarations,function(V){return e.contains(oe,V)})||(m.valid=!1),m;function de(V){for(var le={accessExpressions:[],typeUsages:[]},ke={functionCalls:[],declarations:[],classReferences:le,valid:!0},Ue=e.map(z,ae),He=e.map(y,ae),ar=e.isConstructorDeclaration(w),gr=e.map(z,function(cr){return p(cr,ve)}),me=0,Ge=V;me<Ge.length;me++){var er=Ge[me];if(er.kind===0){ke.valid=!1;continue}if(e.contains(gr,ae(er.node))){if(x(er.node.parent)){ke.signature=er.node.parent;continue}var he=E(er);if(he){ke.functionCalls.push(he);continue}}var we=p(er.node,ve);if(we&&e.contains(gr,we)){var ye=G(er);if(ye){ke.declarations.push(ye);continue}}if(e.contains(Ue,ae(er.node))||e.isNewExpressionTarget(er.node)){var Se=C(er);if(Se)continue;var ye=G(er);if(ye){ke.declarations.push(ye);continue}var he=E(er);if(he){ke.functionCalls.push(he);continue}}if(ar&&e.contains(He,ae(er.node))){var Se=C(er);if(Se)continue;var ye=G(er);if(ye){ke.declarations.push(ye);continue}var ge=ue(er);if(ge){le.accessExpressions.push(ge);continue}if(e.isClassDeclaration(w.parent)){var Fe=B(er);if(Fe){le.typeUsages.push(Fe);continue}}}ke.valid=!1}return ke}function ae(V){var le=ve.getSymbolAtLocation(V);return le&&e.getSymbolTarget(le,ve)}}function p(w,j){var U=e.getContainingObjectLiteralElement(w);if(U){var z=j.getContextualTypeForObjectLiteralElement(U),y=z==null?void 0:z.getSymbol();if(y&&!(e.getCheckFlags(y)&6))return y}}function C(w){var j=w.node;if(e.isImportSpecifier(j.parent)||e.isImportClause(j.parent)||e.isImportEqualsDeclaration(j.parent)||e.isNamespaceImport(j.parent)||e.isExportSpecifier(j.parent)||e.isExportAssignment(j.parent))return j}function G(w){if(e.isDeclaration(w.node.parent))return w.node}function E(w){if(w.node.parent){var j=w.node,U=j.parent;switch(U.kind){case 207:case 208:var z=e.tryCast(U,e.isCallOrNewExpression);if(z&&z.expression===j)return z;break;case 205:var y=e.tryCast(U,e.isPropertyAccessExpression);if(y&&y.parent&&y.name===j){var oe=e.tryCast(y.parent,e.isCallOrNewExpression);if(oe&&oe.expression===y)return oe}break;case 206:var ve=e.tryCast(U,e.isElementAccessExpression);if(ve&&ve.parent&&ve.argumentExpression===j){var ce=e.tryCast(ve.parent,e.isCallOrNewExpression);if(ce&&ce.expression===ve)return ce}break}}}function ue(w){if(w.node.parent){var j=w.node,U=j.parent;switch(U.kind){case 205:var z=e.tryCast(U,e.isPropertyAccessExpression);if(z&&z.expression===j)return z;break;case 206:var y=e.tryCast(U,e.isElementAccessExpression);if(y&&y.expression===j)return y;break}}}function B(w){var j=w.node;if(e.getMeaningFromLocation(j)===2||e.isExpressionWithTypeArgumentsInClassExtendsClause(j.parent))return j}function re(w,j,U){var z=e.getTouchingToken(w,j),y=e.getContainingFunctionDeclaration(z);if(!M(z)&&y&&ie(y,U)&&e.rangeContainsRange(y,z)&&!(y.body&&e.rangeContainsRange(y.body,z)))return y}function M(w){var j=e.findAncestor(w,e.isJSDocNode);if(j){var U=e.findAncestor(j,function(z){return!e.isJSDocNode(z)});return!!U&&e.isFunctionLikeDeclaration(U)}return!1}function x(w){return e.isMethodSignature(w)&&(e.isInterfaceDeclaration(w.parent)||e.isTypeLiteralNode(w.parent))}function ie(w,j){var U;if(!Z(w.parameters,j))return!1;switch(w.kind){case 255:return Y(w)&&_e(w,j);case 168:if(e.isObjectLiteralExpression(w.parent)){var z=p(w.name,j);return((U=z==null?void 0:z.declarations)===null||U===void 0?void 0:U.length)===1&&_e(w,j)}return _e(w,j);case 170:return e.isClassDeclaration(w.parent)?Y(w.parent)&&_e(w,j):I(w.parent.parent)&&_e(w,j);case 212:case 213:return I(w.parent)}return!1}function _e(w,j){return!!w.body&&!j.isImplementationOfOverload(w)}function Y(w){if(!w.name){var j=e.findModifier(w,88);return!!j}return!0}function Z(w,j){return ee(w)>=Q&&e.every(w,function(U){return k(U,j)})}function k(w,j){if(e.isRestParameter(w)){var U=j.getTypeAtLocation(w);if(!j.isArrayType(U)&&!j.isTupleType(U))return!1}return!w.modifiers&&!w.decorators&&e.isIdentifier(w.name)}function I(w){return e.isVariableDeclaration(w)&&e.isVarConst(w)&&e.isIdentifier(w.name)&&!w.type}function ne(w){return w.length>0&&e.isThis(w[0].name)}function ee(w){return ne(w)?w.length-1:w.length}function A(w){return ne(w)&&(w=e.factory.createNodeArray(w.slice(1),w.hasTrailingComma)),w}function f(w,j){return e.isIdentifier(j)&&e.getTextOfIdentifierOrLiteral(j)===w?e.factory.createShorthandPropertyAssignment(w):e.factory.createPropertyAssignment(w,j)}function P(w,j){var U=A(w.parameters),z=e.isRestParameter(e.last(U)),y=z?j.slice(0,U.length-1):j,oe=e.map(y,function(de,ae){var V=l(U[ae]),le=f(V,de);return e.suppressLeadingAndTrailingTrivia(le.name),e.isPropertyAssignment(le)&&e.suppressLeadingAndTrailingTrivia(le.initializer),e.copyComments(de,le),le});if(z&&j.length>=U.length){var ve=j.slice(U.length-1),ce=e.factory.createPropertyAssignment(l(e.last(U)),e.factory.createArrayLiteralExpression(ve));oe.push(ce)}var m=e.factory.createObjectLiteralExpression(oe,!1);return m}function D(w,j,U){var z=j.getTypeChecker(),y=A(w.parameters),oe=e.map(y,le),ve=e.factory.createObjectBindingPattern(oe),ce=ke(y),m;e.every(y,ar)&&(m=e.factory.createObjectLiteralExpression());var de=e.factory.createParameterDeclaration(void 0,void 0,void 0,ve,void 0,ce,m);if(ne(w.parameters)){var ae=w.parameters[0],V=e.factory.createParameterDeclaration(void 0,void 0,void 0,ae.name,void 0,ae.type);return e.suppressLeadingAndTrailingTrivia(V.name),e.copyComments(ae.name,V.name),ae.type&&(e.suppressLeadingAndTrailingTrivia(V.type),e.copyComments(ae.type,V.type)),e.factory.createNodeArray([V,de])}return e.factory.createNodeArray([de]);function le(gr){var me=e.factory.createBindingElement(void 0,void 0,l(gr),e.isRestParameter(gr)&&ar(gr)?e.factory.createArrayLiteralExpression():gr.initializer);return e.suppressLeadingAndTrailingTrivia(me),gr.initializer&&me.initializer&&e.copyComments(gr.initializer,me.initializer),me}function ke(gr){var me=e.map(gr,Ue),Ge=e.addEmitFlags(e.factory.createTypeLiteralNode(me),1);return Ge}function Ue(gr){var me=gr.type;!me&&(gr.initializer||e.isRestParameter(gr))&&(me=He(gr));var Ge=e.factory.createPropertySignature(void 0,l(gr),ar(gr)?e.factory.createToken(57):gr.questionToken,me);return e.suppressLeadingAndTrailingTrivia(Ge),e.copyComments(gr.name,Ge.name),gr.type&&Ge.type&&e.copyComments(gr.type,Ge.type),Ge}function He(gr){var me=z.getTypeAtLocation(gr);return e.getTypeNodeIfAccessible(me,gr,j,U)}function ar(gr){if(e.isRestParameter(gr)){var me=z.getTypeAtLocation(gr);return!z.isTupleType(me)}return z.isOptionalParameter(gr)}}function l(w){return e.getTextOfIdentifierOrLiteral(w.name)}function _(w){switch(w.parent.kind){case 256:var j=w.parent;if(j.name)return[j.name];var U=e.Debug.checkDefined(e.findModifier(j,88),"Nameless class declaration should be a default export");return[U];case 225:var z=w.parent,y=w.parent.parent,oe=z.name;return oe?[oe,y.name]:[y.name]}}function J(w){switch(w.kind){case 255:if(w.name)return[w.name];var j=e.Debug.checkDefined(e.findModifier(w,88),"Nameless function declaration should be a default export");return[j];case 168:return[w.name];case 170:var U=e.Debug.checkDefined(e.findChildOfKind(w,134,w.getSourceFile()),"Constructor declaration should have constructor keyword");if(w.parent.kind===225){var z=w.parent.parent;return[z.name,U]}return[U];case 213:return[w.parent.name];case 212:return w.name?[w.name,w.parent.name]:[w.parent.name];default:return e.Debug.assertNever(w,"Unexpected function declaration kind ".concat(w.kind))}}})(L=O.convertParamsToDestructuredObject||(O.convertParamsToDestructuredObject={}))})(a=e.refactor||(e.refactor={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(W){var N="Convert to template string",Q=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_template_string),pe={name:N,description:Q,kind:"refactor.rewrite.string"};O.registerRefactor(N,{kinds:[pe.kind],getEditsForAction:S,getAvailableActions:F});function F(_e){var Y=_e.file,Z=_e.startPosition,k=g(Y,Z),I=p(k),ne={name:N,description:Q,actions:[]};return e.isBinaryExpression(I)&&C(I).isValidConcatenation?(ne.actions.push(pe),[ne]):_e.preferences.provideRefactorNotApplicableReason?(ne.actions.push(Ve(Ve({},pe),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_string_concatenation)})),[ne]):e.emptyArray}function g(_e,Y){var Z=e.getTokenAtPosition(_e,Y),k=p(Z),I=!C(k).isValidConcatenation;return I&&e.isParenthesizedExpression(k.parent)&&e.isBinaryExpression(k.parent.parent)?k.parent.parent:Z}function S(_e,Y){var Z=_e.file,k=_e.startPosition,I=g(Z,k);switch(Y){case Q:return{edits:H(_e,I)};default:return e.Debug.fail("invalid action")}}function H(_e,Y){var Z=p(Y),k=_e.file,I=M(C(Z),k),ne=e.getTrailingCommentRanges(k.text,Z.end);if(ne){var ee=ne[ne.length-1],A={pos:ne[0].pos,end:ee.end};return e.textChanges.ChangeTracker.with(_e,function(f){f.deleteRange(k,A),f.replaceNode(k,Z,I)})}else return e.textChanges.ChangeTracker.with(_e,function(f){return f.replaceNode(k,Z,I)})}function se(_e){return _e.operatorToken.kind!==63}function p(_e){var Y=e.findAncestor(_e.parent,function(Z){switch(Z.kind){case 205:case 206:return!1;case 222:case 220:return!(e.isBinaryExpression(Z.parent)&&se(Z.parent));default:return"quit"}});return Y||_e}function C(_e){var Y=function(A){if(!e.isBinaryExpression(A))return{nodes:[A],operators:[],validOperators:!0,hasString:e.isStringLiteral(A)||e.isNoSubstitutionTemplateLiteral(A)};var f=Y(A.left),P=f.nodes,D=f.operators,l=f.hasString,_=f.validOperators;if(!(l||e.isStringLiteral(A.right)||e.isTemplateExpression(A.right)))return{nodes:[A],operators:[],hasString:!1,validOperators:!0};var J=A.operatorToken.kind===39,w=_&&J;return P.push(A.right),D.push(A.operatorToken),{nodes:P,operators:D,hasString:!0,validOperators:w}},Z=Y(_e),k=Z.nodes,I=Z.operators,ne=Z.validOperators,ee=Z.hasString;return{nodes:k,operators:I,isValidConcatenation:ne&&ee}}var G=function(_e,Y){return function(Z,k){Z<_e.length&&e.copyTrailingComments(_e[Z],k,Y,3,!1)}},E=function(_e,Y,Z){return function(k,I){for(;k.length>0;){var ne=k.shift();e.copyTrailingComments(_e[ne],I,Y,3,!1),Z(ne,I)}}};function ue(_e){return _e.replace(/\\.|[$`]/g,function(Y){return Y[0]==="\\"?Y:"\\"+Y})}function B(_e){var Y=e.isTemplateHead(_e)||e.isTemplateMiddle(_e)?-2:-1;return e.getTextOfNode(_e).slice(1,Y)}function re(_e,Y){for(var Z=[],k="",I="";_e<Y.length;){var ne=Y[_e];if(e.isStringLiteralLike(ne))k+=ne.text,I+=ue(e.getTextOfNode(ne).slice(1,-1)),Z.push(_e),_e++;else if(e.isTemplateExpression(ne)){k+=ne.head.text,I+=B(ne.head);break}else break}return[_e,k,I,Z]}function M(_e,Y){var Z=_e.nodes,k=_e.operators,I=G(k,Y),ne=E(Z,Y,I),ee=re(0,Z),A=ee[0],f=ee[1],P=ee[2],D=ee[3];if(A===Z.length){var l=e.factory.createNoSubstitutionTemplateLiteral(f,P);return ne(D,l),l}var _=[],J=e.factory.createTemplateHead(f,P);ne(D,J);for(var w=function(z){var y=ie(Z[z]);I(z,y);var oe=re(z+1,Z),ve=oe[0],ce=oe[1],m=oe[2],de=oe[3];z=ve-1;var ae=z===Z.length-1;if(e.isTemplateExpression(y)){var V=e.map(y.templateSpans,function(ke,Ue){x(ke);var He=Ue===y.templateSpans.length-1,ar=ke.literal.text+(He?ce:""),gr=B(ke.literal)+(He?m:"");return e.factory.createTemplateSpan(ke.expression,ae?e.factory.createTemplateTail(ar,gr):e.factory.createTemplateMiddle(ar,gr))});_.push.apply(_,V)}else{var le=ae?e.factory.createTemplateTail(ce,m):e.factory.createTemplateMiddle(ce,m);ne(de,le),_.push(e.factory.createTemplateSpan(y,le))}j=z},j,U=A;U<Z.length;U++)w(U),U=j;return e.factory.createTemplateExpression(J,_)}function x(_e){var Y=_e.getSourceFile();e.copyTrailingComments(_e,_e.expression,Y,3,!1),e.copyTrailingAsLeadingComments(_e.expression,_e.expression,Y,3,!1)}function ie(_e){return e.isParenthesizedExpression(_e)&&(x(_e),_e=_e.expression),_e}})(L=O.convertStringOrTemplateLiteral||(O.convertStringOrTemplateLiteral={}))})(a=e.refactor||(e.refactor={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(W){var N="Convert arrow function or function expression",Q=e.getLocaleSpecificMessage(e.Diagnostics.Convert_arrow_function_or_function_expression),pe={name:"Convert to anonymous function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},F={name:"Convert to named function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_named_function),kind:"refactor.rewrite.function.named"},g={name:"Convert to arrow function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};O.registerRefactor(N,{kinds:[pe.kind,F.kind,g.kind],getEditsForAction:H,getAvailableActions:S});function S(_e){var Y=_e.file,Z=_e.startPosition,k=_e.program,I=_e.kind,ne=p(Y,Z,k);if(!ne)return e.emptyArray;var ee=ne.selectedVariableDeclaration,A=ne.func,f=[],P=[];if(O.refactorKindBeginsWith(F.kind,I)){var D=ee||e.isArrowFunction(A)&&e.isVariableDeclaration(A.parent)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_named_function);D?P.push(Ve(Ve({},F),{notApplicableReason:D})):f.push(F)}if(O.refactorKindBeginsWith(pe.kind,I)){var D=!ee&&e.isArrowFunction(A)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_anonymous_function);D?P.push(Ve(Ve({},pe),{notApplicableReason:D})):f.push(pe)}if(O.refactorKindBeginsWith(g.kind,I)){var D=e.isFunctionExpression(A)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_arrow_function);D?P.push(Ve(Ve({},g),{notApplicableReason:D})):f.push(g)}return[{name:N,description:Q,actions:f.length===0&&_e.preferences.provideRefactorNotApplicableReason?P:f}]}function H(_e,Y){var Z=_e.file,k=_e.startPosition,I=_e.program,ne=p(Z,k,I);if(!!ne){var ee=ne.func,A=[];switch(Y){case pe.name:A.push.apply(A,B(_e,ee));break;case F.name:var f=ue(ee);if(!f)return;A.push.apply(A,re(_e,ee,f));break;case g.name:if(!e.isFunctionExpression(ee))return;A.push.apply(A,M(_e,ee));break;default:return e.Debug.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:A}}}function se(_e){var Y=!1;return _e.forEachChild(function Z(k){if(e.isThis(k)){Y=!0;return}!e.isClassLike(k)&&!e.isFunctionDeclaration(k)&&!e.isFunctionExpression(k)&&e.forEachChild(k,Z)}),Y}function p(_e,Y,Z){var k=e.getTokenAtPosition(_e,Y),I=Z.getTypeChecker(),ne=G(_e,I,k.parent);if(ne&&!se(ne.body)&&!I.containsArgumentsReference(ne))return{selectedVariableDeclaration:!0,func:ne};var ee=e.getContainingFunction(k);if(ee&&(e.isFunctionExpression(ee)||e.isArrowFunction(ee))&&!e.rangeContainsRange(ee.body,k)&&!se(ee.body)&&!I.containsArgumentsReference(ee))return e.isFunctionExpression(ee)&&ie(_e,I,ee)?void 0:{selectedVariableDeclaration:!1,func:ee}}function C(_e){return e.isVariableDeclaration(_e)||e.isVariableDeclarationList(_e)&&_e.declarations.length===1}function G(_e,Y,Z){if(!!C(Z)){var k=e.isVariableDeclaration(Z)?Z:e.first(Z.declarations),I=k.initializer;if(I&&(e.isArrowFunction(I)||e.isFunctionExpression(I)&&!ie(_e,Y,I)))return I}}function E(_e){if(e.isExpression(_e)){var Y=e.factory.createReturnStatement(_e),Z=_e.getSourceFile();return e.suppressLeadingAndTrailingTrivia(Y),e.copyTrailingAsLeadingComments(_e,Y,Z,void 0,!0),e.factory.createBlock([Y],!0)}else return _e}function ue(_e){var Y=_e.parent;if(!(!e.isVariableDeclaration(Y)||!e.isVariableDeclarationInVariableStatement(Y))){var Z=Y.parent,k=Z.parent;if(!(!e.isVariableDeclarationList(Z)||!e.isVariableStatement(k)||!e.isIdentifier(Y.name)))return{variableDeclaration:Y,variableDeclarationList:Z,statement:k,name:Y.name}}}function B(_e,Y){var Z=_e.file,k=E(Y.body),I=e.factory.createFunctionExpression(Y.modifiers,Y.asteriskToken,void 0,Y.typeParameters,Y.parameters,Y.type,k);return e.textChanges.ChangeTracker.with(_e,function(ne){return ne.replaceNode(Z,Y,I)})}function re(_e,Y,Z){var k=_e.file,I=E(Y.body),ne=Z.variableDeclaration,ee=Z.variableDeclarationList,A=Z.statement,f=Z.name;e.suppressLeadingTrivia(A);var P=e.getCombinedModifierFlags(ne)&1|e.getEffectiveModifierFlags(Y),D=e.factory.createModifiersFromModifierFlags(P),l=e.factory.createFunctionDeclaration(Y.decorators,e.length(D)?D:void 0,Y.asteriskToken,f,Y.typeParameters,Y.parameters,Y.type,I);return ee.declarations.length===1?e.textChanges.ChangeTracker.with(_e,function(_){return _.replaceNode(k,A,l)}):e.textChanges.ChangeTracker.with(_e,function(_){_.delete(k,ne),_.insertNodeAfter(k,A,l)})}function M(_e,Y){var Z=_e.file,k=Y.body.statements,I=k[0],ne;x(Y.body,I)?(ne=I.expression,e.suppressLeadingAndTrailingTrivia(ne),e.copyComments(I,ne)):ne=Y.body;var ee=e.factory.createArrowFunction(Y.modifiers,Y.typeParameters,Y.parameters,Y.type,e.factory.createToken(38),ne);return e.textChanges.ChangeTracker.with(_e,function(A){return A.replaceNode(Z,Y,ee)})}function x(_e,Y){return _e.statements.length===1&&e.isReturnStatement(Y)&&!!Y.expression}function ie(_e,Y,Z){return!!Z.name&&e.FindAllReferences.Core.isSymbolReferencedInFile(Z.name,Y,_e)}})(L=O.convertArrowFunctionOrFunctionExpression||(O.convertArrowFunctionOrFunctionExpression={}))})(a=e.refactor||(e.refactor={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(W){var N="Infer function return type",Q=e.Diagnostics.Infer_function_return_type.message,pe={name:N,description:Q,kind:"refactor.rewrite.function.returnType"};O.registerRefactor(N,{kinds:[pe.kind],getEditsForAction:F,getAvailableActions:g});function F(C){var G=H(C);if(G&&!O.isRefactorErrorInfo(G)){var E=e.textChanges.ChangeTracker.with(C,function(ue){return S(C.file,ue,G.declaration,G.returnTypeNode)});return{renameFilename:void 0,renameLocation:void 0,edits:E}}}function g(C){var G=H(C);return G?O.isRefactorErrorInfo(G)?C.preferences.provideRefactorNotApplicableReason?[{name:N,description:Q,actions:[Ve(Ve({},pe),{notApplicableReason:G.error})]}]:e.emptyArray:[{name:N,description:Q,actions:[pe]}]:e.emptyArray}function S(C,G,E,ue){var B=e.findChildOfKind(E,21,C),re=e.isArrowFunction(E)&&B===void 0,M=re?e.first(E.parameters):B;M&&(re&&(G.insertNodeBefore(C,M,e.factory.createToken(20)),G.insertNodeAfter(C,M,e.factory.createToken(21))),G.insertNodeAt(C,M.end,ue,{prefix:": "}))}function H(C){if(!(e.isInJSFile(C.file)||!O.refactorKindBeginsWith(pe.kind,C.kind))){var G=e.getTokenAtPosition(C.file,C.startPosition),E=e.findAncestor(G,function(M){return e.isBlock(M)||M.parent&&e.isArrowFunction(M.parent)&&(M.kind===38||M.parent.body===M)?"quit":se(M)});if(!E||!E.body||E.type)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Return_type_must_be_inferred_from_a_function)};var ue=C.program.getTypeChecker(),B=p(ue,E);if(!B)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_determine_function_return_type)};var re=ue.typeToTypeNode(B,E,1);if(re)return{declaration:E,returnTypeNode:re}}}function se(C){switch(C.kind){case 255:case 212:case 213:case 168:return!0;default:return!1}}function p(C,G){if(C.isImplementationOfOverload(G)){var E=C.getTypeAtLocation(G).getCallSignatures();if(E.length>1)return C.getUnionType(e.mapDefined(E,function(B){return B.getReturnType()}))}var ue=C.getSignatureFromDeclaration(G);if(ue)return C.getReturnTypeOfSignature(ue)}})(L=O.inferFunctionReturnType||(O.inferFunctionReturnType={}))})(a=e.refactor||(e.refactor={}))})(Pe||(Pe={}));var Pe;(function(e){e.servicesVersion="0.8";function a(m,de,ae,V){var le=e.isNodeKind(m)?new O(m,de,ae):m===79?new g(79,de,ae):m===80?new S(80,de,ae):new F(m,de,ae);return le.parent=V,le.flags=V.flags&25358336,le}var O=function(){function m(de,ae,V){this.pos=ae,this.end=V,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=de}return m.prototype.assertHasRealPosition=function(de){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),de||"Node must have a real position for this operation")},m.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},m.prototype.getStart=function(de,ae){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,de,ae)},m.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},m.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},m.prototype.getWidth=function(de){return this.assertHasRealPosition(),this.getEnd()-this.getStart(de)},m.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},m.prototype.getLeadingTriviaWidth=function(de){return this.assertHasRealPosition(),this.getStart(de)-this.pos},m.prototype.getFullText=function(de){return this.assertHasRealPosition(),(de||this.getSourceFile()).text.substring(this.pos,this.end)},m.prototype.getText=function(de){return this.assertHasRealPosition(),de||(de=this.getSourceFile()),de.text.substring(this.getStart(de),this.getEnd())},m.prototype.getChildCount=function(de){return this.getChildren(de).length},m.prototype.getChildAt=function(de,ae){return this.getChildren(ae)[de]},m.prototype.getChildren=function(de){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=L(this,de))},m.prototype.getFirstToken=function(de){this.assertHasRealPosition();var ae=this.getChildren(de);if(!!ae.length){var V=e.find(ae,function(le){return le.kind<307||le.kind>345});return V.kind<160?V:V.getFirstToken(de)}},m.prototype.getLastToken=function(de){this.assertHasRealPosition();var ae=this.getChildren(de),V=e.lastOrUndefined(ae);if(!!V)return V.kind<160?V:V.getLastToken(de)},m.prototype.forEachChild=function(de,ae){return e.forEachChild(this,de,ae)},m}();function L(m,de){if(!e.isNodeKind(m.kind))return e.emptyArray;var ae=[];if(e.isJSDocCommentContainingNode(m))return m.forEachChild(function(Ue){ae.push(Ue)}),ae;e.scanner.setText((de||m.getSourceFile()).text);var V=m.pos,le=function(Ue){W(ae,V,Ue.pos,m),ae.push(Ue),V=Ue.end},ke=function(Ue){W(ae,V,Ue.pos,m),ae.push(N(Ue,m)),V=Ue.end};return e.forEach(m.jsDoc,le),V=m.pos,m.forEachChild(le,ke),W(ae,V,m.end,m),e.scanner.setText(void 0),ae}function W(m,de,ae,V){for(e.scanner.setTextPos(de);de<ae;){var le=e.scanner.scan(),ke=e.scanner.getTextPos();if(ke<=ae&&(le===79&&e.Debug.fail("Did not expect ".concat(e.Debug.formatSyntaxKind(V.kind)," to have an Identifier in its trivia")),m.push(a(le,de,ke,V))),de=ke,le===1)break}}function N(m,de){var ae=a(346,m.pos,m.end,de);ae._children=[];for(var V=m.pos,le=0,ke=m;le<ke.length;le++){var Ue=ke[le];W(ae._children,V,Ue.pos,de),ae._children.push(Ue),V=Ue.end}return W(ae._children,V,m.end,de),ae}var Q=function(){function m(de,ae){this.pos=de,this.end=ae,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}return m.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},m.prototype.getStart=function(de,ae){return e.getTokenPosOfNode(this,de,ae)},m.prototype.getFullStart=function(){return this.pos},m.prototype.getEnd=function(){return this.end},m.prototype.getWidth=function(de){return this.getEnd()-this.getStart(de)},m.prototype.getFullWidth=function(){return this.end-this.pos},m.prototype.getLeadingTriviaWidth=function(de){return this.getStart(de)-this.pos},m.prototype.getFullText=function(de){return(de||this.getSourceFile()).text.substring(this.pos,this.end)},m.prototype.getText=function(de){return de||(de=this.getSourceFile()),de.text.substring(this.getStart(de),this.getEnd())},m.prototype.getChildCount=function(){return this.getChildren().length},m.prototype.getChildAt=function(de){return this.getChildren()[de]},m.prototype.getChildren=function(){return this.kind===1&&this.jsDoc||e.emptyArray},m.prototype.getFirstToken=function(){},m.prototype.getLastToken=function(){},m.prototype.forEachChild=function(){},m}(),pe=function(){function m(de,ae){this.flags=de,this.escapedName=ae}return m.prototype.getFlags=function(){return this.flags},Object.defineProperty(m.prototype,"name",{get:function(){return e.symbolName(this)},enumerable:!1,configurable:!0}),m.prototype.getEscapedName=function(){return this.escapedName},m.prototype.getName=function(){return this.name},m.prototype.getDeclarations=function(){return this.declarations},m.prototype.getDocumentationComment=function(de){if(!this.documentationComment)if(this.documentationComment=e.emptyArray,!this.declarations&&this.target&&this.target.tupleLabelDeclaration){var ae=this.target.tupleLabelDeclaration;this.documentationComment=G([ae],de)}else this.documentationComment=G(this.declarations,de);return this.documentationComment},m.prototype.getContextualDocumentationComment=function(de,ae){switch(de==null?void 0:de.kind){case 171:return this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=G(e.filter(this.declarations,e.isGetAccessor),ae)),this.contextualGetAccessorDocumentationComment;case 172:return this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=G(e.filter(this.declarations,e.isSetAccessor),ae)),this.contextualSetAccessorDocumentationComment;default:return this.getDocumentationComment(ae)}},m.prototype.getJsDocTags=function(de){return this.tags===void 0&&(this.tags=C(this.declarations,de)),this.tags},m.prototype.getContextualJsDocTags=function(de,ae){switch(de==null?void 0:de.kind){case 171:return this.contextualGetAccessorTags||(this.contextualGetAccessorTags=C(e.filter(this.declarations,e.isGetAccessor),ae)),this.contextualGetAccessorTags;case 172:return this.contextualSetAccessorTags||(this.contextualSetAccessorTags=C(e.filter(this.declarations,e.isSetAccessor),ae)),this.contextualSetAccessorTags;default:return this.getJsDocTags(ae)}},m}(),F=function(m){Mr(de,m);function de(ae,V,le){var ke=m.call(this,V,le)||this;return ke.kind=ae,ke}return de}(Q),g=function(m){Mr(de,m);function de(ae,V,le){var ke=m.call(this,V,le)||this;return ke.kind=79,ke}return Object.defineProperty(de.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),de}(Q);g.prototype.kind=79;var S=function(m){Mr(de,m);function de(ae,V,le){return m.call(this,V,le)||this}return Object.defineProperty(de.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),de}(Q);S.prototype.kind=80;var H=function(){function m(de,ae){this.checker=de,this.flags=ae}return m.prototype.getFlags=function(){return this.flags},m.prototype.getSymbol=function(){return this.symbol},m.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},m.prototype.getProperty=function(de){return this.checker.getPropertyOfType(this,de)},m.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},m.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},m.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},m.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},m.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},m.prototype.getBaseTypes=function(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0},m.prototype.isNullableType=function(){return this.checker.isNullableType(this)},m.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},m.prototype.getNonOptionalType=function(){return this.checker.getNonOptionalType(this)},m.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},m.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},m.prototype.isUnion=function(){return!!(this.flags&1048576)},m.prototype.isIntersection=function(){return!!(this.flags&2097152)},m.prototype.isUnionOrIntersection=function(){return!!(this.flags&3145728)},m.prototype.isLiteral=function(){return!!(this.flags&384)},m.prototype.isStringLiteral=function(){return!!(this.flags&128)},m.prototype.isNumberLiteral=function(){return!!(this.flags&256)},m.prototype.isTypeParameter=function(){return!!(this.flags&262144)},m.prototype.isClassOrInterface=function(){return!!(e.getObjectFlags(this)&3)},m.prototype.isClass=function(){return!!(e.getObjectFlags(this)&1)},m.prototype.isIndexType=function(){return!!(this.flags&4194304)},Object.defineProperty(m.prototype,"typeArguments",{get:function(){if(e.getObjectFlags(this)&4)return this.checker.getTypeArguments(this)},enumerable:!1,configurable:!0}),m}(),se=function(){function m(de,ae){this.checker=de,this.flags=ae}return m.prototype.getDeclaration=function(){return this.declaration},m.prototype.getTypeParameters=function(){return this.typeParameters},m.prototype.getParameters=function(){return this.parameters},m.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},m.prototype.getTypeParameterAtPosition=function(de){var ae=this.checker.getParameterType(this,de);if(ae.isIndexType()&&e.isThisTypeParameter(ae.type)){var V=ae.type.getConstraint();if(V)return this.checker.getIndexType(V)}return ae},m.prototype.getDocumentationComment=function(){return this.documentationComment||(this.documentationComment=G(e.singleElementArray(this.declaration),this.checker))},m.prototype.getJsDocTags=function(){return this.jsDocTags||(this.jsDocTags=C(e.singleElementArray(this.declaration),this.checker))},m}();function p(m){return e.getJSDocTags(m).some(function(de){return de.tagName.text==="inheritDoc"})}function C(m,de){if(!m)return e.emptyArray;var ae=e.JsDoc.getJsDocTagsFromDeclarations(m,de);if(de&&(ae.length===0||m.some(p)))for(var V=new e.Set,le=function(ar){var gr=E(de,ar,function(me){var Ge;if(!V.has(me))return V.add(me),ar.kind===171||ar.kind===172?me.getContextualJsDocTags(ar,de):((Ge=me.declarations)===null||Ge===void 0?void 0:Ge.length)===1?me.getJsDocTags():void 0});gr&&(ae=qe(qe([],gr,!0),ae,!0))},ke=0,Ue=m;ke<Ue.length;ke++){var He=Ue[ke];le(He)}return ae}function G(m,de){if(!m)return e.emptyArray;var ae=e.JsDoc.getJsDocCommentsFromDeclarations(m,de);if(de&&(ae.length===0||m.some(p)))for(var V=new e.Set,le=function(ar){var gr=E(de,ar,function(me){if(!V.has(me))return V.add(me),ar.kind===171||ar.kind===172?me.getContextualDocumentationComment(ar,de):me.getDocumentationComment(de)});gr&&(ae=ae.length===0?gr.slice():gr.concat(e.lineBreakPart(),ae))},ke=0,Ue=m;ke<Ue.length;ke++){var He=Ue[ke];le(He)}return ae}function E(m,de,ae){var V;if(!e.hasStaticModifier(de)){var le=((V=de.parent)===null||V===void 0?void 0:V.kind)===170?de.parent.parent:de.parent;if(!!le)return e.firstDefined(e.getAllSuperTypeNodes(le),function(ke){var Ue=m.getPropertyOfType(m.getTypeAtLocation(ke),de.symbol.name);return Ue?ae(Ue):void 0})}}var ue=function(m){Mr(de,m);function de(ae,V,le){var ke=m.call(this,ae,V,le)||this;return ke.kind=303,ke}return de.prototype.update=function(ae,V){return e.updateSourceFile(this,ae,V)},de.prototype.getLineAndCharacterOfPosition=function(ae){return e.getLineAndCharacterOfPosition(this,ae)},de.prototype.getLineStarts=function(){return e.getLineStarts(this)},de.prototype.getPositionOfLineAndCharacter=function(ae,V,le){return e.computePositionOfLineAndCharacter(e.getLineStarts(this),ae,V,this.text,le)},de.prototype.getLineEndOfPosition=function(ae){var V=this.getLineAndCharacterOfPosition(ae).line,le=this.getLineStarts(),ke;V+1>=le.length&&(ke=this.getEnd()),ke||(ke=le[V+1]-1);var Ue=this.getFullText();return Ue[ke]===`
`&&Ue[ke-1]==="\r"?ke-1:ke},de.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},de.prototype.computeNamedDeclarations=function(){var ae=e.createMultiMap();return this.forEachChild(Ue),ae;function V(He){var ar=ke(He);ar&&ae.add(ar,He)}function le(He){var ar=ae.get(He);return ar||ae.set(He,ar=[]),ar}function ke(He){var ar=e.getNonAssignedNameOfDeclaration(He);return ar&&(e.isComputedPropertyName(ar)&&e.isPropertyAccessExpression(ar.expression)?ar.expression.name.text:e.isPropertyName(ar)?e.getNameFromPropertyName(ar):void 0)}function Ue(He){switch(He.kind){case 255:case 212:case 168:case 167:var ar=He,gr=ke(ar);if(gr){var me=le(gr),Ge=e.lastOrUndefined(me);Ge&&ar.parent===Ge.parent&&ar.symbol===Ge.symbol?ar.body&&!Ge.body&&(me[me.length-1]=ar):me.push(ar)}e.forEachChild(He,Ue);break;case 256:case 225:case 257:case 258:case 259:case 260:case 264:case 274:case 269:case 266:case 267:case 171:case 172:case 181:V(He),e.forEachChild(He,Ue);break;case 163:if(!e.hasSyntacticModifier(He,16476))break;case 253:case 202:{var er=He;if(e.isBindingPattern(er.name)){e.forEachChild(er.name,Ue);break}er.initializer&&Ue(er.initializer)}case 297:case 166:case 165:V(He);break;case 271:var he=He;he.exportClause&&(e.isNamedExports(he.exportClause)?e.forEach(he.exportClause.elements,Ue):Ue(he.exportClause.name));break;case 265:var we=He.importClause;we&&(we.name&&V(we.name),we.namedBindings&&(we.namedBindings.kind===267?V(we.namedBindings):e.forEach(we.namedBindings.elements,Ue)));break;case 220:e.getAssignmentDeclarationKind(He)!==0&&V(He);default:e.forEachChild(He,Ue)}}},de}(O),B=function(){function m(de,ae,V){this.fileName=de,this.text=ae,this.skipTrivia=V}return m.prototype.getLineAndCharacterOfPosition=function(de){return e.getLineAndCharacterOfPosition(this,de)},m}();function re(){return{getNodeConstructor:function(){return O},getTokenConstructor:function(){return F},getIdentifierConstructor:function(){return g},getPrivateIdentifierConstructor:function(){return S},getSourceFileConstructor:function(){return ue},getSymbolConstructor:function(){return pe},getTypeConstructor:function(){return H},getSignatureConstructor:function(){return se},getSourceMapSourceConstructor:function(){return B}}}function M(m){var de=!0;for(var ae in m)if(e.hasProperty(m,ae)&&!x(ae)){de=!1;break}if(de)return m;var V={};for(var ae in m)if(e.hasProperty(m,ae)){var le=x(ae)?ae:ae.charAt(0).toLowerCase()+ae.substr(1);V[le]=m[ae]}return V}e.toEditorSettings=M;function x(m){return!m.length||m.charAt(0)===m.charAt(0).toLowerCase()}function ie(m){return m?e.map(m,function(de){return de.text}).join(""):""}e.displayPartsToString=ie;function _e(){return{target:1,jsx:1}}e.getDefaultCompilerOptions=_e;function Y(){return e.codefix.getSupportedErrorCodes()}e.getSupportedCodeFixes=Y;var Z=function(){function m(de,ae){this.host=de,this.currentDirectory=de.getCurrentDirectory(),this.fileNameToEntry=new e.Map;for(var V=de.getScriptFileNames(),le=0,ke=V;le<ke.length;le++){var Ue=ke[le];this.createEntry(Ue,e.toPath(Ue,this.currentDirectory,ae))}}return m.prototype.createEntry=function(de,ae){var V,le=this.host.getScriptSnapshot(de);return le?V={hostFileName:de,version:this.host.getScriptVersion(de),scriptSnapshot:le,scriptKind:e.getScriptKind(de,this.host)}:V=de,this.fileNameToEntry.set(ae,V),V},m.prototype.getEntryByPath=function(de){return this.fileNameToEntry.get(de)},m.prototype.getHostFileInformation=function(de){var ae=this.fileNameToEntry.get(de);return e.isString(ae)?void 0:ae},m.prototype.getOrCreateEntryByPath=function(de,ae){var V=this.getEntryByPath(ae)||this.createEntry(de,ae);return e.isString(V)?void 0:V},m.prototype.getRootFileNames=function(){var de=[];return this.fileNameToEntry.forEach(function(ae){e.isString(ae)?de.push(ae):de.push(ae.hostFileName)}),de},m.prototype.getScriptSnapshot=function(de){var ae=this.getHostFileInformation(de);return ae&&ae.scriptSnapshot},m}(),k=function(){function m(de){this.host=de}return m.prototype.getCurrentSourceFile=function(de){var ae=this.host.getScriptSnapshot(de);if(!ae)throw new Error("Could not find file: '"+de+"'.");var V=e.getScriptKind(de,this.host),le=this.host.getScriptVersion(de),ke;if(this.currentFileName!==de)ke=ne(de,ae,99,le,!0,V);else if(this.currentFileVersion!==le){var Ue=ae.getChangeRange(this.currentFileScriptSnapshot);ke=ee(this.currentSourceFile,ae,le,Ue)}return ke&&(this.currentFileVersion=le,this.currentFileName=de,this.currentFileScriptSnapshot=ae,this.currentSourceFile=ke),this.currentSourceFile},m}();function I(m,de,ae){m.version=ae,m.scriptSnapshot=de}function ne(m,de,ae,V,le,ke){var Ue=e.createSourceFile(m,e.getSnapshotText(de),ae,le,ke);return I(Ue,de,V),Ue}e.createLanguageServiceSourceFile=ne;function ee(m,de,ae,V,le){if(V&&ae!==m.version){var ke=void 0,Ue=V.span.start!==0?m.text.substr(0,V.span.start):"",He=e.textSpanEnd(V.span)!==m.text.length?m.text.substr(e.textSpanEnd(V.span)):"";if(V.newLength===0)ke=Ue&&He?Ue+He:Ue||He;else{var ar=de.getText(V.span.start,V.span.start+V.newLength);ke=Ue&&He?Ue+ar+He:Ue?Ue+ar:ar+He}var gr=e.updateSourceFile(m,ke,V,le);return I(gr,de,ae),gr.nameTable=void 0,m!==gr&&m.scriptSnapshot&&(m.scriptSnapshot.dispose&&m.scriptSnapshot.dispose(),m.scriptSnapshot=void 0),gr}return ne(m.fileName,de,m.languageVersion,ae,!0,m.scriptKind)}e.updateLanguageServiceSourceFile=ee;var A={isCancellationRequested:e.returnFalse,throwIfCancellationRequested:e.noop},f=function(){function m(de){this.cancellationToken=de}return m.prototype.isCancellationRequested=function(){return this.cancellationToken.isCancellationRequested()},m.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw e.tracing===null||e.tracing===void 0||e.tracing.instant("session","cancellationThrown",{kind:"CancellationTokenObject"}),new e.OperationCanceledException},m}(),P=function(){function m(de,ae){ae===void 0&&(ae=20),this.hostCancellationToken=de,this.throttleWaitMilliseconds=ae,this.lastCancellationCheckTime=0}return m.prototype.isCancellationRequested=function(){var de=e.timestamp(),ae=Math.abs(de-this.lastCancellationCheckTime);return ae>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=de,this.hostCancellationToken.isCancellationRequested()):!1},m.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw e.tracing===null||e.tracing===void 0||e.tracing.instant("session","cancellationThrown",{kind:"ThrottledCancellationToken"}),new e.OperationCanceledException},m}();e.ThrottledCancellationToken=P;var D=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints"],l=qe(qe([],D,!0),["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],!1);function _(m,de,ae){var V,le;de===void 0&&(de=e.createDocumentRegistry(m.useCaseSensitiveFileNames&&m.useCaseSensitiveFileNames(),m.getCurrentDirectory()));var ke;ae===void 0?ke=e.LanguageServiceMode.Semantic:typeof ae=="boolean"?ke=ae?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:ke=ae;var Ue=new k(m),He,ar,gr=0,me=m.getCancellationToken?new f(m.getCancellationToken()):A,Ge=m.getCurrentDirectory();e.maybeSetLocalizedDiagnosticMessages((le=m.getLocalizedDiagnosticMessages)===null||le===void 0?void 0:le.bind(m));function er(Pi){m.log&&m.log(Pi)}var he=e.hostUsesCaseSensitiveFileNames(m),we=e.createGetCanonicalFileName(he),ye=e.getSourceMapper({useCaseSensitiveFileNames:function(){return he},getCurrentDirectory:function(){return Ge},getProgram:Fe,fileExists:e.maybeBind(m,m.fileExists),readFile:e.maybeBind(m,m.readFile),getDocumentPositionMapper:e.maybeBind(m,m.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(m,m.getSourceFileLike),log:er});function Se(Pi){var Oi=He.getSourceFile(Pi);if(!Oi){var wi=new Error("Could not find source file: '".concat(Pi,"'."));throw wi.ProgramFiles=He.getSourceFiles().map(function(Qr){return Qr.fileName}),wi}return Oi}function ge(){var Pi,Oi,wi;if(e.Debug.assert(ke!==e.LanguageServiceMode.Syntactic),m.getProjectVersion){var Qr=m.getProjectVersion();if(Qr){if(ar===Qr&&!(!((Pi=m.hasChangedAutomaticTypeDirectiveNames)===null||Pi===void 0)&&Pi.call(m)))return;ar=Qr}}var Ct=m.getTypeRootsVersion?m.getTypeRootsVersion():0;gr!==Ct&&(er("TypeRoots version has changed; provide new program"),He=void 0,gr=Ct);var tt=new Z(m,we),ta=tt.getRootFileNames(),Xa=m.getCompilationSettings()||_e(),on=m.hasInvalidatedResolution||e.returnFalse,qr=e.maybeBind(m,m.hasChangedAutomaticTypeDirectiveNames),bn=(Oi=m.getProjectReferences)===null||Oi===void 0?void 0:Oi.call(m),Rn,Sn={useCaseSensitiveFileNames:he,fileExists:ro,readFile:Ko,readDirectory:rs,trace:e.maybeBind(m,m.trace),getCurrentDirectory:function(){return Ge},onUnRecoverableConfigFileDiagnostic:e.noop};if(e.isProgramUptoDate(He,ta,Xa,function(pn,Qn){return m.getScriptVersion(Qn)},ro,on,qr,Vo,bn))return;var zn={getSourceFile:Do,getSourceFileByPath:io,getCancellationToken:function(){return me},getCanonicalFileName:we,useCaseSensitiveFileNames:function(){return he},getNewLine:function(){return e.getNewLineCharacter(Xa,function(){return e.getNewLineOrDefaultFromHost(m)})},getDefaultLibFileName:function(pn){return m.getDefaultLibFileName(pn)},writeFile:e.noop,getCurrentDirectory:function(){return Ge},fileExists:ro,readFile:Ko,getSymlinkCache:e.maybeBind(m,m.getSymlinkCache),realpath:e.maybeBind(m,m.realpath),directoryExists:function(pn){return e.directoryProbablyExists(pn,m)},getDirectories:function(pn){return m.getDirectories?m.getDirectories(pn):[]},readDirectory:rs,onReleaseOldSourceFile:rn,onReleaseParsedCommandLine:go,hasInvalidatedResolution:on,hasChangedAutomaticTypeDirectiveNames:qr,trace:Sn.trace,resolveModuleNames:e.maybeBind(m,m.resolveModuleNames),getModuleResolutionCache:e.maybeBind(m,m.getModuleResolutionCache),resolveTypeReferenceDirectives:e.maybeBind(m,m.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(m,m.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Vo};(wi=m.setCompilerHost)===null||wi===void 0||wi.call(m,zn);var Zn=de.getKeyForCompilationSettings(Xa),ho={rootNames:ta,options:Xa,host:zn,oldProgram:He,projectReferences:bn};He=e.createProgram(ho),tt=void 0,Rn=void 0,ye.clearCache(),He.getTypeChecker();return;function Vo(pn){var Qn=e.toPath(pn,Ge,we),wo=Rn==null?void 0:Rn.get(Qn);if(wo!==void 0)return wo||void 0;var xo=m.getParsedCommandLine?m.getParsedCommandLine(pn):Cn(pn);return(Rn||(Rn=new e.Map)).set(Qn,xo||!1),xo}function Cn(pn){var Qn=Do(pn,100);if(!!Qn)return Qn.path=e.toPath(pn,Ge,we),Qn.resolvedPath=Qn.path,Qn.originalFileName=Qn.fileName,e.parseJsonSourceFileConfigFileContent(Qn,Sn,e.getNormalizedAbsolutePath(e.getDirectoryPath(pn),Ge),void 0,e.getNormalizedAbsolutePath(pn,Ge))}function go(pn,Qn,wo){var xo;m.getParsedCommandLine?(xo=m.onReleaseParsedCommandLine)===null||xo===void 0||xo.call(m,pn,Qn,wo):Qn&&rn(Qn.sourceFile,wo)}function ro(pn){var Qn=e.toPath(pn,Ge,we),wo=tt&&tt.getEntryByPath(Qn);return wo?!e.isString(wo):!!m.fileExists&&m.fileExists(pn)}function Ko(pn){var Qn=e.toPath(pn,Ge,we),wo=tt&&tt.getEntryByPath(Qn);return wo?e.isString(wo)?void 0:e.getSnapshotText(wo.scriptSnapshot):m.readFile&&m.readFile(pn)}function rs(pn,Qn,wo,xo,ds){return e.Debug.checkDefined(m.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),m.readDirectory(pn,Qn,wo,xo,ds)}function rn(pn,Qn){var wo=de.getKeyForCompilationSettings(Qn);de.releaseDocumentWithKey(pn.resolvedPath,wo,pn.scriptKind)}function Do(pn,Qn,wo,xo){return io(pn,e.toPath(pn,Ge,we),Qn,wo,xo)}function io(pn,Qn,wo,xo,ds){e.Debug.assert(tt!==void 0,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var No=tt&&tt.getOrCreateEntryByPath(pn,Qn);if(!!No){if(!ds){var Ts=He&&He.getSourceFileByPath(Qn);if(Ts){if(No.scriptKind===Ts.scriptKind)return de.updateDocumentWithKey(pn,Qn,Xa,Zn,No.scriptSnapshot,No.version,No.scriptKind);de.releaseDocumentWithKey(Ts.resolvedPath,de.getKeyForCompilationSettings(He.getCompilerOptions()),Ts.scriptKind)}}return de.acquireDocumentWithKey(pn,Qn,Xa,Zn,No.scriptSnapshot,No.version,No.scriptKind)}}}function Fe(){if(ke===e.LanguageServiceMode.Syntactic){e.Debug.assert(He===void 0);return}return ge(),He}function cr(){var Pi;return(Pi=m.getPackageJsonAutoImportProvider)===null||Pi===void 0?void 0:Pi.call(m)}function ur(){He=void 0}function Ir(){if(He){var Pi=de.getKeyForCompilationSettings(He.getCompilerOptions());e.forEach(He.getSourceFiles(),function(Oi){return de.releaseDocumentWithKey(Oi.resolvedPath,Pi,Oi.scriptKind)}),He=void 0}m=void 0}function dr(Pi){return ge(),He.getSyntacticDiagnostics(Se(Pi),me).slice()}function Br(Pi){ge();var Oi=Se(Pi),wi=He.getSemanticDiagnostics(Oi,me);if(!e.getEmitDeclarations(He.getCompilerOptions()))return wi.slice();var Qr=He.getDeclarationDiagnostics(Oi,me);return qe(qe([],wi,!0),Qr,!0)}function Tr(Pi){return ge(),e.computeSuggestionDiagnostics(Se(Pi),He,me)}function n(){return ge(),qe(qe([],He.getOptionsDiagnostics(me),!0),He.getGlobalDiagnostics(me),!0)}function Er(Pi,Oi,wi,Qr){wi===void 0&&(wi=e.emptyOptions);var Ct=Ve(Ve({},e.identity(wi)),{includeCompletionsForModuleExports:wi.includeCompletionsForModuleExports||wi.includeExternalModuleExports,includeCompletionsWithInsertText:wi.includeCompletionsWithInsertText||wi.includeInsertTextCompletions});return ge(),e.Completions.getCompletionsAtPosition(m,He,er,Se(Pi),Oi,Ct,wi.triggerCharacter,wi.triggerKind,me,Qr&&e.formatting.getFormatContext(Qr,m))}function br(Pi,Oi,wi,Qr,Ct,tt,ta){return tt===void 0&&(tt=e.emptyOptions),ge(),e.Completions.getCompletionEntryDetails(He,er,Se(Pi),Oi,{name:wi,source:Ct,data:ta},m,Qr&&e.formatting.getFormatContext(Qr,m),tt,me)}function Pr(Pi,Oi,wi,Qr,Ct){return Ct===void 0&&(Ct=e.emptyOptions),ge(),e.Completions.getCompletionEntrySymbol(He,er,Se(Pi),Oi,{name:wi,source:Qr},m,Ct)}function Ce(Pi,Oi){ge();var wi=Se(Pi),Qr=e.getTouchingPropertyName(wi,Oi);if(Qr!==wi){var Ct=He.getTypeChecker(),tt=Le(Qr),ta=y(tt,Ct);if(!ta||Ct.isUnknownSymbol(ta)){var Xa=Xe(wi,tt,Oi)?Ct.getTypeAtLocation(tt):void 0;return Xa&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(tt,wi),displayParts:Ct.runWithCancellationToken(me,function(zn){return e.typeToDisplayParts(zn,Xa,e.getContainerNode(tt))}),documentation:Xa.symbol?Xa.symbol.getDocumentationComment(Ct):void 0,tags:Xa.symbol?Xa.symbol.getJsDocTags(Ct):void 0}}var on=Ct.runWithCancellationToken(me,function(zn){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(zn,ta,wi,e.getContainerNode(tt),tt)}),qr=on.symbolKind,bn=on.displayParts,Rn=on.documentation,Sn=on.tags;return{kind:qr,kindModifiers:e.SymbolDisplay.getSymbolModifiers(Ct,ta),textSpan:e.createTextSpanFromNode(tt,wi),displayParts:bn,documentation:Rn,tags:Sn}}}function Le(Pi){return e.isNewExpression(Pi.parent)&&Pi.pos===Pi.parent.pos?Pi.parent.expression:e.isNamedTupleMember(Pi.parent)&&Pi.pos===Pi.parent.pos?Pi.parent:Pi}function Xe(Pi,Oi,wi){switch(Oi.kind){case 79:return!e.isLabelName(Oi)&&!e.isTagName(Oi)&&!e.isConstTypeReference(Oi.parent);case 205:case 160:return!e.isInComment(Pi,wi);case 108:case 191:case 106:case 196:return!0;default:return!1}}function Cr(Pi,Oi){return ge(),e.GoToDefinition.getDefinitionAtPosition(He,Se(Pi),Oi)}function Lr(Pi,Oi){return ge(),e.GoToDefinition.getDefinitionAndBoundSpan(He,Se(Pi),Oi)}function Jr(Pi,Oi){return ge(),e.GoToDefinition.getTypeDefinitionAtPosition(He.getTypeChecker(),Se(Pi),Oi)}function Rr(Pi,Oi){return ge(),e.FindAllReferences.getImplementationsAtPosition(He,me,He.getSourceFiles(),Se(Pi),Oi)}function ci(Pi,Oi){return e.flatMap(be(Pi,Oi,[Pi]),function(wi){return wi.highlightSpans.map(function(Qr){return Ve(Ve({fileName:wi.fileName,textSpan:Qr.textSpan,isWriteAccess:Qr.kind==="writtenReference",isDefinition:!1},Qr.isInString&&{isInString:!0}),Qr.contextSpan&&{contextSpan:Qr.contextSpan})})})}function be(Pi,Oi,wi){var Qr=e.normalizePath(Pi);e.Debug.assert(wi.some(function(ta){return e.normalizePath(ta)===Qr})),ge();var Ct=e.mapDefined(wi,function(ta){return He.getSourceFile(ta)}),tt=Se(Pi);return e.DocumentHighlights.getDocumentHighlights(He,me,tt,Oi,Ct)}function or(Pi,Oi,wi,Qr,Ct){ge();var tt=Se(Pi),ta=e.getAdjustedRenameLocation(e.getTouchingPropertyName(tt,Oi));if(!!e.Rename.nodeIsEligibleForRename(ta))if(e.isIdentifier(ta)&&(e.isJsxOpeningElement(ta.parent)||e.isJsxClosingElement(ta.parent))&&e.isIntrinsicJsxName(ta.escapedText)){var Xa=ta.parent.parent,on=Xa.openingElement,qr=Xa.closingElement;return[on,qr].map(function(bn){var Rn=e.createTextSpanFromNode(bn.tagName,tt);return Ve({fileName:tt.fileName,textSpan:Rn},e.FindAllReferences.toContextSpan(Rn,tt,bn.parent))})}else return ei(ta,Oi,{findInStrings:wi,findInComments:Qr,providePrefixAndSuffixTextForRename:Ct,use:2},function(bn,Rn,Sn){return e.FindAllReferences.toRenameLocation(bn,Rn,Sn,Ct||!1)})}function Kr(Pi,Oi){return ge(),ei(e.getTouchingPropertyName(Se(Pi),Oi),Oi,{use:1},function(wi,Qr,Ct){return e.FindAllReferences.toReferenceEntry(wi,Ct.getSymbolAtLocation(Qr))})}function ei(Pi,Oi,wi,Qr){ge();var Ct=wi&&wi.use===2?He.getSourceFiles().filter(function(tt){return!He.isSourceFileDefaultLibrary(tt)}):He.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(He,me,Ct,Pi,Oi,wi,Qr)}function li(Pi,Oi){return ge(),e.FindAllReferences.findReferencedSymbols(He,me,He.getSourceFiles(),Se(Pi),Oi)}function Si(Pi){var Oi;ge();var wi=(Oi=He.getSourceFile(Pi))===null||Oi===void 0?void 0:Oi.symbol;return e.FindAllReferences.Core.getReferencesForFileName(Pi,He,He.getSourceFiles()).map(function(Qr){return e.FindAllReferences.toReferenceEntry(Qr,wi)})}function qi(Pi,Oi,wi,Qr){Qr===void 0&&(Qr=!1),ge();var Ct=wi?[Se(wi)]:He.getSourceFiles();return e.NavigateTo.getNavigateToItems(Ct,He.getTypeChecker(),me,Pi,Oi,Qr)}function ft(Pi,Oi,wi){ge();var Qr=Se(Pi),Ct=m.getCustomTransformers&&m.getCustomTransformers();return e.getFileEmitOutput(He,Qr,!!Oi,me,Ct,wi)}function bt(Pi,Oi,wi){var Qr=wi===void 0?e.emptyOptions:wi,Ct=Qr.triggerReason;ge();var tt=Se(Pi);return e.SignatureHelp.getSignatureHelpItems(He,tt,Oi,Ct,me)}function aa(Pi){return Ue.getCurrentSourceFile(Pi)}function sr(Pi,Oi,wi){var Qr=Ue.getCurrentSourceFile(Pi),Ct=e.getTouchingPropertyName(Qr,Oi);if(Ct!==Qr){switch(Ct.kind){case 205:case 160:case 10:case 95:case 110:case 104:case 106:case 108:case 191:case 79:break;default:return}for(var tt=Ct;;)if(e.isRightSideOfPropertyAccess(tt)||e.isRightSideOfQualifiedName(tt))tt=tt.parent;else if(e.isNameOfModuleDeclaration(tt))if(tt.parent.parent.kind===260&&tt.parent.parent.body===tt.parent)tt=tt.parent.parent.name;else break;else break;return e.createTextSpanFromBounds(tt.getStart(),Ct.getEnd())}}function Ji(Pi,Oi){var wi=Ue.getCurrentSourceFile(Pi);return e.BreakpointResolver.spanInSourceFileAtLocation(wi,Oi)}function di(Pi){return e.NavigationBar.getNavigationBarItems(Ue.getCurrentSourceFile(Pi),me)}function X(Pi){return e.NavigationBar.getNavigationTree(Ue.getCurrentSourceFile(Pi),me)}function Ye(Pi,Oi,wi){ge();var Qr=wi||"original";return Qr==="2020"?e.classifier.v2020.getSemanticClassifications(He,me,Se(Pi),Oi):e.getSemanticClassifications(He.getTypeChecker(),me,Se(Pi),He.getClassifiableNames(),Oi)}function Be(Pi,Oi,wi){ge();var Qr=wi||"original";return Qr==="original"?e.getEncodedSemanticClassifications(He.getTypeChecker(),me,Se(Pi),He.getClassifiableNames(),Oi):e.classifier.v2020.getEncodedSemanticClassifications(He,me,Se(Pi),Oi)}function Qe(Pi,Oi){return e.getSyntacticClassifications(me,Ue.getCurrentSourceFile(Pi),Oi)}function _r(Pi,Oi){return e.getEncodedSyntacticClassifications(me,Ue.getCurrentSourceFile(Pi),Oi)}function hr(Pi){var Oi=Ue.getCurrentSourceFile(Pi);return e.OutliningElementsCollector.collectElements(Oi,me)}var Dr=new e.Map(e.getEntries((V={},V[18]=19,V[20]=21,V[22]=23,V[31]=29,V)));Dr.forEach(function(Pi,Oi){return Dr.set(Pi.toString(),Number(Oi))});function Me(Pi,Oi){var wi=Ue.getCurrentSourceFile(Pi),Qr=e.getTouchingToken(wi,Oi),Ct=Qr.getStart(wi)===Oi?Dr.get(Qr.kind.toString()):void 0,tt=Ct&&e.findChildOfKind(Qr.parent,Ct,wi);return tt?[e.createTextSpanFromNode(Qr,wi),e.createTextSpanFromNode(tt,wi)].sort(function(ta,Xa){return ta.start-Xa.start}):e.emptyArray}function v(Pi,Oi,wi){var Qr=e.timestamp(),Ct=M(wi),tt=Ue.getCurrentSourceFile(Pi);er("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-Qr)),Qr=e.timestamp();var ta=e.formatting.SmartIndenter.getIndentation(Oi,tt,Ct);return er("getIndentationAtPosition: computeIndentation  : "+(e.timestamp()-Qr)),ta}function xe(Pi,Oi,wi,Qr){var Ct=Ue.getCurrentSourceFile(Pi);return e.formatting.formatSelection(Oi,wi,Ct,e.formatting.getFormatContext(M(Qr),m))}function ze(Pi,Oi){return e.formatting.formatDocument(Ue.getCurrentSourceFile(Pi),e.formatting.getFormatContext(M(Oi),m))}function Je(Pi,Oi,wi,Qr){var Ct=Ue.getCurrentSourceFile(Pi),tt=e.formatting.getFormatContext(M(Qr),m);if(!e.isInComment(Ct,Oi))switch(wi){case"{":return e.formatting.formatOnOpeningCurly(Oi,Ct,tt);case"}":return e.formatting.formatOnClosingCurly(Oi,Ct,tt);case";":return e.formatting.formatOnSemicolon(Oi,Ct,tt);case`
`:return e.formatting.formatOnEnter(Oi,Ct,tt)}return[]}function Oe(Pi,Oi,wi,Qr,Ct,tt){tt===void 0&&(tt=e.emptyOptions),ge();var ta=Se(Pi),Xa=e.createTextSpanFromBounds(Oi,wi),on=e.formatting.getFormatContext(Ct,m);return e.flatMap(e.deduplicate(Qr,e.equateValues,e.compareValues),function(qr){return me.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:qr,sourceFile:ta,span:Xa,program:He,host:m,cancellationToken:me,formatContext:on,preferences:tt})})}function Fr(Pi,Oi,wi,Qr){Qr===void 0&&(Qr=e.emptyOptions),ge(),e.Debug.assert(Pi.type==="file");var Ct=Se(Pi.fileName),tt=e.formatting.getFormatContext(wi,m);return e.codefix.getAllFixes({fixId:Oi,sourceFile:Ct,program:He,host:m,cancellationToken:me,formatContext:tt,preferences:Qr})}function Xr(Pi,Oi,wi){wi===void 0&&(wi=e.emptyOptions),ge(),e.Debug.assert(Pi.type==="file");var Qr=Se(Pi.fileName),Ct=e.formatting.getFormatContext(Oi,m);return e.OrganizeImports.organizeImports(Qr,Ct,m,He,wi,Pi.skipDestructiveCodeActions)}function Or(Pi,Oi,wi,Qr){return Qr===void 0&&(Qr=e.emptyOptions),e.getEditsForFileRename(Fe(),Pi,Oi,m,e.formatting.getFormatContext(wi,m),Qr,ye)}function We(Pi,Oi){var wi=typeof Pi=="string"?Oi:Pi;return e.isArray(wi)?Promise.all(wi.map(function(Qr){return mr(Qr)})):mr(wi)}function mr(Pi){var Oi=function(wi){return e.toPath(wi,Ge,we)};return e.Debug.assertEqual(Pi.type,"install package"),m.installPackage?m.installPackage({fileName:Oi(Pi.file),packageName:Pi.packageName}):Promise.reject("Host does not implement `installPackage`")}function Nr(Pi,Oi,wi){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(m),Ue.getCurrentSourceFile(Pi),Oi,wi)}function Ur(Pi,Oi,wi){if(wi===60)return!1;var Qr=Ue.getCurrentSourceFile(Pi);if(e.isInString(Qr,Oi))return!1;if(e.isInsideJsxElementOrAttribute(Qr,Oi))return wi===123;if(e.isInTemplateString(Qr,Oi))return!1;switch(wi){case 39:case 34:case 96:return!e.isInComment(Qr,Oi)}return!0}function si(Pi,Oi){var wi=Ue.getCurrentSourceFile(Pi),Qr=e.findPrecedingToken(Oi,wi);if(!!Qr){var Ct=Qr.kind===31&&e.isJsxOpeningElement(Qr.parent)?Qr.parent.parent:e.isJsxText(Qr)&&e.isJsxElement(Qr.parent)?Qr.parent:void 0;if(Ct&&zi(Ct))return{newText:"</".concat(Ct.openingElement.tagName.getText(wi),">")};var tt=Qr.kind===31&&e.isJsxOpeningFragment(Qr.parent)?Qr.parent.parent:e.isJsxText(Qr)&&e.isJsxFragment(Qr.parent)?Qr.parent:void 0;if(tt&&ri(tt))return{newText:"</>"}}}function mi(Pi,Oi){return{lineStarts:Pi.getLineStarts(),firstLine:Pi.getLineAndCharacterOfPosition(Oi.pos).line,lastLine:Pi.getLineAndCharacterOfPosition(Oi.end).line}}function Ti(Pi,Oi,wi){for(var Qr=Ue.getCurrentSourceFile(Pi),Ct=[],tt=mi(Qr,Oi),ta=tt.lineStarts,Xa=tt.firstLine,on=tt.lastLine,qr=wi||!1,bn=Number.MAX_VALUE,Rn=new e.Map,Sn=new RegExp(/\S/),zn=e.isInsideJsxElement(Qr,ta[Xa]),Zn=zn?"{/*":"//",ho=Xa;ho<=on;ho++){var Vo=Qr.text.substring(ta[ho],Qr.getLineEndOfPosition(ta[ho])),Cn=Sn.exec(Vo);Cn&&(bn=Math.min(bn,Cn.index),Rn.set(ho.toString(),Cn.index),Vo.substr(Cn.index,Zn.length)!==Zn&&(qr=wi===void 0||wi))}for(var ho=Xa;ho<=on;ho++)if(!(Xa!==on&&ta[ho]===Oi.end)){var go=Rn.get(ho.toString());go!==void 0&&(zn?Ct.push.apply(Ct,hi(Pi,{pos:ta[ho]+bn,end:Qr.getLineEndOfPosition(ta[ho])},qr,zn)):qr?Ct.push({newText:Zn,span:{length:0,start:ta[ho]+bn}}):Qr.text.substr(ta[ho]+go,Zn.length)===Zn&&Ct.push({newText:"",span:{length:Zn.length,start:ta[ho]+go}}))}return Ct}function hi(Pi,Oi,wi,Qr){for(var Ct,tt=Ue.getCurrentSourceFile(Pi),ta=[],Xa=tt.text,on=!1,qr=wi||!1,bn=[],Rn=Oi.pos,Sn=Qr!==void 0?Qr:e.isInsideJsxElement(tt,Rn),zn=Sn?"{/*":"/*",Zn=Sn?"*/}":"*/",ho=Sn?"\\{\\/\\*":"\\/\\*",Vo=Sn?"\\*\\/\\}":"\\*\\/";Rn<=Oi.end;){var Cn=Xa.substr(Rn,zn.length)===zn?zn.length:0,go=e.isInComment(tt,Rn+Cn);if(go)Sn&&(go.pos--,go.end++),bn.push(go.pos),go.kind===3&&bn.push(go.end),on=!0,Rn=go.end+1;else{var ro=Xa.substring(Rn,Oi.end).search("(".concat(ho,")|(").concat(Vo,")"));qr=wi!==void 0?wi:qr||!e.isTextWhiteSpaceLike(Xa,Rn,ro===-1?Oi.end:Rn+ro),Rn=ro===-1?Oi.end+1:Rn+ro+Zn.length}}if(qr||!on){((Ct=e.isInComment(tt,Oi.pos))===null||Ct===void 0?void 0:Ct.kind)!==2&&e.insertSorted(bn,Oi.pos,e.compareValues),e.insertSorted(bn,Oi.end,e.compareValues);var Ko=bn[0];Xa.substr(Ko,zn.length)!==zn&&ta.push({newText:zn,span:{length:0,start:Ko}});for(var rs=1;rs<bn.length-1;rs++)Xa.substr(bn[rs]-Zn.length,Zn.length)!==Zn&&ta.push({newText:Zn,span:{length:0,start:bn[rs]}}),Xa.substr(bn[rs],zn.length)!==zn&&ta.push({newText:zn,span:{length:0,start:bn[rs]}});ta.length%2!==0&&ta.push({newText:Zn,span:{length:0,start:bn[bn.length-1]}})}else for(var rn=0,Do=bn;rn<Do.length;rn++){var io=Do[rn],pn=io-Zn.length>0?io-Zn.length:0,Cn=Xa.substr(pn,Zn.length)===Zn?Zn.length:0;ta.push({newText:"",span:{length:zn.length,start:io-Cn}})}return ta}function ki(Pi,Oi){var wi=Ue.getCurrentSourceFile(Pi),Qr=mi(wi,Oi),Ct=Qr.firstLine,tt=Qr.lastLine;return Ct===tt&&Oi.pos!==Oi.end?hi(Pi,Oi,!0):Ti(Pi,Oi,!0)}function Ui(Pi,Oi){var wi=Ue.getCurrentSourceFile(Pi),Qr=[],Ct=Oi.pos,tt=Oi.end;Ct===tt&&(tt+=e.isInsideJsxElement(wi,Ct)?2:1);for(var ta=Ct;ta<=tt;ta++){var Xa=e.isInComment(wi,ta);if(Xa){switch(Xa.kind){case 2:Qr.push.apply(Qr,Ti(Pi,{end:Xa.end,pos:Xa.pos+1},!1));break;case 3:Qr.push.apply(Qr,hi(Pi,{end:Xa.end,pos:Xa.pos+1},!1))}ta=Xa.end+1}}return Qr}function zi(Pi){var Oi=Pi.openingElement,wi=Pi.closingElement,Qr=Pi.parent;return!e.tagNamesAreEquivalent(Oi.tagName,wi.tagName)||e.isJsxElement(Qr)&&e.tagNamesAreEquivalent(Oi.tagName,Qr.openingElement.tagName)&&zi(Qr)}function ri(Pi){var Oi=Pi.closingFragment,wi=Pi.parent;return!!(Oi.flags&65536)||e.isJsxFragment(wi)&&ri(wi)}function Gi(Pi,Oi,wi){var Qr=Ue.getCurrentSourceFile(Pi),Ct=e.formatting.getRangeOfEnclosingComment(Qr,Oi);return Ct&&(!wi||Ct.kind===3)?e.createTextSpanFromRange(Ct):void 0}function Rt(Pi,Oi){ge();var wi=Se(Pi);me.throwIfCancellationRequested();var Qr=wi.text,Ct=[];if(Oi.length>0&&!Vo(wi.fileName))for(var tt=Zn(),ta=void 0;ta=tt.exec(Qr);){me.throwIfCancellationRequested();var Xa=3;e.Debug.assert(ta.length===Oi.length+Xa);var on=ta[1],qr=ta.index+on.length;if(!!e.isInComment(wi,qr)){for(var bn=void 0,Rn=0;Rn<Oi.length;Rn++)ta[Rn+Xa]&&(bn=Oi[Rn]);if(bn===void 0)return e.Debug.fail();if(!ho(Qr.charCodeAt(qr+bn.text.length))){var Sn=ta[2];Ct.push({descriptor:bn,message:Sn,position:qr})}}}return Ct;function zn(Cn){return Cn.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Zn(){var Cn=/(?:\/\/+\s*)/.source,go=/(?:\/\*+\s*)/.source,ro=/(?:^(?:\s|\*)*)/.source,Ko="("+ro+"|"+Cn+"|"+go+")",rs="(?:"+e.map(Oi,function(Qn){return"("+zn(Qn.text)+")"}).join("|")+")",rn=/(?:$|\*\/)/.source,Do=/(?:.*?)/.source,io="("+rs+Do+")",pn=Ko+io+rn;return new RegExp(pn,"gim")}function ho(Cn){return Cn>=97&&Cn<=122||Cn>=65&&Cn<=90||Cn>=48&&Cn<=57}function Vo(Cn){return e.stringContains(Cn,"/node_modules/")}}function pa(Pi,Oi,wi){return ge(),e.Rename.getRenameInfo(He,Se(Pi),Oi,wi)}function xt(Pi,Oi,wi,Qr,Ct,tt){var ta=typeof Oi=="number"?[Oi,void 0]:[Oi.pos,Oi.end],Xa=ta[0],on=ta[1];return{file:Pi,startPosition:Xa,endPosition:on,program:Fe(),host:m,formatContext:e.formatting.getFormatContext(Qr,m),cancellationToken:me,preferences:wi,triggerReason:Ct,kind:tt}}function ua(Pi,Oi,wi){return{file:Pi,program:Fe(),host:m,span:Oi,preferences:wi,cancellationToken:me}}function Vt(Pi,Oi){return e.SmartSelectionRange.getSmartSelectionRange(Oi,Ue.getCurrentSourceFile(Pi))}function St(Pi,Oi,wi,Qr,Ct){wi===void 0&&(wi=e.emptyOptions),ge();var tt=Se(Pi);return e.refactor.getApplicableRefactors(xt(tt,Oi,wi,e.emptyOptions,Qr,Ct))}function Ci(Pi,Oi,wi,Qr,Ct,tt){tt===void 0&&(tt=e.emptyOptions),ge();var ta=Se(Pi);return e.refactor.getEditsForRefactor(xt(ta,wi,tt,Oi),Qr,Ct)}function Hi(Pi,Oi){return Oi===0?{line:0,character:0}:ye.toLineColumnOffset(Pi,Oi)}function Yi(Pi,Oi){ge();var wi=e.CallHierarchy.resolveCallHierarchyDeclaration(He,e.getTouchingPropertyName(Se(Pi),Oi));return wi&&e.mapOneOrMany(wi,function(Qr){return e.CallHierarchy.createCallHierarchyItem(He,Qr)})}function yt(Pi,Oi){ge();var wi=Se(Pi),Qr=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(He,Oi===0?wi:e.getTouchingPropertyName(wi,Oi)));return Qr?e.CallHierarchy.getIncomingCalls(He,Qr,me):[]}function gt(Pi,Oi){ge();var wi=Se(Pi),Qr=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(He,Oi===0?wi:e.getTouchingPropertyName(wi,Oi)));return Qr?e.CallHierarchy.getOutgoingCalls(He,Qr):[]}function oa(Pi,Oi,wi){wi===void 0&&(wi=e.emptyOptions),ge();var Qr=Se(Pi);return e.InlayHints.provideInlayHints(ua(Qr,Oi,wi))}var Bt={dispose:Ir,cleanupSemanticCache:ur,getSyntacticDiagnostics:dr,getSemanticDiagnostics:Br,getSuggestionDiagnostics:Tr,getCompilerOptionsDiagnostics:n,getSyntacticClassifications:Qe,getSemanticClassifications:Ye,getEncodedSyntacticClassifications:_r,getEncodedSemanticClassifications:Be,getCompletionsAtPosition:Er,getCompletionEntryDetails:br,getCompletionEntrySymbol:Pr,getSignatureHelpItems:bt,getQuickInfoAtPosition:Ce,getDefinitionAtPosition:Cr,getDefinitionAndBoundSpan:Lr,getImplementationAtPosition:Rr,getTypeDefinitionAtPosition:Jr,getReferencesAtPosition:Kr,findReferences:li,getFileReferences:Si,getOccurrencesAtPosition:ci,getDocumentHighlights:be,getNameOrDottedNameSpan:sr,getBreakpointStatementAtPosition:Ji,getNavigateToItems:qi,getRenameInfo:pa,getSmartSelectionRange:Vt,findRenameLocations:or,getNavigationBarItems:di,getNavigationTree:X,getOutliningSpans:hr,getTodoComments:Rt,getBraceMatchingAtPosition:Me,getIndentationAtPosition:v,getFormattingEditsForRange:xe,getFormattingEditsForDocument:ze,getFormattingEditsAfterKeystroke:Je,getDocCommentTemplateAtPosition:Nr,isValidBraceCompletionAtPosition:Ur,getJsxClosingTagAtPosition:si,getSpanOfEnclosingComment:Gi,getCodeFixesAtPosition:Oe,getCombinedCodeFix:Fr,applyCodeActionCommand:We,organizeImports:Xr,getEditsForFileRename:Or,getEmitOutput:ft,getNonBoundSourceFile:aa,getProgram:Fe,getAutoImportProvider:cr,getApplicableRefactors:St,getEditsForRefactor:Ci,toLineColumnOffset:Hi,getSourceMapper:function(){return ye},clearSourceMapperCache:function(){return ye.clearCache()},prepareCallHierarchy:Yi,provideCallHierarchyIncomingCalls:yt,provideCallHierarchyOutgoingCalls:gt,toggleLineComment:Ti,toggleMultilineComment:hi,commentSelection:ki,uncommentSelection:Ui,provideInlayHints:oa};switch(ke){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:D.forEach(function(Pi){return Bt[Pi]=function(){throw new Error("LanguageService Operation: ".concat(Pi," not allowed in LanguageServiceMode.PartialSemantic"))}});break;case e.LanguageServiceMode.Syntactic:l.forEach(function(Pi){return Bt[Pi]=function(){throw new Error("LanguageService Operation: ".concat(Pi," not allowed in LanguageServiceMode.Syntactic"))}});break;default:e.Debug.assertNever(ke)}return Bt}e.createLanguageService=_;function J(m){return m.nameTable||w(m),m.nameTable}e.getNameTable=J;function w(m){var de=m.nameTable=new e.Map;m.forEachChild(function ae(V){if(e.isIdentifier(V)&&!e.isTagName(V)&&V.escapedText||e.isStringOrNumericLiteralLike(V)&&j(V)){var le=e.getEscapedTextOfIdentifierOrLiteral(V);de.set(le,de.get(le)===void 0?V.pos:-1)}else if(e.isPrivateIdentifier(V)){var le=V.escapedText;de.set(le,de.get(le)===void 0?V.pos:-1)}if(e.forEachChild(V,ae),e.hasJSDocNodes(V))for(var ke=0,Ue=V.jsDoc;ke<Ue.length;ke++){var He=Ue[ke];e.forEachChild(He,ae)}})}function j(m){return e.isDeclarationName(m)||m.parent.kind===276||ve(m)||e.isLiteralComputedPropertyDeclarationName(m)}function U(m){var de=z(m);return de&&(e.isObjectLiteralExpression(de.parent)||e.isJsxAttributes(de.parent))?de:void 0}e.getContainingObjectLiteralElement=U;function z(m){switch(m.kind){case 10:case 14:case 8:if(m.parent.kind===161)return e.isObjectLiteralElement(m.parent.parent)?m.parent.parent:void 0;case 79:return e.isObjectLiteralElement(m.parent)&&(m.parent.parent.kind===204||m.parent.parent.kind===285)&&m.parent.name===m?m.parent:void 0}}function y(m,de){var ae=U(m);if(ae){var V=de.getContextualType(ae.parent),le=V&&oe(ae,de,V,!1);if(le&&le.length===1)return e.first(le)}return de.getSymbolAtLocation(m)}function oe(m,de,ae,V){var le=e.getNameFromPropertyName(m.name);if(!le)return e.emptyArray;if(!ae.isUnion()){var ke=ae.getProperty(le);return ke?[ke]:e.emptyArray}var Ue=e.mapDefined(ae.types,function(He){return(e.isObjectLiteralExpression(m.parent)||e.isJsxAttributes(m.parent))&&de.isTypeInvalidDueToUnionDiscriminant(He,m.parent)?void 0:He.getProperty(le)});if(V&&(Ue.length===0||Ue.length===ae.types.length)){var ke=ae.getProperty(le);if(ke)return[ke]}return Ue.length===0?e.mapDefined(ae.types,function(He){return He.getProperty(le)}):Ue}e.getPropertySymbolsFromContextualType=oe;function ve(m){return m&&m.parent&&m.parent.kind===206&&m.parent.argumentExpression===m}function ce(m){return"/prettier-security-dirname-placeholder"+e.directorySeparator+e.getDefaultLibFileName(m)}e.getDefaultLibFilePath=ce,e.setObjectAllocator(re())})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(W,N){if(W.isDeclarationFile)return;var Q=e.getTokenAtPosition(W,N),pe=W.getLineAndCharacterOfPosition(N).line;if(W.getLineAndCharacterOfPosition(Q.getStart(W)).line>pe){var F=e.findPrecedingToken(Q.pos,W);if(!F||W.getLineAndCharacterOfPosition(F.getEnd()).line!==pe)return;Q=F}if(Q.flags&8388608)return;return G(Q);function g(E,ue){var B=E.decorators?e.skipTrivia(W.text,E.decorators.end):E.getStart(W);return e.createTextSpanFromBounds(B,(ue||E).getEnd())}function S(E,ue){return g(E,e.findNextToken(ue,ue.parent,W))}function H(E,ue){return E&&pe===W.getLineAndCharacterOfPosition(E.getStart(W)).line?G(E):G(ue)}function se(E){return e.createTextSpanFromBounds(e.skipTrivia(W.text,E.pos),E.end)}function p(E){return G(e.findPrecedingToken(E.pos,W))}function C(E){return G(e.findNextToken(E,E.parent,W))}function G(E){if(E){var ue=E.parent;switch(E.kind){case 236:return Z(E.declarationList.declarations[0]);case 253:case 166:case 165:return Z(E);case 163:return I(E);case 255:case 168:case 167:case 171:case 172:case 170:case 212:case 213:return ee(E);case 234:if(e.isFunctionBlock(E))return A(E);case 261:return f(E);case 291:return f(E.block);case 237:return g(E.expression);case 246:return g(E.getChildAt(0),E.expression);case 240:return S(E,E.expression);case 239:return G(E.statement);case 252:return g(E.getChildAt(0));case 238:return S(E,E.expression);case 249:return G(E.statement);case 245:case 244:return g(E.getChildAt(0),E.label);case 241:return D(E);case 242:return S(E,E.expression);case 243:return P(E);case 248:return S(E,E.expression);case 288:case 289:return G(E.statements[0]);case 251:return f(E.tryBlock);case 250:return g(E,E.expression);case 270:return g(E,E.expression);case 264:return g(E,E.moduleReference);case 265:return g(E,E.moduleSpecifier);case 271:return g(E,E.moduleSpecifier);case 260:if(e.getModuleInstanceState(E)!==1)return;case 256:case 259:case 297:case 202:return g(E);case 247:return G(E.statement);case 164:return se(ue.decorators);case 200:case 201:return l(E);case 257:case 258:return;case 26:case 1:return H(e.findPrecedingToken(E.pos,W));case 27:return p(E);case 18:return J(E);case 19:return w(E);case 23:return j(E);case 20:return U(E);case 21:return z(E);case 58:return y(E);case 31:case 29:return oe(E);case 115:return ve(E);case 91:case 83:case 96:return C(E);case 159:return ce(E);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(E))return _(E);if((E.kind===79||E.kind===224||E.kind===294||E.kind===295)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(ue))return g(E);if(E.kind===220){var B=E,re=B.left,M=B.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(re))return _(re);if(M.kind===63&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(E.parent))return g(E);if(M.kind===27)return G(re)}if(e.isExpressionNode(E))switch(ue.kind){case 239:return p(E);case 164:return G(E.parent);case 241:case 243:return g(E);case 220:if(E.parent.operatorToken.kind===27)return g(E);break;case 213:if(E.parent.body===E)return g(E);break}switch(E.parent.kind){case 294:if(E.parent.name===E&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(E.parent.parent))return G(E.parent.initializer);break;case 210:if(E.parent.type===E)return C(E.parent.type);break;case 253:case 163:{var x=E.parent,ie=x.initializer,_e=x.type;if(ie===E||_e===E||e.isAssignmentOperator(E.kind))return p(E);break}case 220:{var re=E.parent.left;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(re)&&E!==re)return p(E);break}default:if(e.isFunctionLike(E.parent)&&E.parent.type===E)return p(E)}return G(E.parent)}}function Y(m){return e.isVariableDeclarationList(m.parent)&&m.parent.declarations[0]===m?g(e.findPrecedingToken(m.pos,W,m.parent),m):g(m)}function Z(m){if(m.parent.parent.kind===242)return G(m.parent.parent);var de=m.parent;if(e.isBindingPattern(m.name))return l(m.name);if(m.initializer||e.hasSyntacticModifier(m,1)||de.parent.kind===243)return Y(m);if(e.isVariableDeclarationList(m.parent)&&m.parent.declarations[0]!==m)return G(e.findPrecedingToken(m.pos,W,m.parent))}function k(m){return!!m.initializer||m.dotDotDotToken!==void 0||e.hasSyntacticModifier(m,12)}function I(m){if(e.isBindingPattern(m.name))return l(m.name);if(k(m))return g(m);var de=m.parent,ae=de.parameters.indexOf(m);return e.Debug.assert(ae!==-1),ae!==0?I(de.parameters[ae-1]):G(de.body)}function ne(m){return e.hasSyntacticModifier(m,1)||m.parent.kind===256&&m.kind!==170}function ee(m){if(!!m.body)return ne(m)?g(m):G(m.body)}function A(m){var de=m.statements.length?m.statements[0]:m.getLastToken();return ne(m.parent)?H(m.parent,de):G(de)}function f(m){switch(m.parent.kind){case 260:if(e.getModuleInstanceState(m.parent)!==1)return;case 240:case 238:case 242:return H(m.parent,m.statements[0]);case 241:case 243:return H(e.findPrecedingToken(m.pos,W,m.parent),m.statements[0])}return G(m.statements[0])}function P(m){if(m.initializer.kind===254){var de=m.initializer;if(de.declarations.length>0)return G(de.declarations[0])}else return G(m.initializer)}function D(m){if(m.initializer)return P(m);if(m.condition)return g(m.condition);if(m.incrementor)return g(m.incrementor)}function l(m){var de=e.forEach(m.elements,function(ae){return ae.kind!==226?ae:void 0});return de?G(de):m.parent.kind===202?g(m.parent):Y(m.parent)}function _(m){e.Debug.assert(m.kind!==201&&m.kind!==200);var de=m.kind===203?m.elements:m.properties,ae=e.forEach(de,function(V){return V.kind!==226?V:void 0});return ae?G(ae):g(m.parent.kind===220?m.parent:m)}function J(m){switch(m.parent.kind){case 259:var de=m.parent;return H(e.findPrecedingToken(m.pos,W,m.parent),de.members.length?de.members[0]:de.getLastToken(W));case 256:var ae=m.parent;return H(e.findPrecedingToken(m.pos,W,m.parent),ae.members.length?ae.members[0]:ae.getLastToken(W));case 262:return H(m.parent.parent,m.parent.clauses[0])}return G(m.parent)}function w(m){switch(m.parent.kind){case 261:if(e.getModuleInstanceState(m.parent.parent)!==1)return;case 259:case 256:return g(m);case 234:if(e.isFunctionBlock(m.parent))return g(m);case 291:return G(e.lastOrUndefined(m.parent.statements));case 262:var de=m.parent,ae=e.lastOrUndefined(de.clauses);return ae?G(e.lastOrUndefined(ae.statements)):void 0;case 200:var V=m.parent;return G(e.lastOrUndefined(V.elements)||V);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(m.parent)){var le=m.parent;return g(e.lastOrUndefined(le.properties)||le)}return G(m.parent)}}function j(m){switch(m.parent.kind){case 201:var de=m.parent;return g(e.lastOrUndefined(de.elements)||de);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(m.parent)){var ae=m.parent;return g(e.lastOrUndefined(ae.elements)||ae)}return G(m.parent)}}function U(m){return m.parent.kind===239||m.parent.kind===207||m.parent.kind===208?p(m):m.parent.kind===211?C(m):G(m.parent)}function z(m){switch(m.parent.kind){case 212:case 255:case 213:case 168:case 167:case 171:case 172:case 170:case 240:case 239:case 241:case 243:case 207:case 208:case 211:return p(m);default:return G(m.parent)}}function y(m){return e.isFunctionLike(m.parent)||m.parent.kind===294||m.parent.kind===163?p(m):G(m.parent)}function oe(m){return m.parent.kind===210?C(m):G(m.parent)}function ve(m){return m.parent.kind===239?S(m,m.parent.expression):G(m.parent)}function ce(m){return m.parent.kind===243?C(m):G(m.parent)}}}O.spanInSourceFileAtLocation=L})(a=e.BreakpointResolver||(e.BreakpointResolver={}))})(Pe||(Pe={}));var Pe;(function(e){function a(O,L,W){var N=[];W=e.fixupCompilerOptions(W,N);var Q=e.isArray(O)?O:[O],pe=e.transformNodes(void 0,void 0,e.factory,W,Q,L,!0);return pe.diagnostics=e.concatenate(pe.diagnostics,N),pe}e.transform=a})(Pe||(Pe={}));var ir=function(){return this}(),Pe;(function(e){function a(S,H){S&&S.log("*INTERNAL ERROR* - Exception in typescript services: "+H.message)}var O=void 0,L=void 0;e.LanguageServiceShimHostAdapter=L;var W=void 0;e.CoreServicesShimHostAdapter=W;var N=void 0;e.realizeDiagnostics=void 0;var Q=void 0,pe=void 0,F=void 0,g=void 0;e.TypeScriptServicesFactory=void 0})(Pe||(Pe={})),function(){return;try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,typeof globalThis>"u"&&(window.globalThis=window),delete Object.prototype.__magic__}catch{window.globalThis=window}}(),typeof te<"u"&&te.exports&&(te.exports=Pe);var Pe;(function(e){var a={since:"4.0",warnAfter:"4.1",message:"Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead."};e.createNodeArray=e.Debug.deprecate(e.factory.createNodeArray,a),e.createNumericLiteral=e.Debug.deprecate(e.factory.createNumericLiteral,a),e.createBigIntLiteral=e.Debug.deprecate(e.factory.createBigIntLiteral,a),e.createStringLiteral=e.Debug.deprecate(e.factory.createStringLiteral,a),e.createStringLiteralFromNode=e.Debug.deprecate(e.factory.createStringLiteralFromNode,a),e.createRegularExpressionLiteral=e.Debug.deprecate(e.factory.createRegularExpressionLiteral,a),e.createLoopVariable=e.Debug.deprecate(e.factory.createLoopVariable,a),e.createUniqueName=e.Debug.deprecate(e.factory.createUniqueName,a),e.createPrivateIdentifier=e.Debug.deprecate(e.factory.createPrivateIdentifier,a),e.createSuper=e.Debug.deprecate(e.factory.createSuper,a),e.createThis=e.Debug.deprecate(e.factory.createThis,a),e.createNull=e.Debug.deprecate(e.factory.createNull,a),e.createTrue=e.Debug.deprecate(e.factory.createTrue,a),e.createFalse=e.Debug.deprecate(e.factory.createFalse,a),e.createModifier=e.Debug.deprecate(e.factory.createModifier,a),e.createModifiersFromModifierFlags=e.Debug.deprecate(e.factory.createModifiersFromModifierFlags,a),e.createQualifiedName=e.Debug.deprecate(e.factory.createQualifiedName,a),e.updateQualifiedName=e.Debug.deprecate(e.factory.updateQualifiedName,a),e.createComputedPropertyName=e.Debug.deprecate(e.factory.createComputedPropertyName,a),e.updateComputedPropertyName=e.Debug.deprecate(e.factory.updateComputedPropertyName,a),e.createTypeParameterDeclaration=e.Debug.deprecate(e.factory.createTypeParameterDeclaration,a),e.updateTypeParameterDeclaration=e.Debug.deprecate(e.factory.updateTypeParameterDeclaration,a),e.createParameter=e.Debug.deprecate(e.factory.createParameterDeclaration,a),e.updateParameter=e.Debug.deprecate(e.factory.updateParameterDeclaration,a),e.createDecorator=e.Debug.deprecate(e.factory.createDecorator,a),e.updateDecorator=e.Debug.deprecate(e.factory.updateDecorator,a),e.createProperty=e.Debug.deprecate(e.factory.createPropertyDeclaration,a),e.updateProperty=e.Debug.deprecate(e.factory.updatePropertyDeclaration,a),e.createMethod=e.Debug.deprecate(e.factory.createMethodDeclaration,a),e.updateMethod=e.Debug.deprecate(e.factory.updateMethodDeclaration,a),e.createConstructor=e.Debug.deprecate(e.factory.createConstructorDeclaration,a),e.updateConstructor=e.Debug.deprecate(e.factory.updateConstructorDeclaration,a),e.createGetAccessor=e.Debug.deprecate(e.factory.createGetAccessorDeclaration,a),e.updateGetAccessor=e.Debug.deprecate(e.factory.updateGetAccessorDeclaration,a),e.createSetAccessor=e.Debug.deprecate(e.factory.createSetAccessorDeclaration,a),e.updateSetAccessor=e.Debug.deprecate(e.factory.updateSetAccessorDeclaration,a),e.createCallSignature=e.Debug.deprecate(e.factory.createCallSignature,a),e.updateCallSignature=e.Debug.deprecate(e.factory.updateCallSignature,a),e.createConstructSignature=e.Debug.deprecate(e.factory.createConstructSignature,a),e.updateConstructSignature=e.Debug.deprecate(e.factory.updateConstructSignature,a),e.updateIndexSignature=e.Debug.deprecate(e.factory.updateIndexSignature,a),e.createKeywordTypeNode=e.Debug.deprecate(e.factory.createKeywordTypeNode,a),e.createTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.createTypePredicateNode,a),e.updateTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.updateTypePredicateNode,a),e.createTypeReferenceNode=e.Debug.deprecate(e.factory.createTypeReferenceNode,a),e.updateTypeReferenceNode=e.Debug.deprecate(e.factory.updateTypeReferenceNode,a),e.createFunctionTypeNode=e.Debug.deprecate(e.factory.createFunctionTypeNode,a),e.updateFunctionTypeNode=e.Debug.deprecate(e.factory.updateFunctionTypeNode,a),e.createConstructorTypeNode=e.Debug.deprecate(function(O,L,W){return e.factory.createConstructorTypeNode(void 0,O,L,W)},a),e.updateConstructorTypeNode=e.Debug.deprecate(function(O,L,W,N){return e.factory.updateConstructorTypeNode(O,O.modifiers,L,W,N)},a),e.createTypeQueryNode=e.Debug.deprecate(e.factory.createTypeQueryNode,a),e.updateTypeQueryNode=e.Debug.deprecate(e.factory.updateTypeQueryNode,a),e.createTypeLiteralNode=e.Debug.deprecate(e.factory.createTypeLiteralNode,a),e.updateTypeLiteralNode=e.Debug.deprecate(e.factory.updateTypeLiteralNode,a),e.createArrayTypeNode=e.Debug.deprecate(e.factory.createArrayTypeNode,a),e.updateArrayTypeNode=e.Debug.deprecate(e.factory.updateArrayTypeNode,a),e.createTupleTypeNode=e.Debug.deprecate(e.factory.createTupleTypeNode,a),e.updateTupleTypeNode=e.Debug.deprecate(e.factory.updateTupleTypeNode,a),e.createOptionalTypeNode=e.Debug.deprecate(e.factory.createOptionalTypeNode,a),e.updateOptionalTypeNode=e.Debug.deprecate(e.factory.updateOptionalTypeNode,a),e.createRestTypeNode=e.Debug.deprecate(e.factory.createRestTypeNode,a),e.updateRestTypeNode=e.Debug.deprecate(e.factory.updateRestTypeNode,a),e.createUnionTypeNode=e.Debug.deprecate(e.factory.createUnionTypeNode,a),e.updateUnionTypeNode=e.Debug.deprecate(e.factory.updateUnionTypeNode,a),e.createIntersectionTypeNode=e.Debug.deprecate(e.factory.createIntersectionTypeNode,a),e.updateIntersectionTypeNode=e.Debug.deprecate(e.factory.updateIntersectionTypeNode,a),e.createConditionalTypeNode=e.Debug.deprecate(e.factory.createConditionalTypeNode,a),e.updateConditionalTypeNode=e.Debug.deprecate(e.factory.updateConditionalTypeNode,a),e.createInferTypeNode=e.Debug.deprecate(e.factory.createInferTypeNode,a),e.updateInferTypeNode=e.Debug.deprecate(e.factory.updateInferTypeNode,a),e.createImportTypeNode=e.Debug.deprecate(e.factory.createImportTypeNode,a),e.updateImportTypeNode=e.Debug.deprecate(e.factory.updateImportTypeNode,a),e.createParenthesizedType=e.Debug.deprecate(e.factory.createParenthesizedType,a),e.updateParenthesizedType=e.Debug.deprecate(e.factory.updateParenthesizedType,a),e.createThisTypeNode=e.Debug.deprecate(e.factory.createThisTypeNode,a),e.updateTypeOperatorNode=e.Debug.deprecate(e.factory.updateTypeOperatorNode,a),e.createIndexedAccessTypeNode=e.Debug.deprecate(e.factory.createIndexedAccessTypeNode,a),e.updateIndexedAccessTypeNode=e.Debug.deprecate(e.factory.updateIndexedAccessTypeNode,a),e.createMappedTypeNode=e.Debug.deprecate(e.factory.createMappedTypeNode,a),e.updateMappedTypeNode=e.Debug.deprecate(e.factory.updateMappedTypeNode,a),e.createLiteralTypeNode=e.Debug.deprecate(e.factory.createLiteralTypeNode,a),e.updateLiteralTypeNode=e.Debug.deprecate(e.factory.updateLiteralTypeNode,a),e.createObjectBindingPattern=e.Debug.deprecate(e.factory.createObjectBindingPattern,a),e.updateObjectBindingPattern=e.Debug.deprecate(e.factory.updateObjectBindingPattern,a),e.createArrayBindingPattern=e.Debug.deprecate(e.factory.createArrayBindingPattern,a),e.updateArrayBindingPattern=e.Debug.deprecate(e.factory.updateArrayBindingPattern,a),e.createBindingElement=e.Debug.deprecate(e.factory.createBindingElement,a),e.updateBindingElement=e.Debug.deprecate(e.factory.updateBindingElement,a),e.createArrayLiteral=e.Debug.deprecate(e.factory.createArrayLiteralExpression,a),e.updateArrayLiteral=e.Debug.deprecate(e.factory.updateArrayLiteralExpression,a),e.createObjectLiteral=e.Debug.deprecate(e.factory.createObjectLiteralExpression,a),e.updateObjectLiteral=e.Debug.deprecate(e.factory.updateObjectLiteralExpression,a),e.createPropertyAccess=e.Debug.deprecate(e.factory.createPropertyAccessExpression,a),e.updatePropertyAccess=e.Debug.deprecate(e.factory.updatePropertyAccessExpression,a),e.createPropertyAccessChain=e.Debug.deprecate(e.factory.createPropertyAccessChain,a),e.updatePropertyAccessChain=e.Debug.deprecate(e.factory.updatePropertyAccessChain,a),e.createElementAccess=e.Debug.deprecate(e.factory.createElementAccessExpression,a),e.updateElementAccess=e.Debug.deprecate(e.factory.updateElementAccessExpression,a),e.createElementAccessChain=e.Debug.deprecate(e.factory.createElementAccessChain,a),e.updateElementAccessChain=e.Debug.deprecate(e.factory.updateElementAccessChain,a),e.createCall=e.Debug.deprecate(e.factory.createCallExpression,a),e.updateCall=e.Debug.deprecate(e.factory.updateCallExpression,a),e.createCallChain=e.Debug.deprecate(e.factory.createCallChain,a),e.updateCallChain=e.Debug.deprecate(e.factory.updateCallChain,a),e.createNew=e.Debug.deprecate(e.factory.createNewExpression,a),e.updateNew=e.Debug.deprecate(e.factory.updateNewExpression,a),e.createTypeAssertion=e.Debug.deprecate(e.factory.createTypeAssertion,a),e.updateTypeAssertion=e.Debug.deprecate(e.factory.updateTypeAssertion,a),e.createParen=e.Debug.deprecate(e.factory.createParenthesizedExpression,a),e.updateParen=e.Debug.deprecate(e.factory.updateParenthesizedExpression,a),e.createFunctionExpression=e.Debug.deprecate(e.factory.createFunctionExpression,a),e.updateFunctionExpression=e.Debug.deprecate(e.factory.updateFunctionExpression,a),e.createDelete=e.Debug.deprecate(e.factory.createDeleteExpression,a),e.updateDelete=e.Debug.deprecate(e.factory.updateDeleteExpression,a),e.createTypeOf=e.Debug.deprecate(e.factory.createTypeOfExpression,a),e.updateTypeOf=e.Debug.deprecate(e.factory.updateTypeOfExpression,a),e.createVoid=e.Debug.deprecate(e.factory.createVoidExpression,a),e.updateVoid=e.Debug.deprecate(e.factory.updateVoidExpression,a),e.createAwait=e.Debug.deprecate(e.factory.createAwaitExpression,a),e.updateAwait=e.Debug.deprecate(e.factory.updateAwaitExpression,a),e.createPrefix=e.Debug.deprecate(e.factory.createPrefixUnaryExpression,a),e.updatePrefix=e.Debug.deprecate(e.factory.updatePrefixUnaryExpression,a),e.createPostfix=e.Debug.deprecate(e.factory.createPostfixUnaryExpression,a),e.updatePostfix=e.Debug.deprecate(e.factory.updatePostfixUnaryExpression,a),e.createBinary=e.Debug.deprecate(e.factory.createBinaryExpression,a),e.updateConditional=e.Debug.deprecate(e.factory.updateConditionalExpression,a),e.createTemplateExpression=e.Debug.deprecate(e.factory.createTemplateExpression,a),e.updateTemplateExpression=e.Debug.deprecate(e.factory.updateTemplateExpression,a),e.createTemplateHead=e.Debug.deprecate(e.factory.createTemplateHead,a),e.createTemplateMiddle=e.Debug.deprecate(e.factory.createTemplateMiddle,a),e.createTemplateTail=e.Debug.deprecate(e.factory.createTemplateTail,a),e.createNoSubstitutionTemplateLiteral=e.Debug.deprecate(e.factory.createNoSubstitutionTemplateLiteral,a),e.updateYield=e.Debug.deprecate(e.factory.updateYieldExpression,a),e.createSpread=e.Debug.deprecate(e.factory.createSpreadElement,a),e.updateSpread=e.Debug.deprecate(e.factory.updateSpreadElement,a),e.createOmittedExpression=e.Debug.deprecate(e.factory.createOmittedExpression,a),e.createAsExpression=e.Debug.deprecate(e.factory.createAsExpression,a),e.updateAsExpression=e.Debug.deprecate(e.factory.updateAsExpression,a),e.createNonNullExpression=e.Debug.deprecate(e.factory.createNonNullExpression,a),e.updateNonNullExpression=e.Debug.deprecate(e.factory.updateNonNullExpression,a),e.createNonNullChain=e.Debug.deprecate(e.factory.createNonNullChain,a),e.updateNonNullChain=e.Debug.deprecate(e.factory.updateNonNullChain,a),e.createMetaProperty=e.Debug.deprecate(e.factory.createMetaProperty,a),e.updateMetaProperty=e.Debug.deprecate(e.factory.updateMetaProperty,a),e.createTemplateSpan=e.Debug.deprecate(e.factory.createTemplateSpan,a),e.updateTemplateSpan=e.Debug.deprecate(e.factory.updateTemplateSpan,a),e.createSemicolonClassElement=e.Debug.deprecate(e.factory.createSemicolonClassElement,a),e.createBlock=e.Debug.deprecate(e.factory.createBlock,a),e.updateBlock=e.Debug.deprecate(e.factory.updateBlock,a),e.createVariableStatement=e.Debug.deprecate(e.factory.createVariableStatement,a),e.updateVariableStatement=e.Debug.deprecate(e.factory.updateVariableStatement,a),e.createEmptyStatement=e.Debug.deprecate(e.factory.createEmptyStatement,a),e.createExpressionStatement=e.Debug.deprecate(e.factory.createExpressionStatement,a),e.updateExpressionStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,a),e.createStatement=e.Debug.deprecate(e.factory.createExpressionStatement,a),e.updateStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,a),e.createIf=e.Debug.deprecate(e.factory.createIfStatement,a),e.updateIf=e.Debug.deprecate(e.factory.updateIfStatement,a),e.createDo=e.Debug.deprecate(e.factory.createDoStatement,a),e.updateDo=e.Debug.deprecate(e.factory.updateDoStatement,a),e.createWhile=e.Debug.deprecate(e.factory.createWhileStatement,a),e.updateWhile=e.Debug.deprecate(e.factory.updateWhileStatement,a),e.createFor=e.Debug.deprecate(e.factory.createForStatement,a),e.updateFor=e.Debug.deprecate(e.factory.updateForStatement,a),e.createForIn=e.Debug.deprecate(e.factory.createForInStatement,a),e.updateForIn=e.Debug.deprecate(e.factory.updateForInStatement,a),e.createForOf=e.Debug.deprecate(e.factory.createForOfStatement,a),e.updateForOf=e.Debug.deprecate(e.factory.updateForOfStatement,a),e.createContinue=e.Debug.deprecate(e.factory.createContinueStatement,a),e.updateContinue=e.Debug.deprecate(e.factory.updateContinueStatement,a),e.createBreak=e.Debug.deprecate(e.factory.createBreakStatement,a),e.updateBreak=e.Debug.deprecate(e.factory.updateBreakStatement,a),e.createReturn=e.Debug.deprecate(e.factory.createReturnStatement,a),e.updateReturn=e.Debug.deprecate(e.factory.updateReturnStatement,a),e.createWith=e.Debug.deprecate(e.factory.createWithStatement,a),e.updateWith=e.Debug.deprecate(e.factory.updateWithStatement,a),e.createSwitch=e.Debug.deprecate(e.factory.createSwitchStatement,a),e.updateSwitch=e.Debug.deprecate(e.factory.updateSwitchStatement,a),e.createLabel=e.Debug.deprecate(e.factory.createLabeledStatement,a),e.updateLabel=e.Debug.deprecate(e.factory.updateLabeledStatement,a),e.createThrow=e.Debug.deprecate(e.factory.createThrowStatement,a),e.updateThrow=e.Debug.deprecate(e.factory.updateThrowStatement,a),e.createTry=e.Debug.deprecate(e.factory.createTryStatement,a),e.updateTry=e.Debug.deprecate(e.factory.updateTryStatement,a),e.createDebuggerStatement=e.Debug.deprecate(e.factory.createDebuggerStatement,a),e.createVariableDeclarationList=e.Debug.deprecate(e.factory.createVariableDeclarationList,a),e.updateVariableDeclarationList=e.Debug.deprecate(e.factory.updateVariableDeclarationList,a),e.createFunctionDeclaration=e.Debug.deprecate(e.factory.createFunctionDeclaration,a),e.updateFunctionDeclaration=e.Debug.deprecate(e.factory.updateFunctionDeclaration,a),e.createClassDeclaration=e.Debug.deprecate(e.factory.createClassDeclaration,a),e.updateClassDeclaration=e.Debug.deprecate(e.factory.updateClassDeclaration,a),e.createInterfaceDeclaration=e.Debug.deprecate(e.factory.createInterfaceDeclaration,a),e.updateInterfaceDeclaration=e.Debug.deprecate(e.factory.updateInterfaceDeclaration,a),e.createTypeAliasDeclaration=e.Debug.deprecate(e.factory.createTypeAliasDeclaration,a),e.updateTypeAliasDeclaration=e.Debug.deprecate(e.factory.updateTypeAliasDeclaration,a),e.createEnumDeclaration=e.Debug.deprecate(e.factory.createEnumDeclaration,a),e.updateEnumDeclaration=e.Debug.deprecate(e.factory.updateEnumDeclaration,a),e.createModuleDeclaration=e.Debug.deprecate(e.factory.createModuleDeclaration,a),e.updateModuleDeclaration=e.Debug.deprecate(e.factory.updateModuleDeclaration,a),e.createModuleBlock=e.Debug.deprecate(e.factory.createModuleBlock,a),e.updateModuleBlock=e.Debug.deprecate(e.factory.updateModuleBlock,a),e.createCaseBlock=e.Debug.deprecate(e.factory.createCaseBlock,a),e.updateCaseBlock=e.Debug.deprecate(e.factory.updateCaseBlock,a),e.createNamespaceExportDeclaration=e.Debug.deprecate(e.factory.createNamespaceExportDeclaration,a),e.updateNamespaceExportDeclaration=e.Debug.deprecate(e.factory.updateNamespaceExportDeclaration,a),e.createImportEqualsDeclaration=e.Debug.deprecate(e.factory.createImportEqualsDeclaration,a),e.updateImportEqualsDeclaration=e.Debug.deprecate(e.factory.updateImportEqualsDeclaration,a),e.createImportDeclaration=e.Debug.deprecate(e.factory.createImportDeclaration,a),e.updateImportDeclaration=e.Debug.deprecate(e.factory.updateImportDeclaration,a),e.createNamespaceImport=e.Debug.deprecate(e.factory.createNamespaceImport,a),e.updateNamespaceImport=e.Debug.deprecate(e.factory.updateNamespaceImport,a),e.createNamedImports=e.Debug.deprecate(e.factory.createNamedImports,a),e.updateNamedImports=e.Debug.deprecate(e.factory.updateNamedImports,a),e.createImportSpecifier=e.Debug.deprecate(e.factory.createImportSpecifier,a),e.updateImportSpecifier=e.Debug.deprecate(e.factory.updateImportSpecifier,a),e.createExportAssignment=e.Debug.deprecate(e.factory.createExportAssignment,a),e.updateExportAssignment=e.Debug.deprecate(e.factory.updateExportAssignment,a),e.createNamedExports=e.Debug.deprecate(e.factory.createNamedExports,a),e.updateNamedExports=e.Debug.deprecate(e.factory.updateNamedExports,a),e.createExportSpecifier=e.Debug.deprecate(e.factory.createExportSpecifier,a),e.updateExportSpecifier=e.Debug.deprecate(e.factory.updateExportSpecifier,a),e.createExternalModuleReference=e.Debug.deprecate(e.factory.createExternalModuleReference,a),e.updateExternalModuleReference=e.Debug.deprecate(e.factory.updateExternalModuleReference,a),e.createJSDocTypeExpression=e.Debug.deprecate(e.factory.createJSDocTypeExpression,a),e.createJSDocTypeTag=e.Debug.deprecate(e.factory.createJSDocTypeTag,a),e.createJSDocReturnTag=e.Debug.deprecate(e.factory.createJSDocReturnTag,a),e.createJSDocThisTag=e.Debug.deprecate(e.factory.createJSDocThisTag,a),e.createJSDocComment=e.Debug.deprecate(e.factory.createJSDocComment,a),e.createJSDocParameterTag=e.Debug.deprecate(e.factory.createJSDocParameterTag,a),e.createJSDocClassTag=e.Debug.deprecate(e.factory.createJSDocClassTag,a),e.createJSDocAugmentsTag=e.Debug.deprecate(e.factory.createJSDocAugmentsTag,a),e.createJSDocEnumTag=e.Debug.deprecate(e.factory.createJSDocEnumTag,a),e.createJSDocTemplateTag=e.Debug.deprecate(e.factory.createJSDocTemplateTag,a),e.createJSDocTypedefTag=e.Debug.deprecate(e.factory.createJSDocTypedefTag,a),e.createJSDocCallbackTag=e.Debug.deprecate(e.factory.createJSDocCallbackTag,a),e.createJSDocSignature=e.Debug.deprecate(e.factory.createJSDocSignature,a),e.createJSDocPropertyTag=e.Debug.deprecate(e.factory.createJSDocPropertyTag,a),e.createJSDocTypeLiteral=e.Debug.deprecate(e.factory.createJSDocTypeLiteral,a),e.createJSDocImplementsTag=e.Debug.deprecate(e.factory.createJSDocImplementsTag,a),e.createJSDocAuthorTag=e.Debug.deprecate(e.factory.createJSDocAuthorTag,a),e.createJSDocPublicTag=e.Debug.deprecate(e.factory.createJSDocPublicTag,a),e.createJSDocPrivateTag=e.Debug.deprecate(e.factory.createJSDocPrivateTag,a),e.createJSDocProtectedTag=e.Debug.deprecate(e.factory.createJSDocProtectedTag,a),e.createJSDocReadonlyTag=e.Debug.deprecate(e.factory.createJSDocReadonlyTag,a),e.createJSDocTag=e.Debug.deprecate(e.factory.createJSDocUnknownTag,a),e.createJsxElement=e.Debug.deprecate(e.factory.createJsxElement,a),e.updateJsxElement=e.Debug.deprecate(e.factory.updateJsxElement,a),e.createJsxSelfClosingElement=e.Debug.deprecate(e.factory.createJsxSelfClosingElement,a),e.updateJsxSelfClosingElement=e.Debug.deprecate(e.factory.updateJsxSelfClosingElement,a),e.createJsxOpeningElement=e.Debug.deprecate(e.factory.createJsxOpeningElement,a),e.updateJsxOpeningElement=e.Debug.deprecate(e.factory.updateJsxOpeningElement,a),e.createJsxClosingElement=e.Debug.deprecate(e.factory.createJsxClosingElement,a),e.updateJsxClosingElement=e.Debug.deprecate(e.factory.updateJsxClosingElement,a),e.createJsxFragment=e.Debug.deprecate(e.factory.createJsxFragment,a),e.createJsxText=e.Debug.deprecate(e.factory.createJsxText,a),e.updateJsxText=e.Debug.deprecate(e.factory.updateJsxText,a),e.createJsxOpeningFragment=e.Debug.deprecate(e.factory.createJsxOpeningFragment,a),e.createJsxJsxClosingFragment=e.Debug.deprecate(e.factory.createJsxJsxClosingFragment,a),e.updateJsxFragment=e.Debug.deprecate(e.factory.updateJsxFragment,a),e.createJsxAttribute=e.Debug.deprecate(e.factory.createJsxAttribute,a),e.updateJsxAttribute=e.Debug.deprecate(e.factory.updateJsxAttribute,a),e.createJsxAttributes=e.Debug.deprecate(e.factory.createJsxAttributes,a),e.updateJsxAttributes=e.Debug.deprecate(e.factory.updateJsxAttributes,a),e.createJsxSpreadAttribute=e.Debug.deprecate(e.factory.createJsxSpreadAttribute,a),e.updateJsxSpreadAttribute=e.Debug.deprecate(e.factory.updateJsxSpreadAttribute,a),e.createJsxExpression=e.Debug.deprecate(e.factory.createJsxExpression,a),e.updateJsxExpression=e.Debug.deprecate(e.factory.updateJsxExpression,a),e.createCaseClause=e.Debug.deprecate(e.factory.createCaseClause,a),e.updateCaseClause=e.Debug.deprecate(e.factory.updateCaseClause,a),e.createDefaultClause=e.Debug.deprecate(e.factory.createDefaultClause,a),e.updateDefaultClause=e.Debug.deprecate(e.factory.updateDefaultClause,a),e.createHeritageClause=e.Debug.deprecate(e.factory.createHeritageClause,a),e.updateHeritageClause=e.Debug.deprecate(e.factory.updateHeritageClause,a),e.createCatchClause=e.Debug.deprecate(e.factory.createCatchClause,a),e.updateCatchClause=e.Debug.deprecate(e.factory.updateCatchClause,a),e.createPropertyAssignment=e.Debug.deprecate(e.factory.createPropertyAssignment,a),e.updatePropertyAssignment=e.Debug.deprecate(e.factory.updatePropertyAssignment,a),e.createShorthandPropertyAssignment=e.Debug.deprecate(e.factory.createShorthandPropertyAssignment,a),e.updateShorthandPropertyAssignment=e.Debug.deprecate(e.factory.updateShorthandPropertyAssignment,a),e.createSpreadAssignment=e.Debug.deprecate(e.factory.createSpreadAssignment,a),e.updateSpreadAssignment=e.Debug.deprecate(e.factory.updateSpreadAssignment,a),e.createEnumMember=e.Debug.deprecate(e.factory.createEnumMember,a),e.updateEnumMember=e.Debug.deprecate(e.factory.updateEnumMember,a),e.updateSourceFileNode=e.Debug.deprecate(e.factory.updateSourceFile,a),e.createNotEmittedStatement=e.Debug.deprecate(e.factory.createNotEmittedStatement,a),e.createPartiallyEmittedExpression=e.Debug.deprecate(e.factory.createPartiallyEmittedExpression,a),e.updatePartiallyEmittedExpression=e.Debug.deprecate(e.factory.updatePartiallyEmittedExpression,a),e.createCommaList=e.Debug.deprecate(e.factory.createCommaListExpression,a),e.updateCommaList=e.Debug.deprecate(e.factory.updateCommaListExpression,a),e.createBundle=e.Debug.deprecate(e.factory.createBundle,a),e.updateBundle=e.Debug.deprecate(e.factory.updateBundle,a),e.createImmediatelyInvokedFunctionExpression=e.Debug.deprecate(e.factory.createImmediatelyInvokedFunctionExpression,a),e.createImmediatelyInvokedArrowFunction=e.Debug.deprecate(e.factory.createImmediatelyInvokedArrowFunction,a),e.createVoidZero=e.Debug.deprecate(e.factory.createVoidZero,a),e.createExportDefault=e.Debug.deprecate(e.factory.createExportDefault,a),e.createExternalModuleExport=e.Debug.deprecate(e.factory.createExternalModuleExport,a),e.createNamespaceExport=e.Debug.deprecate(e.factory.createNamespaceExport,a),e.updateNamespaceExport=e.Debug.deprecate(e.factory.updateNamespaceExport,a),e.createToken=e.Debug.deprecate(function(L){return e.factory.createToken(L)},a),e.createIdentifier=e.Debug.deprecate(function(L){return e.factory.createIdentifier(L,void 0,void 0)},a),e.createTempVariable=e.Debug.deprecate(function(L){return e.factory.createTempVariable(L,void 0)},a),e.getGeneratedNameForNode=e.Debug.deprecate(function(L){return e.factory.getGeneratedNameForNode(L,void 0)},a),e.createOptimisticUniqueName=e.Debug.deprecate(function(L){return e.factory.createUniqueName(L,16)},a),e.createFileLevelUniqueName=e.Debug.deprecate(function(L){return e.factory.createUniqueName(L,48)},a),e.createIndexSignature=e.Debug.deprecate(function(L,W,N,Q){return e.factory.createIndexSignature(L,W,N,Q)},a),e.createTypePredicateNode=e.Debug.deprecate(function(L,W){return e.factory.createTypePredicateNode(void 0,L,W)},a),e.updateTypePredicateNode=e.Debug.deprecate(function(L,W,N){return e.factory.updateTypePredicateNode(L,void 0,W,N)},a),e.createLiteral=e.Debug.deprecate(function(L){return typeof L=="number"?e.factory.createNumericLiteral(L):typeof L=="object"&&"base10Value"in L?e.factory.createBigIntLiteral(L):typeof L=="boolean"?L?e.factory.createTrue():e.factory.createFalse():typeof L=="string"?e.factory.createStringLiteral(L,void 0):e.factory.createStringLiteralFromNode(L)},{since:"4.0",warnAfter:"4.1",message:"Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead."}),e.createMethodSignature=e.Debug.deprecate(function(L,W,N,Q,pe){return e.factory.createMethodSignature(void 0,Q,pe,L,W,N)},a),e.updateMethodSignature=e.Debug.deprecate(function(L,W,N,Q,pe,F){return e.factory.updateMethodSignature(L,L.modifiers,pe,F,W,N,Q)},a),e.createTypeOperatorNode=e.Debug.deprecate(function(L,W){var N;return W?N=L:(W=L,N=140),e.factory.createTypeOperatorNode(N,W)},a),e.createTaggedTemplate=e.Debug.deprecate(function(L,W,N){var Q;return N?Q=W:N=W,e.factory.createTaggedTemplateExpression(L,Q,N)},a),e.updateTaggedTemplate=e.Debug.deprecate(function(L,W,N,Q){var pe;return Q?pe=N:Q=N,e.factory.updateTaggedTemplateExpression(L,W,pe,Q)},a),e.updateBinary=e.Debug.deprecate(function(L,W,N,Q){return Q===void 0&&(Q=L.operatorToken),typeof Q=="number"&&(Q=Q===L.operatorToken.kind?L.operatorToken:e.factory.createToken(Q)),e.factory.updateBinaryExpression(L,W,Q,N)},a),e.createConditional=e.Debug.deprecate(function(L,W,N,Q,pe){return arguments.length===5?e.factory.createConditionalExpression(L,W,N,Q,pe):arguments.length===3?e.factory.createConditionalExpression(L,e.factory.createToken(57),W,e.factory.createToken(58),N):e.Debug.fail("Argument count mismatch")},a),e.createYield=e.Debug.deprecate(function(L,W){var N;return W?N=L:W=L,e.factory.createYieldExpression(N,W)},a),e.createClassExpression=e.Debug.deprecate(function(L,W,N,Q,pe){return e.factory.createClassExpression(void 0,L,W,N,Q,pe)},a),e.updateClassExpression=e.Debug.deprecate(function(L,W,N,Q,pe,F){return e.factory.updateClassExpression(L,void 0,W,N,Q,pe,F)},a),e.createPropertySignature=e.Debug.deprecate(function(L,W,N,Q,pe){var F=e.factory.createPropertySignature(L,W,N,Q);return F.initializer=pe,F},a),e.updatePropertySignature=e.Debug.deprecate(function(L,W,N,Q,pe,F){var g=e.factory.updatePropertySignature(L,W,N,Q,pe);return L.initializer!==F&&(g===L&&(g=e.factory.cloneNode(L)),g.initializer=F),g},a),e.createExpressionWithTypeArguments=e.Debug.deprecate(function(L,W){return e.factory.createExpressionWithTypeArguments(W,L)},a),e.updateExpressionWithTypeArguments=e.Debug.deprecate(function(L,W,N){return e.factory.updateExpressionWithTypeArguments(L,N,W)},a),e.createArrowFunction=e.Debug.deprecate(function(L,W,N,Q,pe,F){return arguments.length===6?e.factory.createArrowFunction(L,W,N,Q,pe,F):arguments.length===5?e.factory.createArrowFunction(L,W,N,Q,void 0,pe):e.Debug.fail("Argument count mismatch")},a),e.updateArrowFunction=e.Debug.deprecate(function(L,W,N,Q,pe,F,g){return arguments.length===7?e.factory.updateArrowFunction(L,W,N,Q,pe,F,g):arguments.length===6?e.factory.updateArrowFunction(L,W,N,Q,pe,L.equalsGreaterThanToken,F):e.Debug.fail("Argument count mismatch")},a),e.createVariableDeclaration=e.Debug.deprecate(function(L,W,N,Q){return arguments.length===4?e.factory.createVariableDeclaration(L,W,N,Q):arguments.length>=1&&arguments.length<=3?e.factory.createVariableDeclaration(L,void 0,W,N):e.Debug.fail("Argument count mismatch")},a),e.updateVariableDeclaration=e.Debug.deprecate(function(L,W,N,Q,pe){return arguments.length===5?e.factory.updateVariableDeclaration(L,W,N,Q,pe):arguments.length===4?e.factory.updateVariableDeclaration(L,W,L.exclamationToken,N,Q):e.Debug.fail("Argument count mismatch")},a),e.createImportClause=e.Debug.deprecate(function(L,W,N){return N===void 0&&(N=!1),e.factory.createImportClause(N,L,W)},a),e.updateImportClause=e.Debug.deprecate(function(L,W,N,Q){return e.factory.updateImportClause(L,Q,W,N)},a),e.createExportDeclaration=e.Debug.deprecate(function(L,W,N,Q,pe){return pe===void 0&&(pe=!1),e.factory.createExportDeclaration(L,W,pe,N,Q)},a),e.updateExportDeclaration=e.Debug.deprecate(function(L,W,N,Q,pe,F){return e.factory.updateExportDeclaration(L,W,N,F,Q,pe,L.assertClause)},a),e.createJSDocParamTag=e.Debug.deprecate(function(L,W,N,Q){return e.factory.createJSDocParameterTag(void 0,L,W,N,!1,Q?e.factory.createNodeArray([e.factory.createJSDocText(Q)]):void 0)},a),e.createComma=e.Debug.deprecate(function(L,W){return e.factory.createComma(L,W)},a),e.createLessThan=e.Debug.deprecate(function(L,W){return e.factory.createLessThan(L,W)},a),e.createAssignment=e.Debug.deprecate(function(L,W){return e.factory.createAssignment(L,W)},a),e.createStrictEquality=e.Debug.deprecate(function(L,W){return e.factory.createStrictEquality(L,W)},a),e.createStrictInequality=e.Debug.deprecate(function(L,W){return e.factory.createStrictInequality(L,W)},a),e.createAdd=e.Debug.deprecate(function(L,W){return e.factory.createAdd(L,W)},a),e.createSubtract=e.Debug.deprecate(function(L,W){return e.factory.createSubtract(L,W)},a),e.createLogicalAnd=e.Debug.deprecate(function(L,W){return e.factory.createLogicalAnd(L,W)},a),e.createLogicalOr=e.Debug.deprecate(function(L,W){return e.factory.createLogicalOr(L,W)},a),e.createPostfixIncrement=e.Debug.deprecate(function(L){return e.factory.createPostfixIncrement(L)},a),e.createLogicalNot=e.Debug.deprecate(function(L){return e.factory.createLogicalNot(L)},a),e.createNode=e.Debug.deprecate(function(L,W,N){return W===void 0&&(W=0),N===void 0&&(N=0),e.setTextRangePosEnd(L===303?e.parseBaseNodeFactory.createBaseSourceFileNode(L):L===79?e.parseBaseNodeFactory.createBaseIdentifierNode(L):L===80?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(L):e.isNodeKind(L)?e.parseBaseNodeFactory.createBaseNode(L):e.parseBaseNodeFactory.createBaseTokenNode(L),W,N)},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate(function(L){var W=e.factory.cloneNode(L);return e.setTextRange(W,L),e.setParent(W,L.parent),W},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`."}),e.isTypeAssertion=e.Debug.deprecate(function(L){return L.kind===210},{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."}),e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate(function(L){return e.isMemberName(L)},{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})})(Pe||(Pe={}))}}),EN=Aa({"node_modules/@typescript-eslint/types/dist/generated/ast-spec.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.AST_TOKEN_TYPES=R.AST_NODE_TYPES=void 0;var te;(function(Ve){Ve.ArrayExpression="ArrayExpression",Ve.ArrayPattern="ArrayPattern",Ve.ArrowFunctionExpression="ArrowFunctionExpression",Ve.AssignmentExpression="AssignmentExpression",Ve.AssignmentPattern="AssignmentPattern",Ve.AwaitExpression="AwaitExpression",Ve.BinaryExpression="BinaryExpression",Ve.BlockStatement="BlockStatement",Ve.BreakStatement="BreakStatement",Ve.CallExpression="CallExpression",Ve.CatchClause="CatchClause",Ve.ChainExpression="ChainExpression",Ve.ClassBody="ClassBody",Ve.ClassDeclaration="ClassDeclaration",Ve.ClassExpression="ClassExpression",Ve.ConditionalExpression="ConditionalExpression",Ve.ContinueStatement="ContinueStatement",Ve.DebuggerStatement="DebuggerStatement",Ve.Decorator="Decorator",Ve.DoWhileStatement="DoWhileStatement",Ve.EmptyStatement="EmptyStatement",Ve.ExportAllDeclaration="ExportAllDeclaration",Ve.ExportDefaultDeclaration="ExportDefaultDeclaration",Ve.ExportNamedDeclaration="ExportNamedDeclaration",Ve.ExportSpecifier="ExportSpecifier",Ve.ExpressionStatement="ExpressionStatement",Ve.ForInStatement="ForInStatement",Ve.ForOfStatement="ForOfStatement",Ve.ForStatement="ForStatement",Ve.FunctionDeclaration="FunctionDeclaration",Ve.FunctionExpression="FunctionExpression",Ve.Identifier="Identifier",Ve.IfStatement="IfStatement",Ve.ImportAttribute="ImportAttribute",Ve.ImportDeclaration="ImportDeclaration",Ve.ImportDefaultSpecifier="ImportDefaultSpecifier",Ve.ImportExpression="ImportExpression",Ve.ImportNamespaceSpecifier="ImportNamespaceSpecifier",Ve.ImportSpecifier="ImportSpecifier",Ve.JSXAttribute="JSXAttribute",Ve.JSXClosingElement="JSXClosingElement",Ve.JSXClosingFragment="JSXClosingFragment",Ve.JSXElement="JSXElement",Ve.JSXEmptyExpression="JSXEmptyExpression",Ve.JSXExpressionContainer="JSXExpressionContainer",Ve.JSXFragment="JSXFragment",Ve.JSXIdentifier="JSXIdentifier",Ve.JSXMemberExpression="JSXMemberExpression",Ve.JSXNamespacedName="JSXNamespacedName",Ve.JSXOpeningElement="JSXOpeningElement",Ve.JSXOpeningFragment="JSXOpeningFragment",Ve.JSXSpreadAttribute="JSXSpreadAttribute",Ve.JSXSpreadChild="JSXSpreadChild",Ve.JSXText="JSXText",Ve.LabeledStatement="LabeledStatement",Ve.Literal="Literal",Ve.LogicalExpression="LogicalExpression",Ve.MemberExpression="MemberExpression",Ve.MetaProperty="MetaProperty",Ve.MethodDefinition="MethodDefinition",Ve.NewExpression="NewExpression",Ve.ObjectExpression="ObjectExpression",Ve.ObjectPattern="ObjectPattern",Ve.PrivateIdentifier="PrivateIdentifier",Ve.Program="Program",Ve.Property="Property",Ve.PropertyDefinition="PropertyDefinition",Ve.RestElement="RestElement",Ve.ReturnStatement="ReturnStatement",Ve.SequenceExpression="SequenceExpression",Ve.SpreadElement="SpreadElement",Ve.StaticBlock="StaticBlock",Ve.Super="Super",Ve.SwitchCase="SwitchCase",Ve.SwitchStatement="SwitchStatement",Ve.TaggedTemplateExpression="TaggedTemplateExpression",Ve.TemplateElement="TemplateElement",Ve.TemplateLiteral="TemplateLiteral",Ve.ThisExpression="ThisExpression",Ve.ThrowStatement="ThrowStatement",Ve.TryStatement="TryStatement",Ve.UnaryExpression="UnaryExpression",Ve.UpdateExpression="UpdateExpression",Ve.VariableDeclaration="VariableDeclaration",Ve.VariableDeclarator="VariableDeclarator",Ve.WhileStatement="WhileStatement",Ve.WithStatement="WithStatement",Ve.YieldExpression="YieldExpression",Ve.TSAbstractKeyword="TSAbstractKeyword",Ve.TSAbstractMethodDefinition="TSAbstractMethodDefinition",Ve.TSAbstractPropertyDefinition="TSAbstractPropertyDefinition",Ve.TSAnyKeyword="TSAnyKeyword",Ve.TSArrayType="TSArrayType",Ve.TSAsExpression="TSAsExpression",Ve.TSAsyncKeyword="TSAsyncKeyword",Ve.TSBigIntKeyword="TSBigIntKeyword",Ve.TSBooleanKeyword="TSBooleanKeyword",Ve.TSCallSignatureDeclaration="TSCallSignatureDeclaration",Ve.TSClassImplements="TSClassImplements",Ve.TSConditionalType="TSConditionalType",Ve.TSConstructorType="TSConstructorType",Ve.TSConstructSignatureDeclaration="TSConstructSignatureDeclaration",Ve.TSDeclareFunction="TSDeclareFunction",Ve.TSDeclareKeyword="TSDeclareKeyword",Ve.TSEmptyBodyFunctionExpression="TSEmptyBodyFunctionExpression",Ve.TSEnumDeclaration="TSEnumDeclaration",Ve.TSEnumMember="TSEnumMember",Ve.TSExportAssignment="TSExportAssignment",Ve.TSExportKeyword="TSExportKeyword",Ve.TSExternalModuleReference="TSExternalModuleReference",Ve.TSFunctionType="TSFunctionType",Ve.TSImportEqualsDeclaration="TSImportEqualsDeclaration",Ve.TSImportType="TSImportType",Ve.TSIndexedAccessType="TSIndexedAccessType",Ve.TSIndexSignature="TSIndexSignature",Ve.TSInferType="TSInferType",Ve.TSInterfaceBody="TSInterfaceBody",Ve.TSInterfaceDeclaration="TSInterfaceDeclaration",Ve.TSInterfaceHeritage="TSInterfaceHeritage",Ve.TSIntersectionType="TSIntersectionType",Ve.TSIntrinsicKeyword="TSIntrinsicKeyword",Ve.TSLiteralType="TSLiteralType",Ve.TSMappedType="TSMappedType",Ve.TSMethodSignature="TSMethodSignature",Ve.TSModuleBlock="TSModuleBlock",Ve.TSModuleDeclaration="TSModuleDeclaration",Ve.TSNamedTupleMember="TSNamedTupleMember",Ve.TSNamespaceExportDeclaration="TSNamespaceExportDeclaration",Ve.TSNeverKeyword="TSNeverKeyword",Ve.TSNonNullExpression="TSNonNullExpression",Ve.TSNullKeyword="TSNullKeyword",Ve.TSNumberKeyword="TSNumberKeyword",Ve.TSObjectKeyword="TSObjectKeyword",Ve.TSOptionalType="TSOptionalType",Ve.TSParameterProperty="TSParameterProperty",Ve.TSPrivateKeyword="TSPrivateKeyword",Ve.TSPropertySignature="TSPropertySignature",Ve.TSProtectedKeyword="TSProtectedKeyword",Ve.TSPublicKeyword="TSPublicKeyword",Ve.TSQualifiedName="TSQualifiedName",Ve.TSReadonlyKeyword="TSReadonlyKeyword",Ve.TSRestType="TSRestType",Ve.TSStaticKeyword="TSStaticKeyword",Ve.TSStringKeyword="TSStringKeyword",Ve.TSSymbolKeyword="TSSymbolKeyword",Ve.TSTemplateLiteralType="TSTemplateLiteralType",Ve.TSThisType="TSThisType",Ve.TSTupleType="TSTupleType",Ve.TSTypeAliasDeclaration="TSTypeAliasDeclaration",Ve.TSTypeAnnotation="TSTypeAnnotation",Ve.TSTypeAssertion="TSTypeAssertion",Ve.TSTypeLiteral="TSTypeLiteral",Ve.TSTypeOperator="TSTypeOperator",Ve.TSTypeParameter="TSTypeParameter",Ve.TSTypeParameterDeclaration="TSTypeParameterDeclaration",Ve.TSTypeParameterInstantiation="TSTypeParameterInstantiation",Ve.TSTypePredicate="TSTypePredicate",Ve.TSTypeQuery="TSTypeQuery",Ve.TSTypeReference="TSTypeReference",Ve.TSUndefinedKeyword="TSUndefinedKeyword",Ve.TSUnionType="TSUnionType",Ve.TSUnknownKeyword="TSUnknownKeyword",Ve.TSVoidKeyword="TSVoidKeyword"})(te=R.AST_NODE_TYPES||(R.AST_NODE_TYPES={}));var qe;(function(Ve){Ve.Boolean="Boolean",Ve.Identifier="Identifier",Ve.JSXIdentifier="JSXIdentifier",Ve.JSXText="JSXText",Ve.Keyword="Keyword",Ve.Null="Null",Ve.Numeric="Numeric",Ve.Punctuator="Punctuator",Ve.RegularExpression="RegularExpression",Ve.String="String",Ve.Template="Template",Ve.Block="Block",Ve.Line="Line"})(qe=R.AST_TOKEN_TYPES||(R.AST_TOKEN_TYPES={}))}}),qj=Aa({"node_modules/@typescript-eslint/types/dist/lib.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0})}}),Vj=Aa({"node_modules/@typescript-eslint/types/dist/parser-options.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0})}}),Kj=Aa({"node_modules/@typescript-eslint/types/dist/ts-estree.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(ni,wr,fr,Mr){Mr===void 0&&(Mr=fr);var ir=Object.getOwnPropertyDescriptor(wr,fr);(!ir||("get"in ir?!wr.__esModule:ir.writable||ir.configurable))&&(ir={enumerable:!0,get:function(){return wr[fr]}}),Object.defineProperty(ni,Mr,ir)}:function(ni,wr,fr,Mr){Mr===void 0&&(Mr=fr),ni[Mr]=wr[fr]}),qe=R&&R.__setModuleDefault||(Object.create?function(ni,wr){Object.defineProperty(ni,"default",{enumerable:!0,value:wr})}:function(ni,wr){ni.default=wr}),Ve=R&&R.__importStar||function(ni){if(ni&&ni.__esModule)return ni;var wr={};if(ni!=null)for(var fr in ni)fr!=="default"&&Object.prototype.hasOwnProperty.call(ni,fr)&&te(wr,ni,fr);return qe(wr,ni),wr};Object.defineProperty(R,"__esModule",{value:!0}),R.TSESTree=void 0,R.TSESTree=Ve(EN())}}),CN=Aa({"node_modules/@typescript-eslint/types/dist/index.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(ni,wr,fr,Mr){Mr===void 0&&(Mr=fr);var ir=Object.getOwnPropertyDescriptor(wr,fr);(!ir||("get"in ir?!wr.__esModule:ir.writable||ir.configurable))&&(ir={enumerable:!0,get:function(){return wr[fr]}}),Object.defineProperty(ni,Mr,ir)}:function(ni,wr,fr,Mr){Mr===void 0&&(Mr=fr),ni[Mr]=wr[fr]}),qe=R&&R.__exportStar||function(ni,wr){for(var fr in ni)fr!=="default"&&!Object.prototype.hasOwnProperty.call(wr,fr)&&te(wr,ni,fr)};Object.defineProperty(R,"__esModule",{value:!0}),R.AST_TOKEN_TYPES=R.AST_NODE_TYPES=void 0;var Ve=EN();Object.defineProperty(R,"AST_NODE_TYPES",{enumerable:!0,get:function(){return Ve.AST_NODE_TYPES}}),Object.defineProperty(R,"AST_TOKEN_TYPES",{enumerable:!0,get:function(){return Ve.AST_TOKEN_TYPES}}),qe(qj(),R),qe(Vj(),R),qe(Kj(),R)}}),Gj=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0})}}),Hj=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0});var te=CN()}}),f1=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(ni,wr,fr,Mr){Mr===void 0&&(Mr=fr);var ir=Object.getOwnPropertyDescriptor(wr,fr);(!ir||("get"in ir?!wr.__esModule:ir.writable||ir.configurable))&&(ir={enumerable:!0,get:function(){return wr[fr]}}),Object.defineProperty(ni,Mr,ir)}:function(ni,wr,fr,Mr){Mr===void 0&&(Mr=fr),ni[Mr]=wr[fr]}),qe=R&&R.__exportStar||function(ni,wr){for(var fr in ni)fr!=="default"&&!Object.prototype.hasOwnProperty.call(wr,fr)&&te(wr,ni,fr)};Object.defineProperty(R,"__esModule",{value:!0}),R.TSESTree=R.AST_TOKEN_TYPES=R.AST_NODE_TYPES=void 0;var Ve=CN();Object.defineProperty(R,"AST_NODE_TYPES",{enumerable:!0,get:function(){return Ve.AST_NODE_TYPES}}),Object.defineProperty(R,"AST_TOKEN_TYPES",{enumerable:!0,get:function(){return Ve.AST_TOKEN_TYPES}}),Object.defineProperty(R,"TSESTree",{enumerable:!0,get:function(){return Ve.TSESTree}}),qe(Gj(),R),qe(Hj(),R)}}),Xj=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.xhtmlEntities=void 0,R.xhtmlEntities={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}}}),_1=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(P,D,l,_){_===void 0&&(_=l);var J=Object.getOwnPropertyDescriptor(D,l);(!J||("get"in J?!D.__esModule:J.writable||J.configurable))&&(J={enumerable:!0,get:function(){return D[l]}}),Object.defineProperty(P,_,J)}:function(P,D,l,_){_===void 0&&(_=l),P[_]=D[l]}),qe=R&&R.__setModuleDefault||(Object.create?function(P,D){Object.defineProperty(P,"default",{enumerable:!0,value:D})}:function(P,D){P.default=D}),Ve=R&&R.__importStar||function(P){if(P&&P.__esModule)return P;var D={};if(P!=null)for(var l in P)l!=="default"&&Object.prototype.hasOwnProperty.call(P,l)&&te(D,P,l);return qe(D,P),D};Object.defineProperty(R,"__esModule",{value:!0}),R.firstDefined=R.nodeHasTokens=R.createError=R.TSError=R.convertTokens=R.convertToken=R.getTokenType=R.isChildUnwrappableOptionalChain=R.isChainExpression=R.isOptional=R.isComputedProperty=R.unescapeStringLiteralText=R.hasJSXAncestor=R.findFirstMatchingAncestor=R.findNextToken=R.getTSNodeAccessibility=R.getDeclarationKind=R.isJSXToken=R.isToken=R.getRange=R.canContainDirective=R.getLocFor=R.getLineAndCharacterFor=R.getBinaryExpressionType=R.isJSDocComment=R.isComment=R.isComma=R.getLastModifier=R.hasModifier=R.isESTreeClassMember=R.getTextForTokenKind=R.isLogicalOperator=R.isAssignmentOperator=void 0;var ni=Ve(Lu()),wr=f1(),fr=Xj(),Mr=ni.SyntaxKind,ir=[Mr.BarBarToken,Mr.AmpersandAmpersandToken,Mr.QuestionQuestionToken];function Pe(P){return P.kind>=Mr.FirstAssignment&&P.kind<=Mr.LastAssignment}R.isAssignmentOperator=Pe;function e(P){return ir.includes(P.kind)}R.isLogicalOperator=e;function a(P){return ni.tokenToString(P)}R.getTextForTokenKind=a;function O(P){return P.kind!==Mr.SemicolonClassElement}R.isESTreeClassMember=O;function L(P,D){return!!D.modifiers&&!!D.modifiers.length&&D.modifiers.some(l=>l.kind===P)}R.hasModifier=L;function W(P){return!!P.modifiers&&!!P.modifiers.length&&P.modifiers[P.modifiers.length-1]||null}R.getLastModifier=W;function N(P){return P.kind===Mr.CommaToken}R.isComma=N;function Q(P){return P.kind===Mr.SingleLineCommentTrivia||P.kind===Mr.MultiLineCommentTrivia}R.isComment=Q;function pe(P){return P.kind===Mr.JSDocComment}R.isJSDocComment=pe;function F(P){return Pe(P)?wr.AST_NODE_TYPES.AssignmentExpression:e(P)?wr.AST_NODE_TYPES.LogicalExpression:wr.AST_NODE_TYPES.BinaryExpression}R.getBinaryExpressionType=F;function g(P,D){let l=D.getLineAndCharacterOfPosition(P);return{line:l.line+1,column:l.character}}R.getLineAndCharacterFor=g;function S(P,D,l){return{start:g(P,l),end:g(D,l)}}R.getLocFor=S;function H(P){if(P.kind===ni.SyntaxKind.Block)switch(P.parent.kind){case ni.SyntaxKind.Constructor:case ni.SyntaxKind.GetAccessor:case ni.SyntaxKind.SetAccessor:case ni.SyntaxKind.ArrowFunction:case ni.SyntaxKind.FunctionExpression:case ni.SyntaxKind.FunctionDeclaration:case ni.SyntaxKind.MethodDeclaration:return!0;default:return!1}return!0}R.canContainDirective=H;function se(P,D){return[P.getStart(D),P.getEnd()]}R.getRange=se;function p(P){return P.kind>=Mr.FirstToken&&P.kind<=Mr.LastToken}R.isToken=p;function C(P){return P.kind>=Mr.JsxElement&&P.kind<=Mr.JsxAttribute}R.isJSXToken=C;function G(P){return P.flags&ni.NodeFlags.Let?"let":P.flags&ni.NodeFlags.Const?"const":"var"}R.getDeclarationKind=G;function E(P){let D=P.modifiers;if(!D)return null;for(let l=0;l<D.length;l++)switch(D[l].kind){case Mr.PublicKeyword:return"public";case Mr.ProtectedKeyword:return"protected";case Mr.PrivateKeyword:return"private";default:break}return null}R.getTSNodeAccessibility=E;function ue(P,D,l){return _(D);function _(J){return ni.isToken(J)&&J.pos===P.end?J:f(J.getChildren(l),w=>(w.pos<=P.pos&&w.end>P.end||w.pos===P.end)&&A(w,l)?_(w):void 0)}}R.findNextToken=ue;function B(P,D){for(;P;){if(D(P))return P;P=P.parent}}R.findFirstMatchingAncestor=B;function re(P){return!!B(P,C)}R.hasJSXAncestor=re;function M(P){return P.replace(/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g,D=>{let l=D.slice(1,-1);if(l[0]==="#"){let _=l[1]==="x"?parseInt(l.slice(2),16):parseInt(l.slice(1),10);return _>1114111?D:String.fromCodePoint(_)}return fr.xhtmlEntities[l]||D})}R.unescapeStringLiteralText=M;function x(P){return P.kind===Mr.ComputedPropertyName}R.isComputedProperty=x;function ie(P){return P.questionToken?P.questionToken.kind===Mr.QuestionToken:!1}R.isOptional=ie;function _e(P){return P.type===wr.AST_NODE_TYPES.ChainExpression}R.isChainExpression=_e;function Y(P,D){return _e(D)&&P.expression.kind!==ni.SyntaxKind.ParenthesizedExpression}R.isChildUnwrappableOptionalChain=Y;function Z(P){if("originalKeywordKind"in P&&P.originalKeywordKind)return P.originalKeywordKind===Mr.NullKeyword?wr.AST_TOKEN_TYPES.Null:P.originalKeywordKind>=Mr.FirstFutureReservedWord&&P.originalKeywordKind<=Mr.LastKeyword?wr.AST_TOKEN_TYPES.Identifier:wr.AST_TOKEN_TYPES.Keyword;if(P.kind>=Mr.FirstKeyword&&P.kind<=Mr.LastFutureReservedWord)return P.kind===Mr.FalseKeyword||P.kind===Mr.TrueKeyword?wr.AST_TOKEN_TYPES.Boolean:wr.AST_TOKEN_TYPES.Keyword;if(P.kind>=Mr.FirstPunctuation&&P.kind<=Mr.LastPunctuation)return wr.AST_TOKEN_TYPES.Punctuator;if(P.kind>=Mr.NoSubstitutionTemplateLiteral&&P.kind<=Mr.TemplateTail)return wr.AST_TOKEN_TYPES.Template;switch(P.kind){case Mr.NumericLiteral:return wr.AST_TOKEN_TYPES.Numeric;case Mr.JsxText:return wr.AST_TOKEN_TYPES.JSXText;case Mr.StringLiteral:return P.parent&&(P.parent.kind===Mr.JsxAttribute||P.parent.kind===Mr.JsxElement)?wr.AST_TOKEN_TYPES.JSXText:wr.AST_TOKEN_TYPES.String;case Mr.RegularExpressionLiteral:return wr.AST_TOKEN_TYPES.RegularExpression;case Mr.Identifier:case Mr.ConstructorKeyword:case Mr.GetKeyword:case Mr.SetKeyword:default:}return P.parent&&P.kind===Mr.Identifier&&(C(P.parent)||P.parent.kind===Mr.PropertyAccessExpression&&re(P))?wr.AST_TOKEN_TYPES.JSXIdentifier:wr.AST_TOKEN_TYPES.Identifier}R.getTokenType=Z;function k(P,D){let l=P.kind===Mr.JsxText?P.getFullStart():P.getStart(D),_=P.getEnd(),J=D.text.slice(l,_),w=Z(P);return w===wr.AST_TOKEN_TYPES.RegularExpression?{type:w,value:J,range:[l,_],loc:S(l,_,D),regex:{pattern:J.slice(1,J.lastIndexOf("/")),flags:J.slice(J.lastIndexOf("/")+1)}}:{type:w,value:J,range:[l,_],loc:S(l,_,D)}}R.convertToken=k;function I(P){let D=[];function l(_){if(!(Q(_)||pe(_)))if(p(_)&&_.kind!==Mr.EndOfFileToken){let J=k(_,P);J&&D.push(J)}else _.getChildren(P).forEach(l)}return l(P),D}R.convertTokens=I;var ne=class extends Error{constructor(P,D,l,_,J){super(P);this.fileName=D,this.index=l,this.lineNumber=_,this.column=J,Object.defineProperty(this,"name",{value:new.target.name,enumerable:!1,configurable:!0})}};R.TSError=ne;function ee(P,D,l){let _=P.getLineAndCharacterOfPosition(D);return new ne(l,P.fileName,D,_.line+1,_.character)}R.createError=ee;function A(P,D){return P.kind===Mr.EndOfFileToken?!!P.jsDoc:P.getWidth(D)!==0}R.nodeHasTokens=A;function f(P,D){if(P!==void 0)for(let l=0;l<P.length;l++){let _=D(P[l],l);if(_!==void 0)return _}}R.firstDefined=f}}),Qj=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/version-check.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(ir,Pe,e,a){a===void 0&&(a=e);var O=Object.getOwnPropertyDescriptor(Pe,e);(!O||("get"in O?!Pe.__esModule:O.writable||O.configurable))&&(O={enumerable:!0,get:function(){return Pe[e]}}),Object.defineProperty(ir,a,O)}:function(ir,Pe,e,a){a===void 0&&(a=e),ir[a]=Pe[e]}),qe=R&&R.__setModuleDefault||(Object.create?function(ir,Pe){Object.defineProperty(ir,"default",{enumerable:!0,value:Pe})}:function(ir,Pe){ir.default=Pe}),Ve=R&&R.__importStar||function(ir){if(ir&&ir.__esModule)return ir;var Pe={};if(ir!=null)for(var e in ir)e!=="default"&&Object.prototype.hasOwnProperty.call(ir,e)&&te(Pe,ir,e);return qe(Pe,ir),Pe};Object.defineProperty(R,"__esModule",{value:!0}),R.typescriptVersionIsAtLeast=void 0;var ni=Ve(PT()),wr=Ve(Lu()),fr=["3.7","3.8","3.9","4.0"],Mr={};R.typescriptVersionIsAtLeast=Mr;for(let ir of fr)Mr[ir]=!0}}),kN=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/convert.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(a,O,L,W){W===void 0&&(W=L);var N=Object.getOwnPropertyDescriptor(O,L);(!N||("get"in N?!O.__esModule:N.writable||N.configurable))&&(N={enumerable:!0,get:function(){return O[L]}}),Object.defineProperty(a,W,N)}:function(a,O,L,W){W===void 0&&(W=L),a[W]=O[L]}),qe=R&&R.__setModuleDefault||(Object.create?function(a,O){Object.defineProperty(a,"default",{enumerable:!0,value:O})}:function(a,O){a.default=O}),Ve=R&&R.__importStar||function(a){if(a&&a.__esModule)return a;var O={};if(a!=null)for(var L in a)L!=="default"&&Object.prototype.hasOwnProperty.call(a,L)&&te(O,a,L);return qe(O,a),O};Object.defineProperty(R,"__esModule",{value:!0}),R.Converter=R.convertError=void 0;var ni=Ve(Lu()),wr=_1(),fr=f1(),Mr=Qj(),ir=ni.SyntaxKind;function Pe(a){return(0,wr.createError)(a.file,a.start,"message"in a&&a.message||a.messageText)}R.convertError=Pe;var e=class{constructor(a,O){this.esTreeNodeToTSNodeMap=new WeakMap,this.tsNodeToESTreeNodeMap=new WeakMap,this.allowPattern=!1,this.inTypeMode=!1,this.ast=a,this.options=Object.assign({},O)}getASTMaps(){return{esTreeNodeToTSNodeMap:this.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:this.tsNodeToESTreeNodeMap}}convertProgram(){return this.converter(this.ast)}converter(a,O,L,W){if(!a)return null;let N=this.inTypeMode,Q=this.allowPattern;L!==void 0&&(this.inTypeMode=L),W!==void 0&&(this.allowPattern=W);let pe=this.convertNode(a,O!=null?O:a.parent);return this.registerTSNodeInNodeMap(a,pe),this.inTypeMode=N,this.allowPattern=Q,pe}fixExports(a,O){if(a.modifiers&&a.modifiers[0].kind===ir.ExportKeyword){this.registerTSNodeInNodeMap(a,O);let L=a.modifiers[0],W=a.modifiers[1],N=W&&W.kind===ir.DefaultKeyword,Q=N?(0,wr.findNextToken)(W,this.ast,this.ast):(0,wr.findNextToken)(L,this.ast,this.ast);if(O.range[0]=Q.getStart(this.ast),O.loc=(0,wr.getLocFor)(O.range[0],O.range[1],this.ast),N)return this.createNode(a,{type:fr.AST_NODE_TYPES.ExportDefaultDeclaration,declaration:O,range:[L.getStart(this.ast),O.range[1]],exportKind:"value"});{let pe=O.type===fr.AST_NODE_TYPES.TSInterfaceDeclaration||O.type===fr.AST_NODE_TYPES.TSTypeAliasDeclaration,F=O.declare===!0;return this.createNode(a,{type:fr.AST_NODE_TYPES.ExportNamedDeclaration,declaration:O,specifiers:[],source:null,exportKind:pe||F?"type":"value",range:[L.getStart(this.ast),O.range[1]],assertions:[]})}}return O}registerTSNodeInNodeMap(a,O){O&&this.options.shouldPreserveNodeMaps&&(this.tsNodeToESTreeNodeMap.has(a)||this.tsNodeToESTreeNodeMap.set(a,O))}convertPattern(a,O){return this.converter(a,O,this.inTypeMode,!0)}convertChild(a,O){return this.converter(a,O,this.inTypeMode,!1)}convertType(a,O){return this.converter(a,O,!0,!1)}createNode(a,O){let L=O;return L.range||(L.range=(0,wr.getRange)(a,this.ast)),L.loc||(L.loc=(0,wr.getLocFor)(L.range[0],L.range[1],this.ast)),L&&this.options.shouldPreserveNodeMaps&&this.esTreeNodeToTSNodeMap.set(L,a),L}convertBindingNameWithTypeAnnotation(a,O,L){let W=this.convertPattern(a);return O&&(W.typeAnnotation=this.convertTypeAnnotation(O,L),this.fixParentLocation(W,W.typeAnnotation.range)),W}convertTypeAnnotation(a,O){let L=(O==null?void 0:O.kind)===ir.FunctionType||(O==null?void 0:O.kind)===ir.ConstructorType?2:1,W=a.getFullStart()-L,N=(0,wr.getLocFor)(W,a.end,this.ast);return{type:fr.AST_NODE_TYPES.TSTypeAnnotation,loc:N,range:[W,a.end],typeAnnotation:this.convertType(a)}}convertBodyExpressions(a,O){let L=(0,wr.canContainDirective)(O);return a.map(W=>{let N=this.convertChild(W);if(L)if((N==null?void 0:N.expression)&&ni.isExpressionStatement(W)&&ni.isStringLiteral(W.expression)){let Q=N.expression.raw;return N.directive=Q.slice(1,-1),N}else L=!1;return N}).filter(W=>W)}convertTypeArgumentsToTypeParameters(a,O){let L=(0,wr.findNextToken)(a,this.ast,this.ast);return this.createNode(O,{type:fr.AST_NODE_TYPES.TSTypeParameterInstantiation,range:[a.pos-1,L.end],params:a.map(W=>this.convertType(W))})}convertTSTypeParametersToTypeParametersDeclaration(a){let O=(0,wr.findNextToken)(a,this.ast,this.ast);return{type:fr.AST_NODE_TYPES.TSTypeParameterDeclaration,range:[a.pos-1,O.end],loc:(0,wr.getLocFor)(a.pos-1,O.end,this.ast),params:a.map(L=>this.convertType(L))}}convertParameters(a){return!a||!a.length?[]:a.map(O=>{var L;let W=this.convertChild(O);return!((L=O.decorators)===null||L===void 0)&&L.length&&(W.decorators=O.decorators.map(N=>this.convertChild(N))),W})}convertChainExpression(a,O){let{child:L,isOptional:W}=(()=>a.type===fr.AST_NODE_TYPES.MemberExpression?{child:a.object,isOptional:a.optional}:a.type===fr.AST_NODE_TYPES.CallExpression?{child:a.callee,isOptional:a.optional}:{child:a.expression,isOptional:!1})(),N=(0,wr.isChildUnwrappableOptionalChain)(O,L);if(!N&&!W)return a;if(N&&(0,wr.isChainExpression)(L)){let Q=L.expression;a.type===fr.AST_NODE_TYPES.MemberExpression?a.object=Q:a.type===fr.AST_NODE_TYPES.CallExpression?a.callee=Q:a.expression=Q}return this.createNode(O,{type:fr.AST_NODE_TYPES.ChainExpression,expression:a})}deeplyCopy(a){if(a.kind===ni.SyntaxKind.JSDocFunctionType)throw(0,wr.createError)(this.ast,a.pos,"JSDoc types can only be used inside documentation comments.");let O="TS".concat(ir[a.kind]);if(this.options.errorOnUnknownASTType&&!fr.AST_NODE_TYPES[O])throw new Error('Unknown AST_NODE_TYPE: "'.concat(O,'"'));let L=this.createNode(a,{type:O});return"type"in a&&(L.typeAnnotation=a.type&&"kind"in a.type&&ni.isTypeNode(a.type)?this.convertTypeAnnotation(a.type,a):null),"typeArguments"in a&&(L.typeParameters=a.typeArguments&&"pos"in a.typeArguments?this.convertTypeArgumentsToTypeParameters(a.typeArguments,a):null),"typeParameters"in a&&(L.typeParameters=a.typeParameters&&"pos"in a.typeParameters?this.convertTSTypeParametersToTypeParametersDeclaration(a.typeParameters):null),"decorators"in a&&a.decorators&&a.decorators.length&&(L.decorators=a.decorators.map(W=>this.convertChild(W))),Object.entries(a).filter(W=>{let[N]=W;return!/^(?:_children|kind|parent|pos|end|flags|modifierFlagsCache|jsDoc|type|typeArguments|typeParameters|decorators|transformFlags)$/.test(N)}).forEach(W=>{let[N,Q]=W;Array.isArray(Q)?L[N]=Q.map(pe=>this.convertChild(pe)):Q&&typeof Q=="object"&&Q.kind?L[N]=this.convertChild(Q):L[N]=Q}),L}convertJSXIdentifier(a){let O=this.createNode(a,{type:fr.AST_NODE_TYPES.JSXIdentifier,name:a.getText()});return this.registerTSNodeInNodeMap(a,O),O}convertJSXNamespaceOrIdentifier(a){let O=a.getText(),L=O.indexOf(":");if(L>0){let W=(0,wr.getRange)(a,this.ast),N=this.createNode(a,{type:fr.AST_NODE_TYPES.JSXNamespacedName,namespace:this.createNode(a,{type:fr.AST_NODE_TYPES.JSXIdentifier,name:O.slice(0,L),range:[W[0],W[0]+L]}),name:this.createNode(a,{type:fr.AST_NODE_TYPES.JSXIdentifier,name:O.slice(L+1),range:[W[0]+L+1,W[1]]}),range:W});return this.registerTSNodeInNodeMap(a,N),N}return this.convertJSXIdentifier(a)}convertJSXTagName(a,O){let L;switch(a.kind){case ir.PropertyAccessExpression:if(a.name.kind===ir.PrivateIdentifier)throw new Error("Non-private identifier expected.");L=this.createNode(a,{type:fr.AST_NODE_TYPES.JSXMemberExpression,object:this.convertJSXTagName(a.expression,O),property:this.convertJSXIdentifier(a.name)});break;case ir.ThisKeyword:case ir.Identifier:default:return this.convertJSXNamespaceOrIdentifier(a)}return this.registerTSNodeInNodeMap(a,L),L}convertMethodSignature(a){let O=this.createNode(a,{type:fr.AST_NODE_TYPES.TSMethodSignature,computed:(0,wr.isComputedProperty)(a.name),key:this.convertChild(a.name),params:this.convertParameters(a.parameters),kind:(()=>{switch(a.kind){case ir.GetAccessor:return"get";case ir.SetAccessor:return"set";case ir.MethodSignature:return"method"}})()});(0,wr.isOptional)(a)&&(O.optional=!0),a.type&&(O.returnType=this.convertTypeAnnotation(a.type,a)),(0,wr.hasModifier)(ir.ReadonlyKeyword,a)&&(O.readonly=!0),a.typeParameters&&(O.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(a.typeParameters));let L=(0,wr.getTSNodeAccessibility)(a);return L&&(O.accessibility=L),(0,wr.hasModifier)(ir.ExportKeyword,a)&&(O.export=!0),(0,wr.hasModifier)(ir.StaticKeyword,a)&&(O.static=!0),O}convertAssertClasue(a){return a===void 0?[]:a.elements.map(O=>this.convertChild(O))}applyModifiersToResult(a,O){if(!O||!O.length)return;let L=[];for(let W=0;W<O.length;W++){let N=O[W];switch(N.kind){case ir.ExportKeyword:case ir.DefaultKeyword:break;case ir.ConstKeyword:a.const=!0;break;case ir.DeclareKeyword:a.declare=!0;break;default:L.push(this.convertChild(N));break}}L.length&&(a.modifiers=L)}fixParentLocation(a,O){O[0]<a.range[0]&&(a.range[0]=O[0],a.loc.start=(0,wr.getLineAndCharacterFor)(a.range[0],this.ast)),O[1]>a.range[1]&&(a.range[1]=O[1],a.loc.end=(0,wr.getLineAndCharacterFor)(a.range[1],this.ast))}assertModuleSpecifier(a){if(a.moduleSpecifier&&a.moduleSpecifier.kind!==ir.StringLiteral)throw(0,wr.createError)(this.ast,a.moduleSpecifier.pos,"Module specifier must be a string literal.")}convertNode(a,O){var L,W,N,Q,pe,F,g,S,H,se;switch(a.kind){case ir.SourceFile:return this.createNode(a,{type:fr.AST_NODE_TYPES.Program,body:this.convertBodyExpressions(a.statements,a),sourceType:a.externalModuleIndicator?"module":"script",range:[a.getStart(this.ast),a.endOfFileToken.end]});case ir.Block:return this.createNode(a,{type:fr.AST_NODE_TYPES.BlockStatement,body:this.convertBodyExpressions(a.statements,a)});case ir.Identifier:return this.createNode(a,{type:fr.AST_NODE_TYPES.Identifier,name:a.text});case ir.PrivateIdentifier:return this.createNode(a,{type:fr.AST_NODE_TYPES.PrivateIdentifier,name:a.text.slice(1)});case ir.WithStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.WithStatement,object:this.convertChild(a.expression),body:this.convertChild(a.statement)});case ir.ReturnStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.ReturnStatement,argument:this.convertChild(a.expression)});case ir.LabeledStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.LabeledStatement,label:this.convertChild(a.label),body:this.convertChild(a.statement)});case ir.ContinueStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.ContinueStatement,label:this.convertChild(a.label)});case ir.BreakStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.BreakStatement,label:this.convertChild(a.label)});case ir.IfStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.IfStatement,test:this.convertChild(a.expression),consequent:this.convertChild(a.thenStatement),alternate:this.convertChild(a.elseStatement)});case ir.SwitchStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.SwitchStatement,discriminant:this.convertChild(a.expression),cases:a.caseBlock.clauses.map(p=>this.convertChild(p))});case ir.CaseClause:case ir.DefaultClause:return this.createNode(a,{type:fr.AST_NODE_TYPES.SwitchCase,test:a.kind===ir.CaseClause?this.convertChild(a.expression):null,consequent:a.statements.map(p=>this.convertChild(p))});case ir.ThrowStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.ThrowStatement,argument:this.convertChild(a.expression)});case ir.TryStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.TryStatement,block:this.convertChild(a.tryBlock),handler:this.convertChild(a.catchClause),finalizer:this.convertChild(a.finallyBlock)});case ir.CatchClause:return this.createNode(a,{type:fr.AST_NODE_TYPES.CatchClause,param:a.variableDeclaration?this.convertBindingNameWithTypeAnnotation(a.variableDeclaration.name,a.variableDeclaration.type):null,body:this.convertChild(a.block)});case ir.WhileStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.WhileStatement,test:this.convertChild(a.expression),body:this.convertChild(a.statement)});case ir.DoStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.DoWhileStatement,test:this.convertChild(a.expression),body:this.convertChild(a.statement)});case ir.ForStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.ForStatement,init:this.convertChild(a.initializer),test:this.convertChild(a.condition),update:this.convertChild(a.incrementor),body:this.convertChild(a.statement)});case ir.ForInStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.ForInStatement,left:this.convertPattern(a.initializer),right:this.convertChild(a.expression),body:this.convertChild(a.statement)});case ir.ForOfStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.ForOfStatement,left:this.convertPattern(a.initializer),right:this.convertChild(a.expression),body:this.convertChild(a.statement),await:Boolean(a.awaitModifier&&a.awaitModifier.kind===ir.AwaitKeyword)});case ir.FunctionDeclaration:{let p=(0,wr.hasModifier)(ir.DeclareKeyword,a),C=this.createNode(a,{type:p||!a.body?fr.AST_NODE_TYPES.TSDeclareFunction:fr.AST_NODE_TYPES.FunctionDeclaration,id:this.convertChild(a.name),generator:!!a.asteriskToken,expression:!1,async:(0,wr.hasModifier)(ir.AsyncKeyword,a),params:this.convertParameters(a.parameters),body:this.convertChild(a.body)||void 0});return a.type&&(C.returnType=this.convertTypeAnnotation(a.type,a)),p&&(C.declare=!0),a.typeParameters&&(C.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(a.typeParameters)),this.fixExports(a,C)}case ir.VariableDeclaration:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.VariableDeclarator,id:this.convertBindingNameWithTypeAnnotation(a.name,a.type,a),init:this.convertChild(a.initializer)});return a.exclamationToken&&(p.definite=!0),p}case ir.VariableStatement:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.VariableDeclaration,declarations:a.declarationList.declarations.map(C=>this.convertChild(C)),kind:(0,wr.getDeclarationKind)(a.declarationList)});return a.decorators&&(p.decorators=a.decorators.map(C=>this.convertChild(C))),(0,wr.hasModifier)(ir.DeclareKeyword,a)&&(p.declare=!0),this.fixExports(a,p)}case ir.VariableDeclarationList:return this.createNode(a,{type:fr.AST_NODE_TYPES.VariableDeclaration,declarations:a.declarations.map(p=>this.convertChild(p)),kind:(0,wr.getDeclarationKind)(a)});case ir.ExpressionStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.ExpressionStatement,expression:this.convertChild(a.expression)});case ir.ThisKeyword:return this.createNode(a,{type:fr.AST_NODE_TYPES.ThisExpression});case ir.ArrayLiteralExpression:return this.allowPattern?this.createNode(a,{type:fr.AST_NODE_TYPES.ArrayPattern,elements:a.elements.map(p=>this.convertPattern(p))}):this.createNode(a,{type:fr.AST_NODE_TYPES.ArrayExpression,elements:a.elements.map(p=>this.convertChild(p))});case ir.ObjectLiteralExpression:return this.allowPattern?this.createNode(a,{type:fr.AST_NODE_TYPES.ObjectPattern,properties:a.properties.map(p=>this.convertPattern(p))}):this.createNode(a,{type:fr.AST_NODE_TYPES.ObjectExpression,properties:a.properties.map(p=>this.convertChild(p))});case ir.PropertyAssignment:return this.createNode(a,{type:fr.AST_NODE_TYPES.Property,key:this.convertChild(a.name),value:this.converter(a.initializer,a,this.inTypeMode,this.allowPattern),computed:(0,wr.isComputedProperty)(a.name),method:!1,shorthand:!1,kind:"init"});case ir.ShorthandPropertyAssignment:return a.objectAssignmentInitializer?this.createNode(a,{type:fr.AST_NODE_TYPES.Property,key:this.convertChild(a.name),value:this.createNode(a,{type:fr.AST_NODE_TYPES.AssignmentPattern,left:this.convertPattern(a.name),right:this.convertChild(a.objectAssignmentInitializer)}),computed:!1,method:!1,shorthand:!0,kind:"init"}):this.createNode(a,{type:fr.AST_NODE_TYPES.Property,key:this.convertChild(a.name),value:this.convertChild(a.name),computed:!1,method:!1,shorthand:!0,kind:"init"});case ir.ComputedPropertyName:return this.convertChild(a.expression);case ir.PropertyDeclaration:{let p=(0,wr.hasModifier)(ir.AbstractKeyword,a),C=this.createNode(a,{type:p?fr.AST_NODE_TYPES.TSAbstractPropertyDefinition:fr.AST_NODE_TYPES.PropertyDefinition,key:this.convertChild(a.name),value:p?null:this.convertChild(a.initializer),computed:(0,wr.isComputedProperty)(a.name),static:(0,wr.hasModifier)(ir.StaticKeyword,a),readonly:(0,wr.hasModifier)(ir.ReadonlyKeyword,a)||void 0,declare:(0,wr.hasModifier)(ir.DeclareKeyword,a),override:(0,wr.hasModifier)(ir.OverrideKeyword,a)});a.type&&(C.typeAnnotation=this.convertTypeAnnotation(a.type,a)),a.decorators&&(C.decorators=a.decorators.map(E=>this.convertChild(E)));let G=(0,wr.getTSNodeAccessibility)(a);return G&&(C.accessibility=G),(a.name.kind===ir.Identifier||a.name.kind===ir.ComputedPropertyName||a.name.kind===ir.PrivateIdentifier)&&a.questionToken&&(C.optional=!0),a.exclamationToken&&(C.definite=!0),C.key.type===fr.AST_NODE_TYPES.Literal&&a.questionToken&&(C.optional=!0),C}case ir.GetAccessor:case ir.SetAccessor:if(a.parent.kind===ir.InterfaceDeclaration||a.parent.kind===ir.TypeLiteral)return this.convertMethodSignature(a);case ir.MethodDeclaration:{let p=this.createNode(a,{type:a.body?fr.AST_NODE_TYPES.FunctionExpression:fr.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,id:null,generator:!!a.asteriskToken,expression:!1,async:(0,wr.hasModifier)(ir.AsyncKeyword,a),body:this.convertChild(a.body),range:[a.parameters.pos-1,a.end],params:[]});a.type&&(p.returnType=this.convertTypeAnnotation(a.type,a)),a.typeParameters&&(p.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(a.typeParameters),this.fixParentLocation(p,p.typeParameters.range));let C;if(O.kind===ir.ObjectLiteralExpression)p.params=a.parameters.map(G=>this.convertChild(G)),C=this.createNode(a,{type:fr.AST_NODE_TYPES.Property,key:this.convertChild(a.name),value:p,computed:(0,wr.isComputedProperty)(a.name),method:a.kind===ir.MethodDeclaration,shorthand:!1,kind:"init"});else{p.params=this.convertParameters(a.parameters);let G=(0,wr.hasModifier)(ir.AbstractKeyword,a)?fr.AST_NODE_TYPES.TSAbstractMethodDefinition:fr.AST_NODE_TYPES.MethodDefinition;C=this.createNode(a,{type:G,key:this.convertChild(a.name),value:p,computed:(0,wr.isComputedProperty)(a.name),static:(0,wr.hasModifier)(ir.StaticKeyword,a),kind:"method",override:(0,wr.hasModifier)(ir.OverrideKeyword,a)}),a.decorators&&(C.decorators=a.decorators.map(ue=>this.convertChild(ue)));let E=(0,wr.getTSNodeAccessibility)(a);E&&(C.accessibility=E)}return a.questionToken&&(C.optional=!0),a.kind===ir.GetAccessor?C.kind="get":a.kind===ir.SetAccessor?C.kind="set":!C.static&&a.name.kind===ir.StringLiteral&&a.name.text==="constructor"&&C.type!==fr.AST_NODE_TYPES.Property&&(C.kind="constructor"),C}case ir.Constructor:{let p=(0,wr.getLastModifier)(a),C=p&&(0,wr.findNextToken)(p,a,this.ast)||a.getFirstToken(),G=this.createNode(a,{type:a.body?fr.AST_NODE_TYPES.FunctionExpression:fr.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,id:null,params:this.convertParameters(a.parameters),generator:!1,expression:!1,async:!1,body:this.convertChild(a.body),range:[a.parameters.pos-1,a.end]});a.typeParameters&&(G.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(a.typeParameters),this.fixParentLocation(G,G.typeParameters.range)),a.type&&(G.returnType=this.convertTypeAnnotation(a.type,a));let E=this.createNode(a,{type:fr.AST_NODE_TYPES.Identifier,name:"constructor",range:[C.getStart(this.ast),C.end]}),ue=(0,wr.hasModifier)(ir.StaticKeyword,a),B=this.createNode(a,{type:(0,wr.hasModifier)(ir.AbstractKeyword,a)?fr.AST_NODE_TYPES.TSAbstractMethodDefinition:fr.AST_NODE_TYPES.MethodDefinition,key:E,value:G,computed:!1,static:ue,kind:ue?"method":"constructor",override:!1}),re=(0,wr.getTSNodeAccessibility)(a);return re&&(B.accessibility=re),B}case ir.FunctionExpression:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.FunctionExpression,id:this.convertChild(a.name),generator:!!a.asteriskToken,params:this.convertParameters(a.parameters),body:this.convertChild(a.body),async:(0,wr.hasModifier)(ir.AsyncKeyword,a),expression:!1});return a.type&&(p.returnType=this.convertTypeAnnotation(a.type,a)),a.typeParameters&&(p.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(a.typeParameters)),p}case ir.SuperKeyword:return this.createNode(a,{type:fr.AST_NODE_TYPES.Super});case ir.ArrayBindingPattern:return this.createNode(a,{type:fr.AST_NODE_TYPES.ArrayPattern,elements:a.elements.map(p=>this.convertPattern(p))});case ir.OmittedExpression:return null;case ir.ObjectBindingPattern:return this.createNode(a,{type:fr.AST_NODE_TYPES.ObjectPattern,properties:a.elements.map(p=>this.convertPattern(p))});case ir.BindingElement:if(O.kind===ir.ArrayBindingPattern){let p=this.convertChild(a.name,O);return a.initializer?this.createNode(a,{type:fr.AST_NODE_TYPES.AssignmentPattern,left:p,right:this.convertChild(a.initializer)}):a.dotDotDotToken?this.createNode(a,{type:fr.AST_NODE_TYPES.RestElement,argument:p}):p}else{let p;return a.dotDotDotToken?p=this.createNode(a,{type:fr.AST_NODE_TYPES.RestElement,argument:this.convertChild((L=a.propertyName)!==null&&L!==void 0?L:a.name)}):p=this.createNode(a,{type:fr.AST_NODE_TYPES.Property,key:this.convertChild((W=a.propertyName)!==null&&W!==void 0?W:a.name),value:this.convertChild(a.name),computed:Boolean(a.propertyName&&a.propertyName.kind===ir.ComputedPropertyName),method:!1,shorthand:!a.propertyName,kind:"init"}),a.initializer&&(p.value=this.createNode(a,{type:fr.AST_NODE_TYPES.AssignmentPattern,left:this.convertChild(a.name),right:this.convertChild(a.initializer),range:[a.name.getStart(this.ast),a.initializer.end]})),p}case ir.ArrowFunction:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.ArrowFunctionExpression,generator:!1,id:null,params:this.convertParameters(a.parameters),body:this.convertChild(a.body),async:(0,wr.hasModifier)(ir.AsyncKeyword,a),expression:a.body.kind!==ir.Block});return a.type&&(p.returnType=this.convertTypeAnnotation(a.type,a)),a.typeParameters&&(p.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(a.typeParameters)),p}case ir.YieldExpression:return this.createNode(a,{type:fr.AST_NODE_TYPES.YieldExpression,delegate:!!a.asteriskToken,argument:this.convertChild(a.expression)});case ir.AwaitExpression:return this.createNode(a,{type:fr.AST_NODE_TYPES.AwaitExpression,argument:this.convertChild(a.expression)});case ir.NoSubstitutionTemplateLiteral:return this.createNode(a,{type:fr.AST_NODE_TYPES.TemplateLiteral,quasis:[this.createNode(a,{type:fr.AST_NODE_TYPES.TemplateElement,value:{raw:this.ast.text.slice(a.getStart(this.ast)+1,a.end-1),cooked:a.text},tail:!0})],expressions:[]});case ir.TemplateExpression:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.TemplateLiteral,quasis:[this.convertChild(a.head)],expressions:[]});return a.templateSpans.forEach(C=>{p.expressions.push(this.convertChild(C.expression)),p.quasis.push(this.convertChild(C.literal))}),p}case ir.TaggedTemplateExpression:return this.createNode(a,{type:fr.AST_NODE_TYPES.TaggedTemplateExpression,typeParameters:a.typeArguments?this.convertTypeArgumentsToTypeParameters(a.typeArguments,a):void 0,tag:this.convertChild(a.tag),quasi:this.convertChild(a.template)});case ir.TemplateHead:case ir.TemplateMiddle:case ir.TemplateTail:{let p=a.kind===ir.TemplateTail;return this.createNode(a,{type:fr.AST_NODE_TYPES.TemplateElement,value:{raw:this.ast.text.slice(a.getStart(this.ast)+1,a.end-(p?1:2)),cooked:a.text},tail:p})}case ir.SpreadAssignment:case ir.SpreadElement:return this.allowPattern?this.createNode(a,{type:fr.AST_NODE_TYPES.RestElement,argument:this.convertPattern(a.expression)}):this.createNode(a,{type:fr.AST_NODE_TYPES.SpreadElement,argument:this.convertChild(a.expression)});case ir.Parameter:{let p,C;return a.dotDotDotToken?p=C=this.createNode(a,{type:fr.AST_NODE_TYPES.RestElement,argument:this.convertChild(a.name)}):a.initializer?(p=this.convertChild(a.name),C=this.createNode(a,{type:fr.AST_NODE_TYPES.AssignmentPattern,left:p,right:this.convertChild(a.initializer)}),a.modifiers&&(C.range[0]=p.range[0],C.loc=(0,wr.getLocFor)(C.range[0],C.range[1],this.ast))):p=C=this.convertChild(a.name,O),a.type&&(p.typeAnnotation=this.convertTypeAnnotation(a.type,a),this.fixParentLocation(p,p.typeAnnotation.range)),a.questionToken&&(a.questionToken.end>p.range[1]&&(p.range[1]=a.questionToken.end,p.loc.end=(0,wr.getLineAndCharacterFor)(p.range[1],this.ast)),p.optional=!0),a.modifiers?this.createNode(a,{type:fr.AST_NODE_TYPES.TSParameterProperty,accessibility:(N=(0,wr.getTSNodeAccessibility)(a))!==null&&N!==void 0?N:void 0,readonly:(0,wr.hasModifier)(ir.ReadonlyKeyword,a)||void 0,static:(0,wr.hasModifier)(ir.StaticKeyword,a)||void 0,export:(0,wr.hasModifier)(ir.ExportKeyword,a)||void 0,override:(0,wr.hasModifier)(ir.OverrideKeyword,a)||void 0,parameter:C}):C}case ir.ClassDeclaration:case ir.ClassExpression:{let p=(Q=a.heritageClauses)!==null&&Q!==void 0?Q:[],C=a.kind===ir.ClassDeclaration?fr.AST_NODE_TYPES.ClassDeclaration:fr.AST_NODE_TYPES.ClassExpression,G=p.find(re=>re.token===ir.ExtendsKeyword),E=p.find(re=>re.token===ir.ImplementsKeyword),ue=this.createNode(a,{type:C,id:this.convertChild(a.name),body:this.createNode(a,{type:fr.AST_NODE_TYPES.ClassBody,body:[],range:[a.members.pos-1,a.end]}),superClass:G!=null&&G.types[0]?this.convertChild(G.types[0].expression):null});if(G){if(G.types.length>1)throw(0,wr.createError)(this.ast,G.types[1].pos,"Classes can only extend a single class.");!((pe=G.types[0])===null||pe===void 0)&&pe.typeArguments&&(ue.superTypeParameters=this.convertTypeArgumentsToTypeParameters(G.types[0].typeArguments,G.types[0]))}a.typeParameters&&(ue.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(a.typeParameters)),E&&(ue.implements=E.types.map(re=>this.convertChild(re))),(0,wr.hasModifier)(ir.AbstractKeyword,a)&&(ue.abstract=!0),(0,wr.hasModifier)(ir.DeclareKeyword,a)&&(ue.declare=!0),a.decorators&&(ue.decorators=a.decorators.map(re=>this.convertChild(re)));let B=a.members.filter(wr.isESTreeClassMember);return B.length&&(ue.body.body=B.map(re=>this.convertChild(re))),this.fixExports(a,ue)}case ir.ModuleBlock:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSModuleBlock,body:this.convertBodyExpressions(a.statements,a)});case ir.ImportDeclaration:{this.assertModuleSpecifier(a);let p=this.createNode(a,{type:fr.AST_NODE_TYPES.ImportDeclaration,source:this.convertChild(a.moduleSpecifier),specifiers:[],importKind:"value",assertions:this.convertAssertClasue(a.assertClause)});if(a.importClause&&(a.importClause.isTypeOnly&&(p.importKind="type"),a.importClause.name&&p.specifiers.push(this.convertChild(a.importClause)),a.importClause.namedBindings))switch(a.importClause.namedBindings.kind){case ir.NamespaceImport:p.specifiers.push(this.convertChild(a.importClause.namedBindings));break;case ir.NamedImports:p.specifiers=p.specifiers.concat(a.importClause.namedBindings.elements.map(C=>this.convertChild(C)));break}return p}case ir.NamespaceImport:return this.createNode(a,{type:fr.AST_NODE_TYPES.ImportNamespaceSpecifier,local:this.convertChild(a.name)});case ir.ImportSpecifier:return this.createNode(a,{type:fr.AST_NODE_TYPES.ImportSpecifier,local:this.convertChild(a.name),imported:this.convertChild((F=a.propertyName)!==null&&F!==void 0?F:a.name),importKind:a.isTypeOnly?"type":"value"});case ir.ImportClause:{let p=this.convertChild(a.name);return this.createNode(a,{type:fr.AST_NODE_TYPES.ImportDefaultSpecifier,local:p,range:p.range})}case ir.ExportDeclaration:return this.assertModuleSpecifier(a),((g=a.exportClause)===null||g===void 0?void 0:g.kind)===ir.NamedExports?this.createNode(a,{type:fr.AST_NODE_TYPES.ExportNamedDeclaration,source:this.convertChild(a.moduleSpecifier),specifiers:a.exportClause.elements.map(p=>this.convertChild(p)),exportKind:a.isTypeOnly?"type":"value",declaration:null,assertions:this.convertAssertClasue(a.assertClause)}):this.createNode(a,{type:fr.AST_NODE_TYPES.ExportAllDeclaration,source:this.convertChild(a.moduleSpecifier),exportKind:a.isTypeOnly?"type":"value",exported:a.exportClause&&a.exportClause.kind===ir.NamespaceExport?this.convertChild(a.exportClause.name):null,assertions:this.convertAssertClasue(a.assertClause)});case ir.ExportSpecifier:return this.createNode(a,{type:fr.AST_NODE_TYPES.ExportSpecifier,local:this.convertChild((S=a.propertyName)!==null&&S!==void 0?S:a.name),exported:this.convertChild(a.name),exportKind:a.isTypeOnly?"type":"value"});case ir.ExportAssignment:return a.isExportEquals?this.createNode(a,{type:fr.AST_NODE_TYPES.TSExportAssignment,expression:this.convertChild(a.expression)}):this.createNode(a,{type:fr.AST_NODE_TYPES.ExportDefaultDeclaration,declaration:this.convertChild(a.expression),exportKind:"value"});case ir.PrefixUnaryExpression:case ir.PostfixUnaryExpression:{let p=(0,wr.getTextForTokenKind)(a.operator);return p==="++"||p==="--"?this.createNode(a,{type:fr.AST_NODE_TYPES.UpdateExpression,operator:p,prefix:a.kind===ir.PrefixUnaryExpression,argument:this.convertChild(a.operand)}):this.createNode(a,{type:fr.AST_NODE_TYPES.UnaryExpression,operator:p,prefix:a.kind===ir.PrefixUnaryExpression,argument:this.convertChild(a.operand)})}case ir.DeleteExpression:return this.createNode(a,{type:fr.AST_NODE_TYPES.UnaryExpression,operator:"delete",prefix:!0,argument:this.convertChild(a.expression)});case ir.VoidExpression:return this.createNode(a,{type:fr.AST_NODE_TYPES.UnaryExpression,operator:"void",prefix:!0,argument:this.convertChild(a.expression)});case ir.TypeOfExpression:return this.createNode(a,{type:fr.AST_NODE_TYPES.UnaryExpression,operator:"typeof",prefix:!0,argument:this.convertChild(a.expression)});case ir.TypeOperator:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSTypeOperator,operator:(0,wr.getTextForTokenKind)(a.operator),typeAnnotation:this.convertChild(a.type)});case ir.BinaryExpression:if((0,wr.isComma)(a.operatorToken)){let p=this.createNode(a,{type:fr.AST_NODE_TYPES.SequenceExpression,expressions:[]}),C=this.convertChild(a.left);return C.type===fr.AST_NODE_TYPES.SequenceExpression&&a.left.kind!==ir.ParenthesizedExpression?p.expressions=p.expressions.concat(C.expressions):p.expressions.push(C),p.expressions.push(this.convertChild(a.right)),p}else{let p=(0,wr.getBinaryExpressionType)(a.operatorToken);return this.allowPattern&&p===fr.AST_NODE_TYPES.AssignmentExpression?this.createNode(a,{type:fr.AST_NODE_TYPES.AssignmentPattern,left:this.convertPattern(a.left,a),right:this.convertChild(a.right)}):this.createNode(a,{type:p,operator:(0,wr.getTextForTokenKind)(a.operatorToken.kind),left:this.converter(a.left,a,this.inTypeMode,p===fr.AST_NODE_TYPES.AssignmentExpression),right:this.convertChild(a.right)})}case ir.PropertyAccessExpression:{let p=this.convertChild(a.expression),C=this.convertChild(a.name),G=!1,E=this.createNode(a,{type:fr.AST_NODE_TYPES.MemberExpression,object:p,property:C,computed:G,optional:a.questionDotToken!==void 0});return this.convertChainExpression(E,a)}case ir.ElementAccessExpression:{let p=this.convertChild(a.expression),C=this.convertChild(a.argumentExpression),G=!0,E=this.createNode(a,{type:fr.AST_NODE_TYPES.MemberExpression,object:p,property:C,computed:G,optional:a.questionDotToken!==void 0});return this.convertChainExpression(E,a)}case ir.CallExpression:{if(a.expression.kind===ir.ImportKeyword){if(a.arguments.length!==1&&a.arguments.length!==2)throw(0,wr.createError)(this.ast,a.arguments.pos,"Dynamic import requires exactly one or two arguments.");return this.createNode(a,{type:fr.AST_NODE_TYPES.ImportExpression,source:this.convertChild(a.arguments[0]),attributes:a.arguments[1]?this.convertChild(a.arguments[1]):null})}let p=this.convertChild(a.expression),C=a.arguments.map(E=>this.convertChild(E)),G=this.createNode(a,{type:fr.AST_NODE_TYPES.CallExpression,callee:p,arguments:C,optional:a.questionDotToken!==void 0});return a.typeArguments&&(G.typeParameters=this.convertTypeArgumentsToTypeParameters(a.typeArguments,a)),this.convertChainExpression(G,a)}case ir.NewExpression:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.NewExpression,callee:this.convertChild(a.expression),arguments:a.arguments?a.arguments.map(C=>this.convertChild(C)):[]});return a.typeArguments&&(p.typeParameters=this.convertTypeArgumentsToTypeParameters(a.typeArguments,a)),p}case ir.ConditionalExpression:return this.createNode(a,{type:fr.AST_NODE_TYPES.ConditionalExpression,test:this.convertChild(a.condition),consequent:this.convertChild(a.whenTrue),alternate:this.convertChild(a.whenFalse)});case ir.MetaProperty:return this.createNode(a,{type:fr.AST_NODE_TYPES.MetaProperty,meta:this.createNode(a.getFirstToken(),{type:fr.AST_NODE_TYPES.Identifier,name:(0,wr.getTextForTokenKind)(a.keywordToken)}),property:this.convertChild(a.name)});case ir.Decorator:return this.createNode(a,{type:fr.AST_NODE_TYPES.Decorator,expression:this.convertChild(a.expression)});case ir.StringLiteral:return this.createNode(a,{type:fr.AST_NODE_TYPES.Literal,value:O.kind===ir.JsxAttribute?(0,wr.unescapeStringLiteralText)(a.text):a.text,raw:a.getText()});case ir.NumericLiteral:return this.createNode(a,{type:fr.AST_NODE_TYPES.Literal,value:Number(a.text),raw:a.getText()});case ir.BigIntLiteral:{let p=(0,wr.getRange)(a,this.ast),C=this.ast.text.slice(p[0],p[1]),G=C.slice(0,-1).replace(/_/g,""),E=typeof BigInt<"u"?BigInt(G):null;return this.createNode(a,{type:fr.AST_NODE_TYPES.Literal,raw:C,value:E,bigint:E===null?G:String(E),range:p})}case ir.RegularExpressionLiteral:{let p=a.text.slice(1,a.text.lastIndexOf("/")),C=a.text.slice(a.text.lastIndexOf("/")+1),G=null;try{G=new RegExp(p,C)}catch{G=null}return this.createNode(a,{type:fr.AST_NODE_TYPES.Literal,value:G,raw:a.text,regex:{pattern:p,flags:C}})}case ir.TrueKeyword:return this.createNode(a,{type:fr.AST_NODE_TYPES.Literal,value:!0,raw:"true"});case ir.FalseKeyword:return this.createNode(a,{type:fr.AST_NODE_TYPES.Literal,value:!1,raw:"false"});case ir.NullKeyword:return!Mr.typescriptVersionIsAtLeast["4.0"]&&this.inTypeMode?this.createNode(a,{type:fr.AST_NODE_TYPES.TSNullKeyword}):this.createNode(a,{type:fr.AST_NODE_TYPES.Literal,value:null,raw:"null"});case ir.EmptyStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.EmptyStatement});case ir.DebuggerStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.DebuggerStatement});case ir.JsxElement:return this.createNode(a,{type:fr.AST_NODE_TYPES.JSXElement,openingElement:this.convertChild(a.openingElement),closingElement:this.convertChild(a.closingElement),children:a.children.map(p=>this.convertChild(p))});case ir.JsxFragment:return this.createNode(a,{type:fr.AST_NODE_TYPES.JSXFragment,openingFragment:this.convertChild(a.openingFragment),closingFragment:this.convertChild(a.closingFragment),children:a.children.map(p=>this.convertChild(p))});case ir.JsxSelfClosingElement:return this.createNode(a,{type:fr.AST_NODE_TYPES.JSXElement,openingElement:this.createNode(a,{type:fr.AST_NODE_TYPES.JSXOpeningElement,typeParameters:a.typeArguments?this.convertTypeArgumentsToTypeParameters(a.typeArguments,a):void 0,selfClosing:!0,name:this.convertJSXTagName(a.tagName,a),attributes:a.attributes.properties.map(p=>this.convertChild(p)),range:(0,wr.getRange)(a,this.ast)}),closingElement:null,children:[]});case ir.JsxOpeningElement:return this.createNode(a,{type:fr.AST_NODE_TYPES.JSXOpeningElement,typeParameters:a.typeArguments?this.convertTypeArgumentsToTypeParameters(a.typeArguments,a):void 0,selfClosing:!1,name:this.convertJSXTagName(a.tagName,a),attributes:a.attributes.properties.map(p=>this.convertChild(p))});case ir.JsxClosingElement:return this.createNode(a,{type:fr.AST_NODE_TYPES.JSXClosingElement,name:this.convertJSXTagName(a.tagName,a)});case ir.JsxOpeningFragment:return this.createNode(a,{type:fr.AST_NODE_TYPES.JSXOpeningFragment});case ir.JsxClosingFragment:return this.createNode(a,{type:fr.AST_NODE_TYPES.JSXClosingFragment});case ir.JsxExpression:{let p=a.expression?this.convertChild(a.expression):this.createNode(a,{type:fr.AST_NODE_TYPES.JSXEmptyExpression,range:[a.getStart(this.ast)+1,a.getEnd()-1]});return a.dotDotDotToken?this.createNode(a,{type:fr.AST_NODE_TYPES.JSXSpreadChild,expression:p}):this.createNode(a,{type:fr.AST_NODE_TYPES.JSXExpressionContainer,expression:p})}case ir.JsxAttribute:return this.createNode(a,{type:fr.AST_NODE_TYPES.JSXAttribute,name:this.convertJSXNamespaceOrIdentifier(a.name),value:this.convertChild(a.initializer)});case ir.JsxText:{let p=a.getFullStart(),C=a.getEnd(),G=this.ast.text.slice(p,C);return this.createNode(a,{type:fr.AST_NODE_TYPES.JSXText,value:(0,wr.unescapeStringLiteralText)(G),raw:G,range:[p,C]})}case ir.JsxSpreadAttribute:return this.createNode(a,{type:fr.AST_NODE_TYPES.JSXSpreadAttribute,argument:this.convertChild(a.expression)});case ir.QualifiedName:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSQualifiedName,left:this.convertChild(a.left),right:this.convertChild(a.right)});case ir.TypeReference:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSTypeReference,typeName:this.convertType(a.typeName),typeParameters:a.typeArguments?this.convertTypeArgumentsToTypeParameters(a.typeArguments,a):void 0});case ir.TypeParameter:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSTypeParameter,name:this.convertType(a.name),constraint:a.constraint?this.convertType(a.constraint):void 0,default:a.default?this.convertType(a.default):void 0});case ir.ThisType:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSThisType});case ir.AnyKeyword:case ir.BigIntKeyword:case ir.BooleanKeyword:case ir.NeverKeyword:case ir.NumberKeyword:case ir.ObjectKeyword:case ir.StringKeyword:case ir.SymbolKeyword:case ir.UnknownKeyword:case ir.VoidKeyword:case ir.UndefinedKeyword:case ir.IntrinsicKeyword:return this.createNode(a,{type:fr.AST_NODE_TYPES["TS".concat(ir[a.kind])]});case ir.NonNullExpression:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.TSNonNullExpression,expression:this.convertChild(a.expression)});return this.convertChainExpression(p,a)}case ir.TypeLiteral:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSTypeLiteral,members:a.members.map(p=>this.convertChild(p))});case ir.ArrayType:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSArrayType,elementType:this.convertType(a.elementType)});case ir.IndexedAccessType:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSIndexedAccessType,objectType:this.convertType(a.objectType),indexType:this.convertType(a.indexType)});case ir.ConditionalType:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSConditionalType,checkType:this.convertType(a.checkType),extendsType:this.convertType(a.extendsType),trueType:this.convertType(a.trueType),falseType:this.convertType(a.falseType)});case ir.TypeQuery:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSTypeQuery,exprName:this.convertType(a.exprName)});case ir.MappedType:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.TSMappedType,typeParameter:this.convertType(a.typeParameter),nameType:(H=this.convertType(a.nameType))!==null&&H!==void 0?H:null});return a.readonlyToken&&(a.readonlyToken.kind===ir.ReadonlyKeyword?p.readonly=!0:p.readonly=(0,wr.getTextForTokenKind)(a.readonlyToken.kind)),a.questionToken&&(a.questionToken.kind===ir.QuestionToken?p.optional=!0:p.optional=(0,wr.getTextForTokenKind)(a.questionToken.kind)),a.type&&(p.typeAnnotation=this.convertType(a.type)),p}case ir.ParenthesizedExpression:return this.convertChild(a.expression,O);case ir.TypeAliasDeclaration:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.TSTypeAliasDeclaration,id:this.convertChild(a.name),typeAnnotation:this.convertType(a.type)});return(0,wr.hasModifier)(ir.DeclareKeyword,a)&&(p.declare=!0),a.typeParameters&&(p.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(a.typeParameters)),this.fixExports(a,p)}case ir.MethodSignature:return this.convertMethodSignature(a);case ir.PropertySignature:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.TSPropertySignature,optional:(0,wr.isOptional)(a)||void 0,computed:(0,wr.isComputedProperty)(a.name),key:this.convertChild(a.name),typeAnnotation:a.type?this.convertTypeAnnotation(a.type,a):void 0,initializer:this.convertChild(a.initializer)||void 0,readonly:(0,wr.hasModifier)(ir.ReadonlyKeyword,a)||void 0,static:(0,wr.hasModifier)(ir.StaticKeyword,a)||void 0,export:(0,wr.hasModifier)(ir.ExportKeyword,a)||void 0}),C=(0,wr.getTSNodeAccessibility)(a);return C&&(p.accessibility=C),p}case ir.IndexSignature:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.TSIndexSignature,parameters:a.parameters.map(G=>this.convertChild(G))});a.type&&(p.typeAnnotation=this.convertTypeAnnotation(a.type,a)),(0,wr.hasModifier)(ir.ReadonlyKeyword,a)&&(p.readonly=!0);let C=(0,wr.getTSNodeAccessibility)(a);return C&&(p.accessibility=C),(0,wr.hasModifier)(ir.ExportKeyword,a)&&(p.export=!0),(0,wr.hasModifier)(ir.StaticKeyword,a)&&(p.static=!0),p}case ir.ConstructorType:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.TSConstructorType,params:this.convertParameters(a.parameters),abstract:(0,wr.hasModifier)(ir.AbstractKeyword,a)});return a.type&&(p.returnType=this.convertTypeAnnotation(a.type,a)),a.typeParameters&&(p.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(a.typeParameters)),p}case ir.FunctionType:case ir.ConstructSignature:case ir.CallSignature:{let p=a.kind===ir.ConstructSignature?fr.AST_NODE_TYPES.TSConstructSignatureDeclaration:a.kind===ir.CallSignature?fr.AST_NODE_TYPES.TSCallSignatureDeclaration:fr.AST_NODE_TYPES.TSFunctionType,C=this.createNode(a,{type:p,params:this.convertParameters(a.parameters)});return a.type&&(C.returnType=this.convertTypeAnnotation(a.type,a)),a.typeParameters&&(C.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(a.typeParameters)),C}case ir.ExpressionWithTypeArguments:{let p=this.createNode(a,{type:O&&O.kind===ir.InterfaceDeclaration?fr.AST_NODE_TYPES.TSInterfaceHeritage:fr.AST_NODE_TYPES.TSClassImplements,expression:this.convertChild(a.expression)});return a.typeArguments&&(p.typeParameters=this.convertTypeArgumentsToTypeParameters(a.typeArguments,a)),p}case ir.InterfaceDeclaration:{let p=(se=a.heritageClauses)!==null&&se!==void 0?se:[],C=this.createNode(a,{type:fr.AST_NODE_TYPES.TSInterfaceDeclaration,body:this.createNode(a,{type:fr.AST_NODE_TYPES.TSInterfaceBody,body:a.members.map(G=>this.convertChild(G)),range:[a.members.pos-1,a.end]}),id:this.convertChild(a.name)});if(a.typeParameters&&(C.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(a.typeParameters)),p.length>0){let G=[],E=[];for(let ue of p)if(ue.token===ir.ExtendsKeyword)for(let B of ue.types)G.push(this.convertChild(B,a));else for(let B of ue.types)E.push(this.convertChild(B,a));G.length&&(C.extends=G),E.length&&(C.implements=E)}return(0,wr.hasModifier)(ir.AbstractKeyword,a)&&(C.abstract=!0),(0,wr.hasModifier)(ir.DeclareKeyword,a)&&(C.declare=!0),this.fixExports(a,C)}case ir.TypePredicate:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.TSTypePredicate,asserts:a.assertsModifier!==void 0,parameterName:this.convertChild(a.parameterName),typeAnnotation:null});return a.type&&(p.typeAnnotation=this.convertTypeAnnotation(a.type,a),p.typeAnnotation.loc=p.typeAnnotation.typeAnnotation.loc,p.typeAnnotation.range=p.typeAnnotation.typeAnnotation.range),p}case ir.ImportType:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSImportType,isTypeOf:!!a.isTypeOf,parameter:this.convertChild(a.argument),qualifier:this.convertChild(a.qualifier),typeParameters:a.typeArguments?this.convertTypeArgumentsToTypeParameters(a.typeArguments,a):null});case ir.EnumDeclaration:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.TSEnumDeclaration,id:this.convertChild(a.name),members:a.members.map(C=>this.convertChild(C))});return this.applyModifiersToResult(p,a.modifiers),this.fixExports(a,p)}case ir.EnumMember:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.TSEnumMember,id:this.convertChild(a.name)});return a.initializer&&(p.initializer=this.convertChild(a.initializer)),a.name.kind===ni.SyntaxKind.ComputedPropertyName&&(p.computed=!0),p}case ir.ModuleDeclaration:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.TSModuleDeclaration,id:this.convertChild(a.name)});return a.body&&(p.body=this.convertChild(a.body)),this.applyModifiersToResult(p,a.modifiers),a.flags&ni.NodeFlags.GlobalAugmentation&&(p.global=!0),this.fixExports(a,p)}case ir.ParenthesizedType:return this.convertType(a.type);case ir.UnionType:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSUnionType,types:a.types.map(p=>this.convertType(p))});case ir.IntersectionType:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSIntersectionType,types:a.types.map(p=>this.convertType(p))});case ir.AsExpression:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSAsExpression,expression:this.convertChild(a.expression),typeAnnotation:this.convertType(a.type)});case ir.InferType:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSInferType,typeParameter:this.convertType(a.typeParameter)});case ir.LiteralType:return Mr.typescriptVersionIsAtLeast["4.0"]&&a.literal.kind===ir.NullKeyword?this.createNode(a.literal,{type:fr.AST_NODE_TYPES.TSNullKeyword}):this.createNode(a,{type:fr.AST_NODE_TYPES.TSLiteralType,literal:this.convertType(a.literal)});case ir.TypeAssertionExpression:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSTypeAssertion,typeAnnotation:this.convertType(a.type),expression:this.convertChild(a.expression)});case ir.ImportEqualsDeclaration:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSImportEqualsDeclaration,id:this.convertChild(a.name),moduleReference:this.convertChild(a.moduleReference),importKind:a.isTypeOnly?"type":"value",isExport:(0,wr.hasModifier)(ir.ExportKeyword,a)});case ir.ExternalModuleReference:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSExternalModuleReference,expression:this.convertChild(a.expression)});case ir.NamespaceExportDeclaration:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSNamespaceExportDeclaration,id:this.convertChild(a.name)});case ir.AbstractKeyword:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSAbstractKeyword});case ir.TupleType:{let p="elementTypes"in a?a.elementTypes.map(C=>this.convertType(C)):a.elements.map(C=>this.convertType(C));return this.createNode(a,{type:fr.AST_NODE_TYPES.TSTupleType,elementTypes:p})}case ir.NamedTupleMember:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.TSNamedTupleMember,elementType:this.convertType(a.type,a),label:this.convertChild(a.name,a),optional:a.questionToken!=null});return a.dotDotDotToken?(p.range[0]=p.label.range[0],p.loc.start=p.label.loc.start,this.createNode(a,{type:fr.AST_NODE_TYPES.TSRestType,typeAnnotation:p})):p}case ir.OptionalType:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSOptionalType,typeAnnotation:this.convertType(a.type)});case ir.RestType:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSRestType,typeAnnotation:this.convertType(a.type)});case ir.TemplateLiteralType:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.TSTemplateLiteralType,quasis:[this.convertChild(a.head)],types:[]});return a.templateSpans.forEach(C=>{p.types.push(this.convertChild(C.type)),p.quasis.push(this.convertChild(C.literal))}),p}case ir.ClassStaticBlockDeclaration:return this.createNode(a,{type:fr.AST_NODE_TYPES.StaticBlock,body:this.convertBodyExpressions(a.body.statements,a)});case ir.AssertEntry:return this.createNode(a,{type:fr.AST_NODE_TYPES.ImportAttribute,key:this.convertChild(a.name),value:this.convertChild(a.value)});default:return this.deeplyCopy(a)}}};R.Converter=e}}),Ed={};t1(Ed,{__assign:()=>r1,__asyncDelegator:()=>uU,__asyncGenerator:()=>cU,__asyncValues:()=>lU,__await:()=>Fy,__awaiter:()=>iU,__classPrivateFieldGet:()=>dU,__classPrivateFieldSet:()=>gU,__createBinding:()=>aU,__decorate:()=>Zj,__exportStar:()=>nU,__extends:()=>Yj,__generator:()=>tU,__importDefault:()=>pU,__importStar:()=>_U,__makeTemplateObject:()=>fU,__metadata:()=>rU,__param:()=>eU,__read:()=>AN,__rest:()=>$j,__spread:()=>oU,__spreadArrays:()=>sU,__values:()=>DT});function Yj(R,te){e1(R,te);function qe(){this.constructor=R}R.prototype=te===null?Object.create(te):(qe.prototype=te.prototype,new qe)}function $j(R,te){var qe={};for(var Ve in R)Object.prototype.hasOwnProperty.call(R,Ve)&&te.indexOf(Ve)<0&&(qe[Ve]=R[Ve]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ni=0,Ve=Object.getOwnPropertySymbols(R);ni<Ve.length;ni++)te.indexOf(Ve[ni])<0&&Object.prototype.propertyIsEnumerable.call(R,Ve[ni])&&(qe[Ve[ni]]=R[Ve[ni]]);return qe}function Zj(R,te,qe,Ve){var ni=arguments.length,wr=ni<3?te:Ve===null?Ve=Object.getOwnPropertyDescriptor(te,qe):Ve,fr;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")wr=Reflect.decorate(R,te,qe,Ve);else for(var Mr=R.length-1;Mr>=0;Mr--)(fr=R[Mr])&&(wr=(ni<3?fr(wr):ni>3?fr(te,qe,wr):fr(te,qe))||wr);return ni>3&&wr&&Object.defineProperty(te,qe,wr),wr}function eU(R,te){return function(qe,Ve){te(qe,Ve,R)}}function rU(R,te){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(R,te)}function iU(R,te,qe,Ve){function ni(wr){return wr instanceof qe?wr:new qe(function(fr){fr(wr)})}return new(qe||(qe=Promise))(function(wr,fr){function Mr(e){try{Pe(Ve.next(e))}catch(a){fr(a)}}function ir(e){try{Pe(Ve.throw(e))}catch(a){fr(a)}}function Pe(e){e.done?wr(e.value):ni(e.value).then(Mr,ir)}Pe((Ve=Ve.apply(R,te||[])).next())})}function tU(R,te){var qe={label:0,sent:function(){if(wr[0]&1)throw wr[1];return wr[1]},trys:[],ops:[]},Ve,ni,wr,fr;return fr={next:Mr(0),throw:Mr(1),return:Mr(2)},typeof Symbol=="function"&&(fr[Symbol.iterator]=function(){return this}),fr;function Mr(Pe){return function(e){return ir([Pe,e])}}function ir(Pe){if(Ve)throw new TypeError("Generator is already executing.");for(;qe;)try{if(Ve=1,ni&&(wr=Pe[0]&2?ni.return:Pe[0]?ni.throw||((wr=ni.return)&&wr.call(ni),0):ni.next)&&!(wr=wr.call(ni,Pe[1])).done)return wr;switch(ni=0,wr&&(Pe=[Pe[0]&2,wr.value]),Pe[0]){case 0:case 1:wr=Pe;break;case 4:return qe.label++,{value:Pe[1],done:!1};case 5:qe.label++,ni=Pe[1],Pe=[0];continue;case 7:Pe=qe.ops.pop(),qe.trys.pop();continue;default:if(wr=qe.trys,!(wr=wr.length>0&&wr[wr.length-1])&&(Pe[0]===6||Pe[0]===2)){qe=0;continue}if(Pe[0]===3&&(!wr||Pe[1]>wr[0]&&Pe[1]<wr[3])){qe.label=Pe[1];break}if(Pe[0]===6&&qe.label<wr[1]){qe.label=wr[1],wr=Pe;break}if(wr&&qe.label<wr[2]){qe.label=wr[2],qe.ops.push(Pe);break}wr[2]&&qe.ops.pop(),qe.trys.pop();continue}Pe=te.call(R,qe)}catch(e){Pe=[6,e],ni=0}finally{Ve=wr=0}if(Pe[0]&5)throw Pe[1];return{value:Pe[0]?Pe[1]:void 0,done:!0}}}function aU(R,te,qe,Ve){Ve===void 0&&(Ve=qe),R[Ve]=te[qe]}function nU(R,te){for(var qe in R)qe!=="default"&&!te.hasOwnProperty(qe)&&(te[qe]=R[qe])}function DT(R){var te=typeof Symbol=="function"&&Symbol.iterator,qe=te&&R[te],Ve=0;if(qe)return qe.call(R);if(R&&typeof R.length=="number")return{next:function(){return R&&Ve>=R.length&&(R=void 0),{value:R&&R[Ve++],done:!R}}};throw new TypeError(te?"Object is not iterable.":"Symbol.iterator is not defined.")}function AN(R,te){var qe=typeof Symbol=="function"&&R[Symbol.iterator];if(!qe)return R;var Ve=qe.call(R),ni,wr=[],fr;try{for(;(te===void 0||te-- >0)&&!(ni=Ve.next()).done;)wr.push(ni.value)}catch(Mr){fr={error:Mr}}finally{try{ni&&!ni.done&&(qe=Ve.return)&&qe.call(Ve)}finally{if(fr)throw fr.error}}return wr}function oU(){for(var R=[],te=0;te<arguments.length;te++)R=R.concat(AN(arguments[te]));return R}function sU(){for(var R=0,te=0,qe=arguments.length;te<qe;te++)R+=arguments[te].length;for(var Ve=Array(R),ni=0,te=0;te<qe;te++)for(var wr=arguments[te],fr=0,Mr=wr.length;fr<Mr;fr++,ni++)Ve[ni]=wr[fr];return Ve}function Fy(R){return this instanceof Fy?(this.v=R,this):new Fy(R)}function cU(R,te,qe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ve=qe.apply(R,te||[]),ni,wr=[];return ni={},fr("next"),fr("throw"),fr("return"),ni[Symbol.asyncIterator]=function(){return this},ni;function fr(O){Ve[O]&&(ni[O]=function(L){return new Promise(function(W,N){wr.push([O,L,W,N])>1||Mr(O,L)})})}function Mr(O,L){try{ir(Ve[O](L))}catch(W){a(wr[0][3],W)}}function ir(O){O.value instanceof Fy?Promise.resolve(O.value.v).then(Pe,e):a(wr[0][2],O)}function Pe(O){Mr("next",O)}function e(O){Mr("throw",O)}function a(O,L){O(L),wr.shift(),wr.length&&Mr(wr[0][0],wr[0][1])}}function uU(R){var te,qe;return te={},Ve("next"),Ve("throw",function(ni){throw ni}),Ve("return"),te[Symbol.iterator]=function(){return this},te;function Ve(ni,wr){te[ni]=R[ni]?function(fr){return(qe=!qe)?{value:Fy(R[ni](fr)),done:ni==="return"}:wr?wr(fr):fr}:wr}}function lU(R){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var te=R[Symbol.asyncIterator],qe;return te?te.call(R):(R=typeof DT=="function"?DT(R):R[Symbol.iterator](),qe={},Ve("next"),Ve("throw"),Ve("return"),qe[Symbol.asyncIterator]=function(){return this},qe);function Ve(wr){qe[wr]=R[wr]&&function(fr){return new Promise(function(Mr,ir){fr=R[wr](fr),ni(Mr,ir,fr.done,fr.value)})}}function ni(wr,fr,Mr,ir){Promise.resolve(ir).then(function(Pe){wr({value:Pe,done:Mr})},fr)}}function fU(R,te){return Object.defineProperty?Object.defineProperty(R,"raw",{value:te}):R.raw=te,R}function _U(R){if(R&&R.__esModule)return R;var te={};if(R!=null)for(var qe in R)Object.hasOwnProperty.call(R,qe)&&(te[qe]=R[qe]);return te.default=R,te}function pU(R){return R&&R.__esModule?R:{default:R}}function dU(R,te){if(!te.has(R))throw new TypeError("attempted to get private field on non-instance");return te.get(R)}function gU(R,te,qe){if(!te.has(R))throw new TypeError("attempted to set private field on non-instance");return te.set(R,qe),qe}var e1,r1,Kd=My({"node_modules/tslib/tslib.es6.js"(){Sa(),e1=function(R,te){return e1=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(qe,Ve){qe.__proto__=Ve}||function(qe,Ve){for(var ni in Ve)Ve.hasOwnProperty(ni)&&(qe[ni]=Ve[ni])},e1(R,te)},r1=function(){return r1=Object.assign||function(te){for(var qe,Ve=1,ni=arguments.length;Ve<ni;Ve++){qe=arguments[Ve];for(var wr in qe)Object.prototype.hasOwnProperty.call(qe,wr)&&(te[wr]=qe[wr])}return te},r1.apply(this,arguments)}}}),mU=Aa({"node_modules/tsutils/typeguard/2.8/node.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.isExpressionStatement=R.isExpression=R.isExportSpecifier=R.isExportDeclaration=R.isExportAssignment=R.isEnumMember=R.isEnumDeclaration=R.isEntityNameExpression=R.isEntityName=R.isEmptyStatement=R.isElementAccessExpression=R.isDoStatement=R.isDeleteExpression=R.isDefaultClause=R.isDecorator=R.isDebuggerStatement=R.isComputedPropertyName=R.isContinueStatement=R.isConstructSignatureDeclaration=R.isConstructorTypeNode=R.isConstructorDeclaration=R.isConditionalTypeNode=R.isConditionalExpression=R.isCommaListExpression=R.isClassLikeDeclaration=R.isClassExpression=R.isClassDeclaration=R.isCatchClause=R.isCaseOrDefaultClause=R.isCaseClause=R.isCaseBlock=R.isCallSignatureDeclaration=R.isCallLikeExpression=R.isCallExpression=R.isBreakStatement=R.isBreakOrContinueStatement=R.isBooleanLiteral=R.isBlockLike=R.isBlock=R.isBindingPattern=R.isBindingElement=R.isBinaryExpression=R.isAwaitExpression=R.isAssertionExpression=R.isAsExpression=R.isArrowFunction=R.isArrayTypeNode=R.isArrayLiteralExpression=R.isArrayBindingPattern=R.isAccessorDeclaration=void 0,R.isNamespaceImport=R.isNamespaceDeclaration=R.isNamedImports=R.isNamedExports=R.isModuleDeclaration=R.isModuleBlock=R.isMethodSignature=R.isMethodDeclaration=R.isMetaProperty=R.isMappedTypeNode=R.isLiteralTypeNode=R.isLiteralExpression=R.isLabeledStatement=R.isJsxText=R.isJsxSpreadAttribute=R.isJsxSelfClosingElement=R.isJsxOpeningLikeElement=R.isJsxOpeningFragment=R.isJsxOpeningElement=R.isJsxFragment=R.isJsxExpression=R.isJsxElement=R.isJsxClosingFragment=R.isJsxClosingElement=R.isJsxAttributes=R.isJsxAttributeLike=R.isJsxAttribute=R.isJsDoc=R.isIterationStatement=R.isIntersectionTypeNode=R.isInterfaceDeclaration=R.isInferTypeNode=R.isIndexSignatureDeclaration=R.isIndexedAccessTypeNode=R.isImportSpecifier=R.isImportEqualsDeclaration=R.isImportDeclaration=R.isImportClause=R.isIfStatement=R.isIdentifier=R.isGetAccessorDeclaration=R.isFunctionTypeNode=R.isFunctionExpression=R.isFunctionDeclaration=R.isForStatement=R.isForOfStatement=R.isForInOrOfStatement=R.isForInStatement=R.isExternalModuleReference=R.isExpressionWithTypeArguments=void 0,R.isVariableStatement=R.isVariableDeclaration=R.isUnionTypeNode=R.isTypeQueryNode=R.isTypeReferenceNode=R.isTypePredicateNode=R.isTypeParameterDeclaration=R.isTypeOperatorNode=R.isTypeOfExpression=R.isTypeLiteralNode=R.isTypeAssertion=R.isTypeAliasDeclaration=R.isTupleTypeNode=R.isTryStatement=R.isThrowStatement=R.isTextualLiteral=R.isTemplateLiteral=R.isTemplateExpression=R.isTaggedTemplateExpression=R.isSyntaxList=R.isSwitchStatement=R.isStringLiteral=R.isSpreadElement=R.isSpreadAssignment=R.isSourceFile=R.isSignatureDeclaration=R.isShorthandPropertyAssignment=R.isSetAccessorDeclaration=R.isReturnStatement=R.isRegularExpressionLiteral=R.isQualifiedName=R.isPropertySignature=R.isPropertyDeclaration=R.isPropertyAssignment=R.isPropertyAccessExpression=R.isPrefixUnaryExpression=R.isPostfixUnaryExpression=R.isParenthesizedTypeNode=R.isParenthesizedExpression=R.isParameterDeclaration=R.isOmittedExpression=R.isObjectLiteralExpression=R.isObjectBindingPattern=R.isNumericOrStringLikeLiteral=R.isNumericLiteral=R.isNullLiteral=R.isNoSubstitutionTemplateLiteral=R.isNonNullExpression=R.isNewExpression=R.isNamespaceExportDeclaration=void 0,R.isWithStatement=R.isWhileStatement=R.isVoidExpression=R.isVariableDeclarationList=void 0;var te=Lu();function qe(qr){return qr.kind===te.SyntaxKind.GetAccessor||qr.kind===te.SyntaxKind.SetAccessor}R.isAccessorDeclaration=qe;function Ve(qr){return qr.kind===te.SyntaxKind.ArrayBindingPattern}R.isArrayBindingPattern=Ve;function ni(qr){return qr.kind===te.SyntaxKind.ArrayLiteralExpression}R.isArrayLiteralExpression=ni;function wr(qr){return qr.kind===te.SyntaxKind.ArrayType}R.isArrayTypeNode=wr;function fr(qr){return qr.kind===te.SyntaxKind.ArrowFunction}R.isArrowFunction=fr;function Mr(qr){return qr.kind===te.SyntaxKind.AsExpression}R.isAsExpression=Mr;function ir(qr){return qr.kind===te.SyntaxKind.AsExpression||qr.kind===te.SyntaxKind.TypeAssertionExpression}R.isAssertionExpression=ir;function Pe(qr){return qr.kind===te.SyntaxKind.AwaitExpression}R.isAwaitExpression=Pe;function e(qr){return qr.kind===te.SyntaxKind.BinaryExpression}R.isBinaryExpression=e;function a(qr){return qr.kind===te.SyntaxKind.BindingElement}R.isBindingElement=a;function O(qr){return qr.kind===te.SyntaxKind.ArrayBindingPattern||qr.kind===te.SyntaxKind.ObjectBindingPattern}R.isBindingPattern=O;function L(qr){return qr.kind===te.SyntaxKind.Block}R.isBlock=L;function W(qr){return qr.statements!==void 0}R.isBlockLike=W;function N(qr){return qr.kind===te.SyntaxKind.TrueKeyword||qr.kind===te.SyntaxKind.FalseKeyword}R.isBooleanLiteral=N;function Q(qr){return qr.kind===te.SyntaxKind.BreakStatement||qr.kind===te.SyntaxKind.ContinueStatement}R.isBreakOrContinueStatement=Q;function pe(qr){return qr.kind===te.SyntaxKind.BreakStatement}R.isBreakStatement=pe;function F(qr){return qr.kind===te.SyntaxKind.CallExpression}R.isCallExpression=F;function g(qr){switch(qr.kind){case te.SyntaxKind.CallExpression:case te.SyntaxKind.Decorator:case te.SyntaxKind.JsxOpeningElement:case te.SyntaxKind.JsxSelfClosingElement:case te.SyntaxKind.NewExpression:case te.SyntaxKind.TaggedTemplateExpression:return!0;default:return!1}}R.isCallLikeExpression=g;function S(qr){return qr.kind===te.SyntaxKind.CallSignature}R.isCallSignatureDeclaration=S;function H(qr){return qr.kind===te.SyntaxKind.CaseBlock}R.isCaseBlock=H;function se(qr){return qr.kind===te.SyntaxKind.CaseClause}R.isCaseClause=se;function p(qr){return qr.kind===te.SyntaxKind.CaseClause||qr.kind===te.SyntaxKind.DefaultClause}R.isCaseOrDefaultClause=p;function C(qr){return qr.kind===te.SyntaxKind.CatchClause}R.isCatchClause=C;function G(qr){return qr.kind===te.SyntaxKind.ClassDeclaration}R.isClassDeclaration=G;function E(qr){return qr.kind===te.SyntaxKind.ClassExpression}R.isClassExpression=E;function ue(qr){return qr.kind===te.SyntaxKind.ClassDeclaration||qr.kind===te.SyntaxKind.ClassExpression}R.isClassLikeDeclaration=ue;function B(qr){return qr.kind===te.SyntaxKind.CommaListExpression}R.isCommaListExpression=B;function re(qr){return qr.kind===te.SyntaxKind.ConditionalExpression}R.isConditionalExpression=re;function M(qr){return qr.kind===te.SyntaxKind.ConditionalType}R.isConditionalTypeNode=M;function x(qr){return qr.kind===te.SyntaxKind.Constructor}R.isConstructorDeclaration=x;function ie(qr){return qr.kind===te.SyntaxKind.ConstructorType}R.isConstructorTypeNode=ie;function _e(qr){return qr.kind===te.SyntaxKind.ConstructSignature}R.isConstructSignatureDeclaration=_e;function Y(qr){return qr.kind===te.SyntaxKind.ContinueStatement}R.isContinueStatement=Y;function Z(qr){return qr.kind===te.SyntaxKind.ComputedPropertyName}R.isComputedPropertyName=Z;function k(qr){return qr.kind===te.SyntaxKind.DebuggerStatement}R.isDebuggerStatement=k;function I(qr){return qr.kind===te.SyntaxKind.Decorator}R.isDecorator=I;function ne(qr){return qr.kind===te.SyntaxKind.DefaultClause}R.isDefaultClause=ne;function ee(qr){return qr.kind===te.SyntaxKind.DeleteExpression}R.isDeleteExpression=ee;function A(qr){return qr.kind===te.SyntaxKind.DoStatement}R.isDoStatement=A;function f(qr){return qr.kind===te.SyntaxKind.ElementAccessExpression}R.isElementAccessExpression=f;function P(qr){return qr.kind===te.SyntaxKind.EmptyStatement}R.isEmptyStatement=P;function D(qr){return qr.kind===te.SyntaxKind.Identifier||We(qr)}R.isEntityName=D;function l(qr){return qr.kind===te.SyntaxKind.Identifier||Oe(qr)&&l(qr.expression)}R.isEntityNameExpression=l;function _(qr){return qr.kind===te.SyntaxKind.EnumDeclaration}R.isEnumDeclaration=_;function J(qr){return qr.kind===te.SyntaxKind.EnumMember}R.isEnumMember=J;function w(qr){return qr.kind===te.SyntaxKind.ExportAssignment}R.isExportAssignment=w;function j(qr){return qr.kind===te.SyntaxKind.ExportDeclaration}R.isExportDeclaration=j;function U(qr){return qr.kind===te.SyntaxKind.ExportSpecifier}R.isExportSpecifier=U;function z(qr){switch(qr.kind){case te.SyntaxKind.ArrayLiteralExpression:case te.SyntaxKind.ArrowFunction:case te.SyntaxKind.AsExpression:case te.SyntaxKind.AwaitExpression:case te.SyntaxKind.BinaryExpression:case te.SyntaxKind.CallExpression:case te.SyntaxKind.ClassExpression:case te.SyntaxKind.CommaListExpression:case te.SyntaxKind.ConditionalExpression:case te.SyntaxKind.DeleteExpression:case te.SyntaxKind.ElementAccessExpression:case te.SyntaxKind.FalseKeyword:case te.SyntaxKind.FunctionExpression:case te.SyntaxKind.Identifier:case te.SyntaxKind.JsxElement:case te.SyntaxKind.JsxFragment:case te.SyntaxKind.JsxExpression:case te.SyntaxKind.JsxOpeningElement:case te.SyntaxKind.JsxOpeningFragment:case te.SyntaxKind.JsxSelfClosingElement:case te.SyntaxKind.MetaProperty:case te.SyntaxKind.NewExpression:case te.SyntaxKind.NonNullExpression:case te.SyntaxKind.NoSubstitutionTemplateLiteral:case te.SyntaxKind.NullKeyword:case te.SyntaxKind.NumericLiteral:case te.SyntaxKind.ObjectLiteralExpression:case te.SyntaxKind.OmittedExpression:case te.SyntaxKind.ParenthesizedExpression:case te.SyntaxKind.PostfixUnaryExpression:case te.SyntaxKind.PrefixUnaryExpression:case te.SyntaxKind.PropertyAccessExpression:case te.SyntaxKind.RegularExpressionLiteral:case te.SyntaxKind.SpreadElement:case te.SyntaxKind.StringLiteral:case te.SyntaxKind.SuperKeyword:case te.SyntaxKind.TaggedTemplateExpression:case te.SyntaxKind.TemplateExpression:case te.SyntaxKind.ThisKeyword:case te.SyntaxKind.TrueKeyword:case te.SyntaxKind.TypeAssertionExpression:case te.SyntaxKind.TypeOfExpression:case te.SyntaxKind.VoidExpression:case te.SyntaxKind.YieldExpression:return!0;default:return!1}}R.isExpression=z;function y(qr){return qr.kind===te.SyntaxKind.ExpressionStatement}R.isExpressionStatement=y;function oe(qr){return qr.kind===te.SyntaxKind.ExpressionWithTypeArguments}R.isExpressionWithTypeArguments=oe;function ve(qr){return qr.kind===te.SyntaxKind.ExternalModuleReference}R.isExternalModuleReference=ve;function ce(qr){return qr.kind===te.SyntaxKind.ForInStatement}R.isForInStatement=ce;function m(qr){return qr.kind===te.SyntaxKind.ForOfStatement||qr.kind===te.SyntaxKind.ForInStatement}R.isForInOrOfStatement=m;function de(qr){return qr.kind===te.SyntaxKind.ForOfStatement}R.isForOfStatement=de;function ae(qr){return qr.kind===te.SyntaxKind.ForStatement}R.isForStatement=ae;function V(qr){return qr.kind===te.SyntaxKind.FunctionDeclaration}R.isFunctionDeclaration=V;function le(qr){return qr.kind===te.SyntaxKind.FunctionExpression}R.isFunctionExpression=le;function ke(qr){return qr.kind===te.SyntaxKind.FunctionType}R.isFunctionTypeNode=ke;function Ue(qr){return qr.kind===te.SyntaxKind.GetAccessor}R.isGetAccessorDeclaration=Ue;function He(qr){return qr.kind===te.SyntaxKind.Identifier}R.isIdentifier=He;function ar(qr){return qr.kind===te.SyntaxKind.IfStatement}R.isIfStatement=ar;function gr(qr){return qr.kind===te.SyntaxKind.ImportClause}R.isImportClause=gr;function me(qr){return qr.kind===te.SyntaxKind.ImportDeclaration}R.isImportDeclaration=me;function Ge(qr){return qr.kind===te.SyntaxKind.ImportEqualsDeclaration}R.isImportEqualsDeclaration=Ge;function er(qr){return qr.kind===te.SyntaxKind.ImportSpecifier}R.isImportSpecifier=er;function he(qr){return qr.kind===te.SyntaxKind.IndexedAccessType}R.isIndexedAccessTypeNode=he;function we(qr){return qr.kind===te.SyntaxKind.IndexSignature}R.isIndexSignatureDeclaration=we;function ye(qr){return qr.kind===te.SyntaxKind.InferType}R.isInferTypeNode=ye;function Se(qr){return qr.kind===te.SyntaxKind.InterfaceDeclaration}R.isInterfaceDeclaration=Se;function ge(qr){return qr.kind===te.SyntaxKind.IntersectionType}R.isIntersectionTypeNode=ge;function Fe(qr){switch(qr.kind){case te.SyntaxKind.ForStatement:case te.SyntaxKind.ForOfStatement:case te.SyntaxKind.ForInStatement:case te.SyntaxKind.WhileStatement:case te.SyntaxKind.DoStatement:return!0;default:return!1}}R.isIterationStatement=Fe;function cr(qr){return qr.kind===te.SyntaxKind.JSDocComment}R.isJsDoc=cr;function ur(qr){return qr.kind===te.SyntaxKind.JsxAttribute}R.isJsxAttribute=ur;function Ir(qr){return qr.kind===te.SyntaxKind.JsxAttribute||qr.kind===te.SyntaxKind.JsxSpreadAttribute}R.isJsxAttributeLike=Ir;function dr(qr){return qr.kind===te.SyntaxKind.JsxAttributes}R.isJsxAttributes=dr;function Br(qr){return qr.kind===te.SyntaxKind.JsxClosingElement}R.isJsxClosingElement=Br;function Tr(qr){return qr.kind===te.SyntaxKind.JsxClosingFragment}R.isJsxClosingFragment=Tr;function n(qr){return qr.kind===te.SyntaxKind.JsxElement}R.isJsxElement=n;function Er(qr){return qr.kind===te.SyntaxKind.JsxExpression}R.isJsxExpression=Er;function br(qr){return qr.kind===te.SyntaxKind.JsxFragment}R.isJsxFragment=br;function Pr(qr){return qr.kind===te.SyntaxKind.JsxOpeningElement}R.isJsxOpeningElement=Pr;function Ce(qr){return qr.kind===te.SyntaxKind.JsxOpeningFragment}R.isJsxOpeningFragment=Ce;function Le(qr){return qr.kind===te.SyntaxKind.JsxOpeningElement||qr.kind===te.SyntaxKind.JsxSelfClosingElement}R.isJsxOpeningLikeElement=Le;function Xe(qr){return qr.kind===te.SyntaxKind.JsxSelfClosingElement}R.isJsxSelfClosingElement=Xe;function Cr(qr){return qr.kind===te.SyntaxKind.JsxSpreadAttribute}R.isJsxSpreadAttribute=Cr;function Lr(qr){return qr.kind===te.SyntaxKind.JsxText}R.isJsxText=Lr;function Jr(qr){return qr.kind===te.SyntaxKind.LabeledStatement}R.isLabeledStatement=Jr;function Rr(qr){return qr.kind>=te.SyntaxKind.FirstLiteralToken&&qr.kind<=te.SyntaxKind.LastLiteralToken}R.isLiteralExpression=Rr;function ci(qr){return qr.kind===te.SyntaxKind.LiteralType}R.isLiteralTypeNode=ci;function be(qr){return qr.kind===te.SyntaxKind.MappedType}R.isMappedTypeNode=be;function or(qr){return qr.kind===te.SyntaxKind.MetaProperty}R.isMetaProperty=or;function Kr(qr){return qr.kind===te.SyntaxKind.MethodDeclaration}R.isMethodDeclaration=Kr;function ei(qr){return qr.kind===te.SyntaxKind.MethodSignature}R.isMethodSignature=ei;function li(qr){return qr.kind===te.SyntaxKind.ModuleBlock}R.isModuleBlock=li;function Si(qr){return qr.kind===te.SyntaxKind.ModuleDeclaration}R.isModuleDeclaration=Si;function qi(qr){return qr.kind===te.SyntaxKind.NamedExports}R.isNamedExports=qi;function ft(qr){return qr.kind===te.SyntaxKind.NamedImports}R.isNamedImports=ft;function bt(qr){return Si(qr)&&qr.name.kind===te.SyntaxKind.Identifier&&qr.body!==void 0&&(qr.body.kind===te.SyntaxKind.ModuleBlock||bt(qr.body))}R.isNamespaceDeclaration=bt;function aa(qr){return qr.kind===te.SyntaxKind.NamespaceImport}R.isNamespaceImport=aa;function sr(qr){return qr.kind===te.SyntaxKind.NamespaceExportDeclaration}R.isNamespaceExportDeclaration=sr;function Ji(qr){return qr.kind===te.SyntaxKind.NewExpression}R.isNewExpression=Ji;function di(qr){return qr.kind===te.SyntaxKind.NonNullExpression}R.isNonNullExpression=di;function X(qr){return qr.kind===te.SyntaxKind.NoSubstitutionTemplateLiteral}R.isNoSubstitutionTemplateLiteral=X;function Ye(qr){return qr.kind===te.SyntaxKind.NullKeyword}R.isNullLiteral=Ye;function Be(qr){return qr.kind===te.SyntaxKind.NumericLiteral}R.isNumericLiteral=Be;function Qe(qr){switch(qr.kind){case te.SyntaxKind.StringLiteral:case te.SyntaxKind.NumericLiteral:case te.SyntaxKind.NoSubstitutionTemplateLiteral:return!0;default:return!1}}R.isNumericOrStringLikeLiteral=Qe;function _r(qr){return qr.kind===te.SyntaxKind.ObjectBindingPattern}R.isObjectBindingPattern=_r;function hr(qr){return qr.kind===te.SyntaxKind.ObjectLiteralExpression}R.isObjectLiteralExpression=hr;function Dr(qr){return qr.kind===te.SyntaxKind.OmittedExpression}R.isOmittedExpression=Dr;function Me(qr){return qr.kind===te.SyntaxKind.Parameter}R.isParameterDeclaration=Me;function v(qr){return qr.kind===te.SyntaxKind.ParenthesizedExpression}R.isParenthesizedExpression=v;function xe(qr){return qr.kind===te.SyntaxKind.ParenthesizedType}R.isParenthesizedTypeNode=xe;function ze(qr){return qr.kind===te.SyntaxKind.PostfixUnaryExpression}R.isPostfixUnaryExpression=ze;function Je(qr){return qr.kind===te.SyntaxKind.PrefixUnaryExpression}R.isPrefixUnaryExpression=Je;function Oe(qr){return qr.kind===te.SyntaxKind.PropertyAccessExpression}R.isPropertyAccessExpression=Oe;function Fr(qr){return qr.kind===te.SyntaxKind.PropertyAssignment}R.isPropertyAssignment=Fr;function Xr(qr){return qr.kind===te.SyntaxKind.PropertyDeclaration}R.isPropertyDeclaration=Xr;function Or(qr){return qr.kind===te.SyntaxKind.PropertySignature}R.isPropertySignature=Or;function We(qr){return qr.kind===te.SyntaxKind.QualifiedName}R.isQualifiedName=We;function mr(qr){return qr.kind===te.SyntaxKind.RegularExpressionLiteral}R.isRegularExpressionLiteral=mr;function Nr(qr){return qr.kind===te.SyntaxKind.ReturnStatement}R.isReturnStatement=Nr;function Ur(qr){return qr.kind===te.SyntaxKind.SetAccessor}R.isSetAccessorDeclaration=Ur;function si(qr){return qr.kind===te.SyntaxKind.ShorthandPropertyAssignment}R.isShorthandPropertyAssignment=si;function mi(qr){return qr.parameters!==void 0}R.isSignatureDeclaration=mi;function Ti(qr){return qr.kind===te.SyntaxKind.SourceFile}R.isSourceFile=Ti;function hi(qr){return qr.kind===te.SyntaxKind.SpreadAssignment}R.isSpreadAssignment=hi;function ki(qr){return qr.kind===te.SyntaxKind.SpreadElement}R.isSpreadElement=ki;function Ui(qr){return qr.kind===te.SyntaxKind.StringLiteral}R.isStringLiteral=Ui;function zi(qr){return qr.kind===te.SyntaxKind.SwitchStatement}R.isSwitchStatement=zi;function ri(qr){return qr.kind===te.SyntaxKind.SyntaxList}R.isSyntaxList=ri;function Gi(qr){return qr.kind===te.SyntaxKind.TaggedTemplateExpression}R.isTaggedTemplateExpression=Gi;function Rt(qr){return qr.kind===te.SyntaxKind.TemplateExpression}R.isTemplateExpression=Rt;function pa(qr){return qr.kind===te.SyntaxKind.TemplateExpression||qr.kind===te.SyntaxKind.NoSubstitutionTemplateLiteral}R.isTemplateLiteral=pa;function xt(qr){return qr.kind===te.SyntaxKind.StringLiteral||qr.kind===te.SyntaxKind.NoSubstitutionTemplateLiteral}R.isTextualLiteral=xt;function ua(qr){return qr.kind===te.SyntaxKind.ThrowStatement}R.isThrowStatement=ua;function Vt(qr){return qr.kind===te.SyntaxKind.TryStatement}R.isTryStatement=Vt;function St(qr){return qr.kind===te.SyntaxKind.TupleType}R.isTupleTypeNode=St;function Ci(qr){return qr.kind===te.SyntaxKind.TypeAliasDeclaration}R.isTypeAliasDeclaration=Ci;function Hi(qr){return qr.kind===te.SyntaxKind.TypeAssertionExpression}R.isTypeAssertion=Hi;function Yi(qr){return qr.kind===te.SyntaxKind.TypeLiteral}R.isTypeLiteralNode=Yi;function yt(qr){return qr.kind===te.SyntaxKind.TypeOfExpression}R.isTypeOfExpression=yt;function gt(qr){return qr.kind===te.SyntaxKind.TypeOperator}R.isTypeOperatorNode=gt;function oa(qr){return qr.kind===te.SyntaxKind.TypeParameter}R.isTypeParameterDeclaration=oa;function Bt(qr){return qr.kind===te.SyntaxKind.TypePredicate}R.isTypePredicateNode=Bt;function Pi(qr){return qr.kind===te.SyntaxKind.TypeReference}R.isTypeReferenceNode=Pi;function Oi(qr){return qr.kind===te.SyntaxKind.TypeQuery}R.isTypeQueryNode=Oi;function wi(qr){return qr.kind===te.SyntaxKind.UnionType}R.isUnionTypeNode=wi;function Qr(qr){return qr.kind===te.SyntaxKind.VariableDeclaration}R.isVariableDeclaration=Qr;function Ct(qr){return qr.kind===te.SyntaxKind.VariableStatement}R.isVariableStatement=Ct;function tt(qr){return qr.kind===te.SyntaxKind.VariableDeclarationList}R.isVariableDeclarationList=tt;function ta(qr){return qr.kind===te.SyntaxKind.VoidExpression}R.isVoidExpression=ta;function Xa(qr){return qr.kind===te.SyntaxKind.WhileStatement}R.isWhileStatement=Xa;function on(qr){return qr.kind===te.SyntaxKind.WithStatement}R.isWithStatement=on}}),vU=Aa({"node_modules/tsutils/typeguard/2.9/node.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.isImportTypeNode=void 0;var te=(Kd(),up(Ed));te.__exportStar(mU(),R);var qe=Lu();function Ve(ni){return ni.kind===qe.SyntaxKind.ImportType}R.isImportTypeNode=Ve}}),yU=Aa({"node_modules/tsutils/typeguard/3.0/node.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.isSyntheticExpression=R.isRestTypeNode=R.isOptionalTypeNode=void 0;var te=(Kd(),up(Ed));te.__exportStar(vU(),R);var qe=Lu();function Ve(fr){return fr.kind===qe.SyntaxKind.OptionalType}R.isOptionalTypeNode=Ve;function ni(fr){return fr.kind===qe.SyntaxKind.RestType}R.isRestTypeNode=ni;function wr(fr){return fr.kind===qe.SyntaxKind.SyntheticExpression}R.isSyntheticExpression=wr}}),PN=Aa({"node_modules/tsutils/typeguard/3.2/node.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.isBigIntLiteral=void 0;var te=(Kd(),up(Ed));te.__exportStar(yU(),R);var qe=Lu();function Ve(ni){return ni.kind===qe.SyntaxKind.BigIntLiteral}R.isBigIntLiteral=Ve}}),NN=Aa({"node_modules/tsutils/typeguard/node.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0});var te=(Kd(),up(Ed));te.__exportStar(PN(),R)}}),hU=Aa({"node_modules/tsutils/typeguard/2.8/type.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.isUniqueESSymbolType=R.isUnionType=R.isUnionOrIntersectionType=R.isTypeVariable=R.isTypeReference=R.isTypeParameter=R.isSubstitutionType=R.isObjectType=R.isLiteralType=R.isIntersectionType=R.isInterfaceType=R.isInstantiableType=R.isIndexedAccessype=R.isIndexedAccessType=R.isGenericType=R.isEnumType=R.isConditionalType=void 0;var te=Lu();function qe(g){return(g.flags&te.TypeFlags.Conditional)!==0}R.isConditionalType=qe;function Ve(g){return(g.flags&te.TypeFlags.Enum)!==0}R.isEnumType=Ve;function ni(g){return(g.flags&te.TypeFlags.Object)!==0&&(g.objectFlags&te.ObjectFlags.ClassOrInterface)!==0&&(g.objectFlags&te.ObjectFlags.Reference)!==0}R.isGenericType=ni;function wr(g){return(g.flags&te.TypeFlags.IndexedAccess)!==0}R.isIndexedAccessType=wr;function fr(g){return(g.flags&te.TypeFlags.Index)!==0}R.isIndexedAccessype=fr;function Mr(g){return(g.flags&te.TypeFlags.Instantiable)!==0}R.isInstantiableType=Mr;function ir(g){return(g.flags&te.TypeFlags.Object)!==0&&(g.objectFlags&te.ObjectFlags.ClassOrInterface)!==0}R.isInterfaceType=ir;function Pe(g){return(g.flags&te.TypeFlags.Intersection)!==0}R.isIntersectionType=Pe;function e(g){return(g.flags&(te.TypeFlags.StringOrNumberLiteral|te.TypeFlags.BigIntLiteral))!==0}R.isLiteralType=e;function a(g){return(g.flags&te.TypeFlags.Object)!==0}R.isObjectType=a;function O(g){return(g.flags&te.TypeFlags.Substitution)!==0}R.isSubstitutionType=O;function L(g){return(g.flags&te.TypeFlags.TypeParameter)!==0}R.isTypeParameter=L;function W(g){return(g.flags&te.TypeFlags.Object)!==0&&(g.objectFlags&te.ObjectFlags.Reference)!==0}R.isTypeReference=W;function N(g){return(g.flags&te.TypeFlags.TypeVariable)!==0}R.isTypeVariable=N;function Q(g){return(g.flags&te.TypeFlags.UnionOrIntersection)!==0}R.isUnionOrIntersectionType=Q;function pe(g){return(g.flags&te.TypeFlags.Union)!==0}R.isUnionType=pe;function F(g){return(g.flags&te.TypeFlags.UniqueESSymbol)!==0}R.isUniqueESSymbolType=F}}),HP=Aa({"node_modules/tsutils/typeguard/2.9/type.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0});var te=(Kd(),up(Ed));te.__exportStar(hU(),R)}}),DU=Aa({"node_modules/tsutils/typeguard/3.0/type.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.isTupleTypeReference=R.isTupleType=void 0;var te=(Kd(),up(Ed));te.__exportStar(HP(),R);var qe=Lu(),Ve=HP();function ni(fr){return(fr.flags&qe.TypeFlags.Object&&fr.objectFlags&qe.ObjectFlags.Tuple)!==0}R.isTupleType=ni;function wr(fr){return Ve.isTypeReference(fr)&&ni(fr.target)}R.isTupleTypeReference=wr}}),IN=Aa({"node_modules/tsutils/typeguard/3.2/type.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0});var te=(Kd(),up(Ed));te.__exportStar(DU(),R)}}),bU=Aa({"node_modules/tsutils/typeguard/3.2/index.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0});var te=(Kd(),up(Ed));te.__exportStar(PN(),R),te.__exportStar(IN(),R)}}),SU=Aa({"node_modules/tsutils/typeguard/type.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0});var te=(Kd(),up(Ed));te.__exportStar(IN(),R)}}),TU=Aa({"node_modules/tsutils/util/type.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.getBaseClassMemberOfClassElement=R.getIteratorYieldResultFromIteratorResult=R.getInstanceTypeOfClassLikeDeclaration=R.getConstructorTypeOfClassLikeDeclaration=R.getSymbolOfClassLikeDeclaration=R.getPropertyNameFromType=R.symbolHasReadonlyDeclaration=R.isPropertyReadonlyInType=R.getWellKnownSymbolPropertyOfType=R.getPropertyOfType=R.isBooleanLiteralType=R.isFalsyType=R.isThenableType=R.someTypePart=R.intersectionTypeParts=R.unionTypeParts=R.getCallSignaturesOfType=R.isTypeAssignableToString=R.isTypeAssignableToNumber=R.isOptionalChainingUndefinedMarkerType=R.removeOptionalChainingUndefinedMarkerType=R.removeOptionalityFromType=R.isEmptyObjectType=void 0;var te=Lu(),qe=SU(),Ve=wN(),ni=NN();function wr(k){if(qe.isObjectType(k)&&k.objectFlags&te.ObjectFlags.Anonymous&&k.getProperties().length===0&&k.getCallSignatures().length===0&&k.getConstructSignatures().length===0&&k.getStringIndexType()===void 0&&k.getNumberIndexType()===void 0){let I=k.getBaseTypes();return I===void 0||I.every(wr)}return!1}R.isEmptyObjectType=wr;function fr(k,I){if(!Mr(I,te.TypeFlags.Undefined))return I;let ne=Mr(I,te.TypeFlags.Null);return I=k.getNonNullableType(I),ne?k.getNullableType(I,te.TypeFlags.Null):I}R.removeOptionalityFromType=fr;function Mr(k,I){for(let ne of W(k))if(Ve.isTypeFlagSet(ne,I))return!0;return!1}function ir(k,I){if(!qe.isUnionType(I))return Pe(k,I)?I.getNonNullableType():I;let ne=0,ee=!1;for(let A of I.types)Pe(k,A)?ee=!0:ne|=A.flags;return ee?k.getNullableType(I.getNonNullableType(),ne):I}R.removeOptionalChainingUndefinedMarkerType=ir;function Pe(k,I){return Ve.isTypeFlagSet(I,te.TypeFlags.Undefined)&&k.getNullableType(I.getNonNullableType(),te.TypeFlags.Undefined)!==I}R.isOptionalChainingUndefinedMarkerType=Pe;function e(k,I){return O(k,I,te.TypeFlags.NumberLike)}R.isTypeAssignableToNumber=e;function a(k,I){return O(k,I,te.TypeFlags.StringLike)}R.isTypeAssignableToString=a;function O(k,I,ne){ne|=te.TypeFlags.Any;let ee;return function A(f){if(qe.isTypeParameter(f)&&f.symbol!==void 0&&f.symbol.declarations!==void 0){if(ee===void 0)ee=new Set([f]);else if(!ee.has(f))ee.add(f);else return!1;let P=f.symbol.declarations[0];return P.constraint===void 0?!0:A(k.getTypeFromTypeNode(P.constraint))}return qe.isUnionType(f)?f.types.every(A):qe.isIntersectionType(f)?f.types.some(A):Ve.isTypeFlagSet(f,ne)}(I)}function L(k){if(qe.isUnionType(k)){let I=[];for(let ne of k.types)I.push(...L(ne));return I}if(qe.isIntersectionType(k)){let I;for(let ne of k.types){let ee=L(ne);if(ee.length!==0){if(I!==void 0)return[];I=ee}}return I===void 0?[]:I}return k.getCallSignatures()}R.getCallSignaturesOfType=L;function W(k){return qe.isUnionType(k)?k.types:[k]}R.unionTypeParts=W;function N(k){return qe.isIntersectionType(k)?k.types:[k]}R.intersectionTypeParts=N;function Q(k,I,ne){return I(k)?k.types.some(ne):ne(k)}R.someTypePart=Q;function pe(k,I){let ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:k.getTypeAtLocation(I);for(let ee of W(k.getApparentType(ne))){let A=ee.getProperty("then");if(A===void 0)continue;let f=k.getTypeOfSymbolAtLocation(A,I);for(let P of W(f))for(let D of P.getCallSignatures())if(D.parameters.length!==0&&F(k,D.parameters[0],I))return!0}return!1}R.isThenableType=pe;function F(k,I,ne){let ee=k.getApparentType(k.getTypeOfSymbolAtLocation(I,ne));if(I.valueDeclaration.dotDotDotToken&&(ee=ee.getNumberIndexType(),ee===void 0))return!1;for(let A of W(ee))if(A.getCallSignatures().length!==0)return!0;return!1}function g(k){return k.flags&(te.TypeFlags.Undefined|te.TypeFlags.Null|te.TypeFlags.Void)?!0:qe.isLiteralType(k)?!k.value:S(k,!1)}R.isFalsyType=g;function S(k,I){return Ve.isTypeFlagSet(k,te.TypeFlags.BooleanLiteral)&&k.intrinsicName===(I?"true":"false")}R.isBooleanLiteralType=S;function H(k,I){return I.startsWith("__")?k.getProperties().find(ne=>ne.escapedName===I):k.getProperty(I)}R.getPropertyOfType=H;function se(k,I,ne){let ee="__@"+I;for(let A of k.getProperties()){if(!A.name.startsWith(ee))continue;let f=ne.getApparentType(ne.getTypeAtLocation(A.valueDeclaration.name.expression)).symbol;if(A.escapedName===p(ne,f,I))return A}}R.getWellKnownSymbolPropertyOfType=se;function p(k,I,ne){let ee=I&&k.getTypeOfSymbolAtLocation(I,I.valueDeclaration).getProperty(ne),A=ee&&k.getTypeOfSymbolAtLocation(ee,ee.valueDeclaration);return A&&qe.isUniqueESSymbolType(A)?A.escapedName:"__@"+ne}function C(k,I,ne){let ee=!1,A=!1;for(let f of W(k))if(H(f,I)===void 0){let P=(Ve.isNumericPropertyName(I)?ne.getIndexInfoOfType(f,te.IndexKind.Number):void 0)||ne.getIndexInfoOfType(f,te.IndexKind.String);if(P!==void 0&&P.isReadonly){if(ee)return!0;A=!0}}else{if(A||G(f,I,ne))return!0;ee=!0}return!1}R.isPropertyReadonlyInType=C;function G(k,I,ne){return Q(k,qe.isIntersectionType,ee=>{let A=H(ee,I);if(A===void 0)return!1;if(A.flags&te.SymbolFlags.Transient){if(/^(?:[1-9]\d*|0)$/.test(I)&&qe.isTupleTypeReference(ee))return ee.target.readonly;switch(E(ee,I,ne)){case!0:return!0;case!1:return!1;default:}}return Ve.isSymbolFlagSet(A,te.SymbolFlags.ValueModule)||ue(A,ne)})}function E(k,I,ne){if(!qe.isObjectType(k)||!Ve.isObjectFlagSet(k,te.ObjectFlags.Mapped))return;let ee=k.symbol.declarations[0];return ee.readonlyToken!==void 0&&!/^__@[^@]+$/.test(I)?ee.readonlyToken.kind!==te.SyntaxKind.MinusToken:C(k.modifiersType,I,ne)}function ue(k,I){return(k.flags&te.SymbolFlags.Accessor)===te.SymbolFlags.GetAccessor||k.declarations!==void 0&&k.declarations.some(ne=>Ve.isModifierFlagSet(ne,te.ModifierFlags.Readonly)||ni.isVariableDeclaration(ne)&&Ve.isNodeFlagSet(ne.parent,te.NodeFlags.Const)||ni.isCallExpression(ne)&&Ve.isReadonlyAssignmentDeclaration(ne,I)||ni.isEnumMember(ne)||(ni.isPropertyAssignment(ne)||ni.isShorthandPropertyAssignment(ne))&&Ve.isInConstContext(ne.parent))}R.symbolHasReadonlyDeclaration=ue;function B(k){if(k.flags&(te.TypeFlags.StringLiteral|te.TypeFlags.NumberLiteral)){let I=String(k.value);return{displayName:I,symbolName:te.escapeLeadingUnderscores(I)}}if(qe.isUniqueESSymbolType(k))return{displayName:"[".concat(k.symbol?"".concat(re(k.symbol)?"Symbol.":"").concat(k.symbol.name):k.escapedName.replace(/^__@|@\d+$/g,""),"]"),symbolName:k.escapedName}}R.getPropertyNameFromType=B;function re(k){return Ve.isSymbolFlagSet(k,te.SymbolFlags.Property)&&k.valueDeclaration!==void 0&&ni.isInterfaceDeclaration(k.valueDeclaration.parent)&&k.valueDeclaration.parent.name.text==="SymbolConstructor"&&M(k.valueDeclaration.parent)}function M(k){return Ve.isNodeFlagSet(k.parent,te.NodeFlags.GlobalAugmentation)||ni.isSourceFile(k.parent)&&!te.isExternalModule(k.parent)}function x(k,I){var ne;return I.getSymbolAtLocation((ne=k.name)!==null&&ne!==void 0?ne:Ve.getChildOfKind(k,te.SyntaxKind.ClassKeyword))}R.getSymbolOfClassLikeDeclaration=x;function ie(k,I){return k.kind===te.SyntaxKind.ClassExpression?I.getTypeAtLocation(k):I.getTypeOfSymbolAtLocation(x(k,I),k)}R.getConstructorTypeOfClassLikeDeclaration=ie;function _e(k,I){return k.kind===te.SyntaxKind.ClassDeclaration?I.getTypeAtLocation(k):I.getDeclaredTypeOfSymbol(x(k,I))}R.getInstanceTypeOfClassLikeDeclaration=_e;function Y(k,I,ne){return qe.isUnionType(k)&&k.types.find(ee=>{let A=ee.getProperty("done");return A!==void 0&&S(fr(ne,ne.getTypeOfSymbolAtLocation(A,I)),!1)})||k}R.getIteratorYieldResultFromIteratorResult=Y;function Z(k,I){if(!ni.isClassLikeDeclaration(k.parent))return;let ne=Ve.getBaseOfClassLikeExpression(k.parent);if(ne===void 0)return;let ee=Ve.getSingleLateBoundPropertyNameOfPropertyName(k.name,I);if(ee===void 0)return;let A=I.getTypeAtLocation(Ve.hasModifier(k.modifiers,te.SyntaxKind.StaticKeyword)?ne.expression:ne);return H(A,ee.symbolName)}R.getBaseClassMemberOfClassElement=Z}}),wN=Aa({"node_modules/tsutils/util/util.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.isValidIdentifier=R.getLineBreakStyle=R.getLineRanges=R.forEachComment=R.forEachTokenWithTrivia=R.forEachToken=R.isFunctionWithBody=R.hasOwnThisReference=R.isBlockScopeBoundary=R.isFunctionScopeBoundary=R.isTypeScopeBoundary=R.isScopeBoundary=R.ScopeBoundarySelector=R.ScopeBoundary=R.isInSingleStatementContext=R.isBlockScopedDeclarationStatement=R.isBlockScopedVariableDeclaration=R.isBlockScopedVariableDeclarationList=R.getVariableDeclarationKind=R.VariableDeclarationKind=R.forEachDeclaredVariable=R.forEachDestructuringIdentifier=R.getPropertyName=R.getWrappedNodeAtPosition=R.getAstNodeAtPosition=R.commentText=R.isPositionInComment=R.getCommentAtPosition=R.getTokenAtPosition=R.getNextToken=R.getPreviousToken=R.getNextStatement=R.getPreviousStatement=R.isModifierFlagSet=R.isObjectFlagSet=R.isSymbolFlagSet=R.isTypeFlagSet=R.isNodeFlagSet=R.hasAccessModifier=R.isParameterProperty=R.hasModifier=R.getModifier=R.isThisParameter=R.isKeywordKind=R.isJsDocKind=R.isTypeNodeKind=R.isAssignmentKind=R.isNodeKind=R.isTokenKind=R.getChildOfKind=void 0,R.getBaseOfClassLikeExpression=R.hasExhaustiveCaseClauses=R.formatPseudoBigInt=R.unwrapParentheses=R.getSingleLateBoundPropertyNameOfPropertyName=R.getLateBoundPropertyNamesOfPropertyName=R.getLateBoundPropertyNames=R.getPropertyNameOfWellKnownSymbol=R.isWellKnownSymbolLiterally=R.isBindableObjectDefinePropertyCall=R.isReadonlyAssignmentDeclaration=R.isInConstContext=R.isConstAssertion=R.getTsCheckDirective=R.getCheckJsDirective=R.isAmbientModule=R.isCompilerOptionEnabled=R.isStrictCompilerOptionEnabled=R.getIIFE=R.isAmbientModuleBlock=R.isStatementInAmbientContext=R.findImportLikeNodes=R.findImports=R.ImportKind=R.parseJsDocOfNode=R.getJsDoc=R.canHaveJsDoc=R.isReassignmentTarget=R.getAccessKind=R.AccessKind=R.isExpressionValueUsed=R.getDeclarationOfBindingElement=R.hasSideEffects=R.SideEffectOptions=R.isSameLine=R.isNumericPropertyName=R.isValidJsxIdentifier=R.isValidNumericLiteral=R.isValidPropertyName=R.isValidPropertyAccess=void 0;var te=Lu(),qe=NN(),Ve=bU(),ni=TU();function wr(X,Ye,Be){for(let Qe of X.getChildren(Be))if(Qe.kind===Ye)return Qe}R.getChildOfKind=wr;function fr(X){return X>=te.SyntaxKind.FirstToken&&X<=te.SyntaxKind.LastToken}R.isTokenKind=fr;function Mr(X){return X>=te.SyntaxKind.FirstNode}R.isNodeKind=Mr;function ir(X){return X>=te.SyntaxKind.FirstAssignment&&X<=te.SyntaxKind.LastAssignment}R.isAssignmentKind=ir;function Pe(X){return X>=te.SyntaxKind.FirstTypeNode&&X<=te.SyntaxKind.LastTypeNode}R.isTypeNodeKind=Pe;function e(X){return X>=te.SyntaxKind.FirstJSDocNode&&X<=te.SyntaxKind.LastJSDocNode}R.isJsDocKind=e;function a(X){return X>=te.SyntaxKind.FirstKeyword&&X<=te.SyntaxKind.LastKeyword}R.isKeywordKind=a;function O(X){return X.name.kind===te.SyntaxKind.Identifier&&X.name.originalKeywordKind===te.SyntaxKind.ThisKeyword}R.isThisParameter=O;function L(X,Ye){if(X.modifiers!==void 0){for(let Be of X.modifiers)if(Be.kind===Ye)return Be}}R.getModifier=L;function W(X){if(X===void 0)return!1;for(var Ye=arguments.length,Be=new Array(Ye>1?Ye-1:0),Qe=1;Qe<Ye;Qe++)Be[Qe-1]=arguments[Qe];for(let _r of X)if(Be.includes(_r.kind))return!0;return!1}R.hasModifier=W;function N(X){return W(X.modifiers,te.SyntaxKind.PublicKeyword,te.SyntaxKind.ProtectedKeyword,te.SyntaxKind.PrivateKeyword,te.SyntaxKind.ReadonlyKeyword)}R.isParameterProperty=N;function Q(X){return g(X,te.ModifierFlags.AccessibilityModifier)}R.hasAccessModifier=Q;function pe(X,Ye){return(X.flags&Ye)!==0}R.isNodeFlagSet=pe,R.isTypeFlagSet=pe,R.isSymbolFlagSet=pe;function F(X,Ye){return(X.objectFlags&Ye)!==0}R.isObjectFlagSet=F;function g(X,Ye){return(te.getCombinedModifierFlags(X)&Ye)!==0}R.isModifierFlagSet=g;function S(X){let Ye=X.parent;if(qe.isBlockLike(Ye)){let Be=Ye.statements.indexOf(X);if(Be>0)return Ye.statements[Be-1]}}R.getPreviousStatement=S;function H(X){let Ye=X.parent;if(qe.isBlockLike(Ye)){let Be=Ye.statements.indexOf(X);if(Be<Ye.statements.length)return Ye.statements[Be+1]}}R.getNextStatement=H;function se(X,Ye){let{pos:Be}=X;if(Be!==0){do X=X.parent;while(X.pos===Be);return G(X,Be-1,Ye!=null?Ye:X.getSourceFile(),!1)}}R.getPreviousToken=se;function p(X,Ye){if(X.kind===te.SyntaxKind.SourceFile||X.kind===te.SyntaxKind.EndOfFileToken)return;let Be=X.end;for(X=X.parent;X.end===Be;){if(X.parent===void 0)return X.endOfFileToken;X=X.parent}return G(X,Be,Ye!=null?Ye:X.getSourceFile(),!1)}R.getNextToken=p;function C(X,Ye,Be,Qe){if(!(Ye<X.pos||Ye>=X.end))return fr(X.kind)?X:G(X,Ye,Be!=null?Be:X.getSourceFile(),Qe===!0)}R.getTokenAtPosition=C;function G(X,Ye,Be,Qe){if(!Qe&&(X=M(X,Ye),fr(X.kind)))return X;e:for(;;){for(let _r of X.getChildren(Be))if(_r.end>Ye&&(Qe||_r.kind!==te.SyntaxKind.JSDocComment)){if(fr(_r.kind))return _r;X=_r;continue e}return}}function E(X,Ye){let Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:X,Qe=C(Be,Ye,X);if(Qe===void 0||Qe.kind===te.SyntaxKind.JsxText||Ye>=Qe.end-(te.tokenToString(Qe.kind)||"").length)return;let _r=Qe.pos===0?(te.getShebang(X.text)||"").length:Qe.pos;return _r!==0&&te.forEachTrailingCommentRange(X.text,_r,ue,Ye)||te.forEachLeadingCommentRange(X.text,_r,ue,Ye)}R.getCommentAtPosition=E;function ue(X,Ye,Be,Qe,_r){return _r>=X&&_r<Ye?{pos:X,end:Ye,kind:Be}:void 0}function B(X,Ye,Be){return E(X,Ye,Be)!==void 0}R.isPositionInComment=B;function re(X,Ye){return X.substring(Ye.pos+2,Ye.kind===te.SyntaxKind.SingleLineCommentTrivia?Ye.end:Ye.end-2)}R.commentText=re;function M(X,Ye){if(!(X.pos>Ye||X.end<=Ye)){for(;Mr(X.kind);){let Be=te.forEachChild(X,Qe=>Qe.pos<=Ye&&Qe.end>Ye?Qe:void 0);if(Be===void 0)break;X=Be}return X}}R.getAstNodeAtPosition=M;function x(X,Ye){if(X.node.pos>Ye||X.node.end<=Ye)return;e:for(;;){for(let Be of X.children){if(Be.node.pos>Ye)return X;if(Be.node.end>Ye){X=Be;continue e}}return X}}R.getWrappedNodeAtPosition=x;function ie(X){if(X.kind===te.SyntaxKind.ComputedPropertyName){let Ye=bt(X.expression);if(qe.isPrefixUnaryExpression(Ye)){let Be=!1;switch(Ye.operator){case te.SyntaxKind.MinusToken:Be=!0;case te.SyntaxKind.PlusToken:return qe.isNumericLiteral(Ye.operand)?"".concat(Be?"-":"").concat(Ye.operand.text):Ve.isBigIntLiteral(Ye.operand)?"".concat(Be?"-":"").concat(Ye.operand.text.slice(0,-1)):void 0;default:return}}return Ve.isBigIntLiteral(Ye)?Ye.text.slice(0,-1):qe.isNumericOrStringLikeLiteral(Ye)?Ye.text:void 0}return X.kind===te.SyntaxKind.PrivateIdentifier?void 0:X.text}R.getPropertyName=ie;function _e(X,Ye){for(let Be of X.elements){if(Be.kind!==te.SyntaxKind.BindingElement)continue;let Qe;if(Be.name.kind===te.SyntaxKind.Identifier?Qe=Ye(Be):Qe=_e(Be.name,Ye),Qe)return Qe}}R.forEachDestructuringIdentifier=_e;function Y(X,Ye){for(let Be of X.declarations){let Qe;if(Be.name.kind===te.SyntaxKind.Identifier?Qe=Ye(Be):Qe=_e(Be.name,Ye),Qe)return Qe}}R.forEachDeclaredVariable=Y;var Z;(function(X){X[X.Var=0]="Var",X[X.Let=1]="Let",X[X.Const=2]="Const"})(Z=R.VariableDeclarationKind||(R.VariableDeclarationKind={}));function k(X){return X.flags&te.NodeFlags.Let?1:X.flags&te.NodeFlags.Const?2:0}R.getVariableDeclarationKind=k;function I(X){return(X.flags&te.NodeFlags.BlockScoped)!==0}R.isBlockScopedVariableDeclarationList=I;function ne(X){let Ye=X.parent;return Ye.kind===te.SyntaxKind.CatchClause||I(Ye)}R.isBlockScopedVariableDeclaration=ne;function ee(X){switch(X.kind){case te.SyntaxKind.VariableStatement:return I(X.declarationList);case te.SyntaxKind.ClassDeclaration:case te.SyntaxKind.EnumDeclaration:case te.SyntaxKind.InterfaceDeclaration:case te.SyntaxKind.TypeAliasDeclaration:return!0;default:return!1}}R.isBlockScopedDeclarationStatement=ee;function A(X){switch(X.parent.kind){case te.SyntaxKind.ForStatement:case te.SyntaxKind.ForInStatement:case te.SyntaxKind.ForOfStatement:case te.SyntaxKind.WhileStatement:case te.SyntaxKind.DoStatement:case te.SyntaxKind.IfStatement:case te.SyntaxKind.WithStatement:case te.SyntaxKind.LabeledStatement:return!0;default:return!1}}R.isInSingleStatementContext=A;var f;(function(X){X[X.None=0]="None",X[X.Function=1]="Function",X[X.Block=2]="Block",X[X.Type=4]="Type",X[X.ConditionalType=8]="ConditionalType"})(f=R.ScopeBoundary||(R.ScopeBoundary={}));var P;(function(X){X[X.Function=1]="Function",X[X.Block=3]="Block",X[X.Type=7]="Type",X[X.InferType=8]="InferType"})(P=R.ScopeBoundarySelector||(R.ScopeBoundarySelector={}));function D(X){return _(X)||J(X)||l(X)}R.isScopeBoundary=D;function l(X){switch(X.kind){case te.SyntaxKind.InterfaceDeclaration:case te.SyntaxKind.TypeAliasDeclaration:case te.SyntaxKind.MappedType:return 4;case te.SyntaxKind.ConditionalType:return 8;default:return 0}}R.isTypeScopeBoundary=l;function _(X){switch(X.kind){case te.SyntaxKind.FunctionExpression:case te.SyntaxKind.ArrowFunction:case te.SyntaxKind.Constructor:case te.SyntaxKind.ModuleDeclaration:case te.SyntaxKind.ClassDeclaration:case te.SyntaxKind.ClassExpression:case te.SyntaxKind.EnumDeclaration:case te.SyntaxKind.MethodDeclaration:case te.SyntaxKind.FunctionDeclaration:case te.SyntaxKind.GetAccessor:case te.SyntaxKind.SetAccessor:case te.SyntaxKind.MethodSignature:case te.SyntaxKind.CallSignature:case te.SyntaxKind.ConstructSignature:case te.SyntaxKind.ConstructorType:case te.SyntaxKind.FunctionType:return 1;case te.SyntaxKind.SourceFile:return te.isExternalModule(X)?1:0;default:return 0}}R.isFunctionScopeBoundary=_;function J(X){switch(X.kind){case te.SyntaxKind.Block:let Ye=X.parent;return Ye.kind!==te.SyntaxKind.CatchClause&&(Ye.kind===te.SyntaxKind.SourceFile||!_(Ye))?2:0;case te.SyntaxKind.ForStatement:case te.SyntaxKind.ForInStatement:case te.SyntaxKind.ForOfStatement:case te.SyntaxKind.CaseBlock:case te.SyntaxKind.CatchClause:case te.SyntaxKind.WithStatement:return 2;default:return 0}}R.isBlockScopeBoundary=J;function w(X){switch(X.kind){case te.SyntaxKind.ClassDeclaration:case te.SyntaxKind.ClassExpression:case te.SyntaxKind.FunctionExpression:return!0;case te.SyntaxKind.FunctionDeclaration:return X.body!==void 0;case te.SyntaxKind.MethodDeclaration:case te.SyntaxKind.GetAccessor:case te.SyntaxKind.SetAccessor:return X.parent.kind===te.SyntaxKind.ObjectLiteralExpression;default:return!1}}R.hasOwnThisReference=w;function j(X){switch(X.kind){case te.SyntaxKind.GetAccessor:case te.SyntaxKind.SetAccessor:case te.SyntaxKind.FunctionDeclaration:case te.SyntaxKind.MethodDeclaration:case te.SyntaxKind.Constructor:return X.body!==void 0;case te.SyntaxKind.FunctionExpression:case te.SyntaxKind.ArrowFunction:return!0;default:return!1}}R.isFunctionWithBody=j;function U(X,Ye){let Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:X.getSourceFile(),Qe=[];for(;;){if(fr(X.kind))Ye(X);else if(X.kind!==te.SyntaxKind.JSDocComment){let _r=X.getChildren(Be);if(_r.length===1){X=_r[0];continue}for(let hr=_r.length-1;hr>=0;--hr)Qe.push(_r[hr])}if(Qe.length===0)break;X=Qe.pop()}}R.forEachToken=U;function z(X,Ye){let Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:X.getSourceFile(),Qe=Be.text,_r=te.createScanner(Be.languageVersion,!1,Be.languageVariant,Qe);return U(X,hr=>{let Dr=hr.kind===te.SyntaxKind.JsxText||hr.pos===hr.end?hr.pos:hr.getStart(Be);if(Dr!==hr.pos){_r.setTextPos(hr.pos);let Me=_r.scan(),v=_r.getTokenPos();for(;v<Dr;){let xe=_r.getTextPos();if(Ye(Qe,Me,{pos:v,end:xe},hr.parent),xe===Dr)break;Me=_r.scan(),v=_r.getTokenPos()}}return Ye(Qe,hr.kind,{end:hr.end,pos:Dr},hr.parent)},Be)}R.forEachTokenWithTrivia=z;function y(X,Ye){let Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:X.getSourceFile(),Qe=Be.text,_r=Be.languageVariant!==te.LanguageVariant.JSX;return U(X,Dr=>{if(Dr.pos!==Dr.end&&(Dr.kind!==te.SyntaxKind.JsxText&&te.forEachLeadingCommentRange(Qe,Dr.pos===0?(te.getShebang(Qe)||"").length:Dr.pos,hr),_r||oe(Dr)))return te.forEachTrailingCommentRange(Qe,Dr.end,hr)},Be);function hr(Dr,Me,v){Ye(Qe,{pos:Dr,end:Me,kind:v})}}R.forEachComment=y;function oe(X){switch(X.kind){case te.SyntaxKind.CloseBraceToken:return X.parent.kind!==te.SyntaxKind.JsxExpression||!ve(X.parent.parent);case te.SyntaxKind.GreaterThanToken:switch(X.parent.kind){case te.SyntaxKind.JsxOpeningElement:return X.end!==X.parent.end;case te.SyntaxKind.JsxOpeningFragment:return!1;case te.SyntaxKind.JsxSelfClosingElement:return X.end!==X.parent.end||!ve(X.parent.parent);case te.SyntaxKind.JsxClosingElement:case te.SyntaxKind.JsxClosingFragment:return!ve(X.parent.parent.parent)}}return!0}function ve(X){return X.kind===te.SyntaxKind.JsxElement||X.kind===te.SyntaxKind.JsxFragment}function ce(X){let Ye=X.getLineStarts(),Be=[],Qe=Ye.length,_r=X.text,hr=0;for(let Dr=1;Dr<Qe;++Dr){let Me=Ye[Dr],v=Me;for(;v>hr&&te.isLineBreak(_r.charCodeAt(v-1));--v);Be.push({pos:hr,end:Me,contentLength:v-hr}),hr=Me}return Be.push({pos:hr,end:X.end,contentLength:X.end-hr}),Be}R.getLineRanges=ce;function m(X){let Ye=X.getLineStarts();return Ye.length===1||Ye[1]<2||X.text[Ye[1]-2]!=="\r"?`
`:`\r
`}R.getLineBreakStyle=m;var de;function ae(X,Ye){return de===void 0?de=te.createScanner(Ye,!1,void 0,X):(de.setScriptTarget(Ye),de.setText(X)),de.scan(),de}function V(X){let Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:te.ScriptTarget.Latest,Be=ae(X,Ye);return Be.isIdentifier()&&Be.getTextPos()===X.length&&Be.getTokenPos()===0}R.isValidIdentifier=V;function le(X){return X>=65536?2:1}function ke(X){let Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:te.ScriptTarget.Latest;if(X.length===0)return!1;let Be=X.codePointAt(0);if(!te.isIdentifierStart(Be,Ye))return!1;for(let Qe=le(Be);Qe<X.length;Qe+=le(Be))if(Be=X.codePointAt(Qe),!te.isIdentifierPart(Be,Ye))return!1;return!0}R.isValidPropertyAccess=ke;function Ue(X){let Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:te.ScriptTarget.Latest;if(ke(X,Ye))return!0;let Be=ae(X,Ye);return Be.getTextPos()===X.length&&Be.getToken()===te.SyntaxKind.NumericLiteral&&Be.getTokenValue()===X}R.isValidPropertyName=Ue;function He(X){let Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:te.ScriptTarget.Latest,Be=ae(X,Ye);return Be.getToken()===te.SyntaxKind.NumericLiteral&&Be.getTextPos()===X.length&&Be.getTokenPos()===0}R.isValidNumericLiteral=He;function ar(X){let Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:te.ScriptTarget.Latest;if(X.length===0)return!1;let Be=!1,Qe=X.codePointAt(0);if(!te.isIdentifierStart(Qe,Ye))return!1;for(let _r=le(Qe);_r<X.length;_r+=le(Qe))if(Qe=X.codePointAt(_r),!te.isIdentifierPart(Qe,Ye)&&Qe!==45)if(!Be&&Qe===58&&_r+le(Qe)!==X.length)Be=!0;else return!1;return!0}R.isValidJsxIdentifier=ar;function gr(X){return String(+X)===X}R.isNumericPropertyName=gr;function me(X,Ye,Be){return te.getLineAndCharacterOfPosition(X,Ye).line===te.getLineAndCharacterOfPosition(X,Be).line}R.isSameLine=me;var Ge;(function(X){X[X.None=0]="None",X[X.TaggedTemplate=1]="TaggedTemplate",X[X.Constructor=2]="Constructor",X[X.JsxElement=4]="JsxElement"})(Ge=R.SideEffectOptions||(R.SideEffectOptions={}));function er(X,Ye){var Be,Qe;let _r=[];for(;;){switch(X.kind){case te.SyntaxKind.CallExpression:case te.SyntaxKind.PostfixUnaryExpression:case te.SyntaxKind.AwaitExpression:case te.SyntaxKind.YieldExpression:case te.SyntaxKind.DeleteExpression:return!0;case te.SyntaxKind.TypeAssertionExpression:case te.SyntaxKind.AsExpression:case te.SyntaxKind.ParenthesizedExpression:case te.SyntaxKind.NonNullExpression:case te.SyntaxKind.VoidExpression:case te.SyntaxKind.TypeOfExpression:case te.SyntaxKind.PropertyAccessExpression:case te.SyntaxKind.SpreadElement:case te.SyntaxKind.PartiallyEmittedExpression:X=X.expression;continue;case te.SyntaxKind.BinaryExpression:if(ir(X.operatorToken.kind))return!0;_r.push(X.right),X=X.left;continue;case te.SyntaxKind.PrefixUnaryExpression:switch(X.operator){case te.SyntaxKind.PlusPlusToken:case te.SyntaxKind.MinusMinusToken:return!0;default:X=X.operand;continue}case te.SyntaxKind.ElementAccessExpression:X.argumentExpression!==void 0&&_r.push(X.argumentExpression),X=X.expression;continue;case te.SyntaxKind.ConditionalExpression:_r.push(X.whenTrue,X.whenFalse),X=X.condition;continue;case te.SyntaxKind.NewExpression:if(Ye&2)return!0;X.arguments!==void 0&&_r.push(...X.arguments),X=X.expression;continue;case te.SyntaxKind.TaggedTemplateExpression:if(Ye&1)return!0;if(_r.push(X.tag),X=X.template,X.kind===te.SyntaxKind.NoSubstitutionTemplateLiteral)break;case te.SyntaxKind.TemplateExpression:for(let hr of X.templateSpans)_r.push(hr.expression);break;case te.SyntaxKind.ClassExpression:{if(X.decorators!==void 0)return!0;for(let Dr of X.members){if(Dr.decorators!==void 0)return!0;if(!W(Dr.modifiers,te.SyntaxKind.DeclareKeyword))if(((Be=Dr.name)===null||Be===void 0?void 0:Be.kind)===te.SyntaxKind.ComputedPropertyName&&_r.push(Dr.name.expression),qe.isMethodDeclaration(Dr)){for(let Me of Dr.parameters)if(Me.decorators!==void 0)return!0}else qe.isPropertyDeclaration(Dr)&&Dr.initializer!==void 0&&W(Dr.modifiers,te.SyntaxKind.StaticKeyword)&&_r.push(Dr.initializer)}let hr=di(X);if(hr===void 0)break;X=hr.expression;continue}case te.SyntaxKind.ArrayLiteralExpression:_r.push(...X.elements);break;case te.SyntaxKind.ObjectLiteralExpression:for(let hr of X.properties)switch(((Qe=hr.name)===null||Qe===void 0?void 0:Qe.kind)===te.SyntaxKind.ComputedPropertyName&&_r.push(hr.name.expression),hr.kind){case te.SyntaxKind.PropertyAssignment:_r.push(hr.initializer);break;case te.SyntaxKind.SpreadAssignment:_r.push(hr.expression)}break;case te.SyntaxKind.JsxExpression:if(X.expression===void 0)break;X=X.expression;continue;case te.SyntaxKind.JsxElement:case te.SyntaxKind.JsxFragment:for(let hr of X.children)hr.kind!==te.SyntaxKind.JsxText&&_r.push(hr);if(X.kind===te.SyntaxKind.JsxFragment)break;X=X.openingElement;case te.SyntaxKind.JsxSelfClosingElement:case te.SyntaxKind.JsxOpeningElement:if(Ye&4)return!0;for(let hr of X.attributes.properties)hr.kind===te.SyntaxKind.JsxSpreadAttribute?_r.push(hr.expression):hr.initializer!==void 0&&_r.push(hr.initializer);break;case te.SyntaxKind.CommaListExpression:_r.push(...X.elements)}if(_r.length===0)return!1;X=_r.pop()}}R.hasSideEffects=er;function he(X){let Ye=X.parent.parent;for(;Ye.kind===te.SyntaxKind.BindingElement;)Ye=Ye.parent.parent;return Ye}R.getDeclarationOfBindingElement=he;function we(X){for(;;){let Ye=X.parent;switch(Ye.kind){case te.SyntaxKind.CallExpression:case te.SyntaxKind.NewExpression:case te.SyntaxKind.ElementAccessExpression:case te.SyntaxKind.WhileStatement:case te.SyntaxKind.DoStatement:case te.SyntaxKind.WithStatement:case te.SyntaxKind.ThrowStatement:case te.SyntaxKind.ReturnStatement:case te.SyntaxKind.JsxExpression:case te.SyntaxKind.JsxSpreadAttribute:case te.SyntaxKind.JsxElement:case te.SyntaxKind.JsxFragment:case te.SyntaxKind.JsxSelfClosingElement:case te.SyntaxKind.ComputedPropertyName:case te.SyntaxKind.ArrowFunction:case te.SyntaxKind.ExportSpecifier:case te.SyntaxKind.ExportAssignment:case te.SyntaxKind.ImportDeclaration:case te.SyntaxKind.ExternalModuleReference:case te.SyntaxKind.Decorator:case te.SyntaxKind.TaggedTemplateExpression:case te.SyntaxKind.TemplateSpan:case te.SyntaxKind.ExpressionWithTypeArguments:case te.SyntaxKind.TypeOfExpression:case te.SyntaxKind.AwaitExpression:case te.SyntaxKind.YieldExpression:case te.SyntaxKind.LiteralType:case te.SyntaxKind.JsxAttributes:case te.SyntaxKind.JsxOpeningElement:case te.SyntaxKind.JsxClosingElement:case te.SyntaxKind.IfStatement:case te.SyntaxKind.CaseClause:case te.SyntaxKind.SwitchStatement:return!0;case te.SyntaxKind.PropertyAccessExpression:return Ye.expression===X;case te.SyntaxKind.QualifiedName:return Ye.left===X;case te.SyntaxKind.ShorthandPropertyAssignment:return Ye.objectAssignmentInitializer===X||!ye(Ye);case te.SyntaxKind.PropertyAssignment:return Ye.initializer===X&&!ye(Ye);case te.SyntaxKind.SpreadAssignment:case te.SyntaxKind.SpreadElement:case te.SyntaxKind.ArrayLiteralExpression:return!ye(Ye);case te.SyntaxKind.ParenthesizedExpression:case te.SyntaxKind.AsExpression:case te.SyntaxKind.TypeAssertionExpression:case te.SyntaxKind.PostfixUnaryExpression:case te.SyntaxKind.PrefixUnaryExpression:case te.SyntaxKind.NonNullExpression:X=Ye;continue;case te.SyntaxKind.ForStatement:return Ye.condition===X;case te.SyntaxKind.ForInStatement:case te.SyntaxKind.ForOfStatement:return Ye.expression===X;case te.SyntaxKind.ConditionalExpression:if(Ye.condition===X)return!0;X=Ye;break;case te.SyntaxKind.PropertyDeclaration:case te.SyntaxKind.BindingElement:case te.SyntaxKind.VariableDeclaration:case te.SyntaxKind.Parameter:case te.SyntaxKind.EnumMember:return Ye.initializer===X;case te.SyntaxKind.ImportEqualsDeclaration:return Ye.moduleReference===X;case te.SyntaxKind.CommaListExpression:if(Ye.elements[Ye.elements.length-1]!==X)return!1;X=Ye;break;case te.SyntaxKind.BinaryExpression:if(Ye.right===X){if(Ye.operatorToken.kind===te.SyntaxKind.CommaToken){X=Ye;break}return!0}switch(Ye.operatorToken.kind){case te.SyntaxKind.CommaToken:case te.SyntaxKind.EqualsToken:return!1;case te.SyntaxKind.EqualsEqualsEqualsToken:case te.SyntaxKind.EqualsEqualsToken:case te.SyntaxKind.ExclamationEqualsEqualsToken:case te.SyntaxKind.ExclamationEqualsToken:case te.SyntaxKind.InstanceOfKeyword:case te.SyntaxKind.PlusToken:case te.SyntaxKind.MinusToken:case te.SyntaxKind.AsteriskToken:case te.SyntaxKind.SlashToken:case te.SyntaxKind.PercentToken:case te.SyntaxKind.AsteriskAsteriskToken:case te.SyntaxKind.GreaterThanToken:case te.SyntaxKind.GreaterThanGreaterThanToken:case te.SyntaxKind.GreaterThanGreaterThanGreaterThanToken:case te.SyntaxKind.GreaterThanEqualsToken:case te.SyntaxKind.LessThanToken:case te.SyntaxKind.LessThanLessThanToken:case te.SyntaxKind.LessThanEqualsToken:case te.SyntaxKind.AmpersandToken:case te.SyntaxKind.BarToken:case te.SyntaxKind.CaretToken:case te.SyntaxKind.BarBarToken:case te.SyntaxKind.AmpersandAmpersandToken:case te.SyntaxKind.QuestionQuestionToken:case te.SyntaxKind.InKeyword:case te.SyntaxKind.QuestionQuestionEqualsToken:case te.SyntaxKind.AmpersandAmpersandEqualsToken:case te.SyntaxKind.BarBarEqualsToken:return!0;default:X=Ye}break;default:return!1}}}R.isExpressionValueUsed=we;function ye(X){switch(X.kind){case te.SyntaxKind.ShorthandPropertyAssignment:if(X.objectAssignmentInitializer!==void 0)return!0;case te.SyntaxKind.PropertyAssignment:case te.SyntaxKind.SpreadAssignment:X=X.parent;break;case te.SyntaxKind.SpreadElement:if(X.parent.kind!==te.SyntaxKind.ArrayLiteralExpression)return!1;X=X.parent}for(;;)switch(X.parent.kind){case te.SyntaxKind.BinaryExpression:return X.parent.left===X&&X.parent.operatorToken.kind===te.SyntaxKind.EqualsToken;case te.SyntaxKind.ForOfStatement:return X.parent.initializer===X;case te.SyntaxKind.ArrayLiteralExpression:case te.SyntaxKind.ObjectLiteralExpression:X=X.parent;break;case te.SyntaxKind.SpreadAssignment:case te.SyntaxKind.PropertyAssignment:X=X.parent.parent;break;case te.SyntaxKind.SpreadElement:if(X.parent.parent.kind!==te.SyntaxKind.ArrayLiteralExpression)return!1;X=X.parent.parent;break;default:return!1}}var Se;(function(X){X[X.None=0]="None",X[X.Read=1]="Read",X[X.Write=2]="Write",X[X.Delete=4]="Delete",X[X.ReadWrite=3]="ReadWrite",X[X.Modification=6]="Modification"})(Se=R.AccessKind||(R.AccessKind={}));function ge(X){let Ye=X.parent;switch(Ye.kind){case te.SyntaxKind.DeleteExpression:return 4;case te.SyntaxKind.PostfixUnaryExpression:return 3;case te.SyntaxKind.PrefixUnaryExpression:return Ye.operator===te.SyntaxKind.PlusPlusToken||Ye.operator===te.SyntaxKind.MinusMinusToken?3:1;case te.SyntaxKind.BinaryExpression:return Ye.right===X?1:ir(Ye.operatorToken.kind)?Ye.operatorToken.kind===te.SyntaxKind.EqualsToken?2:3:1;case te.SyntaxKind.ShorthandPropertyAssignment:return Ye.objectAssignmentInitializer===X?1:ye(Ye)?2:1;case te.SyntaxKind.PropertyAssignment:return Ye.name===X?0:ye(Ye)?2:1;case te.SyntaxKind.ArrayLiteralExpression:case te.SyntaxKind.SpreadElement:case te.SyntaxKind.SpreadAssignment:return ye(Ye)?2:1;case te.SyntaxKind.ParenthesizedExpression:case te.SyntaxKind.NonNullExpression:case te.SyntaxKind.TypeAssertionExpression:case te.SyntaxKind.AsExpression:return ge(Ye);case te.SyntaxKind.ForOfStatement:case te.SyntaxKind.ForInStatement:return Ye.initializer===X?2:1;case te.SyntaxKind.ExpressionWithTypeArguments:return Ye.parent.token===te.SyntaxKind.ExtendsKeyword&&Ye.parent.parent.kind!==te.SyntaxKind.InterfaceDeclaration?1:0;case te.SyntaxKind.ComputedPropertyName:case te.SyntaxKind.ExpressionStatement:case te.SyntaxKind.TypeOfExpression:case te.SyntaxKind.ElementAccessExpression:case te.SyntaxKind.ForStatement:case te.SyntaxKind.IfStatement:case te.SyntaxKind.DoStatement:case te.SyntaxKind.WhileStatement:case te.SyntaxKind.SwitchStatement:case te.SyntaxKind.WithStatement:case te.SyntaxKind.ThrowStatement:case te.SyntaxKind.CallExpression:case te.SyntaxKind.NewExpression:case te.SyntaxKind.TaggedTemplateExpression:case te.SyntaxKind.JsxExpression:case te.SyntaxKind.Decorator:case te.SyntaxKind.TemplateSpan:case te.SyntaxKind.JsxOpeningElement:case te.SyntaxKind.JsxSelfClosingElement:case te.SyntaxKind.JsxSpreadAttribute:case te.SyntaxKind.VoidExpression:case te.SyntaxKind.ReturnStatement:case te.SyntaxKind.AwaitExpression:case te.SyntaxKind.YieldExpression:case te.SyntaxKind.ConditionalExpression:case te.SyntaxKind.CaseClause:case te.SyntaxKind.JsxElement:return 1;case te.SyntaxKind.ArrowFunction:return Ye.body===X?1:2;case te.SyntaxKind.PropertyDeclaration:case te.SyntaxKind.VariableDeclaration:case te.SyntaxKind.Parameter:case te.SyntaxKind.EnumMember:case te.SyntaxKind.BindingElement:case te.SyntaxKind.JsxAttribute:return Ye.initializer===X?1:0;case te.SyntaxKind.PropertyAccessExpression:return Ye.expression===X?1:0;case te.SyntaxKind.ExportAssignment:return Ye.isExportEquals?1:0}return 0}R.getAccessKind=ge;function Fe(X){return(ge(X)&2)!==0}R.isReassignmentTarget=Fe;function cr(X){switch(X.kind){case te.SyntaxKind.Parameter:case te.SyntaxKind.CallSignature:case te.SyntaxKind.ConstructSignature:case te.SyntaxKind.MethodSignature:case te.SyntaxKind.PropertySignature:case te.SyntaxKind.ArrowFunction:case te.SyntaxKind.ParenthesizedExpression:case te.SyntaxKind.SpreadAssignment:case te.SyntaxKind.ShorthandPropertyAssignment:case te.SyntaxKind.PropertyAssignment:case te.SyntaxKind.FunctionExpression:case te.SyntaxKind.LabeledStatement:case te.SyntaxKind.ExpressionStatement:case te.SyntaxKind.VariableStatement:case te.SyntaxKind.FunctionDeclaration:case te.SyntaxKind.Constructor:case te.SyntaxKind.MethodDeclaration:case te.SyntaxKind.PropertyDeclaration:case te.SyntaxKind.GetAccessor:case te.SyntaxKind.SetAccessor:case te.SyntaxKind.ClassDeclaration:case te.SyntaxKind.ClassExpression:case te.SyntaxKind.InterfaceDeclaration:case te.SyntaxKind.TypeAliasDeclaration:case te.SyntaxKind.EnumMember:case te.SyntaxKind.EnumDeclaration:case te.SyntaxKind.ModuleDeclaration:case te.SyntaxKind.ImportEqualsDeclaration:case te.SyntaxKind.ImportDeclaration:case te.SyntaxKind.NamespaceExportDeclaration:case te.SyntaxKind.ExportAssignment:case te.SyntaxKind.IndexSignature:case te.SyntaxKind.FunctionType:case te.SyntaxKind.ConstructorType:case te.SyntaxKind.JSDocFunctionType:case te.SyntaxKind.ExportDeclaration:case te.SyntaxKind.NamedTupleMember:case te.SyntaxKind.EndOfFileToken:return!0;default:return!1}}R.canHaveJsDoc=cr;function ur(X,Ye){let Be=[];for(let Qe of X.getChildren(Ye)){if(!qe.isJsDoc(Qe))break;Be.push(Qe)}return Be}R.getJsDoc=ur;function Ir(X,Ye){let Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:X.getSourceFile();if(cr(X)&&X.kind!==te.SyntaxKind.EndOfFileToken){let Qe=ur(X,Be);if(Qe.length!==0||!Ye)return Qe}return dr(X,X.getStart(Be),Be,Ye)}R.parseJsDocOfNode=Ir;function dr(X,Ye,Be,Qe){let _r=te[Qe&&me(Be,X.pos,Ye)?"forEachTrailingCommentRange":"forEachLeadingCommentRange"](Be.text,X.pos,(ze,Je,Oe)=>Oe===te.SyntaxKind.MultiLineCommentTrivia&&Be.text[ze+2]==="*"?{pos:ze}:void 0);if(_r===void 0)return[];let hr=_r.pos,Dr=Be.text.slice(hr,Ye),Me=te.createSourceFile("jsdoc.ts","".concat(Dr,"var a;"),Be.languageVersion),v=ur(Me.statements[0],Me);for(let ze of v)xe(ze,X);return v;function xe(ze,Je){return ze.pos+=hr,ze.end+=hr,ze.parent=Je,te.forEachChild(ze,Oe=>xe(Oe,ze),Oe=>{Oe.pos+=hr,Oe.end+=hr;for(let Fr of Oe)xe(Fr,ze)})}}var Br;(function(X){X[X.ImportDeclaration=1]="ImportDeclaration",X[X.ImportEquals=2]="ImportEquals",X[X.ExportFrom=4]="ExportFrom",X[X.DynamicImport=8]="DynamicImport",X[X.Require=16]="Require",X[X.ImportType=32]="ImportType",X[X.All=63]="All",X[X.AllImports=59]="AllImports",X[X.AllStaticImports=3]="AllStaticImports",X[X.AllImportExpressions=24]="AllImportExpressions",X[X.AllRequireLike=18]="AllRequireLike",X[X.AllNestedImports=56]="AllNestedImports",X[X.AllTopLevelImports=7]="AllTopLevelImports"})(Br=R.ImportKind||(R.ImportKind={}));function Tr(X,Ye){let Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,Qe=[];for(let hr of n(X,Ye,Be))switch(hr.kind){case te.SyntaxKind.ImportDeclaration:_r(hr.moduleSpecifier);break;case te.SyntaxKind.ImportEqualsDeclaration:_r(hr.moduleReference.expression);break;case te.SyntaxKind.ExportDeclaration:_r(hr.moduleSpecifier);break;case te.SyntaxKind.CallExpression:_r(hr.arguments[0]);break;case te.SyntaxKind.ImportType:qe.isLiteralTypeNode(hr.argument)&&_r(hr.argument.literal);break;default:throw new Error("unexpected node")}return Qe;function _r(hr){qe.isTextualLiteral(hr)&&Qe.push(hr)}}R.findImports=Tr;function n(X,Ye){let Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return new Er(X,Ye,Be).find()}R.findImportLikeNodes=n;var Er=class{constructor(X,Ye,Be){this._sourceFile=X,this._options=Ye,this._ignoreFileName=Be,this._result=[]}find(){return this._sourceFile.isDeclarationFile&&(this._options&=-25),this._options&7&&this._findImports(this._sourceFile.statements),this._options&56&&this._findNestedImports(),this._result}_findImports(X){for(let Ye of X)qe.isImportDeclaration(Ye)?this._options&1&&this._result.push(Ye):qe.isImportEqualsDeclaration(Ye)?this._options&2&&Ye.moduleReference.kind===te.SyntaxKind.ExternalModuleReference&&this._result.push(Ye):qe.isExportDeclaration(Ye)?Ye.moduleSpecifier!==void 0&&this._options&4&&this._result.push(Ye):qe.isModuleDeclaration(Ye)&&this._findImportsInModule(Ye)}_findImportsInModule(X){if(X.body!==void 0){if(X.body.kind===te.SyntaxKind.ModuleDeclaration)return this._findImportsInModule(X.body);this._findImports(X.body.statements)}}_findNestedImports(){let X=this._ignoreFileName||(this._sourceFile.flags&te.NodeFlags.JavaScriptFile)!==0,Ye,Be;if((this._options&56)===16){if(!X)return;Ye=/\brequire\s*[</(]/g,Be=!1}else this._options&16&&X?(Ye=/\b(?:import|require)\s*[</(]/g,Be=(this._options&32)!==0):(Ye=/\bimport\s*[</(]/g,Be=X&&(this._options&32)!==0);for(let Qe=Ye.exec(this._sourceFile.text);Qe!==null;Qe=Ye.exec(this._sourceFile.text)){let _r=G(this._sourceFile,Qe.index,this._sourceFile,Qe[0][0]==="i"&&Be);if(_r.kind===te.SyntaxKind.ImportKeyword){if(_r.end-6!==Qe.index)continue;switch(_r.parent.kind){case te.SyntaxKind.ImportType:this._result.push(_r.parent);break;case te.SyntaxKind.CallExpression:_r.parent.arguments.length>1&&this._result.push(_r.parent)}}else _r.kind===te.SyntaxKind.Identifier&&_r.end-7===Qe.index&&_r.parent.kind===te.SyntaxKind.CallExpression&&_r.parent.expression===_r&&_r.parent.arguments.length===1&&this._result.push(_r.parent)}}};function br(X){for(;X.flags&te.NodeFlags.NestedNamespace;)X=X.parent;return W(X.modifiers,te.SyntaxKind.DeclareKeyword)||Pr(X.parent)}R.isStatementInAmbientContext=br;function Pr(X){for(;X.kind===te.SyntaxKind.ModuleBlock;){do X=X.parent;while(X.flags&te.NodeFlags.NestedNamespace);if(W(X.modifiers,te.SyntaxKind.DeclareKeyword))return!0;X=X.parent}return!1}R.isAmbientModuleBlock=Pr;function Ce(X){let Ye=X.parent;for(;Ye.kind===te.SyntaxKind.ParenthesizedExpression;)Ye=Ye.parent;return qe.isCallExpression(Ye)&&X.end<=Ye.expression.end?Ye:void 0}R.getIIFE=Ce;function Le(X,Ye){return(X.strict?X[Ye]!==!1:X[Ye]===!0)&&(Ye!=="strictPropertyInitialization"||Le(X,"strictNullChecks"))}R.isStrictCompilerOptionEnabled=Le;function Xe(X,Ye){switch(Ye){case"stripInternal":case"declarationMap":case"emitDeclarationOnly":return X[Ye]===!0&&Xe(X,"declaration");case"declaration":return X.declaration||Xe(X,"composite");case"incremental":return X.incremental===void 0?Xe(X,"composite"):X.incremental;case"skipDefaultLibCheck":return X.skipDefaultLibCheck||Xe(X,"skipLibCheck");case"suppressImplicitAnyIndexErrors":return X.suppressImplicitAnyIndexErrors===!0&&Xe(X,"noImplicitAny");case"allowSyntheticDefaultImports":return X.allowSyntheticDefaultImports!==void 0?X.allowSyntheticDefaultImports:Xe(X,"esModuleInterop")||X.module===te.ModuleKind.System;case"noUncheckedIndexedAccess":return X.noUncheckedIndexedAccess===!0&&Xe(X,"strictNullChecks");case"allowJs":return X.allowJs===void 0?Xe(X,"checkJs"):X.allowJs;case"noImplicitAny":case"noImplicitThis":case"strictNullChecks":case"strictFunctionTypes":case"strictPropertyInitialization":case"alwaysStrict":case"strictBindCallApply":return Le(X,Ye)}return X[Ye]===!0}R.isCompilerOptionEnabled=Xe;function Cr(X){return X.name.kind===te.SyntaxKind.StringLiteral||(X.flags&te.NodeFlags.GlobalAugmentation)!==0}R.isAmbientModule=Cr;function Lr(X){return Jr(X)}R.getCheckJsDirective=Lr;function Jr(X){let Ye;return te.forEachLeadingCommentRange(X,(te.getShebang(X)||"").length,(Be,Qe,_r)=>{if(_r===te.SyntaxKind.SingleLineCommentTrivia){let hr=X.slice(Be,Qe),Dr=/^\/{2,3}\s*@ts-(no)?check(?:\s|$)/i.exec(hr);Dr!==null&&(Ye={pos:Be,end:Qe,enabled:Dr[1]===void 0})}}),Ye}R.getTsCheckDirective=Jr;function Rr(X){return qe.isTypeReferenceNode(X.type)&&X.type.typeName.kind===te.SyntaxKind.Identifier&&X.type.typeName.escapedText==="const"}R.isConstAssertion=Rr;function ci(X){let Ye=X;for(;;){let Be=Ye.parent;e:switch(Be.kind){case te.SyntaxKind.TypeAssertionExpression:case te.SyntaxKind.AsExpression:return Rr(Be);case te.SyntaxKind.PrefixUnaryExpression:if(Ye.kind!==te.SyntaxKind.NumericLiteral)return!1;switch(Be.operator){case te.SyntaxKind.PlusToken:case te.SyntaxKind.MinusToken:Ye=Be;break e;default:return!1}case te.SyntaxKind.PropertyAssignment:if(Be.initializer!==Ye)return!1;Ye=Be.parent;break;case te.SyntaxKind.ShorthandPropertyAssignment:Ye=Be.parent;break;case te.SyntaxKind.ParenthesizedExpression:case te.SyntaxKind.ArrayLiteralExpression:case te.SyntaxKind.ObjectLiteralExpression:case te.SyntaxKind.TemplateExpression:Ye=Be;break;default:return!1}}}R.isInConstContext=ci;function be(X,Ye){if(!or(X))return!1;let Be=Ye.getTypeAtLocation(X.arguments[2]);if(Be.getProperty("value")===void 0)return Be.getProperty("set")===void 0;let Qe=Be.getProperty("writable");if(Qe===void 0)return!1;let _r=Qe.valueDeclaration!==void 0&&qe.isPropertyAssignment(Qe.valueDeclaration)?Ye.getTypeAtLocation(Qe.valueDeclaration.initializer):Ye.getTypeOfSymbolAtLocation(Qe,X.arguments[2]);return ni.isBooleanLiteralType(_r,!1)}R.isReadonlyAssignmentDeclaration=be;function or(X){return X.arguments.length===3&&qe.isEntityNameExpression(X.arguments[0])&&qe.isNumericOrStringLikeLiteral(X.arguments[1])&&qe.isPropertyAccessExpression(X.expression)&&X.expression.name.escapedText==="defineProperty"&&qe.isIdentifier(X.expression.expression)&&X.expression.expression.escapedText==="Object"}R.isBindableObjectDefinePropertyCall=or;function Kr(X){return te.isPropertyAccessExpression(X)&&te.isIdentifier(X.expression)&&X.expression.escapedText==="Symbol"}R.isWellKnownSymbolLiterally=Kr;function ei(X){return{displayName:"[Symbol.".concat(X.name.text,"]"),symbolName:"__@"+X.name.text}}R.getPropertyNameOfWellKnownSymbol=ei;var li=(X=>{let[Ye,Be]=X;return Ye<"4"||Ye==="4"&&Be<"3"})(te.versionMajorMinor.split("."));function Si(X,Ye){let Be={known:!0,names:[]};if(X=bt(X),li&&Kr(X))Be.names.push(ei(X));else{let Qe=Ye.getTypeAtLocation(X);for(let _r of ni.unionTypeParts(Ye.getBaseConstraintOfType(Qe)||Qe)){let hr=ni.getPropertyNameFromType(_r);hr?Be.names.push(hr):Be.known=!1}}return Be}R.getLateBoundPropertyNames=Si;function qi(X,Ye){let Be=ie(X);return Be!==void 0?{known:!0,names:[{displayName:Be,symbolName:te.escapeLeadingUnderscores(Be)}]}:X.kind===te.SyntaxKind.PrivateIdentifier?{known:!0,names:[{displayName:X.text,symbolName:Ye.getSymbolAtLocation(X).escapedName}]}:Si(X.expression,Ye)}R.getLateBoundPropertyNamesOfPropertyName=qi;function ft(X,Ye){let Be=ie(X);if(Be!==void 0)return{displayName:Be,symbolName:te.escapeLeadingUnderscores(Be)};if(X.kind===te.SyntaxKind.PrivateIdentifier)return{displayName:X.text,symbolName:Ye.getSymbolAtLocation(X).escapedName};let{expression:Qe}=X;return li&&Kr(Qe)?ei(Qe):ni.getPropertyNameFromType(Ye.getTypeAtLocation(Qe))}R.getSingleLateBoundPropertyNameOfPropertyName=ft;function bt(X){for(;X.kind===te.SyntaxKind.ParenthesizedExpression;)X=X.expression;return X}R.unwrapParentheses=bt;function aa(X){return"".concat(X.negative?"-":"").concat(X.base10Value,"n")}R.formatPseudoBigInt=aa;function sr(X,Ye){let Be=X.caseBlock.clauses.filter(qe.isCaseClause);if(Be.length===0)return!1;let Qe=ni.unionTypeParts(Ye.getTypeAtLocation(X.expression));if(Qe.length>Be.length)return!1;let _r=new Set(Qe.map(Ji));if(_r.has(void 0))return!1;let hr=new Set;for(let Dr of Be){let Me=Ye.getTypeAtLocation(Dr.expression);if(R.isTypeFlagSet(Me,te.TypeFlags.Never))continue;let v=Ji(Me);if(_r.has(v))hr.add(v);else if(v!=="null"&&v!=="undefined")return!1}return _r.size===hr.size}R.hasExhaustiveCaseClauses=sr;function Ji(X){if(R.isTypeFlagSet(X,te.TypeFlags.Null))return"null";if(R.isTypeFlagSet(X,te.TypeFlags.Undefined))return"undefined";if(R.isTypeFlagSet(X,te.TypeFlags.NumberLiteral))return"".concat(R.isTypeFlagSet(X,te.TypeFlags.EnumLiteral)?"enum:":"").concat(X.value);if(R.isTypeFlagSet(X,te.TypeFlags.StringLiteral))return"".concat(R.isTypeFlagSet(X,te.TypeFlags.EnumLiteral)?"enum:":"","string:").concat(X.value);if(R.isTypeFlagSet(X,te.TypeFlags.BigIntLiteral))return aa(X.value);if(Ve.isUniqueESSymbolType(X))return X.escapedName;if(ni.isBooleanLiteralType(X,!0))return"true";if(ni.isBooleanLiteralType(X,!1))return"false"}function di(X){var Ye;if(((Ye=X.heritageClauses)===null||Ye===void 0?void 0:Ye[0].token)===te.SyntaxKind.ExtendsKeyword)return X.heritageClauses[0].types[0]}R.getBaseOfClassLikeExpression=di}}),xU=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(Pe,e,a,O){O===void 0&&(O=a);var L=Object.getOwnPropertyDescriptor(e,a);(!L||("get"in L?!e.__esModule:L.writable||L.configurable))&&(L={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(Pe,O,L)}:function(Pe,e,a,O){O===void 0&&(O=a),Pe[O]=e[a]}),qe=R&&R.__setModuleDefault||(Object.create?function(Pe,e){Object.defineProperty(Pe,"default",{enumerable:!0,value:e})}:function(Pe,e){Pe.default=e}),Ve=R&&R.__importStar||function(Pe){if(Pe&&Pe.__esModule)return Pe;var e={};if(Pe!=null)for(var a in Pe)a!=="default"&&Object.prototype.hasOwnProperty.call(Pe,a)&&te(e,Pe,a);return qe(e,Pe),e};Object.defineProperty(R,"__esModule",{value:!0}),R.convertComments=void 0;var ni=Ve(Lu()),wr=wN(),fr=_1(),Mr=f1();function ir(Pe,e){let a=[];return(0,wr.forEachComment)(Pe,(O,L)=>{let W=L.kind==ni.SyntaxKind.SingleLineCommentTrivia?Mr.AST_TOKEN_TYPES.Line:Mr.AST_TOKEN_TYPES.Block,N=[L.pos,L.end],Q=(0,fr.getLocFor)(N[0],N[1],Pe),pe=N[0]+2,F=L.kind===ni.SyntaxKind.SingleLineCommentTrivia?N[1]-pe:N[1]-pe-2;a.push({type:W,value:e.slice(pe,pe+F),range:N,loc:Q})},Pe),a}R.convertComments=ir}}),ON=Aa({"node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0});var te={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["exported","source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportExpression:["source"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXClosingFragment:[],JSXOpeningFragment:[],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},qe=Object.keys(te);for(let Mr of qe)Object.freeze(te[Mr]);Object.freeze(te);var Ve=new Set(["parent","leadingComments","trailingComments"]);function ni(Mr){return!Ve.has(Mr)&&Mr[0]!=="_"}function wr(Mr){return Object.keys(Mr).filter(ni)}function fr(Mr){let ir=Object.assign({},te);for(let Pe of Object.keys(Mr))if(Object.prototype.hasOwnProperty.call(ir,Pe)){let e=new Set(Mr[Pe]);for(let a of ir[Pe])e.add(a);ir[Pe]=Object.freeze(Array.from(e))}else ir[Pe]=Object.freeze(Array.from(Mr[Pe]));return Object.freeze(ir)}R.KEYS=te,R.getKeys=wr,R.unionWith=fr}}),EU=Aa({"node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.getKeys=void 0;var te=ON(),qe=te.getKeys;R.getKeys=qe}}),CU=Aa({"node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(Mr,ir,Pe,e){e===void 0&&(e=Pe);var a=Object.getOwnPropertyDescriptor(ir,Pe);(!a||("get"in a?!ir.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return ir[Pe]}}),Object.defineProperty(Mr,e,a)}:function(Mr,ir,Pe,e){e===void 0&&(e=Pe),Mr[e]=ir[Pe]}),qe=R&&R.__setModuleDefault||(Object.create?function(Mr,ir){Object.defineProperty(Mr,"default",{enumerable:!0,value:ir})}:function(Mr,ir){Mr.default=ir}),Ve=R&&R.__importStar||function(Mr){if(Mr&&Mr.__esModule)return Mr;var ir={};if(Mr!=null)for(var Pe in Mr)Pe!=="default"&&Object.prototype.hasOwnProperty.call(Mr,Pe)&&te(ir,Mr,Pe);return qe(ir,Mr),ir};Object.defineProperty(R,"__esModule",{value:!0}),R.visitorKeys=void 0;var ni=Ve(ON()),wr={ImportAttribute:["key","value"],ArrayPattern:["decorators","elements","typeAnnotation"],ArrowFunctionExpression:["typeParameters","params","returnType","body"],AssignmentPattern:["decorators","left","right","typeAnnotation"],CallExpression:["callee","typeParameters","arguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","implements","body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","implements","body"],ExportAllDeclaration:["exported","source","assertions"],ExportNamedDeclaration:["declaration","specifiers","source","assertions"],FunctionDeclaration:["id","typeParameters","params","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["decorators","typeAnnotation"],ImportDeclaration:["specifiers","source","assertions"],ImportExpression:["source","attributes"],MethodDefinition:["decorators","key","value"],NewExpression:["callee","typeParameters","arguments"],ObjectPattern:["decorators","properties","typeAnnotation"],PropertyDefinition:["decorators","key","typeAnnotation","value"],RestElement:["decorators","argument","typeAnnotation"],TaggedTemplateExpression:["tag","typeParameters","quasi"],StaticBlock:["body"],JSXOpeningElement:["name","typeParameters","attributes"],JSXClosingFragment:[],JSXOpeningFragment:[],JSXSpreadChild:["expression"],Decorator:["expression"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAnyKeyword:[],TSArrayType:["elementType"],TSAsExpression:["expression","typeAnnotation"],TSAsyncKeyword:[],TSBigIntKeyword:[],TSBooleanKeyword:[],TSCallSignatureDeclaration:["typeParameters","params","returnType"],TSClassImplements:["expression","typeParameters"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSConstructorType:["typeParameters","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","params","returnType"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSExportAssignment:["expression"],TSExportKeyword:[],TSExternalModuleReference:["expression"],TSFunctionType:["typeParameters","params","returnType"],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["parameter","qualifier","typeParameters"],TSIndexedAccessType:["indexType","objectType"],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:["typeParameter"],TSInterfaceBody:["body"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceHeritage:["expression","typeParameters"],TSIntersectionType:["types"],TSIntrinsicKeyword:[],TSLiteralType:["literal"],TSMappedType:["nameType","typeParameter","typeAnnotation"],TSMethodSignature:["typeParameters","key","params","returnType"],TSModuleBlock:["body"],TSModuleDeclaration:["id","body"],TSNamedTupleMember:["elementType"],TSNamespaceExportDeclaration:["id"],TSNeverKeyword:[],TSNonNullExpression:["expression"],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSOptionalType:["typeAnnotation"],TSParameterProperty:["decorators","parameter"],TSPrivateKeyword:[],TSPropertySignature:["typeAnnotation","key","initializer"],TSProtectedKeyword:[],TSPublicKeyword:[],TSQualifiedName:["left","right"],TSReadonlyKeyword:[],TSRestType:["typeAnnotation"],TSStaticKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSTemplateLiteralType:["quasis","types"],TSThisType:[],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:["typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSTypeLiteral:["members"],TSTypeOperator:["typeAnnotation"],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:["params"],TSTypeParameterInstantiation:["params"],TSTypePredicate:["typeAnnotation","parameterName"],TSTypeQuery:["exprName"],TSTypeReference:["typeName","typeParameters"],TSUndefinedKeyword:[],TSUnionType:["types"],TSUnknownKeyword:[],TSVoidKeyword:[]},fr=ni.unionWith(wr);R.visitorKeys=fr}}),FN=Aa({"node_modules/@typescript-eslint/visitor-keys/dist/index.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.visitorKeys=R.getKeys=void 0;var te=EU();Object.defineProperty(R,"getKeys",{enumerable:!0,get:function(){return te.getKeys}});var qe=CU();Object.defineProperty(R,"visitorKeys",{enumerable:!0,get:function(){return qe.visitorKeys}})}}),MN=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.simpleTraverse=void 0;var te=FN();function qe(fr){return fr!==null&&typeof fr=="object"&&typeof fr.type=="string"}function Ve(fr,Mr){let ir=fr[Mr.type];return ir!=null?ir:[]}var ni=class{constructor(fr){let Mr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;this.allVisitorKeys=te.visitorKeys,this.selectors=fr,this.setParentPointers=Mr}traverse(fr,Mr){if(!qe(fr))return;this.setParentPointers&&(fr.parent=Mr),"enter"in this.selectors?this.selectors.enter(fr,Mr):fr.type in this.selectors&&this.selectors[fr.type](fr,Mr);let ir=Ve(this.allVisitorKeys,fr);if(!(ir.length<1))for(let Pe of ir){let e=fr[Pe];if(Array.isArray(e))for(let a of e)this.traverse(a,fr);else this.traverse(e,fr)}}};function wr(fr,Mr){let ir=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;new ni(Mr,ir).traverse(fr,void 0)}R.simpleTraverse=wr}}),kU=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.astConverter=void 0;var te=kN(),qe=xU(),Ve=_1(),ni=MN();function wr(fr,Mr,ir){let{parseDiagnostics:Pe}=fr;if(Pe.length)throw(0,te.convertError)(Pe[0]);let e=new te.Converter(fr,{errorOnUnknownASTType:Mr.errorOnUnknownASTType||!1,shouldPreserveNodeMaps:ir}),a=e.convertProgram();(!Mr.range||!Mr.loc)&&(0,ni.simpleTraverse)(a,{enter:L=>{Mr.range||delete L.range,Mr.loc||delete L.loc}}),Mr.tokens&&(a.tokens=(0,Ve.convertTokens)(fr)),Mr.comment&&(a.comments=(0,qe.convertComments)(fr,Mr.code));let O=e.getASTMaps();return{estree:a,astMaps:O}}R.astConverter=wr}}),xm=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(g,S,H,se){se===void 0&&(se=H);var p=Object.getOwnPropertyDescriptor(S,H);(!p||("get"in p?!S.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return S[H]}}),Object.defineProperty(g,se,p)}:function(g,S,H,se){se===void 0&&(se=H),g[se]=S[H]}),qe=R&&R.__setModuleDefault||(Object.create?function(g,S){Object.defineProperty(g,"default",{enumerable:!0,value:S})}:function(g,S){g.default=S}),Ve=R&&R.__importStar||function(g){if(g&&g.__esModule)return g;var S={};if(g!=null)for(var H in g)H!=="default"&&Object.prototype.hasOwnProperty.call(g,H)&&te(S,g,H);return qe(S,g),S},ni=R&&R.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(R,"__esModule",{value:!0}),R.getModuleResolver=R.getAstFromProgram=R.getScriptKind=R.getCanonicalFileName=R.ensureAbsolutePath=R.createDefaultCompilerOptionsFromExtra=R.canonicalDirname=R.CORE_COMPILER_OPTIONS=void 0;var wr=ni(Ly()),fr=Ve(Lu()),Mr={noEmit:!0,noUnusedLocals:!0,noUnusedParameters:!0};R.CORE_COMPILER_OPTIONS=Mr;var ir=Object.assign(Object.assign({},Mr),{allowNonTsExtensions:!0,allowJs:!0,checkJs:!0});function Pe(g){return g.debugLevel.has("typescript")?Object.assign(Object.assign({},ir),{extendedDiagnostics:!0}):ir}R.createDefaultCompilerOptionsFromExtra=Pe;var e=fr.sys!==void 0?fr.sys.useCaseSensitiveFileNames:!0,a=e?g=>g:g=>g.toLowerCase();function O(g){let S=wr.default.normalize(g);return S.endsWith(wr.default.sep)&&(S=S.slice(0,-1)),a(S)}R.getCanonicalFileName=O;function L(g,S){return wr.default.isAbsolute(g)?g:wr.default.join(S.tsconfigRootDir||"/prettier-security-dirname-placeholder",g)}R.ensureAbsolutePath=L;function W(g){return wr.default.dirname(g)}R.canonicalDirname=W;function N(g){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g.filePath;switch(wr.default.extname(S).toLowerCase()){case".ts":return fr.ScriptKind.TS;case".tsx":return fr.ScriptKind.TSX;case".js":return fr.ScriptKind.JS;case".jsx":return fr.ScriptKind.JSX;case".json":return fr.ScriptKind.JSON;default:return g.jsx?fr.ScriptKind.TSX:fr.ScriptKind.TS}}R.getScriptKind=N;function Q(g){return g?g.endsWith(".d.ts")?".d.ts":wr.default.extname(g):null}function pe(g,S){let H=g.getSourceFile(S.filePath),se=Q(S.filePath),p=Q(H==null?void 0:H.fileName);if(se===p)return H&&{ast:H,program:g}}R.getAstFromProgram=pe;function F(g){let S;try{throw new Error("Dynamic require is not supported")}catch{let se=["Could not find the provided parserOptions.moduleResolver.","Hint: use an absolute path if you are not in control over where the ESLint instance runs."];throw new Error(se.join(`
`))}return S}R.getModuleResolver=F}}),AU=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(a,O,L,W){W===void 0&&(W=L);var N=Object.getOwnPropertyDescriptor(O,L);(!N||("get"in N?!O.__esModule:N.writable||N.configurable))&&(N={enumerable:!0,get:function(){return O[L]}}),Object.defineProperty(a,W,N)}:function(a,O,L,W){W===void 0&&(W=L),a[W]=O[L]}),qe=R&&R.__setModuleDefault||(Object.create?function(a,O){Object.defineProperty(a,"default",{enumerable:!0,value:O})}:function(a,O){a.default=O}),Ve=R&&R.__importStar||function(a){if(a&&a.__esModule)return a;var O={};if(a!=null)for(var L in a)L!=="default"&&Object.prototype.hasOwnProperty.call(a,L)&&te(O,a,L);return qe(O,a),O},ni=R&&R.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(R,"__esModule",{value:!0}),R.createDefaultProgram=void 0;var wr=ni(Tm()),fr=ni(Ly()),Mr=Ve(Lu()),ir=xm(),Pe=(0,wr.default)("typescript-eslint:typescript-estree:createDefaultProgram");function e(a,O){if(Pe("Getting default program for: %s",O.filePath||"unnamed file"),!O.projects||O.projects.length!==1)return;let L=O.projects[0],W=Mr.getParsedCommandLineOfConfigFile(L,(0,ir.createDefaultCompilerOptionsFromExtra)(O),Object.assign(Object.assign({},Mr.sys),{onUnRecoverableConfigFileDiagnostic:()=>{}}));if(!W)return;let N=Mr.createCompilerHost(W.options,!0);O.moduleResolver&&(N.resolveModuleNames=(0,ir.getModuleResolver)(O.moduleResolver).resolveModuleNames);let Q=N.readFile;N.readFile=g=>fr.default.normalize(g)===fr.default.normalize(O.filePath)?a:Q(g);let pe=Mr.createProgram([O.filePath],W.options,N),F=pe.getSourceFile(O.filePath);return F&&{ast:F,program:pe}}R.createDefaultProgram=e}}),PU=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(e,a,O,L){L===void 0&&(L=O);var W=Object.getOwnPropertyDescriptor(a,O);(!W||("get"in W?!a.__esModule:W.writable||W.configurable))&&(W={enumerable:!0,get:function(){return a[O]}}),Object.defineProperty(e,L,W)}:function(e,a,O,L){L===void 0&&(L=O),e[L]=a[O]}),qe=R&&R.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:!0,value:a})}:function(e,a){e.default=a}),Ve=R&&R.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var O in e)O!=="default"&&Object.prototype.hasOwnProperty.call(e,O)&&te(a,e,O);return qe(a,e),a},ni=R&&R.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(R,"__esModule",{value:!0}),R.createIsolatedProgram=void 0;var wr=ni(Tm()),fr=Ve(Lu()),Mr=xm(),ir=(0,wr.default)("typescript-eslint:typescript-estree:createIsolatedProgram");function Pe(e,a){ir("Getting isolated program in %s mode for: %s",a.jsx?"TSX":"TS",a.filePath);let O={fileExists(){return!0},getCanonicalFileName(){return a.filePath},getCurrentDirectory(){return""},getDirectories(){return[]},getDefaultLibFileName(){return"lib.d.ts"},getNewLine(){return`
`},getSourceFile(N){return fr.createSourceFile(N,e,fr.ScriptTarget.Latest,!0,(0,Mr.getScriptKind)(a,N))},readFile(){},useCaseSensitiveFileNames(){return!0},writeFile(){return null}},L=fr.createProgram([a.filePath],Object.assign({noResolve:!0,target:fr.ScriptTarget.Latest,jsx:a.jsx?fr.JsxEmit.Preserve:void 0},(0,Mr.createDefaultCompilerOptionsFromExtra)(a)),O),W=L.getSourceFile(a.filePath);if(!W)throw new Error("Expected an ast to be returned for the single-file isolated program.");return{ast:W,program:L}}R.createIsolatedProgram=Pe}}),LN=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(B,re,M,x){x===void 0&&(x=M);var ie=Object.getOwnPropertyDescriptor(re,M);(!ie||("get"in ie?!re.__esModule:ie.writable||ie.configurable))&&(ie={enumerable:!0,get:function(){return re[M]}}),Object.defineProperty(B,x,ie)}:function(B,re,M,x){x===void 0&&(x=M),B[x]=re[M]}),qe=R&&R.__setModuleDefault||(Object.create?function(B,re){Object.defineProperty(B,"default",{enumerable:!0,value:re})}:function(B,re){B.default=re}),Ve=R&&R.__importStar||function(B){if(B&&B.__esModule)return B;var re={};if(B!=null)for(var M in B)M!=="default"&&Object.prototype.hasOwnProperty.call(B,M)&&te(re,B,M);return qe(re,B),re},ni=R&&R.__importDefault||function(B){return B&&B.__esModule?B:{default:B}};Object.defineProperty(R,"__esModule",{value:!0}),R.getProgramsForProjects=R.createWatchProgram=R.clearWatchCaches=void 0;var wr=ni(Tm()),fr=ni(OT()),Mr=ni(PT()),ir=Ve(Lu()),Pe=xm(),e=(0,wr.default)("typescript-eslint:typescript-estree:createWatchProgram"),a=new Map,O=new Map,L=new Map,W=new Map,N=new Map,Q=new Map;function pe(){a.clear(),O.clear(),L.clear(),Q.clear(),W.clear(),N.clear()}R.clearWatchCaches=pe;function F(B){return(re,M)=>{let x=(0,Pe.getCanonicalFileName)(re),ie=(()=>{let _e=B.get(x);return _e||(_e=new Set,B.set(x,_e)),_e})();return ie.add(M),{close:()=>{ie.delete(M)}}}}var g={code:"",filePath:""};function S(B){throw new Error(ir.flattenDiagnosticMessageText(B.messageText,ir.sys.newLine))}function H(B){var re;return!((re=ir.sys)===null||re===void 0)&&re.createHash?ir.sys.createHash(B):B}function se(B,re,M){let x=M.EXPERIMENTAL_useSourceOfProjectReferenceRedirect?new Set(re.getSourceFiles().map(ie=>(0,Pe.getCanonicalFileName)(ie.fileName))):new Set(re.getRootFileNames().map(ie=>(0,Pe.getCanonicalFileName)(ie)));return W.set(B,x),x}function p(B,re,M){let x=(0,Pe.getCanonicalFileName)(re),ie=[];g.code=B,g.filePath=x;let _e=O.get(x),Y=H(B);Q.get(x)!==Y&&_e&&_e.size>0&&_e.forEach(Z=>Z(x,ir.FileWatcherEventKind.Changed));for(let[Z,k]of a.entries()){let I=W.get(Z),ne=null;if(I||(ne=k.getProgram().getProgram(),I=se(Z,ne,M)),I.has(x))return e("Found existing program for file. %s",x),ne=ne!=null?ne:k.getProgram().getProgram(),ne.getTypeChecker(),[ne]}e("File did not belong to any existing programs, moving to create/update. %s",x);for(let Z of M.projects){let k=a.get(Z);if(k){let A=ue(k,x,Z);if(!A)continue;if(A.getTypeChecker(),se(Z,A,M).has(x))return e("Found updated program for file. %s",x),[A];ie.push(A);continue}let I=G(Z,M);a.set(Z,I);let ne=I.getProgram().getProgram();if(ne.getTypeChecker(),se(Z,ne,M).has(x))return e("Found program for file. %s",x),[ne];ie.push(ne)}return ie}R.getProgramsForProjects=p;var C=Mr.default.satisfies(ir.version,">=3.9.0-beta",{includePrerelease:!0});function G(B,re){e("Creating watch program for %s.",B);let M=ir.createWatchCompilerHost(B,(0,Pe.createDefaultCompilerOptionsFromExtra)(re),ir.sys,ir.createAbstractBuilder,S,()=>{});re.moduleResolver&&(M.resolveModuleNames=(0,Pe.getModuleResolver)(re.moduleResolver).resolveModuleNames);let x=M.readFile;M.readFile=(Z,k)=>{let I=(0,Pe.getCanonicalFileName)(Z),ne=I===g.filePath?g.code:x(I,k);return ne!==void 0&&Q.set(I,H(ne)),ne},M.onUnRecoverableConfigFileDiagnostic=S,M.afterProgramCreate=Z=>{let k=Z.getConfigFileParsingDiagnostics().filter(I=>I.category===ir.DiagnosticCategory.Error&&I.code!==18003);k.length>0&&S(k[0])},M.watchFile=F(O),M.watchDirectory=F(L);let ie=M.onCachedDirectoryStructureHostCreate;M.onCachedDirectoryStructureHostCreate=Z=>{let k=Z.readDirectory;Z.readDirectory=(I,ne,ee,A,f)=>k(I,ne?ne.concat(re.extraFileExtensions):void 0,ee,A,f),ie(Z)},M.extraFileExtensions=re.extraFileExtensions.map(Z=>({extension:Z,isMixedContent:!0,scriptKind:ir.ScriptKind.Deferred})),M.trace=e,M.useSourceOfProjectReferenceRedirect=()=>re.EXPERIMENTAL_useSourceOfProjectReferenceRedirect;let _e;C?(M.setTimeout=void 0,M.clearTimeout=void 0):(e("Running without timeout fix"),M.setTimeout=function(Z,k){for(var I=arguments.length,ne=new Array(I>2?I-2:0),ee=2;ee<I;ee++)ne[ee-2]=arguments[ee];return _e=Z.bind(void 0,...ne),_e},M.clearTimeout=()=>{_e=void 0});let Y=ir.createWatchProgram(M);if(!C){let Z=Y.getProgram;Y.getProgram=()=>(_e&&_e(),_e=void 0,Z.call(Y))}return Y}R.createWatchProgram=G;function E(B){let M=fr.default.statSync(B).mtimeMs,x=N.get(B);return N.set(B,M),x===void 0?!1:Math.abs(x-M)>Number.EPSILON}function ue(B,re,M){let x=B.getProgram().getProgram();if(yl.env.TSESTREE_NO_INVALIDATION==="true")return x;E(M)&&(e("tsconfig has changed - triggering program update. %s",M),O.get(M).forEach(A=>A(M,ir.FileWatcherEventKind.Changed)),W.delete(M));let ie=x.getSourceFile(re);if(ie)return x;e("File was not found in program - triggering folder update. %s",re);let _e=(0,Pe.canonicalDirname)(re),Y=null,Z=_e,k=!1;for(;Y!==Z;){Y=Z;let A=L.get(Y);A&&(A.forEach(f=>{_e!==Y&&f(_e,ir.FileWatcherEventKind.Changed),f(Y,ir.FileWatcherEventKind.Changed)}),k=!0),Z=(0,Pe.canonicalDirname)(Y)}if(!k)return e("No callback found for file, not part of this program. %s",re),null;if(W.delete(M),x=B.getProgram().getProgram(),ie=x.getSourceFile(re),ie)return x;e("File was still not found in program after directory update - checking file deletions. %s",re);let ne=x.getRootFileNames().find(A=>!fr.default.existsSync(A));if(!ne)return null;let ee=O.get((0,Pe.getCanonicalFileName)(ne));return ee?(e("Marking file as deleted. %s",ne),ee.forEach(A=>A(ne,ir.FileWatcherEventKind.Deleted)),W.delete(M),x=B.getProgram().getProgram(),ie=x.getSourceFile(re),ie?x:(e("File was still not found in program after deletion check, assuming it is not part of this program. %s",re),null)):(e("Could not find watch callbacks for root file. %s",ne),x)}}}),NU=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js"(R){"use strict";Sa();var te=R&&R.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(R,"__esModule",{value:!0}),R.createProjectProgram=void 0;var qe=te(Tm()),Ve=te(Ly()),ni=LN(),wr=_1(),fr=xm(),Mr=(0,qe.default)("typescript-eslint:typescript-estree:createProjectProgram"),ir=[".ts",".tsx",".js",".jsx"];function Pe(e,a,O){Mr("Creating project program for: %s",O.filePath);let L=(0,wr.firstDefined)((0,ni.getProgramsForProjects)(e,O.filePath,O),W=>(0,fr.getAstFromProgram)(W,O));if(!L&&!a){let W=['"parserOptions.project" has been set for @typescript-eslint/parser.',"The file does not match your project config: ".concat(Ve.default.relative(O.tsconfigRootDir||"/prettier-security-dirname-placeholder",O.filePath),".")],N=!1,Q=O.extraFileExtensions||[];Q.forEach(F=>{F.startsWith(".")||W.push('Found unexpected extension "'.concat(F,'" specified with the "extraFileExtensions" option. Did you mean ".').concat(F,'"?')),ir.includes(F)&&W.push('You unnecessarily included the extension "'.concat(F,'" with the "extraFileExtensions" option. This extension is already handled by the parser by default.'))});let pe=Ve.default.extname(O.filePath);if(!ir.includes(pe)){let F="The extension for the file (".concat(pe,") is non-standard");Q.length>0?Q.includes(pe)||(W.push("".concat(F,'. It should be added to your existing "parserOptions.extraFileExtensions".')),N=!0):(W.push("".concat(F,'. You should add "parserOptions.extraFileExtensions" to your config.')),N=!0)}throw N||W.push("The file must be included in at least one of the projects provided."),new Error(W.join(`
`))}return L}R.createProjectProgram=Pe}}),IU=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(e,a,O,L){L===void 0&&(L=O);var W=Object.getOwnPropertyDescriptor(a,O);(!W||("get"in W?!a.__esModule:W.writable||W.configurable))&&(W={enumerable:!0,get:function(){return a[O]}}),Object.defineProperty(e,L,W)}:function(e,a,O,L){L===void 0&&(L=O),e[L]=a[O]}),qe=R&&R.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:!0,value:a})}:function(e,a){e.default=a}),Ve=R&&R.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var O in e)O!=="default"&&Object.prototype.hasOwnProperty.call(e,O)&&te(a,e,O);return qe(a,e),a},ni=R&&R.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(R,"__esModule",{value:!0}),R.createSourceFile=void 0;var wr=ni(Tm()),fr=Ve(Lu()),Mr=xm(),ir=(0,wr.default)("typescript-eslint:typescript-estree:createSourceFile");function Pe(e,a){return ir("Getting AST without type information in %s mode for: %s",a.jsx?"TSX":"TS",a.filePath),fr.createSourceFile(a.filePath,e,fr.ScriptTarget.Latest,!0,(0,Mr.getScriptKind)(a))}R.createSourceFile=Pe}}),wU=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.getFirstSemanticOrSyntacticError=void 0;var te=Lu();function qe(wr,fr){try{let Mr=Ve(wr.getSyntacticDiagnostics(fr));if(Mr.length)return ni(Mr[0]);let ir=Ve(wr.getSemanticDiagnostics(fr));return ir.length?ni(ir[0]):void 0}catch(Mr){console.warn('Warning From TSC: "'.concat(Mr.message));return}}R.getFirstSemanticOrSyntacticError=qe;function Ve(wr){return wr.filter(fr=>{switch(fr.code){case 1013:case 1014:case 1044:case 1045:case 1048:case 1049:case 1070:case 1071:case 1085:case 1090:case 1096:case 1097:case 1098:case 1099:case 1117:case 1121:case 1123:case 1141:case 1162:case 1164:case 1172:case 1173:case 1175:case 1176:case 1190:case 1196:case 1200:case 1206:case 1211:case 1242:case 1246:case 1255:case 1308:case 2364:case 2369:case 2452:case 2462:case 8017:case 17012:case 17013:return!0}return!1})}function ni(wr){return Object.assign(Object.assign({},wr),{message:(0,te.flattenDiagnosticMessageText)(wr.messageText,te.sys.newLine)})}}}),RN=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(W,N,Q,pe){pe===void 0&&(pe=Q);var F=Object.getOwnPropertyDescriptor(N,Q);(!F||("get"in F?!N.__esModule:F.writable||F.configurable))&&(F={enumerable:!0,get:function(){return N[Q]}}),Object.defineProperty(W,pe,F)}:function(W,N,Q,pe){pe===void 0&&(pe=Q),W[pe]=N[Q]}),qe=R&&R.__setModuleDefault||(Object.create?function(W,N){Object.defineProperty(W,"default",{enumerable:!0,value:N})}:function(W,N){W.default=N}),Ve=R&&R.__importStar||function(W){if(W&&W.__esModule)return W;var N={};if(W!=null)for(var Q in W)Q!=="default"&&Object.prototype.hasOwnProperty.call(W,Q)&&te(N,W,Q);return qe(N,W),N},ni=R&&R.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(R,"__esModule",{value:!0}),R.createProgramFromConfigFile=R.useProvidedPrograms=void 0;var wr=ni(Tm()),fr=Ve(OT()),Mr=Ve(Ly()),ir=Ve(Lu()),Pe=xm(),e=(0,wr.default)("typescript-eslint:typescript-estree:useProvidedProgram");function a(W,N){e("Retrieving ast for %s from provided program instance(s)",N.filePath);let Q;for(let pe of W)if(Q=(0,Pe.getAstFromProgram)(pe,N),Q)break;if(!Q){let pe=Mr.relative(N.tsconfigRootDir||"/prettier-security-dirname-placeholder",N.filePath),F=['"parserOptions.programs" has been provided for @typescript-eslint/parser.',"The file was not found in any of the provided program instance(s): ".concat(pe)];throw new Error(F.join(`
`))}return Q.program.getTypeChecker(),Q}R.useProvidedPrograms=a;function O(W,N){if(ir.sys===void 0)throw new Error("`createProgramFromConfigFile` is only supported in a Node-like environment.");let pe=ir.getParsedCommandLineOfConfigFile(W,Pe.CORE_COMPILER_OPTIONS,{onUnRecoverableConfigFileDiagnostic:g=>{throw new Error(L([g]))},fileExists:fr.existsSync,getCurrentDirectory:()=>N&&Mr.resolve(N)||"/prettier-security-dirname-placeholder",readDirectory:ir.sys.readDirectory,readFile:g=>fr.readFileSync(g,"utf-8"),useCaseSensitiveFileNames:ir.sys.useCaseSensitiveFileNames});if(pe.errors.length)throw new Error(L(pe.errors));let F=ir.createCompilerHost(pe.options,!0);return ir.createProgram(pe.fileNames,pe.options,F)}R.createProgramFromConfigFile=O;function L(W){return ir.formatDiagnostics(W,{getCanonicalFileName:N=>N,getCurrentDirectory:yl.cwd,getNewLine:()=>`
`})}}}),OU=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/parser.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(f,P,D,l){l===void 0&&(l=D);var _=Object.getOwnPropertyDescriptor(P,D);(!_||("get"in _?!P.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return P[D]}}),Object.defineProperty(f,l,_)}:function(f,P,D,l){l===void 0&&(l=D),f[l]=P[D]}),qe=R&&R.__setModuleDefault||(Object.create?function(f,P){Object.defineProperty(f,"default",{enumerable:!0,value:P})}:function(f,P){f.default=P}),Ve=R&&R.__importStar||function(f){if(f&&f.__esModule)return f;var P={};if(f!=null)for(var D in f)D!=="default"&&Object.prototype.hasOwnProperty.call(f,D)&&te(P,f,D);return qe(P,f),P},ni=R&&R.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(R,"__esModule",{value:!0}),R.clearParseAndGenerateServicesCalls=R.clearProgramCache=R.parseWithNodeMaps=R.parseAndGenerateServices=R.parse=void 0;var wr=ni(Tm()),fr=ni(gj()),Mr=ni(PT()),ir=Ly(),Pe=Ve(Lu()),e=kU(),a=kN(),O=AU(),L=PU(),W=NU(),N=IU(),Q=wU(),pe=xm(),F=RN(),g=(0,wr.default)("typescript-eslint:typescript-estree:parser"),S=">=3.3.1 <4.7.0",H=[],se=Pe.version,p=Mr.default.satisfies(se,[S].concat(H).join(" || ")),C,G=!1,E=new Map;function ue(){E.clear()}R.clearProgramCache=ue;function B(f){return typeof f!="string"?String(f):f}function re(f,P,D,l){return P&&(0,F.useProvidedPrograms)(P,C)||D&&(0,W.createProjectProgram)(f,l,C)||D&&l&&(0,O.createDefaultProgram)(f,C)||(0,L.createIsolatedProgram)(f,C)}function M(){let{jsx:f}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return f?"estree.tsx":"estree.ts"}function x(){C={code:"",comment:!1,comments:[],createDefaultProgram:!1,debugLevel:new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:!1,EXPERIMENTAL_useSourceOfProjectReferenceRedirect:!1,extraFileExtensions:[],filePath:M(),jsx:!1,loc:!1,log:console.log,preserveNodeMaps:!0,programs:null,projects:[],range:!1,strict:!1,tokens:null,tsconfigRootDir:"/prettier-security-dirname-placeholder",singleRun:!1,moduleResolver:""}}function ie(f){var P;if(f.debugLevel===!0?C.debugLevel=new Set(["typescript-eslint"]):Array.isArray(f.debugLevel)&&(C.debugLevel=new Set(f.debugLevel)),C.debugLevel.size>0){let D=[];C.debugLevel.has("typescript-eslint")&&D.push("typescript-eslint:*"),(C.debugLevel.has("eslint")||wr.default.enabled("eslint:*,-eslint:code-path"))&&D.push("eslint:*,-eslint:code-path"),wr.default.enable(D.join(","))}if(C.range=typeof f.range=="boolean"&&f.range,C.loc=typeof f.loc=="boolean"&&f.loc,typeof f.tokens=="boolean"&&f.tokens&&(C.tokens=[]),typeof f.comment=="boolean"&&f.comment&&(C.comment=!0,C.comments=[]),typeof f.jsx=="boolean"&&f.jsx&&(C.jsx=!0),typeof f.filePath=="string"&&f.filePath!=="<input>"?C.filePath=f.filePath:C.filePath=M(C),typeof f.errorOnUnknownASTType=="boolean"&&f.errorOnUnknownASTType&&(C.errorOnUnknownASTType=!0),typeof f.loggerFn=="function"?C.log=f.loggerFn:f.loggerFn===!1&&(C.log=()=>{}),typeof f.tsconfigRootDir=="string"&&(C.tsconfigRootDir=f.tsconfigRootDir),C.filePath=(0,pe.ensureAbsolutePath)(C.filePath,C),Array.isArray(f.programs)){if(!f.programs.length)throw new Error("You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.");C.programs=f.programs,g("parserOptions.programs was provided, so parserOptions.project will be ignored.")}if(!C.programs){let D=((P=f.projectFolderIgnoreList)!==null&&P!==void 0?P:["**/node_modules/**"]).reduce((l,_)=>(typeof _=="string"&&l.push(_),l),[]).map(l=>l.startsWith("!")?l:"!".concat(l));C.projects=[]}Array.isArray(f.extraFileExtensions)&&f.extraFileExtensions.every(D=>typeof D=="string")&&(C.extraFileExtensions=f.extraFileExtensions),typeof f.preserveNodeMaps=="boolean"&&(C.preserveNodeMaps=f.preserveNodeMaps),C.createDefaultProgram=typeof f.createDefaultProgram=="boolean"&&f.createDefaultProgram,C.EXPERIMENTAL_useSourceOfProjectReferenceRedirect=typeof f.EXPERIMENTAL_useSourceOfProjectReferenceRedirect=="boolean"&&f.EXPERIMENTAL_useSourceOfProjectReferenceRedirect,typeof f.moduleResolver=="string"&&(C.moduleResolver=f.moduleResolver)}function _e(){var f;if(!p&&!G){if(typeof yl>"u"?!1:(f=yl.stdout)===null||f===void 0?void 0:f.isTTY){let D="=============",l=[D,"WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.","You may find that it works just fine, or you may not.","SUPPORTED TYPESCRIPT VERSIONS: ".concat(S),"YOUR TYPESCRIPT VERSION: ".concat(se),"Please only submit bug reports when using the officially supported version.",D];C.log(l.join(`
`))}G=!0}}function Y(f){if(yl.env.TSESTREE_SINGLE_RUN==="false"){C.singleRun=!1;return}if(yl.env.TSESTREE_SINGLE_RUN==="true"){C.singleRun=!0;return}if(f!=null&&f.allowAutomaticSingleRunInference&&(yl.env.CI==="true"||yl.argv[1].endsWith((0,ir.normalize)("node_modules/.bin/eslint")))){C.singleRun=!0;return}C.singleRun=!1}function Z(f,P){let{ast:D}=k(f,P,!1);return D}R.parse=Z;function k(f,P,D){if(x(),P!=null&&P.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');f=B(f),C.code=f,typeof P<"u"&&ie(P),_e(),Y(P);let l=(0,N.createSourceFile)(f,C),{estree:_,astMaps:J}=(0,e.astConverter)(l,C,D);return{ast:_,esTreeNodeToTSNodeMap:J.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:J.tsNodeToESTreeNodeMap}}function I(f,P){return k(f,P,!0)}R.parseWithNodeMaps=I;var ne={};function ee(){ne={}}R.clearParseAndGenerateServicesCalls=ee;function A(f,P){var D;x(),f=B(f),C.code=f,typeof P<"u"&&(ie(P),typeof P.errorOnTypeScriptSyntacticAndSemanticIssues=="boolean"&&P.errorOnTypeScriptSyntacticAndSemanticIssues&&(C.errorOnTypeScriptSyntacticAndSemanticIssues=!0)),_e(),Y(P),C.singleRun&&!C.programs&&((D=C.projects)===null||D===void 0?void 0:D.length)>0&&(C.programs={*[Symbol.iterator](){for(let z of C.projects){let y=E.get(z);if(y)yield y;else{g("Detected single-run/CLI usage, creating Program once ahead of time for project: %s",z);let oe=(0,F.createProgramFromConfigFile)(z);E.set(z,oe),yield oe}}}});let l=C.programs!=null||C.projects&&C.projects.length>0,_,J;if(C.singleRun&&P.filePath&&(ne[P.filePath]=(ne[P.filePath]||0)+1),C.singleRun&&P.filePath&&ne[P.filePath]>1){let z=(0,L.createIsolatedProgram)(f,C);_=z.ast,J=z.program}else{let z=re(f,C.programs,l,C.createDefaultProgram);_=z.ast,J=z.program}let w=typeof C.preserveNodeMaps=="boolean"?C.preserveNodeMaps:!0,{estree:j,astMaps:U}=(0,e.astConverter)(_,C,w);if(J&&C.errorOnTypeScriptSyntacticAndSemanticIssues){let z=(0,Q.getFirstSemanticOrSyntacticError)(J,_);if(z)throw(0,a.convertError)(z)}return{ast:j,services:{hasFullTypeInformation:l,program:J,esTreeNodeToTSNodeMap:U.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:U.tsNodeToESTreeNodeMap}}}R.parseAndGenerateServices=A}}),FU=Aa({"node_modules/@typescript-eslint/typescript-estree/package.json"(R,te){te.exports={name:"@typescript-eslint/typescript-estree",version:"5.17.0",description:"A parser that converts TypeScript source code into an ESTree compatible form",main:"dist/index.js",types:"dist/index.d.ts",files:["dist","README.md","LICENSE"],engines:{node:"^12.22.0 || ^14.17.0 || >=16.0.0"},repository:{type:"git",url:"https://github.com/typescript-eslint/typescript-eslint.git",directory:"packages/typescript-estree"},bugs:{url:"https://github.com/typescript-eslint/typescript-eslint/issues"},license:"BSD-2-Clause",keywords:["ast","estree","ecmascript","javascript","typescript","parser","syntax"],scripts:{build:"tsc -b tsconfig.build.json",postbuild:"downlevel-dts dist _ts3.4/dist",clean:"tsc -b tsconfig.build.json --clean",postclean:"rimraf dist && rimraf _ts3.4 && rimraf coverage",format:'prettier --write "./**/*.{ts,js,json,md}" --ignore-path ../../.prettierignore',lint:"eslint . --ext .js,.ts --ignore-path='../../.eslintignore'",test:"jest --coverage",typecheck:"tsc -p tsconfig.json --noEmit"},dependencies:{"@typescript-eslint/types":"5.17.0","@typescript-eslint/visitor-keys":"5.17.0",debug:"^4.3.2",globby:"^11.0.4","is-glob":"^4.0.3",semver:"^7.3.5",tsutils:"^3.21.0"},devDependencies:{"@babel/code-frame":"^7.16.0","@babel/parser":"^7.16.0","@types/babel__code-frame":"^7.0.3","@types/debug":"*","@types/glob":"*","@types/is-glob":"*","@types/semver":"*","@types/tmp":"*","@typescript-eslint/shared-fixtures":"5.17.0",glob:"*","jest-specific-snapshot":"*","make-dir":"*",tmp:"*",typescript:"*"},peerDependenciesMeta:{typescript:{optional:!0}},funding:{type:"opencollective",url:"https://opencollective.com/typescript-eslint"},typesVersions:{"<3.8":{"*":["_ts3.4/*"]}},gitHead:"790a1eeac93cd3405a774db80a06da7bc15d0876"}}}),MU=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/index.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(ir,Pe,e,a){a===void 0&&(a=e);var O=Object.getOwnPropertyDescriptor(Pe,e);(!O||("get"in O?!Pe.__esModule:O.writable||O.configurable))&&(O={enumerable:!0,get:function(){return Pe[e]}}),Object.defineProperty(ir,a,O)}:function(ir,Pe,e,a){a===void 0&&(a=e),ir[a]=Pe[e]}),qe=R&&R.__exportStar||function(ir,Pe){for(var e in ir)e!=="default"&&!Object.prototype.hasOwnProperty.call(Pe,e)&&te(Pe,ir,e)};Object.defineProperty(R,"__esModule",{value:!0}),R.version=R.visitorKeys=R.createProgram=R.clearCaches=R.simpleTraverse=R.clearProgramCache=R.parseWithNodeMaps=R.parseAndGenerateServices=R.parse=void 0;var Ve=OU();Object.defineProperty(R,"parse",{enumerable:!0,get:function(){return Ve.parse}}),Object.defineProperty(R,"parseAndGenerateServices",{enumerable:!0,get:function(){return Ve.parseAndGenerateServices}}),Object.defineProperty(R,"parseWithNodeMaps",{enumerable:!0,get:function(){return Ve.parseWithNodeMaps}}),Object.defineProperty(R,"clearProgramCache",{enumerable:!0,get:function(){return Ve.clearProgramCache}});var ni=MN();Object.defineProperty(R,"simpleTraverse",{enumerable:!0,get:function(){return ni.simpleTraverse}}),qe(f1(),R);var wr=LN();Object.defineProperty(R,"clearCaches",{enumerable:!0,get:function(){return wr.clearWatchCaches}});var fr=RN();Object.defineProperty(R,"createProgram",{enumerable:!0,get:function(){return fr.createProgramFromConfigFile}});var Mr=FN();Object.defineProperty(R,"visitorKeys",{enumerable:!0,get:function(){return Mr.visitorKeys}}),R.version=FU().version}});Sa();var LU=QP(),RU=XJ(),BU=oj(),JU=sj(),jU=pj(),XP={loc:!0,range:!0,comment:!0,jsx:!0,tokens:!0,loggerFn:!1,project:[]};function UU(R){let{message:te,lineNumber:qe,column:Ve}=R;return typeof qe!="number"?R:LU(te,{start:{line:qe,column:Ve+1}})}function zU(R,te){let qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ve=JU(R),ni=WU(R),{parseWithNodeMaps:wr}=MU(),{result:fr,error:Mr}=RU(()=>wr(Ve,Object.assign(Object.assign({},XP),{},{jsx:ni})),()=>wr(Ve,Object.assign(Object.assign({},XP),{},{jsx:!ni})));if(!fr)throw UU(Mr);return qe.originalText=R,qe.tsParseResult=fr,jU(fr.ast,qe)}function WU(R){return new RegExp(["(?:^[^\"'`]*</)","|","(?:^[^/]{2}.*/>)"].join(""),"m").test(R)}BN.exports={parsers:{typescript:BU(zU)}}});"use strict";return qU();});