X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;ds=sidebyside;f=.config%2Fcoc%2Fextensions%2Fnode_modules%2Fcoc-prettier%2Fnode_modules%2Fprettier%2Fesm%2Fparser-typescript.mjs;h=af7fc779ddedff8ea06acf83c0a1baaafb1a0e04;hb=3be0a9efc698a9570a44456009afc6014812625a;hp=ef2df3428102964f0e98a36546ead641a218eb21;hpb=d2f432cc757f42f0318fdddcab8c00b240d47088;p=dotfiles%2F.git diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/prettier/esm/parser-typescript.mjs b/.config/coc/extensions/node_modules/coc-prettier/node_modules/prettier/esm/parser-typescript.mjs index ef2df342..af7fc779 100644 --- a/.config/coc/extensions/node_modules/coc-prettier/node_modules/prettier/esm/parser-typescript.mjs +++ b/.config/coc/extensions/node_modules/coc-prettier/node_modules/prettier/esm/parser-typescript.mjs @@ -1 +1,13 @@ -var e=function(e,t){const r=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return r.loc=t,r},t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return i(null==t&&r.path)}},r.exports),r.exports}function n(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var a=Object.freeze({__proto__:null,default:{EOL:"\n",platform:()=>"browser",cpus:()=>[{model:"Prettier"}]}});const o=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");const t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return;const r=t.filter((e=>"\r\n"===e)).length;return r>t.length-r?"\r\n":"\n"};var s=o;s.graceful=e=>"string"==typeof e&&o(e)||"\n";var c=n(a),u=r((function(e,t){function r(){const e=c;return r=function(){return e},e}function n(){const e=(t=s)&&t.__esModule?t:{default:t};var t;return n=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(e){const t=e.match(o);return t?t[0].trimLeft():""},t.strip=function(e){const t=e.match(o);return t&&t[0]?e.substring(t[0].length):e},t.parse=function(e){return g(e).pragmas},t.parseWithComments=g,t.print=function({comments:e="",pragmas:t={}}){const i=(0,n().default)(e)||r().EOL,a=" *",o=Object.keys(t),s=o.map((e=>m(e,t[e]))).reduce(((e,t)=>e.concat(t)),[]).map((e=>" * "+e+i)).join("");if(!e){if(0===o.length)return"";if(1===o.length&&!Array.isArray(t[o[0]])){const e=t[o[0]];return"".concat("/**"," ").concat(m(o[0],e)[0]).concat(" */")}}const c=e.split(i).map((e=>"".concat(a," ").concat(e))).join(i)+i;return"/**"+i+(e?c:"")+(e&&o.length?a+i:"")+s+" */"};const i=/\*\/$/,a=/^\/\*\*/,o=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,u=/(^|\s+)\/\/([^\r\n]*)/g,l=/^(\r?\n)+/,d=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,_=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,p=/(\r?\n|^) *\* ?/g,f=[];function g(e){const t=(0,n().default)(e)||r().EOL;e=e.replace(a,"").replace(i,"").replace(p,"$1");let o="";for(;o!==e;)o=e,e=e.replace(d,"".concat(t,"$1 $2").concat(t));e=e.replace(l,"").trimRight();const s=Object.create(null),c=e.replace(_,"").replace(l,"").trimRight();let g;for(;g=_.exec(e);){const e=g[2].replace(u,"");"string"==typeof s[g[1]]||Array.isArray(s[g[1]])?s[g[1]]=f.concat(s[g[1]],e):s[g[1]]=e}return{comments:c,pragmas:s}}function m(e,t){return f.concat(t).map((t=>"@".concat(e," ").concat(t).trim()))}})),l=e=>"string"==typeof e?e.replace((({onlyFirst:e=!1}={})=>{const 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?void 0:"g")})(),""):e;const d=e=>!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));var _=d,p=d;_.default=p;const f=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=l(e);let t=0;for(let r=0;r=127&&n<=159||(n>=768&&n<=879||(n>65535&&r++,t+=_(n)?2:1))}return t};var g=f,m=f;g.default=m;var y=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};function v(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var h="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function D(){throw new Error("setTimeout has not been defined")}function x(){throw new Error("clearTimeout has not been defined")}var b=D,S=x;function E(e){if(b===setTimeout)return setTimeout(e,0);if((b===D||!b)&&setTimeout)return b=setTimeout,setTimeout(e,0);try{return b(e,0)}catch(t){try{return b.call(null,e,0)}catch(t){return b.call(this,e,0)}}}"function"==typeof h.setTimeout&&(b=setTimeout),"function"==typeof h.clearTimeout&&(S=clearTimeout);var C,T=[],k=!1,A=-1;function F(){k&&C&&(k=!1,C.length?T=C.concat(T):A=-1,T.length&&N())}function N(){if(!k){var e=E(F);k=!0;for(var t=T.length;t;){for(C=T,T=[];++A1)for(var r=1;rconsole.error("SEMVER",...e):()=>{};var W={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},H=r((function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r}=W,n=(t=e.exports={}).re=[],i=t.src=[],a=t.t={};let o=0;const s=(e,t,r)=>{const s=o++;q(s,t),a[e]=s,i[s]=t,n[s]=new RegExp(t,r?"g":void 0)};s("NUMERICIDENTIFIER","0|[1-9]\\d*"),s("NUMERICIDENTIFIERLOOSE","[0-9]+"),s("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),s("MAINVERSION","(".concat(i[a.NUMERICIDENTIFIER],")\\.")+"(".concat(i[a.NUMERICIDENTIFIER],")\\.")+"(".concat(i[a.NUMERICIDENTIFIER],")")),s("MAINVERSIONLOOSE","(".concat(i[a.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(i[a.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(i[a.NUMERICIDENTIFIERLOOSE],")")),s("PRERELEASEIDENTIFIER","(?:".concat(i[a.NUMERICIDENTIFIER],"|").concat(i[a.NONNUMERICIDENTIFIER],")")),s("PRERELEASEIDENTIFIERLOOSE","(?:".concat(i[a.NUMERICIDENTIFIERLOOSE],"|").concat(i[a.NONNUMERICIDENTIFIER],")")),s("PRERELEASE","(?:-(".concat(i[a.PRERELEASEIDENTIFIER],"(?:\\.").concat(i[a.PRERELEASEIDENTIFIER],")*))")),s("PRERELEASELOOSE","(?:-?(".concat(i[a.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(i[a.PRERELEASEIDENTIFIERLOOSE],")*))")),s("BUILDIDENTIFIER","[0-9A-Za-z-]+"),s("BUILD","(?:\\+(".concat(i[a.BUILDIDENTIFIER],"(?:\\.").concat(i[a.BUILDIDENTIFIER],")*))")),s("FULLPLAIN","v?".concat(i[a.MAINVERSION]).concat(i[a.PRERELEASE],"?").concat(i[a.BUILD],"?")),s("FULL","^".concat(i[a.FULLPLAIN],"$")),s("LOOSEPLAIN","[v=\\s]*".concat(i[a.MAINVERSIONLOOSE]).concat(i[a.PRERELEASELOOSE],"?").concat(i[a.BUILD],"?")),s("LOOSE","^".concat(i[a.LOOSEPLAIN],"$")),s("GTLT","((?:<|>)?=?)"),s("XRANGEIDENTIFIERLOOSE","".concat(i[a.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),s("XRANGEIDENTIFIER","".concat(i[a.NUMERICIDENTIFIER],"|x|X|\\*")),s("XRANGEPLAIN","[v=\\s]*(".concat(i[a.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(i[a.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(i[a.XRANGEIDENTIFIER],")")+"(?:".concat(i[a.PRERELEASE],")?").concat(i[a.BUILD],"?")+")?)?"),s("XRANGEPLAINLOOSE","[v=\\s]*(".concat(i[a.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(i[a.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(i[a.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(i[a.PRERELEASELOOSE],")?").concat(i[a.BUILD],"?")+")?)?"),s("XRANGE","^".concat(i[a.GTLT],"\\s*").concat(i[a.XRANGEPLAIN],"$")),s("XRANGELOOSE","^".concat(i[a.GTLT],"\\s*").concat(i[a.XRANGEPLAINLOOSE],"$")),s("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(r,"})")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:$|[^\\d])"),s("COERCERTL",i[a.COERCE],!0),s("LONETILDE","(?:~>?)"),s("TILDETRIM","(\\s*)".concat(i[a.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",s("TILDE","^".concat(i[a.LONETILDE]).concat(i[a.XRANGEPLAIN],"$")),s("TILDELOOSE","^".concat(i[a.LONETILDE]).concat(i[a.XRANGEPLAINLOOSE],"$")),s("LONECARET","(?:\\^)"),s("CARETTRIM","(\\s*)".concat(i[a.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",s("CARET","^".concat(i[a.LONECARET]).concat(i[a.XRANGEPLAIN],"$")),s("CARETLOOSE","^".concat(i[a.LONECARET]).concat(i[a.XRANGEPLAINLOOSE],"$")),s("COMPARATORLOOSE","^".concat(i[a.GTLT],"\\s*(").concat(i[a.LOOSEPLAIN],")$|^$")),s("COMPARATOR","^".concat(i[a.GTLT],"\\s*(").concat(i[a.FULLPLAIN],")$|^$")),s("COMPARATORTRIM","(\\s*)".concat(i[a.GTLT],"\\s*(").concat(i[a.LOOSEPLAIN],"|").concat(i[a.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",s("HYPHENRANGE","^\\s*(".concat(i[a.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(i[a.XRANGEPLAIN],")")+"\\s*$"),s("HYPHENRANGELOOSE","^\\s*(".concat(i[a.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(i[a.XRANGEPLAINLOOSE],")")+"\\s*$"),s("STAR","(<|>)?=?\\s*\\*"),s("GTE0","^\\s*>=\\s*0.0.0\\s*$"),s("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}));const G=/^[0-9]+$/,Y=(e,t)=>{const r=G.test(e),n=G.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:eY(t,e)};const{MAX_LENGTH:Q,MAX_SAFE_INTEGER:$}=W,{re:Z,t:ee}=H,{compareIdentifiers:te}=X;class re{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: ".concat(e));if(e.length>Q)throw new TypeError("version is longer than ".concat(Q," characters"));q("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?Z[ee.LOOSE]:Z[ee.FULL]);if(!r)throw new TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>$||this.major<0)throw new TypeError("Invalid major version");if(this.minor>$||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>$||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<$)return t}return e})):this.prerelease=[],this.build=r[5]?r[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(q("SemVer.compare",this.version,this.options,e),!(e instanceof re)){if("string"==typeof e&&e===this.version)return 0;e=new re(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof re||(e=new re(e,this.options)),te(this.major,e.major)||te(this.minor,e.minor)||te(this.patch,e.patch)}comparePre(e){if(e instanceof re||(e=new re(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 t=0;do{const r=this.prerelease[t],n=e.prerelease[t];if(q("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return te(r,n)}while(++t)}compareBuild(e){e instanceof re||(e=new re(e,this.options));let t=0;do{const r=this.build[t],n=e.build[t];if(q("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return te(r,n)}while(++t)}inc(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{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&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: ".concat(e))}return this.format(),this.raw=this.version,this}}var ne=re;var ie=(e,t,r)=>new ne(e,r).compare(new ne(t,r));var ae=(e,t,r)=>ie(e,t,r)<0;var oe=(e,t,r)=>ie(e,t,r)>=0,se="2.2.1",ce=r((function(e,t){function r(){for(var e=[],t=0;t"string"==typeof e||"function"==typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:null,description:"Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:"Config"},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:"Global",description:ge(_e()),exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin-search-dir",cliCategory:"Config"},printWidth:{since:"0.0.0",category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{since:"1.4.0",category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:ge(de()),cliCategory:"Editor"},rangeStart:{since:"1.4.0",category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:ge(le()),cliCategory:"Editor"},requirePragma:{since:"1.7.0",category:"Special",type:"boolean",default:!1,description:ge(ue()),cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{since:"1.0.0",category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:"Global",type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};const ye={compare:ie,lt:ae,gte:oe},ve=se,he={CATEGORY_CONFIG:"Config",CATEGORY_EDITOR:"Editor",CATEGORY_FORMAT:"Format",CATEGORY_OTHER:"Other",CATEGORY_OUTPUT:"Output",CATEGORY_GLOBAL:"Global",CATEGORY_SPECIAL:"Special",options:me}.options;var De={getSupportInfo:function({plugins:e=[],showUnreleased:t=!1,showDeprecated:r=!1,showInternal:n=!1}={}){const i=ve.split("-",1)[0],a=e.reduce(((e,t)=>e.concat(t.languages||[])),[]).filter(u),o=(s=Object.assign({},...e.map((({options:e})=>e)),he),c="name",Object.entries(s).map((([e,t])=>Object.assign({[c]:e},t)))).filter((e=>u(e)&&l(e))).sort(((e,t)=>e.name===t.name?0:e.name=0||(i[r]=e[r]);return i}(e,["cliName","cliCategory","cliDescription"])})).map((t=>{t=Object.assign({},t),Array.isArray(t.default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(u).sort(((e,t)=>ye.compare(t.since,e.since)))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter((e=>u(e)&&l(e))),"parser"===t.name&&function(e,t,r){const n=new Set(e.choices.map((e=>e.value)));for(const i of t)if(i.parsers)for(const t of i.parsers)if(!n.has(t)){n.add(t);const a=r.find((e=>e.parsers&&e.parsers[t]));let o=i.name;a&&a.name&&(o+=" (plugin: ".concat(a.name,")")),e.choices.push({value:t,description:o})}}(t,a,e));const r=e.filter((e=>e.defaultOptions&&void 0!==e.defaultOptions[t.name])).reduce(((e,r)=>(e[r.name]=r.defaultOptions[t.name],e)),{});return Object.assign({},t,{pluginDefaults:r})}));var s,c;return{languages:a,options:o};function u(e){return t||!("since"in e)||e.since&&ye.gte(i,e.since)}function l(e){return r||!("deprecated"in e)||e.deprecated&&ye.lt(i,e.deprecated)}}};const{getSupportInfo:xe}=De,be=/[^\x20-\x7F]/;function Se(e){return(t,r,n)=>{const i=n&&n.backwards;if(!1===r)return!1;const{length:a}=t;let o=r;for(;o>=0&&o(r.match(o.regex)||[]).length?o.quote:a.quote}return s}function Re(e,t,r){const n='"'===t?"'":'"',i=e.replace(/\\([\S\s])|(["'])/g,((e,i,a)=>i===n?i:a===t?"\\"+a:a||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(i)?i:"\\"+i)));return t+i+t}function Be(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,"JSXText"===e.type&&(t.printed=!0)}var je={inferParserByLanguage:function(e,t){const{languages:r}=xe({plugins:t.plugins}),n=r.find((({name:t})=>t.toLowerCase()===e))||r.find((({aliases:t})=>Array.isArray(t)&&t.includes(e)))||r.find((({extensions:t})=>Array.isArray(t)&&t.includes(".".concat(e))));return n&&n.parsers[0]},replaceEndOfLineWith:function(e,t){const r=[];for(const n of e.split("\n"))0!==r.length&&r.push(t),r.push(n);return r},getStringWidth:function(e){return e?be.test(e)?g(e):e.length:0},getMaxContinuousCount:function(e,t){const r=e.match(new RegExp("(".concat(y(t),")+"),"g"));return null===r?0:r.reduce(((e,r)=>Math.max(e,r.length/t.length)),0)},getMinNotPresentContinuousCount:function(e,t){const r=e.match(new RegExp("(".concat(y(t),")+"),"g"));if(null===r)return 0;const n=new Map;let i=0;for(const e of r){const r=e.length/t.length;n.set(r,!0),r>i&&(i=r)}for(let e=1;ee[e.length-2],getLast:e=>e[e.length-1],getNextNonSpaceNonCommentCharacterIndexWithStartIndex:Ie,getNextNonSpaceNonCommentCharacterIndex:Oe,getNextNonSpaceNonCommentCharacter:function(e,t,r){return e.charAt(Oe(e,t,r))},skip:Se,skipWhitespace:Ee,skipSpaces:Ce,skipToLineEnd:Te,skipEverythingButNewLine:ke,skipInlineComment:Ae,skipTrailingComment:Fe,skipNewline:Ne,isNextLineEmptyAfterIndex:we,isNextLineEmpty:function(e,t,r){return we(e,r(t))},isPreviousLineEmpty:function(e,t,r){let n=r(t)-1;return n=Ce(e,n,{backwards:!0}),n=Ne(e,n,{backwards:!0}),n=Ce(e,n,{backwards:!0}),n!==Ne(e,n,{backwards:!0})},hasNewline:Pe,hasNewlineInRange:function(e,t,r){for(let n=t;n=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"},convertEndOfLineToChars:function(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}},countEndOfLineChars:function(e,t){let r;if("\n"===t)r=/\n/g;else if("\r"===t)r=/\r/g;else{if("\r\n"!==t)throw new Error('Unexpected "eol" '.concat(JSON.stringify(t),"."));r=/\r\n/g}const n=e.match(r);return n?n.length:0},normalizeEndOfLine:function(e){return e.replace(/\r\n?/g,"\n")}};const{parseWithComments:Ke,strip:ze,extract:Ue,print:Ve}=u,{getShebang:qe}=je,{normalizeEndOfLine:We}=Je;function He(e){const t=qe(e);t&&(e=e.slice(t.length+1));const r=Ue(e),{pragmas:n,comments:i}=Ke(r);return{shebang:t,text:e,pragmas:n,comments:i}}var Ge={hasPragma:function(e){const t=Object.keys(He(e).pragmas);return t.includes("prettier")||t.includes("format")},insertPragma:function(e){const{shebang:t,text:r,pragmas:n,comments:i}=He(e),a=ze(r),o=Ve({pragmas:Object.assign({format:""},n),comments:i.trimStart()});return(t?"".concat(t,"\n"):"")+We(o)+(a.startsWith("\n")?"\n":"\n\n")+a}};function Ye(e,t){const{ignoreDecorators:r}=t||{};if(!r){const t=e.declaration&&e.declaration.decorators||e.decorators;if(t&&t.length>0)return Ye(t[0])}return e.range?e.range[0]:e.start}function Xe(e){const t=e.range?e.range[1]:e.end;return e.typeAnnotation?Math.max(t,Xe(e.typeAnnotation)):t}function Qe(e,t){return Ye(e)===Ye(t)}var $e={locStart:Ye,locEnd:Xe,composeLoc:function(e,t=e){const r=Ye(e);return[r,"number"==typeof t?r+t:Xe(t)]},hasSameLocStart:Qe,hasSameLoc:function(e,t){return Qe(e,t)&&function(e,t){return Xe(e)===Xe(t)}(e,t)}},Ze=r((function(e){!function(){function t(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function r(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}e.exports={isExpression:function(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:t,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(e){return t(e)||null!=e&&"FunctionDeclaration"===e.type},isProblematicIfStatement:function(e){var t;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=r(t)}while(t);return!1},trailingStatement:r}}()})),et=r((function(e){!function(){var t,r,n,i,a,o;function s(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(r={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},n=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],i=new Array(128),o=0;o<128;++o)i[o]=o>=97&&o<=122||o>=65&&o<=90||36===o||95===o;for(a=new Array(128),o=0;o<128;++o)a[o]=o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||36===o||95===o;e.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&n.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?i[e]:r.NonAsciiIdentifierStart.test(s(e))},isIdentifierPartES5:function(e){return e<128?a[e]:r.NonAsciiIdentifierPart.test(s(e))},isIdentifierStartES6:function(e){return e<128?i[e]:t.NonAsciiIdentifierStart.test(s(e))},isIdentifierPartES6:function(e){return e<128?a[e]:t.NonAsciiIdentifierPart.test(s(e))}}}()})),tt=r((function(e){!function(){var t=et;function r(e,t){return!(!t&&"yield"===e)&&n(e,t)}function n(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function i(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function a(e,t){return"null"===e||"true"===e||"false"===e||n(e,t)}function o(e){var r,n,i;if(0===e.length)return!1;if(i=e.charCodeAt(0),!t.isIdentifierStartES5(i))return!1;for(r=1,n=e.length;r=n)return!1;if(!(56320<=(a=e.charCodeAt(r))&&a<=57343))return!1;i=1024*(i-55296)+(a-56320)+65536}if(!o(i))return!1;o=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:r,isKeywordES6:n,isReservedWordES5:i,isReservedWordES6:a,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:o,isIdentifierNameES6:s,isIdentifierES5:function(e,t){return o(e)&&!i(e,t)},isIdentifierES6:function(e,t){return s(e)&&!a(e,t)}}}()}));const rt=r((function(e,t){t.ast=Ze,t.code=et,t.keyword=tt})).keyword.isIdentifierNameES5,{getLast:nt,hasNewline:it,hasNewlineInRange:at,skipWhitespace:ot}=je,{locStart:st,locEnd:ct,hasSameLocStart:ut}=$e,lt=new RegExp("^".concat("(?:(?=.)\\s)","*:")),dt=new RegExp("^".concat("(?:(?=.)\\s)","*::"));function _t(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e))return e.some((e=>_t(e,t)));const r=t(e);return"boolean"==typeof r?r:Object.keys(e).some((r=>_t(e[r],t)))}function pt(e){return"AssignmentExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type||"ConditionalExpression"===e.type||"CallExpression"===e.type||"OptionalCallExpression"===e.type||"MemberExpression"===e.type||"OptionalMemberExpression"===e.type||"SequenceExpression"===e.type||"TaggedTemplateExpression"===e.type||"BindExpression"===e.type||"UpdateExpression"===e.type&&!e.prefix||"TSAsExpression"===e.type||"TSNonNullExpression"===e.type}function ft(e){return e.expressions?e.expressions[0]:e.left||e.test||e.callee||e.object||e.tag||e.argument||e.expression}function gt(e){return"Block"===e.type||"CommentBlock"===e.type||"MultiLine"===e.type}const mt=new Set(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function yt(e){return e&&mt.has(e.type)}function vt(e){return"BooleanLiteral"===e.type||"DirectiveLiteral"===e.type||"Literal"===e.type||"NullLiteral"===e.type||"NumericLiteral"===e.type||"BigIntLiteral"===e.type||"DecimalLiteral"===e.type||"RegExpLiteral"===e.type||"StringLiteral"===e.type||"TemplateLiteral"===e.type||"TSTypeLiteral"===e.type||"JSXText"===e.type}function ht(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"==typeof e.value}function Dt(e){return"StringLiteral"===e.type||"Literal"===e.type&&"string"==typeof e.value}function xt(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type}function bt(e){return!("CallExpression"!==e.type&&"OptionalCallExpression"!==e.type||"Identifier"!==e.callee.type||"async"!==e.callee.name&&"inject"!==e.callee.name&&"fakeAsync"!==e.callee.name)}function St(e){return"JSXElement"===e.type||"JSXFragment"===e.type}function Et(e){return"get"===e.kind||"set"===e.kind}function Ct(e){return Et(e)||ut(e,e.value)}const Tt=new Set(["BinaryExpression","LogicalExpression","NGPipeExpression"]);const kt=new Set(["AnyTypeAnnotation","TSAnyKeyword","NullLiteralTypeAnnotation","TSNullKeyword","ThisTypeAnnotation","TSThisType","NumberTypeAnnotation","TSNumberKeyword","VoidTypeAnnotation","TSVoidKeyword","BooleanTypeAnnotation","TSBooleanKeyword","BigIntTypeAnnotation","TSBigIntKeyword","SymbolTypeAnnotation","TSSymbolKeyword","StringTypeAnnotation","TSStringKeyword","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType","EmptyTypeAnnotation","MixedTypeAnnotation","TSNeverKeyword","TSObjectKeyword","TSUndefinedKeyword","TSUnknownKeyword"]);const At=/^(skip|[fx]?(it|describe|test))$/;function Ft(e){return"CallExpression"===e.type||"OptionalCallExpression"===e.type}const Nt=new RegExp("([ \n\r\t]+)"),Pt=new RegExp("[^ \n\r\t]");function wt(e){return vt(e)&&(Pt.test(Lt(e))||!/\n/.test(Lt(e)))}function It(e,t){if(St(t))return Wt(t);return t.comments&&t.comments.some((t=>t.leading&&it(e,ct(t))))}function Ot(e){return/^(\d+|\d+\.\d+)$/.test(e)}function Mt(e){return e.quasis.some((e=>e.value.raw.includes("\n")))}function Lt(e){return e.extra?e.extra.raw:e.raw}const Rt={"==":!0,"!=":!0,"===":!0,"!==":!0},Bt={"*":!0,"/":!0,"%":!0},jt={">>":!0,">>>":!0,"<<":!0};const Jt={};function Kt(e){return Jt[e]}[["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach(((e,t)=>{e.forEach((e=>{Jt[e]=t}))}));const zt=new WeakMap;function Ut(e){if(zt.has(e))return zt.get(e);const t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),zt.set(e,t),t}const Vt=new WeakMap;function qt(e){return"prettier-ignore"===e.value.trim()}function Wt(e){return e&&(e.comments&&e.comments.length>0&&e.comments.some((e=>qt(e)&&!e.unignore))||e.prettierIgnore)}function Ht(e){return Wt(e.getValue())}var Gt={classChildNeedsASIProtection:function(e){if(e){if(e.static||e.accessibility)return!1;if(!e.computed){const t=e.key&&e.key.name;if("in"===t||"instanceof"===t)return!0}switch(e.type){case"ClassProperty":case"FieldDefinition":case"TSAbstractClassProperty":return e.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{const t=e.value?e.value.async:e.async,r=e.value?e.value.generator:e.generator;return!t&&"get"!==e.kind&&"set"!==e.kind&&!(!e.computed&&!r)}case"TSIndexSignature":return!0;default:return!1}}},classPropMayCauseASIProblems:function(e){const t=e.getNode();if("ClassProperty"!==t.type&&"FieldDefinition"!==t.type)return!1;const r=t.key&&t.key.name;return!("static"!==r&&"get"!==r&&"set"!==r||t.value||t.typeAnnotation)||void 0},getFunctionParameters:Ut,iterateFunctionParametersPath:function(e,t){const r=e.getValue();let n=0;const i=e=>t(e,n++);r.this&&e.call(i,"this"),Array.isArray(r.parameters)?e.each(i,"parameters"):Array.isArray(r.params)&&e.each(i,"params"),r.rest&&e.call(i,"rest")},getCallArguments:function(e){if(Vt.has(e))return Vt.get(e);const t="ImportExpression"===e.type?[e.source]:e.arguments;return Vt.set(e,t),t},iterateCallArgumentsPath:function(e,t){"ImportExpression"===e.getValue().type?e.call((e=>t(e,0)),"source"):e.each(t,"arguments")},hasRestParameter:function(e){if(e.rest)return!0;const t=Ut(e);return t.length>0&&"RestElement"===nt(t).type},getLeftSidePathName:function(e,t){if(t.expressions)return["expressions",0];if(t.left)return["left"];if(t.test)return["test"];if(t.object)return["object"];if(t.callee)return["callee"];if(t.tag)return["tag"];if(t.argument)return["argument"];if(t.expression)return["expression"];throw new Error("Unexpected node has no left side.")},getParentExportDeclaration:function(e){const t=e.getParentNode();return"declaration"===e.getName()&&yt(t)?t:null},getTypeScriptMappedTypeModifier:function(e,t){return"+"===e?"+"+t:"-"===e?"-"+t:t},hasDanglingComments:function(e){return e.comments&&e.comments.some((e=>!e.leading&&!e.trailing))},hasFlowAnnotationComment:function(e){return e&>(e[0])&&dt.test(e[0].value)},hasFlowShorthandAnnotationComment:function(e){return e.extra&&e.extra.parenthesized&&e.trailingComments&>(e.trailingComments[0])&<.test(e.trailingComments[0].value)},hasLeadingComment:function(e){return e.comments&&e.comments.some((e=>e.leading))},hasLeadingOwnLineComment:It,hasNakedLeftSide:pt,hasNewlineBetweenOrAfterDecorators:function(e,t){return at(t.originalText,st(e.decorators[0]),ct(nt(e.decorators)))||it(t.originalText,ct(nt(e.decorators)))},hasNgSideEffect:function(e){return _t(e.getValue(),(e=>{switch(e.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}}))},hasNode:_t,hasPrettierIgnore:function(e){return Ht(e)||function(e){const t=e.getValue(),r=e.getParentNode();if(!(r&&t&&St(t)&&St(r)))return!1;let n=null;for(let e=r.children.indexOf(t);e>0;e--){const t=r.children[e-1];if("JSXText"!==t.type||wt(t)){n=t;break}}return n&&"JSXExpressionContainer"===n.type&&"JSXEmptyExpression"===n.expression.type&&n.expression.comments&&n.expression.comments.some((e=>qt(e)))}(e)},hasTrailingComment:function(e){return e.comments&&e.comments.some((e=>e.trailing))},hasTrailingLineComment:function(e){return e.comments&&e.comments.some((e=>e.trailing&&!gt(e)))},hasIgnoreComment:Ht,hasNodeIgnoreComment:Wt,identity:function(e){return e},isBinaryish:function(e){return Tt.has(e.type)},isBlockComment:gt,isLineComment:function(e){return"Line"===e.type||"CommentLine"===e.type||"SingleLine"===e.type||"HashbangComment"===e.type||"HTMLOpen"===e.type||"HTMLClose"===e.type},isPrettierIgnoreComment:qt,isCallOrOptionalCallExpression:Ft,isEmptyJSXElement:function(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;const t=e.children[0];return vt(t)&&!wt(t)},isExportDeclaration:yt,isFlowAnnotationComment:function(e,t){const r=st(t),n=ot(e,ct(t));return!1!==n&&"/*"===e.slice(r,r+2)&&"*/"===e.slice(n,n+2)},isFunctionCompositionArgs:function(e){if(e.length<=1)return!1;let t=0;for(const r of e)if(xt(r)){if(t+=1,t>1)return!0}else if(Ft(r))for(const e of r.arguments)if(xt(e))return!0;return!1},isFunctionNotation:Ct,isFunctionOrArrowExpression:xt,isGetterOrSetter:Et,isJestEachTemplateLiteral:function(e,t){const r=/^[fx]?(describe|it|test)$/;return"TaggedTemplateExpression"===t.type&&t.quasi===e&&"MemberExpression"===t.tag.type&&"Identifier"===t.tag.property.type&&"each"===t.tag.property.name&&("Identifier"===t.tag.object.type&&r.test(t.tag.object.name)||"MemberExpression"===t.tag.object.type&&"Identifier"===t.tag.object.property.type&&("only"===t.tag.object.property.name||"skip"===t.tag.object.property.name)&&"Identifier"===t.tag.object.object.type&&r.test(t.tag.object.object.name))},isJSXNode:St,isJSXWhitespaceExpression:function(e){return"JSXExpressionContainer"===e.type&&vt(e.expression)&&" "===e.expression.value&&!e.expression.comments},isLastStatement:function(e){const t=e.getParentNode();if(!t)return!0;const r=e.getValue(),n=(t.body||t.consequent).filter((e=>"EmptyStatement"!==e.type));return n[n.length-1]===r},isLiteral:vt,isLongCurriedCallExpression:function(e){const t=e.getValue(),r=e.getParentNode();return Ft(t)&&Ft(r)&&r.callee===t&&t.arguments.length>r.arguments.length&&r.arguments.length>0},isSimpleCallArgument:function e(t,r){if(r>=2)return!1;const n=t=>e(t,r+1),i="Literal"===t.type&&"regex"in t&&t.regex.pattern||"RegExpLiteral"===t.type&&t.pattern;return!(i&&i.length>5)&&("Literal"===t.type||"BigIntLiteral"===t.type||"DecimalLiteral"===t.type||"BooleanLiteral"===t.type||"NullLiteral"===t.type||"NumericLiteral"===t.type||"RegExpLiteral"===t.type||"StringLiteral"===t.type||"Identifier"===t.type||"ThisExpression"===t.type||"Super"===t.type||"PrivateName"===t.type||"ArgumentPlaceholder"===t.type||"Import"===t.type||("TemplateLiteral"===t.type?t.expressions.every(n):"ObjectExpression"===t.type?t.properties.every((e=>!e.computed&&(e.shorthand||e.value&&n(e.value)))):"ArrayExpression"===t.type?t.elements.every((e=>null===e||n(e))):"ImportExpression"===t.type?n(t.source):"CallExpression"===t.type||"OptionalCallExpression"===t.type||"NewExpression"===t.type?e(t.callee,r)&&t.arguments.every(n):"MemberExpression"===t.type||"OptionalMemberExpression"===t.type?e(t.object,r)&&e(t.property,r):"UnaryExpression"!==t.type||"!"!==t.operator&&"-"!==t.operator?"TSNonNullExpression"===t.type&&e(t.expression,r):e(t.argument,r)))},isMeaningfulJSXText:wt,isMemberExpressionChain:function e(t){return("MemberExpression"===t.type||"OptionalMemberExpression"===t.type)&&("Identifier"===t.object.type||e(t.object))},isMemberish:function(e){return"MemberExpression"===e.type||"OptionalMemberExpression"===e.type||"BindExpression"===e.type&&Boolean(e.object)},isNgForOf:function(e,t,r){return"NGMicrosyntaxKeyedExpression"===e.type&&"of"===e.key.name&&1===t&&"NGMicrosyntaxLet"===r.body[0].type&&null===r.body[0].value},isNumericLiteral:ht,isObjectType:function(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type},isObjectTypePropertyAFunction:function(e){return!("ObjectTypeProperty"!==e.type&&"ObjectTypeInternalSlot"!==e.type||"FunctionTypeAnnotation"!==e.value.type||e.static||Ct(e))},isSimpleType:function(e){return!!e&&(!("GenericTypeAnnotation"!==e.type&&"TSTypeReference"!==e.type||e.typeParameters)||!!kt.has(e.type))},isSimpleNumber:Ot,isSimpleTemplateLiteral:function(e){let t="expressions";"TSTemplateLiteralType"===e.type&&(t="types");const r=e[t];return 0!==r.length&&r.every((e=>{if(e.comments)return!1;if("Identifier"===e.type||"ThisExpression"===e.type)return!0;if("MemberExpression"===e.type||"OptionalMemberExpression"===e.type){let t=e;for(;"MemberExpression"===t.type||"OptionalMemberExpression"===t.type;){if("Identifier"!==t.property.type&&"Literal"!==t.property.type&&"StringLiteral"!==t.property.type&&"NumericLiteral"!==t.property.type)return!1;if(t=t.object,t.comments)return!1}return"Identifier"===t.type||"ThisExpression"===t.type}return!1}))},isStringLiteral:Dt,isStringPropSafeToUnquote:function(e,t){return"json"!==t.parser&&Dt(e.key)&&Lt(e.key).slice(1,-1)===e.key.value&&(rt(e.key.value)&&!(("typescript"===t.parser||"babel-ts"===t.parser)&&"ClassProperty"===e.type)||Ot(e.key.value)&&String(Number(e.key.value))===e.key.value&&("babel"===t.parser||"espree"===t.parser||"meriyah"===t.parser))},isTemplateOnItsOwnLine:function(e,t){return("TemplateLiteral"===e.type&&Mt(e)||"TaggedTemplateExpression"===e.type&&Mt(e.quasi))&&!it(t,st(e),{backwards:!0})},isTestCall:function e(t,r){if("CallExpression"!==t.type)return!1;if(1===t.arguments.length){if(bt(t)&&r&&e(r))return xt(t.arguments[0]);if(function(e){return"Identifier"===e.callee.type&&/^(before|after)(Each|All)$/.test(e.callee.name)&&1===e.arguments.length}(t))return bt(t.arguments[0])}else if((2===t.arguments.length||3===t.arguments.length)&&("Identifier"===t.callee.type&&At.test(t.callee.name)||function(e){return("MemberExpression"===e.callee.type||"OptionalMemberExpression"===e.callee.type)&&"Identifier"===e.callee.object.type&&"Identifier"===e.callee.property.type&&At.test(e.callee.object.name)&&("only"===e.callee.property.name||"skip"===e.callee.property.name)}(t))&&(function(e){return"TemplateLiteral"===e.type}(t.arguments[0])||Dt(t.arguments[0])))return!(t.arguments[2]&&!ht(t.arguments[2]))&&((2===t.arguments.length?xt(t.arguments[1]):function(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type}(t.arguments[1])&&Ut(t.arguments[1]).length<=1)||bt(t.arguments[1]));return!1},isTheOnlyJSXElementInMarkdown:function(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;const r=t.getNode();if(!r.expression||!St(r.expression))return!1;const n=t.getParentNode();return"Program"===n.type&&1===n.body.length},isTSXFile:function(e){return e.filepath&&/\.tsx$/i.test(e.filepath)},isTypeAnnotationAFunction:function(e){return!("TypeAnnotation"!==e.type&&"TSTypeAnnotation"!==e.type||"FunctionTypeAnnotation"!==e.typeAnnotation.type||e.static||ut(e,e.typeAnnotation))},matchJsxWhitespaceRegex:Nt,needsHardlineAfterDanglingComment:function(e){if(!e.comments)return!1;const t=nt(e.comments.filter((e=>!e.leading&&!e.trailing)));return t&&!gt(t)},rawText:Lt,returnArgumentHasLeadingComment:function(e,t){if(It(e.originalText,t))return!0;if(pt(t)){let r,n=t;for(;r=ft(n);)if(n=r,It(e.originalText,n))return!0}return!1},shouldPrintComma:function(e,t="es5"){return"es5"===e.trailingComma&&"es5"===t||"all"===e.trailingComma&&("all"===t||"es5"===t)},isBitwiseOperator:function(e){return!!jt[e]||"|"===e||"^"===e||"&"===e},shouldFlatten:function(e,t){return Kt(t)===Kt(e)&&("**"!==e&&((!Rt[e]||!Rt[t])&&(!("%"===t&&Bt[e]||"%"===e&&Bt[t])&&((t===e||!Bt[t]||!Bt[e])&&(!jt[e]||!jt[t])))))},startsWithNoLookaheadToken:function e(t,r){switch((t=function(e){for(;e.left;)e=e.left;return e}(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}},getPrecedence:Kt};const{getLast:Yt,hasNewline:Xt,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:Qt,getNextNonSpaceNonCommentCharacter:$t,hasNewlineInRange:Zt,addLeadingComment:er,addTrailingComment:tr,addDanglingComment:rr,getNextNonSpaceNonCommentCharacterIndex:nr}=je,{isBlockComment:ir,getFunctionParameters:ar,isPrettierIgnoreComment:or,isJSXNode:sr,hasFlowShorthandAnnotationComment:cr,hasFlowAnnotationComment:ur,hasIgnoreComment:lr}=Gt,{locStart:dr,locEnd:_r}=$e;function pr(e,t){const r=(e.body||e.properties).find((({type:e})=>"EmptyStatement"!==e));r?er(r,t):rr(e,t)}function fr(e,t){"BlockStatement"===e.type?pr(e,t):er(e,t)}function gr(e,t){const{precedingNode:r,enclosingNode:n,followingNode:i}=e;if(!n||"IfStatement"!==n.type||!i)return!1;return")"===$t(t,e,_r)?(tr(r,e),!0):r===n.consequent&&i===n.alternate?("BlockStatement"===r.type?tr(r,e):rr(n,e),!0):"BlockStatement"===i.type?(pr(i,e),!0):"IfStatement"===i.type?(fr(i.consequent,e),!0):n.consequent===i&&(er(i,e),!0)}function mr(e,t){const{precedingNode:r,enclosingNode:n,followingNode:i}=e;if(!n||"WhileStatement"!==n.type||!i)return!1;return")"===$t(t,e,_r)?(tr(r,e),!0):"BlockStatement"===i.type?(pr(i,e),!0):n.body===i&&(er(i,e),!0)}function yr(e){const{precedingNode:t,enclosingNode:r,followingNode:n}=e;return!(!r||"TryStatement"!==r.type&&"CatchClause"!==r.type||!n)&&("CatchClause"===r.type&&t?(tr(t,e),!0):"BlockStatement"===n.type?(pr(n,e),!0):"TryStatement"===n.type?(fr(n.finalizer,e),!0):"CatchClause"===n.type&&(fr(n.body,e),!0))}function vr(e){const{precedingNode:t,enclosingNode:r,followingNode:n}=e;if(r&&("ClassDeclaration"===r.type||"ClassExpression"===r.type||"DeclareClass"===r.type||"DeclareInterface"===r.type||"InterfaceDeclaration"===r.type||"TSInterfaceDeclaration"===r.type)){if(r.decorators&&r.decorators.length>0&&(!n||"Decorator"!==n.type))return tr(r.decorators[r.decorators.length-1],e),!0;if(r.body&&n===r.body)return pr(r.body,e),!0;if(n)for(const i of["implements","extends","mixins"])if(r[i]&&n===r[i][0])return!t||t!==r.id&&t!==r.typeParameters&&t!==r.superClass?rr(r,e,i):tr(t,e),!0}return!1}function hr(e,t){const{precedingNode:r,enclosingNode:n}=e;return(n&&r&&("Property"===n.type||"TSDeclareMethod"===n.type||"TSAbstractMethodDefinition"===n.type)&&"Identifier"===r.type&&n.key===r&&":"!==$t(t,r,_r)||!(!r||!n||"Decorator"!==r.type||"ClassMethod"!==n.type&&"ClassProperty"!==n.type&&"FieldDefinition"!==n.type&&"TSAbstractClassProperty"!==n.type&&"TSAbstractMethodDefinition"!==n.type&&"TSDeclareMethod"!==n.type&&"MethodDefinition"!==n.type))&&(tr(r,e),!0)}function Dr(e,t){const{precedingNode:r,enclosingNode:n,followingNode:i}=e;if(r&&"FunctionTypeParam"===r.type&&n&&"FunctionTypeAnnotation"===n.type&&i&&"FunctionTypeParam"!==i.type)return tr(r,e),!0;if(r&&("Identifier"===r.type||"AssignmentPattern"===r.type)&&n&&Cr(n)&&")"===$t(t,e,_r))return tr(r,e),!0;if(n&&"FunctionDeclaration"===n.type&&i&&"BlockStatement"===i.type){const r=(()=>{const e=ar(n);if(0!==e.length)return Qt(t,_r(Yt(e)));const r=Qt(t,_r(n.id));return!1!==r&&Qt(t,r+1)})();if(dr(e)>r)return pr(i,e),!0}return!1}function xr(e){const{enclosingNode:t}=e;return!(!t||"ImportSpecifier"!==t.type)&&(er(t,e),!0)}function br(e){const{enclosingNode:t}=e;return!(!t||"LabeledStatement"!==t.type)&&(er(t,e),!0)}function Sr(e,t,r){const{enclosingNode:n}=e;return t&&t.body&&0===t.body.length?(r?rr(t,e):er(t,e),!0):!(!n||"Program"!==n.type||0!==n.body.length||!n.directives||0!==n.directives.length)&&(r?rr(n,e):er(n,e),!0)}function Er(e){const{enclosingNode:t,followingNode:r}=e;if(or(e)&&t&&"TSMappedType"===t.type&&r&&"TSTypeParameter"===r.type&&r.constraint)return t.prettierIgnore=!0,e.unignore=!0,!0}function Cr(e){return"ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||"FunctionDeclaration"===e.type||"ObjectMethod"===e.type||"ClassMethod"===e.type||"TSDeclareFunction"===e.type||"TSCallSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSMethodSignature"===e.type||"TSConstructorType"===e.type||"TSFunctionType"===e.type||"TSDeclareMethod"===e.type}function Tr(e){return ir(e)&&"*"===e.value[0]&&/@type\b/.test(e.value)}var kr={handleOwnLineComment:function(e,t,r,n,i){return Er(e)||Dr(e,t)||function(e){const{enclosingNode:t,followingNode:r}=e;if(t&&("MemberExpression"===t.type||"OptionalMemberExpression"===t.type)&&r&&"Identifier"===r.type)return er(t,e),!0;return!1}(e)||gr(e,t)||mr(e,t)||yr(e)||vr(e)||xr(e)||function(e){const{enclosingNode:t}=e;if(t&&("ForInStatement"===t.type||"ForOfStatement"===t.type))return er(t,e),!0;return!1}(e)||function(e){const{precedingNode:t,enclosingNode:r,followingNode:n}=e;if(r&&("UnionTypeAnnotation"===r.type||"TSUnionType"===r.type))return or(e)&&(n.prettierIgnore=!0,e.unignore=!0),!!t&&(tr(t,e),!0);n&&("UnionTypeAnnotation"===n.type||"TSUnionType"===n.type)&&or(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0);return!1}(e)||Sr(e,n,i)||function(e,t){const{precedingNode:r,enclosingNode:n}=e;if(r&&"ImportSpecifier"===r.type&&n&&"ImportDeclaration"===n.type&&Xt(t,_r(e)))return tr(r,e),!0;return!1}(e,t)||function(e){const{enclosingNode:t}=e;if(t&&"AssignmentPattern"===t.type)return er(t,e),!0;return!1}(e)||hr(e,t)||br(e)},handleEndOfLineComment:function(e,t,r,n,i){return function(e){const{followingNode:t}=e;if(t&&Tr(e))return er(t,e),!0;return!1}(e)||Dr(e,t)||function(e,t){const{precedingNode:r,enclosingNode:n,followingNode:i}=e,a=r&&!Zt(t,_r(r),dr(e));if((!r||!a)&&n&&("ConditionalExpression"===n.type||"TSConditionalType"===n.type)&&i)return er(i,e),!0;return!1}(e,t)||xr(e)||gr(e,t)||mr(e,t)||yr(e)||vr(e)||br(e)||function(e){const{precedingNode:t,enclosingNode:r}=e;if(r&&("CallExpression"===r.type||"OptionalCallExpression"===r.type)&&t&&r.callee===t&&r.arguments.length>0)return er(r.arguments[0],e),!0;return!1}(e)||function(e){const{enclosingNode:t}=e;if(t&&("Property"===t.type||"ObjectProperty"===t.type))return er(t,e),!0;return!1}(e)||Sr(e,n,i)||function(e){const{enclosingNode:t}=e;if(t&&"TypeAlias"===t.type)return er(t,e),!0;return!1}(e)||function(e){const{enclosingNode:t,followingNode:r}=e;if(t&&("VariableDeclarator"===t.type||"AssignmentExpression"===t.type)&&r&&("ObjectExpression"===r.type||"ArrayExpression"===r.type||"TemplateLiteral"===r.type||"TaggedTemplateExpression"===r.type||ir(e)))return er(r,e),!0;return!1}(e)},handleRemainingComment:function(e,t,r,n,i){return!!(Er(e)||gr(e,t)||mr(e,t)||function(e){const{precedingNode:t,enclosingNode:r}=e;if(r&&("ObjectProperty"===r.type||"Property"===r.type)&&r.shorthand&&r.key===t&&"AssignmentPattern"===r.value.type)return tr(r.value.left,e),!0;return!1}(e)||function(e,t){if(")"!==$t(t,e,_r))return!1;const{enclosingNode:r}=e;if(r&&(Cr(r)&&0===ar(r).length||("CallExpression"===r.type||"OptionalCallExpression"===r.type||"NewExpression"===r.type)&&0===r.arguments.length))return rr(r,e),!0;if(r&&"MethodDefinition"===r.type&&0===ar(r.value).length)return rr(r.value,e),!0;return!1}(e,t)||hr(e,t)||Sr(e,n,i)||function(e,t){const{enclosingNode:r}=e;if(!r||"ArrowFunctionExpression"!==r.type)return!1;const n=nr(t,e,_r);if(!1!==n&&"=>"===t.slice(n,n+2))return rr(r,e),!0;return!1}(e,t)||function(e,t){if("("!==$t(t,e,_r))return!1;const{precedingNode:r,enclosingNode:n}=e;if(r&&n&&("FunctionDeclaration"===n.type||"FunctionExpression"===n.type||"ClassMethod"===n.type||"MethodDefinition"===n.type||"ObjectMethod"===n.type))return tr(r,e),!0;return!1}(e,t)||function(e){const{precedingNode:t,enclosingNode:r,followingNode:n}=e;if(!r||"TSMappedType"!==r.type)return!1;if(n&&"TSTypeParameter"===n.type&&n.name)return er(n.name,e),!0;if(t&&"TSTypeParameter"===t.type&&t.constraint)return tr(t.constraint,e),!0;return!1}(e)||function(e){const{enclosingNode:t}=e;if(t&&("ContinueStatement"===t.type||"BreakStatement"===t.type)&&!t.label)return tr(t,e),!0;return!1}(e)||function(e,t){const{enclosingNode:r,followingNode:n}=e;if(!n&&r&&("TSMethodSignature"===r.type||"TSDeclareFunction"===r.type||"TSAbstractMethodDefinition"===r.type)&&";"===$t(t,e,_r))return tr(r,e),!0;return!1}(e,t))},hasLeadingComment:function(e,t=(()=>!0)){return e.leadingComments?e.leadingComments.some(t):!!e.comments&&e.comments.some((e=>e.leading&&t(e)))},isTypeCastComment:Tr,getGapRegex:function(e){if(e&&"BinaryExpression"!==e.type&&"LogicalExpression"!==e.type)return/^[\s&(|]*$/},getCommentChildNodes:function(e,t){if(("typescript"===t.parser||"flow"===t.parser||"espree"===t.parser||"meriyah"===t.parser)&&"MethodDefinition"===e.type&&e.value&&"FunctionExpression"===e.value.type&&0===ar(e.value).length&&!e.value.returnType&&(!e.value.typeParameters||0===e.value.typeParameters.length)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]},willPrintOwnComments:function(e){const t=e.getValue(),r=e.getParentNode();return(t&&(sr(t)||cr(t)||r&&("CallExpression"===r.type||"OptionalCallExpression"===r.type)&&(ur(t.leadingComments)||ur(t.trailingComments)))||r&&("JSXSpreadAttribute"===r.type||"JSXSpreadChild"===r.type||"UnionTypeAnnotation"===r.type||"TSUnionType"===r.type||("ClassDeclaration"===r.type||"ClassExpression"===r.type)&&r.superClass===t))&&(!lr(e)||"UnionTypeAnnotation"===r.type||"TSUnionType"===r.type)}};const{getLast:Ar,getNextNonSpaceNonCommentCharacter:Fr,getShebang:Nr}=je,{composeLoc:Pr,locStart:wr,locEnd:Ir}=$e,{isTypeCastComment:Or}=kr;function Mr(e){return"CallExpression"===e.type?(e.type="OptionalCallExpression",e.callee=Mr(e.callee)):"MemberExpression"===e.type?(e.type="OptionalMemberExpression",e.object=Mr(e.object)):"TSNonNullExpression"===e.type&&(e.expression=Mr(e.expression)),e}function Lr(e,t){let r;if(Array.isArray(e))r=e.entries();else{if(!e||"object"!=typeof e||"string"!=typeof e.type)return e;r=Object.entries(e)}for(const[n,i]of r)e[n]=Lr(i,t);return Array.isArray(e)?e:t(e)||e}function Rr(e){return"LogicalExpression"===e.type&&"LogicalExpression"===e.right.type&&e.operator===e.right.operator}function Br(e){return Rr(e)?Br({type:"LogicalExpression",operator:e.operator,left:Br({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:Pr(e.left,e.right.left)}),right:e.right.right,range:Pr(e)}):e}var jr=function(t,r){if("typescript"!==r.parser&&"flow"!==r.parser&&"espree"!==r.parser||function(e,t){const r=Nr(t.originalText);r&&e.comments.unshift({type:"Line",value:r.slice(2),range:[0,r.length]})}(t,r),"typescript"===r.parser&&r.originalText.includes("@")){const{esTreeNodeToTSNodeMap:n,tsNodeToESTreeNodeMap:i}=r.tsParseResult;t=Lr(t,(t=>{const r=n.get(t);if(!r)return;const a=r.decorators;if(!Array.isArray(a))return;const o=i.get(r);if(o!==t)return;const s=o.decorators;if(!Array.isArray(s)||s.length!==a.length||a.some((e=>{const t=i.get(e);return!t||!s.includes(t)}))){const{start:t,end:r}=o.loc;throw e("Leading decorators must be attached to a class declaration",{start:{line:t.line,column:t.column+1},end:{line:r.line,column:r.column+1}})}}))}if("typescript"!==r.parser&&"flow"!==r.parser&&"espree"!==r.parser&&"meriyah"!==r.parser){const e=new Set;t=Lr(t,(t=>{t.leadingComments&&t.leadingComments.some(Or)&&e.add(wr(t))})),t=Lr(t,(t=>{if("ParenthesizedExpression"===t.type){const{expression:r}=t;if("TypeCastExpression"===r.type)return r.range=t.range,r;const n=wr(t);if(!e.has(n))return r.extra=Object.assign({},r.extra,{parenthesized:!0}),r}}))}return t=Lr(t,(e=>{switch(e.type){case"ChainExpression":return Mr(e.expression);case"LogicalExpression":if(Rr(e))return Br(e);break;case"VariableDeclaration":{const t=Ar(e.declarations);t&&t.init&&function(e,t){if(";"===r.originalText[Ir(t)])return;e.range=Pr(e,t)}(e,t);break}case"TSParenthesizedType":return e.typeAnnotation.range=Pr(e),e.typeAnnotation;case"TSUnionType":case"TSIntersectionType":if(1===e.types.length){const[t]=e.types;return t.range=Pr(e),t}break;case"TSTypeParameter":"string"==typeof e.name&&(e.name={type:"Identifier",name:e.name,range:Pr(e,e.name.length)});break;case"SequenceExpression":{const t=Ar(e.expressions);Ir(e)>Ir(t)&&(e.range=Pr(e,t));break}case"ClassProperty":e.key&&"TSPrivateIdentifier"===e.key.type&&"?"===Fr(r.originalText,e.key,Ir)&&(e.optional=!0)}}))},Jr=1e3,Kr=60*Jr,zr=60*Kr,Ur=24*zr,Vr=7*Ur,qr=365.25*Ur,Wr=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\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*qr;case"weeks":case"week":case"w":return r*Vr;case"days":case"day":case"d":return r*Ur;case"hours":case"hour":case"hrs":case"hr":case"h":return r*zr;case"minutes":case"minute":case"mins":case"min":case"m":return r*Kr;case"seconds":case"second":case"secs":case"sec":case"s":return r*Jr;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}(e);if("number"===r&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=Ur)return Hr(e,t,Ur,"day");if(t>=zr)return Hr(e,t,zr,"hour");if(t>=Kr)return Hr(e,t,Kr,"minute");if(t>=Jr)return Hr(e,t,Jr,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=Ur)return Math.round(e/Ur)+"d";if(t>=zr)return Math.round(e/zr)+"h";if(t>=Kr)return Math.round(e/Kr)+"m";if(t>=Jr)return Math.round(e/Jr)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Hr(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}var Gr=function(e){function t(e){let t=0;for(let r=0;r{if("%%"===n)return n;s++;const a=r.formatters[i];if("function"==typeof a){const r=e[s];n=a.call(t,r),e.splice(s,1),s--}return n})),r.formatArgs.call(t,e);(t.log||r.log).apply(t,e)}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(){const e=r.instances.indexOf(this);return-1!==e&&(r.instances.splice(e,1),!0)}function i(e,t){const 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(){const e=[...r.names.map(a),...r.skips.map(a).map((e=>"-"+e))].join(",");return r.enable(""),e},r.enable=function(e){let t;r.save(e),r.names=[],r.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(t=0;t{r[t]=e[t]})),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=t,r.enable(r.load()),r},Yr=r((function(e,t){t.log=function(...e){return"object"==typeof console&&console.log&&console.log(...e)},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;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(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(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==V&&"env"in V&&(e=V.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=Gr(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}})),Xr={isatty:()=>!1},Qr=Object.freeze({__proto__:null,default:Xr}),$r=Object.freeze({__proto__:null,default:{}}),Zr=(e,t=V.argv)=>{const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return-1!==n&&(-1===i||n=2,has16m:e>=3}}function an(e,t){if(0===rn)return 0;if(Zr("color=16m")||Zr("color=full")||Zr("color=truecolor"))return 3;if(Zr("color=256"))return 2;if(e&&!t&&void 0===rn)return 0;const r=rn||0;if("dumb"===tn.TERM)return r;if("win32"===V.platform){const e=c.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in tn)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in tn))||"codeship"===tn.CI_NAME?1:r;if("TEAMCITY_VERSION"in tn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(tn.TEAMCITY_VERSION)?1:0;if("GITHUB_ACTIONS"in tn)return 1;if("truecolor"===tn.COLORTERM)return 3;if("TERM_PROGRAM"in tn){const e=parseInt((tn.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(tn.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(tn.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(tn.TERM)||"COLORTERM"in tn?1:r}Zr("no-color")||Zr("no-colors")||Zr("color=false")||Zr("color=never")?rn=0:(Zr("color")||Zr("colors")||Zr("color=true")||Zr("color=always"))&&(rn=1),"FORCE_COLOR"in tn&&(rn="true"===tn.FORCE_COLOR?1:"false"===tn.FORCE_COLOR?0:0===tn.FORCE_COLOR.length?1:Math.min(parseInt(tn.FORCE_COLOR,10),3));var on={supportsColor:function(e){return nn(an(e,e&&e.isTTY))},stdout:nn(an(!0,en.isatty(1))),stderr:nn(an(!0,en.isatty(2)))},sn=n($r),cn=(r((function(e,t){t.init=function(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;n=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(V.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=V.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=Gr(t);const{formatters:r}=e.exports;r.o=function(e){return this.inspectOpts.colors=this.useColors,sn.inspect(e,this.inspectOpts).replace(/\s*\n\s*/g," ")},r.O=function(e){return this.inspectOpts.colors=this.useColors,sn.inspect(e,this.inspectOpts)}})),r((function(e){void 0===V||V.type,e.exports=Yr}))),un={"{":"}","(":")","[":"]"},ln=/\\(.)|(^!|\*|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/,dn=/\\(.)|(^!|[*?{}()[\]]|\(\?)/,_n=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=ln;for(t&&!1===t.strict&&(n=dn);r=n.exec(e);){if(r[2])return!0;var i=r.index+r[0].length,a=r[1],o=a?un[a]:null;if(a&&o){var s=e.indexOf(o,i);-1!==s&&(i=s+1)}e=e.slice(i)}return!1};const{MAX_LENGTH:pn}=W,{re:fn,t:gn}=H;var mn=(e,t)=>{if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof ne)return e;if("string"!=typeof e)return null;if(e.length>pn)return null;if(!(t.loose?fn[gn.LOOSE]:fn[gn.FULL]).test(e))return null;try{return new ne(e,t)}catch(e){return null}};var yn=(e,t)=>{const r=mn(e,t);return r?r.version:null};var vn=(e,t)=>{const r=mn(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var hn=(e,t,r,n)=>{"string"==typeof r&&(n=r,r=void 0);try{return new ne(e,r).inc(t,n).version}catch(e){return null}};var Dn=(e,t,r)=>0===ie(e,t,r);var xn=(e,t)=>{if(Dn(e,t))return null;{const r=mn(e),n=mn(t),i=r.prerelease.length||n.prerelease.length,a=i?"pre":"",o=i?"prerelease":"";for(const e in r)if(("major"===e||"minor"===e||"patch"===e)&&r[e]!==n[e])return a+e;return o}};var bn=(e,t)=>new ne(e,t).major;var Sn=(e,t)=>new ne(e,t).minor;var En=(e,t)=>new ne(e,t).patch;var Cn=(e,t)=>{const r=mn(e,t);return r&&r.prerelease.length?r.prerelease:null};var Tn=(e,t,r)=>ie(t,e,r);var kn=(e,t)=>ie(e,t,!0);var An=(e,t,r)=>{const n=new ne(e,r),i=new ne(t,r);return n.compare(i)||n.compareBuild(i)};var Fn=(e,t)=>e.sort(((e,r)=>An(e,r,t)));var Nn=(e,t)=>e.sort(((e,r)=>An(r,e,t)));var Pn=(e,t,r)=>ie(e,t,r)>0;var wn=(e,t,r)=>0!==ie(e,t,r);var In=(e,t,r)=>ie(e,t,r)<=0;var On=(e,t,r,n)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return Dn(e,r,n);case"!=":return wn(e,r,n);case">":return Pn(e,r,n);case">=":return oe(e,r,n);case"<":return ae(e,r,n);case"<=":return In(e,r,n);default:throw new TypeError("Invalid operator: ".concat(t))}};const{re:Mn,t:Ln}=H;var Rn=(e,t)=>{if(e instanceof ne)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=Mn[Ln.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),Mn[Ln.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;Mn[Ln.COERCERTL].lastIndex=-1}else r=e.match(Mn[Ln.COERCE]);return null===r?null:mn("".concat(r[2],".").concat(r[3]||"0",".").concat(r[4]||"0"),t)};class Bn{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof Bn)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new Bn(e.raw,t);if(e instanceof oi)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(e));this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=this.options.loose;e=e.trim();const r=t?Jn[Kn.HYPHENRANGELOOSE]:Jn[Kn.HYPHENRANGE];e=e.replace(r,ri(this.options.includePrerelease)),q("hyphen replace",e),e=e.replace(Jn[Kn.COMPARATORTRIM],zn),q("comparator trim",e,Jn[Kn.COMPARATORTRIM]),e=(e=(e=e.replace(Jn[Kn.TILDETRIM],Un)).replace(Jn[Kn.CARETTRIM],Vn)).split(/\s+/).join(" ");const n=t?Jn[Kn.COMPARATORLOOSE]:Jn[Kn.COMPARATOR];return e.split(" ").map((e=>Wn(e,this.options))).join(" ").split(/\s+/).map((e=>ti(e,this.options))).filter(this.options.loose?e=>!!e.match(n):()=>!0).map((e=>new oi(e,this.options)))}intersects(e,t){if(!(e instanceof Bn))throw new TypeError("a Range is required");return this.set.some((r=>qn(r,t)&&e.set.some((e=>qn(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new ne(e,this.options)}catch(e){return!1}for(let t=0;t{let r=!0;const n=e.slice();let i=n.pop();for(;r&&n.length;)r=n.every((e=>i.intersects(e,t))),i=n.pop();return r},Wn=(e,t)=>(q("comp",e,t),e=Xn(e,t),q("caret",e),e=Gn(e,t),q("tildes",e),e=$n(e,t),q("xrange",e),e=ei(e,t),q("stars",e),e),Hn=e=>!e||"x"===e.toLowerCase()||"*"===e,Gn=(e,t)=>e.trim().split(/\s+/).map((e=>Yn(e,t))).join(" "),Yn=(e,t)=>{const r=t.loose?Jn[Kn.TILDELOOSE]:Jn[Kn.TILDE];return e.replace(r,((t,r,n,i,a)=>{let o;return q("tilde",e,t,r,n,i,a),Hn(r)?o="":Hn(n)?o=">=".concat(r,".0.0 <").concat(+r+1,".0.0-0"):Hn(i)?o=">=".concat(r,".").concat(n,".0 <").concat(r,".").concat(+n+1,".0-0"):a?(q("replaceTilde pr",a),o=">=".concat(r,".").concat(n,".").concat(i,"-").concat(a," <").concat(r,".").concat(+n+1,".0-0")):o=">=".concat(r,".").concat(n,".").concat(i," <").concat(r,".").concat(+n+1,".0-0"),q("tilde return",o),o}))},Xn=(e,t)=>e.trim().split(/\s+/).map((e=>Qn(e,t))).join(" "),Qn=(e,t)=>{q("caret",e,t);const r=t.loose?Jn[Kn.CARETLOOSE]:Jn[Kn.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,i,a,o)=>{let s;return q("caret",e,t,r,i,a,o),Hn(r)?s="":Hn(i)?s=">=".concat(r,".0.0").concat(n," <").concat(+r+1,".0.0-0"):Hn(a)?s="0"===r?">=".concat(r,".").concat(i,".0").concat(n," <").concat(r,".").concat(+i+1,".0-0"):">=".concat(r,".").concat(i,".0").concat(n," <").concat(+r+1,".0.0-0"):o?(q("replaceCaret pr",o),s="0"===r?"0"===i?">=".concat(r,".").concat(i,".").concat(a,"-").concat(o," <").concat(r,".").concat(i,".").concat(+a+1,"-0"):">=".concat(r,".").concat(i,".").concat(a,"-").concat(o," <").concat(r,".").concat(+i+1,".0-0"):">=".concat(r,".").concat(i,".").concat(a,"-").concat(o," <").concat(+r+1,".0.0-0")):(q("no pr"),s="0"===r?"0"===i?">=".concat(r,".").concat(i,".").concat(a).concat(n," <").concat(r,".").concat(i,".").concat(+a+1,"-0"):">=".concat(r,".").concat(i,".").concat(a).concat(n," <").concat(r,".").concat(+i+1,".0-0"):">=".concat(r,".").concat(i,".").concat(a," <").concat(+r+1,".0.0-0")),q("caret return",s),s}))},$n=(e,t)=>(q("replaceXRanges",e,t),e.split(/\s+/).map((e=>Zn(e,t))).join(" ")),Zn=(e,t)=>{e=e.trim();const r=t.loose?Jn[Kn.XRANGELOOSE]:Jn[Kn.XRANGE];return e.replace(r,((r,n,i,a,o,s)=>{q("xRange",e,r,n,i,a,o,s);const c=Hn(i),u=c||Hn(a),l=u||Hn(o),d=l;return"="===n&&d&&(n=""),s=t.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(u&&(a=0),o=0,">"===n?(n=">=",u?(i=+i+1,a=0,o=0):(a=+a+1,o=0)):"<="===n&&(n="<",u?i=+i+1:a=+a+1),"<"===n&&(s="-0"),r="".concat(n+i,".").concat(a,".").concat(o).concat(s)):u?r=">=".concat(i,".0.0").concat(s," <").concat(+i+1,".0.0-0"):l&&(r=">=".concat(i,".").concat(a,".0").concat(s," <").concat(i,".").concat(+a+1,".0-0")),q("xRange return",r),r}))},ei=(e,t)=>(q("replaceStars",e,t),e.trim().replace(Jn[Kn.STAR],"")),ti=(e,t)=>(q("replaceGTE0",e,t),e.trim().replace(Jn[t.includePrerelease?Kn.GTE0PRE:Kn.GTE0],"")),ri=e=>(t,r,n,i,a,o,s,c,u,l,d,_,p)=>(r=Hn(n)?"":Hn(i)?">=".concat(n,".0.0").concat(e?"-0":""):Hn(a)?">=".concat(n,".").concat(i,".0").concat(e?"-0":""):o?">=".concat(r):">=".concat(r).concat(e?"-0":""),c=Hn(u)?"":Hn(l)?"<".concat(+u+1,".0.0-0"):Hn(d)?"<".concat(u,".").concat(+l+1,".0-0"):_?"<=".concat(u,".").concat(l,".").concat(d,"-").concat(_):e?"<".concat(u,".").concat(l,".").concat(+d+1,"-0"):"<=".concat(c),"".concat(r," ").concat(c).trim()),ni=(e,t,r)=>{for(let r=0;r0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0},ii=Symbol("SemVer ANY");class ai{static get ANY(){return ii}constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof ai){if(e.loose===!!t.loose)return e;e=e.value}q("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ii?this.value="":this.value=this.operator+this.semver.version,q("comp",this)}parse(e){const t=this.options.loose?si[ci.COMPARATORLOOSE]:si[ci.COMPARATOR],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: ".concat(e));this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new ne(r[2],this.options.loose):this.semver=ii}toString(){return this.value}test(e){if(q("Comparator.test",e,this.options.loose),this.semver===ii||e===ii)return!0;if("string"==typeof e)try{e=new ne(e,this.options)}catch(e){return!1}return On(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof ai))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new jn(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new jn(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),o=On(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),s=On(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||n||i&&a||o||s}}var oi=ai;const{re:si,t:ci}=H;var ui=(e,t,r)=>{try{t=new jn(t,r)}catch(e){return!1}return t.test(e)};var li=(e,t)=>new jn(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));var di=(e,t,r)=>{let n=null,i=null,a=null;try{a=new jn(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(n&&-1!==i.compare(e)||(n=e,i=new ne(n,r)))})),n};var _i=(e,t,r)=>{let n=null,i=null,a=null;try{a=new jn(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(n&&1!==i.compare(e)||(n=e,i=new ne(n,r)))})),n};var pi=(e,t)=>{e=new jn(e,t);let r=new ne("0.0.0");if(e.test(r))return r;if(r=new ne("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t{const t=new ne(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":r&&!Pn(r,t)||(r=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: ".concat(e.operator))}}))}return r&&e.test(r)?r:null};var fi=(e,t)=>{try{return new jn(e,t).range||"*"}catch(e){return null}};const{ANY:gi}=oi;var mi=(e,t,r,n)=>{let i,a,o,s,c;switch(e=new ne(e,n),t=new jn(t,n),r){case">":i=Pn,a=In,o=ae,s=">",c=">=";break;case"<":i=ae,a=oe,o=Pn,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ui(e,t,n))return!1;for(let r=0;r{e.semver===gi&&(e=new oi(">=0.0.0")),l=l||e,d=d||e,i(e.semver,l.semver,n)?l=e:o(e.semver,d.semver,n)&&(d=e)})),l.operator===s||l.operator===c)return!1;if((!d.operator||d.operator===s)&&a(e,d.semver))return!1;if(d.operator===c&&o(e,d.semver))return!1}return!0};var yi=(e,t,r)=>mi(e,t,">",r);var vi=(e,t,r)=>mi(e,t,"<",r);var hi=(e,t,r)=>(e=new jn(e,r),t=new jn(t,r),e.intersects(t));const{ANY:Di}=oi,xi=(e,t,r)=>{if(1===e.length&&e[0].semver===Di)return 1===t.length&&t[0].semver===Di;const n=new Set;let i,a,o,s,c,u,l;for(const t of e)">"===t.operator||">="===t.operator?i=bi(i,t,r):"<"===t.operator||"<="===t.operator?a=Si(a,t,r):n.add(t.semver);if(n.size>1)return null;if(i&&a){if(o=ie(i.semver,a.semver,r),o>0)return null;if(0===o&&(">="!==i.operator||"<="!==a.operator))return null}for(const e of n){if(i&&!ui(e,String(i),r))return null;if(a&&!ui(e,String(a),r))return null;for(const n of t)if(!ui(e,String(n),r))return!1;return!0}for(const e of t){if(l=l||">"===e.operator||">="===e.operator,u=u||"<"===e.operator||"<="===e.operator,i)if(">"===e.operator||">="===e.operator){if(s=bi(i,e,r),s===e)return!1}else if(">="===i.operator&&!ui(i.semver,String(e),r))return!1;if(a)if("<"===e.operator||"<="===e.operator){if(c=Si(a,e,r),c===e)return!1}else if("<="===a.operator&&!ui(a.semver,String(e),r))return!1;if(!e.operator&&(a||i)&&0!==o)return!1}return!(i&&u&&!a&&0!==o)&&!(a&&l&&!i&&0!==o)},bi=(e,t,r)=>{if(!e)return t;const n=ie(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},Si=(e,t,r)=>{if(!e)return t;const n=ie(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};var Ei=(e,t,r)=>{e=new jn(e,r),t=new jn(t,r);let n=!1;e:for(const i of e.set){for(const e of t.set){const t=xi(i,e,r);if(n=n||null!==t,t)continue e}if(n)return!1}return!0},Ci={re:H.re,src:H.src,tokens:H.t,SEMVER_SPEC_VERSION:W.SEMVER_SPEC_VERSION,SemVer:ne,compareIdentifiers:X.compareIdentifiers,rcompareIdentifiers:X.rcompareIdentifiers,parse:mn,valid:yn,clean:vn,inc:hn,diff:xn,major:bn,minor:Sn,patch:En,prerelease:Cn,compare:ie,rcompare:Tn,compareLoose:kn,compareBuild:An,sort:Fn,rsort:Nn,gt:Pn,lt:ae,eq:Dn,neq:wn,gte:oe,lte:In,cmp:On,coerce:Rn,Comparator:oi,Range:jn,satisfies:ui,toComparators:li,maxSatisfying:di,minSatisfying:_i,minVersion:pi,validRange:fi,outside:mi,gtr:yi,ltr:vi,intersects:hi,simplifyRange:(e,t,r)=>{const n=[];let i=null,a=null;const o=e.sort(((e,t)=>ie(e,t,r)));for(const e of o){ui(e,t,r)?(a=e,i||(i=e)):(a&&n.push([i,a]),a=null,i=null)}i&&n.push([i,null]);const s=[];for(const[e,t]of n)e===t?s.push(e):t||e!==o[0]?t?e===o[0]?s.push("<=".concat(t)):s.push("".concat(e," - ").concat(t)):s.push(">=".concat(e)):s.push("*");const c=s.join(" || "),u="string"==typeof t.raw?t.raw:String(t);return c.length!1,Ai=()=>"";var Fi={existsSync:ki,readFileSync:Ai},Ni=Object.freeze({__proto__:null,existsSync:ki,readFileSync:Ai,default:Fi});function Pi(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function wi(e,t){for(var r,n="",i=0,a=-1,o=0,s=0;s<=e.length;++s){if(s2){var c=n.lastIndexOf("/");if(c!==n.length-1){-1===c?(n="",i=0):i=(n=n.slice(0,c)).length-1-n.lastIndexOf("/"),a=s,o=0;continue}}else if(2===n.length||1===n.length){n="",i=0,a=s,o=0;continue}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(a+1,s):n=e.slice(a+1,s),i=s-a-1;a=s,o=0}else 46===r&&-1!==o?++o:o=-1}return n}var Ii={resolve:function(){for(var e,t="",r=!1,n=arguments.length-1;n>=-1&&!r;n--){var i;n>=0?i=arguments[n]:(void 0===e&&(e=V.cwd()),i=e),Pi(i),0!==i.length&&(t=i+"/"+t,r=47===i.charCodeAt(0))}return t=wi(t,!r),r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(Pi(e),0===e.length)return".";var t=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return 0!==(e=wi(e,!t)).length||t||(e="."),e.length>0&&r&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return Pi(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":Ii.normalize(e)},relative:function(e,t){if(Pi(e),Pi(t),e===t)return"";if((e=Ii.resolve(e))===(t=Ii.resolve(t)))return"";for(var r=1;rs){if(47===t.charCodeAt(a+u))return t.slice(a+u+1);if(0===u)return t.slice(a+u)}else i>s&&(47===e.charCodeAt(r+u)?c=u:0===u&&(c=0));break}var l=e.charCodeAt(r+u);if(l!==t.charCodeAt(a+u))break;47===l&&(c=u)}var d="";for(u=r+c+1;u<=n;++u)u!==n&&47!==e.charCodeAt(u)||(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(a+c):(a+=c,47===t.charCodeAt(a)&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(Pi(e),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,i=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!i){n=a;break}}else i=!1;return-1===n?r?"/":".":r&&1===n?"//":e.slice(0,n)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');Pi(e);var r,n=0,i=-1,a=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var o=t.length-1,s=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!a){n=r+1;break}}else-1===s&&(a=!1,s=r+1),o>=0&&(c===t.charCodeAt(o)?-1==--o&&(i=r):(o=-1,i=s))}return n===i?i=s:-1===i&&(i=e.length),e.slice(n,i)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){n=r+1;break}}else-1===i&&(a=!1,i=r+1);return-1===i?"":e.slice(n,i)},extname:function(e){Pi(e);for(var t=-1,r=0,n=-1,i=!0,a=0,o=e.length-1;o>=0;--o){var s=e.charCodeAt(o);if(47!==s)-1===n&&(i=!1,n=o+1),46===s?-1===t?t=o:1!==a&&(a=1):-1!==t&&(a=-1);else if(!i){r=o+1;break}}return-1===t||-1===n||0===a||1===a&&t===n-1&&t===r+1?"":e.slice(t,n)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+e+n:n}("/",e)},parse:function(e){Pi(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var r,n=e.charCodeAt(0),i=47===n;i?(t.root="/",r=1):r=0;for(var a=-1,o=0,s=-1,c=!0,u=e.length-1,l=0;u>=r;--u)if(47!==(n=e.charCodeAt(u)))-1===s&&(c=!1,s=u+1),46===n?-1===a?a=u:1!==l&&(l=1):-1!==a&&(l=-1);else if(!c){o=u+1;break}return-1===a||-1===s||0===l||1===l&&a===s-1&&a===o+1?-1!==s&&(t.base=t.name=0===o&&i?e.slice(1,s):e.slice(o,s)):(0===o&&i?(t.name=e.slice(1,a),t.base=e.slice(1,s)):(t.name=e.slice(o,a),t.base=e.slice(o,s)),t.ext=e.slice(a,s)),o>0?t.dir=e.slice(0,o-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};Ii.posix=Ii;var Oi=Ii,Mi=Object.freeze(Object.assign(Object.create(null),Oi,{default:Oi,__moduleExports:Oi})),Li="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Ri=function(e){if(0<=e&&e>>=5)>0&&(t|=32),r+=Ri(t)}while(n>0);return r},Ji=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=Bi(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));n=!!(32&i),c+=(i&=31)<>1,1==(1&a)?-o:o),r.rest=t},Ki=r((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 d(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=d(e.source,t.source);return 0!==n||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)||r||0!==(n=e.generatedColumn-t.generatedColumn)||0!==(n=e.generatedLine-t.generatedLine)?n:d(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n||0!==(n=e.generatedColumn-t.generatedColumn)||r||0!==(n=d(e.source,t.source))||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)?n:d(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=d(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:d(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)}})),zi=Object.prototype.hasOwnProperty,Ui="undefined"!=typeof Map;function Vi(){this._array=[],this._set=Ui?new Map:Object.create(null)}Vi.fromArray=function(e,t){for(var r=new Vi,n=0,i=e.length;n=0)return t}else{var r=Ki.toSetString(e);if(zi.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')},Vi.prototype.at=function(e){if(e>=0&&en||i==n&&o>=a||Ki.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},Wi.prototype.toArray=function(){return this._sorted||(this._array.sort(Ki.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};var Hi=qi.ArraySet,Gi={MappingList:Wi}.MappingList;function Yi(e){e||(e={}),this._file=Ki.getArg(e,"file",null),this._sourceRoot=Ki.getArg(e,"sourceRoot",null),this._skipValidation=Ki.getArg(e,"skipValidation",!1),this._sources=new Hi,this._names=new Hi,this._mappings=new Gi,this._sourcesContents=null}Yi.prototype._version=3,Yi.fromSourceMap=function(e){var t=e.sourceRoot,r=new Yi({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=Ki.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=Ki.relative(t,n)),r._sources.has(i)||r._sources.add(i);var a=e.sourceContentFor(n);null!=a&&r.setSourceContent(n,a)})),r},Yi.prototype.addMapping=function(e){var t=Ki.getArg(e,"generated"),r=Ki.getArg(e,"original",null),n=Ki.getArg(e,"source",null),i=Ki.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})},Yi.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=Ki.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Ki.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[Ki.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},Yi.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=Ki.relative(i,n));var a=new Hi,o=new Hi;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=Ki.join(r,t.source)),null!=i&&(t.source=Ki.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=Ki.join(r,t)),null!=i&&(t=Ki.relative(i,t)),this.setSourceContent(t,n))}),this)},Yi.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}))},Yi.prototype._serializeMappings=function(){for(var e,t,r,n,i=0,a=1,o=0,s=0,c=0,u=0,l="",d=this._mappings.toArray(),_=0,p=d.length;_0){if(!Ki.compareByGeneratedPositionsInflated(t,d[_-1]))continue;e+=","}e+=ji(t.generatedColumn-i),i=t.generatedColumn,null!=t.source&&(n=this._sources.indexOf(t.source),e+=ji(n-u),u=n,e+=ji(t.originalLine-1-s),s=t.originalLine-1,e+=ji(t.originalColumn-o),o=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=ji(r-c),c=r)),l+=e}return l},Yi.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=Ki.relative(t,e));var r=Ki.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},Yi.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},Yi.prototype.toString=function(){return JSON.stringify(this.toJSON())};var Xi={SourceMapGenerator:Yi},Qi=r((function(e,t){function r(e,n,i,a,o,s){var c=Math.floor((n-e)/2)+e,u=o(i,a[c],!0);return 0===u?c:u>0?n-c>1?r(c,n,i,a,o,s):s==t.LEAST_UPPER_BOUND?n1?r(e,c,i,a,o,s):s==t.LEAST_UPPER_BOUND?c:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,i,a){if(0===n.length)return-1;var o=r(-1,n.length,e,n,i,a||t.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&0===i(n[o],n[o-1],!0);)--o;return o}}));function $i(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function Zi(e,t,r,n){if(r=0){var a=this._originalMappings[i];if(void 0===e.column)for(var o=a.originalLine;a&&a.originalLine===o;)n.push({line:Ki.getArg(a,"generatedLine",null),column:Ki.getArg(a,"generatedColumn",null),lastColumn:Ki.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];else for(var s=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==s;)n.push({line:Ki.getArg(a,"generatedLine",null),column:Ki.getArg(a,"generatedColumn",null),lastColumn:Ki.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i]}return n};var na=ra;function ia(e,t){var r=e;"string"==typeof e&&(r=Ki.parseSourceMapInput(e));var n=Ki.getArg(r,"version"),i=Ki.getArg(r,"sources"),a=Ki.getArg(r,"names",[]),o=Ki.getArg(r,"sourceRoot",null),s=Ki.getArg(r,"sourcesContent",null),c=Ki.getArg(r,"mappings"),u=Ki.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);o&&(o=Ki.normalize(o)),i=i.map(String).map(Ki.normalize).map((function(e){return o&&Ki.isAbsolute(o)&&Ki.isAbsolute(e)?Ki.relative(o,e):e})),this._names=ea.fromArray(a.map(String),!0),this._sources=ea.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map((function(e){return Ki.computeSourceURL(o,e,t)})),this.sourceRoot=o,this.sourcesContent=s,this._mappings=c,this._sourceMapURL=t,this.file=u}function aa(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}ia.prototype=Object.create(ra.prototype),ia.prototype.consumer=ra,ia.prototype._findSourceIndex=function(e){var t,r=e;if(null!=this.sourceRoot&&(r=Ki.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);for(t=0;t1&&(r.source=d+i[1],d+=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=_+i[4],_+=i[4])),v.push(r),"number"==typeof r.originalLine&&y.push(r)}ta(v,Ki.compareByGeneratedPositionsDeflated),this.__generatedMappings=v,ta(y,Ki.compareByOriginalPositions),this.__originalMappings=y},ia.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 Qi.search(e,t,i,a)},ia.prototype.computeColumnSpans=function(){for(var e=0;e=0){var n=this._generatedMappings[r];if(n.generatedLine===t.generatedLine){var i=Ki.getArg(n,"source",null);null!==i&&(i=this._sources.at(i),i=Ki.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var a=Ki.getArg(n,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:Ki.getArg(n,"originalLine",null),column:Ki.getArg(n,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},ia.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e})))},ia.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=Ki.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(n=Ki.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.')},ia.prototype.generatedPositionFor=function(e){var t=Ki.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var r={source:t,originalLine:Ki.getArg(e,"line"),originalColumn:Ki.getArg(e,"column")},n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",Ki.compareByOriginalPositions,Ki.getArg(e,"bias",ra.GREATEST_LOWER_BOUND));if(n>=0){var i=this._originalMappings[n];if(i.source===r.source)return{line:Ki.getArg(i,"generatedLine",null),column:Ki.getArg(i,"generatedColumn",null),lastColumn:Ki.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};var oa=ia;function sa(e,t){var r=e;"string"==typeof e&&(r=Ki.parseSourceMapInput(e));var n=Ki.getArg(r,"version"),i=Ki.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new ea,this._names=new ea;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=Ki.getArg(e,"offset"),n=Ki.getArg(r,"line"),i=Ki.getArg(r,"column");if(n=0;t--)this.prepend(e[t]);else{if(!e[da]&&"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},_a.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r0){for(t=[],r=0;r>18&63]+fa[i>>12&63]+fa[i>>6&63]+fa[63&i]);return a.join("")}function Da(e){var t;ya||va();for(var r=e.length,n=r%3,i="",a=[],o=16383,s=0,c=r-n;sc?c:s+o));return 1===n?(t=e[r-1],i+=fa[t>>2],i+=fa[t<<4&63],i+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],i+=fa[t>>10],i+=fa[t>>4&63],i+=fa[t<<2&63],i+="="),a.push(i),a.join("")}function xa(e,t,r,n,i){var a,o,s=8*i-n-1,c=(1<>1,l=-7,d=r?i-1:0,_=r?-1:1,p=e[t+d];for(d+=_,a=p&(1<<-l)-1,p>>=-l,l+=s;l>0;a=256*a+e[t+d],d+=_,l-=8);for(o=a&(1<<-l)-1,a>>=-l,l+=n;l>0;o=256*o+e[t+d],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 ba(e,t,r,n,i,a){var o,s,c,u=8*a-i-1,l=(1<>1,_=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,f=n?1:-1,g=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+d>=1?_/c:_*Math.pow(2,1-d))*c>=2&&(o++,c/=2),o+d>=l?(s=0,o=l):o+d>=1?(s=(t*c-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[r+p]=255&s,p+=f,s/=256,i-=8);for(o=o<0;e[r+p]=255&o,p+=f,o/=256,u-=8);e[r+p-f]|=128*g}var Sa={}.toString,Ea=Array.isArray||function(e){return"[object Array]"==Sa.call(e)};function Ca(){return ka.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Ta(e,t){if(Ca()=Ca())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ca().toString(16)+" bytes");return 0|e}function Ia(e){return!(null==e||!e._isBuffer)}function Oa(e,t){if(Ia(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 oo(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return so(e).length;default:if(n)return oo(e).length;t=(""+t).toLowerCase(),n=!0}}function Ma(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 Ya(this,t,r);case"utf8":case"utf-8":return Wa(this,t,r);case"ascii":return Ha(this,t,r);case"latin1":case"binary":return Ga(this,t,r);case"base64":return qa(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xa(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function La(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function Ra(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=ka.from(t,n)),Ia(t))return 0===t.length?-1:Ba(e,t,r,n,i);if("number"==typeof t)return t&=255,ka.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Ba(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Ba(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;as&&(r=s-c),a=r;a>=0;a--){for(var d=!0,_=0;_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>8,i=r%256,a.push(i),a.push(n);return a}(t,e.length-r),e,r,n)}function qa(e,t,r){return 0===t&&r===e.length?Da(e):Da(e.slice(t,r))}function Wa(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?4:u>223?3:u>191?2:1;if(i+d<=r)switch(d){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,d=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},ka.prototype.compare=function(e,t,r,n,i){if(!Ia(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;li)&&(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 ja(this,e,t,r);case"utf8":case"utf-8":return Ja(this,e,t,r);case"ascii":return Ka(this,e,t,r);case"latin1":case"binary":return za(this,e,t,r);case"base64":return Ua(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Va(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},ka.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ha(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;in)&&(r=n);for(var i="",a=t;ar)throw new RangeError("Trying to access beyond buffer length")}function $a(e,t,r,n,i,a){if(!Ia(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function Za(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function eo(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function to(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 ro(e,t,r,n,i){return i||to(e,0,r,4),ba(e,t,r,n,23,4),r+4}function no(e,t,r,n,i){return i||to(e,0,r,8),ba(e,t,r,n,52,8),r+8}ka.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),t0&&(i*=256);)n+=this[e+--t]*i;return n},ka.prototype.readUInt8=function(e,t){return t||Qa(e,1,this.length),this[e]},ka.prototype.readUInt16LE=function(e,t){return t||Qa(e,2,this.length),this[e]|this[e+1]<<8},ka.prototype.readUInt16BE=function(e,t){return t||Qa(e,2,this.length),this[e]<<8|this[e+1]},ka.prototype.readUInt32LE=function(e,t){return t||Qa(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},ka.prototype.readUInt32BE=function(e,t){return t||Qa(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},ka.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||Qa(e,t,this.length);for(var n=this[e],i=1,a=0;++a=(i*=128)&&(n-=Math.pow(2,8*t)),n},ka.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||Qa(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},ka.prototype.readInt8=function(e,t){return t||Qa(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},ka.prototype.readInt16LE=function(e,t){t||Qa(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},ka.prototype.readInt16BE=function(e,t){t||Qa(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},ka.prototype.readInt32LE=function(e,t){return t||Qa(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},ka.prototype.readInt32BE=function(e,t){return t||Qa(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},ka.prototype.readFloatLE=function(e,t){return t||Qa(e,4,this.length),xa(this,e,!0,23,4)},ka.prototype.readFloatBE=function(e,t){return t||Qa(e,4,this.length),xa(this,e,!1,23,4)},ka.prototype.readDoubleLE=function(e,t){return t||Qa(e,8,this.length),xa(this,e,!0,52,8)},ka.prototype.readDoubleBE=function(e,t){return t||Qa(e,8,this.length),xa(this,e,!1,52,8)},ka.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||$a(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+i]=e/a&255;return t+r},ka.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||$a(this,e,t,1,255,0),ka.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},ka.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||$a(this,e,t,2,65535,0),ka.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Za(this,e,t,!0),t+2},ka.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||$a(this,e,t,2,65535,0),ka.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Za(this,e,t,!1),t+2},ka.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||$a(this,e,t,4,4294967295,0),ka.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):eo(this,e,t,!0),t+4},ka.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||$a(this,e,t,4,4294967295,0),ka.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):eo(this,e,t,!1),t+4},ka.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);$a(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+r},ka.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);$a(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},ka.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||$a(this,e,t,1,127,-128),ka.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},ka.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||$a(this,e,t,2,32767,-32768),ka.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Za(this,e,t,!0),t+2},ka.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||$a(this,e,t,2,32767,-32768),ka.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Za(this,e,t,!1),t+2},ka.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||$a(this,e,t,4,2147483647,-2147483648),ka.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):eo(this,e,t,!0),t+4},ka.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||$a(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),ka.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):eo(this,e,t,!1),t+4},ka.prototype.writeFloatLE=function(e,t,r){return ro(this,e,t,!0,r)},ka.prototype.writeFloatBE=function(e,t,r){return ro(this,e,t,!1,r)},ka.prototype.writeDoubleLE=function(e,t,r){return no(this,e,t,!0,r)},ka.prototype.writeDoubleBE=function(e,t,r){return no(this,e,t,!1,r)},ka.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=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=0;--i)e[i+t]=this[i+r];else if(a<1e3||!ka.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a55295&&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 so(e){return function(e){var t,r,n,i,a,o;ya||va();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 ma(3*s/4-a),n=a>0?s-4:s;var c=0;for(t=0,r=0;t>16&255,o[c++]=i>>8&255,o[c++]=255&i;return 2===a?(i=ga[e.charCodeAt(t)]<<2|ga[e.charCodeAt(t+1)]>>4,o[c++]=255&i):1===a&&(i=ga[e.charCodeAt(t)]<<10|ga[e.charCodeAt(t+1)]<<4|ga[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(io,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function co(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function uo(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var lo=Object.prototype.toString,_o="function"==typeof ka.alloc&&"function"==typeof ka.allocUnsafe&&"function"==typeof ka.from;var po=function(e,t,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return n=e,"ArrayBuffer"===lo.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 _o?ka.from(e.slice(t,t+r)):new ka(new Uint8Array(e.slice(t,t+r)))}(e,t,r):"string"==typeof e?function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!ka.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return _o?ka.from(e,t):new ka(e,t)}(e,t):_o?ka.from(e):new ka(e);var n},fo=n(Mi),go=n(Ni),mo=(r((function(e,t){var r,n=pa.SourceMapConsumer,i=fo;try{(r=go).existsSync&&r.readFileSync||(r=null)}catch(e){}function a(e,t){return e.require(t)}var o=!1,s=!1,c=!1,u="auto",l={},d={},_=/^data:application\/json[^,]+base64,/,p=[],f=[];function g(){return"browser"===u||"node"!==u&&("undefined"!=typeof window&&"function"==typeof XMLHttpRequest&&!(window.require&&window.module&&window.process&&"renderer"===window.process.type))}function m(e){return function(t){for(var r=0;r";var r=this.getLineNumber();if(null!=r){t+=":"+r;var n=this.getColumnNumber();n&&(t+=":"+n)}}var i="",a=this.getFunctionName(),o=!0,s=this.isConstructor();if(!(this.isToplevel()||s)){var c=this.getTypeName();"[object Object]"===c&&(c="null");var u=this.getMethodName();a?(c&&0!=a.indexOf(c)&&(i+=c+"."),i+=a,u&&a.indexOf("."+u)!=a.length-u.length-1&&(i+=" [as "+u+"]")):i+=c+"."+(u||"")}else s?i+="new "+(a||""):a?i+=a:(i+=t,o=!1);return o&&(i+=" ("+t+")"),i}function S(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(r){t[r]=/^(?:is|get)/.test(r)?function(){return e[r].call(e)}:e[r]})),t.toString=b,t}function E(e,t){if(void 0===t&&(t={nextPosition:null,curPosition:null}),e.isNative())return t.curPosition=null,e;var r=e.getFileName()||e.getScriptNameOrSourceURL();if(r){var n=e.getLineNumber(),i=e.getColumnNumber()-1,a=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/.test(V.version)?0:62;1===n&&i>a&&!g()&&!e.isEval()&&(i-=a);var o=D({source:r,line:n,column:i});t.curPosition=o;var s=(e=S(e)).getFunctionName;return e.getFunctionName=function(){return null==t.nextPosition?s():t.nextPosition.name||s()},e.getFileName=function(){return o.source},e.getLineNumber=function(){return o.line},e.getColumnNumber=function(){return o.column+1},e.getScriptNameOrSourceURL=function(){return o.source},e}var c=e.isEval()&&e.getEvalOrigin();return c?(c=x(c),(e=S(e)).getEvalOrigin=function(){return c},e):e}function C(e,t){c&&(l={},d={});for(var r=(e.name||"Error")+": "+(e.message||""),n={nextPosition:null,curPosition:null},i=[],a=t.length-1;a>=0;a--)i.push("\n at "+E(t[a],n)),n.nextPosition=n.curPosition;return n.curPosition=n.nextPosition=null,r+i.reverse().join("")}function T(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var n=t[1],i=+t[2],a=+t[3],o=l[n];if(!o&&r&&r.existsSync(n))try{o=r.readFileSync(n,"utf8")}catch(e){o=""}if(o){var s=o.split(/(?:\r\n|\r|\n)/)[i-1];if(s)return n+":"+i+"\n"+s+"\n"+new Array(a).join(" ")+"^"}}return null}function k(e){var t=T(e);V.stderr._handle&&V.stderr._handle.setBlocking&&V.stderr._handle.setBlocking(!0),t&&(console.error(),console.error(t)),console.error(e.stack),V.exit(1)}f.push((function(e){var t,r=function(e){var t;if(g())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=y(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(_.test(r)){var n=r.slice(r.indexOf(",")+1);t=po(n,"base64").toString(),r=e}else r=v(e,r),t=y(r);return t?{url:r,map:t}:null}));var A=p.slice(0),F=f.slice(0);t.wrapCallSite=E,t.getErrorSource=T,t.mapSourcePosition=D,t.retrieveSourceMap=h,t.install=function(t){if((t=t||{}).environment&&(u=t.environment,-1===["node","browser","auto"].indexOf(u)))throw new Error("environment "+u+" was unknown. Available options are {auto, browser, node}");if(t.retrieveFile&&(t.overrideRetrieveFile&&(p.length=0),p.unshift(t.retrieveFile)),t.retrieveSourceMap&&(t.overrideRetrieveSourceMap&&(f.length=0),f.unshift(t.retrieveSourceMap)),t.hookRequire&&!g()){var r=a(e,"module"),n=r.prototype._compile;n.__sourceMapSupport||(r.prototype._compile=function(e,t){return l[t]=e,d[t]=void 0,n.call(this,e,t)},r.prototype._compile.__sourceMapSupport=!0)}if(c||(c="emptyCacheBetweenOperations"in t&&t.emptyCacheBetweenOperations),o||(o=!0,Error.prepareStackTrace=C),!s){var i=!("handleUncaughtExceptions"in t)||t.handleUncaughtExceptions;try{!1===a(e,"worker_threads").isMainThread&&(i=!1)}catch(e){}i&&"object"==typeof V&&null!==V&&"function"==typeof V.on&&(s=!0,_=V.emit,V.emit=function(e){if("uncaughtException"===e){var t=arguments[1]&&arguments[1].stack,r=this.listeners(e).length>0;if(t&&!r)return k(arguments[1])}return _.apply(this,arguments)})}var _},t.resetRetrieveHandlers=function(){p.length=0,f.length=0,p=A.slice(0),f=F.slice(0),h=m(f),y=m(p)}})),n(Ti)),yo=r((function(e){var r=t&&t.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0;for(var r=0,n=e;r>1);switch(n(r(e[c],c),t)){case-1:o=c+1;break;case 0:return c;case 1:s=c-1}}return~o}function v(e,t,r,n,i){if(e&&e.length>0){var a=e.length;if(a>0){var o=void 0===n||n<0?0:n,s=void 0===i||o+i>a-1?a-1:o+i,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=r;o<=s;)c=t(c,e[o],o),o++;return c}}return r}e.Map=t("Map","tryGetNativeMap","createMapShim"),e.Set=t("Set","tryGetNativeSet","createSetShim"),e.getIterator=n,e.emptyArray=[],e.emptyMap=new e.Map,e.emptySet=new e.Set,e.createMap=function(){return new e.Map},e.createMapFromTemplate=function(t){var r=new e.Map;for(var n in t)h.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=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=0;r--){var n=e[r];if(t(n,r))return n}},e.findIndex=function(e,t,r){for(var n=r||0;n=0;n--)if(t(e[n],n))return n;return-1},e.findMap=function(t,r){for(var n=0;n0&&e.Debug.assertGreaterThanOrEqual(n(r[o],r[o-1]),0);t:for(var s=a;as&&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;nt?1:0}function B(e,t){return M(e,t)}e.toFileNameLowerCase=I,e.notImplemented=function(){throw new Error("Not implemented")},e.memoize=function(e){var t;return function(){return e&&(t=e(),e=void 0),t}},e.memoizeOne=function(t){var r=new e.Map;return function(e){var n=typeof e+":"+e,i=r.get(n);return void 0!==i||r.has(n)||(i=t(e),r.set(n,i)),i}},e.compose=function(e,t,r,n,i){if(i){for(var a=[],o=0;o0?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 et?1:0}}}();function z(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,d=1;dr)return;var p=n;n=i,i=p}var f=n[t.length];return f>r?void 0:f}function U(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function V(e,t){for(var r=t;r=r.length+n.length&&H(t,r)&&U(t,n)}function Y(e,t,r,n){for(var i=0,a=e[n];ii&&(i=c.prefix.length,n=s)}return n},e.startsWith=H,e.removePrefix=function(e,t){return H(e,t)?e.substr(t.length):e},e.tryRemovePrefix=function(e,t,r){return void 0===r&&(r=N),H(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=e}function _(t,n){return!!d(t)||(l[n]={level:t,assertion:r[n]},r[n]=e.noop,!1)}function p(e,t){var r=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(r,t||p),r}function f(e,t,r,n){e||(t=t?"False expression: "+t:"False expression.",r&&(t+="\r\nVerbose Debug Information: "+("string"==typeof r?r:r())),p(t,n||f))}function g(e,t,r){null==e&&p(t,r||g)}function m(e,t,r){return g(e,t,r||m),e}function y(e,t,r){for(var n=0,i=e;n0&&0===i[0][0]?i[0][1]:"0";if(n){for(var a="",o=t,s=0,c=i;st)break;0!==l&&l&t&&(a=a+(a?"|":"")+d,o&=~l)}if(0===o)return a}else for(var _=0,p=i;_n)for(var i=0,o=e.getOwnKeys(l);i=c.level&&(r[s]=c,l[s]=void 0)}},r.shouldAssert=d,r.fail=p,r.failBadSyntaxKind=function e(t,r,n){return p((r||"Unexpected node.")+"\r\nNode "+x(t.kind)+" was unexpected.",n||e)},r.assert=f,r.assertEqual=function e(t,r,n,i,a){t!==r&&p("Expected "+t+" === "+r+". "+(n?i?n+" "+i:n:""),a||e)},r.assertLessThan=function e(t,r,n,i){t>=r&&p("Expected "+t+" < "+r+". "+(n||""),i||e)},r.assertLessThanOrEqual=function e(t,r,n){t>r&&p("Expected "+t+" <= "+r,n||e)},r.assertGreaterThanOrEqual=function e(t,r,n){t= "+r,n||e)},r.assertIsDefined=g,r.checkDefined=m,r.assertDefined=m,r.assertEachIsDefined=y,r.checkEachDefined=v,r.assertEachDefined=v,r.assertNever=function t(r,n,i){return void 0===n&&(n="Illegal value:"),p(n+" "+("object"==typeof r&&e.hasProperty(r,"kind")&&e.hasProperty(r,"pos")&&x?"SyntaxKind: "+x(r.kind):JSON.stringify(r)),i||t)},r.assertEachNode=function t(r,n,i,a){_(1,"assertEachNode")&&f(void 0===n||e.every(r,n),i||"Unexpected node.",(function(){return"Node array did not pass test '"+h(n)+"'."}),a||t)},r.assertNode=function e(t,r,n,i){_(1,"assertNode")&&f(void 0!==t&&(void 0===r||r(t)),n||"Unexpected node.",(function(){return"Node "+x(t.kind)+" did not pass test '"+h(r)+"'."}),i||e)},r.assertNotNode=function e(t,r,n,i){_(1,"assertNotNode")&&f(void 0===t||void 0===r||!r(t),n||"Unexpected node.",(function(){return"Node "+x(t.kind)+" should not have passed test '"+h(r)+"'."}),i||e)},r.assertOptionalNode=function e(t,r,n,i){_(1,"assertOptionalNode")&&f(void 0===r||void 0===t||r(t),n||"Unexpected node.",(function(){return"Node "+x(t.kind)+" did not pass test '"+h(r)+"'."}),i||e)},r.assertOptionalToken=function e(t,r,n,i){_(1,"assertOptionalToken")&&f(void 0===r||void 0===t||t.kind===r,n||"Unexpected node.",(function(){return"Node "+x(t.kind)+" was not a '"+x(r)+"' token."}),i||e)},r.assertMissingNode=function e(t,r,n){_(1,"assertMissingNode")&&f(void 0===t,r||"Unexpected node.",(function(){return"Node "+x(t.kind)+" was unexpected'."}),n||e)},r.getFunctionName=h,r.formatSymbol=function(t){return"{ name: "+e.unescapeLeadingUnderscores(t.escapedName)+"; flags: "+T(t.flags)+"; declarations: "+e.map(t.declarations,(function(e){return x(e.kind)}))+" }"},r.formatEnum=D,r.formatSyntaxKind=x,r.formatNodeFlags=b,r.formatModifierFlags=S,r.formatTransformFlags=E,r.formatEmitFlags=C,r.formatSymbolFlags=T,r.formatTypeFlags=k,r.formatObjectFlags=A,r.formatFlowFlags=F;var N,P,w,I=!1;function O(e){return function(){if(R(),!N)throw new Error("Debugging helpers could not be loaded.");return N}().formatControlFlowGraph(e)}function M(t){"__debugFlowFlags"in t||Object.defineProperties(t,{__tsDebuggerDisplay:{value:function(){var e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",t=-2048&this.flags;return e+(t?" ("+F(t)+")":"")}},__debugFlowFlags:{get:function(){return D(this.flags,e.FlowFlags,!0)}},__debugToString:{value:function(){return O(this)}}})}function L(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:function(e){return"NodeArray "+(e=String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"))}}})}function R(){if(!I){var t,r;Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var t=33554432&this.flags?"TransientSymbol":"Symbol",r=-33554433&this.flags;return t+" '"+e.symbolName(this)+"'"+(r?" ("+T(r)+")":"")}},__debugFlags:{get:function(){return T(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var t=98304&this.flags?"NullableType":384&this.flags?"LiteralType "+JSON.stringify(this.value):2048&this.flags?"LiteralType "+(this.value.negative?"-":"")+this.value.base10Value+"n":8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":67359327&this.flags?"IntrinsicType "+this.intrinsicName:1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":2048&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",r=524288&this.flags?-2368&this.objectFlags:0;return t+(this.symbol?" '"+e.symbolName(this.symbol)+"'":"")+(r?" ("+A(r)+")":"")}},__debugFlags:{get:function(){return k(this.flags)}},__debugObjectFlags:{get:function(){return 524288&this.flags?A(this.objectFlags):""}},__debugTypeToString:{value:function(){var e=(void 0===t&&"function"==typeof WeakMap&&(t=new WeakMap),t),r=null==e?void 0:e.get(this);return void 0===r&&(r=this.checker.typeToString(this),null==e||e.set(this,r)),r}}});for(var n=0,i=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()];n=0;return d?function(e,t,r,n){var i=B(e,!0,t,r,n);return function(){throw new TypeError(i)}}(t,s,l,r.message):_?function(e,t,r,n){var i=!1;return function(){i||(u.warn(B(e,!1,t,r,n)),i=!0)}}(t,s,l,r.message):e.noop}r.printControlFlowGraph=function(e){return console.log(O(e))},r.formatControlFlowGraph=O,r.attachFlowNodeDebugInfo=function(e){I&&("function"==typeof Object.setPrototypeOf?(P||M(P=Object.create(Object.prototype)),Object.setPrototypeOf(e,P)):M(e))},r.attachNodeArrayDebugInfo=function(e){I&&("function"==typeof Object.setPrototypeOf?(w||L(w=Object.create(Array.prototype)),Object.setPrototypeOf(e,w)):L(e))},r.enableDebugInfo=R,r.deprecate=function(e,t){return function(e,t){return function(){return e(),t.apply(this,arguments)}}(j(h(e),t),e)}}(e.Debug||(e.Debug={}))}(u||(u={})),function(e){var t=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,r=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,n=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,i=/^(0|[1-9]\d*)$/,a=function(){function t(t,i,a,s,c){if(void 0===i&&(i=0),void 0===a&&(a=0),void 0===s&&(s=""),void 0===c&&(c=""),"string"==typeof t){var u=e.Debug.checkDefined(o(t),"Invalid version");t=u.major,i=u.minor,a=u.patch,s=u.prerelease,c=u.build}e.Debug.assert(t>=0,"Invalid argument: major"),e.Debug.assert(i>=0,"Invalid argument: minor"),e.Debug.assert(a>=0,"Invalid argument: patch"),e.Debug.assert(!s||r.test(s),"Invalid argument: prerelease"),e.Debug.assert(!c||n.test(c),"Invalid argument: build"),this.major=t,this.minor=i,this.patch=a,this.prerelease=s?s.split("."):e.emptyArray,this.build=c?c.split("."):e.emptyArray}return t.tryParse=function(e){var r=o(e);if(r)return new t(r.major,r.minor,r.patch,r.prerelease,r.build)},t.prototype.compareTo=function(t){return this===t?0:void 0===t?1:e.compareValues(this.major,t.major)||e.compareValues(this.minor,t.minor)||e.compareValues(this.patch,t.patch)||function(t,r){if(t===r)return 0;if(0===t.length)return 0===r.length?0:1;if(0===r.length)return-1;for(var n=Math.min(t.length,r.length),a=0;a|>=|=)?\s*([a-z0-9-+.*]+)$/i;function p(e){for(var t=[],r=0,n=e.trim().split(c);r=",n.version)),y(i.major)||r.push(y(i.minor)?v("<",i.version.increment("major")):y(i.patch)?v("<",i.version.increment("minor")):v("<=",i.version)),!0)}function m(e,t,r){var n=f(t);if(!n)return!1;var i=n.version,o=n.major,s=n.minor,c=n.patch;if(y(o))"<"!==e&&">"!==e||r.push(v("<",a.zero));else switch(e){case"~":r.push(v(">=",i)),r.push(v("<",i.increment(y(s)?"major":"minor")));break;case"^":r.push(v(">=",i)),r.push(v("<",i.increment(i.major>0||y(s)?"major":i.minor>0||y(c)?"minor":"patch")));break;case"<":case">=":r.push(v(e,i));break;case"<=":case">":r.push(y(s)?v("<="===e?"<":">=",i.increment("major")):y(c)?v("<="===e?"<":">=",i.increment("minor")):v(e,i));break;case"=":case void 0:y(s)||y(c)?(r.push(v(">=",i)),r.push(v("<",i.increment(y(s)?"major":"minor")))):r.push(v("=",i));break;default:return!1}return!0}function y(e){return"*"===e||"x"===e||"X"===e}function v(e,t){return{operator:e,operand:t}}function h(e,t){for(var r=0,n=t;r":return i>0;case">=":return i>=0;case"=":return 0===i;default:return e.Debug.assertNever(r)}}function x(t){return e.map(t,b).join(" ")}function b(e){return""+e.operator+e.operand}}(u||(u={})),function(e){function t(e,t){return"object"==typeof e&&"number"==typeof e.timeOrigin&&"function"==typeof e.mark&&"function"==typeof e.measure&&"function"==typeof e.now&&"function"==typeof t}var r=function(){if("object"==typeof performance&&"function"==typeof PerformanceObserver&&t(performance,PerformanceObserver))return{performance:performance,PerformanceObserver:PerformanceObserver}}()||function(){try{var r=mo,n=r.performance,i=r.PerformanceObserver;if(t(n,i)){var a=new e.Version("999.999.999");return new e.VersionRange("<12.16.3 || 13 <13.13").test(a)?{performance:{get timeOrigin(){return n.timeOrigin},now:function(){return n.now()},mark:function(e){return n.mark(e)},measure:function(e,t,r){void 0===t&&(t="nodeStart"),void 0===r&&(r="__performance.measure-fix__",n.mark(r)),n.measure(e,t,r),"__performance.measure-fix__"===r&&n.clearMarks("__performance.measure-fix__")}},PerformanceObserver:i}:{performance:n,PerformanceObserver:i}}}catch(e){}}(),n=null==r?void 0:r.performance;e.tryGetNativePerformanceHooks=function(){return r},e.timestamp=n?function(){return n.now()}:Date.now?Date.now:function(){return+new Date}}(u||(u={})),function(e){!function(t){var r,n,i;function a(t,r,n){var i=0;return{enter:function(){1==++i&&c(r)},exit:function(){0==--i?(c(n),u(t,r,n)):i<0&&e.Debug.fail("enter/exit count does not match.")}}}t.createTimerIf=function(e,r,n,i){return e?a(r,n,i):t.nullTimer},t.createTimer=a,t.nullTimer={enter:e.noop,exit:e.noop};var o=new e.Map,s=new e.Map;function c(e){null==i||i.mark(e)}function u(e,t,r){null==i||i.measure(e,t,r)}function l(e){for(var t=0,r=e.getEntriesByType("mark");t0);var t=c.pop(),r=t.phase,n=t.name,a=t.args,o=t.time;u("X",r,n,a,'"dur":'+(1e3*e.timestamp()-o),o)}},t.dumpLegend=function(){a&&(e.Debug.assert(r),r.writeFileSync(a,JSON.stringify(s)))}}(e.tracing||(e.tracing={}))}(u||(u={})),function(e){!function(e){e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NumericLiteral=8]="NumericLiteral",e[e.BigIntLiteral=9]="BigIntLiteral",e[e.StringLiteral=10]="StringLiteral",e[e.JsxText=11]="JsxText",e[e.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=13]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=15]="TemplateHead",e[e.TemplateMiddle=16]="TemplateMiddle",e[e.TemplateTail=17]="TemplateTail",e[e.OpenBraceToken=18]="OpenBraceToken",e[e.CloseBraceToken=19]="CloseBraceToken",e[e.OpenParenToken=20]="OpenParenToken",e[e.CloseParenToken=21]="CloseParenToken",e[e.OpenBracketToken=22]="OpenBracketToken",e[e.CloseBracketToken=23]="CloseBracketToken",e[e.DotToken=24]="DotToken",e[e.DotDotDotToken=25]="DotDotDotToken",e[e.SemicolonToken=26]="SemicolonToken",e[e.CommaToken=27]="CommaToken",e[e.QuestionDotToken=28]="QuestionDotToken",e[e.LessThanToken=29]="LessThanToken",e[e.LessThanSlashToken=30]="LessThanSlashToken",e[e.GreaterThanToken=31]="GreaterThanToken",e[e.LessThanEqualsToken=32]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=34]="EqualsEqualsToken",e[e.ExclamationEqualsToken=35]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",e[e.PlusToken=39]="PlusToken",e[e.MinusToken=40]="MinusToken",e[e.AsteriskToken=41]="AsteriskToken",e[e.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",e[e.SlashToken=43]="SlashToken",e[e.PercentToken=44]="PercentToken",e[e.PlusPlusToken=45]="PlusPlusToken",e[e.MinusMinusToken=46]="MinusMinusToken",e[e.LessThanLessThanToken=47]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=50]="AmpersandToken",e[e.BarToken=51]="BarToken",e[e.CaretToken=52]="CaretToken",e[e.ExclamationToken=53]="ExclamationToken",e[e.TildeToken=54]="TildeToken",e[e.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",e[e.BarBarToken=56]="BarBarToken",e[e.QuestionToken=57]="QuestionToken",e[e.ColonToken=58]="ColonToken",e[e.AtToken=59]="AtToken",e[e.QuestionQuestionToken=60]="QuestionQuestionToken",e[e.BacktickToken=61]="BacktickToken",e[e.EqualsToken=62]="EqualsToken",e[e.PlusEqualsToken=63]="PlusEqualsToken",e[e.MinusEqualsToken=64]="MinusEqualsToken",e[e.AsteriskEqualsToken=65]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=66]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=67]="SlashEqualsToken",e[e.PercentEqualsToken=68]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=69]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=70]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=72]="AmpersandEqualsToken",e[e.BarEqualsToken=73]="BarEqualsToken",e[e.BarBarEqualsToken=74]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=75]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=76]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=77]="CaretEqualsToken",e[e.Identifier=78]="Identifier",e[e.PrivateIdentifier=79]="PrivateIdentifier",e[e.BreakKeyword=80]="BreakKeyword",e[e.CaseKeyword=81]="CaseKeyword",e[e.CatchKeyword=82]="CatchKeyword",e[e.ClassKeyword=83]="ClassKeyword",e[e.ConstKeyword=84]="ConstKeyword",e[e.ContinueKeyword=85]="ContinueKeyword",e[e.DebuggerKeyword=86]="DebuggerKeyword",e[e.DefaultKeyword=87]="DefaultKeyword",e[e.DeleteKeyword=88]="DeleteKeyword",e[e.DoKeyword=89]="DoKeyword",e[e.ElseKeyword=90]="ElseKeyword",e[e.EnumKeyword=91]="EnumKeyword",e[e.ExportKeyword=92]="ExportKeyword",e[e.ExtendsKeyword=93]="ExtendsKeyword",e[e.FalseKeyword=94]="FalseKeyword",e[e.FinallyKeyword=95]="FinallyKeyword",e[e.ForKeyword=96]="ForKeyword",e[e.FunctionKeyword=97]="FunctionKeyword",e[e.IfKeyword=98]="IfKeyword",e[e.ImportKeyword=99]="ImportKeyword",e[e.InKeyword=100]="InKeyword",e[e.InstanceOfKeyword=101]="InstanceOfKeyword",e[e.NewKeyword=102]="NewKeyword",e[e.NullKeyword=103]="NullKeyword",e[e.ReturnKeyword=104]="ReturnKeyword",e[e.SuperKeyword=105]="SuperKeyword",e[e.SwitchKeyword=106]="SwitchKeyword",e[e.ThisKeyword=107]="ThisKeyword",e[e.ThrowKeyword=108]="ThrowKeyword",e[e.TrueKeyword=109]="TrueKeyword",e[e.TryKeyword=110]="TryKeyword",e[e.TypeOfKeyword=111]="TypeOfKeyword",e[e.VarKeyword=112]="VarKeyword",e[e.VoidKeyword=113]="VoidKeyword",e[e.WhileKeyword=114]="WhileKeyword",e[e.WithKeyword=115]="WithKeyword",e[e.ImplementsKeyword=116]="ImplementsKeyword",e[e.InterfaceKeyword=117]="InterfaceKeyword",e[e.LetKeyword=118]="LetKeyword",e[e.PackageKeyword=119]="PackageKeyword",e[e.PrivateKeyword=120]="PrivateKeyword",e[e.ProtectedKeyword=121]="ProtectedKeyword",e[e.PublicKeyword=122]="PublicKeyword",e[e.StaticKeyword=123]="StaticKeyword",e[e.YieldKeyword=124]="YieldKeyword",e[e.AbstractKeyword=125]="AbstractKeyword",e[e.AsKeyword=126]="AsKeyword",e[e.AssertsKeyword=127]="AssertsKeyword",e[e.AnyKeyword=128]="AnyKeyword",e[e.AsyncKeyword=129]="AsyncKeyword",e[e.AwaitKeyword=130]="AwaitKeyword",e[e.BooleanKeyword=131]="BooleanKeyword",e[e.ConstructorKeyword=132]="ConstructorKeyword",e[e.DeclareKeyword=133]="DeclareKeyword",e[e.GetKeyword=134]="GetKeyword",e[e.InferKeyword=135]="InferKeyword",e[e.IntrinsicKeyword=136]="IntrinsicKeyword",e[e.IsKeyword=137]="IsKeyword",e[e.KeyOfKeyword=138]="KeyOfKeyword",e[e.ModuleKeyword=139]="ModuleKeyword",e[e.NamespaceKeyword=140]="NamespaceKeyword",e[e.NeverKeyword=141]="NeverKeyword",e[e.ReadonlyKeyword=142]="ReadonlyKeyword",e[e.RequireKeyword=143]="RequireKeyword",e[e.NumberKeyword=144]="NumberKeyword",e[e.ObjectKeyword=145]="ObjectKeyword",e[e.SetKeyword=146]="SetKeyword",e[e.StringKeyword=147]="StringKeyword",e[e.SymbolKeyword=148]="SymbolKeyword",e[e.TypeKeyword=149]="TypeKeyword",e[e.UndefinedKeyword=150]="UndefinedKeyword",e[e.UniqueKeyword=151]="UniqueKeyword",e[e.UnknownKeyword=152]="UnknownKeyword",e[e.FromKeyword=153]="FromKeyword",e[e.GlobalKeyword=154]="GlobalKeyword",e[e.BigIntKeyword=155]="BigIntKeyword",e[e.OfKeyword=156]="OfKeyword",e[e.QualifiedName=157]="QualifiedName",e[e.ComputedPropertyName=158]="ComputedPropertyName",e[e.TypeParameter=159]="TypeParameter",e[e.Parameter=160]="Parameter",e[e.Decorator=161]="Decorator",e[e.PropertySignature=162]="PropertySignature",e[e.PropertyDeclaration=163]="PropertyDeclaration",e[e.MethodSignature=164]="MethodSignature",e[e.MethodDeclaration=165]="MethodDeclaration",e[e.Constructor=166]="Constructor",e[e.GetAccessor=167]="GetAccessor",e[e.SetAccessor=168]="SetAccessor",e[e.CallSignature=169]="CallSignature",e[e.ConstructSignature=170]="ConstructSignature",e[e.IndexSignature=171]="IndexSignature",e[e.TypePredicate=172]="TypePredicate",e[e.TypeReference=173]="TypeReference",e[e.FunctionType=174]="FunctionType",e[e.ConstructorType=175]="ConstructorType",e[e.TypeQuery=176]="TypeQuery",e[e.TypeLiteral=177]="TypeLiteral",e[e.ArrayType=178]="ArrayType",e[e.TupleType=179]="TupleType",e[e.OptionalType=180]="OptionalType",e[e.RestType=181]="RestType",e[e.UnionType=182]="UnionType",e[e.IntersectionType=183]="IntersectionType",e[e.ConditionalType=184]="ConditionalType",e[e.InferType=185]="InferType",e[e.ParenthesizedType=186]="ParenthesizedType",e[e.ThisType=187]="ThisType",e[e.TypeOperator=188]="TypeOperator",e[e.IndexedAccessType=189]="IndexedAccessType",e[e.MappedType=190]="MappedType",e[e.LiteralType=191]="LiteralType",e[e.NamedTupleMember=192]="NamedTupleMember",e[e.TemplateLiteralType=193]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=194]="TemplateLiteralTypeSpan",e[e.ImportType=195]="ImportType",e[e.ObjectBindingPattern=196]="ObjectBindingPattern",e[e.ArrayBindingPattern=197]="ArrayBindingPattern",e[e.BindingElement=198]="BindingElement",e[e.ArrayLiteralExpression=199]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=200]="ObjectLiteralExpression",e[e.PropertyAccessExpression=201]="PropertyAccessExpression",e[e.ElementAccessExpression=202]="ElementAccessExpression",e[e.CallExpression=203]="CallExpression",e[e.NewExpression=204]="NewExpression",e[e.TaggedTemplateExpression=205]="TaggedTemplateExpression",e[e.TypeAssertionExpression=206]="TypeAssertionExpression",e[e.ParenthesizedExpression=207]="ParenthesizedExpression",e[e.FunctionExpression=208]="FunctionExpression",e[e.ArrowFunction=209]="ArrowFunction",e[e.DeleteExpression=210]="DeleteExpression",e[e.TypeOfExpression=211]="TypeOfExpression",e[e.VoidExpression=212]="VoidExpression",e[e.AwaitExpression=213]="AwaitExpression",e[e.PrefixUnaryExpression=214]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=215]="PostfixUnaryExpression",e[e.BinaryExpression=216]="BinaryExpression",e[e.ConditionalExpression=217]="ConditionalExpression",e[e.TemplateExpression=218]="TemplateExpression",e[e.YieldExpression=219]="YieldExpression",e[e.SpreadElement=220]="SpreadElement",e[e.ClassExpression=221]="ClassExpression",e[e.OmittedExpression=222]="OmittedExpression",e[e.ExpressionWithTypeArguments=223]="ExpressionWithTypeArguments",e[e.AsExpression=224]="AsExpression",e[e.NonNullExpression=225]="NonNullExpression",e[e.MetaProperty=226]="MetaProperty",e[e.SyntheticExpression=227]="SyntheticExpression",e[e.TemplateSpan=228]="TemplateSpan",e[e.SemicolonClassElement=229]="SemicolonClassElement",e[e.Block=230]="Block",e[e.EmptyStatement=231]="EmptyStatement",e[e.VariableStatement=232]="VariableStatement",e[e.ExpressionStatement=233]="ExpressionStatement",e[e.IfStatement=234]="IfStatement",e[e.DoStatement=235]="DoStatement",e[e.WhileStatement=236]="WhileStatement",e[e.ForStatement=237]="ForStatement",e[e.ForInStatement=238]="ForInStatement",e[e.ForOfStatement=239]="ForOfStatement",e[e.ContinueStatement=240]="ContinueStatement",e[e.BreakStatement=241]="BreakStatement",e[e.ReturnStatement=242]="ReturnStatement",e[e.WithStatement=243]="WithStatement",e[e.SwitchStatement=244]="SwitchStatement",e[e.LabeledStatement=245]="LabeledStatement",e[e.ThrowStatement=246]="ThrowStatement",e[e.TryStatement=247]="TryStatement",e[e.DebuggerStatement=248]="DebuggerStatement",e[e.VariableDeclaration=249]="VariableDeclaration",e[e.VariableDeclarationList=250]="VariableDeclarationList",e[e.FunctionDeclaration=251]="FunctionDeclaration",e[e.ClassDeclaration=252]="ClassDeclaration",e[e.InterfaceDeclaration=253]="InterfaceDeclaration",e[e.TypeAliasDeclaration=254]="TypeAliasDeclaration",e[e.EnumDeclaration=255]="EnumDeclaration",e[e.ModuleDeclaration=256]="ModuleDeclaration",e[e.ModuleBlock=257]="ModuleBlock",e[e.CaseBlock=258]="CaseBlock",e[e.NamespaceExportDeclaration=259]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=260]="ImportEqualsDeclaration",e[e.ImportDeclaration=261]="ImportDeclaration",e[e.ImportClause=262]="ImportClause",e[e.NamespaceImport=263]="NamespaceImport",e[e.NamedImports=264]="NamedImports",e[e.ImportSpecifier=265]="ImportSpecifier",e[e.ExportAssignment=266]="ExportAssignment",e[e.ExportDeclaration=267]="ExportDeclaration",e[e.NamedExports=268]="NamedExports",e[e.NamespaceExport=269]="NamespaceExport",e[e.ExportSpecifier=270]="ExportSpecifier",e[e.MissingDeclaration=271]="MissingDeclaration",e[e.ExternalModuleReference=272]="ExternalModuleReference",e[e.JsxElement=273]="JsxElement",e[e.JsxSelfClosingElement=274]="JsxSelfClosingElement",e[e.JsxOpeningElement=275]="JsxOpeningElement",e[e.JsxClosingElement=276]="JsxClosingElement",e[e.JsxFragment=277]="JsxFragment",e[e.JsxOpeningFragment=278]="JsxOpeningFragment",e[e.JsxClosingFragment=279]="JsxClosingFragment",e[e.JsxAttribute=280]="JsxAttribute",e[e.JsxAttributes=281]="JsxAttributes",e[e.JsxSpreadAttribute=282]="JsxSpreadAttribute",e[e.JsxExpression=283]="JsxExpression",e[e.CaseClause=284]="CaseClause",e[e.DefaultClause=285]="DefaultClause",e[e.HeritageClause=286]="HeritageClause",e[e.CatchClause=287]="CatchClause",e[e.PropertyAssignment=288]="PropertyAssignment",e[e.ShorthandPropertyAssignment=289]="ShorthandPropertyAssignment",e[e.SpreadAssignment=290]="SpreadAssignment",e[e.EnumMember=291]="EnumMember",e[e.UnparsedPrologue=292]="UnparsedPrologue",e[e.UnparsedPrepend=293]="UnparsedPrepend",e[e.UnparsedText=294]="UnparsedText",e[e.UnparsedInternalText=295]="UnparsedInternalText",e[e.UnparsedSyntheticReference=296]="UnparsedSyntheticReference",e[e.SourceFile=297]="SourceFile",e[e.Bundle=298]="Bundle",e[e.UnparsedSource=299]="UnparsedSource",e[e.InputFiles=300]="InputFiles",e[e.JSDocTypeExpression=301]="JSDocTypeExpression",e[e.JSDocNameReference=302]="JSDocNameReference",e[e.JSDocAllType=303]="JSDocAllType",e[e.JSDocUnknownType=304]="JSDocUnknownType",e[e.JSDocNullableType=305]="JSDocNullableType",e[e.JSDocNonNullableType=306]="JSDocNonNullableType",e[e.JSDocOptionalType=307]="JSDocOptionalType",e[e.JSDocFunctionType=308]="JSDocFunctionType",e[e.JSDocVariadicType=309]="JSDocVariadicType",e[e.JSDocNamepathType=310]="JSDocNamepathType",e[e.JSDocComment=311]="JSDocComment",e[e.JSDocTypeLiteral=312]="JSDocTypeLiteral",e[e.JSDocSignature=313]="JSDocSignature",e[e.JSDocTag=314]="JSDocTag",e[e.JSDocAugmentsTag=315]="JSDocAugmentsTag",e[e.JSDocImplementsTag=316]="JSDocImplementsTag",e[e.JSDocAuthorTag=317]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=318]="JSDocDeprecatedTag",e[e.JSDocClassTag=319]="JSDocClassTag",e[e.JSDocPublicTag=320]="JSDocPublicTag",e[e.JSDocPrivateTag=321]="JSDocPrivateTag",e[e.JSDocProtectedTag=322]="JSDocProtectedTag",e[e.JSDocReadonlyTag=323]="JSDocReadonlyTag",e[e.JSDocCallbackTag=324]="JSDocCallbackTag",e[e.JSDocEnumTag=325]="JSDocEnumTag",e[e.JSDocParameterTag=326]="JSDocParameterTag",e[e.JSDocReturnTag=327]="JSDocReturnTag",e[e.JSDocThisTag=328]="JSDocThisTag",e[e.JSDocTypeTag=329]="JSDocTypeTag",e[e.JSDocTemplateTag=330]="JSDocTemplateTag",e[e.JSDocTypedefTag=331]="JSDocTypedefTag",e[e.JSDocSeeTag=332]="JSDocSeeTag",e[e.JSDocPropertyTag=333]="JSDocPropertyTag",e[e.SyntaxList=334]="SyntaxList",e[e.NotEmittedStatement=335]="NotEmittedStatement",e[e.PartiallyEmittedExpression=336]="PartiallyEmittedExpression",e[e.CommaListExpression=337]="CommaListExpression",e[e.MergeDeclarationMarker=338]="MergeDeclarationMarker",e[e.EndOfDeclarationMarker=339]="EndOfDeclarationMarker",e[e.SyntheticReferenceExpression=340]="SyntheticReferenceExpression",e[e.Count=341]="Count",e[e.FirstAssignment=62]="FirstAssignment",e[e.LastAssignment=77]="LastAssignment",e[e.FirstCompoundAssignment=63]="FirstCompoundAssignment",e[e.LastCompoundAssignment=77]="LastCompoundAssignment",e[e.FirstReservedWord=80]="FirstReservedWord",e[e.LastReservedWord=115]="LastReservedWord",e[e.FirstKeyword=80]="FirstKeyword",e[e.LastKeyword=156]="LastKeyword",e[e.FirstFutureReservedWord=116]="FirstFutureReservedWord",e[e.LastFutureReservedWord=124]="LastFutureReservedWord",e[e.FirstTypeNode=172]="FirstTypeNode",e[e.LastTypeNode=195]="LastTypeNode",e[e.FirstPunctuation=18]="FirstPunctuation",e[e.LastPunctuation=77]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=156]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=8]="FirstLiteralToken",e[e.LastLiteralToken=14]="LastLiteralToken",e[e.FirstTemplateToken=14]="FirstTemplateToken",e[e.LastTemplateToken=17]="LastTemplateToken",e[e.FirstBinaryOperator=29]="FirstBinaryOperator",e[e.LastBinaryOperator=77]="LastBinaryOperator",e[e.FirstStatement=232]="FirstStatement",e[e.LastStatement=248]="LastStatement",e[e.FirstNode=157]="FirstNode",e[e.FirstJSDocNode=301]="FirstJSDocNode",e[e.LastJSDocNode=333]="LastJSDocNode",e[e.FirstJSDocTagNode=314]="FirstJSDocTagNode",e[e.LastJSDocTagNode=333]="LastJSDocTagNode",e[e.FirstContextualKeyword=125]="FirstContextualKeyword",e[e.LastContextualKeyword=156]="LastContextualKeyword"}(e.SyntaxKind||(e.SyntaxKind={})),function(e){e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.NestedNamespace=4]="NestedNamespace",e[e.Synthesized=8]="Synthesized",e[e.Namespace=16]="Namespace",e[e.OptionalChain=32]="OptionalChain",e[e.ExportContext=64]="ExportContext",e[e.ContainsThis=128]="ContainsThis",e[e.HasImplicitReturn=256]="HasImplicitReturn",e[e.HasExplicitReturn=512]="HasExplicitReturn",e[e.GlobalAugmentation=1024]="GlobalAugmentation",e[e.HasAsyncFunctions=2048]="HasAsyncFunctions",e[e.DisallowInContext=4096]="DisallowInContext",e[e.YieldContext=8192]="YieldContext",e[e.DecoratorContext=16384]="DecoratorContext",e[e.AwaitContext=32768]="AwaitContext",e[e.ThisNodeHasError=65536]="ThisNodeHasError",e[e.JavaScriptFile=131072]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=262144]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=524288]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=1048576]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=2097152]="PossiblyContainsImportMeta",e[e.JSDoc=4194304]="JSDoc",e[e.Ambient=8388608]="Ambient",e[e.InWithStatement=16777216]="InWithStatement",e[e.JsonFile=33554432]="JsonFile",e[e.TypeCached=67108864]="TypeCached",e[e.Deprecated=134217728]="Deprecated",e[e.BlockScoped=3]="BlockScoped",e[e.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",e[e.ContextFlags=25358336]="ContextFlags",e[e.TypeExcludesFlags=40960]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=3145728]="PermanentlySetIncrementalFlags"}(e.NodeFlags||(e.NodeFlags={})),function(e){e[e.None=0]="None",e[e.Export=1]="Export",e[e.Ambient=2]="Ambient",e[e.Public=4]="Public",e[e.Private=8]="Private",e[e.Protected=16]="Protected",e[e.Static=32]="Static",e[e.Readonly=64]="Readonly",e[e.Abstract=128]="Abstract",e[e.Async=256]="Async",e[e.Default=512]="Default",e[e.Const=2048]="Const",e[e.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",e[e.Deprecated=8192]="Deprecated",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=28]="AccessibilityModifier",e[e.ParameterPropertyModifier=92]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=2270]="TypeScriptModifier",e[e.ExportDefault=513]="ExportDefault",e[e.All=11263]="All"}(e.ModifierFlags||(e.ModifierFlags={})),function(e){e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement"}(e.JsxFlags||(e.JsxFlags={})),function(e){e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask"}(e.RelationComparisonResult||(e.RelationComparisonResult={})),function(e){e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution"}(e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={})),function(e){e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.NumericLiteralFlags=1008]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags"}(e.TokenFlags||(e.TokenFlags={})),function(e){e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition"}(e.FlowFlags||(e.FlowFlags={})),function(e){e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore"}(e.CommentDirectiveType||(e.CommentDirectiveType={}));var t,r=function(){};e.OperationCanceledException=r,function(e){e[e.Import=0]="Import",e[e.ReferenceFile=1]="ReferenceFile",e[e.TypeReferenceDirective=2]="TypeReferenceDirective"}(e.RefFileKind||(e.RefFileKind={})),function(e){e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely"}(e.StructureIsReused||(e.StructureIsReused={})),function(e){e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped"}(e.ExitStatus||(e.ExitStatus={})),function(e){e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype"}(e.UnionReduction||(e.UnionReduction={})),function(e){e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns"}(e.ContextFlags||(e.ContextFlags={})),function(e){e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.NoUndefinedOptionalParameterType=1073741824]="NoUndefinedOptionalParameterType",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e[e.InReverseMappedType=33554432]="InReverseMappedType"}(e.NodeBuilderFlags||(e.NodeBuilderFlags={})),function(e){e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",e[e.NodeBuilderFlagsMask=814775659]="NodeBuilderFlagsMask"}(e.TypeFormatFlags||(e.TypeFormatFlags={})),function(e){e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain"}(e.SymbolFormatFlags||(e.SymbolFormatFlags={})),function(e){e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed"}(e.SymbolAccessibility||(e.SymbolAccessibility={})),function(e){e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread"}(e.SyntheticSymbolKind||(e.SyntheticSymbolKind={})),function(e){e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier"}(e.TypePredicateKind||(e.TypePredicateKind={})),function(e){e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType"}(e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={})),function(e){e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer"}(e.SymbolFlags||(e.SymbolFlags={})),function(e){e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal"}(e.EnumKind||(e.EnumKind={})),function(e){e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial"}(e.CheckFlags||(e.CheckFlags={})),function(e){e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this"}(e.InternalSymbolName||(e.InternalSymbolName={})),function(e){e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=256]="SuperInstance",e[e.SuperStatic=512]="SuperStatic",e[e.ContextChecked=1024]="ContextChecked",e[e.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",e[e.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",e[e.CaptureArguments=8192]="CaptureArguments",e[e.EnumValuesComputed=16384]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",e[e.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",e[e.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",e[e.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",e[e.AssignmentsMarked=8388608]="AssignmentsMarked",e[e.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",e[e.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",e[e.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers"}(e.NodeCheckFlags||(e.NodeCheckFlags={})),function(e){e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109440]="Unit",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.Primitive=131068]="Primitive",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Substructure=469237760]="Substructure",e[e.Narrowable=536624127]="Narrowable",e[e.NotPrimitiveUnion=469647395]="NotPrimitiveUnion",e[e.IncludesMask=205258751]="IncludesMask",e[e.IncludesStructuredOrInstantiable=262144]="IncludesStructuredOrInstantiable",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject"}(e.TypeFlags||(e.TypeFlags={})),function(e){e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ContainsSpread=1024]="ContainsSpread",e[e.ReverseMapped=2048]="ReverseMapped",e[e.JsxAttributes=4096]="JsxAttributes",e[e.MarkerType=8192]="MarkerType",e[e.JSLiteral=16384]="JSLiteral",e[e.FreshLiteral=32768]="FreshLiteral",e[e.ArrayLiteral=65536]="ArrayLiteral",e[e.ObjectRestType=131072]="ObjectRestType",e[e.PrimitiveUnion=262144]="PrimitiveUnion",e[e.ContainsWideningType=524288]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=1048576]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=2097152]="NonInferrableType",e[e.IsGenericObjectTypeComputed=4194304]="IsGenericObjectTypeComputed",e[e.IsGenericObjectType=8388608]="IsGenericObjectType",e[e.IsGenericIndexTypeComputed=16777216]="IsGenericIndexTypeComputed",e[e.IsGenericIndexType=33554432]="IsGenericIndexType",e[e.CouldContainTypeVariablesComputed=67108864]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=134217728]="CouldContainTypeVariables",e[e.ContainsIntersections=268435456]="ContainsIntersections",e[e.IsNeverIntersectionComputed=268435456]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=536870912]="IsNeverIntersection",e[e.IsClassInstanceClone=1073741824]="IsClassInstanceClone",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=1572864]="RequiresWidening",e[e.PropagatingFlags=3670016]="PropagatingFlags",e[e.ObjectTypeKindMask=2367]="ObjectTypeKindMask"}(e.ObjectFlags||(e.ObjectFlags={})),function(e){e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback"}(e.VarianceFlags||(e.VarianceFlags={})),function(e){e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Variable=12]="Variable"}(e.ElementFlags||(e.ElementFlags={})),function(e){e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed"}(e.JsxReferenceKind||(e.JsxReferenceKind={})),function(e){e[e.Call=0]="Call",e[e.Construct=1]="Construct"}(e.SignatureKind||(e.SignatureKind={})),function(e){e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.IsInnerCallChain=4]="IsInnerCallChain",e[e.IsOuterCallChain=8]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=16]="IsUntypedSignatureInJSFile",e[e.PropagatingFlags=19]="PropagatingFlags",e[e.CallChainFlags=12]="CallChainFlags"}(e.SignatureFlags||(e.SignatureFlags={})),function(e){e[e.String=0]="String",e[e.Number=1]="Number"}(e.IndexKind||(e.IndexKind={})),function(e){e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Function=2]="Function",e[e.Composite=3]="Composite",e[e.Merged=4]="Merged"}(e.TypeMapKind||(e.TypeMapKind={})),function(e){e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.HomomorphicMappedType=4]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=8]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=16]="MappedTypeConstraint",e[e.ContravariantConditional=32]="ContravariantConditional",e[e.ReturnType=64]="ReturnType",e[e.LiteralKeyof=128]="LiteralKeyof",e[e.NoConstraints=256]="NoConstraints",e[e.AlwaysStrict=512]="AlwaysStrict",e[e.MaxValue=1024]="MaxValue",e[e.PriorityImpliesCombination=208]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity"}(e.InferencePriority||(e.InferencePriority={})),function(e){e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction"}(e.InferenceFlags||(e.InferenceFlags={})),function(e){e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True"}(e.Ternary||(e.Ternary={})),function(e){e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty"}(e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={})),function(e){e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message"}(t=e.DiagnosticCategory||(e.DiagnosticCategory={})),e.diagnosticCategoryName=function(e,r){void 0===r&&(r=!0);var n=t[e.category];return r?n.toLowerCase():n},function(e){e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs"}(e.ModuleResolutionKind||(e.ModuleResolutionKind={})),function(e){e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.UseFsEvents=3]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=4]="UseFsEventsOnParentDirectory"}(e.WatchFileKind||(e.WatchFileKind={})),function(e){e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling"}(e.WatchDirectoryKind||(e.WatchDirectoryKind={})),function(e){e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority"}(e.PollingWatchKind||(e.PollingWatchKind={})),function(e){e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ESNext=99]="ESNext"}(e.ModuleKind||(e.ModuleKind={})),function(e){e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev"}(e.JsxEmit||(e.JsxEmit={})),function(e){e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error"}(e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={})),function(e){e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed"}(e.NewLineKind||(e.NewLineKind={})),function(e){e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred"}(e.ScriptKind||(e.ScriptKind={})),function(e){e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest"}(e.ScriptTarget||(e.ScriptTarget={})),function(e){e[e.Standard=0]="Standard",e[e.JSX=1]="JSX"}(e.LanguageVariant||(e.LanguageVariant={})),function(e){e[e.None=0]="None",e[e.Recursive=1]="Recursive"}(e.WatchDirectoryFlags||(e.WatchDirectoryFlags={})),function(e){e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab"}(e.CharacterCodes||(e.CharacterCodes={})),function(e){e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo"}(e.Extension||(e.Extension={})),function(e){e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2020=8]="ContainsES2020",e[e.ContainsES2019=16]="ContainsES2019",e[e.ContainsES2018=32]="ContainsES2018",e[e.ContainsES2017=64]="ContainsES2017",e[e.ContainsES2016=128]="ContainsES2016",e[e.ContainsES2015=256]="ContainsES2015",e[e.ContainsGenerator=512]="ContainsGenerator",e[e.ContainsDestructuringAssignment=1024]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=2048]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=4096]="ContainsLexicalThis",e[e.ContainsRestOrSpread=8192]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=16384]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=32768]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=65536]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=131072]="ContainsBindingPattern",e[e.ContainsYield=262144]="ContainsYield",e[e.ContainsAwait=524288]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=1048576]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=2097152]="ContainsDynamicImport",e[e.ContainsClassFields=4194304]="ContainsClassFields",e[e.ContainsPossibleTopLevelAwait=8388608]="ContainsPossibleTopLevelAwait",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2020=8]="AssertES2020",e[e.AssertES2019=16]="AssertES2019",e[e.AssertES2018=32]="AssertES2018",e[e.AssertES2017=64]="AssertES2017",e[e.AssertES2016=128]="AssertES2016",e[e.AssertES2015=256]="AssertES2015",e[e.AssertGenerator=512]="AssertGenerator",e[e.AssertDestructuringAssignment=1024]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",e[e.NodeExcludes=536870912]="NodeExcludes",e[e.ArrowFunctionExcludes=547309568]="ArrowFunctionExcludes",e[e.FunctionExcludes=547313664]="FunctionExcludes",e[e.ConstructorExcludes=547311616]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=538923008]="MethodOrAccessorExcludes",e[e.PropertyExcludes=536875008]="PropertyExcludes",e[e.ClassExcludes=536905728]="ClassExcludes",e[e.ModuleExcludes=546379776]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=536922112]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=536879104]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=537018368]="VariableDeclarationListExcludes",e[e.ParameterExcludes=536870912]="ParameterExcludes",e[e.CatchClauseExcludes=536887296]="CatchClauseExcludes",e[e.BindingPatternExcludes=536879104]="BindingPatternExcludes",e[e.PropertyNamePropagatingFlags=4096]="PropertyNamePropagatingFlags"}(e.TransformFlags||(e.TransformFlags={})),function(e){e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.AdviseOnEmitNode=2]="AdviseOnEmitNode",e[e.NoSubstitution=4]="NoSubstitution",e[e.CapturesThis=8]="CapturesThis",e[e.NoLeadingSourceMap=16]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=32]="NoTrailingSourceMap",e[e.NoSourceMap=48]="NoSourceMap",e[e.NoNestedSourceMaps=64]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=384]="NoTokenSourceMaps",e[e.NoLeadingComments=512]="NoLeadingComments",e[e.NoTrailingComments=1024]="NoTrailingComments",e[e.NoComments=1536]="NoComments",e[e.NoNestedComments=2048]="NoNestedComments",e[e.HelperName=4096]="HelperName",e[e.ExportName=8192]="ExportName",e[e.LocalName=16384]="LocalName",e[e.InternalName=32768]="InternalName",e[e.Indented=65536]="Indented",e[e.NoIndentation=131072]="NoIndentation",e[e.AsyncFunctionBody=262144]="AsyncFunctionBody",e[e.ReuseTempVariableScope=524288]="ReuseTempVariableScope",e[e.CustomPrologue=1048576]="CustomPrologue",e[e.NoHoisting=2097152]="NoHoisting",e[e.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e[e.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines"}(e.EmitFlags||(e.EmitFlags={})),function(e){e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.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.ImportStar=131072]="ImportStar",e[e.ImportDefault=262144]="ImportDefault",e[e.MakeTemplateObject=524288]="MakeTemplateObject",e[e.ClassPrivateFieldGet=1048576]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=2097152]="ClassPrivateFieldSet",e[e.CreateBinding=4194304]="CreateBinding",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=4194304]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=32768]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=12288]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=53248]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes"}(e.ExternalEmitHelpers||(e.ExternalEmitHelpers={})),function(e){e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue"}(e.EmitHint||(e.EmitHint={})),function(e){e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All"}(e.OuterExpressionKinds||(e.OuterExpressionKinds={})),function(e){e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters"}(e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={})),function(e){e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal"}(e.BundleFileSectionKind||(e.BundleFileSectionKind={})),function(e){e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=262656]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment"}(e.ListFormat||(e.ListFormat={})),function(e){e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default"}(e.PragmaKindFlags||(e.PragmaKindFlags={})),e.commentPragmas={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}}}(u||(u={})),function(e){e.directorySeparator="/";var t=/\\/g;function n(e){return 47===e||92===e}function i(e){return l(e)>0}function a(e){return 0!==l(e)}function o(e){return/^\.\.?($|[\\/])/.test(e)}function s(t,r){return t.length>r.length&&e.endsWith(t,r)}function c(e){return e.length>0&&n(e.charCodeAt(e.length-1))}function u(e){return e>=97&&e<=122||e>=65&&e<=90}function l(t){if(!t)return 0;var r=t.charCodeAt(0);if(47===r||92===r){if(t.charCodeAt(1)!==r)return 1;var n=t.indexOf(47===r?e.directorySeparator:"\\",2);return n<0?t.length:n+1}if(u(r)&&58===t.charCodeAt(1)){var i=t.charCodeAt(2);if(47===i||92===i)return 3;if(2===t.length)return 2}var a=t.indexOf("://");if(-1!==a){var o=a+"://".length,s=t.indexOf(e.directorySeparator,o);if(-1!==s){var c=t.slice(0,a),l=t.slice(o,s);if("file"===c&&(""===l||"localhost"===l)&&u(t.charCodeAt(s+1))){var d=function(e,t){var r=e.charCodeAt(t);if(58===r)return t+1;if(37===r&&51===e.charCodeAt(t+1)){var n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1}(t,s+2);if(-1!==d){if(47===t.charCodeAt(d))return~(d+1);if(d===t.length)return~d}}return~(s+1)}return~t.length}return 0}function d(e){var t=l(e);return t<0?~t:t}function _(t){var r=d(t=v(t));return r===t.length?t:(t=C(t)).slice(0,Math.max(r,t.lastIndexOf(e.directorySeparator)))}function p(t,r,n){if(d(t=v(t))===t.length)return"";var i=(t=C(t)).slice(Math.max(d(t),t.lastIndexOf(e.directorySeparator)+1)),a=void 0!==r&&void 0!==n?g(i,r,n):void 0;return a?i.slice(0,i.length-a.length):i}function f(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 g(t,r,n){if(r)return function(e,t,r){if("string"==typeof t)return f(e,t,r)||"";for(var n=0,i=t;n=0?i.substring(a):""}function m(t,n){return void 0===n&&(n=""),function(t,n){var i=t.substring(0,n),a=t.substring(n).split(e.directorySeparator);return a.length&&!e.lastOrUndefined(a)&&a.pop(),r([i],a)}(t=D(n,t),d(t))}function y(t){return 0===t.length?"":(t[0]&&T(t[0]))+t.slice(1).join(e.directorySeparator)}function v(r){return r.replace(t,e.directorySeparator)}function h(t){if(!e.some(t))return[];for(var r=[t[0]],n=1;n1){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;r0&&t===e.length},e.pathIsAbsolute=a,e.pathIsRelative=o,e.pathIsBareSpecifier=function(e){return!a(e)&&!o(e)},e.hasExtension=function(t){return e.stringContains(p(t),".")},e.fileExtensionIs=s,e.fileExtensionIsOneOf=function(e,t){for(var r=0,n=t;r0==d(r)>0,"Paths must either both be absolute or both be relative");var i="function"==typeof n?n:e.identity;return y(N(t,r,"boolean"==typeof n&&n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,i))}function w(t,r,n,a,o){var s=N(x(n,t),x(n,r),e.equateStringsCaseSensitive,a),c=s[0];if(o&&i(c)){var u=c.charAt(0)===e.directorySeparator?"file://":"file:///";s[0]=u+c}return y(s)}e.comparePathsCaseSensitive=function(t,r){return F(t,r,e.compareStringsCaseSensitive)},e.comparePathsCaseInsensitive=function(t,r){return F(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),F(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=h(m(t)),o=h(m(r));if(o.length0;_(),s--){var l=t[a];if(l)if(l.isClosed)t[a]=void 0;else{u++;var d=p(l,h(l.fileName));l.isClosed?t[a]=void 0:d?(l.unchangedPolls=0,t!==n&&(t[a]=void 0,m(l))):l.unchangedPolls!==e.unchangedPollThresholds[r]?l.unchangedPolls++:t===n?(l.unchangedPolls=1,t[a]=void 0,g(l,i.Low)):r!==i.High&&(l.unchangedPolls++,t[a]=void 0,g(l,r===i.Low?i.Medium:i.High)),t[a]&&(c type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:t(1066,e.DiagnosticCategory.Error,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:t(1068,e.DiagnosticCategory.Error,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:t(1069,e.DiagnosticCategory.Error,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:t(1070,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:t(1071,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:t(1079,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:t(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:t(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),_0_modifier_cannot_appear_on_a_constructor_declaration:t(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:t(1090,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:t(1091,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:t(1092,e.DiagnosticCategory.Error,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:t(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:t(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:t(1095,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:t(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:t(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:t(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:t(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:t(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:t(1101,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:t(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator:t(1103,e.DiagnosticCategory.Error,"A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator_1103","A 'for-await-of' statement is only allowed within an async function or async generator."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:t(1104,e.DiagnosticCategory.Error,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:t(1105,e.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),Jump_target_cannot_cross_function_boundary:t(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:t(1108,e.DiagnosticCategory.Error,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:t(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:t(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:t(1113,e.DiagnosticCategory.Error,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:t(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:t(1115,e.DiagnosticCategory.Error,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:t(1116,e.DiagnosticCategory.Error,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode:t(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117","An object literal cannot have multiple properties with the same name in strict mode."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:t(1118,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:t(1119,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:t(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:t(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),Variable_declaration_list_cannot_be_empty:t(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:t(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:t(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:t(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:t(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:t(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:t(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:t(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:t(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:t(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:t(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:t(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:t(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:t(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:t(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:t(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:t(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:t(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:t(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:t(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:t(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:t(1147,e.DiagnosticCategory.Error,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:t(1148,e.DiagnosticCategory.Error,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:t(1149,e.DiagnosticCategory.Error,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),const_declarations_must_be_initialized:t(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:t(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:t(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:t(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:t(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:t(1162,e.DiagnosticCategory.Error,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:t(1163,e.DiagnosticCategory.Error,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:t(1164,e.DiagnosticCategory.Error,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_1166","A computed property name in a class property declaration must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1168,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1169,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1170,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:t(1171,e.DiagnosticCategory.Error,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:t(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:t(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:t(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:t(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:t(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:t(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:t(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:t(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:t(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:t(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:t(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:t(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:t(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:t(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:t(1186,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:t(1187,e.DiagnosticCategory.Error,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:t(1188,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:t(1189,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:t(1190,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:t(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:t(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:t(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:t(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:t(1195,e.DiagnosticCategory.Error,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:t(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:t(1197,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:t(1198,e.DiagnosticCategory.Error,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:t(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:t(1200,e.DiagnosticCategory.Error,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:t(1202,e.DiagnosticCategory.Error,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:t(1203,e.DiagnosticCategory.Error,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:t(1205,e.DiagnosticCategory.Error,"Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205","Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'."),Decorators_are_not_valid_here:t(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:t(1207,e.DiagnosticCategory.Error,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module:t(1208,e.DiagnosticCategory.Error,"_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208","'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module."),Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:t(1210,e.DiagnosticCategory.Error,"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210","Invalid use of '{0}'. Class definitions are automatically in strict mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:t(1211,e.DiagnosticCategory.Error,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:t(1212,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t(1213,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:t(1214,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:t(1215,e.DiagnosticCategory.Error,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:t(1216,e.DiagnosticCategory.Error,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:t(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning:t(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning."),Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher:t(1220,e.DiagnosticCategory.Error,"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220","Generators are only available when targeting ECMAScript 2015 or higher."),Generators_are_not_allowed_in_an_ambient_context:t(1221,e.DiagnosticCategory.Error,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:t(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:t(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:t(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:t(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:t(1226,e.DiagnosticCategory.Error,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:t(1227,e.DiagnosticCategory.Error,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:t(1228,e.DiagnosticCategory.Error,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:t(1229,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:t(1230,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_can_only_be_used_in_a_module:t(1231,e.DiagnosticCategory.Error,"An_export_assignment_can_only_be_used_in_a_module_1231","An export assignment can only be used in a module."),An_import_declaration_can_only_be_used_in_a_namespace_or_module:t(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232","An import declaration can only be used in a namespace or module."),An_export_declaration_can_only_be_used_in_a_module:t(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_in_a_module_1233","An export declaration can only be used in a module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:t(1234,e.DiagnosticCategory.Error,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_in_a_namespace_or_module:t(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235","A namespace declaration is only allowed in a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:t(1236,e.DiagnosticCategory.Error,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:t(1237,e.DiagnosticCategory.Error,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:t(1238,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:t(1239,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:t(1240,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:t(1241,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:t(1242,e.DiagnosticCategory.Error,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:t(1243,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:t(1244,e.DiagnosticCategory.Error,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:t(1245,e.DiagnosticCategory.Error,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:t(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:t(1247,e.DiagnosticCategory.Error,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:t(1248,e.DiagnosticCategory.Error,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:t(1249,e.DiagnosticCategory.Error,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:t(1250,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t(1251,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:t(1252,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag:t(1253,e.DiagnosticCategory.Error,"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253","'{0}' tag cannot be used independently as a top level JSDoc tag."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:t(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:t(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_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."),Module_0_can_only_be_default_imported_using_the_1_flag:t(1259,e.DiagnosticCategory.Error,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:t(1260,e.DiagnosticCategory.Error,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:t(1261,e.DiagnosticCategory.Error,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:t(1262,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t(1263,e.DiagnosticCategory.Error,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:t(1264,e.DiagnosticCategory.Error,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),with_statements_are_not_allowed_in_an_async_function_block:t(1300,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:t(1308,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:t(1312,e.DiagnosticCategory.Error,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:t(1313,e.DiagnosticCategory.Error,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:t(1314,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:t(1315,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:t(1316,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:t(1317,e.DiagnosticCategory.Error,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:t(1318,e.DiagnosticCategory.Error,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:t(1319,e.DiagnosticCategory.Error,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1320,e.DiagnosticCategory.Error,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1321,e.DiagnosticCategory.Error,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1322,e.DiagnosticCategory.Error,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system_or_umd:t(1323,e.DiagnosticCategory.Error,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'esnext', 'commonjs', 'amd', 'system', or 'umd'."),Dynamic_import_must_have_one_specifier_as_an_argument:t(1324,e.DiagnosticCategory.Error,"Dynamic_import_must_have_one_specifier_as_an_argument_1324","Dynamic import must have one specifier as an argument."),Specifier_of_dynamic_import_cannot_be_spread_element:t(1325,e.DiagnosticCategory.Error,"Specifier_of_dynamic_import_cannot_be_spread_element_1325","Specifier of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:t(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments."),String_literal_with_double_quotes_expected:t(1327,e.DiagnosticCategory.Error,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:t(1328,e.DiagnosticCategory.Error,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:t(1329,e.DiagnosticCategory.Error,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:t(1330,e.DiagnosticCategory.Error,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:t(1331,e.DiagnosticCategory.Error,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:t(1332,e.DiagnosticCategory.Error,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:t(1333,e.DiagnosticCategory.Error,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:t(1334,e.DiagnosticCategory.Error,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:t(1335,e.DiagnosticCategory.Error,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead:t(1336,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead_1336","An index signature parameter type cannot be a type alias. Consider writing '[{0}: {1}]: {2}' instead."),An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead:t(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead_1337","An index signature parameter type cannot be a union type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:t(1338,e.DiagnosticCategory.Error,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:t(1339,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:t(1340,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Type_arguments_cannot_be_used_here:t(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_esnext_or_system:t(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_esnext_or_system_1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'esnext', or 'system'."),A_label_is_not_allowed_here:t(1344,e.DiagnosticCategory.Error,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:t(1345,e.DiagnosticCategory.Error,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:t(1346,e.DiagnosticCategory.Error,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:t(1347,e.DiagnosticCategory.Error,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:t(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:t(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:t(1350,e.DiagnosticCategory.Message,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:t(1351,e.DiagnosticCategory.Error,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:t(1352,e.DiagnosticCategory.Error,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:t(1353,e.DiagnosticCategory.Error,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:t(1354,e.DiagnosticCategory.Error,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:t(1355,e.DiagnosticCategory.Error,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:t(1356,e.DiagnosticCategory.Error,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:t(1357,e.DiagnosticCategory.Error,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:t(1358,e.DiagnosticCategory.Error,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:t(1359,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Did_you_mean_to_parenthesize_this_function_type:t(1360,e.DiagnosticCategory.Error,"Did_you_mean_to_parenthesize_this_function_type_1360","Did you mean to parenthesize this function type?"),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:t(1361,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:t(1362,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:t(1363,e.DiagnosticCategory.Error,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:t(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:t(1365,e.DiagnosticCategory.Message,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:t(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:t(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:t(1368,e.DiagnosticCategory.Message,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_1368","Specify emit/checking behavior for imports that are only used for types"),Did_you_mean_0:t(1369,e.DiagnosticCategory.Message,"Did_you_mean_0_1369","Did you mean '{0}'?"),Only_ECMAScript_imports_may_use_import_type:t(1370,e.DiagnosticCategory.Error,"Only_ECMAScript_imports_may_use_import_type_1370","Only ECMAScript imports may use 'import type'."),This_import_is_never_used_as_a_value_and_must_use_import_type_because_the_importsNotUsedAsValues_is_set_to_error:t(1371,e.DiagnosticCategory.Error,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_the_importsNotUsedAsValues_is__1371","This import is never used as a value and must use 'import type' because the 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:t(1373,e.DiagnosticCategory.Message,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:t(1374,e.DiagnosticCategory.Message,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:t(1375,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:t(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:t(1377,e.DiagnosticCategory.Message,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher:t(1378,e.DiagnosticCategory.Error,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_t_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'esnext' or 'system', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:t(1379,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:t(1380,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:t(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:t(1382,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Only_named_exports_may_use_export_type:t(1383,e.DiagnosticCategory.Error,"Only_named_exports_may_use_export_type_1383","Only named exports may use 'export type'."),A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list:t(1384,e.DiagnosticCategory.Error,"A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list_1384","A 'new' expression with type arguments must always be followed by a parenthesized argument list."),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:t(1385,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:t(1386,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t(1387,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t(1388,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:t(1389,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),The_types_of_0_are_incompatible_between_these_types:t(2200,e.DiagnosticCategory.Error,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:t(2201,e.DiagnosticCategory.Error,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:t(2202,e.DiagnosticCategory.Error,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:t(2203,e.DiagnosticCategory.Error,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:t(2204,e.DiagnosticCategory.Error,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:t(2205,e.DiagnosticCategory.Error,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Duplicate_identifier_0:t(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2301,e.DiagnosticCategory.Error,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:t(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:t(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:t(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:t(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:t(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:t(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:t(2308,e.DiagnosticCategory.Error,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:t(2309,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:t(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),A_class_may_only_extend_another_class:t(2311,e.DiagnosticCategory.Error,"A_class_may_only_extend_another_class_2311","A class may only extend another class."),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2312,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:t(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:t(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:t(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:t(2316,e.DiagnosticCategory.Error,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:t(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:t(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:t(2319,e.DiagnosticCategory.Error,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:t(2320,e.DiagnosticCategory.Error,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:t(2321,e.DiagnosticCategory.Error,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:t(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:t(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:t(2324,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:t(2325,e.DiagnosticCategory.Error,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:t(2326,e.DiagnosticCategory.Error,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:t(2327,e.DiagnosticCategory.Error,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:t(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_is_missing_in_type_0:t(2329,e.DiagnosticCategory.Error,"Index_signature_is_missing_in_type_0_2329","Index signature is missing in type '{0}'."),Index_signatures_are_incompatible:t(2330,e.DiagnosticCategory.Error,"Index_signatures_are_incompatible_2330","Index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:t(2331,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:t(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:t(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:t(2334,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:t(2335,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:t(2336,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:t(2337,e.DiagnosticCategory.Error,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:t(2338,e.DiagnosticCategory.Error,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:t(2339,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:t(2340,e.DiagnosticCategory.Error,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:t(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:t(2342,e.DiagnosticCategory.Error,"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342","An index expression argument must be of type 'string', 'number', 'symbol', or 'any'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:t(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:t(2344,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:t(2345,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:t(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:t(2347,e.DiagnosticCategory.Error,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:t(2348,e.DiagnosticCategory.Error,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:t(2349,e.DiagnosticCategory.Error,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:t(2350,e.DiagnosticCategory.Error,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:t(2351,e.DiagnosticCategory.Error,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:t(2352,e.DiagnosticCategory.Error,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:t(2353,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:t(2354,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:t(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:t(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:t(2357,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2358,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:t(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol:t(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360","The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter_2361","The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:t(2364,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:t(2365,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:t(2366,e.DiagnosticCategory.Error,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap:t(2367,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap_2367","This condition will always return '{0}' since the types '{1}' and '{2}' have no overlap."),Type_parameter_name_cannot_be_0:t(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:t(2369,e.DiagnosticCategory.Error,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:t(2370,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:t(2371,e.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_string_index_signature:t(2374,e.DiagnosticCategory.Error,"Duplicate_string_index_signature_2374","Duplicate string index signature."),Duplicate_number_index_signature:t(2375,e.DiagnosticCategory.Error,"Duplicate_number_index_signature_2375","Duplicate number index signature."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers:t(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376","A 'super' call must be the first statement in the constructor when a class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:t(2377,e.DiagnosticCategory.Error,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:t(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Getter_and_setter_accessors_do_not_agree_in_visibility:t(2379,e.DiagnosticCategory.Error,"Getter_and_setter_accessors_do_not_agree_in_visibility_2379","Getter and setter accessors do not agree in visibility."),get_and_set_accessor_must_have_the_same_type:t(2380,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_type_2380","'get' and 'set' accessor must have the same type."),A_signature_with_an_implementation_cannot_use_a_string_literal_type:t(2381,e.DiagnosticCategory.Error,"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381","A signature with an implementation cannot use a string literal type."),Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature:t(2382,e.DiagnosticCategory.Error,"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382","Specialized overload signature is not assignable to any non-specialized signature."),Overload_signatures_must_all_be_exported_or_non_exported:t(2383,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:t(2384,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:t(2385,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:t(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:t(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:t(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:t(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:t(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:t(2391,e.DiagnosticCategory.Error,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:t(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:t(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:t(2394,e.DiagnosticCategory.Error,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:t(2395,e.DiagnosticCategory.Error,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:t(2396,e.DiagnosticCategory.Error,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:t(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:t(2398,e.DiagnosticCategory.Error,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:t(2399,e.DiagnosticCategory.Error,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:t(2400,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:t(2401,e.DiagnosticCategory.Error,"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401","Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:t(2402,e.DiagnosticCategory.Error,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:t(2403,e.DiagnosticCategory.Error,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:t(2404,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:t(2405,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:t(2406,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:t(2407,e.DiagnosticCategory.Error,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:t(2408,e.DiagnosticCategory.Error,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:t(2409,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:t(2410,e.DiagnosticCategory.Error,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Property_0_of_type_1_is_not_assignable_to_string_index_type_2:t(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411","Property '{0}' of type '{1}' is not assignable to string index type '{2}'."),Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2:t(2412,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412","Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'."),Numeric_index_type_0_is_not_assignable_to_string_index_type_1:t(2413,e.DiagnosticCategory.Error,"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413","Numeric index type '{0}' is not assignable to string index type '{1}'."),Class_name_cannot_be_0:t(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:t(2415,e.DiagnosticCategory.Error,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:t(2416,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:t(2417,e.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:t(2418,e.DiagnosticCategory.Error,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:t(2419,e.DiagnosticCategory.Error,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:t(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2422,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:t(2423,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:t(2425,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:t(2426,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:t(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:t(2428,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:t(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:t(2431,e.DiagnosticCategory.Error,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:t(2432,e.DiagnosticCategory.Error,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:t(2433,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:t(2434,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:t(2435,e.DiagnosticCategory.Error,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:t(2436,e.DiagnosticCategory.Error,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:t(2437,e.DiagnosticCategory.Error,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:t(2438,e.DiagnosticCategory.Error,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:t(2439,e.DiagnosticCategory.Error,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:t(2440,e.DiagnosticCategory.Error,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:t(2441,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:t(2442,e.DiagnosticCategory.Error,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:t(2443,e.DiagnosticCategory.Error,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:t(2444,e.DiagnosticCategory.Error,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:t(2445,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1:t(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:t(2447,e.DiagnosticCategory.Error,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:t(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:t(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:t(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:t(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:t(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly:t(2453,e.DiagnosticCategory.Error,"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453","The type argument for type parameter '{0}' cannot be inferred from the usage. Consider specifying the type arguments explicitly."),Variable_0_is_used_before_being_assigned:t(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0:t(2455,e.DiagnosticCategory.Error,"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455","Type argument candidate '{1}' is not a valid type argument because it is not a supertype of candidate '{0}'."),Type_alias_0_circularly_references_itself:t(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:t(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:t(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:t(2459,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:t(2460,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:t(2461,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:t(2462,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:t(2463,e.DiagnosticCategory.Error,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:t(2464,e.DiagnosticCategory.Error,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:t(2465,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:t(2466,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:t(2467,e.DiagnosticCategory.Error,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:t(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:t(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:t(2470,e.DiagnosticCategory.Error,"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470","'Symbol' reference does not refer to the global Symbol constructor object."),A_computed_property_name_of_the_form_0_must_be_of_type_symbol:t(2471,e.DiagnosticCategory.Error,"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471","A computed property name of the form '{0}' must be of type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:t(2472,e.DiagnosticCategory.Error,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:t(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values:t(2474,e.DiagnosticCategory.Error,"const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474","const enum member initializers can only contain literal values and other computed enum values."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:t(2475,e.DiagnosticCategory.Error,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:t(2476,e.DiagnosticCategory.Error,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:t(2477,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:t(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),Property_0_does_not_exist_on_const_enum_1:t(2479,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_const_enum_1_2479","Property '{0}' does not exist on 'const' enum '{1}'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:t(2480,e.DiagnosticCategory.Error,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:t(2481,e.DiagnosticCategory.Error,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:t(2483,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:t(2484,e.DiagnosticCategory.Error,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:t(2487,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2488,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:t(2489,e.DiagnosticCategory.Error,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:t(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:t(2491,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:t(2492,e.DiagnosticCategory.Error,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:t(2493,e.DiagnosticCategory.Error,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:t(2494,e.DiagnosticCategory.Error,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:t(2495,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:t(2496,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:t(2497,e.DiagnosticCategory.Error,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:t(2498,e.DiagnosticCategory.Error,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2499,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2500,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:t(2501,e.DiagnosticCategory.Error,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:t(2502,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:t(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:t(2504,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:t(2505,e.DiagnosticCategory.Error,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:t(2506,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:t(2507,e.DiagnosticCategory.Error,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:t(2508,e.DiagnosticCategory.Error,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:t(2510,e.DiagnosticCategory.Error,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:t(2511,e.DiagnosticCategory.Error,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:t(2512,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:t(2513,e.DiagnosticCategory.Error,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),Classes_containing_abstract_methods_must_be_marked_abstract:t(2514,e.DiagnosticCategory.Error,"Classes_containing_abstract_methods_must_be_marked_abstract_2514","Classes containing abstract methods must be marked abstract."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:t(2515,e.DiagnosticCategory.Error,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:t(2516,e.DiagnosticCategory.Error,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:t(2517,e.DiagnosticCategory.Error,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:t(2518,e.DiagnosticCategory.Error,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:t(2519,e.DiagnosticCategory.Error,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:t(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:t(2521,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521","Expression resolves to variable declaration '{0}' that compiler uses to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:t(2522,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:t(2523,e.DiagnosticCategory.Error,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:t(2524,e.DiagnosticCategory.Error,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:t(2525,e.DiagnosticCategory.Error,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:t(2526,e.DiagnosticCategory.Error,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:t(2527,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:t(2528,e.DiagnosticCategory.Error,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:t(2529,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:t(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:t(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:t(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:t(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:t(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:t(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:t(2536,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:t(2537,e.DiagnosticCategory.Error,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:t(2538,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:t(2539,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:t(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),The_target_of_an_assignment_must_be_a_variable_or_a_property_access:t(2541,e.DiagnosticCategory.Error,"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541","The target of an assignment must be a variable or a property access."),Index_signature_in_type_0_only_permits_reading:t(2542,e.DiagnosticCategory.Error,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:t(2543,e.DiagnosticCategory.Error,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:t(2544,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:t(2545,e.DiagnosticCategory.Error,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:t(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2548,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2549,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:t(2550,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the `lib` compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:t(2551,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:t(2552,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:t(2553,e.DiagnosticCategory.Error,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:t(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:t(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),Expected_0_arguments_but_got_1_or_more:t(2556,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_or_more_2556","Expected {0} arguments, but got {1} or more."),Expected_at_least_0_arguments_but_got_1_or_more:t(2557,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_or_more_2557","Expected at least {0} arguments, but got {1} or more."),Expected_0_type_arguments_but_got_1:t(2558,e.DiagnosticCategory.Error,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:t(2559,e.DiagnosticCategory.Error,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:t(2560,e.DiagnosticCategory.Error,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:t(2561,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:t(2562,e.DiagnosticCategory.Error,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:t(2563,e.DiagnosticCategory.Error,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:t(2564,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:t(2565,e.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:t(2566,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:t(2567,e.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:t(2569,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterati_2569","Type '{0}' is not an array type or a string type. Use compiler option '--downlevelIteration' to allow iterating of iterators."),Object_is_of_type_unknown:t(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),Rest_signatures_are_incompatible:t(2572,e.DiagnosticCategory.Error,"Rest_signatures_are_incompatible_2572","Rest signatures are incompatible."),Property_0_is_incompatible_with_rest_element_type:t(2573,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_rest_element_type_2573","Property '{0}' is incompatible with rest element type."),A_rest_element_type_must_be_an_array_type:t(2574,e.DiagnosticCategory.Error,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:t(2575,e.DiagnosticCategory.Error,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_is_a_static_member_of_type_1:t(2576,e.DiagnosticCategory.Error,"Property_0_is_a_static_member_of_type_1_2576","Property '{0}' is a static member of type '{1}'."),Return_type_annotation_circularly_references_itself:t(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:t(2578,e.DiagnosticCategory.Error,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:t(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:t(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:t(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:t(2583,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the `lib` compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:t(2584,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the `lib` compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:t(2585,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later."),Enum_type_0_circularly_references_itself:t(2586,e.DiagnosticCategory.Error,"Enum_type_0_circularly_references_itself_2586","Enum type '{0}' circularly references itself."),JSDoc_type_0_circularly_references_itself:t(2587,e.DiagnosticCategory.Error,"JSDoc_type_0_circularly_references_itself_2587","JSDoc type '{0}' circularly references itself."),Cannot_assign_to_0_because_it_is_a_constant:t(2588,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:t(2589,e.DiagnosticCategory.Error,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:t(2590,e.DiagnosticCategory.Error,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:t(2591,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add `node` to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:t(2592,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add `jquery` to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:t(2593,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig."),This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:t(2594,e.DiagnosticCategory.Error,"This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the__2594","This module is declared with using 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:t(2595,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2596,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:t(2597,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2598,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_attributes_type_0_may_not_be_a_union_type:t(2600,e.DiagnosticCategory.Error,"JSX_element_attributes_type_0_may_not_be_a_union_type_2600","JSX element attributes type '{0}' may not be a union type."),The_return_type_of_a_JSX_element_constructor_must_return_an_object_type:t(2601,e.DiagnosticCategory.Error,"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601","The return type of a JSX element constructor must return an object type."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:t(2602,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:t(2603,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:t(2604,e.DiagnosticCategory.Error,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:t(2605,e.DiagnosticCategory.Error,"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605","JSX element type '{0}' is not a constructor function for JSX elements."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:t(2606,e.DiagnosticCategory.Error,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:t(2607,e.DiagnosticCategory.Error,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:t(2608,e.DiagnosticCategory.Error,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:t(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:t(2610,e.DiagnosticCategory.Error,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:t(2611,e.DiagnosticCategory.Error,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:t(2612,e.DiagnosticCategory.Error,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:t(2613,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:t(2614,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:t(2615,e.DiagnosticCategory.Error,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:t(2616,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2617,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:t(2618,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:t(2619,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:t(2620,e.DiagnosticCategory.Error,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:t(2621,e.DiagnosticCategory.Error,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Element_at_index_0_is_variadic_in_one_type_but_not_in_the_other:t(2622,e.DiagnosticCategory.Error,"Element_at_index_0_is_variadic_in_one_type_but_not_in_the_other_2622","Element at index {0} is variadic in one type but not in the other."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:t(2649,e.DiagnosticCategory.Error,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:t(2651,e.DiagnosticCategory.Error,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:t(2652,e.DiagnosticCategory.Error,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:t(2653,e.DiagnosticCategory.Error,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_package_author_to_update_the_package_definition:t(2654,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654","Exported external package typings file cannot contain tripleslash references. Please contact the package author to update the package definition."),Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_the_package_definition:t(2656,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_2656","Exported external package typings file '{0}' is not a module. Please contact the package author to update the package definition."),JSX_expressions_must_have_one_parent_element:t(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:t(2658,e.DiagnosticCategory.Error,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:t(2659,e.DiagnosticCategory.Error,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:t(2660,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:t(2661,e.DiagnosticCategory.Error,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:t(2662,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:t(2663,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:t(2664,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:t(2665,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:t(2666,e.DiagnosticCategory.Error,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:t(2667,e.DiagnosticCategory.Error,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:t(2668,e.DiagnosticCategory.Error,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:t(2669,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:t(2670,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:t(2671,e.DiagnosticCategory.Error,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:t(2672,e.DiagnosticCategory.Error,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:t(2673,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:t(2674,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:t(2675,e.DiagnosticCategory.Error,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:t(2676,e.DiagnosticCategory.Error,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:t(2677,e.DiagnosticCategory.Error,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:t(2678,e.DiagnosticCategory.Error,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:t(2679,e.DiagnosticCategory.Error,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:t(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:t(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),get_and_set_accessor_must_have_the_same_this_type:t(2682,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_this_type_2682","'get' and 'set' accessor must have the same 'this' type."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:t(2683,e.DiagnosticCategory.Error,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:t(2684,e.DiagnosticCategory.Error,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:t(2685,e.DiagnosticCategory.Error,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:t(2686,e.DiagnosticCategory.Error,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:t(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:t(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:t(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:t(2690,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:t(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:t(2692,e.DiagnosticCategory.Error,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:t(2693,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:t(2694,e.DiagnosticCategory.Error,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:t(2695,e.DiagnosticCategory.Error,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:t(2696,e.DiagnosticCategory.Error,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2697,e.DiagnosticCategory.Error,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option."),Spread_types_may_only_be_created_from_object_types:t(2698,e.DiagnosticCategory.Error,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:t(2699,e.DiagnosticCategory.Error,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:t(2700,e.DiagnosticCategory.Error,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:t(2701,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:t(2702,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:t(2703,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:t(2704,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2705,e.DiagnosticCategory.Error,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option."),Required_type_parameters_may_not_follow_optional_type_parameters:t(2706,e.DiagnosticCategory.Error,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:t(2707,e.DiagnosticCategory.Error,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:t(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:t(2709,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:t(2710,e.DiagnosticCategory.Error,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2711,e.DiagnosticCategory.Error,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2712,e.DiagnosticCategory.Error,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:t(2713,e.DiagnosticCategory.Error,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:t(2714,e.DiagnosticCategory.Error,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:t(2715,e.DiagnosticCategory.Error,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:t(2716,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:t(2717,e.DiagnosticCategory.Error,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:t(2718,e.DiagnosticCategory.Error,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:t(2719,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:t(2720,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:t(2721,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:t(2722,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:t(2723,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:t(2724,e.DiagnosticCategory.Error,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:t(2725,e.DiagnosticCategory.Error,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:t(2726,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:t(2727,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:t(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:t(2729,e.DiagnosticCategory.Error,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:t(2730,e.DiagnosticCategory.Error,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:t(2731,e.DiagnosticCategory.Error,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:t(2732,e.DiagnosticCategory.Error,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:t(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:t(2734,e.DiagnosticCategory.Error,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:t(2735,e.DiagnosticCategory.Error,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:t(2736,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:t(2737,e.DiagnosticCategory.Error,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:t(2738,e.DiagnosticCategory.Message,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:t(2739,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:t(2740,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:t(2741,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:t(2742,e.DiagnosticCategory.Error,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:t(2743,e.DiagnosticCategory.Error,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:t(2744,e.DiagnosticCategory.Error,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:t(2745,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:t(2746,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:t(2747,e.DiagnosticCategory.Error,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided:t(2748,e.DiagnosticCategory.Error,"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748","Cannot access ambient const enums when the '--isolatedModules' flag is provided."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:t(2749,e.DiagnosticCategory.Error,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:t(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:t(2751,e.DiagnosticCategory.Error,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:t(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:t(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:t(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:t(2755,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:t(2756,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:t(2757,e.DiagnosticCategory.Error,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:t(2758,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:t(2759,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:t(2760,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:t(2761,e.DiagnosticCategory.Error,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:t(2762,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:t(2763,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:t(2764,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:t(2765,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:t(2766,e.DiagnosticCategory.Error,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:t(2767,e.DiagnosticCategory.Error,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:t(2768,e.DiagnosticCategory.Error,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:t(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:t(2770,e.DiagnosticCategory.Error,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:t(2771,e.DiagnosticCategory.Error,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:t(2772,e.DiagnosticCategory.Error,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:t(2773,e.DiagnosticCategory.Error,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it_instead:t(2774,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it__2774","This condition will always return true since the function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:t(2775,e.DiagnosticCategory.Error,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:t(2776,e.DiagnosticCategory.Error,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:t(2777,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:t(2778,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:t(2779,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:t(2780,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:t(2781,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:t(2782,e.DiagnosticCategory.Message,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:t(2783,e.DiagnosticCategory.Error,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:t(2784,e.DiagnosticCategory.Error,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:t(2785,e.DiagnosticCategory.Error,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:t(2786,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:t(2787,e.DiagnosticCategory.Error,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:t(2788,e.DiagnosticCategory.Error,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:t(2789,e.DiagnosticCategory.Error,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:t(2790,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:t(2791,e.DiagnosticCategory.Error,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:t(2792,e.DiagnosticCategory.Error,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:t(2793,e.DiagnosticCategory.Error,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:t(2794,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:t(2795,e.DiagnosticCategory.Error,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:t(2796,e.DiagnosticCategory.Error,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),Import_declaration_0_is_using_private_name_1:t(4e3,e.DiagnosticCategory.Error,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:t(4002,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:t(4004,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4006,e.DiagnosticCategory.Error,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4008,e.DiagnosticCategory.Error,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4010,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4012,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4014,e.DiagnosticCategory.Error,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4016,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4019,e.DiagnosticCategory.Error,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4020,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:t(4021,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:t(4022,e.DiagnosticCategory.Error,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4023,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:t(4024,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:t(4025,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4026,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4027,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t(4028,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4029,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4030,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:t(4031,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4032,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:t(4033,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4034,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4035,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4036,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4037,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4038,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4039,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4040,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4041,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4042,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4043,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4044,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:t(4045,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4046,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:t(4047,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4048,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:t(4049,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4050,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4051,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:t(4052,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4053,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4054,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t(4055,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4056,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:t(4057,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4058,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:t(4059,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:t(4060,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4061,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4062,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:t(4063,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4064,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4065,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4066,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4067,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4068,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4069,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4070,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4071,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4072,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4073,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4074,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4075,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4076,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:t(4077,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4078,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:t(4081,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:t(4082,e.DiagnosticCategory.Error,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:t(4083,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:t(4090,e.DiagnosticCategory.Error,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4091,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:t(4092,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:t(4094,e.DiagnosticCategory.Error,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4095,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4096,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:t(4097,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4098,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4099,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:t(4100,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4101,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:t(4102,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:t(4103,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:t(4104,e.DiagnosticCategory.Error,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:t(4105,e.DiagnosticCategory.Error,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:t(4106,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:t(4107,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4108,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:t(4109,e.DiagnosticCategory.Error,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:t(4110,e.DiagnosticCategory.Error,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),The_current_host_does_not_support_the_0_option:t(5001,e.DiagnosticCategory.Error,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:t(5009,e.DiagnosticCategory.Error,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5010,e.DiagnosticCategory.Error,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:t(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:t(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:t(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:t(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:t(5025,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:t(5033,e.DiagnosticCategory.Error,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:t(5042,e.DiagnosticCategory.Error,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:t(5047,e.DiagnosticCategory.Error,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:t(5048,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:t(5051,e.DiagnosticCategory.Error,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:t(5052,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:t(5053,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:t(5054,e.DiagnosticCategory.Error,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:t(5055,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:t(5056,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:t(5057,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:t(5058,e.DiagnosticCategory.Error,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:t(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:t(5061,e.DiagnosticCategory.Error,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:t(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:t(5063,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:t(5064,e.DiagnosticCategory.Error,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5065,e.DiagnosticCategory.Error,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:t(5066,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:t(5067,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:t(5068,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:t(5069,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy:t(5070,e.DiagnosticCategory.Error,"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070","Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:t(5071,e.DiagnosticCategory.Error,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:t(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:t(5073,e.DiagnosticCategory.Error,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:t(5074,e.DiagnosticCategory.Error,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option `--tsBuildInfoFile` is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:t(5075,e.DiagnosticCategory.Error,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:t(5076,e.DiagnosticCategory.Error,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:t(5077,e.DiagnosticCategory.Error,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:t(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:t(5079,e.DiagnosticCategory.Error,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:t(5080,e.DiagnosticCategory.Error,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:t(5081,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:t(5082,e.DiagnosticCategory.Error,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:t(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:t(5084,e.DiagnosticCategory.Error,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:t(5085,e.DiagnosticCategory.Error,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:t(5086,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:t(5087,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a `...` before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:t(5088,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:t(5089,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:t(5090,e.DiagnosticCategory.Error,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Generates_a_sourcemap_for_each_corresponding_d_ts_file:t(6e3,e.DiagnosticCategory.Message,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:t(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:t(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:t(6003,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6003","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:t(6004,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:t(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:t(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:t(6007,e.DiagnosticCategory.Message,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:t(6008,e.DiagnosticCategory.Message,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:t(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:t(6010,e.DiagnosticCategory.Message,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:t(6011,e.DiagnosticCategory.Message,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:t(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:t(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:t(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_ES2020_or_ESNEXT:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_ES2020_or_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'."),Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_es2020_or_ESNext:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_es2020_or_ESNext_6016","Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'."),Print_this_message:t(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:t(6019,e.DiagnosticCategory.Message,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:t(6020,e.DiagnosticCategory.Message,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:t(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:t(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:t(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:t(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:t(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:t(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:t(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:t(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:t(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:t(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:t(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:t(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:t(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:t(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:t(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:t(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Generates_corresponding_map_file:t(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:t(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:t(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:t(6046,e.DiagnosticCategory.Error,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:t(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unsupported_locale_0:t(6049,e.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),Unable_to_open_file_0:t(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:t(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:t(6052,e.DiagnosticCategory.Message,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:t(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:t(6055,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:t(6056,e.DiagnosticCategory.Message,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:t(6058,e.DiagnosticCategory.Message,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:t(6059,e.DiagnosticCategory.Error,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:t(6060,e.DiagnosticCategory.Message,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:t(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:t(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:t(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:t(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Enables_experimental_support_for_ES7_async_functions:t(6068,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_async_functions_6068","Enables experimental support for ES7 async functions."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:t(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:t(6070,e.DiagnosticCategory.Message,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:t(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:t(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:t(6073,e.DiagnosticCategory.Message,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:t(6074,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:t(6075,e.DiagnosticCategory.Message,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:t(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:t(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:t(6078,e.DiagnosticCategory.Message,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:t(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation_Colon_preserve_react_native_or_react:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_Colon_preserve_react_native_or_react_6080","Specify JSX code generation: 'preserve', 'react-native', or 'react'."),File_0_has_an_unsupported_extension_so_skipping_it:t(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:t(6082,e.DiagnosticCategory.Error,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:t(6083,e.DiagnosticCategory.Message,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:t(6084,e.DiagnosticCategory.Message,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:t(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:t(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:t(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:t(6088,e.DiagnosticCategory.Message,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:t(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:t(6090,e.DiagnosticCategory.Message,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:t(6091,e.DiagnosticCategory.Message,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:t(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:t(6093,e.DiagnosticCategory.Message,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:t(6094,e.DiagnosticCategory.Message,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1:t(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:t(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:t(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:t(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:t(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:t(6100,e.DiagnosticCategory.Message,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:t(6101,e.DiagnosticCategory.Message,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:t(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Option_0_should_have_array_of_strings_as_a_value:t(6103,e.DiagnosticCategory.Error,"Option_0_should_have_array_of_strings_as_a_value_6103","Option '{0}' should have array of strings as a value."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:t(6104,e.DiagnosticCategory.Message,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:t(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:t(6106,e.DiagnosticCategory.Message,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:t(6107,e.DiagnosticCategory.Message,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:t(6108,e.DiagnosticCategory.Message,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:t(6109,e.DiagnosticCategory.Message,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:t(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:t(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:t(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:t(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:t(6114,e.DiagnosticCategory.Error,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:t(6115,e.DiagnosticCategory.Message,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:t(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Resolving_using_primary_search_paths:t(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:t(6118,e.DiagnosticCategory.Message,"Resolving_from_node_modules_folder_6118","Resolving from node_modules folder..."),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:t(6119,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:t(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:t(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:t(6122,e.DiagnosticCategory.Message,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:t(6123,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:t(6124,e.DiagnosticCategory.Message,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:t(6125,e.DiagnosticCategory.Message,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:t(6126,e.DiagnosticCategory.Message,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:t(6127,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:t(6128,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:t(6130,e.DiagnosticCategory.Message,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:t(6131,e.DiagnosticCategory.Error,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:t(6132,e.DiagnosticCategory.Message,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:t(6133,e.DiagnosticCategory.Error,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:t(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:t(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:t(6136,e.DiagnosticCategory.Message,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:t(6137,e.DiagnosticCategory.Error,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:t(6138,e.DiagnosticCategory.Error,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:t(6139,e.DiagnosticCategory.Message,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:t(6140,e.DiagnosticCategory.Error,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:t(6141,e.DiagnosticCategory.Message,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:t(6142,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:t(6144,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:t(6145,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:t(6146,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:t(6147,e.DiagnosticCategory.Message,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:t(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:t(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:t(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:t(6151,e.DiagnosticCategory.Message,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:t(6152,e.DiagnosticCategory.Message,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:t(6153,e.DiagnosticCategory.Message,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:t(6154,e.DiagnosticCategory.Message,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:t(6155,e.DiagnosticCategory.Message,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:t(6156,e.DiagnosticCategory.Message,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:t(6157,e.DiagnosticCategory.Message,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:t(6158,e.DiagnosticCategory.Message,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:t(6159,e.DiagnosticCategory.Message,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:t(6160,e.DiagnosticCategory.Message,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:t(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:t(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:t(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:t(6164,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6164","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Do_not_truncate_error_messages:t(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:t(6166,e.DiagnosticCategory.Message,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:t(6167,e.DiagnosticCategory.Message,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:t(6168,e.DiagnosticCategory.Message,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:t(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:t(6170,e.DiagnosticCategory.Message,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:t(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Basic_Options:t(6172,e.DiagnosticCategory.Message,"Basic_Options_6172","Basic Options"),Strict_Type_Checking_Options:t(6173,e.DiagnosticCategory.Message,"Strict_Type_Checking_Options_6173","Strict Type-Checking Options"),Module_Resolution_Options:t(6174,e.DiagnosticCategory.Message,"Module_Resolution_Options_6174","Module Resolution Options"),Source_Map_Options:t(6175,e.DiagnosticCategory.Message,"Source_Map_Options_6175","Source Map Options"),Additional_Checks:t(6176,e.DiagnosticCategory.Message,"Additional_Checks_6176","Additional Checks"),Experimental_Options:t(6177,e.DiagnosticCategory.Message,"Experimental_Options_6177","Experimental Options"),Advanced_Options:t(6178,e.DiagnosticCategory.Message,"Advanced_Options_6178","Advanced Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:t(6179,e.DiagnosticCategory.Message,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:t(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:t(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:t(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_to_file_1_from_old_program:t(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_to_file_1_from_old_program_6183","Reusing resolution of module '{0}' to file '{1}' from old program."),Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program:t(6184,e.DiagnosticCategory.Message,"Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program_6184","Reusing module resolutions originating in '{0}' since resolutions are unchanged from old program."),Disable_strict_checking_of_generic_signatures_in_function_types:t(6185,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6185","Disable strict checking of generic signatures in function types."),Enable_strict_checking_of_function_types:t(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:t(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:t(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:t(6189,e.DiagnosticCategory.Error,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:t(6191,e.DiagnosticCategory.Message,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:t(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:t(6193,e.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:t(6194,e.DiagnosticCategory.Message,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:t(6195,e.DiagnosticCategory.Message,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:t(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:t(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:t(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:t(6199,e.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:t(6200,e.DiagnosticCategory.Error,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:t(6201,e.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:t(6202,e.DiagnosticCategory.Error,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:t(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:t(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:t(6205,e.DiagnosticCategory.Error,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:t(6206,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:t(6207,e.DiagnosticCategory.Message,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:t(6208,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:t(6209,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:t(6210,e.DiagnosticCategory.Message,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:t(6211,e.DiagnosticCategory.Message,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:t(6212,e.DiagnosticCategory.Message,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:t(6213,e.DiagnosticCategory.Message,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:t(6214,e.DiagnosticCategory.Message,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:t(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:t(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:t(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:t(6218,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:t(6219,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:t(6220,e.DiagnosticCategory.Message,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:t(6221,e.DiagnosticCategory.Message,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:t(6222,e.DiagnosticCategory.Message,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:t(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:t(6224,e.DiagnosticCategory.Message,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_UseFsEvents_UseFsEventsOnParentDirectory:t(6225,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling:t(6226,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority:t(6227,e.DiagnosticCategory.Message,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority'."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:t(6228,e.DiagnosticCategory.Message,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6228","Synchronously call callbacks and update the state of directory watchers on platforms that don't support recursive watching natively."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:t(6229,e.DiagnosticCategory.Error,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:t(6230,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:t(6231,e.DiagnosticCategory.Error,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:t(6232,e.DiagnosticCategory.Error,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:t(6233,e.DiagnosticCategory.Error,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:t(6234,e.DiagnosticCategory.Error,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:t(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:t(6236,e.DiagnosticCategory.Error,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:t(6237,e.DiagnosticCategory.Message,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:t(6238,e.DiagnosticCategory.Error,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the `jsx` and `jsxs` factory functions from. eg, react"),Projects_to_reference:t(6300,e.DiagnosticCategory.Message,"Projects_to_reference_6300","Projects to reference"),Enable_project_compilation:t(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:t(6304,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:t(6305,e.DiagnosticCategory.Error,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:t(6306,e.DiagnosticCategory.Error,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:t(6307,e.DiagnosticCategory.Error,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:t(6308,e.DiagnosticCategory.Error,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:t(6309,e.DiagnosticCategory.Error,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:t(6310,e.DiagnosticCategory.Error,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2:t(6350,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350","Project '{0}' is out of date because oldest output '{1}' is older than newest input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2:t(6351,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than oldest output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:t(6352,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:t(6353,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:t(6354,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:t(6355,e.DiagnosticCategory.Message,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:t(6356,e.DiagnosticCategory.Message,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:t(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:t(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:t(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),delete_this_Project_0_is_up_to_date_because_it_was_previously_built:t(6360,e.DiagnosticCategory.Message,"delete_this_Project_0_is_up_to_date_because_it_was_previously_built_6360","delete this - Project '{0}' is up to date because it was previously built"),Project_0_is_up_to_date:t(6361,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:t(6362,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:t(6363,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:t(6364,e.DiagnosticCategory.Message,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:t(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects"),Enable_verbose_logging:t(6366,e.DiagnosticCategory.Message,"Enable_verbose_logging_6366","Enable verbose logging"),Show_what_would_be_built_or_deleted_if_specified_with_clean:t(6367,e.DiagnosticCategory.Message,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Build_all_projects_including_those_that_appear_to_be_up_to_date:t(6368,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6368","Build all projects, including those that appear to be up to date"),Option_build_must_be_the_first_command_line_argument:t(6369,e.DiagnosticCategory.Error,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:t(6370,e.DiagnosticCategory.Error,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:t(6371,e.DiagnosticCategory.Message,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:t(6372,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:t(6373,e.DiagnosticCategory.Message,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:t(6374,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:t(6375,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:t(6376,e.DiagnosticCategory.Message,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:t(6377,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Enable_incremental_compilation:t(6378,e.DiagnosticCategory.Message,"Enable_incremental_compilation_6378","Enable incremental compilation"),Composite_projects_may_not_disable_incremental_compilation:t(6379,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:t(6380,e.DiagnosticCategory.Message,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:t(6381,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:t(6382,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:t(6383,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:t(6384,e.DiagnosticCategory.Message,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:t(6385,e.DiagnosticCategory.Suggestion,"_0_is_deprecated_6385","'{0}' is deprecated",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:t(6386,e.DiagnosticCategory.Message,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:t(6500,e.DiagnosticCategory.Message,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:t(6501,e.DiagnosticCategory.Message,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:t(6502,e.DiagnosticCategory.Message,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:t(6503,e.DiagnosticCategory.Message,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:t(6504,e.DiagnosticCategory.Error,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Include_undefined_in_index_signature_results:t(6800,e.DiagnosticCategory.Message,"Include_undefined_in_index_signature_results_6800","Include 'undefined' in index signature results"),Variable_0_implicitly_has_an_1_type:t(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:t(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:t(7008,e.DiagnosticCategory.Error,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:t(7009,e.DiagnosticCategory.Error,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:t(7010,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7011,e.DiagnosticCategory.Error,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7013,e.DiagnosticCategory.Error,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7014,e.DiagnosticCategory.Error,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:t(7015,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:t(7016,e.DiagnosticCategory.Error,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:t(7017,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:t(7018,e.DiagnosticCategory.Error,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:t(7019,e.DiagnosticCategory.Error,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7020,e.DiagnosticCategory.Error,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:t(7022,e.DiagnosticCategory.Error,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7023,e.DiagnosticCategory.Error,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7024,e.DiagnosticCategory.Error,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:t(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:t(7026,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:t(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:t(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:t(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:t(7031,e.DiagnosticCategory.Error,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:t(7032,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:t(7033,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:t(7034,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:t(7035,e.DiagnosticCategory.Error,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:t(7036,e.DiagnosticCategory.Error,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:t(7037,e.DiagnosticCategory.Message,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:t(7038,e.DiagnosticCategory.Message,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:t(7039,e.DiagnosticCategory.Error,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:t(7040,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}`"),The_containing_arrow_function_captures_the_global_value_of_this:t(7041,e.DiagnosticCategory.Error,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:t(7042,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7043,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7044,e.DiagnosticCategory.Suggestion,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7045,e.DiagnosticCategory.Suggestion,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:t(7046,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:t(7047,e.DiagnosticCategory.Suggestion,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:t(7048,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:t(7049,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:t(7050,e.DiagnosticCategory.Suggestion,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:t(7051,e.DiagnosticCategory.Error,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:t(7052,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:t(7053,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:t(7054,e.DiagnosticCategory.Error,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:t(7055,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:t(7056,e.DiagnosticCategory.Error,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),You_cannot_rename_this_element:t(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:t(8001,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:t(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:t(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:t(8004,e.DiagnosticCategory.Error,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:t(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:t(8006,e.DiagnosticCategory.Error,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:t(8008,e.DiagnosticCategory.Error,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:t(8009,e.DiagnosticCategory.Error,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:t(8010,e.DiagnosticCategory.Error,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:t(8011,e.DiagnosticCategory.Error,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:t(8012,e.DiagnosticCategory.Error,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:t(8013,e.DiagnosticCategory.Error,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:t(8016,e.DiagnosticCategory.Error,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:t(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:t(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:t(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:t(8020,e.DiagnosticCategory.Error,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:t(8021,e.DiagnosticCategory.Error,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:t(8022,e.DiagnosticCategory.Error,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:t(8023,e.DiagnosticCategory.Error,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:t(8024,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:t(8025,e.DiagnosticCategory.Error,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one `@augments` or `@extends` tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:t(8026,e.DiagnosticCategory.Error,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:t(8027,e.DiagnosticCategory.Error,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:t(8028,e.DiagnosticCategory.Error,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:t(8029,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:t(8030,e.DiagnosticCategory.Error,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:t(8031,e.DiagnosticCategory.Error,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:t(8032,e.DiagnosticCategory.Error,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:t(8033,e.DiagnosticCategory.Error,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:t(8034,e.DiagnosticCategory.Error,"The_tag_was_first_specified_here_8034","The tag was first specified here."),Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:t(9002,e.DiagnosticCategory.Error,"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002","Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clause."),class_expressions_are_not_currently_supported:t(9003,e.DiagnosticCategory.Error,"class_expressions_are_not_currently_supported_9003","'class' expressions are not currently supported."),Language_service_is_disabled:t(9004,e.DiagnosticCategory.Error,"Language_service_is_disabled_9004","Language service is disabled."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:t(9005,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:t(9006,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:t(17e3,e.DiagnosticCategory.Error,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:t(17001,e.DiagnosticCategory.Error,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:t(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),JSX_attribute_expected:t(17003,e.DiagnosticCategory.Error,"JSX_attribute_expected_17003","JSX attribute expected."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:t(17004,e.DiagnosticCategory.Error,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:t(17005,e.DiagnosticCategory.Error,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17006,e.DiagnosticCategory.Error,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17007,e.DiagnosticCategory.Error,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:t(17008,e.DiagnosticCategory.Error,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:t(17009,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:t(17010,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:t(17011,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:t(17012,e.DiagnosticCategory.Error,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:t(17013,e.DiagnosticCategory.Error,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:t(17014,e.DiagnosticCategory.Error,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:t(17015,e.DiagnosticCategory.Error,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:t(17016,e.DiagnosticCategory.Error,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:t(17017,e.DiagnosticCategory.Error,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:t(17018,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:t(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:t(18001,e.DiagnosticCategory.Error,"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001","A path in an 'extends' option must be relative or rooted, but '{0}' is not."),The_files_list_in_config_file_0_is_empty:t(18002,e.DiagnosticCategory.Error,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:t(18003,e.DiagnosticCategory.Error,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module:t(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module_80001","File is a CommonJS module; it may be converted to an ES6 module."),This_constructor_function_may_be_converted_to_a_class_declaration:t(80002,e.DiagnosticCategory.Suggestion,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:t(80003,e.DiagnosticCategory.Suggestion,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:t(80004,e.DiagnosticCategory.Suggestion,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:t(80005,e.DiagnosticCategory.Suggestion,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:t(80006,e.DiagnosticCategory.Suggestion,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:t(80007,e.DiagnosticCategory.Suggestion,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:t(80008,e.DiagnosticCategory.Suggestion,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),Add_missing_super_call:t(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:t(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:t(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:t(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:t(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:t(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:t(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:t(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:t(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_module_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013","Import '{0}' from module \"{1}\""),Change_0_to_1:t(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:t(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015","Add '{0}' to existing import declaration from \"{1}\""),Declare_property_0:t(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:t(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:t(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:t(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:t(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:t(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:t(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:t(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:t(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:t(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:t(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:t(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:t(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:t(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:t(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:t(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Import_default_0_from_module_1:t(90032,e.DiagnosticCategory.Message,"Import_default_0_from_module_1_90032","Import default '{0}' from module \"{1}\""),Add_default_import_0_to_existing_import_declaration_from_1:t(90033,e.DiagnosticCategory.Message,"Add_default_import_0_to_existing_import_declaration_from_1_90033","Add default import '{0}' to existing import declaration from \"{1}\""),Add_parameter_name:t(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:t(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:t(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:t(90037,e.DiagnosticCategory.Message,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:t(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:t(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:t(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:t(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Convert_function_to_an_ES2015_class:t(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_function_0_to_class:t(95002,e.DiagnosticCategory.Message,"Convert_function_0_to_class_95002","Convert function '{0}' to class"),Convert_0_to_1_in_0:t(95003,e.DiagnosticCategory.Message,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:t(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:t(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:t(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:t(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:t(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:t(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Annotate_with_types_from_JSDoc:t(95010,e.DiagnosticCategory.Message,"Annotate_with_types_from_JSDoc_95010","Annotate with types from JSDoc"),Infer_type_of_0_from_usage:t(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:t(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:t(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:t(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:t(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:t(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES6_module:t(95017,e.DiagnosticCategory.Message,"Convert_to_ES6_module_95017","Convert to ES6 module"),Add_undefined_type_to_property_0:t(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:t(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:t(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:t(95021,e.DiagnosticCategory.Message,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:t(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:t(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:t(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:t(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:t(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:t(95027,e.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:t(95028,e.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:t(95029,e.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:t(95030,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:t(95031,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:t(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:t(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:t(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:t(95035,e.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:t(95036,e.DiagnosticCategory.Message,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:t(95037,e.DiagnosticCategory.Message,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:t(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:t(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:t(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:t(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:t(95042,e.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:t(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:t(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:t(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:t(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:t(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:t(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:t(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:t(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:t(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:t(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:t(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:t(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:t(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:t(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:t(95057,e.DiagnosticCategory.Message,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:t(95058,e.DiagnosticCategory.Message,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:t(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:t(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:t(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:t(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:t(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:t(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:t(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:t(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:t(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:t(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:t(95069,e.DiagnosticCategory.Message,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:t(95070,e.DiagnosticCategory.Message,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:t(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:t(95072,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:t(95073,e.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:t(95074,e.DiagnosticCategory.Message,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:t(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Allow_accessing_UMD_globals_from_modules:t(95076,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_95076","Allow accessing UMD globals from modules."),Extract_type:t(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:t(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:t(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:t(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:t(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:t(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:t(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:t(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:t(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:t(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:t(95087,e.DiagnosticCategory.Message,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:t(95088,e.DiagnosticCategory.Message,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:t(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:t(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:t(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:t(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:t(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:t(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:t(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:t(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:t(95097,e.DiagnosticCategory.Message,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:t(95098,e.DiagnosticCategory.Message,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:t(95099,e.DiagnosticCategory.Message,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:t(95100,e.DiagnosticCategory.Message,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:t(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Add_class_tag:t(95102,e.DiagnosticCategory.Message,"Add_class_tag_95102","Add '@class' tag"),Add_this_tag:t(95103,e.DiagnosticCategory.Message,"Add_this_tag_95103","Add '@this' tag"),Add_this_parameter:t(95104,e.DiagnosticCategory.Message,"Add_this_parameter_95104","Add 'this' parameter."),Convert_function_expression_0_to_arrow_function:t(95105,e.DiagnosticCategory.Message,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:t(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:t(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:t(95108,e.DiagnosticCategory.Message,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:t(95109,e.DiagnosticCategory.Message,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file:t(95110,e.DiagnosticCategory.Message,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig.json to read more about this file"),Add_a_return_statement:t(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:t(95112,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:t(95113,e.DiagnosticCategory.Message,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:t(95114,e.DiagnosticCategory.Message,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:t(95115,e.DiagnosticCategory.Message,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:t(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:t(95117,e.DiagnosticCategory.Message,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:t(95118,e.DiagnosticCategory.Message,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:t(95119,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:t(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:t(95121,e.DiagnosticCategory.Message,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:t(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:t(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:t(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:t(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:t(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:t(95127,e.DiagnosticCategory.Message,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:t(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:t(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:t(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:t(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:t(95132,e.DiagnosticCategory.Message,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:t(95133,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:t(95134,e.DiagnosticCategory.Message,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:t(95135,e.DiagnosticCategory.Message,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:t(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:t(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:t(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:t(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:t(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:t(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:t(95142,e.DiagnosticCategory.Message,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:t(95143,e.DiagnosticCategory.Message,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:t(95144,e.DiagnosticCategory.Message,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:t(18004,e.DiagnosticCategory.Error,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:t(18006,e.DiagnosticCategory.Error,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:t(18007,e.DiagnosticCategory.Error,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:t(18009,e.DiagnosticCategory.Error,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:t(18010,e.DiagnosticCategory.Error,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:t(18011,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:t(18012,e.DiagnosticCategory.Error,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:t(18013,e.DiagnosticCategory.Error,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:t(18014,e.DiagnosticCategory.Error,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:t(18015,e.DiagnosticCategory.Error,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:t(18016,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:t(18017,e.DiagnosticCategory.Error,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:t(18018,e.DiagnosticCategory.Error,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:t(18019,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),A_method_cannot_be_named_with_a_private_identifier:t(18022,e.DiagnosticCategory.Error,"A_method_cannot_be_named_with_a_private_identifier_18022","A method cannot be named with a private identifier."),An_accessor_cannot_be_named_with_a_private_identifier:t(18023,e.DiagnosticCategory.Error,"An_accessor_cannot_be_named_with_a_private_identifier_18023","An accessor cannot be named with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:t(18024,e.DiagnosticCategory.Error,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:t(18026,e.DiagnosticCategory.Error,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:t(18027,e.DiagnosticCategory.Error,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:t(18028,e.DiagnosticCategory.Error,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:t(18029,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:t(18030,e.DiagnosticCategory.Error,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:t(18031,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:t(18032,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead:t(18033,e.DiagnosticCategory.Error,"Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033","Only numeric enums can have computed members, but this expression has type '{0}'. If you do not need exhaustiveness checks, consider using an object literal instead."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:t(18034,e.DiagnosticCategory.Message,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:t(18035,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name.")}}(u||(u={})),function(e){var t;function r(e){return e>=78}e.tokenIsIdentifierOrKeyword=r,e.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 31===e||r(e)};var i=((t={abstract:125,any:128,as:126,asserts:127,bigint:155,boolean:131,break:80,case:81,catch:82,class:83,continue:85,const:84}).constructor=132,t.debugger=86,t.declare=133,t.default=87,t.delete=88,t.do=89,t.else=90,t.enum=91,t.export=92,t.extends=93,t.false=94,t.finally=95,t.for=96,t.from=153,t.function=97,t.get=134,t.if=98,t.implements=116,t.import=99,t.in=100,t.infer=135,t.instanceof=101,t.interface=117,t.intrinsic=136,t.is=137,t.keyof=138,t.let=118,t.module=139,t.namespace=140,t.never=141,t.new=102,t.null=103,t.number=144,t.object=145,t.package=119,t.private=120,t.protected=121,t.public=122,t.readonly=142,t.require=143,t.global=154,t.return=104,t.set=146,t.static=123,t.string=147,t.super=105,t.switch=106,t.symbol=148,t.this=107,t.throw=108,t.true=109,t.try=110,t.type=149,t.typeof=111,t.undefined=150,t.unique=151,t.unknown=152,t.var=112,t.void=113,t.while=114,t.with=115,t.yield=124,t.async=129,t.await=130,t.of=156,t),a=new e.Map(e.getEntries(i)),o=new e.Map(e.getEntries(n(n({},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,">":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":62,"+=":63,"-=":64,"*=":65,"**=":66,"/=":67,"%=":68,"<<=":69,">>=":70,">>>=":71,"&=":72,"|=":73,"^=":77,"||=":74,"&&=":75,"??=":76,"@":59,"`":61}))),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],d=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],_=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],p=/^\s*\/\/\/?\s*@(ts-expect-error|ts-ignore)/,f=/^\s*(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function g(e,t){if(e=2?d:1===t?u:s)}e.isUnicodeIdentifierStart=m;var y,v=(y=[],o.forEach((function(e,t){y[e]=t})),y);function h(e){for(var t=new Array,r=0,n=0;r127&&T(i)&&(t.push(n),n=r)}}return t.push(n),t}function D(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,h(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=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function T(e){return 10===e||13===e||8232===e||8233===e}function k(e){return e>=48&&e<=57}function A(e){return k(e)||e>=65&&e<=70||e>=97&&e<=102}function F(e){return e>=48&&e<=55}e.tokenToString=function(e){return v[e]},e.stringToToken=function(e){return o.get(e)},e.computeLineStarts=h,e.getPositionOfLineAndCharacter=function(e,t,r,n){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,n):D(x(e),t,r,e.text,n)},e.computePositionOfLineAndCharacter=D,e.getLineStarts=x,e.computeLineAndCharacterOfPosition=b,e.computeLineOfPosition=S,e.getLinesBetweenPositions=function(e,t,r){if(t===r)return 0;var n=x(e),i=Math.min(t,r),a=i===r,o=a?t:r,s=S(n,i),c=S(n,o,s);return a?s-c:c-s},e.getLineAndCharacterOfPosition=function(e,t){return b(x(e),t)},e.isWhiteSpaceLike=E,e.isWhiteSpaceSingleLine=C,e.isLineBreak=T,e.isOctalDigit=F,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;r127&&E(a)){r++;continue}}return r}};var N="<<<<<<<".length;function P(t,r){if(e.Debug.assert(r>=0),0===r||T(t.charCodeAt(r-1))){var n=t.charCodeAt(r);if(r+N=0&&r127&&E(g)){d&&T(g)&&(l=!0),r++;continue}break e}}return d&&(p=i(s,c,u,l,a,p)),p}function R(e,t,r,n,i){return L(!0,e,t,!1,r,n,i)}function B(e,t,r,n,i){return L(!0,e,t,!0,r,n,i)}function j(e,t,r,n,i,a){return a||(a=[]),a.push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),a}function J(e){var t=I.exec(e);if(t)return t[0]}function K(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&m(e,t)}function z(e,t,r){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||1===r&&(45===e||58===e)||e>127&&function(e,t){return g(e,t>=2?_:1===t?l:c)}(e,t)}e.isShebangTrivia=O,e.scanShebangTrivia=M,e.forEachLeadingCommentRange=function(e,t,r,n){return L(!1,e,t,!1,r,n)},e.forEachTrailingCommentRange=function(e,t,r,n){return L(!1,e,t,!0,r,n)},e.reduceEachLeadingCommentRange=R,e.reduceEachTrailingCommentRange=B,e.getLeadingCommentRanges=function(e,t){return R(e,t,j,void 0,void 0)},e.getTrailingCommentRanges=function(e,t){return B(e,t,j,void 0,void 0)},e.getShebang=J,e.isIdentifierStart=K,e.isIdentifierPart=z,e.isIdentifierText=function(e,t,r){var n=U(e,0);if(!K(n,t))return!1;for(var i=V(n);i115},isReservedWord:function(){return m>=80&&m<=115},isUnterminated:function(){return 0!=(4&v)},getCommentDirectives:function(){return h},getNumericLiteralFlags:function(){return 1008&v},getTokenFlags:function(){return v},reScanGreaterToken:function(){if(31===m){if(62===D.charCodeAt(l))return 62===D.charCodeAt(l+1)?61===D.charCodeAt(l+2)?(l+=3,m=71):(l+=2,m=49):61===D.charCodeAt(l+1)?(l+=2,m=70):(l++,m=48);if(61===D.charCodeAt(l))return l++,m=33}return m},reScanAsteriskEqualsToken:function(){return e.Debug.assert(65===m,"'reScanAsteriskEqualsToken' should only be called on a '*='"),l=g+1,m=62},reScanSlashToken:function(){if(43===m||67===m){for(var r=g+1,n=!1,i=!1;;){if(r>=d){v|=4,S(e.Diagnostics.Unterminated_regular_expression_literal);break}var a=D.charCodeAt(r);if(T(a)){v|=4,S(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=d)return m=1;var e=U(D,l);switch(l+=V(e),e){case 9:case 11:case 12:case 32:for(;l=0&&K(r,t))return l+=3,v|=8,y=X()+Z(),m=ee();var n=Q();return n>=0&&K(n,t)?(l+=6,v|=1024,y=String.fromCharCode(n)+Z(),m=ee()):(l++,m=0)}if(K(e,t)){for(var i=e;l=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=d){n+=D.substring(i,l),v|=4,S(e.Diagnostics.Unterminated_string_literal);break}var a=D.charCodeAt(l);if(a===r){n+=D.substring(i,l),l++;break}if(92!==a||t){if(T(a)&&!t){n+=D.substring(i,l),v|=4,S(e.Diagnostics.Unterminated_string_literal);break}l++}else n+=D.substring(i,l),n+=G(),i=l}return n}function H(t){for(var r,n=96===D.charCodeAt(l),i=++l,a="";;){if(l>=d){a+=D.substring(i,l),v|=4,S(e.Diagnostics.Unterminated_template_literal),r=n?14:17;break}var o=D.charCodeAt(l);if(96===o){a+=D.substring(i,l),l++,r=n?14:17;break}if(36===o&&l+1=d)return S(e.Diagnostics.Unexpected_end_of_text),"";var n=D.charCodeAt(l);switch(l++,n){case 48:return t&&l=0?String.fromCharCode(r):(S(e.Diagnostics.Hexadecimal_digit_expected),"")}function X(){var t=j(1,!1),r=t?parseInt(t,16):-1,n=!1;return r<0?(S(e.Diagnostics.Hexadecimal_digit_expected),n=!0):r>1114111&&(S(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),l>=d?(S(e.Diagnostics.Unexpected_end_of_text),n=!0):125===D.charCodeAt(l)?l++:(S(e.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":W(r)}function Q(){if(l+5=2&&117===U(D,l+1)&&123===U(D,l+2)){var e=l;l+=3;var r=j(1,!1),n=r?parseInt(r,16):-1;return l=e,n}return-1}function Z(){for(var e="",r=l;l=0&&z(n,t)){l+=3,v|=8,e+=X(),r=l;continue}if(!((n=Q())>=0&&z(n,t)))break;v|=1024,e+=D.substring(r,l),e+=W(n),r=l+=6}}return e+=D.substring(r,l)}function ee(){var e=y.length;if(e>=2&&e<=12){var t=y.charCodeAt(0);if(t>=97&&t<=122){var r=a.get(y);if(void 0!==r)return m=r}}return m=78}function te(t){for(var r="",n=!1,i=!1;;){var a=D.charCodeAt(l);if(95!==a){if(n=!0,!k(a)||a-48>=t)break;r+=D[l],l++,i=!1}else v|=512,n?(n=!1,i=!0):S(i?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),l++}return 95===D.charCodeAt(l-1)&&S(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),r}function re(){if(110===D.charCodeAt(l))return y+="n",384&v&&(y=e.parsePseudoBigInt(y)+"n"),l++,9;var t=128&v?parseInt(y.slice(2),2):256&v?parseInt(y.slice(2),8):+y;return y=""+t,8}function ne(){var r;_=l,v=0;for(var a=!1;;){if(g=l,l>=d)return m=1;var o=U(D,l);if(35===o&&0===l&&O(D,l)){if(l=M(D,l),n)continue;return m=6}switch(o){case 10:case 13:if(v|=1,n){l++;continue}return 13===o&&l+1=0&&K(b,t))return l+=3,v|=8,y=X()+Z(),m=ee();var E=Q();return E>=0&&K(E,t)?(l+=6,v|=1024,y=String.fromCharCode(E)+Z(),m=ee()):(S(e.Diagnostics.Invalid_character),l++,m=0);case 35:if(0!==l&&"!"===D[l+1])return S(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),l++,m=0;if(l++,K(o=D.charCodeAt(l),t)){for(l++;l=d)return m=1;var t=D.charCodeAt(l);if(60===t)return 47===D.charCodeAt(l+1)?(l+=2,m=30):(l++,m=29);if(123===t)return l++,m=18;for(var r=0,n=-1;l0&&n++,T(t)&&0===r?r=-1:E(t)||(r=l),l++}var i=-1===n?l:n;return y=D.substring(_,i),-1===r?12:11}function oe(){switch(_=l,D.charCodeAt(l)){case 34:case 39:return y=q(!0),m=10;default:return ne()}}function se(e,t){var r=l,n=_,i=g,a=m,o=y,s=v,c=e();return c&&!t||(l=r,_=n,g=i,m=a,y=o,v=s),c}function ce(e,t,r){D=e||"",d=void 0===r?D.length:t+r,ue(t||0)}function ue(t){e.Debug.assert(t>=0),l=t,_=t,g=t,m=0,y=void 0,v=0}};var U=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n=e.charCodeAt(t);if(n>=55296&&n<=56319&&r>t+1){var i=e.charCodeAt(t+1);if(i>=56320&&i<=57343)return 1024*(n-55296)+i-56320+65536}return n}};function V(e){return e>=65536?2:1}var q=String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(t){if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var r=Math.floor((t-65536)/1024)+55296,n=(t-65536)%1024+56320;return String.fromCharCode(r,n)};function W(e){return q(e)}e.utf16EncodeAsString=W}(u||(u={})),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!!X(t)&&e.every(t.elements,l)}function l(t){return!!e.isOmittedExpression(t)||u(t.name)}function d(t){for(var r=t.parent;e.isBindingElement(r.parent);)r=r.parent.parent;return r.parent}function _(t,r){e.isBindingElement(t)&&(t=d(t));var n=r(t);return 249===t.kind&&(t=t.parent),t&&250===t.kind&&(n|=r(t),t=t.parent),t&&232===t.kind&&(n|=r(t)),n}function p(e){return 0==(8&e.flags)}function f(e){var t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function g(e){return f(e.escapedText)}function m(t){var r=t.parent.parent;if(r){if(ae(r))return y(r);switch(r.kind){case 232:if(r.declarationList&&r.declarationList.declarations[0])return y(r.declarationList.declarations[0]);break;case 233:var n=r.expression;switch(216===n.kind&&62===n.operatorToken.kind&&(n=n.left),n.kind){case 201:return n.name;case 202:var i=n.argumentExpression;if(e.isIdentifier(i))return i}break;case 207:return y(r.expression);case 245:if(ae(r.statement)||te(r.statement))return y(r.statement)}}}function y(t){var r=x(t);return r&&e.isIdentifier(r)?r:void 0}function v(e){return e.name||m(e)}function h(e){return!!e.name}function D(t){switch(t.kind){case 78:return t;case 333:case 326:var r=t.name;if(157===r.kind)return r.right;break;case 203:case 216:var n=t;switch(e.getAssignmentDeclarationKind(n)){case 1:case 4:case 5:case 3:return e.getElementOrPropertyAccessArgumentExpressionOrName(n.left);case 7:case 8:case 9:return n.arguments[1];default:return}case 331:return v(t);case 325:return m(t);case 266:var i=t.expression;return e.isIdentifier(i)?i:void 0;case 202:var a=t;if(e.isBindableStaticElementAccessExpression(a))return a.argumentExpression}return t.name}function x(t){if(void 0!==t)return D(t)||(e.isFunctionExpression(t)||e.isClassExpression(t)?b(t):void 0)}function b(t){if(t.parent){if(e.isPropertyAssignment(t.parent)||e.isBindingElement(t.parent))return t.parent.name;if(e.isBinaryExpression(t.parent)&&t===t.parent.right){if(e.isIdentifier(t.parent.left))return t.parent.left;if(e.isAccessExpression(t.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(t.parent.left)}else if(e.isVariableDeclaration(t.parent)&&e.isIdentifier(t.parent.name))return t.parent.name}}function S(t,r){if(t.name){if(e.isIdentifier(t.name)){var n=t.name.escapedText;return F(t.parent,r).filter((function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===n}))}var i=t.parent.parameters.indexOf(t);e.Debug.assert(i>-1,"Parameters should always be in their parents' parameter list");var a=F(t.parent,r).filter(e.isJSDocParameterTag);if(i=157}function B(e){return 8<=e&&e<=14}function j(e){return 14<=e&&e<=17}function J(t){return e.isPropertyDeclaration(t)&&e.isPrivateIdentifier(t.name)}function K(e){switch(e){case 125:case 129:case 84:case 133:case 87:case 92:case 122:case 120:case 121:case 142:case 123:return!0}return!1}function z(t){return!!(92&e.modifierToFlag(t))}function U(e){return e&&q(e.kind)}function V(e){switch(e){case 251:case 165:case 166:case 167:case 168:case 208:case 209:return!0;default:return!1}}function q(e){switch(e){case 164:case 169:case 313:case 170:case 171:case 174:case 308:case 175:return!0;default:return V(e)}}function W(e){var t=e.kind;return 166===t||163===t||165===t||167===t||168===t||171===t||229===t}function H(e){return e&&(252===e.kind||221===e.kind)}function G(e){var t=e.kind;return 170===t||169===t||162===t||164===t||171===t}function Y(e){var t=e.kind;return 288===t||289===t||290===t||165===t||167===t||168===t}function X(e){if(e){var t=e.kind;return 197===t||196===t}return!1}function Q(e){switch(e.kind){case 196:case 200:return!0}return!1}function $(e){switch(e.kind){case 197:case 199:return!0}return!1}function Z(e){switch(e){case 201:case 202:case 204:case 203:case 273:case 274:case 277:case 205:case 199:case 207:case 200:case 221:case 208:case 78:case 13:case 8:case 9:case 10:case 14:case 218:case 94:case 103:case 107:case 109:case 105:case 225:case 226:case 99:return!0;default:return!1}}function ee(e){switch(e){case 214:case 215:case 210:case 211:case 212:case 213:case 206:return!0;default:return Z(e)}}function te(e){return function(e){switch(e){case 217:case 219:case 209:case 216:case 220:case 224:case 222:case 337:case 336:return!0;default:return ee(e)}}(M(e).kind)}function re(t){return e.isExportAssignment(t)||e.isExportDeclaration(t)}function ne(e){return 251===e||271===e||252===e||253===e||254===e||255===e||256===e||261===e||260===e||267===e||266===e||259===e}function ie(e){return 241===e||240===e||248===e||235===e||233===e||231===e||238===e||239===e||237===e||234===e||245===e||242===e||244===e||246===e||247===e||232===e||236===e||243===e||335===e||339===e||338===e}function ae(t){return 159===t.kind?t.parent&&330!==t.parent.kind||e.isInJSFile(t):209===(r=t.kind)||198===r||252===r||221===r||166===r||255===r||291===r||270===r||251===r||208===r||167===r||262===r||260===r||265===r||253===r||280===r||165===r||164===r||256===r||259===r||263===r||269===r||160===r||288===r||163===r||162===r||168===r||289===r||254===r||159===r||249===r||331===r||324===r||333===r;var r}function oe(e){return e.kind>=314&&e.kind<=333}e.isExternalModuleNameRelative=function(t){return e.pathIsRelative(t)||e.isRootedDiskPath(t)},e.sortAndDeduplicateDiagnostics=function(t){return e.sortAndDeduplicate(t,e.compareDiagnostics)},e.getDefaultLibFileName=function(e){switch(e.target){case 99:return"lib.esnext.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}},e.textSpanEnd=t,e.textSpanIsEmpty=r,e.textSpanContainsPosition=function(e,r){return r>=e.start&&r=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=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e},e.unescapeLeadingUnderscores=f,e.idText=g,e.symbolName=function(e){return e.valueDeclaration&&J(e.valueDeclaration)?g(e.valueDeclaration.name):f(e.escapedName)},e.nodeHasName=function t(r,n){return!(!h(r)||!e.isIdentifier(r.name)||g(r.name)!==g(n))||!(!e.isVariableStatement(r)||!e.some(r.declarationList.declarations,(function(e){return t(e,n)})))},e.getNameOfJSDocTypedef=v,e.isNamedDeclaration=h,e.getNonAssignedNameOfDeclaration=D,e.getNameOfDeclaration=x,e.getAssignedName=b,e.getJSDocParameterTags=E,e.getJSDocParameterTagsNoCache=function(e){return S(e,!0)},e.getJSDocTypeParameterTags=function(e){return C(e,!1)},e.getJSDocTypeParameterTagsNoCache=function(e){return C(e,!0)},e.hasJSDocParameterTags=function(t){return!!P(t,e.isJSDocParameterTag)},e.getJSDocAugmentsTag=function(t){return P(t,e.isJSDocAugmentsTag)},e.getJSDocImplementsTags=function(t){return w(t,e.isJSDocImplementsTag)},e.getJSDocClassTag=function(t){return P(t,e.isJSDocClassTag)},e.getJSDocPublicTag=function(t){return P(t,e.isJSDocPublicTag)},e.getJSDocPublicTagNoCache=function(t){return P(t,e.isJSDocPublicTag,!0)},e.getJSDocPrivateTag=function(t){return P(t,e.isJSDocPrivateTag)},e.getJSDocPrivateTagNoCache=function(t){return P(t,e.isJSDocPrivateTag,!0)},e.getJSDocProtectedTag=function(t){return P(t,e.isJSDocProtectedTag)},e.getJSDocProtectedTagNoCache=function(t){return P(t,e.isJSDocProtectedTag,!0)},e.getJSDocReadonlyTag=function(t){return P(t,e.isJSDocReadonlyTag)},e.getJSDocReadonlyTagNoCache=function(t){return P(t,e.isJSDocReadonlyTag,!0)},e.getJSDocDeprecatedTag=function(t){return P(t,e.isJSDocDeprecatedTag)},e.getJSDocDeprecatedTagNoCache=function(t){return P(t,e.isJSDocDeprecatedTag,!0)},e.getJSDocEnumTag=function(t){return P(t,e.isJSDocEnumTag)},e.getJSDocThisTag=function(t){return P(t,e.isJSDocThisTag)},e.getJSDocReturnTag=T,e.getJSDocTemplateTag=function(t){return P(t,e.isJSDocTemplateTag)},e.getJSDocTypeTag=k,e.getJSDocType=A,e.getJSDocReturnType=function(t){var r=T(t);if(r&&r.typeExpression)return r.typeExpression.type;var n=k(t);if(n&&n.typeExpression){var i=n.typeExpression.type;if(e.isTypeLiteralNode(i)){var a=e.find(i.members,e.isCallSignatureDeclaration);return a&&a.type}if(e.isFunctionTypeNode(i)||e.isJSDocFunctionType(i))return i.type}},e.getJSDocTags=N,e.getJSDocTagsNoCache=function(e){return F(e,!0)},e.getAllJSDocTags=w,e.getAllJSDocTagsOfKind=function(e,t){return N(e).filter((function(e){return e.kind===t}))},e.getEffectiveTypeParameterDeclarations=function(t){if(e.isJSDocSignature(t))return e.emptyArray;if(e.isJSDocTypeAlias(t))return e.Debug.assert(311===t.parent.kind),e.flatMap(t.parent.tags,(function(t){return e.isJSDocTemplateTag(t)?t.typeParameters:void 0}));if(t.typeParameters)return t.typeParameters;if(e.isInJSFile(t)){var r=e.getJSDocTypeParameterDeclarations(t);if(r.length)return r;var n=A(t);if(n&&e.isFunctionTypeNode(n)&&n.typeParameters)return n.typeParameters}return e.emptyArray},e.getEffectiveConstraintOfTypeParameter=function(t){return t.constraint?t.constraint:e.isJSDocTemplateTag(t.parent)&&t===t.parent.typeParameters[0]?t.parent.constraint:void 0},e.isIdentifierOrPrivateIdentifier=function(e){return 78===e.kind||79===e.kind},e.isGetOrSetAccessorDeclaration=function(e){return 168===e.kind||167===e.kind},e.isPropertyAccessChain=function(t){return e.isPropertyAccessExpression(t)&&!!(32&t.flags)},e.isElementAccessChain=function(t){return e.isElementAccessExpression(t)&&!!(32&t.flags)},e.isCallChain=function(t){return e.isCallExpression(t)&&!!(32&t.flags)},e.isOptionalChain=I,e.isOptionalChainRoot=O,e.isExpressionOfOptionalChainRoot=function(e){return O(e.parent)&&e.parent.expression===e},e.isOutermostOptionalChain=function(e){return!I(e.parent)||O(e.parent)||e!==e.parent.expression},e.isNullishCoalesce=function(e){return 216===e.kind&&60===e.operatorToken.kind},e.isConstTypeReference=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"const"===t.typeName.escapedText&&!t.typeArguments},e.skipPartiallyEmittedExpressions=M,e.isNonNullChain=function(t){return e.isNonNullExpression(t)&&!!(32&t.flags)},e.isBreakOrContinueStatement=function(e){return 241===e.kind||240===e.kind},e.isNamedExportBindings=function(e){return 269===e.kind||268===e.kind},e.isUnparsedTextLike=L,e.isUnparsedNode=function(e){return L(e)||292===e.kind||296===e.kind},e.isJSDocPropertyLikeTag=function(e){return 333===e.kind||326===e.kind},e.isNode=function(e){return R(e.kind)},e.isNodeKind=R,e.isToken=function(e){return e.kind>=0&&e.kind<=156},e.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},e.isLiteralKind=B,e.isLiteralExpression=function(e){return B(e.kind)},e.isTemplateLiteralKind=j,e.isTemplateLiteralToken=function(e){return j(e.kind)},e.isTemplateMiddleOrTemplateTail=function(e){var t=e.kind;return 16===t||17===t},e.isImportOrExportSpecifier=function(t){return e.isImportSpecifier(t)||e.isExportSpecifier(t)},e.isTypeOnlyImportOrExportDeclaration=function(e){switch(e.kind){case 265:case 270:return e.parent.parent.isTypeOnly;case 263:return e.parent.isTypeOnly;case 262:return e.isTypeOnly;default:return!1}},e.isStringTextContainingNode=function(e){return 10===e.kind||j(e.kind)},e.isGeneratedIdentifier=function(t){return e.isIdentifier(t)&&(7&t.autoGenerateFlags)>0},e.isPrivateIdentifierPropertyDeclaration=J,e.isPrivateIdentifierPropertyAccessExpression=function(t){return e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name)},e.isModifierKind=K,e.isParameterPropertyModifier=z,e.isClassMemberModifier=function(e){return z(e)||123===e},e.isModifier=function(e){return K(e.kind)},e.isEntityName=function(e){var t=e.kind;return 157===t||78===t},e.isPropertyName=function(e){var t=e.kind;return 78===t||79===t||10===t||8===t||158===t},e.isBindingName=function(e){var t=e.kind;return 78===t||196===t||197===t},e.isFunctionLike=U,e.isFunctionLikeDeclaration=function(e){return e&&V(e.kind)},e.isFunctionLikeKind=q,e.isFunctionOrModuleBlock=function(t){return e.isSourceFile(t)||e.isModuleBlock(t)||e.isBlock(t)&&U(t.parent)},e.isClassElement=W,e.isClassLike=H,e.isAccessor=function(e){return e&&(167===e.kind||168===e.kind)},e.isMethodOrAccessor=function(e){switch(e.kind){case 165:case 167:case 168:return!0;default:return!1}},e.isTypeElement=G,e.isClassOrTypeElement=function(e){return G(e)||W(e)},e.isObjectLiteralElementLike=Y,e.isTypeNode=function(t){return e.isTypeNodeKind(t.kind)},e.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 174:case 175:return!0}return!1},e.isBindingPattern=X,e.isAssignmentPattern=function(e){var t=e.kind;return 199===t||200===t},e.isArrayBindingElement=function(e){var t=e.kind;return 198===t||222===t},e.isDeclarationBindingElement=function(e){switch(e.kind){case 249:case 160:case 198:return!0}return!1},e.isBindingOrAssignmentPattern=function(e){return Q(e)||$(e)},e.isObjectBindingOrAssignmentPattern=Q,e.isArrayBindingOrAssignmentPattern=$,e.isPropertyAccessOrQualifiedNameOrImportTypeNode=function(e){var t=e.kind;return 201===t||157===t||195===t},e.isPropertyAccessOrQualifiedName=function(e){var t=e.kind;return 201===t||157===t},e.isCallLikeExpression=function(e){switch(e.kind){case 275:case 274:case 203:case 204:case 205:case 161:return!0;default:return!1}},e.isCallOrNewExpression=function(e){return 203===e.kind||204===e.kind},e.isTemplateLiteral=function(e){var t=e.kind;return 218===t||14===t},e.isLeftHandSideExpression=function(e){return Z(M(e).kind)},e.isUnaryExpression=function(e){return ee(M(e).kind)},e.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 215:return!0;case 214:return 45===e.operator||46===e.operator;default:return!1}},e.isExpression=te,e.isAssertionExpression=function(e){var t=e.kind;return 206===t||224===t},e.isNotEmittedOrPartiallyEmittedNode=function(t){return e.isNotEmittedStatement(t)||e.isPartiallyEmittedExpression(t)},e.isIterationStatement=function e(t,r){switch(t.kind){case 237:case 238:case 239:case 235:case 236:return!0;case 245:return r&&e(t.statement,r)}return!1},e.isScopeMarker=re,e.hasScopeMarker=function(t){return e.some(t,re)},e.needsScopeMarker=function(t){return!(e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1)||e.isAmbientModule(t))},e.isExternalModuleIndicator=function(t){return e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1)},e.isForInOrOfStatement=function(e){return 238===e.kind||239===e.kind},e.isConciseBody=function(t){return e.isBlock(t)||te(t)},e.isFunctionBody=function(t){return e.isBlock(t)},e.isForInitializer=function(t){return e.isVariableDeclarationList(t)||te(t)},e.isModuleBody=function(e){var t=e.kind;return 257===t||256===t||78===t},e.isNamespaceBody=function(e){var t=e.kind;return 257===t||256===t},e.isJSDocNamespaceBody=function(e){var t=e.kind;return 78===t||256===t},e.isNamedImportBindings=function(e){var t=e.kind;return 264===t||263===t},e.isModuleOrEnumDeclaration=function(e){return 256===e.kind||255===e.kind},e.isDeclaration=ae,e.isDeclarationStatement=function(e){return ne(e.kind)},e.isStatementButNotDeclaration=function(e){return ie(e.kind)},e.isStatement=function(t){var r=t.kind;return ie(r)||ne(r)||function(t){if(230!==t.kind)return!1;if(void 0!==t.parent&&(247===t.parent.kind||287===t.parent.kind))return!1;return!e.isFunctionBlock(t)}(t)},e.isStatementOrBlock=function(e){var t=e.kind;return ie(t)||ne(t)||230===t},e.isModuleReference=function(e){var t=e.kind;return 272===t||157===t||78===t},e.isJsxTagNameExpression=function(e){var t=e.kind;return 107===t||78===t||201===t},e.isJsxChild=function(e){var t=e.kind;return 273===t||283===t||274===t||11===t||277===t},e.isJsxAttributeLike=function(e){var t=e.kind;return 280===t||282===t},e.isStringLiteralOrJsxExpression=function(e){var t=e.kind;return 10===t||283===t},e.isJsxOpeningLikeElement=function(e){var t=e.kind;return 275===t||274===t},e.isCaseOrDefaultClause=function(e){var t=e.kind;return 284===t||285===t},e.isJSDocNode=function(e){return e.kind>=301&&e.kind<=333},e.isJSDocCommentContainingNode=function(t){return 311===t.kind||310===t.kind||oe(t)||e.isJSDocTypeLiteral(t)||e.isJSDocSignature(t)},e.isJSDocTag=oe,e.isSetAccessor=function(e){return 168===e.kind},e.isGetAccessor=function(e){return 167===e.kind},e.hasJSDocNodes=function(e){var t=e.jsDoc;return!!t&&t.length>0},e.hasType=function(e){return!!e.type},e.hasInitializer=function(e){return!!e.initializer},e.hasOnlyExpressionInitializer=function(e){switch(e.kind){case 249:case 160:case 198:case 162:case 163:case 288:case 291:return!0;default:return!1}},e.isObjectLiteralElement=function(e){return 280===e.kind||282===e.kind||Y(e)},e.isTypeReferenceType=function(e){return 173===e.kind||223===e.kind};var se=1073741823;e.guessIndentation=function(t){for(var r=se,n=0,i=t;n=0);var n=e.getLineStarts(r),i=t,a=r.text;if(i+1===n.length)return a.length-1;var o=n[i],s=n[i+1]-1;for(e.Debug.assert(e.isLineBreak(a.charCodeAt(s)));o<=s&&e.isLineBreak(a.charCodeAt(s));)s--;return s}function d(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function _(e){return!d(e)}function p(e,t,n){if(void 0===t||0===t.length)return e;for(var i=0;i0?y(t._children[0],r,n):e.skipTrivia((r||u(t)).text,t.pos)}function v(e,t,r){return void 0===r&&(r=!1),h(e.text,t,r)}function h(t,r,n){if(void 0===n&&(n=!1),d(r))return"";var i=t.substring(n?r.pos:e.skipTrivia(t,r.pos),r.end);return function(t){return!!e.findAncestor(t,e.isJSDocTypeExpression)}(r)&&(i=i.replace(/(^|\r?\n|\r)\s*\*\s*/g,"$1")),i}function D(e,t){return void 0===t&&(t=!1),v(u(e),e,t)}function x(e){return e.pos}function b(e){var t=e.emitNode;return t&&t.flags||0}function S(e){var t=mt(e);return 249===t.kind&&287===t.parent.kind}function E(t){return e.isModuleDeclaration(t)&&(10===t.name.kind||T(t))}function C(t){return e.isModuleDeclaration(t)||e.isIdentifier(t)}function T(e){return!!(1024&e.flags)}function k(e){return E(e)&&A(e)}function A(t){switch(t.parent.kind){case 297:return e.isExternalModule(t.parent);case 257:return E(t.parent.parent)&&e.isSourceFile(t.parent.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function F(t,r){switch(t.kind){case 297:case 258:case 287:case 256:case 237:case 238:case 239:case 166:case 165:case 167:case 168:case 251:case 208:case 209:return!0;case 230:return!e.isFunctionLike(r)}return!1}function N(t){switch(t.kind){case 169:case 170:case 164:case 171:case 174:case 175:case 308:case 252:case 221:case 253:case 254:case 330:case 251:case 165:case 166:case 167:case 168:case 208:case 209:return!0;default:return e.assertType(t),!1}}function P(e){switch(e.kind){case 261:case 260:return!0;default:return!1}}function w(e){return e&&0!==s(e)?D(e):"(Missing)"}function I(t){switch(t.kind){case 78:case 79:return t.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(t.text);case 158:return ot(t.expression)?e.escapeLeadingUnderscores(t.expression.text):e.Debug.fail("Text of property name cannot be read from non-literal-valued ComputedPropertyNames");default:return e.Debug.assertNever(t)}}function O(t){switch(t.kind){case 107:return"this";case 79:case 78:return 0===s(t)?e.idText(t):D(t);case 157:return O(t.left)+"."+O(t.right);case 201:return e.isIdentifier(t.name)||e.isPrivateIdentifier(t.name)?O(t.expression)+"."+O(t.name):e.Debug.assertNever(t.name);default:return e.Debug.assertNever(t)}}function M(e,t,r,n,i,a,o){var s=R(e,t);return nn(e,s.start,s.length,r,n,i,a,o)}function L(t,r){var n=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,r);n.scan();var i=n.getTokenPos();return e.createTextSpanFromBounds(i,n.getTextPos())}function R(t,r){var n=r;switch(r.kind){case 297:var i=e.skipTrivia(t.text,0,!1);return i===t.text.length?e.createTextSpan(0,0):L(t,i);case 249:case 198:case 252:case 221:case 253:case 256:case 255:case 291:case 251:case 208:case 165:case 167:case 168:case 254:case 163:case 162:n=r.name;break;case 209:return function(t,r){var n=e.skipTrivia(t.text,r.pos);if(r.body&&230===r.body.kind){var i=e.getLineAndCharacterOfPosition(t,r.body.pos).line;if(i0?r.statements[0].pos:r.end;return e.createTextSpanFromBounds(a,o)}if(void 0===n)return L(t,r.pos);e.Debug.assert(!e.isJSDoc(n));var s=d(n),c=s||e.isJsxText(r)?n.pos:e.skipTrivia(t.text,n.pos);return s?(e.Debug.assert(c===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(c>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(c,n.end)}function B(e){return 6===e.scriptKind}function j(t){return!!(2&e.getCombinedNodeFlags(t))}function J(e){return 203===e.kind&&99===e.expression.kind}function K(t){return e.isImportTypeNode(t)&&e.isLiteralTypeNode(t.argument)&&e.isStringLiteral(t.argument.literal)}function z(e){return 233===e.kind&&10===e.expression.kind}function U(e){return!!(1048576&b(e))}function V(t){return e.isIdentifier(t.name)&&!t.initializer}e.changesAffectModuleResolution=function(e,t){return e.configFilePath!==t.configFilePath||o(e,t)},e.optionsHaveModuleResolutionChanges=o,e.forEachAncestor=function(t,r){for(;;){var n=r(t);if("quit"===n)return;if(void 0!==n)return n;if(e.isSourceFile(t))return;t=t.parent}},e.forEachEntry=function(e,t){for(var r=e.entries(),n=r.next();!n.done;n=r.next()){var i=n.value,a=i[0],o=t(i[1],a);if(o)return o}},e.forEachKey=function(e,t){for(var r=e.keys(),n=r.next();!n.done;n=r.next()){var i=t(n.value);if(i)return i}},e.copyEntries=function(e,t){e.forEach((function(e,r){t.set(r,e)}))},e.usingSingleLineStringWriter=function(e){var t=a.getText();try{return e(a),a.getText()}finally{a.clear(),a.writeKeyword(t)}},e.getFullWidth=s,e.getResolvedModule=function(e,t){return e&&e.resolvedModules&&e.resolvedModules.get(t)},e.setResolvedModule=function(t,r,n){t.resolvedModules||(t.resolvedModules=new e.Map),t.resolvedModules.set(r,n)},e.setResolvedTypeReferenceDirective=function(t,r,n){t.resolvedTypeReferenceDirectiveNames||(t.resolvedTypeReferenceDirectiveNames=new e.Map),t.resolvedTypeReferenceDirectiveNames.set(r,n)},e.projectReferenceIsEqualTo=function(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular},e.moduleResolutionIsEqualTo=function(e,t){return e.isExternalLibraryImport===t.isExternalLibraryImport&&e.extension===t.extension&&e.resolvedFileName===t.resolvedFileName&&e.originalPath===t.originalPath&&(r=e.packageId,n=t.packageId,r===n||!!r&&!!n&&r.name===n.name&&r.subModuleName===n.subModuleName&&r.version===n.version);var r,n},e.packageIdToString=function(e){var t=e.name,r=e.subModuleName;return(r?t+"/"+r:t)+"@"+e.version},e.typeDirectiveIsEqualTo=function(e,t){return e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary},e.hasChangesInResolutions=function(t,r,n,i){e.Debug.assert(t.length===r.length);for(var a=0;a=0),e.getLineStarts(r)[t]},e.nodePosToString=function(t){var r=u(t),n=e.getLineAndCharacterOfPosition(r,t.pos);return r.fileName+"("+(n.line+1)+","+(n.character+1)+")"},e.getEndLinePosition=l,e.isFileLevelUniqueName=function(e,t,r){return!(r&&r(t)||e.identifiers.has(t))},e.nodeIsMissing=d,e.nodeIsPresent=_,e.insertStatementsAfterStandardPrologue=function(e,t){return p(e,t,z)},e.insertStatementsAfterCustomPrologue=function(e,t){return p(e,t,g)},e.insertStatementAfterStandardPrologue=function(e,t){return f(e,t,z)},e.insertStatementAfterCustomPrologue=function(e,t){return f(e,t,g)},e.isRecognizedTripleSlashComment=function(t,r,n){if(47===t.charCodeAt(r+1)&&r+2=e.ModuleKind.ES2015||!r.noImplicitUseStrict)))},e.isBlockScope=F,e.isDeclarationWithTypeParameters=function(t){switch(t.kind){case 324:case 331:case 313:return!0;default:return e.assertType(t),N(t)}},e.isDeclarationWithTypeParameterChildren=N,e.isAnyImportSyntax=P,e.isLateVisibilityPaintedStatement=function(e){switch(e.kind){case 261:case 260:case 232:case 252:case 251:case 256:case 254:case 253:case 255:return!0;default:return!1}},e.isAnyImportOrReExport=function(t){return P(t)||e.isExportDeclaration(t)},e.getEnclosingBlockScopeContainer=function(t){return e.findAncestor(t.parent,(function(e){return F(e,e.parent)}))},e.declarationNameToString=w,e.getNameFromIndexInfo=function(e){return e.declaration?w(e.declaration.parameters[0].name):void 0},e.isComputedNonLiteralName=function(e){return 158===e.kind&&!ot(e.expression)},e.getTextOfPropertyName=I,e.entityNameToString=O,e.createDiagnosticForNode=function(e,t,r,n,i,a){return M(u(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 nn(t,c,r.end-c,n,i,a,o,s)},e.createDiagnosticForNodeInSourceFile=M,e.createDiagnosticForNodeFromMessageChain=function(e,t,r){var n=u(e),i=R(n,e);return{file:n,start:i.start,length:i.length,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}},e.createDiagnosticForFileFromMessageChain=function(e,t,r){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}},e.createDiagnosticForRange=function(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}},e.getSpanOfTokenAtPosition=L,e.getErrorSpanForNode=R,e.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},e.isJsonSourceFile=B,e.isEnumConst=function(t){return!!(2048&e.getCombinedModifierFlags(t))},e.isDeclarationReadonly=function(t){return!(!(64&e.getCombinedModifierFlags(t))||e.isParameterPropertyDeclaration(t,t.parent))},e.isVarConst=j,e.isLet=function(t){return!!(1&e.getCombinedNodeFlags(t))},e.isSuperCall=function(e){return 203===e.kind&&105===e.expression.kind},e.isImportCall=J,e.isImportMeta=function(t){return e.isMetaProperty(t)&&99===t.keywordToken&&"meta"===t.name.escapedText},e.isLiteralImportTypeNode=K,e.isPrologueDirective=z,e.isCustomPrologue=U,e.isHoistedFunction=function(t){return U(t)&&e.isFunctionDeclaration(t)},e.isHoistedVariableStatement=function(t){return U(t)&&e.isVariableStatement(t)&&e.every(t.declarationList.declarations,V)},e.getLeadingCommentRangesOfNode=function(t,r){return 11!==t.kind?e.getLeadingCommentRanges(r.text,t.pos):void 0},e.getJSDocCommentRanges=function(t,r){var n=160===t.kind||159===t.kind||208===t.kind||209===t.kind||207===t.kind?e.concatenate(e.getTrailingCommentRanges(r,t.pos),e.getLeadingCommentRanges(r,t.pos)):e.getLeadingCommentRanges(r,t.pos);return e.filter(n,(function(e){return 42===r.charCodeAt(e.pos+1)&&42===r.charCodeAt(e.pos+2)&&47!==r.charCodeAt(e.pos+3)}))},e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*/;var q=/^(\/\/\/\s*/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/;var W=/^(\/\/\/\s*/;function H(t){if(172<=t.kind&&t.kind<=195)return!0;switch(t.kind){case 128:case 152:case 144:case 155:case 147:case 131:case 148:case 145:case 150:case 141:return!0;case 113:return 212!==t.parent.kind;case 223:return!Er(t);case 159:return 190===t.parent.kind||185===t.parent.kind;case 78:(157===t.parent.kind&&t.parent.right===t||201===t.parent.kind&&t.parent.name===t)&&(t=t.parent),e.Debug.assert(78===t.kind||157===t.kind||201===t.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 157:case 201:case 107:var r=t.parent;if(176===r.kind)return!1;if(195===r.kind)return!r.isTypeOf;if(172<=r.kind&&r.kind<=195)return!0;switch(r.kind){case 223:return!Er(r);case 159:case 330:return t===r.constraint;case 163:case 162:case 160:case 249:return t===r.type;case 251:case 208:case 209:case 166:case 165:case 164:case 167:case 168:return t===r.type;case 169:case 170:case 171:case 206:return t===r.type;case 203:case 204:return e.contains(r.typeArguments,t);case 205:return!1}}return!1}function G(e){if(e)switch(e.kind){case 198:case 291:case 160:case 288:case 163:case 162:case 289:case 249:return!0}return!1}function Y(e){return 250===e.parent.kind&&232===e.parent.parent.kind}function X(e,t,r){return e.properties.filter((function(e){if(288===e.kind){var n=I(e.name);return t===n||!!r&&r===n}return!1}))}function Q(t){if(t&&t.statements.length){var r=t.statements[0].expression;return e.tryCast(r,e.isObjectLiteralExpression)}}function $(t,r){var n=Q(t);return n?X(n,r):e.emptyArray}function Z(t,r){for(e.Debug.assert(297!==t.kind);;){if(!(t=t.parent))return e.Debug.fail();switch(t.kind){case 158:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 161:160===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 209:if(!r)continue;case 251:case 208:case 256:case 163:case 162:case 165:case 164:case 166:case 167:case 168:case 169:case 170:case 171:case 255:case 297:return t}}}function ee(e){var t=e.kind;return(201===t||202===t)&&105===e.expression.kind}function te(t,r,n){if(e.isNamedDeclaration(t)&&e.isPrivateIdentifier(t.name))return!1;switch(t.kind){case 252:return!0;case 163:return 252===r.kind;case 167:case 168:case 165:return void 0!==t.body&&252===r.kind;case 160:return void 0!==r.body&&(166===r.kind||165===r.kind||168===r.kind)&&252===n.kind}return!1}function re(e,t,r){return void 0!==e.decorators&&te(e,t,r)}function ne(e,t,r){return re(e,t,r)||ie(e,t)}function ie(t,r){switch(t.kind){case 252:return e.some(t.members,(function(e){return ne(e,t,r)}));case 165:case 168:return e.some(t.parameters,(function(e){return re(e,t,r)}));default:return!1}}function ae(e){var t=e.parent;return(275===t.kind||274===t.kind||276===t.kind)&&t.tagName===e}function oe(e){switch(e.kind){case 105:case 103:case 109:case 94:case 13:case 199:case 200:case 201:case 202:case 203:case 204:case 205:case 224:case 206:case 225:case 207:case 208:case 221:case 209:case 212:case 210:case 211:case 214:case 215:case 216:case 217:case 220:case 218:case 222:case 273:case 274:case 277:case 219:case 213:case 226:return!0;case 157:for(;157===e.parent.kind;)e=e.parent;return 176===e.parent.kind||ae(e);case 78:if(176===e.parent.kind||ae(e))return!0;case 8:case 9:case 10:case 14:case 107:return se(e);default:return!1}}function se(e){var t=e.parent;switch(t.kind){case 249:case 160:case 163:case 162:case 291:case 288:case 198:return t.initializer===e;case 233:case 234:case 235:case 236:case 242:case 243:case 244:case 284:case 246:return t.expression===e;case 237:var r=t;return r.initializer===e&&250!==r.initializer.kind||r.condition===e||r.incrementor===e;case 238:case 239:var n=t;return n.initializer===e&&250!==n.initializer.kind||n.expression===e;case 206:case 224:case 228:case 158:return e===t.expression;case 161:case 283:case 282:case 290:return!0;case 223:return t.expression===e&&Er(t);case 289:return t.objectAssignmentInitializer===e;default:return oe(t)}}function ce(e){for(;157===e.kind||78===e.kind;)e=e.parent;return 176===e.kind}function ue(e){return 260===e.kind&&272===e.moduleReference.kind}function le(e){return de(e)}function de(e){return!!e&&!!(131072&e.flags)}function _e(t,r){if(203!==t.kind)return!1;var n=t,i=n.expression,a=n.arguments;if(78!==i.kind||"require"!==i.escapedText)return!1;if(1!==a.length)return!1;var o=a[0];return!r||e.isStringLiteralLike(o)}function pe(t,r){return 198===t.kind&&(t=t.parent.parent),e.isVariableDeclaration(t)&&!!t.initializer&&_e(qr(t.initializer),r)}function fe(t){return e.isBinaryExpression(t)||Vr(t)||e.isIdentifier(t)||e.isCallExpression(t)}function ge(t){return de(t)&&t.initializer&&e.isBinaryExpression(t.initializer)&&(56===t.initializer.operatorToken.kind||60===t.initializer.operatorToken.kind)&&t.name&&Cr(t.name)&&ye(t.name,t.initializer.left)?t.initializer.right:t.initializer}function me(t,r){if(e.isCallExpression(t)){var n=Ge(t.expression);return 208===n.kind||209===n.kind?t:void 0}return 208===t.kind||221===t.kind||209===t.kind||e.isObjectLiteralExpression(t)&&(0===t.properties.length||r)?t:void 0}function ye(t,r){if(_t(t)&&_t(r))return pt(t)===pt(r);if(e.isIdentifier(t)&&Ee(r)&&(107===r.expression.kind||e.isIdentifier(r.expression)&&("window"===r.expression.escapedText||"self"===r.expression.escapedText||"global"===r.expression.escapedText))){var n=Fe(r);return e.isPrivateIdentifier(n)&&e.Debug.fail("Unexpected PrivateIdentifier in name expression with literal-like access."),ye(t,n)}return!(!Ee(t)||!Ee(r))&&(Pe(t)===Pe(r)&&ye(t.expression,r.expression))}function ve(e){for(;Sr(e,!0);)e=e.right;return e}function he(t){return e.isIdentifier(t)&&"exports"===t.escapedText}function De(t){return e.isIdentifier(t)&&"module"===t.escapedText}function xe(t){return(e.isPropertyAccessExpression(t)||Ce(t))&&De(t.expression)&&"exports"===Pe(t)}function be(t){var r=function(t){if(e.isCallExpression(t)){if(!Se(t))return 0;var r=t.arguments[0];return he(r)||xe(r)?8:Te(r)&&"prototype"===Pe(r)?9:7}if(62!==t.operatorToken.kind||!Vr(t.left)||function(t){return e.isVoidExpression(t)&&e.isNumericLiteral(t.expression)&&"0"===t.expression.text}(ve(t)))return 0;if(Ae(t.left.expression,!0)&&"prototype"===Pe(t.left)&&e.isObjectLiteralExpression(Ie(t)))return 6;return we(t.left)}(t);return 5===r||de(t)?r:0}function Se(t){return 3===e.length(t.arguments)&&e.isPropertyAccessExpression(t.expression)&&e.isIdentifier(t.expression.expression)&&"Object"===e.idText(t.expression.expression)&&"defineProperty"===e.idText(t.expression.name)&&ot(t.arguments[1])&&Ae(t.arguments[0],!0)}function Ee(t){return e.isPropertyAccessExpression(t)||Ce(t)}function Ce(t){return e.isElementAccessExpression(t)&&(ot(t.argumentExpression)||lt(t.argumentExpression))}function Te(t,r){return e.isPropertyAccessExpression(t)&&(!r&&107===t.expression.kind||e.isIdentifier(t.name)&&Ae(t.expression,!0))||ke(t,r)}function ke(e,t){return Ce(e)&&(!t&&107===e.expression.kind||Cr(e.expression)||Te(e.expression,!0))}function Ae(e,t){return Cr(e)||Te(e,t)}function Fe(t){return e.isPropertyAccessExpression(t)?t.name:t.argumentExpression}function Ne(t){if(e.isPropertyAccessExpression(t))return t.name;var r=Ge(t.argumentExpression);return e.isNumericLiteral(r)||e.isStringLiteralLike(r)?r:t}function Pe(t){var r=Ne(t);if(r){if(e.isIdentifier(r))return r.escapedText;if(e.isStringLiteralLike(r)||e.isNumericLiteral(r))return e.escapeLeadingUnderscores(r.text)}if(e.isElementAccessExpression(t)&<(t.argumentExpression))return ft(e.idText(t.argumentExpression.name))}function we(t){if(107===t.expression.kind)return 4;if(xe(t))return 2;if(Ae(t.expression,!0)){if(kr(t.expression))return 3;for(var r=t;!e.isIdentifier(r.expression);)r=r.expression;var n=r.expression;if(("exports"===n.escapedText||"module"===n.escapedText&&"exports"===Pe(r))&&Te(t))return 1;if(Ae(t,!0)||e.isElementAccessExpression(t)&&ut(t))return 5}return 0}function Ie(t){for(;e.isBinaryExpression(t.right);)t=t.right;return t.right}function Oe(t){switch(t.parent.kind){case 261:case 267:return t.parent;case 272:return t.parent.parent;case 203:return J(t.parent)||_e(t.parent,!1)?t.parent:void 0;case 191:return e.Debug.assert(e.isStringLiteral(t)),e.tryCast(t.parent.parent,e.isImportTypeNode);default:return}}function Me(e){return 331===e.kind||324===e.kind||325===e.kind}function Le(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&0!==be(t.expression)&&e.isBinaryExpression(t.expression.right)&&(56===t.expression.right.operatorToken.kind||60===t.expression.right.operatorToken.kind)?t.expression.right.right:void 0}function Re(e){switch(e.kind){case 232:var t=Be(e);return t&&t.initializer;case 163:case 288:return e.initializer}}function Be(t){return e.isVariableStatement(t)?e.firstOrUndefined(t.declarationList.declarations):void 0}function je(t){return e.isModuleDeclaration(t)&&t.body&&256===t.body.kind?t.body:void 0}function Je(t){var r=t.parent;return 288===r.kind||266===r.kind||163===r.kind||233===r.kind&&201===t.kind||je(r)||e.isBinaryExpression(t)&&62===t.operatorToken.kind?r:r.parent&&(Be(r.parent)===t||e.isBinaryExpression(r)&&62===r.operatorToken.kind)?r.parent:r.parent&&r.parent.parent&&(Be(r.parent.parent)||Re(r.parent.parent)===t||Le(r.parent.parent))?r.parent.parent:void 0}function Ke(t){var r=ze(t);return r&&e.isFunctionLike(r)?r:void 0}function ze(t){var r=Ue(t);return Le(r)||function(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&62===t.expression.operatorToken.kind?ve(t.expression):void 0}(r)||Re(r)||Be(r)||je(r)||r}function Ue(t){return e.Debug.checkDefined(e.findAncestor(t.parent,e.isJSDoc)).parent}function Ve(t){var r=e.isJSDocParameterTag(t)?t.typeExpression&&t.typeExpression.type:t.type;return void 0!==t.dotDotDotToken||!!r&&309===r.kind}function qe(e){for(var t=e.parent;;){switch(t.kind){case 216:var r=t.operatorToken.kind;return Dr(r)&&t.left===e?62===r||hr(r)?1:2:0;case 214:case 215:var n=t.operator;return 45===n||46===n?2:0;case 238:case 239:return t.initializer===e?1:0;case 207:case 199:case 220:case 225:e=t;break;case 289:if(t.name!==e)return 0;e=t.parent;break;case 288:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function We(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function He(e){return We(e,207)}function Ge(t){return e.skipOuterExpressions(t,1)}function Ye(t){return Cr(t)||e.isClassExpression(t)}function Xe(e){return Ye(Qe(e))}function Qe(t){return e.isExportAssignment(t)?t.expression:t.right}function $e(t){var r=Ze(t);if(r&&de(t)){var n=e.getJSDocAugmentsTag(t);if(n)return n.class}return r}function Ze(e){var t=rt(e.heritageClauses,93);return t&&t.types.length>0?t.types[0]:void 0}function et(t){if(de(t))return e.getJSDocImplementsTags(t).map((function(e){return e.class}));var r=rt(t.heritageClauses,116);return null==r?void 0:r.types}function tt(e){var t=rt(e.heritageClauses,93);return t?t.types:void 0}function rt(e,t){if(e)for(var r=0,n=e;r0&&e.every(t.declarationList.declarations,(function(e){return pe(e,r)}))},e.isSingleOrDoubleQuote=function(e){return 39===e||34===e},e.isStringDoubleQuoted=function(e,t){return 34===v(t,e).charCodeAt(0)},e.isAssignmentDeclaration=fe,e.getEffectiveInitializer=ge,e.getDeclaredExpandoInitializer=function(e){var t=ge(e);return t&&me(t,kr(e.name))},e.getAssignedExpandoInitializer=function(t){if(t&&t.parent&&e.isBinaryExpression(t.parent)&&62===t.parent.operatorToken.kind){var r=kr(t.parent.left);return me(t.parent.right,r)||function(t,r,n){var i=e.isBinaryExpression(r)&&(56===r.operatorToken.kind||60===r.operatorToken.kind)&&me(r.right,n);if(i&&ye(t,r.left))return i}(t.parent.left,t.parent.right,r)}if(t&&e.isCallExpression(t)&&Se(t)){var n=function(t,r){return e.forEach(t.properties,(function(t){return e.isPropertyAssignment(t)&&e.isIdentifier(t.name)&&"value"===t.name.escapedText&&t.initializer&&me(t.initializer,r)}))}(t.arguments[2],"prototype"===t.arguments[1].text);if(n)return n}},e.getExpandoInitializer=me,e.isDefaultedExpandoInitializer=function(t){var r=e.isVariableDeclaration(t.parent)?t.parent.name:e.isBinaryExpression(t.parent)&&62===t.parent.operatorToken.kind?t.parent.left:void 0;return r&&me(t.right,kr(r))&&Cr(r)&&ye(r,t.left)},e.getNameOfExpando=function(t){if(e.isBinaryExpression(t.parent)){var r=56!==t.parent.operatorToken.kind&&60!==t.parent.operatorToken.kind||!e.isBinaryExpression(t.parent.parent)?t.parent:t.parent.parent;if(62===r.operatorToken.kind&&e.isIdentifier(r.left))return r.left}else if(e.isVariableDeclaration(t.parent))return t.parent.name},e.isSameEntityName=ye,e.getRightMostAssignedExpression=ve,e.isExportsIdentifier=he,e.isModuleIdentifier=De,e.isModuleExportsAccessExpression=xe,e.getAssignmentDeclarationKind=be,e.isBindableObjectDefinePropertyCall=Se,e.isLiteralLikeAccess=Ee,e.isLiteralLikeElementAccess=Ce,e.isBindableStaticAccessExpression=Te,e.isBindableStaticElementAccessExpression=ke,e.isBindableStaticNameExpression=Ae,e.getNameOrArgument=Fe,e.getElementOrPropertyAccessArgumentExpressionOrName=Ne,e.getElementOrPropertyAccessName=Pe,e.getAssignmentDeclarationPropertyAccessKind=we,e.getInitializerOfBinaryExpression=Ie,e.isPrototypePropertyAssignment=function(t){return e.isBinaryExpression(t)&&3===be(t)},e.isSpecialPropertyDeclaration=function(t){return de(t)&&t.parent&&233===t.parent.kind&&(!e.isElementAccessExpression(t)||Ce(t))&&!!e.getJSDocTypeTag(t.parent)},e.setValueDeclaration=function(e,t){var r=e.valueDeclaration;(!r||(!(8388608&t.flags)||8388608&r.flags)&&fe(r)&&!fe(t)||r.kind!==t.kind&&C(r))&&(e.valueDeclaration=t)},e.isFunctionSymbol=function(t){if(!t||!t.valueDeclaration)return!1;var r=t.valueDeclaration;return 251===r.kind||e.isVariableDeclaration(r)&&r.initializer&&e.isFunctionLike(r.initializer)},e.importFromModuleSpecifier=function(t){return Oe(t)||e.Debug.failBadSyntaxKind(t.parent)},e.tryGetImportFromModuleSpecifier=Oe,e.getExternalModuleName=function(t){switch(t.kind){case 261:case 267:return t.moduleSpecifier;case 260:return 272===t.moduleReference.kind?t.moduleReference.expression:void 0;case 195:return K(t)?t.argument.literal:void 0;default:return e.Debug.assertNever(t)}},e.getNamespaceDeclarationNode=function(t){switch(t.kind){case 261:return t.importClause&&e.tryCast(t.importClause.namedBindings,e.isNamespaceImport);case 260:return t;case 267:return t.exportClause&&e.tryCast(t.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(t)}},e.isDefaultImport=function(e){return 261===e.kind&&!!e.importClause&&!!e.importClause.name},e.forEachImportClauseDeclaration=function(t,r){var n;if(t.name&&(n=r(t)))return n;if(t.namedBindings&&(n=e.isNamespaceImport(t.namedBindings)?r(t.namedBindings):e.forEach(t.namedBindings.elements,r)))return n},e.hasQuestionToken=function(e){if(e)switch(e.kind){case 160:case 165:case 164:case 289:case 288:case 163:case 162:return void 0!==e.questionToken}return!1},e.isJSDocConstructSignature=function(t){var r=e.isJSDocFunctionType(t)?e.firstOrUndefined(t.parameters):void 0,n=e.tryCast(r&&r.name,e.isIdentifier);return!!n&&"new"===n.escapedText},e.isJSDocTypeAlias=Me,e.isTypeAlias=function(t){return Me(t)||e.isTypeAliasDeclaration(t)},e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Re,e.getSingleVariableOfVariableStatement=Be,e.getJSDocCommentsAndTags=function(t,r){var n;G(t)&&e.hasInitializer(t)&&e.hasJSDocNodes(t.initializer)&&(n=e.append(n,e.last(t.initializer.jsDoc)));for(var i=t;i&&i.parent;){if(e.hasJSDocNodes(i)&&(n=e.append(n,e.last(i.jsDoc))),160===i.kind){n=e.addRange(n,(r?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(i));break}if(159===i.kind){n=e.addRange(n,(r?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(i));break}i=Je(i)}return n||e.emptyArray},e.getParameterSymbolFromJSDoc=function(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t.name)){var r=t.name.escapedText,n=Ke(t);if(n){var i=e.find(n.parameters,(function(e){return 78===e.name.kind&&e.name.escapedText===r}));return i&&i.symbol}}},e.getHostSignatureFromJSDoc=Ke,e.getEffectiveJSDocHost=ze,e.getJSDocHost=Ue,e.getTypeParameterFromJsDoc=function(t){var r=t.name.escapedText,n=t.parent.parent.parent.typeParameters;return n&&e.find(n,(function(e){return e.name.escapedText===r}))},e.hasRestParameter=function(t){var r=e.lastOrUndefined(t.parameters);return!!r&&Ve(r)},e.isRestParameter=Ve,e.hasTypeArguments=function(e){return!!e.typeArguments},function(e){e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound"}(e.AssignmentKind||(e.AssignmentKind={})),e.getAssignmentTargetKind=qe,e.isAssignmentTarget=function(e){return 0!==qe(e)},e.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 230:case 232:case 243:case 234:case 244:case 258:case 284:case 285:case 245:case 237:case 238:case 239:case 235:case 236:case 247:case 287:return!0}return!1},e.isValueSignatureDeclaration=function(t){return e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isMethodOrAccessor(t)||e.isFunctionDeclaration(t)||e.isConstructorDeclaration(t)},e.walkUpParenthesizedTypes=function(e){return We(e,186)},e.walkUpParenthesizedExpressions=He,e.walkUpParenthesizedTypesAndGetParentAndChild=function(e){for(var t;e&&186===e.kind;)t=e,e=e.parent;return[t,e]},e.skipParentheses=Ge,e.isDeleteTarget=function(e){return(201===e.kind||202===e.kind)&&((e=He(e.parent))&&210===e.kind)},e.isNodeDescendantOf=function(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1},e.isDeclarationName=function(t){return!e.isSourceFile(t)&&!e.isBindingPattern(t)&&e.isDeclaration(t.parent)&&t.parent.name===t},e.getDeclarationFromName=function(t){var r=t.parent;switch(t.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(r))return r.parent;case 78:if(e.isDeclaration(r))return r.name===t?r:void 0;if(e.isQualifiedName(r)){var n=r.parent;return e.isJSDocParameterTag(n)&&n.name===r?n:void 0}var i=r.parent;return e.isBinaryExpression(i)&&0!==be(i)&&(i.left.symbol||i.symbol)&&e.getNameOfDeclaration(i)===t?i:void 0;case 79:return e.isDeclaration(r)&&r.name===t?r:void 0;default:return}},e.isLiteralComputedPropertyDeclarationName=function(t){return ot(t)&&158===t.parent.kind&&e.isDeclaration(t.parent.parent)},e.isIdentifierName=function(e){var t=e.parent;switch(t.kind){case 163:case 162:case 165:case 164:case 167:case 168:case 291:case 288:case 201:return t.name===e;case 157:return t.right===e;case 198:case 265:return t.propertyName===e;case 270:case 280:return!0}return!1},e.isAliasSymbolDeclaration=function(t){return 260===t.kind||259===t.kind||262===t.kind&&!!t.name||263===t.kind||269===t.kind||265===t.kind||270===t.kind||266===t.kind&&Xe(t)||e.isBinaryExpression(t)&&2===be(t)&&Xe(t)||e.isPropertyAccessExpression(t)&&e.isBinaryExpression(t.parent)&&t.parent.left===t&&62===t.parent.operatorToken.kind&&Ye(t.parent.right)||289===t.kind||288===t.kind&&Ye(t.initializer)},e.getAliasDeclarationFromName=function e(t){switch(t.parent.kind){case 262:case 265:case 263:case 270:case 266:case 260:return t.parent;case 157:do{t=t.parent}while(157===t.parent.kind);return e(t)}},e.isAliasableExpression=Ye,e.exportAssignmentIsAlias=Xe,e.getExportAssignmentExpression=Qe,e.getPropertyAssignmentAliasLikeExpression=function(e){return 289===e.kind?e.name:288===e.kind?e.initializer:e.parent.right},e.getEffectiveBaseTypeNode=$e,e.getClassExtendsHeritageElement=Ze,e.getEffectiveImplementsTypeNodes=et,e.getAllSuperTypeNodes=function(t){return e.isInterfaceDeclaration(t)?tt(t)||e.emptyArray:e.isClassLike(t)&&e.concatenate(e.singleElementArray($e(t)),et(t))||e.emptyArray},e.getInterfaceBaseTypeNodes=tt,e.getHeritageClause=rt,e.getAncestor=function(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}},e.isKeyword=nt,e.isContextualKeyword=it,e.isNonContextualKeyword=at,e.isFutureReservedKeyword=function(e){return 116<=e&&e<=124},e.isStringANonContextualKeyword=function(t){var r=e.stringToToken(t);return void 0!==r&&at(r)},e.isStringAKeyword=function(t){var r=e.stringToToken(t);return void 0!==r&&nt(r)},e.isIdentifierANonContextualKeyword=function(e){var t=e.originalKeywordKind;return!!t&&!it(t)},e.isTrivia=function(e){return 2<=e&&e<=7},function(e){e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator"}(e.FunctionFlags||(e.FunctionFlags={})),e.getFunctionFlags=function(e){if(!e)return 4;var t=0;switch(e.kind){case 251:case 208:case 165:e.asteriskToken&&(t|=1);case 209:sr(e,256)&&(t|=2)}return e.body||(t|=4),t},e.isAsyncFunction=function(e){switch(e.kind){case 251:case 208:case 209:case 165:return void 0!==e.body&&void 0===e.asteriskToken&&sr(e,256)}return!1},e.isStringOrNumericLiteralLike=ot,e.isSignedNumericLiteral=st,e.hasDynamicName=ct,e.isDynamicName=ut,e.isWellKnownSymbolSyntactically=lt,e.getPropertyNameForPropertyNameNode=dt,e.isPropertyNameLiteral=_t,e.getTextOfIdentifierOrLiteral=pt,e.getEscapedTextOfIdentifierOrLiteral=function(t){return e.isIdentifierOrPrivateIdentifier(t)?t.escapedText:e.escapeLeadingUnderscores(t.text)},e.getPropertyNameForUniqueESSymbol=function(t){return"__@"+e.getSymbolId(t)+"@"+t.escapedName},e.getPropertyNameForKnownSymbolName=ft,e.getSymbolNameForPrivateIdentifier=function(t,r){return"__#"+e.getSymbolId(t)+"@"+r},e.isKnownSymbol=function(t){return e.startsWith(t.escapedName,"__@")},e.isESSymbolIdentifier=gt,e.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},e.isParameterDeclaration=function(e){return 160===mt(e).kind},e.getRootDeclaration=mt,e.nodeStartsNewLexicalEnvironment=function(e){var t=e.kind;return 166===t||208===t||251===t||209===t||165===t||167===t||168===t||256===t||297===t},e.nodeIsSynthesized=yt,e.getOriginalSourceFile=function(t){return e.getParseTreeNode(t,e.isSourceFile)||t},function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(e.Associativity||(e.Associativity={})),e.getExpressionAssociativity=function(e){var t=ht(e),r=204===e.kind&&void 0!==e.arguments;return vt(e.kind,t,r)},e.getOperatorAssociativity=vt,e.getExpressionPrecedence=function(e){var t=ht(e),r=204===e.kind&&void 0!==e.arguments;return Dt(e.kind,t,r)},e.getOperator=ht,function(e){e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid"}(e.OperatorPrecedence||(e.OperatorPrecedence={})),e.getOperatorPrecedence=Dt,e.getBinaryOperatorPrecedence=xt,e.getSemanticJsxChildren=function(t){return e.filter(t,(function(e){switch(e.kind){case 283:return!!e.expression;case 11:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}}))},e.createDiagnosticCollection=function(){var t=[],r=[],n=new e.Map,i=!1;return{add:function(a){var o;a.file?(o=n.get(a.file.fileName))||(o=[],n.set(a.file.fileName,o),e.insertSorted(r,a.file.fileName,e.compareStringsCaseSensitive)):(i&&(i=!1,t=t.slice()),o=t);e.insertSorted(o,a,sn)},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,cn);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 bt=/\$\{/g;e.hasInvalidEscape=function(t){return t&&!!(e.isNoSubstitutionTemplateLiteral(t)?t.templateFlags:t.head.templateFlags||e.some(t.templateSpans,(function(e){return!!e.literal.templateFlags})))};var St=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Et=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Ct=/[\\`]/g,Tt=new e.Map(e.getEntries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085"}));function kt(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function At(e,t,r){if(0===e.charCodeAt(0)){var n=r.charCodeAt(t+e.length);return n>=48&&n<=57?"\\x00":"\\0"}return Tt.get(e)||kt(e.charCodeAt(0))}function Ft(e,t){var r=96===t?Ct:39===t?Et:St;return e.replace(r,At)}e.escapeString=Ft;var Nt=/[^\u0000-\u007F]/g;function Pt(e,t){return e=Ft(e,t),Nt.test(e)?e.replace(Nt,(function(e){return kt(e.charCodeAt(0))})):e}e.escapeNonAsciiString=Pt;var wt=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,It=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,Ot=new e.Map(e.getEntries({'"':""","'":"'"}));function Mt(e){return 0===e.charCodeAt(0)?"�":Ot.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Lt(e,t){var r=39===t?It:wt;return e.replace(r,Mt)}e.escapeJsxAttributeString=Lt,e.stripQuotes=function(e){var t,r=e.length;return r>=2&&e.charCodeAt(0)===e.charCodeAt(r-1)&&(39===(t=e.charCodeAt(0))||34===t||96===t)?e.substring(1,r-1):e},e.isIntrinsicJsxName=function(t){var r=t.charCodeAt(0);return r>=97&&r<=122||e.stringContains(t,"-")};var Rt=[""," "];function Bt(e){for(var t=Rt[1],r=Rt.length;r<=e;r++)Rt.push(Rt[r-1]+t);return Rt[e]}function jt(){return Rt[1].length}function Jt(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function Kt(e,t,r){return t.moduleName||zt(e,t.fileName,r&&r.fileName)}function zt(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=Un(e.getRelativePathToDirectoryOrUrl(a,o,a,i,!1));return n?e.ensurePathIsNonModuleName(s):s}function Ut(e,t,r,n,i){var a=t.declarationDir||t.outDir;return Un(a?Ht(e,a,r,n,i):e)+".d.ts"}function Vt(e){return e.outFile||e.out}function qt(e,t,r){return!(t.getCompilerOptions().noEmitForJsFiles&&le(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&!(B(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&(r||!t.isSourceOfProjectReferenceRedirect(e.fileName))}function Wt(e,t,r){return Ht(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),(function(e){return t.getCanonicalFileName(e)}))}function Ht(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 Gt(t,r,n){t.length>e.getRootLength(t)&&!n(t)&&(Gt(e.getDirectoryPath(t),r,n),r(t))}function Yt(t,r){return e.computeLineOfPosition(t,r)}function Xt(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&Qt(e.parameters[0]);return e.parameters[t?1:0]}}function Qt(e){return $t(e.name)}function $t(e){return!!e&&78===e.kind&&Zt(e)}function Zt(e){return 107===e.originalKeywordKind}function er(t){if(de(t)||!e.isFunctionDeclaration(t)){var r=t.type;return r||!de(t)?r:e.isJSDocPropertyLikeTag(t)?t.typeExpression&&t.typeExpression.type:e.getJSDocType(t)}}function tr(e,t,r,n){rr(e,t,r.pos,n)}function rr(e,t,r,n){n&&n.length&&r!==n[0].pos&&Yt(e,r)!==Yt(e,n[0].pos)&&t.writeLine()}function nr(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=0&&e.kind<=156?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|mr(e)),!t||4096&e.modifierFlagsCache||!r&&!de(e)||!e.parent||(e.modifierFlagsCache|=4096|gr(e)),-536875009&e.modifierFlagsCache)}function pr(e){return _r(e,!0)}function fr(e){return _r(e,!1)}function gr(t){var r=0;return t.parent&&!e.isParameter(t)&&(de(t)&&(e.getJSDocPublicTagNoCache(t)&&(r|=4),e.getJSDocPrivateTagNoCache(t)&&(r|=8),e.getJSDocProtectedTagNoCache(t)&&(r|=16),e.getJSDocReadonlyTagNoCache(t)&&(r|=64)),e.getJSDocDeprecatedTagNoCache(t)&&(r|=8192)),r}function mr(e){var t=yr(e.modifiers);return(4&e.flags||78===e.kind&&e.isInJSDocNamespace)&&(t|=1),t}function yr(e){var t=0;if(e)for(var r=0,n=e;r=62&&e<=77}function xr(e){var t=br(e);return t&&!t.isImplements?t.class:void 0}function br(t){return e.isExpressionWithTypeArguments(t)&&e.isHeritageClause(t.parent)&&e.isClassLike(t.parent.parent)?{class:t.parent.parent,isImplements:116===t.parent.token}:void 0}function Sr(t,r){return e.isBinaryExpression(t)&&(r?62===t.operatorToken.kind:Dr(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function Er(e){return void 0!==xr(e)}function Cr(e){return 78===e.kind||Tr(e)}function Tr(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&Cr(t.expression)}function kr(e){return Te(e)&&"prototype"===Pe(e)}e.getIndentString=Bt,e.getIndentSize=jt,e.createTextWriter=function(t){var r,n,i,a,o,s=!1;function c(t){var n=e.computeLineStarts(t);n.length>1?(a=a+n.length-1,o=r.length-t.length+e.last(n),i=o-r.length==0):i=!1}function u(e){e&&e.length&&(i&&(e=Bt(n)+e,i=!1),r+=e,c(e))}function l(e){e&&(s=!1),u(e)}function d(){r="",n=0,i=!0,a=0,o=0,s=!1}return d(),{write:l,rawWrite:function(e){void 0!==e&&(r+=e,c(e),s=!1)},writeLiteral:function(e){e&&e.length&&l(e)},writeLine:function(e){i&&!e||(a++,o=(r+=t).length,i=!0,s=!1)},increaseIndent:function(){n++},decreaseIndent:function(){n--},getIndent:function(){return n},getTextPos:function(){return r.length},getLine:function(){return a},getColumn:function(){return i?n*jt():r.length-o},getText:function(){return r},isAtStartOfLine:function(){return i},hasTrailingComment:function(){return s},hasTrailingWhitespace:function(){return!!r.length&&e.isWhiteSpaceLike(r.charCodeAt(r.length-1))},clear:d,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:e.noop,writeKeyword:l,writeOperator:l,writeParameter:l,writeProperty:l,writePunctuation:l,writeSpace:l,writeStringLiteral:l,writeSymbol:function(e,t){return l(e)},writeTrailingSemicolon:l,writeComment:function(e){e&&(s=!0),u(e)},getTextPosWithWriteLine:function(){return i?r.length:r.length+t.length}}},e.getTrailingSemicolonDeferringWriter=function(e){var t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return n(n({},e),{writeTrailingSemicolon:function(){t=!0},writeLiteral:function(t){r(),e.writeLiteral(t)},writeStringLiteral:function(t){r(),e.writeStringLiteral(t)},writeSymbol:function(t,n){r(),e.writeSymbol(t,n)},writePunctuation:function(t){r(),e.writePunctuation(t)},writeKeyword:function(t){r(),e.writeKeyword(t)},writeOperator:function(t){r(),e.writeOperator(t)},writeParameter:function(t){r(),e.writeParameter(t)},writeSpace:function(t){r(),e.writeSpace(t)},writeProperty:function(t){r(),e.writeProperty(t)},writeComment:function(t){r(),e.writeComment(t)},writeLine:function(){r(),e.writeLine()},increaseIndent:function(){r(),e.increaseIndent()},decreaseIndent:function(){r(),e.decreaseIndent()}})},e.hostUsesCaseSensitiveFileNames=Jt,e.hostGetCanonicalFileName=function(t){return e.createGetCanonicalFileName(Jt(t))},e.getResolvedExternalModuleName=Kt,e.getExternalModuleNameFromDeclaration=function(e,t,r){var n=t.getExternalModuleFileFromDeclaration(r);if(n&&!n.isDeclarationFile)return Kt(e,n)},e.getExternalModuleNameFromPath=zt,e.getOwnEmitOutputFilePath=function(e,t,r){var n=t.getCompilerOptions();return(n.outDir?Un(Wt(e,t,n.outDir)):Un(e))+r},e.getDeclarationEmitOutputFilePath=function(e,t){return Ut(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),(function(e){return t.getCanonicalFileName(e)}))},e.getDeclarationEmitOutputFilePathWorker=Ut,e.outFile=Vt,e.getPathsBasePath=function(t,r){var n,i;if(t.paths)return null!==(n=t.baseUrl)&&void 0!==n?n:e.Debug.checkDefined(t.pathsBasePath||(null===(i=r.getCurrentDirectory)||void 0===i?void 0:i.call(r)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")},e.getSourceFilesToEmit=function(t,r,n){var i=t.getCompilerOptions();if(Vt(i)){var a=dn(i),o=i.emitDeclarationOnly||a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),(function(r){return(o||!e.isExternalModule(r))&&qt(r,t,n)}))}var s=void 0===r?t.getSourceFiles():[r];return e.filter(s,(function(e){return qt(e,t,n)}))},e.sourceFileMayBeEmitted=qt,e.getSourceFilePathInNewDir=Wt,e.getSourceFilePathInNewDirWorker=Ht,e.writeFile=function(t,r,n,i,a,o){t.writeFile(n,i,a,(function(t){r.add(an(e.Diagnostics.Could_not_write_file_0_Colon_1,n,t))}),o)},e.writeFileEnsuringDirectories=function(t,r,n,i,a,o){try{i(t,r,n)}catch(s){Gt(e.getDirectoryPath(e.normalizePath(t)),a,o),i(t,r,n)}},e.getLineOfLocalPosition=function(t,r){var n=e.getLineStarts(t);return e.computeLineOfPosition(n,r)},e.getLineOfLocalPositionFromLineMap=Yt,e.getFirstConstructorWithBody=function(t){return e.find(t.members,(function(t){return e.isConstructorDeclaration(t)&&_(t.body)}))},e.getSetAccessorValueParameter=Xt,e.getSetAccessorTypeAnnotationNode=function(e){var t=Xt(e);return t&&t.type},e.getThisParameter=function(t){if(t.parameters.length&&!e.isJSDocSignature(t)){var r=t.parameters[0];if(Qt(r))return r}},e.parameterIsThisKeyword=Qt,e.isThisIdentifier=$t,e.identifierIsThisKeyword=Zt,e.getAllAccessorDeclarations=function(t,r){var n,i,a,o;return ct(r)?(n=r,167===r.kind?a=r:168===r.kind?o=r:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,(function(t){e.isAccessor(t)&&sr(t,32)===sr(r,32)&&(dt(t.name)===dt(r.name)&&(n?i||(i=t):n=t,167!==t.kind||a||(a=t),168!==t.kind||o||(o=t)))})),{firstAccessor:n,secondAccessor:i,getAccessor:a,setAccessor:o}},e.getEffectiveTypeAnnotationNode=er,e.getTypeAnnotationNode=function(e){return e.type},e.getEffectiveReturnTypeNode=function(t){return e.isJSDocSignature(t)?t.type&&t.type.typeExpression&&t.type.typeExpression.type:t.type||(de(t)?e.getJSDocReturnType(t):void 0)},e.getJSDocTypeParameterDeclarations=function(t){return e.flatMap(e.getJSDocTags(t),(function(t){return function(t){return e.isJSDocTemplateTag(t)&&!(311===t.parent.kind&&t.parent.tags.some(Me))}(t)?t.typeParameters:void 0}))},e.getEffectiveSetAccessorTypeAnnotationNode=function(e){var t=Xt(e);return t&&er(t)},e.emitNewLineBeforeLeadingComments=tr,e.emitNewLineBeforeLeadingCommentsOfPosition=rr,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,t,r,n){r!==n&&Yt(e,r)!==Yt(e,n)&&t.writeLine()},e.emitComments=nr,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 m(t,e.pos)}))):c=e.getLeadingCommentRanges(t,a.pos),c){for(var l=[],d=void 0,_=0,p=c;_=g+2)break}l.push(f),d=f}if(l.length){g=Yt(r,e.last(l).end);Yt(r,e.skipTrivia(t,a.pos))>=g+2&&(tr(r,n,a,c),nr(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,d=s.line;l0){var f=p%jt(),g=Bt((p-f)/jt());for(n.rawWrite(g);f;)n.rawWrite(" "),f--}else n.rawWrite("")}ir(t,a,n,o,l,_),l=_}else n.writeComment(t.substring(i,a))},e.hasEffectiveModifiers=function(e){return 0!==pr(e)},e.hasSyntacticModifiers=function(e){return 0!==fr(e)},e.hasEffectiveModifier=or,e.hasSyntacticModifier=sr,e.hasStaticModifier=cr,e.hasEffectiveReadonlyModifier=ur,e.getSelectedEffectiveModifierFlags=lr,e.getSelectedSyntacticModifierFlags=dr,e.getEffectiveModifierFlags=pr,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=function(e){return _r(e,!0,!0)},e.getSyntacticModifierFlags=fr,e.getEffectiveModifierFlagsNoCache=function(e){return mr(e)|gr(e)},e.getSyntacticModifierFlagsNoCache=mr,e.modifiersToFlags=yr,e.modifierToFlag=vr,e.isLogicalOperator=function(e){return 56===e||55===e||53===e},e.isLogicalOrCoalescingAssignmentOperator=hr,e.isLogicalOrCoalescingAssignmentExpression=function(e){return hr(e.operatorToken.kind)},e.isAssignmentOperator=Dr,e.tryGetClassExtendingExpressionWithTypeArguments=xr,e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=br,e.isAssignmentExpression=Sr,e.isDestructuringAssignment=function(e){if(Sr(e,!0)){var t=e.left.kind;return 200===t||199===t}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=Er,e.isEntityNameExpression=Cr,e.getFirstIdentifier=function(e){switch(e.kind){case 78:return e;case 157:do{e=e.left}while(78!==e.kind);return e;case 201:do{e=e.expression}while(78!==e.kind);return e}},e.isDottedName=function e(t){return 78===t.kind||107===t.kind||105===t.kind||201===t.kind&&e(t.expression)||207===t.kind&&e(t.expression)},e.isPropertyAccessEntityNameExpression=Tr,e.tryGetPropertyAccessOrIdentifierToString=function t(r){if(e.isPropertyAccessExpression(r)){var n=t(r.expression);if(void 0!==n)return n+"."+O(r.name)}else if(e.isIdentifier(r))return e.unescapeLeadingUnderscores(r.escapedText)},e.isPrototypeAccess=kr,e.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 157===e.parent.kind&&e.parent.right===e||201===e.parent.kind&&e.parent.name===e},e.isEmptyObjectLiteral=function(e){return 200===e.kind&&0===e.properties.length},e.isEmptyArrayLiteral=function(e){return 199===e.kind&&0===e.elements.length},e.getLocalSymbolForExportDefault=function(t){if(function(t){return t&&e.length(t.declarations)>0&&sr(t.declarations[0],512)}(t))for(var r=0,n=t.declarations;r>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>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+=Ar.charAt(r)+Ar.charAt(n)+Ar.charAt(i)+Ar.charAt(a),c+=3;return o}e.convertToBase64=Fr,e.base64encode=function(e,t){return e&&e.base64encode?e.base64encode(t):Fr(t)},e.base64decode=function(e,t){if(e&&e.base64decode)return e.base64decode(t);for(var r=t.length,n=[],i=0;i>4&3,l=(15&o)<<4|s>>2&15,d=(3&s)<<6|63&c;0===l&&0!==s?n.push(u):0===d&&0!==c?n.push(u,l):n.push(u,l,d),i+=4}return function(e){for(var t="",r=0,n=e.length;r=t||-1===r),{pos:t,end:r}}function wr(e,t){return Pr(t,e.end)}function Ir(e){return e.decorators&&e.decorators.length>0?wr(e,e.decorators.end):e}function Or(e,t,r){return Mr(Lr(e,r,!1),t.end,r)}function Mr(t,r,n){return 0===e.getLinesBetweenPositions(n,t,r)}function Lr(t,r,n){return Hn(t.pos)?-1:e.skipTrivia(r.text,t.pos,!1,n)}function Rr(e){return void 0!==e.initializer}function Br(e){return 33554432&e.flags?e.checkFlags:0}function jr(t){var r=t.parent;if(!r)return 0;switch(r.kind){case 207:return jr(r);case 215:case 214:var n=r.operator;return 45===n||46===n?c():0;case 216:var i=r,a=i.left,o=i.operatorToken;return a===t&&Dr(o.kind)?62===o.kind?1:c():0;case 201:return r.name!==t?0:jr(r);case 288:var s=jr(r.parent);return t===r.name?function(t){switch(t){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(t)}}(s):s;case 289:return t===r.objectAssignmentInitializer?0:jr(r.parent);case 199:return jr(r);default:return 0}function c(){return r.parent&&233===function(e){for(;207===e.kind;)e=e.parent;return e}(r.parent).kind?1:2}}function Jr(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 Kr(e){if(32&e.flags){var t=zr(e);return!!t&&sr(t,128)}return!1}function zr(t){return e.find(t.declarations,e.isClassLike)}function Ur(e){return 3899393&e.flags?e.objectFlags:0}function Vr(e){return 201===e.kind||202===e.kind}function qr(e){for(;Vr(e);)e=e.expression;return e}function Wr(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 Hr(t,r){this.flags=r,(e.Debug.isDebugging||e.tracing.isTracing())&&(this.checker=t)}function Gr(t,r){this.flags=r,e.Debug.isDebugging&&(this.checker=t)}function Yr(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function Xr(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0}function Qr(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.flowNode=void 0}function $r(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||function(e){return e}}function Zr(t,r,n){return void 0===n&&(n=0),t.replace(/{(\d+)}/g,(function(t,i){return""+e.Debug.checkDefined(r[+i+n])}))}function en(t){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[t.key]||t.message}function tn(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function rn(t,r){var n=r.fileName||"",i=r.text.length;e.Debug.assertEqual(t.fileName,n),e.Debug.assertLessThanOrEqual(t.start,i),e.Debug.assertLessThanOrEqual(t.start+t.length,i);var a={file:r,start:t.start,length:t.length,messageText:t.messageText,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary};if(t.relatedInformation){a.relatedInformation=[];for(var o=0,s=t.relatedInformation;o4&&(a=Zr(a,arguments,4)),{file:t,start:r,length:n,messageText:a,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function an(e){var t=en(e);return arguments.length>1&&(t=Zr(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function on(e){return e.file?e.file.path:void 0}function sn(t,r){return cn(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 sn(e,r.relatedInformation[t])}))||0;return t.relatedInformation?-1:1}(t,r)||0}function cn(t,r){return e.compareStringsCaseSensitive(on(t),on(r))||e.compareValues(t.start,r.start)||e.compareValues(t.length,r.length)||e.compareValues(t.code,r.code)||un(t.messageText,r.messageText)||0}function un(t,r){if("string"==typeof t&&"string"==typeof r)return e.compareStringsCaseSensitive(t,r);if("string"==typeof t)return-1;if("string"==typeof r)return 1;var n=e.compareStringsCaseSensitive(t.messageText,r.messageText);if(n)return n;if(!t.next&&!r.next)return 0;if(!t.next)return-1;if(!r.next)return 1;for(var i=Math.min(t.next.length,r.next.length),a=0;ar.next.length?1:0}function ln(e){return e.target||0}function dn(t){return"number"==typeof t.module?t.module:ln(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function _n(e){return!(!e.declaration&&!e.composite)}function pn(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function fn(e){return void 0===e.allowJs?!!e.checkJs:e.allowJs}function gn(e,t){return t.strictFlag?pn(e,t.name):e[t.name]}function mn(e){for(var t=!1,r=0;r0?wr(e,e.modifiers.end):Ir(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 Or(e,e,t)},e.rangeStartPositionsAreOnSameLine=function(e,t,r){return Mr(Lr(e,r,!1),Lr(t,r,!1),r)},e.rangeEndPositionsAreOnSameLine=function(e,t,r){return Mr(e.end,t.end,r)},e.rangeStartIsOnSameLineAsRangeEnd=Or,e.rangeEndIsOnSameLineAsRangeStart=function(e,t,r){return Mr(e.end,Lr(t,r,!1),r)},e.getLinesBetweenRangeEndAndRangeStart=function(t,r,n,i){var a=Lr(r,n,i);return e.getLinesBetweenPositions(n,t.end,a)},e.getLinesBetweenRangeEndPositions=function(t,r,n){return e.getLinesBetweenPositions(n,t.end,r.end)},e.isNodeArrayMultiLine=function(e,t){return!Mr(e.pos,e.end,t)},e.positionsAreOnSameLine=Mr,e.getStartPositionOfRange=Lr,e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=function(t,r,n,i){var a=e.skipTrivia(n.text,t,!1,i),o=function(t,r,n){void 0===r&&(r=0);for(;t-- >r;)if(!e.isWhiteSpaceLike(n.text.charCodeAt(t)))return t}(a,r,n);return e.getLinesBetweenPositions(n,null!=o?o:r,a)},e.getLinesBetweenPositionAndNextNonWhitespaceCharacter=function(t,r,n,i){var a=e.skipTrivia(n.text,t,!1,i);return e.getLinesBetweenPositions(n,t,Math.min(r,a))},e.isDeclarationNameOfEnumOrNamespace=function(t){var r=e.getParseTreeNode(t);if(r)switch(r.parent.kind){case 255:case 256:return r===r.parent.name}return!1},e.getInitializedVariables=function(t){return e.filter(t.declarations,Rr)},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===jr(e)},e.isWriteAccess=function(e){return 0!==jr(e)},function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(Nr||(Nr={})),e.compareDataObjects=function e(t,r){if(!t||!r||Object.keys(t).length!==Object.keys(r).length)return!1;for(var n in t)if("object"==typeof t[n]){if(!e(t[n],r[n]))return!1}else if("function"!=typeof t[n]&&t[n]!==r[n])return!1;return!0},e.clearMap=function(e,t){e.forEach(t),e.clear()},e.mutateMapSkippingNewValues=Jr,e.mutateMap=function(e,t,r){Jr(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&Ur(e))&&!!e.symbol&&Kr(e.symbol)},e.isAbstractConstructorSymbol=Kr,e.getClassLikeDeclarationOfSymbol=zr,e.getObjectFlags=Ur,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:D(r)},e.getLastChild=function(t){var r;return e.forEachChild(t,(function(e){_(e)&&(r=e)}),(function(e){for(var t=e.length-1;t>=0;t--)if(_(e[t])){r=e[t];break}})),r},e.addToSeen=function(e,t,r){return void 0===r&&(r=!0),t=String(t),!e.has(t)&&(e.set(t,r),!0)},e.isObjectTypeDeclaration=function(t){return e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isTypeLiteralNode(t)},e.isTypeNodeKind=function(e){return e>=172&&e<=195||128===e||152===e||144===e||155===e||145===e||131===e||147===e||148===e||113===e||150===e||141===e||223===e||303===e||304===e||305===e||306===e||307===e||308===e||309===e},e.isAccessExpression=Vr,e.getNameOfAccessExpression=function(t){return 201===t.kind?t.name:(e.Debug.assert(202===t.kind),t.argumentExpression)},e.isBundleFileTextLike=function(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}},e.isNamedImportsOrExports=function(e){return 264===e.kind||268===e.kind},e.getLeftmostAccessExpression=qr,e.getLeftmostExpression=function(e,t){for(;;){switch(e.kind){case 215:e=e.operand;continue;case 216:e=e.left;continue;case 217:e=e.condition;continue;case 205:e=e.tag;continue;case 203:if(t)return e;case 224:case 202:case 201:case 225:case 336:e=e.expression;continue}return e}},e.objectAllocator={getNodeConstructor:function(){return Yr},getTokenConstructor:function(){return Xr},getIdentifierConstructor:function(){return Qr},getPrivateIdentifierConstructor:function(){return Yr},getSourceFileConstructor:function(){return Yr},getSymbolConstructor:function(){return Wr},getTypeConstructor:function(){return Hr},getSignatureConstructor:function(){return Gr},getSourceMapSourceConstructor:function(){return $r}},e.setObjectAllocator=function(t){e.objectAllocator=t},e.formatStringFromArgs=Zr,e.setLocalizedDiagnosticMessages=function(t){e.localizedDiagnosticMessages=t},e.getLocaleSpecificMessage=en,e.createDetachedDiagnostic=function(t,r,n,i){e.Debug.assertGreaterThanOrEqual(r,0),e.Debug.assertGreaterThanOrEqual(n,0);var a=en(i);return arguments.length>4&&(a=Zr(a,arguments,4)),{file:void 0,start:r,length:n,messageText:a,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,fileName:t}},e.attachFileToDiagnostics=function(e,t){for(var r=[],n=0,i=e;n2&&(r=Zr(r,arguments,2)),r},e.createCompilerDiagnostic=an,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=en(t);return arguments.length>2&&(r=Zr(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=sn,e.compareDiagnosticsSkipRelatedInformation=cn,e.getLanguageVariant=function(e){return 4===e||2===e||1===e||6===e?1:0},e.getEmitScriptTarget=ln,e.getEmitModuleKind=dn,e.getEmitModuleResolutionKind=function(t){var r=t.moduleResolution;return void 0===r&&(r=dn(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),r},e.hasJsonModuleEmitEnabled=function(t){switch(dn(t)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ESNext:return!0;default:return!1}},e.unreachableCodeIsError=function(e){return!1===e.allowUnreachableCode},e.unusedLabelIsError=function(e){return!1===e.allowUnusedLabels},e.getAreDeclarationMapsEnabled=function(e){return!(!_n(e)||!e.declarationMap)},e.getAllowSyntheticDefaultImports=function(t){var r=dn(t);return void 0!==t.allowSyntheticDefaultImports?t.allowSyntheticDefaultImports:t.esModuleInterop||r===e.ModuleKind.System},e.getEmitDeclarations=_n,e.isIncrementalCompilation=function(e){return!(!e.incremental&&!e.composite)},e.getStrictOptionValue=pn,e.getAllowJSCompilerOption=fn,e.compilerOptionsAffectSemanticDiagnostics=function(t,r){return r!==t&&e.semanticDiagnosticsOptionDeclarations.some((function(e){return!Xn(gn(r,e),gn(t,e))}))},e.compilerOptionsAffectEmit=function(t,r){return r!==t&&e.affectsEmitOptionDeclarations.some((function(e){return!Xn(gn(r,e),gn(t,e))}))},e.getCompilerOptionValue=gn,e.getJSXTransformEnabled=function(e){var t=e.jsx;return 2===t||4===t||5===t},e.getJSXImplicitImportBase=function(t,r){var n=null==r?void 0:r.pragmas.get("jsximportsource"),i=e.isArray(n)?n[0]:n;return 4===t.jsx||5===t.jsx||t.jsxImportSource||i?(null==i?void 0:i.arguments.factory)||t.jsxImportSource||"react":void 0},e.getJSXRuntimeImport=function(e,t){return e?e+"/"+(5===t.jsx?"jsx-dev-runtime":"jsx-runtime"):void 0},e.hasZeroOrOneAsteriskCharacter=mn,e.createSymlinkCache=yn,e.discoverProbableSymlinks=function(t,r,n){for(var i=yn(),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}))))})));a0;)c+=")?",_--;return c}(t,r,n,kn[n])}))}function Nn(e){return!/[.*?]/.test(e)}function Pn(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function wn(t,r,n,i,a){t=e.normalizePath(t),a=e.normalizePath(a);var o=e.combinePaths(a,t);return{includeFilePatterns:e.map(Fn(n,o,"files"),(function(e){return"^"+e+"$"})),includeFilePattern:An(n,o,"files"),includeDirectoryPattern:An(n,o,"directories"),excludePattern:An(r,o,"exclude"),basePaths:On(t,n,i)}}function In(e,t){return new RegExp(e,t?"":"i")}function On(t,r,n){var i=[t];if(r){for(var a=[],o=0,s=r;o=0;n--)if(e.fileExtensionIs(t,r[n]))return Kn(n,r);return 0},e.adjustExtensionPriority=Kn,e.getNextLowestExtensionPriority=function(e,t){return e<2?2:t.length};var zn=[".d.ts",".ts",".js",".tsx",".jsx",".json"];function Un(e){for(var t=0,r=zn;t=0)}function Gn(e){return".ts"===e||".tsx"===e||".d.ts"===e}function Yn(t){return e.find(zn,(function(r){return e.fileExtensionIs(t,r)}))}function Xn(t,r){return t===r||"object"==typeof t&&null!==t&&"object"==typeof r&&null!==r&&e.equalOwnProperties(t,r,Xn)}function Qn(e,t){return e.pos=t,e}function $n(e,t){return e.end=t,e}function Zn(e,t,r){return $n(Qn(e,t),r)}function ei(e,t){return e&&t&&(e.parent=t),e}e.removeFileExtension=Un,e.tryRemoveExtension=Vn,e.removeExtension=qn,e.changeExtension=function(t,r){return e.changeAnyExtension(t,r,zn,!1)},e.tryParsePattern=Wn,e.positionIsSynthesized=Hn,e.extensionIsTS=Gn,e.resolutionExtensionIsTSOrJson=function(e){return Gn(e)||".json"===e},e.extensionFromPath=function(t){var r=Yn(t);return void 0!==r?r:e.Debug.fail("File "+t+" has unknown extension.")},e.isAnySupportedFileExtension=function(e){return void 0!==Yn(e)},e.tryGetExtensionFromPath=Yn,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;ii&&(i=o)}return{min:n,max:i}},e.rangeOfNode=function(e){return{pos:y(e),end:e.end}},e.rangeOfTypeParameters=function(e){return{pos:e.pos-1,end:e.end+1}},e.skipTypeChecking=function(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)},e.isJsonEqual=Xn,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),d=(l<=57?l-48:10+l-(l<=70?65:97))<<(15&c);o[u]|=d;var _=d>>>16;_&&(o[u+1]|=_)}for(var p="",f=o.length-1,g=!0;g;){var m=0;g=!1;for(u=f;u>=0;u--){var y=m<<16|o[u],v=y/10|0;o[u]=v,m=y-10*v,v&&!g&&(f=u,g=!0)}p=m+p}return p},e.pseudoBigIntToString=function(e){var t=e.negative,r=e.base10Value;return(t&&"0"!==r?"-":"")+r},e.isValidTypeOnlyAliasUseSite=function(t){return!!(8388608&t.flags)||ce(t)||function(t){if(78!==t.kind)return!1;var r=e.findAncestor(t.parent,(function(e){switch(e.kind){case 286:return!0;case 201:case 223:return!1;default:return"quit"}}));return 116===(null==r?void 0:r.token)||253===(null==r?void 0:r.parent.kind)}(t)||function(e){for(;78===e.kind||201===e.kind;)e=e.parent;if(158!==e.kind)return!1;if(sr(e.parent,128))return!0;var t=e.parent.parent.kind;return 253===t||177===t}(t)||!oe(t)},e.typeOnlyDeclarationIsExport=function(e){return 270===e.kind},e.isIdentifierTypeReference=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)},e.arrayIsHomogeneous=function(t,r){if(void 0===r&&(r=e.equateValues),t.length<2)return!0;for(var n=t[0],i=1,a=t.length;i3)return!0;var u=e.getExpressionPrecedence(c);switch(e.compareValues(u,o)){case-1:return!(!i&&1===s&&219===n.kind);case 1:return!1;case 0:if(i)return 1===s;if(e.isBinaryExpression(c)&&c.operatorToken.kind===t){if(function(e){return 41===e||51===e||50===e||52===e}(t))return!1;if(39===t){var l=a?r(a):0;if(e.isLiteralKind(l)&&l===r(c))return!1}}return 0===e.getExpressionAssociativity(c)}}(n,i,a,o)?t.createParenthesizedExpression(i):i}function i(r){var n=e.skipPartiallyEmittedExpressions(r);return e.isLeftHandSideExpression(n)&&(204!==n.kind||n.arguments)?r:e.setTextRange(t.createParenthesizedExpression(r),r)}function a(r){var n=e.skipPartiallyEmittedExpressions(r);return e.getExpressionPrecedence(n)>e.getOperatorPrecedence(216,27)?r:e.setTextRange(t.createParenthesizedExpression(r),r)}function o(e){return 184===e.kind?t.createParenthesizedType(e):e}function s(e){switch(e.kind){case 182:case 183:case 174:case 175:return t.createParenthesizedType(e)}return o(e)}function c(r,n){return 0===n&&e.isFunctionOrConstructorTypeNode(r)&&r.typeParameters?t.createParenthesizedType(r):r}},e.nullParenthesizerRules={parenthesizeLeftSideOfBinary:function(e,t){return t},parenthesizeRightSideOfBinary:function(e,t,r){return r},parenthesizeExpressionOfComputedPropertyName:e.identity,parenthesizeConditionOfConditionalExpression:e.identity,parenthesizeBranchOfConditionalExpression:e.identity,parenthesizeExpressionOfExportDefault:e.identity,parenthesizeExpressionOfNew:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeLeftSideOfAccess:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeOperandOfPostfixUnary:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeOperandOfPrefixUnary:function(t){return e.cast(t,e.isUnaryExpression)},parenthesizeExpressionsOfCommaDelimitedList:function(t){return e.cast(t,e.isNodeArray)},parenthesizeExpressionForDisallowedComma:e.identity,parenthesizeExpressionOfExpressionStatement:e.identity,parenthesizeConciseBodyOfArrowFunction:e.identity,parenthesizeMemberOfConditionalType:e.identity,parenthesizeMemberOfElementType:e.identity,parenthesizeElementTypeOfArrayType:e.identity,parenthesizeConstituentTypesOfUnionOrIntersectionType:function(t){return e.cast(t,e.isNodeArray)},parenthesizeTypeArguments:function(t){return t&&e.cast(t,e.isNodeArray)}}}(u||(u={})),function(e){e.createNodeConverters=function(t){return{convertToFunctionBlock:function(r,n){if(e.isBlock(r))return r;var i=t.createReturnStatement(r);e.setTextRange(i,r);var a=t.createBlock([i],n);return e.setTextRange(a,r),a},convertToFunctionExpression:function(r){if(!r.body)return e.Debug.fail("Cannot convert a FunctionDeclaration without a body");var n=t.createFunctionExpression(r.modifiers,r.asteriskToken,r.name,r.typeParameters,r.parameters,r.type,r.body);e.setOriginalNode(n,r),e.setTextRange(n,r),e.getStartsOnNewLine(r)&&e.setStartsOnNewLine(n,!0);return n},convertToArrayAssignmentElement:r,convertToObjectAssignmentElement:n,convertToAssignmentPattern:i,convertToObjectAssignmentPattern:a,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:s};function r(r){if(e.isBindingElement(r)){if(r.dotDotDotToken)return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createSpreadElement(r.name),r),r);var n=s(r.name);return r.initializer?e.setOriginalNode(e.setTextRange(t.createAssignment(n,r.initializer),r),r):n}return e.cast(r,e.isExpression)}function n(r){if(e.isBindingElement(r)){if(r.dotDotDotToken)return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createSpreadAssignment(r.name),r),r);if(r.propertyName){var n=s(r.name);return e.setOriginalNode(e.setTextRange(t.createPropertyAssignment(r.propertyName,r.initializer?t.createAssignment(n,r.initializer):n),r),r)}return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createShorthandPropertyAssignment(r.name,r.initializer),r),r)}return e.cast(r,e.isObjectLiteralElementLike)}function i(e){switch(e.kind){case 197:case 199:return o(e);case 196:case 200:return a(e)}}function a(r){return e.isObjectBindingPattern(r)?e.setOriginalNode(e.setTextRange(t.createObjectLiteralExpression(e.map(r.elements,n)),r),r):e.cast(r,e.isObjectLiteralExpression)}function o(n){return e.isArrayBindingPattern(n)?e.setOriginalNode(e.setTextRange(t.createArrayLiteralExpression(e.map(n.elements,r)),n),n):e.cast(n,e.isArrayLiteralExpression)}function s(t){return e.isBindingPattern(t)?i(t):e.cast(t,e.isExpression)}},e.nullNodeConverters={convertToFunctionBlock:e.notImplemented,convertToFunctionExpression:e.notImplemented,convertToArrayAssignmentElement:e.notImplemented,convertToObjectAssignmentElement:e.notImplemented,convertToAssignmentPattern:e.notImplemented,convertToObjectAssignmentPattern:e.notImplemented,convertToArrayAssignmentPattern:e.notImplemented,convertToAssignmentElementTarget:e.notImplemented}}(u||(u={})),function(e){var t,n=0;function i(i,p){var f=8&i?a:o,g=e.memoize((function(){return 1&i?e.nullParenthesizerRules:e.createParenthesizerRules(A)})),m=e.memoize((function(){return 2&i?e.nullNodeConverters:e.createNodeConverters(A)})),y=e.memoizeOne((function(e){return function(t,r){return Nt(t,e,r)}})),h=e.memoizeOne((function(e){return function(t){return At(e,t)}})),D=e.memoizeOne((function(e){return function(t){return Ft(t,e)}})),x=e.memoizeOne((function(e){return function(){return function(e){return N(e)}(e)}})),b=e.memoizeOne((function(e){return function(t){return Gr(e,t)}})),S=e.memoizeOne((function(e){return function(t,r){return function(e,t,r){return t.type!==r?f(Gr(e,r),t):t}(e,t,r)}})),E=e.memoizeOne((function(e){return function(t,r){return dn(e,t,r)}})),C=e.memoizeOne((function(e){return function(t,r,n){return function(e,t,r,n){void 0===r&&(r=Zr(t));return t.tagName!==r||t.comment!==n?f(dn(e,r,n),t):t}(e,t,r,n)}})),T=e.memoizeOne((function(e){return function(t,r,n){return _n(e,t,r,n)}})),k=e.memoizeOne((function(e){return function(t,r,n,i){return function(e,t,r,n,i){void 0===r&&(r=Zr(t));return t.tagName!==r||t.typeExpression!==n||t.comment!==i?f(_n(e,r,n,i),t):t}(e,t,r,n,i)}})),A={get parenthesizer(){return g()},get converters(){return m()},createNodeArray:F,createNumericLiteral:U,createBigIntLiteral:V,createStringLiteral:W,createStringLiteralFromNode:function(t){var r=q(e.getTextOfIdentifierOrLiteral(t),void 0);return r.textSourceNode=t,r},createRegularExpressionLiteral:H,createLiteralLikeNode:function(e,t){switch(e){case 8:return U(t,0);case 9:return V(t);case 10:return W(t,void 0);case 11:return Dn(t,!1);case 12:return Dn(t,!0);case 13:return H(t);case 14:return Mt(e,t,void 0,0)}},createIdentifier:X,updateIdentifier:function(t,r){return t.typeArguments!==r?f(X(e.idText(t),r),t):t},createTempVariable:Q,createLoopVariable:function(){return Y("",2)},createUniqueName:function(t,r){void 0===r&&(r=0);return e.Debug.assert(!(7&r),"Argument out of range: flags"),e.Debug.assert(32!=(48&r),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),Y(t,3|r)},getGeneratedNameForNode:$,createPrivateIdentifier:function(t){e.startsWith(t,"#")||e.Debug.fail("First character of private identifier must be #: "+t);var r=p.createBasePrivateIdentifierNode(79);return r.escapedText=e.escapeLeadingUnderscores(t),r.transformFlags|=4194304,r},createToken:ee,createSuper:function(){return ee(105)},createThis:te,createNull:function(){return ee(103)},createTrue:re,createFalse:ne,createModifier:ie,createModifiersFromModifierFlags:ae,createQualifiedName:oe,updateQualifiedName:function(e,t,r){return e.left!==t||e.right!==r?f(oe(t,r),e):e},createComputedPropertyName:se,updateComputedPropertyName:function(e,t){return e.expression!==t?f(se(t),e):e},createTypeParameterDeclaration:ce,updateTypeParameterDeclaration:function(e,t,r,n){return e.name!==t||e.constraint!==r||e.default!==n?f(ce(t,r,n),e):e},createParameterDeclaration:ue,updateParameterDeclaration:le,createDecorator:de,updateDecorator:function(e,t){return e.expression!==t?f(de(t),e):e},createPropertySignature:_e,updatePropertySignature:pe,createPropertyDeclaration:fe,updatePropertyDeclaration:ge,createMethodSignature:me,updateMethodSignature:ye,createMethodDeclaration:ve,updateMethodDeclaration:he,createConstructorDeclaration:De,updateConstructorDeclaration:xe,createGetAccessorDeclaration:be,updateGetAccessorDeclaration:Se,createSetAccessorDeclaration:Ee,updateSetAccessorDeclaration:Ce,createCallSignature:Te,updateCallSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?M(Te(t,r,n),e):e},createConstructSignature:ke,updateConstructSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?M(ke(t,r,n),e):e},createIndexSignature:Ae,updateIndexSignature:Fe,createTemplateLiteralTypeSpan:Ne,updateTemplateLiteralTypeSpan:function(e,t,r){return e.type!==t||e.literal!==r?f(Ne(t,r),e):e},createKeywordTypeNode:function(e){return ee(e)},createTypePredicateNode:Pe,updateTypePredicateNode:function(e,t,r,n){return e.assertsModifier!==t||e.parameterName!==r||e.type!==n?f(Pe(t,r,n),e):e},createTypeReferenceNode:we,updateTypeReferenceNode:function(e,t,r){return e.typeName!==t||e.typeArguments!==r?f(we(t,r),e):e},createFunctionTypeNode:Ie,updateFunctionTypeNode:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?M(Ie(t,r,n),e):e},createConstructorTypeNode:Oe,updateConstructorTypeNode:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?M(Oe(t,r,n),e):e},createTypeQueryNode:Me,updateTypeQueryNode:function(e,t){return e.exprName!==t?f(Me(t),e):e},createTypeLiteralNode:Le,updateTypeLiteralNode:function(e,t){return e.members!==t?f(Le(t),e):e},createArrayTypeNode:Re,updateArrayTypeNode:function(e,t){return e.elementType!==t?f(Re(t),e):e},createTupleTypeNode:Be,updateTupleTypeNode:function(e,t){return e.elements!==t?f(Be(t),e):e},createNamedTupleMember:je,updateNamedTupleMember:function(e,t,r,n,i){return e.dotDotDotToken!==t||e.name!==r||e.questionToken!==n||e.type!==i?f(je(t,r,n,i),e):e},createOptionalTypeNode:Je,updateOptionalTypeNode:function(e,t){return e.type!==t?f(Je(t),e):e},createRestTypeNode:Ke,updateRestTypeNode:function(e,t){return e.type!==t?f(Ke(t),e):e},createUnionTypeNode:function(e){return ze(182,e)},updateUnionTypeNode:function(e,t){return Ue(e,t)},createIntersectionTypeNode:function(e){return ze(183,e)},updateIntersectionTypeNode:function(e,t){return Ue(e,t)},createConditionalTypeNode:Ve,updateConditionalTypeNode:function(e,t,r,n,i){return e.checkType!==t||e.extendsType!==r||e.trueType!==n||e.falseType!==i?f(Ve(t,r,n,i),e):e},createInferTypeNode:qe,updateInferTypeNode:function(e,t){return e.typeParameter!==t?f(qe(t),e):e},createImportTypeNode:He,updateImportTypeNode:function(e,t,r,n,i){void 0===i&&(i=e.isTypeOf);return e.argument!==t||e.qualifier!==r||e.typeArguments!==n||e.isTypeOf!==i?f(He(t,r,n,i),e):e},createParenthesizedType:Ge,updateParenthesizedType:function(e,t){return e.type!==t?f(Ge(t),e):e},createThisTypeNode:function(){var e=N(187);return e.transformFlags=1,e},createTypeOperatorNode:Ye,updateTypeOperatorNode:function(e,t){return e.type!==t?f(Ye(e.operator,t),e):e},createIndexedAccessTypeNode:Xe,updateIndexedAccessTypeNode:function(e,t,r){return e.objectType!==t||e.indexType!==r?f(Xe(t,r),e):e},createMappedTypeNode:Qe,updateMappedTypeNode:function(e,t,r,n,i,a){return e.readonlyToken!==t||e.typeParameter!==r||e.nameType!==n||e.questionToken!==i||e.type!==a?f(Qe(t,r,n,i,a),e):e},createLiteralTypeNode:$e,updateLiteralTypeNode:function(e,t){return e.literal!==t?f($e(t),e):e},createTemplateLiteralType:We,updateTemplateLiteralType:function(e,t,r){return e.head!==t||e.templateSpans!==r?f(We(t,r),e):e},createObjectBindingPattern:Ze,updateObjectBindingPattern:function(e,t){return e.elements!==t?f(Ze(t),e):e},createArrayBindingPattern:et,updateArrayBindingPattern:function(e,t){return e.elements!==t?f(et(t),e):e},createBindingElement:tt,updateBindingElement:function(e,t,r,n,i){return e.propertyName!==r||e.dotDotDotToken!==t||e.name!==n||e.initializer!==i?f(tt(t,r,n,i),e):e},createArrayLiteralExpression:nt,updateArrayLiteralExpression:function(e,t){return e.elements!==t?f(nt(t,e.multiLine),e):e},createObjectLiteralExpression:it,updateObjectLiteralExpression:function(e,t){return e.properties!==t?f(it(t,e.multiLine),e):e},createPropertyAccessExpression:4&i?function(t,r){return e.setEmitFlags(at(t,r),131072)}:at,updatePropertyAccessExpression:function(t,r,n){if(e.isPropertyAccessChain(t))return st(t,r,t.questionDotToken,e.cast(n,e.isIdentifier));return t.expression!==r||t.name!==n?f(at(r,n),t):t},createPropertyAccessChain:4&i?function(t,r,n){return e.setEmitFlags(ot(t,r,n),131072)}:ot,updatePropertyAccessChain:st,createElementAccessExpression:ct,updateElementAccessExpression:function(t,r,n){if(e.isElementAccessChain(t))return lt(t,r,t.questionDotToken,n);return t.expression!==r||t.argumentExpression!==n?f(ct(r,n),t):t},createElementAccessChain:ut,updateElementAccessChain:lt,createCallExpression:dt,updateCallExpression:function(t,r,n,i){if(e.isCallChain(t))return pt(t,r,t.questionDotToken,n,i);return t.expression!==r||t.typeArguments!==n||t.arguments!==i?f(dt(r,n,i),t):t},createCallChain:_t,updateCallChain:pt,createNewExpression:ft,updateNewExpression:function(e,t,r,n){return e.expression!==t||e.typeArguments!==r||e.arguments!==n?f(ft(t,r,n),e):e},createTaggedTemplateExpression:gt,updateTaggedTemplateExpression:function(e,t,r,n){return e.tag!==t||e.typeArguments!==r||e.template!==n?f(gt(t,r,n),e):e},createTypeAssertion:mt,updateTypeAssertion:yt,createParenthesizedExpression:vt,updateParenthesizedExpression:ht,createFunctionExpression:Dt,updateFunctionExpression:xt,createArrowFunction:bt,updateArrowFunction:St,createDeleteExpression:Et,updateDeleteExpression:function(e,t){return e.expression!==t?f(Et(t),e):e},createTypeOfExpression:Ct,updateTypeOfExpression:function(e,t){return e.expression!==t?f(Ct(t),e):e},createVoidExpression:Tt,updateVoidExpression:function(e,t){return e.expression!==t?f(Tt(t),e):e},createAwaitExpression:kt,updateAwaitExpression:function(e,t){return e.expression!==t?f(kt(t),e):e},createPrefixUnaryExpression:At,updatePrefixUnaryExpression:function(e,t){return e.operand!==t?f(At(e.operator,t),e):e},createPostfixUnaryExpression:Ft,updatePostfixUnaryExpression:function(e,t){return e.operand!==t?f(Ft(t,e.operator),e):e},createBinaryExpression:Nt,updateBinaryExpression:function(e,t,r,n){return e.left!==t||e.operatorToken!==r||e.right!==n?f(Nt(t,r,n),e):e},createConditionalExpression:wt,updateConditionalExpression:function(e,t,r,n,i,a){return e.condition!==t||e.questionToken!==r||e.whenTrue!==n||e.colonToken!==i||e.whenFalse!==a?f(wt(t,r,n,i,a),e):e},createTemplateExpression:It,updateTemplateExpression:function(e,t,r){return e.head!==t||e.templateSpans!==r?f(It(t,r),e):e},createTemplateHead:function(e,t,r){return Ot(15,e,t,r)},createTemplateMiddle:function(e,t,r){return Ot(16,e,t,r)},createTemplateTail:function(e,t,r){return Ot(17,e,t,r)},createNoSubstitutionTemplateLiteral:function(e,t,r){return Ot(14,e,t,r)},createTemplateLiteralLikeNode:Mt,createYieldExpression:Lt,updateYieldExpression:function(e,t,r){return e.expression!==r||e.asteriskToken!==t?f(Lt(t,r),e):e},createSpreadElement:Rt,updateSpreadElement:function(e,t){return e.expression!==t?f(Rt(t),e):e},createClassExpression:Bt,updateClassExpression:jt,createOmittedExpression:function(){return rt(222)},createExpressionWithTypeArguments:Jt,updateExpressionWithTypeArguments:function(e,t,r){return e.expression!==t||e.typeArguments!==r?f(Jt(t,r),e):e},createAsExpression:Kt,updateAsExpression:zt,createNonNullExpression:Ut,updateNonNullExpression:Vt,createNonNullChain:qt,updateNonNullChain:Wt,createMetaProperty:Ht,updateMetaProperty:function(e,t){return e.name!==t?f(Ht(e.keywordToken,t),e):e},createTemplateSpan:Gt,updateTemplateSpan:function(e,t,r){return e.expression!==t||e.literal!==r?f(Gt(t,r),e):e},createSemicolonClassElement:function(){var e=N(229);return e.transformFlags|=256,e},createBlock:Yt,updateBlock:function(e,t){return e.statements!==t?f(Yt(t,e.multiLine),e):e},createVariableStatement:Xt,updateVariableStatement:Qt,createEmptyStatement:$t,createExpressionStatement:Zt,updateExpressionStatement:function(e,t){return e.expression!==t?f(Zt(t),e):e},createIfStatement:er,updateIfStatement:function(e,t,r,n){return e.expression!==t||e.thenStatement!==r||e.elseStatement!==n?f(er(t,r,n),e):e},createDoStatement:tr,updateDoStatement:function(e,t,r){return e.statement!==t||e.expression!==r?f(tr(t,r),e):e},createWhileStatement:rr,updateWhileStatement:function(e,t,r){return e.expression!==t||e.statement!==r?f(rr(t,r),e):e},createForStatement:nr,updateForStatement:function(e,t,r,n,i){return e.initializer!==t||e.condition!==r||e.incrementor!==n||e.statement!==i?f(nr(t,r,n,i),e):e},createForInStatement:ir,updateForInStatement:function(e,t,r,n){return e.initializer!==t||e.expression!==r||e.statement!==n?f(ir(t,r,n),e):e},createForOfStatement:ar,updateForOfStatement:function(e,t,r,n,i){return e.awaitModifier!==t||e.initializer!==r||e.expression!==n||e.statement!==i?f(ar(t,r,n,i),e):e},createContinueStatement:or,updateContinueStatement:function(e,t){return e.label!==t?f(or(t),e):e},createBreakStatement:sr,updateBreakStatement:function(e,t){return e.label!==t?f(sr(t),e):e},createReturnStatement:cr,updateReturnStatement:function(e,t){return e.expression!==t?f(cr(t),e):e},createWithStatement:ur,updateWithStatement:function(e,t,r){return e.expression!==t||e.statement!==r?f(ur(t,r),e):e},createSwitchStatement:lr,updateSwitchStatement:function(e,t,r){return e.expression!==t||e.caseBlock!==r?f(lr(t,r),e):e},createLabeledStatement:dr,updateLabeledStatement:_r,createThrowStatement:pr,updateThrowStatement:function(e,t){return e.expression!==t?f(pr(t),e):e},createTryStatement:fr,updateTryStatement:function(e,t,r,n){return e.tryBlock!==t||e.catchClause!==r||e.finallyBlock!==n?f(fr(t,r,n),e):e},createDebuggerStatement:function(){return N(248)},createVariableDeclaration:gr,updateVariableDeclaration:function(e,t,r,n,i){return e.name!==t||e.type!==n||e.exclamationToken!==r||e.initializer!==i?f(gr(t,r,n,i),e):e},createVariableDeclarationList:mr,updateVariableDeclarationList:function(e,t){return e.declarations!==t?f(mr(t,e.flags),e):e},createFunctionDeclaration:yr,updateFunctionDeclaration:vr,createClassDeclaration:hr,updateClassDeclaration:Dr,createInterfaceDeclaration:xr,updateInterfaceDeclaration:br,createTypeAliasDeclaration:Sr,updateTypeAliasDeclaration:Er,createEnumDeclaration:Cr,updateEnumDeclaration:Tr,createModuleDeclaration:kr,updateModuleDeclaration:Ar,createModuleBlock:Fr,updateModuleBlock:function(e,t){return e.statements!==t?f(Fr(t),e):e},createCaseBlock:Nr,updateCaseBlock:function(e,t){return e.clauses!==t?f(Nr(t),e):e},createNamespaceExportDeclaration:Pr,updateNamespaceExportDeclaration:function(e,t){return e.name!==t?f(Pr(t),e):e},createImportEqualsDeclaration:wr,updateImportEqualsDeclaration:Ir,createImportDeclaration:Or,updateImportDeclaration:Mr,createImportClause:Lr,updateImportClause:function(e,t,r,n){return e.isTypeOnly!==t||e.name!==r||e.namedBindings!==n?f(Lr(t,r,n),e):e},createNamespaceImport:Rr,updateNamespaceImport:function(e,t){return e.name!==t?f(Rr(t),e):e},createNamespaceExport:Br,updateNamespaceExport:function(e,t){return e.name!==t?f(Br(t),e):e},createNamedImports:jr,updateNamedImports:function(e,t){return e.elements!==t?f(jr(t),e):e},createImportSpecifier:Jr,updateImportSpecifier:function(e,t,r){return e.propertyName!==t||e.name!==r?f(Jr(t,r),e):e},createExportAssignment:Kr,updateExportAssignment:zr,createExportDeclaration:Ur,updateExportDeclaration:Vr,createNamedExports:qr,updateNamedExports:function(e,t){return e.elements!==t?f(qr(t),e):e},createExportSpecifier:Wr,updateExportSpecifier:function(e,t,r){return e.propertyName!==t||e.name!==r?f(Wr(t,r),e):e},createMissingDeclaration:function(){return P(271,void 0,void 0)},createExternalModuleReference:Hr,updateExternalModuleReference:function(e,t){return e.expression!==t?f(Hr(t),e):e},get createJSDocAllType(){return x(303)},get createJSDocUnknownType(){return x(304)},get createJSDocNonNullableType(){return b(306)},get updateJSDocNonNullableType(){return S(306)},get createJSDocNullableType(){return b(305)},get updateJSDocNullableType(){return S(305)},get createJSDocOptionalType(){return b(307)},get updateJSDocOptionalType(){return S(307)},get createJSDocVariadicType(){return b(309)},get updateJSDocVariadicType(){return S(309)},get createJSDocNamepathType(){return b(310)},get updateJSDocNamepathType(){return S(310)},createJSDocFunctionType:Yr,updateJSDocFunctionType:function(e,t,r){return e.parameters!==t||e.type!==r?f(Yr(t,r),e):e},createJSDocTypeLiteral:Xr,updateJSDocTypeLiteral:function(e,t,r){return e.jsDocPropertyTags!==t||e.isArrayType!==r?f(Xr(t,r),e):e},createJSDocTypeExpression:Qr,updateJSDocTypeExpression:function(e,t){return e.type!==t?f(Qr(t),e):e},createJSDocSignature:$r,updateJSDocSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?f($r(t,r,n),e):e},createJSDocTemplateTag:tn,updateJSDocTemplateTag:function(e,t,r,n,i){void 0===t&&(t=Zr(e));return e.tagName!==t||e.constraint!==r||e.typeParameters!==n||e.comment!==i?f(tn(t,r,n,i),e):e},createJSDocTypedefTag:rn,updateJSDocTypedefTag:function(e,t,r,n,i){void 0===t&&(t=Zr(e));return e.tagName!==t||e.typeExpression!==r||e.fullName!==n||e.comment!==i?f(rn(t,r,n,i),e):e},createJSDocParameterTag:nn,updateJSDocParameterTag:function(e,t,r,n,i,a,o){void 0===t&&(t=Zr(e));return e.tagName!==t||e.name!==r||e.isBracketed!==n||e.typeExpression!==i||e.isNameFirst!==a||e.comment!==o?f(nn(t,r,n,i,a,o),e):e},createJSDocPropertyTag:an,updateJSDocPropertyTag:function(e,t,r,n,i,a,o){void 0===t&&(t=Zr(e));return e.tagName!==t||e.name!==r||e.isBracketed!==n||e.typeExpression!==i||e.isNameFirst!==a||e.comment!==o?f(an(t,r,n,i,a,o),e):e},createJSDocCallbackTag:on,updateJSDocCallbackTag:function(e,t,r,n,i){void 0===t&&(t=Zr(e));return e.tagName!==t||e.typeExpression!==r||e.fullName!==n||e.comment!==i?f(on(t,r,n,i),e):e},createJSDocAugmentsTag:sn,updateJSDocAugmentsTag:function(e,t,r,n){void 0===t&&(t=Zr(e));return e.tagName!==t||e.class!==r||e.comment!==n?f(sn(t,r,n),e):e},createJSDocImplementsTag:cn,updateJSDocImplementsTag:function(e,t,r,n){void 0===t&&(t=Zr(e));return e.tagName!==t||e.class!==r||e.comment!==n?f(cn(t,r,n),e):e},createJSDocSeeTag:un,updateJSDocSeeTag:function(e,t,r,n){return e.tagName!==t||e.name!==r||e.comment!==n?f(un(t,r,n),e):e},createJSDocNameReference:ln,updateJSDocNameReference:function(e,t){return e.name!==t?f(ln(t),e):e},get createJSDocTypeTag(){return T(329)},get updateJSDocTypeTag(){return k(329)},get createJSDocReturnTag(){return T(327)},get updateJSDocReturnTag(){return k(327)},get createJSDocThisTag(){return T(328)},get updateJSDocThisTag(){return k(328)},get createJSDocEnumTag(){return T(325)},get updateJSDocEnumTag(){return k(325)},get createJSDocAuthorTag(){return E(317)},get updateJSDocAuthorTag(){return C(317)},get createJSDocClassTag(){return E(319)},get updateJSDocClassTag(){return C(319)},get createJSDocPublicTag(){return E(320)},get updateJSDocPublicTag(){return C(320)},get createJSDocPrivateTag(){return E(321)},get updateJSDocPrivateTag(){return C(321)},get createJSDocProtectedTag(){return E(322)},get updateJSDocProtectedTag(){return C(322)},get createJSDocReadonlyTag(){return E(323)},get updateJSDocReadonlyTag(){return C(323)},get createJSDocDeprecatedTag(){return E(318)},get updateJSDocDeprecatedTag(){return C(318)},createJSDocUnknownTag:pn,updateJSDocUnknownTag:function(e,t,r){return e.tagName!==t||e.comment!==r?f(pn(t,r),e):e},createJSDocComment:fn,updateJSDocComment:function(e,t,r){return e.comment!==t||e.tags!==r?f(fn(t,r),e):e},createJsxElement:gn,updateJsxElement:function(e,t,r,n){return e.openingElement!==t||e.children!==r||e.closingElement!==n?f(gn(t,r,n),e):e},createJsxSelfClosingElement:mn,updateJsxSelfClosingElement:function(e,t,r,n){return e.tagName!==t||e.typeArguments!==r||e.attributes!==n?f(mn(t,r,n),e):e},createJsxOpeningElement:yn,updateJsxOpeningElement:function(e,t,r,n){return e.tagName!==t||e.typeArguments!==r||e.attributes!==n?f(yn(t,r,n),e):e},createJsxClosingElement:vn,updateJsxClosingElement:function(e,t){return e.tagName!==t?f(vn(t),e):e},createJsxFragment:hn,createJsxText:Dn,updateJsxText:function(e,t,r){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==r?f(Dn(t,r),e):e},createJsxOpeningFragment:function(){var e=N(278);return e.transformFlags|=2,e},createJsxJsxClosingFragment:function(){var e=N(279);return e.transformFlags|=2,e},updateJsxFragment:function(e,t,r,n){return e.openingFragment!==t||e.children!==r||e.closingFragment!==n?f(hn(t,r,n),e):e},createJsxAttribute:xn,updateJsxAttribute:function(e,t,r){return e.name!==t||e.initializer!==r?f(xn(t,r),e):e},createJsxAttributes:bn,updateJsxAttributes:function(e,t){return e.properties!==t?f(bn(t),e):e},createJsxSpreadAttribute:Sn,updateJsxSpreadAttribute:function(e,t){return e.expression!==t?f(Sn(t),e):e},createJsxExpression:En,updateJsxExpression:function(e,t){return e.expression!==t?f(En(e.dotDotDotToken,t),e):e},createCaseClause:Cn,updateCaseClause:function(e,t,r){return e.expression!==t||e.statements!==r?f(Cn(t,r),e):e},createDefaultClause:Tn,updateDefaultClause:function(e,t){return e.statements!==t?f(Tn(t),e):e},createHeritageClause:kn,updateHeritageClause:function(e,t){return e.types!==t?f(kn(e.token,t),e):e},createCatchClause:An,updateCatchClause:function(e,t,r){return e.variableDeclaration!==t||e.block!==r?f(An(t,r),e):e},createPropertyAssignment:Fn,updatePropertyAssignment:function(e,t,r){return e.name!==t||e.initializer!==r?function(e,t){t.decorators&&(e.decorators=t.decorators);t.modifiers&&(e.modifiers=t.modifiers);t.questionToken&&(e.questionToken=t.questionToken);t.exclamationToken&&(e.exclamationToken=t.exclamationToken);return f(e,t)}(Fn(t,r),e):e},createShorthandPropertyAssignment:Nn,updateShorthandPropertyAssignment:function(e,t,r){return e.name!==t||e.objectAssignmentInitializer!==r?function(e,t){t.decorators&&(e.decorators=t.decorators);t.modifiers&&(e.modifiers=t.modifiers);t.equalsToken&&(e.equalsToken=t.equalsToken);t.questionToken&&(e.questionToken=t.questionToken);t.exclamationToken&&(e.exclamationToken=t.exclamationToken);return f(e,t)}(Nn(t,r),e):e},createSpreadAssignment:Pn,updateSpreadAssignment:function(e,t){return e.expression!==t?f(Pn(t),e):e},createEnumMember:wn,updateEnumMember:function(e,t,r){return e.name!==t||e.initializer!==r?f(wn(t,r),e):e},createSourceFile:function(e,t,r){var n=p.createBaseSourceFileNode(297);return n.statements=F(e),n.endOfFileToken=t,n.flags|=r,n.fileName="",n.text="",n.languageVersion=0,n.languageVariant=0,n.scriptKind=0,n.isDeclarationFile=!1,n.hasNoDefaultLib=!1,n.transformFlags|=d(n.statements)|l(n.endOfFileToken),n},updateSourceFile:function(t,r,n,i,a,o,s){void 0===n&&(n=t.isDeclarationFile);void 0===i&&(i=t.referencedFiles);void 0===a&&(a=t.typeReferenceDirectives);void 0===o&&(o=t.hasNoDefaultLib);void 0===s&&(s=t.libReferenceDirectives);return t.statements!==r||t.isDeclarationFile!==n||t.referencedFiles!==i||t.typeReferenceDirectives!==a||t.hasNoDefaultLib!==o||t.libReferenceDirectives!==s?f(function(t,r,n,i,a,o,s){var c=p.createBaseSourceFileNode(297);for(var u in t)"emitNode"!==u&&!e.hasProperty(c,u)&&e.hasProperty(t,u)&&(c[u]=t[u]);return c.flags|=t.flags,c.statements=F(r),c.endOfFileToken=t.endOfFileToken,c.isDeclarationFile=n,c.referencedFiles=i,c.typeReferenceDirectives=a,c.hasNoDefaultLib=o,c.libReferenceDirectives=s,c.transformFlags=d(c.statements)|l(c.endOfFileToken),c}(t,r,n,i,a,o,s),t):t},createBundle:In,updateBundle:function(t,r,n){void 0===n&&(n=e.emptyArray);return t.sourceFiles!==r||t.prepends!==n?f(In(r,n),t):t},createUnparsedSource:function(t,r,n){var i=N(299);return i.prologues=t,i.syntheticReferences=r,i.texts=n,i.fileName="",i.text="",i.referencedFiles=e.emptyArray,i.libReferenceDirectives=e.emptyArray,i.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(i,t)},i},createUnparsedPrologue:function(e){return On(292,e)},createUnparsedPrepend:function(e,t){var r=On(293,e);return r.texts=t,r},createUnparsedTextLike:function(e,t){return On(t?295:294,e)},createUnparsedSyntheticReference:function(e){var t=N(296);return t.data=e.data,t.section=e,t},createInputFiles:function(){var e=N(300);return e.javascriptText="",e.declarationText="",e},createSyntheticExpression:function(e,t,r){void 0===t&&(t=!1);var n=N(227);return n.type=e,n.isSpread=t,n.tupleNameSource=r,n},createSyntaxList:function(e){var t=N(334);return t._children=e,t},createNotEmittedStatement:function(t){var r=N(335);return r.original=t,e.setTextRange(r,t),r},createPartiallyEmittedExpression:Mn,updatePartiallyEmittedExpression:Ln,createCommaListExpression:Bn,updateCommaListExpression:function(e,t){return e.elements!==t?f(Bn(t),e):e},createEndOfDeclarationMarker:function(e){var t=N(339);return t.emitNode={},t.original=e,t},createMergeDeclarationMarker:function(e){var t=N(338);return t.emitNode={},t.original=e,t},createSyntheticReferenceExpression:jn,updateSyntheticReferenceExpression:function(e,t,r){return e.expression!==t||e.thisArg!==r?f(jn(t,r),e):e},cloneNode:Jn,get createComma(){return y(27)},get createAssignment(){return y(62)},get createLogicalOr(){return y(56)},get createLogicalAnd(){return y(55)},get createBitwiseOr(){return y(51)},get createBitwiseXor(){return y(52)},get createBitwiseAnd(){return y(50)},get createStrictEquality(){return y(36)},get createStrictInequality(){return y(37)},get createEquality(){return y(34)},get createInequality(){return y(35)},get createLessThan(){return y(29)},get createLessThanEquals(){return y(32)},get createGreaterThan(){return y(31)},get createGreaterThanEquals(){return y(33)},get createLeftShift(){return y(47)},get createRightShift(){return y(48)},get createUnsignedRightShift(){return y(49)},get createAdd(){return y(39)},get createSubtract(){return y(40)},get createMultiply(){return y(41)},get createDivide(){return y(43)},get createModulo(){return y(44)},get createExponent(){return y(42)},get createPrefixPlus(){return h(39)},get createPrefixMinus(){return h(40)},get createPrefixIncrement(){return h(45)},get createPrefixDecrement(){return h(46)},get createBitwiseNot(){return h(54)},get createLogicalNot(){return h(53)},get createPostfixIncrement(){return D(45)},get createPostfixDecrement(){return D(46)},createImmediatelyInvokedFunctionExpression:function(e,t,r){return dt(Dt(void 0,void 0,void 0,void 0,t?[t]:[],void 0,Yt(e,!0)),void 0,r?[r]:[])},createImmediatelyInvokedArrowFunction:function(e,t,r){return dt(bt(void 0,void 0,t?[t]:[],void 0,void 0,Yt(e,!0)),void 0,r?[r]:[])},createVoidZero:Kn,createExportDefault:function(e){return Kr(void 0,void 0,!1,e)},createExternalModuleExport:function(e){return Ur(void 0,void 0,!1,qr([Wr(void 0,e)]))},createTypeCheck:function(e,t){return"undefined"===t?A.createStrictEquality(e,Kn()):A.createStrictEquality(Ct(e),W(t))},createMethodCall:zn,createGlobalMethodCall:Un,createFunctionBindCall:function(e,t,n){return zn(e,"bind",r([t],n))},createFunctionCallCall:function(e,t,n){return zn(e,"call",r([t],n))},createFunctionApplyCall:function(e,t,r){return zn(e,"apply",[t,r])},createArraySliceCall:function(e,t){return zn(e,"slice",void 0===t?[]:[ri(t)])},createArrayConcatCall:function(e,t){return zn(e,"concat",t)},createObjectDefinePropertyCall:function(e,t,r){return Un("Object","defineProperty",[e,ri(t),r])},createPropertyDescriptor:function(t,r){var n=[];Vn(n,"enumerable",ri(t.enumerable)),Vn(n,"configurable",ri(t.configurable));var i=Vn(n,"writable",ri(t.writable));i=Vn(n,"value",t.value)||i;var a=Vn(n,"get",t.get);return a=Vn(n,"set",t.set)||a,e.Debug.assert(!(i&&a),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),it(n,!r)},createCallBinding:function(t,r,n,i){void 0===i&&(i=!1);var a,o,s=e.skipOuterExpressions(t,15);e.isSuperProperty(s)?(a=te(),o=s):e.isSuperKeyword(s)?(a=te(),o=void 0!==n&&n<2?e.setTextRange(X("_super"),s):s):4096&e.getEmitFlags(s)?(a=Kn(),o=g().parenthesizeLeftSideOfAccess(s)):e.isPropertyAccessExpression(s)?qn(s.expression,i)?(a=Q(r),o=at(e.setTextRange(A.createAssignment(a,s.expression),s.expression),s.name),e.setTextRange(o,s)):(a=s.expression,o=s):e.isElementAccessExpression(s)?qn(s.expression,i)?(a=Q(r),o=ct(e.setTextRange(A.createAssignment(a,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(a=s.expression,o=s):(a=Kn(),o=g().parenthesizeLeftSideOfAccess(t));return{target:o,thisArg:a}},inlineExpressions:function(t){return t.length>10?Bn(t):e.reduceLeft(t,A.createComma)},getInternalName:function(e,t,r){return Wn(e,t,r,49152)},getLocalName:function(e,t,r){return Wn(e,t,r,16384)},getExportName:Hn,getDeclarationName:function(e,t,r){return Wn(e,t,r)},getNamespaceMemberName:Gn,getExternalModuleOrNamespaceExportName:function(t,r,n,i){if(t&&e.hasSyntacticModifier(r,1))return Gn(t,Wn(r),n,i);return Hn(r,n,i)},restoreOuterExpressions:function t(r,n,i){void 0===i&&(i=15);if(r&&e.isOuterExpression(r,i)&&!function(t){return e.isParenthesizedExpression(t)&&e.nodeIsSynthesized(t)&&e.nodeIsSynthesized(e.getSourceMapRange(t))&&e.nodeIsSynthesized(e.getCommentRange(t))&&!e.some(e.getSyntheticLeadingComments(t))&&!e.some(e.getSyntheticTrailingComments(t))}(r))return function(e,t){switch(e.kind){case 207:return ht(e,t);case 206:return yt(e,e.type,t);case 224:return zt(e,t,e.type);case 225:return Vt(e,t);case 336:return Ln(e,t)}}(r,t(r.expression,n));return n},restoreEnclosingLabel:function t(r,n,i){if(!n)return r;var a=_r(n,n.label,e.isLabeledStatement(n.statement)?t(r,n.statement):r);i&&i(n);return a},createUseStrictPrologue:Xn,copyPrologue:function(e,t,r,n){var i=Qn(e,t,r);return $n(e,t,i,n)},copyStandardPrologue:Qn,copyCustomPrologue:$n,ensureUseStrict:function(t){if(!e.findUseStrictPrologue(t))return e.setTextRange(F(r([Xn()],t)),t);return t},liftToBlock:function(t){return e.Debug.assert(e.every(t,e.isStatementOrBlock),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||Yt(t)},mergeLexicalEnvironment:function(t,n){if(!e.some(n))return t;var i=Zn(t,e.isPrologueDirective,0),a=Zn(t,e.isHoistedFunction,i),o=Zn(t,e.isHoistedVariableStatement,a),s=Zn(n,e.isPrologueDirective,0),c=Zn(n,e.isHoistedFunction,s),u=Zn(n,e.isHoistedVariableStatement,c),l=Zn(n,e.isCustomPrologue,u);e.Debug.assert(l===n.length,"Expected declarations to be valid standard or custom prologues");var d=e.isNodeArray(t)?t.slice():t;l>u&&d.splice.apply(d,r([o,0],n.slice(u,l)));u>c&&d.splice.apply(d,r([a,0],n.slice(c,u)));c>s&&d.splice.apply(d,r([i,0],n.slice(s,c)));if(s>0)if(0===i)d.splice.apply(d,r([0,0],n.slice(0,s)));else{for(var _=new e.Map,p=0;p=0;p--){var g=n[p];_.has(g.expression.text)||d.unshift(g)}}if(e.isNodeArray(t))return e.setTextRange(F(d,t.hasTrailingComma),t);return t},updateModifiers:function(t,r){var n;"number"==typeof r&&(r=ae(r));return e.isParameter(t)?le(t,t.decorators,r,t.dotDotDotToken,t.name,t.questionToken,t.type,t.initializer):e.isPropertySignature(t)?pe(t,r,t.name,t.questionToken,t.type):e.isPropertyDeclaration(t)?ge(t,t.decorators,r,t.name,null!==(n=t.questionToken)&&void 0!==n?n:t.exclamationToken,t.type,t.initializer):e.isMethodSignature(t)?ye(t,r,t.name,t.questionToken,t.typeParameters,t.parameters,t.type):e.isMethodDeclaration(t)?he(t,t.decorators,r,t.asteriskToken,t.name,t.questionToken,t.typeParameters,t.parameters,t.type,t.body):e.isConstructorDeclaration(t)?xe(t,t.decorators,r,t.parameters,t.body):e.isGetAccessorDeclaration(t)?Se(t,t.decorators,r,t.name,t.parameters,t.type,t.body):e.isSetAccessorDeclaration(t)?Ce(t,t.decorators,r,t.name,t.parameters,t.body):e.isIndexSignatureDeclaration(t)?Fe(t,t.decorators,r,t.parameters,t.type):e.isFunctionExpression(t)?xt(t,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isArrowFunction(t)?St(t,r,t.typeParameters,t.parameters,t.type,t.equalsGreaterThanToken,t.body):e.isClassExpression(t)?jt(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members):e.isVariableStatement(t)?Qt(t,r,t.declarationList):e.isFunctionDeclaration(t)?vr(t,t.decorators,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isClassDeclaration(t)?Dr(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members):e.isInterfaceDeclaration(t)?br(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members):e.isTypeAliasDeclaration(t)?Er(t,t.decorators,r,t.name,t.typeParameters,t.type):e.isEnumDeclaration(t)?Tr(t,t.decorators,r,t.name,t.members):e.isModuleDeclaration(t)?Ar(t,t.decorators,r,t.name,t.body):e.isImportEqualsDeclaration(t)?Ir(t,t.decorators,r,t.name,t.moduleReference):e.isImportDeclaration(t)?Mr(t,t.decorators,r,t.importClause,t.moduleSpecifier):e.isExportAssignment(t)?zr(t,t.decorators,r,t.expression):e.isExportDeclaration(t)?Vr(t,t.decorators,r,t.isTypeOnly,t.exportClause,t.moduleSpecifier):e.Debug.assertNever(t)}};return A;function F(t,r){if(void 0===t||t===e.emptyArray)t=[];else if(e.isNodeArray(t))return void 0===t.transformFlags&&_(t),e.Debug.attachNodeArrayDebugInfo(t),t;var n=t.length,i=n>=1&&n<=4?t.slice():t;return e.setTextRangePosEnd(i,-1,-1),i.hasTrailingComma=!!r,_(i),e.Debug.attachNodeArrayDebugInfo(i),i}function N(e){return p.createBaseNode(e)}function P(e,t,r){var n=N(e);return n.decorators=ei(t),n.modifiers=ei(r),n.transformFlags|=d(n.decorators)|d(n.modifiers),n.symbol=void 0,n.localSymbol=void 0,n.locals=void 0,n.nextContainer=void 0,n}function w(t,r,n,i){var a=P(t,r,n);if(i=ti(i),a.name=i,i)switch(a.kind){case 165:case 167:case 168:case 163:case 288:if(e.isIdentifier(i)){a.transformFlags|=u(i);break}default:a.transformFlags|=l(i)}return a}function I(e,t,r,n,i){var a=w(e,t,r,n);return a.typeParameters=ei(i),a.transformFlags|=d(a.typeParameters),i&&(a.transformFlags|=1),a}function O(e,t,r,n,i,a,o){var s=I(e,t,r,n,i);return s.parameters=F(a),s.type=o,s.transformFlags|=d(s.parameters)|l(s.type),o&&(s.transformFlags|=1),s}function M(e,t){return t.typeArguments&&(e.typeArguments=t.typeArguments),f(e,t)}function L(e,t,r,n,i,a,o,s){var c=O(e,t,r,n,i,a,o);return c.body=s,c.transformFlags|=-8388609&l(c.body),s||(c.transformFlags|=1),c}function R(e,t){return t.exclamationToken&&(e.exclamationToken=t.exclamationToken),t.typeArguments&&(e.typeArguments=t.typeArguments),M(e,t)}function B(e,t,r,n,i,a){var o=I(e,t,r,n,i);return o.heritageClauses=ei(a),o.transformFlags|=d(o.heritageClauses),o}function j(e,t,r,n,i,a,o){var s=B(e,t,r,n,i,a);return s.members=F(o),s.transformFlags|=d(s.members),s}function J(e,t,r,n,i){var a=w(e,t,r,n);return a.initializer=i,a.transformFlags|=l(a.initializer),a}function K(e,t,r,n,i,a){var o=J(e,t,r,n,a);return o.type=i,o.transformFlags|=l(i),i&&(o.transformFlags|=1),o}function z(e,t){var r=Z(e);return r.text=t,r}function U(e,t){void 0===t&&(t=0);var r=z(8,"number"==typeof e?e+"":e);return r.numericLiteralFlags=t,384&t&&(r.transformFlags|=256),r}function V(t){var r=z(9,"string"==typeof t?t:e.pseudoBigIntToString(t)+"n");return r.transformFlags|=4,r}function q(e,t){var r=z(10,e);return r.singleQuote=t,r}function W(e,t,r){var n=q(e,t);return n.hasExtendedUnicodeEscape=r,r&&(n.transformFlags|=256),n}function H(e){return z(13,e)}function G(t,r){void 0===r&&t&&(r=e.stringToToken(t)),78===r&&(r=void 0);var n=p.createBaseIdentifierNode(78);return n.originalKeywordKind=r,n.escapedText=e.escapeLeadingUnderscores(t),n}function Y(e,t){var r=G(e,void 0);return r.autoGenerateFlags=t,r.autoGenerateId=n,n++,r}function X(e,t,r){var n=G(e,r);return t&&(n.typeArguments=F(t)),130===n.originalKeywordKind&&(n.transformFlags|=8388608),n}function Q(e,t){var r=1;t&&(r|=8);var n=Y("",r);return e&&e(n),n}function $(t,r){void 0===r&&(r=0),e.Debug.assert(!(7&r),"Argument out of range: flags");var n=Y(t&&e.isIdentifier(t)?e.idText(t):"",4|r);return n.original=t,n}function Z(e){return p.createBaseTokenNode(e)}function ee(t){e.Debug.assert(t>=0&&t<=156,"Invalid token"),e.Debug.assert(t<=14||t>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),e.Debug.assert(t<=8||t>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),e.Debug.assert(78!==t,"Invalid token. Use 'createIdentifier' to create identifiers");var r=Z(t),n=0;switch(t){case 129:n=96;break;case 122:case 120:case 121:case 142:case 125:case 133:case 84:case 128:case 144:case 155:case 141:case 145:case 147:case 131:case 148:case 113:case 152:case 150:n=1;break;case 123:case 105:n=256;break;case 107:n=4096}return n&&(r.transformFlags|=n),r}function te(){return ee(107)}function re(){return ee(109)}function ne(){return ee(94)}function ie(e){return ee(e)}function ae(e){var t=[];return 1&e&&t.push(ie(92)),2&e&&t.push(ie(133)),512&e&&t.push(ie(87)),2048&e&&t.push(ie(84)),4&e&&t.push(ie(122)),8&e&&t.push(ie(120)),16&e&&t.push(ie(121)),128&e&&t.push(ie(125)),32&e&&t.push(ie(123)),64&e&&t.push(ie(142)),256&e&&t.push(ie(129)),t}function oe(e,t){var r=N(157);return r.left=e,r.right=ti(t),r.transformFlags|=l(r.left)|u(r.right),r}function se(e){var t=N(158);return t.expression=g().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=33024|l(t.expression),t}function ce(e,t,r){var n=w(159,void 0,void 0,e);return n.constraint=t,n.default=r,n.transformFlags=1,n}function ue(t,r,n,i,a,o,s){var c=K(160,t,r,i,o,s&&g().parenthesizeExpressionForDisallowedComma(s));return c.dotDotDotToken=n,c.questionToken=a,e.isThisIdentifier(c.name)?c.transformFlags=1:(c.transformFlags|=l(c.dotDotDotToken)|l(c.questionToken),a&&(c.transformFlags|=1),92&e.modifiersToFlags(c.modifiers)&&(c.transformFlags|=2048),(s||n)&&(c.transformFlags|=256)),c}function le(e,t,r,n,i,a,o,s){return e.decorators!==t||e.modifiers!==r||e.dotDotDotToken!==n||e.name!==i||e.questionToken!==a||e.type!==o||e.initializer!==s?f(ue(t,r,n,i,a,o,s),e):e}function de(e){var t=N(161);return t.expression=g().parenthesizeLeftSideOfAccess(e),t.transformFlags|=2049|l(t.expression),t}function _e(e,t,r,n){var i=w(162,void 0,e,t);return i.type=n,i.questionToken=r,i.transformFlags=1,i}function pe(e,t,r,n,i){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.type!==i?f(_e(t,r,n,i),e):e}function fe(t,r,n,i,a,o){var s=K(163,t,r,n,a,o);return s.questionToken=i&&e.isQuestionToken(i)?i:void 0,s.exclamationToken=i&&e.isExclamationToken(i)?i:void 0,s.transformFlags|=l(s.questionToken)|l(s.exclamationToken)|4194304,(e.isComputedPropertyName(s.name)||e.hasStaticModifier(s)&&s.initializer)&&(s.transformFlags|=2048),(i||2&e.modifiersToFlags(s.modifiers))&&(s.transformFlags|=1),s}function ge(t,r,n,i,a,o,s){return t.decorators!==r||t.modifiers!==n||t.name!==i||t.questionToken!==(void 0!==a&&e.isQuestionToken(a)?a:void 0)||t.exclamationToken!==(void 0!==a&&e.isExclamationToken(a)?a:void 0)||t.type!==o||t.initializer!==s?f(fe(r,n,i,a,o,s),t):t}function me(e,t,r,n,i,a){var o=O(164,void 0,e,t,n,i,a);return o.questionToken=r,o.transformFlags=1,o}function ye(e,t,r,n,i,a,o){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.typeParameters!==i||e.parameters!==a||e.type!==o?M(me(t,r,n,i,a,o),e):e}function ve(t,r,n,i,a,o,s,c,u){var d=L(165,t,r,i,o,s,c,u);return d.asteriskToken=n,d.questionToken=a,d.transformFlags|=l(d.asteriskToken)|l(d.questionToken)|256,a&&(d.transformFlags|=1),256&e.modifiersToFlags(d.modifiers)?d.transformFlags|=n?32:64:n&&(d.transformFlags|=512),d}function he(e,t,r,n,i,a,o,s,c,u){return e.decorators!==t||e.modifiers!==r||e.asteriskToken!==n||e.name!==i||e.questionToken!==a||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==u?R(ve(t,r,n,i,a,o,s,c,u),e):e}function De(e,t,r,n){var i=L(166,e,t,void 0,void 0,r,void 0,n);return i.transformFlags|=256,i}function xe(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.parameters!==n||e.body!==i?R(De(t,r,n,i),e):e}function be(e,t,r,n,i,a){return L(167,e,t,r,void 0,n,i,a)}function Se(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.parameters!==i||e.type!==a||e.body!==o?R(be(t,r,n,i,a,o),e):e}function Ee(e,t,r,n,i){return L(168,e,t,r,void 0,n,void 0,i)}function Ce(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.parameters!==i||e.body!==a?R(Ee(t,r,n,i,a),e):e}function Te(e,t,r){var n=O(169,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function ke(e,t,r){var n=O(170,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function Ae(e,t,r,n){var i=O(171,e,t,void 0,void 0,r,n);return i.transformFlags=1,i}function Fe(e,t,r,n,i){return e.parameters!==n||e.type!==i||e.decorators!==t||e.modifiers!==r?M(Ae(t,r,n,i),e):e}function Ne(e,t){var r=N(194);return r.type=e,r.literal=t,r.transformFlags=1,r}function Pe(e,t,r){var n=N(172);return n.assertsModifier=e,n.parameterName=ti(t),n.type=r,n.transformFlags=1,n}function we(e,t){var r=N(173);return r.typeName=ti(e),r.typeArguments=t&&g().parenthesizeTypeArguments(F(t)),r.transformFlags=1,r}function Ie(e,t,r){var n=O(174,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function Oe(e,t,r){var n=O(175,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function Me(e){var t=N(176);return t.exprName=e,t.transformFlags=1,t}function Le(e){var t=N(177);return t.members=F(e),t.transformFlags=1,t}function Re(e){var t=N(178);return t.elementType=g().parenthesizeElementTypeOfArrayType(e),t.transformFlags=1,t}function Be(e){var t=N(179);return t.elements=F(e),t.transformFlags=1,t}function je(e,t,r,n){var i=N(192);return i.dotDotDotToken=e,i.name=t,i.questionToken=r,i.type=n,i.transformFlags=1,i}function Je(e){var t=N(180);return t.type=g().parenthesizeElementTypeOfArrayType(e),t.transformFlags=1,t}function Ke(e){var t=N(181);return t.type=e,t.transformFlags=1,t}function ze(e,t){var r=N(e);return r.types=g().parenthesizeConstituentTypesOfUnionOrIntersectionType(t),r.transformFlags=1,r}function Ue(e,t){return e.types!==t?f(ze(e.kind,t),e):e}function Ve(e,t,r,n){var i=N(184);return i.checkType=g().parenthesizeMemberOfConditionalType(e),i.extendsType=g().parenthesizeMemberOfConditionalType(t),i.trueType=r,i.falseType=n,i.transformFlags=1,i}function qe(e){var t=N(185);return t.typeParameter=e,t.transformFlags=1,t}function We(e,t){var r=N(193);return r.head=e,r.templateSpans=F(t),r.transformFlags=1,r}function He(e,t,r,n){void 0===n&&(n=!1);var i=N(195);return i.argument=e,i.qualifier=t,i.typeArguments=r&&g().parenthesizeTypeArguments(r),i.isTypeOf=n,i.transformFlags=1,i}function Ge(e){var t=N(186);return t.type=e,t.transformFlags=1,t}function Ye(e,t){var r=N(188);return r.operator=e,r.type=g().parenthesizeMemberOfElementType(t),r.transformFlags=1,r}function Xe(e,t){var r=N(189);return r.objectType=g().parenthesizeMemberOfElementType(e),r.indexType=t,r.transformFlags=1,r}function Qe(e,t,r,n,i){var a=N(190);return a.readonlyToken=e,a.typeParameter=t,a.nameType=r,a.questionToken=n,a.type=i,a.transformFlags=1,a}function $e(e){var t=N(191);return t.literal=e,t.transformFlags=1,t}function Ze(e){var t=N(196);return t.elements=F(e),t.transformFlags|=131328|d(t.elements),8192&t.transformFlags&&(t.transformFlags|=16416),t}function et(e){var t=N(197);return t.elements=F(e),t.transformFlags|=131328|d(t.elements),t}function tt(t,r,n,i){var a=J(198,void 0,void 0,n,i);return a.propertyName=ti(r),a.dotDotDotToken=t,a.transformFlags|=256|l(a.dotDotDotToken),a.propertyName&&(a.transformFlags|=e.isIdentifier(a.propertyName)?u(a.propertyName):l(a.propertyName)),t&&(a.transformFlags|=8192),a}function rt(e){return N(e)}function nt(e,t){var r=rt(199);return r.elements=g().parenthesizeExpressionsOfCommaDelimitedList(F(e)),r.multiLine=t,r.transformFlags|=d(r.elements),r}function it(e,t){var r=rt(200);return r.properties=F(e),r.multiLine=t,r.transformFlags|=d(r.properties),r}function at(t,r){var n=rt(201);return n.expression=g().parenthesizeLeftSideOfAccess(t),n.name=ti(r),n.transformFlags=l(n.expression)|(e.isIdentifier(n.name)?u(n.name):l(n.name)),e.isSuperKeyword(t)&&(n.transformFlags|=96),n}function ot(t,r,n){var i=rt(201);return i.flags|=32,i.expression=g().parenthesizeLeftSideOfAccess(t),i.questionDotToken=r,i.name=ti(n),i.transformFlags|=8|l(i.expression)|l(i.questionDotToken)|(e.isIdentifier(i.name)?u(i.name):l(i.name)),i}function st(t,r,n,i){return e.Debug.assert(!!(32&t.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),t.expression!==r||t.questionDotToken!==n||t.name!==i?f(ot(r,n,i),t):t}function ct(t,r){var n=rt(202);return n.expression=g().parenthesizeLeftSideOfAccess(t),n.argumentExpression=ri(r),n.transformFlags|=l(n.expression)|l(n.argumentExpression),e.isSuperKeyword(t)&&(n.transformFlags|=96),n}function ut(e,t,r){var n=rt(202);return n.flags|=32,n.expression=g().parenthesizeLeftSideOfAccess(e),n.questionDotToken=t,n.argumentExpression=ri(r),n.transformFlags|=l(n.expression)|l(n.questionDotToken)|l(n.argumentExpression)|8,n}function lt(t,r,n,i){return e.Debug.assert(!!(32&t.flags),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),t.expression!==r||t.questionDotToken!==n||t.argumentExpression!==i?f(ut(r,n,i),t):t}function dt(t,r,n){var i=rt(203);return i.expression=g().parenthesizeLeftSideOfAccess(t),i.typeArguments=ei(r),i.arguments=g().parenthesizeExpressionsOfCommaDelimitedList(F(n)),i.transformFlags|=l(i.expression)|d(i.typeArguments)|d(i.arguments),i.typeArguments&&(i.transformFlags|=1),e.isImportKeyword(i.expression)?i.transformFlags|=2097152:e.isSuperProperty(i.expression)&&(i.transformFlags|=4096),i}function _t(t,r,n,i){var a=rt(203);return a.flags|=32,a.expression=g().parenthesizeLeftSideOfAccess(t),a.questionDotToken=r,a.typeArguments=ei(n),a.arguments=g().parenthesizeExpressionsOfCommaDelimitedList(F(i)),a.transformFlags|=l(a.expression)|l(a.questionDotToken)|d(a.typeArguments)|d(a.arguments)|8,a.typeArguments&&(a.transformFlags|=1),e.isSuperProperty(a.expression)&&(a.transformFlags|=4096),a}function pt(t,r,n,i,a){return e.Debug.assert(!!(32&t.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),t.expression!==r||t.questionDotToken!==n||t.typeArguments!==i||t.arguments!==a?f(_t(r,n,i,a),t):t}function ft(e,t,r){var n=rt(204);return n.expression=g().parenthesizeExpressionOfNew(e),n.typeArguments=ei(t),n.arguments=r?g().parenthesizeExpressionsOfCommaDelimitedList(r):void 0,n.transformFlags|=l(n.expression)|d(n.typeArguments)|d(n.arguments)|8,n.typeArguments&&(n.transformFlags|=1),n}function gt(t,r,n){var i=rt(205);return i.tag=g().parenthesizeLeftSideOfAccess(t),i.typeArguments=ei(r),i.template=n,i.transformFlags|=l(i.tag)|d(i.typeArguments)|l(i.template)|256,i.typeArguments&&(i.transformFlags|=1),e.hasInvalidEscape(i.template)&&(i.transformFlags|=32),i}function mt(e,t){var r=rt(206);return r.expression=g().parenthesizeOperandOfPrefixUnary(t),r.type=e,r.transformFlags|=l(r.expression)|l(r.type)|1,r}function yt(e,t,r){return e.type!==t||e.expression!==r?f(mt(t,r),e):e}function vt(e){var t=rt(207);return t.expression=e,t.transformFlags=l(t.expression),t}function ht(e,t){return e.expression!==t?f(vt(t),e):e}function Dt(t,r,n,i,a,o,s){var c=L(208,void 0,t,n,i,a,o,s);return c.asteriskToken=r,c.transformFlags|=l(c.asteriskToken),c.typeParameters&&(c.transformFlags|=1),256&e.modifiersToFlags(c.modifiers)?c.asteriskToken?c.transformFlags|=32:c.transformFlags|=64:c.asteriskToken&&(c.transformFlags|=512),c}function xt(e,t,r,n,i,a,o,s){return e.name!==n||e.modifiers!==t||e.asteriskToken!==r||e.typeParameters!==i||e.parameters!==a||e.type!==o||e.body!==s?R(Dt(t,r,n,i,a,o,s),e):e}function bt(t,r,n,i,a,o){var s=L(209,void 0,t,void 0,r,n,i,g().parenthesizeConciseBodyOfArrowFunction(o));return s.equalsGreaterThanToken=null!=a?a:ee(38),s.transformFlags|=256|l(s.equalsGreaterThanToken),256&e.modifiersToFlags(s.modifiers)&&(s.transformFlags|=64),s}function St(e,t,r,n,i,a,o){return e.modifiers!==t||e.typeParameters!==r||e.parameters!==n||e.type!==i||e.equalsGreaterThanToken!==a||e.body!==o?R(bt(t,r,n,i,a,o),e):e}function Et(e){var t=rt(210);return t.expression=g().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=l(t.expression),t}function Ct(e){var t=rt(211);return t.expression=g().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=l(t.expression),t}function Tt(e){var t=rt(212);return t.expression=g().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=l(t.expression),t}function kt(e){var t=rt(213);return t.expression=g().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=524384|l(t.expression),t}function At(e,t){var r=rt(214);return r.operator=e,r.operand=g().parenthesizeOperandOfPrefixUnary(t),r.transformFlags|=l(r.operand),r}function Ft(e,t){var r=rt(215);return r.operator=t,r.operand=g().parenthesizeOperandOfPostfixUnary(e),r.transformFlags=l(r.operand),r}function Nt(t,r,n){var i,a=rt(216),o="number"==typeof(i=r)?ee(i):i,s=o.kind;return a.left=g().parenthesizeLeftSideOfBinary(s,t),a.operatorToken=o,a.right=g().parenthesizeRightSideOfBinary(s,a.left,n),a.transformFlags|=l(a.left)|l(a.operatorToken)|l(a.right),60===s?a.transformFlags|=8:62===s?e.isObjectLiteralExpression(a.left)?a.transformFlags|=1312|Pt(a.left):e.isArrayLiteralExpression(a.left)&&(a.transformFlags|=1280|Pt(a.left)):42===s||66===s?a.transformFlags|=128:e.isLogicalOrCoalescingAssignmentOperator(s)&&(a.transformFlags|=4),a}function Pt(t){if(16384&t.transformFlags)return 16384;if(32&t.transformFlags)for(var r=0,n=e.getElementsOfBindingOrAssignmentPattern(t);r0;default:return!0}}function Wn(t,r,n,i){void 0===i&&(i=0);var a=e.getNameOfDeclaration(t);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.setParent(e.setTextRange(Jn(a),a),a.parent);return i|=e.getEmitFlags(a),n||(i|=48),r||(i|=1536),i&&e.setEmitFlags(o,i),o}return $(t)}function Hn(e,t,r){return Wn(e,t,r,8192)}function Gn(t,r,n,i){var a=at(t,e.nodeIsSynthesized(r)?r:Jn(r));e.setTextRange(a,r);var o=0;return i||(o|=48),n||(o|=1536),o&&e.setEmitFlags(a,o),a}function Yn(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function Xn(){return e.startOnNewLine(Zt(W("use strict")))}function Qn(t,r,n){e.Debug.assert(0===r.length,"Prologue directives should be at the first statement in the target statements array");for(var i=!1,a=0,o=t.length;a=172&&e<=195)return-2;switch(e){case 203:case 204:case 199:return 536879104;case 256:return 546379776;case 160:return 536870912;case 209:return 547309568;case 208:case 251:return 547313664;case 250:return 537018368;case 252:case 221:return 536905728;case 166:return 547311616;case 163:return 536875008;case 165:case 167:case 168:return 538923008;case 128:case 144:case 155:case 141:case 147:case 145:case 131:case 148:case 113:case 159:case 162:case 164:case 169:case 170:case 171:case 253:case 254:return-2;case 200:return 536922112;case 287:return 536887296;case 196:case 197:return 536879104;case 206:case 224:case 336:case 207:case 105:return 536870912;case 201:case 202:default:return 536870912}}e.getTransformFlagsSubtreeExclusions=p;var f=e.createBaseNodeFactory();function g(e){return e.flags|=8,e}var m,y={createBaseSourceFileNode:function(e){return g(f.createBaseSourceFileNode(e))},createBaseIdentifierNode:function(e){return g(f.createBaseIdentifierNode(e))},createBasePrivateIdentifierNode:function(e){return g(f.createBasePrivateIdentifierNode(e))},createBaseTokenNode:function(e){return g(f.createBaseTokenNode(e))},createBaseNode:function(e){return g(f.createBaseNode(e))}};function v(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,d=t.startsOnNewLine;r||(r={});i&&(r.leadingComments=e.addRange(i.slice(),r.leadingComments));a&&(r.trailingComments=e.addRange(a.slice(),r.trailingComments));n&&(r.flags=n);o&&(r.commentRange=o);s&&(r.sourceMapRange=s);c&&(r.tokenSourceMapRanges=function(e,t){t||(t=[]);for(var r in e)t[r]=e[r];return t}(c,r.tokenSourceMapRanges));void 0!==u&&(r.constantValue=u);if(l)for(var _=0,p=l;_0&&(o[u-c]=l)}c>0&&(o.length-=c)}},e.ignoreSourceNewlines=function(e){return t(e).flags|=134217728,e}}(u||(u={})),function(e){function t(e){for(var t=[],r=1;r=2)return n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"assign"),void 0,r);return t.requestEmitHelper(e.assignHelper),n.createCallExpression(i("__assign"),void 0,r)},createAwaitHelper:function(r){return t.requestEmitHelper(e.awaitHelper),n.createCallExpression(i("__await"),void 0,[r])},createAsyncGeneratorHelper:function(r,a){return t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncGeneratorHelper),(r.emitNode||(r.emitNode={})).flags|=786432,n.createCallExpression(i("__asyncGenerator"),void 0,[a?n.createThis():n.createVoidZero(),n.createIdentifier("arguments"),r])},createAsyncDelegatorHelper:function(r){return t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncDelegator),n.createCallExpression(i("__asyncDelegator"),void 0,[r])},createAsyncValuesHelper:function(r){return t.requestEmitHelper(e.asyncValues),n.createCallExpression(i("__asyncValues"),void 0,[r])},createRestHelper:function(r,a,o,s){t.requestEmitHelper(e.restHelper);for(var c=[],u=0,l=0;l= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},e.metadataHelper={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},e.paramHelper={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"},e.assignHelper={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };"},e.awaitHelper={name:"typescript:await",importName:"__await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"},e.asyncGeneratorHelper={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[e.awaitHelper],text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'},e.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[e.awaitHelper],text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }\n };'},e.asyncValues={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'},e.restHelper={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };'},e.awaiterHelper={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'},e.extendsHelper={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:"\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();"},e.templateObjectHelper={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'},e.readHelper={name:"typescript:read",importName:"__read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'},e.spreadHelper={name:"typescript:spread",importName:"__spread",scoped:!1,dependencies:[e.readHelper],text:"\n var __spread = (this && this.__spread) || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n return ar;\n };"},e.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.valuesHelper={name:"typescript:values",importName:"__values",scoped:!1,text:'\n var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === "number") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };'},e.generatorHelper={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'},e.createBindingHelper={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:"\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));"},e.setModuleDefaultHelper={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n }) : function(o, v) {\n o["default"] = v;\n });'},e.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[e.createBindingHelper,e.setModuleDefaultHelper],priority:2,text:'\n var __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n };'},e.importDefaultHelper={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n var __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n };'},e.exportStarHelper={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[e.createBindingHelper],priority:2,text:'\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };'},e.classPrivateFieldGetHelper={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {\n if (!privateMap.has(receiver)) {\n throw new TypeError("attempted to get private field on non-instance");\n }\n return privateMap.get(receiver);\n };'},e.classPrivateFieldSetHelper={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {\n if (!privateMap.has(receiver)) {\n throw new TypeError("attempted to set private field on non-instance");\n }\n privateMap.set(receiver, value);\n return value;\n };'},e.getAllUnscopedEmitHelpers=function(){return n||(n=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.spreadHelper,e.spreadArraysHelper,e.valuesHelper,e.readHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper,e.exportStarHelper,e.classPrivateFieldGetHelper,e.classPrivateFieldSetHelper,e.createBindingHelper,e.setModuleDefaultHelper],(function(e){return e.name})))},e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:t(a(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:t(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")}}(u||(u={})),function(e){e.isNumericLiteral=function(e){return 8===e.kind},e.isBigIntLiteral=function(e){return 9===e.kind},e.isStringLiteral=function(e){return 10===e.kind},e.isJsxText=function(e){return 11===e.kind},e.isRegularExpressionLiteral=function(e){return 13===e.kind},e.isNoSubstitutionTemplateLiteral=function(e){return 14===e.kind},e.isTemplateHead=function(e){return 15===e.kind},e.isTemplateMiddle=function(e){return 16===e.kind},e.isTemplateTail=function(e){return 17===e.kind},e.isIdentifier=function(e){return 78===e.kind},e.isQualifiedName=function(e){return 157===e.kind},e.isComputedPropertyName=function(e){return 158===e.kind},e.isPrivateIdentifier=function(e){return 79===e.kind},e.isSuperKeyword=function(e){return 105===e.kind},e.isImportKeyword=function(e){return 99===e.kind},e.isCommaToken=function(e){return 27===e.kind},e.isQuestionToken=function(e){return 57===e.kind},e.isExclamationToken=function(e){return 53===e.kind},e.isTypeParameterDeclaration=function(e){return 159===e.kind},e.isParameter=function(e){return 160===e.kind},e.isDecorator=function(e){return 161===e.kind},e.isPropertySignature=function(e){return 162===e.kind},e.isPropertyDeclaration=function(e){return 163===e.kind},e.isMethodSignature=function(e){return 164===e.kind},e.isMethodDeclaration=function(e){return 165===e.kind},e.isConstructorDeclaration=function(e){return 166===e.kind},e.isGetAccessorDeclaration=function(e){return 167===e.kind},e.isSetAccessorDeclaration=function(e){return 168===e.kind},e.isCallSignatureDeclaration=function(e){return 169===e.kind},e.isConstructSignatureDeclaration=function(e){return 170===e.kind},e.isIndexSignatureDeclaration=function(e){return 171===e.kind},e.isTypePredicateNode=function(e){return 172===e.kind},e.isTypeReferenceNode=function(e){return 173===e.kind},e.isFunctionTypeNode=function(e){return 174===e.kind},e.isConstructorTypeNode=function(e){return 175===e.kind},e.isTypeQueryNode=function(e){return 176===e.kind},e.isTypeLiteralNode=function(e){return 177===e.kind},e.isArrayTypeNode=function(e){return 178===e.kind},e.isTupleTypeNode=function(e){return 179===e.kind},e.isNamedTupleMember=function(e){return 192===e.kind},e.isOptionalTypeNode=function(e){return 180===e.kind},e.isRestTypeNode=function(e){return 181===e.kind},e.isUnionTypeNode=function(e){return 182===e.kind},e.isIntersectionTypeNode=function(e){return 183===e.kind},e.isConditionalTypeNode=function(e){return 184===e.kind},e.isInferTypeNode=function(e){return 185===e.kind},e.isParenthesizedTypeNode=function(e){return 186===e.kind},e.isThisTypeNode=function(e){return 187===e.kind},e.isTypeOperatorNode=function(e){return 188===e.kind},e.isIndexedAccessTypeNode=function(e){return 189===e.kind},e.isMappedTypeNode=function(e){return 190===e.kind},e.isLiteralTypeNode=function(e){return 191===e.kind},e.isImportTypeNode=function(e){return 195===e.kind},e.isTemplateLiteralTypeSpan=function(e){return 194===e.kind},e.isTemplateLiteralTypeNode=function(e){return 193===e.kind},e.isObjectBindingPattern=function(e){return 196===e.kind},e.isArrayBindingPattern=function(e){return 197===e.kind},e.isBindingElement=function(e){return 198===e.kind},e.isArrayLiteralExpression=function(e){return 199===e.kind},e.isObjectLiteralExpression=function(e){return 200===e.kind},e.isPropertyAccessExpression=function(e){return 201===e.kind},e.isElementAccessExpression=function(e){return 202===e.kind},e.isCallExpression=function(e){return 203===e.kind},e.isNewExpression=function(e){return 204===e.kind},e.isTaggedTemplateExpression=function(e){return 205===e.kind},e.isTypeAssertionExpression=function(e){return 206===e.kind},e.isParenthesizedExpression=function(e){return 207===e.kind},e.isFunctionExpression=function(e){return 208===e.kind},e.isArrowFunction=function(e){return 209===e.kind},e.isDeleteExpression=function(e){return 210===e.kind},e.isTypeOfExpression=function(e){return 211===e.kind},e.isVoidExpression=function(e){return 212===e.kind},e.isAwaitExpression=function(e){return 213===e.kind},e.isPrefixUnaryExpression=function(e){return 214===e.kind},e.isPostfixUnaryExpression=function(e){return 215===e.kind},e.isBinaryExpression=function(e){return 216===e.kind},e.isConditionalExpression=function(e){return 217===e.kind},e.isTemplateExpression=function(e){return 218===e.kind},e.isYieldExpression=function(e){return 219===e.kind},e.isSpreadElement=function(e){return 220===e.kind},e.isClassExpression=function(e){return 221===e.kind},e.isOmittedExpression=function(e){return 222===e.kind},e.isExpressionWithTypeArguments=function(e){return 223===e.kind},e.isAsExpression=function(e){return 224===e.kind},e.isNonNullExpression=function(e){return 225===e.kind},e.isMetaProperty=function(e){return 226===e.kind},e.isSyntheticExpression=function(e){return 227===e.kind},e.isPartiallyEmittedExpression=function(e){return 336===e.kind},e.isCommaListExpression=function(e){return 337===e.kind},e.isTemplateSpan=function(e){return 228===e.kind},e.isSemicolonClassElement=function(e){return 229===e.kind},e.isBlock=function(e){return 230===e.kind},e.isVariableStatement=function(e){return 232===e.kind},e.isEmptyStatement=function(e){return 231===e.kind},e.isExpressionStatement=function(e){return 233===e.kind},e.isIfStatement=function(e){return 234===e.kind},e.isDoStatement=function(e){return 235===e.kind},e.isWhileStatement=function(e){return 236===e.kind},e.isForStatement=function(e){return 237===e.kind},e.isForInStatement=function(e){return 238===e.kind},e.isForOfStatement=function(e){return 239===e.kind},e.isContinueStatement=function(e){return 240===e.kind},e.isBreakStatement=function(e){return 241===e.kind},e.isReturnStatement=function(e){return 242===e.kind},e.isWithStatement=function(e){return 243===e.kind},e.isSwitchStatement=function(e){return 244===e.kind},e.isLabeledStatement=function(e){return 245===e.kind},e.isThrowStatement=function(e){return 246===e.kind},e.isTryStatement=function(e){return 247===e.kind},e.isDebuggerStatement=function(e){return 248===e.kind},e.isVariableDeclaration=function(e){return 249===e.kind},e.isVariableDeclarationList=function(e){return 250===e.kind},e.isFunctionDeclaration=function(e){return 251===e.kind},e.isClassDeclaration=function(e){return 252===e.kind},e.isInterfaceDeclaration=function(e){return 253===e.kind},e.isTypeAliasDeclaration=function(e){return 254===e.kind},e.isEnumDeclaration=function(e){return 255===e.kind},e.isModuleDeclaration=function(e){return 256===e.kind},e.isModuleBlock=function(e){return 257===e.kind},e.isCaseBlock=function(e){return 258===e.kind},e.isNamespaceExportDeclaration=function(e){return 259===e.kind},e.isImportEqualsDeclaration=function(e){return 260===e.kind},e.isImportDeclaration=function(e){return 261===e.kind},e.isImportClause=function(e){return 262===e.kind},e.isNamespaceImport=function(e){return 263===e.kind},e.isNamespaceExport=function(e){return 269===e.kind},e.isNamedImports=function(e){return 264===e.kind},e.isImportSpecifier=function(e){return 265===e.kind},e.isExportAssignment=function(e){return 266===e.kind},e.isExportDeclaration=function(e){return 267===e.kind},e.isNamedExports=function(e){return 268===e.kind},e.isExportSpecifier=function(e){return 270===e.kind},e.isMissingDeclaration=function(e){return 271===e.kind},e.isNotEmittedStatement=function(e){return 335===e.kind},e.isSyntheticReference=function(e){return 340===e.kind},e.isMergeDeclarationMarker=function(e){return 338===e.kind},e.isEndOfDeclarationMarker=function(e){return 339===e.kind},e.isExternalModuleReference=function(e){return 272===e.kind},e.isJsxElement=function(e){return 273===e.kind},e.isJsxSelfClosingElement=function(e){return 274===e.kind},e.isJsxOpeningElement=function(e){return 275===e.kind},e.isJsxClosingElement=function(e){return 276===e.kind},e.isJsxFragment=function(e){return 277===e.kind},e.isJsxOpeningFragment=function(e){return 278===e.kind},e.isJsxClosingFragment=function(e){return 279===e.kind},e.isJsxAttribute=function(e){return 280===e.kind},e.isJsxAttributes=function(e){return 281===e.kind},e.isJsxSpreadAttribute=function(e){return 282===e.kind},e.isJsxExpression=function(e){return 283===e.kind},e.isCaseClause=function(e){return 284===e.kind},e.isDefaultClause=function(e){return 285===e.kind},e.isHeritageClause=function(e){return 286===e.kind},e.isCatchClause=function(e){return 287===e.kind},e.isPropertyAssignment=function(e){return 288===e.kind},e.isShorthandPropertyAssignment=function(e){return 289===e.kind},e.isSpreadAssignment=function(e){return 290===e.kind},e.isEnumMember=function(e){return 291===e.kind},e.isUnparsedPrepend=function(e){return 293===e.kind},e.isSourceFile=function(e){return 297===e.kind},e.isBundle=function(e){return 298===e.kind},e.isUnparsedSource=function(e){return 299===e.kind},e.isJSDocTypeExpression=function(e){return 301===e.kind},e.isJSDocNameReference=function(e){return 302===e.kind},e.isJSDocAllType=function(e){return 303===e.kind},e.isJSDocUnknownType=function(e){return 304===e.kind},e.isJSDocNullableType=function(e){return 305===e.kind},e.isJSDocNonNullableType=function(e){return 306===e.kind},e.isJSDocOptionalType=function(e){return 307===e.kind},e.isJSDocFunctionType=function(e){return 308===e.kind},e.isJSDocVariadicType=function(e){return 309===e.kind},e.isJSDocNamepathType=function(e){return 310===e.kind},e.isJSDoc=function(e){return 311===e.kind},e.isJSDocTypeLiteral=function(e){return 312===e.kind},e.isJSDocSignature=function(e){return 313===e.kind},e.isJSDocAugmentsTag=function(e){return 315===e.kind},e.isJSDocAuthorTag=function(e){return 317===e.kind},e.isJSDocClassTag=function(e){return 319===e.kind},e.isJSDocCallbackTag=function(e){return 324===e.kind},e.isJSDocPublicTag=function(e){return 320===e.kind},e.isJSDocPrivateTag=function(e){return 321===e.kind},e.isJSDocProtectedTag=function(e){return 322===e.kind},e.isJSDocReadonlyTag=function(e){return 323===e.kind},e.isJSDocDeprecatedTag=function(e){return 318===e.kind},e.isJSDocEnumTag=function(e){return 325===e.kind},e.isJSDocParameterTag=function(e){return 326===e.kind},e.isJSDocReturnTag=function(e){return 327===e.kind},e.isJSDocThisTag=function(e){return 328===e.kind},e.isJSDocTypeTag=function(e){return 329===e.kind},e.isJSDocTemplateTag=function(e){return 330===e.kind},e.isJSDocTypedefTag=function(e){return 331===e.kind},e.isJSDocUnknownTag=function(e){return 314===e.kind},e.isJSDocPropertyTag=function(e){return 333===e.kind},e.isJSDocImplementsTag=function(e){return 316===e.kind},e.isSyntaxList=function(e){return 334===e.kind}}(u||(u={})),function(e){function t(t,r,n,i){if(e.isComputedPropertyName(n))return e.setTextRange(t.createElementAccessExpression(r,n.expression),i);var a=e.setTextRange(e.isIdentifierOrPrivateIdentifier(n)?t.createPropertyAccessExpression(r,n):t.createElementAccessExpression(r,n),n);return e.getOrCreateEmitNode(a).flags|=64,a}function n(t,r){var n=e.parseNodeFactory.createIdentifier(t||"React");return e.setParent(n,e.getParseTreeNode(r)),n}function i(t,r,a){if(e.isQualifiedName(r)){var o=i(t,r.left,a),s=t.createIdentifier(e.idText(r.right));return s.escapedText=r.right.escapedText,t.createPropertyAccessExpression(o,s)}return n(e.idText(r),a)}function a(e,t,r,a){return t?i(e,t,a):e.createPropertyAccessExpression(n(r,a),"createElement")}function o(t,r){return e.isIdentifier(r)?t.createStringLiteralFromNode(r):e.isComputedPropertyName(r)?e.setParent(e.setTextRange(t.cloneNode(r.expression),r.expression),r.expression.parent):e.setParent(e.setTextRange(t.cloneNode(r),r),r.parent)}function s(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function c(e,t){switch(void 0===t&&(t=15),e.kind){case 207:return 0!=(1&t);case 206:case 224:return 0!=(2&t);case 225:return 0!=(4&t);case 336:return 0!=(8&t)}return!1}function u(e,t){for(void 0===t&&(t=15);c(e,t);)e=e.expression;return e}function l(t){return e.setStartsOnNewLine(t,!0)}function d(t){var r=e.getOriginalNode(t,e.isSourceFile),n=r&&r.emitNode;return n&&n.externalHelpersModuleName}function _(t,r,n,i,a){if(n.importHelpers&&e.isEffectiveExternalModule(r,n)){var o=d(r);if(o)return o;var s=e.getEmitModuleKind(n),c=(i||n.esModuleInterop&&a)&&s!==e.ModuleKind.System&&s0)if(i||s.push(t.createNull()),a.length>1)for(var c=0,u=a;c0)if(c.length>1)for(var p=0,f=c;p=e.ModuleKind.ES2015&&u<=e.ModuleKind.ESNext){var l=e.getEmitHelpers(n);if(l){for(var d=[],p=0,f=l;pt.checkJsDirective.pos)&&(t.checkJsDirective={enabled:"ts-check"===i,end:e.range.end,pos:e.range.pos})}));break;case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:e.Debug.fail("Unhandled pragma kind")}}))}!function(e){e[e.None=0]="None",e[e.Yield=1]="Yield",e[e.Await=2]="Await",e[e.Type=4]="Type",e[e.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",e[e.JSDoc=32]="JSDoc"}(t||(t={})),function(e){e[e.TryParse=0]="TryParse",e[e.Lookahead=1]="Lookahead",e[e.Reparse=2]="Reparse"}(r||(r={})),e.parseBaseNodeFactory={createBaseSourceFileNode:function(t){return new(s||(s=e.objectAllocator.getSourceFileConstructor()))(t,-1,-1)},createBaseIdentifierNode:function(t){return new(a||(a=e.objectAllocator.getIdentifierConstructor()))(t,-1,-1)},createBasePrivateIdentifierNode:function(t){return new(o||(o=e.objectAllocator.getPrivateIdentifierConstructor()))(t,-1,-1)},createBaseTokenNode:function(t){return new(i||(i=e.objectAllocator.getTokenConstructor()))(t,-1,-1)},createBaseNode:function(t){return new(n||(n=e.objectAllocator.getNodeConstructor()))(t,-1,-1)}},e.parseNodeFactory=e.createNodeFactory(1,e.parseBaseNodeFactory),e.isJSDocLikeText=_,e.forEachChild=p,e.forEachChildRecursively=function(t,r,n){for(var i=[t];i.length;){var a=i.pop(),o=c(a,s(a));if(o)return o}return;function s(e){var t=[];return p(e,r,r),t;function r(e){t.unshift(e)}}function c(t,a){for(var o=0,s=a;o=0;u--){var l=c[u];if(d=r(l,t)){if("skip"===d)continue;return d}i.push(l)}}else{var d;if(i.push(c),d=r(c,t)){if("skip"===d)continue;return d}}}}},e.createSourceFile=function(t,r,n,i,a){void 0===i&&(i=!1);var o,s=["parse","createSourceFile",{path:t}];return e.tracing.begin.apply(e.tracing,s),e.performance.mark("beforeParse"),e.perfLogger.logStartParseSourceFile(t),o=100===n?c.parseSourceFile(t,r,n,void 0,i,6):c.parseSourceFile(t,r,n,void 0,i,a),e.perfLogger.logStopParseSourceFile(),e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),e.tracing.end.apply(e.tracing,s),o},e.parseIsolatedEntityName=function(e,t){return c.parseIsolatedEntityName(e,t)},e.parseJsonText=function(e,t){return c.parseJsonText(e,t)},e.isExternalModule=f,e.updateSourceFile=function(e,t,r,n){void 0===n&&(n=!1);var i=u.updateSourceFile(e,t,r,n);return i.flags|=3145728&e.flags,i},e.parseIsolatedJSDocComment=function(e,t,r){var n=c.JSDocParser.parseIsolatedJSDocComment(e,t,r);return n&&n.jsDoc&&c.fixupParentReferences(n.jsDoc),n},e.parseJSDocTypeExpressionForTests=function(e,t,r){return c.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)},function(t){var r,n,i,a,o,s=e.createScanner(99,!0),c=20480;function l(e){return A++,e}var d,v,h,D,x,b,S,C,T,k,A,F,N,P,w,I,O,M={createBaseSourceFileNode:function(e){return l(new o(e,0,0))},createBaseIdentifierNode:function(e){return l(new i(e,0,0))},createBasePrivateIdentifierNode:function(e){return l(new a(e,0,0))},createBaseTokenNode:function(e){return l(new n(e,0,0))},createBaseNode:function(e){return l(new r(e,0,0))}},L=e.createNodeFactory(11,M),R=!0,B=!1;function j(t,r,n,i,a){void 0===n&&(n=2),void 0===a&&(a=!1),J(t,r,n,i,6),v=O,xe();var o,s,c=me();if(1===ve())o=ze([],c,c),s=je();else{var u=void 0;switch(ve()){case 22:u=Sn();break;case 109:case 94:case 103:u=je();break;case 40:u=Fe((function(){return 8===xe()&&58!==xe()}))?Qr():Cn();break;case 8:case 10:if(Fe((function(){return 58!==xe()}))){u=It();break}default:u=Cn()}var l=L.createExpressionStatement(u);Ue(l,c),o=ze([l],c),s=Be(1,e.Diagnostics.Unexpected_token)}var d=X(t,2,6,!1,o,s,v);a&&Y(d),d.nodeCount=A,d.identifierCount=P,d.identifiers=F,d.parseDiagnostics=e.attachFileToDiagnostics(S,d),C&&(d.jsDocDiagnostics=e.attachFileToDiagnostics(C,d));var _=d;return K(),_}function J(t,c,u,l,_){switch(r=e.objectAllocator.getNodeConstructor(),n=e.objectAllocator.getTokenConstructor(),i=e.objectAllocator.getIdentifierConstructor(),a=e.objectAllocator.getPrivateIdentifierConstructor(),o=e.objectAllocator.getSourceFileConstructor(),d=e.normalizePath(t),h=c,D=u,T=l,x=_,b=e.getLanguageVariant(_),S=[],w=0,F=new e.Map,N=new e.Map,P=0,A=0,v=0,R=!0,x){case 1:case 2:O=131072;break;case 6:O=33685504;break;default:O=0}B=!1,s.setText(h),s.setOnError(ge),s.setScriptTarget(D),s.setLanguageVariant(b)}function K(){s.clearCommentDirectives(),s.setText(""),s.setOnError(void 0),h=void 0,D=void 0,T=void 0,x=void 0,b=void 0,v=0,S=void 0,C=void 0,w=0,F=void 0,I=void 0,R=!0}function z(t,r,n){var i=g(d);i&&(O|=8388608),v=O,xe();var a=mt(0,Un);e.Debug.assert(1===ve());var o=G(je()),c=X(d,t,n,i,a,o,v);return m(c,h),y(c,(function(t,r,n){S.push(e.createDetachedDiagnostic(d,t,r,n))})),c.commentDirectives=s.getCommentDirectives(),c.nodeCount=A,c.identifierCount=P,c.identifiers=F,c.parseDiagnostics=e.attachFileToDiagnostics(S,c),C&&(c.jsDocDiagnostics=e.attachFileToDiagnostics(C,c)),r&&Y(c),c}function U(e,t){return t?G(e):e}t.parseSourceFile=function(t,r,n,i,a,o){if(void 0===a&&(a=!1),6===(o=e.ensureScriptKind(t,o))){var s=j(t,r,n,i,a);return e.convertToObjectWorker(s,s.parseDiagnostics,!1,void 0,void 0),s.referencedFiles=e.emptyArray,s.typeReferenceDirectives=e.emptyArray,s.libReferenceDirectives=e.emptyArray,s.amdDependencies=e.emptyArray,s.hasNoDefaultLib=!1,s.pragmas=e.emptyMap,s}J(t,r,n,i,o);var c=z(n,a,o);return K(),c},t.parseIsolatedEntityName=function(e,t){J("",e,t,void 0,1),xe();var r=Ct(!0),n=1===ve()&&!S.length;return K(),n?r:void 0},t.parseJsonText=j;var V,q,W,H=!1;function G(t){e.Debug.assert(!t.jsDoc);var r=e.mapDefined(e.getJSDocCommentRanges(t,h),(function(e){return W.parseJSDocComment(t,e.pos,e.end-e.pos)}));return r.length&&(t.jsDoc=r),H&&(H=!1,t.flags|=134217728),t}function Y(t){e.setParentRecursive(t,!0)}function X(t,r,n,i,a,o,c){var l=L.createSourceFile(a,o,c);return e.setTextRangePosWidth(l,0,h.length),function(t){t.externalModuleIndicator=e.forEach(t.statements,Li)||function(e){return 2097152&e.flags?Ri(e):void 0}(t)}(l),!i&&f(l)&&8388608&l.transformFlags&&(l=function(t){var r=T,n=u.createSyntaxCursor(t);T={currentNode:function(e){var t=n.currentNode(e);return R&&t&&p(t)&&(t.intersectsChange=!0),t}};var i=[],a=S;S=[];for(var o=0,c=f(t.statements,0),l=function(){var r=t.statements[o],n=t.statements[c];e.addRange(i,t.statements,o,c),o=g(t.statements,c);var u=e.findIndex(a,(function(e){return e.start>=r.pos})),l=u>=0?e.findIndex(a,(function(e){return e.start>=n.pos}),u):-1;u>=0&&e.addRange(S,a,u,l>=0?l:void 0),Ae((function(){var e=O;for(O|=32768,s.setTextPos(n.pos),xe();1!==ve();){var r=s.getStartPos(),a=yt(0,Un);if(i.push(a),r===s.getStartPos()&&xe(),o>=0){var c=t.statements[o];if(a.end===c.pos)break;a.end>c.pos&&(o=g(t.statements,o+1))}}O=e}),2),c=o>=0?f(t.statements,o):-1};-1!==c;)l();if(o>=0){var d=t.statements[o];e.addRange(i,t.statements,o);var _=e.findIndex(a,(function(e){return e.start>=d.pos}));_>=0&&e.addRange(S,a,_)}return T=r,L.updateSourceFile(t,e.setTextRange(L.createNodeArray(i),t.statements));function p(e){return!(32768&e.flags||!(8388608&e.transformFlags))}function f(e,t){for(var r=t;r115}function we(){return 78===ve()||(124!==ve()||!se())&&((130!==ve()||!le())&&ve()>115)}function Ie(t,r,n){return void 0===n&&(n=!0),ve()===t?(n&&xe(),!0):(r?de(r):de(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function Oe(t){return ve()===t?(be(),!0):(de(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function Me(e){return ve()===e&&(xe(),!0)}function Le(e){if(ve()===e)return je()}function Re(e){if(ve()===e)return t=me(),r=ve(),be(),Ue(L.createToken(r),t);var t,r}function Be(t,r,n){return Le(t)||Ve(t,!1,r||e.Diagnostics._0_expected,n||e.tokenToString(t))}function je(){var e=me(),t=ve();return xe(),Ue(L.createToken(t),e)}function Je(){return 26===ve()||(19===ve()||1===ve()||s.hasPrecedingLineBreak())}function Ke(){return Je()?(26===ve()&&xe(),!0):Ie(26)}function ze(t,r,n,i){var a=L.createNodeArray(t,i);return e.setTextRangePosEnd(a,r,null!=n?n:s.getStartPos()),a}function Ue(t,r,n){return e.setTextRangePosEnd(t,r,null!=n?n:s.getStartPos()),O&&(t.flags|=O),B&&(B=!1,t.flags|=65536),t}function Ve(t,r,n,i){r?_e(s.getStartPos(),0,n,i):n&&de(n,i);var a=me();return Ue(78===t?L.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(t)?L.createTemplateLiteralLikeNode(t,"","",void 0):8===t?L.createNumericLiteral("",void 0):10===t?L.createStringLiteral("",void 0):271===t?L.createMissingDeclaration():L.createToken(t),a)}function qe(e){var t=F.get(e);return void 0===t&&F.set(e,t=e),t}function We(t,r,n){if(P++,t){var i=me(),a=ve(),o=qe(s.getTokenValue());return he(),Ue(L.createIdentifier(o,void 0,a),i)}if(79===ve())return de(n||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),We(!0);var c=1===ve(),u=s.isReservedWord(),l=s.getTokenText(),d=u?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return Ve(78,c,r||d,l)}function He(e){return We(Pe(),void 0,e)}function Ge(e,t){return We(we(),e,t)}function Ye(t){return We(e.tokenIsIdentifierOrKeyword(ve()),t)}function Xe(){return e.tokenIsIdentifierOrKeyword(ve())||10===ve()||8===ve()}function Qe(e){if(10===ve()||8===ve()){var t=It();return t.text=qe(t.text),t}return e&&22===ve()?function(){var e=me();Ie(22);var t=ie(Br);return Ie(23),Ue(L.createComputedPropertyName(t),e)}():79===ve()?Ze():Ye()}function $e(){return Qe(!0)}function Ze(){var e,t,r=me(),n=L.createPrivateIdentifier((e=s.getTokenText(),void 0===(t=N.get(e))&&N.set(e,t=e),t));return xe(),Ue(n,r)}function et(e){return ve()===e&&Ne(rt)}function tt(){return xe(),!s.hasPrecedingLineBreak()&&at()}function rt(){switch(ve()){case 84:return 91===xe();case 92:return xe(),87===ve()?Fe(ot):149===ve()?Fe(it):nt();case 87:return ot();case 123:case 134:case 146:return xe(),at();default:return tt()}}function nt(){return 41!==ve()&&126!==ve()&&18!==ve()&&at()}function it(){return xe(),nt()}function at(){return 22===ve()||18===ve()||41===ve()||25===ve()||Xe()}function ot(){return xe(),83===ve()||97===ve()||117===ve()||125===ve()&&Fe(Ln)||129===ve()&&Fe(Rn)}function st(t,r){if(vt(t))return!0;switch(t){case 0:case 1:case 3:return!(26===ve()&&r)&&Kn();case 2:return 81===ve()||87===ve();case 4:return Fe(nr);case 5:return Fe(li)||26===ve()&&!r;case 6:return 22===ve()||Xe();case 12:switch(ve()){case 22:case 41:case 25:case 24:return!0;default:return Xe()}case 18:return Xe();case 9:return 22===ve()||25===ve()||Xe();case 7:return 18===ve()?Fe(ct):r?we()&&!_t():Lr()&&!_t();case 8:return Qn();case 10:return 27===ve()||25===ve()||Qn();case 19:return we();case 15:switch(ve()){case 27:case 24:return!0}case 11:return 25===ve()||Rr();case 16:return qt(!1);case 17:return qt(!0);case 20:case 21:return 27===ve()||br();case 22:return Ei();case 23:return e.tokenIsIdentifierOrKeyword(ve());case 13:return e.tokenIsIdentifierOrKeyword(ve())||18===ve();case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function ct(){if(e.Debug.assert(18===ve()),19===xe()){var t=xe();return 27===t||18===t||93===t||116===t}return!0}function ut(){return xe(),we()}function lt(){return xe(),e.tokenIsIdentifierOrKeyword(ve())}function dt(){return xe(),e.tokenIsIdentifierOrKeywordOrGreaterThan(ve())}function _t(){return(116===ve()||93===ve())&&Fe(pt)}function pt(){return xe(),Rr()}function ft(){return xe(),br()}function gt(e){if(1===ve())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:return 19===ve();case 3:return 19===ve()||81===ve()||87===ve();case 7:return 18===ve()||93===ve()||116===ve();case 8:return function(){if(Je())return!0;if(Gr(ve()))return!0;if(38===ve())return!0;return!1}();case 19:return 31===ve()||20===ve()||18===ve()||93===ve()||116===ve();case 11:return 21===ve()||26===ve();case 15:case 21:case 10:return 23===ve();case 17:case 16:case 18:return 21===ve()||23===ve();case 20:return 27!==ve();case 22:return 18===ve()||19===ve();case 13:return 31===ve()||43===ve();case 14:return 29===ve()&&Fe(Ni);default:return!1}}function mt(e,t){var r=w;w|=1<=0)}function bt(t){return 6===t?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function St(){var e=ze([],me());return e.isMissingList=!0,e}function Et(e,t,r,n){if(Ie(r)){var i=xt(e,t);return Ie(n),i}return St()}function Ct(e,t){for(var r=me(),n=e?Ye(t):Ge(t),i=me();Me(24);){if(29===ve()){n.jsdocDotPos=i;break}i=me(),n=Ue(L.createQualifiedName(n,kt(e,!1)),r)}return n}function Tt(e,t){return Ue(L.createQualifiedName(e,t),e.pos)}function kt(t,r){if(s.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(ve())&&Fe(Mn))return Ve(78,!0,e.Diagnostics.Identifier_expected);if(79===ve()){var n=Ze();return r?n:Ve(78,!0,e.Diagnostics.Identifier_expected)}return t?Ye():Ge()}function At(e){var t=me();return Ue(L.createTemplateExpression(Ot(e),function(e){var t,r=me(),n=[];do{t=wt(e),n.push(t)}while(16===t.literal.kind);return ze(n,r)}(e)),t)}function Ft(){var e=me();return Ue(L.createTemplateLiteralType(Ot(!1),function(){var e,t=me(),r=[];do{e=Nt(),r.push(e)}while(16===e.literal.kind);return ze(r,t)}()),e)}function Nt(){var e=me();return Ue(L.createTemplateLiteralTypeSpan(Ir(),Pt(!1)),e)}function Pt(t){return 19===ve()?(function(e){k=s.reScanTemplateToken(e)}(t),r=Mt(ve()),e.Debug.assert(16===r.kind||17===r.kind,"Template fragment has wrong token kind"),r):Be(17,e.Diagnostics._0_expected,e.tokenToString(19));var r}function wt(e){var t=me();return Ue(L.createTemplateSpan(ie(Br),Pt(e)),t)}function It(){return Mt(ve())}function Ot(t){t&&Ee();var r=Mt(ve());return e.Debug.assert(15===r.kind,"Template head has wrong token kind"),r}function Mt(t){var r=me(),n=e.isTemplateLiteralKind(t)?L.createTemplateLiteralLikeNode(t,s.getTokenValue(),function(e){var t=14===e||17===e,r=s.getTokenText();return r.substring(1,r.length-(s.isUnterminated()?0:t?1:2))}(t),2048&s.getTokenFlags()):8===t?L.createNumericLiteral(s.getTokenValue(),s.getNumericLiteralFlags()):10===t?L.createStringLiteral(s.getTokenValue(),void 0,s.hasExtendedUnicodeEscape()):e.isLiteralKind(t)?L.createLiteralLikeNode(t,s.getTokenValue()):e.Debug.fail();return s.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),s.isUnterminated()&&(n.isUnterminated=!0),xe(),Ue(n,r)}function Lt(){return Ct(!0,e.Diagnostics.Type_expected)}function Rt(){if(!s.hasPrecedingLineBreak()&&29===Ce())return Et(20,Ir,29,31)}function Bt(){var e=me();return Ue(L.createTypeReferenceNode(Lt(),Rt()),e)}function jt(t){switch(t.kind){case 173:return e.nodeIsMissing(t.typeName);case 174:case 175:var r=t,n=r.parameters,i=r.type;return!!n.isMissingList||jt(i);case 186:return jt(t.type);default:return!1}}function Jt(){var e=me();return xe(),Ue(L.createThisTypeNode(),e)}function Kt(){var e,t=me();return 107!==ve()&&102!==ve()||(e=Ye(),Ie(58)),Ue(L.createParameterDeclaration(void 0,void 0,void 0,e,void 0,zt(),void 0),t)}function zt(){s.setInJSDocType(!0);var e=me();if(Me(139)){var t=L.createJSDocNamepathType(void 0);e:for(;;)switch(ve()){case 19:case 1:case 27:case 5:break e;default:be()}return s.setInJSDocType(!1),Ue(t,e)}var r=Me(25),n=Pr();return s.setInJSDocType(!1),r&&(n=Ue(L.createJSDocVariadicType(n),e)),62===ve()?(xe(),Ue(L.createJSDocOptionalType(n),e)):n}function Ut(){var e,t,r=me(),n=Ge();Me(93)&&(br()||!Rr()?e=Ir():t=$r());var i=Me(62)?Ir():void 0,a=L.createTypeParameterDeclaration(n,e,i);return a.expression=t,Ue(a,r)}function Vt(){if(29===ve())return Et(19,Ut,29,31)}function qt(t){return 25===ve()||Qn()||e.isModifierKind(ve())||59===ve()||br(!t)}function Wt(){return Gt(!0)}function Ht(){return Gt(!1)}function Gt(t){var r=me(),n=ye();if(107===ve())return U(Ue(L.createParameterDeclaration(void 0,void 0,void 0,We(!0),void 0,Mr(),void 0),r),n);var i=t?ae(pi):pi(),a=R;R=!1;var o=gi(),s=U(Ue(L.createParameterDeclaration(i,o,Le(25),function(t){var r=$n(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return 0===e.getFullWidth(r)&&!e.some(t)&&e.isModifierKind(ve())&&xe(),r}(o),Le(57),Mr(),jr()),r),n);return R=a,s}function Yt(t,r){if(function(t,r){if(38===t)return Ie(t),!0;if(Me(58))return!0;if(r&&38===ve())return de(e.Diagnostics._0_expected,e.tokenToString(58)),xe(),!0;return!1}(t,r))return Pr()}function Xt(e){var t=se(),r=le();Z(!!(1&e)),te(!!(2&e));var n=32&e?xt(17,Kt):xt(16,r?Wt:Ht);return Z(t),te(r),n}function Qt(e){if(!Ie(20))return St();var t=Xt(e);return Ie(21),t}function $t(){Me(27)||Ke()}function Zt(e){var t=me(),r=ye();170===e&&Ie(102);var n=Vt(),i=Qt(4),a=Yt(58,!0);return $t(),U(Ue(169===e?L.createCallSignature(n,i,a):L.createConstructSignature(n,i,a),t),r)}function er(){return 22===ve()&&Fe(tr)}function tr(){if(xe(),25===ve()||23===ve())return!0;if(e.isModifierKind(ve())){if(xe(),we())return!0}else{if(!we())return!1;xe()}return 58===ve()||27===ve()||57===ve()&&(xe(),58===ve()||27===ve()||23===ve())}function rr(e,t,r,n){var i=Et(16,Ht,22,23),a=Mr();return $t(),U(Ue(L.createIndexSignature(r,n,i,a),e),t)}function nr(){if(20===ve()||29===ve())return!0;for(var t=!1;e.isModifierKind(ve());)t=!0,xe();return 22===ve()||(Xe()&&(t=!0,xe()),!!t&&(20===ve()||29===ve()||57===ve()||58===ve()||27===ve()||Je()))}function ir(){if(20===ve()||29===ve())return Zt(169);if(102===ve()&&Fe(ar))return Zt(170);var e=me(),t=ye(),r=gi();return er()?rr(e,t,void 0,r):function(e,t,r){var n,i=$e(),a=Le(57);if(20===ve()||29===ve()){var o=Vt(),s=Qt(4),c=Yt(58,!0);n=L.createMethodSignature(r,i,a,o,s,c)}else c=Mr(),n=L.createPropertySignature(r,i,a,c),62===ve()&&(n.initializer=jr());return $t(),U(Ue(n,e),t)}(e,t,r)}function ar(){return xe(),20===ve()||29===ve()}function or(){return 24===xe()}function sr(){switch(xe()){case 20:case 29:case 24:return!0}return!1}function cr(){var e;return Ie(18)?(e=mt(4,ir),Ie(19)):e=St(),e}function ur(){return xe(),39===ve()||40===ve()?142===xe():(142===ve()&&xe(),22===ve()&&ut()&&100===xe())}function lr(){var e,t=me();Ie(18),142!==ve()&&39!==ve()&&40!==ve()||142!==(e=je()).kind&&Ie(142),Ie(22);var r,n=function(){var e=me(),t=Ye();Ie(100);var r=Ir();return Ue(L.createTypeParameterDeclaration(t,r,void 0),e)}(),i=Me(126)?Ir():void 0;Ie(23),57!==ve()&&39!==ve()&&40!==ve()||57!==(r=je()).kind&&Ie(57);var a=Mr();return Ke(),Ie(19),Ue(L.createMappedTypeNode(e,n,i,r,a),t)}function dr(){var t=me();if(Me(25))return Ue(L.createRestTypeNode(Ir()),t);var r=Ir();if(e.isJSDocNullableType(r)&&r.pos===r.type.pos){var n=L.createOptionalTypeNode(r.type);return e.setTextRange(n,r),n.flags=r.flags,n}return r}function _r(){return 58===xe()||57===ve()&&58===xe()}function pr(){return 25===ve()?e.tokenIsIdentifierOrKeyword(xe())&&_r():e.tokenIsIdentifierOrKeyword(ve())&&_r()}function fr(){if(Fe(pr)){var e=me(),t=ye(),r=Le(25),n=Ye(),i=Le(57);Ie(58);var a=dr();return U(Ue(L.createNamedTupleMember(r,n,i,a),e),t)}return dr()}function gr(){var e=me(),t=ye(),r=Me(102),n=Vt(),i=Qt(4),a=Yt(38,!1);return U(Ue(r?L.createConstructorTypeNode(n,i,a):L.createFunctionTypeNode(n,i,a),e),t)}function mr(){var e=je();return 24===ve()?void 0:e}function yr(e){var t=me();e&&xe();var r=109===ve()||94===ve()||103===ve()?je():Mt(ve());return e&&(r=Ue(L.createPrefixUnaryExpression(40,r),t)),Ue(L.createLiteralTypeNode(r),t)}function vr(){return xe(),99===ve()}function hr(){v|=1048576;var e=me(),t=Me(111);Ie(99),Ie(20);var r=Ir();Ie(21);var n=Me(24)?Lt():void 0,i=Rt();return Ue(L.createImportTypeNode(r,n,i,t),e)}function Dr(){return xe(),8===ve()||9===ve()}function xr(){switch(ve()){case 128:case 152:case 147:case 144:case 155:case 148:case 131:case 150:case 141:case 145:return Ne(mr)||Bt();case 65:s.reScanAsteriskEqualsToken();case 41:return r=me(),xe(),Ue(L.createJSDocAllType(),r);case 60:s.reScanQuestionToken();case 57:return function(){var e=me();return xe(),27===ve()||19===ve()||21===ve()||31===ve()||62===ve()||51===ve()?Ue(L.createJSDocUnknownType(),e):Ue(L.createJSDocNullableType(Ir()),e)}();case 97:return function(){var e=me(),t=ye();if(Fe(Fi)){xe();var r=Qt(36),n=Yt(58,!1);return U(Ue(L.createJSDocFunctionType(r,n),e),t)}return Ue(L.createTypeReferenceNode(Ye(),void 0),e)}();case 53:return function(){var e=me();return xe(),Ue(L.createJSDocNonNullableType(xr()),e)}();case 14:case 10:case 8:case 9:case 109:case 94:case 103:return yr();case 40:return Fe(Dr)?yr(!0):Bt();case 113:return je();case 107:var e=Jt();return 137!==ve()||s.hasPrecedingLineBreak()?e:(t=e,xe(),Ue(L.createTypePredicateNode(void 0,t,Ir()),t.pos));case 111:return Fe(vr)?hr():function(){var e=me();return Ie(111),Ue(L.createTypeQueryNode(Ct(!0)),e)}();case 18:return Fe(ur)?lr():function(){var e=me();return Ue(L.createTypeLiteralNode(cr()),e)}();case 22:return function(){var e=me();return Ue(L.createTupleTypeNode(Et(21,fr,22,23)),e)}();case 20:return function(){var e=me();Ie(20);var t=Ir();return Ie(21),Ue(L.createParenthesizedType(t),e)}();case 99:return hr();case 127:return Fe(Mn)?function(){var e=me(),t=Be(127),r=107===ve()?Jt():Ge(),n=Me(137)?Ir():void 0;return Ue(L.createTypePredicateNode(t,r,n),e)}():Bt();case 15:return Ft();default:return Bt()}var t,r}function br(e){switch(ve()){case 128:case 152:case 147:case 144:case 155:case 131:case 142:case 148:case 151:case 113:case 150:case 103:case 107:case 111:case 141:case 18:case 22:case 29:case 51:case 50:case 102:case 10:case 8:case 9:case 109:case 94:case 145:case 41:case 57:case 53:case 25:case 135:case 99:case 127:case 14:case 15:return!0;case 97:return!e;case 40:return!e&&Fe(Dr);case 20:return!e&&Fe(Sr);default:return we()}}function Sr(){return xe(),21===ve()||qt(!1)||br()}function Er(){var e=me();return Ie(135),Ue(L.createInferTypeNode(function(){var e=me();return Ue(L.createTypeParameterDeclaration(Ge(),void 0,void 0),e)}()),e)}function Cr(){var e=ve();switch(e){case 138:case 151:case 142:return function(e){var t=me();return Ie(e),Ue(L.createTypeOperatorNode(e,Cr()),t)}(e);case 135:return Er()}return function(){for(var e=me(),t=xr();!s.hasPrecedingLineBreak();)switch(ve()){case 53:xe(),t=Ue(L.createJSDocNonNullableType(t),e);break;case 57:if(Fe(ft))return t;xe(),t=Ue(L.createJSDocNullableType(t),e);break;case 22:if(Ie(22),br()){var r=Ir();Ie(23),t=Ue(L.createIndexedAccessTypeNode(t,r),e)}else Ie(23),t=Ue(L.createArrayTypeNode(t),e);break;default:return t}return t}()}function Tr(t){if(Fr()){var r=gr();return fe(r,e.isFunctionTypeNode(r)?t?e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t?e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type),r}}function kr(e,t,r){var n=me(),i=51===e,a=Me(e),o=a&&Tr(i)||t();if(ve()===e||a){for(var s=[o];Me(e);)s.push(Tr(i)||t());o=Ue(r(ze(s,n)),n)}return o}function Ar(){return kr(50,Cr,L.createIntersectionTypeNode)}function Fr(){return 29===ve()||(!(20!==ve()||!Fe(Nr))||102===ve())}function Nr(){if(xe(),21===ve()||25===ve())return!0;if(function(){if(e.isModifierKind(ve())&&gi(),we()||107===ve())return xe(),!0;if(22===ve()||18===ve()){var t=S.length;return $n(),t===S.length}return!1}()){if(58===ve()||27===ve()||57===ve()||62===ve())return!0;if(21===ve()&&(xe(),38===ve()))return!0}return!1}function Pr(){var e=me(),t=we()&&Ne(wr),r=Ir();return t?Ue(L.createTypePredicateNode(void 0,t,r),e):r}function wr(){var e=Ge();if(137===ve()&&!s.hasPrecedingLineBreak())return xe(),e}function Ir(){return re(40960,Or)}function Or(e){if(Fr())return gr();var t=me(),r=kr(51,Ar,L.createUnionTypeNode);if(!e&&!s.hasPrecedingLineBreak()&&Me(93)){var n=Or(!0);Ie(57);var i=Or();Ie(58);var a=Or();return Ue(L.createConditionalTypeNode(r,n,i,a),t)}return r}function Mr(){return Me(58)?Ir():void 0}function Lr(){switch(ve()){case 107:case 105:case 103:case 109:case 94:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 97:case 83:case 102:case 43:case 67:case 78:return!0;case 99:return Fe(sr);default:return we()}}function Rr(){if(Lr())return!0;switch(ve()){case 39:case 40:case 54:case 53:case 88:case 111:case 113:case 45:case 46:case 29:case 130:case 124:case 79:return!0;default:return!!function(){if(ce()&&100===ve())return!1;return e.getBinaryOperatorPrecedence(ve())>0}()||we()}}function Br(){var e=ue();e&&ee(!1);for(var t,r=me(),n=Jr();t=Le(27);)n=Xr(n,t,Jr(),r);return e&&ee(!0),n}function jr(){return Me(62)?Jr():void 0}function Jr(){if(function(){if(124===ve())return!!se()||Fe(Bn);return!1}())return function(){var e=me();return xe(),s.hasPrecedingLineBreak()||41!==ve()&&!Rr()?Ue(L.createYieldExpression(void 0,void 0),e):Ue(L.createYieldExpression(Le(41),Jr()),e)}();var t=function(){var e=function(){if(20===ve()||29===ve()||129===ve())return Fe(zr);if(38===ve())return 1;return 0}();if(0===e)return;return 1===e?qr(!0):Ne(Ur)}()||function(){if(129===ve()&&1===Fe(Vr)){var e=me(),t=mi();return Kr(e,Hr(0),t)}return}();if(t)return t;var r=me(),n=Hr(0);return 78===n.kind&&38===ve()?Kr(r,n,void 0):e.isLeftHandSideExpression(n)&&e.isAssignmentOperator(Se())?Xr(n,je(),Jr(),r):function(t,r){var n,i=Le(57);if(!i)return t;return Ue(L.createConditionalExpression(t,i,re(c,Jr),n=Be(58),e.nodeIsPresent(n)?Jr():Ve(78,!1,e.Diagnostics._0_expected,e.tokenToString(58))),r)}(n,r)}function Kr(t,r,n){e.Debug.assert(38===ve(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var i=L.createParameterDeclaration(void 0,void 0,void 0,r,void 0,void 0,void 0);Ue(i,r.pos);var a=ze([i],i.pos,i.end),o=Be(38),s=Wr(!!n);return G(Ue(L.createArrowFunction(n,void 0,a,void 0,o,s),t))}function zr(){if(129===ve()){if(xe(),s.hasPrecedingLineBreak())return 0;if(20!==ve()&&29!==ve())return 0}var t=ve(),r=xe();if(20===t){if(21===r)switch(xe()){case 38:case 58:case 18:return 1;default:return 0}if(22===r||18===r)return 2;if(25===r)return 1;if(e.isModifierKind(r)&&129!==r&&Fe(ut))return 1;if(!we()&&107!==r)return 0;switch(xe()){case 58:return 1;case 57:return xe(),58===ve()||27===ve()||62===ve()||21===ve()?1:0;case 27:case 62:case 21:return 2}return 0}return e.Debug.assert(29===t),we()?1===b?Fe((function(){var e=xe();if(93===e)switch(xe()){case 62:case 31:return!1;default:return!0}else if(27===e)return!0;return!1}))?1:0:2:0}function Ur(){var t=s.getTokenPos();if(!(null==I?void 0:I.has(t))){var r=qr(!1);return r||(I||(I=new e.Set)).add(t),r}}function Vr(){if(129===ve()){if(xe(),s.hasPrecedingLineBreak()||38===ve())return 0;var e=Hr(0);if(!s.hasPrecedingLineBreak()&&78===e.kind&&38===ve())return 1}return 0}function qr(t){var r,n=me(),i=ye(),a=mi(),o=e.some(a,e.isAsyncModifier)?2:0,s=Vt();if(Ie(20)){if(r=Xt(o),!Ie(21)&&!t)return}else{if(!t)return;r=St()}var c=Yt(58,!1);if(!c||t||!jt(c)){var u=c&&e.isJSDocFunctionType(c);if(t||38===ve()||!u&&18===ve()){var l=ve(),d=Be(38),_=38===l||18===l?Wr(e.some(a,e.isAsyncModifier)):Ge();return U(Ue(L.createArrowFunction(a,s,r,c,d,_),n),i)}}}function Wr(e){if(18===ve())return Fn(e?2:0);if(26!==ve()&&97!==ve()&&83!==ve()&&Kn()&&(18===ve()||97===ve()||83===ve()||59===ve()||!Rr()))return Fn(16|(e?2:0));var t=R;R=!1;var r=e?ae(Jr):re(32768,Jr);return R=t,r}function Hr(e){var t=me();return Yr(e,$r(),t)}function Gr(e){return 100===e||156===e}function Yr(t,r,n){for(;;){Se();var i=e.getBinaryOperatorPrecedence(ve());if(!(42===ve()?i>=t:i>t))break;if(100===ve()&&ce())break;if(126===ve()){if(s.hasPrecedingLineBreak())break;xe(),a=r,o=Ir(),r=Ue(L.createAsExpression(a,o),a.pos)}else r=Xr(r,je(),Hr(i),n)}var a,o;return r}function Xr(e,t,r,n){return Ue(L.createBinaryExpression(e,t,r),n)}function Qr(){var e=me();return Ue(L.createPrefixUnaryExpression(ve(),De(Zr)),e)}function $r(){if(function(){switch(ve()){case 39:case 40:case 54:case 53:case 88:case 111:case 113:case 130:return!1;case 29:if(1!==b)return!1;default:return!0}}()){var t=me(),r=en();return 42===ve()?Yr(e.getBinaryOperatorPrecedence(ve()),r,t):r}var n=ve(),i=Zr();if(42===ve()){t=e.skipTrivia(h,i.pos);var a=i.end;206===i.kind?pe(t,a,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):pe(t,a,e.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,e.tokenToString(n))}return i}function Zr(){switch(ve()){case 39:case 40:case 54:case 53:return Qr();case 88:return e=me(),Ue(L.createDeleteExpression(De(Zr)),e);case 111:return function(){var e=me();return Ue(L.createTypeOfExpression(De(Zr)),e)}();case 113:return function(){var e=me();return Ue(L.createVoidExpression(De(Zr)),e)}();case 29:return function(){var e=me();Ie(29);var t=Ir();Ie(31);var r=Zr();return Ue(L.createTypeAssertion(t,r),e)}();case 130:if(130===ve()&&(le()||Fe(Bn)))return function(){var e=me();return Ue(L.createAwaitExpression(De(Zr)),e)}();default:return en()}var e}function en(){if(45===ve()||46===ve()){var t=me();return Ue(L.createPrefixUnaryExpression(ve(),De(tn)),t)}if(1===b&&29===ve()&&Fe(dt))return nn(!0);var r=tn();if(e.Debug.assert(e.isLeftHandSideExpression(r)),(45===ve()||46===ve())&&!s.hasPrecedingLineBreak()){var n=ve();return xe(),Ue(L.createPostfixUnaryExpression(r,n),r.pos)}return r}function tn(){var t,r=me();return 99===ve()?Fe(ar)?(v|=1048576,t=je()):Fe(or)?(xe(),xe(),t=Ue(L.createMetaProperty(99,Ye()),r),v|=2097152):t=rn():t=105===ve()?function(){var t=me(),r=je();if(29===ve()){var n=me();void 0!==Ne(hn)&&pe(n,me(),e.Diagnostics.super_may_not_use_type_arguments)}if(20===ve()||24===ve()||22===ve())return r;return Be(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),Ue(L.createPropertyAccessExpression(r,kt(!0,!0)),t)}():rn(),yn(r,t)}function rn(){return fn(me(),Dn(),!0)}function nn(t,r){var n,i=me(),a=function(e){var t=me();if(Ie(29),31===ve())return ke(),Ue(L.createJsxOpeningFragment(),t);var r,n=sn(),i=Si(),a=function(){var e=me();return Ue(L.createJsxAttributes(mt(13,un)),e)}();31===ve()?(ke(),r=L.createJsxOpeningElement(n,i,a)):(Ie(43),e?Ie(31):(Ie(31,void 0,!1),ke()),r=L.createJsxSelfClosingElement(n,i,a));return Ue(r,t)}(t);if(275===a.kind){var o=on(a),s=function(e){var t=me();Ie(30);var r=sn();e?Ie(31):(Ie(31,void 0,!1),ke());return Ue(L.createJsxClosingElement(r),t)}(t);E(a.tagName,s.tagName)||fe(s,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(h,a.tagName)),n=Ue(L.createJsxElement(a,o,s),i)}else 278===a.kind?n=Ue(L.createJsxFragment(a,on(a),function(t){var r=me();Ie(30),e.tokenIsIdentifierOrKeyword(ve())&&fe(sn(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment);t?Ie(31):(Ie(31,void 0,!1),ke());return Ue(L.createJsxJsxClosingFragment(),r)}(t)),i):(e.Debug.assert(274===a.kind),n=a);if(t&&29===ve()){var c=void 0===r?n.pos:r,u=Ne((function(){return nn(!0,c)}));if(u){var l=Ve(27,!1);return e.setTextRangePosWidth(l,u.pos,0),pe(e.skipTrivia(h,c),u.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),Ue(L.createBinaryExpression(n,l,u),i)}}return n}function an(t,r){switch(r){case 1:if(e.isJsxOpeningFragment(t))fe(t,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var n=t.tagName;pe(e.skipTrivia(h,n.pos),n.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(h,t.tagName))}return;case 30:case 7:return;case 11:case 12:return function(){var e=me(),t=L.createJsxText(s.getTokenValue(),12===k);return k=s.scanJsxToken(),Ue(t,e)}();case 18:return cn(!1);case 29:return nn(!1);default:return e.Debug.assertNever(r)}}function on(e){var t=[],r=me(),n=w;for(w|=16384;;){var i=an(e,k=s.reScanJsxToken());if(!i)break;t.push(i)}return w=n,ze(t,r)}function sn(){var e=me();Te();for(var t=107===ve()?je():Ye();Me(24);)t=Ue(L.createPropertyAccessExpression(t,kt(!0,!1)),e);return t}function cn(e){var t,r,n=me();if(Ie(18))return 19!==ve()&&(t=Le(25),r=Br()),e?Ie(19):Ie(19,void 0,!1)&&ke(),Ue(L.createJsxExpression(t,r),n)}function un(){if(18===ve())return function(){var e=me();Ie(18),Ie(25);var t=Br();return Ie(19),Ue(L.createJsxSpreadAttribute(t),e)}();Te();var e=me();return Ue(L.createJsxAttribute(Ye(),62!==ve()?void 0:10===(k=s.scanJsxAttributeValue())?It():cn(!0)),e)}function ln(){return xe(),e.tokenIsIdentifierOrKeyword(ve())||22===ve()||gn()}function dn(t){if(32&t.flags)return!0;if(e.isNonNullExpression(t)){for(var r=t.expression;e.isNonNullExpression(r)&&!(32&r.flags);)r=r.expression;if(32&r.flags){for(;e.isNonNullExpression(t);)t.flags|=32,t=t.expression;return!0}}return!1}function _n(t,r,n){var i=kt(!0,!0),a=n||dn(r),o=a?L.createPropertyAccessChain(r,n,i):L.createPropertyAccessExpression(r,i);return a&&e.isPrivateIdentifier(o.name)&&fe(o.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),Ue(o,t)}function pn(t,r,n){var i;if(23===ve())i=Ve(78,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var a=ie(Br);e.isStringOrNumericLiteralLike(a)&&(a.text=qe(a.text)),i=a}return Ie(23),Ue(n||dn(r)?L.createElementAccessChain(r,n,i):L.createElementAccessExpression(r,i),t)}function fn(t,r,n){for(;;){var i=void 0,a=!1;if(n&&28===ve()&&Fe(ln)?(i=Be(28),a=e.tokenIsIdentifierOrKeyword(ve())):a=Me(24),a)r=_n(t,r,i);else if(i||53!==ve()||s.hasPrecedingLineBreak())if(!i&&ue()||!Me(22)){if(!gn())return r;r=mn(t,r,i,void 0)}else r=pn(t,r,i);else xe(),r=Ue(L.createNonNullExpression(r),t)}}function gn(){return 14===ve()||15===ve()}function mn(e,t,r,n){var i=L.createTaggedTemplateExpression(t,n,14===ve()?(Ee(),It()):At(!0));return(r||32&t.flags)&&(i.flags|=32),i.questionDotToken=r,Ue(i,e)}function yn(t,r){for(;;){r=fn(t,r,!0);var n=Le(28);if(29===ve()||47===ve()){var i=Ne(hn);if(i){if(gn()){r=mn(t,r,n,i);continue}var a=vn();r=Ue(n||dn(r)?L.createCallChain(r,n,i,a):L.createCallExpression(r,i,a),t);continue}}else if(20===ve()){a=vn();r=Ue(n||dn(r)?L.createCallChain(r,n,void 0,a):L.createCallExpression(r,void 0,a),t);continue}if(n){var o=Ve(78,!1,e.Diagnostics.Identifier_expected);r=Ue(L.createPropertyAccessChain(r,n,o),t)}break}return r}function vn(){Ie(20);var e=xt(11,bn);return Ie(21),e}function hn(){if(29===Ce()){xe();var e=xt(20,Ir);if(Ie(31))return e&&function(){switch(ve()){case 20:case 14:case 15:case 24:case 21:case 23:case 58:case 26:case 57:case 34:case 36:case 35:case 37:case 55:case 56:case 60:case 52:case 50:case 51:case 19:case 1:return!0;case 27:case 18:default:return!1}}()?e:void 0}}function Dn(){switch(ve()){case 8:case 9:case 10:case 14:return It();case 107:case 105:case 103:case 109:case 94:return je();case 20:return function(){var e=me(),t=ye();Ie(20);var r=ie(Br);return Ie(21),U(Ue(L.createParenthesizedExpression(r),e),t)}();case 22:return Sn();case 18:return Cn();case 129:if(!Fe(Rn))break;return Tn();case 83:return hi(me(),ye(),void 0,void 0,221);case 97:return Tn();case 102:return function(){var t=me();if(Ie(102),Me(24)){var r=Ye();return Ue(L.createMetaProperty(102,r),t)}var n,i,a=me(),o=Dn();for(;;){o=fn(a,o,!1),n=Ne(hn),gn()&&(e.Debug.assert(!!n,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),o=mn(a,o,void 0,n),n=void 0);break}20===ve()?i=vn():n&&pe(t,s.getStartPos(),e.Diagnostics.A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list);return Ue(L.createNewExpression(o,n,i),t)}();case 43:case 67:if(13===(k=s.reScanSlashToken()))return It();break;case 15:return At(!1)}return Ge(e.Diagnostics.Expression_expected)}function xn(){return 25===ve()?function(){var e=me();Ie(25);var t=Jr();return Ue(L.createSpreadElement(t),e)}():27===ve()?Ue(L.createOmittedExpression(),me()):Jr()}function bn(){return re(c,xn)}function Sn(){var e=me();Ie(22);var t=s.hasPrecedingLineBreak(),r=xt(15,xn);return Ie(23),Ue(L.createArrayLiteralExpression(r,t),e)}function En(){var e=me(),t=ye();if(Le(25)){var r=Jr();return U(Ue(L.createSpreadAssignment(r),e),t)}var n=pi(),i=gi();if(et(134))return ui(e,t,n,i,167);if(et(146))return ui(e,t,n,i,168);var a,o=Le(41),s=we(),c=$e(),u=Le(57),l=Le(53);if(o||20===ve()||29===ve())return oi(e,t,n,i,o,c,u,l);if(s&&58!==ve()){var d=Le(62),_=d?ie(Jr):void 0;(a=L.createShorthandPropertyAssignment(c,_)).equalsToken=d}else{Ie(58);var p=ie(Jr);a=L.createPropertyAssignment(c,p)}return a.decorators=n,a.modifiers=i,a.questionToken=u,a.exclamationToken=l,U(Ue(a,e),t)}function Cn(){var t=me(),r=s.getTokenPos();Ie(18);var n=s.hasPrecedingLineBreak(),i=xt(12,En,!0);if(!Ie(19)){var a=e.lastOrUndefined(S);a&&a.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(a,e.createDetachedDiagnostic(d,r,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return Ue(L.createObjectLiteralExpression(i,n),t)}function Tn(){var t=ue();t&&ee(!1);var r=me(),n=ye(),i=gi();Ie(97);var a=Le(41),o=a?1:0,s=e.some(i,e.isAsyncModifier)?2:0,c=o&&s?ne(40960,kn):o?function(e){return ne(8192,e)}(kn):s?ae(kn):kn(),u=Vt(),l=Qt(o|s),d=Yt(58,!1),_=Fn(o|s);return t&&ee(!0),U(Ue(L.createFunctionExpression(i,a,c,u,l,d,_),r),n)}function kn(){return Pe()?He():void 0}function An(t,r){var n=me(),i=s.getTokenPos();if(Ie(18,r)||t){var a=s.hasPrecedingLineBreak(),o=mt(1,Un);if(!Ie(19)){var c=e.lastOrUndefined(S);c&&c.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(c,e.createDetachedDiagnostic(d,i,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return Ue(L.createBlock(o,a),n)}o=St();return Ue(L.createBlock(o,void 0),n)}function Fn(e,t){var r=se();Z(!!(1&e));var n=le();te(!!(2&e));var i=R;R=!1;var a=ue();a&&ee(!1);var o=An(!!(16&e),t);return a&&ee(!0),R=i,Z(r),te(n),o}function Nn(){var e=me();Ie(96);var t,r,n=Le(130);if(Ie(20),26!==ve()&&(t=112===ve()||118===ve()||84===ve()?ti(!0):ne(4096,Br)),n?Ie(156):Me(156)){var i=ie(Jr);Ie(21),r=L.createForOfStatement(n,t,i,Un())}else if(Me(100)){i=ie(Br);Ie(21),r=L.createForInStatement(t,i,Un())}else{Ie(26);var a=26!==ve()&&21!==ve()?ie(Br):void 0;Ie(26);var o=21!==ve()?ie(Br):void 0;Ie(21),r=L.createForStatement(t,a,o,Un())}return Ue(r,e)}function Pn(e){var t=me();Ie(241===e?80:85);var r=Je()?void 0:Ge();return Ke(),Ue(241===e?L.createBreakStatement(r):L.createContinueStatement(r),t)}function wn(){return 81===ve()?function(){var e=me();Ie(81);var t=ie(Br);Ie(58);var r=mt(3,Un);return Ue(L.createCaseClause(t,r),e)}():function(){var e=me();Ie(87),Ie(58);var t=mt(3,Un);return Ue(L.createDefaultClause(t),e)}()}function In(){var e=me();Ie(106),Ie(20);var t=ie(Br);Ie(21);var r=function(){var e=me();Ie(18);var t=mt(2,wn);return Ie(19),Ue(L.createCaseBlock(t),e)}();return Ue(L.createSwitchStatement(t,r),e)}function On(){var e=me();Ie(110);var t,r=An(!1),n=82===ve()?function(){var e,t=me();Ie(82),Me(20)?(e=ei(),Ie(21)):e=void 0;var r=An(!1);return Ue(L.createCatchClause(e,r),t)}():void 0;return n&&95!==ve()||(Ie(95),t=An(!1)),Ue(L.createTryStatement(r,n,t),e)}function Mn(){return xe(),e.tokenIsIdentifierOrKeyword(ve())&&!s.hasPrecedingLineBreak()}function Ln(){return xe(),83===ve()&&!s.hasPrecedingLineBreak()}function Rn(){return xe(),97===ve()&&!s.hasPrecedingLineBreak()}function Bn(){return xe(),(e.tokenIsIdentifierOrKeyword(ve())||8===ve()||9===ve()||10===ve())&&!s.hasPrecedingLineBreak()}function jn(){for(;;)switch(ve()){case 112:case 118:case 84:case 97:case 83:case 91:return!0;case 117:case 149:return xe(),!s.hasPrecedingLineBreak()&&we();case 139:case 140:return Hn();case 125:case 129:case 133:case 120:case 121:case 122:case 142:if(xe(),s.hasPrecedingLineBreak())return!1;continue;case 154:return xe(),18===ve()||78===ve()||92===ve();case 99:return xe(),10===ve()||41===ve()||18===ve()||e.tokenIsIdentifierOrKeyword(ve());case 92:var t=xe();if(149===t&&(t=Fe(xe)),62===t||41===t||18===t||87===t||126===t)return!0;continue;case 123:xe();continue;default:return!1}}function Jn(){return Fe(jn)}function Kn(){switch(ve()){case 59:case 26:case 18:case 112:case 118:case 97:case 83:case 91:case 98:case 89:case 114:case 96:case 85:case 80:case 104:case 115:case 106:case 108:case 110:case 86:case 82:case 95:return!0;case 99:return Jn()||Fe(sr);case 84:case 92:return Jn();case 129:case 133:case 117:case 139:case 140:case 149:case 154:return!0;case 122:case 120:case 121:case 123:case 142:return Jn()||!Fe(Mn);default:return Rr()}}function zn(){return xe(),we()||18===ve()||22===ve()}function Un(){switch(ve()){case 26:return t=me(),Ie(26),Ue(L.createEmptyStatement(),t);case 18:return An(!1);case 112:return ni(me(),ye(),void 0,void 0);case 118:if(Fe(zn))return ni(me(),ye(),void 0,void 0);break;case 97:return ii(me(),ye(),void 0,void 0);case 83:return vi(me(),ye(),void 0,void 0);case 98:return function(){var e=me();Ie(98),Ie(20);var t=ie(Br);Ie(21);var r=Un(),n=Me(90)?Un():void 0;return Ue(L.createIfStatement(t,r,n),e)}();case 89:return function(){var e=me();Ie(89);var t=Un();Ie(114),Ie(20);var r=ie(Br);return Ie(21),Me(26),Ue(L.createDoStatement(t,r),e)}();case 114:return function(){var e=me();Ie(114),Ie(20);var t=ie(Br);Ie(21);var r=Un();return Ue(L.createWhileStatement(t,r),e)}();case 96:return Nn();case 85:return Pn(240);case 80:return Pn(241);case 104:return function(){var e=me();Ie(104);var t=Je()?void 0:ie(Br);return Ke(),Ue(L.createReturnStatement(t),e)}();case 115:return function(){var e=me();Ie(115),Ie(20);var t=ie(Br);Ie(21);var r=ne(16777216,Un);return Ue(L.createWithStatement(t,r),e)}();case 106:return In();case 108:return function(){var e=me();Ie(108);var t=s.hasPrecedingLineBreak()?void 0:ie(Br);return void 0===t&&(P++,t=Ue(L.createIdentifier(""),me())),Ke(),Ue(L.createThrowStatement(t),e)}();case 110:case 82:case 95:return On();case 86:return function(){var e=me();return Ie(86),Ke(),Ue(L.createDebuggerStatement(),e)}();case 59:return qn();case 129:case 117:case 149:case 139:case 140:case 133:case 84:case 91:case 92:case 99:case 120:case 121:case 122:case 125:case 123:case 142:case 154:if(Jn())return qn()}var t;return function(){var t,r=me(),n=ye(),i=20===ve(),a=ie(Br);return e.isIdentifier(a)&&Me(58)?t=L.createLabeledStatement(a,Un()):(Ke(),t=L.createExpressionStatement(a),i&&(n=!1)),U(Ue(t,r),n)}()}function Vn(e){return 133===e.kind}function qn(){var t=e.some(Fe((function(){return pi(),gi()})),Vn);if(t){var r=ne(8388608,(function(){var e=vt(w);if(e)return ht(e)}));if(r)return r}var n=me(),i=ye(),a=pi(),o=gi();if(t){for(var s=0,c=o;s=0),e.Debug.assert(t<=o),e.Debug.assert(o<=a.length),_(a,t)){var c,u,l,p=[];return s.scanRange(t+3,i-5,(function(){var e,r,n,i=1,d=t-(a.lastIndexOf("\n",t)+1)+4;function _(t){e||(e=d),p.push(t),d+=t.length}for(be();J(5););J(4)&&(i=0,d=0);e:for(;;){switch(ve()){case 59:0===i||1===i?(g(p),E(D(d)),i=0,e=void 0):_(s.getTokenText());break;case 4:p.push(s.getTokenText()),i=0,d=0;break;case 41:var m=s.getTokenText();1===i||2===i?(i=2,_(m)):(i=1,d+=m.length);break;case 5:var y=s.getTokenText();2===i?p.push(y):void 0!==e&&d+y.length>e&&p.push(y.slice(e-d)),d+=y.length;break;case 1:break e;default:i=2,_(s.getTokenText())}be()}return f(p),g(p),r=p.length?p.join(""):void 0,n=c&&ze(c,u,l),Ue(L.createJSDocComment(r,n),t,o)}))}function f(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function g(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function m(){for(;;){if(be(),1===ve())return!0;if(5!==ve()&&4!==ve())return!1}}function y(){if(5!==ve()&&4!==ve()||!Fe(m))for(;5===ve()||4===ve();)be()}function v(){if((5===ve()||4===ve())&&Fe(m))return"";for(var e=s.hasPrecedingLineBreak(),t=!1,r="";e&&41===ve()||5===ve()||4===ve();)r+=s.getTokenText(),4===ve()?(e=!0,t=!0,r=""):41===ve()&&(e=!1),be();return t?r:""}function D(t){e.Debug.assert(59===ve());var i=s.getTokenPos();be();var a,o=K(void 0),u=v();switch(o.escapedText){case"author":a=function(e,t,r,n){var i=Ne((function(){return function(){var e=[],t=!1,r=!1,n=s.getToken();e:for(;;){switch(n){case 78:case 5:case 24:case 59:e.push(s.getTokenText());break;case 29:if(t||r)return;t=!0,e.push(s.getTokenText());break;case 31:if(!t||r)return;r=!0,e.push(s.getTokenText()),s.setTextPos(s.getTokenPos()+1);break e;case 4:case 1:break e}n=be()}if(t&&r)return 0===e.length?void 0:e.join("")}()}));if(!i){var a=me();return Ue(L.createJSDocAuthorTag(t,x(e,a,r,n)),e,a)}var o=i;if(Fe((function(){return 4!==xe()}))){var c=b(r);c&&(o+=c)}return Ue(L.createJSDocAuthorTag(t,o),e)}(i,o,t,u);break;case"implements":a=function(e,t,r,n){var i=N(),a=me();return Ue(L.createJSDocImplementsTag(t,i,x(e,a,r,n)),e,a)}(i,o,t,u);break;case"augments":case"extends":a=function(e,t,r,n){var i=N(),a=me();return Ue(L.createJSDocAugmentsTag(t,i,x(e,a,r,n)),e,a)}(i,o,t,u);break;case"class":case"constructor":a=w(i,L.createJSDocClassTag,o,t,u);break;case"public":a=w(i,L.createJSDocPublicTag,o,t,u);break;case"private":a=w(i,L.createJSDocPrivateTag,o,t,u);break;case"protected":a=w(i,L.createJSDocProtectedTag,o,t,u);break;case"readonly":a=w(i,L.createJSDocReadonlyTag,o,t,u);break;case"deprecated":H=!0,a=w(i,L.createJSDocDeprecatedTag,o,t,u);break;case"this":a=function(e,t,n,i){var a=r(!0);y();var o=me();return Ue(L.createJSDocThisTag(t,a,x(e,o,n,i)),e,o)}(i,o,t,u);break;case"enum":a=function(e,t,n,i){var a=r(!0);y();var o=me();return Ue(L.createJSDocEnumTag(t,a,x(e,o,n,i)),e,o)}(i,o,t,u);break;case"arg":case"argument":case"param":return A(i,o,2,t);case"return":case"returns":a=function(t,r,n,i){e.some(c,e.isJSDocReturnTag)&&pe(r.pos,s.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var a=C(),o=me();return Ue(L.createJSDocReturnTag(r,a,x(t,o,n,i)),t,o)}(i,o,t,u);break;case"template":a=function(e,t,n,i){var a=18===ve()?r():void 0,o=function(){var e=me(),t=[];do{y(),t.push(j()),v()}while(J(27));return ze(t,e)}(),s=me();return Ue(L.createJSDocTemplateTag(t,a,o,x(e,s,n,i)),e,s)}(i,o,t,u);break;case"type":a=F(i,o,t,u);break;case"typedef":a=function(t,r,n,i){var a,o=C();v();var s=I();y();var c,u=b(n);if(!o||k(o.type)){for(var l=void 0,_=void 0,p=void 0,f=!1;l=Ne((function(){return M(n)}));)if(f=!0,329===l.kind){if(_){de(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);var g=e.lastOrUndefined(S);g&&e.addRelatedInfo(g,e.createDetachedDiagnostic(d,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}_=l}else p=e.append(p,l);if(f){var m=o&&178===o.type.kind,h=L.createJSDocTypeLiteral(p,m);c=(o=_&&_.typeExpression&&!k(_.typeExpression.type)?_.typeExpression:Ue(h,t)).end}}c=c||void 0!==u?me():(null!==(a=null!=s?s:o)&&void 0!==a?a:r).end,u||(u=x(t,c,n,i));return Ue(L.createJSDocTypedefTag(r,o,s,u),t,c)}(i,o,t,u);break;case"callback":a=function(t,r,n,i){var a=I();y();var o=b(n),s=function(t){var r,n,i=me();for(;r=Ne((function(){return R(4,t)}));)n=e.append(n,r);return ze(n||[],i)}(n),c=Ne((function(){if(J(59)){var e=D(n);if(e&&327===e.kind)return e}})),u=Ue(L.createJSDocSignature(void 0,s,c),t),l=me();o||(o=x(t,l,n,i));return Ue(L.createJSDocCallbackTag(r,u,a,o),t,l)}(i,o,t,u);break;case"see":a=function(e,t,r,i){var a=n(),o=me(),s=void 0!==r&&void 0!==i?x(e,o,r,i):void 0;return Ue(L.createJSDocSeeTag(t,a,s),e,o)}(i,o,t,u);break;default:a=function(e,t,r,n){var i=me();return Ue(L.createJSDocUnknownTag(t,x(e,i,r,n)),e,i)}(i,o,t,u)}return a}function x(e,t,r,n){return n||(r+=t-e),b(r,n.slice(r))}function b(t,r){var n,i=[],a=0;function o(e){n||(n=t),i.push(e),t+=e.length}void 0!==r&&(""!==r&&o(r),a=1);var c=ve();e:for(;;){switch(c){case 4:a=0,i.push(s.getTokenText()),t=0;break;case 59:if(3===a){i.push(s.getTokenText());break}s.setTextPos(s.getTextPos()-1);case 1:break e;case 5:if(2===a||3===a)o(s.getTokenText());else{var u=s.getTokenText();void 0!==n&&t+u.length>n&&i.push(u.slice(n-t)),t+=u.length}break;case 18:a=2,Fe((function(){return 59===be()&&e.tokenIsIdentifierOrKeyword(be())&&"link"===s.getTokenText()}))&&(o(s.getTokenText()),be(),o(s.getTokenText()),be()),o(s.getTokenText());break;case 61:a=3===a?2:3,o(s.getTokenText());break;case 41:if(0===a){a=1,t+=1;break}default:3!==a&&(a=2),o(s.getTokenText())}c=be()}return f(i),g(i),0===i.length?void 0:i.join("")}function E(e){e&&(c?c.push(e):(c=[e],u=e.pos),l=e.end)}function C(){return v(),18===ve()?r():void 0}function T(){var t=J(22);t&&y();var r=J(61),n=function(){var e=K();Me(22)&&Ie(23);for(;Me(24);){var t=K();Me(22)&&Ie(23),e=Tt(e,t)}return e}();return r&&function(t){Re(t)||Ve(t,!1,e.Diagnostics._0_expected,e.tokenToString(t))}(61),t&&(y(),Le(62)&&Br(),Ie(23)),{name:n,isBracketed:t}}function k(t){switch(t.kind){case 145:return!0;case 178:return k(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText&&!t.typeArguments}}function A(t,r,n,i){var a=C(),o=!a;v();var c=T(),u=c.name,l=c.isBracketed;y(),o&&(a=C());var d=b(i+s.getStartPos()-t),_=4!==n&&function(t,r,n,i){if(t&&k(t.type)){for(var a=me(),o=void 0,s=void 0;o=Ne((function(){return R(n,i,r)}));)326!==o.kind&&333!==o.kind||(s=e.append(s,o));if(s){var c=Ue(L.createJSDocTypeLiteral(s,178===t.type.kind),a);return Ue(L.createJSDocTypeExpression(c),a)}}}(a,u,n,i);return _&&(a=_,o=!0),Ue(1===n?L.createJSDocPropertyTag(r,u,l,a,o,d):L.createJSDocParameterTag(r,u,l,a,o,d),t)}function F(t,n,i,a){e.some(c,e.isJSDocTypeTag)&&pe(n.pos,s.getTokenPos(),e.Diagnostics._0_tag_already_specified,n.escapedText);var o=r(!0),u=me(),l=void 0!==i&&void 0!==a?x(t,u,i,a):void 0;return Ue(L.createJSDocTypeTag(n,o,l),t,u)}function N(){var e=Me(18),t=me(),r=function(){var e=me(),t=K();for(;Me(24);){var r=K();t=Ue(L.createPropertyAccessExpression(t,r),e)}return t}(),n=Si(),i=Ue(L.createExpressionWithTypeArguments(r,n),t);return e&&Ie(19),i}function w(e,t,r,n,i){var a=me();return Ue(t(r,x(e,a,n,i)),e,a)}function I(t){var r=s.getTokenPos();if(e.tokenIsIdentifierOrKeyword(ve())){var n=K();if(Me(24)){var i=I(!0);return Ue(L.createModuleDeclaration(void 0,void 0,n,i,t?4:void 0),r)}return t&&(n.isInJSDocNamespace=!0),n}}function O(t,r){for(;!e.isIdentifier(t)||!e.isIdentifier(r);){if(e.isIdentifier(t)||e.isIdentifier(r)||t.right.escapedText!==r.right.escapedText)return!1;t=t.left,r=r.left}return t.escapedText===r.escapedText}function M(e){return R(1,e)}function R(t,r,n){for(var i=!0,a=!1;;)switch(be()){case 59:if(i){var o=B(t,r);return!(o&&(326===o.kind||333===o.kind)&&4!==t&&n&&(e.isIdentifier(o.name)||!O(n,o.name.left)))&&o}a=!1;break;case 4:i=!0,a=!1;break;case 41:a&&(i=!1),a=!0;break;case 78:i=!1;break;case 1:return!1}}function B(t,r){e.Debug.assert(59===ve());var n=s.getStartPos();be();var i,a=K();switch(y(),a.escapedText){case"type":return 1===t&&F(n,a);case"prop":case"property":i=1;break;case"arg":case"argument":case"param":i=6;break;default:return!1}return!!(t&i)&&A(n,a,t,r)}function j(){var t=me(),r=K(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);return Ue(L.createTypeParameterDeclaration(r,void 0,void 0),t)}function J(e){return ve()===e&&(be(),!0)}function K(t){if(!e.tokenIsIdentifierOrKeyword(ve()))return Ve(78,!t,t||e.Diagnostics.Identifier_expected);P++;var r=s.getTokenPos(),n=s.getTextPos(),i=ve(),a=qe(s.getTokenValue()),o=Ue(L.createIdentifier(a,void 0,i),r,n);return be(),o}}t.parseJSDocTypeExpressionForTests=function(t,n,i){J("file.js",t,99,void 0,1),s.setText(t,n,i),k=s.scan();var a=r(),o=X("file.js",99,1,!1,[],L.createToken(1),0),c=e.attachFileToDiagnostics(S,o);return C&&(o.jsDocDiagnostics=e.attachFileToDiagnostics(C,o)),K(),a?{jsDocTypeExpression:a,diagnostics:c}:void 0},t.parseJSDocTypeExpression=r,t.parseJSDocNameReference=n,t.parseIsolatedJSDocComment=function(t,r,n){J("",t,99,void 0,1);var i=ne(4194304,(function(){return o(r,n)})),a={languageVariant:0,text:t},s=e.attachFileToDiagnostics(S,a);return K(),i?{jsDoc:i,diagnostics:s}:void 0},t.parseJSDocComment=function(t,r,n){var i=k,a=S.length,s=B,c=ne(4194304,(function(){return o(r,n)}));return e.setParent(c,t),131072&O&&(C||(C=[]),C.push.apply(C,S)),k=i,S.length=a,B=s,c},function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments",e[e.SavingBackticks=3]="SavingBackticks"}(i||(i={})),function(e){e[e.Property=1]="Property",e[e.Parameter=2]="Parameter",e[e.CallbackParameter=4]="CallbackParameter"}(a||(a={}))}(W=t.JSDocParser||(t.JSDocParser={}))}(c||(c={})),function(t){function r(t,r,i,o,s,c){return void(r?l(t):u(t));function u(t){var r="";if(c&&n(t)&&(r=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),e.setTextRangePosEnd(t,t.pos+i,t.end+i),c&&n(t)&&e.Debug.assert(r===s.substring(t.pos,t.end)),p(t,u,l),e.hasJSDocNodes(t))for(var d=0,_=t.jsDoc;d<_.length;d++){u(_[d])}a(t,c)}function l(t){t._children=void 0,e.setTextRangePosEnd(t,t.pos+i,t.end+i);for(var r=0,n=t;r=r,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=n,"Adjusting an element that was entirely after the change range"),e.Debug.assert(t.pos<=t.end);var o=Math.min(t.pos,i),s=t.end>=n?t.end+a:Math.min(t.end,i);e.Debug.assert(o<=s),t.parent&&(e.Debug.assertGreaterThanOrEqual(o,t.parent.pos),e.Debug.assertLessThanOrEqual(s,t.parent.end)),e.setTextRangePosEnd(t,o,s)}function a(t,r){if(r){var n=t.pos,i=function(t){e.Debug.assert(t.pos>=n),n=t.end};if(e.hasJSDocNodes(t))for(var a=0,o=t.jsDoc;ar),!0;if(a.pos>=i.pos&&(i=a),ri.pos&&(i=a)}return i}function s(t,r,n,i){var a=t.text;if(n&&(e.Debug.assert(a.length-n.span.length+n.newLength===r.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,n.span.start),s=r.substr(0,n.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(n.span),a.length),u=r.substring(e.textSpanEnd(e.textChangeRangeNewSpan(n)),r.length);e.Debug.assert(c===u)}}function u(t){var r=t.statements,n=0;e.Debug.assert(n=t.pos&&e=t.pos&&e0&&a<=n;a++){var s=o(t,i);e.Debug.assert(s.pos<=i);var c=s.pos;i=Math.max(0,c-1)}var u=e.createTextSpanFromBounds(i,e.textSpanEnd(r.span)),l=r.newLength+(r.span.start-i);return e.createTextChangeRange(u,l)}(t,l);s(t,n,m,d),e.Debug.assert(m.span.start<=l.span.start),e.Debug.assert(e.textSpanEnd(m.span)===e.textSpanEnd(l.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(m))===e.textSpanEnd(e.textChangeRangeNewSpan(l)));var y=e.textChangeRangeNewSpan(m).length-m.span.length;!function(t,n,o,s,c,u,l,d){return void _(t);function _(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)r(t,!1,c,u,l,d);else{var g=t.end;if(g>=n){if(t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c),p(t,_,f),e.hasJSDocNodes(t))for(var m=0,y=t.jsDoc;mo)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 p=0,f=t;pi){y();var m={range:{pos:f.pos+a,end:f.end+a},type:g};u=e.append(u,m),c&&e.Debug.assert(o.substring(f.pos,f.end)===s.substring(m.range.pos,m.range.end))}}return y(),u;function y(){l||(l=!0,u?r&&u.push.apply(u,r):u=r)}}(t.commentDirectives,v.commentDirectives,m.span.start,e.textSpanEnd(m.span),y,f,n,d),v},t.createSyntaxCursor=u,function(e){e[e.Value=-1]="Value"}(l||(l={}))}(u||(u={})),e.isDeclarationFileName=g,e.processCommentPragmas=m,e.processPragmasIntoFields=y;var v=new e.Map;function h(e){if(v.has(e))return v.get(e);var t=new RegExp("(\\s"+e+"\\s*=\\s*)('|\")(.+?)\\2","im");return v.set(e,t),t}var D=/^\/\/\/\s*<(\S+)\s.*?\/>/im,x=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function b(t,r,n){var i=2===r.kind&&D.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=r.length)break;var o=a;if(34===r.charCodeAt(o)){for(a++;a32;)a++;i.push(r.substring(o,a))}}c(i)}else s.push(r)}}function y(t,r,n,i,a,o){if(i.isTSConfigOnly)"null"===(s=t[r])?(a[i.name]=void 0,r++):"boolean"===i.type?"false"===s?(a[i.name]=!1,r++):("true"===s&&r++,o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),s&&!e.startsWith(s,"-")&&r++);else if(t[r]||"boolean"===i.type||o.push(e.createCompilerDiagnostic(n.optionTypeMismatchDiagnostic,i.name,B(i))),"null"!==t[r])switch(i.type){case"number":a[i.name]=parseInt(t[r]),r++;break;case"boolean":var s=t[r];a[i.name]="false"!==s,"false"!==s&&"true"!==s||r++;break;case"string":a[i.name]=t[r]||"",r++;break;case"list":var c=p(i,t[r],o);a[i.name]=c||[],c&&r++;break;default:a[i.name]=_(i,t[r],o),r++}else a[i.name]=void 0,r++;return r}function v(e,t){return h(c,e,t)}function h(e,t,r){void 0===r&&(r=!1),t=t.toLowerCase();var n=e(),i=n.optionsNameMap,a=n.shortOptionNames;if(r){var o=a.get(t);void 0!==o&&(t=o)}return i.get(t)}e.libs=o.map((function(e){return e[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,usefsevents:e.WatchFileKind.UseFsEvents,usefseventsonparentdirectory:e.WatchFileKind.UseFsEventsOnParentDirectory})),category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_UseFsEvents_UseFsEventsOnParentDirectory},{name:"watchDirectory",type:new e.Map(e.getEntries({usefsevents:e.WatchDirectoryKind.UseFsEvents,fixedpollinginterval:e.WatchDirectoryKind.FixedPollingInterval,dynamicprioritypolling:e.WatchDirectoryKind.DynamicPriorityPolling})),category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling},{name:"fallbackPolling",type:new e.Map(e.getEntries({fixedinterval:e.PollingWatchKind.FixedInterval,priorityinterval:e.PollingWatchKind.PriorityInterval,dynamicpriority:e.PollingWatchKind.DynamicPriority})),category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority},{name:"synchronousWatchDirectory",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively}],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:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Enable_incremental_compilation,transpileOptionValue:void 0},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it},{name:"locale",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_locale_used_when_displaying_messages_to_the_user_e_g_en_us}],e.optionDeclarations=r(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:new e.Map(e.getEntries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_ES2020_or_ESNEXT},{name:"module",shortName:"m",type:new e.Map(e.getEntries({none:e.ModuleKind.None,commonjs:e.ModuleKind.CommonJS,amd:e.ModuleKind.AMD,system:e.ModuleKind.System,umd:e.ModuleKind.UMD,es6:e.ModuleKind.ES2015,es2015:e.ModuleKind.ES2015,es2020:e.ModuleKind.ES2020,esnext:e.ModuleKind.ESNext})),affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_es2020_or_ESNext},{name:"lib",type:"list",element:{name:"lib",type:e.libMap},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_library_files_to_be_included_in_the_compilation,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Allow_javascript_files_to_be_compiled},{name:"checkJs",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Report_errors_in_js_files},{name:"jsx",type:t,affectsSourceFile:!0,affectsEmit:!0,affectsModuleResolution:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_JSX_code_generation_Colon_preserve_react_native_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",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_outputs,transpileOptionValue:void 0},{name:"importHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Import_emit_helpers_from_tslib},{name:"importsNotUsedAsValues",type:new e.Map(e.getEntries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule,transpileOptionValue:!0},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_all_strict_type_checking_options},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_expressions_and_declarations_with_an_implied_any_type},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_null_checks},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_function_types},{name:"strictBindCallApply",type:"boolean",strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_bind_call_and_apply_methods_on_functions},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_property_initialization_in_classes},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_this_expressions_with_an_implied_any_type},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Parse_in_strict_mode_and_emit_use_strict_for_each_source_file},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_locals},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_parameters},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_error_when_not_all_code_paths_in_function_return_a_value},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_for_fallthrough_cases_in_switch_statement},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!1,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Include_undefined_in_index_signature_results},{name:"moduleResolution",type:new e.Map(e.getEntries({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic})),affectsModuleResolution:!0,paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Base_directory_to_resolve_non_absolute_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime,transpileOptionValue:void 0},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_folders_to_include_type_definitions_from},{name:"types",type:"list",element:{name:"types",type:"string"},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Type_declaration_files_to_be_included_in_compilation,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Do_not_resolve_the_real_path_of_symlinks},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Allow_accessing_UMD_globals_from_modules},{name:"sourceRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations},{name:"mapRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file},{name:"inlineSources",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set},{name:"experimentalDecorators",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_ES7_decorators},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_emitting_type_metadata_for_decorators},{name:"jsxFactory",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h},{name:"jsxFragmentFactory",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Include_modules_imported_with_json_extension},{name:"out",type:"string",affectsEmit:!0,isFilePath:!1,category:e.Diagnostics.Advanced_Options,paramType:e.Diagnostics.FILE,description:e.Diagnostics.Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file,transpileOptionValue:void 0},{name:"reactNamespace",type:"string",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit},{name:"skipDefaultLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files},{name:"charset",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_character_set_of_the_input_files},{name:"emitBOM",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files},{name:"newLine",type:new e.Map(e.getEntries({crlf:0,lf:1})),affectsEmit:!0,paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_truncate_error_messages},{name:"noLib",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_include_the_default_library_file_lib_d_ts,transpileOptionValue:!0},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files,transpileOptionValue:!0},{name:"stripInternal",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_declarations_for_code_that_has_an_internal_annotation},{name:"disableSizeLimit",type:"boolean",affectsSourceFile:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_size_limitations_on_JavaScript_projects},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_solution_searching_for_this_project},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_loading_referenced_projects},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_use_strict_directives_in_module_output},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_generate_custom_helper_functions_like_extends_in_compiled_output},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_outputs_if_any_errors_were_reported,transpileOptionValue:void 0},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_erase_const_enum_declarations_in_generated_code},{name:"declarationDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Output_directory_for_generated_declaration_files,transpileOptionValue:void 0},{name:"skipLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Skip_type_checking_of_declaration_files},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unused_labels},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unreachable_code},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_excess_property_checks_for_object_literals},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disallow_inconsistently_cased_references_to_the_same_file},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Emit_class_fields_with_Define_instead_of_Set},{name:"keyofStringsOnly",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:e.Diagnostics.List_of_language_service_plugins}]),e.semanticDiagnosticsOptionDeclarations=e.optionDeclarations.filter((function(e){return!!e.affectsSemanticDiagnostics})),e.affectsEmitOptionDeclarations=e.optionDeclarations.filter((function(e){return!!e.affectsEmit})),e.moduleResolutionOptionDeclarations=e.optionDeclarations.filter((function(e){return!!e.affectsModuleResolution})),e.sourceFileAffectingCompilerOptions=e.optionDeclarations.filter((function(e){return!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics})),e.transpileOptionValueCompilerOptions=e.optionDeclarations.filter((function(t){return e.hasProperty(t,"transpileOptionValue")})),e.buildOpts=r(e.commonOptionsWithBuild,[{name:"verbose",shortName:"v",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Enable_verbose_logging,type:"boolean"},{name:"dry",shortName:"d",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean"},{name:"force",shortName:"f",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean"},{name:"clean",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean"}]),e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean"},{name:"enable",type:"boolean"},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean"}],e.createOptionNameMap=s,e.getOptionsNameMap=c,e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:1,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},e.convertEnableAutoDiscoveryToEnable=u,e.createCompilerDiagnosticForInvalidCustomType=l,e.parseCustomTypeOption=_,e.parseListTypeOption=p,e.parseCommandLineWorker=m,e.compilerOptionsDidYouMeanDiagnostics={getOptionsNameMap:c,optionDeclarations:e.optionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Compiler_option_0_expects_an_argument},e.parseCommandLine=function(t,r){return m(e.compilerOptionsDidYouMeanDiagnostics,t,r)},e.getOptionFromName=v;var D={getOptionsNameMap:function(){return a||(a=s(e.buildOpts))},optionDeclarations:e.buildOpts,unknownOptionDiagnostic:e.Diagnostics.Unknown_build_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Build_option_0_requires_a_value_of_type_1};function x(t,r){var n=e.parseJsonText(t,r);return{config:L(n,n.parseDiagnostics),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function b(t,r){var n=S(t,r);return e.isString(n)?e.parseJsonText(t,n):{fileName:t,parseDiagnostics:[n]}}function S(t,r){var n;try{n=r(t)}catch(r){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,r.message)}return void 0===n?e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0,t):n}function E(t){return e.arrayToMap(t,f)}e.parseBuildCommand=function(t){var r=m(D,t),n=r.options,i=r.watchOptions,a=r.fileNames,o=r.errors,s=n;return 0===a.length&&a.push("."),s.clean&&s.force&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:i,projects:a,errors:o}},e.getDiagnosticText=function(t){for(var r=[],n=1;n=0)return c.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,r(s,[d]).join(" -> "))),{raw:t||L(n,c)};var _=t?function(t,r,n,i,a){e.hasProperty(t,"excludes")&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var o,s=ae(t.compilerOptions,n,a,i),c=se(t.typeAcquisition||t.typingOptions,n,a,i),u=function(e,t,r){return ce(O(),e,t,void 0,w,r)}(t.watchOptions,n,a);if(t.compileOnSave=function(t,r,n){if(!e.hasProperty(t,e.compileOnSaveCommandLineOption.name))return!1;var i=ue(e.compileOnSaveCommandLineOption,t.compileOnSave,r,n);return"boolean"==typeof i&&i}(t,n,a),t.extends)if(e.isString(t.extends)){var l=i?X(i,n):n;o=ne(t.extends,r,l,a,e.createCompilerDiagnostic)}else a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));return{raw:t,options:s,watchOptions:u,typeAcquisition:c,extendedConfigPath:o}}(t,i,a,o,c):function(t,r,n,i,a){var o,s,c,u,l=ie(i),d={onSetValidOptionKeyValueInParent:function(t,r,a){var u;switch(t){case"compilerOptions":u=l;break;case"watchOptions":u=c||(c={});break;case"typeAcquisition":u=o||(o=oe(i));break;case"typingOptions":u=s||(s=oe(i));break;default:e.Debug.fail("Unknown option")}u[r.name]=le(r,n,a)},onSetValidOptionKeyValueInRoot:function(o,s,c,l){switch(o){case"extends":var d=i?X(i,n):n;return void(u=ne(c,r,d,a,(function(r,n){return e.createDiagnosticForNodeInSourceFile(t,l,r,n)})))}},onSetUnknownOptionKeyValueInRoot:function(r,n,i,o){"excludes"===r&&a.push(e.createDiagnosticForNodeInSourceFile(t,n,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},_=R(t,a,!0,(void 0===P&&(P={name:void 0,type:"object",elementOptions:E([{name:"compilerOptions",type:"object",elementOptions:I(),extraKeyDiagnostics:e.compilerOptionsDidYouMeanDiagnostics},{name:"watchOptions",type:"object",elementOptions:O(),extraKeyDiagnostics:w},{name:"typingOptions",type:"object",elementOptions:M(),extraKeyDiagnostics:T},{name:"typeAcquisition",type:"object",elementOptions:M(),extraKeyDiagnostics:T},{name:"extends",type:"string"},{name:"references",type:"list",element:{name:"references",type:"object"}},{name:"files",type:"list",element:{name:"files",type:"string"}},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},e.compileOnSaveCommandLineOption])}),P),d);o||(o=s?void 0!==s.enableAutoDiscovery?{enable:s.enableAutoDiscovery,include:s.include,exclude:s.exclude}:s:oe(i));return{raw:_,options:l,watchOptions:c,typeAcquisition:o,extendedConfigPath:u}}(n,i,a,o,c);if((null===(l=_.options)||void 0===l?void 0:l.paths)&&(_.options.pathsBasePath=a),_.extendedConfigPath){s=s.concat([d]);var p=function(t,r,n,i,a,o,s){var c,u,l,d,_=n.useCaseSensitiveFileNames?r:e.toFileNameLowerCase(r);if(s&&(u=s.get(_)))l=u.extendedResult,d=u.extendedConfig;else{if(!(l=b(r,(function(e){return n.readFile(e)}))).parseDiagnostics.length){var p=e.getDirectoryPath(r);if(te(d=re(void 0,l,n,p,e.getBaseFileName(r),a,o,s))){var f=e.convertToRelativePath(p,i,e.identity),g=function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(f,t)},m=function(t){y[t]&&(y[t]=e.map(y[t],g))},y=d.raw;m("include"),m("exclude"),m("files")}}s&&s.set(_,{extendedResult:l,extendedConfig:d})}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 d}(n,_.extendedConfigPath,i,a,s,c,u);if(p&&te(p)){var f=p.raw,g=_.raw,m=function(e){var t=g[e]||f[e];t&&(g[e]=t)};m("include"),m("exclude"),m("files"),void 0===g.compileOnSave&&(g.compileOnSave=f.compileOnSave),_.options=e.assign({},p.options,_.options),_.watchOptions=_.watchOptions&&p.watchOptions?e.assign({},p.watchOptions,_.watchOptions):_.watchOptions||p.watchOptions}}return _}function ne(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 ie(t){return t&&"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function ae(t,r,n,i){var a=ie(i);return ce(I(),t,r,a,e.compilerOptionsDidYouMeanDiagnostics,n),i&&(a.configFilePath=e.normalizeSlashes(i)),a}function oe(t){return{enable:!!t&&"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function se(e,t,r,n){var i=oe(n),a=u(e);return ce(M(),a,t,i,T,r),i}function ce(t,r,n,i,a,o){if(r){for(var s in r){var c=t.get(s);c?(i||(i={}))[c.name]=ue(c,r[s],n,o):o.push(g(s,a,e.createCompilerDiagnostic))}return i}}function ue(t,r,n,i){if(j(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 ue(t.element,e,n,i)})),(function(e){return!!e}))}(t,r,n,i):e.isString(a)?de(t,n,r):_e(t,r,i)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,B(t)))}function le(t,r,n){if(!Y(n)){if("list"===t.type){var i=t;return i.element.isFilePath||!e.isString(i.element.type)?e.filter(e.map(n,(function(e){return le(i.element,r,e)})),(function(e){return!!e})):n}return e.isString(t.type)?de(t,r,n):t.type.get(e.isString(n)?n.toLowerCase():n)}}function de(t,r,n){return t.isFilePath&&""===(n=e.getNormalizedAbsolutePath(n,r))&&(n="."),n}function _e(e,t,r){if(!Y(t)){var n=t.toLowerCase(),i=e.type.get(n);if(void 0!==i)return i;r.push(l(e))}}function pe(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}e.convertToObject=L,e.convertToObjectWorker=R,e.convertToTSConfig=function(t,r,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}}(r,t.configFileSpecs.validatedIncludeSpecs,t.configFileSpecs.validatedExcludeSpecs,i):function(e){return!0}),(function(t){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(r,i.getCurrentDirectory()),e.getNormalizedAbsolutePath(t,i.getCurrentDirectory()),a)})),s=V(t.options,{configFilePath:e.getNormalizedAbsolutePath(r,i.getCurrentDirectory()),useCaseSensitiveFileNames:i.useCaseSensitiveFileNames}),c=t.watchOptions&&function(e){return q(e,k())}(t.watchOptions);return n(n({compilerOptions:n(n({},J(s)),{showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0}),watchOptions:c&&J(c),references:e.map(t.projectReferences,(function(e){return n(n({},e),{path:e.originalPath?e.originalPath:"",originalPath:void 0})})),files:e.length(o)?o:void 0},t.configFileSpecs?{include:K(t.configFileSpecs.validatedIncludeSpecs),exclude:t.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:!!t.compileOnSave||void 0})},e.generateTSConfig=function(t,r,n){var i=V(e.extend(t,e.defaultInitCompilerOptions));return function(){for(var t=e.createMultiMap(),c=0,u=e.optionDeclarations;c0)for(var x=function(t){if(e.fileExtensionIs(t,".json")){if(!o){var n=_.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 d=s(t);c.has(d)||l.has(d)||l.set(d,t)}return"continue"}if(function(t,r,n,i,a){for(var o=e.getExtensionPriority(t,i),s=e.adjustExtensionPriority(o,i),c=0;cs&&(s=l),1===s)return s}return s}break;case 257:var d=0;return e.forEachChild(t,(function(t){var n=a(t,r);switch(n){case 0:return;case 2:return void(d=2);case 1:return d=1,!0;default:e.Debug.assertNever(n)}})),d;case 256:return i(t,r);case 78: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;so)&&(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"}(t||(t={}));var c=function(){var t,a,o,c,_,p,f,g,m,y,v,h,D,x,b,S,E,C,T,k,A,F,N,P,w=!1,I=0,O={flags:1},M={flags:1};function L(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(r)||t,r,n,i,a,o)}return function(r,n){t=r,a=n,o=e.getEmitScriptTarget(a),F=function(t,r){return!(!e.getStrictOptionValue(r,"alwaysStrict")||t.isDeclarationFile)||!!t.externalModuleIndicator}(t,n),P=new e.Set,I=0,N=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(O),e.Debug.attachFlowNodeDebugInfo(M),t.locals||(Re(t),t.symbolCount=I,t.classifiableNames=P,function(){if(m){for(var r=_,n=g,i=f,a=c,o=v,u=0,d=m;u=232&&t.kind<=248&&!a.allowUnreachableCode&&(t.flowNode=v),t.kind){case 236:!function(e){var t=fe(e,Z()),r=$(),n=$();re(t,v),v=t,_e(e.expression,r,n),v=se(r),pe(e.statement,n,t),re(t,v),v=se(n)}(t);break;case 235:!function(e){var t=Z(),r=fe(e,$()),n=$();re(t,v),v=t,pe(e.statement,n,r),re(r,v),v=se(r),_e(e.expression,t,n),v=se(n)}(t);break;case 237:!function(e){var t=fe(e,Z()),r=$(),n=$();Re(e.initializer),re(t,v),v=t,_e(e.condition,r,n),v=se(r),pe(e.statement,n,t),Re(e.incrementor),re(t,v),v=se(n)}(t);break;case 238:case 239:!function(e){var t=fe(e,Z()),r=$();Re(e.expression),re(t,v),v=t,239===e.kind&&Re(e.awaitModifier);re(r,v),Re(e.initializer),250!==e.initializer.kind&&ve(e.initializer);pe(e.statement,r,t),re(t,v),v=se(r)}(t);break;case 234:!function(e){var t=$(),r=$(),n=$();_e(e.expression,t,r),v=se(t),Re(e.thenStatement),re(n,v),v=se(r),Re(e.elseStatement),re(n,v),v=se(n)}(t);break;case 242:case 246:!function(e){Re(e.expression),242===e.kind&&(k=!0,x&&re(x,v));v=O}(t);break;case 241:case 240:!function(e){if(Re(e.label),e.label){var t=function(e){for(var t=T;t;t=t.next)if(t.name===e)return t;return}(e.label.escapedText);t&&(t.referenced=!0,ge(e,t.breakTarget,t.continueTarget))}else ge(e,h,D)}(t);break;case 247:!function(t){var r=x,n=E,i=$(),a=$(),o=$();t.finallyBlock&&(x=a);re(o,v),E=o,Re(t.tryBlock),re(i,v),t.catchClause&&(v=se(o),re(o=$(),v),E=o,Re(t.catchClause),re(i,v));if(x=r,E=n,t.finallyBlock){var s=$();s.antecedents=e.concatenate(e.concatenate(i.antecedents,o.antecedents),a.antecedents),v=s,Re(t.finallyBlock),1&v.flags?v=O:(x&&a.antecedents&&re(x,ee(s,a.antecedents,v)),E&&o.antecedents&&re(E,ee(s,o.antecedents,v)),v=i.antecedents?ee(s,i.antecedents,v):O)}else v=se(i)}(t);break;case 244:!function(t){var r=$();Re(t.expression);var n=h,i=C;h=r,C=v,Re(t.caseBlock),re(r,v);var a=e.forEach(t.caseBlock.clauses,(function(e){return 285===e.kind}));t.possiblyExhaustive=!a&&!r.antecedents,a||re(r,ie(C,t,0,0));h=n,C=i,v=se(r)}(t);break;case 258:!function(e){for(var t=e.clauses,r=H(e.parent.expression),n=O,i=0;i=0;)switch(t=r.expr[n],r.state[n]){case 0:e.setParent(t,c);var i=F;Ke(t);var a=c;c=t,u(1,i,a);break;case 1:if(55===(s=t.operatorToken.kind)||56===s||60===s||e.isLogicalOrCoalescingAssignmentOperator(s)){if(le(t)){var o=$();he(t,o,o),v=se(o)}else he(t,b,S);l()}else u(2),d(t.left);break;case 2:27===t.operatorToken.kind&&me(t.left),u(3),d(t.operatorToken);break;case 3:u(4),d(t.right);break;case 4:var s=t.operatorToken.kind;if(e.isAssignmentOperator(s)&&!e.isAssignmentTarget(t))if(ve(t.left),62===s&&202===t.left.kind)Q(t.left.expression)&&(v=ae(256,v,t));l();break;default:return e.Debug.fail("Invalid state "+r.state[n]+" for bindBinaryExpressionFlow")}function u(e,t,i){r.state[n]=e,void 0!==t&&(r.inStrictMode[n]=t),void 0!==i&&(r.parent[n]=i)}function l(){void 0!==r.inStrictMode[n]&&(F=r.inStrictMode[n],c=r.parent[n]),n--}function d(t){t&&e.isBinaryExpression(t)&&!e.isDestructuringAssignment(t)?(n++,r.expr[n]=t,r.state[n]=0,r.inStrictMode[n]=void 0,r.parent[n]=void 0):Re(t)}}(t);break;case 210:!function(e){q(e),201===e.expression.kind&&ve(e.expression)}(t);break;case 217:!function(e){var t=$(),r=$(),n=$();_e(e.condition,t,r),v=se(t),Re(e.questionToken),Re(e.whenTrue),re(n,v),v=se(r),Re(e.colonToken),Re(e.whenFalse),re(n,v),v=se(n)}(t);break;case 249:!function(t){q(t),(t.initializer||e.isForInOrOfStatement(t.parent.parent))&&De(t)}(t);break;case 201:case 202:!function(t){e.isOptionalChain(t)?Se(t):q(t)}(t);break;case 203:!function(t){if(e.isOptionalChain(t))Se(t);else{var r=e.skipParentheses(t.expression);208===r.kind||209===r.kind?(V(t.typeArguments),V(t.arguments),Re(t.expression)):(q(t),105===t.expression.kind&&(v=oe(v,t)))}if(201===t.expression.kind){var n=t.expression;e.isIdentifier(n.name)&&Q(n.expression)&&e.isPushOrUnshiftIdentifier(n.name)&&(v=ae(256,v,t))}}(t);break;case 225:!function(t){e.isOptionalChain(t)?Se(t):q(t)}(t);break;case 331:case 324:case 325:!function(t){e.setParent(t.tagName,t),325!==t.kind&&t.fullName&&(e.setParent(t.fullName,t),e.setParentRecursive(t.fullName,!1))}(t);break;case 297:U(t.statements),Re(t.endOfFileToken);break;case 230:case 257:U(t.statements);break;case 198:!function(t){e.isBindingPattern(t.name)?(V(t.decorators),V(t.modifiers),Re(t.dotDotDotToken),Re(t.propertyName),Re(t.initializer),Re(t.name)):q(t)}(t);break;case 200:case 199:case 288:case 220:w=r;default:q(t)}Be(t),w=r}function H(t){switch(t.kind){case 78:case 79:case 107:case 201:case 202:return Y(t);case 203:return function(e){if(e.arguments)for(var t=0,r=e.arguments;t=116&&r.originalKeywordKind<=124?t.bindDiagnostics.push(L(r,function(r){if(e.getContainingClass(r))return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;if(t.externalModuleIndicator)return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(r),e.declarationNameToString(r))):130===r.originalKeywordKind?e.isExternalModule(t)&&e.isInTopLevelContext(r)?t.bindDiagnostics.push(L(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,e.declarationNameToString(r))):32768&r.flags&&t.bindDiagnostics.push(L(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(r))):124===r.originalKeywordKind&&8192&r.flags&&t.bindDiagnostics.push(L(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(r))))}function we(r,n){if(n&&78===n.kind){var i=n;if(function(t){return e.isIdentifier(t)&&("eval"===t.escapedText||"arguments"===t.escapedText)}(i)){var a=e.getErrorSpanForNode(t,n);t.bindDiagnostics.push(e.createFileDiagnostic(t,a.start,a.length,function(r){if(e.getContainingClass(r))return e.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode;if(t.externalModuleIndicator)return e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Invalid_use_of_0_in_strict_mode}(r),e.idText(i)))}}}function Ie(e){F&&we(e,e.name)}function Oe(r){if(o<2&&297!==f.kind&&256!==f.kind&&!e.isFunctionLike(f)){var n=e.getErrorSpanForNode(t,r);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,function(r){return e.getContainingClass(r)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}(r)))}}function Me(r,n,i,a,o){var s=e.getSpanOfTokenAtPosition(t,r.pos);t.bindDiagnostics.push(e.createFileDiagnostic(t,s.start,s.length,n,i,a,o))}function Le(r,i,a,o){!function(r,i,a){var o=e.createFileDiagnostic(t,i.pos,i.end-i.pos,a);r?t.bindDiagnostics.push(o):t.bindSuggestionDiagnostics=e.append(t.bindSuggestionDiagnostics,n(n({},o),{category:e.DiagnosticCategory.Suggestion}))}(r,{pos:e.getTokenPosOfNode(i,t),end:a.end},o)}function Re(t){if(t){e.setParent(t,c);var r=F;if(Ke(t),t.kind>156){var n=c;c=t;var i=Ee(t);0===i?W(t):function(t,r){var n=_,i=p,a=f;if(1&r?(209!==t.kind&&(p=_),_=f=t,32&r&&(_.locals=e.createSymbolTable()),Ce(_)):2&r&&((f=t).locals=void 0),4&r){var o=v,c=h,u=D,l=x,d=E,g=T,m=k,b=16&r&&!e.hasSyntacticModifier(t,256)&&!t.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(t);b||(v=s({flags:2}),144&r&&(v.node=t)),x=b||166===t.kind||e.isInJSFile&&(251===t.kind||208===t.kind)?$():void 0,E=void 0,h=void 0,D=void 0,T=void 0,k=!1,W(t),t.flags&=-2817,!(1&v.flags)&&8&r&&e.nodeIsPresent(t.body)&&(t.flags|=256,k&&(t.flags|=512),t.endFlowNode=v),297===t.kind&&(t.flags|=A),x&&(re(x,v),v=se(x),(166===t.kind||e.isInJSFile&&(251===t.kind||208===t.kind))&&(t.returnFlowNode=v)),b||(v=o),h=c,D=u,x=l,E=d,T=g,k=m}else 64&r?(y=!1,W(t),t.flags=y?128|t.flags:-129&t.flags):W(t);_=n,p=i,f=a}(t,i),c=n}else{n=c;1===t.kind&&(c=t),Be(t),c=n}F=r}}function Be(t){if(e.hasJSDocNodes(t))if(e.isInJSFile(t))for(var r=0,n=t.jsDoc;r=2&&(e.isDeclarationStatement(t.statement)||e.isVariableStatement(t.statement))&&Me(t.label,e.Diagnostics.A_label_is_not_allowed_here)}(r);case 187:return void(y=!0);case 172:break;case 159:return function(t){if(e.isJSDocTemplateTag(t.parent)){var r=e.find(t.parent.parent.tags,e.isJSDocTypeAlias)||e.getHostSignatureFromJSDoc(t.parent);r?(r.locals||(r.locals=e.createSymbolTable()),K(r.locals,void 0,t,262144,526824)):Te(t,262144,526824)}else if(185===t.parent.kind){var n=function(t){var r=e.findAncestor(t,(function(t){return t.parent&&e.isConditionalTypeNode(t.parent)&&t.parent.extendsType===t}));return r&&r.parent}(t.parent);n?(n.locals||(n.locals=e.createSymbolTable()),K(n.locals,void 0,t,262144,526824)):Fe(t,262144,j(t))}else Te(t,262144,526824)}(r);case 160:return it(r);case 249:return nt(r);case 198:return r.flowNode=v,nt(r);case 163:case 162:return function(e){return at(e,4|(e.questionToken?16777216:0),0)}(r);case 288:case 289:return at(r,4,0);case 291:return at(r,8,900095);case 169:case 170:case 171:return Te(r,131072,0);case 165:case 164:return at(r,8192|(r.questionToken?16777216:0),e.isObjectLiteralMethod(r)?0:103359);case 251:return function(r){t.isDeclarationFile||8388608&r.flags||e.isAsyncFunction(r)&&(A|=2048);Ie(r),F?(Oe(r),Ne(r,16,110991)):Te(r,16,110991)}(r);case 166:return Te(r,16384,0);case 167:return at(r,32768,46015);case 168:return at(r,65536,78783);case 174:case 308:case 313:case 175:return function(t){var r=R(131072,j(t));B(r,t,131072);var n=R(2048,"__type");B(n,t,2048),n.members=e.createSymbolTable(),n.members.set(r.escapedName,r)}(r);case 177:case 312:case 190:return function(e){return Fe(e,2048,"__type")}(r);case 319:return function(t){q(t);var r=e.getHostSignatureFromJSDoc(t);r&&165!==r.kind&&B(r.symbol,r,32)}(r);case 200:return function(r){var n;if(function(e){e[e.Property=1]="Property",e[e.Accessor=2]="Accessor"}(n||(n={})),F&&!e.isAssignmentTarget(r))for(var i=new e.Map,a=0,o=r.properties;a1&&2097152&v.flags&&(t=e.createSymbolTable()).set("export=",v);return O(t),T(l);function D(e){return!!e&&78===e.kind}function x(t){return e.isVariableStatement(t)?e.filter(e.map(t.declarationList.declarations,e.getNameOfDeclaration),D):e.filter([e.getNameOfDeclaration(t)],D)}function b(t){var n=e.find(t,e.isExportAssignment),i=e.findIndex(t,e.isModuleDeclaration),a=-1!==i?t[i]:void 0;if(a&&n&&n.isExportEquals&&e.isIdentifier(n.expression)&&e.isIdentifier(a.name)&&e.idText(a.name)===e.idText(n.expression)&&a.body&&e.isModuleBlock(a.body)){var o=e.filter(t,(function(t){return!!(1&e.getEffectiveModifierFlags(t))})),s=a.name,c=a.body;if(e.length(o)&&(a=e.factory.updateModuleDeclaration(a,a.decorators,a.modifiers,a.name,c=e.factory.updateModuleBlock(c,e.factory.createNodeArray(r(a.body.statements,[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.map(e.flatMap(o,(function(e){return x(e)})),(function(t){return e.factory.createExportSpecifier(void 0,t)}))),void 0)])))),t=r(t.slice(0,i),[a],t.slice(i+1))),!e.find(t,(function(t){return t!==a&&e.nodeHasName(t,s)}))){l=[];var u=!e.some(c.statements,(function(t){return e.hasSyntacticModifier(t,1)||e.isExportAssignment(t)||e.isExportDeclaration(t)}));e.forEach(c.statements,(function(e){K(e,u?1:0)})),t=r(e.filter(t,(function(e){return e!==a&&e!==n})),l)}}return t}function E(t){var n=e.filter(t,(function(t){return e.isExportDeclaration(t)&&!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)}));if(e.length(n)>1){var i=e.filter(t,(function(t){return!e.isExportDeclaration(t)||!!t.moduleSpecifier||!t.exportClause}));t=r(i,[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(n,(function(t){return e.cast(t.exportClause,e.isNamedExports).elements}))),void 0)])}var a=e.filter(t,(function(t){return e.isExportDeclaration(t)&&!!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(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&&(t=r(e.filter(t,(function(e){return-1===n.indexOf(e)})),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(n,(function(t){return e.cast(t.exportClause,e.isNamedExports).elements}))),n[0].moduleSpecifier)]))},c=0,u=o;c=0){var n=t[r],i=e.mapDefined(n.exportClause.elements,(function(r){if(!r.propertyName){var n=e.indicesOf(t),i=e.filter(n,(function(n){return e.nodeHasName(t[n],r.name)}));if(e.length(i)&&e.every(i,(function(e){return F(t[e])}))){for(var a=0,o=i;a0&&e.isSingleOrDoubleQuote(a.charCodeAt(0))?e.stripQuotes(a):a}return"default"===r?r="_default":"export="===r&&(r="_exports"),r=e.isIdentifierText(r,q)&&!e.isStringANonContextualKeyword(r)?r:"_"+r.replace(/[^a-zA-Z0-9]/g,"_")}function pe(e,t){var r=M(e);return i.remappedSymbolNames.has(r)?i.remappedSymbolNames.get(r):(t=_e(e,t),i.remappedSymbolNames.set(r,t),t)}}(t,i,u)}))}};function i(r,n,i,a){var o,s;e.Debug.assert(void 0===r||0==(8&r.flags));var c={enclosingDeclaration:r,flags:n||0,tracker:i&&i.trackSymbol?i:{trackSymbol:e.noop,moduleResolverHost:134217728&n?{getCommonSourceDirectory:t.getCommonSourceDirectory?function(){return t.getCommonSourceDirectory()}:function(){return""},getSourceFiles:function(){return t.getSourceFiles()},getCurrentDirectory:function(){return t.getCurrentDirectory()},getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),useCaseSensitiveFileNames:e.maybeBind(t,t.useCaseSensitiveFileNames),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:function(e){return t.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return t.isSourceOfProjectReferenceRedirect(e)},fileExists:function(e){return t.fileExists(e)}}:void 0},encounteredError:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0},u=a(c);return c.truncating&&1&c.flags&&(null===(s=null===(o=c.tracker)||void 0===o?void 0:o.reportTruncationError)||void 0===s||s.call(o)),c.encounteredError?void 0:u}function o(t){return t.truncating?t.truncating:t.truncating=t.approximateLength>(1&t.flags?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function s(t,r){a&&a.throwIfCancellationRequested&&a.throwIfCancellationRequested();var n=8388608&r.flags;if(r.flags&=-8388609,!t)return 262144&r.flags?(r.approximateLength+=3,e.factory.createKeywordTypeNode(128)):void(r.encounteredError=!0);if(536870912&r.flags||(t=oc(t)),1&t.flags)return r.approximateLength+=3,e.factory.createKeywordTypeNode(t===Fe?136:128);if(2&t.flags)return e.factory.createKeywordTypeNode(152);if(4&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(147);if(8&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(144);if(64&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(155);if(16&t.flags)return r.approximateLength+=7,e.factory.createKeywordTypeNode(131);if(1024&t.flags&&!(1048576&t.flags)){var i=Ai(t.symbol),c=E(i,r,788968);if(Jo(i)===t)return c;var g=e.symbolName(t.symbol);return e.isIdentifierText(g,0)?V(c,e.factory.createTypeReferenceNode(g,void 0)):e.isImportTypeNode(c)?(c.isTypeOf=!0,e.factory.createIndexedAccessTypeNode(c,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(g)))):e.isTypeReferenceNode(c)?e.factory.createIndexedAccessTypeNode(e.factory.createTypeQueryNode(c.typeName),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(g))):e.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(1056&t.flags)return E(t.symbol,r,788968);if(128&t.flags)return r.approximateLength+=t.value.length+2,e.factory.createLiteralTypeNode(e.setEmitFlags(e.factory.createStringLiteral(t.value,!!(268435456&r.flags)),16777216));if(256&t.flags){var m=t.value;return r.approximateLength+=(""+m).length,e.factory.createLiteralTypeNode(m<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-m)):e.factory.createNumericLiteral(m))}if(2048&t.flags)return r.approximateLength+=e.pseudoBigIntToString(t.value).length+1,e.factory.createLiteralTypeNode(e.factory.createBigIntLiteral(t.value));if(512&t.flags)return r.approximateLength+=t.intrinsicName.length,e.factory.createLiteralTypeNode("true"===t.intrinsicName?e.factory.createTrue():e.factory.createFalse());if(8192&t.flags){if(!(1048576&r.flags)){if(Xi(t.symbol,r.enclosingDeclaration))return r.approximateLength+=6,E(t.symbol,r,111551);r.tracker.reportInaccessibleUniqueSymbolError&&r.tracker.reportInaccessibleUniqueSymbolError()}return r.approximateLength+=13,e.factory.createTypeOperatorNode(151,e.factory.createKeywordTypeNode(148))}if(16384&t.flags)return r.approximateLength+=4,e.factory.createKeywordTypeNode(113);if(32768&t.flags)return r.approximateLength+=9,e.factory.createKeywordTypeNode(150);if(65536&t.flags)return r.approximateLength+=4,e.factory.createLiteralTypeNode(e.factory.createNull());if(131072&t.flags)return r.approximateLength+=5,e.factory.createKeywordTypeNode(141);if(4096&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(148);if(67108864&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(145);if(kl(t))return 4194304&r.flags&&(r.encounteredError||32768&r.flags||(r.encounteredError=!0),r.tracker.reportInaccessibleThisError&&r.tracker.reportInaccessibleThisError()),r.approximateLength+=4,e.factory.createThisTypeNode();if(!n&&t.aliasSymbol&&(16384&r.flags||Yi(t.aliasSymbol,r.enclosingDeclaration))){var y=d(t.aliasTypeArguments,r);return!Ki(t.aliasSymbol.escapedName)||32&t.aliasSymbol.flags?E(t.aliasSymbol,r,788968,y):e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),y)}var v=e.getObjectFlags(t);if(4&v)return e.Debug.assert(!!(524288&t.flags)),t.node?K(t,U):U(t);if(262144&t.flags||3&v){if(262144&t.flags&&e.contains(r.inferTypeParameters,t))return r.approximateLength+=e.symbolName(t.symbol).length+6,e.factory.createInferTypeNode(f(t,r,void 0));if(4&r.flags&&262144&t.flags&&!Yi(t.symbol,r.enclosingDeclaration)){var h=T(t,r);return r.approximateLength+=e.idText(h).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(h)),void 0)}return t.symbol?E(t.symbol,r,788968):e.factory.createTypeReferenceNode(e.factory.createIdentifier("?"),void 0)}if(3145728&t.flags){var D=1048576&t.flags?function(e){for(var t=[],r=0,n=0;n0?1048576&t.flags?e.factory.createUnionTypeNode(x):e.factory.createIntersectionTypeNode(x):void(r.encounteredError||262144&r.flags||(r.encounteredError=!0))}if(48&v)return e.Debug.assert(!!(524288&t.flags)),J(t);if(4194304&t.flags){var b=t.type;r.approximateLength+=6;var S=s(b,r);return e.factory.createTypeOperatorNode(138,S)}if(134217728&t.flags){var C=t.texts,k=t.types,A=e.factory.createTemplateHead(C[0]),F=e.factory.createNodeArray(e.map(k,(function(t,n){return e.factory.createTemplateLiteralTypeSpan(s(t,r),(n10)return u(r);r.symbolDepth.set(s,i+1)}r.visitedTypes.add(a);var c=n(t);return r.visitedTypes.delete(a),s&&r.symbolDepth.set(s,i),c}function z(t){if(Ls(t)||t.containsError)return function(t){e.Debug.assert(!!(524288&t.flags));var n,i=t.declaration.readonlyToken?e.factory.createToken(t.declaration.readonlyToken.kind):void 0,a=t.declaration.questionToken?e.factory.createToken(t.declaration.questionToken.kind):void 0;n=Ps(t)?e.factory.createTypeOperatorNode(138,s(ws(t),r)):s(ks(t),r);var o=f(Ts(t),r,n),c=t.declaration.nameType?s(As(t),r):void 0,u=s(Fs(t),r),l=e.factory.createMappedTypeNode(i,o,c,a,u);return r.approximateLength+=10,e.setEmitFlags(l,1)}(t);var n=Rs(t);if(!n.properties.length&&!n.stringIndexInfo&&!n.numberIndexInfo){if(!n.callSignatures.length&&!n.constructSignatures.length)return r.approximateLength+=2,e.setEmitFlags(e.factory.createTypeLiteralNode(void 0),1);if(1===n.callSignatures.length&&!n.constructSignatures.length)return p(n.callSignatures[0],174,r);if(1===n.constructSignatures.length&&!n.callSignatures.length)return p(n.constructSignatures[0],175,r)}var i=r.flags;r.flags|=4194304;var a=function(t){if(o(r))return[e.factory.createPropertySignature(void 0,"...",void 0,void 0)];for(var n=[],i=0,a=t.callSignatures;i0){var v=(t.target.typeParameters||e.emptyArray).length;y=d(n.slice(b,v),r)}S=r.flags;r.flags|=16;var h=E(t.symbol,r,788968,y);return r.flags=S,u?V(u,h):h}if(n.length>0){var D=au(t),x=d(n.slice(0,D),r);if(x){if(t.target.labeledElementDeclarations)for(var b=0;b2)return[s(t[0],r),e.factory.createTypeReferenceNode("... "+(t.length-2)+" more ...",void 0),s(t[t.length-1],r)]}for(var i=!(64&r.flags)?e.createUnderscoreEscapedMultiMap():void 0,a=[],c=0,u=0,l=t;u0)),a}function D(t,r){var n;return 524384&qx(t).flags&&(n=e.factory.createNodeArray(e.map(Do(t),(function(e){return g(e,r)})))),n}function x(t,r,n){var i;e.Debug.assert(t&&0<=r&&r1?m(a,a.length-1,1):void 0,c=i||x(a,0,r),u=S(a[0],r);!(67108864&r.flags)&&e.getEmitModuleResolutionKind(V)===e.ModuleResolutionKind.NodeJs&&u.indexOf("/node_modules/")>=0&&(r.encounteredError=!0,r.tracker.reportLikelyUnsafeImportRequiredError&&r.tracker.reportLikelyUnsafeImportRequiredError(u));var l=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(u));if(r.tracker.trackExternalModuleSymbolOfImportTypeNode&&r.tracker.trackExternalModuleSymbolOfImportTypeNode(a[0]),r.approximateLength+=u.length+10,!s||e.isEntityName(s)){if(s)(f=e.isIdentifier(s)?s:s.right).typeArguments=void 0;return e.factory.createImportTypeNode(l,s,c,o)}var d=b(s),_=d.objectType.typeName;return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(l,_,c,o),d.indexType)}var p=m(a,a.length-1,0);if(e.isIndexedAccessTypeNode(p))return p;if(o)return e.factory.createTypeQueryNode(p);var f,g=(f=e.isIdentifier(p)?p:p.right).typeArguments;return f.typeArguments=void 0,e.factory.createTypeReferenceNode(p,g);function m(t,n,a){var o,s=n===t.length-1?i:x(t,n,r),c=t[n],u=t[n-1];if(0===n)r.flags|=16777216,o=ha(c,r),r.approximateLength+=(o?o.length:0)+1,r.flags^=16777216;else if(u&&bi(u)){var l=bi(u);e.forEachEntry(l,(function(t,r){if(wi(t,c)&&!$o(r)&&"export="!==r)return o=e.unescapeLeadingUnderscores(r),!0}))}if(o||(o=ha(c,r)),r.approximateLength+=o.length+1,!(16&r.flags)&&u&&is(u)&&is(u).get(c.escapedName)&&wi(is(u).get(c.escapedName),c)){var d=m(t,n-1,a);return e.isIndexedAccessTypeNode(d)?e.factory.createIndexedAccessTypeNode(d,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o))):e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(d,s),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o)))}var _=e.setEmitFlags(e.factory.createIdentifier(o,s),16777216);if(_.symbol=c,n>a){d=m(t,n-1,a);return e.isEntityName(d)?e.factory.createQualifiedName(d,_):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return _}}function C(e,t,r){var n=Pn(t.enclosingDeclaration,e,788968,void 0,e,!1);return!!n&&!(262144&n.flags&&n===r.symbol)}function T(t,r){var n;if(4&r.flags&&r.typeParameterNames){var i=r.typeParameterNames.get(Wu(t));if(i)return i}var a=k(t.symbol,r,788968,!0);if(!(78&a.kind))return e.factory.createIdentifier("(Missing type parameter)");if(4&r.flags){for(var o=a.escapedText,s=0,c=o;(null===(n=r.typeParameterNamesByText)||void 0===n?void 0:n.has(c))||C(c,r,t);)c=o+"_"+ ++s;c!==o&&(a=e.factory.createIdentifier(c,a.typeArguments)),(r.typeParameterNames||(r.typeParameterNames=new e.Map)).set(Wu(t),a),(r.typeParameterNamesByText||(r.typeParameterNamesByText=new e.Set)).add(a.escapedText)}return a}function k(t,r,n,i){var a=v(t,r,n);return!i||1===a.length||r.encounteredError||65536&r.flags||(r.encounteredError=!0),function t(n,i){var a=x(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=ha(o,r);0===i&&(r.flags^=16777216);var c=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return c.symbol=o,i>0?e.factory.createQualifiedName(t(n,i-1),c):c}(a,a.length-1)}function A(t,r,n){var i=v(t,r,n);return function t(n,i){var a=x(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=ha(o,r);0===i&&(r.flags^=16777216);var c=s.charCodeAt(0);if(e.isSingleOrDoubleQuote(c)&&e.some(o.declarations,na))return e.factory.createStringLiteral(S(o,r));var u=35===c?s.length>1&&e.isIdentifierStart(s.charCodeAt(1),q):e.isIdentifierStart(c,q);if(0===i||u){var l=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return l.symbol=o,i>0?e.factory.createPropertyAccessExpression(t(n,i-1),l):l}91===c&&(s=s.substring(1,s.length-1),c=s.charCodeAt(0));var d=void 0;return e.isSingleOrDoubleQuote(c)?d=e.factory.createStringLiteral(s.substring(1,s.length-1).replace(/\\./g,(function(e){return e.substring(1)})),39===c):""+ +s===s&&(d=e.factory.createNumericLiteral(+s)),d||((d=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216)).symbol=o),e.factory.createElementAccessExpression(t(n,i-1),d)}(i,i.length-1)}function F(t){var r=e.getNameOfDeclaration(t);return!!r&&e.isStringLiteral(r)}function N(t){var r=e.getNameOfDeclaration(t);return!!(r&&e.isStringLiteral(r)&&(r.singleQuote||!e.nodeIsSynthesized(r)&&e.startsWith(e.getTextOfNode(r,!1),"'")))}function P(t,r){var n=!!e.length(t.declarations)&&e.every(t.declarations,N),i=function(t,r,n){var i=Cn(t).nameType;if(i){if(384&i.flags){var a=""+i.value;return e.isIdentifierText(a,V.target)||xm(a)?xm(a)&&e.startsWith(a,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+a)):w(a):e.factory.createStringLiteral(a,!!n)}if(8192&i.flags)return e.factory.createComputedPropertyName(A(i.symbol,r,111551))}}(t,r,n);return i||(e.isKnownSymbol(t)?e.factory.createComputedPropertyName(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("Symbol"),t.escapedName.substr(3))):w(e.unescapeLeadingUnderscores(t.escapedName),!!e.length(t.declarations)&&e.every(t.declarations,F),n))}function w(t,r,n){return e.isIdentifierText(t,V.target)?e.factory.createIdentifier(t):!r&&xm(t)&&+t>=0?e.factory.createNumericLiteral(+t):e.factory.createStringLiteral(t,!!n)}function I(t,r){return t.declarations&&e.find(t.declarations,(function(t){return!(!e.getEffectiveTypeAnnotationNode(t)||r&&!e.findAncestor(t,(function(e){return e===r})))}))}function L(t,r){return!(4&e.getObjectFlags(r))||!e.isTypeReferenceNode(t)||e.length(t.typeArguments)>=Tc(r.target.typeParameters)}function R(t,r,n,i,a,o){if(r!==ke&&i){var c=I(n,i);if(c&&!e.isFunctionLikeDeclaration(c)){var u=e.getEffectiveTypeAnnotationNode(c);if(ld(u)===r&&L(u,r)){var l=B(t,u,a,o);if(l)return l}}}var d=t.flags;8192&r.flags&&r.symbol===n&&(!t.enclosingDeclaration||e.some(n.declarations,(function(r){return e.getSourceFileOfNode(r)===e.getSourceFileOfNode(t.enclosingDeclaration)})))&&(t.flags|=1048576);var _=s(r,t);return t.flags=d,_}function B(r,n,i,o){a&&a.throwIfCancellationRequested&&a.throwIfCancellationRequested();var c=!1,u=e.getSourceFileOfNode(n),l=e.visitNode(n,(function n(a){var l,d;if(e.isJSDocAllType(a)||310===a.kind)return e.factory.createKeywordTypeNode(128);if(e.isJSDocUnknownType(a))return e.factory.createKeywordTypeNode(152);if(e.isJSDocNullableType(a))return e.factory.createUnionTypeNode([e.visitNode(a.type,n),e.factory.createLiteralTypeNode(e.factory.createNull())]);if(e.isJSDocOptionalType(a))return e.factory.createUnionTypeNode([e.visitNode(a.type,n),e.factory.createKeywordTypeNode(150)]);if(e.isJSDocNonNullableType(a))return e.visitNode(a.type,n);if(e.isJSDocVariadicType(a))return e.factory.createArrayTypeNode(e.visitNode(a.type,n));if(e.isJSDocTypeLiteral(a))return e.factory.createTypeLiteralNode(e.map(a.jsDocPropertyTags,(function(t){var i=e.isIdentifier(t.name)?t.name:t.name.right,o=ka(ld(a),i.escapedText),c=o&&t.typeExpression&&ld(t.typeExpression.type)!==o?s(o,r):void 0;return e.factory.createPropertySignature(void 0,i,t.typeExpression&&e.isJSDocOptionalType(t.typeExpression.type)?e.factory.createToken(57):void 0,c||t.typeExpression&&e.visitNode(t.typeExpression.type,n)||e.factory.createKeywordTypeNode(128))})));if(e.isTypeReferenceNode(a)&&e.isIdentifier(a.typeName)&&""===a.typeName.escapedText)return e.setOriginalNode(e.factory.createKeywordTypeNode(128),a);if((e.isExpressionWithTypeArguments(a)||e.isTypeReferenceNode(a))&&e.isJSDocIndexSignature(a))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(a.typeArguments[0],n))],e.visitNode(a.typeArguments[1],n))]);if(e.isJSDocFunctionType(a)){var _;return e.isJSDocConstructSignature(a)?e.factory.createConstructorTypeNode(e.visitNodes(a.typeParameters,n),e.mapDefined(a.parameters,(function(t,r){return t.name&&e.isIdentifier(t.name)&&"new"===t.name.escapedText?void(_=t.type):e.factory.createParameterDeclaration(void 0,void 0,m(t),y(t,r),t.questionToken,e.visitNode(t.type,n),void 0)})),e.visitNode(_||a.type,n)||e.factory.createKeywordTypeNode(128)):e.factory.createFunctionTypeNode(e.visitNodes(a.typeParameters,n),e.map(a.parameters,(function(t,r){return e.factory.createParameterDeclaration(void 0,void 0,m(t),y(t,r),t.questionToken,e.visitNode(t.type,n),void 0)})),e.visitNode(a.type,n)||e.factory.createKeywordTypeNode(128))}if(e.isTypeReferenceNode(a)&&e.isInJSDoc(a)&&(!L(a,ld(a))||yu(a)||be===uu(cu(a),788968,!0)))return e.setOriginalNode(s(ld(a),r),a);if(e.isLiteralImportTypeNode(a))return e.factory.updateImportTypeNode(a,e.factory.updateLiteralTypeNode(a.argument,function(n,i){if(o){if(r.tracker&&r.tracker.moduleResolverHost){var a=_S(n);if(a){var s={getCanonicalFileName:e.createGetCanonicalFileName(!!t.useCaseSensitiveFileNames),getCurrentDirectory:function(){return r.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return r.tracker.moduleResolverHost.getCommonSourceDirectory()}},c=e.getResolvedExternalModuleName(s,a);return e.factory.createStringLiteral(c)}}}else if(r.tracker&&r.tracker.trackExternalModuleSymbolOfImportTypeNode){var u=fi(i,i,void 0);u&&r.tracker.trackExternalModuleSymbolOfImportTypeNode(u)}return i}(a,a.argument.literal)),a.qualifier,e.visitNodes(a.typeArguments,n,e.isTypeNode),a.isTypeOf);if(e.isEntityName(a)||e.isEntityNameExpression(a)){var p=e.getFirstIdentifier(a);if(e.isInJSFile(a)&&(e.isExportsIdentifier(p)||e.isModuleExportsAccessExpression(p.parent)||e.isQualifiedName(p.parent)&&e.isModuleIdentifier(p.parent.left)&&e.isExportsIdentifier(p.parent.right)))return c=!0,a;var f=di(p,67108863,!0,!0);if(f&&(0!==Zi(f,r.enclosingDeclaration,67108863,!1).accessibility?c=!0:(null===(d=null===(l=r.tracker)||void 0===l?void 0:l.trackSymbol)||void 0===d||d.call(l,f,r.enclosingDeclaration,67108863),null==i||i(f)),e.isIdentifier(a))){var g=262144&f.flags?T(Jo(f),r):e.factory.cloneNode(a);return g.symbol=f,e.setEmitFlags(e.setOriginalNode(g,a),16777216)}}u&&e.isTupleTypeNode(a)&&e.getLineAndCharacterOfPosition(u,a.pos).line===e.getLineAndCharacterOfPosition(u,a.end).line&&e.setEmitFlags(a,1);return e.visitEachChild(a,n,e.nullTransformationContext);function m(t){return t.dotDotDotToken||(t.type&&e.isJSDocVariadicType(t.type)?e.factory.createToken(25):void 0)}function y(t,r){return t.name&&e.isIdentifier(t.name)&&"this"===t.name.escapedText?"this":m(t)?"args":"arg"+r}}));if(!c)return l===n?e.setTextRange(e.factory.cloneNode(n),n):l}}(),ie=e.createSymbolTable(),ae=mn(4,"undefined");ae.declarations=[];var oe=mn(1536,"globalThis",8);oe.exports=ie,oe.declarations=[],ie.set(oe.escapedName,oe);var se,ce=mn(4,"arguments"),ue=mn(4,"require"),le={getNodeCount:function(){return e.sum(t.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(t.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(t.getSourceFiles(),"symbolCount")+h},getTypeCatalog:function(){return k},getTypeCount:function(){return v},getInstantiationCount:function(){return x},getRelationCacheSizes:function(){return{assignable:an.size,identity:sn.size,subtype:rn.size,strictSubtype:nn.size}},isUndefinedSymbol:function(e){return e===ae},isArgumentsSymbol:function(e){return e===ce},isUnknownSymbol:function(e){return e===be},getMergedSymbol:Ti,getDiagnostics:yb,getGlobalDiagnostics:function(){return vb(),$r.getGlobalDiagnostics()},getRecursionIdentity:B_,getTypeOfSymbolAtLocation:function(t,r){var n=e.getParseTreeNode(r);return n?function(t,r){if(t=t.exportSymbol||t,78===r.kind&&(e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),e.isExpressionNode(r)&&!e.isAssignmentTarget(r))){var n=qh(r);if(Ii(Tn(r).resolvedSymbol)===t)return n}return po(t)}(t,n):ke},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=An(n.locals,r,111551),o=An(is(i.symbol),r,111551);if(a&&o)return[a,o];return e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(n,e.escapeLeadingUnderscores(r))},getDeclaredTypeOfSymbol:Jo,getPropertiesOfType:Ks,getPropertyOfType:function(t,r){return dc(t,e.escapeLeadingUnderscores(r))},getPrivateIdentifierPropertyOfType:function(t,r,n){var i=e.getParseTreeNode(n);if(i){var a=ly(e.escapeLeadingUnderscores(r),i);return a?dy(t,a):void 0}},getTypeOfPropertyOfType:function(t,r){return ka(t,e.escapeLeadingUnderscores(r))},getIndexInfoOfType:mc,getSignaturesOfType:pc,getIndexTypeOfType:yc,getBaseTypes:Ao,getBaseTypeOfLiteralType:ep,getWidenedType:Ip,getTypeFromTypeNode:function(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r?ld(r):ke},getParameterType:Bv,getPromisedTypeOfPromise:mD,getAwaitedType:function(e){return vD(e)},getReturnTypeOfSignature:Mc,isNullableType:ey,getNullableType:yp,getNonNullableType:hp,getNonOptionalType:bp,getTypeArguments:iu,typeToTypeNode:ne.typeToTypeNode,indexInfoToIndexSignatureDeclaration:ne.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:ne.signatureToSignatureDeclaration,symbolToEntityName:ne.symbolToEntityName,symbolToExpression:ne.symbolToExpression,symbolToTypeParameterDeclarations:ne.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:ne.symbolToParameterDeclaration,typeParameterToDeclaration:ne.typeParameterToDeclaration,getSymbolsInScope:function(t,r){var n=e.getParseTreeNode(t);return n?function(t,r){if(16777216&t.flags)return[];var n=e.createSymbolTable(),i=!1;return a(),n.delete("this"),Dc(n);function a(){for(;t;){switch(t.locals&&!kn(t)&&s(t.locals,r),t.kind){case 297:if(!e.isExternalOrCommonJsModule(t))break;case 256:s(ki(t).exports,2623475&r);break;case 255:s(ki(t).exports,8&r);break;case 221:t.name&&o(t.symbol,r);case 252:case 253:i||s(is(ki(t)),788968&r);break;case 208:t.name&&o(t.symbol,r)}e.introducesArgumentsExoticObject(t)&&o(ce,r),i=e.hasSyntacticModifier(t,32),t=t.parent}s(ie,r)}function o(t,r){if(e.getCombinedLocalAndExportSymbolFlags(t)&r){var i=t.escapedName;n.has(i)||n.set(i,t)}}function s(e,t){t&&e.forEach((function(e){o(e,t)}))}}(n,r):[]},getSymbolAtLocation:function(t){var r=e.getParseTreeNode(t);return r?Cb(r,!0):void 0},getShorthandAssignmentValueSymbol:function(t){var r=e.getParseTreeNode(t);return r?function(e){if(e&&289===e.kind)return di(e.name,2208703);return}(r):void 0},getExportSpecifierLocalTargetSymbol:function(t){var r=e.getParseTreeNode(t,e.isExportSpecifier);return r?function(t){return e.isExportSpecifier(t)?t.parent.parent.moduleSpecifier?Xn(t.parent.parent,t):di(t.propertyName||t.name,2998271):di(t,2998271)}(r):void 0},getExportSymbolOfSymbol:function(e){return Ti(e.exportSymbol||e)},getTypeAtLocation:function(t){var r=e.getParseTreeNode(t);return r?Tb(r):ke},getTypeOfAssignmentPattern:function(t){var r=e.getParseTreeNode(t,e.isAssignmentPattern);return r&&kb(r)||ke},getPropertySymbolOfDestructuringAssignment:function(t){var r=e.getParseTreeNode(t,e.isIdentifier);return r?function(t){var r=kb(e.cast(t.parent.parent,e.isAssignmentPattern));return r&&dc(r,t.escapedText)}(r):void 0},signatureToString:function(t,r,n,i){return sa(t,e.getParseTreeNode(r),n,i)},typeToString:function(t,r,n){return ca(t,e.getParseTreeNode(r),n)},symbolToString:function(t,r,n,i){return oa(t,e.getParseTreeNode(r),n,i)},typePredicateToString:function(t,r,n){return fa(t,e.getParseTreeNode(r),n)},writeSignature:function(t,r,n,i,a){return sa(t,e.getParseTreeNode(r),n,i,a)},writeType:function(t,r,n,i){return ca(t,e.getParseTreeNode(r),n,i)},writeSymbol:function(t,r,n,i,a){return oa(t,e.getParseTreeNode(r),n,i,a)},writeTypePredicate:function(t,r,n,i){return fa(t,e.getParseTreeNode(r),n,i)},getAugmentedPropertiesOfType:Pb,getRootSymbols:function t(r){var n=function(t){if(6&e.getCheckFlags(t))return e.mapDefined(Cn(t).containingType.types,(function(e){return dc(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=Cn(r).target;)t=r;return t}(t))}return}(r);return n?e.flatMap(n,t):[r]},getSymbolOfExpando:xv,getContextualType:function(t,r){var n=e.getParseTreeNode(t,e.isExpression);if(n){var i=e.findAncestor(n,e.isCallLikeExpression),a=i&&Tn(i).resolvedSignature;if(4&r&&i){var o=n;do{Tn(o).skipDirectInference=!0,o=o.parent}while(o&&o!==i);Tn(i).resolvedSignature=void 0}var s=cm(n,r);if(4&r&&i){o=n;do{Tn(o).skipDirectInference=void 0,o=o.parent}while(o&&o!==i);Tn(i).resolvedSignature=a}return s}},getContextualTypeForObjectLiteralElement:function(t){var r=e.getParseTreeNode(t,e.isObjectLiteralElementLike);return r?em(r):void 0},getContextualTypeForArgumentAtIndex:function(t,r){var n=e.getParseTreeNode(t,e.isCallLikeExpression);return n&&Gg(n,r)},getContextualTypeForJsxAttribute:function(t){var r=e.getParseTreeNode(t,e.isJsxAttributeLike);return r&&nm(r)},isContextSensitive:jd,getFullyQualifiedName:li,getResolvedSignature:function(e,t,r){return de(e,t,r,0)},getResolvedSignatureForSignatureHelp:function(e,t,r){return de(e,t,r,16)},getExpandedParameters:_s,hasEffectiveRestParameter:Uv,getConstantValue:function(t){var r=e.getParseTreeNode(t,$b);return r?Zb(r):void 0},isValidPropertyAccess:function(t,r){var n=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!n&&function(e,t){switch(e.kind){case 201:return Ey(e,105===e.expression.kind,t,Ip(Gh(e.expression)));case 157:return Ey(e,!1,t,Ip(Gh(e.left)));case 195:return Ey(e,!1,t,ld(e))}}(n,e.escapeLeadingUnderscores(r))},isValidPropertyAccessForCompletions:function(t,r,n){var i=e.getParseTreeNode(t,e.isPropertyAccessExpression);return!!i&&function(e,t,r){return Ey(e,201===e.kind&&105===e.expression.kind,r.escapedName,t)}(i,r,n)},getSignatureFromDeclaration:function(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?Ac(r):void 0},isImplementationOfOverload:function(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?qb(r):void 0},getImmediateAliasedSymbol:Em,getAliasedSymbol:ni,getEmitResolver:function(e,t){return yb(e,t),re},getExportsOfModule:Di,getExportsAndPropertiesOfModule:function(t){var r=Di(t),n=yi(t);n!==t&&e.addRange(r,Ks(po(n)));return r},getSymbolWalker:e.createGetSymbolWalker((function(e){return Bc(e)||Ee}),Oc,Mc,Ao,Rs,po,vf,gc,Us,e.getFirstIdentifier,iu),getAmbientModules:function(){mt||(mt=[],ie.forEach((function(e,t){c.test(t)&&mt.push(e)})));return mt},getJsxIntrinsicTagNamesAt:function(t){var r=Im(N.IntrinsicElements,t);return r?Ks(r):e.emptyArray},isOptionalParameter:function(t){var r=e.getParseTreeNode(t,e.isParameter);return!!r&&Sc(r)},tryGetMemberInModuleExports:function(t,r){return xi(e.escapeLeadingUnderscores(t),r)},tryGetMemberInModuleExportsAndProperties:function(t,r){return function(t,r){var n=xi(t,r);if(n)return n;var i=yi(r);if(i===r)return;var a=po(i);return 131068&a.flags||1&e.getObjectFlags(a)||X_(a)?void 0:dc(a,t)}(e.escapeLeadingUnderscores(t),r)},tryFindAmbientModuleWithoutAugmentations:function(e){return bc(e,!1)},getApparentType:tc,getUnionType:$u,isTypeAssignableTo:Yd,createAnonymousType:Vi,createSignature:cs,createSymbol:mn,createIndexInfo:Gc,getAnyType:function(){return Ee},getStringType:function(){return Le},getNumberType:function(){return Re},createPromiseType:Qv,createArrayType:Iu,getElementTypeOfArrayType:W_,getBooleanType:function(){return Ue},getFalseType:function(e){return e?je:Je},getTrueType:function(e){return e?Ke:ze},getVoidType:function(){return qe},getUndefinedType:function(){return Pe},getNullType:function(){return Oe},getESSymbolType:function(){return Ve},getNeverType:function(){return We},getOptionalType:function(){return Ie},isSymbolAccessible:Zi,isArrayType:U_,isTupleType:ap,isArrayLikeType:H_,isTypeInvalidDueToUnionDiscriminant:function(e,t){return t.properties.some((function(t){var r=t.name&&ul(t.name),n=r&&Xo(r)?ts(r):void 0,i=void 0===n?void 0:ka(e,n);return!!i&&Z_(i)&&!Yd(Tb(t),i)}))},getAllPossiblePropertiesOfTypes:function(t){var r=$u(t);if(!(1048576&r.flags))return Pb(r);for(var n=e.createSymbolTable(),i=0,a=t;i>",0,Ee),lr=cs(void 0,void 0,void 0,e.emptyArray,Ee,void 0,0,0),dr=cs(void 0,void 0,void 0,e.emptyArray,ke,void 0,0,0),_r=cs(void 0,void 0,void 0,e.emptyArray,Ee,void 0,0,0),pr=cs(void 0,void 0,void 0,e.emptyArray,He,void 0,0,0),fr=Gc(Le,!0),gr=new e.Map,mr={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},yr=_x(Ee,Ee,Ee),vr=_x(Ee,Ee,Ne),hr=_x(We,Ee,Pe),Dr={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return Gt||(Gt=Eu("AsyncIterator",3,e))||ct},getGlobalIterableType:function(e){return Ht||(Ht=Eu("AsyncIterable",1,e))||ct},getGlobalIterableIteratorType:function(e){return Yt||(Yt=Eu("AsyncIterableIterator",1,e))||ct},getGlobalGeneratorType:function(e){return Xt||(Xt=Eu("AsyncGenerator",3,e))||ct},resolveIterationType:vD,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},xr={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return zt||(zt=Eu("Iterator",3,e))||ct},getGlobalIterableType:Fu,getGlobalIterableIteratorType:function(e){return Ut||(Ut=Eu("IterableIterator",1,e))||ct},getGlobalGeneratorType:function(e){return Vt||(Vt=Eu("Generator",3,e))||ct},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},br=new e.Map,Sr=!1,Er=new e.Map,Cr=0,Tr=0,kr=0,Ar=!1,Fr=0,Nr=ad(""),Pr=ad(0),wr=ad({negative:!1,base10Value:"0"}),Ir=[],Or=[],Mr=[],Lr=0,Rr=[],Br=[],jr=[],Jr=[],Kr=[],zr=[],Ur=[],Vr=[],qr=[],Wr=[],Hr=[],Gr=[],Yr=[],Xr=[],Qr=[],$r=e.createDiagnosticCollection(),Zr=e.createDiagnosticCollection(),en=new e.Map(e.getEntries({string:Le,number:Re,bigint:Be,boolean:Ue,symbol:Ve,undefined:Pe})),tn=$u(e.arrayFrom(S.keys(),ad)),rn=new e.Map,nn=new e.Map,an=new e.Map,on=new e.Map,sn=new e.Map,cn=new e.Map,un=e.createSymbolTable();return un.set(ae.escapedName,ae),function(){for(var r=0,n=t.getSourceFiles();r=5||e.some(o.relatedInformation,(function(t){return 0===e.compareDiagnostics(t,s)||0===e.compareDiagnostics(t,i)})))return"continue";e.addRelatedInfo(o,e.length(o.relatedInformation)?s:i)},c=0,u=i||e.emptyArray;c1)}function Cn(e){if(33554432&e.flags)return e;var t=M(e);return Br[t]||(Br[t]=new w)}function Tn(e){var t=O(e);return jr[t]||(jr[t]=new I)}function kn(t){return 297===t.kind&&!e.isExternalOrCommonJsModule(t)}function An(t,r,n){if(n){var i=Ti(t.get(r));if(i){if(e.Debug.assert(0==(1&e.getCheckFlags(i)),"Should never get an instantiated symbol here."),i.flags&n)return i;if(2097152&i.flags){var a=ni(i);if(a===be||a.flags&n)return i}}}}function Fn(r,n){var i=e.getSourceFileOfNode(r),a=e.getSourceFileOfNode(n),o=e.getEnclosingBlockScopeContainer(r);if(i!==a){if(W&&(i.externalModuleIndicator||a.externalModuleIndicator)||!e.outFile(V)||hf(n)||8388608&r.flags)return!0;if(u(n,r))return!0;var s=t.getSourceFiles();return s.indexOf(i)<=s.indexOf(a)}if(r.pos<=n.pos&&(!e.isPropertyDeclaration(r)||!e.isThisProperty(n.parent)||r.initializer||r.exclamationToken)){if(198===r.kind){var c=e.getAncestor(n,198);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(r,e.isBindingElement)||r.post.end)&&void 0===e.findAncestor(r,(function(r){if(r===t)return"quit";switch(r.kind){case 209:return!0;case 163:return!n||!(e.isPropertyDeclaration(t)&&r.parent===t.parent||e.isParameterPropertyDeclaration(t,t.parent)&&r.parent===t.parent.parent)||"quit";case 230:switch(r.parent.kind){case 167:case 165:case 168:return!0;default:return!1}default:return!1}}))}}function Nn(t,r,n){var i=e.getEmitScriptTarget(V),a=r;if(e.isParameter(n)&&a.body&&t.valueDeclaration.pos>=a.body.pos&&t.valueDeclaration.end<=a.body.end&&i>=2){var o=Tn(a);return void 0===o.declarationRequiresScopeChange&&(o.declarationRequiresScopeChange=e.forEach(a.parameters,(function(e){return s(e.name)||!!e.initializer&&s(e.initializer)}))||!1),!o.declarationRequiresScopeChange}return!1;function s(t){switch(t.kind){case 209:case 208:case 251:case 166:return!1;case 165:case 167:case 168:case 288:return s(t.name);case 163:return e.hasStaticModifier(t)?i<99||!V.useDefineForClassFields:s(t.name);default:return e.isNullishCoalesce(t)||e.isOptionalChain(t)?i<7:e.isBindingElement(t)&&t.dotDotDotToken&&e.isObjectBindingPattern(t.parent)?i<4:!e.isTypeNode(t)&&(e.forEachChild(t,s)||!1)}}}function Pn(e,t,r,n,i,a,o,s){return void 0===o&&(o=!1),wn(e,t,r,n,i,a,o,An,s)}function wn(t,r,n,i,a,o,s,c,u){var l,d,_,p,f,g,m=t,y=!1,v=t,h=!1;e:for(;t;){if(t.locals&&!kn(t)&&(l=c(t.locals,r,n))){var D=!0;if(e.isFunctionLike(t)&&d&&d!==t.body?(n&l.flags&788968&&311!==d.kind&&(D=!!(262144&l.flags)&&(d===t.type||160===d.kind||159===d.kind)),n&l.flags&3&&(Nn(l,t,d)?D=!1:1&l.flags&&(D=160===d.kind||d===t.type&&!!e.findAncestor(l.valueDeclaration,e.isParameter)))):184===t.kind&&(D=d===t.trueType),D)break e;l=void 0}switch(y=y||In(t,d),t.kind){case 297:if(!e.isExternalOrCommonJsModule(t))break;h=!0;case 256:var x=ki(t).exports||A;if(297===t.kind||e.isModuleDeclaration(t)&&8388608&t.flags&&!e.isGlobalScopeAugmentation(t)){if(l=x.get("default")){var b=e.getLocalSymbolForExportDefault(l);if(b&&l.flags&n&&b.escapedName===r)break e;l=void 0}var S=x.get(r);if(S&&2097152===S.flags&&(e.getDeclarationOfKind(S,270)||e.getDeclarationOfKind(S,269)))break}if("default"!==r&&(l=c(x,r,2623475&n))){if(!e.isSourceFile(t)||!t.commonJsModuleIndicator||l.declarations.some(e.isJSDocTypeAlias))break e;l=void 0}break;case 255:if(l=c(ki(t).exports,r,8&n))break e;break;case 163:if(!e.hasSyntacticModifier(t,32)){var E=Mi(t.parent);E&&E.locals&&c(E.locals,r,111551&n)&&(p=t)}break;case 252:case 221:case 253:if(l=c(ki(t).members||A,r,788968&n)){if(!Ln(l,t)){l=void 0;break}if(d&&e.hasSyntacticModifier(d,32))return void _n(v,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(221===t.kind&&32&n){var C=t.name;if(C&&r===C.escapedText){l=t.symbol;break e}}break;case 223:if(d===t.expression&&93===t.parent.token){var T=t.parent.parent;if(e.isClassLike(T)&&(l=c(ki(T).members,r,788968&n)))return void(i&&_n(v,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 158:if(g=t.parent.parent,(e.isClassLike(g)||253===g.kind)&&(l=c(ki(g).members,r,788968&n)))return void _n(v,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 209:if(V.target>=2)break;case 165:case 166:case 167:case 168:case 251:if(3&n&&"arguments"===r){l=ce;break e}break;case 208:if(3&n&&"arguments"===r){l=ce;break e}if(16&n){var k=t.name;if(k&&r===k.escapedText){l=t.symbol;break e}}break;case 161:t.parent&&160===t.parent.kind&&(t=t.parent),t.parent&&(e.isClassElement(t.parent)||252===t.parent.kind)&&(t=t.parent);break;case 331:case 324:case 325:t=e.getJSDocHost(t);break;case 160:d&&(d===t.initializer||d===t.name&&e.isBindingPattern(d))&&(f||(f=t));break;case 198:d&&(d===t.initializer||d===t.name&&e.isBindingPattern(d))&&e.isParameterDeclaration(t)&&!f&&(f=t);break;case 185:if(262144&n){var F=t.typeParameter.name;if(F&&r===F.escapedText){l=t.typeParameter.symbol;break e}}}On(t)&&(_=t),d=t,t=t.parent}if(!o||!l||_&&l===_.symbol||(l.isReferenced|=n),!l){if(d&&(e.Debug.assert(297===d.kind),d.commonJsModuleIndicator&&"exports"===r&&n&d.symbol.flags))return d.symbol;s||(l=c(ie,r,n))}if(!l&&m&&e.isInJSFile(m)&&m.parent&&e.isRequireCall(m.parent,!1))return ue;if(l){if(i){if(p&&(99!==V.target||!V.useDefineForClassFields)){var N=p.name;return void _n(v,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(N),Mn(a))}if(v&&(2&n||(32&n||384&n)&&111551==(111551&n))){var P=Ii(l);(2&P.flags||32&P.flags||384&P.flags)&&function(t,r){if(e.Debug.assert(!!(2&t.flags||32&t.flags||384&t.flags)),67108881&t.flags&&32&t.flags)return;var n=e.find(t.declarations,(function(t){return e.isBlockOrCatchScoped(t)||e.isClassLike(t)||255===t.kind}));if(void 0===n)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(8388608&n.flags||Fn(n,r))){var i=void 0,a=e.declarationNameToString(e.getNameOfDeclaration(n));2&t.flags?i=_n(r,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,a):32&t.flags?i=_n(r,e.Diagnostics.Class_0_used_before_its_declaration,a):256&t.flags?i=_n(r,e.Diagnostics.Enum_0_used_before_its_declaration,a):(e.Debug.assert(!!(128&t.flags)),V.preserveConstEnums&&(i=_n(r,e.Diagnostics.Enum_0_used_before_its_declaration,a))),i&&e.addRelatedInfo(i,e.createDiagnosticForNode(n,e.Diagnostics._0_is_declared_here,a))}}(P,v)}if(l&&h&&111551==(111551&n)&&!(4194304&m.flags)){var w=Ti(l);e.length(w.declarations)&&e.every(w.declarations,(function(t){return e.isNamespaceExportDeclaration(t)||e.isSourceFile(t)&&!!t.symbol.globalExports}))&&fn(!V.allowUmdGlobalAccess,v,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(r))}if(l&&f&&!y&&111551==(111551&n)){var I=Ti(as(l)),O=e.getRootDeclaration(f);I===ki(f)?_n(v,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(f.name)):I.valueDeclaration&&I.valueDeclaration.pos>f.pos&&O.parent.locals&&c(O.parent.locals,I.escapedName,n)===I&&_n(v,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(f.name),e.declarationNameToString(v))}l&&v&&111551&n&&2097152&l.flags&&function(t,r,n){if(!e.isValidTypeOnlyAliasUseSite(n)){var i=oi(t);if(i){var a=e.typeOnlyDeclarationIsExport(i),o=a?e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,s=a?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,c=e.unescapeLeadingUnderscores(r);e.addRelatedInfo(_n(n,o,c),e.createDiagnosticForNode(i,s,c))}}}(l,r,v)}return l}if(i&&!(v&&(function(t,r,n){if(!e.isIdentifier(t)||t.escapedText!==r||Db(t)||hf(t))return!1;var i=e.getThisContainer(t,!1),a=i;for(;a;){if(e.isClassLike(a.parent)){var o=ki(a.parent);if(!o)break;if(dc(po(o),r))return _n(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Mn(n),oa(o)),!0;if(a===i&&!e.hasSyntacticModifier(a,32))if(dc(Jo(o).thisType,r))return _n(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Mn(n)),!0}a=a.parent}return!1}(v,r,a)||Rn(v)||function(t,r,n){var i=1920|(e.isInJSFile(t)?111551:0);if(n===i){var a=ri(Pn(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(dc(Jo(a),s))return _n(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 _n(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(r)),!0}}return!1}(v,r,n)||function(t,r){if(jn(r)&&270===t.parent.kind)return _n(t,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,r),!0;return!1}(v,r)||function(t,r,n){if(111551&n){if(jn(r))return _n(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(r)),!0;var i=ri(Pn(t,r,788544,void 0,void 0,!1));if(i&&!(1024&i.flags)){var a=e.unescapeLeadingUnderscores(r);return!function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(r)?!function(t,r){var n=e.findAncestor(t.parent,(function(t){return!e.isComputedPropertyName(t)&&!e.isPropertySignature(t)&&(e.isTypeLiteralNode(t)||"quit")}));if(n&&1===n.members.length){var i=Jo(r);return!!(1048576&i.flags)&&vh(i,384,!0)}return!1}(t,i)?_n(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,a):_n(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,a,"K"===a?"P":"K"):_n(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,a),!0}}return!1}(v,r,n)||function(t,r,n){if(111127&n){if(ri(Pn(t,r,1024,void 0,void 0,!1)))return _n(t,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(r)),!0}else if(788544&n){if(ri(Pn(t,r,1536,void 0,void 0,!1)))return _n(t,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(r)),!0}return!1}(v,r,n)||function(t,r,n){if(788584&n){var i=ri(Pn(t,r,111127,void 0,void 0,!1));if(i&&!(1920&i.flags))return _n(t,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.unescapeLeadingUnderscores(r)),!0}return!1}(v,r,n)))){var M=void 0;if(u&&Lr<10&&(M=Dy(m,r,n))){var L=oa(M),R=_n(v,u,Mn(a),L);M.valueDeclaration&&e.addRelatedInfo(R,e.createDiagnosticForNode(M.valueDeclaration,e.Diagnostics._0_is_declared_here,L))}if(!M&&a){var B=function(t){for(var r=Mn(t),n=e.getScriptTargetFeatures(),i=e.getOwnKeys(n),a=0,o=i;a=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",c=n.exports.get("export=").valueDeclaration,u=_n(t.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,oa(n),s);e.addRelatedInfo(u,e.createDiagnosticForNode(c,e.Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,s))}else!function(t,r){var n,i;if(null===(n=t.exports)||void 0===n?void 0:n.has(r.symbol.escapedName))_n(r.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,oa(t),oa(r.symbol));else{var a=_n(r.name,e.Diagnostics.Module_0_has_no_default_export,oa(t)),o=null===(i=t.exports)||void 0===i?void 0:i.get("__export");if(o){var s=e.find(o.declarations,(function(t){var r,n;return!!(e.isExportDeclaration(t)&&t.moduleSpecifier&&(null===(n=null===(r=pi(t,t.moduleSpecifier))||void 0===r?void 0:r.exports)||void 0===n?void 0:n.has("default")))}));s&&e.addRelatedInfo(a,e.createDiagnosticForNode(s,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}}(n,t);return ii(t,i,void 0,!1),i}}function Xn(t,n,i){var a;void 0===i&&(i=!1);var o=e.getExternalModuleRequireArgument(t)||t.moduleSpecifier,s=pi(t,o),c=!e.isPropertyAccessExpression(n)&&n.propertyName||n.name;if(e.isIdentifier(c)){var u=vi(s,o,i,"default"===c.escapedText&&!(!V.allowSyntheticDefaultImports&&!V.esModuleInterop));if(u&&c.escapedText){if(e.isShorthandAmbientModuleSymbol(s))return s;var l=void 0;l=s&&s.exports&&s.exports.get("export=")?dc(po(u),c.escapedText):function(e,t){if(3&e.flags){var r=e.valueDeclaration.type;if(r)return ri(dc(ld(r),t))}}(u,c.escapedText),l=ri(l,i);var d=function(e,t,r,n){if(1536&e.flags){var i=bi(e).get(t.escapedText),a=ri(i,n);return ii(r,i,a,!1),a}}(u,c,n,i);if(void 0===d&&"default"===c.escapedText)Gn(e.find(s.declarations,e.isSourceFile),s,i)&&(d=yi(s,i)||ri(s,i));var _=d&&l&&d!==l?function(t,r){if(t===be&&r===be)return be;if(790504&t.flags)return t;var n=mn(t.flags|r.flags,t.escapedName);return n.declarations=e.deduplicate(e.concatenate(t.declarations,r.declarations),e.equateValues),n.parent=t.parent||r.parent,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration),r.members&&(n.members=new e.Map(r.members)),t.exports&&(n.exports=new e.Map(t.exports)),n}(l,d):d||l;if(!_){var p=li(s,t),f=e.declarationNameToString(c),g=xy(c,u);if(void 0!==g){var m=oa(g),y=_n(c,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,p,f,m);g.valueDeclaration&&e.addRelatedInfo(y,e.createDiagnosticForNode(g.valueDeclaration,e.Diagnostics._0_is_declared_here,m))}else(null===(a=s.exports)||void 0===a?void 0:a.has("default"))?_n(c,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,p,f):function(t,n,i,a,o){var s,c=null===(s=a.valueDeclaration.locals)||void 0===s?void 0:s.get(n.escapedText),u=a.exports;if(c){var l=null==u?void 0:u.get("export=");if(l)wi(l,c)?function(t,r,n,i){if(W>=e.ModuleKind.ES2015){_n(r,V.esModuleInterop?e.Diagnostics._0_can_only_be_imported_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n)}else{if(e.isInJSFile(t))_n(r,V.esModuleInterop?e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n);else _n(r,V.esModuleInterop?e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n,n,i)}}(t,n,i,o):_n(n,e.Diagnostics.Module_0_has_no_exported_member_1,o,i);else{var d=u?e.find(Dc(u),(function(e){return!!wi(e,c)})):void 0,_=d?_n(n,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,o,i,oa(d)):_n(n,e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,o,i);e.addRelatedInfo.apply(void 0,r([_],e.map(c.declarations,(function(t,r){return e.createDiagnosticForNode(t,0===r?e.Diagnostics._0_is_declared_here:e.Diagnostics.and_here,i)}))))}}else _n(n,e.Diagnostics.Module_0_has_no_exported_member_1,o,i)}(t,c,f,s,p)}return _}}}function Qn(t){if(e.isVariableDeclaration(t)&&t.initializer&&e.isPropertyAccessExpression(t.initializer))return t.initializer}function $n(e,t,r){var n=e.parent.parent.moduleSpecifier?Xn(e.parent.parent,e,r):di(e.propertyName||e.name,t,!1,r);return ii(e,void 0,n,!1),n}function Zn(t,r){if(e.isClassExpression(t))return Nh(t).symbol;if(e.isEntityName(t)||e.isEntityNameExpression(t)){var n=di(t,901119,!0,r);return n||(Nh(t),Tn(t).resolvedSymbol)}}function ei(t,r){switch(void 0===r&&(r=!1),t.kind){case 260:case 249:return qn(t,r);case 262:return Yn(t,r);case 263:return function(e,t){var r=e.parent.parent.moduleSpecifier,n=pi(e,r),i=vi(n,r,t,!1);return ii(e,n,i,!1),i}(t,r);case 269:return function(e,t){var r=e.parent.moduleSpecifier,n=r&&pi(e,r),i=r&&vi(n,r,t,!1);return ii(e,n,i,!1),i}(t,r);case 265:case 198:return function(t,r){var n=e.isBindingElement(t)?e.getRootDeclaration(t):t.parent.parent.parent,i=Qn(n),a=Xn(n,i||t,r),o=t.propertyName||t.name;return i&&a&&e.isIdentifier(o)?dc(po(a),o.escapedText):(ii(t,void 0,a,!1),a)}(t,r);case 270:return $n(t,901119,r);case 266:case 216:return function(t,r){var n=Zn(e.isExportAssignment(t)?t.expression:t.right,r);return ii(t,void 0,n,!1),n}(t,r);case 259:return function(e,t){var r=yi(e.parent.symbol,t);return ii(e,void 0,r,!1),r}(t,r);case 289:return di(t.name,901119,!0,r);case 288:return function(e,t){return Zn(e.initializer,t)}(t,r);case 202:case 201:return function(t,r){if(e.isBinaryExpression(t.parent)&&t.parent.left===t&&62===t.parent.operatorToken.kind)return Zn(t.parent.right,r)}(t,r);default:return e.Debug.fail()}}function ti(e,t){return void 0===t&&(t=901119),!!e&&(2097152==(e.flags&(2097152|t))||!!(2097152&e.flags&&67108864&e.flags))}function ri(e,t){return!t&&ti(e)?ni(e):e}function ni(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var r=Cn(t);if(r.target)r.target===Se&&(r.target=be);else{r.target=Se;var n=zn(t);if(!n)return e.Debug.fail();var i=ei(n);r.target===Se?r.target=i||be:_n(n,e.Diagnostics.Circular_definition_of_import_alias_0,oa(t))}return r.target}function ii(t,r,n,i){if(!t||e.isPropertyAccessExpression(t))return!1;var a=ki(t);if(e.isTypeOnlyImportOrExportDeclaration(t))return Cn(a).typeOnlyDeclaration=t,!0;var o=Cn(a);return ai(o,r,i)||ai(o,n,i)}function ai(t,r,n){var i,a,o;if(r&&(void 0===t.typeOnlyDeclaration||n&&!1===t.typeOnlyDeclaration)){var s=null!==(a=null===(i=r.exports)||void 0===i?void 0:i.get("export="))&&void 0!==a?a:r,c=s.declarations&&e.find(s.declarations,e.isTypeOnlyImportOrExportDeclaration);t.typeOnlyDeclaration=null!==(o=null!=c?c:Cn(s).typeOnlyDeclaration)&&void 0!==o&&o}return!!t.typeOnlyDeclaration}function oi(e){if(2097152&e.flags)return Cn(e).typeOnlyDeclaration||void 0}function si(e){var t=ki(e),r=ni(t);r&&((r===be||111551&r.flags&&!Ub(r)&&!oi(t))&&ci(t))}function ci(t){var r=Cn(t);if(!r.referenced){r.referenced=!0;var n=zn(t);if(!n)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(n)){var i=ri(t);(i===be||111551&i.flags)&&Nh(n.moduleReference)}}}function ui(t,r){return 78===t.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),78===t.kind||157===t.parent.kind?di(t,1920,!1,r):(e.Debug.assert(260===t.parent.kind),di(t,901119,!1,r))}function li(e,t){return e.parent?li(e.parent,t)+"."+oa(e):oa(e,t,void 0,20)}function di(t,r,n,i,a){if(!e.nodeIsMissing(t)){var o,s=1920|(e.isInJSFile(t)?111551&r:0);if(78===t.kind){var c=r===s||e.nodeIsSynthesized(t)?e.Diagnostics.Cannot_find_namespace_0:yf(e.getFirstIdentifier(t)),u=e.isInJSFile(t)&&!e.nodeIsSynthesized(t)?function(t,r){if(gu(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=ki(r.expression.left))return _i(i)}if((e.isObjectLiteralMethod(r)||e.isPropertyAssignment(r))&&e.isBinaryExpression(r.parent.parent)&&6===e.getAssignmentDeclarationKind(r.parent.parent)){if(i=ki(r.parent.parent.left))return _i(i)}var n=e.getEffectiveJSDocHost(t);if(n&&e.isFunctionLike(n)){var i;return(i=ki(n))&&i.valueDeclaration}}(t.parent);if(n)return Pn(n,t.escapedText,r,void 0,t,!0)}}(t,r):void 0;if(!(o=Ti(Pn(a||t,t.escapedText,r,n||u?void 0:c,t,!0))))return Ti(u)}else{if(157!==t.kind&&201!==t.kind)throw e.Debug.assertNever(t,"Unknown entity name kind.");var l=157===t.kind?t.left:t.expression,d=157===t.kind?t.right:t.name,_=di(l,s,n,!1,a);if(!_||e.nodeIsMissing(d))return;if(_===be)return _;if(e.isInJSFile(t)&&_.valueDeclaration&&e.isVariableDeclaration(_.valueDeclaration)&&_.valueDeclaration.initializer&&kv(_.valueDeclaration.initializer)){var p=_.valueDeclaration.initializer.arguments[0],f=pi(p,p);if(f){var g=yi(f);g&&(_=g)}}if(!(o=Ti(An(bi(_),d.escapedText,r)))){if(!n){var m=li(_),y=e.declarationNameToString(d),v=xy(d,_);v?_n(d,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,m,y,oa(v)):_n(d,e.Diagnostics.Namespace_0_has_no_exported_member_1,m,y)}return}}return e.Debug.assert(0==(1&e.getCheckFlags(o)),"Should never get an instantiated symbol here."),!e.nodeIsSynthesized(t)&&e.isEntityName(t)&&(2097152&o.flags||266===t.parent.kind)&&ii(e.getAliasDeclarationFromName(t),o,void 0,!0),o.flags&r||i?o:ni(o)}}function _i(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 pi(t,r,n){var i=e.getEmitModuleResolutionKind(V)===e.ModuleResolutionKind.Classic?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;return fi(t,r,n?void 0:i)}function fi(t,r,n,i){return void 0===i&&(i=!1),e.isStringLiteralLike(r)?gi(t,r.text,n,r,i):void 0}function gi(r,n,i,a,o){(void 0===o&&(o=!1),e.startsWith(n,"@types/"))&&_n(a,e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,e.removePrefix(n,"@types/"),n);var s=bc(n,!0);if(s)return s;var c=e.getSourceFileOfNode(r),u=e.getResolvedModule(c,n),l=u&&e.getResolutionDiagnostic(V,u),d=u&&!l&&t.getSourceFile(u.resolvedFileName);if(d)return d.symbol?(u.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(u.extension)&&mi(!1,a,u,n),Ti(d.symbol)):void(i&&_n(a,e.Diagnostics.File_0_is_not_a_module,d.fileName));if(yt){var _=e.findBestPatternMatch(yt,(function(e){return e.pattern}),n);if(_){var p=vt&&vt.get(n);return Ti(p?p:_.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?_n(a,e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,n,u.resolvedFileName):mi($&&!!i,a,u,n);else if(i){if(u){var f=t.getProjectReferenceRedirect(u.resolvedFileName);if(f)return void _n(a,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,f,u.resolvedFileName)}if(l)_n(a,l,n,u.resolvedFileName);else{var g=e.tryExtractTSExtension(n);if(g)_n(a,e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,g,e.removeExtension(n,g));else!V.resolveJsonModule&&e.fileExtensionIs(n,".json")&&e.getEmitModuleResolutionKind(V)===e.ModuleResolutionKind.NodeJs&&e.hasJsonModuleEmitEnabled(V)?_n(a,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n):_n(a,i,n)}}}function mi(t,r,n,i){var a,o=n.packageId,s=n.resolvedFileName,c=!e.isExternalModuleNameRelative(i)&&o?(a=o.name,f().has(e.getTypesPackageName(a))?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,o.name,e.mangleScopedPackageName(o.name)):e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,i,e.mangleScopedPackageName(o.name))):void 0;fn(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 yi(t,r){if(null==t?void 0:t.exports){var n=function(t,r){if(!t||t===be||t===r||1===r.exports.size||2097152&t.flags)return t;var n=Cn(t);if(n.cjsExportMerged)return n.cjsExportMerged;var i=33554432&t.flags?t:hn(t);i.flags=512|i.flags,void 0===i.exports&&(i.exports=e.createSymbolTable());return r.exports.forEach((function(e,t){"export="!==t&&i.exports.set(t,i.exports.has(t)?Dn(i.exports.get(t),e):e)})),Cn(i).cjsExportMerged=i,n.cjsExportMerged=i}(Ti(ri(t.exports.get("export="),r)),Ti(t));return Ti(n)||t}}function vi(t,r,n,i){var a=yi(t,n);if(!n&&a){if(!(i||1539&a.flags||e.getDeclarationOfKind(a,297))){var o=W>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return _n(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(V.esModuleInterop){var s=r.parent;if(e.isImportDeclaration(s)&&e.getNamespaceDeclarationNode(s)||e.isImportCall(s)){var c=po(a),u=_c(c,0);if(u&&u.length||(u=_c(c,1)),u&&u.length){var l=Tv(c,a,t),d=mn(a.flags,a.escapedName);d.declarations=a.declarations?a.declarations.slice():[],d.parent=a.parent,d.target=a,d.originatingImport=s,a.valueDeclaration&&(d.valueDeclaration=a.valueDeclaration),a.constEnumOnlyModule&&(d.constEnumOnlyModule=!0),a.members&&(d.members=new e.Map(a.members)),a.exports&&(d.exports=new e.Map(a.exports));var _=Rs(l);return d.type=Vi(d,_.members,e.emptyArray,e.emptyArray,_.stringIndexInfo,_.numberIndexInfo),d}}}}return a}function hi(e){return void 0!==e.exports.get("export=")}function Di(e){return Dc(Si(e))}function xi(e,t){var r=Si(t);if(r)return r.get(e)}function bi(e){return 6256&e.flags?ns(e,"resolvedExports"):1536&e.flags?Si(e):e.exports||A}function Si(e){var t=Cn(e);return t.resolvedExports||(t.resolvedExports=Ci(e))}function Ei(t,r,n,i){r&&r.forEach((function(r,a){if("default"!==a){var o=t.get(a);if(o){if(n&&i&&o&&ri(o)!==ri(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 Ci(t){var r=[];return function t(n){if(!(n&&n.exports&&e.pushIfUnique(r,n)))return;var i=new e.Map(n.exports),a=n.exports.get("__export");if(a){for(var o=e.createSymbolTable(),s=new e.Map,c=0,u=a.declarations;c=l?u.substr(0,l-"...".length)+"...":u}function ua(e,t){var r=da(e.symbol)?ca(e,e.symbol.valueDeclaration):ca(e),n=da(t.symbol)?ca(t,t.symbol.valueDeclaration):ca(t);return r===n&&(r=la(e),n=la(t)),[r,n]}function la(e){return ca(e,void 0,64)}function da(t){return t&&t.valueDeclaration&&e.isExpression(t.valueDeclaration)&&!jd(t.valueDeclaration)}function _a(e){return void 0===e&&(e=0),814775659&e}function pa(t){return!!(t.symbol&&32&t.symbol.flags&&(t===Po(t.symbol)||1073741824&e.getObjectFlags(t)))}function fa(t,r,n,i){return void 0===n&&(n=16384),i?a(i).getText():e.usingSingleLineStringWriter(a);function a(i){var a=e.factory.createTypePredicateNode(2===t.kind||3===t.kind?e.factory.createToken(127):void 0,1===t.kind||3===t.kind?e.factory.createIdentifier(t.parameterName):e.factory.createThisTypeNode(),t.type&&ne.typeToTypeNode(t.type,r,70222336|_a(n))),o=e.createPrinter({removeComments:!0}),s=r&&e.getSourceFileOfNode(r);return o.writeNode(4,a,s,i),i}}function ga(e){return 8===e?"private":16===e?"protected":"public"}function ma(t){return t&&t.parent&&257===t.parent.kind&&e.isExternalModuleAugmentation(t.parent.parent)}function ya(t){return 297===t.kind||e.isAmbientModule(t)}function va(t,r){var n=Cn(t).nameType;if(n){if(384&n.flags){var i=""+n.value;return e.isIdentifierText(i,V.target)||xm(i)?xm(i)&&e.startsWith(i,"-")?"["+i+"]":i:'"'+e.escapeString(i,34)+'"'}if(8192&n.flags)return"["+ha(n.symbol,r)+"]"}}function ha(t,r){if(r&&"default"===t.escapedName&&!(16384&r.flags)&&(!(16777216&r.flags)||!t.declarations||r.enclosingDeclaration&&e.findAncestor(t.declarations[0],ya)!==e.findAncestor(r.enclosingDeclaration,ya)))return"default";if(t.declarations&&t.declarations.length){var n=e.firstDefined(t.declarations,(function(t){return e.getNameOfDeclaration(t)?t:void 0})),i=n&&e.getNameOfDeclaration(n);if(n&&i){if(e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n))return e.symbolName(t);if(e.isComputedPropertyName(i)&&!(4096&e.getCheckFlags(t))){var a=Cn(t).nameType;if(a&&384&a.flags){var o=va(t,r);if(void 0!==o)return o}}return e.declarationNameToString(i)}if(n||(n=t.declarations[0]),n.parent&&249===n.parent.kind)return e.declarationNameToString(n.parent.name);switch(n.kind){case 221:case 208:case 209:return!r||r.encounteredError||131072&r.flags||(r.encounteredError=!0),221===n.kind?"(Anonymous class)":"(Anonymous function)"}}var s=va(t,r);return void 0!==s?s:e.symbolName(t)}function Da(t){if(t){var r=Tn(t);return void 0===r.isVisible&&(r.isVisible=!!function(){switch(t.kind){case 324:case 331:case 325:return!!(t.parent&&t.parent.parent&&t.parent.parent.parent&&e.isSourceFile(t.parent.parent.parent));case 198:return Da(t.parent.parent);case 249:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 256:case 252:case 253:case 254:case 251:case 255:case 260:if(e.isExternalModuleAugmentation(t))return!0;var r=Ta(t);return 1&e.getCombinedModifierFlags(t)||260!==t.kind&&297!==r.kind&&8388608&r.flags?Da(r):kn(r);case 163:case 162:case 167:case 168:case 165:case 164:if(e.hasEffectiveModifier(t,24))return!1;case 166:case 170:case 169:case 171:case 160:case 257:case 174:case 175:case 177:case 173:case 178:case 179:case 182:case 183:case 186:case 192:return Da(t.parent);case 262:case 263:case 265:return!1;case 159:case 297:case 259:return!0;case 266:default:return!1}}()),r.isVisible}return!1}function xa(t,r){var n,i,a;return t.parent&&266===t.parent.kind?n=Pn(t,t.escapedText,2998271,void 0,t,!1):270===t.parent.kind&&(n=$n(t.parent,2998271)),n&&((a=new e.Set).add(M(n)),function t(n){e.forEach(n,(function(n){var o=Kn(n)||n;if(r?Tn(n).isVisible=!0:(i=i||[],e.pushIfUnique(i,o)),e.isInternalModuleImportEqualsDeclaration(n)){var s=n.moduleReference,c=Pn(n,e.getFirstIdentifier(s).escapedText,901119,void 0,void 0,!1);c&&a&&e.tryAddToSet(a,M(c))&&t(c.declarations)}}))}(n.declarations)),i}function ba(e,t){var r=Sa(e,t);if(r>=0){for(var n=Ir.length,i=r;i=0;r--){if(Ea(Ir[r],Mr[r]))return-1;if(Ir[r]===e&&Mr[r]===t)return r}return-1}function Ea(t,r){switch(r){case 0:return!!Cn(t).type;case 5:return!!Tn(t).resolvedEnumType;case 2:return!!Cn(t).declaredType;case 1:return!!t.resolvedBaseConstructorType;case 3:return!!t.resolvedReturnType;case 4:return!!t.immediateBaseConstraint;case 6:return!!t.resolvedTypeArguments;case 7:return!!t.baseTypesResolved}return e.Debug.assertNever(r)}function Ca(){return Ir.pop(),Mr.pop(),Or.pop()}function Ta(t){return e.findAncestor(e.getRootDeclaration(t),(function(e){switch(e.kind){case 249:case 250:case 265:case 264:case 263:case 262:return!1;default:return!0}})).parent}function ka(e,t){var r=dc(e,t);return r?po(r):void 0}function Aa(e){return e&&0!=(1&e.flags)}function Fa(e){var t=ki(e);return t&&Cn(t).type||Ba(e,!1)}function Na(t,r,n){if(131072&(t=$f(t,(function(e){return!(98304&e.flags)}))).flags)return it;if(1048576&t.flags)return eg(t,(function(e){return Na(e,r,n)}));var i=$u(e.map(r,ul));if(Cl(t)||Tl(i)){if(131072&i.flags)return t;var a=er||(er=Su("Omit",524288,e.Diagnostics.Cannot_find_global_type_0));return a?su(a,[t,i]):ke}for(var o=e.createSymbolTable(),s=0,c=Ks(t);s=2?(i=Ee,Pu(Fu(!0),[i])):Nt;var c=e.map(a,(function(t){return e.isOmittedExpression(t)?Ee:Ya(t,r,n)})),u=e.findLastIndex(a,(function(t){return!(t===s||e.isOmittedExpression(t)||mm(t))}),a.length-1)+1,l=Ju(c,e.map(a,(function(e,t){return e===s?4:t>=u?2:1})));return r&&((l=ru(l)).pattern=t,l.objectFlags|=1048576),l}function Qa(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),196===t.kind?function(t,r,n){var i,a=e.createSymbolTable(),o=1048704;e.forEach(t.elements,(function(e){var t=e.propertyName||e.name;if(e.dotDotDotToken)i=Gc(Ee,!1);else{var s=ul(t);if(Xo(s)){var c=ts(s),u=mn(4|(e.initializer?16777216:0),c);u.type=Ya(e,r,n),u.bindingElement=e,a.set(u.escapedName,u)}else o|=512}}));var s=Vi(void 0,a,e.emptyArray,e.emptyArray,i,void 0);return s.objectFlags|=o,r&&(s.pattern=t,s.objectFlags|=1048576),s}(t,r,n):Xa(t,r,n)}function $a(e,t){return Za(Ba(e,!0),e,t)}function Za(t,r,n){return t?(n&&Rp(r,t),8192&t.flags&&(e.isBindingElement(r)||!r.type)&&t.symbol!==ki(r)&&(t=Ve),Ip(t)):(t=e.isParameter(r)&&r.dotDotDotToken?Nt:Ee,n&&(eo(r)||Lp(r,t)),t)}function eo(t){var r=e.getRootDeclaration(t);return dD(160===r.kind?r.parent:r)}function to(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return ld(r)}function ro(t){var r=Cn(t);if(!r.type){var n=function(t){if(4194304&t.flags)return(r=Jo(Ai(t))).typeParameters?tu(r,e.map(r.typeParameters,(function(e){return Ee}))):r;var r;if(t===ue)return Ee;if(134217728&t.flags){var n=ki(e.getSourceFileOfNode(t.valueDeclaration)),i=e.createSymbolTable();return i.set("exports",n),Vi(t,i,e.emptyArray,e.emptyArray,void 0,void 0)}var a,o=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(o)){var s=o;if(!s.type)return Ee;var c=Tb(s.type);return Aa(c)||c===Ne?c:ke}if(e.isSourceFile(o)&&e.isJsonSourceFile(o))return o.statements.length?Ip(tp(Gh(o.statements[0].expression))):it;if(!ba(t,0))return 512&t.flags&&!(67108864&t.flags)?uo(t):_o(t);if(266===o.kind)a=Za(Nh(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=Va(t);else if(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 uo(t);a=e.isBinaryExpression(o.parent)?Va(t):to(o)||Ee}else if(e.isPropertyAssignment(o))a=to(o)||Rh(o);else if(e.isJsxAttribute(o))a=to(o)||Fm(o);else if(e.isShorthandPropertyAssignment(o))a=to(o)||Lh(o.name,0);else if(e.isObjectLiteralMethod(o))a=to(o)||Bh(o,0);else if(e.isParameter(o)||e.isPropertyDeclaration(o)||e.isPropertySignature(o)||e.isVariableDeclaration(o)||e.isBindingElement(o)||e.isJSDocPropertyLikeTag(o))a=$a(o,!0);else if(e.isEnumDeclaration(o))a=uo(t);else if(e.isEnumMember(o))a=lo(t);else{if(!e.isAccessor(o))return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(o.kind)+" for "+e.Debug.formatSymbol(t));a=so(t)}if(!Ca())return 512&t.flags&&!(67108864&t.flags)?uo(t):_o(t);return a}(t);r.type||(r.type=n)}return r.type}function no(t){if(t)return 167===t.kind?e.getEffectiveReturnTypeNode(t):e.getEffectiveSetAccessorTypeAnnotationNode(t)}function io(e){var t=no(e);return t&&ld(t)}function ao(e){return Ic(Ac(e))}function oo(t){var r=Cn(t);return r.type||(r.type=function(t){if(!ba(t,0))return ke;var r=so(t);if(!Ca()){if(r=Ee,$)_n(e.getDeclarationOfKind(t,167),e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,oa(t))}return r}(t))}function so(t){var r=e.getDeclarationOfKind(t,167),n=e.getDeclarationOfKind(t,168);if(r&&e.isInJSFile(r)){var i=Ma(r);if(i)return i}var a=io(r);if(a)return a;var o=io(n);return o||(r&&r.body?eh(r):(n?dD(n)||fn($,n,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,oa(t)):(e.Debug.assert(!!r,"there must exist a getter as we are current checking either setter or getter in this function"),dD(r)||fn($,r,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,oa(t))),Ee))}function co(t){var r=To(Po(t));return 8650752&r.flags?r:2097152&r.flags?e.find(r.types,(function(e){return!!(8650752&e.flags)})):void 0}function uo(t){var r=Cn(t),n=r;if(!r.type){var i=t.valueDeclaration&&xv(t.valueDeclaration,!1);if(i){var a=Dv(t,i);a&&(t=r=a)}n.type=r.type=function(t){var r=t.valueDeclaration;if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))return Ee;if(r&&(216===r.kind||e.isAccessExpression(r)&&216===r.parent.kind))return Va(t);if(512&t.flags&&r&&e.isSourceFile(r)&&r.commonJsModuleIndicator){var n=yi(t);if(n!==t){if(!ba(t,0))return ke;var i=Ti(t.exports.get("export=")),a=Va(i,i===n?void 0:n);return Ca()?a:_o(t)}}var o=ji(16,t);if(32&t.flags){var s=co(t);return s?al([o,s]):o}return G&&16777216&t.flags?vp(o):o}(t)}return r.type}function lo(e){var t=Cn(e);return t.type||(t.type=Bo(e))}function _o(t){var r=t.valueDeclaration;return e.getEffectiveTypeAnnotationNode(r)?(_n(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,oa(t)),ke):($&&(160!==r.kind||r.initializer)&&_n(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,oa(t)),Ee)}function po(t){var r=e.getCheckFlags(t);return 65536&r?function(t){var r=Cn(t);return r.type||(e.Debug.assertIsDefined(r.deferralParent),e.Debug.assertIsDefined(r.deferralConstituents),r.type=1048576&r.deferralParent.flags?$u(r.deferralConstituents):al(r.deferralConstituents)),r.type}(t):1&r?function(e){var t=Cn(e);if(!t.type){if(!ba(e,0))return t.type=ke;var r=Md(po(t.target),t.mapper);Ca()||(r=_o(e)),t.type=r}return t.type}(t):262144&r?function(t){if(!t.type){var r=t.mappedType;if(!ba(t,0))return r.containsError=!0,ke;var n=Md(Fs(r.target||r),Ed(r.mapper,Ts(r),t.keyType)),i=G&&16777216&t.flags&&!mh(n,49152)?vp(n):524288&t.checkFlags?If(n,524288):n;Ca()||(_n(d,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,oa(t),ca(r)),i=ke),t.type=i}return t.type}(t):8192&r?function(e){return $p(e.propertyType,e.mappedType,e.constraintType)}(t):7&t.flags?ro(t):9136&t.flags?uo(t):8&t.flags?lo(t):98304&t.flags?oo(t):2097152&t.flags?function(e){var t=Cn(e);if(!t.type){var r=ni(e);t.type=111551&r.flags?po(r):ke}return t.type}(t):ke}function fo(t,r){return void 0!==t&&void 0!==r&&0!=(4&e.getObjectFlags(t))&&t.target===r}function go(t){return 4&e.getObjectFlags(t)?t.target:t}function mo(t,r){return function t(n){if(7&e.getObjectFlags(n)){var i=go(n);return i===r||e.some(Ao(i),t)}if(2097152&n.flags)return e.some(n.types,t);return!1}(t)}function yo(t,r){for(var n=0,i=r;n0)return!0;if(8650752&e.flags){var t=Gs(e);return!!t&&xo(t)}return!1}function So(t){return e.getEffectiveBaseTypeNode(t.symbol.valueDeclaration)}function Eo(t,r,n){var i=e.length(r),a=e.isInJSFile(n);return e.filter(pc(t,1),(function(t){return(a||i>=Tc(t.typeParameters))&&i<=e.length(t.typeParameters)}))}function Co(t,r,n){var i=Eo(t,r,n),a=e.map(r,ld);return e.sameMap(i,(function(t){return e.some(t.typeParameters)?jc(t,a,e.isInJSFile(n)):t}))}function To(t){if(!t.resolvedBaseConstructorType){var r=t.symbol.valueDeclaration,n=e.getEffectiveBaseTypeNode(r),i=So(t);if(!i)return t.resolvedBaseConstructorType=Pe;if(!ba(t,1))return ke;var a=Gh(i.expression);if(n&&i!==n&&(e.Debug.assert(!n.typeArguments),Gh(n.expression)),2621440&a.flags&&Rs(a),!Ca())return _n(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,oa(t.symbol)),t.resolvedBaseConstructorType=ke;if(!(1&a.flags||a===Me||bo(a))){var o=_n(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,ca(a));if(262144&a.flags){var s=Qc(a),c=Ne;if(s){var u=pc(s,1);u[0]&&(c=Mc(u[0]))}e.addRelatedInfo(o,e.createDiagnosticForNode(a.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,oa(a.symbol),ca(c)))}return t.resolvedBaseConstructorType=ke}t.resolvedBaseConstructorType=a}return t.resolvedBaseConstructorType}function ko(t,r){_n(t,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,ca(r,void 0,2))}function Ao(t){if(!t.baseTypesResolved){if(ba(t,7)&&(8&t.objectFlags?t.resolvedBaseTypes=[Fo(t)]:96&t.symbol.flags?(32&t.symbol.flags&&function(t){t.resolvedBaseTypes=e.resolvingEmptyArray;var r=tc(To(t));if(!(2621441&r.flags))return t.resolvedBaseTypes=e.emptyArray;var n,i=So(t),a=r.symbol?Jo(r.symbol):void 0;if(r.symbol&&32&r.symbol.flags&&function(e){var t=e.outerTypeParameters;if(t){var r=t.length-1,n=iu(e);return t[r].symbol!==n[r].symbol}return!0}(a))n=ou(i,r.symbol);else if(1&r.flags)n=r;else{var o=Co(r,i.typeArguments,i);if(!o.length)return _n(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),t.resolvedBaseTypes=e.emptyArray;n=Mc(o[0])}if(n===ke)return t.resolvedBaseTypes=e.emptyArray;var s=oc(n);if(!No(s)){var c=lc(void 0,n),u=e.chainDiagnosticMessages(c,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,ca(s));return $r.add(e.createDiagnosticForNodeFromMessageChain(i.expression,u)),t.resolvedBaseTypes=e.emptyArray}if(t===s||mo(s,t))return _n(t.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,ca(t,void 0,2)),t.resolvedBaseTypes=e.emptyArray;t.resolvedBaseTypes===e.resolvingEmptyArray&&(t.members=void 0);t.resolvedBaseTypes=[s]}(t),64&t.symbol.flags&&function(t){t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray;for(var r=0,n=t.symbol.declarations;r0)return;for(var i=1;i1&&(n=void 0===n?i:-1);for(var a=0,o=t[i];a1){var l=s.thisParameter,d=e.forEach(c,(function(e){return e.thisParameter}));if(d)l=Tp(d,al(e.mapDefined(c,(function(e){return e.thisParameter&&po(e.thisParameter)}))));(u=ls(s,c)).thisParameter=l}(r||(r=[])).push(u)}}}}if(!e.length(r)&&-1!==n){for(var _=t[void 0!==n?n:0],p=_.slice(),f=function(t){if(t!==_){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=Kv(e),n=Kv(t),i=r>=n?e:t,a=i===e?t:e,o=i===e?r:n,s=Uv(e)||Uv(t),c=s&&!Uv(i),u=new Array(o+(c?1:0)),l=0;l=zv(i)&&l>=zv(a),f=l>=r?void 0:Mv(e,l),g=l>=n?void 0:Mv(t,l),m=mn(1|(p&&!_?16777216:0),(f===g?f:f?g?void 0:f:g)||"arg"+l);m.type=_?Iu(d):d,u[l]=m}if(c){var y=mn(1,"args");y.type=Iu(Bv(a,o)),u[o]=y}return u}(t,r),a=function(e,t){if(!e||!t)return e||t;var r=al([po(e),po(t)]);return Tp(e,r)}(t.thisParameter,r.thisParameter),o=Math.max(t.minArgumentCount,r.minArgumentCount),s=cs(n,t.typeParameters||r.typeParameters,a,i,void 0,void 0,o,19&(t.flags|r.flags));return s.unionSignatures=e.concatenate(t.unionSignatures||[t],[r]),s}(t,r)}))))return"break"}},g=0,m=t;g0})),n=e.map(t,xo);if(r>0&&r===e.countWhere(n,(function(e){return e}))){var i=n.indexOf(!0);n[i]=!1}return n}function xs(t){for(var r,n,i,a,o=t.types,s=Ds(o),c=e.countWhere(s,(function(e){return e})),u=function(u){var l=t.types[u];if(!s[u]){var d=pc(l,1);d.length&&c>0&&(d=e.map(d,(function(e){var t=us(e);return t.resolvedReturnType=function(e,t,r,n){for(var i=[],a=0;a=d&&o<=_){var p=_?Kc(l,kc(a,l.typeParameters,d,i)):us(l);p.typeParameters=t.localTypeParameters,p.resolvedReturnType=t,s.push(p)}}return s}(l)),t.constructSignatures=i}}}function Es(t){if(4194304&t.flags){var r=tc(t.type);return op(r)?qu(r):pl(r)}if(16777216&t.flags){if(t.root.isDistributive){var n=t.checkType,i=Es(n);if(i!==n)return Od(t,Sd(t.root.checkType,i,t.mapper))}return t}return 1048576&t.flags?$u(e.sameMap(t.types,Es)):2097152&t.flags?al(e.sameMap(t.types,Es)):t}function Cs(t){var r,n,i=e.createSymbolTable();Ui(t,A,e.emptyArray,e.emptyArray,void 0,void 0);var a=Ts(t),o=ks(t),s=As(t.target||t),c=Fs(t.target||t),u=tc(ws(t)),l=Is(t),d=ee?128:8576;if(Ps(t)){for(var _=0,p=Ks(u);_=50)return e.tracing.instant("check","getImmediateBaseConstraint_DepthLimit",{typeId:i.id,originalTypeId:t.id,depth:T}),_n(d,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),r=!0,i.immediateBaseConstraint=lt;var o=void 0;if(R_(i,n,n.length)||(n.push(i),T++,o=function(t){if(262144&t.flags){var r=Qc(t);return t.isThisType||!r?r:a(r)}if(3145728&t.flags){for(var n=[],i=0,o=c=t.types;i=7,tr||(tr=Eu("BigInt",0,r))||it):528&n.flags?kt:12288&n.flags?Tu(q>=2):67108864&n.flags?it:4194304&n.flags?Ze:2&n.flags&&!G?it:n}function rc(e){return oc(tc(oc(e)))}function nc(t,r){for(var n,i,a,o=1048576&t.flags,s=o?0:16777216,c=4,u=0,l=0,d=t.types;l2?(C.checkFlags|=65536,C.deferralParent=t,C.deferralConstituents=h):C.type=o?$u(h):al(h),C}}function ic(t,r){var n=t.propertyCache||(t.propertyCache=e.createSymbolTable()),i=n.get(r);return i||(i=nc(t,r))&&n.set(r,i),i}function ac(t,r){var n=ic(t,r);return!n||16&e.getCheckFlags(n)?void 0:n}function oc(t){return 1048576&t.flags&&268435456&t.objectFlags?t.resolvedReducedType||(t.resolvedReducedType=function(t){var r=e.sameMap(t.types,oc);if(r===t.types)return t;var n=$u(r);1048576&n.flags&&(n.resolvedReducedType=n);return n}(t)):2097152&t.flags?(268435456&t.objectFlags||(t.objectFlags|=268435456|(e.some(Js(t),sc)?536870912:0)),536870912&t.objectFlags?We:t):t}function sc(e){return cc(e)||uc(e)}function cc(t){return!(16777216&t.flags||192!=(131264&e.getCheckFlags(t))||!(131072&po(t).flags))}function uc(t){return!t.valueDeclaration&&!!(1024&e.getCheckFlags(t))}function lc(t,r){if(536870912&e.getObjectFlags(r)){var n=e.find(Js(r),cc);if(n)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,ca(r,void 0,536870912),oa(n));var i=e.find(Js(r),uc);if(i)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,ca(r,void 0,536870912),oa(i))}return t}function dc(e,t){if(524288&(e=rc(e)).flags){var r=Rs(e),n=r.members.get(t);if(n&&Oi(n))return n;var i=r===ut?Dt:r.callSignatures.length?xt:r.constructSignatures.length?bt:void 0;if(i){var a=js(i,t);if(a)return a}return js(ht,t)}if(3145728&e.flags)return ac(e,t)}function _c(t,r){if(3670016&t.flags){var n=Rs(t);return 0===r?n.callSignatures:n.constructSignatures}return e.emptyArray}function pc(e,t){return _c(rc(e),t)}function fc(e,t){if(3670016&e.flags){var r=Rs(e);return 0===t?r.stringIndexInfo:r.numberIndexInfo}}function gc(e,t){var r=fc(e,t);return r&&r.type}function mc(e,t){return fc(rc(e),t)}function yc(e,t){return gc(rc(e),t)}function vc(t,r){if(Cp(t)){for(var n=[],i=0,a=Ks(t);i=0),n>=zv(r,3)}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&(!t.type&&!t.dotDotDotToken&&t.parent.parameters.indexOf(t)>=i.arguments.length)}function Ec(t){if(!e.isJSDocPropertyLikeTag(t))return!1;var r=t.isBracketed,n=t.typeExpression;return r||!!n&&307===n.type.kind}function Cc(e,t,r,n){return{kind:e,parameterName:t,parameterIndex:r,type:n}}function Tc(t){var r,n=0;if(t)for(var i=0;i=n&&o<=a){for(var s=t?t.slice():[],c=o;cu.arguments.length&&!f||xc(_)||(o=i.length)}if(!(167!==t.kind&&168!==t.kind||es(t)||c&&s)){var g=167===t.kind?168:167,m=e.getDeclarationOfKind(ki(t),g);m&&(s=(r=NS(m))&&r.symbol)}var y=166===t.kind?Po(Ti(t.parent.symbol)):void 0,v=y?y.localTypeParameters:hc(t);(e.hasRestParameter(t)||e.isInJSFile(t)&&function(t,r){if(e.isJSDocSignature(t)||!Nc(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=mn(3,"args",32768);o.type=a?Iu(ld(a.type)):Nt,a&&r.pop();return r.push(o),!0}(t,i))&&(a|=1),n.resolvedSignature=cs(t,v,s,i,void 0,void 0,o,a)}return n.resolvedSignature}function Fc(t){if(e.isInJSFile(t)&&e.isFunctionLikeDeclaration(t)){var r=e.getJSDocTypeTag(t),n=r&&r.typeExpression&&jy(ld(r.typeExpression));return n&&zc(n)}}function Nc(t){var r=Tn(t);return void 0===r.containsArgumentsReference&&(8192&r.flags?r.containsArgumentsReference=!0:r.containsArgumentsReference=function t(r){if(!r)return!1;switch(r.kind){case 78:return"arguments"===r.escapedText&&e.isExpressionNode(r);case 163:case 165:case 167:case 168:return 158===r.name.kind&&t(r.name);default:return!e.nodeStartsNewLexicalEnvironment(r)&&!e.isPartOfTypeNode(r)&&!!e.forEachChild(r,t)}}(t.body)),r.containsArgumentsReference}function Pc(t){if(!t)return e.emptyArray;for(var r=[],n=0;n0&&i.body){var a=t.declarations[n-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end)continue}r.push(Ac(i))}}return r}function wc(e){var t=pi(e,e);if(t){var r=yi(t);if(r)return po(r)}return Ee}function Ic(e){if(e.thisParameter)return po(e.thisParameter)}function Oc(t){if(!t.resolvedTypePredicate){if(t.target){var r=Oc(t.target);t.resolvedTypePredicate=r?(o=r,s=t.mapper,Cc(o.kind,o.parameterName,o.parameterIndex,Md(o.type,s))):ur}else if(t.unionSignatures)t.resolvedTypePredicate=function(e){for(var t,r=[],n=0,i=e;n=0}function Bc(e){if(K(e)){var t=po(e.parameters[e.parameters.length-1]),r=ap(t)?cp(t):t;return r&&yc(r,1)}}function jc(e,t,r,n){var i=Jc(e,kc(t,e.typeParameters,Tc(e.typeParameters),r));if(n){var a=Jy(Mc(i));if(a){var o=us(a);o.typeParameters=n;var s=us(i);return s.resolvedReturnType=qc(o),s}}return i}function Jc(t,r){var n=t.instantiations||(t.instantiations=new e.Map),i=Zc(r),a=n.get(i);return a||n.set(i,a=Kc(t,r)),a}function Kc(e,t){return Td(e,function(e,t){return gd(e.typeParameters,t)}(e,t),!0)}function zc(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return Td(e,Dd(e.typeParameters),!0)}(e)):e}function Uc(t){return t.typeParameters?t.canonicalSignatureCache||(t.canonicalSignatureCache=function(t){return jc(t,e.map(t.typeParameters,(function(e){return e.target&&!Us(e.target)?e.target:e})),e.isInJSFile(t.declaration))}(t)):t}function Vc(t){var r=t.typeParameters;if(r){var n=Dd(r);return Td(t,gd(r,e.map(r,(function(e){return Md(Gs(e),n)||Ne}))),!0)}return t}function qc(t){if(!t.isolatedSignatureType){var r=t.declaration?t.declaration.kind:0,n=166===r||170===r||175===r,i=ji(16);i.members=A,i.properties=e.emptyArray,i.callSignatures=n?e.emptyArray:[t],i.constructSignatures=n?[t]:e.emptyArray,t.isolatedSignatureType=i}return t.isolatedSignatureType}function Wc(e){return e.members.get("__index")}function Hc(t,r){var n=1===r?144:147,i=Wc(t);if(i)for(var a=0,o=i.declarations;a1&&(t+=":"+a),n+=a}return t}function eu(t,r){for(var n=0,i=0,a=t;ii.length)){var c=s&&e.isExpressionWithTypeArguments(t)&&!e.isJSDocAugmentsTag(t.parent);if(_n(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,ca(n,void 0,2),o,i.length),!s)return ke}return 173===t.kind&&Ru(t,e.length(t.typeArguments)!==i.length)?nu(n,t,void 0):tu(n,e.concatenate(n.outerTypeParameters,kc(hu(t),i,o,s)))}return mu(t,r)?n:ke}function su(t,r){var n=Jo(t);if(n===Fe&&P.has(t.escapedName)&&r&&1===r.length)return yl(t,r[0]);var i=Cn(t),a=i.typeParameters,o=Zc(r),s=i.instantiations.get(o);return s||i.instantiations.set(o,s=Md(n,gd(a,kc(r,a,Tc(a),e.isInJSFile(t.valueDeclaration))))),s}function cu(t){switch(t.kind){case 173:return t.typeName;case 223:var r=t.expression;if(e.isEntityNameExpression(r))return r}}function uu(e,t,r){return e&&di(e,t,r)||be}function lu(t,r){if(r===be)return ke;if(96&(r=function(t){var r=t.valueDeclaration;if(r&&e.isInJSFile(r)&&!(524288&t.flags)&&!e.getExpandoInitializer(r,!1)){var n=e.isVariableDeclaration(r)?e.getDeclaredExpandoInitializer(r):e.getAssignedExpandoInitializer(r);if(n){var i=ki(n);if(i)return Dv(i,t)}}}(r)||r).flags)return ou(t,r);if(524288&r.flags)return function(t,r){var n=Jo(r),i=Cn(r).typeParameters;if(i){var a=e.length(t.typeArguments),o=Tc(i);return ai.length?(_n(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,oa(r),o,i.length),ke):su(r,hu(t))}return mu(t,r)?n:ke}(t,r);var n=Ko(r);if(n)return mu(t,r)?nd(n):ke;if(111551&r.flags&&gu(t)){var i=function(e,t){var r=Tn(e);if(!r.resolvedJSDocType){var n=po(t),i=n;if(t.valueDeclaration){var a=195===e.kind&&e.qualifier;n.symbol&&n.symbol!==t&&a&&(i=lu(e,n.symbol))}r.resolvedJSDocType=i}return r.resolvedJSDocType}(t,r);return i||(uu(cu(t),788968),po(r))}return ke}function du(e,t){if(3&t.flags||t===e)return e;var r=Wu(e)+">"+Wu(t),n=he.get(r);if(n)return n;var i=Li(33554432);return i.baseType=e,i.substitute=t,he.set(r,i),i}function _u(e){return 179===e.kind&&1===e.elements.length}function pu(e,t,r){return _u(t)&&_u(r)?pu(e,t.elements[0],r.elements[0]):Rl(ld(t))===e?ld(r):void 0}function fu(t,r){for(var n;r&&!e.isStatement(r)&&311!==r.kind;){var i=r.parent;if(184===i.kind&&r===i.trueType){var a=pu(t,i.checkType,i.extendsType);a&&(n=e.append(n,a))}r=i}return n?du(t,al(e.append(n,t))):t}function gu(e){return!!(4194304&e.flags)&&(173===e.kind||195===e.kind)}function mu(t,r){return!t.typeArguments||(_n(t,e.Diagnostics.Type_0_is_not_generic,r?oa(r):t.typeName?e.declarationNameToString(t.typeName):u),!1)}function yu(t){if(e.isIdentifier(t.typeName)){var r=t.typeArguments;switch(t.typeName.escapedText){case"String":return mu(t),Le;case"Number":return mu(t),Re;case"Boolean":return mu(t),Ue;case"Void":return mu(t),qe;case"Undefined":return mu(t),Pe;case"Null":return mu(t),Oe;case"Function":case"function":return mu(t),Dt;case"array":return r&&r.length||$?void 0:Nt;case"promise":return r&&r.length||$?void 0:Qv(Ee);case"Object":if(r&&2===r.length){if(e.isJSDocIndexSignature(t)){var n=ld(r[0]),i=Gc(ld(r[1]),!1);return Vi(void 0,A,e.emptyArray,e.emptyArray,n===Le?i:void 0,n===Re?i:void 0)}return Ee}return mu(t),$?void 0:Ee}}}function vu(t){var r=Tn(t);if(!r.resolvedType){if(e.isConstTypeReference(t)&&e.isAssertionExpression(t.parent))return r.resolvedSymbol=be,r.resolvedType=Nh(t.parent.expression);var n=void 0,i=void 0,a=788968;gu(t)&&((i=yu(t))||((n=uu(cu(t),a,!0))===be?n=uu(cu(t),900095):uu(cu(t),a),i=lu(t,n))),i||(i=lu(t,n=uu(cu(t),a))),r.resolvedSymbol=n,r.resolvedType=i}return r.resolvedType}function hu(t){return e.map(t.typeArguments,ld)}function Du(e){var t=Tn(e);return t.resolvedType||(t.resolvedType=nd(Ip(Gh(e.exprName)))),t.resolvedType}function xu(t,r){function n(e){for(var t=0,r=e.declarations;t=0)return ol(e.map(r,(function(e,r){return 8&t.elementFlags[r]?e:Ne})))?eg(r[o],(function(n){return Uu(t,e.replaceElement(r,o,n))})):ke;if(e.findIndex(r,(function(e,r){return!(!(8&t.elementFlags[r])||58982400&e.flags||Ls(e))}))<0)return tu(t,r);for(var s,c=[],u=[],l=[],d=-1,_=function(o){var s=r[o],c=t.elementFlags[o];8&c?58982400&s.flags||Ls(s)?g(s,8,null===(n=t.labeledElementDeclarations)||void 0===n?void 0:n[o]):ap(s)?e.forEach(iu(s),(function(e,t){var r;return g(e,s.target.elementFlags[t],null===(r=s.target.labeledElementDeclarations)||void 0===r?void 0:r[t])})):g(H_(s)&&yc(s,1)||ke,4,null===(i=t.labeledElementDeclarations)||void 0===i?void 0:i[o]):g(s,c,null===(a=t.labeledElementDeclarations)||void 0===a?void 0:a[o])},p=0;p=0){for(var n=d;ni.fixedLength?function(e){var t=cp(e);return t&&Iu(t)}(t)||Ju(e.emptyArray):Ju(iu(t).slice(r,a),i.elementFlags.slice(r,a),!1,i.labeledElementDeclarations&&i.labeledElementDeclarations.slice(r,a))}function qu(t){return $u(e.append(e.arrayOf(t.target.fixedLength,(function(e){return ad(""+e)})),pl(t.target.readonly?Et:St)))}function Wu(e){return e.id}function Hu(t,r){return e.binarySearch(t,r,Wu,e.compareValues)>=0}function Gu(t,r){var n=e.binarySearch(t,r,Wu,e.compareValues);return n<0&&(t.splice(~n,0,r),!0)}function Yu(t,r,n){var i=n.flags;if(1048576&i)return Xu(t,r,n.types);if(!(131072&i))if(r|=205258751&i,469499904&i&&(r|=262144),n===Te&&(r|=8388608),!G&&98304&i)524288&e.getObjectFlags(n)||(r|=4194304);else{var a=t.length,o=a&&n.id>t[a-1].id?~a:e.binarySearch(t,n,Wu,e.compareValues);o<0&&t.splice(~o,0,n)}return r}function Xu(e,t,r){for(var n=0,i=r;n0;)for(var o=t[--i],s=0,c=t;s(r?25e6:1e6))return e.tracing.instant("check","removeSubtypes_DepthLimit",{typeIds:t.map((function(e){return e.id}))}),_n(d,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1;if(a++,v_(o,u,nn)&&(!(1&e.getObjectFlags(go(o)))||!(1&e.getObjectFlags(go(u)))||Xd(o,u))){e.orderedRemoveItemAt(t,i);break}}}return!0}function $u(t,r,n,i){if(void 0===r&&(r=1),0===t.length)return We;if(1===t.length)return t[0];var a=[],o=Xu(a,0,t);if(0!==r){if(3&o)return 1&o?8388608&o?Te:Ee:Ne;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||id(i)&&Hu(t,i.regularType))&&e.orderedRemoveItemAt(t,n)}}(a,o),128&o&&134217728&o&&function(t){var r=e.filter(t,El);if(r.length)for(var n=t.length,i=function(){n--;var i=t[n];128&i.flags&&e.some(r,(function(e){return Gd(i,e)}))&&e.orderedRemoveItemAt(t,n)};n>0;)i()}(a);break;case 2:if(!Qu(a,!(262144&o)))return ke}if(0===a.length)return 65536&o?4194304&o?Oe:Me:32768&o?4194304&o?Pe:we:We}return el(a,(469647395&o?0:262144)|(2097152&o?268435456:0),n,i)}function Zu(e,t){return e.kind===t.kind&&e.parameterIndex===t.parameterIndex}function el(e,t,r,n){if(0===e.length)return We;if(1===e.length)return e[0];var i=Zc(e),a=pe.get(i);return a||(a=Li(1048576),pe.set(i,a),a.objectFlags=t|eu(e,98304),a.types=e,a.aliasSymbol=r,a.aliasTypeArguments=n),a}function tl(e,t,r){var n=r.flags;return 2097152&n?rl(e,t,r.types):(f_(r)?16777216&t||(t|=16777216,e.set(r.id.toString(),r)):(3&n?r===Te&&(t|=8388608):!G&&98304&n||e.has(r.id.toString())||(109440&r.flags&&109440&t&&(t|=67108864),e.set(r.id.toString(),r)),t|=205258751&n),t)}function rl(e,t,r){for(var n=0,i=r;n0;){var i=t[--r];if(134217728&i.flags)for(var a=0,o=n;a0;){var i=t[--n];(4&i.flags&&128&r||8&i.flags&&256&r||64&i.flags&&2048&r||4096&i.flags&&8192&r)&&e.orderedRemoveItemAt(t,n)}}(o,a),16777216&a&&524288&a&&e.orderedRemoveItemAt(o,e.findIndex(o,f_)),0===o.length)return Ne;if(1===o.length)return o[0];var s=Zc(o),c=fe.get(s);if(!c){if(1048576&a)if(function(t){var r,n=e.findIndex(t,(function(t){return!!(262144&e.getObjectFlags(t))}));if(n<0)return!1;for(var i=n+1;i=1e5)||(e.tracing.instant("check","checkCrossProductUnion_DepthLimit",{typeIds:t.map((function(e){return e.id})),size:r}),_n(d,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1)}function sl(e,t){var r=Li(4194304);return r.type=e,r.stringsOnly=t,r}function cl(t){return!(!t||!(16777216&t.flags&&!t.root.isDistributive||137363456&t.flags&&e.some(t.types,cl)||272629760&t.flags&&cl(t.type)||8388608&t.flags&&cl(t.indexType)||33554432&t.flags&&cl(t.substitute)))}function ul(t){return e.isPrivateIdentifier(t)?We:e.isIdentifier(t)?ad(e.unescapeLeadingUnderscores(t.escapedText)):nd(e.isComputedPropertyName(t)?bm(t):Gh(t))}function ll(t,r){if(!(24&e.getDeclarationModifierFlagsFromSymbol(t))){var n=Cn(as(t)).nameType;if(!n&&!e.isKnownSymbol(t))if("default"===t.escapedName)n=ad("default");else{var i=t.valueDeclaration&&e.getNameOfDeclaration(t.valueDeclaration);n=i&&ul(i)||ad(e.symbolName(t))}if(n&&n.flags&r)return n}return We}function dl(t,r){return $u(e.map(Ks(t),(function(e){return ll(e,r)})))}function _l(e){var t=mc(e,1);return t!==fr?t:void 0}function pl(t,r,n){return void 0===r&&(r=ee),1048576&(t=oc(t)).flags?al(e.map(t.types,(function(e){return pl(e,r,n)}))):2097152&t.flags?$u(e.map(t.types,(function(e){return pl(e,r,n)}))):58982400&t.flags||op(t)||Ls(t)&&cl(As(t))?function(e,t){return t?e.resolvedStringIndexType||(e.resolvedStringIndexType=sl(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=sl(e,!1))}(t,r):32&e.getObjectFlags(t)?function(e,t){var r=$f(ks(e),(function(e){return!(t&&5&e.flags)})),n=e.declaration.nameType&&ld(e.declaration.nameType);return n?eg(r,(function(t){return Md(n,Ed(e.mapper,Ts(e),t))})):r}(t,n):t===Te?Te:2&t.flags?We:131073&t.flags?Ze:r?!n&&mc(t,0)?Le:dl(t,128):!n&&mc(t,0)?$u([Le,Re,dl(t,8192)]):_l(t)?$u([Re,dl(t,8320)]):dl(t,8576)}function fl(t){if(ee)return t;var r=Zt||(Zt=Su("Extract",524288,e.Diagnostics.Cannot_find_global_type_0));return r?su(r,[t,Le]):Le}function gl(t,r){var n=e.findIndex(r,(function(e){return!!(1179648&e.flags)}));if(n>=0)return ol(r)?eg(r[n],(function(i){return gl(t,e.replaceElement(r,n,i))})):ke;if(e.contains(r,Te))return Te;var i=[],a=[],o=t[0];if(!function e(t,r){for(var n=0;n=0){if(o&&Qf(r,(function(e){return!e.target.hasRestElement}))&&!(8&s)){var g=bl(o);ap(r)?_n(g,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,ca(r),au(r),e.unescapeLeadingUnderscores(_)):_n(g,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(_),ca(r))}return b(mc(r,1)),eg(r,(function(e){var t=cp(e)||Pe;return c?$u([t,Pe]):t}))}}if(!(98304&n.flags)&&yh(n,402665900)){if(131073&r.flags)return r;var m=mc(r,0),y=yh(n,296)&&mc(r,1)||m;if(y)return 1&s&&y===m?void(d&&_n(d,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,ca(n),ca(t))):o&&!yh(n,12)?(_n(g=bl(o),e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,ca(n)),c?$u([y.type,Pe]):y.type):(b(y),c?$u([y.type,Pe]):y.type);if(131072&n.flags)return We;if(vl(r))return Ee;if(d&&!hh(r)){if(r.symbol===oe&&void 0!==_&&oe.exports.has(_)&&418&oe.exports.get(_).flags)_n(d,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(_),ca(r));else if($&&!V.suppressImplicitAnyIndexErrors&&!a)if(void 0!==_&&my(_,r))_n(d,e.Diagnostics.Property_0_is_a_static_member_of_type_1,_,ca(r));else if(yc(r,1))_n(d.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var v=void 0;if(void 0!==_&&(v=hy(_,r)))void 0!==v&&_n(d.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,_,ca(r),v);else{var h=function(t,r,n){function i(e){var r=js(t,e);if(r){var i=jy(po(r));return!!i&&zv(i)>=1&&Yd(n,Bv(i,0))}return!1}var a=e.isAssignmentTarget(r)?"set":"get";if(!i(a))return;var o=e.tryGetPropertyAccessOrIdentifierToString(r.expression);void 0===o?o=a:o+="."+a;return o}(r,d,n);if(void 0!==h)_n(d,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,ca(r),h);else{var D=void 0;if(1024&n.flags)D=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+ca(n)+"]",ca(r));else if(8192&n.flags){var x=li(n.symbol,d);D=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+x+"]",ca(r))}else 128&n.flags||256&n.flags?D=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,ca(r)):12&n.flags&&(D=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,ca(n),ca(r)));D=e.chainDiagnosticMessages(D,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,ca(i),ca(r)),$r.add(e.createDiagnosticForNodeFromMessageChain(d,D))}}}return}}if(vl(r))return Ee;if(o){g=bl(o);384&n.flags?_n(g,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+n.value,ca(r)):12&n.flags?_n(g,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,ca(r),ca(n)):_n(g,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,ca(n))}return Aa(n)?n:void 0;function b(t){t&&t.isReadonly&&d&&(e.isAssignmentTarget(d)||e.isDeleteTarget(d))&&_n(d,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,ca(r))}}function bl(e){return 202===e.kind?e.argumentExpression:189===e.kind?e.indexType:158===e.kind?e.expression:e}function Sl(e){return-1!==tt.types.indexOf(e)||!!(1&e.flags)}function El(t){return!!(134217728&t.flags)&&e.every(t.types,Sl)}function Cl(t){return 3145728&t.flags?(4194304&t.objectFlags||(t.objectFlags|=4194304|(e.some(t.types,Cl)?8388608:0)),!!(8388608&t.objectFlags)):!!(58982400&t.flags)||Ls(t)||op(t)}function Tl(t){return 3145728&t.flags?(16777216&t.objectFlags||(t.objectFlags|=16777216|(e.some(t.types,Tl)?33554432:0)),!!(33554432&t.objectFlags)):!!(465829888&t.flags)&&!El(t)}function kl(e){return!!(262144&e.flags&&e.isThisType)}function Al(t,r){return 8388608&t.flags?function(t,r){var n=r?"simplifiedForWriting":"simplifiedForReading";if(t[n])return t[n]===dt?t:t[n];t[n]=dt;var i=function(e){if(33554432&e.flags)return e.substitute;return e}(Al(t.objectType,r)),a=Al(t.indexType,r),o=function(t,r,n){if(1048576&r.flags){var i=e.map(r.types,(function(e){return Al(wl(t,e),n)}));return n?al(i):$u(i)}}(i,a,r);if(o)return t[n]=o;if(!(465829888&a.flags)){var s=Fl(i,a,r);if(s)return t[n]=s}if(op(i)&&296&a.flags){var c=lp(i,8&a.flags?0:i.target.fixedLength,0,r);if(c)return t[n]=c}if(Ls(i))return t[n]=eg(Pl(i,t.indexType),(function(e){return Al(e,r)}));return t[n]=t}(t,r):16777216&t.flags?function(e,t){var r=e.checkType,n=e.extendsType,i=jl(e),a=Jl(e);if(131072&a.flags&&Rl(i)===Rl(r)){if(1&r.flags||Yd(Rd(r),Rd(n)))return Al(i,t);if(Nl(r,n))return We}else if(131072&i.flags&&Rl(a)===Rl(r)){if(!(1&r.flags)&&Yd(Rd(r),Rd(n)))return We;if(1&r.flags||Nl(r,n))return Al(a,t)}return e}(t,r):t}function Fl(t,r,n){if(3145728&t.flags){var i=e.map(t.types,(function(e){return Al(wl(e,r),n)}));return 2097152&t.flags||n?al(i):$u(i)}}function Nl(e,t){return!!(131072&$u([ys(e,t),We]).flags)}function Pl(e,t){var r=gd([Ts(e)],[t]),n=xd(e.mapper,r);return Md(Fs(e),n)}function wl(e,t,r,n,i,a,o){return void 0===o&&(o=0),Ol(e,t,r,n,o,i,a)||(n?ke:Ne)}function Il(e,t){return Qf(e,(function(e){if(384&e.flags){var r=ts(e);if(xm(r)){var n=+r;return n>=0&&n=5e6)return e.tracing.instant("check","instantiateType_DepthLimit",{typeId:t.id,instantiationDepth:C,instantiationCount:b}),_n(d,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),ke;x++,b++,C++;var n=function(t,r){var n=t.flags;if(262144&n)return md(t,r);if(524288&n){var i=t.objectFlags;if(52&i){if(4&i&&!t.node){var a=t.resolvedTypeArguments,o=pd(a,r);return o!==a?zu(t.target,o):t}return function(t,r){var n=4&t.objectFlags?t.node:t.symbol.declarations[0],i=Tn(n),a=4&t.objectFlags?i.resolvedType:64&t.objectFlags?t.target:t,o=i.outerTypeParameters;if(!o){var s=vo(n,!0);if(hv(n)){var c=hc(n);s=e.addRange(s,c)}o=s||e.emptyArray,o=(4&a.objectFlags||2048&a.symbol.flags)&&!a.aliasTypeArguments?e.filter(o,(function(e){return Ad(e,n)})):o,i.outerTypeParameters=o}if(o.length){var u=xd(t.mapper,r),l=e.map(o,(function(e){return md(e,u)})),d=Zc(l);a.instantiations||(a.instantiations=new e.Map,a.instantiations.set(Zc(o),a));var _=a.instantiations.get(d);if(!_){var p=gd(o,l);_=4&a.objectFlags?nu(t.target,t.node,p):32&a.objectFlags?Nd(a,p):Id(a,p),a.instantiations.set(d,_)}return _}return t}(t,r)}return t}if(3145728&n){var s=t.types,c=pd(s,r);return c===s?t:2097152&n?al(c,t.aliasSymbol,pd(t.aliasTypeArguments,r)):$u(c,1,t.aliasSymbol,pd(t.aliasTypeArguments,r))}if(4194304&n)return pl(Md(t.type,r));if(134217728&n)return gl(t.texts,pd(t.types,r));if(268435456&n)return yl(t.symbol,Md(t.type,r));if(8388608&n)return wl(Md(t.objectType,r),Md(t.indexType,r),t.noUncheckedIndexedAccessCandidate,void 0,t.aliasSymbol,pd(t.aliasTypeArguments,r));if(16777216&n)return Od(t,xd(t.mapper,r));if(33554432&n){var u=Md(t.baseType,r);if(8650752&u.flags)return du(u,Md(t.substitute,r));var l=Md(t.substitute,r);return 3&l.flags||Yd(Rd(u),Rd(l))?u:l}return t}(t,r);return C--,n}function Ld(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=Md(e,nt))}function Rd(e){return 262143&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=Md(e,rt),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function Bd(e,t){return e&&Gc(Md(e.type,t),e.isReadonly,e.declaration)}function jd(t){switch(e.Debug.assert(165!==t.kind||e.isObjectLiteralMethod(t)),t.kind){case 208:case 209:case 165:case 251:return Jd(t);case 200:return e.some(t.properties,jd);case 199:return e.some(t.elements,jd);case 217:return jd(t.whenTrue)||jd(t.whenFalse);case 216:return(56===t.operatorToken.kind||60===t.operatorToken.kind)&&(jd(t.left)||jd(t.right));case 288:return jd(t.initializer);case 207:return jd(t.expression);case 281:return e.some(t.properties,jd)||e.isJsxOpeningElement(t.parent)&&e.some(t.parent.parent.children,jd);case 280:var r=t.initializer;return!!r&&jd(r);case 283:var n=t.expression;return!!n&&jd(n)}return!1}function Jd(t){return(!e.isFunctionDeclaration(t)||e.isInJSFile(t)&&!!Ma(t))&&(Kd(t)||function(t){return!t.typeParameters&&!e.getEffectiveReturnTypeNode(t)&&!!t.body&&230!==t.body.kind&&jd(t.body)}(t))}function Kd(t){if(!t.typeParameters){if(e.some(t.parameters,(function(t){return!e.getEffectiveTypeAnnotationNode(t)})))return!0;if(209!==t.kind){var r=e.firstOrUndefined(t.parameters);if(!r||!e.parameterIsThisKeyword(r))return!0}}return!1}function zd(t){return(e.isInJSFile(t)&&e.isFunctionDeclaration(t)||pm(t)||e.isObjectLiteralMethod(t))&&Jd(t)}function Ud(t){if(524288&t.flags){var r=Rs(t);if(r.constructSignatures.length||r.callSignatures.length){var n=ji(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 al(e.map(t.types,Ud));return t}function Vd(e,t){return v_(e,t,sn)}function qd(e,t){return v_(e,t,sn)?-1:0}function Wd(e,t){return v_(e,t,an)?-1:0}function Hd(e,t){return v_(e,t,rn)?-1:0}function Gd(e,t){return v_(e,t,rn)}function Yd(e,t){return v_(e,t,an)}function Xd(t,r){return 1048576&t.flags?e.every(t.types,(function(e){return Xd(e,r)})):1048576&r.flags?e.some(r.types,(function(e){return Xd(t,e)})):58982400&t.flags?Xd(Gs(t)||Ne,r):r===ht?!!(67633152&t.flags):r===Dt?!!(524288&t.flags)&&Pf(t):mo(t,go(r))||U_(r)&&!V_(r)&&Xd(t,Et)}function Qd(e,t){return v_(e,t,on)}function $d(e,t){return Qd(e,t)||Qd(t,e)}function Zd(e,t,r,n,i,a){return x_(e,t,an,r,n,i,a)}function e_(e,t,r,n,i,a){return t_(e,t,an,r,n,i,a,void 0)}function t_(e,t,r,n,i,a,o,s){return!!v_(e,t,r)||(!n||!n_(i,e,t,r,a,o,s))&&x_(e,t,r,n,a,o,s)}function r_(t){return!!(16777216&t.flags||2097152&t.flags&&e.some(t.types,r_))}function n_(t,r,i,a,s,c,u){if(!t||r_(i))return!1;if(!x_(r,i,a,void 0)&&function(t,r,n,i,a,o,s){for(var c=pc(r,0),u=pc(r,1),l=0,d=[u,c];l1,v=$f(g,X_),h=$f(g,(function(e){return!X_(e)}));if(y){if(v!==We){var D=Ju(Nm(d,0));l=o_(function(t,r){var n,i,a,s,c;return o(this,(function(o){switch(o.label){case 0:if(!e.length(t.children))return[2];n=0,i=0,o.label=1;case 1:return iu:zv(t)>u))return 0;t.typeParameters&&t.typeParameters!==r.typeParameters&&(t=zy(t,r=Uc(r),void 0,s));var l=Kv(t),d=qv(t),_=qv(r);if((d||_)&&Md(d||_,c),d&&_&&l!==u)return 0;var p=r.declaration?r.declaration.kind:0,f=!(3&n)&&Y&&165!==p&&164!==p&&166!==p,g=-1,m=Ic(t);if(m&&m!==qe){var y=Ic(r);if(y){if(!(S=!f&&s(m,y,!1)||s(y,m,i)))return i&&a(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;g&=S}}for(var v=d||_?Math.min(l,u):Math.max(l,u),h=d||_?v-1:-1,D=0;D=zv(t)&&D0||wb(c));if(f&&!function(e,t,r){for(var n=0,i=Ks(e);n0&&B(Mc(g[0]),u,!1)||y.length>0&&B(Mc(y[0]),u,!1)?M(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,ca(c),ca(u)):M(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,ca(c),ca(u))}return 0}var v=0,h=w();if(1048576&c.flags?v=i===on?K(c,u,n&&!(131068&c.flags),s):function(e,t,r,n){for(var i=-1,a=e.types,o=0;o0;if(d&&x--,524288&i.flags&&524288&s.flags){var _=l;R(i,s,n),l!==_&&(d=!!l)}if(524288&i.flags&&131068&s.flags)!function(t,r){var n=da(t.symbol)?ca(t,t.symbol.valueDeclaration):ca(t),i=da(r.symbol)?ca(r,r.symbol.valueDeclaration):ca(r);(Ct===t&&Le===r||Tt===t&&Re===r||kt===t&&Ue===r||Tu(!1)===t&&Ve===r)&&M(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,i,n)}(i,s);else if(i.symbol&&524288&i.flags&&ht===i)M(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(u&&2097152&s.flags){var p=s.types,f=Im(N.IntrinsicAttributes,a),g=Im(N.IntrinsicClassAttributes,a);if(f!==ke&&g!==ke&&(e.contains(p,f)||e.contains(p,g)))return c}else l=lc(l,r);if(!o&&d)return m=[i,s],c;L(o,i,s)}}}function j(e,t){for(var r=-1,n=0,i=e.types;n25)return e.tracing.instant("check","typeRelatedToDiscriminatedType_DepthLimit",{sourceId:t.id,targetId:r.id,numCombinations:a}),0}for(var c=new Array(n.length),u=new e.Set,l=0;l5?M(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,ca(t),ca(n),e.map(m.slice(0,4),(function(e){return oa(e)})).join(", "),m.length-4):M(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,ca(t),ca(n),e.map(m,(function(e){return oa(e)})).join(", ")),s&&l&&x++)}function X(t,r,n,a,o){if(i===sn)return function(e,t,r){if(!(524288&e.flags&&524288&t.flags))return 0;var n=W(Bs(e),r),i=W(Bs(t),r);if(n.length!==i.length)return 0;for(var a=-1,o=0,s=n;o0||pc(t,n=1).length>0)return e.find(r.types,(function(e){return pc(e,n).length>0}))}(t,r)||function(t,r){for(var n,i=0,a=0,o=r.types;a=i&&(n=s,i=u)}else $_(c)&&1>=i&&(n=s,i=1)}return n}(t,r)}function E_(t,r,n,i,a){for(var o=t.types.map((function(e){})),s=0,c=r;s0&&e.every(r.properties,(function(e){return!!(16777216&e.flags)}))}return!!(2097152&t.flags)&&e.every(t.types,C_)}function T_(t,r,n){var i=tu(t,e.map(t.typeParameters,(function(e){return e===r?n:e})));return i.objectFlags|=8192,i}function k_(e){var t=Cn(e);return A_(t.typeParameters,t,(function(r,n,i){var a=su(e,pd(t.typeParameters,yd(n,i)));return a.aliasTypeArgumentsContainsMarker=!0,a}))}function A_(t,r,n){var i,a,o;void 0===t&&(t=e.emptyArray);var s=r.variances;if(!s){e.tracing.push("check","getVariancesWorker",{arity:t.length,id:null!==(o=null!==(i=r.id)&&void 0!==i?i:null===(a=r.declaredType)||void 0===a?void 0:a.id)&&void 0!==o?o:-1}),r.variances=e.emptyArray,s=[];for(var c=function(e){var t=!1,i=!1,a=sr;sr=function(e){return e?i=!0:t=!0};var o=n(r,e,pt),c=n(r,e,ft),u=(Yd(c,o)?1:0)|(Yd(o,c)?2:0);3===u&&Yd(n(r,e,cr),o)&&(u=4),sr=a,(t||i)&&(t&&(u|=8),i&&(u|=16)),s.push(u)},u=0,l=t;u":n+="-"+o.id}return n}function I_(e,t,r,n){if(n===sn&&e.id>t.id){var i=e;e=t,t=i}var a=r?":"+r:"";if(P_(e)&&P_(t)){var o=[];return w_(e,o)+","+w_(t,o)+a}return e.id+","+t.id+a}function O_(t,r){if(!(6&e.getCheckFlags(t)))return r(t);for(var n=0,i=t.containingType.types;n=5){var n=B_(e);if(n)for(var i=0,a=0;a=5)return!0}return!1}function B_(t){if(524288&t.flags&&!df(t)){if(e.getObjectFlags(t)&&t.node)return t.node;if(t.symbol&&!(16&e.getObjectFlags(t)&&32&t.symbol.flags))return t.symbol;if(ap(t))return t.target}if(8388608&t.flags){do{t=t.objectType}while(8388608&t.flags);return t}if(16777216&t.flags)return t.root}function j_(e,t){return 0!==J_(e,t,qd)}function J_(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(qx(t)!==qx(r))return 0}else if((16777216&t.flags)!=(16777216&r.flags))return 0;return dh(t)!==dh(r)?0:n(po(t),po(r))}function K_(t,r,n,i,a,o){if(t===r)return-1;if(!function(e,t,r){var n=Kv(e),i=Kv(t),a=zv(e),o=zv(t),s=Uv(e),c=Uv(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=gd(t.typeParameters,r.typeParameters),c=0;c-1&&(Pn(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 fn($,t,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,s,e.declarationNameToString(o.name))}a=t.dotDotDotToken?$?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:$?e.Diagnostics.Parameter_0_implicitly_has_an_1_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 198:if(a=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!$)return;break;case 308:return void _n(t,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);case 251:case 165:case 164:case 167:case 168:case 208:case 209:if($&&!t.name)return void _n(t,3===n?e.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);a=$?3===n?e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 190:return void($&&_n(t,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:a=$?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}fn($,t,a,e.declarationNameToString(e.getNameOfDeclaration(t)),i)}}function Rp(t,r,n){!(i&&$&&524288&e.getObjectFlags(r))||n&&fm(t)||Mp(r)||Lp(t,r,n)}function Bp(e,t,r){var n=Kv(e),i=Kv(t),a=Vv(e),o=Vv(t),s=o?i-1:i,c=a?s:Math.min(n,s),u=Ic(e);if(u){var l=Ic(t);l&&r(u,l)}for(var d=0;d0?c.indexOf(d,u):u0)for(var b=0,S=r;be.target.minLength||!t.target.hasRestElement&&(e.target.hasRestElement||t.target.fixedLength0&&4&t.target.elementFlags[s-1]?iu(t)[s-1]:void 0,m=12&r.target.combinedFlags?p?up(r):Math.min(up(t),up(r)):0,y=p?0:m;for(d=0;d<_;d++)f(iu(t)[d],u[d]);if(p&&s-_==1)for(d=_;d1){var r=e.filter(t,df);if(r.length){var n=$u(r,2);return e.concatenate(e.filter(t,(function(e){return!df(e)})),[n])}}return t}(t.candidates),i=function(e){var t=Us(e);return!!t&&mh(16777216&t.flags?qs(t):t,406978556)}(t.typeParameter),a=!i&&t.topLevel&&(t.isFixed||!Yp(Mc(r),t.typeParameter)),o=i?e.sameMap(n,nd):a?e.sameMap(n,tp):n;return Ip(208&t.priority?$u(o,2):function(t){if(!G)return z_(t);var r=e.filter(t,(function(e){return!(98304&e.flags)}));return r.length?yp(z_(r),98304&_p(t)):$u(t,2)}(o))}function ff(t,r){var n=t.inferences[r];if(!n.inferredType){var i=void 0,a=t.signature;if(a){var o=n.candidates?pf(n,a):void 0;if(n.contraCandidates){var s=_f(n);i=!o||131072&o.flags||!Gd(o,s)?s:o}else if(o)i=o;else if(1&t.flags)i=He;else{var c=Zs(n.typeParameter);c&&(i=Md(c,bd(function(t,r){return vd((function(n){return e.findIndex(t.inferences,(function(e){return e.typeParameter===n}))>=r?Ne:n}))}(t,r),t.nonFixingMapper)))}}else i=tf(n);n.inferredType=i||gf(!!(2&t.flags));var u=Us(n.typeParameter);if(u){var l=Md(u,t.nonFixingMapper);i&&t.compareTypes(i,os(l,i))||(n.inferredType=i=l)}}return n.inferredType}function gf(e){return e?Ee:Ne}function mf(e){for(var t=[],r=0;r=0&&r.parameterIndex=n&&c-1){var l=a.filter((function(e){return void 0!==e})),d=c=2||0==(34&r.flags)||e.isSourceFile(r.valueDeclaration)||287===r.valueDeclaration.parent.kind)return;var n=e.getEnclosingBlockScopeContainer(r.valueDeclaration),i=function(t,r){return!!e.findAncestor(t,(function(t){return t===r?"quit":e.isFunctionLike(t)}))}(t.parent,n),a=n,o=!1;for(;a&&!e.nodeStartsNewLexicalEnvironment(a);){if(e.isIterationStatement(a,!1)){o=!0;break}a=a.parent}if(o){if(i){var s=!0;if(e.isForStatement(n))if((d=e.getAncestor(r.valueDeclaration,250))&&d.parent===n){var c=function(t,r){return e.findAncestor(t,(function(e){return e===r?"quit":e===r.initializer||e===r.condition||e===r.incrementor||e===r.statement}))}(t.parent,n);if(c){var u=Tn(c);u.flags|=131072;var l=u.capturedBlockScopeBindings||(u.capturedBlockScopeBindings=[]);e.pushIfUnique(l,r),c===n.initializer&&(s=!1)}}s&&(Tn(a).flags|=65536)}var d;if(e.isForStatement(n))(d=e.getAncestor(r.valueDeclaration,250))&&d.parent===n&&function(t,r){var n=t;for(;207===n.parent.kind;)n=n.parent;var i=!1;if(e.isAssignmentTarget(n))i=!0;else if(214===n.parent.kind||215===n.parent.kind){var a=n.parent;i=45===a.operator||46===a.operator}if(!i)return!1;return!!e.findAncestor(n,(function(e){return e===r?"quit":e===r.statement}))}(t,n)&&(Tn(r.valueDeclaration).flags|=4194304);Tn(r.valueDeclaration).flags|=524288}i&&(Tn(r.valueDeclaration).flags|=262144)}(t,r);var s=Ag(po(i),t),c=e.getAssignmentTargetKind(t);if(c){if(!(3&i.flags||e.isInJSFile(t)&&512&i.flags))return _n(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,oa(r)),ke;if(dh(i))return 3&i.flags?_n(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,oa(r)):_n(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,oa(r)),ke}var u=2097152&i.flags;if(3&i.flags){if(1===c)return s}else{if(!u)return s;o=e.find(r.declarations,j)}if(!o)return s;for(var l=160===e.getRootDeclaration(o).kind,d=bg(o),_=bg(t),p=_!==d,f=t.parent&&t.parent.parent&&e.isSpreadAssignment(t.parent)&&jf(t.parent.parent),g=134217728&r.flags;_!==d&&(208===_.kind||209===_.kind||e.isObjectLiteralOrClassExpressionMethod(_))&&(Cg(i)||l&&!Sg(i));)_=bg(_);var m=l||u||p||f||g||e.isBindingElement(o)||s!==Ce&&s!==Pt&&(!G||0!=(16387&s.flags)||hf(t)||270===t.parent.kind)||225===t.parent.kind||249===o.kind&&o.exclamationToken||8388608&o.flags,y=xg(t,s,m?l?function(e,t){if(ba(t.symbol,2)){var r=G&&160===t.kind&&t.initializer&&32768&pp(e)&&!(32768&pp(Gh(t.initializer)));return Ca(),r?If(e,524288):e}return _o(t.symbol),e}(s,o):s:s===Ce||s===Pt?Pe:vp(s),_,!m);if(_g(t)||s!==Ce&&s!==Pt){if(!m&&!(32768&pp(s))&&32768&pp(y))return _n(t,e.Diagnostics.Variable_0_is_used_before_being_assigned,oa(r)),s}else if(y===Ce||y===Pt)return $&&(_n(e.getNameOfDeclaration(o),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,oa(r),ca(y)),_n(t,e.Diagnostics.Variable_0_implicitly_has_an_1_type,oa(r),ca(y))),XD(y);return c?ep(y):y}function Pg(e,t){(Tn(e).flags|=2,163===t.kind||166===t.kind)?Tn(t.parent).flags|=4:Tn(t).flags|=4}function wg(t){return e.isSuperCall(t)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,wg)}function Ig(e){return To(Jo(ki(e)))===Me}function Og(t,r,n){var i=r.parent;e.getClassExtendsHeritageElement(i)&&!Ig(i)&&t.flowNode&&!Dg(t.flowNode,!1)&&_n(t,n)}function Mg(t){var r=e.getThisContainer(t,!0),n=!1;switch(166===r.kind&&Og(t,r,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),209===r.kind&&(r=e.getThisContainer(r,!1),n=!0),r.kind){case 256:_n(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 255:_n(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 166:Rg(t,r)&&_n(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 163:case 162:!e.hasSyntacticModifier(r,32)||99===V.target&&V.useDefineForClassFields||_n(t,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 158:_n(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}n&&q<2&&Pg(t,r);var i=Lg(t,!0,r);if(Z){var a=po(oe);if(i===a&&n)_n(t,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!i){var o=_n(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(r)){var s=Lg(r);s&&s!==a&&e.addRelatedInfo(o,e.createDiagnosticForNode(r,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return i||Ee}function Lg(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)&&(!Vg(t)||e.getThisParameter(n))){var a=ao(n)||i&&function(t){var r=e.getJSDocType(t);if(r&&308===r.kind){var n=r;if(n.parameters.length>0&&n.parameters[0].name&&"this"===n.parameters[0].name.escapedText)return ld(n.parameters[0].type)}var i=e.getJSDocThisTag(t);if(i&&i.typeExpression)return ld(i.typeExpression)}(n);if(!a){var o=function(t){if(208===t.kind&&e.isBinaryExpression(t.parent)&&3===e.getAssignmentDeclarationKind(t.parent))return t.parent.left.expression.expression;if(165===t.kind&&200===t.parent.kind&&e.isBinaryExpression(t.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent))return t.parent.parent.left.expression;if(208===t.kind&&288===t.parent.kind&&200===t.parent.parent.kind&&e.isBinaryExpression(t.parent.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent.parent))return t.parent.parent.parent.left.expression;if(208===t.kind&&e.isPropertyAssignment(t.parent)&&e.isIdentifier(t.parent.name)&&("value"===t.parent.name.escapedText||"get"===t.parent.name.escapedText||"set"===t.parent.name.escapedText)&&e.isObjectLiteralExpression(t.parent.parent)&&e.isCallExpression(t.parent.parent.parent)&&t.parent.parent.parent.arguments[2]===t.parent.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent.parent))return t.parent.parent.parent.arguments[0].expression;if(e.isMethodDeclaration(t)&&e.isIdentifier(t.name)&&("value"===t.name.escapedText||"get"===t.name.escapedText||"set"===t.name.escapedText)&&e.isObjectLiteralExpression(t.parent)&&e.isCallExpression(t.parent.parent)&&t.parent.parent.arguments[2]===t.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent))return t.parent.parent.arguments[0].expression}(n);if(i&&o){var s=Gh(o).symbol;s&&s.members&&16&s.flags&&(a=Jo(s).thisType)}else hv(n)&&(a=Jo(Ti(n.symbol)).thisType);a||(a=Kg(n))}if(a)return xg(t,a)}if(e.isClassLike(n.parent)){var c=ki(n.parent);return xg(t,e.hasSyntacticModifier(n,32)?po(c):Jo(c).thisType)}if(e.isSourceFile(n)){if(n.commonJsModuleIndicator){var u=ki(n);return u&&po(u)}if(n.externalModuleIndicator)return Pe;if(r)return po(oe)}}function Rg(t,r){return!!e.findAncestor(t,(function(t){return e.isFunctionLikeDeclaration(t)?"quit":160===t.kind&&t.parent===r}))}function Bg(t){var r=203===t.parent.kind&&t.parent.expression===t,n=e.getSuperContainer(t,!0),i=n,a=!1;if(!r)for(;i&&209===i.kind;)i=e.getSuperContainer(i,!0),a=q<2;var o=0;if(!function(t){if(!t)return!1;if(r)return 166===t.kind;if(e.isClassLike(t.parent)||200===t.parent.kind)return e.hasSyntacticModifier(t,32)?165===t.kind||164===t.kind||167===t.kind||168===t.kind:165===t.kind||164===t.kind||167===t.kind||168===t.kind||163===t.kind||162===t.kind||166===t.kind;return!1}(i)){var s=e.findAncestor(t,(function(e){return e===i?"quit":158===e.kind}));return s&&158===s.kind?_n(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):r?_n(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):i&&i.parent&&(e.isClassLike(i.parent)||200===i.parent.kind)?_n(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):_n(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),ke}if(r||166!==n.kind||Og(t,i,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),o=e.hasSyntacticModifier(i,32)||r?512:256,Tn(t).flags|=o,165===i.kind&&e.hasSyntacticModifier(i,256)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?Tn(i).flags|=4096:Tn(i).flags|=2048),a&&Pg(t.parent,i),200===i.parent.kind)return q<2?(_n(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),ke):Ee;var c=i.parent;if(!e.getClassExtendsHeritageElement(c))return _n(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),ke;var u=Jo(ki(c)),l=u&&Ao(u)[0];return l?166===i.kind&&Rg(t,i)?(_n(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),ke):512===o?To(u):os(l,u.thisType):ke}function jg(t){return 4&e.getObjectFlags(t)&&t.target===Ft?iu(t)[0]:void 0}function Jg(t){return eg(t,(function(t){return 2097152&t.flags?e.forEach(t.types,jg):jg(t)}))}function Kg(t){if(209!==t.kind){if(zd(t)){var r=gm(t);if(r){var n=r.thisParameter;if(n)return po(n)}}var i=e.isInJSFile(t);if(Z||i){var a=function(e){return 165!==e.kind&&167!==e.kind&&168!==e.kind||200!==e.parent.kind?208===e.kind&&288===e.parent.kind?e.parent.parent:void 0:e.parent}(t);if(a){for(var o=am(a),s=a,c=o;c;){var u=Jg(c);if(u)return Md(u,Wp(um(a)));if(288!==s.parent.kind)break;c=am(s=s.parent.parent)}return Ip(o?hp(o):Nh(a))}var l=e.walkUpParenthesizedExpressions(t.parent);if(216===l.kind&&62===l.operatorToken.kind){var d=l.left;if(e.isAccessExpression(d)){var _=d.expression;if(i&&e.isIdentifier(_)){var p=e.getSourceFileOfNode(l);if(p.commonJsModuleIndicator&&vf(_)===p.symbol)return}return Ip(Nh(_))}}}}}function zg(t){var r=t.parent;if(zd(r)){var n=e.getImmediatelyInvokedFunctionExpression(r);if(n&&n.arguments){var i=Qy(n),a=r.parameters.indexOf(t);if(t.dotDotDotToken)return qy(i,a,i.length,Ee,void 0,0);var o=Tn(n),s=o.resolvedSignature;o.resolvedSignature=lr;var c=a=0?void 0:po(o);if(ap(t)){var s=cp(t);if(s&&xm(r)&&+r>=0)return s}return xm(r)&&Zg(t,1)||Zg(t,0)}var c}),!0)}function Zg(e,t){return eg(e,(function(e){return gc(e,t)}),!0)}function em(e,t){var r=am(e.parent,t);if(r){if(!es(e)){var n=$g(r,ki(e).escapedName);if(n)return n}return hm(e.name)&&Zg(r,1)||Zg(r,0)}}function tm(e,t){return e&&($g(e,""+t)||eg(e,(function(e){return lx(1,e,Pe,void 0,!1)}),!0))}function rm(t){var r=t.parent;return e.isJsxAttributeLike(r)?cm(t):e.isJsxElement(r)?function(t,r){var n=am(t.openingElement.tagName),i=Bm(Lm(t));if(n&&!Aa(n)&&i&&""!==i){var a=e.getSemanticJsxChildren(t.children),o=a.indexOf(r),s=$g(n,i);return s&&(1===a.length?s:eg(s,(function(e){return H_(e)?wl(e,ad(o)):e}),!0))}}(r,t):void 0}function nm(t){if(e.isJsxAttribute(t)){var r=am(t.parent);if(!r||Aa(r))return;return $g(r,t.name.escapedText)}return cm(t.parent)}function im(e){switch(e.kind){case 10:case 8:case 9:case 14:case 109:case 94:case 103:case 78:case 150:return!0;case 201:case 207:return im(e.expression);case 283:return!e.expression||im(e.expression)}return!1}function am(t,r){var n=om(e.isObjectLiteralMethod(t)?function(t,r){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!(16777216&t.flags))return em(t,r)}(t,r):cm(t,r),t,r);if(n&&!(r&&2&r&&8650752&n.flags)){var i=eg(n,tc,!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&&288===e.kind&&im(e.initializer)&&Tf(r,e.symbol.escapedName)})),(function(e){return[function(){return Gh(e.initializer)},e.symbol.escapedName]})),Yd,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&&280===e.kind&&Tf(r,e.symbol.escapedName)&&(!e.initializer||im(e.initializer))})),(function(e){return[e.initializer?function(){return Gh(e.initializer)}:function(){return Ke},e.symbol.escapedName]})),Yd,r)}(t,i)}return i}}function om(t,r,n){if(t&&mh(t,465829888)){var i=um(r);if(i&&e.some(i.inferences,Kh)){if(n&&1&n)return sm(t,i.nonFixingMapper);if(i.returnMapper)return sm(t,i.returnMapper)}}return t}function sm(t,r){return 465829888&t.flags?Md(t,r):1048576&t.flags?$u(e.map(t.types,(function(e){return sm(e,r)})),0):2097152&t.flags?al(e.map(t.types,(function(e){return sm(e,r)}))):t}function cm(t,r){if(16777216&t.flags);else{if(t.contextualType)return t.contextualType;var n=t.parent;switch(n.kind){case 249:case 160:case 163:case 162:case 198:return function(t,r){var n=t.parent;if(e.hasInitializer(n)&&t===n.initializer){var i=Ug(n);if(i)return i;if(!(8&r)&&e.isBindingPattern(n.name))return Qa(n.name,!0,!1)}}(t,r);case 209:case 242:return function(t){var r=e.getContainingFunction(t);if(r){var n=Wg(r);if(n){var i=e.getFunctionFlags(r);if(1&i){var a=mx(n,2&i?2:1,void 0);if(!a)return;n=a.returnType}if(2&i){var o=eg(n,vD);return o&&$u([o,$v(o)])}return n}}}(t);case 219:return function(t){var r=e.getContainingFunction(t);if(r){var n=e.getFunctionFlags(r),i=Wg(r);if(i)return t.asteriskToken?i:wx(0,i,0!=(2&n))}}(n);case 213:return function(e,t){var r=cm(e,t);if(r){var n=vD(r);return n&&$u([n,$v(n)])}}(n,r);case 203:if(99===n.expression.kind)return Le;case 204:return Hg(n,t);case 206:case 224:return e.isConstTypeReference(n.type)?function(t){if(e.isCallLikeExpression(t.parent))return Hg(t.parent,t);return}(n):ld(n.type);case 216:return Yg(t,r);case 288:case 289:return em(n,r);case 290:return am(n.parent,r);case 199:var i=n;return tm(am(i,r),e.indexOfNode(i.elements,t));case 217:return function(e,t){var r=e.parent;return e===r.whenTrue||e===r.whenFalse?cm(r,t):void 0}(t,r);case 228:return e.Debug.assert(218===n.parent.kind),function(e,t){if(205===e.parent.kind)return Hg(e.parent,t)}(n.parent,t);case 207:var a=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0;return a?ld(a.typeExpression.type):cm(n,r);case 283:return rm(n);case 280:case 282:return nm(n);case 275:case 274:return function(t,r){if(e.isJsxOpeningElement(t)&&t.parent.contextualType&&4!==r)return t.parent.contextualType;return Gg(t,0)}(n,r)}}}function um(t){var r=e.findAncestor(t,(function(e){return!!e.inferenceContext}));return r&&r.inferenceContext}function lm(t,r){return 0!==Hy(r)?function(e,t){var r=Hv(e,Ne);r=dm(t,Lm(t),r);var n=Im(N.IntrinsicAttributes,t);n!==ke&&(r=ys(n,r));return r}(t,r):function(t,r){var n=Lm(r),i=(o=n,Rm(N.ElementAttributesPropertyNameContainer,o)),a=void 0===i?Hv(t,Ne):""===i?Mc(t):function(e,t){if(e.unionSignatures){for(var r=[],n=0,i=e.unionSignatures;n=2)return tu(o,c=kc([s,n],o.typeParameters,2,e.isInJSFile(t)));if(e.length(o.aliasTypeArguments)>=2){var c=kc([s,n],o.aliasTypeArguments,2,e.isInJSFile(t));return su(o.aliasSymbol,c)}}return n}function _m(t,r){var n=pc(t,0);if(1===n.length){var i=n[0];if(!function(t,r){for(var n=0;n0&&(s=Ql(s,M(),t.symbol,g,l),o=[],a=e.createSymbolTable(),y=!1,v=!1),!Tm(A=oc(Gh(C.expression))))return _n(C,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),ke;i&&Pm(A,i,C),s=Ql(s,A,t.symbol,g,l),b=o.length;continue}e.Debug.assert(167===C.kind||168===C.kind),_b(C)}!k||8576&k.flags?a.set(T.escapedName,T):Yd(k,$e)&&(Yd(k,Re)?v=!0:y=!0,n&&(m=!0)),o.push(T)}if(u&&290!==t.parent.kind)for(var I=0,O=Ks(c);I0&&(s=Ql(s,M(),t.symbol,g,l),o=[],a=e.createSymbolTable(),y=!1,v=!1),eg(s,(function(e){return e===it?M():e}))):M();function M(){var r=y?Sm(t,b,o,0):void 0,i=v?Sm(t,b,o,1):void 0,s=Vi(t.symbol,a,e.emptyArray,e.emptyArray,r,i);return s.objectFlags|=1048704|g,f&&(s.objectFlags|=16384),m&&(s.objectFlags|=512),n&&(s.pattern=t),s}}function Tm(t){if(465829888&t.flags){var r=Gs(t);if(void 0!==r)return Tm(r)}return!!(126615553&t.flags||117632&pp(t)&&Tm(fp(t))||3145728&t.flags&&e.every(t.types,Tm))}function km(t){return!e.stringContains(t,"-")}function Am(t){return 78===t.kind&&e.isIntrinsicJsxName(t.escapedText)}function Fm(e,t){return e.initializer?Lh(e.initializer,t):Ke}function Nm(e,t){for(var r=[],n=0,i=e.children;n0&&(s=Ql(s,E(),i.symbol,l,!1),o=e.createSymbolTable()),Aa(m=oc(Nh(f.expression,r)))&&(c=!0),Tm(m)?(s=Ql(s,m,i.symbol,l,!1),a&&Pm(m,a,f)):n=n?al([n,m]):m}c||o.size>0&&(s=Ql(s,E(),i.symbol,l,!1));var v=273===t.parent.kind?t.parent:void 0;if(v&&v.openingElement===t&&v.children.length>0){var h=Nm(v,r);if(!c&&d&&""!==d){u&&_n(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(d));var D=am(t.attributes),x=D&&$g(D,d),b=mn(4,d);b.type=1===h.length?h[0]:x&&Xf(x,Y_)?Ju(h):Iu($u(h)),b.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores(d),void 0,void 0),e.setParent(b.valueDeclaration,i),b.valueDeclaration.symbol=b;var S=e.createSymbolTable();S.set(d,b),s=Ql(s,Vi(i.symbol,S,e.emptyArray,e.emptyArray,void 0,void 0),i.symbol,l,!1)}}return c?Ee:n&&s!==at?al([n,s]):n||(s===at?E():s);function E(){l|=te;var t=Vi(i.symbol,o,e.emptyArray,e.emptyArray,void 0,void 0);return t.objectFlags|=1048704|l,t}}(t.parent,r)}function Im(e,t){var r=Lm(t),n=r&&bi(r),i=n&&An(n,e,788968);return i?Jo(i):ke}function Om(t){var r=Tn(t);if(!r.resolvedSymbol){var n=Im(N.IntrinsicElements,t);if(n!==ke){if(!e.isIdentifier(t.tagName))return e.Debug.fail();var i=dc(n,t.tagName.escapedText);return i?(r.jsxFlags|=1,r.resolvedSymbol=i):yc(n,0)?(r.jsxFlags|=2,r.resolvedSymbol=n.symbol):(_n(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(t.tagName),"JSX."+N.IntrinsicElements),r.resolvedSymbol=be)}return $&&_n(t,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(N.IntrinsicElements)),r.resolvedSymbol=be}return r.resolvedSymbol}function Mm(t){var r=t&&e.getSourceFileOfNode(t),n=r&&Tn(r);if(!n||!1!==n.jsxImplicitImportContainer){if(n&&n.jsxImplicitImportContainer)return n.jsxImplicitImportContainer;var i=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(V,r),V);if(i){var a=gi(t,i,e.getEmitModuleResolutionKind(V)===e.ModuleResolutionKind.Classic?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations,t),o=a&&a!==be?Ti(ri(a)):void 0;return n&&(n.jsxImplicitImportContainer=o||!1),o}}}function Lm(e){var t=e&&Tn(e);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||!1!==t.jsxNamespace){var r=Mm(e);if(!r||r===be){var n=ln(e);r=Pn(e,n,1920,void 0,n,!1)}if(r){var i=ri(An(bi(ri(r)),N.JSX,1920));if(i&&i!==be)return t&&(t.jsxNamespace=i),i}t&&(t.jsxNamespace=!1)}var a=ri(Su(N.JSX,1920,void 0));return a!==be?a:void 0}function Rm(t,r){var n=r&&An(r.exports,t,788968),i=n&&Jo(n),a=i&&Ks(i);if(a){if(0===a.length)return"";if(1===a.length)return a[0].escapedName;a.length>1&&_n(n.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}function Bm(e){return Rm(N.ElementChildrenAttributeNameContainer,e)}function jm(t,r){if(4&t.flags)return[lr];if(128&t.flags){var n=Jm(t,r);return n?[gv(r,n)]:(_n(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,t.value,"JSX."+N.IntrinsicElements),e.emptyArray)}var i=tc(t),a=pc(i,1);return 0===a.length&&(a=pc(i,0)),0===a.length&&1048576&i.flags&&(a=gs(e.map(i.types,(function(e){return jm(e,r)})))),a}function Jm(t,r){var n=Im(N.IntrinsicElements,r);if(n!==ke){var i=t.value,a=dc(n,e.escapeLeadingUnderscores(i));if(a)return po(a);var o=yc(n,0);return o||void 0}return Ee}function Km(t){e.Debug.assert(Am(t.tagName));var r=Tn(t);if(!r.resolvedJsxElementAttributesType){var n=Om(t);return 1&r.jsxFlags?r.resolvedJsxElementAttributesType=po(n):2&r.jsxFlags?r.resolvedJsxElementAttributesType=yc(Jo(n),0):r.resolvedJsxElementAttributesType=ke}return r.resolvedJsxElementAttributesType}function zm(e){var t=Im(N.ElementClass,e);if(t!==ke)return t}function Um(e){return Im(N.Element,e)}function Vm(e){var t=Um(e);if(t)return $u([t,Oe])}function qm(t){var r,n=e.isJsxOpeningLikeElement(t);if(n&&function(t){xS(t,t.typeArguments);for(var r=new e.Map,n=0,i=t.attributes.properties;n=0)return d>=zv(n)&&(Uv(n)||ds)return!1;if(o||a>=c)return!0;for(var _=a;_=i&&r.length<=n}function jy(e){return Ky(e,0,!1)}function Jy(e){return Ky(e,0,!1)||Ky(e,1,!1)}function Ky(e,t,r){if(524288&e.flags){var n=Rs(e);if(r||0===n.properties.length&&!n.stringIndexInfo&&!n.numberIndexInfo){if(0===t&&1===n.callSignatures.length&&0===n.constructSignatures.length)return n.callSignatures[0];if(1===t&&1===n.constructSignatures.length&&0===n.callSignatures.length)return n.constructSignatures[0]}}}function zy(t,r,n,i){var a=Jp(t.typeParameters,t,0,i),o=Vv(r),s=n&&(o&&262144&o.flags?n.nonFixingMapper:n.mapper);return Bp(s?Td(r,s):r,t,(function(e,t){sf(a.inferences,e,t)})),n||jp(r,t,(function(e,t){sf(a.inferences,e,t,64)})),jc(t,mf(a),e.isInJSFile(r.declaration))}function Uy(t,r,n,i,a){if(e.isJsxOpeningLikeElement(t))return function(e,t,r,n){var i=lm(t,e),a=Fh(e.attributes,i,n,r);return sf(n.inferences,a,i),mf(n)}(t,r,i,a);if(161!==t.kind){var o=cm(t,e.every(r.typeParameters,(function(e){return!!Zs(e)}))?8:0);if(o){var s=um(t),c=Md(o,Wp(function(t,r){return void 0===r&&(r=0),t&&Kp(e.map(t.inferences,qp),t.signature,t.flags|r,t.compareTypes)}(s,1))),u=jy(c),l=u&&u.typeParameters?qc(Jc(u,u.typeParameters)):c,d=Mc(r);sf(a.inferences,l,d,64);var _=Jp(r.typeParameters,r,a.flags),p=Md(o,s&&s.returnMapper);sf(_.inferences,p,d),a.returnMapper=e.some(_.inferences,Kh)?Wp(function(t){var r=e.filter(t.inferences,Kh);return r.length?Kp(e.map(r,qp),t.signature,t.flags,t.compareTypes):void 0}(_)):void 0}}var f=qv(r),g=f?Math.min(Kv(r)-1,n.length):n.length;if(f&&262144&f.flags){var m=e.find(a.inferences,(function(e){return e.typeParameter===f}));m&&(m.impliedArity=e.findIndex(n,Iy,g)<0?n.length-g:void 0)}var y=Ic(r);if(y){var v=Yy(t),h=v?Gh(v):qe;sf(a.inferences,h,y)}for(var D=0;D=n-1&&Iy(d=t[n-1]))return Vy(227===d.kind?d.type:Fh(d.expression,i,a,o));for(var s=[],c=[],u=[],l=r;ld&&(d=v)}}if(!l)return!0;for(var h=1/0,D=0,x=i;D0||e.isJsxOpeningElement(t)&&t.parent.children.length>0?[t.attributes]:e.emptyArray;var i=t.arguments||e.emptyArray,a=Oy(i);if(a>=0){for(var o=i.slice(0,a),s=function(t){var r=i[t],n=220===r.kind&&(Tr?Gh(r.expression):Nh(r.expression));n&&ap(n)?e.forEach(iu(n),(function(e,t){var i,a=n.target.elementFlags[t],s=Xy(r,4&a?Iu(e):e,!!(12&a),null===(i=n.target.labeledElementDeclarations)||void 0===i?void 0:i[t]);o.push(s)})):o.push(r)},c=a;cs&&(s=p),u-1;u<=o&&h&&u--;var D=y||h?y&&h?e.Diagnostics.Expected_at_least_0_arguments_but_got_1_or_more:y?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:e.Diagnostics.Expected_0_arguments_but_got_1_or_more:1===v&&0===u&&function(t){if(!e.isCallExpression(t)||!e.isIdentifier(t.expression))return!1;var r=Pn(t.expression,t.expression.escapedText,111551,void 0,void 0,!1),n=null==r?void 0:r.valueDeclaration;if(!(n&&e.isParameter(n)&&pm(n.parent)&&e.isNewExpression(n.parent.parent)&&e.isIdentifier(n.parent.parent.expression)))return!1;var i=Au(!1);return!!i&&Cb(n.parent.parent.expression,!0)===i}(t)?e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:e.Diagnostics.Expected_0_arguments_but_got_1;if(i&&zv(i)>u&&i.declaration){var x=i.declaration.parameters[i.thisParameter?u+1:u];x&&(m=e.createDiagnosticForNode(x,e.isBindingPattern(x.name)?e.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:e.isRestParameter(x)?e.Diagnostics.Arguments_for_the_rest_parameter_0_were_not_provided:e.Diagnostics.An_argument_for_0_was_not_provided,x.name?e.isBindingPattern(x.name)?void 0:e.idText(e.getFirstIdentifier(x.name)):u))}if(au&&S?n.indexOf(S):Math.min(o,n.length-1)))}}else g=e.factory.createNodeArray(n.slice(o));var E=e.first(g).pos,C=e.last(g).end;C===E&&C++,e.setTextRangePosEnd(g,E,C);var T=e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),g,D,v,u);return m?e.addRelatedInfo(T,m):T}function rv(t,n,a,o,s,c){var u,l=205===t.kind,d=161===t.kind,_=e.isJsxOpeningLikeElement(t),p=!a&&i;d||(u=t.typeArguments,(l||_||105!==t.expression.kind)&&e.forEach(u,lb));var f=a||[];if(function(t,r,n){var i,a,o,s,c=0,u=-1;e.Debug.assert(!r.length);for(var l=0,d=t;l1&&(v=W(f,rn,D,b)),v||(v=W(f,an,D,b)),v)return v;if(p)if(g)if(1===g.length||g.length>3){var S,E=g[g.length-1];g.length>3&&(S=e.chainDiagnosticMessages(S,e.Diagnostics.The_last_overload_gave_the_following_error),S=e.chainDiagnosticMessages(S,e.Diagnostics.No_overload_matches_this_call));var C=Gy(t,h,E,an,0,!0,(function(){return S}));if(C)for(var T=0,k=C;T3&&e.addRelatedInfo(A,e.createDiagnosticForNode(E.declaration,e.Diagnostics.The_last_overload_is_declared_here)),q(E,A),$r.add(A)}else e.Debug.fail("No error for last overload signature")}else{for(var F=[],N=0,P=Number.MAX_VALUE,w=0,I=0,O=function(r){var n=Gy(t,h,r,an,0,!0,(function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,I+1,f.length,sa(r))}));n?(n.length<=P&&(P=n.length,w=I),N=Math.max(N,n.length),F.push(n)):e.Debug.fail("No error for 3 or fewer overload signatures"),I++},M=0,L=g;M1?F[w]:e.flatten(F);e.Debug.assert(R.length>0,"No errors reported for 3 or fewer overload signatures");var B=e.chainDiagnosticMessages(e.map(R,(function(e){return"string"==typeof e.messageText?e:e.messageText})),e.Diagnostics.No_overload_matches_this_call),j=r(e.flatMap(R,(function(e){return e.relatedInformation}))),J=void 0;if(e.every(R,(function(e){return e.start===R[0].start&&e.length===R[0].length&&e.file===R[0].file}))){var U=R[0];J={file:U.file,start:U.start,length:U.length,code:B.code,category:B.category,messageText:B,relatedInformation:j}}else J=e.createDiagnosticForNodeFromMessageChain(t,B,j);q(g[0],J),$r.add(J)}else if(m)$r.add(tv(t,[m],h));else if(y)Wy(y,t.typeArguments,!0,c);else{var V=e.filter(n,(function(e){return By(e,u)}));0===V.length?$r.add(function(t,r,n){var i=n.length;if(1===r.length){var a=Tc((d=r[0]).typeParameters),o=e.length(d.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.Expected_0_type_arguments_but_got_1,ai?c=Math.min(c,_):o0),_b(t),i||1===r.length||r.some((function(e){return!!e.typeParameters}))?function(t,r,n){var i=function(e,t){for(var r=-1,n=-1,i=0;i=t)return i;o>n&&(n=o,r=i)}return r}(r,void 0===se?n.length:se),a=r[i],o=a.typeParameters;if(!o)return a;var s=Ny(t)?t.typeArguments:void 0,c=s?Kc(a,function(e,t,r){var n=e.map(Tb);for(;n.length>t.length;)n.pop();for(;n.length1?e.find((null===(i=t.declaration)||void 0===i?void 0:i.symbol.declarations)||e.emptyArray,(function(t){return e.isFunctionLikeDeclaration(t)&&e.nodeIsPresent(t.body)})):void 0;if(c){var u=Ac(c),l=!u.typeParameters;W([u],an,l)&&e.addRelatedInfo(r,e.createDiagnosticForNode(c,e.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}g=a,m=o,y=s}function W(r,n,i,a){if(void 0===a&&(a=!1),g=void 0,m=void 0,y=void 0,i){var o=r[0];if(e.some(u)||!Ry(t,h,o,a))return;return Gy(t,h,o,n,0,!1,void 0)?void(g=[o]):o}for(var s=0;s=0&&_n(t.arguments[i],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var a=Zm(t.expression);if(a===He)return pr;if((a=tc(a))===ke)return wy(t);if(Aa(a))return t.typeArguments&&_n(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Py(t);var o=pc(a,1);if(o.length){if(!function(t,r){if(!r||!r.declaration)return!0;var n=r.declaration,i=e.getSelectedEffectiveModifierFlags(n,24);if(!i||166!==n.kind)return!0;var a=e.getClassLikeDeclarationOfSymbol(n.parent.symbol),o=Jo(n.parent.symbol);if(!bb(t,a)){var s=e.getContainingClass(t);if(s&&16&i){var c=Tb(s);if(uv(n.parent.symbol,c))return!0}return 8&i&&_n(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,ca(o)),16&i&&_n(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,ca(o)),!1}return!0}(t,o[0]))return wy(t);var s=a.symbol&&e.getClassLikeDeclarationOfSymbol(a.symbol);return s&&e.hasSyntacticModifier(s,128)?(_n(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),wy(t)):rv(t,o,r,n,0)}var c=pc(a,0);if(c.length){var u=rv(t,c,r,n,0);return $||(u.declaration&&!hv(u.declaration)&&Mc(u)!==qe&&_n(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),Ic(u)===qe&&_n(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),u}return dv(t.expression,a,1),wy(t)}function uv(t,r){var n=Ao(r);if(!e.length(n))return!1;var i=n[0];if(2097152&i.flags){for(var a=Ds(i.types),o=0,s=0,c=i.types;s0;if(1048576&r.flags){for(var c=!1,u=0,l=r.types;u=n-1)return r===n-1?a:Iu(wl(a,Re));for(var o=[],s=[],c=[],u=r;u0&&(a=t.parameters.length-1+c)}}if(void 0===a){if(!n&&16&t.flags)return 0;a=t.minArgumentCount}if(i)return a;for(var u=a-1;u>=0;u--){if(131072&$f(Bv(t,u),My).flags)break;a=u}t.resolvedMinArgumentCount=a}return t.resolvedMinArgumentCount}function Uv(e){if(K(e)){var t=po(e.parameters[e.parameters.length-1]);return!ap(t)||t.target.hasRestElement}return!1}function Vv(e){if(K(e)){var t=po(e.parameters[e.parameters.length-1]);if(!ap(t))return t;if(t.target.hasRestElement)return Vu(t,t.target.fixedLength)}}function qv(e){var t=Vv(e);return!t||U_(t)||Aa(t)||0!=(131072&oc(t).flags)?void 0:t}function Wv(e){return Hv(e,We)}function Hv(e,t){return e.parameters.length>0?Bv(e,0):t}function Gv(t,r){(t.typeParameters=r.typeParameters,r.thisParameter)&&((!(a=t.thisParameter)||a.valueDeclaration&&!a.valueDeclaration.type)&&(a||(t.thisParameter=Tp(r.thisParameter,void 0)),Yv(t.thisParameter,po(r.thisParameter))));for(var n=t.parameters.length-(K(t)?1:0),i=0;i0&&(n=$u(l,2)):u=We;var d=function(t,r){var n=[],i=[],a=0!=(2&e.getFunctionFlags(t));return e.forEachYieldExpression(t.body,(function(t){var o,s=t.expression?Gh(t.expression,r):we;if(e.pushIfUnique(n,rh(t,s,Ee,a)),t.asteriskToken){var c=mx(s,a?19:17,t.expression);o=c&&c.nextType}else o=cm(t);o&&e.pushIfUnique(i,o)})),{yieldTypes:n,nextTypes:i}}(t,r),_=d.yieldTypes,p=d.nextTypes;i=e.some(_)?$u(_,2):void 0,a=e.some(p)?al(p):void 0}else{var f=oh(t,r);if(!f)return 2&o?Zv(t,We):We;if(0===f.length)return 2&o?Zv(t,qe):qe;n=$u(f,2)}if(n||i||a){if(i&&Rp(t,i,3),n&&Rp(t,n,1),a&&Rp(t,a,2),n&&$_(n)||i&&$_(i)||a&&$_(a)){var g=fm(t),m=g?g===Ac(t)?c?void 0:n:om(Mc(g),t):void 0;c?(i=ip(i,m,0,s),n=ip(n,m,1,s),a=ip(a,m,2,s)):n=function(e,t,r){return e&&$_(e)&&(e=np(e,t?r?mD(t):t:void 0)),e}(n,m,s)}i&&(i=Ip(i)),n&&(n=Ip(n)),a&&(a=Ip(a))}return c?th(i||We,n||u,a||qg(2,t)||Ne,s):s?Qv(n||u):n||u}function th(e,t,r,n){var i=n?Dr:xr,a=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||Ne,t=i.resolveIterationType(t,void 0)||Ne,r=i.resolveIterationType(r,void 0)||Ne,a===ct){var o=i.getGlobalIterableIteratorType(!1),s=o!==ct?Dx(o,i):void 0,c=s?s.returnType:Ee,u=s?s.nextType:Pe;return Yd(t,c)&&Yd(u,r)?o!==ct?Pu(o,[e]):(i.getGlobalIterableIteratorType(!0),it):(i.getGlobalGeneratorType(!0),it)}return Pu(a,[e,t,r])}function rh(t,r,n,i){var a=t.expression||t,o=t.asteriskToken?ux(i?19:17,r,n,a):r;return i?vD(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 nh(e,t,r,n){var i=0;if(n){for(var a=t;a=0;)switch(t=i.expr[a],i.state[a]){case 0:if(e.isInJSFile(t)&&e.getAssignedExpandoInitializer(t)){u(Gh(t.right,r));break}if(kh(t),62===(o=t.operatorToken.kind)&&(200===t.left.kind||199===t.left.kind)){u(Sh(t.left,Gh(t.right,r),r,107===t.right.kind));break}l(1),d(t.left);break;case 1:var o,s=n;i.leftType[a]=s,55!==(o=t.operatorToken.kind)&&56!==o&&60!==o||ix(s,t.left),l(2),d(t.right);break;case 2:s=i.leftType[a];var c=n;u(Ah(t.left,t.operatorToken,t.right,s,c,t));break;default:return e.Debug.fail("Invalid state "+i.state[a]+" for checkBinaryExpression")}return n;function u(e){n=e,a--}function l(e){i.state[a]=e}function d(t){e.isBinaryExpression(t)?(a++,i.expr[a]=t,i.state[a]=0,i.leftType[a]=void 0):n=Gh(t,r)}}function kh(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||zS(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||zS(i,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(i.operatorToken.kind),e.tokenToString(n.kind)))}function Ah(t,r,n,a,o,s){var c=r.kind;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 77:case 50:case 72:if(a===He||o===He)return He;a=ay(a,t),o=ay(o,n);var u=void 0;if(528&a.flags&&528&o.flags&&void 0!==(u=function(e){switch(e){case 51:case 73:return 56;case 52:case 77:return 37;case 50:case 72:return 55;default:return}}(r.kind)))return _n(s||r,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(r.kind),e.tokenToString(u)),Re;var l,d=uh(t,a,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),_=uh(n,o,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);if(yh(a,3)&&yh(o,3)||!mh(a,2112)&&!mh(o,2112))l=Re;else if(b(a,o)){switch(c){case 49:case 71:T();break;case 42:case 66:q<3&&_n(s,e.Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}l=Be}else T(b),l=ke;return d&&_&&E(l),l;case 39:case 63:if(a===He||o===He)return He;yh(a,402653316)||yh(o,402653316)||(a=ay(a,t),o=ay(o,n));var p=void 0;if(yh(a,296,!0)&&yh(o,296,!0)?p=Re:yh(a,2112,!0)&&yh(o,2112,!0)?p=Be:yh(a,402653316,!0)||yh(o,402653316,!0)?p=Le:(Aa(a)||Aa(o))&&(p=a===ke||o===ke?ke:Ee),p&&!S(c))return p;if(!p){var f=402655727;return T((function(e,t){return yh(e,f)&&yh(t,f)})),Ee}return 63===c&&E(p),p;case 29:case 31:case 32:case 33:return S(c)&&(a=ep(ay(a,t)),o=ep(ay(o,n)),C((function(e,t){return Qd(e,t)||Qd(t,e)||Yd(e,et)&&Yd(t,et)}))),Ue;case 34:case 35:case 36:case 37:return C((function(e,t){return Ch(e,t)||Ch(t,e)})),Ue;case 101:return function(t,r,n,i){return n===He||i===He?He:(!Aa(n)&&vh(n,131068)&&_n(t,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Aa(i)||wb(i)||Gd(i,Dt)||_n(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),Ue)}(t,n,a,o);case 100:return function(t,r,n,i){return n===He||i===He?He:(n=ay(n,t),i=ay(i,r),vh(n,402665900)||yh(n,407109632)||_n(t,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol),vh(i,126091264)||_n(r,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Ue)}(t,n,a,o);case 55:case 75:var g=4194304&wf(a)?$u([gp(G?a:ep(o)),o]):a;return 75===c&&E(o),g;case 56:case 74:var m=8388608&wf(a)?$u([fp(a),o],2):a;return 74===c&&E(o),m;case 60:case 76:var y=262144&wf(a)?$u([hp(a),o],2):a;return 76===c&&E(o),y;case 62:var v=e.isBinaryExpression(t.parent)?e.getAssignmentDeclarationKind(t.parent):0;return function(t,r){if(2===t)for(var n=0,i=Bs(r);n1&&t.charCodeAt(r-1)>=48&&t.charCodeAt(r-1)<=57;)r--;for(var n=t.slice(0,r),i=1;;i++){var a=n+i;if(!zh(e,a))return a}}function Vh(e){var t=jy(e);if(t&&!t.typeParameters)return Mc(t)}function qh(t){var r=Wh(t);if(r)return r;if(67108864&t.flags&&ir){var n=ir[O(t)];if(n)return n}var i=Fr,a=Gh(t);Fr!==i&&((ir||(ir=[]))[O(t)]=a,e.setNodeFlags(t,67108864|t.flags));return a}function Wh(t){var r=e.skipParentheses(t);if(!e.isCallExpression(r)||105===r.expression.kind||e.isRequireCall(r,!0)||Ev(r)){if(e.isAssertionExpression(r)&&!e.isConstTypeReference(r.type))return ld(r.type);if(8===t.kind||10===t.kind||109===t.kind||94===t.kind)return Gh(t)}else{var n=e.isCallChain(r)?function(e){var t=Gh(e.expression),r=Ep(t,e.expression),n=Vh(t);return n&&Sp(n,e,r!==t)}(r):Vh(Zm(r.expression));if(n)return n}}function Hh(e){var t=Tn(e);if(t.contextFreeType)return t.contextFreeType;var r=e.contextualType;e.contextualType=Ee;try{return t.contextFreeType=Gh(e,4)}finally{e.contextualType=r}}function Gh(t,r,n){e.tracing.push("check","checkExpression",{kind:t.kind,pos:t.pos,end:t.end});var o=d;d=t,b=0;var s=jh(t,function(t,r,n){var o=t.kind;if(a)switch(o){case 221:case 208:case 209:a.throwIfCancellationRequested()}switch(o){case 78:return Ng(t);case 107:return Mg(t);case 105:return Bg(t);case 103:return Me;case 14:case 10:return rd(ad(t.text));case 8:return qS(t),rd(ad(+t.text));case 9:return function(t){if(!(e.isLiteralTypeNode(t.parent)||e.isPrefixUnaryExpression(t.parent)&&e.isLiteralTypeNode(t.parent.parent))&&q<7&&zS(t,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))return!0}(t),rd(function(t){return ad({negative:!1,base10Value:e.parsePseudoBigInt(t.text)})}(t));case 109:return Ke;case 94:return je;case 218:return function(t){for(var r=[t.head.text],n=[],i=0,a=t.templateSpans;i=2||!e.hasRestParameter(t)||8388608&t.flags||e.nodeIsMissing(t.body))return;e.forEach(t.parameters,(function(t){t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===ce.escapedName&&dn("noEmit",t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))}(t);var n=e.getEffectiveReturnTypeNode(t);if($&&!n)switch(t.kind){case 170:_n(t,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 169:_n(t,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(n){var a=e.getFunctionFlags(t);if(1==(5&a)){var o=ld(n);if(o===qe)_n(n,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var s=wx(0,o,0!=(2&a))||Ee;Zd(th(s,wx(1,o,0!=(2&a))||s,wx(2,o,0!=(2&a))||Ne,!!(2&a)),o,n)}}else 2==(3&a)&&function(t,r){var n=ld(r);if(q>=2){if(n===ke)return;var i=ku(!0);if(i!==ct&&!fo(n,i))return void _n(r,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,ca(vD(n)||qe))}else{if(function(t){xD(t&&e.getEntityNameFromTypeNode(t))}(r),n===ke)return;var a=e.getEntityNameFromTypeNode(r);if(void 0===a)return void _n(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,ca(n));var o=di(a,111551,!0),s=o?po(o):ke;if(s===ke)return void(78===a.kind&&"Promise"===a.escapedText&&go(n)===ku(!1)?_n(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):_n(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=(d=!0,Jt||(Jt=Eu("PromiseConstructorLike",0,d))||it);if(c===it)return void _n(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(!Zd(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=An(t.locals,u.escapedText,111551);if(l)return void _n(l.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(u),e.entityNameToString(a))}var d;yD(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)}171!==t.kind&&308!==t.kind&&FD(t)}}function Zh(t){for(var r=new e.Map,n=0,i=t.members;n0&&r.declarations[0]!==t)return}var n=Wc(ki(t));if(n)for(var i=!1,a=!1,o=0,s=n.declarations;o=0)return void(r&&_n(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));Qr.push(t.id);var s=vD(o,r,n,i);if(Qr.pop(),!s)return;return a.awaitedTypeOfType=s}if(!function(e){var t=ka(e,"then");return!!t&&pc(If(t,2097152),0).length>0}(t))return a.awaitedTypeOfType=t;if(r){if(!n)return e.Debug.fail();_n(r,n,i)}}function DD(t){var r=vv(t);bv(r,t);var n=Mc(r);if(!(1&n.flags)){var i,a,o=pv(t);switch(t.parent.kind){case 252:i=$u([po(ki(t.parent)),qe]);break;case 160:i=qe,a=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 163:i=qe,a=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 165:case 167:case 168:i=$u([wu(Tb(t.parent)),qe]);break;default:return e.Debug.fail()}Zd(n,i,t,o,(function(){return a}))}}function xD(t){if(t){var r=e.getFirstIdentifier(t),n=2097152|(78===t.kind?788968:1920),i=Pn(r,r.escapedText,n,void 0,void 0,!0);i&&2097152&i.flags&&Oi(i)&&!Ub(ni(i))&&!oi(i)&&ci(i)}}function bD(t){var r=SD(t);r&&e.isEntityName(r)&&xD(r)}function SD(e){if(e)switch(e.kind){case 183:case 182:return ED(e.types);case 184:return ED([e.trueType,e.falseType]);case 186:case 192:return SD(e.type);case 173:return e.typeName}}function ED(t){for(var r,n=0,i=t;n=e.ModuleKind.ES2015)&&(VD(t,r,"require")||VD(t,r,"exports"))&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=Ta(t);297===n.kind&&e.isExternalOrCommonJsModule(n)&&dn("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(r),e.declarationNameToString(r))}}function YD(t,r){if(!(q>=4)&&VD(t,r,"Promise")&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=Ta(t);297===n.kind&&e.isExternalOrCommonJsModule(n)&&2048&n.flags&&dn("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(r),e.declarationNameToString(r))}}function XD(e){return e===Ce?Ee:e===Pt?Nt:e}function QD(t){var r;if(TD(t),e.isBindingElement(t)||lb(t.type),t.name){if(158===t.name.kind&&(bm(t.name),t.initializer&&Nh(t.initializer)),198===t.kind){196===t.parent.kind&&q<99&&pS(t,4),t.propertyName&&158===t.propertyName.kind&&bm(t.propertyName);var n=t.parent.parent,i=Fa(n),a=t.propertyName||t.name;if(i&&!e.isBindingPattern(a)){var o=ul(a);if(Xo(o)){var s=dc(i,ts(o));s&&(Sy(s,void 0,!1),Qm(n,!!n.initializer&&105===n.initializer.kind,i,s))}}}if(e.isBindingPattern(t.name)&&(197===t.name.kind&&q<2&&V.downlevelIteration&&pS(t,512),e.forEach(t.name.elements,lb)),t.initializer&&e.isParameterDeclaration(t)&&e.nodeIsMissing(e.getContainingFunction(t).body))_n(t,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);else if(e.isBindingPattern(t.name)){var c=t.initializer&&238!==t.parent.parent.kind,u=0===t.name.elements.length;if(c||u){var l=$a(t);if(c){var d=Nh(t.initializer);G&&u?oy(d,t):e_(d,$a(t),t,t.initializer)}u&&(e.isArrayBindingPattern(t.name)?ux(65,l,Pe,t):G&&oy(l,t))}}else{var _=ki(t);if(2097152&_.flags&&e.isRequireVariableDeclaration(t,!0))rb(t);else{var p=XD(po(_));if(t===_.valueDeclaration){var f=e.getEffectiveInitializer(t);if(f)e.isInJSFile(t)&&e.isObjectLiteralExpression(f)&&(0===f.properties.length||e.isPrototypeAccess(t.name))&&!!(null===(r=_.exports)||void 0===r?void 0:r.size)||238===t.parent.parent.kind||e_(Nh(f),p,t,f,void 0);_.declarations.length>1&&e.some(_.declarations,(function(r){return r!==t&&e.isVariableLike(r)&&!ZD(r,t)}))&&_n(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}else{var g=XD($a(t));p===ke||g===ke||Vd(p,g)||67108864&_.flags||$D(_.valueDeclaration,p,t,g),t.initializer&&e_(Nh(t.initializer),g,t,t.initializer,void 0),ZD(t,_.valueDeclaration)||_n(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}163!==t.kind&&162!==t.kind&&(fD(t),249!==t.kind&&198!==t.kind||function(t){if(0==(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(249!==t.kind||t.initializer)){var r=ki(t);if(1&r.flags){if(!e.isIdentifier(t.name))return e.Debug.fail();var n=Pn(t,t.name.escapedText,3,void 0,void 0,!1);if(n&&n!==r&&2&n.flags&&3&Ym(n)){var i=e.getAncestor(n.valueDeclaration,250),a=232===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!a||!(230===a.kind&&e.isFunctionLike(a.parent)||257===a.kind||256===a.kind||297===a.kind)){var o=oa(n);_n(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}}(t),GD(t,t.name),YD(t,t.name),q<99&&VD(t,t.name,"WeakMap")&&Xr.push(t))}}}}function $D(t,r,n,i){var a=e.getNameOfDeclaration(n),o=163===n.kind||162===n.kind?e.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:e.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,s=e.declarationNameToString(a),c=_n(a,o,s,ca(r),ca(i));t&&e.addRelatedInfo(c,e.createDiagnosticForNode(t,e.Diagnostics._0_was_also_declared_here,s))}function ZD(t,r){if(160===t.kind&&249===r.kind||249===t.kind&&160===r.kind)return!0;if(e.hasQuestionToken(t)!==e.hasQuestionToken(r))return!1;return e.getSelectedEffectiveModifierFlags(t,504)===e.getSelectedEffectiveModifierFlags(r,504)}function ex(t){e.tracing.push("check","checkVariableDeclaration",{kind:t.kind,pos:t.pos,end:t.end}),function(t){if(238!==t.parent.parent.kind&&239!==t.parent.parent.kind)if(8388608&t.flags)OS(t);else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return zS(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(t))return zS(t,e.Diagnostics.const_declarations_must_be_initialized)}if(t.exclamationToken&&(232!==t.parent.parent.kind||!t.type||t.initializer||8388608&t.flags)){var r=t.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return zS(t.exclamationToken,r)}var n=e.getEmitModuleKind(V);n=1&&ex(t.declarations[0])}function cx(e){return ux(e.awaitModifier?15:13,Zm(e.expression),Pe,e.expression)}function ux(e,t,r,n){return Aa(t)?t:lx(e,t,r,n,!0)||Ee}function lx(t,r,n,i,a){var o=0!=(2&t);if(r!==We){var s=q>=2,c=!s&&V.downlevelIteration,u=V.noUncheckedIndexedAccess&&!!(128&t);if(s||c||o){var l=mx(r,t,s?i:void 0);if(a&&l){var d=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;d&&Zd(n,l.nextType,i,d)}if(l||s)return u?Rf(l&&l.yieldType):l&&l.yieldType}var _=r,p=!1,f=!1;if(4&t){if(1048576&_.flags){var g=r.types,m=e.filter(g,(function(e){return!(402653316&e.flags)}));m!==g&&(_=$u(m,2))}else 402653316&_.flags&&(_=We);if((f=_!==r)&&(q<1&&i&&(_n(i,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),p=!0),131072&_.flags))return u?Rf(Le):Le}if(!H_(_)){if(i&&!p){var y=dx(t,0,r,void 0),v=4&t&&!f?c?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:y?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:c?[e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:y?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:[e.Diagnostics.Type_0_is_not_an_array_type,!0],h=v[0];gn(i,v[1]&&!!gD(_),h,ca(_))}return f?u?Rf(Le):Le:void 0}var D=yc(_,1);return f&&D?402653316&D.flags&&!V.noUncheckedIndexedAccess?Le:$u(u?[D,Le,Pe]:[D,Le],2):128&t?Rf(D):D}Sx(i,r,o)}function dx(e,t,r,n){if(!Aa(r)){var i=mx(r,e,n);return i&&i[J(t)]}}function _x(e,t,r){if(void 0===e&&(e=We),void 0===t&&(t=We),void 0===r&&(r=Ne),67359327&e.flags&&180227&t.flags&&180227&r.flags){var n=Zc([e,t,r]),i=gr.get(n);return i||(i={yieldType:e,returnType:t,nextType:r},gr.set(n,i)),i}return{yieldType:e,returnType:t,nextType:r}}function px(t){for(var r,n,i,a=0,o=t;an)return!1;for(var l=0;l1)return JS(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);r=!0}else{if(e.Debug.assert(116===o.token),n)return JS(o,e.Diagnostics.implements_clause_already_seen);n=!0}SS(o)}})(t)||vS(t.typeParameters,r)}(t),TD(t),t.name&&(jx(t.name,e.Diagnostics.Class_name_cannot_be_0),GD(t,t.name),YD(t,t.name),8388608&t.flags||function(t){1===q&&"Object"===t.escapedText&&W>a;case 49:return i>>>a;case 47:return i<1&&L(t,!!V.preserveConstEnums||!!V.isolatedModules)){var s=function(t){for(var r=0,n=t.declarations;r1)for(var o=0,s=n;o=232&&r<=248&&t.flowNode&&!yg(t.flowNode)&&fn(!1===V.allowUnreachableCode,t,e.Diagnostics.Unreachable_code_detected);switch(r){case 159:return Yh(t);case 160:return Xh(t);case 163:return tD(t);case 162:return function(t){return e.isPrivateIdentifier(t.name)&&_n(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),tD(t)}(t);case 174:case 175:case 169:case 170:case 171:return $h(t);case 165:case 164:return function(t){wS(t)||CS(t.name),e.isPrivateIdentifier(t.name)&&_n(t,e.Diagnostics.A_method_cannot_be_named_with_a_private_identifier),AD(t),e.hasSyntacticModifier(t,128)&&165===t.kind&&t.body&&_n(t,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(t.name))}(t);case 166:return rD(t);case 167:case 168:return nD(t);case 173:return cD(t);case 172:return function(t){var r=function(e){switch(e.parent.kind){case 209:case 169:case 251:case 208:case 174:case 165:case 164:var t=e.parent;if(e===t.type)return t}}(t);if(r){var n=Ac(r),i=Oc(n);if(i){lb(t.type);var a=t.parameterName;if(0===i.kind||2===i.kind)sd(a);else if(i.parameterIndex>=0)K(n)&&i.parameterIndex===n.parameters.length-1?_n(a,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):i.type&&Zd(i.type,po(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;s0),n.length>1&&_n(n[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=kD(t.class.expression),a=e.getClassExtendsHeritageElement(r);if(a){var o=kD(a.expression);o&&i.escapedText!==o.escapedText&&_n(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(t.tagName),e.idText(i),e.idText(o))}}else _n(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 316:return function(t){var r=e.getEffectiveJSDocHost(t);r&&(e.isClassDeclaration(r)||e.isClassExpression(r))||_n(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 331:case 324:case 325:return function(t){t.typeExpression||_n(t.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),t.name&&jx(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),lb(t.typeExpression)}(t);case 330:return function(e){lb(e.constraint);for(var t=0,r=e.typeParameters;t-1&&n1){var n=e.isEnumConst(t);e.forEach(r.declarations,(function(t){e.isEnumDeclaration(t)&&e.isEnumConst(t)!==n&&_n(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)}))}var a=!1;e.forEach(r.declarations,(function(t){if(255!==t.kind)return!1;var r=t;if(!r.members.length)return!1;var n=r.members[0];n.initializer||(a?_n(n.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):a=!0)}))}}}(t);case 256:return Zx(t);case 261:return ib(t);case 260:return function(t){if(!ob(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(gS(t),e.isInternalModuleImportEqualsDeclaration(t)||tb(t)))if(nb(t),e.hasSyntacticModifier(t,1)&&si(t),272!==t.moduleReference.kind){var r=ni(ki(t));if(r!==be){if(111551&r.flags){var n=e.getFirstIdentifier(t.moduleReference);1920&di(n,112575).flags||_n(n,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(n))}788968&r.flags&&jx(t.name,e.Diagnostics.Import_name_cannot_be_0)}}else W>=e.ModuleKind.ES2015&&!(8388608&t.flags)&&zS(t,e.Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}(t);case 267:return ab(t);case 266:return function(t){if(!ob(t,e.Diagnostics.An_export_assignment_can_only_be_used_in_a_module)){var r=297===t.parent.kind?t.parent:t.parent.parent;if(256!==r.kind||e.isAmbientModule(r)){if(!gS(t)&&e.hasEffectiveModifiers(t)&&JS(t,e.Diagnostics.An_export_assignment_cannot_have_modifiers),78===t.expression.kind){var n=t.expression,i=di(n,67108863,!0,!0,t);if(i){Fg(i,n);var a=2097152&i.flags?ni(i):i;(a===be||111551&a.flags)&&Nh(t.expression)}else Nh(t.expression);e.getEmitDeclarations(V)&&xa(t.expression,!0)}else Nh(t.expression);ub(r),8388608&t.flags&&!e.isEntityNameExpression(t.expression)&&zS(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||(W>=e.ModuleKind.ES2015?zS(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):W===e.ModuleKind.System&&zS(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}else t.isExportEquals?_n(t,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):_n(t,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(t);case 231:case 248:return void VS(t);case 271:(function(e){TD(e)})(t)}}(t),d=r}}function db(t){e.isInJSFile(t)||zS(t,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function _b(t){var r=Tn(e.getSourceFileOfNode(t));if(!(1&r.flags)){r.deferredNodes=r.deferredNodes||new e.Map;var n=O(t);r.deferredNodes.set(n,t)}}function pb(t){var r=d;switch(d=t,b=0,t.kind){case 203:case 204:case 205:case 161:case 275:Py(t);break;case 208:case 209:case 165:case 164:!function(t){e.Debug.assert(165!==t.kind||e.isObjectLiteralMethod(t));var r=e.getFunctionFlags(t),n=Lc(t);if(sh(t,n),t.body)if(e.getEffectiveReturnTypeNode(t)||Mc(Ac(t)),230===t.body.kind)lb(t.body);else{var i=Gh(t.body),a=n&&Mx(n,r);a&&e_(2==(3&r)?yD(i,t.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i,a,t.body,t.body)}}(t);break;case 167:case 168:nD(t);break;case 221:!function(t){e.forEach(t.members,lb),FD(t)}(t);break;case 274:!function(e){qm(e)}(t);break;case 273:!function(e){qm(e.openingElement),Am(e.closingElement.tagName)?Om(e.closingElement):Gh(e.closingElement.tagName),Nm(e)}(t)}d=r}function fb(r){var n=["check","checkSourceFile",{path:r.path}];e.tracing.begin.apply(e.tracing,n),e.performance.mark("beforeCheck"),function(r){var n=Tn(r);if(!(1&n.flags)){if(e.skipTypeChecking(r,V,t))return;!function(t){!!(8388608&t.flags)&&function(t){for(var r=0,n=t.statements;r0?e.concatenate(o,a):a}return e.forEach(t.getSourceFiles(),fb),$r.getDiagnostics()}(r)}finally{a=void 0}}function vb(){if(!i)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function hb(e){switch(e.kind){case 159:case 252:case 253:case 254:case 255:case 331:case 324:case 325:return!0;case 262:return e.isTypeOnly;case 265:case 270:return e.parent.parent.isTypeOnly;default:return!1}}function Db(e){for(;157===e.parent.kind;)e=e.parent;return 173===e.parent.kind}function xb(t,r){for(var n;(t=e.getContainingClass(t))&&!(n=r(t)););return n}function bb(e,t){return!!xb(e,(function(e){return e===t}))}function Sb(e){return void 0!==function(e){for(;157===e.parent.kind;)e=e.parent;return 260===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:266===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function Eb(t){if(e.isDeclarationName(t))return ki(t.parent);if(e.isInJSFile(t)&&201===t.parent.kind&&t.parent===t.parent.parent.left&&!e.isPrivateIdentifier(t)){var r=function(t){switch(e.getAssignmentDeclarationKind(t.parent.parent)){case 1:case 3:return ki(t.parent);case 4:case 2:case 5:return ki(t.parent.parent)}}(t);if(r)return r}if(266===t.parent.kind&&e.isEntityNameExpression(t)){var n=di(t,2998271,!0);if(n&&n!==be)return n}else if(!e.isPropertyAccessExpression(t)&&!e.isPrivateIdentifier(t)&&Sb(t)){var i=e.getAncestor(t,260);return e.Debug.assert(void 0!==i),ui(t,!0)}if(!e.isPropertyAccessExpression(t)&&!e.isPrivateIdentifier(t)){var a=function(t){for(var r=t.parent;e.isQualifiedName(r);)t=r,r=r.parent;if(r&&195===r.kind&&r.qualifier===t)return r}(t);if(a){ld(a);var o=Tn(t).resolvedSymbol;return o===be?void 0:o}}for(;e.isRightSideOfQualifiedNameOrPropertyAccess(t);)t=t.parent;if(function(e){for(;201===e.parent.kind;)e=e.parent;return 223===e.parent.kind}(t)){var s=0;223===t.parent.kind?(s=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(s|=111551)):s=1920,s|=2097152;var c=e.isEntityNameExpression(t)?di(t,s):void 0;if(c)return c}if(326===t.parent.kind)return e.getParameterSymbolFromJSDoc(t.parent);if(159===t.parent.kind&&330===t.parent.parent.kind){e.Debug.assert(!e.isInJSFile(t));var u=e.getTypeParameterFromJsDoc(t.parent);return u&&u.symbol}if(e.isExpressionNode(t)){if(e.nodeIsMissing(t))return;if(78===t.kind){if(e.isJSXTagName(t)&&Am(t)){var l=Om(t.parent);return l===be?void 0:l}return di(t,111551,!1,!0)}if(201===t.kind||157===t.kind){var d=Tn(t);return d.resolvedSymbol||(201===t.kind?sy(t):cy(t)),d.resolvedSymbol}}else{if(Db(t))return di(t,s=173===t.parent.kind?788968:1920,!1,!0);if(function(e){for(;157===e.parent.kind;)e=e.parent;for(;201===e.parent.kind;)e=e.parent;return 302===e.parent.kind}(t))return di(t,s=901119,!1,!0,e.getHostSignatureFromJSDoc(t))}return 172===t.parent.kind?di(t,1):void 0}function Cb(t,r){if(297===t.kind)return e.isExternalModule(t)?Ti(t.symbol):void 0;var n=t.parent,i=n.parent;if(!(16777216&t.flags)){if(B(t)){var a=ki(n);return e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t?Em(a):a}if(e.isLiteralComputedPropertyDeclarationName(t))return ki(n.parent);if(78===t.kind){if(Sb(t))return Eb(t);if(198===n.kind&&196===i.kind&&t===n.propertyName){var o=dc(Tb(i),t.escapedText);if(o)return o}}switch(t.kind){case 78:case 79:case 201:case 157:return Eb(t);case 107:var s=e.getThisContainer(t,!1);if(e.isFunctionLike(s)){var c=Ac(s);if(c.thisParameter)return c.thisParameter}if(e.isInExpressionContext(t))return Gh(t).symbol;case 187:return sd(t).symbol;case 105:return Gh(t).symbol;case 132:var u=t.parent;return u&&166===u.kind?u.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(261===t.parent.kind||267===t.parent.kind)&&t.parent.moduleSpecifier===t||e.isInJSFile(t)&&e.isRequireCall(t.parent,!1)||e.isImportCall(t.parent)||e.isLiteralTypeNode(t.parent)&&e.isLiteralImportTypeNode(t.parent.parent)&&t.parent.parent.argument===t.parent)return pi(t,t,r);if(e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n)&&n.arguments[1]===t)return ki(n);case 8:var l=e.isElementAccessExpression(n)?n.argumentExpression===t?qh(n.expression):void 0:e.isLiteralTypeNode(n)&&e.isIndexedAccessTypeNode(i)?ld(i.objectType):void 0;return l&&dc(l,e.escapeLeadingUnderscores(t.text));case 87:case 97:case 38:case 83:return ki(t.parent);case 195:return e.isLiteralImportTypeNode(t)?Cb(t.argument.literal,r):void 0;case 92:return e.isExportAssignment(t.parent)?e.Debug.checkDefined(t.parent.symbol):void 0;default:return}}}function Tb(t){if(e.isSourceFile(t)&&!e.isExternalModule(t))return ke;if(16777216&t.flags)return ke;var r,n=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(t),i=n&&Po(ki(n.class));if(e.isPartOfTypeNode(t)){var a=ld(t);return i?os(a,i.thisType):a}if(e.isExpressionNode(t))return Ab(t);if(i&&!n.isImplements){var o=e.firstOrUndefined(Ao(i));return o?os(o,i.thisType):ke}if(hb(t))return Jo(r=ki(t));if(function(t){return 78===t.kind&&hb(t.parent)&&e.getNameOfDeclaration(t.parent)===t}(t))return(r=Cb(t))?Jo(r):ke;if(e.isDeclaration(t))return po(r=ki(t));if(B(t))return(r=Cb(t))?po(r):ke;if(e.isBindingPattern(t))return Ba(t.parent,!0)||ke;if(Sb(t)&&(r=Cb(t))){var s=Jo(r);return s!==ke?s:po(r)}return ke}function kb(t){if(e.Debug.assert(200===t.kind||199===t.kind),239===t.parent.kind)return Sh(t,cx(t.parent)||ke);if(216===t.parent.kind)return Sh(t,qh(t.parent.right)||ke);if(288===t.parent.kind){var r=e.cast(t.parent.parent,e.isObjectLiteralExpression);return xh(r,kb(r)||ke,e.indexOfNode(r.properties,t.parent))}var n=e.cast(t.parent,e.isArrayLiteralExpression),i=kb(n)||ke,a=ux(65,i,Pe,t.parent)||ke;return bh(n,i,n.elements.indexOf(t),a)}function Ab(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),nd(qh(t))}function Fb(t){var r=ki(t.parent);return e.hasSyntacticModifier(t,32)?po(r):Jo(r)}function Nb(t){var r=t.name;switch(r.kind){case 78:return ad(e.idText(r));case 8:case 10:return ad(r.text);case 158:var n=bm(r);return yh(n,12288)?n:Le;default:return e.Debug.fail("Unsupported property name.")}}function Pb(t){t=tc(t);var r=e.createSymbolTable(Ks(t)),n=pc(t,0).length?xt:pc(t,1).length?bt:void 0;return n&&e.forEach(Ks(n),(function(e){r.has(e.escapedName)||r.set(e.escapedName,e)})),zi(r)}function wb(t){return e.typeHasCallOrConstructSignatures(t,le)}function Ib(t){if(e.isGeneratedIdentifier(t))return!1;var r=e.getParseTreeNode(t,e.isIdentifier);if(!r)return!1;var n=r.parent;return!!n&&(!((e.isPropertyAccessExpression(n)||e.isPropertyAssignment(n))&&n.name===r)&&oS(r)===ce)}function Ob(t){var r=pi(t.parent,t);if(!r||e.isShorthandAmbientModuleSymbol(r))return!0;var n=hi(r),i=Cn(r=yi(r));return void 0===i.exportsSomeValue&&(i.exportsSomeValue=n?!!(111551&r.flags):e.forEachEntry(Si(r),(function(e){return(e=ri(e))&&!!(111551&e.flags)}))),i.exportsSomeValue}function Mb(t,r){var n=e.getParseTreeNode(t,e.isIdentifier);if(n){var i=oS(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=Ai(i);if(o){if(512&o.flags&&297===o.valueDeclaration.kind){var s=o.valueDeclaration;return s!==e.getSourceFileOfNode(n)?void 0:s}return e.findAncestor(n.parent,(function(t){return e.isModuleOrEnumDeclaration(t)&&ki(t)===o}))}}}}function Lb(t){if(t.generatedImportReference)return t.generatedImportReference;var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=oS(r);if(ti(n,111551)&&!oi(n))return zn(n)}}function Rb(t){if(418&t.flags&&!e.isSourceFile(t.valueDeclaration)){var r=Cn(t);if(void 0===r.isDeclarationWithCollidingName){var n=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(n)||function(t){return e.isBindingElement(t.valueDeclaration)&&287===e.walkUpBindingElementsAndPatterns(t.valueDeclaration).parent.kind}(t)){var i=Tn(t.valueDeclaration);if(Pn(n.parent,t.escapedName,111551,void 0,void 0,!1))r.isDeclarationWithCollidingName=!0;else if(262144&i.flags){var a=524288&i.flags,o=e.isIterationStatement(n,!1),s=230===n.kind&&e.isIterationStatement(n.parent,!1);r.isDeclarationWithCollidingName=!(e.isBlockScopedContainerTopLevel(n)||a&&(o||s))}else r.isDeclarationWithCollidingName=!1}}return r.isDeclarationWithCollidingName}return!1}function Bb(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=oS(r);if(n&&Rb(n))return n.valueDeclaration}}}function jb(t){var r=e.getParseTreeNode(t,e.isDeclaration);if(r){var n=ki(r);if(n)return Rb(n)}return!1}function Jb(t){switch(t.kind){case 260:return zb(ki(t)||be);case 262:case 263:case 265:case 270:var r=ki(t)||be;return zb(r)&&!oi(r);case 267:var n=t.exportClause;return!!n&&(e.isNamespaceExport(n)||e.some(n.elements,Jb));case 266:return!t.expression||78!==t.expression.kind||zb(ki(t)||be)}return!1}function Kb(t){var r=e.getParseTreeNode(t,e.isImportEqualsDeclaration);return!(void 0===r||297!==r.parent.kind||!e.isInternalModuleImportEqualsDeclaration(r))&&(zb(ki(r))&&r.moduleReference&&!e.nodeIsMissing(r.moduleReference))}function zb(e){var t=ni(e);return t===be||!!(111551&t.flags)&&(V.preserveConstEnums||!Ub(t))}function Ub(e){return Dh(e)||!!e.constEnumOnlyModule}function Vb(t,r){if(Un(t)){var n=ki(t);if(n&&Cn(n).referenced)return!0;var i=Cn(n).target;if(i&&1&e.getEffectiveModifierFlags(t)&&111551&i.flags&&(V.preserveConstEnums||!Ub(i)))return!0}return!!r&&!!e.forEachChild(t,(function(e){return Vb(e,r)}))}function qb(t){if(e.nodeIsPresent(t.body)){if(e.isGetAccessor(t)||e.isSetAccessor(t))return!1;var r=Pc(ki(t));return r.length>1||1===r.length&&r[0].declaration!==t}return!1}function Wb(t){return!(!G||Sc(t)||e.isJSDocParameterTag(t)||!t.initializer||e.hasSyntacticModifier(t,92))}function Hb(t){return G&&Sc(t)&&!t.initializer&&e.hasSyntacticModifier(t,92)}function Gb(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return!1;var n=ki(r);return!!(n&&16&n.flags)&&!!e.forEachEntry(bi(n),(function(t){return 111551&t.flags&&t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)}))}function Yb(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return e.emptyArray;var n=ki(r);return n&&Ks(po(n))||e.emptyArray}function Xb(e){return Tn(e).flags||0}function Qb(e){return Yx(e.parent),Tn(e).enumMemberValue}function $b(e){switch(e.kind){case 291:case 201:case 202:return!0}return!1}function Zb(t){if(291===t.kind)return Qb(t);var r=Tn(t).resolvedSymbol;if(r&&8&r.flags){var n=r.valueDeclaration;if(e.isEnumConst(n.parent))return Qb(n)}}function eS(e){return!!(524288&e.flags)&&pc(e,0).length>0}function tS(t,r){var n,i=e.getParseTreeNode(t,e.isEntityName);if(!i)return e.TypeReferenceSerializationKind.Unknown;if(r&&!(r=e.getParseTreeNode(r)))return e.TypeReferenceSerializationKind.Unknown;var a=di(i,111551,!0,!0,r),o=(null===(n=null==a?void 0:a.declarations)||void 0===n?void 0:n.every(e.isTypeOnlyImportOrExportDeclaration))||!1,s=a&&2097152&a.flags?ni(a):a,c=di(i,788968,!0,!1,r);if(s&&s===c){var u=Au(!1);if(u&&s===u)return e.TypeReferenceSerializationKind.Promise;var l=po(s);if(l&&bo(l))return o?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!c)return o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var d=Jo(c);return d===ke?o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:3&d.flags?e.TypeReferenceSerializationKind.ObjectType:yh(d,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:yh(d,528)?e.TypeReferenceSerializationKind.BooleanType:yh(d,296)?e.TypeReferenceSerializationKind.NumberLikeType:yh(d,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:yh(d,402653316)?e.TypeReferenceSerializationKind.StringLikeType:ap(d)?e.TypeReferenceSerializationKind.ArrayLikeType:yh(d,12288)?e.TypeReferenceSerializationKind.ESSymbolType:eS(d)?e.TypeReferenceSerializationKind.TypeWithCallSignature:U_(d)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function rS(t,r,n,i,a){var o=e.getParseTreeNode(t,e.isVariableLikeOrAccessor);if(!o)return e.factory.createToken(128);var s=ki(o),c=!s||133120&s.flags?ke:tp(po(s));return 8192&c.flags&&c.symbol===s&&(n|=1048576),a&&(c=vp(c)),ne.typeToTypeNode(c,r,1024|n,i)}function nS(t,r,n,i){var a=e.getParseTreeNode(t,e.isFunctionLike);if(!a)return e.factory.createToken(128);var o=Ac(a);return ne.typeToTypeNode(Mc(o),r,1024|n,i)}function iS(t,r,n,i){var a=e.getParseTreeNode(t,e.isExpression);if(!a)return e.factory.createToken(128);var o=Ip(Ab(a));return ne.typeToTypeNode(o,r,1024|n,i)}function aS(t){return ie.has(e.escapeLeadingUnderscores(t))}function oS(t,r){var n=Tn(t).resolvedSymbol;if(n)return n;var i=t;if(r){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=Ta(a))}return Pn(i,t.escapedText,3257279,void 0,void 0,!0)}function sS(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=oS(r);if(n)return Ii(n).valueDeclaration}}}function cS(t){return!!(e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))&&id(po(ki(t)))}function uS(t,r){return function(t,r,n){var i=1024&t.flags?ne.symbolToExpression(t.symbol,111551,r,void 0,n):t===Ke?e.factory.createTrue():t===je&&e.factory.createFalse();if(i)return i;var a=t.value;return"object"==typeof a?e.factory.createBigIntLiteral(a):"number"==typeof a?e.factory.createNumericLiteral(a):e.factory.createStringLiteral(a)}(po(ki(t)),t,r)}function lS(t){return t?(ln(t),e.getSourceFileOfNode(t).localJsxFactory||or):or}function dS(t){if(t){var r=e.getSourceFileOfNode(t);if(r){if(r.localJsxFragmentFactory)return r.localJsxFragmentFactory;var n=r.pragmas.get("jsxfrag"),i=e.isArray(n)?n[0]:n;if(i)return r.localJsxFragmentFactory=e.parseIsolatedEntityName(i.arguments.factory,q),r.localJsxFragmentFactory}}if(V.jsxFragmentFactory)return e.parseIsolatedEntityName(V.jsxFragmentFactory,q)}function _S(t){var r=256===t.kind?e.tryCast(t.name,e.isStringLiteral):e.getExternalModuleName(t),n=fi(r,r,void 0);if(n)return e.getDeclarationOfKind(n,297)}function pS(t,r){if((s&r)!==r&&V.importHelpers){var n=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(n,V)&&!(8388608&t.flags)){var i=function(t,r){l||(l=gi(t,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,r)||be);return l}(n,t);if(i!==be)for(var a=r&~s,o=1;o<=4194304;o<<=1)if(a&o){var c=fS(o);An(i.exports,e.escapeLeadingUnderscores(c),111551)||_n(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 fS(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"__importStar";case 262144:return"__importDefault";case 524288:return"__makeTemplateObject";case 1048576:return"__classPrivateFieldGet";case 2097152:return"__classPrivateFieldSet";case 4194304:return"__createBinding";default:return e.Debug.fail("Unrecognized helper")}}function gS(t){return function(t){if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t,t.parent,t.parent.parent))return 165!==t.kind||e.nodeIsPresent(t.body)?JS(t,e.Diagnostics.Decorators_are_not_valid_here):JS(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(167===t.kind||168===t.kind){var r=e.getAllAccessorDeclarations(t.parent.members,t);if(r.firstAccessor.decorators&&t===r.secondAccessor)return JS(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}(t)||function(t){var r,n,i,a,o=function(t){return!!t.modifiers&&(function(t){switch(t.kind){case 167:case 168:case 166:case 163:case 162:case 165:case 164:case 171:case 256:case 261:case 260:case 267:case 266:case 208:case 209:case 160:return!1;default:if(257===t.parent.kind||297===t.parent.kind)return!1;switch(t.kind){case 251:return mS(t,129);case 252:return mS(t,125);case 253:case 232:case 254:return!0;case 255:return mS(t,84);default:return e.Debug.fail(),!1}}}(t)?JS(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;c1||e.modifiers[0].kind!==t}function yS(t,r){return void 0===r&&(r=e.Diagnostics.Trailing_comma_not_allowed),!(!t||!t.hasTrailingComma)&&KS(t[0],t.end-",".length,",".length,r)}function vS(t,r){if(t&&0===t.length){var n=t.pos-"<".length;return KS(r,n,e.skipTrivia(r.text,t.end)+">".length-n,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function hS(t){if(q>=3){var n=t.body&&e.isBlock(t.body)&&e.findUseStrictPrologue(t.body.statements);if(n){var i=(o=t.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(_n(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,r([_n(n,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],a)),!0}}}var o;return!1}function DS(t){var r=e.getSourceFileOfNode(t);return gS(t)||vS(t.typeParameters,r)||function(t){for(var r=!1,n=t.length,i=0;i".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}(t,r)}function bS(t){return function(t){if(t)for(var r=0,n=t;r1){r=238===t.kind?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return JS(a.declarations[1],r)}var s=o[0];if(s.initializer){var r=238===t.kind?e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return zS(s.name,r)}if(s.type)return zS(s,r=238===t.kind?e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:e.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function NS(t){if(t.parameters.length===(167===t.kind?1:2))return e.getThisParameter(t)}function PS(t,r){if(function(t){return e.isDynamicName(t)&&!Qo(t)}(t))return zS(t,r)}function wS(t){if(DS(t))return!0;if(165===t.kind){if(200===t.parent.kind){if(t.modifiers&&(1!==t.modifiers.length||129!==e.first(t.modifiers).kind))return JS(t,e.Diagnostics.Modifiers_cannot_appear_here);if(kS(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(AS(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===t.body)return KS(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(TS(t))return!0}if(e.isClassLike(t.parent)){if(8388608&t.flags)return PS(t.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(165===t.kind&&!t.body)return PS(t.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(253===t.parent.kind)return PS(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(177===t.parent.kind)return PS(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 IS(t){return e.isStringOrNumericLiteralLike(t)||214===t.kind&&40===t.operator&&8===t.operand.kind}function OS(t){var r,n=t.initializer;if(n){var i=!(IS(n)||function(t){if((e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)&&IS(t.argumentExpression))&&e.isEntityNameExpression(t.expression))return!!(1024&Nh(t).flags)}(n)||109===n.kind||94===n.kind||(r=n,9===r.kind||214===r.kind&&40===r.operator&&9===r.operand.kind)),a=e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t);if(!a||t.type)return zS(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(i)return zS(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 zS(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function MS(t){if(78===t.kind){if("__esModule"===e.idText(t))return function(t,r,n,i,a,o){if(!jS(e.getSourceFileOfNode(r)))return dn(t,r,n,i,a,o),!0;return!1}("noEmit",t,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var r=0,n=t.elements;r0}function JS(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!jS(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return $r.add(e.createFileDiagnostic(o,s.start,s.length,r,n,i,a)),!0}return!1}function KS(t,r,n,i,a,o,s){var c=e.getSourceFileOfNode(t);return!jS(c)&&($r.add(e.createFileDiagnostic(c,r,n,i,a,o,s)),!0)}function zS(t,r,n,i,a){return!jS(e.getSourceFileOfNode(t))&&($r.add(e.createDiagnosticForNode(t,r,n,i,a)),!0)}function US(t){return 253!==t.kind&&254!==t.kind&&261!==t.kind&&260!==t.kind&&267!==t.kind&&266!==t.kind&&259!==t.kind&&!e.hasSyntacticModifier(t,515)&&JS(t,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function VS(t){if(8388608&t.flags){if(!Tn(t).hasReportedStatementInAmbientContext&&(e.isFunctionLike(t.parent)||e.isAccessor(t.parent)))return Tn(t).hasReportedStatementInAmbientContext=JS(t,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(230===t.parent.kind||257===t.parent.kind||297===t.parent.kind){var r=Tn(t.parent);if(!r.hasReportedStatementInAmbientContext)return r.hasReportedStatementInAmbientContext=JS(t,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function qS(t){if(32&t.numericLiteralFlags){var r=void 0;if(q>=1?r=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,191)?r=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,291)&&(r=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),r){var n=e.isPrefixUnaryExpression(t.parent)&&40===t.parent.operator,i=(n?"-":"")+"0o"+t.text;return zS(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;pn(!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 WS(t,r,n,i){if(1048576&r.flags&&2621440&t.flags){var a=Ks(t);if(a){var o=kf(a,r);if(o)return E_(r,e.map(o,(function(e){return[function(){return po(e)},e.escapedName]})),n,void 0,i)}}}},function(e){e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"}(N||(N={})),e.signatureHasRestParameter=K,e.signatureHasLiteralTypes=z}(u||(u={})),function(e){var t=e.or(e.isTypeNode,e.isTypeParameterDeclaration);function r(t,r,n,i){if(void 0===t||void 0===r)return t;var a,o=r(t);return o===t?t:void 0!==o?(a=e.isArray(o)?(i||c)(o):o,e.Debug.assertNode(a,n),a):void 0}function n(t,r,n,i,a){if(void 0===t||void 0===r)return t;var o,s,c=t.length;(void 0===i||i<0)&&(i=0),(void 0===a||a>c-i)&&(a=c-i);var u=-1,l=-1;(i>0||a=2&&(s=function(t,r){for(var n,i=0;i0&&p<=156||187===p)return o;var f=u.factory;switch(p){case 78:return f.updateIdentifier(o,l(o.typeArguments,c,t));case 157:return f.updateQualifiedName(o,_(o.left,c,e.isEntityName),_(o.right,c,e.isIdentifier));case 158:return f.updateComputedPropertyName(o,_(o.expression,c,e.isExpression));case 159:return f.updateTypeParameterDeclaration(o,_(o.name,c,e.isIdentifier),_(o.constraint,c,e.isTypeNode),_(o.default,c,e.isTypeNode));case 160:return f.updateParameterDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),_(o.dotDotDotToken,d,e.isToken),_(o.name,c,e.isBindingName),_(o.questionToken,d,e.isToken),_(o.type,c,e.isTypeNode),_(o.initializer,c,e.isExpression));case 161:return f.updateDecorator(o,_(o.expression,c,e.isExpression));case 162:return f.updatePropertySignature(o,l(o.modifiers,c,e.isToken),_(o.name,c,e.isPropertyName),_(o.questionToken,d,e.isToken),_(o.type,c,e.isTypeNode));case 163:return f.updatePropertyDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),_(o.name,c,e.isPropertyName),_(o.questionToken||o.exclamationToken,d,e.isToken),_(o.type,c,e.isTypeNode),_(o.initializer,c,e.isExpression));case 164:return f.updateMethodSignature(o,l(o.modifiers,c,e.isModifier),_(o.name,c,e.isPropertyName),_(o.questionToken,d,e.isToken),l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),_(o.type,c,e.isTypeNode));case 165:return f.updateMethodDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),_(o.asteriskToken,d,e.isToken),_(o.name,c,e.isPropertyName),_(o.questionToken,d,e.isToken),l(o.typeParameters,c,e.isTypeParameterDeclaration),a(o.parameters,c,u,l),_(o.type,c,e.isTypeNode),s(o.body,c,u,_));case 166:return f.updateConstructorDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),a(o.parameters,c,u,l),s(o.body,c,u,_));case 167:return f.updateGetAccessorDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),_(o.name,c,e.isPropertyName),a(o.parameters,c,u,l),_(o.type,c,e.isTypeNode),s(o.body,c,u,_));case 168:return f.updateSetAccessorDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),_(o.name,c,e.isPropertyName),a(o.parameters,c,u,l),s(o.body,c,u,_));case 169:return f.updateCallSignature(o,l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),_(o.type,c,e.isTypeNode));case 170:return f.updateConstructSignature(o,l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),_(o.type,c,e.isTypeNode));case 171:return f.updateIndexSignature(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),l(o.parameters,c,e.isParameterDeclaration),_(o.type,c,e.isTypeNode));case 172:return f.updateTypePredicateNode(o,_(o.assertsModifier,c),_(o.parameterName,c),_(o.type,c,e.isTypeNode));case 173:return f.updateTypeReferenceNode(o,_(o.typeName,c,e.isEntityName),l(o.typeArguments,c,e.isTypeNode));case 174:return f.updateFunctionTypeNode(o,l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),_(o.type,c,e.isTypeNode));case 175:return f.updateConstructorTypeNode(o,l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),_(o.type,c,e.isTypeNode));case 176:return f.updateTypeQueryNode(o,_(o.exprName,c,e.isEntityName));case 177:return f.updateTypeLiteralNode(o,l(o.members,c,e.isTypeElement));case 178:return f.updateArrayTypeNode(o,_(o.elementType,c,e.isTypeNode));case 179:return f.updateTupleTypeNode(o,l(o.elements,c,e.isTypeNode));case 180:return f.updateOptionalTypeNode(o,_(o.type,c,e.isTypeNode));case 181:return f.updateRestTypeNode(o,_(o.type,c,e.isTypeNode));case 182:return f.updateUnionTypeNode(o,l(o.types,c,e.isTypeNode));case 183:return f.updateIntersectionTypeNode(o,l(o.types,c,e.isTypeNode));case 184:return f.updateConditionalTypeNode(o,_(o.checkType,c,e.isTypeNode),_(o.extendsType,c,e.isTypeNode),_(o.trueType,c,e.isTypeNode),_(o.falseType,c,e.isTypeNode));case 185:return f.updateInferTypeNode(o,_(o.typeParameter,c,e.isTypeParameterDeclaration));case 195:return f.updateImportTypeNode(o,_(o.argument,c,e.isTypeNode),_(o.qualifier,c,e.isEntityName),n(o.typeArguments,c,e.isTypeNode),o.isTypeOf);case 192:return f.updateNamedTupleMember(o,r(o.dotDotDotToken,c,e.isToken),r(o.name,c,e.isIdentifier),r(o.questionToken,c,e.isToken),r(o.type,c,e.isTypeNode));case 186:return f.updateParenthesizedType(o,_(o.type,c,e.isTypeNode));case 188:return f.updateTypeOperatorNode(o,_(o.type,c,e.isTypeNode));case 189:return f.updateIndexedAccessTypeNode(o,_(o.objectType,c,e.isTypeNode),_(o.indexType,c,e.isTypeNode));case 190:return f.updateMappedTypeNode(o,_(o.readonlyToken,d,e.isToken),_(o.typeParameter,c,e.isTypeParameterDeclaration),_(o.nameType,c,e.isTypeNode),_(o.questionToken,d,e.isToken),_(o.type,c,e.isTypeNode));case 191:return f.updateLiteralTypeNode(o,_(o.literal,c,e.isExpression));case 193:return f.updateTemplateLiteralType(o,_(o.head,c,e.isTemplateHead),l(o.templateSpans,c,e.isTemplateLiteralTypeSpan));case 194:return f.updateTemplateLiteralTypeSpan(o,_(o.type,c,e.isTypeNode),_(o.literal,c,e.isTemplateMiddleOrTemplateTail));case 196:return f.updateObjectBindingPattern(o,l(o.elements,c,e.isBindingElement));case 197:return f.updateArrayBindingPattern(o,l(o.elements,c,e.isArrayBindingElement));case 198:return f.updateBindingElement(o,_(o.dotDotDotToken,d,e.isToken),_(o.propertyName,c,e.isPropertyName),_(o.name,c,e.isBindingName),_(o.initializer,c,e.isExpression));case 199:return f.updateArrayLiteralExpression(o,l(o.elements,c,e.isExpression));case 200:return f.updateObjectLiteralExpression(o,l(o.properties,c,e.isObjectLiteralElementLike));case 201:return 32&o.flags?f.updatePropertyAccessChain(o,_(o.expression,c,e.isExpression),_(o.questionDotToken,d,e.isToken),_(o.name,c,e.isIdentifier)):f.updatePropertyAccessExpression(o,_(o.expression,c,e.isExpression),_(o.name,c,e.isIdentifierOrPrivateIdentifier));case 202:return 32&o.flags?f.updateElementAccessChain(o,_(o.expression,c,e.isExpression),_(o.questionDotToken,d,e.isToken),_(o.argumentExpression,c,e.isExpression)):f.updateElementAccessExpression(o,_(o.expression,c,e.isExpression),_(o.argumentExpression,c,e.isExpression));case 203:return 32&o.flags?f.updateCallChain(o,_(o.expression,c,e.isExpression),_(o.questionDotToken,d,e.isToken),l(o.typeArguments,c,e.isTypeNode),l(o.arguments,c,e.isExpression)):f.updateCallExpression(o,_(o.expression,c,e.isExpression),l(o.typeArguments,c,e.isTypeNode),l(o.arguments,c,e.isExpression));case 204:return f.updateNewExpression(o,_(o.expression,c,e.isExpression),l(o.typeArguments,c,e.isTypeNode),l(o.arguments,c,e.isExpression));case 205:return f.updateTaggedTemplateExpression(o,_(o.tag,c,e.isExpression),n(o.typeArguments,c,e.isExpression),_(o.template,c,e.isTemplateLiteral));case 206:return f.updateTypeAssertion(o,_(o.type,c,e.isTypeNode),_(o.expression,c,e.isExpression));case 207:return f.updateParenthesizedExpression(o,_(o.expression,c,e.isExpression));case 208:return f.updateFunctionExpression(o,l(o.modifiers,c,e.isModifier),_(o.asteriskToken,d,e.isToken),_(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),a(o.parameters,c,u,l),_(o.type,c,e.isTypeNode),s(o.body,c,u,_));case 209:return f.updateArrowFunction(o,l(o.modifiers,c,e.isModifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),a(o.parameters,c,u,l),_(o.type,c,e.isTypeNode),_(o.equalsGreaterThanToken,d,e.isToken),s(o.body,c,u,_));case 210:return f.updateDeleteExpression(o,_(o.expression,c,e.isExpression));case 211:return f.updateTypeOfExpression(o,_(o.expression,c,e.isExpression));case 212:return f.updateVoidExpression(o,_(o.expression,c,e.isExpression));case 213:return f.updateAwaitExpression(o,_(o.expression,c,e.isExpression));case 214:return f.updatePrefixUnaryExpression(o,_(o.operand,c,e.isExpression));case 215:return f.updatePostfixUnaryExpression(o,_(o.operand,c,e.isExpression));case 216:return f.updateBinaryExpression(o,_(o.left,c,e.isExpression),_(o.operatorToken,d,e.isToken),_(o.right,c,e.isExpression));case 217:return f.updateConditionalExpression(o,_(o.condition,c,e.isExpression),_(o.questionToken,d,e.isToken),_(o.whenTrue,c,e.isExpression),_(o.colonToken,d,e.isToken),_(o.whenFalse,c,e.isExpression));case 218:return f.updateTemplateExpression(o,_(o.head,c,e.isTemplateHead),l(o.templateSpans,c,e.isTemplateSpan));case 219:return f.updateYieldExpression(o,_(o.asteriskToken,d,e.isToken),_(o.expression,c,e.isExpression));case 220:return f.updateSpreadElement(o,_(o.expression,c,e.isExpression));case 221:return f.updateClassExpression(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),_(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.heritageClauses,c,e.isHeritageClause),l(o.members,c,e.isClassElement));case 223:return f.updateExpressionWithTypeArguments(o,_(o.expression,c,e.isExpression),l(o.typeArguments,c,e.isTypeNode));case 224:return f.updateAsExpression(o,_(o.expression,c,e.isExpression),_(o.type,c,e.isTypeNode));case 225:return 32&o.flags?f.updateNonNullChain(o,_(o.expression,c,e.isExpression)):f.updateNonNullExpression(o,_(o.expression,c,e.isExpression));case 226:return f.updateMetaProperty(o,_(o.name,c,e.isIdentifier));case 228:return f.updateTemplateSpan(o,_(o.expression,c,e.isExpression),_(o.literal,c,e.isTemplateMiddleOrTemplateTail));case 230:return f.updateBlock(o,l(o.statements,c,e.isStatement));case 232:return f.updateVariableStatement(o,l(o.modifiers,c,e.isModifier),_(o.declarationList,c,e.isVariableDeclarationList));case 233:return f.updateExpressionStatement(o,_(o.expression,c,e.isExpression));case 234:return f.updateIfStatement(o,_(o.expression,c,e.isExpression),_(o.thenStatement,c,e.isStatement,f.liftToBlock),_(o.elseStatement,c,e.isStatement,f.liftToBlock));case 235:return f.updateDoStatement(o,_(o.statement,c,e.isStatement,f.liftToBlock),_(o.expression,c,e.isExpression));case 236:return f.updateWhileStatement(o,_(o.expression,c,e.isExpression),_(o.statement,c,e.isStatement,f.liftToBlock));case 237:return f.updateForStatement(o,_(o.initializer,c,e.isForInitializer),_(o.condition,c,e.isExpression),_(o.incrementor,c,e.isExpression),_(o.statement,c,e.isStatement,f.liftToBlock));case 238:return f.updateForInStatement(o,_(o.initializer,c,e.isForInitializer),_(o.expression,c,e.isExpression),_(o.statement,c,e.isStatement,f.liftToBlock));case 239:return f.updateForOfStatement(o,_(o.awaitModifier,d,e.isToken),_(o.initializer,c,e.isForInitializer),_(o.expression,c,e.isExpression),_(o.statement,c,e.isStatement,f.liftToBlock));case 240:return f.updateContinueStatement(o,_(o.label,c,e.isIdentifier));case 241:return f.updateBreakStatement(o,_(o.label,c,e.isIdentifier));case 242:return f.updateReturnStatement(o,_(o.expression,c,e.isExpression));case 243:return f.updateWithStatement(o,_(o.expression,c,e.isExpression),_(o.statement,c,e.isStatement,f.liftToBlock));case 244:return f.updateSwitchStatement(o,_(o.expression,c,e.isExpression),_(o.caseBlock,c,e.isCaseBlock));case 245:return f.updateLabeledStatement(o,_(o.label,c,e.isIdentifier),_(o.statement,c,e.isStatement,f.liftToBlock));case 246:return f.updateThrowStatement(o,_(o.expression,c,e.isExpression));case 247:return f.updateTryStatement(o,_(o.tryBlock,c,e.isBlock),_(o.catchClause,c,e.isCatchClause),_(o.finallyBlock,c,e.isBlock));case 249:return f.updateVariableDeclaration(o,_(o.name,c,e.isBindingName),_(o.exclamationToken,d,e.isToken),_(o.type,c,e.isTypeNode),_(o.initializer,c,e.isExpression));case 250:return f.updateVariableDeclarationList(o,l(o.declarations,c,e.isVariableDeclaration));case 251:return f.updateFunctionDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),_(o.asteriskToken,d,e.isToken),_(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),a(o.parameters,c,u,l),_(o.type,c,e.isTypeNode),s(o.body,c,u,_));case 252:return f.updateClassDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),_(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.heritageClauses,c,e.isHeritageClause),l(o.members,c,e.isClassElement));case 253:return f.updateInterfaceDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),_(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.heritageClauses,c,e.isHeritageClause),l(o.members,c,e.isTypeElement));case 254:return f.updateTypeAliasDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),_(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),_(o.type,c,e.isTypeNode));case 255:return f.updateEnumDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),_(o.name,c,e.isIdentifier),l(o.members,c,e.isEnumMember));case 256:return f.updateModuleDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),_(o.name,c,e.isIdentifier),_(o.body,c,e.isModuleBody));case 257:return f.updateModuleBlock(o,l(o.statements,c,e.isStatement));case 258:return f.updateCaseBlock(o,l(o.clauses,c,e.isCaseOrDefaultClause));case 259:return f.updateNamespaceExportDeclaration(o,_(o.name,c,e.isIdentifier));case 260:return f.updateImportEqualsDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),_(o.name,c,e.isIdentifier),_(o.moduleReference,c,e.isModuleReference));case 261:return f.updateImportDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),_(o.importClause,c,e.isImportClause),_(o.moduleSpecifier,c,e.isExpression));case 262:return f.updateImportClause(o,o.isTypeOnly,_(o.name,c,e.isIdentifier),_(o.namedBindings,c,e.isNamedImportBindings));case 263:return f.updateNamespaceImport(o,_(o.name,c,e.isIdentifier));case 269:return f.updateNamespaceExport(o,_(o.name,c,e.isIdentifier));case 264:return f.updateNamedImports(o,l(o.elements,c,e.isImportSpecifier));case 265:return f.updateImportSpecifier(o,_(o.propertyName,c,e.isIdentifier),_(o.name,c,e.isIdentifier));case 266:return f.updateExportAssignment(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),_(o.expression,c,e.isExpression));case 267:return f.updateExportDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),o.isTypeOnly,_(o.exportClause,c,e.isNamedExportBindings),_(o.moduleSpecifier,c,e.isExpression));case 268:return f.updateNamedExports(o,l(o.elements,c,e.isExportSpecifier));case 270:return f.updateExportSpecifier(o,_(o.propertyName,c,e.isIdentifier),_(o.name,c,e.isIdentifier));case 272:return f.updateExternalModuleReference(o,_(o.expression,c,e.isExpression));case 273:return f.updateJsxElement(o,_(o.openingElement,c,e.isJsxOpeningElement),l(o.children,c,e.isJsxChild),_(o.closingElement,c,e.isJsxClosingElement));case 274:return f.updateJsxSelfClosingElement(o,_(o.tagName,c,e.isJsxTagNameExpression),l(o.typeArguments,c,e.isTypeNode),_(o.attributes,c,e.isJsxAttributes));case 275:return f.updateJsxOpeningElement(o,_(o.tagName,c,e.isJsxTagNameExpression),l(o.typeArguments,c,e.isTypeNode),_(o.attributes,c,e.isJsxAttributes));case 276:return f.updateJsxClosingElement(o,_(o.tagName,c,e.isJsxTagNameExpression));case 277:return f.updateJsxFragment(o,_(o.openingFragment,c,e.isJsxOpeningFragment),l(o.children,c,e.isJsxChild),_(o.closingFragment,c,e.isJsxClosingFragment));case 280:return f.updateJsxAttribute(o,_(o.name,c,e.isIdentifier),_(o.initializer,c,e.isStringLiteralOrJsxExpression));case 281:return f.updateJsxAttributes(o,l(o.properties,c,e.isJsxAttributeLike));case 282:return f.updateJsxSpreadAttribute(o,_(o.expression,c,e.isExpression));case 283:return f.updateJsxExpression(o,_(o.expression,c,e.isExpression));case 284:return f.updateCaseClause(o,_(o.expression,c,e.isExpression),l(o.statements,c,e.isStatement));case 285:return f.updateDefaultClause(o,l(o.statements,c,e.isStatement));case 286:return f.updateHeritageClause(o,l(o.types,c,e.isExpressionWithTypeArguments));case 287:return f.updateCatchClause(o,_(o.variableDeclaration,c,e.isVariableDeclaration),_(o.block,c,e.isBlock));case 288:return f.updatePropertyAssignment(o,_(o.name,c,e.isPropertyName),_(o.initializer,c,e.isExpression));case 289:return f.updateShorthandPropertyAssignment(o,_(o.name,c,e.isIdentifier),_(o.objectAssignmentInitializer,c,e.isExpression));case 290:return f.updateSpreadAssignment(o,_(o.expression,c,e.isExpression));case 291:return f.updateEnumMember(o,_(o.name,c,e.isPropertyName),_(o.initializer,c,e.isExpression));case 297:return f.updateSourceFile(o,i(o.statements,c,u));case 336:return f.updatePartiallyEmittedExpression(o,_(o.expression,c,e.isExpression));case 337:return f.updateCommaListExpression(o,l(o.elements,c,e.isExpression));default:return o}}}}(u||(u={})),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,d=l.enter,_=l.exit,p=[],f=[],g=new e.Map,m=[],y="",v=0,h=0,D=0,x=0,b=0,S=0,E=!1,C=0,T=0,k=0,A=0,F=0,N=0,P=!1,w=!1,I=!1;return{getSources:function(){return p},addSource:O,setSourceContent:M,addName:L,addMapping:R,appendSourceMap:function(t,r,n,i,o,s){e.Debug.assert(t>=C,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),d();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=C,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),e.Debug.assert(void 0===n||n>=0,"sourceIndex cannot be negative"),e.Debug.assert(void 0===i||i>=0,"sourceLine cannot be negative"),e.Debug.assert(void 0===a||a>=0,"sourceCharacter cannot be negative"),d(),(function(e,t){return!P||C!==e||T!==t}(t,r)||function(e,t,r){return void 0!==e&&void 0!==t&&void 0!==r&&k===e&&(A>t||A===t&&F>r)}(n,i,a))&&(B(),C=t,T=r,w=!1,I=!1,P=!0),void 0!==n&&void 0!==i&&void 0!==a&&(k=n,A=i,F=a,w=!0,void 0!==o&&(N=o,I=!0)),_()}function B(){if(P&&(!E||v!==C||h!==T||D!==k||x!==A||b!==F||S!==N)){if(d(),v=e.length)return _("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 _("Invalid character in VLQ"),-1;r=0!=(32&o),a|=(31&o)<>=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 d(t,r){return e.compareValues(t.generatedPosition,r.generatedPosition)}function _(e){return e.sourcePosition}function p(e){return e.generatedPosition}e.getLineInfo=function(e,t){return{getLineCount:function(){return t.length},getLineText:function(r){return e.substring(t[r],t[r+1])}}},e.tryGetSourceMappingURL=function(e){for(var n=e.getLineCount()-1;n>=0;n--){var i=e.getLineText(n),a=t.exec(i);if(a)return a[1];if(!i.match(r))break}},e.isRawSourceMap=i,e.tryParseRawSourceMap=function(e){try{var t=JSON.parse(e);if(i(t))return t}catch(e){}},e.decodeMappings=a,e.sameMapping=function(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex},e.isSourceMapping=o,e.createDocumentPositionMapper=function(t,r,n){var i,s,f,g=e.getDirectoryPath(n),m=r.sourceRoot?e.getNormalizedAbsolutePath(r.sourceRoot,g):g,y=e.getNormalizedAbsolutePath(r.file,g),v=t.getSourceFileLike(y),h=r.sources.map((function(t){return e.getNormalizedAbsolutePath(t,m)})),D=new e.Map(h.map((function(e,r){return[t.getCanonicalFileName(e),r]})));return{getSourcePosition:function(t){var r=E();if(!e.some(r))return t;var n=e.binarySearchKey(r,t.pos,p,e.compareValues);n<0&&(n=~n);var i=r[n];if(void 0===i||!c(i))return t;return{fileName:h[i.sourceIndex],pos:i.sourcePosition}},getGeneratedPosition:function(r){var n=D.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,_,e.compareValues);a<0&&(a=~a);var o=i[a];if(void 0===o||o.sourceIndex!==n)return r;return{fileName:y,pos:o.generatedPosition}}};function x(n){var i,a,s=void 0!==v?e.getPositionOfLineAndCharacter(v,n.generatedLine,n.generatedCharacter,!0):-1;if(o(n)){var c=t.getSourceFileLike(h[n.sourceIndex]);i=r.sources[n.sourceIndex],a=void 0!==c?e.getPositionOfLineAndCharacter(c,n.sourceLine,n.sourceCharacter,!0):-1}return{generatedPosition:s,source:i,sourceIndex:n.sourceIndex,sourcePosition:a,nameIndex:n.nameIndex}}function b(){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=b();n0&&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=63&&e<=77},e.getNonAssignmentOperatorForCompoundAssignment=function(e){switch(e){case 63:return 39;case 64:return 40;case 65:return 41;case 66:return 42;case 67:return 43;case 68:return 44;case 69:return 47;case 70:return 48;case 71:return 49;case 72:return 50;case 73:return 51;case 77:return 52;case 74:return 56;case 75:return 55;case 76:return 60}},e.addPrologueDirectivesAndInitialSuperCall=function(t,r,n,i){if(r.body){var a=r.body.statements,o=t.copyPrologue(a,n,!1,i);if(o===a.length)return o;var s=e.findIndex(a,(function(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)}),o);if(s>-1){for(var c=o;c<=s;c++)n.push(e.visitNode(a[c],i,e.isStatement));return s+1}return o}return 0},e.getProperties=function(t,r,n){return e.filter(t.members,(function(t){return function(t,r,n){return e.isPropertyDeclaration(t)&&(!!t.initializer||!r)&&e.hasStaticModifier(t)===n}(t,r,n)}))},e.isInitializedProperty=function(e){return 163===e.kind&&void 0!==e.initializer}}(u||(u={})),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=1)||24576&f.transformFlags||24576&e.getTargetOfBindingOrAssignmentElement(f).transformFlags||e.isComputedPropertyName(g)){u&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,i),u=void 0);var m=a(t,s,g);e.isComputedPropertyName(g)&&(l=e.append(l,m.argumentExpression)),n(t,f,m,f)}else u=e.append(u,e.visitNode(f,t.visitor))}}u&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,i)}(t,r,l,s,c):e.isArrayBindingOrAssignmentPattern(l)?function(t,r,a,s,c){var u,l,d=e.getElementsOfBindingOrAssignmentPattern(a),_=d.length;if(t.level<1&&t.downlevelIteration)s=o(t,e.setTextRange(t.context.getEmitHelperFactory().createReadHelper(s,_>0&&e.getRestIndicatorOfBindingOrAssignmentElement(d[_-1])?void 0:_),c),!1,c);else if(1!==_&&(t.level<1||0===_)||e.every(d,e.isOmittedExpression)){s=o(t,s,!e.isDeclarationBindingElement(r)||0!==_,c)}for(var p=0;p<_;p++){var f=d[p];if(t.level>=1)if(16384&f.transformFlags||t.hasTransformedPriorElement&&!i(f)){t.hasTransformedPriorElement=!0;var g=t.context.factory.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(g),l=e.append(l,[g,f]),u=e.append(u,t.createArrayBindingOrAssignmentElement(g))}else u=e.append(u,f);else{if(e.isOmittedExpression(f))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(f)){if(p===_-1){m=t.context.factory.createArraySliceCall(s,p);n(t,f,m,f)}}else{var m=t.context.factory.createElementAccessExpression(s,p);n(t,f,m,f)}}}u&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(u),s,c,a);if(l)for(var y=0,v=l;y0)return!0;var r=e.getFirstConstructorWithBody(t);if(r)return e.forEach(r.parameters,B);return!1})(t)&&(n|=2);e.childIsDecorated(t)&&(n|=4);Te(t)?n|=8:!function(t){return ke(t)&&e.hasSyntacticModifier(t,512)}(t)?Ae(t)&&(n|=16):n|=32;x<=1&&7&n&&(n|=128);return n}(i,a);128&o&&t.startLexicalEnvironment();var s=i.name||(5&o?_.getGeneratedNameForNode(i):void 0),c=2&o?function(r,n){var i=e.moveRangePastDecorators(r),a=function(r){if(16777216&v.getNodeCheckFlags(r)){0==(1&u)&&(u|=1,t.enableSubstitution(78),l=[]);var n=_.createUniqueName(r.name&&!e.isGeneratedIdentifier(r.name)?e.idText(r.name):"default");return l[e.getOriginalNodeId(r)]=n,y(n),n}}(r),o=_.getLocalName(r,!1,!0),s=e.visitNodes(r.heritageClauses,k,e.isHeritageClause),c=K(r),d=_.createClassExpression(void 0,void 0,n,void 0,s,c);e.setOriginalNode(d,r),e.setTextRange(d,i);var p=_.createVariableStatement(void 0,_.createVariableDeclarationList([_.createVariableDeclaration(o,void 0,void 0,a?_.createAssignment(a,d):d)],1));return e.setOriginalNode(p,r),e.setTextRange(p,i),e.setCommentRange(p,r),p}(i,s):function(t,r,n){var i=128&n?void 0:e.visitNodes(t.modifiers,M,e.isModifier),a=_.createClassDeclaration(void 0,i,r,void 0,e.visitNodes(t.heritageClauses,k,e.isHeritageClause),K(t)),o=e.getEmitFlags(t);1&n&&(o|=32);return e.setTextRange(a,t),e.setOriginalNode(a,t),e.setEmitFlags(a,o),a}(i,s,o),d=[c];if(H(d,i,!1),H(d,i,!0),function(t,r){var n=function(t){var r=function(t){var r=t.decorators,n=V(e.getFirstConstructorWithBody(t));if(!r&&!n)return;return{decorators:r,parameters:n}}(t),n=W(t,t,r);if(!n)return;var i=l&&l[e.getOriginalNodeId(t)],a=_.getLocalName(t,!1,!0),o=p().createDecorateHelper(n,a),s=_.createAssignment(a,i?_.createAssignment(i,o):o);return e.setEmitFlags(s,1536),e.setSourceMapRange(s,e.moveRangePastDecorators(t)),s}(r);n&&t.push(e.setOriginalNode(_.createExpressionStatement(n),r))}(d,i),128&o){var f=e.createTokenRange(e.skipTrivia(r.text,i.members.end),19),g=_.getInternalName(i),m=_.createPartiallyEmittedExpression(g);e.setTextRangeEnd(m,f.end),e.setEmitFlags(m,1536);var h=_.createReturnStatement(m);e.setTextRangePos(h,f.pos),e.setEmitFlags(h,1920),d.push(h),e.insertStatementsAfterStandardPrologue(d,t.endLexicalEnvironment());var D=_.createImmediatelyInvokedArrowFunction(d);e.setEmitFlags(D,33554432);var b=_.createVariableStatement(void 0,_.createVariableDeclarationList([_.createVariableDeclaration(_.getLocalName(i,!1,!1),void 0,void 0,D)]));e.setOriginalNode(b,i),e.setCommentRange(b,i),e.setSourceMapRange(b,e.moveRangePastDecorators(i)),e.startOnNewLine(b),d=[b]}8&o?Ne(d,i):(128&o||2&o)&&(32&o?d.push(_.createExportDefault(_.getLocalName(i,!1,!0))):16&o&&d.push(_.createExternalModuleExport(_.getLocalName(i,!1,!0))));d.length>1&&(d.push(_.createEndOfDeclarationMarker(i)),e.setEmitFlags(c,4194304|e.getEmitFlags(c)));return e.singleOrMany(d)}(o);case 221:return function(r){if(!J(r))return e.visitEachChild(r,k,t);var n=_.createClassExpression(void 0,void 0,r.name,void 0,e.visitNodes(r.heritageClauses,k,e.isHeritageClause),K(r));return e.setOriginalNode(n,r),e.setTextRange(n,r),n}(o);case 286:return function(r){if(116===r.token)return;return e.visitEachChild(r,k,t)}(o);case 223:return function(t){return _.updateExpressionWithTypeArguments(t,e.visitNode(t.expression,k,e.isLeftHandSideExpression),void 0)}(o);case 165:return function(r){if(!se(r))return;var n=_.updateMethodDeclaration(r,void 0,e.visitNodes(r.modifiers,M,e.isModifier),r.asteriskToken,oe(r),void 0,void 0,e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t));n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r)));return n}(o);case 167:return function(r){if(!de(r))return;var n=_.updateGetAccessorDeclaration(r,void 0,e.visitNodes(r.modifiers,M,e.isModifier),oe(r),e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t)||_.createBlock([]));n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r)));return n}(o);case 168:return function(r){if(!de(r))return;var n=_.updateSetAccessorDeclaration(r,void 0,e.visitNodes(r.modifiers,M,e.isModifier),oe(r),e.visitParameterList(r.parameters,k,t),e.visitFunctionBody(r.body,k,t)||_.createBlock([]));n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r)));return n}(o);case 251:return function(r){if(!se(r))return _.createNotEmittedStatement(r);var n=_.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,M,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t)||_.createBlock([]));if(Te(r)){var i=[n];return Ne(i,r),i}return n}(o);case 208:return function(r){if(!se(r))return _.createOmittedExpression();return _.updateFunctionExpression(r,e.visitNodes(r.modifiers,M,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t)||_.createBlock([]))}(o);case 209:return function(r){return _.updateArrowFunction(r,e.visitNodes(r.modifiers,M,e.isModifier),void 0,e.visitParameterList(r.parameters,k,t),void 0,r.equalsGreaterThanToken,e.visitFunctionBody(r.body,k,t))}(o);case 160:return function(t){if(e.parameterIsThisKeyword(t))return;var r=_.updateParameterDeclaration(t,void 0,void 0,t.dotDotDotToken,e.visitNode(t.name,k,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,k,e.isExpression));r!==t&&(e.setCommentRange(r,t),e.setTextRange(r,e.moveRangePastModifiers(t)),e.setSourceMapRange(r,e.moveRangePastModifiers(t)),e.setEmitFlags(r.name,32));return r}(o);case 207:return function(n){var i=e.skipOuterExpressions(n.expression,-7);if(e.isAssertionExpression(i)){var a=e.visitNode(n.expression,k,e.isExpression);return e.length(e.getLeadingCommentRangesOfNode(a,r))?_.updateParenthesizedExpression(n,a):_.createPartiallyEmittedExpression(a,n)}return e.visitEachChild(n,k,t)}(o);case 206:case 224:return function(t){var r=e.visitNode(t.expression,k,e.isExpression);return _.createPartiallyEmittedExpression(r,t)}(o);case 203:return function(t){return _.updateCallExpression(t,e.visitNode(t.expression,k,e.isExpression),void 0,e.visitNodes(t.arguments,k,e.isExpression))}(o);case 204:return function(t){return _.updateNewExpression(t,e.visitNode(t.expression,k,e.isExpression),void 0,e.visitNodes(t.arguments,k,e.isExpression))}(o);case 205:return function(t){return _.updateTaggedTemplateExpression(t,e.visitNode(t.tag,k,e.isExpression),void 0,e.visitNode(t.template,k,e.isExpression))}(o);case 225:return function(t){var r=e.visitNode(t.expression,k,e.isLeftHandSideExpression);return _.createPartiallyEmittedExpression(r,t)}(o);case 255:return function(t){if(!function(t){return!e.isEnumConst(t)||h.preserveConstEnums||h.isolatedModules}(t))return _.createNotEmittedStatement(t);var n=[],o=2,s=ye(n,t);s&&(b===e.ModuleKind.System&&a===r||(o|=512));var c=Ie(t),u=Oe(t),l=e.hasSyntacticModifier(t,1)?_.getExternalModuleOrNamespaceExportName(i,t,!1,!0):_.getLocalName(t,!1,!0),d=_.createLogicalOr(l,_.createAssignment(l,_.createObjectLiteralExpression()));if(fe(t)){var p=_.getLocalName(t,!1,!0);d=_.createAssignment(p,d)}var g=_.createExpressionStatement(_.createCallExpression(_.createFunctionExpression(void 0,void 0,void 0,void 0,[_.createParameterDeclaration(void 0,void 0,void 0,c)],void 0,function(t,r){var n=i;i=r;var a=[];f();var o=e.map(t.members,pe);return e.insertStatementsAfterStandardPrologue(a,m()),e.addRange(a,o),i=n,_.createBlock(e.setTextRange(_.createNodeArray(a),t.members),!0)}(t,u)),void 0,[d]));e.setOriginalNode(g,t),s&&(e.setSyntheticLeadingComments(g,void 0),e.setSyntheticTrailingComments(g,void 0));return e.setTextRange(g,t),e.addEmitFlags(g,o),n.push(g),n.push(_.createEndOfDeclarationMarker(t)),n}(o);case 232:return function(r){if(Te(r)){var n=e.getInitializedVariables(r.declarationList);if(0===n.length)return;return e.setTextRange(_.createExpressionStatement(_.inlineExpressions(e.map(n,_e))),r)}return e.visitEachChild(r,k,t)}(o);case 249:return function(t){return _.updateVariableDeclaration(t,e.visitNode(t.name,k,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,k,e.isExpression))}(o);case 256:return ve(o);case 260:return Ce(o);case 274:return function(t){return _.updateJsxSelfClosingElement(t,e.visitNode(t.tagName,k,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,k,e.isJsxAttributes))}(o);case 275:return function(t){return _.updateJsxOpeningElement(t,e.visitNode(t.tagName,k,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,k,e.isJsxAttributes))}(o);default:return e.visitEachChild(o,k,t)}}function R(r){var n=e.getStrictOptionValue(h,"alwaysStrict")&&!(e.isExternalModule(r)&&b>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(r);return _.updateSourceFile(r,e.visitLexicalEnvironment(r.statements,F,t,0,n))}function B(e){return void 0!==e.decorators&&e.decorators.length>0}function j(e){return!!(2048&e.transformFlags)}function J(t){return e.some(t.decorators)||e.some(t.typeParameters)||e.some(t.heritageClauses,j)||e.some(t.members,j)}function K(t){var r=[],n=e.getFirstConstructorWithBody(t),i=n&&e.filter(n.parameters,(function(t){return e.isParameterPropertyDeclaration(t,n)}));if(i)for(var a=0,o=i;a0&&e.parameterIsThisKeyword(n[0]),a=i?1:0,o=i?n.length-1:n.length,s=0;s0?163===r.kind?_.createVoidZero():_.createNull():void 0,s=p().createDecorateHelper(n,i,a,o);return e.setTextRange(s,e.moveRangePastDecorators(r)),e.setEmitFlags(s,1536),s}}function Y(t){return e.visitNode(t.expression,k,e.isExpression)}function X(t,r){var n;if(t){n=[];for(var i=0,a=t;ic&&(a||e.addRange(d,e.visitNodes(n.body.statements,v,e.isStatement,c,_-c)),c=_)}N(d,o,s.createThis()),n&&e.addRange(d,e.visitNodes(n.body.statements,v,e.isStatement,c));return d=s.mergeLexicalEnvironment(d,u()),e.setTextRange(s.createBlock(e.setTextRange(s.createNodeArray(d),n?n.body.statements:r.members),!0),n?n.body:void 0)}(r,i,n);if(!c)return;return e.startOnNewLine(e.setOriginalNode(e.setTextRange(s.createConstructorDeclaration(void 0,void 0,null!=o?o:[],c),i||r),i))}(r,n);return d&&c.push(d),e.addRange(c,e.visitNodes(r.members,D,e.isClassElement)),e.setTextRange(s.createNodeArray(c),r.members)}function F(r){return!(!e.isPropertyDeclaration(r)||e.hasStaticModifier(r))&&(t.getCompilerOptions().useDefineForClassFields?p<99:e.isInitializedProperty(r)||f&&e.isPrivateIdentifierPropertyDeclaration(r))}function N(t,r,n){for(var i=0,a=r;i=0;--t){var r,n=y[t];if(n)if(r=n.get(e.escapedText))return r}}function M(r){var n=s.getGeneratedNameForNode(r),i=O(r.name);if(!i)return e.visitEachChild(r,v,t);var a=r.expression;return(e.isThisProperty(r)||e.isSuperProperty(r)||!e.isSimpleCopiableExpression(r.expression))&&(a=s.createTempVariable(c,!0),w().push(s.createBinaryExpression(a,62,r.expression))),s.createPropertyAccessExpression(s.createParenthesizedExpression(s.createObjectLiteralExpression([s.createSetAccessorDeclaration(void 0,void 0,"value",[s.createParameterDeclaration(void 0,void 0,void 0,n,void 0,void 0,void 0)],s.createBlock([s.createExpressionStatement(T(i,a,n,62))]))])),"value")}function L(t){var r=e.getTargetOfBindingOrAssignmentElement(t);if(r&&e.isPrivateIdentifierPropertyAccessExpression(r)){var n=M(r);return e.isAssignmentExpression(t)?s.updateBinaryExpression(t,n,t.operatorToken,e.visitNode(t.right,v,e.isExpression)):e.isSpreadElement(t)?s.updateSpreadElement(t,n):n}return e.visitNode(t,h)}function R(t){if(e.isPropertyAssignment(t)){var r=e.getTargetOfBindingOrAssignmentElement(t);if(r&&e.isPrivateIdentifierPropertyAccessExpression(r)){var n=e.getInitializerOfBindingOrAssignmentElement(t),i=M(r);return s.updatePropertyAssignment(t,e.visitNode(t.name,v),n?s.createAssignment(i,e.visitNode(n,v)):i)}return s.updatePropertyAssignment(t,e.visitNode(t.name,v),e.visitNode(t.initializer,h))}return e.visitNode(t,v)}}}(u||(u={})),function(e){var t,n;function i(t,r,n,i){var a=0!=(4096&r.getNodeCheckFlags(n)),o=[];return i.forEach((function(r,n){var i=e.unescapeLeadingUnderscores(n),s=[];s.push(t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(t.createPropertyAccessExpression(e.setEmitFlags(t.createSuper(),4),i),4)))),a&&s.push(t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,t.createAssignment(e.setEmitFlags(t.createPropertyAccessExpression(e.setEmitFlags(t.createSuper(),4),i),4),t.createIdentifier("v"))))),o.push(t.createPropertyAssignment(i,t.createObjectLiteralExpression(s)))})),t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_super",48),void 0,void 0,t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[t.createNull(),t.createObjectLiteralExpression(o,!0)]))],2))}!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),function(e){e[e.NonTopLevel=1]="NonTopLevel",e[e.HasLexicalThis=2]="HasLexicalThis"}(n||(n={})),e.transformES2017=function(t){var n,a,o,s,c=t.factory,u=t.getEmitHelperFactory,l=t.resumeLexicalEnvironment,d=t.endLexicalEnvironment,_=t.hoistVariableDeclaration,p=t.getEmitResolver(),f=t.getCompilerOptions(),g=e.getEmitScriptTarget(f),m=0,y=[],v=0,h=t.onEmitNode,D=t.onSubstituteNode;return t.onEmitNode=function(t,r,i){if(1&n&&function(e){var t=e.kind;return 252===t||166===t||165===t||167===t||168===t}(r)){var a=6144&p.getNodeCheckFlags(r);if(a!==m){var o=m;return m=a,h(t,r,i),void(m=o)}}else if(n&&y[e.getNodeId(r)]){o=m;return m=0,h(t,r,i),void(m=o)}h(t,r,i)},t.onSubstituteNode=function(t,n){if(n=D(t,n),1===t&&m)return function(t){switch(t.kind){case 201:return J(t);case 202:return K(t);case 203:return function(t){var n=t.expression;if(e.isSuperProperty(n)){var i=e.isPropertyAccessExpression(n)?J(n):K(n);return c.createCallExpression(c.createPropertyAccessExpression(i,"call"),void 0,r([c.createThis()],t.arguments))}return t}(t)}return t}(n);return n},e.chainBundle(t,(function(r){if(r.isDeclarationFile)return r;x(1,!1),x(2,!e.isEffectiveStrictModeSourceFile(r,f));var n=e.visitEachChild(r,T,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}));function x(e,t){v=t?v|e:v&~e}function b(e){return 0!=(v&e)}function S(){return b(2)}function E(e,t,r){var n=e&~v;if(n){x(n,!0);var i=t(r);return x(n,!1),i}return t(r)}function C(r){return e.visitEachChild(r,T,t)}function T(r){if(0==(64&r.transformFlags))return r;switch(r.kind){case 129:return;case 213:return function(r){if(!b(1))return e.visitEachChild(r,T,t);return e.setOriginalNode(e.setTextRange(c.createYieldExpression(void 0,e.visitNode(r.expression,T,e.isExpression)),r),r)}(r);case 165:return E(3,A,r);case 251:return E(3,F,r);case 208:return E(3,N,r);case 209:return E(1,P,r);case 201:return o&&e.isPropertyAccessExpression(r)&&105===r.expression.kind&&o.add(r.name.escapedText),e.visitEachChild(r,T,t);case 202:return o&&105===r.expression.kind&&(s=!0),e.visitEachChild(r,T,t);case 167:case 168:case 166:case 252:case 221:return E(3,C,r);default:return e.visitEachChild(r,T,t)}}function k(r){if(e.isNodeWithPossibleHoistedDeclaration(r))switch(r.kind){case 232:return function(r){if(I(r.declarationList)){var n=O(r.declarationList,!1);return n?c.createExpressionStatement(n):void 0}return e.visitEachChild(r,T,t)}(r);case 237:return function(t){var r=t.initializer;return c.updateForStatement(t,I(r)?O(r,!1):e.visitNode(t.initializer,T,e.isForInitializer),e.visitNode(t.condition,T,e.isExpression),e.visitNode(t.incrementor,T,e.isExpression),e.visitNode(t.statement,k,e.isStatement,c.liftToBlock))}(r);case 238:return function(t){return c.updateForInStatement(t,I(t.initializer)?O(t.initializer,!0):e.visitNode(t.initializer,T,e.isForInitializer),e.visitNode(t.expression,T,e.isExpression),e.visitNode(t.statement,k,e.isStatement,c.liftToBlock))}(r);case 239:return function(t){return c.updateForOfStatement(t,e.visitNode(t.awaitModifier,T,e.isToken),I(t.initializer)?O(t.initializer,!0):e.visitNode(t.initializer,T,e.isForInitializer),e.visitNode(t.expression,T,e.isExpression),e.visitNode(t.statement,k,e.isStatement,c.liftToBlock))}(r);case 287:return function(r){var n,i=new e.Set;if(w(r.variableDeclaration,i),i.forEach((function(t,r){a.has(r)&&(n||(n=new e.Set(a)),n.delete(r))})),n){var o=a;a=n;var s=e.visitEachChild(r,k,t);return a=o,s}return e.visitEachChild(r,k,t)}(r);case 230:case 244:case 258:case 284:case 285:case 247:case 235:case 236:case 234:case 243:case 245:return e.visitEachChild(r,k,t);default:return e.Debug.assertNever(r,"Unhandled node.")}return T(r)}function A(r){return c.updateMethodDeclaration(r,void 0,e.visitNodes(r.modifiers,T,e.isModifier),r.asteriskToken,r.name,void 0,void 0,e.visitParameterList(r.parameters,T,t),void 0,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,T,t))}function F(r){return c.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,T,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,T,t),void 0,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,T,t))}function N(r){return c.updateFunctionExpression(r,e.visitNodes(r.modifiers,T,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,T,t),void 0,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,T,t))}function P(r){return c.updateArrowFunction(r,e.visitNodes(r.modifiers,T,e.isModifier),void 0,e.visitParameterList(r.parameters,T,t),void 0,r.equalsGreaterThanToken,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,T,t))}function w(t,r){var n=t.name;if(e.isIdentifier(n))r.add(n.escapedText);else for(var i=0,a=n.elements;i=2&&6144&p.getNodeCheckFlags(r);if(P&&(0==(1&n)&&(n|=1,t.enableSubstitution(203),t.enableSubstitution(201),t.enableSubstitution(202),t.enableEmitNotification(252),t.enableEmitNotification(165),t.enableEmitNotification(167),t.enableEmitNotification(168),t.enableEmitNotification(166),t.enableEmitNotification(232)),o.size)){var I=i(c,p,r,o);y[e.getNodeId(I)]=!0,e.insertStatementsAfterStandardPrologue(F,[I])}var O=c.createBlock(F,!0);e.setTextRange(O,r.body),P&&s&&(4096&p.getNodeCheckFlags(r)?e.addEmitHelper(O,e.advancedAsyncSuperHelper):2048&p.getNodeCheckFlags(r)&&e.addEmitHelper(O,e.asyncSuperHelper)),b=O}return a=h,m||(o=E,s=C),b}function j(t,r){return e.isBlock(t)?c.updateBlock(t,e.visitNodes(t.statements,k,e.isStatement,r)):c.converters.convertToFunctionBlock(e.visitNode(t,k,e.isConciseBody))}function J(t){return 105===t.expression.kind?e.setTextRange(c.createPropertyAccessExpression(c.createUniqueName("_super",48),t.name),t):t}function K(t){return 105===t.expression.kind?(r=t.argumentExpression,n=t,4096&m?e.setTextRange(c.createPropertyAccessExpression(c.createCallExpression(c.createUniqueName("_superIndex",48),void 0,[r]),"value"),n):e.setTextRange(c.createCallExpression(c.createUniqueName("_superIndex",48),void 0,[r]),n)):t;var r,n}},e.createSuperAccessVariableStatement=i}(u||(u={})),function(e){var t,n;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),function(e){e[e.None=0]="None",e[e.HasLexicalThis=1]="HasLexicalThis",e[e.IterationContainer=2]="IterationContainer",e[e.AncestorFactsMask=3]="AncestorFactsMask",e[e.SourceFileIncludes=1]="SourceFileIncludes",e[e.SourceFileExcludes=2]="SourceFileExcludes",e[e.StrictModeSourceFileIncludes=0]="StrictModeSourceFileIncludes",e[e.ClassOrFunctionIncludes=1]="ClassOrFunctionIncludes",e[e.ClassOrFunctionExcludes=2]="ClassOrFunctionExcludes",e[e.ArrowFunctionIncludes=0]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=2]="ArrowFunctionExcludes",e[e.IterationStatementIncludes=2]="IterationStatementIncludes",e[e.IterationStatementExcludes=0]="IterationStatementExcludes"}(n||(n={})),e.transformES2018=function(t){var n=t.factory,i=t.getEmitHelperFactory,a=t.resumeLexicalEnvironment,o=t.endLexicalEnvironment,s=t.hoistVariableDeclaration,c=t.getEmitResolver(),u=t.getCompilerOptions(),l=e.getEmitScriptTarget(u),d=t.onEmitNode;t.onEmitNode=function(t,r,n){if(1&p&&function(e){var t=e.kind;return 252===t||166===t||165===t||167===t||168===t}(r)){var i=6144&c.getNodeCheckFlags(r);if(i!==D){var a=D;return D=i,d(t,r,n),void(D=a)}}else if(p&&b[e.getNodeId(r)]){a=D;return D=0,d(t,r,n),void(D=a)}d(t,r,n)};var _=t.onSubstituteNode;t.onSubstituteNode=function(t,i){if(i=_(t,i),1===t&&D)return function(t){switch(t.kind){case 201:return W(t);case 202:return H(t);case 203:return function(t){var i=t.expression;if(e.isSuperProperty(i)){var a=e.isPropertyAccessExpression(i)?W(i):H(i);return n.createCallExpression(n.createPropertyAccessExpression(a,"call"),void 0,r([n.createThis()],t.arguments))}return t}(t)}return t}(i);return i};var p,f,g,m,y,v,h=!1,D=0,x=0,b=[];return e.chainBundle(t,(function(r){if(r.isDeclarationFile)return r;g=r;var i=function(r){var i=S(2,e.isEffectiveStrictModeSourceFile(r,u)?0:1);h=!1;var a=e.visitEachChild(r,T,t),o=e.concatenate(a.statements,m&&[n.createVariableStatement(void 0,n.createVariableDeclarationList(m))]),s=n.updateSourceFile(a,e.setTextRange(n.createNodeArray(o),r.statements));return E(i),s}(r);return e.addEmitHelpers(i,t.readEmitHelpers()),g=void 0,m=void 0,i}));function S(e,t){var r=x;return x=3&(x&~e|t),r}function E(e){x=e}function C(t){m=e.append(m,n.createVariableDeclaration(t))}function T(e){return P(e,!1)}function k(e){return P(e,!0)}function A(e){if(129!==e.kind)return e}function F(e,t,r,n){if(function(e,t){return x!==(x&~e|t)}(r,n)){var i=S(r,n),a=e(t);return E(i),a}return e(t)}function N(r){return e.visitEachChild(r,T,t)}function P(a,o){if(0==(32&a.transformFlags))return a;switch(a.kind){case 213:return function(r){if(2&f&&1&f)return e.setOriginalNode(e.setTextRange(n.createYieldExpression(void 0,i().createAwaitHelper(e.visitNode(r.expression,T,e.isExpression))),r),r);return e.visitEachChild(r,T,t)}(a);case 219:return function(r){if(2&f&&1&f){if(r.asteriskToken){var a=e.visitNode(e.Debug.assertDefined(r.expression),T,e.isExpression);return e.setOriginalNode(e.setTextRange(n.createYieldExpression(void 0,i().createAwaitHelper(n.updateYieldExpression(r,r.asteriskToken,e.setTextRange(i().createAsyncDelegatorHelper(e.setTextRange(i().createAsyncValuesHelper(a),a)),a)))),r),r)}return e.setOriginalNode(e.setTextRange(n.createYieldExpression(void 0,M(r.expression?e.visitNode(r.expression,T,e.isExpression):n.createVoidZero())),r),r)}return e.visitEachChild(r,T,t)}(a);case 242:return function(r){if(2&f&&1&f)return n.updateReturnStatement(r,M(r.expression?e.visitNode(r.expression,T,e.isExpression):n.createVoidZero()));return e.visitEachChild(r,T,t)}(a);case 245:return function(r){if(2&f){var i=e.unwrapInnermostStatementOfLabel(r);return 239===i.kind&&i.awaitModifier?O(i,r):n.restoreEnclosingLabel(e.visitNode(i,T,e.isStatement,n.liftToBlock),r)}return e.visitEachChild(r,T,t)}(a);case 200:return function(r){if(16384&r.transformFlags){var a=function(t){for(var r,i=[],a=0,o=t;a1){for(var s=1;s=2&&6144&c.getNodeCheckFlags(r);if(g){0==(1&p)&&(p|=1,t.enableSubstitution(203),t.enableSubstitution(201),t.enableSubstitution(202),t.enableEmitNotification(252),t.enableEmitNotification(165),t.enableEmitNotification(167),t.enableEmitNotification(168),t.enableEmitNotification(166),t.enableEmitNotification(232));var m=e.createSuperAccessVariableStatement(n,c,r,y);b[e.getNodeId(m)]=!0,e.insertStatementsAfterStandardPrologue(s,[m])}s.push(f),e.insertStatementsAfterStandardPrologue(s,o());var h=n.updateBlock(r.body,s);return g&&v&&(4096&c.getNodeCheckFlags(r)?e.addEmitHelper(h,e.advancedAsyncSuperHelper):2048&c.getNodeCheckFlags(r)&&e.addEmitHelper(h,e.asyncSuperHelper)),y=d,v=_,h}function V(t){var r;a();var i=0,s=[],c=null!==(r=e.visitNode(t.body,T,e.isConciseBody))&&void 0!==r?r:n.createBlock([]);e.isBlock(c)&&(i=n.copyPrologue(c.statements,s,!1,T)),e.addRange(s,q(void 0,t));var u=o();if(i>0||e.some(s)||e.some(u)){var l=n.converters.convertToFunctionBlock(c,!0);return e.insertStatementsAfterStandardPrologue(s,u),e.addRange(s,l.statements.slice(i)),n.updateBlock(l,e.setTextRange(n.createNodeArray(s),l.statements))}return c}function q(r,i){for(var a=0,o=i.parameters;a1?"jsxs":"jsx"}(e))}function l(t){var r,n,o="createElement"===t?i.importSpecifier:e.getJSXRuntimeImport(i.importSpecifier,s),c=null===(n=null===(r=i.utilizedImplicitRuntimeImports)||void 0===r?void 0:r.get(o))||void 0===n?void 0:n.get(t);if(c)return c.name;i.utilizedImplicitRuntimeImports||(i.utilizedImplicitRuntimeImports=e.createMap());var u=i.utilizedImplicitRuntimeImports.get(o);u||(u=e.createMap(),i.utilizedImplicitRuntimeImports.set(o,u));var l=a.createUniqueName("_"+t,112),d=a.createImportSpecifier(a.createIdentifier(t),l);return l.generatedImportReference=d,u.set(t,d),l}function d(t){return 2&t.transformFlags?function(t){switch(t.kind){case 273:return f(t,!1);case 274:return g(t,!1);case 277:return m(t,!1);case 283:return F(t);default:return e.visitEachChild(t,d,r)}}(t):t}function _(t){switch(t.kind){case 11:return function(t){var r=function(t){for(var r,n=0,i=-1,a=0;a1?a.createTrue():a.createFalse());var f=e.getLineAndCharacterOfPosition(p,d.pos);_.push(a.createObjectLiteralExpression([a.createPropertyAssignment("fileName",c()),a.createPropertyAssignment("lineNumber",a.createNumericLiteral(f.line+1)),a.createPropertyAssignment("columnNumber",a.createNumericLiteral(f.character+1))])),_.push(a.createThis())}}var g=e.setTextRange(a.createCallExpression(u(o),void 0,_),d);return l&&e.startOnNewLine(g),g}function D(t,c,u,d){var p,f=A(t),g=t.attributes.properties;if(0===g.length)p=a.createNull();else{var m=e.flatten(e.spanMap(g,e.isJsxSpreadAttribute,(function(t,r){return r?e.map(t,S):a.createObjectLiteralExpression(e.map(t,E))})));e.isJsxSpreadAttribute(g[0])&&m.unshift(a.createObjectLiteralExpression()),(p=e.singleOrUndefined(m))||(p=o().createAssignHelper(m))}var y=void 0===i.importSpecifier?e.createJsxFactoryExpression(a,r.getEmitResolver().getJsxFactoryEntity(n),s.reactNamespace,t):l("createElement"),v=e.createExpressionForJsxElement(a,y,f,p,e.mapDefined(c,_),d);return u&&e.startOnNewLine(v),v}function x(t,r,n,i){var o;if(r&&r.length){var s=y(r);s&&(o=s)}return h(l("Fragment"),o||a.createObjectLiteralExpression([]),void 0,e.length(e.getSemanticJsxChildren(r)),n,i)}function b(t,i,o,c){var u=e.createExpressionForJsxFragment(a,r.getEmitResolver().getJsxFactoryEntity(n),r.getEmitResolver().getJsxFragmentFactoryEntity(n),s.reactNamespace,e.mapDefined(i,_),t,c);return o&&e.startOnNewLine(u),u}function S(t){return e.visitNode(t.expression,d,e.isExpression)}function E(t){var r=function(t){var r=t.name,n=e.idText(r);return/^[A-Za-z_]\w*$/.test(n)?r:a.createStringLiteral(n)}(t),n=C(t.initializer);return a.createPropertyAssignment(r,n)}function C(t){if(void 0===t)return a.createTrue();if(10===t.kind){var r=void 0!==t.singleQuote?t.singleQuote:!e.isStringDoubleQuoted(t,n),i=a.createStringLiteral((o=t.text,((s=k(o))===o?void 0:s)||t.text),r);return e.setTextRange(i,t)}return 283===t.kind?void 0===t.expression?a.createTrue():e.visitNode(t.expression,d,e.isExpression):e.Debug.failBadSyntaxKind(t);var o,s}function T(e,t){var r=k(t);return void 0===e?r:e+" "+r}function k(r){return r.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(function(r,n,i,a,o,s,c){if(o)return e.utf16EncodeAsString(parseInt(o,10));if(s)return e.utf16EncodeAsString(parseInt(s,16));var u=t.get(c);return u?e.utf16EncodeAsString(u):r}))}function A(t){if(273===t.kind)return A(t.openingElement);var r=t.tagName;return e.isIdentifier(r)&&e.isIntrinsicJsxName(r.escapedText)?a.createStringLiteral(e.idText(r)):e.createExpressionFromEntityName(a,r)}function F(t){return e.visitNode(t.expression,d,e.isExpression)}};var t=new e.Map(e.getEntries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))}(u||(u={})),function(e){e.transformES2016=function(t){var r=t.factory,n=t.hoistVariableDeclaration;return e.chainBundle(t,(function(r){if(r.isDeclarationFile)return r;return e.visitEachChild(r,i,t)}));function i(a){if(0==(128&a.transformFlags))return a;switch(a.kind){case 216:return function(a){switch(a.operatorToken.kind){case 66:return function(t){var a,o,s=e.visitNode(t.left,i,e.isExpression),c=e.visitNode(t.right,i,e.isExpression);if(e.isElementAccessExpression(s)){var u=r.createTempVariable(n),l=r.createTempVariable(n);a=e.setTextRange(r.createElementAccessExpression(e.setTextRange(r.createAssignment(u,s.expression),s.expression),e.setTextRange(r.createAssignment(l,s.argumentExpression),s.argumentExpression)),s),o=e.setTextRange(r.createElementAccessExpression(u,l),s)}else if(e.isPropertyAccessExpression(s)){u=r.createTempVariable(n);a=e.setTextRange(r.createPropertyAccessExpression(e.setTextRange(r.createAssignment(u,s.expression),s.expression),s.name),s),o=e.setTextRange(r.createPropertyAccessExpression(u,s.name),s)}else a=s,o=s;return e.setTextRange(r.createAssignment(a,e.setTextRange(r.createGlobalMethodCall("Math","pow",[o,c]),t)),t)}(a);case 42:return function(t){var n=e.visitNode(t.left,i,e.isExpression),a=e.visitNode(t.right,i,e.isExpression);return e.setTextRange(r.createGlobalMethodCall("Math","pow",[n,a]),t)}(a);default:return e.visitEachChild(a,i,t)}}(a);default:return e.visitEachChild(a,i,t)}}}}(u||(u={})),function(e){var t,n,i,a,o;!function(e){e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings"}(t||(t={})),function(e){e[e.Body=1]="Body",e[e.Initializer=2]="Initializer"}(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(t){var n,i,a,o,s,c,u=t.factory,l=t.getEmitHelperFactory,d=t.startLexicalEnvironment,_=t.resumeLexicalEnvironment,p=t.endLexicalEnvironment,f=t.hoistVariableDeclaration,g=t.getCompilerOptions(),m=t.getEmitResolver(),y=t.onSubstituteNode,v=t.onEmitNode;function h(t){o=e.append(o,u.createVariableDeclaration(t))}return t.onEmitNode=function(t,r,n){if(1&c&&e.isFunctionLike(r)){var i=D(16286,8&e.getEmitFlags(r)?81:65);return v(t,r,n),void x(i,0,0)}v(t,r,n)},t.onSubstituteNode=function(t,r){if(r=y(t,r),1===t)return function(t){switch(t.kind){case 78:return function(t){if(2&c&&!e.isInternalName(t)){var r=m.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(u.getGeneratedNameForNode(e.getNameOfDeclaration(r)),t)}return t}(t);case 107:return function(t){if(1&c&&16&a)return e.setTextRange(u.createUniqueName("_this",48),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 198:case 252:case 255:case 249:return e.parent.name===e&&m.isDeclarationWithCollidingName(e.parent)}return!1}(r))return e.setTextRange(u.getGeneratedNameForNode(r),t)}return t}(r);return r},e.chainBundle(t,(function(r){if(r.isDeclarationFile)return r;n=r,i=r.text;var s=function(t){var r=D(8064,64),n=[],i=[];d();var a=u.copyPrologue(t.statements,n,!1,E);e.addRange(i,e.visitNodes(t.statements,E,e.isStatement,a)),o&&i.push(u.createVariableStatement(void 0,u.createVariableDeclarationList(o)));return u.mergeLexicalEnvironment(n,p()),j(n,t),x(r,0,0),u.updateSourceFile(t,e.setTextRange(u.createNodeArray(e.concatenate(n,i)),t.statements))}(r);return e.addEmitHelpers(s,t.readEmitHelpers()),n=void 0,i=void 0,o=void 0,a=0,s}));function D(e,t){var r=a;return a=16383&(a&~e|t),r}function x(e,t,r){a=-16384&(a&~t|r)|e}function b(e){return 0!=(8192&a)&&242===e.kind&&!e.expression}function S(t){return 0!=(256&t.transformFlags)||void 0!==s||8192&a&&function(t){return 1048576&t.transformFlags&&(e.isReturnStatement(t)||e.isIfStatement(t)||e.isWithStatement(t)||e.isSwitchStatement(t)||e.isCaseBlock(t)||e.isCaseClause(t)||e.isDefaultClause(t)||e.isTryStatement(t)||e.isCatchClause(t)||e.isLabeledStatement(t)||e.isIterationStatement(t,!1)||e.isBlock(t))}(t)||e.isIterationStatement(t,!1)&&de(t)||0!=(33554432&e.getEmitFlags(t))}function E(e){return S(e)?k(e,!1):e}function C(e){return S(e)?k(e,!0):e}function T(e){return 105===e.kind?we(!0):E(e)}function k(i,o){switch(i.kind){case 123:return;case 252:return function(t){var r=u.createVariableDeclaration(u.getLocalName(t,!0),void 0,void 0,N(t));e.setOriginalNode(r,t);var n=[],i=u.createVariableStatement(void 0,u.createVariableDeclarationList([r]));if(e.setOriginalNode(i,t),e.setTextRange(i,t),e.startOnNewLine(i),n.push(i),e.hasSyntacticModifier(t,1)){var a=e.hasSyntacticModifier(t,512)?u.createExportDefault(u.getLocalName(t)):u.createExternalModuleExport(u.getLocalName(t));e.setOriginalNode(a,i),n.push(a)}var o=e.getEmitFlags(t);0==(4194304&o)&&(n.push(u.createEndOfDeclarationMarker(t)),e.setEmitFlags(i,4194304|o));return e.singleOrMany(n)}(i);case 221:return function(e){return N(e)}(i);case 160:return function(t){return t.dotDotDotToken?void 0:e.isBindingPattern(t.name)?e.setOriginalNode(e.setTextRange(u.createParameterDeclaration(void 0,void 0,void 0,u.getGeneratedNameForNode(t),void 0,void 0,void 0),t),t):t.initializer?e.setOriginalNode(e.setTextRange(u.createParameterDeclaration(void 0,void 0,void 0,t.name,void 0,void 0,void 0),t),t):t}(i);case 251:return function(r){var n=s;s=void 0;var i=D(16286,65),o=e.visitParameterList(r.parameters,E,t),c=H(r),l=16384&a?u.getLocalName(r):r.name;return x(i,49152,0),s=n,u.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,E,e.isModifier),r.asteriskToken,l,void 0,o,void 0,c)}(i);case 209:return function(r){4096&r.transformFlags&&(a|=32768);var n=s;s=void 0;var i=D(15232,66),o=u.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(r.parameters,E,t),void 0,H(r));e.setTextRange(o,r),e.setOriginalNode(o,r),e.setEmitFlags(o,8),32768&a&&Oe();return x(i,0,0),s=n,o}(i);case 208:return function(r){var n=262144&e.getEmitFlags(r)?D(16278,69):D(16286,65),i=s;s=void 0;var o=e.visitParameterList(r.parameters,E,t),c=H(r),l=16384&a?u.getLocalName(r):r.name;return x(n,49152,0),s=i,u.updateFunctionExpression(r,void 0,r.asteriskToken,l,void 0,o,void 0,c)}(i);case 249:return X(i);case 78:return F(i);case 250:return function(r){if(3&r.flags||131072&r.transformFlags){3&r.flags&&Ie();var n=e.flatMap(r.declarations,1&r.flags?Y:X),i=u.createVariableDeclarationList(n);return e.setOriginalNode(i,r),e.setTextRange(i,r),e.setCommentRange(i,r),131072&r.transformFlags&&(e.isBindingPattern(r.declarations[0].name)||e.isBindingPattern(e.last(r.declarations).name))&&e.setSourceMapRange(i,function(t){for(var r=-1,n=-1,i=0,a=t;i0?(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(u.createVariableStatement(void 0,u.createVariableDeclarationList(e.flattenDestructuringBinding(n,E,t,0,u.getGeneratedNameForNode(n)))),1048576)),!0):!!a&&(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(u.createExpressionStatement(u.createAssignment(u.getGeneratedNameForNode(n),e.visitNode(a,E,e.isExpression))),1048576)),!0)}function R(t,r,n,i){i=e.visitNode(i,E,e.isExpression);var a=u.createIfStatement(u.createTypeCheck(u.cloneNode(n),"undefined"),e.setEmitFlags(e.setTextRange(u.createBlock([u.createExpressionStatement(e.setEmitFlags(e.setTextRange(u.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(u.cloneNode(n),n),n.parent),48),e.setEmitFlags(i,1584|e.getEmitFlags(i))),r),1536))]),r),1953));e.startOnNewLine(a),e.setTextRange(a,r),e.setEmitFlags(a,1050528),e.insertStatementAfterCustomPrologue(t,a)}function B(r,n,i){var a=[],o=e.lastOrUndefined(n.parameters);if(!function(e,t){return!(!e||!e.dotDotDotToken||t)}(o,i))return!1;var s=78===o.name.kind?e.setParent(e.setTextRange(u.cloneNode(o.name),o.name),o.name.parent):u.createTempVariable(void 0);e.setEmitFlags(s,48);var c=78===o.name.kind?u.cloneNode(o.name):s,l=n.parameters.length-1,d=u.createLoopVariable();a.push(e.setEmitFlags(e.setTextRange(u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(s,void 0,void 0,u.createArrayLiteralExpression([]))])),o),1048576));var _=u.createForStatement(e.setTextRange(u.createVariableDeclarationList([u.createVariableDeclaration(d,void 0,void 0,u.createNumericLiteral(l))]),o),e.setTextRange(u.createLessThan(d,u.createPropertyAccessExpression(u.createIdentifier("arguments"),"length")),o),e.setTextRange(u.createPostfixIncrement(d),o),u.createBlock([e.startOnNewLine(e.setTextRange(u.createExpressionStatement(u.createAssignment(u.createElementAccessExpression(c,0===l?d:u.createSubtract(d,u.createNumericLiteral(l))),u.createElementAccessExpression(u.createIdentifier("arguments"),d))),o))]));return e.setEmitFlags(_,1048576),e.startOnNewLine(_),a.push(_),78!==o.name.kind&&a.push(e.setEmitFlags(e.setTextRange(u.createVariableStatement(void 0,u.createVariableDeclarationList(e.flattenDestructuringBinding(o,E,t,0,c))),o),1048576)),e.insertStatementsAfterCustomPrologue(r,a),!0}function j(e,t){return!!(32768&a&&209!==t.kind)&&(J(e,t,u.createThis()),!0)}function J(t,r,n){Oe();var i=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createUniqueName("_this",48),void 0,void 0,n)]));e.setEmitFlags(i,1050112),e.setSourceMapRange(i,r),e.insertStatementAfterCustomPrologue(t,i)}function K(t,r,n){if(16384&a){var i=void 0;switch(r.kind){case 209:return t;case 165:case 167:case 168:i=u.createVoidZero();break;case 166:i=u.createPropertyAccessExpression(e.setEmitFlags(u.createThis(),4),"constructor");break;case 251:case 208:i=u.createConditionalExpression(u.createLogicalAnd(e.setEmitFlags(u.createThis(),4),u.createBinaryExpression(e.setEmitFlags(u.createThis(),4),101,u.getLocalName(r))),void 0,u.createPropertyAccessExpression(e.setEmitFlags(u.createThis(),4),"constructor"),void 0,u.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(r)}var o=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createUniqueName("_newTarget",48),void 0,void 0,i)]));e.setEmitFlags(o,1050112),n&&(t=t.slice()),e.insertStatementAfterCustomPrologue(t,o)}return t}function z(t){return e.setTextRange(u.createEmptyStatement(),t)}function U(r,n,i){var a,o=e.getCommentRange(n),s=e.getSourceMapRange(n),c=W(n,n,void 0,i),l=e.visitNode(n.name,E,e.isPropertyName);if(!e.isPrivateIdentifier(l)&&t.getCompilerOptions().useDefineForClassFields){var d=e.isComputedPropertyName(l)?l.expression:e.isIdentifier(l)?u.createStringLiteral(e.unescapeLeadingUnderscores(l.escapedText)):l;a=u.createObjectDefinePropertyCall(r,d,u.createPropertyDescriptor({value:c,enumerable:!1,writable:!0,configurable:!0}))}else{var _=e.createMemberAccessForPropertyName(u,r,l,n.name);a=u.createAssignment(_,c)}e.setEmitFlags(c,1536),e.setSourceMapRange(c,s);var p=e.setTextRange(u.createExpressionStatement(a),n);return e.setOriginalNode(p,n),e.setCommentRange(p,o),e.setEmitFlags(p,48),p}function V(t,r,n){var i=u.createExpressionStatement(q(t,r,n,!1));return e.setEmitFlags(i,1536),e.setSourceMapRange(i,e.getSourceMapRange(r.firstAccessor)),i}function q(t,r,n,i){var a=r.firstAccessor,o=r.getAccessor,s=r.setAccessor,c=e.setParent(e.setTextRange(u.cloneNode(t),t),t.parent);e.setEmitFlags(c,1568),e.setSourceMapRange(c,a.name);var l=e.visitNode(a.name,E,e.isPropertyName);if(e.isPrivateIdentifier(l))return e.Debug.failBadSyntaxKind(l,"Encountered unhandled private identifier while transforming ES2015.");var d=e.createExpressionForPropertyName(u,l);e.setEmitFlags(d,1552),e.setSourceMapRange(d,a.name);var _=[];if(o){var p=W(o,void 0,void 0,n);e.setSourceMapRange(p,e.getSourceMapRange(o)),e.setEmitFlags(p,512);var f=u.createPropertyAssignment("get",p);e.setCommentRange(f,e.getCommentRange(o)),_.push(f)}if(s){var g=W(s,void 0,void 0,n);e.setSourceMapRange(g,e.getSourceMapRange(s)),e.setEmitFlags(g,512);var m=u.createPropertyAssignment("set",g);e.setCommentRange(m,e.getCommentRange(s)),_.push(m)}_.push(u.createPropertyAssignment("enumerable",o||s?u.createFalse():u.createTrue()),u.createPropertyAssignment("configurable",u.createTrue()));var y=u.createCallExpression(u.createPropertyAccessExpression(u.createIdentifier("Object"),"defineProperty"),void 0,[c,d,u.createObjectLiteralExpression(_,!0)]);return i&&e.startOnNewLine(y),y}function W(r,n,i,o){var c=s;s=void 0;var l=o&&e.isClassLike(o)&&!e.hasSyntacticModifier(r,32)?D(16286,73):D(16286,65),d=e.visitParameterList(r.parameters,E,t),_=H(r);return 16384&a&&!i&&(251===r.kind||208===r.kind)&&(i=u.getGeneratedNameForNode(r)),x(l,49152,0),s=c,e.setOriginalNode(e.setTextRange(u.createFunctionExpression(void 0,r.asteriskToken,i,void 0,d,void 0,_),n),r)}function H(t){var r,i,a,o=!1,s=!1,c=[],l=[],d=t.body;if(_(),e.isBlock(d)&&(a=u.copyStandardPrologue(d.statements,c,!1),a=u.copyCustomPrologue(d.statements,l,a,E,e.isHoistedFunction),a=u.copyCustomPrologue(d.statements,l,a,E,e.isHoistedVariableStatement)),o=M(l,t)||o,o=B(l,t,!1)||o,e.isBlock(d))a=u.copyCustomPrologue(d.statements,l,a,E),r=d.statements,e.addRange(l,e.visitNodes(d.statements,E,e.isStatement,a)),!o&&d.multiLine&&(o=!0);else{e.Debug.assert(209===t.kind),r=e.moveRangeEnd(d,-1);var f=t.equalsGreaterThanToken;e.nodeIsSynthesized(f)||e.nodeIsSynthesized(d)||(e.rangeEndIsOnSameLineAsRangeStart(f,d,n)?s=!0:o=!0);var g=e.visitNode(d,E,e.isExpression),m=u.createReturnStatement(g);e.setTextRange(m,d),e.moveSyntheticComments(m,d),e.setEmitFlags(m,1440),l.push(m),i=d}if(u.mergeLexicalEnvironment(c,p()),K(c,t,!1),j(c,t),e.some(c)&&(o=!0),l.unshift.apply(l,c),e.isBlock(d)&&e.arrayIsEqualTo(l,d.statements))return d;var y=u.createBlock(e.setTextRange(u.createNodeArray(l),r),o);return e.setTextRange(y,t.body),!o&&s&&e.setEmitFlags(y,1),i&&e.setTokenSourceMapRange(y,19,i),e.setOriginalNode(y,t.body),y}function G(r,n){return e.isDestructuringAssignment(r)?e.flattenDestructuringAssignment(r,E,t,0,!n):27===r.operatorToken.kind?u.updateBinaryExpression(r,e.visitNode(r.left,C,e.isExpression),r.operatorToken,e.visitNode(r.right,n?C:E,e.isExpression)):e.visitEachChild(r,E,t)}function Y(r){var n=r.name;return e.isBindingPattern(n)?X(r):!r.initializer&&function(e){var t=m.getNodeCheckFlags(e),r=262144&t,n=524288&t;return!(0!=(64&a)||r&&n&&0!=(512&a))&&0==(4096&a)&&(!m.isDeclarationWithCollidingName(e)||n&&!r&&0==(6144&a))}(r)?u.updateVariableDeclaration(r,r.name,void 0,void 0,u.createVoidZero()):e.visitEachChild(r,E,t)}function X(r){var n,i=D(32,0);return n=e.isBindingPattern(r.name)?e.flattenDestructuringBinding(r,E,t,0,void 0,0!=(32&i)):e.visitEachChild(r,E,t),x(i,0,0),n}function Q(t){s.labels.set(e.idText(t.label),!0)}function $(t){s.labels.set(e.idText(t.label),!1)}function Z(r,n,i,o,c){var l=D(r,n),_=function(r,n,i,o){if(!de(r)){var c=void 0;s&&(c=s.allowedNonLabeledJumps,s.allowedNonLabeledJumps=6);var l=o?o(r,n,void 0,i):u.restoreEnclosingLabel(e.isForStatement(r)?function(t){return u.updateForStatement(t,e.visitNode(t.initializer,C,e.isForInitializer),e.visitNode(t.condition,E,e.isExpression),e.visitNode(t.incrementor,C,e.isExpression),e.visitNode(t.statement,E,e.isStatement,u.liftToBlock))}(r):e.visitEachChild(r,E,t),n,s&&$);return s&&(s.allowedNonLabeledJumps=c),l}var _=function(t){var r;switch(t.kind){case 237:case 238:case 239:var n=t.initializer;n&&250===n.kind&&(r=n)}var i=[],a=[];if(r&&3&e.getCombinedNodeFlags(r))for(var o=ue(t),c=0,u=r.declarations;c=80&&r<=115)return e.setTextRange(i.createStringLiteralFromNode(t),t)}}}(u||(u={})),function(e){var t,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"}(t||(t={})),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(t){var n,i,a,o,s,c,u,l,d,_,p=t.factory,f=t.getEmitHelperFactory,g=t.resumeLexicalEnvironment,m=t.endLexicalEnvironment,y=t.hoistFunctionDeclaration,v=t.hoistVariableDeclaration,h=t.getCompilerOptions(),D=e.getEmitScriptTarget(h),x=t.getEmitResolver(),b=t.onSubstituteNode;t.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=x.getReferencedValueDeclaration(r);if(a){var o=i[e.getOriginalNodeId(a)];if(o){var s=e.setParent(e.setTextRange(p.cloneNode(o),o),o.parent);return e.setSourceMapRange(s,t),e.setCommentRange(s,t),s}}}}return t}(t);return t}(r);return r};var S,E,C,T,k,A,F,N,P,w,I,O,M=1,L=0,R=0;return e.chainBundle(t,(function(r){if(r.isDeclarationFile||0==(512&r.transformFlags))return r;var n=e.visitEachChild(r,B,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}));function B(r){var n=r.transformFlags;return o?function(r){switch(r.kind){case 235:case 236:return function(r){return o?(oe(),r=e.visitEachChild(r,B,t),ce(),r):e.visitEachChild(r,B,t)}(r);case 244:return function(r){o&&re({kind:2,isScript:!0,breakLabel:-1});r=e.visitEachChild(r,B,t),o&&ue();return r}(r);case 245:return function(r){o&&re({kind:4,isScript:!0,labelText:e.idText(r.label),breakLabel:-1});r=e.visitEachChild(r,B,t),o&&le();return r}(r);default:return j(r)}}(r):a?j(r):e.isFunctionLikeDeclaration(r)&&r.asteriskToken?function(t){switch(t.kind){case 251:return J(t);case 208:return K(t);default:return e.Debug.failBadSyntaxKind(t)}}(r):512&n?e.visitEachChild(r,B,t):r}function j(r){switch(r.kind){case 251:return J(r);case 208:return K(r);case 167:case 168:return function(r){var n=a,i=o;return a=!1,o=!1,r=e.visitEachChild(r,B,t),a=n,o=i,r}(r);case 232:return function(t){if(262144&t.transformFlags)return void G(t.declarationList);if(1048576&e.getEmitFlags(t))return t;for(var r=0,n=t.declarationList.declarations;r0?p.inlineExpressions(e.map(c,Y)):void 0,e.visitNode(r.condition,B,e.isExpression),e.visitNode(r.incrementor,B,e.isExpression),e.visitNode(r.statement,B,e.isStatement,p.liftToBlock))}else r=e.visitEachChild(r,B,t);o&&ce();return r}(r);case 238:return function(r){o&&oe();var n=r.initializer;if(e.isVariableDeclarationList(n)){for(var i=0,a=n.declarations;i0)return he(n,r)}return e.visitEachChild(r,B,t)}(r);case 240:return function(r){if(o){var n=me(r.label&&e.idText(r.label));if(n>0)return he(n,r)}return e.visitEachChild(r,B,t)}(r);case 242:return function(t){return r=e.visitNode(t.expression,B,e.isExpression),n=t,e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression(r?[ve(2),r]:[ve(2)])),n);var r,n}(r);default:return 262144&r.transformFlags?function(r){switch(r.kind){case 216:return function(r){var n=e.getExpressionAssociativity(r);switch(n){case 0:return function(r){if(X(r.right))return e.isLogicalOperator(r.operatorToken.kind)?function(t){var r=ee(),n=Z();be(n,e.visitNode(t.left,B,e.isExpression),t.left),55===t.operatorToken.kind?Ce(r,n,t.left):Ee(r,n,t.left);return be(n,e.visitNode(t.right,B,e.isExpression),t.right),te(r),n}(r):27===r.operatorToken.kind?U(r):p.updateBinaryExpression(r,$(e.visitNode(r.left,B,e.isExpression)),r.operatorToken,e.visitNode(r.right,B,e.isExpression));return e.visitEachChild(r,B,t)}(r);case 1:return function(r){var n=r.left,i=r.right;if(X(i)){var a=void 0;switch(n.kind){case 201:a=p.updatePropertyAccessExpression(n,$(e.visitNode(n.expression,B,e.isLeftHandSideExpression)),n.name);break;case 202:a=p.updateElementAccessExpression(n,$(e.visitNode(n.expression,B,e.isLeftHandSideExpression)),$(e.visitNode(n.argumentExpression,B,e.isExpression)));break;default:a=e.visitNode(n,B,e.isExpression)}var o=r.operatorToken.kind;return e.isCompoundAssignment(o)?e.setTextRange(p.createAssignment(a,e.setTextRange(p.createBinaryExpression($(a),e.getNonAssignmentOperatorForCompoundAssignment(o),e.visitNode(i,B,e.isExpression)),r)),r):p.updateBinaryExpression(r,a,r.operatorToken,e.visitNode(i,B,e.isExpression))}return e.visitEachChild(r,B,t)}(r);default:return e.Debug.assertNever(n)}}(r);case 337:return function(t){for(var r=[],n=0,i=t.elements;n0&&(Te(1,[p.createExpressionStatement(p.inlineExpressions(r))]),r=[]),r.push(e.visitNode(a,B,e.isExpression)))}return p.inlineExpressions(r)}(r);case 217:return function(r){if(X(r.whenTrue)||X(r.whenFalse)){var n=ee(),i=ee(),a=Z();return Ce(n,e.visitNode(r.condition,B,e.isExpression),r.condition),be(a,e.visitNode(r.whenTrue,B,e.isExpression),r.whenTrue),Se(i),te(n),be(a,e.visitNode(r.whenFalse,B,e.isExpression),r.whenFalse),te(i),a}return e.visitEachChild(r,B,t)}(r);case 219:return function(t){var r=ee(),n=e.visitNode(t.expression,B,e.isExpression);if(t.asteriskToken){!function(e,t){Te(7,[e],t)}(0==(8388608&e.getEmitFlags(t.expression))?e.setTextRange(f().createValuesHelper(n),t):n,t)}else!function(e,t){Te(6,[e],t)}(n,t);return te(r),function(t){return e.setTextRange(p.createCallExpression(p.createPropertyAccessExpression(T,"sent"),void 0,[]),t)}(t)}(r);case 199:return function(e){return V(e.elements,void 0,void 0,e.multiLine)}(r);case 200:return function(t){var r=t.properties,n=t.multiLine,i=Q(r),a=Z();be(a,p.createObjectLiteralExpression(e.visitNodes(r,B,e.isObjectLiteralElementLike,0,i),n));var o=e.reduceLeft(r,s,[],i);return o.push(n?e.startOnNewLine(e.setParent(e.setTextRange(p.cloneNode(a),a),a.parent)):a),p.inlineExpressions(o);function s(r,i){X(i)&&r.length>0&&(xe(p.createExpressionStatement(p.inlineExpressions(r))),r=[]);var o=e.createExpressionForObjectLiteralElementLike(p,t,i,a),s=e.visitNode(o,B,e.isExpression);return s&&(n&&e.startOnNewLine(s),r.push(s)),r}}(r);case 202:return function(r){if(X(r.argumentExpression))return p.updateElementAccessExpression(r,$(e.visitNode(r.expression,B,e.isLeftHandSideExpression)),e.visitNode(r.argumentExpression,B,e.isExpression));return e.visitEachChild(r,B,t)}(r);case 203:return function(r){if(!e.isImportCall(r)&&e.forEach(r.arguments,X)){var n=p.createCallBinding(r.expression,v,D,!0),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(p.createFunctionApplyCall($(e.visitNode(i,B,e.isLeftHandSideExpression)),a,V(r.arguments)),r),r)}return e.visitEachChild(r,B,t)}(r);case 204:return function(r){if(e.forEach(r.arguments,X)){var n=p.createCallBinding(p.createPropertyAccessExpression(r.expression,"bind"),v),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(p.createNewExpression(p.createFunctionApplyCall($(e.visitNode(i,B,e.isExpression)),a,V(r.arguments,p.createVoidZero())),void 0,[]),r),r)}return e.visitEachChild(r,B,t)}(r);default:return e.visitEachChild(r,B,t)}}(r):1049088&r.transformFlags?e.visitEachChild(r,B,t):r}}function J(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(p.createFunctionDeclaration(void 0,r.modifiers,void 0,r.name,void 0,e.visitParameterList(r.parameters,B,t),void 0,z(r.body)),r),r);else{var n=a,i=o;a=!1,o=!1,r=e.visitEachChild(r,B,t),a=n,o=i}return a?void y(r):r}function K(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(p.createFunctionExpression(void 0,void 0,r.name,void 0,e.visitParameterList(r.parameters,B,t),void 0,z(r.body)),r),r);else{var n=a,i=o;a=!1,o=!1,r=e.visitEachChild(r,B,t),a=n,o=i}return r}function z(t){var r=[],n=a,i=o,f=s,y=c,v=u,h=l,D=d,x=_,b=M,k=S,A=E,F=C,N=T;a=!0,o=!1,s=void 0,c=void 0,u=void 0,l=void 0,d=void 0,_=void 0,M=1,S=void 0,E=void 0,C=void 0,T=p.createTempVariable(void 0),g();var P=p.copyPrologue(t.statements,r,!1,B);q(t.statements,P);var w=ke();return e.insertStatementsAfterStandardPrologue(r,m()),r.push(p.createReturnStatement(w)),a=n,o=i,s=f,c=y,u=v,l=h,d=D,_=x,M=b,S=k,E=A,C=F,T=N,e.setTextRange(p.createBlock(r,t.multiLine),t)}function U(t){var r=[];return n(t.left),n(t.right),p.inlineExpressions(r);function n(t){e.isBinaryExpression(t)&&27===t.operatorToken.kind?(n(t.left),n(t.right)):(X(t)&&r.length>0&&(Te(1,[p.createExpressionStatement(p.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,B,e.isExpression)))}}function V(t,n,i,a){var o,s=Q(t);if(s>0){o=Z();var c=e.visitNodes(t,B,e.isExpression,0,s);be(o,p.createArrayLiteralExpression(n?r([n],c):c)),n=void 0}var u=e.reduceLeft(t,(function(t,i){if(X(i)&&t.length>0){var s=void 0!==o;o||(o=Z()),be(o,s?p.createArrayConcatCall(o,[p.createArrayLiteralExpression(t,a)]):p.createArrayLiteralExpression(n?r([n],t):t,a)),n=void 0,t=[]}return t.push(e.visitNode(i,B,e.isExpression)),t}),[],s);return o?p.createArrayConcatCall(o,[p.createArrayLiteralExpression(u,a)]):e.setTextRange(p.createArrayLiteralExpression(n?r([n],u):u,a),i)}function q(e,t){void 0===t&&(t=0);for(var r=e.length,n=t;n0?Se(r,t):xe(t)}(r);case 241:return function(t){var r=ge(t.label?e.idText(t.label):void 0);r>0?Se(r,t):xe(t)}(r);case 242:return function(t){r=e.visitNode(t.expression,B,e.isExpression),n=t,Te(8,[r],n);var r,n}(r);case 243:return function(t){X(t)?(r=$(e.visitNode(t.expression,B,e.isExpression)),n=ee(),i=ee(),te(n),re({kind:1,expression:r,startLabel:n,endLabel:i}),W(t.statement),e.Debug.assert(1===ae()),te(ne().endLabel)):xe(e.visitNode(t,B,e.isStatement));var r,n,i}(r);case 244:return function(t){if(X(t.caseBlock)){for(var r=t.caseBlock,n=r.clauses.length,i=(re({kind:2,isScript:!1,breakLabel:f=ee()}),f),a=$(e.visitNode(t.expression,B,e.isExpression)),o=[],s=-1,c=0;c0)break;d.push(p.createCaseClause(e.visitNode(u.expression,B,e.isExpression),[he(o[c],u.expression)]))}else _++}d.length&&(xe(p.createSwitchStatement(a,p.createCaseBlock(d))),l+=d.length,d=[]),_>0&&(l+=_,_=0)}Se(s>=0?o[s]:i);for(c=0;c0)break;u.push(Y(i))}u.length&&(xe(p.createExpressionStatement(p.inlineExpressions(u))),c+=u.length,u=[])}}function Y(t){return e.setSourceMapRange(p.createAssignment(e.setSourceMapRange(p.cloneNode(t.name),t.name),e.visitNode(t.initializer,B,e.isExpression)),t)}function X(e){return!!e&&0!=(262144&e.transformFlags)}function Q(e){for(var t=e.length,r=0;r=0;r--){var n=l[r];if(!_e(n))break;if(n.labelText===e)return!0}return!1}function ge(e){if(l)if(e)for(var t=l.length-1;t>=0;t--){if(_e(r=l[t])&&r.labelText===e)return r.breakLabel;if(de(r)&&fe(e,t-1))return r.breakLabel}else for(t=l.length-1;t>=0;t--){var r;if(de(r=l[t]))return r.breakLabel}return 0}function me(e){if(l)if(e)for(var t=l.length-1;t>=0;t--){if(pe(r=l[t])&&fe(e,t-1))return r.continueLabel}else for(t=l.length-1;t>=0;t--){var r;if(pe(r=l[t]))return r.continueLabel}return 0}function ye(e){if(void 0!==e&&e>0){void 0===_&&(_=[]);var t=p.createNumericLiteral(-1);return void 0===_[e]?_[e]=[t]:_[e].push(t),t}return p.createOmittedExpression()}function ve(t){var r=p.createNumericLiteral(t);return e.addSyntheticTrailingComment(r,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}(t)),r}function he(t,r){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([ve(3),ye(t)])),r)}function De(){Te(0)}function xe(e){e?Te(1,[e]):De()}function be(e,t,r){Te(2,[e,t],r)}function Se(e,t){Te(3,[e],t)}function Ee(e,t,r){Te(4,[e,t],r)}function Ce(e,t,r){Te(5,[e,t],r)}function Te(e,t,r){void 0===S&&(S=[],E=[],C=[]),void 0===d&&te(ee());var n=S.length;S[n]=e,E[n]=t,C[n]=r}function ke(){L=0,R=0,k=void 0,A=!1,F=!1,N=void 0,P=void 0,w=void 0,I=void 0,O=void 0;var t=function(){if(S){for(var t=0;t0)),524288))}function Ae(e){(function(e){if(!F)return!0;if(!d||!_)return!1;for(var t=0;t=0;t--){var r=O[t];P=[p.createWithStatement(r.expression,p.createBlock(P))]}if(I){var n=I.startLabel,i=I.catchLabel,a=I.finallyLabel,o=I.endLabel;P.unshift(p.createExpressionStatement(p.createCallExpression(p.createPropertyAccessExpression(p.createPropertyAccessExpression(T,"trys"),"push"),void 0,[p.createArrayLiteralExpression([ye(n),ye(i),ye(a),ye(o)])]))),I=void 0}e&&P.push(p.createExpressionStatement(p.createAssignment(p.createPropertyAccessExpression(T,"label"),p.createNumericLiteral(R+1))))}N.push(p.createCaseClause(p.createNumericLiteral(R),P||[])),P=void 0}function Ne(e){if(d)for(var t=0;t=2?2:0)),t),t))}else n&&e.isDefaultImport(t)&&(r=e.append(r,i.createVariableStatement(void 0,i.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(i.createVariableDeclaration(i.cloneNode(n.name),void 0,void 0,i.getGeneratedNameForNode(t)),t),t)],_>=2?2:0))));if(j(t)){var o=e.getOriginalNodeId(t);x[o]=J(x[o],t)}else r=J(r,t);return e.singleOrMany(r)}(t);case 260:return function(t){var r;e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),p!==e.ModuleKind.AMD?r=e.hasSyntacticModifier(t,1)?e.append(r,e.setOriginalNode(e.setTextRange(i.createExpressionStatement(G(t.name,L(t))),t),t)):e.append(r,e.setOriginalNode(e.setTextRange(i.createVariableStatement(void 0,i.createVariableDeclarationList([i.createVariableDeclaration(i.cloneNode(t.name),void 0,void 0,L(t))],_>=2?2:0)),t),t)):e.hasSyntacticModifier(t,1)&&(r=e.append(r,e.setOriginalNode(e.setTextRange(i.createExpressionStatement(G(i.getExportName(t),i.getLocalName(t))),t),t)));if(j(t)){var n=e.getOriginalNodeId(t);x[n]=K(x[n],t)}else r=K(r,t);return e.singleOrMany(r)}(t);case 267:return function(t){if(!t.moduleSpecifier)return;var r=i.getGeneratedNameForNode(t);if(t.exportClause&&e.isNamedExports(t.exportClause)){var n=[];p!==e.ModuleKind.AMD&&n.push(e.setOriginalNode(e.setTextRange(i.createVariableStatement(void 0,i.createVariableDeclarationList([i.createVariableDeclaration(r,void 0,void 0,L(t))])),t),t));for(var o=0,s=t.exportClause.elements;o(e.isExportName(t)?1:0);return!1}function I(t,r){var n,o=i.createUniqueName("resolve"),s=i.createUniqueName("reject"),c=[i.createParameterDeclaration(void 0,void 0,void 0,o),i.createParameterDeclaration(void 0,void 0,void 0,s)],l=i.createBlock([i.createExpressionStatement(i.createCallExpression(i.createIdentifier("require"),void 0,[i.createArrayLiteralExpression([t||i.createOmittedExpression()]),o,s]))]);_>=2?n=i.createArrowFunction(void 0,void 0,c,void 0,void 0,l):(n=i.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,l),r&&e.setEmitFlags(n,8));var d=i.createNewExpression(i.createIdentifier("Promise"),void 0,[n]);return u.esModuleInterop?i.createCallExpression(i.createPropertyAccessExpression(d,i.createIdentifier("then")),void 0,[a().createImportStarCallbackHelper()]):d}function O(t,r){var n,o=i.createCallExpression(i.createPropertyAccessExpression(i.createIdentifier("Promise"),"resolve"),void 0,[]),s=i.createCallExpression(i.createIdentifier("require"),void 0,t?[t]:[]);return u.esModuleInterop&&(s=a().createImportStarHelper(s)),_>=2?n=i.createArrowFunction(void 0,void 0,[],void 0,void 0,s):(n=i.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,i.createBlock([i.createReturnStatement(s)])),r&&e.setEmitFlags(n,8)),i.createCallExpression(i.createPropertyAccessExpression(o,"then"),void 0,[n])}function M(t,r){return!u.esModuleInterop||67108864&e.getEmitFlags(t)?r:e.getImportNeedsImportStarHelper(t)?a().createImportStarHelper(r):e.getImportNeedsImportDefaultHelper(t)?a().createImportDefaultHelper(r):r}function L(t){var r=e.getExternalModuleNameLiteral(i,t,m,d,l,u),n=[];return r&&n.push(r),i.createCallExpression(i.createIdentifier("require"),void 0,n)}function R(t,r,n){var a=Q(t);if(a){for(var o=e.isExportName(t)?r:i.createAssignment(t,r),s=0,c=a;se.ModuleKind.ES2015)return t;if(!t.exportClause||!e.isNamespaceExport(t.exportClause)||!t.moduleSpecifier)return t;var r=t.exportClause.name,n=i.getGeneratedNameForNode(r),a=i.createImportDeclaration(void 0,void 0,i.createImportClause(!1,void 0,i.createNamespaceImport(n)),t.moduleSpecifier);e.setOriginalNode(a,t.exportClause);var s=e.isExportNamespaceAsDefaultDeclaration(t)?i.createExportDefault(n):i.createExportDeclaration(void 0,void 0,!1,i.createNamedExports([i.createExportSpecifier(n,r)]));return e.setOriginalNode(s,t),[a,s]}(t)}return t}}}(u||(u={})),function(e){function t(t){return e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isPropertyAccessExpression(t)||e.isBindingElement(t)||e.isConstructorDeclaration(t)?r:e.isSetAccessor(t)||e.isGetAccessor(t)?function(r){var n;n=168===t.kind?e.hasSyntacticModifier(t,32)?r.errorModuleName?e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e.hasSyntacticModifier(t,32)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1;return{diagnosticMessage:n,errorNode:t.name,typeName:t.name}}:e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isIndexSignatureDeclaration(t)?function(r){var n;switch(t.kind){case 170:n=r.errorModuleName?e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 169:n=r.errorModuleName?e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 171:n=r.errorModuleName?e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 165:case 164:n=e.hasSyntacticModifier(t,32)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:252===t.parent.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:r.errorModuleName?e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 251:n=r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return e.Debug.fail("This is unknown kind for signature: "+t.kind)}return{diagnosticMessage:n,errorNode:t.name||t}}:e.isParameter(t)?e.isParameterPropertyDeclaration(t,t.parent)&&e.hasSyntacticModifier(t.parent,8)?r:function(r){var n=function(r){switch(t.parent.kind){case 166:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 170:case 175:return r.errorModuleName?e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 169:return r.errorModuleName?e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 171:return r.errorModuleName?e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 165:case 164:return e.hasSyntacticModifier(t.parent,32)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:252===t.parent.parent.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 251:case 174:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 168:case 167:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return e.Debug.fail("Unknown parent for parameter: "+e.SyntaxKind[t.parent.kind])}}(r);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}:e.isTypeParameterDeclaration(t)?function(){var r;switch(t.parent.kind){case 252:r=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 253:r=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 190:r=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 175:case 170:r=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 169:r=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 165:case 164:r=e.hasSyntacticModifier(t.parent,32)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:252===t.parent.parent.kind?e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 251:r=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 254:r=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return e.Debug.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:r,errorNode:t,typeName:t.name}}:e.isExpressionWithTypeArguments(t)?function(){var r;r=e.isClassDeclaration(t.parent.parent)?e.isHeritageClause(t.parent)&&116===t.parent.token?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t.parent.parent.name?e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1;return{diagnosticMessage:r,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}}:e.isImportEqualsDeclaration(t)?function(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}:e.isTypeAliasDeclaration(t)?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 249===t.kind||198===t.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1:163===t.kind||201===t.kind||162===t.kind||160===t.kind&&e.hasSyntacticModifier(t.parent,8)?e.hasSyntacticModifier(t,32)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:252===t.parent.kind||160===t.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}(r);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}}e.canProduceDiagnostics=function(t){return e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isBindingElement(t)||e.isSetAccessor(t)||e.isGetAccessor(t)||e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isParameter(t)||e.isTypeParameterDeclaration(t)||e.isExpressionWithTypeArguments(t)||e.isImportEqualsDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isConstructorDeclaration(t)||e.isIndexSignatureDeclaration(t)||e.isPropertyAccessExpression(t)},e.createGetSymbolAccessibilityDiagnosticForNodeName=function(r){return e.isSetAccessor(r)||e.isGetAccessor(r)?function(t){var n=function(t){return e.hasSyntacticModifier(r,32)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:252===r.parent.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:r,typeName:r.name}:void 0}:e.isMethodSignature(r)||e.isMethodDeclaration(r)?function(t){var n=function(t){return e.hasSyntacticModifier(r,32)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:252===r.parent.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:r,typeName:r.name}:void 0}:t(r)},e.createGetSymbolAccessibilityDiagnosticForNode=t}(u||(u={})),function(e){function t(t,r){var n=r.text.substring(t.pos,t.end);return e.stringContains(n,"@internal")}function i(r,n){var i=e.getParseTreeNode(r);if(i&&160===i.kind){var a=i.parent.parameters.indexOf(i),o=a>0?i.parent.parameters[a-1]:void 0,s=n.text,c=o?e.concatenate(e.getTrailingCommentRanges(s,e.skipTrivia(s,o.end+1,!1,!0)),e.getLeadingCommentRanges(s,r.pos)):e.getTrailingCommentRanges(s,e.skipTrivia(s,r.pos,!1,!0));return c&&c.length&&t(e.last(c),n)}var u=i&&e.getLeadingCommentRangesOfNode(i,n);return!!e.forEach(u,(function(e){return t(e,n)}))}e.getDeclarationDiagnostics=function(t,r,n){var i=t.getCompilerOptions();return e.transformNodes(r,t,e.factory,i,n?[n]:e.filter(t.getSourceFiles(),e.isSourceFileNotJson),[o],!1).diagnostics},e.isInternalDeclaration=i;var a=531469;function o(t){var o,u,l,d,_,p,f,g,m,y,v,h=function(){return e.Debug.fail("Diagnostic emitted without context")},D=h,x=!0,b=!1,S=!1,E=!1,C=!1,T=t.factory,k=t.getEmitHost(),A={trackSymbol:function(e,t,r){if(262144&e.flags)return;O(F.isSymbolAccessible(e,t,r,!0)),I(F.getTypeReferenceDirectivesForSymbol(e,r))},reportInaccessibleThisError:function(){f&&t.addDiagnostic(e.createDiagnosticForNode(f,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(f),"this"))},reportInaccessibleUniqueSymbolError:function(){f&&t.addDiagnostic(e.createDiagnosticForNode(f,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(f),"unique symbol"))},reportCyclicStructureError:function(){f&&t.addDiagnostic(e.createDiagnosticForNode(f,e.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,e.declarationNameToString(f)))},reportPrivateInBaseOfClassExpression:function(r){f&&t.addDiagnostic(e.createDiagnosticForNode(f,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,r))},reportLikelyUnsafeImportRequiredError:function(r){f&&t.addDiagnostic(e.createDiagnosticForNode(f,e.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,e.declarationNameToString(f),r))},reportTruncationError:function(){f&&t.addDiagnostic(e.createDiagnosticForNode(f,e.Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:k,trackReferencedAmbientModule:function(t,r){var n=F.getTypeReferenceDirectivesForSymbol(r,67108863);if(e.length(n))return I(n);var i=e.getSourceFileOfNode(t);m.set(e.getOriginalNodeId(i),i)},trackExternalModuleSymbolOfImportTypeNode:function(e){b||(p||(p=[])).push(e)},reportNonlocalAugmentation:function(r,n,i){for(var a=e.find(n.declarations,(function(t){return e.getSourceFileOfNode(t)===r})),o=e.filter(i.declarations,(function(t){return e.getSourceFileOfNode(t)!==r})),s=0,c=o;s0?e.parameters[0].type:void 0}e.transformDeclarations=o}(u||(u={})),function(e){var t,n;function i(t,r,n){if(n)return e.emptyArray;var i=e.getEmitScriptTarget(t),a=e.getEmitModuleKind(t),o=[];return e.addRange(o,r&&e.map(r.before,s)),o.push(e.transformTypeScript),o.push(e.transformClassFields),e.getJSXTransformEnabled(t)&&o.push(e.transformJsx),i<99&&o.push(e.transformESNext),i<7&&o.push(e.transformES2020),i<6&&o.push(e.transformES2019),i<5&&o.push(e.transformES2018),i<4&&o.push(e.transformES2017),i<3&&o.push(e.transformES2016),i<2&&(o.push(e.transformES2015),o.push(e.transformGenerators)),o.push(function(t){switch(t){case e.ModuleKind.ESNext:case e.ModuleKind.ES2020:case e.ModuleKind.ES2015:return e.transformECMAScriptModule;case e.ModuleKind.System:return e.transformSystemModule;default:return e.transformModule}}(a)),i<1&&o.push(e.transformES5),e.addRange(o,r&&e.map(r.after,s)),o}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(n,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(e){return o(e,(function(e,t){return t}))}function u(e,t){return t}function l(e,t,r){r(e,t)}!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Completed=2]="Completed",e[e.Disposed=3]="Disposed"}(t||(t={})),function(e){e[e.Substitution=1]="Substitution",e[e.EmitNotifications=2]="EmitNotifications"}(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(t,n,i,a,o,s,c){for(var d,_,p,f,g=new Array(341),m=0,y=[],v=[],h=[],D=[],x=0,b=!1,S=u,E=l,C=0,T=[],k={factory:i,getCompilerOptions:function(){return a},getEmitResolver:function(){return t},getEmitHost:function(){return n},getEmitHelperFactory:e.memoize((function(){return e.createEmitHelperFactory(k)})),startLexicalEnvironment:function(){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!b,"Lexical environment is suspended."),y[x]=d,v[x]=_,h[x]=p,D[x]=m,x++,d=void 0,_=void 0,p=void 0,m=0},suspendLexicalEnvironment:function(){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!b,"Lexical environment is already suspended."),b=!0},resumeLexicalEnvironment:function(){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(b,"Lexical environment is not suspended."),b=!1},endLexicalEnvironment:function(){var t;if(e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!b,"Lexical environment is suspended."),d||_||p){if(_&&(t=r(_)),d){var n=i.createVariableStatement(void 0,i.createVariableDeclarationList(d));e.setEmitFlags(n,1048576),t?t.push(n):t=[n]}p&&(t=t?r(t,p):r(p))}x--,d=y[x],_=v[x],p=h[x],m=D[x],0===x&&(y=[],v=[],h=[],D=[]);return t},setLexicalEnvironmentFlags:function(e,t){m=t?m|e:m&~e},getLexicalEnvironmentFlags:function(){return m},hoistVariableDeclaration:function(t){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed.");var r=e.setEmitFlags(i.createVariableDeclaration(t),64);d?d.push(r):d=[r];1&m&&(m|=2)},hoistFunctionDeclaration:function(t){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),_?_.push(t):_=[t]},addInitializationStatement:function(t){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),p?p.push(t):p=[t]},requestEmitHelper:function t(r){if(e.Debug.assert(C>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(C<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!r.scoped,"Cannot request a scoped emit helper."),r.dependencies)for(var n=0,i=r.dependencies;n0,"Cannot modify the transformation context during initialization."),e.Debug.assert(C<2,"Cannot modify the transformation context after transformation has completed.");var t=f;return f=void 0,t},enableSubstitution:function(t){e.Debug.assert(C<2,"Cannot modify the transformation context after transformation has completed."),g[t]|=1},enableEmitNotification:function(t){e.Debug.assert(C<2,"Cannot modify the transformation context after transformation has completed."),g[t]|=2},isSubstitutionEnabled:R,isEmitNotificationEnabled:B,get onSubstituteNode(){return S},set onSubstituteNode(t){e.Debug.assert(C<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),S=t},get onEmitNode(){return E},set onEmitNode(t){e.Debug.assert(C<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),E=t},addDiagnostic:function(e){T.push(e)}},A=0,F=o;A"],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,i),l=t.getCompilerOptions();if(e.outFile(l)){var d=t.getPrependNodes();if(c.length||d.length){var _=e.factory.createBundle(c,d);if(g=r(u(_,t,i),_))return g}}else{if(!a)for(var p=0,f=c;p"),It(),De(e.type),ir(e)}(r);case 308:return function(e){Ft("function"),Dt(e,e.parameters),kt(":"),De(e.type)}(r);case 175:return function(e){nr(e),Ft("new"),It(),ht(e,e.typeParameters),Dt(e,e.parameters),It(),kt("=>"),It(),De(e.type),ir(e)}(r);case 176:return function(e){Ft("typeof"),It(),De(e.exprName)}(r);case 177:return function(t){kt("{");var r=1&e.getEmitFlags(t)?768:32897;bt(t,t.members,524288|r),kt("}")}(r);case 178:return function(e){De(e.elementType),kt("["),kt("]")}(r);case 179:return function(t){Je(22,t.pos,kt,t);var r=1&e.getEmitFlags(t)?528:657;bt(t,t.elements,524288|r),Je(23,t.elements.end,kt,t)}(r);case 180:return function(e){De(e.type),kt("?")}(r);case 182:return function(e){bt(e,e.types,516)}(r);case 183:return function(e){bt(e,e.types,520)}(r);case 184:return function(e){De(e.checkType),It(),Ft("extends"),It(),De(e.extendsType),It(),kt("?"),It(),De(e.trueType),It(),kt(":"),It(),De(e.falseType)}(r);case 185:return function(e){Ft("infer"),It(),De(e.typeParameter)}(r);case 186:return function(e){kt("("),De(e.type),kt(")")}(r);case 223:return function(e){be(e.expression),vt(e,e.typeArguments)}(r);case 187:return void Ft("this");case 188:return function(e){Jt(e.operator,Ft),It(),De(e.type)}(r);case 189:return function(e){De(e.objectType),kt("["),De(e.indexType),kt("]")}(r);case 190:return function(t){var r=e.getEmitFlags(t);kt("{"),1&r?It():(Mt(),Lt());t.readonlyToken&&(De(t.readonlyToken),142!==t.readonlyToken.kind&&Ft("readonly"),It());kt("["),Ee(3,t.typeParameter),t.nameType&&(It(),Ft("as"),It(),De(t.nameType));kt("]"),t.questionToken&&(De(t.questionToken),57!==t.questionToken.kind&&kt("?"));kt(":"),It(),De(t.type),At(),1&r?It():(Mt(),Rt());kt("}")}(r);case 191:return function(e){be(e.literal)}(r);case 193:return function(e){De(e.head),bt(e,e.templateSpans,262144)}(r);case 195:return function(e){e.isTypeOf&&(Ft("typeof"),It());Ft("import"),kt("("),De(e.argument),kt(")"),e.qualifier&&(kt("."),De(e.qualifier));vt(e,e.typeArguments)}(r);case 303:return void kt("*");case 304:return void kt("?");case 305:return function(e){kt("?"),De(e.type)}(r);case 306:return function(e){kt("!"),De(e.type)}(r);case 307:return function(e){De(e.type),kt("=")}(r);case 181:case 309:return function(e){kt("..."),De(e.type)}(r);case 192:return function(e){De(e.dotDotDotToken),De(e.name),De(e.questionToken),Je(58,e.name.end,kt,e),It(),De(e.type)}(r);case 196:return function(e){kt("{"),bt(e,e.elements,525136),kt("}")}(r);case 197:return function(e){kt("["),bt(e,e.elements,524880),kt("]")}(r);case 198:return function(e){De(e.dotDotDotToken),e.propertyName&&(De(e.propertyName),kt(":"),It());De(e.name),pt(e.initializer,e.name.end,e)}(r);case 228:return function(e){be(e.expression),De(e.literal)}(r);case 229:return void At();case 230:return function(e){Le(e,!e.multiLine&&Zt(e))}(r);case 232:return function(e){dt(e,e.modifiers),De(e.declarationList),At()}(r);case 231:return Re(!1);case 233:return function(t){be(t.expression),(!e.isJsonSourceFile(n)||e.nodeIsSynthesized(t.expression))&&At()}(r);case 234:return function(e){var t=Je(98,e.pos,Ft,e);It(),Je(20,t,kt,e),be(e.expression),Je(21,e.expression.end,kt,e),mt(e,e.thenStatement),e.elseStatement&&(Kt(e,e.thenStatement,e.elseStatement),Je(90,e.thenStatement.end,Ft,e),234===e.elseStatement.kind?(It(),De(e.elseStatement)):mt(e,e.elseStatement))}(r);case 235:return function(t){Je(89,t.pos,Ft,t),mt(t,t.statement),e.isBlock(t.statement)&&!B?It():Kt(t,t.statement,t.expression);Be(t,t.statement.end),At()}(r);case 236:return function(e){Be(e,e.pos),mt(e,e.statement)}(r);case 237:return function(e){var t=Je(96,e.pos,Ft,e);It();var r=Je(20,t,kt,e);je(e.initializer),r=Je(26,e.initializer?e.initializer.end:r,kt,e),gt(e.condition),r=Je(26,e.condition?e.condition.end:r,kt,e),gt(e.incrementor),Je(21,e.incrementor?e.incrementor.end:r,kt,e),mt(e,e.statement)}(r);case 238:return function(e){var t=Je(96,e.pos,Ft,e);It(),Je(20,t,kt,e),je(e.initializer),It(),Je(100,e.initializer.end,Ft,e),It(),be(e.expression),Je(21,e.expression.end,kt,e),mt(e,e.statement)}(r);case 239:return function(e){var t=Je(96,e.pos,Ft,e);It(),function(e){e&&(De(e),It())}(e.awaitModifier),Je(20,t,kt,e),je(e.initializer),It(),Je(156,e.initializer.end,Ft,e),It(),be(e.expression),Je(21,e.expression.end,kt,e),mt(e,e.statement)}(r);case 240:return function(e){Je(85,e.pos,Ft,e),ft(e.label),At()}(r);case 241:return function(e){Je(80,e.pos,Ft,e),ft(e.label),At()}(r);case 242:return function(e){Je(104,e.pos,Ft,e),gt(e.expression),At()}(r);case 243:return function(e){var t=Je(115,e.pos,Ft,e);It(),Je(20,t,kt,e),be(e.expression),Je(21,e.expression.end,kt,e),mt(e,e.statement)}(r);case 244:return function(e){var t=Je(106,e.pos,Ft,e);It(),Je(20,t,kt,e),be(e.expression),Je(21,e.expression.end,kt,e),It(),De(e.caseBlock)}(r);case 245:return function(e){De(e.label),Je(58,e.label.end,kt,e),It(),De(e.statement)}(r);case 246:return function(e){Je(108,e.pos,Ft,e),gt(e.expression),At()}(r);case 247:return function(e){Je(110,e.pos,Ft,e),It(),De(e.tryBlock),e.catchClause&&(Kt(e,e.tryBlock,e.catchClause),De(e.catchClause));e.finallyBlock&&(Kt(e,e.catchClause||e.tryBlock,e.finallyBlock),Je(95,(e.catchClause||e.tryBlock).end,Ft,e),It(),De(e.finallyBlock))}(r);case 248:return function(e){Bt(86,e.pos,Ft),At()}(r);case 249:return function(e){De(e.name),De(e.exclamationToken),_t(e.type),pt(e.initializer,e.type?e.type.end:e.name.end,e)}(r);case 250:return function(t){Ft(e.isLet(t)?"let":e.isVarConst(t)?"const":"var"),It(),bt(t,t.declarations,528)}(r);case 251:return function(e){Ke(e)}(r);case 252:return function(e){Ge(e)}(r);case 253:return function(e){yt(e,e.decorators),dt(e,e.modifiers),Ft("interface"),It(),De(e.name),ht(e,e.typeParameters),bt(e,e.heritageClauses,512),It(),kt("{"),bt(e,e.members,129),kt("}")}(r);case 254:return function(e){yt(e,e.decorators),dt(e,e.modifiers),Ft("type"),It(),De(e.name),ht(e,e.typeParameters),It(),kt("="),It(),De(e.type),At()}(r);case 255:return function(e){dt(e,e.modifiers),Ft("enum"),It(),De(e.name),It(),kt("{"),bt(e,e.members,145),kt("}")}(r);case 256:return function(e){dt(e,e.modifiers),1024&~e.flags&&(Ft(16&e.flags?"namespace":"module"),It());De(e.name);var t=e.body;if(!t)return At();for(;256===t.kind;)kt("."),De(t.name),t=t.body;It(),De(t)}(r);case 257:return function(t){nr(t),e.forEach(t.statements,or),Le(t,Zt(t)),ir(t)}(r);case 258:return function(e){Je(18,e.pos,kt,e),bt(e,e.clauses,129),Je(19,e.clauses.end,kt,e,!0)}(r);case 259:return function(e){var t=Je(92,e.pos,Ft,e);It(),t=Je(126,t,Ft,e),It(),t=Je(140,t,Ft,e),It(),De(e.name),At()}(r);case 260:return function(e){dt(e,e.modifiers),Je(99,e.modifiers?e.modifiers.end:e.pos,Ft,e),It(),De(e.name),It(),Je(62,e.name.end,kt,e),It(),function(e){78===e.kind?be(e):De(e)}(e.moduleReference),At()}(r);case 261:return function(e){dt(e,e.modifiers),Je(99,e.modifiers?e.modifiers.end:e.pos,Ft,e),It(),e.importClause&&(De(e.importClause),It(),Je(153,e.importClause.end,Ft,e),It());be(e.moduleSpecifier),At()}(r);case 262:return function(e){e.isTypeOnly&&(Je(149,e.pos,Ft,e),It());De(e.name),e.name&&e.namedBindings&&(Je(27,e.name.end,kt,e),It());De(e.namedBindings)}(r);case 263:return function(e){var t=Je(41,e.pos,kt,e);It(),Je(126,t,Ft,e),It(),De(e.name)}(r);case 269:return function(e){var t=Je(41,e.pos,kt,e);It(),Je(126,t,Ft,e),It(),De(e.name)}(r);case 264:return function(e){Ye(e)}(r);case 265:return function(e){Xe(e)}(r);case 266:return function(e){var t=Je(92,e.pos,Ft,e);It(),e.isExportEquals?Je(62,t,Nt,e):Je(87,t,Ft,e);It(),be(e.expression),At()}(r);case 267:return function(e){var t=Je(92,e.pos,Ft,e);It(),e.isTypeOnly&&(t=Je(149,t,Ft,e),It());e.exportClause?De(e.exportClause):t=Je(41,t,kt,e);if(e.moduleSpecifier){It(),Je(153,e.exportClause?e.exportClause.end:t,Ft,e),It(),be(e.moduleSpecifier)}At()}(r);case 268:return function(e){Ye(e)}(r);case 270:return function(e){Xe(e)}(r);case 271:return;case 272:return function(e){Ft("require"),kt("("),be(e.expression),kt(")")}(r);case 11:return function(e){f.writeLiteral(e.text)}(r);case 275:case 278:return function(t){if(kt("<"),e.isJsxOpeningElement(t)){var r=Yt(t.tagName,t);Qe(t.tagName),vt(t,t.typeArguments),t.attributes.properties&&t.attributes.properties.length>0&&It(),De(t.attributes),Xt(t.attributes,t),Vt(r)}kt(">")}(r);case 276:case 279:return function(t){kt("")}(r);case 280:return function(e){De(e.name),function(e,t,r,n){r&&(t(e),n(r))}("=",kt,e.initializer,Se)}(r);case 281:return function(e){bt(e,e.properties,262656)}(r);case 282:return function(e){kt("{..."),be(e.expression),kt("}")}(r);case 283:return function(e){e.expression&&(kt("{"),De(e.dotDotDotToken),be(e.expression),kt("}"))}(r);case 284:return function(e){Je(81,e.pos,Ft,e),It(),be(e.expression),$e(e,e.statements,e.expression.end)}(r);case 285:return function(e){var t=Je(87,e.pos,Ft,e);$e(e,e.statements,t)}(r);case 286:return function(e){It(),Jt(e.token,Ft),It(),bt(e,e.types,528)}(r);case 287:return function(e){var t=Je(82,e.pos,Ft,e);It(),e.variableDeclaration&&(Je(20,t,kt,e),De(e.variableDeclaration),Je(21,e.variableDeclaration.end,kt,e),It());De(e.block)}(r);case 288:return function(t){De(t.name),kt(":"),It();var r=t.initializer;if(Ar&&0==(512&e.getEmitFlags(r))){Ar(e.getCommentRange(r).pos)}be(r)}(r);case 289:return function(e){De(e.name),e.objectAssignmentInitializer&&(It(),kt("="),It(),be(e.objectAssignmentInitializer))}(r);case 290:return function(e){e.expression&&(Je(25,e.pos,kt,e),be(e.expression))}(r);case 291:return function(e){De(e.name),pt(e.initializer,e.name.end,e)}(r);case 326:case 333:return function(e){tt(e.tagName),nt(e.typeExpression),It(),e.isBracketed&&kt("[");De(e.name),e.isBracketed&&kt("]");rt(e.comment)}(r);case 327:case 329:case 328:case 325:return tt((i=r).tagName),nt(i.typeExpression),void rt(i.comment);case 316:case 315:return function(e){tt(e.tagName),It(),kt("{"),De(e.class),kt("}"),rt(e.comment)}(r);case 330:return function(e){tt(e.tagName),nt(e.constraint),It(),bt(e,e.typeParameters,528),rt(e.comment)}(r);case 331:return function(e){tt(e.tagName),e.typeExpression&&(301===e.typeExpression.kind?nt(e.typeExpression):(It(),kt("{"),j("Object"),e.typeExpression.isArrayType&&(kt("["),kt("]")),kt("}")));e.fullName&&(It(),De(e.fullName));rt(e.comment),e.typeExpression&&312===e.typeExpression.kind&&Ze(e.typeExpression)}(r);case 324:return function(e){tt(e.tagName),e.name&&(It(),De(e.name));rt(e.comment),et(e.typeExpression)}(r);case 313:return et(r);case 312:return Ze(r);case 319:case 314:return function(e){tt(e.tagName),rt(e.comment)}(r);case 332:return function(e){tt(e.tagName),De(e.name),rt(e.comment)}(r);case 302:return function(e){It(),kt("{"),De(e.name),kt("}")}(r);case 311:return function(e){if(j("/**"),e.comment)for(var t=0,r=e.comment.split(/\r\n?|\n/g);t=1&&!e.isJsonSourceFile(n)?64:0;bt(t,t.properties,526226|a|i),r&&Rt()}(r);case 201:return function(t){var r=e.cast(be(t.expression),e.isExpression),n=t.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),t.expression.end,t.name.pos),i=$t(t,t.expression,n),a=$t(t,n,t.name);Ut(i,!1),28===n.kind||!function(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isNumericLiteral(t)){var r=rr(t,!0,!1);return!t.numericLiteralFlags&&!e.stringContains(r,e.tokenToString(24))}if(e.isAccessExpression(t)){var n=e.getConstantValue(t);return"number"==typeof n&&isFinite(n)&&Math.floor(n)===n}}(r)||f.hasTrailingComment()||f.hasTrailingWhitespace()||kt(".");t.questionDotToken?De(n):Je(n.kind,t.expression.end,kt,t);Ut(a,!1),De(t.name),Vt(i,a)}(r);case 202:return function(e){be(e.expression),De(e.questionDotToken),Je(22,e.expression.end,kt,e),be(e.argumentExpression),Je(23,e.argumentExpression.end,kt,e)}(r);case 203:return function(e){be(e.expression),De(e.questionDotToken),vt(e,e.typeArguments),St(e,e.arguments,2576)}(r);case 204:return function(e){Je(102,e.pos,Ft,e),It(),be(e.expression),vt(e,e.typeArguments),St(e,e.arguments,18960)}(r);case 205:return function(e){be(e.tag),vt(e,e.typeArguments),It(),be(e.template)}(r);case 206:return function(e){kt("<"),De(e.type),kt(">"),be(e.expression)}(r);case 207:return function(e){var t=Je(20,e.pos,kt,e),r=Yt(e.expression,e);be(e.expression),Xt(e.expression,e),Vt(r),Je(21,e.expression?e.expression.end:t,kt,e)}(r);case 208:return function(e){cr(e.name),Ke(e)}(r);case 209:return function(e){yt(e,e.decorators),dt(e,e.modifiers),Ue(e,Me)}(r);case 210:return function(e){Je(88,e.pos,Ft,e),It(),be(e.expression)}(r);case 211:return function(e){Je(111,e.pos,Ft,e),It(),be(e.expression)}(r);case 212:return function(e){Je(113,e.pos,Ft,e),It(),be(e.expression)}(r);case 213:return function(e){Je(130,e.pos,Ft,e),It(),be(e.expression)}(r);case 214:return function(e){Jt(e.operator,Nt),function(e){var t=e.operand;return 214===t.kind&&(39===e.operator&&(39===t.operator||45===t.operator)||40===e.operator&&(40===t.operator||46===t.operator))}(e)&&It();be(e.operand)}(r);case 215:return function(e){be(e.operand),Jt(e.operator,Nt)}(r);case 216:return function(t){var r=[t],n=[0],i=0;for(;i>=0;)switch(t=r[i],n[i]){case 0:c(t.left);break;case 1:var a=27!==t.operatorToken.kind,o=$t(t,t.left,t.operatorToken),s=$t(t,t.operatorToken,t.right);Ut(o,a),Tr(t.operatorToken.pos),jt(t.operatorToken,100===t.operatorToken.kind?Ft:Nt),Ar(t.operatorToken.end,!0),Ut(s,!0),c(t.right);break;case 2:Vt(o=$t(t,t.left,t.operatorToken),s=$t(t,t.operatorToken,t.right)),i--;break;default:return e.Debug.fail("Invalid state "+n[i]+" for emitBinaryExpressionWorker")}function c(t){n[i]++;var a=b,o=S;b=t,S=void 0;var s=Ce(0,1,t);s===Ae&&e.isBinaryExpression(t)?(i++,n[i]=0,r[i]=t):s(1,t),e.Debug.assert(b===t),b=a,S=o}}(r);case 217:return function(e){var t=$t(e,e.condition,e.questionToken),r=$t(e,e.questionToken,e.whenTrue),n=$t(e,e.whenTrue,e.colonToken),i=$t(e,e.colonToken,e.whenFalse);be(e.condition),Ut(t,!0),De(e.questionToken),Ut(r,!0),be(e.whenTrue),Vt(t,r),Ut(n,!0),De(e.colonToken),Ut(i,!0),be(e.whenFalse),Vt(n,i)}(r);case 218:return function(e){De(e.head),bt(e,e.templateSpans,262144)}(r);case 219:return function(e){Je(124,e.pos,Ft,e),De(e.asteriskToken),gt(e.expression)}(r);case 220:return function(e){Je(25,e.pos,kt,e),be(e.expression)}(r);case 221:return function(e){cr(e.name),Ge(e)}(r);case 222:return;case 224:return function(e){be(e.expression),e.type&&(It(),Ft("as"),It(),De(e.type))}(r);case 225:return function(e){be(e.expression),Nt("!")}(r);case 226:return function(e){Bt(e.keywordToken,e.pos,kt),kt("."),De(e.name)}(r);case 273:return function(e){De(e.openingElement),bt(e,e.children,262144),De(e.closingElement)}(r);case 274:return function(e){kt("<"),Qe(e.tagName),vt(e,e.typeArguments),It(),De(e.attributes),kt("/>")}(r);case 277:return function(e){De(e.openingFragment),bt(e,e.children,262144),De(e.closingFragment)}(r);case 336:return function(e){be(e.expression)}(r);case 337:return function(e){St(e,e.elements,528)}(r)}}function Fe(t,r){e.Debug.assert(b===r||S===r),Te(1,t,r)(t,S),e.Debug.assert(b===r||S===r)}function Ne(r){var i=!1,a=298===r.kind?r:void 0;if(!a||L!==e.ModuleKind.None){for(var o=a?a.prepends.length:0,s=a?a.sourceFiles.length+o:1,c=0;c0)return!1;r=o}return!0}(t)?We:He;Dr?Dr(t,t.statements,r):r(t),Rt(),Bt(19,t.statements.end,kt,t)}function We(e){He(e,!0)}function He(e,t){var r=ot(e.statements),n=f.getTextPos();Ne(e),0===r&&n===f.getTextPos()&&t?(Rt(),bt(e,e.statements,768),Lt()):bt(e,e.statements,1,r)}function Ge(t){e.forEach(t.members,sr),yt(t,t.decorators),dt(t,t.modifiers),Ft("class"),t.name&&(It(),xe(t.name));var r=65536&e.getEmitFlags(t);r&&Lt(),ht(t,t.typeParameters),bt(t,t.heritageClauses,0),It(),kt("{"),bt(t,t.members,129),kt("}"),r&&Rt()}function Ye(e){kt("{"),bt(e,e.elements,525136),kt("}")}function Xe(e){e.propertyName&&(De(e.propertyName),It(),Je(126,e.propertyName.end,Ft,e),It()),De(e.name)}function Qe(e){78===e.kind?be(e):De(e)}function $e(t,r,i){var a=163969;1===r.length&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r[0])||e.rangeStartPositionsAreOnSameLine(t,r[0],n))?(Bt(58,i,kt,t),It(),a&=-130):Je(58,i,kt,t),bt(t,r,a)}function Ze(t){bt(t,e.factory.createNodeArray(t.jsDocPropertyTags),33)}function et(t){t.typeParameters&&bt(t,e.factory.createNodeArray(t.typeParameters),33),t.parameters&&bt(t,e.factory.createNodeArray(t.parameters),33),t.type&&(Mt(),It(),kt("*"),It(),De(t.type))}function tt(e){kt("@"),De(e)}function rt(e){e&&(It(),j(e))}function nt(e){e&&(It(),kt("{"),De(e.type),kt("}"))}function it(e,t,r,i){if(e){var a=f.getTextPos();wt('/// '),J&&J.sections.push({pos:a,end:f.getTextPos(),kind:"no-default-lib"}),Mt()}if(n&&n.moduleName&&(wt('/// '),Mt()),n&&n.amdDependencies)for(var o=0,s=n.amdDependencies;o'):wt('/// '),Mt()}for(var u=0,l=t;u'),J&&J.sections.push({pos:a,end:f.getTextPos(),kind:"reference",data:d.fileName}),Mt()}for(var _=0,p=r;_'),J&&J.sections.push({pos:a,end:f.getTextPos(),kind:"type",data:d.fileName}),Mt()}for(var g=0,m=i;g'),J&&J.sections.push({pos:a,end:f.getTextPos(),kind:"lib",data:d.fileName}),Mt()}}function at(t){var r=t.statements;nr(t),e.forEach(t.statements,or),Ne(t);var n=e.findIndex(r,(function(t){return!e.isPrologueDirective(t)}));!function(e){e.isDeclarationFile&&it(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(t),bt(t,r,1,-1===n?r.length:n),ir(t)}function ot(t,r,n,i){for(var a=!!r,o=0;o=a.length||0===c;if(l&&32768&o)return N&&N(a),void(P&&P(a));if(15360&o&&(kt(function(e){return i[15360&e][0]}(o)),l&&!u&&Ar(a.pos,!0)),N&&N(a),l)!(1&o)||B&&e.rangeIsOnSingleLine(r,n)?256&o&&!(524288&o)&&It():Mt();else{var d=0==(262144&o),_=d,f=qt(r,a,o);f?(Mt(f),_=!1):256&o&&It(),128&o&&Lt();for(var g=void 0,m=void 0,y=!1,v=0;v0?(0==(131&o)&&(Lt(),y=!0),Mt(D),_=!1):g&&512&o&&It()}if(m=ce(h),_){if(Ar)Ar(e.getCommentRange(h).pos)}else _=d;p=h.pos,t(h),y&&(Rt(),y=!1),g=h}var x=64&o&&a.hasTrailingComma;16&o&&x&&kt(","),g&&60&o&&g.end!==r.end&&!(1024&e.getEmitFlags(g))&&Tr(g.end),128&o&&Rt(),ue(m);var b=Ht(r,a,o);b?Mt(b):2097408&o&&It()}P&&P(a),15360&o&&(l&&!u&&Tr(a.end),kt(function(e){return i[15360&e][1]}(o)))}}function Tt(e,t){f.writeSymbol(e,t)}function kt(e){f.writePunctuation(e)}function At(){f.writeTrailingSemicolon(";")}function Ft(e){f.writeKeyword(e)}function Nt(e){f.writeOperator(e)}function Pt(e){f.writeParameter(e)}function wt(e){f.writeComment(e)}function It(){f.writeSpace(" ")}function Ot(e){f.writeProperty(e)}function Mt(e){void 0===e&&(e=1);for(var t=0;t0)}function Lt(){f.increaseIndent()}function Rt(){f.decreaseIndent()}function Bt(t,r,n,i){return q?Jt(t,n,r):function(t,r,n,i,a){if(q||t&&e.isInJsonFile(t))return a(r,n,i);var o=t&&t.emitNode,s=o&&o.flags||0,c=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[r],u=c&&c.source||v;i=Mr(u,c?c.pos:i),0==(128&s)&&i>=0&&Rr(u,i);i=a(r,n,i),c&&(i=c.end);0==(256&s)&&i>=0&&Rr(u,i);return i}(i,t,n,r,Jt)}function jt(t,r){w&&w(t),r(e.tokenToString(t.kind)),I&&I(t)}function Jt(t,r,n){var i=e.tokenToString(t);return r(i),n<0?n:n+i.length}function Kt(t,r,n){if(1&e.getEmitFlags(t))It();else if(B){var i=$t(t,r,n);i?Mt(i):It()}else Mt()}function zt(t){for(var r=t.split(/\r\n?|\n/g),n=e.guessIndentation(r),i=0,a=r;i0||o>0)&&a!==o&&(c||xr(a,s),(!c||a>=0&&0!=(512&n))&&(G=a),(!u||o>=0&&0!=(1024&n))&&(Y=o,250===r.kind&&(X=o))),e.forEach(e.getSyntheticLeadingComments(r),yr),te();var p=Te(2,t,r);2048&n?($=!0,p(t,r),$=!1):p(t,r),ee(),e.forEach(e.getSyntheticTrailingComments(r),vr),(a>0||o>0)&&a!==o&&(G=l,Y=d,X=_,!u&&s&&function(e){Pr(e,kr)}(o)),te(),e.Debug.assert(b===r||S===r)}function yr(e){(e.hasLeadingNewline||2===e.kind)&&f.writeLine(),hr(e),e.hasTrailingNewLine||2===e.kind?f.writeLine():f.writeSpace(" ")}function vr(e){f.isAtStartOfLine()||f.writeSpace(" "),hr(e),e.hasTrailingNewLine&&f.writeLine()}function hr(t){var r=function(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}(t),n=3===t.kind?e.computeLineStarts(r):void 0;e.writeCommentRange(r,n,f,0,r.length,M)}function Dr(t,r,i){ee();var a=r.pos,o=r.end,s=e.getEmitFlags(t),c=$||o<0||0!=(1024&s);a<0||0!=(512&s)||function(t){var r=e.emitDetachedComments(n.text,he(),f,wr,t,M,$);r&&(x?x.push(r):x=[r])}(r),te(),2048&s&&!$?($=!0,i(t),$=!1):i(t),ee(),c||(xr(r.end,!0),Q&&!f.isAtStartOfLine()&&f.writeLine()),te()}function xr(e,t){Q=!1,t?0===e&&(null==n?void 0:n.isDeclarationFile)?Nr(e,Sr):Nr(e,Cr):0===e&&Nr(e,br)}function br(e,t,r,n,i){Ir(e,t)&&Cr(e,t,r,n,i)}function Sr(e,t,r,n,i){Ir(e,t)||Cr(e,t,r,n,i)}function Er(r,n){return!t.onlyPrintJsDocStyle||(e.isJSDocLikeText(r,n)||e.isPinnedComment(r,n))}function Cr(t,r,i,a,o){Er(n.text,t)&&(Q||(e.emitNewLineBeforeLeadingCommentOfPosition(he(),f,o,t),Q=!0),Lr(t),e.writeCommentRange(n.text,he(),f,t,r,M),Lr(r),a?f.writeLine():3===i&&f.writeSpace(" "))}function Tr(e){$||-1===e||xr(e,!0)}function kr(t,r,i,a){Er(n.text,t)&&(f.isAtStartOfLine()||f.writeSpace(" "),Lr(t),e.writeCommentRange(n.text,he(),f,t,r,M),Lr(r),a&&f.writeLine())}function Ar(e,t){$||(ee(),Pr(e,t?kr:Fr),te())}function Fr(t,r,i,a){Lr(t),e.writeCommentRange(n.text,he(),f,t,r,M),Lr(r),a?f.writeLine():f.writeSpace(" ")}function Nr(t,r){!n||-1!==G&&t===G||(function(t){return void 0!==x&&e.last(x).nodePos===t}(t)?function(t){var r=e.last(x).detachedCommentEndPos;x.length-1?x.pop():x=void 0;e.forEachLeadingCommentRange(n.text,r,t,r)}(r):e.forEachLeadingCommentRange(n.text,t,r,t))}function Pr(t,r){n&&(-1===Y||t!==Y&&t!==X)&&e.forEachTrailingCommentRange(n.text,t,r)}function wr(t,r,i,a,o,s){Er(n.text,a)&&(Lr(a),e.writeCommentRange(t,r,i,a,o,s),Lr(o))}function Ir(t,r){return e.isRecognizedTripleSlashComment(n.text,t,r)}function Or(t,r){e.Debug.assert(b===r||S===r);var n=Te(3,t,r);if(e.isUnparsedSource(r)||e.isUnparsedPrepend(r))n(t,r);else if(e.isUnparsedNode(r)){var i=function(t){return void 0===t.parsedSourceMap&&void 0!==t.sourceMapText&&(t.parsedSourceMap=e.tryParseRawSourceMap(t.sourceMapText)||!1),t.parsedSourceMap||void 0}(r.parent);i&&y&&y.appendSourceMap(f.getLine(),f.getColumn(),i,r.parent.sourceMapPath,r.parent.getLineAndCharacterOfPosition(r.pos),r.parent.getLineAndCharacterOfPosition(r.end)),n(t,r)}else{var a=e.getSourceMapRange(r),o=a.pos,s=a.end,c=a.source,u=void 0===c?v:c,l=e.getEmitFlags(r);335!==r.kind&&0==(16&l)&&o>=0&&Rr(u,Mr(u,o)),64&l?(q=!0,n(t,r),q=!1):n(t,r),335!==r.kind&&0==(32&l)&&s>=0&&Rr(u,s)}e.Debug.assert(b===r||S===r)}function Mr(t,r){return t.skipTrivia?t.skipTrivia(r):e.skipTrivia(t.text,r)}function Lr(t){if(!(q||e.positionIsSynthesized(t)||jr(v))){var r=e.getLineAndCharacterOfPosition(v,t),n=r.line,i=r.character;y.addMapping(f.getLine(),f.getColumn(),W,n,i,void 0)}}function Rr(e,t){if(e!==v){var r=v,n=W;Br(e),Lr(t),function(e,t){v=e,W=t}(r,n)}else Lr(t)}function Br(e){q||(v=e,e!==h?jr(e)||(W=y.addSource(e.fileName),t.inlineSources&&y.setSourceContent(W,e.text),h=e,H=W):W=H)}function jr(t){return e.fileExtensionIs(t.fileName,".json")}}e.isBuildInfoFile=function(t){return e.fileExtensionIs(t,".tsbuildinfo")},e.forEachEmittedFile=o,e.getTsBuildInfoEmitOutputFilePath=s,e.getOutputPathsForBundle=c,e.getOutputPathsFor=u,e.getOutputExtension=d,e.getOutputDeclarationFileName=p,e.getAllProjectOutputs=function(t,r){var n=g(),i=n.addOutput,a=n.getOutputs;if(e.outFile(t.options))m(t,i);else{for(var o=0,c=t.fileNames;o=4,v=(f+1+"").length;y&&(v=Math.max("...".length,v));for(var h="",D=l;D<=f;D++){h+=o.getNewLine(),y&&l+11}))&&Zt(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}w.useDefineForClassFields&&0===d&&Zt(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields");w.checkJs&&!e.getAllowJSCompilerOption(w)&&te.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"));w.emitDeclarationOnly&&(e.getEmitDeclarations(w)||Zt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),w.noEmit&&Zt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit"));w.emitDecoratorMetadata&&!w.experimentalDecorators&&Zt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators");w.jsxFactory?(w.reactNamespace&&Zt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==w.jsx&&5!==w.jsx||Zt(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",e.inverseJsxOptionMap.get(""+w.jsx)),e.parseIsolatedEntityName(w.jsxFactory,d)||er("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,w.jsxFactory)):w.reactNamespace&&!e.isIdentifierText(w.reactNamespace,d)&&er("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,w.reactNamespace);w.jsxFragmentFactory&&(w.jsxFactory||Zt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==w.jsx&&5!==w.jsx||Zt(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",e.inverseJsxOptionMap.get(""+w.jsx)),e.parseIsolatedEntityName(w.jsxFragmentFactory,d)||er("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,w.jsxFragmentFactory));w.reactNamespace&&(4!==w.jsx&&5!==w.jsx||Zt(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",e.inverseJsxOptionMap.get(""+w.jsx)));w.jsxImportSource&&2===w.jsx&&Zt(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",e.inverseJsxOptionMap.get(""+w.jsx));if(!w.noEmit&&!w.suppressOutputPathCheck){var v=Ze(),h=new e.Set;e.forEachEmittedFile(v,(function(e){w.emitDeclarationOnly||D(e.jsFilePath,h),D(e.declarationFilePath,h)}))}function D(t,r){if(t){var n=Xe(t);if(ye.has(n)){var i=void 0;w.configFilePath||(i=e.chainDiagnosticMessages(void 0,e.Diagnostics.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),i=e.chainDiagnosticMessages(i,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,t),ar(t,e.createCompilerDiagnosticFromMessageChain(i))}var a=X.useCaseSensitiveFileNames()?n:e.toFileNameLowerCase(n);r.has(a)?ar(t,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,t)):r.add(a)}}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),e.tracing.end.apply(e.tracing,q),Ve;function qe(t,r,n){if(!t.length)return e.emptyArray;var i=e.getNormalizedAbsolutePath(r.originalFileName,re),a=He(r);e.tracing.push("program","resolveModuleNamesWorker",{containingFileName:i}),e.performance.mark("beforeResolveModule");var o=G(t,i,n,a);return e.performance.mark("afterResolveModule"),e.performance.measure("ResolveModule","beforeResolveModule","afterResolveModule"),e.tracing.pop(),o}function We(t,r){if(!t.length)return[];var n=e.isString(r)?r:e.getNormalizedAbsolutePath(r.originalFileName,re),i=e.isString(r)?void 0:He(r);e.tracing.push("program","resolveTypeReferenceDirectiveNamesWorker",{containingFileName:n}),e.performance.mark("beforeResolveTypeReference");var a=Y(t,n,i);return e.performance.mark("afterResolveTypeReference"),e.performance.measure("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),e.tracing.pop(),a}function He(t){var r=Ot(t.originalFileName);if(r||!e.fileExtensionIs(t.originalFileName,".d.ts"))return r;var n=Ge(t.originalFileName,t.path);if(n)return n;if(X.realpath&&w.preserveSymlinks&&e.stringContains(t.originalFileName,e.nodeModulesPathPart)){var i=X.realpath(t.originalFileName),a=Xe(i);return a===t.path?void 0:Ge(i,a)}}function Ge(t,r){var n=Lt(t);return e.isString(n)?Ot(n):n?Mt((function(t){var n=e.outFile(t.commandLine.options);if(n)return Xe(n)===r?t:void 0})):void 0}function Ye(t){if(e.containsPath(ee,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 Xe(t){return e.toPath(t,re,Vt)}function Qe(){if(void 0===C){var t=e.filter(f,(function(t){return e.sourceFileMayBeEmitted(t,Ve)}));w.rootDir&&Wt(t,w.rootDir)?C=e.getNormalizedAbsolutePath(w.rootDir,re):w.composite&&w.configFilePath?Wt(t,C=e.getDirectoryPath(e.normalizeSlashes(w.configFilePath))):(r=t,C=n(e.mapDefined(r,(function(e){return e.isDeclarationFile?void 0:e.fileName})),re,Vt)),C&&C[C.length-1]!==e.directorySeparator&&(C+=e.directorySeparator)}var r;return C}function $e(t,r){if(0===Ee&&!r.ambientModuleNames.length)return qe(t,r,void 0);var n,i,a,o=M&&M.getSourceFile(r.fileName);if(o!==r&&r.resolvedModules){for(var s=[],c=0,u=t;c=0;){if(r.markUsed(o))return o;var s=n.text.slice(a[o],a[o+1]).trim();if(""!==s&&!/^(\s*)\/\/(.*)$/.test(s))return-1;o--}return-1}(t,i)})),directives:i}}function mt(e,t){return vt(e,t,B,yt)}function yt(t,r){return dt((function(){var n=nt().getEmitResolver(t,r);return e.getDeclarationDiagnostics(Ze(e.noop),n,t)||e.emptyArray}))}function vt(t,r,n,i){var a,o=t?null===(a=n.perFile)||void 0===a?void 0:a.get(t.path):n.allDiagnostics;if(o)return o;var s=i(t,r);return t?(n.perFile||(n.perFile=new e.Map)).set(t.path,s):n.allDiagnostics=s,s}function ht(e,t){return e.isDeclarationFile?[]:mt(e,t)}function Dt(t,r,n){Tt(e.normalizePath(t),r,n,void 0)}function xt(e,t){return e.fileName===t.fileName}function bt(e,t){return 78===e.kind?78===t.kind&&e.escapedText===t.escapedText:10===t.kind&&e.text===t.text}function St(t,r){var n=e.factory.createStringLiteral(t),i=e.factory.createImportDeclaration(void 0,void 0,void 0,n);return e.addEmitFlags(i,67108864),e.setParent(n,i),e.setParent(i,r),n.flags&=-9,i.flags&=-9,n}function Et(t){if(!t.imports){var r,n,i,a=e.isSourceFileJS(t),o=e.isExternalModule(t);if((w.isolatedModules||o)&&!t.isDeclarationFile){w.importHelpers&&(r=[St(e.externalHelpersModuleNameText,t)]);var s=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(w,t),w);s&&(r||(r=[])).push(St(s,t))}for(var c=0,u=t.statements;c0),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}(D,v,t,r,Xe(t),d);return me.add(D.path,t),Nt(x,r,l),ge.set(r,o.name),p.push(x),x}v&&(fe.set(h,v),ge.set(r,o.name))}if(Nt(v,r,l),v){if(V.set(r,z>0),v.fileName=t,v.path=r,v.resolvedPath=Xe(t),v.originalFileName=d,Ft(t,v,a),X.useCaseSensitiveFileNames()){var b=e.toFileNameLowerCase(r),S=ve.get(b);S?kt(t,S,a):ve.set(b,v)}$=$||v.hasNoDefaultLib&&!i,w.noResolve||(jt(v,n),Jt(v)),w.noLib||zt(v),qt(v),n?_.push(v):p.push(v)}return v}(t,r,n,i,a,o);return e.tracing.pop(),s}function Ft(t,r,n){n&&r&&(F||(F=e.createMultiMap())).add(r.path,{referencedFileName:t,kind:n.kind,index:n.index,file:n.file.path})}function Nt(e,t,r){r?(ye.set(r,e),ye.set(t,e||!1)):ye.set(t,e)}function Pt(e){var t=wt(e);return t&&It(t,e)}function wt(t){if(le&&le.length&&!e.fileExtensionIs(t,".d.ts")&&!e.fileExtensionIs(t,".json"))return Ot(t)}function It(t,r){var n=e.outFile(t.commandLine.options);return n?e.changeExtension(n,".d.ts"):e.getOutputDeclarationFileName(r,t.commandLine,!X.useCaseSensitiveFileNames())}function Ot(t){void 0===_e&&(_e=new e.Map,Mt((function(e){Xe(w.configFilePath)!==e.sourceFile.path&&e.commandLine.fileNames.forEach((function(t){return _e.set(Xe(t),e.sourceFile.path)}))})));var r=_e.get(Xe(t));return r&&Bt(r)}function Mt(t){return e.forEachResolvedProjectReference(le,t)}function Lt(t){if(e.isDeclarationFileName(t))return void 0===pe&&(pe=new e.Map,Mt((function(t){var r=e.outFile(t.commandLine.options);if(r){var n=e.changeExtension(r,".d.ts");pe.set(Xe(n),!0)}else e.forEach(t.commandLine.fileNames,(function(r){if(!e.fileExtensionIs(r,".d.ts")&&!e.fileExtensionIs(r,".json")){var n=e.getOutputDeclarationFileName(r,t.commandLine,X.useCaseSensitiveFileNames());pe.set(Xe(n),r)}}))}))),pe.get(Xe(t))}function Rt(e){return he&&!!Ot(e)}function Bt(e){if(de)return de.get(e)||void 0}function jt(r,n){e.forEach(r.referencedFiles,(function(i,a){Tt(t(i.fileName,r.fileName),n,!1,void 0,{kind:e.RefFileKind.ReferenceFile,index:a,file:r,pos:i.pos,end:i.end})}))}function Jt(t){var r=e.map(t.typeReferenceDirectives,(function(t){return e.toFileNameLowerCase(t.fileName)}));if(r)for(var n=We(r,t),i=0;iK,d=u&&!S(w,a)&&!w.noResolve&&ir&&(te.add(e.createDiagnosticForNodeInSourceFile(w.configFile,p.elements[r],n,i,a,o)),s=!1)}}s&&te.add(e.createCompilerDiagnostic(n,i,a,o))}function Qt(t,r,n,i){for(var a=!0,o=0,s=$t();or?te.add(e.createDiagnosticForNodeInSourceFile(t||w.configFile,o.elements[r],n,i,a)):te.add(e.createCompilerDiagnostic(n,i,a))}function rr(t,r,n,i,a,o,s){var c=nr();(!c||!ir(c,t,r,n,i,a,o,s))&&te.add(e.createCompilerDiagnostic(i,a,o,s))}function nr(){if(void 0===W){W=null;var t=e.getTsConfigObjectLiteralExpression(w.configFile);if(t)for(var r=0,n=e.getPropertyAssignment(t,"compilerOptions");r0)for(var s=t.getTypeChecker(),c=0,u=r.imports;c0)for(var _=0,p=r.referencedFiles;_1&&b(x)}return o;function b(t){for(var n=0,i=t.declarations;n1?f.outputFiles[1]:void 0:f.outputFiles.length>0?f.outputFiles[0]:void 0;g?(e.Debug.assert(e.fileExtensionIs(g.name,".d.ts"),"File extension for signature expected to be dts",(function(){return"Found: "+e.getAnyExtensionFromPath(g.name)+" for "+g.name+":: All output files: "+JSON.stringify(f.outputFiles.map((function(e){return e.name})))})),d=(c||e.generateDjb2Hash)(g.text),u&&d!==_&&function(t,r,i){if(!r)return void i.set(t.resolvedPath,!1);var a;function o(t){t&&(a||(a=new e.Set),a.add(t))}r.forEach((function(e){return o(n(e))})),i.set(t.resolvedPath,a||!1)}(a,f.exportedModulesFromDeclarationEmit,u)):d=_}return o.set(a.resolvedPath,d),!_||d!==_}function d(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 p(t){return function(t){return e.some(t.moduleAugmentations,(function(t){return e.isGlobalScopeAugmentation(t.parent)}))}(t)||!e.isExternalModule(t)&&!function(t){for(var r=0,n=t.statements;r0;){var g=d.pop();if(!u.has(g)){var m=r.getSourceFileByPath(g);u.set(g,m),m&&l(t,r,m,i,a,o,s)&&d.push.apply(d,_(t,m.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(u.values(),(function(e){return e})))}r.canReuseOldState=s,r.create=function(t,r,n){var i=new e.Map,a=t.getCompilerOptions().module!==e.ModuleKind.None?new e.Map:void 0,c=a?new e.Map:void 0,u=new e.Set,l=s(a,n);t.getTypeChecker();for(var d=0,_=t.getSourceFiles();d<_.length;d++){var f=_[d],g=e.Debug.checkDefined(f.version,"Program intended to be used with Builder should have source files with versions set"),m=l?n.fileInfos.get(f.resolvedPath):void 0;if(a){var y=o(t,f,r);if(y&&a.set(f.resolvedPath,y),l){var v=n.exportedModulesMap.get(f.resolvedPath);v&&c.set(f.resolvedPath,v)}}i.set(f.resolvedPath,{version:g,signature:m&&m.signature,affectsGlobalScope:p(f)})}return{fileInfos:i,referencedMap:a,exportedModulesMap:c,hasCalledUpdateShapeSignature:u}},r.releaseCache=function(e){e.allFilesExcludingDefaultLibraryFile=void 0,e.allFileNames=void 0},r.clone=function(t){return{fileInfos:new e.Map(t.fileInfos),referencedMap:t.referencedMap&&new e.Map(t.referencedMap),exportedModulesMap:t.exportedModulesMap&&new e.Map(t.exportedModulesMap),hasCalledUpdateShapeSignature:new e.Set(t.hasCalledUpdateShapeSignature)}},r.getFilesAffectedBy=function(t,r,n,i,a,o,s){var u=o||new e.Map,d=r.getSourceFileByPath(n);if(!d)return e.emptyArray;if(!l(t,r,d,u,i,a,s))return[d];var _=(t.referencedMap?m:g)(t,r,d,u,i,a,s);return o||c(t,u),_},r.updateSignaturesFromCache=c,r.updateSignatureOfFile=u,r.updateShapeSignature=l,r.updateExportedFilesMapFromCache=function(t,r){r&&(e.Debug.assert(!!t.exportedModulesMap),r.forEach((function(e,r){e?t.exportedModulesMap.set(r,e):t.exportedModulesMap.delete(r)})))},r.getAllDependencies=function(t,r,n){var i=r.getCompilerOptions();if(e.outFile(i))return d(t,r);if(!t.referencedMap||p(n))return d(t,r);for(var a=new e.Set,o=[n.resolvedPath];o.length;){var s=o.pop();if(!a.has(s)){a.add(s);var c=t.referencedMap.get(s);if(c)for(var u=c.keys(),l=u.next();!l.done;l=u.next())o.push(l.value)}}return e.arrayFrom(e.mapDefinedIterator(a.keys(),(function(e){var t,n;return null!==(n=null===(t=r.getSourceFileByPath(e))||void 0===t?void 0:t.fileName)&&void 0!==n?n:e})))},r.getReferencedByPaths=_,r.getAllFilesExcludingDefaultLibraryFile=f}(e.BuilderState||(e.BuilderState={}))}(u||(u={})),function(e){var t;function r(t,r,n){var a=e.BuilderState.create(t,r,n);a.program=t;var o=t.getCompilerOptions();a.compilerOptions=o,e.outFile(o)||(a.semanticDiagnosticsPerFile=new e.Map),a.changedFilesSet=new e.Set;var s=e.BuilderState.canReuseOldState(a.referencedMap,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 d=n.changedFilesSet;u&&e.Debug.assert(!d||!e.forEachKey(d,(function(e){return n.semanticDiagnosticsPerFile.has(e)})),"Semantic diagnostics shouldnt be available for changed files"),null==d||d.forEach((function(e){return a.changedFilesSet.add(e)})),!e.outFile(o)&&n.affectedFilesPendingEmit&&(a.affectedFilesPendingEmit=n.affectedFilesPendingEmit.slice(),a.affectedFilesPendingEmitKind=n.affectedFilesPendingEmitKind&&new e.Map(n.affectedFilesPendingEmitKind),a.affectedFilesPendingEmitIndex=n.affectedFilesPendingEmitIndex,a.seenAffectedFiles=new e.Set)}var _=a.referencedMap,p=s?n.referencedMap:void 0,f=u&&!o.skipLibCheck==!c.skipLibCheck,g=f&&!o.skipDefaultLibCheck==!c.skipDefaultLibCheck;return a.fileInfos.forEach((function(o,c){var l,d,m,y;if(!s||!(l=n.fileInfos.get(c))||l.version!==o.version||(m=d=_&&_.get(c),y=p&&p.get(c),m!==y&&(void 0===m||void 0===y||m.size!==y.size||e.forEachKey(m,(function(e){return!y.has(e)}))))||d&&e.forEachKey(d,(function(e){return!a.fileInfos.has(e)&&n.fileInfos.has(e)})))a.changedFilesSet.add(c);else if(u){var v=t.getSourceFileByPath(c);if(v.isDeclarationFile&&!f)return;if(v.hasNoDefaultLib&&!g)return;var h=n.semanticDiagnosticsPerFile.get(c);h&&(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(e){var t=i(e,r,o);t.reportsUnnecessary=e.reportsUnnecessary,t.reportsDeprecated=e.reportDeprecated,t.source=e.source,t.skippedOn=e.skippedOn;var n=e.relatedInformation;return t.relatedInformation=n?n.length?n.map((function(e){return i(e,r,o)})):[]:void 0,t}));function o(t){return e.toPath(t,a,n)}}(h,t,r):h),a.semanticDiagnosticsFromOldState||(a.semanticDiagnosticsFromOldState=new e.Set),a.semanticDiagnosticsFromOldState.add(c))}})),s&&e.forEachEntry(n.fileInfos,(function(e,t){return e.affectsGlobalScope&&!a.fileInfos.has(t)}))?e.BuilderState.getAllFilesExcludingDefaultLibraryFile(a,t,void 0).forEach((function(e){return a.changedFilesSet.add(e.resolvedPath)})):c&&!e.outFile(o)&&e.compilerOptionsAffectEmit(o,c)&&(t.getSourceFiles().forEach((function(e){return D(a,e.resolvedPath,1)})),e.Debug.assert(!a.seenAffectedFiles||!a.seenAffectedFiles.size),a.seenAffectedFiles=a.seenAffectedFiles||new e.Set),a.buildInfoEmitPending=!!a.changedFilesSet.size,a}function i(e,t,r){var i=e.file;return n(n({},e),{file:i?t.getSourceFileByPath(r(i)):void 0})}function a(t,r){e.Debug.assert(!r||!t.affectedFiles||t.affectedFiles[t.affectedFilesIndex-1]!==r||!t.semanticDiagnosticsPerFile.has(r.resolvedPath))}function o(t,r,n){for(;;){var i=t.affectedFiles;if(i){for(var a=t.seenAffectedFiles,o=t.affectedFilesIndex;o0;){var o=a.pop();if(!i.has(o))if(i.set(o,!0),n(t,o)&&u(t,o)){var s=e.Debug.checkDefined(t.program).getSourceFileByPath(o);a.push.apply(a,e.BuilderState.getReferencedByPaths(t,s.resolvedPath))}}}e.Debug.assert(!!t.currentAffectedFilesExportedModulesMap);var c=new e.Set;if(e.forEachEntry(t.currentAffectedFilesExportedModulesMap,(function(e,i){return e&&e.has(r.resolvedPath)&&l(t,i,c,n)})))return;e.forEachEntry(t.exportedModulesMap,(function(e,i){return!t.currentAffectedFilesExportedModulesMap.has(i)&&e.has(r.resolvedPath)&&l(t,i,c,n)}))}(t,r,(function(t,r){return function(t,r,n,i){if(c(t,r),!t.changedFilesSet.has(r)){var a=e.Debug.checkDefined(t.program),o=a.getSourceFileByPath(r);o&&(e.BuilderState.updateShapeSignature(t,a,o,e.Debug.checkDefined(t.currentAffectedFilesSignatures),n,i,t.currentAffectedFilesExportedModulesMap),e.getEmitDeclarations(t.compilerOptions)&&D(t,r,0))}return!1}(t,r,n,i)}));else if(!t.cleanedDiagnosticsOfLibFiles){t.cleanedDiagnosticsOfLibFiles=!0;var a=e.Debug.checkDefined(t.program),o=a.getCompilerOptions();e.forEach(a.getSourceFiles(),(function(r){return a.isSourceFileDefaultLibrary(r)&&!e.skipTypeChecking(r,o,a)&&c(t,r.resolvedPath)}))}}function c(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function u(t,r){return e.Debug.checkDefined(t.currentAffectedFilesSignatures).get(r)!==e.Debug.checkDefined(t.fileInfos.get(r)).signature}function l(t,r,n,i){return e.forEachEntry(t.referencedMap,(function(e,a){return e.has(r)&&d(t,a,n,i)}))}function d(t,r,n,i){return!!e.tryAddToSet(n,r)&&(!!i(t,r)||(e.Debug.assert(!!t.currentAffectedFilesExportedModulesMap),!!e.forEachEntry(t.currentAffectedFilesExportedModulesMap,(function(e,a){return e&&e.has(r)&&d(t,a,n,i)}))||(!!e.forEachEntry(t.exportedModulesMap,(function(e,a){return!t.currentAffectedFilesExportedModulesMap.has(a)&&e.has(r)&&d(t,a,n,i)}))||!!e.forEachEntry(t.referencedMap,(function(e,a){return e.has(r)&&!n.has(a)&&i(t,a)})))))}function _(t,r,n,i,a){a?t.buildInfoEmitPending=!1:r===t.program?(t.changedFilesSet.clear(),t.programEmitComplete=!0):(t.seenAffectedFiles.add(r.resolvedPath),void 0!==n&&(t.seenEmittedFiles||(t.seenEmittedFiles=new e.Map)).set(r.resolvedPath,n),i?(t.affectedFilesPendingEmitIndex++,t.buildInfoEmitPending=!0):t.affectedFilesIndex++)}function p(e,t,r){return _(e,r),{result:t,affected:r}}function f(e,t,r,n,i,a){return _(e,r,n,i,a),{result:t,affected:r}}function g(t,r,n){return e.concatenate(function(t,r,n){var i=r.resolvedPath;if(t.semanticDiagnosticsPerFile){var a=t.semanticDiagnosticsPerFile.get(i);if(a)return e.filterSemanticDiagnotics(a,t.compilerOptions)}var o=e.Debug.checkDefined(t.program).getBindAndCheckDiagnostics(r,n);t.semanticDiagnosticsPerFile&&t.semanticDiagnosticsPerFile.set(i,o);return e.filterSemanticDiagnotics(o,t.compilerOptions)}(t,r,n),e.Debug.checkDefined(t.program).getProgramDiagnostics(r))}function m(t,r){var n={},i=e.getOptionsNameMap().optionsNameMap;for(var a in t)e.hasProperty(t,a)&&(n[a]=y(i.get(a.toLowerCase()),t[a],r));return n.configFilePath&&(n.configFilePath=r(n.configFilePath)),n}function y(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 v(t,r){return e.Debug.assert(!!t.length),t.map((function(e){var t=h(e,r);t.reportsUnnecessary=e.reportsUnnecessary,t.reportDeprecated=e.reportsDeprecated,t.source=e.source,t.skippedOn=e.skippedOn;var n=e.relatedInformation;return t.relatedInformation=n?n.length?n.map((function(e){return h(e,r)})):[]:void 0,t}))}function h(e,t){var r=e.file;return n(n({},e),{file:r?t(r.resolvedPath):void 0})}function D(t,r,n){t.affectedFilesPendingEmit||(t.affectedFilesPendingEmit=[]),t.affectedFilesPendingEmitKind||(t.affectedFilesPendingEmitKind=new e.Map);var i=t.affectedFilesPendingEmitKind.get(r);t.affectedFilesPendingEmit.push(r),t.affectedFilesPendingEmitKind.set(r,i||n),void 0===t.affectedFilesPendingEmitIndex&&(t.affectedFilesPendingEmitIndex=0)}function x(t,r){if(t){var n=new e.Map;for(var i in t)e.hasProperty(t,i)&&n.set(r(i),new e.Set(t[i].map(r)));return n}}function b(t,r){return{getState:e.notImplemented,backupState:e.noop,restoreState:e.noop,getProgram:n,getProgramOrUndefined:function(){return t.program},releaseProgram:function(){return t.program=void 0},getCompilerOptions:function(){return t.compilerOptions},getSourceFile:function(e){return n().getSourceFile(e)},getSourceFiles:function(){return n().getSourceFiles()},getOptionsDiagnostics:function(e){return n().getOptionsDiagnostics(e)},getGlobalDiagnostics:function(e){return n().getGlobalDiagnostics(e)},getConfigFileParsingDiagnostics:function(){return r},getSyntacticDiagnostics:function(e,t){return n().getSyntacticDiagnostics(e,t)},getDeclarationDiagnostics:function(e,t){return n().getDeclarationDiagnostics(e,t)},getSemanticDiagnostics:function(e,t){return n().getSemanticDiagnostics(e,t)},emit:function(e,t,r,i,a){return n().emit(e,t,r,i,a)},emitBuildInfo:function(e,t){return n().emitBuildInfo(e,t)},getAllDependencies:e.notImplemented,getCurrentDirectory:function(){return n().getCurrentDirectory()},close:e.noop};function n(){return e.Debug.checkDefined(t.program)}}!function(e){e[e.DtsOnly=0]="DtsOnly",e[e.Full=1]="Full"}(e.BuilderFileEmit||(e.BuilderFileEmit={})),function(e){e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"}(t=e.BuilderProgramKind||(e.BuilderProgramKind={})),e.getBuilderCreationParameters=function(t,r,n,i,a,o){var s,c,u;return void 0===t?(e.Debug.assert(void 0===r),s=n,u=i,e.Debug.assert(!!u),c=u.getProgram()):e.isArray(t)?(u=i,c=e.createProgram({rootNames:t,options:r,host:n,oldProgram:u&&u.getProgramOrUndefined(),configFileParsingDiagnostics:a,projectReferences:o}),s=n):(c=t,s=r,u=n,a=i),{host:s,newProgram:c,oldProgram:u,configFileParsingDiagnostics:a||e.emptyArray}},e.createBuilderProgram=function(n,i){var s=i.newProgram,c=i.host,u=i.oldProgram,l=i.configFileParsingDiagnostics,d=u&&u.getState();if(d&&s===d.program&&l===s.getConfigFileParsingDiagnostics())return s=void 0,d=void 0,u;var y,h=e.createGetCanonicalFileName(c.useCaseSensitiveFileNames()),x=e.maybeBind(c,c.createHash),S=r(s,h,d);s.getProgramBuildInfo=function(){return function(t,r){if(!e.outFile(t.compilerOptions)){var n=e.Debug.checkDefined(t.program).getCurrentDirectory(),i=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(t.compilerOptions),n)),a={};t.fileInfos.forEach((function(e,r){var n=t.currentAffectedFilesSignatures&&t.currentAffectedFilesSignatures.get(r);a[T(r)]=void 0===n?e:{version:e.version,signature:n,affectsGlobalScope:e.affectsGlobalScope}}));var o={fileInfos:a,options:m(t.compilerOptions,(function(t){return T(e.getNormalizedAbsolutePath(t,n))}))};if(t.referencedMap){for(var s={},c=0,u=e.arrayFrom(t.referencedMap.keys()).sort(e.compareStringsCaseSensitive);c1||47!==t.charCodeAt(0);if(a&&0!==t.search(/[a-zA-Z]:/)&&0===i.search(/[a-zA-z]\$\//)){if(-1===(n=t.indexOf(e.directorySeparator,n+1)))return!1;i=t.substring(r+i.length,n+1)}if(a&&0!==i.search(/users\//i))return!0;for(var o=n+1,s=2;s>0;s--)if(0===(o=t.indexOf(e.directorySeparator,o)+1))return!1;return!0}e.removeIgnoredPath=t,e.canWatchDirectory=r,e.createResolutionCache=function(n,i,a){var o,s,c,u=e.createMultiMap(),l=[],d=e.createMultiMap(),_=!1,p=[],f=[],g=[],m=e.memoize((function(){return n.getCurrentDirectory()})),y=n.getCachedDirectoryStructureHost(),v=new e.Map,h=e.createCacheWithRedirects(),D=e.createCacheWithRedirects(),x=e.createModuleResolutionCacheWithMaps(h,D,m(),n.getCanonicalFileName),b=new e.Map,S=e.createCacheWithRedirects(),E=[".ts",".tsx",".js",".jsx",".json"],C=new e.Map,T=new e.Map,k=i&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(i,m())),A=k&&n.toPath(k),F=void 0!==A?A.split(e.directorySeparator).length:0,N=new e.Map;return{startRecordingFilesWithChangedResolutions:function(){o=[]},finishRecordingFilesWithChangedResolutions:function(){var e=o;return o=void 0,e},startCachingPerDirectoryResolution:M,finishCachingPerDirectoryResolution:function(){c=void 0,M(),T.forEach((function(e,t){0===e.refCount&&(T.delete(t),e.watcher.close())})),_=!1},resolveModuleNames:function(t,r,n,i){return R({names:t,containingFile:r,redirectedReference:i,cache:v,perDirectoryCacheWithRedirects:h,loader:L,getResolutionWithResolvedFileName:P,shouldRetryResolution:function(t){return!t.resolvedModule||!e.resolutionExtensionIsTSOrJson(t.resolvedModule.extension)},reusedNames:n,logChanges:a})},getResolvedModuleWithFailedLookupLocationsFromCache:function(e,t){var r=v.get(n.toPath(t));return r&&r.get(e)},resolveTypeReferenceDirectives:function(t,r,n){return R({names:t,containingFile:r,redirectedReference:n,cache:b,perDirectoryCacheWithRedirects:S,loader:e.resolveTypeReferenceDirective,getResolutionWithResolvedFileName:w,shouldRetryResolution:function(e){return void 0===e.resolvedTypeReferenceDirective}})},removeResolutionsFromProjectReferenceRedirects:function(t){if(!e.fileExtensionIs(t,".json"))return;var r=n.getCurrentProgram();if(!r)return;var i=r.getResolvedProjectReferenceByPath(t);if(!i)return;i.commandLine.fileNames.forEach((function(e){return X(n.toPath(e))}))},removeResolutionsOfFile:X,hasChangedAutomaticTypeDirectiveNames:function(){return _},invalidateResolutionOfFile:function(t){X(t);var r=_;Q(d.get(t),e.returnTrue)&&_&&!r&&n.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:Z,setFilesWithInvalidatedNonRelativeUnresolvedImports:function(t){e.Debug.assert(c===t||void 0===c),c=t},createHasInvalidatedResolution:function(t){if(Z(),t)return s=void 0,e.returnTrue;var r=s;return s=void 0,function(e){return!!r&&r.has(e)||O(e)}},updateTypeRootsWatch:function(){var t=n.getCompilationSettings();if(t.types)return void te();var r=e.getEffectiveTypeRoots(t,{directoryExists:ne,getCurrentDirectory:m});r?e.mutateMap(N,e.arrayToMap(r,(function(e){return n.toPath(e)})),{createNewValue:re,onDeleteValue:e.closeFileWatcher}):te()},closeTypeRootsWatch:te,clear:function(){e.clearMap(T,e.closeFileWatcherOf),C.clear(),u.clear(),te(),v.clear(),b.clear(),d.clear(),l.length=0,p.length=0,f.length=0,g.length=0,M(),_=!1}};function P(e){return e.resolvedModule}function w(e){return e.resolvedTypeReferenceDirective}function I(t,r){return!(void 0===t||r.length<=t.length)&&(e.startsWith(r,t)&&r[t.length]===e.directorySeparator)}function O(e){if(!c)return!1;var t=c.get(e);return!!t&&!!t.length}function M(){h.clear(),D.clear(),S.clear(),u.forEach(V),u.clear()}function L(t,r,i,a,o){var s,c=e.resolveModuleName(t,r,i,a,x,o);if(!n.getGlobalCache)return c;var u=n.getGlobalCache();if(!(void 0===u||e.isExternalModuleNameRelative(t)||c.resolvedModule&&e.extensionIsTS(c.resolvedModule.extension))){var l=e.loadModuleFromGlobalCache(e.Debug.checkDefined(n.globalCacheResolutionModuleName)(t),n.projectName,i,a,u),d=l.resolvedModule,_=l.failedLookupLocations;if(d)return c.resolvedModule=d,(s=c.failedLookupLocations).push.apply(s,_),c}return c}function R(t){var r,i=t.names,a=t.containingFile,s=t.redirectedReference,c=t.cache,u=t.perDirectoryCacheWithRedirects,l=t.loader,d=t.getResolutionWithResolvedFileName,_=t.shouldRetryResolution,p=t.reusedNames,f=t.logChanges,g=n.toPath(a),m=c.get(g)||c.set(g,new e.Map).get(g),y=e.getDirectoryPath(g),v=u.getOrCreateMapOfCacheRedirects(s),h=v.get(y);h||(h=new e.Map,v.set(y,h));for(var D=[],x=n.getCompilationSettings(),b=f&&O(g),S=n.getCurrentProgram(),E=S&&S.getResolvedProjectReferenceToRedirect(a),C=E?!s||s.sourceFile.path!==E.sourceFile.path:!!s,T=new e.Map,k=0,A=i;kF+1?{dir:i.slice(0,F+1).join(e.directorySeparator),dirPath:n.slice(0,F+1).join(e.directorySeparator)}:{dir:k,dirPath:A,nonRecursive:!1}}return J(e.getDirectoryPath(e.getNormalizedAbsolutePath(t,m())),e.getDirectoryPath(r))}function J(t,n){for(;e.pathContainsNodeModules(n);)t=e.getDirectoryPath(t),n=e.getDirectoryPath(n);if(e.isNodeModulesDirectory(n))return r(e.getDirectoryPath(n))?{dir:t,dirPath:n}:void 0;var i,a,o=!0;if(void 0!==A)for(;!I(n,A);){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 K(t){return e.fileExtensionIsOneOf(t,E)}function z(t,r,i,a){if(r.refCount)r.refCount++,e.Debug.assertDefined(r.files);else{r.refCount=1,e.Debug.assert(0===e.length(r.files)),e.isExternalModuleNameRelative(t)?U(r):u.add(t,r);var o=a(r);o&&o.resolvedFileName&&d.add(n.toPath(o.resolvedFileName),r)}(r.files||(r.files=[])).push(i)}function U(t){e.Debug.assert(!!t.refCount);var r=t.failedLookupLocations;if(r.length){l.push(t);for(var i=!1,a=0,o=r;a1),C.set(_,g-1))),f===A?o=!0:H(f)}}o&&H(A)}}}function H(e){T.get(e).refCount--}function G(e,t,r){return n.watchDirectoryOfFailedLookupLocation(e,(function(e){var r=n.toPath(e);y&&y.addOrDeleteFileOrDirectory(e,r),$(r,t===r)}),r?0:1)}function Y(e,t,r){var n=e.get(t);n&&(n.forEach((function(e){return W(e,t,r)})),e.delete(t))}function X(e){Y(v,e,P),Y(b,e,w)}function Q(t,r){if(!t)return!1;for(var n=!1,i=0,a=t;i1&&r.sort(d),c.push.apply(c,r));var i=e.getDirectoryPath(t);if(i===t)return s=t,"break";s=t=i},l=e.getDirectoryPath(e.toPath(t,i,a));0!==o.size;){var p=u(l);if(l=s,"break"===p)break}if(o.size){var f=e.arrayFrom(o.values());f.length>1&&f.sort(d),c.push.apply(c,f)}return c}function f(t,r,n){for(var i in n)for(var a=0,o=n[i];a=l.length+d.length&&e.startsWith(r,l)&&e.endsWith(r,d)||!d&&r===e.removeTrailingDirectorySeparator(l)){var _=r.substr(l.length,r.length-d.length);return i.replace("*",_)}}else if(c===r||c===t)return i}}function g(t,r,n,i,a){var o=t.path,s=t.isRedirect,c=r.getCanonicalFileName,u=r.sourceDirectory;if(n.fileExists&&n.readFile){var l=function(t){var r,n=0,i=0,a=0,o=0;!function(e){e[e.BeforeNodeModules=0]="BeforeNodeModules",e[e.NodeModules=1]="NodeModules",e[e.Scope=2]="Scope",e[e.PackageContent=3]="PackageContent"}(r||(r={}));var s=0,c=0,u=0;for(;c>=0;)switch(s=c,c=t.indexOf("/",s+1),u){case 0:t.indexOf(e.nodeModulesPathPart,s)===s&&(n=s,i=c,u=1);break;case 1:case 2:1===u&&"@"===t.charAt(s+1)?u=2:(a=c,u=3);break;case 3:u=t.indexOf(e.nodeModulesPathPart,s)===s?1:3}return o=s,u>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:i,packageRootIndex:a,fileNameIndex:o}:void 0}(o);if(l){var d=o,_=!1;if(!a)for(var p=l.packageRootIndex,g=void 0;;){var m=E(p),v=m.moduleFileToTry,h=m.packageRootPath;if(h){d=h,_=!0;break}if(g||(g=v),-1===(p=o.indexOf(e.directorySeparator,p+1))){d=C(g);break}}if(!s||_){var D=n.getGlobalTypingsCacheLocation&&n.getGlobalTypingsCacheLocation(),x=c(d.substring(0,l.topLevelNodeModulesIndex));if(e.startsWith(u,x)||D&&e.startsWith(c(D),x)){var b=d.substring(l.topLevelPackageNameIndex+1),S=e.getPackageNameFromTypesPackageName(b);return e.getEmitModuleResolutionKind(i)!==e.ModuleResolutionKind.NodeJs&&S===b?void 0:S}}}}function E(t){var r=o.substring(0,t),a=e.combinePaths(r,"package.json"),s=o;if(n.fileExists(a)){var u=JSON.parse(n.readFile(a)),l=u.typesVersions?e.getPackageJsonTypesVersionsPaths(u.typesVersions):void 0;if(l){var d=o.slice(r.length+1),_=f(e.removeFileExtension(d),y(d,0,i),l.paths);void 0!==_&&(s=e.combinePaths(r,_))}var p=u.typings||u.types||u.main;if(e.isString(p)){var g=e.toPath(p,r,c);if(e.removeFileExtension(g)===e.removeFileExtension(c(s)))return{packageRootPath:r,moduleFileToTry:s}}}return{moduleFileToTry:s}}function C(t){var r=e.removeFileExtension(t);return"/index"!==c(r.substring(l.fileNameIndex))||function(t,r){if(!t.fileExists)return;for(var n=e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]),i=0,a=n;i0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:_.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)||e.returnNoopFileWatcher,watchDirectory:e.maybeBind(t,t.watchDirectory)||e.returnNoopFileWatcher,setTimeout:e.maybeBind(t,t.setTimeout)||e.noop,clearTimeout:e.maybeBind(t,t.clearTimeout)||e.noop}}function f(t,r){var n=e.memoize((function(){return e.getDirectoryPath(e.normalizePath(t.getExecutingFilePath()))}));return{useCaseSensitiveFileNames:function(){return t.useCaseSensitiveFileNames},getNewLine:function(){return t.newLine},getCurrentDirectory:e.memoize((function(){return t.getCurrentDirectory()})),getDefaultLibLocation:n,getDefaultLibFileName:function(t){return e.combinePaths(n(),e.getDefaultLibFileName(t))},fileExists:function(e){return t.fileExists(e)},readFile:function(e,r){return t.readFile(e,r)},directoryExists:function(e){return t.directoryExists(e)},getDirectories:function(e){return t.getDirectories(e)},readDirectory:function(e,r,n,i,a){return t.readDirectory(e,r,n,i,a)},realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable),trace:function(e){return t.write(e+t.newLine)},createDirectory:function(e){return t.createDirectory(e)},writeFile:function(e,r,n){return t.writeFile(e,r,n)},createHash:e.maybeBind(t,t.createHash),createProgram:r||e.createEmitAndSemanticDiagnosticsBuilderProgram}}function g(t,r,n,i){void 0===t&&(t=e.sys);var a=function(e){return t.write(e+t.newLine)},o=f(t,r);return e.copyProperties(o,p(t,i)),o.afterProgramCreate=function(r){var i=r.getCompilerOptions(),s=e.getNewLineCharacter(i,(function(){return t.newLine}));d(r,n,a,(function(t){return o.onWatchStatusChange(e.createCompilerDiagnostic(c(t),t),s,i,t)}))},o}function m(t,r,n){r(n),t.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}e.createDiagnosticReporter=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,a){var o=i;o.onUnRecoverableConfigFileDiagnostic=function(e){return m(i,a,e)};var s=e.getParsedCommandLineOfConfigFile(t,r,o,void 0,n);return o.onUnRecoverableConfigFileDiagnostic=void 0,s},e.getErrorCountForSummary=s,e.getWatchErrorSummaryDiagnosticMessage=c,e.getErrorSummaryText=u,e.listFiles=l,e.emitFilesAndReportErrors=d,e.emitFilesAndReportErrorsAndGetExitStatus=_,e.noopFileWatcher={close:e.noop},e.returnNoopFileWatcher=function(){return e.noopFileWatcher},e.createWatchHost=p,e.WatchType={ConfigFile:"Config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",TypeRoots:"Type roots"},e.createWatchFactory=function(t,r){var n=t.trace?r.extendedDiagnostics?e.WatchLogLevel.Verbose:r.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,i=n!==e.WatchLogLevel.None?function(e){return t.trace(e)}:e.noop,a=e.getWatchFactory(n,i);return a.writeLog=i,a},e.createCompilerHostFromProgramHost=function(t,r,n){void 0===n&&(n=t);var i=t.useCaseSensitiveFileNames(),a=e.memoize((function(){return t.getNewLine()}));return{getSourceFile:function(n,i,a){var o;try{e.performance.mark("beforeIORead"),o=t.readFile(n,r().charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){a&&a(e.message),o=""}return void 0!==o?e.createSourceFile(n,o,i):void 0},getDefaultLibLocation:e.maybeBind(t,t.getDefaultLibLocation),getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:function(r,n,i,a){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(r,n,i,(function(e,r,n){return t.writeFile(e,r,n)}),(function(e){return t.createDirectory(e)}),(function(e){return t.directoryExists(e)})),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}},getCurrentDirectory:e.memoize((function(){return t.getCurrentDirectory()})),useCaseSensitiveFileNames:function(){return i},getCanonicalFileName:e.createGetCanonicalFileName(i),getNewLine:function(){return e.getNewLineCharacter(r(),a)},fileExists:function(e){return t.fileExists(e)},readFile:function(e){return t.readFile(e)},trace:e.maybeBind(t,t.trace),directoryExists:e.maybeBind(n,n.directoryExists),getDirectories:e.maybeBind(n,n.getDirectories),realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(t,t.createHash),readDirectory:e.maybeBind(t,t.readDirectory)}},e.setGetSourceFileAsHashVersioned=function(t,n){var i=t.getSourceFile,a=e.maybeBind(n,n.createHash)||e.generateDjb2Hash;t.getSourceFile=function(){for(var e=[],n=0;ne?t:e}function u(t){return e.fileExtensionIs(t,".d.ts")}function l(e){return!!e&&!!e.buildOrder}function d(e){return l(e)?e.buildOrder:e}function _(t,r){return function(n){var i=r?"["+e.formatColorAndReset(e.getLocaleTimeString(t),e.ForegroundColorEscapeSequences.Grey)+"] ":e.getLocaleTimeString(t)+" - ";i+=""+e.flattenDiagnosticMessageText(n.messageText,t.newLine)+(t.newLine+t.newLine),t.write(i)}}function 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||_(t),a.now=e.maybeBind(t,t.now),a}function f(t,r,n,i,a){var o,s,c=r,u=r,l=c.getCurrentDirectory(),d=e.createGetCanonicalFileName(c.useCaseSensitiveFileNames()),_=(o=i,s={},e.commonOptionsWithBuild.forEach((function(t){e.hasProperty(o,t.name)&&(s[t.name]=o[t.name])})),s),p=e.createCompilerHostFromProgramHost(c,(function(){return S.projectCompilerOptions}));e.setGetSourceFileAsHashVersioned(p,c),p.getParsedCommandLine=function(e){return v(S,e,m(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,d);if(!p.resolveModuleNames){var g=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.checkEachDefined(t),r,i,g)}}var y=e.createWatchFactory(u,i),h=y.watchFile,D=y.watchFilePath,x=y.watchDirectory,b=y.writeLog,S={host:c,hostWithWatch:u,currentDirectory:l,getCanonicalFileName:d,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(c),writeFileName:c.trace?function(e){return c.trace(e)}:void 0,options:i,baseCompilerOptions:_,rootNames:n,baseWatchOptions:a,resolvedConfigFilePaths:new e.Map,configFileCache:new e.Map,projectStatus:new e.Map,buildInfoChecked:new e.Map,extendedConfigCache:new e.Map,builderPrograms:new e.Map,diagnostics:new e.Map,projectPendingBuild:new e.Map,projectErrorsReported:new e.Map,compilerHost:p,moduleResolutionCache:f,buildOrder:void 0,readFileWithCache:function(e){return c.readFile(e)},projectCompilerOptions:_,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:t,currentInvalidatedProject:void 0,watch:t,allWatchedWildcardDirectories:new e.Map,allWatchedInputFiles:new e.Map,allWatchedConfigFiles:new e.Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:h,watchFilePath:D,watchDirectory:x,writeLog:b};return S}function g(t,r){return e.toPath(r,t.currentDirectory,t.getCanonicalFileName)}function m(e,t){var r=e.resolvedConfigFilePaths,n=r.get(t);if(void 0!==n)return n;var i=g(e,t);return r.set(t,i),i}function y(e){return!!e.options}function v(t,r,n){var i,a=t.configFileCache,o=a.get(n);if(o)return y(o)?o:void 0;var s,c=t.parseConfigFileHost,u=t.baseCompilerOptions,l=t.baseWatchOptions,d=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,d,l),c.onUnRecoverableConfigFileDiagnostic=e.noop),a.set(n,s||i),s}function h(t,r){return e.resolveConfigFileProjectName(e.resolvePath(t.currentDirectory,r))}function D(t,r){for(var n,i,a=new e.Map,o=new e.Map,s=[],c=0,u=r;c0);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)}(l,d,f),D=r.createProgram(f.fileNames,f.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)}(l,_,f),e.getConfigFileParsingDiagnostics(f),f.projectReferences),l.watch&&l.builderPrograms.set(_,D),S++}function F(e,t,r){var n;e.length?(n=M(l,_,D,f,e,t,r),x=n.buildResult,S=n.step):S++}function P(n){e.Debug.assertIsDefined(D),F(r(D.getConfigFileParsingDiagnostics(),D.getOptionsDiagnostics(n),D.getGlobalDiagnostics(n),D.getSyntacticDiagnostics(void 0,n)),t.SyntaxErrors,"Syntactic")}function w(r){F(e.Debug.checkDefined(D).getSemanticDiagnostics(void 0,r),t.TypeErrors,"Semantic")}function L(r,n,o){var s,d;e.Debug.assertIsDefined(D),e.Debug.assert(S===i.Emit),D.backupState();var p=[],m=e.emitFilesAndReportErrors(D,(function(e){return(d||(d=[])).push(e)}),void 0,void 0,(function(e,t,r){return p.push({name:e,text:t,writeByteOrderMark:r})}),n,!1,o).emitResult;if(d)return D.restoreState(),s=M(l,_,D,f,d,t.DeclarationEmitErrors,"Declaration file"),x=s.buildResult,S=s.step,{emitSkipped:!0,diagnostics:m.diagnostics};var y=l.host,v=l.compilerHost,h=t.DeclarationOutputUnchanged,b=a,E=!1,C=e.createDiagnosticCollection(),T=new e.Map;return p.forEach((function(n){var i,a=n.name,o=n.text,s=n.writeByteOrderMark;!E&&u(a)&&(y.fileExists(a)&&l.readFileWithCache(a)===o?i=y.getModifiedTime(a):(h&=~t.DeclarationOutputUnchanged,E=!0)),T.set(g(l,a),a),e.writeFile(r?{writeFile:r}:v,C,a,o,s),void 0!==i&&(b=c(i,b))})),j(C,T,b,E,p.length?p[0].name:e.getFirstProjectOutput(f,!y.useCaseSensitiveFileNames()),h),m}function R(n,a){e.Debug.assertIsDefined(D),e.Debug.assert(S===i.EmitBuildInfo);var o=D.emitBuildInfo(n,a);return o.diagnostics.length&&(ee(l,o.diagnostics),l.diagnostics.set(_,r(l.diagnostics.get(_),o.diagnostics)),x=t.EmitErrors&x),o.emittedFiles&&l.writeFileName&&o.emittedFiles.forEach((function(e){return I(l,f,e)})),O(l,D,f),S=i.QueueReferencingProjects,o}function j(r,n,a,s,c,u){var d,p=r.getDiagnostics();if(p.length)return d=M(l,_,D,f,p,t.EmitErrors,"Emit"),x=d.buildResult,S=d.step,p;l.writeFileName&&n.forEach((function(e){return I(l,f,e)}));var g=B(l,f,a,e.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,n);return l.diagnostics.delete(_),l.projectStatus.set(_,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:s?o:g,oldestOutputFileName:c}),O(l,D,f),S=i.QueueReferencingProjects,x=u,p}function K(r,o){if(e.Debug.assert(s===n.UpdateBundle),l.options.dry)return $(l,e.Diagnostics.A_non_dry_build_would_update_output_of_project_0,d),x=t.Success,void(S=i.QueueReferencingProjects);l.options.verbose&&$(l,e.Diagnostics.Updating_output_of_project_0,d);var c=l.compilerHost;l.projectCompilerOptions=f.options;var u=e.emitUsingBuildInfo(f,c,(function(e){var t=h(l,e.path);return v(l,t,m(l,t))}),o);if(e.isString(u))return $(l,e.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,d,Q(l,u)),S=i.BuildInvalidatedProjectOfBundle,b=N(n.Build,l,d,_,p,f,y);e.Debug.assert(!!u.length);var D=e.createDiagnosticCollection(),E=new e.Map;return u.forEach((function(t){var n=t.name,i=t.text,a=t.writeByteOrderMark;E.set(g(l,n),n),e.writeFile(r?{writeFile:r}:c,D,n,i,a)})),{emitSkipped:!1,diagnostics:j(D,E,a,!1,u[0].name,t.DeclarationOutputUnchanged)}}function z(t,r,n,a){for(;S<=t&&So)}}}function P(t,r,n){var i=t.options;return!(r.type===e.UpToDateStatusType.OutOfDateWithPrepend&&!i.force)||(0===n.fileNames.length||!!e.getConfigFileParsingDiagnostics(n).length||!e.isIncrementalCompilation(n.options))}function w(t,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;ss&&(i=p,s=f)}if(!r.fileNames.length&&!e.canJsonReportNoInputFiles(r.raw))return{type:e.UpToDateStatusType.ContainerOnly};for(var g,y=e.getAllProjectOutputs(r,!l.useCaseSensitiveFileNames()),h="(none)",D=o,x="(none)",b=a,S=a,E=!1,C=0,T=y;Cb&&(b=A,x=k),u(k)&&(S=c(S,l.getModifiedTime(k)||e.missingFileModifiedTime))}var F,N=!1,P=!1;if(r.projectReferences){t.projectStatus.set(n,{type:e.UpToDateStatusType.ComputingUpstream});for(var w=0,I=r.projectReferences;w=0},t.findArgument=function(t){var r=e.sys.args.indexOf(t);return r>=0&&r214)return 2;if(46===e.charCodeAt(0))return 3;if(95===e.charCodeAt(0))return 4;if(t){var r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){var n=i(r[1],!1);if(0!==n)return{name:r[1],isScopeName:!0,result:n};var a=i(r[2],!1);return 0!==a?{name:r[2],isScopeName:!1,result:a}:0}}return encodeURIComponent(e)!==e?5:0}function a(t,r,n,i){var a=i?"Scope":"Package";switch(r){case 1:return"'"+t+"':: "+a+" name '"+n+"' cannot be empty";case 2:return"'"+t+"':: "+a+" name '"+n+"' should be less than 214 characters";case 3:return"'"+t+"':: "+a+" name '"+n+"' cannot start with '.'";case 4:return"'"+t+"':: "+a+" name '"+n+"' cannot start with '_'";case 5:return"'"+t+"':: "+a+" name '"+n+"' contains non URI safe characters";case 0:return e.Debug.fail();default:throw e.Debug.assertNever(r)}}t.validatePackageName=function(e){return i(e,!0)},t.renderPackageNameValidationFailure=function(e,t){return"object"==typeof e?a(t,e.result,e.name,e.isScopeName):a(t,e,t,!1)}}(e.JsTyping||(e.JsTyping={}))}(u||(u={})),function(e){var t,r;function n(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:t.Smart,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:r.Ignore,trimTrailingWhitespace:!0}}!function(e){var t=function(){function e(e){this.text=e}return e.prototype.getText=function(e,t){return 0===e&&t===this.text.length?this.text:this.text.substring(e,t)},e.prototype.getLength=function(){return this.text.length},e.prototype.getChangeRange=function(){},e}();e.fromString=function(e){return new t(e)}}(e.ScriptSnapshot||(e.ScriptSnapshot={})),function(e){e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All"}(e.PackageJsonDependencyGroup||(e.PackageJsonDependencyGroup={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto"}(e.PackageJsonAutoImportPreference||(e.PackageJsonAutoImportPreference={})),function(e){e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic"}(e.LanguageServiceMode||(e.LanguageServiceMode={})),e.emptyOptions={},function(e){e.Original="original",e.TwentyTwenty="2020"}(e.SemanticClassificationFormat||(e.SemanticClassificationFormat={})),function(e){e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference"}(e.HighlightSpanKind||(e.HighlightSpanKind={})),function(e){e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart"}(t=e.IndentStyle||(e.IndentStyle={})),function(e){e.Ignore="ignore",e.Insert="insert",e.Remove="remove"}(r=e.SemicolonPreference||(e.SemicolonPreference={})),e.getDefaultFormatCodeSettings=n,e.testFormatSettings=n("\n"),function(e){e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral"}(e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={})),function(e){e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports"}(e.OutliningSpanKind||(e.OutliningSpanKind={})),function(e){e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration"}(e.OutputFileType||(e.OutputFileType={})),function(e){e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition"}(e.EndOfLineState||(e.EndOfLineState={})),function(e){e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral"}(e.TokenClass||(e.TokenClass={})),function(e){e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string"}(e.ScriptElementKind||(e.ScriptElementKind={})),function(e){e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json"}(e.ScriptElementKindModifier||(e.ScriptElementKindModifier={})),function(e){e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value"}(e.ClassificationTypeNames||(e.ClassificationTypeNames={})),function(e){e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral"}(e.ClassificationType||(e.ClassificationType={}))}(u||(u={})),function(e){function t(t){switch(t.kind){case 249:return e.isInJSFile(t)&&e.getJSDocEnumTag(t)?7:1;case 160:case 198:case 163:case 162:case 288:case 289:case 165:case 164:case 166:case 167:case 168:case 251:case 208:case 209:case 287:case 280:return 1;case 159:case 253:case 254:case 177:return 2;case 331:return void 0===t.name?3:2;case 291:case 252:return 3;case 256:return e.isAmbientModule(t)||1===e.getModuleInstanceState(t)?5:4;case 255:case 264:case 265:case 260:case 261:case 266:case 267:return 7;case 297:return 5}return 7}function r(t){for(;157===t.parent.kind;)t=t.parent;return e.isInternalModuleImportEqualsDeclaration(t.parent)&&t.parent.moduleReference===t}function i(e){return e.expression}function a(e){return e.tag}function o(e){return e.tagName}function s(t,r,n,i,a){var o=i?u(t):c(t);return a&&(o=e.skipOuterExpressions(o)),!!o&&!!o.parent&&r(o.parent)&&n(o.parent)===o}function c(e){return _(e)?e.parent:e}function u(e){return _(e)||p(e)?e.parent:e}function l(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isBreakOrContinueStatement))||void 0===r?void 0:r.label)===t}function d(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isLabeledStatement))||void 0===r?void 0:r.label)===t}function _(t){var r;return(null===(r=e.tryCast(t.parent,e.isPropertyAccessExpression))||void 0===r?void 0:r.name)===t}function p(t){var r;return(null===(r=e.tryCast(t.parent,e.isElementAccessExpression))||void 0===r?void 0:r.argumentExpression)===t}e.scanner=e.createScanner(99,!0),function(e){e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All"}(e.SemanticMeaning||(e.SemanticMeaning={})),e.getMeaningFromDeclaration=t,e.getMeaningFromLocation=function(n){return 297===(n=P(n)).kind?1:266===n.parent.kind||272===n.parent.kind||265===n.parent.kind||262===n.parent.kind||e.isImportEqualsDeclaration(n.parent)&&n===n.parent.name?7:r(n)?function(t){var r=157===t.kind?t:e.isQualifiedName(t.parent)&&t.parent.right===t?t.parent:void 0;return r&&260===r.parent.kind?7:4}(n):e.isDeclarationName(n)?t(n.parent):e.isEntityName(n)&&e.isJSDocNameReference(n.parent)?7:function(t){e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent);switch(t.kind){case 107:return!e.isExpressionNode(t);case 187:return!0}switch(t.parent.kind){case 173:return!0;case 195:return!t.parent.isTypeOf;case 223:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)}return!1}(n)?2:function(e){return function(e){var t=e,r=!0;if(157===t.parent.kind){for(;t.parent&&157===t.parent.kind;)t=t.parent;r=t.right===e}return 173===t.parent.kind&&!r}(e)||function(e){var t=e,r=!0;if(201===t.parent.kind){for(;t.parent&&201===t.parent.kind;)t=t.parent;r=t.name===e}if(!r&&223===t.parent.kind&&286===t.parent.parent.kind){var n=t.parent.parent.parent;return 252===n.kind&&116===t.parent.parent.token||253===n.kind&&93===t.parent.parent.token}return!1}(e)}(n)?4:e.isTypeParameterDeclaration(n.parent)?(e.Debug.assert(e.isJSDocTemplateTag(n.parent.parent)),2):e.isLiteralTypeNode(n.parent)?3:1},e.isInRightSideOfInternalImportEqualsDeclaration=r,e.isCallExpressionTarget=function(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),s(t,e.isCallExpression,i,r,n)},e.isNewExpressionTarget=function(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),s(t,e.isNewExpression,i,r,n)},e.isCallOrNewExpressionTarget=function(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),s(t,e.isCallOrNewExpression,i,r,n)},e.isTaggedTemplateTag=function(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),s(t,e.isTaggedTemplateExpression,a,r,n)},e.isDecoratorTarget=function(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),s(t,e.isDecorator,i,r,n)},e.isJsxOpeningLikeElementTagName=function(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),s(t,e.isJsxOpeningLikeElement,o,r,n)},e.climbPastPropertyAccess=c,e.climbPastPropertyOrElementAccess=u,e.getTargetLabel=function(e,t){for(;e;){if(245===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}},e.hasPropertyAccessExpressionWithName=function(t,r){return!!e.isPropertyAccessExpression(t.expression)&&t.expression.name.text===r},e.isJumpStatementTarget=l,e.isLabelOfLabeledStatement=d,e.isLabelName=function(e){return d(e)||l(e)},e.isTagName=function(t){var r;return(null===(r=e.tryCast(t.parent,e.isJSDocTag))||void 0===r?void 0:r.tagName)===t},e.isRightSideOfQualifiedName=function(t){var r;return(null===(r=e.tryCast(t.parent,e.isQualifiedName))||void 0===r?void 0:r.right)===t},e.isRightSideOfPropertyAccess=_,e.isArgumentExpressionOfElementAccess=p,e.isNameOfModuleDeclaration=function(t){var r;return(null===(r=e.tryCast(t.parent,e.isModuleDeclaration))||void 0===r?void 0:r.name)===t},e.isNameOfFunctionDeclaration=function(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isFunctionLike))||void 0===r?void 0:r.name)===t},e.isLiteralNameOfPropertyDeclarationOrIndexAccess=function(t){switch(t.parent.kind){case 163:case 162:case 288:case 291:case 165:case 164:case 167:case 168:case 256:return e.getNameOfDeclaration(t.parent)===t;case 202:return t.parent.argumentExpression===t;case 158:return!0;case 191:return 189===t.parent.parent.kind;default:return!1}},e.isExpressionOfExternalModuleImportEqualsDeclaration=function(t){return e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t},e.getContainerNode=function(t){for(e.isJSDocTypeAlias(t)&&(t=t.parent.parent);;){if(!(t=t.parent))return;switch(t.kind){case 297:case 165:case 164:case 251:case 208:case 167:case 168:case 252:case 253:case 255:case 256:return t}}},e.getNodeKind=function t(r){switch(r.kind){case 297:return e.isExternalModule(r)?"module":"script";case 256:return"module";case 252:case 221:return"class";case 253:return"interface";case 254:case 324:case 331:return"type";case 255:return"enum";case 249:return c(r);case 198:return c(e.getRootDeclaration(r));case 209:case 251:case 208:return"function";case 167:return"getter";case 168:return"setter";case 165:case 164:return"method";case 288:var n=r.initializer;return e.isFunctionLike(n)?"method":"property";case 163:case 162:case 289:case 290:return"property";case 171:return"index";case 170:return"construct";case 169:return"call";case 166:return"constructor";case 159:return"type parameter";case 291:return"enum member";case 160:return e.hasSyntacticModifier(r,92)?"property":"parameter";case 260:case 265:case 270:case 263:case 269:return"alias";case 216:var i=e.getAssignmentDeclarationKind(r),a=r.right;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:var o=t(a);return""===o?"const":o;case 3:return e.isFunctionExpression(a)?"method":"property";case 4:return"property";case 5:return e.isFunctionExpression(a)?"method":"property";case 6:return"local class";default:return e.assertType(i),""}case 78:return e.isImportClause(r.parent)?"alias":"";case 266:var s=t(r.expression);return""===s?"const":s;default:return""}function c(t){return e.isVarConst(t)?"const":e.isLet(t)?"let":"var"}},e.isThis=function(t){switch(t.kind){case 107:return!0;case 78:return e.identifierIsThisKeyword(t)&&160===t.parent.kind;default:return!1}};var f=/^\/\/\/\s*=r.end}function v(e,t,r,n){return Math.max(e,r)t)break;var u=c.getEnd();if(tt.end||e.pos===t.end)&&W(e,n)?r(e):void 0}))}(r)}function L(t,r,n,i){var a=function a(o){if(R(o)&&1!==o.kind)return o;var s=o.getChildren(r),c=e.binarySearchKey(s,t,(function(e,t){return t}),(function(e,r){return t=s[e-1].end?0:1:-1}));if(c>=0&&s[c]){var u=s[c];if(t=t||!W(u,r)||J(u)){var l=j(s,c,r);return l&&B(l,r)}return a(u)}}e.Debug.assert(void 0!==n||297===o.kind||1===o.kind||e.isJSDocCommentContainingNode(o));var d=j(s,s.length,r);return d&&B(d,r)}(n||r);return e.Debug.assert(!(a&&J(a))),a}function R(t){return e.isToken(t)&&!J(t)}function B(e,t){if(R(e))return e;var r=e.getChildren(t);if(0===r.length)return e;var n=j(r,r.length,t);return n&&B(n,t)}function j(t,r,n){for(var i=r-1;i>=0;i--){if(J(t[i]))e.Debug.assert(i>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(W(t[i],n))return t[i]}}function J(t){return e.isJsxText(t)&&t.containsOnlyTriviaWhiteSpaces}function K(e,t,r){for(var n=e.kind,i=0;;){var a=L(e.getFullStart(),r);if(!a)return;if((e=a).kind===t){if(0===i)return e;i--}else e.kind===n&&i++}}function z(e,t,r){return t?e.getNonNullableType():r?e.getNonOptionalType():e}function U(t,r,n){var i=n.getTypeAtLocation(t);return e.isOptionalChain(t.parent)&&(i=z(i,e.isOptionalChainRoot(t.parent),!0)),(e.isNewExpression(t.parent)?i.getConstructSignatures():i.getCallSignatures()).filter((function(e){return!!e.typeParameters&&e.typeParameters.length>=r}))}function V(t,r){for(var n=t,i=0,a=0;n;){switch(n.kind){case 29:if((n=L(n.getFullStart(),r))&&28===n.kind&&(n=L(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=K(n,18,r)))return;break;case 21:if(!(n=K(n,20,r)))return;break;case 23:if(!(n=K(n,22,r)))return;break;case 27:a++;break;case 38:case 78:case 10:case 8:case 9:case 109:case 94:case 111:case 93:case 138:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(n))break;return}n=L(n.getFullStart(),r)}}function q(t,r,n){return e.formatting.getRangeOfEnclosingComment(t,r,void 0,n)}function W(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function H(e,t,r){var n=q(e,t,void 0);return!!n&&r===f.test(e.text.substring(n.pos,n.end))}function G(t,r,n){return e.createTextSpanFromBounds(t.getStart(r),(n||t).getEnd())}function Y(t){if(!t.isUnterminated)return e.createTextSpanFromBounds(t.getStart()+1,t.getEnd()-1)}function X(e,t){return{span:e,newText:t}}function Q(e){return 149===e.kind}function $(t,r){return{fileExists:function(e){return t.fileExists(e)},getCurrentDirectory:function(){return r.getCurrentDirectory()},readFile:e.maybeBind(r,r.readFile),useCaseSensitiveFileNames:e.maybeBind(r,r.useCaseSensitiveFileNames),getSymlinkCache:e.maybeBind(r,r.getSymlinkCache)||t.getSymlinkCache,getGlobalTypingsCacheLocation:e.maybeBind(r,r.getGlobalTypingsCacheLocation),getSourceFiles:function(){return t.getSourceFiles()},redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:function(e){return t.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return t.isSourceOfProjectReferenceRedirect(e)}}}function Z(e,t){return n(n({},$(e,t)),{getCommonSourceDirectory:function(){return e.getCommonSourceDirectory()}})}function ee(t,r,n,i,a){return e.factory.createImportDeclaration(void 0,void 0,t||r?e.factory.createImportClause(!!a,t,r&&r.length?e.factory.createNamedImports(r):void 0):void 0,"string"==typeof n?te(n,i):n)}function te(t,r){return e.factory.createStringLiteral(t,0===r)}function re(t,r){return e.isStringDoubleQuoted(t,r)?1:0}function ne(t,r){if(r.quotePreference&&"auto"!==r.quotePreference)return"single"===r.quotePreference?0:1;var n=t.imports&&e.find(t.imports,(function(t){return e.isStringLiteral(t)&&!e.nodeIsSynthesized(t.parent)}));return n?re(n,t):1}function ie(t){return"default"!==t.escapedName?t.escapedName:e.firstDefined(t.declarations,(function(t){var r=e.getNameOfDeclaration(t);return r&&78===r.kind?r.escapedText:void 0}))}function ae(t,r,n,i){var a=new e.Map;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 oe(t,r,n){return e.textSpanContainsPosition(t,r.getStart(n))&&r.getEnd()<=e.textSpanEnd(t)}function se(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function ce(e){return e.declarations&&e.declarations.length>0&&160===e.declarations[0].kind}e.getLineStartPositionForPosition=function(t,r){return e.getLineStarts(r)[r.getLineAndCharacterOfPosition(t).line]},e.rangeContainsRange=g,e.rangeContainsRangeExclusive=function(e,t){return m(e,t.pos)&&m(e,t.end)},e.rangeContainsPosition=function(e,t){return e.pos<=t&&t<=e.end},e.rangeContainsPositionExclusive=m,e.startEndContainsRange=y,e.rangeContainsStartEnd=function(e,t,r){return e.pos<=t&&e.end>=r},e.rangeOverlapsWithStartEnd=function(e,t,r){return v(e.pos,e.end,t,r)},e.nodeOverlapsWithStartEnd=function(e,t,r,n){return v(e.getStart(t),e.end,r,n)},e.startEndOverlapsWithStartEnd=v,e.positionBelongsToNode=function(t,r,n){return e.Debug.assert(t.pos<=r),rn.getStart(t)&&rn.getStart(t)},e.isInJSXText=function(t,r){var n=I(t,r);return!!e.isJsxText(n)||(!(18!==n.kind||!e.isJsxExpression(n.parent)||!e.isJsxElement(n.parent.parent))||!(29!==n.kind||!e.isJsxOpeningLikeElement(n.parent)||!e.isJsxElement(n.parent.parent)))},e.isInsideJsxElement=function(e,t){return function(r){for(;r;)if(r.kind>=274&&r.kind<=283||11===r.kind||29===r.kind||31===r.kind||78===r.kind||19===r.kind||18===r.kind||43===r.kind)r=r.parent;else{if(273!==r.kind)return!1;if(t>r.getStart(e))return!0;r=r.parent}return!1}(I(e,t))},e.findPrecedingMatchingToken=K,e.removeOptionality=z,e.isPossiblyTypeArgumentPosition=function t(r,n,i){var a=V(r,n);return void 0!==a&&(e.isPartOfTypeNode(a.called)||0!==U(a.called,a.nTypeArguments,i).length||t(a.called,n,i))},e.getPossibleGenericSignatures=U,e.getPossibleTypeArgumentsInfo=V,e.isInComment=q,e.hasDocComment=function(t,r){var n=I(t,r);return!!e.findAncestor(n,e.isJSDoc)},e.getNodeModifiers=function(t){var r=e.isDeclaration(t)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(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"),8192&r&&n.push("deprecated"),8388608&t.flags&&n.push("declare"),266===t.kind&&n.push("export"),n.length>0?n.join(","):""},e.getTypeArgumentOrTypeParameterList=function(t){return 173===t.kind||203===t.kind?t.typeArguments:e.isFunctionLike(t)||252===t.kind||253===t.kind?t.typeParameters:void 0},e.isComment=function(e){return 2===e||3===e},e.isStringOrRegularExpressionOrTemplateLiteral=function(t){return!(10!==t&&13!==t&&!e.isTemplateLiteralKind(t))},e.isPunctuation=function(e){return 18<=e&&e<=77},e.isInsideTemplateLiteral=function(t,r,n){return e.isTemplateLiteralKind(t.kind)&&t.getStart(n)=2||!!e.noEmit},e.createModuleSpecifierResolutionHost=$,e.getModuleSpecifierResolverHost=Z,e.makeImportIfNecessary=function(e,t,r,n){return e||t&&t.length?ee(e,t,r,n):void 0},e.makeImport=ee,e.makeStringLiteral=te,function(e){e[e.Single=0]="Single",e[e.Double=1]="Double"}(e.QuotePreference||(e.QuotePreference={})),e.quotePreferenceFromString=re,e.getQuotePreference=ne,e.getQuoteFromPreference=function(t){switch(t){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(t)}},e.symbolNameNoDefault=function(t){var r=ie(t);return void 0===r?void 0:e.unescapeLeadingUnderscores(r)},e.symbolEscapedNameNoDefault=ie,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=ae,e.isMemberSymbolInBaseType=function(e,t){return ae(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)||!oe(n,t.parent,r))return t;t=t.parent}},e.findModifier=function(t,r){return t.modifiers&&e.find(t.modifiers,(function(e){return e.kind===r}))},e.insertImports=function(t,r,n,i){var a=232===(e.isArray(n)?n[0]:n).kind?e.isRequireVariableStatement:e.isAnyImportSyntax,o=e.filter(r.statements,a),s=e.isArray(n)?e.stableSort(n,e.OrganizeImports.compareImportsOrRequireStatements):[n];if(o.length)if(o&&e.OrganizeImports.importsAreSorted(o))for(var c=0,u=s;ca&&r&&"..."!==r&&(e.isWhiteSpaceLike(r.charCodeAt(r.length-1))||t.push(de(" ",e.SymbolDisplayPartKind.space)),t.push(de("...",e.SymbolDisplayPartKind.punctuation))),t},writeKeyword:function(t){return c(t,e.SymbolDisplayPartKind.keyword)},writeOperator:function(t){return c(t,e.SymbolDisplayPartKind.operator)},writePunctuation:function(t){return c(t,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(t){return c(t,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(t){return c(t,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(t){return c(t,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(t){return c(t,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(t){return c(t,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(t){return c(t,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:function(e,r){if(i>a)return;s(),i+=e.length,t.push(le(e,r))},writeLine:function(){if(i>a)return;i+=1,t.push(fe()),r=!0},write:o,writeComment:o,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingWhitespace:function(){return!1},hasTrailingComment:function(){return!1},rawWrite:e.notImplemented,getIndent:function(){return n},increaseIndent:function(){n++},decreaseIndent:function(){n--},clear:u,trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function s(){if(!(i>a)&&r){var o=e.getIndentString(n);o&&(i+=o.length,t.push(de(o,e.SymbolDisplayPartKind.space))),r=!1}}function c(e,r){i>a||(s(),i+=e.length,t.push(de(e,r)))}function u(){t=[],r=!0,n=0,i=0}}();function le(t,r){return de(t,function(t){var r=t.flags;if(3&r)return ce(t)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName;if(4&r)return e.SymbolDisplayPartKind.propertyName;if(32768&r)return e.SymbolDisplayPartKind.propertyName;if(65536&r)return e.SymbolDisplayPartKind.propertyName;if(8&r)return e.SymbolDisplayPartKind.enumMemberName;if(16&r)return e.SymbolDisplayPartKind.functionName;if(32&r)return e.SymbolDisplayPartKind.className;if(64&r)return e.SymbolDisplayPartKind.interfaceName;if(384&r)return e.SymbolDisplayPartKind.enumName;if(1536&r)return e.SymbolDisplayPartKind.moduleName;if(8192&r)return e.SymbolDisplayPartKind.methodName;if(262144&r)return e.SymbolDisplayPartKind.typeParameterName;if(524288&r)return e.SymbolDisplayPartKind.aliasName;if(2097152&r)return e.SymbolDisplayPartKind.aliasName;return e.SymbolDisplayPartKind.text}(r))}function de(t,r){return{text:t,kind:e.SymbolDisplayPartKind[r]}}function _e(t){return de(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function pe(t){return de(t,e.SymbolDisplayPartKind.text)}e.symbolPart=le,e.displayPart=de,e.spacePart=function(){return de(" ",e.SymbolDisplayPartKind.space)},e.keywordPart=_e,e.punctuationPart=function(t){return de(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)},e.operatorPart=function(t){return de(e.tokenToString(t),e.SymbolDisplayPartKind.operator)},e.textOrKeywordPart=function(t){var r=e.stringToToken(t);return void 0===r?pe(t):_e(r)},e.textPart=pe;function fe(){return de("\n",e.SymbolDisplayPartKind.lineBreak)}function ge(e){try{return e(ue),ue.displayParts()}finally{ue.clear()}}function me(e){return 0!=(33554432&e.flags)}function ye(e){return 0!=(2097152&e.flags)}function ve(e,t){void 0===t&&(t=!0);var r=e&&De(e);return r&&!t&&xe(r),r}function he(t,r,n){var i=n(t);return i?e.setOriginalNode(i,t):i=De(t,n),i&&!r&&xe(i),i}function De(t,r){var n=r?e.visitEachChild(t,(function(e){return he(e,!0,r)}),e.nullTransformationContext):e.visitEachChild(t,ve,e.nullTransformationContext);if(n===t){var i=e.isStringLiteral(t)?e.setOriginalNode(e.factory.createStringLiteralFromNode(t),t):e.isNumericLiteral(t)?e.setOriginalNode(e.factory.createNumericLiteral(t.text,t.numericLiteralFlags),t):e.factory.cloneNode(t);return e.setTextRange(i,t)}return n.parent=void 0,n}function xe(e){be(e),Se(e)}function be(e){Ee(e,512,Ce)}function Se(t){Ee(t,1024,e.getLastChild)}function Ee(t,r,n){e.addEmitFlags(t,r);var i=n(t);i&&Ee(i,r,n)}function Ce(e){return e.forEachChild((function(e){return e}))}function Te(t,r,n,i,a){e.forEachLeadingCommentRange(n.text,t.pos,Fe(r,n,i,a,e.addSyntheticLeadingComment))}function ke(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.end,Fe(r,n,i,a,e.addSyntheticTrailingComment))}function Ae(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.pos,Fe(r,n,i,a,e.addSyntheticLeadingComment))}function Fe(e,t,r,n,i){return function(a,o,s,c){3===s?(a+=2,o-=2):a+=2,i(e,r||s,t.text.slice(a,o),void 0!==n?n:c)}}function Ne(t,r){if(e.startsWith(t,r))return 0;var n=t.indexOf(" "+r);return-1===n&&(n=t.indexOf("."+r)),-1===n&&(n=t.indexOf('"'+r)),-1===n?-1:n+1}function Pe(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function we(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function Ie(e){return 169===e||170===e||171===e||162===e||164===e}function Oe(e){return 251===e||166===e||165===e||167===e||168===e}function Me(e){return 256===e}function Le(e){return 232===e||233===e||235===e||240===e||241===e||242===e||246===e||248===e||163===e||254===e||261===e||260===e||267===e||259===e||266===e}function Re(e,t){return je(e,e.fileExists,t)}function Be(e){try{return e()}catch(e){return}}function je(e,t){for(var r=[],n=2;n-1&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));)r-=1;return r+1},e.getSynthesizedDeepClone=ve,e.getSynthesizedDeepCloneWithReplacements=he,e.getSynthesizedDeepClones=function(t,r){return void 0===r&&(r=!0),t&&e.factory.createNodeArray(t.map((function(e){return ve(e,r)})),t.hasTrailingComma)},e.getSynthesizedDeepClonesWithReplacements=function(t,r,n){return e.factory.createNodeArray(t.map((function(e){return he(e,r,n)})),t.hasTrailingComma)},e.suppressLeadingAndTrailingTrivia=xe,e.suppressLeadingTrivia=be,e.suppressTrailingTrivia=Se,e.copyComments=function(e,t){var r=e.getSourceFile();!function(e,t){for(var r=e.getFullStart(),n=e.getStart(),i=r;i=0),o},e.copyLeadingComments=Te,e.copyTrailingComments=ke,e.copyTrailingAsLeadingComments=Ae,e.needsParentheses=function(t){return e.isBinaryExpression(t)&&27===t.operatorToken.kind||e.isObjectLiteralExpression(t)},e.getContextualTypeFromParent=function(e,t){var r=e.parent;switch(r.kind){case 204:return t.getContextualType(r);case 216:var n=r,i=n.left,a=n.operatorToken,o=n.right;return Pe(a.kind)?t.getTypeAtLocation(e===o?i:o):t.getContextualType(e);case 284:return r.expression===e?we(r,t):void 0;default:return t.getContextualType(e)}},e.quote=function(t,r,n){var i=ne(t,r),a=JSON.stringify(n);return 0===i?"'"+e.stripQuotes(a).replace("'","\\'").replace('\\"','"')+"'":a},e.isEqualityOperatorKind=Pe,e.isStringLiteralOrTemplate=function(e){switch(e.kind){case 10:case 14:case 218:case 205:return!0;default:return!1}},e.hasIndexSignature=function(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()},e.getSwitchedType=we,e.ANONYMOUS="anonymous function",e.getTypeNodeIfAccessible=function(e,t,r,n){var i=r.getTypeChecker(),a=!0,o=function(){a=!1},s=i.typeToTypeNode(e,t,1,{trackSymbol:function(e,t,r){a=a&&0===i.isSymbolAccessible(e,t,r,!1).accessibility},reportInaccessibleThisError:o,reportPrivateInBaseOfClassExpression:o,reportInaccessibleUniqueSymbolError:o,moduleResolverHost:Z(r,n)});return a?s:void 0},e.syntaxRequiresTrailingCommaOrSemicolonOrASI=Ie,e.syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI=Oe,e.syntaxRequiresTrailingModuleBlockOrSemicolonOrASI=Me,e.syntaxRequiresTrailingSemicolonOrASI=Le,e.syntaxMayBeASICandidate=e.or(Ie,Oe,Me,Le),e.positionIsASICandidate=function(t,r,n){var i=e.findAncestor(r,(function(r){return r.end!==t?"quit":e.syntaxMayBeASICandidate(r.kind)}));return!!i&&function(t,r){var n=t.getLastToken(r);if(n&&26===n.kind)return!1;if(Ie(t.kind)){if(n&&27===n.kind)return!1}else if(Me(t.kind)){if((i=e.last(t.getChildren(r)))&&e.isModuleBlock(i))return!1}else if(Oe(t.kind)){var i;if((i=e.last(t.getChildren(r)))&&e.isFunctionBlock(i))return!1}else if(!Le(t.kind))return!1;if(235===t.kind)return!0;var a=M(t,e.findAncestor(t,(function(e){return!e.parent})),r);return!a||19===a.kind||r.getLineAndCharacterOfPosition(t.getEnd()).line!==r.getLineAndCharacterOfPosition(a.getStart(r)).line}(i,n)},e.probablyUsesSemicolons=function(t){var r=0,n=0;return e.forEachChild(t,(function i(a){if(Le(a.kind)){var o=a.getLastToken(t);o&&26===o.kind?r++:n++}return r+n>=5||e.forEachChild(a,i)})),0===r&&n<=1||r/n>.2},e.tryGetDirectories=function(e,t){return je(e,e.getDirectories,t)||[]},e.tryReadDirectory=function(t,r,n,i,a){return je(t,t.readDirectory,r,n,i,a)||e.emptyArray},e.tryFileExists=Re,e.tryDirectoryExists=function(t,r){return Be((function(){return e.directoryProbablyExists(r,t)}))||!1},e.tryAndIgnoreErrors=Be,e.tryIOAndConsumeErrors=je,e.findPackageJsons=function(t,r,n){var i=[];return e.forEachAncestorDirectory(t,(function(t){if(t===n)return!0;var a=e.combinePaths(t,"package.json");Re(r,a)&&i.push(a)})),i},e.findPackageJson=function(t,r){var n;return e.forEachAncestorDirectory(t,(function(t){return"node_modules"===t||(!!(n=e.findConfigFile(t,(function(e){return Re(r,e)}),"package.json"))||void 0)})),n},e.getPackageJsonsVisibleToFile=function(t,r){if(!r.fileExists)return[];var n=[];return e.forEachAncestorDirectory(e.getDirectoryPath(t),(function(t){var i=e.combinePaths(t,"package.json");if(r.fileExists(i)){var a=Je(i,r);a&&n.push(a)}})),n},e.createPackageJsonInfo=Je,e.consumesNodeCoreModules=function(t){return e.some(t.imports,(function(t){var r=t.text;return e.JsTyping.nodeCoreModules.has(r)}))},e.isInsideNodeModules=function(t){return e.contains(e.getPathComponents(t),"node_modules")},e.isDiagnosticWithLocation=Ke,e.findDiagnosticForNode=function(t,r){var n=G(t),i=e.binarySearchKey(r,n,e.identity,e.compareTextSpans);if(i>=0){var a=r[i];return e.Debug.assertEqual(a.file,t.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),e.cast(a,Ke)}},e.getDiagnosticsWithinSpan=function(t,r){var n,i=e.binarySearchKey(r,t.start,(function(e){return e.start}),e.compareValues);for(i<0&&(i=~i);(null===(n=r[i-1])||void 0===n?void 0:n.start)===t.start;)i--;for(var a=[],o=e.textSpanEnd(t);;){var s=e.tryCast(r[i],Ke);if(!s||s.start>o)break;e.textSpanContainsTextSpan(t,s)&&a.push(s),i++}return a},e.getRefactorContextSpan=function(t){var r=t.startPosition,n=t.endPosition;return e.createTextSpanFromBounds(r,void 0===n?r:n)},e.mapOneOrMany=function(t,r,n){return void 0===n&&(n=e.identity),t?e.isArray(t)?n(e.map(t,r)):r(t,0):void 0},e.firstOrOnly=function(t){return e.isArray(t)?e.first(t):t},e.getNameForExportedSymbol=function(t,r){return"export="===t.escapedName||"default"===t.escapedName?e.firstDefined(t.declarations,(function(t){return e.isExportAssignment(t)&&e.isIdentifier(t.expression)?t.expression.text:void 0}))||e.codefix.moduleSymbolToValidIdentifier(function(t){var r;return e.Debug.checkDefined(t.parent,"Symbol parent was undefined. Flags: "+e.Debug.formatSymbolFlags(t.flags)+". Declarations: "+(null===(r=t.declarations)||void 0===r?void 0:r.map((function(t){var r=e.Debug.formatSyntaxKind(t.kind),n=e.isInJSFile(t),i=t.expression;return(n?"[JS]":"")+r+(i?" (expression: "+e.Debug.formatSyntaxKind(i.kind)+")":"")})).join(", "))+".")}(t),r):t.name},e.stringContainsAt=function(e,t,r){var n=t.length;if(n+r>e.length)return!1;for(var i=0;i=i.length){var D=r(o,u,e.lastOrUndefined(d));void 0!==D&&(m=D)}}while(1!==u);function x(){switch(u){case 43:case 67:t[l]||13!==o.reScanSlashToken()||(u=13);break;case 29:78===l&&v++;break;case 31:v>0&&v--;break;case 128:case 147:case 144:case 131:case 148:v>0&&!c&&(u=78);break;case 15:d.push(u);break;case 18:d.length>0&&d.push(u);break;case 19:if(d.length>0){var r=e.lastOrUndefined(d);15===r?17===(u=o.reScanTemplateToken(!1))?d.pop():e.Debug.assertEqual(u,16,"Should have been a template middle."):(e.Debug.assertEqual(r,18,"Should have been an open brace"),d.pop())}break;default:if(!e.isKeyword(u))break;(24===l||e.isKeyword(l)&&e.isKeyword(u)&&!function(t,r){if(!e.isAccessibilityModifier(t))return!0;switch(r){case 134:case 146:case 132:case 123:return!0;default:return!1}}(l,u))&&(u=78)}}return{endOfLineState:m,spans:y}}return{getClassificationsForLine:function(t,r,n){return function(t,r){for(var n=[],a=t.spans,o=0,s=0;s=0){var d=c-o;d>0&&n.push({length:d,classification:e.TokenClass.Whitespace})}n.push({length:u,classification:i(l)}),o=c+u}var _=r.length-o;_>0&&n.push({length:_,classification:e.TokenClass.Whitespace});return{entries:n,finalLexState:t.endOfLineState}}(s(t,r,n),t)},getEncodedLexicalClassifications:s}};var t=e.arrayToNumericMap([78,10,8,9,13,107,45,46,21,23,19,109,94],(function(e){return e}),(function(){return!0}));function r(t,r,n){switch(r){case 10:if(!t.isUnterminated())return;for(var i=t.getTokenText(),a=i.length-1,o=0;92===i.charCodeAt(a-o);)o++;if(0==(1&o))return;return 34===i.charCodeAt(0)?3:2;case 3:return t.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(r)){if(!t.isUnterminated())return;switch(r){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+r)}}return 15===n?6:void 0}}function n(e,t,r,n,i){if(8!==n){0===e&&r>0&&(e+=r);var a=t-e;a>0&&i.push(e-r,a,n)}}function i(t){switch(t){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 25:return e.TokenClass.BigIntLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return e.TokenClass.Identifier;default:return}}function a(t){if(e.isKeyword(t))return 3;if(function(e){switch(e){case 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 101:case 100:case 126:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 73:case 72:case 77:case 69:case 70:case 71:case 63:case 64:case 65:case 67:case 68:case 62:case 27:case 60:case 74:case 75:case 76:return!0;default:return!1}}(t)||function(e){switch(e){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}(t))return 5;if(t>=18&&t<=77)return 10;switch(t){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 78:default:return e.isTemplateLiteralKind(t)?6:2}}function o(e,t){switch(t){case 256:case 252:case 253:case 251:case 221:case 208:case 209:e.throwIfCancellationRequested()}}function s(t,r,n,i,a){var s=[];return n.forEachChild((function u(l){if(l&&e.textSpanIntersectsWith(a,l.pos,l.getFullWidth())){if(o(r,l.kind),e.isIdentifier(l)&&!e.nodeIsMissing(l)&&i.has(l.escapedText)){var d=t.getSymbolAtLocation(l),_=d&&c(d,e.getMeaningFromLocation(l),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)}(l.getStart(n),l.getEnd(),_)}l.forEachChild(u)}})),{spans:s,endOfLineState:0}}function c(t,r,n){var i=t.getFlags();return 0==(2885600&i)?void 0:32&i?11:384&i?12:524288&i?16:1536&i?4&r||1&r&&function(t){return e.some(t.declarations,(function(t){return e.isModuleDeclaration(t)&&1===e.getModuleInstanceState(t)}))}(t)?14:void 0:2097152&i?c(n.getAliasedSymbol(t),r,n):2&r?64&i?13:262144&i?15:void 0:void 0}function u(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function l(t){e.Debug.assert(t.spans.length%3==0);for(var r=t.spans,n=[],i=0;i])*)(\/>)?)?/im,a=/(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/gim,o=r.text.substr(t,n),s=i.exec(o);if(!s)return!1;if(!s[3]||!(s[3]in e.commentPragmas))return!1;var c=t;_(c,s[1].length),l(c+=s[1].length,s[2].length,10),l(c+=s[2].length,s[3].length,21),c+=s[3].length;var u=s[4],d=c;for(;;){var p=a.exec(u);if(!p)break;var f=c+p.index;f>d&&(_(d,f-d),d=f),l(d,p[1].length,22),d+=p[1].length,p[2].length&&(_(d,p[2].length),d+=p[2].length),l(d,p[3].length,5),d+=p[3].length,p[4].length&&(_(d,p[4].length),d+=p[4].length),l(d,p[5].length,24),d+=p[5].length}(c+=s[4].length)>d&&_(d,c-d);s[5]&&(l(c,s[5].length,10),c+=s[5].length);var g=t+n;c=0),a>0){var o=n||y(t.kind,t);o&&l(i,a,o)}return!0}function y(t,r){if(e.isKeyword(t))return 3;if((29===t||31===t)&&r&&e.getTypeArgumentOrTypeParameterList(r.parent))return 10;if(e.isPunctuation(t)){if(r){var n=r.parent;if(62===t&&(249===n.kind||163===n.kind||160===n.kind||280===n.kind))return 5;if(216===n.kind||214===n.kind||215===n.kind||217===n.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 25;if(10===t)return r&&280===r.parent.kind?24:6;if(13===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(11===t)return 23;if(78===t){if(r)switch(r.parent.kind){case 252:return r.parent.name===r?11:void 0;case 159:return r.parent.name===r?15:void 0;case 253:return r.parent.name===r?13:void 0;case 255:return r.parent.name===r?12:void 0;case 256:return r.parent.name===r?14:void 0;case 160:return r.parent.name===r?e.isThisIdentifier(r)?3:17:void 0}return 2}}function v(n){if(n&&e.decodedTextSpanIntersectsWith(i,a,n.pos,n.getFullWidth())){o(t,n.kind);for(var s=0,c=n.getChildren(r);s0})))return 0;if(o((function(e){return e.getCallSignatures().length>0}))&&!o((function(e){return e.getProperties().length>0}))||function(t){for(;a(t);)t=t.parent;return e.isCallExpression(t.parent)&&t.parent.expression===t}(r))return 9===n?11:10}}return n}(u,_,g);var y=f.valueDeclaration;if(y){var v=e.getCombinedModifierFlags(y),h=e.getCombinedNodeFlags(y);32&v&&(m|=2),256&v&&(m|=4),0!==g&&2!==g&&(64&v||2&h||8&f.getFlags())&&(m|=8),7!==g&&10!==g||!function(t,r){e.isBindingElement(t)&&(t=i(t));if(e.isVariableDeclaration(t))return(!e.isSourceFile(t.parent.parent.parent)||e.isCatchClause(t.parent))&&t.getSourceFile()===r;if(e.isFunctionDeclaration(t))return!e.isSourceFile(t.parent)&&t.getSourceFile()===r;return!1}(y,r)||(m|=32),t.isSourceFileDefaultLibrary(y.getSourceFile())&&(m|=16)}else f.declarations&&f.declarations.some((function(e){return t.isSourceFileDefaultLibrary(e.getSourceFile())}))&&(m|=16);s(_,g,m)}}}e.forEachChild(_,d),l=p}}d(r)}(t,r,n,(function(e,t,n){c.push(e.getStart(r),e.getWidth(r),(t+1<<8)+n)}),s),c}function i(t){for(;;){if(!e.isBindingElement(t.parent.parent))return t.parent.parent;t=t.parent.parent}}function a(t){return e.isQualifiedName(t.parent)&&t.parent.right===t||e.isPropertyAccessExpression(t.parent)&&t.parent.name===t}!function(e){e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask"}(t.TokenEncodingConsts||(t.TokenEncodingConsts={})),function(e){e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member"}(t.TokenType||(t.TokenType={})),function(e){e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local"}(t.TokenModifier||(t.TokenModifier={})),t.getSemanticClassifications=function(t,n,i,a){var o=r(t,n,i,a);e.Debug.assert(o.spans.length%3==0);for(var s=o.spans,c=[],u=0;ua.parameters.length)){var o=r.getParameterType(a,t.argumentIndex);return n=n||!!(4&o.flags),l(o,i)}})),isNewIdentifier:n}}(E,i):C()}case 261:case 267:case 272:return{kind:0,paths:f(t,r,a,o,i)};default:return C()}function C(){return{kind:2,types:l(e.getContextualTypeFromParent(r,i)),isNewIdentifier:!1}}}function c(t){switch(t.kind){case 186:return e.walkUpParenthesizedTypes(t);case 207:return e.walkUpParenthesizedExpressions(t);default:return t}}function u(t){return t&&{kind:1,symbols:e.filter(t.getApparentProperties(),(function(t){return!(t.valueDeclaration&&e.isPrivateIdentifierPropertyDeclaration(t.valueDeclaration))})),hasIndexSignature:e.hasIndexSignature(t)}}function l(t,r){return void 0===r&&(r=new e.Map),t?(t=e.skipConstraint(t)).isUnion()?e.flatMap(t.types,(function(e){return l(e,r)})):!t.isStringLiteral()||1024&t.flags||!e.addToSeen(r,t.value)?e.emptyArray:[t]:e.emptyArray}function d(e,t,r){return{name:e,kind:t,extension:r}}function _(e){return d(e,"directory",void 0)}function p(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 f(t,n,i,a,o){return p(n.text,n.getStart(t)+1,function(t,n,i,a,o){var s=e.normalizeSlashes(n.text),c=t.path,u=e.getDirectoryPath(c);return function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){var t=e.length>=3&&46===e.charCodeAt(1)?2:1,r=e.charCodeAt(t);return 47===r||92===r}return!1}(s)||!i.baseUrl&&(e.isRootedDiskPath(s)||e.isUrl(s))?function(t,n,i,a,o){var s=g(i);return i.rootDirs?function(t,n,i,a,o,s,c){var u=o.project||s.getCurrentDirectory(),l=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),d=function(t,n,i,a){t=t.map((function(t){return e.normalizePath(e.isRootedDiskPath(t)?t:e.combinePaths(n,t))}));var o=e.firstDefined(t,(function(t){return e.containsPath(t,i,n,a)?i.substr(t.length):void 0}));return e.deduplicate(r(t.map((function(t){return e.combinePaths(t,o)})),[i]),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}(t,u,i,l);return e.flatMap(d,(function(e){return y(n,e,a,s,c)}))}(i.rootDirs,t,n,s,i,a,o):y(t,n,s,a,o)}(s,u,i,a,c):function(t,r,n,i,a){var o=n.baseUrl,s=n.paths,c=[],u=g(n);if(o){var l=n.project||i.getCurrentDirectory(),_=e.normalizePath(e.combinePaths(l,o));y(t,_,u,i,void 0,c),s&&v(c,t,_,u.extensions,s,i)}for(var p=h(t),f=0,m=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=e.pos&&r<=e.end}));if(!s)return;var c=t.text.slice(s.pos,r),u=b.exec(c);if(!u)return;var l=u[1],d=u[2],_=u[3],f=e.getDirectoryPath(t.path),m="path"===d?y(_,f,g(n,!0),i,t.path):"types"===d?x(i,n,f,h(_),g(n)):e.Debug.fail();return p(_,s.pos+l.length,m)}(r,n,c,u))&&i(_);if(e.isInString(r,n,a)){if(!a||!e.isStringLiteralLike(a))return;var _;return function(r,n,a,o,s,c){if(void 0===r)return;var u=e.createTextSpanFromStringLiteralLikeContent(n);switch(r.kind){case 0:return i(r.paths);case 1:var l=[];return t.getCompletionEntriesFromSymbols(r.symbols,l,n,a,a,o,99,s,4,c),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:r.hasIndexSignature,optionalReplacementSpan:u,entries:l};case 2:l=r.types.map((function(r){return{name:r.value,kindModifiers:"",kind:"string",sortText:t.SortText.LocationPriority,replacementSpan:e.getReplacementSpanForContextToken(n)}}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:r.isNewIdentifier,optionalReplacementSpan:u,entries:l};default:return e.Debug.assertNever(r)}}(_=s(r,a,n,o,c,u),a,r,o,l,d)}},n.getStringLiteralCompletionDetails=function(r,n,i,o,c,u,l,d){if(o&&e.isStringLiteralLike(o)){var _=s(n,o,i,c,u,l);return _&&function(r,n,i,o,s,c){switch(i.kind){case 0:return(u=e.find(i.paths,(function(e){return e.name===r})))&&t.createCompletionDetails(r,a(u.extension),u.kind,[e.textPart(r)]);case 1:var u;return(u=e.find(i.symbols,(function(e){return e.name===r})))&&t.createCompletionDetailsForSymbol(u,s,o,n,c);case 2:return e.find(i.types,(function(e){return e.value===r}))?t.createCompletionDetails(r,"","type",[e.textPart(r)]):void 0;default:return e.Debug.assertNever(i)}}(r,o,_,n,c,d)}},function(e){e[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types"}(o||(o={}));var b=/^(\/\/\/\s*=t.pos;case 24:return 197===n;case 58:return 198===n;case 22:return 197===n;case 20:return 287===n||ce(n);case 18:return 255===n;case 29:return 252===n||221===n||253===n||254===n||e.isFunctionLikeKind(n);case 123:return 163===n&&!e.isClassLike(r.parent);case 25:return 160===n||!!r.parent&&197===r.parent.kind;case 122:case 120:case 121:return 160===n&&!e.isConstructorDeclaration(r.parent);case 126:return 265===n||270===n||263===n;case 134:case 146:return!R(t);case 83:case 91:case 117:case 97:case 112:case 99:case 118:case 84:case 149:return!0;case 41:return e.isFunctionLike(t.parent)&&!e.isMethodDeclaration(t.parent)}if(w(O(t))&&R(t))return!1;if(se(t)&&(!e.isIdentifier(t)||e.isParameterPropertyModifier(O(t))||_e(t)))return!1;switch(O(t)){case 125:case 83:case 84:case 133:case 91:case 97:case 117:case 118:case 120:case 121:case 122:case 123:case 112:return!0;case 129:return e.isPropertyDeclaration(t.parent)}return e.isDeclarationName(t)&&!e.isJsxAttribute(t.parent)&&!(e.isClassLike(t.parent)&&(t!==v||o>v.end))}(t)||function(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(t)||function(e){if(11===e.kind)return!0;if(31===e.kind&&e.parent){if(275===e.parent.kind)return 275!==N.parent.kind;if(276===e.parent.kind||274===e.parent.kind)return!!e.parent.parent&&273===e.parent.parent.kind}return!1}(t);return n("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-r)),a}(h))return void n("Returning an empty list because completion was requested in an invalid position.");var I=h.parent;if(24===h.kind||28===h.kind)switch(S=24===h.kind,E=28===h.kind,I.kind){case 201:if(b=(x=I).expression,(e.isCallExpression(b)||e.isFunctionLike(b))&&b.end===h.pos&&b.getChildCount(i)&&21!==e.last(b.getChildren(i)).kind)return;break;case 157:b=I.left;break;case 256:b=I.name;break;case 195:case 226:b=I;break;default:return}else if(1===i.languageVariant){if(I&&201===I.kind&&(h=I,I=I.parent),_.parent===N)switch(_.kind){case 31:273!==_.parent.kind&&275!==_.parent.kind||(N=_);break;case 43:274===_.parent.kind&&(N=_)}switch(I.kind){case 276:43===h.kind&&(k=!0,N=h);break;case 216:if(!B(I))break;case 274:case 273:case 275:F=!0,29===h.kind&&(T=!0,N=h);break;case 283:19===v.kind&&31===_.kind&&(F=!0);break;case 280:if(I.initializer===v&&v.end0&&(U=function(t,r){if(0===r.length)return t;for(var n=new e.Set,i=new e.Set,a=0,o=r;a"),kind:"class",kindModifiers:void 0,sortText:r.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:d(m),entries:[F]}}var P=[];if(_(t,i)){var w=D(c,P,void 0,m,t,n,i.target,a,u,s,y,o.isJsxIdentifierExpected,S,b,x,C);!function(t,n,i,a,o){e.getNameTable(t).forEach((function(t,s){if(t!==n){var c=e.unescapeLeadingUnderscores(s);!i.has(c)&&e.isIdentifierText(c,a)&&(i.add(c),o.push({name:c,kind:"warning",kindModifiers:"",sortText:r.JavascriptIdentifiers,isFromUncheckedFile:!0}))}}))}(t,m.pos,w,i.target,P)}else{if(!(f||c&&0!==c.length||0!==v))return;D(c,P,void 0,m,t,n,i.target,a,u,s,y,o.isJsxIdentifierExpected,S,b,x,C)}if(0!==v)for(var I=new e.Set(P.map((function(e){return e.name}))),O=0,M=function(t,r){if(!r)return N(t);var n=t+7+1;return A[n]||(A[n]=N(t).filter((function(t){return!function(e){switch(e){case 125:case 128:case 155:case 131:case 133:case 91:case 154:case 116:case 135:case 117:case 137:case 138:case 139:case 140:case 141:case 144:case 145:case 120:case 121:case 122:case 142:case 147:case 148:case 149:case 151:case 152:return!0;default:return!1}}(e.stringToToken(t.name))})))}(v,!E&&e.isSourceFileJS(t));O=0&&!u(r,n[i],114);i--);return e.forEach(a(t.statement),(function(e){s(t,e)&&u(r,e.getFirstToken(),80,85)})),r}function d(e){var t=c(e);if(t)switch(t.kind){case 237:case 238:case 239:case 235:case 236:return l(t);case 244:return _(t)}}function _(t){var r=[];return u(r,t.getFirstToken(),106),e.forEach(t.caseBlock.clauses,(function(n){u(r,n.getFirstToken(),81,87),e.forEach(a(n),(function(e){s(t,e)&&u(r,e.getFirstToken(),80)}))})),r}function p(t,r){var n=[];(u(n,t.getFirstToken(),110),t.catchClause&&u(n,t.catchClause.getFirstToken(),82),t.finallyBlock)&&u(n,e.findChildOfKind(t,95,r),95);return n}function f(t,r){var n=function(t){for(var r=t;r.parent;){var n=r.parent;if(e.isFunctionBlock(n)||297===n.kind)return n;if(e.isTryStatement(n)&&n.tryBlock===r&&n.catchClause)return r;r=n}}(t);if(n){var a=[];return e.forEach(i(n),(function(t){a.push(e.findChildOfKind(t,108,r))})),e.isFunctionBlock(n)&&e.forEachReturnStatement(n,(function(t){a.push(e.findChildOfKind(t,104,r))})),a}}function g(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,104,r))})),e.forEach(i(n.body),(function(t){a.push(e.findChildOfKind(t,108,r))})),a}}function m(t){var r=e.getContainingFunction(t);if(r){var n=[];return r.modifiers&&r.modifiers.forEach((function(e){u(n,e,129)})),e.forEachChild(r,(function(t){y(t,(function(t){e.isAwaitExpression(t)&&u(n,t.getFirstToken(),130)}))})),n}}function y(t,r){r(t),e.isFunctionLike(t)||e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isModuleDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isTypeNode(t)||e.forEachChild(t,(function(e){return y(e,r)}))}t.getDocumentHighlights=function(t,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 v=c.parent.parent,h=[v.openingElement,v.closingElement].map((function(e){return n(e.tagName,a)}));return[{fileName:a.fileName,highlightSpans:h}]}return function(t,r,n,i,a){var o=new e.Set(a.map((function(e){return e.fileName}))),s=e.FindAllReferences.getReferenceEntriesForNode(t,r,n,a,i,void 0,o);if(!s)return;var c=e.arrayToMultiMap(s.map(e.FindAllReferences.toHighlightSpan),(function(e){return e.fileName}),(function(e){return e.span}));return e.arrayFrom(c.entries(),(function(t){var r=t[0],i=t[1];if(!o.has(r)){e.Debug.assert(n.redirectTargetsMap.has(r));var s=n.getSourceFile(r);r=e.find(a,(function(e){return!!e.redirectInfo&&e.redirectInfo.redirectTarget===s})).fileName,e.Debug.assert(o.has(r))}return{fileName:r,highlightSpans:i}}))}(o,c,t,i,s)||function(t,i){var a=function(t,i){switch(t.kind){case 98:case 90:return e.isIfStatement(t.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],98);for(var a=i.length-1;a>=0&&!u(n,i[a],90);a--);if(!t.elseStatement||!e.isIfStatement(t.elseStatement))break;t=t.elseStatement}return n}(t,r),a=[],o=0;o=s.end;d--)if(!e.isWhiteSpaceSingleLine(r.text.charCodeAt(d))){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}(t.parent,i):void 0;case 104:return c(t.parent,e.isReturnStatement,g);case 108:return c(t.parent,e.isThrowStatement,f);case 110:case 82:case 95:return c(82===t.kind?t.parent.parent:t.parent,e.isTryStatement,p);case 106:return c(t.parent,e.isSwitchStatement,_);case 81:case 87:return e.isDefaultClause(t.parent)||e.isCaseClause(t.parent)?c(t.parent.parent.parent,e.isSwitchStatement,_):void 0;case 80:case 85:return c(t.parent,e.isBreakOrContinueStatement,d);case 96:case 114:case 89:return c(t.parent,(function(t){return e.isIterationStatement(t,!0)}),l);case 132:return s(e.isConstructorDeclaration,[132]);case 134:case 146:return s(e.isAccessor,[134,146]);case 130:return c(t.parent,e.isAwaitExpression,m);case 129:return v(m(t));case 124:return v(function(t){var r=e.getContainingFunction(t);if(!r)return;var n=[];return e.forEachChild(r,(function(t){y(t,(function(t){e.isYieldExpression(t)&&u(n,t.getFirstToken(),124)}))})),n}(t));default:return e.isModifierKind(t.kind)&&(e.isDeclaration(t.parent)||e.isVariableStatement(t.parent))?v((a=t.kind,o=t.parent,e.mapDefined(function(t,n){var i=t.parent;switch(i.kind){case 257:case 297:case 230:case 284:case 285:return 128&n&&e.isClassDeclaration(t)?r(t.members,[t]):i.statements;case 166:case 165:case 251:return r(i.parameters,e.isClassLike(i.parent)?i.parent.members:[]);case 252:case 221:case 253:case 177:var a=i.members;if(92&n){var o=e.find(i.members,e.isConstructorDeclaration);if(o)return r(a,o.parameters)}else if(128&n)return r(a,[i]);return a;case 200:return;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(r,n){return c(t.parent,r,(function(t){return e.mapDefined(t.symbol.declarations,(function(t){return r(t)?e.find(t.getChildren(i),(function(t){return e.contains(n,t.kind)})):void 0}))}))}function c(e,t,r){return t(e)?v(r(e,i)):void 0}function v(e){return e&&e.map((function(e){return n(e,i)}))}}(t,i);return a&&[{fileName:i.fileName,highlightSpans:a}]}(c,a)}}(e.DocumentHighlights||(e.DocumentHighlights={}))}(u||(u={})),function(e){function t(t,n,i){void 0===n&&(n="");var a=new e.Map,o=e.createGetCanonicalFileName(!!t);function s(e,t,r,n,i,a,o){return u(e,t,r,n,i,a,!0,o)}function c(e,t,r,n,i,a,o){return u(e,t,r,n,i,a,!1,o)}function u(t,r,n,o,s,c,u,l){var d=e.getOrUpdate(a,o,(function(){return new e.Map})),_=d.get(r),p=6===l?100:n.target||1;!_&&i&&((f=i.getDocument(o,r))&&(e.Debug.assert(u),_={sourceFile:f,languageServiceRefCount:0},d.set(r,_)));if(_)_.sourceFile.version!==c&&(_.sourceFile=e.updateLanguageServiceSourceFile(_.sourceFile,s,c,s.getChangeRange(_.sourceFile.scriptSnapshot)),i&&i.setDocument(o,r,_.sourceFile)),u&&_.languageServiceRefCount++;else{var f=e.createLanguageServiceSourceFile(t,s,p,c,!1,l);i&&i.setDocument(o,r,f),_={sourceFile:f,languageServiceRefCount:1},d.set(r,_)}return e.Debug.assert(0!==_.languageServiceRefCount),_.sourceFile}function l(t,r){var n=e.Debug.checkDefined(a.get(r)),i=n.get(t);i.languageServiceRefCount--,e.Debug.assert(i.languageServiceRefCount>=0),0===i.languageServiceRefCount&&n.delete(t)}return{acquireDocument:function(t,i,a,c,u){return s(t,e.toPath(t,n,o),i,r(i),a,c,u)},acquireDocumentWithKey:s,updateDocument:function(t,i,a,s,u){return c(t,e.toPath(t,n,o),i,r(i),a,s,u)},updateDocumentWithKey:c,releaseDocument:function(t,i){return l(e.toPath(t,n,o),r(i))},releaseDocumentWithKey:l,getLanguageServiceRefCounts:function(t){return e.arrayFrom(a.entries(),(function(e){var r=e[0],n=e[1].get(t);return[r,n&&n.languageServiceRefCount]}))},reportStats:function(){var t=e.arrayFrom(a.keys()).filter((function(e){return e&&"_"===e.charAt(0)})).map((function(e){var t=a.get(e),r=[];return t.forEach((function(e,t){r.push({name:t,refCount:e.languageServiceRefCount})})),r.sort((function(e,t){return t.refCount-e.refCount})),{bucket:e,sourceFiles:r}}));return JSON.stringify(t,void 0,2)},getKeyForCompilationSettings:r}}function r(t){return e.sourceFileAffectingCompilerOptions.map((function(r){return e.getCompilerOptionValue(t,r)})).join("|")}e.createDocumentRegistry=function(e,r){return t(e,r)},e.createDocumentRegistryInternal=t}(u||(u={})),function(e){!function(t){function r(t,r){return e.forEach(297===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,n){if(t.externalModuleIndicator||void 0!==t.imports)for(var i=0,a=t.imports;i=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(t,r){var n=t.getSourceFile(),i=r.text,o=e.mapDefined(D(n,i,t),(function(t){return t===r||e.isJumpStatementTarget(t)&&e.getTargetLabel(t,i)===r?a(t):void 0}));return[{definition:{type:1,node:r},references:o}]}function S(e,t,r,n){return void 0===n&&(n=!0),r.cancellationToken.throwIfCancellationRequested(),E(e,e,t,r,n)}function E(e,t,r,n,i){if(n.markSearchedSymbols(t,r.allSearchSymbols))for(var a=0,o=x(t,r.text,e);a0;o--){x(t,i=n[o])}return[n.length-1,n[0]]}function x(e,t){var r=y(e,t);f(a,r),c.push(a),u.push(o),o=void 0,a=r}function b(){a.children&&(C(a.children,a),N(a.children)),a=c.pop(),o=u.pop()}function S(e,t,r){x(e,r),E(t),b()}function E(t){var r;if(n.throwIfCancellationRequested(),t&&!e.isToken(t))switch(t.kind){case 166:var i=t;S(i,i.body);for(var a=0,s=i.parameters;a0&&(x(U,R),e.forEachChild(U.right,E),b()):e.isFunctionExpression(U.right)||e.isArrowFunction(U.right)?S(t,U.right,R):(x(U,R),S(t,U.right,O.name),b()),void h(L);case 7:case 9:var J=t,K=(R=7===I?J.arguments[0]:J.arguments[0].expression,J.arguments[1]),z=D(t,R);L=z[0];return x(t,z[1]),x(t,e.setTextRange(e.factory.createIdentifier(K.text),K)),E(t.arguments[2]),b(),b(),void h(L);case 5:var U,V=(O=(U=t).left).expression;if(e.isIdentifier(V)&&"prototype"!==e.getElementOrPropertyAccessName(O)&&o&&o.has(V.text))return void(e.isFunctionExpression(U.right)||e.isArrowFunction(U.right)?S(t,U.right,V):e.isBindableStaticAccessExpression(O)&&(x(U,V),S(U.left,U.right,e.getNameOrArgument(O)),b()));break;case 4:case 0:case 8:break;default:e.Debug.assertNever(I)}default:e.hasJSDocNodes(t)&&e.forEach(t.jsDoc,(function(t){e.forEach(t.tags,(function(t){e.isJSDocTypeAlias(t)&&m(t)}))})),e.forEachChild(t,E)}}function C(t,r){var n=new e.Map;e.filterMutate(t,(function(t,i){var a=t.name||e.getNameOfDeclaration(t.node),o=a&&_(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;c0)return V(n)}switch(t.kind){case 297:var i=t;return e.isExternalModule(i)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName))))+'"':"";case 266:return e.isExportAssignment(t)&&t.isExportEquals?"export=":"default";case 209:case 251:case 208:case 252:case 221:return 512&e.getSyntacticModifierFlags(t)?"default":z(t);case 166:return"constructor";case 170:return"new()";case 169:return"()";case 171:return"[]";default:return""}}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:l,indent:0,bolded:!1,grayed:!1}}))||l,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;r0)return V(e.declarationNameToString(t.name));if(e.isVariableDeclaration(r))return V(e.declarationNameToString(r.name));if(e.isBinaryExpression(r)&&62===r.operatorToken.kind)return _(r.left).replace(s,"");if(e.isPropertyAssignment(r))return _(r.name);if(512&e.getSyntacticModifierFlags(t))return"default";if(e.isClassLike(t))return"";if(e.isCallExpression(r)){var n=U(r.expression);if(void 0!==n)return(n=V(n)).length>150?n+" callback":n+"("+V(e.mapDefined(r.arguments,(function(t){return e.isStringLiteralLike(t)?t.getText(i):void 0})).join(", "))+") callback"}return""}function U(t){if(e.isIdentifier(t))return t.text;if(e.isPropertyAccessExpression(t)){var r=U(t.expression),n=t.name.text;return void 0===r?n:r+"."+n}}function V(e){return(e=e.length>150?e.substring(0,150)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}}(e.NavigationBar||(e.NavigationBar={}))}(u||(u={})),function(e){!function(t){function r(t,r){var n=e.isStringLiteral(r)&&r.text;return e.isString(n)&&e.some(t.moduleAugmentations,(function(t){return e.isStringLiteral(t)&&t.text===n}))}function n(t){return void 0!==t&&e.isStringLiteralLike(t)?t.text:void 0}function i(t){var r;if(0===t.length)return t;var n=function(t){for(var r,n={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]},a=0,o=t;a0?g[0]:y[0],k=0===C.length?x?void 0:e.factory.createNamedImports(e.emptyArray):0===y.length?e.factory.createNamedImports(C):e.factory.updateNamedImports(y[0].importClause.namedBindings,C);f&&x&&k?(u.push(o(T,x,void 0)),u.push(o(null!==(r=y[0])&&void 0!==r?r:T,void 0,k))):u.push(o(T,x,k))}}else{var A=g[0];u.push(o(A,A.importClause.name,m[0].importClause.namedBindings))}}return u}function a(t){if(0===t.length)return t;var r=function(e){for(var t,r=[],n=[],i=0,a=e;i...")}function d(t){var n=e.createTextSpanFromBounds(t.openingFragment.getStart(r),t.closingFragment.getEnd());return c(n,"code",n,!1,"<>...")}function _(e){if(0!==e.properties.length)return o(e.getStart(r),e.getEnd(),"code")}function p(e){if(14!==e.kind||0!==e.text.length)return o(e.getStart(r),e.getEnd(),"code")}function f(t,r){return void 0===r&&(r=18),g(t,!1,!e.isArrayLiteralExpression(t.parent)&&!e.isCallExpression(t.parent),r)}function g(n,i,a,o,c){void 0===i&&(i=!1),void 0===a&&(a=!0),void 0===o&&(o=18),void 0===c&&(c=18===o?19:23);var u=e.findChildOfKind(t,o,r),l=e.findChildOfKind(t,c,r);return u&&l&&s(u,l,n,r,i,a)}function m(t){return t.length?c(e.createTextSpanFromRange(t),"code"):void 0}}(r,t);d&&i.push(d),u--,e.isCallExpression(r)?(u++,g(r.expression),u--,r.arguments.forEach(g),null===(l=r.typeArguments)||void 0===l||l.forEach(g)):e.isIfStatement(r)&&r.elseStatement&&e.isIfStatement(r.elseStatement)?(g(r.expression),g(r.thenStatement),u++,g(r.elseStatement),u--):r.forEachChild(g),u++}}}(t,n,u),function(t,r){for(var n=[],a=t.getLineStarts(),o=0,s=a;o1&&a.push(o(c,u,"comment"))}}function o(t,r,n){return c(e.createTextSpanFromBounds(t,r),n)}function s(t,r,n,i,a,o){return void 0===a&&(a=!1),void 0===o&&(o=!0),c(e.createTextSpanFromBounds(o?t.getFullStart():t.getStart(i),r.getEnd()),"code",e.createTextSpanFromNode(n,i),a)}function c(e,t,r,n,i){return void 0===r&&(r=e),void 0===n&&(n=!1),void 0===i&&(i="..."),{textSpan:e,kind:t,hintSpan:r,bannerText:i,autoCollapse:n}}}(e.OutliningElementsCollector||(e.OutliningElementsCollector={}))}(u||(u={})),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 _(e.charCodeAt(n+r))===t})))return{value:r}},i=0;i<=r;i++){var a=n(i);if("object"==typeof a)return a.value}return-1}(i,a.textLowerCase);if(0===s)return r(a.text.length===i.length?t.exact:t.prefix,e.startsWith(i,a.text));if(a.isLowerCase){if(-1===s)return;for(var d=0,p=n(i,o);d0)return r(t.substring,!0);if(a.characterSpans.length>0){var g=n(i,o),m=!!u(i,g,a,!1)||!u(i,g,a,!0)&&void 0;if(void 0!==m)return r(t.camelCase,m)}}}function a(e,t,r){if(C(t.totalTextChunk.text,(function(e){return 32!==e&&42!==e}))){var n=i(e,t.totalTextChunk,r);if(n)return n}for(var a,s=0,c=t.subWordTextChunks;s=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,99))return!1;var r=String.fromCharCode(t);return r===r.toUpperCase()}function d(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 _(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function p(e){return e>=48&&e<=57}function f(e){return l(e)||d(e)||p(e)||95===e||36===e}function g(e){for(var t=[],r=0,n=0,i=0;i0&&(t.push(m(e.substr(r,n))),n=0)}return n>0&&t.push(m(e.substr(r,n))),t}function m(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:y(e)}}function y(e){return h(e,!1)}function v(e){return h(e,!0)}function h(t,r){for(var n=[],i=0,a=1;at.length)return;for(var c=n.length-2,u=t.length-1;c>=0;c-=1,u-=1)s=o(s,a(t[u],n[c],i));return s}(t,i,n,r)},getMatchForLastSegmentOfPattern:function(t){return a(t,e.last(n),r)},patternContainsDots:n.length>1}},e.breakIntoCharacterSpans=y,e.breakIntoWordSpans=v}(u||(u={})),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 d(){return a=o,18===(o=e.scanner.scan())?u++:19===o&&u--,o}function _(){var t=e.scanner.getTokenValue(),r=e.scanner.getTokenPos();return{fileName:t,pos:r,end:r+t.length}}function p(){c.push(_()),f()}function f(){0===u&&(l=!0)}function g(){var t=e.scanner.getToken();return 133===t&&(139===(t=d())&&10===(t=d())&&(i||(i=[]),i.push({ref:_(),depth:u})),!0)}function m(){if(24===a)return!1;var t=e.scanner.getToken();if(99===t){if(20===(t=d())){if(10===(t=d())||14===t)return p(),!0}else{if(10===t)return p(),!0;149===t&&e.scanner.lookAhead((function(){var t=e.scanner.scan();return 153!==t&&(41===t||18===t||78===t||e.isKeyword(t))}))&&(t=d());if(78===t||e.isKeyword(t))if(153===(t=d())){if(10===(t=d()))return p(),!0}else if(62===t){if(v(!0))return!0}else{if(27!==t)return!0;t=d()}if(18===t){for(t=d();19!==t&&1!==t;)t=d();19===t&&153===(t=d())&&10===(t=d())&&p()}else 41===t&&126===(t=d())&&(78===(t=d())||e.isKeyword(t))&&153===(t=d())&&10===(t=d())&&p()}return!0}return!1}function y(){var t=e.scanner.getToken();if(92===t){if(f(),149===(t=d()))e.scanner.lookAhead((function(){var t=e.scanner.scan();return 41===t||18===t}))&&(t=d());if(18===t){for(t=d();19!==t&&1!==t;)t=d();19===t&&153===(t=d())&&10===(t=d())&&p()}else if(41===t)153===(t=d())&&10===(t=d())&&p();else if(99===t){if(149===(t=d()))e.scanner.lookAhead((function(){var t=e.scanner.scan();return 78===t||e.isKeyword(t)}))&&(t=d());if((78===t||e.isKeyword(t))&&62===(t=d())&&v(!0))return!0}return!0}return!1}function v(t,r){void 0===r&&(r=!1);var n=t?d():e.scanner.getToken();return 143===n&&(20===(n=d())&&(10===(n=d())||r&&14===n)&&p(),!0)}function h(){var t=e.scanner.getToken();if(78===t&&"define"===e.scanner.getTokenValue()){if(20!==(t=d()))return!0;if(10===(t=d())||14===t){if(27!==(t=d()))return!0;t=d()}if(22!==t)return!0;for(t=d();23!==t&&1!==t;)10!==t&&14!==t||p(),t=d();return!0}return!1}if(r&&function(){for(e.scanner.setText(t),d();1!==e.scanner.getToken();)g()||m()||y()||n&&(v(!1,!0)||h())||d();e.scanner.setText(void 0)}(),e.processCommentPragmas(s,t),e.processPragmasIntoFields(s,e.noop),l){if(i)for(var D=0,x=i;Dt)break e;if(r(i,t,m)){if(e.isBlock(m)||e.isTemplateSpan(m)||e.isTemplateHead(m)||e.isTemplateTail(m)||g&&e.isTemplateHead(g)||e.isVariableDeclarationList(m)&&e.isVariableStatement(_)||e.isSyntaxList(m)&&e.isVariableDeclarationList(_)||e.isVariableDeclaration(m)&&e.isSyntaxList(_)&&1===p.length||e.isJSDocTypeExpression(m)||e.isJSDocSignature(m)||e.isJSDocTypeLiteral(m)){_=m;break}if(e.isTemplateSpan(_)&&y&&e.isTemplateMiddleOrTemplateTail(y))x(m.getFullStart()-"${".length,y.getStart()+"}".length);var v=e.isSyntaxList(m)&&(c=void 0,18===(c=(s=g)&&s.kind)||22===c||20===c||275===c)&&u(y)&&!e.positionsAreOnSameLine(g.getStart(),y.getStart(),i),h=v?g.getEnd():m.getStart(),D=v?y.getStart():l(i,m);e.hasJSDocNodes(m)&&(null===(o=m.jsDoc)||void 0===o?void 0:o.length)&&x(e.first(m.jsDoc).getStart(),D),x(h,D),(e.isStringLiteral(m)||e.isTemplateLiteral(m))&&x(h+1,D-1),_=m;break}if(f===p.length-1)break e}}return d;function x(r,i){if(r!==i){var a=e.createTextSpanFromBounds(r,i);(!d||!e.textSpansEqual(a,d.textSpan)&&e.textSpanIntersectsWithPosition(a,t))&&(d=n({textSpan:a},d&&{parent:d}))}}};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.checkDefined(a.pop());e.Debug.assertEqual(n.kind,18),e.Debug.assertEqual(u.kind,19);var l=o(a,(function(e){return e===t.readonlyToken||142===e.kind||e===t.questionToken||57===e.kind}));return[n,c(s(o(l,(function(e){var t=e.kind;return 22===t||159===t||23===t})),(function(e){return 58===e.kind}))),u]}if(e.isPropertySignature(t))return 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 d=o(t.getChildren(),(function(e){return e===t.dotDotDotToken||e===t.name}));return s(o(d,(function(e){return e===d[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;i0&&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)&&205===i.parent.kind){var p=i,f=p.parent;return e.Debug.assert(218===p.kind),_(f,u=e.isInsideTemplateLiteral(t,r,n)?0:1,n)}if(e.isTemplateSpan(i)&&e.isTaggedTemplateExpression(i.parent.parent)){var g=i;f=i.parent.parent;if(e.isTemplateTail(t)&&!e.isInsideTemplateLiteral(t,r,n))return;return _(f,u=function(t,r,n,i){if(e.Debug.assert(n>=r.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(r))return e.isInsideTemplateLiteral(r,n,i)?0:t+2;return t+1}(g.parent.templateSpans.indexOf(g),t,r,n),n)}if(e.isJsxOpeningLikeElement(i)){var m=i.attributes.pos,y=e.skipTrivia(n.text,i.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:e.createTextSpan(m,y-m),argumentIndex:0,argumentCount:1}}var v=e.getPossibleTypeArgumentsInfo(t,n);if(v){var h=v.called,D=v.nTypeArguments;return{isTypeParameterList:!0,invocation:a={kind:1,called:h},argumentsSpan:d=e.createTextSpanFromBounds(h.getStart(n),t.end),argumentIndex:D,argumentCount:D+1}}}function c(t){return e.isBinaryExpression(t.parent)?c(t.parent):t}function u(t){return e.isBinaryExpression(t.left)?u(t.left)+1:2}function l(t){return"__type"===t.name&&e.firstDefined(t.declarations,(function(t){return e.isFunctionTypeNode(t)?t.parent.symbol:void 0}))||t}function d(e,t){for(var r=0,n=0,i=e.getChildren();n=0&&i.length>a+1),i[a+1]}function g(t){return 0===t.kind?e.getInvokedExpression(t.node):t.called}function m(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={})),t.getSignatureHelpItems=function(t,r,n,i,d){var _=t.getTypeChecker(),p=e.findTokenOnLeftOfPosition(r,n);if(p){var f=!!i&&"characterTyped"===i.kind;if(!f||!e.isInString(r,n,p)&&!e.isInComment(r,n)){var y=!!i&&"invoked"===i.kind,D=function(t,r,n,i,a){for(var d=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 207:case 165:case 208:case 209:var a=o(t,r);if(!a)return;var s=a.argumentIndex,l=a.argumentCount,d=a.argumentsSpan,_=e.isMethodDeclaration(i)?n.getContextualTypeForObjectLiteralElement(i):n.getContextualType(i);return _&&{contextualType:_,argumentIndex:s,argumentCount:l,argumentsSpan:d};case 216:var p=c(i),f=n.getContextualType(p),g=20===t.kind?0:u(i)-1,m=u(p);return f&&{contextualType:f,argumentIndex:g,argumentCount:m,argumentsSpan:e.createTextSpanFromNode(i)};default:return}}(t,n,i);if(!a)return;var s=a.contextualType,d=a.argumentIndex,_=a.argumentCount,p=a.argumentsSpan,f=s.getNonNullableType(),g=f.getCallSignatures();return 1!==g.length?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:e.first(g),node:t,symbol:l(f.symbol)},argumentsSpan:p,argumentIndex:d,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 p=d(_);if("object"==typeof p)return p.value}return}(p,n,r,_,y);if(D){d.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 d=s.called;if(o&&!a(i,n,e.isIdentifier(d)?d.parent:d))return;if(0!==(u=e.getPossibleGenericSignatures(d,c,r)).length)return{kind:0,candidates:u,resolvedSignature:e.first(u)};var _=r.getSymbolAtLocation(d);return _&&{kind:1,symbol:_};case 2:return{kind:0,candidates:[s.signature],resolvedSignature:s.signature};default:return e.Debug.assertNever(s)}}(D,_,r,p,f);return d.throwIfCancellationRequested(),x?_.runWithCancellationToken(d,(function(e){return 0===x.kind?v(x.candidates,x.resolvedSignature,D,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:[h(e,c,n,m(o),r)],applicableSpan:a,selectedItemIndex:0,argumentIndex:s,argumentCount:i}:void 0}(x.symbol,D,r,e)})):e.isSourceFileJS(r)?function(t,r,n){if(2===t.invocation.kind)return;var i=g(t.invocation),a=e.isPropertyAccessExpression(i)?i.name.text:void 0,o=r.getTypeChecker();return void 0===a?void 0:e.firstDefined(r.getSourceFiles(),(function(r){return e.firstDefined(r.getNamedDeclarations().get(a),(function(e){var i=e.symbol&&o.getTypeOfSymbolAtLocation(e.symbol,e),a=i&&i.getCallSignatures();if(a&&a.length)return o.runWithCancellationToken(n,(function(e){return v(a,a[0],t,r,e,!0)}))}))}))}(D,t,d):void 0}}}},function(e){e[e.Candidate=0]="Candidate",e[e.Type=1]="Type"}(i||(i={})),t.getArgumentInfoForCompletions=function(e,t,r){var n=s(e,t,r);return!n||n.isTypeParameterList||0!==n.invocation.kind?void 0:{invocation:n.invocation.node,argumentCount:n.argumentCount,argumentIndex:n.argumentIndex}};var y=70246400;function v(t,n,i,a,o,s){var c,u=i.isTypeParameterList,l=i.argumentCount,d=i.argumentsSpan,_=i.invocation,p=i.argumentIndex,f=m(_),y=2===_.kind?_.symbol:o.getSymbolAtLocation(g(_))||s&&(null===(c=n.declaration)||void 0===c?void 0:c.symbol),v=y?e.symbolToDisplayParts(o,y,s?a:void 0,void 0):e.emptyArray,h=e.map(t,(function(t){return function(t,n,i,a,o,s){var c=(i?x:b)(t,a,o,s);return e.map(c,(function(i){var s=i.isVariadic,c=i.parameters,u=i.prefix,l=i.suffix,d=r(n,u),_=r(l,function(t,r,n){return e.mapToDisplayParts((function(e){e.writePunctuation(":"),e.writeSpace(" ");var i=n.getTypePredicateOfSignature(t);i?n.writeTypePredicate(i,r,void 0,e):n.writeType(n.getReturnTypeOfSignature(t),r,void 0,e)}))}(t,o,a)),p=t.getDocumentationComment(a),f=t.getJsDocTags();return{isVariadic:s,prefixDisplayParts:d,suffixDisplayParts:_,separatorDisplayParts:D,parameters:c,documentation:p,tags:f}}))}(t,v,u,o,f,a)}));0!==p&&e.Debug.assertLessThan(p,l);for(var S=0,E=0,C=0;C1))for(var k=0,A=0,F=T;A=l){S=E+k;break}k++}E+=T.length}return e.Debug.assert(-1!==S),{items:e.flatMapToMutable(h,e.identity),applicableSpan:d,selectedItemIndex:S,argumentIndex:p,argumentCount:l}}function h(t,n,i,a,o){var s=e.symbolToDisplayParts(i,t),c=e.createPrinter({removeComments:!0}),u=n.map((function(e){return S(e,i,a,o,c)})),l=t.getDocumentationComment(i),d=t.getJsDocTags();return{isVariadic:!1,prefixDisplayParts:r(s,[e.punctuationPart(29)]),suffixDisplayParts:[e.punctuationPart(31)],separatorDisplayParts:D,parameters:u,documentation:l,tags:d}}var D=[e.punctuationPart(27),e.spacePart()];function x(t,n,i,a){var o=(t.target||t).typeParameters,s=e.createPrinter({removeComments:!0}),c=(o||e.emptyArray).map((function(e){return S(e,n,i,a,s)})),u=t.thisParameter?[n.symbolToParameterDeclaration(t.thisParameter,i,y)]:[];return n.getExpandedParameters(t).map((function(t){var o=e.factory.createNodeArray(r(u,e.map(t,(function(e){return n.symbolToParameterDeclaration(e,i,y)})))),l=e.mapToDisplayParts((function(e){s.writeList(2576,o,a,e)}));return{isVariadic:!1,parameters:c,prefix:[e.punctuationPart(29)],suffix:r([e.punctuationPart(31)],l)}}))}function b(t,n,i,a){var o=n.hasEffectiveRestParameter(t),s=e.createPrinter({removeComments:!0}),c=e.mapToDisplayParts((function(r){if(t.typeParameters&&t.typeParameters.length){var o=e.factory.createNodeArray(t.typeParameters.map((function(e){return n.typeParameterToDeclaration(e,i,y)})));s.writeList(53776,o,a,r)}})),u=n.getExpandedParameters(t);return u.map((function(t){return{isVariadic:o&&(1===u.length||!!(32768&t[t.length-1].checkFlags)),parameters:t.map((function(t){return function(t,r,n,i,a){var o=e.mapToDisplayParts((function(e){var o=r.symbolToParameterDeclaration(t,n,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:r(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,y);a.writeNode(4,o,i,e)}));return{name:t.symbol.name,documentation:t.symbol.getDocumentationComment(r),displayParts:o,isOptional:!1}}}(e.SignatureHelp||(e.SignatureHelp={}))}(u||(u={})),function(e){var t=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function r(t,r,n){var i=e.tryParseRawSourceMap(r);if(i&&i.sources&&i.file&&i.mappings&&(!i.sourcesContent||!i.sourcesContent.some(e.isString)))return e.createDocumentPositionMapper(t,i,n)}e.getSourceMapper=function(t){var r=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames()),n=t.getCurrentDirectory(),i=new e.Map,a=new e.Map;return{tryGetSourcePosition:function t(r){if(!e.isDeclarationFileName(r.fileName))return;if(!c(r.fileName))return;var n=s(r.fileName).getSourcePosition(r);return n&&n!==r?t(n)||n:void 0},tryGetGeneratedPosition:function(i){if(e.isDeclarationFileName(i.fileName))return;var a=c(i.fileName);if(!a)return;var o=t.getProgram();if(o.isSourceOfProjectReferenceRedirect(a.fileName))return;var u=o.getCompilerOptions(),l=e.outFile(u),d=l?e.removeFileExtension(l)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(i.fileName,o.getCompilerOptions(),n,o.getCommonSourceDirectory(),r);if(void 0===d)return;var _=s(d,i.fileName).getGeneratedPosition(i);return _===i?void 0:_},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 d=l(n);s=d&&e.getDocumentPositionMapper({getSourceFileLike:l,getCanonicalFileName:r,log:function(e){return t.log(e)}},n,e.getLineInfo(d.text,e.getLineStarts(d)),(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 d=s&&e.getNormalizedAbsolutePath(s,e.getDirectoryPath(i)),_=0,p=l;_2)&&(t.arguments.length<2||e.some(t.arguments,(function(t){return 103===t.kind||e.isIdentifier(t)&&"undefined"===t.text})))}(t)||e.hasPropertyAccessExpressionWithName(t,"catch"))}function s(e){switch(e.kind){case 251:case 208:case 209:t.set(c(e),!0);case 103:case 78:return!0;default:return!1}}function c(e){return e.pos.toString()+":"+e.end.toString()}e.computeSuggestionDiagnostics=function(a,o,s){o.getSemanticDiagnostics(a,s);var u,l=[],d=o.getTypeChecker();a.commonJsModuleIndicator&&(e.programContainsEs6Modules(o)||e.compilerOptionsIndicateEs6Modules(o.getCompilerOptions()))&&function(t){return t.statements.some((function(t){switch(t.kind){case 232:return t.declarationList.declarations.some((function(t){return!!t.initializer&&e.isRequireCall(r(t.initializer),!0)}));case 233:var n=t.expression;if(!e.isBinaryExpression(n))return e.isRequireCall(n,!0);var i=e.getAssignmentDeclarationKind(n);return 1===i||2===i;default:return!1}}))}(a)&&l.push(e.createDiagnosticForNode((u=a.commonJsModuleIndicator,e.isBinaryExpression(u)?u.left:u),e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module));var _=e.isSourceFileJS(a);if(t.clear(),function r(n){if(_)(function(t,r){var n,i,a,o;if(208===t.kind){if(e.isVariableDeclaration(t.parent)&&(null===(n=t.symbol.members)||void 0===n?void 0:n.size))return!0;var s=r.getSymbolOfExpando(t,!1);return!(!s||!(null===(i=s.exports)||void 0===i?void 0:i.size)&&!(null===(a=s.members)||void 0===a?void 0:a.size))}if(251===t.kind)return!!(null===(o=t.symbol.members)||void 0===o?void 0:o.size);return!1})(n,d)&&l.push(e.createDiagnosticForNode(e.isVariableDeclaration(n.parent)?n.parent.name:n,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(e.isVariableStatement(n)&&n.parent===a&&2&n.declarationList.flags&&1===n.declarationList.declarations.length){var o=n.declarationList.declarations[0].initializer;o&&e.isRequireCall(o,!0)&&l.push(e.createDiagnosticForNode(o,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(n)&&l.push(e.createDiagnosticForNode(n.name||n,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}e.isFunctionLikeDeclaration(n)&&function(r,n,a){(function(t,r){return!e.isAsyncFunction(t)&&t.body&&e.isBlock(t.body)&&(n=t.body,!!e.forEachReturnStatement(n,i))&&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 n})(r,n)&&!t.has(c(r))&&a.push(e.createDiagnosticForNode(!r.name&&e.isVariableDeclaration(r.parent)&&e.isIdentifier(r.parent.name)?r.parent.name:r,e.Diagnostics.This_may_be_converted_to_an_async_function))}(n,d,l);n.forEachChild(r)}(a),e.getAllowSyntheticDefaultImports(o.getCompilerOptions()))for(var p=0,f=a.imports;p0?e.getNodeModifiers(t.declarations[0]):"",n=t&&16777216&t.flags?"optional":"";return r&&n?r+","+n:r||n},t.getSymbolDisplayPartsDocumentationAndSymbolKind=function t(a,o,s,c,u,l,d){void 0===l&&(l=e.getMeaningFromLocation(u));var _,p,f,g,m=[],y=[],v=[],h=e.getCombinedLocalAndExportSymbolFlags(o),D=1&l?i(a,o,u):"",x=!1,b=107===u.kind&&e.isInExpressionContext(u),S=!1;if(107===u.kind&&!b)return{displayParts:[e.keywordPart(107)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==D||32&h||2097152&h){"getter"!==D&&"setter"!==D||(D="property");var E=void 0;if(_=b?a.getTypeAtLocation(u):a.getTypeOfSymbolAtLocation(o.exportSymbol||o,u),u.parent&&201===u.parent.kind){var C=u.parent.name;(C===u||C&&0===C.getFullWidth())&&(u=u.parent)}var T=void 0;if(e.isCallOrNewExpression(u)?T=u:(e.isCallExpressionTarget(u)||e.isNewExpressionTarget(u)||u.parent&&(e.isJsxOpeningLikeElement(u.parent)||e.isTaggedTemplateExpression(u.parent))&&e.isFunctionLike(o.valueDeclaration))&&(T=u.parent),T){E=a.getResolvedSignature(T);var k=204===T.kind||e.isCallExpression(T)&&105===T.expression.kind,A=k?_.getConstructSignatures():_.getCallSignatures();if(e.contains(A,E.target)||e.contains(A,E)||(E=A.length?A[0]:void 0),E){switch(k&&32&h?(D="constructor",X(_.symbol,D)):2097152&h?(Q(D="alias"),m.push(e.spacePart()),k&&(m.push(e.keywordPart(102)),m.push(e.spacePart())),Y(o)):X(o,D),D){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":m.push(e.punctuationPart(58)),m.push(e.spacePart()),16&e.getObjectFlags(_)||!_.symbol||(e.addRange(m,e.symbolToDisplayParts(a,_.symbol,c,void 0,5)),m.push(e.lineBreakPart())),k&&(m.push(e.keywordPart(102)),m.push(e.spacePart())),$(E,A,262144);break;default:$(E,A)}x=!0,S=A.length>1}}else if(e.isNameOfFunctionDeclaration(u)&&!(98304&h)||132===u.kind&&166===u.parent.kind){var F=u.parent;if(o.declarations&&e.find(o.declarations,(function(e){return e===(132===u.kind?F.parent:F)}))){A=166===F.kind?_.getNonNullableType().getConstructSignatures():_.getNonNullableType().getCallSignatures();E=a.isImplementationOfOverload(F)?A[0]:a.getSignatureFromDeclaration(F),166===F.kind?(D="constructor",X(_.symbol,D)):X(169!==F.kind||2048&_.symbol.flags||4096&_.symbol.flags?o:_.symbol,D),$(E,A),x=!0,S=A.length>1}}}if(32&h&&!x&&!b&&(H(),e.getDeclarationOfKind(o,221)?Q("local class"):m.push(e.keywordPart(83)),m.push(e.spacePart()),Y(o),Z(o,s)),64&h&&2&l&&(W(),m.push(e.keywordPart(117)),m.push(e.spacePart()),Y(o),Z(o,s)),524288&h&&2&l&&(W(),m.push(e.keywordPart(149)),m.push(e.spacePart()),Y(o),Z(o,s),m.push(e.spacePart()),m.push(e.operatorPart(62)),m.push(e.spacePart()),e.addRange(m,e.typeToDisplayParts(a,a.getDeclaredTypeOfSymbol(o),c,8388608))),384&h&&(W(),e.some(o.declarations,(function(t){return e.isEnumDeclaration(t)&&e.isEnumConst(t)}))&&(m.push(e.keywordPart(84)),m.push(e.spacePart())),m.push(e.keywordPart(91)),m.push(e.spacePart()),Y(o)),1536&h&&!b){W();var N=(U=e.getDeclarationOfKind(o,256))&&U.name&&78===U.name.kind;m.push(e.keywordPart(N?140:139)),m.push(e.spacePart()),Y(o)}if(262144&h&&2&l)if(W(),m.push(e.punctuationPart(20)),m.push(e.textPart("type parameter")),m.push(e.punctuationPart(21)),m.push(e.spacePart()),Y(o),o.parent)G(),Y(o.parent,c),Z(o.parent,c);else{var P=e.getDeclarationOfKind(o,159);if(void 0===P)return e.Debug.fail();if(U=P.parent)if(e.isFunctionLikeKind(U.kind)){G();E=a.getSignatureFromDeclaration(U);170===U.kind?(m.push(e.keywordPart(102)),m.push(e.spacePart())):169!==U.kind&&U.name&&Y(U.symbol),e.addRange(m,e.signatureToDisplayParts(a,E,s,32))}else 254===U.kind&&(G(),m.push(e.keywordPart(149)),m.push(e.spacePart()),Y(U.symbol),Z(U.symbol,s))}if(8&h&&(D="enum member",X(o,"enum member"),291===(U=o.declarations[0]).kind)){var w=a.getConstantValue(U);void 0!==w&&(m.push(e.spacePart()),m.push(e.operatorPart(62)),m.push(e.spacePart()),m.push(e.displayPart(e.getTextOfConstantValue(w),"number"==typeof w?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&o.flags){if(W(),!x){var I=a.getAliasedSymbol(o);if(I!==o&&I.declarations&&I.declarations.length>0){var O=I.declarations[0],M=e.getNameOfDeclaration(O);if(M){var L=e.isModuleWithStringLiteralName(O)&&e.hasSyntacticModifier(O,2),R="default"!==o.name&&!L,B=t(a,I,e.getSourceFileOfNode(O),O,M,l,R?o:I);m.push.apply(m,B.displayParts),m.push(e.lineBreakPart()),f=B.documentation,g=B.tags}}}switch(o.declarations[0].kind){case 259:m.push(e.keywordPart(92)),m.push(e.spacePart()),m.push(e.keywordPart(140));break;case 266:m.push(e.keywordPart(92)),m.push(e.spacePart()),m.push(e.keywordPart(o.declarations[0].isExportEquals?62:87));break;case 270:m.push(e.keywordPart(92));break;default:m.push(e.keywordPart(99))}m.push(e.spacePart()),Y(o),e.forEach(o.declarations,(function(t){if(260===t.kind){var r=t;if(e.isExternalModuleImportEqualsDeclaration(r))m.push(e.spacePart()),m.push(e.operatorPart(62)),m.push(e.spacePart()),m.push(e.keywordPart(143)),m.push(e.punctuationPart(20)),m.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(r)),e.SymbolDisplayPartKind.stringLiteral)),m.push(e.punctuationPart(21));else{var n=a.getSymbolAtLocation(r.moduleReference);n&&(m.push(e.spacePart()),m.push(e.operatorPart(62)),m.push(e.spacePart()),Y(n,c))}return!0}}))}if(!x)if(""!==D){if(_)if(b?(W(),m.push(e.keywordPart(107))):X(o,D),"property"===D||"JSX attribute"===D||3&h||"local var"===D||b){if(m.push(e.punctuationPart(58)),m.push(e.spacePart()),_.symbol&&262144&_.symbol.flags){var j=e.mapToDisplayParts((function(t){var n=a.typeParameterToDeclaration(_,c,r);q().writeNode(4,n,e.getSourceFileOfNode(e.getParseTreeNode(c)),t)}));e.addRange(m,j)}else e.addRange(m,e.typeToDisplayParts(a,_,c));if(o.target&&o.target.tupleLabelDeclaration){var J=o.target.tupleLabelDeclaration;e.Debug.assertNode(J.name,e.isIdentifier),m.push(e.spacePart()),m.push(e.punctuationPart(20)),m.push(e.textPart(e.idText(J.name))),m.push(e.punctuationPart(21))}}else if(16&h||8192&h||16384&h||131072&h||98304&h||"method"===D){(A=_.getNonNullableType().getCallSignatures()).length&&($(A[0],A),S=A.length>1)}}else D=n(a,o,u);if(0!==y.length||S||(y=o.getContextualDocumentationComment(c,a)),0===y.length&&4&h&&o.parent&&e.forEach(o.parent.declarations,(function(e){return 297===e.kind})))for(var K=0,z=o.declarations;K0))break}}return 0!==v.length||S||(v=o.getJsDocTags()),0===y.length&&f&&(y=f),0===v.length&&g&&(v=g),{displayParts:m,documentation:y,symbolKind:D,tags:0===v.length?void 0:v};function q(){return p||(p=e.createPrinter({removeComments:!0})),p}function W(){m.length&&m.push(e.lineBreakPart()),H()}function H(){d&&(Q("alias"),m.push(e.spacePart()))}function G(){m.push(e.spacePart()),m.push(e.keywordPart(100)),m.push(e.spacePart())}function Y(t,r){d&&t===o&&(t=d);var n=e.symbolToDisplayParts(a,t,r||s,void 0,7);e.addRange(m,n),16777216&o.flags&&m.push(e.punctuationPart(57))}function X(t,r){W(),r&&(Q(r),t&&!e.some(t.declarations,(function(t){return e.isArrowFunction(t)||(e.isFunctionExpression(t)||e.isClassExpression(t))&&!t.name}))&&(m.push(e.spacePart()),Y(t)))}function Q(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":return void m.push(e.textOrKeywordPart(t));default:return m.push(e.punctuationPart(20)),m.push(e.textOrKeywordPart(t)),void m.push(e.punctuationPart(21))}}function $(t,r,n){void 0===n&&(n=0),e.addRange(m,e.signatureToDisplayParts(a,t,c,32|n)),r.length>1&&(m.push(e.spacePart()),m.push(e.punctuationPart(20)),m.push(e.operatorPart(39)),m.push(e.displayPart((r.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),m.push(e.spacePart()),m.push(e.textPart(2===r.length?"overload":"overloads")),m.push(e.punctuationPart(21))),y=t.getDocumentationComment(a),v=t.getJsDocTags(),r.length>1&&0===y.length&&0===v.length&&(y=r[0].getDocumentationComment(a),v=r[0].getJsDocTags())}function Z(t,n){var i=e.mapToDisplayParts((function(i){var o=a.symbolToTypeParameterDeclarations(t,n,r);q().writeList(53776,o,e.getSourceFileOfNode(e.getParseTreeNode(n)),i)}));e.addRange(m,i)}}}(e.SymbolDisplay||(e.SymbolDisplay={}))}(u||(u={})),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>=5;return r}(p,_),0,n),a[c]=(d=1+((u=p)>>(l=_)&s),e.Debug.assert((d&s)===d,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),u&~(s<=r.pos?t.pos:a.end:t.pos}(o,r,n),r.end,(function(s){return _(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 _(r,n,i,a,o,s,c,u,l){var d,_,f,g,m=s.options,y=s.getRules,v=s.host,h=new t.FormattingContext(l,c,m),D=-1,x=[];if(o.advance(),o.isOnToken()){var b=l.getLineAndCharacterOfPosition(n.getStart(l)).line,S=b;n.decorators&&(S=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,l)).line),function n(i,a,s,c,p,y){if(!e.rangeOverlapsWithStartEnd(r,i.getStart(l),i.getEnd()))return;var v=C(i,s,p,y),h=a;e.forEachChild(i,(function(e){S(e,-1,i,v,s,c,!1)}),(function(e){E(e,i,s,v)}));for(;o.isOnToken();){var x=o.readTokenInfo(i);if(x.token.end>i.end)break;11!==i.kind?w(x,i,v,i):o.advance()}if(!i.parent&&o.isOnEOF()){var b=o.readEOFTokenRange();b.end<=i.end&&d&&F(b,l.getLineAndCharacterOfPosition(b.pos).line,i,d,f,_,a,v)}function S(a,s,c,u,d,_,p,f){var y=a.getStart(l),v=l.getLineAndCharacterOfPosition(y).line,x=v;a.decorators&&(x=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(a,l)).line);var b=-1;if(p&&e.rangeContainsRange(r,c)&&-1!==(b=function(r,n,i,a,o){if(e.rangeOverlapsWithStartEnd(a,r,n)||e.rangeContainsStartEnd(a,r,n)){if(-1!==o)return o}else{var s=l.getLineAndCharacterOfPosition(r).line,c=e.getLineStartPositionForPosition(r,l),u=t.SmartIndenter.findFirstNonWhitespaceColumn(c,r,l,m);if(s!==i||r===u){var d=t.SmartIndenter.getBaseIndentation(m);return d>u?d:u}}return-1}(y,a.end,d,r,s))&&(s=b),!e.rangeOverlapsWithStartEnd(r,a.pos,a.end))return a.endy){S.token.pos>y&&o.skipToStartOf(a);break}w(S,i,u,i)}if(!o.isOnToken())return s;if(e.isToken(a)){var S=o.readTokenInfo(a);if(11!==a.kind)return e.Debug.assert(S.token.end===a.end,"Token end is child end"),w(S,i,u,a),s}var E=161===a.kind?v:_,C=function(e,r,n,i,a,o){var s=t.SmartIndenter.shouldIndentChildNode(m,e)?m.indentSize:0;return o===r?{indentation:r===g?D:a.getIndentation(),delta:Math.min(m.indentSize,a.getDelta(e)+s)}:-1===n?20===e.kind&&r===g?{indentation:D,delta:a.getDelta(e)}:t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,r,l)||t.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(i,e,r,l)?{indentation:a.getIndentation(),delta:s}:{indentation:a.getIndentation()+a.getDelta(e),delta:s}:{indentation:n,delta:s}}(a,v,b,i,u,E);if(n(a,h,v,x,C.indentation,C.delta),11===a.kind){var T={pos:a.getStart(),end:a.getEnd()};if(T.pos!==T.end){var k=c.getChildren(l),A=k[e.findIndex(k,(function(e){return e.pos===a.pos}))-1];if(A&&l.getLineAndCharacterOfPosition(T.end).line!==l.getLineAndCharacterOfPosition(A.end).line){var F=l.getLineAndCharacterOfPosition(T.pos).line===l.getLineAndCharacterOfPosition(A.end).line;P(T,C.indentation,F,!1,!0)}}}return h=i,f&&199===c.kind&&-1===s&&(s=C.indentation),s}function E(r,n,a,s){e.Debug.assert(e.isNodeArray(r));var c=function(e,t){switch(e.kind){case 166:case 251:case 208:case 165:case 164:case 209:if(e.typeParameters===t)return 29;if(e.parameters===t)return 20;break;case 203:case 204:if(e.typeArguments===t)return 29;if(e.arguments===t)return 20;break;case 173:if(e.typeArguments===t)return 29;break;case 177:return 18}return 0}(n,r),u=s,d=a;if(0!==c)for(;o.isOnToken();){if((v=o.readTokenInfo(n)).token.end>r.pos)break;if(v.token.kind===c){d=l.getLineAndCharacterOfPosition(v.token.pos).line,w(v,n,s,n);var _=void 0;if(-1!==D)_=D;else{var p=e.getLineStartPositionForPosition(v.token.pos,l);_=t.SmartIndenter.findFirstNonWhitespaceColumn(p,v.token.pos,l,m)}u=C(n,a,_,m.indentSize)}else w(v,n,s,n)}for(var f=-1,g=0;g0){var E=p(S,m);M(x,b.character,E)}else O(x,b.character)}}}else i||N(r.pos,n,!1)}function w(t,r,n){for(var i=t;io)){var s=I(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(l.text.charCodeAt(s-1))),O(s,o+1-s))}}}function I(t,r){for(var n=r;n>=t&&e.isWhiteSpaceSingleLine(l.text.charCodeAt(n));)n--;return n!==r?n+1:-1}function O(t,r){r&&x.push(e.createTextChangeFromStartLength(t,r,""))}function M(t,r,n){(r||n)&&x.push(e.createTextChangeFromStartLength(t,r,n))}}function p(t,r){if((!i||i.tabSize!==r.tabSize||i.indentSize!==r.indentSize)&&(i={tabSize:r.tabSize,indentSize:r.indentSize},a=o=void 0),r.convertTabsToSpaces){var n=void 0,s=Math.floor(t/r.indentSize),c=t%r.indentSize;return o||(o=[]),void 0===o[s]?(n=e.repeatString(" ",r.indentSize*s),o[s]=n):n=o[s],c?n+e.repeatString(" ",c):n}var u=Math.floor(t/r.tabSize),l=t-u*r.tabSize,d=void 0;return a||(a=[]),void 0===a[u]?a[u]=d=e.repeatString("\t",u):d=a[u],l?d+e.repeatString(" ",l):d}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--,d({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 d({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 d({pos:0,end:e.text.length},e,t,0)},t.formatSelection=function(t,r,n,i){return d({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 _(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&&rr.end}var g=s(l,e,i),y=g.line===t.line||_(l,e,t.line,i);if(p){var v=m(e,i,u,!y);if(-1!==v)return v+n;if(-1!==(v=c(e,l,t,y,i,u)))return v+n}b(u,l,e,i,o)&&!y&&(n+=u.indentSize);var h=d(l,e,t.line,i);l=(e=l).parent,t=h?i.getLineAndCharacterOfPosition(e.getStart(i)):g}return n+a(u)}function s(e,t,r){var n=p(t,r),i=n?n.pos:e.getStart(r);return r.getLineAndCharacterOfPosition(i)}function c(t,r,n,i,a,o){return(e.isDeclaration(t)||e.isStatementButNotDeclaration(t))&&(297===r.kind||!i)?v(n,a,o):-1}function u(t,r,n,i){var a=e.findNextToken(t,r,i);return a?18===a.kind?1:19===a.kind&&n===l(a,i).line?2:0:0}function l(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function d(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 _(t,r,n,i){if(234===t.kind&&t.elseStatement===r){var a=e.findChildOfKind(t,90,i);return e.Debug.assert(void 0!==a),l(a,i).line===n}return!1}function p(e,t){return e.parent&&f(e.getStart(t),e.getEnd(),e.parent,t)}function f(t,r,n,i){switch(n.kind){case 173:return a(n.typeArguments);case 200:return a(n.properties);case 199:return a(n.elements);case 177:return a(n.members);case 251:case 208:case 209:case 165:case 164:case 169:case 166:case 175:case 170:return a(n.typeParameters)||a(n.parameters);case 252:case 221:case 253:case 254:case 330:return a(n.typeParameters);case 204:case 203:return a(n.typeArguments)||a(n.arguments);case 250:return a(n.declarations);case 264:case 268:return a(n.elements);case 196:case 197:return a(n.elements)}function a(a){return a&&e.rangeContainsStartEnd(function(e,t,r){for(var n=e.getChildren(r),i=1;i=0&&r=0;o--)if(27!==t[o].kind){if(n.getLineAndCharacterOfPosition(t[o].end).line!==a.line)return v(a,n,i);a=l(t[o],n)}return-1}function v(e,t,r){var n=t.getPositionOfLineAndCharacter(e.line,0);return D(n,n+e.character,t,r)}function h(t,r,n,i){for(var a=0,o=0,s=t;sn.text.length)return a(i);if(i.indentStyle===e.IndentStyle.None)return 0;var c=e.findPrecedingToken(r,n,void 0,!0),d=t.getRangeOfEnclosingComment(n,r,c||null);if(d&&3===d.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 D(e.getStartPositionOfLine(o,t),r,t,n);var s=e.getStartPositionOfLine(a,t),c=h(s,r,t,n),u=c.column,l=c.character;if(0===u)return u;return 42===t.text.charCodeAt(s+l)?u-1:u}(n,r,i,d);if(!c)return a(i);if(e.isStringOrRegularExpressionOrTemplateLiteral(c.kind)&&c.getStart(n)<=r&&r0;){var a=t.text.charCodeAt(i);if(!e.isWhiteSpaceLike(a))break;i--}return D(e.getLineStartPositionForPosition(i,t),i,t,n)}(n,r,i);if(27===c.kind&&216!==c.parent.kind){var p=function(t,r,n){var i=e.findListItemInfo(t);return i&&i.listItemIndex>0?y(i.list.getChildren(),i.listItemIndex-1,r,n):-1}(c,n,i);if(-1!==p)return p}var v=function(e,t,r){return t&&f(e,e,t,r)}(r,c.parent,n);return v&&!e.rangeContainsRange(v,c)?g(v,n,i)+i.indentSize:function(t,r,n,i,s,c){var d,_=n;for(;_;){if(e.positionBelongsToNode(_,r,t)&&b(c,_,d,t,!0)){var p=l(_,t),f=u(n,_,i,t);return o(_,p,void 0,0!==f?s&&2===f?c.indentSize:0:i!==p.line?c.indentSize:0,t,!0,c)}var g=m(_,t,c,!0);if(-1!==g)return g;d=_,_=_.parent}return a(c)}(n,r,c,_,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=d,r.childStartsOnTheSameLineWithElseInIfStatement=_,r.argumentStartsOnSameLineAsPreviousArgument=function(t,r,n,i){if(e.isCallOrNewExpression(t)){if(!t.arguments)return!1;var a=e.find(t.arguments,(function(e){return e.pos===r.pos}));if(!a)return!1;var o=t.arguments.indexOf(a);if(0===o)return!1;var s=t.arguments[o-1];if(n===e.getLineAndCharacterOfPosition(i,s.getEnd()).line)return!0}return!1},r.getContainingList=p,r.findFirstNonWhitespaceCharacterAndColumn=h,r.findFirstNonWhitespaceColumn=D,r.nodeWillIndentChild=x,r.shouldIndentChildNode=b}(t.SmartIndenter||(t.SmartIndenter={}))}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){!function(t){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",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine"}(c=t.LeadingTriviaOption||(t.LeadingTriviaOption={})),function(e){e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include"}(u=t.TrailingTriviaOption||(t.TrailingTriviaOption={}));var d,_={leadingTriviaOption:c.Exclude,trailingTriviaOption:u.Exclude};function p(e,t,r,n){return{pos:f(e,t,n),end:g(e,r,n)}}function f(t,r,n){var i=n.leadingTriviaOption;if(i===c.Exclude)return r.getStart(t);if(i===c.StartLine)return e.getLineStartPositionForPosition(r.getStart(t),t);if(i===c.JSDoc){var a=e.getJSDocCommentRanges(r,t.text);if(null==a?void 0:a.length)return e.getLineStartPositionForPosition(a[0].pos,t)}var o=r.getFullStart(),s=r.getStart(t);if(o===s)return s;var u=e.getLineStartPositionForPosition(o,t);if(e.getLineStartPositionForPosition(s,t)===u)return i===c.IncludeAll?o:s;var d=o>0?1:0,_=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,u)+d,t);return _=l(t.text,_),e.getStartPositionOfLine(e.getLineOfLocalPosition(t,_),t)}function g(t,r,n){var i,a=r.end,o=n.trailingTriviaOption;if(o===u.Exclude)return a;if(o===u.ExcludeWhitespace){var s=e.concatenate(e.getTrailingCommentRanges(t.text,a),e.getLeadingCommentRanges(t.text,a)),c=null===(i=null==s?void 0:s[s.length-1])||void 0===i?void 0:i.end;return c||a}var l=e.skipTrivia(t.text,a,!0);return l===a||o!==u.Include&&!e.isLineBreak(t.text.charCodeAt(l-1))?a:l}function m(e,t){return!!t&&!!e.parent&&(27===t.kind||26===t.kind&&200===e.parent.kind)}!function(e){e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",e[e.Text=3]="Text"}(d||(d={})),t.isThisTypeAnnotatable=function(t){return e.isFunctionExpression(t)||e.isFunctionDeclaration(t)};var y,v,h=function(){function t(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new e.Map,this.deletedNodes=[]}return t.fromContext=function(r){return new t(e.getNewLineOrDefaultFromHost(r.host,r.formatContext.options),r.formatContext)},t.with=function(e,r){var n=t.fromContext(e);return r(n),n.getChanges()},t.prototype.pushRaw=function(t,r){e.Debug.assertEqual(t.fileName,r.fileName);for(var n=0,i=r.textChanges;n=t.getLineAndCharacterOfPosition(u.range.end).line+2)break}if(t.statements.length)if(void 0===l&&(l=t.getLineAndCharacterOfPosition(t.statements[0].getStart()).line),l",joiner:", "})},t.prototype.getOptionsForInsertNodeBefore=function(t,r,n){return e.isStatement(t)||e.isClassElement(t)?{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(t)?{suffix:", "}:e.isParameter(t)?e.isParameter(r)?{suffix:", "}:{}:e.isStringLiteral(t)&&e.isImportDeclaration(t.parent)||e.isNamedImports(t)?{suffix:", "}:e.isImportSpecifier(t)?{suffix:","+(n?this.newLineCharacter:" ")}:e.Debug.failBadSyntaxKind(t)},t.prototype.insertNodeAtConstructorStart=function(t,n,i){var a=e.firstOrUndefined(n.body.statements);a&&n.body.multiLine?this.insertNodeBefore(t,a,i):this.replaceConstructorBody(t,n,r([i],n.body.statements))},t.prototype.insertNodeAtConstructorEnd=function(t,n,i){var a=e.lastOrUndefined(n.body.statements);a&&n.body.multiLine?this.insertNodeAfter(t,a,i):this.replaceConstructorBody(t,n,r(n.body.statements,[i]))},t.prototype.replaceConstructorBody=function(t,r,n){this.replaceNode(t,r.body,e.factory.createBlock(n,!0))},t.prototype.insertNodeAtEndOfScope=function(t,r,n){var i=f(t,r.getLastToken(),{});this.insertNodeAt(t,i,n,{prefix:e.isLineBreak(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},t.prototype.insertNodeAtClassStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},t.prototype.insertNodeAtObjectStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},t.prototype.insertNodeAtStartWorker=function(e,t,r){var n,i=null!==(n=this.guessIndentationFromExistingMembers(e,t))&&void 0!==n?n:this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,x(t).pos,r,this.getInsertNodeAtStartInsertOptions(e,t,i))},t.prototype.guessIndentationFromExistingMembers=function(t,r){for(var n,i=r,a=0,o=x(r);a=0;n--){var i=r[n],a=i.span,o=i.newText;t=""+t.substring(0,a.start)+o+t.substring(e.textSpanEnd(a))}return t}function S(t){var r=e.visitEachChild(t,S,e.nullTransformationContext,E,S),n=e.nodeIsSynthesized(r)?r:Object.create(r);return e.setTextRangePosEnd(n,i(t),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.factory.createNodeArray(c.slice(0)):c;return e.setTextRangePosEnd(u,i(t),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 T(e,t,r,n){void 0===n&&(n={leadingTriviaOption:c.IncludeAll});var i=f(t,r,n),a=g(t,r,n);e.deleteRange(t,{pos:i,end:a})}function k(t,r,n,i){var a=e.Debug.checkDefined(e.formatting.SmartIndenter.getContainingList(i,n)),o=e.indexOfNode(a,i);e.Debug.assert(-1!==o),1!==a.length?(e.Debug.assert(!r.has(i),"Deleting a node twice"),r.add(i),t.deleteRange(n,{pos:D(n,i),end:o===a.length-1?g(n,i,{}):D(n,a[o+1])})):T(t,n,i)}t.ChangeTracker=h,t.getNewFileText=function(e,t,r,n){return y.newFileChangesWorker(void 0,t,e,r,n)},function(t){function r(t,r,n,a,o){var s=n.map((function(e){return 4===e?"":i(e,t,a).text})).join(a),c=e.createSourceFile("any file name",s,99,!0,r);return b(s,e.formatting.formatDocument(c,o))+a}function i(t,r,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}}function o(e){n.write(e),i(e,!1)}function c(e){n.writeComment(e)}function u(e){n.writeKeyword(e),i(e,!1)}function l(e){n.writeOperator(e),i(e,!1)}function d(e){n.writePunctuation(e),i(e,!1)}function _(e){n.writeTrailingSemicolon(e),i(e,!1)}function p(e){n.writeParameter(e),i(e,!1)}function f(e){n.writeProperty(e),i(e,!1)}function g(e){n.writeSpace(e),i(e,!1)}function m(e){n.writeStringLiteral(e),i(e,!1)}function y(e,t){n.writeSymbol(e,t),i(e,!1)}function v(e){n.writeLine(e)}function h(){n.increaseIndent()}function D(){n.decreaseIndent()}function x(){return n.getText()}function b(e){n.rawWrite(e),i(e,!1)}function S(e){n.writeLiteral(e),i(e,!0)}function E(){return n.getTextPos()}function C(){return n.getLine()}function T(){return n.getColumn()}function k(){return n.getIndent()}function A(){return n.isAtStartOfLine()}function F(){n.clear(),r=0}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:o,writeComment:c,writeKeyword:u,writeOperator:l,writePunctuation:d,writeTrailingSemicolon:_,writeParameter:p,writeProperty:f,writeSpace:g,writeStringLiteral:m,writeSymbol:y,writeLine:v,increaseIndent:h,decreaseIndent:D,getText:x,rawWrite:b,writeLiteral:S,getTextPos:E,getLine:C,getColumn:T,getIndent:k,isAtStartOfLine:A,hasTrailingComment:function(){return n.hasTrailingComment()},hasTrailingWhitespace:function(){return n.hasTrailingWhitespace()},clear:F}}(n),o="\n"===n?1:0;return e.createPrinter({newLine:o,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},i).writeNode(4,t,r,i),{text:i.getText(),node:S(t)}}t.getTextChangesFromChanges=function(t,r,a,o){return e.mapDefined(e.group(t,(function(e){return e.sourceFile.path})),(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;l0?{fileName:s.fileName,textChanges:_}:void 0}))},t.newFileChanges=function(t,n,i,a,o){var s=r(t,e.getScriptKindFromFileName(n),i,a,o);return{fileName:n,textChanges:[e.createTextChange(e.createTextSpan(0,0),s)],isNewFile:!0}},t.newFileChangesWorker=r,t.getNonformattedText=i}(y||(y={})),t.applyChanges=b,t.isValidLocationToAddComment=C,function(t){function r(t,r,n){if(n.parent.name){var i=e.Debug.checkDefined(e.getTokenAtPosition(r,n.pos-1));t.deleteRange(r,{pos:i.getStart(r),end:n.end})}else{T(t,r,e.getAncestor(n,261))}}t.deleteDeclaration=function(t,n,i,a){switch(a.kind){case 160:var o=a.parent;e.isArrowFunction(o)&&1===o.parameters.length&&!e.findChildOfKind(o,20,i)?t.replaceNodeWithText(i,a,"()"):k(t,n,i,a);break;case 261:case 260:T(t,i,a,{leadingTriviaOption:i.imports.length&&a===e.first(i.imports).parent||a===e.find(i.statements,e.isAnyImportSyntax)?c.Exclude:e.hasJSDocNodes(a)?c.JSDoc:c.StartLine});break;case 198:var s=a.parent;197===s.kind&&a!==e.last(s.elements)?T(t,i,a):k(t,n,i,a);break;case 249:!function(t,r,n,i){var a=i.parent;if(287===a.kind)return void t.deleteNodeRange(n,e.findChildOfKind(a,20,n),e.findChildOfKind(a,21,n));if(1!==a.declarations.length)return void k(t,r,n,i);var o=a.parent;switch(o.kind){case 239:case 238:t.replaceNode(n,i,e.factory.createObjectLiteralExpression());break;case 237:T(t,n,a);break;case 232:T(t,n,o,{leadingTriviaOption:e.hasJSDocNodes(o)?c.JSDoc:c.StartLine});break;default:e.Debug.assertNever(o)}}(t,n,i,a);break;case 159:k(t,n,i,a);break;case 265:var l=a.parent;1===l.elements.length?r(t,i,l):k(t,n,i,a);break;case 263:r(t,i,a);break;case 26:T(t,i,a,{trailingTriviaOption:u.Exclude});break;case 97:T(t,i,a,{leadingTriviaOption:c.Exclude});break;case 252:case 251:T(t,i,a,{leadingTriviaOption:e.hasJSDocNodes(a)?c.JSDoc:c.StartLine});break;default:e.isImportClause(a.parent)&&a.parent.name===a?function(t,r,n){if(n.namedBindings){var i=n.name.getStart(r),a=e.getTokenAtPosition(r,n.name.end);if(a&&27===a.kind){var o=e.skipTrivia(r.text,a.end,!1,!0);t.deleteRange(r,{pos:i,end:o})}else T(t,r,n.name)}else T(t,r,n.parent)}(t,i,a.parent):e.isCallExpression(a.parent)&&e.contains(a.parent.arguments,a)?k(t,n,i,a):T(t,i,a)}}}(v||(v={})),t.deleteNode=T}(e.textChanges||(e.textChanges={}))}(u||(u={})),function(e){!function(t){var i=e.createMultiMap(),a=new e.Map;function o(t){return e.isArray(t)?e.formatStringFromArgs(e.getLocaleSpecificMessage(t[0]),t.slice(1)):e.getLocaleSpecificMessage(t)}function c(e,t,r,n,i,a){return{fixName:e,description:t,changes:r,fixId:n,fixAllDescription:i,commands:a?[a]:void 0}}function u(e,t){return{changes:e,commands:t}}function l(t,r,n){for(var i=0,a=d(t);i1)break}var l=a<2;return function(e){var t=e.fixId,r=e.fixAllDescription,i=s(e,["fixId","fixAllDescription"]);return l?i:n(n({},i),{fixId:t,fixAllDescription:r})}}(i,r))}))},t.getAllFixes=function(t){return a.get(e.cast(t.fixId,e.isString)).getAllCodeActions(t)},t.createCombinedCodeActions=u,t.createFileTextChanges=function(e,t){return{fileName:e,textChanges:t}},t.codeFixAll=function(t,r,n){var i=[];return u(e.textChanges.ChangeTracker.with(t,(function(e){return l(t,r,(function(t){return n(e,t,i)}))})),0===i.length?void 0:i)},t.eachDiagnostic=l}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){var t,r;t=e.refactor||(e.refactor={}),r=new e.Map,t.registerRefactor=function(e,t){r.set(e,t)},t.getApplicableRefactors=function(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)}}(u||(u={})),function(e){!function(t){var r="addConvertToUnknownForNonOverlappingTypes",n=[e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=e.Debug.checkDefined(e.findAncestor(i,(function(t){return e.isAsExpression(t)||e.isTypeAssertionExpression(t)})),"Expected to find an assertion expression"),o=e.isAsExpression(a)?e.factory.createAsExpression(a.expression,e.factory.createKeywordTypeNode(152)):e.factory.createTypeAssertion(e.factory.createKeywordTypeNode(152),a.expression);t.replaceNode(r,a.expression,o)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));return[t.createCodeFixAction(r,a,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,r,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t.start)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){t.registerCodeFix({errorCodes:[e.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(r){var n=r.sourceFile,i=e.textChanges.ChangeTracker.with(r,(function(t){var r=e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([]),void 0);t.insertNodeAtEndOfScope(n,n,r)}));return[t.createCodeFixActionWithoutFixAll("addEmptyExportDeclaration",i,e.Diagnostics.Add_export_to_make_this_file_into_a_module)]}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="addMissingAsync",n=[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_comparable_to_type_1.code];function i(n,i,a,o){var s=a((function(t){return function(t,r,n,i){if(i&&i.has(e.getNodeId(n)))return;null==i||i.add(e.getNodeId(n));var a=e.factory.updateModifiers(e.getSynthesizedDeepClone(n,!0),e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(256|e.getSyntacticModifierFlags(n))));t.replaceNode(r,n,a)}(t,n.sourceFile,i,o)}));return t.createCodeFixAction(r,s,e.Diagnostics.Add_async_modifier_to_containing_function,r,e.Diagnostics.Add_all_missing_async_modifiers)}function a(t,r){if(r){var n=e.getTokenAtPosition(t,r.start);return e.findAncestor(n,(function(n){return n.getStart(t)e.textSpanEnd(r)?"quit":(e.isArrowFunction(n)||e.isMethodDeclaration(n)||e.isFunctionExpression(n)||e.isFunctionDeclaration(n))&&e.textSpansEqual(r,e.createTextSpanFromNode(n,t))}))}}t.registerCodeFix({fixIds:[r],errorCodes:n,getCodeActions:function(t){var r=t.sourceFile,n=t.errorCode,o=t.cancellationToken,s=t.program,c=t.span,u=e.find(s.getDiagnosticsProducingTypeChecker().getDiagnostics(r,o),function(t,r){return function(n){var i=n.start,a=n.length,o=n.relatedInformation,s=n.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},t)&&s===r&&!!o&&e.some(o,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}))}}(c,n)),l=a(r,u&&u.relatedInformation&&e.find(u.relatedInformation,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})));if(l){return[i(t,l,(function(r){return e.textChanges.ChangeTracker.with(t,r)}))]}},getAllCodeActions:function(r){var o=r.sourceFile,s=new e.Set;return t.codeFixAll(r,n,(function(t,n){var c=n.relatedInformation&&e.find(n.relatedInformation,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})),u=a(o,c);if(u){return i(r,u,(function(e){return e(t),[]}),s)}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){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=r([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(r,n,i,a,s,c){var u=r.sourceFile,_=r.program,p=r.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];ae.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)&&(251===t.parent.kind||208===t.parent.kind||209===t.parent.kind||165===t.parent.kind)}))}function d(t,r,n,o,s,c){if(e.isBinaryExpression(s))for(var u=0,l=[s.left,s.right];u0)return[t.createCodeFixAction(r,a,e.Diagnostics.Add_const_to_unresolved_variable,r,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[r],getAllCodeActions:function(r){var a=new e.Set;return t.codeFixAll(r,n,(function(e,t){return i(e,t.file,t.start,r.program,a)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="addMissingDeclareProperty",n=[e.Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code];function i(t,r,n,i){var a=e.getTokenAtPosition(r,n);if(e.isIdentifier(a)){var o=a.parent;163!==o.kind||i&&!e.tryAddToSet(i,o)||t.insertModifierBefore(r,133,o)}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Prefix_with_declare,r,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[r],getAllCodeActions:function(r){var a=new e.Set;return t.codeFixAll(r,n,(function(e,t){return i(e,t.file,t.start,a)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="addMissingInvocationForDecorator",n=[e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=e.findAncestor(i,e.isDecorator);e.Debug.assert(!!a,"Expected position to be owned by a decorator.");var o=e.factory.createCallExpression(a.expression,void 0,void 0);t.replaceNode(r,a.expression,o)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));return[t.createCodeFixAction(r,a,e.Diagnostics.Call_decorator_expression,r,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t.start)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="addNameToNamelessParameter",n=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n);if(!e.isIdentifier(i))return e.Debug.fail("add-name-to-nameless-parameter operates on identifiers, but got a "+e.Debug.formatSyntaxKind(i.kind));var a=i.parent;if(!e.isParameter(a))return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(i.kind));var o=a.parent.parameters.indexOf(a);e.Debug.assert(!a.type,"Tried to add a parameter name to a parameter that already had one."),e.Debug.assert(o>-1,"Parameter not found in parent parameter list.");var s=e.factory.createParameterDeclaration(void 0,a.modifiers,a.dotDotDotToken,"arg"+o,a.questionToken,e.factory.createTypeReferenceNode(i,void 0),a.initializer);t.replaceNode(r,i,s)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));return[t.createCodeFixAction(r,a,e.Diagnostics.Add_parameter_name,r,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t.start)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="annotateWithTypeFromJSDoc",n=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.tryCast(e.isParameter(n.parent)?n.parent.parent:n.parent,a)}function a(t){return function(t){return e.isFunctionLikeDeclaration(t)||249===t.kind||162===t.kind||163===t.kind}(t)&&o(t)}function o(t){return e.isFunctionLikeDeclaration(t)?t.parameters.some(o)||!t.type&&!!e.getJSDocReturnType(t):!t.type&&!!e.getJSDocType(t)}function s(t,r,n){if(e.isFunctionLikeDeclaration(n)&&(e.getJSDocReturnType(n)||n.parameters.some((function(t){return!!e.getJSDocType(t)})))){if(!n.typeParameters){var i=e.getJSDocTypeParameterDeclarations(n);i.length&&t.insertTypeParameters(r,n,i)}var a=e.isArrowFunction(n)&&!e.findChildOfKind(n,20,r);a&&t.insertNodeBefore(r,e.first(n.parameters),e.factory.createToken(20));for(var o=0,s=n.parameters;o1?(t.delete(r,c),t.insertNodeAfter(r,l,u)):t.replaceNode(r,l,u)}}function d(n){var i=[];return n.members&&n.members.forEach((function(e,n){if("constructor"!==n){var a=s(e,void 0);a&&i.push.apply(i,a)}else t.delete(r,e.valueDeclaration.parent)})),n.exports&&n.exports.forEach((function(t){if("prototype"===t.name){var r=t.declarations[0];if(1===t.declarations.length&&e.isPropertyAccessExpression(r)&&e.isBinaryExpression(r.parent)&&62===r.parent.operatorToken.kind&&e.isObjectLiteralExpression(r.parent.right))(n=s(r.parent.right.symbol,void 0))&&i.push.apply(i,n)}else{var n;(n=s(t,[e.factory.createToken(123)]))&&i.push.apply(i,n)}})),i;function s(n,i){var s=[];if(!(8192&n.flags||4096&n.flags))return s;var c,u,l=n.valueDeclaration,d=l.parent,_=d.right;if(c=l,u=_,!(e.isPropertyAccessExpression(c)?o(c)||e.isFunctionLike(u):e.every(c.properties,(function(t){return!!(e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t)||e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)&&t.name||o(t))}))))return s;var p=d.parent&&233===d.parent.kind?d.parent:d;if(t.delete(r,p),!_)return s.push(e.factory.createPropertyDeclaration([],i,n.name,void 0,void 0,void 0)),s;if(e.isPropertyAccessExpression(l)&&(e.isFunctionExpression(_)||e.isArrowFunction(_)))return g(s,_,l.name);if(e.isObjectLiteralExpression(_))return e.flatMap(_.properties,(function(t){return e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t)?s.concat(t):e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)?g(s,t.initializer,t.name):o(t)?s:[]}));if(e.isSourceFileJS(r))return s;if(!e.isPropertyAccessExpression(l))return s;var f=e.factory.createPropertyDeclaration(void 0,i,l.name,void 0,void 0,_);return e.copyLeadingComments(d.parent,f,r),s.push(f),s;function g(t,n,o){return e.isFunctionExpression(n)?function(t,n,o){var s=e.concatenate(i,a(n,129)),c=e.factory.createMethodDeclaration(void 0,s,void 0,o,void 0,void 0,n.parameters,void 0,n.body);return e.copyLeadingComments(d,c,r),t.concat(c)}(t,n,o):function(t,n,o){var s,c=n.body;s=230===c.kind?c:e.factory.createBlock([e.factory.createReturnStatement(c)]);var u=e.concatenate(i,a(n,129)),l=e.factory.createMethodDeclaration(void 0,u,void 0,o,void 0,void 0,n.parameters,void 0,s);return e.copyLeadingComments(d,l,r),t.concat(l)}(t,n,o)}}}}function a(t,r){return e.filter(t.modifiers,(function(e){return e.kind===r}))}function o(t){return!!t.name&&!(!e.isIdentifier(t.name)||"constructor"!==t.name.text)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start,n.program.getTypeChecker())}));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={}))}(u||(u={})),function(e){!function(t){var n,i="convertToAsyncFunction",a=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],o=!0;function s(t,r,n,i,a){var o,s=e.getTokenAtPosition(r,n);if(o=e.isIdentifier(s)&&e.isVariableDeclaration(s.parent)&&s.parent.initializer&&e.isFunctionLikeDeclaration(s.parent.initializer)?s.parent.initializer:e.tryCast(e.getContainingFunction(e.getTokenAtPosition(r,n)),e.isFunctionLikeDeclaration)){var d,p,f=new e.Map,g=e.isInJSFile(o),m=function(t,r){if(!t.body)return new e.Set;var n=new e.Set;return e.forEachChild(t.body,(function t(i){c(i,r,"then")?(n.add(e.getNodeId(i)),e.forEach(i.arguments,t)):c(i,r,"catch")?(n.add(e.getNodeId(i)),e.forEachChild(i,t)):u(i,r)?n.add(e.getNodeId(i)):e.forEachChild(i,t)})),n}(o,i),v=function(t,r,n,i){var a=new e.Map,o=e.createMultiMap();return e.forEachChild(t,(function t(s){if(e.isIdentifier(s)){var c=r.getSymbolAtLocation(s),u=c&&function(e,t){return e.valueDeclaration&&e.valueDeclaration.getSourceFile()===t}(c,i);if(c&&u){var d=y(r.getTypeAtLocation(s),r),_=e.getSymbolId(c).toString();if(!d||e.isParameter(s.parent)||e.isFunctionLikeDeclaration(s.parent)||n.has(_)){if(s.parent&&(e.isParameter(s.parent)||e.isVariableDeclaration(s.parent)||e.isBindingElement(s.parent))){var p=s.text,f=o.get(p);if(f&&f.some((function(e){return e!==c}))){var g=l(s,o);a.set(_,g.identifier),n.set(_,g),o.add(p,c)}else{var m=e.getSynthesizedDeepClone(s);n.set(_,b(m)),o.add(p,c)}}}else{var v=e.firstOrUndefined(d.parameters),h=v&&e.isParameter(v.valueDeclaration)&&e.tryCast(v.valueDeclaration.name,e.isIdentifier)||e.factory.createUniqueName("result",16),D=l(h,o);n.set(_,D),o.add(h.text,c)}}}else e.forEachChild(s,t)})),e.getSynthesizedDeepCloneWithReplacements(t,!0,(function(t){if(e.isBindingElement(t)&&e.isIdentifier(t.name)&&e.isObjectBindingPattern(t.parent)){if((i=(n=r.getSymbolAtLocation(t.name))&&a.get(String(e.getSymbolId(n))))&&i.text!==(t.name||t.propertyName).getText())return e.factory.createBindingElement(t.dotDotDotToken,t.propertyName||t.name,i,t.initializer)}else if(e.isIdentifier(t)){var n,i;if(i=(n=r.getSymbolAtLocation(t))&&a.get(String(e.getSymbolId(n))))return e.factory.createIdentifier(i.text)}}))}(o,i,f,a.sourceFile),h=v.body&&e.isBlock(v.body)?(d=v.body,p=[],e.forEachReturnStatement(d,(function(t){e.isReturnStatementWithFixablePromiseHandler(t)&&p.push(t)})),p):e.emptyArray,D={checker:i,synthNamesMap:f,setOfExpressionsToReturn:m,isInJSFile:g};if(h.length){t.insertLastModifierBefore(r,129,o);for(var x=function(n){e.forEachChild(n,(function i(a){if(e.isCallExpression(a)){var o=_(a,D);t.replaceNodeWithNodes(r,n,o)}else e.isFunctionLike(a)||e.forEachChild(a,i)}))},S=0,E=h;S0)return O;if(k){I=m(a.checker,k,T);if(E(i,a))return f(I,null===(_=i.typeArguments)||void 0===_?void 0:_[0]);var M=p(r,I,void 0);return r&&r.types.push(k),M}return d();default:return d()}return e.emptyArray}function m(t,r,n){var i=e.getSynthesizedDeepClone(n);return t.getPromisedTypeOfPromise(r)?e.factory.createAwaitExpression(i):i}function y(t,r){var n=r.getSignaturesOfType(t,0);return e.lastOrUndefined(n)}function v(t,r,n){for(var i=[],a=0,o=r;a0)return}else e.isFunctionLike(a)||e.forEachChild(a,r)}))}return i}function h(t,r){var n,i=[];e.isFunctionLikeDeclaration(t)?t.parameters.length>0&&(n=function t(r){if(e.isIdentifier(r))return a(r);var n=e.flatMap(r.elements,(function(r){return e.isOmittedExpression(r)?[]:[t(r.name)]}));return function(t,r,n){void 0===r&&(r=e.emptyArray);void 0===n&&(n=[]);return{kind:1,bindingPattern:t,elements:r,types:n}}(r,n)}(t.parameters[0].name)):e.isIdentifier(t)&&(n=a(t));if(n&&(!("identifier"in n)||"undefined"!==n.identifier.text))return n;function a(t){var n=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,i)}}function D(t){return!t||(S(t)?!t.identifier.text:e.every(t.elements,D))}function x(e){return S(e)?e.identifier:e.bindingPattern}function b(e,t){return void 0===t&&(t=[]),{kind:0,identifier:e,types:t,hasBeenDeclared:!1}}function S(e){return 0===e.kind}function E(t,r){return!!t.original&&r.setOfExpressionsToReturn.has(e.getNodeId(t.original))}t.registerCodeFix({errorCodes:a,getCodeActions:function(r){o=!0;var n=e.textChanges.ChangeTracker.with(r,(function(e){return s(e,r.sourceFile,r.span.start,r.program.getTypeChecker(),r)}));return o?[t.createCodeFixAction(i,n,e.Diagnostics.Convert_to_async_function,i,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[i],getAllCodeActions:function(e){return t.codeFixAll(e,a,(function(t,r){return s(t,r.file,r.start,e.program.getTypeChecker(),e)}))}}),function(e){e[e.Identifier=0]="Identifier",e[e.BindingPattern=1]="BindingPattern"}(n||(n={}))}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){function r(t,r,n,i){for(var a=0,o=t.imports;a1?[[o(n),s(n)],!0]:[[s(n)],!0]:[[o(n)],!1]}(d.arguments[0],r):void 0;return p?(i.replaceNodeWithNodes(t,n.parent,p[0]),p[1]):(i.replaceRangeWithText(t,e.createRange(l.getStart(t),d.pos),"export default"),!0)}i.delete(t,n.parent)}else e.isExportsOrModuleExportsOrAlias(t,l.expression)&&function(t,r,n,i){var a=r.left.name.text,o=i.get(a);if(void 0!==o){var s=[g(void 0,o,r.right),m([e.factory.createExportSpecifier(o,a)])];n.replaceNodeWithNodes(t,r.parent,s)}else!function(t,r,n){var i=t.left,a=t.right,o=t.parent,s=i.name.text;if(!(e.isFunctionExpression(a)||e.isArrowFunction(a)||e.isClassExpression(a))||a.name&&a.name.text!==s)n.replaceNodeRangeWithNodes(r,i.expression,e.findChildOfKind(i,24,r),[e.factory.createToken(92),e.factory.createToken(84)],{joiner:" ",suffix:" "});else{n.replaceRange(r,{pos:i.getStart(r),end:a.getStart(r)},e.factory.createToken(92),{suffix:" "}),a.name||n.insertName(r,a,s);var c=e.findChildOfKind(o,26,r);c&&n.delete(r,c)}}(r,t,n)}(t,n,i,a);return!1}(t,n,y,i,d,p)}default:return!1}}function a(r,n,i,a,o,s,c){var l,d=n.declarationList,_=!1,m=e.map(d.declarations,(function(n){var i=n.name,l=n.initializer;if(l){if(e.isExportsOrModuleExportsOrAlias(r,l))return _=!0,y([]);if(e.isRequireCall(l,!0))return _=!0,function(r,n,i,a,o,s){switch(r.kind){case 196:var c=e.mapAllOrFail(r.elements,(function(t){return t.dotDotDotToken||t.initializer||t.propertyName&&!e.isIdentifier(t.propertyName)||!e.isIdentifier(t.name)?void 0:f(t.propertyName&&t.propertyName.text,t.name.text)}));if(c)return y([e.makeImport(void 0,c,n,s)]);case 197:var l=u(t.moduleSpecifierToValidIdentifier(n.text,o),a);return y([e.makeImport(e.factory.createIdentifier(l),void 0,n,s),g(void 0,e.getSynthesizedDeepClone(r),e.factory.createIdentifier(l))]);case 78:return function(t,r,n,i,a){for(var o,s=n.getSymbolAtLocation(t),c=new e.Map,l=!1,d=0,_=i.original.get(t.text);d<_.length;d++){var p=_[d];if(n.getSymbolAtLocation(p)===s&&p!==t){var f=p.parent;if(e.isPropertyAccessExpression(f)){var g=f.expression,m=f.name.text;e.Debug.assert(g===p,"Didn't expect expression === use");var v=c.get(m);void 0===v&&(v=u(m,i),c.set(m,v)),(null!=o?o:o=new e.Map).set(f,e.factory.createIdentifier(v))}else l=!0}}var h=0===c.size?void 0:e.arrayFrom(e.mapIterator(c.entries(),(function(t){var r=t[0],n=t[1];return e.factory.createImportSpecifier(r===n?void 0:e.factory.createIdentifier(r),e.factory.createIdentifier(n))})));h||(l=!0);return y([e.makeImport(l?e.getSynthesizedDeepClone(t):void 0,h,r,a)],o)}(r,n,i,a,s);default:return e.Debug.assertNever(r,"Convert to ES6 module got invalid name kind "+r.kind)}}(i,l.arguments[0],a,o,s,c);if(e.isPropertyAccessExpression(l)&&e.isRequireCall(l.expression,!0))return _=!0,function(t,r,n,i,a){switch(t.kind){case 196:case 197:var o=u(r,i);return y([p(o,r,n,a),g(void 0,t,e.factory.createIdentifier(o))]);case 78:return y([p(t.text,r,n,a)]);default:return e.Debug.assertNever(t,"Convert to ES6 module got invalid syntax form "+t.kind)}}(i,l.name.text,l.expression.arguments[0],o,c)}return y([e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([n],d.flags))])}));if(_)return i.replaceNodeWithNodes(r,n,e.flatMap(m,(function(e){return e.newImports}))),e.forEach(m,(function(t){t.useSitesToUnqualify&&e.copyEntries(t.useSitesToUnqualify,null!=l?l:l=new e.Map)})),l}function o(e){return m(void 0,e)}function s(t){return m([e.factory.createExportSpecifier(void 0,"default")],t)}function c(t,r){return r&&e.some(e.arrayFrom(r.keys()),(function(r){return e.rangeContainsRange(t,r)}))?e.isArray(t)?e.getSynthesizedDeepClonesWithReplacements(t,!0,n):e.getSynthesizedDeepCloneWithReplacements(t,!0,n):t;function n(e){if(201===e.kind){var t=r.get(e);return r.delete(e),t}}}function u(e,t){for(;t.original.has(e)||t.additional.has(e);)e="_"+e;return t.additional.add(e),e}function l(t){var r=e.createMultiMap();return d(t,(function(e){return r.add(e.text,e)})),r}function d(t,r){e.isIdentifier(t)&&function(e){var t=e.parent;switch(t.kind){case 201:return t.name!==e;case 198:case 265:return t.propertyName!==e;default:return!0}}(t)&&r(t),t.forEachChild((function(e){return d(e,r)}))}function _(t,r,n,i){return e.factory.createFunctionDeclaration(e.getSynthesizedDeepClones(n.decorators),e.concatenate(r,e.getSynthesizedDeepClones(n.modifiers)),e.getSynthesizedDeepClone(n.asteriskToken),t,e.getSynthesizedDeepClones(n.typeParameters),e.getSynthesizedDeepClones(n.parameters),e.getSynthesizedDeepClone(n.type),e.factory.converters.convertToFunctionBlock(c(n.body,i)))}function p(t,r,n,i){return"default"===r?e.makeImport(e.factory.createIdentifier(t),void 0,n,i):e.makeImport(void 0,[f(r,t)],n,i)}function f(t,r){return e.factory.createImportSpecifier(void 0!==t&&t!==r?e.factory.createIdentifier(t):void 0,e.factory.createIdentifier(r))}function g(t,r,n){return e.factory.createVariableStatement(t,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(r,void 0,void 0,n)],2))}function m(t,r){return e.factory.createExportDeclaration(void 0,void 0,!1,t&&e.factory.createNamedExports(t),void 0===r?void 0:e.factory.createStringLiteral(r))}function y(e,t){return{newImports:e,useSitesToUnqualify:t}}t.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code],getCodeActions:function(o){var s=o.sourceFile,c=o.program,d=o.preferences,_=e.textChanges.ChangeTracker.with(o,(function(t){if(function(t,r,o,s,c){var d={original:l(t),additional:new e.Set},_=function(t,r,i){var a=new e.Map;return n(t,(function(t){var n=t.name,o=n.text,s=n.originalKeywordKind;!a.has(o)&&(void 0!==s&&e.isNonContextualKeyword(s)||r.resolveName(o,t,111551,!0))&&a.set(o,u("_"+o,i))})),a}(t,r,d);!function(t,r,i){n(t,(function(n,a){if(!a){var o=n.name.text;i.replaceNode(t,n,e.factory.createIdentifier(r.get(o)||o))}}))}(t,_,o);for(var p,f=!1,g=0,m=e.filter(t.statements,e.isVariableStatement);g=e.ModuleKind.ES2015)return n?1:2;if(e.isInJSFile(t))return e.isExternalModule(t)?1:3;for(var i=0,a=t.statements;i"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,c?c.text:e.ANONYMOUS]}return t.replaceNode(r,s,e.factory.createToken(84)),t.insertText(r,c.end," = "),t.insertText(r,u.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,c.text]}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a,o=n.sourceFile,s=n.program,c=n.span,u=e.textChanges.ChangeTracker.with(n,(function(e){a=i(e,o,c.start,s.getTypeChecker())}));return a?[t.createCodeFixAction(r,u,a,r,e.Diagnostics.Fix_all_implicit_this_errors)]:e.emptyArray},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){i(t,r.file,r.start,e.program.getTypeChecker())}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixIncorrectNamedTupleSyntax",n=[e.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile,a=n.span,o=function(t,r){var n=e.getTokenAtPosition(t,r);return e.findAncestor(n,(function(e){return 192===e.kind}))}(i,a.start),s=e.textChanges.ChangeTracker.with(n,(function(t){return function(t,r,n){if(!n)return;var i=n.type,a=!1,o=!1;for(;180===i.kind||181===i.kind||186===i.kind;)180===i.kind?a=!0:181===i.kind&&(o=!0),i=i.type;var s=e.factory.updateNamedTupleMember(n,n.dotDotDotToken||(o?e.factory.createToken(25):void 0),n.name,n.questionToken||(a?e.factory.createToken(57):void 0),i);if(s===n)return;t.replaceNode(r,n,s)}(t,i,o)}));return[t.createCodeFixAction(r,s,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,r,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[r]})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixSpelling",n=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2.code,e.Diagnostics.No_overload_matches_this_call.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code];function i(t,r,n,i){var a=e.getTokenAtPosition(t,r),o=a.parent;if(i!==e.Diagnostics.No_overload_matches_this_call.code&&i!==e.Diagnostics.Type_0_is_not_assignable_to_type_1.code||e.isJsxAttribute(o)){var s,c=n.program.getTypeChecker();if(e.isPropertyAccessExpression(o)&&o.name===a){e.Debug.assert(e.isIdentifierOrPrivateIdentifier(a),"Expected an identifier for spelling (property access)");var u=c.getTypeAtLocation(o.expression);32&o.flags&&(u=c.getNonNullableType(u)),s=c.getSuggestedSymbolForNonexistentProperty(a,u)}else if(e.isQualifiedName(o)&&o.right===a){var l=c.getSymbolAtLocation(o.left);l&&1536&l.flags&&(s=c.getSuggestedSymbolForNonexistentModule(o.right,l))}else if(e.isImportSpecifier(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for spelling (import)");var d=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));d&&d.symbol&&(s=c.getSuggestedSymbolForNonexistentModule(a,d.symbol))}else if(e.isJsxAttribute(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for JSX attribute");var _=e.findAncestor(a,e.isJsxOpeningLikeElement),p=c.getContextualTypeForArgumentAtIndex(_,0);s=c.getSuggestedSymbolForNonexistentJSXAttribute(a,p)}else{var f=e.getMeaningFromLocation(a),g=e.getTextOfNode(a);e.Debug.assert(void 0!==g,"name should be defined"),s=c.getSuggestedSymbolForNonexistentSymbol(a,g,function(e){var t=0;4&e&&(t|=1920);2&e&&(t|=788968);1&e&&(t|=111551);return t}(f))}return void 0===s?void 0:{node:a,suggestedSymbol:s}}}function a(t,r,n,i,a){var o=e.symbolName(i);if(!e.isIdentifierText(o,a)&&e.isPropertyAccessExpression(n.parent)){var s=i.valueDeclaration;e.isNamedDeclaration(s)&&e.isPrivateIdentifier(s.name)?t.replaceNode(r,n,e.factory.createIdentifier(o)):t.replaceNode(r,n.parent,e.factory.createElementAccessExpression(n.parent.expression,e.factory.createStringLiteral(o)))}else t.replaceNode(r,n,e.factory.createIdentifier(o))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.errorCode,c=i(o,n.span.start,n,s);if(c){var u=c.node,l=c.suggestedSymbol,d=n.host.getCompilationSettings().target,_=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,u,l,d)}));return[t.createCodeFixAction("spelling",_,[e.Diagnostics.Change_spelling_to_0,e.symbolName(l)],r,e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=i(r.file,r.start,e,r.code),o=e.host.getCompilationSettings().target;n&&a(t,e.sourceFile,n.node,n.suggestedSymbol,o)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r,n="returnValueCorrect",i="fixAddReturnStatement",a="fixRemoveBracesFromArrowFunctionBody",o="fixWrapTheBlockWithParen",s=[e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];function c(t,r,n){var i=t.createSymbol(4,r.escapedText);i.type=t.getTypeAtLocation(n);var a=e.createSymbolTable([i]);return t.createAnonymousType(void 0,a,[],[],void 0,void 0)}function u(t,n,i,a){if(n.body&&e.isBlock(n.body)&&1===e.length(n.body.statements)){var o=e.first(n.body.statements);if(e.isExpressionStatement(o)&&l(t,n,t.getTypeAtLocation(o.expression),i,a))return{declaration:n,kind:r.MissingReturnStatement,expression:o.expression,statement:o,commentSource:o.expression};if(e.isLabeledStatement(o)&&e.isExpressionStatement(o.statement)){var s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(o.label,o.statement.expression)]);if(l(t,n,c(t,o.label,o.statement.expression),i,a))return e.isArrowFunction(n)?{declaration:n,kind:r.MissingParentheses,expression:s,statement:o,commentSource:o.statement.expression}:{declaration:n,kind:r.MissingReturnStatement,expression:s,statement:o,commentSource:o.statement.expression}}else if(e.isBlock(o)&&1===e.length(o.statements)){var u=e.first(o.statements);if(e.isLabeledStatement(u)&&e.isExpressionStatement(u.statement)){s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(u.label,u.statement.expression)]);if(l(t,n,c(t,u.label,u.statement.expression),i,a))return{declaration:n,kind:r.MissingReturnStatement,expression:s,statement:o,commentSource:u}}}}}function l(t,r,n,i,a){if(a){var o=t.getSignatureFromDeclaration(r);if(o){e.hasSyntacticModifier(r,256)&&(n=t.createPromiseType(n));var s=t.createSignature(r,o.typeParameters,o.thisParameter,o.parameters,n,void 0,o.minArgumentCount,o.flags);n=t.createAnonymousType(void 0,e.createSymbolTable(),[s],[],void 0,void 0)}else n=t.getAnyType()}return t.isTypeAssignableTo(n,i)}function d(t,r,n,i){var a=e.getTokenAtPosition(r,n);if(a.parent){var o=e.findAncestor(a.parent,e.isFunctionLikeDeclaration);switch(i){case e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:if(!(o&&o.body&&o.type&&e.rangeContainsRange(o.type,a)))return;return u(t,o,t.getTypeFromTypeNode(o.type),!1);case e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!e.isCallExpression(o.parent)||!o.body)return;var s=o.parent.arguments.indexOf(o),c=t.getContextualTypeForArgumentAtIndex(o.parent,s);if(!c)return;return u(t,o,c,!0);case e.Diagnostics.Type_0_is_not_assignable_to_type_1.code:if(!e.isDeclarationName(a)||!e.isVariableLike(a.parent)&&!e.isJsxAttribute(a.parent))return;var l=function(t){switch(t.kind){case 249:case 160:case 198:case 163:case 288:return t.initializer;case 280:return t.initializer&&(e.isJsxExpression(t.initializer)?t.initializer.expression:void 0);case 289:case 162:case 291:case 333:case 326:return}}(a.parent);if(!l||!e.isFunctionLikeDeclaration(l)||!l.body)return;return u(t,l,t.getTypeAtLocation(a.parent),!0)}}}function _(t,r,n,i){e.suppressLeadingAndTrailingTrivia(n);var a=e.probablyUsesSemicolons(r);t.replaceNode(r,i,e.factory.createReturnStatement(n),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:a?";":void 0})}function p(t,r,n,i,a,o){var s=o||e.needsParentheses(i)?e.factory.createParenthesizedExpression(i):i;e.suppressLeadingAndTrailingTrivia(a),e.copyComments(a,s),t.replaceNode(r,n.body,s)}function f(t,r,n,i){t.replaceNode(r,n.body,e.factory.createParenthesizedExpression(i))}function g(r,a,o){var s=e.textChanges.ChangeTracker.with(r,(function(e){return _(e,r.sourceFile,a,o)}));return t.createCodeFixAction(n,s,e.Diagnostics.Add_a_return_statement,i,e.Diagnostics.Add_all_missing_return_statement)}function m(r,i,a){var s=e.textChanges.ChangeTracker.with(r,(function(e){return f(e,r.sourceFile,i,a)}));return t.createCodeFixAction(n,s,e.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,o,e.Diagnostics.Wrap_all_object_literal_with_parentheses)}!function(e){e[e.MissingReturnStatement=0]="MissingReturnStatement",e[e.MissingParentheses=1]="MissingParentheses"}(r||(r={})),t.registerCodeFix({errorCodes:s,fixIds:[i,a,o],getCodeActions:function(i){var o=i.program,s=i.sourceFile,c=i.span.start,u=i.errorCode,l=d(o.getTypeChecker(),s,c,u);if(l)return l.kind===r.MissingReturnStatement?e.append([g(i,l.expression,l.statement)],e.isArrowFunction(l.declaration)?function(r,i,o,s){var c=e.textChanges.ChangeTracker.with(r,(function(e){return p(e,r.sourceFile,i,o,s,!1)}));return t.createCodeFixAction(n,c,e.Diagnostics.Remove_braces_from_arrow_function_body,a,e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(i,l.declaration,l.expression,l.commentSource):void 0):[m(i,l.declaration,l.expression)]},getAllCodeActions:function(r){return t.codeFixAll(r,s,(function(t,n){var s=d(r.program.getTypeChecker(),n.file,n.start,n.code);if(s)switch(r.fixId){case i:_(t,n.file,s.expression,s.statement);break;case a:if(!e.isArrowFunction(s.declaration))return;p(t,n.file,s.declaration,s.expression,s.commentSource,!1);break;case o:if(!e.isArrowFunction(s.declaration))return;f(t,n.file,s.declaration,s.expression);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r,n="addMissingMember",i=[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code],a="addMissingMember";function o(t,r,n,i){var a=e.getTokenAtPosition(t,r);if(e.isIdentifier(a)||e.isPrivateIdentifier(a)){var o=a.parent;if(e.isPropertyAccessExpression(o)){var s=e.skipConstraint(n.getTypeAtLocation(o.expression)),c=s.symbol;if(c&&c.declarations){var u=e.find(c.declarations,e.isClassLike);if(u||!e.isPrivateIdentifier(a)){var l=u||e.find(c.declarations,e.isInterfaceDeclaration);if(l&&!i.isSourceFileFromExternalLibrary(l.getSourceFile())){var d=(s.target||s)!==n.getDeclaredTypeOfSymbol(c);if(d&&(e.isPrivateIdentifier(a)||e.isInterfaceDeclaration(l)))return;var _=l.getSourceFile(),p=(d?32:0)|(e.startsWithUnderscore(a.text)?8:0),f=e.isSourceFileJS(_);return{kind:1,token:a,call:e.tryCast(o.parent,e.isCallExpression),modifierFlags:p,parentDeclaration:l,declSourceFile:_,isJSFile:f}}var g=e.find(c.declarations,e.isEnumDeclaration);return!g||e.isPrivateIdentifier(a)||i.isSourceFileFromExternalLibrary(g.getSourceFile())?void 0:{kind:0,token:a,parentDeclaration:g}}}}}}function s(t,r,n,i,a){var o=i.text;if(a){if(221===n.kind)return;var s=n.name.getText(),u=c(e.factory.createIdentifier(s),o);t.insertNodeAfter(r,n,u)}else if(e.isPrivateIdentifier(i)){var l=e.factory.createPropertyDeclaration(void 0,void 0,o,void 0,void 0,void 0),_=d(n);_?t.insertNodeAfter(r,_,l):t.insertNodeAtClassStart(r,n,l)}else{var p=e.getFirstConstructorWithBody(n);if(!p)return;var f=c(e.factory.createThis(),o);t.insertNodeAtConstructorEnd(r,p,f)}}function c(t,r){return e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createPropertyAccessExpression(t,r),e.factory.createIdentifier("undefined")))}function u(t,r,n){var i;if(216===n.parent.parent.kind){var a=n.parent.parent,o=n.parent===a.left?a.right:a.left,s=t.getWidenedType(t.getBaseTypeOfLiteralType(t.getTypeAtLocation(o)));i=t.typeToTypeNode(s,r,void 0)}else{var c=t.getContextualType(n.parent);i=c?t.typeToTypeNode(c,void 0,void 0):void 0}return i||e.factory.createKeywordTypeNode(128)}function l(t,r,n,i,a,o){var s=e.factory.createPropertyDeclaration(void 0,o?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(o)):void 0,i,void 0,a,void 0),c=d(n);c?t.insertNodeAfter(r,c,s):t.insertNodeAtClassStart(r,n,s)}function d(t){for(var r,n=0,i=t.members;n=e.ModuleKind.ES2015&&o99){s=e.textChanges.ChangeTracker.with(r,(function(r){if(e.getTsConfigObjectLiteralExpression(i)){var n=[["target",e.factory.createStringLiteral("es2017")]];o===e.ModuleKind.CommonJS&&n.push(["module",e.factory.createStringLiteral("commonjs")]),t.setJsonCompilerOptionValues(r,i,n)}}));a.push(t.createCodeFixActionWithoutFixAll("fixTargetOption",s,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return a.length?a:void 0}}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixPropertyAssignment",n=[e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];function i(t,r,n){t.replaceNode(r,n,e.factory.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function a(t,r){return e.cast(e.getTokenAtPosition(t,r).parent,e.isShorthandPropertyAssignment)}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var o=a(n.sourceFile,n.span.start),s=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,o)}));return[t.createCodeFixAction(r,s,[e.Diagnostics.Change_0_to_1,"=",":"],r,[e.Diagnostics.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,a(t.file,t.start))}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="extendsInterfaceBecomesImplements",n=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function i(t,r){var n=e.getTokenAtPosition(t,r),i=e.getContainingClass(n).heritageClauses,a=i[0].getFirstToken();return 93===a.kind?{extendsToken:a,heritageClauses:i}:void 0}function a(t,r,n,i){if(t.replaceNode(r,n,e.factory.createToken(116)),2===i.length&&93===i[0].token&&116===i[1].token){var a=i[1].getFirstToken(),o=a.getFullStart();t.replaceRange(r,{pos:o,end:o},e.factory.createToken(27));for(var s=r.text,c=a.end;c":">","}":"}"};function o(t,r,n,i,o){var s=n.getText()[i];if(function(t){return e.hasProperty(a,t)}(s)){var c=o?a[s]:"{"+e.quote(n,r,s)+"}";t.replaceRangeWithText(n,{pos:i,end:i+1},c)}}}(e.codefix||(e.codefix={}))}(u||(u={})),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.factory.createKeywordTypeNode(152))}function c(n,a){return t.createCodeFixAction(r,n,a,i,e.Diagnostics.Delete_all_unused_declarations)}function u(t,r,n){t.delete(r,e.Debug.checkDefined(e.cast(n.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function l(t){return 99===t.kind?e.tryCast(t.parent,e.isImportDeclaration):void 0}function d(t,r){return e.isVariableDeclarationList(r.parent)&&e.first(r.parent.getChildren(t))===r}function _(e,t,r){e.delete(t,232===r.parent.kind?r.parent:r)}function p(t,r,n){e.forEach(n.elements,(function(e){return t.delete(r,e)}))}function f(t,r,n,i){r!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(135===i.kind&&(i=e.cast(i.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(i)&&function(e){switch(e.parent.kind){case 160:case 159:return!0;case 249:switch(e.parent.parent.parent.kind){case 239:case 238:return!0}}return!1}(i)&&(t.replaceNode(n,i,e.factory.createIdentifier("_"+i.text)),e.isParameter(i.parent)&&e.getJSDocParameterTags(i.parent).forEach((function(r){e.isIdentifier(r.name)&&t.replaceNode(n,r.name,e.factory.createIdentifier("_"+r.name.text))}))))}function g(t,r,n,i,a,o){!function(t,r,n,i,a,o){var s=t.parent;e.isParameter(s)?function(t,r,n,i,a,o){void 0===o&&(o=!1);(function(t,r,n,i){var a=n.parent;switch(a.kind){case 165:var o=t.getSymbolAtLocation(a.name);if(e.isMemberSymbolInBaseType(o,t))return!1;case 166:return!0;case 251:return!a.name||!function(t,r,n){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(n,t,r,(function(t){return e.isIdentifier(t)&&e.isCallExpression(t.parent)&&t.parent.arguments.indexOf(t)>=0}))}(t,r,a.name)||m(a,n,i);case 208:case 209:return m(a,n,i);case 168:return!1;default:return e.Debug.failBadSyntaxKind(a)}})(i,r,n,o)&&(n.modifiers&&n.modifiers.length>0&&(!e.isIdentifier(n.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(n.name,i,r))?n.modifiers.forEach((function(e){return t.deleteModifier(r,e)})):(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)))}(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){var i=t.parameters,a=i.indexOf(r);return e.Debug.assert(-1!==a,"The parameter should already be in the list"),n?i.slice(a+1).every((function(t){return e.isIdentifier(t.name)&&!t.symbol.isReferenced})):a===i.length-1}t.registerCodeFix({errorCodes:o,getCodeActions:function(i){var o=i.errorCode,m=i.sourceFile,y=i.program,v=y.getTypeChecker(),h=y.getSourceFiles(),D=e.getTokenAtPosition(m,i.span.start);if(e.isJSDocTemplateTag(D))return[c(e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(m,D)})),e.Diagnostics.Remove_template_tag)];if(29===D.kind)return[c(C=e.textChanges.ChangeTracker.with(i,(function(e){return u(e,m,D)})),e.Diagnostics.Remove_type_parameters)];var x=l(D);if(x)return[c(C=e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(m,x)})),[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(x)])];if(e.isObjectBindingPattern(D.parent)){if(e.isParameter(D.parent.parent)){var b=D.parent.elements,S=[b.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(b,(function(e){return e.getText(m)})).join(", ")];return[c(e.textChanges.ChangeTracker.with(i,(function(e){return p(e,m,D.parent)})),S)]}return[c(e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(m,D.parent.parent)})),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(d(m,D))return[c(e.textChanges.ChangeTracker.with(i,(function(e){return _(e,m,D.parent)})),e.Diagnostics.Remove_variable_statement)];var E=[];if(135===D.kind){var C=e.textChanges.ChangeTracker.with(i,(function(e){return s(e,m,D)})),T=e.cast(D.parent,e.isInferTypeNode).typeParameter.name.text;E.push(t.createCodeFixAction(r,C,[e.Diagnostics.Replace_infer_0_with_unknown,T],a,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var k=e.textChanges.ChangeTracker.with(i,(function(e){return g(m,D,e,v,h,!1)}));if(k.length){T=e.isComputedPropertyName(D.parent)?D.parent:D;E.push(c(k,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,T.getText(m)]))}}var A=e.textChanges.ChangeTracker.with(i,(function(e){return f(e,o,m,D)}));return A.length&&E.push(t.createCodeFixAction(r,A,[e.Diagnostics.Prefix_0_with_an_underscore,D.getText(m)],n,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),E},fixIds:[n,i,a],getAllCodeActions:function(r){var c=r.sourceFile,m=r.program,y=m.getTypeChecker(),v=m.getSourceFiles();return t.codeFixAll(r,o,(function(t,o){var m=e.getTokenAtPosition(c,o.start);switch(r.fixId){case n:f(t,o.code,c,m);break;case i:if(135===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):e.isObjectBindingPattern(m.parent)?e.isParameter(m.parent.parent)?p(t,c,m.parent):t.delete(c,m.parent.parent):d(c,m)?_(t,c,m.parent):g(c,m,t,y,v,!0);break;case a:135===m.kind&&s(t,c,m);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixUnreachableCode",n=[e.Diagnostics.Unreachable_code_detected.code];function i(t,r,n,i,a){var o=e.getTokenAtPosition(r,n),s=e.findAncestor(o,e.isStatement);if(s.getStart(r)!==o.getStart(r)){var c=JSON.stringify({statementKind:e.Debug.formatSyntaxKind(s.kind),tokenKind:e.Debug.formatSyntaxKind(o.kind),errorCode:a,start:n,length:i});e.Debug.fail("Token and statement should start at the same point. "+c)}var u=(e.isBlock(s.parent)?s.parent:s).parent;if(!e.isBlock(s.parent)||s===e.first(s.parent.statements))switch(u.kind){case 234:if(u.elseStatement){if(e.isBlock(s.parent))break;return void t.replaceNode(r,s,e.factory.createBlock(e.emptyArray))}case 236:case 237:return void t.delete(r,u)}if(e.isBlock(s.parent)){var l=n+i,d=e.Debug.checkDefined(function(e,t){for(var r,n=0,i=e;nM.length)B(S,f.getSignatureFromDeclaration(p[p.length-1]),h,y,o(S));else e.Debug.assert(p.length===M.length,"Declarations and signatures should match count"),d(function(t,r,n,i,s){for(var c=t[0],u=t[0].minArgumentCount,l=!1,d=0,_=t;d<_.length;d++){var p=_[d];u=Math.min(p.minArgumentCount,u),e.signatureHasRestParameter(p)&&(l=!0),p.parameters.length>=c.parameters.length&&(!e.signatureHasRestParameter(p)||e.signatureHasRestParameter(c))&&(c=p)}var f=c.parameters.length-(e.signatureHasRestParameter(c)?1:0),g=c.parameters.map((function(e){return e.name})),m=a(f,g,void 0,u,!1);if(l){var y=e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(128)),v=e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),g[f]||"rest",f>=u?e.factory.createToken(57):void 0,y,void 0);m.push(v)}return function(t,r,n,i,a,s,c){return e.factory.createMethodDeclaration(void 0,t,void 0,r,n?e.factory.createToken(57):void 0,i,a,s,o(c))}(i,r,n,void 0,m,void 0,s)}(M,y,x,h,S))}}function B(t,i,a,o,c){var p=function(t,n,i,a,o,s,c,u,d){var p=t.program,f=p.getTypeChecker(),g=e.getEmitScriptTarget(p.getCompilerOptions()),m=1073742081|(0===n?268435456:0),y=f.signatureToSignatureDeclaration(i,165,a,m,r(t));if(!y)return;var v=y.typeParameters,h=y.parameters,D=y.type;if(d){if(v){var x=e.sameMap(v,(function(t){var r,n=t.constraint,i=t.default;n&&((r=l(n,g))&&(n=r.typeNode,_(d,r.symbols)));i&&((r=l(i,g))&&(i=r.typeNode,_(d,r.symbols)));return e.factory.updateTypeParameterDeclaration(t,t.name,n,i)}));v!==x&&(v=e.setTextRange(e.factory.createNodeArray(x,v.hasTrailingComma),v))}var b=e.sameMap(h,(function(t){var r=l(t.type,g),n=t.type;return r&&(n=r.typeNode,_(d,r.symbols)),e.factory.updateParameterDeclaration(t,t.decorators,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,n,t.initializer)}));if(h!==b&&(h=e.setTextRange(e.factory.createNodeArray(b,h.hasTrailingComma),h)),D){var S=l(D,g);S&&(D=S.typeNode,_(d,S.symbols))}}return e.factory.updateMethodDeclaration(y,void 0,o,y.asteriskToken,s,c?e.factory.createToken(57):void 0,v,h,D,u)}(s,t,i,n,a,o,x,c,u);p&&d(p)}}function i(t,r,n,i,a,o,s){var c=t.typeToTypeNode(n,i,o,s);if(c&&e.isImportTypeNode(c)){var u=l(c,a);if(u)return _(r,u.symbols),u.typeNode}return c}function a(t,r,n,i,a){for(var o=[],s=0;s=i?e.factory.createToken(57):void 0,a?void 0:n&&n[s]||e.factory.createKeywordTypeNode(128),void 0);o.push(c)}return o}function o(t){return e.factory.createBlock([e.factory.createThrowStatement(e.factory.createNewExpression(e.factory.createIdentifier("Error"),void 0,[e.factory.createStringLiteral("Method not implemented.",0===t)]))],!0)}function s(t,r,n){var i=e.getTsConfigObjectLiteralExpression(r);if(i){var a=u(i,"compilerOptions");if(void 0!==a){var o=a.initializer;if(e.isObjectLiteralExpression(o))for(var s=0,l=n;s0)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={}))}(u||(u={})),function(e){!function(t){var r="fixAddModuleReferTypeMissingTypeof",n=[e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.Debug.assert(99===n.kind,"This token should be an ImportKeyword"),e.Debug.assert(195===n.parent.kind,"Token parent should be an ImportType"),n.parent}function a(t,r,n){var i=e.factory.updateImportTypeNode(n,n.argument,n.qualifier,n.typeArguments,!0);t.replaceNode(r,n,i)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start),u=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c)}));return[t.createCodeFixAction(r,u,e.Diagnostics.Add_missing_typeof,r,e.Diagnostics.Add_missing_typeof)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){return a(t,e.sourceFile,i(r.file,r.start))}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="wrapJsxInFragment",n=[e.Diagnostics.JSX_expressions_must_have_one_parent_element.code];function i(t,r){var n=e.getTokenAtPosition(t,r).parent.parent;if((e.isBinaryExpression(n)||(n=n.parent,e.isBinaryExpression(n)))&&e.nodeIsMissing(n.operatorToken))return n}function a(t,r,n){var i=function(t){var r=[],n=t;for(;;){if(e.isBinaryExpression(n)&&e.nodeIsMissing(n.operatorToken)&&27===n.operatorToken.kind){if(r.push(n.left),e.isJsxChild(n.right))return r.push(n.right),r;if(e.isBinaryExpression(n.right)){n=n.right;continue}return}return}}(n);i&&t.replaceNode(r,n,e.factory.createJsxFragment(e.factory.createJsxOpeningFragment(),i,e.factory.createJsxJsxClosingFragment()))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.program.getCompilerOptions().jsx;if(2===o||3===o){var s=n.sourceFile,c=n.span,u=i(s,c.start);if(u){var l=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,s,u)}));return[t.createCodeFixAction(r,l,e.Diagnostics.Wrap_in_JSX_fragment,r,e.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]}}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=i(e.sourceFile,r.start);n&&a(t,e.sourceFile,n)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){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(t,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.factory.createTypeParameterDeclaration(e.cast(c.name,e.isIdentifier),c.type),l=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(a)?e.factory.createModifier(142):void 0,u,void 0,a.questionToken,a.type),d=e.factory.createIntersectionTypeNode(r(e.getAllSuperTypeNodes(o),[l],s.length?[e.factory.createTypeLiteralNode(s)]:e.emptyArray));t.replaceNode(n,o,function(t,r){return e.factory.createTypeAliasDeclaration(t.decorators,t.modifiers,t.name,t.typeParameters,r)}(o,d))}t.registerCodeFix({errorCodes:i,getCodeActions:function(r){var i=r.sourceFile,s=r.span,c=a(i,s.start);if(c){var u=e.textChanges.ChangeTracker.with(r,(function(e){return o(e,i,c)})),l=e.idText(c.container.name);return[t.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 t.codeFixAll(e,i,(function(e,t){var r=a(t.file,t.start);r&&o(e,t.file,r)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="removeAccidentalCallParentheses",n=[e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=e.findAncestor(e.getTokenAtPosition(n.sourceFile,n.span.start),e.isCallExpression);if(i){var a=e.textChanges.ChangeTracker.with(n,(function(e){e.deleteRange(n.sourceFile,{pos:i.expression.end,end:i.end})}));return[t.createCodeFixActionWithoutFixAll(r,a,e.Diagnostics.Remove_parentheses)]}},fixIds:[r]})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="removeUnnecessaryAwait",n=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];function i(t,r,n){var i=e.tryCast(e.getTokenAtPosition(r,n.start),(function(e){return 130===e.kind})),a=i&&e.tryCast(i.parent,e.isAwaitExpression);if(a){var o=a;if(e.isParenthesizedExpression(a.parent)){var s=e.getLeftmostExpression(a.expression,!1);if(e.isIdentifier(s)){var c=e.findPrecedingToken(a.parent.pos,r);c&&102!==c.kind&&(o=a.parent)}}t.replaceNode(r,o,a.expression)}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span)}));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Remove_unnecessary_await,r,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r=[e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],n="splitTypeOnlyImport";function i(t,r){return e.findAncestor(e.getTokenAtPosition(t,r.start),e.isImportDeclaration)}function a(t,r,n){if(r){var i=e.Debug.checkDefined(r.importClause);t.replaceNode(n.sourceFile,r,e.factory.updateImportDeclaration(r,r.decorators,r.modifiers,e.factory.updateImportClause(i,i.isTypeOnly,i.name,void 0),r.moduleSpecifier)),t.insertNodeAfter(n.sourceFile,r,e.factory.createImportDeclaration(void 0,void 0,e.factory.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),r.moduleSpecifier))}}t.registerCodeFix({errorCodes:r,fixIds:[n],getCodeActions:function(r){var o=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,i(r.sourceFile,r.span),r)}));if(o.length)return[t.createCodeFixAction(n,o,e.Diagnostics.Split_into_two_separate_import_declarations,n,e.Diagnostics.Split_all_invalid_type_only_imports)]},getAllCodeActions:function(e){return t.codeFixAll(e,r,(function(t,r){a(t,i(e.sourceFile,r),e)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),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={}))}(u||(u={})),function(e){!function(t){var r="fixExpectedComma",n=[e.Diagnostics._0_expected.code];function i(t,r,n){var i=e.getTokenAtPosition(t,r);return 26===i.kind&&i.parent&&(e.isObjectLiteralExpression(i.parent)||e.isArrayLiteralExpression(i.parent))?{node:i}:void 0}function a(t,r,n){var i=n.node,a=e.factory.createToken(27);t.replaceNode(r,i,a)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=i(o,n.span.start,n.errorCode);if(s){var c=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,s)}));return[t.createCodeFixAction(r,c,[e.Diagnostics.Change_0_to_1,";",","],r,[e.Diagnostics.Change_0_to_1,";",","])]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=i(r.file,r.start,r.code);n&&a(t,e.sourceFile,n)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="addVoidToPromise",n=[e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];function i(t,r,n,i,a){var o=e.getTokenAtPosition(r,n.start);if(e.isIdentifier(o)&&e.isCallExpression(o.parent)&&o.parent.expression===o&&0===o.parent.arguments.length){var s=i.getTypeChecker(),c=s.getSymbolAtLocation(o),u=null==c?void 0:c.valueDeclaration;if(u&&e.isParameter(u)&&e.isNewExpression(u.parent.parent)&&!(null==a?void 0:a.has(u))){null==a||a.add(u);var l=function(t){var r;if(!e.isInJSFile(t))return t.typeArguments;if(e.isParenthesizedExpression(t.parent)){var n=null===(r=e.getJSDocTypeTag(t.parent))||void 0===r?void 0:r.typeExpression.type;if(n&&e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)&&"Promise"===e.idText(n.typeName))return n.typeArguments}}(u.parent.parent);if(e.some(l)){var d=l[0],_=!e.isUnionTypeNode(d)&&!e.isParenthesizedTypeNode(d)&&e.isParenthesizedTypeNode(e.factory.createUnionTypeNode([d,e.factory.createKeywordTypeNode(113)]).types[0]);_&&t.insertText(r,d.pos,"("),t.insertText(r,d.end,_?") | void":" | void")}else{var p=s.getResolvedSignature(o.parent),f=null==p?void 0:p.parameters[0],g=f&&s.getTypeOfSymbolAtLocation(f,u.parent.parent);e.isInJSFile(u)?(!g||3&g.flags)&&(t.insertText(r,u.parent.parent.end,")"),t.insertText(r,e.skipTrivia(r.text,u.parent.parent.pos),"/** @type {Promise} */(")):(!g||2&g.flags)&&t.insertText(r,u.parent.parent.expression.end,"")}}}}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span,n.program)}));if(a.length>0)return[t.createCodeFixAction("addVoidToPromise",a,e.Diagnostics.Add_void_to_Promise_resolved_without_a_value,r,e.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:function(r){return t.codeFixAll(r,n,(function(t,n){return i(t,n.file,n,r.program,new e.Set)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="Convert export",n="Convert default export to named export",i="Convert named export to default export";function a(t,r){void 0===r&&(r=!0);var n=t.file,i=e.getRefactorContextSpan(t),a=e.getTokenAtPosition(n,i.start),o=a.parent&&1&e.getSyntacticModifierFlags(a.parent)&&r?a.parent:e.getParentNodeInSpan(a,n,i);if(!(o&&(e.isSourceFile(o.parent)||e.isModuleBlock(o.parent)&&e.isAmbientModule(o.parent.parent))))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_export_statement)};var s=e.isSourceFile(o.parent)?o.parent.symbol:o.parent.parent.symbol,c=e.getSyntacticModifierFlags(o),u=!!(512&c);if(!(1&c)||!u&&s.exports.has("default"))return{error:e.getLocaleSpecificMessage(e.Diagnostics.This_file_already_has_a_default_export)};switch(o.kind){case 251:case 252:case 253:case 255:case 254:case 256:var l=o;return l.name&&e.isIdentifier(l.name)?{info:{exportNode:l,exportName:l.name,wasDefault:u,exportingModuleSymbol:s}}:void 0;case 232:var d=o;if(!(2&d.declarationList.flags)||1!==d.declarationList.declarations.length)return;var _=e.first(d.declarationList.declarations);if(!_.initializer)return;return e.Debug.assert(!u,"Can't have a default flag here"),e.isIdentifier(_.name)?{info:{exportNode:d,exportName:_.name,wasDefault:u,exportingModuleSymbol:s}}:void 0;default:return}}function o(t,r){return e.factory.createImportSpecifier(t===r?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(r))}t.registerRefactor(r,{getAvailableActions:function(t){var o=a(t,"invoked"===t.triggerReason);if(!o)return e.emptyArray;if(void 0===o.error){var s=o.info.wasDefault?e.Diagnostics.Convert_default_export_to_named_export.message:e.Diagnostics.Convert_named_export_to_default_export.message,c=o.info.wasDefault?n:i;return[{name:r,description:s,actions:[{name:c,description:s}]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:r,description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[{name:n,description:e.Diagnostics.Convert_default_export_to_named_export.message,notApplicableReason:o.error}]},{name:r,description:e.Diagnostics.Convert_named_export_to_default_export.message,actions:[{name:i,description:e.Diagnostics.Convert_named_export_to_default_export.message,notApplicableReason:o.error}]}]:e.emptyArray},getEditsForAction:function(t,r){return e.Debug.assert(r===n||r===i,"Unexpected action name"),{edits:e.textChanges.ChangeTracker.with(t,(function(r){var n,i,s,c,u,l;return i=t.file,s=t.program,c=e.Debug.checkDefined(null===(n=a(t))||void 0===n?void 0:n.info,"context must have info"),u=r,l=t.cancellationToken,function(t,r,n,i){var a=r.wasDefault,o=r.exportNode,s=r.exportName;if(a)n.delete(t,e.Debug.checkDefined(e.findModifier(o,87),"Should find a default keyword in modifier list"));else{var c=e.Debug.checkDefined(e.findModifier(o,92),"Should find an export keyword in modifier list");switch(o.kind){case 251:case 252:case 253:n.insertNodeAfter(t,c,e.factory.createToken(87));break;case 232:var u=e.first(o.declarationList.declarations);if(!e.FindAllReferences.Core.isSymbolReferencedInFile(s,i,t)&&!u.type){n.replaceNode(t,o,e.factory.createExportDefault(e.Debug.checkDefined(u.initializer,"Initializer was previously known to be present")));break}case 255:case 254:case 256:n.deleteModifier(t,c),n.insertNodeAfter(t,o,e.factory.createExportDefault(e.factory.createIdentifier(s.text)));break;default:e.Debug.assertNever(o,"Unexpected exportNode kind "+o.kind)}}}(i,c,u,s.getTypeChecker()),void function(t,r,n,i){var a=r.wasDefault,s=r.exportName,c=r.exportingModuleSymbol,u=t.getTypeChecker(),l=e.Debug.checkDefined(u.getSymbolAtLocation(s),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(t.getSourceFiles(),u,i,l,c,s.text,a,(function(t){var r=t.getSourceFile();a?function(t,r,n,i){var a=r.parent;switch(a.kind){case 201:n.replaceNode(t,r,e.factory.createIdentifier(i));break;case 265:case 270:var s=a;n.replaceNode(t,s,o(i,s.name.text));break;case 262:var c=a;e.Debug.assert(c.name===r,"Import clause name should match provided ref"),s=o(i,r.text);var u=c.namedBindings;if(u)if(263===u.kind){n.deleteRange(t,{pos:r.getStart(t),end:u.getStart(t)});var l=e.isStringLiteral(c.parent.moduleSpecifier)?e.quotePreferenceFromString(c.parent.moduleSpecifier,t):1,d=e.makeImport(void 0,[o(i,r.text)],c.parent.moduleSpecifier,l);n.insertNodeAfter(t,c.parent,d)}else n.delete(t,r),n.insertNodeAtEndOfList(t,u.elements,s);else n.replaceNode(t,r,e.factory.createNamedImports([s]));break;default:e.Debug.failBadSyntaxKind(a)}}(r,t,n,s.text):function(t,r,n){var i=r.parent;switch(i.kind){case 201:n.replaceNode(t,r,e.factory.createIdentifier("default"));break;case 265:var a=e.factory.createIdentifier(i.name.text);1===i.parent.elements.length?n.replaceNode(t,i.parent,a):(n.delete(t,i),n.insertNodeBefore(t,i.parent,a));break;case 270:n.replaceNode(t,i,function(t,r){return e.factory.createExportSpecifier(t===r?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(r))}("default",i.name.text));break;default:e.Debug.assertNever(i,"Unexpected parent kind "+i.kind)}}(r,t,n)}))}(s,c,u,l)})),renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){!function(t){var r="Convert import",n="Convert namespace import to named imports",i="Convert named imports to namespace import";function a(t,r){void 0===r&&(r=!0);var n=t.file,i=e.getRefactorContextSpan(t),a=e.getTokenAtPosition(n,i.start),o=r?e.findAncestor(a,e.isImportDeclaration):e.getParentNodeInSpan(a,n,i);if(!o||!e.isImportDeclaration(o))return{error:"Selection is not an import declaration."};if(!(o.getEnd()=_.pos?p.getEnd():_.getEnd()),g=l?function(e){for(;e.parent;){if(o(e)&&!o(e.parent))return e;e=e.parent}return}(_):function(e,t){for(;e.parent;){if(o(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}return}(_,f),m=g&&o(g)?function(t){if(a(t))return t;if(e.isVariableStatement(t)){var r=e.getSingleVariableOfVariableStatement(t),n=null==r?void 0:r.initializer;return n&&a(n)?n:void 0}return t.expression&&a(t.expression)?t.expression:void 0}(g):void 0;if(!m)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var y=i.getTypeChecker();return e.isConditionalExpression(m)?function(t,r){var n=t.condition,i=d(t.whenTrue);if(!i||r.isNullableType(r.getTypeAtLocation(i)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};if((e.isPropertyAccessExpression(n)||e.isIdentifier(n))&&u(n,i.expression))return{info:{finalExpression:i,occurrences:[n],expression:t}};if(e.isBinaryExpression(n)){var a=c(i.expression,n);return a?{info:{finalExpression:i,occurrences:a,expression:t}}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}}(m,y):function(t){if(55!==t.operatorToken.kind)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)};var r=d(t.right);if(!r)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var n=c(r.expression,t.left);return n?{info:{finalExpression:r,occurrences:n,expression:t}}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}(m)}}function c(t,r){for(var n=[];e.isBinaryExpression(r)&&55===r.operatorToken.kind;){var i=u(e.skipParentheses(t),e.skipParentheses(r.right));if(!i)break;n.push(i),t=i,r=r.left}var a=u(t,r);return a&&n.push(a),n.length>0?n:void 0}function u(t,r){if(e.isIdentifier(r)||e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r))return function(t,r){for(;(e.isCallExpression(t)||e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t))&&l(t)!==l(r);)t=t.expression;for(;e.isPropertyAccessExpression(t)&&e.isPropertyAccessExpression(r)||e.isElementAccessExpression(t)&&e.isElementAccessExpression(r);){if(l(t)!==l(r))return!1;t=t.expression,r=r.expression}return e.isIdentifier(t)&&e.isIdentifier(r)&&t.getText()===r.getText()}(t,r)?r:void 0}function l(t){return e.isIdentifier(t)||e.isStringOrNumericLiteralLike(t)?t.getText():e.isPropertyAccessExpression(t)?l(t.name):e.isElementAccessExpression(t)?l(t.argumentExpression):void 0}function d(t){return t=e.skipParentheses(t),e.isBinaryExpression(t)?d(t.left):(e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)||e.isCallExpression(t))&&!e.isOptionalChain(t)?t:void 0}function _(t,r,n){if(e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r)||e.isCallExpression(r)){var i=_(t,r.expression,n),a=n.length>0?n[n.length-1]:void 0,o=(null==a?void 0:a.getText())===r.expression.getText();if(o&&n.pop(),e.isCallExpression(r))return o?e.factory.createCallChain(i,e.factory.createToken(28),r.typeArguments,r.arguments):e.factory.createCallChain(i,r.questionDotToken,r.typeArguments,r.arguments);if(e.isPropertyAccessExpression(r))return o?e.factory.createPropertyAccessChain(i,e.factory.createToken(28),r.name):e.factory.createPropertyAccessChain(i,r.questionDotToken,r.name);if(e.isElementAccessExpression(r))return o?e.factory.createElementAccessChain(i,e.factory.createToken(28),r.argumentExpression):e.factory.createElementAccessChain(i,r.questionDotToken,r.argumentExpression)}return r}t.registerRefactor(n,{getAvailableActions:function(t){var r=s(t,"invoked"===t.triggerReason);if(!r)return e.emptyArray;if(!r.error)return[{name:n,description:i,actions:[{name:n,description:i}]}];if(t.preferences.provideRefactorNotApplicableReason)return[{name:n,description:i,actions:[{name:n,description:i,notApplicableReason:r.error}]}];return e.emptyArray},getEditsForAction:function(t,r){var n=s(t);return n&&n.info?{edits:e.textChanges.ChangeTracker.with(t,(function(r){return function(t,r,n,i,a){var o=i.finalExpression,s=i.occurrences,c=i.expression,u=s[s.length-1],l=_(r,o,s);l&&(e.isPropertyAccessExpression(l)||e.isElementAccessExpression(l)||e.isCallExpression(l))&&(e.isBinaryExpression(c)?n.replaceNodeRange(t,u,o,l):e.isConditionalExpression(c)&&n.replaceNode(t,c,e.factory.createBinaryExpression(l,e.factory.createToken(60),c.whenFalse)))}(t.file,t.program.getTypeChecker(),r,e.Debug.checkDefined(n.info,"context must have info"))})),renameFilename:void 0,renameLocation:void 0}:void 0}})}(t.convertToOptionalChainExpression||(t.convertToOptionalChainExpression={}))}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){!function(t){!function(r){var n="Convert overload list to single signature",i=e.Diagnostics.Convert_overload_list_to_single_signature.message;function a(e){switch(e.kind){case 164:case 165:case 169:case 166:case 170:case 251:return!0}return!1}function o(t,r,n){var i=e.getTokenAtPosition(t,r),o=e.findAncestor(i,a);if(o){var s=n.getTypeChecker(),c=o.symbol;if(c){var u=c.declarations;if(!(e.length(u)<=1)&&e.every(u,(function(r){return e.getSourceFileOfNode(r)===t}))&&a(u[0])){var l=u[0].kind;if(e.every(u,(function(e){return e.kind===l}))){var d=u;if(!e.some(d,(function(t){return!!t.typeParameters||e.some(t.parameters,(function(t){return!!t.decorators||!!t.modifiers||!e.isIdentifier(t.name)}))}))){var _=e.mapDefined(d,(function(e){return s.getSignatureFromDeclaration(e)}));if(e.length(_)===e.length(u)){var p=s.getReturnTypeOfSignature(_[0]);if(e.every(_,(function(e){return s.getReturnTypeOfSignature(e)===p})))return d}}}}}}}t.registerRefactor(n,{getEditsForAction:function(t){var r=t.file,n=t.startPosition,i=t.program,a=o(r,n,i);if(!a)return;var s=i.getTypeChecker(),c=a[a.length-1],u=c;switch(c.kind){case 164:u=e.factory.updateMethodSignature(c,c.modifiers,c.name,c.questionToken,c.typeParameters,d(a),c.type);break;case 165:u=e.factory.updateMethodDeclaration(c,c.decorators,c.modifiers,c.asteriskToken,c.name,c.questionToken,c.typeParameters,d(a),c.type,c.body);break;case 169:u=e.factory.updateCallSignature(c,c.typeParameters,d(a),c.type);break;case 166:u=e.factory.updateConstructorDeclaration(c,c.decorators,c.modifiers,d(a),c.body);break;case 170:u=e.factory.updateConstructSignature(c,c.typeParameters,d(a),c.type);break;case 251:u=e.factory.updateFunctionDeclaration(c,c.decorators,c.modifiers,c.asteriskToken,c.name,c.typeParameters,d(a),c.type,c.body);break;default:return e.Debug.failBadSyntaxKind(c,"Unhandled signature kind in overload list conversion refactoring")}if(u===c)return;var l=e.textChanges.ChangeTracker.with(t,(function(e){e.replaceNodeRange(r,a[0],a[a.length-1],u)}));return{renameFilename:void 0,renameLocation:void 0,edits:l};function d(t){var r=t[t.length-1];return e.isFunctionLikeDeclaration(r)&&r.body&&(t=t.slice(0,t.length-1)),e.factory.createNodeArray([e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),"args",void 0,e.factory.createUnionTypeNode(e.map(t,_)))])}function _(t){var r=e.map(t.parameters,p);return e.setEmitFlags(e.factory.createTupleTypeNode(r),e.some(r,(function(t){return!!e.length(e.getSyntheticLeadingComments(t))}))?0:1)}function p(t){e.Debug.assert(e.isIdentifier(t.name));var r=e.setTextRange(e.factory.createNamedTupleMember(t.dotDotDotToken,t.name,t.questionToken,t.type||e.factory.createKeywordTypeNode(128)),t),n=t.symbol&&t.symbol.getDocumentationComment(s);if(n){var i=e.displayPartsToString(n);i.length&&e.setSyntheticLeadingComments(r,[{text:"*\n"+i.split("\n").map((function(e){return" * "+e})).join("\n")+"\n ",kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return r}},getAvailableActions:function(t){var r=t.file,a=t.startPosition,s=t.program;return o(r,a,s)?[{name:n,description:i,actions:[{name:n,description:i}]}]:e.emptyArray}})}(t.addOrRemoveBracesToArrowFunction||(t.addOrRemoveBracesToArrowFunction={}))}(e.refactor||(e.refactor={}))}(u||(u={})),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),"invoked"===t.triggerReason),n=r.targetRange;if(void 0===n)return r.errors&&0!==r.errors.length&&t.preferences.provideRefactorNotApplicableReason?[{name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:[{description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),name:"function_extract_error",notApplicableReason:S(r.errors)}]},{name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:[{description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),name:"constant_extract_error",notApplicableReason:S(r.errors)}]}]:e.emptyArray;var i=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 166:return"constructor";case 208:case 251:return t.name?"function '"+t.name.text+"'":e.ANONYMOUS;case 209:return"arrow function";case 165:return"method '"+t.name.getText()+"'";case 167:return"'get "+t.name.getText()+"'";case 168:return"'set "+t.name.getText()+"'";default:throw e.Debug.assertNever(t,"Unexpected scope kind "+t.kind)}}(t):e.isClassLike(t)?function(e){return 252===e.kind?e.name?"class '"+e.name.text+"'":"anonymous class declaration":e.name?"class expression '"+e.name.text+"'":"anonymous class expression"}(t):function(e){return 257===e.kind?"namespace '"+e.parent.name.getText()+"'":e.externalModuleIndicator?0:1}(t);return 1===u?(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[a,"global"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"global"])):0===u?(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[a,"module"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"module"])):(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[a,u]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[c,u])),0!==r||e.isClassLike(t)||(i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[c])),{functionExtraction:{description:n,errors:o[r]},constantExtraction:{description:i,errors:s[r]}}}))}(n,t);if(void 0===i)return e.emptyArray;for(var a,o,c=[],u=new e.Map,d=[],_=new e.Map,f=0,g=0,m=i;g0;if(e.isBlock(t)&&!s&&0===i.size)return{body:e.factory.createBlock(t.statements,!0),returnValueProperty:void 0};var c=!1,u=e.factory.createNodeArray(e.isBlock(t)?t.statements.slice(0):[e.isStatement(t)?t:e.factory.createReturnStatement(t)]);if(s||i.size){var l=e.visitNodes(u,_).slice();if(s&&!a&&e.isStatement(t)){var d=m(r,n);1===d.length?l.push(e.factory.createReturnStatement(d[0].name)):l.push(e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(d)))}return{body:e.factory.createBlock(l,!0),returnValueProperty:o}}return{body:e.factory.createBlock(u,!0),returnValueProperty:void 0};function _(t){if(!c&&e.isReturnStatement(t)&&s){var a=m(r,n);return t.expression&&(o||(o="__return"),a.unshift(e.factory.createPropertyAssignment(o,e.visitNode(t.expression,_)))),1===a.length?e.factory.createReturnStatement(a[0].name):e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(a))}var u=c;c=c||e.isFunctionLikeDeclaration(t)||e.isClassLike(t);var l=i.get(e.getNodeId(t).toString()),d=l?e.getSynthesizedDeepClone(l):e.visitEachChild(t,_,e.nullTransformationContext);return c=u,d}}(t,a,u,_,!!(o.facts&i.HasReturn)),I=w.body,O=w.returnValueProperty;if(e.suppressLeadingAndTrailingTrivia(I),e.isClassLike(r)){var M=S?[]:[e.factory.createModifier(120)];o.facts&i.InStaticRegion&&M.push(e.factory.createModifier(123)),o.facts&i.IsAsyncFunction&&M.push(e.factory.createModifier(129)),P=e.factory.createMethodDeclaration(void 0,M.length?M:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,E,void 0,A,C,c,I)}else P=e.factory.createFunctionDeclaration(void 0,o.facts&i.IsAsyncFunction?[e.factory.createToken(129)]:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,E,A,C,c,I);var L=e.textChanges.ChangeTracker.fromContext(s),R=function(t,r){return e.find(function(t){if(e.isFunctionLikeDeclaration(t)){var r=t.body;if(e.isBlock(r))return r.statements}else{if(e.isModuleBlock(t)||e.isSourceFile(t))return t.statements;if(e.isClassLike(t))return t.members;e.assertType(t)}return e.emptyArray}(r),(function(r){return r.pos>=t&&e.isFunctionLikeDeclaration(r)&&!e.isConstructorDeclaration(r)}))}((y(o.range)?e.last(o.range):o.range).end,r);R?L.insertNodeBefore(s.file,R,P,!0):L.insertNodeAtEndOfScope(s.file,r,P);h.writeFixes(L);var B=[],j=function(t,r,n){var a=e.factory.createIdentifier(n);if(e.isClassLike(t)){var o=r.facts&i.InStaticRegion?e.factory.createIdentifier(t.name.text):e.factory.createThis();return e.factory.createPropertyAccessExpression(o,a)}return a}(r,o,b),J=e.factory.createCallExpression(j,F,T);o.facts&i.IsGenerator&&(J=e.factory.createYieldExpression(e.factory.createToken(41),J));o.facts&i.IsAsyncFunction&&(J=e.factory.createAwaitExpression(J));D(t)&&(J=e.factory.createJsxExpression(void 0,J));if(a.length&&!u)if(e.Debug.assert(!O,"Expected no returnValueProperty"),e.Debug.assert(!(o.facts&i.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),1===a.length){var K=a[0];B.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(K.name),void 0,e.getSynthesizedDeepClone(K.type),J)],K.parent.flags)))}else{for(var z=[],U=[],V=a[0].parent.flags,q=!1,W=0,H=a;W0,"Found no members");for(var a=!0,o=0,s=i;ot)return n||i[0];if(a&&!e.isPropertyDeclaration(c)){if(void 0!==n)return c;a=!1}n=c}return void 0===n?e.Debug.fail():n}(t.pos,r);m.insertNodeBefore(o.file,b,v,!0),m.replaceNode(o.file,t,x)}else{var S=e.factory.createVariableDeclaration(d,void 0,f,g),E=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(E){m.insertNodeBefore(o.file,E,S);x=e.factory.createIdentifier(d);m.replaceNode(o.file,t,x)}else if(233===t.parent.kind&&r===e.findAncestor(t,_)){var C=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([S],2));m.replaceNode(o.file,t.parent,C)}else{C=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([S],2));if(0===(b=function(t,r){var n;e.Debug.assert(!e.isClassLike(r));for(var i=t;i!==r;i=i.parent)_(i)&&(n=i);for(i=(n||t).parent;;i=i.parent){if(h(i)){for(var a=void 0,o=0,s=i.statements;ot.pos)break;a=c}return!a&&e.isCaseClause(i)?(e.Debug.assert(e.isSwitchStatement(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):e.Debug.checkDefined(a,"prevStatement failed to get set")}e.Debug.assert(i!==r,"Didn't encounter a block-like before encountering scope")}}(t,r)).pos?m.insertNodeAtTopOfFile(o.file,C,!1):m.insertNodeBefore(o.file,b,C,!1),233===t.parent.kind)m.delete(o.file,t.parent);else{x=e.factory.createIdentifier(d);D(t)&&(x=e.factory.createJsxExpression(void 0,x)),m.replaceNode(o.file,t,x)}}}var T=m.getChanges(),k=t.getSourceFile().fileName,A=e.getRenameLocation(T,k,d,!0);return{renameFilename:k,renameLocation:A,edits:T};function F(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,d=i.parameters;l=r.start+r.length)return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractSuper)),!0}else f|=i.UsesThis;break;case 209:e.forEachChild(a,(function t(r){if(e.isThis(r))f|=i.UsesThis;else{if(e.isClassLike(r)||e.isFunctionLike(r)&&!e.isArrowFunction(r))return!1;e.forEachChild(r,t)}}));case 252:case 251:e.isSourceFile(a.parent)&&void 0===a.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(a,n.functionWillNotBeVisibleInTheNewScope));case 221:case 208:case 165:case 166:case 167:case 168:return!1}var d=u;switch(a.kind){case 234:case 247:u=0;break;case 230:a.parent&&247===a.parent.kind&&a.parent.finallyBlock===a&&(u=4);break;case 285:case 284:u|=1;break;default:e.isIterationStatement(a,!1)&&(u|=3)}switch(a.kind){case 187:case 107:f|=i.UsesThis;break;case 245:var _=a.label;(c||(c=[])).push(_.escapedText),e.forEachChild(a,t),c.pop();break;case 241:case 240:(_=a.label)?e.contains(c,_.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):u&(241===a.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 213:f|=i.IsAsyncFunction;break;case 219:f|=i.IsGenerator;break;case 242:4&u?f|=i.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(a,t)}u=d}(t),o}}function d(t){return e.isStatement(t)?[t]:e.isExpressionNode(t)?e.isExpressionStatement(t.parent)?[t.parent]:t:void 0}function _(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(160===(r=r.parent).kind&&(r=e.findAncestor(r,(function(t){return e.isFunctionLikeDeclaration(t)})).parent),_(r)&&(o.push(r),297===r.kind))return o}(t);return{scopes:o,readsAndWrites:function(t,r,a,o,s,c){var u,l,d=new e.Map,_=[],p=[],f=[],g=[],m=[],v=new e.Map,h=[],D=y(t.range)?1===t.range.length&&e.isExpressionStatement(t.range[0])?t.range[0].expression:void 0:t.range;if(void 0===D){var x=t.range,b=e.first(x).getStart(),S=e.last(x).end;l=e.createFileDiagnostic(o,b,S-b,n.expressionExpected)}else 147456&s.getTypeAtLocation(D).flags&&(l=e.createDiagnosticForNode(D,n.uselessConstantType));for(var E=0,C=r;E0){for(var w=new e.Map,I=0,O=N;void 0!==O&&I0&&(i.usages.size>0||i.typeParameterUsages.size>0)){var a=y(t.range)?t.range[0]:t.range;g[r].push(e.createDiagnosticForNode(a,n.cannotAccessVariablesFromNestedScopes))}var o,s=!1;if(_[r].usages.forEach((function(t){2===t.usage&&(s=!0,106500&t.symbol.flags&&t.symbol.valueDeclaration&&e.hasEffectiveModifier(t.symbol.valueDeclaration,64)&&(o=t.symbol.valueDeclaration))})),e.Debug.assert(y(t.range)||0===h.length,"No variable declarations expected if something was extracted"),s&&!y(t.range)){var c=e.createDiagnosticForNode(t.range,n.cannotWriteInExpression);f[r].push(c),g[r].push(c)}else if(o&&r>0){c=e.createDiagnosticForNode(o,n.cannotExtractReadonlyPropertyInitializerOutsideConstructor);f[r].push(c),g[r].push(c)}else if(u){c=e.createDiagnosticForNode(u,n.cannotExtractExportedEntity);f[r].push(c),g[r].push(c)}},K=0;K=u)return m;if(A.set(m,u),y){for(var v=0,h=_;v=0)){var n=e.isIdentifier(r)?G(r):s.getSymbolAtLocation(r);if(n){var i=e.find(m,(function(e){return e.symbol===n}));if(i)if(e.isVariableDeclaration(i)){var a=i.symbol.id.toString();v.has(a)||(h.push(i),v.set(a,!0))}else u=u||i}e.forEachChild(r,H)}}function G(t){return t.parent&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t?s.getShorthandAssignmentValueSymbol(t.parent):s.getSymbolAtLocation(t)}function Y(t,r,n){if(t){var i=t.getDeclarations();if(i&&i.some((function(e){return e.parent===r})))return e.factory.createIdentifier(t.name);var a=Y(t.parent,r,n);if(void 0!==a)return n?e.factory.createQualifiedName(a,e.factory.createIdentifier(t.name)):e.factory.createPropertyAccessExpression(a,t.name)}}}(t,o,function(t,r){return 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;nn.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)=2&&e.every(t,(function(t){return function(t,r){if(e.isRestParameter(t)){var n=r.getTypeAtLocation(t);if(!r.isArrayType(n)&&!r.isTupleType(n))return!1}return!t.modifiers&&!t.decorators&&e.isIdentifier(t.name)}(t,r)}))}(t.parameters,r))return!1;switch(t.kind){case 251:return _(t)&&d(t,r);case 165:return d(t,r);case 166:return e.isClassDeclaration(t.parent)?_(t.parent)&&d(t,r):p(t.parent.parent)&&d(t,r);case 208:case 209:return p(t.parent)}return!1}(a,n)&&e.rangeContainsRange(a,i))||a.body&&e.rangeContainsRange(a.body,i)?void 0:a}function d(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function _(t){return!!t.name||!!e.findModifier(t,87)}function p(t){return e.isVariableDeclaration(t)&&e.isVarConst(t)&&e.isIdentifier(t.name)&&!t.type}function f(t){return t.length>0&&e.isThis(t[0].name)}function g(t){return f(t)&&(t=e.factory.createNodeArray(t.slice(1),t.hasTrailingComma)),t}function m(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.factory.createShorthandPropertyAssignment(t):e.factory.createPropertyAssignment(t,r)}(y(n[r]),t);return e.suppressLeadingAndTrailingTrivia(i.name),e.isPropertyAssignment(i)&&e.suppressLeadingAndTrailingTrivia(i.initializer),e.copyComments(t,i),i}));if(i&&r.length>=n.length){var s=r.slice(n.length-1),c=e.factory.createPropertyAssignment(y(e.last(n)),e.factory.createArrayLiteralExpression(s));o.push(c)}return e.factory.createObjectLiteralExpression(o,!1)}function y(t){return e.getTextOfIdentifierOrLiteral(t.name)}t.registerRefactor(i,{getEditsForAction:function(t,n){e.Debug.assert(n===i,"Unexpected action name");var d=t.file,_=t.startPosition,p=t.program,v=t.cancellationToken,h=t.host,D=l(d,_,p.getTypeChecker());if(!D||!v)return;var x=function(t,n,i){var l=function(t){switch(t.kind){case 251:return t.name?[t.name]:[e.Debug.checkDefined(e.findModifier(t,87),"Nameless function declaration should be a default export")];case 165:return[t.name];case 166:var r=e.Debug.checkDefined(e.findChildOfKind(t,132,t.getSourceFile()),"Constructor declaration should have constructor keyword");return 221===t.parent.kind?[t.parent.parent.name,r]:[r];case 209:return[t.parent.name];case 208:return t.name?[t.name,t.parent.name]:[t.parent.name];default:return e.Debug.assertNever(t,"Unexpected function declaration kind "+t.kind)}}(t),d=e.isConstructorDeclaration(t)?function(t){switch(t.parent.kind){case 252:var r=t.parent;return r.name?[r.name]:[e.Debug.checkDefined(e.findModifier(r,87),"Nameless class declaration should be a default export")];case 221:var n=t.parent,i=t.parent.parent,a=n.name;return a?[a,i.name]:[i.name]}}(t):[],_=e.deduplicate(r(l,d),e.equateValues),p=n.getTypeChecker(),f=g(e.flatMap(_,(function(t){return e.FindAllReferences.getReferenceEntriesForNode(-1,t,n,n.getSourceFiles(),i)})));e.every(f.declarations,(function(t){return e.contains(_,t)}))||(f.valid=!1);return f;function g(r){for(var n={accessExpressions:[],typeUsages:[]},i={functionCalls:[],declarations:[],classReferences:n,valid:!0},_=e.map(l,m),p=e.map(d,m),f=e.isConstructorDeclaration(t),g=0,y=r;g0;){var o=i.shift();e.copyTrailingComments(t[o],a,r,3,!1),n(o,a)}}}(n,r,a),s=l(0,n),c=s[0],u=s[1],_=s[2];if(c===n.length){var p=e.factory.createNoSubstitutionTemplateLiteral(u);return o(_,p),p}var f=[],g=e.factory.createTemplateHead(u);o(_,g);for(var m=c;m333}));return n.kind<157?n:n.getFirstToken(t)}},r.prototype.getLastToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t),n=e.lastOrUndefined(r);if(n)return n.kind<157?n:n.getLastToken(t)},r.prototype.forEachChild=function(t,r){return e.forEachChild(this,t,r)},r}();function a(r,n,i,a){for(e.scanner.setTextPos(n);n=n.length&&(t=this.getEnd()),t||(t=n[r+1]-1);var i=this.getFullText();return"\n"===i[t]&&"\r"===i[t-1]?t-1:t},r.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},r.prototype.computeNamedDeclarations=function(){var t=e.createMultiMap();return this.forEachChild((function i(a){switch(a.kind){case 251:case 208:case 165:case 164:var o=a,s=n(o);if(s){var c=function(e){var r=t.get(e);r||t.set(e,r=[]);return r}(s),u=e.lastOrUndefined(c);u&&o.parent===u.parent&&o.symbol===u.symbol?o.body&&!u.body&&(c[c.length-1]=o):c.push(o)}e.forEachChild(a,i);break;case 252:case 221:case 253:case 254:case 255:case 256:case 260:case 270:case 265:case 262:case 263:case 167:case 168:case 177:r(a),e.forEachChild(a,i);break;case 160:if(!e.hasSyntacticModifier(a,92))break;case 249:case 198:var l=a;if(e.isBindingPattern(l.name)){e.forEachChild(l.name,i);break}l.initializer&&i(l.initializer);case 291:case 163:case 162:r(a);break;case 267:var d=a;d.exportClause&&(e.isNamedExports(d.exportClause)?e.forEach(d.exportClause.elements,i):i(d.exportClause.name));break;case 261:var _=a.importClause;_&&(_.name&&r(_.name),_.namedBindings&&(263===_.namedBindings.kind?r(_.namedBindings):e.forEach(_.namedBindings.elements,i)));break;case 216:0!==e.getAssignmentDeclarationKind(a)&&r(a);default:e.forEachChild(a,i)}})),t;function r(e){var r=n(e);r&&t.add(r,e)}function n(t){var r=e.getNonAssignedNameOfDeclaration(t);return r&&(e.isComputedPropertyName(r)&&e.isPropertyAccessExpression(r.expression)?r.expression.name.text:e.isPropertyName(r)?e.getNameFromPropertyName(r):void 0)}},r}(i),y=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 v(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 D(){return{target:1,jsx:1}}e.toEditorSettings=v,e.displayPartsToString=function(t){return t?e.map(t,(function(e){return e.text})).join(""):""},e.getDefaultCompilerOptions=D,e.getSupportedCodeFixes=function(){return e.codefix.getSupportedErrorCodes()};var x=function(){function t(t,r){this.host=t,this.currentDirectory=t.getCurrentDirectory(),this.fileNameToEntry=new e.Map;for(var n=0,i=t.getScriptFileNames();n=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},t}();e.ThrottledCancellationToken=k;var A=["getSyntacticDiagnostics","getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls"],F=r(A,["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"]);function N(t){var r=function(t){switch(t.kind){case 10:case 14:case 8:if(158===t.parent.kind)return e.isObjectLiteralElement(t.parent.parent)?t.parent.parent:void 0;case 78:return!e.isObjectLiteralElement(t.parent)||200!==t.parent.parent.kind&&281!==t.parent.parent.kind||t.parent.name!==t?void 0:t.parent}return}(t);return r&&(e.isObjectLiteralExpression(r.parent)||e.isJsxAttributes(r.parent))?r:void 0}function P(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.createLanguageService=function(t,i,a){var o,s;void 0===i&&(i=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory())),s=void 0===a?e.LanguageServiceMode.Semantic:"boolean"==typeof a?a?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:a;var c,u,l=new b(t),d=0,_=new T(t.getCancellationToken&&t.getCancellationToken()),p=t.getCurrentDirectory();function f(e){t.log&&t.log(e)}!e.localizedDiagnosticMessages&&t.getLocalizedDiagnosticMessages&&e.setLocalizedDiagnosticMessages(t.getLocalizedDiagnosticMessages());var g=e.hostUsesCaseSensitiveFileNames(t),m=e.createGetCanonicalFileName(g),y=e.getSourceMapper({useCaseSensitiveFileNames:function(){return g},getCurrentDirectory:function(){return p},getProgram:S,fileExists:e.maybeBind(t,t.fileExists),readFile:e.maybeBind(t,t.readFile),getDocumentPositionMapper:e.maybeBind(t,t.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(t,t.getSourceFileLike),log:f});function h(e){var t=c.getSourceFile(e);if(!t){var r=new Error("Could not find source file: '"+e+"'.");throw r.ProgramFiles=c.getSourceFiles().map((function(e){return e.fileName})),r}return t}function D(){var r,n;if(e.Debug.assert(s!==e.LanguageServiceMode.Syntactic),t.getProjectVersion){var a=t.getProjectVersion();if(a){if(u===a&&!(null===(r=t.hasChangedAutomaticTypeDirectiveNames)||void 0===r?void 0:r.call(t)))return;u=a}}var o=t.getTypeRootsVersion?t.getTypeRootsVersion():0;d!==o&&(f("TypeRoots version has changed; provide new program"),c=void 0,d=o);var l=new x(t,m),v=l.getRootFileNames(),h=t.hasInvalidatedResolution||e.returnFalse,D=e.maybeBind(t,t.hasChangedAutomaticTypeDirectiveNames),b=l.getProjectReferences();if(!e.isProgramUptoDate(c,v,l.compilationSettings(),(function(e,r){return t.getScriptVersion(r)}),k,h,D,b)){var S=l.compilationSettings(),E={getSourceFile:function(t,r,n,i){return A(t,e.toPath(t,p,m),r,n,i)},getSourceFileByPath:A,getCancellationToken:function(){return _},getCanonicalFileName:m,useCaseSensitiveFileNames:function(){return g},getNewLine:function(){return e.getNewLineCharacter(S,(function(){return e.getNewLineOrDefaultFromHost(t)}))},getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return p},fileExists:k,readFile:function(r){var n=e.toPath(r,p,m),i=l&&l.getEntryByPath(n);if(i)return e.isString(i)?void 0:e.getSnapshotText(i.scriptSnapshot);return t.readFile&&t.readFile(r)},getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),realpath:e.maybeBind(t,t.realpath),directoryExists:function(r){return e.directoryProbablyExists(r,t)},getDirectories:function(e){return t.getDirectories?t.getDirectories(e):[]},readDirectory:function(r,n,i,a,o){return e.Debug.checkDefined(t.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,n,i,a,o)},onReleaseOldSourceFile:function(e,t){var r=i.getKeyForCompilationSettings(t);i.releaseDocumentWithKey(e.resolvedPath,r)},hasInvalidatedResolution:h,hasChangedAutomaticTypeDirectiveNames:D,trace:e.maybeBind(t,t.trace),resolveModuleNames:e.maybeBind(t,t.resolveModuleNames),resolveTypeReferenceDirectives:e.maybeBind(t,t.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(t,t.useSourceOfProjectReferenceRedirect)};null===(n=t.setCompilerHost)||void 0===n||n.call(t,E);var C=i.getKeyForCompilationSettings(S),T={rootNames:v,options:S,host:E,oldProgram:c,projectReferences:b};return c=e.createProgram(T),l=void 0,y.clearCache(),void c.getTypeChecker()}function k(r){var n=e.toPath(r,p,m),i=l&&l.getEntryByPath(n);return i?!e.isString(i):!!t.fileExists&&t.fileExists(r)}function A(t,r,n,a,o){e.Debug.assert(void 0!==l,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var s=l&&l.getOrCreateEntryByPath(t,r);if(s){if(!o){var u=c&&c.getSourceFileByPath(r);if(u)return e.Debug.assertEqual(s.scriptKind,u.scriptKind,"Registered script kind should match new script kind."),i.updateDocumentWithKey(t,r,S,C,s.scriptSnapshot,s.version,s.scriptKind)}return i.acquireDocumentWithKey(t,r,S,C,s.scriptSnapshot,s.version,s.scriptKind)}}}function S(){if(s!==e.LanguageServiceMode.Syntactic)return D(),c;e.Debug.assert(void 0===c)}function E(t,r,n){var i=e.normalizePath(t);e.Debug.assert(n.some((function(t){return e.normalizePath(t)===i}))),D();var a=e.mapDefined(n,(function(e){return c.getSourceFile(e)})),o=h(t);return e.DocumentHighlights.getDocumentHighlights(c,_,o,r,a)}function C(t,r,n,i){D();var a=n&&2===n.use?c.getSourceFiles().filter((function(e){return!c.isSourceFileDefaultLibrary(e)})):c.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(c,_,a,t,r,n,i)}function k(r){var n=e.getScriptKind(r,t);return 3===n||4===n}var w=new e.Map(e.getEntries(((o={})[18]=19,o[20]=21,o[22]=23,o[31]=29,o)));function I(r){return e.Debug.assertEqual(r.type,"install package"),t.installPackage?t.installPackage({fileName:function(t){return e.toPath(t,p,m)}(r.file),packageName:r.packageName}):Promise.reject("Host does not implement `installPackage`")}function O(e,t){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(t.pos).line,lastLine:e.getLineAndCharacterOfPosition(t.end).line}}function M(t,r,n){for(var i=l.getCurrentSourceFile(t),a=[],o=O(i,r),s=o.lineStarts,c=o.firstLine,u=o.lastLine,d=n||!1,_=Number.MAX_VALUE,p=new e.Map,f=new RegExp(/\S/),g=e.isInsideJsxElement(i,s[c]),m=g?"{/*":"//",y=c;y<=u;y++){var v=i.text.substring(s[y],i.getLineEndOfPosition(s[y])),h=f.exec(v);h&&(_=Math.min(_,h.index),p.set(y.toString(),h.index),v.substr(h.index,m.length)!==m&&(d=void 0===n||n))}for(y=c;y<=u;y++)if(c===u||s[y]!==r.end){var D=p.get(y.toString());void 0!==D&&(g?a.push.apply(a,L(t,{pos:s[y]+_,end:i.getLineEndOfPosition(s[y])},d,g)):d?a.push({newText:m,span:{length:0,start:s[y]+_}}):i.text.substr(s[y]+D,m.length)===m&&a.push({newText:"",span:{length:m.length,start:s[y]+D}}))}return a}function L(t,r,n,i){for(var a,o=l.getCurrentSourceFile(t),s=[],c=o.text,u=!1,d=n||!1,_=[],p=r.pos,f=void 0!==i?i:e.isInsideJsxElement(o,p),g=f?"{/*":"/*",m=f?"*/}":"*/",y=f?"\\{\\/\\*":"\\/\\*",v=f?"\\*\\/\\}":"\\*\\/";p<=r.end;){var h=c.substr(p,g.length)===g?g.length:0,D=e.isInComment(o,p+h);if(D)f&&(D.pos--,D.end++),_.push(D.pos),3===D.kind&&_.push(D.end),u=!0,p=D.end+1;else{var x=c.substring(p,r.end).search("("+y+")|("+v+")");d=void 0!==n?n:d||!e.isTextWhiteSpaceLike(c,p,-1===x?r.end:p+x),p=-1===x?r.end+1:p+x+m.length}}if(d||!u){2!==(null===(a=e.isInComment(o,r.pos))||void 0===a?void 0:a.kind)&&e.insertSorted(_,r.pos,e.compareValues),e.insertSorted(_,r.end,e.compareValues);var b=_[0];c.substr(b,g.length)!==g&&s.push({newText:g,span:{length:0,start:b}});for(var S=1;S<_.length-1;S++)c.substr(_[S]-m.length,m.length)!==m&&s.push({newText:m,span:{length:0,start:_[S]}}),c.substr(_[S],g.length)!==g&&s.push({newText:g,span:{length:0,start:_[S]}});s.length%2!=0&&s.push({newText:m,span:{length:0,start:_[_.length-1]}})}else for(var E=0,C=_;E0?T-m.length:0;h=c.substr(k,m.length)===m?m.length:0;s.push({newText:"",span:{length:g.length,start:T-h}})}return s}function R(t){var r=t.openingElement,n=t.closingElement,i=t.parent;return!e.tagNamesAreEquivalent(r.tagName,n.tagName)||e.isJsxElement(i)&&e.tagNamesAreEquivalent(r.tagName,i.openingElement.tagName)&&R(i)}function B(r,n,i,a,o){var s="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:r,startPosition:s[0],endPosition:s[1],program:S(),host:t,formatContext:e.formatting.getFormatContext(a,t),cancellationToken:_,preferences:i,triggerReason:o}}w.forEach((function(e,t){return w.set(e.toString(),Number(t))}));var j={dispose:function(){if(c){var r=i.getKeyForCompilationSettings(c.getCompilerOptions());e.forEach(c.getSourceFiles(),(function(e){return i.releaseDocumentWithKey(e.resolvedPath,r)})),c=void 0}t=void 0},cleanupSemanticCache:function(){c=void 0},getSyntacticDiagnostics:function(e){return D(),c.getSyntacticDiagnostics(h(e),_).slice()},getSemanticDiagnostics:function(t){D();var n=h(t),i=c.getSemanticDiagnostics(n,_);if(!e.getEmitDeclarations(c.getCompilerOptions()))return i.slice();var a=c.getDeclarationDiagnostics(n,_);return r(i,a)},getSuggestionDiagnostics:function(t){return D(),e.computeSuggestionDiagnostics(h(t),c,_)},getCompilerOptionsDiagnostics:function(){return D(),r(c.getOptionsDiagnostics(_),c.getGlobalDiagnostics(_))},getSyntacticClassifications:function(t,r){return e.getSyntacticClassifications(_,l.getCurrentSourceFile(t),r)},getSemanticClassifications:function(t,r,n){return k(t)?(D(),"2020"===(n||"original")?e.classifier.v2020.getSemanticClassifications(c,_,h(t),r):e.getSemanticClassifications(c.getTypeChecker(),_,h(t),c.getClassifiableNames(),r)):[]},getEncodedSyntacticClassifications:function(t,r){return e.getEncodedSyntacticClassifications(_,l.getCurrentSourceFile(t),r)},getEncodedSemanticClassifications:function(t,r,n){return k(t)?(D(),"original"===(n||"original")?e.getEncodedSemanticClassifications(c.getTypeChecker(),_,h(t),c.getClassifiableNames(),r):e.classifier.v2020.getEncodedSemanticClassifications(c,_,h(t),r)):{spans:[],endOfLineState:0}},getCompletionsAtPosition:function(r,i,a){void 0===a&&(a=e.emptyOptions);var o=n(n({},e.identity(a)),{includeCompletionsForModuleExports:a.includeCompletionsForModuleExports||a.includeExternalModuleExports,includeCompletionsWithInsertText:a.includeCompletionsWithInsertText||a.includeInsertTextCompletions});return D(),e.Completions.getCompletionsAtPosition(t,c,f,h(r),i,o,a.triggerCharacter)},getCompletionEntryDetails:function(r,n,i,a,o,s){return void 0===s&&(s=e.emptyOptions),D(),e.Completions.getCompletionEntryDetails(c,f,h(r),n,{name:i,source:o},t,a&&e.formatting.getFormatContext(a,t),s,_)},getCompletionEntrySymbol:function(r,n,i,a,o){return void 0===o&&(o=e.emptyOptions),D(),e.Completions.getCompletionEntrySymbol(c,f,h(r),n,{name:i,source:a},t,o)},getSignatureHelpItems:function(t,r,n){var i=(void 0===n?e.emptyOptions:n).triggerReason;D();var a=h(t);return e.SignatureHelp.getSignatureHelpItems(c,a,r,i,_)},getQuickInfoAtPosition:function(t,r){D();var n=h(t),i=e.getTouchingPropertyName(n,r);if(i!==n){var a=c.getTypeChecker(),o=function(t){if(e.isNewExpression(t.parent)&&t.pos===t.parent.pos)return t.parent.expression;return t}(i),s=function(t,r){var n=N(t);if(n){var i=r.getContextualType(n.parent),a=i&&P(n,r,i,!1);if(a&&1===a.length)return e.first(a)}return r.getSymbolAtLocation(t)}(o,a);if(!s||a.isUnknownSymbol(s)){var u=function(t,r,n){switch(r.kind){case 78:return!e.isLabelName(r)&&!e.isTagName(r);case 201:case 157:return!e.isInComment(t,n);case 107:case 187:case 105:return!0;default:return!1}}(n,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,s,n,e.getContainerNode(o),o)})),d=l.symbolKind,p=l.displayParts,f=l.documentation,g=l.tags;return{kind:d,kindModifiers:e.SymbolDisplay.getSymbolModifiers(s),textSpan:e.createTextSpanFromNode(o,n),displayParts:p,documentation:f,tags:g}}},getDefinitionAtPosition:function(t,r){return D(),e.GoToDefinition.getDefinitionAtPosition(c,h(t),r)},getDefinitionAndBoundSpan:function(t,r){return D(),e.GoToDefinition.getDefinitionAndBoundSpan(c,h(t),r)},getImplementationAtPosition:function(t,r){return D(),e.FindAllReferences.getImplementationsAtPosition(c,_,c.getSourceFiles(),h(t),r)},getTypeDefinitionAtPosition:function(t,r){return D(),e.GoToDefinition.getTypeDefinitionAtPosition(c.getTypeChecker(),h(t),r)},getReferencesAtPosition:function(t,r){return D(),C(e.getTouchingPropertyName(h(t),r),r,{use:1},e.FindAllReferences.toReferenceEntry)},findReferences:function(t,r){return D(),e.FindAllReferences.findReferencedSymbols(c,_,c.getSourceFiles(),h(t),r)},getOccurrencesAtPosition:function(t,r){return e.flatMap(E(t,r,[t]),(function(e){return e.highlightSpans.map((function(t){return n(n({fileName:e.fileName,textSpan:t.textSpan,isWriteAccess:"writtenReference"===t.kind,isDefinition:!1},t.isInString&&{isInString:!0}),t.contextSpan&&{contextSpan:t.contextSpan})}))}))},getDocumentHighlights:E,getNameOrDottedNameSpan:function(t,r,n){var i=l.getCurrentSourceFile(t),a=e.getTouchingPropertyName(i,r);if(a!==i){switch(a.kind){case 201:case 157:case 10:case 94:case 109:case 103:case 105:case 107:case 187:case 78:break;default:return}for(var o=a;;)if(e.isRightSideOfPropertyAccess(o)||e.isRightSideOfQualifiedName(o))o=o.parent;else{if(!e.isNameOfModuleDeclaration(o))break;if(256!==o.parent.parent.kind||o.parent.parent.body!==o.parent)break;o=o.parent.parent.name}return e.createTextSpanFromBounds(o.getStart(),a.getEnd())}},getBreakpointStatementAtPosition:function(t,r){var n=l.getCurrentSourceFile(t);return e.BreakpointResolver.spanInSourceFileAtLocation(n,r)},getNavigateToItems:function(t,r,n,i){void 0===i&&(i=!1),D();var a=n?[h(n)]:c.getSourceFiles();return e.NavigateTo.getNavigateToItems(a,c.getTypeChecker(),_,t,r,i)},getRenameInfo:function(t,r,n){return D(),e.Rename.getRenameInfo(c,h(t),r,n)},getSmartSelectionRange:function(t,r){return e.SmartSelectionRange.getSmartSelectionRange(r,l.getCurrentSourceFile(t))},findRenameLocations:function(t,r,i,a,o){D();var s=h(t),c=e.getAdjustedRenameLocation(e.getTouchingPropertyName(s,r));if(e.isIdentifier(c)&&(e.isJsxOpeningElement(c.parent)||e.isJsxClosingElement(c.parent))&&e.isIntrinsicJsxName(c.escapedText)){var u=c.parent.parent;return[u.openingElement,u.closingElement].map((function(t){var r=e.createTextSpanFromNode(t.tagName,s);return n({fileName:s.fileName,textSpan:r},e.FindAllReferences.toContextSpan(r,s,t.parent))}))}return C(c,r,{findInStrings:i,findInComments:a,providePrefixAndSuffixTextForRename:o,use:2},(function(t,r,n){return e.FindAllReferences.toRenameLocation(t,r,n,o||!1)}))},getNavigationBarItems:function(t){return e.NavigationBar.getNavigationBarItems(l.getCurrentSourceFile(t),_)},getNavigationTree:function(t){return e.NavigationBar.getNavigationTree(l.getCurrentSourceFile(t),_)},getOutliningSpans:function(t){var r=l.getCurrentSourceFile(t);return e.OutliningElementsCollector.collectElements(r,_)},getTodoComments:function(t,r){D();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=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=l.getCurrentSourceFile(t),i=e.getTouchingToken(n,r),a=i.getStart(n)===r?w.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=v(n),o=l.getCurrentSourceFile(t);f("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-i)),i=e.timestamp();var s=e.formatting.SmartIndenter.getIndentation(r,o,a);return f("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-i)),s},getFormattingEditsForRange:function(r,n,i,a){var o=l.getCurrentSourceFile(r);return e.formatting.formatSelection(n,i,o,e.formatting.getFormatContext(v(a),t))},getFormattingEditsForDocument:function(r,n){return e.formatting.formatDocument(l.getCurrentSourceFile(r),e.formatting.getFormatContext(v(n),t))},getFormattingEditsAfterKeystroke:function(r,n,i,a){var o=l.getCurrentSourceFile(r),s=e.formatting.getFormatContext(v(a),t);if(!e.isInComment(o,n))switch(i){case"{":return e.formatting.formatOnOpeningCurly(n,o,s);case"}":return e.formatting.formatOnClosingCurly(n,o,s);case";":return e.formatting.formatOnSemicolon(n,o,s);case"\n":return e.formatting.formatOnEnter(n,o,s)}return[]},getDocCommentTemplateAtPosition:function(r,n){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(t),l.getCurrentSourceFile(r),n)},isValidBraceCompletionAtPosition:function(t,r,n){if(60===n)return!1;var i=l.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=l.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&&R(a)?{newText:""}:void 0}},getSpanOfEnclosingComment:function(t,r,n){var i=l.getCurrentSourceFile(t),a=e.formatting.getRangeOfEnclosingComment(i,r);return!a||n&&3!==a.kind?void 0:e.createTextSpanFromRange(a)},getCodeFixesAtPosition:function(r,n,i,a,o,s){void 0===s&&(s=e.emptyOptions),D();var u=h(r),l=e.createTextSpanFromBounds(n,i),d=e.formatting.getFormatContext(o,t);return e.flatMap(e.deduplicate(a,e.equateValues,e.compareValues),(function(r){return _.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:r,sourceFile:u,span:l,program:c,host:t,cancellationToken:_,formatContext:d,preferences:s})}))},getCombinedCodeFix:function(r,n,i,a){void 0===a&&(a=e.emptyOptions),D(),e.Debug.assert("file"===r.type);var o=h(r.fileName),s=e.formatting.getFormatContext(i,t);return e.codefix.getAllFixes({fixId:n,sourceFile:o,program:c,host:t,cancellationToken:_,formatContext:s,preferences:a})},applyCodeActionCommand:function(t,r){var n="string"==typeof t?r:t;return e.isArray(n)?Promise.all(n.map((function(e){return I(e)}))):I(n)},organizeImports:function(r,n,i){void 0===i&&(i=e.emptyOptions),D(),e.Debug.assert("file"===r.type);var a=h(r.fileName),o=e.formatting.getFormatContext(n,t);return e.OrganizeImports.organizeImports(a,o,t,c,i)},getEditsForFileRename:function(r,n,i,a){return void 0===a&&(a=e.emptyOptions),e.getEditsForFileRename(S(),r,n,t,e.formatting.getFormatContext(i,t),a,y)},getEmitOutput:function(r,n,i){D();var a=h(r),o=t.getCustomTransformers&&t.getCustomTransformers();return e.getFileEmitOutput(c,a,!!n,_,o,i)},getNonBoundSourceFile:function(e){return l.getCurrentSourceFile(e)},getProgram:S,getAutoImportProvider:function(){var e;return null===(e=t.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(t)},getApplicableRefactors:function(t,r,n,i){void 0===n&&(n=e.emptyOptions),D();var a=h(t);return e.refactor.getApplicableRefactors(B(a,r,n,e.emptyOptions,i))},getEditsForRefactor:function(t,r,n,i,a,o){void 0===o&&(o=e.emptyOptions),D();var s=h(t);return e.refactor.getEditsForRefactor(B(s,n,o,r),i,a)},toLineColumnOffset:y.toLineColumnOffset,getSourceMapper:function(){return y},clearSourceMapperCache:function(){return y.clearCache()},prepareCallHierarchy:function(t,r){D();var n=e.CallHierarchy.resolveCallHierarchyDeclaration(c,e.getTouchingPropertyName(h(t),r));return n&&e.mapOneOrMany(n,(function(t){return e.CallHierarchy.createCallHierarchyItem(c,t)}))},provideCallHierarchyIncomingCalls:function(t,r){D();var n=h(t),i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(c,0===r?n:e.getTouchingPropertyName(n,r)));return i?e.CallHierarchy.getIncomingCalls(c,i,_):[]},provideCallHierarchyOutgoingCalls:function(t,r){D();var n=h(t),i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(c,0===r?n:e.getTouchingPropertyName(n,r)));return i?e.CallHierarchy.getOutgoingCalls(c,i):[]},toggleLineComment:M,toggleMultilineComment:L,commentSelection:function(e,t){var r=O(l.getCurrentSourceFile(e),t);return r.firstLine===r.lastLine&&t.pos!==t.end?L(e,t,!0):M(e,t,!0)},uncommentSelection:function(t,r){var n=l.getCurrentSourceFile(t),i=[],a=r.pos,o=r.end;a===o&&(o+=e.isInsideJsxElement(n,a)?2:1);for(var s=a;s<=o;s++){var c=e.isInComment(n,s);if(c){switch(c.kind){case 2:i.push.apply(i,M(t,{end:c.end,pos:c.pos+1},!1));break;case 3:i.push.apply(i,L(t,{end:c.end,pos:c.pos+1},!1))}s=c.end+1}}return i}};switch(s){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:A.forEach((function(e){return j[e]=function(){throw new Error("LanguageService Operation: "+e+" not allowed in LanguageServiceMode.PartialSemantic")}}));break;case e.LanguageServiceMode.Syntactic:F.forEach((function(e){return j[e]=function(){throw new Error("LanguageService Operation: "+e+" not allowed in LanguageServiceMode.Syntactic")}}));break;default:e.Debug.assertNever(s)}return j},e.getNameTable=function(t){return t.nameTable||function(t){var r=t.nameTable=new e.Map;t.forEachChild((function t(n){if(e.isIdentifier(n)&&!e.isTagName(n)&&n.escapedText||e.isStringOrNumericLiteralLike(n)&&function(t){return e.isDeclarationName(t)||272===t.parent.kind||function(e){return e&&e.parent&&202===e.parent.kind&&e.parent.argumentExpression===e}(t)||e.isLiteralComputedPropertyDeclarationName(t)}(n)){var i=e.getEscapedTextOfIdentifierOrLiteral(n);r.set(i,void 0===r.get(i)?n.pos:-1)}else if(e.isPrivateIdentifier(n)){i=n.escapedText;r.set(i,void 0===r.get(i)?n.pos:-1)}if(e.forEachChild(n,t),e.hasJSDocNodes(n))for(var a=0,o=n.jsDoc;ai){var a=e.findPrecedingToken(n.pos,t);if(!a||t.getLineAndCharacterOfPosition(a.getEnd()).line!==i)return;n=a}if(!(8388608&n.flags))return d(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?d(e):d(r)}function u(r){return d(e.findPrecedingToken(r.pos,t))}function l(r){return d(e.findNextToken(r,r.parent,t))}function d(r){if(r){var n=r.parent;switch(r.kind){case 232:return v(r.declarationList.declarations[0]);case 249:case 163:case 162:return v(r);case 160:return function t(r){if(e.isBindingPattern(r.name))return b(r.name);if(function(t){return!!t.initializer||void 0!==t.dotDotDotToken||e.hasSyntacticModifier(t,12)}(r))return o(r);var n=r.parent,i=n.parameters.indexOf(r);return e.Debug.assert(-1!==i),0!==i?t(n.parameters[i-1]):d(n.body)}(r);case 251:case 165:case 164:case 167:case 168:case 166:case 208:case 209:return function(e){if(!e.body)return;if(h(e))return o(e);return d(e.body)}(r);case 230:if(e.isFunctionBlock(r))return function(e){var t=e.statements.length?e.statements[0]:e.getLastToken();if(h(e.parent))return c(e.parent,t);return d(t)}(r);case 257:return D(r);case 287:return D(r.block);case 233:return o(r.expression);case 242:return o(r.getChildAt(0),r.expression);case 236:return s(r,r.expression);case 235:return d(r.statement);case 248:return o(r.getChildAt(0));case 234:return s(r,r.expression);case 245:return d(r.statement);case 241:case 240:return o(r.getChildAt(0),r.label);case 237:return function(e){if(e.initializer)return x(e);if(e.condition)return o(e.condition);if(e.incrementor)return o(e.incrementor)}(r);case 238:return s(r,r.expression);case 239:return x(r);case 244:return s(r,r.expression);case 284:case 285:return d(r.statements[0]);case 247:return D(r.tryBlock);case 246:case 266:return o(r,r.expression);case 260:return o(r,r.moduleReference);case 261:case 267:return o(r,r.moduleSpecifier);case 256:if(1!==e.getModuleInstanceState(r))return;case 252:case 255:case 291:case 198:return o(r);case 243:return d(r.statement);case 161:return m=n.decorators,e.createTextSpanFromBounds(e.skipTrivia(t.text,m.pos),m.end);case 196:case 197:return b(r);case 253:case 254:return;case 26:case 1:return c(e.findPrecedingToken(r.pos,t));case 27:return u(r);case 18:return function(r){switch(r.parent.kind){case 255:var n=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),n.members.length?n.members[0]:n.getLastToken(t));case 252:var i=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),i.members.length?i.members[0]:i.getLastToken(t));case 258:return c(r.parent.parent,r.parent.clauses[0])}return d(r.parent)}(r);case 19:return function(t){switch(t.parent.kind){case 257:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 255:case 252:return o(t);case 230:if(e.isFunctionBlock(t.parent))return o(t);case 287:return d(e.lastOrUndefined(t.parent.statements));case 258:var r=t.parent,n=e.lastOrUndefined(r.clauses);return n?d(e.lastOrUndefined(n.statements)):void 0;case 196:var i=t.parent;return d(e.lastOrUndefined(i.elements)||i);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var a=t.parent;return o(e.lastOrUndefined(a.properties)||a)}return d(t.parent)}}(r);case 23:return function(t){switch(t.parent.kind){case 197:var r=t.parent;return o(e.lastOrUndefined(r.elements)||r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var n=t.parent;return o(e.lastOrUndefined(n.elements)||n)}return d(t.parent)}}(r);case 20:return function(e){if(235===e.parent.kind||203===e.parent.kind||204===e.parent.kind)return u(e);if(207===e.parent.kind)return l(e);return d(e.parent)}(r);case 21:return function(e){switch(e.parent.kind){case 208:case 251:case 209:case 165:case 164:case 167:case 168:case 166:case 236:case 235:case 237:case 239:case 203:case 204:case 207:return u(e);default:return d(e.parent)}}(r);case 58:return function(t){if(e.isFunctionLike(t.parent)||288===t.parent.kind||160===t.parent.kind)return u(t);return d(t.parent)}(r);case 31:case 29:return function(e){if(206===e.parent.kind)return l(e);return d(e.parent)}(r);case 114:return function(e){if(235===e.parent.kind)return s(e,e.parent.expression);return d(e.parent)}(r);case 90:case 82:case 95:return l(r);case 156:return function(e){if(239===e.parent.kind)return l(e);return d(e.parent)}(r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return S(r);if((78===r.kind||220===r.kind||288===r.kind||289===r.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return o(r);if(216===r.kind){var i=r,a=i.left,_=i.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(a))return S(a);if(62===_.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent))return o(r);if(27===_.kind)return d(a)}if(e.isExpressionNode(r))switch(n.kind){case 235:return u(r);case 161:return d(r.parent);case 237:case 239:return o(r);case 216:if(27===r.parent.operatorToken.kind)return o(r);break;case 209:if(r.parent.body===r)return o(r)}switch(r.parent.kind){case 288:if(r.parent.name===r&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent.parent))return d(r.parent.initializer);break;case 206:if(r.parent.type===r)return l(r.parent.type);break;case 249:case 160:var p=r.parent,f=p.initializer,g=p.type;if(f===r||g===r||e.isAssignmentOperator(r.kind))return u(r);break;case 216:a=r.parent.left;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(a)&&r!==a)return u(r);break;default:if(e.isFunctionLike(r.parent)&&r.parent.type===r)return u(r)}return d(r.parent)}}var m;function y(r){return e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]===r?o(e.findPrecedingToken(r.pos,t,r.parent),r):o(r)}function v(r){if(238===r.parent.parent.kind)return d(r.parent.parent);var n=r.parent;return e.isBindingPattern(r.name)?b(r.name):r.initializer||e.hasSyntacticModifier(r,1)||239===n.parent.kind?y(r):e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]!==r?d(e.findPrecedingToken(r.pos,t,r.parent)):void 0}function h(t){return e.hasSyntacticModifier(t,1)||252===t.parent.kind&&166!==t.kind}function D(r){switch(r.parent.kind){case 256:if(1!==e.getModuleInstanceState(r.parent))return;case 236:case 234:case 238:return c(r.parent,r.statements[0]);case 237:case 239:return c(e.findPrecedingToken(r.pos,t,r.parent),r.statements[0])}return d(r.statements[0])}function x(e){if(250!==e.initializer.kind)return d(e.initializer);var t=e.initializer;return t.declarations.length>0?d(t.declarations[0]):void 0}function b(t){var r=e.forEach(t.elements,(function(e){return 222!==e.kind?e:void 0}));return r?d(r):198===t.parent.kind?o(t.parent):y(t.parent)}function S(t){e.Debug.assert(197!==t.kind&&196!==t.kind);var r=199===t.kind?t.elements:t.properties,n=e.forEach(r,(function(e){return 222!==e.kind?e:void 0}));return n?d(n):o(216===t.parent.kind?t.parent:t)}}}}(e.BreakpointResolver||(e.BreakpointResolver={}))}(u||(u={})),function(e){e.transform=function(t,r,n){var i=[];n=e.fixupCompilerOptions(n,i);var a=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,e.factory,n,a,r,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}}(u||(u={}));var u,l=function(){return this}();!function(e){function t(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}var i=function(){function t(e){this.scriptSnapshotShim=e}return t.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},t.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},t.prototype.getChangeRange=function(t){var r=t,n=this.scriptSnapshotShim.getChangeRange(r.scriptSnapshotShim);if(null===n)return null;var i=JSON.parse(n);return e.createTextChangeRange(e.createTextSpan(i.span.start,i.span.length),i.newLength)},t.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},t}(),a=function(){function t(t){var r=this;this.shimHost=t,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(t,n){var i=JSON.parse(r.shimHost.getModuleResolutionsForFile(n));return e.map(t,(function(t){var r=e.getProperty(i,t);return r?{resolvedFileName:r,extension:e.extensionFromPath(r),isExternalLibraryImport:!1}:void 0}))}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return r.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(t,n){var i=JSON.parse(r.shimHost.getTypeReferenceDirectiveResolutionsForFile(n));return e.map(t,(function(t){return e.getProperty(i,t)}))})}return t.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e)},t.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e)},t.prototype.error=function(e){this.shimHost.error(e)},t.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},t.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},t.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},t.prototype.getCompilationSettings=function(){var e=this.shimHost.getCompilationSettings();if(null===e||""===e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var t=JSON.parse(e);return t.allowNonTsExtensions=!0,t},t.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return JSON.parse(e)},t.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new i(t)},t.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},t.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},t.prototype.getLocalizedDiagnosticMessages=function(){var e=this.shimHost.getLocalizedDiagnosticMessages();if(null===e||""===e)return null;try{return JSON.parse(e)}catch(e){return this.log(e.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},t.prototype.getCancellationToken=function(){var t=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(t)},t.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},t.prototype.readDirectory=function(t,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},t.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t}();e.LanguageServiceShimHostAdapter=a;var o=function(){function t(e){var t=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost?this.directoryExists=function(e){return t.shimHost.directoryExists(e)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(e){return t.shimHost.realpath(e)}:this.realpath=void 0}return t.prototype.readDirectory=function(t,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t.prototype.readFile=function(e){return this.shimHost.readFile(e)},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t}();function u(e,t,r,n){return d(e,t,!0,r,n)}function d(r,n,i,a,o){try{var s=function(t,r,n,i){var a;i&&(t.log(r),a=e.timestamp());var o=n();if(i){var s=e.timestamp();if(t.log(r+" completed in "+(s-a)+" msec"),e.isString(o)){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),t.log(" result.length="+c.length+", result='"+JSON.stringify(c)+"'")}}return o}(r,n,a,o);return i?JSON.stringify({result:s}):s}catch(i){return i instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(t(r,i),i.description=n,JSON.stringify({error:i}))}}e.CoreServicesShimHostAdapter=o;var _=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function p(t,r){return t.map((function(t){return function(t,r){return{message:e.flattenDiagnosticMessageText(t.messageText,r),start:t.start,length:t.length,category:e.diagnosticCategoryName(t),code:t.code,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated}}(t,r)}))}e.realizeDiagnostics=p;var f=function(t){function r(e,r,n){var i=t.call(this,e)||this;return i.host=r,i.languageService=n,i.logPerformance=!1,i.logger=i.host,i}return c(r,t),r.prototype.forwardJSONCall=function(e,t){return u(this.logger,e,t,this.logPerformance)},r.prototype.dispose=function(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,l&&l.CollectGarbage&&(l.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,t.prototype.dispose.call(this,e)},r.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",(function(){return null}))},r.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",(function(){return e.languageService.cleanupSemanticCache(),null}))},r.prototype.realizeDiagnostics=function(t){return p(t,e.getNewLineOrDefaultFromHost(this.host))},r.prototype.getSyntacticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getSyntacticClassifications('"+t+"', "+r+", "+n+")",(function(){return i.languageService.getSyntacticClassifications(t,e.createTextSpan(r,n))}))},r.prototype.getSemanticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getSemanticClassifications('"+t+"', "+r+", "+n+")",(function(){return i.languageService.getSemanticClassifications(t,e.createTextSpan(r,n))}))},r.prototype.getEncodedSyntacticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+t+"', "+r+", "+n+")",(function(){return g(i.languageService.getEncodedSyntacticClassifications(t,e.createTextSpan(r,n)))}))},r.prototype.getEncodedSemanticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+t+"', "+r+", "+n+")",(function(){return g(i.languageService.getEncodedSemanticClassifications(t,e.createTextSpan(r,n)))}))},r.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+e+"')",(function(){var r=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(r)}))},r.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('"+e+"')",(function(){var r=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(r)}))},r.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+e+"')",(function(){return t.realizeDiagnostics(t.languageService.getSuggestionDiagnostics(e))}))},r.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",(function(){var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)}))},r.prototype.getQuickInfoAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getQuickInfoAtPosition(e,t)}))},r.prototype.getNameOrDottedNameSpan=function(e,t,r){var n=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+t+", "+r+")",(function(){return n.languageService.getNameOrDottedNameSpan(e,t,r)}))},r.prototype.getBreakpointStatementAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getBreakpointStatementAtPosition(e,t)}))},r.prototype.getSignatureHelpItems=function(e,t,r){var n=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+t+")",(function(){return n.languageService.getSignatureHelpItems(e,t,r)}))},r.prototype.getDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getDefinitionAtPosition(e,t)}))},r.prototype.getDefinitionAndBoundSpan=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+e+"', "+t+")",(function(){return r.languageService.getDefinitionAndBoundSpan(e,t)}))},r.prototype.getTypeDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getTypeDefinitionAtPosition(e,t)}))},r.prototype.getImplementationAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getImplementationAtPosition(e,t)}))},r.prototype.getRenameInfo=function(e,t,r){var n=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+t+")",(function(){return n.languageService.getRenameInfo(e,t,r)}))},r.prototype.getSmartSelectionRange=function(e,t){var r=this;return this.forwardJSONCall("getSmartSelectionRange('"+e+"', "+t+")",(function(){return r.languageService.getSmartSelectionRange(e,t)}))},r.prototype.findRenameLocations=function(e,t,r,n,i){var a=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+t+", "+r+", "+n+", "+i+")",(function(){return a.languageService.findRenameLocations(e,t,r,n,i)}))},r.prototype.getBraceMatchingAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getBraceMatchingAtPosition(e,t)}))},r.prototype.isValidBraceCompletionAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+t+", "+r+")",(function(){return n.languageService.isValidBraceCompletionAtPosition(e,t,r)}))},r.prototype.getSpanOfEnclosingComment=function(e,t,r){var n=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+e+"', "+t+")",(function(){return n.languageService.getSpanOfEnclosingComment(e,t,r)}))},r.prototype.getIndentationAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getIndentationAtPosition('"+e+"', "+t+")",(function(){var i=JSON.parse(r);return n.languageService.getIndentationAtPosition(e,t,i)}))},r.prototype.getReferencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getReferencesAtPosition(e,t)}))},r.prototype.findReferences=function(e,t){var r=this;return this.forwardJSONCall("findReferences('"+e+"', "+t+")",(function(){return r.languageService.findReferences(e,t)}))},r.prototype.getOccurrencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getOccurrencesAtPosition(e,t)}))},r.prototype.getDocumentHighlights=function(t,r,n){var i=this;return this.forwardJSONCall("getDocumentHighlights('"+t+"', "+r+")",(function(){var a=i.languageService.getDocumentHighlights(t,r,JSON.parse(n)),o=e.toFileNameLowerCase(e.normalizeSlashes(t));return e.filter(a,(function(t){return e.toFileNameLowerCase(e.normalizeSlashes(t.fileName))===o}))}))},r.prototype.getCompletionsAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+t+", "+r+")",(function(){return n.languageService.getCompletionsAtPosition(e,t,r)}))},r.prototype.getCompletionEntryDetails=function(e,t,r,n,i,a){var o=this;return this.forwardJSONCall("getCompletionEntryDetails('"+e+"', "+t+", '"+r+"')",(function(){var s=void 0===n?void 0:JSON.parse(n);return o.languageService.getCompletionEntryDetails(e,t,r,s,i,a)}))},r.prototype.getFormattingEditsForRange=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('"+e+"', "+t+", "+r+")",(function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsForRange(e,t,r,a)}))},r.prototype.getFormattingEditsForDocument=function(e,t){var r=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+e+"')",(function(){var n=JSON.parse(t);return r.languageService.getFormattingEditsForDocument(e,n)}))},r.prototype.getFormattingEditsAfterKeystroke=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+e+"', "+t+", '"+r+"')",(function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsAfterKeystroke(e,t,r,a)}))},r.prototype.getDocCommentTemplateAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getDocCommentTemplateAtPosition(e,t)}))},r.prototype.getNavigateToItems=function(e,t,r){var n=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+t+", "+r+")",(function(){return n.languageService.getNavigateToItems(e,t,r)}))},r.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",(function(){return t.languageService.getNavigationBarItems(e)}))},r.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",(function(){return t.languageService.getNavigationTree(e)}))},r.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",(function(){return t.languageService.getOutliningSpans(e)}))},r.prototype.getTodoComments=function(e,t){var r=this;return this.forwardJSONCall("getTodoComments('"+e+"')",(function(){return r.languageService.getTodoComments(e,JSON.parse(t))}))},r.prototype.prepareCallHierarchy=function(e,t){var r=this;return this.forwardJSONCall("prepareCallHierarchy('"+e+"', "+t+")",(function(){return r.languageService.prepareCallHierarchy(e,t)}))},r.prototype.provideCallHierarchyIncomingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('"+e+"', "+t+")",(function(){return r.languageService.provideCallHierarchyIncomingCalls(e,t)}))},r.prototype.provideCallHierarchyOutgoingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('"+e+"', "+t+")",(function(){return r.languageService.provideCallHierarchyOutgoingCalls(e,t)}))},r.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",(function(){var r=t.languageService.getEmitOutput(e),i=r.diagnostics,a=s(r,["diagnostics"]);return n(n({},a),{diagnostics:t.realizeDiagnostics(i)})}))},r.prototype.getEmitOutputObject=function(e){var t=this;return d(this.logger,"getEmitOutput('"+e+"')",!1,(function(){return t.languageService.getEmitOutput(e)}),this.logPerformance)},r.prototype.toggleLineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleLineComment('"+e+"', '"+JSON.stringify(t)+"')",(function(){return r.languageService.toggleLineComment(e,t)}))},r.prototype.toggleMultilineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleMultilineComment('"+e+"', '"+JSON.stringify(t)+"')",(function(){return r.languageService.toggleMultilineComment(e,t)}))},r.prototype.commentSelection=function(e,t){var r=this;return this.forwardJSONCall("commentSelection('"+e+"', '"+JSON.stringify(t)+"')",(function(){return r.languageService.commentSelection(e,t)}))},r.prototype.uncommentSelection=function(e,t){var r=this;return this.forwardJSONCall("uncommentSelection('"+e+"', '"+JSON.stringify(t)+"')",(function(){return r.languageService.uncommentSelection(e,t)}))},r}(_);function g(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var m=function(t){function r(r,n){var i=t.call(this,r)||this;return i.logger=n,i.logPerformance=!1,i.classifier=e.createClassifier(),i}return c(r,t),r.prototype.getEncodedLexicalClassifications=function(e,t,r){var n=this;return void 0===r&&(r=!1),u(this.logger,"getEncodedLexicalClassifications",(function(){return g(n.classifier.getEncodedLexicalClassifications(e,t,r))}),this.logPerformance)},r.prototype.getClassificationsForLine=function(e,t,r){void 0===r&&(r=!1);for(var n=this.classifier.getClassificationsForLine(e,t,r),i="",a=0,o=n.entries;a=1&&arguments.length<=3?e.factory.createVariableDeclaration(t,void 0,r,n):e.Debug.fail("Argument count mismatch")}),t),e.updateVariableDeclaration=e.Debug.deprecate((function(t,r,n,i,a){return 5===arguments.length?e.factory.updateVariableDeclaration(t,r,n,i,a):4===arguments.length?e.factory.updateVariableDeclaration(t,r,t.exclamationToken,n,i):e.Debug.fail("Argument count mismatch")}),t),e.createImportClause=e.Debug.deprecate((function(t,r,n){return void 0===n&&(n=!1),e.factory.createImportClause(n,t,r)}),t),e.updateImportClause=e.Debug.deprecate((function(t,r,n,i){return e.factory.updateImportClause(t,i,r,n)}),t),e.createExportDeclaration=e.Debug.deprecate((function(t,r,n,i,a){return void 0===a&&(a=!1),e.factory.createExportDeclaration(t,r,a,n,i)}),t),e.updateExportDeclaration=e.Debug.deprecate((function(t,r,n,i,a,o){return e.factory.updateExportDeclaration(t,r,n,o,i,a)}),t),e.createJSDocParamTag=e.Debug.deprecate((function(t,r,n,i){return e.factory.createJSDocParameterTag(void 0,t,r,n,!1,i)}),t),e.createComma=e.Debug.deprecate((function(t,r){return e.factory.createComma(t,r)}),t),e.createLessThan=e.Debug.deprecate((function(t,r){return e.factory.createLessThan(t,r)}),t),e.createAssignment=e.Debug.deprecate((function(t,r){return e.factory.createAssignment(t,r)}),t),e.createStrictEquality=e.Debug.deprecate((function(t,r){return e.factory.createStrictEquality(t,r)}),t),e.createStrictInequality=e.Debug.deprecate((function(t,r){return e.factory.createStrictInequality(t,r)}),t),e.createAdd=e.Debug.deprecate((function(t,r){return e.factory.createAdd(t,r)}),t),e.createSubtract=e.Debug.deprecate((function(t,r){return e.factory.createSubtract(t,r)}),t),e.createLogicalAnd=e.Debug.deprecate((function(t,r){return e.factory.createLogicalAnd(t,r)}),t),e.createLogicalOr=e.Debug.deprecate((function(t,r){return e.factory.createLogicalOr(t,r)}),t),e.createPostfixIncrement=e.Debug.deprecate((function(t){return e.factory.createPostfixIncrement(t)}),t),e.createLogicalNot=e.Debug.deprecate((function(t){return e.factory.createLogicalNot(t)}),t),e.createNode=e.Debug.deprecate((function(t,r,n){return void 0===r&&(r=0),void 0===n&&(n=0),e.setTextRangePosEnd(297===t?e.parseBaseNodeFactory.createBaseSourceFileNode(t):78===t?e.parseBaseNodeFactory.createBaseIdentifierNode(t):79===t?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(t):e.isNodeKind(t)?e.parseBaseNodeFactory.createBaseNode(t):e.parseBaseNodeFactory.createBaseTokenNode(t),r,n)}),{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate((function(t){var r=e.factory.cloneNode(t);return e.setTextRange(r,t),e.setParent(r,t.parent),r}),{since:"4.0",warnAfter:"4.1",message:"Use `factory.cloneNode` instead and use `setCommentRange` or `setSourceMapRange` and avoid setting `parent`."}),e.isTypeAssertion=e.Debug.deprecate((function(e){return 206===e.kind}),{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."})}(u||(u={}))})),vo="object"==typeof t&&t&&t.Object===Object&&t,ho="object"==typeof self&&self&&self.Object===Object&&self,Do=(vo||ho||Function("return this")()).Symbol;var xo=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r",""":'"',"'":"'"}),jo=/&(?:amp|lt|gt|quot|#39);/g,Jo=RegExp(jo.source);var Ko=function(e){return(e=Ro(e))&&Jo.test(e)?e.replace(jo,Bo):e},zo=r((function(e,t){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.AST_NODE_TYPES=void 0,function(e){e.ArrayExpression="ArrayExpression",e.ArrayPattern="ArrayPattern",e.ArrowFunctionExpression="ArrowFunctionExpression",e.AssignmentExpression="AssignmentExpression",e.AssignmentPattern="AssignmentPattern",e.AwaitExpression="AwaitExpression",e.BinaryExpression="BinaryExpression",e.BlockStatement="BlockStatement",e.BreakStatement="BreakStatement",e.CallExpression="CallExpression",e.CatchClause="CatchClause",e.ChainExpression="ChainExpression",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.ImportDeclaration="ImportDeclaration",e.ImportDefaultSpecifier="ImportDefaultSpecifier",e.ImportExpression="ImportExpression",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.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.TSBigIntKeyword="TSBigIntKeyword",e.TSBooleanKeyword="TSBooleanKeyword",e.TSCallSignatureDeclaration="TSCallSignatureDeclaration",e.TSClassImplements="TSClassImplements",e.TSConditionalType="TSConditionalType",e.TSConstructorType="TSConstructorType",e.TSConstructSignatureDeclaration="TSConstructSignatureDeclaration",e.TSDeclareFunction="TSDeclareFunction",e.TSDeclareKeyword="TSDeclareKeyword",e.TSEmptyBodyFunctionExpression="TSEmptyBodyFunctionExpression",e.TSEnumDeclaration="TSEnumDeclaration",e.TSEnumMember="TSEnumMember",e.TSExportAssignment="TSExportAssignment",e.TSExportKeyword="TSExportKeyword",e.TSExternalModuleReference="TSExternalModuleReference",e.TSFunctionType="TSFunctionType",e.TSImportEqualsDeclaration="TSImportEqualsDeclaration",e.TSImportType="TSImportType",e.TSIndexedAccessType="TSIndexedAccessType",e.TSIndexSignature="TSIndexSignature",e.TSInferType="TSInferType",e.TSInterfaceBody="TSInterfaceBody",e.TSInterfaceDeclaration="TSInterfaceDeclaration",e.TSInterfaceHeritage="TSInterfaceHeritage",e.TSIntersectionType="TSIntersectionType",e.TSLiteralType="TSLiteralType",e.TSMappedType="TSMappedType",e.TSMethodSignature="TSMethodSignature",e.TSModuleBlock="TSModuleBlock",e.TSModuleDeclaration="TSModuleDeclaration",e.TSNamedTupleMember="TSNamedTupleMember",e.TSNamespaceExportDeclaration="TSNamespaceExportDeclaration",e.TSNeverKeyword="TSNeverKeyword",e.TSNonNullExpression="TSNonNullExpression",e.TSNullKeyword="TSNullKeyword",e.TSNumberKeyword="TSNumberKeyword",e.TSObjectKeyword="TSObjectKeyword",e.TSOptionalType="TSOptionalType",e.TSParameterProperty="TSParameterProperty",e.TSParenthesizedType="TSParenthesizedType",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.TSTemplateLiteralType="TSTemplateLiteralType",e.TSThisType="TSThisType",e.TSTupleType="TSTupleType",e.TSTypeAliasDeclaration="TSTypeAliasDeclaration",e.TSTypeAnnotation="TSTypeAnnotation",e.TSTypeAssertion="TSTypeAssertion",e.TSTypeLiteral="TSTypeLiteral",e.TSTypeOperator="TSTypeOperator",e.TSTypeParameter="TSTypeParameter",e.TSTypeParameterDeclaration="TSTypeParameterDeclaration",e.TSTypeParameterInstantiation="TSTypeParameterInstantiation",e.TSTypePredicate="TSTypePredicate",e.TSTypeQuery="TSTypeQuery",e.TSTypeReference="TSTypeReference",e.TSUndefinedKeyword="TSUndefinedKeyword",e.TSUnionType="TSUnionType",e.TSUnknownKeyword="TSUnknownKeyword",e.TSVoidKeyword="TSVoidKeyword"}(r||(r={})),t.AST_NODE_TYPES=r})),Uo=r((function(e,t){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.AST_TOKEN_TYPES=void 0,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"}(r||(r={})),t.AST_TOKEN_TYPES=r})),Vo=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0})})),qo=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0})})),Wo=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0})})),Ho=r((function(e,r){var n=t&&t.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=t&&t.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},o=t&&t.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(r,"__esModule",{value:!0}),r.TSESTree=r.AST_TOKEN_TYPES=r.AST_NODE_TYPES=void 0,Object.defineProperty(r,"AST_NODE_TYPES",{enumerable:!0,get:function(){return zo.AST_NODE_TYPES}}),Object.defineProperty(r,"AST_TOKEN_TYPES",{enumerable:!0,get:function(){return Uo.AST_TOKEN_TYPES}}),a(Vo,r),a(qo,r),r.TSESTree=o(Wo)})),Go=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0})})),Yo=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0})})),Xo=r((function(e,r){var n=t&&t.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),r.TSESTree=r.AST_TOKEN_TYPES=r.AST_NODE_TYPES=void 0,Object.defineProperty(r,"AST_NODE_TYPES",{enumerable:!0,get:function(){return Ho.AST_NODE_TYPES}}),Object.defineProperty(r,"AST_TOKEN_TYPES",{enumerable:!0,get:function(){return Ho.AST_TOKEN_TYPES}}),Object.defineProperty(r,"TSESTree",{enumerable:!0,get:function(){return Ho.TSESTree}}),i(Go,r),i(Yo,r)})),Qo=r((function(e,r){var n=t&&t.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=t&&t.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=t&&t.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.firstDefined=r.nodeHasTokens=r.createError=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;const s=o(Ko),c=a(yo),u=c.SyntaxKind,l=[u.BarBarToken,u.AmpersandAmpersandToken,u.QuestionQuestionToken];function d(e){return e.kind>=u.FirstAssignment&&e.kind<=u.LastAssignment}function _(e){return l.includes(e.kind)}function p(e){return e.kind===u.SingleLineCommentTrivia||e.kind===u.MultiLineCommentTrivia}function f(e){return e.kind===u.JSDocComment}function g(e,t){const r=t.getLineAndCharacterOfPosition(e);return{line:r.line+1,column:r.character}}function m(e,t,r){return{start:g(e,r),end:g(t,r)}}function y(e){return e.kind>=u.FirstToken&&e.kind<=u.LastToken}function v(e){return e.kind>=u.JsxElement&&e.kind<=u.JsxAttribute}function h(e,t){for(;e;){if(t(e))return e;e=e.parent}}function D(e){return!!h(e,v)}function x(e){return e.type===Xo.AST_NODE_TYPES.ChainExpression}function b(e){if("originalKeywordKind"in e&&e.originalKeywordKind)return e.originalKeywordKind===u.NullKeyword?Xo.AST_TOKEN_TYPES.Null:e.originalKeywordKind>=u.FirstFutureReservedWord&&e.originalKeywordKind<=u.LastKeyword?Xo.AST_TOKEN_TYPES.Identifier:Xo.AST_TOKEN_TYPES.Keyword;if(e.kind>=u.FirstKeyword&&e.kind<=u.LastFutureReservedWord)return e.kind===u.FalseKeyword||e.kind===u.TrueKeyword?Xo.AST_TOKEN_TYPES.Boolean:Xo.AST_TOKEN_TYPES.Keyword;if(e.kind>=u.FirstPunctuation&&e.kind<=u.LastBinaryOperator)return Xo.AST_TOKEN_TYPES.Punctuator;if(e.kind>=u.NoSubstitutionTemplateLiteral&&e.kind<=u.TemplateTail)return Xo.AST_TOKEN_TYPES.Template;switch(e.kind){case u.NumericLiteral:return Xo.AST_TOKEN_TYPES.Numeric;case u.JsxText:return Xo.AST_TOKEN_TYPES.JSXText;case u.StringLiteral:return!e.parent||e.parent.kind!==u.JsxAttribute&&e.parent.kind!==u.JsxElement?Xo.AST_TOKEN_TYPES.String:Xo.AST_TOKEN_TYPES.JSXText;case u.RegularExpressionLiteral:return Xo.AST_TOKEN_TYPES.RegularExpression;case u.Identifier:case u.ConstructorKeyword:case u.GetKeyword:case u.SetKeyword:}if(e.parent&&e.kind===u.Identifier){if(v(e.parent))return Xo.AST_TOKEN_TYPES.JSXIdentifier;if(e.parent.kind===u.PropertyAccessExpression&&D(e))return Xo.AST_TOKEN_TYPES.JSXIdentifier}return Xo.AST_TOKEN_TYPES.Identifier}function S(e,t){const r=e.kind===u.JsxText?e.getFullStart():e.getStart(t),n=e.getEnd(),i=t.text.slice(r,n),a=b(e);return a===Xo.AST_TOKEN_TYPES.RegularExpression?{type:a,value:i,range:[r,n],loc:m(r,n,t),regex:{pattern:i.slice(1,i.lastIndexOf("/")),flags:i.slice(i.lastIndexOf("/")+1)}}:{type:a,value:i,range:[r,n],loc:m(r,n,t)}}function E(e,t){return e.kind===u.EndOfFileToken?!!e.jsDoc:0!==e.getWidth(t)}function C(e,t){if(void 0!==e)for(let r=0;rt.kind===e))},r.getLastModifier=function(e){return!!e.modifiers&&!!e.modifiers.length&&e.modifiers[e.modifiers.length-1]||null},r.isComma=function(e){return e.kind===u.CommaToken},r.isComment=p,r.isJSDocComment=f,r.getBinaryExpressionType=function(e){return d(e)?Xo.AST_NODE_TYPES.AssignmentExpression:_(e)?Xo.AST_NODE_TYPES.LogicalExpression:Xo.AST_NODE_TYPES.BinaryExpression},r.getLineAndCharacterFor=g,r.getLocFor=m,r.canContainDirective=function(e){if(e.kind===c.SyntaxKind.Block)switch(e.parent.kind){case c.SyntaxKind.Constructor:case c.SyntaxKind.GetAccessor:case c.SyntaxKind.SetAccessor:case c.SyntaxKind.ArrowFunction:case c.SyntaxKind.FunctionExpression:case c.SyntaxKind.FunctionDeclaration:case c.SyntaxKind.MethodDeclaration:return!0;default:return!1}return!0},r.getRange=function(e,t){return[e.getStart(t),e.getEnd()]},r.isToken=y,r.isJSXToken=v,r.getDeclarationKind=function(e){return e.flags&c.NodeFlags.Let?"let":e.flags&c.NodeFlags.Const?"const":"var"},r.getTSNodeAccessibility=function(e){const t=e.modifiers;if(!t)return null;for(let e=0;e(n.pos<=e.pos&&n.end>e.end||n.pos===e.end)&&E(n,r)?t(n):void 0))}(t)},r.findFirstMatchingAncestor=h,r.hasJSXAncestor=D,r.unescapeStringLiteralText=function(e){return s.default(e)},r.isComputedProperty=function(e){return e.kind===u.ComputedPropertyName},r.isOptional=function(e){return!!e.questionToken&&e.questionToken.kind===u.QuestionToken},r.isChainExpression=x,r.isChildUnwrappableOptionalChain=function(e,t){return!(!x(t)||e.expression.kind===c.SyntaxKind.ParenthesizedExpression)},r.getTokenType=b,r.convertToken=S,r.convertTokens=function(e){const t=[];return function r(n){if(!p(n)&&!f(n))if(y(n)&&n.kind!==u.EndOfFileToken){const r=S(n,e);r&&t.push(r)}else n.getChildren(e).forEach(r)}(e),t},r.createError=function(e,t,r){const n=e.getLineAndCharacterOfPosition(t);return{index:t,lineNumber:n.line+1,column:n.character,message:r}},r.nodeHasTokens=E,r.firstDefined=C})),$o=r((function(e,r){var n=t&&t.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=t&&t.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=t&&t.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(r,"__esModule",{value:!0}),r.typescriptVersionIsAtLeast=void 0;const o=a(Ci),s=a(yo);function c(e){return o.satisfies(s.version,">= ".concat(e,".0 || >= ").concat(e,".1-rc || >= ").concat(e,".0-beta"),{includePrerelease:!0})}const u=["3.7","3.8","3.9","4.0"],l={};r.typescriptVersionIsAtLeast=l;for(const e of u)l[e]=c(e)})),Zo=r((function(e,r){var n=t&&t.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=t&&t.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=t&&t.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(r,"__esModule",{value:!0}),r.Converter=r.convertError=void 0;const o=a(yo),s=o.SyntaxKind;r.convertError=function(e){return Qo.createError(e.file,e.start,e.message||e.messageText)};r.Converter=class{constructor(e,t){this.esTreeNodeToTSNodeMap=new WeakMap,this.tsNodeToESTreeNodeMap=new WeakMap,this.allowPattern=!1,this.inTypeMode=!1,this.ast=e,this.options=Object.assign({},t)}getASTMaps(){return{esTreeNodeToTSNodeMap:this.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:this.tsNodeToESTreeNodeMap}}convertProgram(){return this.converter(this.ast)}converter(e,t,r,n){if(!e)return null;const i=this.inTypeMode,a=this.allowPattern;void 0!==r&&(this.inTypeMode=r),void 0!==n&&(this.allowPattern=n);const o=this.convertNode(e,null!=t?t:e.parent);return this.registerTSNodeInNodeMap(e,o),this.inTypeMode=i,this.allowPattern=a,o}fixExports(e,t){if(e.modifiers&&e.modifiers[0].kind===s.ExportKeyword){this.registerTSNodeInNodeMap(e,t);const r=e.modifiers[0],n=e.modifiers[1],i=n&&n.kind===s.DefaultKeyword,a=i?Qo.findNextToken(n,this.ast,this.ast):Qo.findNextToken(r,this.ast,this.ast);if(t.range[0]=a.getStart(this.ast),t.loc=Qo.getLocFor(t.range[0],t.range[1],this.ast),i)return this.createNode(e,{type:Xo.AST_NODE_TYPES.ExportDefaultDeclaration,declaration:t,range:[r.getStart(this.ast),t.range[1]],exportKind:"value"});{const n=t.type===Xo.AST_NODE_TYPES.TSInterfaceDeclaration||t.type===Xo.AST_NODE_TYPES.TSTypeAliasDeclaration,i=!0===t.declare;return this.createNode(e,{type:Xo.AST_NODE_TYPES.ExportNamedDeclaration,declaration:t,specifiers:[],source:null,exportKind:n||i?"type":"value",range:[r.getStart(this.ast),t.range[1]]})}}return t}registerTSNodeInNodeMap(e,t){t&&this.options.shouldPreserveNodeMaps&&(this.tsNodeToESTreeNodeMap.has(e)||this.tsNodeToESTreeNodeMap.set(e,t))}convertPattern(e,t){return this.converter(e,t,this.inTypeMode,!0)}convertChild(e,t){return this.converter(e,t,this.inTypeMode,!1)}convertType(e,t){return this.converter(e,t,!0,!1)}createNode(e,t){const r=t;return r.range||(r.range=Qo.getRange(e,this.ast)),r.loc||(r.loc=Qo.getLocFor(r.range[0],r.range[1],this.ast)),r&&this.options.shouldPreserveNodeMaps&&this.esTreeNodeToTSNodeMap.set(r,e),r}convertBindingNameWithTypeAnnotation(e,t,r){const n=this.convertPattern(e);return t&&(n.typeAnnotation=this.convertTypeAnnotation(t,r),this.fixParentLocation(n,n.typeAnnotation.range)),n}convertTypeAnnotation(e,t){const r=(null==t?void 0:t.kind)===s.FunctionType||(null==t?void 0:t.kind)===s.ConstructorType?2:1,n=e.getFullStart()-r,i=Qo.getLocFor(n,e.end,this.ast);return{type:Xo.AST_NODE_TYPES.TSTypeAnnotation,loc:i,range:[n,e.end],typeAnnotation:this.convertType(e)}}convertBodyExpressions(e,t){let r=Qo.canContainDirective(t);return e.map((e=>{const t=this.convertChild(e);if(r){if((null==t?void 0:t.expression)&&o.isExpressionStatement(e)&&o.isStringLiteral(e.expression)){const e=t.expression.raw;return t.directive=e.slice(1,-1),t}r=!1}return t})).filter((e=>e))}convertTypeArgumentsToTypeParameters(e,t){const r=Qo.findNextToken(e,this.ast,this.ast);return this.createNode(t,{type:Xo.AST_NODE_TYPES.TSTypeParameterInstantiation,range:[e.pos-1,r.end],params:e.map((e=>this.convertType(e)))})}convertTSTypeParametersToTypeParametersDeclaration(e){const t=Qo.findNextToken(e,this.ast,this.ast);return{type:Xo.AST_NODE_TYPES.TSTypeParameterDeclaration,range:[e.pos-1,t.end],loc:Qo.getLocFor(e.pos-1,t.end,this.ast),params:e.map((e=>this.convertType(e)))}}convertParameters(e){return e&&e.length?e.map((e=>{var t;const r=this.convertChild(e);return(null===(t=e.decorators)||void 0===t?void 0:t.length)&&(r.decorators=e.decorators.map((e=>this.convertChild(e)))),r})):[]}convertChainExpression(e,t){const{child:r,isOptional:n}=e.type===Xo.AST_NODE_TYPES.MemberExpression?{child:e.object,isOptional:e.optional}:e.type===Xo.AST_NODE_TYPES.CallExpression?{child:e.callee,isOptional:e.optional}:{child:e.expression,isOptional:!1},i=Qo.isChildUnwrappableOptionalChain(t,r);if(!i&&!n)return e;if(i&&Qo.isChainExpression(r)){const t=r.expression;e.type===Xo.AST_NODE_TYPES.MemberExpression?e.object=t:e.type===Xo.AST_NODE_TYPES.CallExpression?e.callee=t:e.expression=t}return this.createNode(t,{type:Xo.AST_NODE_TYPES.ChainExpression,expression:e})}deeplyCopy(e){if(e.kind===o.SyntaxKind.JSDocFunctionType)throw Qo.createError(this.ast,e.pos,"JSDoc types can only be used inside documentation comments.");const t="TS".concat(s[e.kind]);if(this.options.errorOnUnknownASTType&&!Xo.AST_NODE_TYPES[t])throw new Error('Unknown AST_NODE_TYPE: "'.concat(t,'"'));const r=this.createNode(e,{type:t});return"type"in e&&(r.typeAnnotation=e.type&&"kind"in e.type&&o.isTypeNode(e.type)?this.convertTypeAnnotation(e.type,e):null),"typeArguments"in e&&(r.typeParameters=e.typeArguments&&"pos"in e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments,e):null),"typeParameters"in e&&(r.typeParameters=e.typeParameters&&"pos"in e.typeParameters?this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters):null),"decorators"in e&&e.decorators&&e.decorators.length&&(r.decorators=e.decorators.map((e=>this.convertChild(e)))),Object.entries(e).filter((([e])=>!/^(?:_children|kind|parent|pos|end|flags|modifierFlagsCache|jsDoc|type|typeArguments|typeParameters|decorators)$/.test(e))).forEach((([e,t])=>{Array.isArray(t)?r[e]=t.map((e=>this.convertChild(e))):t&&"object"==typeof t&&t.kind?r[e]=this.convertChild(t):r[e]=t})),r}convertJSXTagName(e,t){let r;switch(e.kind){case s.PropertyAccessExpression:if(e.name.kind===s.PrivateIdentifier)throw new Error("Non-private identifier expected.");r=this.createNode(e,{type:Xo.AST_NODE_TYPES.JSXMemberExpression,object:this.convertJSXTagName(e.expression,t),property:this.convertJSXTagName(e.name,t)});break;case s.ThisKeyword:r=this.createNode(e,{type:Xo.AST_NODE_TYPES.JSXIdentifier,name:"this"});break;case s.Identifier:default:r=this.createNode(e,{type:Xo.AST_NODE_TYPES.JSXIdentifier,name:e.text})}return this.registerTSNodeInNodeMap(e,r),r}applyModifiersToResult(e,t){if(!t||!t.length)return;const r={};for(let n=0;n!r[t]));n&&n.length&&(e.modifiers=n.map((e=>this.convertChild(e))))}fixParentLocation(e,t){t[0]e.range[1]&&(e.range[1]=t[1],e.loc.end=Qo.getLineAndCharacterFor(e.range[1],this.ast))}convertNode(e,t){var r,n,i,a,c,u,l,d,_,p;switch(e.kind){case s.SourceFile:return this.createNode(e,{type:Xo.AST_NODE_TYPES.Program,body:this.convertBodyExpressions(e.statements,e),sourceType:e.externalModuleIndicator?"module":"script",range:[e.getStart(this.ast),e.endOfFileToken.end]});case s.Block:return this.createNode(e,{type:Xo.AST_NODE_TYPES.BlockStatement,body:this.convertBodyExpressions(e.statements,e)});case s.Identifier:return this.createNode(e,{type:Xo.AST_NODE_TYPES.Identifier,name:e.text});case s.WithStatement:return this.createNode(e,{type:Xo.AST_NODE_TYPES.WithStatement,object:this.convertChild(e.expression),body:this.convertChild(e.statement)});case s.ReturnStatement:return this.createNode(e,{type:Xo.AST_NODE_TYPES.ReturnStatement,argument:this.convertChild(e.expression)});case s.LabeledStatement:return this.createNode(e,{type:Xo.AST_NODE_TYPES.LabeledStatement,label:this.convertChild(e.label),body:this.convertChild(e.statement)});case s.ContinueStatement:return this.createNode(e,{type:Xo.AST_NODE_TYPES.ContinueStatement,label:this.convertChild(e.label)});case s.BreakStatement:return this.createNode(e,{type:Xo.AST_NODE_TYPES.BreakStatement,label:this.convertChild(e.label)});case s.IfStatement:return this.createNode(e,{type:Xo.AST_NODE_TYPES.IfStatement,test:this.convertChild(e.expression),consequent:this.convertChild(e.thenStatement),alternate:this.convertChild(e.elseStatement)});case s.SwitchStatement:return this.createNode(e,{type:Xo.AST_NODE_TYPES.SwitchStatement,discriminant:this.convertChild(e.expression),cases:e.caseBlock.clauses.map((e=>this.convertChild(e)))});case s.CaseClause:case s.DefaultClause:return this.createNode(e,{type:Xo.AST_NODE_TYPES.SwitchCase,test:e.kind===s.CaseClause?this.convertChild(e.expression):null,consequent:e.statements.map((e=>this.convertChild(e)))});case s.ThrowStatement:return this.createNode(e,{type:Xo.AST_NODE_TYPES.ThrowStatement,argument:this.convertChild(e.expression)});case s.TryStatement:return this.createNode(e,{type:Xo.AST_NODE_TYPES.TryStatement,block:this.convertChild(e.tryBlock),handler:this.convertChild(e.catchClause),finalizer:this.convertChild(e.finallyBlock)});case s.CatchClause:return this.createNode(e,{type:Xo.AST_NODE_TYPES.CatchClause,param:e.variableDeclaration?this.convertBindingNameWithTypeAnnotation(e.variableDeclaration.name,e.variableDeclaration.type):null,body:this.convertChild(e.block)});case s.WhileStatement:return this.createNode(e,{type:Xo.AST_NODE_TYPES.WhileStatement,test:this.convertChild(e.expression),body:this.convertChild(e.statement)});case s.DoStatement:return this.createNode(e,{type:Xo.AST_NODE_TYPES.DoWhileStatement,test:this.convertChild(e.expression),body:this.convertChild(e.statement)});case s.ForStatement:return this.createNode(e,{type:Xo.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 s.ForInStatement:return this.createNode(e,{type:Xo.AST_NODE_TYPES.ForInStatement,left:this.convertPattern(e.initializer),right:this.convertChild(e.expression),body:this.convertChild(e.statement)});case s.ForOfStatement:return this.createNode(e,{type:Xo.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===s.AwaitKeyword)});case s.FunctionDeclaration:{const t=Qo.hasModifier(s.DeclareKeyword,e),r=this.createNode(e,{type:t||!e.body?Xo.AST_NODE_TYPES.TSDeclareFunction:Xo.AST_NODE_TYPES.FunctionDeclaration,id:this.convertChild(e.name),generator:!!e.asteriskToken,expression:!1,async:Qo.hasModifier(s.AsyncKeyword,e),params:this.convertParameters(e.parameters),body:this.convertChild(e.body)||void 0});return e.type&&(r.returnType=this.convertTypeAnnotation(e.type,e)),t&&(r.declare=!0),e.typeParameters&&(r.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),this.fixExports(e,r)}case s.VariableDeclaration:{const t=this.createNode(e,{type:Xo.AST_NODE_TYPES.VariableDeclarator,id:this.convertBindingNameWithTypeAnnotation(e.name,e.type,e),init:this.convertChild(e.initializer)});return e.exclamationToken&&(t.definite=!0),t}case s.VariableStatement:{const t=this.createNode(e,{type:Xo.AST_NODE_TYPES.VariableDeclaration,declarations:e.declarationList.declarations.map((e=>this.convertChild(e))),kind:Qo.getDeclarationKind(e.declarationList)});return e.decorators&&(t.decorators=e.decorators.map((e=>this.convertChild(e)))),Qo.hasModifier(s.DeclareKeyword,e)&&(t.declare=!0),this.fixExports(e,t)}case s.VariableDeclarationList:return this.createNode(e,{type:Xo.AST_NODE_TYPES.VariableDeclaration,declarations:e.declarations.map((e=>this.convertChild(e))),kind:Qo.getDeclarationKind(e)});case s.ExpressionStatement:return this.createNode(e,{type:Xo.AST_NODE_TYPES.ExpressionStatement,expression:this.convertChild(e.expression)});case s.ThisKeyword:return this.createNode(e,{type:Xo.AST_NODE_TYPES.ThisExpression});case s.ArrayLiteralExpression:return this.allowPattern?this.createNode(e,{type:Xo.AST_NODE_TYPES.ArrayPattern,elements:e.elements.map((e=>this.convertPattern(e)))}):this.createNode(e,{type:Xo.AST_NODE_TYPES.ArrayExpression,elements:e.elements.map((e=>this.convertChild(e)))});case s.ObjectLiteralExpression:return this.allowPattern?this.createNode(e,{type:Xo.AST_NODE_TYPES.ObjectPattern,properties:e.properties.map((e=>this.convertPattern(e)))}):this.createNode(e,{type:Xo.AST_NODE_TYPES.ObjectExpression,properties:e.properties.map((e=>this.convertChild(e)))});case s.PropertyAssignment:return this.createNode(e,{type:Xo.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:this.converter(e.initializer,e,this.inTypeMode,this.allowPattern),computed:Qo.isComputedProperty(e.name),method:!1,shorthand:!1,kind:"init"});case s.ShorthandPropertyAssignment:return e.objectAssignmentInitializer?this.createNode(e,{type:Xo.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:this.createNode(e,{type:Xo.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:Xo.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:this.convertChild(e.name),computed:!1,method:!1,shorthand:!0,kind:"init"});case s.ComputedPropertyName:return this.convertChild(e.expression);case s.PropertyDeclaration:{const t=Qo.hasModifier(s.AbstractKeyword,e),r=this.createNode(e,{type:t?Xo.AST_NODE_TYPES.TSAbstractClassProperty:Xo.AST_NODE_TYPES.ClassProperty,key:this.convertChild(e.name),value:this.convertChild(e.initializer),computed:Qo.isComputedProperty(e.name),static:Qo.hasModifier(s.StaticKeyword,e),readonly:Qo.hasModifier(s.ReadonlyKeyword,e)||void 0,declare:Qo.hasModifier(s.DeclareKeyword,e)});e.type&&(r.typeAnnotation=this.convertTypeAnnotation(e.type,e)),e.decorators&&(r.decorators=e.decorators.map((e=>this.convertChild(e))));const n=Qo.getTSNodeAccessibility(e);return n&&(r.accessibility=n),e.name.kind!==s.Identifier&&e.name.kind!==s.ComputedPropertyName||!e.questionToken||(r.optional=!0),e.exclamationToken&&(r.definite=!0),r.key.type===Xo.AST_NODE_TYPES.Literal&&e.questionToken&&(r.optional=!0),r}case s.GetAccessor:case s.SetAccessor:case s.MethodDeclaration:{const r=this.createNode(e,{type:e.body?Xo.AST_NODE_TYPES.FunctionExpression:Xo.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,id:null,generator:!!e.asteriskToken,expression:!1,async:Qo.hasModifier(s.AsyncKeyword,e),body:this.convertChild(e.body),range:[e.parameters.pos-1,e.end],params:[]});let n;if(e.type&&(r.returnType=this.convertTypeAnnotation(e.type,e)),e.typeParameters&&(r.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters),this.fixParentLocation(r,r.typeParameters.range)),t.kind===s.ObjectLiteralExpression)r.params=e.parameters.map((e=>this.convertChild(e))),n=this.createNode(e,{type:Xo.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:r,computed:Qo.isComputedProperty(e.name),method:e.kind===s.MethodDeclaration,shorthand:!1,kind:"init"});else{r.params=this.convertParameters(e.parameters);const t=Qo.hasModifier(s.AbstractKeyword,e)?Xo.AST_NODE_TYPES.TSAbstractMethodDefinition:Xo.AST_NODE_TYPES.MethodDefinition;n=this.createNode(e,{type:t,key:this.convertChild(e.name),value:r,computed:Qo.isComputedProperty(e.name),static:Qo.hasModifier(s.StaticKeyword,e),kind:"method"}),e.decorators&&(n.decorators=e.decorators.map((e=>this.convertChild(e))));const i=Qo.getTSNodeAccessibility(e);i&&(n.accessibility=i)}return e.questionToken&&(n.optional=!0),e.kind===s.GetAccessor?n.kind="get":e.kind===s.SetAccessor?n.kind="set":n.static||e.name.kind!==s.StringLiteral||"constructor"!==e.name.text||n.type===Xo.AST_NODE_TYPES.Property||(n.kind="constructor"),n}case s.Constructor:{const t=Qo.getLastModifier(e),r=t&&Qo.findNextToken(t,e,this.ast)||e.getFirstToken(),n=this.createNode(e,{type:e.body?Xo.AST_NODE_TYPES.FunctionExpression:Xo.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,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&&(n.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters),this.fixParentLocation(n,n.typeParameters.range)),e.type&&(n.returnType=this.convertTypeAnnotation(e.type,e));const i=this.createNode(e,{type:Xo.AST_NODE_TYPES.Identifier,name:"constructor",range:[r.getStart(this.ast),r.end]}),a=Qo.hasModifier(s.StaticKeyword,e),o=this.createNode(e,{type:Qo.hasModifier(s.AbstractKeyword,e)?Xo.AST_NODE_TYPES.TSAbstractMethodDefinition:Xo.AST_NODE_TYPES.MethodDefinition,key:i,value:n,computed:!1,static:a,kind:a?"method":"constructor"}),c=Qo.getTSNodeAccessibility(e);return c&&(o.accessibility=c),o}case s.FunctionExpression:{const t=this.createNode(e,{type:Xo.AST_NODE_TYPES.FunctionExpression,id:this.convertChild(e.name),generator:!!e.asteriskToken,params:this.convertParameters(e.parameters),body:this.convertChild(e.body),async:Qo.hasModifier(s.AsyncKeyword,e),expression:!1});return e.type&&(t.returnType=this.convertTypeAnnotation(e.type,e)),e.typeParameters&&(t.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),t}case s.SuperKeyword:return this.createNode(e,{type:Xo.AST_NODE_TYPES.Super});case s.ArrayBindingPattern:return this.createNode(e,{type:Xo.AST_NODE_TYPES.ArrayPattern,elements:e.elements.map((e=>this.convertPattern(e)))});case s.OmittedExpression:return null;case s.ObjectBindingPattern:return this.createNode(e,{type:Xo.AST_NODE_TYPES.ObjectPattern,properties:e.elements.map((e=>this.convertPattern(e)))});case s.BindingElement:if(t.kind===s.ArrayBindingPattern){const r=this.convertChild(e.name,t);return e.initializer?this.createNode(e,{type:Xo.AST_NODE_TYPES.AssignmentPattern,left:r,right:this.convertChild(e.initializer)}):e.dotDotDotToken?this.createNode(e,{type:Xo.AST_NODE_TYPES.RestElement,argument:r}):r}{let t;return t=e.dotDotDotToken?this.createNode(e,{type:Xo.AST_NODE_TYPES.RestElement,argument:this.convertChild(null!==(r=e.propertyName)&&void 0!==r?r:e.name)}):this.createNode(e,{type:Xo.AST_NODE_TYPES.Property,key:this.convertChild(null!==(n=e.propertyName)&&void 0!==n?n:e.name),value:this.convertChild(e.name),computed:Boolean(e.propertyName&&e.propertyName.kind===s.ComputedPropertyName),method:!1,shorthand:!e.propertyName,kind:"init"}),e.initializer&&(t.value=this.createNode(e,{type:Xo.AST_NODE_TYPES.AssignmentPattern,left:this.convertChild(e.name),right:this.convertChild(e.initializer),range:[e.name.getStart(this.ast),e.initializer.end]})),t}case s.ArrowFunction:{const t=this.createNode(e,{type:Xo.AST_NODE_TYPES.ArrowFunctionExpression,generator:!1,id:null,params:this.convertParameters(e.parameters),body:this.convertChild(e.body),async:Qo.hasModifier(s.AsyncKeyword,e),expression:e.body.kind!==s.Block});return e.type&&(t.returnType=this.convertTypeAnnotation(e.type,e)),e.typeParameters&&(t.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),t}case s.YieldExpression:return this.createNode(e,{type:Xo.AST_NODE_TYPES.YieldExpression,delegate:!!e.asteriskToken,argument:this.convertChild(e.expression)});case s.AwaitExpression:return this.createNode(e,{type:Xo.AST_NODE_TYPES.AwaitExpression,argument:this.convertChild(e.expression)});case s.NoSubstitutionTemplateLiteral:return this.createNode(e,{type:Xo.AST_NODE_TYPES.TemplateLiteral,quasis:[this.createNode(e,{type:Xo.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 s.TemplateExpression:{const t=this.createNode(e,{type:Xo.AST_NODE_TYPES.TemplateLiteral,quasis:[this.convertChild(e.head)],expressions:[]});return e.templateSpans.forEach((e=>{t.expressions.push(this.convertChild(e.expression)),t.quasis.push(this.convertChild(e.literal))})),t}case s.TaggedTemplateExpression:return this.createNode(e,{type:Xo.AST_NODE_TYPES.TaggedTemplateExpression,typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments,e):void 0,tag:this.convertChild(e.tag),quasi:this.convertChild(e.template)});case s.TemplateHead:case s.TemplateMiddle:case s.TemplateTail:{const t=e.kind===s.TemplateTail;return this.createNode(e,{type:Xo.AST_NODE_TYPES.TemplateElement,value:{raw:this.ast.text.slice(e.getStart(this.ast)+1,e.end-(t?1:2)),cooked:e.text},tail:t})}case s.SpreadAssignment:case s.SpreadElement:return this.allowPattern?this.createNode(e,{type:Xo.AST_NODE_TYPES.RestElement,argument:this.convertPattern(e.expression)}):this.createNode(e,{type:Xo.AST_NODE_TYPES.SpreadElement,argument:this.convertChild(e.expression)});case s.Parameter:{let r,n;return e.dotDotDotToken?r=n=this.createNode(e,{type:Xo.AST_NODE_TYPES.RestElement,argument:this.convertChild(e.name)}):e.initializer?(r=this.convertChild(e.name),n=this.createNode(e,{type:Xo.AST_NODE_TYPES.AssignmentPattern,left:r,right:this.convertChild(e.initializer)}),e.modifiers&&(n.range[0]=r.range[0],n.loc=Qo.getLocFor(n.range[0],n.range[1],this.ast))):r=n=this.convertChild(e.name,t),e.type&&(r.typeAnnotation=this.convertTypeAnnotation(e.type,e),this.fixParentLocation(r,r.typeAnnotation.range)),e.questionToken&&(e.questionToken.end>r.range[1]&&(r.range[1]=e.questionToken.end,r.loc.end=Qo.getLineAndCharacterFor(r.range[1],this.ast)),r.optional=!0),e.modifiers?this.createNode(e,{type:Xo.AST_NODE_TYPES.TSParameterProperty,accessibility:null!==(i=Qo.getTSNodeAccessibility(e))&&void 0!==i?i:void 0,readonly:Qo.hasModifier(s.ReadonlyKeyword,e)||void 0,static:Qo.hasModifier(s.StaticKeyword,e)||void 0,export:Qo.hasModifier(s.ExportKeyword,e)||void 0,parameter:n}):n}case s.ClassDeclaration:case s.ClassExpression:{const t=null!==(a=e.heritageClauses)&&void 0!==a?a:[],r=e.kind===s.ClassDeclaration?Xo.AST_NODE_TYPES.ClassDeclaration:Xo.AST_NODE_TYPES.ClassExpression,n=t.find((e=>e.token===s.ExtendsKeyword)),i=t.find((e=>e.token===s.ImplementsKeyword)),o=this.createNode(e,{type:r,id:this.convertChild(e.name),body:this.createNode(e,{type:Xo.AST_NODE_TYPES.ClassBody,body:[],range:[e.members.pos-1,e.end]}),superClass:(null==n?void 0:n.types[0])?this.convertChild(n.types[0].expression):null});if(n){if(n.types.length>1)throw Qo.createError(this.ast,n.types[1].pos,"Classes can only extend a single class.");(null===(c=n.types[0])||void 0===c?void 0:c.typeArguments)&&(o.superTypeParameters=this.convertTypeArgumentsToTypeParameters(n.types[0].typeArguments,n.types[0]))}e.typeParameters&&(o.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),i&&(o.implements=i.types.map((e=>this.convertChild(e)))),Qo.hasModifier(s.AbstractKeyword,e)&&(o.abstract=!0),Qo.hasModifier(s.DeclareKeyword,e)&&(o.declare=!0),e.decorators&&(o.decorators=e.decorators.map((e=>this.convertChild(e))));const u=e.members.filter(Qo.isESTreeClassMember);return u.length&&(o.body.body=u.map((e=>this.convertChild(e)))),this.fixExports(e,o)}case s.ModuleBlock:return this.createNode(e,{type:Xo.AST_NODE_TYPES.TSModuleBlock,body:this.convertBodyExpressions(e.statements,e)});case s.ImportDeclaration:{const t=this.createNode(e,{type:Xo.AST_NODE_TYPES.ImportDeclaration,source:this.convertChild(e.moduleSpecifier),specifiers:[],importKind:"value"});if(e.importClause&&(e.importClause.isTypeOnly&&(t.importKind="type"),e.importClause.name&&t.specifiers.push(this.convertChild(e.importClause)),e.importClause.namedBindings))switch(e.importClause.namedBindings.kind){case s.NamespaceImport:t.specifiers.push(this.convertChild(e.importClause.namedBindings));break;case s.NamedImports:t.specifiers=t.specifiers.concat(e.importClause.namedBindings.elements.map((e=>this.convertChild(e))))}return t}case s.NamespaceImport:return this.createNode(e,{type:Xo.AST_NODE_TYPES.ImportNamespaceSpecifier,local:this.convertChild(e.name)});case s.ImportSpecifier:return this.createNode(e,{type:Xo.AST_NODE_TYPES.ImportSpecifier,local:this.convertChild(e.name),imported:this.convertChild(null!==(u=e.propertyName)&&void 0!==u?u:e.name)});case s.ImportClause:{const t=this.convertChild(e.name);return this.createNode(e,{type:Xo.AST_NODE_TYPES.ImportDefaultSpecifier,local:t,range:t.range})}case s.ExportDeclaration:return(null===(l=e.exportClause)||void 0===l?void 0:l.kind)===s.NamedExports?this.createNode(e,{type:Xo.AST_NODE_TYPES.ExportNamedDeclaration,source:this.convertChild(e.moduleSpecifier),specifiers:e.exportClause.elements.map((e=>this.convertChild(e))),exportKind:e.isTypeOnly?"type":"value",declaration:null}):this.createNode(e,{type:Xo.AST_NODE_TYPES.ExportAllDeclaration,source:this.convertChild(e.moduleSpecifier),exportKind:e.isTypeOnly?"type":"value",exported:e.exportClause&&e.exportClause.kind===s.NamespaceExport?this.convertChild(e.exportClause.name):null});case s.ExportSpecifier:return this.createNode(e,{type:Xo.AST_NODE_TYPES.ExportSpecifier,local:this.convertChild(null!==(d=e.propertyName)&&void 0!==d?d:e.name),exported:this.convertChild(e.name)});case s.ExportAssignment:return e.isExportEquals?this.createNode(e,{type:Xo.AST_NODE_TYPES.TSExportAssignment,expression:this.convertChild(e.expression)}):this.createNode(e,{type:Xo.AST_NODE_TYPES.ExportDefaultDeclaration,declaration:this.convertChild(e.expression),exportKind:"value"});case s.PrefixUnaryExpression:case s.PostfixUnaryExpression:{const t=Qo.getTextForTokenKind(e.operator);return"++"===t||"--"===t?this.createNode(e,{type:Xo.AST_NODE_TYPES.UpdateExpression,operator:t,prefix:e.kind===s.PrefixUnaryExpression,argument:this.convertChild(e.operand)}):this.createNode(e,{type:Xo.AST_NODE_TYPES.UnaryExpression,operator:t,prefix:e.kind===s.PrefixUnaryExpression,argument:this.convertChild(e.operand)})}case s.DeleteExpression:return this.createNode(e,{type:Xo.AST_NODE_TYPES.UnaryExpression,operator:"delete",prefix:!0,argument:this.convertChild(e.expression)});case s.VoidExpression:return this.createNode(e,{type:Xo.AST_NODE_TYPES.UnaryExpression,operator:"void",prefix:!0,argument:this.convertChild(e.expression)});case s.TypeOfExpression:return this.createNode(e,{type:Xo.AST_NODE_TYPES.UnaryExpression,operator:"typeof",prefix:!0,argument:this.convertChild(e.expression)});case s.TypeOperator:return this.createNode(e,{type:Xo.AST_NODE_TYPES.TSTypeOperator,operator:Qo.getTextForTokenKind(e.operator),typeAnnotation:this.convertChild(e.type)});case s.BinaryExpression:if(Qo.isComma(e.operatorToken)){const t=this.createNode(e,{type:Xo.AST_NODE_TYPES.SequenceExpression,expressions:[]}),r=this.convertChild(e.left);return r.type===Xo.AST_NODE_TYPES.SequenceExpression&&e.left.kind!==s.ParenthesizedExpression?t.expressions=t.expressions.concat(r.expressions):t.expressions.push(r),t.expressions.push(this.convertChild(e.right)),t}{const t=Qo.getBinaryExpressionType(e.operatorToken);return this.allowPattern&&t===Xo.AST_NODE_TYPES.AssignmentExpression?this.createNode(e,{type:Xo.AST_NODE_TYPES.AssignmentPattern,left:this.convertPattern(e.left,e),right:this.convertChild(e.right)}):this.createNode(e,{type:t,operator:Qo.getTextForTokenKind(e.operatorToken.kind),left:this.converter(e.left,e,this.inTypeMode,t===Xo.AST_NODE_TYPES.AssignmentExpression),right:this.convertChild(e.right)})}case s.PropertyAccessExpression:{const t=this.convertChild(e.expression),r=this.convertChild(e.name),n=!1,i=this.createNode(e,{type:Xo.AST_NODE_TYPES.MemberExpression,object:t,property:r,computed:n,optional:void 0!==e.questionDotToken});return this.convertChainExpression(i,e)}case s.ElementAccessExpression:{const t=this.convertChild(e.expression),r=this.convertChild(e.argumentExpression),n=!0,i=this.createNode(e,{type:Xo.AST_NODE_TYPES.MemberExpression,object:t,property:r,computed:n,optional:void 0!==e.questionDotToken});return this.convertChainExpression(i,e)}case s.CallExpression:{if(e.expression.kind===s.ImportKeyword){if(1!==e.arguments.length)throw Qo.createError(this.ast,e.arguments.pos,"Dynamic import must have one specifier as an argument.");return this.createNode(e,{type:Xo.AST_NODE_TYPES.ImportExpression,source:this.convertChild(e.arguments[0])})}const t=this.convertChild(e.expression),r=e.arguments.map((e=>this.convertChild(e))),n=this.createNode(e,{type:Xo.AST_NODE_TYPES.CallExpression,callee:t,arguments:r,optional:void 0!==e.questionDotToken});return e.typeArguments&&(n.typeParameters=this.convertTypeArgumentsToTypeParameters(e.typeArguments,e)),this.convertChainExpression(n,e)}case s.NewExpression:{const t=this.createNode(e,{type:Xo.AST_NODE_TYPES.NewExpression,callee:this.convertChild(e.expression),arguments:e.arguments?e.arguments.map((e=>this.convertChild(e))):[]});return e.typeArguments&&(t.typeParameters=this.convertTypeArgumentsToTypeParameters(e.typeArguments,e)),t}case s.ConditionalExpression:return this.createNode(e,{type:Xo.AST_NODE_TYPES.ConditionalExpression,test:this.convertChild(e.condition),consequent:this.convertChild(e.whenTrue),alternate:this.convertChild(e.whenFalse)});case s.MetaProperty:return this.createNode(e,{type:Xo.AST_NODE_TYPES.MetaProperty,meta:this.createNode(e.getFirstToken(),{type:Xo.AST_NODE_TYPES.Identifier,name:Qo.getTextForTokenKind(e.keywordToken)}),property:this.convertChild(e.name)});case s.Decorator:return this.createNode(e,{type:Xo.AST_NODE_TYPES.Decorator,expression:this.convertChild(e.expression)});case s.StringLiteral:{const r=this.createNode(e,{type:Xo.AST_NODE_TYPES.Literal,raw:"",value:""});return r.raw=this.ast.text.slice(r.range[0],r.range[1]),"name"in t&&t.name===e?r.value=e.text:r.value=Qo.unescapeStringLiteralText(e.text),r}case s.NumericLiteral:return this.createNode(e,{type:Xo.AST_NODE_TYPES.Literal,value:Number(e.text),raw:e.getText()});case s.BigIntLiteral:{const t=Qo.getRange(e,this.ast),r=this.ast.text.slice(t[0],t[1]),n=r.slice(0,-1).replace(/_/g,""),i="undefined"!=typeof BigInt?BigInt(n):null;return this.createNode(e,{type:Xo.AST_NODE_TYPES.Literal,raw:r,value:i,bigint:null===i?n:String(i),range:t})}case s.RegularExpressionLiteral:{const t=e.text.slice(1,e.text.lastIndexOf("/")),r=e.text.slice(e.text.lastIndexOf("/")+1);let n=null;try{n=new RegExp(t,r)}catch(e){n=null}return this.createNode(e,{type:Xo.AST_NODE_TYPES.Literal,value:n,raw:e.text,regex:{pattern:t,flags:r}})}case s.TrueKeyword:return this.createNode(e,{type:Xo.AST_NODE_TYPES.Literal,value:!0,raw:"true"});case s.FalseKeyword:return this.createNode(e,{type:Xo.AST_NODE_TYPES.Literal,value:!1,raw:"false"});case s.NullKeyword:return!$o.typescriptVersionIsAtLeast["4.0"]&&this.inTypeMode?this.createNode(e,{type:Xo.AST_NODE_TYPES.TSNullKeyword}):this.createNode(e,{type:Xo.AST_NODE_TYPES.Literal,value:null,raw:"null"});case s.EmptyStatement:return this.createNode(e,{type:Xo.AST_NODE_TYPES.EmptyStatement});case s.DebuggerStatement:return this.createNode(e,{type:Xo.AST_NODE_TYPES.DebuggerStatement});case s.JsxElement:return this.createNode(e,{type:Xo.AST_NODE_TYPES.JSXElement,openingElement:this.convertChild(e.openingElement),closingElement:this.convertChild(e.closingElement),children:e.children.map((e=>this.convertChild(e)))});case s.JsxFragment:return this.createNode(e,{type:Xo.AST_NODE_TYPES.JSXFragment,openingFragment:this.convertChild(e.openingFragment),closingFragment:this.convertChild(e.closingFragment),children:e.children.map((e=>this.convertChild(e)))});case s.JsxSelfClosingElement:return this.createNode(e,{type:Xo.AST_NODE_TYPES.JSXElement,openingElement:this.createNode(e,{type:Xo.AST_NODE_TYPES.JSXOpeningElement,typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments,e):void 0,selfClosing:!0,name:this.convertJSXTagName(e.tagName,e),attributes:e.attributes.properties.map((e=>this.convertChild(e))),range:Qo.getRange(e,this.ast)}),closingElement:null,children:[]});case s.JsxOpeningElement:return this.createNode(e,{type:Xo.AST_NODE_TYPES.JSXOpeningElement,typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments,e):void 0,selfClosing:!1,name:this.convertJSXTagName(e.tagName,e),attributes:e.attributes.properties.map((e=>this.convertChild(e)))});case s.JsxClosingElement:return this.createNode(e,{type:Xo.AST_NODE_TYPES.JSXClosingElement,name:this.convertJSXTagName(e.tagName,e)});case s.JsxOpeningFragment:return this.createNode(e,{type:Xo.AST_NODE_TYPES.JSXOpeningFragment});case s.JsxClosingFragment:return this.createNode(e,{type:Xo.AST_NODE_TYPES.JSXClosingFragment});case s.JsxExpression:{const t=e.expression?this.convertChild(e.expression):this.createNode(e,{type:Xo.AST_NODE_TYPES.JSXEmptyExpression,range:[e.getStart(this.ast)+1,e.getEnd()-1]});return e.dotDotDotToken?this.createNode(e,{type:Xo.AST_NODE_TYPES.JSXSpreadChild,expression:t}):this.createNode(e,{type:Xo.AST_NODE_TYPES.JSXExpressionContainer,expression:t})}case s.JsxAttribute:{const t=this.convertChild(e.name);return t.type=Xo.AST_NODE_TYPES.JSXIdentifier,this.createNode(e,{type:Xo.AST_NODE_TYPES.JSXAttribute,name:t,value:this.convertChild(e.initializer)})}case s.JsxText:{const t=e.getFullStart(),r=e.getEnd();return this.options.useJSXTextNode?this.createNode(e,{type:Xo.AST_NODE_TYPES.JSXText,value:this.ast.text.slice(t,r),raw:this.ast.text.slice(t,r),range:[t,r]}):this.createNode(e,{type:Xo.AST_NODE_TYPES.Literal,value:this.ast.text.slice(t,r),raw:this.ast.text.slice(t,r),range:[t,r]})}case s.JsxSpreadAttribute:return this.createNode(e,{type:Xo.AST_NODE_TYPES.JSXSpreadAttribute,argument:this.convertChild(e.expression)});case s.QualifiedName:return this.createNode(e,{type:Xo.AST_NODE_TYPES.TSQualifiedName,left:this.convertChild(e.left),right:this.convertChild(e.right)});case s.TypeReference:return this.createNode(e,{type:Xo.AST_NODE_TYPES.TSTypeReference,typeName:this.convertType(e.typeName),typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments,e):void 0});case s.TypeParameter:return this.createNode(e,{type:Xo.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 s.ThisType:return this.createNode(e,{type:Xo.AST_NODE_TYPES.TSThisType});case s.AnyKeyword:case s.BigIntKeyword:case s.BooleanKeyword:case s.NeverKeyword:case s.NumberKeyword:case s.ObjectKeyword:case s.StringKeyword:case s.SymbolKeyword:case s.UnknownKeyword:case s.VoidKeyword:case s.UndefinedKeyword:return this.createNode(e,{type:Xo.AST_NODE_TYPES["TS".concat(s[e.kind])]});case s.NonNullExpression:{const t=this.createNode(e,{type:Xo.AST_NODE_TYPES.TSNonNullExpression,expression:this.convertChild(e.expression)});return this.convertChainExpression(t,e)}case s.TypeLiteral:return this.createNode(e,{type:Xo.AST_NODE_TYPES.TSTypeLiteral,members:e.members.map((e=>this.convertChild(e)))});case s.ArrayType:return this.createNode(e,{type:Xo.AST_NODE_TYPES.TSArrayType,elementType:this.convertType(e.elementType)});case s.IndexedAccessType:return this.createNode(e,{type:Xo.AST_NODE_TYPES.TSIndexedAccessType,objectType:this.convertType(e.objectType),indexType:this.convertType(e.indexType)});case s.ConditionalType:return this.createNode(e,{type:Xo.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 s.TypeQuery:return this.createNode(e,{type:Xo.AST_NODE_TYPES.TSTypeQuery,exprName:this.convertType(e.exprName)});case s.MappedType:{const t=this.createNode(e,{type:Xo.AST_NODE_TYPES.TSMappedType,typeParameter:this.convertType(e.typeParameter),nameType:null!==(_=this.convertType(e.nameType))&&void 0!==_?_:null});return e.readonlyToken&&(e.readonlyToken.kind===s.ReadonlyKeyword?t.readonly=!0:t.readonly=Qo.getTextForTokenKind(e.readonlyToken.kind)),e.questionToken&&(e.questionToken.kind===s.QuestionToken?t.optional=!0:t.optional=Qo.getTextForTokenKind(e.questionToken.kind)),e.type&&(t.typeAnnotation=this.convertType(e.type)),t}case s.ParenthesizedExpression:return this.convertChild(e.expression,t);case s.TypeAliasDeclaration:{const t=this.createNode(e,{type:Xo.AST_NODE_TYPES.TSTypeAliasDeclaration,id:this.convertChild(e.name),typeAnnotation:this.convertType(e.type)});return Qo.hasModifier(s.DeclareKeyword,e)&&(t.declare=!0),e.typeParameters&&(t.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),this.fixExports(e,t)}case s.MethodSignature:{const t=this.createNode(e,{type:Xo.AST_NODE_TYPES.TSMethodSignature,computed:Qo.isComputedProperty(e.name),key:this.convertChild(e.name),params:this.convertParameters(e.parameters)});Qo.isOptional(e)&&(t.optional=!0),e.type&&(t.returnType=this.convertTypeAnnotation(e.type,e)),Qo.hasModifier(s.ReadonlyKeyword,e)&&(t.readonly=!0),e.typeParameters&&(t.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters));const r=Qo.getTSNodeAccessibility(e);return r&&(t.accessibility=r),Qo.hasModifier(s.ExportKeyword,e)&&(t.export=!0),Qo.hasModifier(s.StaticKeyword,e)&&(t.static=!0),t}case s.PropertySignature:{const t=this.createNode(e,{type:Xo.AST_NODE_TYPES.TSPropertySignature,optional:Qo.isOptional(e)||void 0,computed:Qo.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:Qo.hasModifier(s.ReadonlyKeyword,e)||void 0,static:Qo.hasModifier(s.StaticKeyword,e)||void 0,export:Qo.hasModifier(s.ExportKeyword,e)||void 0}),r=Qo.getTSNodeAccessibility(e);return r&&(t.accessibility=r),t}case s.IndexSignature:{const t=this.createNode(e,{type:Xo.AST_NODE_TYPES.TSIndexSignature,parameters:e.parameters.map((e=>this.convertChild(e)))});e.type&&(t.typeAnnotation=this.convertTypeAnnotation(e.type,e)),Qo.hasModifier(s.ReadonlyKeyword,e)&&(t.readonly=!0);const r=Qo.getTSNodeAccessibility(e);return r&&(t.accessibility=r),Qo.hasModifier(s.ExportKeyword,e)&&(t.export=!0),Qo.hasModifier(s.StaticKeyword,e)&&(t.static=!0),t}case s.ConstructorType:case s.FunctionType:case s.ConstructSignature:case s.CallSignature:{let t;switch(e.kind){case s.ConstructSignature:t=Xo.AST_NODE_TYPES.TSConstructSignatureDeclaration;break;case s.CallSignature:t=Xo.AST_NODE_TYPES.TSCallSignatureDeclaration;break;case s.FunctionType:t=Xo.AST_NODE_TYPES.TSFunctionType;break;case s.ConstructorType:default:t=Xo.AST_NODE_TYPES.TSConstructorType}const r=this.createNode(e,{type:t,params:this.convertParameters(e.parameters)});return e.type&&(r.returnType=this.convertTypeAnnotation(e.type,e)),e.typeParameters&&(r.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),r}case s.ExpressionWithTypeArguments:{const r=this.createNode(e,{type:t&&t.kind===s.InterfaceDeclaration?Xo.AST_NODE_TYPES.TSInterfaceHeritage:Xo.AST_NODE_TYPES.TSClassImplements,expression:this.convertChild(e.expression)});return e.typeArguments&&(r.typeParameters=this.convertTypeArgumentsToTypeParameters(e.typeArguments,e)),r}case s.InterfaceDeclaration:{const t=null!==(p=e.heritageClauses)&&void 0!==p?p:[],r=this.createNode(e,{type:Xo.AST_NODE_TYPES.TSInterfaceDeclaration,body:this.createNode(e,{type:Xo.AST_NODE_TYPES.TSInterfaceBody,body:e.members.map((e=>this.convertChild(e))),range:[e.members.pos-1,e.end]}),id:this.convertChild(e.name)});if(e.typeParameters&&(r.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),t.length>0){const n=[],i=[];for(const r of t)if(r.token===s.ExtendsKeyword)for(const t of r.types)n.push(this.convertChild(t,e));else for(const t of r.types)i.push(this.convertChild(t,e));n.length&&(r.extends=n),i.length&&(r.implements=i)}return Qo.hasModifier(s.AbstractKeyword,e)&&(r.abstract=!0),Qo.hasModifier(s.DeclareKeyword,e)&&(r.declare=!0),this.fixExports(e,r)}case s.TypePredicate:{const t=this.createNode(e,{type:Xo.AST_NODE_TYPES.TSTypePredicate,asserts:void 0!==e.assertsModifier,parameterName:this.convertChild(e.parameterName),typeAnnotation:null});return e.type&&(t.typeAnnotation=this.convertTypeAnnotation(e.type,e),t.typeAnnotation.loc=t.typeAnnotation.typeAnnotation.loc,t.typeAnnotation.range=t.typeAnnotation.typeAnnotation.range),t}case s.ImportType:return this.createNode(e,{type:Xo.AST_NODE_TYPES.TSImportType,isTypeOf:!!e.isTypeOf,parameter:this.convertChild(e.argument),qualifier:this.convertChild(e.qualifier),typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments,e):null});case s.EnumDeclaration:{const t=this.createNode(e,{type:Xo.AST_NODE_TYPES.TSEnumDeclaration,id:this.convertChild(e.name),members:e.members.map((e=>this.convertChild(e)))});return this.applyModifiersToResult(t,e.modifiers),this.fixExports(e,t)}case s.EnumMember:{const t=this.createNode(e,{type:Xo.AST_NODE_TYPES.TSEnumMember,id:this.convertChild(e.name)});return e.initializer&&(t.initializer=this.convertChild(e.initializer)),e.name.kind===o.SyntaxKind.ComputedPropertyName&&(t.computed=!0),t}case s.ModuleDeclaration:{const t=this.createNode(e,{type:Xo.AST_NODE_TYPES.TSModuleDeclaration,id:this.convertChild(e.name)});return e.body&&(t.body=this.convertChild(e.body)),this.applyModifiersToResult(t,e.modifiers),e.flags&o.NodeFlags.GlobalAugmentation&&(t.global=!0),this.fixExports(e,t)}case s.ParenthesizedType:return this.createNode(e,{type:Xo.AST_NODE_TYPES.TSParenthesizedType,typeAnnotation:this.convertType(e.type)});case s.UnionType:return this.createNode(e,{type:Xo.AST_NODE_TYPES.TSUnionType,types:e.types.map((e=>this.convertType(e)))});case s.IntersectionType:return this.createNode(e,{type:Xo.AST_NODE_TYPES.TSIntersectionType,types:e.types.map((e=>this.convertType(e)))});case s.AsExpression:return this.createNode(e,{type:Xo.AST_NODE_TYPES.TSAsExpression,expression:this.convertChild(e.expression),typeAnnotation:this.convertType(e.type)});case s.InferType:return this.createNode(e,{type:Xo.AST_NODE_TYPES.TSInferType,typeParameter:this.convertType(e.typeParameter)});case s.LiteralType:return $o.typescriptVersionIsAtLeast["4.0"]&&e.literal.kind===s.NullKeyword?this.createNode(e.literal,{type:Xo.AST_NODE_TYPES.TSNullKeyword}):this.createNode(e,{type:Xo.AST_NODE_TYPES.TSLiteralType,literal:this.convertType(e.literal)});case s.TypeAssertionExpression:return this.createNode(e,{type:Xo.AST_NODE_TYPES.TSTypeAssertion,typeAnnotation:this.convertType(e.type),expression:this.convertChild(e.expression)});case s.ImportEqualsDeclaration:return this.createNode(e,{type:Xo.AST_NODE_TYPES.TSImportEqualsDeclaration,id:this.convertChild(e.name),moduleReference:this.convertChild(e.moduleReference),isExport:Qo.hasModifier(s.ExportKeyword,e)});case s.ExternalModuleReference:return this.createNode(e,{type:Xo.AST_NODE_TYPES.TSExternalModuleReference,expression:this.convertChild(e.expression)});case s.NamespaceExportDeclaration:return this.createNode(e,{type:Xo.AST_NODE_TYPES.TSNamespaceExportDeclaration,id:this.convertChild(e.name)});case s.AbstractKeyword:return this.createNode(e,{type:Xo.AST_NODE_TYPES.TSAbstractKeyword});case s.TupleType:{const t="elementTypes"in e?e.elementTypes.map((e=>this.convertType(e))):e.elements.map((e=>this.convertType(e)));return this.createNode(e,{type:Xo.AST_NODE_TYPES.TSTupleType,elementTypes:t})}case s.NamedTupleMember:{const t=this.createNode(e,{type:Xo.AST_NODE_TYPES.TSNamedTupleMember,elementType:this.convertType(e.type,e),label:this.convertChild(e.name,e),optional:null!=e.questionToken});return e.dotDotDotToken?(t.range[0]=t.label.range[0],t.loc.start=t.label.loc.start,this.createNode(e,{type:Xo.AST_NODE_TYPES.TSRestType,typeAnnotation:t})):t}case s.OptionalType:return this.createNode(e,{type:Xo.AST_NODE_TYPES.TSOptionalType,typeAnnotation:this.convertType(e.type)});case s.RestType:return this.createNode(e,{type:Xo.AST_NODE_TYPES.TSRestType,typeAnnotation:this.convertType(e.type)});case s.TemplateLiteralType:{const t=this.createNode(e,{type:Xo.AST_NODE_TYPES.TSTemplateLiteralType,quasis:[this.convertChild(e.head)],types:[]});return e.templateSpans.forEach((e=>{t.types.push(this.convertChild(e.type)),t.quasis.push(this.convertChild(e.literal))})),t}default:return this.deeplyCopy(e)}}}})),es=function(e,t){return(es=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 ts=function(){return(ts=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ns(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 is(e){return this instanceof is?(this.v=e,this):new is(e)}var as=Object.freeze({__proto__:null,__extends:function(e,t){function r(){this.constructor=e}es(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},get __assign(){return ts},__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=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"==typeof 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){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).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=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]1||s(e,t)}))})}function s(e,t){try{(r=i[e](t)).value instanceof is?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:is(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=rs(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}},__classPrivateFieldGet:function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},__classPrivateFieldSet:function(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}}),os=r((function(e,t){function r(e){return e.kind===yo.SyntaxKind.ModuleDeclaration}function n(e){return e.kind===yo.SyntaxKind.PropertyAccessExpression}function i(e){return e.kind===yo.SyntaxKind.QualifiedName}Object.defineProperty(t,"__esModule",{value:!0}),t.isAccessorDeclaration=function(e){return e.kind===yo.SyntaxKind.GetAccessor||e.kind===yo.SyntaxKind.SetAccessor},t.isArrayBindingPattern=function(e){return e.kind===yo.SyntaxKind.ArrayBindingPattern},t.isArrayLiteralExpression=function(e){return e.kind===yo.SyntaxKind.ArrayLiteralExpression},t.isArrayTypeNode=function(e){return e.kind===yo.SyntaxKind.ArrayType},t.isArrowFunction=function(e){return e.kind===yo.SyntaxKind.ArrowFunction},t.isAsExpression=function(e){return e.kind===yo.SyntaxKind.AsExpression},t.isAssertionExpression=function(e){return e.kind===yo.SyntaxKind.AsExpression||e.kind===yo.SyntaxKind.TypeAssertionExpression},t.isAwaitExpression=function(e){return e.kind===yo.SyntaxKind.AwaitExpression},t.isBinaryExpression=function(e){return e.kind===yo.SyntaxKind.BinaryExpression},t.isBindingElement=function(e){return e.kind===yo.SyntaxKind.BindingElement},t.isBindingPattern=function(e){return e.kind===yo.SyntaxKind.ArrayBindingPattern||e.kind===yo.SyntaxKind.ObjectBindingPattern},t.isBlock=function(e){return e.kind===yo.SyntaxKind.Block},t.isBlockLike=function(e){return void 0!==e.statements},t.isBooleanLiteral=function(e){return e.kind===yo.SyntaxKind.TrueKeyword||e.kind===yo.SyntaxKind.FalseKeyword},t.isBreakOrContinueStatement=function(e){return e.kind===yo.SyntaxKind.BreakStatement||e.kind===yo.SyntaxKind.ContinueStatement},t.isBreakStatement=function(e){return e.kind===yo.SyntaxKind.BreakStatement},t.isCallExpression=function(e){return e.kind===yo.SyntaxKind.CallExpression},t.isCallLikeExpression=function(e){switch(e.kind){case yo.SyntaxKind.CallExpression:case yo.SyntaxKind.Decorator:case yo.SyntaxKind.JsxOpeningElement:case yo.SyntaxKind.JsxSelfClosingElement:case yo.SyntaxKind.NewExpression:case yo.SyntaxKind.TaggedTemplateExpression:return!0;default:return!1}},t.isCallSignatureDeclaration=function(e){return e.kind===yo.SyntaxKind.CallSignature},t.isCaseBlock=function(e){return e.kind===yo.SyntaxKind.CaseBlock},t.isCaseClause=function(e){return e.kind===yo.SyntaxKind.CaseClause},t.isCaseOrDefaultClause=function(e){return e.kind===yo.SyntaxKind.CaseClause||e.kind===yo.SyntaxKind.DefaultClause},t.isCatchClause=function(e){return e.kind===yo.SyntaxKind.CatchClause},t.isClassDeclaration=function(e){return e.kind===yo.SyntaxKind.ClassDeclaration},t.isClassExpression=function(e){return e.kind===yo.SyntaxKind.ClassExpression},t.isClassLikeDeclaration=function(e){return e.kind===yo.SyntaxKind.ClassDeclaration||e.kind===yo.SyntaxKind.ClassExpression},t.isCommaListExpression=function(e){return e.kind===yo.SyntaxKind.CommaListExpression},t.isConditionalExpression=function(e){return e.kind===yo.SyntaxKind.ConditionalExpression},t.isConditionalTypeNode=function(e){return e.kind===yo.SyntaxKind.ConditionalType},t.isConstructorDeclaration=function(e){return e.kind===yo.SyntaxKind.Constructor},t.isConstructorTypeNode=function(e){return e.kind===yo.SyntaxKind.ConstructorType},t.isConstructSignatureDeclaration=function(e){return e.kind===yo.SyntaxKind.ConstructSignature},t.isContinueStatement=function(e){return e.kind===yo.SyntaxKind.ContinueStatement},t.isComputedPropertyName=function(e){return e.kind===yo.SyntaxKind.ComputedPropertyName},t.isDebuggerStatement=function(e){return e.kind===yo.SyntaxKind.DebuggerStatement},t.isDecorator=function(e){return e.kind===yo.SyntaxKind.Decorator},t.isDefaultClause=function(e){return e.kind===yo.SyntaxKind.DefaultClause},t.isDeleteExpression=function(e){return e.kind===yo.SyntaxKind.DeleteExpression},t.isDoStatement=function(e){return e.kind===yo.SyntaxKind.DoStatement},t.isElementAccessExpression=function(e){return e.kind===yo.SyntaxKind.ElementAccessExpression},t.isEmptyStatement=function(e){return e.kind===yo.SyntaxKind.EmptyStatement},t.isEntityName=function(e){return e.kind===yo.SyntaxKind.Identifier||i(e)},t.isEntityNameExpression=function e(t){return t.kind===yo.SyntaxKind.Identifier||n(t)&&e(t.expression)},t.isEnumDeclaration=function(e){return e.kind===yo.SyntaxKind.EnumDeclaration},t.isEnumMember=function(e){return e.kind===yo.SyntaxKind.EnumMember},t.isExportAssignment=function(e){return e.kind===yo.SyntaxKind.ExportAssignment},t.isExportDeclaration=function(e){return e.kind===yo.SyntaxKind.ExportDeclaration},t.isExportSpecifier=function(e){return e.kind===yo.SyntaxKind.ExportSpecifier},t.isExpression=function(e){switch(e.kind){case yo.SyntaxKind.ArrayLiteralExpression:case yo.SyntaxKind.ArrowFunction:case yo.SyntaxKind.AsExpression:case yo.SyntaxKind.AwaitExpression:case yo.SyntaxKind.BinaryExpression:case yo.SyntaxKind.CallExpression:case yo.SyntaxKind.ClassExpression:case yo.SyntaxKind.CommaListExpression:case yo.SyntaxKind.ConditionalExpression:case yo.SyntaxKind.DeleteExpression:case yo.SyntaxKind.ElementAccessExpression:case yo.SyntaxKind.FalseKeyword:case yo.SyntaxKind.FunctionExpression:case yo.SyntaxKind.Identifier:case yo.SyntaxKind.JsxElement:case yo.SyntaxKind.JsxFragment:case yo.SyntaxKind.JsxExpression:case yo.SyntaxKind.JsxOpeningElement:case yo.SyntaxKind.JsxOpeningFragment:case yo.SyntaxKind.JsxSelfClosingElement:case yo.SyntaxKind.MetaProperty:case yo.SyntaxKind.NewExpression:case yo.SyntaxKind.NonNullExpression:case yo.SyntaxKind.NoSubstitutionTemplateLiteral:case yo.SyntaxKind.NullKeyword:case yo.SyntaxKind.NumericLiteral:case yo.SyntaxKind.ObjectLiteralExpression:case yo.SyntaxKind.OmittedExpression:case yo.SyntaxKind.ParenthesizedExpression:case yo.SyntaxKind.PostfixUnaryExpression:case yo.SyntaxKind.PrefixUnaryExpression:case yo.SyntaxKind.PropertyAccessExpression:case yo.SyntaxKind.RegularExpressionLiteral:case yo.SyntaxKind.SpreadElement:case yo.SyntaxKind.StringLiteral:case yo.SyntaxKind.SuperKeyword:case yo.SyntaxKind.TaggedTemplateExpression:case yo.SyntaxKind.TemplateExpression:case yo.SyntaxKind.ThisKeyword:case yo.SyntaxKind.TrueKeyword:case yo.SyntaxKind.TypeAssertionExpression:case yo.SyntaxKind.TypeOfExpression:case yo.SyntaxKind.VoidExpression:case yo.SyntaxKind.YieldExpression:return!0;default:return!1}},t.isExpressionStatement=function(e){return e.kind===yo.SyntaxKind.ExpressionStatement},t.isExpressionWithTypeArguments=function(e){return e.kind===yo.SyntaxKind.ExpressionWithTypeArguments},t.isExternalModuleReference=function(e){return e.kind===yo.SyntaxKind.ExternalModuleReference},t.isForInStatement=function(e){return e.kind===yo.SyntaxKind.ForInStatement},t.isForInOrOfStatement=function(e){return e.kind===yo.SyntaxKind.ForOfStatement||e.kind===yo.SyntaxKind.ForInStatement},t.isForOfStatement=function(e){return e.kind===yo.SyntaxKind.ForOfStatement},t.isForStatement=function(e){return e.kind===yo.SyntaxKind.ForStatement},t.isFunctionDeclaration=function(e){return e.kind===yo.SyntaxKind.FunctionDeclaration},t.isFunctionExpression=function(e){return e.kind===yo.SyntaxKind.FunctionExpression},t.isFunctionTypeNode=function(e){return e.kind===yo.SyntaxKind.FunctionType},t.isGetAccessorDeclaration=function(e){return e.kind===yo.SyntaxKind.GetAccessor},t.isIdentifier=function(e){return e.kind===yo.SyntaxKind.Identifier},t.isIfStatement=function(e){return e.kind===yo.SyntaxKind.IfStatement},t.isImportClause=function(e){return e.kind===yo.SyntaxKind.ImportClause},t.isImportDeclaration=function(e){return e.kind===yo.SyntaxKind.ImportDeclaration},t.isImportEqualsDeclaration=function(e){return e.kind===yo.SyntaxKind.ImportEqualsDeclaration},t.isImportSpecifier=function(e){return e.kind===yo.SyntaxKind.ImportSpecifier},t.isIndexedAccessTypeNode=function(e){return e.kind===yo.SyntaxKind.IndexedAccessType},t.isIndexSignatureDeclaration=function(e){return e.kind===yo.SyntaxKind.IndexSignature},t.isInferTypeNode=function(e){return e.kind===yo.SyntaxKind.InferType},t.isInterfaceDeclaration=function(e){return e.kind===yo.SyntaxKind.InterfaceDeclaration},t.isIntersectionTypeNode=function(e){return e.kind===yo.SyntaxKind.IntersectionType},t.isIterationStatement=function(e){switch(e.kind){case yo.SyntaxKind.ForStatement:case yo.SyntaxKind.ForOfStatement:case yo.SyntaxKind.ForInStatement:case yo.SyntaxKind.WhileStatement:case yo.SyntaxKind.DoStatement:return!0;default:return!1}},t.isJsDoc=function(e){return e.kind===yo.SyntaxKind.JSDocComment},t.isJsxAttribute=function(e){return e.kind===yo.SyntaxKind.JsxAttribute},t.isJsxAttributeLike=function(e){return e.kind===yo.SyntaxKind.JsxAttribute||e.kind===yo.SyntaxKind.JsxSpreadAttribute},t.isJsxAttributes=function(e){return e.kind===yo.SyntaxKind.JsxAttributes},t.isJsxClosingElement=function(e){return e.kind===yo.SyntaxKind.JsxClosingElement},t.isJsxClosingFragment=function(e){return e.kind===yo.SyntaxKind.JsxClosingFragment},t.isJsxElement=function(e){return e.kind===yo.SyntaxKind.JsxElement},t.isJsxExpression=function(e){return e.kind===yo.SyntaxKind.JsxExpression},t.isJsxFragment=function(e){return e.kind===yo.SyntaxKind.JsxFragment},t.isJsxOpeningElement=function(e){return e.kind===yo.SyntaxKind.JsxOpeningElement},t.isJsxOpeningFragment=function(e){return e.kind===yo.SyntaxKind.JsxOpeningFragment},t.isJsxOpeningLikeElement=function(e){return e.kind===yo.SyntaxKind.JsxOpeningElement||e.kind===yo.SyntaxKind.JsxSelfClosingElement},t.isJsxSelfClosingElement=function(e){return e.kind===yo.SyntaxKind.JsxSelfClosingElement},t.isJsxSpreadAttribute=function(e){return e.kind===yo.SyntaxKind.JsxSpreadAttribute},t.isJsxText=function(e){return e.kind===yo.SyntaxKind.JsxText},t.isLabeledStatement=function(e){return e.kind===yo.SyntaxKind.LabeledStatement},t.isLiteralExpression=function(e){return e.kind>=yo.SyntaxKind.FirstLiteralToken&&e.kind<=yo.SyntaxKind.LastLiteralToken},t.isLiteralTypeNode=function(e){return e.kind===yo.SyntaxKind.LiteralType},t.isMappedTypeNode=function(e){return e.kind===yo.SyntaxKind.MappedType},t.isMetaProperty=function(e){return e.kind===yo.SyntaxKind.MetaProperty},t.isMethodDeclaration=function(e){return e.kind===yo.SyntaxKind.MethodDeclaration},t.isMethodSignature=function(e){return e.kind===yo.SyntaxKind.MethodSignature},t.isModuleBlock=function(e){return e.kind===yo.SyntaxKind.ModuleBlock},t.isModuleDeclaration=r,t.isNamedExports=function(e){return e.kind===yo.SyntaxKind.NamedExports},t.isNamedImports=function(e){return e.kind===yo.SyntaxKind.NamedImports},t.isNamespaceDeclaration=function e(t){return r(t)&&t.name.kind===yo.SyntaxKind.Identifier&&void 0!==t.body&&(t.body.kind===yo.SyntaxKind.ModuleBlock||e(t.body))},t.isNamespaceImport=function(e){return e.kind===yo.SyntaxKind.NamespaceImport},t.isNamespaceExportDeclaration=function(e){return e.kind===yo.SyntaxKind.NamespaceExportDeclaration},t.isNewExpression=function(e){return e.kind===yo.SyntaxKind.NewExpression},t.isNonNullExpression=function(e){return e.kind===yo.SyntaxKind.NonNullExpression},t.isNoSubstitutionTemplateLiteral=function(e){return e.kind===yo.SyntaxKind.NoSubstitutionTemplateLiteral},t.isNullLiteral=function(e){return e.kind===yo.SyntaxKind.NullKeyword},t.isNumericLiteral=function(e){return e.kind===yo.SyntaxKind.NumericLiteral},t.isNumericOrStringLikeLiteral=function(e){switch(e.kind){case yo.SyntaxKind.StringLiteral:case yo.SyntaxKind.NumericLiteral:case yo.SyntaxKind.NoSubstitutionTemplateLiteral:return!0;default:return!1}},t.isObjectBindingPattern=function(e){return e.kind===yo.SyntaxKind.ObjectBindingPattern},t.isObjectLiteralExpression=function(e){return e.kind===yo.SyntaxKind.ObjectLiteralExpression},t.isOmittedExpression=function(e){return e.kind===yo.SyntaxKind.OmittedExpression},t.isParameterDeclaration=function(e){return e.kind===yo.SyntaxKind.Parameter},t.isParenthesizedExpression=function(e){return e.kind===yo.SyntaxKind.ParenthesizedExpression},t.isParenthesizedTypeNode=function(e){return e.kind===yo.SyntaxKind.ParenthesizedType},t.isPostfixUnaryExpression=function(e){return e.kind===yo.SyntaxKind.PostfixUnaryExpression},t.isPrefixUnaryExpression=function(e){return e.kind===yo.SyntaxKind.PrefixUnaryExpression},t.isPropertyAccessExpression=n,t.isPropertyAssignment=function(e){return e.kind===yo.SyntaxKind.PropertyAssignment},t.isPropertyDeclaration=function(e){return e.kind===yo.SyntaxKind.PropertyDeclaration},t.isPropertySignature=function(e){return e.kind===yo.SyntaxKind.PropertySignature},t.isQualifiedName=i,t.isRegularExpressionLiteral=function(e){return e.kind===yo.SyntaxKind.RegularExpressionLiteral},t.isReturnStatement=function(e){return e.kind===yo.SyntaxKind.ReturnStatement},t.isSetAccessorDeclaration=function(e){return e.kind===yo.SyntaxKind.SetAccessor},t.isShorthandPropertyAssignment=function(e){return e.kind===yo.SyntaxKind.ShorthandPropertyAssignment},t.isSignatureDeclaration=function(e){return void 0!==e.parameters},t.isSourceFile=function(e){return e.kind===yo.SyntaxKind.SourceFile},t.isSpreadAssignment=function(e){return e.kind===yo.SyntaxKind.SpreadAssignment},t.isSpreadElement=function(e){return e.kind===yo.SyntaxKind.SpreadElement},t.isStringLiteral=function(e){return e.kind===yo.SyntaxKind.StringLiteral},t.isSwitchStatement=function(e){return e.kind===yo.SyntaxKind.SwitchStatement},t.isSyntaxList=function(e){return e.kind===yo.SyntaxKind.SyntaxList},t.isTaggedTemplateExpression=function(e){return e.kind===yo.SyntaxKind.TaggedTemplateExpression},t.isTemplateExpression=function(e){return e.kind===yo.SyntaxKind.TemplateExpression},t.isTemplateLiteral=function(e){return e.kind===yo.SyntaxKind.TemplateExpression||e.kind===yo.SyntaxKind.NoSubstitutionTemplateLiteral},t.isTextualLiteral=function(e){return e.kind===yo.SyntaxKind.StringLiteral||e.kind===yo.SyntaxKind.NoSubstitutionTemplateLiteral},t.isThrowStatement=function(e){return e.kind===yo.SyntaxKind.ThrowStatement},t.isTryStatement=function(e){return e.kind===yo.SyntaxKind.TryStatement},t.isTupleTypeNode=function(e){return e.kind===yo.SyntaxKind.TupleType},t.isTypeAliasDeclaration=function(e){return e.kind===yo.SyntaxKind.TypeAliasDeclaration},t.isTypeAssertion=function(e){return e.kind===yo.SyntaxKind.TypeAssertionExpression},t.isTypeLiteralNode=function(e){return e.kind===yo.SyntaxKind.TypeLiteral},t.isTypeOfExpression=function(e){return e.kind===yo.SyntaxKind.TypeOfExpression},t.isTypeOperatorNode=function(e){return e.kind===yo.SyntaxKind.TypeOperator},t.isTypeParameterDeclaration=function(e){return e.kind===yo.SyntaxKind.TypeParameter},t.isTypePredicateNode=function(e){return e.kind===yo.SyntaxKind.TypePredicate},t.isTypeReferenceNode=function(e){return e.kind===yo.SyntaxKind.TypeReference},t.isTypeQueryNode=function(e){return e.kind===yo.SyntaxKind.TypeQuery},t.isUnionTypeNode=function(e){return e.kind===yo.SyntaxKind.UnionType},t.isVariableDeclaration=function(e){return e.kind===yo.SyntaxKind.VariableDeclaration},t.isVariableStatement=function(e){return e.kind===yo.SyntaxKind.VariableStatement},t.isVariableDeclarationList=function(e){return e.kind===yo.SyntaxKind.VariableDeclarationList},t.isVoidExpression=function(e){return e.kind===yo.SyntaxKind.VoidExpression},t.isWhileStatement=function(e){return e.kind===yo.SyntaxKind.WhileStatement},t.isWithStatement=function(e){return e.kind===yo.SyntaxKind.WithStatement}})),ss=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),as.__exportStar(os,t),t.isImportTypeNode=function(e){return e.kind===yo.SyntaxKind.ImportType}})),cs=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),as.__exportStar(ss,t),t.isOptionalTypeNode=function(e){return e.kind===yo.SyntaxKind.OptionalType},t.isRestTypeNode=function(e){return e.kind===yo.SyntaxKind.RestType},t.isSyntheticExpression=function(e){return e.kind===yo.SyntaxKind.SyntheticExpression}})),us=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),as.__exportStar(cs,t),t.isBigIntLiteral=function(e){return e.kind===yo.SyntaxKind.BigIntLiteral}})),ls=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),as.__exportStar(us,t)})),ds=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isConditionalType=function(e){return 0!=(e.flags&yo.TypeFlags.Conditional)},t.isEnumType=function(e){return 0!=(e.flags&yo.TypeFlags.Enum)},t.isGenericType=function(e){return 0!=(e.flags&yo.TypeFlags.Object)&&0!=(e.objectFlags&yo.ObjectFlags.ClassOrInterface)&&0!=(e.objectFlags&yo.ObjectFlags.Reference)},t.isIndexedAccessType=function(e){return 0!=(e.flags&yo.TypeFlags.IndexedAccess)},t.isIndexedAccessype=function(e){return 0!=(e.flags&yo.TypeFlags.Index)},t.isInstantiableType=function(e){return 0!=(e.flags&yo.TypeFlags.Instantiable)},t.isInterfaceType=function(e){return 0!=(e.flags&yo.TypeFlags.Object)&&0!=(e.objectFlags&yo.ObjectFlags.ClassOrInterface)},t.isIntersectionType=function(e){return 0!=(e.flags&yo.TypeFlags.Intersection)},t.isLiteralType=function(e){return 0!=(e.flags&(yo.TypeFlags.StringOrNumberLiteral|yo.TypeFlags.BigIntLiteral))},t.isObjectType=function(e){return 0!=(e.flags&yo.TypeFlags.Object)},t.isSubstitutionType=function(e){return 0!=(e.flags&yo.TypeFlags.Substitution)},t.isTypeParameter=function(e){return 0!=(e.flags&yo.TypeFlags.TypeParameter)},t.isTypeReference=function(e){return 0!=(e.flags&yo.TypeFlags.Object)&&0!=(e.objectFlags&yo.ObjectFlags.Reference)},t.isTypeVariable=function(e){return 0!=(e.flags&yo.TypeFlags.TypeVariable)},t.isUnionOrIntersectionType=function(e){return 0!=(e.flags&yo.TypeFlags.UnionOrIntersection)},t.isUnionType=function(e){return 0!=(e.flags&yo.TypeFlags.Union)},t.isUniqueESSymbolType=function(e){return 0!=(e.flags&yo.TypeFlags.UniqueESSymbol)}})),_s=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),as.__exportStar(ds,t)})),ps=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),as.__exportStar(_s,t);const r=_s;function n(e){return 0!==(e.flags&yo.TypeFlags.Object&&e.objectFlags&yo.ObjectFlags.Tuple)}t.isTupleType=n,t.isTupleTypeReference=function(e){return r.isTypeReference(e)&&n(e.target)}})),fs=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),as.__exportStar(ps,t)})),gs=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),as.__exportStar(us,t),as.__exportStar(fs,t)})),ms=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),as.__exportStar(fs,t)})),ys=r((function(e,t){function r(e,t){if(!n(t,yo.TypeFlags.Undefined))return t;const r=n(t,yo.TypeFlags.Null);return t=e.getNonNullableType(t),r?e.getNullableType(t,yo.TypeFlags.Null):t}function n(e,t){for(const r of a(e))if(vs.isTypeFlagSet(r,t))return!0;return!1}function i(e,t,r){let n;return r|=yo.TypeFlags.Any,function t(i){if(ms.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)}const r=i.symbol.declarations[0];return void 0===r.constraint||t(e.getTypeFromTypeNode(r.constraint))}return ms.isUnionType(i)?i.types.every(t):ms.isIntersectionType(i)?i.types.some(t):vs.isTypeFlagSet(i,r)}(t)}function a(e){return ms.isUnionType(e)?e.types:[e]}function o(e,t,r){return t(e)?e.types.some(r):r(e)}function s(e,t,r){let n=e.getApparentType(e.getTypeOfSymbolAtLocation(t,r));if(t.valueDeclaration.dotDotDotToken&&(n=n.getNumberIndexType(),void 0===n))return!1;for(const e of a(n))if(0!==e.getCallSignatures().length)return!0;return!1}function c(e,t){return vs.isTypeFlagSet(e,yo.TypeFlags.BooleanLiteral)&&e.intrinsicName===(t?"true":"false")}function u(e,t){return t.startsWith("__")?e.getProperties().find((e=>e.escapedName===t)):e.getProperty(t)}function l(e,t,r){let n=!1,i=!1;for(const o of a(e))if(void 0===u(o,t)){const e=(vs.isNumericPropertyName(t)?r.getIndexInfoOfType(o,yo.IndexKind.Number):void 0)||r.getIndexInfoOfType(o,yo.IndexKind.String);if(void 0!==e&&e.isReadonly){if(n)return!0;i=!0}}else{if(i||d(o,t,r))return!0;n=!0}return!1}function d(e,t,r){return o(e,ms.isIntersectionType,(e=>{const n=u(e,t);if(void 0===n)return!1;if(n.flags&yo.SymbolFlags.Transient){if(/^(?:[1-9]\d*|0)$/.test(t)&&ms.isTupleTypeReference(e))return e.target.readonly;switch(function(e,t,r){if(!ms.isObjectType(e)||!vs.isObjectFlagSet(e,yo.ObjectFlags.Mapped))return;const n=e.symbol.declarations[0];return void 0===n.readonlyToken||/^__@[^@]+$/.test(t)?l(e.modifiersType,t,r):n.readonlyToken.kind!==yo.SyntaxKind.MinusToken}(e,t,r)){case!0:return!0;case!1:return!1}}return vs.isSymbolFlagSet(n,yo.SymbolFlags.ValueModule)||_(n,r)}))}function _(e,t){return(e.flags&yo.SymbolFlags.Accessor)===yo.SymbolFlags.GetAccessor||void 0!==e.declarations&&e.declarations.some((e=>vs.isModifierFlagSet(e,yo.ModifierFlags.Readonly)||ls.isVariableDeclaration(e)&&vs.isNodeFlagSet(e.parent,yo.NodeFlags.Const)||ls.isCallExpression(e)&&vs.isReadonlyAssignmentDeclaration(e,t)||ls.isEnumMember(e)||(ls.isPropertyAssignment(e)||ls.isShorthandPropertyAssignment(e))&&vs.isInConstContext(e.parent)))}Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyObjectType=function e(t){if(ms.isObjectType(t)&&t.objectFlags&yo.ObjectFlags.Anonymous&&0===t.getProperties().length&&0===t.getCallSignatures().length&&0===t.getConstructSignatures().length&&void 0===t.getStringIndexType()&&void 0===t.getNumberIndexType()){const r=t.getBaseTypes();return void 0===r||r.every(e)}return!1},t.removeOptionalityFromType=r,t.isTypeAssignableToNumber=function(e,t){return i(e,t,yo.TypeFlags.NumberLike)},t.isTypeAssignableToString=function(e,t){return i(e,t,yo.TypeFlags.StringLike)},t.getCallSignaturesOfType=function e(t){if(ms.isUnionType(t)){const r=[];for(const n of t.types)r.push(...e(n));return r}if(ms.isIntersectionType(t)){let r;for(const n of t.types){const t=e(n);if(0!==t.length){if(void 0!==r)return[];r=t}}return void 0===r?[]:r}return t.getCallSignatures()},t.unionTypeParts=a,t.intersectionTypeParts=function(e){return ms.isIntersectionType(e)?e.types:[e]},t.someTypePart=o,t.isThenableType=function(e,t,r=e.getTypeAtLocation(t)){for(const n of a(e.getApparentType(r))){const r=n.getProperty("then");if(void 0===r)continue;const i=e.getTypeOfSymbolAtLocation(r,t);for(const r of a(i))for(const n of r.getCallSignatures())if(0!==n.parameters.length&&s(e,n.parameters[0],t))return!0}return!1},t.isFalsyType=function(e){return!!(e.flags&(yo.TypeFlags.Undefined|yo.TypeFlags.Null|yo.TypeFlags.Void))||(ms.isLiteralType(e)?!e.value:c(e,!1))},t.isBooleanLiteralType=c,t.getPropertyOfType=u,t.isPropertyReadonlyInType=l,t.symbolHasReadonlyDeclaration=_,t.getPropertyNameFromType=function(e){if(e.flags&(yo.TypeFlags.StringLiteral|yo.TypeFlags.NumberLiteral)){const t=String(e.value);return{displayName:t,symbolName:yo.escapeLeadingUnderscores(t)}}if(ms.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===yo.SyntaxKind.ClassDeclaration?t.getTypeAtLocation(e):t.getTypeOfSymbolAtLocation(t.getTypeAtLocation(e).getProperty("prototype"),e)},t.getIteratorYieldResultFromIteratorResult=function(e,t,n){return ms.isUnionType(e)&&e.types.find((e=>{const i=e.getProperty("done");return void 0!==i&&c(r(n,n.getTypeOfSymbolAtLocation(i,t)),!1)}))||e}})),vs=r((function(e,t){function r(e){return e>=yo.SyntaxKind.FirstToken&&e<=yo.SyntaxKind.LastToken}function n(e){return e>=yo.SyntaxKind.FirstAssignment&&e<=yo.SyntaxKind.LastAssignment}function i(e,...t){if(void 0===e)return!1;for(const r of e)if(t.includes(r.kind))return!0;return!1}function a(e,t){return 0!=(e.flags&t)}function o(e,t,n,i){if(!(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(;;){for(const a of e.getChildren(n))if(a.end>t&&(i||a.kind!==yo.SyntaxKind.JSDocComment)){if(r(a.kind))return a;e=a;continue e}return}}function c(e,t,r=e){const n=o(r,t,e);if(void 0===n||n.kind===yo.SyntaxKind.JsxText||t>=n.end-(yo.tokenToString(n.kind)||"").length)return;const i=0===n.pos?(yo.getShebang(e.text)||"").length:n.pos;return 0!==i&&yo.forEachTrailingCommentRange(e.text,i,u,t)||yo.forEachLeadingCommentRange(e.text,i,u,t)}function u(e,t,r,n,i){return i>=e&&i=65536?2:1}function x(e,t=yo.ScriptTarget.Latest){if(0===e.length)return!1;let r=e.codePointAt(0);if(!yo.isIdentifierStart(r,t))return!1;for(let n=D(r);nn===yo.SyntaxKind.MultiLineCommentTrivia&&"*"===t.text[e+2]?{pos:e}:void 0));if(void 0===i)return[];const a=i.pos,o=t.text.slice(a,n),s=yo.createSourceFile("jsdoc.ts","".concat(o,"var a;"),t.languageVersion),c=k(s.statements[0],s);for(const t of c)u(t,e);return c;function u(e,t){return e.pos+=a,e.end+=a,e.parent=t,yo.forEachChild(e,(t=>u(t,e)),(t=>{t.pos+=a,t.end+=a;for(const r of t)u(r,e)}))}}function F(e,t){return new N(e,t).find()}Object.defineProperty(t,"__esModule",{value:!0}),t.getChildOfKind=function(e,t,r){for(const n of e.getChildren(r))if(n.kind===t)return n},t.isTokenKind=r,t.isNodeKind=function(e){return e>=yo.SyntaxKind.FirstNode},t.isAssignmentKind=n,t.isTypeNodeKind=function(e){return e>=yo.SyntaxKind.FirstTypeNode&&e<=yo.SyntaxKind.LastTypeNode},t.isJsDocKind=function(e){return e>=yo.SyntaxKind.FirstJSDocNode&&e<=yo.SyntaxKind.LastJSDocNode},t.isKeywordKind=function(e){return e>=yo.SyntaxKind.FirstKeyword&&e<=yo.SyntaxKind.LastKeyword},t.isThisParameter=function(e){return e.name.kind===yo.SyntaxKind.Identifier&&e.name.originalKeywordKind===yo.SyntaxKind.ThisKeyword},t.getModifier=function(e,t){if(void 0!==e.modifiers)for(const r of e.modifiers)if(r.kind===t)return r},t.hasModifier=i,t.isParameterProperty=function(e){return i(e.modifiers,yo.SyntaxKind.PublicKeyword,yo.SyntaxKind.ProtectedKeyword,yo.SyntaxKind.PrivateKeyword,yo.SyntaxKind.ReadonlyKeyword)},t.hasAccessModifier=function(e){return i(e.modifiers,yo.SyntaxKind.PublicKeyword,yo.SyntaxKind.ProtectedKeyword,yo.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!=(yo.getCombinedModifierFlags(e)&t)},t.getPreviousStatement=function(e){const t=e.parent;if(ls.isBlockLike(t)){const r=t.statements.indexOf(e);if(r>0)return t.statements[r-1]}},t.getNextStatement=function(e){const t=e.parent;if(ls.isBlockLike(t)){const r=t.statements.indexOf(e);if(r=0;--t){const a=i[t];if(a.post||e.node.end<=t))e:for(;;){for(const r of e.children){if(r.node.pos>t)return e;if(r.node.end>t){e=r;continue e}}return e}},t.getPropertyName=l,t.forEachDestructuringIdentifier=d,t.forEachDeclaredVariable=function(e,t){for(const r of e.declarations){let e;if(e=r.name.kind===yo.SyntaxKind.Identifier?t(r):d(r.name,t),e)return e}},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&yo.NodeFlags.Let?1:e.flags&yo.NodeFlags.Const?2:0},t.isBlockScopedVariableDeclarationList=_,t.isBlockScopedVariableDeclaration=function(e){const t=e.parent;return t.kind===yo.SyntaxKind.CatchClause||_(t)},t.isBlockScopedDeclarationStatement=function(e){switch(e.kind){case yo.SyntaxKind.VariableStatement:return _(e.declarationList);case yo.SyntaxKind.ClassDeclaration:case yo.SyntaxKind.EnumDeclaration:case yo.SyntaxKind.InterfaceDeclaration:case yo.SyntaxKind.TypeAliasDeclaration:return!0;default:return!1}},t.isInSingleStatementContext=function(e){switch(e.parent.kind){case yo.SyntaxKind.ForStatement:case yo.SyntaxKind.ForInStatement:case yo.SyntaxKind.ForOfStatement:case yo.SyntaxKind.WhileStatement:case yo.SyntaxKind.DoStatement:case yo.SyntaxKind.IfStatement:case yo.SyntaxKind.WithStatement:case yo.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 f(e)||g(e)||p(e)},t.isTypeScopeBoundary=p,t.isFunctionScopeBoundary=f,t.isBlockScopeBoundary=g,t.hasOwnThisReference=function(e){switch(e.kind){case yo.SyntaxKind.ClassDeclaration:case yo.SyntaxKind.ClassExpression:case yo.SyntaxKind.FunctionExpression:return!0;case yo.SyntaxKind.FunctionDeclaration:return void 0!==e.body;case yo.SyntaxKind.MethodDeclaration:case yo.SyntaxKind.GetAccessor:case yo.SyntaxKind.SetAccessor:return e.parent.kind===yo.SyntaxKind.ObjectLiteralExpression;default:return!1}},t.isFunctionWithBody=function(e){switch(e.kind){case yo.SyntaxKind.GetAccessor:case yo.SyntaxKind.SetAccessor:case yo.SyntaxKind.FunctionDeclaration:case yo.SyntaxKind.MethodDeclaration:case yo.SyntaxKind.Constructor:return void 0!==e.body;case yo.SyntaxKind.FunctionExpression:case yo.SyntaxKind.ArrowFunction:return!0;default:return!1}},t.forEachToken=m,t.forEachTokenWithTrivia=function(e,t,r=e.getSourceFile()){const n=r.text,i=yo.createScanner(r.languageVersion,!1,r.languageVariant,n);return m(e,(e=>{const a=e.kind===yo.SyntaxKind.JsxText||e.pos===e.end?e.pos:e.getStart(r);if(a!==e.pos){i.setTextPos(e.pos);let r=i.scan(),o=i.getTokenPos();for(;o{if(e.pos!==e.end)return e.kind!==yo.SyntaxKind.JsxText&&yo.forEachLeadingCommentRange(n,0===e.pos?(yo.getShebang(n)||"").length:e.pos,a),i||function(e){switch(e.kind){case yo.SyntaxKind.CloseBraceToken:return e.parent.kind!==yo.SyntaxKind.JsxExpression||!y(e.parent.parent);case yo.SyntaxKind.GreaterThanToken:switch(e.parent.kind){case yo.SyntaxKind.JsxOpeningElement:return e.end!==e.parent.end;case yo.SyntaxKind.JsxOpeningFragment:return!1;case yo.SyntaxKind.JsxSelfClosingElement:return e.end!==e.parent.end||!y(e.parent.parent);case yo.SyntaxKind.JsxClosingElement:case yo.SyntaxKind.JsxClosingFragment:return!y(e.parent.parent.parent)}}return!0}(e)?yo.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){const t=e.getLineStarts(),r=[],n=t.length,i=e.text;let a=0;for(let e=1;ea&&yo.isLineBreak(i.charCodeAt(o-1));--o);r.push({pos:a,end:n,contentLength:o-a}),a=n}return r.push({pos:a,end:e.end,contentLength:e.end-a}),r},t.getLineBreakStyle=function(e){const t=e.getLineStarts();return 1===t.length||t[1]<2||"\r"!==e.text[t[1]-2]?"\n":"\r\n"},t.isValidIdentifier=function(e,t=yo.ScriptTarget.Latest){const r=h(e,t);return r.isIdentifier()&&r.getTextPos()===e.length&&0===r.getTokenPos()},t.isValidPropertyAccess=x,t.isValidPropertyName=function(e,t=yo.ScriptTarget.Latest){if(x(e,t))return!0;const r=h(e,t);return r.getTextPos()===e.length&&r.getToken()===yo.SyntaxKind.NumericLiteral&&r.getTokenValue()===e},t.isValidNumericLiteral=function(e,t=yo.ScriptTarget.Latest){const r=h(e,t);return r.getToken()===yo.SyntaxKind.NumericLiteral&&r.getTextPos()===e.length&&0===r.getTokenPos()},t.isValidJsxIdentifier=function(e,t=yo.ScriptTarget.Latest){if(0===e.length)return!1;let r=e.codePointAt(0);if(!yo.isIdentifierStart(r,t))return!1;for(let n=D(r);n{if(i===yo.SyntaxKind.SingleLineCommentTrivia){const i=e.slice(r,n),a=/^\/{2,3}\s*@ts-(no)?check(?:\s|$)/i.exec(i);null!==a&&(t={pos:r,end:n,enabled:void 0===a[1]})}})),t},t.isConstAssertion=I,t.isInConstContext=function(e){let t=e;for(;;){const e=t.parent;e:switch(e.kind){case yo.SyntaxKind.TypeAssertionExpression:case yo.SyntaxKind.AsExpression:return I(e);case yo.SyntaxKind.PrefixUnaryExpression:if(t.kind!==yo.SyntaxKind.NumericLiteral)return!1;switch(e.operator){case yo.SyntaxKind.PlusToken:case yo.SyntaxKind.MinusToken:t=e;break e;default:return!1}case yo.SyntaxKind.PropertyAssignment:if(e.initializer!==t)return!1;t=e.parent;break;case yo.SyntaxKind.ShorthandPropertyAssignment:t=e.parent;break;case yo.SyntaxKind.ParenthesizedExpression:case yo.SyntaxKind.ArrayLiteralExpression:case yo.SyntaxKind.ObjectLiteralExpression:t=e;break;default:return!1}}},t.isReadonlyAssignmentDeclaration=function(e,t){if(!O(e))return!1;const r=t.getTypeAtLocation(e.arguments[2]);if(void 0===r.getProperty("value"))return void 0===r.getProperty("set");const n=r.getProperty("writable");if(void 0===n)return!1;const i=void 0!==n.valueDeclaration&&ls.isPropertyAssignment(n.valueDeclaration)?t.getTypeAtLocation(n.valueDeclaration.initializer):t.getTypeOfSymbolAtLocation(n,e.arguments[2]);return ys.isBooleanLiteralType(i,!1)},t.isBindableObjectDefinePropertyCall=O,t.isWellKnownSymbolLiterally=M,t.getPropertyNameOfWellKnownSymbol=L,t.getLateBoundPropertyNames=R,t.getLateBoundPropertyNamesOfPropertyName=function(e,t){const r=l(e);return void 0!==r?{known:!0,names:[{displayName:r,symbolName:yo.escapeLeadingUnderscores(r)}]}:R(e.expression,t)},t.getSingleLateBoundPropertyNameOfPropertyName=function(e,t){const r=l(e);if(void 0!==r)return{displayName:r,symbolName:yo.escapeLeadingUnderscores(r)};const{expression:n}=e;return M(n)?L(n):ys.getPropertyNameFromType(t.getTypeAtLocation(n))},t.unwrapParentheses=B})),hs=r((function(e,r){var n=t&&t.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=t&&t.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=t&&t.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(r,"__esModule",{value:!0}),r.convertComments=void 0;const o=a(yo);r.convertComments=function(e,t){const r=[];return vs.forEachComment(e,((n,i)=>{const a=i.kind==o.SyntaxKind.SingleLineCommentTrivia?Xo.AST_TOKEN_TYPES.Line:Xo.AST_TOKEN_TYPES.Block,s=[i.pos,i.end],c=Qo.getLocFor(s[0],s[1],e),u=s[0]+2,l=i.kind===o.SyntaxKind.SingleLineCommentTrivia?s[1]-u:s[1]-u-2;r.push({type:a,value:t.substr(u,l),range:s,loc:c})}),e),r}})),Ds={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"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],Program:["body"],Property:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],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"]};const xs=Object.freeze(Object.keys(Ds));for(const e of xs)Object.freeze(Ds[e]);Object.freeze(Ds);const bs=new Set(["parent","leadingComments","trailingComments"]);function Ss(e){return!bs.has(e)&&"_"!==e[0]}var Es=Object.freeze({KEYS:Ds,getKeys:e=>Object.keys(e).filter(Ss),unionWith(e){const t=Object.assign({},Ds);for(const r of Object.keys(e))if(t.hasOwnProperty(r)){const n=new Set(e[r]);for(const e of t[r])n.add(e);t[r]=Object.freeze(Array.from(n))}else t[r]=Object.freeze(Array.from(e[r]));return Object.freeze(t)}}),Cs=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getKeys=void 0;const r=Es.getKeys;t.getKeys=r})),Ts=r((function(e,r){var n=t&&t.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=t&&t.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=t&&t.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(r,"__esModule",{value:!0}),r.visitorKeys=void 0;const o=a(Es).unionWith({ImportExpression:["source"],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"],FunctionDeclaration:["id","typeParameters","params","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["decorators","typeAnnotation"],MethodDefinition:["decorators","key","value"],NewExpression:["callee","typeParameters","arguments"],ObjectPattern:["decorators","properties","typeAnnotation"],RestElement:["decorators","argument","typeAnnotation"],TaggedTemplateExpression:["tag","typeParameters","quasi"],JSXOpeningElement:["name","typeParameters","attributes"],JSXClosingFragment:[],JSXOpeningFragment:[],JSXSpreadChild:["expression"],ClassProperty:["decorators","key","typeAnnotation","value"],Decorator:["expression"],TSAbstractClassProperty:["decorators","key","typeAnnotation","value"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],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"],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"],TSParenthesizedType:["typeAnnotation"],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:[]});r.visitorKeys=o})),ks=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.visitorKeys=t.getKeys=void 0,Object.defineProperty(t,"getKeys",{enumerable:!0,get:function(){return Cs.getKeys}}),Object.defineProperty(t,"visitorKeys",{enumerable:!0,get:function(){return Ts.visitorKeys}})})),As=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.simpleTraverse=void 0;class r{constructor(e,t=!1){this.allVisitorKeys=ks.visitorKeys,this.selectors=e,this.setParentPointers=t}traverse(e,t){if(null===(r=e)||"object"!=typeof r||"string"!=typeof r.type)return;var r;this.setParentPointers&&(e.parent=t),"enter"in this.selectors?this.selectors.enter(e,t):e.type in this.selectors&&this.selectors[e.type](e,t);const n=function(e,t){const r=e[t.type];return null!=r?r:[]}(this.allVisitorKeys,e);if(!(n.length<1))for(const t of n){const r=e[t];if(Array.isArray(r))for(const t of r)this.traverse(t,e);else this.traverse(r,e)}}}t.simpleTraverse=function(e,t,n=!1){new r(t,n).traverse(e,void 0)}})),Fs=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.astConverter=void 0,t.astConverter=function(e,t,r){const n=e.parseDiagnostics;if(n.length)throw Zo.convertError(n[0]);const i=new Zo.Converter(e,{errorOnUnknownASTType:t.errorOnUnknownASTType||!1,useJSXTextNode:t.useJSXTextNode||!1,shouldPreserveNodeMaps:r}),a=i.convertProgram();return t.range&&t.loc||As.simpleTraverse(a,{enter:e=>{t.range||delete e.range,t.loc||delete e.loc}}),t.tokens&&(a.tokens=Qo.convertTokens(e)),t.comment&&(a.comments=hs.convertComments(e,t.code)),{estree:a,astMaps:i.getASTMaps()}}})),Ns=r((function(e,r){var n=t&&t.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=t&&t.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=t&&t.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.getTsconfigPath=r.getScriptKind=r.getCanonicalFileName=r.ensureAbsolutePath=r.createDefaultCompilerOptionsFromExtra=r.canonicalDirname=void 0;const s=o(fo),c=a(yo),u={allowNonTsExtensions:!0,allowJs:!0,checkJs:!0,noEmit:!0,noUnusedLocals:!0,noUnusedParameters:!0};r.createDefaultCompilerOptionsFromExtra=function(e){return e.debugLevel.has("typescript")?Object.assign(Object.assign({},u),{extendedDiagnostics:!0}):u};const l=void 0===c.sys||c.sys.useCaseSensitiveFileNames?e=>e:e=>e.toLowerCase();function d(e){let t=s.default.normalize(e);return t.endsWith(s.default.sep)&&(t=t.substr(0,t.length-1)),l(t)}function _(e,t){return s.default.isAbsolute(e)?e:s.default.join(t.tsconfigRootDir||V.cwd(),e)}r.getCanonicalFileName=d,r.ensureAbsolutePath=_,r.getTsconfigPath=function(e,t){return d(_(e,t))},r.canonicalDirname=function(e){return s.default.dirname(e)},r.getScriptKind=function(e,t=e.filePath){switch(s.default.extname(t).toLowerCase()){case".ts":return c.ScriptKind.TS;case".tsx":return c.ScriptKind.TSX;case".js":return c.ScriptKind.JS;case".jsx":return c.ScriptKind.JSX;case".json":return c.ScriptKind.JSON;default:return e.jsx?c.ScriptKind.TSX:c.ScriptKind.TS}}})),Ps=r((function(e,r){var n=t&&t.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=t&&t.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=t&&t.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.createDefaultProgram=void 0;const s=o(cn),c=o(fo),u=a(yo),l=s.default("typescript-eslint:typescript-estree:createDefaultProgram");r.createDefaultProgram=function(e,t){if(l("Getting default program for: %s",t.filePath||"unnamed file"),!t.projects||1!==t.projects.length)return;const r=Ns.getTsconfigPath(t.projects[0],t),n=u.getParsedCommandLineOfConfigFile(r,Ns.createDefaultCompilerOptionsFromExtra(t),Object.assign(Object.assign({},u.sys),{onUnRecoverableConfigFileDiagnostic:()=>{}}));if(!n)return;const i=u.createCompilerHost(n.options,!0),a=i.readFile;i.readFile=r=>c.default.normalize(r)===c.default.normalize(t.filePath)?e:a(r);const o=u.createProgram([t.filePath],n.options,i),s=o.getSourceFile(t.filePath);return s&&{ast:s,program:o}}})),ws=r((function(e,r){var n=t&&t.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=t&&t.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=t&&t.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.createIsolatedProgram=void 0;const s=o(cn),c=a(yo),u=s.default("typescript-eslint:typescript-estree:createIsolatedProgram");r.createIsolatedProgram=function(e,t){u("Getting isolated program in %s mode for: %s",t.jsx?"TSX":"TS",t.filePath);const r={fileExists:()=>!0,getCanonicalFileName:()=>t.filePath,getCurrentDirectory:()=>"",getDirectories:()=>[],getDefaultLibFileName:()=>"lib.d.ts",getNewLine:()=>"\n",getSourceFile:r=>c.createSourceFile(r,e,c.ScriptTarget.Latest,!0,Ns.getScriptKind(t,r)),readFile(){},useCaseSensitiveFileNames:()=>!0,writeFile:()=>null},n=c.createProgram([t.filePath],Object.assign({noResolve:!0,target:c.ScriptTarget.Latest,jsx:t.jsx?c.JsxEmit.Preserve:void 0},Ns.createDefaultCompilerOptionsFromExtra(t)),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}}})),Is=r((function(e,r){var n=t&&t.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=t&&t.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=t&&t.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.getProgramsForProjects=r.createWatchProgram=r.clearCaches=void 0;const s=o(cn),c=o(go),u=o(Ci),l=a(yo),d=s.default("typescript-eslint:typescript-estree:createWatchProgram"),_=new Map,p=new Map,f=new Map,g=new Map,m=new Map,y=new Map;function v(e){return(t,r)=>{const n=Ns.getCanonicalFileName(t),i=(()=>{let t=e.get(n);return t||(t=new Set,e.set(n,t)),t})();return i.add(r),{close:()=>{i.delete(r)}}}}r.clearCaches=function(){_.clear(),p.clear(),f.clear(),y.clear(),g.clear(),m.clear()};const h={code:"",filePath:""};function D(e){throw new Error(l.flattenDiagnosticMessageText(e.messageText,l.sys.newLine))}function x(e){var t;return(null===(t=l.sys)||void 0===t?void 0:t.createHash)?l.sys.createHash(e):e}function b(e,t,r){const n=r.EXPERIMENTAL_useSourceOfProjectReferenceRedirect?new Set(t.getSourceFiles().map((e=>Ns.getCanonicalFileName(e.fileName)))):new Set(t.getRootFileNames().map((e=>Ns.getCanonicalFileName(e))));return g.set(e,n),n}r.getProgramsForProjects=function(e,t,r){const n=Ns.getCanonicalFileName(t),i=[];h.code=e,h.filePath=n;const a=p.get(n),o=x(e);y.get(n)!==o&&a&&a.size>0&&a.forEach((e=>e(n,l.FileWatcherEventKind.Changed)));for(const[e,t]of _.entries()){let i=g.get(e),a=null;if(i||(a=t.getProgram().getProgram(),i=b(e,a,r)),i.has(n))return d("Found existing program for file. %s",n),a=null!=a?a:t.getProgram().getProgram(),a.getTypeChecker(),[a]}d("File did not belong to any existing programs, moving to create/update. %s",n);for(const e of r.projects){const t=Ns.getTsconfigPath(e,r),a=_.get(t);if(a){const e=C(a,n,t);if(!e)continue;e.getTypeChecker();if(b(t,e,r).has(n))return d("Found updated program for file. %s",n),[e];i.push(e);continue}const o=E(t,r);_.set(t,o);const s=o.getProgram().getProgram();s.getTypeChecker();if(b(t,s,r).has(n))return d("Found program for file. %s",n),[s];i.push(s)}return i};const S=u.default.satisfies(l.version,">=3.9.0-beta",{includePrerelease:!0});function E(e,t){d("Creating watch program for %s.",e);const r=l.createWatchCompilerHost(e,Ns.createDefaultCompilerOptionsFromExtra(t),l.sys,l.createAbstractBuilder,D,(()=>{})),n=r.readFile;r.readFile=(e,t)=>{const r=Ns.getCanonicalFileName(e),i=r===h.filePath?h.code:n(r,t);return void 0!==i&&y.set(r,x(i)),i},r.onUnRecoverableConfigFileDiagnostic=D,r.afterProgramCreate=e=>{const t=e.getConfigFileParsingDiagnostics().filter((e=>e.category===l.DiagnosticCategory.Error&&18003!==e.code));t.length>0&&D(t[0])},r.watchFile=v(p),r.watchDirectory=v(f);const i=r.onCachedDirectoryStructureHostCreate;let a;r.onCachedDirectoryStructureHostCreate=e=>{const r=e.readDirectory;e.readDirectory=(e,n,i,a,o)=>r(e,n?n.concat(t.extraFileExtensions):void 0,i,a,o),i(e)},r.extraFileExtensions=t.extraFileExtensions.map((e=>({extension:e,isMixedContent:!0,scriptKind:l.ScriptKind.Deferred}))),r.trace=d,r.useSourceOfProjectReferenceRedirect=()=>t.EXPERIMENTAL_useSourceOfProjectReferenceRedirect,S?(r.setTimeout=void 0,r.clearTimeout=void 0):(d("Running without timeout fix"),r.setTimeout=(e,t,...r)=>(a=e.bind(void 0,...r),a),r.clearTimeout=()=>{a=void 0});const o=l.createWatchProgram(r);if(!S){const e=o.getProgram;o.getProgram=()=>(a&&a(),a=void 0,e.call(o))}return o}function C(e,t,r){let n=e.getProgram().getProgram();if("true"===V.env.TSESTREE_NO_INVALIDATION)return n;(function(e){const t=c.default.statSync(e).mtimeMs,r=m.get(e);return m.set(e,t),void 0!==r&&Math.abs(r-t)>Number.EPSILON})(r)&&(d("tsconfig has changed - triggering program update. %s",r),p.get(r).forEach((e=>e(r,l.FileWatcherEventKind.Changed))),g.delete(r));let i=n.getSourceFile(t);if(i)return n;d("File was not found in program - triggering folder update. %s",t);const a=Ns.canonicalDirname(t);let o=null,s=a,u=!1;for(;o!==s;){o=s;const e=f.get(o);e&&(e.forEach((e=>{a!==o&&e(a,l.FileWatcherEventKind.Changed),e(o,l.FileWatcherEventKind.Changed)})),u=!0),s=Ns.canonicalDirname(o)}if(!u)return d("No callback found for file, not part of this program. %s",t),null;if(g.delete(r),n=e.getProgram().getProgram(),i=n.getSourceFile(t),i)return n;d("File was still not found in program after directory update - checking file deletions. %s",t);const _=n.getRootFileNames().find((e=>!c.default.existsSync(e)));if(!_)return null;const y=p.get(Ns.getCanonicalFileName(_));return y?(d("Marking file as deleted. %s",_),y.forEach((e=>e(_,l.FileWatcherEventKind.Deleted))),g.delete(r),n=e.getProgram().getProgram(),i=n.getSourceFile(t),i?n:(d("File was still not found in program after deletion check, assuming it is not part of this program. %s",t),null)):(d("Could not find watch callbacks for root file. %s",_),n)}r.createWatchProgram=E})),Os=r((function(e,r){var n=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.createProjectProgram=void 0;const i=n(cn),a=n(fo),o=i.default("typescript-eslint:typescript-estree:createProjectProgram"),s=[".ts",".tsx",".js",".jsx"];function c(e){return e?e.endsWith(".d.ts")?".d.ts":a.default.extname(e):null}r.createProjectProgram=function(e,t,r){o("Creating project program for: %s",r.filePath);const n=Qo.firstDefined(Is.getProgramsForProjects(e,r.filePath,r),(e=>{const t=e.getSourceFile(r.filePath);if(c(r.filePath)===c(null==t?void 0:t.fileName))return t&&{ast:t,program:e}}));if(!n&&!t){const e=['"parserOptions.project" has been set for @typescript-eslint/parser.',"The file does not match your project config: ".concat(a.default.relative(r.tsconfigRootDir||V.cwd(),r.filePath),".")];let t=!1;const n=r.extraFileExtensions||[];n.forEach((t=>{t.startsWith(".")||e.push('Found unexpected extension "'.concat(t,'" specified with the "extraFileExtensions" option. Did you mean ".').concat(t,'"?')),s.includes(t)&&e.push('You unnecessarily included the extension "'.concat(t,'" with the "extraFileExtensions" option. This extension is already handled by the parser by default.'))}));const i=a.default.extname(r.filePath);if(!s.includes(i)){const r="The extension for the file (".concat(i,") is non-standard");n.length>0?n.includes(i)||(e.push("".concat(r,'. It should be added to your existing "parserOptions.extraFileExtensions".')),t=!0):(e.push("".concat(r,'. You should add "parserOptions.extraFileExtensions" to your config.')),t=!0)}throw t||e.push("The file must be included in at least one of the projects provided."),new Error(e.join("\n"))}return n}})),Ms=r((function(e,r){var n=t&&t.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=t&&t.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=t&&t.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.createSourceFile=void 0;const s=o(cn),c=a(yo),u=s.default("typescript-eslint:typescript-estree:createSourceFile");r.createSourceFile=function(e,t){return u("Getting AST without type information in %s mode for: %s",t.jsx?"TSX":"TS",t.filePath),c.createSourceFile(t.filePath,e,c.ScriptTarget.Latest,!0,Ns.getScriptKind(t))}})),Ls=r((function(e,r){var n=t&&t.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=t&&t.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=t&&t.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(r,"__esModule",{value:!0}),r.getFirstSemanticOrSyntacticError=void 0;const o=a(yo);function s(e){return e.filter((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 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 c(e){return Object.assign(Object.assign({},e),{message:o.flattenDiagnosticMessageText(e.messageText,o.sys.newLine)})}r.getFirstSemanticOrSyntacticError=function(e,t){try{const r=s(e.getSyntacticDiagnostics(t));if(r.length)return c(r[0]);const n=s(e.getSemanticDiagnostics(t));return n.length?c(n[0]):void 0}catch(e){return void console.warn('Warning From TSC: "'.concat(e.message))}}})),Rs=r((function(e,r){var n=t&&t.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=t&&t.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=t&&t.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.parseWithNodeMaps=r.parseAndGenerateServices=r.parse=void 0;const s=o(cn),c={},u=o(_n),l=o(Ci),d=a(yo),_=s.default("typescript-eslint:typescript-estree:parser"),p=">=3.3.1 <4.2.0",f=d.version,g=l.default.satisfies(f,[p].concat(["4.1.1-rc","4.1.0-beta"]).join(" || "));let m,y=!1;function v(e){return"string"!=typeof e?String(e):e}function h({jsx:e}={}){return e?"estree.tsx":"estree.ts"}function D(){m={code:"",comment:!1,comments:[],createDefaultProgram:!1,debugLevel:new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:!1,EXPERIMENTAL_useSourceOfProjectReferenceRedirect:!1,extraFileExtensions:[],filePath:h(),jsx:!1,loc:!1,log:console.log,preserveNodeMaps:!0,projects:[],range:!1,strict:!1,tokens:null,tsconfigRootDir:V.cwd(),useJSXTextNode:!1}}function x(e){var t;if(!0===e.debugLevel?m.debugLevel=new Set(["typescript-eslint"]):Array.isArray(e.debugLevel)&&(m.debugLevel=new Set(e.debugLevel)),m.debugLevel.size>0){const e=[];m.debugLevel.has("typescript-eslint")&&e.push("typescript-eslint:*"),(m.debugLevel.has("eslint")||s.default.enabled("eslint:*,-eslint:code-path"))&&e.push("eslint:*,-eslint:code-path"),s.default.enable(e.join(","))}m.range="boolean"==typeof e.range&&e.range,m.loc="boolean"==typeof e.loc&&e.loc,"boolean"==typeof e.tokens&&e.tokens&&(m.tokens=[]),"boolean"==typeof e.comment&&e.comment&&(m.comment=!0,m.comments=[]),"boolean"==typeof e.jsx&&e.jsx&&(m.jsx=!0),"string"==typeof e.filePath&&""!==e.filePath?m.filePath=e.filePath:m.filePath=h(m),"boolean"==typeof e.useJSXTextNode&&e.useJSXTextNode&&(m.useJSXTextNode=!0),"boolean"==typeof e.errorOnUnknownASTType&&e.errorOnUnknownASTType&&(m.errorOnUnknownASTType=!0),"function"==typeof e.loggerFn?m.log=e.loggerFn:!1===e.loggerFn&&(m.log=()=>{}),"string"==typeof e.tsconfigRootDir&&(m.tsconfigRootDir=e.tsconfigRootDir),m.filePath=Ns.ensureAbsolutePath(m.filePath,m);const r=(null!==(t=e.projectFolderIgnoreList)&&void 0!==t?t:[]).reduce(((e,t)=>("string"==typeof t&&e.push(t),e)),[]).map((e=>e.startsWith("!")?e:"!".concat(e)));m.projects=[]||function(e,t){let r=[];if("string"==typeof e)r.push(e);else if(Array.isArray(e))for(const t of e)"string"==typeof t&&r.push(t);if(0===r.length)return r;const n=r.filter((e=>u.default(e)));return r=r.filter((e=>!u.default(e))).concat(c.sync([...n,...t],{cwd:m.tsconfigRootDir})),_("parserOptions.project (excluding ignored) matched projects: %s",r),r}(e.project,r),Array.isArray(e.extraFileExtensions)&&e.extraFileExtensions.every((e=>"string"==typeof e))&&(m.extraFileExtensions=e.extraFileExtensions),"boolean"==typeof e.preserveNodeMaps&&(m.preserveNodeMaps=e.preserveNodeMaps),m.createDefaultProgram="boolean"==typeof e.createDefaultProgram&&e.createDefaultProgram,m.EXPERIMENTAL_useSourceOfProjectReferenceRedirect="boolean"==typeof e.EXPERIMENTAL_useSourceOfProjectReferenceRedirect&&e.EXPERIMENTAL_useSourceOfProjectReferenceRedirect}function b(){var e;if(!g&&!y){if(void 0!==typeof V&&(null===(e=V.stdout)||void 0===e?void 0:e.isTTY)){const e="=============",t=[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(p),"YOUR TYPESCRIPT VERSION: ".concat(f),"Please only submit bug reports when using the officially supported version.",e];m.log(t.join("\n\n"))}y=!0}}function S(e,t,r){if(D(),null==t?void 0:t.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');e=v(e),m.code=e,void 0!==t&&x(t),b();const n=Ms.createSourceFile(e,m),{estree:i,astMaps:a}=Fs.astConverter(n,m,r);return{ast:i,esTreeNodeToTSNodeMap:a.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:a.tsNodeToESTreeNodeMap}}r.parse=function(e,t){const{ast:r}=S(e,t,!1);return r},r.parseWithNodeMaps=function(e,t){return S(e,t,!0)},r.parseAndGenerateServices=function(e,t){D(),e=v(e),m.code=e,void 0!==t&&(x(t),"boolean"==typeof t.errorOnTypeScriptSyntacticAndSemanticIssues&&t.errorOnTypeScriptSyntacticAndSemanticIssues&&(m.errorOnTypeScriptSyntacticAndSemanticIssues=!0)),b();const r=m.projects&&m.projects.length>0,{ast:n,program:i}=function(e,t,r){return t&&Os.createProjectProgram(e,r,m)||t&&r&&Ps.createDefaultProgram(e,m)||ws.createIsolatedProgram(e,m)}(e,r,m.createDefaultProgram),a="boolean"!=typeof m.preserveNodeMaps||m.preserveNodeMaps,{estree:o,astMaps:s}=Fs.astConverter(n,m,a);if(i&&m.errorOnTypeScriptSyntacticAndSemanticIssues){const e=Ls.getFirstSemanticOrSyntacticError(i,n);if(e)throw Zo.convertError(e)}return{ast:o,services:{hasFullTypeInformation:r,program:i,esTreeNodeToTSNodeMap:s.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:s.tsNodeToESTreeNodeMap}}}})),Bs="4.8.1",js=r((function(e,r){var n=t&&t.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),r.version=r.visitorKeys=r.clearCaches=r.simpleTraverse=void 0,i(Rs,r),Object.defineProperty(r,"simpleTraverse",{enumerable:!0,get:function(){return As.simpleTraverse}}),i(Xo,r),Object.defineProperty(r,"clearCaches",{enumerable:!0,get:function(){return Is.clearCaches}}),Object.defineProperty(r,"visitorKeys",{enumerable:!0,get:function(){return ks.visitorKeys}}),r.version=Bs}));const{hasPragma:Js}=Ge,{locStart:Ks,locEnd:zs}=$e;function Us(e,t){const{parseWithNodeMaps:r}=js;return r(e,{loc:!0,range:!0,comment:!0,useJSXTextNode:!0,jsx:t,tokens:!0,loggerFn:!1,project:[]})}var Vs={parsers:{typescript:{parse:function(t,r,n){const i=function(e){return new RegExp(["(^[^\"'`]*)"].join(""),"m").test(e)}(t);let a;try{a=Us(t,i)}catch(r){try{a=Us(t,!i)}catch(t){const{message:n,lineNumber:i,column:a}=r;if("number"!=typeof i)throw r;throw e(n,{start:{line:i,column:a+1}})}}return jr(a.ast,Object.assign({},n,{originalText:t,tsParseResult:a}))},astFormat:"estree",hasPragma:Js,locStart:Ks,locEnd:zs}}};export default Vs; +var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r=function(e,t){const r=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return r.loc=t,r};var n,i=function(){let e;for(var t=arguments.length,r=new Array(t),n=0;n{if("string"!=typeof e)throw new TypeError("Expected a string");const t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return;const r=t.filter((e=>"\r\n"===e)).length;return r>t.length-r?"\r\n":"\n"};function E(){const e=S;return E=function(){return e},e}function k(){const e=(t=T.exports)&&t.__esModule?t:{default:t};var t;return k=function(){return e},e}T.exports=C,T.exports.graceful=e=>"string"==typeof e&&C(e)||"\n",Object.defineProperty(a,"__esModule",{value:!0}),a.extract=function(e){const t=e.match(N);return t?t[0].trimLeft():""},a.strip=function(e){const t=e.match(N);return t&&t[0]?e.substring(t[0].length):e},a.parse=function(e){return R(e).pragmas},a.parseWithComments=R,a.print=function(e){let{comments:t="",pragmas:r={}}=e;const n=(0,k().default)(t)||E().EOL,i=" *",a=Object.keys(r),o=a.map((e=>B(e,r[e]))).reduce(((e,t)=>e.concat(t)),[]).map((e=>" * "+e+n)).join("");if(!t){if(0===a.length)return"";if(1===a.length&&!Array.isArray(r[a[0]])){const e=r[a[0]];return"".concat("/**"," ").concat(B(a[0],e)[0]).concat(" */")}}const s=t.split(n).map((e=>"".concat(i," ").concat(e))).join(n)+n;return"/**"+n+(t?s:"")+(t&&a.length?i+n:"")+o+" */"};const A=/\*\/$/,F=/^\/\*\*/,N=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,P=/(^|\s+)\/\/([^\r\n]*)/g,w=/^(\r?\n)+/,I=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,O=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,M=/(\r?\n|^) *\* ?/g,L=[];function R(e){const t=(0,k().default)(e)||E().EOL;e=e.replace(F,"").replace(A,"").replace(M,"$1");let r="";for(;r!==e;)r=e,e=e.replace(I,"".concat(t,"$1 $2").concat(t));e=e.replace(w,"").trimRight();const n=Object.create(null),i=e.replace(O,"").replace(w,"").trimRight();let a;for(;a=O.exec(e);){const e=a[2].replace(P,"");"string"==typeof n[a[1]]||Array.isArray(n[a[1]])?n[a[1]]=L.concat(n[a[1]],e):n[a[1]]=e}return{comments:i,pragmas:n}}function B(e,t){return L.concat(t).map((t=>"@".concat(e," ").concat(t).trim()))}var j={exports:{}};const J=function(){let{onlyFirst:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[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?void 0:"g")};var K={exports:{}};const z=e=>!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));K.exports=z,K.exports.default=z;const U=e=>"string"==typeof e?e.replace(J(),""):e,V=K.exports,q=function(){return/\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},W=e=>{if("string"!=typeof e||0===e.length)return 0;if(0===(e=U(e)).length)return 0;e=e.replace(q()," ");let t=0;for(let r=0;r=127&&n<=159||(n>=768&&n<=879||(n>65535&&r++,t+=V(n)?2:1))}return t};j.exports=W,j.exports.default=W;var H=e=>e[e.length-1];function G(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Y(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var X=function(e){return e&&e.Math==Math&&e},Q=X("object"==typeof globalThis&&globalThis)||X("object"==typeof window&&window)||X("object"==typeof self&&self)||X("object"==typeof e&&e)||function(){return this}()||Function("return this")(),$={},Z=function(e){try{return!!e()}catch(e){return!0}},ee=!Z((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),te=Function.prototype.call,re=te.bind?te.bind(te):function(){return te.apply(te,arguments)},ne={},ie={}.propertyIsEnumerable,ae=Object.getOwnPropertyDescriptor,oe=ae&&!ie.call({1:2},1);ne.f=oe?function(e){var t=ae(this,e);return!!t&&t.enumerable}:ie;var se,ce,ue=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},le=Function.prototype,de=le.bind,_e=le.call,pe=de&&de.bind(_e),fe=de?function(e){return e&&pe(_e,e)}:function(e){return e&&function(){return _e.apply(e,arguments)}},ge=fe,me=ge({}.toString),ye=ge("".slice),ve=function(e){return ye(me(e),8,-1)},he=fe,De=Z,xe=ve,be=Q.Object,Se=he("".split),Te=De((function(){return!be("z").propertyIsEnumerable(0)}))?function(e){return"String"==xe(e)?Se(e,""):be(e)}:be,Ce=Q.TypeError,Ee=function(e){if(null==e)throw Ce("Can't call method on "+e);return e},ke=Te,Ae=Ee,Fe=function(e){return ke(Ae(e))},Ne=function(e){return"function"==typeof e},Pe=Ne,we=function(e){return"object"==typeof e?null!==e:Pe(e)},Ie=Q,Oe=Ne,Me=function(e){return Oe(e)?e:void 0},Le=function(e,t){return arguments.length<2?Me(Ie[e]):Ie[e]&&Ie[e][t]},Re=fe({}.isPrototypeOf),Be=Le("navigator","userAgent")||"",je=Q,Je=Be,Ke=je.process,ze=je.Deno,Ue=Ke&&Ke.versions||ze&&ze.version,Ve=Ue&&Ue.v8;Ve&&(ce=(se=Ve.split("."))[0]>0&&se[0]<4?1:+(se[0]+se[1])),!ce&&Je&&(!(se=Je.match(/Edge\/(\d+)/))||se[1]>=74)&&(se=Je.match(/Chrome\/(\d+)/))&&(ce=+se[1]);var qe=ce,We=qe,He=Z,Ge=!!Object.getOwnPropertySymbols&&!He((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&We&&We<41})),Ye=Ge&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Xe=Le,Qe=Ne,$e=Re,Ze=Ye,et=Q.Object,tt=Ze?function(e){return"symbol"==typeof e}:function(e){var t=Xe("Symbol");return Qe(t)&&$e(t.prototype,et(e))},rt=Q.String,nt=function(e){try{return rt(e)}catch(e){return"Object"}},it=Ne,at=nt,ot=Q.TypeError,st=function(e){if(it(e))return e;throw ot(at(e)+" is not a function")},ct=st,ut=function(e,t){var r=e[t];return null==r?void 0:ct(r)},lt=re,dt=Ne,_t=we,pt=Q.TypeError,ft={exports:{}},gt=Q,mt=Object.defineProperty,yt=function(e,t){try{mt(gt,e,{value:t,configurable:!0,writable:!0})}catch(r){gt[e]=t}return t},vt=yt,ht=Q["__core-js_shared__"]||vt("__core-js_shared__",{}),Dt=ht;(ft.exports=function(e,t){return Dt[e]||(Dt[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.1",mode:"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"});var xt=Ee,bt=Q.Object,St=function(e){return bt(xt(e))},Tt=St,Ct=fe({}.hasOwnProperty),Et=Object.hasOwn||function(e,t){return Ct(Tt(e),t)},kt=fe,At=0,Ft=Math.random(),Nt=kt(1..toString),Pt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Nt(++At+Ft,36)},wt=Q,It=ft.exports,Ot=Et,Mt=Pt,Lt=Ge,Rt=Ye,Bt=It("wks"),jt=wt.Symbol,Jt=jt&&jt.for,Kt=Rt?jt:jt&&jt.withoutSetter||Mt,zt=function(e){if(!Ot(Bt,e)||!Lt&&"string"!=typeof Bt[e]){var t="Symbol."+e;Lt&&Ot(jt,e)?Bt[e]=jt[e]:Bt[e]=Rt&&Jt?Jt(t):Kt(t)}return Bt[e]},Ut=re,Vt=we,qt=tt,Wt=ut,Ht=function(e,t){var r,n;if("string"===t&&dt(r=e.toString)&&!_t(n=lt(r,e)))return n;if(dt(r=e.valueOf)&&!_t(n=lt(r,e)))return n;if("string"!==t&&dt(r=e.toString)&&!_t(n=lt(r,e)))return n;throw pt("Can't convert object to primitive value")},Gt=zt,Yt=Q.TypeError,Xt=Gt("toPrimitive"),Qt=function(e,t){if(!Vt(e)||qt(e))return e;var r,n=Wt(e,Xt);if(n){if(void 0===t&&(t="default"),r=Ut(n,e,t),!Vt(r)||qt(r))return r;throw Yt("Can't convert object to primitive value")}return void 0===t&&(t="number"),Ht(e,t)},$t=tt,Zt=function(e){var t=Qt(e,"string");return $t(t)?t:t+""},er=we,tr=Q.document,rr=er(tr)&&er(tr.createElement),nr=function(e){return rr?tr.createElement(e):{}},ir=!ee&&!Z((function(){return 7!=Object.defineProperty(nr("div"),"a",{get:function(){return 7}}).a})),ar=ee,or=re,sr=ne,cr=ue,ur=Fe,lr=Zt,dr=Et,_r=ir,pr=Object.getOwnPropertyDescriptor;$.f=ar?pr:function(e,t){if(e=ur(e),t=lr(t),_r)try{return pr(e,t)}catch(e){}if(dr(e,t))return cr(!or(sr.f,e,t),e[t])};var fr={},gr=Q,mr=we,yr=gr.String,vr=gr.TypeError,hr=function(e){if(mr(e))return e;throw vr(yr(e)+" is not an object")},Dr=ee,xr=ir,br=hr,Sr=Zt,Tr=Q.TypeError,Cr=Object.defineProperty;fr.f=Dr?Cr:function(e,t,r){if(br(e),t=Sr(t),br(r),xr)try{return Cr(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Tr("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Er=fr,kr=ue,Ar=ee?function(e,t,r){return Er.f(e,t,kr(1,r))}:function(e,t,r){return e[t]=r,e},Fr={exports:{}},Nr=Ne,Pr=ht,wr=fe(Function.toString);Nr(Pr.inspectSource)||(Pr.inspectSource=function(e){return wr(e)});var Ir,Or,Mr,Lr=Pr.inspectSource,Rr=Ne,Br=Lr,jr=Q.WeakMap,Jr=Rr(jr)&&/native code/.test(Br(jr)),Kr=ft.exports,zr=Pt,Ur=Kr("keys"),Vr={},qr=Jr,Wr=Q,Hr=fe,Gr=we,Yr=Ar,Xr=Et,Qr=ht,$r=function(e){return Ur[e]||(Ur[e]=zr(e))},Zr=Vr,en=Wr.TypeError,tn=Wr.WeakMap;if(qr||Qr.state){var rn=Qr.state||(Qr.state=new tn),nn=Hr(rn.get),an=Hr(rn.has),on=Hr(rn.set);Ir=function(e,t){if(an(rn,e))throw new en("Object already initialized");return t.facade=e,on(rn,e,t),t},Or=function(e){return nn(rn,e)||{}},Mr=function(e){return an(rn,e)}}else{var sn=$r("state");Zr[sn]=!0,Ir=function(e,t){if(Xr(e,sn))throw new en("Object already initialized");return t.facade=e,Yr(e,sn,t),t},Or=function(e){return Xr(e,sn)?e[sn]:{}},Mr=function(e){return Xr(e,sn)}}var cn={set:Ir,get:Or,has:Mr,enforce:function(e){return Mr(e)?Or(e):Ir(e,{})},getterFor:function(e){return function(t){var r;if(!Gr(t)||(r=Or(t)).type!==e)throw en("Incompatible receiver, "+e+" required");return r}}},un=ee,ln=Et,dn=Function.prototype,_n=un&&Object.getOwnPropertyDescriptor,pn=ln(dn,"name"),fn=pn&&"something"===function(){}.name,gn=pn&&(!un||un&&_n(dn,"name").configurable),mn=Q,yn=Ne,vn=Et,hn=Ar,Dn=yt,xn=Lr,bn={EXISTS:pn,PROPER:fn,CONFIGURABLE:gn}.CONFIGURABLE,Sn=cn.get,Tn=cn.enforce,Cn=String(String).split("String");(Fr.exports=function(e,t,r,n){var i,a=!!n&&!!n.unsafe,o=!!n&&!!n.enumerable,s=!!n&&!!n.noTargetGet,c=n&&void 0!==n.name?n.name:t;yn(r)&&("Symbol("===String(c).slice(0,7)&&(c="["+String(c).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!vn(r,"name")||bn&&r.name!==c)&&hn(r,"name",c),(i=Tn(r)).source||(i.source=Cn.join("string"==typeof c?c:""))),e!==mn?(a?!s&&e[t]&&(o=!0):delete e[t],o?e[t]=r:hn(e,t,r)):o?e[t]=r:Dn(t,r)})(Function.prototype,"toString",(function(){return yn(this)&&Sn(this).source||xn(this)}));var En={},kn=Math.ceil,An=Math.floor,Fn=function(e){var t=+e;return t!=t||0===t?0:(t>0?An:kn)(t)},Nn=Fn,Pn=Math.max,wn=Math.min,In=Fn,On=Math.min,Mn=function(e){return e>0?On(In(e),9007199254740991):0},Ln=function(e){return Mn(e.length)},Rn=Fe,Bn=function(e,t){var r=Nn(e);return r<0?Pn(r+t,0):wn(r,t)},jn=Ln,Jn=function(e){return function(t,r,n){var i,a=Rn(t),o=jn(a),s=Bn(n,o);if(e&&r!=r){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===r)return e||s||0;return!e&&-1}},Kn={includes:Jn(!0),indexOf:Jn(!1)},zn=Et,Un=Fe,Vn=Kn.indexOf,qn=Vr,Wn=fe([].push),Hn=function(e,t){var r,n=Un(e),i=0,a=[];for(r in n)!zn(qn,r)&&zn(n,r)&&Wn(a,r);for(;t.length>i;)zn(n,r=t[i++])&&(~Vn(a,r)||Wn(a,r));return a},Gn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");En.f=Object.getOwnPropertyNames||function(e){return Hn(e,Gn)};var Yn={};Yn.f=Object.getOwnPropertySymbols;var Xn=Le,Qn=En,$n=Yn,Zn=hr,ei=fe([].concat),ti=Xn("Reflect","ownKeys")||function(e){var t=Qn.f(Zn(e)),r=$n.f;return r?ei(t,r(e)):t},ri=Et,ni=ti,ii=$,ai=fr,oi=Z,si=Ne,ci=/#|\.prototype\./,ui=function(e,t){var r=di[li(e)];return r==pi||r!=_i&&(si(t)?oi(t):!!t)},li=ui.normalize=function(e){return String(e).replace(ci,".").toLowerCase()},di=ui.data={},_i=ui.NATIVE="N",pi=ui.POLYFILL="P",fi=ui,gi=Q,mi=$.f,yi=Ar,vi=Fr.exports,hi=yt,Di=function(e,t){for(var r=ni(t),n=ai.f,i=ii.f,a=0;a0&&Ai(c))u=Fi(c),l=wi(e,t,c,u,l,a-1)-1;else{if(l>=9007199254740991)throw Pi("Exceed the acceptable array length");e[l]=c}l++}d++}return l},Ii=wi,Oi={};Oi[zt("toStringTag")]="z";var Mi=Q,Li="[object z]"===String(Oi),Ri=Ne,Bi=ve,ji=zt("toStringTag"),Ji=Mi.Object,Ki="Arguments"==Bi(function(){return arguments}()),zi=Li?Bi:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Ji(e),ji))?r:Ki?Bi(t):"Object"==(n=Bi(t))&&Ri(t.callee)?"Arguments":n},Ui=fe,Vi=Z,qi=Ne,Wi=zi,Hi=Lr,Gi=function(){},Yi=[],Xi=Le("Reflect","construct"),Qi=/^\s*(?:class|function)\b/,$i=Ui(Qi.exec),Zi=!Qi.exec(Gi),ea=function(e){if(!qi(e))return!1;try{return Xi(Gi,Yi,e),!0}catch(e){return!1}},ta=!Xi||Vi((function(){var e;return ea(ea.call)||!ea(Object)||!ea((function(){e=!0}))||e}))?function(e){if(!qi(e))return!1;switch(Wi(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Zi||!!$i(Qi,Hi(e))}:ea,ra=Q,na=Ti,ia=ta,aa=we,oa=zt("species"),sa=ra.Array,ca=function(e){var t;return na(e)&&(t=e.constructor,(ia(t)&&(t===sa||na(t.prototype))||aa(t)&&null===(t=t[oa]))&&(t=void 0)),void 0===t?sa:t},ua=Ii,la=st,da=St,_a=Ln,pa=function(e,t){return new(ca(e))(0===t?0:t)};bi({target:"Array",proto:!0},{flatMap:function(e){var t,r=da(this),n=_a(r);return la(e),(t=pa(r,0)).length=ua(t,r,r,n,0,1,e,arguments.length>1?arguments[1]:void 0),t}});var fa=zi,ga=Q.String,ma=fe([].slice),ya=Math.floor,va=function(e,t){var r=e.length,n=ya(r/2);return r<8?ha(e,t):Da(e,va(ma(e,0,n),t),va(ma(e,n),t),t)},ha=function(e,t){for(var r,n,i=e.length,a=1;a0;)e[n]=e[--n];n!==a++&&(e[n]=r)}return e},Da=function(e,t,r,n){for(var i=t.length,a=r.length,o=0,s=0;o3)){if(Ba)return!0;if(Ja)return Ja<603;var e,t,r,n,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)Ka.push({k:t+n,v:r})}for(Ka.sort((function(e,t){return t.v-e.v})),n=0;nIa(r)?1:-1}}(e)),r=i.length,n=0;na;a++)if((s=m(e[a]))&&ho(Co,s))return s;return new To(!1)}n=Do(e,i)}for(c=n.next;!(u=fo(c,n)).done;){try{s=m(u.value)}catch(e){bo(n,"throw",e)}if("object"==typeof s&&s&&ho(Co,s))return s}return new To(!1)},No=function(e,t,r){var n=Eo(t);n in e?ko.f(e,n,Ao(0,r)):e[n]=r};function Po(){throw new Error("setTimeout has not been defined")}function wo(){throw new Error("clearTimeout has not been defined")}bi({target:"Object",stat:!0},{fromEntries:function(e){var t={};return Fo(e,(function(e,r){No(t,e,r)}),{AS_ENTRIES:!0}),t}});var Io=Po,Oo=wo;function Mo(e){if(Io===setTimeout)return setTimeout(e,0);if((Io===Po||!Io)&&setTimeout)return Io=setTimeout,setTimeout(e,0);try{return Io(e,0)}catch(t){try{return Io.call(null,e,0)}catch(t){return Io.call(this,e,0)}}}"function"==typeof o.setTimeout&&(Io=setTimeout),"function"==typeof o.clearTimeout&&(Oo=clearTimeout);var Lo,Ro=[],Bo=!1,jo=-1;function Jo(){Bo&&Lo&&(Bo=!1,Lo.length?Ro=Lo.concat(Ro):jo=-1,Ro.length&&Ko())}function Ko(){if(!Bo){var e=Mo(Jo);Bo=!0;for(var t=Ro.length;t;){for(Lo=Ro,Ro=[];++jo1)for(var r=1;r{};var rs={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},ns={exports:{}};!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r}=rs,n=ts,i=(t=e.exports={}).re=[],a=t.src=[],o=t.t={};let s=0;const c=(e,t,r)=>{const c=s++;n(c,t),o[e]=c,a[c]=t,i[c]=new RegExp(t,r?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION","(".concat(a[o.NUMERICIDENTIFIER],")\\.")+"(".concat(a[o.NUMERICIDENTIFIER],")\\.")+"(".concat(a[o.NUMERICIDENTIFIER],")")),c("MAINVERSIONLOOSE","(".concat(a[o.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(a[o.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(a[o.NUMERICIDENTIFIERLOOSE],")")),c("PRERELEASEIDENTIFIER","(?:".concat(a[o.NUMERICIDENTIFIER],"|").concat(a[o.NONNUMERICIDENTIFIER],")")),c("PRERELEASEIDENTIFIERLOOSE","(?:".concat(a[o.NUMERICIDENTIFIERLOOSE],"|").concat(a[o.NONNUMERICIDENTIFIER],")")),c("PRERELEASE","(?:-(".concat(a[o.PRERELEASEIDENTIFIER],"(?:\\.").concat(a[o.PRERELEASEIDENTIFIER],")*))")),c("PRERELEASELOOSE","(?:-?(".concat(a[o.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(a[o.PRERELEASEIDENTIFIERLOOSE],")*))")),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD","(?:\\+(".concat(a[o.BUILDIDENTIFIER],"(?:\\.").concat(a[o.BUILDIDENTIFIER],")*))")),c("FULLPLAIN","v?".concat(a[o.MAINVERSION]).concat(a[o.PRERELEASE],"?").concat(a[o.BUILD],"?")),c("FULL","^".concat(a[o.FULLPLAIN],"$")),c("LOOSEPLAIN","[v=\\s]*".concat(a[o.MAINVERSIONLOOSE]).concat(a[o.PRERELEASELOOSE],"?").concat(a[o.BUILD],"?")),c("LOOSE","^".concat(a[o.LOOSEPLAIN],"$")),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE","".concat(a[o.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),c("XRANGEIDENTIFIER","".concat(a[o.NUMERICIDENTIFIER],"|x|X|\\*")),c("XRANGEPLAIN","[v=\\s]*(".concat(a[o.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(a[o.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(a[o.XRANGEIDENTIFIER],")")+"(?:".concat(a[o.PRERELEASE],")?").concat(a[o.BUILD],"?")+")?)?"),c("XRANGEPLAINLOOSE","[v=\\s]*(".concat(a[o.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(a[o.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(a[o.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(a[o.PRERELEASELOOSE],")?").concat(a[o.BUILD],"?")+")?)?"),c("XRANGE","^".concat(a[o.GTLT],"\\s*").concat(a[o.XRANGEPLAIN],"$")),c("XRANGELOOSE","^".concat(a[o.GTLT],"\\s*").concat(a[o.XRANGEPLAINLOOSE],"$")),c("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(r,"})")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:$|[^\\d])"),c("COERCERTL",a[o.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM","(\\s*)".concat(a[o.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",c("TILDE","^".concat(a[o.LONETILDE]).concat(a[o.XRANGEPLAIN],"$")),c("TILDELOOSE","^".concat(a[o.LONETILDE]).concat(a[o.XRANGEPLAINLOOSE],"$")),c("LONECARET","(?:\\^)"),c("CARETTRIM","(\\s*)".concat(a[o.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",c("CARET","^".concat(a[o.LONECARET]).concat(a[o.XRANGEPLAIN],"$")),c("CARETLOOSE","^".concat(a[o.LONECARET]).concat(a[o.XRANGEPLAINLOOSE],"$")),c("COMPARATORLOOSE","^".concat(a[o.GTLT],"\\s*(").concat(a[o.LOOSEPLAIN],")$|^$")),c("COMPARATOR","^".concat(a[o.GTLT],"\\s*(").concat(a[o.FULLPLAIN],")$|^$")),c("COMPARATORTRIM","(\\s*)".concat(a[o.GTLT],"\\s*(").concat(a[o.LOOSEPLAIN],"|").concat(a[o.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE","^\\s*(".concat(a[o.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(a[o.XRANGEPLAIN],")")+"\\s*$"),c("HYPHENRANGELOOSE","^\\s*(".concat(a[o.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(a[o.XRANGEPLAINLOOSE],")")+"\\s*$"),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0.0.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}(ns,ns.exports);const is=["includePrerelease","loose","rtl"];var as=e=>e?"object"!=typeof e?{loose:!0}:is.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{};const os=/^[0-9]+$/,ss=(e,t)=>{const r=os.test(e),n=os.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:ess(t,e)};const us=ts,{MAX_LENGTH:ls,MAX_SAFE_INTEGER:ds}=rs,{re:_s,t:ps}=ns.exports,fs=as,{compareIdentifiers:gs}=cs;class ms{constructor(e,t){if(t=fs(t),e instanceof ms){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: ".concat(e));if(e.length>ls)throw new TypeError("version is longer than ".concat(ls," characters"));us("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?_s[ps.LOOSE]:_s[ps.FULL]);if(!r)throw new TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>ds||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ds||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ds||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&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: ".concat(e))}return this.format(),this.raw=this.version,this}}var ys=ms;const vs=ys;var hs=(e,t,r)=>new vs(e,r).compare(new vs(t,r));const Ds=hs;var xs=(e,t,r)=>Ds(e,t,r)<0;const bs=hs;var Ss,Ts,Cs,Es,ks,As,Fs=(e,t,r)=>bs(e,t,r)>=0,Ns={exports:{}};!function(e,t){function r(){for(var e=[],t=0;t"string"==typeof e||"function"==typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:"2.3.0",description:"Ember / Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:"Config"},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:"Global",description:Ps(Cs||(Cs=Y(["\n Custom directory that contains prettier plugins in node_modules subdirectory.\n Overrides default behavior when plugins are searched relatively to the location of Prettier.\n Multiple values are accepted.\n "]))),exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin-search-dir",cliCategory:"Config"},printWidth:{since:"0.0.0",category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},rangeEnd:{since:"1.4.0",category:"Special",type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:Ps(Es||(Es=Y(["\n Format code ending at a given character offset (exclusive).\n The range will extend forwards to the end of the selected statement.\n This option cannot be used with --cursor-offset.\n "]))),cliCategory:"Editor"},rangeStart:{since:"1.4.0",category:"Special",type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:Ps(ks||(ks=Y(["\n Format code starting at a given character offset.\n The range will extend backwards to the start of the first line containing the selected statement.\n This option cannot be used with --cursor-offset.\n "]))),cliCategory:"Editor"},requirePragma:{since:"1.7.0",category:"Special",type:"boolean",default:!1,description:Ps(As||(As=Y(["\n Require either '@prettier' or '@format' to be present in the file's first docblock comment\n in order for it to be formatted.\n "]))),cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:"Global",type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};const Is=["cliName","cliCategory","cliDescription"],Os={compare:hs,lt:xs,gte:Fs},Ms=(e,t)=>Object.entries(e).map((e=>{let[r,n]=e;return Object.assign({[t]:r},n)})),Ls="2.5.0",Rs={CATEGORY_CONFIG:"Config",CATEGORY_EDITOR:"Editor",CATEGORY_FORMAT:"Format",CATEGORY_OTHER:"Other",CATEGORY_OUTPUT:"Output",CATEGORY_GLOBAL:"Global",CATEGORY_SPECIAL:"Special",options:ws}.options;function Bs(e,t,r){const n=new Set(e.choices.map((e=>e.value)));for(const i of t)if(i.parsers)for(const t of i.parsers)if(!n.has(t)){n.add(t);const a=r.find((e=>e.parsers&&e.parsers[t]));let o=i.name;a&&a.name&&(o+=" (plugin: ".concat(a.name,")")),e.choices.push({value:t,description:o})}}var js={getSupportInfo:function(){let{plugins:e=[],showUnreleased:t=!1,showDeprecated:r=!1,showInternal:n=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const i=Ls.split("-",1)[0],a=e.flatMap((e=>e.languages||[])).filter(s),o=Ms(Object.assign({},...e.map((e=>{let{options:t}=e;return t})),Rs),"name").filter((e=>s(e)&&c(e))).sort(((e,t)=>e.name===t.name?0:e.name{t=Object.assign({},t),Array.isArray(t.default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(s).sort(((e,t)=>Os.compare(t.since,e.since)))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter((e=>s(e)&&c(e))),"parser"===t.name&&Bs(t,a,e));const r=Object.fromEntries(e.filter((e=>e.defaultOptions&&void 0!==e.defaultOptions[t.name])).map((e=>[e.name,e.defaultOptions[t.name]])));return Object.assign(Object.assign({},t),{},{pluginDefaults:r})}));return{languages:a,options:o};function s(e){return t||!("since"in e)||e.since&&Os.gte(i,e.since)}function c(e){return r||!("deprecated"in e)||e.deprecated&&Os.lt(i,e.deprecated)}function u(e){if(n)return e;return G(e,Is)}}};const Js=j.exports,Ks=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},zs=H,{getSupportInfo:Us}=js,Vs=/[^\x20-\x7F]/;function qs(e){return(t,r,n)=>{const i=n&&n.backwards;if(!1===r)return!1;const{length:a}=t;let o=r;for(;o>=0&&o2&&void 0!==arguments[2]?arguments[2]:{};const n=Hs(e,r.backwards?t-1:t,r),i=$s(e,n,r);return n!==i}function ec(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Gs(e,n),n=Xs(e,n),n=Hs(e,n);return n=Qs(e,n),n=$s(e,n),!1!==n&&Zs(e,n)}function tc(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Hs(e,n),n=Xs(e,n),n=Qs(e,n),n=$s(e,n);return n}function rc(e,t,r){return tc(e,r(t))}function nc(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=0;for(let i=r;i(e.match(a.regex)||[]).length?a:i}return o}function ac(e,t,r){const n='"'===t?"'":'"',i=e.replace(/\\(.)|(["'])/gs,((e,i,a)=>i===n?i:a===t?"\\"+a:a||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(i)?i:"\\"+i)));return t+i+t}function oc(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=function(e){const t=e.type||e.kind||"(unknown type)";let r=String(e.name||e.id&&("object"==typeof e.id?e.id.name:e.id)||e.key&&("object"==typeof e.key?e.key.name:e.key)||e.value&&("object"==typeof e.value?"":String(e.value))||e.operator||"");r.length>20&&(r=r.slice(0,19)+"\u2026");return t+(r?" "+r:"")}(e)}var sc={inferParserByLanguage:function(e,t){const{languages:r}=Us({plugins:t.plugins}),n=r.find((t=>{let{name:r}=t;return r.toLowerCase()===e}))||r.find((t=>{let{aliases:r}=t;return Array.isArray(r)&&r.includes(e)}))||r.find((t=>{let{extensions:r}=t;return Array.isArray(r)&&r.includes(".".concat(e))}));return n&&n.parsers[0]},getStringWidth:function(e){return e?Vs.test(e)?Js(e):e.length:0},getMaxContinuousCount:function(e,t){const r=e.match(new RegExp("(".concat(Ks(t),")+"),"g"));return null===r?0:r.reduce(((e,r)=>Math.max(e,r.length/t.length)),0)},getMinNotPresentContinuousCount:function(e,t){const r=e.match(new RegExp("(".concat(Ks(t),")+"),"g"));if(null===r)return 0;const n=new Map;let i=0;for(const e of r){const r=e.length/t.length;n.set(r,!0),r>i&&(i=r)}for(let e=1;ee[e.length-2],getLast:zs,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:tc,getNextNonSpaceNonCommentCharacterIndex:rc,getNextNonSpaceNonCommentCharacter:function(e,t,r){return e.charAt(rc(e,t,r))},skip:qs,skipWhitespace:Ws,skipSpaces:Hs,skipToLineEnd:Gs,skipEverythingButNewLine:Ys,skipInlineComment:Xs,skipTrailingComment:Qs,skipNewline:$s,isNextLineEmptyAfterIndex:ec,isNextLineEmpty:function(e,t,r){return ec(e,r(t))},isPreviousLineEmpty:function(e,t,r){let n=r(t)-1;return n=Hs(e,n,{backwards:!0}),n=$s(e,n,{backwards:!0}),n=Hs(e,n,{backwards:!0}),n!==$s(e,n,{backwards:!0})},hasNewline:Zs,hasNewlineInRange:function(e,t,r){for(let n=t;n2&&void 0!==arguments[2]?arguments[2]:{};const n=Hs(e,r.backwards?t-1:t,r);return n!==t},getAlignmentSize:nc,getIndentSize:function(e,t){const r=e.lastIndexOf("\n");return-1===r?0:nc(e.slice(r+1).match(/^[\t ]*/)[0],t)},getPreferredQuote:ic,printString:function(e,t){const r=e.slice(1,-1);return ac(r,"json"===t.parser||"json5"===t.parser&&"preserve"===t.quoteProps&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":ic(r,t.singleQuote?"'":'"').quote,!("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|$)/,"")},makeString:ac,addLeadingComment:function(e,t){t.leading=!0,t.trailing=!1,oc(e,t)},addDanglingComment:function(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),oc(e,t)},addTrailingComment:function(e,t){t.leading=!1,t.trailing=!0,oc(e,t)},isFrontMatterNode:function(e){return e&&"front-matter"===e.type},getShebang:function(e){if(!e.startsWith("#!"))return"";const t=e.indexOf("\n");return-1===t?e:e.slice(0,t)},isNonEmptyArray:function(e){return Array.isArray(e)&&e.length>0},createGroupIdMapper:function(e){const t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}};var cc={guessEndOfLine:function(e){const t=e.indexOf("\r");return t>=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"},convertEndOfLineToChars:function(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}},countEndOfLineChars:function(e,t){let r;if("\n"===t)r=/\n/g;else if("\r"===t)r=/\r/g;else{if("\r\n"!==t)throw new Error('Unexpected "eol" '.concat(JSON.stringify(t),"."));r=/\r\n/g}const n=e.match(r);return n?n.length:0},normalizeEndOfLine:function(e){return e.replace(/\r\n?/g,"\n")}};const{parseWithComments:uc,strip:lc,extract:dc,print:_c}=a,{getShebang:pc}=sc,{normalizeEndOfLine:fc}=cc;function gc(e){const t=pc(e);t&&(e=e.slice(t.length+1));const r=dc(e),{pragmas:n,comments:i}=uc(r);return{shebang:t,text:e,pragmas:n,comments:i}}var mc={hasPragma:function(e){const t=Object.keys(gc(e).pragmas);return t.includes("prettier")||t.includes("format")},insertPragma:function(e){const{shebang:t,text:r,pragmas:n,comments:i}=gc(e),a=lc(r),o=_c({pragmas:Object.assign({format:""},n),comments:i.trimStart()});return(t?"".concat(t,"\n"):"")+fc(o)+(a.startsWith("\n")?"\n":"\n\n")+a}};const{isNonEmptyArray:yc}=sc;function vc(e,t){const{ignoreDecorators:r}=t||{};if(!r){const t=e.declaration&&e.declaration.decorators||e.decorators;if(yc(t))return vc(t[0])}return e.range?e.range[0]:e.start}function hc(e){return e.range?e.range[1]:e.end}function Dc(e,t){return vc(e)===vc(t)}var xc={locStart:vc,locEnd:hc,hasSameLocStart:Dc,hasSameLoc:function(e,t){return Dc(e,t)&&function(e,t){return hc(e)===hc(t)}(e,t)}};const{hasPragma:bc}=mc,{locStart:Sc,locEnd:Tc}=xc;var Cc=function(e){return e="function"==typeof e?{parse:e}:e,Object.assign({astFormat:"estree",hasPragma:bc,locStart:Sc,locEnd:Tc},e)};var Ec=function(e){return"#"===e.charAt(0)&&"!"===e.charAt(1)?"//"+e.slice(2):e},kc={},Ac={exports:{}};!function(){function e(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function t(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}Ac.exports={isExpression:function(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:e,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(t){return e(t)||null!=t&&"FunctionDeclaration"===t.type},isProblematicIfStatement:function(e){var r;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;r=e.consequent;do{if("IfStatement"===r.type&&null==r.alternate)return!0;r=t(r)}while(r);return!1},trailingStatement:t}}();var Fc={exports:{}};!function(){var e,t,r,n,i,a;function o(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],n=new Array(128),a=0;a<128;++a)n[a]=a>=97&&a<=122||a>=65&&a<=90||36===a||95===a;for(i=new Array(128),a=0;a<128;++a)i[a]=a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||36===a||95===a;Fc.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&r.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?n[e]:t.NonAsciiIdentifierStart.test(o(e))},isIdentifierPartES5:function(e){return e<128?i[e]:t.NonAsciiIdentifierPart.test(o(e))},isIdentifierStartES6:function(t){return t<128?n[t]:e.NonAsciiIdentifierStart.test(o(t))},isIdentifierPartES6:function(t){return t<128?i[t]:e.NonAsciiIdentifierPart.test(o(t))}}}();var Nc={exports:{}};!function(){var e=Fc.exports;function t(e,t){return!(!t&&"yield"===e)&&r(e,t)}function r(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function n(e,r){return"null"===e||"true"===e||"false"===e||t(e,r)}function i(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function a(t){var r,n,i;if(0===t.length)return!1;if(i=t.charCodeAt(0),!e.isIdentifierStartES5(i))return!1;for(r=1,n=t.length;r=n)return!1;if(!(56320<=(a=t.charCodeAt(r))&&a<=57343))return!1;i=1024*(i-55296)+(a-56320)+65536}if(!o(i))return!1;o=e.isIdentifierPartES6}return!0}Nc.exports={isKeywordES5:t,isKeywordES6:r,isReservedWordES5:n,isReservedWordES6:i,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:a,isIdentifierNameES6:o,isIdentifierES5:function(e,t){return a(e)&&!n(e,t)},isIdentifierES6:function(e,t){return o(e)&&!i(e,t)}}}(),kc.ast=Ac.exports,kc.code=Fc.exports,kc.keyword=Nc.exports;const Pc=kc.keyword.isIdentifierNameES5,{getLast:wc,hasNewline:Ic,skipWhitespace:Oc,isNonEmptyArray:Mc,isNextLineEmptyAfterIndex:Lc,getStringWidth:Rc}=sc,{locStart:Bc,locEnd:jc,hasSameLocStart:Jc}=xc,Kc=new RegExp("^".concat("(?:(?=.)\\s)","*:")),zc=new RegExp("^".concat("(?:(?=.)\\s)","*::"));function Uc(e){return"Block"===e.type||"CommentBlock"===e.type||"MultiLine"===e.type}function Vc(e){return"Line"===e.type||"CommentLine"===e.type||"SingleLine"===e.type||"HashbangComment"===e.type||"HTMLOpen"===e.type||"HTMLClose"===e.type}const qc=new Set(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function Wc(e){return e&&qc.has(e.type)}function Hc(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"==typeof e.value}function Gc(e){return"StringLiteral"===e.type||"Literal"===e.type&&"string"==typeof e.value}function Yc(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type}function Xc(e){return nu(e)&&"Identifier"===e.callee.type&&("async"===e.callee.name||"inject"===e.callee.name||"fakeAsync"===e.callee.name)}function Qc(e){return"JSXElement"===e.type||"JSXFragment"===e.type}function $c(e){return"get"===e.kind||"set"===e.kind}function Zc(e){return $c(e)||Jc(e,e.value)}const eu=new Set(["BinaryExpression","LogicalExpression","NGPipeExpression"]);const tu=new Set(["AnyTypeAnnotation","TSAnyKeyword","NullLiteralTypeAnnotation","TSNullKeyword","ThisTypeAnnotation","TSThisType","NumberTypeAnnotation","TSNumberKeyword","VoidTypeAnnotation","TSVoidKeyword","BooleanTypeAnnotation","TSBooleanKeyword","BigIntTypeAnnotation","TSBigIntKeyword","SymbolTypeAnnotation","TSSymbolKeyword","StringTypeAnnotation","TSStringKeyword","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType","EmptyTypeAnnotation","MixedTypeAnnotation","TSNeverKeyword","TSObjectKeyword","TSUndefinedKeyword","TSUnknownKeyword"]);const ru=/^(?:skip|[fx]?(?:it|describe|test))$/;function nu(e){return e&&("CallExpression"===e.type||"OptionalCallExpression"===e.type)}function iu(e){return e&&("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)}function au(e){return/^(?:\d+|\d+\.\d+)$/.test(e)}function ou(e){return e.quasis.some((e=>e.value.raw.includes("\n")))}function su(e){return e.extra?e.extra.raw:e.raw}const cu={"==":!0,"!=":!0,"===":!0,"!==":!0},uu={"*":!0,"/":!0,"%":!0},lu={">>":!0,">>>":!0,"<<":!0};const du={};for(const[e,t]of[["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].entries())for(const r of t)du[r]=e;function _u(e){return du[e]}const pu=new WeakMap;function fu(e){if(pu.has(e))return pu.get(e);const t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),pu.set(e,t),t}const gu=new WeakMap;function mu(e){if(gu.has(e))return gu.get(e);let t=e.arguments;return"ImportExpression"===e.type&&(t=[e.source],e.attributes&&t.push(e.attributes)),gu.set(e,t),t}function yu(e){return"prettier-ignore"===e.value.trim()&&!e.unignore}function vu(e){return e&&(e.prettierIgnore||xu(e,hu.PrettierIgnore))}const hu={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},Du=(e,t)=>{if("function"==typeof e&&(t=e,e=0),e||t)return(r,n,i)=>!(e&hu.Leading&&!r.leading||e&hu.Trailing&&!r.trailing||e&hu.Dangling&&(r.leading||r.trailing)||e&hu.Block&&!Uc(r)||e&hu.Line&&!Vc(r)||e&hu.First&&0!==n||e&hu.Last&&n!==i.length-1||e&hu.PrettierIgnore&&!yu(r)||t&&!t(r))};function xu(e,t,r){if(!e||!Mc(e.comments))return!1;const n=Du(t,r);return!n||e.comments.some(n)}function bu(e,t,r){if(!e||!Array.isArray(e.comments))return[];const n=Du(t,r);return n?e.comments.filter(n):e.comments}function Su(e){return nu(e)||"NewExpression"===e.type||"ImportExpression"===e.type}var Tu={getFunctionParameters:fu,iterateFunctionParametersPath:function(e,t){const r=e.getValue();let n=0;const i=e=>t(e,n++);r.this&&e.call(i,"this"),Array.isArray(r.parameters)?e.each(i,"parameters"):Array.isArray(r.params)&&e.each(i,"params"),r.rest&&e.call(i,"rest")},getCallArguments:mu,iterateCallArgumentsPath:function(e,t){const r=e.getValue();"ImportExpression"===r.type?(e.call((e=>t(e,0)),"source"),r.attributes&&e.call((e=>t(e,1)),"attributes")):e.each(t,"arguments")},hasRestParameter:function(e){if(e.rest)return!0;const t=fu(e);return t.length>0&&"RestElement"===wc(t).type},getLeftSide:function(e){return e.expressions?e.expressions[0]:e.left||e.test||e.callee||e.object||e.tag||e.argument||e.expression},getLeftSidePathName:function(e,t){if(t.expressions)return["expressions",0];if(t.left)return["left"];if(t.test)return["test"];if(t.object)return["object"];if(t.callee)return["callee"];if(t.tag)return["tag"];if(t.argument)return["argument"];if(t.expression)return["expression"];throw new Error("Unexpected node has no left side.")},getParentExportDeclaration:function(e){const t=e.getParentNode();return"declaration"===e.getName()&&Wc(t)?t:null},getTypeScriptMappedTypeModifier:function(e,t){return"+"===e?"+"+t:"-"===e?"-"+t:t},hasFlowAnnotationComment:function(e){return Mc(e)&&Uc(e[0])&&zc.test(e[0].value)},hasFlowShorthandAnnotationComment:function(e){return e.extra&&e.extra.parenthesized&&Mc(e.trailingComments)&&Uc(e.trailingComments[0])&&Kc.test(e.trailingComments[0].value)},hasLeadingOwnLineComment:function(e,t){return Qc(t)?vu(t):xu(t,hu.Leading,(t=>Ic(e,jc(t))))},hasNakedLeftSide:function(e){return"AssignmentExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type||"ConditionalExpression"===e.type||nu(e)||iu(e)||"SequenceExpression"===e.type||"TaggedTemplateExpression"===e.type||"BindExpression"===e.type||"UpdateExpression"===e.type&&!e.prefix||"TSAsExpression"===e.type||"TSNonNullExpression"===e.type},hasNode:function e(t,r){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t))return t.some((t=>e(t,r)));const n=r(t);return"boolean"==typeof n?n:Object.values(t).some((t=>e(t,r)))},hasIgnoreComment:function(e){return vu(e.getValue())},hasNodeIgnoreComment:vu,identity:function(e){return e},isBinaryish:function(e){return eu.has(e.type)},isBlockComment:Uc,isCallLikeExpression:Su,isEnabledHackPipeline:function(e){return Boolean(e.__isUsingHackPipeline)},isLineComment:Vc,isPrettierIgnoreComment:yu,isCallExpression:nu,isMemberExpression:iu,isExportDeclaration:Wc,isFlowAnnotationComment:function(e,t){const r=Bc(t),n=Oc(e,jc(t));return!1!==n&&"/*"===e.slice(r,r+2)&&"*/"===e.slice(n,n+2)},isFunctionCompositionArgs:function(e){if(e.length<=1)return!1;let t=0;for(const r of e)if(Yc(r)){if(t+=1,t>1)return!0}else if(nu(r))for(const e of r.arguments)if(Yc(e))return!0;return!1},isFunctionNotation:Zc,isFunctionOrArrowExpression:Yc,isGetterOrSetter:$c,isJestEachTemplateLiteral:function(e,t){const r=/^[fx]?(?:describe|it|test)$/;return"TaggedTemplateExpression"===t.type&&t.quasi===e&&"MemberExpression"===t.tag.type&&"Identifier"===t.tag.property.type&&"each"===t.tag.property.name&&("Identifier"===t.tag.object.type&&r.test(t.tag.object.name)||"MemberExpression"===t.tag.object.type&&"Identifier"===t.tag.object.property.type&&("only"===t.tag.object.property.name||"skip"===t.tag.object.property.name)&&"Identifier"===t.tag.object.object.type&&r.test(t.tag.object.object.name))},isJsxNode:Qc,isLiteral:function(e){return"BooleanLiteral"===e.type||"DirectiveLiteral"===e.type||"Literal"===e.type||"NullLiteral"===e.type||"NumericLiteral"===e.type||"BigIntLiteral"===e.type||"DecimalLiteral"===e.type||"RegExpLiteral"===e.type||"StringLiteral"===e.type||"TemplateLiteral"===e.type||"TSTypeLiteral"===e.type||"JSXText"===e.type},isLongCurriedCallExpression:function(e){const t=e.getValue(),r=e.getParentNode();return nu(t)&&nu(r)&&r.callee===t&&t.arguments.length>r.arguments.length&&r.arguments.length>0},isSimpleCallArgument:function e(t,r){if(r>=2)return!1;const n=t=>e(t,r+1),i="Literal"===t.type&&"regex"in t&&t.regex.pattern||"RegExpLiteral"===t.type&&t.pattern;return!(i&&Rc(i)>5)&&("Literal"===t.type||"BigIntLiteral"===t.type||"DecimalLiteral"===t.type||"BooleanLiteral"===t.type||"NullLiteral"===t.type||"NumericLiteral"===t.type||"RegExpLiteral"===t.type||"StringLiteral"===t.type||"Identifier"===t.type||"ThisExpression"===t.type||"Super"===t.type||"PrivateName"===t.type||"PrivateIdentifier"===t.type||"ArgumentPlaceholder"===t.type||"Import"===t.type||("TemplateLiteral"===t.type?t.quasis.every((e=>!e.value.raw.includes("\n")))&&t.expressions.every(n):"ObjectExpression"===t.type?t.properties.every((e=>!e.computed&&(e.shorthand||e.value&&n(e.value)))):"ArrayExpression"===t.type?t.elements.every((e=>null===e||n(e))):Su(t)?("ImportExpression"===t.type||e(t.callee,r))&&mu(t).every(n):iu(t)?e(t.object,r)&&e(t.property,r):"UnaryExpression"!==t.type||"!"!==t.operator&&"-"!==t.operator?"TSNonNullExpression"===t.type&&e(t.expression,r):e(t.argument,r)))},isMemberish:function(e){return iu(e)||"BindExpression"===e.type&&Boolean(e.object)},isNumericLiteral:Hc,isSignedNumericLiteral:function(e){return"UnaryExpression"===e.type&&("+"===e.operator||"-"===e.operator)&&Hc(e.argument)},isObjectProperty:function(e){return e&&("ObjectProperty"===e.type||"Property"===e.type&&!e.method&&"init"===e.kind)},isObjectType:function(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"TSMappedType"===e.type},isObjectTypePropertyAFunction:function(e){return!("ObjectTypeProperty"!==e.type&&"ObjectTypeInternalSlot"!==e.type||"FunctionTypeAnnotation"!==e.value.type||e.static||Zc(e))},isSimpleType:function(e){return!!e&&(!("GenericTypeAnnotation"!==e.type&&"TSTypeReference"!==e.type||e.typeParameters)||!!tu.has(e.type))},isSimpleNumber:au,isSimpleTemplateLiteral:function(e){let t="expressions";"TSTemplateLiteralType"===e.type&&(t="types");const r=e[t];return 0!==r.length&&r.every((e=>{if(xu(e))return!1;if("Identifier"===e.type||"ThisExpression"===e.type)return!0;if(iu(e)){let t=e;for(;iu(t);){if("Identifier"!==t.property.type&&"Literal"!==t.property.type&&"StringLiteral"!==t.property.type&&"NumericLiteral"!==t.property.type)return!1;if(t=t.object,xu(t))return!1}return"Identifier"===t.type||"ThisExpression"===t.type}return!1}))},isStringLiteral:Gc,isStringPropSafeToUnquote:function(e,t){return"json"!==t.parser&&Gc(e.key)&&su(e.key).slice(1,-1)===e.key.value&&(Pc(e.key.value)&&!("babel-ts"===t.parser&&"ClassProperty"===e.type||"typescript"===t.parser&&"PropertyDefinition"===e.type)||au(e.key.value)&&String(Number(e.key.value))===e.key.value&&("babel"===t.parser||"espree"===t.parser||"meriyah"===t.parser||"__babel_estree"===t.parser))},isTemplateOnItsOwnLine:function(e,t){return("TemplateLiteral"===e.type&&ou(e)||"TaggedTemplateExpression"===e.type&&ou(e.quasi))&&!Ic(t,Bc(e),{backwards:!0})},isTestCall:function e(t,r){if("CallExpression"!==t.type)return!1;if(1===t.arguments.length){if(Xc(t)&&r&&e(r))return Yc(t.arguments[0]);if(function(e){return"Identifier"===e.callee.type&&/^(?:before|after)(?:Each|All)$/.test(e.callee.name)&&1===e.arguments.length}(t))return Xc(t.arguments[0])}else if((2===t.arguments.length||3===t.arguments.length)&&("Identifier"===t.callee.type&&ru.test(t.callee.name)||function(e){return iu(e.callee)&&"Identifier"===e.callee.object.type&&"Identifier"===e.callee.property.type&&ru.test(e.callee.object.name)&&("only"===e.callee.property.name||"skip"===e.callee.property.name)}(t))&&(function(e){return"TemplateLiteral"===e.type}(t.arguments[0])||Gc(t.arguments[0])))return!(t.arguments[2]&&!Hc(t.arguments[2]))&&((2===t.arguments.length?Yc(t.arguments[1]):function(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type}(t.arguments[1])&&fu(t.arguments[1]).length<=1)||Xc(t.arguments[1]));return!1},isTheOnlyJsxElementInMarkdown:function(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;const r=t.getNode();if(!r.expression||!Qc(r.expression))return!1;const n=t.getParentNode();return"Program"===n.type&&1===n.body.length},isTSXFile:function(e){return e.filepath&&/\.tsx$/i.test(e.filepath)},isTypeAnnotationAFunction:function(e){return!("TypeAnnotation"!==e.type&&"TSTypeAnnotation"!==e.type||"FunctionTypeAnnotation"!==e.typeAnnotation.type||e.static||Jc(e,e.typeAnnotation))},isNextLineEmpty:(e,t)=>{let{originalText:r}=t;return Lc(r,jc(e))},needsHardlineAfterDanglingComment:function(e){if(!xu(e))return!1;const t=wc(bu(e,hu.Dangling));return t&&!Uc(t)},rawText:su,shouldPrintComma:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"es5";return"es5"===e.trailingComma&&"es5"===t||"all"===e.trailingComma&&("all"===t||"es5"===t)},isBitwiseOperator:function(e){return Boolean(lu[e])||"|"===e||"^"===e||"&"===e},shouldFlatten:function(e,t){return _u(t)===_u(e)&&("**"!==e&&((!cu[e]||!cu[t])&&(!("%"===t&&uu[e]||"%"===e&&uu[t])&&((t===e||!uu[t]||!uu[e])&&(!lu[e]||!lu[t])))))},startsWithNoLookaheadToken:function e(t,r){switch((t=function(e){for(;e.left;)e=e.left;return e}(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":case"TSNonNullExpression":return e(t.expression,r);default:return!1}},getPrecedence:_u,hasComment:xu,getComments:bu,CommentCheckFlags:hu};const{getLast:Cu,hasNewline:Eu,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:ku,getNextNonSpaceNonCommentCharacter:Au,hasNewlineInRange:Fu,addLeadingComment:Nu,addTrailingComment:Pu,addDanglingComment:wu,getNextNonSpaceNonCommentCharacterIndex:Iu,isNonEmptyArray:Ou}=sc,{isBlockComment:Mu,getFunctionParameters:Lu,isPrettierIgnoreComment:Ru,isJsxNode:Bu,hasFlowShorthandAnnotationComment:ju,hasFlowAnnotationComment:Ju,hasIgnoreComment:Ku,isCallLikeExpression:zu,getCallArguments:Uu,isCallExpression:Vu,isMemberExpression:qu,isObjectProperty:Wu,getComments:Hu,CommentCheckFlags:Gu}=Tu,{locStart:Yu,locEnd:Xu}=xc;function Qu(e,t){const r=(e.body||e.properties).find((e=>{let{type:t}=e;return"EmptyStatement"!==t}));r?Nu(r,t):wu(e,t)}function $u(e,t){"BlockStatement"===e.type?Qu(e,t):Nu(e,t)}function Zu(e){let{comment:t,followingNode:r}=e;return!(!r||!Al(t))&&(Nu(r,t),!0)}function el(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:i,text:a}=e;if(!n||"IfStatement"!==n.type||!i)return!1;return")"===Au(a,t,Xu)?(Pu(r,t),!0):r===n.consequent&&i===n.alternate?("BlockStatement"===r.type?Pu(r,t):wu(n,t),!0):"BlockStatement"===i.type?(Qu(i,t),!0):"IfStatement"===i.type?($u(i.consequent,t),!0):n.consequent===i&&(Nu(i,t),!0)}function tl(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:i,text:a}=e;if(!n||"WhileStatement"!==n.type||!i)return!1;return")"===Au(a,t,Xu)?(Pu(r,t),!0):"BlockStatement"===i.type?(Qu(i,t),!0):n.body===i&&(Nu(i,t),!0)}function rl(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:i}=e;return!(!n||"TryStatement"!==n.type&&"CatchClause"!==n.type||!i)&&("CatchClause"===n.type&&r?(Pu(r,t),!0):"BlockStatement"===i.type?(Qu(i,t),!0):"TryStatement"===i.type?($u(i.finalizer,t),!0):"CatchClause"===i.type&&($u(i.body,t),!0))}function nl(e){let{comment:t,enclosingNode:r,followingNode:n}=e;return!(!qu(r)||!n||"Identifier"!==n.type)&&(Nu(r,t),!0)}function il(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:i,text:a}=e;const o=r&&!Fu(a,Xu(r),Yu(t));return!(r&&o||!n||"ConditionalExpression"!==n.type&&"TSConditionalType"!==n.type||!i)&&(Nu(i,t),!0)}function al(e){let{comment:t,precedingNode:r,enclosingNode:n}=e;return!(!Wu(n)||!n.shorthand||n.key!==r||"AssignmentPattern"!==n.value.type)&&(Pu(n.value.left,t),!0)}function ol(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:i}=e;if(n&&("ClassDeclaration"===n.type||"ClassExpression"===n.type||"DeclareClass"===n.type||"DeclareInterface"===n.type||"InterfaceDeclaration"===n.type||"TSInterfaceDeclaration"===n.type)){if(Ou(n.decorators)&&(!i||"Decorator"!==i.type))return Pu(Cu(n.decorators),t),!0;if(n.body&&i===n.body)return Qu(n.body,t),!0;if(i)for(const e of["implements","extends","mixins"])if(n[e]&&i===n[e][0])return!r||r!==n.id&&r!==n.typeParameters&&r!==n.superClass?wu(n,t,e):Pu(r,t),!0}return!1}function sl(e){let{comment:t,precedingNode:r,enclosingNode:n,text:i}=e;return(n&&r&&("Property"===n.type||"TSDeclareMethod"===n.type||"TSAbstractMethodDefinition"===n.type)&&"Identifier"===r.type&&n.key===r&&":"!==Au(i,r,Xu)||!(!r||!n||"Decorator"!==r.type||"ClassMethod"!==n.type&&"ClassProperty"!==n.type&&"PropertyDefinition"!==n.type&&"TSAbstractPropertyDefinition"!==n.type&&"TSAbstractMethodDefinition"!==n.type&&"TSDeclareMethod"!==n.type&&"MethodDefinition"!==n.type))&&(Pu(r,t),!0)}function cl(e){let{comment:t,precedingNode:r,enclosingNode:n,text:i}=e;return"("===Au(i,t,Xu)&&(!(!r||!n||"FunctionDeclaration"!==n.type&&"FunctionExpression"!==n.type&&"ClassMethod"!==n.type&&"MethodDefinition"!==n.type&&"ObjectMethod"!==n.type)&&(Pu(r,t),!0))}function ul(e){let{comment:t,enclosingNode:r,text:n}=e;if(!r||"ArrowFunctionExpression"!==r.type)return!1;const i=Iu(n,t,Xu);return!1!==i&&"=>"===n.slice(i,i+2)&&(wu(r,t),!0)}function ll(e){let{comment:t,enclosingNode:r,text:n}=e;return")"===Au(n,t,Xu)&&(r&&(kl(r)&&0===Lu(r).length||zu(r)&&0===Uu(r).length)?(wu(r,t),!0):!(!r||"MethodDefinition"!==r.type&&"TSAbstractMethodDefinition"!==r.type||0!==Lu(r.value).length)&&(wu(r.value,t),!0))}function dl(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:i,text:a}=e;if(r&&"FunctionTypeParam"===r.type&&n&&"FunctionTypeAnnotation"===n.type&&i&&"FunctionTypeParam"!==i.type)return Pu(r,t),!0;if(r&&("Identifier"===r.type||"AssignmentPattern"===r.type)&&n&&kl(n)&&")"===Au(a,t,Xu))return Pu(r,t),!0;if(n&&"FunctionDeclaration"===n.type&&i&&"BlockStatement"===i.type){const e=(()=>{const e=Lu(n);if(e.length>0)return ku(a,Xu(Cu(e)));const t=ku(a,Xu(n.id));return!1!==t&&ku(a,t+1)})();if(Yu(t)>e)return Qu(i,t),!0}return!1}function _l(e){let{comment:t,enclosingNode:r}=e;return!(!r||"ImportSpecifier"!==r.type)&&(Nu(r,t),!0)}function pl(e){let{comment:t,enclosingNode:r}=e;return!(!r||"LabeledStatement"!==r.type)&&(Nu(r,t),!0)}function fl(e){let{comment:t,enclosingNode:r}=e;return!(!r||"ContinueStatement"!==r.type&&"BreakStatement"!==r.type||r.label)&&(Pu(r,t),!0)}function gl(e){let{comment:t,precedingNode:r,enclosingNode:n}=e;return!!(Vu(n)&&r&&n.callee===r&&n.arguments.length>0)&&(Nu(n.arguments[0],t),!0)}function ml(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:i}=e;return!n||"UnionTypeAnnotation"!==n.type&&"TSUnionType"!==n.type?(i&&("UnionTypeAnnotation"===i.type||"TSUnionType"===i.type)&&Ru(t)&&(i.types[0].prettierIgnore=!0,t.unignore=!0),!1):(Ru(t)&&(i.prettierIgnore=!0,t.unignore=!0),!!r&&(Pu(r,t),!0))}function yl(e){let{comment:t,enclosingNode:r}=e;return!!Wu(r)&&(Nu(r,t),!0)}function vl(e){let{comment:t,enclosingNode:r,followingNode:n,ast:i,isLastComment:a}=e;return i&&i.body&&0===i.body.length?(a?wu(i,t):Nu(i,t),!0):r&&"Program"===r.type&&0===r.body.length&&!Ou(r.directives)?(a?wu(r,t):Nu(r,t),!0):!(!n||"Program"!==n.type||0!==n.body.length||!r||"ModuleExpression"!==r.type)&&(wu(n,t),!0)}function hl(e){let{comment:t,enclosingNode:r}=e;return!(!r||"ForInStatement"!==r.type&&"ForOfStatement"!==r.type)&&(Nu(r,t),!0)}function Dl(e){let{comment:t,precedingNode:r,enclosingNode:n,text:i}=e;return!!(r&&"ImportSpecifier"===r.type&&n&&"ImportDeclaration"===n.type&&Eu(i,Xu(t)))&&(Pu(r,t),!0)}function xl(e){let{comment:t,enclosingNode:r}=e;return!(!r||"AssignmentPattern"!==r.type)&&(Nu(r,t),!0)}function bl(e){let{comment:t,enclosingNode:r}=e;return!(!r||"TypeAlias"!==r.type)&&(Nu(r,t),!0)}function Sl(e){let{comment:t,enclosingNode:r,followingNode:n}=e;return!(!r||"VariableDeclarator"!==r.type&&"AssignmentExpression"!==r.type||!n||"ObjectExpression"!==n.type&&"ArrayExpression"!==n.type&&"TemplateLiteral"!==n.type&&"TaggedTemplateExpression"!==n.type&&!Mu(t))&&(Nu(n,t),!0)}function Tl(e){let{comment:t,enclosingNode:r,followingNode:n,text:i}=e;return!(n||!r||"TSMethodSignature"!==r.type&&"TSDeclareFunction"!==r.type&&"TSAbstractMethodDefinition"!==r.type||";"!==Au(i,t,Xu))&&(Pu(r,t),!0)}function Cl(e){let{comment:t,enclosingNode:r,followingNode:n}=e;if(Ru(t)&&r&&"TSMappedType"===r.type&&n&&"TSTypeParameter"===n.type&&n.constraint)return r.prettierIgnore=!0,t.unignore=!0,!0}function El(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:i}=e;return!(!n||"TSMappedType"!==n.type)&&(i&&"TSTypeParameter"===i.type&&i.name?(Nu(i.name,t),!0):!(!r||"TSTypeParameter"!==r.type||!r.constraint)&&(Pu(r.constraint,t),!0))}function kl(e){return"ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||"FunctionDeclaration"===e.type||"ObjectMethod"===e.type||"ClassMethod"===e.type||"TSDeclareFunction"===e.type||"TSCallSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSMethodSignature"===e.type||"TSConstructorType"===e.type||"TSFunctionType"===e.type||"TSDeclareMethod"===e.type}function Al(e){return Mu(e)&&"*"===e.value[0]&&/@type\b/.test(e.value)}var Fl={handleOwnLineComment:function(e){return[Cl,dl,nl,el,tl,rl,ol,_l,hl,ml,vl,Dl,xl,sl,pl].some((t=>t(e)))},handleEndOfLineComment:function(e){return[Zu,dl,il,_l,el,tl,rl,ol,pl,gl,yl,vl,bl,Sl].some((t=>t(e)))},handleRemainingComment:function(e){return[Cl,el,tl,al,ll,sl,vl,ul,cl,El,fl,Tl].some((t=>t(e)))},isTypeCastComment:Al,getCommentChildNodes:function(e,t){if(("typescript"===t.parser||"flow"===t.parser||"espree"===t.parser||"meriyah"===t.parser||"__babel_estree"===t.parser)&&"MethodDefinition"===e.type&&e.value&&"FunctionExpression"===e.value.type&&0===Lu(e.value).length&&!e.value.returnType&&!Ou(e.value.typeParameters)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]},willPrintOwnComments:function(e){const t=e.getValue(),r=e.getParentNode();return(t&&(Bu(t)||ju(t)||Vu(r)&&(e=>Ju(Hu(e,Gu.Leading))||Ju(Hu(e,Gu.Trailing)))(t))||r&&("JSXSpreadAttribute"===r.type||"JSXSpreadChild"===r.type||"UnionTypeAnnotation"===r.type||"TSUnionType"===r.type||("ClassDeclaration"===r.type||"ClassExpression"===r.type)&&r.superClass===t))&&(!Ku(e)||"UnionTypeAnnotation"===r.type||"TSUnionType"===r.type)}};var Nl=function e(t,r){let n;if(Array.isArray(t))n=t.entries();else{if(!t||"object"!=typeof t||"string"!=typeof t.type)return t;n=Object.entries(t)}for(const[i,a]of n)t[i]=e(a,r);return Array.isArray(t)?t:r(t)||t};const Pl=r,wl=Nl;function Il(e,t){const{start:r,end:n}=e.loc;throw Pl(t,{start:{line:r.line,column:r.column+1},end:{line:n.line,column:n.column+1}})}var Ol={throwErrorForInvalidNodes:function(e,t){const{esTreeNodeToTSNodeMap:r,tsNodeToESTreeNodeMap:n}=t.tsParseResult;e=wl(e,(e=>{const t=r.get(e);if(!t)return;const i=n.get(t);i===e&&(function(e,t,r){const n=e.decorators;if(!Array.isArray(n))return;const i=t.decorators;Array.isArray(i)&&i.length===n.length&&!n.some((e=>{const t=r.get(e);return!t||!i.includes(t)}))||Il(t,"Leading decorators must be attached to a class declaration")}(t,i,n),function(e,t){166!==e.kind||e.modifiers&&!e.modifiers.some((e=>126===e.kind))||e.initializer&&null===t.value&&Il(t,"Abstract property cannot have an initializer")}(t,i))}))}};const{getLast:Ml}=sc,{locStart:Ll,locEnd:Rl}=xc,{isTypeCastComment:Bl}=Fl,jl=Nl,{throwErrorForInvalidNodes:Jl}=Ol;function Kl(e){return"CallExpression"===e.type?(e.type="OptionalCallExpression",e.callee=Kl(e.callee)):"MemberExpression"===e.type?(e.type="OptionalMemberExpression",e.object=Kl(e.object)):"TSNonNullExpression"===e.type&&(e.expression=Kl(e.expression)),e}function zl(e){return"LogicalExpression"===e.type&&"LogicalExpression"===e.right.type&&e.operator===e.right.operator}function Ul(e){return zl(e)?Ul({type:"LogicalExpression",operator:e.operator,left:Ul({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[Ll(e.left),Rl(e.right.left)]}),right:e.right.right,range:[Ll(e),Rl(e)]}):e}var Vl=function(e,t){if("typescript"===t.parser&&/@|abstract/.test(t.originalText)&&Jl(e,t),"typescript"!==t.parser&&"flow"!==t.parser&&"espree"!==t.parser&&"meriyah"!==t.parser){const t=new Set;e=jl(e,(e=>{e.leadingComments&&e.leadingComments.some(Bl)&&t.add(Ll(e))})),e=jl(e,(e=>{if("ParenthesizedExpression"===e.type){const{expression:r}=e;if("TypeCastExpression"===r.type)return r.range=e.range,r;const n=Ll(e);if(!t.has(n))return r.extra=Object.assign(Object.assign({},r.extra),{},{parenthesized:!0}),r}}))}return e=jl(e,(e=>{switch(e.type){case"ChainExpression":return Kl(e.expression);case"LogicalExpression":if(zl(e))return Ul(e);break;case"VariableDeclaration":{const r=Ml(e.declarations);r&&r.init&&function(e,r){if(";"===t.originalText[Rl(r)])return;e.range=[Ll(e),Rl(r)]}(e,r);break}case"TSParenthesizedType":return e.typeAnnotation.range=[Ll(e),Rl(e)],e.typeAnnotation;case"TSTypeParameter":if("string"==typeof e.name){const t=Ll(e);e.name={type:"Identifier",name:e.name,range:[t,t+e.name.length]}}break;case"SequenceExpression":{const t=Ml(e.expressions);e.range=[Ll(e),Math.min(Rl(t),Rl(e))];break}case"TopicReference":t.__isUsingHackPipeline=!0}})),e},ql={},Wl={},Hl={exports:{}},Gl={exports:{}},Yl=1e3,Xl=60*Yl,Ql=60*Xl,$l=24*Ql,Zl=7*$l,ed=365.25*$l,td=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\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*ed;case"weeks":case"week":case"w":return r*Zl;case"days":case"day":case"d":return r*$l;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ql;case"minutes":case"minute":case"mins":case"min":case"m":return r*Xl;case"seconds":case"second":case"secs":case"sec":case"s":return r*Yl;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}(e);if("number"===r&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=$l)return rd(e,t,$l,"day");if(t>=Ql)return rd(e,t,Ql,"hour");if(t>=Xl)return rd(e,t,Xl,"minute");if(t>=Yl)return rd(e,t,Yl,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=$l)return Math.round(e/$l)+"d";if(t>=Ql)return Math.round(e/Ql)+"h";if(t>=Xl)return Math.round(e/Xl)+"m";if(t>=Yl)return Math.round(e/Yl)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function rd(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}var nd=function(e){function t(e){let n,i,a,o=null;function s(){for(var e=arguments.length,r=new Array(e),i=0;i{if("%%"===e)return"%";u++;const i=t.formatters[n];if("function"==typeof i){const t=r[u];e=i.call(a,t),r.splice(u,1),u--}return e})),t.formatArgs.call(a,r);const l=a.log||t.log;l.apply(a,r)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(i!==t.namespaces&&(i=t.namespaces,a=t.enabled(e)),a),set:e=>{o=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function n(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(n),...t.skips.map(n).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(r=0;r{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t{"%%"!==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(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==es&&"env"in es&&(e=es.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.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),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"],t.log=console.debug||console.log||(()=>{}),e.exports=nd(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(Gl,Gl.exports);var id={exports:{}};function ad(){return!1}function od(){throw new Error("tty.ReadStream is not implemented")}function sd(){throw new Error("tty.ReadStream is not implemented")}var cd={isatty:ad,ReadStream:od,WriteStream:sd},ud=t(Object.freeze({__proto__:null,isatty:ad,ReadStream:od,WriteStream:sd,default:cd})),ld=[],dd=[],_d="undefined"!=typeof Uint8Array?Uint8Array:Array,pd=!1;function fd(){pd=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t>18&63]+ld[i>>12&63]+ld[i>>6&63]+ld[63&i]);return a.join("")}function md(e){var t;pd||fd();for(var r=e.length,n=r%3,i="",a=[],o=16383,s=0,c=r-n;sc?c:s+o));return 1===n?(t=e[r-1],i+=ld[t>>2],i+=ld[t<<4&63],i+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],i+=ld[t>>10],i+=ld[t>>4&63],i+=ld[t<<2&63],i+="="),a.push(i),a.join("")}function yd(e,t,r,n,i){var a,o,s=8*i-n-1,c=(1<>1,l=-7,d=r?i-1:0,_=r?-1:1,p=e[t+d];for(d+=_,a=p&(1<<-l)-1,p>>=-l,l+=s;l>0;a=256*a+e[t+d],d+=_,l-=8);for(o=a&(1<<-l)-1,a>>=-l,l+=n;l>0;o=256*o+e[t+d],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 vd(e,t,r,n,i,a){var o,s,c,u=8*a-i-1,l=(1<>1,_=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,f=n?1:-1,g=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+d>=1?_/c:_*Math.pow(2,1-d))*c>=2&&(o++,c/=2),o+d>=l?(s=0,o=l):o+d>=1?(s=(t*c-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[r+p]=255&s,p+=f,s/=256,i-=8);for(o=o<0;e[r+p]=255&o,p+=f,o/=256,u-=8);e[r+p-f]|=128*g}var hd={}.toString,Dd=Array.isArray||function(e){return"[object Array]"==hd.call(e)};Td.TYPED_ARRAY_SUPPORT=void 0===o.TYPED_ARRAY_SUPPORT||o.TYPED_ARRAY_SUPPORT;var xd=bd();function bd(){return Td.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Sd(e,t){if(bd()=bd())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+bd().toString(16)+" bytes");return 0|e}function Nd(e){return!(null==e||!e._isBuffer)}function Pd(e,t){if(Nd(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 n_(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return i_(e).length;default:if(n)return n_(e).length;t=(""+t).toLowerCase(),n=!0}}function wd(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 Wd(this,t,r);case"utf8":case"utf-8":return Ud(this,t,r);case"ascii":return Vd(this,t,r);case"latin1":case"binary":return qd(this,t,r);case"base64":return zd(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Hd(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function Id(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function Od(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=Td.from(t,n)),Nd(t))return 0===t.length?-1:Md(e,t,r,n,i);if("number"==typeof t)return t&=255,Td.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Md(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Md(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;as&&(r=s-c),a=r;a>=0;a--){for(var d=!0,_=0;_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>8,i=r%256,a.push(i),a.push(n);return a}(t,e.length-r),e,r,n)}function zd(e,t,r){return 0===t&&r===e.length?md(e):md(e.slice(t,r))}function Ud(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?4:u>223?3:u>191?2:1;if(i+d<=r)switch(d){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,d=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},Td.prototype.compare=function(e,t,r,n,i){if(!Nd(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;li)&&(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 Ld(this,e,t,r);case"utf8":case"utf-8":return Rd(this,e,t,r);case"ascii":return Bd(this,e,t,r);case"latin1":case"binary":return jd(this,e,t,r);case"base64":return Jd(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Kd(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},Td.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Vd(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;in)&&(r=n);for(var i="",a=t;ar)throw new RangeError("Trying to access beyond buffer length")}function Yd(e,t,r,n,i,a){if(!Nd(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function Xd(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function Qd(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function $d(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 Zd(e,t,r,n,i){return i||$d(e,0,r,4),vd(e,t,r,n,23,4),r+4}function e_(e,t,r,n,i){return i||$d(e,0,r,8),vd(e,t,r,n,52,8),r+8}Td.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),t0&&(i*=256);)n+=this[e+--t]*i;return n},Td.prototype.readUInt8=function(e,t){return t||Gd(e,1,this.length),this[e]},Td.prototype.readUInt16LE=function(e,t){return t||Gd(e,2,this.length),this[e]|this[e+1]<<8},Td.prototype.readUInt16BE=function(e,t){return t||Gd(e,2,this.length),this[e]<<8|this[e+1]},Td.prototype.readUInt32LE=function(e,t){return t||Gd(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Td.prototype.readUInt32BE=function(e,t){return t||Gd(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Td.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||Gd(e,t,this.length);for(var n=this[e],i=1,a=0;++a=(i*=128)&&(n-=Math.pow(2,8*t)),n},Td.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||Gd(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},Td.prototype.readInt8=function(e,t){return t||Gd(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Td.prototype.readInt16LE=function(e,t){t||Gd(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},Td.prototype.readInt16BE=function(e,t){t||Gd(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},Td.prototype.readInt32LE=function(e,t){return t||Gd(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Td.prototype.readInt32BE=function(e,t){return t||Gd(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Td.prototype.readFloatLE=function(e,t){return t||Gd(e,4,this.length),yd(this,e,!0,23,4)},Td.prototype.readFloatBE=function(e,t){return t||Gd(e,4,this.length),yd(this,e,!1,23,4)},Td.prototype.readDoubleLE=function(e,t){return t||Gd(e,8,this.length),yd(this,e,!0,52,8)},Td.prototype.readDoubleBE=function(e,t){return t||Gd(e,8,this.length),yd(this,e,!1,52,8)},Td.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||Yd(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+i]=e/a&255;return t+r},Td.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||Yd(this,e,t,1,255,0),Td.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Td.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||Yd(this,e,t,2,65535,0),Td.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Xd(this,e,t,!0),t+2},Td.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||Yd(this,e,t,2,65535,0),Td.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Xd(this,e,t,!1),t+2},Td.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||Yd(this,e,t,4,4294967295,0),Td.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Qd(this,e,t,!0),t+4},Td.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||Yd(this,e,t,4,4294967295,0),Td.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Qd(this,e,t,!1),t+4},Td.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);Yd(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+r},Td.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);Yd(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},Td.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||Yd(this,e,t,1,127,-128),Td.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Td.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||Yd(this,e,t,2,32767,-32768),Td.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Xd(this,e,t,!0),t+2},Td.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||Yd(this,e,t,2,32767,-32768),Td.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Xd(this,e,t,!1),t+2},Td.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||Yd(this,e,t,4,2147483647,-2147483648),Td.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Qd(this,e,t,!0),t+4},Td.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||Yd(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Td.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Qd(this,e,t,!1),t+4},Td.prototype.writeFloatLE=function(e,t,r){return Zd(this,e,t,!0,r)},Td.prototype.writeFloatBE=function(e,t,r){return Zd(this,e,t,!1,r)},Td.prototype.writeDoubleLE=function(e,t,r){return e_(this,e,t,!0,r)},Td.prototype.writeDoubleBE=function(e,t,r){return e_(this,e,t,!1,r)},Td.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=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=0;--i)e[i+t]=this[i+r];else if(a<1e3||!Td.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a55295&&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 i_(e){return function(e){var t,r,n,i,a,o;pd||fd();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 _d(3*s/4-a),n=a>0?s-4:s;var c=0;for(t=0,r=0;t>16&255,o[c++]=i>>8&255,o[c++]=255&i;return 2===a?(i=dd[e.charCodeAt(t)]<<2|dd[e.charCodeAt(t+1)]>>4,o[c++]=255&i):1===a&&(i=dd[e.charCodeAt(t)]<<10|dd[e.charCodeAt(t+1)]<<4|dd[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(t_,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function a_(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function o_(e){return null!=e&&(!!e._isBuffer||s_(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&s_(e.slice(0,0))}(e))}function s_(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var c_=Object.freeze({__proto__:null,Buffer:Td,INSPECT_MAX_BYTES:50,SlowBuffer:function(e){return+e!=e&&(e=0),Td.alloc(+e)},isBuffer:o_,kMaxLength:xd}),u_="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e},l_=/%[sdj%]/g;function d_(e){if(!k_(e)){for(var t=[],r=0;r=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),S_(t)?r.showHidden=t:t&&z_(r,t),F_(r.showHidden)&&(r.showHidden=!1),F_(r.depth)&&(r.depth=2),F_(r.colors)&&(r.colors=!1),F_(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=y_),h_(r,e,r.depth)}function y_(e,t){var r=m_.styles[t];return r?"\x1b["+m_.colors[r][0]+"m"+e+"\x1b["+m_.colors[r][1]+"m":e}function v_(e,t){return e}function h_(e,t,r){if(e.customInspect&&t&&O_(t.inspect)&&t.inspect!==m_&&(!t.constructor||t.constructor.prototype!==t)){var n=t.inspect(r,e);return k_(n)||(n=h_(e,n,r)),n}var i=function(e,t){if(F_(t))return e.stylize("undefined","undefined");if(k_(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(E_(t))return e.stylize(""+t,"number");if(S_(t))return e.stylize(""+t,"boolean");if(T_(t))return e.stylize("null","null")}(e,t);if(i)return i;var a=Object.keys(t),o=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),I_(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return D_(t);if(0===a.length){if(O_(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(N_(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(w_(t))return e.stylize(Date.prototype.toString.call(t),"date");if(I_(t))return D_(t)}var c,u="",l=!1,d=["{","}"];(b_(t)&&(l=!0,d=["[","]"]),O_(t))&&(u=" [Function"+(t.name?": "+t.name:"")+"]");return N_(t)&&(u=" "+RegExp.prototype.toString.call(t)),w_(t)&&(u=" "+Date.prototype.toUTCString.call(t)),I_(t)&&(u=" "+D_(t)),0!==a.length||l&&0!=t.length?r<0?N_(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=l?function(e,t,r,n,i){for(var a=[],o=0,s=t.length;o60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(c,u,d)):d[0]+u+d[1]}function D_(e){return"["+Error.prototype.toString.call(e)+"]"}function x_(e,t,r,n,i,a){var o,s,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),U_(n,i)||(o="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(s=T_(r)?h_(e,c.value,null):h_(e,c.value,r-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),F_(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function b_(e){return Array.isArray(e)}function S_(e){return"boolean"==typeof e}function T_(e){return null===e}function C_(e){return null==e}function E_(e){return"number"==typeof e}function k_(e){return"string"==typeof e}function A_(e){return"symbol"==typeof e}function F_(e){return void 0===e}function N_(e){return P_(e)&&"[object RegExp]"===R_(e)}function P_(e){return"object"==typeof e&&null!==e}function w_(e){return P_(e)&&"[object Date]"===R_(e)}function I_(e){return P_(e)&&("[object Error]"===R_(e)||e instanceof Error)}function O_(e){return"function"==typeof e}function M_(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function L_(e){return Td.isBuffer(e)}function R_(e){return Object.prototype.toString.call(e)}function B_(e){return e<10?"0"+e.toString(10):e.toString(10)}m_.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},m_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var j_=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function J_(){var e=new Date,t=[B_(e.getHours()),B_(e.getMinutes()),B_(e.getSeconds())].join(":");return[e.getDate(),j_[e.getMonth()],t].join(" ")}function K_(){console.log("%s - %s",J_(),d_.apply(null,arguments))}function z_(e,t){if(!t||!P_(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}function U_(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var V_={inherits:u_,_extend:z_,log:K_,isBuffer:L_,isPrimitive:M_,isFunction:O_,isError:I_,isDate:w_,isObject:P_,isRegExp:N_,isUndefined:F_,isSymbol:A_,isString:k_,isNumber:E_,isNullOrUndefined:C_,isNull:T_,isBoolean:S_,isArray:b_,inspect:m_,deprecate:__,format:d_,debuglog:g_},q_=t(Object.freeze({__proto__:null,format:d_,deprecate:__,debuglog:g_,inspect:m_,isArray:b_,isBoolean:S_,isNull:T_,isNullOrUndefined:C_,isNumber:E_,isString:k_,isSymbol:A_,isUndefined:F_,isRegExp:N_,isObject:P_,isDate:w_,isError:I_,isFunction:O_,isPrimitive:M_,isBuffer:L_,log:K_,inherits:u_,_extend:z_,default:V_}));const W_=S,H_=ud,G_=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:es.argv;const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return-1!==n&&(-1===i||n=2,has16m:e>=3}}function $_(e,t){if(0===X_)return 0;if(G_("color=16m")||G_("color=full")||G_("color=truecolor"))return 3;if(G_("color=256"))return 2;if(e&&!t&&void 0===X_)return 0;const r=X_||0;if("dumb"===Y_.TERM)return r;if("win32"===es.platform){const e=W_.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in Y_)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in Y_))||"codeship"===Y_.CI_NAME?1:r;if("TEAMCITY_VERSION"in Y_)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Y_.TEAMCITY_VERSION)?1:0;if("truecolor"===Y_.COLORTERM)return 3;if("TERM_PROGRAM"in Y_){const e=parseInt((Y_.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Y_.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Y_.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Y_.TERM)||"COLORTERM"in Y_?1:r}G_("no-color")||G_("no-colors")||G_("color=false")||G_("color=never")?X_=0:(G_("color")||G_("colors")||G_("color=true")||G_("color=always"))&&(X_=1),"FORCE_COLOR"in Y_&&(X_="true"===Y_.FORCE_COLOR?1:"false"===Y_.FORCE_COLOR?0:0===Y_.FORCE_COLOR.length?1:Math.min(parseInt(Y_.FORCE_COLOR,10),3));var Z_={supportsColor:function(e){return Q_($_(e,e&&e.isTTY))},stdout:Q_($_(!0,H_.isatty(1))),stderr:Q_($_(!0,H_.isatty(2)))};!function(e,t){const r=ud,n=q_;t.init=function(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;n{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=Z_;e&&(e.stderr||e).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(es.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=es.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=nd(t);const{formatters:i}=e.exports;i.o=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},i.O=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts)}}(id,id.exports),void 0===es||"renderer"===es.type||!0===es.browser||es.__nwjs?Hl.exports=Gl.exports:Hl.exports=id.exports +/*! + * is-extglob + * + * Copyright (c) 2014-2016, Jon Schlinkert. + * Licensed under the MIT License. + */;var ep=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},tp={"{":"}","(":")","[":"]"},rp=function(e){if("!"===e[0])return!0;for(var t=0,r=-2,n=-2,i=-2,a=-2,o=-2;tt)){if(-1===o||o>n)return!0;if(-1===(o=e.indexOf("\\",t))||o>n)return!0}if(-1!==i&&"{"===e[t]&&"}"!==e[t+1]&&(i=e.indexOf("}",t))>t&&(-1===(o=e.indexOf("\\",t))||o>i))return!0;if(-1!==a&&"("===e[t]&&"?"===e[t+1]&&/[:!=]/.test(e[t+2])&&")"!==e[t+3]&&(a=e.indexOf(")",t))>t&&(-1===(o=e.indexOf("\\",t))||o>a))return!0;if(-1!==r&&"("===e[t]&&"|"!==e[t+1]&&(rr&&(-1===(o=e.indexOf("\\",r))||o>a)))return!0;if("\\"===e[t]){var s=e[t+1];t+=2;var c=tp[s];if(c){var u=e.indexOf(c,t);-1!==u&&(t=u+1)}if("!"===e[t])return!0}else t++}return!1},np=function(e){if("!"===e[0])return!0;for(var t=0;t + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */const{MAX_LENGTH:ip}=rs,{re:ap,t:op}=ns.exports,sp=ys,cp=as;var up=(e,t)=>{if(t=cp(t),e instanceof sp)return e;if("string"!=typeof e)return null;if(e.length>ip)return null;if(!(t.loose?ap[op.LOOSE]:ap[op.FULL]).test(e))return null;try{return new sp(e,t)}catch(e){return null}};const lp=up;var dp=(e,t)=>{const r=lp(e,t);return r?r.version:null};const _p=up;var pp=(e,t)=>{const r=_p(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};const fp=ys;var gp=(e,t,r,n)=>{"string"==typeof r&&(n=r,r=void 0);try{return new fp(e,r).inc(t,n).version}catch(e){return null}};const mp=hs;var yp=(e,t,r)=>0===mp(e,t,r);const vp=up,hp=yp;var Dp=(e,t)=>{if(hp(e,t))return null;{const r=vp(e),n=vp(t),i=r.prerelease.length||n.prerelease.length,a=i?"pre":"",o=i?"prerelease":"";for(const e in r)if(("major"===e||"minor"===e||"patch"===e)&&r[e]!==n[e])return a+e;return o}};const xp=ys;var bp=(e,t)=>new xp(e,t).major;const Sp=ys;var Tp=(e,t)=>new Sp(e,t).minor;const Cp=ys;var Ep=(e,t)=>new Cp(e,t).patch;const kp=up;var Ap=(e,t)=>{const r=kp(e,t);return r&&r.prerelease.length?r.prerelease:null};const Fp=hs;var Np=(e,t,r)=>Fp(t,e,r);const Pp=hs;var wp=(e,t)=>Pp(e,t,!0);const Ip=ys;var Op=(e,t,r)=>{const n=new Ip(e,r),i=new Ip(t,r);return n.compare(i)||n.compareBuild(i)};const Mp=Op;var Lp=(e,t)=>e.sort(((e,r)=>Mp(e,r,t)));const Rp=Op;var Bp=(e,t)=>e.sort(((e,r)=>Rp(r,e,t)));const jp=hs;var Jp=(e,t,r)=>jp(e,t,r)>0;const Kp=hs;var zp=(e,t,r)=>0!==Kp(e,t,r);const Up=hs;var Vp=(e,t,r)=>Up(e,t,r)<=0;const qp=yp,Wp=zp,Hp=Jp,Gp=Fs,Yp=xs,Xp=Vp;var Qp=(e,t,r,n)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return qp(e,r,n);case"!=":return Wp(e,r,n);case">":return Hp(e,r,n);case">=":return Gp(e,r,n);case"<":return Yp(e,r,n);case"<=":return Xp(e,r,n);default:throw new TypeError("Invalid operator: ".concat(t))}};const $p=ys,Zp=up,{re:ef,t:tf}=ns.exports;var rf=(e,t)=>{if(e instanceof $p)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=ef[tf.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),ef[tf.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;ef[tf.COERCERTL].lastIndex=-1}else r=e.match(ef[tf.COERCE]);return null===r?null:Zp("".concat(r[2],".").concat(r[3]||"0",".").concat(r[4]||"0"),t)},nf=af;function af(e){var t=this;if(t instanceof af||(t=new af),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var r=0,n=arguments.length;r1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r},af.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r},af.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},af.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},af.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new af;if(tthis.length&&(t=this.length);for(var n=0,i=this.head;null!==i&&nthis.length&&(t=this.length);for(var n=this.length,i=this.tail;null!==i&&n>t;n--)i=i.prev;for(;null!==i&&n>e;n--,i=i.prev)r.push(i.value);return r},af.prototype.splice=function(e,t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,n=this.head;null!==n&&r1;const bf=(e,t,r)=>{const n=e[hf].get(t);if(n){const t=n.value;if(Sf(e,t)){if(Cf(e,n),!e[ff])return}else r&&(e[Df]&&(n.value.now=Date.now()),e[vf].unshiftNode(n));return t.value}},Sf=(e,t)=>{if(!t||!t.maxAge&&!e[gf])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[gf]&&r>e[gf]},Tf=e=>{if(e[_f]>e[df])for(let t=e[vf].tail;e[_f]>e[df]&&null!==t;){const r=t.prev;Cf(e,t),t=r}},Cf=(e,t)=>{if(t){const r=t.value;e[mf]&&e[mf](r.key,r.value),e[_f]-=r.length,e[hf].delete(r.key),e[vf].removeNode(t)}};class Ef{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0}}const kf=(e,t,r,n)=>{let i=r.value;Sf(e,i)&&(Cf(e,r),e[ff]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};var Af=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[df]=e.max||1/0;const t=e.length||xf;if(this[pf]="function"!=typeof t?xf:t,this[ff]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[gf]=e.maxAge||0,this[mf]=e.dispose,this[yf]=e.noDisposeOnSet||!1,this[Df]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[df]=e||1/0,Tf(this)}get max(){return this[df]}set allowStale(e){this[ff]=!!e}get allowStale(){return this[ff]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[gf]=e,Tf(this)}get maxAge(){return this[gf]}set lengthCalculator(e){"function"!=typeof e&&(e=xf),e!==this[pf]&&(this[pf]=e,this[_f]=0,this[vf].forEach((e=>{e.length=this[pf](e.value,e.key),this[_f]+=e.length}))),Tf(this)}get lengthCalculator(){return this[pf]}get length(){return this[_f]}get itemCount(){return this[vf].length}rforEach(e,t){t=t||this;for(let r=this[vf].tail;null!==r;){const n=r.prev;kf(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[vf].head;null!==r;){const n=r.next;kf(this,e,r,t),r=n}}keys(){return this[vf].toArray().map((e=>e.key))}values(){return this[vf].toArray().map((e=>e.value))}reset(){this[mf]&&this[vf]&&this[vf].length&&this[vf].forEach((e=>this[mf](e.key,e.value))),this[hf]=new Map,this[vf]=new lf,this[_f]=0}dump(){return this[vf].map((e=>!Sf(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[vf]}set(e,t,r){if((r=r||this[gf])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,i=this[pf](t,e);if(this[hf].has(e)){if(i>this[df])return Cf(this,this[hf].get(e)),!1;const a=this[hf].get(e).value;return this[mf]&&(this[yf]||this[mf](e,a.value)),a.now=n,a.maxAge=r,a.value=t,this[_f]+=i-a.length,a.length=i,this.get(e),Tf(this),!0}const a=new Ef(e,t,i,n,r);return a.length>this[df]?(this[mf]&&this[mf](e,t),!1):(this[_f]+=a.length,this[vf].unshift(a),this[hf].set(e,this[vf].head),Tf(this),!0)}has(e){if(!this[hf].has(e))return!1;const t=this[hf].get(e).value;return!Sf(this,t)}get(e){return bf(this,e,!0)}peek(e){return bf(this,e,!1)}pop(){const e=this[vf].tail;return e?(Cf(this,e),e.value):null}del(e){Cf(this,this[hf].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{const e=i-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[hf].forEach(((e,t)=>bf(this,t,!1)))}};class Ff{constructor(e,t){if(t=wf(t),e instanceof Ff)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new Ff(e.raw,t);if(e instanceof If)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(e));if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!Kf(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&zf(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=Object.keys(this.options).join(","),r="parseRange:".concat(t,":").concat(e),n=Pf.get(r);if(n)return n;const i=this.options.loose,a=i?Lf[Rf.HYPHENRANGELOOSE]:Lf[Rf.HYPHENRANGE];e=e.replace(a,eg(this.options.includePrerelease)),Of("hyphen replace",e),e=e.replace(Lf[Rf.COMPARATORTRIM],Bf),Of("comparator trim",e,Lf[Rf.COMPARATORTRIM]),e=(e=(e=e.replace(Lf[Rf.TILDETRIM],jf)).replace(Lf[Rf.CARETTRIM],Jf)).split(/\s+/).join(" ");const o=i?Lf[Rf.COMPARATORLOOSE]:Lf[Rf.COMPARATOR],s=e.split(" ").map((e=>Vf(e,this.options))).join(" ").split(/\s+/).map((e=>Zf(e,this.options))).filter(this.options.loose?e=>!!e.match(o):()=>!0).map((e=>new If(e,this.options)));s.length;const c=new Map;for(const e of s){if(Kf(e))return[e];c.set(e.value,e)}c.size>1&&c.has("")&&c.delete("");const u=[...c.values()];return Pf.set(r,u),u}intersects(e,t){if(!(e instanceof Ff))throw new TypeError("a Range is required");return this.set.some((r=>Uf(r,t)&&e.set.some((e=>Uf(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new Mf(e,this.options)}catch(e){return!1}for(let t=0;t"<0.0.0-0"===e.value,zf=e=>""===e.value,Uf=(e,t)=>{let r=!0;const n=e.slice();let i=n.pop();for(;r&&n.length;)r=n.every((e=>i.intersects(e,t))),i=n.pop();return r},Vf=(e,t)=>(Of("comp",e,t),e=Gf(e,t),Of("caret",e),e=Wf(e,t),Of("tildes",e),e=Xf(e,t),Of("xrange",e),e=$f(e,t),Of("stars",e),e),qf=e=>!e||"x"===e.toLowerCase()||"*"===e,Wf=(e,t)=>e.trim().split(/\s+/).map((e=>Hf(e,t))).join(" "),Hf=(e,t)=>{const r=t.loose?Lf[Rf.TILDELOOSE]:Lf[Rf.TILDE];return e.replace(r,((t,r,n,i,a)=>{let o;return Of("tilde",e,t,r,n,i,a),qf(r)?o="":qf(n)?o=">=".concat(r,".0.0 <").concat(+r+1,".0.0-0"):qf(i)?o=">=".concat(r,".").concat(n,".0 <").concat(r,".").concat(+n+1,".0-0"):a?(Of("replaceTilde pr",a),o=">=".concat(r,".").concat(n,".").concat(i,"-").concat(a," <").concat(r,".").concat(+n+1,".0-0")):o=">=".concat(r,".").concat(n,".").concat(i," <").concat(r,".").concat(+n+1,".0-0"),Of("tilde return",o),o}))},Gf=(e,t)=>e.trim().split(/\s+/).map((e=>Yf(e,t))).join(" "),Yf=(e,t)=>{Of("caret",e,t);const r=t.loose?Lf[Rf.CARETLOOSE]:Lf[Rf.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,i,a,o)=>{let s;return Of("caret",e,t,r,i,a,o),qf(r)?s="":qf(i)?s=">=".concat(r,".0.0").concat(n," <").concat(+r+1,".0.0-0"):qf(a)?s="0"===r?">=".concat(r,".").concat(i,".0").concat(n," <").concat(r,".").concat(+i+1,".0-0"):">=".concat(r,".").concat(i,".0").concat(n," <").concat(+r+1,".0.0-0"):o?(Of("replaceCaret pr",o),s="0"===r?"0"===i?">=".concat(r,".").concat(i,".").concat(a,"-").concat(o," <").concat(r,".").concat(i,".").concat(+a+1,"-0"):">=".concat(r,".").concat(i,".").concat(a,"-").concat(o," <").concat(r,".").concat(+i+1,".0-0"):">=".concat(r,".").concat(i,".").concat(a,"-").concat(o," <").concat(+r+1,".0.0-0")):(Of("no pr"),s="0"===r?"0"===i?">=".concat(r,".").concat(i,".").concat(a).concat(n," <").concat(r,".").concat(i,".").concat(+a+1,"-0"):">=".concat(r,".").concat(i,".").concat(a).concat(n," <").concat(r,".").concat(+i+1,".0-0"):">=".concat(r,".").concat(i,".").concat(a," <").concat(+r+1,".0.0-0")),Of("caret return",s),s}))},Xf=(e,t)=>(Of("replaceXRanges",e,t),e.split(/\s+/).map((e=>Qf(e,t))).join(" ")),Qf=(e,t)=>{e=e.trim();const r=t.loose?Lf[Rf.XRANGELOOSE]:Lf[Rf.XRANGE];return e.replace(r,((r,n,i,a,o,s)=>{Of("xRange",e,r,n,i,a,o,s);const c=qf(i),u=c||qf(a),l=u||qf(o),d=l;return"="===n&&d&&(n=""),s=t.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(u&&(a=0),o=0,">"===n?(n=">=",u?(i=+i+1,a=0,o=0):(a=+a+1,o=0)):"<="===n&&(n="<",u?i=+i+1:a=+a+1),"<"===n&&(s="-0"),r="".concat(n+i,".").concat(a,".").concat(o).concat(s)):u?r=">=".concat(i,".0.0").concat(s," <").concat(+i+1,".0.0-0"):l&&(r=">=".concat(i,".").concat(a,".0").concat(s," <").concat(i,".").concat(+a+1,".0-0")),Of("xRange return",r),r}))},$f=(e,t)=>(Of("replaceStars",e,t),e.trim().replace(Lf[Rf.STAR],"")),Zf=(e,t)=>(Of("replaceGTE0",e,t),e.trim().replace(Lf[t.includePrerelease?Rf.GTE0PRE:Rf.GTE0],"")),eg=e=>(t,r,n,i,a,o,s,c,u,l,d,_,p)=>(r=qf(n)?"":qf(i)?">=".concat(n,".0.0").concat(e?"-0":""):qf(a)?">=".concat(n,".").concat(i,".0").concat(e?"-0":""):o?">=".concat(r):">=".concat(r).concat(e?"-0":""),c=qf(u)?"":qf(l)?"<".concat(+u+1,".0.0-0"):qf(d)?"<".concat(u,".").concat(+l+1,".0-0"):_?"<=".concat(u,".").concat(l,".").concat(d,"-").concat(_):e?"<".concat(u,".").concat(l,".").concat(+d+1,"-0"):"<=".concat(c),"".concat(r," ").concat(c).trim()),tg=(e,t,r)=>{for(let r=0;r0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0},rg=Symbol("SemVer ANY");class ng{static get ANY(){return rg}constructor(e,t){if(t=ag(t),e instanceof ng){if(e.loose===!!t.loose)return e;e=e.value}ug("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===rg?this.value="":this.value=this.operator+this.semver.version,ug("comp",this)}parse(e){const t=this.options.loose?og[sg.COMPARATORLOOSE]:og[sg.COMPARATOR],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: ".concat(e));this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new lg(r[2],this.options.loose):this.semver=rg}toString(){return this.value}test(e){if(ug("Comparator.test",e,this.options.loose),this.semver===rg||e===rg)return!0;if("string"==typeof e)try{e=new lg(e,this.options)}catch(e){return!1}return cg(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof ng))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new dg(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new dg(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),o=cg(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),s=cg(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||n||i&&a||o||s}}var ig=ng;const ag=as,{re:og,t:sg}=ns.exports,cg=Qp,ug=ts,lg=ys,dg=Nf,_g=Nf;var pg=(e,t,r)=>{try{t=new _g(t,r)}catch(e){return!1}return t.test(e)};const fg=Nf;var gg=(e,t)=>new fg(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));const mg=ys,yg=Nf;var vg=(e,t,r)=>{let n=null,i=null,a=null;try{a=new yg(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(n&&-1!==i.compare(e)||(n=e,i=new mg(n,r)))})),n};const hg=ys,Dg=Nf;var xg=(e,t,r)=>{let n=null,i=null,a=null;try{a=new Dg(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(n&&1!==i.compare(e)||(n=e,i=new hg(n,r)))})),n};const bg=ys,Sg=Nf,Tg=Jp;var Cg=(e,t)=>{e=new Sg(e,t);let r=new bg("0.0.0");if(e.test(r))return r;if(r=new bg("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t{const t=new bg(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!Tg(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: ".concat(e.operator))}})),!i||r&&!Tg(r,i)||(r=i)}return r&&e.test(r)?r:null};const Eg=Nf;var kg=(e,t)=>{try{return new Eg(e,t).range||"*"}catch(e){return null}};const Ag=ys,Fg=ig,{ANY:Ng}=Fg,Pg=Nf,wg=pg,Ig=Jp,Og=xs,Mg=Vp,Lg=Fs;var Rg=(e,t,r,n)=>{let i,a,o,s,c;switch(e=new Ag(e,n),t=new Pg(t,n),r){case">":i=Ig,a=Mg,o=Og,s=">",c=">=";break;case"<":i=Og,a=Lg,o=Ig,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(wg(e,t,n))return!1;for(let r=0;r{e.semver===Ng&&(e=new Fg(">=0.0.0")),l=l||e,d=d||e,i(e.semver,l.semver,n)?l=e:o(e.semver,d.semver,n)&&(d=e)})),l.operator===s||l.operator===c)return!1;if((!d.operator||d.operator===s)&&a(e,d.semver))return!1;if(d.operator===c&&o(e,d.semver))return!1}return!0};const Bg=Rg;var jg=(e,t,r)=>Bg(e,t,">",r);const Jg=Rg;var Kg=(e,t,r)=>Jg(e,t,"<",r);const zg=Nf;var Ug=(e,t,r)=>(e=new zg(e,r),t=new zg(t,r),e.intersects(t));const Vg=pg,qg=hs;const Wg=Nf,Hg=ig,{ANY:Gg}=Hg,Yg=pg,Xg=hs,Qg=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===Gg){if(1===t.length&&t[0].semver===Gg)return!0;e=r.includePrerelease?[new Hg(">=0.0.0-0")]:[new Hg(">=0.0.0")]}if(1===t.length&&t[0].semver===Gg){if(r.includePrerelease)return!0;t=[new Hg(">=0.0.0")]}const n=new Set;let i,a,o,s,c,u,l;for(const t of e)">"===t.operator||">="===t.operator?i=$g(i,t,r):"<"===t.operator||"<="===t.operator?a=Zg(a,t,r):n.add(t.semver);if(n.size>1)return null;if(i&&a){if(o=Xg(i.semver,a.semver,r),o>0)return null;if(0===o&&(">="!==i.operator||"<="!==a.operator))return null}for(const e of n){if(i&&!Yg(e,String(i),r))return null;if(a&&!Yg(e,String(a),r))return null;for(const n of t)if(!Yg(e,String(n),r))return!1;return!0}let d=!(!a||r.includePrerelease||!a.semver.prerelease.length)&&a.semver,_=!(!i||r.includePrerelease||!i.semver.prerelease.length)&&i.semver;d&&1===d.prerelease.length&&"<"===a.operator&&0===d.prerelease[0]&&(d=!1);for(const e of t){if(l=l||">"===e.operator||">="===e.operator,u=u||"<"===e.operator||"<="===e.operator,i)if(_&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===_.major&&e.semver.minor===_.minor&&e.semver.patch===_.patch&&(_=!1),">"===e.operator||">="===e.operator){if(s=$g(i,e,r),s===e&&s!==i)return!1}else if(">="===i.operator&&!Yg(i.semver,String(e),r))return!1;if(a)if(d&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===d.major&&e.semver.minor===d.minor&&e.semver.patch===d.patch&&(d=!1),"<"===e.operator||"<="===e.operator){if(c=Zg(a,e,r),c===e&&c!==a)return!1}else if("<="===a.operator&&!Yg(a.semver,String(e),r))return!1;if(!e.operator&&(a||i)&&0!==o)return!1}return!(i&&u&&!a&&0!==o)&&(!(a&&l&&!i&&0!==o)&&(!_&&!d))},$g=(e,t,r)=>{if(!e)return t;const n=Xg(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},Zg=(e,t,r)=>{if(!e)return t;const n=Xg(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};var em=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e===t)return!0;e=new Wg(e,r),t=new Wg(t,r);let n=!1;e:for(const i of e.set){for(const e of t.set){const t=Qg(i,e,r);if(n=n||null!==t,t)continue e}if(n)return!1}return!0};const tm=ns.exports;var rm={re:tm.re,src:tm.src,tokens:tm.t,SEMVER_SPEC_VERSION:rs.SEMVER_SPEC_VERSION,SemVer:ys,compareIdentifiers:cs.compareIdentifiers,rcompareIdentifiers:cs.rcompareIdentifiers,parse:up,valid:dp,clean:pp,inc:gp,diff:Dp,major:bp,minor:Tp,patch:Ep,prerelease:Ap,compare:hs,rcompare:Np,compareLoose:wp,compareBuild:Op,sort:Lp,rsort:Bp,gt:Jp,lt:xs,eq:yp,neq:zp,gte:Fs,lte:Vp,cmp:Qp,coerce:rf,Comparator:ig,Range:Nf,satisfies:pg,toComparators:gg,maxSatisfying:vg,minSatisfying:xg,minVersion:Cg,validRange:kg,outside:Rg,gtr:jg,ltr:Kg,intersects:Ug,simplifyRange:(e,t,r)=>{const n=[];let i=null,a=null;const o=e.sort(((e,t)=>qg(e,t,r)));for(const e of o){Vg(e,t,r)?(a=e,i||(i=e)):(a&&n.push([i,a]),a=null,i=null)}i&&n.push([i,null]);const s=[];for(const[e,t]of n)e===t?s.push(e):t||e!==o[0]?t?e===o[0]?s.push("<=".concat(t)):s.push("".concat(e," - ").concat(t)):s.push(">=".concat(e)):s.push("*");const c=s.join(" || "),u="string"==typeof t.raw?t.raw:String(t);return c.length=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}var im=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,am=function(e){return im.exec(e).slice(1)};function om(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:"/";if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");n&&(e=n+"/"+e,t="/"===n.charAt(0))}return(t?"/":"")+(e=nm(gm(e.split("/"),(function(e){return!!e})),!t).join("/"))||"."}function sm(e){var t=cm(e),r="/"===mm(e,-1);return(e=nm(gm(e.split("/"),(function(e){return!!e})),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e}function cm(e){return"/"===e.charAt(0)}function um(){var e=Array.prototype.slice.call(arguments,0);return sm(gm(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))}function lm(e,t){function r(e){for(var t=0;t=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=om(e).substr(1),t=om(t).substr(1);for(var n=r(e.split("/")),i=r(t.split("/")),a=Math.min(n.length,i.length),o=a,s=0;s0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0;for(var r=0,n=e;r>1);switch(i(r(e[c],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.getIterator=function(t){if(t){if(E(t))return p(t);if(t instanceof e.Map)return t.entries();if(t instanceof e.Set)return t.values();throw new Error("Iteration not supported.")}},e.emptyArray=[],e.emptyMap=new e.Map,e.emptySet=new e.Set,e.createMap=function(){return new e.Map},e.createMapFromTemplate=function(t){var r=new e.Map;for(var n in t)y.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=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=0;r--){var n=e[r];if(t(n,r))return n}},e.findIndex=function(e,t,r){for(var n=r||0;n=0;n--)if(t(e[n],n))return n;return-1},e.findMap=function(t,r){for(var n=0;n0&&e.Debug.assertGreaterThanOrEqual(n(r[o],r[o-1]),0);t:for(var s=a;as&&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;nt?1:0}function R(e,t){return O(e,t)}e.toFileNameLowerCase=w,e.notImplemented=function(){throw new Error("Not implemented")},e.memoize=function(e){var t;return function(){return e&&(t=e(),e=void 0),t}},e.memoizeOne=function(t){var r=new e.Map;return function(e){var n="".concat(typeof e,":").concat(e),i=r.get(n);return void 0!==i||r.has(n)||(i=t(e),r.set(n,i)),i}},e.compose=function(e,t,r,n,i){if(i){for(var a=[],o=0;o0?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 et?1:0}}}();function K(e,t,r){for(var n=new Array(t.length+1),i=new Array(t.length+1),a=r+.01,o=0;o<=t.length;o++)n[o]=o;for(o=1;o<=e.length;o++){var s=e.charCodeAt(o-1),c=Math.ceil(o>r?o-r:1),u=Math.floor(t.length>r+o?r+o:t.length);i[0]=o;for(var l=o,d=1;dr)return;var f=n;n=i,i=f}var g=n[t.length];return g>r?void 0:g}function z(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function U(e,t){for(var r=t;r=r.length+n.length&&W(t,r)&&z(t,n)}function G(e,t,r,n){for(var i=0,a=e[n];i0;r--){var n=e.charCodeAt(r);if(n>=48&&n<=57)do{--r,n=e.charCodeAt(r)}while(r>0&&n>=48&&n<=57);else{if(!(r>4)||110!==n&&78!==n)break;if(--r,105!==(n=e.charCodeAt(r))&&73!==n)break;if(--r,109!==(n=e.charCodeAt(r))&&77!==n)break;--r,n=e.charCodeAt(r)}if(45!==n&&46!==n)break;t=r}return t===e.length?e:e.slice(0,t)},e.orderedRemoveItem=function(e,t){for(var r=0;ri&&(i=c.prefix.length,n=s)}return n},e.startsWith=W,e.removePrefix=function(e,t){return W(e,t)?e.substr(t.length):e},e.tryRemovePrefix=function(e,t,r){return void 0===r&&(r=A),W(r(e),r(t))?e.substring(t.length):void 0},e.and=function(e,t){return function(r){return e(r)&&t(r)}},e.or=function(){for(var e=[],t=0;t=0&&e.isWhiteSpaceLike(t.charCodeAt(r));)r--;return t.slice(0,r+1)},e.trimStringStart=String.prototype.trimStart?function(e){return e.trimStart()}:function(e){return e.replace(/^\s+/g,"")}}(c||(c={})),function(e){var t;!function(e){e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose"}(t=e.LogLevel||(e.LogLevel={})),function(r){var n,i,a=0;function o(){return null!=n?n:n=new e.Version(e.version)}function s(e){return r.currentLogLevel<=e}function c(e,t){r.loggingHost&&s(e)&&r.loggingHost.log(e,t)}function u(e){c(t.Info,e)}r.currentLogLevel=t.Warning,r.isDebugging=!1,r.getTypeScriptVersion=o,r.shouldLog=s,r.log=u,i=u=r.log||(r.log={}),i.error=function(e){c(t.Error,e)},i.warn=function(e){c(t.Warning,e)},i.log=function(e){c(t.Info,e)},i.trace=function(e){c(t.Verbose,e)};var l={};function d(e){return a>=e}function _(t,n){return!!d(t)||(l[n]={level:t,assertion:r[n]},r[n]=e.noop,!1)}function p(e,t){var r=new Error(e?"Debug Failure. ".concat(e):"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(r,t||p),r}function f(e,t,r,n){e||(t=t?"False expression: ".concat(t):"False expression.",r&&(t+="\r\nVerbose Debug Information: "+("string"==typeof r?r:r())),p(t,n||f))}function g(e,t,r){null==e&&p(t,r||g)}function m(e,t,r){return g(e,t,r||m),e}function y(e,t,r){for(var n=0,i=e;n0&&0===i[0][0]?i[0][1]:"0";if(n){for(var a="",o=t,s=0,c=i;st)break;0!==l&&l&t&&(a="".concat(a).concat(a?"|":"").concat(d),o&=~l)}if(0===o)return a}else for(var _=0,p=i;_n)for(var i=0,o=e.getOwnKeys(l);i=c.level&&(r[s]=c,l[s]=void 0)}},r.shouldAssert=d,r.fail=p,r.failBadSyntaxKind=function e(t,r,n){return p("".concat(r||"Unexpected node.","\r\nNode ").concat(x(t.kind)," was unexpected."),n||e)},r.assert=f,r.assertEqual=function e(t,r,n,i,a){if(t!==r){var o=n?i?"".concat(n," ").concat(i):n:"";p("Expected ".concat(t," === ").concat(r,". ").concat(o),a||e)}},r.assertLessThan=function e(t,r,n,i){t>=r&&p("Expected ".concat(t," < ").concat(r,". ").concat(n||""),i||e)},r.assertLessThanOrEqual=function e(t,r,n){t>r&&p("Expected ".concat(t," <= ").concat(r),n||e)},r.assertGreaterThanOrEqual=function e(t,r,n){t= ").concat(r),n||e)},r.assertIsDefined=g,r.checkDefined=m,r.assertDefined=m,r.assertEachIsDefined=y,r.checkEachDefined=v,r.assertEachDefined=v,r.assertNever=function t(r,n,i){void 0===n&&(n="Illegal value:");var a="object"==typeof r&&e.hasProperty(r,"kind")&&e.hasProperty(r,"pos")&&x?"SyntaxKind: "+x(r.kind):JSON.stringify(r);return p("".concat(n," ").concat(a),i||t)},r.assertEachNode=function t(r,n,i,a){_(1,"assertEachNode")&&f(void 0===n||e.every(r,n),i||"Unexpected node.",(function(){return"Node array did not pass test '".concat(h(n),"'.")}),a||t)},r.assertNode=function e(t,r,n,i){_(1,"assertNode")&&f(void 0!==t&&(void 0===r||r(t)),n||"Unexpected node.",(function(){return"Node ".concat(x(null==t?void 0:t.kind)," did not pass test '").concat(h(r),"'.")}),i||e)},r.assertNotNode=function e(t,r,n,i){_(1,"assertNotNode")&&f(void 0===t||void 0===r||!r(t),n||"Unexpected node.",(function(){return"Node ".concat(x(t.kind)," should not have passed test '").concat(h(r),"'.")}),i||e)},r.assertOptionalNode=function e(t,r,n,i){_(1,"assertOptionalNode")&&f(void 0===r||void 0===t||r(t),n||"Unexpected node.",(function(){return"Node ".concat(x(null==t?void 0:t.kind)," did not pass test '").concat(h(r),"'.")}),i||e)},r.assertOptionalToken=function e(t,r,n,i){_(1,"assertOptionalToken")&&f(void 0===r||void 0===t||t.kind===r,n||"Unexpected node.",(function(){return"Node ".concat(x(null==t?void 0:t.kind)," was not a '").concat(x(r),"' token.")}),i||e)},r.assertMissingNode=function e(t,r,n){_(1,"assertMissingNode")&&f(void 0===t,r||"Unexpected node.",(function(){return"Node ".concat(x(t.kind)," was unexpected'.")}),n||e)},r.type=function(e){},r.getFunctionName=h,r.formatSymbol=function(t){return"{ name: ".concat(e.unescapeLeadingUnderscores(t.escapedName),"; flags: ").concat(E(t.flags),"; declarations: ").concat(e.map(t.declarations,(function(e){return x(e.kind)}))," }")},r.formatEnum=D,r.formatSyntaxKind=x,r.formatSnippetKind=function(t){return D(t,e.SnippetKind,!1)},r.formatNodeFlags=b,r.formatModifierFlags=S,r.formatTransformFlags=T,r.formatEmitFlags=C,r.formatSymbolFlags=E,r.formatTypeFlags=k,r.formatSignatureFlags=A,r.formatObjectFlags=F,r.formatFlowFlags=N;var P,w,I=!1;function O(e){return function(){throw R(),new Error("Debugging helpers could not be loaded.")}().formatControlFlowGraph(e)}function M(t){"__debugFlowFlags"in t||Object.defineProperties(t,{__tsDebuggerDisplay:{value:function(){var e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",t=-2048&this.flags;return"".concat(e).concat(t?" (".concat(N(t),")"):"")}},__debugFlowFlags:{get:function(){return D(this.flags,e.FlowFlags,!0)}},__debugToString:{value:function(){return O(this)}}})}function L(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:function(e){return e=String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),"NodeArray ".concat(e)}}})}function R(){if(!I){var t,r;Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var t=33554432&this.flags?"TransientSymbol":"Symbol",r=-33554433&this.flags;return"".concat(t," '").concat(e.symbolName(this),"'").concat(r?" (".concat(E(r),")"):"")}},__debugFlags:{get:function(){return E(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var t=98304&this.flags?"NullableType":384&this.flags?"LiteralType ".concat(JSON.stringify(this.value)):2048&this.flags?"LiteralType ".concat(this.value.negative?"-":"").concat(this.value.base10Value,"n"):8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":67359327&this.flags?"IntrinsicType ".concat(this.intrinsicName):1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",r=524288&this.flags?-1344&this.objectFlags:0;return"".concat(t).concat(this.symbol?" '".concat(e.symbolName(this.symbol),"'"):"").concat(r?" (".concat(F(r),")"):"")}},__debugFlags:{get:function(){return k(this.flags)}},__debugObjectFlags:{get:function(){return 524288&this.flags?F(this.objectFlags):""}},__debugTypeToString:{value:function(){var e=(void 0===t&&"function"==typeof WeakMap&&(t=new WeakMap),t),r=null==e?void 0:e.get(this);return void 0===r&&(r=this.checker.typeToString(this),null==e||e.set(this,r)),r}}}),Object.defineProperties(e.objectAllocator.getSignatureConstructor().prototype,{__debugFlags:{get:function(){return A(this.flags)}},__debugSignatureToString:{value:function(){var e;return null===(e=this.checker)||void 0===e?void 0:e.signatureToString(this)}}});for(var n=0,i=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()];n=0;return d?function(e,t,r,n){var i=B(e,!0,t,r,n);return function(){throw new TypeError(i)}}(t,s,l,r.message):_?function(e,t,r,n){var i=!1;return function(){i||(u.warn(B(e,!1,t,r,n)),i=!0)}}(t,s,l,r.message):e.noop}r.printControlFlowGraph=function(e){return console.log(O(e))},r.formatControlFlowGraph=O,r.attachFlowNodeDebugInfo=function(e){I&&("function"==typeof Object.setPrototypeOf?(P||M(P=Object.create(Object.prototype)),Object.setPrototypeOf(e,P)):M(e))},r.attachNodeArrayDebugInfo=function(e){I&&("function"==typeof Object.setPrototypeOf?(w||L(w=Object.create(Array.prototype)),Object.setPrototypeOf(e,w)):L(e))},r.enableDebugInfo=R,r.deprecate=function(e,t){return function(e,t){return function(){return e(),t.apply(this,arguments)}}(j(h(e),t),e)}}(e.Debug||(e.Debug={}))}(c||(c={})),function(e){var t=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,r=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,n=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,i=/^(0|[1-9]\d*)$/,a=function(){function t(t,i,a,s,c){if(void 0===i&&(i=0),void 0===a&&(a=0),void 0===s&&(s=""),void 0===c&&(c=""),"string"==typeof t){var u=e.Debug.checkDefined(o(t),"Invalid version");t=u.major,i=u.minor,a=u.patch,s=u.prerelease,c=u.build}e.Debug.assert(t>=0,"Invalid argument: major"),e.Debug.assert(i>=0,"Invalid argument: minor"),e.Debug.assert(a>=0,"Invalid argument: patch"),e.Debug.assert(!s||r.test(s),"Invalid argument: prerelease"),e.Debug.assert(!c||n.test(c),"Invalid argument: build"),this.major=t,this.minor=i,this.patch=a,this.prerelease=s?s.split("."):e.emptyArray,this.build=c?c.split("."):e.emptyArray}return t.tryParse=function(e){var r=o(e);if(r)return new t(r.major,r.minor,r.patch,r.prerelease,r.build)},t.prototype.compareTo=function(t){return this===t?0:void 0===t?1:e.compareValues(this.major,t.major)||e.compareValues(this.minor,t.minor)||e.compareValues(this.patch,t.patch)||function(t,r){if(t===r)return 0;if(0===t.length)return 0===r.length?0:1;if(0===r.length)return-1;for(var n=Math.min(t.length,r.length),a=0;a|>=|=)?\s*([a-z0-9-+.*]+)$/i;function p(t){for(var r=[],n=0,i=e.trimString(t).split(c);n=",n.version)),y(i.major)||r.push(y(i.minor)?v("<",i.version.increment("major")):y(i.patch)?v("<",i.version.increment("minor")):v("<=",i.version)),!0)}function m(e,t,r){var n=f(t);if(!n)return!1;var i=n.version,o=n.major,s=n.minor,c=n.patch;if(y(o))"<"!==e&&">"!==e||r.push(v("<",a.zero));else switch(e){case"~":r.push(v(">=",i)),r.push(v("<",i.increment(y(s)?"major":"minor")));break;case"^":r.push(v(">=",i)),r.push(v("<",i.increment(i.major>0||y(s)?"major":i.minor>0||y(c)?"minor":"patch")));break;case"<":case">=":r.push(v(e,i));break;case"<=":case">":r.push(y(s)?v("<="===e?"<":">=",i.increment("major")):y(c)?v("<="===e?"<":">=",i.increment("minor")):v(e,i));break;case"=":case void 0:y(s)||y(c)?(r.push(v(">=",i)),r.push(v("<",i.increment(y(s)?"major":"minor")))):r.push(v("=",i));break;default:return!1}return!0}function y(e){return"*"===e||"x"===e||"X"===e}function v(e,t){return{operator:e,operand:t}}function h(e,t){for(var r=0,n=t;r":return i>0;case">=":return i>=0;case"=":return 0===i;default:return e.Debug.assertNever(r)}}function x(t){return e.map(t,b).join(" ")}function b(e){return"".concat(e.operator).concat(e.operand)}}(c||(c={})),function(e){function t(e,t){return"object"==typeof e&&"number"==typeof e.timeOrigin&&"function"==typeof e.mark&&"function"==typeof e.measure&&"function"==typeof e.now&&"function"==typeof t}var r=function(){if("object"==typeof performance&&"function"==typeof PerformanceObserver&&t(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance:performance,PerformanceObserver:PerformanceObserver}}()||function(){if(void 0!==es&&es.nextTick&&!es.browser&&"function"==typeof require)try{var r,n={},i=n.performance,a=n.PerformanceObserver;if(t(i,a)){r=i;var o=new e.Version("999.999.999");return new e.VersionRange("<12.16.3 || 13 <13.13").test(o)&&(r={get timeOrigin(){return i.timeOrigin},now:function(){return i.now()},mark:function(e){return i.mark(e)},measure:function(e,t,r){void 0===t&&(t="nodeStart"),void 0===r&&(r="__performance.measure-fix__",i.mark(r)),i.measure(e,t,r),"__performance.measure-fix__"===r&&i.clearMarks("__performance.measure-fix__")}}),{shouldWriteNativeEvents:!1,performance:r,PerformanceObserver:a}}}catch(e){}}(),n=null==r?void 0:r.performance;e.tryGetNativePerformanceHooks=function(){return r},e.timestamp=n?function(){return n.now()}:Date.now?Date.now:function(){return+new Date}}(c||(c={})),function(e){!function(t){var r,n;function i(t,r,n){var i=0;return{enter:function(){1==++i&&l(r)},exit:function(){0==--i?(l(n),d(t,r,n)):i<0&&e.Debug.fail("enter/exit count does not match.")}}}t.createTimerIf=function(e,r,n,a){return e?i(r,n,a):t.nullTimer},t.createTimer=i,t.nullTimer={enter:e.noop,exit:e.noop};var a=!1,o=e.timestamp(),s=new e.Map,c=new e.Map,u=new e.Map;function l(t){var r;if(a){var i=null!==(r=c.get(t))&&void 0!==r?r:0;c.set(t,i+1),s.set(t,e.timestamp()),null==n||n.mark(t)}}function d(t,r,i){var c,l;if(a){var d=null!==(c=void 0!==i?s.get(i):void 0)&&void 0!==c?c:e.timestamp(),_=null!==(l=void 0!==r?s.get(r):void 0)&&void 0!==l?l:o,p=u.get(t)||0;u.set(t,p+(d-_)),null==n||n.measure(t,r,i)}}t.mark=l,t.measure=d,t.getCount=function(e){return c.get(e)||0},t.getDuration=function(e){return u.get(e)||0},t.forEachMeasure=function(e){u.forEach((function(t,r){return e(r,t)}))},t.isEnabled=function(){return a},t.enable=function(t){var i;return void 0===t&&(t=e.sys),a||(a=!0,r||(r=e.tryGetNativePerformanceHooks()),r&&(o=r.performance.timeOrigin,(r.shouldWriteNativeEvents||(null===(i=null==t?void 0:t.cpuProfilingEnabled)||void 0===i?void 0:i.call(t))||(null==t?void 0:t.debugMode))&&(n=r.performance))),!0},t.disable=function(){a&&(s.clear(),c.clear(),u.clear(),n=void 0,a=!1)}}(e.performance||(e.performance={}))}(c||(c={})),function(e){var t,r,n={logEvent:e.noop,logErrEvent:e.noop,logPerfEvent:e.noop,logInfoEvent:e.noop,logStartCommand:e.noop,logStopCommand:e.noop,logStartUpdateProgram:e.noop,logStopUpdateProgram:e.noop,logStartUpdateGraph:e.noop,logStopUpdateGraph:e.noop,logStartResolveModule:e.noop,logStopResolveModule:e.noop,logStartParseSourceFile:e.noop,logStopParseSourceFile:e.noop,logStartReadFile:e.noop,logStopReadFile:e.noop,logStartBindFile:e.noop,logStopBindFile:e.noop,logStartScheduledOperation:e.noop,logStopScheduledOperation:e.noop};try{t=es.env.TS_ETW_MODULE_PATH;r=void 0}catch(e){r=void 0}e.perfLogger=r&&r.logEvent?r:n}(c||(c={})),function(e){var t;!function(t){var r,i,a,o,s=0,c=0,u=[],l=[];t.startTracing=function(o,d,_){if(e.Debug.assert(!e.tracing,"Tracing already started"),void 0===r)try{r=hm}catch(e){throw new Error("tracing requires having fs\n(original error: ".concat(e.message||e,")"))}i=o,u.length=0,void 0===a&&(a=e.combinePaths(d,"legend.json")),r.existsSync(d)||r.mkdirSync(d,{recursive:!0});var p="build"===i?".".concat(es.pid,"-").concat(++s):"server"===i?".".concat(es.pid):"",f=e.combinePaths(d,"trace".concat(p,".json")),g=e.combinePaths(d,"types".concat(p,".json"));l.push({configFilePath:_,tracePath:f,typesPath:g}),c=r.openSync(f,"w"),e.tracing=t;var m={cat:"__metadata",ph:"M",ts:1e3*e.timestamp(),pid:1,tid:1};r.writeSync(c,"[\n"+[n({name:"process_name",args:{name:"tsc"}},m),n({name:"thread_name",args:{name:"Main"}},m),n(n({name:"TracingStartedInBrowser"},m),{cat:"disabled-by-default-devtools.timeline"})].map((function(e){return JSON.stringify(e)})).join(",\n"))},t.stopTracing=function(){e.Debug.assert(e.tracing,"Tracing is not in progress"),e.Debug.assert(!!u.length==("server"!==i)),r.writeSync(c,"\n]\n"),r.closeSync(c),e.tracing=void 0,u.length?function(t){var i,a,o,s,c,u,d,_,p,g,m,y,v,h,D,x,b,S,T,C,E,k;e.performance.mark("beginDumpTypes");var A=l[l.length-1].typesPath,F=r.openSync(A,"w"),N=new e.Map;r.writeSync(F,"[");for(var P=t.length,w=0;w0),_(d.length-1,1e3*e.timestamp()),d.length--},t.popAll=function(){for(var t=1e3*e.timestamp(),r=d.length-1;r>=0;r--)_(r,t);d.length=0};function _(e,t){var r=d[e],n=r.phase,i=r.name,a=r.args,o=r.time;r.separateBeginAndEnd?p("E",n,i,a,void 0,t):1e4-o%1e4<=t-o&&p("X",n,i,a,'"dur":'.concat(t-o),o)}function p(t,n,a,o,s,u){void 0===u&&(u=1e3*e.timestamp()),"server"===i&&"checkTypes"===n||(e.performance.mark("beginTracing"),r.writeSync(c,',\n{"pid":1,"tid":1,"ph":"'.concat(t,'","cat":"').concat(n,'","ts":').concat(u,',"name":"').concat(a,'"')),s&&r.writeSync(c,",".concat(s)),o&&r.writeSync(c,',"args":'.concat(JSON.stringify(o))),r.writeSync(c,"}"),e.performance.mark("endTracing"),e.performance.measure("Tracing","beginTracing","endTracing"))}function f(t){var r=e.getSourceFileOfNode(t);return r?{path:r.path,start:n(e.getLineAndCharacterOfPosition(r,t.pos)),end:n(e.getLineAndCharacterOfPosition(r,t.end))}:void 0;function n(e){return{line:e.line+1,character:e.character+1}}}t.dumpLegend=function(){a&&r.writeFileSync(a,JSON.stringify(l))}}(t||(t={})),e.startTracing=t.startTracing,e.dumpTracingLegend=t.dumpLegend}(c||(c={})),function(e){var t,r,n,i,a,o,s,c;!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.HashToken=62]="HashToken",e[e.EqualsToken=63]="EqualsToken",e[e.PlusEqualsToken=64]="PlusEqualsToken",e[e.MinusEqualsToken=65]="MinusEqualsToken",e[e.AsteriskEqualsToken=66]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=68]="SlashEqualsToken",e[e.PercentEqualsToken=69]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=73]="AmpersandEqualsToken",e[e.BarEqualsToken=74]="BarEqualsToken",e[e.BarBarEqualsToken=75]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=78]="CaretEqualsToken",e[e.Identifier=79]="Identifier",e[e.PrivateIdentifier=80]="PrivateIdentifier",e[e.BreakKeyword=81]="BreakKeyword",e[e.CaseKeyword=82]="CaseKeyword",e[e.CatchKeyword=83]="CatchKeyword",e[e.ClassKeyword=84]="ClassKeyword",e[e.ConstKeyword=85]="ConstKeyword",e[e.ContinueKeyword=86]="ContinueKeyword",e[e.DebuggerKeyword=87]="DebuggerKeyword",e[e.DefaultKeyword=88]="DefaultKeyword",e[e.DeleteKeyword=89]="DeleteKeyword",e[e.DoKeyword=90]="DoKeyword",e[e.ElseKeyword=91]="ElseKeyword",e[e.EnumKeyword=92]="EnumKeyword",e[e.ExportKeyword=93]="ExportKeyword",e[e.ExtendsKeyword=94]="ExtendsKeyword",e[e.FalseKeyword=95]="FalseKeyword",e[e.FinallyKeyword=96]="FinallyKeyword",e[e.ForKeyword=97]="ForKeyword",e[e.FunctionKeyword=98]="FunctionKeyword",e[e.IfKeyword=99]="IfKeyword",e[e.ImportKeyword=100]="ImportKeyword",e[e.InKeyword=101]="InKeyword",e[e.InstanceOfKeyword=102]="InstanceOfKeyword",e[e.NewKeyword=103]="NewKeyword",e[e.NullKeyword=104]="NullKeyword",e[e.ReturnKeyword=105]="ReturnKeyword",e[e.SuperKeyword=106]="SuperKeyword",e[e.SwitchKeyword=107]="SwitchKeyword",e[e.ThisKeyword=108]="ThisKeyword",e[e.ThrowKeyword=109]="ThrowKeyword",e[e.TrueKeyword=110]="TrueKeyword",e[e.TryKeyword=111]="TryKeyword",e[e.TypeOfKeyword=112]="TypeOfKeyword",e[e.VarKeyword=113]="VarKeyword",e[e.VoidKeyword=114]="VoidKeyword",e[e.WhileKeyword=115]="WhileKeyword",e[e.WithKeyword=116]="WithKeyword",e[e.ImplementsKeyword=117]="ImplementsKeyword",e[e.InterfaceKeyword=118]="InterfaceKeyword",e[e.LetKeyword=119]="LetKeyword",e[e.PackageKeyword=120]="PackageKeyword",e[e.PrivateKeyword=121]="PrivateKeyword",e[e.ProtectedKeyword=122]="ProtectedKeyword",e[e.PublicKeyword=123]="PublicKeyword",e[e.StaticKeyword=124]="StaticKeyword",e[e.YieldKeyword=125]="YieldKeyword",e[e.AbstractKeyword=126]="AbstractKeyword",e[e.AsKeyword=127]="AsKeyword",e[e.AssertsKeyword=128]="AssertsKeyword",e[e.AssertKeyword=129]="AssertKeyword",e[e.AnyKeyword=130]="AnyKeyword",e[e.AsyncKeyword=131]="AsyncKeyword",e[e.AwaitKeyword=132]="AwaitKeyword",e[e.BooleanKeyword=133]="BooleanKeyword",e[e.ConstructorKeyword=134]="ConstructorKeyword",e[e.DeclareKeyword=135]="DeclareKeyword",e[e.GetKeyword=136]="GetKeyword",e[e.InferKeyword=137]="InferKeyword",e[e.IntrinsicKeyword=138]="IntrinsicKeyword",e[e.IsKeyword=139]="IsKeyword",e[e.KeyOfKeyword=140]="KeyOfKeyword",e[e.ModuleKeyword=141]="ModuleKeyword",e[e.NamespaceKeyword=142]="NamespaceKeyword",e[e.NeverKeyword=143]="NeverKeyword",e[e.ReadonlyKeyword=144]="ReadonlyKeyword",e[e.RequireKeyword=145]="RequireKeyword",e[e.NumberKeyword=146]="NumberKeyword",e[e.ObjectKeyword=147]="ObjectKeyword",e[e.SetKeyword=148]="SetKeyword",e[e.StringKeyword=149]="StringKeyword",e[e.SymbolKeyword=150]="SymbolKeyword",e[e.TypeKeyword=151]="TypeKeyword",e[e.UndefinedKeyword=152]="UndefinedKeyword",e[e.UniqueKeyword=153]="UniqueKeyword",e[e.UnknownKeyword=154]="UnknownKeyword",e[e.FromKeyword=155]="FromKeyword",e[e.GlobalKeyword=156]="GlobalKeyword",e[e.BigIntKeyword=157]="BigIntKeyword",e[e.OverrideKeyword=158]="OverrideKeyword",e[e.OfKeyword=159]="OfKeyword",e[e.QualifiedName=160]="QualifiedName",e[e.ComputedPropertyName=161]="ComputedPropertyName",e[e.TypeParameter=162]="TypeParameter",e[e.Parameter=163]="Parameter",e[e.Decorator=164]="Decorator",e[e.PropertySignature=165]="PropertySignature",e[e.PropertyDeclaration=166]="PropertyDeclaration",e[e.MethodSignature=167]="MethodSignature",e[e.MethodDeclaration=168]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=169]="ClassStaticBlockDeclaration",e[e.Constructor=170]="Constructor",e[e.GetAccessor=171]="GetAccessor",e[e.SetAccessor=172]="SetAccessor",e[e.CallSignature=173]="CallSignature",e[e.ConstructSignature=174]="ConstructSignature",e[e.IndexSignature=175]="IndexSignature",e[e.TypePredicate=176]="TypePredicate",e[e.TypeReference=177]="TypeReference",e[e.FunctionType=178]="FunctionType",e[e.ConstructorType=179]="ConstructorType",e[e.TypeQuery=180]="TypeQuery",e[e.TypeLiteral=181]="TypeLiteral",e[e.ArrayType=182]="ArrayType",e[e.TupleType=183]="TupleType",e[e.OptionalType=184]="OptionalType",e[e.RestType=185]="RestType",e[e.UnionType=186]="UnionType",e[e.IntersectionType=187]="IntersectionType",e[e.ConditionalType=188]="ConditionalType",e[e.InferType=189]="InferType",e[e.ParenthesizedType=190]="ParenthesizedType",e[e.ThisType=191]="ThisType",e[e.TypeOperator=192]="TypeOperator",e[e.IndexedAccessType=193]="IndexedAccessType",e[e.MappedType=194]="MappedType",e[e.LiteralType=195]="LiteralType",e[e.NamedTupleMember=196]="NamedTupleMember",e[e.TemplateLiteralType=197]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=198]="TemplateLiteralTypeSpan",e[e.ImportType=199]="ImportType",e[e.ObjectBindingPattern=200]="ObjectBindingPattern",e[e.ArrayBindingPattern=201]="ArrayBindingPattern",e[e.BindingElement=202]="BindingElement",e[e.ArrayLiteralExpression=203]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=204]="ObjectLiteralExpression",e[e.PropertyAccessExpression=205]="PropertyAccessExpression",e[e.ElementAccessExpression=206]="ElementAccessExpression",e[e.CallExpression=207]="CallExpression",e[e.NewExpression=208]="NewExpression",e[e.TaggedTemplateExpression=209]="TaggedTemplateExpression",e[e.TypeAssertionExpression=210]="TypeAssertionExpression",e[e.ParenthesizedExpression=211]="ParenthesizedExpression",e[e.FunctionExpression=212]="FunctionExpression",e[e.ArrowFunction=213]="ArrowFunction",e[e.DeleteExpression=214]="DeleteExpression",e[e.TypeOfExpression=215]="TypeOfExpression",e[e.VoidExpression=216]="VoidExpression",e[e.AwaitExpression=217]="AwaitExpression",e[e.PrefixUnaryExpression=218]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=219]="PostfixUnaryExpression",e[e.BinaryExpression=220]="BinaryExpression",e[e.ConditionalExpression=221]="ConditionalExpression",e[e.TemplateExpression=222]="TemplateExpression",e[e.YieldExpression=223]="YieldExpression",e[e.SpreadElement=224]="SpreadElement",e[e.ClassExpression=225]="ClassExpression",e[e.OmittedExpression=226]="OmittedExpression",e[e.ExpressionWithTypeArguments=227]="ExpressionWithTypeArguments",e[e.AsExpression=228]="AsExpression",e[e.NonNullExpression=229]="NonNullExpression",e[e.MetaProperty=230]="MetaProperty",e[e.SyntheticExpression=231]="SyntheticExpression",e[e.TemplateSpan=232]="TemplateSpan",e[e.SemicolonClassElement=233]="SemicolonClassElement",e[e.Block=234]="Block",e[e.EmptyStatement=235]="EmptyStatement",e[e.VariableStatement=236]="VariableStatement",e[e.ExpressionStatement=237]="ExpressionStatement",e[e.IfStatement=238]="IfStatement",e[e.DoStatement=239]="DoStatement",e[e.WhileStatement=240]="WhileStatement",e[e.ForStatement=241]="ForStatement",e[e.ForInStatement=242]="ForInStatement",e[e.ForOfStatement=243]="ForOfStatement",e[e.ContinueStatement=244]="ContinueStatement",e[e.BreakStatement=245]="BreakStatement",e[e.ReturnStatement=246]="ReturnStatement",e[e.WithStatement=247]="WithStatement",e[e.SwitchStatement=248]="SwitchStatement",e[e.LabeledStatement=249]="LabeledStatement",e[e.ThrowStatement=250]="ThrowStatement",e[e.TryStatement=251]="TryStatement",e[e.DebuggerStatement=252]="DebuggerStatement",e[e.VariableDeclaration=253]="VariableDeclaration",e[e.VariableDeclarationList=254]="VariableDeclarationList",e[e.FunctionDeclaration=255]="FunctionDeclaration",e[e.ClassDeclaration=256]="ClassDeclaration",e[e.InterfaceDeclaration=257]="InterfaceDeclaration",e[e.TypeAliasDeclaration=258]="TypeAliasDeclaration",e[e.EnumDeclaration=259]="EnumDeclaration",e[e.ModuleDeclaration=260]="ModuleDeclaration",e[e.ModuleBlock=261]="ModuleBlock",e[e.CaseBlock=262]="CaseBlock",e[e.NamespaceExportDeclaration=263]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=264]="ImportEqualsDeclaration",e[e.ImportDeclaration=265]="ImportDeclaration",e[e.ImportClause=266]="ImportClause",e[e.NamespaceImport=267]="NamespaceImport",e[e.NamedImports=268]="NamedImports",e[e.ImportSpecifier=269]="ImportSpecifier",e[e.ExportAssignment=270]="ExportAssignment",e[e.ExportDeclaration=271]="ExportDeclaration",e[e.NamedExports=272]="NamedExports",e[e.NamespaceExport=273]="NamespaceExport",e[e.ExportSpecifier=274]="ExportSpecifier",e[e.MissingDeclaration=275]="MissingDeclaration",e[e.ExternalModuleReference=276]="ExternalModuleReference",e[e.JsxElement=277]="JsxElement",e[e.JsxSelfClosingElement=278]="JsxSelfClosingElement",e[e.JsxOpeningElement=279]="JsxOpeningElement",e[e.JsxClosingElement=280]="JsxClosingElement",e[e.JsxFragment=281]="JsxFragment",e[e.JsxOpeningFragment=282]="JsxOpeningFragment",e[e.JsxClosingFragment=283]="JsxClosingFragment",e[e.JsxAttribute=284]="JsxAttribute",e[e.JsxAttributes=285]="JsxAttributes",e[e.JsxSpreadAttribute=286]="JsxSpreadAttribute",e[e.JsxExpression=287]="JsxExpression",e[e.CaseClause=288]="CaseClause",e[e.DefaultClause=289]="DefaultClause",e[e.HeritageClause=290]="HeritageClause",e[e.CatchClause=291]="CatchClause",e[e.AssertClause=292]="AssertClause",e[e.AssertEntry=293]="AssertEntry",e[e.PropertyAssignment=294]="PropertyAssignment",e[e.ShorthandPropertyAssignment=295]="ShorthandPropertyAssignment",e[e.SpreadAssignment=296]="SpreadAssignment",e[e.EnumMember=297]="EnumMember",e[e.UnparsedPrologue=298]="UnparsedPrologue",e[e.UnparsedPrepend=299]="UnparsedPrepend",e[e.UnparsedText=300]="UnparsedText",e[e.UnparsedInternalText=301]="UnparsedInternalText",e[e.UnparsedSyntheticReference=302]="UnparsedSyntheticReference",e[e.SourceFile=303]="SourceFile",e[e.Bundle=304]="Bundle",e[e.UnparsedSource=305]="UnparsedSource",e[e.InputFiles=306]="InputFiles",e[e.JSDocTypeExpression=307]="JSDocTypeExpression",e[e.JSDocNameReference=308]="JSDocNameReference",e[e.JSDocMemberName=309]="JSDocMemberName",e[e.JSDocAllType=310]="JSDocAllType",e[e.JSDocUnknownType=311]="JSDocUnknownType",e[e.JSDocNullableType=312]="JSDocNullableType",e[e.JSDocNonNullableType=313]="JSDocNonNullableType",e[e.JSDocOptionalType=314]="JSDocOptionalType",e[e.JSDocFunctionType=315]="JSDocFunctionType",e[e.JSDocVariadicType=316]="JSDocVariadicType",e[e.JSDocNamepathType=317]="JSDocNamepathType",e[e.JSDocComment=318]="JSDocComment",e[e.JSDocText=319]="JSDocText",e[e.JSDocTypeLiteral=320]="JSDocTypeLiteral",e[e.JSDocSignature=321]="JSDocSignature",e[e.JSDocLink=322]="JSDocLink",e[e.JSDocLinkCode=323]="JSDocLinkCode",e[e.JSDocLinkPlain=324]="JSDocLinkPlain",e[e.JSDocTag=325]="JSDocTag",e[e.JSDocAugmentsTag=326]="JSDocAugmentsTag",e[e.JSDocImplementsTag=327]="JSDocImplementsTag",e[e.JSDocAuthorTag=328]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=329]="JSDocDeprecatedTag",e[e.JSDocClassTag=330]="JSDocClassTag",e[e.JSDocPublicTag=331]="JSDocPublicTag",e[e.JSDocPrivateTag=332]="JSDocPrivateTag",e[e.JSDocProtectedTag=333]="JSDocProtectedTag",e[e.JSDocReadonlyTag=334]="JSDocReadonlyTag",e[e.JSDocOverrideTag=335]="JSDocOverrideTag",e[e.JSDocCallbackTag=336]="JSDocCallbackTag",e[e.JSDocEnumTag=337]="JSDocEnumTag",e[e.JSDocParameterTag=338]="JSDocParameterTag",e[e.JSDocReturnTag=339]="JSDocReturnTag",e[e.JSDocThisTag=340]="JSDocThisTag",e[e.JSDocTypeTag=341]="JSDocTypeTag",e[e.JSDocTemplateTag=342]="JSDocTemplateTag",e[e.JSDocTypedefTag=343]="JSDocTypedefTag",e[e.JSDocSeeTag=344]="JSDocSeeTag",e[e.JSDocPropertyTag=345]="JSDocPropertyTag",e[e.SyntaxList=346]="SyntaxList",e[e.NotEmittedStatement=347]="NotEmittedStatement",e[e.PartiallyEmittedExpression=348]="PartiallyEmittedExpression",e[e.CommaListExpression=349]="CommaListExpression",e[e.MergeDeclarationMarker=350]="MergeDeclarationMarker",e[e.EndOfDeclarationMarker=351]="EndOfDeclarationMarker",e[e.SyntheticReferenceExpression=352]="SyntheticReferenceExpression",e[e.Count=353]="Count",e[e.FirstAssignment=63]="FirstAssignment",e[e.LastAssignment=78]="LastAssignment",e[e.FirstCompoundAssignment=64]="FirstCompoundAssignment",e[e.LastCompoundAssignment=78]="LastCompoundAssignment",e[e.FirstReservedWord=81]="FirstReservedWord",e[e.LastReservedWord=116]="LastReservedWord",e[e.FirstKeyword=81]="FirstKeyword",e[e.LastKeyword=159]="LastKeyword",e[e.FirstFutureReservedWord=117]="FirstFutureReservedWord",e[e.LastFutureReservedWord=125]="LastFutureReservedWord",e[e.FirstTypeNode=176]="FirstTypeNode",e[e.LastTypeNode=199]="LastTypeNode",e[e.FirstPunctuation=18]="FirstPunctuation",e[e.LastPunctuation=78]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=159]="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=78]="LastBinaryOperator",e[e.FirstStatement=236]="FirstStatement",e[e.LastStatement=252]="LastStatement",e[e.FirstNode=160]="FirstNode",e[e.FirstJSDocNode=307]="FirstJSDocNode",e[e.LastJSDocNode=345]="LastJSDocNode",e[e.FirstJSDocTagNode=325]="FirstJSDocTagNode",e[e.LastJSDocTagNode=345]="LastJSDocTagNode",e[e.FirstContextualKeyword=126]="FirstContextualKeyword",e[e.LastContextualKeyword=159]="LastContextualKeyword"}(e.SyntaxKind||(e.SyntaxKind={})),(t=e.NodeFlags||(e.NodeFlags={}))[t.None=0]="None",t[t.Let=1]="Let",t[t.Const=2]="Const",t[t.NestedNamespace=4]="NestedNamespace",t[t.Synthesized=8]="Synthesized",t[t.Namespace=16]="Namespace",t[t.OptionalChain=32]="OptionalChain",t[t.ExportContext=64]="ExportContext",t[t.ContainsThis=128]="ContainsThis",t[t.HasImplicitReturn=256]="HasImplicitReturn",t[t.HasExplicitReturn=512]="HasExplicitReturn",t[t.GlobalAugmentation=1024]="GlobalAugmentation",t[t.HasAsyncFunctions=2048]="HasAsyncFunctions",t[t.DisallowInContext=4096]="DisallowInContext",t[t.YieldContext=8192]="YieldContext",t[t.DecoratorContext=16384]="DecoratorContext",t[t.AwaitContext=32768]="AwaitContext",t[t.ThisNodeHasError=65536]="ThisNodeHasError",t[t.JavaScriptFile=131072]="JavaScriptFile",t[t.ThisNodeOrAnySubNodesHasError=262144]="ThisNodeOrAnySubNodesHasError",t[t.HasAggregatedChildData=524288]="HasAggregatedChildData",t[t.PossiblyContainsDynamicImport=1048576]="PossiblyContainsDynamicImport",t[t.PossiblyContainsImportMeta=2097152]="PossiblyContainsImportMeta",t[t.JSDoc=4194304]="JSDoc",t[t.Ambient=8388608]="Ambient",t[t.InWithStatement=16777216]="InWithStatement",t[t.JsonFile=33554432]="JsonFile",t[t.TypeCached=67108864]="TypeCached",t[t.Deprecated=134217728]="Deprecated",t[t.BlockScoped=3]="BlockScoped",t[t.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",t[t.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",t[t.ContextFlags=25358336]="ContextFlags",t[t.TypeExcludesFlags=40960]="TypeExcludesFlags",t[t.PermanentlySetIncrementalFlags=3145728]="PermanentlySetIncrementalFlags",(r=e.ModifierFlags||(e.ModifierFlags={}))[r.None=0]="None",r[r.Export=1]="Export",r[r.Ambient=2]="Ambient",r[r.Public=4]="Public",r[r.Private=8]="Private",r[r.Protected=16]="Protected",r[r.Static=32]="Static",r[r.Readonly=64]="Readonly",r[r.Abstract=128]="Abstract",r[r.Async=256]="Async",r[r.Default=512]="Default",r[r.Const=2048]="Const",r[r.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",r[r.Deprecated=8192]="Deprecated",r[r.Override=16384]="Override",r[r.HasComputedFlags=536870912]="HasComputedFlags",r[r.AccessibilityModifier=28]="AccessibilityModifier",r[r.ParameterPropertyModifier=16476]="ParameterPropertyModifier",r[r.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",r[r.TypeScriptModifier=18654]="TypeScriptModifier",r[r.ExportDefault=513]="ExportDefault",r[r.All=27647]="All",(n=e.JsxFlags||(e.JsxFlags={}))[n.None=0]="None",n[n.IntrinsicNamedElement=1]="IntrinsicNamedElement",n[n.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",n[n.IntrinsicElement=3]="IntrinsicElement",(i=e.RelationComparisonResult||(e.RelationComparisonResult={}))[i.Succeeded=1]="Succeeded",i[i.Failed=2]="Failed",i[i.Reported=4]="Reported",i[i.ReportsUnmeasurable=8]="ReportsUnmeasurable",i[i.ReportsUnreliable=16]="ReportsUnreliable",i[i.ReportsMask=24]="ReportsMask",(a=e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={}))[a.None=0]="None",a[a.Auto=1]="Auto",a[a.Loop=2]="Loop",a[a.Unique=3]="Unique",a[a.Node=4]="Node",a[a.KindMask=7]="KindMask",a[a.ReservedInNestedScopes=8]="ReservedInNestedScopes",a[a.Optimistic=16]="Optimistic",a[a.FileLevel=32]="FileLevel",a[a.AllowNameSubstitution=64]="AllowNameSubstitution",(o=e.TokenFlags||(e.TokenFlags={}))[o.None=0]="None",o[o.PrecedingLineBreak=1]="PrecedingLineBreak",o[o.PrecedingJSDocComment=2]="PrecedingJSDocComment",o[o.Unterminated=4]="Unterminated",o[o.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",o[o.Scientific=16]="Scientific",o[o.Octal=32]="Octal",o[o.HexSpecifier=64]="HexSpecifier",o[o.BinarySpecifier=128]="BinarySpecifier",o[o.OctalSpecifier=256]="OctalSpecifier",o[o.ContainsSeparator=512]="ContainsSeparator",o[o.UnicodeEscape=1024]="UnicodeEscape",o[o.ContainsInvalidEscape=2048]="ContainsInvalidEscape",o[o.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",o[o.NumericLiteralFlags=1008]="NumericLiteralFlags",o[o.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags",(s=e.FlowFlags||(e.FlowFlags={}))[s.Unreachable=1]="Unreachable",s[s.Start=2]="Start",s[s.BranchLabel=4]="BranchLabel",s[s.LoopLabel=8]="LoopLabel",s[s.Assignment=16]="Assignment",s[s.TrueCondition=32]="TrueCondition",s[s.FalseCondition=64]="FalseCondition",s[s.SwitchClause=128]="SwitchClause",s[s.ArrayMutation=256]="ArrayMutation",s[s.Call=512]="Call",s[s.ReduceLabel=1024]="ReduceLabel",s[s.Referenced=2048]="Referenced",s[s.Shared=4096]="Shared",s[s.Label=12]="Label",s[s.Condition=96]="Condition",(c=e.CommentDirectiveType||(e.CommentDirectiveType={}))[c.ExpectError=0]="ExpectError",c[c.Ignore=1]="Ignore";var u,l,d,_,p,f,g,m,y,v,h,D,x,b,S,T,C,E,k,A,F,N,P,w,I,O,M,L,R,B,j,J,K,z,U,V,q,W,H,G,Y,X,Q,$,Z,ee,te,re,ne,ie,ae,oe,se,ce,ue,le,de,_e,pe=function(){};e.OperationCanceledException=pe,(u=e.FileIncludeKind||(e.FileIncludeKind={}))[u.RootFile=0]="RootFile",u[u.SourceFromProjectReference=1]="SourceFromProjectReference",u[u.OutputFromProjectReference=2]="OutputFromProjectReference",u[u.Import=3]="Import",u[u.ReferenceFile=4]="ReferenceFile",u[u.TypeReferenceDirective=5]="TypeReferenceDirective",u[u.LibFile=6]="LibFile",u[u.LibReferenceDirective=7]="LibReferenceDirective",u[u.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",(l=e.FilePreprocessingDiagnosticsKind||(e.FilePreprocessingDiagnosticsKind={}))[l.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",l[l.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",(d=e.StructureIsReused||(e.StructureIsReused={}))[d.Not=0]="Not",d[d.SafeModules=1]="SafeModules",d[d.Completely=2]="Completely",(_=e.ExitStatus||(e.ExitStatus={}))[_.Success=0]="Success",_[_.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",_[_.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",_[_.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",_[_.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",_[_.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped",(p=e.MemberOverrideStatus||(e.MemberOverrideStatus={}))[p.Ok=0]="Ok",p[p.NeedsOverride=1]="NeedsOverride",p[p.HasInvalidOverride=2]="HasInvalidOverride",(f=e.UnionReduction||(e.UnionReduction={}))[f.None=0]="None",f[f.Literal=1]="Literal",f[f.Subtype=2]="Subtype",(g=e.ContextFlags||(e.ContextFlags={}))[g.None=0]="None",g[g.Signature=1]="Signature",g[g.NoConstraints=2]="NoConstraints",g[g.Completions=4]="Completions",g[g.SkipBindingPatterns=8]="SkipBindingPatterns",(m=e.NodeBuilderFlags||(e.NodeBuilderFlags={}))[m.None=0]="None",m[m.NoTruncation=1]="NoTruncation",m[m.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",m[m.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",m[m.UseStructuralFallback=8]="UseStructuralFallback",m[m.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",m[m.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",m[m.UseFullyQualifiedType=64]="UseFullyQualifiedType",m[m.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",m[m.SuppressAnyReturnType=256]="SuppressAnyReturnType",m[m.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",m[m.MultilineObjectLiterals=1024]="MultilineObjectLiterals",m[m.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",m[m.UseTypeOfFunction=4096]="UseTypeOfFunction",m[m.OmitParameterModifiers=8192]="OmitParameterModifiers",m[m.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",m[m.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",m[m.NoTypeReduction=536870912]="NoTypeReduction",m[m.NoUndefinedOptionalParameterType=1073741824]="NoUndefinedOptionalParameterType",m[m.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",m[m.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",m[m.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",m[m.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",m[m.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",m[m.AllowEmptyTuple=524288]="AllowEmptyTuple",m[m.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",m[m.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",m[m.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",m[m.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",m[m.IgnoreErrors=70221824]="IgnoreErrors",m[m.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",m[m.InTypeAlias=8388608]="InTypeAlias",m[m.InInitialEntityName=16777216]="InInitialEntityName",(y=e.TypeFormatFlags||(e.TypeFormatFlags={}))[y.None=0]="None",y[y.NoTruncation=1]="NoTruncation",y[y.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",y[y.UseStructuralFallback=8]="UseStructuralFallback",y[y.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",y[y.UseFullyQualifiedType=64]="UseFullyQualifiedType",y[y.SuppressAnyReturnType=256]="SuppressAnyReturnType",y[y.MultilineObjectLiterals=1024]="MultilineObjectLiterals",y[y.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",y[y.UseTypeOfFunction=4096]="UseTypeOfFunction",y[y.OmitParameterModifiers=8192]="OmitParameterModifiers",y[y.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",y[y.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",y[y.NoTypeReduction=536870912]="NoTypeReduction",y[y.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",y[y.AddUndefined=131072]="AddUndefined",y[y.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",y[y.InArrayType=524288]="InArrayType",y[y.InElementType=2097152]="InElementType",y[y.InFirstTypeArgument=4194304]="InFirstTypeArgument",y[y.InTypeAlias=8388608]="InTypeAlias",y[y.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",y[y.NodeBuilderFlagsMask=814775659]="NodeBuilderFlagsMask",(v=e.SymbolFormatFlags||(e.SymbolFormatFlags={}))[v.None=0]="None",v[v.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",v[v.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",v[v.AllowAnyNodeKind=4]="AllowAnyNodeKind",v[v.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",v[v.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain",(h=e.SymbolAccessibility||(e.SymbolAccessibility={}))[h.Accessible=0]="Accessible",h[h.NotAccessible=1]="NotAccessible",h[h.CannotBeNamed=2]="CannotBeNamed",(D=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}))[D.UnionOrIntersection=0]="UnionOrIntersection",D[D.Spread=1]="Spread",(x=e.TypePredicateKind||(e.TypePredicateKind={}))[x.This=0]="This",x[x.Identifier=1]="Identifier",x[x.AssertsThis=2]="AssertsThis",x[x.AssertsIdentifier=3]="AssertsIdentifier",(b=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}))[b.Unknown=0]="Unknown",b[b.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",b[b.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",b[b.NumberLikeType=3]="NumberLikeType",b[b.BigIntLikeType=4]="BigIntLikeType",b[b.StringLikeType=5]="StringLikeType",b[b.BooleanType=6]="BooleanType",b[b.ArrayLikeType=7]="ArrayLikeType",b[b.ESSymbolType=8]="ESSymbolType",b[b.Promise=9]="Promise",b[b.TypeWithCallSignature=10]="TypeWithCallSignature",b[b.ObjectType=11]="ObjectType",(S=e.SymbolFlags||(e.SymbolFlags={}))[S.None=0]="None",S[S.FunctionScopedVariable=1]="FunctionScopedVariable",S[S.BlockScopedVariable=2]="BlockScopedVariable",S[S.Property=4]="Property",S[S.EnumMember=8]="EnumMember",S[S.Function=16]="Function",S[S.Class=32]="Class",S[S.Interface=64]="Interface",S[S.ConstEnum=128]="ConstEnum",S[S.RegularEnum=256]="RegularEnum",S[S.ValueModule=512]="ValueModule",S[S.NamespaceModule=1024]="NamespaceModule",S[S.TypeLiteral=2048]="TypeLiteral",S[S.ObjectLiteral=4096]="ObjectLiteral",S[S.Method=8192]="Method",S[S.Constructor=16384]="Constructor",S[S.GetAccessor=32768]="GetAccessor",S[S.SetAccessor=65536]="SetAccessor",S[S.Signature=131072]="Signature",S[S.TypeParameter=262144]="TypeParameter",S[S.TypeAlias=524288]="TypeAlias",S[S.ExportValue=1048576]="ExportValue",S[S.Alias=2097152]="Alias",S[S.Prototype=4194304]="Prototype",S[S.ExportStar=8388608]="ExportStar",S[S.Optional=16777216]="Optional",S[S.Transient=33554432]="Transient",S[S.Assignment=67108864]="Assignment",S[S.ModuleExports=134217728]="ModuleExports",S[S.All=67108863]="All",S[S.Enum=384]="Enum",S[S.Variable=3]="Variable",S[S.Value=111551]="Value",S[S.Type=788968]="Type",S[S.Namespace=1920]="Namespace",S[S.Module=1536]="Module",S[S.Accessor=98304]="Accessor",S[S.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",S[S.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",S[S.ParameterExcludes=111551]="ParameterExcludes",S[S.PropertyExcludes=0]="PropertyExcludes",S[S.EnumMemberExcludes=900095]="EnumMemberExcludes",S[S.FunctionExcludes=110991]="FunctionExcludes",S[S.ClassExcludes=899503]="ClassExcludes",S[S.InterfaceExcludes=788872]="InterfaceExcludes",S[S.RegularEnumExcludes=899327]="RegularEnumExcludes",S[S.ConstEnumExcludes=899967]="ConstEnumExcludes",S[S.ValueModuleExcludes=110735]="ValueModuleExcludes",S[S.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",S[S.MethodExcludes=103359]="MethodExcludes",S[S.GetAccessorExcludes=46015]="GetAccessorExcludes",S[S.SetAccessorExcludes=78783]="SetAccessorExcludes",S[S.TypeParameterExcludes=526824]="TypeParameterExcludes",S[S.TypeAliasExcludes=788968]="TypeAliasExcludes",S[S.AliasExcludes=2097152]="AliasExcludes",S[S.ModuleMember=2623475]="ModuleMember",S[S.ExportHasLocal=944]="ExportHasLocal",S[S.BlockScoped=418]="BlockScoped",S[S.PropertyOrAccessor=98308]="PropertyOrAccessor",S[S.ClassMember=106500]="ClassMember",S[S.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",S[S.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",S[S.Classifiable=2885600]="Classifiable",S[S.LateBindingContainer=6256]="LateBindingContainer",(T=e.EnumKind||(e.EnumKind={}))[T.Numeric=0]="Numeric",T[T.Literal=1]="Literal",(C=e.CheckFlags||(e.CheckFlags={}))[C.Instantiated=1]="Instantiated",C[C.SyntheticProperty=2]="SyntheticProperty",C[C.SyntheticMethod=4]="SyntheticMethod",C[C.Readonly=8]="Readonly",C[C.ReadPartial=16]="ReadPartial",C[C.WritePartial=32]="WritePartial",C[C.HasNonUniformType=64]="HasNonUniformType",C[C.HasLiteralType=128]="HasLiteralType",C[C.ContainsPublic=256]="ContainsPublic",C[C.ContainsProtected=512]="ContainsProtected",C[C.ContainsPrivate=1024]="ContainsPrivate",C[C.ContainsStatic=2048]="ContainsStatic",C[C.Late=4096]="Late",C[C.ReverseMapped=8192]="ReverseMapped",C[C.OptionalParameter=16384]="OptionalParameter",C[C.RestParameter=32768]="RestParameter",C[C.DeferredType=65536]="DeferredType",C[C.HasNeverType=131072]="HasNeverType",C[C.Mapped=262144]="Mapped",C[C.StripOptional=524288]="StripOptional",C[C.Unresolved=1048576]="Unresolved",C[C.Synthetic=6]="Synthetic",C[C.Discriminant=192]="Discriminant",C[C.Partial=48]="Partial",(E=e.InternalSymbolName||(e.InternalSymbolName={})).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",(k=e.NodeCheckFlags||(e.NodeCheckFlags={}))[k.TypeChecked=1]="TypeChecked",k[k.LexicalThis=2]="LexicalThis",k[k.CaptureThis=4]="CaptureThis",k[k.CaptureNewTarget=8]="CaptureNewTarget",k[k.SuperInstance=256]="SuperInstance",k[k.SuperStatic=512]="SuperStatic",k[k.ContextChecked=1024]="ContextChecked",k[k.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",k[k.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",k[k.CaptureArguments=8192]="CaptureArguments",k[k.EnumValuesComputed=16384]="EnumValuesComputed",k[k.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",k[k.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",k[k.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",k[k.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",k[k.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",k[k.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",k[k.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",k[k.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",k[k.AssignmentsMarked=8388608]="AssignmentsMarked",k[k.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",k[k.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",k[k.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers",k[k.ContainsSuperPropertyInStaticInitializer=134217728]="ContainsSuperPropertyInStaticInitializer",(A=e.TypeFlags||(e.TypeFlags={}))[A.Any=1]="Any",A[A.Unknown=2]="Unknown",A[A.String=4]="String",A[A.Number=8]="Number",A[A.Boolean=16]="Boolean",A[A.Enum=32]="Enum",A[A.BigInt=64]="BigInt",A[A.StringLiteral=128]="StringLiteral",A[A.NumberLiteral=256]="NumberLiteral",A[A.BooleanLiteral=512]="BooleanLiteral",A[A.EnumLiteral=1024]="EnumLiteral",A[A.BigIntLiteral=2048]="BigIntLiteral",A[A.ESSymbol=4096]="ESSymbol",A[A.UniqueESSymbol=8192]="UniqueESSymbol",A[A.Void=16384]="Void",A[A.Undefined=32768]="Undefined",A[A.Null=65536]="Null",A[A.Never=131072]="Never",A[A.TypeParameter=262144]="TypeParameter",A[A.Object=524288]="Object",A[A.Union=1048576]="Union",A[A.Intersection=2097152]="Intersection",A[A.Index=4194304]="Index",A[A.IndexedAccess=8388608]="IndexedAccess",A[A.Conditional=16777216]="Conditional",A[A.Substitution=33554432]="Substitution",A[A.NonPrimitive=67108864]="NonPrimitive",A[A.TemplateLiteral=134217728]="TemplateLiteral",A[A.StringMapping=268435456]="StringMapping",A[A.AnyOrUnknown=3]="AnyOrUnknown",A[A.Nullable=98304]="Nullable",A[A.Literal=2944]="Literal",A[A.Unit=109440]="Unit",A[A.StringOrNumberLiteral=384]="StringOrNumberLiteral",A[A.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",A[A.DefinitelyFalsy=117632]="DefinitelyFalsy",A[A.PossiblyFalsy=117724]="PossiblyFalsy",A[A.Intrinsic=67359327]="Intrinsic",A[A.Primitive=131068]="Primitive",A[A.StringLike=402653316]="StringLike",A[A.NumberLike=296]="NumberLike",A[A.BigIntLike=2112]="BigIntLike",A[A.BooleanLike=528]="BooleanLike",A[A.EnumLike=1056]="EnumLike",A[A.ESSymbolLike=12288]="ESSymbolLike",A[A.VoidLike=49152]="VoidLike",A[A.DisjointDomains=469892092]="DisjointDomains",A[A.UnionOrIntersection=3145728]="UnionOrIntersection",A[A.StructuredType=3670016]="StructuredType",A[A.TypeVariable=8650752]="TypeVariable",A[A.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",A[A.InstantiablePrimitive=406847488]="InstantiablePrimitive",A[A.Instantiable=465829888]="Instantiable",A[A.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",A[A.ObjectFlagsType=3899393]="ObjectFlagsType",A[A.Simplifiable=25165824]="Simplifiable",A[A.Singleton=67358815]="Singleton",A[A.Narrowable=536624127]="Narrowable",A[A.IncludesMask=205258751]="IncludesMask",A[A.IncludesMissingType=262144]="IncludesMissingType",A[A.IncludesNonWideningType=4194304]="IncludesNonWideningType",A[A.IncludesWildcard=8388608]="IncludesWildcard",A[A.IncludesEmptyObject=16777216]="IncludesEmptyObject",A[A.IncludesInstantiable=33554432]="IncludesInstantiable",A[A.NotPrimitiveUnion=36323363]="NotPrimitiveUnion",(F=e.ObjectFlags||(e.ObjectFlags={}))[F.Class=1]="Class",F[F.Interface=2]="Interface",F[F.Reference=4]="Reference",F[F.Tuple=8]="Tuple",F[F.Anonymous=16]="Anonymous",F[F.Mapped=32]="Mapped",F[F.Instantiated=64]="Instantiated",F[F.ObjectLiteral=128]="ObjectLiteral",F[F.EvolvingArray=256]="EvolvingArray",F[F.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",F[F.ReverseMapped=1024]="ReverseMapped",F[F.JsxAttributes=2048]="JsxAttributes",F[F.MarkerType=4096]="MarkerType",F[F.JSLiteral=8192]="JSLiteral",F[F.FreshLiteral=16384]="FreshLiteral",F[F.ArrayLiteral=32768]="ArrayLiteral",F[F.PrimitiveUnion=65536]="PrimitiveUnion",F[F.ContainsWideningType=131072]="ContainsWideningType",F[F.ContainsObjectOrArrayLiteral=262144]="ContainsObjectOrArrayLiteral",F[F.NonInferrableType=524288]="NonInferrableType",F[F.CouldContainTypeVariablesComputed=1048576]="CouldContainTypeVariablesComputed",F[F.CouldContainTypeVariables=2097152]="CouldContainTypeVariables",F[F.ClassOrInterface=3]="ClassOrInterface",F[F.RequiresWidening=393216]="RequiresWidening",F[F.PropagatingFlags=917504]="PropagatingFlags",F[F.ObjectTypeKindMask=1343]="ObjectTypeKindMask",F[F.ContainsSpread=4194304]="ContainsSpread",F[F.ObjectRestType=8388608]="ObjectRestType",F[F.IsClassInstanceClone=16777216]="IsClassInstanceClone",F[F.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",F[F.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",F[F.IsGenericTypeComputed=4194304]="IsGenericTypeComputed",F[F.IsGenericObjectType=8388608]="IsGenericObjectType",F[F.IsGenericIndexType=16777216]="IsGenericIndexType",F[F.IsGenericType=25165824]="IsGenericType",F[F.ContainsIntersections=33554432]="ContainsIntersections",F[F.IsNeverIntersectionComputed=33554432]="IsNeverIntersectionComputed",F[F.IsNeverIntersection=67108864]="IsNeverIntersection",(N=e.VarianceFlags||(e.VarianceFlags={}))[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.ElementFlags||(e.ElementFlags={}))[P.Required=1]="Required",P[P.Optional=2]="Optional",P[P.Rest=4]="Rest",P[P.Variadic=8]="Variadic",P[P.Fixed=3]="Fixed",P[P.Variable=12]="Variable",P[P.NonRequired=14]="NonRequired",P[P.NonRest=11]="NonRest",(w=e.AccessFlags||(e.AccessFlags={}))[w.None=0]="None",w[w.IncludeUndefined=1]="IncludeUndefined",w[w.NoIndexSignatures=2]="NoIndexSignatures",w[w.Writing=4]="Writing",w[w.CacheSymbol=8]="CacheSymbol",w[w.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",w[w.ExpressionPosition=32]="ExpressionPosition",w[w.ReportDeprecated=64]="ReportDeprecated",w[w.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",w[w.Contextual=256]="Contextual",w[w.Persistent=1]="Persistent",(I=e.JsxReferenceKind||(e.JsxReferenceKind={}))[I.Component=0]="Component",I[I.Function=1]="Function",I[I.Mixed=2]="Mixed",(O=e.SignatureKind||(e.SignatureKind={}))[O.Call=0]="Call",O[O.Construct=1]="Construct",(M=e.SignatureFlags||(e.SignatureFlags={}))[M.None=0]="None",M[M.HasRestParameter=1]="HasRestParameter",M[M.HasLiteralTypes=2]="HasLiteralTypes",M[M.Abstract=4]="Abstract",M[M.IsInnerCallChain=8]="IsInnerCallChain",M[M.IsOuterCallChain=16]="IsOuterCallChain",M[M.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",M[M.PropagatingFlags=39]="PropagatingFlags",M[M.CallChainFlags=24]="CallChainFlags",(L=e.IndexKind||(e.IndexKind={}))[L.String=0]="String",L[L.Number=1]="Number",(R=e.TypeMapKind||(e.TypeMapKind={}))[R.Simple=0]="Simple",R[R.Array=1]="Array",R[R.Function=2]="Function",R[R.Composite=3]="Composite",R[R.Merged=4]="Merged",(B=e.InferencePriority||(e.InferencePriority={}))[B.NakedTypeVariable=1]="NakedTypeVariable",B[B.SpeculativeTuple=2]="SpeculativeTuple",B[B.SubstituteSource=4]="SubstituteSource",B[B.HomomorphicMappedType=8]="HomomorphicMappedType",B[B.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",B[B.MappedTypeConstraint=32]="MappedTypeConstraint",B[B.ContravariantConditional=64]="ContravariantConditional",B[B.ReturnType=128]="ReturnType",B[B.LiteralKeyof=256]="LiteralKeyof",B[B.NoConstraints=512]="NoConstraints",B[B.AlwaysStrict=1024]="AlwaysStrict",B[B.MaxValue=2048]="MaxValue",B[B.PriorityImpliesCombination=416]="PriorityImpliesCombination",B[B.Circularity=-1]="Circularity",(j=e.InferenceFlags||(e.InferenceFlags={}))[j.None=0]="None",j[j.NoDefault=1]="NoDefault",j[j.AnyDefault=2]="AnyDefault",j[j.SkippedGenericFunction=4]="SkippedGenericFunction",(J=e.Ternary||(e.Ternary={}))[J.False=0]="False",J[J.Unknown=1]="Unknown",J[J.Maybe=3]="Maybe",J[J.True=-1]="True",(K=e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}))[K.None=0]="None",K[K.ExportsProperty=1]="ExportsProperty",K[K.ModuleExports=2]="ModuleExports",K[K.PrototypeProperty=3]="PrototypeProperty",K[K.ThisProperty=4]="ThisProperty",K[K.Property=5]="Property",K[K.Prototype=6]="Prototype",K[K.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",K[K.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",K[K.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",function(e){e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message"}(z=e.DiagnosticCategory||(e.DiagnosticCategory={})),e.diagnosticCategoryName=function(e,t){void 0===t&&(t=!0);var r=z[e.category];return t?r.toLowerCase():r},(U=e.ModuleResolutionKind||(e.ModuleResolutionKind={}))[U.Classic=1]="Classic",U[U.NodeJs=2]="NodeJs",U[U.Node12=3]="Node12",U[U.NodeNext=99]="NodeNext",(V=e.WatchFileKind||(e.WatchFileKind={}))[V.FixedPollingInterval=0]="FixedPollingInterval",V[V.PriorityPollingInterval=1]="PriorityPollingInterval",V[V.DynamicPriorityPolling=2]="DynamicPriorityPolling",V[V.FixedChunkSizePolling=3]="FixedChunkSizePolling",V[V.UseFsEvents=4]="UseFsEvents",V[V.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",(q=e.WatchDirectoryKind||(e.WatchDirectoryKind={}))[q.UseFsEvents=0]="UseFsEvents",q[q.FixedPollingInterval=1]="FixedPollingInterval",q[q.DynamicPriorityPolling=2]="DynamicPriorityPolling",q[q.FixedChunkSizePolling=3]="FixedChunkSizePolling",(W=e.PollingWatchKind||(e.PollingWatchKind={}))[W.FixedInterval=0]="FixedInterval",W[W.PriorityInterval=1]="PriorityInterval",W[W.DynamicPriority=2]="DynamicPriority",W[W.FixedChunkSize=3]="FixedChunkSize",(H=e.ModuleKind||(e.ModuleKind={}))[H.None=0]="None",H[H.CommonJS=1]="CommonJS",H[H.AMD=2]="AMD",H[H.UMD=3]="UMD",H[H.System=4]="System",H[H.ES2015=5]="ES2015",H[H.ES2020=6]="ES2020",H[H.ES2022=7]="ES2022",H[H.ESNext=99]="ESNext",H[H.Node12=100]="Node12",H[H.NodeNext=199]="NodeNext",(G=e.JsxEmit||(e.JsxEmit={}))[G.None=0]="None",G[G.Preserve=1]="Preserve",G[G.React=2]="React",G[G.ReactNative=3]="ReactNative",G[G.ReactJSX=4]="ReactJSX",G[G.ReactJSXDev=5]="ReactJSXDev",(Y=e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={}))[Y.Remove=0]="Remove",Y[Y.Preserve=1]="Preserve",Y[Y.Error=2]="Error",(X=e.NewLineKind||(e.NewLineKind={}))[X.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",X[X.LineFeed=1]="LineFeed",(Q=e.ScriptKind||(e.ScriptKind={}))[Q.Unknown=0]="Unknown",Q[Q.JS=1]="JS",Q[Q.JSX=2]="JSX",Q[Q.TS=3]="TS",Q[Q.TSX=4]="TSX",Q[Q.External=5]="External",Q[Q.JSON=6]="JSON",Q[Q.Deferred=7]="Deferred",($=e.ScriptTarget||(e.ScriptTarget={}))[$.ES3=0]="ES3",$[$.ES5=1]="ES5",$[$.ES2015=2]="ES2015",$[$.ES2016=3]="ES2016",$[$.ES2017=4]="ES2017",$[$.ES2018=5]="ES2018",$[$.ES2019=6]="ES2019",$[$.ES2020=7]="ES2020",$[$.ES2021=8]="ES2021",$[$.ESNext=99]="ESNext",$[$.JSON=100]="JSON",$[$.Latest=99]="Latest",(Z=e.LanguageVariant||(e.LanguageVariant={}))[Z.Standard=0]="Standard",Z[Z.JSX=1]="JSX",(ee=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}))[ee.None=0]="None",ee[ee.Recursive=1]="Recursive",(te=e.CharacterCodes||(e.CharacterCodes={}))[te.nullCharacter=0]="nullCharacter",te[te.maxAsciiCharacter=127]="maxAsciiCharacter",te[te.lineFeed=10]="lineFeed",te[te.carriageReturn=13]="carriageReturn",te[te.lineSeparator=8232]="lineSeparator",te[te.paragraphSeparator=8233]="paragraphSeparator",te[te.nextLine=133]="nextLine",te[te.space=32]="space",te[te.nonBreakingSpace=160]="nonBreakingSpace",te[te.enQuad=8192]="enQuad",te[te.emQuad=8193]="emQuad",te[te.enSpace=8194]="enSpace",te[te.emSpace=8195]="emSpace",te[te.threePerEmSpace=8196]="threePerEmSpace",te[te.fourPerEmSpace=8197]="fourPerEmSpace",te[te.sixPerEmSpace=8198]="sixPerEmSpace",te[te.figureSpace=8199]="figureSpace",te[te.punctuationSpace=8200]="punctuationSpace",te[te.thinSpace=8201]="thinSpace",te[te.hairSpace=8202]="hairSpace",te[te.zeroWidthSpace=8203]="zeroWidthSpace",te[te.narrowNoBreakSpace=8239]="narrowNoBreakSpace",te[te.ideographicSpace=12288]="ideographicSpace",te[te.mathematicalSpace=8287]="mathematicalSpace",te[te.ogham=5760]="ogham",te[te._=95]="_",te[te.$=36]="$",te[te._0=48]="_0",te[te._1=49]="_1",te[te._2=50]="_2",te[te._3=51]="_3",te[te._4=52]="_4",te[te._5=53]="_5",te[te._6=54]="_6",te[te._7=55]="_7",te[te._8=56]="_8",te[te._9=57]="_9",te[te.a=97]="a",te[te.b=98]="b",te[te.c=99]="c",te[te.d=100]="d",te[te.e=101]="e",te[te.f=102]="f",te[te.g=103]="g",te[te.h=104]="h",te[te.i=105]="i",te[te.j=106]="j",te[te.k=107]="k",te[te.l=108]="l",te[te.m=109]="m",te[te.n=110]="n",te[te.o=111]="o",te[te.p=112]="p",te[te.q=113]="q",te[te.r=114]="r",te[te.s=115]="s",te[te.t=116]="t",te[te.u=117]="u",te[te.v=118]="v",te[te.w=119]="w",te[te.x=120]="x",te[te.y=121]="y",te[te.z=122]="z",te[te.A=65]="A",te[te.B=66]="B",te[te.C=67]="C",te[te.D=68]="D",te[te.E=69]="E",te[te.F=70]="F",te[te.G=71]="G",te[te.H=72]="H",te[te.I=73]="I",te[te.J=74]="J",te[te.K=75]="K",te[te.L=76]="L",te[te.M=77]="M",te[te.N=78]="N",te[te.O=79]="O",te[te.P=80]="P",te[te.Q=81]="Q",te[te.R=82]="R",te[te.S=83]="S",te[te.T=84]="T",te[te.U=85]="U",te[te.V=86]="V",te[te.W=87]="W",te[te.X=88]="X",te[te.Y=89]="Y",te[te.Z=90]="Z",te[te.ampersand=38]="ampersand",te[te.asterisk=42]="asterisk",te[te.at=64]="at",te[te.backslash=92]="backslash",te[te.backtick=96]="backtick",te[te.bar=124]="bar",te[te.caret=94]="caret",te[te.closeBrace=125]="closeBrace",te[te.closeBracket=93]="closeBracket",te[te.closeParen=41]="closeParen",te[te.colon=58]="colon",te[te.comma=44]="comma",te[te.dot=46]="dot",te[te.doubleQuote=34]="doubleQuote",te[te.equals=61]="equals",te[te.exclamation=33]="exclamation",te[te.greaterThan=62]="greaterThan",te[te.hash=35]="hash",te[te.lessThan=60]="lessThan",te[te.minus=45]="minus",te[te.openBrace=123]="openBrace",te[te.openBracket=91]="openBracket",te[te.openParen=40]="openParen",te[te.percent=37]="percent",te[te.plus=43]="plus",te[te.question=63]="question",te[te.semicolon=59]="semicolon",te[te.singleQuote=39]="singleQuote",te[te.slash=47]="slash",te[te.tilde=126]="tilde",te[te.backspace=8]="backspace",te[te.formFeed=12]="formFeed",te[te.byteOrderMark=65279]="byteOrderMark",te[te.tab=9]="tab",te[te.verticalTab=11]="verticalTab",(re=e.Extension||(e.Extension={})).Ts=".ts",re.Tsx=".tsx",re.Dts=".d.ts",re.Js=".js",re.Jsx=".jsx",re.Json=".json",re.TsBuildInfo=".tsbuildinfo",re.Mjs=".mjs",re.Mts=".mts",re.Dmts=".d.mts",re.Cjs=".cjs",re.Cts=".cts",re.Dcts=".d.cts",(ne=e.TransformFlags||(e.TransformFlags={}))[ne.None=0]="None",ne[ne.ContainsTypeScript=1]="ContainsTypeScript",ne[ne.ContainsJsx=2]="ContainsJsx",ne[ne.ContainsESNext=4]="ContainsESNext",ne[ne.ContainsES2021=8]="ContainsES2021",ne[ne.ContainsES2020=16]="ContainsES2020",ne[ne.ContainsES2019=32]="ContainsES2019",ne[ne.ContainsES2018=64]="ContainsES2018",ne[ne.ContainsES2017=128]="ContainsES2017",ne[ne.ContainsES2016=256]="ContainsES2016",ne[ne.ContainsES2015=512]="ContainsES2015",ne[ne.ContainsGenerator=1024]="ContainsGenerator",ne[ne.ContainsDestructuringAssignment=2048]="ContainsDestructuringAssignment",ne[ne.ContainsTypeScriptClassSyntax=4096]="ContainsTypeScriptClassSyntax",ne[ne.ContainsLexicalThis=8192]="ContainsLexicalThis",ne[ne.ContainsRestOrSpread=16384]="ContainsRestOrSpread",ne[ne.ContainsObjectRestOrSpread=32768]="ContainsObjectRestOrSpread",ne[ne.ContainsComputedPropertyName=65536]="ContainsComputedPropertyName",ne[ne.ContainsBlockScopedBinding=131072]="ContainsBlockScopedBinding",ne[ne.ContainsBindingPattern=262144]="ContainsBindingPattern",ne[ne.ContainsYield=524288]="ContainsYield",ne[ne.ContainsAwait=1048576]="ContainsAwait",ne[ne.ContainsHoistedDeclarationOrCompletion=2097152]="ContainsHoistedDeclarationOrCompletion",ne[ne.ContainsDynamicImport=4194304]="ContainsDynamicImport",ne[ne.ContainsClassFields=8388608]="ContainsClassFields",ne[ne.ContainsPossibleTopLevelAwait=16777216]="ContainsPossibleTopLevelAwait",ne[ne.ContainsLexicalSuper=33554432]="ContainsLexicalSuper",ne[ne.ContainsUpdateExpressionForIdentifier=67108864]="ContainsUpdateExpressionForIdentifier",ne[ne.HasComputedFlags=536870912]="HasComputedFlags",ne[ne.AssertTypeScript=1]="AssertTypeScript",ne[ne.AssertJsx=2]="AssertJsx",ne[ne.AssertESNext=4]="AssertESNext",ne[ne.AssertES2021=8]="AssertES2021",ne[ne.AssertES2020=16]="AssertES2020",ne[ne.AssertES2019=32]="AssertES2019",ne[ne.AssertES2018=64]="AssertES2018",ne[ne.AssertES2017=128]="AssertES2017",ne[ne.AssertES2016=256]="AssertES2016",ne[ne.AssertES2015=512]="AssertES2015",ne[ne.AssertGenerator=1024]="AssertGenerator",ne[ne.AssertDestructuringAssignment=2048]="AssertDestructuringAssignment",ne[ne.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",ne[ne.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",ne[ne.NodeExcludes=536870912]="NodeExcludes",ne[ne.ArrowFunctionExcludes=557748224]="ArrowFunctionExcludes",ne[ne.FunctionExcludes=591310848]="FunctionExcludes",ne[ne.ConstructorExcludes=591306752]="ConstructorExcludes",ne[ne.MethodOrAccessorExcludes=574529536]="MethodOrAccessorExcludes",ne[ne.PropertyExcludes=570433536]="PropertyExcludes",ne[ne.ClassExcludes=536940544]="ClassExcludes",ne[ne.ModuleExcludes=589443072]="ModuleExcludes",ne[ne.TypeExcludes=-2]="TypeExcludes",ne[ne.ObjectLiteralExcludes=536973312]="ObjectLiteralExcludes",ne[ne.ArrayLiteralOrCallOrNewExcludes=536887296]="ArrayLiteralOrCallOrNewExcludes",ne[ne.VariableDeclarationListExcludes=537165824]="VariableDeclarationListExcludes",ne[ne.ParameterExcludes=536870912]="ParameterExcludes",ne[ne.CatchClauseExcludes=536903680]="CatchClauseExcludes",ne[ne.BindingPatternExcludes=536887296]="BindingPatternExcludes",ne[ne.ContainsLexicalThisOrSuper=33562624]="ContainsLexicalThisOrSuper",ne[ne.PropertyNamePropagatingFlags=33562624]="PropertyNamePropagatingFlags",(ie=e.SnippetKind||(e.SnippetKind={}))[ie.TabStop=0]="TabStop",ie[ie.Placeholder=1]="Placeholder",ie[ie.Choice=2]="Choice",ie[ie.Variable=3]="Variable",(ae=e.EmitFlags||(e.EmitFlags={}))[ae.None=0]="None",ae[ae.SingleLine=1]="SingleLine",ae[ae.AdviseOnEmitNode=2]="AdviseOnEmitNode",ae[ae.NoSubstitution=4]="NoSubstitution",ae[ae.CapturesThis=8]="CapturesThis",ae[ae.NoLeadingSourceMap=16]="NoLeadingSourceMap",ae[ae.NoTrailingSourceMap=32]="NoTrailingSourceMap",ae[ae.NoSourceMap=48]="NoSourceMap",ae[ae.NoNestedSourceMaps=64]="NoNestedSourceMaps",ae[ae.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",ae[ae.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",ae[ae.NoTokenSourceMaps=384]="NoTokenSourceMaps",ae[ae.NoLeadingComments=512]="NoLeadingComments",ae[ae.NoTrailingComments=1024]="NoTrailingComments",ae[ae.NoComments=1536]="NoComments",ae[ae.NoNestedComments=2048]="NoNestedComments",ae[ae.HelperName=4096]="HelperName",ae[ae.ExportName=8192]="ExportName",ae[ae.LocalName=16384]="LocalName",ae[ae.InternalName=32768]="InternalName",ae[ae.Indented=65536]="Indented",ae[ae.NoIndentation=131072]="NoIndentation",ae[ae.AsyncFunctionBody=262144]="AsyncFunctionBody",ae[ae.ReuseTempVariableScope=524288]="ReuseTempVariableScope",ae[ae.CustomPrologue=1048576]="CustomPrologue",ae[ae.NoHoisting=2097152]="NoHoisting",ae[ae.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",ae[ae.Iterator=8388608]="Iterator",ae[ae.NoAsciiEscaping=16777216]="NoAsciiEscaping",ae[ae.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",ae[ae.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",ae[ae.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines",ae[ae.Immutable=268435456]="Immutable",ae[ae.IndirectCall=536870912]="IndirectCall",(oe=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}))[oe.Extends=1]="Extends",oe[oe.Assign=2]="Assign",oe[oe.Rest=4]="Rest",oe[oe.Decorate=8]="Decorate",oe[oe.Metadata=16]="Metadata",oe[oe.Param=32]="Param",oe[oe.Awaiter=64]="Awaiter",oe[oe.Generator=128]="Generator",oe[oe.Values=256]="Values",oe[oe.Read=512]="Read",oe[oe.SpreadArray=1024]="SpreadArray",oe[oe.Await=2048]="Await",oe[oe.AsyncGenerator=4096]="AsyncGenerator",oe[oe.AsyncDelegator=8192]="AsyncDelegator",oe[oe.AsyncValues=16384]="AsyncValues",oe[oe.ExportStar=32768]="ExportStar",oe[oe.ImportStar=65536]="ImportStar",oe[oe.ImportDefault=131072]="ImportDefault",oe[oe.MakeTemplateObject=262144]="MakeTemplateObject",oe[oe.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",oe[oe.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",oe[oe.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",oe[oe.CreateBinding=4194304]="CreateBinding",oe[oe.FirstEmitHelper=1]="FirstEmitHelper",oe[oe.LastEmitHelper=4194304]="LastEmitHelper",oe[oe.ForOfIncludes=256]="ForOfIncludes",oe[oe.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",oe[oe.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",oe[oe.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",oe[oe.SpreadIncludes=1536]="SpreadIncludes",(se=e.EmitHint||(e.EmitHint={}))[se.SourceFile=0]="SourceFile",se[se.Expression=1]="Expression",se[se.IdentifierName=2]="IdentifierName",se[se.MappedTypeParameter=3]="MappedTypeParameter",se[se.Unspecified=4]="Unspecified",se[se.EmbeddedStatement=5]="EmbeddedStatement",se[se.JsxAttributeValue=6]="JsxAttributeValue",(ce=e.OuterExpressionKinds||(e.OuterExpressionKinds={}))[ce.Parentheses=1]="Parentheses",ce[ce.TypeAssertions=2]="TypeAssertions",ce[ce.NonNullAssertions=4]="NonNullAssertions",ce[ce.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",ce[ce.Assertions=6]="Assertions",ce[ce.All=15]="All",ce[ce.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",(ue=e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={}))[ue.None=0]="None",ue[ue.InParameters=1]="InParameters",ue[ue.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",(le=e.BundleFileSectionKind||(e.BundleFileSectionKind={})).Prologue="prologue",le.EmitHelpers="emitHelpers",le.NoDefaultLib="no-default-lib",le.Reference="reference",le.Type="type",le.Lib="lib",le.Prepend="prepend",le.Text="text",le.Internal="internal",(de=e.ListFormat||(e.ListFormat={}))[de.None=0]="None",de[de.SingleLine=0]="SingleLine",de[de.MultiLine=1]="MultiLine",de[de.PreserveLines=2]="PreserveLines",de[de.LinesMask=3]="LinesMask",de[de.NotDelimited=0]="NotDelimited",de[de.BarDelimited=4]="BarDelimited",de[de.AmpersandDelimited=8]="AmpersandDelimited",de[de.CommaDelimited=16]="CommaDelimited",de[de.AsteriskDelimited=32]="AsteriskDelimited",de[de.DelimitersMask=60]="DelimitersMask",de[de.AllowTrailingComma=64]="AllowTrailingComma",de[de.Indented=128]="Indented",de[de.SpaceBetweenBraces=256]="SpaceBetweenBraces",de[de.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",de[de.Braces=1024]="Braces",de[de.Parenthesis=2048]="Parenthesis",de[de.AngleBrackets=4096]="AngleBrackets",de[de.SquareBrackets=8192]="SquareBrackets",de[de.BracketsMask=15360]="BracketsMask",de[de.OptionalIfUndefined=16384]="OptionalIfUndefined",de[de.OptionalIfEmpty=32768]="OptionalIfEmpty",de[de.Optional=49152]="Optional",de[de.PreferNewLine=65536]="PreferNewLine",de[de.NoTrailingNewLine=131072]="NoTrailingNewLine",de[de.NoInterveningComments=262144]="NoInterveningComments",de[de.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",de[de.SingleElement=1048576]="SingleElement",de[de.SpaceAfterList=2097152]="SpaceAfterList",de[de.Modifiers=262656]="Modifiers",de[de.HeritageClauses=512]="HeritageClauses",de[de.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",de[de.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",de[de.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",de[de.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",de[de.UnionTypeConstituents=516]="UnionTypeConstituents",de[de.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",de[de.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",de[de.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",de[de.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",de[de.ImportClauseEntries=526226]="ImportClauseEntries",de[de.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",de[de.CommaListElements=528]="CommaListElements",de[de.CallExpressionArguments=2576]="CallExpressionArguments",de[de.NewExpressionArguments=18960]="NewExpressionArguments",de[de.TemplateExpressionSpans=262144]="TemplateExpressionSpans",de[de.SingleLineBlockStatements=768]="SingleLineBlockStatements",de[de.MultiLineBlockStatements=129]="MultiLineBlockStatements",de[de.VariableDeclarationList=528]="VariableDeclarationList",de[de.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",de[de.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",de[de.ClassHeritageClauses=0]="ClassHeritageClauses",de[de.ClassMembers=129]="ClassMembers",de[de.InterfaceMembers=129]="InterfaceMembers",de[de.EnumMembers=145]="EnumMembers",de[de.CaseBlockClauses=129]="CaseBlockClauses",de[de.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",de[de.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",de[de.JsxElementAttributes=262656]="JsxElementAttributes",de[de.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",de[de.HeritageClauseTypes=528]="HeritageClauseTypes",de[de.SourceFileStatements=131073]="SourceFileStatements",de[de.Decorators=2146305]="Decorators",de[de.TypeArguments=53776]="TypeArguments",de[de.TypeParameters=53776]="TypeParameters",de[de.Parameters=2576]="Parameters",de[de.IndexSignatureParameters=8848]="IndexSignatureParameters",de[de.JSDocComment=33]="JSDocComment",(_e=e.PragmaKindFlags||(e.PragmaKindFlags={}))[_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.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}}}(c||(c={})),function(e){e.directorySeparator="/",e.altDirectorySeparator="\\";var t=/\\/g;function n(e){return 47===e||92===e}function i(e){return l(e)>0}function a(e){return 0!==l(e)}function o(e){return/^\.\.?($|[\\/])/.test(e)}function s(t,r){return t.length>r.length&&e.endsWith(t,r)}function c(e){return e.length>0&&n(e.charCodeAt(e.length-1))}function u(e){return e>=97&&e<=122||e>=65&&e<=90}function l(t){if(!t)return 0;var r=t.charCodeAt(0);if(47===r||92===r){if(t.charCodeAt(1)!==r)return 1;var n=t.indexOf(47===r?e.directorySeparator:e.altDirectorySeparator,2);return n<0?t.length:n+1}if(u(r)&&58===t.charCodeAt(1)){var i=t.charCodeAt(2);if(47===i||92===i)return 3;if(2===t.length)return 2}var a=t.indexOf("://");if(-1!==a){var o=a+"://".length,s=t.indexOf(e.directorySeparator,o);if(-1!==s){var c=t.slice(0,a),l=t.slice(o,s);if("file"===c&&(""===l||"localhost"===l)&&u(t.charCodeAt(s+1))){var d=function(e,t){var r=e.charCodeAt(t);if(58===r)return t+1;if(37===r&&51===e.charCodeAt(t+1)){var n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1}(t,s+2);if(-1!==d){if(47===t.charCodeAt(d))return~(d+1);if(d===t.length)return~d}}return~(s+1)}return~t.length}return 0}function d(e){var t=l(e);return t<0?~t:t}function _(t){var r=d(t=v(t));return r===t.length?t:(t=C(t)).slice(0,Math.max(r,t.lastIndexOf(e.directorySeparator)))}function p(t,r,n){if(d(t=v(t))===t.length)return"";var i=(t=C(t)).slice(Math.max(d(t),t.lastIndexOf(e.directorySeparator)+1)),a=void 0!==r&&void 0!==n?g(i,r,n):void 0;return a?i.slice(0,i.length-a.length):i}function f(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 g(t,r,n){if(r)return function(e,t,r){if("string"==typeof t)return f(e,t,r)||"";for(var n=0,i=t;n=0?i.substring(a):""}function m(t,n){return void 0===n&&(n=""),function(t,n){var i=t.substring(0,n),a=t.substring(n).split(e.directorySeparator);return a.length&&!e.lastOrUndefined(a)&&a.pop(),r([i],a,!0)}(t=D(n,t),d(t))}function y(t){return 0===t.length?"":(t[0]&&E(t[0]))+t.slice(1).join(e.directorySeparator)}function v(r){var n=r.indexOf("\\");return-1===n?r:(t.lastIndex=n,r.replace(t,e.directorySeparator))}function h(t){if(!e.some(t))return[];for(var r=[t[0]],n=1;n1){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;r0&&t===e.length},e.pathIsAbsolute=a,e.pathIsRelative=o,e.pathIsBareSpecifier=function(e){return!a(e)&&!o(e)},e.hasExtension=function(t){return e.stringContains(p(t),".")},e.fileExtensionIs=s,e.fileExtensionIsOneOf=function(e,t){for(var r=0,n=t;r0==d(r)>0,"Paths must either both be absolute or both be relative");var i="function"==typeof n?n:e.identity;return y(N(t,r,"boolean"==typeof n&&n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,i))}function w(t,r,n,a,o){var s=N(x(n,t),x(n,r),e.equateStringsCaseSensitive,a),c=s[0];if(o&&i(c)){var u=c.charAt(0)===e.directorySeparator?"file://":"file:///";s[0]=u+c}return y(s)}e.comparePathsCaseSensitive=function(t,r){return F(t,r,e.compareStringsCaseSensitive)},e.comparePathsCaseInsensitive=function(t,r){return F(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),F(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=h(m(t)),o=h(m(r));if(o.length=4,m="linux"===es.platform||"darwin"===es.platform,v=d.platform(),h="win32"!==v&&"win64"!==v&&!L("/prettier-security-filename-placeholder.js".replace(/\w/g,(function(e){var t=e.toUpperCase();return e===t?e.toLowerCase():t}))),D=null!==(n=c.realpathSync.native)&&void 0!==n?n:c.realpathSync,b=g&&("win32"===es.platform||"darwin"===es.platform),T=t.memoize((function(){return es.cwd()})),E=C({pollingWatchFile:y((function(e,t,r){var n;return c.watchFile(e,{persistent:!0,interval:r},a),{close:function(){return c.unwatchFile(e,a)}};function a(r,a){var o=0==+a.mtime||n===i.Deleted;if(0==+r.mtime){if(o)return;n=i.Deleted}else if(o)n=i.Created;else{if(+r.mtime==+a.mtime)return;n=i.Changed}t(e,n)}}),h),getModifiedTime:j,setTimeout:setTimeout,clearTimeout:clearTimeout,fsWatch:function(e,r,n,a,o,s){var u,l,d;m&&(l=e.substr(e.lastIndexOf(t.directorySeparator)),d=l.slice(t.directorySeparator.length));var _=M(e,r)?g():h();return{close:function(){_.close(),_=void 0}};function f(r){t.sysLog("sysLog:: ".concat(e,":: Changing watcher to ").concat(r===g?"Present":"Missing","FileSystemEntryWatcher")),n("rename",""),_&&(_.close(),_=r())}function g(){if(void 0===u&&(u=b?{persistent:!0,recursive:!!a}:{persistent:!0}),p)return t.sysLog("sysLog:: ".concat(e,":: Defaulting to fsWatchFile")),v();try{var r=c.watch(e,u,m?y:n);return r.on("error",(function(){return f(h)})),r}catch(r){return p||(p="ENOSPC"===r.code),t.sysLog("sysLog:: ".concat(e,":: Changing to fsWatchFile")),v()}}function y(t,i){return"rename"!==t||i&&i!==d&&(-1===i.lastIndexOf(l)||i.lastIndexOf(l)!==i.length-l.length)||M(e,r)?n(t,i):f(h)}function v(){return A(e,x(n),o,s)}function h(){return A(e,(function(t,n){n===i.Created&&M(e,r)&&f(g)}),o,s)}},useCaseSensitiveFileNames:h,getCurrentDirectory:T,fileExists:L,fsSupportsRecursiveFsWatch:b,directoryExists:R,getAccessibleSortedChildDirectories:function(e){return O(e).directories},realpath:B,tscWatchFile:es.env.TSC_WATCHFILE,useNonPollingWatchers:es.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:es.env.TSC_WATCHDIRECTORY,defaultWatchFileKind:function(){var e,t;return null===(t=(e=u).defaultWatchFileKind)||void 0===t?void 0:t.call(e)}}),A=E.watchFile,F=E.watchDirectory,N={args:es.argv.slice(2),newLine:d.EOL,useCaseSensitiveFileNames:h,write:function(e){es.stdout.write(e)},getWidthOfTerminal:function(){return es.stdout.columns},writeOutputIsTTY:function(){return es.stdout.isTTY},readFile:function(e,r){t.perfLogger.logStartReadFile(e);var n=function(e,t){var r;try{r=c.readFileSync(e)}catch(e){return}var n=r.length;if(n>=2&&254===r[0]&&255===r[1]){n&=-2;for(var i=0;i=2&&255===r[0]&&254===r[1]?r.toString("utf16le",2):n>=3&&239===r[0]&&187===r[1]&&191===r[2]?r.toString("utf8",3):r.toString("utf8")}(e);return t.perfLogger.logStopReadFile(),n},writeFile:function(e,r,n){var i;t.perfLogger.logEvent("WriteFile: "+e),n&&(r="\ufeff"+r);try{i=c.openSync(e,"w"),c.writeSync(i,r,void 0,"utf8")}finally{void 0!==i&&c.closeSync(i)}},watchFile:A,watchDirectory:F,resolvePath:function(e){return l.resolve(e)},fileExists:L,directoryExists:R,createDirectory:function(e){if(!N.directoryExists(e))try{c.mkdirSync(e)}catch(e){if("EEXIST"!==e.code)throw e}},getExecutingFilePath:function(){return"/prettier-security-filename-placeholder.js"},getCurrentDirectory:T,getDirectories:function(e){return O(e).directories.slice()},getEnvironmentVariable:function(e){return es.env[e]||""},readDirectory:function(e,r,n,i,a){return t.matchFiles(e,r,n,i,h,es.cwd(),a,O,B)},getModifiedTime:j,setModifiedTime:function(e,t){try{c.utimesSync(e,t,t)}catch(e){return}},deleteFile:function(e){try{return c.unlinkSync(e)}catch(e){return}},createHash:a?J:r,createSHA256Hash:a?J:void 0,getMemoryUsage:function(){return e.gc&&e.gc(),es.memoryUsage().heapUsed},getFileSize:function(e){try{var t=P(e);if(null==t?void 0:t.isFile())return t.size}catch(e){}return 0},exit:function(e){w((function(){return es.exit(e)}))},enableCPUProfiler:function(e,t){if(o)return t(),!1;var r={};if(!r||!r.Session)return t(),!1;var n=new r.Session;return n.connect(),n.post("Profiler.enable",(function(){n.post("Profiler.start",(function(){o=n,_=e,t()}))})),!0},disableCPUProfiler:w,cpuProfilingEnabled:function(){return!!o||t.contains(es.execArgv,"--cpu-prof")||t.contains(es.execArgv,"--prof")},realpath:B,debugMode:!!es.env.NODE_INSPECTOR_IPC||!!es.env.VSCODE_INSPECTOR_OPTIONS||t.some(es.execArgv,(function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)})),tryEnableSourceMapsForHost:function(){},setTimeout:setTimeout,clearTimeout:clearTimeout,clearScreen:function(){es.stdout.write("\x1bc")},setBlocking:function(){es.stdout&&es.stdout._handle&&es.stdout._handle.setBlocking&&es.stdout._handle.setBlocking(!0)},bufferFrom:I,base64decode:function(e){return I(e,"base64").toString("utf8")},base64encode:function(e){return I(e).toString("base64")},require:function(e,r){try{return{module:void 0,modulePath:t.resolveJSModule(r,e,N),error:void 0}}catch(e){return{module:void 0,modulePath:void 0,error:e}}}};return N;function P(e){return c.statSync(e,{throwIfNoEntry:!1})}function w(e){if(o&&"stopping"!==o){var r=o;return o.post("Profiler.stop",(function(n,i){var a,u=i.profile;if(!n){try{(null===(a=P(_))||void 0===a?void 0:a.isDirectory())&&(_=l.join(_,"".concat((new Date).toISOString().replace(/:/g,"-"),"+P").concat(es.pid,".cpuprofile")))}catch(e){}try{c.mkdirSync(l.dirname(_),{recursive:!0})}catch(e){}c.writeFileSync(_,JSON.stringify(function(e){for(var r=0,n=new t.Map,i=t.normalizeSlashes("/prettier-security-dirname-placeholder"),a="file://".concat(1===t.getRootLength(i)?"":"/").concat(i),o=0,c=e.nodes;o type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:t(1066,e.DiagnosticCategory.Error,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:t(1068,e.DiagnosticCategory.Error,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:t(1069,e.DiagnosticCategory.Error,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:t(1070,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:t(1071,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:t(1079,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:t(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:t(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),_0_modifier_cannot_appear_on_a_constructor_declaration:t(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:t(1090,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:t(1091,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:t(1092,e.DiagnosticCategory.Error,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:t(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:t(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:t(1095,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:t(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:t(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:t(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:t(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:t(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:t(1101,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:t(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:t(1103,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:t(1104,e.DiagnosticCategory.Error,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:t(1105,e.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:t(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: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_have_a_simple_literal_type_or_a_unique_symbol_type:t(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:t(1168,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1169,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1170,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:t(1171,e.DiagnosticCategory.Error,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:t(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:t(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:t(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:t(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:t(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:t(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:t(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:t(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:t(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:t(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:t(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:t(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:t(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:t(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:t(1186,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:t(1187,e.DiagnosticCategory.Error,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:t(1188,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:t(1189,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:t(1190,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:t(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:t(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:t(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:t(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:t(1195,e.DiagnosticCategory.Error,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:t(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:t(1197,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:t(1198,e.DiagnosticCategory.Error,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:t(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:t(1200,e.DiagnosticCategory.Error,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:t(1202,e.DiagnosticCategory.Error,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:t(1203,e.DiagnosticCategory.Error,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:t(1205,e.DiagnosticCategory.Error,"Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205","Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'."),Decorators_are_not_valid_here:t(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:t(1207,e.DiagnosticCategory.Error,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module:t(1208,e.DiagnosticCategory.Error,"_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208","'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module."),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:t(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: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_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_must_be_at_the_top_level_of_a_file_or_module_declaration:t(1231,e.DiagnosticCategory.Error,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_in_a_namespace_or_module: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."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:t(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:t(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:t(1257,e.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:t(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:t(1259,e.DiagnosticCategory.Error,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:t(1260,e.DiagnosticCategory.Error,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:t(1261,e.DiagnosticCategory.Error,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:t(1262,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t(1263,e.DiagnosticCategory.Error,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:t(1264,e.DiagnosticCategory.Error,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:t(1265,e.DiagnosticCategory.Error,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:t(1266,e.DiagnosticCategory.Error,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:t(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:t(1268,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),with_statements_are_not_allowed_in_an_async_function_block:t(1300,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:t(1308,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:t(1312,e.DiagnosticCategory.Error,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:t(1313,e.DiagnosticCategory.Error,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:t(1314,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:t(1315,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:t(1316,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:t(1317,e.DiagnosticCategory.Error,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:t(1318,e.DiagnosticCategory.Error,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:t(1319,e.DiagnosticCategory.Error,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1320,e.DiagnosticCategory.Error,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1321,e.DiagnosticCategory.Error,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1322,e.DiagnosticCategory.Error,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node12_or_nodenext:t(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:t(1324,e.DiagnosticCategory.Error,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext'."),Argument_of_dynamic_import_cannot_be_spread_element:t(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: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_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:t(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:t(1338,e.DiagnosticCategory.Error,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:t(1339,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:t(1340,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Type_arguments_cannot_be_used_here:t(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node12_or_nodenext:t(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: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."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:t(1361,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:t(1362,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:t(1363,e.DiagnosticCategory.Error,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:t(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:t(1365,e.DiagnosticCategory.Message,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:t(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:t(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Did_you_mean_0:t(1369,e.DiagnosticCategory.Message,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:t(1371,e.DiagnosticCategory.Error,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:t(1373,e.DiagnosticCategory.Message,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:t(1374,e.DiagnosticCategory.Message,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:t(1375,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:t(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:t(1377,e.DiagnosticCategory.Message,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:t(1378,e.DiagnosticCategory.Error,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_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:t(1379,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:t(1380,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:t(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:t(1382,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Only_named_exports_may_use_export_type:t(1383,e.DiagnosticCategory.Error,"Only_named_exports_may_use_export_type_1383","Only named exports may use 'export type'."),A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list:t(1384,e.DiagnosticCategory.Error,"A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list_1384","A 'new' expression with type arguments must always be followed by a parenthesized argument list."),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:t(1385,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:t(1386,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t(1387,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t(1388,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:t(1389,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:t(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:t(1392,e.DiagnosticCategory.Error,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:t(1393,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:t(1394,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:t(1395,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:t(1396,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:t(1397,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:t(1398,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:t(1399,e.DiagnosticCategory.Message,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:t(1400,e.DiagnosticCategory.Message,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:t(1401,e.DiagnosticCategory.Message,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:t(1402,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:t(1403,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:t(1404,e.DiagnosticCategory.Message,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:t(1405,e.DiagnosticCategory.Message,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:t(1406,e.DiagnosticCategory.Message,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:t(1407,e.DiagnosticCategory.Message,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:t(1408,e.DiagnosticCategory.Message,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:t(1409,e.DiagnosticCategory.Message,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:t(1410,e.DiagnosticCategory.Message,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:t(1411,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:t(1412,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:t(1413,e.DiagnosticCategory.Message,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:t(1414,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:t(1415,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:t(1416,e.DiagnosticCategory.Message,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:t(1417,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:t(1418,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:t(1419,e.DiagnosticCategory.Message,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:t(1420,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:t(1421,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:t(1422,e.DiagnosticCategory.Message,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:t(1423,e.DiagnosticCategory.Message,"File_is_library_specified_here_1423","File is library specified here."),Default_library:t(1424,e.DiagnosticCategory.Message,"Default_library_1424","Default library"),Default_library_for_target_0:t(1425,e.DiagnosticCategory.Message,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:t(1426,e.DiagnosticCategory.Message,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:t(1427,e.DiagnosticCategory.Message,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:t(1428,e.DiagnosticCategory.Message,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:t(1429,e.DiagnosticCategory.Message,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:t(1430,e.DiagnosticCategory.Message,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:t(1431,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:t(1432,e.DiagnosticCategory.Error,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_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:t(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:t(1434,e.DiagnosticCategory.Error,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:t(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:t(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:t(1437,e.DiagnosticCategory.Error,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:t(1438,e.DiagnosticCategory.Error,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:t(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:t(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:t(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:t(1442,e.DiagnosticCategory.Error,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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."),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),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:t(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:t(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:t(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2301,e.DiagnosticCategory.Error,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:t(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:t(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:t(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:t(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:t(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:t(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:t(2308,e.DiagnosticCategory.Error,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:t(2309,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:t(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),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_for_type_0_is_missing_in_type_1:t(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:t(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: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}'."),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_a_private_identifier_or_of_type_any_string_number_or_symbol:t(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:t(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_not_be_a_primitive_2361","The right-hand side of an 'in' expression must not be a primitive."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:t(2364,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:t(2365,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:t(2366,e.DiagnosticCategory.Error,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap:t(2367,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap_2367","This condition will always return '{0}' since the types '{1}' and '{2}' have no overlap."),Type_parameter_name_cannot_be_0:t(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:t(2369,e.DiagnosticCategory.Error,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:t(2370,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:t(2371,e.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:t(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:t(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_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers:t(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376","A 'super' call must be the first statement in the constructor when a class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:t(2377,e.DiagnosticCategory.Error,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:t(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),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:t(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:t(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:t(2383,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:t(2384,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:t(2385,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:t(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:t(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:t(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:t(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:t(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:t(2391,e.DiagnosticCategory.Error,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:t(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:t(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:t(2394,e.DiagnosticCategory.Error,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:t(2395,e.DiagnosticCategory.Error,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:t(2396,e.DiagnosticCategory.Error,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:t(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:t(2398,e.DiagnosticCategory.Error,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:t(2399,e.DiagnosticCategory.Error,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:t(2400,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),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'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:t(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:t(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:t(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:t(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:t(2415,e.DiagnosticCategory.Error,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:t(2416,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:t(2417,e.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:t(2418,e.DiagnosticCategory.Error,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:t(2419,e.DiagnosticCategory.Error,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:t(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2422,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:t(2423,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:t(2425,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:t(2426,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:t(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:t(2428,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:t(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:t(2431,e.DiagnosticCategory.Error,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:t(2432,e.DiagnosticCategory.Error,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:t(2433,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:t(2434,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:t(2435,e.DiagnosticCategory.Error,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:t(2436,e.DiagnosticCategory.Error,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:t(2437,e.DiagnosticCategory.Error,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:t(2438,e.DiagnosticCategory.Error,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:t(2439,e.DiagnosticCategory.Error,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:t(2440,e.DiagnosticCategory.Error,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:t(2441,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:t(2442,e.DiagnosticCategory.Error,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:t(2443,e.DiagnosticCategory.Error,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:t(2444,e.DiagnosticCategory.Error,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:t(2445,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:t(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: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."),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_alias_0_circularly_references_itself:t(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:t(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:t(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:t(2459,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:t(2460,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:t(2461,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:t(2462,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:t(2463,e.DiagnosticCategory.Error,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:t(2464,e.DiagnosticCategory.Error,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:t(2465,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:t(2466,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:t(2467,e.DiagnosticCategory.Error,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:t(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:t(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),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'."),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."),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."),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."),Index_signature_in_type_0_only_permits_reading:t(2542,e.DiagnosticCategory.Error,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:t(2543,e.DiagnosticCategory.Error,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:t(2544,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:t(2545,e.DiagnosticCategory.Error,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:t(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2548,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2549,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:t(2550,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:t(2551,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:t(2552,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:t(2553,e.DiagnosticCategory.Error,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:t(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:t(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:t(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: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."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:t(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: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."),Could_not_find_name_0_Did_you_mean_1:t(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:t(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:t(2574,e.DiagnosticCategory.Error,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:t(2575,e.DiagnosticCategory.Error,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:t(2576,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:t(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:t(2578,e.DiagnosticCategory.Error,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:t(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:t(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:t(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:t(2583,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:t(2584,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:t(2585,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:t(2588,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:t(2589,e.DiagnosticCategory.Error,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:t(2590,e.DiagnosticCategory.Error,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:t(2591,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:t(2592,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:t(2593,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:t(2594,e.DiagnosticCategory.Error,"This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the__2594","This module is declared with using 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:t(2595,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2596,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:t(2597,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2598,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_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."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:t(2606,e.DiagnosticCategory.Error,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:t(2607,e.DiagnosticCategory.Error,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:t(2608,e.DiagnosticCategory.Error,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:t(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:t(2610,e.DiagnosticCategory.Error,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:t(2611,e.DiagnosticCategory.Error,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:t(2612,e.DiagnosticCategory.Error,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:t(2613,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:t(2614,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:t(2615,e.DiagnosticCategory.Error,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:t(2616,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2617,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:t(2618,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:t(2619,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:t(2620,e.DiagnosticCategory.Error,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:t(2621,e.DiagnosticCategory.Error,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:t(2623,e.DiagnosticCategory.Error,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:t(2624,e.DiagnosticCategory.Error,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:t(2625,e.DiagnosticCategory.Error,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:t(2626,e.DiagnosticCategory.Error,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:t(2627,e.DiagnosticCategory.Error,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:t(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:t(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:t(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:t(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:t(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:t(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:t(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: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}'."),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."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:t(2683,e.DiagnosticCategory.Error,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:t(2684,e.DiagnosticCategory.Error,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:t(2685,e.DiagnosticCategory.Error,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:t(2686,e.DiagnosticCategory.Error,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:t(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:t(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:t(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:t(2690,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:t(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:t(2692,e.DiagnosticCategory.Error,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:t(2693,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:t(2694,e.DiagnosticCategory.Error,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:t(2695,e.DiagnosticCategory.Error,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:t(2696,e.DiagnosticCategory.Error,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2697,e.DiagnosticCategory.Error,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:t(2698,e.DiagnosticCategory.Error,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:t(2699,e.DiagnosticCategory.Error,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:t(2700,e.DiagnosticCategory.Error,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:t(2701,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:t(2702,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:t(2703,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:t(2704,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2705,e.DiagnosticCategory.Error,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:t(2706,e.DiagnosticCategory.Error,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:t(2707,e.DiagnosticCategory.Error,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:t(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:t(2709,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:t(2710,e.DiagnosticCategory.Error,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2711,e.DiagnosticCategory.Error,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2712,e.DiagnosticCategory.Error,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:t(2713,e.DiagnosticCategory.Error,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:t(2714,e.DiagnosticCategory.Error,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:t(2715,e.DiagnosticCategory.Error,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:t(2716,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:t(2717,e.DiagnosticCategory.Error,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:t(2718,e.DiagnosticCategory.Error,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:t(2719,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:t(2720,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:t(2721,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:t(2722,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:t(2723,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:t(2724,e.DiagnosticCategory.Error,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:t(2725,e.DiagnosticCategory.Error,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:t(2726,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:t(2727,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:t(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:t(2729,e.DiagnosticCategory.Error,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:t(2730,e.DiagnosticCategory.Error,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:t(2731,e.DiagnosticCategory.Error,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:t(2732,e.DiagnosticCategory.Error,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:t(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:t(2734,e.DiagnosticCategory.Error,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:t(2735,e.DiagnosticCategory.Error,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:t(2736,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:t(2737,e.DiagnosticCategory.Error,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:t(2738,e.DiagnosticCategory.Message,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:t(2739,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:t(2740,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:t(2741,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:t(2742,e.DiagnosticCategory.Error,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:t(2743,e.DiagnosticCategory.Error,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:t(2744,e.DiagnosticCategory.Error,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:t(2745,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:t(2746,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:t(2747,e.DiagnosticCategory.Error,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided:t(2748,e.DiagnosticCategory.Error,"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748","Cannot access ambient const enums when the '--isolatedModules' flag is provided."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:t(2749,e.DiagnosticCategory.Error,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:t(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:t(2751,e.DiagnosticCategory.Error,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:t(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:t(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:t(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:t(2755,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:t(2756,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:t(2757,e.DiagnosticCategory.Error,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:t(2758,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:t(2759,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:t(2760,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:t(2761,e.DiagnosticCategory.Error,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:t(2762,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:t(2763,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:t(2764,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:t(2765,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:t(2766,e.DiagnosticCategory.Error,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:t(2767,e.DiagnosticCategory.Error,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:t(2768,e.DiagnosticCategory.Error,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:t(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:t(2770,e.DiagnosticCategory.Error,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:t(2771,e.DiagnosticCategory.Error,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:t(2772,e.DiagnosticCategory.Error,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:t(2773,e.DiagnosticCategory.Error,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:t(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:t(2775,e.DiagnosticCategory.Error,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:t(2776,e.DiagnosticCategory.Error,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:t(2777,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:t(2778,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:t(2779,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:t(2780,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:t(2781,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:t(2782,e.DiagnosticCategory.Message,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:t(2783,e.DiagnosticCategory.Error,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:t(2784,e.DiagnosticCategory.Error,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:t(2785,e.DiagnosticCategory.Error,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:t(2786,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:t(2787,e.DiagnosticCategory.Error,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:t(2788,e.DiagnosticCategory.Error,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:t(2789,e.DiagnosticCategory.Error,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:t(2790,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:t(2791,e.DiagnosticCategory.Error,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:t(2792,e.DiagnosticCategory.Error,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:t(2793,e.DiagnosticCategory.Error,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:t(2794,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:t(2795,e.DiagnosticCategory.Error,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:t(2796,e.DiagnosticCategory.Error,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:t(2797,e.DiagnosticCategory.Error,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:t(2798,e.DiagnosticCategory.Error,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:t(2799,e.DiagnosticCategory.Error,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:t(2800,e.DiagnosticCategory.Error,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:t(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:t(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:t(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:t(2804,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_not_specified_with_a_target_of_esnext_Consider_adding_the_useDefineForClassFields_flag:t(2805,e.DiagnosticCategory.Error,"Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_no_2805","Static fields with private names can't have initializers when the '--useDefineForClassFields' flag is not specified with a '--target' of 'esnext'. Consider adding the '--useDefineForClassFields' flag."),Private_accessor_was_defined_without_a_getter:t(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:t(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:t(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:t(2809,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses."),Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnext_and_useDefineForClassFields_is_false:t(2810,e.DiagnosticCategory.Error,"Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnex_2810","Property '{0}' may not be used in a static property's initializer in the same class when 'target' is 'esnext' and 'useDefineForClassFields' is 'false'."),Initializer_for_property_0:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2821,e.DiagnosticCategory.Error,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_2821","Import assertions are only supported when the '--module' option is set to 'esnext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:t(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:t(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:t(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:t(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_declaration_0_is_using_private_name_1:t(4e3,e.DiagnosticCategory.Error,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:t(4002,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:t(4004,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4006,e.DiagnosticCategory.Error,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4008,e.DiagnosticCategory.Error,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4010,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4012,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4014,e.DiagnosticCategory.Error,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4016,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4019,e.DiagnosticCategory.Error,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4020,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:t(4021,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:t(4022,e.DiagnosticCategory.Error,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4023,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:t(4024,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:t(4025,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4026,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4027,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t(4028,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4029,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4030,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:t(4031,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4032,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:t(4033,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4034,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4035,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4036,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4037,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4038,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4039,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4040,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4041,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4042,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4043,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4044,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:t(4045,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4046,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:t(4047,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4048,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:t(4049,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4050,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4051,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:t(4052,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4053,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4054,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t(4055,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4056,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:t(4057,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4058,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:t(4059,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:t(4060,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4061,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4062,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:t(4063,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4064,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4065,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4066,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4067,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4068,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4069,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4070,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4071,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4072,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4073,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4074,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4075,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4076,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:t(4077,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4078,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:t(4081,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:t(4082,e.DiagnosticCategory.Error,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:t(4083,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:t(4084,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:t(4090,e.DiagnosticCategory.Error,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4091,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:t(4092,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:t(4094,e.DiagnosticCategory.Error,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4095,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4096,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:t(4097,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4098,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4099,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:t(4100,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4101,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:t(4102,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:t(4103,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:t(4104,e.DiagnosticCategory.Error,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:t(4105,e.DiagnosticCategory.Error,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:t(4106,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:t(4107,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4108,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:t(4109,e.DiagnosticCategory.Error,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:t(4110,e.DiagnosticCategory.Error,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:t(4111,e.DiagnosticCategory.Error,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(5001,e.DiagnosticCategory.Error,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:t(5009,e.DiagnosticCategory.Error,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5010,e.DiagnosticCategory.Error,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:t(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:t(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:t(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:t(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:t(5025,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:t(5033,e.DiagnosticCategory.Error,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:t(5042,e.DiagnosticCategory.Error,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:t(5047,e.DiagnosticCategory.Error,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:t(5048,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:t(5051,e.DiagnosticCategory.Error,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:t(5052,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:t(5053,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:t(5054,e.DiagnosticCategory.Error,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:t(5055,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:t(5056,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:t(5057,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:t(5058,e.DiagnosticCategory.Error,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:t(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:t(5061,e.DiagnosticCategory.Error,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:t(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:t(5063,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:t(5064,e.DiagnosticCategory.Error,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5065,e.DiagnosticCategory.Error,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:t(5066,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:t(5067,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:t(5068,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:t(5069,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy:t(5070,e.DiagnosticCategory.Error,"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070","Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:t(5071,e.DiagnosticCategory.Error,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:t(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:t(5073,e.DiagnosticCategory.Error,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:t(5074,e.DiagnosticCategory.Error,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:t(5075,e.DiagnosticCategory.Error,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:t(5076,e.DiagnosticCategory.Error,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:t(5077,e.DiagnosticCategory.Error,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:t(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:t(5079,e.DiagnosticCategory.Error,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:t(5080,e.DiagnosticCategory.Error,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:t(5081,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:t(5082,e.DiagnosticCategory.Error,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:t(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:t(5084,e.DiagnosticCategory.Error,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:t(5085,e.DiagnosticCategory.Error,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:t(5086,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:t(5087,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:t(5088,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:t(5089,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:t(5090,e.DiagnosticCategory.Error,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled:t(5091,e.DiagnosticCategory.Error,"Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when 'isolatedModules' is enabled."),The_root_value_of_a_0_file_must_be_an_object:t(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:t(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:t(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:t(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: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_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:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_6016","Specify module code generation."),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 or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:t(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:t(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:t(6052,e.DiagnosticCategory.Message,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:t(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:t(6055,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:t(6056,e.DiagnosticCategory.Message,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:t(6058,e.DiagnosticCategory.Message,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:t(6059,e.DiagnosticCategory.Error,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:t(6060,e.DiagnosticCategory.Message,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:t(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:t(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:t(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:t(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),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:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_6080","Specify JSX code generation."),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."),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}'. ========"),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."),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"),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_from_1_of_old_program_it_was_successfully_resolved_to_2:t(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:t(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:t(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:t(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:t(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:t(6189,e.DiagnosticCategory.Error,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:t(6191,e.DiagnosticCategory.Message,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:t(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:t(6193,e.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:t(6194,e.DiagnosticCategory.Message,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:t(6195,e.DiagnosticCategory.Message,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:t(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:t(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:t(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:t(6199,e.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:t(6200,e.DiagnosticCategory.Error,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:t(6201,e.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:t(6202,e.DiagnosticCategory.Error,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:t(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:t(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:t(6205,e.DiagnosticCategory.Error,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:t(6206,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:t(6207,e.DiagnosticCategory.Message,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:t(6208,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:t(6209,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:t(6210,e.DiagnosticCategory.Message,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:t(6211,e.DiagnosticCategory.Message,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:t(6212,e.DiagnosticCategory.Message,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:t(6213,e.DiagnosticCategory.Message,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:t(6214,e.DiagnosticCategory.Message,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:t(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:t(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:t(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:t(6218,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:t(6219,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:t(6220,e.DiagnosticCategory.Message,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:t(6221,e.DiagnosticCategory.Message,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:t(6222,e.DiagnosticCategory.Message,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:t(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:t(6224,e.DiagnosticCategory.Message,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:t(6225,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:t(6226,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:t(6227,e.DiagnosticCategory.Message,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:t(6229,e.DiagnosticCategory.Error,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:t(6230,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:t(6231,e.DiagnosticCategory.Error,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:t(6232,e.DiagnosticCategory.Error,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:t(6233,e.DiagnosticCategory.Error,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:t(6234,e.DiagnosticCategory.Error,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:t(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:t(6236,e.DiagnosticCategory.Error,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:t(6237,e.DiagnosticCategory.Message,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:t(6238,e.DiagnosticCategory.Error,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:t(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:t(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:t(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:t(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:t(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:t(6244,e.DiagnosticCategory.Message,"Modules_6244","Modules"),File_Management:t(6245,e.DiagnosticCategory.Message,"File_Management_6245","File Management"),Emit:t(6246,e.DiagnosticCategory.Message,"Emit_6246","Emit"),JavaScript_Support:t(6247,e.DiagnosticCategory.Message,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:t(6248,e.DiagnosticCategory.Message,"Type_Checking_6248","Type Checking"),Editor_Support:t(6249,e.DiagnosticCategory.Message,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:t(6250,e.DiagnosticCategory.Message,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:t(6251,e.DiagnosticCategory.Message,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:t(6252,e.DiagnosticCategory.Message,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:t(6253,e.DiagnosticCategory.Message,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:t(6254,e.DiagnosticCategory.Message,"Language_and_Environment_6254","Language and Environment"),Projects:t(6255,e.DiagnosticCategory.Message,"Projects_6255","Projects"),Output_Formatting:t(6256,e.DiagnosticCategory.Message,"Output_Formatting_6256","Output Formatting"),Completeness:t(6257,e.DiagnosticCategory.Message,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:t(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"),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:t(6304,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:t(6305,e.DiagnosticCategory.Error,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:t(6306,e.DiagnosticCategory.Error,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:t(6307,e.DiagnosticCategory.Error,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:t(6308,e.DiagnosticCategory.Error,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:t(6309,e.DiagnosticCategory.Error,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:t(6310,e.DiagnosticCategory.Error,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2:t(6350,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350","Project '{0}' is out of date because oldest output '{1}' is older than newest input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2:t(6351,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than oldest output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:t(6352,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:t(6353,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:t(6354,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:t(6355,e.DiagnosticCategory.Message,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:t(6356,e.DiagnosticCategory.Message,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:t(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:t(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:t(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),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"),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')"),Option_build_must_be_the_first_command_line_argument:t(6369,e.DiagnosticCategory.Error,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:t(6370,e.DiagnosticCategory.Error,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:t(6371,e.DiagnosticCategory.Message,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:t(6372,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:t(6373,e.DiagnosticCategory.Message,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:t(6374,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:t(6375,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:t(6376,e.DiagnosticCategory.Message,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:t(6377,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Enable_incremental_compilation:t(6378,e.DiagnosticCategory.Message,"Enable_incremental_compilation_6378","Enable incremental compilation"),Composite_projects_may_not_disable_incremental_compilation:t(6379,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:t(6380,e.DiagnosticCategory.Message,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:t(6381,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:t(6382,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:t(6383,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:t(6384,e.DiagnosticCategory.Message,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:t(6385,e.DiagnosticCategory.Suggestion,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:t(6386,e.DiagnosticCategory.Message,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:t(6387,e.DiagnosticCategory.Suggestion,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(6500,e.DiagnosticCategory.Message,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:t(6501,e.DiagnosticCategory.Message,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:t(6502,e.DiagnosticCategory.Message,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:t(6503,e.DiagnosticCategory.Message,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:t(6504,e.DiagnosticCategory.Error,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:t(6505,e.DiagnosticCategory.Message,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:t(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:t(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:t(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:t(6602,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:t(6603,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:t(6604,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(6614,e.DiagnosticCategory.Message,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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 ``s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:t(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:t(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:t(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:t(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:t(6677,e.DiagnosticCategory.Message,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use `outFile` instead."),Specify_an_output_folder_for_all_emitted_files:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(6688,e.DiagnosticCategory.Message,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:t(6689,e.DiagnosticCategory.Message,"Enable_importing_json_files_6689","Enable importing .json files"),Specify_the_root_folder_within_your_source_files:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(6712,e.DiagnosticCategory.Message,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:t(6713,e.DiagnosticCategory.Message,"Enable_verbose_logging_6713","Enable verbose logging"),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:t(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:t(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:t(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:t(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:t(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:t(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:t(6900,e.DiagnosticCategory.Message,"one_of_Colon_6900","one of:"),one_or_more_Colon:t(6901,e.DiagnosticCategory.Message,"one_or_more_Colon_6901","one or more:"),type_Colon:t(6902,e.DiagnosticCategory.Message,"type_Colon_6902","type:"),default_Colon:t(6903,e.DiagnosticCategory.Message,"default_Colon_6903","default:"),module_system_or_esModuleInterop:t(6904,e.DiagnosticCategory.Message,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:t(6905,e.DiagnosticCategory.Message,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:t(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:t(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:t(6908,e.DiagnosticCategory.Message,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:t(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:t(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:t(6911,e.DiagnosticCategory.Message,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:t(6912,e.DiagnosticCategory.Message,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:t(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:t(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:t(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:t(6916,e.DiagnosticCategory.Message,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:t(6917,e.DiagnosticCategory.Message,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:t(6918,e.DiagnosticCategory.Message,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:t(6919,e.DiagnosticCategory.Message,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:t(6920,e.DiagnosticCategory.Message,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:t(6921,e.DiagnosticCategory.Message,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:t(6922,e.DiagnosticCategory.Message,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:t(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:t(7008,e.DiagnosticCategory.Error,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:t(7009,e.DiagnosticCategory.Error,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:t(7010,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7011,e.DiagnosticCategory.Error,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7013,e.DiagnosticCategory.Error,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7014,e.DiagnosticCategory.Error,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:t(7015,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:t(7016,e.DiagnosticCategory.Error,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:t(7017,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:t(7018,e.DiagnosticCategory.Error,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:t(7019,e.DiagnosticCategory.Error,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7020,e.DiagnosticCategory.Error,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:t(7022,e.DiagnosticCategory.Error,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7023,e.DiagnosticCategory.Error,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7024,e.DiagnosticCategory.Error,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:t(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:t(7026,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:t(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:t(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:t(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:t(7031,e.DiagnosticCategory.Error,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:t(7032,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:t(7033,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:t(7034,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:t(7035,e.DiagnosticCategory.Error,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:t(7036,e.DiagnosticCategory.Error,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:t(7037,e.DiagnosticCategory.Message,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:t(7038,e.DiagnosticCategory.Message,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:t(7039,e.DiagnosticCategory.Error,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:t(7040,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:t(7041,e.DiagnosticCategory.Error,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:t(7042,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7043,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7044,e.DiagnosticCategory.Suggestion,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7045,e.DiagnosticCategory.Suggestion,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:t(7046,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:t(7047,e.DiagnosticCategory.Suggestion,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:t(7048,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:t(7049,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:t(7050,e.DiagnosticCategory.Suggestion,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:t(7051,e.DiagnosticCategory.Error,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:t(7052,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:t(7053,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:t(7054,e.DiagnosticCategory.Error,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:t(7055,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:t(7056,e.DiagnosticCategory.Error,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:t(7057,e.DiagnosticCategory.Error,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:t(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:t(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:t(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:t(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:t(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:t(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:t(8001,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:t(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:t(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:t(8004,e.DiagnosticCategory.Error,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:t(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:t(8006,e.DiagnosticCategory.Error,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:t(8008,e.DiagnosticCategory.Error,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:t(8009,e.DiagnosticCategory.Error,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:t(8010,e.DiagnosticCategory.Error,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:t(8011,e.DiagnosticCategory.Error,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:t(8012,e.DiagnosticCategory.Error,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:t(8013,e.DiagnosticCategory.Error,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:t(8016,e.DiagnosticCategory.Error,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:t(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:t(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:t(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:t(8020,e.DiagnosticCategory.Error,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:t(8021,e.DiagnosticCategory.Error,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:t(8022,e.DiagnosticCategory.Error,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:t(8023,e.DiagnosticCategory.Error,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:t(8024,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:t(8025,e.DiagnosticCategory.Error,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:t(8026,e.DiagnosticCategory.Error,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:t(8027,e.DiagnosticCategory.Error,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:t(8028,e.DiagnosticCategory.Error,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:t(8029,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:t(8030,e.DiagnosticCategory.Error,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:t(8031,e.DiagnosticCategory.Error,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:t(8032,e.DiagnosticCategory.Error,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:t(8033,e.DiagnosticCategory.Error,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:t(8034,e.DiagnosticCategory.Error,"The_tag_was_first_specified_here_8034","The tag was first specified here."),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}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:t(17004,e.DiagnosticCategory.Error,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:t(17005,e.DiagnosticCategory.Error,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17006,e.DiagnosticCategory.Error,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17007,e.DiagnosticCategory.Error,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:t(17008,e.DiagnosticCategory.Error,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:t(17009,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:t(17010,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:t(17011,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:t(17012,e.DiagnosticCategory.Error,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:t(17013,e.DiagnosticCategory.Error,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:t(17014,e.DiagnosticCategory.Error,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:t(17015,e.DiagnosticCategory.Error,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:t(17016,e.DiagnosticCategory.Error,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:t(17017,e.DiagnosticCategory.Error,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:t(17018,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:t(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),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_ES_module:t(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:t(80002,e.DiagnosticCategory.Suggestion,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:t(80003,e.DiagnosticCategory.Suggestion,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:t(80004,e.DiagnosticCategory.Suggestion,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:t(80005,e.DiagnosticCategory.Suggestion,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:t(80006,e.DiagnosticCategory.Suggestion,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:t(80007,e.DiagnosticCategory.Suggestion,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:t(80008,e.DiagnosticCategory.Suggestion,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),Add_missing_super_call:t(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:t(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:t(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:t(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:t(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:t(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:t(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:t(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:t(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_module_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013","Import '{0}' from module \"{1}\""),Change_0_to_1:t(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:t(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015","Add '{0}' to existing import declaration from \"{1}\""),Declare_property_0:t(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:t(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:t(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:t(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:t(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:t(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:t(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:t(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:t(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:t(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:t(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:t(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:t(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:t(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:t(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:t(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Import_default_0_from_module_1:t(90032,e.DiagnosticCategory.Message,"Import_default_0_from_module_1_90032","Import default '{0}' from module \"{1}\""),Add_default_import_0_to_existing_import_declaration_from_1:t(90033,e.DiagnosticCategory.Message,"Add_default_import_0_to_existing_import_declaration_from_1_90033","Add default import '{0}' to existing import declaration from \"{1}\""),Add_parameter_name:t(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:t(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:t(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:t(90037,e.DiagnosticCategory.Message,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:t(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:t(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:t(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:t(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:t(90054,e.DiagnosticCategory.Message,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Convert_function_to_an_ES2015_class:t(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:t(95003,e.DiagnosticCategory.Message,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:t(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:t(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:t(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:t(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:t(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:t(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),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_ES_module:t(95017,e.DiagnosticCategory.Message,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:t(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:t(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:t(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:t(95021,e.DiagnosticCategory.Message,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:t(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:t(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:t(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:t(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:t(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:t(95027,e.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:t(95028,e.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:t(95029,e.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:t(95030,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:t(95031,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:t(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:t(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:t(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:t(95035,e.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:t(95036,e.DiagnosticCategory.Message,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:t(95037,e.DiagnosticCategory.Message,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:t(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:t(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:t(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:t(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:t(95042,e.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:t(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:t(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:t(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:t(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:t(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:t(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:t(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:t(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:t(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:t(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:t(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:t(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:t(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:t(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:t(95057,e.DiagnosticCategory.Message,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:t(95058,e.DiagnosticCategory.Message,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:t(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:t(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:t(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:t(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:t(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:t(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:t(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:t(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:t(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:t(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:t(95069,e.DiagnosticCategory.Message,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:t(95070,e.DiagnosticCategory.Message,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:t(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:t(95072,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:t(95073,e.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:t(95074,e.DiagnosticCategory.Message,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:t(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:t(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:t(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:t(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:t(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:t(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:t(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:t(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:t(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:t(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:t(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:t(95087,e.DiagnosticCategory.Message,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:t(95088,e.DiagnosticCategory.Message,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:t(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:t(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:t(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:t(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:t(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:t(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:t(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:t(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:t(95097,e.DiagnosticCategory.Message,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:t(95098,e.DiagnosticCategory.Message,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:t(95099,e.DiagnosticCategory.Message,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:t(95100,e.DiagnosticCategory.Message,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:t(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_function_expression_0_to_arrow_function:t(95105,e.DiagnosticCategory.Message,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:t(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:t(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:t(95108,e.DiagnosticCategory.Message,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:t(95109,e.DiagnosticCategory.Message,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file:t(95110,e.DiagnosticCategory.Message,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig.json to read more about this file"),Add_a_return_statement:t(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:t(95112,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:t(95113,e.DiagnosticCategory.Message,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:t(95114,e.DiagnosticCategory.Message,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:t(95115,e.DiagnosticCategory.Message,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:t(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:t(95117,e.DiagnosticCategory.Message,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:t(95118,e.DiagnosticCategory.Message,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:t(95119,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:t(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:t(95121,e.DiagnosticCategory.Message,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:t(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:t(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:t(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:t(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:t(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:t(95127,e.DiagnosticCategory.Message,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:t(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:t(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:t(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:t(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:t(95132,e.DiagnosticCategory.Message,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:t(95133,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:t(95134,e.DiagnosticCategory.Message,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:t(95135,e.DiagnosticCategory.Message,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:t(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:t(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:t(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:t(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:t(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:t(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:t(95142,e.DiagnosticCategory.Message,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:t(95143,e.DiagnosticCategory.Message,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:t(95144,e.DiagnosticCategory.Message,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:t(95145,e.DiagnosticCategory.Message,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:t(95146,e.DiagnosticCategory.Message,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:t(95147,e.DiagnosticCategory.Message,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:t(95148,e.DiagnosticCategory.Message,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:t(95149,e.DiagnosticCategory.Message,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:t(95150,e.DiagnosticCategory.Message,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:t(95151,e.DiagnosticCategory.Message,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:t(95152,e.DiagnosticCategory.Message,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:t(95153,e.DiagnosticCategory.Message,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:t(95154,e.DiagnosticCategory.Message,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:t(95155,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:t(95156,e.DiagnosticCategory.Message,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:t(95157,e.DiagnosticCategory.Message,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:t(95158,e.DiagnosticCategory.Message,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:t(95159,e.DiagnosticCategory.Message,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:t(95160,e.DiagnosticCategory.Message,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:t(95161,e.DiagnosticCategory.Message,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:t(95162,e.DiagnosticCategory.Message,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:t(95163,e.DiagnosticCategory.Message,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:t(95164,e.DiagnosticCategory.Message,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:t(95165,e.DiagnosticCategory.Message,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:t(95166,e.DiagnosticCategory.Message,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:t(95167,e.DiagnosticCategory.Message,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:t(95168,e.DiagnosticCategory.Message,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:t(95169,e.DiagnosticCategory.Message,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:t(18004,e.DiagnosticCategory.Error,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:t(18006,e.DiagnosticCategory.Error,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:t(18007,e.DiagnosticCategory.Error,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:t(18009,e.DiagnosticCategory.Error,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:t(18010,e.DiagnosticCategory.Error,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:t(18011,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:t(18012,e.DiagnosticCategory.Error,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:t(18013,e.DiagnosticCategory.Error,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:t(18014,e.DiagnosticCategory.Error,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:t(18015,e.DiagnosticCategory.Error,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:t(18016,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:t(18017,e.DiagnosticCategory.Error,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:t(18018,e.DiagnosticCategory.Error,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:t(18019,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:t(18024,e.DiagnosticCategory.Error,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:t(18026,e.DiagnosticCategory.Error,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:t(18027,e.DiagnosticCategory.Error,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:t(18028,e.DiagnosticCategory.Error,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:t(18029,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:t(18030,e.DiagnosticCategory.Error,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:t(18031,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:t(18032,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead:t(18033,e.DiagnosticCategory.Error,"Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033","Only numeric enums can have computed members, but this expression has type '{0}'. If you do not need exhaustiveness checks, consider using an object literal instead."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:t(18034,e.DiagnosticCategory.Message,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:t(18035,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:t(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:t(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:t(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:t(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:t(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.")}}(c||(c={})),function(e){var t;function r(e){return e>=79}e.tokenIsIdentifierOrKeyword=r,e.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 31===e||r(e)},e.textToKeywordObj=((t={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}).constructor=134,t.debugger=87,t.declare=135,t.default=88,t.delete=89,t.do=90,t.else=91,t.enum=92,t.export=93,t.extends=94,t.false=95,t.finally=96,t.for=97,t.from=155,t.function=98,t.get=136,t.if=99,t.implements=117,t.import=100,t.in=101,t.infer=137,t.instanceof=102,t.interface=118,t.intrinsic=138,t.is=139,t.keyof=140,t.let=119,t.module=141,t.namespace=142,t.never=143,t.new=103,t.null=104,t.number=146,t.object=147,t.package=120,t.private=121,t.protected=122,t.public=123,t.override=158,t.readonly=144,t.require=145,t.global=156,t.return=105,t.set=148,t.static=124,t.string=149,t.super=106,t.switch=107,t.symbol=150,t.this=108,t.throw=109,t.true=110,t.try=111,t.type=151,t.typeof=112,t.undefined=152,t.unique=153,t.unknown=154,t.var=113,t.void=114,t.while=115,t.with=116,t.yield=125,t.async=131,t.await=132,t.of=159,t);var i=new e.Map(e.getEntries(e.textToKeywordObj)),a=new e.Map(e.getEntries(n(n({},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,">":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":63,"+=":64,"-=":65,"*=":66,"**=":67,"/=":68,"%=":69,"<<=":70,">>=":71,">>>=":72,"&=":73,"|=":74,"^=":78,"||=":75,"&&=":76,"??=":77,"@":59,"#":62,"`":61}))),o=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],s=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],c=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],u=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],l=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],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],_=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,p=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function f(e,t){if(e=2?l:1===t?c:o)}e.isUnicodeIdentifierStart=g;var m,y=(m=[],a.forEach((function(e,t){m[e]=t})),m);function v(e){for(var t=new Array,r=0,n=0;r127&&C(i)&&(t.push(n),n=r)}}return t.push(n),t}function h(t,r,n,i,a){(r<0||r>=t.length)&&(a?r=r<0?0:r>=t.length?t.length-1:r:e.Debug.fail("Bad line number. Line: ".concat(r,", lineStarts.length: ").concat(t.length," , line map is correct? ").concat(void 0!==i?e.arraysEqual(t,v(i)):"unknown")));var o=t[r]+n;return a?o>t[r+1]?t[r+1]:"string"==typeof i&&o>i.length?i.length:o:(r=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function C(e){return 10===e||13===e||8232===e||8233===e}function E(e){return e>=48&&e<=57}function k(e){return E(e)||e>=65&&e<=70||e>=97&&e<=102}function A(e){return e>=48&&e<=55}e.tokenToString=function(e){return y[e]},e.stringToToken=function(e){return a.get(e)},e.computeLineStarts=v,e.getPositionOfLineAndCharacter=function(e,t,r,n){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,n):h(D(e),t,r,e.text,n)},e.computePositionOfLineAndCharacter=h,e.getLineStarts=D,e.computeLineAndCharacterOfPosition=x,e.computeLineOfPosition=b,e.getLinesBetweenPositions=function(e,t,r){if(t===r)return 0;var n=D(e),i=Math.min(t,r),a=i===r,o=a?t:r,s=b(n,i),c=b(n,o,s);return a?s-c:c-s},e.getLineAndCharacterOfPosition=function(e,t){return x(D(e),t)},e.isWhiteSpaceLike=S,e.isWhiteSpaceSingleLine=T,e.isLineBreak=C,e.isOctalDigit=A,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,a){if(e.positionIsSynthesized(r))return r;for(var o=!1;;){var s=t.charCodeAt(r);switch(s){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)return r;o=!!a;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;r127&&S(s)){r++;continue}}return r}};var F="<<<<<<<".length;function N(t,r){if(e.Debug.assert(r>=0),0===r||C(t.charCodeAt(r-1))){var n=t.charCodeAt(r);if(r+F=0&&r127&&S(g)){d&&C(g)&&(l=!0),r++;continue}break e}}return d&&(p=i(s,c,u,l,a,p)),p}function L(e,t,r,n,i){return M(!0,e,t,!1,r,n,i)}function R(e,t,r,n,i){return M(!0,e,t,!0,r,n,i)}function B(e,t,r,n,i,a){return a||(a=[]),a.push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),a}function j(e){var t=w.exec(e);if(t)return t[0]}function J(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&g(e,t)}function K(e,t,r){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||1===r&&(45===e||58===e)||e>127&&function(e,t){return f(e,t>=2?d:1===t?u:s)}(e,t)}e.isShebangTrivia=I,e.scanShebangTrivia=O,e.forEachLeadingCommentRange=function(e,t,r,n){return M(!1,e,t,!1,r,n)},e.forEachTrailingCommentRange=function(e,t,r,n){return M(!1,e,t,!0,r,n)},e.reduceEachLeadingCommentRange=L,e.reduceEachTrailingCommentRange=R,e.getLeadingCommentRanges=function(e,t){return L(e,t,B,void 0,void 0)},e.getTrailingCommentRanges=function(e,t){return R(e,t,B,void 0,void 0)},e.getShebang=j,e.isIdentifierStart=J,e.isIdentifierPart=K,e.isIdentifierText=function(e,t,r){var n=z(e,0);if(!J(n,t))return!1;for(var i=U(n);i116},isReservedWord:function(){return m>=81&&m<=116},isUnterminated:function(){return 0!=(4&v)},getCommentDirectives:function(){return h},getNumericLiteralFlags:function(){return 1008&v},getTokenFlags:function(){return v},reScanGreaterToken:function(){if(31===m){if(62===D.charCodeAt(l))return 62===D.charCodeAt(l+1)?61===D.charCodeAt(l+2)?(l+=3,m=72):(l+=2,m=49):61===D.charCodeAt(l+1)?(l+=2,m=71):(l++,m=48);if(61===D.charCodeAt(l))return l++,m=33}return m},reScanAsteriskEqualsToken:function(){return e.Debug.assert(66===m,"'reScanAsteriskEqualsToken' should only be called on a '*='"),l=g+1,m=63},reScanSlashToken:function(){if(43===m||68===m){for(var r=g+1,n=!1,i=!1;;){if(r>=d){v|=4,F(e.Diagnostics.Unterminated_regular_expression_literal);break}var a=D.charCodeAt(r);if(C(a)){v|=4,F(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=d)return m=1;var e=z(D,l);switch(l+=U(e),e){case 9:case 11:case 12:case 32:for(;l=0&&J(r,t))return l+=3,v|=8,y=X()+Z(),m=ee();var n=Q();return n>=0&&J(n,t)?(l+=6,v|=1024,y=String.fromCharCode(n)+Z(),m=ee()):(l++,m=0)}if(J(e,t)){for(var i=e;l=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=d){n+=D.substring(i,l),v|=4,F(e.Diagnostics.Unterminated_string_literal);break}var a=D.charCodeAt(l);if(a===r){n+=D.substring(i,l),l++;break}if(92!==a||t){if(C(a)&&!t){n+=D.substring(i,l),v|=4,F(e.Diagnostics.Unterminated_string_literal);break}l++}else n+=D.substring(i,l),n+=G(),i=l}return n}function H(t){for(var r,n=96===D.charCodeAt(l),i=++l,a="";;){if(l>=d){a+=D.substring(i,l),v|=4,F(e.Diagnostics.Unterminated_template_literal),r=n?14:17;break}var o=D.charCodeAt(l);if(96===o){a+=D.substring(i,l),l++,r=n?14:17;break}if(36===o&&l+1=d)return F(e.Diagnostics.Unexpected_end_of_text),"";var n=D.charCodeAt(l);switch(l++,n){case 48:return t&&l=0?String.fromCharCode(r):(F(e.Diagnostics.Hexadecimal_digit_expected),"")}function X(){var t=j(1,!1),r=t?parseInt(t,16):-1,n=!1;return r<0?(F(e.Diagnostics.Hexadecimal_digit_expected),n=!0):r>1114111&&(F(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),l>=d?(F(e.Diagnostics.Unexpected_end_of_text),n=!0):125===D.charCodeAt(l)?l++:(F(e.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":q(r)}function Q(){if(l+5=2&&117===z(D,l+1)&&123===z(D,l+2)){var e=l;l+=3;var r=j(1,!1),n=r?parseInt(r,16):-1;return l=e,n}return-1}function Z(){for(var e="",r=l;l=0&&K(n,t)){l+=3,v|=8,e+=X(),r=l;continue}if(!((n=Q())>=0&&K(n,t)))break;v|=1024,e+=D.substring(r,l),e+=q(n),r=l+=6}}return e+=D.substring(r,l)}function ee(){var e=y.length;if(e>=2&&e<=12){var t=y.charCodeAt(0);if(t>=97&&t<=122){var r=i.get(y);if(void 0!==r)return m=r}}return m=79}function te(t){for(var r="",n=!1,i=!1;;){var a=D.charCodeAt(l);if(95!==a){if(n=!0,!E(a)||a-48>=t)break;r+=D[l],l++,i=!1}else v|=512,n?(n=!1,i=!0):F(i?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),l++}return 95===D.charCodeAt(l-1)&&F(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),r}function re(){if(110===D.charCodeAt(l))return y+="n",384&v&&(y=e.parsePseudoBigInt(y)+"n"),l++,9;var t=128&v?parseInt(y.slice(2),2):256&v?parseInt(y.slice(2),8):+y;return y=""+t,8}function ne(){var r;f=l,v=0;for(var i=!1;;){if(g=l,l>=d)return m=1;var o=z(D,l);if(35===o&&0===l&&I(D,l)){if(l=O(D,l),n)continue;return m=6}switch(o){case 10:case 13:if(v|=1,n){l++;continue}return 13===o&&l+1=0&&J(b,t))return l+=3,v|=8,y=X()+Z(),m=ee();var S=Q();return S>=0&&J(S,t)?(l+=6,v|=1024,y=String.fromCharCode(S)+Z(),m=ee()):(F(e.Diagnostics.Invalid_character),l++,m=0);case 35:return 0!==l&&"!"===D[l+1]?(F(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),l++,m=0):(J(z(D,l+1),t)?(l++,ie(z(D,l),t)):(y=String.fromCharCode(z(D,l)),F(e.Diagnostics.Invalid_character,l++,U(o))),m=80);default:var k=ie(o,t);if(k)return m=k;if(T(o)){l+=U(o);continue}if(C(o)){v|=1,l+=U(o);continue}var w=U(o);return F(e.Diagnostics.Invalid_character,l,w),l+=w,m=0}}}function ie(e,t){var r=e;if(J(r,t)){for(l+=U(r);l=d)return m=1;var r=D.charCodeAt(l);if(60===r)return 47===D.charCodeAt(l+1)?(l+=2,m=30):(l++,m=29);if(123===r)return l++,m=18;for(var n=0;l0)break;S(r)||(n=l)}l++}return y=D.substring(f,l),-1===n?12:11}function se(){switch(f=l,D.charCodeAt(l)){case 34:case 39:return y=W(!0),m=10;default:return ne()}}function ce(e,t){var r=l,n=f,i=g,a=m,o=y,s=v,c=e();return c&&!t||(l=r,f=n,g=i,m=a,y=o,v=s),c}function ue(e,t,r){D=e||"",d=void 0===r?D.length:t+r,le(t||0)}function le(t){e.Debug.assert(t>=0),l=t,f=t,g=t,m=0,y=void 0,v=0}};var z=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 U(e){return e>=65536?2:1}var V=String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(t){if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var r=Math.floor((t-65536)/1024)+55296,n=(t-65536)%1024+56320;return String.fromCharCode(r,n)};function q(e){return V(e)}e.utf16EncodeAsString=q}(c||(c={})),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!!$(t)&&e.every(t.elements,l)}function l(t){return!!e.isOmittedExpression(t)||u(t.name)}function d(t){for(var r=t.parent;e.isBindingElement(r.parent);)r=r.parent.parent;return r.parent}function _(t,r){e.isBindingElement(t)&&(t=d(t));var n=r(t);return 253===t.kind&&(t=t.parent),t&&254===t.kind&&(n|=r(t),t=t.parent),t&&236===t.kind&&(n|=r(t)),n}function p(e){return 0==(8&e.flags)}function f(e){var t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function g(e){return f(e.escapedText)}function m(t){var r=t.parent.parent;if(r){if(se(r))return y(r);switch(r.kind){case 236:if(r.declarationList&&r.declarationList.declarations[0])return y(r.declarationList.declarations[0]);break;case 237:var n=r.expression;switch(220===n.kind&&63===n.operatorToken.kind&&(n=n.left),n.kind){case 205:return n.name;case 206:var i=n.argumentExpression;if(e.isIdentifier(i))return i}break;case 211:return y(r.expression);case 249:if(se(r.statement)||ne(r.statement))return y(r.statement)}}}function y(t){var r=x(t);return r&&e.isIdentifier(r)?r:void 0}function v(e){return e.name||m(e)}function h(e){return!!e.name}function D(t){switch(t.kind){case 79:return t;case 345:case 338:var r=t.name;if(160===r.kind)return r.right;break;case 207:case 220: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 343:return v(t);case 337:return m(t);case 270:var i=t.expression;return e.isIdentifier(i)?i:void 0;case 206:var a=t;if(e.isBindableStaticElementAccessExpression(a))return a.argumentExpression}return t.name}function x(t){if(void 0!==t)return D(t)||(e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isClassExpression(t)?b(t):void 0)}function b(t){if(t.parent){if(e.isPropertyAssignment(t.parent)||e.isBindingElement(t.parent))return t.parent.name;if(e.isBinaryExpression(t.parent)&&t===t.parent.right){if(e.isIdentifier(t.parent.left))return t.parent.left;if(e.isAccessExpression(t.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(t.parent.left)}else if(e.isVariableDeclaration(t.parent)&&e.isIdentifier(t.parent.name))return t.parent.name}}function S(t,r){if(t.name){if(e.isIdentifier(t.name)){var n=t.name.escapedText;return F(t.parent,r).filter((function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===n}))}var i=t.parent.parameters.indexOf(t);e.Debug.assert(i>-1,"Parameters should always be in their parents' parameter list");var a=F(t.parent,r).filter(e.isJSDocParameterTag);if(i=160}function B(e){return e>=0&&e<=159}function j(e){return 8<=e&&e<=14}function J(e){return 14<=e&&e<=17}function K(t){return(e.isPropertyDeclaration(t)||Y(t))&&e.isPrivateIdentifier(t.name)}function z(e){switch(e){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}function U(t){return!!(16476&e.modifierToFlag(t))}function V(e){return!!e&&W(e.kind)}function q(e){switch(e){case 255:case 168:case 170:case 171:case 172:case 212:case 213:return!0;default:return!1}}function W(e){switch(e){case 167:case 173:case 321:case 174:case 175:case 178:case 315:case 179:return!0;default:return q(e)}}function H(e){var t=e.kind;return 170===t||166===t||168===t||171===t||172===t||175===t||169===t||233===t}function G(e){return e&&(256===e.kind||225===e.kind)}function Y(e){switch(e.kind){case 168:case 171:case 172:return!0;default:return!1}}function X(e){var t=e.kind;return 174===t||173===t||165===t||167===t||175===t}function Q(e){var t=e.kind;return 294===t||295===t||296===t||168===t||171===t||172===t}function $(e){if(e){var t=e.kind;return 201===t||200===t}return!1}function Z(e){switch(e.kind){case 200:case 204:return!0}return!1}function ee(e){switch(e.kind){case 201:case 203:return!0}return!1}function te(e){switch(e){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 re(e){switch(e){case 218:case 219:case 214:case 215:case 216:case 217:case 210:return!0;default:return te(e)}}function ne(e){return function(e){switch(e){case 221:case 223:case 213:case 220:case 224:case 228:case 226:case 349:case 348:return!0;default:return re(e)}}(M(e).kind)}function ie(t){return e.isExportAssignment(t)||e.isExportDeclaration(t)}function ae(e){return 255===e||275===e||256===e||257===e||258===e||259===e||260===e||265===e||264===e||271===e||270===e||263===e}function oe(e){return 245===e||244===e||252===e||239===e||237===e||235===e||242===e||243===e||241===e||238===e||249===e||246===e||248===e||250===e||251===e||236===e||240===e||247===e||347===e||351===e||350===e}function se(t){return 162===t.kind?t.parent&&342!==t.parent.kind||e.isInJSFile(t):213===(r=t.kind)||202===r||256===r||225===r||169===r||170===r||259===r||297===r||274===r||255===r||212===r||171===r||266===r||264===r||269===r||257===r||284===r||168===r||167===r||260===r||263===r||267===r||273===r||163===r||294===r||166===r||165===r||172===r||295===r||258===r||162===r||253===r||343===r||336===r||345===r;var r}function ce(e){return e.kind>=325&&e.kind<=345}e.isExternalModuleNameRelative=function(t){return e.pathIsRelative(t)||e.isRootedDiskPath(t)},e.sortAndDeduplicateDiagnostics=function(t){return e.sortAndDeduplicate(t,e.compareDiagnostics)},e.getDefaultLibFileName=function(t){switch(e.getEmitScriptTarget(t)){case 99:return"lib.esnext.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}},e.textSpanEnd=t,e.textSpanIsEmpty=r,e.textSpanContainsPosition=function(e,r){return r>=e.start&&r=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=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e},e.unescapeLeadingUnderscores=f,e.idText=g,e.symbolName=function(e){return e.valueDeclaration&&K(e.valueDeclaration)?g(e.valueDeclaration.name):f(e.escapedName)},e.nodeHasName=function t(r,n){return!(!h(r)||!e.isIdentifier(r.name)||g(r.name)!==g(n))||!(!e.isVariableStatement(r)||!e.some(r.declarationList.declarations,(function(e){return t(e,n)})))},e.getNameOfJSDocTypedef=v,e.isNamedDeclaration=h,e.getNonAssignedNameOfDeclaration=D,e.getNameOfDeclaration=x,e.getAssignedName=b,e.getJSDocParameterTags=T,e.getJSDocParameterTagsNoCache=function(e){return S(e,!0)},e.getJSDocTypeParameterTags=function(e){return C(e,!1)},e.getJSDocTypeParameterTagsNoCache=function(e){return C(e,!0)},e.hasJSDocParameterTags=function(t){return!!P(t,e.isJSDocParameterTag)},e.getJSDocAugmentsTag=function(t){return P(t,e.isJSDocAugmentsTag)},e.getJSDocImplementsTags=function(t){return w(t,e.isJSDocImplementsTag)},e.getJSDocClassTag=function(t){return P(t,e.isJSDocClassTag)},e.getJSDocPublicTag=function(t){return P(t,e.isJSDocPublicTag)},e.getJSDocPublicTagNoCache=function(t){return P(t,e.isJSDocPublicTag,!0)},e.getJSDocPrivateTag=function(t){return P(t,e.isJSDocPrivateTag)},e.getJSDocPrivateTagNoCache=function(t){return P(t,e.isJSDocPrivateTag,!0)},e.getJSDocProtectedTag=function(t){return P(t,e.isJSDocProtectedTag)},e.getJSDocProtectedTagNoCache=function(t){return P(t,e.isJSDocProtectedTag,!0)},e.getJSDocReadonlyTag=function(t){return P(t,e.isJSDocReadonlyTag)},e.getJSDocReadonlyTagNoCache=function(t){return P(t,e.isJSDocReadonlyTag,!0)},e.getJSDocOverrideTagNoCache=function(t){return P(t,e.isJSDocOverrideTag,!0)},e.getJSDocDeprecatedTag=function(t){return P(t,e.isJSDocDeprecatedTag)},e.getJSDocDeprecatedTagNoCache=function(t){return P(t,e.isJSDocDeprecatedTag,!0)},e.getJSDocEnumTag=function(t){return P(t,e.isJSDocEnumTag)},e.getJSDocThisTag=function(t){return P(t,e.isJSDocThisTag)},e.getJSDocReturnTag=E,e.getJSDocTemplateTag=function(t){return P(t,e.isJSDocTemplateTag)},e.getJSDocTypeTag=k,e.getJSDocType=A,e.getJSDocReturnType=function(t){var r=E(t);if(r&&r.typeExpression)return r.typeExpression.type;var n=k(t);if(n&&n.typeExpression){var i=n.typeExpression.type;if(e.isTypeLiteralNode(i)){var a=e.find(i.members,e.isCallSignatureDeclaration);return a&&a.type}if(e.isFunctionTypeNode(i)||e.isJSDocFunctionType(i))return i.type}},e.getJSDocTags=N,e.getJSDocTagsNoCache=function(e){return F(e,!0)},e.getAllJSDocTags=w,e.getAllJSDocTagsOfKind=function(e,t){return N(e).filter((function(e){return e.kind===t}))},e.getTextOfJSDocComment=function(t){return"string"==typeof t?t:null==t?void 0:t.map((function(t){return 319===t.kind?t.text:"{@link ".concat(t.name?e.entityNameToString(t.name)+" ":"").concat(t.text,"}")})).join("")},e.getEffectiveTypeParameterDeclarations=function(t){if(e.isJSDocSignature(t))return e.emptyArray;if(e.isJSDocTypeAlias(t))return e.Debug.assert(318===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=A(t);if(n&&e.isFunctionTypeNode(n)&&n.typeParameters)return n.typeParameters}return e.emptyArray},e.getEffectiveConstraintOfTypeParameter=function(t){return t.constraint?t.constraint:e.isJSDocTemplateTag(t.parent)&&t===t.parent.typeParameters[0]?t.parent.constraint:void 0},e.isMemberName=function(e){return 79===e.kind||80===e.kind},e.isGetOrSetAccessorDeclaration=function(e){return 172===e.kind||171===e.kind},e.isPropertyAccessChain=function(t){return e.isPropertyAccessExpression(t)&&!!(32&t.flags)},e.isElementAccessChain=function(t){return e.isElementAccessExpression(t)&&!!(32&t.flags)},e.isCallChain=function(t){return e.isCallExpression(t)&&!!(32&t.flags)},e.isOptionalChain=I,e.isOptionalChainRoot=O,e.isExpressionOfOptionalChainRoot=function(e){return O(e.parent)&&e.parent.expression===e},e.isOutermostOptionalChain=function(e){return!I(e.parent)||O(e.parent)||e!==e.parent.expression},e.isNullishCoalesce=function(e){return 220===e.kind&&60===e.operatorToken.kind},e.isConstTypeReference=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"const"===t.typeName.escapedText&&!t.typeArguments},e.skipPartiallyEmittedExpressions=M,e.isNonNullChain=function(t){return e.isNonNullExpression(t)&&!!(32&t.flags)},e.isBreakOrContinueStatement=function(e){return 245===e.kind||244===e.kind},e.isNamedExportBindings=function(e){return 273===e.kind||272===e.kind},e.isUnparsedTextLike=L,e.isUnparsedNode=function(e){return L(e)||298===e.kind||302===e.kind},e.isJSDocPropertyLikeTag=function(e){return 345===e.kind||338===e.kind},e.isNode=function(e){return R(e.kind)},e.isNodeKind=R,e.isTokenKind=B,e.isToken=function(e){return B(e.kind)},e.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},e.isLiteralKind=j,e.isLiteralExpression=function(e){return j(e.kind)},e.isTemplateLiteralKind=J,e.isTemplateLiteralToken=function(e){return J(e.kind)},e.isTemplateMiddleOrTemplateTail=function(e){var t=e.kind;return 16===t||17===t},e.isImportOrExportSpecifier=function(t){return e.isImportSpecifier(t)||e.isExportSpecifier(t)},e.isTypeOnlyImportOrExportDeclaration=function(e){switch(e.kind){case 269:case 274:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 267:return e.parent.isTypeOnly;case 266:case 264:return e.isTypeOnly;default:return!1}},e.isAssertionKey=function(t){return e.isStringLiteral(t)||e.isIdentifier(t)},e.isStringTextContainingNode=function(e){return 10===e.kind||J(e.kind)},e.isGeneratedIdentifier=function(t){return e.isIdentifier(t)&&(7&t.autoGenerateFlags)>0},e.isPrivateIdentifierClassElementDeclaration=K,e.isPrivateIdentifierPropertyAccessExpression=function(t){return e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name)},e.isModifierKind=z,e.isParameterPropertyModifier=U,e.isClassMemberModifier=function(e){return U(e)||124===e||158===e},e.isModifier=function(e){return z(e.kind)},e.isEntityName=function(e){var t=e.kind;return 160===t||79===t},e.isPropertyName=function(e){var t=e.kind;return 79===t||80===t||10===t||8===t||161===t},e.isBindingName=function(e){var t=e.kind;return 79===t||200===t||201===t},e.isFunctionLike=V,e.isFunctionLikeOrClassStaticBlockDeclaration=function(t){return!!t&&(W(t.kind)||e.isClassStaticBlockDeclaration(t))},e.isFunctionLikeDeclaration=function(e){return e&&q(e.kind)},e.isBooleanLiteral=function(e){return 110===e.kind||95===e.kind},e.isFunctionLikeKind=W,e.isFunctionOrModuleBlock=function(t){return e.isSourceFile(t)||e.isModuleBlock(t)||e.isBlock(t)&&V(t.parent)},e.isClassElement=H,e.isClassLike=G,e.isAccessor=function(e){return e&&(171===e.kind||172===e.kind)},e.isMethodOrAccessor=Y,e.isTypeElement=X,e.isClassOrTypeElement=function(e){return X(e)||H(e)},e.isObjectLiteralElementLike=Q,e.isTypeNode=function(t){return e.isTypeNodeKind(t.kind)},e.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 178:case 179:return!0}return!1},e.isBindingPattern=$,e.isAssignmentPattern=function(e){var t=e.kind;return 203===t||204===t},e.isArrayBindingElement=function(e){var t=e.kind;return 202===t||226===t},e.isDeclarationBindingElement=function(e){switch(e.kind){case 253:case 163:case 202:return!0}return!1},e.isBindingOrAssignmentPattern=function(e){return Z(e)||ee(e)},e.isObjectBindingOrAssignmentPattern=Z,e.isObjectBindingOrAssignmentElement=function(e){switch(e.kind){case 202:case 294:case 295:case 296:return!0}return!1},e.isArrayBindingOrAssignmentPattern=ee,e.isPropertyAccessOrQualifiedNameOrImportTypeNode=function(e){var t=e.kind;return 205===t||160===t||199===t},e.isPropertyAccessOrQualifiedName=function(e){var t=e.kind;return 205===t||160===t},e.isCallLikeExpression=function(e){switch(e.kind){case 279:case 278:case 207:case 208:case 209:case 164:return!0;default:return!1}},e.isCallOrNewExpression=function(e){return 207===e.kind||208===e.kind},e.isTemplateLiteral=function(e){var t=e.kind;return 222===t||14===t},e.isLeftHandSideExpression=function(e){return te(M(e).kind)},e.isUnaryExpression=function(e){return re(M(e).kind)},e.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 219:return!0;case 218:return 45===e.operator||46===e.operator;default:return!1}},e.isExpression=ne,e.isAssertionExpression=function(e){var t=e.kind;return 210===t||228===t},e.isNotEmittedOrPartiallyEmittedNode=function(t){return e.isNotEmittedStatement(t)||e.isPartiallyEmittedExpression(t)},e.isIterationStatement=function e(t,r){switch(t.kind){case 241:case 242:case 243:case 239:case 240:return!0;case 249:return r&&e(t.statement,r)}return!1},e.isScopeMarker=ie,e.hasScopeMarker=function(t){return e.some(t,ie)},e.needsScopeMarker=function(t){return!(e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1)||e.isAmbientModule(t))},e.isExternalModuleIndicator=function(t){return e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1)},e.isForInOrOfStatement=function(e){return 242===e.kind||243===e.kind},e.isConciseBody=function(t){return e.isBlock(t)||ne(t)},e.isFunctionBody=function(t){return e.isBlock(t)},e.isForInitializer=function(t){return e.isVariableDeclarationList(t)||ne(t)},e.isModuleBody=function(e){var t=e.kind;return 261===t||260===t||79===t},e.isNamespaceBody=function(e){var t=e.kind;return 261===t||260===t},e.isJSDocNamespaceBody=function(e){var t=e.kind;return 79===t||260===t},e.isNamedImportBindings=function(e){var t=e.kind;return 268===t||267===t},e.isModuleOrEnumDeclaration=function(e){return 260===e.kind||259===e.kind},e.isDeclaration=se,e.isDeclarationStatement=function(e){return ae(e.kind)},e.isStatementButNotDeclaration=function(e){return oe(e.kind)},e.isStatement=function(t){var r=t.kind;return oe(r)||ae(r)||function(t){if(234!==t.kind)return!1;if(void 0!==t.parent&&(251===t.parent.kind||291===t.parent.kind))return!1;return!e.isFunctionBlock(t)}(t)},e.isStatementOrBlock=function(e){var t=e.kind;return oe(t)||ae(t)||234===t},e.isModuleReference=function(e){var t=e.kind;return 276===t||160===t||79===t},e.isJsxTagNameExpression=function(e){var t=e.kind;return 108===t||79===t||205===t},e.isJsxChild=function(e){var t=e.kind;return 277===t||287===t||278===t||11===t||281===t},e.isJsxAttributeLike=function(e){var t=e.kind;return 284===t||286===t},e.isStringLiteralOrJsxExpression=function(e){var t=e.kind;return 10===t||287===t},e.isJsxOpeningLikeElement=function(e){var t=e.kind;return 279===t||278===t},e.isCaseOrDefaultClause=function(e){var t=e.kind;return 288===t||289===t},e.isJSDocNode=function(e){return e.kind>=307&&e.kind<=345},e.isJSDocCommentContainingNode=function(t){return 318===t.kind||317===t.kind||319===t.kind||le(t)||ce(t)||e.isJSDocTypeLiteral(t)||e.isJSDocSignature(t)},e.isJSDocTag=ce,e.isSetAccessor=function(e){return 172===e.kind},e.isGetAccessor=function(e){return 171===e.kind},e.hasJSDocNodes=function(e){var t=e.jsDoc;return!!t&&t.length>0},e.hasType=function(e){return!!e.type},e.hasInitializer=function(e){return!!e.initializer},e.hasOnlyExpressionInitializer=function(e){switch(e.kind){case 253:case 163:case 202:case 165:case 166:case 294:case 297:return!0;default:return!1}},e.isObjectLiteralElement=function(e){return 284===e.kind||286===e.kind||Q(e)},e.isTypeReferenceType=function(e){return 177===e.kind||227===e.kind};var ue=1073741823;function le(e){return 322===e.kind||323===e.kind||324===e.kind}e.guessIndentation=function(t){for(var r=ue,n=0,i=t;n=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 f(e){return!p(e)}function g(e,t,n){if(void 0===t||0===t.length)return e;for(var i=0;i0?h(t._children[0],r,n):e.skipTrivia((r||d(t)).text,t.pos,!1,!1,Se(t))}function D(e,t,r){return void 0===r&&(r=!1),x(e.text,t,r)}function x(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(t){return!!e.findAncestor(t,e.isJSDocTypeExpression)}(r)&&(i=i.split(/\r\n|\n|\r/).map((function(t){return e.trimStringStart(t.replace(/^\s*\*/,""))})).join("\n")),i}function b(e,t){return void 0===t&&(t=!1),D(d(e),e,t)}function S(e){return e.pos}function T(e){var t=e.emitNode;return t&&t.flags||0}function C(e){var t=Ft(e);return 253===t.kind&&291===t.parent.kind}function E(t){return e.isModuleDeclaration(t)&&(10===t.name.kind||A(t))}function k(t){return e.isModuleDeclaration(t)||e.isIdentifier(t)}function A(e){return!!(1024&e.flags)}function F(e){return E(e)&&N(e)}function N(t){switch(t.parent.kind){case 303:return e.isExternalModule(t.parent);case 261:return E(t.parent.parent)&&e.isSourceFile(t.parent.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function P(t){var r;return null===(r=t.declarations)||void 0===r?void 0:r.find((function(t){return!(F(t)||e.isModuleDeclaration(t)&&A(t))}))}function w(t,r){switch(t.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(r)}return!1}function I(t){switch(t.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(t),!1}}function O(e){switch(e.kind){case 265:case 264:return!0;default:return!1}}function M(t){return O(t)||e.isExportDeclaration(t)}function L(t){return e.findAncestor(t.parent,(function(e){return w(e,e.parent)}))}function R(e){return e&&0!==u(e)?b(e):"(Missing)"}function B(t){switch(t.kind){case 79:case 80:return t.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(t.text);case 161:return bt(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 j(t){switch(t.kind){case 108:return"this";case 80:case 79:return 0===u(t)?e.idText(t):b(t);case 160:return j(t.left)+"."+j(t.right);case 205:return e.isIdentifier(t.name)||e.isPrivateIdentifier(t.name)?j(t.expression)+"."+j(t.name):e.Debug.assertNever(t.name);case 309:return j(t.left)+j(t.right);default:return e.Debug.assertNever(t)}}function J(e,t,r,n,i,a,o){var s=V(e,t);return hn(e,s.start,s.length,r,n,i,a,o)}function K(t,r,n){e.Debug.assertGreaterThanOrEqual(r,0),e.Debug.assertGreaterThanOrEqual(n,0),t&&(e.Debug.assertLessThanOrEqual(r,t.text.length),e.Debug.assertLessThanOrEqual(r+n,t.text.length))}function z(e,t,r,n,i){return K(e,t,r),{file:e,start:t,length:r,code:n.code,category:n.category,messageText:n.next?n:n.messageText,relatedInformation:i}}function U(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 V(t,r){var n=r;switch(r.kind){case 303:var i=e.skipTrivia(t.text,0,!1);return i===t.text.length?e.createTextSpan(0,0):U(t,i);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:n=r.name;break;case 213:return function(t,r){var n=e.skipTrivia(t.text,r.pos);if(r.body&&234===r.body.kind){var i=e.getLineAndCharacterOfPosition(t,r.body.pos).line;if(i0?r.statements[0].pos:r.end;return e.createTextSpanFromBounds(a,o)}if(void 0===n)return U(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 q(e){return 6===e.scriptKind}function W(t){return!!(2&e.getCombinedNodeFlags(t))}function H(e){return 207===e.kind&&100===e.expression.kind}function G(t){return e.isImportTypeNode(t)&&e.isLiteralTypeNode(t.argument)&&e.isStringLiteral(t.argument.literal)}function Y(e){return 237===e.kind&&10===e.expression.kind}function X(e){return!!(1048576&T(e))}function Q(t){return e.isIdentifier(t.name)&&!t.initializer}e.changesAffectModuleResolution=function(e,t){return e.configFilePath!==t.configFilePath||s(e,t)},e.optionsHaveModuleResolutionChanges=s,e.changesAffectingProgramStructure=function(t,r){return c(t,r,e.optionsAffectingProgramStructure)},e.optionsHaveChanges=c,e.forEachAncestor=function(t,r){for(;;){var n=r(t);if("quit"===n)return;if(void 0!==n)return n;if(e.isSourceFile(t))return;t=t.parent}},e.forEachEntry=function(e,t){for(var r=e.entries(),n=r.next();!n.done;n=r.next()){var i=n.value,a=i[0],o=t(i[1],a);if(o)return o}},e.forEachKey=function(e,t){for(var r=e.keys(),n=r.next();!n.done;n=r.next()){var i=t(n.value);if(i)return i}},e.copyEntries=function(e,t){e.forEach((function(e,r){t.set(r,e)}))},e.usingSingleLineStringWriter=function(e){var t=o.getText();try{return e(o),o.getText()}finally{o.clear(),o.writeKeyword(t)}},e.getFullWidth=u,e.getResolvedModule=function(e,t,r){return e&&e.resolvedModules&&e.resolvedModules.get(t,r)},e.setResolvedModule=function(t,r,n,i){t.resolvedModules||(t.resolvedModules=e.createModeAwareCache()),t.resolvedModules.set(r,i,n)},e.setResolvedTypeReferenceDirective=function(t,r,n){t.resolvedTypeReferenceDirectiveNames||(t.resolvedTypeReferenceDirectiveNames=e.createModeAwareCache()),t.resolvedTypeReferenceDirectiveNames.set(r,void 0,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,n=e.version,i=r?"".concat(t,"/").concat(r):t;return"".concat(i,"@").concat(n)},e.typeDirectiveIsEqualTo=function(e,t){return e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary&&e.originalPath===t.originalPath},e.hasChangesInResolutions=function(t,r,n,i,a){e.Debug.assert(t.length===r.length);for(var o=0;o=0),e.getLineStarts(r)[t]},e.nodePosToString=function(t){var r=d(t),n=e.getLineAndCharacterOfPosition(r,t.pos);return"".concat(r.fileName,"(").concat(n.line+1,",").concat(n.character+1,")")},e.getEndLinePosition=_,e.isFileLevelUniqueName=function(e,t,r){return!(r&&r(t)||e.identifiers.has(t))},e.nodeIsMissing=p,e.nodeIsPresent=f,e.insertStatementsAfterStandardPrologue=function(e,t){return g(e,t,Y)},e.insertStatementsAfterCustomPrologue=function(e,t){return g(e,t,y)},e.insertStatementAfterStandardPrologue=function(e,t){return m(e,t,Y)},e.insertStatementAfterCustomPrologue=function(e,t){return m(e,t,y)},e.isRecognizedTripleSlashComment=function(t,r,n){if(47===t.charCodeAt(r+1)&&r+2=e.ModuleKind.ES2015||!r.noImplicitUseStrict)))},e.isBlockScope=w,e.isDeclarationWithTypeParameters=function(t){switch(t.kind){case 336:case 343:case 321:return!0;default:return e.assertType(t),I(t)}},e.isDeclarationWithTypeParameterChildren=I,e.isAnyImportSyntax=O,e.isLateVisibilityPaintedStatement=function(e){switch(e.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.hasPossibleExternalModuleReference=function(t){return M(t)||e.isModuleDeclaration(t)||e.isImportTypeNode(t)||H(t)},e.isAnyImportOrReExport=M,e.getEnclosingBlockScopeContainer=L,e.forEachEnclosingBlockScopeContainer=function(e,t){for(var r=L(e);r;)t(r),r=L(r)},e.declarationNameToString=R,e.getNameFromIndexInfo=function(e){return e.declaration?R(e.declaration.parameters[0].name):void 0},e.isComputedNonLiteralName=function(e){return 161===e.kind&&!bt(e.expression)},e.getTextOfPropertyName=B,e.entityNameToString=j,e.createDiagnosticForNode=function(e,t,r,n,i,a){return J(d(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 hn(t,c,r.end-c,n,i,a,o,s)},e.createDiagnosticForNodeInSourceFile=J,e.createDiagnosticForNodeFromMessageChain=function(e,t,r){var n=d(e),i=V(n,e);return z(n,i.start,i.length,t,r)},e.createFileDiagnosticFromMessageChain=z,e.createDiagnosticForFileFromMessageChain=function(e,t,r){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}},e.createDiagnosticForRange=function(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}},e.getSpanOfTokenAtPosition=U,e.getErrorSpanForNode=V,e.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},e.isJsonSourceFile=q,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=W,e.isLet=function(t){return!!(1&e.getCombinedNodeFlags(t))},e.isSuperCall=function(e){return 207===e.kind&&106===e.expression.kind},e.isImportCall=H,e.isImportMeta=function(t){return e.isMetaProperty(t)&&100===t.keywordToken&&"meta"===t.name.escapedText},e.isLiteralImportTypeNode=G,e.isPrologueDirective=Y,e.isCustomPrologue=X,e.isHoistedFunction=function(t){return X(t)&&e.isFunctionDeclaration(t)},e.isHoistedVariableStatement=function(t){return X(t)&&e.isVariableStatement(t)&&e.every(t.declarationList.declarations,Q)},e.getLeadingCommentRangesOfNode=function(t,r){return 11!==t.kind?e.getLeadingCommentRanges(r.text,t.pos):void 0},e.getJSDocCommentRanges=function(t,r){var n=163===t.kind||162===t.kind||212===t.kind||213===t.kind||211===t.kind||253===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*/;var $=/^(\/\/\/\s*/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/;var Z,ee,te,re,ne=/^(\/\/\/\s*/;function ie(t){if(176<=t.kind&&t.kind<=199)return!0;switch(t.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 216!==t.parent.kind;case 227:return!Kr(t);case 162:return 194===t.parent.kind||189===t.parent.kind;case 79:(160===t.parent.kind&&t.parent.right===t||205===t.parent.kind&&t.parent.name===t)&&(t=t.parent),e.Debug.assert(79===t.kind||160===t.kind||205===t.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 160:case 205:case 108:var r=t.parent;if(180===r.kind)return!1;if(199===r.kind)return!r.isTypeOf;if(176<=r.kind&&r.kind<=199)return!0;switch(r.kind){case 227:return!Kr(r);case 162:case 342:return t===r.constraint;case 166:case 165:case 163:case 253:case 255:case 212:case 213:case 170:case 168:case 167:case 171:case 172:case 173:case 174:case 175:case 210:return t===r.type;case 207:case 208:return e.contains(r.typeArguments,t);case 209:return!1}}return!1}function ae(e){if(e)switch(e.kind){case 202:case 297:case 163:case 294:case 166:case 165:case 295:case 253:return!0}return!1}function oe(e){return 254===e.parent.kind&&236===e.parent.parent.kind}function se(e,t,r){return e.properties.filter((function(e){if(294===e.kind){var n=B(e.name);return t===n||!!r&&r===n}return!1}))}function ce(t){if(t&&t.statements.length){var r=t.statements[0].expression;return e.tryCast(r,e.isObjectLiteralExpression)}}function ue(t,r){var n=ce(t);return n?se(n,r):e.emptyArray}function le(t,r){for(e.Debug.assert(303!==t.kind);;){if(!(t=t.parent))return e.Debug.fail();switch(t.kind){case 161:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 164:163===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 213:if(!r)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 t}}}function de(e){var t=e.kind;return(205===t||206===t)&&106===e.expression.kind}function _e(t,r,n){if(e.isNamedDeclaration(t)&&e.isPrivateIdentifier(t.name))return!1;switch(t.kind){case 256:return!0;case 166:return 256===r.kind;case 171:case 172:case 168:return void 0!==t.body&&256===r.kind;case 163:return void 0!==r.body&&(170===r.kind||168===r.kind||172===r.kind)&&256===n.kind}return!1}function pe(e,t,r){return void 0!==e.decorators&&_e(e,t,r)}function fe(e,t,r){return pe(e,t,r)||ge(e,t)}function ge(t,r){switch(t.kind){case 256:return e.some(t.members,(function(e){return fe(e,t,r)}));case 168:case 172:case 170:return e.some(t.parameters,(function(e){return pe(e,t,r)}));default:return!1}}function me(e){var t=e.parent;return(279===t.kind||278===t.kind||280===t.kind)&&t.tagName===e}function ye(t){switch(t.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(;160===t.parent.kind;)t=t.parent;return 180===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||me(t);case 309:for(;e.isJSDocMemberName(t.parent);)t=t.parent;return 180===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||me(t);case 80:return e.isBinaryExpression(t.parent)&&t.parent.left===t&&101===t.parent.operatorToken.kind;case 79:if(180===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||me(t))return!0;case 8:case 9:case 10:case 14:case 108:return ve(t);default:return!1}}function ve(e){var t=e.parent;switch(t.kind){case 253:case 163:case 166:case 165:case 297:case 294:case 202:return t.initializer===e;case 237:case 238:case 239:case 240:case 246:case 247:case 248:case 288:case 250:return t.expression===e;case 241:var r=t;return r.initializer===e&&254!==r.initializer.kind||r.condition===e||r.incrementor===e;case 242:case 243:var n=t;return n.initializer===e&&254!==n.initializer.kind||n.expression===e;case 210:case 228:case 232:case 161:return e===t.expression;case 164:case 287:case 286:case 296:return!0;case 227:return t.expression===e&&Kr(t);case 295:return t.objectAssignmentInitializer===e;default:return ye(t)}}function he(e){for(;160===e.kind||79===e.kind;)e=e.parent;return 180===e.kind}function De(e){return 264===e.kind&&276===e.moduleReference.kind}function xe(e){return be(e)}function be(e){return!!e&&!!(131072&e.flags)}function Se(e){return!!e&&!!(4194304&e.flags)}function Te(t,r){if(207!==t.kind)return!1;var n=t,i=n.expression,a=n.arguments;if(79!==i.kind||"require"!==i.escapedText)return!1;if(1!==a.length)return!1;var o=a[0];return!r||e.isStringLiteralLike(o)}function Ce(t){return 202===t.kind&&(t=t.parent.parent),e.isVariableDeclaration(t)&&!!t.initializer&&Te(sn(t.initializer),!0)}function Ee(t){return e.isBinaryExpression(t)||on(t)||e.isIdentifier(t)||e.isCallExpression(t)}function ke(t){return be(t)&&t.initializer&&e.isBinaryExpression(t.initializer)&&(56===t.initializer.operatorToken.kind||60===t.initializer.operatorToken.kind)&&t.name&&zr(t.name)&&Fe(t.name,t.initializer.left)?t.initializer.right:t.initializer}function Ae(t,r){if(e.isCallExpression(t)){var n=lt(t.expression);return 212===n.kind||213===n.kind?t:void 0}return 212===t.kind||225===t.kind||213===t.kind||e.isObjectLiteralExpression(t)&&(0===t.properties.length||r)?t:void 0}function Fe(t,r){if(kt(t)&&kt(r))return At(t)===At(r);if(e.isIdentifier(t)&&Le(r)&&(108===r.expression.kind||e.isIdentifier(r.expression)&&("window"===r.expression.escapedText||"self"===r.expression.escapedText||"global"===r.expression.escapedText))){var n=Ke(r);return e.isPrivateIdentifier(n)&&e.Debug.fail("Unexpected PrivateIdentifier in name expression with literal-like access."),Fe(t,n)}return!(!Le(t)||!Le(r))&&(Ue(t)===Ue(r)&&Fe(t.expression,r.expression))}function Ne(e){for(;Jr(e,!0);)e=e.right;return e}function Pe(t){return e.isIdentifier(t)&&"exports"===t.escapedText}function we(t){return e.isIdentifier(t)&&"module"===t.escapedText}function Ie(t){return(e.isPropertyAccessExpression(t)||Re(t))&&we(t.expression)&&"exports"===Ue(t)}function Oe(t){var r=function(t){if(e.isCallExpression(t)){if(!Me(t))return 0;var r=t.arguments[0];return Pe(r)||Ie(r)?8:Be(r)&&"prototype"===Ue(r)?9:7}if(63!==t.operatorToken.kind||!on(t.left)||function(t){return e.isVoidExpression(t)&&e.isNumericLiteral(t.expression)&&"0"===t.expression.text}(Ne(t)))return 0;if(Je(t.left.expression,!0)&&"prototype"===Ue(t.left)&&e.isObjectLiteralExpression(qe(t)))return 6;return Ve(t.left)}(t);return 5===r||be(t)?r:0}function Me(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)&&bt(t.arguments[1])&&Je(t.arguments[0],!0)}function Le(t){return e.isPropertyAccessExpression(t)||Re(t)}function Re(t){return e.isElementAccessExpression(t)&&bt(t.argumentExpression)}function Be(t,r){return e.isPropertyAccessExpression(t)&&(!r&&108===t.expression.kind||e.isIdentifier(t.name)&&Je(t.expression,!0))||je(t,r)}function je(e,t){return Re(e)&&(!t&&108===e.expression.kind||zr(e.expression)||Be(e.expression,!0))}function Je(e,t){return zr(e)||Be(e,t)}function Ke(t){return e.isPropertyAccessExpression(t)?t.name:t.argumentExpression}function ze(t){if(e.isPropertyAccessExpression(t))return t.name;var r=lt(t.argumentExpression);return e.isNumericLiteral(r)||e.isStringLiteralLike(r)?r:t}function Ue(t){var r=ze(t);if(r){if(e.isIdentifier(r))return r.escapedText;if(e.isStringLiteralLike(r)||e.isNumericLiteral(r))return e.escapeLeadingUnderscores(r.text)}}function Ve(t){if(108===t.expression.kind)return 4;if(Ie(t))return 2;if(Je(t.expression,!0)){if(Vr(t.expression))return 3;for(var r=t;!e.isIdentifier(r.expression);)r=r.expression;var n=r.expression;if(("exports"===n.escapedText||"module"===n.escapedText&&"exports"===Ue(r))&&Be(t))return 1;if(Je(t,!0)||e.isElementAccessExpression(t)&&Ct(t))return 5}return 0}function qe(t){for(;e.isBinaryExpression(t.right);)t=t.right;return t.right}function We(t){switch(t.parent.kind){case 265:case 271:return t.parent;case 276:return t.parent.parent;case 207:return H(t.parent)||Te(t.parent,!1)?t.parent:void 0;case 195:return e.Debug.assert(e.isStringLiteral(t)),e.tryCast(t.parent.parent,e.isImportTypeNode);default:return}}function He(t){switch(t.kind){case 265:case 271:return t.moduleSpecifier;case 264:return 276===t.moduleReference.kind?t.moduleReference.expression:void 0;case 199:return G(t)?t.argument.literal:void 0;case 207:return t.arguments[0];case 260:return 10===t.name.kind?t.name:void 0;default:return e.Debug.assertNever(t)}}function Ge(e){return 343===e.kind||336===e.kind||337===e.kind}function Ye(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&0!==Oe(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 Xe(e){switch(e.kind){case 236:var t=Qe(e);return t&&t.initializer;case 166:case 294:return e.initializer}}function Qe(t){return e.isVariableStatement(t)?e.firstOrUndefined(t.declarationList.declarations):void 0}function $e(t){return e.isModuleDeclaration(t)&&t.body&&260===t.body.kind?t.body:void 0}function Ze(t,r){if(e.isJSDoc(r)){var n=e.filter(r.tags,(function(e){return et(t,e)}));return r.tags===n?[r]:n}return et(t,r)?[r]:void 0}function et(t,r){return!(e.isJSDocTypeTag(r)&&r.parent&&e.isJSDoc(r.parent)&&e.isParenthesizedExpression(r.parent.parent)&&r.parent.parent!==t)}function tt(t){var r=t.parent;return 294===r.kind||270===r.kind||166===r.kind||237===r.kind&&205===t.kind||246===r.kind||$e(r)||e.isBinaryExpression(t)&&63===t.operatorToken.kind?r:r.parent&&(Qe(r.parent)===t||e.isBinaryExpression(r)&&63===r.operatorToken.kind)?r.parent:r.parent&&r.parent.parent&&(Qe(r.parent.parent)||Xe(r.parent.parent)===t||Ye(r.parent.parent))?r.parent.parent:void 0}function rt(t){var r=nt(t);return r&&e.isFunctionLike(r)?r:void 0}function nt(t){var r=it(t);if(r)return Ye(r)||function(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&63===t.expression.operatorToken.kind?Ne(t.expression):void 0}(r)||Xe(r)||Qe(r)||$e(r)||r}function it(t){var r=at(t);if(r){var n=r.parent;return n&&n.jsDoc&&r===e.lastOrUndefined(n.jsDoc)?n:void 0}}function at(t){return e.findAncestor(t.parent,e.isJSDoc)}function ot(t){var r=e.isJSDocParameterTag(t)?t.typeExpression&&t.typeExpression.type:t.type;return void 0!==t.dotDotDotToken||!!r&&316===r.kind}function st(e){for(var t=e.parent;;){switch(t.kind){case 220:var r=t.operatorToken.kind;return Rr(r)&&t.left===e?63===r||Lr(r)?1:2:0;case 218:case 219:var n=t.operator;return 45===n||46===n?2:0;case 242:case 243:return t.initializer===e?1:0;case 211:case 203:case 224:case 229:e=t;break;case 296:e=t.parent;break;case 295:if(t.name!==e)return 0;e=t.parent;break;case 294:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function ct(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function ut(e){return ct(e,211)}function lt(t,r){var n=r?17:1;return e.skipOuterExpressions(t,n)}function dt(t){return zr(t)||e.isClassExpression(t)}function _t(e){return dt(pt(e))}function pt(t){return e.isExportAssignment(t)?t.expression:t.right}function ft(t){var r=gt(t);if(r&&be(t)){var n=e.getJSDocAugmentsTag(t);if(n)return n.class}return r}function gt(e){var t=vt(e.heritageClauses,94);return t&&t.types.length>0?t.types[0]:void 0}function mt(t){if(be(t))return e.getJSDocImplementsTags(t).map((function(e){return e.class}));var r=vt(t.heritageClauses,117);return null==r?void 0:r.types}function yt(e){var t=vt(e.heritageClauses,94);return t?t.types:void 0}function vt(e,t){if(e)for(var r=0,n=e;r0&&e.every(t.declarationList.declarations,(function(e){return Ce(e)}))},e.isSingleOrDoubleQuote=function(e){return 39===e||34===e},e.isStringDoubleQuoted=function(e,t){return 34===D(t,e).charCodeAt(0)},e.isAssignmentDeclaration=Ee,e.getEffectiveInitializer=ke,e.getDeclaredExpandoInitializer=function(e){var t=ke(e);return t&&Ae(t,Vr(e.name))},e.getAssignedExpandoInitializer=function(t){if(t&&t.parent&&e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind){var r=Vr(t.parent.left);return Ae(t.parent.right,r)||function(t,r,n){var i=e.isBinaryExpression(r)&&(56===r.operatorToken.kind||60===r.operatorToken.kind)&&Ae(r.right,n);if(i&&Fe(t,r.left))return i}(t.parent.left,t.parent.right,r)}if(t&&e.isCallExpression(t)&&Me(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&&Ae(t.initializer,r)}))}(t.arguments[2],"prototype"===t.arguments[1].text);if(n)return n}},e.getExpandoInitializer=Ae,e.isDefaultedExpandoInitializer=function(t){var r=e.isVariableDeclaration(t.parent)?t.parent.name:e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind?t.parent.left:void 0;return r&&Ae(t.right,Vr(r))&&zr(r)&&Fe(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(63===r.operatorToken.kind&&e.isIdentifier(r.left))return r.left}else if(e.isVariableDeclaration(t.parent))return t.parent.name},e.isSameEntityName=Fe,e.getRightMostAssignedExpression=Ne,e.isExportsIdentifier=Pe,e.isModuleIdentifier=we,e.isModuleExportsAccessExpression=Ie,e.getAssignmentDeclarationKind=Oe,e.isBindableObjectDefinePropertyCall=Me,e.isLiteralLikeAccess=Le,e.isLiteralLikeElementAccess=Re,e.isBindableStaticAccessExpression=Be,e.isBindableStaticElementAccessExpression=je,e.isBindableStaticNameExpression=Je,e.getNameOrArgument=Ke,e.getElementOrPropertyAccessArgumentExpressionOrName=ze,e.getElementOrPropertyAccessName=Ue,e.getAssignmentDeclarationPropertyAccessKind=Ve,e.getInitializerOfBinaryExpression=qe,e.isPrototypePropertyAssignment=function(t){return e.isBinaryExpression(t)&&3===Oe(t)},e.isSpecialPropertyDeclaration=function(t){return be(t)&&t.parent&&237===t.parent.kind&&(!e.isElementAccessExpression(t)||Re(t))&&!!e.getJSDocTypeTag(t.parent)},e.setValueDeclaration=function(e,t){var r=e.valueDeclaration;(!r||(!(8388608&t.flags)||8388608&r.flags)&&Ee(r)&&!Ee(t)||r.kind!==t.kind&&k(r))&&(e.valueDeclaration=t)},e.isFunctionSymbol=function(t){if(!t||!t.valueDeclaration)return!1;var r=t.valueDeclaration;return 255===r.kind||e.isVariableDeclaration(r)&&r.initializer&&e.isFunctionLike(r.initializer)},e.tryGetModuleSpecifierFromDeclaration=function(t){var r,n,i;switch(t.kind){case 253:return t.initializer.arguments[0].text;case 265:return null===(r=e.tryCast(t.moduleSpecifier,e.isStringLiteralLike))||void 0===r?void 0:r.text;case 264:return null===(i=e.tryCast(null===(n=e.tryCast(t.moduleReference,e.isExternalModuleReference))||void 0===n?void 0:n.expression,e.isStringLiteralLike))||void 0===i?void 0:i.text;default:e.Debug.assertNever(t)}},e.importFromModuleSpecifier=function(t){return We(t)||e.Debug.failBadSyntaxKind(t.parent)},e.tryGetImportFromModuleSpecifier=We,e.getExternalModuleName=He,e.getNamespaceDeclarationNode=function(t){switch(t.kind){case 265:return t.importClause&&e.tryCast(t.importClause.namedBindings,e.isNamespaceImport);case 264:return t;case 271:return t.exportClause&&e.tryCast(t.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(t)}},e.isDefaultImport=function(e){return 265===e.kind&&!!e.importClause&&!!e.importClause.name},e.forEachImportClauseDeclaration=function(t,r){var n;if(t.name&&(n=r(t)))return n;if(t.namedBindings&&(n=e.isNamespaceImport(t.namedBindings)?r(t.namedBindings):e.forEach(t.namedBindings.elements,r)))return n},e.hasQuestionToken=function(e){if(e)switch(e.kind){case 163:case 168:case 167:case 295:case 294:case 166:case 165: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=Ge,e.isTypeAlias=function(t){return Ge(t)||e.isTypeAliasDeclaration(t)},e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Xe,e.getSingleVariableOfVariableStatement=Qe,e.getJSDocCommentsAndTags=function(t,r){var n;ae(t)&&e.hasInitializer(t)&&e.hasJSDocNodes(t.initializer)&&(n=e.addRange(n,Ze(t,e.last(t.initializer.jsDoc))));for(var i=t;i&&i.parent;){if(e.hasJSDocNodes(i)&&(n=e.addRange(n,Ze(t,e.last(i.jsDoc)))),163===i.kind){n=e.addRange(n,(r?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(i));break}if(162===i.kind){n=e.addRange(n,(r?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(i));break}i=tt(i)}return n||e.emptyArray},e.getNextJSDocCommentLocation=tt,e.getParameterSymbolFromJSDoc=function(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t.name)){var r=t.name.escapedText,n=rt(t);if(n){var i=e.find(n.parameters,(function(e){return 79===e.name.kind&&e.name.escapedText===r}));return i&&i.symbol}}},e.getEffectiveContainerForJSDocTemplateTag=function(t){if(e.isJSDoc(t.parent)&&t.parent.tags){var r=e.find(t.parent.tags,Ge);if(r)return r}return rt(t)},e.getHostSignatureFromJSDoc=rt,e.getEffectiveJSDocHost=nt,e.getJSDocHost=it,e.getJSDocRoot=at,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&&ot(r)},e.isRestParameter=ot,e.hasTypeArguments=function(e){return!!e.typeArguments},(Z=e.AssignmentKind||(e.AssignmentKind={}))[Z.None=0]="None",Z[Z.Definite=1]="Definite",Z[Z.Compound=2]="Compound",e.getAssignmentTargetKind=st,e.isAssignmentTarget=function(e){return 0!==st(e)},e.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.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.isValueSignatureDeclaration=function(t){return e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isMethodOrAccessor(t)||e.isFunctionDeclaration(t)||e.isConstructorDeclaration(t)},e.walkUpParenthesizedTypes=function(e){return ct(e,190)},e.walkUpParenthesizedExpressions=ut,e.walkUpParenthesizedTypesAndGetParentAndChild=function(e){for(var t;e&&190===e.kind;)t=e,e=e.parent;return[t,e]},e.skipParentheses=lt,e.isDeleteTarget=function(e){return(205===e.kind||206===e.kind)&&((e=ut(e.parent))&&214===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 79: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!==Oe(i)&&(i.left.symbol||i.symbol)&&e.getNameOfDeclaration(i)===t?i:void 0;case 80:return e.isDeclaration(r)&&r.name===t?r:void 0;default:return}},e.isLiteralComputedPropertyDeclarationName=function(t){return bt(t)&&161===t.parent.kind&&e.isDeclaration(t.parent.parent)},e.isIdentifierName=function(e){var t=e.parent;switch(t.kind){case 166:case 165:case 168:case 167:case 171:case 172:case 297:case 294:case 205:return t.name===e;case 160:return t.right===e;case 202:case 269:return t.propertyName===e;case 274:case 284:return!0}return!1},e.isAliasSymbolDeclaration=function(t){return 264===t.kind||263===t.kind||266===t.kind&&!!t.name||267===t.kind||273===t.kind||269===t.kind||274===t.kind||270===t.kind&&_t(t)||e.isBinaryExpression(t)&&2===Oe(t)&&_t(t)||e.isPropertyAccessExpression(t)&&e.isBinaryExpression(t.parent)&&t.parent.left===t&&63===t.parent.operatorToken.kind&&dt(t.parent.right)||295===t.kind||294===t.kind&&dt(t.initializer)},e.getAliasDeclarationFromName=function e(t){switch(t.parent.kind){case 266:case 269:case 267:case 274:case 270:case 264:return t.parent;case 160:do{t=t.parent}while(160===t.parent.kind);return e(t)}},e.isAliasableExpression=dt,e.exportAssignmentIsAlias=_t,e.getExportAssignmentExpression=pt,e.getPropertyAssignmentAliasLikeExpression=function(e){return 295===e.kind?e.name:294===e.kind?e.initializer:e.parent.right},e.getEffectiveBaseTypeNode=ft,e.getClassExtendsHeritageElement=gt,e.getEffectiveImplementsTypeNodes=mt,e.getAllSuperTypeNodes=function(t){return e.isInterfaceDeclaration(t)?yt(t)||e.emptyArray:e.isClassLike(t)&&e.concatenate(e.singleElementArray(ft(t)),mt(t))||e.emptyArray},e.getInterfaceBaseTypeNodes=yt,e.getHeritageClause=vt,e.getAncestor=function(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}},e.isKeyword=ht,e.isContextualKeyword=Dt,e.isNonContextualKeyword=xt,e.isFutureReservedKeyword=function(e){return 117<=e&&e<=125},e.isStringANonContextualKeyword=function(t){var r=e.stringToToken(t);return void 0!==r&&xt(r)},e.isStringAKeyword=function(t){var r=e.stringToToken(t);return void 0!==r&&ht(r)},e.isIdentifierANonContextualKeyword=function(e){var t=e.originalKeywordKind;return!!t&&!Dt(t)},e.isTrivia=function(e){return 2<=e&&e<=7},(ee=e.FunctionFlags||(e.FunctionFlags={}))[ee.Normal=0]="Normal",ee[ee.Generator=1]="Generator",ee[ee.Async=2]="Async",ee[ee.Invalid=4]="Invalid",ee[ee.AsyncGenerator=3]="AsyncGenerator",e.getFunctionFlags=function(e){if(!e)return 4;var t=0;switch(e.kind){case 255:case 212:case 168:e.asteriskToken&&(t|=1);case 213:Sr(e,256)&&(t|=2)}return e.body||(t|=4),t},e.isAsyncFunction=function(e){switch(e.kind){case 255:case 212:case 213:case 168:return void 0!==e.body&&void 0===e.asteriskToken&&Sr(e,256)}return!1},e.isStringOrNumericLiteralLike=bt,e.isSignedNumericLiteral=St,e.hasDynamicName=Tt,e.isDynamicName=Ct,e.getPropertyNameForPropertyNameNode=Et,e.isPropertyNameLiteral=kt,e.getTextOfIdentifierOrLiteral=At,e.getEscapedTextOfIdentifierOrLiteral=function(t){return e.isMemberName(t)?t.escapedText:e.escapeLeadingUnderscores(t.text)},e.getPropertyNameForUniqueESSymbol=function(t){return"__@".concat(e.getSymbolId(t),"@").concat(t.escapedName)},e.getSymbolNameForPrivateIdentifier=function(t,r){return"__#".concat(e.getSymbolId(t),"@").concat(r)},e.isKnownSymbol=function(t){return e.startsWith(t.escapedName,"__@")},e.isPrivateIdentifierSymbol=function(t){return e.startsWith(t.escapedName,"__#")},e.isESSymbolIdentifier=function(e){return 79===e.kind&&"Symbol"===e.escapedText},e.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},e.isParameterDeclaration=function(e){return 163===Ft(e).kind},e.getRootDeclaration=Ft,e.nodeStartsNewLexicalEnvironment=function(e){var t=e.kind;return 170===t||212===t||255===t||213===t||168===t||171===t||172===t||260===t||303===t},e.nodeIsSynthesized=Nt,e.getOriginalSourceFile=function(t){return e.getParseTreeNode(t,e.isSourceFile)||t},(te=e.Associativity||(e.Associativity={}))[te.Left=0]="Left",te[te.Right=1]="Right",e.getExpressionAssociativity=function(e){var t=wt(e),r=208===e.kind&&void 0!==e.arguments;return Pt(e.kind,t,r)},e.getOperatorAssociativity=Pt,e.getExpressionPrecedence=function(e){var t=wt(e),r=208===e.kind&&void 0!==e.arguments;return It(e.kind,t,r)},e.getOperator=wt,(re=e.OperatorPrecedence||(e.OperatorPrecedence={}))[re.Comma=0]="Comma",re[re.Spread=1]="Spread",re[re.Yield=2]="Yield",re[re.Assignment=3]="Assignment",re[re.Conditional=4]="Conditional",re[re.Coalesce=4]="Coalesce",re[re.LogicalOR=5]="LogicalOR",re[re.LogicalAND=6]="LogicalAND",re[re.BitwiseOR=7]="BitwiseOR",re[re.BitwiseXOR=8]="BitwiseXOR",re[re.BitwiseAND=9]="BitwiseAND",re[re.Equality=10]="Equality",re[re.Relational=11]="Relational",re[re.Shift=12]="Shift",re[re.Additive=13]="Additive",re[re.Multiplicative=14]="Multiplicative",re[re.Exponentiation=15]="Exponentiation",re[re.Unary=16]="Unary",re[re.Update=17]="Update",re[re.LeftHandSide=18]="LeftHandSide",re[re.Member=19]="Member",re[re.Primary=20]="Primary",re[re.Highest=20]="Highest",re[re.Lowest=0]="Lowest",re[re.Invalid=-1]="Invalid",e.getOperatorPrecedence=It,e.getBinaryOperatorPrecedence=Ot,e.getSemanticJsxChildren=function(t){return e.filter(t,(function(e){switch(e.kind){case 287:return!!e.expression;case 11:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}}))},e.createDiagnosticCollection=function(){var t=[],r=[],n=new e.Map,i=!1;return{add:function(a){var o;a.file?(o=n.get(a.file.fileName))||(o=[],n.set(a.file.fileName,o),e.insertSorted(r,a.file.fileName,e.compareStringsCaseSensitive)):(i&&(i=!1,t=t.slice()),o=t);e.insertSorted(o,a,bn)},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,Sn);if(a>=0)return i[a];return},getGlobalDiagnostics:function(){return i=!0,t},getDiagnostics:function(i){if(i)return n.get(i)||[];var a=e.flatMapToMutable(r,(function(e){return n.get(e)}));if(!t.length)return a;return a.unshift.apply(a,t),a}}};var Mt=/\$\{/g;e.hasInvalidEscape=function(t){return t&&!!(e.isNoSubstitutionTemplateLiteral(t)?t.templateFlags:t.head.templateFlags||e.some(t.templateSpans,(function(e){return!!e.literal.templateFlags})))};var Lt=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Rt=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Bt=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,jt=new e.Map(e.getEntries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"}));function Jt(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function Kt(e,t,r){if(0===e.charCodeAt(0)){var n=r.charCodeAt(t+e.length);return n>=48&&n<=57?"\\x00":"\\0"}return jt.get(e)||Jt(e.charCodeAt(0))}function zt(e,t){var r=96===t?Bt:39===t?Rt:Lt;return e.replace(r,Kt)}e.escapeString=zt;var Ut=/[^\u0000-\u007F]/g;function Vt(e,t){return e=zt(e,t),Ut.test(e)?e.replace(Ut,(function(e){return Jt(e.charCodeAt(0))})):e}e.escapeNonAsciiString=Vt;var qt=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,Wt=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,Ht=new e.Map(e.getEntries({'"':""","'":"'"}));function Gt(e){return 0===e.charCodeAt(0)?"�":Ht.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Yt(e,t){var r=39===t?Wt:qt;return e.replace(r,Gt)}e.escapeJsxAttributeString=Yt,e.stripQuotes=function(e){var t,r=e.length;return r>=2&&e.charCodeAt(0)===e.charCodeAt(r-1)&&(39===(t=e.charCodeAt(0))||34===t||96===t)?e.substring(1,r-1):e},e.isIntrinsicJsxName=function(t){var r=t.charCodeAt(0);return r>=97&&r<=122||e.stringContains(t,"-")||e.stringContains(t,":")};var Xt=[""," "];function Qt(e){for(var t=Xt[1],r=Xt.length;r<=e;r++)Xt.push(Xt[r-1]+t);return Xt[e]}function $t(){return Xt[1].length}function Zt(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function er(e,t,r){return t.moduleName||rr(e,t.fileName,r&&r.fileName)}function tr(t,r){return t.getCanonicalFileName(e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()))}function rr(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=oi(e.getRelativePathToDirectoryOrUrl(a,o,a,i,!1));return n?e.ensurePathIsNonModuleName(s):s}function nr(e,t,r,n,i){var a=t.declarationDir||t.outDir,o=a?cr(e,a,r,n,i):e,s=ir(o);return oi(o)+s}function ir(t){return e.fileExtensionIsOneOf(t,[".mjs",".mts"])?".d.mts":e.fileExtensionIsOneOf(t,[".cjs",".cts"])?".d.cts":e.fileExtensionIsOneOf(t,[".json"])?".json.d.ts":".d.ts"}function ar(e){return e.outFile||e.out}function or(e,t,r){return!(t.getCompilerOptions().noEmitForJsFiles&&xe(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&(r||!(q(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&!t.isSourceOfProjectReferenceRedirect(e.fileName))}function sr(e,t,r){return cr(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),(function(e){return t.getCanonicalFileName(e)}))}function cr(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 ur(t,r,n){t.length>e.getRootLength(t)&&!n(t)&&(ur(e.getDirectoryPath(t),r,n),r(t))}function lr(t,r){return e.computeLineOfPosition(t,r)}function dr(t){return e.find(t.members,(function(t){return e.isConstructorDeclaration(t)&&f(t.body)}))}function _r(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&pr(e.parameters[0]);return e.parameters[t?1:0]}}function pr(e){return fr(e.name)}function fr(e){return!!e&&79===e.kind&&gr(e)}function gr(e){return 108===e.originalKeywordKind}function mr(t){if(be(t)||!e.isFunctionDeclaration(t)){var r=t.type;return r||!be(t)?r:e.isJSDocPropertyLikeTag(t)?t.typeExpression&&t.typeExpression.type:e.getJSDocType(t)}}function yr(e,t,r,n){vr(e,t,r.pos,n)}function vr(e,t,r,n){n&&n.length&&r!==n[0].pos&&lr(e,r)!==lr(e,n[0].pos)&&t.writeLine()}function hr(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=0&&e.kind<=159?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|Ir(e)),!t||4096&e.modifierFlagsCache||!r&&!be(e)||!e.parent||(e.modifierFlagsCache|=4096|wr(e)),-536875009&e.modifierFlagsCache)}function Nr(e){return Fr(e,!0)}function Pr(e){return Fr(e,!1)}function wr(t){var r=0;return t.parent&&!e.isParameter(t)&&(be(t)&&(e.getJSDocPublicTagNoCache(t)&&(r|=4),e.getJSDocPrivateTagNoCache(t)&&(r|=8),e.getJSDocProtectedTagNoCache(t)&&(r|=16),e.getJSDocReadonlyTagNoCache(t)&&(r|=64),e.getJSDocOverrideTagNoCache(t)&&(r|=16384)),e.getJSDocDeprecatedTagNoCache(t)&&(r|=8192)),r}function Ir(e){var t=Or(e.modifiers);return(4&e.flags||79===e.kind&&e.isInJSDocNamespace)&&(t|=1),t}function Or(e){var t=0;if(e)for(var r=0,n=e;r=63&&e<=78}function Br(e){var t=jr(e);return t&&!t.isImplements?t.class:void 0}function jr(t){return e.isExpressionWithTypeArguments(t)&&e.isHeritageClause(t.parent)&&e.isClassLike(t.parent.parent)?{class:t.parent.parent,isImplements:117===t.parent.token}:void 0}function Jr(t,r){return e.isBinaryExpression(t)&&(r?63===t.operatorToken.kind:Rr(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function Kr(e){return void 0!==Br(e)}function zr(e){return 79===e.kind||Ur(e)}function Ur(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&zr(t.expression)}function Vr(e){return Be(e)&&"prototype"===Ue(e)}e.getIndentString=Qt,e.getIndentSize=$t,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=Qt(n)+e,i=!1),r+=e,c(e))}function l(e){e&&(s=!1),u(e)}function d(){r="",n=0,i=!0,a=0,o=0,s=!1}return d(),{write:l,rawWrite:function(e){void 0!==e&&(r+=e,c(e),s=!1)},writeLiteral:function(e){e&&e.length&&l(e)},writeLine:function(e){i&&!e||(a++,o=(r+=t).length,i=!0,s=!1)},increaseIndent:function(){n++},decreaseIndent:function(){n--},getIndent:function(){return n},getTextPos:function(){return r.length},getLine:function(){return a},getColumn:function(){return i?n*$t():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:d,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:function(){return!1},writeKeyword:l,writeOperator:l,writeParameter:l,writeProperty:l,writePunctuation:l,writeSpace:l,writeStringLiteral:l,writeSymbol:function(e,t){return l(e)},writeTrailingSemicolon:l,writeComment:function(e){e&&(s=!0),u(e)},getTextPosWithWriteLine:function(){return i?r.length:r.length+t.length}}},e.getTrailingSemicolonDeferringWriter=function(e){var t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return n(n({},e),{writeTrailingSemicolon:function(){t=!0},writeLiteral:function(t){r(),e.writeLiteral(t)},writeStringLiteral:function(t){r(),e.writeStringLiteral(t)},writeSymbol:function(t,n){r(),e.writeSymbol(t,n)},writePunctuation:function(t){r(),e.writePunctuation(t)},writeKeyword:function(t){r(),e.writeKeyword(t)},writeOperator:function(t){r(),e.writeOperator(t)},writeParameter:function(t){r(),e.writeParameter(t)},writeSpace:function(t){r(),e.writeSpace(t)},writeProperty:function(t){r(),e.writeProperty(t)},writeComment:function(t){r(),e.writeComment(t)},writeLine:function(){r(),e.writeLine()},increaseIndent:function(){r(),e.increaseIndent()},decreaseIndent:function(){r(),e.decreaseIndent()}})},e.hostUsesCaseSensitiveFileNames=Zt,e.hostGetCanonicalFileName=function(t){return e.createGetCanonicalFileName(Zt(t))},e.getResolvedExternalModuleName=er,e.getExternalModuleNameFromDeclaration=function(t,r,n){var i=r.getExternalModuleFileFromDeclaration(n);if(i&&!i.isDeclarationFile){var a=He(n);if(!a||!e.isStringLiteralLike(a)||e.pathIsRelative(a.text)||-1!==tr(t,i.path).indexOf(tr(t,e.ensureTrailingDirectorySeparator(t.getCommonSourceDirectory()))))return er(t,i)}},e.getExternalModuleNameFromPath=rr,e.getOwnEmitOutputFilePath=function(e,t,r){var n=t.getCompilerOptions();return(n.outDir?oi(sr(e,t,n.outDir)):oi(e))+r},e.getDeclarationEmitOutputFilePath=function(e,t){return nr(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),(function(e){return t.getCanonicalFileName(e)}))},e.getDeclarationEmitOutputFilePathWorker=nr,e.getDeclarationEmitExtensionForPath=ir,e.outFile=ar,e.getPathsBasePath=function(t,r){var n,i;if(t.paths)return null!==(n=t.baseUrl)&&void 0!==n?n:e.Debug.checkDefined(t.pathsBasePath||(null===(i=r.getCurrentDirectory)||void 0===i?void 0:i.call(r)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")},e.getSourceFilesToEmit=function(t,r,n){var i=t.getCompilerOptions();if(ar(i)){var a=En(i),o=i.emitDeclarationOnly||a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),(function(r){return(o||!e.isExternalModule(r))&&or(r,t,n)}))}var s=void 0===r?t.getSourceFiles():[r];return e.filter(s,(function(e){return or(e,t,n)}))},e.sourceFileMayBeEmitted=or,e.getSourceFilePathInNewDir=sr,e.getSourceFilePathInNewDirWorker=cr,e.writeFile=function(t,r,n,i,a,o){t.writeFile(n,i,a,(function(t){r.add(Dn(e.Diagnostics.Could_not_write_file_0_Colon_1,n,t))}),o)},e.writeFileEnsuringDirectories=function(t,r,n,i,a,o){try{i(t,r,n)}catch(s){ur(e.getDirectoryPath(e.normalizePath(t)),a,o),i(t,r,n)}},e.getLineOfLocalPosition=function(t,r){var n=e.getLineStarts(t);return e.computeLineOfPosition(n,r)},e.getLineOfLocalPositionFromLineMap=lr,e.getFirstConstructorWithBody=dr,e.getSetAccessorValueParameter=_r,e.getSetAccessorTypeAnnotationNode=function(e){var t=_r(e);return t&&t.type},e.getThisParameter=function(t){if(t.parameters.length&&!e.isJSDocSignature(t)){var r=t.parameters[0];if(pr(r))return r}},e.parameterIsThisKeyword=pr,e.isThisIdentifier=fr,e.isThisInTypeQuery=function(t){if(!fr(t))return!1;for(;e.isQualifiedName(t.parent)&&t.parent.left===t;)t=t.parent;return 180===t.parent.kind},e.identifierIsThisKeyword=gr,e.getAllAccessorDeclarations=function(t,r){var n,i,a,o;return Tt(r)?(n=r,171===r.kind?a=r:172===r.kind?o=r:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,(function(t){e.isAccessor(t)&&Tr(t)===Tr(r)&&(Et(t.name)===Et(r.name)&&(n?i||(i=t):n=t,171!==t.kind||a||(a=t),172!==t.kind||o||(o=t)))})),{firstAccessor:n,secondAccessor:i,getAccessor:a,setAccessor:o}},e.getEffectiveTypeAnnotationNode=mr,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||(be(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)&&!(318===t.parent.kind&&t.parent.tags.some(Ge))}(t)?t.typeParameters:void 0}))},e.getEffectiveSetAccessorTypeAnnotationNode=function(e){var t=_r(e);return t&&mr(t)},e.emitNewLineBeforeLeadingComments=yr,e.emitNewLineBeforeLeadingCommentsOfPosition=vr,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,t,r,n){r!==n&&lr(e,r)!==lr(e,n)&&t.writeLine()},e.emitComments=hr,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=[],d=void 0,_=0,p=c;_=g+2)break}l.push(f),d=f}if(l.length){g=lr(r,e.last(l).end);lr(r,e.skipTrivia(t,a.pos))>=g+2&&(yr(r,n,a,c),hr(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,d=s.line;l0){var f=p%$t(),g=Qt((p-f)/$t());for(n.rawWrite(g);f;)n.rawWrite(" "),f--}else n.rawWrite("")}Dr(t,a,n,o,l,_),l=_}else n.writeComment(t.substring(i,a))},e.hasEffectiveModifiers=function(e){return 0!==Nr(e)},e.hasSyntacticModifiers=function(e){return 0!==Pr(e)},e.hasEffectiveModifier=br,e.hasSyntacticModifier=Sr,e.isStatic=Tr,e.hasStaticModifier=Cr,e.hasOverrideModifier=function(e){return br(e,16384)},e.hasAbstractModifier=function(e){return Sr(e,128)},e.hasAmbientModifier=function(e){return Sr(e,2)},e.hasEffectiveReadonlyModifier=Er,e.getSelectedEffectiveModifierFlags=kr,e.getSelectedSyntacticModifierFlags=Ar,e.getEffectiveModifierFlags=Nr,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=function(e){return Fr(e,!0,!0)},e.getSyntacticModifierFlags=Pr,e.getEffectiveModifierFlagsNoCache=function(e){return Ir(e)|wr(e)},e.getSyntacticModifierFlagsNoCache=Ir,e.modifiersToFlags=Or,e.modifierToFlag=Mr,e.createModifiers=function(t){return t?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(t)):void 0},e.isLogicalOperator=function(e){return 56===e||55===e||53===e},e.isLogicalOrCoalescingAssignmentOperator=Lr,e.isLogicalOrCoalescingAssignmentExpression=function(e){return Lr(e.operatorToken.kind)},e.isAssignmentOperator=Rr,e.tryGetClassExtendingExpressionWithTypeArguments=Br,e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=jr,e.isAssignmentExpression=Jr,e.isLeftHandSideOfAssignment=function(e){return Jr(e.parent)&&e.parent.left===e},e.isDestructuringAssignment=function(e){if(Jr(e,!0)){var t=e.left.kind;return 204===t||203===t}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=Kr,e.isEntityNameExpression=zr,e.getFirstIdentifier=function(e){switch(e.kind){case 79:return e;case 160:do{e=e.left}while(79!==e.kind);return e;case 205:do{e=e.expression}while(79!==e.kind);return e}},e.isDottedName=function e(t){return 79===t.kind||108===t.kind||106===t.kind||230===t.kind||205===t.kind&&e(t.expression)||211===t.kind&&e(t.expression)},e.isPropertyAccessEntityNameExpression=Ur,e.tryGetPropertyAccessOrIdentifierToString=function t(r){if(e.isPropertyAccessExpression(r)){if(void 0!==(n=t(r.expression)))return n+"."+j(r.name)}else if(e.isElementAccessExpression(r)){var n;if(void 0!==(n=t(r.expression))&&e.isPropertyName(r.argumentExpression))return n+"."+Et(r.argumentExpression)}else if(e.isIdentifier(r))return e.unescapeLeadingUnderscores(r.escapedText)},e.isPrototypeAccess=Vr,e.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 160===e.parent.kind&&e.parent.right===e||205===e.parent.kind&&e.parent.name===e},e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName=function(t){return e.isQualifiedName(t.parent)&&t.parent.right===t||e.isPropertyAccessExpression(t.parent)&&t.parent.name===t||e.isJSDocMemberName(t.parent)&&t.parent.right===t},e.isEmptyObjectLiteral=function(e){return 204===e.kind&&0===e.properties.length},e.isEmptyArrayLiteral=function(e){return 203===e.kind&&0===e.elements.length},e.getLocalSymbolForExportDefault=function(t){if(function(t){return t&&e.length(t.declarations)>0&&Sr(t.declarations[0],512)}(t)&&t.declarations)for(var r=0,n=t.declarations;r>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>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+=qr.charAt(r)+qr.charAt(n)+qr.charAt(i)+qr.charAt(a),c+=3;return o}e.convertToBase64=Wr,e.base64encode=function(e,t){return e&&e.base64encode?e.base64encode(t):Wr(t)},e.base64decode=function(e,t){if(e&&e.base64decode)return e.base64decode(t);for(var r=t.length,n=[],i=0;i>4&3,l=(15&o)<<4|s>>2&15,d=(3&s)<<6|63&c;0===l&&0!==s?n.push(u):0===d&&0!==c?n.push(u,l):n.push(u,l,d),i+=4}return function(e){for(var t="",r=0,n=e.length;r=t||-1===r),{pos:t,end:r}}function Yr(e,t){return Gr(t,e.end)}function Xr(e){return e.decorators&&e.decorators.length>0?Yr(e,e.decorators.end):e}function Qr(e,t,r){return $r(Zr(e,r,!1),t.end,r)}function $r(t,r,n){return 0===e.getLinesBetweenPositions(n,t,r)}function Zr(t,r,n){return li(t.pos)?-1:e.skipTrivia(r.text,t.pos,!1,n)}function en(e){return void 0!==e.initializer}function tn(e){return 33554432&e.flags?e.checkFlags:0}function rn(t){var r=t.parent;if(!r)return 0;switch(r.kind){case 211:case 203:return rn(r);case 219:case 218:var n=r.operator;return 45===n||46===n?c():0;case 220:var i=r,a=i.left,o=i.operatorToken;return a===t&&Rr(o.kind)?63===o.kind?1:c():0;case 205:return r.name!==t?0:rn(r);case 294:var s=rn(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 295:return t===r.objectAssignmentInitializer?0:rn(r.parent);default:return 0}function c(){return r.parent&&237===ut(r.parent).kind?1:2}}function nn(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 an(t){var r;return null===(r=t.declarations)||void 0===r?void 0:r.find(e.isClassLike)}function on(e){return 205===e.kind||206===e.kind}function sn(e){for(;on(e);)e=e.expression;return e}function cn(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 un(t,r){this.flags=r,(e.Debug.isDebugging||e.tracing)&&(this.checker=t)}function ln(t,r){this.flags=r,e.Debug.isDebugging&&(this.checker=t)}function dn(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 _n(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0}function pn(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.flowNode=void 0}function fn(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||function(e){return e}}function gn(t,r,n){return void 0===n&&(n=0),t.replace(/{(\d+)}/g,(function(t,i){return""+e.Debug.checkDefined(r[+i+n])}))}function mn(t){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[t.key]||t.message}function yn(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function vn(t,r){var n=r.fileName||"",i=r.text.length;e.Debug.assertEqual(t.fileName,n),e.Debug.assertLessThanOrEqual(t.start,i),e.Debug.assertLessThanOrEqual(t.start+t.length,i);var a={file:r,start:t.start,length:t.length,messageText:t.messageText,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary};if(t.relatedInformation){a.relatedInformation=[];for(var o=0,s=t.relatedInformation;o4&&(i=gn(i,arguments,4)),{file:e,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated}}function Dn(e){var t=mn(e);return arguments.length>1&&(t=gn(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function xn(e){return e.file?e.file.path:void 0}function bn(t,r){return Sn(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 bn(e,r.relatedInformation[t])}))||0;return t.relatedInformation?-1:1}(t,r)||0}function Sn(t,r){return e.compareStringsCaseSensitive(xn(t),xn(r))||e.compareValues(t.start,r.start)||e.compareValues(t.length,r.length)||e.compareValues(t.code,r.code)||Tn(t.messageText,r.messageText)||0}function Tn(t,r){if("string"==typeof t&&"string"==typeof r)return e.compareStringsCaseSensitive(t,r);if("string"==typeof t)return-1;if("string"==typeof r)return 1;var n=e.compareStringsCaseSensitive(t.messageText,r.messageText);if(n)return n;if(!t.next&&!r.next)return 0;if(!t.next)return-1;if(!r.next)return 1;for(var i=Math.min(t.next.length,r.next.length),a=0;ar.next.length?1:0}function Cn(t){return t.target||t.module===e.ModuleKind.Node12&&7||t.module===e.ModuleKind.NodeNext&&99||0}function En(t){return"number"==typeof t.module?t.module:Cn(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function kn(t){if(void 0!==t.esModuleInterop)return t.esModuleInterop;switch(En(t)){case e.ModuleKind.Node12:case e.ModuleKind.NodeNext:return!0}}function An(e){return!(!e.declaration&&!e.composite)}function Fn(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function Nn(e){return void 0===e.allowJs?!!e.checkJs:e.allowJs}function Pn(e,t){return t.strictFlag?Fn(e,t.name):e[t.name]}function wn(t,r,n,i){for(var a=e.getPathComponents(e.getNormalizedAbsolutePath(t,n)),o=e.getPathComponents(e.getNormalizedAbsolutePath(r,n)),s=!1;a.length>=2&&o.length>=2&&!In(a[a.length-2],i)&&!In(o[o.length-2],i)&&i(a[a.length-1])===i(o[o.length-1]);)a.pop(),o.pop(),s=!0;return s?[e.getPathFromPathComponents(a),e.getPathFromPathComponents(o)]:void 0}function In(t,r){return void 0!==t&&("node_modules"===r(t)||e.startsWith(t,"@"))}e.getNewLineCharacter=function(t,r){switch(t.newLine){case 0:return"\r\n";case 1:return"\n"}return r?r():e.sys?e.sys.newLine:"\r\n"},e.createRange=Gr,e.moveRangeEnd=function(e,t){return Gr(e.pos,t)},e.moveRangePos=Yr,e.moveRangePastDecorators=Xr,e.moveRangePastModifiers=function(e){return e.modifiers&&e.modifiers.length>0?Yr(e,e.modifiers.end):Xr(e)},e.isCollapsedRange=function(e){return e.pos===e.end},e.createTokenRange=function(t,r){return Gr(t,t+e.tokenToString(r).length)},e.rangeIsOnSingleLine=function(e,t){return Qr(e,e,t)},e.rangeStartPositionsAreOnSameLine=function(e,t,r){return $r(Zr(e,r,!1),Zr(t,r,!1),r)},e.rangeEndPositionsAreOnSameLine=function(e,t,r){return $r(e.end,t.end,r)},e.rangeStartIsOnSameLineAsRangeEnd=Qr,e.rangeEndIsOnSameLineAsRangeStart=function(e,t,r){return $r(e.end,Zr(t,r,!1),r)},e.getLinesBetweenRangeEndAndRangeStart=function(t,r,n,i){var a=Zr(r,n,i);return e.getLinesBetweenPositions(n,t.end,a)},e.getLinesBetweenRangeEndPositions=function(t,r,n){return e.getLinesBetweenPositions(n,t.end,r.end)},e.isNodeArrayMultiLine=function(e,t){return!$r(e.pos,e.end,t)},e.positionsAreOnSameLine=$r,e.getStartPositionOfRange=Zr,e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=function(t,r,n,i){var a=e.skipTrivia(n.text,t,!1,i),o=function(t,r,n){void 0===r&&(r=0);for(;t-- >r;)if(!e.isWhiteSpaceLike(n.text.charCodeAt(t)))return t}(a,r,n);return e.getLinesBetweenPositions(n,null!=o?o:r,a)},e.getLinesBetweenPositionAndNextNonWhitespaceCharacter=function(t,r,n,i){var a=e.skipTrivia(n.text,t,!1,i);return e.getLinesBetweenPositions(n,t,Math.min(r,a))},e.isDeclarationNameOfEnumOrNamespace=function(t){var r=e.getParseTreeNode(t);if(r)switch(r.parent.kind){case 259:case 260:return r===r.parent.name}return!1},e.getInitializedVariables=function(t){return e.filter(t.declarations,en)},e.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},e.closeFileWatcher=function(e){e.close()},e.getCheckFlags=tn,e.getDeclarationModifierFlagsFromSymbol=function(t,r){if(void 0===r&&(r=!1),t.valueDeclaration){var n=r&&t.declarations&&e.find(t.declarations,(function(e){return 172===e.kind}))||t.valueDeclaration,i=e.getCombinedModifierFlags(n);return t.parent&&32&t.parent.flags?i:-29&i}if(6&tn(t)){var a=t.checkFlags;return(1024&a?8:256&a?4:16)|(2048&a?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===rn(e)},e.isWriteAccess=function(e){return 0!==rn(e)},function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(Hr||(Hr={})),e.compareDataObjects=function e(t,r){if(!t||!r||Object.keys(t).length!==Object.keys(r).length)return!1;for(var n in t)if("object"==typeof t[n]){if(!e(t[n],r[n]))return!1}else if("function"!=typeof t[n]&&t[n]!==r[n])return!1;return!0},e.clearMap=function(e,t){e.forEach(t),e.clear()},e.mutateMapSkippingNewValues=nn,e.mutateMap=function(e,t,r){nn(e,t,r);var n=r.createNewValue;t.forEach((function(t,r){e.has(r)||e.set(r,n(r,t))}))},e.isAbstractConstructorSymbol=function(e){if(32&e.flags){var t=an(e);return!!t&&Sr(t,128)}return!1},e.getClassLikeDeclarationOfSymbol=an,e.getObjectFlags=function(e){return 3899393&e.flags?e.objectFlags:0},e.typeHasCallOrConstructSignatures=function(e,t){return 0!==t.getSignaturesOfType(e,0).length||0!==t.getSignaturesOfType(e,1).length},e.forSomeAncestorDirectory=function(t,r){return!!e.forEachAncestorDirectory(t,(function(e){return!!r(e)||void 0}))},e.isUMDExportSymbol=function(t){return!!t&&!!t.declarations&&!!t.declarations[0]&&e.isNamespaceExportDeclaration(t.declarations[0])},e.showModuleSpecifier=function(t){var r=t.moduleSpecifier;return e.isStringLiteral(r)?r.text:b(r)},e.getLastChild=function(t){var r;return e.forEachChild(t,(function(e){f(e)&&(r=e)}),(function(e){for(var t=e.length-1;t>=0;t--)if(f(e[t])){r=e[t];break}})),r},e.addToSeen=function(e,t,r){return void 0===r&&(r=!0),!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>=176&&e<=199||130===e||154===e||146===e||157===e||147===e||133===e||149===e||150===e||114===e||152===e||143===e||227===e||310===e||311===e||312===e||313===e||314===e||315===e||316===e},e.isAccessExpression=on,e.getNameOfAccessExpression=function(t){return 205===t.kind?t.name:(e.Debug.assert(206===t.kind),t.argumentExpression)},e.isBundleFileTextLike=function(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}},e.isNamedImportsOrExports=function(e){return 268===e.kind||272===e.kind},e.getLeftmostAccessExpression=sn,e.getLeftmostExpression=function(e,t){for(;;){switch(e.kind){case 219:e=e.operand;continue;case 220:e=e.left;continue;case 221:e=e.condition;continue;case 209:e=e.tag;continue;case 207:if(t)return e;case 228:case 206:case 205:case 229:case 348:e=e.expression;continue}return e}},e.objectAllocator={getNodeConstructor:function(){return dn},getTokenConstructor:function(){return _n},getIdentifierConstructor:function(){return pn},getPrivateIdentifierConstructor:function(){return dn},getSourceFileConstructor:function(){return dn},getSymbolConstructor:function(){return cn},getTypeConstructor:function(){return un},getSignatureConstructor:function(){return ln},getSourceMapSourceConstructor:function(){return fn}},e.setObjectAllocator=function(t){e.objectAllocator=t},e.formatStringFromArgs=gn,e.setLocalizedDiagnosticMessages=function(t){e.localizedDiagnosticMessages=t},e.getLocaleSpecificMessage=mn,e.createDetachedDiagnostic=function(e,t,r,n){K(void 0,t,r);var i=mn(n);return arguments.length>4&&(i=gn(i,arguments,4)),{file:void 0,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary,fileName:e}},e.attachFileToDiagnostics=function(e,t){for(var r=[],n=0,i=e;n2&&(r=gn(r,arguments,2)),r},e.createCompilerDiagnostic=Dn,e.createCompilerDiagnosticFromMessageChain=function(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}},e.chainDiagnosticMessages=function(e,t){var r=mn(t);return arguments.length>2&&(r=gn(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=bn,e.compareDiagnosticsSkipRelatedInformation=Sn,e.getLanguageVariant=function(e){return 4===e||2===e||1===e||6===e?1:0},e.getEmitScriptTarget=Cn,e.getEmitModuleKind=En,e.getEmitModuleResolutionKind=function(t){var r=t.moduleResolution;if(void 0===r)switch(En(t)){case e.ModuleKind.CommonJS:r=e.ModuleResolutionKind.NodeJs;break;case e.ModuleKind.Node12:r=e.ModuleResolutionKind.Node12;break;case e.ModuleKind.NodeNext:r=e.ModuleResolutionKind.NodeNext;break;default:r=e.ModuleResolutionKind.Classic}return r},e.hasJsonModuleEmitEnabled=function(t){switch(En(t)){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.unreachableCodeIsError=function(e){return!1===e.allowUnreachableCode},e.unusedLabelIsError=function(e){return!1===e.allowUnusedLabels},e.getAreDeclarationMapsEnabled=function(e){return!(!An(e)||!e.declarationMap)},e.getESModuleInterop=kn,e.getAllowSyntheticDefaultImports=function(t){var r=En(t);return void 0!==t.allowSyntheticDefaultImports?t.allowSyntheticDefaultImports:kn(t)||r===e.ModuleKind.System},e.getEmitDeclarations=An,e.shouldPreserveConstEnums=function(e){return!(!e.preserveConstEnums&&!e.isolatedModules)},e.isIncrementalCompilation=function(e){return!(!e.incremental&&!e.composite)},e.getStrictOptionValue=Fn,e.getAllowJSCompilerOption=Nn,e.getUseDefineForClassFields=function(e){return void 0===e.useDefineForClassFields?99===Cn(e):e.useDefineForClassFields},e.compilerOptionsAffectSemanticDiagnostics=function(t,r){return c(r,t,e.semanticDiagnosticsOptionDeclarations)},e.compilerOptionsAffectEmit=function(t,r){return c(r,t,e.affectsEmitOptionDeclarations)},e.getCompilerOptionValue=Pn,e.getJSXTransformEnabled=function(e){var t=e.jsx;return 2===t||4===t||5===t},e.getJSXImplicitImportBase=function(t,r){var n=null==r?void 0:r.pragmas.get("jsximportsource"),i=e.isArray(n)?n[n.length-1]:n;return 4===t.jsx||5===t.jsx||t.jsxImportSource||i?(null==i?void 0:i.arguments.factory)||t.jsxImportSource||"react":void 0},e.getJSXRuntimeImport=function(e,t){return e?"".concat(e,"/").concat(5===t.jsx?"jsx-dev-runtime":"jsx-runtime"):void 0},e.hasZeroOrOneAsteriskCharacter=function(e){for(var t=!1,r=0;r0;)c+=")?",_--;return c}}function Wn(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function Hn(t,r,n,i,a){t=e.normalizePath(t),a=e.normalizePath(a);var o=e.combinePaths(a,t);return{includeFilePatterns:e.map(Un(n,o,"files"),(function(e){return"^".concat(e,"$")})),includeFilePattern:zn(n,o,"files"),includeDirectoryPattern:zn(n,o,"directories"),excludePattern:zn(r,o,"exclude"),basePaths:Yn(t,n,i)}}function Gn(e,t){return new RegExp(e,t?"":"i")}function Yn(t,r,n){var i=[t];if(r){for(var a=[],o=0,s=r;o=0)}function di(e){return".ts"===e||".tsx"===e||".d.ts"===e||".cts"===e||".mts"===e||".d.mts"===e||".d.cts"===e}function _i(t){return e.find(ai,(function(r){return e.fileExtensionIs(t,r)}))}function pi(t,r){return t===r||"object"==typeof t&&null!==t&&"object"==typeof r&&null!==r&&e.equalOwnProperties(t,r,pi)}function fi(e,t){return e.pos=t,e}function gi(e,t){return e.end=t,e}function mi(e,t,r){return gi(fi(e,t),r)}function yi(e,t){return e&&t&&(e.parent=t),e}function vi(t){return!e.isOmittedExpression(t)}function hi(t){return e.some(e.ignoredPaths,(function(r){return e.stringContains(t,r)}))}function Di(e){return 253===e.kind&&291===e.parent.kind}e.removeFileExtension=oi,e.tryRemoveExtension=si,e.removeExtension=ci,e.changeExtension=function(t,r){return e.changeAnyExtension(t,r,ai,!1)},e.tryParsePattern=ui,e.tryParsePatterns=function(t){return e.mapDefined(e.getOwnKeys(t),(function(e){return ui(e)}))},e.positionIsSynthesized=li,e.extensionIsTS=di,e.resolutionExtensionIsTSOrJson=function(e){return di(e)||".json"===e},e.extensionFromPath=function(t){var r=_i(t);return void 0!==r?r:e.Debug.fail("File ".concat(t," has unknown extension."))},e.isAnySupportedFileExtension=function(e){return void 0!==_i(e)},e.tryGetExtensionFromPath=_i,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;ii&&(i=o)}return{min:n,max:i}},e.rangeOfNode=function(e){return{pos:h(e),end:e.end}},e.rangeOfTypeParameters=function(t,r){return{pos:r.pos-1,end:e.skipTrivia(t.text,r.end)+1}},e.skipTypeChecking=function(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)},e.isJsonEqual=pi,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),d=(l<=57?l-48:10+l-(l<=70?65:97))<<(15&c);o[u]|=d;var _=d>>>16;_&&(o[u+1]|=_)}for(var p="",f=o.length-1,g=!0;g;){var m=0;g=!1;for(u=f;u>=0;u--){var y=m<<16|o[u],v=y/10|0;o[u]=v,m=y-10*v,v&&!g&&(f=u,g=!0)}p=m+p}return p},e.pseudoBigIntToString=function(e){var t=e.negative,r=e.base10Value;return(t&&"0"!==r?"-":"")+r},e.isValidTypeOnlyAliasUseSite=function(t){return!!(8388608&t.flags)||he(t)||function(t){if(79!==t.kind)return!1;var r=e.findAncestor(t.parent,(function(e){switch(e.kind){case 290:return!0;case 205:case 227:return!1;default:return"quit"}}));return 117===(null==r?void 0:r.token)||257===(null==r?void 0:r.parent.kind)}(t)||function(e){for(;79===e.kind||205===e.kind;)e=e.parent;if(161!==e.kind)return!1;if(Sr(e.parent,128))return!0;var t=e.parent.parent.kind;return 257===t||181===t}(t)||!(ye(t)||function(t){return e.isIdentifier(t)&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t}(t))},e.isIdentifierTypeReference=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)},e.arrayIsHomogeneous=function(t,r){if(void 0===r&&(r=e.equateValues),t.length<2)return!0;for(var n=t[0],i=1,a=t.length;i3)return!0;var u=e.getExpressionPrecedence(c);switch(e.compareValues(u,o)){case-1:return!(!n&&1===s&&223===r.kind);case 1:return!1;case 0:if(n)return 1===s;if(e.isBinaryExpression(c)&&c.operatorToken.kind===t){if(function(e){return 41===e||51===e||50===e||52===e}(t))return!1;if(39===t){var l=a?i(a):0;if(e.isLiteralKind(l)&&l===i(c))return!1}}return 0===e.getExpressionAssociativity(c)}}(r,n,a,o)?t.createParenthesizedExpression(n):n}function o(e,t){return a(e,t,!0)}function s(e,t,r){return a(e,r,!1,t)}function c(r){var n=e.skipPartiallyEmittedExpressions(r);return e.isLeftHandSideExpression(n)&&(208!==n.kind||n.arguments)?r:e.setTextRange(t.createParenthesizedExpression(r),r)}function u(r){var n=e.skipPartiallyEmittedExpressions(r);return e.getExpressionPrecedence(n)>e.getOperatorPrecedence(220,27)?r:e.setTextRange(t.createParenthesizedExpression(r),r)}function l(e){return 188===e.kind?t.createParenthesizedType(e):e}function d(e){switch(e.kind){case 186:case 187:case 178:case 179:return t.createParenthesizedType(e)}return l(e)}function _(r,n){return 0===n&&e.isFunctionOrConstructorTypeNode(r)&&r.typeParameters?t.createParenthesizedType(r):r}},e.nullParenthesizerRules={getParenthesizeLeftSideOfBinaryForOperator:function(t){return e.identity},getParenthesizeRightSideOfBinaryForOperator:function(t){return e.identity},parenthesizeLeftSideOfBinary:function(e,t){return t},parenthesizeRightSideOfBinary:function(e,t,r){return r},parenthesizeExpressionOfComputedPropertyName:e.identity,parenthesizeConditionOfConditionalExpression:e.identity,parenthesizeBranchOfConditionalExpression:e.identity,parenthesizeExpressionOfExportDefault:e.identity,parenthesizeExpressionOfNew:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeLeftSideOfAccess:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeOperandOfPostfixUnary:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeOperandOfPrefixUnary:function(t){return e.cast(t,e.isUnaryExpression)},parenthesizeExpressionsOfCommaDelimitedList:function(t){return e.cast(t,e.isNodeArray)},parenthesizeExpressionForDisallowedComma:e.identity,parenthesizeExpressionOfExpressionStatement:e.identity,parenthesizeConciseBodyOfArrowFunction:e.identity,parenthesizeMemberOfConditionalType:e.identity,parenthesizeMemberOfElementType:e.identity,parenthesizeElementTypeOfArrayType:e.identity,parenthesizeConstituentTypesOfUnionOrIntersectionType:function(t){return e.cast(t,e.isNodeArray)},parenthesizeTypeArguments:function(t){return t&&e.cast(t,e.isNodeArray)}}}(c||(c={})),function(e){e.createNodeConverters=function(t){return{convertToFunctionBlock:function(r,n){if(e.isBlock(r))return r;var i=t.createReturnStatement(r);e.setTextRange(i,r);var a=t.createBlock([i],n);return e.setTextRange(a,r),a},convertToFunctionExpression:function(r){if(!r.body)return e.Debug.fail("Cannot convert a FunctionDeclaration without a body");var n=t.createFunctionExpression(r.modifiers,r.asteriskToken,r.name,r.typeParameters,r.parameters,r.type,r.body);e.setOriginalNode(n,r),e.setTextRange(n,r),e.getStartsOnNewLine(r)&&e.setStartsOnNewLine(n,!0);return n},convertToArrayAssignmentElement:r,convertToObjectAssignmentElement:n,convertToAssignmentPattern:i,convertToObjectAssignmentPattern:a,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:s};function r(r){if(e.isBindingElement(r)){if(r.dotDotDotToken)return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createSpreadElement(r.name),r),r);var n=s(r.name);return r.initializer?e.setOriginalNode(e.setTextRange(t.createAssignment(n,r.initializer),r),r):n}return e.cast(r,e.isExpression)}function n(r){if(e.isBindingElement(r)){if(r.dotDotDotToken)return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createSpreadAssignment(r.name),r),r);if(r.propertyName){var n=s(r.name);return e.setOriginalNode(e.setTextRange(t.createPropertyAssignment(r.propertyName,r.initializer?t.createAssignment(n,r.initializer):n),r),r)}return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createShorthandPropertyAssignment(r.name,r.initializer),r),r)}return e.cast(r,e.isObjectLiteralElementLike)}function i(e){switch(e.kind){case 201:case 203:return o(e);case 200:case 204:return a(e)}}function a(r){return e.isObjectBindingPattern(r)?e.setOriginalNode(e.setTextRange(t.createObjectLiteralExpression(e.map(r.elements,n)),r),r):e.cast(r,e.isObjectLiteralExpression)}function o(n){return e.isArrayBindingPattern(n)?e.setOriginalNode(e.setTextRange(t.createArrayLiteralExpression(e.map(n.elements,r)),n),n):e.cast(n,e.isArrayLiteralExpression)}function s(t){return e.isBindingPattern(t)?i(t):e.cast(t,e.isExpression)}},e.nullNodeConverters={convertToFunctionBlock:e.notImplemented,convertToFunctionExpression:e.notImplemented,convertToArrayAssignmentElement:e.notImplemented,convertToObjectAssignmentElement:e.notImplemented,convertToAssignmentPattern:e.notImplemented,convertToObjectAssignmentPattern:e.notImplemented,convertToArrayAssignmentPattern:e.notImplemented,convertToAssignmentElementTarget:e.notImplemented}}(c||(c={})),function(e){var t,n,i=0;function a(t,a){var f=8&t?o:s,g=e.memoize((function(){return 1&t?e.nullParenthesizerRules:e.createParenthesizerRules(A)})),m=e.memoize((function(){return 2&t?e.nullNodeConverters:e.createNodeConverters(A)})),y=e.memoizeOne((function(e){return function(t,r){return Mt(t,e,r)}})),v=e.memoizeOne((function(e){return function(t){return It(e,t)}})),D=e.memoizeOne((function(e){return function(t){return Ot(t,e)}})),x=e.memoizeOne((function(e){return function(){return function(e){return N(e)}(e)}})),b=e.memoizeOne((function(e){return function(t){return tn(e,t)}})),S=e.memoizeOne((function(e){return function(t,r){return function(e,t,r){return t.type!==r?f(tn(e,r),t):t}(e,t,r)}})),T=e.memoizeOne((function(e){return function(t,r){return bn(e,t,r)}})),C=e.memoizeOne((function(e){return function(t,r,n){return function(e,t,r,n){void 0===r&&(r=sn(t));return t.tagName!==r||t.comment!==n?f(bn(e,r,n),t):t}(e,t,r,n)}})),E=e.memoizeOne((function(e){return function(t,r,n){return Sn(e,t,r,n)}})),k=e.memoizeOne((function(e){return function(t,r,n,i){return function(e,t,r,n,i){void 0===r&&(r=sn(t));return t.tagName!==r||t.typeExpression!==n||t.comment!==i?f(Sn(e,r,n,i),t):t}(e,t,r,n,i)}})),A={get parenthesizer(){return g()},get converters(){return m()},createNodeArray:F,createNumericLiteral:U,createBigIntLiteral:V,createStringLiteral:W,createStringLiteralFromNode:function(t){var r=q(e.getTextOfIdentifierOrLiteral(t),void 0);return r.textSourceNode=t,r},createRegularExpressionLiteral:H,createLiteralLikeNode:function(e,t){switch(e){case 8:return U(t,0);case 9:return V(t);case 10:return W(t,void 0);case 11:return wn(t,!1);case 12:return wn(t,!0);case 13:return H(t);case 14:return Jt(e,t,void 0,0)}},createIdentifier:X,updateIdentifier:function(t,r){return t.typeArguments!==r?f(X(e.idText(t),r),t):t},createTempVariable:Q,createLoopVariable:function(e){var t=2;e&&(t|=8);return Y("",t)},createUniqueName:function(t,r){void 0===r&&(r=0);return e.Debug.assert(!(7&r),"Argument out of range: flags"),e.Debug.assert(32!=(48&r),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),Y(t,3|r)},getGeneratedNameForNode:$,createPrivateIdentifier:function(t){e.startsWith(t,"#")||e.Debug.fail("First character of private identifier must be #: "+t);var r=a.createBasePrivateIdentifierNode(80);return r.escapedText=e.escapeLeadingUnderscores(t),r.transformFlags|=8388608,r},createToken:ee,createSuper:function(){return ee(106)},createThis:te,createNull:function(){return ee(104)},createTrue:re,createFalse:ne,createModifier:ie,createModifiersFromModifierFlags:ae,createQualifiedName:oe,updateQualifiedName:function(e,t,r){return e.left!==t||e.right!==r?f(oe(t,r),e):e},createComputedPropertyName:se,updateComputedPropertyName:function(e,t){return e.expression!==t?f(se(t),e):e},createTypeParameterDeclaration:ce,updateTypeParameterDeclaration:function(e,t,r,n){return e.name!==t||e.constraint!==r||e.default!==n?f(ce(t,r,n),e):e},createParameterDeclaration:ue,updateParameterDeclaration:le,createDecorator:de,updateDecorator:function(e,t){return e.expression!==t?f(de(t),e):e},createPropertySignature:_e,updatePropertySignature:pe,createPropertyDeclaration:fe,updatePropertyDeclaration:ge,createMethodSignature:me,updateMethodSignature:ye,createMethodDeclaration:ve,updateMethodDeclaration:he,createConstructorDeclaration:xe,updateConstructorDeclaration:be,createGetAccessorDeclaration:Se,updateGetAccessorDeclaration:Te,createSetAccessorDeclaration:Ce,updateSetAccessorDeclaration:Ee,createCallSignature:ke,updateCallSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?M(ke(t,r,n),e):e},createConstructSignature:Ae,updateConstructSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?M(Ae(t,r,n),e):e},createIndexSignature:Fe,updateIndexSignature:Ne,createClassStaticBlockDeclaration:De,updateClassStaticBlockDeclaration:function(e,t,r,n){return e.decorators!==t||e.modifier!==r||e.body!==n?f(De(t,r,n),e):e},createTemplateLiteralTypeSpan:Pe,updateTemplateLiteralTypeSpan:function(e,t,r){return e.type!==t||e.literal!==r?f(Pe(t,r),e):e},createKeywordTypeNode:function(e){return ee(e)},createTypePredicateNode:we,updateTypePredicateNode:function(e,t,r,n){return e.assertsModifier!==t||e.parameterName!==r||e.type!==n?f(we(t,r,n),e):e},createTypeReferenceNode:Ie,updateTypeReferenceNode:function(e,t,r){return e.typeName!==t||e.typeArguments!==r?f(Ie(t,r),e):e},createFunctionTypeNode:Oe,updateFunctionTypeNode:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?M(Oe(t,r,n),e):e},createConstructorTypeNode:Me,updateConstructorTypeNode:function(){for(var t=[],r=0;r10?Xn(t):e.reduceLeft(t,A.createComma)},getInternalName:function(e,t,r){return ii(e,t,r,49152)},getLocalName:function(e,t,r){return ii(e,t,r,16384)},getExportName:ai,getDeclarationName:function(e,t,r){return ii(e,t,r)},getNamespaceMemberName:oi,getExternalModuleOrNamespaceExportName:function(t,r,n,i){if(t&&e.hasSyntacticModifier(r,1))return oi(t,ii(r),n,i);return ai(r,n,i)},restoreOuterExpressions:function t(r,n,i){void 0===i&&(i=15);if(r&&e.isOuterExpression(r,i)&&!function(t){return e.isParenthesizedExpression(t)&&e.nodeIsSynthesized(t)&&e.nodeIsSynthesized(e.getSourceMapRange(t))&&e.nodeIsSynthesized(e.getCommentRange(t))&&!e.some(e.getSyntheticLeadingComments(t))&&!e.some(e.getSyntheticTrailingComments(t))}(r))return function(e,t){switch(e.kind){case 211:return Tt(e,t);case 210:return bt(e,e.type,t);case 228:return Ht(e,t,e.type);case 229:return Yt(e,t);case 348:return Gn(e,t)}}(r,t(r.expression,n));return n},restoreEnclosingLabel:function t(r,n,i){if(!n)return r;var a=yr(n,n.label,e.isLabeledStatement(n.statement)?t(r,n.statement):r);i&&i(n);return a},createUseStrictPrologue:ci,copyPrologue:function(e,t,r,n){var i=ui(e,t,r);return li(e,t,i,n)},copyStandardPrologue:ui,copyCustomPrologue:li,ensureUseStrict:function(t){if(!e.findUseStrictPrologue(t))return e.setTextRange(F(r([ci()],t,!0)),t);return t},liftToBlock:function(t){return e.Debug.assert(e.every(t,e.isStatementOrBlock),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||er(t)},mergeLexicalEnvironment:function(t,n){if(!e.some(n))return t;var i=di(t,e.isPrologueDirective,0),a=di(t,e.isHoistedFunction,i),o=di(t,e.isHoistedVariableStatement,a),s=di(n,e.isPrologueDirective,0),c=di(n,e.isHoistedFunction,s),u=di(n,e.isHoistedVariableStatement,c),l=di(n,e.isCustomPrologue,u);e.Debug.assert(l===n.length,"Expected declarations to be valid standard or custom prologues");var d=e.isNodeArray(t)?t.slice():t;l>u&&d.splice.apply(d,r([o,0],n.slice(u,l),!1));u>c&&d.splice.apply(d,r([a,0],n.slice(c,u),!1));c>s&&d.splice.apply(d,r([i,0],n.slice(s,c),!1));if(s>0)if(0===i)d.splice.apply(d,r([0,0],n.slice(0,s),!1));else{for(var _=new e.Map,p=0;p=0;p--){var g=n[p];_.has(g.expression.text)||d.unshift(g)}}if(e.isNodeArray(t))return e.setTextRange(F(d,t.hasTrailingComma),t);return t},updateModifiers:function(t,r){var n;"number"==typeof r&&(r=ae(r));return e.isParameter(t)?le(t,t.decorators,r,t.dotDotDotToken,t.name,t.questionToken,t.type,t.initializer):e.isPropertySignature(t)?pe(t,r,t.name,t.questionToken,t.type):e.isPropertyDeclaration(t)?ge(t,t.decorators,r,t.name,null!==(n=t.questionToken)&&void 0!==n?n:t.exclamationToken,t.type,t.initializer):e.isMethodSignature(t)?ye(t,r,t.name,t.questionToken,t.typeParameters,t.parameters,t.type):e.isMethodDeclaration(t)?he(t,t.decorators,r,t.asteriskToken,t.name,t.questionToken,t.typeParameters,t.parameters,t.type,t.body):e.isConstructorDeclaration(t)?be(t,t.decorators,r,t.parameters,t.body):e.isGetAccessorDeclaration(t)?Te(t,t.decorators,r,t.name,t.parameters,t.type,t.body):e.isSetAccessorDeclaration(t)?Ee(t,t.decorators,r,t.name,t.parameters,t.body):e.isIndexSignatureDeclaration(t)?Ne(t,t.decorators,r,t.parameters,t.type):e.isFunctionExpression(t)?Et(t,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isArrowFunction(t)?At(t,r,t.typeParameters,t.parameters,t.type,t.equalsGreaterThanToken,t.body):e.isClassExpression(t)?Vt(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members):e.isVariableStatement(t)?rr(t,r,t.declarationList):e.isFunctionDeclaration(t)?Sr(t,t.decorators,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isClassDeclaration(t)?Cr(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members):e.isInterfaceDeclaration(t)?kr(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members):e.isTypeAliasDeclaration(t)?Fr(t,t.decorators,r,t.name,t.typeParameters,t.type):e.isEnumDeclaration(t)?Pr(t,t.decorators,r,t.name,t.members):e.isModuleDeclaration(t)?Ir(t,t.decorators,r,t.name,t.body):e.isImportEqualsDeclaration(t)?Br(t,t.decorators,r,t.isTypeOnly,t.name,t.moduleReference):e.isImportDeclaration(t)?Jr(t,t.decorators,r,t.importClause,t.moduleSpecifier,t.assertClause):e.isExportAssignment(t)?Yr(t,t.decorators,r,t.expression):e.isExportDeclaration(t)?Qr(t,t.decorators,r,t.isTypeOnly,t.exportClause,t.moduleSpecifier,t.assertClause):e.Debug.assertNever(t)}};return A;function F(t,r){if(void 0===t||t===e.emptyArray)t=[];else if(e.isNodeArray(t)){if(void 0===r||t.hasTrailingComma===r)return void 0===t.transformFlags&&p(t),e.Debug.attachNodeArrayDebugInfo(t),t;var n=t.slice();return n.pos=t.pos,n.end=t.end,n.hasTrailingComma=r,n.transformFlags=t.transformFlags,e.Debug.attachNodeArrayDebugInfo(n),n}var i=t.length,a=i>=1&&i<=4?t.slice():t;return e.setTextRangePosEnd(a,-1,-1),a.hasTrailingComma=!!r,p(a),e.Debug.attachNodeArrayDebugInfo(a),a}function N(e){return a.createBaseNode(e)}function P(e,t,r){var n=N(e);return n.decorators=_i(t),n.modifiers=_i(r),n.transformFlags|=_(n.decorators)|_(n.modifiers),n.symbol=void 0,n.localSymbol=void 0,n.locals=void 0,n.nextContainer=void 0,n}function w(t,r,n,i){var a=P(t,r,n);if(i=pi(i),a.name=i,i)switch(a.kind){case 168:case 171:case 172:case 166:case 294:if(e.isIdentifier(i)){a.transformFlags|=l(i);break}default:a.transformFlags|=d(i)}return a}function I(e,t,r,n,i){var a=w(e,t,r,n);return a.typeParameters=_i(i),a.transformFlags|=_(a.typeParameters),i&&(a.transformFlags|=1),a}function O(e,t,r,n,i,a,o){var s=I(e,t,r,n,i);return s.parameters=F(a),s.type=o,s.transformFlags|=_(s.parameters)|d(s.type),o&&(s.transformFlags|=1),s}function M(e,t){return t.typeArguments&&(e.typeArguments=t.typeArguments),f(e,t)}function L(e,t,r,n,i,a,o,s){var c=O(e,t,r,n,i,a,o);return c.body=s,c.transformFlags|=-16777217&d(c.body),s||(c.transformFlags|=1),c}function R(e,t){return t.exclamationToken&&(e.exclamationToken=t.exclamationToken),t.typeArguments&&(e.typeArguments=t.typeArguments),M(e,t)}function B(e,t,r,n,i,a){var o=I(e,t,r,n,i);return o.heritageClauses=_i(a),o.transformFlags|=_(o.heritageClauses),o}function j(e,t,r,n,i,a,o){var s=B(e,t,r,n,i,a);return s.members=F(o),s.transformFlags|=_(s.members),s}function J(e,t,r,n,i){var a=w(e,t,r,n);return a.initializer=i,a.transformFlags|=d(a.initializer),a}function K(e,t,r,n,i,a){var o=J(e,t,r,n,a);return o.type=i,o.transformFlags|=d(i),i&&(o.transformFlags|=1),o}function z(e,t){var r=Z(e);return r.text=t,r}function U(e,t){void 0===t&&(t=0);var r=z(8,"number"==typeof e?e+"":e);return r.numericLiteralFlags=t,384&t&&(r.transformFlags|=512),r}function V(t){var r=z(9,"string"==typeof t?t:e.pseudoBigIntToString(t)+"n");return r.transformFlags|=4,r}function q(e,t){var r=z(10,e);return r.singleQuote=t,r}function W(e,t,r){var n=q(e,t);return n.hasExtendedUnicodeEscape=r,r&&(n.transformFlags|=512),n}function H(e){return z(13,e)}function G(t,r){void 0===r&&t&&(r=e.stringToToken(t)),79===r&&(r=void 0);var n=a.createBaseIdentifierNode(79);return n.originalKeywordKind=r,n.escapedText=e.escapeLeadingUnderscores(t),n}function Y(e,t){var r=G(e,void 0);return r.autoGenerateFlags=t,r.autoGenerateId=i,i++,r}function X(e,t,r){var n=G(e,r);return t&&(n.typeArguments=F(t)),132===n.originalKeywordKind&&(n.transformFlags|=16777216),n}function Q(e,t){var r=1;t&&(r|=8);var n=Y("",r);return e&&e(n),n}function $(t,r){void 0===r&&(r=0),e.Debug.assert(!(7&r),"Argument out of range: flags");var n=Y(t&&e.isIdentifier(t)?e.idText(t):"",4|r);return n.original=t,n}function Z(e){return a.createBaseTokenNode(e)}function ee(t){e.Debug.assert(t>=0&&t<=159,"Invalid token"),e.Debug.assert(t<=14||t>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),e.Debug.assert(t<=8||t>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),e.Debug.assert(79!==t,"Invalid token. Use 'createIdentifier' to create identifiers");var r=Z(t),n=0;switch(t){case 131:n=192;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:n=1;break;case 106:n=33554944;break;case 124:n=512;break;case 108:n=8192}return n&&(r.transformFlags|=n),r}function te(){return ee(108)}function re(){return ee(110)}function ne(){return ee(95)}function ie(e){return ee(e)}function ae(e){var t=[];return 1&e&&t.push(ie(93)),2&e&&t.push(ie(135)),512&e&&t.push(ie(88)),2048&e&&t.push(ie(85)),4&e&&t.push(ie(123)),8&e&&t.push(ie(121)),16&e&&t.push(ie(122)),128&e&&t.push(ie(126)),32&e&&t.push(ie(124)),16384&e&&t.push(ie(158)),64&e&&t.push(ie(144)),256&e&&t.push(ie(131)),t}function oe(e,t){var r=N(160);return r.left=e,r.right=pi(t),r.transformFlags|=d(r.left)|l(r.right),r}function se(e){var t=N(161);return t.expression=g().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=66048|d(t.expression),t}function ce(e,t,r){var n=w(162,void 0,void 0,e);return n.constraint=t,n.default=r,n.transformFlags=1,n}function ue(t,r,n,i,a,o,s){var c=K(163,t,r,i,o,s&&g().parenthesizeExpressionForDisallowedComma(s));return c.dotDotDotToken=n,c.questionToken=a,e.isThisIdentifier(c.name)?c.transformFlags=1:(c.transformFlags|=d(c.dotDotDotToken)|d(c.questionToken),a&&(c.transformFlags|=1),16476&e.modifiersToFlags(c.modifiers)&&(c.transformFlags|=4096),(s||n)&&(c.transformFlags|=512)),c}function le(e,t,r,n,i,a,o,s){return e.decorators!==t||e.modifiers!==r||e.dotDotDotToken!==n||e.name!==i||e.questionToken!==a||e.type!==o||e.initializer!==s?f(ue(t,r,n,i,a,o,s),e):e}function de(e){var t=N(164);return t.expression=g().parenthesizeLeftSideOfAccess(e),t.transformFlags|=4097|d(t.expression),t}function _e(e,t,r,n){var i=w(165,void 0,e,t);return i.type=n,i.questionToken=r,i.transformFlags=1,i}function pe(e,t,r,n,i){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.type!==i?f(_e(t,r,n,i),e):e}function fe(t,r,n,i,a,o){var s=K(166,t,r,n,a,o);return s.questionToken=i&&e.isQuestionToken(i)?i:void 0,s.exclamationToken=i&&e.isExclamationToken(i)?i:void 0,s.transformFlags|=d(s.questionToken)|d(s.exclamationToken)|8388608,(e.isComputedPropertyName(s.name)||e.hasStaticModifier(s)&&s.initializer)&&(s.transformFlags|=4096),(i||2&e.modifiersToFlags(s.modifiers))&&(s.transformFlags|=1),s}function ge(t,r,n,i,a,o,s){return t.decorators!==r||t.modifiers!==n||t.name!==i||t.questionToken!==(void 0!==a&&e.isQuestionToken(a)?a:void 0)||t.exclamationToken!==(void 0!==a&&e.isExclamationToken(a)?a:void 0)||t.type!==o||t.initializer!==s?f(fe(r,n,i,a,o,s),t):t}function me(e,t,r,n,i,a){var o=O(167,void 0,e,t,n,i,a);return o.questionToken=r,o.transformFlags=1,o}function ye(e,t,r,n,i,a,o){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.typeParameters!==i||e.parameters!==a||e.type!==o?M(me(t,r,n,i,a,o),e):e}function ve(t,r,n,i,a,o,s,c,u){var l=L(168,t,r,i,o,s,c,u);return l.asteriskToken=n,l.questionToken=a,l.transformFlags|=d(l.asteriskToken)|d(l.questionToken)|512,a&&(l.transformFlags|=1),256&e.modifiersToFlags(l.modifiers)?l.transformFlags|=n?64:128:n&&(l.transformFlags|=1024),l}function he(e,t,r,n,i,a,o,s,c,u){return e.decorators!==t||e.modifiers!==r||e.asteriskToken!==n||e.name!==i||e.questionToken!==a||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==u?R(ve(t,r,n,i,a,o,s,c,u),e):e}function De(e,t,r){var n=I(169,e,t,void 0,void 0);return n.body=r,n.transformFlags=8388608|d(r),n}function xe(e,t,r,n){var i=L(170,e,t,void 0,void 0,r,void 0,n);return i.transformFlags|=512,i}function be(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.parameters!==n||e.body!==i?R(xe(t,r,n,i),e):e}function Se(e,t,r,n,i,a){return L(171,e,t,r,void 0,n,i,a)}function Te(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.parameters!==i||e.type!==a||e.body!==o?R(Se(t,r,n,i,a,o),e):e}function Ce(e,t,r,n,i){return L(172,e,t,r,void 0,n,void 0,i)}function Ee(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.parameters!==i||e.body!==a?R(Ce(t,r,n,i,a),e):e}function ke(e,t,r){var n=O(173,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function Ae(e,t,r){var n=O(174,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function Fe(e,t,r,n){var i=O(175,e,t,void 0,void 0,r,n);return i.transformFlags=1,i}function Ne(e,t,r,n,i){return e.parameters!==n||e.type!==i||e.decorators!==t||e.modifiers!==r?M(Fe(t,r,n,i),e):e}function Pe(e,t){var r=N(198);return r.type=e,r.literal=t,r.transformFlags=1,r}function we(e,t,r){var n=N(176);return n.assertsModifier=e,n.parameterName=pi(t),n.type=r,n.transformFlags=1,n}function Ie(e,t){var r=N(177);return r.typeName=pi(e),r.typeArguments=t&&g().parenthesizeTypeArguments(F(t)),r.transformFlags=1,r}function Oe(e,t,r){var n=O(178,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function Me(){for(var t=[],r=0;r0;default:return!0}}function ii(t,r,n,i){void 0===i&&(i=0);var a=e.getNameOfDeclaration(t);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.setParent(e.setTextRange($n(a),a),a.parent);return i|=e.getEmitFlags(a),n||(i|=48),r||(i|=1536),i&&e.setEmitFlags(o,i),o}return $(t)}function ai(e,t,r){return ii(e,t,r,8192)}function oi(t,r,n,i){var a=lt(t,e.nodeIsSynthesized(r)?r:$n(r));e.setTextRange(a,r);var o=0;return i||(o|=48),n||(o|=1536),o&&e.setEmitFlags(a,o),a}function si(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function ci(){return e.startOnNewLine(ir(W("use strict")))}function ui(t,r,n){e.Debug.assert(0===r.length,"Prologue directives should be at the first statement in the target statements array");for(var i=!1,a=0,o=t.length;a=176&&e<=199)return-2;switch(e){case 207:case 208:case 203:case 200:case 201:return 536887296;case 260:return 589443072;case 163:case 210:case 228:case 348:case 211:case 106:case 205:case 206:default: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}}e.getTransformFlagsSubtreeExclusions=f;var g=e.createBaseNodeFactory();function m(e){return e.flags|=8,e}var y,v={createBaseSourceFileNode:function(e){return m(g.createBaseSourceFileNode(e))},createBaseIdentifierNode:function(e){return m(g.createBaseIdentifierNode(e))},createBasePrivateIdentifierNode:function(e){return m(g.createBasePrivateIdentifierNode(e))},createBaseTokenNode:function(e){return m(g.createBaseTokenNode(e))},createBaseNode:function(e){return m(g.createBaseNode(e))}};function h(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,d=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=-268435457&n);o&&(r.commentRange=o);s&&(r.sourceMapRange=s);c&&(r.tokenSourceMapRanges=function(e,t){t||(t=[]);for(var r in e)t[r]=e[r];return t}(c,r.tokenSourceMapRanges));void 0!==u&&(r.constantValue=u);if(l)for(var _=0,p=l;_0&&(o[u-c]=l)}c>0&&(o.length-=c)}},e.getSnippetElement=function(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.snippetElement},e.setSnippetElement=function(e,r){return t(e).snippetElement=r,e},e.ignoreSourceNewlines=function(e){return t(e).flags|=134217728,e}}(c||(c={})),function(e){function t(e){for(var t=[],r=1;r=2)return n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"assign"),void 0,r);return t.requestEmitHelper(e.assignHelper),n.createCallExpression(o("__assign"),void 0,r)},createAwaitHelper:function(r){return t.requestEmitHelper(e.awaitHelper),n.createCallExpression(o("__await"),void 0,[r])},createAsyncGeneratorHelper:function(r,i){return t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncGeneratorHelper),(r.emitNode||(r.emitNode={})).flags|=786432,n.createCallExpression(o("__asyncGenerator"),void 0,[i?n.createThis():n.createVoidZero(),n.createIdentifier("arguments"),r])},createAsyncDelegatorHelper:function(r){return t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncDelegator),n.createCallExpression(o("__asyncDelegator"),void 0,[r])},createAsyncValuesHelper:function(r){return t.requestEmitHelper(e.asyncValues),n.createCallExpression(o("__asyncValues"),void 0,[r])},createRestHelper:function(r,i,a,s){t.requestEmitHelper(e.restHelper);for(var c=[],u=0,l=0;l= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},e.metadataHelper={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},e.paramHelper={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"},e.assignHelper={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };"},e.awaitHelper={name:"typescript:await",importName:"__await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"},e.asyncGeneratorHelper={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[e.awaitHelper],text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'},e.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[e.awaitHelper],text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }\n };'},e.asyncValues={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'},e.restHelper={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };'},e.awaiterHelper={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'},e.extendsHelper={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:'\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();'},e.templateObjectHelper={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'},e.readHelper={name:"typescript:read",importName:"__read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'},e.spreadArrayHelper={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };"},e.valuesHelper={name:"typescript:values",importName:"__values",scoped:!1,text:'\n var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === "number") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };'},e.generatorHelper={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'},e.createBindingHelper={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:"\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));"},e.setModuleDefaultHelper={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n }) : function(o, v) {\n o["default"] = v;\n });'},e.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[e.createBindingHelper,e.setModuleDefaultHelper],priority:2,text:'\n var __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n };'},e.importDefaultHelper={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n var __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n };'},e.exportStarHelper={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[e.createBindingHelper],priority:2,text:'\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };'},e.classPrivateFieldGetHelper={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };'},e.classPrivateFieldSetHelper={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === "m") throw new TypeError("Private method is not writable");\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\n return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n };'},e.classPrivateFieldInHelper={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:'\n var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {\n if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use \'in\' operator on non-object");\n return typeof state === "function" ? receiver === state : state.has(receiver);\n };'},e.getAllUnscopedEmitHelpers=function(){return n||(n=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(e){return e.name})))},e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:t(i(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:t(i(["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"],["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"]),"_superIndex")},e.isCallToHelper=function(t,r){return e.isCallExpression(t)&&e.isIdentifier(t.expression)&&0!=(4096&e.getEmitFlags(t.expression))&&t.expression.escapedText===r}}(c||(c={})),function(e){e.isNumericLiteral=function(e){return 8===e.kind},e.isBigIntLiteral=function(e){return 9===e.kind},e.isStringLiteral=function(e){return 10===e.kind},e.isJsxText=function(e){return 11===e.kind},e.isRegularExpressionLiteral=function(e){return 13===e.kind},e.isNoSubstitutionTemplateLiteral=function(e){return 14===e.kind},e.isTemplateHead=function(e){return 15===e.kind},e.isTemplateMiddle=function(e){return 16===e.kind},e.isTemplateTail=function(e){return 17===e.kind},e.isDotDotDotToken=function(e){return 25===e.kind},e.isCommaToken=function(e){return 27===e.kind},e.isPlusToken=function(e){return 39===e.kind},e.isMinusToken=function(e){return 40===e.kind},e.isAsteriskToken=function(e){return 41===e.kind},e.isExclamationToken=function(e){return 53===e.kind},e.isQuestionToken=function(e){return 57===e.kind},e.isColonToken=function(e){return 58===e.kind},e.isQuestionDotToken=function(e){return 28===e.kind},e.isEqualsGreaterThanToken=function(e){return 38===e.kind},e.isIdentifier=function(e){return 79===e.kind},e.isPrivateIdentifier=function(e){return 80===e.kind},e.isExportModifier=function(e){return 93===e.kind},e.isAsyncModifier=function(e){return 131===e.kind},e.isAssertsKeyword=function(e){return 128===e.kind},e.isAwaitKeyword=function(e){return 132===e.kind},e.isReadonlyKeyword=function(e){return 144===e.kind},e.isStaticModifier=function(e){return 124===e.kind},e.isAbstractModifier=function(e){return 126===e.kind},e.isSuperKeyword=function(e){return 106===e.kind},e.isImportKeyword=function(e){return 100===e.kind},e.isQualifiedName=function(e){return 160===e.kind},e.isComputedPropertyName=function(e){return 161===e.kind},e.isTypeParameterDeclaration=function(e){return 162===e.kind},e.isParameter=function(e){return 163===e.kind},e.isDecorator=function(e){return 164===e.kind},e.isPropertySignature=function(e){return 165===e.kind},e.isPropertyDeclaration=function(e){return 166===e.kind},e.isMethodSignature=function(e){return 167===e.kind},e.isMethodDeclaration=function(e){return 168===e.kind},e.isClassStaticBlockDeclaration=function(e){return 169===e.kind},e.isConstructorDeclaration=function(e){return 170===e.kind},e.isGetAccessorDeclaration=function(e){return 171===e.kind},e.isSetAccessorDeclaration=function(e){return 172===e.kind},e.isCallSignatureDeclaration=function(e){return 173===e.kind},e.isConstructSignatureDeclaration=function(e){return 174===e.kind},e.isIndexSignatureDeclaration=function(e){return 175===e.kind},e.isTypePredicateNode=function(e){return 176===e.kind},e.isTypeReferenceNode=function(e){return 177===e.kind},e.isFunctionTypeNode=function(e){return 178===e.kind},e.isConstructorTypeNode=function(e){return 179===e.kind},e.isTypeQueryNode=function(e){return 180===e.kind},e.isTypeLiteralNode=function(e){return 181===e.kind},e.isArrayTypeNode=function(e){return 182===e.kind},e.isTupleTypeNode=function(e){return 183===e.kind},e.isNamedTupleMember=function(e){return 196===e.kind},e.isOptionalTypeNode=function(e){return 184===e.kind},e.isRestTypeNode=function(e){return 185===e.kind},e.isUnionTypeNode=function(e){return 186===e.kind},e.isIntersectionTypeNode=function(e){return 187===e.kind},e.isConditionalTypeNode=function(e){return 188===e.kind},e.isInferTypeNode=function(e){return 189===e.kind},e.isParenthesizedTypeNode=function(e){return 190===e.kind},e.isThisTypeNode=function(e){return 191===e.kind},e.isTypeOperatorNode=function(e){return 192===e.kind},e.isIndexedAccessTypeNode=function(e){return 193===e.kind},e.isMappedTypeNode=function(e){return 194===e.kind},e.isLiteralTypeNode=function(e){return 195===e.kind},e.isImportTypeNode=function(e){return 199===e.kind},e.isTemplateLiteralTypeSpan=function(e){return 198===e.kind},e.isTemplateLiteralTypeNode=function(e){return 197===e.kind},e.isObjectBindingPattern=function(e){return 200===e.kind},e.isArrayBindingPattern=function(e){return 201===e.kind},e.isBindingElement=function(e){return 202===e.kind},e.isArrayLiteralExpression=function(e){return 203===e.kind},e.isObjectLiteralExpression=function(e){return 204===e.kind},e.isPropertyAccessExpression=function(e){return 205===e.kind},e.isElementAccessExpression=function(e){return 206===e.kind},e.isCallExpression=function(e){return 207===e.kind},e.isNewExpression=function(e){return 208===e.kind},e.isTaggedTemplateExpression=function(e){return 209===e.kind},e.isTypeAssertionExpression=function(e){return 210===e.kind},e.isParenthesizedExpression=function(e){return 211===e.kind},e.isFunctionExpression=function(e){return 212===e.kind},e.isArrowFunction=function(e){return 213===e.kind},e.isDeleteExpression=function(e){return 214===e.kind},e.isTypeOfExpression=function(e){return 215===e.kind},e.isVoidExpression=function(e){return 216===e.kind},e.isAwaitExpression=function(e){return 217===e.kind},e.isPrefixUnaryExpression=function(e){return 218===e.kind},e.isPostfixUnaryExpression=function(e){return 219===e.kind},e.isBinaryExpression=function(e){return 220===e.kind},e.isConditionalExpression=function(e){return 221===e.kind},e.isTemplateExpression=function(e){return 222===e.kind},e.isYieldExpression=function(e){return 223===e.kind},e.isSpreadElement=function(e){return 224===e.kind},e.isClassExpression=function(e){return 225===e.kind},e.isOmittedExpression=function(e){return 226===e.kind},e.isExpressionWithTypeArguments=function(e){return 227===e.kind},e.isAsExpression=function(e){return 228===e.kind},e.isNonNullExpression=function(e){return 229===e.kind},e.isMetaProperty=function(e){return 230===e.kind},e.isSyntheticExpression=function(e){return 231===e.kind},e.isPartiallyEmittedExpression=function(e){return 348===e.kind},e.isCommaListExpression=function(e){return 349===e.kind},e.isTemplateSpan=function(e){return 232===e.kind},e.isSemicolonClassElement=function(e){return 233===e.kind},e.isBlock=function(e){return 234===e.kind},e.isVariableStatement=function(e){return 236===e.kind},e.isEmptyStatement=function(e){return 235===e.kind},e.isExpressionStatement=function(e){return 237===e.kind},e.isIfStatement=function(e){return 238===e.kind},e.isDoStatement=function(e){return 239===e.kind},e.isWhileStatement=function(e){return 240===e.kind},e.isForStatement=function(e){return 241===e.kind},e.isForInStatement=function(e){return 242===e.kind},e.isForOfStatement=function(e){return 243===e.kind},e.isContinueStatement=function(e){return 244===e.kind},e.isBreakStatement=function(e){return 245===e.kind},e.isReturnStatement=function(e){return 246===e.kind},e.isWithStatement=function(e){return 247===e.kind},e.isSwitchStatement=function(e){return 248===e.kind},e.isLabeledStatement=function(e){return 249===e.kind},e.isThrowStatement=function(e){return 250===e.kind},e.isTryStatement=function(e){return 251===e.kind},e.isDebuggerStatement=function(e){return 252===e.kind},e.isVariableDeclaration=function(e){return 253===e.kind},e.isVariableDeclarationList=function(e){return 254===e.kind},e.isFunctionDeclaration=function(e){return 255===e.kind},e.isClassDeclaration=function(e){return 256===e.kind},e.isInterfaceDeclaration=function(e){return 257===e.kind},e.isTypeAliasDeclaration=function(e){return 258===e.kind},e.isEnumDeclaration=function(e){return 259===e.kind},e.isModuleDeclaration=function(e){return 260===e.kind},e.isModuleBlock=function(e){return 261===e.kind},e.isCaseBlock=function(e){return 262===e.kind},e.isNamespaceExportDeclaration=function(e){return 263===e.kind},e.isImportEqualsDeclaration=function(e){return 264===e.kind},e.isImportDeclaration=function(e){return 265===e.kind},e.isImportClause=function(e){return 266===e.kind},e.isAssertClause=function(e){return 292===e.kind},e.isAssertEntry=function(e){return 293===e.kind},e.isNamespaceImport=function(e){return 267===e.kind},e.isNamespaceExport=function(e){return 273===e.kind},e.isNamedImports=function(e){return 268===e.kind},e.isImportSpecifier=function(e){return 269===e.kind},e.isExportAssignment=function(e){return 270===e.kind},e.isExportDeclaration=function(e){return 271===e.kind},e.isNamedExports=function(e){return 272===e.kind},e.isExportSpecifier=function(e){return 274===e.kind},e.isMissingDeclaration=function(e){return 275===e.kind},e.isNotEmittedStatement=function(e){return 347===e.kind},e.isSyntheticReference=function(e){return 352===e.kind},e.isMergeDeclarationMarker=function(e){return 350===e.kind},e.isEndOfDeclarationMarker=function(e){return 351===e.kind},e.isExternalModuleReference=function(e){return 276===e.kind},e.isJsxElement=function(e){return 277===e.kind},e.isJsxSelfClosingElement=function(e){return 278===e.kind},e.isJsxOpeningElement=function(e){return 279===e.kind},e.isJsxClosingElement=function(e){return 280===e.kind},e.isJsxFragment=function(e){return 281===e.kind},e.isJsxOpeningFragment=function(e){return 282===e.kind},e.isJsxClosingFragment=function(e){return 283===e.kind},e.isJsxAttribute=function(e){return 284===e.kind},e.isJsxAttributes=function(e){return 285===e.kind},e.isJsxSpreadAttribute=function(e){return 286===e.kind},e.isJsxExpression=function(e){return 287===e.kind},e.isCaseClause=function(e){return 288===e.kind},e.isDefaultClause=function(e){return 289===e.kind},e.isHeritageClause=function(e){return 290===e.kind},e.isCatchClause=function(e){return 291===e.kind},e.isPropertyAssignment=function(e){return 294===e.kind},e.isShorthandPropertyAssignment=function(e){return 295===e.kind},e.isSpreadAssignment=function(e){return 296===e.kind},e.isEnumMember=function(e){return 297===e.kind},e.isUnparsedPrepend=function(e){return 299===e.kind},e.isSourceFile=function(e){return 303===e.kind},e.isBundle=function(e){return 304===e.kind},e.isUnparsedSource=function(e){return 305===e.kind},e.isJSDocTypeExpression=function(e){return 307===e.kind},e.isJSDocNameReference=function(e){return 308===e.kind},e.isJSDocMemberName=function(e){return 309===e.kind},e.isJSDocLink=function(e){return 322===e.kind},e.isJSDocLinkCode=function(e){return 323===e.kind},e.isJSDocLinkPlain=function(e){return 324===e.kind},e.isJSDocAllType=function(e){return 310===e.kind},e.isJSDocUnknownType=function(e){return 311===e.kind},e.isJSDocNullableType=function(e){return 312===e.kind},e.isJSDocNonNullableType=function(e){return 313===e.kind},e.isJSDocOptionalType=function(e){return 314===e.kind},e.isJSDocFunctionType=function(e){return 315===e.kind},e.isJSDocVariadicType=function(e){return 316===e.kind},e.isJSDocNamepathType=function(e){return 317===e.kind},e.isJSDoc=function(e){return 318===e.kind},e.isJSDocTypeLiteral=function(e){return 320===e.kind},e.isJSDocSignature=function(e){return 321===e.kind},e.isJSDocAugmentsTag=function(e){return 326===e.kind},e.isJSDocAuthorTag=function(e){return 328===e.kind},e.isJSDocClassTag=function(e){return 330===e.kind},e.isJSDocCallbackTag=function(e){return 336===e.kind},e.isJSDocPublicTag=function(e){return 331===e.kind},e.isJSDocPrivateTag=function(e){return 332===e.kind},e.isJSDocProtectedTag=function(e){return 333===e.kind},e.isJSDocReadonlyTag=function(e){return 334===e.kind},e.isJSDocOverrideTag=function(e){return 335===e.kind},e.isJSDocDeprecatedTag=function(e){return 329===e.kind},e.isJSDocSeeTag=function(e){return 344===e.kind},e.isJSDocEnumTag=function(e){return 337===e.kind},e.isJSDocParameterTag=function(e){return 338===e.kind},e.isJSDocReturnTag=function(e){return 339===e.kind},e.isJSDocThisTag=function(e){return 340===e.kind},e.isJSDocTypeTag=function(e){return 341===e.kind},e.isJSDocTemplateTag=function(e){return 342===e.kind},e.isJSDocTypedefTag=function(e){return 343===e.kind},e.isJSDocUnknownTag=function(e){return 325===e.kind},e.isJSDocPropertyTag=function(e){return 345===e.kind},e.isJSDocImplementsTag=function(e){return 327===e.kind},e.isSyntaxList=function(e){return 346===e.kind}}(c||(c={})),function(e){function t(t,r,n,i){if(e.isComputedPropertyName(n))return e.setTextRange(t.createElementAccessExpression(r,n.expression),i);var a=e.setTextRange(e.isMemberName(n)?t.createPropertyAccessExpression(r,n):t.createElementAccessExpression(r,n),n);return e.getOrCreateEmitNode(a).flags|=64,a}function n(t,r){var n=e.parseNodeFactory.createIdentifier(t||"React");return e.setParent(n,e.getParseTreeNode(r)),n}function i(t,r,a){if(e.isQualifiedName(r)){var o=i(t,r.left,a),s=t.createIdentifier(e.idText(r.right));return s.escapedText=r.right.escapedText,t.createPropertyAccessExpression(o,s)}return n(e.idText(r),a)}function a(e,t,r,a){return t?i(e,t,a):e.createPropertyAccessExpression(n(r,a),"createElement")}function o(t,r){return e.isIdentifier(r)?t.createStringLiteralFromNode(r):e.isComputedPropertyName(r)?e.setParent(e.setTextRange(t.cloneNode(r.expression),r.expression),r.expression.parent):e.setParent(e.setTextRange(t.cloneNode(r),r),r.parent)}function s(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function c(t){return e.isParenthesizedExpression(t)&&e.isInJSFile(t)&&!!e.getJSDocTypeTag(t)}function u(e,t){switch(void 0===t&&(t=15),e.kind){case 211:return!(16&t&&c(e))&&0!=(1&t);case 210:case 228:return 0!=(2&t);case 229:return 0!=(4&t);case 348:return 0!=(8&t)}return!1}function l(e,t){for(void 0===t&&(t=15);u(e,t);)e=e.expression;return e}function d(t){return e.setStartsOnNewLine(t,!0)}function _(t){var r=e.getOriginalNode(t,e.isSourceFile),n=r&&r.emitNode;return n&&n.externalHelpersModuleName}function p(t,r,n,i,a){if(n.importHelpers&&e.isEffectiveExternalModule(r,n)){var o=_(r);if(o)return o;var s=e.getEmitModuleKind(n),c=(i||e.getESModuleInterop(n)&&a)&&s!==e.ModuleKind.System&&(s0)if(i||s.push(t.createNull()),a.length>1)for(var c=0,u=a;c0)if(c.length>1)for(var f=0,g=c;f=e.ModuleKind.ES2015&&u<=e.ModuleKind.ESNext||n.impliedNodeFormat===e.ModuleKind.ESNext){var l=e.getEmitHelpers(n);if(l){for(var d=[],_=0,f=l;_0?o[n-1]:void 0;return e.Debug.assertEqual(i[n],r),o[n]=t.onEnter(a[n],l,u),i[n]=c(t,r),n}function n(t,r,i,a,o,s,d){e.Debug.assertEqual(i[r],n),e.Debug.assertIsDefined(t.onLeft),i[r]=c(t,n);var _=t.onLeft(a[r].left,o[r],a[r]);return _?(l(r,a,_),u(r,i,a,o,_)):r}function i(t,r,n,a,o,s,u){return e.Debug.assertEqual(n[r],i),e.Debug.assertIsDefined(t.onOperator),n[r]=c(t,i),t.onOperator(a[r].operatorToken,o[r],a[r]),r}function a(t,r,n,i,o,s,d){e.Debug.assertEqual(n[r],a),e.Debug.assertIsDefined(t.onRight),n[r]=c(t,a);var _=t.onRight(i[r].right,o[r],i[r]);return _?(l(r,i,_),u(r,n,i,o,_)):r}function o(t,r,n,i,a,s,u){e.Debug.assertEqual(n[r],o),n[r]=c(t,o);var l=t.onExit(i[r],a[r]);if(r>0){if(r--,t.foldState){var d=n[r]===o?"right":"left";a[r]=t.foldState(a[r],l,d)}}else s.value=l;return r}function s(t,r,n,i,a,o,c){return e.Debug.assertEqual(n[r],s),r}function c(t,c){switch(c){case r:if(t.onLeft)return n;case n:if(t.onOperator)return i;case i:if(t.onRight)return a;case a:return o;case o:case s:return s;default:e.Debug.fail("Invalid state")}}function u(e,t,n,i,a){return t[++e]=r,n[e]=a,i[e]=void 0,e}function l(t,r,n){if(e.Debug.shouldAssert(2))for(;t>=0;)e.Debug.assert(r[t]!==n,"Circular traversal detected."),t--}t.enter=r,t.left=n,t.operator=i,t.right=a,t.exit=o,t.done=s,t.nextState=c}(h||(h={}));var D=function(e,t,r,n,i,a){this.onEnter=e,this.onLeft=t,this.onOperator=r,this.onRight=n,this.onExit=i,this.foldState=a};e.createBinaryExpressionTrampoline=function(t,r,n,i,a,o){var s=new D(t,r,n,i,a,o);return function(t,r){var n={value:void 0},i=[h.enter],a=[t],o=[void 0],c=0;for(;i[c]!==h.done;)c=i[c](s,c,i,a,o,n,r);return e.Debug.assertEqual(c,0),n.value}}}(c||(c={})),function(e){e.setTextRange=function(t,r){return r?e.setTextRangePosEnd(t,r.pos,r.end):t}}(c||(c={})),function(e){var t,n,i,a,o,s,c,u,l;function d(e,t){return t&&e(t)}function _(e,t,r){if(r){if(t)return t(r);for(var n=0,i=r;nt.checkJsDirective.pos)&&(t.checkJsDirective={enabled:"ts-check"===i,end:e.range.end,pos:e.range.pos})}));break;case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:e.Debug.fail("Unhandled pragma kind")}}))}!function(e){e[e.None=0]="None",e[e.Yield=1]="Yield",e[e.Await=2]="Await",e[e.Type=4]="Type",e[e.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",e[e.JSDoc=32]="JSDoc"}(t||(t={})),function(e){e[e.TryParse=0]="TryParse",e[e.Lookahead=1]="Lookahead",e[e.Reparse=2]="Reparse"}(n||(n={})),e.parseBaseNodeFactory={createBaseSourceFileNode:function(t){return new(c||(c=e.objectAllocator.getSourceFileConstructor()))(t,-1,-1)},createBaseIdentifierNode:function(t){return new(o||(o=e.objectAllocator.getIdentifierConstructor()))(t,-1,-1)},createBasePrivateIdentifierNode:function(t){return new(s||(s=e.objectAllocator.getPrivateIdentifierConstructor()))(t,-1,-1)},createBaseTokenNode:function(t){return new(a||(a=e.objectAllocator.getTokenConstructor()))(t,-1,-1)},createBaseNode:function(t){return new(i||(i=e.objectAllocator.getNodeConstructor()))(t,-1,-1)}},e.parseNodeFactory=e.createNodeFactory(1,e.parseBaseNodeFactory),e.isJSDocLikeText=p,e.forEachChild=f,e.forEachChildRecursively=function(t,r,n){for(var i=g(t),a=[];a.length=0;--c)i.push(o[c]),a.push(s)}else{var u;if(u=r(o,s)){if("skip"===u)continue;return u}if(o.kind>=160)for(var l=0,d=g(o);l=r.pos})),l=u>=0?e.findIndex(a,(function(e){return e.start>=n.pos}),u):-1;u>=0&&e.addRange(T,a,u,l>=0?l:void 0),ke((function(){var e=M;for(M|=32768,c.setTextPos(n.pos),he();1!==me();){var r=c.getStartPos(),a=St(0,Xn);if(i.push(a),r===c.getStartPos()&&he(),o>=0){var s=t.statements[o];if(a.end===s.pos)break;a.end>s.pos&&(o=g(t.statements,o+1))}}M=e}),2),s=o>=0?f(t.statements,o):-1};-1!==s;)u();if(o>=0){var d=t.statements[o];e.addRange(i,t.statements,o);var _=e.findIndex(a,(function(e){return e.start>=d.pos}));_>=0&&e.addRange(T,a,_)}return k=r,R.updateSourceFile(t,e.setTextRange(R.createNodeArray(i),t.statements));function p(e){return!(32768&e.flags||!(16777216&e.transformFlags))}function f(e,t){for(var r=t;r116}function Pe(){return 79===me()||(125!==me()||!ae())&&((132!==me()||!ce())&&me()>116)}function we(t,r,n){return void 0===n&&(n=!0),me()===t?(n&&he(),!0):(r?ue(r):ue(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}t.fixupParentReferences=H;var Ie,Oe,Me,Le=Object.keys(e.textToKeywordObj).filter((function(e){return e.length>2}));function Re(t){var r;if(e.isTaggedTemplateExpression(t))de(e.skipTrivia(D,t.template.pos),t.template.end,e.Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings);else{var n=e.isIdentifier(t)?e.idText(t):void 0;if(n&&e.isIdentifierText(n,x)){var i=e.skipTrivia(D,t.pos);switch(n){case"const":case"let":case"var":return void de(i,t.end,e.Diagnostics.Variable_declaration_not_allowed_at_this_location);case"declare":return;case"interface":return void Be(e.Diagnostics.Interface_name_cannot_be_0,e.Diagnostics.Interface_must_be_given_a_name,18);case"is":return void de(i,c.getTextPos(),e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);case"module":case"namespace":return void Be(e.Diagnostics.Namespace_name_cannot_be_0,e.Diagnostics.Namespace_must_be_given_a_name,18);case"type":return void Be(e.Diagnostics.Type_alias_name_cannot_be_0,e.Diagnostics.Type_alias_must_be_given_a_name,63)}var a=null!==(r=e.getSpellingSuggestion(n,Le,(function(e){return e})))&&void 0!==r?r:function(t){for(var r=0,n=Le;ri.length+2&&e.startsWith(t,i))return"".concat(i," ").concat(t.slice(i.length))}return}(n);a?de(i,t.end,e.Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0,a):0!==me()&&de(i,t.end,e.Diagnostics.Unexpected_keyword_or_identifier)}else ue(e.Diagnostics._0_expected,e.tokenToString(26))}}function Be(e,t,r){me()===r?ue(t):ue(e,c.getTokenValue())}function je(t){return me()===t?(De(),!0):(ue(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function Je(e){return me()===e&&(he(),!0)}function Ke(e){if(me()===e)return Ve()}function ze(e){if(me()===e)return t=fe(),r=me(),De(),Ye(R.createToken(r),t);var t,r}function Ue(t,r,n){return Ke(t)||Xe(t,!1,r||e.Diagnostics._0_expected,n||e.tokenToString(t))}function Ve(){var e=fe(),t=me();return he(),Ye(R.createToken(t),e)}function qe(){return 26===me()||(19===me()||1===me()||c.hasPrecedingLineBreak())}function We(){return!!qe()&&(26===me()&&he(),!0)}function He(){return We()||we(26)}function Ge(t,r,n,i){var a=R.createNodeArray(t,i);return e.setTextRangePosEnd(a,r,null!=n?n:c.getStartPos()),a}function Ye(t,r,n){return e.setTextRangePosEnd(t,r,null!=n?n:c.getStartPos()),M&&(t.flags|=M),j&&(j=!1,t.flags|=65536),t}function Xe(t,r,n,i){r?le(c.getStartPos(),0,n,i):n&&ue(n,i);var a=fe();return Ye(79===t?R.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(t)?R.createTemplateLiteralLikeNode(t,"","",void 0):8===t?R.createNumericLiteral("",void 0):10===t?R.createStringLiteral("",void 0):275===t?R.createMissingDeclaration():R.createToken(t),a)}function Qe(e){var t=N.get(e);return void 0===t&&N.set(e,t=e),t}function $e(t,r,n){if(t){w++;var i=fe(),a=me(),o=Qe(c.getTokenValue());return ye(),Ye(R.createIdentifier(o,void 0,a),i)}if(80===me())return ue(n||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),$e(!0);if(0===me()&&c.tryScan((function(){return 79===c.reScanInvalidIdentifier()})))return $e(!0);w++;var s=1===me(),u=c.isReservedWord(),l=c.getTokenText(),d=u?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return Xe(79,s,r||d,l)}function Ze(e){return $e(Ne(),void 0,e)}function et(e,t){return $e(Pe(),e,t)}function tt(t){return $e(e.tokenIsIdentifierOrKeyword(me()),t)}function rt(){return e.tokenIsIdentifierOrKeyword(me())||10===me()||8===me()}function nt(e){if(10===me()||8===me()){var t=jt();return t.text=Qe(t.text),t}return e&&22===me()?function(){var e=fe();we(22);var t=re(qr);return we(23),Ye(R.createComputedPropertyName(t),e)}():80===me()?at():tt()}function it(){return nt(!0)}function at(){var e,t,r=fe(),n=R.createPrivateIdentifier((e=c.getTokenText(),void 0===(t=P.get(e))&&P.set(e,t=e),t));return he(),Ye(n,r)}function ot(e){return me()===e&&Fe(ct)}function st(){return he(),!c.hasPrecedingLineBreak()&&dt()}function ct(){switch(me()){case 85:return 92===he();case 93:return he(),88===me()?Ae(_t):151===me()?Ae(lt):ut();case 88:return _t();case 124:case 136:case 148:return he(),dt();default:return st()}}function ut(){return 41!==me()&&127!==me()&&18!==me()&&dt()}function lt(){return he(),ut()}function dt(){return 22===me()||18===me()||41===me()||25===me()||rt()}function _t(){return he(),84===me()||98===me()||118===me()||126===me()&&Ae(Un)||131===me()&&Ae(Vn)}function pt(t,r){if(Tt(t))return!0;switch(t){case 0:case 1:case 3:return!(26===me()&&r)&&Gn();case 2:return 82===me()||88===me();case 4:return Ae(ur);case 5:return Ae(yi)||26===me()&&!r;case 6:return 22===me()||rt();case 12:switch(me()){case 22:case 41:case 25:case 24:return!0;default:return rt()}case 18:return rt();case 9:return 22===me()||25===me()||rt();case 24:return e.tokenIsIdentifierOrKeyword(me())||10===me();case 7:return 18===me()?Ae(ft):r?Pe()&&!vt():Ur()&&!vt();case 8:return ii();case 10:return 27===me()||25===me()||ii();case 19:return Pe();case 15:switch(me()){case 27:case 24:return!0}case 11:return 25===me()||Vr();case 16:return Qt(!1);case 17:return Qt(!0);case 20:case 21:return 27===me()||Ar();case 22:return wi();case 23:return e.tokenIsIdentifierOrKeyword(me());case 13:return e.tokenIsIdentifierOrKeyword(me())||18===me();case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function ft(){if(e.Debug.assert(18===me()),19===he()){var t=he();return 27===t||18===t||94===t||117===t}return!0}function gt(){return he(),Pe()}function mt(){return he(),e.tokenIsIdentifierOrKeyword(me())}function yt(){return he(),e.tokenIsIdentifierOrKeywordOrGreaterThan(me())}function vt(){return(117===me()||94===me())&&Ae(ht)}function ht(){return he(),Vr()}function Dt(){return he(),Ar()}function xt(e){if(1===me())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return 19===me();case 3:return 19===me()||82===me()||88===me();case 7:return 18===me()||94===me()||117===me();case 8:return function(){if(qe())return!0;if(tn(me()))return!0;if(38===me())return!0;return!1}();case 19:return 31===me()||20===me()||18===me()||94===me()||117===me();case 11:return 21===me()||26===me();case 15:case 21:case 10:return 23===me();case 17:case 16:case 18:return 21===me()||23===me();case 20:return 27!==me();case 22:return 18===me()||19===me();case 13:return 31===me()||43===me();case 14:return 29===me()&&Ae(ji);default:return!1}}function bt(e,t){var r=I;I|=1<=0)}function At(t){return 6===t?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function Ft(){var e=Ge([],fe());return e.isMissingList=!0,e}function Nt(e,t,r,n){if(we(r)){var i=kt(e,t);return we(n),i}return Ft()}function Pt(e,t){for(var r=fe(),n=e?tt(t):et(t),i=fe();Je(24);){if(29===me()){n.jsdocDotPos=i;break}i=fe(),n=Ye(R.createQualifiedName(n,It(e,!1)),r)}return n}function wt(e,t){return Ye(R.createQualifiedName(e,t),e.pos)}function It(t,r){if(c.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(me())&&Ae(zn))return Xe(79,!0,e.Diagnostics.Identifier_expected);if(80===me()){var n=at();return r?n:Xe(79,!0,e.Diagnostics.Identifier_expected)}return t?tt():et()}function Ot(e){var t=fe();return Ye(R.createTemplateExpression(Jt(e),function(e){var t,r=fe(),n=[];do{t=Bt(e),n.push(t)}while(16===t.literal.kind);return Ge(n,r)}(e)),t)}function Mt(){var e=fe();return Ye(R.createTemplateLiteralType(Jt(!1),function(){var e,t=fe(),r=[];do{e=Lt(),r.push(e)}while(16===e.literal.kind);return Ge(r,t)}()),e)}function Lt(){var e=fe();return Ye(R.createTemplateLiteralTypeSpan(Jr(),Rt(!1)),e)}function Rt(t){return 19===me()?(function(e){A=c.reScanTemplateToken(e)}(t),r=Kt(me()),e.Debug.assert(16===r.kind||17===r.kind,"Template fragment has wrong token kind"),r):Ue(17,e.Diagnostics._0_expected,e.tokenToString(19));var r}function Bt(e){var t=fe();return Ye(R.createTemplateSpan(re(qr),Rt(e)),t)}function jt(){return Kt(me())}function Jt(t){t&&be();var r=Kt(me());return e.Debug.assert(15===r.kind,"Template head has wrong token kind"),r}function Kt(t){var r=fe(),n=e.isTemplateLiteralKind(t)?R.createTemplateLiteralLikeNode(t,c.getTokenValue(),function(e){var t=14===e||17===e,r=c.getTokenText();return r.substring(1,r.length-(c.isUnterminated()?0:t?1:2))}(t),2048&c.getTokenFlags()):8===t?R.createNumericLiteral(c.getTokenValue(),c.getNumericLiteralFlags()):10===t?R.createStringLiteral(c.getTokenValue(),void 0,c.hasExtendedUnicodeEscape()):e.isLiteralKind(t)?R.createLiteralLikeNode(t,c.getTokenValue()):e.Debug.fail();return c.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),c.isUnterminated()&&(n.isUnterminated=!0),he(),Ye(n,r)}function zt(){return Pt(!0,e.Diagnostics.Type_expected)}function Ut(){if(!c.hasPrecedingLineBreak()&&29===Se())return Nt(20,Jr,29,31)}function Vt(){var e=fe();return Ye(R.createTypeReferenceNode(zt(),Ut()),e)}function qt(t){switch(t.kind){case 177:return e.nodeIsMissing(t.typeName);case 178:case 179:var r=t,n=r.parameters,i=r.type;return!!n.isMissingList||qt(i);case 190:return qt(t.type);default:return!1}}function Wt(){var e=fe();return he(),Ye(R.createThisTypeNode(),e)}function Ht(){var e,t=fe();return 108!==me()&&103!==me()||(e=tt(),we(58)),Ye(R.createParameterDeclaration(void 0,void 0,void 0,e,void 0,Gt(),void 0),t)}function Gt(){c.setInJSDocType(!0);var e=fe();if(Je(141)){var t=R.createJSDocNamepathType(void 0);e:for(;;)switch(me()){case 19:case 1:case 27:case 5:break e;default:De()}return c.setInJSDocType(!1),Ye(t,e)}var r=Je(25),n=Br();return c.setInJSDocType(!1),r&&(n=Ye(R.createJSDocVariadicType(n),e)),63===me()?(he(),Ye(R.createJSDocOptionalType(n),e)):n}function Yt(){var e,t,r=fe(),n=et();Je(94)&&(Ar()||!Vr()?e=Jr():t=on());var i=Je(63)?Jr():void 0,a=R.createTypeParameterDeclaration(n,e,i);return a.expression=t,Ye(a,r)}function Xt(){if(29===me())return Nt(19,Yt,29,31)}function Qt(t){return 25===me()||ii()||e.isModifierKind(me())||59===me()||Ar(!t)}function $t(){return er(!0)}function Zt(){return er(!1)}function er(t){var r=fe(),n=ge(),i=t?ne(xi):xi();if(108===me()){var a=R.createParameterDeclaration(i,void 0,void 0,$e(!0),void 0,zr(),void 0);return i&&_e(i[0],e.Diagnostics.Decorators_may_not_be_applied_to_this_parameters),V(Ye(a,r),n)}var o=B;B=!1;var s=Si(),c=V(Ye(R.createParameterDeclaration(i,s,Ke(25),function(t){var r=ai(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return 0===e.getFullWidth(r)&&!e.some(t)&&e.isModifierKind(me())&&he(),r}(s),Ke(57),zr(),Wr()),r),n);return B=o,c}function tr(t,r){if(function(t,r){if(38===t)return we(t),!0;if(Je(58))return!0;if(r&&38===me())return ue(e.Diagnostics._0_expected,e.tokenToString(58)),he(),!0;return!1}(t,r))return Br()}function rr(e){var t=ae(),r=ce();Q(!!(1&e)),Z(!!(2&e));var n=32&e?kt(17,Ht):kt(16,r?$t:Zt);return Q(t),Z(r),n}function nr(e){if(!we(20))return Ft();var t=rr(e);return we(21),t}function ir(){Je(27)||He()}function ar(e){var t=fe(),r=ge();174===e&&we(103);var n=Xt(),i=nr(4),a=tr(58,!0);return ir(),V(Ye(173===e?R.createCallSignature(n,i,a):R.createConstructSignature(n,i,a),t),r)}function or(){return 22===me()&&Ae(sr)}function sr(){if(he(),25===me()||23===me())return!0;if(e.isModifierKind(me())){if(he(),Pe())return!0}else{if(!Pe())return!1;he()}return 58===me()||27===me()||57===me()&&(he(),58===me()||27===me()||23===me())}function cr(e,t,r,n){var i=Nt(16,Zt,22,23),a=zr();return ir(),V(Ye(R.createIndexSignature(r,n,i,a),e),t)}function ur(){if(20===me()||29===me()||136===me()||148===me())return!0;for(var t=!1;e.isModifierKind(me());)t=!0,he();return 22===me()||(rt()&&(t=!0,he()),!!t&&(20===me()||29===me()||57===me()||58===me()||27===me()||qe()))}function lr(){if(20===me()||29===me())return ar(173);if(103===me()&&Ae(dr))return ar(174);var e=fe(),t=ge(),r=Si();return ot(136)?mi(e,t,void 0,r,171):ot(148)?mi(e,t,void 0,r,172):or()?cr(e,t,void 0,r):function(e,t,r){var n,i=it(),a=Ke(57);if(20===me()||29===me()){var o=Xt(),s=nr(4),c=tr(58,!0);n=R.createMethodSignature(r,i,a,o,s,c)}else c=zr(),n=R.createPropertySignature(r,i,a,c),63===me()&&(n.initializer=Wr());return ir(),V(Ye(n,e),t)}(e,t,r)}function dr(){return he(),20===me()||29===me()}function _r(){return 24===he()}function pr(){switch(he()){case 20:case 29:case 24:return!0}return!1}function fr(){var e;return we(18)?(e=bt(4,lr),we(19)):e=Ft(),e}function gr(){return he(),39===me()||40===me()?144===he():(144===me()&&he(),22===me()&>()&&101===he())}function mr(){var e,t=fe();we(18),144!==me()&&39!==me()&&40!==me()||144!==(e=Ve()).kind&&we(144),we(22);var r,n=function(){var e=fe(),t=tt();we(101);var r=Jr();return Ye(R.createTypeParameterDeclaration(t,r,void 0),e)}(),i=Je(127)?Jr():void 0;we(23),57!==me()&&39!==me()&&40!==me()||57!==(r=Ve()).kind&&we(57);var a=zr();He();var o=bt(4,lr);return we(19),Ye(R.createMappedTypeNode(e,n,i,r,a,o),t)}function yr(){var t=fe();if(Je(25))return Ye(R.createRestTypeNode(Jr()),t);var r=Jr();if(e.isJSDocNullableType(r)&&r.pos===r.type.pos){var n=R.createOptionalTypeNode(r.type);return e.setTextRange(n,r),n.flags=r.flags,n}return r}function vr(){return 58===he()||57===me()&&58===he()}function hr(){return 25===me()?e.tokenIsIdentifierOrKeyword(he())&&vr():e.tokenIsIdentifierOrKeyword(me())&&vr()}function Dr(){if(Ae(hr)){var e=fe(),t=ge(),r=Ke(25),n=tt(),i=Ke(57);we(58);var a=yr();return V(Ye(R.createNamedTupleMember(r,n,i,a),e),t)}return yr()}function xr(){var e=fe(),t=ge(),r=function(){var e;if(126===me()){var t=fe();he(),e=Ge([Ye(R.createToken(126),t)],t)}return e}(),n=Je(103),i=Xt(),a=nr(4),o=tr(38,!1),s=n?R.createConstructorTypeNode(r,i,a,o):R.createFunctionTypeNode(i,a,o);return n||(s.modifiers=r),V(Ye(s,e),t)}function br(){var e=Ve();return 24===me()?void 0:e}function Sr(e){var t=fe();e&&he();var r=110===me()||95===me()||104===me()?Ve():Kt(me());return e&&(r=Ye(R.createPrefixUnaryExpression(40,r),t)),Ye(R.createLiteralTypeNode(r),t)}function Tr(){return he(),100===me()}function Cr(){g|=1048576;var e=fe(),t=Je(112);we(100),we(20);var r=Jr();we(21);var n=Je(24)?zt():void 0,i=Ut();return Ye(R.createImportTypeNode(r,n,i,t),e)}function Er(){return he(),8===me()||9===me()}function kr(){switch(me()){case 130:case 154:case 149:case 146:case 157:case 150:case 133:case 152:case 143:case 147:return Fe(br)||Vt();case 66:c.reScanAsteriskEqualsToken();case 41:return r=fe(),he(),Ye(R.createJSDocAllType(),r);case 60:c.reScanQuestionToken();case 57:return function(){var e=fe();return he(),27===me()||19===me()||21===me()||31===me()||63===me()||51===me()?Ye(R.createJSDocUnknownType(),e):Ye(R.createJSDocNullableType(Jr()),e)}();case 98:return function(){var e=fe(),t=ge();if(Ae(Ri)){he();var r=nr(36),n=tr(58,!1);return V(Ye(R.createJSDocFunctionType(r,n),e),t)}return Ye(R.createTypeReferenceNode(tt(),void 0),e)}();case 53:return function(){var e=fe();return he(),Ye(R.createJSDocNonNullableType(kr()),e)}();case 14:case 10:case 8:case 9:case 110:case 95:case 104:return Sr();case 40:return Ae(Er)?Sr(!0):Vt();case 114:return Ve();case 108:var e=Wt();return 139!==me()||c.hasPrecedingLineBreak()?e:(t=e,he(),Ye(R.createTypePredicateNode(void 0,t,Jr()),t.pos));case 112:return Ae(Tr)?Cr():function(){var e=fe();return we(112),Ye(R.createTypeQueryNode(Pt(!0)),e)}();case 18:return Ae(gr)?mr():function(){var e=fe();return Ye(R.createTypeLiteralNode(fr()),e)}();case 22:return function(){var e=fe();return Ye(R.createTupleTypeNode(Nt(21,Dr,22,23)),e)}();case 20:return function(){var e=fe();we(20);var t=Jr();return we(21),Ye(R.createParenthesizedType(t),e)}();case 100:return Cr();case 128:return Ae(zn)?function(){var e=fe(),t=Ue(128),r=108===me()?Wt():et(),n=Je(139)?Jr():void 0;return Ye(R.createTypePredicateNode(t,r,n),e)}():Vt();case 15:return Mt();default:return Vt()}var t,r}function Ar(e){switch(me()){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!e;case 40:return!e&&Ae(Er);case 20:return!e&&Ae(Fr);default:return Pe()}}function Fr(){return he(),21===me()||Qt(!1)||Ar()}function Nr(){var e=fe();return we(137),Ye(R.createInferTypeNode(function(){var e=fe();return Ye(R.createTypeParameterDeclaration(et(),void 0,void 0),e)}()),e)}function Pr(){var e=me();switch(e){case 140:case 153:case 144:return function(e){var t=fe();return we(e),Ye(R.createTypeOperatorNode(e,Pr()),t)}(e);case 137:return Nr()}return function(){for(var e=fe(),t=kr();!c.hasPrecedingLineBreak();)switch(me()){case 53:he(),t=Ye(R.createJSDocNonNullableType(t),e);break;case 57:if(Ae(Dt))return t;he(),t=Ye(R.createJSDocNullableType(t),e);break;case 22:if(we(22),Ar()){var r=Jr();we(23),t=Ye(R.createIndexedAccessTypeNode(t,r),e)}else we(23),t=Ye(R.createArrayTypeNode(t),e);break;default:return t}return t}()}function wr(t){if(Lr()){var r=xr();return _e(r,e.isFunctionTypeNode(r)?t?e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t?e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type),r}}function Ir(e,t,r){var n=fe(),i=51===e,a=Je(e),o=a&&wr(i)||t();if(me()===e||a){for(var s=[o];Je(e);)s.push(wr(i)||t());o=Ye(r(Ge(s,n)),n)}return o}function Or(){return Ir(50,Pr,R.createIntersectionTypeNode)}function Mr(){return he(),103===me()}function Lr(){return 29===me()||(!(20!==me()||!Ae(Rr))||(103===me()||126===me()&&Ae(Mr)))}function Rr(){if(he(),21===me()||25===me())return!0;if(function(){if(e.isModifierKind(me())&&Si(),Pe()||108===me())return he(),!0;if(22===me()||18===me()){var t=T.length;return ai(),t===T.length}return!1}()){if(58===me()||27===me()||57===me()||63===me())return!0;if(21===me()&&(he(),38===me()))return!0}return!1}function Br(){var e=fe(),t=Pe()&&Fe(jr),r=Jr();return t?Ye(R.createTypePredicateNode(void 0,t,r),e):r}function jr(){var e=et();if(139===me()&&!c.hasPrecedingLineBreak())return he(),e}function Jr(){return ee(40960,Kr)}function Kr(e){if(Lr())return xr();var t=fe(),r=Ir(51,Or,R.createUnionTypeNode);if(!e&&!c.hasPrecedingLineBreak()&&Je(94)){var n=Kr(!0);we(57);var i=Kr();we(58);var a=Kr();return Ye(R.createConditionalTypeNode(r,n,i,a),t)}return r}function zr(){return Je(58)?Jr():void 0}function Ur(){switch(me()){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 Ae(pr);default:return Pe()}}function Vr(){if(Ur())return!0;switch(me()){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!!function(){if(oe()&&101===me())return!1;return e.getBinaryOperatorPrecedence(me())>0}()||Pe()}}function qr(){var e=se();e&&$(!1);for(var t,r=fe(),n=Hr();t=Ke(27);)n=nn(n,t,Hr(),r);return e&&$(!0),n}function Wr(){return Je(63)?Hr():void 0}function Hr(){if(function(){if(125===me())return!!ae()||Ae(qn);return!1}())return function(){var e=fe();return he(),c.hasPrecedingLineBreak()||41!==me()&&!Vr()?Ye(R.createYieldExpression(void 0,void 0),e):Ye(R.createYieldExpression(Ke(41),Hr()),e)}();var t=function(){var e=function(){if(20===me()||29===me()||131===me())return Ae(Yr);if(38===me())return 1;return 0}();if(0===e)return;return 1===e?$r(!0):Fe(Xr)}()||function(){if(131===me()&&1===Ae(Qr)){var e=fe(),t=Ti();return Gr(e,en(0),t)}return}();if(t)return t;var r=fe(),n=en(0);return 79===n.kind&&38===me()?Gr(r,n,void 0):e.isLeftHandSideExpression(n)&&e.isAssignmentOperator(xe())?nn(n,Ve(),Hr(),r):function(t,r){var n,i=Ke(57);if(!i)return t;return Ye(R.createConditionalExpression(t,i,ee(u,Hr),n=Ue(58),e.nodeIsPresent(n)?Hr():Xe(79,!1,e.Diagnostics._0_expected,e.tokenToString(58))),r)}(n,r)}function Gr(t,r,n){e.Debug.assert(38===me(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var i=R.createParameterDeclaration(void 0,void 0,void 0,r,void 0,void 0,void 0);Ye(i,r.pos);var a=Ge([i],i.pos,i.end),o=Ue(38),s=Zr(!!n);return W(Ye(R.createArrowFunction(n,void 0,a,void 0,o,s),t))}function Yr(){if(131===me()){if(he(),c.hasPrecedingLineBreak())return 0;if(20!==me()&&29!==me())return 0}var t=me(),r=he();if(20===t){if(21===r)switch(he()){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)&&131!==r&&Ae(gt))return 1;if(!Pe()&&108!==r)return 0;switch(he()){case 58:return 1;case 57:return he(),58===me()||27===me()||63===me()||21===me()?1:0;case 27:case 63:case 21:return 2}return 0}if(e.Debug.assert(29===t),!Pe())return 0;if(1===S){var n=Ae((function(){var e=he();if(94===e)switch(he()){case 63:case 31:return!1;default:return!0}else if(27===e)return!0;return!1}));return n?1:0}return 2}function Xr(){var t=c.getTokenPos();if(!(null==O?void 0:O.has(t))){var r=$r(!1);return r||(O||(O=new e.Set)).add(t),r}}function Qr(){if(131===me()){if(he(),c.hasPrecedingLineBreak()||38===me())return 0;var e=en(0);if(!c.hasPrecedingLineBreak()&&79===e.kind&&38===me())return 1}return 0}function $r(t){var r,n=fe(),i=ge(),a=Ti(),o=e.some(a,e.isAsyncModifier)?2:0,s=Xt();if(we(20)){if(r=rr(o),!we(21)&&!t)return}else{if(!t)return;r=Ft()}var c=tr(58,!1);if(!c||t||!qt(c)){var u=c&&e.isJSDocFunctionType(c);if(t||38===me()||!u&&18===me()){var l=me(),d=Ue(38),_=38===l||18===l?Zr(e.some(a,e.isAsyncModifier)):et();return V(Ye(R.createArrowFunction(a,s,r,c,d,_),n),i)}}}function Zr(e){if(18===me())return Ln(e?2:0);if(26!==me()&&98!==me()&&84!==me()&&Gn()&&(18===me()||98===me()||84===me()||59===me()||!Vr()))return Ln(16|(e?2:0));var t=B;B=!1;var r=e?ne(Hr):ee(32768,Hr);return B=t,r}function en(e){var t=fe();return rn(e,on(),t)}function tn(e){return 101===e||159===e}function rn(t,r,n){for(;;){xe();var i=e.getBinaryOperatorPrecedence(me());if(!(42===me()?i>=t:i>t))break;if(101===me()&&oe())break;if(127===me()){if(c.hasPrecedingLineBreak())break;he(),a=r,o=Jr(),r=Ye(R.createAsExpression(a,o),a.pos)}else r=nn(r,Ve(),en(i),n)}var a,o;return r}function nn(e,t,r,n){return Ye(R.createBinaryExpression(e,t,r),n)}function an(){var e=fe();return Ye(R.createPrefixUnaryExpression(me(),ve(sn)),e)}function on(){if(function(){switch(me()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 132:return!1;case 29:if(1!==S)return!1;default:return!0}}()){var t=fe(),r=cn();return 42===me()?rn(e.getBinaryOperatorPrecedence(me()),r,t):r}var n=me(),i=sn();if(42===me()){t=e.skipTrivia(D,i.pos);var a=i.end;210===i.kind?de(t,a,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):de(t,a,e.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,e.tokenToString(n))}return i}function sn(){switch(me()){case 39:case 40:case 54:case 53:return an();case 89:return e=fe(),Ye(R.createDeleteExpression(ve(sn)),e);case 112:return function(){var e=fe();return Ye(R.createTypeOfExpression(ve(sn)),e)}();case 114:return function(){var e=fe();return Ye(R.createVoidExpression(ve(sn)),e)}();case 29:return function(){var e=fe();we(29);var t=Jr();we(31);var r=sn();return Ye(R.createTypeAssertion(t,r),e)}();case 132:if(132===me()&&(ce()||Ae(qn)))return function(){var e=fe();return Ye(R.createAwaitExpression(ve(sn)),e)}();default:return cn()}var e}function cn(){if(45===me()||46===me()){var t=fe();return Ye(R.createPrefixUnaryExpression(me(),ve(un)),t)}if(1===S&&29===me()&&Ae(yt))return dn(!0);var r=un();if(e.Debug.assert(e.isLeftHandSideExpression(r)),(45===me()||46===me())&&!c.hasPrecedingLineBreak()){var n=me();return he(),Ye(R.createPostfixUnaryExpression(r,n),r.pos)}return r}function un(){var t,r=fe();return 100===me()?Ae(dr)?(g|=1048576,t=Ve()):Ae(_r)?(he(),he(),t=Ye(R.createMetaProperty(100,tt()),r),g|=2097152):t=ln():t=106===me()?function(){var t=fe(),r=Ve();if(29===me()){var n=fe();void 0!==Fe(En)&&de(n,fe(),e.Diagnostics.super_may_not_use_type_arguments)}if(20===me()||24===me()||22===me())return r;return Ue(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),Ye(R.createPropertyAccessExpression(r,It(!0,!0)),t)}():ln(),Tn(r,t)}function ln(){return xn(fe(),kn(),!0)}function dn(t,n,i){var a,o=fe(),s=function(e){var t=fe();if(we(29),31===me())return Ee(),Ye(R.createJsxOpeningFragment(),t);var r,n=fn(),i=0==(131072&M)?Pi():void 0,a=function(){var e=fe();return Ye(R.createJsxAttributes(bt(13,mn)),e)}();31===me()?(Ee(),r=R.createJsxOpeningElement(n,i,a)):(we(43),we(31,void 0,!1)&&(e?he():Ee()),r=R.createJsxSelfClosingElement(n,i,a));return Ye(r,t)}(t);if(279===s.kind){var c=pn(s),u=void 0,l=c[c.length-1];if(277===(null==l?void 0:l.kind)&&!E(l.openingElement.tagName,l.closingElement.tagName)&&E(s.tagName,l.closingElement.tagName)){var d=l.children.end,_=Ye(R.createJsxElement(l.openingElement,l.children,Ye(R.createJsxClosingElement(Ye(R.createIdentifier(""),d,d)),d,d)),l.openingElement.pos,d);c=Ge(r(r([],c.slice(0,c.length-1),!0),[_],!1),c.pos,d),u=l.closingElement}else u=function(e,t){var r=fe();we(30);var n=fn();we(31,void 0,!1)&&(t||!E(e.tagName,n)?he():Ee());return Ye(R.createJsxClosingElement(n),r)}(s,t),E(s.tagName,u.tagName)||(i&&e.isJsxOpeningElement(i)&&E(u.tagName,i.tagName)?_e(s.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(D,s.tagName)):_e(u.tagName,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(D,s.tagName)));a=Ye(R.createJsxElement(s,c,u),o)}else 282===s.kind?a=Ye(R.createJsxFragment(s,pn(s),function(t){var r=fe();we(30),e.tokenIsIdentifierOrKeyword(me())&&_e(fn(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment);we(31,void 0,!1)&&(t?he():Ee());return Ye(R.createJsxJsxClosingFragment(),r)}(t)),o):(e.Debug.assert(278===s.kind),a=s);if(t&&29===me()){var p=void 0===n?a.pos:n,f=Fe((function(){return dn(!0,p)}));if(f){var g=Xe(27,!1);return e.setTextRangePosWidth(g,f.pos,0),de(e.skipTrivia(D,p),f.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),Ye(R.createBinaryExpression(a,g,f),o)}}return a}function _n(t,r){switch(r){case 1:if(e.isJsxOpeningFragment(t))_e(t,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var n=t.tagName;de(e.skipTrivia(D,n.pos),n.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(D,t.tagName))}return;case 30:case 7:return;case 11:case 12:return function(){var e=fe(),t=R.createJsxText(c.getTokenValue(),12===A);return A=c.scanJsxToken(),Ye(t,e)}();case 18:return gn(!1);case 29:return dn(!1,void 0,t);default:return e.Debug.assertNever(r)}}function pn(t){var r=[],n=fe(),i=I;for(I|=16384;;){var a=_n(t,A=c.reScanJsxToken());if(!a)break;if(r.push(a),e.isJsxOpeningElement(t)&&277===(null==a?void 0:a.kind)&&!E(a.openingElement.tagName,a.closingElement.tagName)&&E(t.tagName,a.closingElement.tagName))break}return I=i,Ge(r,n)}function fn(){var e=fe();Ce();for(var t=108===me()?Ve():tt();Je(24);)t=Ye(R.createPropertyAccessExpression(t,It(!0,!1)),e);return t}function gn(e){var t,r,n=fe();if(we(18))return 19!==me()&&(t=Ke(25),r=qr()),e?we(19):we(19,void 0,!1)&&Ee(),Ye(R.createJsxExpression(t,r),n)}function mn(){if(18===me())return function(){var e=fe();we(18),we(25);var t=qr();return we(19),Ye(R.createJsxSpreadAttribute(t),e)}();Ce();var e=fe();return Ye(R.createJsxAttribute(tt(),63!==me()?void 0:10===(A=c.scanJsxAttributeValue())?jt():gn(!0)),e)}function yn(){return he(),e.tokenIsIdentifierOrKeyword(me())||22===me()||bn()}function vn(t){if(32&t.flags)return!0;if(e.isNonNullExpression(t)){for(var r=t.expression;e.isNonNullExpression(r)&&!(32&r.flags);)r=r.expression;if(32&r.flags){for(;e.isNonNullExpression(t);)t.flags|=32,t=t.expression;return!0}}return!1}function hn(t,r,n){var i=It(!0,!0),a=n||vn(r),o=a?R.createPropertyAccessChain(r,n,i):R.createPropertyAccessExpression(r,i);return a&&e.isPrivateIdentifier(o.name)&&_e(o.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),Ye(o,t)}function Dn(t,r,n){var i;if(23===me())i=Xe(79,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var a=re(qr);e.isStringOrNumericLiteralLike(a)&&(a.text=Qe(a.text)),i=a}return we(23),Ye(n||vn(r)?R.createElementAccessChain(r,n,i):R.createElementAccessExpression(r,i),t)}function xn(t,r,n){for(;;){var i=void 0,a=!1;if(n&&28===me()&&Ae(yn)?(i=Ue(28),a=e.tokenIsIdentifierOrKeyword(me())):a=Je(24),a)r=hn(t,r,i);else if(i||53!==me()||c.hasPrecedingLineBreak())if(!i&&se()||!Je(22)){if(!bn())return r;r=Sn(t,r,i,void 0)}else r=Dn(t,r,i);else he(),r=Ye(R.createNonNullExpression(r),t)}}function bn(){return 14===me()||15===me()}function Sn(e,t,r,n){var i=R.createTaggedTemplateExpression(t,n,14===me()?(be(),jt()):Ot(!0));return(r||32&t.flags)&&(i.flags|=32),i.questionDotToken=r,Ye(i,e)}function Tn(t,r){for(;;){r=xn(t,r,!0);var n=Ke(28);if(0!=(131072&M)||29!==me()&&47!==me()){if(20===me()){a=Cn();r=Ye(n||vn(r)?R.createCallChain(r,n,void 0,a):R.createCallExpression(r,void 0,a),t);continue}}else{var i=Fe(En);if(i){if(bn()){r=Sn(t,r,n,i);continue}var a=Cn();r=Ye(n||vn(r)?R.createCallChain(r,n,i,a):R.createCallExpression(r,i,a),t);continue}}if(n){var o=Xe(79,!1,e.Diagnostics.Identifier_expected);r=Ye(R.createPropertyAccessChain(r,n,o),t)}break}return r}function Cn(){we(20);var e=kt(11,Fn);return we(21),e}function En(){if(0==(131072&M)&&29===Se()){he();var e=kt(20,Jr);if(we(31))return e&&function(){switch(me()){case 20:case 14:case 15:case 24:case 21:case 23:case 58:case 26:case 57:case 34:case 36:case 35:case 37:case 55:case 56:case 60:case 52:case 50:case 51:case 19:case 1:return!0;default:return!1}}()?e:void 0}}function kn(){switch(me()){case 8:case 9:case 10:case 14:return jt();case 108:case 106:case 104:case 110:case 95:return Ve();case 20:return function(){var e=fe(),t=ge();we(20);var r=re(qr);return we(21),V(Ye(R.createParenthesizedExpression(r),e),t)}();case 22:return Nn();case 18:return wn();case 131:if(!Ae(Vn))break;return In();case 84:return ki(fe(),ge(),void 0,void 0,225);case 98:return In();case 103:return function(){var t=fe();if(we(103),Je(24)){var r=tt();return Ye(R.createMetaProperty(103,r),t)}var n,i,a=fe(),o=kn();for(;;){o=xn(a,o,!1),n=Fe(En),bn()&&(e.Debug.assert(!!n,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),o=Sn(a,o,void 0,n),n=void 0);break}20===me()?i=Cn():n&&de(t,c.getStartPos(),e.Diagnostics.A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list);return Ye(R.createNewExpression(o,n,i),t)}();case 43:case 68:if(13===(A=c.reScanSlashToken()))return jt();break;case 15:return Ot(!1);case 80:return at()}return et(e.Diagnostics.Expression_expected)}function An(){return 25===me()?function(){var e=fe();we(25);var t=Hr();return Ye(R.createSpreadElement(t),e)}():27===me()?Ye(R.createOmittedExpression(),fe()):Hr()}function Fn(){return ee(u,An)}function Nn(){var e=fe();we(22);var t=c.hasPrecedingLineBreak(),r=kt(15,An);return we(23),Ye(R.createArrayLiteralExpression(r,t),e)}function Pn(){var e=fe(),t=ge();if(Ke(25)){var r=Hr();return V(Ye(R.createSpreadAssignment(r),e),t)}var n=xi(),i=Si();if(ot(136))return mi(e,t,n,i,171);if(ot(148))return mi(e,t,n,i,172);var a,o=Ke(41),s=Pe(),c=it(),u=Ke(57),l=Ke(53);if(o||20===me()||29===me())return pi(e,t,n,i,o,c,u,l);if(s&&58!==me()){var d=Ke(63),_=d?re(Hr):void 0;(a=R.createShorthandPropertyAssignment(c,_)).equalsToken=d}else{we(58);var p=re(Hr);a=R.createPropertyAssignment(c,p)}return a.decorators=n,a.modifiers=i,a.questionToken=u,a.exclamationToken=l,V(Ye(a,e),t)}function wn(){var t=fe(),r=c.getTokenPos();we(18);var n=c.hasPrecedingLineBreak(),i=kt(12,Pn,!0);if(!we(19)){var a=e.lastOrUndefined(T);a&&a.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(a,e.createDetachedDiagnostic(_,r,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return Ye(R.createObjectLiteralExpression(i,n),t)}function In(){var t=se();$(!1);var r=fe(),n=ge(),i=Si();we(98);var a=Ke(41),o=a?1:0,s=e.some(i,e.isAsyncModifier)?2:0,c=o&&s?te(40960,On):o?function(e){return te(8192,e)}(On):s?ne(On):On(),u=Xt(),l=nr(o|s),d=tr(58,!1),_=Ln(o|s);return $(t),V(Ye(R.createFunctionExpression(i,a,c,u,l,d,_),r),n)}function On(){return Ne()?Ze():void 0}function Mn(t,r){var n=fe(),i=ge(),a=c.getTokenPos();if(we(18,r)||t){var o=c.hasPrecedingLineBreak(),s=bt(1,Xn);if(!we(19)){var u=e.lastOrUndefined(T);u&&u.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(u,e.createDetachedDiagnostic(_,a,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}var l=V(Ye(R.createBlock(s,o),n),i);return 63===me()&&(ue(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),he()),l}s=Ft();return V(Ye(R.createBlock(s,void 0),n),i)}function Ln(e,t){var r=ae();Q(!!(1&e));var n=ce();Z(!!(2&e));var i=B;B=!1;var a=se();a&&$(!1);var o=Mn(!!(16&e),t);return a&&$(!0),B=i,Q(r),Z(n),o}function Rn(){var e=fe(),t=ge();we(97);var r,n,i=Ke(132);if(we(20),26!==me()&&(r=113===me()||119===me()||85===me()?ci(!0):te(4096,qr)),i?we(159):Je(159)){var a=re(Hr);we(21),n=R.createForOfStatement(i,r,a,Xn())}else if(Je(101)){a=re(qr);we(21),n=R.createForInStatement(r,a,Xn())}else{we(26);var o=26!==me()&&21!==me()?re(qr):void 0;we(26);var s=21!==me()?re(qr):void 0;we(21),n=R.createForStatement(r,o,s,Xn())}return V(Ye(n,e),t)}function Bn(e){var t=fe(),r=ge();we(245===e?81:86);var n=qe()?void 0:et();return He(),V(Ye(245===e?R.createBreakStatement(n):R.createContinueStatement(n),t),r)}function jn(){return 82===me()?function(){var e=fe();we(82);var t=re(qr);we(58);var r=bt(3,Xn);return Ye(R.createCaseClause(t,r),e)}():function(){var e=fe();we(88),we(58);var t=bt(3,Xn);return Ye(R.createDefaultClause(t),e)}()}function Jn(){var e=fe(),t=ge();we(107),we(20);var r=re(qr);we(21);var n=function(){var e=fe();we(18);var t=bt(2,jn);return we(19),Ye(R.createCaseBlock(t),e)}();return V(Ye(R.createSwitchStatement(r,n),e),t)}function Kn(){var e=fe(),t=ge();we(111);var r,n=Mn(!1),i=83===me()?function(){var e,t=fe();we(83),Je(20)?(e=si(),we(21)):e=void 0;var r=Mn(!1);return Ye(R.createCatchClause(e,r),t)}():void 0;return i&&96!==me()||(we(96),r=Mn(!1)),V(Ye(R.createTryStatement(n,i,r),e),t)}function zn(){return he(),e.tokenIsIdentifierOrKeyword(me())&&!c.hasPrecedingLineBreak()}function Un(){return he(),84===me()&&!c.hasPrecedingLineBreak()}function Vn(){return he(),98===me()&&!c.hasPrecedingLineBreak()}function qn(){return he(),(e.tokenIsIdentifierOrKeyword(me())||8===me()||9===me()||10===me())&&!c.hasPrecedingLineBreak()}function Wn(){for(;;)switch(me()){case 113:case 119:case 85:case 98:case 84:case 92:return!0;case 118:case 151:return he(),!c.hasPrecedingLineBreak()&&Pe();case 141:case 142:return ei();case 126:case 131:case 135:case 121:case 122:case 123:case 144:if(he(),c.hasPrecedingLineBreak())return!1;continue;case 156:return he(),18===me()||79===me()||93===me();case 100:return he(),10===me()||41===me()||18===me()||e.tokenIsIdentifierOrKeyword(me());case 93:var t=he();if(151===t&&(t=Ae(he)),63===t||41===t||18===t||88===t||127===t)return!0;continue;case 124:he();continue;default:return!1}}function Hn(){return Ae(Wn)}function Gn(){switch(me()){case 59:case 26:case 18:case 113:case 119:case 98:case 84:case 92:case 99:case 90:case 115:case 97:case 86:case 81:case 105:case 116:case 107:case 109:case 111:case 87:case 83:case 96:case 131:case 135:case 118:case 141:case 142:case 151:case 156:return!0;case 100:return Hn()||Ae(pr);case 85:case 93:return Hn();case 123:case 121:case 122:case 124:case 144:return Hn()||!Ae(zn);default:return Vr()}}function Yn(){return he(),Ne()||18===me()||22===me()}function Xn(){switch(me()){case 26:return t=fe(),r=ge(),we(26),V(Ye(R.createEmptyStatement(),t),r);case 18:return Mn(!1);case 113:return li(fe(),ge(),void 0,void 0);case 119:if(Ae(Yn))return li(fe(),ge(),void 0,void 0);break;case 98:return di(fe(),ge(),void 0,void 0);case 84:return Ei(fe(),ge(),void 0,void 0);case 99:return function(){var e=fe(),t=ge();we(99),we(20);var r=re(qr);we(21);var n=Xn(),i=Je(91)?Xn():void 0;return V(Ye(R.createIfStatement(r,n,i),e),t)}();case 90:return function(){var e=fe(),t=ge();we(90);var r=Xn();we(115),we(20);var n=re(qr);return we(21),Je(26),V(Ye(R.createDoStatement(r,n),e),t)}();case 115:return function(){var e=fe(),t=ge();we(115),we(20);var r=re(qr);we(21);var n=Xn();return V(Ye(R.createWhileStatement(r,n),e),t)}();case 97:return Rn();case 86:return Bn(244);case 81:return Bn(245);case 105:return function(){var e=fe(),t=ge();we(105);var r=qe()?void 0:re(qr);return He(),V(Ye(R.createReturnStatement(r),e),t)}();case 116:return function(){var e=fe(),t=ge();we(116),we(20);var r=re(qr);we(21);var n=te(16777216,Xn);return V(Ye(R.createWithStatement(r,n),e),t)}();case 107:return Jn();case 109:return function(){var e=fe(),t=ge();we(109);var r=c.hasPrecedingLineBreak()?void 0:re(qr);return void 0===r&&(w++,r=Ye(R.createIdentifier(""),fe())),We()||Re(r),V(Ye(R.createThrowStatement(r),e),t)}();case 111:case 83:case 96:return Kn();case 87:return function(){var e=fe(),t=ge();return we(87),He(),V(Ye(R.createDebuggerStatement(),e),t)}();case 59:return $n();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(Hn())return $n()}var t,r;return function(){var t,r=fe(),n=ge(),i=20===me(),a=re(qr);return e.isIdentifier(a)&&Je(58)?t=R.createLabeledStatement(a,Xn()):(We()||Re(a),t=R.createExpressionStatement(a),i&&(n=!1)),V(Ye(t,r),n)}()}function Qn(e){return 135===e.kind}function $n(){var t=e.some(Ae((function(){return xi(),Si()})),Qn);if(t){var r=te(8388608,(function(){var e=Tt(I);if(e)return Ct(e)}));if(r)return r}var n=fe(),i=ge(),a=xi(),o=Si();if(t){for(var s=0,c=o;s=0),e.Debug.assert(t<=o),e.Debug.assert(o<=a.length),p(a,t)){var s,u,l,d,f,g=[],m=[];return c.scanRange(t+3,i-5,(function(){var r,n=1,i=t-(a.lastIndexOf("\n",t)+1)+4;function _(e){r||(r=i),g.push(e),i+=e.length}for(De();H(5););H(4)&&(n=0,i=0);e:for(;;){switch(me()){case 59:0===n||1===n?(v(g),f||(f=fe()),N(S(i)),n=0,r=void 0):_(c.getTokenText());break;case 4:g.push(c.getTokenText()),n=0,i=0;break;case 41:var p=c.getTokenText();1===n||2===n?(n=2,_(p)):(n=1,i+=p.length);break;case 5:var h=c.getTokenText();2===n?g.push(h):void 0!==r&&i+h.length>r&&g.push(h.slice(r-i)),i+=h.length;break;case 1:break e;case 18:n=2;var D=c.getStartPos(),x=A(c.getTextPos()-1);if(x){d||y(g),m.push(Ye(R.createJSDocText(g.join("")),null!=d?d:t,D)),m.push(x),g=[],d=c.getTextPos();break}default:n=2,_(c.getTokenText())}De()}v(g),m.length&&g.length&&m.push(Ye(R.createJSDocText(g.join("")),null!=d?d:t,f)),m.length&&s&&e.Debug.assertIsDefined(f,"having parsed tags implies that the end of the comment span should be set");var b=s&&Ge(s,u,l);return Ye(R.createJSDocComment(m.length?Ge(m,t,f):g.length?g.join(""):void 0,b),t,o)}))}function y(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function v(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function h(){for(;;){if(De(),1===me())return!0;if(5!==me()&&4!==me())return!1}}function x(){if(5!==me()&&4!==me()||!Ae(h))for(;5===me()||4===me();)De()}function b(){if((5===me()||4===me())&&Ae(h))return"";for(var e=c.hasPrecedingLineBreak(),t=!1,r="";e&&41===me()||5===me()||4===me();)r+=c.getTokenText(),4===me()?(e=!0,t=!0,r=""):41===me()&&(e=!1),De();return t?r:""}function S(t){e.Debug.assert(59===me());var i=c.getTokenPos();De();var a,o=G(void 0),u=b();switch(o.escapedText){case"author":a=function(t,r,n,i){var a=fe(),o=function(){var e=[],t=!1,r=c.getToken();for(;1!==r&&4!==r;){if(29===r)t=!0;else{if(59===r&&!t)break;if(31===r&&t){e.push(c.getTokenText()),c.setTextPos(c.getTokenPos()+1);break}}e.push(c.getTokenText()),r=De()}return R.createJSDocText(e.join(""))}(),s=c.getStartPos(),u=C(t,s,n,i);u||(s=c.getStartPos());var l="string"!=typeof u?Ge(e.concatenate([Ye(o,a,s)],u),a):o.text+u;return Ye(R.createJSDocAuthorTag(r,l),t)}(i,o,t,u);break;case"implements":a=function(e,t,r,n){var i=B();return Ye(R.createJSDocImplementsTag(t,i,C(e,fe(),r,n)),e)}(i,o,t,u);break;case"augments":case"extends":a=function(e,t,r,n){var i=B();return Ye(R.createJSDocAugmentsTag(t,i,C(e,fe(),r,n)),e)}(i,o,t,u);break;case"class":case"constructor":a=j(i,R.createJSDocClassTag,o,t,u);break;case"public":a=j(i,R.createJSDocPublicTag,o,t,u);break;case"private":a=j(i,R.createJSDocPrivateTag,o,t,u);break;case"protected":a=j(i,R.createJSDocProtectedTag,o,t,u);break;case"readonly":a=j(i,R.createJSDocReadonlyTag,o,t,u);break;case"override":a=j(i,R.createJSDocOverrideTag,o,t,u);break;case"deprecated":q=!0,a=j(i,R.createJSDocDeprecatedTag,o,t,u);break;case"this":a=function(e,t,n,i){var a=r(!0);return x(),Ye(R.createJSDocThisTag(t,a,C(e,fe(),n,i)),e)}(i,o,t,u);break;case"enum":a=function(e,t,n,i){var a=r(!0);return x(),Ye(R.createJSDocEnumTag(t,a,C(e,fe(),n,i)),e)}(i,o,t,u);break;case"arg":case"argument":case"param":return M(i,o,2,t);case"return":case"returns":a=function(t,r,n,i){e.some(s,e.isJSDocReturnTag)&&de(r.pos,c.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var a=P();return Ye(R.createJSDocReturnTag(r,a,C(t,fe(),n,i)),t)}(i,o,t,u);break;case"template":a=function(e,t,n,i){var a=18===me()?r():void 0,o=function(){var e=fe(),t=[];do{x();var r=W();void 0!==r&&t.push(r),b()}while(H(27));return Ge(t,e)}();return Ye(R.createJSDocTemplateTag(t,a,o,C(e,fe(),n,i)),e)}(i,o,t,u);break;case"type":a=L(i,o,t,u);break;case"typedef":a=function(t,r,n,i){var a,o=P();b();var s=J();x();var c,u=E(n);if(!o||O(o.type)){for(var l=void 0,d=void 0,p=void 0,f=!1;l=Fe((function(){return z(n)}));)if(f=!0,341===l.kind){if(d){ue(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);var g=e.lastOrUndefined(T);g&&e.addRelatedInfo(g,e.createDetachedDiagnostic(_,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}d=l}else p=e.append(p,l);if(f){var m=o&&182===o.type.kind,y=R.createJSDocTypeLiteral(p,m);c=(o=d&&d.typeExpression&&!O(d.typeExpression.type)?d.typeExpression:Ye(y,t)).end}}c=c||void 0!==u?fe():(null!==(a=null!=s?s:o)&&void 0!==a?a:r).end,u||(u=C(t,c,n,i));return Ye(R.createJSDocTypedefTag(r,o,s,u),t,c)}(i,o,t,u);break;case"callback":a=function(t,r,n,i){var a=J();x();var o=E(n),s=function(t){var r,n,i=fe();for(;r=Fe((function(){return U(4,t)}));)n=e.append(n,r);return Ge(n||[],i)}(n),c=Fe((function(){if(H(59)){var e=S(n);if(e&&339===e.kind)return e}})),u=Ye(R.createJSDocSignature(void 0,s,c),t);o||(o=C(t,fe(),n,i));return Ye(R.createJSDocCallbackTag(r,u,a,o),t)}(i,o,t,u);break;case"see":a=function(t,r,i,a){var o=22===me()||Ae((function(){return 59===De()&&e.tokenIsIdentifierOrKeyword(De())&&"link"===c.getTokenValue()}))?void 0:n(),s=void 0!==i&&void 0!==a?C(t,fe(),i,a):void 0;return Ye(R.createJSDocSeeTag(r,o,s),t)}(i,o,t,u);break;default:a=function(e,t,r,n){return Ye(R.createJSDocUnknownTag(t,C(e,fe(),r,n)),e)}(i,o,t,u)}return a}function C(e,t,r,n){return n||(r+=t-e),E(r,n.slice(r))}function E(e,t){var r,n,i=fe(),a=[],o=[],s=0,u=!0;function l(t){n||(n=e),a.push(t),e+=t.length}void 0!==t&&(""!==t&&l(t),s=1);var d=me();e:for(;;){switch(d){case 4:s=0,a.push(c.getTokenText()),e=0;break;case 59:if(3===s||2===s&&(!u||Ae(k))){a.push(c.getTokenText());break}c.setTextPos(c.getTextPos()-1);case 1:break e;case 5:if(2===s||3===s)l(c.getTokenText());else{var _=c.getTokenText();void 0!==n&&e+_.length>n&&a.push(_.slice(n-e)),e+=_.length}break;case 18:s=2;var p=c.getStartPos(),f=A(c.getTextPos()-1);f?(o.push(Ye(R.createJSDocText(a.join("")),null!=r?r:i,p)),o.push(f),a=[],r=c.getTextPos()):l(c.getTokenText());break;case 61:s=3===s?2:3,l(c.getTokenText());break;case 41:if(0===s){s=1,e+=1;break}default:3!==s&&(s=2),l(c.getTokenText())}u=5===me(),d=De()}return y(a),v(a),o.length?(a.length&&o.push(Ye(R.createJSDocText(a.join("")),null!=r?r:i)),Ge(o,i,c.getTextPos())):a.length?a.join(""):void 0}function k(){var e=De();return 5===e||4===e}function A(t){var r=Fe(F);if(r){De(),x();var n=fe(),i=e.tokenIsIdentifierOrKeyword(me())?Pt(!0):void 0;if(i)for(;80===me();)Te(),De(),i=Ye(R.createJSDocMemberName(i,et()),n);for(var a=[];19!==me()&&4!==me()&&1!==me();)a.push(c.getTokenText()),De();return Ye(("link"===r?R.createJSDocLink:"linkcode"===r?R.createJSDocLinkCode:R.createJSDocLinkPlain)(i,a.join("")),t,c.getTextPos())}}function F(){if(b(),18===me()&&59===De()&&e.tokenIsIdentifierOrKeyword(De())){var t=c.getTokenValue();if("link"===t||"linkcode"===t||"linkplain"===t)return t}}function N(e){e&&(s?s.push(e):(s=[e],u=e.pos),l=e.end)}function P(){return b(),18===me()?r():void 0}function I(){var t=H(22);t&&x();var r=H(61),n=function(){var e=G();Je(22)&&we(23);for(;Je(24);){var t=G();Je(22)&&we(23),e=wt(e,t)}return e}();return r&&function(t){ze(t)||Xe(t,!1,e.Diagnostics._0_expected,e.tokenToString(t))}(61),t&&(x(),Ke(63)&&qr(),we(23)),{name:n,isBracketed:t}}function O(t){switch(t.kind){case 147:return!0;case 182:return O(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText&&!t.typeArguments}}function M(t,r,n,i){var a=P(),o=!a;b();var s=I(),c=s.name,u=s.isBracketed,l=b();o&&!Ae(F)&&(a=P());var d=C(t,fe(),i,l),_=4!==n&&function(t,r,n,i){if(t&&O(t.type)){for(var a=fe(),o=void 0,s=void 0;o=Fe((function(){return U(n,i,r)}));)338!==o.kind&&345!==o.kind||(s=e.append(s,o));if(s){var c=Ye(R.createJSDocTypeLiteral(s,182===t.type.kind),a);return Ye(R.createJSDocTypeExpression(c),a)}}}(a,c,n,i);return _&&(a=_,o=!0),Ye(1===n?R.createJSDocPropertyTag(r,c,u,a,o,d):R.createJSDocParameterTag(r,c,u,a,o,d),t)}function L(t,n,i,a){e.some(s,e.isJSDocTypeTag)&&de(n.pos,c.getTokenPos(),e.Diagnostics._0_tag_already_specified,n.escapedText);var o=r(!0),u=void 0!==i&&void 0!==a?C(t,fe(),i,a):void 0;return Ye(R.createJSDocTypeTag(n,o,u),t)}function B(){var e=Je(18),t=fe(),r=function(){var e=fe(),t=G();for(;Je(24);){var r=G();t=Ye(R.createPropertyAccessExpression(t,r),e)}return t}(),n=Pi(),i=Ye(R.createExpressionWithTypeArguments(r,n),t);return e&&we(19),i}function j(e,t,r,n,i){return Ye(t(r,C(e,fe(),n,i)),e)}function J(t){var r=c.getTokenPos();if(e.tokenIsIdentifierOrKeyword(me())){var n=G();if(Je(24)){var i=J(!0);return Ye(R.createModuleDeclaration(void 0,void 0,n,i,t?4:void 0),r)}return t&&(n.isInJSDocNamespace=!0),n}}function K(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 z(e){return U(1,e)}function U(t,r,n){for(var i=!0,a=!1;;)switch(De()){case 59:if(i){var o=V(t,r);return!(o&&(338===o.kind||345===o.kind)&&4!==t&&n&&(e.isIdentifier(o.name)||!K(n,o.name.left)))&&o}a=!1;break;case 4:i=!0,a=!1;break;case 41:a&&(i=!1),a=!0;break;case 79:i=!1;break;case 1:return!1}}function V(t,r){e.Debug.assert(59===me());var n=c.getStartPos();De();var i,a=G();switch(x(),a.escapedText){case"type":return 1===t&&L(n,a);case"prop":case"property":i=1;break;case"arg":case"argument":case"param":i=6;break;default:return!1}return!!(t&i)&&M(n,a,t,r)}function W(){var t=fe(),r=H(22);r&&x();var n,i=G(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);if(r&&(x(),we(63),n=te(4194304,Gt),we(23)),!e.nodeIsMissing(i))return Ye(R.createTypeParameterDeclaration(i,void 0,n),t)}function H(e){return me()===e&&(De(),!0)}function G(t){if(!e.tokenIsIdentifierOrKeyword(me()))return Xe(79,!t,t||e.Diagnostics.Identifier_expected);w++;var r=c.getTokenPos(),n=c.getTextPos(),i=me(),a=Qe(c.getTokenValue()),o=Ye(R.createIdentifier(a,void 0,i),r,n);return De(),o}}t.parseJSDocTypeExpressionForTests=function(t,n,i){K("file.js",t,99,void 0,1),c.setText(t,n,i),A=c.scan();var a=r(),o=G("file.js",99,1,!1,[],R.createToken(1),0),s=e.attachFileToDiagnostics(T,o);return C&&(o.jsDocDiagnostics=e.attachFileToDiagnostics(C,o)),z(),a?{jsDocTypeExpression:a,diagnostics:s}:void 0},t.parseJSDocTypeExpression=r,t.parseJSDocNameReference=n,t.parseIsolatedJSDocComment=function(t,r,n){K("",t,99,void 0,1);var i=te(4194304,(function(){return o(r,n)})),a={languageVariant:0,text:t},s=e.attachFileToDiagnostics(T,a);return z(),i?{jsDoc:i,diagnostics:s}:void 0},t.parseJSDocComment=function(t,r,n){var i=A,a=T.length,s=j,c=te(4194304,(function(){return o(r,n)}));return e.setParent(c,t),131072&M&&(C||(C=[]),C.push.apply(C,T)),A=i,T.length=a,j=s,c},function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments",e[e.SavingBackticks=3]="SavingBackticks"}(i||(i={})),function(e){e[e.Property=1]="Property",e[e.Parameter=2]="Parameter",e[e.CallbackParameter=4]="CallbackParameter"}(a||(a={}))}(Me=t.JSDocParser||(t.JSDocParser={}))}(u||(u={})),function(t){function r(t,r,i,o,s,c){return void(r?l(t):u(t));function u(t){var r="";if(c&&n(t)&&(r=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),e.setTextRangePosEnd(t,t.pos+i,t.end+i),c&&n(t)&&e.Debug.assert(r===s.substring(t.pos,t.end)),f(t,u,l),e.hasJSDocNodes(t))for(var d=0,_=t.jsDoc;d<_.length;d++){u(_[d])}a(t,c)}function l(t){t._children=void 0,e.setTextRangePosEnd(t,t.pos+i,t.end+i);for(var r=0,n=t;r=r,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=n,"Adjusting an element that was entirely after the change range"),e.Debug.assert(t.pos<=t.end);var o=Math.min(t.pos,i),s=t.end>=n?t.end+a:Math.min(t.end,i);e.Debug.assert(o<=s),t.parent&&(e.Debug.assertGreaterThanOrEqual(o,t.parent.pos),e.Debug.assertLessThanOrEqual(s,t.parent.end)),e.setTextRangePosEnd(t,o,s)}function a(t,r){if(r){var n=t.pos,i=function(t){e.Debug.assert(t.pos>=n),n=t.end};if(e.hasJSDocNodes(t))for(var a=0,o=t.jsDoc;ar),!0;if(a.pos>=i.pos&&(i=a),ri.pos&&(i=a)}return i}function s(t,r,n,i){var a=t.text;if(n&&(e.Debug.assert(a.length-n.span.length+n.newLength===r.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,n.span.start),s=r.substr(0,n.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(n.span),a.length),u=r.substring(e.textSpanEnd(e.textChangeRangeNewSpan(n)),r.length);e.Debug.assert(c===u)}}function c(t){var r=t.statements,n=0;e.Debug.assert(n=t.pos&&e=t.pos&&e0&&a<=n;a++){var s=o(t,i);e.Debug.assert(s.pos<=i);var c=s.pos;i=Math.max(0,c-1)}var u=e.createTextSpanFromBounds(i,e.textSpanEnd(r.span)),l=r.newLength+(r.span.start-i);return e.createTextChangeRange(u,l)}(t,l);s(t,n,m,d),e.Debug.assert(m.span.start<=l.span.start),e.Debug.assert(e.textSpanEnd(m.span)===e.textSpanEnd(l.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(m))===e.textSpanEnd(e.textChangeRangeNewSpan(l)));var y=e.textChangeRangeNewSpan(m).length-m.span.length;!function(t,n,o,s,c,u,l,d){return void _(t);function _(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)r(t,!1,c,u,l,d);else{var g=t.end;if(g>=n){if(t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c),f(t,_,p),e.hasJSDocNodes(t))for(var m=0,y=t.jsDoc;mo)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 p=0,f=t;pi){y();var m={range:{pos:f.pos+a,end:f.end+a},type:g};u=e.append(u,m),c&&e.Debug.assert(o.substring(f.pos,f.end)===s.substring(m.range.pos,m.range.end))}}return y(),u;function y(){l||(l=!0,u?r&&u.push.apply(u,r):u=r)}}(t.commentDirectives,v.commentDirectives,m.span.start,e.textSpanEnd(m.span),y,p,n,d),v.impliedNodeFormat=t.impliedNodeFormat,v},t.createSyntaxCursor=c,function(e){e[e.Value=-1]="Value"}(l||(l={}))}(l||(l={})),e.isDeclarationFileName=y,e.processCommentPragmas=v,e.processPragmasIntoFields=h;var D=new e.Map;function x(e){if(D.has(e))return D.get(e);var t=new RegExp("(\\s".concat(e,"\\s*=\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))"),"im");return D.set(e,t),t}var b=/^\/\/\/\s*<(\S+)\s.*?\/>/im,S=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function T(t,r,n){var i=2===r.kind&&b.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=r.length)break;var o=a;if(34===r.charCodeAt(o)){for(a++;a32;)a++;i.push(r.substring(o,a))}}c(i)}else s.push(r)}}function h(t,r,n,i,a,o){if(i.isTSConfigOnly)"null"===(s=t[r])?(a[i.name]=void 0,r++):"boolean"===i.type?"false"===s?(a[i.name]=me(i,!1,o),r++):("true"===s&&r++,o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),s&&!e.startsWith(s,"-")&&r++);else if(t[r]||"boolean"===i.type||o.push(e.createCompilerDiagnostic(n.optionTypeMismatchDiagnostic,i.name,z(i))),"null"!==t[r])switch(i.type){case"number":a[i.name]=me(i,parseInt(t[r]),o),r++;break;case"boolean":var s=t[r];a[i.name]=me(i,"false"!==s,o),"false"!==s&&"true"!==s||r++;break;case"string":a[i.name]=me(i,t[r]||"",o),r++;break;case"list":var c=g(i,t[r],o);a[i.name]=c||[],c&&r++;break;default:a[i.name]=f(i,t[r],o),r++}else a[i.name]=void 0,r++;return r}function D(e,t){return x(c,e,t)}function x(e,t,r){void 0===r&&(r=!1),t=t.toLowerCase();var n=e(),i=n.optionsNameMap,a=n.shortOptionNames;if(r){var o=a.get(t);void 0!==o&&(t=o)}return i.get(t)}function b(){return u||(u=s(e.buildOpts))}e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},e.convertEnableAutoDiscoveryToEnable=d,e.createCompilerDiagnosticForInvalidCustomType=_,e.parseCustomTypeOption=f,e.parseListTypeOption=g,e.parseCommandLineWorker=v,e.compilerOptionsDidYouMeanDiagnostics={alternateMode:l,getOptionsNameMap:c,optionDeclarations:e.optionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Compiler_option_0_expects_an_argument},e.parseCommandLine=function(t,r){return v(e.compilerOptionsDidYouMeanDiagnostics,t,r)},e.getOptionFromName=D;var S={alternateMode:{diagnostic:e.Diagnostics.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:c},getOptionsNameMap:b,optionDeclarations:e.buildOpts,unknownOptionDiagnostic:e.Diagnostics.Unknown_build_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Build_option_0_requires_a_value_of_type_1};function T(t,r){var n=e.parseJsonText(t,r);return{config:j(n,n.parseDiagnostics,!1,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function C(t,r){var n=E(t,r);return e.isString(n)?e.parseJsonText(t,n):{fileName:t,parseDiagnostics:[n]}}function E(t,r){var n;try{n=r(t)}catch(r){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,r.message)}return void 0===n?e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0,t):n}function k(t){return e.arrayToMap(t,m)}e.parseBuildCommand=function(t){var r=v(S,t),n=r.options,i=r.watchOptions,a=r.fileNames,o=r.errors,s=n;return 0===a.length&&a.push("."),s.clean&&s.force&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:i,projects:a,errors:o}},e.getDiagnosticText=function(t){for(var r=[],n=1;n=0)return u.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,r(r([],c,!0),[_],!1).join(" -> "))),{raw:t||J(n,u)};var p=t?function(t,r,n,i,a){e.hasProperty(t,"excludes")&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var o,s=ue(t.compilerOptions,n,a,i),c=de(t.typeAcquisition||t.typingOptions,n,a,i),u=function(e,t,r){return _e(R(),e,t,void 0,M,r)}(t.watchOptions,n,a);if(t.compileOnSave=function(t,r,n){if(!e.hasProperty(t,e.compileOnSaveCommandLineOption.name))return!1;var i=pe(e.compileOnSaveCommandLineOption,t.compileOnSave,r,n);return"boolean"==typeof i&&i}(t,n,a),t.extends)if(e.isString(t.extends)){var l=i?te(i,n):n;o=se(t.extends,r,l,a,e.createCompilerDiagnostic)}else a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));return{raw:t,options:s,watchOptions:u,typeAcquisition:c,extendedConfigPath:o}}(t,i,a,s,u):function(t,r,n,i,a){var s,c,u,l,d,_=ce(i),p={onSetValidOptionKeyValueInParent:function(t,r,a){var o;switch(t){case"compilerOptions":o=_;break;case"watchOptions":o=u||(u={});break;case"typeAcquisition":o=s||(s=le(i));break;case"typingOptions":o=c||(c=le(i));break;default:e.Debug.fail("Unknown option")}o[r.name]=fe(r,n,a)},onSetValidOptionKeyValueInRoot:function(o,s,c,u){if("extends"!==o);else{var d=i?te(i,n):n;l=se(c,r,d,a,(function(r,n){return e.createDiagnosticForNodeInSourceFile(t,u,r,n)}))}},onSetUnknownOptionKeyValueInRoot:function(r,n,i,s){"excludes"===r&&a.push(e.createDiagnosticForNodeInSourceFile(t,n,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude)),e.find(o,(function(e){return e.name===r}))&&(d=e.append(d,n))}},f=j(t,a,!0,p);s||(s=c?void 0!==c.enableAutoDiscovery?{enable:c.enableAutoDiscovery,include:c.include,exclude:c.exclude}:c:le(i));d&&f&&void 0===f.compilerOptions&&a.push(e.createDiagnosticForNodeInSourceFile(t,d[0],e.Diagnostics._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,e.getTextOfPropertyName(d[0])));return{raw:f,options:_,watchOptions:u,typeAcquisition:s,extendedConfigPath:l}}(n,i,a,s,u);if((null===(d=p.options)||void 0===d?void 0:d.paths)&&(p.options.pathsBasePath=a),p.extendedConfigPath){c=c.concat([_]);var f=function(t,r,n,i,a,o){var s,c,u,l,d=n.useCaseSensitiveFileNames?r:e.toFileNameLowerCase(r);o&&(c=o.get(d))?(u=c.extendedResult,l=c.extendedConfig):(u=C(r,(function(e){return n.readFile(e)})),u.parseDiagnostics.length||(l=oe(void 0,u,n,e.getDirectoryPath(r),e.getBaseFileName(r),i,a,o)),o&&o.set(d,{extendedResult:u,extendedConfig:l}));t&&(t.extendedSourceFiles=[u.fileName],u.extendedSourceFiles&&(s=t.extendedSourceFiles).push.apply(s,u.extendedSourceFiles));if(u.parseDiagnostics.length)return void a.push.apply(a,u.parseDiagnostics);return l}(n,p.extendedConfigPath,i,c,u,l);if(f&&f.options){var g,m=f.raw,y=p.raw,v=function(t){!y[t]&&m[t]&&(y[t]=e.map(m[t],(function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(g||(g=e.convertToRelativePath(e.getDirectoryPath(p.extendedConfigPath),a,e.createGetCanonicalFileName(i.useCaseSensitiveFileNames))),t)})))};v("include"),v("exclude"),v("files"),void 0===y.compileOnSave&&(y.compileOnSave=m.compileOnSave),p.options=e.assign({},f.options,p.options),p.watchOptions=p.watchOptions&&f.watchOptions?e.assign({},f.watchOptions,p.watchOptions):p.watchOptions||f.watchOptions}}return p}function se(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="".concat(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 ce(t){return t&&"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function ue(t,r,n,i){var a=ce(i);return _e(L(),t,r,a,e.compilerOptionsDidYouMeanDiagnostics,n),i&&(a.configFilePath=e.normalizeSlashes(i)),a}function le(t){return{enable:!!t&&"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function de(e,t,r,n){var i=le(n),a=d(e);return _e(B(),a,t,i,F,r),i}function _e(t,r,n,i,a,o){if(r){for(var s in r){var c=t.get(s);c?(i||(i={}))[c.name]=pe(c,r[s],n,o):o.push(y(s,a,e.createCompilerDiagnostic))}return i}}function pe(t,r,n,i){if(U(t,r)){var a=t.type;if("list"===a&&e.isArray(r))return function(t,r,n,i){return e.filter(e.map(r,(function(e){return pe(t.element,e,n,i)})),(function(e){return!!e}))}(t,r,n,i);if(!e.isString(a))return ye(t,r,i);var o=me(t,r,i);return ee(o)?o:ge(t,n,o)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,z(t)))}function fe(t,r,n){if(!ee(n)){if("list"===t.type){var i=t;return i.element.isFilePath||!e.isString(i.element.type)?e.filter(e.map(n,(function(e){return fe(i.element,r,e)})),(function(e){return!!e})):n}return e.isString(t.type)?ge(t,r,n):t.type.get(e.isString(n)?n.toLowerCase():n)}}function ge(t,r,n){return t.isFilePath&&""===(n=e.getNormalizedAbsolutePath(n,r))&&(n="."),n}function me(t,r,n){var i;if(!ee(r)){var a=null===(i=t.extraValidation)||void 0===i?void 0:i.call(t,r);if(!a)return r;n.push(e.createCompilerDiagnostic.apply(void 0,a))}}function ye(e,t,r){if(!ee(t)){var n=t.toLowerCase(),i=e.type.get(n);if(void 0!==i)return me(e,i,r);r.push(_(e))}}e.convertToObject=J,e.convertToObjectWorker=K,e.convertToTSConfig=function(t,r,i){var a,o,s,c=e.createGetCanonicalFileName(i.useCaseSensitiveFileNames),u=e.map(e.filter(t.fileNames,(null===(o=null===(a=t.options.configFile)||void 0===a?void 0:a.configFileSpecs)||void 0===o?void 0:o.validatedIncludeSpecs)?function(t,r,n,i){if(!r)return e.returnTrue;var a=e.getFileMatcherPatterns(t,n,r,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),o=a.excludePattern&&e.getRegexFromPattern(a.excludePattern,i.useCaseSensitiveFileNames),s=a.includeFilePattern&&e.getRegexFromPattern(a.includeFilePattern,i.useCaseSensitiveFileNames);if(s)return o?function(e){return!(s.test(e)&&!o.test(e))}:function(e){return!s.test(e)};if(o)return function(e){return o.test(e)};return e.returnTrue}(r,t.options.configFile.configFileSpecs.validatedIncludeSpecs,t.options.configFile.configFileSpecs.validatedExcludeSpecs,i):e.returnTrue),(function(t){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(r,i.getCurrentDirectory()),e.getNormalizedAbsolutePath(t,i.getCurrentDirectory()),c)})),l=G(t.options,{configFilePath:e.getNormalizedAbsolutePath(r,i.getCurrentDirectory()),useCaseSensitiveFileNames:i.useCaseSensitiveFileNames}),d=t.watchOptions&&function(e){return Y(e,N())}(t.watchOptions);return n(n({compilerOptions:n(n({},V(l)),{showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0}),watchOptions:d&&V(d),references:e.map(t.projectReferences,(function(e){return n(n({},e),{path:e.originalPath?e.originalPath:"",originalPath:void 0})})),files:e.length(u)?u:void 0},(null===(s=t.options.configFile)||void 0===s?void 0:s.configFileSpecs)?{include:q(t.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:t.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:!!t.compileOnSave||void 0})},e.getCompilerOptionsDiffValue=function(t,r){var n,i,a,s=X(t);return n=[],a=2,i=Array(a+1).join(" "),o.forEach((function(t){if(s.has(t.name)){var r=s.get(t.name),a=Ae(t);r!==a?n.push("".concat(i).concat(t.name,": ").concat(r)):e.hasProperty(e.defaultInitCompilerOptions,t.name)&&n.push("".concat(i).concat(t.name,": ").concat(a))}})),n.join(r)+r},e.generateTSConfig=function(t,r,n){var i=X(t);return function(){for(var t=e.createMultiMap(),s=0,c=e.optionDeclarations;s0)for(var D=function(t){if(e.fileExtensionIs(t,".json")){if(!o){var n=_.filter((function(t){return e.endsWith(t,".json")})),a=e.map(e.getRegularExpressionsForWildcards(n,r,"files"),(function(e){return"^".concat(e,"$")}));o=a?a.map((function(t){return e.getRegexFromPattern(t,i.useCaseSensitiveFileNames)})):e.emptyArray}var d=e.findIndex(o,(function(e){return e.test(t)}));if(-1!==d){var p=s(t);c.has(p)||l.has(p)||l.set(p,t)}return"continue"}if(function(t,r,n,i,a){var o=e.forEach(i,(function(r){return e.fileExtensionIsOneOf(t,r)?r:void 0}));if(!o)return!1;for(var s=0,c=o;s=0;o--){var s=a[o];if(e.fileExtensionIs(t,s))return;var c=i(e.changeExtension(t,s));r.delete(c)}}(t,u,f,s);var g=s(t);c.has(g)||u.has(g)||u.set(g,t)},x=0,b=i.readDirectory(r,e.flatten(g),p,_,void 0);xr}function be(t,r,n,i,a){var o=e.getRegularExpressionForWildcard(r,e.combinePaths(e.normalizePath(i),a),"exclude"),s=o&&e.getRegexFromPattern(o,n);return!!s&&(!!s.test(t)||!e.hasExtension(t)&&s.test(e.ensureTrailingDirectorySeparator(t)))}function Se(t,r,n,i,a){return t.filter((function(t){if(!e.isString(t))return!1;var i=Te(t,n);return void 0!==i&&r.push(o.apply(void 0,i)),void 0===i}));function o(t,r){var n=e.getTsConfigPropArrayElementValue(i,a,r);return n?e.createDiagnosticForNodeInSourceFile(i,n,t,r):e.createCompilerDiagnostic(t,r)}}function Te(t,r){return r&&ve.test(t)?[e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]:xe(t)?[e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]:void 0}function Ce(t,r,n){var i=t.validatedIncludeSpecs,a=t.validatedExcludeSpecs,o=e.getRegularExpressionForWildcard(a,r,"exclude"),s=o&&new RegExp(o,n?"":"i"),c={};if(void 0!==i){for(var u=[],l=0,d=i;l0);var i={sourceFile:t.configFile,commandLine:{options:t}};r.setOwnMap(r.getOrCreateMapOfCacheRedirects(i)),null==n||n.setOwnMap(n.getOrCreateMapOfCacheRedirects(i))}r.setOwnOptions(t),null==n||n.setOwnOptions(t)}}function E(t,r,n){return{getOrCreateCacheForDirectory:function(i,a){var o=e.toPath(i,t,r);return T(n,a,o,(function(){return k()}))},clear:function(){n.clear()},update:function(e){C(e,n)}}}function k(){var t=new e.Map,r=new e.Map,n={get:function(e,r){return t.get(i(e,r))},set:function(e,r,a){return t.set(i(e,r),a),n},delete:function(e,r){return t.delete(i(e,r)),n},has:function(e,r){return t.has(i(e,r))},forEach:function(e){return t.forEach((function(t,n){var i=r.get(n),a=i[0],o=i[1];return e(t,a,o)}))},size:function(){return t.size}};return n;function i(e,t){var n=void 0===t?e:"".concat(t,"|").concat(e);return r.set(n,[e,t]),n}}function A(r,n,i,a,o){var s=function(r,n,i,a){var o,s=a.compilerOptions,c=s.baseUrl,u=s.paths,l=s.configFile;if(u&&!e.pathIsRelative(n)){return a.traceEnabled&&(c&&t(a.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,c,n),t(a.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,n)),se(r,n,e.getPathsBasePath(a.compilerOptions,a.host),u,(null==l?void 0:l.configFileSpecs)?(o=l.configFileSpecs).pathPatterns||(o.pathPatterns=e.tryParsePatterns(u)):void 0,i,!1,a)}}(r,n,a,o);return s?s.value:e.isExternalModuleNameRelative(n)?function(r,n,i,a,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&t(o.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,n);for(var s,c,u=e.normalizePath(e.combinePaths(i,n)),l=0,d=o.compilerOptions.rootDirs;l0;){var c=Y(e.getPathFromPathComponents(s),!1,o);if(c)return c;s.pop()}}function Y(r,n,i){var a,o,s,c=i.host,u=i.traceEnabled,l=e.combinePaths(r,"package.json");if(n)i.failedLookupLocations.push(l);else{var d=null===(a=i.packageJsonInfoCache)||void 0===a?void 0:a.getPackageJsonInfo(l);if(void 0!==d)return"boolean"!=typeof d?(u&&t(c,e.Diagnostics.File_0_exists_according_to_earlier_cached_lookups,l),d):(d&&u&&t(c,e.Diagnostics.File_0_does_not_exist_according_to_earlier_cached_lookups,l),void i.failedLookupLocations.push(l));var _=e.directoryProbablyExists(r,c);if(_&&c.fileExists(l)){var p=e.readJson(l,c);u&&t(c,e.Diagnostics.Found_package_json_at_0,l);var f={packageDirectory:r,packageJsonContent:p,versionPaths:m(p,i)};return null===(o=i.packageJsonInfoCache)||void 0===o||o.setPackageJsonInfo(l,f),f}_&&u&&t(c,e.Diagnostics.File_0_does_not_exist,l),null===(s=i.packageJsonInfoCache)||void 0===s||s.setPackageJsonInfo(l,_),i.failedLookupLocations.push(l)}}function X(r,n,i,a,u,l){var d;if(u)switch(r){case c.JavaScript:case c.Json:d=g(u,n,a);break;case c.TypeScript:d=f(u,n,a)||g(u,n,a);break;case c.DtsOnly:d=f(u,n,a);break;case c.TSConfig:d=function(e,t,r){return p(e,"tsconfig",t,r)}(u,n,a);break;default:return e.Debug.assertNever(r)}var _=function(r,n,i,a){var s=W(n,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}(r,s);if(u)return o(u);a.traceEnabled&&t(a.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,s)}return B(r===c.DtsOnly?c.TypeScript:r,n,i,a,!1)},m=d?!e.directoryProbablyExists(e.getDirectoryPath(d),a.host):void 0,y=i||!e.directoryProbablyExists(n,a.host),v=e.combinePaths(n,r===c.TSConfig?"tsconfig":"index");if(l&&(!d||e.containsPath(n,d))){var D=e.getRelativePathFromDirectory(n,d||v,!1);a.traceEnabled&&t(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,D);var x=se(r,D,n,l.paths,void 0,_,m||y,a);if(x)return s(x.value)}var b=d&&s(_(r,d,m,a));return b||(a.features&h.EsmMode?void 0:U(r,v,y,a))}function Q(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 $(t){return e.every(e.getOwnKeys(t),(function(t){return e.startsWith(t,".")}))}function Z(r,n,i,a,o,s){if(r.packageJsonContent.exports){if("."===i){var c=void 0;if("string"==typeof r.packageJsonContent.exports||Array.isArray(r.packageJsonContent.exports)||"object"==typeof r.packageJsonContent.exports&&(l=r.packageJsonContent.exports,!e.some(e.getOwnKeys(l),(function(t){return e.startsWith(t,".")})))?c=r.packageJsonContent.exports:e.hasProperty(r.packageJsonContent.exports,".")&&(c=r.packageJsonContent.exports["."]),c)return te(n,a,o,s,i,r,!1)(c,"",!1)}else if($(r.packageJsonContent.exports)){if("object"!=typeof r.packageJsonContent.exports)return a.traceEnabled&&t(a.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,i,r.packageDirectory),pe(void 0);var u=ee(n,a,o,s,i,r.packageJsonContent.exports,r,!1);if(u)return u}var l;return a.traceEnabled&&t(a.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,i,r.packageDirectory),pe(void 0)}}function ee(t,r,n,i,a,o,s,c){var u=te(t,r,n,i,a,s,c);if(!e.endsWith(a,e.directorySeparator)&&-1===a.indexOf("*")&&e.hasProperty(o,a))return u(p=o[a],"",!1);for(var l=0,d=e.sort(e.filter(e.getOwnKeys(o),(function(t){return-1!==t.indexOf("*")||e.endsWith(t,"/")})),(function(e,t){return e.length-t.length}));l0&&!e.endsWith(_,"/"))return n.traceEnabled&&t(n.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,u.packageDirectory,s),pe(void 0);if(!e.startsWith(_,"./")){if(l&&!e.startsWith(_,"../")&&!e.startsWith(_,"/")&&!e.isRootedDiskPath(_)){var y=f?_.replace(/\*/g,p):_+p;return pe((E=L(n.features,y,u.packageDirectory+"/",n.compilerOptions,n.host,i,[r],o)).resolvedModule?{path:E.resolvedModule.resolvedFileName,extension:E.resolvedModule.extension,packageId:E.resolvedModule.packageId,originalPath:E.resolvedModule.originalPath}:void 0)}return n.traceEnabled&&t(n.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,u.packageDirectory,s),pe(void 0)}var v=(e.pathIsRelative(_)?e.getPathComponents(_).slice(1):e.getPathComponents(_)).slice(1);if(v.indexOf("..")>=0||v.indexOf(".")>=0||v.indexOf("node_modules")>=0)return n.traceEnabled&&t(n.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,u.packageDirectory,s),pe(void 0);var h=e.combinePaths(u.packageDirectory,_),D=e.getPathComponents(p);if(D.indexOf("..")>=0||D.indexOf(".")>=0||D.indexOf("node_modules")>=0)return n.traceEnabled&&t(n.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,u.packageDirectory,s),pe(void 0);var x=e.getNormalizedAbsolutePath(f?h.replace(/\*/g,p):h+p,null===(m=(g=n.host).getCurrentDirectory)||void 0===m?void 0:m.call(g));return pe(a(u,function(t,r,n,i){return t!==c.TypeScript&&t!==c.DtsOnly||!e.fileExtensionIsOneOf(r,[".d.ts",".d.cts",".d.mts"])?V(t,r,n,i):void 0!==W(r,n,i)?{path:r,ext:e.forEach([".d.ts",".d.cts",".d.mts"],(function(t){return e.fileExtensionIs(r,t)?t:void 0}))}:void 0}(r,x,!1,n)))}if("object"==typeof _&&null!==_){if(!Array.isArray(_)){for(var b=0,S=e.getOwnKeys(_);b=0||re(n.conditions,T)){var C=_[T],E=d(C,p,f);if(E)return E}}return}if(!e.length(_))return n.traceEnabled&&t(n.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,u.packageDirectory,s),pe(void 0);for(var k=0,A=_;ki&&(i=l),1===i)return i}return i}break;case 261:var d=0;return e.forEachChild(t,(function(t){var n=o(t,r);switch(n){case 0:return;case 2:return void(d=2);case 1:return d=1,!0;default:e.Debug.assertNever(n)}})),d;case 260:return a(t,r);case 79:if(t.isInJSDocNamespace)return 0}return 1}(t,r);return r.set(n,i),i}function s(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 a=void 0,s=0,c=i.statements;sa)&&(a=l),1===a)return a}}if(void 0!==a)return a}i=i.parent}return 1}function c(t){return e.Debug.attachFlowNodeDebugInfo(t),t}(t=e.ModuleInstanceState||(e.ModuleInstanceState={}))[t.NonInstantiated=0]="NonInstantiated",t[t.Instantiated=1]="Instantiated",t[t.ConstEnumOnly=2]="ConstEnumOnly",e.getModuleInstanceState=a,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"}(i||(i={}));var u=function(){var t,i,o,s,u,p,f,g,m,y,v,h,D,x,b,S,T,C,E,k,A,F,N,P,w=!1,I=0,O={flags:1},M={flags:1},L=function(){return e.createBinaryExpressionTrampoline(t,r,n,i,a,void 0);function t(t,r){if(r){r.stackIndex++,e.setParent(t,s);var n=F;ze(t);var i=s;s=t,r.skip=!1,r.inStrictModeStack[r.stackIndex]=n,r.parentStack[r.stackIndex]=i}else r={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};var a=t.operatorToken.kind;if(55===a||56===a||60===a||e.isLogicalOrCoalescingAssignmentOperator(a)){if(de(t)){var o=Z();De(t,o,o),v=ce(o)}else De(t,b,S);r.skip=!0}return r}function r(e,t,r){if(!t.skip)return o(e)}function n(e,t,r){t.skip||(27===e.kind&&ye(r.left),Be(e))}function i(e,t,r){if(!t.skip)return o(e)}function a(t,r){if(!r.skip){var n=t.operatorToken.kind;if(e.isAssignmentOperator(n)&&!e.isAssignmentTarget(t))if(he(t.left),63===n&&206===t.left.kind)$(t.left.expression)&&(v=oe(256,v,t))}var i=r.inStrictModeStack[r.stackIndex],a=r.parentStack[r.stackIndex];void 0!==i&&(F=i),void 0!==a&&(s=a),r.skip=!1,r.stackIndex--}function o(t){if(t&&e.isBinaryExpression(t)&&!e.isDestructuringAssignment(t))return t;Be(t)}}();function R(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(r)||t,r,n,i,a,o)}return function(r,n){t=r,i=n,o=e.getEmitScriptTarget(i),F=function(t,r){return!(!e.getStrictOptionValue(r,"alwaysStrict")||t.isDeclarationFile)||!!t.externalModuleIndicator}(t,n),P=new e.Set,I=0,N=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(O),e.Debug.attachFlowNodeDebugInfo(M),t.locals||(Be(t),t.symbolCount=I,t.classifiableNames=P,function(){if(m){for(var r=u,n=g,i=f,a=s,o=v,l=0,_=m;l<_.length;l++){var p=_[l],y=p.parent.parent;u=e.findAncestor(y.parent,(function(e){return!!(1&Ce(e))}))||t,f=e.getEnclosingBlockScopeContainer(y)||t,v=c({flags:2}),s=p,Be(p.typeExpression);var h=e.getNameOfDeclaration(p);if((e.isJSDocEnumTag(p)||!p.fullName)&&h&&e.isPropertyAccessEntityNameExpression(h.parent)){var D=et(h.parent);if(D){$e(t.symbol,h.parent,D,!!e.findAncestor(h,(function(t){return e.isPropertyAccessExpression(t)&&"prototype"===t.name.escapedText})),!1);var x=u;switch(e.getAssignmentDeclarationPropertyAccessKind(h.parent)){case 1:case 2:u=e.isExternalOrCommonJsModule(t)?t:void 0;break;case 4:u=h.parent.expression;break;case 3:u=h.parent.expression.name;break;case 5:u=d(t,h.parent.expression)?t:e.isPropertyAccessExpression(h.parent.expression)?h.parent.expression.name:h.parent.expression;break;case 0:return e.Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}u&&U(p,524288,788968),u=x}}else e.isJSDocEnumTag(p)||!p.fullName||79===p.fullName.kind?(s=p.parent,Pe(p,524288,788968)):Be(p.fullName)}u=r,g=n,f=i,s=a,v=o}}()),t=void 0,i=void 0,o=void 0,s=void 0,u=void 0,p=void 0,f=void 0,g=void 0,m=void 0,y=!1,v=void 0,h=void 0,D=void 0,x=void 0,b=void 0,S=void 0,T=void 0,E=void 0,k=!1,w=!1,A=0};function B(e,t){return I++,new N(e,t)}function j(t,r,n){t.flags|=n,r.symbol=t,t.declarations=e.appendIfUnique(t.declarations,r),1955&n&&!t.exports&&(t.exports=e.createSymbolTable()),6240&n&&!t.members&&(t.members=e.createSymbolTable()),t.constEnumOnlyModule&&304&t.flags&&(t.constEnumOnlyModule=!1),111551&n&&e.setValueDeclaration(t,r)}function J(t){if(270===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":'"'.concat(n,'"')}if(161===r.kind){var i=r.expression;if(e.isStringOrNumericLiteralLike(i))return e.escapeLeadingUnderscores(i.text);if(e.isSignedNumericLiteral(i))return e.tokenToString(i.operator)+i.operand.text;e.Debug.fail("Only computed properties with literal names have declaration names")}if(e.isPrivateIdentifier(r)){var a=e.getContainingClass(t);if(!a)return;var o=a.symbol;return e.getSymbolNameForPrivateIdentifier(o,r.escapedText)}return e.isPropertyNameLiteral(r)?e.getEscapedTextOfIdentifierOrLiteral(r):void 0}switch(t.kind){case 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(2===e.getAssignmentDeclarationKind(t))return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 315:return e.isJSDocConstructSignature(t)?"__new":"__call";case 163:return e.Debug.assert(315===t.parent.kind,"Impossible parameter parent kind",(function(){return"parent is: ".concat(e.SyntaxKind?e.SyntaxKind[t.parent.kind]:t.parent.kind,", expected JSDocFunctionType")})),"arg"+t.parent.parameters.indexOf(t)}}function K(t){return e.isNamedDeclaration(t)?e.declarationNameToString(t.name):e.unescapeLeadingUnderscores(e.Debug.checkDefined(J(t)))}function z(n,i,a,o,s,c,u){e.Debug.assert(u||!e.hasDynamicName(a));var l,d=e.hasSyntacticModifier(a,512)||e.isExportSpecifier(a)&&"default"===a.name.escapedText,_=u?"__computed":d&&i?"default":J(a);if(void 0===_)l=B(0,"__missing");else if(l=n.get(_),2885600&o&&P.add(_),l){if(c&&!l.isReplaceableByMethod)return l;if(l.flags&s)if(l.isReplaceableByMethod)n.set(_,l=B(0,_));else if(!(3&o&&67108864&l.flags)){e.isNamedDeclaration(a)&&e.setParent(a.name,a);var p=2&l.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,f=!0;(384&l.flags||384&o)&&(p=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,f=!1);var g=!1;e.length(l.declarations)&&(d||l.declarations&&l.declarations.length&&270===a.kind&&!a.isExportEquals)&&(p=e.Diagnostics.A_module_cannot_have_multiple_default_exports,f=!1,g=!0);var m=[];e.isTypeAliasDeclaration(a)&&e.nodeIsMissing(a.type)&&e.hasSyntacticModifier(a,1)&&2887656&l.flags&&m.push(R(a,e.Diagnostics.Did_you_mean_0,"export type { ".concat(e.unescapeLeadingUnderscores(a.name.escapedText)," }")));var y=e.getNameOfDeclaration(a)||a;e.forEach(l.declarations,(function(r,n){var i=e.getNameOfDeclaration(r)||r,a=R(i,p,f?K(r):void 0);t.bindDiagnostics.push(g?e.addRelatedInfo(a,R(y,0===n?e.Diagnostics.Another_export_default_is_here:e.Diagnostics.and_here)):a),g&&m.push(R(i,e.Diagnostics.The_first_export_default_is_here))}));var v=R(y,p,f?K(a):void 0);t.bindDiagnostics.push(e.addRelatedInfo.apply(void 0,r([v],m,!1))),l=B(0,_)}}else n.set(_,l=B(0,_)),c&&(l.isReplaceableByMethod=!0);return j(l,a,o),l.parent?e.Debug.assert(l.parent===i,"Existing symbol parent should match new one"):l.parent=i,l}function U(t,r,n){var i=!!(1&e.getCombinedModifierFlags(t))||function(t){t.parent&&e.isModuleDeclaration(t)&&(t=t.parent);if(!e.isJSDocTypeAlias(t))return!1;if(!e.isJSDocEnumTag(t)&&t.fullName)return!0;var r=e.getNameOfDeclaration(t);return!!r&&(!(!e.isPropertyAccessEntityNameExpression(r.parent)||!et(r.parent))||!!(e.isDeclaration(r.parent)&&1&e.getCombinedModifierFlags(r.parent)))}(t);if(2097152&r)return 274===t.kind||264===t.kind&&i?z(u.symbol.exports,u.symbol,t,r,n):z(u.locals,void 0,t,r,n);if(e.isJSDocTypeAlias(t)&&e.Debug.assert(e.isInJSFile(t)),!e.isAmbientModule(t)&&(i||64&u.flags)){if(!u.locals||e.hasSyntacticModifier(t,512)&&!J(t))return z(u.symbol.exports,u.symbol,t,r,n);var a=111551&r?1048576:0,o=z(u.locals,void 0,t,a,n);return o.exportSymbol=z(u.symbol.exports,u.symbol,t,r,n),t.localSymbol=o,o}return z(u.locals,void 0,t,r,n)}function V(e){q(e,(function(e){return 255===e.kind?Be(e):void 0})),q(e,(function(e){return 255!==e.kind?Be(e):void 0}))}function q(t,r){void 0===r&&(r=Be),void 0!==t&&e.forEach(t,r)}function W(t){e.forEachChild(t,Be,q)}function H(t){var r=w;if(w=!1,function(t){if(!(1&v.flags))return!1;if(v===O){var r=e.isStatementButNotDeclaration(t)&&235!==t.kind||256===t.kind||260===t.kind&&function(t){var r=a(t);return 1===r||2===r&&e.shouldPreserveConstEnums(i)}(t);if(r&&(v=M,!i.allowUnreachableCode)){var n=e.unreachableCodeIsError(i)&&!(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,r){return Re(n,t,r,e.Diagnostics.Unreachable_code_detected)}))}}return!0}(t))return W(t),je(t),void(w=r);switch(t.kind>=236&&t.kind<=252&&!i.allowUnreachableCode&&(t.flowNode=v),t.kind){case 240:!function(e){var t=ge(e,ee()),r=Z(),n=Z();ne(t,v),v=t,pe(e.expression,r,n),v=ce(r),fe(e.statement,n,t),ne(t,v),v=ce(n)}(t);break;case 239:!function(e){var t=ee(),r=ge(e,Z()),n=Z();ne(t,v),v=t,fe(e.statement,n,r),ne(r,v),v=ce(r),pe(e.expression,t,n),v=ce(n)}(t);break;case 241:!function(e){var t=ge(e,ee()),r=Z(),n=Z();Be(e.initializer),ne(t,v),v=t,pe(e.condition,r,n),v=ce(r),fe(e.statement,n,t),Be(e.incrementor),ne(t,v),v=ce(n)}(t);break;case 242:case 243:!function(e){var t=ge(e,ee()),r=Z();Be(e.expression),ne(t,v),v=t,243===e.kind&&Be(e.awaitModifier);ne(r,v),Be(e.initializer),254!==e.initializer.kind&&he(e.initializer);fe(e.statement,r,t),ne(t,v),v=ce(r)}(t);break;case 238:!function(e){var t=Z(),r=Z(),n=Z();pe(e.expression,t,r),v=ce(t),Be(e.thenStatement),ne(n,v),v=ce(r),Be(e.elseStatement),ne(n,v),v=ce(n)}(t);break;case 246:case 250:!function(e){Be(e.expression),246===e.kind&&(k=!0,x&&ne(x,v));v=O}(t);break;case 245:case 244:!function(e){if(Be(e.label),e.label){var t=function(e){for(var t=E;t;t=t.next)if(t.name===e)return t;return}(e.label.escapedText);t&&(t.referenced=!0,me(e,t.breakTarget,t.continueTarget))}else me(e,h,D)}(t);break;case 251:!function(t){var r=x,n=T,i=Z(),a=Z(),o=Z();t.finallyBlock&&(x=a);ne(o,v),T=o,Be(t.tryBlock),ne(i,v),t.catchClause&&(v=ce(o),ne(o=Z(),v),T=o,Be(t.catchClause),ne(i,v));if(x=r,T=n,t.finallyBlock){var s=Z();s.antecedents=e.concatenate(e.concatenate(i.antecedents,o.antecedents),a.antecedents),v=s,Be(t.finallyBlock),1&v.flags?v=O:(x&&a.antecedents&&ne(x,te(s,a.antecedents,v)),T&&o.antecedents&&ne(T,te(s,o.antecedents,v)),v=i.antecedents?te(s,i.antecedents,v):O)}else v=ce(i)}(t);break;case 248:!function(t){var r=Z();Be(t.expression);var n=h,i=C;h=r,C=v,Be(t.caseBlock),ne(r,v);var a=e.forEach(t.caseBlock.clauses,(function(e){return 289===e.kind}));t.possiblyExhaustive=!a&&!r.antecedents,a||ne(r,ae(C,t,0,0));h=n,C=i,v=ce(r)}(t);break;case 262:!function(e){for(var t=e.clauses,r=G(e.parent.expression),n=O,a=0;a=117&&r.originalKeywordKind<=125?t.bindDiagnostics.push(R(r,function(r){if(e.getContainingClass(r))return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;if(t.externalModuleIndicator)return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(r),e.declarationNameToString(r))):132===r.originalKeywordKind?e.isExternalModule(t)&&e.isInTopLevelContext(r)?t.bindDiagnostics.push(R(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,e.declarationNameToString(r))):32768&r.flags&&t.bindDiagnostics.push(R(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(r))):125===r.originalKeywordKind&&8192&r.flags&&t.bindDiagnostics.push(R(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(r))))}function Ie(r,n){if(n&&79===n.kind){var i=n;if(function(t){return e.isIdentifier(t)&&("eval"===t.escapedText||"arguments"===t.escapedText)}(i)){var a=e.getErrorSpanForNode(t,n);t.bindDiagnostics.push(e.createFileDiagnostic(t,a.start,a.length,function(r){if(e.getContainingClass(r))return e.Diagnostics.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;if(t.externalModuleIndicator)return e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Invalid_use_of_0_in_strict_mode}(r),e.idText(i)))}}}function Oe(e){F&&Ie(e,e.name)}function Me(r){if(o<2&&303!==f.kind&&260!==f.kind&&!e.isFunctionLikeOrClassStaticBlockDeclaration(f)){var n=e.getErrorSpanForNode(t,r);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,function(r){return e.getContainingClass(r)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}(r)))}}function Le(r,n,i,a,o){var s=e.getSpanOfTokenAtPosition(t,r.pos);t.bindDiagnostics.push(e.createFileDiagnostic(t,s.start,s.length,n,i,a,o))}function Re(r,i,a,o){!function(r,i,a){var o=e.createFileDiagnostic(t,i.pos,i.end-i.pos,a);r?t.bindDiagnostics.push(o):t.bindSuggestionDiagnostics=e.append(t.bindSuggestionDiagnostics,n(n({},o),{category:e.DiagnosticCategory.Suggestion}))}(r,{pos:e.getTokenPosOfNode(i,t),end:a.end},o)}function Be(t){if(t){e.setParent(t,s);var r=F;if(ze(t),t.kind>159){var n=s;s=t;var i=Ce(t);0===i?H(t):function(t,r){var n=u,i=p,a=f;if(1&r?(213!==t.kind&&(p=u),u=f=t,32&r&&(u.locals=e.createSymbolTable()),Ee(u)):2&r&&((f=t).locals=void 0),4&r){var o=v,s=h,l=D,d=x,_=T,g=E,m=k,b=16&r&&!e.hasSyntacticModifier(t,256)&&!t.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(t);b||(v=c({flags:2}),144&r&&(v.node=t)),x=b||170===t.kind||169===t.kind||e.isInJSFile(t)&&(255===t.kind||212===t.kind)?Z():void 0,T=void 0,h=void 0,D=void 0,E=void 0,k=!1,H(t),t.flags&=-2817,!(1&v.flags)&&8&r&&e.nodeIsPresent(t.body)&&(t.flags|=256,k&&(t.flags|=512),t.endFlowNode=v),303===t.kind&&(t.flags|=A,t.endFlowNode=v),x&&(ne(x,v),v=ce(x),(170===t.kind||169===t.kind||e.isInJSFile(t)&&(255===t.kind||212===t.kind))&&(t.returnFlowNode=v)),b||(v=o),h=s,D=l,x=d,T=_,E=g,k=m}else 64&r?(y=!1,H(t),t.flags=y?128|t.flags:-129&t.flags):H(t);u=n,p=i,f=a}(t,i),s=n}else{n=s;1===t.kind&&(s=t),je(t),s=n}F=r}}function je(t){if(e.hasJSDocNodes(t))if(e.isInJSFile(t))for(var r=0,n=t.jsDoc;r=2&&(e.isDeclarationStatement(t.statement)||e.isVariableStatement(t.statement))&&Le(t.label,e.Diagnostics.A_label_is_not_allowed_here)}(r);case 191:return void(y=!0);case 176:break;case 162:return function(t){if(e.isJSDocTemplateTag(t.parent)){var r=e.getEffectiveContainerForJSDocTemplateTag(t.parent);r?(r.locals||(r.locals=e.createSymbolTable()),z(r.locals,void 0,t,262144,526824)):ke(t,262144,526824)}else if(189===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()),z(n.locals,void 0,t,262144,526824)):Ne(t,262144,J(t))}else ke(t,262144,526824)}(r);case 163:return at(r);case 253:return it(r);case 202:return r.flowNode=v,it(r);case 166:case 165:return function(e){return ot(e,4|(e.questionToken?16777216:0),0)}(r);case 294:case 295:return ot(r,4,0);case 297:return ot(r,8,900095);case 173:case 174:case 175:return ke(r,131072,0);case 168:case 167:return ot(r,8192|(r.questionToken?16777216:0),e.isObjectLiteralMethod(r)?0:103359);case 255:return function(r){t.isDeclarationFile||8388608&r.flags||e.isAsyncFunction(r)&&(A|=2048);Oe(r),F?(Me(r),Pe(r,16,110991)):ke(r,16,110991)}(r);case 170:return ke(r,16384,0);case 171:return ot(r,32768,46015);case 172:return ot(r,65536,78783);case 178:case 315:case 321:case 179:return function(t){var r=B(131072,J(t));j(r,t,131072);var n=B(2048,"__type");j(n,t,2048),n.members=e.createSymbolTable(),n.members.set(r.escapedName,r)}(r);case 181:case 320:case 194:return function(e){return Ne(e,2048,"__type")}(r);case 330:return function(t){W(t);var r=e.getHostSignatureFromJSDoc(t);r&&168!==r.kind&&j(r.symbol,r,32)}(r);case 204:return function(r){var n;if(function(e){e[e.Property=1]="Property",e[e.Accessor=2]="Accessor"}(n||(n={})),F&&!e.isAssignmentTarget(r))for(var i=new e.Map,a=0,o=r.properties;a1&&2097152&h.flags&&(t=e.createSymbolTable()).set("export=",h);return I(t),k(d);function D(e){return!!e&&79===e.kind}function b(t){return e.isVariableStatement(t)?e.filter(e.map(t.declarationList.declarations,e.getNameOfDeclaration),D):e.filter([e.getNameOfDeclaration(t)],D)}function S(t){var n=e.find(t,e.isExportAssignment),i=e.findIndex(t,e.isModuleDeclaration),a=-1!==i?t[i]:void 0;if(a&&n&&n.isExportEquals&&e.isIdentifier(n.expression)&&e.isIdentifier(a.name)&&e.idText(a.name)===e.idText(n.expression)&&a.body&&e.isModuleBlock(a.body)){var o=e.filter(t,(function(t){return!!(1&e.getEffectiveModifierFlags(t))})),s=a.name,c=a.body;if(e.length(o)&&(a=e.factory.updateModuleDeclaration(a,a.decorators,a.modifiers,a.name,c=e.factory.updateModuleBlock(c,e.factory.createNodeArray(r(r([],a.body.statements,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.map(e.flatMap(o,(function(e){return b(e)})),(function(t){return e.factory.createExportSpecifier(!1,void 0,t)}))),void 0)],!1)))),t=r(r(r([],t.slice(0,i),!0),[a],!1),t.slice(i+1),!0)),!e.find(t,(function(t){return t!==a&&e.nodeHasName(t,s)}))){d=[];var u=!e.some(c.statements,(function(t){return e.hasSyntacticModifier(t,1)||e.isExportAssignment(t)||e.isExportDeclaration(t)}));e.forEach(c.statements,(function(e){W(e,u?1:0)})),t=r(r([],e.filter(t,(function(e){return e!==a&&e!==n})),!0),d,!0)}}return t}function T(t){var n=e.filter(t,(function(t){return e.isExportDeclaration(t)&&!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)}));if(e.length(n)>1){var i=e.filter(t,(function(t){return!e.isExportDeclaration(t)||!!t.moduleSpecifier||!t.exportClause}));t=r(r([],i,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(n,(function(t){return e.cast(t.exportClause,e.isNamedExports).elements}))),void 0)],!1)}var a=e.filter(t,(function(t){return e.isExportDeclaration(t)&&!!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(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&&(t=r(r([],e.filter(t,(function(e){return-1===n.indexOf(e)})),!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(n,(function(t){return e.cast(t.exportClause,e.isNamedExports).elements}))),n[0].moduleSpecifier)],!1))},c=0,u=o;c=0){var n=t[r],i=e.mapDefined(n.exportClause.elements,(function(r){if(!r.propertyName){var n=e.indicesOf(t),i=e.filter(n,(function(n){return e.nodeHasName(t[n],r.name)}));if(e.length(i)&&e.every(i,(function(e){return A(t[e])}))){for(var a=0,o=i;a0&&e.isSingleOrDoubleQuote(a.charCodeAt(0))?e.stripQuotes(a):a}return"default"===r?r="_default":"export="===r&&(r="_exports"),r=e.isIdentifierText(r,U)&&!e.isStringANonContextualKeyword(r)?r:"_"+r.replace(/[^a-zA-Z0-9]/g,"_")}function he(e,t){var r=M(e);return i.remappedSymbolNames.has(r)?i.remappedSymbolNames.get(r):(t=ve(e,t),i.remappedSymbolNames.set(r,t),t)}}(t,i,l)}))}};function i(r,n,i,o){var s,c;e.Debug.assert(void 0===r||0==(8&r.flags));var u={enclosingDeclaration:r,flags:n||0,tracker:i&&i.trackSymbol?i:{trackSymbol:function(){return!1},moduleResolverHost:134217728&n?{getCommonSourceDirectory:t.getCommonSourceDirectory?function(){return t.getCommonSourceDirectory()}:function(){return""},getCurrentDirectory:function(){return t.getCurrentDirectory()},getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),useCaseSensitiveFileNames:e.maybeBind(t,t.useCaseSensitiveFileNames),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:function(e){return t.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return t.isSourceOfProjectReferenceRedirect(e)},fileExists:function(e){return t.fileExists(e)},getFileIncludeReasons:function(){return t.getFileIncludeReasons()},readFile:t.readFile?function(e){return t.readFile(e)}:void 0}:void 0},encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};u.tracker=a(u,u.tracker);var l=o(u);return u.truncating&&1&u.flags&&(null===(c=null===(s=u.tracker)||void 0===s?void 0:s.reportTruncationError)||void 0===c||c.call(s)),u.encounteredError?void 0:l}function a(e,t){var r=t.trackSymbol;return n(n({},t),{reportCyclicStructureError:i(t.reportCyclicStructureError),reportInaccessibleThisError:i(t.reportInaccessibleThisError),reportInaccessibleUniqueSymbolError:i(t.reportInaccessibleUniqueSymbolError),reportLikelyUnsafeImportRequiredError:i(t.reportLikelyUnsafeImportRequiredError),reportNonlocalAugmentation:i(t.reportNonlocalAugmentation),reportPrivateInBaseOfClassExpression:i(t.reportPrivateInBaseOfClassExpression),reportNonSerializableProperty:i(t.reportNonSerializableProperty),trackSymbol:r&&function(){for(var t=[],n=0;n(1&t.flags?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function u(t,r){o&&o.throwIfCancellationRequested&&o.throwIfCancellationRequested();var n=8388608&r.flags;if(r.flags&=-8388609,!t)return 262144&r.flags?(r.approximateLength+=3,e.factory.createKeywordTypeNode(130)):void(r.encounteredError=!0);if(536870912&r.flags||(t=Wc(t)),1&t.flags)return t.aliasSymbol?e.factory.createTypeReferenceNode(E(t.aliasSymbol),p(t.aliasTypeArguments,r)):t===Le?e.addSyntheticLeadingComment(e.factory.createKeywordTypeNode(130),3,"unresolved"):(r.approximateLength+=3,e.factory.createKeywordTypeNode(t===Be?138:130));if(2&t.flags)return e.factory.createKeywordTypeNode(154);if(4&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(149);if(8&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(146);if(64&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(157);if(16&t.flags&&!t.aliasSymbol)return r.approximateLength+=7,e.factory.createKeywordTypeNode(133);if(1024&t.flags&&!(1048576&t.flags)){var i=ra(t.symbol),a=k(i,r,788968);if(Ss(i)===t)return a;var c=e.symbolName(t.symbol);return e.isIdentifierText(c,0)?J(a,e.factory.createTypeReferenceNode(c,void 0)):e.isImportTypeNode(a)?(a.isTypeOf=!0,e.factory.createIndexedAccessTypeNode(a,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(c)))):e.isTypeReferenceNode(a)?e.factory.createIndexedAccessTypeNode(e.factory.createTypeQueryNode(a.typeName),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(c))):e.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(1056&t.flags)return k(t.symbol,r,788968);if(128&t.flags)return r.approximateLength+=t.value.length+2,e.factory.createLiteralTypeNode(e.setEmitFlags(e.factory.createStringLiteral(t.value,!!(268435456&r.flags)),16777216));if(256&t.flags){var d=t.value;return r.approximateLength+=(""+d).length,e.factory.createLiteralTypeNode(d<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-d)):e.factory.createNumericLiteral(d))}if(2048&t.flags)return r.approximateLength+=e.pseudoBigIntToString(t.value).length+1,e.factory.createLiteralTypeNode(e.factory.createBigIntLiteral(t.value));if(512&t.flags)return r.approximateLength+=t.intrinsicName.length,e.factory.createLiteralTypeNode("true"===t.intrinsicName?e.factory.createTrue():e.factory.createFalse());if(8192&t.flags){if(!(1048576&r.flags)){if(Ca(t.symbol,r.enclosingDeclaration))return r.approximateLength+=6,k(t.symbol,r,111551);r.tracker.reportInaccessibleUniqueSymbolError&&r.tracker.reportInaccessibleUniqueSymbolError()}return r.approximateLength+=13,e.factory.createTypeOperatorNode(153,e.factory.createKeywordTypeNode(150))}if(16384&t.flags)return r.approximateLength+=4,e.factory.createKeywordTypeNode(114);if(32768&t.flags)return r.approximateLength+=9,e.factory.createKeywordTypeNode(152);if(65536&t.flags)return r.approximateLength+=4,e.factory.createLiteralTypeNode(e.factory.createNull());if(131072&t.flags)return r.approximateLength+=5,e.factory.createKeywordTypeNode(143);if(4096&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(150);if(67108864&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(147);if(Rd(t))return 4194304&r.flags&&(r.encounteredError||32768&r.flags||(r.encounteredError=!0),r.tracker.reportInaccessibleThisError&&r.tracker.reportInaccessibleThisError()),r.approximateLength+=4,e.factory.createThisTypeNode();if(!n&&t.aliasSymbol&&(16384&r.flags||Ta(t.aliasSymbol,r.enclosingDeclaration))){var y=p(t.aliasTypeArguments,r);return!ga(t.aliasSymbol.escapedName)||32&t.aliasSymbol.flags?k(t.aliasSymbol,r,788968,y):e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),y)}var v=e.getObjectFlags(t);if(4&v)return e.Debug.assert(!!(524288&t.flags)),t.node?R(t,j):j(t);if(262144&t.flags||3&v){if(262144&t.flags&&e.contains(r.inferTypeParameters,t))return r.approximateLength+=e.symbolName(t.symbol).length+6,e.factory.createInferTypeNode(m(t,r,void 0));if(4&r.flags&&262144&t.flags&&!Ta(t.symbol,r.enclosingDeclaration)){var h=F(t,r);return r.approximateLength+=e.idText(h).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(h)),void 0)}return t.symbol?k(t.symbol,r,788968):e.factory.createTypeReferenceNode(e.factory.createIdentifier("?"),void 0)}if(1048576&t.flags&&t.origin&&(t=t.origin),3145728&t.flags){var D=1048576&t.flags?function(e){for(var t=[],r=0,n=0;n0?1048576&t.flags?e.factory.createUnionTypeNode(x):e.factory.createIntersectionTypeNode(x):void(r.encounteredError||262144&r.flags||(r.encounteredError=!0))}if(48&v)return e.Debug.assert(!!(524288&t.flags)),L(t);if(4194304&t.flags){var b=t.type;r.approximateLength+=6;var S=u(b,r);return e.factory.createTypeOperatorNode(140,S)}if(134217728&t.flags){var T=t.texts,C=t.types,A=e.factory.createTemplateHead(T[0]),N=e.factory.createNodeArray(e.map(C,(function(t,n){return e.factory.createTemplateLiteralTypeSpan(u(t,r),(n10)return l(r);r.symbolDepth.set(c,_+1)}r.visitedTypes.add(o);var f=r.approximateLength,g=n(t),m=r.approximateLength-f;return r.reportedDiagnostic||r.encounteredError||(r.truncating&&(g.truncating=!0),g.addedLength=m,null===(a=null==u?void 0:u.serializedTypes)||void 0===a||a.set(d,g)),r.visitedTypes.delete(o),c&&r.symbolDepth.set(c,_),g}function B(t){if(bc(t)||t.containsError)return function(t){e.Debug.assert(!!(524288&t.flags));var n,i=t.declaration.readonlyToken?e.factory.createToken(t.declaration.readonlyToken.kind):void 0,a=t.declaration.questionToken?e.factory.createToken(t.declaration.questionToken.kind):void 0;n=yc(t)?e.factory.createTypeOperatorNode(140,u(vc(t),r)):u(pc(t),r);var o=m(_c(t),r,n),s=t.declaration.nameType?u(fc(t),r):void 0,c=u(Vf(gc(t),!!(4&hc(t))),r),l=e.factory.createMappedTypeNode(i,o,s,a,c,void 0);return r.approximateLength+=10,e.setEmitFlags(l,1)}(t);var n=Sc(t);if(!n.properties.length&&!n.indexInfos.length){if(!n.callSignatures.length&&!n.constructSignatures.length)return r.approximateLength+=2,e.setEmitFlags(e.factory.createTypeLiteralNode(void 0),1);if(1===n.callSignatures.length&&!n.constructSignatures.length)return g(n.callSignatures[0],178,r);if(1===n.constructSignatures.length&&!n.callSignatures.length)return g(n.constructSignatures[0],179,r)}var i=e.filter(n.constructSignatures,(function(e){return!!(4&e.flags)}));if(e.some(i)){var a=e.map(i,Ru);return n.callSignatures.length+(n.constructSignatures.length-i.length)+n.indexInfos.length+(2048&r.flags?e.countWhere(n.properties,(function(e){return!(4194304&e.flags)})):e.length(n.properties))&&a.push(function(t){if(0===t.constructSignatures.length)return t;if(t.objectTypeWithoutAbstractConstructSignatures)return t.objectTypeWithoutAbstractConstructSignatures;var r=e.filter(t.constructSignatures,(function(e){return!(4&e.flags)}));if(t.constructSignatures===r)return t;var n=ha(t.symbol,t.members,t.callSignatures,e.some(r)?r:e.emptyArray,t.indexInfos);return t.objectTypeWithoutAbstractConstructSignatures=n,n.objectTypeWithoutAbstractConstructSignatures=n,n}(n)),u(_d(a),r)}var o=r.flags;r.flags|=4194304;var c=function(t){if(s(r))return[e.factory.createPropertySignature(void 0,"...",void 0,void 0)];for(var n=[],i=0,a=t.callSignatures;i0){var v=(t.target.typeParameters||e.emptyArray).length;y=p(n.slice(b,v),r)}S=r.flags;r.flags|=16;var h=k(t.symbol,r,788968,y);return r.flags=S,c?J(c,h):h}if(n=e.sameMap(n,(function(e,r){return Vf(e,!!(2&t.target.elementFlags[r]))})),n.length>0){var D=el(t),x=p(n.slice(0,D),r);if(x){if(t.target.labeledElementDeclarations)for(var b=0;b2)return[u(t[0],r),e.factory.createTypeReferenceNode("... ".concat(t.length-2," more ..."),void 0),u(t[t.length-1],r)]}for(var i=!(64&r.flags)?e.createUnderscoreEscapedMultiMap():void 0,a=[],o=0,c=0,l=t;c0)),a}function b(t,r){var n;return 524384&GS(t).flags&&(n=e.factory.createNodeArray(e.map(ns(t),(function(e){return y(e,r)})))),n}function S(t,r,n){var i;e.Debug.assert(t&&0<=r&&r1?m(a,a.length-1,1):void 0,c=i||S(a,0,r),u=C(a[0],r);!(67108864&r.flags)&&e.getEmitModuleResolutionKind(z)!==e.ModuleResolutionKind.Classic&&u.indexOf("/node_modules/")>=0&&(r.encounteredError=!0,r.tracker.reportLikelyUnsafeImportRequiredError&&r.tracker.reportLikelyUnsafeImportRequiredError(u));var l=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(u));if(r.tracker.trackExternalModuleSymbolOfImportTypeNode&&r.tracker.trackExternalModuleSymbolOfImportTypeNode(a[0]),r.approximateLength+=u.length+10,!s||e.isEntityName(s)){if(s)(f=e.isIdentifier(s)?s:s.right).typeArguments=void 0;return e.factory.createImportTypeNode(l,s,c,o)}var d=T(s),_=d.objectType.typeName;return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(l,_,c,o),d.indexType)}var p=m(a,a.length-1,0);if(e.isIndexedAccessTypeNode(p))return p;if(o)return e.factory.createTypeQueryNode(p);var f,g=(f=e.isIdentifier(p)?p:p.right).typeArguments;return f.typeArguments=void 0,e.factory.createTypeReferenceNode(p,g);function m(t,n,a){var o,s=n===t.length-1?i:S(t,n,r),c=t[n],u=t[n-1];if(0===n)r.flags|=16777216,o=Ga(c,r),r.approximateLength+=(o?o.length:0)+1,r.flags^=16777216;else if(u&&Xi(u)){var l=Xi(u);e.forEachEntry(l,(function(t,r){if(oa(t,c)&&!Ms(r)&&"export="!==r)return o=e.unescapeLeadingUnderscores(r),!0}))}if(o||(o=Ga(c,r)),r.approximateLength+=o.length+1,!(16&r.flags)&&u&&Ks(u)&&Ks(u).get(c.escapedName)&&oa(Ks(u).get(c.escapedName),c)){var d=m(t,n-1,a);return e.isIndexedAccessTypeNode(d)?e.factory.createIndexedAccessTypeNode(d,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o))):e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(d,s),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o)))}var _=e.setEmitFlags(e.factory.createIdentifier(o,s),16777216);if(_.symbol=c,n>a){d=m(t,n-1,a);return e.isEntityName(d)?e.factory.createQualifiedName(d,_):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return _}}function A(e,t,r){var n=ei(t.enclosingDeclaration,e,788968,void 0,e,!1);return!!n&&!(262144&n.flags&&n===r.symbol)}function F(t,r){var n,i;if(4&r.flags&&r.typeParameterNames){var a=r.typeParameterNames.get(Ql(t));if(a)return a}var o=N(t.symbol,r,788968,!0);if(!(79&o.kind))return e.factory.createIdentifier("(Missing type parameter)");if(4&r.flags){for(var s=o.escapedText,c=(null===(n=r.typeParameterNamesByTextNextNameCount)||void 0===n?void 0:n.get(s))||0,u=s;(null===(i=r.typeParameterNamesByText)||void 0===i?void 0:i.has(u))||A(u,r,t);)c++,u="".concat(s,"_").concat(c);u!==s&&(o=e.factory.createIdentifier(u,o.typeArguments)),(r.typeParameterNamesByTextNextNameCount||(r.typeParameterNamesByTextNextNameCount=new e.Map)).set(s,c),(r.typeParameterNames||(r.typeParameterNames=new e.Map)).set(Ql(t),o),(r.typeParameterNamesByText||(r.typeParameterNamesByText=new e.Set)).add(s)}return o}function N(t,r,n,i){var a=D(t,r,n);return!i||1===a.length||r.encounteredError||65536&r.flags||(r.encounteredError=!0),function t(n,i){var a=S(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=Ga(o,r);0===i&&(r.flags^=16777216);var c=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return c.symbol=o,i>0?e.factory.createQualifiedName(t(n,i-1),c):c}(a,a.length-1)}function P(t,r,n){var i=D(t,r,n);return function t(n,i){var a=S(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=Ga(o,r);0===i&&(r.flags^=16777216);var c=s.charCodeAt(0);if(e.isSingleOrDoubleQuote(c)&&e.some(o.declarations,wa))return e.factory.createStringLiteral(C(o,r));var u=35===c?s.length>1&&e.isIdentifierStart(s.charCodeAt(1),U):e.isIdentifierStart(c,U);if(0===i||u){var l=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return l.symbol=o,i>0?e.factory.createPropertyAccessExpression(t(n,i-1),l):l}91===c&&(s=s.substring(1,s.length-1),c=s.charCodeAt(0));var d=void 0;return e.isSingleOrDoubleQuote(c)?d=e.factory.createStringLiteral(s.substring(1,s.length-1).replace(/\\./g,(function(e){return e.substring(1)})),39===c):""+ +s===s&&(d=e.factory.createNumericLiteral(+s)),d||((d=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216)).symbol=o),e.factory.createElementAccessExpression(t(n,i-1),d)}(i,i.length-1)}function w(t){var r=e.getNameOfDeclaration(t);return!!r&&e.isStringLiteral(r)}function I(t){var r=e.getNameOfDeclaration(t);return!!(r&&e.isStringLiteral(r)&&(r.singleQuote||!e.nodeIsSynthesized(r)&&e.startsWith(e.getTextOfNode(r,!1),"'")))}function L(t,r){var n=!!e.length(t.declarations)&&e.every(t.declarations,I),i=function(t,r,n){var i=Gn(t).nameType;if(i){if(384&i.flags){var a=""+i.value;return e.isIdentifierText(a,e.getEmitScriptTarget(z))||Zy(a)?Zy(a)&&e.startsWith(a,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+a)):R(a):e.factory.createStringLiteral(a,!!n)}if(8192&i.flags)return e.factory.createComputedPropertyName(P(i.symbol,r,111551))}}(t,r,n);return i||R(e.unescapeLeadingUnderscores(t.escapedName),!!e.length(t.declarations)&&e.every(t.declarations,w),n)}function R(t,r,n){return e.isIdentifierText(t,e.getEmitScriptTarget(z))?e.factory.createIdentifier(t):!r&&Zy(t)&&+t>=0?e.factory.createNumericLiteral(+t):e.factory.createStringLiteral(t,!!n)}function B(t,r){return t.declarations&&e.find(t.declarations,(function(t){return!(!e.getEffectiveTypeAnnotationNode(t)||r&&!e.findAncestor(t,(function(e){return e===r})))}))}function j(t,r){return!(4&e.getObjectFlags(r))||!e.isTypeReferenceNode(t)||e.length(t.typeArguments)>=yu(r.target.typeParameters)}function J(t,r,n,i,a,o){if(!io(r)&&i){var s=B(n,i);if(s&&!e.isFunctionLikeDeclaration(s)&&!e.isGetAccessorDeclaration(s)){var c=e.getEffectiveTypeAnnotationNode(s);if(C_(c)===r&&j(c,r)){var l=V(t,c,a,o);if(l)return l}}}var d=t.flags;8192&r.flags&&r.symbol===n&&(!t.enclosingDeclaration||e.some(n.declarations,(function(r){return e.getSourceFileOfNode(r)===e.getSourceFileOfNode(t.enclosingDeclaration)})))&&(t.flags|=1048576);var _=u(r,t);return t.flags=d,_}function K(t,r,n){var i,a,o=!1,s=e.getFirstIdentifier(t);if(e.isInJSFile(t)&&(e.isExportsIdentifier(s)||e.isModuleExportsAccessExpression(s.parent)||e.isQualifiedName(s.parent)&&e.isModuleIdentifier(s.parent.left)&&e.isExportsIdentifier(s.parent.right)))return{introducesError:o=!0,node:t};var c=Ri(s,67108863,!0,!0);if(c&&(0!==Aa(c,r.enclosingDeclaration,67108863,!1).accessibility?o=!0:(null===(a=null===(i=r.tracker)||void 0===i?void 0:i.trackSymbol)||void 0===a||a.call(i,c,r.enclosingDeclaration,67108863),null==n||n(c)),e.isIdentifier(t))){var u=262144&c.flags?F(Ss(c),r):e.factory.cloneNode(t);return u.symbol=c,{introducesError:o,node:e.setEmitFlags(e.setOriginalNode(u,t),16777216)}}return{introducesError:o,node:t}}function V(r,n,i,a){o&&o.throwIfCancellationRequested&&o.throwIfCancellationRequested();var s=!1,c=e.getSourceFileOfNode(n),l=e.visitNode(n,(function n(o){if(e.isJSDocAllType(o)||317===o.kind)return e.factory.createKeywordTypeNode(130);if(e.isJSDocUnknownType(o))return e.factory.createKeywordTypeNode(154);if(e.isJSDocNullableType(o))return e.factory.createUnionTypeNode([e.visitNode(o.type,n),e.factory.createLiteralTypeNode(e.factory.createNull())]);if(e.isJSDocOptionalType(o))return e.factory.createUnionTypeNode([e.visitNode(o.type,n),e.factory.createKeywordTypeNode(152)]);if(e.isJSDocNonNullableType(o))return e.visitNode(o.type,n);if(e.isJSDocVariadicType(o))return e.factory.createArrayTypeNode(e.visitNode(o.type,n));if(e.isJSDocTypeLiteral(o))return e.factory.createTypeLiteralNode(e.map(o.jsDocPropertyTags,(function(t){var i=e.isIdentifier(t.name)?t.name:t.name.right,a=ro(C_(o),i.escapedText),s=a&&t.typeExpression&&C_(t.typeExpression.type)!==a?u(a,r):void 0;return e.factory.createPropertySignature(void 0,i,t.isBracketed||t.typeExpression&&e.isJSDocOptionalType(t.typeExpression.type)?e.factory.createToken(57):void 0,s||t.typeExpression&&e.visitNode(t.typeExpression.type,n)||e.factory.createKeywordTypeNode(130))})));if(e.isTypeReferenceNode(o)&&e.isIdentifier(o.typeName)&&""===o.typeName.escapedText)return e.setOriginalNode(e.factory.createKeywordTypeNode(130),o);if((e.isExpressionWithTypeArguments(o)||e.isTypeReferenceNode(o))&&e.isJSDocIndexSignature(o))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(o.typeArguments[0],n))],e.visitNode(o.typeArguments[1],n))]);if(e.isJSDocFunctionType(o)){var l;return e.isJSDocConstructSignature(o)?e.factory.createConstructorTypeNode(o.modifiers,e.visitNodes(o.typeParameters,n),e.mapDefined(o.parameters,(function(t,r){return t.name&&e.isIdentifier(t.name)&&"new"===t.name.escapedText?void(l=t.type):e.factory.createParameterDeclaration(void 0,void 0,g(t),m(t,r),t.questionToken,e.visitNode(t.type,n),void 0)})),e.visitNode(l||o.type,n)||e.factory.createKeywordTypeNode(130)):e.factory.createFunctionTypeNode(e.visitNodes(o.typeParameters,n),e.map(o.parameters,(function(t,r){return e.factory.createParameterDeclaration(void 0,void 0,g(t),m(t,r),t.questionToken,e.visitNode(t.type,n),void 0)})),e.visitNode(o.type,n)||e.factory.createKeywordTypeNode(130))}if(e.isTypeReferenceNode(o)&&e.isInJSDoc(o)&&(!j(o,C_(o))||fl(o)||Ae===ol(o,788968,!0)))return e.setOriginalNode(u(C_(o),r),o);if(e.isLiteralImportTypeNode(o)){var d=Yn(o).resolvedSymbol;return!e.isInJSDoc(o)||!d||(o.isTypeOf||788968&d.flags)&&e.length(o.typeArguments)>=yu(ns(d))?e.factory.updateImportTypeNode(o,e.factory.updateLiteralTypeNode(o.argument,function(n,i){if(a){if(r.tracker&&r.tracker.moduleResolverHost){var o=hC(n);if(o){var s={getCanonicalFileName:e.createGetCanonicalFileName(!!t.useCaseSensitiveFileNames),getCurrentDirectory:function(){return r.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return r.tracker.moduleResolverHost.getCommonSourceDirectory()}},c=e.getResolvedExternalModuleName(s,o);return e.factory.createStringLiteral(c)}}}else if(r.tracker&&r.tracker.trackExternalModuleSymbolOfImportTypeNode){var u=Ji(i,i,void 0);u&&r.tracker.trackExternalModuleSymbolOfImportTypeNode(u)}return i}(o,o.argument.literal)),o.qualifier,e.visitNodes(o.typeArguments,n,e.isTypeNode),o.isTypeOf):e.setOriginalNode(u(C_(o),r),o)}if(e.isEntityName(o)||e.isEntityNameExpression(o)){var _=K(o,r,i),p=_.introducesError,f=_.node;if(s=s||p,f!==o)return f}c&&e.isTupleTypeNode(o)&&e.getLineAndCharacterOfPosition(c,o.pos).line===e.getLineAndCharacterOfPosition(c,o.end).line&&e.setEmitFlags(o,1);return e.visitEachChild(o,n,e.nullTransformationContext);function g(t){return t.dotDotDotToken||(t.type&&e.isJSDocVariadicType(t.type)?e.factory.createToken(25):void 0)}function m(t,r){return t.name&&e.isIdentifier(t.name)&&"this"===t.name.escapedText?"this":g(t)?"args":"arg".concat(r)}}));if(!s)return l===n?e.setTextRange(e.factory.cloneNode(n),n):l}}(),oe=e.createSymbolTable(),se=jn(4,"undefined");se.declarations=[];var ce=jn(1536,"globalThis",8);ce.exports=oe,ce.declarations=[],oe.set(ce.escapedName,ce);var ue,le=jn(4,"arguments"),de=jn(4,"require"),_e={getNodeCount:function(){return e.sum(t.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(t.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(t.getSourceFiles(),"symbolCount")+h},getTypeCount:function(){return v},getInstantiationCount:function(){return x},getRelationCacheSizes:function(){return{assignable:bn.size,identity:Tn.size,subtype:Dn.size,strictSubtype:xn.size}},isUndefinedSymbol:function(e){return e===se},isArgumentsSymbol:function(e){return e===le},isUnknownSymbol:function(e){return e===Ae},getMergedSymbol:ea,getDiagnostics:ST,getGlobalDiagnostics:function(){return TT(),mn.getGlobalDiagnostics()},getRecursionIdentity:tf,getUnmatchedProperties:xg,getTypeOfSymbolAtLocation:function(t,r){var n=e.getParseTreeNode(r);return n?function(t,r){if(t=t.exportSymbol||t,(79===r.kind||80===r.kind)&&(e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),e.isExpressionNode(r)&&(!e.isAssignmentTarget(r)||e.isWriteAccess(r)))){var n=Jx(r);if(sa(Yn(r).resolvedSymbol)===t)return n}if(e.isDeclarationName(r)&&e.isSetAccessor(r.parent)&&Bo(r.parent))return zo(r.parent.symbol,!0);return Xo(t)}(t,n):Me},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=Qn(n.locals,r,111551),o=Qn(Ks(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:Ss,getPropertiesOfType:kc,getPropertyOfType:function(t,r){return Qc(t,e.escapeLeadingUnderscores(r))},getPrivateIdentifierPropertyOfType:function(t,r,n){var i=e.getParseTreeNode(n);if(i){var a=Vv(e.escapeLeadingUnderscores(r),i);return a?Hv(t,a):void 0}},getTypeOfPropertyOfType:function(t,r){return ro(t,e.escapeLeadingUnderscores(r))},getIndexInfoOfType:function(e,t){return au(e,0===t?He:Ge)},getIndexInfosOfType:iu,getSignaturesOfType:Zc,getIndexTypeOfType:function(e,t){return ou(e,0===t?He:Ge)},getBaseTypes:ds,getBaseTypeOfLiteralType:xf,getWidenedType:tg,getTypeFromTypeNode:function(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r?C_(r):Me},getParameterType:wD,getParameterIdentifierNameAtPosition:function(e,t){var r=e.parameters.length-(J(e)?1:0);if(t>",0,we),Er=qs(void 0,void 0,void 0,e.emptyArray,we,void 0,0,0),kr=qs(void 0,void 0,void 0,e.emptyArray,Me,void 0,0,0),Ar=qs(void 0,void 0,void 0,e.emptyArray,we,void 0,0,0),Fr=qs(void 0,void 0,void 0,e.emptyArray,it,void 0,0,0),Nr=Ju(Ge,He,!0),Pr=new e.Map,wr={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},Ir=dS(we,we,we),Or=dS(we,we,je),Mr=dS(nt,we,Ke),Lr={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return sr||(sr=Sl("AsyncIterator",3,e))||Dt},getGlobalIterableType:function(e){return or||(or=Sl("AsyncIterable",1,e))||Dt},getGlobalIterableIteratorType:function(e){return cr||(cr=Sl("AsyncIterableIterator",1,e))||Dt},getGlobalGeneratorType:function(e){return ur||(ur=Sl("AsyncGenerator",3,e))||Dt},resolveIterationType:yb,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},Rr={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return tr||(tr=Sl("Iterator",3,e))||Dt},getGlobalIterableType:Pl,getGlobalIterableIteratorType:function(e){return rr||(rr=Sl("IterableIterator",1,e))||Dt},getGlobalGeneratorType:function(e){return nr||(nr=Sl("Generator",3,e))||Dt},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},Br=new e.Map,jr=!1,Jr=new e.Map,Kr=0,zr=0,Ur=0,Vr=!1,qr=0,Wr=y_(""),Hr=v_(0),Gr=h_({negative:!1,base10Value:"0"}),Yr=[],Xr=[],Qr=[],$r=0,Zr=[],en=[],tn=[],rn=[],nn=[],an=[],on=[],sn=[],cn=[],un=[],ln=[],dn=[],_n=[],pn=[],fn=[],gn=[],mn=e.createDiagnosticCollection(),yn=e.createDiagnosticCollection(),vn=new e.Map(e.getEntries({string:He,number:Ge,bigint:Ye,boolean:et,symbol:tt,undefined:Ke})),hn=id(e.arrayFrom(S.keys(),y_)),Dn=new e.Map,xn=new e.Map,bn=new e.Map,Sn=new e.Map,Tn=new e.Map,Cn=new e.Map,En=e.createSymbolTable();En.set(se.escapedName,se);var kn=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",1===z.jsx?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return function(){for(var r=0,n=t.getSourceFiles();r=5||e.some(o.relatedInformation,(function(t){return 0===e.compareDiagnostics(t,s)||0===e.compareDiagnostics(t,i)})))return"continue";e.addRelatedInfo(o,e.length(o.relatedInformation)?s:i)},c=0,u=i||e.emptyArray;c1)}function Gn(e){if(33554432&e.flags)return e;var t=M(e);return en[t]||(en[t]=new w)}function Yn(e){var t=O(e);return tn[t]||(tn[t]=new I)}function Xn(t){return 303===t.kind&&!e.isExternalOrCommonJsModule(t)}function Qn(t,r,n){if(n){var i=ea(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=Fi(i);if(a===Ae||a.flags&n)return i}}}}function $n(r,n){var i=e.getSourceFileOfNode(r),a=e.getSourceFileOfNode(n),o=e.getEnclosingBlockScopeContainer(r);if(i!==a){if(V&&(i.externalModuleIndicator||a.externalModuleIndicator)||!e.outFile(z)||Ug(n)||8388608&r.flags)return!0;if(u(n,r))return!0;var s=t.getSourceFiles();return s.indexOf(i)<=s.indexOf(a)}if(r.pos<=n.pos&&(!e.isPropertyDeclaration(r)||!e.isThisProperty(n.parent)||r.initializer||r.exclamationToken)){if(202===r.kind){var c=e.getAncestor(n,202);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(r,e.isBindingElement)||r.pos=i&&c.pos<=a){var u=e.factory.createPropertyAccessExpression(e.factory.createThis(),t);if(e.setParent(u.expression,u),e.setParent(u,c),u.flowNode=c.returnFlowNode,!(32768&If($m(u,r,Bf(r)))))return!0}}return!1}(a,Yo(ta(r)),e.filter(r.parent.members,e.isClassStaticBlockDeclaration),r.parent.pos,n.pos))return!0}}else{if(!(166===r.kind&&!e.isStatic(r))||e.getContainingClass(t)!==e.getContainingClass(r))return!0}return!1}))}function l(t,r,n){if(r.end>t.end)return!1;var i=e.findAncestor(r,(function(r){if(r===t)return"quit";switch(r.kind){case 213:return!0;case 166:return!n||!(e.isPropertyDeclaration(t)&&r.parent===t.parent||e.isParameterPropertyDeclaration(t,t.parent)&&r.parent===t.parent.parent)||"quit";case 234:switch(r.parent.kind){case 171:case 168:case 172:return!0;default:return!1}default:return!1}}));return void 0===i}}function Zn(t,r,n){var i=e.getEmitScriptTarget(z),a=r;if(e.isParameter(n)&&a.body&&t.valueDeclaration&&t.valueDeclaration.pos>=a.body.pos&&t.valueDeclaration.end<=a.body.end&&i>=2){var o=Yn(a);return void 0===o.declarationRequiresScopeChange&&(o.declarationRequiresScopeChange=e.forEach(a.parameters,(function(e){return s(e.name)||!!e.initializer&&s(e.initializer)}))||!1),!o.declarationRequiresScopeChange}return!1;function s(t){switch(t.kind){case 213:case 212:case 255:case 170:return!1;case 168:case 171:case 172:case 294:return s(t.name);case 166:return e.hasStaticModifier(t)?i<99||!q:s(t.name);default:return e.isNullishCoalesce(t)||e.isOptionalChain(t)?i<7:e.isBindingElement(t)&&t.dotDotDotToken&&e.isObjectBindingPattern(t.parent)?i<4:!e.isTypeNode(t)&&(e.forEachChild(t,s)||!1)}}}function ei(e,t,r,n,i,a,o){return void 0===o&&(o=!1),ti(e,t,r,n,i,a,o,Qn)}function ti(t,r,n,i,a,o,s,c){var u,l,d,_,p,f,g,m,y,v=t,h=!1,D=t,x=!1;e:for(;t;){if(t.locals&&!Xn(t)&&(_=c(t.locals,r,n))){var b=!0;if(e.isFunctionLike(t)&&p&&p!==t.body?(n&_.flags&788968&&318!==p.kind&&(b=!!(262144&_.flags)&&(p===t.type||163===p.kind||162===p.kind)),n&_.flags&3&&(Zn(_,t,p)?b=!1:1&_.flags&&(b=163===p.kind||p===t.type&&!!e.findAncestor(_.valueDeclaration,e.isParameter)))):188===t.kind&&(b=p===t.trueType),b)break e;_=void 0}switch(h=h||ni(t,p),t.kind){case 303:if(!e.isExternalOrCommonJsModule(t))break;x=!0;case 260:var S=(null===(u=ta(t))||void 0===u?void 0:u.exports)||k;if(303===t.kind||e.isModuleDeclaration(t)&&8388608&t.flags&&!e.isGlobalScopeAugmentation(t)){if(_=S.get("default")){var T=e.getLocalSymbolForExportDefault(_);if(T&&_.flags&n&&T.escapedName===r)break e;_=void 0}var C=S.get(r);if(C&&2097152===C.flags&&(e.getDeclarationOfKind(C,274)||e.getDeclarationOfKind(C,273)))break}if("default"!==r&&(_=c(S,r,2623475&n))){if(!e.isSourceFile(t)||!t.commonJsModuleIndicator||(null===(l=_.declarations)||void 0===l?void 0:l.some(e.isJSDocTypeAlias)))break e;_=void 0}break;case 259:if(_=c((null===(d=ta(t))||void 0===d?void 0:d.exports)||k,r,8&n))break e;break;case 166:if(!e.isStatic(t)){var E=ua(t.parent);E&&E.locals&&c(E.locals,r,111551&n)&&(g=t)}break;case 256:case 225:case 257:if(_=c(ta(t).members||k,r,788968&n)){if(!oi(_,t)){_=void 0;break}if(p&&e.isStatic(p))return void In(D,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(225===t.kind&&32&n){var A=t.name;if(A&&r===A.escapedText){_=t.symbol;break e}}break;case 227:if(p===t.expression&&94===t.parent.token){var F=t.parent.parent;if(e.isClassLike(F)&&(_=c(ta(F).members,r,788968&n)))return void(i&&In(D,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 161:if(y=t.parent.parent,(e.isClassLike(y)||257===y.kind)&&(_=c(ta(y).members,r,788968&n)))return void In(D,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 213:if(e.getEmitScriptTarget(z)>=2)break;case 168:case 170:case 171:case 172:case 255:if(3&n&&"arguments"===r){_=le;break e}break;case 212:if(3&n&&"arguments"===r){_=le;break e}if(16&n){var N=t.name;if(N&&r===N.escapedText){_=t.symbol;break e}}break;case 164:t.parent&&163===t.parent.kind&&(t=t.parent),t.parent&&(e.isClassElement(t.parent)||256===t.parent.kind)&&(t=t.parent);break;case 343:case 336:case 337:(L=e.getJSDocRoot(t))&&(t=L.parent);break;case 163:p&&(p===t.initializer||p===t.name&&e.isBindingPattern(p))&&(m||(m=t));break;case 202:p&&(p===t.initializer||p===t.name&&e.isBindingPattern(p))&&e.isParameterDeclaration(t)&&!m&&(m=t);break;case 189:if(262144&n){var P=t.typeParameter.name;if(P&&r===P.escapedText){_=t.typeParameter.symbol;break e}}}ii(t)&&(f=t),p=t,t=e.isJSDocTemplateTag(t)&&e.getEffectiveContainerForJSDocTemplateTag(t)||t.parent}if(!o||!_||f&&_===f.symbol||(_.isReferenced|=n),!_){if(p&&(e.Debug.assert(303===p.kind),p.commonJsModuleIndicator&&"exports"===r&&n&p.symbol.flags))return p.symbol;s||(_=c(oe,r,n))}if(!_&&v&&e.isInJSFile(v)&&v.parent&&e.isRequireCall(v.parent,!1))return de;if(_){if(i){if(g&&(99!==e.getEmitScriptTarget(z)||!q)){var w=g.name;return void In(D,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(w),ai(a))}if(D&&(2&n||(32&n||384&n)&&111551==(111551&n))){var I=sa(_);(2&I.flags||32&I.flags||384&I.flags)&&function(t,r){var n;if(e.Debug.assert(!!(2&t.flags||32&t.flags||384&t.flags)),67108881&t.flags&&32&t.flags)return;var i=null===(n=t.declarations)||void 0===n?void 0:n.find((function(t){return e.isBlockOrCatchScoped(t)||e.isClassLike(t)||259===t.kind}));if(void 0===i)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(8388608&i.flags||$n(i,r))){var a=void 0,o=e.declarationNameToString(e.getNameOfDeclaration(i));2&t.flags?a=In(r,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,o):32&t.flags?a=In(r,e.Diagnostics.Class_0_used_before_its_declaration,o):256&t.flags?a=In(r,e.Diagnostics.Enum_0_used_before_its_declaration,o):(e.Debug.assert(!!(128&t.flags)),e.shouldPreserveConstEnums(z)&&(a=In(r,e.Diagnostics.Enum_0_used_before_its_declaration,o))),a&&e.addRelatedInfo(a,e.createDiagnosticForNode(i,e.Diagnostics._0_is_declared_here,o))}}(I,D)}if(_&&x&&111551==(111551&n)&&!(4194304&v.flags)){var O=ea(_);e.length(O.declarations)&&e.every(O.declarations,(function(t){return e.isNamespaceExportDeclaration(t)||e.isSourceFile(t)&&!!t.symbol.globalExports}))&&Mn(!z.allowUmdGlobalAccess,D,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(r))}if(_&&m&&!h&&111551==(111551&n)){var M=ea(zs(_)),L=e.getRootDeclaration(m);M===ta(m)?In(D,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(m.name)):M.valueDeclaration&&M.valueDeclaration.pos>m.pos&&L.parent.locals&&c(L.parent.locals,M.escapedName,n)===M&&In(D,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(m.name),e.declarationNameToString(D))}_&&D&&111551&n&&2097152&_.flags&&function(t,r,n){if(!e.isValidTypeOnlyAliasUseSite(n)){var i=wi(t);if(i){var a=274===i.kind?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,o=e.unescapeLeadingUnderscores(r);ri(In(n,a,o),i,o)}}}(_,r,D)}return _}if(i&&!(D&&(function(t,r,n){if(!e.isIdentifier(t)||t.escapedText!==r||ET(t)||Ug(t))return!1;var i=e.getThisContainer(t,!1),a=i;for(;a;){if(e.isClassLike(a.parent)){var o=ta(a.parent);if(!o)break;if(Qc(Yo(o),r))return In(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,ai(n),Ma(o)),!0;if(a===i&&!e.isStatic(a))if(Qc(Ss(o).thisType,r))return In(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,ai(n)),!0}a=a.parent}return!1}(D,r,a)||si(D)||function(t,r,n){var i=1920|(e.isInJSFile(t)?111551:0);if(n===i){var a=Ai(ei(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(Qc(Ss(a),s))return In(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 In(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(r)),!0}}return!1}(D,r,n)||function(t,r){if(ui(r)&&274===t.parent.kind)return In(t,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,r),!0;return!1}(D,r)||function(t,r,n){if(111551&n){if(ui(r))return In(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(r)),!0;var i=Ai(ei(t,r,788544,void 0,void 0,!1));if(i&&!(1024&i.flags)){var a=e.unescapeLeadingUnderscores(r);return!function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(r)?!function(t,r){var n=e.findAncestor(t.parent,(function(t){return!e.isComputedPropertyName(t)&&!e.isPropertySignature(t)&&(e.isTypeLiteralNode(t)||"quit")}));if(n&&1===n.members.length){var i=Ss(r);return!!(1048576&i.flags)&&_x(i,384,!0)}return!1}(t,i)?In(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,a):In(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,a,"K"===a?"P":"K"):In(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,a),!0}}return!1}(D,r,n)||function(t,r,n){if(111127&n){if(Ai(ei(t,r,1024,void 0,void 0,!1)))return In(t,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(r)),!0}else if(788544&n){if(Ai(ei(t,r,1536,void 0,void 0,!1)))return In(t,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(r)),!0}return!1}(D,r,n)||function(t,r,n){if(788584&n){var i=Ai(ei(t,r,111127,void 0,void 0,!1));if(i&&!(1920&i.flags))return In(t,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.unescapeLeadingUnderscores(r)),!0}return!1}(D,r,n)))){var R=void 0;if($r<10)if((null==(R=oh(v,r,n))?void 0:R.valueDeclaration)&&e.isAmbientModule(R.valueDeclaration)&&e.isGlobalScopeAugmentation(R.valueDeclaration)&&(R=void 0),R){var B=Ma(R),j=Xv(v,R,!1),J=wn(D,1920===n||a&&"string"!=typeof a&&e.nodeIsSynthesized(a)?e.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1:j?e.Diagnostics.Could_not_find_name_0_Did_you_mean_1:e.Diagnostics.Cannot_find_name_0_Did_you_mean_1,ai(a),B);On(!j,J),R.valueDeclaration&&e.addRelatedInfo(J,e.createDiagnosticForNode(R.valueDeclaration,e.Diagnostics._0_is_declared_here,B))}if(!R&&a){var K=function(t){for(var r=ai(t),n=e.getScriptTargetFeatures(),i=e.getOwnKeys(n),a=0,o=i;a=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",d=i.exports.get("export=").valueDeclaration,_=In(t.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,Ma(i),l);d&&e.addRelatedInfo(_,e.createDiagnosticForNode(d,e.Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,l))}else!function(t,r){var n,i,a;if(null===(n=t.exports)||void 0===n?void 0:n.has(r.symbol.escapedName))In(r.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Ma(t),Ma(r.symbol));else{var o=In(r.name,e.Diagnostics.Module_0_has_no_default_export,Ma(t)),s=null===(i=t.exports)||void 0===i?void 0:i.get("__export");if(s){var c=null===(a=s.declarations)||void 0===a?void 0:a.find((function(t){var r,n;return!!(e.isExportDeclaration(t)&&t.moduleSpecifier&&(null===(n=null===(r=ji(t,t.moduleSpecifier))||void 0===r?void 0:r.exports)||void 0===n?void 0:n.has("default")))}));c&&e.addRelatedInfo(o,e.createDiagnosticForNode(c,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}}(i,t);return Ni(t,a,void 0,!1),a}}function bi(t,n,i){var a,o;void 0===i&&(i=!1);var s=e.getExternalModuleRequireArgument(t)||t.moduleSpecifier,c=ji(t,s),u=!e.isPropertyAccessExpression(n)&&n.propertyName||n.name;if(e.isIdentifier(u)){var l=Vi(c,s,!1,"default"===u.escapedText&&!(!z.allowSyntheticDefaultImports&&!e.getESModuleInterop(z)));if(l&&u.escapedText){if(e.isShorthandAmbientModuleSymbol(c))return c;var d=void 0;d=c&&c.exports&&c.exports.get("export=")?Qc(Yo(l),u.escapedText,!0):function(e,t){if(3&e.flags){var r=e.valueDeclaration.type;if(r)return Ai(Qc(C_(r),t))}}(l,u.escapedText),d=Ai(d,i);var _=function(e,t,r,n){if(1536&e.flags){var i=Xi(e).get(t.escapedText),a=Ai(i,n);return Ni(r,i,a,!1),a}}(l,u,n,i);if(void 0===_&&"default"===u.escapedText){var p=null===(a=c.declarations)||void 0===a?void 0:a.find(e.isSourceFile);(hi(s)||Di(p,c,i,s))&&(_=Ui(c,i)||Ai(c,i))}var f=_&&d&&_!==d?function(t,r){if(t===Ae&&r===Ae)return Ae;if(790504&t.flags)return t;var n=jn(t.flags|r.flags,t.escapedName);return n.declarations=e.deduplicate(e.concatenate(t.declarations,r.declarations),e.equateValues),n.parent=t.parent||r.parent,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration),r.members&&(n.members=new e.Map(r.members)),t.exports&&(n.exports=new e.Map(t.exports)),n}(d,_):_||d;if(!f){var g=Li(c,t),m=e.declarationNameToString(u),y=sh(u,l);if(void 0!==y){var v=Ma(y),h=In(u,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,g,m,v);y.valueDeclaration&&e.addRelatedInfo(h,e.createDiagnosticForNode(y.valueDeclaration,e.Diagnostics._0_is_declared_here,v))}else(null===(o=c.exports)||void 0===o?void 0:o.has("default"))?In(u,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,g,m):function(t,n,i,a,o){var s,c,u=null===(c=null===(s=a.valueDeclaration)||void 0===s?void 0:s.locals)||void 0===c?void 0:c.get(n.escapedText),l=a.exports;if(u){var d=null==l?void 0:l.get("export=");if(d)oa(d,u)?function(t,r,n,i){if(V>=e.ModuleKind.ES2015){In(r,e.getESModuleInterop(z)?e.Diagnostics._0_can_only_be_imported_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n)}else{if(e.isInJSFile(t))In(r,e.getESModuleInterop(z)?e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n);else In(r,e.getESModuleInterop(z)?e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n,n,i)}}(t,n,i,o):In(n,e.Diagnostics.Module_0_has_no_exported_member_1,o,i);else{var _=l?e.find(du(l),(function(e){return!!oa(e,u)})):void 0,p=_?In(n,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,o,i,Ma(_)):In(n,e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,o,i);u.declarations&&e.addRelatedInfo.apply(void 0,r([p],e.map(u.declarations,(function(t,r){return e.createDiagnosticForNode(t,0===r?e.Diagnostics._0_is_declared_here:e.Diagnostics.and_here,i)})),!1))}}else In(n,e.Diagnostics.Module_0_has_no_exported_member_1,o,i)}(t,u,m,c,g)}return f}}}function Si(t){if(e.isVariableDeclaration(t)&&t.initializer&&e.isPropertyAccessExpression(t.initializer))return t.initializer}function Ti(e,t,r){var n=e.parent.parent.moduleSpecifier?bi(e.parent.parent,e,r):Ri(e.propertyName||e.name,t,!1,r);return Ni(e,void 0,n,!1),n}function Ci(t,r){if(e.isClassExpression(t))return Cx(t).symbol;if(e.isEntityName(t)||e.isEntityNameExpression(t)){var n=Ri(t,901119,!0,r);return n||(Cx(t),Yn(t).resolvedSymbol)}}function Ei(t,r){switch(void 0===r&&(r=!1),t.kind){case 264:case 253:return gi(t,r);case 266:return xi(t,r);case 267:return function(e,t){var r=e.parent.parent.moduleSpecifier,n=ji(e,r),i=Vi(n,r,t,!1);return Ni(e,n,i,!1),i}(t,r);case 273:return function(e,t){var r=e.parent.moduleSpecifier,n=r&&ji(e,r),i=r&&Vi(n,r,t,!1);return Ni(e,n,i,!1),i}(t,r);case 269:case 202:return function(t,r){var n=e.isBindingElement(t)?e.getRootDeclaration(t):t.parent.parent.parent,i=Si(n),a=bi(n,i||t,r),o=t.propertyName||t.name;return i&&a&&e.isIdentifier(o)?Ai(Qc(Yo(a),o.escapedText),r):(Ni(t,void 0,a,!1),a)}(t,r);case 274:return Ti(t,901119,r);case 270:case 220:return function(t,r){var n=Ci(e.isExportAssignment(t)?t.expression:t.right,r);return Ni(t,void 0,n,!1),n}(t,r);case 263:return function(e,t){var r=Ui(e.parent.symbol,t);return Ni(e,void 0,r,!1),r}(t,r);case 295:return Ri(t.name,901119,!0,r);case 294:return function(e,t){return Ci(e.initializer,t)}(t,r);case 206:case 205:return function(t,r){if(e.isBinaryExpression(t.parent)&&t.parent.left===t&&63===t.parent.operatorToken.kind)return Ci(t.parent.right,r)}(t,r);default:return e.Debug.fail()}}function ki(e,t){return void 0===t&&(t=901119),!!e&&(2097152==(e.flags&(2097152|t))||!!(2097152&e.flags&&67108864&e.flags))}function Ai(e,t){return!t&&ki(e)?Fi(e):e}function Fi(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var r=Gn(t);if(r.target)r.target===Fe&&(r.target=Ae);else{r.target=Fe;var n=_i(t);if(!n)return e.Debug.fail();var i=Ei(n);r.target===Fe?r.target=i||Ae:In(n,e.Diagnostics.Circular_definition_of_import_alias_0,Ma(t))}return r.target}function Ni(t,r,n,i){if(!t||e.isPropertyAccessExpression(t))return!1;var a=ta(t);if(e.isTypeOnlyImportOrExportDeclaration(t))return Gn(a).typeOnlyDeclaration=t,!0;var o=Gn(a);return Pi(o,r,i)||Pi(o,n,i)}function Pi(t,r,n){var i,a,o;if(r&&(void 0===t.typeOnlyDeclaration||n&&!1===t.typeOnlyDeclaration)){var s=null!==(a=null===(i=r.exports)||void 0===i?void 0:i.get("export="))&&void 0!==a?a:r,c=s.declarations&&e.find(s.declarations,e.isTypeOnlyImportOrExportDeclaration);t.typeOnlyDeclaration=null!==(o=null!=c?c:Gn(s).typeOnlyDeclaration)&&void 0!==o&&o}return!!t.typeOnlyDeclaration}function wi(e){if(2097152&e.flags)return Gn(e).typeOnlyDeclaration||void 0}function Ii(e){var t=ta(e),r=Fi(t);r&&((r===Ae||111551&r.flags&&!XT(r)&&!wi(t))&&Oi(t))}function Oi(t){var r=Gn(t);if(!r.referenced){r.referenced=!0;var n=_i(t);if(!n)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(n)){var i=Ai(t);(i===Ae||111551&i.flags)&&Cx(n.moduleReference)}}}function Mi(t,r){return 79===t.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),79===t.kind||160===t.parent.kind?Ri(t,1920,!1,r):(e.Debug.assert(264===t.parent.kind),Ri(t,901119,!1,r))}function Li(e,t){return e.parent?Li(e.parent,t)+"."+Ma(e):Ma(e,t,void 0,20)}function Ri(t,r,n,i,a){if(!e.nodeIsMissing(t)){var o,s=1920|(e.isInJSFile(t)?111551&r:0);if(79===t.kind){var c=r===s||e.nodeIsSynthesized(t)?e.Diagnostics.Cannot_find_namespace_0:Kg(e.getFirstIdentifier(t)),u=e.isInJSFile(t)&&!e.nodeIsSynthesized(t)?function(t,r){if(_l(t.parent)){var n=function(t){var r=e.findAncestor(t,(function(t){return e.isJSDocNode(t)||4194304&t.flags?e.isJSDocTypeAlias(t):"quit"}));if(r)return;var n=e.getJSDocHost(t);if(n&&e.isExpressionStatement(n)&&e.isBinaryExpression(n.expression)&&3===e.getAssignmentDeclarationKind(n.expression)){if(a=ta(n.expression.left))return Bi(a)}if(n&&(e.isObjectLiteralMethod(n)||e.isPropertyAssignment(n))&&e.isBinaryExpression(n.parent.parent)&&6===e.getAssignmentDeclarationKind(n.parent.parent)){if(a=ta(n.parent.parent.left))return Bi(a)}var i=e.getEffectiveJSDocHost(t);if(i&&e.isFunctionLike(i)){var a;return(a=ta(i))&&a.valueDeclaration}}(t.parent);if(n)return ei(n,t.escapedText,r,void 0,t,!0)}}(t,r):void 0;if(!(o=ea(ei(a||t,t.escapedText,r,n||u?void 0:c,t,!0,!1))))return ea(u)}else{if(160!==t.kind&&205!==t.kind)throw e.Debug.assertNever(t,"Unknown entity name kind.");var l=160===t.kind?t.left:t.expression,d=160===t.kind?t.right:t.name,_=Ri(l,s,n,!1,a);if(!_||e.nodeIsMissing(d))return;if(_===Ae)return _;if(_.valueDeclaration&&e.isInJSFile(_.valueDeclaration)&&e.isVariableDeclaration(_.valueDeclaration)&&_.valueDeclaration.initializer&&vD(_.valueDeclaration.initializer)){var p=_.valueDeclaration.initializer.arguments[0],f=ji(p,p);if(f){var g=Ui(f);g&&(_=g)}}if(!(o=ea(Qn(Xi(_),d.escapedText,r)))){if(!n){var m=Li(_),y=e.declarationNameToString(d),v=sh(d,_);if(v)return void In(d,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,m,y,Ma(v));var h=e.isQualifiedName(t)&&function(t){for(;e.isQualifiedName(t.parent);)t=t.parent;return t}(t),D=Pt&&788968&r&&h&&!e.isTypeOfExpression(h.parent)&&function(t){var r=e.getFirstIdentifier(t),n=ei(r,r.escapedText,111551,void 0,r,!0);if(n){for(;e.isQualifiedName(r.parent);){if(!(n=Qc(Yo(n),r.parent.right.escapedText)))return;r=r.parent}return n}}(h);if(D)return void In(h,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.entityNameToString(h));if(1920&r&&e.isQualifiedName(t.parent)){var x=ea(Qn(Xi(_),d.escapedText,788968));if(x)return void In(t.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,Ma(x),e.unescapeLeadingUnderscores(t.parent.right.escapedText))}In(d,e.Diagnostics.Namespace_0_has_no_exported_member_1,m,y)}return}}return e.Debug.assert(0==(1&e.getCheckFlags(o)),"Should never get an instantiated symbol here."),!e.nodeIsSynthesized(t)&&e.isEntityName(t)&&(2097152&o.flags||270===t.parent.kind)&&Ni(e.getAliasDeclarationFromName(t),o,void 0,!0),o.flags&r||i?o:Fi(o)}}function Bi(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 ji(t,r,n){var i=e.getEmitModuleResolutionKind(z)===e.ModuleResolutionKind.Classic?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;return Ji(t,r,n?void 0:i)}function Ji(t,r,n,i){return void 0===i&&(i=!1),e.isStringLiteralLike(r)?Ki(t,r.text,n,r,i):void 0}function Ki(r,n,i,a,o){var s,c,u,l,d,_,p;(void 0===o&&(o=!1),e.startsWith(n,"@types/"))&&In(a,A=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,e.removePrefix(n,"@types/"),n);var f=pu(n,!0);if(f)return f;var g=e.getSourceFileOfNode(r),m=e.isStringLiteralLike(r)?r:(null===(s=e.findAncestor(r,e.isImportCall))||void 0===s?void 0:s.arguments[0])||(null===(c=e.findAncestor(r,e.isImportDeclaration))||void 0===c?void 0:c.moduleSpecifier)||(null===(u=e.findAncestor(r,e.isExternalModuleImportEqualsDeclaration))||void 0===u?void 0:u.moduleReference.expression)||(null===(l=e.findAncestor(r,e.isExportDeclaration))||void 0===l?void 0:l.moduleSpecifier)||(null===(d=e.isModuleDeclaration(r)?r:r.parent&&e.isModuleDeclaration(r.parent)&&r.parent.name===r?r.parent:void 0)||void 0===d?void 0:d.name)||(null===(_=e.isLiteralImportTypeNode(r)?r:void 0)||void 0===_?void 0:_.argument.literal),y=m&&e.isStringLiteralLike(m)?e.getModeForUsageLocation(g,m):g.impliedNodeFormat,v=e.getResolvedModule(g,n,y),h=v&&e.getResolutionDiagnostic(z,v),D=v&&!h&&t.getSourceFile(v.resolvedFileName);if(D){if(D.symbol){if(v.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(v.extension)&&zi(!1,a,v,n),e.getEmitModuleResolutionKind(z)===e.ModuleResolutionKind.Node12||e.getEmitModuleResolutionKind(z)===e.ModuleResolutionKind.NodeNext)(g.impliedNodeFormat===e.ModuleKind.CommonJS&&!e.findAncestor(r,e.isImportCall)||!!e.findAncestor(r,e.isImportEqualsDeclaration))&&D.impliedNodeFormat===e.ModuleKind.ESNext&&In(a,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,n),y===e.ModuleKind.ESNext&&z.resolveJsonModule&&".json"===v.extension&&In(a,e.Diagnostics.JSON_imports_are_experimental_in_ES_module_mode_imports);return ea(D.symbol)}i&&In(a,e.Diagnostics.File_0_is_not_a_module,D.fileName)}else{if(Ft){var x=e.findBestPatternMatch(Ft,(function(e){return e.pattern}),n);if(x){var b=Nt&&Nt.get(n);return ea(b?b:x.symbol)}}if(v&&!e.resolutionExtensionIsTSOrJson(v.extension)&&void 0===h||h===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)o?In(a,A=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,n,v.resolvedFileName):zi(Q&&!!i,a,v,n);else if(i){if(v){var S=t.getProjectReferenceRedirect(v.resolvedFileName);if(S)return void In(a,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,S,v.resolvedFileName)}if(h)In(a,h,n,v.resolvedFileName);else{var T=e.tryExtractTSExtension(n),C=e.pathIsRelative(n)&&!e.hasExtension(n),E=e.getEmitModuleResolutionKind(z),k=E===e.ModuleResolutionKind.Node12||E===e.ModuleResolutionKind.NodeNext;if(T){var A=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,F=e.removeExtension(n,T);V>=e.ModuleKind.ES2015&&(F+=".mts"===T?".mjs":".cts"===T?".cjs":".js"),In(a,A,T,F)}else if(!z.resolveJsonModule&&e.fileExtensionIs(n,".json")&&e.getEmitModuleResolutionKind(z)!==e.ModuleResolutionKind.Classic&&e.hasJsonModuleEmitEnabled(z))In(a,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n);else if(y===e.ModuleKind.ESNext&&k&&C){var N=e.getNormalizedAbsolutePath(n,e.getDirectoryPath(g.path)),P=null===(p=kn.find((function(e){var r=e[0];return e[1],t.fileExists(N+r)})))||void 0===p?void 0:p[1];P?In(a,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node12_or_nodenext_Did_you_mean_0,n+P):In(a,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 In(a,i,n)}}}}function zi(t,r,n,i){var a,o=n.packageId,s=n.resolvedFileName,c=!e.isExternalModuleNameRelative(i)&&o?(a=o.name,f().has(e.getTypesPackageName(a))?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,o.name,e.mangleScopedPackageName(o.name)):function(e){return!!f().get(e)}(o.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,o.name,i):e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,i,e.mangleScopedPackageName(o.name))):void 0;Mn(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 Ui(t,r){if(null==t?void 0:t.exports){var n=function(t,r){if(!t||t===Ae||t===r||1===r.exports.size||2097152&t.flags)return t;var n=Gn(t);if(n.cjsExportMerged)return n.cjsExportMerged;var i=33554432&t.flags?t:zn(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)?Un(i.exports.get(t),e):e)})),Gn(i).cjsExportMerged=i,n.cjsExportMerged=i}(ea(Ai(t.exports.get("export="),r)),ea(t));return ea(n)||t}}function Vi(t,r,n,i){var a=Ui(t,n);if(!n&&a){if(!(i||1539&a.flags||e.getDeclarationOfKind(a,303))){var o=V>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return In(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}var s=r.parent;if(e.isImportDeclaration(s)&&e.getNamespaceDeclarationNode(s)||e.isImportCall(s)){var c=e.isImportCall(s)?s.arguments[0]:s.moduleSpecifier,u=Yo(a),l=mD(u,a,t,c);if(l)return qi(a,l,s);if(e.getESModuleInterop(z)){var d=$c(u,0);if(d&&d.length||(d=$c(u,1)),d&&d.length||Qc(u,"default"))return qi(a,yD(u,a,t,c),s)}}}return a}function qi(t,r,n){var i=jn(t.flags,t.escapedName);i.declarations=t.declarations?t.declarations.slice():[],i.parent=t.parent,i.target=t,i.originatingImport=n,t.valueDeclaration&&(i.valueDeclaration=t.valueDeclaration),t.constEnumOnlyModule&&(i.constEnumOnlyModule=!0),t.members&&(i.members=new e.Map(t.members)),t.exports&&(i.exports=new e.Map(t.exports));var a=Sc(r);return i.type=ha(i,a.members,e.emptyArray,e.emptyArray,a.indexInfos),i}function Wi(e){return void 0!==e.exports.get("export=")}function Hi(e){return du(Qi(e))}function Gi(e,t){var r=Qi(t);if(r)return r.get(e)}function Yi(t){return!(131068&t.flags||1&e.getObjectFlags(t)||sf(t)||Ef(t))}function Xi(e){return 6256&e.flags?Js(e,"resolvedExports"):1536&e.flags?Qi(e):e.exports||k}function Qi(e){var t=Gn(e);return t.resolvedExports||(t.resolvedExports=Zi(e))}function $i(t,r,n,i){r&&r.forEach((function(r,a){if("default"!==a){var o=t.get(a);if(o){if(n&&i&&o&&Ai(o)!==Ai(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 Zi(t){var r=[];return function t(n){if(!(n&&n.exports&&e.pushIfUnique(r,n)))return;var i=new e.Map(n.exports),a=n.exports.get("__export");if(a){var o=e.createSymbolTable(),s=new e.Map;if(a.declarations)for(var c=0,u=a.declarations;c=d?l.substr(0,d-"...".length)+"...":l}function Ba(e,t){var r=Ja(e.symbol)?Ra(e,e.symbol.valueDeclaration):Ra(e),n=Ja(t.symbol)?Ra(t,t.symbol.valueDeclaration):Ra(t);return r===n&&(r=ja(e),n=ja(t)),[r,n]}function ja(e){return Ra(e,void 0,64)}function Ja(t){return t&&!!t.valueDeclaration&&e.isExpression(t.valueDeclaration)&&!tp(t.valueDeclaration)}function Ka(e){return void 0===e&&(e=0),814775659&e}function za(t){return!!(t.symbol&&32&t.symbol.flags&&(t===fs(t.symbol)||524288&t.flags&&16777216&e.getObjectFlags(t)))}function Ua(t,r,n,i){return void 0===n&&(n=16384),i?a(i).getText():e.usingSingleLineStringWriter(a);function a(i){var a=e.factory.createTypePredicateNode(2===t.kind||3===t.kind?e.factory.createToken(128):void 0,1===t.kind||3===t.kind?e.factory.createIdentifier(t.parameterName):e.factory.createThisTypeNode(),t.type&&ae.typeToTypeNode(t.type,r,70222336|Ka(n))),o=e.createPrinter({removeComments:!0}),s=r&&e.getSourceFileOfNode(r);return o.writeNode(4,a,s,i),i}}function Va(e){return 8===e?"private":16===e?"protected":"public"}function qa(t){return t&&t.parent&&261===t.parent.kind&&e.isExternalModuleAugmentation(t.parent.parent)}function Wa(t){return 303===t.kind||e.isAmbientModule(t)}function Ha(t,r){var n=Gn(t).nameType;if(n){if(384&n.flags){var i=""+n.value;return e.isIdentifierText(i,e.getEmitScriptTarget(z))||Zy(i)?Zy(i)&&e.startsWith(i,"-")?"[".concat(i,"]"):i:'"'.concat(e.escapeString(i,34),'"')}if(8192&n.flags)return"[".concat(Ga(n.symbol,r),"]")}}function Ga(t,r){if(r&&"default"===t.escapedName&&!(16384&r.flags)&&(!(16777216&r.flags)||!t.declarations||r.enclosingDeclaration&&e.findAncestor(t.declarations[0],Wa)!==e.findAncestor(r.enclosingDeclaration,Wa)))return"default";if(t.declarations&&t.declarations.length){var n=e.firstDefined(t.declarations,(function(t){return e.getNameOfDeclaration(t)?t:void 0})),i=n&&e.getNameOfDeclaration(n);if(n&&i){if(e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n))return e.symbolName(t);if(e.isComputedPropertyName(i)&&!(4096&e.getCheckFlags(t))){var a=Gn(t).nameType;if(a&&384&a.flags){var o=Ha(t,r);if(void 0!==o)return o}}return e.declarationNameToString(i)}if(n||(n=t.declarations[0]),n.parent&&253===n.parent.kind)return e.declarationNameToString(n.parent.name);switch(n.kind){case 225:case 212:case 213:return!r||r.encounteredError||131072&r.flags||(r.encounteredError=!0),225===n.kind?"(Anonymous class)":"(Anonymous function)"}}var s=Ha(t,r);return void 0!==s?s:e.symbolName(t)}function Ya(t){if(t){var r=Yn(t);return void 0===r.isVisible&&(r.isVisible=!!function(){switch(t.kind){case 336:case 343:case 337:return!!(t.parent&&t.parent.parent&&t.parent.parent.parent&&e.isSourceFile(t.parent.parent.parent));case 202:return Ya(t.parent.parent);case 253:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 260:case 256:case 257:case 258:case 255:case 259:case 264:if(e.isExternalModuleAugmentation(t))return!0;var r=to(t);return 1&e.getCombinedModifierFlags(t)||264!==t.kind&&303!==r.kind&&8388608&r.flags?Ya(r):Xn(r);case 166:case 165:case 171:case 172:case 168:case 167:if(e.hasEffectiveModifier(t,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 Ya(t.parent);case 266:case 267:case 269:return!1;case 162:case 303:case 263:return!0;default:return!1}}()),r.isVisible}return!1}function Xa(t,r){var n,i,a;return t.parent&&270===t.parent.kind?n=ei(t,t.escapedText,2998271,void 0,t,!1):274===t.parent.kind&&(n=Ti(t.parent,2998271)),n&&((a=new e.Set).add(M(n)),function t(n){e.forEach(n,(function(n){var o=di(n)||n;if(r?Yn(n).isVisible=!0:(i=i||[],e.pushIfUnique(i,o)),e.isInternalModuleImportEqualsDeclaration(n)){var s=n.moduleReference,c=ei(n,e.getFirstIdentifier(s).escapedText,901119,void 0,void 0,!1);c&&a&&e.tryAddToSet(a,M(c))&&t(c.declarations)}}))}(n.declarations)),i}function Qa(e,t){var r=$a(e,t);if(r>=0){for(var n=Yr.length,i=r;i=0;r--){if(Za(Yr[r],Qr[r]))return-1;if(Yr[r]===e&&Qr[r]===t)return r}return-1}function Za(t,r){switch(r){case 0:return!!Gn(t).type;case 5:return!!Yn(t).resolvedEnumType;case 2:return!!Gn(t).declaredType;case 1:return!!t.resolvedBaseConstructorType;case 3:return!!t.resolvedReturnType;case 4:return!!t.immediateBaseConstraint;case 6:return!!t.resolvedTypeArguments;case 7:return!!t.baseTypesResolved}return e.Debug.assertNever(r)}function eo(){return Yr.pop(),Qr.pop(),Xr.pop()}function to(t){return e.findAncestor(e.getRootDeclaration(t),(function(e){switch(e.kind){case 253:case 254:case 269:case 268:case 267:case 266:return!1;default:return!0}})).parent}function ro(e,t){var r=Qc(e,t);return r?Yo(r):void 0}function no(e){return e&&0!=(1&e.flags)}function io(e){return e===Me||!!(1&e.flags&&e.aliasSymbol)}function ao(e){var t=ta(e);return t&&Gn(t).type||vo(e,!1)}function oo(t,r,n){if(t=Em(t,(function(e){return!(98304&e.flags)})),131072&t.flags)return mt;if(1048576&t.flags)return Fm(t,(function(e){return oo(e,r,n)}));var i=id(e.map(r,yd));if(Od(t)||Md(i)){if(131072&i.flags)return t;var a=(gr||(gr=xl("Omit",2,!0)||Ae),gr===Ae?void 0:gr);return a?rl(a,[t,i]):Me}for(var o=e.createSymbolTable(),s=0,c=kc(t);s=2?(i=we,Ol(Pl(!0),[i])):zt;var c=e.map(a,(function(t){return e.isOmittedExpression(t)?we:Fo(t,r,n)})),u=e.findLastIndex(a,(function(t){return!(t===s||e.isOmittedExpression(t)||Yy(t))}),a.length-1)+1,l=Ul(c,e.map(a,(function(e,t){return e===s?4:t>=u?2:1})));return r&&((l=Qu(l)).pattern=t,l.objectFlags|=262144),l}function Po(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),200===t.kind?function(t,r,n){var i,a=e.createSymbolTable(),o=262272;e.forEach(t.elements,(function(e){var t=e.propertyName||e.name;if(e.dotDotDotToken)i=Ju(He,we,!1);else{var s=yd(t);if(Is(s)){var c=Bs(s),u=jn(4|(e.initializer?16777216:0),c);u.type=Fo(e,r,n),u.bindingElement=e,a.set(u.escapedName,u)}else o|=512}}));var s=ha(void 0,a,e.emptyArray,e.emptyArray,i?[i]:e.emptyArray);return s.objectFlags|=o,r&&(s.pattern=t,s.objectFlags|=262144),s}(t,r,n):No(t,r,n)}function wo(e,t){return Oo(vo(e,!0),e,t)}function Io(e){var t,r=ta(e),n=(t=!1,Ht||(Ht=Dl("SymbolConstructor",t)));return n&&r&&r===n}function Oo(t,r,n){return t?(4096&t.flags&&Io(r.parent)&&(t=x_(r)),n&&ag(r,t),8192&t.flags&&(e.isBindingElement(r)||!r.type)&&t.symbol!==ta(r)&&(t=tt),tg(t)):(t=e.isParameter(r)&&r.dotDotDotToken?zt:we,n&&(Mo(r)||ig(r,t)),t)}function Mo(t){var r=e.getRootDeclaration(t);return sb(163===r.kind?r.parent:r)}function Lo(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return C_(r)}function Ro(t){var r=Gn(t);if(!r.type){var n=function(t){if(4194304&t.flags)return(r=Ss(ra(t))).typeParameters?Xu(r,e.map(r.typeParameters,(function(e){return we}))):r;var r;if(t===de)return we;if(134217728&t.flags&&t.valueDeclaration){var n=ta(e.getSourceFileOfNode(t.valueDeclaration)),i=jn(n.flags,"exports");i.declarations=n.declarations?n.declarations.slice():[],i.parent=t,i.target=n,n.valueDeclaration&&(i.valueDeclaration=n.valueDeclaration),n.members&&(i.members=new e.Map(n.members)),n.exports&&(i.exports=new e.Map(n.exports));var a=e.createSymbolTable();return a.set("exports",i),ha(t,a,e.emptyArray,e.emptyArray,e.emptyArray)}e.Debug.assertIsDefined(t.valueDeclaration);var o,s=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(s)){var c=e.getEffectiveTypeAnnotationNode(s);if(void 0===c)return Z?je:we;var u=IT(c);return no(u)||u===je?u:Me}if(e.isSourceFile(s)&&e.isJsonSourceFile(s))return s.statements.length?tg(bf(Ux(s.statements[0].expression))):mt;if(!Qa(t,0))return 512&t.flags&&!(67108864&t.flags)?Vo(t):Ho(t);if(270===s.kind)o=Oo(Lo(s)||Cx(s.expression),s);else if(e.isBinaryExpression(s)||e.isInJSFile(s)&&(e.isCallExpression(s)||(e.isPropertyAccessExpression(s)||e.isBindableStaticElementAccessExpression(s))&&e.isBinaryExpression(s.parent)))o=To(t);else if(e.isPropertyAccessExpression(s)||e.isElementAccessExpression(s)||e.isIdentifier(s)||e.isStringLiteralLike(s)||e.isNumericLiteral(s)||e.isClassDeclaration(s)||e.isFunctionDeclaration(s)||e.isMethodDeclaration(s)&&!e.isObjectLiteralMethod(s)||e.isMethodSignature(s)||e.isSourceFile(s)){if(9136&t.flags)return Vo(t);o=e.isBinaryExpression(s.parent)?To(t):Lo(s)||we}else if(e.isPropertyAssignment(s))o=Lo(s)||wx(s);else if(e.isJsxAttribute(s))o=Lo(s)||cv(s);else if(e.isShorthandPropertyAssignment(s))o=Lo(s)||Px(s.name,0);else if(e.isObjectLiteralMethod(s))o=Lo(s)||Ix(s,0);else if(e.isParameter(s)||e.isPropertyDeclaration(s)||e.isPropertySignature(s)||e.isVariableDeclaration(s)||e.isBindingElement(s)||e.isJSDocPropertyLikeTag(s))o=wo(s,!0);else if(e.isEnumDeclaration(s))o=Vo(t);else if(e.isEnumMember(s))o=qo(t);else{if(!e.isAccessor(s))return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(s.kind)+" for "+e.Debug.formatSymbol(t));o=zo(t)||e.Debug.fail("Non-write accessor resolution must always produce a type")}if(!eo())return 512&t.flags&&!(67108864&t.flags)?Vo(t):Ho(t);return o}(t);r.type||(r.type=n)}return r.type}function Bo(t){if(t)return 171===t.kind?e.getEffectiveReturnTypeNode(t):e.getEffectiveSetAccessorTypeAnnotationNode(t)}function jo(e){var t=Bo(e);return t&&C_(t)}function Jo(t){var r=Gn(t);return r.type||(r.type=Ko(t)||e.Debug.fail("Read type of accessor must always produce a type"))}function Ko(t,r){if(void 0===r&&(r=!1),!Qa(t,0))return Me;var n=zo(t,r);eo()||(n=we,Q&&In(e.getDeclarationOfKind(t,171),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,Ma(t)));return n}function zo(t,r){void 0===r&&(r=!1);var n=e.getDeclarationOfKind(t,171),i=e.getDeclarationOfKind(t,172),a=jo(i);if(r&&a)return c(a,t);if(n&&e.isInJSFile(n)){var o=go(n);if(o)return c(o,t)}var s=jo(n);return s?c(s,t):a||(n&&n.body?c(GD(n),t):i?(sb(i)||Mn(Q,i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Ma(t)),we):n?(e.Debug.assert(!!n,"there must exist a getter as we are current checking either setter or getter in this function"),sb(n)||Mn(Q,n,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Ma(t)),we):void 0);function c(t,r){return 1&e.getCheckFlags(r)?X_(t,Gn(r).mapper):t}}function Uo(t){var r=us(fs(t));return 8650752&r.flags?r:2097152&r.flags?e.find(r.types,(function(e){return!!(8650752&e.flags)})):void 0}function Vo(t){var r=Gn(t),n=r;if(!r.type){var i=t.valueDeclaration&&lD(t.valueDeclaration,!1);if(i){var a=uD(t,i);a&&(t=r=a)}n.type=r.type=function(t){var r=t.valueDeclaration;if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))return we;if(r&&(220===r.kind||e.isAccessExpression(r)&&220===r.parent.kind))return To(t);if(512&t.flags&&r&&e.isSourceFile(r)&&r.commonJsModuleIndicator){var n=Ui(t);if(n!==t){if(!Qa(t,0))return Me;var i=ea(t.exports.get("export=")),a=To(i,i===n?void 0:n);return eo()?a:Ho(t)}}var o=pa(16,t);if(32&t.flags){var s=Uo(t);return s?_d([o,s]):o}return H&&16777216&t.flags?Bf(o):o}(t)}return r.type}function qo(e){var t=Gn(e);return t.type||(t.type=xs(e))}function Wo(t){var r=Gn(t);if(!r.type){var n=Fi(t),i=t.declarations&&Ei(_i(t),!0),a=e.firstDefined(null==i?void 0:i.declarations,(function(t){return e.isExportAssignment(t)?Lo(t):void 0}));r.type=(null==i?void 0:i.declarations)&&gT(i.declarations)&&t.declarations.length?function(t){var r=e.getSourceFileOfNode(t.declarations[0]),n=e.unescapeLeadingUnderscores(t.escapedName),i=t.declarations.every((function(t){return e.isInJSFile(t)&&e.isAccessExpression(t)&&e.isModuleExportsAccessExpression(t.expression)})),a=i?e.factory.createPropertyAccessExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("module"),e.factory.createIdentifier("exports")),n):e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),n);return i&&e.setParent(a.expression.expression,a.expression),e.setParent(a.expression,a),e.setParent(a,r),a.flowNode=r.endFlowNode,$m(a,Ie,Ke)}(i):gT(t.declarations)?Ie:a||(111551&n.flags?Yo(n):Me)}return r.type}function Ho(t){var r=t.valueDeclaration;return e.getEffectiveTypeAnnotationNode(r)?(In(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ma(t)),Me):(Q&&(163!==r.kind||r.initializer)&&In(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,Ma(t)),we)}function Go(e){if(98304&e.flags){var t=function(e){var t=Gn(e);return t.writeType||(t.writeType=Ko(e,!0))}(e);if(t)return t}return Yo(e)}function Yo(t){var r=e.getCheckFlags(t);return 65536&r?function(t){var r=Gn(t);return r.type||(e.Debug.assertIsDefined(r.deferralParent),e.Debug.assertIsDefined(r.deferralConstituents),r.type=1048576&r.deferralParent.flags?id(r.deferralConstituents):_d(r.deferralConstituents)),r.type}(t):1&r?function(e){var t=Gn(e);if(!t.type){if(!Qa(e,0))return t.type=Me;var r=X_(Yo(t.target),t.mapper);eo()||(r=Ho(e)),t.type=r}return t.type}(t):262144&r?function(t){if(!t.type){var r=t.mappedType;if(!Qa(t,0))return r.containsError=!0,Me;var n=X_(gc(r.target||r),j_(r.mapper,_c(r),t.keyType)),i=H&&16777216&t.flags&&!lx(n,49152)?Bf(n,!0):524288&t.checkFlags?Wf(n):n;eo()||(In(d,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Ma(t),Ra(r)),i=Me),t.type=i}return t.type}(t):8192&r?function(e){var t=Gn(e);t.type||(t.type=Dg(e.propertyType,e.mappedType,e.constraintType));return t.type}(t):7&t.flags?Ro(t):9136&t.flags?Vo(t):8&t.flags?qo(t):98304&t.flags?Jo(t):2097152&t.flags?Wo(t):Me}function Xo(e){return Vf(Yo(e),!!(16777216&e.flags))}function Qo(t,r){return void 0!==t&&void 0!==r&&0!=(4&e.getObjectFlags(t))&&t.target===r}function $o(t){return 4&e.getObjectFlags(t)?t.target:t}function Zo(t,r){return function t(n){if(7&e.getObjectFlags(n)){var i=$o(n);return i===r||e.some(ds(i),t)}if(2097152&n.flags)return e.some(n.types,t);return!1}(t)}function es(t,r){for(var n=0,i=r;n0)return!0;if(8650752&e.flags){var t=Oc(e);return!!t&&is(t)}return!1}function os(t){return e.getEffectiveBaseTypeNode(t.symbol.valueDeclaration)}function ss(t,r,n){var i=e.length(r),a=e.isInJSFile(n);return e.filter(Zc(t,1),(function(t){return(a||i>=yu(t.typeParameters))&&i<=e.length(t.typeParameters)}))}function cs(t,r,n){var i=ss(t,r,n),a=e.map(r,C_);return e.sameMap(i,(function(t){return e.some(t.typeParameters)?Pu(t,a,e.isInJSFile(n)):t}))}function us(t){if(!t.resolvedBaseConstructorType){var r=t.symbol.valueDeclaration,n=e.getEffectiveBaseTypeNode(r),i=os(t);if(!i)return t.resolvedBaseConstructorType=Ke;if(!Qa(t,1))return Me;var a=Ux(i.expression);if(n&&i!==n&&(e.Debug.assert(!n.typeArguments),Ux(n.expression)),2621440&a.flags&&Sc(a),!eo())return In(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Ma(t.symbol)),t.resolvedBaseConstructorType=Me;if(!(1&a.flags||a===We||as(a))){var o=In(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,Ra(a));if(262144&a.flags){var s=qu(a),c=je;if(s){var u=Zc(s,1);u[0]&&(c=ku(u[0]))}a.symbol.declarations&&e.addRelatedInfo(o,e.createDiagnosticForNode(a.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Ma(a.symbol),Ra(c)))}return t.resolvedBaseConstructorType=Me}t.resolvedBaseConstructorType=a}return t.resolvedBaseConstructorType}function ls(t,r){In(t,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Ra(r,void 0,2))}function ds(t){if(!t.baseTypesResolved){if(Qa(t,7)&&(8&t.objectFlags?t.resolvedBaseTypes=[_s(t)]:96&t.symbol.flags?(32&t.symbol.flags&&function(t){t.resolvedBaseTypes=e.resolvingEmptyArray;var r=Kc(us(t));if(!(2621441&r.flags))return t.resolvedBaseTypes=e.emptyArray;var n,i=os(t),a=r.symbol?Ss(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=Zu(e);return t[r].symbol!==n[r].symbol}return!0}(a))n=tl(i,r.symbol);else if(1&r.flags)n=r;else{var o=cs(r,i.typeArguments,i);if(!o.length)return In(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),t.resolvedBaseTypes=e.emptyArray;n=ku(o[0])}if(io(n))return t.resolvedBaseTypes=e.emptyArray;var s=Wc(n);if(!ps(s)){var c=Xc(void 0,n),u=e.chainDiagnosticMessages(c,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Ra(s));return mn.add(e.createDiagnosticForNodeFromMessageChain(i.expression,u)),t.resolvedBaseTypes=e.emptyArray}if(t===s||Zo(s,t))return In(t.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Ra(t,void 0,2)),t.resolvedBaseTypes=e.emptyArray;t.resolvedBaseTypes===e.resolvingEmptyArray&&(t.members=void 0);t.resolvedBaseTypes=[s]}(t),64&t.symbol.flags&&function(t){if(t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray,t.symbol.declarations)for(var r=0,n=t.symbol.declarations;r0)return;for(var i=1;i1&&(n=void 0===n?i:-1);for(var a=0,o=t[i];a1){var l=s.thisParameter,d=e.forEach(c,(function(e){return e.thisParameter}));if(d)l=Gf(d,_d(e.mapDefined(c,(function(e){return e.thisParameter&&Yo(e.thisParameter)}))));(u=Hs(s,c)).thisParameter=l}(r||(r=[])).push(u)}}}}if(!e.length(r)&&-1!==n){for(var _=t[void 0!==n?n:0],p=_.slice(),f=function(t){if(t!==_){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&&!Zs(r.typeParameters,e.typeParameters)}))?void 0:e.map(p,(function(t){return function(t,r){var n,i=t.typeParameters||r.typeParameters;t.typeParameters&&r.typeParameters&&(n=P_(r.typeParameters,t.typeParameters));var a=t.declaration,o=function(e,t,r){for(var n=MD(e),i=MD(t),a=n>=i?e:t,o=a===e?t:e,s=a===e?n:i,c=RD(e)||RD(t),u=c&&!RD(a),l=new Array(s+(u?1:0)),d=0;d=LD(a)&&d>=LD(o),y=d>=n?void 0:AD(e,d),v=d>=i?void 0:AD(t,d),h=jn(1|(m&&!g?16777216:0),(y===v?y:y?v?void 0:y:v)||"arg".concat(d));h.type=g?Ll(f):f,l[d]=h}if(u){var D=jn(1,"args");D.type=Ll(wD(o,s)),o===t&&(D.type=X_(D.type,r)),l[s]=D}return l}(t,r,n),s=function(e,t,r){if(!e||!t)return e||t;var n=_d([Yo(e),X_(Yo(t),r)]);return Gf(e,n)}(t.thisParameter,r.thisParameter,n),c=Math.max(t.minArgumentCount,r.minArgumentCount),u=qs(a,i,s,o,void 0,void 0,c,39&(t.flags|r.flags));u.compositeKind=1048576,u.compositeSignatures=e.concatenate(2097152!==t.compositeKind&&t.compositeSignatures||[t],[r]),n&&(u.mapper=2097152!==t.compositeKind&&t.mapper&&t.compositeSignatures?R_(t.mapper,n):n);return u}(t,r)})),!p)return"break"}},g=0,m=t;g0})),n=e.map(t,is);if(r>0&&r===e.countWhere(n,(function(e){return e}))){var i=n.indexOf(!0);n[i]=!1}return n}function nc(t){for(var r,n,i,a=t.types,o=rc(a),s=e.countWhere(o,(function(e){return e})),c=function(c){var u=t.types[c];if(!o[c]){var l=Zc(u,1);l.length&&s>0&&(l=e.map(l,(function(e){var t=Ws(e);return t.resolvedReturnType=function(e,t,r,n){for(var i=[],a=0;a=p&&c<=f){var g=f?Iu(_,vu(s,_.typeParameters,p,o)):Ws(_);g.typeParameters=t.localTypeParameters,g.resolvedReturnType=t,g.flags=i?4|g.flags:-5&g.flags,u.push(g)}}return u}(d)),t.constructSignatures=i}}}function sc(e,t,r){return X_(e,P_([t.indexType,t.objectType],[v_(0),Ul([r])]))}function cc(t){if(4194304&t.flags){var r=Kc(t.type);return kf(r)?Gl(r):xd(r)}if(16777216&t.flags){if(t.root.isDistributive){var n=t.checkType,i=cc(n);if(i!==n)return Y_(t,B_(t.root.checkType,i,t.mapper))}return t}return 1048576&t.flags?Fm(t,cc):2097152&t.flags?_d(e.sameMap(t.types,cc)):t}function uc(t){return 4096&e.getCheckFlags(t)}function lc(e,t,r,n){for(var i=0,a=kc(e);i=7,yr||(yr=Sl("BigInt",0,r))||mt):528&n.flags?jt:12288&n.flags?kl(U>=2):67108864&n.flags?mt:4194304&n.flags?dt:2&n.flags&&!H?mt:n}function zc(e){return Wc(Kc(Wc(e)))}function Uc(t,r,n){for(var i,a,o,s,c,u=1048576&t.flags,l=u?0:16777216,d=4,_=u?0:8,p=!1,f=0,g=t.types;f2?(N.checkFlags|=65536,N.deferralParent=t,N.deferralConstituents=T):N.type=u?id(T):_d(T),N}}function Vc(t,r,n){var i,a,o=(null===(i=t.propertyCacheWithoutObjectFunctionPropertyAugment)||void 0===i?void 0:i.get(r))||!n?null===(a=t.propertyCache)||void 0===a?void 0:a.get(r):void 0;o||(o=Uc(t,r,n))&&(n?t.propertyCacheWithoutObjectFunctionPropertyAugment||(t.propertyCacheWithoutObjectFunctionPropertyAugment=e.createSymbolTable()):t.propertyCache||(t.propertyCache=e.createSymbolTable())).set(r,o);return o}function qc(t,r,n){var i=Vc(t,r,n);return!i||16&e.getCheckFlags(i)?void 0:i}function Wc(t){return 1048576&t.flags&&33554432&t.objectFlags?t.resolvedReducedType||(t.resolvedReducedType=function(t){var r=e.sameMap(t.types,Wc);if(r===t.types)return t;var n=id(r);1048576&n.flags&&(n.resolvedReducedType=n);return n}(t)):2097152&t.flags?(33554432&t.objectFlags||(t.objectFlags|=33554432|(e.some(Ec(t),Hc)?67108864:0)),67108864&t.objectFlags?nt:t):t}function Hc(e){return Gc(e)||Yc(e)}function Gc(t){return!(16777216&t.flags||192!=(131264&e.getCheckFlags(t))||!(131072&Yo(t).flags))}function Yc(t){return!t.valueDeclaration&&!!(1024&e.getCheckFlags(t))}function Xc(t,r){if(2097152&r.flags&&67108864&e.getObjectFlags(r)){var n=e.find(Ec(r),Gc);if(n)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Ra(r,void 0,536870912),Ma(n));var i=e.find(Ec(r),Yc);if(i)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Ra(r,void 0,536870912),Ma(i))}return t}function Qc(e,t,r){if(524288&(e=zc(e)).flags){var n=Sc(e),i=n.members.get(t);if(i&&ca(i))return i;if(r)return;var a=n===xt?wt:n.callSignatures.length?It:n.constructSignatures.length?Ot:void 0;if(a){var o=Cc(a,t);if(o)return o}return Cc(Pt,t)}if(3145728&e.flags)return qc(e,t,r)}function $c(t,r){if(3670016&t.flags){var n=Sc(t);return 0===r?n.callSignatures:n.constructSignatures}return e.emptyArray}function Zc(e,t){return $c(zc(e),t)}function eu(t,r){return e.find(t,(function(e){return e.keyType===r}))}function tu(t,r){for(var n,i,a,o=0,s=t;o=0),n>=LD(r,3)}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&(!t.type&&!t.dotDotDotToken&&t.parent.parameters.indexOf(t)>=i.arguments.length)}function gu(t){if(!e.isJSDocPropertyLikeTag(t))return!1;var r=t.isBracketed,n=t.typeExpression;return r||!!n&&314===n.type.kind}function mu(e,t,r,n){return{kind:e,parameterName:t,parameterIndex:r,type:n}}function yu(t){var r,n=0;if(t)for(var i=0;i=n&&o<=a){for(var s=t?t.slice():[],c=o;cu.arguments.length&&!f||_u(_)||(o=i.length)}if((171===t.kind||172===t.kind)&&Rs(t)&&(!c||!s)){var g=171===t.kind?172:171,m=e.getDeclarationOfKind(ta(t),g);m&&(s=(r=RC(m))&&r.symbol)}var y=170===t.kind?fs(ea(t.parent.symbol)):void 0,v=y?y.localTypeParameters:lu(t);(e.hasRestParameter(t)||e.isInJSFile(t)&&function(t,r){if(e.isJSDocSignature(t)||!xu(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=jn(3,"args",32768);o.type=a?Ll(C_(a.type)):zt,a&&r.pop();return r.push(o),!0}(t,i))&&(a|=1),(e.isConstructorTypeNode(t)&&e.hasSyntacticModifier(t,128)||e.isConstructorDeclaration(t)&&e.hasSyntacticModifier(t.parent,128))&&(a|=4),n.resolvedSignature=qs(t,v,s,i,void 0,void 0,o,a)}return n.resolvedSignature}function Du(t){if(e.isInJSFile(t)&&e.isFunctionLikeDeclaration(t)){var r=e.getJSDocTypeTag(t);return(null==r?void 0:r.typeExpression)&&kh(C_(r.typeExpression))}}function xu(t){var r=Yn(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 79:return r.escapedText===le.escapedName&&pC(r)===le;case 166:case 168:case 171:case 172:return 161===r.name.kind&&t(r.name);case 205:case 206:return t(r.expression);default:return!e.nodeStartsNewLexicalEnvironment(r)&&!e.isPartOfTypeNode(r)&&!!e.forEachChild(r,t)}}(t.body)),r.containsArgumentsReference}function bu(t){if(!t||!t.declarations)return e.emptyArray;for(var r=[],n=0;n0&&i.body){var a=t.declarations[n-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end)continue}r.push(hu(i))}}return r}function Su(e){var t=ji(e,e);if(t){var r=Ui(t);if(r)return Yo(r)}return we}function Tu(e){if(e.thisParameter)return Yo(e.thisParameter)}function Cu(t){if(!t.resolvedTypePredicate){if(t.target){var r=Cu(t.target);t.resolvedTypePredicate=r?(o=r,s=t.mapper,mu(o.kind,o.parameterName,o.parameterIndex,X_(o.type,s))):Cr}else if(t.compositeSignatures)t.resolvedTypePredicate=function(e,t){for(var r,n=[],i=0,a=e;i=0}function Nu(e){if(J(e)){var t=Yo(e.parameters[e.parameters.length-1]),r=Ef(t)?Ff(t):t;return r&&ou(r,Ge)}}function Pu(e,t,r,n){var i=wu(e,vu(t,e.typeParameters,yu(e.typeParameters),r));if(n){var a=Ah(ku(i));if(a){var o=Ws(a);o.typeParameters=n;var s=Ws(i);return s.resolvedReturnType=Ru(o),s}}return i}function wu(t,r){var n=t.instantiations||(t.instantiations=new e.Map),i=Hu(r),a=n.get(i);return a||n.set(i,a=Iu(t,r)),a}function Iu(e,t){return K_(e,function(e,t){return P_(e.typeParameters,t)}(e,t),!0)}function Ou(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return K_(e,L_(e.typeParameters),!0)}(e)):e}function Mu(t){return t.typeParameters?t.canonicalSignatureCache||(t.canonicalSignatureCache=function(t){return Pu(t,e.map(t.typeParameters,(function(e){return e.target&&!Fc(e.target)?e.target:e})),e.isInJSFile(t.declaration))}(t)):t}function Lu(t){var r=t.typeParameters;if(r){if(t.baseSignatureCache)return t.baseSignatureCache;for(var n=L_(r),i=P_(r,e.map(r,(function(e){return Fc(e)||je}))),a=e.map(r,(function(e){return X_(e,i)||je})),o=0;o1&&(t+=":"+a),n+=a}return t}function Gu(e,t){return e?"@".concat(M(e))+(t?":".concat(Hu(t)):""):""}function Yu(t,r){for(var n=0,i=0,a=t;ii.length)){var c=s&&e.isExpressionWithTypeArguments(t)&&!e.isJSDocAugmentsTag(t.parent);if(In(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,Ra(n,void 0,2),o,i.length),!s)return Me}return 177===t.kind&&Jl(t,e.length(t.typeArguments)!==i.length)?$u(n,t,void 0):Xu(n,e.concatenate(n.outerTypeParameters,vu(ml(t),i,o,s)))}return pl(t,r)?n:Me}function rl(t,r,n,i){var a=Ss(t);if(a===Be&&P.has(t.escapedName)&&r&&1===r.length)return Cd(t,r[0]);var o=Gn(t),s=o.typeParameters,c=Hu(r)+Gu(n,i),u=o.instantiations.get(c);return u||o.instantiations.set(c,u=Q_(a,P_(s,vu(r,s,yu(s),e.isInJSFile(t.valueDeclaration))),n,i)),u}function nl(t){var r,n=null===(r=t.declarations)||void 0===r?void 0:r.find(e.isTypeAlias);return!(!n||!e.getContainingFunction(n))}function il(e){return e.parent?"".concat(il(e.parent),".").concat(e.escapedName):e.escapedName}function al(e){var t=(160===e.kind?e.right:205===e.kind?e.name:e).escapedText;if(t){var r=160===e.kind?al(e.left):205===e.kind?al(e.expression):void 0,n=r?"".concat(il(r),".").concat(t):t,i=Ne.get(n);return i||(Ne.set(n,i=jn(524288,t,1048576)),i.parent=r,i.declaredType=Le),i}return Ae}function ol(t,r,n){var i=function(t){switch(t.kind){case 177:return t.typeName;case 227:var r=t.expression;if(e.isEntityNameExpression(r))return r}}(t);if(!i)return Ae;var a=Ri(i,r,n);return a&&a!==Ae?a:n?Ae:al(i)}function sl(t,r){if(r===Ae)return Me;if(r=function(t){var r=t.valueDeclaration;if(r&&e.isInJSFile(r)&&!(524288&t.flags)&&!e.getExpandoInitializer(r,!1)){var n=e.isVariableDeclaration(r)?e.getDeclaredExpandoInitializer(r):e.getAssignedExpandoInitializer(r);if(n){var i=ta(n);if(i)return uD(i,t)}}}(r)||r,96&r.flags)return tl(t,r);if(524288&r.flags)return function(t,r){if(1048576&e.getCheckFlags(r)){var n=ml(t),i=Gu(r,n),a=Pe.get(i);return a||((a=_a(1,"error")).aliasSymbol=r,a.aliasTypeArguments=n,Pe.set(i,a)),a}var o=Ss(r),s=Gn(r).typeParameters;if(s){var c=e.length(t.typeArguments),u=yu(s);if(cs.length)return In(t,u===s.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Ma(r),u,s.length),Me;var l=a_(t),d=!l||!nl(r)&&nl(l)?void 0:l;return rl(r,ml(t),d,o_(d))}return pl(t,r)?o:Me}(t,r);var n=Ts(r);if(n)return pl(t,r)?g_(n):Me;if(111551&r.flags&&_l(t)){var i=function(e,t){var r=Yn(e);if(!r.resolvedJSDocType){var n=Yo(t),i=n;if(t.valueDeclaration){var a=199===e.kind&&e.qualifier;n.symbol&&n.symbol!==t&&a&&(i=sl(e,n.symbol))}r.resolvedJSDocType=i}return r.resolvedJSDocType}(t,r);return i||(ol(t,788968),Yo(r))}return Me}function cl(e,t){if(3&t.flags||t===e)return e;var r="".concat(Ql(e),">").concat(Ql(t)),n=Te.get(r);if(n)return n;var i=la(33554432);return i.baseType=e,i.substitute=t,Te.set(r,i),i}function ul(e){return 183===e.kind&&1===e.elements.length}function ll(e,t,r){return ul(t)&&ul(r)?ll(e,t.elements[0],r.elements[0]):Hd(C_(t))===e?C_(r):void 0}function dl(t,r){for(var n,i=!0;r&&!e.isStatement(r)&&318!==r.kind;){var a=r.parent;if(163===a.kind&&(i=!i),(i||8650752&t.flags)&&188===a.kind&&r===a.trueType){var o=ll(t,a.checkType,a.extendsType);o&&(n=e.append(n,o))}r=a}return n?cl(t,_d(e.append(n,t))):t}function _l(e){return!!(4194304&e.flags)&&(177===e.kind||199===e.kind)}function pl(t,r){return!t.typeArguments||(In(t,e.Diagnostics.Type_0_is_not_generic,r?Ma(r):t.typeName?e.declarationNameToString(t.typeName):u),!1)}function fl(t){if(e.isIdentifier(t.typeName)){var r=t.typeArguments;switch(t.typeName.escapedText){case"String":return pl(t),He;case"Number":return pl(t),Ge;case"Boolean":return pl(t),et;case"Void":return pl(t),rt;case"Undefined":return pl(t),Ke;case"Null":return pl(t),qe;case"Function":case"function":return pl(t),wt;case"array":return r&&r.length||Q?void 0:zt;case"promise":return r&&r.length||Q?void 0:qD(we);case"Object":if(r&&2===r.length){if(e.isJSDocIndexSignature(t)){var n=C_(r[0]),i=C_(r[1]),a=n===He||n===Ge?[Ju(n,i,!1)]:e.emptyArray;return ha(void 0,k,e.emptyArray,e.emptyArray,a)}return we}return pl(t),Q?void 0:we}}}function gl(t){var r=Yn(t);if(!r.resolvedType){if(e.isConstTypeReference(t)&&e.isAssertionExpression(t.parent))return r.resolvedSymbol=Ae,r.resolvedType=Cx(t.parent.expression);var n=void 0,i=void 0,a=788968;_l(t)&&((i=fl(t))||((n=ol(t,a,!0))===Ae?n=ol(t,900095):ol(t,a),i=sl(t,n))),i||(i=sl(t,n=ol(t,a))),r.resolvedSymbol=n,r.resolvedType=i}return r.resolvedType}function ml(t){return e.map(t.typeArguments,C_)}function yl(t){var r=Yn(t);if(!r.resolvedType){var n=e.isThisIdentifier(t.exprName)?fy(t.exprName):Ux(t.exprName);r.resolvedType=g_(tg(n))}return r.resolvedType}function vl(t,r){function n(e){var t=e.declarations;if(t)for(var r=0,n=t;r=0)return fd(e.map(r,(function(e,r){return 8&t.elementFlags[r]?e:je})))?Fm(r[o],(function(n){return Wl(t,e.replaceElement(r,o,n))})):Me}for(var s=[],c=[],u=[],l=-1,_=-1,p=-1,f=function(o){var c=r[o],u=t.elementFlags[o];if(8&u)if(58982400&c.flags||bc(c))v(c,8,null===(n=t.labeledElementDeclarations)||void 0===n?void 0:n[o]);else if(Ef(c)){var l=Zu(c);if(l.length+s.length>=1e4)return In(d,e.isPartOfTypeNode(d)?e.Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent:e.Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent),{value:Me};e.forEach(l,(function(e,t){var r;return v(e,c.target.elementFlags[t],null===(r=c.target.labeledElementDeclarations)||void 0===r?void 0:r[t])}))}else v(df(c)&&ou(c,Ge)||Me,4,null===(i=t.labeledElementDeclarations)||void 0===i?void 0:i[o]);else v(c,u,null===(a=t.labeledElementDeclarations)||void 0===a?void 0:a[o])},g=0;g=0&&_i.fixedLength?function(e){var t=Ff(e);return t&&Ll(t)}(t)||Ul(e.emptyArray):Ul(Zu(t).slice(r,a),i.elementFlags.slice(r,a),!1,i.labeledElementDeclarations&&i.labeledElementDeclarations.slice(r,a))}function Gl(t){return id(e.append(e.arrayOf(t.target.fixedLength,(function(e){return y_(""+e)})),xd(t.target.readonly?Lt:Mt)))}function Yl(t,r){var n=e.findIndex(t.elementFlags,(function(e){return!(e&r)}));return n>=0?n:t.elementFlags.length}function Xl(t,r){return t.elementFlags.length-e.findLastIndex(t.elementFlags,(function(e){return!(e&r)}))-1}function Ql(e){return e.id}function $l(t,r){return e.binarySearch(t,r,Ql,e.compareValues)>=0}function Zl(t,r){var n=e.binarySearch(t,r,Ql,e.compareValues);return n<0&&(t.splice(~n,0,r),!0)}function ed(t,r,n){var i=n.flags;if(1048576&i)return td(t,r|(function(e){return!!(1048576&e.flags&&(e.aliasSymbol||e.origin))}(n)?1048576:0),n.types);if(!(131072&i))if(r|=205258751&i,465829888&i&&(r|=33554432),n===Oe&&(r|=8388608),!H&&98304&i)131072&e.getObjectFlags(n)||(r|=4194304);else{var a=t.length,o=a&&n.id>t[a-1].id?~a:e.binarySearch(t,n,Ql,e.compareValues);o<0&&t.splice(~o,0,n)}return r}function td(e,t,r){for(var n=0,i=r;n=0&&$l(o,Ke)&&e.orderedRemoveItemAt(o,c)}if((402664320&s||16384&s&&32768&s)&&function(t,r,n){for(var i=t.length;i>0;){var a=t[--i],o=a.flags;(402653312&o&&4&r||256&o&&8&r||2048&o&&64&r||8192&o&&4096&r||n&&32768&o&&16384&r||m_(a)&&$l(t,a.regularType))&&e.orderedRemoveItemAt(t,i)}}(o,s,!!(2&r)),128&s&&134217728&s&&function(t){var r=e.filter(t,wd);if(r.length)for(var n=t.length,i=function(){n--;var i=t[n];128&i.flags&&e.some(r,(function(e){return Ag(i,e)}))&&e.orderedRemoveItemAt(t,n)};n>0;)i()}(o),2===r&&(o=function(t,r){var n=Hu(t),i=Ce.get(n);if(i)return i;for(var a=r&&e.some(t,(function(e){return!!(524288&e.flags)&&!bc(e)&&kp(Sc(e))})),o=t.length,s=o,c=0;s>0;){var u=t[--s];if(a||469499904&u.flags)for(var l=61603840&u.flags?e.find(kc(u),(function(e){return vf(Yo(e))})):void 0,_=l&&g_(Yo(l)),p=0,f=t;p1e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","removeSubtypes_DepthLimit",{typeIds:t.map((function(e){return e.id}))}),void In(d,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(c++,l&&61603840&g.flags){var m=ro(g,l.escapedName);if(m&&vf(m)&&g_(m)!==_)continue}if(Ip(u,g,xn)&&(!(1&e.getObjectFlags($o(u)))||!(1&e.getObjectFlags($o(g)))||dp(u,g))){e.orderedRemoveItemAt(t,s);break}}}}return Ce.set(n,t),t}(o,!!(524288&s)),!o))return Me;if(0===o.length)return 65536&s?4194304&s?qe:We:32768&s?4194304&s?Ke:ze:nt}if(!a&&1048576&s){var u=[];rd(u,t);for(var l=[],_=function(t){e.some(u,(function(e){return $l(e.types,t)}))||l.push(t)},p=0,f=o;p0;){var i=t[--r];if(134217728&i.flags)for(var a=0,o=n;a0;){var i=t[--n];(4&i.flags&&128&r||8&i.flags&&256&r||64&i.flags&&2048&r||4096&i.flags&&8192&r)&&e.orderedRemoveItemAt(t,n)}}(o,a),16777216&a&&524288&a&&e.orderedRemoveItemAt(o,e.findIndex(o,Fp)),262144&a&&(o[o.indexOf(Ke)]=Ve),0===o.length)return je;if(1===o.length)return o[0];var s=Hu(o)+Gu(r,n),c=me.get(s);if(!c){if(1048576&a)if(function(t){var r,n=e.findIndex(t,(function(t){return!!(65536&e.getObjectFlags(t))}));if(n<0)return!1;for(var i=n+1;i=0;o--)if(1048576&e[o].flags){var s=e[o].types,c=s.length;i[o]=s[a%c],a=Math.floor(a/c)}var u=_d(i);131072&u.flags||r.push(u)}return r}(o),d=e.some(l,(function(e){return!!(2097152&e.flags)}))?nd(2097152,o):void 0;c=id(l,1,r,n,d)}else c=function(e,t,r){var n=la(2097152);return n.objectFlags=Yu(e,98304),n.types=e,n.aliasSymbol=t,n.aliasTypeArguments=r,n}(o,r,n);me.set(s,c)}return c}function pd(t){return e.reduceLeft(t,(function(e,t){return 1048576&t.flags?e*t.types.length:131072&t.flags?0:e}),1)}function fd(t){var r=pd(t);return!(r>=1e5)||(null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","checkCrossProductUnion_DepthLimit",{typeIds:t.map((function(e){return e.id})),size:r}),In(d,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1)}function gd(e,t){var r=la(4194304);return r.type=e,r.stringsOnly=t,r}function md(e,t){return t?e.resolvedStringIndexType||(e.resolvedStringIndexType=gd(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=gd(e,!1))}function yd(t){return e.isPrivateIdentifier(t)?nt:e.isIdentifier(t)?y_(e.unescapeLeadingUnderscores(t.escapedText)):g_(e.isComputedPropertyName(t)?ev(t):Ux(t))}function vd(t,r,n){if(n||!(24&e.getDeclarationModifierFlagsFromSymbol(t))){var i=Gn(zs(t)).nameType;if(!i){var a=e.getNameOfDeclaration(t.valueDeclaration);i="default"===t.escapedName?y_("default"):a&&yd(a)||(e.isKnownSymbol(t)?void 0:y_(e.symbolName(t)))}if(i&&i.flags&r)return i}return nt}function hd(t,r){return!!(t.flags&r||2097152&t.flags&&e.some(t.types,(function(e){return hd(e,r)})))}function Dd(t,r,n){var i=n&&(7&e.getObjectFlags(t)||t.aliasSymbol)?function(e){var t=da(4194304);return t.type=e,t}(t):void 0,a=e.map(kc(t),(function(e){return vd(e,r)})),o=e.map(iu(t),(function(e){return e!==Nr&&hd(e.keyType,r)?e.keyType===He&&8&r?ut:e.keyType:nt}));return id(e.concatenate(a,o),1,void 0,void 0,i)}function xd(t,r,n){return void 0===r&&(r=ee),1048576&(t=Wc(t)).flags?_d(e.map(t.types,(function(e){return xd(e,r,n)}))):2097152&t.flags?id(e.map(t.types,(function(e){return xd(e,r,n)}))):58982400&t.flags||kf(t)||bc(t)&&(a=_c(i=t),!function t(r){return!!(68157439&r.flags)||(16777216&r.flags?r.root.isDistributive&&r.checkType===a:137363456&r.flags?e.every(r.types,t):8388608&r.flags?t(r.objectType)&&t(r.indexType):33554432&r.flags?t(r.substitute):!!(268435456&r.flags)&&t(r.type))}(fc(i)||a))?md(t,r):32&e.getObjectFlags(t)?function(e,t,r){var n=_c(e),i=pc(e),a=fc(e.target||e);if(!a&&!r)return i;var o=[];if(yc(e)){if(Md(i))return md(e,t);lc(Kc(vc(e)),8576,t,c)}else Sm(cc(i),c);Md(i)&&Sm(i,c);var s=r?Em(id(o),(function(e){return!(5&e.flags)})):id(o);return 1048576&s.flags&&1048576&i.flags&&Hu(s.types)===Hu(i.types)?i:s;function c(t){var r=a?X_(a,j_(e.mapper,n,t)):t;o.push(r===He?ut:r)}}(t,r,n):t===Oe?Oe:2&t.flags?nt:131073&t.flags?dt:Dd(t,(n?128:402653316)|(r?0:12584),r===ee&&!n);var i,a}function bd(e){if(ee)return e;var t=(fr||(fr=xl("Extract",2,!0)||Ae),fr===Ae?void 0:fr);return t?rl(t,[e,He]):He}function Sd(t,r){var n=e.findIndex(r,(function(e){return!!(1179648&e.flags)}));if(n>=0)return fd(r)?Fm(r[n],(function(i){return Sd(t,e.replaceElement(r,n,i))})):Me;if(e.contains(r,Oe))return Oe;var i=[],a=[],o=t[0];if(!function e(t,r){for(var n=0;n=0){if(a&&Cm(r,(function(e){return!e.target.hasRestElement}))&&!(16&o)){var _=Nd(a);Ef(r)?In(_,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,Ra(r),el(r),e.unescapeLeadingUnderscores(u)):In(_,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(u),Ra(r))}return D(au(r,Ge)),Fm(r,(function(e){var t=Ff(e)||Ke;return 1&o?id([t,Ke]):t}))}}if(!(98304&n.flags)&&dx(n,402665900)){if(131073&r.flags)return r;var p=cu(r,n)||au(r,He);if(p)return 2&o&&p.keyType!==Ge?void(c&&In(c,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Ra(n),Ra(t))):a&&p.keyType===He&&!dx(n,12)?(In(_=Nd(a),e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Ra(n)),1&o?id([p.type,Ke]):p.type):(D(p),1&o?id([p.type,Ke]):p.type);if(131072&n.flags)return nt;if(Ed(r))return we;if(c&&!px(r)){if(Og(r)){if(Q&&384&n.flags)return mn.add(e.createDiagnosticForNode(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,Ra(r))),Ke;if(12&n.flags){var f=e.map(r.properties,(function(e){return Yo(e)}));return id(e.append(f,Ke))}}if(r.symbol===ce&&void 0!==u&&ce.exports.has(u)&&418&ce.exports.get(u).flags)In(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(u),Ra(r));else if(Q&&!z.suppressImplicitAnyIndexErrors&&!(128&o))if(void 0!==u&&th(u,r)){var g=Ra(r);In(c,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,u,g,g+"["+e.getTextOfNode(c.argumentExpression)+"]")}else if(ou(r,Ge))In(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=ah(u,r)))void 0!==m&&In(c.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,u,Ra(r),m);else{var y=function(t,r,n){function i(e){var r=Cc(t,e);if(r){var i=kh(Yo(r));return!!i&&LD(i)>=1&&lp(n,wD(i,0))}return!1}var a=e.isAssignmentTarget(r)?"set":"get";if(!i(a))return;var o=e.tryGetPropertyAccessOrIdentifierToString(r.expression);void 0===o?o=a:o+="."+a;return o}(r,c,n);if(void 0!==y)In(c,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Ra(r),y);else{var v=void 0;if(1024&n.flags)v=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+Ra(n)+"]",Ra(r));else if(8192&n.flags){var h=Li(n.symbol,c);v=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+h+"]",Ra(r))}else 128&n.flags||256&n.flags?v=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,Ra(r)):12&n.flags&&(v=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Ra(n),Ra(r)));v=e.chainDiagnosticMessages(v,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Ra(i),Ra(r)),mn.add(e.createDiagnosticForNodeFromMessageChain(c,v))}}}return}}if(Ed(r))return we;if(a){_=Nd(a);384&n.flags?In(_,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+n.value,Ra(r)):12&n.flags?In(_,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,Ra(r),Ra(n)):In(_,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Ra(n))}return no(n)?n:void 0;function D(t){t&&t.isReadonly&&c&&(e.isAssignmentTarget(c)||e.isDeleteTarget(c))&&In(c,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Ra(r))}}function Nd(e){return 206===e.kind?e.argumentExpression:193===e.kind?e.indexType:161===e.kind?e.expression:e}function Pd(e){return!!(77&e.flags)}function wd(t){return!!(134217728&t.flags)&&e.every(t.types,Pd)}function Id(e){return!!Ld(e)}function Od(e){return!!(8388608&Ld(e))}function Md(e){return!!(16777216&Ld(e))}function Ld(t){return 3145728&t.flags?(4194304&t.objectFlags||(t.objectFlags|=4194304|e.reduceLeft(t.types,(function(e,t){return e|Ld(t)}),0)),25165824&t.objectFlags):33554432&t.flags?(4194304&t.objectFlags||(t.objectFlags|=4194304|Ld(t.substitute)|Ld(t.baseType)),25165824&t.objectFlags):(58982400&t.flags||bc(t)||kf(t)?8388608:0)|(465829888&t.flags&&!wd(t)?16777216:0)}function Rd(e){return!!(262144&e.flags&&e.isThisType)}function Bd(t,r){return 8388608&t.flags?function(t,r){var n=r?"simplifiedForWriting":"simplifiedForReading";if(t[n])return t[n]===St?t:t[n];t[n]=St;var i=Bd(t.objectType,r),a=Bd(t.indexType,r),o=function(t,r,n){if(1048576&r.flags){var i=e.map(r.types,(function(e){return Bd(zd(t,e),n)}));return n?_d(i):id(i)}}(i,a,r);if(o)return t[n]=o;if(!(465829888&a.flags)){var s=jd(i,a,r);if(s)return t[n]=s}if(kf(i)&&296&a.flags){var c=Nf(i,8&a.flags?0:i.target.fixedLength,0,r);if(c)return t[n]=c}if(bc(i))return t[n]=Fm(Kd(i,t.indexType),(function(e){return Bd(e,r)}));return t[n]=t}(t,r):16777216&t.flags?function(e,t){var r=e.checkType,n=e.extendsType,i=$d(e),a=Zd(e);if(131072&a.flags&&Hd(i)===Hd(r)){if(1&r.flags||lp(Z_(r),Z_(n)))return Bd(i,t);if(Jd(r,n))return nt}else if(131072&i.flags&&Hd(a)===Hd(r)){if(!(1&r.flags)&&lp(Z_(r),Z_(n)))return nt;if(1&r.flags||Jd(r,n))return Bd(a,t)}return e}(t,r):t}function jd(t,r,n){if(3145728&t.flags){var i=e.map(t.types,(function(e){return Bd(zd(e,r),n)}));return 2097152&t.flags||n?_d(i):id(i)}}function Jd(e,t){return!!(131072&id([tc(e,t),nt]).flags)}function Kd(e,t){var r=P_([_c(e)],[t]),n=R_(e.mapper,r);return X_(gc(e),n)}function zd(e,t,r,n,i,a){return void 0===r&&(r=0),Vd(e,t,r,n,i,a)||(n?Me:je)}function Ud(e,t){return Cm(e,(function(e){if(384&e.flags){var r=Bs(e);if(Zy(r)){var n=+r;return n>=0&&n=5e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","instantiateType_DepthLimit",{typeId:t.id,instantiationDepth:C,instantiationCount:b}),In(d,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),Me;x++,b++,C++;var a=function(t,r,n,i){var a=t.flags;if(262144&a)return w_(t,r);if(524288&a){var o=t.objectFlags;if(52&o){if(4&o&&!t.node){var s=t.resolvedTypeArguments,c=A_(s,r);return c!==s?ql(t.target,c):t}return 1024&o?function(t,r){var n=X_(t.mappedType,r);if(!(32&e.getObjectFlags(n)))return t;var i=X_(t.constraintType,r);if(!(4194304&i.flags))return t;var a=vg(X_(t.source,r),n,i);if(a)return a;return t}(t,r):function(t,r,n,i){var a=4&t.objectFlags?t.node:t.symbol.declarations[0],o=Yn(a),s=4&t.objectFlags?o.resolvedType:64&t.objectFlags?t.target:t,c=o.outerTypeParameters;if(!c){var u=ts(a,!0);if(cD(a)){var l=lu(a);u=e.addRange(u,l)}c=u||e.emptyArray;var d=4&t.objectFlags?[a]:t.symbol.declarations;c=(4&s.objectFlags||8192&s.symbol.flags||2048&s.symbol.flags)&&!s.aliasTypeArguments?e.filter(c,(function(t){return e.some(d,(function(e){return U_(t,e)}))})):c,o.outerTypeParameters=c}if(c.length){var _=R_(t.mapper,r),p=e.map(c,(function(e){return w_(e,_)})),f=n||t.aliasSymbol,g=n?i:A_(t.aliasTypeArguments,r),m=Hu(p)+Gu(f,g);s.instantiations||(s.instantiations=new e.Map,s.instantiations.set(Hu(c)+Gu(s.aliasSymbol,s.aliasTypeArguments),s));var y=s.instantiations.get(m);if(!y){var v=P_(c,p);y=4&s.objectFlags?$u(t.target,t.node,v,f,g):32&s.objectFlags?q_(s,v,f,g):G_(s,v,f,g),s.instantiations.set(m,y)}return y}return t}(t,r,n,i)}return t}if(3145728&a){var u=1048576&t.flags?t.origin:void 0,l=u&&3145728&u.flags?u.types:t.types,d=A_(l,r);if(d===l&&n===t.aliasSymbol)return t;var _=n||t.aliasSymbol,p=n?i:A_(t.aliasTypeArguments,r);return 2097152&a||u&&2097152&u.flags?_d(d,_,p):id(d,1,_,p)}if(4194304&a)return xd(X_(t.type,r));if(134217728&a)return Sd(t.texts,A_(t.types,r));if(268435456&a)return Cd(t.symbol,X_(t.type,r));if(8388608&a){_=n||t.aliasSymbol,p=n?i:A_(t.aliasTypeArguments,r);return zd(X_(t.objectType,r),X_(t.indexType,r),t.accessFlags,void 0,_,p)}if(16777216&a)return Y_(t,R_(t.mapper,r),n,i);if(33554432&a){var f=X_(t.baseType,r);if(8650752&f.flags)return cl(f,X_(t.substitute,r));var g=X_(t.substitute,r);return 3&g.flags||lp(Z_(f),Z_(g))?f:g}return t}(t,r,n,i);return C--,a}function $_(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=X_(e,gt))}function Z_(e){return 262143&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=X_(e,ft),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function ep(e,t){return Ju(e.keyType,X_(e.type,t),e.isReadonly,e.declaration)}function tp(t){switch(e.Debug.assert(168!==t.kind||e.isObjectLiteralMethod(t)),t.kind){case 212:case 213:case 168:case 255:return rp(t);case 204:return e.some(t.properties,tp);case 203:return e.some(t.elements,tp);case 221:return tp(t.whenTrue)||tp(t.whenFalse);case 220:return(56===t.operatorToken.kind||60===t.operatorToken.kind)&&(tp(t.left)||tp(t.right));case 294:return tp(t.initializer);case 211:return tp(t.expression);case 285:return e.some(t.properties,tp)||e.isJsxOpeningElement(t.parent)&&e.some(t.parent.parent.children,tp);case 284:var r=t.initializer;return!!r&&tp(r);case 287:var n=t.expression;return!!n&&tp(n)}return!1}function rp(t){return(!e.isFunctionDeclaration(t)||e.isInJSFile(t)&&!!go(t))&&(e.hasContextSensitiveParameters(t)||function(t){return!t.typeParameters&&!e.getEffectiveReturnTypeNode(t)&&!!t.body&&234!==t.body.kind&&tp(t.body)}(t))}function np(t){return(e.isInJSFile(t)&&e.isFunctionDeclaration(t)||e.isFunctionExpressionOrArrowFunction(t)||e.isObjectLiteralMethod(t))&&rp(t)}function ip(t){if(524288&t.flags){var r=Sc(t);if(r.constructSignatures.length||r.callSignatures.length){var n=pa(16,t.symbol);return n.members=r.members,n.properties=r.properties,n.callSignatures=e.emptyArray,n.constructSignatures=e.emptyArray,n.indexInfos=e.emptyArray,n}}else if(2097152&t.flags)return _d(e.map(t.types,ip));return t}function ap(e,t){return Ip(e,t,Tn)}function op(e,t){return Ip(e,t,Tn)?-1:0}function sp(e,t){return Ip(e,t,bn)?-1:0}function cp(e,t){return Ip(e,t,Dn)?-1:0}function up(e,t){return Ip(e,t,Dn)}function lp(e,t){return Ip(e,t,bn)}function dp(t,r){return 1048576&t.flags?e.every(t.types,(function(e){return dp(e,r)})):1048576&r.flags?e.some(r.types,(function(e){return dp(t,e)})):58982400&t.flags?dp(Oc(t)||je,r):r===Pt?!!(67633152&t.flags):r===wt?!!(524288&t.flags)&&im(t):Zo(t,$o(r))||sf(r)&&!cf(r)&&dp(t,Lt)}function _p(e,t){return Ip(e,t,Sn)}function pp(e,t){return _p(e,t)||_p(t,e)}function fp(e,t,r,n,i,a){return Lp(e,t,bn,r,n,i,a)}function gp(e,t,r,n,i,a){return mp(e,t,bn,r,n,i,a,void 0)}function mp(e,t,r,n,i,a,o,s){return!!Ip(e,t,r)||(!n||!vp(i,e,t,r,a,o,s))&&Lp(e,t,r,n,a,o,s)}function yp(t){return!!(16777216&t.flags||2097152&t.flags&&e.some(t.types,yp))}function vp(t,r,i,o,s,c,u){if(!t||yp(i))return!1;if(!Lp(r,i,o,void 0)&&function(t,r,n,i,a,o,s){for(var c=Zc(r,0),u=Zc(r,1),l=0,d=[u,c];l1,v=Em(g,mf),h=Em(g,(function(e){return!mf(e)}));if(y){if(v!==nt){var D=Ul(uv(d,0)),x=function(t,r){var n,i,o,s,c;return a(this,(function(a){switch(a.label){case 0:if(!e.length(t.children))return[2];n=0,i=0,a.label=1;case 1:return iu:LD(t)>u))return 0;t.typeParameters&&t.typeParameters!==r.typeParameters&&(t=Nh(t,r=Mu(r),void 0,s));var l=MD(t),d=jD(t),_=jD(r);if((d||_)&&X_(d||_,c),d&&_&&l!==u)return 0;var p=r.declaration?r.declaration.kind:0,f=!(3&n)&&G&&168!==p&&167!==p&&170!==p,g=-1,m=Tu(t);if(m&&m!==rt){var y=Tu(r);if(y){if(!(S=!f&&s(m,y,!1)||s(y,m,i)))return i&&a(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;g&=S}}for(var v=d||_?Math.min(l,u):Math.max(l,u),h=d||_?v-1:-1,D=0;D=LD(t)&&D0||jT(u));if(g&&!function(e,t,r){for(var n=0,i=kc(e);n0&&J(ku(h[0]),d,1,!1)||D.length>0&&J(ku(D[0]),d,1,!1)?L(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,y,v):L(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,y,v)}return 0}K(u,d);var x=0,S=I();if((1048576&u.flags||1048576&d.flags)&&Pm(u)*Pm(d)<4?x=Y(u,d,o,8|c):(3145728&u.flags||3145728&d.flags)&&(x=G(u,d,o,8|c,n)),x||1048576&u.flags||!(469499904&u.flags||469499904&d.flags)||(x=G(u,d,o,c,n))&&w(S),!x&&2359296&u.flags){var C=function(t,r){for(var n,i=!1,a=0,o=t;a0;if(p&&b--,524288&n.flags&&524288&i.flags){var f=l;B(n,i,o),l!==f&&(p=!!l)}if(524288&n.flags&&131068&i.flags)!function(t,r){var n=Ja(t.symbol)?Ra(t,t.symbol.valueDeclaration):Ra(t),i=Ja(r.symbol)?Ra(r,r.symbol.valueDeclaration):Ra(r);(Rt===t&&He===r||Bt===t&&Ge===r||jt===t&&et===r||kl(!1)===t&&tt===r)&&L(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,i,n)}(n,i);else if(n.symbol&&524288&n.flags&&Pt===n)L(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(u&&2097152&i.flags){var g=i.types,y=_v(N.IntrinsicAttributes,a),v=_v(N.IntrinsicClassAttributes,a);if(!io(y)&&!io(v)&&(e.contains(g,y)||e.contains(g,v)))return c}else l=Xc(l,r);if(!s&&p)return m=[n,i],c;R(s,n,i)}}}function K(t,r){if(e.tracing&&3145728&t.flags&&3145728&r.flags){var n=t,i=r;if(n.objectFlags&i.objectFlags&65536)return;var o=n.types.length,s=i.types.length;o*s>1e6&&e.tracing.instant("checkTypes","traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:t.id,sourceSize:o,targetId:r.id,targetSize:s,pos:null==a?void 0:a.pos,end:null==a?void 0:a.end})}}function U(e,t){for(var r=-1,n=0,i=e.types;n=o.types.length&&a.length%o.types.length==0){var u=J(c,o.types[s%o.types.length],3,!1,void 0,n);if(u){i&=u;continue}}var l=J(c,t,1,r,void 0,n);if(!l)return 0;i&=l}return i}function G(t,r,n,a,o){if(x)return 0;var s=Xp(t,r,a|(T?16:0),i),c=i.get(s);if(void 0!==c&&(!(n&&2&c)||4&c)){if(Sr){var u=24&c;8&u&&X_(t,O_(X)),16&u&&X_(t,O_($))}return 1&c?-1:0}if(p){for(var l=s.split(",").map((function(t){return t.replace(/-\d+/g,(function(t,r){var n=e.length(s.slice(0,r).match(/[-=]/g)||void 0);return"=".concat(n)}))})).join(","),d=0;d25)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","typeRelatedToDiscriminatedType_DepthLimit",{sourceId:t.id,targetId:r.id,numCombinations:a}),0}for(var c=new Array(n.length),u=new e.Set,l=0;l5?L(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Ra(t),Ra(n),e.map(m.slice(0,4),(function(e){return Ma(e)})).join(", "),m.length-4):L(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Ra(t),Ra(n),e.map(m,(function(e){return Ma(e)})).join(", ")),s&&l&&b++)}function ne(t,r,n,a,o){if(i===Tn)return function(e,t,r){if(!(524288&e.flags&&524288&t.flags))return 0;var n=Z(Tc(e),r),i=Z(Tc(t),r);if(n.length!==i.length)return 0;for(var a=-1,o=0,s=n;o=u-y)?t.target.elementFlags[D]:4,b=r.target.elementFlags[h];if(8&b&&!(8&x))return n&&L(e.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target,h),0;if(8&x&&!(12&b))return n&&L(e.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,D,h),0;if(1&b&&!(1&x))return n&&L(e.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target,h),0;if(!(v&&((12&x||12&b)&&(v=!1),v&&(null==a?void 0:a.has(""+h))))){var S=Ef(t)?h=u-y?Vf(f[D],!!(x&b&2)):Nf(t,m,y)||nt:f[0],T=g[h];if(!(B=J(S,8&x&&4&b?Ll(T):Vf(T,!!(2&b)),3,n,void 0,o)))return n&&(u>1||c>1)&&(h=u-y||c-m-y==1?O(e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,D,h):O(e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,m,c-y-1,h)),0;s&=B}}return s}if(12&r.target.combinedFlags)return 0}var C=!(i!==Dn&&i!==xn||Og(t)||ff(t)||Ef(t)),E=bg(t,r,C,!1);if(E)return n&&te(t,r,E,C),0;if(Og(r))for(var k=0,A=Z(kc(t),a);k0||Zc(t,n=1).length>0)return e.find(r.types,(function(e){return Zc(e,n).length>0}))}(t,r)||function(t,r){for(var n,i=0,a=0,o=r.types;a=i&&(n=s,i=u)}else vf(c)&&1>=i&&(n=s,i=1)}return n}(t,r)}function Kp(t,r,n,i,a){for(var o=t.types.map((function(e){})),s=0,c=r;s0&&e.every(r.properties,(function(e){return!!(16777216&e.flags)}))}return!!(2097152&t.flags)&&e.every(t.types,zp)}function Up(t,r,n){var i=Xu(t,e.map(t.typeParameters,(function(e){return e===r?n:e})));return i.objectFlags|=4096,i}function Vp(e){var t=Gn(e);return qp(t.typeParameters,t,(function(r,n,i){var a=rl(e,A_(t.typeParameters,I_(n,i)));return a.aliasTypeArgumentsContainsMarker=!0,a}))}function qp(t,r,n){var i,a,o;void 0===t&&(t=e.emptyArray);var s=r.variances;if(!s){null===e.tracing||void 0===e.tracing||e.tracing.push("checkTypes","getVariancesWorker",{arity:t.length,id:null!==(o=null!==(i=r.id)&&void 0!==i?i:null===(a=r.declaredType)||void 0===a?void 0:a.id)&&void 0!==o?o:-1}),r.variances=e.emptyArray,s=[];for(var c=function(e){var t=!1,i=!1,a=Sr;Sr=function(e){return e?i=!0:t=!0};var o=n(r,e,Ct),c=n(r,e,Et),u=(lp(c,o)?1:0)|(lp(o,c)?2:0);3===u&&lp(n(r,e,Tr),o)&&(u=4),Sr=a,(t||i)&&(t&&(u|=8),i&&(u|=16)),s.push(u)},u=0,l=t;u":n+="-"+o.id}return n}function Xp(e,t,r,n){if(n===Tn&&e.id>t.id){var i=e;e=t,t=i}var a=r?":"+r:"";if(Gp(e)&&Gp(t)){var o=[];return Yp(e,o)+","+Yp(t,o)+a}return e.id+","+t.id+a}function Qp(t,r){if(!(6&e.getCheckFlags(t)))return r(t);for(var n=0,i=t.containingType.types;n=n)for(var i=tf(e),a=0,o=0;o=n)return!0;return!1}function tf(t){if(524288&t.flags&&!Mg(t)){if(e.getObjectFlags(t)&&t.node)return t.node;if(t.symbol&&!(16&e.getObjectFlags(t)&&32&t.symbol.flags))return t.symbol;if(Ef(t))return t.target}if(262144&t.flags)return t.symbol;if(8388608&t.flags){do{t=t.objectType}while(8388608&t.flags);return t}return 16777216&t.flags?t.root:t}function rf(e,t){return 0!==nf(e,t,op)}function nf(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(GS(t)!==GS(r))return 0}else if((16777216&t.flags)!=(16777216&r.flags))return 0;return ax(t)!==ax(r)?0:n(Yo(t),Yo(r))}function af(t,r,n,i,a,o){if(t===r)return-1;if(!function(e,t,r){var n=MD(e),i=MD(t),a=LD(e),o=LD(t),s=RD(e),c=RD(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=P_(t.typeParameters,r.typeParameters),c=0;ce.length(r.typeParameters)&&(a=Us(a,e.last(Zu(t)))),t.objectFlags|=67108864,t.cachedEquivalentBaseType=a}}}function pf(e){return H?e===ot:e===ze}function ff(e){var t=lf(e);return!!t&&pf(t)}function gf(e){return Ef(e)||!!Qc(e,"0")}function mf(e){return df(e)||gf(e)}function yf(e){return!(240512&e.flags)}function vf(e){return!!(109440&e.flags)}function hf(t){return 2097152&t.flags?e.some(t.types,vf):!!(109440&t.flags)}function Df(t){return!!(16&t.flags)||(1048576&t.flags?!!(1024&t.flags)||e.every(t.types,vf):vf(t))}function xf(e){return 1024&e.flags?hs(e):128&e.flags?He:256&e.flags?Ge:2048&e.flags?Ye:512&e.flags?et:1048576&e.flags?Fm(e,xf):e}function bf(e){return 1024&e.flags&&m_(e)?hs(e):128&e.flags&&m_(e)?He:256&e.flags&&m_(e)?Ge:2048&e.flags&&m_(e)?Ye:512&e.flags&&m_(e)?et:1048576&e.flags?Fm(e,bf):e}function Sf(e){return 8192&e.flags?tt:1048576&e.flags?Fm(e,Sf):e}function Tf(e,t){return Fx(e,t)||(e=Sf(bf(e))),e}function Cf(e,t,r,n){e&&vf(e)&&(e=Tf(e,t?PS(r,t,n):void 0));return e}function Ef(t){return!!(4&e.getObjectFlags(t)&&8&t.target.objectFlags)}function kf(e){return Ef(e)&&!!(8&e.target.combinedFlags)}function Af(e){return kf(e)&&1===e.target.elementFlags.length}function Ff(e){return Nf(e,e.target.fixedLength)}function Nf(e,t,r,n){void 0===r&&(r=0),void 0===n&&(n=!1);var i=el(e)-r;if(t-1&&(ei(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),c=e.declarationNameToString(o.name)+(o.dotDotDotToken?"[]":"");return void Mn(Q,t,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,s,c)}a=t.dotDotDotToken?Q?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:Q?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(a=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!Q)return;break;case 315:return void In(t,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);case 255:case 168:case 167:case 171:case 172:case 212:case 213:if(Q&&!t.name)return void In(t,3===n?e.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);a=Q?3===n?e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 194:return void(Q&&In(t,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:a=Q?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}Mn(Q,t,a,e.declarationNameToString(e.getNameOfDeclaration(t)),i)}}function ag(t,r,n){!(i&&Q&&131072&e.getObjectFlags(r))||n&&Hy(t)||ng(r)||ig(t,r,n)}function og(e,t,r){var n=MD(e),i=MD(t),a=BD(e),o=BD(t),s=o?i-1:i,c=a?s:Math.min(n,s),u=Tu(e);if(u){var l=Tu(t);l&&r(u,l)}for(var d=0;d0){for(var y=p,v=f;!((v=h(y).indexOf(m,v))>=0);){if(++y===e.length)return;v=0}D(y,v),f+=m.length}else if(f0)for(var b=0,S=r;be.target.minLength||!t.target.hasRestElement&&(e.target.hasRestElement||t.target.fixedLength1){var r=e.filter(t,Mg);if(r.length){var n=id(r,2);return e.concatenate(e.filter(t,(function(e){return!Mg(e)})),[n])}}return t}(t.candidates),i=function(e){var t=Fc(e);return!!t&&lx(16777216&t.flags?Pc(t):t,406978556)}(t.typeParameter),a=!i&&t.topLevel&&(t.isFixed||!yg(ku(r),t.typeParameter)),o=i?e.sameMap(n,g_):a?e.sameMap(n,bf):n,s=416&t.priority?id(o,2):function(t){if(!H)return of(t);var r=e.filter(t,(function(e){return!(98304&e.flags)}));return r.length?Rf(of(r),98304&wf(t)):id(t,2)}(o);return tg(s)}function Bg(t,r){var n,i,a=t.inferences[r];if(!a.inferredType){var o=void 0,s=t.signature;if(s){var c=a.candidates?Rg(a,s):void 0;if(a.contraCandidates)o=!c||131072&c.flags||!e.some(a.contraCandidates,(function(e){return up(c,e)}))?Lg(a):c;else if(c)o=c;else if(1&t.flags)o=it;else{var u=jc(a.typeParameter);u&&(o=X_(u,(n=function(t,r){return O_((function(n){return e.findIndex(t.inferences,(function(e){return e.typeParameter===n}))>=r?je:n}))}(t,r),i=t.nonFixingMapper,n?M_(4,n,i):i)))}}else o=Sg(a);a.inferredType=o||jg(!!(2&t.flags));var l=Fc(a.typeParameter);if(l){var d=X_(l,t.nonFixingMapper);o&&t.compareTypes(o,Us(d,o))||(a.inferredType=o=d)}}return a.inferredType}function jg(e){return e?we:je}function Jg(e){for(var t=[],r=0;r=10&&2*i>=t.length?n:void 0}(r,n);t.keyPropertyName=i?n:"",t.constituentMap=i}return t.keyPropertyName.length?t.keyPropertyName:void 0}}function $g(e,t){var r,n=null===(r=e.constituentMap)||void 0===r?void 0:r.get(Ql(g_(t)));return n!==je?n:void 0}function Zg(e,t){var r=Qg(e),n=r&&ro(t,r);return n&&$g(e,n)}function em(e,t){return qg(e,t)||Hg(e,t)}function tm(e,t){if(e.arguments)for(var r=0,n=e.arguments;r=0&&r.parameterIndex=n&&c-1){var l=a.filter((function(e){return void 0!==e})),d=c=2||0==(34&r.flags)||!r.valueDeclaration||e.isSourceFile(r.valueDeclaration)||291===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&&e.isPropertyDeclaration(t.parent)&&!e.hasStaticModifier(t.parent)&&t.parent.initializer===t}))}(t,n),a=uy(n);if(a){if(i){var o=!0;if(e.isForStatement(n))if((l=e.getAncestor(r.valueDeclaration,254))&&l.parent===n){var s=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(s){var c=Yn(s);c.flags|=131072;var u=c.capturedBlockScopeBindings||(c.capturedBlockScopeBindings=[]);e.pushIfUnique(u,r),s===n.initializer&&(o=!1)}}o&&(Yn(a).flags|=65536)}var l;if(e.isForStatement(n))(l=e.getAncestor(r.valueDeclaration,254))&&l.parent===n&&function(t,r){var n=t;for(;211===n.parent.kind;)n=n.parent;var i=!1;if(e.isAssignmentTarget(n))i=!0;else if(218===n.parent.kind||219===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)&&(Yn(r.valueDeclaration).flags|=4194304);Yn(r.valueDeclaration).flags|=524288}i&&(Yn(r.valueDeclaration).flags|=262144)}(t,n);var c=Yo(a),u=e.getAssignmentTargetKind(t);if(u){if(!(3&a.flags||e.isInJSFile(t)&&512&a.flags))return In(t,384&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_enum:32&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_class:1536&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace:16&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_function:2097152&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_import:e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,Ma(n)),Me;if(ax(a))return 3&a.flags?In(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,Ma(n)):In(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Ma(n)),Me}var l=2097152&a.flags;if(3&a.flags){if(1===u)return c}else{if(!l)return c;s=_i(n)}if(!s)return c;c=ay(c,t,r);for(var d=163===e.getRootDeclaration(s).kind,_=Zm(s),p=Zm(t),f=p!==_,g=t.parent&&t.parent.parent&&e.isSpreadAssignment(t.parent)&&_m(t.parent.parent),m=134217728&n.flags;p!==_&&(212===p.kind||213===p.kind||e.isObjectLiteralOrClassExpressionMethodOrAccessor(p))&&(ry(a)&&c!==Ut||d&&!ey(a));)p=Zm(p);var y=d||l||f||g||m||e.isBindingElement(s)||c!==Ie&&c!==Ut&&(!H||0!=(16387&c.flags)||Ug(t)||274===t.parent.kind)||229===t.parent.kind||253===s.kind&&s.exclamationToken||8388608&s.flags,v=y?d?function(e,t){if(Qa(t.symbol,2)){var r=H&&163===t.kind&&t.initializer&&32768&If(e)&&!(32768&If(Ux(t.initializer)));return eo(),r?om(e,524288):e}return Ho(t.symbol),e}(c,s):c:c===Ie||c===Ut?Ke:Bf(c),h=$m(t,c,v,p);if(zm(t)||c!==Ie&&c!==Ut){if(!y&&!(32768&If(c))&&32768&If(h))return In(t,e.Diagnostics.Variable_0_is_used_before_being_assigned,Ma(n)),c}else if(h===Ie||h===Ut)return Q&&(In(e.getNameOfDeclaration(s),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Ma(n),Ra(h)),In(t,e.Diagnostics.Variable_0_implicitly_has_an_1_type,Ma(n),Ra(h))),Yb(h);return u?xf(h):h}function uy(t){return e.findAncestor(t,(function(t){return!t||e.nodeStartsNewLexicalEnvironment(t)?"quit":e.isIterationStatement(t,!1)}))}function ly(e,t){(Yn(e).flags|=2,166===t.kind||170===t.kind)?Yn(t.parent).flags|=4:Yn(t).flags|=4}function dy(t){return e.isSuperCall(t)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,dy)}function _y(e){return us(Ss(ta(e)))===We}function py(t,r,n){var i=r.parent;e.getClassExtendsHeritageElement(i)&&!_y(i)&&t.flowNode&&!Xm(t.flowNode,!1)&&In(t,n)}function fy(t){var r=Ug(t),n=e.getThisContainer(t,!0),i=!1;switch(170===n.kind&&py(t,n,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),213===n.kind&&(n=e.getThisContainer(n,!1),i=!0),function(t,r){e.isPropertyDeclaration(r)&&e.hasStaticModifier(r)&&r.initializer&&e.textRangeContainsPositionInclusive(r.initializer,t.pos)&&e.length(r.parent.decorators)&&In(t,e.Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}(t,n),n.kind){case 260:In(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 259:In(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 170:my(t,n)&&In(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 161:In(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}!r&&i&&U<2&&ly(t,n);var a=gy(t,!0,n);if($){var o=Yo(ce);if(a===o&&i)In(t,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!a){var s=In(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(n)){var c=gy(n);c&&c!==o&&e.addRelatedInfo(s,e.createDiagnosticForNode(n,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return a||we}function gy(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)&&(!Sy(t)||e.getThisParameter(n))){var a=Tu(hu(n))||i&&function(t){var r=e.getJSDocType(t);if(r&&315===r.kind){var n=r;if(n.parameters.length>0&&n.parameters[0].name&&"this"===n.parameters[0].name.escapedText)return C_(n.parameters[0].type)}var i=e.getJSDocThisTag(t);if(i&&i.typeExpression)return C_(i.typeExpression)}(n);if(!a){var o=function(t){if(212===t.kind&&e.isBinaryExpression(t.parent)&&3===e.getAssignmentDeclarationKind(t.parent))return t.parent.left.expression.expression;if(168===t.kind&&204===t.parent.kind&&e.isBinaryExpression(t.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent))return t.parent.parent.left.expression;if(212===t.kind&&294===t.parent.kind&&204===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(212===t.kind&&e.isPropertyAssignment(t.parent)&&e.isIdentifier(t.parent.name)&&("value"===t.parent.name.escapedText||"get"===t.parent.name.escapedText||"set"===t.parent.name.escapedText)&&e.isObjectLiteralExpression(t.parent.parent)&&e.isCallExpression(t.parent.parent.parent)&&t.parent.parent.parent.arguments[2]===t.parent.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent.parent))return t.parent.parent.parent.arguments[0].expression;if(e.isMethodDeclaration(t)&&e.isIdentifier(t.name)&&("value"===t.name.escapedText||"get"===t.name.escapedText||"set"===t.name.escapedText)&&e.isObjectLiteralExpression(t.parent)&&e.isCallExpression(t.parent.parent)&&t.parent.parent.arguments[2]===t.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent))return t.parent.parent.arguments[0].expression}(n);if(i&&o){var s=Ux(o).symbol;s&&s.members&&16&s.flags&&(a=Ss(s).thisType)}else cD(n)&&(a=Ss(ea(n.symbol)).thisType);a||(a=Dy(n))}if(a)return $m(t,a)}if(e.isClassLike(n.parent)){var c=ta(n.parent);return $m(t,e.isStatic(n)?Yo(c):Ss(c).thisType)}if(e.isSourceFile(n)){if(n.commonJsModuleIndicator){var u=ta(n);return u&&Yo(u)}if(n.externalModuleIndicator)return Ke;if(r)return Yo(ce)}}function my(t,r){return!!e.findAncestor(t,(function(t){return e.isFunctionLikeDeclaration(t)?"quit":163===t.kind&&t.parent===r}))}function yy(t){var r=207===t.parent.kind&&t.parent.expression===t,n=e.getSuperContainer(t,!0),i=n,a=!1;if(!r)for(;i&&213===i.kind;)i=e.getSuperContainer(i,!0),a=U<2;var o=function(t){if(!t)return!1;if(r)return 170===t.kind;if(e.isClassLike(t.parent)||204===t.parent.kind)return e.isStatic(t)?168===t.kind||167===t.kind||171===t.kind||172===t.kind||166===t.kind||169===t.kind:168===t.kind||167===t.kind||171===t.kind||172===t.kind||166===t.kind||165===t.kind||170===t.kind;return!1}(i),s=0;if(!o){var c=e.findAncestor(t,(function(e){return e===i?"quit":161===e.kind}));return c&&161===c.kind?In(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):r?In(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):i&&i.parent&&(e.isClassLike(i.parent)||204===i.parent.kind)?In(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):In(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Me}if(r||170!==n.kind||py(t,i,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),e.isStatic(i)||r?(s=512,!r&&U>=2&&U<=8&&(e.isPropertyDeclaration(i)||e.isClassStaticBlockDeclaration(i))&&e.forEachEnclosingBlockScopeContainer(t.parent,(function(t){e.isSourceFile(t)&&!e.isExternalOrCommonJsModule(t)||(Yn(t).flags|=134217728)}))):s=256,Yn(t).flags|=s,168===i.kind&&e.hasSyntacticModifier(i,256)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?Yn(i).flags|=4096:Yn(i).flags|=2048),a&&ly(t.parent,i),204===i.parent.kind)return U<2?(In(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Me):we;var u=i.parent;if(!e.getClassExtendsHeritageElement(u))return In(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Me;var l=Ss(ta(u)),d=l&&ds(l)[0];return d?170===i.kind&&my(t,i)?(In(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Me):512===s?us(l):Us(d,l.thisType):Me}function vy(t){return 4&e.getObjectFlags(t)&&t.target===Kt?Zu(t)[0]:void 0}function hy(t){return Fm(t,(function(t){return 2097152&t.flags?e.forEach(t.types,vy):vy(t)}))}function Dy(t){if(213!==t.kind){if(np(t)){var r=Gy(t);if(r){var n=r.thisParameter;if(n)return Yo(n)}}var i=e.isInJSFile(t);if($||i){var a=function(e){return 168!==e.kind&&171!==e.kind&&172!==e.kind||204!==e.parent.kind?212===e.kind&&294===e.parent.kind?e.parent.parent:void 0:e.parent}(t);if(a){for(var o=By(a),s=a,c=o;c;){var u=hy(c);if(u)return X_(u,fg(zy(a)));if(294!==s.parent.kind)break;c=By(s=s.parent.parent)}return tg(o?jf(o):Cx(a))}var l=e.walkUpParenthesizedExpressions(t.parent);if(220===l.kind&&63===l.operatorToken.kind){var d=l.left;if(e.isAccessExpression(d)){var _=d.expression;if(i&&e.isIdentifier(_)){var p=e.getSourceFileOfNode(l);if(p.commonJsModuleIndicator&&zg(_)===p.symbol)return}return tg(Cx(_))}}}}}function xy(t){var r=t.parent;if(np(r)){var n=e.getImmediatelyInvokedFunctionExpression(r);if(n&&n.arguments){var i=Jh(n),a=r.parameters.indexOf(t);if(t.dotDotDotToken)return Oh(i,a,i.length,we,void 0,0);var o=Yn(n),s=o.resolvedSignature;o.resolvedSignature=Er;var c=a=i?zd(Yo(n.parameters[i]),v_(r-i),256):wD(n,r)}function Ay(t,r){var n=t.parent,i=n.left,a=n.operatorToken,o=n.right;switch(a.kind){case 63:case 76:case 75:case 77:return t===o?function(t){var r,n,i=e.getAssignmentDeclarationKind(t);switch(i){case 0:case 4:var a=function(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t))return zg(t);if(e.isPropertyAccessExpression(t)){var r=Jx(t.expression);return e.isPrivateIdentifier(t.name)?n(r,t.name):Qc(r,t.name.escapedText)}return;function n(e,t){var r=Vv(t.escapedText,t);return r&&Hv(e,r)}}(t.left),o=a&&a.valueDeclaration;return o&&(e.isPropertyDeclaration(o)||e.isPropertySignature(o))?(c=e.getEffectiveTypeAnnotationNode(o))&&X_(C_(c),Gn(a).mapper)||o.initializer&&Jx(t.left):0===i?Jx(t.left):Ny(t);case 5:if(Fy(t,i))return Ny(t);if(t.left.symbol){var s=t.left.symbol.valueDeclaration;if(!s)return;var c,u=e.cast(t.left,e.isAccessExpression);if(c=e.getEffectiveTypeAnnotationNode(s))return C_(c);if(e.isIdentifier(u.expression)){var l=u.expression,d=ei(l,l.escapedText,111551,void 0,l.escapedText,!0);if(d){var _=d.valueDeclaration&&e.getEffectiveTypeAnnotationNode(d.valueDeclaration);if(_){var p=e.getElementOrPropertyAccessName(u);if(void 0!==p)return Py(C_(_),p)}return}}return e.isInJSFile(s)?void 0:Jx(t.left)}return Jx(t.left);case 1:case 6:case 3:var f=null===(r=t.left.symbol)||void 0===r?void 0:r.valueDeclaration;case 2:f||(f=null===(n=t.symbol)||void 0===n?void 0:n.valueDeclaration);var g=f&&e.getEffectiveTypeAnnotationNode(f);return g?C_(g):void 0;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(i)}}(n):void 0;case 56:case 60:var s=Ky(n,r);return t===o&&(s&&s.pattern||!s&&!e.isDefaultedExpandoInitializer(n))?Jx(i):s;case 55:case 27:return t===o?Ky(n,r):void 0;default:return}}function Fy(t,r){if(void 0===r&&(r=e.getAssignmentDeclarationKind(t)),4===r)return!0;if(!e.isInJSFile(t)||5!==r||!e.isIdentifier(t.left.expression))return!1;var n=t.left.expression.escapedText,i=ei(t.left,n,111551,void 0,void 0,!0,!0);return e.isThisInitializedDeclaration(null==i?void 0:i.valueDeclaration)}function Ny(t){if(!t.symbol)return Jx(t.left);if(t.symbol.valueDeclaration){var r=e.getEffectiveTypeAnnotationNode(t.symbol.valueDeclaration);if(r){var n=C_(r);if(n)return n}}var i=e.cast(t.left,e.isAccessExpression);if(e.isObjectLiteralMethod(e.getThisContainer(i.expression,!1))){var a=fy(i.expression),o=e.getElementOrPropertyAccessName(i);return void 0!==o&&Py(a,o)||void 0}}function Py(t,r){return Fm(t,(function(t){var n,i;if(bc(t)){var a=pc(t),o=Oc(a)||a,s=y_(e.unescapeLeadingUnderscores(r));if(lp(s,o))return Kd(t,s)}else if(3670016&t.flags){var c=Qc(t,r);if(c)return i=c,262144&e.getCheckFlags(i)&&!i.type&&$a(i,0)>=0?void 0:Yo(c);if(Ef(t)){var u=Ff(t);if(u&&Zy(r)&&+r>=0)return u}return null===(n=tu(nu(t),y_(e.unescapeLeadingUnderscores(r))))||void 0===n?void 0:n.type}}),!0)}function wy(t,r){var n=t.parent,i=e.isPropertyAssignment(t)&&by(t);if(i)return i;var a=By(n,r);if(a){if(Rs(t))return Py(a,ta(t).escapedName);if(t.name){var o=yd(t.name);return Fm(a,(function(e){var t;return null===(t=tu(nu(e),o))||void 0===t?void 0:t.type}),!0)}}}function Iy(e,t){return e&&(Py(e,""+t)||Fm(e,(function(e){return uS(1,e,Ke,void 0,!1)}),!0))}function Oy(t){var r=t.parent;return e.isJsxAttributeLike(r)?Ky(t):e.isJsxElement(r)?function(t,r){var n=By(t.openingElement.tagName),i=yv(gv(t));if(n&&!no(n)&&i&&""!==i){var a=e.getSemanticJsxChildren(t.children),o=a.indexOf(r),s=Py(n,i);return s&&(1===a.length?s:Fm(s,(function(e){return df(e)?zd(e,v_(o)):e}),!0))}}(r,t):void 0}function My(t){if(e.isJsxAttribute(t)){var r=By(t.parent);if(!r||no(r))return;return Py(r,t.name.escapedText)}return Ky(t.parent)}function Ly(e){switch(e.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 Ly(e.expression);case 287:return!e.expression||Ly(e.expression)}return!1}function Ry(t,r){return function(t,r){var n=Qg(t),i=n&&e.find(r.properties,(function(e){return e.symbol&&294===e.kind&&e.symbol.escapedName===n&&Ly(e.initializer)})),a=i&&zx(i.initializer);return a&&$g(t,a)}(r,t)||Kp(r,e.concatenate(e.map(e.filter(t.properties,(function(e){return!!e.symbol&&294===e.kind&&Ly(e.initializer)&&Yg(r,e.symbol.escapedName)})),(function(e){return[function(){return zx(e.initializer)},e.symbol.escapedName]})),e.map(e.filter(kc(r),(function(e){var n;return!!(16777216&e.flags)&&!!(null===(n=null==t?void 0:t.symbol)||void 0===n?void 0:n.members)&&!t.symbol.members.has(e.escapedName)&&Yg(r,e.escapedName)})),(function(e){return[function(){return Ke},e.escapedName]}))),lp,r)}function By(t,r){var n=jy(e.isObjectLiteralMethod(t)?function(t,r){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!(16777216&t.flags))return wy(t,r)}(t,r):Ky(t,r),t,r);if(n&&!(r&&2&r&&8650752&n.flags)){var i=Fm(n,Kc,!0);return 1048576&i.flags&&e.isObjectLiteralExpression(t)?Ry(t,i):1048576&i.flags&&e.isJsxAttributes(t)?function(t,r){return Kp(r,e.concatenate(e.map(e.filter(t.properties,(function(e){return!!e.symbol&&284===e.kind&&Yg(r,e.symbol.escapedName)&&(!e.initializer||Ly(e.initializer))})),(function(e){return[e.initializer?function(){return zx(e.initializer)}:function(){return $e},e.symbol.escapedName]})),e.map(e.filter(kc(r),(function(e){var n;return!!(16777216&e.flags)&&!!(null===(n=null==t?void 0:t.symbol)||void 0===n?void 0:n.members)&&!t.symbol.members.has(e.escapedName)&&Yg(r,e.escapedName)})),(function(e){return[function(){return Ke},e.escapedName]}))),lp,r)}(t,i):i}}function jy(t,r,n){if(t&&lx(t,465829888)){var i=zy(r);if(i&&e.some(i.inferences,Lx)){if(n&&1&n)return Jy(t,i.nonFixingMapper);if(i.returnMapper)return Jy(t,i.returnMapper)}}return t}function Jy(t,r){return 465829888&t.flags?X_(t,r):1048576&t.flags?id(e.map(t.types,(function(e){return Jy(e,r)})),0):2097152&t.flags?_d(e.map(t.types,(function(e){return Jy(e,r)}))):t}function Ky(t,r){if(16777216&t.flags);else{if(t.contextualType)return t.contextualType;var n=t.parent;switch(n.kind){case 253:case 163:case 166:case 165:case 202:return function(t,r){var n=t.parent;if(e.hasInitializer(n)&&t===n.initializer){var i=by(n);if(i)return i;if(!(8&r)&&e.isBindingPattern(n.name))return Po(n.name,!0,!1)}}(t,r);case 213:case 246:return function(t){var r=e.getContainingFunction(t);if(r){var n=Cy(r);if(n){var i=e.getFunctionFlags(r);if(1&i){var a=gS(n,2&i?2:1,void 0);if(!a)return;n=a.returnType}if(2&i){var o=Fm(n,vb);return o&&id([o,WD(o)])}return n}}}(t);case 223:return function(t){var r=e.getContainingFunction(t);if(r){var n=e.getFunctionFlags(r),i=Cy(r);if(i)return t.asteriskToken?i:PS(0,i,0!=(2&n))}}(n);case 217:return function(e,t){var r=Ky(e,t);if(r){var n=vb(r);return n&&id([n,WD(n)])}}(n,r);case 207:case 208:return Ey(n,t);case 210:case 228:return e.isConstTypeReference(n.type)?o(n):C_(n.type);case 220:return Ay(t,r);case 294:case 295:return wy(n,r);case 296:return Ky(n.parent,r);case 203:var i=n;return Iy(By(i,r),e.indexOfNode(i.elements,t));case 221:return function(e,t){var r=e.parent;return e===r.whenTrue||e===r.whenFalse?Ky(r,t):void 0}(t,r);case 232:return e.Debug.assert(222===n.parent.kind),function(e,t){if(209===e.parent.kind)return Ey(e.parent,t)}(n.parent,t);case 211:var a=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0;return a?e.isJSDocTypeTag(a)&&e.isConstTypeReference(a.typeExpression.type)?o(n):C_(a.typeExpression.type):Ky(n,r);case 229:return Ky(n,r);case 287:return Oy(n);case 284:case 286:return My(n);case 279:case 278:return function(t,r){if(e.isJsxOpeningElement(t)&&t.parent.contextualType&&4!==r)return t.parent.contextualType;return ky(t,0)}(n,r)}}function o(e){return Ky(e)}}function zy(t){var r=e.findAncestor(t,(function(e){return!!e.inferenceContext}));return r&&r.inferenceContext}function Uy(t,r){return 0!==Lh(r)?function(e,t){var r=KD(e,je);r=Vy(t,gv(t),r);var n=_v(N.IntrinsicAttributes,t);io(n)||(r=tc(n,r));return r}(t,r):function(t,r){var n=gv(r),i=(o=n,mv(N.ElementAttributesPropertyNameContainer,o)),a=void 0===i?KD(t,je):""===i?ku(t):function(e,t){if(e.compositeSignatures){for(var r=[],n=0,i=e.compositeSignatures;n=2)return rl(a,vu([s,n],c,2,e.isInJSFile(t)))}if(e.length(o.typeParameters)>=2)return Xu(o,vu([s,n],o.typeParameters,2,e.isInJSFile(t)))}return n}function qy(t){return e.getStrictOptionValue(z,"noImplicitAny")?e.reduceLeft(t,(function(t,r){return t!==r&&t?Zs(t.typeParameters,r.typeParameters)?function(t,r){var n,i=t.typeParameters||r.typeParameters;t.typeParameters&&r.typeParameters&&(n=P_(r.typeParameters,t.typeParameters));var a=t.declaration,o=function(e,t,r){for(var n=MD(e),i=MD(t),a=n>=i?e:t,o=a===e?t:e,s=a===e?n:i,c=RD(e)||RD(t),u=c&&!RD(a),l=new Array(s+(u?1:0)),d=0;d=LD(a)&&d>=LD(o),y=d>=n?void 0:AD(e,d),v=d>=i?void 0:AD(t,d),h=jn(1|(m&&!g?16777216:0),(y===v?y:y?v?void 0:y:v)||"arg".concat(d));h.type=g?Ll(f):f,l[d]=h}if(u){var D=jn(1,"args");D.type=Ll(wD(o,s)),o===t&&(D.type=X_(D.type,r)),l[s]=D}return l}(t,r,n),s=function(e,t,r){if(!e||!t)return e||t;var n=id([Yo(e),X_(Yo(t),r)]);return Gf(e,n)}(t.thisParameter,r.thisParameter,n),c=Math.max(t.minArgumentCount,r.minArgumentCount),u=qs(a,i,s,o,void 0,void 0,c,39&(t.flags|r.flags));u.compositeKind=2097152,u.compositeSignatures=e.concatenate(2097152===t.compositeKind&&t.compositeSignatures||[t],[r]),n&&(u.mapper=2097152===t.compositeKind&&t.mapper&&t.compositeSignatures?R_(t.mapper,n):n);return u}(t,r):void 0:t})):void 0}function Wy(t,r){var n=Zc(t,0),i=e.filter(n,(function(t){return!function(t,r){for(var n=0;n0&&(s=l_(s,R(),t.symbol,g,l),o=[],a=e.createSymbolTable(),y=!1,v=!1,h=!1),av(F=Wc(Ux(E.expression)))){var O=u_(F,l);if(i&&lv(O,i,E),S=o.length,io(s))continue;s=l_(s,O,t.symbol,g,l)}else In(E,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),s=Me;continue}e.Debug.assert(171===E.kind||172===E.kind),vT(E)}!A||8576&A.flags?a.set(k.escapedName,k):lp(A,lt)&&(lp(A,Ge)?v=!0:lp(A,tt)?h=!0:y=!0,n&&(m=!0)),o.push(k)}if(u&&296!==t.parent.kind)for(var M=0,L=kc(c);M0&&(s=l_(s,R(),t.symbol,g,l),o=[],a=e.createSymbolTable(),y=!1,v=!1),Fm(s,(function(e){return e===mt?R():e}))):R();function R(){var r=[];y&&r.push(rv(t,S,o,He)),v&&r.push(rv(t,S,o,Ge)),h&&r.push(rv(t,S,o,tt));var i=ha(t.symbol,a,e.emptyArray,e.emptyArray,r);return i.objectFlags|=262272|g,f&&(i.objectFlags|=8192),m&&(i.objectFlags|=512),n&&(i.pattern=t),i}}function av(t){if(465829888&t.flags){var r=Oc(t);if(void 0!==r)return av(r)}return!!(126615553&t.flags||117632&If(t)&&av(Of(t))||3145728&t.flags&&e.every(t.types,av))}function ov(t){return e.stringContains(t,"-")}function sv(t){return 79===t.kind&&e.isIntrinsicJsxName(t.escapedText)}function cv(e,t){return e.initializer?Px(e.initializer,t):$e}function uv(e,t){for(var r=[],n=0,i=e.children;n0&&(s=l_(s,T(),i.symbol,l,!1),o=e.createSymbolTable()),no(m=Wc(Cx(f.expression,r)))&&(c=!0),av(m)?(s=l_(s,m,i.symbol,l,!1),a&&lv(m,a,f)):n=n?_d([n,m]):m}c||o.size>0&&(s=l_(s,T(),i.symbol,l,!1));var v=277===t.parent.kind?t.parent:void 0;if(v&&v.openingElement===t&&v.children.length>0){var h=uv(v,r);if(!c&&d&&""!==d){u&&In(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(d));var D=By(t.attributes),x=D&&Py(D,d),b=jn(4,d);b.type=1===h.length?h[0]:x&&Tm(x,gf)?Ul(h):Ll(id(h)),b.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores(d),void 0,void 0),e.setParent(b.valueDeclaration,i),b.valueDeclaration.symbol=b;var S=e.createSymbolTable();S.set(d,b),s=l_(s,ha(i.symbol,S,e.emptyArray,e.emptyArray,e.emptyArray),i.symbol,l,!1)}}return c?we:n&&s!==yt?_d([n,s]):n||(s===yt?T():s);function T(){l|=te;var t=ha(i.symbol,o,e.emptyArray,e.emptyArray,e.emptyArray);return t.objectFlags|=262272|l,t}}(t.parent,r)}function _v(e,t){var r=gv(t),n=r&&Xi(r),i=n&&Qn(n,e,788968);return i?Ss(i):Me}function pv(t){var r=Yn(t);if(!r.resolvedSymbol){var n=_v(N.IntrinsicElements,t);if(io(n))return Q&&In(t,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(N.IntrinsicElements)),r.resolvedSymbol=Ae;if(!e.isIdentifier(t.tagName))return e.Debug.fail();var i=Qc(n,t.tagName.escapedText);return i?(r.jsxFlags|=1,r.resolvedSymbol=i):ou(n,He)?(r.jsxFlags|=2,r.resolvedSymbol=n.symbol):(In(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(t.tagName),"JSX."+N.IntrinsicElements),r.resolvedSymbol=Ae)}return r.resolvedSymbol}function fv(t){var r=t&&e.getSourceFileOfNode(t),n=r&&Yn(r);if(!n||!1!==n.jsxImplicitImportContainer){if(n&&n.jsxImplicitImportContainer)return n.jsxImplicitImportContainer;var i=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(z,r),z);if(i){var a=Ki(t,i,e.getEmitModuleResolutionKind(z)===e.ModuleResolutionKind.Classic?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations,t),o=a&&a!==Ae?ea(Ai(a)):void 0;return n&&(n.jsxImplicitImportContainer=o||!1),o}}}function gv(e){var t=e&&Yn(e);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||!1!==t.jsxNamespace){var r=fv(e);if(!r||r===Ae){var n=An(e);r=ei(e,n,1920,void 0,n,!1)}if(r){var i=Ai(Qn(Xi(Ai(r)),N.JSX,1920));if(i&&i!==Ae)return t&&(t.jsxNamespace=i),i}t&&(t.jsxNamespace=!1)}var a=Ai(bl(N.JSX,1920,void 0));return a!==Ae?a:void 0}function mv(t,r){var n=r&&Qn(r.exports,t,788968),i=n&&Ss(n),a=i&&kc(i);if(a){if(0===a.length)return"";if(1===a.length)return a[0].escapedName;a.length>1&&n.declarations&&In(n.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}function yv(e){return mv(N.ElementChildrenAttributeNameContainer,e)}function vv(t,r){if(4&t.flags)return[Er];if(128&t.flags){var n=hv(t,r);return n?[iD(r,n)]:(In(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,t.value,"JSX."+N.IntrinsicElements),e.emptyArray)}var i=Kc(t),a=Zc(i,1);return 0===a.length&&(a=Zc(i,0)),0===a.length&&1048576&i.flags&&(a=$s(e.map(i.types,(function(e){return vv(e,r)})))),a}function hv(t,r){var n=_v(N.IntrinsicElements,r);if(!io(n)){var i=t.value,a=Qc(n,e.escapeLeadingUnderscores(i));if(a)return Yo(a);var o=ou(n,He);return o||void 0}return we}function Dv(t){e.Debug.assert(sv(t.tagName));var r=Yn(t);if(!r.resolvedJsxElementAttributesType){var n=pv(t);return 1&r.jsxFlags?r.resolvedJsxElementAttributesType=Yo(n)||Me:2&r.jsxFlags?r.resolvedJsxElementAttributesType=ou(_v(N.IntrinsicElements,t),He)||Me:r.resolvedJsxElementAttributesType=Me}return r.resolvedJsxElementAttributesType}function xv(e){var t=_v(N.ElementClass,e);if(!io(t))return t}function bv(e){return _v(N.Element,e)}function Sv(e){var t=bv(e);if(t)return id([t,qe])}function Tv(t){var r,n=e.isJsxOpeningLikeElement(t);if(n&&function(t){(function(t){if(e.isPropertyAccessExpression(t)){var r=t;do{var n=a(r.name);if(n)return n;r=r.expression}while(e.isPropertyAccessExpression(r));var i=a(r);if(i)return i}function a(t){if(e.isIdentifier(t)&&-1!==e.idText(t).indexOf(":"))return YC(t,e.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}})(t.tagName),AC(t,t.typeArguments);for(var r=new e.Map,n=0,i=t.attributes.properties;n=0)return d>=LD(n)&&(RD(n)||ds)return!1;if(o||a>=c)return!0;for(var _=a;_=i&&r.length<=n}function kh(e){return Fh(e,0,!1)}function Ah(e){return Fh(e,0,!1)||Fh(e,1,!1)}function Fh(e,t,r){if(524288&e.flags){var n=Sc(e);if(r||0===n.properties.length&&0===n.indexInfos.length){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 Nh(t,r,n,i){var a=cg(t.typeParameters,t,0,i),o=BD(r),s=n&&(o&&262144&o.flags?n.nonFixingMapper:n.mapper);return og(s?K_(r,s):r,t,(function(e,t){Pg(a.inferences,e,t)})),n||sg(r,t,(function(e,t){Pg(a.inferences,e,t,128)})),Pu(t,Jg(a),e.isInJSFile(r.declaration))}function Ph(t){if(!t)return rt;var r=Ux(t);return e.isOptionalChainRoot(t.parent)?jf(r):e.isOptionalChain(t.parent)?Kf(r):r}function wh(t,r,n,i,a){if(e.isJsxOpeningLikeElement(t))return function(e,t,r,n){var i=Uy(t,e),a=Tx(e.attributes,i,n,r);return Pg(n.inferences,a,i),Jg(n)}(t,r,i,a);if(164!==t.kind){var o=Ky(t,e.every(r.typeParameters,(function(e){return!!jc(e)}))?8:0);if(o){var s=zy(t),c=fg(function(t,r){return void 0===r&&(r=0),t&&ug(e.map(t.inferences,pg),t.signature,t.flags|r,t.compareTypes)}(s,1)),u=X_(o,c),l=kh(u),d=l&&l.typeParameters?Ru(wu(l,l.typeParameters)):u,_=ku(r);Pg(a.inferences,d,_,128);var p=cg(r.typeParameters,r,a.flags),f=X_(o,s&&s.returnMapper);Pg(p.inferences,f,_),a.returnMapper=e.some(p.inferences,Lx)?fg(function(t){var r=e.filter(t.inferences,Lx);return r.length?ug(e.map(r,pg),t.signature,t.flags,t.compareTypes):void 0}(p)):void 0}}var g=jD(r),m=g?Math.min(MD(r)-1,n.length):n.length;if(g&&262144&g.flags){var y=e.find(a.inferences,(function(e){return e.typeParameter===g}));y&&(y.impliedArity=e.findIndex(n,xh,m)<0?n.length-m:void 0)}var v=Tu(r);if(v){var h=Bh(t);Pg(a.inferences,Ph(h),v)}for(var D=0;D=n-1&&xh(d=t[n-1]))return Ih(231===d.kind?d.type:Tx(d.expression,i,a,o));for(var s=[],c=[],u=[],l=r;ld&&(d=v)}}if(!l)return!0;for(var h=1/0,D=0,x=i;D0||e.isJsxOpeningElement(t)&&t.parent.children.length>0?[t.attributes]:e.emptyArray;var i=t.arguments||e.emptyArray,a=bh(i);if(a>=0){for(var o=i.slice(0,a),s=function(t){var r=i[t],n=224===r.kind&&(zr?Ux(r.expression):Cx(r.expression));n&&Ef(n)?e.forEach(Zu(n),(function(e,t){var i,a=n.target.elementFlags[t],s=jh(r,4&a?Ll(e):e,!!(12&a),null===(i=n.target.labeledElementDeclarations)||void 0===i?void 0:i[t]);o.push(s)})):o.push(r)},c=a;c-1)return e.createDiagnosticForNode(n[a],e.Diagnostics.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);for(var o,s=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,u=Number.NEGATIVE_INFINITY,l=Number.POSITIVE_INFINITY,d=0,_=r;d<_.length;d++){var p=_[d],f=LD(p),g=MD(p);fu&&(u=f),n.length1&&(v=W(f,Dn,D,b)),v||(v=W(f,bn,D,b)),v)return v;if(p)if(g)if(1===g.length||g.length>3){var S,T=g[g.length-1];g.length>3&&(S=e.chainDiagnosticMessages(S,e.Diagnostics.The_last_overload_gave_the_following_error),S=e.chainDiagnosticMessages(S,e.Diagnostics.No_overload_matches_this_call));var C=Rh(t,h,T,bn,0,!0,(function(){return S}));if(C)for(var E=0,k=C;E3&&e.addRelatedInfo(A,e.createDiagnosticForNode(T.declaration,e.Diagnostics.The_last_overload_is_declared_here)),q(T,A),mn.add(A)}else e.Debug.fail("No error for last overload signature")}else{for(var F=[],N=0,P=Number.MAX_VALUE,w=0,I=0,O=function(r){var n=Rh(t,h,r,bn,0,!0,(function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,I+1,f.length,La(r))}));n?(n.length<=P&&(P=n.length,w=I),N=Math.max(N,n.length),F.push(n)):e.Debug.fail("No error for 3 or fewer overload signatures"),I++},M=0,L=g;M1?F[w]:e.flatten(F);e.Debug.assert(R.length>0,"No errors reported for 3 or fewer overload signatures");var B=e.chainDiagnosticMessages(e.map(R,(function(e){return"string"==typeof e.messageText?e:e.messageText})),e.Diagnostics.No_overload_matches_this_call),j=r([],e.flatMap(R,(function(e){return e.relatedInformation})),!0),z=void 0;if(e.every(R,(function(e){return e.start===R[0].start&&e.length===R[0].length&&e.file===R[0].file}))){var U=R[0];z={file:U.file,start:U.start,length:U.length,code:B.code,category:B.category,messageText:B,relatedInformation:j}}else z=e.createDiagnosticForNodeFromMessageChain(t,B,j);q(g[0],z),mn.add(z)}else if(m)mn.add(Vh(t,[m],h));else if(y)Mh(y,t.typeArguments,!0,c);else{var V=e.filter(n,(function(e){return Eh(e,u)}));0===V.length?mn.add(function(t,r,n){var i=n.length;if(1===r.length){var a=yu((d=r[0]).typeParameters),o=e.length(d.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.Expected_0_type_arguments_but_got_1,ai?c=Math.min(c,_):o0),vT(t),i||1===r.length||r.some((function(e){return!!e.typeParameters}))?function(t,r,n){var i=function(e,t){for(var r=-1,n=-1,i=0;i=t)return i;o>n&&(n=o,r=i)}return r}(r,void 0===ue?n.length:ue),a=r[i],o=a.typeParameters;if(!o)return a;var s=vh(t)?t.typeArguments:void 0,c=s?Iu(a,function(e,t,r){var n=e.map(IT);for(;n.length>t.length;)n.pop();for(;n.length1?e.find(c,(function(t){return e.isFunctionLikeDeclaration(t)&&e.nodeIsPresent(t.body)})):void 0;if(u){var l=hu(u),d=!l.typeParameters;W([l],bn,d)&&e.addRelatedInfo(r,e.createDiagnosticForNode(u,e.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}g=a,m=o,y=s}function W(r,n,i,a){if(void 0===a&&(a=!1),g=void 0,m=void 0,y=void 0,i){var o=r[0];if(e.some(u)||!Ch(t,h,o,a))return;return Rh(t,h,o,n,0,!1,void 0)?void(g=[o]):o}for(var s=0;s=0&&In(t.arguments[i],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var a=Iv(t.expression);if(a===it)return Fr;if(io(a=Kc(a)))return Dh(t);if(no(a))return t.typeArguments&&In(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),hh(t);var o=Zc(a,1);if(o.length){if(!function(t,r){if(!r||!r.declaration)return!0;var n=r.declaration,i=e.getSelectedEffectiveModifierFlags(n,24);if(!i||170!==n.kind)return!0;var a=e.getClassLikeDeclarationOfSymbol(n.parent.symbol),o=Ss(n.parent.symbol);if(!AT(t,a)){var s=e.getContainingClass(t);if(s&&16&i){var c=IT(s);if($h(n.parent.symbol,c))return!0}return 8&i&&In(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Ra(o)),16&i&&In(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Ra(o)),!1}return!0}(t,o[0]))return Dh(t);if(o.some((function(e){return 4&e.flags})))return In(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Dh(t);var s=a.symbol&&e.getClassLikeDeclarationOfSymbol(a.symbol);return s&&e.hasSyntacticModifier(s,128)?(In(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Dh(t)):qh(t,o,r,n,0)}var c=Zc(a,0);if(c.length){var u=qh(t,c,r,n,0);return Q||(u.declaration&&!cD(u.declaration)&&ku(u)!==rt&&In(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),Tu(u)===rt&&In(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),u}return eD(t.expression,a,1),Dh(t)}function $h(t,r){var n=ds(r);if(!e.length(n))return!1;var i=n[0];if(2097152&i.flags){for(var a=rc(i.types),o=0,s=0,c=i.types;s0;if(1048576&r.flags){for(var c=!1,u=0,l=r.types;u1)return YC(r[1],e.Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext)}if(0===r.length||r.length>2)return YC(t,e.Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);var n=e.find(r,e.isSpreadElement);if(n)return YC(n,e.Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element)}(t),0===t.arguments.length)return HD(t,we);for(var r=t.arguments[0],n=Cx(r),i=t.arguments.length>1?Cx(t.arguments[1]):void 0,a=2;a=n-1)return r===n-1?a:Ll(zd(a,Ge));for(var o=[],s=[],c=[],u=r;u0&&(a=t.parameters.length-1+c)}}if(void 0===a){if(!n&&32&t.flags)return 0;a=t.minArgumentCount}if(i)return a;for(var u=a-1;u>=0;u--){if(131072&Em(wD(t,u),Sh).flags)break;a=u}t.resolvedMinArgumentCount=a}return t.resolvedMinArgumentCount}function RD(e){if(J(e)){var t=Yo(e.parameters[e.parameters.length-1]);return!Ef(t)||t.target.hasRestElement}return!1}function BD(e){if(J(e)){var t=Yo(e.parameters[e.parameters.length-1]);if(!Ef(t))return t;if(t.target.hasRestElement)return Hl(t,t.target.fixedLength)}}function jD(e){var t=BD(e);return!t||sf(t)||no(t)||0!=(131072&Wc(t).flags)?void 0:t}function JD(e){return KD(e,nt)}function KD(e,t){return e.parameters.length>0?wD(e,0):t}function zD(t,r){if(r.typeParameters){if(t.typeParameters)return;t.typeParameters=r.typeParameters}r.thisParameter&&((!(a=t.thisParameter)||a.valueDeclaration&&!a.valueDeclaration.type)&&(a||(t.thisParameter=Gf(r.thisParameter,void 0)),UD(t.thisParameter,Yo(r.thisParameter))));for(var n=t.parameters.length-(J(t)?1:0),i=0;i0&&(n=id(l,2)):u=nt;var d=function(t,r){var n=[],i=[],a=0!=(2&e.getFunctionFlags(t));return e.forEachYieldExpression(t.body,(function(t){var o,s=t.expression?Ux(t.expression,r):ze;if(e.pushIfUnique(n,XD(t,s,we,a)),t.asteriskToken){var c=gS(s,a?19:17,t.expression);o=c&&c.nextType}else o=Ky(t);o&&e.pushIfUnique(i,o)})),{yieldTypes:n,nextTypes:i}}(t,r),_=d.yieldTypes,p=d.nextTypes;i=e.some(_)?id(_,2):void 0,a=e.some(p)?_d(p):void 0}else{var f=ex(t,r);if(!f)return 2&o?HD(t,nt):nt;if(0===f.length)return 2&o?HD(t,rt):rt;n=id(f,2)}if(n||i||a){if(i&&ag(t,i,3),n&&ag(t,n,1),a&&ag(t,a,2),n&&vf(n)||i&&vf(i)||a&&vf(a)){var g=Hy(t),m=g?g===hu(t)?c?void 0:n:jy(ku(g),t):void 0;c?(i=Cf(i,m,0,s),n=Cf(n,m,1,s),a=Cf(a,m,2,s)):n=function(e,t,r){return e&&vf(e)&&(e=Tf(e,t?r?_b(t):t:void 0)),e}(n,m,s)}i&&(i=tg(i)),n&&(n=tg(n)),a&&(a=tg(a))}return c?YD(i||nt,n||u,a||Ty(2,t)||je,s):s?qD(n||u):n||u}function YD(e,t,r,n){var i=n?Lr:Rr,a=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||je,t=i.resolveIterationType(t,void 0)||je,r=i.resolveIterationType(r,void 0)||je,a===Dt){var o=i.getGlobalIterableIteratorType(!1),s=o!==Dt?hS(o,i):void 0,c=s?s.returnType:we,u=s?s.nextType:Ke;return lp(t,c)&&lp(u,r)?o!==Dt?Ol(o,[e]):(i.getGlobalIterableIteratorType(!0),mt):(i.getGlobalGeneratorType(!0),mt)}return Ol(a,[e,t,r])}function XD(t,r,n,i){var a=t.expression||t,o=t.asteriskToken?cS(i?19:17,r,n,a):r;return i?yb(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 QD(e,t,r,n){var i=0;if(n){for(var a=t;a1&&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(!Rx(e,a))return a}}function jx(e){var t=kh(e);if(t&&!t.typeParameters)return ku(t)}function Jx(t){var r=Kx(t);if(r)return r;if(67108864&t.flags&&Dr){var n=Dr[O(t)];if(n)return n}var i=qr,a=Ux(t);qr!==i&&((Dr||(Dr=[]))[O(t)]=a,e.setNodeFlags(t,67108864|t.flags));return a}function Kx(t){var r=e.skipParentheses(t,!0);if(e.isJSDocTypeAssertion(r)){var n=e.getJSDocTypeAssertionType(r);if(!e.isConstTypeReference(n))return C_(n)}if(r=e.skipParentheses(t),!e.isCallExpression(r)||106===r.expression.kind||e.isRequireCall(r,!0)||pD(r)){if(e.isAssertionExpression(r)&&!e.isConstTypeReference(r.type))return C_(r.type);if(8===t.kind||10===t.kind||110===t.kind||95===t.kind)return Ux(t)}else{if(n=e.isCallChain(r)?function(e){var t=Ux(e.expression),r=Uf(t,e.expression),n=jx(t);return n&&zf(n,e,r!==t)}(r):jx(Iv(r.expression)))return n}}function zx(e){var t=Yn(e);if(t.contextFreeType)return t.contextFreeType;var r=e.contextualType;e.contextualType=we;try{return t.contextFreeType=Ux(e,4)}finally{e.contextualType=r}}function Ux(t,r,n){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkExpression",{kind:t.kind,pos:t.pos,end:t.end});var a=d;d=t,b=0;var s=function(t,r,n){var a=t.kind;if(o)switch(a){case 225:case 212:case 213:o.throwIfCancellationRequested()}switch(a){case 79:return cy(t,r);case 80:return qv(t);case 108:return fy(t);case 106:return yy(t);case 104:return We;case 14:case 10:return f_(y_(t.text));case 8:return $C(t),f_(v_(+t.text));case 9:return function(t){if(!(e.isLiteralTypeNode(t.parent)||e.isPrefixUnaryExpression(t.parent)&&e.isLiteralTypeNode(t.parent.parent))&&U<7&&YC(t,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))return!0}(t),f_(h_({negative:!1,base10Value:e.parsePseudoBigInt(t.text)}));case 110:return $e;case 95:return Xe;case 222:return bx(t);case 13:return Jt;case 203:return Xy(t,r,n);case 204:return iv(t,r);case 205:return Kv(t,r);case 160:return zv(t,r);case 206:return mh(t,r);case 207:if(100===t.expression.kind)return fD(t);case 208:return function(t,r){var n;AC(t,t.typeArguments)||FC(t.arguments);var i=sD(t,void 0,r);if(i===Ar)return at;if(dD(i,t),106===t.expression.kind)return rt;if(208===t.kind){var a=i.declaration;if(a&&170!==a.kind&&174!==a.kind&&179!==a.kind&&!e.isJSDocConstructSignature(a)&&!cD(a))return Q&&In(t,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),we}if(e.isInJSFile(t)&&vD(t))return Su(t.arguments[0]);var o=ku(i);if(12288&o.flags&&pD(t))return x_(e.walkUpParenthesizedExpressions(t.parent));if(207===t.kind&&!t.questionDotToken&&237===t.parent.kind&&16384&o.flags&&Cu(i))if(e.isDottedName(t.expression)){if(!qm(t)){var s=In(t.expression,e.Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);Vm(t.expression,s)}}else In(t.expression,e.Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);if(e.isInJSFile(t)){var c=lD(t,!1);if(null===(n=null==c?void 0:c.exports)||void 0===n?void 0:n.size){var u=ha(c,c.exports,e.emptyArray,e.emptyArray,e.emptyArray);return u.objectFlags|=8192,_d([o,u])}}return o}(t,r);case 209:return hD(t);case 211:return function(t,r){if(e.hasJSDocNodes(t)&&e.isJSDocTypeAssertion(t)){var n=e.getJSDocTypeAssertionType(t);return xD(n,n,t.expression,r)}return Ux(t.expression,r)}(t,r);case 225:return function(e){return VS(e),vT(e),Yo(ta(e))}(t);case 212:case 213:return rx(t,r);case 215:return function(e){return Ux(e.expression),hn}(t);case 210:case 228:return function(t){if(210===t.kind){var r=e.getSourceFileOfNode(t);r&&e.fileExtensionIsOneOf(r.fileName,[".cts",".mts"])&&YC(t,e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead)}return xD(t,t.type,t.expression)}(t);case 229:return bD(t);case 230:return SD(t);case 214:return cx(t);case 216:return function(e){return Ux(e.expression),ze}(t);case 217:return function(t){if(i){var r=e.getContainingFunctionOrClassStaticBlock(t);if(r&&e.isClassStaticBlockDeclaration(r))In(t,e.Diagnostics.Await_expression_cannot_be_used_inside_a_class_static_block);else if(!(32768&t.flags)){var n;if(e.isInTopLevelContext(t)){if(!WC(n=e.getSourceFileOfNode(t))){var a=void 0;if(!e.isEffectiveExternalModule(n,z)){a||(a=e.getSpanOfTokenAtPosition(n,t.pos));var o=e.createFileDiagnostic(n,a.start,a.length,e.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module);mn.add(o)}(V!==e.ModuleKind.ES2022&&V!==e.ModuleKind.ESNext&&V!==e.ModuleKind.System&&(V!==e.ModuleKind.NodeNext||e.getSourceFileOfNode(t).impliedNodeFormat!==e.ModuleKind.ESNext)||U<4)&&(a=e.getSpanOfTokenAtPosition(n,t.pos),o=e.createFileDiagnostic(n,a.start,a.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),mn.add(o))}}else if(!WC(n=e.getSourceFileOfNode(t))){if(a=e.getSpanOfTokenAtPosition(n,t.pos),o=e.createFileDiagnostic(n,a.start,a.length,e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),r&&170!==r.kind&&0==(2&e.getFunctionFlags(r))){var s=e.createDiagnosticForNode(r,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(o,s)}mn.add(o)}}Sy(t)&&In(t,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)}var c=Ux(t.expression),u=pb(c,!0,t,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return u!==c||io(u)||3&c.flags||On(!1,e.createDiagnosticForNode(t,e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),u}(t);case 218:return function(t){var r=Ux(t.operand);if(r===it)return it;switch(t.operand.kind){case 8:switch(t.operator){case 40:return f_(v_(-t.operand.text));case 39:return f_(v_(+t.operand.text))}break;case 9:if(40===t.operator)return f_(h_({negative:!0,base10Value:e.parsePseudoBigInt(t.operand.text)}))}switch(t.operator){case 39:case 40:case 54:return jv(r,t.operand),lx(r,12288)&&In(t.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(t.operator)),39===t.operator?(lx(r,2112)&&In(t.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(t.operator),Ra(xf(r))),Ge):ux(r);case 53:iS(t.operand);var n=12582912&am(r);return 4194304===n?Xe:8388608===n?$e:et;case 45:case 46:return nx(t.operand,jv(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&sx(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),ux(r)}return Me}(t);case 219:return function(t){var r=Ux(t.operand);return r===it?it:(nx(t.operand,jv(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&sx(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),ux(r))}(t);case 220:return ne(t,r);case 221:return function(e,t){var r=iS(e.condition);return rS(e.condition,r,e.whenTrue),id([Ux(e.whenTrue,t),Ux(e.whenFalse,t)],2)}(t,r);case 224:return function(e,t){return U<2&&DC(e,z.downlevelIteration?1536:1024),cS(33,Ux(e.expression,t),Ke,e.expression)}(t,r);case 226:return ze;case 223:return function(t){i&&(8192&t.flags||HC(t,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),Sy(t)&&In(t,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer));var r=e.getContainingFunction(t);if(!r)return we;var n=e.getFunctionFlags(r);if(!(1&n))return we;var a=0!=(2&n);t.asteriskToken&&(a&&U<99&&DC(t,26624),!a&&U<2&&z.downlevelIteration&&DC(t,256));var o=Au(r),s=o&&wS(o,a),c=s&&s.yieldType||we,u=s&&s.nextType||we,l=a?yb(u)||we:u,d=t.expression?Ux(t.expression):ze,_=XD(t,d,l,a);if(o&&_&&gp(_,c,t.expression||t,t.expression),t.asteriskToken)return lS(a?19:17,1,d,t.expression)||we;if(o)return PS(2,o,a)||we;var p=Ty(2,r);if(!p&&(p=we,i&&Q&&!e.expressionResultIsUnused(t))){var f=Ky(t);f&&!no(f)||In(t,e.Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}return p}(t);case 231:return function(e){return e.isSpread?zd(e.type,Ge):e.type}(t);case 287:return kv(t,r);case 277:case 278:return function(e,t){return vT(e),bv(e)||we}(t);case 281:return function(t){Tv(t.openingFragment);var r=e.getSourceFileOfNode(t);return!e.getJSXTransformEnabled(z)||!z.jsxFactory&&!r.pragmas.has("jsx")||z.jsxFragmentFactory||r.pragmas.has("jsxfrag")||In(t,z.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),uv(t),bv(t)||we}(t);case 285:return dv(t,r);case 279:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return Me}(t,r,n),c=Ox(t,s,r);return px(c)&&function(t,r){205===t.parent.kind&&t.parent.expression===t||206===t.parent.kind&&t.parent.expression===t||(79===t.kind||160===t.kind)&&FT(t)||180===t.parent.kind&&t.parent.exprName===t||274===t.parent.kind||In(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(z.isolatedModules){e.Debug.assert(!!(128&r.symbol.flags)),8388608&r.symbol.valueDeclaration.flags&&In(t,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided)}}(t,c),d=a,null===e.tracing||void 0===e.tracing||e.tracing.pop(),c}function Vx(t){t.expression&&HC(t.expression,e.Diagnostics.Type_expected),mT(t.constraint),mT(t.default);var r=bs(ta(t));Oc(r),function(e){return Bc(e)!==St}(r)||In(t.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,Ra(r));var n=Fc(r),a=jc(r);n&&a&&fp(a,Us(X_(n,I_(r,a)),a),t.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),i&&JS(t.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function qx(t){bC(t),Xb(t);var r=e.getContainingFunction(t);e.hasSyntacticModifier(t,16476)&&(170===r.kind&&e.nodeIsPresent(r.body)||In(t,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),170===r.kind&&e.isIdentifier(t.name)&&"constructor"===t.name.escapedText&&In(t.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),t.questionToken&&e.isBindingPattern(t.name)&&r.body&&In(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)&&In(t,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,t.name.escapedText),170!==r.kind&&174!==r.kind&&179!==r.kind||In(t,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),213===r.kind&&In(t,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),171!==r.kind&&172!==r.kind||In(t,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),!t.dotDotDotToken||e.isBindingPattern(t.name)||lp(Wc(Yo(t.symbol)),Vt)||In(t,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function Wx(t,r,n){for(var i=0,a=t.elements;i=2||!e.hasRestParameter(t)||8388608&t.flags||e.nodeIsMissing(t.body))return;e.forEach(t.parameters,(function(t){t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===le.escapedName&&Pn("noEmit",t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))}(t);var n=e.getEffectiveReturnTypeNode(t);if(Q&&!n)switch(t.kind){case 174:In(t,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 173:In(t,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(n){var a=e.getFunctionFlags(t);if(1==(5&a)){var o=C_(n);if(o===rt)In(n,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var s=PS(0,o,0!=(2&a))||we;fp(YD(s,PS(1,o,0!=(2&a))||s,PS(2,o,0!=(2&a))||je,!!(2&a)),o,n)}}else 2==(3&a)&&function(t,r){var n=C_(r);if(U>=2){if(io(n))return;var i=Al(!0);if(i!==Dt&&!Qo(n,i))return void In(r,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,Ra(vb(n)||rt))}else{if(function(t){Db(t&&e.getEntityNameFromTypeNode(t))}(r),io(n))return;var a=e.getEntityNameFromTypeNode(r);if(void 0===a)return void In(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,Ra(n));var o=Ri(a,111551,!0),s=o?Yo(o):Me;if(io(s))return void(79===a.kind&&"Promise"===a.escapedText&&$o(n)===Al(!1)?In(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):In(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=(d=!0,Zt||(Zt=Sl("PromiseConstructorLike",0,d))||mt);if(c===mt)return void In(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(!fp(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=Qn(t.locals,u.escapedText,111551);if(l)return void In(l.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(u),e.entityNameToString(a))}var d;pb(n,!1,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)}175!==t.kind&&315!==t.kind&&Ab(t)}}function Gx(t){for(var r=new e.Map,n=0,i=t.members;n0&&r.declarations[0]!==t)return}var n=Bu(ta(t));if(null==n?void 0:n.declarations){for(var i=new e.Map,a=function(e){1===e.parameters.length&&e.parameters[0].type&&Sm(C_(e.parameters[0].type),(function(t){var r=i.get(Ql(t));r?r.declarations.push(e):i.set(Ql(t),{type:t,declarations:[e]})}))},o=0,s=n.declarations;o1)for(var r=0,n=t.declarations;r0}function gb(e){var t;if(16777216&e.flags){var r=Il(!1);return!!r&&e.aliasSymbol===r&&1===(null===(t=e.aliasTypeArguments)||void 0===t?void 0:t.length)}return!1}function mb(e){return 1048576&e.flags?Fm(e,mb):gb(e)?e.aliasTypeArguments[0]:e}function yb(t,r,n,i){var a=vb(t,r,n,i);return a&&function(t){if(no(t))return t;if(gb(t))return t;if(Od(t)){var r=Oc(t);if(!r||3&r.flags||Ap(r)||fb(r)){var n=Il(!0);if(n)return rl(n,[mb(t)])}}return e.Debug.assert(void 0===_b(t),"type provided should not be a non-generic 'promise'-like."),t}(a)}function vb(t,r,n,i){if(no(t))return t;if(gb(t))return t;var a=t;if(a.awaitedTypeOfType)return a.awaitedTypeOfType;if(1048576&t.flags){var o=r?function(e){return vb(e,r,n,i)}:vb;return a.awaitedTypeOfType=Fm(t,o)}var s=_b(t);if(s){if(t.id===s.id||gn.lastIndexOf(s.id)>=0)return void(r&&In(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));gn.push(t.id);var c=vb(s,r,n,i);if(gn.pop(),!c)return;return a.awaitedTypeOfType=c}if(!fb(t))return a.awaitedTypeOfType=t;r&&(e.Debug.assertIsDefined(n),In(r,n,i))}function hb(t){var r=sD(t);dD(r,t);var n=ku(r);if(!(1&n.flags)){var i,a,o=rD(t);switch(t.parent.kind){case 256:i=id([Yo(ta(t.parent)),rt]);break;case 163:i=rt,a=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 166:i=rt,a=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 168:case 171:case 172:i=id([Ml(IT(t.parent)),rt]);break;default:return e.Debug.fail()}fp(n,i,t,o,(function(){return a}))}}function Db(t){if(t){var r=e.getFirstIdentifier(t),n=2097152|(79===t.kind?788968:1920),i=ei(r,r.escapedText,n,void 0,void 0,!0);i&&2097152&i.flags&&ca(i)&&!XT(Fi(i))&&!wi(i)&&Oi(i)}}function xb(t){var r=bb(t);r&&e.isEntityName(r)&&Db(r)}function bb(e){if(e)switch(e.kind){case 187:case 186:return Sb(e.types);case 188:return Sb([e.trueType,e.falseType]);case 190:case 196:return bb(e.type);case 177:return e.typeName}}function Sb(t){for(var r,n=0,i=t;n=e.ModuleKind.ES2015)||V>=e.ModuleKind.Node12&&e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)&&r&&(Ub(t,r,"require")||Ub(t,r,"exports"))&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=to(t);303===n.kind&&e.isExternalOrCommonJsModule(n)&&Pn("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(r),e.declarationNameToString(r))}}(t,r),function(t,r){if(r&&!(U>=4)&&Ub(t,r,"Promise")&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=to(t);303===n.kind&&e.isExternalOrCommonJsModule(n)&&2048&n.flags&&Pn("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(r),e.declarationNameToString(r))}}(t,r),function(e,t){U<=8&&(Ub(e,t,"WeakMap")||Ub(e,t,"WeakSet"))&&pn.push(e)}(t,r),function(e,t){t&&U>=2&&U<=8&&Ub(e,t,"Reflect")&&fn.push(e)}(t,r),e.isClassLike(t)?(JS(r,e.Diagnostics.Class_name_cannot_be_0),8388608&t.flags||function(t){U>=1&&"Object"===t.escapedText&&(V1&&e.some(_.declarations,(function(r){return r!==t&&e.isVariableLike(r)&&!$b(r,t)}))&&In(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}else{var g=Yb(wo(t));io(p)||io(g)||ap(p,g)||67108864&_.flags||Qb(_.valueDeclaration,p,t,g),t.initializer&&gp(Cx(t.initializer),g,t,t.initializer,void 0),_.valueDeclaration&&!$b(t,_.valueDeclaration)&&In(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}166!==t.kind&&165!==t.kind&&(lb(t),253!==t.kind&&202!==t.kind||function(t){if(0==(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(253!==t.kind||t.initializer)){var r=ta(t);if(1&r.flags){if(!e.isIdentifier(t.name))return e.Debug.fail();var n=ei(t,t.name.escapedText,3,void 0,void 0,!1);if(n&&n!==r&&2&n.flags&&3&Av(n)){var i=e.getAncestor(n.valueDeclaration,254),a=236===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!a||!(234===a.kind&&e.isFunctionLike(a.parent)||261===a.kind||260===a.kind||303===a.kind)){var o=Ma(n);In(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}}(t),Gb(t,t.name))}}}}function Qb(t,r,n,i){var a=e.getNameOfDeclaration(n),o=166===n.kind||165===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=In(a,o,s,Ra(r),Ra(i));t&&e.addRelatedInfo(c,e.createDiagnosticForNode(t,e.Diagnostics._0_was_also_declared_here,s))}function $b(t,r){if(163===t.kind&&253===r.kind||253===t.kind&&163===r.kind)return!0;if(e.hasQuestionToken(t)!==e.hasQuestionToken(r))return!1;return e.getSelectedEffectiveModifierFlags(t,504)===e.getSelectedEffectiveModifierFlags(r,504)}function Zb(t){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkVariableDeclaration",{kind:t.kind,pos:t.pos,end:t.end}),function(t){if(242!==t.parent.parent.kind&&243!==t.parent.parent.kind)if(8388608&t.flags)KC(t);else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return YC(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(t))return YC(t,e.Diagnostics.const_declarations_must_be_initialized)}if(t.exclamationToken&&(236!==t.parent.parent.kind||!t.type||t.initializer||8388608&t.flags)){var r=t.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return YC(t.exclamationToken,r)}!(V=1&&Zb(t.declarations[0])}function sS(e){return cS(e.awaitModifier?15:13,Iv(e.expression),Ke,e.expression)}function cS(e,t,r,n){return no(t)?t:uS(e,t,r,n,!0)||we}function uS(t,r,n,i,a){var o=0!=(2&t);if(r!==nt){var s=U>=2,c=!s&&z.downlevelIteration,u=z.noUncheckedIndexedAccess&&!!(128&t);if(s||c||o){var l=gS(r,t,s?i:void 0);if(a&&l){var d=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;d&&fp(n,l.nextType,i,d)}if(l||s)return u?lm(l&&l.yieldType):l&&l.yieldType}var _=r,p=!1,f=!1;if(4&t){if(1048576&_.flags){var g=r.types,m=e.filter(g,(function(e){return!(402653316&e.flags)}));m!==g&&(_=id(m,2))}else 402653316&_.flags&&(_=nt);if((f=_!==r)&&(U<1&&i&&(In(i,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),p=!0),131072&_.flags))return u?lm(He):He}if(!df(_)){if(i&&!p){var y=function(n,i){var a;if(i)return n?[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];if(lS(t,0,r,void 0))return[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1];if(function(e){switch(e){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}(null===(a=r.symbol)||void 0===a?void 0:a.escapedName))return[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0];return n?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:[e.Diagnostics.Type_0_is_not_an_array_type,!0]}(!!(4&t)&&!f,c),v=y[0];Ln(i,y[1]&&!!db(_),v,Ra(_))}return f?u?lm(He):He:void 0}var h=ou(_,Ge);return f&&h?402653316&h.flags&&!z.noUncheckedIndexedAccess?He:id(u?[h,He,Ke]:[h,He],2):128&t?lm(h):h}bS(i,r,o)}function lS(e,t,r,n){if(!no(r)){var i=gS(r,e,n);return i&&i[j(t)]}}function dS(e,t,r){if(void 0===e&&(e=nt),void 0===t&&(t=nt),void 0===r&&(r=je),67359327&e.flags&&180227&t.flags&&180227&r.flags){var n=Hu([e,t,r]),i=Pr.get(n);return i||(i={yieldType:e,returnType:t,nextType:r},Pr.set(n,i)),i}return{yieldType:e,returnType:t,nextType:r}}function _S(t){for(var r,n,i,a=0,o=t;a1)for(var p=0,f=i;pn)return!1;for(var l=0;l1)return HC(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);r=!0}else{if(e.Debug.assert(117===o.token),n)return HC(o,e.Diagnostics.implements_clause_already_seen);n=!0}NC(o)}})(t)||CC(t.typeParameters,r)}(t),Cb(t),Gb(t,t.name),KS(e.getEffectiveTypeParameterDeclarations(t)),lb(t);var r=ta(t),n=Ss(r),a=Us(n),o=Yo(r);US(r),ub(r),function(t){for(var r=new e.Map,n=new e.Map,i=new e.Map,a=0,o=t.members;a>a;case 49:return i>>>a;case 47:return i<1&&L(t,e.shouldPreserveConstEnums(z))){var s=function(t){var r=t.declarations;if(r)for(var n=0,i=r;n1&&!gT(n))for(var o=0,s=n;o1&&t.every((function(t){return e.isInJSFile(t)&&e.isAccessExpression(t)&&(e.isExportsIdentifier(t.expression)||e.isModuleExportsAccessExpression(t.expression))}))}function mT(t){if(t){var r=d;d=t,b=0,function(t){e.isInJSFile(t)&&e.forEach(t.jsDoc,(function(t){var r=t.tags;return e.forEach(r,mT)}));var r=t.kind;if(o)switch(r){case 260:case 256:case 257:case 255:o.throwIfCancellationRequested()}r>=236&&r<=252&&t.flowNode&&!Hm(t.flowNode)&&Mn(!1===z.allowUnreachableCode,t,e.Diagnostics.Unreachable_code_detected);switch(r){case 162:return Vx(t);case 163:return qx(t);case 166:return Xx(t);case 165:return function(t){return e.isPrivateIdentifier(t.name)&&In(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Xx(t)}(t);case 179:case 178:case 173:case 174:case 175:return Hx(t);case 168:case 167:return function(t){jC(t)||wC(t.name),kb(t),e.hasSyntacticModifier(t,128)&&168===t.kind&&t.body&&In(t,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(t.name)),e.isPrivateIdentifier(t.name)&&!e.getContainingClass(t)&&In(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Qx(t)}(t);case 169:return function(t){bC(t),e.forEachChild(t,mT)}(t);case 170:return $x(t);case 171:case 172:return Zx(t);case 177:return nb(t);case 176:return function(t){var r=function(e){switch(e.parent.kind){case 213:case 173:case 255:case 212:case 178:case 168:case 167:var t=e.parent;if(e===t.type)return t}}(t);if(r){var n=hu(r),i=Cu(n);if(i){mT(t.type);var a=t.parameterName;if(0===i.kind||2===i.kind)b_(a);else if(i.parameterIndex>=0)J(n)&&i.parameterIndex===n.parameters.length-1?In(a,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):i.type&&fp(i.type,Yo(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;s0),n.length>1&&In(n[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=Eb(t.class.expression),a=e.getClassExtendsHeritageElement(r);if(a){var o=Eb(a.expression);o&&i.escapedText!==o.escapedText&&In(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(t.tagName),e.idText(i),e.idText(o))}}else In(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 327:return function(t){var r=e.getEffectiveJSDocHost(t);r&&(e.isClassDeclaration(r)||e.isClassExpression(r))||In(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 343:case 336:case 337:return function(t){t.typeExpression||In(t.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),t.name&&JS(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),mT(t.typeExpression),KS(e.getEffectiveTypeParameterDeclarations(t))}(t);case 342:return function(e){mT(e.constraint);for(var t=0,r=e.typeParameters;t-1&&n1){var n=e.isEnumConst(t);e.forEach(r.declarations,(function(t){e.isEnumDeclaration(t)&&e.isEnumConst(t)!==n&&In(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)}))}var a=!1;e.forEach(r.declarations,(function(t){if(259!==t.kind)return!1;var r=t;if(!r.members.length)return!1;var n=r.members[0];n.initializer||(a?In(n.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):a=!0)}))}}}(t);case 260:return rT(t);case 265:return cT(t);case 264:return function(t){if(!lT(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(bC(t),e.isInternalModuleImportEqualsDeclaration(t)||iT(t)))if(oT(t),e.hasSyntacticModifier(t,1)&&Ii(t),276!==t.moduleReference.kind){var r=Fi(ta(t));if(r!==Ae){if(111551&r.flags){var n=e.getFirstIdentifier(t.moduleReference);1920&Ri(n,112575).flags||In(n,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(n))}788968&r.flags&&JS(t.name,e.Diagnostics.Import_name_cannot_be_0)}t.isTypeOnly&&YC(t,e.Diagnostics.An_import_alias_cannot_use_import_type)}else!(V>=e.ModuleKind.ES2015&&void 0===e.getSourceFileOfNode(t).impliedNodeFormat)||t.isTypeOnly||8388608&t.flags||YC(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 271:return uT(t);case 270:return function(t){if(!lT(t,t.isExportEquals?e.Diagnostics.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:e.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration)){var r=303===t.parent.kind?t.parent:t.parent.parent;if(260!==r.kind||e.isAmbientModule(r)){!bC(t)&&e.hasEffectiveModifiers(t)&&HC(t,e.Diagnostics.An_export_assignment_cannot_have_modifiers);var n=e.getEffectiveTypeAnnotationNode(t);if(n&&fp(Cx(t.expression),C_(n),t.expression),79===t.expression.kind){var i=t.expression,a=Ri(i,67108863,!0,!0,t);if(a){sy(a,i);var o=2097152&a.flags?Fi(a):a;(o===Ae||111551&o.flags)&&Cx(t.expression)}else Cx(t.expression);e.getEmitDeclarations(z)&&Xa(t.expression,!0)}else Cx(t.expression);fT(r),8388608&t.flags&&!e.isEntityNameExpression(t.expression)&&YC(t.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!t.isExportEquals||8388608&t.flags||(V>=e.ModuleKind.ES2015&&e.getSourceFileOfNode(t).impliedNodeFormat!==e.ModuleKind.CommonJS?YC(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):V===e.ModuleKind.System&&YC(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}else t.isExportEquals?In(t,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):In(t,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(t);case 235:case 252:return void QC(t);case 275:(function(e){Cb(e)})(t)}}(t),d=r}}function yT(t){e.isInJSFile(t)||YC(t,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function vT(t){var r=Yn(e.getSourceFileOfNode(t));if(!(1&r.flags)){r.deferredNodes=r.deferredNodes||new e.Map;var n=O(t);r.deferredNodes.set(n,t)}}function hT(t){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkDeferredNode",{kind:t.kind,pos:t.pos,end:t.end});var r=d;switch(d=t,b=0,t.kind){case 207:case 208:case 209:case 164:case 279:hh(t);break;case 212:case 213:case 168:case 167:!function(t){e.Debug.assert(168!==t.kind||e.isObjectLiteralMethod(t));var r=e.getFunctionFlags(t),n=Au(t);if(tx(t,n),t.body)if(e.getEffectiveReturnTypeNode(t)||ku(hu(t)),234===t.body.kind)mT(t.body);else{var i=Ux(t.body),a=n&&OS(n,r);a&&gp(2==(3&r)?pb(i,!1,t.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i,a,t.body,t.body)}}(t);break;case 171:case 172:Zx(t);break;case 225:!function(t){e.forEach(t.members,mT),Ab(t)}(t);break;case 278:!function(e){Tv(e)}(t);break;case 277:!function(e){Tv(e.openingElement),sv(e.closingElement.tagName)?pv(e.closingElement):Ux(e.closingElement.tagName),uv(e)}(t)}d=r,null===e.tracing||void 0===e.tracing||e.tracing.pop()}function DT(r){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkSourceFile",{path:r.path},!0),e.performance.mark("beforeCheck"),function(r){var n=Yn(r);if(!(1&n.flags)){if(e.skipTypeChecking(r,z,t))return;!function(t){!!(8388608&t.flags)&&function(t){for(var r=0,n=t.statements;r0?e.concatenate(o,a):a}return e.forEach(t.getSourceFiles(),DT),mn.getDiagnostics()}(r)}finally{o=void 0}}function TT(){if(!i)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function CT(e){switch(e.kind){case 162:case 256:case 257:case 258:case 259:case 343:case 336:case 337:return!0;case 266:return e.isTypeOnly;case 269:case 274:return e.parent.parent.isTypeOnly;default:return!1}}function ET(e){for(;160===e.parent.kind;)e=e.parent;return 177===e.parent.kind}function kT(t,r){for(var n;(t=e.getContainingClass(t))&&!(n=r(t)););return n}function AT(e,t){return!!kT(e,(function(e){return e===t}))}function FT(e){return void 0!==function(e){for(;160===e.parent.kind;)e=e.parent;return 264===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:270===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function NT(t){if(e.isDeclarationName(t))return ta(t.parent);if(e.isInJSFile(t)&&205===t.parent.kind&&t.parent===t.parent.parent.left&&!e.isPrivateIdentifier(t)&&!e.isJSDocMemberName(t)){var r=function(t){switch(e.getAssignmentDeclarationKind(t.parent.parent)){case 1:case 3:return ta(t.parent);case 4:case 2:case 5:return ta(t.parent.parent)}}(t);if(r)return r}if(270===t.parent.kind&&e.isEntityNameExpression(t)){var n=Ri(t,2998271,!0);if(n&&n!==Ae)return n}else if(e.isEntityName(t)&&FT(t)){var i=e.getAncestor(t,264);return e.Debug.assert(void 0!==i),Mi(t,!0)}if(e.isEntityName(t)){var a=function(t){for(var r=t.parent;e.isQualifiedName(r);)t=r,r=r.parent;if(r&&199===r.kind&&r.qualifier===t)return r}(t);if(a){C_(a);var o=Yn(t).resolvedSymbol;return o===Ae?void 0:o}}for(;e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(t);)t=t.parent;if(function(e){for(;205===e.parent.kind;)e=e.parent;return 227===e.parent.kind}(t)){var s=0;227===t.parent.kind?(s=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(s|=111551)):s=1920,s|=2097152;var c=e.isEntityNameExpression(t)?Ri(t,s):void 0;if(c)return c}if(338===t.parent.kind)return e.getParameterSymbolFromJSDoc(t.parent);if(162===t.parent.kind&&342===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;var l=e.findAncestor(t,e.or(e.isJSDocLinkLike,e.isJSDocNameReference,e.isJSDocMemberName));s=l?901119:111551;if(79===t.kind){if(e.isJSXTagName(t)&&sv(t))return(f=pv(t.parent))===Ae?void 0:f;var d=Ri(t,s,!1,!l,e.getHostSignatureFromJSDoc(t));if(!d&&l){var _=e.findAncestor(t,e.or(e.isClassLike,e.isInterfaceDeclaration));if(_)return PT(t,ta(_))}return d}if(e.isPrivateIdentifier(t))return Wv(t);if(205===t.kind||160===t.kind){var p=Yn(t);return p.resolvedSymbol?p.resolvedSymbol:(205===t.kind?Kv(t,0):zv(t,0),!p.resolvedSymbol&&l&&e.isQualifiedName(t)?PT(t):p.resolvedSymbol)}if(e.isJSDocMemberName(t))return PT(t)}else if(ET(t)){var f;return(f=Ri(t,s=177===t.parent.kind?788968:1920,!1,!0))&&f!==Ae?f:al(t)}return 176===t.parent.kind?Ri(t,1):void 0}function PT(t,r){if(e.isEntityName(t)){var n=901119,i=Ri(t,n,!1,!0,e.getHostSignatureFromJSDoc(t));if(!i&&e.isIdentifier(t)&&r&&(i=ea(Qn(Xi(r),t.escapedText,n))),i)return i}var a=e.isIdentifier(t)?r:PT(t.left),o=e.isIdentifier(t)?t.escapedText:t.right.escapedText;if(a){var s=111551&a.flags&&Qc(Yo(a),"prototype");return Qc(s?Yo(s):Ss(a),o)}}function wT(t,r){if(303===t.kind)return e.isExternalModule(t)?ea(t.symbol):void 0;var n=t.parent,i=n.parent;if(!(16777216&t.flags)){if(B(t)){var a=ta(n);return e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t?nv(a):a}if(e.isLiteralComputedPropertyDeclarationName(t))return ta(n.parent);if(79===t.kind){if(FT(t))return NT(t);if(202===n.kind&&200===i.kind&&t===n.propertyName){if(o=Qc(IT(i),t.escapedText))return o}else if(e.isMetaProperty(n)){var o;if(o=Qc(IT(n),t.escapedText))return o;if(103===n.keywordToken)return CD(n).symbol}}switch(t.kind){case 79:case 80:case 205:case 160:return NT(t);case 108:var s=e.getThisContainer(t,!1);if(e.isFunctionLike(s)){var c=hu(s);if(c.thisParameter)return c.thisParameter}if(e.isInExpressionContext(t))return Ux(t).symbol;case 191:return b_(t).symbol;case 106:return Ux(t).symbol;case 134:var u=t.parent;return u&&170===u.kind?u.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(265===t.parent.kind||271===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 ji(t,t,r);if(e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n)&&n.arguments[1]===t)return ta(n);case 8:var l=e.isElementAccessExpression(n)?n.argumentExpression===t?Jx(n.expression):void 0:e.isLiteralTypeNode(n)&&e.isIndexedAccessTypeNode(i)?C_(i.objectType):void 0;return l&&Qc(l,e.escapeLeadingUnderscores(t.text));case 88:case 98:case 38:case 84:return ta(t.parent);case 199:return e.isLiteralImportTypeNode(t)?wT(t.argument.literal,r):void 0;case 93:return e.isExportAssignment(t.parent)?e.Debug.checkDefined(t.parent.symbol):void 0;case 100:case 103:return e.isMetaProperty(t.parent)?TD(t.parent).symbol:void 0;case 230:return Ux(t).symbol;default:return}}}function IT(t){if(e.isSourceFile(t)&&!e.isExternalModule(t))return Me;if(16777216&t.flags)return Me;var r,n=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(t),i=n&&fs(ta(n.class));if(e.isPartOfTypeNode(t)){var a=C_(t);return i?Us(a,i.thisType):a}if(e.isExpressionNode(t))return MT(t);if(i&&!n.isImplements){var o=e.firstOrUndefined(ds(i));return o?Us(o,i.thisType):Me}if(CT(t))return Ss(r=ta(t));if(function(t){return 79===t.kind&&CT(t.parent)&&e.getNameOfDeclaration(t.parent)===t}(t))return(r=wT(t))?Ss(r):Me;if(e.isDeclaration(t))return Yo(r=ta(t));if(B(t))return(r=wT(t))?Yo(r):Me;if(e.isBindingPattern(t))return vo(t.parent,!0)||Me;if(FT(t)&&(r=wT(t))){var s=Ss(r);return io(s)?Yo(r):s}return e.isMetaProperty(t.parent)&&t.parent.keywordToken===t.kind?TD(t.parent):Me}function OT(t){if(e.Debug.assert(204===t.kind||203===t.kind),243===t.parent.kind)return yx(t,sS(t.parent)||Me);if(220===t.parent.kind)return yx(t,Jx(t.parent.right)||Me);if(294===t.parent.kind){var r=e.cast(t.parent.parent,e.isObjectLiteralExpression);return gx(r,OT(r)||Me,e.indexOfNode(r.properties,t.parent))}var n=e.cast(t.parent,e.isArrayLiteralExpression),i=OT(n)||Me,a=cS(65,i,Ke,t.parent)||Me;return mx(n,i,n.elements.indexOf(t),a)}function MT(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),g_(Jx(t))}function LT(t){var r=ta(t.parent);return e.isStatic(t)?Yo(r):Ss(r)}function RT(t){var r=t.name;switch(r.kind){case 79:return y_(e.idText(r));case 8:case 10:return y_(r.text);case 161:var n=ev(r);return dx(n,12288)?n:He;default:return e.Debug.fail("Unsupported property name.")}}function BT(t){t=Kc(t);var r=e.createSymbolTable(kc(t)),n=Zc(t,0).length?It:Zc(t,1).length?Ot:void 0;return n&&e.forEach(kc(n),(function(e){r.has(e.escapedName)||r.set(e.escapedName,e)})),ma(r)}function jT(t){return e.typeHasCallOrConstructSignatures(t,_e)}function JT(t){if(e.isGeneratedIdentifier(t))return!1;var r=e.getParseTreeNode(t,e.isIdentifier);if(!r)return!1;var n=r.parent;return!!n&&(!((e.isPropertyAccessExpression(n)||e.isPropertyAssignment(n))&&n.name===r)&&pC(r)===le)}function KT(t){var r=ji(t.parent,t);if(!r||e.isShorthandAmbientModuleSymbol(r))return!0;var n=Wi(r),i=Gn(r=Ui(r));return void 0===i.exportsSomeValue&&(i.exportsSomeValue=n?!!(111551&r.flags):e.forEachEntry(Qi(r),(function(e){return(e=Ai(e))&&!!(111551&e.flags)}))),i.exportsSomeValue}function zT(t,r){var n,i=e.getParseTreeNode(t,e.isIdentifier);if(i){var a=pC(i,function(t){return e.isModuleOrEnumDeclaration(t.parent)&&t===t.parent.name}(i));if(a){if(1048576&a.flags){var o=ea(a.exportSymbol);if(!r&&944&o.flags&&!(3&o.flags))return;a=o}var s=ra(a);if(s){if(512&s.flags&&303===(null===(n=s.valueDeclaration)||void 0===n?void 0:n.kind)){var c=s.valueDeclaration;return c!==e.getSourceFileOfNode(i)?void 0:c}return e.findAncestor(i.parent,(function(t){return e.isModuleOrEnumDeclaration(t)&&ta(t)===s}))}}}}function UT(t){if(t.generatedImportReference)return t.generatedImportReference;var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=pC(r);if(ki(n,111551)&&!wi(n))return _i(n)}}function VT(t){if(418&t.flags&&t.valueDeclaration&&!e.isSourceFile(t.valueDeclaration)){var r=Gn(t);if(void 0===r.isDeclarationWithCollidingName){var n=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(n)||function(t){return t.valueDeclaration&&e.isBindingElement(t.valueDeclaration)&&291===e.walkUpBindingElementsAndPatterns(t.valueDeclaration).parent.kind}(t)){var i=Yn(t.valueDeclaration);if(ei(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=234===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 qT(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=pC(r);if(n&&VT(n))return n.valueDeclaration}}}function WT(t){var r=e.getParseTreeNode(t,e.isDeclaration);if(r){var n=ta(r);if(n)return VT(n)}return!1}function HT(t){switch(t.kind){case 264:return YT(ta(t));case 266:case 267:case 269:case 274:var r=ta(t);return!!r&&YT(r)&&!wi(r);case 271:var n=t.exportClause;return!!n&&(e.isNamespaceExport(n)||e.some(n.elements,HT));case 270:return!t.expression||79!==t.expression.kind||YT(ta(t))}return!1}function GT(t){var r=e.getParseTreeNode(t,e.isImportEqualsDeclaration);return!(void 0===r||303!==r.parent.kind||!e.isInternalModuleImportEqualsDeclaration(r))&&(YT(ta(r))&&r.moduleReference&&!e.nodeIsMissing(r.moduleReference))}function YT(t){if(!t)return!1;var r=Fi(t);return r===Ae||!!(111551&r.flags)&&(e.shouldPreserveConstEnums(z)||!XT(r))}function XT(e){return fx(e)||!!e.constEnumOnlyModule}function QT(t,r){if(pi(t)){var n=ta(t),i=n&&Gn(n);if(null==i?void 0:i.referenced)return!0;var a=Gn(n).target;if(a&&1&e.getEffectiveModifierFlags(t)&&111551&a.flags&&(e.shouldPreserveConstEnums(z)||!XT(a)))return!0}return!!r&&!!e.forEachChild(t,(function(e){return QT(e,r)}))}function $T(t){if(e.nodeIsPresent(t.body)){if(e.isGetAccessor(t)||e.isSetAccessor(t))return!1;var r=bu(ta(t));return r.length>1||1===r.length&&r[0].declaration!==t}return!1}function ZT(t){return!(!H||fu(t)||e.isJSDocParameterTag(t)||!t.initializer||e.hasSyntacticModifier(t,16476))}function eC(t){return H&&fu(t)&&!t.initializer&&e.hasSyntacticModifier(t,16476)}function tC(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return!1;var n=ta(r);return!!(n&&16&n.flags)&&!!e.forEachEntry(Xi(n),(function(t){return 111551&t.flags&&t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)}))}function rC(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return e.emptyArray;var n=ta(r);return n&&kc(Yo(n))||e.emptyArray}function nC(e){var t,r=e.id||0;return r<0||r>=tn.length?0:(null===(t=tn[r])||void 0===t?void 0:t.flags)||0}function iC(e){return $S(e.parent),Yn(e).enumMemberValue}function aC(e){switch(e.kind){case 297:case 205:case 206:return!0}return!1}function oC(t){if(297===t.kind)return iC(t);var r=Yn(t).resolvedSymbol;if(r&&8&r.flags){var n=r.valueDeclaration;if(e.isEnumConst(n.parent))return iC(n)}}function sC(e){return!!(524288&e.flags)&&Zc(e,0).length>0}function cC(t,r){var n,i,a=e.getParseTreeNode(t,e.isEntityName);if(!a)return e.TypeReferenceSerializationKind.Unknown;if(r&&!(r=e.getParseTreeNode(r)))return e.TypeReferenceSerializationKind.Unknown;var o=!1;if(e.isQualifiedName(a)){var s=Ri(e.getFirstIdentifier(a),111551,!0,!0,r);o=!!(null===(n=null==s?void 0:s.declarations)||void 0===n?void 0:n.every(e.isTypeOnlyImportOrExportDeclaration))}var c=Ri(a,111551,!0,!0,r),u=c&&2097152&c.flags?Fi(c):c;o||(o=!!(null===(i=null==c?void 0:c.declarations)||void 0===i?void 0:i.every(e.isTypeOnlyImportOrExportDeclaration)));var l=Ri(a,788968,!0,!1,r);if(u&&u===l){var d=Nl(!1);if(d&&u===d)return e.TypeReferenceSerializationKind.Promise;var _=Yo(u);if(_&&as(_))return o?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!l)return o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var p=Ss(l);return io(p)?o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:3&p.flags?e.TypeReferenceSerializationKind.ObjectType:dx(p,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:dx(p,528)?e.TypeReferenceSerializationKind.BooleanType:dx(p,296)?e.TypeReferenceSerializationKind.NumberLikeType:dx(p,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:dx(p,402653316)?e.TypeReferenceSerializationKind.StringLikeType:Ef(p)?e.TypeReferenceSerializationKind.ArrayLikeType:dx(p,12288)?e.TypeReferenceSerializationKind.ESSymbolType:sC(p)?e.TypeReferenceSerializationKind.TypeWithCallSignature:sf(p)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function uC(t,r,n,i,a){var o=e.getParseTreeNode(t,e.isVariableLikeOrAccessor);if(!o)return e.factory.createToken(130);var s=ta(o),c=!s||133120&s.flags?Me:bf(Yo(s));return 8192&c.flags&&c.symbol===s&&(n|=1048576),a&&(c=Bf(c)),ae.typeToTypeNode(c,r,1024|n,i)}function lC(t,r,n,i){var a=e.getParseTreeNode(t,e.isFunctionLike);if(!a)return e.factory.createToken(130);var o=hu(a);return ae.typeToTypeNode(ku(o),r,1024|n,i)}function dC(t,r,n,i){var a=e.getParseTreeNode(t,e.isExpression);if(!a)return e.factory.createToken(130);var o=tg(MT(a));return ae.typeToTypeNode(o,r,1024|n,i)}function _C(t){return oe.has(e.escapeLeadingUnderscores(t))}function pC(t,r){var n=Yn(t).resolvedSymbol;if(n)return n;var i=t;if(r){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=to(a))}return ei(i,t.escapedText,3257279,void 0,void 0,!0)}function fC(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=pC(r);if(n)return sa(n).valueDeclaration}}}function gC(t){return!!(e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))&&m_(Yo(ta(t)))}function mC(t,r){return function(t,r,n){var i=1024&t.flags?ae.symbolToExpression(t.symbol,111551,r,void 0,n):t===$e?e.factory.createTrue():t===Xe&&e.factory.createFalse();if(i)return i;var a=t.value;return"object"==typeof a?e.factory.createBigIntLiteral(a):"number"==typeof a?e.factory.createNumericLiteral(a):e.factory.createStringLiteral(a)}(Yo(ta(t)),t,r)}function yC(t){return t?(An(t),e.getSourceFileOfNode(t).localJsxFactory||br):br}function vC(t){if(t){var r=e.getSourceFileOfNode(t);if(r){if(r.localJsxFragmentFactory)return r.localJsxFragmentFactory;var n=r.pragmas.get("jsxfrag"),i=e.isArray(n)?n[0]:n;if(i)return r.localJsxFragmentFactory=e.parseIsolatedEntityName(i.arguments.factory,U),r.localJsxFragmentFactory}}if(z.jsxFragmentFactory)return e.parseIsolatedEntityName(z.jsxFragmentFactory,U)}function hC(t){var r=260===t.kind?e.tryCast(t.name,e.isStringLiteral):e.getExternalModuleName(t),n=Ji(r,r,void 0);if(n)return e.getDeclarationOfKind(n,303)}function DC(t,r){if((s&r)!==r&&z.importHelpers){var n=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(n,z)&&!(8388608&t.flags)){var i=function(t,r){l||(l=Ki(t,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,r)||Ae);return l}(n,t);if(i!==Ae)for(var a=r&~s,o=1;o<=4194304;o<<=1)if(a&o){var c=xC(o),u=Qn(i.exports,e.escapeLeadingUnderscores(c),111551);u?524288&o?e.some(bu(u),(function(e){return MD(e)>3}))||In(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,c,4):1048576&o?e.some(bu(u),(function(e){return MD(e)>4}))||In(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,c,5):1024&o&&(e.some(bu(u),(function(e){return MD(e)>2}))||In(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,c,3)):In(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 xC(t){switch(t){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spreadArray";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";case 65536:return"__importStar";case 131072:return"__importDefault";case 262144:return"__makeTemplateObject";case 524288:return"__classPrivateFieldGet";case 1048576:return"__classPrivateFieldSet";case 2097152:return"__classPrivateFieldIn";case 4194304:return"__createBinding";default:return e.Debug.fail("Unrecognized helper")}}function bC(t){return function(t){if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t,t.parent,t.parent.parent))return 168!==t.kind||e.nodeIsPresent(t.body)?HC(t,e.Diagnostics.Decorators_are_not_valid_here):HC(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(171===t.kind||172===t.kind){var r=e.getAllAccessorDeclarations(t.parent.members,t);if(r.firstAccessor.decorators&&t===r.secondAccessor)return HC(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,s=function(t){return!!t.modifiers&&(function(t){switch(t.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(261===t.parent.kind||303===t.parent.kind)return!1;switch(t.kind){case 255:return SC(t,131);case 256:case 179:return SC(t,126);case 257:case 236:case 258:case 169:return!0;case 259:return SC(t,85);default:e.Debug.fail()}}}(t)?HC(t,e.Diagnostics.Modifiers_cannot_appear_here):void 0)}(t);if(void 0!==s)return s;for(var c=0,u=0,l=t.modifiers;u1||e.modifiers[0].kind!==t}function TC(t,r){return void 0===r&&(r=e.Diagnostics.Trailing_comma_not_allowed),!(!t||!t.hasTrailingComma)&&GC(t[0],t.end-",".length,",".length,r)}function CC(t,r){if(t&&0===t.length){var n=t.pos-"<".length;return GC(r,n,e.skipTrivia(r.text,t.end)+">".length-n,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function EC(t){if(U>=3){var n=t.body&&e.isBlock(t.body)&&e.findUseStrictPrologue(t.body.statements);if(n){var i=(o=t.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(In(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,r([In(n,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],a,!1)),!0}}}var o;return!1}function kC(t){var r=e.getSourceFileOfNode(t);return bC(t)||CC(t.typeParameters,r)||function(t){for(var r=!1,n=t.length,i=0;i1||t.typeParameters.hasTrailingComma||t.typeParameters[0].constraint)&&r&&e.fileExtensionIsOneOf(r.fileName,[".mts",".cts"])&&YC(t.typeParameters[0],e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);var n=t.equalsGreaterThanToken,i=e.getLineAndCharacterOfPosition(r,n.pos).line,a=e.getLineAndCharacterOfPosition(r,n.end).line;return i!==a&&YC(n,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}(t,r)||e.isFunctionLikeDeclaration(t)&&EC(t)}function AC(t,r){return TC(r)||function(t,r){if(r&&0===r.length){var n=e.getSourceFileOfNode(t),i=r.pos-"<".length;return GC(n,i,e.skipTrivia(n.text,r.end)+">".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}(t,r)}function FC(t){return function(t){if(t)for(var r=0,n=t;r1){n=242===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 HC(o.declarations[1],n)}var c=s[0];if(c.initializer){var n=242===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 YC(c.name,n)}if(c.type)return YC(c,n=242===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 RC(t){if(t.parameters.length===(171===t.kind?1:2))return e.getThisParameter(t)}function BC(t,r){if(function(t){return e.isDynamicName(t)&&!Os(t)}(t))return YC(t,r)}function jC(t){if(kC(t))return!0;if(168===t.kind){if(204===t.parent.kind){if(t.modifiers&&(1!==t.modifiers.length||131!==e.first(t.modifiers).kind))return HC(t,e.Diagnostics.Modifiers_cannot_appear_here);if(OC(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(MC(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===t.body)return GC(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(IC(t))return!0}if(e.isClassLike(t.parent)){if(U<2&&e.isPrivateIdentifier(t.name))return YC(t.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(8388608&t.flags)return BC(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(168===t.kind&&!t.body)return BC(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(257===t.parent.kind)return BC(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(181===t.parent.kind)return BC(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 JC(t){return e.isStringOrNumericLiteralLike(t)||218===t.kind&&40===t.operator&&8===t.operand.kind}function KC(t){var r,n=t.initializer;if(n){var i=!(JC(n)||function(t){if((e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)&&JC(t.argumentExpression))&&e.isEntityNameExpression(t.expression))return!!(1024&Cx(t).flags)}(n)||110===n.kind||95===n.kind||(r=n,9===r.kind||218===r.kind&&40===r.operator&&9===r.operand.kind)),a=e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t);if(!a||t.type)return YC(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(i)return YC(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 YC(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function zC(t){if(79===t.kind){if("__esModule"===e.idText(t))return function(t,r,n,i,a,o){if(!WC(e.getSourceFileOfNode(r)))return Pn(t,r,n,i,a,o),!0;return!1}("noEmit",t,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var r=0,n=t.elements;r0}function HC(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!WC(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return mn.add(e.createFileDiagnostic(o,s.start,s.length,r,n,i,a)),!0}return!1}function GC(t,r,n,i,a,o,s){var c=e.getSourceFileOfNode(t);return!WC(c)&&(mn.add(e.createFileDiagnostic(c,r,n,i,a,o,s)),!0)}function YC(t,r,n,i,a){return!WC(e.getSourceFileOfNode(t))&&(mn.add(e.createDiagnosticForNode(t,r,n,i,a)),!0)}function XC(t){return 257!==t.kind&&258!==t.kind&&265!==t.kind&&264!==t.kind&&271!==t.kind&&270!==t.kind&&263!==t.kind&&!e.hasSyntacticModifier(t,515)&&HC(t,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function QC(t){if(8388608&t.flags){if(!Yn(t).hasReportedStatementInAmbientContext&&(e.isFunctionLike(t.parent)||e.isAccessor(t.parent)))return Yn(t).hasReportedStatementInAmbientContext=HC(t,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(234===t.parent.kind||261===t.parent.kind||303===t.parent.kind){var r=Yn(t.parent);if(!r.hasReportedStatementInAmbientContext)return r.hasReportedStatementInAmbientContext=HC(t,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function $C(t){if(32&t.numericLiteralFlags){var r=void 0;if(U>=1?r=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,195)?r=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,297)&&(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 YC(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;On(!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 ZC(t){return!!e.forEach(t.elements,(function(t){if(t.isTypeOnly)return HC(t,269===t.kind?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 eE(t,r,n,i){if(1048576&r.flags&&2621440&t.flags){var a=Zg(r,t);if(a)return a;var o=kc(t);if(o){var s=Xg(o,r);if(s)return Kp(r,e.map(s,(function(e){return[function(){return Yo(e)},e.escapedName]})),n,void 0,i)}}}},function(e){e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"}(N||(N={})),e.signatureHasRestParameter=J,e.signatureHasLiteralTypes=K}(c||(c={})),function(e){function t(t,r,n,i){if(void 0===t||void 0===r)return t;var a,o=r(t);return o===t?t:void 0!==o?(a=e.isArray(o)?(i||c)(o):o,e.Debug.assertNode(a,n),a):void 0}function r(t,r,n,i,a){if(void 0===t||void 0===r)return t;var o,s,c=t.length;(void 0===i||i<0)&&(i=0),(void 0===a||a>c-i)&&(a=c-i);var u=-1,l=-1;(i>0||a=2&&(s=function(t,r){for(var n,i=0;i0&&p<=159||191===p)return a;var f=u.factory;switch(p){case 79:return e.Debug.type(a),f.updateIdentifier(a,l(a.typeArguments,c,e.isTypeNodeOrTypeParameterDeclaration));case 160:return e.Debug.type(a),f.updateQualifiedName(a,_(a.left,c,e.isEntityName),_(a.right,c,e.isIdentifier));case 161:return e.Debug.type(a),f.updateComputedPropertyName(a,_(a.expression,c,e.isExpression));case 162:return e.Debug.type(a),f.updateTypeParameterDeclaration(a,_(a.name,c,e.isIdentifier),_(a.constraint,c,e.isTypeNode),_(a.default,c,e.isTypeNode));case 163:return e.Debug.type(a),f.updateParameterDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),_(a.dotDotDotToken,d,e.isDotDotDotToken),_(a.name,c,e.isBindingName),_(a.questionToken,d,e.isQuestionToken),_(a.type,c,e.isTypeNode),_(a.initializer,c,e.isExpression));case 164:return e.Debug.type(a),f.updateDecorator(a,_(a.expression,c,e.isExpression));case 165:return e.Debug.type(a),f.updatePropertySignature(a,l(a.modifiers,c,e.isModifier),_(a.name,c,e.isPropertyName),_(a.questionToken,d,e.isToken),_(a.type,c,e.isTypeNode));case 166:return e.Debug.type(a),f.updatePropertyDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),_(a.name,c,e.isPropertyName),_(a.questionToken||a.exclamationToken,d,e.isQuestionOrExclamationToken),_(a.type,c,e.isTypeNode),_(a.initializer,c,e.isExpression));case 167:return e.Debug.type(a),f.updateMethodSignature(a,l(a.modifiers,c,e.isModifier),_(a.name,c,e.isPropertyName),_(a.questionToken,d,e.isQuestionToken),l(a.typeParameters,c,e.isTypeParameterDeclaration),l(a.parameters,c,e.isParameterDeclaration),_(a.type,c,e.isTypeNode));case 168:return e.Debug.type(a),f.updateMethodDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),_(a.asteriskToken,d,e.isAsteriskToken),_(a.name,c,e.isPropertyName),_(a.questionToken,d,e.isQuestionToken),l(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,u,l),_(a.type,c,e.isTypeNode),o(a.body,c,u,_));case 170:return e.Debug.type(a),f.updateConstructorDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),i(a.parameters,c,u,l),o(a.body,c,u,_));case 171:return e.Debug.type(a),f.updateGetAccessorDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),_(a.name,c,e.isPropertyName),i(a.parameters,c,u,l),_(a.type,c,e.isTypeNode),o(a.body,c,u,_));case 172:return e.Debug.type(a),f.updateSetAccessorDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),_(a.name,c,e.isPropertyName),i(a.parameters,c,u,l),o(a.body,c,u,_));case 169:return e.Debug.type(a),u.startLexicalEnvironment(),u.suspendLexicalEnvironment(),f.updateClassStaticBlockDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),o(a.body,c,u,_));case 173:return e.Debug.type(a),f.updateCallSignature(a,l(a.typeParameters,c,e.isTypeParameterDeclaration),l(a.parameters,c,e.isParameterDeclaration),_(a.type,c,e.isTypeNode));case 174:return e.Debug.type(a),f.updateConstructSignature(a,l(a.typeParameters,c,e.isTypeParameterDeclaration),l(a.parameters,c,e.isParameterDeclaration),_(a.type,c,e.isTypeNode));case 175:return e.Debug.type(a),f.updateIndexSignature(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),l(a.parameters,c,e.isParameterDeclaration),_(a.type,c,e.isTypeNode));case 176:return e.Debug.type(a),f.updateTypePredicateNode(a,_(a.assertsModifier,c,e.isAssertsKeyword),_(a.parameterName,c,e.isIdentifierOrThisTypeNode),_(a.type,c,e.isTypeNode));case 177:return e.Debug.type(a),f.updateTypeReferenceNode(a,_(a.typeName,c,e.isEntityName),l(a.typeArguments,c,e.isTypeNode));case 178:return e.Debug.type(a),f.updateFunctionTypeNode(a,l(a.typeParameters,c,e.isTypeParameterDeclaration),l(a.parameters,c,e.isParameterDeclaration),_(a.type,c,e.isTypeNode));case 179:return e.Debug.type(a),f.updateConstructorTypeNode(a,l(a.modifiers,c,e.isModifier),l(a.typeParameters,c,e.isTypeParameterDeclaration),l(a.parameters,c,e.isParameterDeclaration),_(a.type,c,e.isTypeNode));case 180:return e.Debug.type(a),f.updateTypeQueryNode(a,_(a.exprName,c,e.isEntityName));case 181:return e.Debug.type(a),f.updateTypeLiteralNode(a,l(a.members,c,e.isTypeElement));case 182:return e.Debug.type(a),f.updateArrayTypeNode(a,_(a.elementType,c,e.isTypeNode));case 183:return e.Debug.type(a),f.updateTupleTypeNode(a,l(a.elements,c,e.isTypeNode));case 184:return e.Debug.type(a),f.updateOptionalTypeNode(a,_(a.type,c,e.isTypeNode));case 185:return e.Debug.type(a),f.updateRestTypeNode(a,_(a.type,c,e.isTypeNode));case 186:return e.Debug.type(a),f.updateUnionTypeNode(a,l(a.types,c,e.isTypeNode));case 187:return e.Debug.type(a),f.updateIntersectionTypeNode(a,l(a.types,c,e.isTypeNode));case 188:return e.Debug.type(a),f.updateConditionalTypeNode(a,_(a.checkType,c,e.isTypeNode),_(a.extendsType,c,e.isTypeNode),_(a.trueType,c,e.isTypeNode),_(a.falseType,c,e.isTypeNode));case 189:return e.Debug.type(a),f.updateInferTypeNode(a,_(a.typeParameter,c,e.isTypeParameterDeclaration));case 199:return e.Debug.type(a),f.updateImportTypeNode(a,_(a.argument,c,e.isTypeNode),_(a.qualifier,c,e.isEntityName),r(a.typeArguments,c,e.isTypeNode),a.isTypeOf);case 196:return e.Debug.type(a),f.updateNamedTupleMember(a,t(a.dotDotDotToken,c,e.isDotDotDotToken),t(a.name,c,e.isIdentifier),t(a.questionToken,c,e.isQuestionToken),t(a.type,c,e.isTypeNode));case 190:return e.Debug.type(a),f.updateParenthesizedType(a,_(a.type,c,e.isTypeNode));case 192:return e.Debug.type(a),f.updateTypeOperatorNode(a,_(a.type,c,e.isTypeNode));case 193:return e.Debug.type(a),f.updateIndexedAccessTypeNode(a,_(a.objectType,c,e.isTypeNode),_(a.indexType,c,e.isTypeNode));case 194:return e.Debug.type(a),f.updateMappedTypeNode(a,_(a.readonlyToken,d,e.isReadonlyKeywordOrPlusOrMinusToken),_(a.typeParameter,c,e.isTypeParameterDeclaration),_(a.nameType,c,e.isTypeNode),_(a.questionToken,d,e.isQuestionOrPlusOrMinusToken),_(a.type,c,e.isTypeNode),l(a.members,c,e.isTypeElement));case 195:return e.Debug.type(a),f.updateLiteralTypeNode(a,_(a.literal,c,e.isExpression));case 197:return e.Debug.type(a),f.updateTemplateLiteralType(a,_(a.head,c,e.isTemplateHead),l(a.templateSpans,c,e.isTemplateLiteralTypeSpan));case 198:return e.Debug.type(a),f.updateTemplateLiteralTypeSpan(a,_(a.type,c,e.isTypeNode),_(a.literal,c,e.isTemplateMiddleOrTemplateTail));case 200:return e.Debug.type(a),f.updateObjectBindingPattern(a,l(a.elements,c,e.isBindingElement));case 201:return e.Debug.type(a),f.updateArrayBindingPattern(a,l(a.elements,c,e.isArrayBindingElement));case 202:return e.Debug.type(a),f.updateBindingElement(a,_(a.dotDotDotToken,d,e.isDotDotDotToken),_(a.propertyName,c,e.isPropertyName),_(a.name,c,e.isBindingName),_(a.initializer,c,e.isExpression));case 203:return e.Debug.type(a),f.updateArrayLiteralExpression(a,l(a.elements,c,e.isExpression));case 204:return e.Debug.type(a),f.updateObjectLiteralExpression(a,l(a.properties,c,e.isObjectLiteralElementLike));case 205:return 32&a.flags?(e.Debug.type(a),f.updatePropertyAccessChain(a,_(a.expression,c,e.isExpression),_(a.questionDotToken,d,e.isQuestionDotToken),_(a.name,c,e.isMemberName))):(e.Debug.type(a),f.updatePropertyAccessExpression(a,_(a.expression,c,e.isExpression),_(a.name,c,e.isMemberName)));case 206:return 32&a.flags?(e.Debug.type(a),f.updateElementAccessChain(a,_(a.expression,c,e.isExpression),_(a.questionDotToken,d,e.isQuestionDotToken),_(a.argumentExpression,c,e.isExpression))):(e.Debug.type(a),f.updateElementAccessExpression(a,_(a.expression,c,e.isExpression),_(a.argumentExpression,c,e.isExpression)));case 207:return 32&a.flags?(e.Debug.type(a),f.updateCallChain(a,_(a.expression,c,e.isExpression),_(a.questionDotToken,d,e.isQuestionDotToken),l(a.typeArguments,c,e.isTypeNode),l(a.arguments,c,e.isExpression))):(e.Debug.type(a),f.updateCallExpression(a,_(a.expression,c,e.isExpression),l(a.typeArguments,c,e.isTypeNode),l(a.arguments,c,e.isExpression)));case 208:return e.Debug.type(a),f.updateNewExpression(a,_(a.expression,c,e.isExpression),l(a.typeArguments,c,e.isTypeNode),l(a.arguments,c,e.isExpression));case 209:return e.Debug.type(a),f.updateTaggedTemplateExpression(a,_(a.tag,c,e.isExpression),r(a.typeArguments,c,e.isTypeNode),_(a.template,c,e.isTemplateLiteral));case 210:return e.Debug.type(a),f.updateTypeAssertion(a,_(a.type,c,e.isTypeNode),_(a.expression,c,e.isExpression));case 211:return e.Debug.type(a),f.updateParenthesizedExpression(a,_(a.expression,c,e.isExpression));case 212:return e.Debug.type(a),f.updateFunctionExpression(a,l(a.modifiers,c,e.isModifier),_(a.asteriskToken,d,e.isAsteriskToken),_(a.name,c,e.isIdentifier),l(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,u,l),_(a.type,c,e.isTypeNode),o(a.body,c,u,_));case 213:return e.Debug.type(a),f.updateArrowFunction(a,l(a.modifiers,c,e.isModifier),l(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,u,l),_(a.type,c,e.isTypeNode),_(a.equalsGreaterThanToken,d,e.isEqualsGreaterThanToken),o(a.body,c,u,_));case 214:return e.Debug.type(a),f.updateDeleteExpression(a,_(a.expression,c,e.isExpression));case 215:return e.Debug.type(a),f.updateTypeOfExpression(a,_(a.expression,c,e.isExpression));case 216:return e.Debug.type(a),f.updateVoidExpression(a,_(a.expression,c,e.isExpression));case 217:return e.Debug.type(a),f.updateAwaitExpression(a,_(a.expression,c,e.isExpression));case 218:return e.Debug.type(a),f.updatePrefixUnaryExpression(a,_(a.operand,c,e.isExpression));case 219:return e.Debug.type(a),f.updatePostfixUnaryExpression(a,_(a.operand,c,e.isExpression));case 220:return e.Debug.type(a),f.updateBinaryExpression(a,_(a.left,c,e.isExpression),_(a.operatorToken,d,e.isBinaryOperatorToken),_(a.right,c,e.isExpression));case 221:return e.Debug.type(a),f.updateConditionalExpression(a,_(a.condition,c,e.isExpression),_(a.questionToken,d,e.isQuestionToken),_(a.whenTrue,c,e.isExpression),_(a.colonToken,d,e.isColonToken),_(a.whenFalse,c,e.isExpression));case 222:return e.Debug.type(a),f.updateTemplateExpression(a,_(a.head,c,e.isTemplateHead),l(a.templateSpans,c,e.isTemplateSpan));case 223:return e.Debug.type(a),f.updateYieldExpression(a,_(a.asteriskToken,d,e.isAsteriskToken),_(a.expression,c,e.isExpression));case 224:return e.Debug.type(a),f.updateSpreadElement(a,_(a.expression,c,e.isExpression));case 225:return e.Debug.type(a),f.updateClassExpression(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),_(a.name,c,e.isIdentifier),l(a.typeParameters,c,e.isTypeParameterDeclaration),l(a.heritageClauses,c,e.isHeritageClause),l(a.members,c,e.isClassElement));case 227:return e.Debug.type(a),f.updateExpressionWithTypeArguments(a,_(a.expression,c,e.isExpression),l(a.typeArguments,c,e.isTypeNode));case 228:return e.Debug.type(a),f.updateAsExpression(a,_(a.expression,c,e.isExpression),_(a.type,c,e.isTypeNode));case 229:return 32&a.flags?(e.Debug.type(a),f.updateNonNullChain(a,_(a.expression,c,e.isExpression))):(e.Debug.type(a),f.updateNonNullExpression(a,_(a.expression,c,e.isExpression)));case 230:return e.Debug.type(a),f.updateMetaProperty(a,_(a.name,c,e.isIdentifier));case 232:return e.Debug.type(a),f.updateTemplateSpan(a,_(a.expression,c,e.isExpression),_(a.literal,c,e.isTemplateMiddleOrTemplateTail));case 234:return e.Debug.type(a),f.updateBlock(a,l(a.statements,c,e.isStatement));case 236:return e.Debug.type(a),f.updateVariableStatement(a,l(a.modifiers,c,e.isModifier),_(a.declarationList,c,e.isVariableDeclarationList));case 237:return e.Debug.type(a),f.updateExpressionStatement(a,_(a.expression,c,e.isExpression));case 238:return e.Debug.type(a),f.updateIfStatement(a,_(a.expression,c,e.isExpression),_(a.thenStatement,c,e.isStatement,f.liftToBlock),_(a.elseStatement,c,e.isStatement,f.liftToBlock));case 239:return e.Debug.type(a),f.updateDoStatement(a,s(a.statement,c,u),_(a.expression,c,e.isExpression));case 240:return e.Debug.type(a),f.updateWhileStatement(a,_(a.expression,c,e.isExpression),s(a.statement,c,u));case 241:return e.Debug.type(a),f.updateForStatement(a,_(a.initializer,c,e.isForInitializer),_(a.condition,c,e.isExpression),_(a.incrementor,c,e.isExpression),s(a.statement,c,u));case 242:return e.Debug.type(a),f.updateForInStatement(a,_(a.initializer,c,e.isForInitializer),_(a.expression,c,e.isExpression),s(a.statement,c,u));case 243:return e.Debug.type(a),f.updateForOfStatement(a,_(a.awaitModifier,d,e.isAwaitKeyword),_(a.initializer,c,e.isForInitializer),_(a.expression,c,e.isExpression),s(a.statement,c,u));case 244:return e.Debug.type(a),f.updateContinueStatement(a,_(a.label,c,e.isIdentifier));case 245:return e.Debug.type(a),f.updateBreakStatement(a,_(a.label,c,e.isIdentifier));case 246:return e.Debug.type(a),f.updateReturnStatement(a,_(a.expression,c,e.isExpression));case 247:return e.Debug.type(a),f.updateWithStatement(a,_(a.expression,c,e.isExpression),_(a.statement,c,e.isStatement,f.liftToBlock));case 248:return e.Debug.type(a),f.updateSwitchStatement(a,_(a.expression,c,e.isExpression),_(a.caseBlock,c,e.isCaseBlock));case 249:return e.Debug.type(a),f.updateLabeledStatement(a,_(a.label,c,e.isIdentifier),_(a.statement,c,e.isStatement,f.liftToBlock));case 250:return e.Debug.type(a),f.updateThrowStatement(a,_(a.expression,c,e.isExpression));case 251:return e.Debug.type(a),f.updateTryStatement(a,_(a.tryBlock,c,e.isBlock),_(a.catchClause,c,e.isCatchClause),_(a.finallyBlock,c,e.isBlock));case 253:return e.Debug.type(a),f.updateVariableDeclaration(a,_(a.name,c,e.isBindingName),_(a.exclamationToken,d,e.isExclamationToken),_(a.type,c,e.isTypeNode),_(a.initializer,c,e.isExpression));case 254:return e.Debug.type(a),f.updateVariableDeclarationList(a,l(a.declarations,c,e.isVariableDeclaration));case 255:return e.Debug.type(a),f.updateFunctionDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),_(a.asteriskToken,d,e.isAsteriskToken),_(a.name,c,e.isIdentifier),l(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,u,l),_(a.type,c,e.isTypeNode),o(a.body,c,u,_));case 256:return e.Debug.type(a),f.updateClassDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),_(a.name,c,e.isIdentifier),l(a.typeParameters,c,e.isTypeParameterDeclaration),l(a.heritageClauses,c,e.isHeritageClause),l(a.members,c,e.isClassElement));case 257:return e.Debug.type(a),f.updateInterfaceDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),_(a.name,c,e.isIdentifier),l(a.typeParameters,c,e.isTypeParameterDeclaration),l(a.heritageClauses,c,e.isHeritageClause),l(a.members,c,e.isTypeElement));case 258:return e.Debug.type(a),f.updateTypeAliasDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),_(a.name,c,e.isIdentifier),l(a.typeParameters,c,e.isTypeParameterDeclaration),_(a.type,c,e.isTypeNode));case 259:return e.Debug.type(a),f.updateEnumDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),_(a.name,c,e.isIdentifier),l(a.members,c,e.isEnumMember));case 260:return e.Debug.type(a),f.updateModuleDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),_(a.name,c,e.isModuleName),_(a.body,c,e.isModuleBody));case 261:return e.Debug.type(a),f.updateModuleBlock(a,l(a.statements,c,e.isStatement));case 262:return e.Debug.type(a),f.updateCaseBlock(a,l(a.clauses,c,e.isCaseOrDefaultClause));case 263:return e.Debug.type(a),f.updateNamespaceExportDeclaration(a,_(a.name,c,e.isIdentifier));case 264:return e.Debug.type(a),f.updateImportEqualsDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),a.isTypeOnly,_(a.name,c,e.isIdentifier),_(a.moduleReference,c,e.isModuleReference));case 265:return e.Debug.type(a),f.updateImportDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),_(a.importClause,c,e.isImportClause),_(a.moduleSpecifier,c,e.isExpression),_(a.assertClause,c,e.isAssertClause));case 292:return e.Debug.type(a),f.updateAssertClause(a,l(a.elements,c,e.isAssertEntry),a.multiLine);case 293:return e.Debug.type(a),f.updateAssertEntry(a,_(a.name,c,e.isAssertionKey),_(a.value,c,e.isStringLiteral));case 266:return e.Debug.type(a),f.updateImportClause(a,a.isTypeOnly,_(a.name,c,e.isIdentifier),_(a.namedBindings,c,e.isNamedImportBindings));case 267:return e.Debug.type(a),f.updateNamespaceImport(a,_(a.name,c,e.isIdentifier));case 273:return e.Debug.type(a),f.updateNamespaceExport(a,_(a.name,c,e.isIdentifier));case 268:return e.Debug.type(a),f.updateNamedImports(a,l(a.elements,c,e.isImportSpecifier));case 269:return e.Debug.type(a),f.updateImportSpecifier(a,a.isTypeOnly,_(a.propertyName,c,e.isIdentifier),_(a.name,c,e.isIdentifier));case 270:return e.Debug.type(a),f.updateExportAssignment(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),_(a.expression,c,e.isExpression));case 271:return e.Debug.type(a),f.updateExportDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),a.isTypeOnly,_(a.exportClause,c,e.isNamedExportBindings),_(a.moduleSpecifier,c,e.isExpression),_(a.assertClause,c,e.isAssertClause));case 272:return e.Debug.type(a),f.updateNamedExports(a,l(a.elements,c,e.isExportSpecifier));case 274:return e.Debug.type(a),f.updateExportSpecifier(a,a.isTypeOnly,_(a.propertyName,c,e.isIdentifier),_(a.name,c,e.isIdentifier));case 276:return e.Debug.type(a),f.updateExternalModuleReference(a,_(a.expression,c,e.isExpression));case 277:return e.Debug.type(a),f.updateJsxElement(a,_(a.openingElement,c,e.isJsxOpeningElement),l(a.children,c,e.isJsxChild),_(a.closingElement,c,e.isJsxClosingElement));case 278:return e.Debug.type(a),f.updateJsxSelfClosingElement(a,_(a.tagName,c,e.isJsxTagNameExpression),l(a.typeArguments,c,e.isTypeNode),_(a.attributes,c,e.isJsxAttributes));case 279:return e.Debug.type(a),f.updateJsxOpeningElement(a,_(a.tagName,c,e.isJsxTagNameExpression),l(a.typeArguments,c,e.isTypeNode),_(a.attributes,c,e.isJsxAttributes));case 280:return e.Debug.type(a),f.updateJsxClosingElement(a,_(a.tagName,c,e.isJsxTagNameExpression));case 281:return e.Debug.type(a),f.updateJsxFragment(a,_(a.openingFragment,c,e.isJsxOpeningFragment),l(a.children,c,e.isJsxChild),_(a.closingFragment,c,e.isJsxClosingFragment));case 284:return e.Debug.type(a),f.updateJsxAttribute(a,_(a.name,c,e.isIdentifier),_(a.initializer,c,e.isStringLiteralOrJsxExpression));case 285:return e.Debug.type(a),f.updateJsxAttributes(a,l(a.properties,c,e.isJsxAttributeLike));case 286:return e.Debug.type(a),f.updateJsxSpreadAttribute(a,_(a.expression,c,e.isExpression));case 287:return e.Debug.type(a),f.updateJsxExpression(a,_(a.expression,c,e.isExpression));case 288:return e.Debug.type(a),f.updateCaseClause(a,_(a.expression,c,e.isExpression),l(a.statements,c,e.isStatement));case 289:return e.Debug.type(a),f.updateDefaultClause(a,l(a.statements,c,e.isStatement));case 290:return e.Debug.type(a),f.updateHeritageClause(a,l(a.types,c,e.isExpressionWithTypeArguments));case 291:return e.Debug.type(a),f.updateCatchClause(a,_(a.variableDeclaration,c,e.isVariableDeclaration),_(a.block,c,e.isBlock));case 294:return e.Debug.type(a),f.updatePropertyAssignment(a,_(a.name,c,e.isPropertyName),_(a.initializer,c,e.isExpression));case 295:return e.Debug.type(a),f.updateShorthandPropertyAssignment(a,_(a.name,c,e.isIdentifier),_(a.objectAssignmentInitializer,c,e.isExpression));case 296:return e.Debug.type(a),f.updateSpreadAssignment(a,_(a.expression,c,e.isExpression));case 297:return e.Debug.type(a),f.updateEnumMember(a,_(a.name,c,e.isPropertyName),_(a.initializer,c,e.isExpression));case 303:return e.Debug.type(a),f.updateSourceFile(a,n(a.statements,c,u));case 348:return e.Debug.type(a),f.updatePartiallyEmittedExpression(a,_(a.expression,c,e.isExpression));case 349:return e.Debug.type(a),f.updateCommaListExpression(a,l(a.elements,c,e.isExpression));default:return a}}}}(c||(c={})),function(e){e.createSourceMapGenerator=function(t,r,n,i,o){var s,c,u=o.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,l=u.enter,d=u.exit,_=[],p=[],f=new e.Map,g=[],m=[],y="",v=0,h=0,D=0,x=0,b=0,S=0,T=!1,C=0,E=0,k=0,A=0,F=0,N=0,P=!1,w=!1,I=!1;return{getSources:function(){return _},addSource:O,setSourceContent:M,addName:L,addMapping:R,appendSourceMap:function(t,r,n,i,o,s){e.Debug.assert(t>=C,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),l();for(var c,u=[],_=a(n.mappings),p=_.next();!p.done;p=_.next()){var f=p.value;if(s&&(f.generatedLine>s.line||f.generatedLine===s.line&&f.generatedCharacter>s.character))break;if(!o||!(f.generatedLine=C,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),e.Debug.assert(void 0===n||n>=0,"sourceIndex cannot be negative"),e.Debug.assert(void 0===i||i>=0,"sourceLine cannot be negative"),e.Debug.assert(void 0===a||a>=0,"sourceCharacter cannot be negative"),l(),(function(e,t){return!P||C!==e||E!==t}(t,r)||function(e,t,r){return void 0!==e&&void 0!==t&&void 0!==r&&k===e&&(A>t||A===t&&F>r)}(n,i,a))&&(j(),C=t,E=r,w=!1,I=!1,P=!0),void 0!==n&&void 0!==i&&void 0!==a&&(k=n,A=i,F=a,w=!0,void 0!==o&&(N=o,I=!0)),d()}function B(e){m.push(e),m.length>=1024&&J()}function j(){if(P&&(!T||v!==C||h!==E||D!==k||x!==A||b!==F||S!==N)){if(l(),v0&&(y+=String.fromCharCode.apply(void 0,m),m.length=0)}function K(){return j(),J(),{version:3,file:r,sourceRoot:n,sources:p,names:g,mappings:y,sourcesContent:s}}function z(t){t<0?t=1+(-t<<1):t<<=1;do{var r=31&t;(t>>=5)>0&&(r|=32),B((n=r)>=0&&n<26?65+n:n>=26&&n<52?97+n-26:n>=52&&n<62?48+n-52:62===n?43:63===n?47:e.Debug.fail("".concat(n,": not a base64 value")))}while(t>0);var n}};var t=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,r=/^\s*(\/\/[@#] .*)?$/;function n(e){return"string"==typeof e||null===e}function i(t){return null!==t&&"object"==typeof t&&3===t.version&&"string"==typeof t.file&&"string"==typeof t.mappings&&e.isArray(t.sources)&&e.every(t.sources,e.isString)&&(void 0===t.sourceRoot||null===t.sourceRoot||"string"==typeof t.sourceRoot)&&(void 0===t.sourcesContent||null===t.sourcesContent||e.isArray(t.sourcesContent)&&e.every(t.sourcesContent,n))&&(void 0===t.names||null===t.names||e.isArray(t.names)&&e.every(t.names,e.isString))}function a(e){var t,r=!1,n=0,i=0,a=0,o=0,s=0,c=0,u=0;return{get pos(){return n},get error(){return t},get state(){return l(!0,!0)},next:function(){for(;!r&&n=e.length)return _("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 _("Invalid character in VLQ"),-1;r=0!=(32&o),a|=(31&o)<>=1:a=-(a>>=1),a}}function o(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function s(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function c(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function u(t,r){return e.Debug.assert(t.sourceIndex===r.sourceIndex),e.compareValues(t.sourcePosition,r.sourcePosition)}function l(t,r){return e.compareValues(t.generatedPosition,r.generatedPosition)}function d(e){return e.sourcePosition}function _(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(n){for(var i=n.getLineCount()-1;i>=0;i--){var a=n.getLineText(i),o=t.exec(a);if(o)return e.trimStringEnd(o[1]);if(!a.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,p,f,g=e.getDirectoryPath(n),m=r.sourceRoot?e.getNormalizedAbsolutePath(r.sourceRoot,g):g,y=e.getNormalizedAbsolutePath(r.file,g),v=t.getSourceFileLike(y),h=r.sources.map((function(t){return e.getNormalizedAbsolutePath(t,m)})),D=new e.Map(h.map((function(e,r){return[t.getCanonicalFileName(e),r]})));return{getSourcePosition:function(t){var r=T();if(!e.some(r))return t;var n=e.binarySearchKey(r,t.pos,_,e.compareValues);n<0&&(n=~n);var i=r[n];if(void 0===i||!s(i))return t;return{fileName:h[i.sourceIndex],pos:i.sourcePosition}},getGeneratedPosition:function(r){var n=D.get(t.getCanonicalFileName(r.fileName));if(void 0===n)return r;var i=S(n);if(!e.some(i))return r;var a=e.binarySearchKey(i,r.pos,d,e.compareValues);a<0&&(a=~a);var o=i[a];if(void 0===o||o.sourceIndex!==n)return r;return{fileName:y,pos:o.generatedPosition}}};function x(n){var i,a,s=void 0!==v?e.getPositionOfLineAndCharacter(v,n.generatedLine,n.generatedCharacter,!0):-1;if(o(n)){var c=t.getSourceFileLike(h[n.sourceIndex]);i=r.sources[n.sourceIndex],a=void 0!==c?e.getPositionOfLineAndCharacter(c,n.sourceLine,n.sourceCharacter,!0):-1}return{generatedPosition:s,source:i,sourceIndex:n.sourceIndex,sourcePosition:a,nameIndex:n.nameIndex}}function b(){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: ".concat(n.error)),i=e.emptyArray):i=o}return i}function S(t){if(void 0===f){for(var r=[],n=0,i=b();n0&&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=64&&e<=78},e.getNonAssignmentOperatorForCompoundAssignment=function(e){switch(e){case 64:return 39;case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 47;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 78:return 52;case 75:return 56;case 76:return 55;case 77:return 60}},e.addPrologueDirectivesAndInitialSuperCall=function(t,r,n,i){if(r.body){var a=r.body.statements,o=t.copyPrologue(a,n,!1,i);if(o===a.length)return o;var s=e.findIndex(a,(function(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)}),o);if(s>-1){for(var c=o;c<=s;c++)n.push(e.visitNode(a[c],i,e.isStatement));return s+1}return o}return 0},e.getProperties=function(t,r,n){return e.filter(t.members,(function(t){return function(t,r,n){return e.isPropertyDeclaration(t)&&(!!t.initializer||!r)&&e.hasStaticModifier(t)===n}(t,r,n)}))},e.getStaticPropertiesAndClassStaticBlock=function(t){return e.filter(t.members,c)},e.isInitializedProperty=function(e){return 166===e.kind&&void 0!==e.initializer},e.isNonStaticMethodOrAccessorWithPrivateName=function(t){return!e.isStatic(t)&&e.isMethodOrAccessor(t)&&e.isPrivateIdentifier(t.name)}}(c||(c={})),function(e){var t;function r(t,n){var i=e.getTargetOfBindingOrAssignmentElement(t);return e.isBindingOrAssignmentPattern(i)?function(t,n){for(var i=e.getElementsOfBindingOrAssignmentPattern(t),a=0,o=i;a=1)||49152&f.transformFlags||49152&e.getTargetOfBindingOrAssignmentElement(f).transformFlags||e.isComputedPropertyName(g)){u&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),a,c,n),u=void 0);var m=o(t,a,g);e.isComputedPropertyName(g)&&(l=e.append(l,m.argumentExpression)),i(t,f,m,f)}else u=e.append(u,e.visitNode(f,t.visitor))}}u&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),a,c,n)}(t,r,l,n,c):e.isArrayBindingOrAssignmentPattern(l)?function(t,r,n,o,c){var u,l,d=e.getElementsOfBindingOrAssignmentPattern(n),_=d.length;if(t.level<1&&t.downlevelIteration)o=s(t,e.setTextRange(t.context.getEmitHelperFactory().createReadHelper(o,_>0&&e.getRestIndicatorOfBindingOrAssignmentElement(d[_-1])?void 0:_),c),!1,c);else if(1!==_&&(t.level<1||0===_)||e.every(d,e.isOmittedExpression)){o=s(t,o,!e.isDeclarationBindingElement(r)||0!==_,c)}for(var p=0;p<_;p++){var f=d[p];if(t.level>=1)if(32768&f.transformFlags||t.hasTransformedPriorElement&&!a(f)){t.hasTransformedPriorElement=!0;var g=t.context.factory.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(g),l=e.append(l,[g,f]),u=e.append(u,t.createArrayBindingOrAssignmentElement(g))}else u=e.append(u,f);else{if(e.isOmittedExpression(f))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(f)){if(p===_-1){m=t.context.factory.createArraySliceCall(o,p);i(t,f,m,f)}}else{var m=t.context.factory.createElementAccessExpression(o,p);i(t,f,m,f)}}}u&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(u),o,c,n);if(l)for(var y=0,v=l;y1&&(d.push(_.createEndOfDeclarationMarker(i)),e.setEmitFlags(c,4194304|e.getEmitFlags(c)));return e.singleOrMany(d)}(o);case 225:return function(r){if(!j(r))return e.visitEachChild(r,k,t);var n=_.createClassExpression(void 0,void 0,r.name,void 0,e.visitNodes(r.heritageClauses,k,e.isHeritageClause),J(r));return e.setOriginalNode(n,r),e.setTextRange(n,r),n}(o);case 290:return function(r){if(117===r.token)return;return e.visitEachChild(r,k,t)}(o);case 227:return function(t){return _.updateExpressionWithTypeArguments(t,e.visitNode(t.expression,k,e.isLeftHandSideExpression),void 0)}(o);case 168:return function(r){if(!oe(r))return;var n=_.updateMethodDeclaration(r,void 0,e.visitNodes(r.modifiers,M,e.isModifier),r.asteriskToken,ae(r),void 0,void 0,e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t));n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r)));return n}(o);case 171:return function(r){if(!le(r))return;var n=_.updateGetAccessorDeclaration(r,void 0,e.visitNodes(r.modifiers,M,e.isModifier),ae(r),e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t)||_.createBlock([]));n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r)));return n}(o);case 172:return function(r){if(!le(r))return;var n=_.updateSetAccessorDeclaration(r,void 0,e.visitNodes(r.modifiers,M,e.isModifier),ae(r),e.visitParameterList(r.parameters,k,t),e.visitFunctionBody(r.body,k,t)||_.createBlock([]));n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r)));return n}(o);case 255:return function(r){if(!oe(r))return _.createNotEmittedStatement(r);var n=_.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,M,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t)||_.createBlock([]));if(Te(r)){var i=[n];return Ae(i,r),i}return n}(o);case 212:return function(r){if(!oe(r))return _.createOmittedExpression();return _.updateFunctionExpression(r,e.visitNodes(r.modifiers,M,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t)||_.createBlock([]))}(o);case 213:return function(r){return _.updateArrowFunction(r,e.visitNodes(r.modifiers,M,e.isModifier),void 0,e.visitParameterList(r.parameters,k,t),void 0,r.equalsGreaterThanToken,e.visitFunctionBody(r.body,k,t))}(o);case 163:return function(t){if(e.parameterIsThisKeyword(t))return;var r=_.updateParameterDeclaration(t,void 0,void 0,t.dotDotDotToken,e.visitNode(t.name,k,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,k,e.isExpression));r!==t&&(e.setCommentRange(r,t),e.setTextRange(r,e.moveRangePastModifiers(t)),e.setSourceMapRange(r,e.moveRangePastModifiers(t)),e.setEmitFlags(r.name,32));return r}(o);case 211:return function(n){var i=e.skipOuterExpressions(n.expression,-7);if(e.isAssertionExpression(i)){var a=e.visitNode(n.expression,k,e.isExpression);return e.length(e.getLeadingCommentRangesOfNode(a,r))?_.updateParenthesizedExpression(n,a):_.createPartiallyEmittedExpression(a,n)}return e.visitEachChild(n,k,t)}(o);case 210:case 228:return function(t){var r=e.visitNode(t.expression,k,e.isExpression);return _.createPartiallyEmittedExpression(r,t)}(o);case 207:return function(t){return _.updateCallExpression(t,e.visitNode(t.expression,k,e.isExpression),void 0,e.visitNodes(t.arguments,k,e.isExpression))}(o);case 208:return function(t){return _.updateNewExpression(t,e.visitNode(t.expression,k,e.isExpression),void 0,e.visitNodes(t.arguments,k,e.isExpression))}(o);case 209:return function(t){return _.updateTaggedTemplateExpression(t,e.visitNode(t.tag,k,e.isExpression),void 0,e.visitNode(t.template,k,e.isExpression))}(o);case 229:return function(t){var r=e.visitNode(t.expression,k,e.isLeftHandSideExpression);return _.createPartiallyEmittedExpression(r,t)}(o);case 259:return function(t){if(!function(t){return!e.isEnumConst(t)||e.shouldPreserveConstEnums(h)}(t))return _.createNotEmittedStatement(t);var n=[],o=2,s=me(n,t);s&&(b===e.ModuleKind.System&&a===r||(o|=512));var c=Pe(t),u=we(t),l=e.hasSyntacticModifier(t,1)?_.getExternalModuleOrNamespaceExportName(i,t,!1,!0):_.getLocalName(t,!1,!0),d=_.createLogicalOr(l,_.createAssignment(l,_.createObjectLiteralExpression()));if(pe(t)){var p=_.getLocalName(t,!1,!0);d=_.createAssignment(p,d)}var g=_.createExpressionStatement(_.createCallExpression(_.createFunctionExpression(void 0,void 0,void 0,void 0,[_.createParameterDeclaration(void 0,void 0,void 0,c)],void 0,function(t,r){var n=i;i=r;var a=[];f();var o=e.map(t.members,_e);return e.insertStatementsAfterStandardPrologue(a,m()),e.addRange(a,o),i=n,_.createBlock(e.setTextRange(_.createNodeArray(a),t.members),!0)}(t,u)),void 0,[d]));e.setOriginalNode(g,t),s&&(e.setSyntheticLeadingComments(g,void 0),e.setSyntheticTrailingComments(g,void 0));return e.setTextRange(g,t),e.addEmitFlags(g,o),n.push(g),n.push(_.createEndOfDeclarationMarker(t)),n}(o);case 236:return function(r){if(Te(r)){var n=e.getInitializedVariables(r.declarationList);if(0===n.length)return;return e.setTextRange(_.createExpressionStatement(_.inlineExpressions(e.map(n,de))),r)}return e.visitEachChild(r,k,t)}(o);case 253:return function(t){return _.updateVariableDeclaration(t,e.visitNode(t.name,k,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,k,e.isExpression))}(o);case 260:return ye(o);case 264:return Se(o);case 278:return function(t){return _.updateJsxSelfClosingElement(t,e.visitNode(t.tagName,k,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,k,e.isJsxAttributes))}(o);case 279:return function(t){return _.updateJsxOpeningElement(t,e.visitNode(t.tagName,k,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,k,e.isJsxAttributes))}(o);default:return e.visitEachChild(o,k,t)}}function R(r){var n=e.getStrictOptionValue(h,"alwaysStrict")&&!(e.isExternalModule(r)&&b>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(r);return _.updateSourceFile(r,e.visitLexicalEnvironment(r.statements,F,t,0,n))}function B(e){return!!(4096&e.transformFlags)}function j(t){return e.some(t.decorators)||e.some(t.typeParameters)||e.some(t.heritageClauses,B)||e.some(t.members,B)}function J(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;a0&&e.parameterIsThisKeyword(n[0]),a=i?1:0,o=i?n.length-1:n.length,s=0;s0?166===r.kind?_.createVoidZero():_.createNull():void 0,s=p().createDecorateHelper(n,i,a,o);return e.setTextRange(s,e.moveRangePastDecorators(r)),e.setEmitFlags(s,1536),s}}function G(t){return e.visitNode(t.expression,k,e.isExpression)}function Y(t,r){var n;if(t){n=[];for(var i=0,a=t;i=2,g=d<=8||!_,m=t.onSubstituteNode;t.onSubstituteNode=function(t,r){if(r=m(t,r),1===t)return function(t){switch(t.kind){case 79:return function(t){return function(t){if(1&y&&33554432&u.getNodeCheckFlags(t)){var r=u.getReferencedValueDeclaration(t);if(r){var i=v[r.id];if(i){var a=n.cloneNode(i);return e.setSourceMapRange(a,t),e.setCommentRange(a,t),a}}}return}(t)||t}(t);case 108:return function(t){if(2&y&&b){var r=b.facts,i=b.classConstructor;if(1&r)return n.createParenthesizedExpression(n.createVoidZero());if(i)return e.setTextRange(e.setOriginalNode(n.cloneNode(i),t),t)}return t}(t)}return t}(r);return r};var y,v,h,D,x=t.onEmitNode;t.onEmitNode=function(t,r,n){var i=e.getOriginalNode(r);if(i.id){var a=E.get(i.id);if(a){var o=b,s=S;return b=a,S=a,x(t,r,n),b=o,void(S=s)}}switch(r.kind){case 212:if(e.isArrowFunction(i)||262144&e.getEmitFlags(r))break;case 255:case 170:o=b,s=S;return b=void 0,S=void 0,x(t,r,n),b=o,void(S=s);case 171:case 172:case 168:case 166:o=b,s=S;return S=b,b=void 0,x(t,r,n),b=o,void(S=s);case 161:o=b,s=S;return b=S,S=void 0,x(t,r,n),b=o,void(S=s)}x(t,r,n)};var b,S,T,C=[],E=new e.Map;return e.chainBundle(t,(function(r){var n=t.getCompilerOptions();if(r.isDeclarationFile||_&&99===e.getEmitScriptTarget(n))return r;var i=e.visitEachChild(r,F,t);return e.addEmitHelpers(i,t.readEmitHelpers()),i}));function k(a,o){if(8388608&a.transformFlags)switch(a.kind){case 225:case 256:return function(r){if(!e.forEach(r.members,j))return e.visitEachChild(r,F,t);var a=h;if(h=void 0,function(){C.push(b),b=void 0}(),p){var o=e.getNameOfDeclaration(r);o&&e.isIdentifier(o)&&(Y().className=e.idText(o));var s=J(r);e.some(s)&&(Y().weakSetName=$("instances",s[0].name))}var l=e.isClassDeclaration(r)?function(t){var r=K(t);r&&(G().facts=r);8&r&&W();var a,o=e.getStaticPropertiesAndClassStaticBlock(t);if(2&r){var s=n.createTempVariable(i,!0);G().classConstructor=n.cloneNode(s),a=n.createAssignment(s,n.getInternalName(t))}var c=e.getEffectiveBaseTypeNode(t),u=!(!c||104===e.skipOuterExpressions(c.expression).kind),l=[n.updateClassDeclaration(t,void 0,t.modifiers,t.name,void 0,e.visitNodes(t.heritageClauses,N,e.isHeritageClause),z(t,u))];a&&X().unshift(a);e.some(h)&&l.push(n.createExpressionStatement(n.inlineExpressions(h)));e.some(o)&&V(l,o,n.getInternalName(t));return l}(r):function(r){var a=K(r);a&&(G().facts=a);8&a&&W();var o,s=!!(1&a),l=e.getStaticPropertiesAndClassStaticBlock(r),d=e.getEffectiveBaseTypeNode(r),_=!(!d||104===e.skipOuterExpressions(d.expression).kind),f=16777216&u.getNodeCheckFlags(r);function g(){var e=u.getNodeCheckFlags(r),t=16777216&e,a=524288&e;return n.createTempVariable(a?c:i,!!t)}2&a&&(o=g(),G().classConstructor=n.cloneNode(o));var m=n.updateClassExpression(r,e.visitNodes(r.decorators,F,e.isDecorator),r.modifiers,r.name,void 0,e.visitNodes(r.heritageClauses,N,e.isHeritageClause),z(r,_));if(e.some(l,(function(t){return e.isClassStaticBlockDeclaration(t)||!!t.initializer||p&&e.isPrivateIdentifier(t.name)}))||e.some(h)){if(s)return e.Debug.assertIsDefined(D,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),D&&h&&e.some(h)&&D.push(n.createExpressionStatement(n.inlineExpressions(h))),D&&e.some(l)&&V(D,l,n.getInternalName(r)),o?n.inlineExpressions([n.createAssignment(o,m),o]):m;var x=[];if(o||(o=g()),f){0==(1&y)&&(y|=1,t.enableSubstitution(79),v=[]);var b=n.cloneNode(o);b.autoGenerateFlags&=-9,v[e.getOriginalNodeId(r)]=b}return e.setEmitFlags(m,65536|e.getEmitFlags(m)),x.push(e.startOnNewLine(n.createAssignment(o,m))),e.addRange(x,e.map(h,e.startOnNewLine)),e.addRange(x,function(t,r){for(var n=[],i=0,a=t;id&&(_||e.addRange(f,e.visitNodes(i.body.statements,F,e.isStatement,d,g-d)),d=g)}var m=n.createThis();(function(t,r,i){if(!p||!e.some(r))return;var a=Y().weakSetName;e.Debug.assert(a,"weakSetName should be set in private identifier environment"),t.push(n.createExpressionStatement(function(t,r){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(r,"add"),void 0,[t])}(i,a)))})(f,u,m),V(f,c,m),i&&e.addRange(f,e.visitNodes(i.body.statements,F,e.isStatement,d));return f=n.mergeLexicalEnvironment(f,a()),e.setTextRange(n.createBlock(e.setTextRange(n.createNodeArray(f),i?i.body.statements:r.members),!0),i?i.body:void 0)}(r,o,i);if(!l)return;return e.startOnNewLine(e.setOriginalNode(e.setTextRange(n.createConstructorDeclaration(void 0,void 0,null!=u?u:[],l),o||r),o))}(r,i);return f&&d.push(f),e.addRange(d,e.visitNodes(r.members,w,e.isClassElement)),e.setTextRange(n.createNodeArray(d),r.members)}function U(t){return!e.isStatic(t)&&!e.hasSyntacticModifier(e.getOriginalNode(t),128)&&(_?d<99:e.isInitializedProperty(t)||p&&e.isPrivateIdentifierClassElementDeclaration(t))}function V(t,r,i){for(var a=0,o=r;a=0;--r){var n,i=C[r];if(i)if(n=null===(t=i.privateIdentifierEnvironment)||void 0===t?void 0:t.identifiers.get(e.escapedText))return n}}function te(r){var a=n.getGeneratedNameForNode(r),o=ee(r.name);if(!o)return e.visitEachChild(r,F,t);var s=r.expression;return(e.isThisProperty(r)||e.isSuperProperty(r)||!e.isSimpleCopiableExpression(r.expression))&&(s=n.createTempVariable(i,!0),X().push(n.createBinaryExpression(s,63,e.visitNode(r.expression,F,e.isExpression)))),n.createAssignmentTargetWrapper(a,B(o,s,a,63))}function re(t){var r=e.getTargetOfBindingOrAssignmentElement(t);if(r){var i=void 0;if(e.isPrivateIdentifierPropertyAccessExpression(r))i=te(r);else if(f&&e.isSuperProperty(r)&&T&&b){var a=b.classConstructor,o=b.superClassReference;if(1&b.facts)i=H(r);else if(a&&o){var s=e.isElementAccessExpression(r)?e.visitNode(r.argumentExpression,F,e.isExpression):e.isIdentifier(r.name)?n.createStringLiteralFromNode(r.name):void 0;if(s){var c=n.createTempVariable(void 0);i=n.createAssignmentTargetWrapper(c,n.createReflectSetCall(o,s,c,a))}}}if(i)return e.isAssignmentExpression(t)?n.updateBinaryExpression(t,i,t.operatorToken,e.visitNode(t.right,F,e.isExpression)):e.isSpreadElement(t)?n.updateSpreadElement(t,i):i}return e.visitNode(t,P)}function ne(t){if(e.isObjectBindingOrAssignmentElement(t)&&!e.isShorthandPropertyAssignment(t)){var r=e.getTargetOfBindingOrAssignmentElement(t),i=void 0;if(r)if(e.isPrivateIdentifierPropertyAccessExpression(r))i=te(r);else if(f&&e.isSuperProperty(r)&&T&&b){var a=b.classConstructor,o=b.superClassReference;if(1&b.facts)i=H(r);else if(a&&o){var s=e.isElementAccessExpression(r)?e.visitNode(r.argumentExpression,F,e.isExpression):e.isIdentifier(r.name)?n.createStringLiteralFromNode(r.name):void 0;if(s){var c=n.createTempVariable(void 0);i=n.createAssignmentTargetWrapper(c,n.createReflectSetCall(o,s,c,a))}}}if(e.isPropertyAssignment(t)){var u=e.getInitializerOfBindingOrAssignmentElement(t);return n.updatePropertyAssignment(t,e.visitNode(t.name,F,e.isPropertyName),i?u?n.createAssignment(i,e.visitNode(u,F)):i:e.visitNode(t.initializer,P,e.isExpression))}if(e.isSpreadAssignment(t))return n.updateSpreadAssignment(t,i||e.visitNode(t.expression,P,e.isExpression));e.Debug.assert(void 0===i,"Should not have generated a wrapped target")}return e.visitNode(t,F)}}}(c||(c={})),function(e){var t,n;function i(t,r,n,i){var a=0!=(4096&r.getNodeCheckFlags(n)),o=[];return i.forEach((function(r,n){var i=e.unescapeLeadingUnderscores(n),s=[];s.push(t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(t.createPropertyAccessExpression(e.setEmitFlags(t.createSuper(),4),i),4)))),a&&s.push(t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,t.createAssignment(e.setEmitFlags(t.createPropertyAccessExpression(e.setEmitFlags(t.createSuper(),4),i),4),t.createIdentifier("v"))))),o.push(t.createPropertyAssignment(i,t.createObjectLiteralExpression(s)))})),t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_super",48),void 0,void 0,t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[t.createNull(),t.createObjectLiteralExpression(o,!0)]))],2))}!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),function(e){e[e.NonTopLevel=1]="NonTopLevel",e[e.HasLexicalThis=2]="HasLexicalThis"}(n||(n={})),e.transformES2017=function(t){var n,a,o,s,c=t.factory,u=t.getEmitHelperFactory,l=t.resumeLexicalEnvironment,d=t.endLexicalEnvironment,_=t.hoistVariableDeclaration,p=t.getEmitResolver(),f=t.getCompilerOptions(),g=e.getEmitScriptTarget(f),m=0,y=[],v=0,h=t.onEmitNode,D=t.onSubstituteNode;return t.onEmitNode=function(t,r,i){if(1&n&&function(e){var t=e.kind;return 256===t||170===t||168===t||171===t||172===t}(r)){var a=6144&p.getNodeCheckFlags(r);if(a!==m){var o=m;return m=a,h(t,r,i),void(m=o)}}else if(n&&y[e.getNodeId(r)]){o=m;return m=0,h(t,r,i),void(m=o)}h(t,r,i)},t.onSubstituteNode=function(t,n){if(n=D(t,n),1===t&&m)return function(t){switch(t.kind){case 205:return J(t);case 206:return K(t);case 207:return function(t){var n=t.expression;if(e.isSuperProperty(n)){var i=e.isPropertyAccessExpression(n)?J(n):K(n);return c.createCallExpression(c.createPropertyAccessExpression(i,"call"),void 0,r([c.createThis()],t.arguments,!0))}return t}(t)}return t}(n);return n},e.chainBundle(t,(function(r){if(r.isDeclarationFile)return r;x(1,!1),x(2,!e.isEffectiveStrictModeSourceFile(r,f));var n=e.visitEachChild(r,E,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}));function x(e,t){v=t?v|e:v&~e}function b(e){return 0!=(v&e)}function S(){return b(2)}function T(e,t,r){var n=e&~v;if(n){x(n,!0);var i=t(r);return x(n,!1),i}return t(r)}function C(r){return e.visitEachChild(r,E,t)}function E(r){if(0==(128&r.transformFlags))return r;switch(r.kind){case 131:return;case 217:return function(r){if(!b(1))return e.visitEachChild(r,E,t);return e.setOriginalNode(e.setTextRange(c.createYieldExpression(void 0,e.visitNode(r.expression,E,e.isExpression)),r),r)}(r);case 168:return T(3,A,r);case 255:return T(3,F,r);case 212:return T(3,N,r);case 213:return T(1,P,r);case 205:return o&&e.isPropertyAccessExpression(r)&&106===r.expression.kind&&o.add(r.name.escapedText),e.visitEachChild(r,E,t);case 206:return o&&106===r.expression.kind&&(s=!0),e.visitEachChild(r,E,t);case 171:case 172:case 170:case 256:case 225:return T(3,C,r);default:return e.visitEachChild(r,E,t)}}function k(r){if(e.isNodeWithPossibleHoistedDeclaration(r))switch(r.kind){case 236:return function(r){if(I(r.declarationList)){var n=O(r.declarationList,!1);return n?c.createExpressionStatement(n):void 0}return e.visitEachChild(r,E,t)}(r);case 241:return function(r){var n=r.initializer;return c.updateForStatement(r,I(n)?O(n,!1):e.visitNode(r.initializer,E,e.isForInitializer),e.visitNode(r.condition,E,e.isExpression),e.visitNode(r.incrementor,E,e.isExpression),e.visitIterationBody(r.statement,k,t))}(r);case 242:return function(r){return c.updateForInStatement(r,I(r.initializer)?O(r.initializer,!0):e.visitNode(r.initializer,E,e.isForInitializer),e.visitNode(r.expression,E,e.isExpression),e.visitIterationBody(r.statement,k,t))}(r);case 243:return function(r){return c.updateForOfStatement(r,e.visitNode(r.awaitModifier,E,e.isToken),I(r.initializer)?O(r.initializer,!0):e.visitNode(r.initializer,E,e.isForInitializer),e.visitNode(r.expression,E,e.isExpression),e.visitIterationBody(r.statement,k,t))}(r);case 291:return function(r){var n,i=new e.Set;if(w(r.variableDeclaration,i),i.forEach((function(t,r){a.has(r)&&(n||(n=new e.Set(a)),n.delete(r))})),n){var o=a;a=n;var s=e.visitEachChild(r,k,t);return a=o,s}return e.visitEachChild(r,k,t)}(r);case 234:case 248:case 262:case 288:case 289:case 251:case 239:case 240:case 238:case 247:case 249:return e.visitEachChild(r,k,t);default:return e.Debug.assertNever(r,"Unhandled node.")}return E(r)}function A(r){return c.updateMethodDeclaration(r,void 0,e.visitNodes(r.modifiers,E,e.isModifier),r.asteriskToken,r.name,void 0,void 0,e.visitParameterList(r.parameters,E,t),void 0,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,E,t))}function F(r){return c.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,E,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,E,t),void 0,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,E,t))}function N(r){return c.updateFunctionExpression(r,e.visitNodes(r.modifiers,E,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,E,t),void 0,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,E,t))}function P(r){return c.updateArrowFunction(r,e.visitNodes(r.modifiers,E,e.isModifier),void 0,e.visitParameterList(r.parameters,E,t),void 0,r.equalsGreaterThanToken,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,E,t))}function w(t,r){var n=t.name;if(e.isIdentifier(n))r.add(n.escapedText);else for(var i=0,a=n.elements;i=2&&6144&p.getNodeCheckFlags(r);if(P&&(0==(1&n)&&(n|=1,t.enableSubstitution(207),t.enableSubstitution(205),t.enableSubstitution(206),t.enableEmitNotification(256),t.enableEmitNotification(168),t.enableEmitNotification(171),t.enableEmitNotification(172),t.enableEmitNotification(170),t.enableEmitNotification(236)),o.size)){var I=i(c,p,r,o);y[e.getNodeId(I)]=!0,e.insertStatementsAfterStandardPrologue(F,[I])}var O=c.createBlock(F,!0);e.setTextRange(O,r.body),P&&s&&(4096&p.getNodeCheckFlags(r)?e.addEmitHelper(O,e.advancedAsyncSuperHelper):2048&p.getNodeCheckFlags(r)&&e.addEmitHelper(O,e.asyncSuperHelper)),b=O}return a=h,m||(o=T,s=C),b}function j(t,r){return e.isBlock(t)?c.updateBlock(t,e.visitNodes(t.statements,k,e.isStatement,r)):c.converters.convertToFunctionBlock(e.visitNode(t,k,e.isConciseBody))}function J(t){return 106===t.expression.kind?e.setTextRange(c.createPropertyAccessExpression(c.createUniqueName("_super",48),t.name),t):t}function K(t){return 106===t.expression.kind?(r=t.argumentExpression,n=t,4096&m?e.setTextRange(c.createPropertyAccessExpression(c.createCallExpression(c.createUniqueName("_superIndex",48),void 0,[r]),"value"),n):e.setTextRange(c.createCallExpression(c.createUniqueName("_superIndex",48),void 0,[r]),n)):t;var r,n}},e.createSuperAccessVariableStatement=i}(c||(c={})),function(e){var t,n;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),function(e){e[e.None=0]="None",e[e.HasLexicalThis=1]="HasLexicalThis",e[e.IterationContainer=2]="IterationContainer",e[e.AncestorFactsMask=3]="AncestorFactsMask",e[e.SourceFileIncludes=1]="SourceFileIncludes",e[e.SourceFileExcludes=2]="SourceFileExcludes",e[e.StrictModeSourceFileIncludes=0]="StrictModeSourceFileIncludes",e[e.ClassOrFunctionIncludes=1]="ClassOrFunctionIncludes",e[e.ClassOrFunctionExcludes=2]="ClassOrFunctionExcludes",e[e.ArrowFunctionIncludes=0]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=2]="ArrowFunctionExcludes",e[e.IterationStatementIncludes=2]="IterationStatementIncludes",e[e.IterationStatementExcludes=0]="IterationStatementExcludes"}(n||(n={})),e.transformES2018=function(t){var n=t.factory,i=t.getEmitHelperFactory,a=t.resumeLexicalEnvironment,o=t.endLexicalEnvironment,s=t.hoistVariableDeclaration,c=t.getEmitResolver(),u=t.getCompilerOptions(),l=e.getEmitScriptTarget(u),d=t.onEmitNode;t.onEmitNode=function(t,r,n){if(1&p&&function(e){var t=e.kind;return 256===t||170===t||168===t||171===t||172===t}(r)){var i=6144&c.getNodeCheckFlags(r);if(i!==D){var a=D;return D=i,d(t,r,n),void(D=a)}}else if(p&&b[e.getNodeId(r)]){a=D;return D=0,d(t,r,n),void(D=a)}d(t,r,n)};var _=t.onSubstituteNode;t.onSubstituteNode=function(t,i){if(i=_(t,i),1===t&&D)return function(t){switch(t.kind){case 205:return W(t);case 206:return H(t);case 207:return function(t){var i=t.expression;if(e.isSuperProperty(i)){var a=e.isPropertyAccessExpression(i)?W(i):H(i);return n.createCallExpression(n.createPropertyAccessExpression(a,"call"),void 0,r([n.createThis()],t.arguments,!0))}return t}(t)}return t}(i);return i};var p,f,g,m,y,v,h=!1,D=0,x=0,b=[];return e.chainBundle(t,(function(r){if(r.isDeclarationFile)return r;g=r;var i=function(r){var i=S(2,e.isEffectiveStrictModeSourceFile(r,u)?0:1);h=!1;var a=e.visitEachChild(r,E,t),o=e.concatenate(a.statements,m&&[n.createVariableStatement(void 0,n.createVariableDeclarationList(m))]),s=n.updateSourceFile(a,e.setTextRange(n.createNodeArray(o),r.statements));return T(i),s}(r);return e.addEmitHelpers(i,t.readEmitHelpers()),g=void 0,m=void 0,i}));function S(e,t){var r=x;return x=3&(x&~e|t),r}function T(e){x=e}function C(t){m=e.append(m,n.createVariableDeclaration(t))}function E(e){return P(e,!1)}function k(e){return P(e,!0)}function A(e){if(131!==e.kind)return e}function F(e,t,r,n){if(function(e,t){return x!==(x&~e|t)}(r,n)){var i=S(r,n),a=e(t);return T(i),a}return e(t)}function N(r){return e.visitEachChild(r,E,t)}function P(a,o){if(0==(64&a.transformFlags))return a;switch(a.kind){case 217:return function(r){if(2&f&&1&f)return e.setOriginalNode(e.setTextRange(n.createYieldExpression(void 0,i().createAwaitHelper(e.visitNode(r.expression,E,e.isExpression))),r),r);return e.visitEachChild(r,E,t)}(a);case 223:return function(r){if(2&f&&1&f){if(r.asteriskToken){var a=e.visitNode(e.Debug.assertDefined(r.expression),E,e.isExpression);return e.setOriginalNode(e.setTextRange(n.createYieldExpression(void 0,i().createAwaitHelper(n.updateYieldExpression(r,r.asteriskToken,e.setTextRange(i().createAsyncDelegatorHelper(e.setTextRange(i().createAsyncValuesHelper(a),a)),a)))),r),r)}return e.setOriginalNode(e.setTextRange(n.createYieldExpression(void 0,M(r.expression?e.visitNode(r.expression,E,e.isExpression):n.createVoidZero())),r),r)}return e.visitEachChild(r,E,t)}(a);case 246:return function(r){if(2&f&&1&f)return n.updateReturnStatement(r,M(r.expression?e.visitNode(r.expression,E,e.isExpression):n.createVoidZero()));return e.visitEachChild(r,E,t)}(a);case 249:return function(r){if(2&f){var i=e.unwrapInnermostStatementOfLabel(r);return 243===i.kind&&i.awaitModifier?O(i,r):n.restoreEnclosingLabel(e.visitNode(i,E,e.isStatement,n.liftToBlock),r)}return e.visitEachChild(r,E,t)}(a);case 204:return function(r){if(32768&r.transformFlags){var a=function(t){for(var r,i=[],a=0,o=t;a1){for(var s=1;s=2&&6144&c.getNodeCheckFlags(r);if(g){0==(1&p)&&(p|=1,t.enableSubstitution(207),t.enableSubstitution(205),t.enableSubstitution(206),t.enableEmitNotification(256),t.enableEmitNotification(168),t.enableEmitNotification(171),t.enableEmitNotification(172),t.enableEmitNotification(170),t.enableEmitNotification(236));var m=e.createSuperAccessVariableStatement(n,c,r,y);b[e.getNodeId(m)]=!0,e.insertStatementsAfterStandardPrologue(s,[m])}s.push(f),e.insertStatementsAfterStandardPrologue(s,o());var h=n.updateBlock(r.body,s);return g&&v&&(4096&c.getNodeCheckFlags(r)?e.addEmitHelper(h,e.advancedAsyncSuperHelper):2048&c.getNodeCheckFlags(r)&&e.addEmitHelper(h,e.asyncSuperHelper)),y=d,v=_,h}function V(t){var r;a();var i=0,s=[],c=null!==(r=e.visitNode(t.body,E,e.isConciseBody))&&void 0!==r?r:n.createBlock([]);e.isBlock(c)&&(i=n.copyPrologue(c.statements,s,!1,E)),e.addRange(s,q(void 0,t));var u=o();if(i>0||e.some(s)||e.some(u)){var l=n.converters.convertToFunctionBlock(c,!0);return e.insertStatementsAfterStandardPrologue(s,u),e.addRange(s,l.statements.slice(i)),n.updateBlock(l,e.setTextRange(n.createNodeArray(s),l.statements))}return c}function q(r,i){for(var a=0,o=i.parameters;a1||!!(null===(_=p[0])||void 0===_?void 0:_.dotDotDotToken),g=[t,r,i?E(i.initializer):a.createVoidZero()];if(5===s.jsx){var m=e.getOriginalNode(n);if(m&&e.isSourceFile(m)){g.push(f?a.createTrue():a.createFalse());var y=e.getLineAndCharacterOfPosition(m,d.pos);g.push(a.createObjectLiteralExpression([a.createPropertyAssignment("fileName",c()),a.createPropertyAssignment("lineNumber",a.createNumericLiteral(y.line+1)),a.createPropertyAssignment("columnNumber",a.createNumericLiteral(y.character+1))])),g.push(a.createThis())}}var v=e.setTextRange(a.createCallExpression(u(f),void 0,g),d);return l&&e.startOnNewLine(v),v}function D(t,o,c,u){var d=F(t),p=t.attributes.properties,f=e.length(p)?S(p):a.createNull(),g=void 0===i.importSpecifier?e.createJsxFactoryExpression(a,r.getEmitResolver().getJsxFactoryEntity(n),s.reactNamespace,t):l("createElement"),m=e.createExpressionForJsxElement(a,g,d,f,e.mapDefined(o,_),u);return c&&e.startOnNewLine(m),m}function x(e,t,r,n){var i;if(t&&t.length){var o=function(e){var t=y(e);return t&&a.createObjectLiteralExpression([t])}(t);o&&(i=o)}return h(l("Fragment"),i||a.createObjectLiteralExpression([]),void 0,t,r,n)}function b(t,i,o,c){var u=e.createExpressionForJsxFragment(a,r.getEmitResolver().getJsxFactoryEntity(n),r.getEmitResolver().getJsxFragmentFactoryEntity(n),s.reactNamespace,e.mapDefined(i,_),t,c);return o&&e.startOnNewLine(u),u}function S(t,r){var n=e.getEmitScriptTarget(s);return n&&n>=5?a.createObjectLiteralExpression(function(t,r){var n=e.flatten(e.spanMap(t,e.isJsxSpreadAttribute,(function(t,r){return e.map(t,(function(t){return r?function(t){return a.createSpreadAssignment(e.visitNode(t.expression,d,e.isExpression))}(t):C(t)}))})));r&&n.push(r);return n}(t,r)):function(t,r){var n=e.flatten(e.spanMap(t,e.isJsxSpreadAttribute,(function(t,r){return r?e.map(t,T):a.createObjectLiteralExpression(e.map(t,C))})));e.isJsxSpreadAttribute(t[0])&&n.unshift(a.createObjectLiteralExpression());r&&n.push(a.createObjectLiteralExpression([r]));return e.singleOrUndefined(n)||o().createAssignHelper(n)}(t,r)}function T(t){return e.visitNode(t.expression,d,e.isExpression)}function C(t){var r=function(t){var r=t.name,n=e.idText(r);return/^[A-Za-z_]\w*$/.test(n)?r:a.createStringLiteral(n)}(t),n=E(t.initializer);return a.createPropertyAssignment(r,n)}function E(t){if(void 0===t)return a.createTrue();if(10===t.kind){var r=void 0!==t.singleQuote?t.singleQuote:!e.isStringDoubleQuoted(t,n),i=a.createStringLiteral((o=t.text,((s=A(o))===o?void 0:s)||t.text),r);return e.setTextRange(i,t)}return 287===t.kind?void 0===t.expression?a.createTrue():e.visitNode(t.expression,d,e.isExpression):e.Debug.failBadSyntaxKind(t);var o,s}function k(e,t){var r=A(t);return void 0===e?r:e+" "+r}function A(r){return r.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(function(r,n,i,a,o,s,c){if(o)return e.utf16EncodeAsString(parseInt(o,10));if(s)return e.utf16EncodeAsString(parseInt(s,16));var u=t.get(c);return u?e.utf16EncodeAsString(u):r}))}function F(t){if(277===t.kind)return F(t.openingElement);var r=t.tagName;return e.isIdentifier(r)&&e.isIntrinsicJsxName(r.escapedText)?a.createStringLiteral(e.idText(r)):e.createExpressionFromEntityName(a,r)}function N(t){var r=e.visitNode(t.expression,d,e.isExpression);return t.dotDotDotToken?a.createSpreadElement(r):r}};var t=new e.Map(e.getEntries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))}(c||(c={})),function(e){e.transformES2016=function(t){var r=t.factory,n=t.hoistVariableDeclaration;return e.chainBundle(t,(function(r){if(r.isDeclarationFile)return r;return e.visitEachChild(r,i,t)}));function i(a){return 0==(256&a.transformFlags)?a:220===a.kind?function(a){switch(a.operatorToken.kind){case 67:return function(t){var a,o,s=e.visitNode(t.left,i,e.isExpression),c=e.visitNode(t.right,i,e.isExpression);if(e.isElementAccessExpression(s)){var u=r.createTempVariable(n),l=r.createTempVariable(n);a=e.setTextRange(r.createElementAccessExpression(e.setTextRange(r.createAssignment(u,s.expression),s.expression),e.setTextRange(r.createAssignment(l,s.argumentExpression),s.argumentExpression)),s),o=e.setTextRange(r.createElementAccessExpression(u,l),s)}else if(e.isPropertyAccessExpression(s)){u=r.createTempVariable(n);a=e.setTextRange(r.createPropertyAccessExpression(e.setTextRange(r.createAssignment(u,s.expression),s.expression),s.name),s),o=e.setTextRange(r.createPropertyAccessExpression(u,s.name),s)}else a=s,o=s;return e.setTextRange(r.createAssignment(a,e.setTextRange(r.createGlobalMethodCall("Math","pow",[o,c]),t)),t)}(a);case 42:return function(t){var n=e.visitNode(t.left,i,e.isExpression),a=e.visitNode(t.right,i,e.isExpression);return e.setTextRange(r.createGlobalMethodCall("Math","pow",[n,a]),t)}(a);default:return e.visitEachChild(a,i,t)}}(a):e.visitEachChild(a,i,t)}}}(c||(c={})),function(e){var t,n,i,a,o,s;function c(e,t){return{kind:e,expression:t}}!function(e){e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings"}(t||(t={})),function(e){e[e.Body=1]="Body",e[e.Initializer=2]="Initializer"}(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.StaticInitializer=16384]="StaticInitializer",e[e.AncestorFactsMask=32767]="AncestorFactsMask",e[e.BlockScopeIncludes=0]="BlockScopeIncludes",e[e.BlockScopeExcludes=7104]="BlockScopeExcludes",e[e.SourceFileIncludes=64]="SourceFileIncludes",e[e.SourceFileExcludes=8064]="SourceFileExcludes",e[e.FunctionIncludes=65]="FunctionIncludes",e[e.FunctionExcludes=32670]="FunctionExcludes",e[e.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",e[e.AsyncFunctionBodyExcludes=32662]="AsyncFunctionBodyExcludes",e[e.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=15232]="ArrowFunctionExcludes",e[e.ConstructorIncludes=73]="ConstructorIncludes",e[e.ConstructorExcludes=32662]="ConstructorExcludes",e[e.DoOrWhileStatementIncludes=1280]="DoOrWhileStatementIncludes",e[e.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",e[e.ForStatementIncludes=3328]="ForStatementIncludes",e[e.ForStatementExcludes=5056]="ForStatementExcludes",e[e.ForInOrForOfStatementIncludes=5376]="ForInOrForOfStatementIncludes",e[e.ForInOrForOfStatementExcludes=3008]="ForInOrForOfStatementExcludes",e[e.BlockIncludes=128]="BlockIncludes",e[e.BlockExcludes=6976]="BlockExcludes",e[e.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",e[e.IterationStatementBlockExcludes=7104]="IterationStatementBlockExcludes",e[e.StaticInitializerIncludes=16449]="StaticInitializerIncludes",e[e.StaticInitializerExcludes=32670]="StaticInitializerExcludes",e[e.NewTarget=32768]="NewTarget",e[e.CapturedLexicalThis=65536]="CapturedLexicalThis",e[e.SubtreeFactsMask=-32768]="SubtreeFactsMask",e[e.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",e[e.FunctionSubtreeExcludes=98304]="FunctionSubtreeExcludes"}(o||(o={})),function(e){e[e.None=0]="None",e[e.UnpackedSpread=1]="UnpackedSpread",e[e.PackedSpread=2]="PackedSpread"}(s||(s={})),e.transformES2015=function(t){var n,i,a,o,s,u,l=t.factory,d=t.getEmitHelperFactory,_=t.startLexicalEnvironment,p=t.resumeLexicalEnvironment,f=t.endLexicalEnvironment,g=t.hoistVariableDeclaration,m=t.getCompilerOptions(),y=t.getEmitResolver(),v=t.onSubstituteNode,h=t.onEmitNode;function D(t){o=e.append(o,l.createVariableDeclaration(t))}return t.onEmitNode=function(t,r,n){if(1&u&&e.isFunctionLike(r)){var i=x(32670,8&e.getEmitFlags(r)?81:65);return h(t,r,n),void b(i,0,0)}h(t,r,n)},t.onSubstituteNode=function(t,r){if(r=v(t,r),1===t)return function(t){switch(t.kind){case 79:return function(t){if(2&u&&!e.isInternalName(t)){var r=y.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(l.getGeneratedNameForNode(e.getNameOfDeclaration(r)),t)}return t}(t);case 108:return function(t){if(1&u&&16&a)return e.setTextRange(l.createUniqueName("_this",48),t);return t}(t)}return t}(r);if(e.isIdentifier(r))return function(t){if(2&u&&!e.isInternalName(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r&&function(e){switch(e.parent.kind){case 202:case 256:case 259:case 253:return e.parent.name===e&&y.isDeclarationWithCollidingName(e.parent)}return!1}(r))return e.setTextRange(l.getGeneratedNameForNode(r),t)}return t}(r);return r},e.chainBundle(t,(function(r){if(r.isDeclarationFile)return r;n=r,i=r.text;var s=function(t){var r=x(8064,64),n=[],i=[];_();var a=l.copyPrologue(t.statements,n,!1,C);e.addRange(i,e.visitNodes(t.statements,C,e.isStatement,a)),o&&i.push(l.createVariableStatement(void 0,l.createVariableDeclarationList(o)));return l.mergeLexicalEnvironment(n,f()),K(n,t),b(r,0,0),l.updateSourceFile(t,e.setTextRange(l.createNodeArray(e.concatenate(n,i)),t.statements))}(r);return e.addEmitHelpers(s,t.readEmitHelpers()),n=void 0,i=void 0,o=void 0,a=0,s}));function x(e,t){var r=a;return a=32767&(a&~e|t),r}function b(e,t,r){a=-32768&(a&~t|r)|e}function S(e){return 0!=(8192&a)&&246===e.kind&&!e.expression}function T(t){return 0!=(512&t.transformFlags)||void 0!==s||8192&a&&function(t){return 2097152&t.transformFlags&&(e.isReturnStatement(t)||e.isIfStatement(t)||e.isWithStatement(t)||e.isSwitchStatement(t)||e.isCaseBlock(t)||e.isCaseClause(t)||e.isDefaultClause(t)||e.isTryStatement(t)||e.isCatchClause(t)||e.isLabeledStatement(t)||e.isIterationStatement(t,!1)||e.isBlock(t))}(t)||e.isIterationStatement(t,!1)&&pe(t)||0!=(33554432&e.getEmitFlags(t))}function C(e){return T(e)?F(e,!1):e}function E(e){return T(e)?F(e,!0):e}function k(t){if(T(t)){var r=e.getOriginalNode(t);if(e.isPropertyDeclaration(r)&&e.hasStaticModifier(r)){var n=x(32670,16449),i=F(t,!1);return b(n,98304,0),i}return F(t,!1)}return t}function A(e){return 106===e.kind?we(!0):C(e)}function F(i,o){switch(i.kind){case 124:return;case 256:return function(t){var r=l.createVariableDeclaration(l.getLocalName(t,!0),void 0,void 0,w(t));e.setOriginalNode(r,t);var n=[],i=l.createVariableStatement(void 0,l.createVariableDeclarationList([r]));if(e.setOriginalNode(i,t),e.setTextRange(i,t),e.startOnNewLine(i),n.push(i),e.hasSyntacticModifier(t,1)){var a=e.hasSyntacticModifier(t,512)?l.createExportDefault(l.getLocalName(t)):l.createExternalModuleExport(l.getLocalName(t));e.setOriginalNode(a,i),n.push(a)}var o=e.getEmitFlags(t);0==(4194304&o)&&(n.push(l.createEndOfDeclarationMarker(t)),e.setEmitFlags(i,4194304|o));return e.singleOrMany(n)}(i);case 225:return function(e){return w(e)}(i);case 163:return function(t){return t.dotDotDotToken?void 0:e.isBindingPattern(t.name)?e.setOriginalNode(e.setTextRange(l.createParameterDeclaration(void 0,void 0,void 0,l.getGeneratedNameForNode(t),void 0,void 0,void 0),t),t):t.initializer?e.setOriginalNode(e.setTextRange(l.createParameterDeclaration(void 0,void 0,void 0,t.name,void 0,void 0,void 0),t),t):t}(i);case 255:return function(r){var n=s;s=void 0;var i=x(32670,65),o=e.visitParameterList(r.parameters,C,t),c=Y(r),u=32768&a?l.getLocalName(r):r.name;return b(i,98304,0),s=n,l.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,C,e.isModifier),r.asteriskToken,u,void 0,o,void 0,c)}(i);case 213:return function(r){8192&r.transformFlags&&!(16384&a)&&(a|=65536);var n=s;s=void 0;var i=x(15232,66),o=l.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(r.parameters,C,t),void 0,Y(r));return e.setTextRange(o,r),e.setOriginalNode(o,r),e.setEmitFlags(o,8),b(i,0,0),s=n,o}(i);case 212:return function(r){var n=262144&e.getEmitFlags(r)?x(32662,69):x(32670,65),i=s;s=void 0;var o=e.visitParameterList(r.parameters,C,t),c=Y(r),u=32768&a?l.getLocalName(r):r.name;return b(n,98304,0),s=i,l.updateFunctionExpression(r,void 0,r.asteriskToken,u,void 0,o,void 0,c)}(i);case 253:return $(i);case 79:return P(i);case 254:return function(r){if(3&r.flags||262144&r.transformFlags){3&r.flags&&Ie();var n=e.flatMap(r.declarations,1&r.flags?Q:$),i=l.createVariableDeclarationList(n);return e.setOriginalNode(i,r),e.setTextRange(i,r),e.setCommentRange(i,r),262144&r.transformFlags&&(e.isBindingPattern(r.declarations[0].name)||e.isBindingPattern(e.last(r.declarations).name))&&e.setSourceMapRange(i,function(t){for(var r=-1,n=-1,i=0,a=t;i0&&o.push(l.createStringLiteral(a.literal.text)),r=l.createCallExpression(l.createPropertyAccessExpression(r,"concat"),void 0,o)}return e.setTextRange(r,t)}(i);case 224:return function(t){return e.visitNode(t.expression,C,e.isExpression)}(i);case 106:return we(!1);case 108:return function(e){2&a&&!(16384&a)&&(a|=65536);if(s)return 2&a?(s.containsLexicalThis=!0,e):s.thisName||(s.thisName=l.createUniqueName("this"));return e}(i);case 230:return function(e){if(103===e.keywordToken&&"target"===e.name.escapedText)return a|=32768,l.createUniqueName("_newTarget",48);return e}(i);case 168:return function(t){e.Debug.assert(!e.isComputedPropertyName(t.name));var r=G(t,e.moveRangePos(t,-1),void 0,void 0);return e.setEmitFlags(r,512|e.getEmitFlags(r)),e.setTextRange(l.createPropertyAssignment(t.name,r),t)}(i);case 171:case 172:return function(r){e.Debug.assert(!e.isComputedPropertyName(r.name));var n=s;s=void 0;var i,a=x(32670,65),o=e.visitParameterList(r.parameters,C,t),c=Y(r);i=171===r.kind?l.updateGetAccessorDeclaration(r,r.decorators,r.modifiers,r.name,o,r.type,c):l.updateSetAccessorDeclaration(r,r.decorators,r.modifiers,r.name,o,c);return b(a,98304,0),s=n,i}(i);case 236:return function(r){var n,i=x(0,e.hasSyntacticModifier(r,1)?32:0);if(s&&0==(3&r.declarationList.flags)&&!function(t){return 1===t.declarationList.declarations.length&&!!t.declarationList.declarations[0].initializer&&!!(33554432&e.getEmitFlags(t.declarationList.declarations[0].initializer))}(r)){for(var a=void 0,o=0,c=r.declarationList.declarations;o0?(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(l.createVariableStatement(void 0,l.createVariableDeclarationList(e.flattenDestructuringBinding(n,C,t,0,l.getGeneratedNameForNode(n)))),1048576)),!0):!!a&&(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(l.createExpressionStatement(l.createAssignment(l.getGeneratedNameForNode(n),e.visitNode(a,C,e.isExpression))),1048576)),!0)}function j(t,r,n,i){i=e.visitNode(i,C,e.isExpression);var a=l.createIfStatement(l.createTypeCheck(l.cloneNode(n),"undefined"),e.setEmitFlags(e.setTextRange(l.createBlock([l.createExpressionStatement(e.setEmitFlags(e.setTextRange(l.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(l.cloneNode(n),n),n.parent),48),e.setEmitFlags(i,1584|e.getEmitFlags(i))),r),1536))]),r),1953));e.startOnNewLine(a),e.setTextRange(a,r),e.setEmitFlags(a,1050528),e.insertStatementAfterCustomPrologue(t,a)}function J(r,n,i){var a=[],o=e.lastOrUndefined(n.parameters);if(!function(e,t){return!(!e||!e.dotDotDotToken||t)}(o,i))return!1;var s=79===o.name.kind?e.setParent(e.setTextRange(l.cloneNode(o.name),o.name),o.name.parent):l.createTempVariable(void 0);e.setEmitFlags(s,48);var c=79===o.name.kind?l.cloneNode(o.name):s,u=n.parameters.length-1,d=l.createLoopVariable();a.push(e.setEmitFlags(e.setTextRange(l.createVariableStatement(void 0,l.createVariableDeclarationList([l.createVariableDeclaration(s,void 0,void 0,l.createArrayLiteralExpression([]))])),o),1048576));var _=l.createForStatement(e.setTextRange(l.createVariableDeclarationList([l.createVariableDeclaration(d,void 0,void 0,l.createNumericLiteral(u))]),o),e.setTextRange(l.createLessThan(d,l.createPropertyAccessExpression(l.createIdentifier("arguments"),"length")),o),e.setTextRange(l.createPostfixIncrement(d),o),l.createBlock([e.startOnNewLine(e.setTextRange(l.createExpressionStatement(l.createAssignment(l.createElementAccessExpression(c,0===u?d:l.createSubtract(d,l.createNumericLiteral(u))),l.createElementAccessExpression(l.createIdentifier("arguments"),d))),o))]));return e.setEmitFlags(_,1048576),e.startOnNewLine(_),a.push(_),79!==o.name.kind&&a.push(e.setEmitFlags(e.setTextRange(l.createVariableStatement(void 0,l.createVariableDeclarationList(e.flattenDestructuringBinding(o,C,t,0,c))),o),1048576)),e.insertStatementsAfterCustomPrologue(r,a),!0}function K(e,t){return!!(65536&a&&213!==t.kind)&&(z(e,t,l.createThis()),!0)}function z(r,n,i){0==(1&u)&&(u|=1,t.enableSubstitution(108),t.enableEmitNotification(170),t.enableEmitNotification(168),t.enableEmitNotification(171),t.enableEmitNotification(172),t.enableEmitNotification(213),t.enableEmitNotification(212),t.enableEmitNotification(255));var a=l.createVariableStatement(void 0,l.createVariableDeclarationList([l.createVariableDeclaration(l.createUniqueName("_this",48),void 0,void 0,i)]));e.setEmitFlags(a,1050112),e.setSourceMapRange(a,n),e.insertStatementAfterCustomPrologue(r,a)}function U(t,r,n){if(32768&a){var i=void 0;switch(r.kind){case 213:return t;case 168:case 171:case 172:i=l.createVoidZero();break;case 170:i=l.createPropertyAccessExpression(e.setEmitFlags(l.createThis(),4),"constructor");break;case 255:case 212:i=l.createConditionalExpression(l.createLogicalAnd(e.setEmitFlags(l.createThis(),4),l.createBinaryExpression(e.setEmitFlags(l.createThis(),4),102,l.getLocalName(r))),void 0,l.createPropertyAccessExpression(e.setEmitFlags(l.createThis(),4),"constructor"),void 0,l.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(r)}var o=l.createVariableStatement(void 0,l.createVariableDeclarationList([l.createVariableDeclaration(l.createUniqueName("_newTarget",48),void 0,void 0,i)]));e.setEmitFlags(o,1050112),n&&(t=t.slice()),e.insertStatementAfterCustomPrologue(t,o)}return t}function V(t){return e.setTextRange(l.createEmptyStatement(),t)}function q(r,n,i){var a,o=e.getCommentRange(n),s=e.getSourceMapRange(n),c=G(n,n,void 0,i),u=e.visitNode(n.name,C,e.isPropertyName);if(!e.isPrivateIdentifier(u)&&e.getUseDefineForClassFields(t.getCompilerOptions())){var d=e.isComputedPropertyName(u)?u.expression:e.isIdentifier(u)?l.createStringLiteral(e.unescapeLeadingUnderscores(u.escapedText)):u;a=l.createObjectDefinePropertyCall(r,d,l.createPropertyDescriptor({value:c,enumerable:!1,writable:!0,configurable:!0}))}else{var _=e.createMemberAccessForPropertyName(l,r,u,n.name);a=l.createAssignment(_,c)}e.setEmitFlags(c,1536),e.setSourceMapRange(c,s);var p=e.setTextRange(l.createExpressionStatement(a),n);return e.setOriginalNode(p,n),e.setCommentRange(p,o),e.setEmitFlags(p,48),p}function W(t,r,n){var i=l.createExpressionStatement(H(t,r,n,!1));return e.setEmitFlags(i,1536),e.setSourceMapRange(i,e.getSourceMapRange(r.firstAccessor)),i}function H(t,r,n,i){var a=r.firstAccessor,o=r.getAccessor,s=r.setAccessor,c=e.setParent(e.setTextRange(l.cloneNode(t),t),t.parent);e.setEmitFlags(c,1568),e.setSourceMapRange(c,a.name);var u=e.visitNode(a.name,C,e.isPropertyName);if(e.isPrivateIdentifier(u))return e.Debug.failBadSyntaxKind(u,"Encountered unhandled private identifier while transforming ES2015.");var d=e.createExpressionForPropertyName(l,u);e.setEmitFlags(d,1552),e.setSourceMapRange(d,a.name);var _=[];if(o){var p=G(o,void 0,void 0,n);e.setSourceMapRange(p,e.getSourceMapRange(o)),e.setEmitFlags(p,512);var f=l.createPropertyAssignment("get",p);e.setCommentRange(f,e.getCommentRange(o)),_.push(f)}if(s){var g=G(s,void 0,void 0,n);e.setSourceMapRange(g,e.getSourceMapRange(s)),e.setEmitFlags(g,512);var m=l.createPropertyAssignment("set",g);e.setCommentRange(m,e.getCommentRange(s)),_.push(m)}_.push(l.createPropertyAssignment("enumerable",o||s?l.createFalse():l.createTrue()),l.createPropertyAssignment("configurable",l.createTrue()));var y=l.createCallExpression(l.createPropertyAccessExpression(l.createIdentifier("Object"),"defineProperty"),void 0,[c,d,l.createObjectLiteralExpression(_,!0)]);return i&&e.startOnNewLine(y),y}function G(r,n,i,o){var c=s;s=void 0;var u=o&&e.isClassLike(o)&&!e.isStatic(r)?x(32670,73):x(32670,65),d=e.visitParameterList(r.parameters,C,t),_=Y(r);return 32768&a&&!i&&(255===r.kind||212===r.kind)&&(i=l.getGeneratedNameForNode(r)),b(u,98304,0),s=c,e.setOriginalNode(e.setTextRange(l.createFunctionExpression(void 0,r.asteriskToken,i,void 0,d,void 0,_),n),r)}function Y(t){var r,i,a,o=!1,s=!1,c=[],u=[],d=t.body;if(p(),e.isBlock(d)&&(a=l.copyStandardPrologue(d.statements,c,!1),a=l.copyCustomPrologue(d.statements,u,a,C,e.isHoistedFunction),a=l.copyCustomPrologue(d.statements,u,a,C,e.isHoistedVariableStatement)),o=R(u,t)||o,o=J(u,t,!1)||o,e.isBlock(d))a=l.copyCustomPrologue(d.statements,u,a,C),r=d.statements,e.addRange(u,e.visitNodes(d.statements,C,e.isStatement,a)),!o&&d.multiLine&&(o=!0);else{e.Debug.assert(213===t.kind),r=e.moveRangeEnd(d,-1);var _=t.equalsGreaterThanToken;e.nodeIsSynthesized(_)||e.nodeIsSynthesized(d)||(e.rangeEndIsOnSameLineAsRangeStart(_,d,n)?s=!0:o=!0);var g=e.visitNode(d,C,e.isExpression),m=l.createReturnStatement(g);e.setTextRange(m,d),e.moveSyntheticComments(m,d),e.setEmitFlags(m,1440),u.push(m),i=d}if(l.mergeLexicalEnvironment(c,f()),U(c,t,!1),K(c,t),e.some(c)&&(o=!0),u.unshift.apply(u,c),e.isBlock(d)&&e.arrayIsEqualTo(u,d.statements))return d;var y=l.createBlock(e.setTextRange(l.createNodeArray(u),r),o);return e.setTextRange(y,t.body),!o&&s&&e.setEmitFlags(y,1),i&&e.setTokenSourceMapRange(y,19,i),e.setOriginalNode(y,t.body),y}function X(r,n){return e.isDestructuringAssignment(r)?e.flattenDestructuringAssignment(r,C,t,0,!n):27===r.operatorToken.kind?l.updateBinaryExpression(r,e.visitNode(r.left,E,e.isExpression),r.operatorToken,e.visitNode(r.right,n?E:C,e.isExpression)):e.visitEachChild(r,C,t)}function Q(r){var n=r.name;return e.isBindingPattern(n)?$(r):!r.initializer&&function(e){var t=y.getNodeCheckFlags(e),r=262144&t,n=524288&t;return!(0!=(64&a)||r&&n&&0!=(512&a))&&0==(4096&a)&&(!y.isDeclarationWithCollidingName(e)||n&&!r&&0==(6144&a))}(r)?l.updateVariableDeclaration(r,r.name,void 0,void 0,l.createVoidZero()):e.visitEachChild(r,C,t)}function $(r){var n,i=x(32,0);return n=e.isBindingPattern(r.name)?e.flattenDestructuringBinding(r,C,t,0,void 0,0!=(32&i)):e.visitEachChild(r,C,t),b(i,0,0),n}function Z(t){s.labels.set(e.idText(t.label),!0)}function ee(t){s.labels.set(e.idText(t.label),!1)}function te(r,n,i,o,c){var u=x(r,n),d=function(r,n,i,o){if(!pe(r)){var c=void 0;s&&(c=s.allowedNonLabeledJumps,s.allowedNonLabeledJumps=6);var u=o?o(r,n,void 0,i):l.restoreEnclosingLabel(e.isForStatement(r)?function(t){return l.updateForStatement(t,e.visitNode(t.initializer,E,e.isForInitializer),e.visitNode(t.condition,C,e.isExpression),e.visitNode(t.incrementor,E,e.isExpression),e.visitNode(t.statement,C,e.isStatement,l.liftToBlock))}(r):e.visitEachChild(r,C,t),n,s&&ee);return s&&(s.allowedNonLabeledJumps=c),u}var d=function(t){var r;switch(t.kind){case 241:case 242:case 243:var n=t.initializer;n&&254===n.kind&&(r=n)}var i=[],a=[];if(r&&3&e.getCombinedNodeFlags(r))for(var o=de(t),c=0,u=r.declarations;c=81&&r<=116)return e.setTextRange(i.createStringLiteralFromNode(t),t)}}}(c||(c={})),function(e){var t,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"}(t||(t={})),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(t){var n,i,a,o,s,c,u,l,d,_,p=t.factory,f=t.getEmitHelperFactory,g=t.resumeLexicalEnvironment,m=t.endLexicalEnvironment,y=t.hoistFunctionDeclaration,v=t.hoistVariableDeclaration,h=t.getCompilerOptions(),D=e.getEmitScriptTarget(h),x=t.getEmitResolver(),b=t.onSubstituteNode;t.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=x.getReferencedValueDeclaration(r);if(a){var o=i[e.getOriginalNodeId(a)];if(o){var s=e.setParent(e.setTextRange(p.cloneNode(o),o),o.parent);return e.setSourceMapRange(s,t),e.setCommentRange(s,t),s}}}}return t}(t);return t}(r);return r};var S,T,C,E,k,A,F,N,P,w,I,O,M=1,L=0,R=0;return e.chainBundle(t,(function(r){if(r.isDeclarationFile||0==(1024&r.transformFlags))return r;var n=e.visitEachChild(r,B,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}));function B(r){var n=r.transformFlags;return o?function(r){switch(r.kind){case 239:case 240:return function(r){return o?(oe(),r=e.visitEachChild(r,B,t),ce(),r):e.visitEachChild(r,B,t)}(r);case 248:return function(r){o&&re({kind:2,isScript:!0,breakLabel:-1});r=e.visitEachChild(r,B,t),o&&ue();return r}(r);case 249:return function(r){o&&re({kind:4,isScript:!0,labelText:e.idText(r.label),breakLabel:-1});r=e.visitEachChild(r,B,t),o&&le();return r}(r);default:return j(r)}}(r):a?j(r):e.isFunctionLikeDeclaration(r)&&r.asteriskToken?function(t){switch(t.kind){case 255:return J(t);case 212:return K(t);default:return e.Debug.failBadSyntaxKind(t)}}(r):1024&n?e.visitEachChild(r,B,t):r}function j(r){switch(r.kind){case 255:return J(r);case 212:return K(r);case 171:case 172:return function(r){var n=a,i=o;return a=!1,o=!1,r=e.visitEachChild(r,B,t),a=n,o=i,r}(r);case 236:return function(t){if(524288&t.transformFlags)return void G(t.declarationList);if(1048576&e.getEmitFlags(t))return t;for(var r=0,n=t.declarationList.declarations;r0?p.inlineExpressions(e.map(c,Y)):void 0,e.visitNode(r.condition,B,e.isExpression),e.visitNode(r.incrementor,B,e.isExpression),e.visitIterationBody(r.statement,B,t))}else r=e.visitEachChild(r,B,t);o&&ce();return r}(r);case 242:return function(r){o&&oe();var n=r.initializer;if(e.isVariableDeclarationList(n)){for(var i=0,a=n.declarations;i0)return he(n,r)}return e.visitEachChild(r,B,t)}(r);case 244:return function(r){if(o){var n=me(r.label&&e.idText(r.label));if(n>0)return he(n,r)}return e.visitEachChild(r,B,t)}(r);case 246:return function(t){return r=e.visitNode(t.expression,B,e.isExpression),n=t,e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression(r?[ve(2),r]:[ve(2)])),n);var r,n}(r);default:return 524288&r.transformFlags?function(r){switch(r.kind){case 220:return function(r){var n=e.getExpressionAssociativity(r);switch(n){case 0:return function(r){if(X(r.right))return e.isLogicalOperator(r.operatorToken.kind)?function(t){var r=ee(),n=Z();be(n,e.visitNode(t.left,B,e.isExpression),t.left),55===t.operatorToken.kind?Ce(r,n,t.left):Te(r,n,t.left);return be(n,e.visitNode(t.right,B,e.isExpression),t.right),te(r),n}(r):27===r.operatorToken.kind?U(r):p.updateBinaryExpression(r,$(e.visitNode(r.left,B,e.isExpression)),r.operatorToken,e.visitNode(r.right,B,e.isExpression));return e.visitEachChild(r,B,t)}(r);case 1:return function(r){var n=r.left,i=r.right;if(X(i)){var a=void 0;switch(n.kind){case 205:a=p.updatePropertyAccessExpression(n,$(e.visitNode(n.expression,B,e.isLeftHandSideExpression)),n.name);break;case 206:a=p.updateElementAccessExpression(n,$(e.visitNode(n.expression,B,e.isLeftHandSideExpression)),$(e.visitNode(n.argumentExpression,B,e.isExpression)));break;default:a=e.visitNode(n,B,e.isExpression)}var o=r.operatorToken.kind;return e.isCompoundAssignment(o)?e.setTextRange(p.createAssignment(a,e.setTextRange(p.createBinaryExpression($(a),e.getNonAssignmentOperatorForCompoundAssignment(o),e.visitNode(i,B,e.isExpression)),r)),r):p.updateBinaryExpression(r,a,r.operatorToken,e.visitNode(i,B,e.isExpression))}return e.visitEachChild(r,B,t)}(r);default:return e.Debug.assertNever(n)}}(r);case 349:return function(t){for(var r=[],n=0,i=t.elements;n0&&(Ee(1,[p.createExpressionStatement(p.inlineExpressions(r))]),r=[]),r.push(e.visitNode(a,B,e.isExpression)))}return p.inlineExpressions(r)}(r);case 221:return function(r){if(X(r.whenTrue)||X(r.whenFalse)){var n=ee(),i=ee(),a=Z();return Ce(n,e.visitNode(r.condition,B,e.isExpression),r.condition),be(a,e.visitNode(r.whenTrue,B,e.isExpression),r.whenTrue),Se(i),te(n),be(a,e.visitNode(r.whenFalse,B,e.isExpression),r.whenFalse),te(i),a}return e.visitEachChild(r,B,t)}(r);case 223:return function(t){var r=ee(),n=e.visitNode(t.expression,B,e.isExpression);if(t.asteriskToken){!function(e,t){Ee(7,[e],t)}(0==(8388608&e.getEmitFlags(t.expression))?e.setTextRange(f().createValuesHelper(n),t):n,t)}else!function(e,t){Ee(6,[e],t)}(n,t);return te(r),function(t){return e.setTextRange(p.createCallExpression(p.createPropertyAccessExpression(E,"sent"),void 0,[]),t)}(t)}(r);case 203:return function(e){return V(e.elements,void 0,void 0,e.multiLine)}(r);case 204:return function(t){var r=t.properties,n=t.multiLine,i=Q(r),a=Z();be(a,p.createObjectLiteralExpression(e.visitNodes(r,B,e.isObjectLiteralElementLike,0,i),n));var o=e.reduceLeft(r,s,[],i);return o.push(n?e.startOnNewLine(e.setParent(e.setTextRange(p.cloneNode(a),a),a.parent)):a),p.inlineExpressions(o);function s(r,i){X(i)&&r.length>0&&(xe(p.createExpressionStatement(p.inlineExpressions(r))),r=[]);var o=e.createExpressionForObjectLiteralElementLike(p,t,i,a),s=e.visitNode(o,B,e.isExpression);return s&&(n&&e.startOnNewLine(s),r.push(s)),r}}(r);case 206:return function(r){if(X(r.argumentExpression))return p.updateElementAccessExpression(r,$(e.visitNode(r.expression,B,e.isLeftHandSideExpression)),e.visitNode(r.argumentExpression,B,e.isExpression));return e.visitEachChild(r,B,t)}(r);case 207:return function(r){if(!e.isImportCall(r)&&e.forEach(r.arguments,X)){var n=p.createCallBinding(r.expression,v,D,!0),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(p.createFunctionApplyCall($(e.visitNode(i,B,e.isLeftHandSideExpression)),a,V(r.arguments)),r),r)}return e.visitEachChild(r,B,t)}(r);case 208:return function(r){if(e.forEach(r.arguments,X)){var n=p.createCallBinding(p.createPropertyAccessExpression(r.expression,"bind"),v),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(p.createNewExpression(p.createFunctionApplyCall($(e.visitNode(i,B,e.isExpression)),a,V(r.arguments,p.createVoidZero())),void 0,[]),r),r)}return e.visitEachChild(r,B,t)}(r);default:return e.visitEachChild(r,B,t)}}(r):2098176&r.transformFlags?e.visitEachChild(r,B,t):r}}function J(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(p.createFunctionDeclaration(void 0,r.modifiers,void 0,r.name,void 0,e.visitParameterList(r.parameters,B,t),void 0,z(r.body)),r),r);else{var n=a,i=o;a=!1,o=!1,r=e.visitEachChild(r,B,t),a=n,o=i}return a?void y(r):r}function K(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(p.createFunctionExpression(void 0,void 0,r.name,void 0,e.visitParameterList(r.parameters,B,t),void 0,z(r.body)),r),r);else{var n=a,i=o;a=!1,o=!1,r=e.visitEachChild(r,B,t),a=n,o=i}return r}function z(t){var r=[],n=a,i=o,f=s,y=c,v=u,h=l,D=d,x=_,b=M,k=S,A=T,F=C,N=E;a=!0,o=!1,s=void 0,c=void 0,u=void 0,l=void 0,d=void 0,_=void 0,M=1,S=void 0,T=void 0,C=void 0,E=p.createTempVariable(void 0),g();var P=p.copyPrologue(t.statements,r,!1,B);q(t.statements,P);var w=ke();return e.insertStatementsAfterStandardPrologue(r,m()),r.push(p.createReturnStatement(w)),a=n,o=i,s=f,c=y,u=v,l=h,d=D,_=x,M=b,S=k,T=A,C=F,E=N,e.setTextRange(p.createBlock(r,t.multiLine),t)}function U(t){var r=[];return n(t.left),n(t.right),p.inlineExpressions(r);function n(t){e.isBinaryExpression(t)&&27===t.operatorToken.kind?(n(t.left),n(t.right)):(X(t)&&r.length>0&&(Ee(1,[p.createExpressionStatement(p.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,B,e.isExpression)))}}function V(t,n,i,a){var o,s=Q(t);if(s>0){o=Z();var c=e.visitNodes(t,B,e.isExpression,0,s);be(o,p.createArrayLiteralExpression(n?r([n],c,!0):c)),n=void 0}var u=e.reduceLeft(t,(function(t,i){if(X(i)&&t.length>0){var s=void 0!==o;o||(o=Z()),be(o,s?p.createArrayConcatCall(o,[p.createArrayLiteralExpression(t,a)]):p.createArrayLiteralExpression(n?r([n],t,!0):t,a)),n=void 0,t=[]}return t.push(e.visitNode(i,B,e.isExpression)),t}),[],s);return o?p.createArrayConcatCall(o,[p.createArrayLiteralExpression(u,a)]):e.setTextRange(p.createArrayLiteralExpression(n?r([n],u,!0):u,a),i)}function q(e,t){void 0===t&&(t=0);for(var r=e.length,n=t;n0?Se(r,t):xe(t)}(r);case 245:return function(t){var r=ge(t.label?e.idText(t.label):void 0);r>0?Se(r,t):xe(t)}(r);case 246:return function(t){r=e.visitNode(t.expression,B,e.isExpression),n=t,Ee(8,[r],n);var r,n}(r);case 247:return function(t){X(t)?(r=$(e.visitNode(t.expression,B,e.isExpression)),n=ee(),i=ee(),te(n),re({kind:1,expression:r,startLabel:n,endLabel:i}),W(t.statement),e.Debug.assert(1===ae()),te(ne().endLabel)):xe(e.visitNode(t,B,e.isStatement));var r,n,i}(r);case 248:return function(t){if(X(t.caseBlock)){for(var r=t.caseBlock,n=r.clauses.length,i=(re({kind:2,isScript:!1,breakLabel:f=ee()}),f),a=$(e.visitNode(t.expression,B,e.isExpression)),o=[],s=-1,c=0;c0)break;d.push(p.createCaseClause(e.visitNode(u.expression,B,e.isExpression),[he(o[c],u.expression)]))}else _++}d.length&&(xe(p.createSwitchStatement(a,p.createCaseBlock(d))),l+=d.length,d=[]),_>0&&(l+=_,_=0)}Se(s>=0?o[s]:i);for(c=0;c0)break;u.push(Y(i))}u.length&&(xe(p.createExpressionStatement(p.inlineExpressions(u))),c+=u.length,u=[])}}function Y(t){return e.setSourceMapRange(p.createAssignment(e.setSourceMapRange(p.cloneNode(t.name),t.name),e.visitNode(t.initializer,B,e.isExpression)),t)}function X(e){return!!e&&0!=(524288&e.transformFlags)}function Q(e){for(var t=e.length,r=0;r=0;r--){var n=l[r];if(!_e(n))break;if(n.labelText===e)return!0}return!1}function ge(e){if(l)if(e)for(var t=l.length-1;t>=0;t--){if(_e(r=l[t])&&r.labelText===e)return r.breakLabel;if(de(r)&&fe(e,t-1))return r.breakLabel}else for(t=l.length-1;t>=0;t--){var r;if(de(r=l[t]))return r.breakLabel}return 0}function me(e){if(l)if(e)for(var t=l.length-1;t>=0;t--){if(pe(r=l[t])&&fe(e,t-1))return r.continueLabel}else for(t=l.length-1;t>=0;t--){var r;if(pe(r=l[t]))return r.continueLabel}return 0}function ye(e){if(void 0!==e&&e>0){void 0===_&&(_=[]);var t=p.createNumericLiteral(-1);return void 0===_[e]?_[e]=[t]:_[e].push(t),t}return p.createOmittedExpression()}function ve(t){var r=p.createNumericLiteral(t);return e.addSyntheticTrailingComment(r,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}(t)),r}function he(t,r){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([ve(3),ye(t)])),r)}function De(){Ee(0)}function xe(e){e?Ee(1,[e]):De()}function be(e,t,r){Ee(2,[e,t],r)}function Se(e,t){Ee(3,[e],t)}function Te(e,t,r){Ee(4,[e,t],r)}function Ce(e,t,r){Ee(5,[e,t],r)}function Ee(e,t,r){void 0===S&&(S=[],T=[],C=[]),void 0===d&&te(ee());var n=S.length;S[n]=e,T[n]=t,C[n]=r}function ke(){L=0,R=0,k=void 0,A=!1,F=!1,N=void 0,P=void 0,w=void 0,I=void 0,O=void 0;var t=function(){if(S){for(var t=0;t0)),524288))}function Ae(e){(function(e){if(!F)return!0;if(!d||!_)return!1;for(var t=0;t=0;t--){var r=O[t];P=[p.createWithStatement(r.expression,p.createBlock(P))]}if(I){var n=I.startLabel,i=I.catchLabel,a=I.finallyLabel,o=I.endLabel;P.unshift(p.createExpressionStatement(p.createCallExpression(p.createPropertyAccessExpression(p.createPropertyAccessExpression(E,"trys"),"push"),void 0,[p.createArrayLiteralExpression([ye(n),ye(i),ye(a),ye(o)])]))),I=void 0}e&&P.push(p.createExpressionStatement(p.createAssignment(p.createPropertyAccessExpression(E,"label"),p.createNumericLiteral(R+1))))}N.push(p.createCaseClause(p.createNumericLiteral(R),P||[])),P=void 0}function Ne(e){if(d)for(var t=0;t=2?2:0)),t),t))}else n&&e.isDefaultImport(t)&&(r=e.append(r,i.createVariableStatement(void 0,i.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(i.createVariableDeclaration(i.cloneNode(n.name),void 0,void 0,i.getGeneratedNameForNode(t)),t),t)],_>=2?2:0))));if(K(t)){var o=e.getOriginalNodeId(t);D[o]=z(D[o],t)}else r=z(r,t);return e.singleOrMany(r)}(t);case 264:return function(t){var r;e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),p!==e.ModuleKind.AMD?r=e.hasSyntacticModifier(t,1)?e.append(r,e.setOriginalNode(e.setTextRange(i.createExpressionStatement(X(t.name,B(t))),t),t)):e.append(r,e.setOriginalNode(e.setTextRange(i.createVariableStatement(void 0,i.createVariableDeclarationList([i.createVariableDeclaration(i.cloneNode(t.name),void 0,void 0,B(t))],_>=2?2:0)),t),t)):e.hasSyntacticModifier(t,1)&&(r=e.append(r,e.setOriginalNode(e.setTextRange(i.createExpressionStatement(X(i.getExportName(t),i.getLocalName(t))),t),t)));if(K(t)){var n=e.getOriginalNodeId(t);D[n]=U(D[n],t)}else r=U(r,t);return e.singleOrMany(r)}(t);case 271:return function(t){if(!t.moduleSpecifier)return;var r=i.getGeneratedNameForNode(t);if(t.exportClause&&e.isNamedExports(t.exportClause)){var n=[];p!==e.ModuleKind.AMD&&n.push(e.setOriginalNode(e.setTextRange(i.createVariableStatement(void 0,i.createVariableDeclarationList([i.createVariableDeclaration(r,void 0,void 0,B(t))])),t),t));for(var o=0,s=t.exportClause.elements;o(e.isExportName(t)?1:0);return!1}function M(t,r){var n,o=i.createUniqueName("resolve"),s=i.createUniqueName("reject"),c=[i.createParameterDeclaration(void 0,void 0,void 0,o),i.createParameterDeclaration(void 0,void 0,void 0,s)],l=i.createBlock([i.createExpressionStatement(i.createCallExpression(i.createIdentifier("require"),void 0,[i.createArrayLiteralExpression([t||i.createOmittedExpression()]),o,s]))]);_>=2?n=i.createArrowFunction(void 0,void 0,c,void 0,void 0,l):(n=i.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,l),r&&e.setEmitFlags(n,8));var d=i.createNewExpression(i.createIdentifier("Promise"),void 0,[n]);return e.getESModuleInterop(u)?i.createCallExpression(i.createPropertyAccessExpression(d,i.createIdentifier("then")),void 0,[a().createImportStarCallbackHelper()]):d}function L(t,r){var n,o=i.createCallExpression(i.createPropertyAccessExpression(i.createIdentifier("Promise"),"resolve"),void 0,[]),s=i.createCallExpression(i.createIdentifier("require"),void 0,t?[t]:[]);return e.getESModuleInterop(u)&&(s=a().createImportStarHelper(s)),_>=2?n=i.createArrowFunction(void 0,void 0,[],void 0,void 0,s):(n=i.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,i.createBlock([i.createReturnStatement(s)])),r&&e.setEmitFlags(n,8)),i.createCallExpression(i.createPropertyAccessExpression(o,"then"),void 0,[n])}function R(t,r){return!e.getESModuleInterop(u)||67108864&e.getEmitFlags(t)?r:e.getImportNeedsImportStarHelper(t)?a().createImportStarHelper(r):e.getImportNeedsImportDefaultHelper(t)?a().createImportDefaultHelper(r):r}function B(t){var r=e.getExternalModuleNameLiteral(i,t,m,d,l,u),n=[];return r&&n.push(r),i.createCallExpression(i.createIdentifier("require"),void 0,n)}function j(t,r,n){var a=Z(t);if(a){for(var o=e.isExportName(t)?r:i.createAssignment(t,r),s=0,c=a;s=e.ModuleKind.ES2020?function(t){var r;return e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),r=function(t,r){e.hasSyntacticModifier(r,1)&&(t=e.append(t,o.createExportDeclaration(void 0,void 0,r.isTypeOnly,o.createNamedExports([o.createExportSpecifier(!1,void 0,e.idText(r.name))]))));return t}(r=e.append(r,e.setOriginalNode(e.setTextRange(o.createVariableStatement(void 0,o.createVariableDeclarationList([o.createVariableDeclaration(o.cloneNode(t.name),void 0,void 0,g(t))],d>=2?2:0)),t),t)),t),e.singleOrMany(r)}(t):void 0;case 270:return function(e){return e.isExportEquals?void 0:e}(t);case 271:return function(t){if(void 0!==l.module&&l.module>e.ModuleKind.ES2015)return t;if(!t.exportClause||!e.isNamespaceExport(t.exportClause)||!t.moduleSpecifier)return t;var r=t.exportClause.name,n=o.getGeneratedNameForNode(r),i=o.createImportDeclaration(void 0,void 0,o.createImportClause(!1,void 0,o.createNamespaceImport(n)),t.moduleSpecifier,t.assertClause);e.setOriginalNode(i,t.exportClause);var a=e.isExportNamespaceAsDefaultDeclaration(t)?o.createExportDefault(n):o.createExportDeclaration(void 0,void 0,!1,o.createNamedExports([o.createExportSpecifier(!1,n,r)]));return e.setOriginalNode(a,t),[i,a]}(t)}return t}function g(t){var r=e.getExternalModuleNameLiteral(o,t,e.Debug.checkDefined(i),c,u,l),n=[];if(r&&n.push(r),!a){var s=o.createUniqueName("_createRequire",48),_=o.createImportDeclaration(void 0,void 0,o.createImportClause(!1,void 0,o.createNamedImports([o.createImportSpecifier(!1,o.createIdentifier("createRequire"),s)])),o.createStringLiteral("module")),p=o.createUniqueName("__require",48),f=o.createVariableStatement(void 0,o.createVariableDeclarationList([o.createVariableDeclaration(p,void 0,void 0,o.createCallExpression(o.cloneNode(s),void 0,[o.createPropertyAccessExpression(o.createMetaProperty(100,o.createIdentifier("meta")),o.createIdentifier("url"))]))],d>=2?2:0));a=[_,f]}var g=a[1].declarationList.declarations[0].name;return e.Debug.assertNode(g,e.isIdentifier),o.createCallExpression(o.cloneNode(g),void 0,n)}}}(c||(c={})),function(e){e.transformNodeModule=function(t){var r=t.onSubstituteNode,n=t.onEmitNode,i=e.transformECMAScriptModule(t),a=t.onSubstituteNode,o=t.onEmitNode;t.onSubstituteNode=r,t.onEmitNode=n;var s,c=e.transformModule(t),u=t.onSubstituteNode,l=t.onEmitNode;return t.onSubstituteNode=function(t,n){return e.isSourceFile(n)?(s=n,r(t,n)):s?s.impliedNodeFormat===e.ModuleKind.ESNext?a(t,n):u(t,n):r(t,n)},t.onEmitNode=function(t,r,i){e.isSourceFile(r)&&(s=r);if(!s)return n(t,r,i);if(s.impliedNodeFormat===e.ModuleKind.ESNext)return o(t,r,i);return l(t,r,i)},t.enableSubstitution(303),t.enableEmitNotification(303),function(r){return 303===r.kind?d(r):function(r){return t.factory.createBundle(e.map(r.sourceFiles,d),r.prepends)}(r)};function d(t){if(t.isDeclarationFile)return t;s=t;var r=(t.impliedNodeFormat===e.ModuleKind.ESNext?i:c)(t);return s=void 0,e.Debug.assert(e.isSourceFile(r)),r}}}(c||(c={})),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=172===t.kind?e.isStatic(t)?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.isStatic(t)?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 174: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 173: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 175: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 168:case 167:n=e.isStatic(t)?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:256===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 255:n=r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return e.Debug.fail("This is unknown kind for signature: "+t.kind)}return{diagnosticMessage:n,errorNode:t.name||t}}:e.isParameter(t)?e.isParameterPropertyDeclaration(t,t.parent)&&e.hasSyntacticModifier(t.parent,8)?r:function(r){var n=function(r){switch(t.parent.kind){case 170: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 174:case 179: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 173: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 175: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 168:case 167:return e.isStatic(t.parent)?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:256===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 255:case 178: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 172:case 171: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: ".concat(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 256:r=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 257:r=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 194:r=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 179:case 174:r=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 173:r=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 168:case 167:r=e.isStatic(t.parent)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:256===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 178:case 255:r=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 258:r=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return e.Debug.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:r,errorNode:t,typeName:t.name}}:e.isExpressionWithTypeArguments(t)?function(){var r;r=e.isClassDeclaration(t.parent.parent)?e.isHeritageClause(t.parent)&&117===t.parent.token?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t.parent.parent.name?e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1;return{diagnosticMessage:r,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}}:e.isImportEqualsDeclaration(t)?function(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}:e.isTypeAliasDeclaration(t)||e.isJSDocTypeAlias(t)?function(r){return{diagnosticMessage:r.errorModuleName?e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:e.isJSDocTypeAlias(t)?e.Debug.checkDefined(t.typeExpression):t.type,typeName:e.isJSDocTypeAlias(t)?e.getNameOfDeclaration(t):t.name}}:e.Debug.assertNever(t,"Attempted to set a declaration diagnostic context for unhandled node kind: ".concat(e.SyntaxKind[t.kind]));function r(r){var n=function(r){return 253===t.kind||202===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:166===t.kind||205===t.kind||165===t.kind||163===t.kind&&e.hasSyntacticModifier(t.parent,8)?e.isStatic(t)?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:256===t.parent.kind||163===t.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}(r);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}}e.canProduceDiagnostics=function(t){return e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isBindingElement(t)||e.isSetAccessor(t)||e.isGetAccessor(t)||e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isParameter(t)||e.isTypeParameterDeclaration(t)||e.isExpressionWithTypeArguments(t)||e.isImportEqualsDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isConstructorDeclaration(t)||e.isIndexSignatureDeclaration(t)||e.isPropertyAccessExpression(t)||e.isJSDocTypeAlias(t)},e.createGetSymbolAccessibilityDiagnosticForNodeName=function(r){return e.isSetAccessor(r)||e.isGetAccessor(r)?function(t){var n=function(t){return e.isStatic(r)?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:256===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.isStatic(r)?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:256===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}(c||(c={})),function(e){function t(t,r){var n=r.text.substring(t.pos,t.end);return e.stringContains(n,"@internal")}function n(r,n){var i=e.getParseTreeNode(r);if(i&&163===i.kind){var a=i.parent.parameters.indexOf(i),o=a>0?i.parent.parameters[a-1]:void 0,s=n.text,c=o?e.concatenate(e.getTrailingCommentRanges(s,e.skipTrivia(s,o.end+1,!1,!0)),e.getLeadingCommentRanges(s,r.pos)):e.getTrailingCommentRanges(s,e.skipTrivia(s,r.pos,!1,!0));return c&&c.length&&t(e.last(c),n)}var u=i&&e.getLeadingCommentRangesOfNode(i,n);return!!e.forEach(u,(function(e){return t(e,n)}))}e.getDeclarationDiagnostics=function(t,r,n){var i=t.getCompilerOptions();return e.transformNodes(r,t,e.factory,i,n?[n]:e.filter(t.getSourceFiles(),e.isSourceFileNotJson),[a],!1).diagnostics},e.isInternalDeclaration=n;var i=531469;function a(t){var a,c,u,l,d,_,p,f,g,m,y,v,h=function(){return e.Debug.fail("Diagnostic emitted without context")},D=h,x=!0,b=!1,S=!1,T=!1,C=!1,E=t.factory,k=t.getEmitHost(),A={trackSymbol:function(e,t,r){if(262144&e.flags)return!1;var n=O(F.isSymbolAccessible(e,t,r,!0));return I(F.getTypeReferenceDirectivesForSymbol(e,r)),n},reportInaccessibleThisError:function(){(p||f)&&t.addDiagnostic(e.createDiagnosticForNode(p||f,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,M(),"this"))},reportInaccessibleUniqueSymbolError:function(){(p||f)&&t.addDiagnostic(e.createDiagnosticForNode(p||f,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,M(),"unique symbol"))},reportCyclicStructureError:function(){(p||f)&&t.addDiagnostic(e.createDiagnosticForNode(p||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,M()))},reportPrivateInBaseOfClassExpression:function(r){(p||f)&&t.addDiagnostic(e.createDiagnosticForNode(p||f,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,r))},reportLikelyUnsafeImportRequiredError:function(r){(p||f)&&t.addDiagnostic(e.createDiagnosticForNode(p||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,M(),r))},reportTruncationError:function(){(p||f)&&t.addDiagnostic(e.createDiagnosticForNode(p||f,e.Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:k,trackReferencedAmbientModule:function(t,r){var n=F.getTypeReferenceDirectivesForSymbol(r,67108863);if(e.length(n))return I(n);var i=e.getSourceFileOfNode(t);m.set(e.getOriginalNodeId(i),i)},trackExternalModuleSymbolOfImportTypeNode:function(e){b||(_||(_=[])).push(e)},reportNonlocalAugmentation:function(r,n,i){var a,o=null===(a=n.declarations)||void 0===a?void 0:a.find((function(t){return e.getSourceFileOfNode(t)===r})),s=e.filter(i.declarations,(function(t){return e.getSourceFileOfNode(t)!==r}));if(s)for(var c=0,u=s;c0?e.parameters[0].type:void 0}e.transformDeclarations=a}(c||(c={})),function(e){var t,n;function i(t,r,n){if(n)return e.emptyArray;var i=e.getEmitScriptTarget(t),a=e.getEmitModuleKind(t),o=[];return e.addRange(o,r&&e.map(r.before,s)),o.push(e.transformTypeScript),o.push(e.transformClassFields),e.getJSXTransformEnabled(t)&&o.push(e.transformJsx),i<99&&o.push(e.transformESNext),i<8&&o.push(e.transformES2021),i<7&&o.push(e.transformES2020),i<6&&o.push(e.transformES2019),i<5&&o.push(e.transformES2018),i<4&&o.push(e.transformES2017),i<3&&o.push(e.transformES2016),i<2&&(o.push(e.transformES2015),o.push(e.transformGenerators)),o.push(function(t){switch(t){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}}(a)),i<1&&o.push(e.transformES5),e.addRange(o,r&&e.map(r.after,s)),o}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(n,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(e){return o(e,(function(e,t){return t}))}function u(e,t){return t}function l(e,t,r){r(e,t)}!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Completed=2]="Completed",e[e.Disposed=3]="Disposed"}(t||(t={})),function(e){e[e.Substitution=1]="Substitution",e[e.EmitNotifications=2]="EmitNotifications"}(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(t,n,i,a,o,s,c){for(var d,_,p,f,g,m=new Array(353),y=0,v=[],h=[],D=[],x=[],b=0,S=!1,T=[],C=0,E=u,k=l,A=0,F=[],N={factory:i,getCompilerOptions:function(){return a},getEmitResolver:function(){return t},getEmitHost:function(){return n},getEmitHelperFactory:e.memoize((function(){return e.createEmitHelperFactory(N)})),startLexicalEnvironment:function(){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is suspended."),v[b]=d,h[b]=_,D[b]=p,x[b]=y,b++,d=void 0,_=void 0,p=void 0,y=0},suspendLexicalEnvironment:function(){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is already suspended."),S=!0},resumeLexicalEnvironment:function(){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(S,"Lexical environment is not suspended."),S=!1},endLexicalEnvironment:function(){var t;if(e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is suspended."),d||_||p){if(_&&(t=r([],_,!0)),d){var n=i.createVariableStatement(void 0,i.createVariableDeclarationList(d));e.setEmitFlags(n,1048576),t?t.push(n):t=[n]}p&&(t=r(t?r([],t,!0):[],p,!0))}b--,d=v[b],_=h[b],p=D[b],y=x[b],0===b&&(v=[],h=[],D=[],x=[]);return t},setLexicalEnvironmentFlags:function(e,t){y=t?y|e:y&~e},getLexicalEnvironmentFlags:function(){return y},hoistVariableDeclaration:function(t){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed.");var r=e.setEmitFlags(i.createVariableDeclaration(t),64);d?d.push(r):d=[r];1&y&&(y|=2)},hoistFunctionDeclaration:function(t){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),_?_.push(t):_=[t]},addInitializationStatement:function(t){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),p?p.push(t):p=[t]},startBlockScope:function(){e.Debug.assert(A>0,"Cannot start a block scope during initialization."),e.Debug.assert(A<2,"Cannot start a block scope after transformation has completed."),T[C]=f,C++,f=void 0},endBlockScope:function(){e.Debug.assert(A>0,"Cannot end a block scope during initialization."),e.Debug.assert(A<2,"Cannot end a block scope after transformation has completed.");var t=e.some(f)?[i.createVariableStatement(void 0,i.createVariableDeclarationList(f.map((function(e){return i.createVariableDeclaration(e)})),1))]:void 0;C--,f=T[C],0===C&&(T=[]);return t},addBlockScopedVariable:function(t){e.Debug.assert(C>0,"Cannot add a block scoped variable outside of an iteration body."),(f||(f=[])).push(t)},requestEmitHelper:function t(r){if(e.Debug.assert(A>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(A<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!r.scoped,"Cannot request a scoped emit helper."),r.dependencies)for(var n=0,i=r.dependencies;n0,"Cannot modify the transformation context during initialization."),e.Debug.assert(A<2,"Cannot modify the transformation context after transformation has completed.");var t=g;return g=void 0,t},enableSubstitution:function(t){e.Debug.assert(A<2,"Cannot modify the transformation context after transformation has completed."),m[t]|=1},enableEmitNotification:function(t){e.Debug.assert(A<2,"Cannot modify the transformation context after transformation has completed."),m[t]|=2},isSubstitutionEnabled:J,isEmitNotificationEnabled:K,get onSubstituteNode(){return E},set onSubstituteNode(t){e.Debug.assert(A<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),E=t},get onEmitNode(){return k},set onEmitNode(t){e.Debug.assert(A<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),k=t},addDiagnostic:function(e){F.push(e)}},P=0,w=o;P"],e[8192]=["[","]"],e}();function a(t,r,n,i,a,s){void 0===i&&(i=!1);var u=e.isArray(n)?n:e.getSourceFilesToEmit(t,n,i),l=t.getCompilerOptions();if(e.outFile(l)){var d=t.getPrependNodes();if(u.length||d.length){var _=e.factory.createBundle(u,d);if(g=r(c(_,t,i),_))return g}}else{if(!a)for(var p=0,f=u;p0){var i=t.preserveSourceNewlinesStack[t.stackIndex],a=t.containerPosStack[t.stackIndex],o=t.containerEndStack[t.stackIndex],s=t.declarationListContainerEndStack[t.stackIndex],c=t.shouldEmitCommentsStack[t.stackIndex],u=t.shouldEmitSourceMapsStack[t.stackIndex];Ae(i),u&&Xr(e),c&&Fr(e,a,o,s),null==N||N(e),t.stackIndex--}}),void 0);function t(t,r,n){var i="left"===n?ne.getParenthesizeLeftSideOfBinaryForOperator(r.operatorToken.kind):ne.getParenthesizeRightSideOfBinaryForOperator(r.operatorToken.kind),a=we(0,1,t);if(a===Re&&(e.Debug.assertIsDefined(x),a=Ie(1,1,t=i(e.cast(x,e.isExpression))),x=void 0),(a===kr||a===Gr||a===Me)&&e.isBinaryExpression(t))return t;b=i,a(1,t)}}();return xe(),{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 303:return oe(r);case 304:return ae(r);case 305:return function(e,t){var r=p;De(t,void 0),ve(4,e,void 0),xe(),p=r}(r,me()),ye()}return se(t,r,n,me()),ye()},printList:function(e,t,r){return ce(e,t,r,me()),ye()},printFile:oe,printBundle:ae,writeNode:se,writeList:ce,writeFile:ge,writeBundle:fe,bundleFileInfo:K};function ae(e){return fe(e,me(),void 0),ye()}function oe(e){return ge(e,me(),void 0),ye()}function se(e,t,r,n){var i=p;De(n,void 0),ve(e,t,r),xe(),p=i}function ce(e,t,r,n){var i=p;De(n,void 0),r&&he(r),wt(void 0,t,e),xe(),p=i}function ue(){return p.getTextPosWithWriteLine?p.getTextPosWithWriteLine():p.getTextPos()}function le(t,r,n){var i=e.lastOrUndefined(K.sections);i&&i.kind===n?i.end=r:K.sections.push({pos:t,end:r,kind:n})}function de(t){if(U&&K&&n&&(e.isDeclaration(t)||e.isVariableStatement(t))&&e.isInternalDeclaration(t,n)&&"internal"!==q){var r=q;return pe(p.getTextPos()),V=ue(),q="internal",r}}function _e(e){e&&(pe(p.getTextPos()),V=ue(),q=e)}function pe(e){return V"),Ut(),Se(e.type),gr(e)}(r);case 179:return function(e){fr(e),Dt(e,e.modifiers),jt("new"),Ut(),At(e,e.typeParameters),Ft(e,e.parameters),Ut(),Rt("=>"),Ut(),Se(e.type),gr(e)}(r);case 180:return function(e){jt("typeof"),Ut(),Se(e.exprName)}(r);case 181:return function(t){Rt("{");var r=1&e.getEmitFlags(t)?768:32897;wt(t,t.members,524288|r),Rt("}")}(r);case 182:return function(e){Se(e.elementType,ne.parenthesizeElementTypeOfArrayType),Rt("["),Rt("]")}(r);case 183:return function(t){Ye(22,t.pos,Rt,t);var r=1&e.getEmitFlags(t)?528:657;wt(t,t.elements,524288|r),Ye(23,t.elements.end,Rt,t)}(r);case 184:return function(e){Se(e.type,ne.parenthesizeElementTypeOfArrayType),Rt("?")}(r);case 186:return function(e){wt(e,e.types,516,ne.parenthesizeMemberOfElementType)}(r);case 187:return function(e){wt(e,e.types,520,ne.parenthesizeMemberOfElementType)}(r);case 188:return function(e){Se(e.checkType,ne.parenthesizeMemberOfConditionalType),Ut(),jt("extends"),Ut(),Se(e.extendsType,ne.parenthesizeMemberOfConditionalType),Ut(),Rt("?"),Ut(),Se(e.trueType),Ut(),Rt(":"),Ut(),Se(e.falseType)}(r);case 189:return function(e){jt("infer"),Ut(),Se(e.typeParameter)}(r);case 190:return function(e){Rt("("),Se(e.type),Rt(")")}(r);case 227:return function(e){Ce(e.expression,ne.parenthesizeLeftSideOfAccess),kt(e,e.typeArguments)}(r);case 191:return void jt("this");case 192:return function(e){Qt(e.operator,jt),Ut(),Se(e.type,ne.parenthesizeMemberOfElementType)}(r);case 193:return function(e){Se(e.objectType,ne.parenthesizeMemberOfElementType),Rt("["),Se(e.indexType),Rt("]")}(r);case 194:return function(t){var r=e.getEmitFlags(t);Rt("{"),1&r?Ut():(Wt(),Ht());t.readonlyToken&&(Se(t.readonlyToken),144!==t.readonlyToken.kind&&jt("readonly"),Ut());Rt("["),Fe(3,t.typeParameter),t.nameType&&(Ut(),jt("as"),Ut(),Se(t.nameType));Rt("]"),t.questionToken&&(Se(t.questionToken),57!==t.questionToken.kind&&Rt("?"));Rt(":"),Ut(),Se(t.type),Bt(),1&r?Ut():(Wt(),Gt());Rt("}")}(r);case 195:return function(e){Ce(e.literal)}(r);case 196:return function(e){Se(e.dotDotDotToken),Se(e.name),Se(e.questionToken),Ye(58,e.name.end,Rt,e),Ut(),Se(e.type)}(r);case 197:return function(e){Se(e.head),wt(e,e.templateSpans,262144)}(r);case 198:return function(e){Se(e.type),Se(e.literal)}(r);case 199:return function(e){e.isTypeOf&&(jt("typeof"),Ut());jt("import"),Rt("("),Se(e.argument),Rt(")"),e.qualifier&&(Rt("."),Se(e.qualifier));kt(e,e.typeArguments)}(r);case 200:return function(e){Rt("{"),wt(e,e.elements,525136),Rt("}")}(r);case 201:return function(e){Rt("["),wt(e,e.elements,524880),Rt("]")}(r);case 202:return function(e){Se(e.dotDotDotToken),e.propertyName&&(Se(e.propertyName),Rt(":"),Ut());Se(e.name),bt(e.initializer,e.name.end,e,ne.parenthesizeExpressionForDisallowedComma)}(r);case 232:return function(e){Ce(e.expression),Se(e.literal)}(r);case 233:return void Bt();case 234:return function(e){qe(e,!e.multiLine&&lr(e))}(r);case 236:return function(e){Dt(e,e.modifiers),Se(e.declarationList),Bt()}(r);case 235:return We(!1);case 237:return function(t){Ce(t.expression,ne.parenthesizeExpressionOfExpressionStatement),(!e.isJsonSourceFile(n)||e.nodeIsSynthesized(t.expression))&&Bt()}(r);case 238:return function(e){var t=Ye(99,e.pos,jt,e);Ut(),Ye(20,t,Rt,e),Ce(e.expression),Ye(21,e.expression.end,Rt,e),Ct(e,e.thenStatement),e.elseStatement&&($t(e,e.thenStatement,e.elseStatement),Ye(91,e.thenStatement.end,jt,e),238===e.elseStatement.kind?(Ut(),Se(e.elseStatement)):Ct(e,e.elseStatement))}(r);case 239:return function(t){Ye(90,t.pos,jt,t),Ct(t,t.statement),e.isBlock(t.statement)&&!j?Ut():$t(t,t.statement,t.expression);He(t,t.statement.end),Bt()}(r);case 240:return function(e){He(e,e.pos),Ct(e,e.statement)}(r);case 241:return function(e){var t=Ye(97,e.pos,jt,e);Ut();var r=Ye(20,t,Rt,e);Ge(e.initializer),r=Ye(26,e.initializer?e.initializer.end:r,Rt,e),Tt(e.condition),r=Ye(26,e.condition?e.condition.end:r,Rt,e),Tt(e.incrementor),Ye(21,e.incrementor?e.incrementor.end:r,Rt,e),Ct(e,e.statement)}(r);case 242:return function(e){var t=Ye(97,e.pos,jt,e);Ut(),Ye(20,t,Rt,e),Ge(e.initializer),Ut(),Ye(101,e.initializer.end,jt,e),Ut(),Ce(e.expression),Ye(21,e.expression.end,Rt,e),Ct(e,e.statement)}(r);case 243:return function(e){var t=Ye(97,e.pos,jt,e);Ut(),function(e){e&&(Se(e),Ut())}(e.awaitModifier),Ye(20,t,Rt,e),Ge(e.initializer),Ut(),Ye(159,e.initializer.end,jt,e),Ut(),Ce(e.expression),Ye(21,e.expression.end,Rt,e),Ct(e,e.statement)}(r);case 244:return function(e){Ye(86,e.pos,jt,e),St(e.label),Bt()}(r);case 245:return function(e){Ye(81,e.pos,jt,e),St(e.label),Bt()}(r);case 246:return function(e){Ye(105,e.pos,jt,e),Tt(e.expression),Bt()}(r);case 247:return function(e){var t=Ye(116,e.pos,jt,e);Ut(),Ye(20,t,Rt,e),Ce(e.expression),Ye(21,e.expression.end,Rt,e),Ct(e,e.statement)}(r);case 248:return function(e){var t=Ye(107,e.pos,jt,e);Ut(),Ye(20,t,Rt,e),Ce(e.expression),Ye(21,e.expression.end,Rt,e),Ut(),Se(e.caseBlock)}(r);case 249:return function(e){Se(e.label),Ye(58,e.label.end,Rt,e),Ut(),Se(e.statement)}(r);case 250:return function(e){Ye(109,e.pos,jt,e),Tt(e.expression),Bt()}(r);case 251:return function(e){Ye(111,e.pos,jt,e),Ut(),Se(e.tryBlock),e.catchClause&&($t(e,e.tryBlock,e.catchClause),Se(e.catchClause));e.finallyBlock&&($t(e,e.catchClause||e.tryBlock,e.finallyBlock),Ye(96,(e.catchClause||e.tryBlock).end,jt,e),Ut(),Se(e.finallyBlock))}(r);case 252:return function(e){Yt(87,e.pos,jt),Bt()}(r);case 253:return function(e){Se(e.name),Se(e.exclamationToken),xt(e.type),bt(e.initializer,e.type?e.type.end:e.name.end,e,ne.parenthesizeExpressionForDisallowedComma)}(r);case 254:return function(t){jt(e.isLet(t)?"let":e.isVarConst(t)?"const":"var"),Ut(),wt(t,t.declarations,528)}(r);case 255:return function(e){Xe(e)}(r);case 256:return function(e){rt(e)}(r);case 257:return function(e){Et(e,e.decorators),Dt(e,e.modifiers),jt("interface"),Ut(),Se(e.name),At(e,e.typeParameters),wt(e,e.heritageClauses,512),Ut(),Rt("{"),wt(e,e.members,129),Rt("}")}(r);case 258:return function(e){Et(e,e.decorators),Dt(e,e.modifiers),jt("type"),Ut(),Se(e.name),At(e,e.typeParameters),Ut(),Rt("="),Ut(),Se(e.type),Bt()}(r);case 259:return function(e){Dt(e,e.modifiers),jt("enum"),Ut(),Se(e.name),Ut(),Rt("{"),wt(e,e.members,145),Rt("}")}(r);case 260:return function(t){Dt(t,t.modifiers),1024&~t.flags&&(jt(16&t.flags?"namespace":"module"),Ut());Se(t.name);var r=t.body;if(!r)return Bt();for(;r&&e.isModuleDeclaration(r);)Rt("."),Se(r.name),r=r.body;Ut(),Se(r)}(r);case 261:return function(t){fr(t),e.forEach(t.statements,yr),qe(t,lr(t)),gr(t)}(r);case 262:return function(e){Ye(18,e.pos,Rt,e),wt(e,e.clauses,129),Ye(19,e.clauses.end,Rt,e,!0)}(r);case 263:return function(e){var t=Ye(93,e.pos,jt,e);Ut(),t=Ye(127,t,jt,e),Ut(),t=Ye(142,t,jt,e),Ut(),Se(e.name),Bt()}(r);case 264:return function(e){Dt(e,e.modifiers),Ye(100,e.modifiers?e.modifiers.end:e.pos,jt,e),Ut(),e.isTypeOnly&&(Ye(151,e.pos,jt,e),Ut());Se(e.name),Ut(),Ye(63,e.name.end,Rt,e),Ut(),function(e){79===e.kind?Ce(e):Se(e)}(e.moduleReference),Bt()}(r);case 265:return function(e){Dt(e,e.modifiers),Ye(100,e.modifiers?e.modifiers.end:e.pos,jt,e),Ut(),e.importClause&&(Se(e.importClause),Ut(),Ye(155,e.importClause.end,jt,e),Ut());Ce(e.moduleSpecifier),e.assertClause&&St(e.assertClause);Bt()}(r);case 266:return function(e){e.isTypeOnly&&(Ye(151,e.pos,jt,e),Ut());Se(e.name),e.name&&e.namedBindings&&(Ye(27,e.name.end,Rt,e),Ut());Se(e.namedBindings)}(r);case 267:return function(e){var t=Ye(41,e.pos,Rt,e);Ut(),Ye(127,t,jt,e),Ut(),Se(e.name)}(r);case 273:return function(e){var t=Ye(41,e.pos,Rt,e);Ut(),Ye(127,t,jt,e),Ut(),Se(e.name)}(r);case 268:case 272:return function(e){nt(e)}(r);case 269:case 274:return function(e){it(e)}(r);case 270:return function(e){var t=Ye(93,e.pos,jt,e);Ut(),e.isExportEquals?Ye(63,t,Jt,e):Ye(88,t,jt,e);Ut(),Ce(e.expression,e.isExportEquals?ne.getParenthesizeRightSideOfBinaryForOperator(63):ne.parenthesizeExpressionOfExportDefault),Bt()}(r);case 271:return function(e){var t=Ye(93,e.pos,jt,e);Ut(),e.isTypeOnly&&(t=Ye(151,t,jt,e),Ut());e.exportClause?Se(e.exportClause):t=Ye(41,t,Rt,e);if(e.moduleSpecifier){Ut(),Ye(155,e.exportClause?e.exportClause.end:t,jt,e),Ut(),Ce(e.moduleSpecifier)}e.assertClause&&St(e.assertClause);Bt()}(r);case 292:return function(e){Ye(129,e.pos,jt,e),Ut();var t=e.elements;wt(e,t,526226)}(r);case 293:return function(t){Se(t.name),Rt(":"),Ut();var r=t.value;if(0==(512&e.getEmitFlags(r))){Kr(e.getCommentRange(r).pos)}Se(r)}(r);case 275:case 317:case 328:case 329:case 331:case 332:case 333:case 334:case 335:case 347:case 351:case 350:return;case 276:return function(e){jt("require"),Rt("("),Ce(e.expression),Rt(")")}(r);case 11:return function(e){p.writeLiteral(e.text)}(r);case 279:case 282:return function(t){if(Rt("<"),e.isJsxOpeningElement(t)){var r=or(t.tagName,t);at(t.tagName),kt(t,t.typeArguments),t.attributes.properties&&t.attributes.properties.length>0&&Ut(),Se(t.attributes),sr(t.attributes,t),tr(r)}Rt(">")}(r);case 280:case 283:return function(t){Rt("")}(r);case 284:return function(e){Se(e.name),function(e,t,r,n){r&&(t(e),n(r))}("=",Rt,e.initializer,Ee)}(r);case 285:return function(e){wt(e,e.properties,262656)}(r);case 286:return function(e){Rt("{..."),Ce(e.expression),Rt("}")}(r);case 287:return function(t){var r;if(t.expression||!Z&&!e.nodeIsSynthesized(t)&&(o=t.pos,function(t){var r=!1;return e.forEachTrailingCommentRange((null==n?void 0:n.text)||"",t+1,(function(){return r=!0})),r}(o)||function(t){var r=!1;return e.forEachLeadingCommentRange((null==n?void 0:n.text)||"",t+1,(function(){return r=!0})),r}(o))){var i=n&&!e.nodeIsSynthesized(t)&&e.getLineAndCharacterOfPosition(n,t.pos).line!==e.getLineAndCharacterOfPosition(n,t.end).line;i&&p.increaseIndent();var a=Ye(18,t.pos,Rt,t);Se(t.dotDotDotToken),Ce(t.expression),Ye(19,(null===(r=t.expression)||void 0===r?void 0:r.end)||a,Rt,t),i&&p.decreaseIndent()}var o}(r);case 288:return function(e){Ye(82,e.pos,jt,e),Ut(),Ce(e.expression,ne.parenthesizeExpressionForDisallowedComma),ot(e,e.statements,e.expression.end)}(r);case 289:return function(e){var t=Ye(88,e.pos,jt,e);ot(e,e.statements,t)}(r);case 290:return function(e){Ut(),Qt(e.token,jt),Ut(),wt(e,e.types,528)}(r);case 291:return function(e){var t=Ye(83,e.pos,jt,e);Ut(),e.variableDeclaration&&(Ye(20,t,Rt,e),Se(e.variableDeclaration),Ye(21,e.variableDeclaration.end,Rt,e),Ut());Se(e.block)}(r);case 294:return function(t){Se(t.name),Rt(":"),Ut();var r=t.initializer;if(0==(512&e.getEmitFlags(r))){Kr(e.getCommentRange(r).pos)}Ce(r,ne.parenthesizeExpressionForDisallowedComma)}(r);case 295:return function(e){Se(e.name),e.objectAssignmentInitializer&&(Ut(),Rt("="),Ut(),Ce(e.objectAssignmentInitializer,ne.parenthesizeExpressionForDisallowedComma))}(r);case 296:return function(e){e.expression&&(Ye(25,e.pos,Rt,e),Ce(e.expression,ne.parenthesizeExpressionForDisallowedComma))}(r);case 297:return function(e){Se(e.name),bt(e.initializer,e.name.end,e,ne.parenthesizeExpressionForDisallowedComma)}(r);case 298:return Ke(r);case 305:case 299:return function(e){for(var t=0,r=e.texts;t=1&&!e.isJsonSourceFile(n)?64:0;wt(t,t.properties,526226|a|i),r&&Gt()}(r);case 205:return function(t){Ce(t.expression,ne.parenthesizeLeftSideOfAccess);var r=t.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),t.expression.end,t.name.pos),n=ur(t,t.expression,r),i=ur(t,r,t.name);er(n,!1),28===r.kind||!function(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isNumericLiteral(t)){var r=pr(t,!0,!1);return!t.numericLiteralFlags&&!e.stringContains(r,e.tokenToString(24))}if(e.isAccessExpression(t)){var n=e.getConstantValue(t);return"number"==typeof n&&isFinite(n)&&Math.floor(n)===n}}(t.expression)||p.hasTrailingComment()||p.hasTrailingWhitespace()||Rt(".");t.questionDotToken?Se(r):Ye(r.kind,t.expression.end,Rt,t);er(i,!1),Se(t.name),tr(n,i)}(r);case 206:return function(e){Ce(e.expression,ne.parenthesizeLeftSideOfAccess),Se(e.questionDotToken),Ye(22,e.expression.end,Rt,e),Ce(e.argumentExpression),Ye(23,e.argumentExpression.end,Rt,e)}(r);case 207:return function(t){var r=536870912&e.getEmitFlags(t);r&&(Rt("("),Mt("0"),Rt(","),Ut());Ce(t.expression,ne.parenthesizeLeftSideOfAccess),r&&Rt(")");Se(t.questionDotToken),kt(t,t.typeArguments),It(t,t.arguments,2576,ne.parenthesizeExpressionForDisallowedComma)}(r);case 208:return function(e){Ye(103,e.pos,jt,e),Ut(),Ce(e.expression,ne.parenthesizeExpressionOfNew),kt(e,e.typeArguments),It(e,e.arguments,18960,ne.parenthesizeExpressionForDisallowedComma)}(r);case 209:return function(t){var r=536870912&e.getEmitFlags(t);r&&(Rt("("),Mt("0"),Rt(","),Ut());Ce(t.tag,ne.parenthesizeLeftSideOfAccess),r&&Rt(")");kt(t,t.typeArguments),Ut(),Ce(t.template)}(r);case 210:return function(e){Rt("<"),Se(e.type),Rt(">"),Ce(e.expression,ne.parenthesizeOperandOfPrefixUnary)}(r);case 211:return function(e){var t=Ye(20,e.pos,Rt,e),r=or(e.expression,e);Ce(e.expression,void 0),sr(e.expression,e),tr(r),Ye(21,e.expression?e.expression.end:t,Rt,e)}(r);case 212:return function(e){hr(e.name),Xe(e)}(r);case 213:return function(e){Et(e,e.decorators),Dt(e,e.modifiers),Qe(e,Ve)}(r);case 214:return function(e){Ye(89,e.pos,jt,e),Ut(),Ce(e.expression,ne.parenthesizeOperandOfPrefixUnary)}(r);case 215:return function(e){Ye(112,e.pos,jt,e),Ut(),Ce(e.expression,ne.parenthesizeOperandOfPrefixUnary)}(r);case 216:return function(e){Ye(114,e.pos,jt,e),Ut(),Ce(e.expression,ne.parenthesizeOperandOfPrefixUnary)}(r);case 217:return function(e){Ye(132,e.pos,jt,e),Ut(),Ce(e.expression,ne.parenthesizeOperandOfPrefixUnary)}(r);case 218:return function(e){Qt(e.operator,Jt),function(e){var t=e.operand;return 218===t.kind&&(39===e.operator&&(39===t.operator||45===t.operator)||40===e.operator&&(40===t.operator||46===t.operator))}(e)&&Ut();Ce(e.operand,ne.parenthesizeOperandOfPrefixUnary)}(r);case 219:return function(e){Ce(e.operand,ne.parenthesizeOperandOfPostfixUnary),Qt(e.operator,Jt)}(r);case 220:return ie(r);case 221:return function(e){var t=ur(e,e.condition,e.questionToken),r=ur(e,e.questionToken,e.whenTrue),n=ur(e,e.whenTrue,e.colonToken),i=ur(e,e.colonToken,e.whenFalse);Ce(e.condition,ne.parenthesizeConditionOfConditionalExpression),er(t,!0),Se(e.questionToken),er(r,!0),Ce(e.whenTrue,ne.parenthesizeBranchOfConditionalExpression),tr(t,r),er(n,!0),Se(e.colonToken),er(i,!0),Ce(e.whenFalse,ne.parenthesizeBranchOfConditionalExpression),tr(n,i)}(r);case 222:return function(e){Se(e.head),wt(e,e.templateSpans,262144)}(r);case 223:return function(e){Ye(125,e.pos,jt,e),Se(e.asteriskToken),Tt(e.expression,ne.parenthesizeExpressionForDisallowedComma)}(r);case 224:return function(e){Ye(25,e.pos,Rt,e),Ce(e.expression,ne.parenthesizeExpressionForDisallowedComma)}(r);case 225:return function(e){hr(e.name),rt(e)}(r);case 226:case 347:case 350:case 351:return;case 228:return function(e){Ce(e.expression,void 0),e.type&&(Ut(),jt("as"),Ut(),Se(e.type))}(r);case 229:return function(e){Ce(e.expression,ne.parenthesizeLeftSideOfAccess),Jt("!")}(r);case 230:return function(e){Yt(e.keywordToken,e.pos,Rt),Rt("."),Se(e.name)}(r);case 231:return e.Debug.fail("SyntheticExpression should never be printed.");case 277:return function(e){Se(e.openingElement),wt(e,e.children,262144),Se(e.closingElement)}(r);case 278:return function(e){Rt("<"),at(e.tagName),kt(e,e.typeArguments),Ut(),Se(e.attributes),Rt("/>")}(r);case 281:return function(e){Se(e.openingFragment),wt(e,e.children,262144),Se(e.closingFragment)}(r);case 346:return e.Debug.fail("SyntaxList should not be printed");case 348:return function(e){Ce(e.expression)}(r);case 349:return function(e){It(e,e.elements,528,void 0)}(r);case 352:return e.Debug.fail("SyntheticReferenceExpression should not be printed")}return e.isKeyword(r.kind)?Xt(r,jt):e.isTokenKind(r.kind)?Xt(r,Rt):void e.Debug.fail("Unhandled SyntaxKind: ".concat(e.Debug.formatSyntaxKind(r.kind),"."))}function Re(t,r){var n=Ie(1,t,r);e.Debug.assertIsDefined(x),r=x,x=void 0,n(t,r)}function Be(r){var i=!1,a=304===r.kind?r:void 0;if(!a||R!==e.ModuleKind.None){for(var o=a?a.prepends.length:0,s=a?a.sourceFiles.length+o:1,c=0;c0)return!1;r=o}return!0}(t)?et:tt;Ir?Ir(t,t.statements,r):r(t),Gt(),Yt(19,t.statements.end,Rt,t),null==N||N(t)}function et(e){tt(e,!0)}function tt(e,t){var r=gt(e.statements),n=p.getTextPos();Be(e),0===r&&n===p.getTextPos()&&t?(Gt(),wt(e,e.statements,768),Ht()):wt(e,e.statements,1,void 0,r)}function rt(t){e.forEach(t.members,vr),Et(t,t.decorators),Dt(t,t.modifiers),jt("class"),t.name&&(Ut(),Te(t.name));var r=65536&e.getEmitFlags(t);r&&Ht(),At(t,t.typeParameters),wt(t,t.heritageClauses,0),Ut(),Rt("{"),wt(t,t.members,129),Rt("}"),r&&Gt()}function nt(e){Rt("{"),wt(e,e.elements,525136),Rt("}")}function it(e){e.isTypeOnly&&(jt("type"),Ut()),e.propertyName&&(Se(e.propertyName),Ut(),Ye(127,e.propertyName.end,jt,e),Ut()),Se(e.name)}function at(e){79===e.kind?Ce(e):Se(e)}function ot(t,r,i){var a=163969;1===r.length&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r[0])||e.rangeStartPositionsAreOnSameLine(t,r[0],n))?(Yt(58,i,Rt,t),Ut(),a&=-130):Ye(58,i,Rt,t),wt(t,r,a)}function st(t){wt(t,e.factory.createNodeArray(t.jsDocPropertyTags),33)}function ct(t){t.typeParameters&&wt(t,e.factory.createNodeArray(t.typeParameters),33),t.parameters&&wt(t,e.factory.createNodeArray(t.parameters),33),t.type&&(Wt(),Ut(),Rt("*"),Ut(),Se(t.type))}function ut(e){Rt("@"),Se(e)}function lt(t){var r=e.getTextOfJSDocComment(t);r&&(Ut(),J(r))}function dt(e){e&&(Ut(),Rt("{"),Se(e.type),Rt("}"))}function _t(t){Wt();var r=t.statements;if(Ir&&(0===r.length||!e.isPrologueDirective(r[0])||e.nodeIsSynthesized(r[0])))return void Ir(t,r,ft);ft(t)}function pt(e,t,r,i){if(e){var a=p.getTextPos();zt('/// '),K&&K.sections.push({pos:a,end:p.getTextPos(),kind:"no-default-lib"}),Wt()}if(n&&n.moduleName&&(zt('/// ')),Wt()),n&&n.amdDependencies)for(var o=0,s=n.amdDependencies;o')):zt('/// ')),Wt()}for(var u=0,l=t;u')),K&&K.sections.push({pos:a,end:p.getTextPos(),kind:"reference",data:d.fileName}),Wt()}for(var _=0,f=r;_')),K&&K.sections.push({pos:a,end:p.getTextPos(),kind:"type",data:d.fileName}),Wt()}for(var g=0,m=i;g')),K&&K.sections.push({pos:a,end:p.getTextPos(),kind:"lib",data:d.fileName}),Wt()}}function ft(t){var r=t.statements;fr(t),e.forEach(t.statements,yr),Be(t);var n=e.findIndex(r,(function(t){return!e.isPrologueDirective(t)}));!function(e){e.isDeclarationFile&&pt(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(t),wt(t,r,1,void 0,-1===n?r.length:n),gr(t)}function gt(t,r,n,i){for(var a=!!r,o=0;o=a.length||0===u;if(l&&32768&o)return P&&P(a),void(w&&w(a));if(15360&o&&(Rt(function(e){return i[15360&e][0]}(o)),l&&a&&Kr(a.pos,!0)),P&&P(a),l)1&o&&(!j||r&&!e.rangeIsOnSingleLine(r,n))?Wt():256&o&&!(524288&o)&&Ut();else{e.Debug.type(a);var d=0==(262144&o),p=d,f=rr(r,a,o);f?(Wt(f),p=!1):256&o&&Ut(),128&o&&Ht();for(var g=void 0,m=void 0,y=!1,v=0;v0?(0==(131&o)&&(Ht(),y=!0),Wt(D),p=!1):g&&512&o&&Ut()}if(m=de(h),p){if(Kr)Kr(e.getCommentRange(h).pos)}else p=d;_=h.pos,1===t.length?t(h):t(h,s),y&&(Gt(),y=!1),g=h}var x=g?e.getEmitFlags(g):0,b=Z||!!(1024&x),S=(null==a?void 0:a.hasTrailingComma)&&64&o&&16&o;S&&(g&&!b?Ye(27,g.end,Rt,g):Rt(",")),g&&(r?r.end:-1)!==g.end&&60&o&&!b&&jr(S&&(null==a?void 0:a.end)?a.end:g.end),128&o&&Gt(),_e(m);var T=ir(r,a,o);T?Wt(T):2097408&o&&Ut()}w&&w(a),15360&o&&(l&&a&&jr(a.end),Rt(function(e){return i[15360&e][1]}(o)))}}function Mt(e){p.writeLiteral(e)}function Lt(e,t){p.writeSymbol(e,t)}function Rt(e){p.writePunctuation(e)}function Bt(){p.writeTrailingSemicolon(";")}function jt(e){p.writeKeyword(e)}function Jt(e){p.writeOperator(e)}function Kt(e){p.writeParameter(e)}function zt(e){p.writeComment(e)}function Ut(){p.writeSpace(" ")}function Vt(e){p.writeProperty(e)}function qt(e){p.nonEscapingWrite?p.nonEscapingWrite(e):p.write(e)}function Wt(e){void 0===e&&(e=1);for(var t=0;t0)}function Ht(){p.increaseIndent()}function Gt(){p.decreaseIndent()}function Yt(t,r,n,i){return W?Qt(t,n,r):function(t,r,n,i,a){if(W||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=Qr(u,c?c.pos:i),0==(128&s)&&i>=0&&Zr(u,i);i=a(r,n,i),c&&(i=c.end);0==(256&s)&&i>=0&&Zr(u,i);return i}(i,t,n,r,Qt)}function Xt(t,r){I&&I(t),r(e.tokenToString(t.kind)),O&&O(t)}function Qt(t,r,n){var i=e.tokenToString(t);return r(i),n<0?n:n+i.length}function $t(t,r,n){if(1&e.getEmitFlags(t))Ut();else if(j){var i=ur(t,r,n);i?Wt(i):Ut()}else Wt()}function Zt(t){for(var r=t.split(/\r\n?|\n/g),n=e.guessIndentation(r),i=0,a=r;i-1&&i.indexOf(r)===a+1}(t,r)?ar((function(i){return e.getLinesBetweenRangeEndAndRangeStart(t,r,n,i)})):!j&&(a=t,o=r,(a=e.getOriginalNode(a)).parent&&a.parent===e.getOriginalNode(o).parent)?e.rangeEndIsOnSameLineAsRangeStart(t,r,n)?0:1:65536&i?1:0;if(cr(t,i)||cr(r,i))return 1}else if(e.getStartsOnNewLine(r))return 1;var a,o;return 1&i?1:0}function ir(t,r,i){if(2&i||j){if(65536&i)return 1;var a=e.lastOrUndefined(r);if(void 0===a)return!t||e.rangeIsOnSingleLine(t,n)?0:1;if(t&&!e.positionIsSynthesized(t.pos)&&!e.nodeIsSynthesized(a)&&(!a.parent||a.parent===t)){if(j){var o=e.isNodeArray(r)&&!e.positionIsSynthesized(r.end)?r.end:a.end;return ar((function(r){return e.getLinesBetweenPositionAndNextNonWhitespaceCharacter(o,t.end,n,r)}))}return e.rangeEndPositionsAreOnSameLine(t,a,n)?0:1}if(cr(a,i))return 1}return 1&i&&!(131072&i)?1:0}function ar(t){e.Debug.assert(!!j);var r=t(!0);return 0===r?t(!1):r}function or(e,t){var r=j&&rr(t,[e],0);return r&&er(r,!1),!!r}function sr(e,t){var r=j&&ir(t,[e],0);r&&Wt(r)}function cr(t,r){if(e.nodeIsSynthesized(t)){var n=e.getStartsOnNewLine(t);return void 0===n?0!=(65536&r):n}return 0!=(65536&r)}function ur(t,r,i){return 131072&e.getEmitFlags(t)?0:(t=dr(t),r=dr(r),i=dr(i),e.getStartsOnNewLine(i)?1:e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r)||e.nodeIsSynthesized(i)?0:j?ar((function(t){return e.getLinesBetweenRangeEndAndRangeStart(r,i,n,t)})):e.rangeEndIsOnSameLineAsRangeStart(r,i,n)?0:1)}function lr(t){return 0===t.statements.length&&e.rangeEndIsOnSameLineAsRangeStart(t,t,n)}function dr(t){for(;211===t.kind&&e.nodeIsSynthesized(t);)t=t.expression;return t}function _r(t,r){return e.isGeneratedIdentifier(t)?Dr(t):(e.isIdentifier(t)||e.isPrivateIdentifier(t))&&(e.nodeIsSynthesized(t)||!t.parent||!n||t.parent&&n&&e.getSourceFileOfNode(t)!==e.getOriginalNode(n))?e.idText(t):10===t.kind&&t.textSourceNode?_r(t.textSourceNode,r):!e.isLiteralExpression(t)||!e.nodeIsSynthesized(t)&&t.parent?e.getSourceTextOfNodeFromSourceFile(n,t,r):t.text}function pr(r,i,a){if(10===r.kind&&r.textSourceNode){var o=r.textSourceNode;if(e.isIdentifier(o)||e.isNumericLiteral(o)){var s=e.isNumericLiteral(o)?o.text:_r(o);return a?'"'.concat(e.escapeJsxAttributeString(s),'"'):i||16777216&e.getEmitFlags(r)?'"'.concat(e.escapeString(s),'"'):'"'.concat(e.escapeNonAsciiString(s),'"')}return pr(o,i,a)}var c=(i?1:0)|(a?2:0)|(t.terminateUnterminatedLiterals?4:0)|(t.target&&99===t.target?8:0);return e.getLiteralText(r,n,c)}function fr(t){t&&524288&e.getEmitFlags(t)||(c.push(u),u=0,l.push(d))}function gr(t){t&&524288&e.getEmitFlags(t)||(u=c.pop(),d=l.pop())}function mr(t){d&&d!==e.lastOrUndefined(l)||(d=new e.Set),d.add(t)}function yr(t){if(t)switch(t.kind){case 234:case 288:case 289:e.forEach(t.statements,yr);break;case 249:case 247:case 239:case 240:yr(t.statement);break;case 238:yr(t.thenStatement),yr(t.elseStatement);break;case 241:case 243:case 242:yr(t.initializer),yr(t.statement);break;case 248:yr(t.caseBlock);break;case 262:e.forEach(t.clauses,yr);break;case 251:yr(t.tryBlock),yr(t.catchClause),yr(t.finallyBlock);break;case 291:yr(t.variableDeclaration),yr(t.block);break;case 236:yr(t.declarationList);break;case 254:e.forEach(t.declarations,yr);break;case 253:case 163:case 202:case 256:case 267:case 273:hr(t.name);break;case 255:hr(t.name),524288&e.getEmitFlags(t)&&(e.forEach(t.parameters,yr),yr(t.body));break;case 200:case 201:case 268:e.forEach(t.elements,yr);break;case 265:yr(t.importClause);break;case 266:hr(t.name),yr(t.namedBindings);break;case 269:hr(t.propertyName||t.name)}}function vr(e){if(e)switch(e.kind){case 294:case 295:case 166:case 168:case 171:case 172:hr(e.name)}}function hr(t){t&&(e.isGeneratedIdentifier(t)?Dr(t):e.isBindingPattern(t)&&yr(t))}function Dr(t){if(4==(7&t.autoGenerateFlags))return xr(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 o[r]||(o[r]=function(t){switch(7&t.autoGenerateFlags){case 1:return Tr(0,!!(8&t.autoGenerateFlags));case 2:return Tr(268435456,!!(8&t.autoGenerateFlags));case 3:return Cr(e.idText(t),32&t.autoGenerateFlags?Sr:br,!!(16&t.autoGenerateFlags),!!(8&t.autoGenerateFlags))}return e.Debug.fail("Unsupported GeneratedIdentifierKind.")}(t))}function xr(t,r){var n=e.getNodeId(t);return a[n]||(a[n]=function(t,r){switch(t.kind){case 79:return Cr(_r(t),br,!!(16&r),!!(8&r));case 260:case 259:return function(t){var r=_r(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:Cr(r)}(t);case 265:case 271:return function(t){var r=e.getExternalModuleName(t);return Cr(e.isStringLiteral(r)?e.makeIdentifierFromModuleName(r.text):"module")}(t);case 255:case 256:case 270:return Cr("default");case 225:return Cr("class");case 168:case 171:case 172:return function(t){if(e.isIdentifier(t.name))return xr(t.name);return Tr(0)}(t);case 161:return Tr(0,!0);default:return Tr(0)}}(t,r))}function br(e){return Sr(e)&&!s.has(e)&&!(d&&d.has(e))}function Sr(t){return!n||e.isFileLevelUniqueName(n,t,S)}function Tr(e,t){if(e&&!(u&e)&&br(r=268435456===e?"_i":"_n"))return u|=e,t&&mr(r),r;for(;;){var r,n=268435455&u;if(u++,8!==n&&13!==n)if(br(r=n<26?"_"+String.fromCharCode(97+n):"_"+(n-26)))return t&&mr(r),r}}function Cr(e,t,r,n){if(void 0===t&&(t=br),r&&t(e))return n?mr(e):s.add(e),e;95!==e.charCodeAt(e.length-1)&&(e+="_");for(var i=1;;){var a=e+i;if(t(a))return n?mr(a):s.add(a),a;i++}}function Er(e){return Cr(e,Sr,!0)}function kr(e,t){var r=Ie(2,e,t),n=Y,i=X,a=Q;Ar(t),r(e,t),Fr(t,n,i,a)}function Ar(t){var r=e.getEmitFlags(t),n=e.getCommentRange(t);!function(t,r,n,i){te(),$=!1;var a=n<0||0!=(512&r)||11===t.kind,o=i<0||0!=(1024&r)||11===t.kind;(n>0||i>0)&&n!==i&&(a||Or(n,347!==t.kind),(!a||n>=0&&0!=(512&r))&&(Y=n),(!o||i>=0&&0!=(1024&r))&&(X=i,254===t.kind&&(Q=i)));e.forEach(e.getSyntheticLeadingComments(t),Nr),re()}(t,r,n.pos,n.end),2048&r&&(Z=!0)}function Fr(t,r,n,i){var a=e.getEmitFlags(t),o=e.getCommentRange(t);2048&a&&(Z=!1),function(t,r,n,i,a,o,s){te();var c=i<0||0!=(1024&r)||11===t.kind;e.forEach(e.getSyntheticTrailingComments(t),Pr),(n>0||i>0)&&n!==i&&(Y=a,X=o,Q=s,c||347===t.kind||function(e){qr(e,Jr)}(i));re()}(t,a,o.pos,o.end,r,n,i)}function Nr(e){(e.hasLeadingNewline||2===e.kind)&&p.writeLine(),wr(e),e.hasTrailingNewLine||2===e.kind?p.writeLine():p.writeSpace(" ")}function Pr(e){p.isAtStartOfLine()||p.writeSpace(" "),wr(e),e.hasTrailingNewLine&&p.writeLine()}function wr(t){var r=function(e){return 3===e.kind?"/*".concat(e.text,"*/"):"//".concat(e.text)}(t),n=3===t.kind?e.computeLineStarts(r):void 0;e.writeCommentRange(r,n,p,0,r.length,L)}function Ir(t,r,i){te();var a=r.pos,o=r.end,s=e.getEmitFlags(t),c=Z||o<0||0!=(1024&s);a<0||0!=(512&s)||function(t){var r=e.emitDetachedComments(n.text,be(),p,Wr,t,L,Z);r&&(D?D.push(r):D=[r])}(r),re(),2048&s&&!Z?(Z=!0,i(t),Z=!1):i(t),te(),c||(Or(r.end,!0),$&&!p.isAtStartOfLine()&&p.writeLine()),re()}function Or(e,t){$=!1,t?0===e&&(null==n?void 0:n.isDeclarationFile)?Vr(e,Lr):Vr(e,Br):0===e&&Vr(e,Mr)}function Mr(e,t,r,n,i){Hr(e,t)&&Br(e,t,r,n,i)}function Lr(e,t,r,n,i){Hr(e,t)||Br(e,t,r,n,i)}function Rr(r,n){return!t.onlyPrintJsDocStyle||(e.isJSDocLikeText(r,n)||e.isPinnedComment(r,n))}function Br(t,r,i,a,o){Rr(n.text,t)&&($||(e.emitNewLineBeforeLeadingCommentOfPosition(be(),p,o,t),$=!0),$r(t),e.writeCommentRange(n.text,be(),p,t,r,L),$r(r),a?p.writeLine():3===i&&p.writeSpace(" "))}function jr(e){Z||-1===e||Or(e,!0)}function Jr(t,r,i,a){Rr(n.text,t)&&(p.isAtStartOfLine()||p.writeSpace(" "),$r(t),e.writeCommentRange(n.text,be(),p,t,r,L),$r(r),a&&p.writeLine())}function Kr(e,t,r){Z||(te(),qr(e,t?Jr:r?zr:Ur),re())}function zr(t,r,i){$r(t),e.writeCommentRange(n.text,be(),p,t,r,L),$r(r),2===i&&p.writeLine()}function Ur(t,r,i,a){$r(t),e.writeCommentRange(n.text,be(),p,t,r,L),$r(r),a?p.writeLine():p.writeSpace(" ")}function Vr(t,r){!n||-1!==Y&&t===Y||(function(t){return void 0!==D&&e.last(D).nodePos===t}(t)?function(t){var r=e.last(D).detachedCommentEndPos;D.length-1?D.pop():D=void 0;e.forEachLeadingCommentRange(n.text,r,t,r)}(r):e.forEachLeadingCommentRange(n.text,t,r,t))}function qr(t,r){n&&(-1===X||t!==X&&t!==Q)&&e.forEachTrailingCommentRange(n.text,t,r)}function Wr(t,r,i,a,o,s){Rr(n.text,a)&&($r(a),e.writeCommentRange(t,r,i,a,o,s),$r(o))}function Hr(t,r){return e.isRecognizedTripleSlashComment(n.text,t,r)}function Gr(e,t){var r=Ie(3,e,t);Yr(t),r(e,t),Xr(t)}function Yr(t){var r=e.getEmitFlags(t),n=e.getSourceMapRange(t);if(e.isUnparsedNode(t)){e.Debug.assertIsDefined(t.parent,"UnparsedNodes must have parent pointers");var i=function(t){return void 0===t.parsedSourceMap&&void 0!==t.sourceMapText&&(t.parsedSourceMap=e.tryParseRawSourceMap(t.sourceMapText)||!1),t.parsedSourceMap||void 0}(t.parent);i&&m&&m.appendSourceMap(p.getLine(),p.getColumn(),i,t.parent.sourceMapPath,t.parent.getLineAndCharacterOfPosition(t.pos),t.parent.getLineAndCharacterOfPosition(t.end))}else{var a=n.source||y;347!==t.kind&&0==(16&r)&&n.pos>=0&&Zr(n.source||y,Qr(a,n.pos)),64&r&&(W=!0)}}function Xr(t){var r=e.getEmitFlags(t),n=e.getSourceMapRange(t);e.isUnparsedNode(t)||(64&r&&(W=!1),347!==t.kind&&0==(32&r)&&n.end>=0&&Zr(n.source||y,n.end))}function Qr(t,r){return t.skipTrivia?t.skipTrivia(r):e.skipTrivia(t.text,r)}function $r(t){if(!(W||e.positionIsSynthesized(t)||tn(y))){var r=e.getLineAndCharacterOfPosition(y,t),n=r.line,i=r.character;m.addMapping(p.getLine(),p.getColumn(),H,n,i,void 0)}}function Zr(e,t){if(e!==y){var r=y,n=H;en(e),$r(t),function(e,t){y=e,H=t}(r,n)}else $r(t)}function en(e){W||(y=e,e!==v?tn(e)||(H=m.addSource(e.fileName),t.inlineSources&&m.setSourceContent(H,e.text),v=e,G=H):H=G)}function tn(t){return e.fileExtensionIs(t.fileName,".json")}}e.isBuildInfoFile=function(t){return e.fileExtensionIs(t,".tsbuildinfo")},e.forEachEmittedFile=a,e.getTsBuildInfoEmitOutputFilePath=o,e.getOutputPathsForBundle=s,e.getOutputPathsFor=c,e.getOutputExtension=l,e.getOutputDeclarationFileName=_,e.getCommonSourceDirectory=y,e.getCommonSourceDirectoryOfConfig=v,e.getAllProjectOutputs=function(t,r){var n=f(),i=n.addOutput,a=n.getOutputs;if(e.outFile(t.options))g(t,i);else{for(var s=e.memoize((function(){return v(t,r)})),c=0,u=t.fileNames;c=4,v=(f+1+"").length;y&&(v=Math.max("...".length,v));for(var h="",D=l;D<=f;D++){h+=o.getNewLine(),y&&l+11}))&&rr(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}j.useDefineForClassFields&&0===d&&rr(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields");j.checkJs&&!e.getAllowJSCompilerOption(j)&&ce.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"));j.emitDeclarationOnly&&(e.getEmitDeclarations(j)||rr(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),j.noEmit&&rr(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit"));j.emitDecoratorMetadata&&!j.experimentalDecorators&&rr(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators");j.jsxFactory?(j.reactNamespace&&rr(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==j.jsx&&5!==j.jsx||rr(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",e.inverseJsxOptionMap.get(""+j.jsx)),e.parseIsolatedEntityName(j.jsxFactory,d)||nr("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,j.jsxFactory)):j.reactNamespace&&!e.isIdentifierText(j.reactNamespace,d)&&nr("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,j.reactNamespace);j.jsxFragmentFactory&&(j.jsxFactory||rr(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==j.jsx&&5!==j.jsx||rr(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",e.inverseJsxOptionMap.get(""+j.jsx)),e.parseIsolatedEntityName(j.jsxFragmentFactory,d)||nr("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,j.jsxFragmentFactory));j.reactNamespace&&(4!==j.jsx&&5!==j.jsx||rr(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",e.inverseJsxOptionMap.get(""+j.jsx)));j.jsxImportSource&&2===j.jsx&&rr(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",e.inverseJsxOptionMap.get(""+j.jsx));j.preserveValueImports&&e.getEmitModuleKind(j)=e.length(null==o?void 0:o.imports)+e.length(null==o?void 0:o.moduleAugmentations))return!1;var n=e.getResolvedModule(o,t,o&&m(o,r)),i=n&&z.getSourceFile(n.resolvedFileName);if(n&&i)return!1;var a=U.get(t);return!!a&&(e.isTraceEnabled(j,ne)&&e.trace(ne,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,t,a),!0)}}function Ze(t){return{getPrependNodes:tt,getCanonicalFileName:qt,getCommonSourceDirectory:Ve.getCommonSourceDirectory,getCompilerOptions:Ve.getCompilerOptions,getCurrentDirectory:function(){return ue},getNewLine:function(){return ne.getNewLine()},getSourceFile:Ve.getSourceFile,getSourceFileByPath:Ve.getSourceFileByPath,getSourceFiles:Ve.getSourceFiles,getLibFileFromReference:Ve.getLibFileFromReference,isSourceFileFromExternalLibrary:rt,getResolvedProjectReferenceToRedirect:Mt,getProjectReferenceRedirect:wt,isSourceOfProjectReferenceRedirect:Bt,getSymlinkCache:lr,writeFile:t||function(e,t,r,n,i){return ne.writeFile(e,t,r,n,i)},isEmitBlocked:at,readFile:function(e){return ne.readFile(e)},fileExists:function(t){var r=Xe(t);return!!st(r)||!e.contains(me,r)&&ne.fileExists(t)},useCaseSensitiveFileNames:function(){return ne.useCaseSensitiveFileNames()},getProgramBuildInfo:function(){return Ve.getProgramBuildInfo&&Ve.getProgramBuildInfo()},getSourceFileFromReference:function(e,t){return Ve.getSourceFileFromReference(e,t)},redirectTargetsMap:Se,getFileIncludeReasons:Ve.getFileIncludeReasons}}function et(){return ye}function tt(){return k(K,(function(e,t){var r;return null===(r=ye[t])||void 0===r?void 0:r.commandLine}),(function(e){var t=Xe(e),r=st(t);return r?r.text:Ce.has(t)?void 0:ne.readFile(t)}))}function rt(e){return!!Q.get(e.path)}function nt(){return I||(I=e.createTypeChecker(Ve,!0))}function it(){return O||(O=e.createTypeChecker(Ve,!1))}function at(e){return _e.has(Xe(e))}function ot(e){return st(Xe(e))}function st(e){return Ce.get(e)||void 0}function ct(t,r,n){return t?r(t,n):e.sortAndDeduplicateDiagnostics(e.flatMap(Ve.getSourceFiles(),(function(e){return n&&n.throwIfCancellationRequested(),r(e,n)})))}function ut(t){var r;if(e.skipTypeChecking(t,j,Ve))return e.emptyArray;var n=ce.getDiagnostics(t.fileName);return(null===(r=t.commentDirectives)||void 0===r?void 0:r.length)?gt(t,t.commentDirectives,n).diagnostics:n}function lt(t){return e.isSourceFileJS(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=function(t){return dt((function(){var r=[];return n(t,t),e.forEachChildRecursively(t,n,i),r;function n(t,n){switch(n.kind){case 163:case 166:case 168:if(n.questionToken===t)return r.push(s(t,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(n.type===t)return r.push(s(t,e.Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(t.kind){case 266:if(t.isTypeOnly)return r.push(s(n,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 271:if(t.isTypeOnly)return r.push(s(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 264:return r.push(s(t,e.Diagnostics.import_can_only_be_used_in_TypeScript_files)),"skip";case 270:if(t.isExportEquals)return r.push(s(t,e.Diagnostics.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 290:if(117===t.token)return r.push(s(t,e.Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 257:var i=e.tokenToString(118);return e.Debug.assertIsDefined(i),r.push(s(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,i)),"skip";case 260:var a=16&t.flags?e.tokenToString(142):e.tokenToString(141);return e.Debug.assertIsDefined(a),r.push(s(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,a)),"skip";case 258:return r.push(s(t,e.Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 259:var o=e.Debug.checkDefined(e.tokenToString(92));return r.push(s(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,o)),"skip";case 229:return r.push(s(t,e.Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 228:return r.push(s(t.type,e.Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 210:e.Debug.fail()}}function i(t,n){switch(n.decorators!==t||j.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 256:case 225:case 168:case 170:case 171:case 172:case 212:case 255:case 213:if(t===n.typeParameters)return r.push(o(t,e.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 236:if(t===n.modifiers)return a(n.modifiers,236===n.kind),"skip";break;case 166:if(t===n.modifiers){for(var i=0,c=t;i=0;){if(r.markUsed(o))return o;var s=n.text.slice(a[o],a[o+1]).trim();if(""!==s&&!/^(\s*)\/\/(.*)$/.test(s))return-1;o--}return-1}(t,i)}));return{diagnostics:a,directives:i}}function mt(e,t){return vt(e,t,W,yt)}function yt(t,r){return dt((function(){var n=nt().getEmitResolver(t,r);return e.getDeclarationDiagnostics(Ze(e.noop),n,t)||e.emptyArray}))}function vt(t,r,n,i){var a,o=t?null===(a=n.perFile)||void 0===a?void 0:a.get(t.path):n.allDiagnostics;if(o)return o;var s=i(t,r);return t?(n.perFile||(n.perFile=new e.Map)).set(t.path,s):n.allDiagnostics=s,s}function ht(e,t){return e.isDeclarationFile?[]:mt(e,t)}function Dt(t,r,n,i){Et(e.normalizePath(t),r,n,void 0,i)}function xt(e,t){return e.fileName===t.fileName}function bt(e,t){return 79===e.kind?79===t.kind&&e.escapedText===t.escapedText:10===t.kind&&e.text===t.text}function St(t,r){var n=e.factory.createStringLiteral(t),i=e.factory.createImportDeclaration(void 0,void 0,void 0,n,void 0);return e.addEmitFlags(i,67108864),e.setParent(n,i),e.setParent(i,r),n.flags&=-9,i.flags&=-9,n}function Tt(t){if(!t.imports){var r,n,i,a=e.isSourceFileJS(t),o=e.isExternalModule(t);if((j.isolatedModules||o)&&!t.isDeclarationFile){j.importHelpers&&(r=[St(e.externalHelpersModuleNameText,t)]);var s=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(j,t),j);s&&(r||(r=[])).push(St(s,t))}for(var c=0,u=t.statements;c=1&&e.isStringLiteralLike(i.arguments[0])?(e.setParentRecursive(i,!1),r=e.append(r,i.arguments[0])):e.isLiteralImportTypeNode(i)&&(e.setParentRecursive(i,!1),r=e.append(r,i.argument.literal))}}(t),t.imports=r||e.emptyArray,t.moduleAugmentations=n||e.emptyArray,void(t.ambientModuleNames=i||e.emptyArray)}function l(a,s){if(e.isAnyImportOrReExport(a)){var c=e.getExternalModuleName(a);!(c&&e.isStringLiteral(c)&&c.text)||s&&e.isExternalModuleNameRelative(c.text)||(e.setParentRecursive(a,!1),r=e.append(r,c),Te||0!==Y||t.isDeclarationFile||(Te=e.startsWith(c.text,"node:")))}else if(e.isModuleDeclaration(a)&&e.isAmbientModule(a)&&(s||e.hasSyntacticModifier(a,2)||t.isDeclarationFile)){a.name.parent=a;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 d=a.body;if(d)for(var _=0,p=d.statements;_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,o,Xe(t),d);return Se.add(x.path,t),Pt(b,o,l),Nt(b,i),be.set(o,a.name),f.push(b),b}v&&(xe.set(h,v),be.set(o,a.name))}if(Pt(v,o,l),v){if(Q.set(o,Y>0),v.fileName=t,v.path=o,v.resolvedPath=Xe(t),v.originalFileName=d,v.impliedNodeFormat=S(v.resolvedPath,null==Z?void 0:Z.getPackageJsonInfoCache(),ne,j),Nt(v,i),ne.useCaseSensitiveFileNames()){var T=e.toFileNameLowerCase(o),C=Ee.get(T);C?At(t,C,i):Ee.set(T,v)}ae=ae||v.hasNoDefaultLib&&!n,j.noResolve||(Jt(v,r),Kt(v)),j.noLib||Vt(v),Wt(v),r?p.push(v):f.push(v)}return v}(t,r,n,i,a);return null===e.tracing||void 0===e.tracing||e.tracing.pop(),o}function Nt(e,t){e&&V.add(e.path,t)}function Pt(e,t,r){r?(Ce.set(r,e),Ce.set(t,e||!1)):Ce.set(t,e)}function wt(e){var t=It(e);return t&&Ot(t,e)}function It(t){if(ye&&ye.length&&!e.fileExtensionIs(t,".d.ts")&&!e.fileExtensionIs(t,".json"))return Mt(t)}function Ot(t,r){var n=e.outFile(t.commandLine.options);return n?e.changeExtension(n,".d.ts"):e.getOutputDeclarationFileName(r,t.commandLine,!ne.useCaseSensitiveFileNames())}function Mt(t){void 0===he&&(he=new e.Map,Lt((function(e){Xe(j.configFilePath)!==e.sourceFile.path&&e.commandLine.fileNames.forEach((function(t){return he.set(Xe(t),e.sourceFile.path)}))})));var r=he.get(Xe(t));return r&&jt(r)}function Lt(t){return e.forEachResolvedProjectReference(ye,t)}function Rt(t){if(e.isDeclarationFileName(t))return void 0===De&&(De=new e.Map,Lt((function(t){var r=e.outFile(t.commandLine.options);if(r){var n=e.changeExtension(r,".d.ts");De.set(Xe(n),!0)}else{var i=e.memoize((function(){return e.getCommonSourceDirectoryOfConfig(t.commandLine,!ne.useCaseSensitiveFileNames())}));e.forEach(t.commandLine.fileNames,(function(r){if(!e.fileExtensionIs(r,".d.ts")&&!e.fileExtensionIs(r,".json")){var n=e.getOutputDeclarationFileName(r,t.commandLine,!ne.useCaseSensitiveFileNames(),i);De.set(Xe(n),r)}}))}}))),De.get(t)}function Bt(e){return ke&&!!Mt(e)}function jt(e){if(ve)return ve.get(e)||void 0}function Jt(r,n){e.forEach(r.referencedFiles,(function(i,a){Et(t(i.fileName,r.fileName),n,!1,void 0,{kind:e.FileIncludeKind.ReferenceFile,file:r.path,index:a})}))}function Kt(t){var r=e.map(t.typeReferenceDirectives,(function(t){return e.toFileNameLowerCase(t.fileName)}));if(r)for(var n=We(r,t),i=0;iG,p=d&&!F(a,s)&&!a.noResolve&&o_?e.createDiagnosticForNodeInSourceFile(d,p.elements[_],t.kind===e.FileIncludeKind.OutputFromProjectReference?e.Diagnostics.File_is_output_from_referenced_project_specified_here:e.Diagnostics.File_is_source_from_referenced_project_specified_here):void 0;case e.FileIncludeKind.AutomaticTypeDirectiveFile:if(!j.types)return;i=tr("types",t.typeReference),a=e.Diagnostics.File_is_entry_point_of_type_library_specified_here;break;case e.FileIncludeKind.LibFile:if(void 0!==t.index){i=tr("lib",j.lib[t.index]),a=e.Diagnostics.File_is_library_specified_here;break}var f=e.forEachEntry(e.targetOptionDeclaration.type,(function(t,r){return t===e.getEmitScriptTarget(j)?r:void 0}));i=f?function(t,r){var n=Zt(t);return n&&e.firstDefined(n,(function(t){return e.isStringLiteral(t.initializer)&&t.initializer.text===r?t.initializer:void 0}))}("target",f):void 0,a=e.Diagnostics.File_is_default_library_for_target_specified_here;break;default:e.Debug.assertNever(t)}return i&&e.createDiagnosticForNodeInSourceFile(j.configFile,i,a)}(t))),t===n&&(n=void 0)}}function Yt(e,t,r,n){(L||(L=[])).push({kind:1,file:e&&e.path,fileProcessingReason:t,diagnostic:r,args:n})}function Xt(e,t,r){ce.add(Gt(e,void 0,t,r))}function Qt(t,r,n,i,a,o){for(var s=!0,c=0,u=er();cr&&(ce.add(e.createDiagnosticForNodeInSourceFile(j.configFile,p.elements[r],n,i,a,o)),s=!1)}}s&&ce.add(e.createCompilerDiagnostic(n,i,a,o))}function $t(t,r,n,i){for(var a=!0,o=0,s=er();or?ce.add(e.createDiagnosticForNodeInSourceFile(t||j.configFile,o.elements[r],n,i,a)):ce.add(e.createCompilerDiagnostic(n,i,a))}function ar(t,r,n,i,a,o,s){var c=or();(!c||!sr(c,t,r,n,i,a,o,s))&&ce.add(e.createCompilerDiagnostic(i,a,o,s))}function or(){if(void 0===$){$=!1;var t=e.getTsConfigObjectLiteralExpression(j.configFile);if(t)for(var r=0,n=e.getPropertyAssignment(t,"compilerOptions");r0)for(var a=t.getTypeChecker(),o=0,u=r.imports;o0)for(var _=0,p=r.referencedFiles;_1&&b(x)}return i;function b(t){if(t.declarations)for(var n=0,i=t.declarations;n0;){var d=l.pop();if(!u.has(d)){var _=r.getSourceFileByPath(d);u.set(d,_),_&&p(t,r,_,i,a,o,s)&&l.push.apply(l,g(t,_.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(u.values(),(function(e){return e})))}r.createManyToManyPathMap=i,r.canReuseOldState=l,r.create=function(t,r,n,a){var o=new e.Map,s=t.getCompilerOptions().module!==e.ModuleKind.None?i():void 0,c=s?i():void 0,d=new e.Set,_=l(s,n);t.getTypeChecker();for(var p=0,f=t.getSourceFiles();p0;){var c=s.pop();if(!o.has(c)&&(o.set(c,!0),n(t,c),l(t,c))){var u=e.Debug.checkDefined(t.program).getSourceFileByPath(c);s.push.apply(s,e.BuilderState.getReferencedByPaths(t,u.resolvedPath))}}}e.Debug.assert(!!t.currentAffectedFilesExportedModulesMap);var _=new e.Set;null===(i=t.currentAffectedFilesExportedModulesMap.getKeys(r.resolvedPath))||void 0===i||i.forEach((function(e){return d(t,e,_,n)})),null===(a=t.exportedModulesMap.getKeys(r.resolvedPath))||void 0===a||a.forEach((function(e){var r;return!t.currentAffectedFilesExportedModulesMap.hasKey(e)&&!(null===(r=t.currentAffectedFilesExportedModulesMap.deletedKeys())||void 0===r?void 0:r.has(e))&&d(t,e,_,n)}))}(t,r,(function(t,r){return function(t,r,n,i){if(u(t,r),!t.changedFilesSet.has(r)){var a=e.Debug.checkDefined(t.program),o=a.getSourceFileByPath(r);o&&(e.BuilderState.updateShapeSignature(t,a,o,e.Debug.checkDefined(t.currentAffectedFilesSignatures),n,i,t.currentAffectedFilesExportedModulesMap,!0),e.getEmitDeclarations(t.compilerOptions)&&x(t,r,0))}}(t,r,n,i)}));else{if(!t.cleanedDiagnosticsOfLibFiles){t.cleanedDiagnosticsOfLibFiles=!0;var o=e.Debug.checkDefined(t.program),s=o.getCompilerOptions();e.forEach(o.getSourceFiles(),(function(r){return o.isSourceFileDefaultLibrary(r)&&!e.skipTypeChecking(r,s,o)&&u(t,r.resolvedPath)}))}e.BuilderState.updateShapeSignature(t,e.Debug.checkDefined(t.program),r,e.Debug.checkDefined(t.currentAffectedFilesSignatures),n,i,t.currentAffectedFilesExportedModulesMap)}}function u(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function l(t,r){return e.Debug.checkDefined(t.currentAffectedFilesSignatures).get(r)!==e.Debug.checkDefined(t.fileInfos.get(r)).signature}function d(e,t,r,n){var i;null===(i=e.referencedMap.getKeys(t))||void 0===i||i.forEach((function(t){return _(e,t,r,n)}))}function _(t,r,n,i){var a,o,s;e.tryAddToSet(n,r)&&(i(t,r),e.Debug.assert(!!t.currentAffectedFilesExportedModulesMap),null===(a=t.currentAffectedFilesExportedModulesMap.getKeys(r))||void 0===a||a.forEach((function(e){return _(t,e,n,i)})),null===(o=t.exportedModulesMap.getKeys(r))||void 0===o||o.forEach((function(e){var r;return!t.currentAffectedFilesExportedModulesMap.hasKey(e)&&!(null===(r=t.currentAffectedFilesExportedModulesMap.deletedKeys())||void 0===r?void 0:r.has(e))&&_(t,e,n,i)})),null===(s=t.referencedMap.getKeys(r))||void 0===s||s.forEach((function(e){return!n.has(e)&&i(t,e)})))}function p(t,r,n,i,a){a?t.buildInfoEmitPending=!1:r===t.program?(t.changedFilesSet.clear(),t.programEmitComplete=!0):(t.seenAffectedFiles.add(r.resolvedPath),void 0!==n&&(t.seenEmittedFiles||(t.seenEmittedFiles=new e.Map)).set(r.resolvedPath,n),i?(t.affectedFilesPendingEmitIndex++,t.buildInfoEmitPending=!0):t.affectedFilesIndex++)}function f(e,t,r){return p(e,r),{result:t,affected:r}}function g(e,t,r,n,i,a){return p(e,r,n,i,a),{result:t,affected:r}}function m(t,r,n){return e.concatenate(function(t,r,n){var i=r.resolvedPath;if(t.semanticDiagnosticsPerFile){var a=t.semanticDiagnosticsPerFile.get(i);if(a)return e.filterSemanticDiagnostics(a,t.compilerOptions)}var o=e.Debug.checkDefined(t.program).getBindAndCheckDiagnostics(r,n);t.semanticDiagnosticsPerFile&&t.semanticDiagnosticsPerFile.set(i,o);return e.filterSemanticDiagnostics(o,t.compilerOptions)}(t,r,n),e.Debug.checkDefined(t.program).getProgramDiagnostics(r))}function y(t,r){for(var n,i=e.getOptionsNameMap().optionsNameMap,a=0,o=e.getOwnKeys(t).sort(e.compareStringsCaseSensitive);a1||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}function n(e){var t,r;return!(!(null===(t=e.resolvedModule)||void 0===t?void 0:t.originalPath)&&!(null===(r=e.resolvedTypeReferenceDirective)||void 0===r?void 0:r.originalPath))}e.removeIgnoredPath=t,e.canWatchDirectory=r,e.createResolutionCache=function(i,a,o){var s,c,u,l,d,_,p=e.createMultiMap(),f=[],g=e.createMultiMap(),m=!1,y=e.memoize((function(){return i.getCurrentDirectory()})),v=i.getCachedDirectoryStructureHost(),h=new e.Map,D=e.createCacheWithRedirects(),x=e.createCacheWithRedirects(),b=e.createModuleResolutionCache(y(),i.getCanonicalFileName,void 0,D,x),S=new e.Map,T=e.createCacheWithRedirects(),C=e.createTypeReferenceDirectiveResolutionCache(y(),i.getCanonicalFileName,void 0,b.getPackageJsonInfoCache(),T),E=[".ts",".tsx",".js",".jsx",".json"],k=new e.Map,A=new e.Map,F=a&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(a,y())),N=F&&i.toPath(F),P=void 0!==N?N.split(e.directorySeparator).length:0,w=new e.Map;return{getModuleResolutionCache:function(){return b},startRecordingFilesWithChangedResolutions:function(){s=[]},finishRecordingFilesWithChangedResolutions:function(){var e=s;return s=void 0,e},startCachingPerDirectoryResolution:R,finishCachingPerDirectoryResolution:function(){u=void 0,R(),A.forEach((function(e,t){0===e.refCount&&(A.delete(t),e.watcher.close())})),m=!1},resolveModuleNames:function(t,r,n,i,a){return J({names:t,containingFile:r,redirectedReference:i,cache:h,perDirectoryCacheWithRedirects:D,loader:B,getResolutionWithResolvedFileName:I,shouldRetryResolution:function(t){return!t.resolvedModule||!e.resolutionExtensionIsTSOrJson(t.resolvedModule.extension)},reusedNames:n,logChanges:o,containingSourceFile:a})},getResolvedModuleWithFailedLookupLocationsFromCache:function(e,t,r){var n=h.get(i.toPath(t));return n?n.get(e,r):void 0},resolveTypeReferenceDirectives:function(e,t,r){return J({names:e,containingFile:t,redirectedReference:r,cache:S,perDirectoryCacheWithRedirects:T,loader:j,getResolutionWithResolvedFileName:O,shouldRetryResolution:function(e){return void 0===e.resolvedTypeReferenceDirective}})},removeResolutionsFromProjectReferenceRedirects:function(t){if(!e.fileExtensionIs(t,".json"))return;var r=i.getCurrentProgram();if(!r)return;var n=r.getResolvedProjectReferenceByPath(t);if(!n)return;n.commandLine.fileNames.forEach((function(e){return Z(i.toPath(e))}))},removeResolutionsOfFile:Z,hasChangedAutomaticTypeDirectiveNames:function(){return m},invalidateResolutionOfFile:function(t){Z(t);var r=m;ee(g.get(t),e.returnTrue)&&m&&!r&&i.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:re,setFilesWithInvalidatedNonRelativeUnresolvedImports:function(t){e.Debug.assert(u===t||void 0===u),u=t},createHasInvalidatedResolution:function(t){if(re(),t)return c=void 0,e.returnTrue;var r=c;return c=void 0,function(e){return!!r&&r.has(e)||L(e)}},isFileWithInvalidatedNonRelativeUnresolvedImports:L,updateTypeRootsWatch:function(){var t=i.getCompilationSettings();if(t.types)return void ie();var r=e.getEffectiveTypeRoots(t,{directoryExists:oe,getCurrentDirectory:y});r?e.mutateMap(w,e.arrayToMap(r,(function(e){return i.toPath(e)})),{createNewValue:ae,onDeleteValue:e.closeFileWatcher}):ie()},closeTypeRootsWatch:ie,clear:function(){e.clearMap(A,e.closeFileWatcherOf),k.clear(),p.clear(),ie(),h.clear(),S.clear(),g.clear(),f.length=0,l=void 0,d=void 0,_=void 0,R(),m=!1}};function I(e){return e.resolvedModule}function O(e){return e.resolvedTypeReferenceDirective}function M(t,r){return!(void 0===t||r.length<=t.length)&&(e.startsWith(r,t)&&r[t.length]===e.directorySeparator)}function L(e){if(!u)return!1;var t=u.get(e);return!!t&&!!t.length}function R(){b.clear(),C.clear(),p.forEach(H),p.clear()}function B(t,r,n,a,o){var s,c=e.resolveModuleName(t,r,n,a,b,o);if(!i.getGlobalCache)return c;var u=i.getGlobalCache();if(!(void 0===u||e.isExternalModuleNameRelative(t)||c.resolvedModule&&e.extensionIsTS(c.resolvedModule.extension))){var l=e.loadModuleFromGlobalCache(e.Debug.checkDefined(i.globalCacheResolutionModuleName)(t),i.projectName,n,a,u,b),d=l.resolvedModule,_=l.failedLookupLocations;if(d)return c.resolvedModule=d,(s=c.failedLookupLocations).push.apply(s,_),c}return c}function j(t,r,n,i,a){return e.resolveTypeReferenceDirective(t,r,n,i,a,C)}function J(t){var r,a,o,c=t.names,u=t.containingFile,l=t.redirectedReference,d=t.cache,_=t.perDirectoryCacheWithRedirects,p=t.loader,f=t.getResolutionWithResolvedFileName,g=t.shouldRetryResolution,m=t.reusedNames,y=t.logChanges,v=t.containingSourceFile,h=i.toPath(u),D=d.get(h)||d.set(h,e.createModeAwareCache()).get(h),x=e.getDirectoryPath(h),b=_.getOrCreateMapOfCacheRedirects(l),S=b.get(x);S||(S=e.createModeAwareCache(),b.set(x,S));for(var T=[],C=i.getCompilationSettings(),E=y&&L(h),k=i.getCurrentProgram(),A=k&&k.getResolvedProjectReferenceToRedirect(u),F=A?!l||l.sourceFile.path!==A.sourceFile.path:!!l,N=e.createModeAwareCache(),P=0,w=0,I=c;wP+1?{dir:i.slice(0,P+1).join(e.directorySeparator),dirPath:n.slice(0,P+1).join(e.directorySeparator)}:{dir:F,dirPath:N,nonRecursive:!1}}return U(e.getDirectoryPath(e.getNormalizedAbsolutePath(t,y())),e.getDirectoryPath(r))}function U(t,n){for(;e.pathContainsNodeModules(n);)t=e.getDirectoryPath(t),n=e.getDirectoryPath(n);if(e.isNodeModulesDirectory(n))return r(e.getDirectoryPath(n))?{dir:t,dirPath:n}:void 0;var i,a,o=!0;if(void 0!==N)for(;!M(n,N);){var s=e.getDirectoryPath(n);if(s===n)break;o=!1,i=n,a=t,n=s,t=e.getDirectoryPath(t)}return r(n)?{dir:a||t,dirPath:i||n,nonRecursive:o}:void 0}function V(t){return e.fileExtensionIsOneOf(t,E)}function q(t,r,n,a){if(r.refCount)r.refCount++,e.Debug.assertDefined(r.files);else{r.refCount=1,e.Debug.assert(0===e.length(r.files)),e.isExternalModuleNameRelative(t)?W(r):p.add(t,r);var o=a(r);o&&o.resolvedFileName&&g.add(i.toPath(o.resolvedFileName),r)}(r.files||(r.files=[])).push(n)}function W(t){e.Debug.assert(!!t.refCount);var r=t.failedLookupLocations;if(r.length){f.push(t);for(var n=!1,a=0,o=r;a1),k.set(l,p-1))),_===N?o=!0:X(_)}}o&&X(N)}}}function X(e){A.get(e).refCount--}function Q(e,t,r){return i.watchDirectoryOfFailedLookupLocation(e,(function(e){var r=i.toPath(e);v&&v.addOrDeleteFileOrDirectory(e,r),te(r,t===r)}),r?0:1)}function $(e,t,r){var n=e.get(t);n&&(n.forEach((function(e){return Y(e,t,r)})),e.delete(t))}function Z(e){$(h,e,I),$(S,e,O)}function ee(t,r){if(!t)return!1;for(var n=!1,i=0,a=t;i1&&r.sort(g),s.push.apply(s,r));var i=e.getDirectoryPath(t);if(i===t)return o=t,"break";o=t=i},u=e.getDirectoryPath(t);0!==a.size;){var l=c(u);if(u=o,"break"===l)break}if(a.size){var d=e.arrayFrom(a.values());d.length>1&&d.sort(g),s.push.apply(s,d)}return s}function D(t,r,n){for(var i in n)for(var a=0,o=n[i];a=l.length+d.length&&e.startsWith(r,l)&&e.endsWith(r,d)||!d&&r===e.removeTrailingDirectorySeparator(l)){var _=r.substr(l.length,r.length-d.length-l.length);return i.replace("*",_)}}else if(c===r||c===t)return i}}function x(t,r,n,i,a,o,s){if(void 0===s&&(s=0),"string"==typeof a){var c=e.getNormalizedAbsolutePath(e.combinePaths(n,a),void 0),u=e.hasTSFileExtension(r)?e.removeFileExtension(r)+E(r,t):void 0;switch(s){case 0:if(0===e.comparePaths(r,c)||u&&0===e.comparePaths(u,c))return{moduleFileToTry:i};break;case 1:if(e.containsPath(c,r)){var l=e.getRelativePathFromDirectory(c,r,!1);return{moduleFileToTry:e.getNormalizedAbsolutePath(e.combinePaths(e.combinePaths(i,a),l),void 0)}}break;case 2:var d=c.indexOf("*"),_=c.slice(0,d),p=c.slice(d+1);if(e.startsWith(r,_)&&e.endsWith(r,p)){var f=r.slice(_.length,r.length-p.length);return{moduleFileToTry:i.replace("*",f)}}if(u&&e.startsWith(u,_)&&e.endsWith(u,p)){f=u.slice(_.length,u.length-p.length);return{moduleFileToTry:i.replace("*",f)}}}}else{if(Array.isArray(a))return e.forEach(a,(function(e){return x(t,r,n,i,e,o)}));if("object"==typeof a&&null!==a){if(e.allKeysStartWithDot(a))return e.forEach(e.getOwnKeys(a),(function(s){var c=e.getNormalizedAbsolutePath(e.combinePaths(i,s),void 0),u=e.endsWith(s,"/")?1:e.stringContains(s,"*")?2:0;return x(t,r,n,c,a[s],o,u)}));for(var g=0,m=e.getOwnKeys(a);g=0||e.isApplicableVersionedTypesKey(o,y)){var v=a[y],h=x(t,r,n,i,v,o);if(h)return h}}}}}function b(t,r,i,a,o){var s=t.path,c=t.isRedirect,u=r.getCanonicalFileName,l=r.sourceDirectory;if(i.fileExists&&i.readFile){var d=function(t){var r,n=0,i=0,a=0,o=0;!function(e){e[e.BeforeNodeModules=0]="BeforeNodeModules",e[e.NodeModules=1]="NodeModules",e[e.Scope=2]="Scope",e[e.PackageContent=3]="PackageContent"}(r||(r={}));var s=0,c=0,u=0;for(;c>=0;)switch(s=c,c=t.indexOf("/",s+1),u){case 0:t.indexOf(e.nodeModulesPathPart,s)===s&&(n=s,i=c,u=1);break;case 1:case 2:1===u&&"@"===t.charAt(s+1)?u=2:(a=c,u=3);break;case 3:u=t.indexOf(e.nodeModulesPathPart,s)===s?1:3}return o=s,u>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:i,packageRootIndex:a,fileNameIndex:o}:void 0}(s);if(d){var _=s,p=!1;if(!o)for(var f=d.packageRootIndex,g=void 0;;){var m=F(f),y=m.moduleFileToTry,v=m.packageRootPath,h=m.blockedByExports,b=m.verbatimFromExports;if(e.getEmitModuleResolutionKind(a)!==e.ModuleResolutionKind.Classic){if(h)return;if(b)return y}if(v){_=v,p=!0;break}if(g||(g=y),-1===(f=s.indexOf(e.directorySeparator,f+1))){_=N(g);break}}if(!c||p){var S=i.getGlobalTypingsCacheLocation&&i.getGlobalTypingsCacheLocation(),C=u(_.substring(0,d.topLevelNodeModulesIndex));if(e.startsWith(l,C)||S&&e.startsWith(u(S),C)){var k=_.substring(d.topLevelPackageNameIndex+1),A=e.getPackageNameFromTypesPackageName(k);return e.getEmitModuleResolutionKind(a)===e.ModuleResolutionKind.Classic&&A===k?void 0:A}}}}function F(t){var r=s.substring(0,t),o=e.combinePaths(r,"package.json"),c=s;if(i.fileExists(o)){var l=JSON.parse(i.readFile(o));if(e.getEmitModuleResolutionKind(a)===e.ModuleResolutionKind.Node12||e.getEmitModuleResolutionKind(a)===e.ModuleResolutionKind.NodeNext){var d=l.exports&&"string"==typeof l.name?x(a,s,r,l.name,l.exports,["node","types"]):void 0;if(d){var _=e.hasTSFileExtension(d.moduleFileToTry)?{moduleFileToTry:e.removeFileExtension(d.moduleFileToTry)+E(d.moduleFileToTry,a)}:d;return n(n({},_),{verbatimFromExports:!0})}if(l.exports)return{moduleFileToTry:s,blockedByExports:!0}}var p=l.typesVersions?e.getPackageJsonTypesVersionsPaths(l.typesVersions):void 0;if(p){var f=s.slice(r.length+1),g=D(e.removeFileExtension(f),T(f,0,a),p.paths);void 0!==g&&(c=e.combinePaths(r,g))}var m=l.typings||l.types||l.main;if(e.isString(m)){var y=e.toPath(m,r,u);if(e.removeFileExtension(y)===e.removeFileExtension(u(c)))return{packageRootPath:r,moduleFileToTry:c}}}return{moduleFileToTry:c}}function N(t){var r=e.removeFileExtension(t);return"/index"!==u(r.substring(d.fileNameIndex))||function(t,r){if(!t.fileExists)return;for(var n=e.flatten(e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}])),i=0,a=n;i0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:d.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}function D(t,r){return void 0===t&&(t=e.sys),{onWatchStatusChange:r||o(t),watchFile:e.maybeBind(t,t.watchFile)||e.returnNoopFileWatcher,watchDirectory:e.maybeBind(t,t.watchDirectory)||e.returnNoopFileWatcher,setTimeout:e.maybeBind(t,t.setTimeout)||e.noop,clearTimeout:e.maybeBind(t,t.clearTimeout)||e.noop}}function x(t,r){var n=e.memoize((function(){return e.getDirectoryPath(e.normalizePath(t.getExecutingFilePath()))}));return{useCaseSensitiveFileNames:function(){return t.useCaseSensitiveFileNames},getNewLine:function(){return t.newLine},getCurrentDirectory:e.memoize((function(){return t.getCurrentDirectory()})),getDefaultLibLocation:n,getDefaultLibFileName:function(t){return e.combinePaths(n(),e.getDefaultLibFileName(t))},fileExists:function(e){return t.fileExists(e)},readFile:function(e,r){return t.readFile(e,r)},directoryExists:function(e){return t.directoryExists(e)},getDirectories:function(e){return t.getDirectories(e)},readDirectory:function(e,r,n,i,a){return t.readDirectory(e,r,n,i,a)},realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable),trace:function(e){return t.write(e+t.newLine)},createDirectory:function(e){return t.createDirectory(e)},writeFile:function(e,r,n){return t.writeFile(e,r,n)},createHash:e.maybeBind(t,t.createHash),createProgram:r||e.createEmitAndSemanticDiagnosticsBuilderProgram,disableUseFileVersionAsSignature:t.disableUseFileVersionAsSignature}}function b(t,r,n,i){void 0===t&&(t=e.sys);var a=function(e){return t.write(e+t.newLine)},o=x(t,r);return e.copyProperties(o,D(t,i)),o.afterProgramCreate=function(r){var i=r.getCompilerOptions(),s=e.getNewLineCharacter(i,(function(){return t.newLine}));v(r,n,a,(function(t){return o.onWatchStatusChange(e.createCompilerDiagnostic(c(t),t),s,i,t)}))},o}function S(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,a,o){var s=a;s.onUnRecoverableConfigFileDiagnostic=function(e){return S(a,o,e)};var c=e.getParsedCommandLineOfConfigFile(t,r,s,n,i);return s.onUnRecoverableConfigFileDiagnostic=void 0,c},e.getErrorCountForSummary=s,e.getWatchErrorSummaryDiagnosticMessage=c,e.getErrorSummaryText=u,e.isBuilderProgram=l,e.listFiles=d,e.explainFiles=_,e.explainIfFileIsRedirect=p,e.getMatchedFileSpec=f,e.getMatchedIncludeSpec=g,e.fileIncludeReasonToDiagnostics=m,e.emitFilesAndReportErrors=v,e.emitFilesAndReportErrorsAndGetExitStatus=h,e.noopFileWatcher={close:e.noop},e.returnNoopFileWatcher=function(){return e.noopFileWatcher},e.createWatchHost=D,e.WatchType={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file"},e.createWatchFactory=function(t,r){var n=t.trace?r.extendedDiagnostics?e.WatchLogLevel.Verbose:r.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,i=n!==e.WatchLogLevel.None?function(e){return t.trace(e)}:e.noop,a=e.getWatchFactory(t,n,i);return a.writeLog=i,a},e.createCompilerHostFromProgramHost=function(t,r,n){void 0===n&&(n=t);var i=t.useCaseSensitiveFileNames(),a=e.memoize((function(){return t.getNewLine()}));return{getSourceFile:function(n,i,a){var o;try{e.performance.mark("beforeIORead"),o=t.readFile(n,r().charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){a&&a(e.message),o=""}return void 0!==o?e.createSourceFile(n,o,i):void 0},getDefaultLibLocation:e.maybeBind(t,t.getDefaultLibLocation),getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:function(r,n,i,a){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(r,n,i,(function(e,r,n){return t.writeFile(e,r,n)}),(function(e){return t.createDirectory(e)}),(function(e){return t.directoryExists(e)})),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}},getCurrentDirectory:e.memoize((function(){return t.getCurrentDirectory()})),useCaseSensitiveFileNames:function(){return i},getCanonicalFileName:e.createGetCanonicalFileName(i),getNewLine:function(){return e.getNewLineCharacter(r(),a)},fileExists:function(e){return t.fileExists(e)},readFile:function(e){return t.readFile(e)},trace:e.maybeBind(t,t.trace),directoryExists:e.maybeBind(n,n.directoryExists),getDirectories:e.maybeBind(n,n.getDirectories),realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(t,t.createHash),readDirectory:e.maybeBind(t,t.readDirectory),disableUseFileVersionAsSignature:t.disableUseFileVersionAsSignature}},e.setGetSourceFileAsHashVersioned=function(t,n){var i=t.getSourceFile,a=e.maybeBind(n,n.createHash)||e.generateDjb2Hash;t.getSourceFile=function(){for(var e=[],n=0;ne?t:e}function u(t){return e.fileExtensionIs(t,".d.ts")}function l(e){return!!e&&!!e.buildOrder}function d(e){return l(e)?e.buildOrder:e}function _(t,r){return function(n){var i=r?"[".concat(e.formatColorAndReset(e.getLocaleTimeString(t),e.ForegroundColorEscapeSequences.Grey),"] "):"".concat(e.getLocaleTimeString(t)," - ");i+="".concat(e.flattenDiagnosticMessageText(n.messageText,t.newLine)).concat(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||_(t),a.now=e.maybeBind(t,t.now),a}function f(t,r,n,i,a){var o,s,c=r,u=r,l=c.getCurrentDirectory(),d=e.createGetCanonicalFileName(c.useCaseSensitiveFileNames()),_=(o=i,s={},e.commonOptionsWithBuild.forEach((function(t){e.hasProperty(o,t.name)&&(s[t.name]=o[t.name])})),s),p=e.createCompilerHostFromProgramHost(c,(function(){return T.projectCompilerOptions}));e.setGetSourceFileAsHashVersioned(p,c),p.getParsedCommandLine=function(e){return h(T,e,m(T,e))},p.resolveModuleNames=e.maybeBind(c,c.resolveModuleNames),p.resolveTypeReferenceDirectives=e.maybeBind(c,c.resolveTypeReferenceDirectives);var f=p.resolveModuleNames?void 0:e.createModuleResolutionCache(l,d),g=p.resolveTypeReferenceDirectives?void 0:e.createTypeReferenceDirectiveResolutionCache(l,d,void 0,null==f?void 0:f.getPackageJsonInfoCache());if(!p.resolveModuleNames){var y=function(t,r,n,i){return e.resolveModuleName(t,n,T.projectCompilerOptions,p,f,i,r).resolvedModule};p.resolveModuleNames=function(t,r,n,i,a,o){return e.loadWithModeAwareCache(e.Debug.checkEachDefined(t),e.Debug.checkDefined(o),r,i,y)},p.getModuleResolutionCache=function(){return f}}if(!p.resolveTypeReferenceDirectives){var v=function(t,r,n){return e.resolveTypeReferenceDirective(t,r,T.projectCompilerOptions,p,n,T.typeReferenceDirectiveResolutionCache).resolvedTypeReferenceDirective};p.resolveTypeReferenceDirectives=function(t,r,n){return e.loadWithLocalCache(e.Debug.checkEachDefined(t),r,n,v)}}var D=e.createWatchFactory(u,i),x=D.watchFile,b=D.watchDirectory,S=D.writeLog,T={host:c,hostWithWatch:u,currentDirectory:l,getCanonicalFileName:d,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(c),write:e.maybeBind(c,c.trace),options:i,baseCompilerOptions:_,rootNames:n,baseWatchOptions:a,resolvedConfigFilePaths:new e.Map,configFileCache:new e.Map,projectStatus:new e.Map,buildInfoChecked:new e.Map,extendedConfigCache:new e.Map,builderPrograms:new e.Map,diagnostics:new e.Map,projectPendingBuild:new e.Map,projectErrorsReported:new e.Map,compilerHost:p,moduleResolutionCache:f,typeReferenceDirectiveResolutionCache:g,buildOrder:void 0,readFileWithCache:function(e){return c.readFile(e)},projectCompilerOptions:_,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:t,currentInvalidatedProject:void 0,watch:t,allWatchedWildcardDirectories:new e.Map,allWatchedInputFiles:new e.Map,allWatchedConfigFiles:new e.Map,allWatchedExtendedConfigFiles:new e.Map,allWatchedPackageJsonFiles:new e.Map,lastCachedPackageJsonLookups:new e.Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:x,watchDirectory:b,writeLog:S};return T}function g(t,r){return e.toPath(r,t.currentDirectory,t.getCanonicalFileName)}function m(e,t){var r=e.resolvedConfigFilePaths,n=r.get(t);if(void 0!==n)return n;var i=g(e,t);return r.set(t,i),i}function y(e){return!!e.options}function v(e,t){var r=e.configFileCache.get(t);return r&&y(r)?r:void 0}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.baseWatchOptions,d=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,d,l),c.onUnRecoverableConfigFileDiagnostic=e.noop),a.set(n,s||i),s}function D(t,r){return e.resolveConfigFileProjectName(e.resolvePath(t.currentDirectory,r))}function x(t,r){for(var n,i,a=new e.Map,o=new e.Map,s=[],c=0,u=r;co)}}}function w(t,r,n){var i=t.options;return!(r.type===e.UpToDateStatusType.OutOfDateWithPrepend&&!i.force)||(0===n.fileNames.length||!!e.getConfigFileParsingDiagnostics(n).length||!e.isIncrementalCompilation(n.options))}function I(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;sl&&(s=f,l=g)}}if(!r.fileNames.length&&!e.canJsonReportNoInputFiles(r.raw))return{type:e.UpToDateStatusType.ContainerOnly};var y,v=e.getAllProjectOutputs(r,!d.useCaseSensitiveFileNames()),D="(none)",x=o,b="(none)",S=a,T=a,C=!1;if(!i)for(var E=0,k=v;ES&&(S=F,b=A),u(A)&&(T=c(T,e.getModifiedTime(d,A)))}var N,P=!1,w=!1;if(r.projectReferences){t.projectStatus.set(n,{type:e.UpToDateStatusType.ComputingUpstream});for(var I=0,O=r.projectReferences;I=0},t.findArgument=function(t){var r=e.sys.args.indexOf(t);return r>=0&&r214)return 2;if(46===e.charCodeAt(0))return 3;if(95===e.charCodeAt(0))return 4;if(t){var r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){var n=s(r[1],!1);if(0!==n)return{name:r[1],isScopeName:!0,result:n};var i=s(r[2],!1);return 0!==i?{name:r[2],isScopeName:!1,result:i}:0}}return encodeURIComponent(e)!==e?5:0}function c(t,r,n,i){var a=i?"Scope":"Package";switch(r){case 1:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' cannot be empty");case 2:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' should be less than ").concat(214," characters");case 3:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' cannot start with '.'");case 4:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' cannot start with '_'");case 5:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' contains non URI safe characters");case 0:return e.Debug.fail();default:throw e.Debug.assertNever(r)}}t.validatePackageName=function(e){return s(e,!0)},t.renderPackageNameValidationFailure=function(e,t){return"object"==typeof e?c(t,e.result,e.name,e.isScopeName):c(t,e,t,!1)}}(e.JsTyping||(e.JsTyping={}))}(c||(c={})),function(e){var t,r,n,i,a,o,s,c,u,l,d,_,p,f,g,m,y,v,h,D;function x(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:l.Smart,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:d.Ignore,trimTrailingWhitespace:!0}}t=e.ScriptSnapshot||(e.ScriptSnapshot={}),r=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}(),t.fromString=function(e){return new r(e)},(n=e.PackageJsonDependencyGroup||(e.PackageJsonDependencyGroup={}))[n.Dependencies=1]="Dependencies",n[n.DevDependencies=2]="DevDependencies",n[n.PeerDependencies=4]="PeerDependencies",n[n.OptionalDependencies=8]="OptionalDependencies",n[n.All=15]="All",(i=e.PackageJsonAutoImportPreference||(e.PackageJsonAutoImportPreference={}))[i.Off=0]="Off",i[i.On=1]="On",i[i.Auto=2]="Auto",(a=e.LanguageServiceMode||(e.LanguageServiceMode={}))[a.Semantic=0]="Semantic",a[a.PartialSemantic=1]="PartialSemantic",a[a.Syntactic=2]="Syntactic",e.emptyOptions={},(o=e.SemanticClassificationFormat||(e.SemanticClassificationFormat={})).Original="original",o.TwentyTwenty="2020",(s=e.CompletionTriggerKind||(e.CompletionTriggerKind={}))[s.Invoked=1]="Invoked",s[s.TriggerCharacter=2]="TriggerCharacter",s[s.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",(c=e.InlayHintKind||(e.InlayHintKind={})).Type="Type",c.Parameter="Parameter",c.Enum="Enum",(u=e.HighlightSpanKind||(e.HighlightSpanKind={})).none="none",u.definition="definition",u.reference="reference",u.writtenReference="writtenReference",function(e){e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart"}(l=e.IndentStyle||(e.IndentStyle={})),function(e){e.Ignore="ignore",e.Insert="insert",e.Remove="remove"}(d=e.SemicolonPreference||(e.SemicolonPreference={})),e.getDefaultFormatCodeSettings=x,e.testFormatSettings=x("\n"),(_=e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={}))[_.aliasName=0]="aliasName",_[_.className=1]="className",_[_.enumName=2]="enumName",_[_.fieldName=3]="fieldName",_[_.interfaceName=4]="interfaceName",_[_.keyword=5]="keyword",_[_.lineBreak=6]="lineBreak",_[_.numericLiteral=7]="numericLiteral",_[_.stringLiteral=8]="stringLiteral",_[_.localName=9]="localName",_[_.methodName=10]="methodName",_[_.moduleName=11]="moduleName",_[_.operator=12]="operator",_[_.parameterName=13]="parameterName",_[_.propertyName=14]="propertyName",_[_.punctuation=15]="punctuation",_[_.space=16]="space",_[_.text=17]="text",_[_.typeParameterName=18]="typeParameterName",_[_.enumMemberName=19]="enumMemberName",_[_.functionName=20]="functionName",_[_.regularExpressionLiteral=21]="regularExpressionLiteral",_[_.link=22]="link",_[_.linkName=23]="linkName",_[_.linkText=24]="linkText",(p=e.OutliningSpanKind||(e.OutliningSpanKind={})).Comment="comment",p.Region="region",p.Code="code",p.Imports="imports",(f=e.OutputFileType||(e.OutputFileType={}))[f.JavaScript=0]="JavaScript",f[f.SourceMap=1]="SourceMap",f[f.Declaration=2]="Declaration",(g=e.EndOfLineState||(e.EndOfLineState={}))[g.None=0]="None",g[g.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",g[g.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",g[g.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",g[g.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",g[g.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",g[g.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",(m=e.TokenClass||(e.TokenClass={}))[m.Punctuation=0]="Punctuation",m[m.Keyword=1]="Keyword",m[m.Operator=2]="Operator",m[m.Comment=3]="Comment",m[m.Whitespace=4]="Whitespace",m[m.Identifier=5]="Identifier",m[m.NumberLiteral=6]="NumberLiteral",m[m.BigIntLiteral=7]="BigIntLiteral",m[m.StringLiteral=8]="StringLiteral",m[m.RegExpLiteral=9]="RegExpLiteral",(y=e.ScriptElementKind||(e.ScriptElementKind={})).unknown="",y.warning="warning",y.keyword="keyword",y.scriptElement="script",y.moduleElement="module",y.classElement="class",y.localClassElement="local class",y.interfaceElement="interface",y.typeElement="type",y.enumElement="enum",y.enumMemberElement="enum member",y.variableElement="var",y.localVariableElement="local var",y.functionElement="function",y.localFunctionElement="local function",y.memberFunctionElement="method",y.memberGetAccessorElement="getter",y.memberSetAccessorElement="setter",y.memberVariableElement="property",y.constructorImplementationElement="constructor",y.callSignatureElement="call",y.indexSignatureElement="index",y.constructSignatureElement="construct",y.parameterElement="parameter",y.typeParameterElement="type parameter",y.primitiveType="primitive type",y.label="label",y.alias="alias",y.constElement="const",y.letElement="let",y.directory="directory",y.externalModuleName="external module name",y.jsxAttribute="JSX attribute",y.string="string",y.link="link",y.linkName="link name",y.linkText="link text",(v=e.ScriptElementKindModifier||(e.ScriptElementKindModifier={})).none="",v.publicMemberModifier="public",v.privateMemberModifier="private",v.protectedMemberModifier="protected",v.exportedModifier="export",v.ambientModifier="declare",v.staticModifier="static",v.abstractModifier="abstract",v.optionalModifier="optional",v.deprecatedModifier="deprecated",v.dtsModifier=".d.ts",v.tsModifier=".ts",v.tsxModifier=".tsx",v.jsModifier=".js",v.jsxModifier=".jsx",v.jsonModifier=".json",v.dmtsModifier=".d.mts",v.mtsModifier=".mts",v.mjsModifier=".mjs",v.dctsModifier=".d.cts",v.ctsModifier=".cts",v.cjsModifier=".cjs",(h=e.ClassificationTypeNames||(e.ClassificationTypeNames={})).comment="comment",h.identifier="identifier",h.keyword="keyword",h.numericLiteral="number",h.bigintLiteral="bigint",h.operator="operator",h.stringLiteral="string",h.whiteSpace="whitespace",h.text="text",h.punctuation="punctuation",h.className="class name",h.enumName="enum name",h.interfaceName="interface name",h.moduleName="module name",h.typeParameterName="type parameter name",h.typeAliasName="type alias name",h.parameterName="parameter name",h.docCommentTagName="doc comment tag name",h.jsxOpenTagName="jsx open tag name",h.jsxCloseTagName="jsx close tag name",h.jsxSelfClosingTagName="jsx self closing tag name",h.jsxAttribute="jsx attribute",h.jsxText="jsx text",h.jsxAttributeStringLiteralValue="jsx attribute string literal value",(D=e.ClassificationType||(e.ClassificationType={}))[D.comment=1]="comment",D[D.identifier=2]="identifier",D[D.keyword=3]="keyword",D[D.numericLiteral=4]="numericLiteral",D[D.operator=5]="operator",D[D.stringLiteral=6]="stringLiteral",D[D.regularExpressionLiteral=7]="regularExpressionLiteral",D[D.whiteSpace=8]="whiteSpace",D[D.text=9]="text",D[D.punctuation=10]="punctuation",D[D.className=11]="className",D[D.enumName=12]="enumName",D[D.interfaceName=13]="interfaceName",D[D.moduleName=14]="moduleName",D[D.typeParameterName=15]="typeParameterName",D[D.typeAliasName=16]="typeAliasName",D[D.parameterName=17]="parameterName",D[D.docCommentTagName=18]="docCommentTagName",D[D.jsxOpenTagName=19]="jsxOpenTagName",D[D.jsxCloseTagName=20]="jsxCloseTagName",D[D.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",D[D.jsxAttribute=22]="jsxAttribute",D[D.jsxText=23]="jsxText",D[D.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",D[D.bigintLiteral=25]="bigintLiteral"}(c||(c={})),function(e){var t;function r(t){switch(t.kind){case 253:return e.isInJSFile(t)&&e.getJSDocEnumTag(t)?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 void 0===t.name?3:2;case 297:case 256:return 3;case 260:return e.isAmbientModule(t)||1===e.getModuleInstanceState(t)?5:4;case 259:case 268:case 269:case 264:case 265:case 270:case 271:return 7;case 303:return 5}return 7}function i(t){for(;160===t.parent.kind;)t=t.parent;return e.isInternalModuleImportEqualsDeclaration(t.parent)&&t.parent.moduleReference===t}function a(e){return e.expression}function o(e){return e.tag}function s(e){return e.tagName}function c(t,r,n,i,a){var o=i?l(t):u(t);return a&&(o=e.skipOuterExpressions(o)),!!o&&!!o.parent&&r(o.parent)&&n(o.parent)===o}function u(e){return p(e)?e.parent:e}function l(e){return p(e)||f(e)?e.parent:e}function d(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isBreakOrContinueStatement))||void 0===r?void 0:r.label)===t}function _(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isLabeledStatement))||void 0===r?void 0:r.label)===t}function p(t){var r;return(null===(r=e.tryCast(t.parent,e.isPropertyAccessExpression))||void 0===r?void 0:r.name)===t}function f(t){var r;return(null===(r=e.tryCast(t.parent,e.isElementAccessExpression))||void 0===r?void 0:r.argumentExpression)===t}e.scanner=e.createScanner(99,!0),(t=e.SemanticMeaning||(e.SemanticMeaning={}))[t.None=0]="None",t[t.Value=1]="Value",t[t.Type=2]="Type",t[t.Namespace=4]="Namespace",t[t.All=7]="All",e.getMeaningFromDeclaration=r,e.getMeaningFromLocation=function(t){var n=(t=I(t)).parent;if(303===t.kind)return 1;if(e.isExportAssignment(n)||e.isExportSpecifier(n)||e.isExternalModuleReference(n)||e.isImportSpecifier(n)||e.isImportClause(n)||e.isImportEqualsDeclaration(n)&&t===n.name){for(var a=n;a;){if(e.isImportEqualsDeclaration(a)||e.isImportClause(a)||e.isExportDeclaration(a))return a.isTypeOnly?2:7;a=a.parent}return 7}return i(t)?function(t){var r=160===t.kind?t:e.isQualifiedName(t.parent)&&t.parent.right===t?t.parent:void 0;return r&&264===r.parent.kind?7:4}(t):e.isDeclarationName(t)?r(n):e.isEntityName(t)&&e.findAncestor(t,e.or(e.isJSDocNameReference,e.isJSDocLinkLike,e.isJSDocMemberName))?7:function(t){e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent);switch(t.kind){case 108:return!e.isExpressionNode(t);case 191:return!0}switch(t.parent.kind){case 177:return!0;case 199:return!t.parent.isTypeOf;case 227:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)}return!1}(t)?2:function(e){return function(e){var t=e,r=!0;if(160===t.parent.kind){for(;t.parent&&160===t.parent.kind;)t=t.parent;r=t.right===e}return 177===t.parent.kind&&!r}(e)||function(e){var t=e,r=!0;if(205===t.parent.kind){for(;t.parent&&205===t.parent.kind;)t=t.parent;r=t.name===e}if(!r&&227===t.parent.kind&&290===t.parent.parent.kind){var n=t.parent.parent.parent;return 256===n.kind&&117===t.parent.parent.token||257===n.kind&&94===t.parent.parent.token}return!1}(e)}(t)?4:e.isTypeParameterDeclaration(n)?(e.Debug.assert(e.isJSDocTemplateTag(n.parent)),2):e.isLiteralTypeNode(n)?3:1},e.isInRightSideOfInternalImportEqualsDeclaration=i,e.isCallExpressionTarget=function(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),c(t,e.isCallExpression,a,r,n)},e.isNewExpressionTarget=function(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),c(t,e.isNewExpression,a,r,n)},e.isCallOrNewExpressionTarget=function(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),c(t,e.isCallOrNewExpression,a,r,n)},e.isTaggedTemplateTag=function(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),c(t,e.isTaggedTemplateExpression,o,r,n)},e.isDecoratorTarget=function(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),c(t,e.isDecorator,a,r,n)},e.isJsxOpeningLikeElementTagName=function(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),c(t,e.isJsxOpeningLikeElement,s,r,n)},e.climbPastPropertyAccess=u,e.climbPastPropertyOrElementAccess=l,e.getTargetLabel=function(e,t){for(;e;){if(249===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=d,e.isLabelOfLabeledStatement=_,e.isLabelName=function(e){return _(e)||d(e)},e.isTagName=function(t){var r;return(null===(r=e.tryCast(t.parent,e.isJSDocTag))||void 0===r?void 0:r.tagName)===t},e.isRightSideOfQualifiedName=function(t){var r;return(null===(r=e.tryCast(t.parent,e.isQualifiedName))||void 0===r?void 0:r.right)===t},e.isRightSideOfPropertyAccess=p,e.isArgumentExpressionOfElementAccess=f,e.isNameOfModuleDeclaration=function(t){var r;return(null===(r=e.tryCast(t.parent,e.isModuleDeclaration))||void 0===r?void 0:r.name)===t},e.isNameOfFunctionDeclaration=function(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isFunctionLike))||void 0===r?void 0:r.name)===t},e.isLiteralNameOfPropertyDeclarationOrIndexAccess=function(t){switch(t.parent.kind){case 166:case 165:case 294:case 297:case 168:case 167:case 171:case 172:case 260:return e.getNameOfDeclaration(t.parent)===t;case 206:return t.parent.argumentExpression===t;case 161:return!0;case 195:return 193===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 303:case 168:case 167:case 255:case 212:case 171:case 172:case 256:case 257:case 259:case 260:return t}}},e.getNodeKind=function t(r){switch(r.kind){case 303:return e.isExternalModule(r)?"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 c(r);case 202:return c(e.getRootDeclaration(r));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 n=r.initializer;return e.isFunctionLike(n)?"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(r,16476)?"property":"parameter";case 264:case 269:case 274:case 267:case 273:return"alias";case 220: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:case 5:return e.isFunctionExpression(a)?"method":"property";case 4:return"property";case 6:return"local class";default:return e.assertType(i),""}case 79:return e.isImportClause(r.parent)?"alias":"";case 270:var s=t(r.expression);return""===s?"const":s;default:return""}function c(t){return e.isVarConst(t)?"const":e.isLet(t)?"let":"var"}},e.isThis=function(t){switch(t.kind){case 108:return!0;case 79:return e.identifierIsThisKeyword(t)&&163===t.parent.kind;default:return!1}};var g,m=/^\/\/\/\s*=r.end}function D(e,t,r,n){return Math.max(e,r)r?1:l(a[e])?a[e-1]&&l(a[e-1])?1:0:i&&s===r&&a[e-1]&&a[e-1].getEnd()===r&&l(a[e-1])?1:-1}));return o?{value:o}:c>=0&&a[c]?(s=a[c],"continue-outer"):{value:s}};;){var u=c();if("object"==typeof u)return u.value}function l(e){if((n?e.getFullStart():e.getStart(t,!0))>r)return!1;var s=e.getEnd();if(rt.end||e.pos===t.end)&&G(e,n)?r(e):void 0}))}(r)}function B(t,r,n,i){var a=function a(o){if(j(o)&&1!==o.kind)return o;var s=o.getChildren(r),c=e.binarySearchKey(s,t,(function(e,t){return t}),(function(e,r){return t=s[e-1].end?0:1:-1}));if(c>=0&&s[c]){var u=s[c];if(t=t||!G(u,r)||z(u)){var l=K(s,c,r);return l&&J(l,r)}return a(u)}}e.Debug.assert(void 0!==n||303===o.kind||1===o.kind||e.isJSDocCommentContainingNode(o));var d=K(s,s.length,r);return d&&J(d,r)}(n||r);return e.Debug.assert(!(a&&z(a))),a}function j(t){return e.isToken(t)&&!z(t)}function J(e,t){if(j(e))return e;var r=e.getChildren(t);if(0===r.length)return e;var n=K(r,r.length,t);return n&&J(n,t)}function K(t,r,n){for(var i=r-1;i>=0;i--){if(z(t[i]))e.Debug.assert(i>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(G(t[i],n))return t[i]}}function z(t){return e.isJsxText(t)&&t.containsOnlyTriviaWhiteSpaces}function U(t,r,n){var i=e.tokenToString(t.kind),a=e.tokenToString(r),o=t.getFullStart(),s=n.text.lastIndexOf(a,o);if(-1!==s){if(n.text.lastIndexOf(i,o-1)=r}))}function W(t,r){if(-1!==r.text.lastIndexOf("<",t?t.pos:r.text.length))for(var n=t,i=0,a=0;n;){switch(n.kind){case 29:if((n=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=U(n,18,r)))return;break;case 21:if(!(n=U(n,20,r)))return;break;case 23:if(!(n=U(n,22,r)))return;break;case 27:a++;break;case 38:case 79:case 10:case 8:case 9:case 110:case 95:case 112:case 94:case 140:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(n))break;return}n=B(n.getFullStart(),r)}}function H(t,r,n){return e.formatting.getRangeOfEnclosingComment(t,r,void 0,n)}function G(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function Y(e,t,r){var n=H(e,t,void 0);return!!n&&r===m.test(e.text.substring(n.pos,n.end))}function X(t,r,n){return e.createTextSpanFromBounds(t.getStart(r),(n||t).getEnd())}function Q(t){if(!t.isUnterminated)return e.createTextSpanFromBounds(t.getStart()+1,t.getEnd()-1)}function $(e,t){return{span:e,newText:t}}function Z(e){return 151===e.kind}function ee(t,r){return{fileExists:function(e){return t.fileExists(e)},getCurrentDirectory:function(){return r.getCurrentDirectory()},readFile:e.maybeBind(r,r.readFile),useCaseSensitiveFileNames:e.maybeBind(r,r.useCaseSensitiveFileNames),getSymlinkCache:e.maybeBind(r,r.getSymlinkCache)||t.getSymlinkCache,getModuleSpecifierCache:e.maybeBind(r,r.getModuleSpecifierCache),getGlobalTypingsCacheLocation:e.maybeBind(r,r.getGlobalTypingsCacheLocation),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:function(e){return t.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return t.isSourceOfProjectReferenceRedirect(e)},getNearestAncestorDirectoryWithPackageJson:e.maybeBind(r,r.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:function(){return t.getFileIncludeReasons()}}}function te(e,t){return n(n({},ee(e,t)),{getCommonSourceDirectory:function(){return e.getCommonSourceDirectory()}})}function re(t,r,n,i,a){return e.factory.createImportDeclaration(void 0,void 0,t||r?e.factory.createImportClause(!!a,t,r&&r.length?e.factory.createNamedImports(r):void 0):void 0,"string"==typeof n?ne(n,i):n,void 0)}function ne(t,r){return e.factory.createStringLiteral(t,0===r)}function ie(t,r){return e.isStringDoubleQuoted(t,r)?1:0}function ae(t,r){if(r.quotePreference&&"auto"!==r.quotePreference)return"single"===r.quotePreference?0:1;var n=t.imports&&e.find(t.imports,(function(t){return e.isStringLiteral(t)&&!e.nodeIsSynthesized(t.parent)}));return n?ie(n,t):1}function oe(t){return"default"!==t.escapedName?t.escapedName:e.firstDefined(t.declarations,(function(t){var r=e.getNameOfDeclaration(t);return r&&79===r.kind?r.escapedText:void 0}))}function se(t,r,n){return e.textSpanContainsPosition(t,r.getStart(n))&&r.getEnd()<=e.textSpanEnd(t)}function ce(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function ue(t){var r=t.declarations?e.firstOrUndefined(t.declarations):void 0;return!!e.findAncestor(r,(function(t){return!!e.isParameter(t)||!(e.isBindingElement(t)||e.isObjectBindingPattern(t)||e.isArrayBindingPattern(t))&&"quit"}))}e.getLineStartPositionForPosition=function(t,r){return e.getLineStarts(r)[r.getLineAndCharacterOfPosition(t).line]},e.rangeContainsRange=y,e.rangeContainsRangeExclusive=function(e,t){return v(e,t.pos)&&v(e,t.end)},e.rangeContainsPosition=function(e,t){return e.pos<=t&&t<=e.end},e.rangeContainsPositionExclusive=v,e.startEndContainsRange=h,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),rn.getStart(t)&&rn.getStart(t)},e.isInJSXText=function(t,r){var n=M(t,r);return!!e.isJsxText(n)||(!(18!==n.kind||!e.isJsxExpression(n.parent)||!e.isJsxElement(n.parent.parent))||!(29!==n.kind||!e.isJsxOpeningLikeElement(n.parent)||!e.isJsxElement(n.parent.parent)))},e.isInsideJsxElement=function(e,t){return function(r){for(;r;)if(r.kind>=278&&r.kind<=287||11===r.kind||29===r.kind||31===r.kind||79===r.kind||19===r.kind||18===r.kind||43===r.kind)r=r.parent;else{if(277!==r.kind)return!1;if(t>r.getStart(e))return!0;r=r.parent}return!1}(M(e,t))},e.findPrecedingMatchingToken=U,e.removeOptionality=V,e.isPossiblyTypeArgumentPosition=function t(r,n,i){var a=W(r,n);return void 0!==a&&(e.isPartOfTypeNode(a.called)||0!==q(a.called,a.nTypeArguments,i).length||t(a.called,n,i))},e.getPossibleGenericSignatures=q,e.getPossibleTypeArgumentsInfo=W,e.isInComment=H,e.hasDocComment=function(t,r){var n=M(t,r);return!!e.findAncestor(n,e.isJSDoc)},e.getNodeModifiers=function(t,r){void 0===r&&(r=0);var n=[],i=e.isDeclaration(t)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(t)&~r:0;return 8&i&&n.push("private"),16&i&&n.push("protected"),4&i&&n.push("public"),(32&i||e.isClassStaticBlockDeclaration(t))&&n.push("static"),128&i&&n.push("abstract"),1&i&&n.push("export"),8192&i&&n.push("deprecated"),8388608&t.flags&&n.push("declare"),270===t.kind&&n.push("export"),n.length>0?n.join(","):""},e.getTypeArgumentOrTypeParameterList=function(t){return 177===t.kind||207===t.kind?t.typeArguments:e.isFunctionLike(t)||256===t.kind||257===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<=78},e.isInsideTemplateLiteral=function(t,r,n){return e.isTemplateLiteralKind(t.kind)&&t.getStart(n)=2||!!t.noEmit},e.createModuleSpecifierResolutionHost=ee,e.getModuleSpecifierResolverHost=te,e.makeImportIfNecessary=function(e,t,r,n){return e||t&&t.length?re(e,t,r,n):void 0},e.makeImport=re,e.makeStringLiteral=ne,(g=e.QuotePreference||(e.QuotePreference={}))[g.Single=0]="Single",g[g.Double=1]="Double",e.quotePreferenceFromString=ie,e.getQuotePreference=ae,e.getQuoteFromPreference=function(t){switch(t){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(t)}},e.symbolNameNoDefault=function(t){var r=oe(t);return void 0===r?void 0:e.unescapeLeadingUnderscores(r)},e.symbolEscapedNameNoDefault=oe,e.isModuleSpecifierLike=function(t){return e.isStringLiteralLike(t)&&(e.isExternalModuleReference(t.parent)||e.isImportDeclaration(t.parent)||e.isRequireCall(t.parent,!1)&&t.parent.arguments[0]===t||e.isImportCall(t.parent)&&t.parent.arguments[0]===t)},e.isObjectBindingElementWithoutPropertyName=function(t){return e.isBindingElement(t)&&e.isObjectBindingPattern(t.parent)&&e.isIdentifier(t.name)&&!t.propertyName},e.getPropertySymbolFromBindingElement=function(e,t){var r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)},e.getParentNodeInSpan=function(t,r,n){if(t)for(;t.parent;){if(e.isSourceFile(t.parent)||!se(n,t.parent,r))return t;t=t.parent}},e.findModifier=function(t,r){return t.modifiers&&e.find(t.modifiers,(function(e){return e.kind===r}))},e.insertImports=function(t,r,n,i){var a=236===(e.isArray(n)?n[0]:n).kind?e.isRequireVariableStatement:e.isAnyImportSyntax,o=e.filter(r.statements,a),s=e.isArray(n)?e.stableSort(n,e.OrganizeImports.compareImportsOrRequireStatements):[n];if(o.length)if(o&&e.OrganizeImports.importsAreSorted(o))for(var c=0,u=s;ca&&r&&"..."!==r&&(e.isWhiteSpaceLike(r.charCodeAt(r.length-1))||t.push(_e(" ",e.SymbolDisplayPartKind.space)),t.push(_e("...",e.SymbolDisplayPartKind.punctuation))),t},writeKeyword:function(t){return c(t,e.SymbolDisplayPartKind.keyword)},writeOperator:function(t){return c(t,e.SymbolDisplayPartKind.operator)},writePunctuation:function(t){return c(t,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(t){return c(t,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(t){return c(t,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(t){return c(t,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(t){return c(t,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(t){return c(t,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(t){return c(t,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:function(e,r){if(i>a)return;s(),i+=e.length,t.push(de(e,r))},writeLine:function(){if(i>a)return;i+=1,t.push(ve()),r=!0},write:o,writeComment:o,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingWhitespace:function(){return!1},hasTrailingComment:function(){return!1},rawWrite:e.notImplemented,getIndent:function(){return n},increaseIndent:function(){n++},decreaseIndent:function(){n--},clear:u,trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function s(){if(!(i>a)&&r){var o=e.getIndentString(n);o&&(i+=o.length,t.push(_e(o,e.SymbolDisplayPartKind.space))),r=!1}}function c(e,r){i>a||(s(),i+=e.length,t.push(_e(e,r)))}function u(){t=[],r=!0,n=0,i=0}}();function de(t,r){return _e(t,function(t){var r=t.flags;if(3&r)return ue(t)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName;return 4&r||32768&r||65536&r?e.SymbolDisplayPartKind.propertyName:8&r?e.SymbolDisplayPartKind.enumMemberName:16&r?e.SymbolDisplayPartKind.functionName:32&r?e.SymbolDisplayPartKind.className:64&r?e.SymbolDisplayPartKind.interfaceName:384&r?e.SymbolDisplayPartKind.enumName:1536&r?e.SymbolDisplayPartKind.moduleName:8192&r?e.SymbolDisplayPartKind.methodName:262144&r?e.SymbolDisplayPartKind.typeParameterName:524288&r||2097152&r?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}(r))}function _e(t,r){return{text:t,kind:e.SymbolDisplayPartKind[r]}}function pe(t){return _e(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function fe(t){return _e(t,e.SymbolDisplayPartKind.text)}function ge(t){return _e(t,e.SymbolDisplayPartKind.linkText)}function me(t,r){return{text:t,kind:e.SymbolDisplayPartKind[e.SymbolDisplayPartKind.linkName],target:{fileName:e.getSourceFileOfNode(r).fileName,textSpan:X(r)}}}function ye(t){return _e(t,e.SymbolDisplayPartKind.link)}e.symbolPart=de,e.displayPart=_e,e.spacePart=function(){return _e(" ",e.SymbolDisplayPartKind.space)},e.keywordPart=pe,e.punctuationPart=function(t){return _e(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)},e.operatorPart=function(t){return _e(e.tokenToString(t),e.SymbolDisplayPartKind.operator)},e.parameterNamePart=function(t){return _e(t,e.SymbolDisplayPartKind.parameterName)},e.propertyNamePart=function(t){return _e(t,e.SymbolDisplayPartKind.propertyName)},e.textOrKeywordPart=function(t){var r=e.stringToToken(t);return void 0===r?fe(t):pe(r)},e.textPart=fe,e.typeAliasNamePart=function(t){return _e(t,e.SymbolDisplayPartKind.aliasName)},e.typeParameterNamePart=function(t){return _e(t,e.SymbolDisplayPartKind.typeParameterName)},e.linkTextPart=ge,e.linkNamePart=me,e.linkPart=ye,e.buildLinkParts=function(t,r){var n,i=e.isJSDocLink(t)?"link":e.isJSDocLinkCode(t)?"linkcode":"linkplain",a=[ye("{@".concat(i," "))];if(t.name){var o=null==r?void 0:r.getSymbolAtLocation(t.name),s=function(e){if(0===e.indexOf("()"))return 2;if("<"!==e[0])return 0;var t=0,r=0;for(;r"===e[r]&&t--,r++,!t)return r;return 0}(t.text),c=e.getTextOfNode(t.name)+t.text.slice(0,s),u=t.text.slice(s),l=(null==o?void 0:o.valueDeclaration)||(null===(n=null==o?void 0:o.declarations)||void 0===n?void 0:n[0]);l?(a.push(me(c,l)),u&&a.push(ge(u))):a.push(ge(c+(s?"":" ")+u))}else t.text&&a.push(ge(t.text));return a.push(ye("}")),a};function ve(){return _e("\n",e.SymbolDisplayPartKind.lineBreak)}function he(e){try{return e(le),le.displayParts()}finally{le.clear()}}function De(e){return 0!=(33554432&e.flags)}function xe(e){return 0!=(2097152&e.flags)}function be(e,t){void 0===t&&(t=!0);var r=e&&Te(e);return r&&!t&&ke(r),r}function Se(t,r,n){var i=n(t);return i?e.setOriginalNode(i,t):i=Te(t,n),i&&!r&&ke(i),i}function Te(t,r){var n=r?function(e){return Se(e,!0,r)}:be,i=r?function(e){return e&&Ee(e,!0,r)}:function(e){return e&&Ce(e)},a=e.visitEachChild(t,n,e.nullTransformationContext,i,n);if(a===t){var o=e.isStringLiteral(t)?e.setOriginalNode(e.factory.createStringLiteralFromNode(t),t):e.isNumericLiteral(t)?e.setOriginalNode(e.factory.createNumericLiteral(t.text,t.numericLiteralFlags),t):e.factory.cloneNode(t);return e.setTextRange(o,t)}return a.parent=void 0,a}function Ce(t,r){return void 0===r&&(r=!0),t&&e.factory.createNodeArray(t.map((function(e){return be(e,r)})),t.hasTrailingComma)}function Ee(t,r,n){return e.factory.createNodeArray(t.map((function(e){return Se(e,r,n)})),t.hasTrailingComma)}function ke(e){Ae(e),Fe(e)}function Ae(e){Ne(e,512,Pe)}function Fe(t){Ne(t,1024,e.getLastChild)}function Ne(t,r,n){e.addEmitFlags(t,r);var i=n(t);i&&Ne(i,r,n)}function Pe(e){return e.forEachChild((function(e){return e}))}function we(t,r,n,i,a){e.forEachLeadingCommentRange(n.text,t.pos,Me(r,n,i,a,e.addSyntheticLeadingComment))}function Ie(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.end,Me(r,n,i,a,e.addSyntheticTrailingComment))}function Oe(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.pos,Me(r,n,i,a,e.addSyntheticLeadingComment))}function Me(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 Le(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 Re(e,t){var r=e.parent;switch(r.kind){case 208:return t.getContextualType(r);case 220:var n=r,i=n.left,a=n.operatorToken,o=n.right;return Be(a.kind)?t.getTypeAtLocation(e===o?i:o):t.getContextualType(e);case 288:return r.expression===e?je(r,t):void 0;default:return t.getContextualType(e)}}function Be(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function je(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function Je(e){return 173===e||174===e||175===e||165===e||167===e}function Ke(e){return 255===e||170===e||168===e||171===e||172===e}function ze(e){return 260===e}function Ue(e){return 236===e||237===e||239===e||244===e||245===e||246===e||250===e||252===e||166===e||258===e||265===e||264===e||271===e||263===e||270===e}function Ve(e,t){return We(e,e.fileExists,t)}function qe(e){try{return e()}catch(e){return}}function We(e,t){for(var r=[],n=2;n-1&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));)r-=1;return r+1},e.getSynthesizedDeepClone=be,e.getSynthesizedDeepCloneWithReplacements=Se,e.getSynthesizedDeepClones=Ce,e.getSynthesizedDeepClonesWithReplacements=Ee,e.suppressLeadingAndTrailingTrivia=ke,e.suppressLeadingTrivia=Ae,e.suppressTrailingTrivia=Fe,e.copyComments=function(e,t){var r=e.getSourceFile();!function(e,t){for(var r=e.getFullStart(),n=e.getStart(),i=r;i=0),o},e.copyLeadingComments=we,e.copyTrailingComments=Ie,e.copyTrailingAsLeadingComments=Oe,e.needsParentheses=function(t){return e.isBinaryExpression(t)&&27===t.operatorToken.kind||e.isObjectLiteralExpression(t)||e.isAsExpression(t)&&e.isObjectLiteralExpression(t.expression)},e.getContextualTypeFromParent=Re,e.quote=function(t,r,n){var i=ae(t,r),a=JSON.stringify(n);return 0===i?"'".concat(e.stripQuotes(a).replace(/'/g,"\\'").replace(/\\"/g,'"'),"'"):a},e.isEqualityOperatorKind=Be,e.isStringLiteralOrTemplate=function(e){switch(e.kind){case 10:case 14:case 222:case 209:return!0;default:return!1}},e.hasIndexSignature=function(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()},e.getSwitchedType=je,e.ANONYMOUS="anonymous function",e.getTypeNodeIfAccessible=function(e,t,r,n){var i=r.getTypeChecker(),a=!0,o=function(){return a=!1},s=i.typeToTypeNode(e,t,1,{trackSymbol:function(e,t,r){return!(a=a&&0===i.isSymbolAccessible(e,t,r,!1).accessibility)},reportInaccessibleThisError:o,reportPrivateInBaseOfClassExpression:o,reportInaccessibleUniqueSymbolError:o,moduleResolverHost:te(r,n)});return a?s:void 0},e.syntaxRequiresTrailingCommaOrSemicolonOrASI=Je,e.syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI=Ke,e.syntaxRequiresTrailingModuleBlockOrSemicolonOrASI=ze,e.syntaxRequiresTrailingSemicolonOrASI=Ue,e.syntaxMayBeASICandidate=e.or(Je,Ke,ze,Ue),e.positionIsASICandidate=function(t,r,n){var i=e.findAncestor(r,(function(r){return r.end!==t?"quit":e.syntaxMayBeASICandidate(r.kind)}));return!!i&&function(t,r){var n=t.getLastToken(r);if(n&&26===n.kind)return!1;if(Je(t.kind)){if(n&&27===n.kind)return!1}else if(ze(t.kind)){if((i=e.last(t.getChildren(r)))&&e.isModuleBlock(i))return!1}else if(Ke(t.kind)){var i;if((i=e.last(t.getChildren(r)))&&e.isFunctionBlock(i))return!1}else if(!Ue(t.kind))return!1;if(239===t.kind)return!0;var a=R(t,e.findAncestor(t,(function(e){return!e.parent})),r);return!a||19===a.kind||r.getLineAndCharacterOfPosition(t.getEnd()).line!==r.getLineAndCharacterOfPosition(a.getStart(r)).line}(i,n)},e.probablyUsesSemicolons=function(t){var r=0,n=0;return e.forEachChild(t,(function i(a){if(Ue(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 We(e,e.getDirectories,t)||[]},e.tryReadDirectory=function(t,r,n,i,a){return We(t,t.readDirectory,r,n,i,a)||e.emptyArray},e.tryFileExists=Ve,e.tryDirectoryExists=function(t,r){return qe((function(){return e.directoryProbablyExists(r,t)}))||!1},e.tryAndIgnoreErrors=qe,e.tryIOAndConsumeErrors=We,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");Ve(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 Ve(r,e)}),"package.json"))||void 0)})),n},e.getPackageJsonsVisibleToFile=He,e.createPackageJsonInfo=Ge,e.createPackageJsonImportFilter=function(t,r,n){var i,a=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(t.fileName)||He(t.fileName,n)).filter((function(e){return e.parseable}));return{allowsImportingAmbientModule:function(t,r){if(!a.length||!t.valueDeclaration)return!0;var n=c(t.valueDeclaration.getSourceFile().fileName,r);if(void 0===n)return!0;var i=e.stripQuotes(t.getName());if(s(i))return!0;return o(n)||o(i)},allowsImportingSourceFile:function(e,t){if(!a.length)return!0;var r=c(e.fileName,t);if(!r)return!0;return o(r)},allowsImportingSpecifier:function(t){if(!a.length||s(t))return!0;if(e.pathIsRelative(t)||e.isRootedDiskPath(t))return!0;return o(t)}};function o(t){for(var r=u(t),n=0,i=a;n=0){var a=r[i];return e.Debug.assertEqual(a.file,t.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),e.cast(a,Xe)}},e.getDiagnosticsWithinSpan=function(t,r){var n,i=e.binarySearchKey(r,t.start,(function(e){return e.start}),e.compareValues);for(i<0&&(i=~i);(null===(n=r[i-1])||void 0===n?void 0:n.start)===t.start;)i--;for(var a=[],o=e.textSpanEnd(t);;){var s=e.tryCast(r[i],Xe);if(!s||s.start>o)break;e.textSpanContainsTextSpan(t,s)&&a.push(s),i++}return a},e.getRefactorContextSpan=function(t){var r=t.startPosition,n=t.endPosition;return e.createTextSpanFromBounds(r,void 0===n?r:n)},e.getFixableErrorSpanExpression=function(t,r){var n=M(t,r.start),i=e.findAncestor(n,(function(n){return n.getStart(t)e.textSpanEnd(r)?"quit":e.isExpression(n)&&ce(r,X(n,t))}));return i},e.mapOneOrMany=function(t,r,n){return void 0===n&&(n=e.identity),t?e.isArray(t)?n(e.map(t,r)):r(t,0):void 0},e.firstOrOnly=function(t){return e.isArray(t)?e.first(t):t},e.getNameForExportedSymbol=function(t,r){return 33554432&t.flags||"export="!==t.escapedName&&"default"!==t.escapedName?t.name:e.firstDefined(t.declarations,(function(t){var r;return e.isExportAssignment(t)?null===(r=e.tryCast(e.skipOuterExpressions(t.expression),e.isIdentifier))||void 0===r?void 0:r.text:void 0}))||e.codefix.moduleSymbolToValidIdentifier(function(t){var r;return e.Debug.checkDefined(t.parent,"Symbol parent was undefined. Flags: ".concat(e.Debug.formatSymbolFlags(t.flags),". ")+"Declarations: ".concat(null===(r=t.declarations)||void 0===r?void 0:r.map((function(t){var r=e.Debug.formatSyntaxKind(t.kind),n=e.isInJSFile(t),i=t.expression;return(n?"[JS]":"")+r+(i?" (expression: ".concat(e.Debug.formatSyntaxKind(i.kind),")"):"")})).join(", "),"."))}(t),r)},e.stringContainsAt=function(e,t,r){var n=t.length;if(n+r>e.length)return!1;for(var i=0;i=i.length){var D=r(o,u,e.lastOrUndefined(d));void 0!==D&&(m=D)}}while(1!==u);function x(){switch(u){case 43:case 68:t[l]||13!==o.reScanSlashToken()||(u=13);break;case 29:79===l&&v++;break;case 31:v>0&&v--;break;case 130:case 149:case 146:case 133:case 150:v>0&&!c&&(u=79);break;case 15:d.push(u);break;case 18:d.length>0&&d.push(u);break;case 19:if(d.length>0){var r=e.lastOrUndefined(d);15===r?17===(u=o.reScanTemplateToken(!1))?d.pop():e.Debug.assertEqual(u,16,"Should have been a template middle."):(e.Debug.assertEqual(r,18,"Should have been an open brace"),d.pop())}break;default:if(!e.isKeyword(u))break;(24===l||e.isKeyword(l)&&e.isKeyword(u)&&!function(t,r){if(!e.isAccessibilityModifier(t))return!0;switch(r){case 136:case 148:case 134:case 124:return!0;default:return!1}}(l,u))&&(u=79)}}return{endOfLineState:m,spans:y}}return{getClassificationsForLine:function(t,r,n){return function(t,r){for(var n=[],a=t.spans,o=0,s=0;s=0){var d=c-o;d>0&&n.push({length:d,classification:e.TokenClass.Whitespace})}n.push({length:u,classification:i(l)}),o=c+u}var _=r.length-o;_>0&&n.push({length:_,classification:e.TokenClass.Whitespace});return{entries:n,finalLexState:t.endOfLineState}}(s(t,r,n),t)},getEncodedLexicalClassifications:s}};var t=e.arrayToNumericMap([79,10,8,9,13,108,45,46,21,23,19,110,95],(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 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}}(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<=78)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;default:return e.isTemplateLiteralKind(t)?6:2}}function o(e,t){switch(t){case 260:case 256:case 257:case 255:case 225:case 212:case 213:e.throwIfCancellationRequested()}}function s(t,r,n,i,a){var s=[];return n.forEachChild((function u(l){if(l&&e.textSpanIntersectsWith(a,l.pos,l.getFullWidth())){if(o(r,l.kind),e.isIdentifier(l)&&!e.nodeIsMissing(l)&&i.has(l.escapedText)){var d=t.getSymbolAtLocation(l),_=d&&c(d,e.getMeaningFromLocation(l),t);_&&function(t,r,n){var i=r-t;e.Debug.assert(i>0,"Classification had non-positive length of ".concat(i)),s.push(t),s.push(i),s.push(n)}(l.getStart(n),l.getEnd(),_)}l.forEachChild(u)}})),{spans:s,endOfLineState:0}}function c(t,r,n){var i=t.getFlags();return 0==(2885600&i)?void 0:32&i?11:384&i?12:524288&i?16:1536&i?4&r||1&r&&function(t){return e.some(t.declarations,(function(t){return e.isModuleDeclaration(t)&&1===e.getModuleInstanceState(t)}))}(t)?14:void 0:2097152&i?c(n.getAliasedSymbol(t),r,n):2&r?64&i?13:262144&i?15:void 0:void 0}function u(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function l(t){e.Debug.assert(t.spans.length%3==0);for(var r=t.spans,n=[],i=0;i])*)(\/>)?)?/im,a=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/gim,o=r.text.substr(t,n),s=i.exec(o);if(!s)return!1;if(!s[3]||!(s[3]in e.commentPragmas))return!1;var c=t;_(c,s[1].length),l(c+=s[1].length,s[2].length,10),l(c+=s[2].length,s[3].length,21),c+=s[3].length;var u=s[4],d=c;for(;;){var p=a.exec(u);if(!p)break;var f=c+p.index+p[1].length;f>d&&(_(d,f-d),d=f),l(d,p[2].length,22),d+=p[2].length,p[3].length&&(_(d,p[3].length),d+=p[3].length),l(d,p[4].length,5),d+=p[4].length,p[5].length&&(_(d,p[5].length),d+=p[5].length),l(d,p[6].length,24),d+=p[6].length}(c+=s[4].length)>d&&_(d,c-d);s[5]&&(l(c,s[5].length,10),c+=s[5].length);var g=t+n;c=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(63===t&&(253===n.kind||166===n.kind||163===n.kind||284===n.kind))return 5;if(220===n.kind||218===n.kind||219===n.kind||221===n.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 25;if(10===t)return r&&284===r.parent.kind?24:6;if(13===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(11===t)return 23;if(79===t){if(r)switch(r.parent.kind){case 256:return r.parent.name===r?11:void 0;case 162:return r.parent.name===r?15:void 0;case 257:return r.parent.name===r?13:void 0;case 259:return r.parent.name===r?12:void 0;case 260:return r.parent.name===r?14:void 0;case 163:return r.parent.name===r?e.isThisIdentifier(r)?3:17:void 0}return 2}}function v(n){if(n&&e.decodedTextSpanIntersectsWith(i,a,n.pos,n.getFullWidth())){o(t,n.kind);for(var s=0,c=n.getChildren(r);s0})))return 0;if(a((function(e){return e.getCallSignatures().length>0}))&&!a((function(e){return e.getProperties().length>0}))||function(t){for(;c(t);)t=t.parent;return e.isCallExpression(t.parent)&&t.parent.expression===t}(r))return 9===n?11:10}}return n}(o,_,g);var y=f.valueDeclaration;if(y){var v=e.getCombinedModifierFlags(y),h=e.getCombinedNodeFlags(y);32&v&&(m|=2),256&v&&(m|=4),0!==g&&2!==g&&(64&v||2&h||8&f.getFlags())&&(m|=8),7!==g&&10!==g||!function(t,r){return e.isBindingElement(t)&&(t=s(t)),e.isVariableDeclaration(t)?(!e.isSourceFile(t.parent.parent.parent)||e.isCatchClause(t.parent))&&t.getSourceFile()===r:!!e.isFunctionDeclaration(t)&&(!e.isSourceFile(t.parent)&&t.getSourceFile()===r)}(y,r)||(m|=32),t.isSourceFileDefaultLibrary(y.getSourceFile())&&(m|=16)}else f.declarations&&f.declarations.some((function(e){return t.isSourceFileDefaultLibrary(e.getSourceFile())}))&&(m|=16);i(_,g,m)}}}e.forEachChild(_,d),l=p}}d(r)}(t,r,n,(function(e,t,n){a.push(e.getStart(r),e.getWidth(r),(t+1<<8)+n)}),i),a}function s(t){for(;;){if(!e.isBindingElement(t.parent.parent))return t.parent.parent;t=t.parent.parent}}function c(t){return e.isQualifiedName(t.parent)&&t.parent.right===t||e.isPropertyAccessExpression(t.parent)&&t.parent.name===t}(r=t.TokenEncodingConsts||(t.TokenEncodingConsts={}))[r.typeOffset=8]="typeOffset",r[r.modifierMask=255]="modifierMask",(n=t.TokenType||(t.TokenType={}))[n.class=0]="class",n[n.enum=1]="enum",n[n.interface=2]="interface",n[n.namespace=3]="namespace",n[n.typeParameter=4]="typeParameter",n[n.type=5]="type",n[n.parameter=6]="parameter",n[n.variable=7]="variable",n[n.enumMember=8]="enumMember",n[n.property=9]="property",n[n.function=10]="function",n[n.member=11]="member",(i=t.TokenModifier||(t.TokenModifier={}))[i.declaration=0]="declaration",i[i.static=1]="static",i[i.async=2]="async",i[i.readonly=3]="readonly",i[i.defaultLibrary=4]="defaultLibrary",i[i.local=5]="local",t.getSemanticClassifications=function(t,r,n,i){var o=a(t,r,n,i);e.Debug.assert(o.spans.length%3==0);for(var s=o.spans,c=[],u=0;ua.parameters.length)){var o=r.getParameterType(a,t.argumentIndex);return n=n||!!(4&o.flags),d(o,i)}}));return{kind:2,types:o,isNewIdentifier:n}}(k,a):A()}case 265:case 271:case 276:return{kind:0,paths:g(r,n,o,s,a,c)};default:return A()}function A(){return{kind:2,types:d(e.getContextualTypeFromParent(n,a)),isNewIdentifier:!1}}}function u(t){switch(t.kind){case 190:return e.walkUpParenthesizedTypes(t);case 211:return e.walkUpParenthesizedExpressions(t);default:return t}}function l(t){return t&&{kind:1,symbols:e.filter(t.getApparentProperties(),(function(t){return!(t.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(t.valueDeclaration))})),hasIndexSignature:e.hasIndexSignature(t)}}function d(t,r){return void 0===r&&(r=new e.Map),t?(t=e.skipConstraint(t)).isUnion()?e.flatMap(t.types,(function(e){return d(e,r)})):!t.isStringLiteral()||1024&t.flags||!e.addToSeen(r,t.value)?e.emptyArray:[t]:e.emptyArray}function _(e,t,r){return{name:e,kind:t,extension:r}}function p(e){return _(e,"directory",void 0)}function f(t,r,n){var i=function(t,r){var n=Math.max(t.lastIndexOf(e.directorySeparator),t.lastIndexOf(e.altDirectorySeparator)),i=-1!==n?n+1:0,a=t.length-i;return 0===a||e.isIdentifierText(t.substr(i,a),99)?void 0:e.createTextSpan(r+i,a)}(t,r),a=0===t.length?void 0:e.createTextSpan(r,t.length);return n.map((function(t){var r=t.name,n=t.kind,o=t.extension;return-1!==Math.max(r.indexOf(e.directorySeparator),r.indexOf(e.altDirectorySeparator))?{name:r,kind:n,extension:o,span:a}:{name:r,kind:n,extension:o,span:i}}))}function g(t,n,i,a,o,s){return f(n.text,n.getStart(t)+1,function(t,n,i,a,o,s){var c=e.normalizeSlashes(n.text),u=t.path,l=e.getDirectoryPath(u);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}(c)||!i.baseUrl&&(e.isRootedDiskPath(c)||e.isUrl(c))?function(t,n,i,a,o,s){var c=m(i,s);return i.rootDirs?function(t,n,i,a,o,s,c){var u=o.project||s.getCurrentDirectory(),l=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),d=function(t,n,i,a){t=t.map((function(t){return e.normalizePath(e.isRootedDiskPath(t)?t:e.combinePaths(n,t))}));var o=e.firstDefined(t,(function(t){return e.containsPath(t,i,n,a)?i.substr(t.length):void 0}));return e.deduplicate(r(r([],t.map((function(t){return e.combinePaths(t,o)})),!0),[i],!1),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}(t,u,i,l);return e.flatMap(d,(function(e){return v(n,e,a,s,c)}))}(i.rootDirs,t,n,c,i,a,o):v(t,n,c,a,o)}(c,l,i,a,u,d()):function(t,r,n,i,a){var o=n.baseUrl,s=n.paths,c=[],u=m(n);if(o){var l=n.project||i.getCurrentDirectory(),d=e.normalizePath(e.combinePaths(l,o));v(t,d,u,i,void 0,c),s&&h(c,t,d,u.extensions,s,i)}for(var p=D(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=e.pos&&r<=e.end}));if(s){var c=t.text.slice(s.pos,r),u=S.exec(c);if(u){var l=u[1],d=u[2],_=u[3],p=e.getDirectoryPath(t.path),g="path"===d?v(_,p,m(n,1),i,t.path):"types"===d?b(i,n,p,D(_),m(n)):e.Debug.fail();return f(_,s.pos+l.length,g)}}}(r,n,o,s);return _&&i(_)}if(e.isInString(r,n,a)){if(!a||!e.isStringLiteralLike(a))return;return function(r,n,a,o,s,c,u,l){if(void 0!==r){var d=e.createTextSpanFromStringLiteralLikeContent(n);switch(r.kind){case 0:return i(r.paths);case 1:var _=[];return t.getCompletionEntriesFromSymbols(r.symbols,_,n,n,a,a,o,s,99,c,4,l,u),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:r.hasIndexSignature,optionalReplacementSpan:d,entries:_};case 2:return _=r.types.map((function(r){return{name:r.value,kindModifiers:"",kind:"string",sortText:t.SortText.LocationPriority,replacementSpan:e.getReplacementSpanForContextToken(n)}})),{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:r.isNewIdentifier,optionalReplacementSpan:d,entries:_};default:return e.Debug.assertNever(r)}}}(_=c(r,a,n,u.getTypeChecker(),o,s,d),a,r,s,u,l,o,d)}},n.getStringLiteralCompletionDetails=function(r,n,i,o,s,u,l,d,_){if(o&&e.isStringLiteralLike(o)){var p=c(n,o,i,s,u,l,_);return p&&function(r,n,i,o,s,c){switch(i.kind){case 0:return(u=e.find(i.paths,(function(e){return e.name===r})))&&t.createCompletionDetails(r,a(u.extension),u.kind,[e.textPart(r)]);case 1:var u=e.find(i.symbols,(function(e){return e.name===r}));return u&&t.createCompletionDetailsForSymbol(u,s,o,n,c);case 2:return e.find(i.types,(function(e){return e.value===r}))?t.createCompletionDetails(r,"","type",[e.textPart(r)]):void 0;default:return e.Debug.assertNever(i)}}(r,o,p,n,s,d)}},function(e){e[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types"}(o||(o={})),function(e){e[e.Exclude=0]="Exclude",e[e.Include=1]="Include",e[e.ModuleSpecifierCompletion=2]="ModuleSpecifierCompletion"}(s||(s={}));var S=/^(\/\/\/\s*=t.pos;case 24:case 22:return 201===i;case 58:return 202===i;case 20:return 291===i||Se(i);case 18:return 259===i;case 29:return 256===i||225===i||257===i||258===i||e.isFunctionLikeKind(i);case 124:return 166===i&&!e.isClassLike(r.parent);case 25:return 163===i||!!r.parent&&201===r.parent.kind;case 123:case 121:case 122:return 163===i&&!e.isConstructorDeclaration(r.parent);case 127:return 269===i||274===i||267===i;case 136:case 148:return!ee(t);case 79:if(269===i&&t===r.name&&"type"===t.text)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 269!==i;case 41:return e.isFunctionLike(t.parent)&&!e.isMethodDeclaration(t.parent)}if(H(Y(t))&&ee(t))return!1;if(xe(t)&&(!e.isIdentifier(t)||e.isParameterPropertyModifier(Y(t))||ke(t)))return!1;switch(Y(t)){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(t.parent)}if(e.findAncestor(t.parent,e.isClassLike)&&t===S&&be(t,a))return!1;var o=e.getAncestor(t.parent,166);if(o&&t!==S&&e.isClassLike(S.parent.parent)&&a<=S.end){if(be(t,S.end))return!1;if(63!==t.kind&&(e.isInitializedProperty(o)||e.hasType(o)))return!0}return e.isDeclarationName(t)&&!e.isShorthandPropertyAssignment(t.parent)&&!e.isJsxAttribute(t.parent)&&!(e.isClassLike(t.parent)&&(t!==S||a>S.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(279===e.parent.kind)return 279!==O.parent.kind;if(280===e.parent.kind||278===e.parent.kind)return!!e.parent.parent&&277===e.parent.parent.kind}return!1}(t)||e.isBigIntLiteral(t);return r("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-i)),o}(T))return r("Returning an empty list because completion was requested in an invalid position."),M?v(M,x,De()):void 0;var J=T.parent;if(24===T.kind||28===T.kind)switch(A=24===T.kind,F=28===T.kind,J.kind){case 205:k=(C=J).expression;var K=e.getLeftmostAccessExpression(C);if(e.nodeIsMissing(K)||(e.isCallExpression(k)||e.isFunctionLike(k))&&k.end===T.pos&&k.getChildCount(n)&&21!==e.last(k.getChildren(n)).kind)return;break;case 160:k=J.left;break;case 260:k=J.name;break;case 199:k=J;break;case 230:k=J.getFirstToken(n),e.Debug.assert(100===k.kind||103===k.kind);break;default:return}else if(!E&&1===n.languageVariant){if(J&&205===J.kind&&(T=J,J=J.parent),_.parent===O)switch(_.kind){case 31:277!==_.parent.kind&&279!==_.parent.kind||(O=_);break;case 43:278===_.parent.kind&&(O=_)}switch(J.kind){case 280:43===T.kind&&(P=!0,O=T);break;case 220:if(!te(J))break;case 278:case 277:case 279:I=!0,29===T.kind&&(N=!0,O=T);break;case 287:case 286:19===S.kind&&31===_.kind&&(I=!0);break;case 284:if(J.initializer===S&&S.end0&&(G=e.concatenate(G,function(t,r){if(0===r.length)return t;for(var n=new e.Set,i=new e.Set,a=0,o=r;a");return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:e.createTextSpanFromNode(i.tagName),entries:[{name:o,kind:"class",kindModifiers:void 0,sortText:r.LocationPriority}]}}return}(f,t);if(P)return P}var I=[];if(D(t,a)){var O=w(u,I,void 0,l,f,t,n,i,e.getEmitScriptTarget(a),o,d,c,a,C,g,E,T,k,b,v,F);!function(t,n,i,a,o){e.getNameTable(t).forEach((function(t,s){if(t!==n){var c=e.unescapeLeadingUnderscores(s);!i.has(c)&&e.isIdentifierText(c,a)&&(i.add(c),o.push({name:c,kind:"warning",kindModifiers:"",sortText:r.JavascriptIdentifiers,isFromUncheckedFile:!0}))}}))}(t,f.pos,O,e.getEmitScriptTarget(a),I)}else{if(!(p||u&&0!==u.length||0!==m))return;w(u,I,void 0,l,f,t,n,i,e.getEmitScriptTarget(a),o,d,c,a,C,g,E,T,k,b,v,F)}if(0!==m)for(var M=new e.Set(I.map((function(e){return e.name}))),L=0,R=V(m,!A&&e.isSourceFileJS(t));L=0&&!u(r,n[i],115);i--);return e.forEach(a(t.statement),(function(e){s(t,e)&&u(r,e.getFirstToken(),81,86)})),r}function d(e){var t=c(e);if(t)switch(t.kind){case 241:case 242:case 243:case 239:case 240:return l(t);case 248:return _(t)}}function _(t){var r=[];return u(r,t.getFirstToken(),107),e.forEach(t.caseBlock.clauses,(function(n){u(r,n.getFirstToken(),82,88),e.forEach(a(n),(function(e){s(t,e)&&u(r,e.getFirstToken(),81)}))})),r}function p(t,r){var n=[];(u(n,t.getFirstToken(),111),t.catchClause&&u(n,t.catchClause.getFirstToken(),83),t.finallyBlock)&&u(n,e.findChildOfKind(t,96,r),96);return n}function f(t,r){var n=function(t){for(var r=t;r.parent;){var n=r.parent;if(e.isFunctionBlock(n)||303===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,109,r))})),e.isFunctionBlock(n)&&e.forEachReturnStatement(n,(function(t){a.push(e.findChildOfKind(t,105,r))})),a}}function g(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,105,r))})),e.forEach(i(n.body),(function(t){a.push(e.findChildOfKind(t,109,r))})),a}}function m(t){var r=e.getContainingFunction(t);if(r){var n=[];return r.modifiers&&r.modifiers.forEach((function(e){u(n,e,131)})),e.forEachChild(r,(function(t){y(t,(function(t){e.isAwaitExpression(t)&&u(n,t.getFirstToken(),132)}))})),n}}function y(t,r){r(t),e.isFunctionLike(t)||e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isModuleDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isTypeNode(t)||e.forEachChild(t,(function(e){return y(e,r)}))}t.getDocumentHighlights=function(t,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 v=c.parent.parent,h=[v.openingElement,v.closingElement].map((function(e){return n(e.tagName,a)}));return[{fileName:a.fileName,highlightSpans:h}]}return function(t,r,n,i,a){var o=new e.Set(a.map((function(e){return e.fileName}))),s=e.FindAllReferences.getReferenceEntriesForNode(t,r,n,a,i,void 0,o);if(!s)return;var c=e.arrayToMultiMap(s.map(e.FindAllReferences.toHighlightSpan),(function(e){return e.fileName}),(function(e){return e.span})),u=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames());return e.mapDefined(e.arrayFrom(c.entries()),(function(t){var r=t[0],i=t[1];if(!o.has(r)){if(!n.redirectTargetsMap.has(e.toPath(r,n.getCurrentDirectory(),u)))return;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,t,i,s)||function(t,i){var a=function(t,i){switch(t.kind){case 99:case 91:return e.isIfStatement(t.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],99);for(var a=i.length-1;a>=0&&!u(n,i[a],91);a--);if(!t.elseStatement||!e.isIfStatement(t.elseStatement))break;t=t.elseStatement}return n}(t,r),a=[],o=0;o=s.end;d--)if(!e.isWhiteSpaceSingleLine(r.text.charCodeAt(d))){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}(t.parent,i):void 0;case 105:return c(t.parent,e.isReturnStatement,g);case 109:return c(t.parent,e.isThrowStatement,f);case 111:case 83:case 96:return c(83===t.kind?t.parent.parent:t.parent,e.isTryStatement,p);case 107:return c(t.parent,e.isSwitchStatement,_);case 82:case 88:return e.isDefaultClause(t.parent)||e.isCaseClause(t.parent)?c(t.parent.parent.parent,e.isSwitchStatement,_):void 0;case 81:case 86:return c(t.parent,e.isBreakOrContinueStatement,d);case 97:case 115:case 90:return c(t.parent,(function(t){return e.isIterationStatement(t,!0)}),l);case 134:return s(e.isConstructorDeclaration,[134]);case 136:case 148:return s(e.isAccessor,[136,148]);case 132:return c(t.parent,e.isAwaitExpression,m);case 131:return v(m(t));case 125:return v(function(t){var r=e.getContainingFunction(t);if(!r)return;var n=[];return e.forEachChild(r,(function(t){y(t,(function(t){e.isYieldExpression(t)&&u(n,t.getFirstToken(),125)}))})),n}(t));default:return e.isModifierKind(t.kind)&&(e.isDeclaration(t.parent)||e.isVariableStatement(t.parent))?v((a=t.kind,o=t.parent,e.mapDefined(function(t,n){var i=t.parent;switch(i.kind){case 261:case 303:case 234:case 288:case 289:return 128&n&&e.isClassDeclaration(t)?r(r([],t.members,!0),[t],!1):i.statements;case 170:case 168:case 255:return r(r([],i.parameters,!0),e.isClassLike(i.parent)?i.parent.members:[],!0);case 256:case 225:case 257:case 181:var a=i.members;if(92&n){var o=e.find(i.members,e.isConstructorDeclaration);if(o)return r(r([],a,!0),o.parameters,!0)}else if(128&n)return r(r([],a,!0),[i],!1);return a;case 204:return;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(r,n){return c(t.parent,r,(function(t){return e.mapDefined(t.symbol.declarations,(function(t){return r(t)?e.find(t.getChildren(i),(function(t){return e.contains(n,t.kind)})):void 0}))}))}function c(e,t,r){return t(e)?v(r(e,i)):void 0}function v(e){return e&&e.map((function(e){return n(e,i)}))}}(t,i);return a&&[{fileName:i.fileName,highlightSpans:a}]}(c,a)}}(e.DocumentHighlights||(e.DocumentHighlights={}))}(c||(c={})),function(e){function t(e){return!!e.sourceFile}function r(r,i,a){void 0===i&&(i="");var o=new e.Map,s=e.createGetCanonicalFileName(!!r);function c(e,t,r,n,i,a,o){return d(e,t,r,n,i,a,!0,o)}function u(e,t,r,n,i,a,o){return d(e,t,r,n,i,a,!1,o)}function l(r,n){var i=t(r)?r:r.get(e.Debug.checkDefined(n,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return e.Debug.assert(void 0===n||!i||i.sourceFile.scriptKind===n,"Script kind should match provided ScriptKind:".concat(n," and sourceFile.scriptKind: ").concat(null==i?void 0:i.sourceFile.scriptKind,", !entry: ").concat(!i)),i}function d(r,n,i,s,c,u,d,_){var p=6===(_=e.ensureScriptKind(r,_))?100:e.getEmitScriptTarget(i),f=e.getOrUpdate(o,s,(function(){return new e.Map})),g=f.get(n),m=g&&l(g,_);!m&&a&&((y=a.getDocument(s,n))&&(e.Debug.assert(d),m={sourceFile:y,languageServiceRefCount:0},v()));if(m)m.sourceFile.version!==u&&(m.sourceFile=e.updateLanguageServiceSourceFile(m.sourceFile,c,u,c.getChangeRange(m.sourceFile.scriptSnapshot)),a&&a.setDocument(s,n,m.sourceFile)),d&&m.languageServiceRefCount++;else{var y=e.createLanguageServiceSourceFile(r,c,p,u,!1,_);a&&a.setDocument(s,n,y),m={sourceFile:y,languageServiceRefCount:1},v()}return e.Debug.assert(0!==m.languageServiceRefCount),m.sourceFile;function v(){if(g)if(t(g)){var r=new e.Map;r.set(g.sourceFile.scriptKind,g),r.set(_,m),f.set(n,r)}else g.set(_,m);else f.set(n,m)}}function _(r,n,i){var a=e.Debug.checkDefined(o.get(n)),s=a.get(r),c=l(s,i);c.languageServiceRefCount--,e.Debug.assert(c.languageServiceRefCount>=0),0===c.languageServiceRefCount&&(t(s)?a.delete(r):(s.delete(i),1===s.size&&a.set(r,e.firstDefinedIterator(s.values(),e.identity))))}return{acquireDocument:function(t,r,a,o,u){return c(t,e.toPath(t,i,s),r,n(r),a,o,u)},acquireDocumentWithKey:c,updateDocument:function(t,r,a,o,c){return u(t,e.toPath(t,i,s),r,n(r),a,o,c)},updateDocumentWithKey:u,releaseDocument:function(t,r,a){return _(e.toPath(t,i,s),n(r),a)},releaseDocumentWithKey:_,getLanguageServiceRefCounts:function(t,r){return e.arrayFrom(o.entries(),(function(e){var n=e[0],i=e[1].get(t),a=i&&l(i,r);return[n,a&&a.languageServiceRefCount]}))},reportStats:function(){var r=e.arrayFrom(o.keys()).filter((function(e){return e&&"_"===e.charAt(0)})).map((function(e){var r=o.get(e),n=[];return r.forEach((function(e,r){t(e)?n.push({name:r,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount}):e.forEach((function(e,t){return n.push({name:r,scriptKind:t,refCount:e.languageServiceRefCount})}))})),n.sort((function(e,t){return t.refCount-e.refCount})),{bucket:e,sourceFiles:n}}));return JSON.stringify(r,void 0,2)},getKeyForCompilationSettings:n}}function n(t){return e.sourceFileAffectingCompilerOptions.map((function(r){return e.getCompilerOptionValue(t,r)})).join("|")}e.createDocumentRegistry=function(e,t){return r(e,t)},e.createDocumentRegistryInternal=r}(c||(c={})),function(e){!function(t){var r,i;function a(t,r){return e.forEach(303===t.kind?t.statements:t.body.statements,(function(t){return r(t)||l(t)&&e.forEach(t.body&&t.body.statements,r)}))}function o(t,r){if(t.externalModuleIndicator||void 0!==t.imports)for(var n=0,i=t.imports;n=0&&!(c>n.end);){var u=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),99)||u!==o&&e.isIdentifierPart(a.charCodeAt(u),99)||i.push(c),c=a.indexOf(r,c+s+1)}return i}function S(t,r){var n=t.getSourceFile(),i=r.text,a=e.mapDefined(D(n,i,t),(function(t){return t===r||e.isJumpStatementTarget(t)&&e.getTargetLabel(t,i)===r?c(t):void 0}));return[{definition:{type:1,node:r},references:a}]}function T(e,t,r,n){return void 0===n&&(n=!0),r.cancellationToken.throwIfCancellationRequested(),C(e,e,t,r,n)}function C(e,t,r,n,i){if(n.markSearchedSymbols(t,r.allSearchSymbols))for(var a=0,o=b(t,r.text,e);a0;o--){b(t,i=n[o])}return[n.length-1,n[0]]}function b(e,t){var r=v(e,t);g(o,r),u.push(o),l.push(s),s=void 0,o=r}function S(){o.children&&(A(o.children,o),O(o.children)),o=u.pop(),s=l.pop()}function T(e,t,r){b(e,r),k(t),S()}function C(t){t.initializer&&function(e){switch(e.kind){case 213:case 212:case 225:return!0;default:return!1}}(t.initializer)?(b(t),e.forEachChild(t.initializer,k),S()):T(t,t.initializer)}function E(t){return!e.hasDynamicName(t)||220!==t.kind&&e.isPropertyAccessExpression(t.name.expression)&&e.isIdentifier(t.name.expression.expression)&&"Symbol"===e.idText(t.name.expression.expression)}function k(t){var r;if(i.throwIfCancellationRequested(),t&&!e.isToken(t))switch(t.kind){case 170:var n=t;T(n,n.body);for(var a=0,o=n.parameters;a0&&(b(J,L),e.forEachChild(J.right,k),S()):e.isFunctionExpression(J.right)||e.isArrowFunction(J.right)?T(t,J.right,L):(b(J,L),T(t,J.right,I.name),S()),void D(M);case 7:case 9:var R=t,B=(L=7===w?R.arguments[0]:R.arguments[0].expression,R.arguments[1]),j=x(t,L);M=j[0];return b(t,j[1]),b(t,e.setTextRange(e.factory.createIdentifier(B.text),B)),k(t.arguments[2]),S(),S(),void D(M);case 5:var J,K=(I=(J=t).left).expression;if(e.isIdentifier(K)&&"prototype"!==e.getElementOrPropertyAccessName(I)&&s&&s.has(K.text))return void(e.isFunctionExpression(J.right)||e.isArrowFunction(J.right)?T(t,J.right,K):e.isBindableStaticAccessExpression(I)&&(b(J,K),T(J.left,J.right,e.getNameOrArgument(I)),S()));break;case 4:case 0:case 8:break;default:e.Debug.assertNever(w)}default:e.hasJSDocNodes(t)&&e.forEach(t.jsDoc,(function(t){e.forEach(t.tags,(function(t){e.isJSDocTypeAlias(t)&&y(t)}))})),e.forEachChild(t,k)}}function A(t,r){var n=new e.Map;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;c0)return Y(n)}switch(t.kind){case 303:var i=t;return e.isExternalModule(i)?'"'.concat(e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName)))),'"'):"";case 270:return e.isExportAssignment(t)&&t.isExportEquals?"export=":"default";case 213:case 255:case 212:case 256:case 225:return 512&e.getSyntacticModifierFlags(t)?"default":H(t);case 170:return"constructor";case 174:return"new()";case 173:return"()";case 175:return"[]";default:return""}}function B(t){return{text:R(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:W(t.node),spans:J(t),nameSpan:t.name&&q(t.name),childItems:e.map(t.children,B)}}function j(t){return{text:R(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:W(t.node),spans:J(t),childItems:e.map(t.children,(function(t){return{text:R(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:e.getNodeModifiers(t.node),spans:J(t),childItems:d,indent:0,bolded:!1,grayed:!1}}))||d,indent:t.indent,bolded:!1,grayed:!1}}function J(e){var t=[q(e.node)];if(e.additionalNodes)for(var r=0,n=e.additionalNodes;r0)return Y(e.declarationNameToString(t.name));if(e.isVariableDeclaration(r))return Y(e.declarationNameToString(r.name));if(e.isBinaryExpression(r)&&63===r.operatorToken.kind)return p(r.left).replace(c,"");if(e.isPropertyAssignment(r))return p(r.name);if(512&e.getSyntacticModifierFlags(t))return"default";if(e.isClassLike(t))return"";if(e.isCallExpression(r)){var n=G(r.expression);if(void 0!==n){if((n=Y(n)).length>150)return"".concat(n," callback");var i=Y(e.mapDefined(r.arguments,(function(t){return e.isStringLiteralLike(t)?t.getText(a):void 0})).join(", "));return"".concat(n,"(").concat(i,") callback")}}return""}function G(t){if(e.isIdentifier(t))return t.text;if(e.isPropertyAccessExpression(t)){var r=G(t.expression),n=t.name.text;return void 0===r?n:"".concat(r,".").concat(n)}}function Y(e){return(e=e.length>150?e.substring(0,150)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}}(e.NavigationBar||(e.NavigationBar={}))}(c||(c={})),function(e){!function(t){function r(t,r){var n=e.isStringLiteral(r)&&r.text;return e.isString(n)&&e.some(t.moduleAugmentations,(function(t){return e.isStringLiteral(t)&&t.text===n}))}function n(t){return void 0!==t&&e.isStringLiteralLike(t)?t.text:void 0}function i(t){var r;if(0===t.length)return t;var n=function(t){for(var r,n={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]},a=0,o=t;a0?g[0]:y[0],k=0===C.length?x?void 0:e.factory.createNamedImports(e.emptyArray):0===y.length?e.factory.createNamedImports(C):e.factory.updateNamedImports(y[0].importClause.namedBindings,C);f&&x&&k?(u.push(o(E,x,void 0)),u.push(o(null!==(r=y[0])&&void 0!==r?r:E,void 0,k))):u.push(o(E,x,k))}}else{var A=g[0];u.push(o(A,A.importClause.name,m[0].importClause.namedBindings))}}return u}function a(t){if(0===t.length)return t;var r=function(e){for(var t,r=[],n=[],i=0,a=e;i...")}function d(t){var n=e.createTextSpanFromBounds(t.openingFragment.getStart(r),t.closingFragment.getEnd());return u(n,"code",n,!1,"<>...")}function _(e){if(0!==e.properties.length)return s(e.getStart(r),e.getEnd(),"code")}function p(e){if(14!==e.kind||0!==e.text.length)return s(e.getStart(r),e.getEnd(),"code")}function f(t,r){return void 0===r&&(r=18),g(t,!1,!e.isArrayLiteralExpression(t.parent)&&!e.isCallExpression(t.parent),r)}function g(n,i,a,o,s){void 0===i&&(i=!1),void 0===a&&(a=!0),void 0===o&&(o=18),void 0===s&&(s=18===o?19:23);var u=e.findChildOfKind(t,o,r),l=e.findChildOfKind(t,s,r);return u&&l&&c(u,l,n,r,i,a)}function m(t){return t.length?u(e.createTextSpanFromRange(t),"code"):void 0}}(r,t);_&&i.push(_),l--,e.isCallExpression(r)?(l++,m(r.expression),l--,r.arguments.forEach(m),null===(d=r.typeArguments)||void 0===d||d.forEach(m)):e.isIfStatement(r)&&r.elseStatement&&e.isIfStatement(r.elseStatement)?(m(r.expression),m(r.thenStatement),l++,m(r.elseStatement),l--):r.forEachChild(m),l++}}}(t,n,l),function(t,r){for(var n=[],a=t.getLineStarts(),o=0,s=a;o1&&a.push(s(c,u,"comment"))}}function o(t,r,n,i){e.isJsxText(t)||a(t.pos,r,n,i)}function s(t,r,n){return u(e.createTextSpanFromBounds(t,r),n)}function c(t,r,n,i,a,o){return void 0===a&&(a=!1),void 0===o&&(o=!0),u(e.createTextSpanFromBounds(o?t.getFullStart():t.getStart(i),r.getEnd()),"code",e.createTextSpanFromNode(n,i),a)}function u(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={}))}(c||(c={})),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 _(e.charCodeAt(n+r))===t})))return{value:r}},i=0;i<=r;i++){var a=n(i);if("object"==typeof a)return a.value}return-1}(i,a.textLowerCase);if(0===s)return r(a.text.length===i.length?t.exact:t.prefix,e.startsWith(i,a.text));if(a.isLowerCase){if(-1===s)return;for(var d=0,p=n(i,o);d0)return r(t.substring,!0);if(a.characterSpans.length>0){var g=n(i,o),m=!!u(i,g,a,!1)||!u(i,g,a,!0)&&void 0;if(void 0!==m)return r(t.camelCase,m)}}}function a(e,t,r){if(C(t.totalTextChunk.text,(function(e){return 32!==e&&42!==e}))){var n=i(e,t.totalTextChunk,r);if(n)return n}for(var a,s=0,c=t.subWordTextChunks;s=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,99))return!1;var r=String.fromCharCode(t);return r===r.toUpperCase()}function d(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 _(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function p(e){return e>=48&&e<=57}function f(e){return l(e)||d(e)||p(e)||95===e||36===e}function g(e){for(var t=[],r=0,n=0,i=0;i0&&(t.push(m(e.substr(r,n))),n=0)}return n>0&&t.push(m(e.substr(r,n))),t}function m(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:y(e)}}function y(e){return h(e,!1)}function v(e){return h(e,!0)}function h(t,r){for(var n=[],i=0,a=1;at.length)return;for(var c=n.length-2,u=t.length-1;c>=0;c-=1,u-=1)s=o(s,a(t[u],n[c],i));return s}(t,i,n,r)},getMatchForLastSegmentOfPattern:function(t){return a(t,e.last(n),r)},patternContainsDots:n.length>1}},e.breakIntoCharacterSpans=y,e.breakIntoWordSpans=v}(c||(c={})),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 d(){return a=o,18===(o=e.scanner.scan())?u++:19===o&&u--,o}function _(){var t=e.scanner.getTokenValue(),r=e.scanner.getTokenPos();return{fileName:t,pos:r,end:r+t.length}}function p(){c.push(_()),f()}function f(){0===u&&(l=!0)}function g(){var t=e.scanner.getToken();return 135===t&&(141===(t=d())&&10===(t=d())&&(i||(i=[]),i.push({ref:_(),depth:u})),!0)}function m(){if(24===a)return!1;var t=e.scanner.getToken();if(100===t){if(20===(t=d())){if(10===(t=d())||14===t)return p(),!0}else{if(10===t)return p(),!0;if(151===t){var r=e.scanner.lookAhead((function(){var t=e.scanner.scan();return 155!==t&&(41===t||18===t||79===t||e.isKeyword(t))}));r&&(t=d())}if(79===t||e.isKeyword(t))if(155===(t=d())){if(10===(t=d()))return p(),!0}else if(63===t){if(v(!0))return!0}else{if(27!==t)return!0;t=d()}if(18===t){for(t=d();19!==t&&1!==t;)t=d();19===t&&155===(t=d())&&10===(t=d())&&p()}else 41===t&&127===(t=d())&&(79===(t=d())||e.isKeyword(t))&&155===(t=d())&&10===(t=d())&&p()}return!0}return!1}function y(){var t=e.scanner.getToken();if(93===t){if(f(),151===(t=d())){var r=e.scanner.lookAhead((function(){var t=e.scanner.scan();return 41===t||18===t}));r&&(t=d())}if(18===t){for(t=d();19!==t&&1!==t;)t=d();19===t&&155===(t=d())&&10===(t=d())&&p()}else if(41===t)155===(t=d())&&10===(t=d())&&p();else if(100===t){if(151===(t=d())){r=e.scanner.lookAhead((function(){var t=e.scanner.scan();return 79===t||e.isKeyword(t)}));r&&(t=d())}if((79===t||e.isKeyword(t))&&63===(t=d())&&v(!0))return!0}return!0}return!1}function v(t,r){void 0===r&&(r=!1);var n=t?d():e.scanner.getToken();return 145===n&&(20===(n=d())&&(10===(n=d())||r&&14===n)&&p(),!0)}function h(){var t=e.scanner.getToken();if(79===t&&"define"===e.scanner.getTokenValue()){if(20!==(t=d()))return!0;if(10===(t=d())||14===t){if(27!==(t=d()))return!0;t=d()}if(22!==t)return!0;for(t=d();23!==t&&1!==t;)10!==t&&14!==t||p(),t=d();return!0}return!1}if(r&&function(){for(e.scanner.setText(t),d();1!==e.scanner.getToken();)g()||m()||y()||n&&(v(!1,!0)||h())||d();e.scanner.setText(void 0)}(),e.processCommentPragmas(s,t),e.processPragmasIntoFields(s,e.noop),l){if(i)for(var D=0,x=i;Dt)break e;var v=e.singleOrUndefined(e.getTrailingCommentRanges(i.text,m.end));if(v&&2===v.kind&&S(v.pos,v.end),r(i,t,m)){if(e.isBlock(m)||e.isTemplateSpan(m)||e.isTemplateHead(m)||e.isTemplateTail(m)||g&&e.isTemplateHead(g)||e.isVariableDeclarationList(m)&&e.isVariableStatement(_)||e.isSyntaxList(m)&&e.isVariableDeclarationList(_)||e.isVariableDeclaration(m)&&e.isSyntaxList(_)&&1===p.length||e.isJSDocTypeExpression(m)||e.isJSDocSignature(m)||e.isJSDocTypeLiteral(m)){_=m;break}if(e.isTemplateSpan(_)&&y&&e.isTemplateMiddleOrTemplateTail(y))b(m.getFullStart()-"${".length,y.getStart()+"}".length);var h=e.isSyntaxList(m)&&(c=void 0,18===(c=(s=g)&&s.kind)||22===c||20===c||279===c)&&u(y)&&!e.positionsAreOnSameLine(g.getStart(),y.getStart(),i),D=h?g.getEnd():m.getStart(),x=h?y.getStart():l(i,m);e.hasJSDocNodes(m)&&(null===(o=m.jsDoc)||void 0===o?void 0:o.length)&&b(e.first(m.jsDoc).getStart(),x),b(D,x),(e.isStringLiteral(m)||e.isTemplateLiteral(m))&&b(D+1,x-1),_=m;break}if(f===p.length-1)break e}}return d;function b(r,i){if(r!==i){var a=e.createTextSpanFromBounds(r,i);(!d||!e.textSpansEqual(a,d.textSpan)&&e.textSpanIntersectsWithPosition(a,t))&&(d=n({textSpan:a},d&&{parent:d}))}}function S(e,t){b(e,t);for(var r=e;47===i.text.charCodeAt(r);)r++;b(r,t)}};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.checkDefined(a.pop());e.Debug.assertEqual(n.kind,18),e.Debug.assertEqual(u.kind,19);var l=o(a,(function(e){return e===t.readonlyToken||144===e.kind||e===t.questionToken||57===e.kind})),d=o(l,(function(e){var t=e.kind;return 22===t||162===t||23===t}));return[n,c(s(d,(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 63===e.kind}))}return e.isBindingElement(t)?s(t.getChildren(),(function(e){return 63===e.kind})):t.getChildren()}function o(e,t){for(var r,n=[],i=0,a=e;i0&&27===e.last(r).kind&&n++;return n}(i);0!==a&&e.Debug.assertLessThan(a,o);var s=function(t,r){var n=t.getFullStart(),i=e.skipTrivia(r.text,t.getEnd(),!1);return e.createTextSpan(n,i-n)}(i,r);return{list:i,argumentIndex:a,argumentCount:o,argumentsSpan:s}}}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)&&209===i.parent.kind){var p=i,f=p.parent;return e.Debug.assert(222===p.kind),_(f,u=e.isInsideTemplateLiteral(t,r,n)?0:1,n)}if(e.isTemplateSpan(i)&&e.isTaggedTemplateExpression(i.parent.parent)){var g=i;f=i.parent.parent;if(e.isTemplateTail(t)&&!e.isInsideTemplateLiteral(t,r,n))return;u=function(t,r,n,i){if(e.Debug.assert(n>=r.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(r))return e.isInsideTemplateLiteral(r,n,i)?0:t+2;return t+1}(g.parent.templateSpans.indexOf(g),t,r,n);return _(f,u,n)}if(e.isJsxOpeningLikeElement(i)){var m=i.attributes.pos,y=e.skipTrivia(n.text,i.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:e.createTextSpan(m,y-m),argumentIndex:0,argumentCount:1}}var v=e.getPossibleTypeArgumentsInfo(t,n);if(v){var h=v.called,D=v.nTypeArguments;return{isTypeParameterList:!0,invocation:a={kind:1,called:h},argumentsSpan:d=e.createTextSpanFromBounds(h.getStart(n),t.end),argumentIndex:D,argumentCount:D+1}}}function c(t){return e.isBinaryExpression(t.parent)?c(t.parent):t}function u(t){return e.isBinaryExpression(t.left)?u(t.left)+1:2}function l(t){return"__type"===t.name&&e.firstDefined(t.declarations,(function(t){return e.isFunctionTypeNode(t)?t.parent.symbol:void 0}))||t}function d(e,t){for(var r=0,n=0,i=e.getChildren();n=0&&i.length>a+1),i[a+1]}function g(t){return 0===t.kind?e.getInvokedExpression(t.node):t.called}function m(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={})),t.getSignatureHelpItems=function(t,r,n,i,d){var _=t.getTypeChecker(),p=e.findTokenOnLeftOfPosition(r,n);if(p){var f=!!i&&"characterTyped"===i.kind;if(!f||!e.isInString(r,n,p)&&!e.isInComment(r,n)){var y=!!i&&"invoked"===i.kind,D=function(t,r,n,i,a){for(var d=function(t){e.Debug.assert(e.rangeContainsRange(t.parent,t),"Not a subspan",(function(){return"Child: ".concat(e.Debug.formatSyntaxKind(t.kind),", parent: ").concat(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 211:case 168:case 212:case 213:var a=o(t,r);if(!a)return;var s=a.argumentIndex,l=a.argumentCount,d=a.argumentsSpan,_=e.isMethodDeclaration(i)?n.getContextualTypeForObjectLiteralElement(i):n.getContextualType(i);return _&&{contextualType:_,argumentIndex:s,argumentCount:l,argumentsSpan:d};case 220:var p=c(i),f=n.getContextualType(p),g=20===t.kind?0:u(i)-1,m=u(p);return f&&{contextualType:f,argumentIndex:g,argumentCount:m,argumentsSpan:e.createTextSpanFromNode(i)};default:return}}(t,n,i);if(!a)return;var s=a.contextualType,d=a.argumentIndex,_=a.argumentCount,p=a.argumentsSpan,f=s.getNonNullableType(),g=f.getCallSignatures();return 1!==g.length?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:e.first(g),node:t,symbol:l(f.symbol)},argumentsSpan:p,argumentIndex:d,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 p=d(_);if("object"==typeof p)return p.value}return}(p,n,r,_,y);if(D){d.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 d=s.called;if(o&&!a(i,n,e.isIdentifier(d)?d.parent:d))return;if(0!==(u=e.getPossibleGenericSignatures(d,c,r)).length)return{kind:0,candidates:u,resolvedSignature:e.first(u)};var _=r.getSymbolAtLocation(d);return _&&{kind:1,symbol:_};case 2:return{kind:0,candidates:[s.signature],resolvedSignature:s.signature};default:return e.Debug.assertNever(s)}}(D,_,r,p,f);return d.throwIfCancellationRequested(),x?_.runWithCancellationToken(d,(function(e){return 0===x.kind?v(x.candidates,x.resolvedSignature,D,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:[h(e,c,n,m(o),r)],applicableSpan:a,selectedItemIndex:0,argumentIndex:s,argumentCount:i}:void 0}(x.symbol,D,r,e)})):e.isSourceFileJS(r)?function(t,r,n){if(2===t.invocation.kind)return;var i=g(t.invocation),a=e.isPropertyAccessExpression(i)?i.name.text:void 0,o=r.getTypeChecker();return void 0===a?void 0:e.firstDefined(r.getSourceFiles(),(function(r){return e.firstDefined(r.getNamedDeclarations().get(a),(function(e){var i=e.symbol&&o.getTypeOfSymbolAtLocation(e.symbol,e),a=i&&i.getCallSignatures();if(a&&a.length)return o.runWithCancellationToken(n,(function(e){return v(a,a[0],t,r,e,!0)}))}))}))}(D,t,d):void 0}}}},function(e){e[e.Candidate=0]="Candidate",e[e.Type=1]="Type"}(i||(i={})),t.getArgumentInfoForCompletions=function(e,t,r){var n=s(e,t,r);return!n||n.isTypeParameterList||0!==n.invocation.kind?void 0:{invocation:n.invocation.node,argumentCount:n.argumentCount,argumentIndex:n.argumentIndex}};var y=70246400;function v(t,n,i,a,o,s){var c,u=i.isTypeParameterList,l=i.argumentCount,d=i.argumentsSpan,_=i.invocation,p=i.argumentIndex,f=m(_),y=2===_.kind?_.symbol:o.getSymbolAtLocation(g(_))||s&&(null===(c=n.declaration)||void 0===c?void 0:c.symbol),v=y?e.symbolToDisplayParts(o,y,s?a:void 0,void 0):e.emptyArray,h=e.map(t,(function(t){return function(t,n,i,a,o,s){var c=(i?x:b)(t,a,o,s);return e.map(c,(function(i){var s=i.isVariadic,c=i.parameters,u=i.prefix,l=i.suffix,d=r(r([],n,!0),u,!0),_=r(r([],l,!0),function(t,r,n){return e.mapToDisplayParts((function(e){e.writePunctuation(":"),e.writeSpace(" ");var i=n.getTypePredicateOfSignature(t);i?n.writeTypePredicate(i,r,void 0,e):n.writeType(n.getReturnTypeOfSignature(t),r,void 0,e)}))}(t,o,a),!0),p=t.getDocumentationComment(a),f=t.getJsDocTags();return{isVariadic:s,prefixDisplayParts:d,suffixDisplayParts:_,separatorDisplayParts:D,parameters:c,documentation:p,tags:f}}))}(t,v,u,o,f,a)}));0!==p&&e.Debug.assertLessThan(p,l);for(var S=0,T=0,C=0;C1))for(var k=0,A=0,F=E;A=l){S=T+k;break}k++}T+=E.length}e.Debug.assert(-1!==S);var P={items:e.flatMapToMutable(h,e.identity),applicableSpan:d,selectedItemIndex:S,argumentIndex:p,argumentCount:l},w=P.items[S];if(w.isVariadic){var I=e.findIndex(w.parameters,(function(e){return!!e.isRest}));-1t?e.substr(0,t-"...".length)+"...":e}function x(t){var r=e.createPrinter({removeComments:!0});return e.usingSingleLineStringWriter((function(i){var a=l.typeToTypeNode(t,void 0,71286784,i);e.Debug.assertIsDefined(a,"should always get typenode"),r.writeNode(4,a,n,i)}))}}}(e.InlayHints||(e.InlayHints={}))}(c||(c={})),function(e){var t=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function r(t,r,n){var i=e.tryParseRawSourceMap(r);if(i&&i.sources&&i.file&&i.mappings&&(!i.sourcesContent||!i.sourcesContent.some(e.isString)))return e.createDocumentPositionMapper(t,i,n)}e.getSourceMapper=function(t){var r=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames()),n=t.getCurrentDirectory(),i=new e.Map,a=new e.Map;return{tryGetSourcePosition:function t(r){if(!e.isDeclarationFileName(r.fileName))return;if(!c(r.fileName))return;var n=s(r.fileName).getSourcePosition(r);return n&&n!==r?t(n)||n:void 0},tryGetGeneratedPosition:function(i){if(e.isDeclarationFileName(i.fileName))return;var a=c(i.fileName);if(!a)return;var o=t.getProgram();if(o.isSourceOfProjectReferenceRedirect(a.fileName))return;var u=o.getCompilerOptions(),l=e.outFile(u),d=l?e.removeFileExtension(l)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(i.fileName,o.getCompilerOptions(),n,o.getCommonSourceDirectory(),r);if(void 0===d)return;var _=s(d,i.fileName).getGeneratedPosition(i);return _===i?void 0:_},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 d=l(n);s=d&&e.getDocumentPositionMapper({getSourceFileLike:l,getCanonicalFileName:r,log:function(e){return t.log(e)}},n,e.getLineInfo(d.text,e.getLineStarts(d)),(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 d=s&&e.getNormalizedAbsolutePath(s,e.getDirectoryPath(i)),_=0,p=l;_n)&&(t.arguments.length0?e.arrayFrom(n.values()).join(","):""},t.getSymbolDisplayPartsDocumentationAndSymbolKind=function t(a,o,s,c,u,l,d){var _;void 0===l&&(l=e.getMeaningFromLocation(u));var p,f,g,m,y=[],v=[],h=[],D=e.getCombinedLocalAndExportSymbolFlags(o),x=1&l?i(a,o,u):"",b=!1,S=108===u.kind&&e.isInExpressionContext(u),T=!1;if(108===u.kind&&!S)return{displayParts:[e.keywordPart(108)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==x||32&D||2097152&D){"getter"!==x&&"setter"!==x||(x="property");var C=void 0;if(p=S?a.getTypeAtLocation(u):a.getTypeOfSymbolAtLocation(o,u),u.parent&&205===u.parent.kind){var E=u.parent.name;(E===u||E&&0===E.getFullWidth())&&(u=u.parent)}var k=void 0;if(e.isCallOrNewExpression(u)?k=u:(e.isCallExpressionTarget(u)||e.isNewExpressionTarget(u)||u.parent&&(e.isJsxOpeningLikeElement(u.parent)||e.isTaggedTemplateExpression(u.parent))&&e.isFunctionLike(o.valueDeclaration))&&(k=u.parent),k){C=a.getResolvedSignature(k);var A=208===k.kind||e.isCallExpression(k)&&106===k.expression.kind,F=A?p.getConstructSignatures():p.getCallSignatures();if(!C||e.contains(F,C.target)||e.contains(F,C)||(C=F.length?F[0]:void 0),C){switch(A&&32&D?(x="constructor",$(p.symbol,x)):2097152&D?(Z(x="alias"),y.push(e.spacePart()),A&&(4&C.flags&&(y.push(e.keywordPart(126)),y.push(e.spacePart())),y.push(e.keywordPart(103)),y.push(e.spacePart())),Q(o)):$(o,x),x){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(a,p.symbol,c,void 0,5)),y.push(e.lineBreakPart())),A&&(4&C.flags&&(y.push(e.keywordPart(126)),y.push(e.spacePart())),y.push(e.keywordPart(103)),y.push(e.spacePart())),ee(C,F,262144);break;default:ee(C,F)}b=!0,T=F.length>1}}else if(e.isNameOfFunctionDeclaration(u)&&!(98304&D)||134===u.kind&&170===u.parent.kind){var N=u.parent,P=o.declarations&&e.find(o.declarations,(function(e){return e===(134===u.kind?N.parent:N)}));if(P){F=170===N.kind?p.getNonNullableType().getConstructSignatures():p.getNonNullableType().getCallSignatures();C=a.isImplementationOfOverload(N)?F[0]:a.getSignatureFromDeclaration(N),170===N.kind?(x="constructor",$(p.symbol,x)):$(173!==N.kind||2048&p.symbol.flags||4096&p.symbol.flags?o:p.symbol,x),C&&ee(C,F),b=!0,T=F.length>1}}}if(32&D&&!b&&!S&&(Y(),e.getDeclarationOfKind(o,225)?Z("local class"):y.push(e.keywordPart(84)),y.push(e.spacePart()),Q(o),te(o,s)),64&D&&2&l&&(G(),y.push(e.keywordPart(118)),y.push(e.spacePart()),Q(o),te(o,s)),524288&D&&2&l&&(G(),y.push(e.keywordPart(151)),y.push(e.spacePart()),Q(o),te(o,s),y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),e.addRange(y,e.typeToDisplayParts(a,a.getDeclaredTypeOfSymbol(o),c,8388608))),384&D&&(G(),e.some(o.declarations,(function(t){return e.isEnumDeclaration(t)&&e.isEnumConst(t)}))&&(y.push(e.keywordPart(85)),y.push(e.spacePart())),y.push(e.keywordPart(92)),y.push(e.spacePart()),Q(o)),1536&D&&!S){G();var w=(q=e.getDeclarationOfKind(o,260))&&q.name&&79===q.name.kind;y.push(e.keywordPart(w?142:141)),y.push(e.spacePart()),Q(o)}if(262144&D&&2&l)if(G(),y.push(e.punctuationPart(20)),y.push(e.textPart("type parameter")),y.push(e.punctuationPart(21)),y.push(e.spacePart()),Q(o),o.parent)X(),Q(o.parent,c),te(o.parent,c);else{var I=e.getDeclarationOfKind(o,162);if(void 0===I)return e.Debug.fail();if(q=I.parent)if(e.isFunctionLikeKind(q.kind)){X();C=a.getSignatureFromDeclaration(q);174===q.kind?(y.push(e.keywordPart(103)),y.push(e.spacePart())):173!==q.kind&&q.name&&Q(q.symbol),e.addRange(y,e.signatureToDisplayParts(a,C,s,32))}else 258===q.kind&&(X(),y.push(e.keywordPart(151)),y.push(e.spacePart()),Q(q.symbol),te(q.symbol,s))}if(8&D&&(x="enum member",$(o,"enum member"),297===(null==(q=null===(_=o.declarations)||void 0===_?void 0:_[0])?void 0:q.kind))){var O=a.getConstantValue(q);void 0!==O&&(y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),y.push(e.displayPart(e.getTextOfConstantValue(O),"number"==typeof O?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&o.flags){if(G(),!b){var M=a.getAliasedSymbol(o);if(M!==o&&M.declarations&&M.declarations.length>0){var L=M.declarations[0],R=e.getNameOfDeclaration(L);if(R){var B=e.isModuleWithStringLiteralName(L)&&e.hasSyntacticModifier(L,2),j="default"!==o.name&&!B,J=t(a,M,e.getSourceFileOfNode(L),L,R,l,j?o:M);y.push.apply(y,J.displayParts),y.push(e.lineBreakPart()),g=J.documentation,m=J.tags}else g=M.getContextualDocumentationComment(L,a),m=M.getJsDocTags(a)}}if(o.declarations)switch(o.declarations[0].kind){case 263:y.push(e.keywordPart(93)),y.push(e.spacePart()),y.push(e.keywordPart(142));break;case 270:y.push(e.keywordPart(93)),y.push(e.spacePart()),y.push(e.keywordPart(o.declarations[0].isExportEquals?63:88));break;case 274:y.push(e.keywordPart(93));break;default:y.push(e.keywordPart(100))}y.push(e.spacePart()),Q(o),e.forEach(o.declarations,(function(t){if(264===t.kind){var r=t;if(e.isExternalModuleImportEqualsDeclaration(r))y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),y.push(e.keywordPart(145)),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=a.getSymbolAtLocation(r.moduleReference);n&&(y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),Q(n,c))}return!0}}))}if(!b)if(""!==x){if(p)if(S?(G(),y.push(e.keywordPart(108))):$(o,x),"property"===x||"JSX attribute"===x||3&D||"local var"===x||S){if(y.push(e.punctuationPart(58)),y.push(e.spacePart()),p.symbol&&262144&p.symbol.flags){var K=e.mapToDisplayParts((function(t){var n=a.typeParameterToDeclaration(p,c,r);H().writeNode(4,n,e.getSourceFileOfNode(e.getParseTreeNode(c)),t)}));e.addRange(y,K)}else e.addRange(y,e.typeToDisplayParts(a,p,c));if(o.target&&o.target.tupleLabelDeclaration){var z=o.target.tupleLabelDeclaration;e.Debug.assertNode(z.name,e.isIdentifier),y.push(e.spacePart()),y.push(e.punctuationPart(20)),y.push(e.textPart(e.idText(z.name))),y.push(e.punctuationPart(21))}}else if(16&D||8192&D||16384&D||131072&D||98304&D||"method"===x){(F=p.getNonNullableType().getCallSignatures()).length&&(ee(F[0],F),T=F.length>1)}}else x=n(a,o,u);if(0!==v.length||T||(v=o.getContextualDocumentationComment(c,a)),0===v.length&&4&D&&o.parent&&o.declarations&&e.forEach(o.parent.declarations,(function(e){return 303===e.kind})))for(var U=0,V=o.declarations;U0))break}}return 0!==h.length||T||(h=o.getJsDocTags(a)),0===v.length&&g&&(v=g),0===h.length&&m&&(h=m),{displayParts:y,documentation:v,symbolKind:x,tags:0===h.length?void 0:h};function H(){return f||(f=e.createPrinter({removeComments:!0})),f}function G(){y.length&&y.push(e.lineBreakPart()),Y()}function Y(){d&&(Z("alias"),y.push(e.spacePart()))}function X(){y.push(e.spacePart()),y.push(e.keywordPart(101)),y.push(e.spacePart())}function Q(t,r){d&&t===o&&(t=d);var n=e.symbolToDisplayParts(a,t,r||s,void 0,7);e.addRange(y,n),16777216&o.flags&&y.push(e.punctuationPart(57))}function $(t,r){G(),r&&(Z(r),t&&!e.some(t.declarations,(function(t){return e.isArrowFunction(t)||(e.isFunctionExpression(t)||e.isClassExpression(t))&&!t.name}))&&(y.push(e.spacePart()),Q(t)))}function Z(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 ee(t,r,n){void 0===n&&(n=0),e.addRange(y,e.signatureToDisplayParts(a,t,c,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))),v=t.getDocumentationComment(a),h=t.getJsDocTags(),r.length>1&&0===v.length&&0===h.length&&(v=r[0].getDocumentationComment(a),h=r[0].getJsDocTags())}function te(t,n){var i=e.mapToDisplayParts((function(i){var o=a.symbolToTypeParameterDeclarations(t,n,r);H().writeList(53776,o,e.getSourceFileOfNode(e.getParseTreeNode(n)),i)}));e.addRange(y,i)}}}(e.SymbolDisplay||(e.SymbolDisplay={}))}(c||(c={})),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>=5;return r}(p,_),0,n),a[c]=(d=1+((u=p)>>(l=_)&s),e.Debug.assert((d&s)===d,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),u&~(s<=r.pos?t.pos:a.end:t.pos}(o,r,n),r.end,(function(s){return _(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 _(r,n,i,a,o,s,c,u,l){var d,_,f,g,m=s.options,y=s.getRules,v=s.host,h=new t.FormattingContext(l,c,m),D=-1,x=[];if(o.advance(),o.isOnToken()){var b=l.getLineAndCharacterOfPosition(n.getStart(l)).line,S=b;n.decorators&&(S=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,l)).line),function n(i,a,s,c,p,y){if(!e.rangeOverlapsWithStartEnd(r,i.getStart(l),i.getEnd()))return;var v=E(i,s,p,y),h=a;e.forEachChild(i,(function(e){S(e,-1,i,v,s,c,!1)}),(function(e){T(e,i,s,v)}));for(;o.isOnToken();){var x=o.readTokenInfo(i);if(x.token.end>i.end)break;C(x,i,v,i)}if(!i.parent&&o.isOnEOF()){var b=o.readEOFTokenRange();b.end<=i.end&&d&&N(b,l.getLineAndCharacterOfPosition(b.pos).line,i,d,f,_,a,v)}function S(a,s,c,u,d,_,p,f){var y=a.getStart(l),v=l.getLineAndCharacterOfPosition(y).line,x=v;a.decorators&&(x=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(a,l)).line);var b=-1;if(p&&e.rangeContainsRange(r,c)&&(b=function(r,n,i,a,o){if(e.rangeOverlapsWithStartEnd(a,r,n)||e.rangeContainsStartEnd(a,r,n)){if(-1!==o)return o}else{var s=l.getLineAndCharacterOfPosition(r).line,c=e.getLineStartPositionForPosition(r,l),u=t.SmartIndenter.findFirstNonWhitespaceColumn(c,r,l,m);if(s!==i||r===u){var d=t.SmartIndenter.getBaseIndentation(m);return d>u?d:u}}return-1}(y,a.end,d,r,s),-1!==b&&(s=b)),!e.rangeOverlapsWithStartEnd(r,a.pos,a.end))return a.endy){S.token.pos>y&&o.skipToStartOf(a);break}C(S,i,u,i)}if(!o.isOnToken())return s;if(e.isToken(a)){var S=o.readTokenInfo(a);if(11!==a.kind)return e.Debug.assert(S.token.end===a.end,"Token end is child end"),C(S,i,u,a),s}var T=164===a.kind?v:_,E=function(e,r,n,i,a,o){var s=t.SmartIndenter.shouldIndentChildNode(m,e)?m.indentSize:0;return o===r?{indentation:r===g?D:a.getIndentation(),delta:Math.min(m.indentSize,a.getDelta(e)+s)}:-1===n?20===e.kind&&r===g?{indentation:D,delta:a.getDelta(e)}:t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,r,l)||t.SmartIndenter.childIsUnindentedBranchOfConditionalExpression(i,e,r,l)||t.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(i,e,r,l)?{indentation:a.getIndentation(),delta:s}:{indentation:a.getIndentation()+a.getDelta(e),delta:s}:{indentation:n,delta:s}}(a,v,b,i,u,T);return n(a,h,v,x,E.indentation,E.delta),h=i,f&&203===c.kind&&-1===s&&(s=E.indentation),s}function T(r,n,a,s){e.Debug.assert(e.isNodeArray(r));var c=function(e,t){switch(e.kind){case 170:case 255:case 212:case 168:case 167:case 213:if(e.typeParameters===t)return 29;if(e.parameters===t)return 20;break;case 207:case 208:if(e.typeArguments===t)return 29;if(e.arguments===t)return 20;break;case 177:if(e.typeArguments===t)return 29;break;case 181:return 18}return 0}(n,r),u=s,d=a;if(0!==c)for(;o.isOnToken();){if((v=o.readTokenInfo(n)).token.end>r.pos)break;if(v.token.kind===c){d=l.getLineAndCharacterOfPosition(v.token.pos).line,C(v,n,s,n);var _=void 0;if(-1!==D)_=D;else{var p=e.getLineStartPositionForPosition(v.token.pos,l);_=t.SmartIndenter.findFirstNonWhitespaceColumn(p,v.token.pos,l,m)}u=E(n,a,_,m.indentSize)}else C(v,n,s,n)}for(var f=-1,g=0;g0){var S=p(b,m);R(D,x.character,S)}else L(D,x.character)}}}else i||P(r.pos,n,!1)}function I(t,r,n){for(var i=t;io)){var s=O(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(l.text.charCodeAt(s-1))),L(s,o+1-s))}}}function O(t,r){for(var n=r;n>=t&&e.isWhiteSpaceSingleLine(l.text.charCodeAt(n));)n--;return n!==r?n+1:-1}function M(e,t,r){I(l.getLineAndCharacterOfPosition(e).line,l.getLineAndCharacterOfPosition(t).line+1,r)}function L(t,r){r&&x.push(e.createTextChangeFromStartLength(t,r,""))}function R(t,r,n){(r||n)&&x.push(e.createTextChangeFromStartLength(t,r,n))}}function p(t,r){if((!i||i.tabSize!==r.tabSize||i.indentSize!==r.indentSize)&&(i={tabSize:r.tabSize,indentSize:r.indentSize},a=o=void 0),r.convertTabsToSpaces){var n=void 0,s=Math.floor(t/r.indentSize),c=t%r.indentSize;return o||(o=[]),void 0===o[s]?(n=e.repeatString(" ",r.indentSize*s),o[s]=n):n=o[s],c?n+e.repeatString(" ",c):n}var u=Math.floor(t/r.tabSize),l=t-u*r.tabSize,d=void 0;return a||(a=[]),void 0===a[u]?a[u]=d=e.repeatString("\t",u):d=a[u],l?d+e.repeatString(" ",l):d}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--,d({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 d({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 d({pos:0,end:e.text.length},e,t,0)},t.formatSelection=function(t,r,n,i){return d({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 _(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&&rr.end}var h=s(g,e,i),D=h.line===t.line||_(g,e,t.line,i);if(y){var x=null===(f=p(e,i))||void 0===f?void 0:f[0],S=m(e,i,u,!!x&&l(x,i).line>h.line);if(-1!==S)return S+n;if(-1!==(S=c(e,g,t,D,i,u)))return S+n}b(u,g,e,i,o)&&!D&&(n+=u.indentSize);var T=d(g,e,t.line,i);g=(e=g).parent,t=T?i.getLineAndCharacterOfPosition(e.getStart(i)):h}return n+a(u)}function s(e,t,r){var n=p(t,r),i=n?n.pos:e.getStart(r);return r.getLineAndCharacterOfPosition(i)}function c(t,r,n,i,a,o){return!e.isDeclaration(t)&&!e.isStatementButNotDeclaration(t)||303!==r.kind&&i?-1:v(n,a,o)}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 d(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 _(t,r,n,i){if(238===t.kind&&t.elseStatement===r){var a=e.findChildOfKind(t,91,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 177:return a(n.typeArguments);case 204:return a(n.properties);case 203:case 268:case 272:case 200:case 201:return a(n.elements);case 181:return a(n.members);case 255:case 212:case 213:case 168:case 167:case 173:case 170:case 179:case 174:return a(n.typeParameters)||a(n.parameters);case 256:case 225:case 257:case 258:case 342:return a(n.typeParameters);case 208:case 207:return a(n.typeArguments)||a(n.arguments);case 254:return a(n.declarations)}function a(a){return a&&e.rangeContainsStartEnd(function(e,t,r){for(var n=e.getChildren(r),i=1;i=0&&r=0;o--)if(27!==t[o].kind){if(n.getLineAndCharacterOfPosition(t[o].end).line!==a.line)return v(a,n,i);a=l(t[o],n)}return-1}function v(e,t,r){var n=t.getPositionOfLineAndCharacter(e.line,0);return D(n,n+e.character,t,r)}function h(t,r,n,i){for(var a=0,o=0,s=t;sn.text.length)return a(i);if(i.indentStyle===e.IndentStyle.None)return 0;var c=e.findPrecedingToken(r,n,void 0,!0),d=t.getRangeOfEnclosingComment(n,r,c||null);if(d&&3===d.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 D(e.getStartPositionOfLine(o,t),r,t,n);var s=e.getStartPositionOfLine(a,t),c=h(s,r,t,n),u=c.column,l=c.character;return 0===u?u:42===t.text.charCodeAt(s+l)?u-1:u}(n,r,i,d);if(!c)return a(i);if(e.isStringOrRegularExpressionOrTemplateLiteral(c.kind)&&c.getStart(n)<=r&&r0;){var a=t.text.charCodeAt(i);if(!e.isWhiteSpaceLike(a))break;i--}return D(e.getLineStartPositionForPosition(i,t),i,t,n)}(n,r,i);if(27===c.kind&&220!==c.parent.kind){var p=function(t,r,n){var i=e.findListItemInfo(t);return i&&i.listItemIndex>0?y(i.list.getChildren(),i.listItemIndex-1,r,n):-1}(c,n,i);if(-1!==p)return p}var v=function(e,t,r){return t&&f(e,e,t,r)}(r,c.parent,n);return v&&!e.rangeContainsRange(v,c)?g(v,n,i)+i.indentSize:function(t,r,n,i,s,c){for(var d,_=n;_;){if(e.positionBelongsToNode(_,r,t)&&b(c,_,d,t,!0)){var p=l(_,t),f=u(n,_,i,t);return o(_,p,void 0,0!==f?s&&2===f?c.indentSize:0:i!==p.line?c.indentSize:0,t,!0,c)}var g=m(_,t,c,!0);if(-1!==g)return g;d=_,_=_.parent}return a(c)}(n,r,c,_,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=d,r.childStartsOnTheSameLineWithElseInIfStatement=_,r.childIsUnindentedBranchOfConditionalExpression=function(t,r,n,i){if(e.isConditionalExpression(t)&&(r===t.whenTrue||r===t.whenFalse)){var a=e.getLineAndCharacterOfPosition(i,t.condition.end).line;if(r===t.whenTrue)return n===a;var o=l(t.whenTrue,i).line,s=e.getLineAndCharacterOfPosition(i,t.whenTrue.end).line;return a===o&&s===n}return!1},r.argumentStartsOnSameLineAsPreviousArgument=function(t,r,n,i){if(e.isCallOrNewExpression(t)){if(!t.arguments)return!1;var a=e.find(t.arguments,(function(e){return e.pos===r.pos}));if(!a)return!1;var o=t.arguments.indexOf(a);if(0===o)return!1;var s=t.arguments[o-1];if(n===e.getLineAndCharacterOfPosition(i,s.getEnd()).line)return!0}return!1},r.getContainingList=p,r.findFirstNonWhitespaceCharacterAndColumn=h,r.findFirstNonWhitespaceColumn=D,r.nodeWillIndentChild=x,r.shouldIndentChildNode=b})((t=e.formatting||(e.formatting={})).SmartIndenter||(t.SmartIndenter={}))}(c||(c={})),function(e){!function(t){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",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine"}(c=t.LeadingTriviaOption||(t.LeadingTriviaOption={})),function(e){e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include"}(u=t.TrailingTriviaOption||(t.TrailingTriviaOption={}));var d,_={leadingTriviaOption:c.Exclude,trailingTriviaOption:u.Exclude};function p(e,t,r,n){return{pos:f(e,t,n),end:m(e,r,n)}}function f(t,r,n,i){var a,o;void 0===i&&(i=!1);var s=n.leadingTriviaOption;if(s===c.Exclude)return r.getStart(t);if(s===c.StartLine){var u=r.getStart(t),d=e.getLineStartPositionForPosition(u,t);return e.rangeContainsPosition(r,d)?d:u}if(s===c.JSDoc){var _=e.getJSDocCommentRanges(r,t.text);if(null==_?void 0:_.length)return e.getLineStartPositionForPosition(_[0].pos,t)}var p=r.getFullStart(),f=r.getStart(t);if(p===f)return f;var g=e.getLineStartPositionForPosition(p,t);if(e.getLineStartPositionForPosition(f,t)===g)return s===c.IncludeAll?p:f;if(i){var m=(null===(a=e.getLeadingCommentRanges(t.text,p))||void 0===a?void 0:a[0])||(null===(o=e.getTrailingCommentRanges(t.text,p))||void 0===o?void 0:o[0]);if(m)return e.skipTrivia(t.text,m.end,!0,!0)}var y=p>0?1:0,v=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,g)+y,t);return v=l(t.text,v),e.getStartPositionOfLine(e.getLineOfLocalPosition(t,v),t)}function g(t,r,n){var i=r.end;if(n.trailingTriviaOption===u.Include){var a=e.getTrailingCommentRanges(t.text,i);if(a)for(var o=e.getLineOfLocalPosition(t,r.end),s=0,c=a;so)break;if(e.getLineOfLocalPosition(t,l.end)>o)return e.skipTrivia(t.text,l.end,!0,!0)}}}function m(t,r,n){var i,a=r.end,o=n.trailingTriviaOption;if(o===u.Exclude)return a;if(o===u.ExcludeWhitespace){var s=e.concatenate(e.getTrailingCommentRanges(t.text,a),e.getLeadingCommentRanges(t.text,a)),c=null===(i=null==s?void 0:s[s.length-1])||void 0===i?void 0:i.end;return c||a}var l=g(t,r,n);if(l)return l;var d=e.skipTrivia(t.text,a,!0);return d===a||o!==u.Include&&!e.isLineBreak(t.text.charCodeAt(d-1))?a:d}function y(e,t){return!!t&&!!e.parent&&(27===t.kind||26===t.kind&&204===e.parent.kind)}!function(e){e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",e[e.Text=3]="Text"}(d||(d={})),t.isThisTypeAnnotatable=function(t){return e.isFunctionExpression(t)||e.isFunctionDeclaration(t)};var v,h,D=function(){function t(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new e.Map,this.deletedNodes=[]}return t.fromContext=function(r){return new t(e.getNewLineOrDefaultFromHost(r.host,r.formatContext.options),r.formatContext)},t.with=function(e,r){var n=t.fromContext(e);return r(n),n.getChanges()},t.prototype.pushRaw=function(t,r){e.Debug.assertEqual(t.fileName,r.fileName);for(var n=0,i=r.textChanges;n=t.getLineAndCharacterOfPosition(u.range.end).line+2)break}if(t.statements.length)if(void 0===l&&(l=t.getLineAndCharacterOfPosition(t.statements[0].getStart()).line),l",joiner:", "})},t.prototype.getOptionsForInsertNodeBefore=function(t,r,n){return e.isStatement(t)||e.isClassElement(t)?{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(t)?{suffix:", "}:e.isParameter(t)?e.isParameter(r)?{suffix:", "}:{}:e.isStringLiteral(t)&&e.isImportDeclaration(t.parent)||e.isNamedImports(t)?{suffix:", "}:e.isImportSpecifier(t)?{suffix:","+(n?this.newLineCharacter:" ")}:e.Debug.failBadSyntaxKind(t)},t.prototype.insertNodeAtConstructorStart=function(t,n,i){var a=e.firstOrUndefined(n.body.statements);a&&n.body.multiLine?this.insertNodeBefore(t,a,i):this.replaceConstructorBody(t,n,r([i],n.body.statements,!0))},t.prototype.insertNodeAtConstructorStartAfterSuperCall=function(t,n,i){var a=e.find(n.body.statements,(function(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)}));a&&n.body.multiLine?this.insertNodeAfter(t,a,i):this.replaceConstructorBody(t,n,r(r([],n.body.statements,!0),[i],!1))},t.prototype.insertNodeAtConstructorEnd=function(t,n,i){var a=e.lastOrUndefined(n.body.statements);a&&n.body.multiLine?this.insertNodeAfter(t,a,i):this.replaceConstructorBody(t,n,r(r([],n.body.statements,!0),[i],!1))},t.prototype.replaceConstructorBody=function(t,r,n){this.replaceNode(t,r.body,e.factory.createBlock(n,!0))},t.prototype.insertNodeAtEndOfScope=function(t,r,n){var i=f(t,r.getLastToken(),{});this.insertNodeAt(t,i,n,{prefix:e.isLineBreak(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},t.prototype.insertNodeAtClassStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},t.prototype.insertNodeAtObjectStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},t.prototype.insertNodeAtStartWorker=function(e,t,r){var n,i=null!==(n=this.guessIndentationFromExistingMembers(e,t))&&void 0!==n?n:this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,b(t).pos,r,this.getInsertNodeAtStartInsertOptions(e,t,i))},t.prototype.guessIndentationFromExistingMembers=function(t,r){for(var n,i=r,a=0,o=b(r);a=0;n--){var i=r[n],a=i.span,o=i.newText;t="".concat(t.substring(0,a.start)).concat(o).concat(t.substring(e.textSpanEnd(a)))}return t}function T(t){var r=e.visitEachChild(t,T,e.nullTransformationContext,C,T),n=e.nodeIsSynthesized(r)?r:Object.create(r);return e.setTextRangePosEnd(n,i(t),o(t)),n}function C(t,r,n,a,s){var c=e.visitNodes(t,r,n,a,s);if(!c)return c;var u=c===t?e.factory.createNodeArray(c.slice(0)):c;return e.setTextRangePosEnd(u,i(t),o(t)),u}function E(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 A(t,r,n,i){var a=e.Debug.checkDefined(e.formatting.SmartIndenter.getContainingList(i,n)),o=e.indexOfNode(a,i);e.Debug.assert(-1!==o),1!==a.length?(e.Debug.assert(!r.has(i),"Deleting a node twice"),r.add(i),t.deleteRange(n,{pos:x(n,i),end:o===a.length-1?m(n,i,{}):x(n,a[o+1])})):k(t,n,i)}t.ChangeTracker=D,t.getNewFileText=function(e,t,r,n){return v.newFileChangesWorker(void 0,t,e,r,n)},function(t){function r(t,r,n,a,o){var s=n.map((function(e){return 4===e?"":i(e,t,a).text})).join(a),c=e.createSourceFile("any file name",s,99,!0,r);return S(s,e.formatting.formatDocument(c,o))+a}function i(t,r,n){var i=function(t){var r=0,n=e.createTextWriter(t),i=function(e){e&&a(e,r)},o=function(e){e&&s(e,r)},c=function(e){e&&a(e,r)},u=function(e){e&&s(e,r)};function l(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}}function d(e){n.write(e),l(e,!1)}function _(e){n.writeComment(e)}function p(e){n.writeKeyword(e),l(e,!1)}function f(e){n.writeOperator(e),l(e,!1)}function g(e){n.writePunctuation(e),l(e,!1)}function m(e){n.writeTrailingSemicolon(e),l(e,!1)}function y(e){n.writeParameter(e),l(e,!1)}function v(e){n.writeProperty(e),l(e,!1)}function h(e){n.writeSpace(e),l(e,!1)}function D(e){n.writeStringLiteral(e),l(e,!1)}function x(e,t){n.writeSymbol(e,t),l(e,!1)}function b(e){n.writeLine(e)}function S(){n.increaseIndent()}function T(){n.decreaseIndent()}function C(){return n.getText()}function E(e){n.rawWrite(e),l(e,!1)}function k(e){n.writeLiteral(e),l(e,!0)}function A(){return n.getTextPos()}function F(){return n.getLine()}function N(){return n.getColumn()}function P(){return n.getIndent()}function w(){return n.isAtStartOfLine()}function I(){n.clear(),r=0}return{onBeforeEmitNode:i,onAfterEmitNode:o,onBeforeEmitNodeArray:function(e){e&&a(e,r)},onAfterEmitNodeArray:function(e){e&&s(e,r)},onBeforeEmitToken:c,onAfterEmitToken:u,write:d,writeComment:_,writeKeyword:p,writeOperator:f,writePunctuation:g,writeTrailingSemicolon:m,writeParameter:y,writeProperty:v,writeSpace:h,writeStringLiteral:D,writeSymbol:x,writeLine:b,increaseIndent:S,decreaseIndent:T,getText:C,rawWrite:E,writeLiteral:k,getTextPos:A,getLine:F,getColumn:N,getIndent:P,isAtStartOfLine:w,hasTrailingComment:function(){return n.hasTrailingComment()},hasTrailingWhitespace:function(){return n.hasTrailingWhitespace()},clear:I}}(n),o=e.getNewLineKind(n);return e.createPrinter({newLine:o,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},i).writeNode(4,t,r,i),{text:i.getText(),node:T(t)}}t.getTextChangesFromChanges=function(t,r,a,o){return e.mapDefined(e.group(t,(function(e){return e.sourceFile.path})),(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"".concat(JSON.stringify(c[t].range)," and ").concat(JSON.stringify(c[t+1].range))}))},l=0;l0?{fileName:s.fileName,textChanges:_}:void 0}))},t.newFileChanges=function(t,n,i,a,o){var s=r(t,e.getScriptKindFromFileName(n),i,a,o);return{fileName:n,textChanges:[e.createTextChange(e.createTextSpan(0,0),s)],isNewFile:!0}},t.newFileChangesWorker=r,t.getNonformattedText=i}(v||(v={})),t.applyChanges=S,t.isValidLocationToAddComment=E,function(t){function r(t,r,n){if(n.parent.name){var i=e.Debug.checkDefined(e.getTokenAtPosition(r,n.pos-1));t.deleteRange(r,{pos:i.getStart(r),end:n.end})}else{k(t,r,e.getAncestor(n,265))}}t.deleteDeclaration=function(t,n,i,a){switch(a.kind){case 163:var o=a.parent;e.isArrowFunction(o)&&1===o.parameters.length&&!e.findChildOfKind(o,20,i)?t.replaceNodeWithText(i,a,"()"):A(t,n,i,a);break;case 265:case 264:k(t,i,a,{leadingTriviaOption:i.imports.length&&a===e.first(i.imports).parent||a===e.find(i.statements,e.isAnyImportSyntax)?c.Exclude:e.hasJSDocNodes(a)?c.JSDoc:c.StartLine});break;case 202:var s=a.parent;201===s.kind&&a!==e.last(s.elements)?k(t,i,a):A(t,n,i,a);break;case 253:!function(t,r,n,i){var a=i.parent;if(291===a.kind)return void t.deleteNodeRange(n,e.findChildOfKind(a,20,n),e.findChildOfKind(a,21,n));if(1!==a.declarations.length)return void A(t,r,n,i);var o=a.parent;switch(o.kind){case 243:case 242:t.replaceNode(n,i,e.factory.createObjectLiteralExpression());break;case 241:k(t,n,a);break;case 236:k(t,n,o,{leadingTriviaOption:e.hasJSDocNodes(o)?c.JSDoc:c.StartLine});break;default:e.Debug.assertNever(o)}}(t,n,i,a);break;case 162:A(t,n,i,a);break;case 269:var l=a.parent;1===l.elements.length?r(t,i,l):A(t,n,i,a);break;case 267:r(t,i,a);break;case 26:k(t,i,a,{trailingTriviaOption:u.Exclude});break;case 98:k(t,i,a,{leadingTriviaOption:c.Exclude});break;case 256:case 255:k(t,i,a,{leadingTriviaOption:e.hasJSDocNodes(a)?c.JSDoc:c.StartLine});break;default:a.parent?e.isImportClause(a.parent)&&a.parent.name===a?function(t,r,n){if(n.namedBindings){var i=n.name.getStart(r),a=e.getTokenAtPosition(r,n.name.end);if(a&&27===a.kind){var o=e.skipTrivia(r.text,a.end,!1,!0);t.deleteRange(r,{pos:i,end:o})}else k(t,r,n.name)}else k(t,r,n.parent)}(t,i,a.parent):e.isCallExpression(a.parent)&&e.contains(a.parent.arguments,a)?A(t,n,i,a):k(t,i,a):k(t,i,a)}}}(h||(h={})),t.deleteNode=k}(e.textChanges||(e.textChanges={}))}(c||(c={})),function(e){!function(t){var i=e.createMultiMap(),a=new e.Map;function s(e,t,r,n,i,a){return{fixName:e,description:t,changes:r,fixId:n,fixAllDescription:i,commands:a?[a]:void 0}}function c(e,t){return{changes:e,commands:t}}function u(t,r,n){for(var i=0,a=l(t);i1)break}var l=a<2;return function(e){var t=e.fixId,r=e.fixAllDescription,i=o(e,["fixId","fixAllDescription"]);return l?i:n(n({},i),{fixId:t,fixAllDescription:r})}}(i,r))}))},t.getAllFixes=function(t){return a.get(e.cast(t.fixId,e.isString)).getAllCodeActions(t)},t.createCombinedCodeActions=c,t.createFileTextChanges=function(e,t){return{fileName:e,textChanges:t}},t.codeFixAll=function(t,r,n){var i=[],a=e.textChanges.ChangeTracker.with(t,(function(e){return u(t,r,(function(t){return n(e,t,i)}))}));return c(a,0===i.length?void 0:i)},t.eachDiagnostic=u}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){var t,r;t=e.refactor||(e.refactor={}),r=new e.Map,t.registerRefactor=function(e,t){r.set(e,t)},t.getApplicableRefactors=function(n){return e.arrayFrom(e.flatMapIterator(r.values(),(function(e){var r;return n.cancellationToken&&n.cancellationToken.isCancellationRequested()||!(null===(r=e.kinds)||void 0===r?void 0:r.some((function(e){return t.refactorKindBeginsWith(e,n.kind)})))?void 0:e.getAvailableActions(n)})))},t.getEditsForRefactor=function(e,t,n){var i=r.get(t);return i&&i.getEditsForAction(e,n)}}(c||(c={})),function(e){!function(t){var r="addConvertToUnknownForNonOverlappingTypes",n=[e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=e.Debug.checkDefined(e.findAncestor(i,(function(t){return e.isAsExpression(t)||e.isTypeAssertionExpression(t)})),"Expected to find an assertion expression"),o=e.isAsExpression(a)?e.factory.createAsExpression(a.expression,e.factory.createKeywordTypeNode(154)):e.factory.createTypeAssertion(e.factory.createKeywordTypeNode(154),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={}))}(c||(c={})),function(e){var t;(t=e.codefix||(e.codefix={})).registerCodeFix({errorCodes:[e.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,e.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(r){var n=r.sourceFile,i=e.textChanges.ChangeTracker.with(r,(function(t){var r=e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([]),void 0);t.insertNodeAtEndOfScope(n,n,r)}));return[t.createCodeFixActionWithoutFixAll("addEmptyExportDeclaration",i,e.Diagnostics.Add_export_to_make_this_file_into_a_module)]}})}(c||(c={})),function(e){!function(t){var r="addMissingAsync",n=[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_comparable_to_type_1.code];function i(n,i,a,o){var s=a((function(t){return function(t,r,n,i){if(i&&i.has(e.getNodeId(n)))return;null==i||i.add(e.getNodeId(n));var a=e.factory.updateModifiers(e.getSynthesizedDeepClone(n,!0),e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(256|e.getSyntacticModifierFlags(n))));t.replaceNode(r,n,a)}(t,n.sourceFile,i,o)}));return t.createCodeFixAction(r,s,e.Diagnostics.Add_async_modifier_to_containing_function,r,e.Diagnostics.Add_all_missing_async_modifiers)}function a(t,r){if(r){var n=e.getTokenAtPosition(t,r.start),i=e.findAncestor(n,(function(n){return n.getStart(t)e.textSpanEnd(r)?"quit":(e.isArrowFunction(n)||e.isMethodDeclaration(n)||e.isFunctionExpression(n)||e.isFunctionDeclaration(n))&&e.textSpansEqual(r,e.createTextSpanFromNode(n,t))}));return i}}t.registerCodeFix({fixIds:[r],errorCodes:n,getCodeActions:function(t){var r=t.sourceFile,n=t.errorCode,o=t.cancellationToken,s=t.program,c=t.span,u=e.find(s.getDiagnosticsProducingTypeChecker().getDiagnostics(r,o),function(t,r){return function(n){var i=n.start,a=n.length,o=n.relatedInformation,s=n.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},t)&&s===r&&!!o&&e.some(o,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}))}}(c,n)),l=a(r,u&&u.relatedInformation&&e.find(u.relatedInformation,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})));if(l){return[i(t,l,(function(r){return e.textChanges.ChangeTracker.with(t,r)}))]}},getAllCodeActions:function(r){var o=r.sourceFile,s=new e.Set;return t.codeFixAll(r,n,(function(t,n){var c=n.relatedInformation&&e.find(n.relatedInformation,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})),u=a(o,c);if(u){return i(r,u,(function(e){return e(t),[]}),s)}}))}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){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=r([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,i],a,!0);function s(t,r,n,i,a){var o=e.getFixableErrorSpanExpression(t,n);return o&&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(o)?o:void 0}function c(r,n,i,a,s,c){var u=r.sourceFile,_=r.program,p=r.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];a0)return[t.createCodeFixAction(r,a,e.Diagnostics.Add_const_to_unresolved_variable,r,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[r],getAllCodeActions:function(r){var a=new e.Set;return t.codeFixAll(r,n,(function(e,t){return i(e,t.file,t.start,r.program,a)}))}})}(e.codefix||(e.codefix={}))}(c||(c={})),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;166!==o.kind||i&&!e.tryAddToSet(i,o)||t.insertModifierBefore(r,135,o)}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Prefix_with_declare,r,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[r],getAllCodeActions:function(r){var a=new e.Set;return t.codeFixAll(r,n,(function(e,t){return i(e,t.file,t.start,a)}))}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var r="addMissingInvocationForDecorator",n=[e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=e.findAncestor(i,e.isDecorator);e.Debug.assert(!!a,"Expected position to be owned by a decorator.");var o=e.factory.createCallExpression(a.expression,void 0,void 0);t.replaceNode(r,a.expression,o)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));return[t.createCodeFixAction(r,a,e.Diagnostics.Call_decorator_expression,r,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t.start)}))}})}(e.codefix||(e.codefix={}))}(c||(c={})),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),a=i.parent;if(!e.isParameter(a))return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(i.kind));var o=a.parent.parameters.indexOf(a);e.Debug.assert(!a.type,"Tried to add a parameter name to a parameter that already had one."),e.Debug.assert(o>-1,"Parameter not found in parent parameter list.");var s=e.factory.createTypeReferenceNode(a.name,void 0),c=e.factory.createParameterDeclaration(void 0,a.modifiers,a.dotDotDotToken,"arg"+o,a.questionToken,a.dotDotDotToken?e.factory.createArrayTypeNode(s):s,a.initializer);t.replaceNode(r,a,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.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={}))}(c||(c={})),function(e){!function(t){var n="addOptionalPropertyUndefined",i=[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];function a(t,r){var n;if(t){if(e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind)return{source:t.parent.right,target:t.parent.left};if(e.isVariableDeclaration(t.parent)&&t.parent.initializer)return{source:t.parent.initializer,target:t.parent.name};if(e.isCallExpression(t.parent)){var i=r.getSymbolAtLocation(t.parent.expression);if(!(null==i?void 0:i.valueDeclaration)||!e.isFunctionLikeKind(i.valueDeclaration.kind))return;if(!e.isExpression(t))return;var o=t.parent.arguments.indexOf(t);if(-1===o)return;var s=i.valueDeclaration.parameters[o].name;if(e.isIdentifier(s))return{source:t,target:s}}else if(e.isPropertyAssignment(t.parent)&&e.isIdentifier(t.parent.name)||e.isShorthandPropertyAssignment(t.parent)){var c=a(t.parent.parent,r);if(!c)return;var u=r.getPropertyOfType(r.getTypeAtLocation(c.target),t.parent.name.text),l=null===(n=null==u?void 0:u.declarations)||void 0===n?void 0:n[0];if(!l)return;return{source:e.isPropertyAssignment(t.parent)?t.parent.initializer:t.parent.name,target:l}}}}t.registerCodeFix({errorCodes:i,getCodeActions:function(i){var o=i.program.getTypeChecker(),s=function(t,r,n){var i,o,s=a(e.getFixableErrorSpanExpression(t,r),n);if(!s)return e.emptyArray;var c=s.source,u=s.target,l=function(t,r,n){return e.isPropertyAccessExpression(r)&&!!n.getExactOptionalProperties(n.getTypeAtLocation(r.expression)).length&&n.getTypeAtLocation(t)===n.getUndefinedType()}(c,u,n)?n.getTypeAtLocation(u.expression):n.getTypeAtLocation(u);if(null===(o=null===(i=l.symbol)||void 0===i?void 0:i.declarations)||void 0===o?void 0:o.some((function(t){return e.getSourceFileOfNode(t).fileName.match(/\.d\.ts$/)})))return e.emptyArray;return n.getExactOptionalProperties(l)}(i.sourceFile,i.span,o);if(s.length){var c=e.textChanges.ChangeTracker.with(i,(function(t){return function(t,n){for(var i=0,a=n;i1?(t.delete(r,l),t.insertNodeAfter(r,_,d)):t.replaceNode(r,_,d)}}function p(n){var i=[];return n.members&&n.members.forEach((function(e,n){if("constructor"===n&&e.valueDeclaration)t.delete(r,e.valueDeclaration.parent);else{var a=u(e,void 0);a&&i.push.apply(i,a)}})),n.exports&&n.exports.forEach((function(t){if("prototype"===t.name&&t.declarations){var r=t.declarations[0];if(1===t.declarations.length&&e.isPropertyAccessExpression(r)&&e.isBinaryExpression(r.parent)&&63===r.parent.operatorToken.kind&&e.isObjectLiteralExpression(r.parent.right))(n=u(r.parent.right.symbol,void 0))&&i.push.apply(i,n)}else{var n;(n=u(t,[e.factory.createToken(124)]))&&i.push.apply(i,n)}})),i;function u(n,i){var u=[];if(!(8192&n.flags||4096&n.flags))return u;var l,d,_=n.valueDeclaration,p=_.parent,f=p.right;if(l=_,d=f,!(e.isAccessExpression(l)?e.isPropertyAccessExpression(l)&&o(l)||e.isFunctionLike(d):e.every(l.properties,(function(t){return!!(e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t)||e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)&&t.name||o(t))}))))return u;var g=p.parent&&237===p.parent.kind?p.parent:p;if(t.delete(r,g),!f)return u.push(e.factory.createPropertyDeclaration([],i,n.name,void 0,void 0,void 0)),u;if(e.isAccessExpression(_)&&(e.isFunctionExpression(f)||e.isArrowFunction(f))){var m=e.getQuotePreference(r,s),y=function(t,r,n){if(e.isPropertyAccessExpression(t))return t.name;var i=t.argumentExpression;if(e.isNumericLiteral(i))return i;if(e.isStringLiteralLike(i))return e.isIdentifierText(i.text,e.getEmitScriptTarget(r))?e.factory.createIdentifier(i.text):e.isNoSubstitutionTemplateLiteral(i)?e.factory.createStringLiteral(i.text,0===n):i;return}(_,c,m);return y?h(u,f,y):u}if(e.isObjectLiteralExpression(f))return e.flatMap(f.properties,(function(t){return e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t)?u.concat(t):e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)?h(u,t.initializer,t.name):o(t)?u:[]}));if(e.isSourceFileJS(r))return u;if(!e.isPropertyAccessExpression(_))return u;var v=e.factory.createPropertyDeclaration(void 0,i,_.name,void 0,void 0,f);return e.copyLeadingComments(p.parent,v,r),u.push(v),u;function h(t,n,o){return e.isFunctionExpression(n)?function(t,n,o){var s=e.concatenate(i,a(n,131)),c=e.factory.createMethodDeclaration(void 0,s,void 0,o,void 0,void 0,n.parameters,void 0,n.body);return e.copyLeadingComments(p,c,r),t.concat(c)}(t,n,o):function(t,n,o){var s,c=n.body;s=234===c.kind?c:e.factory.createBlock([e.factory.createReturnStatement(c)]);var u=e.concatenate(i,a(n,131)),l=e.factory.createMethodDeclaration(void 0,u,void 0,o,void 0,void 0,n.parameters,void 0,s);return e.copyLeadingComments(p,l,r),t.concat(l)}(t,n,o)}}}}function a(t,r){return e.filter(t.modifiers,(function(e){return e.kind===r}))}function o(t){return!!t.name&&!(!e.isIdentifier(t.name)||"constructor"!==t.name.text)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start,n.program.getTypeChecker(),n.preferences,n.program.getCompilerOptions())}));return[t.createCodeFixAction(r,a,e.Diagnostics.Convert_function_to_an_ES2015_class,r,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){return i(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())}))}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var n,i="convertToAsyncFunction",a=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],o=!0;function s(t,r,n,i){var a,o=e.getTokenAtPosition(r,n);if(a=e.isIdentifier(o)&&e.isVariableDeclaration(o.parent)&&o.parent.initializer&&e.isFunctionLikeDeclaration(o.parent.initializer)?o.parent.initializer:e.tryCast(e.getContainingFunction(e.getTokenAtPosition(r,n)),e.canBeConvertedToAsync)){var s=new e.Map,u=e.isInJSFile(a),l=function(t,r){if(!t.body)return new e.Set;var n=new e.Set;return e.forEachChild(t.body,(function t(i){c(i,r,"then")?(n.add(e.getNodeId(i)),e.forEach(i.arguments,t)):c(i,r,"catch")||c(i,r,"finally")?(n.add(e.getNodeId(i)),e.forEachChild(i,t)):d(i,r)?n.add(e.getNodeId(i)):e.forEachChild(i,t)})),n}(a,i),f=function(t,r,n){var i=new e.Map,a=e.createMultiMap();return e.forEachChild(t,(function t(o){if(e.isIdentifier(o)){var s=r.getSymbolAtLocation(o);if(s){var c=T(r.getTypeAtLocation(o),r),u=e.getSymbolId(s).toString();if(!c||e.isParameter(o.parent)||e.isFunctionLikeDeclaration(o.parent)||n.has(u)){if(o.parent&&(e.isParameter(o.parent)||e.isVariableDeclaration(o.parent)||e.isBindingElement(o.parent))){var l=o.text,d=a.get(l);if(d&&d.some((function(e){return e!==s}))){var p=_(o,a);i.set(u,p.identifier),n.set(u,p),a.add(l,s)}else{var f=e.getSynthesizedDeepClone(o);n.set(u,A(f)),a.add(l,s)}}}else{var g=e.firstOrUndefined(c.parameters),m=(null==g?void 0:g.valueDeclaration)&&e.isParameter(g.valueDeclaration)&&e.tryCast(g.valueDeclaration.name,e.isIdentifier)||e.factory.createUniqueName("result",16),y=_(m,a);n.set(u,y),a.add(m.text,s)}}}else e.forEachChild(o,t)})),e.getSynthesizedDeepCloneWithReplacements(t,!0,(function(t){if(e.isBindingElement(t)&&e.isIdentifier(t.name)&&e.isObjectBindingPattern(t.parent)){if((a=(n=r.getSymbolAtLocation(t.name))&&i.get(String(e.getSymbolId(n))))&&a.text!==(t.name||t.propertyName).getText())return e.factory.createBindingElement(t.dotDotDotToken,t.propertyName||t.name,a,t.initializer)}else if(e.isIdentifier(t)){var n,a;if(a=(n=r.getSymbolAtLocation(t))&&i.get(String(e.getSymbolId(n))))return e.factory.createIdentifier(a.text)}}))}(a,i,s);if(e.returnsPromise(f,i)){var m=f.body&&e.isBlock(f.body)?function(t,r){var n=[];return e.forEachReturnStatement(t,(function(t){e.isReturnStatementWithFixablePromiseHandler(t,r)&&n.push(t)})),n}(f.body,i):e.emptyArray,y={checker:i,synthNamesMap:s,setOfExpressionsToReturn:l,isInJSFile:u};if(m.length){var v=a.modifiers?a.modifiers.end:a.decorators?e.skipTrivia(r.text,a.decorators.end):a.getStart(r),h=a.modifiers?{prefix:" "}:{suffix:" "};t.insertModifierAt(r,v,131,h);for(var D=function(n){if(e.forEachChild(n,(function i(a){if(e.isCallExpression(a)){var o=g(a,a,y,!1);if(p())return!0;t.replaceNodeWithNodes(r,n,o)}else if(!e.isFunctionLike(a)&&(e.forEachChild(a,i),p()))return!0})),p())return{value:void 0}},x=0,b=m;x0)return P;if(y){A=S(o.checker,y,m);if(O(a,o))return x(A,l(a,t,o.checker));var w=D(n,A,void 0);return n&&n.types.push(o.checker.getAwaitedType(y)||y),w}return f();default:return f()}return e.emptyArray}function S(t,r,n){var i=e.getSynthesizedDeepClone(n);return t.getPromisedTypeOfPromise(r)?e.factory.createAwaitExpression(i):i}function T(t,r){var n=r.getSignaturesOfType(t,0);return e.lastOrUndefined(n)}function C(t,r,n,i){var a=[];return e.forEachChild(r,(function r(o){if(e.isCallExpression(o)){var s=g(o,o,t,n,i);if((a=a.concat(s)).length>0)return}else e.isFunctionLike(o)||e.forEachChild(o,r)})),a}function E(t,r){var n,i=[];e.isFunctionLikeDeclaration(t)?t.parameters.length>0&&(n=function t(r){if(e.isIdentifier(r))return a(r);var n=e.flatMap(r.elements,(function(r){return e.isOmittedExpression(r)?[]:[t(r.name)]}));return function(t,r,n){void 0===r&&(r=e.emptyArray);void 0===n&&(n=[]);return{kind:1,bindingPattern:t,elements:r,types:n}}(r,n)}(t.parameters[0].name)):e.isIdentifier(t)?n=a(t):e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&(n=a(t.name));if(n&&(!("identifier"in n)||"undefined"!==n.identifier.text))return n;function a(t){var n=function(e){return e.original?e.original:e}(t),a=function(e){return e.symbol?e.symbol:r.checker.getSymbolAtLocation(e)}(n);return a&&r.synthNamesMap.get(e.getSymbolId(a).toString())||A(t,i)}}function k(t){return!t||(I(t)?!t.identifier.text:e.every(t.elements,k))}function A(e,t){return void 0===t&&(t=[]),{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function F(e){return e.hasBeenReferenced=!0,e.identifier}function N(e){return I(e)?w(e):P(e)}function P(e){for(var t=0,r=e.elements;t1?[[o(n),s(n)],!0]:[[s(n)],!0]:[[o(n)],!1]}(d.arguments[0],r):void 0;return p?(i.replaceNodeWithNodes(t,n.parent,p[0]),p[1]):(i.replaceRangeWithText(t,e.createRange(l.getStart(t),d.pos),"export default"),!0)}i.delete(t,n.parent)}else e.isExportsOrModuleExportsOrAlias(t,l.expression)&&function(t,r,n,i){var a=r.left.name.text,o=i.get(a);if(void 0!==o){var s=[g(void 0,o,r.right),m([e.factory.createExportSpecifier(!1,o,a)])];n.replaceNodeWithNodes(t,r.parent,s)}else!function(t,r,n){var i=t.left,a=t.right,o=t.parent,s=i.name.text;if(!(e.isFunctionExpression(a)||e.isArrowFunction(a)||e.isClassExpression(a))||a.name&&a.name.text!==s)n.replaceNodeRangeWithNodes(r,i.expression,e.findChildOfKind(i,24,r),[e.factory.createToken(93),e.factory.createToken(85)],{joiner:" ",suffix:" "});else{n.replaceRange(r,{pos:i.getStart(r),end:a.getStart(r)},e.factory.createToken(93),{suffix:" "}),a.name||n.insertName(r,a,s);var c=e.findChildOfKind(o,26,r);c&&n.delete(r,c)}}(r,t,n)}(t,n,i,a);return!1}(t,n,y,i,d,p)}default:return!1}}function a(r,n,i,a,o,s,c){var l,d=n.declarationList,_=!1,m=e.map(d.declarations,(function(n){var i=n.name,l=n.initializer;if(l){if(e.isExportsOrModuleExportsOrAlias(r,l))return _=!0,y([]);if(e.isRequireCall(l,!0))return _=!0,function(r,n,i,a,o,s){switch(r.kind){case 200:var c=e.mapAllOrFail(r.elements,(function(t){return t.dotDotDotToken||t.initializer||t.propertyName&&!e.isIdentifier(t.propertyName)||!e.isIdentifier(t.name)?void 0:f(t.propertyName&&t.propertyName.text,t.name.text)}));if(c)return y([e.makeImport(void 0,c,n,s)]);case 201:var l=u(t.moduleSpecifierToValidIdentifier(n.text,o),a);return y([e.makeImport(e.factory.createIdentifier(l),void 0,n,s),g(void 0,e.getSynthesizedDeepClone(r),e.factory.createIdentifier(l))]);case 79:return function(t,r,n,i,a){for(var o,s=n.getSymbolAtLocation(t),c=new e.Map,l=!1,d=0,_=i.original.get(t.text);d<_.length;d++){var p=_[d];if(n.getSymbolAtLocation(p)===s&&p!==t){var f=p.parent;if(e.isPropertyAccessExpression(f)){var g=f.name.text;if("default"===g){l=!0;var m=p.getText();(null!=o?o:o=new e.Map).set(f,e.factory.createIdentifier(m))}else{e.Debug.assert(f.expression===p,"Didn't expect expression === use");var v=c.get(g);void 0===v&&(v=u(g,i),c.set(g,v)),(null!=o?o:o=new e.Map).set(f,e.factory.createIdentifier(v))}}else l=!0}}var h=0===c.size?void 0:e.arrayFrom(e.mapIterator(c.entries(),(function(t){var r=t[0],n=t[1];return e.factory.createImportSpecifier(!1,r===n?void 0:e.factory.createIdentifier(r),e.factory.createIdentifier(n))})));h||(l=!0);return y([e.makeImport(l?e.getSynthesizedDeepClone(t):void 0,h,r,a)],o)}(r,n,i,a,s);default:return e.Debug.assertNever(r,"Convert to ES module got invalid name kind ".concat(r.kind))}}(i,l.arguments[0],a,o,s,c);if(e.isPropertyAccessExpression(l)&&e.isRequireCall(l.expression,!0))return _=!0,function(t,r,n,i,a){switch(t.kind){case 200:case 201:var o=u(r,i);return y([p(o,r,n,a),g(void 0,t,e.factory.createIdentifier(o))]);case 79:return y([p(t.text,r,n,a)]);default:return e.Debug.assertNever(t,"Convert to ES module got invalid syntax form ".concat(t.kind))}}(i,l.name.text,l.expression.arguments[0],o,c)}return y([e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([n],d.flags))])}));if(_)return i.replaceNodeWithNodes(r,n,e.flatMap(m,(function(e){return e.newImports}))),e.forEach(m,(function(t){t.useSitesToUnqualify&&e.copyEntries(t.useSitesToUnqualify,null!=l?l:l=new e.Map)})),l}function o(e){return m(void 0,e)}function s(t){return m([e.factory.createExportSpecifier(!1,void 0,"default")],t)}function c(t,r){return r&&e.some(e.arrayFrom(r.keys()),(function(r){return e.rangeContainsRange(t,r)}))?e.isArray(t)?e.getSynthesizedDeepClonesWithReplacements(t,!0,n):e.getSynthesizedDeepCloneWithReplacements(t,!0,n):t;function n(e){if(205===e.kind){var t=r.get(e);return r.delete(e),t}}}function u(e,t){for(;t.original.has(e)||t.additional.has(e);)e="_".concat(e);return t.additional.add(e),e}function l(t){var r=e.createMultiMap();return d(t,(function(e){return r.add(e.text,e)})),r}function d(t,r){e.isIdentifier(t)&&function(e){var t=e.parent;switch(t.kind){case 205:return t.name!==e;case 202:case 269:return t.propertyName!==e;default:return!0}}(t)&&r(t),t.forEachChild((function(e){return d(e,r)}))}function _(t,r,n,i){return e.factory.createFunctionDeclaration(e.getSynthesizedDeepClones(n.decorators),e.concatenate(r,e.getSynthesizedDeepClones(n.modifiers)),e.getSynthesizedDeepClone(n.asteriskToken),t,e.getSynthesizedDeepClones(n.typeParameters),e.getSynthesizedDeepClones(n.parameters),e.getSynthesizedDeepClone(n.type),e.factory.converters.convertToFunctionBlock(c(n.body,i)))}function p(t,r,n,i){return"default"===r?e.makeImport(e.factory.createIdentifier(t),void 0,n,i):e.makeImport(void 0,[f(r,t)],n,i)}function f(t,r){return e.factory.createImportSpecifier(!1,void 0!==t&&t!==r?e.factory.createIdentifier(t):void 0,e.factory.createIdentifier(r))}function g(t,r,n){return e.factory.createVariableStatement(t,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(r,void 0,void 0,n)],2))}function m(t,r){return e.factory.createExportDeclaration(void 0,void 0,!1,t&&e.factory.createNamedExports(t),void 0===r?void 0:e.factory.createStringLiteral(r))}function y(e,t){return{newImports:e,useSitesToUnqualify:t}}t.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions:function(o){var s=o.sourceFile,c=o.program,d=o.preferences,_=e.textChanges.ChangeTracker.with(o,(function(t){var o=function(t,r,o,s,c){var d={original:l(t),additional:new e.Set},_=function(t,r,i){var a=new e.Map;return n(t,(function(t){var n=t.name,o=n.text,s=n.originalKeywordKind;!a.has(o)&&(void 0!==s&&e.isNonContextualKeyword(s)||r.resolveName(o,t,111551,!0))&&a.set(o,u("_".concat(o),i))})),a}(t,r,d);!function(t,r,i){n(t,(function(n,a){if(!a){var o=n.name.text;i.replaceNode(t,n,e.factory.createIdentifier(r.get(o)||o))}}))}(t,_,o);for(var p,f=!1,g=0,m=e.filter(t.statements,e.isVariableStatement);g0||c.length>0||l.size>0||d.size>0}};function p(t){var r,n,i=t.fixes,a=t.symbolName,o=e.first(i);switch(o.kind){case 0:s.push(o);break;case 1:c.push(o);break;case 2:var u=o.importClauseOrBindingPattern,_=o.importKind,p=o.addAsTypeOnly,f=String(e.getNodeId(u));if((v=l.get(f))||l.set(f,v={importClauseOrBindingPattern:u,defaultImport:void 0,namedImports:new e.Map}),0===_){var g=null==v?void 0:v.namedImports.get(a);v.namedImports.set(a,h(g,p))}else e.Debug.assert(void 0===v.defaultImport||v.defaultImport.name===a,"(Add to Existing) Default import should be missing or match symbolName"),v.defaultImport={name:a,addAsTypeOnly:h(null===(r=v.defaultImport)||void 0===r?void 0:r.addAsTypeOnly,p)};break;case 3:var m=o.moduleSpecifier,y=(_=o.importKind,o.useRequire),v=function(e,t,r,n){var i=D(e,!0),a=D(e,!1),o=d.get(i),s=d.get(a),c={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:r};if(1===t&&2===n)return o||(d.set(i,c),c);if(1===n&&(o||s))return o||s;if(s)return s;return d.set(a,c),c}(m,_,y,p=o.addAsTypeOnly);switch(e.Debug.assert(v.useRequire===y,"(Add new) Tried to add an `import` and a `require` for the same module"),_){case 1:e.Debug.assert(void 0===v.defaultImport||v.defaultImport.name===a,"(Add new) Default import should be missing or match symbolName"),v.defaultImport={name:a,addAsTypeOnly:h(null===(n=v.defaultImport)||void 0===n?void 0:n.addAsTypeOnly,p)};break;case 0:g=(v.namedImports||(v.namedImports=new e.Map)).get(a);v.namedImports.set(a,h(g,p));break;case 3:case 2:e.Debug.assert(void 0===v.namespaceLikeImport||v.namespaceLikeImport.name===a,"Namespacelike import shoudl be missing or match symbolName"),v.namespaceLikeImport={importKind:_,name:a,addAsTypeOnly:p}}break;default:e.Debug.assertNever(o,"fix wasn't never - got kind ".concat(o.kind))}function h(e,t){return Math.max(null!=e?e:0,t)}function D(e,t){return"".concat(t?1:0,"|").concat(e)}}}function u(t,r,n,i,a,o,s,c,u,l){return e.Debug.assert(r.some((function(e){return e.moduleSymbol===n||e.symbol.parent===n})),"Some exportInfo should match the specified moduleSymbol"),v(p(r,i,o,s,c,a,t,u,l),t,a,u,l)}function l(e){return{description:e.description,changes:e.changes,commands:e.commands}}function d(t,r,n,i){var a,o,s=n.getCompilerOptions(),c=l(n.getTypeChecker(),!1);if(c)return c;var u=null===(o=null===(a=i.getPackageJsonAutoImportProvider)||void 0===a?void 0:a.call(i))||void 0===o?void 0:o.getTypeChecker();return e.Debug.checkDefined(u&&l(u,!0),"Could not find symbol in specified module for code actions");function l(n,i){var a=e.getDefaultLikeExportInfo(r,n,s);if(a&&e.skipAlias(a.symbol,n)===t)return{symbol:a.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:a.exportKind,targetFlags:e.skipAlias(t,n).flags,isFromPackageJson:i};var o=n.tryGetMemberInModuleExportsAndProperties(t.name,r);return o&&e.skipAlias(o,n)===t?{symbol:o,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:e.skipAlias(t,n).flags,isFromPackageJson:i}:void 0}}function _(t,r,n,i,a,o,s,c){var u=[],l=o.getCompilerOptions(),d=e.memoizeOne((function(t){return e.createModuleSpecifierResolutionHost(t?a.getPackageJsonAutoImportProvider():o,a)}));return e.forEachExternalModuleToImportFrom(o,a,c,(function(a,o,s,c){var d=s.getTypeChecker();if(!o||a===n||!e.startsWith(t.fileName,e.getDirectoryPath(o.fileName))){var p=e.getDefaultLikeExportInfo(a,d,l);p&&(p.name===i||P(a,e.getEmitScriptTarget(l))===i)&&e.skipAlias(p.symbol,d)===r&&_(s,o,c)&&u.push({symbol:p.symbol,moduleSymbol:a,moduleFileName:null==o?void 0:o.fileName,exportKind:p.exportKind,targetFlags:e.skipAlias(p.symbol,d).flags,isFromPackageJson:c});for(var f=0,g=d.getExportsAndPropertiesOfModule(a);f=e.ModuleKind.ES2015)return i?1:2;if(a)return e.isExternalModule(t)||n?i?1:2:3;for(var o=0,s=t.statements;o"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,c?c.text:e.ANONYMOUS]}return t.replaceNode(r,s,e.factory.createToken(85)),t.insertText(r,c.end," = "),t.insertText(r,u.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,c.text]}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a,o=n.sourceFile,s=n.program,c=n.span,u=e.textChanges.ChangeTracker.with(n,(function(e){a=i(e,o,c.start,s.getTypeChecker())}));return a?[t.createCodeFixAction(r,u,a,r,e.Diagnostics.Fix_all_implicit_this_errors)]:e.emptyArray},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){i(t,r.file,r.start,e.program.getTypeChecker())}))}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){var t,r,n;t=e.codefix||(e.codefix={}),r="fixIncorrectNamedTupleSyntax",n=[e.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile,a=n.span,o=function(t,r){var n=e.getTokenAtPosition(t,r);return e.findAncestor(n,(function(e){return 196===e.kind}))}(i,a.start),s=e.textChanges.ChangeTracker.with(n,(function(t){return function(t,r,n){if(n){for(var i=n.type,a=!1,o=!1;184===i.kind||185===i.kind||190===i.kind;)184===i.kind?a=!0:185===i.kind&&(o=!0),i=i.type;var s=e.factory.updateNamedTupleMember(n,n.dotDotDotToken||(o?e.factory.createToken(25):void 0),n.name,n.questionToken||(a?e.factory.createToken(57):void 0),i);s!==n&&t.replaceNode(r,n,s)}}(t,i,o)}));return[t.createCodeFixAction(r,s,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,r,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[r]})}(c||(c={})),function(e){!function(t){var r="fixSpelling",n=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.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];function i(t,r,n,i){var a=e.getTokenAtPosition(t,r),o=a.parent;if(i!==e.Diagnostics.No_overload_matches_this_call.code&&i!==e.Diagnostics.Type_0_is_not_assignable_to_type_1.code||e.isJsxAttribute(o)){var s,c=n.program.getTypeChecker();if(e.isPropertyAccessExpression(o)&&o.name===a){e.Debug.assert(e.isMemberName(a),"Expected an identifier for spelling (property access)");var u=c.getTypeAtLocation(o.expression);32&o.flags&&(u=c.getNonNullableType(u)),s=c.getSuggestedSymbolForNonexistentProperty(a,u)}else if(e.isBinaryExpression(o)&&101===o.operatorToken.kind&&o.left===a&&e.isPrivateIdentifier(a)){var l=c.getTypeAtLocation(o.right);s=c.getSuggestedSymbolForNonexistentProperty(a,l)}else if(e.isQualifiedName(o)&&o.right===a){var d=c.getSymbolAtLocation(o.left);d&&1536&d.flags&&(s=c.getSuggestedSymbolForNonexistentModule(o.right,d))}else if(e.isImportSpecifier(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for spelling (import)");var _=function(t,r,n){if(!n||!e.isStringLiteralLike(n.moduleSpecifier))return;var i=e.getResolvedModule(t,n.moduleSpecifier.text,e.getModeForUsageLocation(t,n.moduleSpecifier));return i?r.program.getSourceFile(i.resolvedFileName):void 0}(t,n,e.findAncestor(a,e.isImportDeclaration));_&&_.symbol&&(s=c.getSuggestedSymbolForNonexistentModule(a,_.symbol))}else if(e.isJsxAttribute(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for JSX attribute");var p=e.findAncestor(a,e.isJsxOpeningLikeElement),f=c.getContextualTypeForArgumentAtIndex(p,0);s=c.getSuggestedSymbolForNonexistentJSXAttribute(a,f)}else if(e.hasSyntacticModifier(o,16384)&&e.isClassElement(o)&&o.name===a){var g=e.findAncestor(a,e.isClassLike),m=g?e.getEffectiveBaseTypeNode(g):void 0,y=m?c.getTypeAtLocation(m):void 0;y&&(s=c.getSuggestedSymbolForNonexistentClassMember(e.getTextOfNode(a),y))}else{var v=e.getMeaningFromLocation(a),h=e.getTextOfNode(a);e.Debug.assert(void 0!==h,"name should be defined"),s=c.getSuggestedSymbolForNonexistentSymbol(a,h,function(e){var t=0;4&e&&(t|=1920);2&e&&(t|=788968);1&e&&(t|=111551);return t}(v))}return void 0===s?void 0:{node:a,suggestedSymbol:s}}}function a(t,r,n,i,a){var o=e.symbolName(i);if(!e.isIdentifierText(o,a)&&e.isPropertyAccessExpression(n.parent)){var s=i.valueDeclaration;s&&e.isNamedDeclaration(s)&&e.isPrivateIdentifier(s.name)?t.replaceNode(r,n,e.factory.createIdentifier(o)):t.replaceNode(r,n.parent,e.factory.createElementAccessExpression(n.parent.expression,e.factory.createStringLiteral(o)))}else t.replaceNode(r,n,e.factory.createIdentifier(o))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.errorCode,c=i(o,n.span.start,n,s);if(c){var u=c.node,l=c.suggestedSymbol,d=e.getEmitScriptTarget(n.host.getCompilationSettings()),_=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,u,l,d)}));return[t.createCodeFixAction("spelling",_,[e.Diagnostics.Change_spelling_to_0,e.symbolName(l)],r,e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:[r],getAllCodeActions:function(r){return t.codeFixAll(r,n,(function(t,n){var o=i(n.file,n.start,r,n.code),s=e.getEmitScriptTarget(r.host.getCompilationSettings());o&&a(t,r.sourceFile,o.node,o.suggestedSymbol,s)}))}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var r,n="returnValueCorrect",i="fixAddReturnStatement",a="fixRemoveBracesFromArrowFunctionBody",o="fixWrapTheBlockWithParen",s=[e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];function c(t,r,n){var i=t.createSymbol(4,r.escapedText);i.type=t.getTypeAtLocation(n);var a=e.createSymbolTable([i]);return t.createAnonymousType(void 0,a,[],[],[])}function u(t,n,i,a){if(n.body&&e.isBlock(n.body)&&1===e.length(n.body.statements)){var o=e.first(n.body.statements);if(e.isExpressionStatement(o)&&l(t,n,t.getTypeAtLocation(o.expression),i,a))return{declaration:n,kind:r.MissingReturnStatement,expression:o.expression,statement:o,commentSource:o.expression};if(e.isLabeledStatement(o)&&e.isExpressionStatement(o.statement)){var s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(o.label,o.statement.expression)]);if(l(t,n,c(t,o.label,o.statement.expression),i,a))return e.isArrowFunction(n)?{declaration:n,kind:r.MissingParentheses,expression:s,statement:o,commentSource:o.statement.expression}:{declaration:n,kind:r.MissingReturnStatement,expression:s,statement:o,commentSource:o.statement.expression}}else if(e.isBlock(o)&&1===e.length(o.statements)){var u=e.first(o.statements);if(e.isLabeledStatement(u)&&e.isExpressionStatement(u.statement)){s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(u.label,u.statement.expression)]);if(l(t,n,c(t,u.label,u.statement.expression),i,a))return{declaration:n,kind:r.MissingReturnStatement,expression:s,statement:o,commentSource:u}}}}}function l(t,r,n,i,a){if(a){var o=t.getSignatureFromDeclaration(r);if(o){e.hasSyntacticModifier(r,256)&&(n=t.createPromiseType(n));var s=t.createSignature(r,o.typeParameters,o.thisParameter,o.parameters,n,void 0,o.minArgumentCount,o.flags);n=t.createAnonymousType(void 0,e.createSymbolTable(),[s],[],[])}else n=t.getAnyType()}return t.isTypeAssignableTo(n,i)}function d(t,r,n,i){var a=e.getTokenAtPosition(r,n);if(a.parent){var o=e.findAncestor(a.parent,e.isFunctionLikeDeclaration);switch(i){case e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:if(!(o&&o.body&&o.type&&e.rangeContainsRange(o.type,a)))return;return u(t,o,t.getTypeFromTypeNode(o.type),!1);case e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!e.isCallExpression(o.parent)||!o.body)return;var s=o.parent.arguments.indexOf(o),c=t.getContextualTypeForArgumentAtIndex(o.parent,s);if(!c)return;return u(t,o,c,!0);case e.Diagnostics.Type_0_is_not_assignable_to_type_1.code:if(!e.isDeclarationName(a)||!e.isVariableLike(a.parent)&&!e.isJsxAttribute(a.parent))return;var l=function(t){switch(t.kind){case 253:case 163:case 202:case 166:case 294:return t.initializer;case 284:return t.initializer&&(e.isJsxExpression(t.initializer)?t.initializer.expression:void 0);case 295:case 165:case 297:case 345:case 338:return}}(a.parent);if(!l||!e.isFunctionLikeDeclaration(l)||!l.body)return;return u(t,l,t.getTypeAtLocation(a.parent),!0)}}}function _(t,r,n,i){e.suppressLeadingAndTrailingTrivia(n);var a=e.probablyUsesSemicolons(r);t.replaceNode(r,i,e.factory.createReturnStatement(n),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:a?";":void 0})}function p(t,r,n,i,a,o){var s=o||e.needsParentheses(i)?e.factory.createParenthesizedExpression(i):i;e.suppressLeadingAndTrailingTrivia(a),e.copyComments(a,s),t.replaceNode(r,n.body,s)}function f(t,r,n,i){t.replaceNode(r,n.body,e.factory.createParenthesizedExpression(i))}function g(r,a,o){var s=e.textChanges.ChangeTracker.with(r,(function(e){return _(e,r.sourceFile,a,o)}));return t.createCodeFixAction(n,s,e.Diagnostics.Add_a_return_statement,i,e.Diagnostics.Add_all_missing_return_statement)}function m(r,i,a){var s=e.textChanges.ChangeTracker.with(r,(function(e){return f(e,r.sourceFile,i,a)}));return t.createCodeFixAction(n,s,e.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,o,e.Diagnostics.Wrap_all_object_literal_with_parentheses)}!function(e){e[e.MissingReturnStatement=0]="MissingReturnStatement",e[e.MissingParentheses=1]="MissingParentheses"}(r||(r={})),t.registerCodeFix({errorCodes:s,fixIds:[i,a,o],getCodeActions:function(i){var o=i.program,s=i.sourceFile,c=i.span.start,u=i.errorCode,l=d(o.getTypeChecker(),s,c,u);if(l)return l.kind===r.MissingReturnStatement?e.append([g(i,l.expression,l.statement)],e.isArrowFunction(l.declaration)?function(r,i,o,s){var c=e.textChanges.ChangeTracker.with(r,(function(e){return p(e,r.sourceFile,i,o,s,!1)}));return t.createCodeFixAction(n,c,e.Diagnostics.Remove_braces_from_arrow_function_body,a,e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(i,l.declaration,l.expression,l.commentSource):void 0):[m(i,l.declaration,l.expression)]},getAllCodeActions:function(r){return t.codeFixAll(r,s,(function(t,n){var s=d(r.program.getTypeChecker(),n.file,n.start,n.code);if(s)switch(r.fixId){case i:_(t,n.file,s.expression,s.statement);break;case a:if(!e.isArrowFunction(s.declaration))return;p(t,n.file,s.declaration,s.expression,s.commentSource,!1);break;case o:if(!e.isArrowFunction(s.declaration))return;f(t,n.file,s.declaration,s.expression);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var n,i="fixMissingMember",a="fixMissingProperties",o="fixMissingAttributes",s="fixMissingFunctionDeclaration",c=[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Cannot_find_name_0.code];function u(t,r,n,i,a){var o=e.getTokenAtPosition(t,r),s=o.parent;if(n===e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(18!==o.kind||!e.isObjectLiteralExpression(s)||!e.isCallExpression(s.parent))return;var c=e.findIndex(s.parent.arguments,(function(e){return e===s}));if(c<0)return;var u=e.singleOrUndefined(i.getSignaturesOfType(i.getTypeAtLocation(s.parent.expression),0));if(!(u&&u.declaration&&u.parameters[c]))return;var d=u.parameters[c].valueDeclaration;if(!(d&&e.isParameter(d)&&e.isIdentifier(d.name)))return;var _=e.arrayFrom(i.getUnmatchedProperties(i.getTypeAtLocation(s),i.getTypeAtLocation(d),!1,!1));if(!e.length(_))return;return{kind:3,token:d.name,properties:_,indentation:0,parentDeclaration:s}}if(e.isMemberName(o)){if(e.isIdentifier(o)&&e.hasInitializer(s)&&s.initializer&&e.isObjectLiteralExpression(s.initializer)){_=e.arrayFrom(i.getUnmatchedProperties(i.getTypeAtLocation(s.initializer),i.getTypeAtLocation(o),!1,!1));if(!e.length(_))return;return{kind:3,token:o,properties:_,indentation:void 0,parentDeclaration:s.initializer}}if(e.isIdentifier(o)&&e.isJsxOpeningLikeElement(o.parent)){var p=function(t,r){var n=t.getContextualType(r.attributes);if(void 0===n)return e.emptyArray;var i=n.getProperties();if(!e.length(i))return e.emptyArray;for(var a=new e.Set,o=0,s=r.attributes.properties;o=e.ModuleKind.ES2015&&o99)&&(s=e.textChanges.ChangeTracker.with(r,(function(r){if(e.getTsConfigObjectLiteralExpression(i)){var n=[["target",e.factory.createStringLiteral("es2017")]];o===e.ModuleKind.CommonJS&&n.push(["module",e.factory.createStringLiteral("commonjs")]),t.setJsonCompilerOptionValues(r,i,n)}})),a.push(t.createCodeFixActionWithoutFixAll("fixTargetOption",s,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))),a.length?a:void 0}}})}(c||(c={})),function(e){!function(t){var r="fixPropertyAssignment",n=[e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];function i(t,r,n){t.replaceNode(r,n,e.factory.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function a(t,r){return e.cast(e.getTokenAtPosition(t,r).parent,e.isShorthandPropertyAssignment)}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var o=a(n.sourceFile,n.span.start),s=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,o)}));return[t.createCodeFixAction(r,s,[e.Diagnostics.Change_0_to_1,"=",":"],r,[e.Diagnostics.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,a(t.file,t.start))}))}})}(e.codefix||(e.codefix={}))}(c||(c={})),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 94===a.kind?{extendsToken:a,heritageClauses:i}:void 0}function a(t,r,n,i){if(t.replaceNode(r,n,e.factory.createToken(117)),2===i.length&&94===i[0].token&&117===i[1].token){var a=i[1].getFirstToken(),o=a.getFullStart();t.replaceRange(r,{pos:o,end:o},e.factory.createToken(27));for(var s=r.text,c=a.end;c":">","}":"}"};function o(t,r,n,i,o){var s=n.getText()[i];if(function(t){return e.hasProperty(a,t)}(s)){var c=o?a[s]:"{".concat(e.quote(n,r,s),"}");t.replaceRangeWithText(n,{pos:i,end:i+1},c)}}}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var r="unusedIdentifier",n="unusedIdentifier_prefix",i="unusedIdentifier_delete",a="unusedIdentifier_deleteImports",o="unusedIdentifier_infer",s=[e.Diagnostics._0_is_declared_but_its_value_is_never_read.code,e.Diagnostics._0_is_declared_but_never_used.code,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,e.Diagnostics.All_imports_in_import_declaration_are_unused.code,e.Diagnostics.All_destructured_elements_are_unused.code,e.Diagnostics.All_variables_are_unused.code,e.Diagnostics.All_type_parameters_are_unused.code];function c(t,r,n){t.replaceNode(r,n.parent,e.factory.createKeywordTypeNode(154))}function u(n,a){return t.createCodeFixAction(r,n,a,i,e.Diagnostics.Delete_all_unused_declarations)}function l(t,r,n){t.delete(r,e.Debug.checkDefined(e.cast(n.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function d(e){return 100===e.kind||79===e.kind&&(269===e.parent.kind||266===e.parent.kind)}function _(t){return 100===t.kind?e.tryCast(t.parent,e.isImportDeclaration):void 0}function p(t,r){return e.isVariableDeclarationList(r.parent)&&e.first(r.parent.getChildren(t))===r}function f(e,t,r){e.delete(t,236===r.parent.kind?r.parent:r)}function g(t,r,n,i){r!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(137===i.kind&&(i=e.cast(i.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(i)&&function(e){switch(e.parent.kind){case 163:case 162:return!0;case 253:switch(e.parent.parent.parent.kind){case 243:case 242:return!0}}return!1}(i)&&(t.replaceNode(n,i,e.factory.createIdentifier("_".concat(i.text))),e.isParameter(i.parent)&&e.getJSDocParameterTags(i.parent).forEach((function(r){e.isIdentifier(r.name)&&t.replaceNode(n,r.name,e.factory.createIdentifier("_".concat(r.name.text)))}))))}function m(t,r,n,i,a,o,s,c){!function(t,r,n,i,a,o,s,c){var u=t.parent;if(e.isParameter(u))!function(t,r,n,i,a,o,s,c){void 0===c&&(c=!1);(function(t,r,n,i,a,o,s){var c=n.parent;switch(c.kind){case 168:case 170:var u=c.parameters.indexOf(n),l=e.isMethodDeclaration(c)?c.name:c,d=e.FindAllReferences.Core.getReferencedSymbolsForNode(c.pos,l,a,i,o);if(d)for(var _=0,p=d;_u,h=e.isPropertyAccessExpression(m.node.parent)&&e.isSuperKeyword(m.node.parent.expression)&&e.isCallExpression(m.node.parent.parent)&&m.node.parent.parent.arguments.length>u,D=(e.isMethodDeclaration(m.node.parent)||e.isMethodSignature(m.node.parent))&&m.node.parent!==n.parent&&m.node.parent.parameters.length>u;if(y||h||D)return!1}}return!0;case 255:return!c.name||!function(t,r,n){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(n,t,r,(function(t){return e.isIdentifier(t)&&e.isCallExpression(t.parent)&&t.parent.arguments.indexOf(t)>=0}))}(t,r,c.name)||v(c,n,s);case 212:case 213:return v(c,n,s);case 172:return!1;default:return e.Debug.failBadSyntaxKind(c)}})(i,r,n,a,o,s,c)&&(n.modifiers&&n.modifiers.length>0&&(!e.isIdentifier(n.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(n.name,i,r))?n.modifiers.forEach((function(e){return t.deleteModifier(r,e)})):!n.initializer&&y(n,i,a)&&t.delete(r,n))}(r,n,u,i,a,o,s,c);else if(!(c&&e.isIdentifier(t)&&e.FindAllReferences.Core.isSymbolReferencedInFile(t,i,n))){var l=e.isImportClause(u)?t:e.isComputedPropertyName(u)?u.parent:u;e.Debug.assert(l!==n,"should not delete whole source file"),r.delete(n,l)}}(r,n,t,i,a,o,s,c),e.isIdentifier(r)&&e.FindAllReferences.Core.eachSymbolReferenceInFile(r,i,t,(function(r){e.isPropertyAccessExpression(r.parent)&&r.parent.name===r&&(r=r.parent),!c&&function(t){return(e.isBinaryExpression(t.parent)&&t.parent.left===t||(e.isPostfixUnaryExpression(t.parent)||e.isPrefixUnaryExpression(t.parent))&&t.parent.operand===t)&&e.isExpressionStatement(t.parent.parent)}(r)&&n.delete(t,r.parent.parent)}))}function y(t,r,n){var i=t.parent.parameters.indexOf(t);return!e.FindAllReferences.Core.someSignatureUsage(t.parent,n,r,(function(e,t){return!t||t.arguments.length>i}))}function v(t,r,n){var i=t.parameters,a=i.indexOf(r);return e.Debug.assert(-1!==a,"The parameter should already be in the list"),n?i.slice(a+1).every((function(t){return e.isIdentifier(t.name)&&!t.symbol.isReferenced})):a===i.length-1}t.registerCodeFix({errorCodes:s,getCodeActions:function(i){var s=i.errorCode,y=i.sourceFile,v=i.program,h=i.cancellationToken,D=v.getTypeChecker(),x=v.getSourceFiles(),b=e.getTokenAtPosition(y,i.span.start);if(e.isJSDocTemplateTag(b))return[u(e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(y,b)})),e.Diagnostics.Remove_template_tag)];if(29===b.kind){var S=e.textChanges.ChangeTracker.with(i,(function(e){return l(e,y,b)}));return[u(S,e.Diagnostics.Remove_type_parameters)]}var T=_(b);if(T){S=e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(y,T)}));return[t.createCodeFixAction(r,S,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(T)],a,e.Diagnostics.Delete_all_unused_imports)]}if(d(b)){var C=e.textChanges.ChangeTracker.with(i,(function(e){return m(y,b,e,D,x,v,h,!1)}));if(C.length)return[t.createCodeFixAction(r,C,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,b.getText(y)],a,e.Diagnostics.Delete_all_unused_imports)]}if(e.isObjectBindingPattern(b.parent)||e.isArrayBindingPattern(b.parent)){if(e.isParameter(b.parent.parent)){var E=b.parent.elements,k=[E.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(E,(function(e){return e.getText(y)})).join(", ")];return[u(e.textChanges.ChangeTracker.with(i,(function(t){return function(t,r,n){e.forEach(n.elements,(function(e){return t.delete(r,e)}))}(t,y,b.parent)})),k)]}return[u(e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(y,b.parent.parent)})),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(p(y,b))return[u(e.textChanges.ChangeTracker.with(i,(function(e){return f(e,y,b.parent)})),e.Diagnostics.Remove_variable_statement)];var A=[];if(137===b.kind){S=e.textChanges.ChangeTracker.with(i,(function(e){return c(e,y,b)}));var F=e.cast(b.parent,e.isInferTypeNode).typeParameter.name.text;A.push(t.createCodeFixAction(r,S,[e.Diagnostics.Replace_infer_0_with_unknown,F],o,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{C=e.textChanges.ChangeTracker.with(i,(function(e){return m(y,b,e,D,x,v,h,!1)}));if(C.length){F=e.isComputedPropertyName(b.parent)?b.parent:b;A.push(u(C,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,F.getText(y)]))}}var N=e.textChanges.ChangeTracker.with(i,(function(e){return g(e,s,y,b)}));return N.length&&A.push(t.createCodeFixAction(r,N,[e.Diagnostics.Prefix_0_with_an_underscore,b.getText(y)],n,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),A},fixIds:[n,i,a,o],getAllCodeActions:function(r){var u=r.sourceFile,v=r.program,h=r.cancellationToken,D=v.getTypeChecker(),x=v.getSourceFiles();return t.codeFixAll(r,s,(function(t,s){var b=e.getTokenAtPosition(u,s.start);switch(r.fixId){case n:g(t,s.code,u,b);break;case a:var S=_(b);S?t.delete(u,S):d(b)&&m(u,b,t,D,x,v,h,!0);break;case i:if(137===b.kind||d(b))break;if(e.isJSDocTemplateTag(b))t.delete(u,b);else if(29===b.kind)l(t,u,b);else if(e.isObjectBindingPattern(b.parent)){if(b.parent.parent.initializer)break;e.isParameter(b.parent.parent)&&!y(b.parent.parent,D,x)||t.delete(u,b.parent.parent)}else{if(e.isArrayBindingPattern(b.parent.parent)&&b.parent.parent.parent.initializer)break;p(u,b)?f(t,u,b.parent):m(u,b,t,D,x,v,h,!0)}break;case o:137===b.kind&&c(t,u,b);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var r="fixUnreachableCode",n=[e.Diagnostics.Unreachable_code_detected.code];function i(t,r,n,i,a){var o=e.getTokenAtPosition(r,n),s=e.findAncestor(o,e.isStatement);if(s.getStart(r)!==o.getStart(r)){var c=JSON.stringify({statementKind:e.Debug.formatSyntaxKind(s.kind),tokenKind:e.Debug.formatSyntaxKind(o.kind),errorCode:a,start:n,length:i});e.Debug.fail("Token and statement should start at the same point. "+c)}var u=(e.isBlock(s.parent)?s.parent:s).parent;if(!e.isBlock(s.parent)||s===e.first(s.parent.statements))switch(u.kind){case 238:if(u.elseStatement){if(e.isBlock(s.parent))break;return void t.replaceNode(r,s,e.factory.createBlock(e.emptyArray))}case 240:case 241:return void t.delete(r,u)}if(e.isBlock(s.parent)){var l=n+i,d=e.Debug.checkDefined(function(e,t){for(var r,n=0,i=e;nj.length)z(k,v.getSignatureFromDeclaration(y[y.length-1]),S,x,_||c(k));else e.Debug.assert(y.length===j.length,"Declarations and signatures should match count"),d(function(t,n,i,a,o,u,l,d,_){for(var p=a[0],f=a[0].minArgumentCount,g=!1,m=0,y=a;m=p.parameters.length&&(!e.signatureHasRestParameter(v)||e.signatureHasRestParameter(p))&&(p=v)}var h=p.parameters.length-(e.signatureHasRestParameter(p)?1:0),D=p.parameters.map((function(e){return e.name})),x=s(h,D,void 0,f,!1);if(g){var b=e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(130)),S=e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),D[h]||"rest",h>=f?e.factory.createToken(57):void 0,b,void 0);x.push(S)}return function(t,r,n,i,a,o,s,u){return e.factory.createMethodDeclaration(void 0,t,void 0,r,n?e.factory.createToken(57):void 0,i,a,o,u||c(s))}(l,o,u,void 0,x,function(t,n,i,a){if(e.length(t)){var o=n.getUnionType(e.map(t,n.getReturnTypeOfSignature));return n.typeToTypeNode(o,a,void 0,r(i))}}(a,t,n,i),d,_)}(v,o,n,j,x,C&&!!(1&f),S,k,_))}}function z(e,t,r,i,s){var c=a(168,o,e,t,s,i,r,C&&!!(1&f),n,l);c&&d(c)}}function a(t,n,i,a,o,s,c,u,l,d){var _=n.program,f=_.getTypeChecker(),m=e.getEmitScriptTarget(_.getCompilerOptions()),y=1073742081|(0===i?268435456:0),v=f.signatureToSignatureDeclaration(a,t,l,y,r(n));if(v){var h=v.typeParameters,D=v.parameters,x=v.type;if(d){if(h){var b=e.sameMap(h,(function(t){var r,n=t.constraint,i=t.default;n&&((r=p(n,m))&&(n=r.typeNode,g(d,r.symbols)));i&&((r=p(i,m))&&(i=r.typeNode,g(d,r.symbols)));return e.factory.updateTypeParameterDeclaration(t,t.name,n,i)}));h!==b&&(h=e.setTextRange(e.factory.createNodeArray(b,h.hasTrailingComma),h))}var S=e.sameMap(D,(function(t){var r=p(t.type,m),n=t.type;return r&&(n=r.typeNode,g(d,r.symbols)),e.factory.updateParameterDeclaration(t,t.decorators,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,n,t.initializer)}));if(D!==S&&(D=e.setTextRange(e.factory.createNodeArray(S,D.hasTrailingComma),D)),x){var T=p(x,m);T&&(x=T.typeNode,g(d,T.symbols))}}var C=u?e.factory.createToken(57):void 0,E=v.asteriskToken;return e.isFunctionExpression(v)?e.factory.updateFunctionExpression(v,c,v.asteriskToken,e.tryCast(s,e.isIdentifier),h,D,x,null!=o?o:v.body):e.isArrowFunction(v)?e.factory.updateArrowFunction(v,c,h,D,x,v.equalsGreaterThanToken,null!=o?o:v.body):e.isMethodDeclaration(v)?e.factory.updateMethodDeclaration(v,void 0,c,E,null!=s?s:e.factory.createIdentifier(""),C,h,D,x,o):void 0}}function o(t,r,n,i,a,o,s){var c=t.typeToTypeNode(n,i,o,s);if(c&&e.isImportTypeNode(c)){var u=p(c,a);u&&(g(r,u.symbols),c=u.typeNode)}return e.getSynthesizedDeepClone(c)}function s(t,r,n,i,a){for(var o=[],s=0;s=i?e.factory.createToken(57):void 0,a?void 0:n&&n[s]||e.factory.createKeywordTypeNode(130),void 0);o.push(c)}return o}function c(t){return u(e.Diagnostics.Method_not_implemented.message,t)}function u(t,r){return e.factory.createBlock([e.factory.createThrowStatement(e.factory.createNewExpression(e.factory.createIdentifier("Error"),void 0,[e.factory.createStringLiteral(t,0===r)]))],!0)}function l(t,r,n){var i=e.getTsConfigObjectLiteralExpression(r);if(i){var a=_(i,"compilerOptions");if(void 0!==a){var o=a.initializer;if(e.isObjectLiteralExpression(o))for(var s=0,c=n;s0)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={}))}(c||(c={})),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(100===n.kind,"This token should be an ImportKeyword"),e.Debug.assert(199===n.parent.kind,"Token parent should be an ImportType"),n.parent}function a(t,r,n){var i=e.factory.updateImportTypeNode(n,n.argument,n.qualifier,n.typeArguments,!0);t.replaceNode(r,n,i)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start),u=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c)}));return[t.createCodeFixAction(r,u,e.Diagnostics.Add_missing_typeof,r,e.Diagnostics.Add_missing_typeof)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){return a(t,e.sourceFile,i(r.file,r.start))}))}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var r="wrapJsxInFragment",n=[e.Diagnostics.JSX_expressions_must_have_one_parent_element.code];function i(t,r){var n=e.getTokenAtPosition(t,r).parent.parent;if((e.isBinaryExpression(n)||(n=n.parent,e.isBinaryExpression(n)))&&e.nodeIsMissing(n.operatorToken))return n}function a(t,r,n){var i=function(t){var r=[],n=t;for(;;){if(e.isBinaryExpression(n)&&e.nodeIsMissing(n.operatorToken)&&27===n.operatorToken.kind){if(r.push(n.left),e.isJsxChild(n.right))return r.push(n.right),r;if(e.isBinaryExpression(n.right)){n=n.right;continue}return}return}}(n);i&&t.replaceNode(r,n,e.factory.createJsxFragment(e.factory.createJsxOpeningFragment(),i,e.factory.createJsxJsxClosingFragment()))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.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.Wrap_in_JSX_fragment,r,e.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=i(e.sourceFile,r.start);n&&a(t,e.sourceFile,n)}))}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var n="fixConvertToMappedObjectType",i=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];function a(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(t,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.factory.createTypeParameterDeclaration(e.cast(c.name,e.isIdentifier),c.type),l=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(a)?e.factory.createModifier(144):void 0,u,void 0,a.questionToken,a.type,void 0),d=e.factory.createIntersectionTypeNode(r(r(r([],e.getAllSuperTypeNodes(o),!0),[l],!1),s.length?[e.factory.createTypeLiteralNode(s)]:e.emptyArray,!0));t.replaceNode(n,o,function(t,r){return e.factory.createTypeAliasDeclaration(t.decorators,t.modifiers,t.name,t.typeParameters,r)}(o,d))}t.registerCodeFix({errorCodes:i,getCodeActions:function(r){var i=r.sourceFile,s=r.span,c=a(i,s.start);if(c){var u=e.textChanges.ChangeTracker.with(r,(function(e){return o(e,i,c)})),l=e.idText(c.container.name);return[t.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 t.codeFixAll(e,i,(function(e,t){var r=a(t.file,t.start);r&&o(e,t.file,r)}))}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){var t,r,n;t=e.codefix||(e.codefix={}),r="removeAccidentalCallParentheses",n=[e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=e.findAncestor(e.getTokenAtPosition(n.sourceFile,n.span.start),e.isCallExpression);if(i){var a=e.textChanges.ChangeTracker.with(n,(function(e){e.deleteRange(n.sourceFile,{pos:i.expression.end,end:i.end})}));return[t.createCodeFixActionWithoutFixAll(r,a,e.Diagnostics.Remove_parentheses)]}},fixIds:[r]})}(c||(c={})),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 132===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&&103!==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={}))}(c||(c={})),function(e){!function(t){var r=[e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],n="splitTypeOnlyImport";function i(t,r){return e.findAncestor(e.getTokenAtPosition(t,r.start),e.isImportDeclaration)}function a(t,r,n){if(r){var i=e.Debug.checkDefined(r.importClause);t.replaceNode(n.sourceFile,r,e.factory.updateImportDeclaration(r,r.decorators,r.modifiers,e.factory.updateImportClause(i,i.isTypeOnly,i.name,void 0),r.moduleSpecifier,r.assertClause)),t.insertNodeAfter(n.sourceFile,r,e.factory.createImportDeclaration(void 0,void 0,e.factory.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),r.moduleSpecifier,r.assertClause))}}t.registerCodeFix({errorCodes:r,fixIds:[n],getCodeActions:function(r){var o=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,i(r.sourceFile,r.span),r)}));if(o.length)return[t.createCodeFixAction(n,o,e.Diagnostics.Split_into_two_separate_import_declarations,n,e.Diagnostics.Split_all_invalid_type_only_imports)]},getAllCodeActions:function(e){return t.codeFixAll(e,r,(function(t,r){a(t,i(e.sourceFile,r),e)}))}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){var t,r,n;t=e.codefix||(e.codefix={}),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,a=n.getTypeChecker().getSymbolAtLocation(e.getTokenAtPosition(t,r)),o=e.tryCast(null===(i=null==a?void 0:a.valueDeclaration)||void 0===i?void 0:i.parent,e.isVariableDeclarationList);if(void 0!==o){var s=e.findChildOfKind(o,85,t);if(void 0!==s)return e.createRange(s.pos,s.end)}}(i,a.start,o);if(void 0!==s){var c=e.textChanges.ChangeTracker.with(n,(function(e){return function(e,t,r){e.replaceRangeWithText(t,r,"let")}(e,i,s)}));return[t.createCodeFixAction(r,c,e.Diagnostics.Convert_const_to_let,r,e.Diagnostics.Convert_const_to_let)]}},fixIds:[r]})}(c||(c={})),function(e){!function(t){var r="fixExpectedComma",n=[e.Diagnostics._0_expected.code];function i(t,r,n){var i=e.getTokenAtPosition(t,r);return 26===i.kind&&i.parent&&(e.isObjectLiteralExpression(i.parent)||e.isArrayLiteralExpression(i.parent))?{node:i}:void 0}function a(t,r,n){var i=n.node,a=e.factory.createToken(27);t.replaceNode(r,i,a)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=i(o,n.span.start,n.errorCode);if(s){var c=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,s)}));return[t.createCodeFixAction(r,c,[e.Diagnostics.Change_0_to_1,";",","],r,[e.Diagnostics.Change_0_to_1,";",","])]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=i(r.file,r.start,r.code);n&&a(t,e.sourceFile,n)}))}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var r="addVoidToPromise",n=[e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];function i(t,r,n,i,a){var o=e.getTokenAtPosition(r,n.start);if(e.isIdentifier(o)&&e.isCallExpression(o.parent)&&o.parent.expression===o&&0===o.parent.arguments.length){var s=i.getTypeChecker(),c=s.getSymbolAtLocation(o),u=null==c?void 0:c.valueDeclaration;if(u&&e.isParameter(u)&&e.isNewExpression(u.parent.parent)&&!(null==a?void 0:a.has(u))){null==a||a.add(u);var l=function(t){var r;if(!e.isInJSFile(t))return t.typeArguments;if(e.isParenthesizedExpression(t.parent)){var n=null===(r=e.getJSDocTypeTag(t.parent))||void 0===r?void 0:r.typeExpression.type;if(n&&e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)&&"Promise"===e.idText(n.typeName))return n.typeArguments}}(u.parent.parent);if(e.some(l)){var d=l[0],_=!e.isUnionTypeNode(d)&&!e.isParenthesizedTypeNode(d)&&e.isParenthesizedTypeNode(e.factory.createUnionTypeNode([d,e.factory.createKeywordTypeNode(114)]).types[0]);_&&t.insertText(r,d.pos,"("),t.insertText(r,d.end,_?") | void":" | void")}else{var p=s.getResolvedSignature(o.parent),f=null==p?void 0:p.parameters[0],g=f&&s.getTypeOfSymbolAtLocation(f,u.parent.parent);e.isInJSFile(u)?(!g||3&g.flags)&&(t.insertText(r,u.parent.parent.end,")"),t.insertText(r,e.skipTrivia(r.text,u.parent.parent.pos),"/** @type {Promise} */(")):(!g||2&g.flags)&&t.insertText(r,u.parent.parent.expression.end,"")}}}}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span,n.program)}));if(a.length>0)return[t.createCodeFixAction("addVoidToPromise",a,e.Diagnostics.Add_void_to_Promise_resolved_without_a_value,r,e.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:function(r){return t.codeFixAll(r,n,(function(t,n){return i(t,n.file,n,r.program,new e.Set)}))}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var r="Convert export",i={name:"Convert default export to named export",description:e.Diagnostics.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},a={name:"Convert named export to default export",description:e.Diagnostics.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"};function o(t,r){void 0===r&&(r=!0);var n=t.file,i=t.program,a=e.getRefactorContextSpan(t),o=e.getTokenAtPosition(n,a.start),s=o.parent&&1&e.getSyntacticModifierFlags(o.parent)&&r?o.parent:e.getParentNodeInSpan(o,n,a);if(!(s&&(e.isSourceFile(s.parent)||e.isModuleBlock(s.parent)&&e.isAmbientModule(s.parent.parent))))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_export_statement)};var c=e.isSourceFile(s.parent)?s.parent.symbol:s.parent.parent.symbol,u=e.getSyntacticModifierFlags(s)||(e.isExportAssignment(s)&&!s.isExportEquals?513:0),l=!!(512&u);if(!(1&u)||!l&&c.exports.has("default"))return{error:e.getLocaleSpecificMessage(e.Diagnostics.This_file_already_has_a_default_export)};var d=i.getTypeChecker(),_=function(t){return e.isIdentifier(t)&&d.getSymbolAtLocation(t)?void 0:{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_named_export)}};switch(s.kind){case 255:case 256:case 257:case 259:case 258:case 260:if(!(g=s).name)return;return _(g.name)||{exportNode:g,exportName:g.name,wasDefault:l,exportingModuleSymbol:c};case 236:var p=s;if(!(2&p.declarationList.flags)||1!==p.declarationList.declarations.length)return;var f=e.first(p.declarationList.declarations);if(!f.initializer)return;return e.Debug.assert(!l,"Can't have a default flag here"),_(f.name)||{exportNode:p,exportName:f.name,wasDefault:l,exportingModuleSymbol:c};case 270:var g;if((g=s).isExportEquals)return;return _(g.expression)||{exportNode:g,exportName:g.expression,wasDefault:l,exportingModuleSymbol:c};default:return}}function s(t,r){return e.factory.createImportSpecifier(!1,t===r?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(r))}function c(t,r){return e.factory.createExportSpecifier(!1,t===r?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(r))}t.registerRefactor(r,{kinds:[i.kind,a.kind],getAvailableActions:function(s){var c=o(s,"invoked"===s.triggerReason);if(!c)return e.emptyArray;if(!t.isRefactorErrorInfo(c)){var u=c.wasDefault?i:a;return[{name:r,description:u.description,actions:[u]}]}return s.preferences.provideRefactorNotApplicableReason?[{name:r,description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[n(n({},i),{notApplicableReason:c.error}),n(n({},a),{notApplicableReason:c.error})]}]:e.emptyArray},getEditsForAction:function(r,n){e.Debug.assert(n===i.name||n===a.name,"Unexpected action name");var u=o(r);e.Debug.assert(u&&!t.isRefactorErrorInfo(u),"Expected applicable refactor info");var l=e.textChanges.ChangeTracker.with(r,(function(t){return function(t,r,n,i,a){(function(t,r,n,i){var a=r.wasDefault,o=r.exportNode,s=r.exportName;if(a)if(e.isExportAssignment(o)&&!o.isExportEquals){var u=o.expression,l=c(u.text,u.text);n.replaceNode(t,o,e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([l])))}else n.delete(t,e.Debug.checkDefined(e.findModifier(o,88),"Should find a default keyword in modifier list"));else{var d=e.Debug.checkDefined(e.findModifier(o,93),"Should find an export keyword in modifier list");switch(o.kind){case 255:case 256:case 257:n.insertNodeAfter(t,d,e.factory.createToken(88));break;case 236:var _=e.first(o.declarationList.declarations);if(!e.FindAllReferences.Core.isSymbolReferencedInFile(s,i,t)&&!_.type){n.replaceNode(t,o,e.factory.createExportDefault(e.Debug.checkDefined(_.initializer,"Initializer was previously known to be present")));break}case 259:case 258:case 260:n.deleteModifier(t,d),n.insertNodeAfter(t,o,e.factory.createExportDefault(e.factory.createIdentifier(s.text)));break;default:e.Debug.fail("Unexpected exportNode kind ".concat(o.kind))}}})(t,n,i,r.getTypeChecker()),function(t,r,n,i){var a=r.wasDefault,o=r.exportName,u=r.exportingModuleSymbol,l=t.getTypeChecker(),d=e.Debug.checkDefined(l.getSymbolAtLocation(o),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(t.getSourceFiles(),l,i,d,u,o.text,a,(function(t){var r=t.getSourceFile();a?function(t,r,n,i){var a=r.parent;switch(a.kind){case 205:n.replaceNode(t,r,e.factory.createIdentifier(i));break;case 269:case 274:var o=a;n.replaceNode(t,o,s(i,o.name.text));break;case 266:var c=a;e.Debug.assert(c.name===r,"Import clause name should match provided ref");o=s(i,r.text);var u=c.namedBindings;if(u)if(267===u.kind){n.deleteRange(t,{pos:r.getStart(t),end:u.getStart(t)});var l=e.isStringLiteral(c.parent.moduleSpecifier)?e.quotePreferenceFromString(c.parent.moduleSpecifier,t):1,d=e.makeImport(void 0,[s(i,r.text)],c.parent.moduleSpecifier,l);n.insertNodeAfter(t,c.parent,d)}else n.delete(t,r),n.insertNodeAtEndOfList(t,u.elements,o);else n.replaceNode(t,r,e.factory.createNamedImports([o]));break;default:e.Debug.failBadSyntaxKind(a)}}(r,t,n,o.text):function(t,r,n){var i=r.parent;switch(i.kind){case 205:n.replaceNode(t,r,e.factory.createIdentifier("default"));break;case 269:var a=e.factory.createIdentifier(i.name.text);1===i.parent.elements.length?n.replaceNode(t,i.parent,a):(n.delete(t,i),n.insertNodeBefore(t,i.parent,a));break;case 274:n.replaceNode(t,i,c("default",i.name.text));break;default:e.Debug.assertNever(i,"Unexpected parent kind ".concat(i.kind))}}(r,t,n)}))}(r,n,i,a)}(r.file,r.program,u,t,r.cancellationToken)}));return{edits:l,renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(c||(c={})),function(e){!function(t){var r="Convert import",i={name:"Convert namespace import to named imports",description:e.Diagnostics.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},a={name:"Convert named imports to namespace import",description:e.Diagnostics.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"};function o(t,r){void 0===r&&(r=!0);var n=t.file,i=e.getRefactorContextSpan(t),a=e.getTokenAtPosition(n,i.start),o=r?e.findAncestor(a,e.isImportDeclaration):e.getParentNodeInSpan(a,n,i);if(!o||!e.isImportDeclaration(o))return{error:"Selection is not an import declaration."};var s=i.start+i.length,c=e.findNextToken(o,o.parent,n);if(!(c&&s>c.getStart())){var u=o.importClause;return u?u.namedBindings?u.namedBindings:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_namespace_import_or_named_imports)}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_import_clause)}}}function s(t){return e.isPropertyAccessExpression(t)?t.name:t.right}function c(t,r,n){return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,r,n&&n.length?e.factory.createNamedImports(n):void 0),t.moduleSpecifier,void 0)}t.registerRefactor(r,{kinds:[i.kind,a.kind],getAvailableActions:function(s){var c=o(s,"invoked"===s.triggerReason);if(!c)return e.emptyArray;if(!t.isRefactorErrorInfo(c)){var u=267===c.kind?i:a;return[{name:r,description:u.description,actions:[u]}]}return s.preferences.provideRefactorNotApplicableReason?[{name:r,description:i.description,actions:[n(n({},i),{notApplicableReason:c.error})]},{name:r,description:a.description,actions:[n(n({},a),{notApplicableReason:c.error})]}]:e.emptyArray},getEditsForAction:function(r,n){e.Debug.assert(n===i.name||n===a.name,"Unexpected action name");var u=o(r);e.Debug.assert(u&&!t.isRefactorErrorInfo(u),"Expected applicable refactor info");var l=e.textChanges.ChangeTracker.with(r,(function(t){return n=r.file,i=r.program,a=t,o=u,l=i.getTypeChecker(),void(267===o.kind?function(t,r,n,i,a){var o=!1,u=[],l=new e.Map;e.FindAllReferences.Core.eachSymbolReferenceInFile(i.name,r,t,(function(t){if(e.isPropertyAccessOrQualifiedName(t.parent)){var n=s(t.parent).text;r.resolveName(n,t,67108863,!0)&&l.set(n,!0),e.Debug.assert(function(t){return e.isPropertyAccessExpression(t)?t.expression:t.left}(t.parent)===t,"Parent expression should match id"),u.push(t.parent)}else o=!0}));for(var d=new e.Map,_=0,p=u;_=u.pos?_.getEnd():u.getEnd()),g=o?function(e){for(;e.parent;){if(c(e)&&!c(e.parent))return e;e=e.parent}}(u):function(e,t){for(;e.parent;){if(c(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}}(u,f),m=g&&c(g)?function(t){if(s(t))return t;if(e.isVariableStatement(t)){var r=e.getSingleVariableOfVariableStatement(t),n=null==r?void 0:r.initializer;return n&&s(n)?n:void 0}return t.expression&&s(t.expression)?t.expression:void 0}(g):void 0;if(!m)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var y=i.getTypeChecker();return e.isConditionalExpression(m)?function(t,r){var n=t.condition,i=p(t.whenTrue);if(!i||r.isNullableType(r.getTypeAtLocation(i)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};if((e.isPropertyAccessExpression(n)||e.isIdentifier(n))&&d(n,i.expression))return{finalExpression:i,occurrences:[n],expression:t};if(e.isBinaryExpression(n)){var a=l(i.expression,n);return a?{finalExpression:i,occurrences:a,expression:t}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}}(m,y):function(t){if(55!==t.operatorToken.kind)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)};var r=p(t.right);if(!r)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var n=l(r.expression,t.left);return n?{finalExpression:r,occurrences:n,expression:t}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}(m)}}function l(t,r){for(var n=[];e.isBinaryExpression(r)&&55===r.operatorToken.kind;){var i=d(e.skipParentheses(t),e.skipParentheses(r.right));if(!i)break;n.push(i),t=i,r=r.left}var a=d(t,r);return a&&n.push(a),n.length>0?n:void 0}function d(t,r){if(e.isIdentifier(r)||e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r))return function(t,r){for(;(e.isCallExpression(t)||e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t))&&_(t)!==_(r);)t=t.expression;for(;e.isPropertyAccessExpression(t)&&e.isPropertyAccessExpression(r)||e.isElementAccessExpression(t)&&e.isElementAccessExpression(r);){if(_(t)!==_(r))return!1;t=t.expression,r=r.expression}return e.isIdentifier(t)&&e.isIdentifier(r)&&t.getText()===r.getText()}(t,r)?r:void 0}function _(t){return e.isIdentifier(t)||e.isStringOrNumericLiteralLike(t)?t.getText():e.isPropertyAccessExpression(t)?_(t.name):e.isElementAccessExpression(t)?_(t.argumentExpression):void 0}function p(t){return t=e.skipParentheses(t),e.isBinaryExpression(t)?p(t.left):(e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)||e.isCallExpression(t))&&!e.isOptionalChain(t)?t:void 0}function f(t,r,n){if(e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r)||e.isCallExpression(r)){var i=f(t,r.expression,n),a=n.length>0?n[n.length-1]:void 0,o=(null==a?void 0:a.getText())===r.expression.getText();if(o&&n.pop(),e.isCallExpression(r))return o?e.factory.createCallChain(i,e.factory.createToken(28),r.typeArguments,r.arguments):e.factory.createCallChain(i,r.questionDotToken,r.typeArguments,r.arguments);if(e.isPropertyAccessExpression(r))return o?e.factory.createPropertyAccessChain(i,e.factory.createToken(28),r.name):e.factory.createPropertyAccessChain(i,r.questionDotToken,r.name);if(e.isElementAccessExpression(r))return o?e.factory.createElementAccessChain(i,e.factory.createToken(28),r.argumentExpression):e.factory.createElementAccessChain(i,r.questionDotToken,r.argumentExpression)}return r}t.registerRefactor(i,{kinds:[o.kind],getAvailableActions:function(r){var s=u(r,"invoked"===r.triggerReason);return s?t.isRefactorErrorInfo(s)?r.preferences.provideRefactorNotApplicableReason?[{name:i,description:a,actions:[n(n({},o),{notApplicableReason:s.error})]}]:e.emptyArray:[{name:i,description:a,actions:[o]}]:e.emptyArray},getEditsForAction:function(r,n){var i=u(r);e.Debug.assert(i&&!t.isRefactorErrorInfo(i),"Expected applicable refactor info");var a=e.textChanges.ChangeTracker.with(r,(function(t){return function(t,r,n,i,a){var o=i.finalExpression,s=i.occurrences,c=i.expression,u=s[s.length-1],l=f(r,o,s);l&&(e.isPropertyAccessExpression(l)||e.isElementAccessExpression(l)||e.isCallExpression(l))&&(e.isBinaryExpression(c)?n.replaceNodeRange(t,u,o,l):e.isConditionalExpression(c)&&n.replaceNode(t,c,e.factory.createBinaryExpression(l,e.factory.createToken(60),c.whenFalse)))}(r.file,r.program.getTypeChecker(),t,i)}));return{edits:a,renameFilename:void 0,renameLocation:void 0}}})})((t=e.refactor||(e.refactor={})).convertToOptionalChainExpression||(t.convertToOptionalChainExpression={}))}(c||(c={})),function(e){var t;(function(r){var n="Convert overload list to single signature",i=e.Diagnostics.Convert_overload_list_to_single_signature.message,a={name:n,description:i,kind:"refactor.rewrite.function.overloadList"};function o(e){switch(e.kind){case 167:case 168:case 173:case 170:case 174:case 255:return!0}return!1}function s(t,r,n){var i=e.getTokenAtPosition(t,r),a=e.findAncestor(i,o);if(a){var s=n.getTypeChecker(),c=a.symbol;if(c){var u=c.declarations;if(!(e.length(u)<=1)&&e.every(u,(function(r){return e.getSourceFileOfNode(r)===t}))&&o(u[0])){var l=u[0].kind;if(e.every(u,(function(e){return e.kind===l}))){var d=u;if(!e.some(d,(function(t){return!!t.typeParameters||e.some(t.parameters,(function(t){return!!t.decorators||!!t.modifiers||!e.isIdentifier(t.name)}))}))){var _=e.mapDefined(d,(function(e){return s.getSignatureFromDeclaration(e)}));if(e.length(_)===e.length(u)){var p=s.getReturnTypeOfSignature(_[0]);if(e.every(_,(function(e){return s.getReturnTypeOfSignature(e)===p})))return d}}}}}}}t.registerRefactor(n,{kinds:[a.kind],getEditsForAction:function(t){var r=t.file,n=t.startPosition,i=t.program,a=s(r,n,i);if(a){var o=i.getTypeChecker(),c=a[a.length-1],u=c;switch(c.kind){case 167:u=e.factory.updateMethodSignature(c,c.modifiers,c.name,c.questionToken,c.typeParameters,d(a),c.type);break;case 168:u=e.factory.updateMethodDeclaration(c,c.decorators,c.modifiers,c.asteriskToken,c.name,c.questionToken,c.typeParameters,d(a),c.type,c.body);break;case 173:u=e.factory.updateCallSignature(c,c.typeParameters,d(a),c.type);break;case 170:u=e.factory.updateConstructorDeclaration(c,c.decorators,c.modifiers,d(a),c.body);break;case 174:u=e.factory.updateConstructSignature(c,c.typeParameters,d(a),c.type);break;case 255:u=e.factory.updateFunctionDeclaration(c,c.decorators,c.modifiers,c.asteriskToken,c.name,c.typeParameters,d(a),c.type,c.body);break;default:return e.Debug.failBadSyntaxKind(c,"Unhandled signature kind in overload list conversion refactoring")}if(u!==c){var l=e.textChanges.ChangeTracker.with(t,(function(e){e.replaceNodeRange(r,a[0],a[a.length-1],u)}));return{renameFilename:void 0,renameLocation:void 0,edits:l}}}function d(t){var r=t[t.length-1];return e.isFunctionLikeDeclaration(r)&&r.body&&(t=t.slice(0,t.length-1)),e.factory.createNodeArray([e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),"args",void 0,e.factory.createUnionTypeNode(e.map(t,_)))])}function _(t){var r=e.map(t.parameters,p);return e.setEmitFlags(e.factory.createTupleTypeNode(r),e.some(r,(function(t){return!!e.length(e.getSyntheticLeadingComments(t))}))?0:1)}function p(t){e.Debug.assert(e.isIdentifier(t.name));var r=e.setTextRange(e.factory.createNamedTupleMember(t.dotDotDotToken,t.name,t.questionToken,t.type||e.factory.createKeywordTypeNode(130)),t),n=t.symbol&&t.symbol.getDocumentationComment(o);if(n){var i=e.displayPartsToString(n);i.length&&e.setSyntheticLeadingComments(r,[{text:"*\n".concat(i.split("\n").map((function(e){return" * ".concat(e)})).join("\n"),"\n "),kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return r}},getAvailableActions:function(t){var r=t.file,o=t.startPosition,c=t.program;return s(r,o,c)?[{name:n,description:i,actions:[a]}]:e.emptyArray}})})((t=e.refactor||(e.refactor={})).addOrRemoveBracesToArrowFunction||(t.addOrRemoveBracesToArrowFunction={}))}(c||(c={})),function(e){var t;(function(r){var i,a,o,s,c="Extract Symbol",u={name:"Extract Constant",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),kind:"refactor.extract.constant"},l={name:"Extract Function",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),kind:"refactor.extract.function"};function d(r){var i=r.kind,a=p(r.file,e.getRefactorContextSpan(r),"invoked"===r.triggerReason),o=a.targetRange;if(void 0===o){if(!a.errors||0===a.errors.length||!r.preferences.provideRefactorNotApplicableReason)return e.emptyArray;var s=[];return t.refactorKindBeginsWith(l.kind,i)&&s.push({name:c,description:l.description,actions:[n(n({},l),{notApplicableReason:F(a.errors)})]}),t.refactorKindBeginsWith(u.kind,i)&&s.push({name:c,description:u.description,actions:[n(n({},u),{notApplicableReason:F(a.errors)})]}),s}var d=function(t,r){var n=m(t,r),i=n.scopes,a=n.readsAndWrites,o=a.functionErrorsPerScope,s=a.constantErrorsPerScope,c=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 170:return"constructor";case 212:case 255:return t.name?"function '".concat(t.name.text,"'"):e.ANONYMOUS;case 213:return"arrow function";case 168:return"method '".concat(t.name.getText(),"'");case 171:return"'get ".concat(t.name.getText(),"'");case 172:return"'set ".concat(t.name.getText(),"'");default:throw e.Debug.assertNever(t,"Unexpected scope kind ".concat(t.kind))}}(t):e.isClassLike(t)?function(e){return 256===e.kind?e.name?"class '".concat(e.name.text,"'"):"anonymous class declaration":e.name?"class expression '".concat(e.name.text,"'"):"anonymous class expression"}(t):function(e){return 261===e.kind?"namespace '".concat(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]}}}));return c}(o,r);if(void 0===d)return e.emptyArray;for(var _,f,g=[],y=new e.Map,v=[],h=new e.Map,D=0,x=0,b=d;x0;if(e.isBlock(t)&&!s&&0===i.size)return{body:e.factory.createBlock(t.statements,!0),returnValueProperty:void 0};var c=!1,u=e.factory.createNodeArray(e.isBlock(t)?t.statements.slice(0):[e.isStatement(t)?t:e.factory.createReturnStatement(e.skipParentheses(t))]);if(s||i.size){var l=e.visitNodes(u,_).slice();if(s&&!a&&e.isStatement(t)){var d=h(r,n);1===d.length?l.push(e.factory.createReturnStatement(d[0].name)):l.push(e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(d)))}return{body:e.factory.createBlock(l,!0),returnValueProperty:o}}return{body:e.factory.createBlock(u,!0),returnValueProperty:void 0};function _(t){if(!c&&e.isReturnStatement(t)&&s){var a=h(r,n);return t.expression&&(o||(o="__return"),a.unshift(e.factory.createPropertyAssignment(o,e.visitNode(t.expression,_)))),1===a.length?e.factory.createReturnStatement(a[0].name):e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(a))}var u=c;c=c||e.isFunctionLikeDeclaration(t)||e.isClassLike(t);var l=i.get(e.getNodeId(t).toString()),d=l?e.getSynthesizedDeepClone(l):e.visitEachChild(t,_,e.nullTransformationContext);return c=u,d}}(t,i,u,_,!!(o.facts&a.HasReturn)),O=I.body,M=I.returnValueProperty;if(e.suppressLeadingAndTrailingTrivia(O),e.isClassLike(r)){var L=b?[]:[e.factory.createModifier(121)];o.facts&a.InStaticRegion&&L.push(e.factory.createModifier(124)),o.facts&a.IsAsyncFunction&&L.push(e.factory.createModifier(131)),w=e.factory.createMethodDeclaration(void 0,L.length?L:void 0,o.facts&a.IsGenerator?e.factory.createToken(41):void 0,T,void 0,F,C,c,O)}else w=e.factory.createFunctionDeclaration(void 0,o.facts&a.IsAsyncFunction?[e.factory.createToken(131)]:void 0,o.facts&a.IsGenerator?e.factory.createToken(41):void 0,T,F,C,c,O);var R=e.textChanges.ChangeTracker.fromContext(s),B=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)}))}((D(o.range)?e.last(o.range):o.range).end,r);B?R.insertNodeBefore(s.file,B,w,!0):R.insertNodeAtEndOfScope(s.file,r,w),g.writeFixes(R);var j=[],J=function(t,r,n){var i=e.factory.createIdentifier(n);if(e.isClassLike(t)){var o=r.facts&a.InStaticRegion?e.factory.createIdentifier(t.name.text):e.factory.createThis();return e.factory.createPropertyAccessExpression(o,i)}return i}(r,o,x),K=e.factory.createCallExpression(J,N,E);if(o.facts&a.IsGenerator&&(K=e.factory.createYieldExpression(e.factory.createToken(41),K)),o.facts&a.IsAsyncFunction&&(K=e.factory.createAwaitExpression(K)),S(t)&&(K=e.factory.createJsxExpression(void 0,K)),i.length&&!u)if(e.Debug.assert(!M,"Expected no returnValueProperty"),e.Debug.assert(!(o.facts&a.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),1===i.length){var z=i[0];j.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(z.name),void 0,e.getSynthesizedDeepClone(z.type),K)],z.parent.flags)))}else{for(var U=[],V=[],q=i[0].parent.flags,W=!1,H=0,G=i;H0,"Found no members");for(var a=!0,o=0,s=i;ot)return n||i[0];if(a&&!e.isPropertyDeclaration(c)){if(void 0!==n)return c;a=!1}n=c}return void 0===n?e.Debug.fail():n}(t.pos,r);m.insertNodeBefore(o.file,D,v,!0),m.replaceNode(o.file,t,h)}else{var x=e.factory.createVariableDeclaration(d,void 0,p,f),T=function(t,r){for(var n;void 0!==t&&t!==r;){if(e.isVariableDeclaration(t)&&t.initializer===n&&e.isVariableDeclarationList(t.parent)&&t.parent.declarations.length>1)return t;n=t,t=t.parent}}(t,r);if(T)m.insertNodeBefore(o.file,T,x),h=e.factory.createIdentifier(d),m.replaceNode(o.file,t,h);else if(237===t.parent.kind&&r===e.findAncestor(t,g)){var C=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([x],2));m.replaceNode(o.file,t.parent,C)}else C=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([x],2)),D=function(t,r){var n;e.Debug.assert(!e.isClassLike(r));for(var i=t;i!==r;i=i.parent)g(i)&&(n=i);for(i=(n||t).parent;;i=i.parent){if(b(i)){for(var a=void 0,o=0,s=i.statements;ot.pos)break;a=c}return!a&&e.isCaseClause(i)?(e.Debug.assert(e.isSwitchStatement(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):e.Debug.checkDefined(a,"prevStatement failed to get set")}e.Debug.assert(i!==r,"Didn't encounter a block-like before encountering scope")}}(t,r),0===D.pos?m.insertNodeAtTopOfFile(o.file,C,!1):m.insertNodeBefore(o.file,D,C,!1),237===t.parent.kind?m.delete(o.file,t.parent):(h=e.factory.createIdentifier(d),S(t)&&(h=e.factory.createJsxExpression(void 0,h)),m.replaceNode(o.file,t,h))}var E=m.getChanges(),k=t.getSourceFile().fileName,A=e.getRenameLocation(E,k,d,!0);return{renameFilename:k,renameLocation:A,edits:E};function F(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,d=i.parameters;l=r.start+r.length)return(o||(o=[])).push(e.createDiagnosticForNode(n,i.cannotExtractSuper)),!0}else g|=a.UsesThis;break;case 213:e.forEachChild(n,(function t(r){if(e.isThis(r))g|=a.UsesThis;else{if(e.isClassLike(r)||e.isFunctionLike(r)&&!e.isArrowFunction(r))return!1;e.forEachChild(r,t)}}));case 256:case 255:e.isSourceFile(n.parent)&&void 0===n.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(n,i.functionWillNotBeVisibleInTheNewScope));case 225:case 212:case 168:case 170:case 171:case 172:return!1}var d=u;switch(n.kind){case 238:case 251:u=0;break;case 234:n.parent&&251===n.parent.kind&&n.parent.finallyBlock===n&&(u=4);break;case 289:case 288:u|=1;break;default:e.isIterationStatement(n,!1)&&(u|=3)}switch(n.kind){case 191:case 108:g|=a.UsesThis;break;case 249:var _=n.label;(c||(c=[])).push(_.escapedText),e.forEachChild(n,t),c.pop();break;case 245:case 244:(_=n.label)?e.contains(c,_.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(n,i.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):u&(245===n.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(n,i.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 217:g|=a.IsAsyncFunction;break;case 223:g|=a.IsGenerator;break;case 246:4&u?g|=a.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(n,i.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(n,t)}u=d}(t),o}}function f(t){return e.isStatement(t)?[t]:e.isExpressionNode(t)?e.isExpressionStatement(t.parent)?[t.parent]:t:void 0}function g(t){return e.isFunctionLikeDeclaration(t)||e.isSourceFile(t)||e.isModuleBlock(t)||e.isClassLike(t)}function m(t,r){var n=r.file,o=function(t){var r=D(t.range)?e.first(t.range):t.range;if(t.facts&a.UsesThis){var n=e.getContainingClass(r);if(n){var i=e.findAncestor(r,e.isFunctionLikeDeclaration);return i?[i,n]:[n]}}for(var o=[];;)if(163===(r=r.parent).kind&&(r=e.findAncestor(r,(function(t){return e.isFunctionLikeDeclaration(t)})).parent),g(r)&&(o.push(r),303===r.kind))return o}(t),s=function(t,r){return D(t.range)?{pos:e.first(t.range).getStart(r),end:e.last(t.range).getEnd()}:t.range}(t,n),c=function(t,r,n,o,s,c){var u,l,d=new e.Map,_=[],p=[],f=[],g=[],m=[],y=new e.Map,v=[],h=D(t.range)?1===t.range.length&&e.isExpressionStatement(t.range[0])?t.range[0].expression:void 0:t.range;if(void 0===h){var x=t.range,b=e.first(x).getStart(),S=e.last(x).end;l=e.createFileDiagnostic(o,b,S-b,i.expressionExpected)}else 147456&s.getTypeAtLocation(h).flags&&(l=e.createDiagnosticForNode(h,i.uselessConstantType));for(var T=0,C=r;T0){for(var w=new e.Map,I=0,O=N;void 0!==O&&I0&&(n.usages.size>0||n.typeParameterUsages.size>0)){var a=D(t.range)?t.range[0]:t.range;g[r].push(e.createDiagnosticForNode(a,i.cannotAccessVariablesFromNestedScopes))}var o,s=!1;if(_[r].usages.forEach((function(t){2===t.usage&&(s=!0,106500&t.symbol.flags&&t.symbol.valueDeclaration&&e.hasEffectiveModifier(t.symbol.valueDeclaration,64)&&(o=t.symbol.valueDeclaration))})),e.Debug.assert(D(t.range)||0===v.length,"No variable declarations expected if something was extracted"),s&&!D(t.range)){var c=e.createDiagnosticForNode(t.range,i.cannotWriteInExpression);f[r].push(c),g[r].push(c)}else o&&r>0?(c=e.createDiagnosticForNode(o,i.cannotExtractReadonlyPropertyInitializerOutsideConstructor),f[r].push(c),g[r].push(c)):u&&(c=e.createDiagnosticForNode(u,i.cannotExtractExportedEntity),f[r].push(c),g[r].push(c))},K=0;K=u)return m;if(A.set(m,u),y){for(var v=0,h=_;v=0)){var n=e.isIdentifier(r)?G(r):s.getSymbolAtLocation(r);if(n){var i=e.find(m,(function(e){return e.symbol===n}));if(i)if(e.isVariableDeclaration(i)){var a=i.symbol.id.toString();y.has(a)||(v.push(i),y.set(a,!0))}else u=u||i}e.forEachChild(r,H)}}function G(t){return t.parent&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t?s.getShorthandAssignmentValueSymbol(t.parent):s.getSymbolAtLocation(t)}function Y(t,r,n){if(t){var i=t.getDeclarations();if(i&&i.some((function(e){return e.parent===r})))return e.factory.createIdentifier(t.name);var a=Y(t.parent,r,n);if(void 0!==a)return n?e.factory.createQualifiedName(a,e.factory.createIdentifier(t.name)):e.factory.createPropertyAccessExpression(a,t.name)}}}(t,o,s,n,r.program.getTypeChecker(),r.cancellationToken);return{scopes:o,readsAndWrites:c}}function y(e){var t,r=e.symbol;if(r&&r.declarations)for(var n=0,i=r.declarations;nn.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)=2&&e.every(t,(function(t){return function(t,r){if(e.isRestParameter(t)){var n=r.getTypeAtLocation(t);if(!r.isArrayType(n)&&!r.isTupleType(n))return!1}return!t.modifiers&&!t.decorators&&e.isIdentifier(t.name)}(t,r)}))}(t.parameters,r))return!1;switch(t.kind){case 255:return m(t)&&g(t,r);case 168:if(e.isObjectLiteralExpression(t.parent)){var i=s(t.name,r);return 1===(null===(n=null==i?void 0:i.declarations)||void 0===n?void 0:n.length)&&g(t,r)}return g(t,r);case 170:return e.isClassDeclaration(t.parent)?m(t.parent)&&g(t,r):y(t.parent.parent)&&g(t,r);case 212:case 213:return y(t.parent)}return!1}(a,n)&&e.rangeContainsRange(a,i))||a.body&&e.rangeContainsRange(a.body,i)?void 0:a}function f(t){return e.isMethodSignature(t)&&(e.isInterfaceDeclaration(t.parent)||e.isTypeLiteralNode(t.parent))}function g(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function m(t){return!!t.name||!!e.findModifier(t,88)}function y(t){return e.isVariableDeclaration(t)&&e.isVarConst(t)&&e.isIdentifier(t.name)&&!t.type}function v(t){return t.length>0&&e.isThis(t[0].name)}function h(t){return v(t)&&(t=e.factory.createNodeArray(t.slice(1),t.hasTrailingComma)),t}function D(t,r){var n=h(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.factory.createShorthandPropertyAssignment(t):e.factory.createPropertyAssignment(t,r)}(b(n[r]),t);return e.suppressLeadingAndTrailingTrivia(i.name),e.isPropertyAssignment(i)&&e.suppressLeadingAndTrailingTrivia(i.initializer),e.copyComments(t,i),i}));if(i&&r.length>=n.length){var s=r.slice(n.length-1),c=e.factory.createPropertyAssignment(b(e.last(n)),e.factory.createArrayLiteralExpression(s));o.push(c)}return e.factory.createObjectLiteralExpression(o,!1)}function x(t,r,n){var i,a,o,s=r.getTypeChecker(),c=h(t.parameters),u=e.map(c,(function(t){var r=e.factory.createBindingElement(void 0,void 0,b(t),e.isRestParameter(t)&&m(t)?e.factory.createArrayLiteralExpression():t.initializer);return e.suppressLeadingAndTrailingTrivia(r),t.initializer&&r.initializer&&e.copyComments(t.initializer,r.initializer),r})),l=e.factory.createObjectBindingPattern(u),d=(i=c,a=e.map(i,g),e.addEmitFlags(e.factory.createTypeLiteralNode(a),1));e.every(c,m)&&(o=e.factory.createObjectLiteralExpression());var _=e.factory.createParameterDeclaration(void 0,void 0,void 0,l,void 0,d,o);if(v(t.parameters)){var p=t.parameters[0],f=e.factory.createParameterDeclaration(void 0,void 0,void 0,p.name,void 0,p.type);return e.suppressLeadingAndTrailingTrivia(f.name),e.copyComments(p.name,f.name),p.type&&(e.suppressLeadingAndTrailingTrivia(f.type),e.copyComments(p.type,f.type)),e.factory.createNodeArray([f,_])}return e.factory.createNodeArray([_]);function g(t){var i=t.type;i||!t.initializer&&!e.isRestParameter(t)||(i=function(t){var i=s.getTypeAtLocation(t);return e.getTypeNodeIfAccessible(i,t,r,n)}(t));var a=e.factory.createPropertySignature(void 0,b(t),m(t)?e.factory.createToken(57):t.questionToken,i);return e.suppressLeadingAndTrailingTrivia(a),e.copyComments(t.name,a.name),t.type&&a.type&&e.copyComments(t.type,a.type),a}function m(t){if(e.isRestParameter(t)){var r=s.getTypeAtLocation(t);return!s.isTupleType(r)}return s.isOptionalParameter(t)}}function b(t){return e.getTextOfIdentifierOrLiteral(t.name)}t.registerRefactor(i,{kinds:[o.kind],getEditsForAction:function(t,n){e.Debug.assert(n===i,"Unexpected action name");var a=t.file,o=t.startPosition,g=t.program,m=t.cancellationToken,y=t.host,v=p(a,o,g.getTypeChecker());if(v&&m){var h=function(t,n,i){var a=function(t){switch(t.kind){case 255:return t.name?[t.name]:[e.Debug.checkDefined(e.findModifier(t,88),"Nameless function declaration should be a default export")];case 168:return[t.name];case 170:var r=e.Debug.checkDefined(e.findChildOfKind(t,134,t.getSourceFile()),"Constructor declaration should have constructor keyword");return 225===t.parent.kind?[t.parent.parent.name,r]:[r];case 213:return[t.parent.name];case 212:return t.name?[t.name,t.parent.name]:[t.parent.name];default:return e.Debug.assertNever(t,"Unexpected function declaration kind ".concat(t.kind))}}(t),o=e.isConstructorDeclaration(t)?function(t){switch(t.parent.kind){case 256:var r=t.parent;return r.name?[r.name]:[e.Debug.checkDefined(e.findModifier(r,88),"Nameless class declaration should be a default export")];case 225:var n=t.parent,i=t.parent.parent,a=n.name;return a?[a,i.name]:[i.name]}}(t):[],p=e.deduplicate(r(r([],a,!0),o,!0),e.equateValues),g=n.getTypeChecker(),m=e.flatMap(p,(function(t){return e.FindAllReferences.getReferenceEntriesForNode(-1,t,n,n.getSourceFiles(),i)})),y=v(m);return e.every(y.declarations,(function(t){return e.contains(p,t)}))||(y.valid=!1),y;function v(r){for(var n={accessExpressions:[],typeUsages:[]},i={functionCalls:[],declarations:[],classReferences:n,valid:!0},p=e.map(a,h),m=e.map(o,h),y=e.isConstructorDeclaration(t),v=e.map(a,(function(e){return s(e,g)})),D=0,x=r;D0;){var o=i.shift();e.copyTrailingComments(t[o],a,r,3,!1),n(o,a)}}}(n,r,a),s=p(0,n),c=s[0],u=s[1],l=s[2],d=s[3];if(c===n.length){var g=e.factory.createNoSubstitutionTemplateLiteral(u,l);return o(d,g),g}var m=[],y=e.factory.createTemplateHead(u,l);o(d,y);for(var v,h=function(t){var r=function(t){return e.isParenthesizedExpression(t)&&(f(t),t=t.expression),t}(n[t]);a(t,r);var i=p(t+1,n),s=i[0],c=i[1],u=i[2],l=i[3],d=(t=s-1)==n.length-1;if(e.isTemplateExpression(r)){var g=e.map(r.templateSpans,(function(t,n){f(t);var i=n===r.templateSpans.length-1,a=t.literal.text+(i?c:""),o=_(t.literal)+(i?u:"");return e.factory.createTemplateSpan(t.expression,d?e.factory.createTemplateTail(a,o):e.factory.createTemplateMiddle(a,o))}));m.push.apply(m,g)}else{var y=d?e.factory.createTemplateTail(c,u):e.factory.createTemplateMiddle(c,u);o(l,y),m.push(e.factory.createTemplateSpan(r,y))}v=t},D=c;D1)return t.getUnionType(e.mapDefined(n,(function(e){return e.getReturnType()})))}var i=t.getSignatureFromDeclaration(r);if(i)return t.getReturnTypeOfSignature(i)}(a,i);if(!s)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_determine_function_return_type)};var c=a.typeToTypeNode(s,i,1);return c?{declaration:i,returnTypeNode:c}:void 0}}t.registerRefactor(i,{kinds:[o.kind],getEditsForAction:function(r){var n=s(r);if(n&&!t.isRefactorErrorInfo(n)){var i=e.textChanges.ChangeTracker.with(r,(function(t){return i=r.file,a=t,o=n.declaration,s=n.returnTypeNode,c=e.findChildOfKind(o,21,i),u=e.isArrowFunction(o)&&void 0===c,void((l=u?e.first(o.parameters):c)&&(u&&(a.insertNodeBefore(i,l,e.factory.createToken(20)),a.insertNodeAfter(i,l,e.factory.createToken(21))),a.insertNodeAt(i,l.end,s,{prefix:": "})));var i,a,o,s,c,u,l}));return{renameFilename:void 0,renameLocation:void 0,edits:i}}},getAvailableActions:function(r){var c=s(r);return c?t.isRefactorErrorInfo(c)?r.preferences.provideRefactorNotApplicableReason?[{name:i,description:a,actions:[n(n({},o),{notApplicableReason:c.error})]}]:e.emptyArray:[{name:i,description:a,actions:[o]}]:e.emptyArray}})})((t=e.refactor||(e.refactor={})).inferFunctionReturnType||(t.inferFunctionReturnType={}))}(c||(c={})),function(e){function t(t,r,n,a){var o=e.isNodeKind(t)?new i(t,r,n):79===t?new l(79,r,n):80===t?new d(80,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 r(e,t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}return r.prototype.assertHasRealPosition=function(t){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),t||"Node must have a real position for this operation")},r.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},r.prototype.getStart=function(t,r){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,t,r)},r.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},r.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},r.prototype.getWidth=function(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)},r.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},r.prototype.getLeadingTriviaWidth=function(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos},r.prototype.getFullText=function(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)},r.prototype.getText=function(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},r.prototype.getChildCount=function(e){return this.getChildren(e).length},r.prototype.getChildAt=function(e,t){return this.getChildren(t)[e]},r.prototype.getChildren=function(r){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=function(r,n){if(!e.isNodeKind(r.kind))return e.emptyArray;var i=[];if(e.isJSDocCommentContainingNode(r))return r.forEachChild((function(e){i.push(e)})),i;e.scanner.setText((n||r.getSourceFile()).text);var o=r.pos,s=function(e){a(i,o,e.pos,r),i.push(e),o=e.end},c=function(e){a(i,o,e.pos,r),i.push(function(e,r){var n=t(346,e.pos,e.end,r);n._children=[];for(var i=e.pos,o=0,s=e;o345}));return n.kind<160?n:n.getFirstToken(t)}},r.prototype.getLastToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t),n=e.lastOrUndefined(r);if(n)return n.kind<160?n:n.getLastToken(t)},r.prototype.forEachChild=function(t,r){return e.forEachChild(this,t,r)},r}();function a(r,n,i,a){for(e.scanner.setTextPos(n);n=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 255:case 212:case 168:case 167: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 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:r(a),e.forEachChild(a,i);break;case 163:if(!e.hasSyntacticModifier(a,16476))break;case 253:case 202:var l=a;if(e.isBindingPattern(l.name)){e.forEachChild(l.name,i);break}l.initializer&&i(l.initializer);case 297:case 166:case 165:r(a);break;case 271:var d=a;d.exportClause&&(e.isNamedExports(d.exportClause)?e.forEach(d.exportClause.elements,i):i(d.exportClause.name));break;case 265:var _=a.importClause;_&&(_.name&&r(_.name),_.namedBindings&&(267===_.namedBindings.kind?r(_.namedBindings):e.forEach(_.namedBindings.elements,i)));break;case 220: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),v=function(){function t(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}return t.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},t}();function h(t){var r=!0;for(var n in t)if(e.hasProperty(t,n)&&!D(n)){r=!1;break}if(r)return t;var i={};for(var n in t){if(e.hasProperty(t,n))i[D(n)?n:n.charAt(0).toLowerCase()+n.substr(1)]=t[n]}return i}function D(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function x(){return{target:1,jsx:1}}e.toEditorSettings=h,e.displayPartsToString=function(t){return t?e.map(t,(function(e){return e.text})).join(""):""},e.getDefaultCompilerOptions=x,e.getSupportedCodeFixes=function(){return e.codefix.getSupportedErrorCodes()};var b=function(){function t(t,r){this.host=t,this.currentDirectory=t.getCurrentDirectory(),this.fileNameToEntry=new e.Map;for(var n=0,i=t.getScriptFileNames();n=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null===e.tracing||void 0===e.tracing||e.tracing.instant("session","cancellationThrown",{kind:"ThrottledCancellationToken"}),new e.OperationCanceledException},t}();e.ThrottledCancellationToken=F;var N=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints"],P=r(r([],N,!0),["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],!1);function w(t){var r=function(t){switch(t.kind){case 10:case 14:case 8:if(161===t.parent.kind)return e.isObjectLiteralElement(t.parent.parent)?t.parent.parent:void 0;case 79:return!e.isObjectLiteralElement(t.parent)||204!==t.parent.parent.kind&&285!==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 I(t,r,n,i){var a=e.getNameFromPropertyName(t.name);if(!a)return e.emptyArray;if(!n.isUnion())return(o=n.getProperty(a))?[o]:e.emptyArray;var o,s=e.mapDefined(n.types,(function(n){return(e.isObjectLiteralExpression(t.parent)||e.isJsxAttributes(t.parent))&&r.isTypeInvalidDueToUnionDiscriminant(n,t.parent)?void 0:n.getProperty(a)}));if(i&&(0===s.length||s.length===n.types.length)&&(o=n.getProperty(a)))return[o];return 0===s.length?e.mapDefined(n.types,(function(e){return e.getProperty(a)})):s}e.createLanguageService=function(t,i,a){var o,s;void 0===i&&(i=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory())),s=void 0===a?e.LanguageServiceMode.Semantic:"boolean"==typeof a?a?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:a;var c,u,l=new S(t),d=0,_=t.getCancellationToken?new A(t.getCancellationToken()):k,p=t.getCurrentDirectory();function f(e){t.log&&t.log(e)}!e.localizedDiagnosticMessages&&t.getLocalizedDiagnosticMessages&&e.setLocalizedDiagnosticMessages(t.getLocalizedDiagnosticMessages());var g=e.hostUsesCaseSensitiveFileNames(t),m=e.createGetCanonicalFileName(g),y=e.getSourceMapper({useCaseSensitiveFileNames:function(){return g},getCurrentDirectory:function(){return p},getProgram:x,fileExists:e.maybeBind(t,t.fileExists),readFile:e.maybeBind(t,t.readFile),getDocumentPositionMapper:e.maybeBind(t,t.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(t,t.getSourceFileLike),log:f});function v(e){var t=c.getSourceFile(e);if(!t){var r=new Error("Could not find source file: '".concat(e,"'."));throw r.ProgramFiles=c.getSourceFiles().map((function(e){return e.fileName})),r}return t}function D(){var r,n,a;if(e.Debug.assert(s!==e.LanguageServiceMode.Syntactic),t.getProjectVersion){var o=t.getProjectVersion();if(o){if(u===o&&!(null===(r=t.hasChangedAutomaticTypeDirectiveNames)||void 0===r?void 0:r.call(t)))return;u=o}}var l=t.getTypeRootsVersion?t.getTypeRootsVersion():0;d!==l&&(f("TypeRoots version has changed; provide new program"),c=void 0,d=l);var v,h=new b(t,m),D=h.getRootFileNames(),x=t.getCompilationSettings()||{target:1,jsx:1},S=t.hasInvalidatedResolution||e.returnFalse,T=e.maybeBind(t,t.hasChangedAutomaticTypeDirectiveNames),C=null===(n=t.getProjectReferences)||void 0===n?void 0:n.call(t),E={useCaseSensitiveFileNames:g,fileExists:P,readFile:w,readDirectory:I,trace:e.maybeBind(t,t.trace),getCurrentDirectory:function(){return p},onUnRecoverableConfigFileDiagnostic:e.noop};if(!e.isProgramUptoDate(c,D,x,(function(e,r){return t.getScriptVersion(r)}),P,S,T,N,C)){var k={getSourceFile:M,getSourceFileByPath:L,getCancellationToken:function(){return _},getCanonicalFileName:m,useCaseSensitiveFileNames:function(){return g},getNewLine:function(){return e.getNewLineCharacter(x,(function(){return e.getNewLineOrDefaultFromHost(t)}))},getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return p},fileExists:P,readFile:w,getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),realpath:e.maybeBind(t,t.realpath),directoryExists:function(r){return e.directoryProbablyExists(r,t)},getDirectories:function(e){return t.getDirectories?t.getDirectories(e):[]},readDirectory:I,onReleaseOldSourceFile:O,onReleaseParsedCommandLine:function(e,r,n){var i;t.getParsedCommandLine?null===(i=t.onReleaseParsedCommandLine)||void 0===i||i.call(t,e,r,n):r&&O(r.sourceFile,n)},hasInvalidatedResolution:S,hasChangedAutomaticTypeDirectiveNames:T,trace:E.trace,resolveModuleNames:e.maybeBind(t,t.resolveModuleNames),resolveTypeReferenceDirectives:e.maybeBind(t,t.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(t,t.useSourceOfProjectReferenceRedirect),getParsedCommandLine:N};null===(a=t.setCompilerHost)||void 0===a||a.call(t,k);var A=i.getKeyForCompilationSettings(x),F={rootNames:D,options:x,host:k,oldProgram:c,projectReferences:C};return c=e.createProgram(F),h=void 0,v=void 0,y.clearCache(),void c.getTypeChecker()}function N(r){var n=e.toPath(r,p,m),i=null==v?void 0:v.get(n);if(void 0!==i)return i||void 0;var a=t.getParsedCommandLine?t.getParsedCommandLine(r):function(t){var r=M(t,100);return r?(r.path=e.toPath(t,p,m),r.resolvedPath=r.path,r.originalFileName=r.fileName,e.parseJsonSourceFileConfigFileContent(r,E,e.getNormalizedAbsolutePath(e.getDirectoryPath(t),p),void 0,e.getNormalizedAbsolutePath(t,p))):void 0}(r);return(v||(v=new e.Map)).set(n,a||!1),a}function P(r){var n=e.toPath(r,p,m),i=h&&h.getEntryByPath(n);return i?!e.isString(i):!!t.fileExists&&t.fileExists(r)}function w(r){var n=e.toPath(r,p,m),i=h&&h.getEntryByPath(n);return i?e.isString(i)?void 0:e.getSnapshotText(i.scriptSnapshot):t.readFile&&t.readFile(r)}function I(r,n,i,a,o){return e.Debug.checkDefined(t.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,n,i,a,o)}function O(e,t){var r=i.getKeyForCompilationSettings(t);i.releaseDocumentWithKey(e.resolvedPath,r,e.scriptKind)}function M(t,r,n,i){return L(t,e.toPath(t,p,m),r,n,i)}function L(t,r,n,a,o){e.Debug.assert(void 0!==h,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var s=h&&h.getOrCreateEntryByPath(t,r);if(s){if(!o){var u=c&&c.getSourceFileByPath(r);if(u){if(s.scriptKind===u.scriptKind)return i.updateDocumentWithKey(t,r,x,A,s.scriptSnapshot,s.version,s.scriptKind);i.releaseDocumentWithKey(u.resolvedPath,i.getKeyForCompilationSettings(c.getCompilerOptions()),u.scriptKind)}}return i.acquireDocumentWithKey(t,r,x,A,s.scriptSnapshot,s.version,s.scriptKind)}}}function x(){if(s!==e.LanguageServiceMode.Syntactic)return D(),c;e.Debug.assert(void 0===c)}function T(t,r,n){var i=e.normalizePath(t);e.Debug.assert(n.some((function(t){return e.normalizePath(t)===i}))),D();var a=e.mapDefined(n,(function(e){return c.getSourceFile(e)})),o=v(t);return e.DocumentHighlights.getDocumentHighlights(c,_,o,r,a)}function C(t,r,n,i){D();var a=n&&2===n.use?c.getSourceFiles().filter((function(e){return!c.isSourceFileDefaultLibrary(e)})):c.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(c,_,a,t,r,n,i)}var E=new e.Map(e.getEntries(((o={})[18]=19,o[20]=21,o[22]=23,o[31]=29,o)));function F(r){return e.Debug.assertEqual(r.type,"install package"),t.installPackage?t.installPackage({fileName:function(t){return e.toPath(t,p,m)}(r.file),packageName:r.packageName}):Promise.reject("Host does not implement `installPackage`")}function O(e,t){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(t.pos).line,lastLine:e.getLineAndCharacterOfPosition(t.end).line}}function M(t,r,n){for(var i=l.getCurrentSourceFile(t),a=[],o=O(i,r),s=o.lineStarts,c=o.firstLine,u=o.lastLine,d=n||!1,_=Number.MAX_VALUE,p=new e.Map,f=new RegExp(/\S/),g=e.isInsideJsxElement(i,s[c]),m=g?"{/*":"//",y=c;y<=u;y++){var v=i.text.substring(s[y],i.getLineEndOfPosition(s[y])),h=f.exec(v);h&&(_=Math.min(_,h.index),p.set(y.toString(),h.index),v.substr(h.index,m.length)!==m&&(d=void 0===n||n))}for(y=c;y<=u;y++)if(c===u||s[y]!==r.end){var D=p.get(y.toString());void 0!==D&&(g?a.push.apply(a,L(t,{pos:s[y]+_,end:i.getLineEndOfPosition(s[y])},d,g)):d?a.push({newText:m,span:{length:0,start:s[y]+_}}):i.text.substr(s[y]+D,m.length)===m&&a.push({newText:"",span:{length:m.length,start:s[y]+D}}))}return a}function L(t,r,n,i){for(var a,o=l.getCurrentSourceFile(t),s=[],c=o.text,u=!1,d=n||!1,_=[],p=r.pos,f=void 0!==i?i:e.isInsideJsxElement(o,p),g=f?"{/*":"/*",m=f?"*/}":"*/",y=f?"\\{\\/\\*":"\\/\\*",v=f?"\\*\\/\\}":"\\*\\/";p<=r.end;){var h=c.substr(p,g.length)===g?g.length:0,D=e.isInComment(o,p+h);if(D)f&&(D.pos--,D.end++),_.push(D.pos),3===D.kind&&_.push(D.end),u=!0,p=D.end+1;else{var x=c.substring(p,r.end).search("(".concat(y,")|(").concat(v,")"));d=void 0!==n?n:d||!e.isTextWhiteSpaceLike(c,p,-1===x?r.end:p+x),p=-1===x?r.end+1:p+x+m.length}}if(d||!u){2!==(null===(a=e.isInComment(o,r.pos))||void 0===a?void 0:a.kind)&&e.insertSorted(_,r.pos,e.compareValues),e.insertSorted(_,r.end,e.compareValues);var b=_[0];c.substr(b,g.length)!==g&&s.push({newText:g,span:{length:0,start:b}});for(var S=1;S<_.length-1;S++)c.substr(_[S]-m.length,m.length)!==m&&s.push({newText:m,span:{length:0,start:_[S]}}),c.substr(_[S],g.length)!==g&&s.push({newText:g,span:{length:0,start:_[S]}});s.length%2!=0&&s.push({newText:m,span:{length:0,start:_[_.length-1]}})}else for(var T=0,C=_;T0?E-m.length:0;h=c.substr(k,m.length)===m?m.length:0;s.push({newText:"",span:{length:g.length,start:E-h}})}return s}function R(t){var r=t.openingElement,n=t.closingElement,i=t.parent;return!e.tagNamesAreEquivalent(r.tagName,n.tagName)||e.isJsxElement(i)&&e.tagNamesAreEquivalent(r.tagName,i.openingElement.tagName)&&R(i)}function B(t){var r=t.closingFragment,n=t.parent;return!!(65536&r.flags)||e.isJsxFragment(n)&&B(n)}function j(r,n,i,a,o,s){var c="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:r,startPosition:c[0],endPosition:c[1],program:x(),host:t,formatContext:e.formatting.getFormatContext(a,t),cancellationToken:_,preferences:i,triggerReason:o,kind:s}}E.forEach((function(e,t){return E.set(e.toString(),Number(t))}));var J={dispose:function(){if(c){var r=i.getKeyForCompilationSettings(c.getCompilerOptions());e.forEach(c.getSourceFiles(),(function(e){return i.releaseDocumentWithKey(e.resolvedPath,r,e.scriptKind)})),c=void 0}t=void 0},cleanupSemanticCache:function(){c=void 0},getSyntacticDiagnostics:function(e){return D(),c.getSyntacticDiagnostics(v(e),_).slice()},getSemanticDiagnostics:function(t){D();var n=v(t),i=c.getSemanticDiagnostics(n,_);if(!e.getEmitDeclarations(c.getCompilerOptions()))return i.slice();var a=c.getDeclarationDiagnostics(n,_);return r(r([],i,!0),a,!0)},getSuggestionDiagnostics:function(t){return D(),e.computeSuggestionDiagnostics(v(t),c,_)},getCompilerOptionsDiagnostics:function(){return D(),r(r([],c.getOptionsDiagnostics(_),!0),c.getGlobalDiagnostics(_),!0)},getSyntacticClassifications:function(t,r){return e.getSyntacticClassifications(_,l.getCurrentSourceFile(t),r)},getSemanticClassifications:function(t,r,n){return D(),"2020"===(n||"original")?e.classifier.v2020.getSemanticClassifications(c,_,v(t),r):e.getSemanticClassifications(c.getTypeChecker(),_,v(t),c.getClassifiableNames(),r)},getEncodedSyntacticClassifications:function(t,r){return e.getEncodedSyntacticClassifications(_,l.getCurrentSourceFile(t),r)},getEncodedSemanticClassifications:function(t,r,n){return D(),"original"===(n||"original")?e.getEncodedSemanticClassifications(c.getTypeChecker(),_,v(t),c.getClassifiableNames(),r):e.classifier.v2020.getEncodedSemanticClassifications(c,_,v(t),r)},getCompletionsAtPosition:function(r,i,a){void 0===a&&(a=e.emptyOptions);var o=n(n({},e.identity(a)),{includeCompletionsForModuleExports:a.includeCompletionsForModuleExports||a.includeExternalModuleExports,includeCompletionsWithInsertText:a.includeCompletionsWithInsertText||a.includeInsertTextCompletions});return D(),e.Completions.getCompletionsAtPosition(t,c,f,v(r),i,o,a.triggerCharacter,a.triggerKind,_)},getCompletionEntryDetails:function(r,n,i,a,o,s,u){return void 0===s&&(s=e.emptyOptions),D(),e.Completions.getCompletionEntryDetails(c,f,v(r),n,{name:i,source:o,data:u},t,a&&e.formatting.getFormatContext(a,t),s,_)},getCompletionEntrySymbol:function(r,n,i,a,o){return void 0===o&&(o=e.emptyOptions),D(),e.Completions.getCompletionEntrySymbol(c,f,v(r),n,{name:i,source:a},t,o)},getSignatureHelpItems:function(t,r,n){var i=(void 0===n?e.emptyOptions:n).triggerReason;D();var a=v(t);return e.SignatureHelp.getSignatureHelpItems(c,a,r,i,_)},getQuickInfoAtPosition:function(t,r){D();var n=v(t),i=e.getTouchingPropertyName(n,r);if(i!==n){var a=c.getTypeChecker(),o=function(t){if(e.isNewExpression(t.parent)&&t.pos===t.parent.pos)return t.parent.expression;if(e.isNamedTupleMember(t.parent)&&t.pos===t.parent.pos)return t.parent;return t}(i),s=function(t,r){var n=w(t);if(n){var i=r.getContextualType(n.parent),a=i&&I(n,r,i,!1);if(a&&1===a.length)return e.first(a)}return r.getSymbolAtLocation(t)}(o,a);if(!s||a.isUnknownSymbol(s)){var u=function(t,r,n){switch(r.kind){case 79:return!e.isLabelName(r)&&!e.isTagName(r)&&!e.isConstTypeReference(r.parent);case 205:case 160:return!e.isInComment(t,n);case 108:case 191:case 106:case 196: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(a):void 0}}var l=a.runWithCancellationToken(_,(function(t){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,s,n,e.getContainerNode(o),o)})),d=l.symbolKind,p=l.displayParts,f=l.documentation,g=l.tags;return{kind:d,kindModifiers:e.SymbolDisplay.getSymbolModifiers(a,s),textSpan:e.createTextSpanFromNode(o,n),displayParts:p,documentation:f,tags:g}}},getDefinitionAtPosition:function(t,r){return D(),e.GoToDefinition.getDefinitionAtPosition(c,v(t),r)},getDefinitionAndBoundSpan:function(t,r){return D(),e.GoToDefinition.getDefinitionAndBoundSpan(c,v(t),r)},getImplementationAtPosition:function(t,r){return D(),e.FindAllReferences.getImplementationsAtPosition(c,_,c.getSourceFiles(),v(t),r)},getTypeDefinitionAtPosition:function(t,r){return D(),e.GoToDefinition.getTypeDefinitionAtPosition(c.getTypeChecker(),v(t),r)},getReferencesAtPosition:function(t,r){return D(),C(e.getTouchingPropertyName(v(t),r),r,{use:1},(function(t,r,n){return e.FindAllReferences.toReferenceEntry(t,n.getSymbolAtLocation(r))}))},findReferences:function(t,r){return D(),e.FindAllReferences.findReferencedSymbols(c,_,c.getSourceFiles(),v(t),r)},getFileReferences:function(t){var r;D();var n=null===(r=c.getSourceFile(t))||void 0===r?void 0:r.symbol;return e.FindAllReferences.Core.getReferencesForFileName(t,c,c.getSourceFiles()).map((function(t){return e.FindAllReferences.toReferenceEntry(t,n)}))},getOccurrencesAtPosition:function(t,r){return e.flatMap(T(t,r,[t]),(function(e){return e.highlightSpans.map((function(t){return n(n({fileName:e.fileName,textSpan:t.textSpan,isWriteAccess:"writtenReference"===t.kind,isDefinition:!1},t.isInString&&{isInString:!0}),t.contextSpan&&{contextSpan:t.contextSpan})}))}))},getDocumentHighlights:T,getNameOrDottedNameSpan:function(t,r,n){var i=l.getCurrentSourceFile(t),a=e.getTouchingPropertyName(i,r);if(a!==i){switch(a.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 o=a;;)if(e.isRightSideOfPropertyAccess(o)||e.isRightSideOfQualifiedName(o))o=o.parent;else{if(!e.isNameOfModuleDeclaration(o))break;if(260!==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=l.getCurrentSourceFile(t);return e.BreakpointResolver.spanInSourceFileAtLocation(n,r)},getNavigateToItems:function(t,r,n,i){void 0===i&&(i=!1),D();var a=n?[v(n)]:c.getSourceFiles();return e.NavigateTo.getNavigateToItems(a,c.getTypeChecker(),_,t,r,i)},getRenameInfo:function(t,r,n){return D(),e.Rename.getRenameInfo(c,v(t),r,n)},getSmartSelectionRange:function(t,r){return e.SmartSelectionRange.getSmartSelectionRange(r,l.getCurrentSourceFile(t))},findRenameLocations:function(t,r,i,a,o){D();var s=v(t),c=e.getAdjustedRenameLocation(e.getTouchingPropertyName(s,r));if(e.Rename.nodeIsEligibleForRename(c)){if(e.isIdentifier(c)&&(e.isJsxOpeningElement(c.parent)||e.isJsxClosingElement(c.parent))&&e.isIntrinsicJsxName(c.escapedText)){var u=c.parent.parent;return[u.openingElement,u.closingElement].map((function(t){var r=e.createTextSpanFromNode(t.tagName,s);return n({fileName:s.fileName,textSpan:r},e.FindAllReferences.toContextSpan(r,s,t.parent))}))}return C(c,r,{findInStrings:i,findInComments:a,providePrefixAndSuffixTextForRename:o,use:2},(function(t,r,n){return e.FindAllReferences.toRenameLocation(t,r,n,o||!1)}))}},getNavigationBarItems:function(t){return e.NavigationBar.getNavigationBarItems(l.getCurrentSourceFile(t),_)},getNavigationTree:function(t){return e.NavigationBar.getNavigationTree(l.getCurrentSourceFile(t),_)},getOutliningSpans:function(t){var r=l.getCurrentSourceFile(t);return e.OutliningElementsCollector.collectElements(r,_)},getTodoComments:function(t,r){D();var n=v(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=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=l.getCurrentSourceFile(t),i=e.getTouchingToken(n,r),a=i.getStart(n)===r?E.get(i.kind.toString()):void 0,o=a&&e.findChildOfKind(i.parent,a,n);return o?[e.createTextSpanFromNode(i,n),e.createTextSpanFromNode(o,n)].sort((function(e,t){return e.start-t.start})):e.emptyArray},getIndentationAtPosition:function(t,r,n){var i=e.timestamp(),a=h(n),o=l.getCurrentSourceFile(t);f("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-i)),i=e.timestamp();var s=e.formatting.SmartIndenter.getIndentation(r,o,a);return f("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-i)),s},getFormattingEditsForRange:function(r,n,i,a){var o=l.getCurrentSourceFile(r);return e.formatting.formatSelection(n,i,o,e.formatting.getFormatContext(h(a),t))},getFormattingEditsForDocument:function(r,n){return e.formatting.formatDocument(l.getCurrentSourceFile(r),e.formatting.getFormatContext(h(n),t))},getFormattingEditsAfterKeystroke:function(r,n,i,a){var o=l.getCurrentSourceFile(r),s=e.formatting.getFormatContext(h(a),t);if(!e.isInComment(o,n))switch(i){case"{":return e.formatting.formatOnOpeningCurly(n,o,s);case"}":return e.formatting.formatOnClosingCurly(n,o,s);case";":return e.formatting.formatOnSemicolon(n,o,s);case"\n":return e.formatting.formatOnEnter(n,o,s)}return[]},getDocCommentTemplateAtPosition:function(r,n,i){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(t),l.getCurrentSourceFile(r),n,i)},isValidBraceCompletionAtPosition:function(t,r,n){if(60===n)return!1;var i=l.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=l.getCurrentSourceFile(t),i=e.findPrecedingToken(r,n);if(i){var a=31===i.kind&&e.isJsxOpeningElement(i.parent)?i.parent.parent:e.isJsxText(i)&&e.isJsxElement(i.parent)?i.parent:void 0;if(a&&R(a))return{newText:"")};var o=31===i.kind&&e.isJsxOpeningFragment(i.parent)?i.parent.parent:e.isJsxText(i)&&e.isJsxFragment(i.parent)?i.parent:void 0;return o&&B(o)?{newText:""}:void 0}},getSpanOfEnclosingComment:function(t,r,n){var i=l.getCurrentSourceFile(t),a=e.formatting.getRangeOfEnclosingComment(i,r);return!a||n&&3!==a.kind?void 0:e.createTextSpanFromRange(a)},getCodeFixesAtPosition:function(r,n,i,a,o,s){void 0===s&&(s=e.emptyOptions),D();var u=v(r),l=e.createTextSpanFromBounds(n,i),d=e.formatting.getFormatContext(o,t);return e.flatMap(e.deduplicate(a,e.equateValues,e.compareValues),(function(r){return _.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:r,sourceFile:u,span:l,program:c,host:t,cancellationToken:_,formatContext:d,preferences:s})}))},getCombinedCodeFix:function(r,n,i,a){void 0===a&&(a=e.emptyOptions),D(),e.Debug.assert("file"===r.type);var o=v(r.fileName),s=e.formatting.getFormatContext(i,t);return e.codefix.getAllFixes({fixId:n,sourceFile:o,program:c,host:t,cancellationToken:_,formatContext:s,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(r,n,i){void 0===i&&(i=e.emptyOptions),D(),e.Debug.assert("file"===r.type);var a=v(r.fileName),o=e.formatting.getFormatContext(n,t);return e.OrganizeImports.organizeImports(a,o,t,c,i,r.skipDestructiveCodeActions)},getEditsForFileRename:function(r,n,i,a){return void 0===a&&(a=e.emptyOptions),e.getEditsForFileRename(x(),r,n,t,e.formatting.getFormatContext(i,t),a,y)},getEmitOutput:function(r,n,i){D();var a=v(r),o=t.getCustomTransformers&&t.getCustomTransformers();return e.getFileEmitOutput(c,a,!!n,_,o,i)},getNonBoundSourceFile:function(e){return l.getCurrentSourceFile(e)},getProgram:x,getAutoImportProvider:function(){var e;return null===(e=t.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(t)},getApplicableRefactors:function(t,r,n,i,a){void 0===n&&(n=e.emptyOptions),D();var o=v(t);return e.refactor.getApplicableRefactors(j(o,r,n,e.emptyOptions,i,a))},getEditsForRefactor:function(t,r,n,i,a,o){void 0===o&&(o=e.emptyOptions),D();var s=v(t);return e.refactor.getEditsForRefactor(j(s,n,o,r),i,a)},toLineColumnOffset:function(e,t){return 0===t?{line:0,character:0}:y.toLineColumnOffset(e,t)},getSourceMapper:function(){return y},clearSourceMapperCache:function(){return y.clearCache()},prepareCallHierarchy:function(t,r){D();var n=e.CallHierarchy.resolveCallHierarchyDeclaration(c,e.getTouchingPropertyName(v(t),r));return n&&e.mapOneOrMany(n,(function(t){return e.CallHierarchy.createCallHierarchyItem(c,t)}))},provideCallHierarchyIncomingCalls:function(t,r){D();var n=v(t),i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(c,0===r?n:e.getTouchingPropertyName(n,r)));return i?e.CallHierarchy.getIncomingCalls(c,i,_):[]},provideCallHierarchyOutgoingCalls:function(t,r){D();var n=v(t),i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(c,0===r?n:e.getTouchingPropertyName(n,r)));return i?e.CallHierarchy.getOutgoingCalls(c,i):[]},toggleLineComment:M,toggleMultilineComment:L,commentSelection:function(e,t){var r=O(l.getCurrentSourceFile(e),t);return r.firstLine===r.lastLine&&t.pos!==t.end?L(e,t,!0):M(e,t,!0)},uncommentSelection:function(t,r){var n=l.getCurrentSourceFile(t),i=[],a=r.pos,o=r.end;a===o&&(o+=e.isInsideJsxElement(n,a)?2:1);for(var s=a;s<=o;s++){var c=e.isInComment(n,s);if(c){switch(c.kind){case 2:i.push.apply(i,M(t,{end:c.end,pos:c.pos+1},!1));break;case 3:i.push.apply(i,L(t,{end:c.end,pos:c.pos+1},!1))}s=c.end+1}}return i},provideInlayHints:function(r,n,i){void 0===i&&(i=e.emptyOptions),D();var a=v(r);return e.InlayHints.provideInlayHints(function(e,r,n){return{file:e,program:x(),host:t,span:r,preferences:n,cancellationToken:_}}(a,n,i))}};switch(s){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:N.forEach((function(e){return J[e]=function(){throw new Error("LanguageService Operation: ".concat(e," not allowed in LanguageServiceMode.PartialSemantic"))}}));break;case e.LanguageServiceMode.Syntactic:P.forEach((function(e){return J[e]=function(){throw new Error("LanguageService Operation: ".concat(e," not allowed in LanguageServiceMode.Syntactic"))}}));break;default:e.Debug.assertNever(s)}return J},e.getNameTable=function(t){return t.nameTable||function(t){var r=t.nameTable=new e.Map;t.forEachChild((function t(n){if(e.isIdentifier(n)&&!e.isTagName(n)&&n.escapedText||e.isStringOrNumericLiteralLike(n)&&function(t){return e.isDeclarationName(t)||276===t.parent.kind||function(e){return e&&e.parent&&206===e.parent.kind&&e.parent.argumentExpression===e}(t)||e.isLiteralComputedPropertyDeclarationName(t)}(n)){var i=e.getEscapedTextOfIdentifierOrLiteral(n);r.set(i,void 0===r.get(i)?n.pos:-1)}else if(e.isPrivateIdentifier(n)){i=n.escapedText;r.set(i,void 0===r.get(i)?n.pos:-1)}if(e.forEachChild(n,t),e.hasJSDocNodes(n))for(var a=0,o=n.jsDoc;ai){var a=e.findPrecedingToken(n.pos,t);if(!a||t.getLineAndCharacterOfPosition(a.getEnd()).line!==i)return;n=a}if(!(8388608&n.flags))return d(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?d(e):d(r)}function u(r){return d(e.findPrecedingToken(r.pos,t))}function l(r){return d(e.findNextToken(r,r.parent,t))}function d(r){if(r){var n=r.parent;switch(r.kind){case 236:return x(r.declarationList.declarations[0]);case 253:case 166:case 165:return x(r);case 163:return function t(r){if(e.isBindingPattern(r.name))return C(r.name);if(function(t){return!!t.initializer||void 0!==t.dotDotDotToken||e.hasSyntacticModifier(t,12)}(r))return o(r);var n=r.parent,i=n.parameters.indexOf(r);return e.Debug.assert(-1!==i),0!==i?t(n.parameters[i-1]):d(n.body)}(r);case 255:case 168:case 167:case 171:case 172:case 170:case 212:case 213:return function(e){if(e.body)return b(e)?o(e):d(e.body)}(r);case 234:if(e.isFunctionBlock(r))return v=(y=r).statements.length?y.statements[0]:y.getLastToken(),b(y.parent)?c(y.parent,v):d(v);case 261:return S(r);case 291:return S(r.block);case 237:return o(r.expression);case 246:return o(r.getChildAt(0),r.expression);case 240:return s(r,r.expression);case 239:return d(r.statement);case 252:return o(r.getChildAt(0));case 238:return s(r,r.expression);case 249:return d(r.statement);case 245:case 244:return o(r.getChildAt(0),r.label);case 241:return(m=r).initializer?T(m):m.condition?o(m.condition):m.incrementor?o(m.incrementor):void 0;case 242:return s(r,r.expression);case 243:return T(r);case 248:return s(r,r.expression);case 288:case 289:return d(r.statements[0]);case 251:return S(r.tryBlock);case 250:case 270:return o(r,r.expression);case 264:return o(r,r.moduleReference);case 265:case 271:return o(r,r.moduleSpecifier);case 260:if(1!==e.getModuleInstanceState(r))return;case 256:case 259:case 297:case 202:return o(r);case 247:return d(r.statement);case 164:return h=n.decorators,e.createTextSpanFromBounds(e.skipTrivia(t.text,h.pos),h.end);case 200:case 201:return C(r);case 257:case 258: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 259:var n=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),n.members.length?n.members[0]:n.getLastToken(t));case 256:var i=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),i.members.length?i.members[0]:i.getLastToken(t));case 262:return c(r.parent.parent,r.parent.clauses[0])}return d(r.parent)}(r);case 19:return function(t){switch(t.parent.kind){case 261:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 259:case 256:return o(t);case 234:if(e.isFunctionBlock(t.parent))return o(t);case 291:return d(e.lastOrUndefined(t.parent.statements));case 262:var r=t.parent,n=e.lastOrUndefined(r.clauses);return n?d(e.lastOrUndefined(n.statements)):void 0;case 200:var i=t.parent;return d(e.lastOrUndefined(i.elements)||i);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var a=t.parent;return o(e.lastOrUndefined(a.properties)||a)}return d(t.parent)}}(r);case 23:return function(t){if(201===t.parent.kind){var r=t.parent;return o(e.lastOrUndefined(r.elements)||r)}if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var n=t.parent;return o(e.lastOrUndefined(n.elements)||n)}return d(t.parent)}(r);case 20:return function(e){return 239===e.parent.kind||207===e.parent.kind||208===e.parent.kind?u(e):211===e.parent.kind?l(e):d(e.parent)}(r);case 21:return function(e){switch(e.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 u(e);default:return d(e.parent)}}(r);case 58:return function(t){return e.isFunctionLike(t.parent)||294===t.parent.kind||163===t.parent.kind?u(t):d(t.parent)}(r);case 31:case 29:return function(e){return 210===e.parent.kind?l(e):d(e.parent)}(r);case 115:return function(e){return 239===e.parent.kind?s(e,e.parent.expression):d(e.parent)}(r);case 91:case 83:case 96:return l(r);case 159:return function(e){return 243===e.parent.kind?l(e):d(e.parent)}(r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return E(r);if((79===r.kind||224===r.kind||294===r.kind||295===r.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return o(r);if(220===r.kind){var i=r,a=i.left,_=i.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(a))return E(a);if(63===_.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent))return o(r);if(27===_.kind)return d(a)}if(e.isExpressionNode(r))switch(n.kind){case 239:return u(r);case 164:return d(r.parent);case 241:case 243:return o(r);case 220:if(27===r.parent.operatorToken.kind)return o(r);break;case 213:if(r.parent.body===r)return o(r)}switch(r.parent.kind){case 294:if(r.parent.name===r&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent.parent))return d(r.parent.initializer);break;case 210:if(r.parent.type===r)return l(r.parent.type);break;case 253:case 163:var p=r.parent,f=p.initializer,g=p.type;if(f===r||g===r||e.isAssignmentOperator(r.kind))return u(r);break;case 220:if(a=r.parent.left,e.isArrayLiteralOrObjectLiteralDestructuringPattern(a)&&r!==a)return u(r);break;default:if(e.isFunctionLike(r.parent)&&r.parent.type===r)return u(r)}return d(r.parent)}}var m,y,v,h;function D(r){return e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]===r?o(e.findPrecedingToken(r.pos,t,r.parent),r):o(r)}function x(r){if(242===r.parent.parent.kind)return d(r.parent.parent);var n=r.parent;return e.isBindingPattern(r.name)?C(r.name):r.initializer||e.hasSyntacticModifier(r,1)||243===n.parent.kind?D(r):e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]!==r?d(e.findPrecedingToken(r.pos,t,r.parent)):void 0}function b(t){return e.hasSyntacticModifier(t,1)||256===t.parent.kind&&170!==t.kind}function S(r){switch(r.parent.kind){case 260:if(1!==e.getModuleInstanceState(r.parent))return;case 240:case 238:case 242:return c(r.parent,r.statements[0]);case 241:case 243:return c(e.findPrecedingToken(r.pos,t,r.parent),r.statements[0])}return d(r.statements[0])}function T(e){if(254!==e.initializer.kind)return d(e.initializer);var t=e.initializer;return t.declarations.length>0?d(t.declarations[0]):void 0}function C(t){var r=e.forEach(t.elements,(function(e){return 226!==e.kind?e:void 0}));return r?d(r):202===t.parent.kind?o(t.parent):D(t.parent)}function E(t){e.Debug.assert(201!==t.kind&&200!==t.kind);var r=203===t.kind?t.elements:t.properties,n=e.forEach(r,(function(e){return 226!==e.kind?e:void 0}));return n?d(n):o(220===t.parent.kind?t.parent:t)}}}}(c||(c={})),function(e){e.transform=function(t,r,n){var i=[];n=e.fixupCompilerOptions(n,i);var a=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,e.factory,n,a,r,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}}(c||(c={}));var c,u=function(){return this}();!function(e){function t(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}var i=function(){function t(e){this.scriptSnapshotShim=e}return t.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},t.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},t.prototype.getChangeRange=function(t){var r=t,n=this.scriptSnapshotShim.getChangeRange(r.scriptSnapshotShim);if(null===n)return null;var i=JSON.parse(n);return e.createTextChangeRange(e.createTextSpan(i.span.start,i.span.length),i.newLength)},t.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},t}(),a=function(){function t(t){var r=this;this.shimHost=t,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(t,n){var i=JSON.parse(r.shimHost.getModuleResolutionsForFile(n));return e.map(t,(function(t){var r=e.getProperty(i,t);return r?{resolvedFileName:r,extension:e.extensionFromPath(r),isExternalLibraryImport:!1}:void 0}))}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return r.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(t,n){var i=JSON.parse(r.shimHost.getTypeReferenceDirectiveResolutionsForFile(n));return e.map(t,(function(t){return e.getProperty(i,t)}))})}return t.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e)},t.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e)},t.prototype.error=function(e){this.shimHost.error(e)},t.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},t.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},t.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},t.prototype.getCompilationSettings=function(){var e=this.shimHost.getCompilationSettings();if(null===e||""===e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var t=JSON.parse(e);return t.allowNonTsExtensions=!0,t},t.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return JSON.parse(e)},t.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new i(t)},t.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},t.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},t.prototype.getLocalizedDiagnosticMessages=function(){var e=this.shimHost.getLocalizedDiagnosticMessages();if(null===e||""===e)return null;try{return JSON.parse(e)}catch(e){return this.log(e.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},t.prototype.getCancellationToken=function(){var t=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(t)},t.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},t.prototype.readDirectory=function(t,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},t.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t}();e.LanguageServiceShimHostAdapter=a;var c=function(){function t(e){var t=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost?this.directoryExists=function(e){return t.shimHost.directoryExists(e)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(e){return t.shimHost.realpath(e)}:this.realpath=void 0}return t.prototype.readDirectory=function(t,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t.prototype.readFile=function(e){return this.shimHost.readFile(e)},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t}();function l(e,t,r,n){return d(e,t,!0,r,n)}function d(r,n,i,a,o){try{var s=function(t,r,n,i){var a;i&&(t.log(r),a=e.timestamp());var o=n();if(i){var s=e.timestamp();if(t.log("".concat(r," completed in ").concat(s-a," msec")),e.isString(o)){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),t.log(" result.length=".concat(c.length,", result='").concat(JSON.stringify(c),"'"))}}return o}(r,n,a,o);return i?JSON.stringify({result:s}):s}catch(i){return i instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(t(r,i),i.description=n,JSON.stringify({error:i}))}}e.CoreServicesShimHostAdapter=c;var _=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function p(t,r){return t.map((function(t){return function(t,r){return{message:e.flattenDiagnosticMessageText(t.messageText,r),start:t.start,length:t.length,category:e.diagnosticCategoryName(t),code:t.code,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated}}(t,r)}))}e.realizeDiagnostics=p;var f=function(t){function r(e,r,n){var i=t.call(this,e)||this;return i.host=r,i.languageService=n,i.logPerformance=!1,i.logger=i.host,i}return s(r,t),r.prototype.forwardJSONCall=function(e,t){return l(this.logger,e,t,this.logPerformance)},r.prototype.dispose=function(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,u&&u.CollectGarbage&&(u.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,t.prototype.dispose.call(this,e)},r.prototype.refresh=function(e){this.forwardJSONCall("refresh(".concat(e,")"),(function(){return null}))},r.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",(function(){return e.languageService.cleanupSemanticCache(),null}))},r.prototype.realizeDiagnostics=function(t){return p(t,e.getNewLineOrDefaultFromHost(this.host))},r.prototype.getSyntacticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getSyntacticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(function(){return i.languageService.getSyntacticClassifications(t,e.createTextSpan(r,n))}))},r.prototype.getSemanticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getSemanticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(function(){return i.languageService.getSemanticClassifications(t,e.createTextSpan(r,n))}))},r.prototype.getEncodedSyntacticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(function(){return g(i.languageService.getEncodedSyntacticClassifications(t,e.createTextSpan(r,n)))}))},r.prototype.getEncodedSemanticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(function(){return g(i.languageService.getEncodedSemanticClassifications(t,e.createTextSpan(r,n)))}))},r.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('".concat(e,"')"),(function(){var r=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(r)}))},r.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('".concat(e,"')"),(function(){var r=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(r)}))},r.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('".concat(e,"')"),(function(){return t.realizeDiagnostics(t.languageService.getSuggestionDiagnostics(e))}))},r.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",(function(){var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)}))},r.prototype.getQuickInfoAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getQuickInfoAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getQuickInfoAtPosition(e,t)}))},r.prototype.getNameOrDottedNameSpan=function(e,t,r){var n=this;return this.forwardJSONCall("getNameOrDottedNameSpan('".concat(e,"', ").concat(t,", ").concat(r,")"),(function(){return n.languageService.getNameOrDottedNameSpan(e,t,r)}))},r.prototype.getBreakpointStatementAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getBreakpointStatementAtPosition(e,t)}))},r.prototype.getSignatureHelpItems=function(e,t,r){var n=this;return this.forwardJSONCall("getSignatureHelpItems('".concat(e,"', ").concat(t,")"),(function(){return n.languageService.getSignatureHelpItems(e,t,r)}))},r.prototype.getDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getDefinitionAtPosition(e,t)}))},r.prototype.getDefinitionAndBoundSpan=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getDefinitionAndBoundSpan(e,t)}))},r.prototype.getTypeDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getTypeDefinitionAtPosition(e,t)}))},r.prototype.getImplementationAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getImplementationAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getImplementationAtPosition(e,t)}))},r.prototype.getRenameInfo=function(e,t,r){var n=this;return this.forwardJSONCall("getRenameInfo('".concat(e,"', ").concat(t,")"),(function(){return n.languageService.getRenameInfo(e,t,r)}))},r.prototype.getSmartSelectionRange=function(e,t){var r=this;return this.forwardJSONCall("getSmartSelectionRange('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getSmartSelectionRange(e,t)}))},r.prototype.findRenameLocations=function(e,t,r,n,i){var a=this;return this.forwardJSONCall("findRenameLocations('".concat(e,"', ").concat(t,", ").concat(r,", ").concat(n,", ").concat(i,")"),(function(){return a.languageService.findRenameLocations(e,t,r,n,i)}))},r.prototype.getBraceMatchingAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBraceMatchingAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getBraceMatchingAtPosition(e,t)}))},r.prototype.isValidBraceCompletionAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('".concat(e,"', ").concat(t,", ").concat(r,")"),(function(){return n.languageService.isValidBraceCompletionAtPosition(e,t,r)}))},r.prototype.getSpanOfEnclosingComment=function(e,t,r){var n=this;return this.forwardJSONCall("getSpanOfEnclosingComment('".concat(e,"', ").concat(t,")"),(function(){return n.languageService.getSpanOfEnclosingComment(e,t,r)}))},r.prototype.getIndentationAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getIndentationAtPosition('".concat(e,"', ").concat(t,")"),(function(){var i=JSON.parse(r);return n.languageService.getIndentationAtPosition(e,t,i)}))},r.prototype.getReferencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getReferencesAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getReferencesAtPosition(e,t)}))},r.prototype.findReferences=function(e,t){var r=this;return this.forwardJSONCall("findReferences('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.findReferences(e,t)}))},r.prototype.getFileReferences=function(e){var t=this;return this.forwardJSONCall("getFileReferences('".concat(e,")"),(function(){return t.languageService.getFileReferences(e)}))},r.prototype.getOccurrencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getOccurrencesAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getOccurrencesAtPosition(e,t)}))},r.prototype.getDocumentHighlights=function(t,r,n){var i=this;return this.forwardJSONCall("getDocumentHighlights('".concat(t,"', ").concat(r,")"),(function(){var a=i.languageService.getDocumentHighlights(t,r,JSON.parse(n)),o=e.toFileNameLowerCase(e.normalizeSlashes(t));return e.filter(a,(function(t){return e.toFileNameLowerCase(e.normalizeSlashes(t.fileName))===o}))}))},r.prototype.getCompletionsAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getCompletionsAtPosition('".concat(e,"', ").concat(t,", ").concat(r,")"),(function(){return n.languageService.getCompletionsAtPosition(e,t,r)}))},r.prototype.getCompletionEntryDetails=function(e,t,r,n,i,a,o){var s=this;return this.forwardJSONCall("getCompletionEntryDetails('".concat(e,"', ").concat(t,", '").concat(r,"')"),(function(){var c=void 0===n?void 0:JSON.parse(n);return s.languageService.getCompletionEntryDetails(e,t,r,c,i,a,o)}))},r.prototype.getFormattingEditsForRange=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('".concat(e,"', ").concat(t,", ").concat(r,")"),(function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsForRange(e,t,r,a)}))},r.prototype.getFormattingEditsForDocument=function(e,t){var r=this;return this.forwardJSONCall("getFormattingEditsForDocument('".concat(e,"')"),(function(){var n=JSON.parse(t);return r.languageService.getFormattingEditsForDocument(e,n)}))},r.prototype.getFormattingEditsAfterKeystroke=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('".concat(e,"', ").concat(t,", '").concat(r,"')"),(function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsAfterKeystroke(e,t,r,a)}))},r.prototype.getDocCommentTemplateAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('".concat(e,"', ").concat(t,")"),(function(){return n.languageService.getDocCommentTemplateAtPosition(e,t,r)}))},r.prototype.getNavigateToItems=function(e,t,r){var n=this;return this.forwardJSONCall("getNavigateToItems('".concat(e,"', ").concat(t,", ").concat(r,")"),(function(){return n.languageService.getNavigateToItems(e,t,r)}))},r.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('".concat(e,"')"),(function(){return t.languageService.getNavigationBarItems(e)}))},r.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('".concat(e,"')"),(function(){return t.languageService.getNavigationTree(e)}))},r.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('".concat(e,"')"),(function(){return t.languageService.getOutliningSpans(e)}))},r.prototype.getTodoComments=function(e,t){var r=this;return this.forwardJSONCall("getTodoComments('".concat(e,"')"),(function(){return r.languageService.getTodoComments(e,JSON.parse(t))}))},r.prototype.prepareCallHierarchy=function(e,t){var r=this;return this.forwardJSONCall("prepareCallHierarchy('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.prepareCallHierarchy(e,t)}))},r.prototype.provideCallHierarchyIncomingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.provideCallHierarchyIncomingCalls(e,t)}))},r.prototype.provideCallHierarchyOutgoingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.provideCallHierarchyOutgoingCalls(e,t)}))},r.prototype.provideInlayHints=function(e,t,r){var n=this;return this.forwardJSONCall("provideInlayHints('".concat(e,"', '").concat(JSON.stringify(t),"', ").concat(JSON.stringify(r),")"),(function(){return n.languageService.provideInlayHints(e,t,r)}))},r.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('".concat(e,"')"),(function(){var r=t.languageService.getEmitOutput(e),i=r.diagnostics,a=o(r,["diagnostics"]);return n(n({},a),{diagnostics:t.realizeDiagnostics(i)})}))},r.prototype.getEmitOutputObject=function(e){var t=this;return d(this.logger,"getEmitOutput('".concat(e,"')"),!1,(function(){return t.languageService.getEmitOutput(e)}),this.logPerformance)},r.prototype.toggleLineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleLineComment('".concat(e,"', '").concat(JSON.stringify(t),"')"),(function(){return r.languageService.toggleLineComment(e,t)}))},r.prototype.toggleMultilineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleMultilineComment('".concat(e,"', '").concat(JSON.stringify(t),"')"),(function(){return r.languageService.toggleMultilineComment(e,t)}))},r.prototype.commentSelection=function(e,t){var r=this;return this.forwardJSONCall("commentSelection('".concat(e,"', '").concat(JSON.stringify(t),"')"),(function(){return r.languageService.commentSelection(e,t)}))},r.prototype.uncommentSelection=function(e,t){var r=this;return this.forwardJSONCall("uncommentSelection('".concat(e,"', '").concat(JSON.stringify(t),"')"),(function(){return r.languageService.uncommentSelection(e,t)}))},r}(_);function g(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var m=function(t){function r(r,n){var i=t.call(this,r)||this;return i.logger=n,i.logPerformance=!1,i.classifier=e.createClassifier(),i}return s(r,t),r.prototype.getEncodedLexicalClassifications=function(e,t,r){var n=this;return void 0===r&&(r=!1),l(this.logger,"getEncodedLexicalClassifications",(function(){return g(n.classifier.getEncodedLexicalClassifications(e,t,r))}),this.logPerformance)},r.prototype.getClassificationsForLine=function(e,t,r){void 0===r&&(r=!1);for(var n=this.classifier.getClassificationsForLine(e,t,r),i="",a=0,o=n.entries;a=1&&arguments.length<=3?e.factory.createVariableDeclaration(t,void 0,r,n):e.Debug.fail("Argument count mismatch")}),t),e.updateVariableDeclaration=e.Debug.deprecate((function(t,r,n,i,a){return 5===arguments.length?e.factory.updateVariableDeclaration(t,r,n,i,a):4===arguments.length?e.factory.updateVariableDeclaration(t,r,t.exclamationToken,n,i):e.Debug.fail("Argument count mismatch")}),t),e.createImportClause=e.Debug.deprecate((function(t,r,n){return void 0===n&&(n=!1),e.factory.createImportClause(n,t,r)}),t),e.updateImportClause=e.Debug.deprecate((function(t,r,n,i){return e.factory.updateImportClause(t,i,r,n)}),t),e.createExportDeclaration=e.Debug.deprecate((function(t,r,n,i,a){return void 0===a&&(a=!1),e.factory.createExportDeclaration(t,r,a,n,i)}),t),e.updateExportDeclaration=e.Debug.deprecate((function(t,r,n,i,a,o){return e.factory.updateExportDeclaration(t,r,n,o,i,a,t.assertClause)}),t),e.createJSDocParamTag=e.Debug.deprecate((function(t,r,n,i){return e.factory.createJSDocParameterTag(void 0,t,r,n,!1,i?e.factory.createNodeArray([e.factory.createJSDocText(i)]):void 0)}),t),e.createComma=e.Debug.deprecate((function(t,r){return e.factory.createComma(t,r)}),t),e.createLessThan=e.Debug.deprecate((function(t,r){return e.factory.createLessThan(t,r)}),t),e.createAssignment=e.Debug.deprecate((function(t,r){return e.factory.createAssignment(t,r)}),t),e.createStrictEquality=e.Debug.deprecate((function(t,r){return e.factory.createStrictEquality(t,r)}),t),e.createStrictInequality=e.Debug.deprecate((function(t,r){return e.factory.createStrictInequality(t,r)}),t),e.createAdd=e.Debug.deprecate((function(t,r){return e.factory.createAdd(t,r)}),t),e.createSubtract=e.Debug.deprecate((function(t,r){return e.factory.createSubtract(t,r)}),t),e.createLogicalAnd=e.Debug.deprecate((function(t,r){return e.factory.createLogicalAnd(t,r)}),t),e.createLogicalOr=e.Debug.deprecate((function(t,r){return e.factory.createLogicalOr(t,r)}),t),e.createPostfixIncrement=e.Debug.deprecate((function(t){return e.factory.createPostfixIncrement(t)}),t),e.createLogicalNot=e.Debug.deprecate((function(t){return e.factory.createLogicalNot(t)}),t),e.createNode=e.Debug.deprecate((function(t,r,n){return void 0===r&&(r=0),void 0===n&&(n=0),e.setTextRangePosEnd(303===t?e.parseBaseNodeFactory.createBaseSourceFileNode(t):79===t?e.parseBaseNodeFactory.createBaseIdentifierNode(t):80===t?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(t):e.isNodeKind(t)?e.parseBaseNodeFactory.createBaseNode(t):e.parseBaseNodeFactory.createBaseTokenNode(t),r,n)}),{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate((function(t){var r=e.factory.cloneNode(t);return e.setTextRange(r,t),e.setParent(r,t.parent),r}),{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`."}),e.isTypeAssertion=e.Debug.deprecate((function(e){return 210===e.kind}),{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."}),e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate((function(t){return e.isMemberName(t)}),{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})}(c||(c={}))}(vm);var bm,Sm,Tm,Cm={},Em={},km={},Am={},Fm={},Nm={};bm=Nm,Object.defineProperty(bm,"__esModule",{value:!0}),bm.AST_TOKEN_TYPES=bm.AST_NODE_TYPES=void 0,(Sm=bm.AST_NODE_TYPES||(bm.AST_NODE_TYPES={})).ArrayExpression="ArrayExpression",Sm.ArrayPattern="ArrayPattern",Sm.ArrowFunctionExpression="ArrowFunctionExpression",Sm.AssignmentExpression="AssignmentExpression",Sm.AssignmentPattern="AssignmentPattern",Sm.AwaitExpression="AwaitExpression",Sm.BinaryExpression="BinaryExpression",Sm.BlockStatement="BlockStatement",Sm.BreakStatement="BreakStatement",Sm.CallExpression="CallExpression",Sm.CatchClause="CatchClause",Sm.ChainExpression="ChainExpression",Sm.ClassBody="ClassBody",Sm.ClassDeclaration="ClassDeclaration",Sm.ClassExpression="ClassExpression",Sm.ConditionalExpression="ConditionalExpression",Sm.ContinueStatement="ContinueStatement",Sm.DebuggerStatement="DebuggerStatement",Sm.Decorator="Decorator",Sm.DoWhileStatement="DoWhileStatement",Sm.EmptyStatement="EmptyStatement",Sm.ExportAllDeclaration="ExportAllDeclaration",Sm.ExportDefaultDeclaration="ExportDefaultDeclaration",Sm.ExportNamedDeclaration="ExportNamedDeclaration",Sm.ExportSpecifier="ExportSpecifier",Sm.ExpressionStatement="ExpressionStatement",Sm.ForInStatement="ForInStatement",Sm.ForOfStatement="ForOfStatement",Sm.ForStatement="ForStatement",Sm.FunctionDeclaration="FunctionDeclaration",Sm.FunctionExpression="FunctionExpression",Sm.Identifier="Identifier",Sm.IfStatement="IfStatement",Sm.ImportAttribute="ImportAttribute",Sm.ImportDeclaration="ImportDeclaration",Sm.ImportDefaultSpecifier="ImportDefaultSpecifier",Sm.ImportExpression="ImportExpression",Sm.ImportNamespaceSpecifier="ImportNamespaceSpecifier",Sm.ImportSpecifier="ImportSpecifier",Sm.JSXAttribute="JSXAttribute",Sm.JSXClosingElement="JSXClosingElement",Sm.JSXClosingFragment="JSXClosingFragment",Sm.JSXElement="JSXElement",Sm.JSXEmptyExpression="JSXEmptyExpression",Sm.JSXExpressionContainer="JSXExpressionContainer",Sm.JSXFragment="JSXFragment",Sm.JSXIdentifier="JSXIdentifier",Sm.JSXMemberExpression="JSXMemberExpression",Sm.JSXNamespacedName="JSXNamespacedName",Sm.JSXOpeningElement="JSXOpeningElement",Sm.JSXOpeningFragment="JSXOpeningFragment",Sm.JSXSpreadAttribute="JSXSpreadAttribute",Sm.JSXSpreadChild="JSXSpreadChild",Sm.JSXText="JSXText",Sm.LabeledStatement="LabeledStatement",Sm.Literal="Literal",Sm.LogicalExpression="LogicalExpression",Sm.MemberExpression="MemberExpression",Sm.MetaProperty="MetaProperty",Sm.MethodDefinition="MethodDefinition",Sm.NewExpression="NewExpression",Sm.ObjectExpression="ObjectExpression",Sm.ObjectPattern="ObjectPattern",Sm.PrivateIdentifier="PrivateIdentifier",Sm.Program="Program",Sm.Property="Property",Sm.PropertyDefinition="PropertyDefinition",Sm.RestElement="RestElement",Sm.ReturnStatement="ReturnStatement",Sm.SequenceExpression="SequenceExpression",Sm.SpreadElement="SpreadElement",Sm.StaticBlock="StaticBlock",Sm.Super="Super",Sm.SwitchCase="SwitchCase",Sm.SwitchStatement="SwitchStatement",Sm.TaggedTemplateExpression="TaggedTemplateExpression",Sm.TemplateElement="TemplateElement",Sm.TemplateLiteral="TemplateLiteral",Sm.ThisExpression="ThisExpression",Sm.ThrowStatement="ThrowStatement",Sm.TryStatement="TryStatement",Sm.UnaryExpression="UnaryExpression",Sm.UpdateExpression="UpdateExpression",Sm.VariableDeclaration="VariableDeclaration",Sm.VariableDeclarator="VariableDeclarator",Sm.WhileStatement="WhileStatement",Sm.WithStatement="WithStatement",Sm.YieldExpression="YieldExpression",Sm.TSAbstractKeyword="TSAbstractKeyword",Sm.TSAbstractMethodDefinition="TSAbstractMethodDefinition",Sm.TSAbstractPropertyDefinition="TSAbstractPropertyDefinition",Sm.TSAnyKeyword="TSAnyKeyword",Sm.TSArrayType="TSArrayType",Sm.TSAsExpression="TSAsExpression",Sm.TSAsyncKeyword="TSAsyncKeyword",Sm.TSBigIntKeyword="TSBigIntKeyword",Sm.TSBooleanKeyword="TSBooleanKeyword",Sm.TSCallSignatureDeclaration="TSCallSignatureDeclaration",Sm.TSClassImplements="TSClassImplements",Sm.TSConditionalType="TSConditionalType",Sm.TSConstructorType="TSConstructorType",Sm.TSConstructSignatureDeclaration="TSConstructSignatureDeclaration",Sm.TSDeclareFunction="TSDeclareFunction",Sm.TSDeclareKeyword="TSDeclareKeyword",Sm.TSEmptyBodyFunctionExpression="TSEmptyBodyFunctionExpression",Sm.TSEnumDeclaration="TSEnumDeclaration",Sm.TSEnumMember="TSEnumMember",Sm.TSExportAssignment="TSExportAssignment",Sm.TSExportKeyword="TSExportKeyword",Sm.TSExternalModuleReference="TSExternalModuleReference",Sm.TSFunctionType="TSFunctionType",Sm.TSImportEqualsDeclaration="TSImportEqualsDeclaration",Sm.TSImportType="TSImportType",Sm.TSIndexedAccessType="TSIndexedAccessType",Sm.TSIndexSignature="TSIndexSignature",Sm.TSInferType="TSInferType",Sm.TSInterfaceBody="TSInterfaceBody",Sm.TSInterfaceDeclaration="TSInterfaceDeclaration",Sm.TSInterfaceHeritage="TSInterfaceHeritage",Sm.TSIntersectionType="TSIntersectionType",Sm.TSIntrinsicKeyword="TSIntrinsicKeyword",Sm.TSLiteralType="TSLiteralType",Sm.TSMappedType="TSMappedType",Sm.TSMethodSignature="TSMethodSignature",Sm.TSModuleBlock="TSModuleBlock",Sm.TSModuleDeclaration="TSModuleDeclaration",Sm.TSNamedTupleMember="TSNamedTupleMember",Sm.TSNamespaceExportDeclaration="TSNamespaceExportDeclaration",Sm.TSNeverKeyword="TSNeverKeyword",Sm.TSNonNullExpression="TSNonNullExpression",Sm.TSNullKeyword="TSNullKeyword",Sm.TSNumberKeyword="TSNumberKeyword",Sm.TSObjectKeyword="TSObjectKeyword",Sm.TSOptionalType="TSOptionalType",Sm.TSParameterProperty="TSParameterProperty",Sm.TSPrivateKeyword="TSPrivateKeyword",Sm.TSPropertySignature="TSPropertySignature",Sm.TSProtectedKeyword="TSProtectedKeyword",Sm.TSPublicKeyword="TSPublicKeyword",Sm.TSQualifiedName="TSQualifiedName",Sm.TSReadonlyKeyword="TSReadonlyKeyword",Sm.TSRestType="TSRestType",Sm.TSStaticKeyword="TSStaticKeyword",Sm.TSStringKeyword="TSStringKeyword",Sm.TSSymbolKeyword="TSSymbolKeyword",Sm.TSTemplateLiteralType="TSTemplateLiteralType",Sm.TSThisType="TSThisType",Sm.TSTupleType="TSTupleType",Sm.TSTypeAliasDeclaration="TSTypeAliasDeclaration",Sm.TSTypeAnnotation="TSTypeAnnotation",Sm.TSTypeAssertion="TSTypeAssertion",Sm.TSTypeLiteral="TSTypeLiteral",Sm.TSTypeOperator="TSTypeOperator",Sm.TSTypeParameter="TSTypeParameter",Sm.TSTypeParameterDeclaration="TSTypeParameterDeclaration",Sm.TSTypeParameterInstantiation="TSTypeParameterInstantiation",Sm.TSTypePredicate="TSTypePredicate",Sm.TSTypeQuery="TSTypeQuery",Sm.TSTypeReference="TSTypeReference",Sm.TSUndefinedKeyword="TSUndefinedKeyword",Sm.TSUnionType="TSUnionType",Sm.TSUnknownKeyword="TSUnknownKeyword",Sm.TSVoidKeyword="TSVoidKeyword",(Tm=bm.AST_TOKEN_TYPES||(bm.AST_TOKEN_TYPES={})).Boolean="Boolean",Tm.Identifier="Identifier",Tm.JSXIdentifier="JSXIdentifier",Tm.JSXText="JSXText",Tm.Keyword="Keyword",Tm.Null="Null",Tm.Numeric="Numeric",Tm.Punctuator="Punctuator",Tm.RegularExpression="RegularExpression",Tm.String="String",Tm.Template="Template",Tm.Block="Block",Tm.Line="Line";var Pm={};Object.defineProperty(Pm,"__esModule",{value:!0});var wm={};Object.defineProperty(wm,"__esModule",{value:!0});var Im={},Om=e&&e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),Mm=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Lm=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&Om(t,e,r);return Mm(t,e),t};Object.defineProperty(Im,"__esModule",{value:!0}),Im.TSESTree=void 0,Im.TSESTree=Lm(Nm),function(t){var r=e&&e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=e&&e.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.AST_TOKEN_TYPES=t.AST_NODE_TYPES=void 0;var i=Nm;Object.defineProperty(t,"AST_NODE_TYPES",{enumerable:!0,get:function(){return i.AST_NODE_TYPES}});var a=Nm;Object.defineProperty(t,"AST_TOKEN_TYPES",{enumerable:!0,get:function(){return a.AST_TOKEN_TYPES}}),n(Pm,t),n(wm,t),n(Im,t)}(Fm);var Rm={};Object.defineProperty(Rm,"__esModule",{value:!0});var Bm={};Object.defineProperty(Bm,"__esModule",{value:!0}),function(t){var r=e&&e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=e&&e.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.TSESTree=t.AST_TOKEN_TYPES=t.AST_NODE_TYPES=void 0;var i=Fm;Object.defineProperty(t,"AST_NODE_TYPES",{enumerable:!0,get:function(){return i.AST_NODE_TYPES}}),Object.defineProperty(t,"AST_TOKEN_TYPES",{enumerable:!0,get:function(){return i.AST_TOKEN_TYPES}}),Object.defineProperty(t,"TSESTree",{enumerable:!0,get:function(){return i.TSESTree}}),n(Rm,t),n(Bm,t)}(Am);var jm={};Object.defineProperty(jm,"__esModule",{value:!0}),jm.xhtmlEntities=void 0,jm.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"};var Jm=e&&e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),Km=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),zm=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&Jm(t,e,r);return Km(t,e),t};Object.defineProperty(km,"__esModule",{value:!0}),km.firstDefined=km.nodeHasTokens=km.createError=km.TSError=km.convertTokens=km.convertToken=km.getTokenType=km.isChildUnwrappableOptionalChain=km.isChainExpression=km.isOptional=km.isComputedProperty=km.unescapeStringLiteralText=km.hasJSXAncestor=km.findFirstMatchingAncestor=km.findNextToken=km.getTSNodeAccessibility=km.getDeclarationKind=km.isJSXToken=km.isToken=km.getRange=km.canContainDirective=km.getLocFor=km.getLineAndCharacterFor=km.getBinaryExpressionType=km.isJSDocComment=km.isComment=km.isComma=km.getLastModifier=km.hasModifier=km.isESTreeClassMember=km.getTextForTokenKind=km.isLogicalOperator=km.isAssignmentOperator=void 0;const Um=zm(vm.exports),Vm=Am,qm=jm,Wm=Um.SyntaxKind,Hm=[Wm.BarBarToken,Wm.AmpersandAmpersandToken,Wm.QuestionQuestionToken];function Gm(e){return e.kind>=Wm.FirstAssignment&&e.kind<=Wm.LastAssignment}function Ym(e){return Hm.includes(e.kind)}function Xm(e){return e.kind===Wm.SingleLineCommentTrivia||e.kind===Wm.MultiLineCommentTrivia}function Qm(e){return e.kind===Wm.JSDocComment}function $m(e,t){const r=t.getLineAndCharacterOfPosition(e);return{line:r.line+1,column:r.character}}function Zm(e,t,r){return{start:$m(e,r),end:$m(t,r)}}function ey(e){return e.kind>=Wm.FirstToken&&e.kind<=Wm.LastToken}function ty(e){return e.kind>=Wm.JsxElement&&e.kind<=Wm.JsxAttribute}function ry(e,t){for(;e;){if(t(e))return e;e=e.parent}}function ny(e){return!!ry(e,ty)}function iy(e){return e.type===Vm.AST_NODE_TYPES.ChainExpression}function ay(e){if("originalKeywordKind"in e&&e.originalKeywordKind)return e.originalKeywordKind===Wm.NullKeyword?Vm.AST_TOKEN_TYPES.Null:e.originalKeywordKind>=Wm.FirstFutureReservedWord&&e.originalKeywordKind<=Wm.LastKeyword?Vm.AST_TOKEN_TYPES.Identifier:Vm.AST_TOKEN_TYPES.Keyword;if(e.kind>=Wm.FirstKeyword&&e.kind<=Wm.LastFutureReservedWord)return e.kind===Wm.FalseKeyword||e.kind===Wm.TrueKeyword?Vm.AST_TOKEN_TYPES.Boolean:Vm.AST_TOKEN_TYPES.Keyword;if(e.kind>=Wm.FirstPunctuation&&e.kind<=Wm.LastPunctuation)return Vm.AST_TOKEN_TYPES.Punctuator;if(e.kind>=Wm.NoSubstitutionTemplateLiteral&&e.kind<=Wm.TemplateTail)return Vm.AST_TOKEN_TYPES.Template;switch(e.kind){case Wm.NumericLiteral:return Vm.AST_TOKEN_TYPES.Numeric;case Wm.JsxText:return Vm.AST_TOKEN_TYPES.JSXText;case Wm.StringLiteral:return!e.parent||e.parent.kind!==Wm.JsxAttribute&&e.parent.kind!==Wm.JsxElement?Vm.AST_TOKEN_TYPES.String:Vm.AST_TOKEN_TYPES.JSXText;case Wm.RegularExpressionLiteral:return Vm.AST_TOKEN_TYPES.RegularExpression;case Wm.Identifier:case Wm.ConstructorKeyword:case Wm.GetKeyword:case Wm.SetKeyword:}if(e.parent&&e.kind===Wm.Identifier){if(ty(e.parent))return Vm.AST_TOKEN_TYPES.JSXIdentifier;if(e.parent.kind===Wm.PropertyAccessExpression&&ny(e))return Vm.AST_TOKEN_TYPES.JSXIdentifier}return Vm.AST_TOKEN_TYPES.Identifier}function oy(e,t){const r=e.kind===Wm.JsxText?e.getFullStart():e.getStart(t),n=e.getEnd(),i=t.text.slice(r,n),a=ay(e);return a===Vm.AST_TOKEN_TYPES.RegularExpression?{type:a,value:i,range:[r,n],loc:Zm(r,n,t),regex:{pattern:i.slice(1,i.lastIndexOf("/")),flags:i.slice(i.lastIndexOf("/")+1)}}:{type:a,value:i,range:[r,n],loc:Zm(r,n,t)}}km.isAssignmentOperator=Gm,km.isLogicalOperator=Ym,km.getTextForTokenKind=function(e){return Um.tokenToString(e)},km.isESTreeClassMember=function(e){return e.kind!==Wm.SemicolonClassElement},km.hasModifier=function(e,t){return!!t.modifiers&&!!t.modifiers.length&&t.modifiers.some((t=>t.kind===e))},km.getLastModifier=function(e){return!!e.modifiers&&!!e.modifiers.length&&e.modifiers[e.modifiers.length-1]||null},km.isComma=function(e){return e.kind===Wm.CommaToken},km.isComment=Xm,km.isJSDocComment=Qm,km.getBinaryExpressionType=function(e){return Gm(e)?Vm.AST_NODE_TYPES.AssignmentExpression:Ym(e)?Vm.AST_NODE_TYPES.LogicalExpression:Vm.AST_NODE_TYPES.BinaryExpression},km.getLineAndCharacterFor=$m,km.getLocFor=Zm,km.canContainDirective=function(e){if(e.kind===Um.SyntaxKind.Block)switch(e.parent.kind){case Um.SyntaxKind.Constructor:case Um.SyntaxKind.GetAccessor:case Um.SyntaxKind.SetAccessor:case Um.SyntaxKind.ArrowFunction:case Um.SyntaxKind.FunctionExpression:case Um.SyntaxKind.FunctionDeclaration:case Um.SyntaxKind.MethodDeclaration:return!0;default:return!1}return!0},km.getRange=function(e,t){return[e.getStart(t),e.getEnd()]},km.isToken=ey,km.isJSXToken=ty,km.getDeclarationKind=function(e){return e.flags&Um.NodeFlags.Let?"let":e.flags&Um.NodeFlags.Const?"const":"var"},km.getTSNodeAccessibility=function(e){const t=e.modifiers;if(!t)return null;for(let e=0;e(n.pos<=e.pos&&n.end>e.end||n.pos===e.end)&&cy(n,r)?t(n):void 0))}(t)},km.findFirstMatchingAncestor=ry,km.hasJSXAncestor=ny,km.unescapeStringLiteralText=function(e){return e.replace(/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g,(e=>{const t=e.slice(1,-1);if("#"===t[0]){const r="x"===t[1]?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return r>1114111?e:String.fromCodePoint(r)}return qm.xhtmlEntities[t]||e}))},km.isComputedProperty=function(e){return e.kind===Wm.ComputedPropertyName},km.isOptional=function(e){return!!e.questionToken&&e.questionToken.kind===Wm.QuestionToken},km.isChainExpression=iy,km.isChildUnwrappableOptionalChain=function(e,t){return iy(t)&&e.expression.kind!==Um.SyntaxKind.ParenthesizedExpression},km.getTokenType=ay,km.convertToken=oy,km.convertTokens=function(e){const t=[];return function r(n){if(!Xm(n)&&!Qm(n))if(ey(n)&&n.kind!==Wm.EndOfFileToken){const r=oy(n,e);r&&t.push(r)}else n.getChildren(e).forEach(r)}(e),t};class sy extends Error{constructor(e,t,r,n,i){super(e),this.fileName=t,this.index=r,this.lineNumber=n,this.column=i,Object.defineProperty(this,"name",{value:new.target.name,enumerable:!1,configurable:!0})}}function cy(e,t){return e.kind===Wm.EndOfFileToken?!!e.jsDoc:0!==e.getWidth(t)}function uy(e,t){if(void 0!==e)for(let r=0;r{const t=this.convertChild(e);if(r){if((null==t?void 0:t.expression)&&hy.isExpressionStatement(e)&&hy.isStringLiteral(e.expression)){const e=t.expression.raw;return t.directive=e.slice(1,-1),t}r=!1}return t})).filter((e=>e))}convertTypeArgumentsToTypeParameters(e,t){const r=(0,Dy.findNextToken)(e,this.ast,this.ast);return this.createNode(t,{type:xy.AST_NODE_TYPES.TSTypeParameterInstantiation,range:[e.pos-1,r.end],params:e.map((e=>this.convertType(e)))})}convertTSTypeParametersToTypeParametersDeclaration(e){const t=(0,Dy.findNextToken)(e,this.ast,this.ast);return{type:xy.AST_NODE_TYPES.TSTypeParameterDeclaration,range:[e.pos-1,t.end],loc:(0,Dy.getLocFor)(e.pos-1,t.end,this.ast),params:e.map((e=>this.convertType(e)))}}convertParameters(e){return e&&e.length?e.map((e=>{var t;const r=this.convertChild(e);return(null===(t=e.decorators)||void 0===t?void 0:t.length)&&(r.decorators=e.decorators.map((e=>this.convertChild(e)))),r})):[]}convertChainExpression(e,t){const{child:r,isOptional:n}=e.type===xy.AST_NODE_TYPES.MemberExpression?{child:e.object,isOptional:e.optional}:e.type===xy.AST_NODE_TYPES.CallExpression?{child:e.callee,isOptional:e.optional}:{child:e.expression,isOptional:!1},i=(0,Dy.isChildUnwrappableOptionalChain)(t,r);if(!i&&!n)return e;if(i&&(0,Dy.isChainExpression)(r)){const t=r.expression;e.type===xy.AST_NODE_TYPES.MemberExpression?e.object=t:e.type===xy.AST_NODE_TYPES.CallExpression?e.callee=t:e.expression=t}return this.createNode(t,{type:xy.AST_NODE_TYPES.ChainExpression,expression:e})}deeplyCopy(e){if(e.kind===hy.SyntaxKind.JSDocFunctionType)throw(0,Dy.createError)(this.ast,e.pos,"JSDoc types can only be used inside documentation comments.");const t="TS".concat(Sy[e.kind]);if(this.options.errorOnUnknownASTType&&!xy.AST_NODE_TYPES[t])throw new Error('Unknown AST_NODE_TYPE: "'.concat(t,'"'));const r=this.createNode(e,{type:t});return"type"in e&&(r.typeAnnotation=e.type&&"kind"in e.type&&hy.isTypeNode(e.type)?this.convertTypeAnnotation(e.type,e):null),"typeArguments"in e&&(r.typeParameters=e.typeArguments&&"pos"in e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments,e):null),"typeParameters"in e&&(r.typeParameters=e.typeParameters&&"pos"in e.typeParameters?this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters):null),"decorators"in e&&e.decorators&&e.decorators.length&&(r.decorators=e.decorators.map((e=>this.convertChild(e)))),Object.entries(e).filter((e=>{let[t]=e;return!/^(?:_children|kind|parent|pos|end|flags|modifierFlagsCache|jsDoc|type|typeArguments|typeParameters|decorators|transformFlags)$/.test(t)})).forEach((e=>{let[t,n]=e;Array.isArray(n)?r[t]=n.map((e=>this.convertChild(e))):n&&"object"==typeof n&&n.kind?r[t]=this.convertChild(n):r[t]=n})),r}convertJSXIdentifier(e){const t=this.createNode(e,{type:xy.AST_NODE_TYPES.JSXIdentifier,name:e.getText()});return this.registerTSNodeInNodeMap(e,t),t}convertJSXNamespaceOrIdentifier(e){const t=e.getText(),r=t.indexOf(":");if(r>0){const n=(0,Dy.getRange)(e,this.ast),i=this.createNode(e,{type:xy.AST_NODE_TYPES.JSXNamespacedName,namespace:this.createNode(e,{type:xy.AST_NODE_TYPES.JSXIdentifier,name:t.slice(0,r),range:[n[0],n[0]+r]}),name:this.createNode(e,{type:xy.AST_NODE_TYPES.JSXIdentifier,name:t.slice(r+1),range:[n[0]+r+1,n[1]]}),range:n});return this.registerTSNodeInNodeMap(e,i),i}return this.convertJSXIdentifier(e)}convertJSXTagName(e,t){let r;switch(e.kind){case Sy.PropertyAccessExpression:if(e.name.kind===Sy.PrivateIdentifier)throw new Error("Non-private identifier expected.");r=this.createNode(e,{type:xy.AST_NODE_TYPES.JSXMemberExpression,object:this.convertJSXTagName(e.expression,t),property:this.convertJSXIdentifier(e.name)});break;case Sy.ThisKeyword:case Sy.Identifier:default:return this.convertJSXNamespaceOrIdentifier(e)}return this.registerTSNodeInNodeMap(e,r),r}convertMethodSignature(e){const t=this.createNode(e,{type:xy.AST_NODE_TYPES.TSMethodSignature,computed:(0,Dy.isComputedProperty)(e.name),key:this.convertChild(e.name),params:this.convertParameters(e.parameters),kind:(()=>{switch(e.kind){case Sy.GetAccessor:return"get";case Sy.SetAccessor:return"set";case Sy.MethodSignature:return"method"}})()});(0,Dy.isOptional)(e)&&(t.optional=!0),e.type&&(t.returnType=this.convertTypeAnnotation(e.type,e)),(0,Dy.hasModifier)(Sy.ReadonlyKeyword,e)&&(t.readonly=!0),e.typeParameters&&(t.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters));const r=(0,Dy.getTSNodeAccessibility)(e);return r&&(t.accessibility=r),(0,Dy.hasModifier)(Sy.ExportKeyword,e)&&(t.export=!0),(0,Dy.hasModifier)(Sy.StaticKeyword,e)&&(t.static=!0),t}convertAssertClasue(e){return void 0===e?[]:e.elements.map((e=>this.convertChild(e)))}applyModifiersToResult(e,t){if(!t||!t.length)return;const r=[];for(let n=0;ne.range[1]&&(e.range[1]=t[1],e.loc.end=(0,Dy.getLineAndCharacterFor)(e.range[1],this.ast))}assertModuleSpecifier(e){if(e.moduleSpecifier&&e.moduleSpecifier.kind!==Sy.StringLiteral)throw(0,Dy.createError)(this.ast,e.moduleSpecifier.pos,"Module specifier must be a string literal.")}convertNode(e,t){var r,n,i,a,o,s,c,u,l,d;switch(e.kind){case Sy.SourceFile:return this.createNode(e,{type:xy.AST_NODE_TYPES.Program,body:this.convertBodyExpressions(e.statements,e),sourceType:e.externalModuleIndicator?"module":"script",range:[e.getStart(this.ast),e.endOfFileToken.end]});case Sy.Block:return this.createNode(e,{type:xy.AST_NODE_TYPES.BlockStatement,body:this.convertBodyExpressions(e.statements,e)});case Sy.Identifier:return this.createNode(e,{type:xy.AST_NODE_TYPES.Identifier,name:e.text});case Sy.PrivateIdentifier:return this.createNode(e,{type:xy.AST_NODE_TYPES.PrivateIdentifier,name:e.text.slice(1)});case Sy.WithStatement:return this.createNode(e,{type:xy.AST_NODE_TYPES.WithStatement,object:this.convertChild(e.expression),body:this.convertChild(e.statement)});case Sy.ReturnStatement:return this.createNode(e,{type:xy.AST_NODE_TYPES.ReturnStatement,argument:this.convertChild(e.expression)});case Sy.LabeledStatement:return this.createNode(e,{type:xy.AST_NODE_TYPES.LabeledStatement,label:this.convertChild(e.label),body:this.convertChild(e.statement)});case Sy.ContinueStatement:return this.createNode(e,{type:xy.AST_NODE_TYPES.ContinueStatement,label:this.convertChild(e.label)});case Sy.BreakStatement:return this.createNode(e,{type:xy.AST_NODE_TYPES.BreakStatement,label:this.convertChild(e.label)});case Sy.IfStatement:return this.createNode(e,{type:xy.AST_NODE_TYPES.IfStatement,test:this.convertChild(e.expression),consequent:this.convertChild(e.thenStatement),alternate:this.convertChild(e.elseStatement)});case Sy.SwitchStatement:return this.createNode(e,{type:xy.AST_NODE_TYPES.SwitchStatement,discriminant:this.convertChild(e.expression),cases:e.caseBlock.clauses.map((e=>this.convertChild(e)))});case Sy.CaseClause:case Sy.DefaultClause:return this.createNode(e,{type:xy.AST_NODE_TYPES.SwitchCase,test:e.kind===Sy.CaseClause?this.convertChild(e.expression):null,consequent:e.statements.map((e=>this.convertChild(e)))});case Sy.ThrowStatement:return this.createNode(e,{type:xy.AST_NODE_TYPES.ThrowStatement,argument:this.convertChild(e.expression)});case Sy.TryStatement:return this.createNode(e,{type:xy.AST_NODE_TYPES.TryStatement,block:this.convertChild(e.tryBlock),handler:this.convertChild(e.catchClause),finalizer:this.convertChild(e.finallyBlock)});case Sy.CatchClause:return this.createNode(e,{type:xy.AST_NODE_TYPES.CatchClause,param:e.variableDeclaration?this.convertBindingNameWithTypeAnnotation(e.variableDeclaration.name,e.variableDeclaration.type):null,body:this.convertChild(e.block)});case Sy.WhileStatement:return this.createNode(e,{type:xy.AST_NODE_TYPES.WhileStatement,test:this.convertChild(e.expression),body:this.convertChild(e.statement)});case Sy.DoStatement:return this.createNode(e,{type:xy.AST_NODE_TYPES.DoWhileStatement,test:this.convertChild(e.expression),body:this.convertChild(e.statement)});case Sy.ForStatement:return this.createNode(e,{type:xy.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 Sy.ForInStatement:return this.createNode(e,{type:xy.AST_NODE_TYPES.ForInStatement,left:this.convertPattern(e.initializer),right:this.convertChild(e.expression),body:this.convertChild(e.statement)});case Sy.ForOfStatement:return this.createNode(e,{type:xy.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===Sy.AwaitKeyword)});case Sy.FunctionDeclaration:{const t=(0,Dy.hasModifier)(Sy.DeclareKeyword,e),r=this.createNode(e,{type:t||!e.body?xy.AST_NODE_TYPES.TSDeclareFunction:xy.AST_NODE_TYPES.FunctionDeclaration,id:this.convertChild(e.name),generator:!!e.asteriskToken,expression:!1,async:(0,Dy.hasModifier)(Sy.AsyncKeyword,e),params:this.convertParameters(e.parameters),body:this.convertChild(e.body)||void 0});return e.type&&(r.returnType=this.convertTypeAnnotation(e.type,e)),t&&(r.declare=!0),e.typeParameters&&(r.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),this.fixExports(e,r)}case Sy.VariableDeclaration:{const t=this.createNode(e,{type:xy.AST_NODE_TYPES.VariableDeclarator,id:this.convertBindingNameWithTypeAnnotation(e.name,e.type,e),init:this.convertChild(e.initializer)});return e.exclamationToken&&(t.definite=!0),t}case Sy.VariableStatement:{const t=this.createNode(e,{type:xy.AST_NODE_TYPES.VariableDeclaration,declarations:e.declarationList.declarations.map((e=>this.convertChild(e))),kind:(0,Dy.getDeclarationKind)(e.declarationList)});return e.decorators&&(t.decorators=e.decorators.map((e=>this.convertChild(e)))),(0,Dy.hasModifier)(Sy.DeclareKeyword,e)&&(t.declare=!0),this.fixExports(e,t)}case Sy.VariableDeclarationList:return this.createNode(e,{type:xy.AST_NODE_TYPES.VariableDeclaration,declarations:e.declarations.map((e=>this.convertChild(e))),kind:(0,Dy.getDeclarationKind)(e)});case Sy.ExpressionStatement:return this.createNode(e,{type:xy.AST_NODE_TYPES.ExpressionStatement,expression:this.convertChild(e.expression)});case Sy.ThisKeyword:return this.createNode(e,{type:xy.AST_NODE_TYPES.ThisExpression});case Sy.ArrayLiteralExpression:return this.allowPattern?this.createNode(e,{type:xy.AST_NODE_TYPES.ArrayPattern,elements:e.elements.map((e=>this.convertPattern(e)))}):this.createNode(e,{type:xy.AST_NODE_TYPES.ArrayExpression,elements:e.elements.map((e=>this.convertChild(e)))});case Sy.ObjectLiteralExpression:return this.allowPattern?this.createNode(e,{type:xy.AST_NODE_TYPES.ObjectPattern,properties:e.properties.map((e=>this.convertPattern(e)))}):this.createNode(e,{type:xy.AST_NODE_TYPES.ObjectExpression,properties:e.properties.map((e=>this.convertChild(e)))});case Sy.PropertyAssignment:return this.createNode(e,{type:xy.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:this.converter(e.initializer,e,this.inTypeMode,this.allowPattern),computed:(0,Dy.isComputedProperty)(e.name),method:!1,shorthand:!1,kind:"init"});case Sy.ShorthandPropertyAssignment:return e.objectAssignmentInitializer?this.createNode(e,{type:xy.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:this.createNode(e,{type:xy.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:xy.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:this.convertChild(e.name),computed:!1,method:!1,shorthand:!0,kind:"init"});case Sy.ComputedPropertyName:return this.convertChild(e.expression);case Sy.PropertyDeclaration:{const t=(0,Dy.hasModifier)(Sy.AbstractKeyword,e),r=this.createNode(e,{type:t?xy.AST_NODE_TYPES.TSAbstractPropertyDefinition:xy.AST_NODE_TYPES.PropertyDefinition,key:this.convertChild(e.name),value:t?null:this.convertChild(e.initializer),computed:(0,Dy.isComputedProperty)(e.name),static:(0,Dy.hasModifier)(Sy.StaticKeyword,e),readonly:(0,Dy.hasModifier)(Sy.ReadonlyKeyword,e)||void 0,declare:(0,Dy.hasModifier)(Sy.DeclareKeyword,e),override:(0,Dy.hasModifier)(Sy.OverrideKeyword,e)});e.type&&(r.typeAnnotation=this.convertTypeAnnotation(e.type,e)),e.decorators&&(r.decorators=e.decorators.map((e=>this.convertChild(e))));const n=(0,Dy.getTSNodeAccessibility)(e);return n&&(r.accessibility=n),e.name.kind!==Sy.Identifier&&e.name.kind!==Sy.ComputedPropertyName&&e.name.kind!==Sy.PrivateIdentifier||!e.questionToken||(r.optional=!0),e.exclamationToken&&(r.definite=!0),r.key.type===xy.AST_NODE_TYPES.Literal&&e.questionToken&&(r.optional=!0),r}case Sy.GetAccessor:case Sy.SetAccessor:if(e.parent.kind===Sy.InterfaceDeclaration||e.parent.kind===Sy.TypeLiteral)return this.convertMethodSignature(e);case Sy.MethodDeclaration:{const r=this.createNode(e,{type:e.body?xy.AST_NODE_TYPES.FunctionExpression:xy.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,id:null,generator:!!e.asteriskToken,expression:!1,async:(0,Dy.hasModifier)(Sy.AsyncKeyword,e),body:this.convertChild(e.body),range:[e.parameters.pos-1,e.end],params:[]});let n;if(e.type&&(r.returnType=this.convertTypeAnnotation(e.type,e)),e.typeParameters&&(r.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters),this.fixParentLocation(r,r.typeParameters.range)),t.kind===Sy.ObjectLiteralExpression)r.params=e.parameters.map((e=>this.convertChild(e))),n=this.createNode(e,{type:xy.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:r,computed:(0,Dy.isComputedProperty)(e.name),method:e.kind===Sy.MethodDeclaration,shorthand:!1,kind:"init"});else{r.params=this.convertParameters(e.parameters);const t=(0,Dy.hasModifier)(Sy.AbstractKeyword,e)?xy.AST_NODE_TYPES.TSAbstractMethodDefinition:xy.AST_NODE_TYPES.MethodDefinition;n=this.createNode(e,{type:t,key:this.convertChild(e.name),value:r,computed:(0,Dy.isComputedProperty)(e.name),static:(0,Dy.hasModifier)(Sy.StaticKeyword,e),kind:"method",override:(0,Dy.hasModifier)(Sy.OverrideKeyword,e)}),e.decorators&&(n.decorators=e.decorators.map((e=>this.convertChild(e))));const i=(0,Dy.getTSNodeAccessibility)(e);i&&(n.accessibility=i)}return e.questionToken&&(n.optional=!0),e.kind===Sy.GetAccessor?n.kind="get":e.kind===Sy.SetAccessor?n.kind="set":n.static||e.name.kind!==Sy.StringLiteral||"constructor"!==e.name.text||n.type===xy.AST_NODE_TYPES.Property||(n.kind="constructor"),n}case Sy.Constructor:{const t=(0,Dy.getLastModifier)(e),r=t&&(0,Dy.findNextToken)(t,e,this.ast)||e.getFirstToken(),n=this.createNode(e,{type:e.body?xy.AST_NODE_TYPES.FunctionExpression:xy.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,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&&(n.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters),this.fixParentLocation(n,n.typeParameters.range)),e.type&&(n.returnType=this.convertTypeAnnotation(e.type,e));const i=this.createNode(e,{type:xy.AST_NODE_TYPES.Identifier,name:"constructor",range:[r.getStart(this.ast),r.end]}),a=(0,Dy.hasModifier)(Sy.StaticKeyword,e),o=this.createNode(e,{type:(0,Dy.hasModifier)(Sy.AbstractKeyword,e)?xy.AST_NODE_TYPES.TSAbstractMethodDefinition:xy.AST_NODE_TYPES.MethodDefinition,key:i,value:n,computed:!1,static:a,kind:a?"method":"constructor",override:!1}),s=(0,Dy.getTSNodeAccessibility)(e);return s&&(o.accessibility=s),o}case Sy.FunctionExpression:{const t=this.createNode(e,{type:xy.AST_NODE_TYPES.FunctionExpression,id:this.convertChild(e.name),generator:!!e.asteriskToken,params:this.convertParameters(e.parameters),body:this.convertChild(e.body),async:(0,Dy.hasModifier)(Sy.AsyncKeyword,e),expression:!1});return e.type&&(t.returnType=this.convertTypeAnnotation(e.type,e)),e.typeParameters&&(t.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),t}case Sy.SuperKeyword:return this.createNode(e,{type:xy.AST_NODE_TYPES.Super});case Sy.ArrayBindingPattern:return this.createNode(e,{type:xy.AST_NODE_TYPES.ArrayPattern,elements:e.elements.map((e=>this.convertPattern(e)))});case Sy.OmittedExpression:return null;case Sy.ObjectBindingPattern:return this.createNode(e,{type:xy.AST_NODE_TYPES.ObjectPattern,properties:e.elements.map((e=>this.convertPattern(e)))});case Sy.BindingElement:if(t.kind===Sy.ArrayBindingPattern){const r=this.convertChild(e.name,t);return e.initializer?this.createNode(e,{type:xy.AST_NODE_TYPES.AssignmentPattern,left:r,right:this.convertChild(e.initializer)}):e.dotDotDotToken?this.createNode(e,{type:xy.AST_NODE_TYPES.RestElement,argument:r}):r}{let t;return t=e.dotDotDotToken?this.createNode(e,{type:xy.AST_NODE_TYPES.RestElement,argument:this.convertChild(null!==(r=e.propertyName)&&void 0!==r?r:e.name)}):this.createNode(e,{type:xy.AST_NODE_TYPES.Property,key:this.convertChild(null!==(n=e.propertyName)&&void 0!==n?n:e.name),value:this.convertChild(e.name),computed:Boolean(e.propertyName&&e.propertyName.kind===Sy.ComputedPropertyName),method:!1,shorthand:!e.propertyName,kind:"init"}),e.initializer&&(t.value=this.createNode(e,{type:xy.AST_NODE_TYPES.AssignmentPattern,left:this.convertChild(e.name),right:this.convertChild(e.initializer),range:[e.name.getStart(this.ast),e.initializer.end]})),t}case Sy.ArrowFunction:{const t=this.createNode(e,{type:xy.AST_NODE_TYPES.ArrowFunctionExpression,generator:!1,id:null,params:this.convertParameters(e.parameters),body:this.convertChild(e.body),async:(0,Dy.hasModifier)(Sy.AsyncKeyword,e),expression:e.body.kind!==Sy.Block});return e.type&&(t.returnType=this.convertTypeAnnotation(e.type,e)),e.typeParameters&&(t.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),t}case Sy.YieldExpression:return this.createNode(e,{type:xy.AST_NODE_TYPES.YieldExpression,delegate:!!e.asteriskToken,argument:this.convertChild(e.expression)});case Sy.AwaitExpression:return this.createNode(e,{type:xy.AST_NODE_TYPES.AwaitExpression,argument:this.convertChild(e.expression)});case Sy.NoSubstitutionTemplateLiteral:return this.createNode(e,{type:xy.AST_NODE_TYPES.TemplateLiteral,quasis:[this.createNode(e,{type:xy.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 Sy.TemplateExpression:{const t=this.createNode(e,{type:xy.AST_NODE_TYPES.TemplateLiteral,quasis:[this.convertChild(e.head)],expressions:[]});return e.templateSpans.forEach((e=>{t.expressions.push(this.convertChild(e.expression)),t.quasis.push(this.convertChild(e.literal))})),t}case Sy.TaggedTemplateExpression:return this.createNode(e,{type:xy.AST_NODE_TYPES.TaggedTemplateExpression,typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments,e):void 0,tag:this.convertChild(e.tag),quasi:this.convertChild(e.template)});case Sy.TemplateHead:case Sy.TemplateMiddle:case Sy.TemplateTail:{const t=e.kind===Sy.TemplateTail;return this.createNode(e,{type:xy.AST_NODE_TYPES.TemplateElement,value:{raw:this.ast.text.slice(e.getStart(this.ast)+1,e.end-(t?1:2)),cooked:e.text},tail:t})}case Sy.SpreadAssignment:case Sy.SpreadElement:return this.allowPattern?this.createNode(e,{type:xy.AST_NODE_TYPES.RestElement,argument:this.convertPattern(e.expression)}):this.createNode(e,{type:xy.AST_NODE_TYPES.SpreadElement,argument:this.convertChild(e.expression)});case Sy.Parameter:{let r,n;return e.dotDotDotToken?r=n=this.createNode(e,{type:xy.AST_NODE_TYPES.RestElement,argument:this.convertChild(e.name)}):e.initializer?(r=this.convertChild(e.name),n=this.createNode(e,{type:xy.AST_NODE_TYPES.AssignmentPattern,left:r,right:this.convertChild(e.initializer)}),e.modifiers&&(n.range[0]=r.range[0],n.loc=(0,Dy.getLocFor)(n.range[0],n.range[1],this.ast))):r=n=this.convertChild(e.name,t),e.type&&(r.typeAnnotation=this.convertTypeAnnotation(e.type,e),this.fixParentLocation(r,r.typeAnnotation.range)),e.questionToken&&(e.questionToken.end>r.range[1]&&(r.range[1]=e.questionToken.end,r.loc.end=(0,Dy.getLineAndCharacterFor)(r.range[1],this.ast)),r.optional=!0),e.modifiers?this.createNode(e,{type:xy.AST_NODE_TYPES.TSParameterProperty,accessibility:null!==(i=(0,Dy.getTSNodeAccessibility)(e))&&void 0!==i?i:void 0,readonly:(0,Dy.hasModifier)(Sy.ReadonlyKeyword,e)||void 0,static:(0,Dy.hasModifier)(Sy.StaticKeyword,e)||void 0,export:(0,Dy.hasModifier)(Sy.ExportKeyword,e)||void 0,override:(0,Dy.hasModifier)(Sy.OverrideKeyword,e)||void 0,parameter:n}):n}case Sy.ClassDeclaration:case Sy.ClassExpression:{const t=null!==(a=e.heritageClauses)&&void 0!==a?a:[],r=e.kind===Sy.ClassDeclaration?xy.AST_NODE_TYPES.ClassDeclaration:xy.AST_NODE_TYPES.ClassExpression,n=t.find((e=>e.token===Sy.ExtendsKeyword)),i=t.find((e=>e.token===Sy.ImplementsKeyword)),s=this.createNode(e,{type:r,id:this.convertChild(e.name),body:this.createNode(e,{type:xy.AST_NODE_TYPES.ClassBody,body:[],range:[e.members.pos-1,e.end]}),superClass:(null==n?void 0:n.types[0])?this.convertChild(n.types[0].expression):null});if(n){if(n.types.length>1)throw(0,Dy.createError)(this.ast,n.types[1].pos,"Classes can only extend a single class.");(null===(o=n.types[0])||void 0===o?void 0:o.typeArguments)&&(s.superTypeParameters=this.convertTypeArgumentsToTypeParameters(n.types[0].typeArguments,n.types[0]))}e.typeParameters&&(s.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),i&&(s.implements=i.types.map((e=>this.convertChild(e)))),(0,Dy.hasModifier)(Sy.AbstractKeyword,e)&&(s.abstract=!0),(0,Dy.hasModifier)(Sy.DeclareKeyword,e)&&(s.declare=!0),e.decorators&&(s.decorators=e.decorators.map((e=>this.convertChild(e))));const c=e.members.filter(Dy.isESTreeClassMember);return c.length&&(s.body.body=c.map((e=>this.convertChild(e)))),this.fixExports(e,s)}case Sy.ModuleBlock:return this.createNode(e,{type:xy.AST_NODE_TYPES.TSModuleBlock,body:this.convertBodyExpressions(e.statements,e)});case Sy.ImportDeclaration:{this.assertModuleSpecifier(e);const t=this.createNode(e,{type:xy.AST_NODE_TYPES.ImportDeclaration,source:this.convertChild(e.moduleSpecifier),specifiers:[],importKind:"value",assertions:this.convertAssertClasue(e.assertClause)});if(e.importClause&&(e.importClause.isTypeOnly&&(t.importKind="type"),e.importClause.name&&t.specifiers.push(this.convertChild(e.importClause)),e.importClause.namedBindings))switch(e.importClause.namedBindings.kind){case Sy.NamespaceImport:t.specifiers.push(this.convertChild(e.importClause.namedBindings));break;case Sy.NamedImports:t.specifiers=t.specifiers.concat(e.importClause.namedBindings.elements.map((e=>this.convertChild(e))))}return t}case Sy.NamespaceImport:return this.createNode(e,{type:xy.AST_NODE_TYPES.ImportNamespaceSpecifier,local:this.convertChild(e.name)});case Sy.ImportSpecifier:return this.createNode(e,{type:xy.AST_NODE_TYPES.ImportSpecifier,local:this.convertChild(e.name),imported:this.convertChild(null!==(s=e.propertyName)&&void 0!==s?s:e.name),importKind:e.isTypeOnly?"type":"value"});case Sy.ImportClause:{const t=this.convertChild(e.name);return this.createNode(e,{type:xy.AST_NODE_TYPES.ImportDefaultSpecifier,local:t,range:t.range})}case Sy.ExportDeclaration:return this.assertModuleSpecifier(e),(null===(c=e.exportClause)||void 0===c?void 0:c.kind)===Sy.NamedExports?this.createNode(e,{type:xy.AST_NODE_TYPES.ExportNamedDeclaration,source:this.convertChild(e.moduleSpecifier),specifiers:e.exportClause.elements.map((e=>this.convertChild(e))),exportKind:e.isTypeOnly?"type":"value",declaration:null,assertions:this.convertAssertClasue(e.assertClause)}):this.createNode(e,{type:xy.AST_NODE_TYPES.ExportAllDeclaration,source:this.convertChild(e.moduleSpecifier),exportKind:e.isTypeOnly?"type":"value",exported:e.exportClause&&e.exportClause.kind===Sy.NamespaceExport?this.convertChild(e.exportClause.name):null,assertions:this.convertAssertClasue(e.assertClause)});case Sy.ExportSpecifier:return this.createNode(e,{type:xy.AST_NODE_TYPES.ExportSpecifier,local:this.convertChild(null!==(u=e.propertyName)&&void 0!==u?u:e.name),exported:this.convertChild(e.name),exportKind:e.isTypeOnly?"type":"value"});case Sy.ExportAssignment:return e.isExportEquals?this.createNode(e,{type:xy.AST_NODE_TYPES.TSExportAssignment,expression:this.convertChild(e.expression)}):this.createNode(e,{type:xy.AST_NODE_TYPES.ExportDefaultDeclaration,declaration:this.convertChild(e.expression),exportKind:"value"});case Sy.PrefixUnaryExpression:case Sy.PostfixUnaryExpression:{const t=(0,Dy.getTextForTokenKind)(e.operator);return"++"===t||"--"===t?this.createNode(e,{type:xy.AST_NODE_TYPES.UpdateExpression,operator:t,prefix:e.kind===Sy.PrefixUnaryExpression,argument:this.convertChild(e.operand)}):this.createNode(e,{type:xy.AST_NODE_TYPES.UnaryExpression,operator:t,prefix:e.kind===Sy.PrefixUnaryExpression,argument:this.convertChild(e.operand)})}case Sy.DeleteExpression:return this.createNode(e,{type:xy.AST_NODE_TYPES.UnaryExpression,operator:"delete",prefix:!0,argument:this.convertChild(e.expression)});case Sy.VoidExpression:return this.createNode(e,{type:xy.AST_NODE_TYPES.UnaryExpression,operator:"void",prefix:!0,argument:this.convertChild(e.expression)});case Sy.TypeOfExpression:return this.createNode(e,{type:xy.AST_NODE_TYPES.UnaryExpression,operator:"typeof",prefix:!0,argument:this.convertChild(e.expression)});case Sy.TypeOperator:return this.createNode(e,{type:xy.AST_NODE_TYPES.TSTypeOperator,operator:(0,Dy.getTextForTokenKind)(e.operator),typeAnnotation:this.convertChild(e.type)});case Sy.BinaryExpression:if((0,Dy.isComma)(e.operatorToken)){const t=this.createNode(e,{type:xy.AST_NODE_TYPES.SequenceExpression,expressions:[]}),r=this.convertChild(e.left);return r.type===xy.AST_NODE_TYPES.SequenceExpression&&e.left.kind!==Sy.ParenthesizedExpression?t.expressions=t.expressions.concat(r.expressions):t.expressions.push(r),t.expressions.push(this.convertChild(e.right)),t}{const t=(0,Dy.getBinaryExpressionType)(e.operatorToken);return this.allowPattern&&t===xy.AST_NODE_TYPES.AssignmentExpression?this.createNode(e,{type:xy.AST_NODE_TYPES.AssignmentPattern,left:this.convertPattern(e.left,e),right:this.convertChild(e.right)}):this.createNode(e,{type:t,operator:(0,Dy.getTextForTokenKind)(e.operatorToken.kind),left:this.converter(e.left,e,this.inTypeMode,t===xy.AST_NODE_TYPES.AssignmentExpression),right:this.convertChild(e.right)})}case Sy.PropertyAccessExpression:{const t=this.convertChild(e.expression),r=this.convertChild(e.name),n=!1,i=this.createNode(e,{type:xy.AST_NODE_TYPES.MemberExpression,object:t,property:r,computed:n,optional:void 0!==e.questionDotToken});return this.convertChainExpression(i,e)}case Sy.ElementAccessExpression:{const t=this.convertChild(e.expression),r=this.convertChild(e.argumentExpression),n=!0,i=this.createNode(e,{type:xy.AST_NODE_TYPES.MemberExpression,object:t,property:r,computed:n,optional:void 0!==e.questionDotToken});return this.convertChainExpression(i,e)}case Sy.CallExpression:{if(e.expression.kind===Sy.ImportKeyword){if(1!==e.arguments.length&&2!==e.arguments.length)throw(0,Dy.createError)(this.ast,e.arguments.pos,"Dynamic import requires exactly one or two arguments.");return this.createNode(e,{type:xy.AST_NODE_TYPES.ImportExpression,source:this.convertChild(e.arguments[0]),attributes:e.arguments[1]?this.convertChild(e.arguments[1]):null})}const t=this.convertChild(e.expression),r=e.arguments.map((e=>this.convertChild(e))),n=this.createNode(e,{type:xy.AST_NODE_TYPES.CallExpression,callee:t,arguments:r,optional:void 0!==e.questionDotToken});return e.typeArguments&&(n.typeParameters=this.convertTypeArgumentsToTypeParameters(e.typeArguments,e)),this.convertChainExpression(n,e)}case Sy.NewExpression:{const t=this.createNode(e,{type:xy.AST_NODE_TYPES.NewExpression,callee:this.convertChild(e.expression),arguments:e.arguments?e.arguments.map((e=>this.convertChild(e))):[]});return e.typeArguments&&(t.typeParameters=this.convertTypeArgumentsToTypeParameters(e.typeArguments,e)),t}case Sy.ConditionalExpression:return this.createNode(e,{type:xy.AST_NODE_TYPES.ConditionalExpression,test:this.convertChild(e.condition),consequent:this.convertChild(e.whenTrue),alternate:this.convertChild(e.whenFalse)});case Sy.MetaProperty:return this.createNode(e,{type:xy.AST_NODE_TYPES.MetaProperty,meta:this.createNode(e.getFirstToken(),{type:xy.AST_NODE_TYPES.Identifier,name:(0,Dy.getTextForTokenKind)(e.keywordToken)}),property:this.convertChild(e.name)});case Sy.Decorator:return this.createNode(e,{type:xy.AST_NODE_TYPES.Decorator,expression:this.convertChild(e.expression)});case Sy.StringLiteral:return this.createNode(e,{type:xy.AST_NODE_TYPES.Literal,value:t.kind===Sy.JsxAttribute?(0,Dy.unescapeStringLiteralText)(e.text):e.text,raw:e.getText()});case Sy.NumericLiteral:return this.createNode(e,{type:xy.AST_NODE_TYPES.Literal,value:Number(e.text),raw:e.getText()});case Sy.BigIntLiteral:{const t=(0,Dy.getRange)(e,this.ast),r=this.ast.text.slice(t[0],t[1]),n=r.slice(0,-1).replace(/_/g,""),i="undefined"!=typeof BigInt?BigInt(n):null;return this.createNode(e,{type:xy.AST_NODE_TYPES.Literal,raw:r,value:i,bigint:null===i?n:String(i),range:t})}case Sy.RegularExpressionLiteral:{const t=e.text.slice(1,e.text.lastIndexOf("/")),r=e.text.slice(e.text.lastIndexOf("/")+1);let n=null;try{n=new RegExp(t,r)}catch(e){n=null}return this.createNode(e,{type:xy.AST_NODE_TYPES.Literal,value:n,raw:e.text,regex:{pattern:t,flags:r}})}case Sy.TrueKeyword:return this.createNode(e,{type:xy.AST_NODE_TYPES.Literal,value:!0,raw:"true"});case Sy.FalseKeyword:return this.createNode(e,{type:xy.AST_NODE_TYPES.Literal,value:!1,raw:"false"});case Sy.NullKeyword:return!by.typescriptVersionIsAtLeast["4.0"]&&this.inTypeMode?this.createNode(e,{type:xy.AST_NODE_TYPES.TSNullKeyword}):this.createNode(e,{type:xy.AST_NODE_TYPES.Literal,value:null,raw:"null"});case Sy.EmptyStatement:return this.createNode(e,{type:xy.AST_NODE_TYPES.EmptyStatement});case Sy.DebuggerStatement:return this.createNode(e,{type:xy.AST_NODE_TYPES.DebuggerStatement});case Sy.JsxElement:return this.createNode(e,{type:xy.AST_NODE_TYPES.JSXElement,openingElement:this.convertChild(e.openingElement),closingElement:this.convertChild(e.closingElement),children:e.children.map((e=>this.convertChild(e)))});case Sy.JsxFragment:return this.createNode(e,{type:xy.AST_NODE_TYPES.JSXFragment,openingFragment:this.convertChild(e.openingFragment),closingFragment:this.convertChild(e.closingFragment),children:e.children.map((e=>this.convertChild(e)))});case Sy.JsxSelfClosingElement:return this.createNode(e,{type:xy.AST_NODE_TYPES.JSXElement,openingElement:this.createNode(e,{type:xy.AST_NODE_TYPES.JSXOpeningElement,typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments,e):void 0,selfClosing:!0,name:this.convertJSXTagName(e.tagName,e),attributes:e.attributes.properties.map((e=>this.convertChild(e))),range:(0,Dy.getRange)(e,this.ast)}),closingElement:null,children:[]});case Sy.JsxOpeningElement:return this.createNode(e,{type:xy.AST_NODE_TYPES.JSXOpeningElement,typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments,e):void 0,selfClosing:!1,name:this.convertJSXTagName(e.tagName,e),attributes:e.attributes.properties.map((e=>this.convertChild(e)))});case Sy.JsxClosingElement:return this.createNode(e,{type:xy.AST_NODE_TYPES.JSXClosingElement,name:this.convertJSXTagName(e.tagName,e)});case Sy.JsxOpeningFragment:return this.createNode(e,{type:xy.AST_NODE_TYPES.JSXOpeningFragment});case Sy.JsxClosingFragment:return this.createNode(e,{type:xy.AST_NODE_TYPES.JSXClosingFragment});case Sy.JsxExpression:{const t=e.expression?this.convertChild(e.expression):this.createNode(e,{type:xy.AST_NODE_TYPES.JSXEmptyExpression,range:[e.getStart(this.ast)+1,e.getEnd()-1]});return e.dotDotDotToken?this.createNode(e,{type:xy.AST_NODE_TYPES.JSXSpreadChild,expression:t}):this.createNode(e,{type:xy.AST_NODE_TYPES.JSXExpressionContainer,expression:t})}case Sy.JsxAttribute:return this.createNode(e,{type:xy.AST_NODE_TYPES.JSXAttribute,name:this.convertJSXNamespaceOrIdentifier(e.name),value:this.convertChild(e.initializer)});case Sy.JsxText:{const t=e.getFullStart(),r=e.getEnd(),n=this.ast.text.slice(t,r);return this.createNode(e,{type:xy.AST_NODE_TYPES.JSXText,value:(0,Dy.unescapeStringLiteralText)(n),raw:n,range:[t,r]})}case Sy.JsxSpreadAttribute:return this.createNode(e,{type:xy.AST_NODE_TYPES.JSXSpreadAttribute,argument:this.convertChild(e.expression)});case Sy.QualifiedName:return this.createNode(e,{type:xy.AST_NODE_TYPES.TSQualifiedName,left:this.convertChild(e.left),right:this.convertChild(e.right)});case Sy.TypeReference:return this.createNode(e,{type:xy.AST_NODE_TYPES.TSTypeReference,typeName:this.convertType(e.typeName),typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments,e):void 0});case Sy.TypeParameter:return this.createNode(e,{type:xy.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 Sy.ThisType:return this.createNode(e,{type:xy.AST_NODE_TYPES.TSThisType});case Sy.AnyKeyword:case Sy.BigIntKeyword:case Sy.BooleanKeyword:case Sy.NeverKeyword:case Sy.NumberKeyword:case Sy.ObjectKeyword:case Sy.StringKeyword:case Sy.SymbolKeyword:case Sy.UnknownKeyword:case Sy.VoidKeyword:case Sy.UndefinedKeyword:case Sy.IntrinsicKeyword:return this.createNode(e,{type:xy.AST_NODE_TYPES["TS".concat(Sy[e.kind])]});case Sy.NonNullExpression:{const t=this.createNode(e,{type:xy.AST_NODE_TYPES.TSNonNullExpression,expression:this.convertChild(e.expression)});return this.convertChainExpression(t,e)}case Sy.TypeLiteral:return this.createNode(e,{type:xy.AST_NODE_TYPES.TSTypeLiteral,members:e.members.map((e=>this.convertChild(e)))});case Sy.ArrayType:return this.createNode(e,{type:xy.AST_NODE_TYPES.TSArrayType,elementType:this.convertType(e.elementType)});case Sy.IndexedAccessType:return this.createNode(e,{type:xy.AST_NODE_TYPES.TSIndexedAccessType,objectType:this.convertType(e.objectType),indexType:this.convertType(e.indexType)});case Sy.ConditionalType:return this.createNode(e,{type:xy.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 Sy.TypeQuery:return this.createNode(e,{type:xy.AST_NODE_TYPES.TSTypeQuery,exprName:this.convertType(e.exprName)});case Sy.MappedType:{const t=this.createNode(e,{type:xy.AST_NODE_TYPES.TSMappedType,typeParameter:this.convertType(e.typeParameter),nameType:null!==(l=this.convertType(e.nameType))&&void 0!==l?l:null});return e.readonlyToken&&(e.readonlyToken.kind===Sy.ReadonlyKeyword?t.readonly=!0:t.readonly=(0,Dy.getTextForTokenKind)(e.readonlyToken.kind)),e.questionToken&&(e.questionToken.kind===Sy.QuestionToken?t.optional=!0:t.optional=(0,Dy.getTextForTokenKind)(e.questionToken.kind)),e.type&&(t.typeAnnotation=this.convertType(e.type)),t}case Sy.ParenthesizedExpression:return this.convertChild(e.expression,t);case Sy.TypeAliasDeclaration:{const t=this.createNode(e,{type:xy.AST_NODE_TYPES.TSTypeAliasDeclaration,id:this.convertChild(e.name),typeAnnotation:this.convertType(e.type)});return(0,Dy.hasModifier)(Sy.DeclareKeyword,e)&&(t.declare=!0),e.typeParameters&&(t.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),this.fixExports(e,t)}case Sy.MethodSignature:return this.convertMethodSignature(e);case Sy.PropertySignature:{const t=this.createNode(e,{type:xy.AST_NODE_TYPES.TSPropertySignature,optional:(0,Dy.isOptional)(e)||void 0,computed:(0,Dy.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:(0,Dy.hasModifier)(Sy.ReadonlyKeyword,e)||void 0,static:(0,Dy.hasModifier)(Sy.StaticKeyword,e)||void 0,export:(0,Dy.hasModifier)(Sy.ExportKeyword,e)||void 0}),r=(0,Dy.getTSNodeAccessibility)(e);return r&&(t.accessibility=r),t}case Sy.IndexSignature:{const t=this.createNode(e,{type:xy.AST_NODE_TYPES.TSIndexSignature,parameters:e.parameters.map((e=>this.convertChild(e)))});e.type&&(t.typeAnnotation=this.convertTypeAnnotation(e.type,e)),(0,Dy.hasModifier)(Sy.ReadonlyKeyword,e)&&(t.readonly=!0);const r=(0,Dy.getTSNodeAccessibility)(e);return r&&(t.accessibility=r),(0,Dy.hasModifier)(Sy.ExportKeyword,e)&&(t.export=!0),(0,Dy.hasModifier)(Sy.StaticKeyword,e)&&(t.static=!0),t}case Sy.ConstructorType:{const t=this.createNode(e,{type:xy.AST_NODE_TYPES.TSConstructorType,params:this.convertParameters(e.parameters),abstract:(0,Dy.hasModifier)(Sy.AbstractKeyword,e)});return e.type&&(t.returnType=this.convertTypeAnnotation(e.type,e)),e.typeParameters&&(t.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),t}case Sy.FunctionType:case Sy.ConstructSignature:case Sy.CallSignature:{const t=e.kind===Sy.ConstructSignature?xy.AST_NODE_TYPES.TSConstructSignatureDeclaration:e.kind===Sy.CallSignature?xy.AST_NODE_TYPES.TSCallSignatureDeclaration:xy.AST_NODE_TYPES.TSFunctionType,r=this.createNode(e,{type:t,params:this.convertParameters(e.parameters)});return e.type&&(r.returnType=this.convertTypeAnnotation(e.type,e)),e.typeParameters&&(r.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),r}case Sy.ExpressionWithTypeArguments:{const r=this.createNode(e,{type:t&&t.kind===Sy.InterfaceDeclaration?xy.AST_NODE_TYPES.TSInterfaceHeritage:xy.AST_NODE_TYPES.TSClassImplements,expression:this.convertChild(e.expression)});return e.typeArguments&&(r.typeParameters=this.convertTypeArgumentsToTypeParameters(e.typeArguments,e)),r}case Sy.InterfaceDeclaration:{const t=null!==(d=e.heritageClauses)&&void 0!==d?d:[],r=this.createNode(e,{type:xy.AST_NODE_TYPES.TSInterfaceDeclaration,body:this.createNode(e,{type:xy.AST_NODE_TYPES.TSInterfaceBody,body:e.members.map((e=>this.convertChild(e))),range:[e.members.pos-1,e.end]}),id:this.convertChild(e.name)});if(e.typeParameters&&(r.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),t.length>0){const n=[],i=[];for(const r of t)if(r.token===Sy.ExtendsKeyword)for(const t of r.types)n.push(this.convertChild(t,e));else for(const t of r.types)i.push(this.convertChild(t,e));n.length&&(r.extends=n),i.length&&(r.implements=i)}return(0,Dy.hasModifier)(Sy.AbstractKeyword,e)&&(r.abstract=!0),(0,Dy.hasModifier)(Sy.DeclareKeyword,e)&&(r.declare=!0),this.fixExports(e,r)}case Sy.TypePredicate:{const t=this.createNode(e,{type:xy.AST_NODE_TYPES.TSTypePredicate,asserts:void 0!==e.assertsModifier,parameterName:this.convertChild(e.parameterName),typeAnnotation:null});return e.type&&(t.typeAnnotation=this.convertTypeAnnotation(e.type,e),t.typeAnnotation.loc=t.typeAnnotation.typeAnnotation.loc,t.typeAnnotation.range=t.typeAnnotation.typeAnnotation.range),t}case Sy.ImportType:return this.createNode(e,{type:xy.AST_NODE_TYPES.TSImportType,isTypeOf:!!e.isTypeOf,parameter:this.convertChild(e.argument),qualifier:this.convertChild(e.qualifier),typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments,e):null});case Sy.EnumDeclaration:{const t=this.createNode(e,{type:xy.AST_NODE_TYPES.TSEnumDeclaration,id:this.convertChild(e.name),members:e.members.map((e=>this.convertChild(e)))});return this.applyModifiersToResult(t,e.modifiers),this.fixExports(e,t)}case Sy.EnumMember:{const t=this.createNode(e,{type:xy.AST_NODE_TYPES.TSEnumMember,id:this.convertChild(e.name)});return e.initializer&&(t.initializer=this.convertChild(e.initializer)),e.name.kind===hy.SyntaxKind.ComputedPropertyName&&(t.computed=!0),t}case Sy.ModuleDeclaration:{const t=this.createNode(e,{type:xy.AST_NODE_TYPES.TSModuleDeclaration,id:this.convertChild(e.name)});return e.body&&(t.body=this.convertChild(e.body)),this.applyModifiersToResult(t,e.modifiers),e.flags&hy.NodeFlags.GlobalAugmentation&&(t.global=!0),this.fixExports(e,t)}case Sy.ParenthesizedType:return this.convertType(e.type);case Sy.UnionType:return this.createNode(e,{type:xy.AST_NODE_TYPES.TSUnionType,types:e.types.map((e=>this.convertType(e)))});case Sy.IntersectionType:return this.createNode(e,{type:xy.AST_NODE_TYPES.TSIntersectionType,types:e.types.map((e=>this.convertType(e)))});case Sy.AsExpression:return this.createNode(e,{type:xy.AST_NODE_TYPES.TSAsExpression,expression:this.convertChild(e.expression),typeAnnotation:this.convertType(e.type)});case Sy.InferType:return this.createNode(e,{type:xy.AST_NODE_TYPES.TSInferType,typeParameter:this.convertType(e.typeParameter)});case Sy.LiteralType:return by.typescriptVersionIsAtLeast["4.0"]&&e.literal.kind===Sy.NullKeyword?this.createNode(e.literal,{type:xy.AST_NODE_TYPES.TSNullKeyword}):this.createNode(e,{type:xy.AST_NODE_TYPES.TSLiteralType,literal:this.convertType(e.literal)});case Sy.TypeAssertionExpression:return this.createNode(e,{type:xy.AST_NODE_TYPES.TSTypeAssertion,typeAnnotation:this.convertType(e.type),expression:this.convertChild(e.expression)});case Sy.ImportEqualsDeclaration:return this.createNode(e,{type:xy.AST_NODE_TYPES.TSImportEqualsDeclaration,id:this.convertChild(e.name),moduleReference:this.convertChild(e.moduleReference),importKind:e.isTypeOnly?"type":"value",isExport:(0,Dy.hasModifier)(Sy.ExportKeyword,e)});case Sy.ExternalModuleReference:return this.createNode(e,{type:xy.AST_NODE_TYPES.TSExternalModuleReference,expression:this.convertChild(e.expression)});case Sy.NamespaceExportDeclaration:return this.createNode(e,{type:xy.AST_NODE_TYPES.TSNamespaceExportDeclaration,id:this.convertChild(e.name)});case Sy.AbstractKeyword:return this.createNode(e,{type:xy.AST_NODE_TYPES.TSAbstractKeyword});case Sy.TupleType:{const t="elementTypes"in e?e.elementTypes.map((e=>this.convertType(e))):e.elements.map((e=>this.convertType(e)));return this.createNode(e,{type:xy.AST_NODE_TYPES.TSTupleType,elementTypes:t})}case Sy.NamedTupleMember:{const t=this.createNode(e,{type:xy.AST_NODE_TYPES.TSNamedTupleMember,elementType:this.convertType(e.type,e),label:this.convertChild(e.name,e),optional:null!=e.questionToken});return e.dotDotDotToken?(t.range[0]=t.label.range[0],t.loc.start=t.label.loc.start,this.createNode(e,{type:xy.AST_NODE_TYPES.TSRestType,typeAnnotation:t})):t}case Sy.OptionalType:return this.createNode(e,{type:xy.AST_NODE_TYPES.TSOptionalType,typeAnnotation:this.convertType(e.type)});case Sy.RestType:return this.createNode(e,{type:xy.AST_NODE_TYPES.TSRestType,typeAnnotation:this.convertType(e.type)});case Sy.TemplateLiteralType:{const t=this.createNode(e,{type:xy.AST_NODE_TYPES.TSTemplateLiteralType,quasis:[this.convertChild(e.head)],types:[]});return e.templateSpans.forEach((e=>{t.types.push(this.convertChild(e.type)),t.quasis.push(this.convertChild(e.literal))})),t}case Sy.ClassStaticBlockDeclaration:return this.createNode(e,{type:xy.AST_NODE_TYPES.StaticBlock,body:this.convertBodyExpressions(e.body.statements,e)});case Sy.AssertEntry:return this.createNode(e,{type:xy.AST_NODE_TYPES.ImportAttribute,key:this.convertChild(e.name),value:this.convertChild(e.value)});default:return this.deeplyCopy(e)}}};var Ty={},Cy={},Ey={},ky=function(e,t){return ky=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])},ky(e,t)};var Ay=function(){return Ay=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ny(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 Py(e){return this instanceof Py?(this.v=e,this):new Py(e)}var wy=Object.freeze({__proto__:null,__extends:function(e,t){function r(){this.constructor=e}ky(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},get __assign(){return Ay},__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=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"==typeof 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){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).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=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]1||s(e,t)}))})}function s(e,t){try{(r=i[e](t)).value instanceof Py?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:Py(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=Fy(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}},__classPrivateFieldGet:function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},__classPrivateFieldSet:function(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}}),Iy={},Oy={},My={},Ly={};Object.defineProperty(Ly,"__esModule",{value:!0}),Ly.isExpressionStatement=Ly.isExpression=Ly.isExportSpecifier=Ly.isExportDeclaration=Ly.isExportAssignment=Ly.isEnumMember=Ly.isEnumDeclaration=Ly.isEntityNameExpression=Ly.isEntityName=Ly.isEmptyStatement=Ly.isElementAccessExpression=Ly.isDoStatement=Ly.isDeleteExpression=Ly.isDefaultClause=Ly.isDecorator=Ly.isDebuggerStatement=Ly.isComputedPropertyName=Ly.isContinueStatement=Ly.isConstructSignatureDeclaration=Ly.isConstructorTypeNode=Ly.isConstructorDeclaration=Ly.isConditionalTypeNode=Ly.isConditionalExpression=Ly.isCommaListExpression=Ly.isClassLikeDeclaration=Ly.isClassExpression=Ly.isClassDeclaration=Ly.isCatchClause=Ly.isCaseOrDefaultClause=Ly.isCaseClause=Ly.isCaseBlock=Ly.isCallSignatureDeclaration=Ly.isCallLikeExpression=Ly.isCallExpression=Ly.isBreakStatement=Ly.isBreakOrContinueStatement=Ly.isBooleanLiteral=Ly.isBlockLike=Ly.isBlock=Ly.isBindingPattern=Ly.isBindingElement=Ly.isBinaryExpression=Ly.isAwaitExpression=Ly.isAssertionExpression=Ly.isAsExpression=Ly.isArrowFunction=Ly.isArrayTypeNode=Ly.isArrayLiteralExpression=Ly.isArrayBindingPattern=Ly.isAccessorDeclaration=void 0,Ly.isNamespaceImport=Ly.isNamespaceDeclaration=Ly.isNamedImports=Ly.isNamedExports=Ly.isModuleDeclaration=Ly.isModuleBlock=Ly.isMethodSignature=Ly.isMethodDeclaration=Ly.isMetaProperty=Ly.isMappedTypeNode=Ly.isLiteralTypeNode=Ly.isLiteralExpression=Ly.isLabeledStatement=Ly.isJsxText=Ly.isJsxSpreadAttribute=Ly.isJsxSelfClosingElement=Ly.isJsxOpeningLikeElement=Ly.isJsxOpeningFragment=Ly.isJsxOpeningElement=Ly.isJsxFragment=Ly.isJsxExpression=Ly.isJsxElement=Ly.isJsxClosingFragment=Ly.isJsxClosingElement=Ly.isJsxAttributes=Ly.isJsxAttributeLike=Ly.isJsxAttribute=Ly.isJsDoc=Ly.isIterationStatement=Ly.isIntersectionTypeNode=Ly.isInterfaceDeclaration=Ly.isInferTypeNode=Ly.isIndexSignatureDeclaration=Ly.isIndexedAccessTypeNode=Ly.isImportSpecifier=Ly.isImportEqualsDeclaration=Ly.isImportDeclaration=Ly.isImportClause=Ly.isIfStatement=Ly.isIdentifier=Ly.isGetAccessorDeclaration=Ly.isFunctionTypeNode=Ly.isFunctionExpression=Ly.isFunctionDeclaration=Ly.isForStatement=Ly.isForOfStatement=Ly.isForInOrOfStatement=Ly.isForInStatement=Ly.isExternalModuleReference=Ly.isExpressionWithTypeArguments=void 0,Ly.isVariableStatement=Ly.isVariableDeclaration=Ly.isUnionTypeNode=Ly.isTypeQueryNode=Ly.isTypeReferenceNode=Ly.isTypePredicateNode=Ly.isTypeParameterDeclaration=Ly.isTypeOperatorNode=Ly.isTypeOfExpression=Ly.isTypeLiteralNode=Ly.isTypeAssertion=Ly.isTypeAliasDeclaration=Ly.isTupleTypeNode=Ly.isTryStatement=Ly.isThrowStatement=Ly.isTextualLiteral=Ly.isTemplateLiteral=Ly.isTemplateExpression=Ly.isTaggedTemplateExpression=Ly.isSyntaxList=Ly.isSwitchStatement=Ly.isStringLiteral=Ly.isSpreadElement=Ly.isSpreadAssignment=Ly.isSourceFile=Ly.isSignatureDeclaration=Ly.isShorthandPropertyAssignment=Ly.isSetAccessorDeclaration=Ly.isReturnStatement=Ly.isRegularExpressionLiteral=Ly.isQualifiedName=Ly.isPropertySignature=Ly.isPropertyDeclaration=Ly.isPropertyAssignment=Ly.isPropertyAccessExpression=Ly.isPrefixUnaryExpression=Ly.isPostfixUnaryExpression=Ly.isParenthesizedTypeNode=Ly.isParenthesizedExpression=Ly.isParameterDeclaration=Ly.isOmittedExpression=Ly.isObjectLiteralExpression=Ly.isObjectBindingPattern=Ly.isNumericOrStringLikeLiteral=Ly.isNumericLiteral=Ly.isNullLiteral=Ly.isNoSubstitutionTemplateLiteral=Ly.isNonNullExpression=Ly.isNewExpression=Ly.isNamespaceExportDeclaration=void 0,Ly.isWithStatement=Ly.isWhileStatement=Ly.isVoidExpression=Ly.isVariableDeclarationList=void 0;const Ry=vm.exports;function By(e){return e.kind===Ry.SyntaxKind.ModuleDeclaration}function jy(e){return e.kind===Ry.SyntaxKind.PropertyAccessExpression}function Jy(e){return e.kind===Ry.SyntaxKind.QualifiedName}Ly.isAccessorDeclaration=function(e){return e.kind===Ry.SyntaxKind.GetAccessor||e.kind===Ry.SyntaxKind.SetAccessor},Ly.isArrayBindingPattern=function(e){return e.kind===Ry.SyntaxKind.ArrayBindingPattern},Ly.isArrayLiteralExpression=function(e){return e.kind===Ry.SyntaxKind.ArrayLiteralExpression},Ly.isArrayTypeNode=function(e){return e.kind===Ry.SyntaxKind.ArrayType},Ly.isArrowFunction=function(e){return e.kind===Ry.SyntaxKind.ArrowFunction},Ly.isAsExpression=function(e){return e.kind===Ry.SyntaxKind.AsExpression},Ly.isAssertionExpression=function(e){return e.kind===Ry.SyntaxKind.AsExpression||e.kind===Ry.SyntaxKind.TypeAssertionExpression},Ly.isAwaitExpression=function(e){return e.kind===Ry.SyntaxKind.AwaitExpression},Ly.isBinaryExpression=function(e){return e.kind===Ry.SyntaxKind.BinaryExpression},Ly.isBindingElement=function(e){return e.kind===Ry.SyntaxKind.BindingElement},Ly.isBindingPattern=function(e){return e.kind===Ry.SyntaxKind.ArrayBindingPattern||e.kind===Ry.SyntaxKind.ObjectBindingPattern},Ly.isBlock=function(e){return e.kind===Ry.SyntaxKind.Block},Ly.isBlockLike=function(e){return void 0!==e.statements},Ly.isBooleanLiteral=function(e){return e.kind===Ry.SyntaxKind.TrueKeyword||e.kind===Ry.SyntaxKind.FalseKeyword},Ly.isBreakOrContinueStatement=function(e){return e.kind===Ry.SyntaxKind.BreakStatement||e.kind===Ry.SyntaxKind.ContinueStatement},Ly.isBreakStatement=function(e){return e.kind===Ry.SyntaxKind.BreakStatement},Ly.isCallExpression=function(e){return e.kind===Ry.SyntaxKind.CallExpression},Ly.isCallLikeExpression=function(e){switch(e.kind){case Ry.SyntaxKind.CallExpression:case Ry.SyntaxKind.Decorator:case Ry.SyntaxKind.JsxOpeningElement:case Ry.SyntaxKind.JsxSelfClosingElement:case Ry.SyntaxKind.NewExpression:case Ry.SyntaxKind.TaggedTemplateExpression:return!0;default:return!1}},Ly.isCallSignatureDeclaration=function(e){return e.kind===Ry.SyntaxKind.CallSignature},Ly.isCaseBlock=function(e){return e.kind===Ry.SyntaxKind.CaseBlock},Ly.isCaseClause=function(e){return e.kind===Ry.SyntaxKind.CaseClause},Ly.isCaseOrDefaultClause=function(e){return e.kind===Ry.SyntaxKind.CaseClause||e.kind===Ry.SyntaxKind.DefaultClause},Ly.isCatchClause=function(e){return e.kind===Ry.SyntaxKind.CatchClause},Ly.isClassDeclaration=function(e){return e.kind===Ry.SyntaxKind.ClassDeclaration},Ly.isClassExpression=function(e){return e.kind===Ry.SyntaxKind.ClassExpression},Ly.isClassLikeDeclaration=function(e){return e.kind===Ry.SyntaxKind.ClassDeclaration||e.kind===Ry.SyntaxKind.ClassExpression},Ly.isCommaListExpression=function(e){return e.kind===Ry.SyntaxKind.CommaListExpression},Ly.isConditionalExpression=function(e){return e.kind===Ry.SyntaxKind.ConditionalExpression},Ly.isConditionalTypeNode=function(e){return e.kind===Ry.SyntaxKind.ConditionalType},Ly.isConstructorDeclaration=function(e){return e.kind===Ry.SyntaxKind.Constructor},Ly.isConstructorTypeNode=function(e){return e.kind===Ry.SyntaxKind.ConstructorType},Ly.isConstructSignatureDeclaration=function(e){return e.kind===Ry.SyntaxKind.ConstructSignature},Ly.isContinueStatement=function(e){return e.kind===Ry.SyntaxKind.ContinueStatement},Ly.isComputedPropertyName=function(e){return e.kind===Ry.SyntaxKind.ComputedPropertyName},Ly.isDebuggerStatement=function(e){return e.kind===Ry.SyntaxKind.DebuggerStatement},Ly.isDecorator=function(e){return e.kind===Ry.SyntaxKind.Decorator},Ly.isDefaultClause=function(e){return e.kind===Ry.SyntaxKind.DefaultClause},Ly.isDeleteExpression=function(e){return e.kind===Ry.SyntaxKind.DeleteExpression},Ly.isDoStatement=function(e){return e.kind===Ry.SyntaxKind.DoStatement},Ly.isElementAccessExpression=function(e){return e.kind===Ry.SyntaxKind.ElementAccessExpression},Ly.isEmptyStatement=function(e){return e.kind===Ry.SyntaxKind.EmptyStatement},Ly.isEntityName=function(e){return e.kind===Ry.SyntaxKind.Identifier||Jy(e)},Ly.isEntityNameExpression=function e(t){return t.kind===Ry.SyntaxKind.Identifier||jy(t)&&e(t.expression)},Ly.isEnumDeclaration=function(e){return e.kind===Ry.SyntaxKind.EnumDeclaration},Ly.isEnumMember=function(e){return e.kind===Ry.SyntaxKind.EnumMember},Ly.isExportAssignment=function(e){return e.kind===Ry.SyntaxKind.ExportAssignment},Ly.isExportDeclaration=function(e){return e.kind===Ry.SyntaxKind.ExportDeclaration},Ly.isExportSpecifier=function(e){return e.kind===Ry.SyntaxKind.ExportSpecifier},Ly.isExpression=function(e){switch(e.kind){case Ry.SyntaxKind.ArrayLiteralExpression:case Ry.SyntaxKind.ArrowFunction:case Ry.SyntaxKind.AsExpression:case Ry.SyntaxKind.AwaitExpression:case Ry.SyntaxKind.BinaryExpression:case Ry.SyntaxKind.CallExpression:case Ry.SyntaxKind.ClassExpression:case Ry.SyntaxKind.CommaListExpression:case Ry.SyntaxKind.ConditionalExpression:case Ry.SyntaxKind.DeleteExpression:case Ry.SyntaxKind.ElementAccessExpression:case Ry.SyntaxKind.FalseKeyword:case Ry.SyntaxKind.FunctionExpression:case Ry.SyntaxKind.Identifier:case Ry.SyntaxKind.JsxElement:case Ry.SyntaxKind.JsxFragment:case Ry.SyntaxKind.JsxExpression:case Ry.SyntaxKind.JsxOpeningElement:case Ry.SyntaxKind.JsxOpeningFragment:case Ry.SyntaxKind.JsxSelfClosingElement:case Ry.SyntaxKind.MetaProperty:case Ry.SyntaxKind.NewExpression:case Ry.SyntaxKind.NonNullExpression:case Ry.SyntaxKind.NoSubstitutionTemplateLiteral:case Ry.SyntaxKind.NullKeyword:case Ry.SyntaxKind.NumericLiteral:case Ry.SyntaxKind.ObjectLiteralExpression:case Ry.SyntaxKind.OmittedExpression:case Ry.SyntaxKind.ParenthesizedExpression:case Ry.SyntaxKind.PostfixUnaryExpression:case Ry.SyntaxKind.PrefixUnaryExpression:case Ry.SyntaxKind.PropertyAccessExpression:case Ry.SyntaxKind.RegularExpressionLiteral:case Ry.SyntaxKind.SpreadElement:case Ry.SyntaxKind.StringLiteral:case Ry.SyntaxKind.SuperKeyword:case Ry.SyntaxKind.TaggedTemplateExpression:case Ry.SyntaxKind.TemplateExpression:case Ry.SyntaxKind.ThisKeyword:case Ry.SyntaxKind.TrueKeyword:case Ry.SyntaxKind.TypeAssertionExpression:case Ry.SyntaxKind.TypeOfExpression:case Ry.SyntaxKind.VoidExpression:case Ry.SyntaxKind.YieldExpression:return!0;default:return!1}},Ly.isExpressionStatement=function(e){return e.kind===Ry.SyntaxKind.ExpressionStatement},Ly.isExpressionWithTypeArguments=function(e){return e.kind===Ry.SyntaxKind.ExpressionWithTypeArguments},Ly.isExternalModuleReference=function(e){return e.kind===Ry.SyntaxKind.ExternalModuleReference},Ly.isForInStatement=function(e){return e.kind===Ry.SyntaxKind.ForInStatement},Ly.isForInOrOfStatement=function(e){return e.kind===Ry.SyntaxKind.ForOfStatement||e.kind===Ry.SyntaxKind.ForInStatement},Ly.isForOfStatement=function(e){return e.kind===Ry.SyntaxKind.ForOfStatement},Ly.isForStatement=function(e){return e.kind===Ry.SyntaxKind.ForStatement},Ly.isFunctionDeclaration=function(e){return e.kind===Ry.SyntaxKind.FunctionDeclaration},Ly.isFunctionExpression=function(e){return e.kind===Ry.SyntaxKind.FunctionExpression},Ly.isFunctionTypeNode=function(e){return e.kind===Ry.SyntaxKind.FunctionType},Ly.isGetAccessorDeclaration=function(e){return e.kind===Ry.SyntaxKind.GetAccessor},Ly.isIdentifier=function(e){return e.kind===Ry.SyntaxKind.Identifier},Ly.isIfStatement=function(e){return e.kind===Ry.SyntaxKind.IfStatement},Ly.isImportClause=function(e){return e.kind===Ry.SyntaxKind.ImportClause},Ly.isImportDeclaration=function(e){return e.kind===Ry.SyntaxKind.ImportDeclaration},Ly.isImportEqualsDeclaration=function(e){return e.kind===Ry.SyntaxKind.ImportEqualsDeclaration},Ly.isImportSpecifier=function(e){return e.kind===Ry.SyntaxKind.ImportSpecifier},Ly.isIndexedAccessTypeNode=function(e){return e.kind===Ry.SyntaxKind.IndexedAccessType},Ly.isIndexSignatureDeclaration=function(e){return e.kind===Ry.SyntaxKind.IndexSignature},Ly.isInferTypeNode=function(e){return e.kind===Ry.SyntaxKind.InferType},Ly.isInterfaceDeclaration=function(e){return e.kind===Ry.SyntaxKind.InterfaceDeclaration},Ly.isIntersectionTypeNode=function(e){return e.kind===Ry.SyntaxKind.IntersectionType},Ly.isIterationStatement=function(e){switch(e.kind){case Ry.SyntaxKind.ForStatement:case Ry.SyntaxKind.ForOfStatement:case Ry.SyntaxKind.ForInStatement:case Ry.SyntaxKind.WhileStatement:case Ry.SyntaxKind.DoStatement:return!0;default:return!1}},Ly.isJsDoc=function(e){return e.kind===Ry.SyntaxKind.JSDocComment},Ly.isJsxAttribute=function(e){return e.kind===Ry.SyntaxKind.JsxAttribute},Ly.isJsxAttributeLike=function(e){return e.kind===Ry.SyntaxKind.JsxAttribute||e.kind===Ry.SyntaxKind.JsxSpreadAttribute},Ly.isJsxAttributes=function(e){return e.kind===Ry.SyntaxKind.JsxAttributes},Ly.isJsxClosingElement=function(e){return e.kind===Ry.SyntaxKind.JsxClosingElement},Ly.isJsxClosingFragment=function(e){return e.kind===Ry.SyntaxKind.JsxClosingFragment},Ly.isJsxElement=function(e){return e.kind===Ry.SyntaxKind.JsxElement},Ly.isJsxExpression=function(e){return e.kind===Ry.SyntaxKind.JsxExpression},Ly.isJsxFragment=function(e){return e.kind===Ry.SyntaxKind.JsxFragment},Ly.isJsxOpeningElement=function(e){return e.kind===Ry.SyntaxKind.JsxOpeningElement},Ly.isJsxOpeningFragment=function(e){return e.kind===Ry.SyntaxKind.JsxOpeningFragment},Ly.isJsxOpeningLikeElement=function(e){return e.kind===Ry.SyntaxKind.JsxOpeningElement||e.kind===Ry.SyntaxKind.JsxSelfClosingElement},Ly.isJsxSelfClosingElement=function(e){return e.kind===Ry.SyntaxKind.JsxSelfClosingElement},Ly.isJsxSpreadAttribute=function(e){return e.kind===Ry.SyntaxKind.JsxSpreadAttribute},Ly.isJsxText=function(e){return e.kind===Ry.SyntaxKind.JsxText},Ly.isLabeledStatement=function(e){return e.kind===Ry.SyntaxKind.LabeledStatement},Ly.isLiteralExpression=function(e){return e.kind>=Ry.SyntaxKind.FirstLiteralToken&&e.kind<=Ry.SyntaxKind.LastLiteralToken},Ly.isLiteralTypeNode=function(e){return e.kind===Ry.SyntaxKind.LiteralType},Ly.isMappedTypeNode=function(e){return e.kind===Ry.SyntaxKind.MappedType},Ly.isMetaProperty=function(e){return e.kind===Ry.SyntaxKind.MetaProperty},Ly.isMethodDeclaration=function(e){return e.kind===Ry.SyntaxKind.MethodDeclaration},Ly.isMethodSignature=function(e){return e.kind===Ry.SyntaxKind.MethodSignature},Ly.isModuleBlock=function(e){return e.kind===Ry.SyntaxKind.ModuleBlock},Ly.isModuleDeclaration=By,Ly.isNamedExports=function(e){return e.kind===Ry.SyntaxKind.NamedExports},Ly.isNamedImports=function(e){return e.kind===Ry.SyntaxKind.NamedImports},Ly.isNamespaceDeclaration=function e(t){return By(t)&&t.name.kind===Ry.SyntaxKind.Identifier&&void 0!==t.body&&(t.body.kind===Ry.SyntaxKind.ModuleBlock||e(t.body))},Ly.isNamespaceImport=function(e){return e.kind===Ry.SyntaxKind.NamespaceImport},Ly.isNamespaceExportDeclaration=function(e){return e.kind===Ry.SyntaxKind.NamespaceExportDeclaration},Ly.isNewExpression=function(e){return e.kind===Ry.SyntaxKind.NewExpression},Ly.isNonNullExpression=function(e){return e.kind===Ry.SyntaxKind.NonNullExpression},Ly.isNoSubstitutionTemplateLiteral=function(e){return e.kind===Ry.SyntaxKind.NoSubstitutionTemplateLiteral},Ly.isNullLiteral=function(e){return e.kind===Ry.SyntaxKind.NullKeyword},Ly.isNumericLiteral=function(e){return e.kind===Ry.SyntaxKind.NumericLiteral},Ly.isNumericOrStringLikeLiteral=function(e){switch(e.kind){case Ry.SyntaxKind.StringLiteral:case Ry.SyntaxKind.NumericLiteral:case Ry.SyntaxKind.NoSubstitutionTemplateLiteral:return!0;default:return!1}},Ly.isObjectBindingPattern=function(e){return e.kind===Ry.SyntaxKind.ObjectBindingPattern},Ly.isObjectLiteralExpression=function(e){return e.kind===Ry.SyntaxKind.ObjectLiteralExpression},Ly.isOmittedExpression=function(e){return e.kind===Ry.SyntaxKind.OmittedExpression},Ly.isParameterDeclaration=function(e){return e.kind===Ry.SyntaxKind.Parameter},Ly.isParenthesizedExpression=function(e){return e.kind===Ry.SyntaxKind.ParenthesizedExpression},Ly.isParenthesizedTypeNode=function(e){return e.kind===Ry.SyntaxKind.ParenthesizedType},Ly.isPostfixUnaryExpression=function(e){return e.kind===Ry.SyntaxKind.PostfixUnaryExpression},Ly.isPrefixUnaryExpression=function(e){return e.kind===Ry.SyntaxKind.PrefixUnaryExpression},Ly.isPropertyAccessExpression=jy,Ly.isPropertyAssignment=function(e){return e.kind===Ry.SyntaxKind.PropertyAssignment},Ly.isPropertyDeclaration=function(e){return e.kind===Ry.SyntaxKind.PropertyDeclaration},Ly.isPropertySignature=function(e){return e.kind===Ry.SyntaxKind.PropertySignature},Ly.isQualifiedName=Jy,Ly.isRegularExpressionLiteral=function(e){return e.kind===Ry.SyntaxKind.RegularExpressionLiteral},Ly.isReturnStatement=function(e){return e.kind===Ry.SyntaxKind.ReturnStatement},Ly.isSetAccessorDeclaration=function(e){return e.kind===Ry.SyntaxKind.SetAccessor},Ly.isShorthandPropertyAssignment=function(e){return e.kind===Ry.SyntaxKind.ShorthandPropertyAssignment},Ly.isSignatureDeclaration=function(e){return void 0!==e.parameters},Ly.isSourceFile=function(e){return e.kind===Ry.SyntaxKind.SourceFile},Ly.isSpreadAssignment=function(e){return e.kind===Ry.SyntaxKind.SpreadAssignment},Ly.isSpreadElement=function(e){return e.kind===Ry.SyntaxKind.SpreadElement},Ly.isStringLiteral=function(e){return e.kind===Ry.SyntaxKind.StringLiteral},Ly.isSwitchStatement=function(e){return e.kind===Ry.SyntaxKind.SwitchStatement},Ly.isSyntaxList=function(e){return e.kind===Ry.SyntaxKind.SyntaxList},Ly.isTaggedTemplateExpression=function(e){return e.kind===Ry.SyntaxKind.TaggedTemplateExpression},Ly.isTemplateExpression=function(e){return e.kind===Ry.SyntaxKind.TemplateExpression},Ly.isTemplateLiteral=function(e){return e.kind===Ry.SyntaxKind.TemplateExpression||e.kind===Ry.SyntaxKind.NoSubstitutionTemplateLiteral},Ly.isTextualLiteral=function(e){return e.kind===Ry.SyntaxKind.StringLiteral||e.kind===Ry.SyntaxKind.NoSubstitutionTemplateLiteral},Ly.isThrowStatement=function(e){return e.kind===Ry.SyntaxKind.ThrowStatement},Ly.isTryStatement=function(e){return e.kind===Ry.SyntaxKind.TryStatement},Ly.isTupleTypeNode=function(e){return e.kind===Ry.SyntaxKind.TupleType},Ly.isTypeAliasDeclaration=function(e){return e.kind===Ry.SyntaxKind.TypeAliasDeclaration},Ly.isTypeAssertion=function(e){return e.kind===Ry.SyntaxKind.TypeAssertionExpression},Ly.isTypeLiteralNode=function(e){return e.kind===Ry.SyntaxKind.TypeLiteral},Ly.isTypeOfExpression=function(e){return e.kind===Ry.SyntaxKind.TypeOfExpression},Ly.isTypeOperatorNode=function(e){return e.kind===Ry.SyntaxKind.TypeOperator},Ly.isTypeParameterDeclaration=function(e){return e.kind===Ry.SyntaxKind.TypeParameter},Ly.isTypePredicateNode=function(e){return e.kind===Ry.SyntaxKind.TypePredicate},Ly.isTypeReferenceNode=function(e){return e.kind===Ry.SyntaxKind.TypeReference},Ly.isTypeQueryNode=function(e){return e.kind===Ry.SyntaxKind.TypeQuery},Ly.isUnionTypeNode=function(e){return e.kind===Ry.SyntaxKind.UnionType},Ly.isVariableDeclaration=function(e){return e.kind===Ry.SyntaxKind.VariableDeclaration},Ly.isVariableStatement=function(e){return e.kind===Ry.SyntaxKind.VariableStatement},Ly.isVariableDeclarationList=function(e){return e.kind===Ry.SyntaxKind.VariableDeclarationList},Ly.isVoidExpression=function(e){return e.kind===Ry.SyntaxKind.VoidExpression},Ly.isWhileStatement=function(e){return e.kind===Ry.SyntaxKind.WhileStatement},Ly.isWithStatement=function(e){return e.kind===Ry.SyntaxKind.WithStatement},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isImportTypeNode=void 0;wy.__exportStar(Ly,e);const t=vm.exports;e.isImportTypeNode=function(e){return e.kind===t.SyntaxKind.ImportType}}(My),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isSyntheticExpression=e.isRestTypeNode=e.isOptionalTypeNode=void 0;wy.__exportStar(My,e);const t=vm.exports;e.isOptionalTypeNode=function(e){return e.kind===t.SyntaxKind.OptionalType},e.isRestTypeNode=function(e){return e.kind===t.SyntaxKind.RestType},e.isSyntheticExpression=function(e){return e.kind===t.SyntaxKind.SyntheticExpression}}(Oy),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isBigIntLiteral=void 0;wy.__exportStar(Oy,e);const t=vm.exports;e.isBigIntLiteral=function(e){return e.kind===t.SyntaxKind.BigIntLiteral}}(Iy),function(e){Object.defineProperty(e,"__esModule",{value:!0});wy.__exportStar(Iy,e)}(Ey);var Ky={},zy={},Uy={},Vy={},qy={};Object.defineProperty(qy,"__esModule",{value:!0}),qy.isUniqueESSymbolType=qy.isUnionType=qy.isUnionOrIntersectionType=qy.isTypeVariable=qy.isTypeReference=qy.isTypeParameter=qy.isSubstitutionType=qy.isObjectType=qy.isLiteralType=qy.isIntersectionType=qy.isInterfaceType=qy.isInstantiableType=qy.isIndexedAccessype=qy.isIndexedAccessType=qy.isGenericType=qy.isEnumType=qy.isConditionalType=void 0;const Wy=vm.exports;qy.isConditionalType=function(e){return 0!=(e.flags&Wy.TypeFlags.Conditional)},qy.isEnumType=function(e){return 0!=(e.flags&Wy.TypeFlags.Enum)},qy.isGenericType=function(e){return 0!=(e.flags&Wy.TypeFlags.Object)&&0!=(e.objectFlags&Wy.ObjectFlags.ClassOrInterface)&&0!=(e.objectFlags&Wy.ObjectFlags.Reference)},qy.isIndexedAccessType=function(e){return 0!=(e.flags&Wy.TypeFlags.IndexedAccess)},qy.isIndexedAccessype=function(e){return 0!=(e.flags&Wy.TypeFlags.Index)},qy.isInstantiableType=function(e){return 0!=(e.flags&Wy.TypeFlags.Instantiable)},qy.isInterfaceType=function(e){return 0!=(e.flags&Wy.TypeFlags.Object)&&0!=(e.objectFlags&Wy.ObjectFlags.ClassOrInterface)},qy.isIntersectionType=function(e){return 0!=(e.flags&Wy.TypeFlags.Intersection)},qy.isLiteralType=function(e){return 0!=(e.flags&(Wy.TypeFlags.StringOrNumberLiteral|Wy.TypeFlags.BigIntLiteral))},qy.isObjectType=function(e){return 0!=(e.flags&Wy.TypeFlags.Object)},qy.isSubstitutionType=function(e){return 0!=(e.flags&Wy.TypeFlags.Substitution)},qy.isTypeParameter=function(e){return 0!=(e.flags&Wy.TypeFlags.TypeParameter)},qy.isTypeReference=function(e){return 0!=(e.flags&Wy.TypeFlags.Object)&&0!=(e.objectFlags&Wy.ObjectFlags.Reference)},qy.isTypeVariable=function(e){return 0!=(e.flags&Wy.TypeFlags.TypeVariable)},qy.isUnionOrIntersectionType=function(e){return 0!=(e.flags&Wy.TypeFlags.UnionOrIntersection)},qy.isUnionType=function(e){return 0!=(e.flags&Wy.TypeFlags.Union)},qy.isUniqueESSymbolType=function(e){return 0!=(e.flags&Wy.TypeFlags.UniqueESSymbol)},function(e){Object.defineProperty(e,"__esModule",{value:!0});wy.__exportStar(qy,e)}(Vy),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isTupleTypeReference=e.isTupleType=void 0;wy.__exportStar(Vy,e);const t=vm.exports,r=Vy;function n(e){return 0!==(e.flags&t.TypeFlags.Object&&e.objectFlags&t.ObjectFlags.Tuple)}e.isTupleType=n,e.isTupleTypeReference=function(e){return r.isTypeReference(e)&&n(e.target)}}(Uy),function(e){Object.defineProperty(e,"__esModule",{value:!0});wy.__exportStar(Uy,e)}(zy),function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=wy;t.__exportStar(Iy,e),t.__exportStar(zy,e)}(Ky);var Hy={},Gy={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});wy.__exportStar(zy,e)}(Gy),Object.defineProperty(Hy,"__esModule",{value:!0}),Hy.getBaseClassMemberOfClassElement=Hy.getIteratorYieldResultFromIteratorResult=Hy.getInstanceTypeOfClassLikeDeclaration=Hy.getConstructorTypeOfClassLikeDeclaration=Hy.getSymbolOfClassLikeDeclaration=Hy.getPropertyNameFromType=Hy.symbolHasReadonlyDeclaration=Hy.isPropertyReadonlyInType=Hy.getWellKnownSymbolPropertyOfType=Hy.getPropertyOfType=Hy.isBooleanLiteralType=Hy.isFalsyType=Hy.isThenableType=Hy.someTypePart=Hy.intersectionTypeParts=Hy.unionTypeParts=Hy.getCallSignaturesOfType=Hy.isTypeAssignableToString=Hy.isTypeAssignableToNumber=Hy.isOptionalChainingUndefinedMarkerType=Hy.removeOptionalChainingUndefinedMarkerType=Hy.removeOptionalityFromType=Hy.isEmptyObjectType=void 0;const Yy=vm.exports,Xy=Gy,Qy=Cy,$y=Ey;function Zy(e,t){if(!ev(t,Yy.TypeFlags.Undefined))return t;const r=ev(t,Yy.TypeFlags.Null);return t=e.getNonNullableType(t),r?e.getNullableType(t,Yy.TypeFlags.Null):t}function ev(e,t){for(const r of nv(e))if(Qy.isTypeFlagSet(r,t))return!0;return!1}function tv(e,t){return Qy.isTypeFlagSet(t,Yy.TypeFlags.Undefined)&&e.getNullableType(t.getNonNullableType(),Yy.TypeFlags.Undefined)!==t}function rv(e,t,r){let n;return r|=Yy.TypeFlags.Any,function t(i){if(Xy.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)}const r=i.symbol.declarations[0];return void 0===r.constraint||t(e.getTypeFromTypeNode(r.constraint))}return Xy.isUnionType(i)?i.types.every(t):Xy.isIntersectionType(i)?i.types.some(t):Qy.isTypeFlagSet(i,r)}(t)}function nv(e){return Xy.isUnionType(e)?e.types:[e]}function iv(e,t,r){return t(e)?e.types.some(r):r(e)}function av(e,t,r){let n=e.getApparentType(e.getTypeOfSymbolAtLocation(t,r));if(t.valueDeclaration.dotDotDotToken&&(n=n.getNumberIndexType(),void 0===n))return!1;for(const e of nv(n))if(0!==e.getCallSignatures().length)return!0;return!1}function ov(e,t){return Qy.isTypeFlagSet(e,Yy.TypeFlags.BooleanLiteral)&&e.intrinsicName===(t?"true":"false")}function sv(e,t){return t.startsWith("__")?e.getProperties().find((e=>e.escapedName===t)):e.getProperty(t)}function cv(e,t,r){const n=t&&e.getTypeOfSymbolAtLocation(t,t.valueDeclaration).getProperty(r),i=n&&e.getTypeOfSymbolAtLocation(n,n.valueDeclaration);return i&&Xy.isUniqueESSymbolType(i)?i.escapedName:"__@"+r}function uv(e,t,r){let n=!1,i=!1;for(const a of nv(e))if(void 0===sv(a,t)){const e=(Qy.isNumericPropertyName(t)?r.getIndexInfoOfType(a,Yy.IndexKind.Number):void 0)||r.getIndexInfoOfType(a,Yy.IndexKind.String);if(void 0!==e&&e.isReadonly){if(n)return!0;i=!0}}else{if(i||lv(a,t,r))return!0;n=!0}return!1}function lv(e,t,r){return iv(e,Xy.isIntersectionType,(e=>{const n=sv(e,t);if(void 0===n)return!1;if(n.flags&Yy.SymbolFlags.Transient){if(/^(?:[1-9]\d*|0)$/.test(t)&&Xy.isTupleTypeReference(e))return e.target.readonly;switch(function(e,t,r){if(!Xy.isObjectType(e)||!Qy.isObjectFlagSet(e,Yy.ObjectFlags.Mapped))return;const n=e.symbol.declarations[0];return void 0===n.readonlyToken||/^__@[^@]+$/.test(t)?uv(e.modifiersType,t,r):n.readonlyToken.kind!==Yy.SyntaxKind.MinusToken}(e,t,r)){case!0:return!0;case!1:return!1}}return Qy.isSymbolFlagSet(n,Yy.SymbolFlags.ValueModule)||dv(n,r)}))}function dv(e,t){return(e.flags&Yy.SymbolFlags.Accessor)===Yy.SymbolFlags.GetAccessor||void 0!==e.declarations&&e.declarations.some((e=>Qy.isModifierFlagSet(e,Yy.ModifierFlags.Readonly)||$y.isVariableDeclaration(e)&&Qy.isNodeFlagSet(e.parent,Yy.NodeFlags.Const)||$y.isCallExpression(e)&&Qy.isReadonlyAssignmentDeclaration(e,t)||$y.isEnumMember(e)||($y.isPropertyAssignment(e)||$y.isShorthandPropertyAssignment(e))&&Qy.isInConstContext(e.parent)))}function _v(e){return Qy.isNodeFlagSet(e.parent,Yy.NodeFlags.GlobalAugmentation)||$y.isSourceFile(e.parent)&&!Yy.isExternalModule(e.parent)}function pv(e,t){var r;return t.getSymbolAtLocation(null!==(r=e.name)&&void 0!==r?r:Qy.getChildOfKind(e,Yy.SyntaxKind.ClassKeyword))}Hy.isEmptyObjectType=function e(t){if(Xy.isObjectType(t)&&t.objectFlags&Yy.ObjectFlags.Anonymous&&0===t.getProperties().length&&0===t.getCallSignatures().length&&0===t.getConstructSignatures().length&&void 0===t.getStringIndexType()&&void 0===t.getNumberIndexType()){const r=t.getBaseTypes();return void 0===r||r.every(e)}return!1},Hy.removeOptionalityFromType=Zy,Hy.removeOptionalChainingUndefinedMarkerType=function(e,t){if(!Xy.isUnionType(t))return tv(e,t)?t.getNonNullableType():t;let r=0,n=!1;for(const i of t.types)tv(e,i)?n=!0:r|=i.flags;return n?e.getNullableType(t.getNonNullableType(),r):t},Hy.isOptionalChainingUndefinedMarkerType=tv,Hy.isTypeAssignableToNumber=function(e,t){return rv(e,t,Yy.TypeFlags.NumberLike)},Hy.isTypeAssignableToString=function(e,t){return rv(e,t,Yy.TypeFlags.StringLike)},Hy.getCallSignaturesOfType=function e(t){if(Xy.isUnionType(t)){const r=[];for(const n of t.types)r.push(...e(n));return r}if(Xy.isIntersectionType(t)){let r;for(const n of t.types){const t=e(n);if(0!==t.length){if(void 0!==r)return[];r=t}}return void 0===r?[]:r}return t.getCallSignatures()},Hy.unionTypeParts=nv,Hy.intersectionTypeParts=function(e){return Xy.isIntersectionType(e)?e.types:[e]},Hy.someTypePart=iv,Hy.isThenableType=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.getTypeAtLocation(t);for(const n of nv(e.getApparentType(r))){const r=n.getProperty("then");if(void 0===r)continue;const i=e.getTypeOfSymbolAtLocation(r,t);for(const r of nv(i))for(const n of r.getCallSignatures())if(0!==n.parameters.length&&av(e,n.parameters[0],t))return!0}return!1},Hy.isFalsyType=function(e){return!!(e.flags&(Yy.TypeFlags.Undefined|Yy.TypeFlags.Null|Yy.TypeFlags.Void))||(Xy.isLiteralType(e)?!e.value:ov(e,!1))},Hy.isBooleanLiteralType=ov,Hy.getPropertyOfType=sv,Hy.getWellKnownSymbolPropertyOfType=function(e,t,r){const n="__@"+t;for(const i of e.getProperties()){if(!i.name.startsWith(n))continue;const e=r.getApparentType(r.getTypeAtLocation(i.valueDeclaration.name.expression)).symbol;if(i.escapedName===cv(r,e,t))return i}},Hy.isPropertyReadonlyInType=uv,Hy.symbolHasReadonlyDeclaration=dv,Hy.getPropertyNameFromType=function(e){if(e.flags&(Yy.TypeFlags.StringLiteral|Yy.TypeFlags.NumberLiteral)){const t=String(e.value);return{displayName:t,symbolName:Yy.escapeLeadingUnderscores(t)}}if(Xy.isUniqueESSymbolType(e))return{displayName:"[".concat(e.symbol?"".concat((t=e.symbol,Qy.isSymbolFlagSet(t,Yy.SymbolFlags.Property)&&void 0!==t.valueDeclaration&&$y.isInterfaceDeclaration(t.valueDeclaration.parent)&&"SymbolConstructor"===t.valueDeclaration.parent.name.text&&_v(t.valueDeclaration.parent)?"Symbol.":"")).concat(e.symbol.name):e.escapedName.replace(/^__@|@\d+$/g,""),"]"),symbolName:e.escapedName};var t},Hy.getSymbolOfClassLikeDeclaration=pv,Hy.getConstructorTypeOfClassLikeDeclaration=function(e,t){return e.kind===Yy.SyntaxKind.ClassExpression?t.getTypeAtLocation(e):t.getTypeOfSymbolAtLocation(pv(e,t),e)},Hy.getInstanceTypeOfClassLikeDeclaration=function(e,t){return e.kind===Yy.SyntaxKind.ClassDeclaration?t.getTypeAtLocation(e):t.getDeclaredTypeOfSymbol(pv(e,t))},Hy.getIteratorYieldResultFromIteratorResult=function(e,t,r){return Xy.isUnionType(e)&&e.types.find((e=>{const n=e.getProperty("done");return void 0!==n&&ov(Zy(r,r.getTypeOfSymbolAtLocation(n,t)),!1)}))||e},Hy.getBaseClassMemberOfClassElement=function(e,t){if(!$y.isClassLikeDeclaration(e.parent))return;const r=Qy.getBaseOfClassLikeExpression(e.parent);if(void 0===r)return;const n=Qy.getSingleLateBoundPropertyNameOfPropertyName(e.name,t);if(void 0===n)return;return sv(t.getTypeAtLocation(Qy.hasModifier(e.modifiers,Yy.SyntaxKind.StaticKeyword)?r.expression:r),n.symbolName)},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isValidIdentifier=e.getLineBreakStyle=e.getLineRanges=e.forEachComment=e.forEachTokenWithTrivia=e.forEachToken=e.isFunctionWithBody=e.hasOwnThisReference=e.isBlockScopeBoundary=e.isFunctionScopeBoundary=e.isTypeScopeBoundary=e.isScopeBoundary=e.ScopeBoundarySelector=e.ScopeBoundary=e.isInSingleStatementContext=e.isBlockScopedDeclarationStatement=e.isBlockScopedVariableDeclaration=e.isBlockScopedVariableDeclarationList=e.getVariableDeclarationKind=e.VariableDeclarationKind=e.forEachDeclaredVariable=e.forEachDestructuringIdentifier=e.getPropertyName=e.getWrappedNodeAtPosition=e.getAstNodeAtPosition=e.commentText=e.isPositionInComment=e.getCommentAtPosition=e.getTokenAtPosition=e.getNextToken=e.getPreviousToken=e.getNextStatement=e.getPreviousStatement=e.isModifierFlagSet=e.isObjectFlagSet=e.isSymbolFlagSet=e.isTypeFlagSet=e.isNodeFlagSet=e.hasAccessModifier=e.isParameterProperty=e.hasModifier=e.getModifier=e.isThisParameter=e.isKeywordKind=e.isJsDocKind=e.isTypeNodeKind=e.isAssignmentKind=e.isNodeKind=e.isTokenKind=e.getChildOfKind=void 0,e.getBaseOfClassLikeExpression=e.hasExhaustiveCaseClauses=e.formatPseudoBigInt=e.unwrapParentheses=e.getSingleLateBoundPropertyNameOfPropertyName=e.getLateBoundPropertyNamesOfPropertyName=e.getLateBoundPropertyNames=e.getPropertyNameOfWellKnownSymbol=e.isWellKnownSymbolLiterally=e.isBindableObjectDefinePropertyCall=e.isReadonlyAssignmentDeclaration=e.isInConstContext=e.isConstAssertion=e.getTsCheckDirective=e.getCheckJsDirective=e.isAmbientModule=e.isCompilerOptionEnabled=e.isStrictCompilerOptionEnabled=e.getIIFE=e.isAmbientModuleBlock=e.isStatementInAmbientContext=e.findImportLikeNodes=e.findImports=e.ImportKind=e.parseJsDocOfNode=e.getJsDoc=e.canHaveJsDoc=e.isReassignmentTarget=e.getAccessKind=e.AccessKind=e.isExpressionValueUsed=e.getDeclarationOfBindingElement=e.hasSideEffects=e.SideEffectOptions=e.isSameLine=e.isNumericPropertyName=e.isValidJsxIdentifier=e.isValidNumericLiteral=e.isValidPropertyName=e.isValidPropertyAccess=void 0;const t=vm.exports,r=Ey,n=Ky,i=Hy;function a(e){return e>=t.SyntaxKind.FirstToken&&e<=t.SyntaxKind.LastToken}function o(e){return e>=t.SyntaxKind.FirstNode}function s(e){return e>=t.SyntaxKind.FirstAssignment&&e<=t.SyntaxKind.LastAssignment}function c(e){if(void 0===e)return!1;for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=e.end))return a(e.kind)?e:_(e,t,null!=r?r:e.getSourceFile(),!0===n)}function _(e,r,n,i){if(!i&&a((e=g(e,r)).kind))return e;e:for(;;){for(const o of e.getChildren(n))if(o.end>r&&(i||o.kind!==t.SyntaxKind.JSDocComment)){if(a(o.kind))return o;e=o;continue e}return}}function p(e,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;const i=d(n,r,e);if(void 0===i||i.kind===t.SyntaxKind.JsxText||r>=i.end-(t.tokenToString(i.kind)||"").length)return;const a=0===i.pos?(t.getShebang(e.text)||"").length:i.pos;return 0!==a&&t.forEachTrailingCommentRange(e.text,a,f,r)||t.forEachLeadingCommentRange(e.text,a,f,r)}function f(e,t,r,n,i){return i>=e&&ir||e.end<=r)){for(;o(e.kind);){const n=t.forEachChild(e,(e=>e.pos<=r&&e.end>r?e:void 0));if(void 0===n)break;e=n}return e}}function m(e){if(e.kind===t.SyntaxKind.ComputedPropertyName){const i=$(e.expression);if(r.isPrefixUnaryExpression(i)){let e=!1;switch(i.operator){case t.SyntaxKind.MinusToken:e=!0;case t.SyntaxKind.PlusToken:return r.isNumericLiteral(i.operand)?"".concat(e?"-":"").concat(i.operand.text):n.isBigIntLiteral(i.operand)?"".concat(e?"-":"").concat(i.operand.text.slice(0,-1)):void 0;default:return}}return n.isBigIntLiteral(i)?i.text.slice(0,-1):r.isNumericOrStringLikeLiteral(i)?i.text:void 0}return e.kind===t.SyntaxKind.PrivateIdentifier?void 0:e.text}function y(e,r){for(const n of e.elements){if(n.kind!==t.SyntaxKind.BindingElement)continue;let e;if(e=n.name.kind===t.SyntaxKind.Identifier?r(n):y(n.name,r),e)return e}}var v,h,D;function x(e){return 0!=(e.flags&t.NodeFlags.BlockScoped)}function b(e){switch(e.kind){case t.SyntaxKind.InterfaceDeclaration:case t.SyntaxKind.TypeAliasDeclaration:case t.SyntaxKind.MappedType:return 4;case t.SyntaxKind.ConditionalType:return 8;default:return 0}}function S(e){switch(e.kind){case t.SyntaxKind.FunctionExpression:case t.SyntaxKind.ArrowFunction:case t.SyntaxKind.Constructor:case t.SyntaxKind.ModuleDeclaration:case t.SyntaxKind.ClassDeclaration:case t.SyntaxKind.ClassExpression:case t.SyntaxKind.EnumDeclaration:case t.SyntaxKind.MethodDeclaration:case t.SyntaxKind.FunctionDeclaration:case t.SyntaxKind.GetAccessor:case t.SyntaxKind.SetAccessor:case t.SyntaxKind.MethodSignature:case t.SyntaxKind.CallSignature:case t.SyntaxKind.ConstructSignature:case t.SyntaxKind.ConstructorType:case t.SyntaxKind.FunctionType:return 1;case t.SyntaxKind.SourceFile:return t.isExternalModule(e)?1:0;default:return 0}}function T(e){switch(e.kind){case t.SyntaxKind.Block:const r=e.parent;return r.kind===t.SyntaxKind.CatchClause||r.kind!==t.SyntaxKind.SourceFile&&S(r)?0:2;case t.SyntaxKind.ForStatement:case t.SyntaxKind.ForInStatement:case t.SyntaxKind.ForOfStatement:case t.SyntaxKind.CaseBlock:case t.SyntaxKind.CatchClause:case t.SyntaxKind.WithStatement:return 2;default:return 0}}function C(e,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.getSourceFile();const i=[];for(;;){if(a(e.kind))r(e);else if(e.kind!==t.SyntaxKind.JSDocComment){const t=e.getChildren(n);if(1===t.length){e=t[0];continue}for(let e=t.length-1;e>=0;--e)i.push(t[e])}if(0===i.length)break;e=i.pop()}}function E(e){switch(e.kind){case t.SyntaxKind.CloseBraceToken:return e.parent.kind!==t.SyntaxKind.JsxExpression||!k(e.parent.parent);case t.SyntaxKind.GreaterThanToken:switch(e.parent.kind){case t.SyntaxKind.JsxOpeningElement:return e.end!==e.parent.end;case t.SyntaxKind.JsxOpeningFragment:return!1;case t.SyntaxKind.JsxSelfClosingElement:return e.end!==e.parent.end||!k(e.parent.parent);case t.SyntaxKind.JsxClosingElement:case t.SyntaxKind.JsxClosingFragment:return!k(e.parent.parent.parent)}}return!0}function k(e){return e.kind===t.SyntaxKind.JsxElement||e.kind===t.SyntaxKind.JsxFragment}let A;function F(e,r){return void 0===A?A=t.createScanner(r,!1,void 0,e):(A.setScriptTarget(r),A.setText(e)),A.scan(),A}function N(e){return e>=65536?2:1}function P(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.ScriptTarget.Latest;if(0===e.length)return!1;let n=e.codePointAt(0);if(!t.isIdentifierStart(n,r))return!1;for(let i=N(n);ii===t.SyntaxKind.MultiLineCommentTrivia&&"*"===n.text[e+2]?{pos:e}:void 0));if(void 0===a)return[];const o=a.pos,s=n.text.slice(o,r),c=t.createSourceFile("jsdoc.ts","".concat(s,"var a;"),n.languageVersion),u=j(c.statements[0],c);for(const t of u)l(t,e);return u;function l(e,r){return e.pos+=o,e.end+=o,e.parent=r,t.forEachChild(e,(t=>l(t,e)),(t=>{t.pos+=o,t.end+=o;for(const r of t)l(r,e)}))}}function K(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return new z(e,t,r).find()}e.getChildOfKind=function(e,t,r){for(const n of e.getChildren(r))if(n.kind===t)return n},e.isTokenKind=a,e.isNodeKind=o,e.isAssignmentKind=s,e.isTypeNodeKind=function(e){return e>=t.SyntaxKind.FirstTypeNode&&e<=t.SyntaxKind.LastTypeNode},e.isJsDocKind=function(e){return e>=t.SyntaxKind.FirstJSDocNode&&e<=t.SyntaxKind.LastJSDocNode},e.isKeywordKind=function(e){return e>=t.SyntaxKind.FirstKeyword&&e<=t.SyntaxKind.LastKeyword},e.isThisParameter=function(e){return e.name.kind===t.SyntaxKind.Identifier&&e.name.originalKeywordKind===t.SyntaxKind.ThisKeyword},e.getModifier=function(e,t){if(void 0!==e.modifiers)for(const r of e.modifiers)if(r.kind===t)return r},e.hasModifier=c,e.isParameterProperty=function(e){return c(e.modifiers,t.SyntaxKind.PublicKeyword,t.SyntaxKind.ProtectedKeyword,t.SyntaxKind.PrivateKeyword,t.SyntaxKind.ReadonlyKeyword)},e.hasAccessModifier=function(e){return l(e,t.ModifierFlags.AccessibilityModifier)},e.isNodeFlagSet=u,e.isTypeFlagSet=u,e.isSymbolFlagSet=u,e.isObjectFlagSet=function(e,t){return 0!=(e.objectFlags&t)},e.isModifierFlagSet=l,e.getPreviousStatement=function(e){const t=e.parent;if(r.isBlockLike(t)){const r=t.statements.indexOf(e);if(r>0)return t.statements[r-1]}},e.getNextStatement=function(e){const t=e.parent;if(r.isBlockLike(t)){const r=t.statements.indexOf(e);if(rt||e.node.end<=t))e:for(;;){for(const r of e.children){if(r.node.pos>t)return e;if(r.node.end>t){e=r;continue e}}return e}},e.getPropertyName=m,e.forEachDestructuringIdentifier=y,e.forEachDeclaredVariable=function(e,r){for(const n of e.declarations){let e;if(e=n.name.kind===t.SyntaxKind.Identifier?r(n):y(n.name,r),e)return e}},(v=e.VariableDeclarationKind||(e.VariableDeclarationKind={}))[v.Var=0]="Var",v[v.Let=1]="Let",v[v.Const=2]="Const",e.getVariableDeclarationKind=function(e){return e.flags&t.NodeFlags.Let?1:e.flags&t.NodeFlags.Const?2:0},e.isBlockScopedVariableDeclarationList=x,e.isBlockScopedVariableDeclaration=function(e){const r=e.parent;return r.kind===t.SyntaxKind.CatchClause||x(r)},e.isBlockScopedDeclarationStatement=function(e){switch(e.kind){case t.SyntaxKind.VariableStatement:return x(e.declarationList);case t.SyntaxKind.ClassDeclaration:case t.SyntaxKind.EnumDeclaration:case t.SyntaxKind.InterfaceDeclaration:case t.SyntaxKind.TypeAliasDeclaration:return!0;default:return!1}},e.isInSingleStatementContext=function(e){switch(e.parent.kind){case t.SyntaxKind.ForStatement:case t.SyntaxKind.ForInStatement:case t.SyntaxKind.ForOfStatement:case t.SyntaxKind.WhileStatement:case t.SyntaxKind.DoStatement:case t.SyntaxKind.IfStatement:case t.SyntaxKind.WithStatement:case t.SyntaxKind.LabeledStatement:return!0;default:return!1}},(h=e.ScopeBoundary||(e.ScopeBoundary={}))[h.None=0]="None",h[h.Function=1]="Function",h[h.Block=2]="Block",h[h.Type=4]="Type",h[h.ConditionalType=8]="ConditionalType",(D=e.ScopeBoundarySelector||(e.ScopeBoundarySelector={}))[D.Function=1]="Function",D[D.Block=3]="Block",D[D.Type=7]="Type",D[D.InferType=8]="InferType",e.isScopeBoundary=function(e){return S(e)||T(e)||b(e)},e.isTypeScopeBoundary=b,e.isFunctionScopeBoundary=S,e.isBlockScopeBoundary=T,e.hasOwnThisReference=function(e){switch(e.kind){case t.SyntaxKind.ClassDeclaration:case t.SyntaxKind.ClassExpression:case t.SyntaxKind.FunctionExpression:return!0;case t.SyntaxKind.FunctionDeclaration:return void 0!==e.body;case t.SyntaxKind.MethodDeclaration:case t.SyntaxKind.GetAccessor:case t.SyntaxKind.SetAccessor:return e.parent.kind===t.SyntaxKind.ObjectLiteralExpression;default:return!1}},e.isFunctionWithBody=function(e){switch(e.kind){case t.SyntaxKind.GetAccessor:case t.SyntaxKind.SetAccessor:case t.SyntaxKind.FunctionDeclaration:case t.SyntaxKind.MethodDeclaration:case t.SyntaxKind.Constructor:return void 0!==e.body;case t.SyntaxKind.FunctionExpression:case t.SyntaxKind.ArrowFunction:return!0;default:return!1}},e.forEachToken=C,e.forEachTokenWithTrivia=function(e,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.getSourceFile();const i=n.text,a=t.createScanner(n.languageVersion,!1,n.languageVariant,i);return C(e,(e=>{const o=e.kind===t.SyntaxKind.JsxText||e.pos===e.end?e.pos:e.getStart(n);if(o!==e.pos){a.setTextPos(e.pos);let t=a.scan(),n=a.getTokenPos();for(;n2&&void 0!==arguments[2]?arguments[2]:e.getSourceFile();const i=n.text,a=n.languageVariant!==t.LanguageVariant.JSX;return C(e,(e=>{if(e.pos!==e.end)return e.kind!==t.SyntaxKind.JsxText&&t.forEachLeadingCommentRange(i,0===e.pos?(t.getShebang(i)||"").length:e.pos,o),a||E(e)?t.forEachTrailingCommentRange(i,e.end,o):void 0}),n);function o(e,t,n){r(i,{pos:e,end:t,kind:n})}},e.getLineRanges=function(e){const r=e.getLineStarts(),n=[],i=r.length,a=e.text;let o=0;for(let e=1;eo&&t.isLineBreak(a.charCodeAt(s-1));--s);n.push({pos:o,end:i,contentLength:s-o}),o=i}return n.push({pos:o,end:e.end,contentLength:e.end-o}),n},e.getLineBreakStyle=function(e){const t=e.getLineStarts();return 1===t.length||t[1]<2||"\r"!==e.text[t[1]-2]?"\n":"\r\n"},e.isValidIdentifier=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.ScriptTarget.Latest;const n=F(e,r);return n.isIdentifier()&&n.getTextPos()===e.length&&0===n.getTokenPos()},e.isValidPropertyAccess=P,e.isValidPropertyName=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.ScriptTarget.Latest;if(P(e,r))return!0;const n=F(e,r);return n.getTextPos()===e.length&&n.getToken()===t.SyntaxKind.NumericLiteral&&n.getTokenValue()===e},e.isValidNumericLiteral=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.ScriptTarget.Latest;const n=F(e,r);return n.getToken()===t.SyntaxKind.NumericLiteral&&n.getTextPos()===e.length&&0===n.getTokenPos()},e.isValidJsxIdentifier=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.ScriptTarget.Latest;if(0===e.length)return!1;let n=!1,i=e.codePointAt(0);if(!t.isIdentifierStart(i,r))return!1;for(let a=N(i);a2&&void 0!==arguments[2]?arguments[2]:e.getSourceFile();if(B(e)&&e.kind!==t.SyntaxKind.EndOfFileToken){const t=j(e,n);if(0!==t.length||!r)return t}return J(e,e.getStart(n),n,r)},(M=e.ImportKind||(e.ImportKind={}))[M.ImportDeclaration=1]="ImportDeclaration",M[M.ImportEquals=2]="ImportEquals",M[M.ExportFrom=4]="ExportFrom",M[M.DynamicImport=8]="DynamicImport",M[M.Require=16]="Require",M[M.ImportType=32]="ImportType",M[M.All=63]="All",M[M.AllImports=59]="AllImports",M[M.AllStaticImports=3]="AllStaticImports",M[M.AllImportExpressions=24]="AllImportExpressions",M[M.AllRequireLike=18]="AllRequireLike",M[M.AllNestedImports=56]="AllNestedImports",M[M.AllTopLevelImports=7]="AllTopLevelImports",e.findImports=function(e,n){let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const a=[];for(const a of K(e,n,i))switch(a.kind){case t.SyntaxKind.ImportDeclaration:o(a.moduleSpecifier);break;case t.SyntaxKind.ImportEqualsDeclaration:o(a.moduleReference.expression);break;case t.SyntaxKind.ExportDeclaration:o(a.moduleSpecifier);break;case t.SyntaxKind.CallExpression:o(a.arguments[0]);break;case t.SyntaxKind.ImportType:r.isLiteralTypeNode(a.argument)&&o(a.argument.literal);break;default:throw new Error("unexpected node")}return a;function o(e){r.isTextualLiteral(e)&&a.push(e)}},e.findImportLikeNodes=K;class z{constructor(e,t,r){this._sourceFile=e,this._options=t,this._ignoreFileName=r,this._result=[]}find(){return this._sourceFile.isDeclarationFile&&(this._options&=-25),7&this._options&&this._findImports(this._sourceFile.statements),56&this._options&&this._findNestedImports(),this._result}_findImports(e){for(const n of e)r.isImportDeclaration(n)?1&this._options&&this._result.push(n):r.isImportEqualsDeclaration(n)?2&this._options&&n.moduleReference.kind===t.SyntaxKind.ExternalModuleReference&&this._result.push(n):r.isExportDeclaration(n)?void 0!==n.moduleSpecifier&&4&this._options&&this._result.push(n):r.isModuleDeclaration(n)&&this._findImportsInModule(n)}_findImportsInModule(e){if(void 0!==e.body)return e.body.kind===t.SyntaxKind.ModuleDeclaration?this._findImportsInModule(e.body):void this._findImports(e.body.statements)}_findNestedImports(){const e=this._ignoreFileName||0!=(this._sourceFile.flags&t.NodeFlags.JavaScriptFile);let r,n;if(16==(56&this._options)){if(!e)return;r=/\brequire\s*[1&&this._result.push(r.parent)}}else r.kind===t.SyntaxKind.Identifier&&r.end-"require".length===e.index&&r.parent.kind===t.SyntaxKind.CallExpression&&r.parent.expression===r&&1===r.parent.arguments.length&&this._result.push(r.parent)}}}function U(e){for(;e.kind===t.SyntaxKind.ModuleBlock;){do{e=e.parent}while(e.flags&t.NodeFlags.NestedNamespace);if(c(e.modifiers,t.SyntaxKind.DeclareKeyword))return!0;e=e.parent}return!1}function V(e,t){return(e.strict?!1!==e[t]:!0===e[t])&&("strictPropertyInitialization"!==t||V(e,"strictNullChecks"))}function q(e){let r;return t.forEachLeadingCommentRange(e,(t.getShebang(e)||"").length,((n,i,a)=>{if(a===t.SyntaxKind.SingleLineCommentTrivia){const t=e.slice(n,i),a=/^\/{2,3}\s*@ts-(no)?check(?:\s|$)/i.exec(t);null!==a&&(r={pos:n,end:i,enabled:void 0===a[1]})}})),r}function W(e){return r.isTypeReferenceNode(e.type)&&e.type.typeName.kind===t.SyntaxKind.Identifier&&"const"===e.type.typeName.escapedText}function H(e){return 3===e.arguments.length&&r.isEntityNameExpression(e.arguments[0])&&r.isNumericOrStringLikeLiteral(e.arguments[1])&&r.isPropertyAccessExpression(e.expression)&&"defineProperty"===e.expression.name.escapedText&&r.isIdentifier(e.expression.expression)&&"Object"===e.expression.expression.escapedText}function G(e){return t.isPropertyAccessExpression(e)&&t.isIdentifier(e.expression)&&"Symbol"===e.expression.escapedText}function Y(e){return{displayName:"[Symbol.".concat(e.name.text,"]"),symbolName:"__@"+e.name.text}}e.isStatementInAmbientContext=function(e){for(;e.flags&t.NodeFlags.NestedNamespace;)e=e.parent;return c(e.modifiers,t.SyntaxKind.DeclareKeyword)||U(e.parent)},e.isAmbientModuleBlock=U,e.getIIFE=function(e){let n=e.parent;for(;n.kind===t.SyntaxKind.ParenthesizedExpression;)n=n.parent;return r.isCallExpression(n)&&e.end<=n.expression.end?n:void 0},e.isStrictCompilerOptionEnabled=V,e.isCompilerOptionEnabled=function e(r,n){switch(n){case"stripInternal":case"declarationMap":case"emitDeclarationOnly":return!0===r[n]&&e(r,"declaration");case"declaration":return r.declaration||e(r,"composite");case"incremental":return void 0===r.incremental?e(r,"composite"):r.incremental;case"skipDefaultLibCheck":return r.skipDefaultLibCheck||e(r,"skipLibCheck");case"suppressImplicitAnyIndexErrors":return!0===r.suppressImplicitAnyIndexErrors&&e(r,"noImplicitAny");case"allowSyntheticDefaultImports":return void 0!==r.allowSyntheticDefaultImports?r.allowSyntheticDefaultImports:e(r,"esModuleInterop")||r.module===t.ModuleKind.System;case"noUncheckedIndexedAccess":return!0===r.noUncheckedIndexedAccess&&e(r,"strictNullChecks");case"allowJs":return void 0===r.allowJs?e(r,"checkJs"):r.allowJs;case"noImplicitAny":case"noImplicitThis":case"strictNullChecks":case"strictFunctionTypes":case"strictPropertyInitialization":case"alwaysStrict":case"strictBindCallApply":return V(r,n)}return!0===r[n]},e.isAmbientModule=function(e){return e.name.kind===t.SyntaxKind.StringLiteral||0!=(e.flags&t.NodeFlags.GlobalAugmentation)},e.getCheckJsDirective=function(e){return q(e)},e.getTsCheckDirective=q,e.isConstAssertion=W,e.isInConstContext=function(e){let r=e;for(;;){const e=r.parent;e:switch(e.kind){case t.SyntaxKind.TypeAssertionExpression:case t.SyntaxKind.AsExpression:return W(e);case t.SyntaxKind.PrefixUnaryExpression:if(r.kind!==t.SyntaxKind.NumericLiteral)return!1;switch(e.operator){case t.SyntaxKind.PlusToken:case t.SyntaxKind.MinusToken:r=e;break e;default:return!1}case t.SyntaxKind.PropertyAssignment:if(e.initializer!==r)return!1;r=e.parent;break;case t.SyntaxKind.ShorthandPropertyAssignment:r=e.parent;break;case t.SyntaxKind.ParenthesizedExpression:case t.SyntaxKind.ArrayLiteralExpression:case t.SyntaxKind.ObjectLiteralExpression:case t.SyntaxKind.TemplateExpression:r=e;break;default:return!1}}},e.isReadonlyAssignmentDeclaration=function(e,t){if(!H(e))return!1;const n=t.getTypeAtLocation(e.arguments[2]);if(void 0===n.getProperty("value"))return void 0===n.getProperty("set");const a=n.getProperty("writable");if(void 0===a)return!1;const o=void 0!==a.valueDeclaration&&r.isPropertyAssignment(a.valueDeclaration)?t.getTypeAtLocation(a.valueDeclaration.initializer):t.getTypeOfSymbolAtLocation(a,e.arguments[2]);return i.isBooleanLiteralType(o,!1)},e.isBindableObjectDefinePropertyCall=H,e.isWellKnownSymbolLiterally=G,e.getPropertyNameOfWellKnownSymbol=Y;const X=(e=>{let[t,r]=e;return t<"4"||"4"===t&&r<"3"})(t.versionMajorMinor.split("."));function Q(e,t){const r={known:!0,names:[]};if(e=$(e),X&&G(e))r.names.push(Y(e));else{const n=t.getTypeAtLocation(e);for(const e of i.unionTypeParts(t.getBaseConstraintOfType(n)||n)){const t=i.getPropertyNameFromType(e);t?r.names.push(t):r.known=!1}}return r}function $(e){for(;e.kind===t.SyntaxKind.ParenthesizedExpression;)e=e.expression;return e}function Z(e){return"".concat(e.negative?"-":"").concat(e.base10Value,"n")}function ee(r){return e.isTypeFlagSet(r,t.TypeFlags.Null)?"null":e.isTypeFlagSet(r,t.TypeFlags.Undefined)?"undefined":e.isTypeFlagSet(r,t.TypeFlags.NumberLiteral)?"".concat(e.isTypeFlagSet(r,t.TypeFlags.EnumLiteral)?"enum:":"").concat(r.value):e.isTypeFlagSet(r,t.TypeFlags.StringLiteral)?"".concat(e.isTypeFlagSet(r,t.TypeFlags.EnumLiteral)?"enum:":"","string:").concat(r.value):e.isTypeFlagSet(r,t.TypeFlags.BigIntLiteral)?Z(r.value):n.isUniqueESSymbolType(r)?r.escapedName:i.isBooleanLiteralType(r,!0)?"true":i.isBooleanLiteralType(r,!1)?"false":void 0}function te(e){var r;if((null===(r=e.heritageClauses)||void 0===r?void 0:r[0].token)===t.SyntaxKind.ExtendsKeyword)return e.heritageClauses[0].types[0]}e.getLateBoundPropertyNames=Q,e.getLateBoundPropertyNamesOfPropertyName=function(e,r){const n=m(e);return void 0!==n?{known:!0,names:[{displayName:n,symbolName:t.escapeLeadingUnderscores(n)}]}:e.kind===t.SyntaxKind.PrivateIdentifier?{known:!0,names:[{displayName:e.text,symbolName:r.getSymbolAtLocation(e).escapedName}]}:Q(e.expression,r)},e.getSingleLateBoundPropertyNameOfPropertyName=function(e,r){const n=m(e);if(void 0!==n)return{displayName:n,symbolName:t.escapeLeadingUnderscores(n)};if(e.kind===t.SyntaxKind.PrivateIdentifier)return{displayName:e.text,symbolName:r.getSymbolAtLocation(e).escapedName};const{expression:a}=e;return X&&G(a)?Y(a):i.getPropertyNameFromType(r.getTypeAtLocation(a))},e.unwrapParentheses=$,e.formatPseudoBigInt=Z,e.hasExhaustiveCaseClauses=function(n,a){const o=n.caseBlock.clauses.filter(r.isCaseClause);if(0===o.length)return!1;const s=i.unionTypeParts(a.getTypeAtLocation(n.expression));if(s.length>o.length)return!1;const c=new Set(s.map(ee));if(c.has(void 0))return!1;const u=new Set;for(const r of o){const n=a.getTypeAtLocation(r.expression);if(e.isTypeFlagSet(n,t.TypeFlags.Never))continue;const i=ee(n);if(c.has(i))u.add(i);else if("null"!==i&&"undefined"!==i)return!1}return c.size===u.size},e.getBaseOfClassLikeExpression=te}(Cy);var fv=e&&e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),gv=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),mv=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&fv(t,e,r);return gv(t,e),t};Object.defineProperty(Ty,"__esModule",{value:!0}),Ty.convertComments=void 0;const yv=mv(vm.exports),vv=Cy,hv=km,Dv=Am;Ty.convertComments=function(e,t){const r=[];return(0,vv.forEachComment)(e,((n,i)=>{const a=i.kind==yv.SyntaxKind.SingleLineCommentTrivia?Dv.AST_TOKEN_TYPES.Line:Dv.AST_TOKEN_TYPES.Block,o=[i.pos,i.end],s=(0,hv.getLocFor)(o[0],o[1],e),c=o[0]+2,u=i.kind===yv.SyntaxKind.SingleLineCommentTrivia?o[1]-c:o[1]-c-2;r.push({type:a,value:t.substr(c,u),range:o,loc:s})}),e),r};var xv={},bv={},Sv={},Tv={};Object.defineProperty(Tv,"__esModule",{value:!0});const Cv={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"],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"]},Ev=Object.keys(Cv);for(const e of Ev)Object.freeze(Cv[e]);Object.freeze(Cv);const kv=new Set(["parent","leadingComments","trailingComments"]);function Av(e){return!kv.has(e)&&"_"!==e[0]}Tv.KEYS=Cv,Tv.getKeys=function(e){return Object.keys(e).filter(Av)},Tv.unionWith=function(e){const t=Object.assign({},Cv);for(const r of Object.keys(e))if(Object.prototype.hasOwnProperty.call(t,r)){const n=new Set(e[r]);for(const e of t[r])n.add(e);t[r]=Object.freeze(Array.from(n))}else t[r]=Object.freeze(Array.from(e[r]));return Object.freeze(t)},Object.defineProperty(Sv,"__esModule",{value:!0}),Sv.getKeys=void 0;const Fv=Tv.getKeys;Sv.getKeys=Fv;var Nv={},Pv=e&&e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),wv=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Iv=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&Pv(t,e,r);return wv(t,e),t};Object.defineProperty(Nv,"__esModule",{value:!0}),Nv.visitorKeys=void 0;const Ov=Iv(Tv).unionWith({ImportAttribute:["key","value"],ImportExpression:["source"],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"],FunctionDeclaration:["id","typeParameters","params","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["decorators","typeAnnotation"],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:[]});Nv.visitorKeys=Ov,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.visitorKeys=e.getKeys=void 0;var t=Sv;Object.defineProperty(e,"getKeys",{enumerable:!0,get:function(){return t.getKeys}});var r=Nv;Object.defineProperty(e,"visitorKeys",{enumerable:!0,get:function(){return r.visitorKeys}})}(bv),Object.defineProperty(xv,"__esModule",{value:!0}),xv.simpleTraverse=void 0;const Mv=bv;class Lv{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.allVisitorKeys=Mv.visitorKeys,this.selectors=e,this.setParentPointers=t}traverse(e,t){if(null===(r=e)||"object"!=typeof r||"string"!=typeof r.type)return;var r;this.setParentPointers&&(e.parent=t),"enter"in this.selectors?this.selectors.enter(e,t):e.type in this.selectors&&this.selectors[e.type](e,t);const n=function(e,t){const r=e[t.type];return null!=r?r:[]}(this.allVisitorKeys,e);if(!(n.length<1))for(const t of n){const r=e[t];if(Array.isArray(r))for(const t of r)this.traverse(t,e);else this.traverse(r,e)}}}xv.simpleTraverse=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];new Lv(t,r).traverse(e,void 0)},Object.defineProperty(Cm,"__esModule",{value:!0}),Cm.astConverter=void 0;const Rv=Em,Bv=Ty,jv=km,Jv=xv;Cm.astConverter=function(e,t,r){const{parseDiagnostics:n}=e;if(n.length)throw(0,Rv.convertError)(n[0]);const i=new Rv.Converter(e,{errorOnUnknownASTType:t.errorOnUnknownASTType||!1,shouldPreserveNodeMaps:r}),a=i.convertProgram();return t.range&&t.loc||(0,Jv.simpleTraverse)(a,{enter:e=>{t.range||delete e.range,t.loc||delete e.loc}}),t.tokens&&(a.tokens=(0,jv.convertTokens)(e)),t.comment&&(a.comments=(0,Bv.convertComments)(e,t.code)),{estree:a,astMaps:i.getASTMaps()}};var Kv={},zv={},Uv=e&&e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),Vv=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),qv=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&Uv(t,e,r);return Vv(t,e),t},Wv=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(zv,"__esModule",{value:!0}),zv.getModuleResolver=zv.getAstFromProgram=zv.getScriptKind=zv.getCanonicalFileName=zv.ensureAbsolutePath=zv.createDefaultCompilerOptionsFromExtra=zv.canonicalDirname=zv.CORE_COMPILER_OPTIONS=void 0;const Hv=Wv(ym),Gv=qv(vm.exports),Yv={noEmit:!0,noUnusedLocals:!0,noUnusedParameters:!0};zv.CORE_COMPILER_OPTIONS=Yv;const Xv=Object.assign(Object.assign({},Yv),{allowNonTsExtensions:!0,allowJs:!0,checkJs:!0});zv.createDefaultCompilerOptionsFromExtra=function(e){return e.debugLevel.has("typescript")?Object.assign(Object.assign({},Xv),{extendedDiagnostics:!0}):Xv};const Qv=void 0===Gv.sys||Gv.sys.useCaseSensitiveFileNames?e=>e:e=>e.toLowerCase();function $v(e){return e?e.endsWith(".d.ts")?".d.ts":Hv.default.extname(e):null}zv.getCanonicalFileName=function(e){let t=Hv.default.normalize(e);return t.endsWith(Hv.default.sep)&&(t=t.substr(0,t.length-1)),Qv(t)},zv.ensureAbsolutePath=function(e,t){return Hv.default.isAbsolute(e)?e:Hv.default.join(t.tsconfigRootDir||es.cwd(),e)},zv.canonicalDirname=function(e){return Hv.default.dirname(e)},zv.getScriptKind=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.filePath;const r=Hv.default.extname(t).toLowerCase();switch(r){case".ts":return Gv.ScriptKind.TS;case".tsx":return Gv.ScriptKind.TSX;case".js":return Gv.ScriptKind.JS;case".jsx":return Gv.ScriptKind.JSX;case".json":return Gv.ScriptKind.JSON;default:return e.jsx?Gv.ScriptKind.TSX:Gv.ScriptKind.TS}},zv.getAstFromProgram=function(e,t){const r=e.getSourceFile(t.filePath);if($v(t.filePath)===$v(null==r?void 0:r.fileName))return r&&{ast:r,program:e}},zv.getModuleResolver=function(e){let t;try{t=require(e)}catch(e){throw new Error(["Could not find the provided parserOptions.moduleResolver.","Hint: use an absolute path if you are not in control over where the ESLint instance runs."].join("\n"))}return t};var Zv=e&&e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),eh=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),th=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&Zv(t,e,r);return eh(t,e),t},rh=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Kv,"__esModule",{value:!0}),Kv.createDefaultProgram=void 0;const nh=rh(Hl.exports),ih=rh(ym),ah=th(vm.exports),oh=zv,sh=(0,nh.default)("typescript-eslint:typescript-estree:createDefaultProgram");Kv.createDefaultProgram=function(e,t){if(sh("Getting default program for: %s",t.filePath||"unnamed file"),!t.projects||1!==t.projects.length)return;const r=t.projects[0],n=ah.getParsedCommandLineOfConfigFile(r,(0,oh.createDefaultCompilerOptionsFromExtra)(t),Object.assign(Object.assign({},ah.sys),{onUnRecoverableConfigFileDiagnostic:()=>{}}));if(!n)return;const i=ah.createCompilerHost(n.options,!0);t.moduleResolver&&(i.resolveModuleNames=(0,oh.getModuleResolver)(t.moduleResolver).resolveModuleNames);const a=i.readFile;i.readFile=r=>ih.default.normalize(r)===ih.default.normalize(t.filePath)?e:a(r);const o=ah.createProgram([t.filePath],n.options,i),s=o.getSourceFile(t.filePath);return s&&{ast:s,program:o}};var ch={},uh=e&&e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),lh=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),dh=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&uh(t,e,r);return lh(t,e),t},_h=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ch,"__esModule",{value:!0}),ch.createIsolatedProgram=void 0;const ph=_h(Hl.exports),fh=dh(vm.exports),gh=zv,mh=(0,ph.default)("typescript-eslint:typescript-estree:createIsolatedProgram");ch.createIsolatedProgram=function(e,t){mh("Getting isolated program in %s mode for: %s",t.jsx?"TSX":"TS",t.filePath);const r={fileExists:()=>!0,getCanonicalFileName:()=>t.filePath,getCurrentDirectory:()=>"",getDirectories:()=>[],getDefaultLibFileName:()=>"lib.d.ts",getNewLine:()=>"\n",getSourceFile:r=>fh.createSourceFile(r,e,fh.ScriptTarget.Latest,!0,(0,gh.getScriptKind)(t,r)),readFile(){},useCaseSensitiveFileNames:()=>!0,writeFile:()=>null},n=fh.createProgram([t.filePath],Object.assign({noResolve:!0,target:fh.ScriptTarget.Latest,jsx:t.jsx?fh.JsxEmit.Preserve:void 0},(0,gh.createDefaultCompilerOptionsFromExtra)(t)),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}};var yh={},vh={},hh=e&&e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),Dh=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),xh=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&hh(t,e,r);return Dh(t,e),t},bh=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vh,"__esModule",{value:!0}),vh.getProgramsForProjects=vh.createWatchProgram=vh.clearWatchCaches=void 0;const Sh=bh(Hl.exports),Th=bh(hm),Ch=bh(rm),Eh=xh(vm.exports),kh=zv,Ah=(0,Sh.default)("typescript-eslint:typescript-estree:createWatchProgram"),Fh=new Map,Nh=new Map,Ph=new Map,wh=new Map,Ih=new Map,Oh=new Map;function Mh(e){return(t,r)=>{const n=(0,kh.getCanonicalFileName)(t),i=(()=>{let t=e.get(n);return t||(t=new Set,e.set(n,t)),t})();return i.add(r),{close:()=>{i.delete(r)}}}}vh.clearWatchCaches=function(){Fh.clear(),Nh.clear(),Ph.clear(),Oh.clear(),wh.clear(),Ih.clear()};const Lh={code:"",filePath:""};function Rh(e){throw new Error(Eh.flattenDiagnosticMessageText(e.messageText,Eh.sys.newLine))}function Bh(e){var t;return(null===(t=Eh.sys)||void 0===t?void 0:t.createHash)?Eh.sys.createHash(e):e}function jh(e,t,r){const n=r.EXPERIMENTAL_useSourceOfProjectReferenceRedirect?new Set(t.getSourceFiles().map((e=>(0,kh.getCanonicalFileName)(e.fileName)))):new Set(t.getRootFileNames().map((e=>(0,kh.getCanonicalFileName)(e))));return wh.set(e,n),n}vh.getProgramsForProjects=function(e,t,r){const n=(0,kh.getCanonicalFileName)(t),i=[];Lh.code=e,Lh.filePath=n;const a=Nh.get(n),o=Bh(e);Oh.get(n)!==o&&a&&a.size>0&&a.forEach((e=>e(n,Eh.FileWatcherEventKind.Changed)));for(const[e,t]of Fh.entries()){let i=wh.get(e),a=null;if(i||(a=t.getProgram().getProgram(),i=jh(e,a,r)),i.has(n))return Ah("Found existing program for file. %s",n),a=null!=a?a:t.getProgram().getProgram(),a.getTypeChecker(),[a]}Ah("File did not belong to any existing programs, moving to create/update. %s",n);for(const e of r.projects){const t=Fh.get(e);if(t){const a=zh(t,n,e);if(!a)continue;a.getTypeChecker();if(jh(e,a,r).has(n))return Ah("Found updated program for file. %s",n),[a];i.push(a);continue}const a=Kh(e,r);Fh.set(e,a);const o=a.getProgram().getProgram();o.getTypeChecker();if(jh(e,o,r).has(n))return Ah("Found program for file. %s",n),[o];i.push(o)}return i};const Jh=Ch.default.satisfies(Eh.version,">=3.9.0-beta",{includePrerelease:!0});function Kh(e,t){Ah("Creating watch program for %s.",e);const r=Eh.createWatchCompilerHost(e,(0,kh.createDefaultCompilerOptionsFromExtra)(t),Eh.sys,Eh.createAbstractBuilder,Rh,(()=>{}));t.moduleResolver&&(r.resolveModuleNames=(0,kh.getModuleResolver)(t.moduleResolver).resolveModuleNames);const n=r.readFile;r.readFile=(e,t)=>{const r=(0,kh.getCanonicalFileName)(e),i=r===Lh.filePath?Lh.code:n(r,t);return void 0!==i&&Oh.set(r,Bh(i)),i},r.onUnRecoverableConfigFileDiagnostic=Rh,r.afterProgramCreate=e=>{const t=e.getConfigFileParsingDiagnostics().filter((e=>e.category===Eh.DiagnosticCategory.Error&&18003!==e.code));t.length>0&&Rh(t[0])},r.watchFile=Mh(Nh),r.watchDirectory=Mh(Ph);const i=r.onCachedDirectoryStructureHostCreate;let a;r.onCachedDirectoryStructureHostCreate=e=>{const r=e.readDirectory;e.readDirectory=(e,n,i,a,o)=>r(e,n?n.concat(t.extraFileExtensions):void 0,i,a,o),i(e)},r.extraFileExtensions=t.extraFileExtensions.map((e=>({extension:e,isMixedContent:!0,scriptKind:Eh.ScriptKind.Deferred}))),r.trace=Ah,r.useSourceOfProjectReferenceRedirect=()=>t.EXPERIMENTAL_useSourceOfProjectReferenceRedirect,Jh?(r.setTimeout=void 0,r.clearTimeout=void 0):(Ah("Running without timeout fix"),r.setTimeout=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i{a=void 0});const o=Eh.createWatchProgram(r);if(!Jh){const e=o.getProgram;o.getProgram=()=>(a&&a(),a=void 0,e.call(o))}return o}function zh(e,t,r){let n=e.getProgram().getProgram();if("true"===es.env.TSESTREE_NO_INVALIDATION)return n;(function(e){const t=Th.default.statSync(e).mtimeMs,r=Ih.get(e);return Ih.set(e,t),void 0!==r&&Math.abs(r-t)>Number.EPSILON})(r)&&(Ah("tsconfig has changed - triggering program update. %s",r),Nh.get(r).forEach((e=>e(r,Eh.FileWatcherEventKind.Changed))),wh.delete(r));let i=n.getSourceFile(t);if(i)return n;Ah("File was not found in program - triggering folder update. %s",t);const a=(0,kh.canonicalDirname)(t);let o=null,s=a,c=!1;for(;o!==s;){o=s;const e=Ph.get(o);e&&(e.forEach((e=>{a!==o&&e(a,Eh.FileWatcherEventKind.Changed),e(o,Eh.FileWatcherEventKind.Changed)})),c=!0),s=(0,kh.canonicalDirname)(o)}if(!c)return Ah("No callback found for file, not part of this program. %s",t),null;if(wh.delete(r),n=e.getProgram().getProgram(),i=n.getSourceFile(t),i)return n;Ah("File was still not found in program after directory update - checking file deletions. %s",t);const u=n.getRootFileNames().find((e=>!Th.default.existsSync(e)));if(!u)return null;const l=Nh.get((0,kh.getCanonicalFileName)(u));return l?(Ah("Marking file as deleted. %s",u),l.forEach((e=>e(u,Eh.FileWatcherEventKind.Deleted))),wh.delete(r),n=e.getProgram().getProgram(),i=n.getSourceFile(t),i?n:(Ah("File was still not found in program after deletion check, assuming it is not part of this program. %s",t),null)):(Ah("Could not find watch callbacks for root file. %s",u),n)}vh.createWatchProgram=Kh;var Uh=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yh,"__esModule",{value:!0}),yh.createProjectProgram=void 0;const Vh=Uh(Hl.exports),qh=Uh(ym),Wh=vh,Hh=km,Gh=zv,Yh=(0,Vh.default)("typescript-eslint:typescript-estree:createProjectProgram"),Xh=[".ts",".tsx",".js",".jsx"];yh.createProjectProgram=function(e,t,r){Yh("Creating project program for: %s",r.filePath);const n=(0,Hh.firstDefined)((0,Wh.getProgramsForProjects)(e,r.filePath,r),(e=>(0,Gh.getAstFromProgram)(e,r)));if(!n&&!t){const e=['"parserOptions.project" has been set for @typescript-eslint/parser.',"The file does not match your project config: ".concat(qh.default.relative(r.tsconfigRootDir||es.cwd(),r.filePath),".")];let t=!1;const n=r.extraFileExtensions||[];n.forEach((t=>{t.startsWith(".")||e.push('Found unexpected extension "'.concat(t,'" specified with the "extraFileExtensions" option. Did you mean ".').concat(t,'"?')),Xh.includes(t)&&e.push('You unnecessarily included the extension "'.concat(t,'" with the "extraFileExtensions" option. This extension is already handled by the parser by default.'))}));const i=qh.default.extname(r.filePath);if(!Xh.includes(i)){const r="The extension for the file (".concat(i,") is non-standard");n.length>0?n.includes(i)||(e.push("".concat(r,'. It should be added to your existing "parserOptions.extraFileExtensions".')),t=!0):(e.push("".concat(r,'. You should add "parserOptions.extraFileExtensions" to your config.')),t=!0)}throw t||e.push("The file must be included in at least one of the projects provided."),new Error(e.join("\n"))}return n};var Qh={},$h=e&&e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),Zh=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),eD=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&$h(t,e,r);return Zh(t,e),t},tD=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qh,"__esModule",{value:!0}),Qh.createSourceFile=void 0;const rD=tD(Hl.exports),nD=eD(vm.exports),iD=zv,aD=(0,rD.default)("typescript-eslint:typescript-estree:createSourceFile");Qh.createSourceFile=function(e,t){return aD("Getting AST without type information in %s mode for: %s",t.jsx?"TSX":"TS",t.filePath),nD.createSourceFile(t.filePath,e,nD.ScriptTarget.Latest,!0,(0,iD.getScriptKind)(t))};var oD={};Object.defineProperty(oD,"__esModule",{value:!0}),oD.getFirstSemanticOrSyntacticError=void 0;const sD=vm.exports;function cD(e){return e.filter((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 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 uD(e){return Object.assign(Object.assign({},e),{message:(0,sD.flattenDiagnosticMessageText)(e.messageText,sD.sys.newLine)})}oD.getFirstSemanticOrSyntacticError=function(e,t){try{const r=cD(e.getSyntacticDiagnostics(t));if(r.length)return uD(r[0]);const n=cD(e.getSemanticDiagnostics(t));return n.length?uD(n[0]):void 0}catch(e){return void console.warn('Warning From TSC: "'.concat(e.message))}};var lD={},dD=e&&e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),_D=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),pD=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&dD(t,e,r);return _D(t,e),t},fD=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(lD,"__esModule",{value:!0}),lD.createProgramFromConfigFile=lD.useProvidedPrograms=void 0;const gD=fD(Hl.exports),mD=pD(hm),yD=pD(ym),vD=pD(vm.exports),hD=zv,DD=(0,gD.default)("typescript-eslint:typescript-estree:useProvidedProgram");function xD(e){return vD.formatDiagnostics(e,{getCanonicalFileName:e=>e,getCurrentDirectory:es.cwd,getNewLine:()=>"\n"})}lD.useProvidedPrograms=function(e,t){let r;DD("Retrieving ast for %s from provided program instance(s)",t.filePath);for(const n of e)if(r=(0,hD.getAstFromProgram)(n,t),r)break;if(!r){const e=yD.relative(t.tsconfigRootDir||es.cwd(),t.filePath),r=['"parserOptions.programs" has been provided for @typescript-eslint/parser.',"The file was not found in any of the provided program instance(s): ".concat(e)];throw new Error(r.join("\n"))}return r.program.getTypeChecker(),r},lD.createProgramFromConfigFile=function(e,t){if(void 0===vD.sys)throw new Error("`createProgramFromConfigFile` is only supported in a Node-like environment.");const r=vD.getParsedCommandLineOfConfigFile(e,hD.CORE_COMPILER_OPTIONS,{onUnRecoverableConfigFileDiagnostic:e=>{throw new Error(xD([e]))},fileExists:mD.existsSync,getCurrentDirectory:()=>t&&yD.resolve(t)||es.cwd(),readDirectory:vD.sys.readDirectory,readFile:e=>mD.readFileSync(e,"utf-8"),useCaseSensitiveFileNames:vD.sys.useCaseSensitiveFileNames});if(r.errors.length)throw new Error(xD(r.errors));const n=vD.createCompilerHost(r.options,!0);return vD.createProgram(r.fileNames,r.options,n)};var bD=e&&e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),SD=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),TD=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&bD(t,e,r);return SD(t,e),t},CD=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Wl,"__esModule",{value:!0}),Wl.clearParseAndGenerateServicesCalls=Wl.clearProgramCache=Wl.parseWithNodeMaps=Wl.parseAndGenerateServices=Wl.parse=void 0;const ED=CD(Hl.exports),kD={},AD=CD((function(e,t){if("string"!=typeof e||""===e)return!1;if(ep(e))return!0;var r=rp;return t&&!1===t.strict&&(r=np),r(e)})),FD=CD(rm),ND=ym,PD=TD(vm.exports),wD=Cm,ID=Em,OD=Kv,MD=ch,LD=yh,RD=Qh,BD=oD,jD=zv,JD=lD,KD=(0,ED.default)("typescript-eslint:typescript-estree:parser"),zD=">=3.3.1 <4.6.0",UD=PD.version,VD=FD.default.satisfies(UD,[zD].concat(["4.5.0-beta","4.5.1-rc"]).join(" || "));let qD,WD=!1;const HD=new Map;function GD(e){return"string"!=typeof e?String(e):e}function YD(){let{jsx:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e?"estree.tsx":"estree.ts"}function XD(){qD={code:"",comment:!1,comments:[],createDefaultProgram:!1,debugLevel:new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:!1,EXPERIMENTAL_useSourceOfProjectReferenceRedirect:!1,extraFileExtensions:[],filePath:YD(),jsx:!1,loc:!1,log:console.log,preserveNodeMaps:!0,programs:null,projects:[],range:!1,strict:!1,tokens:null,tsconfigRootDir:es.cwd(),singleRun:!1,moduleResolver:""}}function QD(e,t){const r=[];if("string"==typeof e)r.push(e);else if(Array.isArray(e))for(const t of e)"string"==typeof t&&r.push(t);if(0===r.length)return[];const n=r.filter((e=>!(0,AD.default)(e))),i=r.filter((e=>(0,AD.default)(e))),a=new Set(n.concat((0,kD.sync)([...i,...t],{cwd:qD.tsconfigRootDir})).map((e=>function(e,t){return(0,jD.getCanonicalFileName)((0,jD.ensureAbsolutePath)(e,t))}(e,qD))));return KD("parserOptions.project (excluding ignored) matched projects: %s",a),Array.from(a)}function $D(e){var t;if(!0===e.debugLevel?qD.debugLevel=new Set(["typescript-eslint"]):Array.isArray(e.debugLevel)&&(qD.debugLevel=new Set(e.debugLevel)),qD.debugLevel.size>0){const e=[];qD.debugLevel.has("typescript-eslint")&&e.push("typescript-eslint:*"),(qD.debugLevel.has("eslint")||ED.default.enabled("eslint:*,-eslint:code-path"))&&e.push("eslint:*,-eslint:code-path"),ED.default.enable(e.join(","))}if(qD.range="boolean"==typeof e.range&&e.range,qD.loc="boolean"==typeof e.loc&&e.loc,"boolean"==typeof e.tokens&&e.tokens&&(qD.tokens=[]),"boolean"==typeof e.comment&&e.comment&&(qD.comment=!0,qD.comments=[]),"boolean"==typeof e.jsx&&e.jsx&&(qD.jsx=!0),"string"==typeof e.filePath&&""!==e.filePath?qD.filePath=e.filePath:qD.filePath=YD(qD),"boolean"==typeof e.errorOnUnknownASTType&&e.errorOnUnknownASTType&&(qD.errorOnUnknownASTType=!0),"function"==typeof e.loggerFn?qD.log=e.loggerFn:!1===e.loggerFn&&(qD.log=()=>{}),"string"==typeof e.tsconfigRootDir&&(qD.tsconfigRootDir=e.tsconfigRootDir),qD.filePath=(0,jD.ensureAbsolutePath)(qD.filePath,qD),Array.isArray(e.programs)){if(!e.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.");qD.programs=e.programs,KD("parserOptions.programs was provided, so parserOptions.project will be ignored.")}if(!qD.programs){const r=(null!==(t=e.projectFolderIgnoreList)&&void 0!==t?t:["**/node_modules/**"]).reduce(((e,t)=>("string"==typeof t&&e.push(t),e)),[]).map((e=>e.startsWith("!")?e:"!".concat(e)));qD.projects=[]||QD(e.project,r)}Array.isArray(e.extraFileExtensions)&&e.extraFileExtensions.every((e=>"string"==typeof e))&&(qD.extraFileExtensions=e.extraFileExtensions),"boolean"==typeof e.preserveNodeMaps&&(qD.preserveNodeMaps=e.preserveNodeMaps),qD.createDefaultProgram="boolean"==typeof e.createDefaultProgram&&e.createDefaultProgram,qD.EXPERIMENTAL_useSourceOfProjectReferenceRedirect="boolean"==typeof e.EXPERIMENTAL_useSourceOfProjectReferenceRedirect&&e.EXPERIMENTAL_useSourceOfProjectReferenceRedirect,"string"==typeof e.moduleResolver&&(qD.moduleResolver=e.moduleResolver)}function ZD(){var e;if(!VD&&!WD){if(void 0!==es&&(null===(e=es.stdout)||void 0===e?void 0:e.isTTY)){const e="=============",t=[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(zD),"YOUR TYPESCRIPT VERSION: ".concat(UD),"Please only submit bug reports when using the officially supported version.",e];qD.log(t.join("\n\n"))}WD=!0}}function ex(e){"false"!==es.env.TSESTREE_SINGLE_RUN?"true"!==es.env.TSESTREE_SINGLE_RUN&&(!(null==e?void 0:e.allowAutomaticSingleRunInference)||"true"!==es.env.CI&&!es.argv[1].endsWith((0,ND.normalize)("node_modules/.bin/eslint")))?qD.singleRun=!1:qD.singleRun=!0:qD.singleRun=!1}function tx(e,t,r){if(XD(),null==t?void 0:t.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');e=GD(e),qD.code=e,void 0!==t&&$D(t),ZD(),ex(t);const n=(0,RD.createSourceFile)(e,qD),{estree:i,astMaps:a}=(0,wD.astConverter)(n,qD,r);return{ast:i,esTreeNodeToTSNodeMap:a.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:a.tsNodeToESTreeNodeMap}}Wl.clearProgramCache=function(){HD.clear()},Wl.parse=function(e,t){const{ast:r}=tx(e,t,!1);return r},Wl.parseWithNodeMaps=function(e,t){return tx(e,t,!0)};let rx={};Wl.clearParseAndGenerateServicesCalls=function(){rx={}},Wl.parseAndGenerateServices=function(e,t){var r;XD(),e=GD(e),qD.code=e,void 0!==t&&($D(t),"boolean"==typeof t.errorOnTypeScriptSyntacticAndSemanticIssues&&t.errorOnTypeScriptSyntacticAndSemanticIssues&&(qD.errorOnTypeScriptSyntacticAndSemanticIssues=!0)),ZD(),ex(t),qD.singleRun&&!qD.programs&&(null===(r=qD.projects)||void 0===r?void 0:r.length)>0&&(qD.programs={*[Symbol.iterator](){for(const e of qD.projects){const t=HD.get(e);if(t)yield t;else{KD("Detected single-run/CLI usage, creating Program once ahead of time for project: %s",e);const t=(0,JD.createProgramFromConfigFile)(e);HD.set(e,t),yield t}}}});const n=null!=qD.programs||qD.projects&&qD.projects.length>0;let i,a;if(qD.singleRun&&t.filePath&&(rx[t.filePath]=(rx[t.filePath]||0)+1),qD.singleRun&&t.filePath&&rx[t.filePath]>1){const t=(0,MD.createIsolatedProgram)(e,qD);i=t.ast,a=t.program}else{const t=function(e,t,r,n){return t&&(0,JD.useProvidedPrograms)(t,qD)||r&&(0,LD.createProjectProgram)(e,n,qD)||r&&n&&(0,OD.createDefaultProgram)(e,qD)||(0,MD.createIsolatedProgram)(e,qD)}(e,qD.programs,n,qD.createDefaultProgram);i=t.ast,a=t.program}const o="boolean"!=typeof qD.preserveNodeMaps||qD.preserveNodeMaps,{estree:s,astMaps:c}=(0,wD.astConverter)(i,qD,o);if(a&&qD.errorOnTypeScriptSyntacticAndSemanticIssues){const e=(0,BD.getFirstSemanticOrSyntacticError)(a,i);if(e)throw(0,ID.convertError)(e)}return{ast:s,services:{hasFullTypeInformation:n,program:a,esTreeNodeToTSNodeMap:c.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:c.tsNodeToESTreeNodeMap}}};var nx="5.4.0";!function(t){var r=e&&e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=e&&e.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.version=t.visitorKeys=t.createProgram=t.clearCaches=t.simpleTraverse=t.clearProgramCache=t.parseWithNodeMaps=t.parseAndGenerateServices=t.parse=void 0;var i=Wl;Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return i.parse}}),Object.defineProperty(t,"parseAndGenerateServices",{enumerable:!0,get:function(){return i.parseAndGenerateServices}}),Object.defineProperty(t,"parseWithNodeMaps",{enumerable:!0,get:function(){return i.parseWithNodeMaps}}),Object.defineProperty(t,"clearProgramCache",{enumerable:!0,get:function(){return i.clearProgramCache}});var a=xv;Object.defineProperty(t,"simpleTraverse",{enumerable:!0,get:function(){return a.simpleTraverse}}),n(Am,t);var o=vh;Object.defineProperty(t,"clearCaches",{enumerable:!0,get:function(){return o.clearWatchCaches}});var s=lD;Object.defineProperty(t,"createProgram",{enumerable:!0,get:function(){return s.createProgramFromConfigFile}});var c=bv;Object.defineProperty(t,"visitorKeys",{enumerable:!0,get:function(){return c.visitorKeys}}),t.version=nx}(ql);const ix=r,ax=i,ox=Ec,sx=Vl,cx={loc:!0,range:!0,comment:!0,jsx:!0,tokens:!0,loggerFn:!1,project:[]};var ux={parsers:{typescript:Cc((function(e,t,r){const n=ox(e),i=function(e){return new RegExp(["(?:^[^\"'`]*)"].join(""),"m").test(e)}(e),{parseWithNodeMaps:a}=ql,{result:o,error:s}=ax((()=>a(n,Object.assign(Object.assign({},cx),{},{jsx:i}))),(()=>a(n,Object.assign(Object.assign({},cx),{},{jsx:!i}))));if(!o)throw function(e){const{message:t,lineNumber:r,column:n}=e;return"number"!=typeof r?e:ix(t,{start:{line:r,column:n+1}})}(s);return r.originalText=e,r.tsParseResult=o,sx(o.ast,r)}))}};export{ux as default};